@multiversx/sdk-dapp 4.3.3 → 4.3.4-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/UI/DappModal/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/Pagination/Pagination.js +1 -1
- package/UI/Pagination/helpers/getPagination/getPagination.js +1 -1
- package/UI/Pagination/helpers/getPagination/getPagination.spec.js +1 -1
- package/UI/Pagination/helpers/getPagination/index.js +1 -1
- package/UI/Pagination/helpers/index.js +1 -1
- package/UI/Pagination/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/components/GasDetails/GasDetails.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmFee/components/GasDetails/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmFee/components/index.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/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-HMUYALEN.js → chunk-24D2K7IN.js} +2 -2
- package/__chunks__/{chunk-XXARRFNW.js → chunk-25RKOTQU.js} +2 -2
- package/__chunks__/{chunk-KNU6JMST.js → chunk-2BQD7DUG.js} +2 -2
- package/__chunks__/{chunk-BNEMTPB2.js → chunk-2CB6LXOG.js} +2 -2
- package/__chunks__/{chunk-TPHKH2H5.js → chunk-2EHKRANN.js} +2 -2
- package/__chunks__/chunk-2GZFJ3L3.js +2 -0
- package/__chunks__/chunk-2H2MQDL3.js +2 -0
- package/__chunks__/{chunk-75ZDBPIJ.js → chunk-2HNVYKBI.js} +2 -2
- package/__chunks__/{chunk-3HXSA3SI.js → chunk-2JOB5C6J.js} +2 -2
- package/__chunks__/{chunk-I2HTLHNZ.js → chunk-2K2ZFN56.js} +2 -2
- package/__chunks__/{chunk-A3NXYOUN.js → chunk-2LMUV6FC.js} +2 -2
- package/__chunks__/{chunk-TNG7XWKR.js → chunk-2LUQAJLR.js} +2 -2
- package/__chunks__/{chunk-WE7TVJQA.js → chunk-2M6IQJW5.js} +2 -2
- package/__chunks__/chunk-2MD7N7PQ.js +2 -0
- package/__chunks__/{chunk-7TOUSW2W.js → chunk-2QWOBU64.js} +2 -2
- package/__chunks__/chunk-2UCWSYAM.js +2 -0
- package/__chunks__/{chunk-JTF6NS3W.js → chunk-2WHTNHC7.js} +2 -2
- package/__chunks__/{chunk-2KINQHTB.js → chunk-2X2Y2VZ4.js} +2 -2
- package/__chunks__/{chunk-7UF6KLBW.js → chunk-2Z3TG7WK.js} +2 -2
- package/__chunks__/{chunk-OY5TIYS2.js → chunk-33M7DRZW.js} +2 -2
- package/__chunks__/chunk-37L5NZZS.js +2 -0
- package/__chunks__/chunk-3D3KQGSG.js +2 -0
- package/__chunks__/{chunk-OHZO5JFJ.js → chunk-3F5TF35S.js} +2 -2
- package/__chunks__/{chunk-ZL76L75S.js → chunk-3RHESYGK.js} +2 -2
- package/__chunks__/{chunk-I5UN6VEI.js → chunk-3TFLPWOG.js} +2 -2
- package/__chunks__/{chunk-XEMDTEQ6.js → chunk-3YZ5ZXM7.js} +2 -2
- package/__chunks__/{chunk-VHAEAEC4.js → chunk-43WYDFA4.js} +2 -2
- package/__chunks__/{chunk-65IN53XZ.js → chunk-45ONUKHV.js} +2 -2
- package/__chunks__/{chunk-7QAXFW74.js → chunk-47WBWNID.js} +2 -2
- package/__chunks__/{chunk-UIDVTJDB.js → chunk-4AXMOVIQ.js} +2 -2
- package/__chunks__/{chunk-B7LQP7OZ.js → chunk-4IJ6RFE4.js} +2 -2
- package/__chunks__/{chunk-HU2WIZFT.js → chunk-4IW4XWQM.js} +2 -2
- package/__chunks__/chunk-4JYN3F4X.js +2 -0
- package/__chunks__/{chunk-TSSKA5RG.js → chunk-4PIHQD3O.js} +2 -2
- package/__chunks__/{chunk-YQWVUCVI.js → chunk-4QJK357E.js} +2 -2
- package/__chunks__/{chunk-Y7ID5T3M.js → chunk-4QOEQRF4.js} +2 -2
- package/__chunks__/{chunk-IT3SHTC4.js → chunk-4RJKPLCH.js} +2 -2
- package/__chunks__/{chunk-X4TI5VCG.js → chunk-4S6WDQ42.js} +2 -2
- package/__chunks__/{chunk-NRY3BU5H.js → chunk-4UOFN637.js} +2 -2
- package/__chunks__/{chunk-ERITHCXO.js → chunk-4ZAMLUU3.js} +2 -2
- package/__chunks__/{chunk-Z4CW7LRI.js → chunk-52KBSULZ.js} +2 -2
- package/__chunks__/{chunk-6BM2ST5Z.js → chunk-52QI6PTS.js} +2 -2
- package/__chunks__/{chunk-FAUBFOTX.js → chunk-5B4IRXMF.js} +2 -2
- package/__chunks__/{chunk-QTATDC5X.js → chunk-5ENSOCVS.js} +2 -2
- package/__chunks__/{chunk-U3REWMAB.js → chunk-5EZ2JFWY.js} +2 -2
- package/__chunks__/{chunk-OARREGPR.js → chunk-5FY3LERB.js} +2 -2
- package/__chunks__/chunk-5H2SQK7H.js +2 -0
- package/__chunks__/{chunk-KTUHMCSB.js → chunk-5I24B5H4.js} +2 -2
- package/__chunks__/chunk-5IW4RJBQ.js +2 -0
- package/__chunks__/{chunk-U2E2OYI2.js → chunk-5KYB7CA7.js} +2 -2
- package/__chunks__/{chunk-DEFGT5WU.js → chunk-5LRSQGSO.js} +2 -2
- package/__chunks__/{chunk-2MCLOMGH.js → chunk-5ZCSRYSX.js} +2 -2
- package/__chunks__/{chunk-IHLA7WLZ.js → chunk-5ZMXC75K.js} +2 -2
- package/__chunks__/{chunk-TAJOWO4L.js → chunk-637BW36E.js} +2 -2
- package/__chunks__/{chunk-NMDQMATH.js → chunk-6AZKXCLM.js} +2 -2
- package/__chunks__/chunk-6BZJJAET.js +2 -0
- package/__chunks__/{chunk-KIMAUAAY.js → chunk-6HKICMK7.js} +2 -2
- package/__chunks__/{chunk-LZ22MDKK.js → chunk-6KXDONKZ.js} +2 -2
- package/__chunks__/{chunk-Q6PNXMJS.js → chunk-6LDL4U5E.js} +2 -2
- package/__chunks__/{chunk-XY2BEOGG.js → chunk-6LR2W3PR.js} +2 -2
- package/__chunks__/{chunk-35WW4C7L.js → chunk-6NYWQ7JL.js} +2 -2
- package/__chunks__/{chunk-GRAIQ6GH.js → chunk-6P5IO6AS.js} +2 -2
- package/__chunks__/{chunk-BC7AMHRI.js → chunk-6TS2643A.js} +2 -2
- package/__chunks__/{chunk-COQJRVNP.js → chunk-6V6GGJWY.js} +2 -2
- package/__chunks__/chunk-6VFMZUPW.js +2 -0
- package/__chunks__/{chunk-VTE26SGN.js → chunk-6VXQ2DUY.js} +2 -2
- package/__chunks__/{chunk-2QJ5CRRT.js → chunk-7354WKPB.js} +2 -2
- package/__chunks__/{chunk-PPBYUA5B.js → chunk-77N7T6WP.js} +2 -2
- package/__chunks__/{chunk-LIXRWTBR.js → chunk-7CBCS2GS.js} +2 -2
- package/__chunks__/{chunk-JLSFIQ57.js → chunk-7CQPAAU7.js} +2 -2
- package/__chunks__/{chunk-BPJZQBCJ.js → chunk-7EGAUH23.js} +2 -2
- package/__chunks__/{chunk-AZICIUOR.js → chunk-7GKQVKNY.js} +2 -2
- package/__chunks__/{chunk-CB4QNRST.js → chunk-7P3RCGGY.js} +2 -2
- package/__chunks__/chunk-7RAKTX5G.js +2 -0
- package/__chunks__/{chunk-JY6OMPUH.js → chunk-7SAB24GG.js} +2 -2
- package/__chunks__/chunk-7UBVY4KP.js +2 -0
- package/__chunks__/{chunk-OFNML5Z7.js → chunk-ABXKXQM6.js} +2 -2
- package/__chunks__/{chunk-F3DLRRZV.js → chunk-ACADTJCL.js} +2 -2
- package/__chunks__/{chunk-6WLESDUC.js → chunk-AGK5WSEG.js} +2 -2
- package/__chunks__/{chunk-IDAT2HCQ.js → chunk-AICLBVRF.js} +2 -2
- package/__chunks__/chunk-AN4AN5XH.js +2 -0
- package/__chunks__/chunk-AQF6WP3B.js +2 -0
- package/__chunks__/{chunk-GQH5CJGS.js → chunk-AR7WR5FE.js} +2 -2
- package/__chunks__/{chunk-AIOX2TQE.js → chunk-ARCSU73R.js} +2 -2
- package/__chunks__/{chunk-LU37YHT4.js → chunk-AVYKZHSL.js} +2 -2
- package/__chunks__/{chunk-KCGDDPWP.js → chunk-AWEB7DZF.js} +2 -2
- package/__chunks__/{chunk-HYPTCT5E.js → chunk-B4CBWPZP.js} +2 -2
- package/__chunks__/{chunk-OAXLVXSH.js → chunk-BEHWAUXC.js} +2 -2
- package/__chunks__/{chunk-JMDBUE4V.js → chunk-BI5SSPAN.js} +2 -2
- package/__chunks__/{chunk-PSWKT23P.js → chunk-BM7QNFI7.js} +2 -2
- package/__chunks__/{chunk-GAJJU6YU.js → chunk-BMDPZLE4.js} +2 -2
- package/__chunks__/{chunk-LLLY2PLE.js → chunk-BQ26S7P7.js} +2 -2
- package/__chunks__/{chunk-U5TQREBM.js → chunk-BS3J7G7C.js} +2 -2
- package/__chunks__/chunk-BWZEEEV6.js +2 -0
- package/__chunks__/{chunk-ZGTODHWL.js → chunk-C27VGXZQ.js} +2 -2
- package/__chunks__/{chunk-WJ3LWUSW.js → chunk-C2VIDMUD.js} +2 -2
- package/__chunks__/{chunk-XACGQCYI.js → chunk-C442BSEE.js} +2 -2
- package/__chunks__/{chunk-YFRJVUBD.js → chunk-C6FHRB4G.js} +2 -2
- package/__chunks__/{chunk-SDHW3Z4P.js → chunk-CARYC4I2.js} +2 -2
- package/__chunks__/chunk-CAWNG7BJ.js +2 -0
- package/__chunks__/{chunk-OUA73SSJ.js → chunk-CETHY5DK.js} +2 -2
- package/__chunks__/{chunk-RUWBDSJG.js → chunk-CFWMCHUV.js} +2 -2
- package/__chunks__/{chunk-JYVZJZ3V.js → chunk-CGV3JZ2A.js} +2 -2
- package/__chunks__/{chunk-GKAZKHWY.js → chunk-CHKBTNGY.js} +2 -2
- package/__chunks__/{chunk-JLW4S2OD.js → chunk-CMXFWTO6.js} +2 -2
- package/__chunks__/{chunk-3SRKDS6P.js → chunk-CVYMG3PM.js} +2 -2
- package/__chunks__/chunk-D6GURMWV.js +2 -0
- package/__chunks__/chunk-D6KVSQBJ.js +2 -0
- package/__chunks__/chunk-DBBWRL2P.js +2 -0
- package/__chunks__/{chunk-QEV6ASLD.js → chunk-DFSIKXW5.js} +2 -2
- package/__chunks__/{chunk-XACY43R5.js → chunk-DGC73TWF.js} +2 -2
- package/__chunks__/chunk-DGR4XJTX.js +2 -0
- package/__chunks__/{chunk-FL3JGIOK.js → chunk-DHZPYTSO.js} +2 -2
- package/__chunks__/{chunk-Q6GYXD7V.js → chunk-DJR44UPQ.js} +2 -2
- package/__chunks__/chunk-DK7VCT6R.js +2 -0
- package/__chunks__/{chunk-2XX7HZTX.js → chunk-DSIPH7EJ.js} +2 -2
- package/__chunks__/chunk-E53RVWOT.js +2 -0
- package/__chunks__/{chunk-G3W4EMGM.js → chunk-E7SMLXCH.js} +2 -2
- package/__chunks__/chunk-EAVOUVZS.js +2 -0
- package/__chunks__/{chunk-GKWKIAPY.js → chunk-ECQJQ76J.js} +2 -2
- package/__chunks__/{chunk-DMRXP7HV.js → chunk-EGKX4TVX.js} +2 -2
- package/__chunks__/chunk-EKSRAIQ2.js +2 -0
- package/__chunks__/{chunk-DNOR7WM4.js → chunk-ELDESMTL.js} +2 -2
- package/__chunks__/{chunk-7BWQNAMS.js → chunk-ELHOCZI6.js} +2 -2
- package/__chunks__/{chunk-GE4OCTDP.js → chunk-ELWYA3KG.js} +2 -2
- package/__chunks__/{chunk-2KF7MZUU.js → chunk-EQQKCBGM.js} +2 -2
- package/__chunks__/{chunk-PININVTB.js → chunk-EYQPBSFB.js} +2 -2
- package/__chunks__/{chunk-IUOHCFMI.js → chunk-F56E5OHY.js} +2 -2
- package/__chunks__/{chunk-NHLAFROW.js → chunk-FD53UGYY.js} +2 -2
- package/__chunks__/{chunk-5ZAK25IM.js → chunk-FEUUARER.js} +2 -2
- package/__chunks__/{chunk-EK3MPB3Z.js → chunk-FF5Z2HPD.js} +2 -2
- package/__chunks__/chunk-FHUWKULE.js +2 -0
- package/__chunks__/{chunk-CU5BE7L6.js → chunk-FKB7JFXE.js} +2 -2
- package/__chunks__/{chunk-HCPUBKJ2.js → chunk-FKVDFKN4.js} +2 -2
- package/__chunks__/{chunk-SHLZNMZX.js → chunk-FREEEK44.js} +2 -2
- package/__chunks__/{chunk-V4UWFLLU.js → chunk-FTT5RF2M.js} +2 -2
- package/__chunks__/{chunk-B5FEQ7WP.js → chunk-FWMGFKCI.js} +2 -2
- package/__chunks__/{chunk-2FLZCVZG.js → chunk-G4AZHUFL.js} +2 -2
- package/__chunks__/{chunk-M24JZXNC.js → chunk-G7JLE5IZ.js} +2 -2
- package/__chunks__/{chunk-FP56THIJ.js → chunk-GCD5ZDHG.js} +2 -2
- package/__chunks__/chunk-GCLPSNVX.js +2 -0
- package/__chunks__/{chunk-2JTMQZ5N.js → chunk-GD2KBFKM.js} +2 -2
- package/__chunks__/{chunk-TIWSO56Y.js → chunk-GEDQVQFA.js} +2 -2
- package/__chunks__/{chunk-RZS72DRR.js → chunk-GEK572JH.js} +2 -2
- package/__chunks__/{chunk-FSI7MPX2.js → chunk-GFFTR62F.js} +2 -2
- package/__chunks__/{chunk-BRJ4IDFX.js → chunk-GISWZUVZ.js} +2 -2
- package/__chunks__/chunk-GSA2SB6O.js +2 -0
- package/__chunks__/{chunk-XXQ36W6V.js → chunk-GTCKY6F3.js} +2 -2
- package/__chunks__/{chunk-RXLDGZSX.js → chunk-H62Y7P7I.js} +2 -2
- package/__chunks__/{chunk-PB5VWLDA.js → chunk-H7GCEERY.js} +2 -2
- package/__chunks__/chunk-HB5RUTVT.js +2 -0
- package/__chunks__/{chunk-LXAMYSAY.js → chunk-HC7L4S4O.js} +2 -2
- package/__chunks__/{chunk-5E4ENRLC.js → chunk-HDNWKFGF.js} +2 -2
- package/__chunks__/{chunk-I3H3UEEF.js → chunk-HECK6MTB.js} +2 -2
- package/__chunks__/chunk-HG4S6KDX.js +2 -0
- package/__chunks__/chunk-HMAFTVLK.js +2 -0
- package/__chunks__/{chunk-Q2AW5PBX.js → chunk-HOEKGKQZ.js} +2 -2
- package/__chunks__/{chunk-PMGBDSMO.js → chunk-HPGXFNOH.js} +2 -2
- package/__chunks__/{chunk-KNH27ZOI.js → chunk-HU6C2X7Z.js} +2 -2
- package/__chunks__/{chunk-HRTS3MSF.js → chunk-HXUIQH3H.js} +2 -2
- package/__chunks__/{chunk-HIUQRKBU.js → chunk-HYKDX5DE.js} +2 -2
- package/__chunks__/{chunk-N572YDZA.js → chunk-ICV2TXRM.js} +2 -2
- package/__chunks__/chunk-IEIURVBZ.js +2 -0
- package/__chunks__/{chunk-TW2H5NX4.js → chunk-IEIZJV2B.js} +2 -2
- package/__chunks__/{chunk-5EBLXQKZ.js → chunk-IHNYPQSK.js} +2 -2
- package/__chunks__/{chunk-5MYIRG5J.js → chunk-INHUPQWU.js} +2 -2
- package/__chunks__/{chunk-6ELWXHAK.js → chunk-IQP6H3UP.js} +2 -2
- package/__chunks__/{chunk-ENBATX53.js → chunk-IR74SMTL.js} +2 -2
- package/__chunks__/{chunk-7KXIKUR6.js → chunk-IURGTEPK.js} +2 -2
- package/__chunks__/{chunk-VCQ5MOM4.js → chunk-IUW5OTWW.js} +2 -2
- package/__chunks__/{chunk-SL2KEAXQ.js → chunk-J4E4HTQC.js} +2 -2
- package/__chunks__/chunk-J5OXIGWW.js +2 -0
- package/__chunks__/{chunk-EZGBQXME.js → chunk-J63USF4K.js} +2 -2
- package/__chunks__/{chunk-DBJ4HFXB.js → chunk-J7F7ECRM.js} +2 -2
- package/__chunks__/{chunk-J6UKYZCT.js → chunk-JDJZ2RJJ.js} +2 -2
- package/__chunks__/{chunk-4LDHXKXH.js → chunk-JG6R3QAD.js} +2 -2
- package/__chunks__/{chunk-OOIYPQB2.js → chunk-JMZRJTZG.js} +2 -2
- package/__chunks__/{chunk-DCAMXMCM.js → chunk-JNEPYTU7.js} +2 -2
- package/__chunks__/{chunk-LHQK5CGF.js → chunk-JPOB33IZ.js} +2 -2
- package/__chunks__/{chunk-5F3A7VLM.js → chunk-JQZYS7BM.js} +2 -2
- package/__chunks__/{chunk-IEUECJU7.js → chunk-JZCSJHHU.js} +2 -2
- package/__chunks__/{chunk-UCHZCYP4.js → chunk-K4JBCUFT.js} +2 -2
- package/__chunks__/chunk-K53PESRU.js +2 -0
- package/__chunks__/{chunk-XNXCRIOG.js → chunk-KABKOLXR.js} +2 -2
- package/__chunks__/{chunk-OIIGCY2H.js → chunk-KAIQY5SA.js} +2 -2
- package/__chunks__/{chunk-X7EP3HVR.js → chunk-KDIZOQHB.js} +2 -2
- package/__chunks__/{chunk-AFVIOJA2.js → chunk-KIOF4CQT.js} +2 -2
- package/__chunks__/{chunk-GKXA3BOE.js → chunk-KQL7J2VN.js} +2 -2
- package/__chunks__/{chunk-6MCQHTDQ.js → chunk-KQNHZDSB.js} +2 -2
- package/__chunks__/{chunk-TFXKWGR2.js → chunk-KUD2NXQX.js} +2 -2
- package/__chunks__/{chunk-PV4U35TB.js → chunk-LC532B67.js} +2 -2
- package/__chunks__/{chunk-4C72NXJC.js → chunk-LCYLRW4B.js} +2 -2
- package/__chunks__/{chunk-UGHC4LEJ.js → chunk-LF6LQOEB.js} +2 -2
- package/__chunks__/{chunk-R4ODW2TW.js → chunk-LK2BIT5G.js} +2 -2
- package/__chunks__/{chunk-SLMR62XL.js → chunk-LRZD3GOP.js} +2 -2
- package/__chunks__/{chunk-DE32D63C.js → chunk-LUKDEXXW.js} +2 -2
- package/__chunks__/{chunk-6F5V5H3O.js → chunk-LVLGKG3B.js} +2 -2
- package/__chunks__/{chunk-MYBMLPKZ.js → chunk-LVNISYGC.js} +2 -2
- package/__chunks__/{chunk-PZ2J7CX4.js → chunk-LVO247J2.js} +2 -2
- package/__chunks__/{chunk-UFQ7UEPG.js → chunk-LZ67TQ66.js} +2 -2
- package/__chunks__/{chunk-53DA5O5D.js → chunk-M2BNPL3X.js} +2 -2
- package/__chunks__/{chunk-QZ2CPGYT.js → chunk-M2EGCCXE.js} +2 -2
- package/__chunks__/{chunk-C2KB6OP7.js → chunk-M2RCFIL4.js} +2 -2
- package/__chunks__/{chunk-ALXNYK3E.js → chunk-M45YFMCO.js} +2 -2
- package/__chunks__/{chunk-DW7QS5HU.js → chunk-M54EYB7C.js} +2 -2
- package/__chunks__/{chunk-4TGESVWJ.js → chunk-M6EI5T3W.js} +2 -2
- package/__chunks__/chunk-MAN7GWTH.js +2 -0
- package/__chunks__/{chunk-BHVXBW6B.js → chunk-MJ6TFSMU.js} +2 -2
- package/__chunks__/{chunk-YXAZVFXZ.js → chunk-MJFA7EQM.js} +2 -2
- package/__chunks__/{chunk-NP2H372S.js → chunk-MJMGRCDU.js} +2 -2
- package/__chunks__/{chunk-6N3WWVBS.js → chunk-MK2GCPP3.js} +2 -2
- package/__chunks__/{chunk-HHOIMVSW.js → chunk-MMJ3BHVI.js} +2 -2
- package/__chunks__/{chunk-LUJL437O.js → chunk-MN4WMRRC.js} +2 -2
- package/__chunks__/chunk-MOH5IXEW.js +2 -0
- package/__chunks__/{chunk-7IEF3K3N.js → chunk-MOKQMVU2.js} +2 -2
- package/__chunks__/{chunk-4ETVUXHH.js → chunk-MS4VFH7H.js} +2 -2
- package/__chunks__/chunk-MT5L5HAW.js +2 -0
- package/__chunks__/chunk-MWZH5OTR.js +2 -0
- package/__chunks__/chunk-NCWO65ZY.js +2 -0
- package/__chunks__/chunk-NDEYN3LD.js +2 -0
- package/__chunks__/chunk-NDUB47FE.js +2 -0
- package/__chunks__/{chunk-LO4FZUUL.js → chunk-NEAYNWOD.js} +2 -2
- package/__chunks__/{chunk-ILXS5TLE.js → chunk-NKC5KX3R.js} +2 -2
- package/__chunks__/{chunk-3B2V4QLE.js → chunk-NOPBGR4E.js} +2 -2
- package/__chunks__/{chunk-GWNGXWV2.js → chunk-NPUQV7B2.js} +2 -2
- package/__chunks__/{chunk-DK7RB23Z.js → chunk-NRQ65PN2.js} +2 -2
- package/__chunks__/{chunk-SVYY3XG3.js → chunk-NYHIJYSY.js} +2 -2
- package/__chunks__/{chunk-EHDPMWUN.js → chunk-NZG725GU.js} +2 -2
- package/__chunks__/{chunk-GLX5TPC7.js → chunk-O26IGKV6.js} +2 -2
- package/__chunks__/chunk-OFFEXGLU.js +2 -0
- package/__chunks__/chunk-OMWA264B.js +2 -0
- package/__chunks__/chunk-OQT4D6DA.js +2 -0
- package/__chunks__/{chunk-B67ICQ6X.js → chunk-OUPLVSSN.js} +2 -2
- package/__chunks__/chunk-OYJGON2R.js +2 -0
- package/__chunks__/{chunk-3ESDJKH6.js → chunk-P2SQV73D.js} +2 -2
- package/__chunks__/{chunk-HFTTNKHP.js → chunk-PAX5EKQO.js} +2 -2
- package/__chunks__/{chunk-VQOROTBK.js → chunk-PCY5A3OM.js} +2 -2
- package/__chunks__/{chunk-EVUUTZV7.js → chunk-PF4D7MUH.js} +2 -2
- package/__chunks__/{chunk-RPMUZG56.js → chunk-PGXHCNNJ.js} +2 -2
- package/__chunks__/{chunk-YNS44265.js → chunk-PJM55W2G.js} +2 -2
- package/__chunks__/chunk-PLGOGN7B.js +2 -0
- package/__chunks__/{chunk-EWEMTEQG.js → chunk-PMFDV77M.js} +2 -2
- package/__chunks__/{chunk-BPOK4ELB.js → chunk-POSE32KA.js} +2 -2
- package/__chunks__/{chunk-3DDQJ3VN.js → chunk-PPP2LEPC.js} +2 -2
- package/__chunks__/{chunk-NKL7H6WF.js → chunk-PPV5SJZR.js} +2 -2
- package/__chunks__/{chunk-FHFVGYIX.js → chunk-PWRL2PHT.js} +2 -2
- package/__chunks__/{chunk-BLDDWEAT.js → chunk-PY623WGA.js} +2 -2
- package/__chunks__/chunk-PYLTLW5W.js +2 -0
- package/__chunks__/{chunk-WN5BZMBM.js → chunk-Q5LESUJU.js} +2 -2
- package/__chunks__/{chunk-U46YFUCN.js → chunk-Q6JMJXXF.js} +2 -2
- package/__chunks__/{chunk-XVVAEMAQ.js → chunk-Q76T6JPW.js} +2 -2
- package/__chunks__/{chunk-4UZ2AS3Z.js → chunk-QE4XAJGO.js} +2 -2
- package/__chunks__/{chunk-LISKVNAH.js → chunk-QQYLJ7T3.js} +2 -2
- package/__chunks__/{chunk-DDR7XNXQ.js → chunk-QRHTZEUL.js} +2 -2
- package/__chunks__/chunk-QY3POW5A.js +2 -0
- package/__chunks__/{chunk-GQWIBR5V.js → chunk-QYUHWCID.js} +2 -2
- package/__chunks__/{chunk-WZJCNBWH.js → chunk-QZTHHTNY.js} +2 -2
- package/__chunks__/{chunk-BOU56ZG3.js → chunk-R3BWV4KU.js} +2 -2
- package/__chunks__/{chunk-KEWZ3SWT.js → chunk-R3G2RMY5.js} +2 -2
- package/__chunks__/{chunk-X2EO5OB7.js → chunk-R6CS6OMK.js} +2 -2
- package/__chunks__/chunk-RBNR7KTD.js +2 -0
- package/__chunks__/{chunk-JQYHDLO2.js → chunk-RCUGDZMV.js} +2 -2
- package/__chunks__/{chunk-F4SDEBZG.js → chunk-RFUKCFZ2.js} +2 -2
- package/__chunks__/chunk-RGLZWEKW.js +2 -0
- package/__chunks__/chunk-RGQD2CXL.js +2 -0
- package/__chunks__/{chunk-72YUS4WW.js → chunk-RK32VHTO.js} +2 -2
- package/__chunks__/{chunk-RA6EU5LQ.js → chunk-RN5HOHCP.js} +2 -2
- package/__chunks__/{chunk-P6PFLUFJ.js → chunk-ROY2KQNP.js} +2 -2
- package/__chunks__/{chunk-L2H7DB4O.js → chunk-RRWYERE3.js} +2 -2
- package/__chunks__/{chunk-EVGOKAH4.js → chunk-RRXE3ZM7.js} +2 -2
- package/__chunks__/{chunk-MQYMZOQL.js → chunk-RTCQ6QL4.js} +2 -2
- package/__chunks__/{chunk-4J6HS47O.js → chunk-RVZA3OIB.js} +2 -2
- package/__chunks__/{chunk-F7P33CFQ.js → chunk-RX3OTZWT.js} +2 -2
- package/__chunks__/{chunk-OVXSFBM7.js → chunk-S2QSM6LQ.js} +2 -2
- package/__chunks__/{chunk-HJ62CBRT.js → chunk-S5QLNPNV.js} +2 -2
- package/__chunks__/{chunk-QG37FGHU.js → chunk-SDEMFZ2B.js} +2 -2
- package/__chunks__/{chunk-R2ONOGA2.js → chunk-SIEDPGDK.js} +2 -2
- package/__chunks__/{chunk-IHJ4VJGE.js → chunk-SJAJRK4I.js} +2 -2
- package/__chunks__/{chunk-LPMVCNX7.js → chunk-SN3U7PJ7.js} +2 -2
- package/__chunks__/{chunk-MOS23OHR.js → chunk-SX2VRDN7.js} +2 -2
- package/__chunks__/{chunk-7FZ5QE5Y.js → chunk-T3AMXQVC.js} +2 -2
- package/__chunks__/{chunk-ZZTW7AD6.js → chunk-T63KEE73.js} +2 -2
- package/__chunks__/{chunk-XCPFYMJS.js → chunk-T6WVPNM6.js} +2 -2
- package/__chunks__/{chunk-F2TMWY62.js → chunk-TARH3XHH.js} +2 -2
- package/__chunks__/{chunk-2BITUT5V.js → chunk-TB4ER3LS.js} +2 -2
- package/__chunks__/{chunk-J7AOONLK.js → chunk-TCRJYYXV.js} +2 -2
- package/__chunks__/{chunk-BSY2NT6L.js → chunk-TE4T75GN.js} +2 -2
- package/__chunks__/chunk-TENZ5D35.js +2 -0
- package/__chunks__/chunk-TF4XTQGN.js +2 -0
- package/__chunks__/{chunk-SHS5RBWE.js → chunk-TLDFZH5P.js} +2 -2
- package/__chunks__/{chunk-U5PYO7B2.js → chunk-TNGZP5IB.js} +2 -2
- package/__chunks__/chunk-TO2N7FVP.js +2 -0
- package/__chunks__/{chunk-KTMUH4ZD.js → chunk-TOIIOCNX.js} +2 -2
- package/__chunks__/{chunk-CGS6M5IR.js → chunk-TPRTM7OB.js} +2 -2
- package/__chunks__/{chunk-6MRXAI74.js → chunk-TWSN7HZK.js} +2 -2
- package/__chunks__/{chunk-HAPIRVGX.js → chunk-TXQL7DFI.js} +2 -2
- package/__chunks__/{chunk-ZQEYHNSX.js → chunk-TY4BCXTR.js} +2 -2
- package/__chunks__/{chunk-EDGTGOJ2.js → chunk-TYSBJPNT.js} +2 -2
- package/__chunks__/{chunk-D3AZOY65.js → chunk-U4MSGRT3.js} +2 -2
- package/__chunks__/{chunk-74ZXY74X.js → chunk-UI66NJZT.js} +2 -2
- package/__chunks__/chunk-UMHVXJPV.js +2 -0
- package/__chunks__/{chunk-ES5NXUVH.js → chunk-UPC4SPRN.js} +2 -2
- package/__chunks__/{chunk-RM76QZVM.js → chunk-UU4NTA4J.js} +2 -2
- package/__chunks__/chunk-UY6UCXJ6.js +2 -0
- package/__chunks__/{chunk-LLB5EQW5.js → chunk-V4Y2QYQE.js} +2 -2
- package/__chunks__/chunk-V6HL3GOP.js +2 -0
- package/__chunks__/{chunk-HGR3DJNP.js → chunk-V6ZIZ7VI.js} +2 -2
- package/__chunks__/chunk-V7NUNNBR.js +2 -0
- package/__chunks__/chunk-V7UIKWIQ.js +2 -0
- package/__chunks__/chunk-VC73HKHZ.js +2 -0
- package/__chunks__/{chunk-EK2GZY5W.js → chunk-VCR4YMSC.js} +2 -2
- package/__chunks__/chunk-W3A4D35B.js +2 -0
- package/__chunks__/{chunk-4JPTFWVP.js → chunk-WDGM7ZE5.js} +2 -2
- package/__chunks__/{chunk-42IMRT4I.js → chunk-WGLF554T.js} +2 -2
- package/__chunks__/{chunk-UKCNSU7P.js → chunk-WTS6FKSQ.js} +2 -2
- package/__chunks__/{chunk-LYGQTWDN.js → chunk-WXXUXRAM.js} +2 -2
- package/__chunks__/{chunk-J5TKH4R2.js → chunk-X42XKYM5.js} +2 -2
- package/__chunks__/chunk-X4P7QPM6.js +2 -0
- package/__chunks__/{chunk-4FMTA7PA.js → chunk-X4XFYCEZ.js} +2 -2
- package/__chunks__/{chunk-L3MLZBEH.js → chunk-X5ATTZSQ.js} +2 -2
- package/__chunks__/{chunk-6KQLLQLT.js → chunk-XAMWEWOV.js} +2 -2
- package/__chunks__/{chunk-VNLYSO3R.js → chunk-XBAX7QVY.js} +2 -2
- package/__chunks__/chunk-XE6ZGFLG.js +2 -0
- package/__chunks__/{chunk-OVYC4NBH.js → chunk-XF666J4X.js} +2 -2
- package/__chunks__/{chunk-XRS7ENFP.js → chunk-XGATXS43.js} +2 -2
- package/__chunks__/{chunk-46UB3SHL.js → chunk-XHV46KU4.js} +2 -2
- package/__chunks__/{chunk-VOLF6AHL.js → chunk-XIBFCYTM.js} +2 -2
- package/__chunks__/chunk-XJ6FH3AH.js +2 -0
- package/__chunks__/chunk-XMCIIPO4.js +2 -0
- package/__chunks__/{chunk-MB7UABKE.js → chunk-XMMWK56T.js} +2 -2
- package/__chunks__/{chunk-5MKADVF6.js → chunk-XNIZXZ4D.js} +2 -2
- package/__chunks__/{chunk-XJSLNMRF.js → chunk-XO5RFP27.js} +2 -2
- package/__chunks__/{chunk-DZ72DIFJ.js → chunk-XPZCX6TU.js} +2 -2
- package/__chunks__/{chunk-C3O3XDWS.js → chunk-XZG7MPHH.js} +2 -2
- package/__chunks__/{chunk-LVNWKHE3.js → chunk-XZIDZBSZ.js} +2 -2
- package/__chunks__/{chunk-7TIVSBQR.js → chunk-Y4VA6366.js} +2 -2
- package/__chunks__/chunk-Y5X5DR5U.js +2 -0
- package/__chunks__/{chunk-WIE7Z4CU.js → chunk-Y7BO5HPR.js} +2 -2
- package/__chunks__/{chunk-TDDRQR7U.js → chunk-Y7TR243I.js} +2 -2
- package/__chunks__/{chunk-XAWCWIPK.js → chunk-YBDOUTXJ.js} +2 -2
- package/__chunks__/{chunk-AP3KRVIK.js → chunk-YFU2725J.js} +2 -2
- package/__chunks__/chunk-YLFE6VKO.js +2 -0
- package/__chunks__/{chunk-M24QYE7Q.js → chunk-YQULUMIP.js} +2 -2
- package/__chunks__/{chunk-LM5URE36.js → chunk-YSL4HB3Q.js} +2 -2
- package/__chunks__/{chunk-6QTQYBUM.js → chunk-YSZQJ2BJ.js} +2 -2
- package/__chunks__/{chunk-TYDQIKJN.js → chunk-YUWLM62E.js} +2 -2
- package/__chunks__/{chunk-U42CFSIM.js → chunk-YWQFF4MR.js} +2 -2
- package/__chunks__/{chunk-FM3YQUDA.js → chunk-Z4EG2L2T.js} +2 -2
- package/__chunks__/{chunk-WNU3GX2F.js → chunk-ZB23WH3T.js} +2 -2
- package/__chunks__/{chunk-XNRWCS7K.js → chunk-ZECOEQSN.js} +2 -2
- package/__chunks__/{chunk-4TWP6MWZ.js → chunk-ZJ5FT4N6.js} +2 -2
- package/__chunks__/{chunk-N53YXSCL.js → chunk-ZQ3KOAQI.js} +2 -2
- package/__chunks__/{chunk-GEZQ3Y6Z.js → chunk-ZQZTQIU5.js} +2 -2
- package/__chunks__/{chunk-GQCBLUVH.js → chunk-ZRQUG5X4.js} +2 -2
- package/__chunks__/chunk-ZSMLVC5I.js +2 -0
- package/__chunks__/{chunk-DRWTIXQV.js → chunk-ZSSC74AM.js} +2 -2
- package/__chunks__/chunk-ZTBC5PGR.js +2 -0
- package/__chunks__/{chunk-WTCDQ77E.js → chunk-ZYEHKDLW.js} +2 -2
- package/__commonjs/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/SignWithDeviceModal.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
- 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 +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithMetamaskModal/SignWithMetamaskModal.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithMetamaskModal/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/components/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/index.js +1 -1
- package/__commonjs/UI/TransactionInfo/components/EventsList/EventsList.js +2 -2
- package/__commonjs/UI/TransactionInfo/components/EventsList/index.js +2 -2
- package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionToken.js +3 -3
- package/__commonjs/UI/TransactionsTable/TransactionsTable.js +11 -11
- package/__commonjs/UI/TransactionsTable/index.js +11 -11
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +1 -1
- package/__commonjs/UI/index.js +2 -2
- package/__commonjs/UI/ledger/LedgerLoginContainer/AddressTable/AddressTable.js +2 -2
- package/__commonjs/UI/ledger/LedgerLoginContainer/AddressTable/index.js +2 -2
- package/__commonjs/UI/pages/UnlockPage/index.js +1 -1
- package/__commonjs/UI/pages/index.js +1 -1
- package/__commonjs/UI/walletConnect/WalletConnectLoginButton/WalletConnectLoginButton.js +1 -1
- package/__commonjs/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
- package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/WalletConnectLoginContainer.js +1 -1
- package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/WalletConnectLoginContent/WalletConnectLoginContent.js +1 -1
- package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/WalletConnectLoginContent/index.js +1 -1
- package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
- package/__commonjs/UI/walletConnect/index.js +1 -1
- package/__commonjs/__mocks__/index.js +2 -2
- package/__commonjs/__mocks__/utils/index.js +2 -2
- package/__commonjs/__mocks__/utils/renderWithProvider.js +2 -2
- package/__commonjs/components/LogoutListener/LogoutListener.js +3 -3
- package/__commonjs/components/LogoutListener/helpers/index.js +3 -3
- package/__commonjs/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
- package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogout.js +3 -3
- package/__commonjs/components/LogoutListener/index.js +3 -3
- package/__commonjs/components/ProviderInitializer/ProviderInitializer.js +1 -1
- package/__commonjs/components/ProviderInitializer/index.js +1 -1
- package/__commonjs/constants/index.js +1 -1
- package/__commonjs/hooks/index.js +2 -2
- package/__commonjs/hooks/login/index.js +1 -1
- package/__commonjs/hooks/login/useWalletConnectV2Login.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/experimentalWebViewProvider/useInitiateExperimentalWebviewLogin.js +1 -1
- package/__commonjs/utils/index.js +1 -1
- package/__commonjs/utils/transactions/builtCallbackUrl.js +1 -1
- package/__commonjs/utils/transactions/index.js +1 -1
- package/__commonjs/web/hooks/index.js +1 -1
- package/__commonjs/web/hooks/useIdleTimer.js +1 -1
- package/__commonjs/web/index.js +1 -1
- package/__commonjs/wrappers/AppInitializer.js +1 -1
- package/__commonjs/wrappers/DappProvider/CustomComponents.js +3 -3
- package/__commonjs/wrappers/DappProvider/DappProvider.js +2 -2
- package/__commonjs/wrappers/DappProvider/index.js +2 -2
- 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/getGasStationMetadata.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/handleGuardianWarning.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/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/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/useCancelActionAndDispose.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/index.js +1 -1
- package/hooks/transactions/useTransactionsTracker/useCheckHangingTransactionsFallback.js +1 -1
- package/hooks/transactions/useTransactionsTracker/useCheckTransactionOnWsFailureFallback.js +1 -1
- package/hooks/transactions/useTransactionsTracker/useTransactionsTracker.js +1 -1
- package/hooks/transactions/useTransactionsTracker/useUpdateTrackedTransactions.js +1 -1
- package/hooks/transactions/useTransactionsTracker/useWebsocketPollingFallback.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 +2 -2
- package/providers/accountProvider.js +1 -1
- package/providers/experimentalWebViewProvider/ExperimentalWebviewProvider.js +1 -1
- package/providers/experimentalWebViewProvider/index.js +1 -1
- package/providers/experimentalWebViewProvider/useInitiateExperimentalWebviewLogin.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/__tests__/transformAndSignTransactions.test.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-22UGKRUB.js +0 -2
- package/__chunks__/chunk-3H2BHUV2.js +0 -2
- package/__chunks__/chunk-3PNHQE2H.js +0 -2
- package/__chunks__/chunk-432TA2MC.js +0 -2
- package/__chunks__/chunk-4ESAG56Q.js +0 -2
- package/__chunks__/chunk-4HPNUK2J.js +0 -2
- package/__chunks__/chunk-5NZ54Y45.js +0 -2
- package/__chunks__/chunk-5PNA5UWC.js +0 -2
- package/__chunks__/chunk-5QCQSUVF.js +0 -2
- package/__chunks__/chunk-5USPGBOM.js +0 -2
- package/__chunks__/chunk-6OXJRKFV.js +0 -2
- package/__chunks__/chunk-7EGLDUPU.js +0 -2
- package/__chunks__/chunk-7M4CKRD3.js +0 -2
- package/__chunks__/chunk-7T3BLCXH.js +0 -2
- package/__chunks__/chunk-7XB7PNZ4.js +0 -2
- package/__chunks__/chunk-AD5CZ5SV.js +0 -2
- package/__chunks__/chunk-BCPUEILI.js +0 -2
- package/__chunks__/chunk-BNTVNCDA.js +0 -2
- package/__chunks__/chunk-BU2FVPH5.js +0 -2
- package/__chunks__/chunk-CAFWTKV5.js +0 -2
- package/__chunks__/chunk-CSMS7QG7.js +0 -2
- package/__chunks__/chunk-CXGCVUBB.js +0 -2
- package/__chunks__/chunk-DG6X7RT5.js +0 -2
- package/__chunks__/chunk-DHRKWM2C.js +0 -2
- package/__chunks__/chunk-EA4BA56P.js +0 -2
- package/__chunks__/chunk-ESLZX3QM.js +0 -2
- package/__chunks__/chunk-FEILLO6Q.js +0 -2
- package/__chunks__/chunk-G4P4P26A.js +0 -2
- package/__chunks__/chunk-G5BAW7XZ.js +0 -2
- package/__chunks__/chunk-GKKGXFSO.js +0 -2
- package/__chunks__/chunk-HRMZLE5Y.js +0 -2
- package/__chunks__/chunk-HXJQTMOJ.js +0 -2
- package/__chunks__/chunk-IZCM667B.js +0 -2
- package/__chunks__/chunk-J3DCHFAN.js +0 -2
- package/__chunks__/chunk-JGAS4FG2.js +0 -2
- package/__chunks__/chunk-K3DETXZX.js +0 -2
- package/__chunks__/chunk-KX7VAO4B.js +0 -2
- package/__chunks__/chunk-LBZF2IEG.js +0 -2
- package/__chunks__/chunk-LFARB73S.js +0 -2
- package/__chunks__/chunk-LG2OZBAE.js +0 -2
- package/__chunks__/chunk-LK2PCB5P.js +0 -2
- package/__chunks__/chunk-LM3E4GFR.js +0 -2
- package/__chunks__/chunk-MFQ7QJRO.js +0 -2
- package/__chunks__/chunk-MI3EUIJC.js +0 -2
- package/__chunks__/chunk-NJE2P3GL.js +0 -2
- package/__chunks__/chunk-NNJMYIIH.js +0 -2
- package/__chunks__/chunk-OOU473IO.js +0 -2
- package/__chunks__/chunk-OSOS4V66.js +0 -2
- package/__chunks__/chunk-OUCRAC32.js +0 -2
- package/__chunks__/chunk-PFAYZXDV.js +0 -2
- package/__chunks__/chunk-Q2AOZGNW.js +0 -2
- package/__chunks__/chunk-RG7F5RQA.js +0 -2
- package/__chunks__/chunk-S3GA6MCB.js +0 -2
- package/__chunks__/chunk-S6V7YLBD.js +0 -2
- package/__chunks__/chunk-S76JD7DG.js +0 -2
- package/__chunks__/chunk-SJSXVQOT.js +0 -2
- package/__chunks__/chunk-TECC4QB4.js +0 -2
- package/__chunks__/chunk-UNF4S7FN.js +0 -2
- package/__chunks__/chunk-VG6OCFDT.js +0 -2
- package/__chunks__/chunk-VJ6LYC2O.js +0 -2
- package/__chunks__/chunk-W6WPYK65.js +0 -2
- package/__chunks__/chunk-WEEU6UZF.js +0 -2
- package/__chunks__/chunk-WF4H5WTI.js +0 -2
- package/__chunks__/chunk-XIIQX7O5.js +0 -2
- package/__chunks__/chunk-YRJQKCBY.js +0 -2
- package/__chunks__/chunk-YYXM5SJD.js +0 -2
- package/__chunks__/chunk-ZRETA65T.js +0 -2
- package/__chunks__/chunk-ZU3KI5E6.js +0 -2
- package/__chunks__/chunk-ZZIMV262.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Ka=Object.create;var Qe=Object.defineProperty,Ya=Object.defineProperties,Xa=Object.getOwnPropertyDescriptor,Za=Object.getOwnPropertyDescriptors,Ja=Object.getOwnPropertyNames,Lt=Object.getOwnPropertySymbols,Qa=Object.getPrototypeOf,Ir=Object.prototype.hasOwnProperty,Fn=Object.prototype.propertyIsEnumerable;var Mn=(e,t,r)=>t in e?Qe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T=(e,t)=>{for(var r in t||(t={}))Ir.call(t,r)&&Mn(e,r,t[r]);if(Lt)for(var r of Lt(t))Fn.call(t,r)&&Mn(e,r,t[r]);return e},b=(e,t)=>Ya(e,Za(t));var Bn=(e,t)=>{var r={};for(var o in e)Ir.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&Lt)for(var o of Lt(e))t.indexOf(o)<0&&Fn.call(e,o)&&(r[o]=e[o]);return r};var y=(e,t)=>()=>(e&&(t=e(e=0)),t);var j=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ee=(e,t)=>{for(var r in t)Qe(e,r,{get:t[r],enumerable:!0})},Un=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ja(t))!Ir.call(e,i)&&i!==r&&Qe(e,i,{get:()=>t[i],enumerable:!(o=Xa(t,i))||o.enumerable});return e};var A=(e,t,r)=>(r=e!=null?Ka(Qa(e)):{},Un(t||!e||!e.__esModule?Qe(r,"default",{value:e,enumerable:!0}):r,e)),et=e=>Un(Qe({},"__esModule",{value:!0}),e);var w=(e,t,r)=>new Promise((o,i)=>{var l=m=>{try{d(r.next(m))}catch(g){i(g)}},p=m=>{try{d(r.throw(m))}catch(g){i(g)}},d=m=>m.done?o(m.value):Promise.resolve(m.value).then(l,p);d((r=r.apply(e,t)).next())});var $n=j(Pt=>{"use strict";n();Pt.byteLength=tc;Pt.toByteArray=nc;Pt.fromByteArray=sc;var ce=[],ee=[],ec=typeof Uint8Array!="undefined"?Uint8Array:Array,br="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Le=0,Wn=br.length;Le<Wn;++Le)ce[Le]=br[Le],ee[br.charCodeAt(Le)]=Le;var Le,Wn;ee["-".charCodeAt(0)]=62;ee["_".charCodeAt(0)]=63;function Vn(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var o=r===t?0:4-r%4;return[r,o]}function tc(e){var t=Vn(e),r=t[0],o=t[1];return(r+o)*3/4-o}function rc(e,t,r){return(t+r)*3/4-r}function nc(e){var t,r=Vn(e),o=r[0],i=r[1],l=new ec(rc(e,o,i)),p=0,d=i>0?o-4:o,m;for(m=0;m<d;m+=4)t=ee[e.charCodeAt(m)]<<18|ee[e.charCodeAt(m+1)]<<12|ee[e.charCodeAt(m+2)]<<6|ee[e.charCodeAt(m+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return i===2&&(t=ee[e.charCodeAt(m)]<<2|ee[e.charCodeAt(m+1)]>>4,l[p++]=t&255),i===1&&(t=ee[e.charCodeAt(m)]<<10|ee[e.charCodeAt(m+1)]<<4|ee[e.charCodeAt(m+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function oc(e){return ce[e>>18&63]+ce[e>>12&63]+ce[e>>6&63]+ce[e&63]}function ic(e,t,r){for(var o,i=[],l=t;l<r;l+=3)o=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(e[l+2]&255),i.push(oc(o));return i.join("")}function sc(e){for(var t,r=e.length,o=r%3,i=[],l=16383,p=0,d=r-o;p<d;p+=l)i.push(ic(e,p,p+l>d?d:p+l));return o===1?(t=e[r-1],i.push(ce[t>>2]+ce[t<<4&63]+"==")):o===2&&(t=(e[r-2]<<8)+e[r-1],i.push(ce[t>>10]+ce[t>>4&63]+ce[t<<2&63]+"=")),i.join("")}});var Gn=j(kr=>{n();kr.read=function(e,t,r,o,i){var l,p,d=i*8-o-1,m=(1<<d)-1,g=m>>1,x=-7,f=r?i-1:0,S=r?-1:1,E=e[t+f];for(f+=S,l=E&(1<<-x)-1,E>>=-x,x+=d;x>0;l=l*256+e[t+f],f+=S,x-=8);for(p=l&(1<<-x)-1,l>>=-x,x+=o;x>0;p=p*256+e[t+f],f+=S,x-=8);if(l===0)l=1-g;else{if(l===m)return p?NaN:(E?-1:1)*(1/0);p=p+Math.pow(2,o),l=l-g}return(E?-1:1)*p*Math.pow(2,l-o)};kr.write=function(e,t,r,o,i,l){var p,d,m,g=l*8-i-1,x=(1<<g)-1,f=x>>1,S=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=o?0:l-1,v=o?1:-1,I=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(d=isNaN(t)?1:0,p=x):(p=Math.floor(Math.log(t)/Math.LN2),t*(m=Math.pow(2,-p))<1&&(p--,m*=2),p+f>=1?t+=S/m:t+=S*Math.pow(2,1-f),t*m>=2&&(p++,m/=2),p+f>=x?(d=0,p=x):p+f>=1?(d=(t*m-1)*Math.pow(2,i),p=p+f):(d=t*Math.pow(2,f-1)*Math.pow(2,i),p=0));i>=8;e[r+E]=d&255,E+=v,d/=256,i-=8);for(p=p<<i|d,g+=i;g>0;e[r+E]=p&255,E+=v,p/=256,g-=8);e[r+E-v]|=I*128}});var ro=j(Ue=>{"use strict";n();var Er=$n(),Be=Gn(),Hn=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ue.Buffer=u;Ue.SlowBuffer=dc;Ue.INSPECT_MAX_BYTES=50;var Ct=2147483647;Ue.kMaxLength=Ct;u.TYPED_ARRAY_SUPPORT=ac();!u.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function ac(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(r){return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.buffer}});Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.byteOffset}});function we(e){if(e>Ct)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Rr(e)}return zn(e,t,r)}u.poolSize=8192;function zn(e,t,r){if(typeof e=="string")return lc(e,t);if(ArrayBuffer.isView(e))return pc(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(le(e,ArrayBuffer)||e&&le(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(le(e,SharedArrayBuffer)||e&&le(e.buffer,SharedArrayBuffer)))return Pr(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var o=e.valueOf&&e.valueOf();if(o!=null&&o!==e)return u.from(o,t,r);var i=uc(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return u.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}u.from=function(e,t,r){return zn(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function Kn(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function cc(e,t,r){return Kn(e),e<=0?we(e):t!==void 0?typeof r=="string"?we(e).fill(t,r):we(e).fill(t):we(e)}u.alloc=function(e,t,r){return cc(e,t,r)};function Rr(e){return Kn(e),we(e<0?0:Nr(e)|0)}u.allocUnsafe=function(e){return Rr(e)};u.allocUnsafeSlow=function(e){return Rr(e)};function lc(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=Yn(e,t)|0,o=we(r),i=o.write(e,t);return i!==r&&(o=o.slice(0,i)),o}function Lr(e){for(var t=e.length<0?0:Nr(e.length)|0,r=we(t),o=0;o<t;o+=1)r[o]=e[o]&255;return r}function pc(e){if(le(e,Uint8Array)){var t=new Uint8Array(e);return Pr(t.buffer,t.byteOffset,t.byteLength)}return Lr(e)}function Pr(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var o;return t===void 0&&r===void 0?o=new Uint8Array(e):r===void 0?o=new Uint8Array(e,t):o=new Uint8Array(e,t,r),Object.setPrototypeOf(o,u.prototype),o}function uc(e){if(u.isBuffer(e)){var t=Nr(e.length)|0,r=we(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||Dr(e.length)?we(0):Lr(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Lr(e.data)}function Nr(e){if(e>=Ct)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ct.toString(16)+" bytes");return e|0}function dc(e){return+e!=e&&(e=0),u.alloc(+e)}u.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==u.prototype};u.compare=function(t,r){if(le(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),le(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(t)||!u.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var o=t.length,i=r.length,l=0,p=Math.min(o,i);l<p;++l)if(t[l]!==r[l]){o=t[l],i=r[l];break}return o<i?-1:i<o?1:0};u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};u.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return u.alloc(0);var o;if(r===void 0)for(r=0,o=0;o<t.length;++o)r+=t[o].length;var i=u.allocUnsafe(r),l=0;for(o=0;o<t.length;++o){var p=t[o];if(le(p,Uint8Array))l+p.length>i.length?u.from(p).copy(i,l):Uint8Array.prototype.set.call(i,p,l);else if(u.isBuffer(p))p.copy(i,l);else throw new TypeError('"list" argument must be an Array of Buffers');l+=p.length}return i};function Yn(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||le(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,o=arguments.length>2&&arguments[2]===!0;if(!o&&r===0)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Cr(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return to(e).length;default:if(i)return o?-1:Cr(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=Yn;function mc(e,t,r){var o=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return vc(this,t,r);case"utf8":case"utf-8":return Zn(this,t,r);case"ascii":return wc(this,t,r);case"latin1":case"binary":return Ac(this,t,r);case"base64":return xc(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ic(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}u.prototype._isBuffer=!0;function Pe(e,t,r){var o=e[t];e[t]=e[r],e[r]=o}u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)Pe(this,r,r+1);return this};u.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)Pe(this,r,r+3),Pe(this,r+1,r+2);return this};u.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)Pe(this,r,r+7),Pe(this,r+1,r+6),Pe(this,r+2,r+5),Pe(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?Zn(this,0,t):mc.apply(this,arguments)};u.prototype.toLocaleString=u.prototype.toString;u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:u.compare(this,t)===0};u.prototype.inspect=function(){var t="",r=Ue.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};Hn&&(u.prototype[Hn]=u.prototype.inspect);u.prototype.compare=function(t,r,o,i,l){if(le(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),o===void 0&&(o=t?t.length:0),i===void 0&&(i=0),l===void 0&&(l=this.length),r<0||o>t.length||i<0||l>this.length)throw new RangeError("out of range index");if(i>=l&&r>=o)return 0;if(i>=l)return-1;if(r>=o)return 1;if(r>>>=0,o>>>=0,i>>>=0,l>>>=0,this===t)return 0;for(var p=l-i,d=o-r,m=Math.min(p,d),g=this.slice(i,l),x=t.slice(r,o),f=0;f<m;++f)if(g[f]!==x[f]){p=g[f],d=x[f];break}return p<d?-1:d<p?1:0};function Xn(e,t,r,o,i){if(e.length===0)return-1;if(typeof r=="string"?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Dr(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=u.from(t,o)),u.isBuffer(t))return t.length===0?-1:jn(e,t,r,o,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):jn(e,[t],r,o,i);throw new TypeError("val must be string, number or Buffer")}function jn(e,t,r,o,i){var l=1,p=e.length,d=t.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(e.length<2||t.length<2)return-1;l=2,p/=2,d/=2,r/=2}function m(E,v){return l===1?E[v]:E.readUInt16BE(v*l)}var g;if(i){var x=-1;for(g=r;g<p;g++)if(m(e,g)===m(t,x===-1?0:g-x)){if(x===-1&&(x=g),g-x+1===d)return x*l}else x!==-1&&(g-=g-x),x=-1}else for(r+d>p&&(r=p-d),g=r;g>=0;g--){for(var f=!0,S=0;S<d;S++)if(m(e,g+S)!==m(t,S)){f=!1;break}if(f)return g}return-1}u.prototype.includes=function(t,r,o){return this.indexOf(t,r,o)!==-1};u.prototype.indexOf=function(t,r,o){return Xn(this,t,r,o,!0)};u.prototype.lastIndexOf=function(t,r,o){return Xn(this,t,r,o,!1)};function gc(e,t,r,o){r=Number(r)||0;var i=e.length-r;o?(o=Number(o),o>i&&(o=i)):o=i;var l=t.length;o>l/2&&(o=l/2);for(var p=0;p<o;++p){var d=parseInt(t.substr(p*2,2),16);if(Dr(d))return p;e[r+p]=d}return p}function fc(e,t,r,o){return Rt(Cr(t,e.length-r),e,r,o)}function Tc(e,t,r,o){return Rt(Ec(t),e,r,o)}function yc(e,t,r,o){return Rt(to(t),e,r,o)}function hc(e,t,r,o){return Rt(Lc(t,e.length-r),e,r,o)}u.prototype.write=function(t,r,o,i){if(r===void 0)i="utf8",o=this.length,r=0;else if(o===void 0&&typeof r=="string")i=r,o=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(o)?(o=o>>>0,i===void 0&&(i="utf8")):(i=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var l=this.length-r;if((o===void 0||o>l)&&(o=l),t.length>0&&(o<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var p=!1;;)switch(i){case"hex":return gc(this,t,r,o);case"utf8":case"utf-8":return fc(this,t,r,o);case"ascii":case"latin1":case"binary":return Tc(this,t,r,o);case"base64":return yc(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return hc(this,t,r,o);default:if(p)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),p=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function xc(e,t,r){return t===0&&r===e.length?Er.fromByteArray(e):Er.fromByteArray(e.slice(t,r))}function Zn(e,t,r){r=Math.min(e.length,r);for(var o=[],i=t;i<r;){var l=e[i],p=null,d=l>239?4:l>223?3:l>191?2:1;if(i+d<=r){var m,g,x,f;switch(d){case 1:l<128&&(p=l);break;case 2:m=e[i+1],(m&192)===128&&(f=(l&31)<<6|m&63,f>127&&(p=f));break;case 3:m=e[i+1],g=e[i+2],(m&192)===128&&(g&192)===128&&(f=(l&15)<<12|(m&63)<<6|g&63,f>2047&&(f<55296||f>57343)&&(p=f));break;case 4:m=e[i+1],g=e[i+2],x=e[i+3],(m&192)===128&&(g&192)===128&&(x&192)===128&&(f=(l&15)<<18|(m&63)<<12|(g&63)<<6|x&63,f>65535&&f<1114112&&(p=f))}}p===null?(p=65533,d=1):p>65535&&(p-=65536,o.push(p>>>10&1023|55296),p=56320|p&1023),o.push(p),i+=d}return Sc(o)}var qn=4096;function Sc(e){var t=e.length;if(t<=qn)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=qn));return r}function wc(e,t,r){var o="";r=Math.min(e.length,r);for(var i=t;i<r;++i)o+=String.fromCharCode(e[i]&127);return o}function Ac(e,t,r){var o="";r=Math.min(e.length,r);for(var i=t;i<r;++i)o+=String.fromCharCode(e[i]);return o}function vc(e,t,r){var o=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>o)&&(r=o);for(var i="",l=t;l<r;++l)i+=Pc[e[l]];return i}function Ic(e,t,r){for(var o=e.slice(t,r),i="",l=0;l<o.length-1;l+=2)i+=String.fromCharCode(o[l]+o[l+1]*256);return i}u.prototype.slice=function(t,r){var o=this.length;t=~~t,r=r===void 0?o:~~r,t<0?(t+=o,t<0&&(t=0)):t>o&&(t=o),r<0?(r+=o,r<0&&(r=0)):r>o&&(r=o),r<t&&(r=t);var i=this.subarray(t,r);return Object.setPrototypeOf(i,u.prototype),i};function F(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||F(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return i};u.prototype.readUintBE=u.prototype.readUIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||F(t,r,this.length);for(var i=this[t+--r],l=1;r>0&&(l*=256);)i+=this[t+--r]*l;return i};u.prototype.readUint8=u.prototype.readUInt8=function(t,r){return t=t>>>0,r||F(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||F(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||F(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||F(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||F(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};u.prototype.readIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||F(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return l*=128,i>=l&&(i-=Math.pow(2,8*r)),i};u.prototype.readIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||F(t,r,this.length);for(var i=r,l=1,p=this[t+--i];i>0&&(l*=256);)p+=this[t+--i]*l;return l*=128,p>=l&&(p-=Math.pow(2,8*r)),p};u.prototype.readInt8=function(t,r){return t=t>>>0,r||F(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||F(t,2,this.length);var o=this[t]|this[t+1]<<8;return o&32768?o|4294901760:o};u.prototype.readInt16BE=function(t,r){t=t>>>0,r||F(t,2,this.length);var o=this[t+1]|this[t]<<8;return o&32768?o|4294901760:o};u.prototype.readInt32LE=function(t,r){return t=t>>>0,r||F(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};u.prototype.readInt32BE=function(t,r){return t=t>>>0,r||F(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};u.prototype.readFloatLE=function(t,r){return t=t>>>0,r||F(t,4,this.length),Be.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||F(t,4,this.length),Be.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||F(t,8,this.length),Be.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||F(t,8,this.length),Be.read(this,t,!1,52,8)};function q(e,t,r,o,i,l){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<l)throw new RangeError('"value" argument is out of bounds');if(r+o>e.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var l=Math.pow(2,8*o)-1;q(this,t,r,o,l,0)}var p=1,d=0;for(this[r]=t&255;++d<o&&(p*=256);)this[r+d]=t/p&255;return r+o};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var l=Math.pow(2,8*o)-1;q(this,t,r,o,l,0)}var p=o-1,d=1;for(this[r+p]=t&255;--p>=0&&(d*=256);)this[r+p]=t/d&255;return r+o};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,o){return t=+t,r=r>>>0,o||q(this,t,r,1,255,0),this[r]=t&255,r+1};u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||q(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||q(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||q(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||q(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};u.prototype.writeIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);q(this,t,r,o,l-1,-l)}var p=0,d=1,m=0;for(this[r]=t&255;++p<o&&(d*=256);)t<0&&m===0&&this[r+p-1]!==0&&(m=1),this[r+p]=(t/d>>0)-m&255;return r+o};u.prototype.writeIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);q(this,t,r,o,l-1,-l)}var p=o-1,d=1,m=0;for(this[r+p]=t&255;--p>=0&&(d*=256);)t<0&&m===0&&this[r+p+1]!==0&&(m=1),this[r+p]=(t/d>>0)-m&255;return r+o};u.prototype.writeInt8=function(t,r,o){return t=+t,r=r>>>0,o||q(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};u.prototype.writeInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||q(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||q(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||q(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};u.prototype.writeInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||q(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function Jn(e,t,r,o,i,l){if(r+o>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Qn(e,t,r,o,i){return t=+t,r=r>>>0,i||Jn(e,t,r,4,34028234663852886e22,-34028234663852886e22),Be.write(e,t,r,o,23,4),r+4}u.prototype.writeFloatLE=function(t,r,o){return Qn(this,t,r,!0,o)};u.prototype.writeFloatBE=function(t,r,o){return Qn(this,t,r,!1,o)};function eo(e,t,r,o,i){return t=+t,r=r>>>0,i||Jn(e,t,r,8,17976931348623157e292,-17976931348623157e292),Be.write(e,t,r,o,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,o){return eo(this,t,r,!0,o)};u.prototype.writeDoubleBE=function(t,r,o){return eo(this,t,r,!1,o)};u.prototype.copy=function(t,r,o,i){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(o||(o=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<o&&(i=o),i===o||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-o&&(i=t.length-r+o);var l=i-o;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,o,i):Uint8Array.prototype.set.call(t,this.subarray(o,i),r),l};u.prototype.fill=function(t,r,o,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,o=this.length):typeof o=="string"&&(i=o,o=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t.length===1){var l=t.charCodeAt(0);(i==="utf8"&&l<128||i==="latin1")&&(t=l)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<o)throw new RangeError("Out of range index");if(o<=r)return this;r=r>>>0,o=o===void 0?this.length:o>>>0,t||(t=0);var p;if(typeof t=="number")for(p=r;p<o;++p)this[p]=t;else{var d=u.isBuffer(t)?t:u.from(t,i),m=d.length;if(m===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(p=0;p<o-r;++p)this[p+r]=d[p%m]}return this};var bc=/[^+/0-9A-Za-z-_]/g;function kc(e){if(e=e.split("=")[0],e=e.trim().replace(bc,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Cr(e,t){t=t||1/0;for(var r,o=e.length,i=null,l=[],p=0;p<o;++p){if(r=e.charCodeAt(p),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&l.push(239,191,189);continue}else if(p+1===o){(t-=3)>-1&&l.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&l.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&l.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;l.push(r)}else if(r<2048){if((t-=2)<0)break;l.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;l.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;l.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return l}function Ec(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function Lc(e,t){for(var r,o,i,l=[],p=0;p<e.length&&!((t-=2)<0);++p)r=e.charCodeAt(p),o=r>>8,i=r%256,l.push(i),l.push(o);return l}function to(e){return Er.toByteArray(kc(e))}function Rt(e,t,r,o){for(var i=0;i<o&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function le(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Dr(e){return e!==e}var Pc=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var o=r*16,i=0;i<16;++i)t[o+i]=e[r]+e[i];return t}()});var ao=j((bu,so)=>{n();var R=so.exports={},pe,ue;function _r(){throw new Error("setTimeout has not been defined")}function Or(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?pe=setTimeout:pe=_r}catch(e){pe=_r}try{typeof clearTimeout=="function"?ue=clearTimeout:ue=Or}catch(e){ue=Or}})();function no(e){if(pe===setTimeout)return setTimeout(e,0);if((pe===_r||!pe)&&setTimeout)return pe=setTimeout,setTimeout(e,0);try{return pe(e,0)}catch(t){try{return pe.call(null,e,0)}catch(r){return pe.call(this,e,0)}}}function Cc(e){if(ue===clearTimeout)return clearTimeout(e);if((ue===Or||!ue)&&clearTimeout)return ue=clearTimeout,clearTimeout(e);try{return ue(e)}catch(t){try{return ue.call(null,e)}catch(r){return ue.call(this,e)}}}var Ae=[],We=!1,Ce,Nt=-1;function Rc(){!We||!Ce||(We=!1,Ce.length?Ae=Ce.concat(Ae):Nt=-1,Ae.length&&oo())}function oo(){if(!We){var e=no(Rc);We=!0;for(var t=Ae.length;t;){for(Ce=Ae,Ae=[];++Nt<t;)Ce&&Ce[Nt].run();Nt=-1,t=Ae.length}Ce=null,We=!1,Cc(e)}}R.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Ae.push(new io(e,t)),Ae.length===1&&!We&&no(oo)};function io(e,t){this.fun=e,this.array=t}io.prototype.run=function(){this.fun.apply(null,this.array)};R.title="browser";R.browser=!0;R.env={};R.argv=[];R.version="";R.versions={};function ve(){}R.on=ve;R.addListener=ve;R.once=ve;R.off=ve;R.removeListener=ve;R.removeAllListeners=ve;R.emit=ve;R.prependListener=ve;R.prependOnceListener=ve;R.listeners=function(e){return[]};R.binding=function(e){throw new Error("process.binding is not supported")};R.cwd=function(){return"/"};R.chdir=function(e){throw new Error("process.chdir is not supported")};R.umask=function(){return 0}});var s,c,Nc,a,n=y(()=>{s=A(ro()),c=A(ao()),Nc=function(e){function t(){var o=this||self;return delete e.prototype.__magic__,o}if(typeof globalThis=="object")return globalThis;if(this)return t();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:t});var r=__magic__;return r}(Object),a=Nc});var co=y(()=>{"use strict";n()});var lo=y(()=>{"use strict";n()});var po=y(()=>{"use strict";n()});var Mr,uo=y(()=>{"use strict";n();Mr=(o=>(o.SetGuardian="SetGuardian",o.GuardAccount="GuardAccount",o.UnGuardAccount="UnGuardAccount",o))(Mr||{})});var mo=y(()=>{"use strict";n()});var Fr=y(()=>{"use strict";n()});var go=y(()=>{"use strict";n()});var fo=y(()=>{"use strict";n()});var To=y(()=>{"use strict";n()});var yo=y(()=>{"use strict";n()});var tt,Ve,Dt=y(()=>{"use strict";n();tt=require("@multiversx/sdk-web-wallet-cross-window-provider/out/CrossWindowProvider/CrossWindowProvider"),Ve=require("@multiversx/sdk-web-wallet-cross-window-provider/out/enums")});var de,ho,Fu,xo,Bu,te=y(()=>{"use strict";n();Dt();de=(S=>(S.ledger="ledger",S.walletconnect="walletconnect",S.walletconnectv2="walletconnectv2",S.wallet="wallet",S.crossWindow="crossWindow",S.iframe="iframe",S.extension="extension",S.passkey="passkey",S.metamask="metamask",S.opera="opera",S.extra="extra",S.none="",S))(de||{}),ho=(r=>(r.signTransactionsWithGuardianResponse="SIGN_TRANSACTIONS_WITH_GUARDIAN_RESPONSE",r.reloginRequest="RELOGIN_REQUEST",r))(ho||{}),Fu=T(T({},Ve.WindowProviderRequestEnums),ho),xo=(t=>(t.reloginResponse="RELOGIN_RESPONSE",t))(xo||{}),Bu=T(T({},Ve.WindowProviderResponseEnums),xo)});var So=y(()=>{"use strict";n()});var wo=y(()=>{"use strict";n()});var z=y(()=>{"use strict";n()});var Ao=y(()=>{"use strict";n()});var vo=y(()=>{"use strict";n()});var Io=y(()=>{"use strict";n()});var H=y(()=>{"use strict";n();fo();To();yo();te();So();wo();z();Ao();vo();Io()});var Br,bo,td,ko,rd,Eo,nd,od,id,Lo=y(()=>{"use strict";n();H();Br={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",extrasApiAddress:"https://devnet-extras-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",extrasApiAddress:"https://testnet-extras-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",extrasApiAddress:"https://extras-api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",metamaskSnapWalletAddress:"https://iframe-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3}},{chainId:bo,egldLabel:td}=Br["devnet"],{chainId:ko,egldLabel:rd}=Br["testnet"],{chainId:Eo,egldLabel:nd}=Br["mainnet"],od={["devnet"]:bo,["testnet"]:ko,["mainnet"]:Eo},id={[bo]:"devnet",[ko]:"testnet",[Eo]:"mainnet"}});var Ur=y(()=>{"use strict";n()});var me,Po=y(()=>{"use strict";n();me=require("@multiversx/sdk-web-wallet-provider")});var J,rt=y(()=>{"use strict";n();J=require("@multiversx/sdk-dapp-utils/out/constants/browserConstants")});var Co,Ro,Wr,ud,dd,No=y(()=>{"use strict";n();rt();Wr=String((Ro=(Co=J.safeWindow)==null?void 0:Co.navigator)==null?void 0:Ro.userAgent),ud=/^((?!chrome|android).)*safari/i.test(Wr),dd=/firefox/i.test(Wr)&&/windows/i.test(Wr)});var Vr,$r,Do,_t,_o,$e,L=y(()=>{"use strict";n();co();lo();po();uo();mo();Fr();go();Lo();Ur();Po();No();Vr=5e4,$r=1e9,Do=1,_t="logout",_o="login",$e="0"});var Ge,Ot=y(()=>{"use strict";n();Ge=()=>Date.now()/1e3});var Oo=y(()=>{"use strict";n()});var Mo=y(()=>{"use strict";n()});var Fo=y(()=>{"use strict";n();Ot();Oo();Mo()});var Gr={};Ee(Gr,{clear:()=>Mc,getItem:()=>_c,localStorageKeys:()=>ie,removeItem:()=>Oc,setItem:()=>Dc});var ie,Mt,Dc,_c,Oc,Mc,He=y(()=>{"use strict";n();Fo();ie={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event",guardianBreachToastDismissTimestamp:"sdk-dapp-guardian-breach-toast-dismiss-timestamp"},Mt=typeof localStorage!="undefined",Dc=({key:e,data:t,expires:r})=>{!Mt||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},_c=e=>{if(!Mt)return;let t=localStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Ge()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},Oc=e=>{!Mt||localStorage.removeItem(String(e))},Mc=()=>{!Mt||localStorage.clear()}});var Hr={};Ee(Hr,{clear:()=>Vo,getItem:()=>Uo,removeItem:()=>Wo,sessionStorageKeys:()=>Fc,setItem:()=>Bo,storage:()=>Bc});var Fc,Bo,Uo,Wo,Vo,Bc,$o=y(()=>{"use strict";n();Fc={address:"address",shard:"shard",toasts:"toasts",toastProgress:"toastProgress"},Bo=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Uo=e=>{let t=sessionStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Date.now()>=r.expires?(sessionStorage.removeItem(String(e)),null):r.data},Wo=e=>sessionStorage.removeItem(String(e)),Vo=()=>sessionStorage.clear(),Bc={setItem:Bo,getItem:Uo,removeItem:Wo,clear:Vo}});var ge,nt=y(()=>{"use strict";n();He();$o();ge={session:Hr,local:Gr}});var jr,C,Re,K=y(()=>{"use strict";n();jr=require("@reduxjs/toolkit");L();C=(0,jr.createAction)(_t),Re=(0,jr.createAction)(_o,e=>({payload:e}))});var zr,Go,Ho,Ne,qr,jo,ot,qo,Kr,Gd,Hd,jd,qd,zd,Kd,Yd,Xd,Ft,Bt=y(()=>{"use strict";n();zr=require("@multiversx/sdk-core"),Go=require("@reduxjs/toolkit"),Ho=require("redux-persist");L();nt();He();K();Ne={balance:"...",address:"",isGuarded:!1,nonce:0,txCount:0,scrCount:0,claimableRewards:$e},qr={address:"",websocketEvent:null,websocketBatchEvent:null,accounts:{"":Ne},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},jo=(0,Go.createSlice)({name:"accountInfoSlice",initialState:qr,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=r?new zr.Address(r).hex():""},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:Ne},e.shard=t.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,t)=>{let{address:r}=e;e.accounts[r].nonce=t.payload},setAccountShard:(e,t)=>{e.shard=t.payload},setLedgerAccount:(e,t)=>{e.ledgerAccount=t.payload},updateLedgerAccount:(e,t)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=t.payload.index,e.ledgerAccount.address=t.payload.address)},setWalletConnectAccount:(e,t)=>{e.walletConnectAccount=t.payload},setIsAccountLoading:(e,t)=>{e.isAccountLoading=t.payload,e.accountLoadingError=null},setAccountLoadingError:(e,t)=>{e.accountLoadingError=t.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,t)=>{e.websocketEvent={timestamp:Date.now(),message:t.payload}},setWebsocketBatchEvent:(e,t)=>{e.websocketBatchEvent={timestamp:Date.now(),data:t.payload}}},extraReducers:e=>{e.addCase(C,()=>(ge.local.removeItem(ie.loginExpiresAt),qr)),e.addCase(Re,(t,r)=>{let{address:o}=r.payload;t.address=o,t.publicKey=new zr.Address(o).toHex()}),e.addCase(Ho.REHYDRATE,(t,r)=>{var g;if(!((g=r.payload)!=null&&g.account))return;let{account:o}=r.payload,{address:i,shard:l,accounts:p,publicKey:d}=o;t.address=i,t.shard=l;let m=p&&i in p;t.accounts=m?p:qr.accounts,t.publicKey=d})}}),{setAccount:ot,setAddress:qo,setAccountNonce:Kr,setAccountShard:Gd,setLedgerAccount:Hd,updateLedgerAccount:jd,setWalletConnectAccount:qd,setIsAccountLoading:zd,setAccountLoadingError:Kd,setWebsocketEvent:Yd,setWebsocketBatchEvent:Xd}=jo.actions,Ft=jo.reducer});function it(){return new Date().setHours(new Date().getHours()+24)}function st(e){ge.local.setItem({key:ie.loginExpiresAt,data:e,expires:e})}var Yr=y(()=>{"use strict";n();nt();He()});var Ko,zo,Yo,sm,Xo,am,at,cm,lm,Zo,pm,um,dm,Ut,Wt=y(()=>{"use strict";n();Ko=require("@reduxjs/toolkit");Yr();te();K();zo={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,passkeyLogin:null,operaLogin:null,crossWindowLogin:null,iframeWindowLogin:null,isLoginSessionInvalid:!1,webviewLogin:null},Yo=(0,Ko.createSlice)({name:"loginInfoSlice",initialState:zo,reducers:{setLoginMethod:(e,t)=>{e.loginMethod=t.payload},setTokenLogin:(e,t)=>{e.tokenLogin=t.payload},setTokenLoginSignature:(e,t)=>{(e==null?void 0:e.tokenLogin)!=null&&(e.tokenLogin.signature=t.payload)},setWalletLogin:(e,t)=>{e.walletLogin=t.payload},setWalletConnectLogin:(e,t)=>{e.walletConnectLogin=t.payload},setLedgerLogin:(e,t)=>{e.ledgerLogin=t.payload},setWebviewLogin:(e,t)=>{e.webviewLogin=t.payload},invalidateLoginSession:e=>{e.isLoginSessionInvalid=!0},setLogoutRoute:(e,t)=>{e.logoutRoute=t.payload},setIsWalletConnectV2Initialized:(e,t)=>{e.isWalletConnectV2Initialized=t.payload}},extraReducers:e=>{e.addCase(C,()=>zo),e.addCase(Re,(t,r)=>{t.isLoginSessionInvalid=!1,t.loginMethod=r.payload.loginMethod,t.iframeLoginType=r.payload.iframeLoginType,st(it())})}}),{setLoginMethod:sm,setWalletConnectLogin:Xo,setLedgerLogin:am,setTokenLogin:at,setTokenLoginSignature:cm,setWalletLogin:lm,invalidateLoginSession:Zo,setLogoutRoute:pm,setIsWalletConnectV2Initialized:um,setWebviewLogin:dm}=Yo.actions,Ut=Yo.reducer});var Qo,Jo,ei,Tm,ym,hm,xm,Vt,$t=y(()=>{"use strict";n();Qo=require("@reduxjs/toolkit");K();Jo={},ei=(0,Qo.createSlice)({name:"modalsSlice",initialState:Jo,reducers:{setTxSubmittedModal:(e,t)=>{e.txSubmittedModal=t.payload},setNotificationModal:(e,t)=>{e.notificationModal=t.payload},clearTxSubmittedModal:e=>{e.txSubmittedModal=void 0},clearNotificationModal:e=>{e.notificationModal=void 0}},extraReducers:e=>{e.addCase(C,()=>Jo)}}),{setTxSubmittedModal:Tm,setNotificationModal:ym,clearTxSubmittedModal:hm,clearNotificationModal:xm}=ei.actions,Vt=ei.reducer});var ct,Gt=y(()=>{"use strict";n();ct=()=>typeof window!="undefined"&&typeof(window==null?void 0:window.location)!="undefined"});var W,fe=y(()=>{"use strict";n();Gt();W=()=>{if(!ct())return{pathname:"",hash:"",origin:"",href:"",search:""};let{location:{pathname:t,hash:r,origin:o,href:i,search:l}}=window;return{pathname:t,hash:r,origin:o,href:i,search:l}}});var Xr,ti=y(()=>{"use strict";n();fe();Xr=(e="")=>{let t=W(),r=e.startsWith("http")||e.startsWith("www.");return!t.origin||e.startsWith(t.origin)||r?e:`${t.origin}/${e.replace("/","")}`}});var ri=y(()=>{"use strict";n();je()});var ni,oi=y(()=>{"use strict";n();rt();ni=e=>{if(!J.safeWindow.location)return;if(!new URL(J.safeWindow.location.href).protocol.startsWith("http"))return J.safeWindow.location.reload();J.safeWindow.location.assign(e)}});var je=y(()=>{"use strict";n();ti();ri();fe();oi()});var ii,si,Ht,Zr=y(()=>{"use strict";n();je();ii=!1,si=(e=!0)=>{ii=e},Ht=({timeout:e=0,url:t})=>{ii||setTimeout(()=>{if(!!window)return ni(t)},e)}});function ai({callbackRoute:e,onLoginRedirect:t,options:r}){let o=Boolean(e),i=typeof t=="function";if(o&&e!=null){if(i)return t(e,r);Ht({url:e,timeout:Uc})}}var Uc,ci=y(()=>{"use strict";n();Zr();Uc=200});function li(e){return e[Math.floor(Math.random()*e.length)]}var pi=y(()=>{"use strict";n()});var ui=y(()=>{"use strict";n();Fr()});var Jr=y(()=>{"use strict";n();ci();pi();ui()});var di,mi,gi,Qr,Vc,fi,Zm,Jm,Qm,jt,qt=y(()=>{"use strict";n();di=require("@reduxjs/toolkit"),mi=A(require("lodash.omit")),gi=require("redux-persist");Ur();K();Jr();Qr={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000",roundDuration:6e3},Vc={network:Qr},fi=(0,di.createSlice)({name:"appConfig",initialState:Vc,reducers:{initializeNetworkConfig:(e,t)=>{let r=li(t.payload.walletConnectV2RelayAddresses),o=(0,mi.default)(t.payload,"walletConnectV2RelayAddresses");e.network=b(T(T({},e.network),o),{walletConnectV2RelayAddress:r})},updateNetworkConfig:(e,t)=>{e.network=T(T({},e.network),t.payload)},setCustomWalletAddress:(e,t)=>{e.network.customWalletAddress=t.payload}},extraReducers:e=>{e.addCase(C,t=>{t.network.customWalletAddress=void 0}),e.addCase(gi.REHYDRATE,(t,r)=>{var i,l;if(!((l=(i=r.payload)==null?void 0:i.network)!=null&&l.customWalletAddress))return;let{network:{customWalletAddress:o}}=r.payload;t.network.customWalletAddress=o})}}),{initializeNetworkConfig:Zm,updateNetworkConfig:Jm,setCustomWalletAddress:Qm}=fi.actions,jt=fi.reducer});var Ti,en,yi,ig,sg,ag,zt,Kt=y(()=>{"use strict";n();Ti=require("@reduxjs/toolkit");H();K();en={isSigning:!1,signedSessions:{}},yi=(0,Ti.createSlice)({name:"signedMessageInfoSliceState",initialState:en,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:o,errorMessage:i}=t.payload;i&&(e.errorMessage=i),e.isSigning=o.status==="pending",e.signedSessions[r]=T(T({},e.signedSessions[r]),o)},setSignSessionState:(e,t)=>T(T({},e),t.payload),clearSignedMessageInfo:()=>en},extraReducers:e=>{e.addCase(C,()=>en)}}),{setSignSession:ig,clearSignedMessageInfo:sg,setSignSessionState:ag}=yi.actions,zt=yi.reducer});var xi,Si,hi,wi,gg,fg,Tg,yg,Yt,Xt=y(()=>{"use strict";n();xi=require("@reduxjs/toolkit"),Si=require("redux-persist");H();Ot();K();hi={customToasts:[],transactionToasts:[]},wi=(0,xi.createSlice)({name:"toastsSlice",initialState:hi,reducers:{addCustomToast:(e,t)=>{let r=t.payload.toastId||`custom-toast-${e.customToasts.length+1}`,o=e.customToasts.findIndex(i=>i.toastId===r);if(o!==-1){e.customToasts[o]=b(T(T({},e.customToasts[o]),t.payload),{type:"custom",toastId:r});return}e.customToasts.push(b(T({},t.payload),{type:"custom",toastId:r}))},removeCustomToast:(e,t)=>{e.customToasts=e.customToasts.filter(r=>r.toastId!==t.payload)},addTransactionToast:(e,t)=>{e.transactionToasts.push({type:"transaction",startTimestamp:Ge(),toastId:t.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,t)=>{e.transactionToasts=e.transactionToasts.filter(r=>r.toastId!==t.payload)}},extraReducers:e=>{e.addCase(C,()=>hi),e.addCase(Si.REHYDRATE,(t,r)=>{var i,l;let o=(l=(i=r.customToasts)==null?void 0:i.filter(p=>!("component"in p)))!=null?l:[];t.customToasts=o})}}),{addCustomToast:gg,removeCustomToast:fg,addTransactionToast:Tg,removeTransactionToast:yg}=wi.actions,Yt=wi.reducer});var Ai,rn,nn,on,$c,tn,vi,wg,Ag,vg,Zt,Jt=y(()=>{"use strict";n();Ai=require("@reduxjs/toolkit");K();rn="Transaction failed",nn="Transaction successful",on="Processing transaction",$c="Transaction submitted",tn={},vi=(0,Ai.createSlice)({name:"transactionsInfo",initialState:tn,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:o}=t.payload;r!=null&&(e[r]={errorMessage:(o==null?void 0:o.errorMessage)||rn,successMessage:(o==null?void 0:o.successMessage)||nn,processingMessage:(o==null?void 0:o.processingMessage)||on,submittedMessage:(o==null?void 0:o.submittedMessage)||$c,transactionDuration:o==null?void 0:o.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>tn},extraReducers:e=>{e.addCase(C,()=>tn)}}),{clearTransactionsInfo:wg,setTransactionsDisplayInfo:Ag,clearTransactionsInfoForSessionId:vg}=vi.actions,Zt=vi.reducer});function Ii(e){return e!=null&&(Qc(e)||ol(e))}function Qt(e){return e!=null&&(el(e)||il(e))}function er(e){return e!=null&&(tl(e)||sl(e))}function bi(e){return e!=null&&(rl(e)||al(e))}function ki(e){return e!=null&&nl(e)}function Qc(e){return e!=null&&Hc.includes(e)}function el(e){return e!=null&&jc.includes(e)}function tl(e){return e!=null&&qc.includes(e)}function rl(e){return e!=null&&zc.includes(e)}function nl(e){return e!=null&&Kc.includes(e)}function ol(e){return e!=null&&Yc.includes(e)}function il(e){return e!=null&&Xc.includes(e)}function sl(e){return e!=null&&Zc.includes(e)}function al(e){return e!=null&&Jc.includes(e)}var Hc,jc,qc,zc,Kc,Yc,Xc,Zc,Jc,an=y(()=>{"use strict";n();te();Hc=["sent"],jc=["success"],qc=["fail","cancelled","timedOut"],zc=["invalid"],Kc=["timedOut"],Yc=["pending"],Xc=["success"],Zc=["fail","invalid"],Jc=["not executed"]});var Ei,Li,lt,cl,Pi,Ng,Dg,_g,Og,Mg,Fg,Bg,Ug,Wg,Vg,$g,tr,rr=y(()=>{"use strict";n();Ei=require("@reduxjs/toolkit"),Li=require("redux-persist");te();an();K();lt={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},cl={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Pi=(0,Ei.createSlice)({name:"transactionsSlice",initialState:lt,reducers:{moveTransactionsToSignedState:(e,t)=>{var m,g;let{sessionId:r,transactions:o,errorMessage:i,status:l,redirectRoute:p,customTransactionInformation:d}=t.payload;e.customTransactionInformationForSessionId[r]=T(T(T({},cl),((m=e.signedTransactions[r])==null?void 0:m.customTransactionInformation)||{}),e.customTransactionInformationForSessionId[r]||{}),e.signedTransactions[r]={transactions:o,status:l,errorMessage:i,redirectRoute:p,customTransactionInformation:T(T({},e.customTransactionInformationForSessionId[r]),d!=null?d:{})},((g=e==null?void 0:e.transactionsToSign)==null?void 0:g.sessionId)===r&&(e.transactionsToSign=lt.transactionsToSign)},clearSignedTransaction:(e,t)=>{e.signedTransactions[t.payload]&&delete e.signedTransactions[t.payload]},clearTransactionToSign:e=>{e!=null&&e.transactionsToSign&&(e.transactionsToSign=null)},updateSignedTransaction:(e,t)=>{e.signedTransactions=T(T({},e.signedTransactions),t.payload)},updateSignedTransactions:(e,t)=>{let{sessionId:r,status:o,errorMessage:i,transactions:l}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].status=o,i!=null&&(e.signedTransactions[r].errorMessage=i),l!=null&&(e.signedTransactions[r].transactions=l))},updateSignedTransactionStatus:(e,t)=>{var g,x,f,S,E,v,I,D;let{sessionId:r,status:o,errorMessage:i,transactionHash:l,serverTransaction:p,inTransit:d}=t.payload,m=(x=(g=e.signedTransactions)==null?void 0:g[r])==null?void 0:x.transactions;if(m!=null){e.signedTransactions[r].transactions=m.map(M=>M.hash===l?b(T(T({},p!=null?p:{}),M),{status:o,errorMessage:i,inTransit:d}):M);let U=(S=(f=e.signedTransactions[r])==null?void 0:f.transactions)==null?void 0:S.every(M=>Qt(M.status)),$=(v=(E=e.signedTransactions[r])==null?void 0:E.transactions)==null?void 0:v.some(M=>er(M.status)),oe=(D=(I=e.signedTransactions[r])==null?void 0:I.transactions)==null?void 0:D.every(M=>bi(M.status));U&&(e.signedTransactions[r].status="success"),$&&(e.signedTransactions[r].status="fail"),oe&&(e.signedTransactions[r].status="invalid")}},setTransactionsToSign:(e,t)=>{e.transactionsToSign=t.payload;let{sessionId:r,customTransactionInformation:o}=t.payload;e.customTransactionInformationForSessionId[r]=o,e.signTransactionsError=null},clearAllTransactionsToSign:e=>{e.transactionsToSign=lt.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=lt.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload},updateSignedTransactionsCustomTransactionInformation:(e,t)=>{let{sessionId:r,customTransactionInformationOverrides:o}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].customTransactionInformation=T(T({},e.signedTransactions[r].customTransactionInformation),o))}},extraReducers:e=>{e.addCase(C,()=>lt),e.addCase(Li.REHYDRATE,(t,r)=>{var p;if(t.signTransactionsCancelMessage=null,!((p=r.payload)!=null&&p.transactions))return;let{signedTransactions:o,customTransactionInformationForSessionId:i}=r.payload.transactions,l=Object.entries(o).reduce((d,[m,g])=>{let x=new Date(m),f=new Date;return f.setHours(f.getHours()+5),f-x>0||(d[m]=g),d},{});i!=null&&(t.customTransactionInformationForSessionId=i),o!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:Ng,updateSignedTransactions:Dg,setTransactionsToSign:_g,clearAllTransactionsToSign:Og,clearAllSignedTransactions:Mg,clearSignedTransaction:Fg,clearTransactionToSign:Bg,setSignTransactionsError:Ug,setSignTransactionsCancelMessage:Wg,moveTransactionsToSignedState:Vg,updateSignedTransactionsCustomTransactionInformation:$g}=Pi.actions,tr=Pi.reducer});var Ci,cn,Ri,qg,zg,Kg,Yg,nr,or=y(()=>{"use strict";n();Ci=require("@reduxjs/toolkit");K();cn={},Ri=(0,Ci.createSlice)({name:"batchTransactionsSlice",initialState:cn,reducers:{setBatchTransactions:(e,t)=>{e[t.payload.id]=t.payload},updateBatchTransactions:(e,t)=>{e[t.payload.id]=t.payload},clearBatchTransactions:(e,t)=>{delete e[t.payload.batchId]},clearAllBatchTransactions:()=>cn},extraReducers:e=>{e.addCase(C,()=>cn)}}),{setBatchTransactions:qg,updateBatchTransactions:zg,clearBatchTransactions:Kg,clearAllBatchTransactions:Yg}=Ri.actions,nr=Ri.reducer});var Di,Ni,_i,Qg,Oi,ln=y(()=>{"use strict";n();Di=require("@reduxjs/toolkit");K();Ni={},_i=(0,Di.createSlice)({name:"dappConfigSlice",initialState:Ni,reducers:{setDappConfig:(e,t)=>t.payload},extraReducers:e=>{e.addCase(C,()=>Ni)}}),{setDappConfig:Qg}=_i.actions,Oi=_i.reducer});var Te=y(()=>{"use strict";n();Bt();Wt();$t();qt();Kt();Xt();Jt();rr();or();ln()});var pn=y(()=>{"use strict";n()});var Bi,dl,ml,De,ar=y(()=>{"use strict";n();Bi=require("@reduxjs/toolkit");pn();Bt();or();ln();Wt();$t();qt();Kt();Xt();Jt();rr();dl={["account"]:Ft,["dappConfig"]:Oi,["loginInfo"]:Ut,["modals"]:Vt,["networkConfig"]:jt,["signedMessageInfo"]:zt,["toasts"]:Yt,["transactionsInfo"]:Zt,["transactions"]:tr,["batchTransactions"]:nr},ml=(e={})=>(0,Bi.combineReducers)(T(T({},dl),e)),De=ml});var $i={};Ee($i,{default:()=>Pl,sessionStorageReducers:()=>un});function Ie(e,t=[]){return{key:e,version:1,storage:Wi.default,blacklist:t}}var Y,Ui,Wi,gl,pt,fl,Tl,yl,hl,xl,Sl,wl,Al,vl,Il,Vi,bl,un,kl,El,Ll,Pl,Gi=y(()=>{"use strict";n();Y=require("redux-persist"),Ui=A(require("redux-persist/lib/storage")),Wi=A(require("redux-persist/lib/storage/session"));ar();Te();Bt();or();Wt();$t();qt();Kt();Xt();Jt();rr();pn();gl={persistReducersStorageType:"localStorage"},pt={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},fl=Ie(pt["account"]),Tl=Ie(pt["loginInfo"]),yl=Ie(pt["modals"]),hl=Ie(pt["networkConfig"]),xl={2:e=>b(T({},e),{networkConfig:Qr})};Sl=Ie("sdk-dapp-transactionsInfo"),wl=Ie("sdk-dapp-transactions",["transactionsToSign"]),Al=Ie("sdk-dapp-batchTransactions",["batchTransactions"]),vl=Ie("sdk-dapp-toasts"),Il=Ie("sdk-dapp-signedMessageInfo"),Vi={key:"sdk-dapp-store",version:2,storage:Ui.default,whitelist:Object.keys(pt),migrate:(0,Y.createMigrate)(xl,{debug:!1})},bl=b(T({},Vi),{whitelist:[]}),un={["toasts"]:(0,Y.persistReducer)(vl,Yt),["transactions"]:(0,Y.persistReducer)(wl,tr),["transactionsInfo"]:(0,Y.persistReducer)(Sl,Zt),["batchTransactions"]:(0,Y.persistReducer)(Al,nr),["signedMessageInfo"]:(0,Y.persistReducer)(Il,zt)},kl=b(T({},un),{["account"]:(0,Y.persistReducer)(fl,Ft),["loginInfo"]:(0,Y.persistReducer)(Tl,Ut),["modals"]:(0,Y.persistReducer)(yl,Vt),["networkConfig"]:(0,Y.persistReducer)(hl,jt)}),El=gl.persistReducersStorageType==="localStorage",Ll=El?(0,Y.persistReducer)(Vi,De(un)):(0,Y.persistReducer)(bl,De(kl)),Pl=Ll});var Hi={};Ee(Hi,{default:()=>Cl});var Cl,ji=y(()=>{"use strict";n();ar();Cl=De()});var qi={};Ee(qi,{default:()=>Nl});var re,Rl,Nl,zi=y(()=>{"use strict";n();re=require("redux-persist"),Rl=[re.FLUSH,re.REHYDRATE,re.PAUSE,re.PERSIST,re.PURGE,re.REGISTER],Nl=Rl});var Xi={};Ee(Xi,{default:()=>Yi});function Yi(e){return(0,Ki.persistStore)(e)}var Ki,Zi=y(()=>{"use strict";n();Ki=require("redux-persist")});var Vs=j((f0,Ws)=>{n();function Rp(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}Ws.exports=Rp});var ua=j((VE,pa)=>{n();var zp=typeof a=="object"&&a&&a.Object===Object&&a;pa.exports=zp});var ma=j(($E,da)=>{n();var Kp=ua(),Yp=typeof self=="object"&&self&&self.Object===Object&&self,Xp=Kp||Yp||Function("return this")();da.exports=Xp});var En=j((GE,ga)=>{n();var Zp=ma(),Jp=Zp.Symbol;ga.exports=Jp});var ha=j((HE,ya)=>{n();var fa=En(),Ta=Object.prototype,Qp=Ta.hasOwnProperty,eu=Ta.toString,At=fa?fa.toStringTag:void 0;function tu(e){var t=Qp.call(e,At),r=e[At];try{e[At]=void 0;var o=!0}catch(l){}var i=eu.call(e);return o&&(t?e[At]=r:delete e[At]),i}ya.exports=tu});var Sa=j((jE,xa)=>{n();var ru=Object.prototype,nu=ru.toString;function ou(e){return nu.call(e)}xa.exports=ou});var Ia=j((qE,va)=>{n();var wa=En(),iu=ha(),su=Sa(),au="[object Null]",cu="[object Undefined]",Aa=wa?wa.toStringTag:void 0;function lu(e){return e==null?e===void 0?cu:au:Aa&&Aa in Object(e)?iu(e):su(e)}va.exports=lu});var ka=j((zE,ba)=>{n();var pu=Array.isArray;ba.exports=pu});var La=j((KE,Ea)=>{n();function uu(e){return e!=null&&typeof e=="object"}Ea.exports=uu});var Ca=j((YE,Pa)=>{n();var du=Ia(),mu=ka(),gu=La(),fu="[object String]";function Tu(e){return typeof e=="string"||!mu(e)&&gu(e)&&du(e)==fu}Pa.exports=Tu});var Su={};Ee(Su,{WalletConnectV2Error:()=>Ba,useWalletConnectV2Login:()=>xu});module.exports=et(Su);n();var Z=require("react");n();n();n();var ns=require("react"),qe=require("react-redux");n();var dn=require("@reduxjs/toolkit"),ts=require("react-redux/lib/utils/Subscription");Te();n();var Mi=A(require("lodash.throttle"));L();Te();Yr();nt();He();var ll=[_t],ir=!1,pl=(0,Mi.default)(()=>{st(it())},5e3),Fi=e=>t=>r=>{if(ll.includes(r.type))return t(r);let o=e.getState(),i=ge.local.getItem(ie.loginExpiresAt);if(!Boolean(o==null?void 0:o.account.address))return t(r);if(i==null)return st(it()),t(r);let p=Date.now();return i-p<0&&!ir?setTimeout(()=>{ir=!0,e.dispatch(Zo())},1e3):(ir&&(ir=!1),pl()),t(r)};n();n();function sr(){return typeof sessionStorage!="undefined"}var Ji=sr()?(Gi(),et($i)).default:(ji(),et(Hi)).default,Qi=sr()?(zi(),et(qi)).default:[],es=sr()?(Zi(),et(Xi)).default:e=>e;ar();var P=(0,dn.configureStore)({reducer:Ji,middleware:e=>e({serializableCheck:{ignoredActions:[...Qi,Kr.type,ot.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(Fi)}),rs=(0,ts.createSubscription)(P),Jf=es(P),Qf=(0,dn.configureStore)({reducer:De});var Dl={store:P,subscription:rs},mn=(0,ns.createContext)(Dl),nT=(0,qe.createStoreHook)(mn),cr=(0,qe.createDispatchHook)(mn),B=(0,qe.createSelectorHook)(mn);n();n();Te();n();var os=A(require("lodash.isequal")),lr=require("reselect"),h=(0,lr.createSelectorCreator)(lr.defaultMemoize,os.default);var ye=e=>e.account,ut=h(ye,e=>e.address),ze=h(ye,ut,(e,t)=>t in e.accounts?e.accounts[t]:Ne),_l=h(ye,ze,(e,t)=>{let i=e,{accounts:r}=i,o=Bn(i,["accounts"]);return b(T({},o),{address:t.address,account:t})}),cT=h(ze,e=>e.balance),Ol=h(ze,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),lT=h(ye,e=>e.shard),pT=h(ye,e=>e.ledgerAccount),uT=h(ye,e=>e.walletConnectAccount),dT=h(ye,e=>e.isAccountLoading),mT=h(ye,e=>e.accountLoadingError),Ml=h(ye,e=>e.websocketEvent),Fl=h(ye,e=>e.websocketBatchEvent);n();var Bl=e=>e.dappConfig,TT=h(Bl,e=>e.shouldUseWebViewProvider);n();var X=e=>e.loginInfo,is=h(X,e=>e.loginMethod),dt=h(X,ut,(e,t)=>Boolean(t)),ST=h(X,e=>e.walletConnectLogin),wT=h(X,e=>e.ledgerLogin),ss=h(X,e=>e.walletLogin),AT=h(X,e=>e.isLoginSessionInvalid),as=h(X,e=>e.tokenLogin),cs=h(X,e=>e.logoutRoute),Ul=h(X,e=>e.isWalletConnectV2Initialized);n();var ls=e=>e.modals,bT=h(ls,e=>e.txSubmittedModal),kT=h(ls,e=>e.notificationModal);n();var be=e=>e.networkConfig,ps=h(be,e=>e.network.chainId),PT=h(be,e=>e.network.roundDuration),CT=h(be,e=>e.network.walletConnectBridgeAddress),us=h(be,e=>e.network.walletConnectV2RelayAddress),ds=h(be,e=>e.network.walletConnectV2ProjectId),ms=h(be,e=>e.network.walletConnectV2Options),gs=h(be,e=>e.network.walletConnectDeepLink),_e=h(be,e=>e.network),Wl=h(_e,e=>e.apiAddress),fs=h(_e,e=>e.explorerAddress),RT=h(_e,e=>{var t;return(t=e.customWalletAddress)!=null?t:e.walletAddress}),NT=h(_e,e=>e.xAliasAddress),DT=h(_e,e=>e.egldLabel);n();var pr=e=>e.signedMessageInfo,MT=h(pr,e=>e.isSigning),FT=h(pr,e=>e.errorMessage),BT=h(pr,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]}),UT=h(pr,e=>{let t=Object.keys(e.signedSessions),r=t.length;return t.length>0?t[r-1]:""});n();var Ts=e=>e.toasts,$T=h(Ts,e=>e.customToasts),GT=h(Ts,e=>e.transactionToasts);n();Te();var ys={errorMessage:rn,successMessage:nn,processingMessage:on},Vl=e=>e.transactionsInfo,KT=h(Vl,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[t])||ys);n();n();var Me=require("@multiversx/sdk-core");L();n();n();n();function ur(e){try{let t=atob(e),r=btoa(t),o=s.Buffer.from(e,"base64").toString(),i=s.Buffer.from(o).toString("base64"),l=e===r||r.startsWith(e),p=e===i||i.startsWith(e);if(l&&p)return!0}catch(t){return!1}return!1}function Oe(e){return ur(e)?atob(e):e}n();n();n();n();var hs=e=>{let t=e!=null?e:"";return ur(t)?s.Buffer.from(s.Buffer.from(t,"base64").toString().trim()):s.Buffer.from(t.trim())};n();L();var dr=({data:e,onlySetGuardian:t})=>e?t?e.startsWith("SetGuardian"):Object.values(Mr).some(r=>e.startsWith(r)):!1;function gn(e){var o,i,l;let t=T({},e);dr({data:t.data,onlySetGuardian:!0})&&(delete t.senderUsername,delete t.receiverUsername);let r=new Me.Transaction(T(T(b(T(b(T(T({value:BigInt(t.value.valueOf()),data:hs(t.data),nonce:BigInt(t.nonce.valueOf()),receiver:new Me.Address(t.receiver)},t.receiverUsername?{receiverUsername:t.receiverUsername}:{}),t.relayer?{relayer:new Me.Address(t.relayer)}:{}),{sender:new Me.Address(t.sender)}),t.senderUsername?{senderUsername:t.senderUsername}:{}),{gasLimit:BigInt((o=t.gasLimit.valueOf())!=null?o:Vr),gasPrice:BigInt((i=t.gasPrice.valueOf())!=null?i:$r),chainID:t.chainID.valueOf(),version:(l=t.version)!=null?l:Do}),t.options?{options:t.options}:{}),t.guardian?{guardian:new Me.Address(t.guardian)}:{}));return t.relayerSignature&&(r.relayerSignature=s.Buffer.from(t.relayerSignature,"hex")),t.guardianSignature&&(r.guardianSignature=s.Buffer.from(t.guardianSignature,"hex")),t.signature&&(r.signature=s.Buffer.from(t.signature,"hex")),r}n();n();L();n();n();n();var jl=require("@multiversx/sdk-core");n();L();n();var zl=require("@multiversx/sdk-core");H();n();var xs=require("@multiversx/sdk-core");function ql(e){try{return xs.Address.isValid(e)}catch(t){return!1}}function mt(e){return/^\w+$/.test(e)&&ql(e)}n();n();n();var Kl=require("@multiversx/sdk-core"),Yl=A(require("bignumber.js"));te();n();n();n();var fn="blocks";n();n();n();n();z();n();n();z();n();n();n();var tp=A(require("bignumber.js"));L();n();var ep=require("@multiversx/sdk-core"),Tn=A(require("bignumber.js"));L();n();var Jl=A(require("bignumber.js"));n();Tn.default.config({ROUNDING_MODE:Tn.default.ROUND_FLOOR});n();n();n();L();n();n();n();n();L();n();L();n();var rp=require("@multiversx/sdk-core"),np=A(require("bignumber.js"));L();n();var hn=require("@multiversx/sdk-core"),ip=A(require("bignumber.js"));L();n();n();var op=A(require("bignumber.js"));L();n();L();n();n();n();n();n();n();L();n();L();n();L();n();z();var ap=["reDelegateRewards","claimRewards","unBond"],cp=["wrapEgld","unwrapEgld"],lp=["unStake"],pp=["unDelegate"];n();n();n();L();n();var mp=A(require("bignumber.js"));n();n();z();n();var fp=A(require("bignumber.js"));n();n();n();n();var yp=A(require("bignumber.js"));H();n();n();var hp=require("@multiversx/sdk-core");n();n();te();n();var wp=require("@multiversx/sdk-web-wallet-provider");L();n();var Sp=A(require("qs"));n();je();Gt();n();Gt();var Nw={search:ct()?window.location.search:"",removeParams:[]};n();n();n();fe();n();z();n();n();fe();n();var Ap=A(require("linkifyjs"));n();L();n();var vp=A(require("bignumber.js"));n();H();n();n();te();n();te();n();n();n();z();n();z();n();var Ip=A(require("bignumber.js"));L();z();n();z();n();var ks=require("react");H();n();n();z();n();n();var bp=require("@multiversx/sdk-core"),kp=A(require("bignumber.js"));z();n();H();n();n();H();var bv=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];n();var Es=require("react");H();fe();n();var Lp=require("react");z();var Dv=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];an();n();var gr=e=>e.transactions,Tt=h(gr,e=>e.signedTransactions),vI=h(gr,e=>e.signTransactionsError),II=h(gr,e=>e.signTransactionsCancelMessage),fr=e=>t=>Object.entries(t).reduce((r,[o,i])=>(e(i.status)&&(r[o]=i),r),{}),bI=h(Tt,fr(Ii)),kI=h(Tt,fr(Qt)),EI=h(Tt,fr(er)),LI=h(Tt,fr(ki)),PI=h(gr,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:b(T({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>gn(r)))||[]})}),CI=h(Tt,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});var Sn=()=>B(ze);n();n();n();n();n();var Ls=require("@multiversx/sdk-extension-provider"),Ps=require("@multiversx/sdk-hw-provider"),Cs=require("@multiversx/sdk-metamask-provider/out/metamaskProvider"),Rs=require("@multiversx/sdk-opera-provider"),Ns=require("@multiversx/sdk-passkey-provider/out"),Ds=require("@multiversx/sdk-web-wallet-provider");L();Dt();n();var yt=require("@multiversx/sdk-web-wallet-iframe-provider/out"),Pp=require("@multiversx/sdk-web-wallet-iframe-provider/out/constants");te();n();var Tr={},yr=Ke;var ne=e=>{switch(e==null?void 0:e.constructor){case Ds.WalletProvider:return"wallet";case yr:return"walletconnectv2";case Ps.HWProvider:return"ledger";case Ls.ExtensionProvider:return"extension";case Ns.PasskeyProvider:return"passkey";case Cs.MetamaskProvider:return"metamask";case Rs.OperaProvider:return"opera";case tt.CrossWindowProvider:return"crossWindow";case yt.IframeProvider:return"iframe";case Ke:return"";default:return"extra"}};var se=e=>`Unable to perform ${e}, Provider not initialized`,Ke=class{init(){return Promise.resolve(!1)}getAccount(){throw new Error(se("getAccount"))}setAccount(t){throw new Error(se(`setAccount: ${t}`))}login(t){throw new Error(se(`login with options: ${t}`))}logout(t){throw new Error(se(`logout with options: ${t}`))}getAddress(){throw new Error(se("getAddress"))}isInitialized(){return!1}isConnected(){return!1}sendTransaction(t,r){throw new Error(se(`sendTransaction with transactions: ${t} options: ${r}`))}signTransaction(t,r){throw new Error(se(`signTransaction with transactions: ${t} options: ${r}`))}signTransactions(t,r){throw new Error(se(`signTransactions with transactions: ${t} options: ${r}`))}signMessage(t,r){throw new Error(se(`signTransactions with ${t} and options ${r}`))}sendCustomMessage({method:t,params:r}){throw new Error(se(`sendCustomMessage with method: ${t} params: ${r}`))}sendCustomRequest(t){throw new Error(se(`sendSessionEvent with options: ${t}`))}ping(){return Promise.resolve(!1)}},ht=new Ke;var _s=ht;function Os(e){_s=e}function ae(){return _s||ht}var Ms=()=>{let e=ae(),t=ne(e);return{provider:e,providerType:t}};n();n();n();n();n();n();n();var xt=A(require("react"));var Ab=(0,xt.createContext)({}),vb=P.getState();n();var Bs=A(require("react"));n();var wn=A(require("react")),Cp=A(require("axios"));n();n();n();var hr=require("react");function Us(e,t=[]){let r=(0,hr.useRef)(!0);(0,hr.useEffect)(()=>{r.current?r.current=!1:e()},t)}K();Te();te();n();n();var js=A(Vs());rt();var $s,Gs,Hs,Np=(Hs=(Gs=($s=J.safeWindow)==null?void 0:$s.location)==null?void 0:Gs.origin)==null?void 0:Hs.includes("localhost"),qs=e=>{if(!(0,js.default)(e))return Boolean(e);let r=T({},e);return Boolean(Np)&&delete r.origin,Object.keys(r).length>0};n();function An(){return dt(P.getState())}Jr();n();rt();K();H();n();function zs(e,t){if(!e){typeof console!="undefined"&&console.warn(t);try{throw new Error(t)}catch(r){}}}function Ks(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,o]=Dp(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let l=i[0],p=l.replace(/(.)\/+$/,"$1"),d=i.slice(1);return{params:o.reduce((g,x,f)=>{if(x==="*"){let S=d[f]||"";p=l.slice(0,l.length-S.length).replace(/(.)\/+$/,"$1")}return g[x]=_p(d[f]||"",x),g},{}),pathname:l,pathnameBase:p,pattern:e}}function Dp(e,t=!1,r=!0){zs(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let o=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(p,d)=>(o.push(d),"([^\\/]+)"));return e.endsWith("*")?(o.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i+=r?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)",[new RegExp(i,t?void 0:"i"),o]}function _p(e,t){try{return decodeURIComponent(e)}catch(r){return zs(!1,`The value for the URL param "${t}" will not be decoded because the string "${e}" is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),e}}n();n();fe();var Ys=()=>{let{search:e}=W(),t=new URLSearchParams(e),r=Object.fromEntries(t),o=r==null?void 0:r.address;return mt(o)?o:null};n();n();n();n();n();var Xs=require("@lifeomic/axios-fetch"),vn=A(require("axios")),In=(0,Xs.buildAxiosFetch)(vn.default),bn=(e,t)=>w(void 0,null,function*(){if(!e.ok)throw new Error(`HTTP error! Status: ${e.status}`);let o=e.clone().json(),[i]=yield Promise.all([o]);return{data:i,status:e.status,statusText:e.statusText,headers:e.headers,config:t}});function Op(e,t,r){return w(this,null,function*(){try{let o=yield In(e,T({method:"POST",body:t?JSON.stringify(t):void 0,headers:T({"Content-Type":"application/json"},(r==null?void 0:r.headers)||{})},r));return bn(o,r)}catch(o){throw console.error("Fetch Error:",o),o}})}function Mp(e,t){return w(this,null,function*(){try{let r=yield In(e,t);if(!r.ok)throw new Error(`HTTP error! Status: ${r.status}`);return bn(r,t)}catch(r){throw console.error("Fetch Error:",r),r}})}function Fp(e,t,r){return w(this,null,function*(){try{let o=yield In(e,T({method:"PATCH",body:t?JSON.stringify(t):void 0,headers:(r==null?void 0:r.headers)||{}},r));if(!o.ok)throw new Error(`HTTP error! Status: ${o.status}`);return bn(o,r)}catch(o){throw console.error("Fetch Error:",o),o}})}var St=vn.default.create();St.get=Mp;St.post=Op;St.patch=Fp;n();n();var Bp=A(require("axios"));n();var Wp=A(require("swr"));n();n();function Zs(){let e=ae();return ne(e)}n();te();n();function wt(e){return Zs()===e}function xr(){let e=P.getState(),t=ae(),r=ut(e),o=dt(e),i=ss(e);if(!t)throw"provider not initialized";return wt("ledger")&&o?new Promise(l=>{l(r)}):!wt("")&&!wt("wallet")&&!wt("extra")?t.getAddress():new Promise(l=>{let p=Ys();i!=null&&p&&l(p),o&&l(r),l("")})}n();n();n();fe();var Js=()=>{let{search:e}=W(),t=new URLSearchParams(e),r=Object.fromEntries(t);return r==null?void 0:r.accessToken};var Qs=()=>{var r;let e=Js(),t=X(P.getState());return e!=null?e:(r=t.webviewLogin)==null?void 0:r.data};n();K();H();n();Te();n();Te();n();var ea=require("@multiversx/sdk-core");H();je();Zr();nt();He();je();var ta=({callbackUrl:e,onRedirect:t})=>{typeof t=="function"?t(e):e&&Ht({url:e})},$p=e=>{let t=ge.local.getItem(ie.logoutEvent),{data:r}=t?JSON.parse(t):{data:e};e===r&&(ge.local.setItem({key:ie.logoutEvent,data:e,expires:0}),ge.local.removeItem(ie.logoutEvent))},Gp=500;function ra(i,l){return w(this,arguments,function*(e,t,r=Boolean(Qs()),o={shouldBroadcastLogoutAcrossTabs:!0,hasConsentPopup:!1}){var D,U,$;let p=yield xr(),d=ae(),m=ne(d),g=m==="wallet",x=m==="extra",f=((D=d==null?void 0:d.isInitialized)==null?void 0:D.call(d))===!0;if(r&&(d==null?void 0:d.relogin)!=null)return d.relogin();p&&o.shouldBroadcastLogoutAcrossTabs&&$p(p);let S=Xr(e),E=W(),{pathname:v,origin:I}=new URL(decodeURIComponent(S));if((Ks(E.pathname,v)||g&&f||((U=J.safeWindow)==null?void 0:U.opener)&&I===(($=J.safeWindow)==null?void 0:$.origin))&&si(),!p)return ta({callbackUrl:S,onRedirect:t});try{if(P.dispatch(C()),g&&f)return setTimeout(()=>{d.logout({callbackUrl:S})},Gp);o.hasConsentPopup&&m==="crossWindow"&&d.setShouldShowConsentPopup(!0),f&&(yield d.logout({callbackUrl:S}))}catch(oe){console.error("Logging out error:",oe)}finally{g||x||ta({callbackUrl:S,onRedirect:t})}})}n();var na=({maxRetries:e})=>new Promise((t,r)=>{let o=0,i=()=>{let l=ps(P.getState());if(l){t(l);return}if(o<e){o++,setTimeout(i,1e3);return}r(null)};i()});fe();n();n();Dt();H();var oa=e=>(Object.values(de).forEach(t=>{if(t!==(e==null?void 0:e.skipLoginMethod))switch(t){case"crossWindow":{let r=tt.CrossWindowProvider.getInstance();r.isInitialized()&&r.dispose();break}case"iframe":{let r=yt.IframeProvider.getInstance();r.isInitialized()&&r.dispose();break}default:break}}),null);n();var kn=i=>w(void 0,[i],function*({hasNativeAuth:e,token:t,loginService:r,onError:o}){let l=t;if(e&&!t){let p="Native auth token generation failed";try{if(l=yield r.getNativeAuthLoginToken(),!l)return console.error(p),o==null||o(p),{error:p}}catch(d){let m=d instanceof Error?d.message:String(d),g=`${p}: ${m}`;return console.error(g),o==null||o(g),{error:g}}}return l&&r.setLoginToken(l),{token:l}});n();var Ma=require("react"),wr=require("@multiversx/sdk-core");Te();n();n();var Oa=require("@multiversx/sdk-native-auth-client");n();var ca=A(require("axios"));n();n();n();function ia(e){return w(this,null,function*(){return yield new Promise(t=>{setTimeout(()=>t(),e)})})}n();var sa=(e,t,r,o=0)=>w(void 0,null,function*(){try{return yield e(...r)}catch(i){if(o<t.retries)return(t==null?void 0:t.delay)!=null&&(yield ia(t.delay)),yield sa(e,t,r,o+1);throw console.error(`Failed after ${t.retries} retries:`,i),i}}),aa=(e,t={retries:5,delay:500})=>(...r)=>w(void 0,null,function*(){return yield sa(e,t,r)});var Hp=4,jp=3e4,Sr={current:null},Fe={current:null},qp=aa((e,t,r)=>w(void 0,null,function*(){if(r){let l=Math.floor(Date.now()/1e3);return{hash:yield r(),timestamp:l}}let{data:o}=yield ca.default.get(`${e}/${fn}?from=${Hp}&size=1&fields=hash,timestamp${t?"&shard="+t:""}`),[i]=o;return i}));function la(e,t,r,o){return w(this,null,function*(){if(e==null)throw new Error("missing api url");let i=Date.now();if(Sr.current!=null&&i<Sr.current.timestamp*1e3+jp&&!o)return Sr.current;if(Fe.current!=null)return yield Fe.current;Fe.current=qp(e,t,r);try{let l=yield Fe.current;if(l==null)throw Fe.current=null,new Error("Could not retrieve block hash from API");return Sr.current={hash:l.hash,timestamp:l.timestamp},Fe.current=null,l}catch(l){Fe.current=null;let p=l instanceof Error?l.message:String(l);throw console.error("Failed to fetch latest block hash:",p),new Error(`Block hash fetch failed: ${p}`)}})}n();n();Ot();n();n();var Ra=A(Ca());var Na=e=>{if(!e||!(0,Ra.default)(e))return null;let t=e.split(".");if(t.length!==4)return null;try{let[r,o,i,l]=t,p=JSON.parse(Oe(l)),d=Oe(r);return{ttl:Number(i),extraInfo:p,origin:d,blockHash:o}}catch(r){return console.error(`Error trying to decode ${e}:`,r),null}};function yu(e){return Object.prototype.toString.call(e)==="[object String]"}var Da=e=>{var r;if(!e||!yu(e))return null;let t=e.split(".");if(t.length!==3)return console.error("Invalid nativeAuthToken. You may be trying to decode a loginToken. Try using decodeLoginToken method instead"),null;try{let[o,i,l]=t,p=Oe(o),d=Oe(i),m=Na(d);if(!m)return{address:p,body:d,signature:l,blockHash:"",origin:"",ttl:0};let g=b(T({},m),{address:p,body:d,signature:l});return(r=m.extraInfo)!=null&&r.timestamp||delete g.extraInfo,g}catch(o){return null}};var Ln={isExpired:!1},_a=e=>{if(!e)return Ln;let t=Da(e);if(!t)return Ln;let r=Ge(),{ttl:o,extraInfo:i}=t,l=i==null?void 0:i.timestamp;if(!l||!o)return Ln;let p=l+o,d=r>p,m=p-r;return{isExpired:d,expiresAt:p,secondsUntilExpires:m}};n();fe();var vt={origin:W().origin,apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60},It=e=>{var r,o,i,l,p,d;return e===!0?vt:{origin:(r=e==null?void 0:e.origin)!=null?r:vt.origin,blockHashShard:e==null?void 0:e.blockHashShard,expirySeconds:(o=e==null?void 0:e.expirySeconds)!=null?o:vt.expirySeconds,apiAddress:(i=e==null?void 0:e.apiAddress)!=null?i:vt.apiAddress,tokenExpirationToastWarningSeconds:(l=e==null?void 0:e.tokenExpirationToastWarningSeconds)!=null?l:vt.tokenExpirationToastWarningSeconds,extraInfo:(p=e==null?void 0:e.extraInfo)!=null?p:{},gatewayUrl:e==null?void 0:e.gatewayUrl,extraRequestHeaders:(d=e==null?void 0:e.extraRequestHeaders)!=null?d:{}}};var Pn=e=>{let{origin:t,apiAddress:r,expirySeconds:o,blockHashShard:i,extraInfo:l,gatewayUrl:p,extraRequestHeaders:d}=It(e),m=new Oa.NativeAuthClient({origin:t,apiUrl:r,expirySeconds:o,blockHashShard:i,gatewayUrl:p,extraRequestHeaders:d});return{getNativeAuthConfig:It,initialize:f=>w(void 0,null,function*(){var E,v;if(!r)throw new Error("Native auth configuration error: apiAddress is required");if(!t)throw new Error("Native auth configuration error: origin is required");let S=()=>m.getCurrentBlockHash();try{let I=(E=f==null?void 0:f.latestBlockInfo)!=null?E:yield la(r,i,S,f==null?void 0:f.noCache);if(!I)return"";let{hash:D,timestamp:U}=I,$=m.encodeValue(JSON.stringify(T(T({},(v=f==null?void 0:f.extraInfo)!=null?v:l),U?{timestamp:U}:{})));return`${m.encodeValue(t)}.${D}.${o}.${$}`}catch(I){let D=I instanceof Error?I.message:String(I);throw console.error("Native auth token creation failed:",D),new Error(`Native auth token creation failed: ${D}`)}}),getToken:({address:f,token:S,signature:E})=>m.getToken(f,S,E),getTokenExpiration:_a}};var hu=(e,t)=>{var r;return t?t===!0?e:(r=t.apiAddress)!=null?r:e:null},Fa=e=>{let t=B(_e),r=B(as),o=(0,Ma.useRef)(r==null?void 0:r.loginToken),i=hu(t.apiAddress,e),l=It(T(T({},e===!0?{}:e),i?{apiAddress:i}:{})),p=Boolean(e),d=Pn(l),{address:m}=Sn(),g=cr(),x=v=>{o.current=v,g(at(T(b(T({},r),{loginToken:v}),i?{nativeAuthConfig:l}:{})))},f=()=>w(void 0,null,function*(){try{let v=yield d.initialize();if(!v)throw new Error("Failed to generate login token: Empty token received from native auth service");return v}catch(v){let I=v instanceof Error?v.message:String(v);throw console.error("Native auth login token generation failed:",I),new Error(`Native auth login token generation failed: ${I}`)}}),S=({address:v,signature:I})=>{let D=o.current;if(!p){g(at(b(T({},D?{loginToken:D}:{}),{signature:I})));return}if(!D)throw new Error("Native auth login token not found. Ensure getNativeAuthLoginToken was called and completed successfully before setTokenLoginInfo.");try{let U=d.getToken({address:v,token:D,signature:I});return g(at(T({loginToken:D,signature:I,nativeAuthToken:U},i?{nativeAuthConfig:l}:{}))),U}catch(U){return console.error("SDK setTokenLoginInfo - Error generating nativeAuthToken:",U),g(at(T({loginToken:D,signature:I},i?{nativeAuthConfig:l}:{}))),null}};return{configuration:l,setLoginToken:x,getNativeAuthLoginToken:f,setTokenLoginInfo:S,refreshNativeAuthTokenLogin:D=>w(void 0,[D],function*({signMessageCallback:v,nativeAuthClientConfig:I}){let $=yield Pn(I||l).initialize({noCache:Boolean(I)});if(o.current=$,!$)return;let oe=new wr.Message({address:new wr.Address(m),data:s.Buffer.from(`${m}${$}`)}),M=yield v(oe,{});if(!(M!=null&&M.signature))throw"Message not signed";return S({address:m,signature:s.Buffer.from(M.signature).toString("hex")})})}};var Ba=(g=>(g.invalidAddress="Invalid address",g.invalidConfig="Invalid WalletConnect setup",g.invalidTopic="Expired connection",g.sessionExpired="Unable to connect to existing session",g.connectError="Unable to connect",g.userRejected="User rejected connection proposal",g.userRejectedExisting="User rejected existing connection proposal",g.errorLogout="Unable to remove existing pairing",g.invalidChainID="Invalid chainID",g))(Ba||{}),xu=({callbackRoute:e,token:t,nativeAuth:r,onLoginRedirect:o,logoutRoute:i,customRequestMethods:l=[]})=>{var Dn;let p=cr(),d=qs(r),m=Fa(d?r:!1),g=t,[x,f]=(0,Z.useState)(""),[S,E]=(0,Z.useState)(""),[v,I]=(0,Z.useState)(!0),[D,U]=(0,Z.useState)([]),[$,oe]=(0,Z.useState)(null),{provider:M}=Ms(),Ye=B(us),bt=B(ds),kt=B(ms),Ua=B(gs),Wa=B(cs),Va=B(is),k=(0,Z.useRef)(M),Xe=(0,Z.useRef)(!1),Ze=(0,Z.useRef)(!1),Cn=(Dn=i!=null?i:Wa)!=null?Dn:"/",Et=[Tr.CANCEL_ACTION,...l];t&&Et.push(Tr.SIGN_LOGIN_TOKEN),d&&Et.push(Tr.SIGN_NATIVE_AUTH_TOKEN);let $a=v?"":`${Ua}?wallet-connect=${encodeURIComponent(S)}`,Ar=Boolean(x),vr=An(),Ga=()=>{ra(Cn)},Ha=N=>{console.log("WalletConnect Session Event: ",N)},ja=()=>w(void 0,null,function*(){var N,_,O,V;try{if(Xe.current||k.current==null)return;if(!Ze.current){try{yield(N=k.current)==null?void 0:N.logout()}catch(Se){console.warn("Unable to logout")}return}let G=yield(O=(_=k.current)==null?void 0:_.getAddress)==null?void 0:O.call(_);if(!G){console.warn("Login cancelled.");return}let Q=yield(V=k.current)==null?void 0:V.getSignature(),he={address:G,loginMethod:"walletconnectv2"},xe={logoutRoute:Cn,loginType:"walletconnectv2",callbackRoute:e!=null?e:W().href};p(Xo(xe)),Q&&m.setTokenLoginInfo({signature:Q,address:G}),p(Re(he)),ai({callbackRoute:e,onLoginRedirect:o,options:{address:G,signature:Q}})}catch(G){f("User rejected connection proposal"),console.error(G)}}),Rn=()=>w(void 0,null,function*(){var _,O,V,G,Q;if(ne(k.current)==="walletconnectv2")try{((G=(V=(O=(_=k.current)==null?void 0:_.walletConnector)==null?void 0:O.session)==null?void 0:V.getAll())!=null?G:[]).length>0&&(yield(Q=k.current)==null?void 0:Q.logout()),k.current=ht,oe(null)}catch(he){console.warn("Unable to logout")}}),qa=N=>w(void 0,null,function*(){var _,O,V;if(!Ye||!bt){f("Invalid WalletConnect setup");return}if(!N||!N.topic){f("Expired connection");return}try{if((k.current?ne(k.current):!1)!=="walletconnectv2"){yield Je();return}I(!0),yield Rn();let{token:Q,error:he}=yield kn({hasNativeAuth:d,token:g,loginService:m,onError:f});if(he)return;g=Q,yield Je(!1);let{approval:xe}=yield(_=k.current)==null?void 0:_.connect({topic:N.topic,methods:Et});try{yield(O=k.current)==null?void 0:O.login({approval:xe,token:g})}catch(Se){console.error("User rejected existing connection proposal",Se),f("User rejected existing connection proposal"),I(!0),yield Je()}}catch(G){console.error("Unable to connect to existing session",G),f("Unable to connect to existing session")}finally{U((V=k.current)==null?void 0:V.pairings)}}),za=N=>w(void 0,null,function*(){var _,O;try{N&&(yield(_=k.current)==null?void 0:_.logout({topic:N}))}catch(V){console.error("Unable to remove existing pairing",V),f("Unable to remove existing pairing")}finally{let V=yield(O=k.current)==null?void 0:O.getPairings();U(V)}});function Je(N=!0){return w(this,null,function*(){var Se,_n,On;oa(),N&&(p(qo(Ne.address)),p(ot(Ne)));let _=yield na({maxRetries:15});if(!_){console.error("Invalid chainID"),f("Invalid chainID");return}if(!bt||!Ye){console.error("Invalid WalletConnect setup"),f("Invalid WalletConnect setup");return}let O=An(),V=Ze.current===!1&&!O,G=ne(k.current)==="walletconnectv2",Q=((_n=(Se=k.current)==null?void 0:Se.isInitialized)==null?void 0:_n.call(Se))&&G;if(Xe.current||V||Q)return;if(Xe.current=!0,(On=k.current)!=null&&On.walletConnector){yield k.current.init(),oe(k.current),Xe.current=!1,N&&(yield Nn());return}let he={onClientLogin:ja,onClientLogout:Ga,onClientEvent:Ha},xe=new yr(he,_,Ye,bt,kt);yield xe.init(),oe(xe),k.current=xe,Xe.current=!1,N&&(U(xe.pairings),yield Nn())})}function Nn(){return w(this,null,function*(){var N,_;if(!!k.current){if(!Ye||!bt){f("Invalid WalletConnect setup");return}try{if(!Ze.current)return;let{uri:O,approval:V}=yield(N=k.current)==null?void 0:N.connect({methods:Et});if(!Boolean(O))return;E(O),(kt==null?void 0:kt.logger)==="debug"&&console.log("WalletConnect uri: ",O);let{token:Q,error:he}=yield kn({hasNativeAuth:d,token:g,loginService:m,onError:f});if(he)return;if(g=Q,(k.current?ne(k.current):!1)!=="walletconnectv2"){I(!0),yield Je();return}try{yield(_=k.current)==null?void 0:_.login({approval:V,token:g})}catch(Se){console.error("User rejected connection proposal",Se),f("User rejected connection proposal"),I(!0)}}catch(O){console.error("Unable to connect",O)}}})}return Us(()=>{k.current=M},[M]),(0,Z.useEffect)(()=>(Ze.current=!0,()=>{Ze.current=!1}),[]),(0,Z.useEffect)(()=>{I(!S)},[S]),(0,Z.useEffect)(()=>{if(!$)return;(Boolean($.session)||Va==="walletconnectv2")&&vr&&Os($)},[$,vr]),[Je,{error:x,loginFailed:Ar,isLoading:v&&!Ar,isLoggedIn:vr&&!Ar},{uriDeepLink:$a,walletConnectUri:S,cancelLogin:Rn,connectExisting:qa,removeExistingPairing:za,wcPairings:D}]};0&&(module.exports={WalletConnectV2Error,useWalletConnectV2Login});
|
|
1
|
+
"use strict";var Ka=Object.create;var Qe=Object.defineProperty,Ya=Object.defineProperties,Xa=Object.getOwnPropertyDescriptor,Za=Object.getOwnPropertyDescriptors,Ja=Object.getOwnPropertyNames,Lt=Object.getOwnPropertySymbols,Qa=Object.getPrototypeOf,Ir=Object.prototype.hasOwnProperty,Fn=Object.prototype.propertyIsEnumerable;var Mn=(e,t,r)=>t in e?Qe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T=(e,t)=>{for(var r in t||(t={}))Ir.call(t,r)&&Mn(e,r,t[r]);if(Lt)for(var r of Lt(t))Fn.call(t,r)&&Mn(e,r,t[r]);return e},b=(e,t)=>Ya(e,Za(t));var Bn=(e,t)=>{var r={};for(var o in e)Ir.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&Lt)for(var o of Lt(e))t.indexOf(o)<0&&Fn.call(e,o)&&(r[o]=e[o]);return r};var y=(e,t)=>()=>(e&&(t=e(e=0)),t);var j=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ee=(e,t)=>{for(var r in t)Qe(e,r,{get:t[r],enumerable:!0})},Un=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ja(t))!Ir.call(e,i)&&i!==r&&Qe(e,i,{get:()=>t[i],enumerable:!(o=Xa(t,i))||o.enumerable});return e};var A=(e,t,r)=>(r=e!=null?Ka(Qa(e)):{},Un(t||!e||!e.__esModule?Qe(r,"default",{value:e,enumerable:!0}):r,e)),et=e=>Un(Qe({},"__esModule",{value:!0}),e);var w=(e,t,r)=>new Promise((o,i)=>{var l=m=>{try{d(r.next(m))}catch(g){i(g)}},p=m=>{try{d(r.throw(m))}catch(g){i(g)}},d=m=>m.done?o(m.value):Promise.resolve(m.value).then(l,p);d((r=r.apply(e,t)).next())});var $n=j(Pt=>{"use strict";n();Pt.byteLength=tc;Pt.toByteArray=nc;Pt.fromByteArray=sc;var ce=[],ee=[],ec=typeof Uint8Array!="undefined"?Uint8Array:Array,br="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Le=0,Wn=br.length;Le<Wn;++Le)ce[Le]=br[Le],ee[br.charCodeAt(Le)]=Le;var Le,Wn;ee["-".charCodeAt(0)]=62;ee["_".charCodeAt(0)]=63;function Vn(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var o=r===t?0:4-r%4;return[r,o]}function tc(e){var t=Vn(e),r=t[0],o=t[1];return(r+o)*3/4-o}function rc(e,t,r){return(t+r)*3/4-r}function nc(e){var t,r=Vn(e),o=r[0],i=r[1],l=new ec(rc(e,o,i)),p=0,d=i>0?o-4:o,m;for(m=0;m<d;m+=4)t=ee[e.charCodeAt(m)]<<18|ee[e.charCodeAt(m+1)]<<12|ee[e.charCodeAt(m+2)]<<6|ee[e.charCodeAt(m+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return i===2&&(t=ee[e.charCodeAt(m)]<<2|ee[e.charCodeAt(m+1)]>>4,l[p++]=t&255),i===1&&(t=ee[e.charCodeAt(m)]<<10|ee[e.charCodeAt(m+1)]<<4|ee[e.charCodeAt(m+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function oc(e){return ce[e>>18&63]+ce[e>>12&63]+ce[e>>6&63]+ce[e&63]}function ic(e,t,r){for(var o,i=[],l=t;l<r;l+=3)o=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(e[l+2]&255),i.push(oc(o));return i.join("")}function sc(e){for(var t,r=e.length,o=r%3,i=[],l=16383,p=0,d=r-o;p<d;p+=l)i.push(ic(e,p,p+l>d?d:p+l));return o===1?(t=e[r-1],i.push(ce[t>>2]+ce[t<<4&63]+"==")):o===2&&(t=(e[r-2]<<8)+e[r-1],i.push(ce[t>>10]+ce[t>>4&63]+ce[t<<2&63]+"=")),i.join("")}});var Gn=j(kr=>{n();kr.read=function(e,t,r,o,i){var l,p,d=i*8-o-1,m=(1<<d)-1,g=m>>1,x=-7,f=r?i-1:0,S=r?-1:1,E=e[t+f];for(f+=S,l=E&(1<<-x)-1,E>>=-x,x+=d;x>0;l=l*256+e[t+f],f+=S,x-=8);for(p=l&(1<<-x)-1,l>>=-x,x+=o;x>0;p=p*256+e[t+f],f+=S,x-=8);if(l===0)l=1-g;else{if(l===m)return p?NaN:(E?-1:1)*(1/0);p=p+Math.pow(2,o),l=l-g}return(E?-1:1)*p*Math.pow(2,l-o)};kr.write=function(e,t,r,o,i,l){var p,d,m,g=l*8-i-1,x=(1<<g)-1,f=x>>1,S=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=o?0:l-1,v=o?1:-1,I=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(d=isNaN(t)?1:0,p=x):(p=Math.floor(Math.log(t)/Math.LN2),t*(m=Math.pow(2,-p))<1&&(p--,m*=2),p+f>=1?t+=S/m:t+=S*Math.pow(2,1-f),t*m>=2&&(p++,m/=2),p+f>=x?(d=0,p=x):p+f>=1?(d=(t*m-1)*Math.pow(2,i),p=p+f):(d=t*Math.pow(2,f-1)*Math.pow(2,i),p=0));i>=8;e[r+E]=d&255,E+=v,d/=256,i-=8);for(p=p<<i|d,g+=i;g>0;e[r+E]=p&255,E+=v,p/=256,g-=8);e[r+E-v]|=I*128}});var ro=j(Ue=>{"use strict";n();var Er=$n(),Be=Gn(),Hn=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ue.Buffer=u;Ue.SlowBuffer=dc;Ue.INSPECT_MAX_BYTES=50;var Ct=2147483647;Ue.kMaxLength=Ct;u.TYPED_ARRAY_SUPPORT=ac();!u.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function ac(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(r){return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.buffer}});Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.byteOffset}});function we(e){if(e>Ct)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Rr(e)}return zn(e,t,r)}u.poolSize=8192;function zn(e,t,r){if(typeof e=="string")return lc(e,t);if(ArrayBuffer.isView(e))return pc(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(le(e,ArrayBuffer)||e&&le(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(le(e,SharedArrayBuffer)||e&&le(e.buffer,SharedArrayBuffer)))return Pr(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var o=e.valueOf&&e.valueOf();if(o!=null&&o!==e)return u.from(o,t,r);var i=uc(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return u.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}u.from=function(e,t,r){return zn(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function Kn(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function cc(e,t,r){return Kn(e),e<=0?we(e):t!==void 0?typeof r=="string"?we(e).fill(t,r):we(e).fill(t):we(e)}u.alloc=function(e,t,r){return cc(e,t,r)};function Rr(e){return Kn(e),we(e<0?0:Nr(e)|0)}u.allocUnsafe=function(e){return Rr(e)};u.allocUnsafeSlow=function(e){return Rr(e)};function lc(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=Yn(e,t)|0,o=we(r),i=o.write(e,t);return i!==r&&(o=o.slice(0,i)),o}function Lr(e){for(var t=e.length<0?0:Nr(e.length)|0,r=we(t),o=0;o<t;o+=1)r[o]=e[o]&255;return r}function pc(e){if(le(e,Uint8Array)){var t=new Uint8Array(e);return Pr(t.buffer,t.byteOffset,t.byteLength)}return Lr(e)}function Pr(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var o;return t===void 0&&r===void 0?o=new Uint8Array(e):r===void 0?o=new Uint8Array(e,t):o=new Uint8Array(e,t,r),Object.setPrototypeOf(o,u.prototype),o}function uc(e){if(u.isBuffer(e)){var t=Nr(e.length)|0,r=we(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||Dr(e.length)?we(0):Lr(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Lr(e.data)}function Nr(e){if(e>=Ct)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ct.toString(16)+" bytes");return e|0}function dc(e){return+e!=e&&(e=0),u.alloc(+e)}u.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==u.prototype};u.compare=function(t,r){if(le(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),le(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(t)||!u.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var o=t.length,i=r.length,l=0,p=Math.min(o,i);l<p;++l)if(t[l]!==r[l]){o=t[l],i=r[l];break}return o<i?-1:i<o?1:0};u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};u.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return u.alloc(0);var o;if(r===void 0)for(r=0,o=0;o<t.length;++o)r+=t[o].length;var i=u.allocUnsafe(r),l=0;for(o=0;o<t.length;++o){var p=t[o];if(le(p,Uint8Array))l+p.length>i.length?u.from(p).copy(i,l):Uint8Array.prototype.set.call(i,p,l);else if(u.isBuffer(p))p.copy(i,l);else throw new TypeError('"list" argument must be an Array of Buffers');l+=p.length}return i};function Yn(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||le(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,o=arguments.length>2&&arguments[2]===!0;if(!o&&r===0)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Cr(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return to(e).length;default:if(i)return o?-1:Cr(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=Yn;function mc(e,t,r){var o=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return vc(this,t,r);case"utf8":case"utf-8":return Zn(this,t,r);case"ascii":return wc(this,t,r);case"latin1":case"binary":return Ac(this,t,r);case"base64":return xc(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ic(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}u.prototype._isBuffer=!0;function Pe(e,t,r){var o=e[t];e[t]=e[r],e[r]=o}u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)Pe(this,r,r+1);return this};u.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)Pe(this,r,r+3),Pe(this,r+1,r+2);return this};u.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)Pe(this,r,r+7),Pe(this,r+1,r+6),Pe(this,r+2,r+5),Pe(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?Zn(this,0,t):mc.apply(this,arguments)};u.prototype.toLocaleString=u.prototype.toString;u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:u.compare(this,t)===0};u.prototype.inspect=function(){var t="",r=Ue.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};Hn&&(u.prototype[Hn]=u.prototype.inspect);u.prototype.compare=function(t,r,o,i,l){if(le(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),o===void 0&&(o=t?t.length:0),i===void 0&&(i=0),l===void 0&&(l=this.length),r<0||o>t.length||i<0||l>this.length)throw new RangeError("out of range index");if(i>=l&&r>=o)return 0;if(i>=l)return-1;if(r>=o)return 1;if(r>>>=0,o>>>=0,i>>>=0,l>>>=0,this===t)return 0;for(var p=l-i,d=o-r,m=Math.min(p,d),g=this.slice(i,l),x=t.slice(r,o),f=0;f<m;++f)if(g[f]!==x[f]){p=g[f],d=x[f];break}return p<d?-1:d<p?1:0};function Xn(e,t,r,o,i){if(e.length===0)return-1;if(typeof r=="string"?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Dr(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=u.from(t,o)),u.isBuffer(t))return t.length===0?-1:jn(e,t,r,o,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):jn(e,[t],r,o,i);throw new TypeError("val must be string, number or Buffer")}function jn(e,t,r,o,i){var l=1,p=e.length,d=t.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(e.length<2||t.length<2)return-1;l=2,p/=2,d/=2,r/=2}function m(E,v){return l===1?E[v]:E.readUInt16BE(v*l)}var g;if(i){var x=-1;for(g=r;g<p;g++)if(m(e,g)===m(t,x===-1?0:g-x)){if(x===-1&&(x=g),g-x+1===d)return x*l}else x!==-1&&(g-=g-x),x=-1}else for(r+d>p&&(r=p-d),g=r;g>=0;g--){for(var f=!0,S=0;S<d;S++)if(m(e,g+S)!==m(t,S)){f=!1;break}if(f)return g}return-1}u.prototype.includes=function(t,r,o){return this.indexOf(t,r,o)!==-1};u.prototype.indexOf=function(t,r,o){return Xn(this,t,r,o,!0)};u.prototype.lastIndexOf=function(t,r,o){return Xn(this,t,r,o,!1)};function gc(e,t,r,o){r=Number(r)||0;var i=e.length-r;o?(o=Number(o),o>i&&(o=i)):o=i;var l=t.length;o>l/2&&(o=l/2);for(var p=0;p<o;++p){var d=parseInt(t.substr(p*2,2),16);if(Dr(d))return p;e[r+p]=d}return p}function fc(e,t,r,o){return Rt(Cr(t,e.length-r),e,r,o)}function Tc(e,t,r,o){return Rt(Ec(t),e,r,o)}function yc(e,t,r,o){return Rt(to(t),e,r,o)}function hc(e,t,r,o){return Rt(Lc(t,e.length-r),e,r,o)}u.prototype.write=function(t,r,o,i){if(r===void 0)i="utf8",o=this.length,r=0;else if(o===void 0&&typeof r=="string")i=r,o=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(o)?(o=o>>>0,i===void 0&&(i="utf8")):(i=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var l=this.length-r;if((o===void 0||o>l)&&(o=l),t.length>0&&(o<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var p=!1;;)switch(i){case"hex":return gc(this,t,r,o);case"utf8":case"utf-8":return fc(this,t,r,o);case"ascii":case"latin1":case"binary":return Tc(this,t,r,o);case"base64":return yc(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return hc(this,t,r,o);default:if(p)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),p=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function xc(e,t,r){return t===0&&r===e.length?Er.fromByteArray(e):Er.fromByteArray(e.slice(t,r))}function Zn(e,t,r){r=Math.min(e.length,r);for(var o=[],i=t;i<r;){var l=e[i],p=null,d=l>239?4:l>223?3:l>191?2:1;if(i+d<=r){var m,g,x,f;switch(d){case 1:l<128&&(p=l);break;case 2:m=e[i+1],(m&192)===128&&(f=(l&31)<<6|m&63,f>127&&(p=f));break;case 3:m=e[i+1],g=e[i+2],(m&192)===128&&(g&192)===128&&(f=(l&15)<<12|(m&63)<<6|g&63,f>2047&&(f<55296||f>57343)&&(p=f));break;case 4:m=e[i+1],g=e[i+2],x=e[i+3],(m&192)===128&&(g&192)===128&&(x&192)===128&&(f=(l&15)<<18|(m&63)<<12|(g&63)<<6|x&63,f>65535&&f<1114112&&(p=f))}}p===null?(p=65533,d=1):p>65535&&(p-=65536,o.push(p>>>10&1023|55296),p=56320|p&1023),o.push(p),i+=d}return Sc(o)}var qn=4096;function Sc(e){var t=e.length;if(t<=qn)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=qn));return r}function wc(e,t,r){var o="";r=Math.min(e.length,r);for(var i=t;i<r;++i)o+=String.fromCharCode(e[i]&127);return o}function Ac(e,t,r){var o="";r=Math.min(e.length,r);for(var i=t;i<r;++i)o+=String.fromCharCode(e[i]);return o}function vc(e,t,r){var o=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>o)&&(r=o);for(var i="",l=t;l<r;++l)i+=Pc[e[l]];return i}function Ic(e,t,r){for(var o=e.slice(t,r),i="",l=0;l<o.length-1;l+=2)i+=String.fromCharCode(o[l]+o[l+1]*256);return i}u.prototype.slice=function(t,r){var o=this.length;t=~~t,r=r===void 0?o:~~r,t<0?(t+=o,t<0&&(t=0)):t>o&&(t=o),r<0?(r+=o,r<0&&(r=0)):r>o&&(r=o),r<t&&(r=t);var i=this.subarray(t,r);return Object.setPrototypeOf(i,u.prototype),i};function F(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||F(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return i};u.prototype.readUintBE=u.prototype.readUIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||F(t,r,this.length);for(var i=this[t+--r],l=1;r>0&&(l*=256);)i+=this[t+--r]*l;return i};u.prototype.readUint8=u.prototype.readUInt8=function(t,r){return t=t>>>0,r||F(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||F(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||F(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||F(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||F(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};u.prototype.readIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||F(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return l*=128,i>=l&&(i-=Math.pow(2,8*r)),i};u.prototype.readIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||F(t,r,this.length);for(var i=r,l=1,p=this[t+--i];i>0&&(l*=256);)p+=this[t+--i]*l;return l*=128,p>=l&&(p-=Math.pow(2,8*r)),p};u.prototype.readInt8=function(t,r){return t=t>>>0,r||F(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||F(t,2,this.length);var o=this[t]|this[t+1]<<8;return o&32768?o|4294901760:o};u.prototype.readInt16BE=function(t,r){t=t>>>0,r||F(t,2,this.length);var o=this[t+1]|this[t]<<8;return o&32768?o|4294901760:o};u.prototype.readInt32LE=function(t,r){return t=t>>>0,r||F(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};u.prototype.readInt32BE=function(t,r){return t=t>>>0,r||F(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};u.prototype.readFloatLE=function(t,r){return t=t>>>0,r||F(t,4,this.length),Be.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||F(t,4,this.length),Be.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||F(t,8,this.length),Be.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||F(t,8,this.length),Be.read(this,t,!1,52,8)};function q(e,t,r,o,i,l){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<l)throw new RangeError('"value" argument is out of bounds');if(r+o>e.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var l=Math.pow(2,8*o)-1;q(this,t,r,o,l,0)}var p=1,d=0;for(this[r]=t&255;++d<o&&(p*=256);)this[r+d]=t/p&255;return r+o};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var l=Math.pow(2,8*o)-1;q(this,t,r,o,l,0)}var p=o-1,d=1;for(this[r+p]=t&255;--p>=0&&(d*=256);)this[r+p]=t/d&255;return r+o};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,o){return t=+t,r=r>>>0,o||q(this,t,r,1,255,0),this[r]=t&255,r+1};u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||q(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||q(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||q(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||q(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};u.prototype.writeIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);q(this,t,r,o,l-1,-l)}var p=0,d=1,m=0;for(this[r]=t&255;++p<o&&(d*=256);)t<0&&m===0&&this[r+p-1]!==0&&(m=1),this[r+p]=(t/d>>0)-m&255;return r+o};u.prototype.writeIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);q(this,t,r,o,l-1,-l)}var p=o-1,d=1,m=0;for(this[r+p]=t&255;--p>=0&&(d*=256);)t<0&&m===0&&this[r+p+1]!==0&&(m=1),this[r+p]=(t/d>>0)-m&255;return r+o};u.prototype.writeInt8=function(t,r,o){return t=+t,r=r>>>0,o||q(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};u.prototype.writeInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||q(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||q(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||q(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};u.prototype.writeInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||q(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function Jn(e,t,r,o,i,l){if(r+o>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Qn(e,t,r,o,i){return t=+t,r=r>>>0,i||Jn(e,t,r,4,34028234663852886e22,-34028234663852886e22),Be.write(e,t,r,o,23,4),r+4}u.prototype.writeFloatLE=function(t,r,o){return Qn(this,t,r,!0,o)};u.prototype.writeFloatBE=function(t,r,o){return Qn(this,t,r,!1,o)};function eo(e,t,r,o,i){return t=+t,r=r>>>0,i||Jn(e,t,r,8,17976931348623157e292,-17976931348623157e292),Be.write(e,t,r,o,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,o){return eo(this,t,r,!0,o)};u.prototype.writeDoubleBE=function(t,r,o){return eo(this,t,r,!1,o)};u.prototype.copy=function(t,r,o,i){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(o||(o=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<o&&(i=o),i===o||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-o&&(i=t.length-r+o);var l=i-o;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,o,i):Uint8Array.prototype.set.call(t,this.subarray(o,i),r),l};u.prototype.fill=function(t,r,o,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,o=this.length):typeof o=="string"&&(i=o,o=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t.length===1){var l=t.charCodeAt(0);(i==="utf8"&&l<128||i==="latin1")&&(t=l)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<o)throw new RangeError("Out of range index");if(o<=r)return this;r=r>>>0,o=o===void 0?this.length:o>>>0,t||(t=0);var p;if(typeof t=="number")for(p=r;p<o;++p)this[p]=t;else{var d=u.isBuffer(t)?t:u.from(t,i),m=d.length;if(m===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(p=0;p<o-r;++p)this[p+r]=d[p%m]}return this};var bc=/[^+/0-9A-Za-z-_]/g;function kc(e){if(e=e.split("=")[0],e=e.trim().replace(bc,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Cr(e,t){t=t||1/0;for(var r,o=e.length,i=null,l=[],p=0;p<o;++p){if(r=e.charCodeAt(p),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&l.push(239,191,189);continue}else if(p+1===o){(t-=3)>-1&&l.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&l.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&l.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;l.push(r)}else if(r<2048){if((t-=2)<0)break;l.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;l.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;l.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return l}function Ec(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function Lc(e,t){for(var r,o,i,l=[],p=0;p<e.length&&!((t-=2)<0);++p)r=e.charCodeAt(p),o=r>>8,i=r%256,l.push(i),l.push(o);return l}function to(e){return Er.toByteArray(kc(e))}function Rt(e,t,r,o){for(var i=0;i<o&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function le(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Dr(e){return e!==e}var Pc=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var o=r*16,i=0;i<16;++i)t[o+i]=e[r]+e[i];return t}()});var ao=j((bu,so)=>{n();var R=so.exports={},pe,ue;function _r(){throw new Error("setTimeout has not been defined")}function Or(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?pe=setTimeout:pe=_r}catch(e){pe=_r}try{typeof clearTimeout=="function"?ue=clearTimeout:ue=Or}catch(e){ue=Or}})();function no(e){if(pe===setTimeout)return setTimeout(e,0);if((pe===_r||!pe)&&setTimeout)return pe=setTimeout,setTimeout(e,0);try{return pe(e,0)}catch(t){try{return pe.call(null,e,0)}catch(r){return pe.call(this,e,0)}}}function Cc(e){if(ue===clearTimeout)return clearTimeout(e);if((ue===Or||!ue)&&clearTimeout)return ue=clearTimeout,clearTimeout(e);try{return ue(e)}catch(t){try{return ue.call(null,e)}catch(r){return ue.call(this,e)}}}var Ae=[],We=!1,Ce,Nt=-1;function Rc(){!We||!Ce||(We=!1,Ce.length?Ae=Ce.concat(Ae):Nt=-1,Ae.length&&oo())}function oo(){if(!We){var e=no(Rc);We=!0;for(var t=Ae.length;t;){for(Ce=Ae,Ae=[];++Nt<t;)Ce&&Ce[Nt].run();Nt=-1,t=Ae.length}Ce=null,We=!1,Cc(e)}}R.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Ae.push(new io(e,t)),Ae.length===1&&!We&&no(oo)};function io(e,t){this.fun=e,this.array=t}io.prototype.run=function(){this.fun.apply(null,this.array)};R.title="browser";R.browser=!0;R.env={};R.argv=[];R.version="";R.versions={};function ve(){}R.on=ve;R.addListener=ve;R.once=ve;R.off=ve;R.removeListener=ve;R.removeAllListeners=ve;R.emit=ve;R.prependListener=ve;R.prependOnceListener=ve;R.listeners=function(e){return[]};R.binding=function(e){throw new Error("process.binding is not supported")};R.cwd=function(){return"/"};R.chdir=function(e){throw new Error("process.chdir is not supported")};R.umask=function(){return 0}});var s,c,Nc,a,n=y(()=>{s=A(ro()),c=A(ao()),Nc=function(e){function t(){var o=this||self;return delete e.prototype.__magic__,o}if(typeof globalThis=="object")return globalThis;if(this)return t();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:t});var r=__magic__;return r}(Object),a=Nc});var co=y(()=>{"use strict";n()});var lo=y(()=>{"use strict";n()});var po=y(()=>{"use strict";n()});var Mr,uo=y(()=>{"use strict";n();Mr=(o=>(o.SetGuardian="SetGuardian",o.GuardAccount="GuardAccount",o.UnGuardAccount="UnGuardAccount",o))(Mr||{})});var mo=y(()=>{"use strict";n()});var Fr=y(()=>{"use strict";n()});var go=y(()=>{"use strict";n()});var fo=y(()=>{"use strict";n()});var To=y(()=>{"use strict";n()});var yo=y(()=>{"use strict";n()});var tt,Ve,Dt=y(()=>{"use strict";n();tt=require("@multiversx/sdk-web-wallet-cross-window-provider/out/CrossWindowProvider/CrossWindowProvider"),Ve=require("@multiversx/sdk-web-wallet-cross-window-provider/out/enums")});var de,ho,Fu,xo,Bu,te=y(()=>{"use strict";n();Dt();de=(S=>(S.ledger="ledger",S.walletconnect="walletconnect",S.walletconnectv2="walletconnectv2",S.wallet="wallet",S.crossWindow="crossWindow",S.iframe="iframe",S.extension="extension",S.passkey="passkey",S.metamask="metamask",S.opera="opera",S.extra="extra",S.none="",S))(de||{}),ho=(r=>(r.signTransactionsWithGuardianResponse="SIGN_TRANSACTIONS_WITH_GUARDIAN_RESPONSE",r.reloginRequest="RELOGIN_REQUEST",r))(ho||{}),Fu=T(T({},Ve.WindowProviderRequestEnums),ho),xo=(t=>(t.reloginResponse="RELOGIN_RESPONSE",t))(xo||{}),Bu=T(T({},Ve.WindowProviderResponseEnums),xo)});var So=y(()=>{"use strict";n()});var wo=y(()=>{"use strict";n()});var z=y(()=>{"use strict";n()});var Ao=y(()=>{"use strict";n()});var vo=y(()=>{"use strict";n()});var Io=y(()=>{"use strict";n()});var H=y(()=>{"use strict";n();fo();To();yo();te();So();wo();z();Ao();vo();Io()});var Br,bo,td,ko,rd,Eo,nd,od,id,Lo=y(()=>{"use strict";n();H();Br={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",extrasApiAddress:"https://devnet-extras-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",extrasApiAddress:"https://testnet-extras-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",extrasApiAddress:"https://extras-api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",metamaskSnapWalletAddress:"https://iframe-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3}},{chainId:bo,egldLabel:td}=Br["devnet"],{chainId:ko,egldLabel:rd}=Br["testnet"],{chainId:Eo,egldLabel:nd}=Br["mainnet"],od={["devnet"]:bo,["testnet"]:ko,["mainnet"]:Eo},id={[bo]:"devnet",[ko]:"testnet",[Eo]:"mainnet"}});var Ur=y(()=>{"use strict";n()});var me,Po=y(()=>{"use strict";n();me=require("@multiversx/sdk-web-wallet-provider")});var J,rt=y(()=>{"use strict";n();J=require("@multiversx/sdk-dapp-utils/out/constants/browserConstants")});var Co,Ro,Wr,ud,dd,No=y(()=>{"use strict";n();rt();Wr=String((Ro=(Co=J.safeWindow)==null?void 0:Co.navigator)==null?void 0:Ro.userAgent),ud=/^((?!chrome|android).)*safari/i.test(Wr),dd=/firefox/i.test(Wr)&&/windows/i.test(Wr)});var Vr,$r,Do,_t,_o,$e,L=y(()=>{"use strict";n();co();lo();po();uo();mo();Fr();go();Lo();Ur();Po();No();Vr=5e4,$r=1e9,Do=1,_t="logout",_o="login",$e="0"});var Ge,Ot=y(()=>{"use strict";n();Ge=()=>Date.now()/1e3});var Oo=y(()=>{"use strict";n()});var Mo=y(()=>{"use strict";n()});var Fo=y(()=>{"use strict";n();Ot();Oo();Mo()});var Gr={};Ee(Gr,{clear:()=>Mc,getItem:()=>_c,localStorageKeys:()=>ie,removeItem:()=>Oc,setItem:()=>Dc});var ie,Mt,Dc,_c,Oc,Mc,He=y(()=>{"use strict";n();Fo();ie={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event",guardianBreachToastDismissTimestamp:"sdk-dapp-guardian-breach-toast-dismiss-timestamp"},Mt=typeof localStorage!="undefined",Dc=({key:e,data:t,expires:r})=>{!Mt||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},_c=e=>{if(!Mt)return;let t=localStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Ge()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},Oc=e=>{!Mt||localStorage.removeItem(String(e))},Mc=()=>{!Mt||localStorage.clear()}});var Hr={};Ee(Hr,{clear:()=>Vo,getItem:()=>Uo,removeItem:()=>Wo,sessionStorageKeys:()=>Fc,setItem:()=>Bo,storage:()=>Bc});var Fc,Bo,Uo,Wo,Vo,Bc,$o=y(()=>{"use strict";n();Fc={address:"address",shard:"shard",toasts:"toasts",toastProgress:"toastProgress"},Bo=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Uo=e=>{let t=sessionStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Date.now()>=r.expires?(sessionStorage.removeItem(String(e)),null):r.data},Wo=e=>sessionStorage.removeItem(String(e)),Vo=()=>sessionStorage.clear(),Bc={setItem:Bo,getItem:Uo,removeItem:Wo,clear:Vo}});var ge,nt=y(()=>{"use strict";n();He();$o();ge={session:Hr,local:Gr}});var jr,C,Re,K=y(()=>{"use strict";n();jr=require("@reduxjs/toolkit");L();C=(0,jr.createAction)(_t),Re=(0,jr.createAction)(_o,e=>({payload:e}))});var zr,Go,Ho,Ne,qr,jo,ot,qo,Kr,Gd,Hd,jd,qd,zd,Kd,Yd,Xd,Ft,Bt=y(()=>{"use strict";n();zr=require("@multiversx/sdk-core"),Go=require("@reduxjs/toolkit"),Ho=require("redux-persist");L();nt();He();K();Ne={balance:"...",address:"",isGuarded:!1,nonce:0,txCount:0,scrCount:0,claimableRewards:$e},qr={address:"",websocketEvent:null,websocketBatchEvent:null,accounts:{"":Ne},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},jo=(0,Go.createSlice)({name:"accountInfoSlice",initialState:qr,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=r?new zr.Address(r).hex():""},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:Ne},e.shard=t.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,t)=>{let{address:r}=e;e.accounts[r].nonce=t.payload},setAccountShard:(e,t)=>{e.shard=t.payload},setLedgerAccount:(e,t)=>{e.ledgerAccount=t.payload},updateLedgerAccount:(e,t)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=t.payload.index,e.ledgerAccount.address=t.payload.address)},setWalletConnectAccount:(e,t)=>{e.walletConnectAccount=t.payload},setIsAccountLoading:(e,t)=>{e.isAccountLoading=t.payload,e.accountLoadingError=null},setAccountLoadingError:(e,t)=>{e.accountLoadingError=t.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,t)=>{e.websocketEvent={timestamp:Date.now(),message:t.payload}},setWebsocketBatchEvent:(e,t)=>{e.websocketBatchEvent={timestamp:Date.now(),data:t.payload}}},extraReducers:e=>{e.addCase(C,()=>(ge.local.removeItem(ie.loginExpiresAt),qr)),e.addCase(Re,(t,r)=>{let{address:o}=r.payload;t.address=o,t.publicKey=new zr.Address(o).toHex()}),e.addCase(Ho.REHYDRATE,(t,r)=>{var g;if(!((g=r.payload)!=null&&g.account))return;let{account:o}=r.payload,{address:i,shard:l,accounts:p,publicKey:d}=o;t.address=i,t.shard=l;let m=p&&i in p;t.accounts=m?p:qr.accounts,t.publicKey=d})}}),{setAccount:ot,setAddress:qo,setAccountNonce:Kr,setAccountShard:Gd,setLedgerAccount:Hd,updateLedgerAccount:jd,setWalletConnectAccount:qd,setIsAccountLoading:zd,setAccountLoadingError:Kd,setWebsocketEvent:Yd,setWebsocketBatchEvent:Xd}=jo.actions,Ft=jo.reducer});function it(){return new Date().setHours(new Date().getHours()+24)}function st(e){ge.local.setItem({key:ie.loginExpiresAt,data:e,expires:e})}var Yr=y(()=>{"use strict";n();nt();He()});var Ko,zo,Yo,sm,Xo,am,at,cm,lm,Zo,pm,um,dm,Ut,Wt=y(()=>{"use strict";n();Ko=require("@reduxjs/toolkit");Yr();te();K();zo={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,passkeyLogin:null,operaLogin:null,crossWindowLogin:null,iframeWindowLogin:null,isLoginSessionInvalid:!1,webviewLogin:null},Yo=(0,Ko.createSlice)({name:"loginInfoSlice",initialState:zo,reducers:{setLoginMethod:(e,t)=>{e.loginMethod=t.payload},setTokenLogin:(e,t)=>{e.tokenLogin=t.payload},setTokenLoginSignature:(e,t)=>{(e==null?void 0:e.tokenLogin)!=null&&(e.tokenLogin.signature=t.payload)},setWalletLogin:(e,t)=>{e.walletLogin=t.payload},setWalletConnectLogin:(e,t)=>{e.walletConnectLogin=t.payload},setLedgerLogin:(e,t)=>{e.ledgerLogin=t.payload},setWebviewLogin:(e,t)=>{e.webviewLogin=t.payload},invalidateLoginSession:e=>{e.isLoginSessionInvalid=!0},setLogoutRoute:(e,t)=>{e.logoutRoute=t.payload},setIsWalletConnectV2Initialized:(e,t)=>{e.isWalletConnectV2Initialized=t.payload}},extraReducers:e=>{e.addCase(C,()=>zo),e.addCase(Re,(t,r)=>{t.isLoginSessionInvalid=!1,t.loginMethod=r.payload.loginMethod,t.iframeLoginType=r.payload.iframeLoginType,st(it())})}}),{setLoginMethod:sm,setWalletConnectLogin:Xo,setLedgerLogin:am,setTokenLogin:at,setTokenLoginSignature:cm,setWalletLogin:lm,invalidateLoginSession:Zo,setLogoutRoute:pm,setIsWalletConnectV2Initialized:um,setWebviewLogin:dm}=Yo.actions,Ut=Yo.reducer});var Qo,Jo,ei,Tm,ym,hm,xm,Vt,$t=y(()=>{"use strict";n();Qo=require("@reduxjs/toolkit");K();Jo={},ei=(0,Qo.createSlice)({name:"modalsSlice",initialState:Jo,reducers:{setTxSubmittedModal:(e,t)=>{e.txSubmittedModal=t.payload},setNotificationModal:(e,t)=>{e.notificationModal=t.payload},clearTxSubmittedModal:e=>{e.txSubmittedModal=void 0},clearNotificationModal:e=>{e.notificationModal=void 0}},extraReducers:e=>{e.addCase(C,()=>Jo)}}),{setTxSubmittedModal:Tm,setNotificationModal:ym,clearTxSubmittedModal:hm,clearNotificationModal:xm}=ei.actions,Vt=ei.reducer});var ct,Gt=y(()=>{"use strict";n();ct=()=>typeof window!="undefined"&&typeof(window==null?void 0:window.location)!="undefined"});var W,fe=y(()=>{"use strict";n();Gt();W=()=>{if(!ct())return{pathname:"",hash:"",origin:"",href:"",search:""};let{location:{pathname:t,hash:r,origin:o,href:i,search:l}}=window;return{pathname:t,hash:r,origin:o,href:i,search:l}}});var Xr,ti=y(()=>{"use strict";n();fe();Xr=(e="")=>{let t=W(),r=e.startsWith("http")||e.startsWith("www.");return!t.origin||e.startsWith(t.origin)||r?e:`${t.origin}/${e.replace("/","")}`}});var ri=y(()=>{"use strict";n();je()});var ni,oi=y(()=>{"use strict";n();rt();ni=e=>{if(!J.safeWindow.location)return;if(!new URL(J.safeWindow.location.href).protocol.startsWith("http"))return J.safeWindow.location.reload();J.safeWindow.location.assign(e)}});var je=y(()=>{"use strict";n();ti();ri();fe();oi()});var ii,si,Ht,Zr=y(()=>{"use strict";n();je();ii=!1,si=(e=!0)=>{ii=e},Ht=({timeout:e=0,url:t})=>{ii||setTimeout(()=>{if(!!window)return ni(t)},e)}});function ai({callbackRoute:e,onLoginRedirect:t,options:r}){let o=Boolean(e),i=typeof t=="function";if(o&&e!=null){if(i)return t(e,r);Ht({url:e,timeout:Uc})}}var Uc,ci=y(()=>{"use strict";n();Zr();Uc=200});function li(e){return e[Math.floor(Math.random()*e.length)]}var pi=y(()=>{"use strict";n()});var ui=y(()=>{"use strict";n();Fr()});var Jr=y(()=>{"use strict";n();ci();pi();ui()});var di,mi,gi,Qr,Vc,fi,Zm,Jm,Qm,jt,qt=y(()=>{"use strict";n();di=require("@reduxjs/toolkit"),mi=A(require("lodash.omit")),gi=require("redux-persist");Ur();K();Jr();Qr={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000",roundDuration:6e3},Vc={network:Qr},fi=(0,di.createSlice)({name:"appConfig",initialState:Vc,reducers:{initializeNetworkConfig:(e,t)=>{let r=li(t.payload.walletConnectV2RelayAddresses),o=(0,mi.default)(t.payload,"walletConnectV2RelayAddresses");e.network=b(T(T({},e.network),o),{walletConnectV2RelayAddress:r})},updateNetworkConfig:(e,t)=>{e.network=T(T({},e.network),t.payload)},setCustomWalletAddress:(e,t)=>{e.network.customWalletAddress=t.payload}},extraReducers:e=>{e.addCase(C,t=>{t.network.customWalletAddress=void 0}),e.addCase(gi.REHYDRATE,(t,r)=>{var i,l;if(!((l=(i=r.payload)==null?void 0:i.network)!=null&&l.customWalletAddress))return;let{network:{customWalletAddress:o}}=r.payload;t.network.customWalletAddress=o})}}),{initializeNetworkConfig:Zm,updateNetworkConfig:Jm,setCustomWalletAddress:Qm}=fi.actions,jt=fi.reducer});var Ti,en,yi,ig,sg,ag,zt,Kt=y(()=>{"use strict";n();Ti=require("@reduxjs/toolkit");H();K();en={isSigning:!1,signedSessions:{}},yi=(0,Ti.createSlice)({name:"signedMessageInfoSliceState",initialState:en,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:o,errorMessage:i}=t.payload;i&&(e.errorMessage=i),e.isSigning=o.status==="pending",e.signedSessions[r]=T(T({},e.signedSessions[r]),o)},setSignSessionState:(e,t)=>T(T({},e),t.payload),clearSignedMessageInfo:()=>en},extraReducers:e=>{e.addCase(C,()=>en)}}),{setSignSession:ig,clearSignedMessageInfo:sg,setSignSessionState:ag}=yi.actions,zt=yi.reducer});var xi,Si,hi,wi,gg,fg,Tg,yg,Yt,Xt=y(()=>{"use strict";n();xi=require("@reduxjs/toolkit"),Si=require("redux-persist");H();Ot();K();hi={customToasts:[],transactionToasts:[]},wi=(0,xi.createSlice)({name:"toastsSlice",initialState:hi,reducers:{addCustomToast:(e,t)=>{let r=t.payload.toastId||`custom-toast-${e.customToasts.length+1}`,o=e.customToasts.findIndex(i=>i.toastId===r);if(o!==-1){e.customToasts[o]=b(T(T({},e.customToasts[o]),t.payload),{type:"custom",toastId:r});return}e.customToasts.push(b(T({},t.payload),{type:"custom",toastId:r}))},removeCustomToast:(e,t)=>{e.customToasts=e.customToasts.filter(r=>r.toastId!==t.payload)},addTransactionToast:(e,t)=>{e.transactionToasts.push({type:"transaction",startTimestamp:Ge(),toastId:t.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,t)=>{e.transactionToasts=e.transactionToasts.filter(r=>r.toastId!==t.payload)}},extraReducers:e=>{e.addCase(C,()=>hi),e.addCase(Si.REHYDRATE,(t,r)=>{var i,l;let o=(l=(i=r.customToasts)==null?void 0:i.filter(p=>!("component"in p)))!=null?l:[];t.customToasts=o})}}),{addCustomToast:gg,removeCustomToast:fg,addTransactionToast:Tg,removeTransactionToast:yg}=wi.actions,Yt=wi.reducer});var Ai,rn,nn,on,$c,tn,vi,wg,Ag,vg,Zt,Jt=y(()=>{"use strict";n();Ai=require("@reduxjs/toolkit");K();rn="Transaction failed",nn="Transaction successful",on="Processing transaction",$c="Transaction submitted",tn={},vi=(0,Ai.createSlice)({name:"transactionsInfo",initialState:tn,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:o}=t.payload;r!=null&&(e[r]={errorMessage:(o==null?void 0:o.errorMessage)||rn,successMessage:(o==null?void 0:o.successMessage)||nn,processingMessage:(o==null?void 0:o.processingMessage)||on,submittedMessage:(o==null?void 0:o.submittedMessage)||$c,transactionDuration:o==null?void 0:o.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>tn},extraReducers:e=>{e.addCase(C,()=>tn)}}),{clearTransactionsInfo:wg,setTransactionsDisplayInfo:Ag,clearTransactionsInfoForSessionId:vg}=vi.actions,Zt=vi.reducer});function Ii(e){return e!=null&&(Qc(e)||ol(e))}function Qt(e){return e!=null&&(el(e)||il(e))}function er(e){return e!=null&&(tl(e)||sl(e))}function bi(e){return e!=null&&(rl(e)||al(e))}function ki(e){return e!=null&&nl(e)}function Qc(e){return e!=null&&Hc.includes(e)}function el(e){return e!=null&&jc.includes(e)}function tl(e){return e!=null&&qc.includes(e)}function rl(e){return e!=null&&zc.includes(e)}function nl(e){return e!=null&&Kc.includes(e)}function ol(e){return e!=null&&Yc.includes(e)}function il(e){return e!=null&&Xc.includes(e)}function sl(e){return e!=null&&Zc.includes(e)}function al(e){return e!=null&&Jc.includes(e)}var Hc,jc,qc,zc,Kc,Yc,Xc,Zc,Jc,an=y(()=>{"use strict";n();te();Hc=["sent"],jc=["success"],qc=["fail","cancelled","timedOut"],zc=["invalid"],Kc=["timedOut"],Yc=["pending"],Xc=["success"],Zc=["fail","invalid"],Jc=["not executed"]});var Ei,Li,lt,cl,Pi,Ng,Dg,_g,Og,Mg,Fg,Bg,Ug,Wg,Vg,$g,tr,rr=y(()=>{"use strict";n();Ei=require("@reduxjs/toolkit"),Li=require("redux-persist");te();an();K();lt={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},cl={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Pi=(0,Ei.createSlice)({name:"transactionsSlice",initialState:lt,reducers:{moveTransactionsToSignedState:(e,t)=>{var m,g;let{sessionId:r,transactions:o,errorMessage:i,status:l,redirectRoute:p,customTransactionInformation:d}=t.payload;e.customTransactionInformationForSessionId[r]=T(T(T({},cl),((m=e.signedTransactions[r])==null?void 0:m.customTransactionInformation)||{}),e.customTransactionInformationForSessionId[r]||{}),e.signedTransactions[r]={transactions:o,status:l,errorMessage:i,redirectRoute:p,customTransactionInformation:T(T({},e.customTransactionInformationForSessionId[r]),d!=null?d:{})},((g=e==null?void 0:e.transactionsToSign)==null?void 0:g.sessionId)===r&&(e.transactionsToSign=lt.transactionsToSign)},clearSignedTransaction:(e,t)=>{e.signedTransactions[t.payload]&&delete e.signedTransactions[t.payload]},clearTransactionToSign:e=>{e!=null&&e.transactionsToSign&&(e.transactionsToSign=null)},updateSignedTransaction:(e,t)=>{e.signedTransactions=T(T({},e.signedTransactions),t.payload)},updateSignedTransactions:(e,t)=>{let{sessionId:r,status:o,errorMessage:i,transactions:l}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].status=o,i!=null&&(e.signedTransactions[r].errorMessage=i),l!=null&&(e.signedTransactions[r].transactions=l))},updateSignedTransactionStatus:(e,t)=>{var g,x,f,S,E,v,I,D;let{sessionId:r,status:o,errorMessage:i,transactionHash:l,serverTransaction:p,inTransit:d}=t.payload,m=(x=(g=e.signedTransactions)==null?void 0:g[r])==null?void 0:x.transactions;if(m!=null){e.signedTransactions[r].transactions=m.map(M=>M.hash===l?b(T(T({},p!=null?p:{}),M),{status:o,errorMessage:i,inTransit:d}):M);let U=(S=(f=e.signedTransactions[r])==null?void 0:f.transactions)==null?void 0:S.every(M=>Qt(M.status)),$=(v=(E=e.signedTransactions[r])==null?void 0:E.transactions)==null?void 0:v.some(M=>er(M.status)),oe=(D=(I=e.signedTransactions[r])==null?void 0:I.transactions)==null?void 0:D.every(M=>bi(M.status));U&&(e.signedTransactions[r].status="success"),$&&(e.signedTransactions[r].status="fail"),oe&&(e.signedTransactions[r].status="invalid")}},setTransactionsToSign:(e,t)=>{e.transactionsToSign=t.payload;let{sessionId:r,customTransactionInformation:o}=t.payload;e.customTransactionInformationForSessionId[r]=o,e.signTransactionsError=null},clearAllTransactionsToSign:e=>{e.transactionsToSign=lt.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=lt.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload},updateSignedTransactionsCustomTransactionInformation:(e,t)=>{let{sessionId:r,customTransactionInformationOverrides:o}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].customTransactionInformation=T(T({},e.signedTransactions[r].customTransactionInformation),o))}},extraReducers:e=>{e.addCase(C,()=>lt),e.addCase(Li.REHYDRATE,(t,r)=>{var p;if(t.signTransactionsCancelMessage=null,!((p=r.payload)!=null&&p.transactions))return;let{signedTransactions:o,customTransactionInformationForSessionId:i}=r.payload.transactions,l=Object.entries(o).reduce((d,[m,g])=>{let x=new Date(m),f=new Date;return f.setHours(f.getHours()+5),f-x>0||(d[m]=g),d},{});i!=null&&(t.customTransactionInformationForSessionId=i),o!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:Ng,updateSignedTransactions:Dg,setTransactionsToSign:_g,clearAllTransactionsToSign:Og,clearAllSignedTransactions:Mg,clearSignedTransaction:Fg,clearTransactionToSign:Bg,setSignTransactionsError:Ug,setSignTransactionsCancelMessage:Wg,moveTransactionsToSignedState:Vg,updateSignedTransactionsCustomTransactionInformation:$g}=Pi.actions,tr=Pi.reducer});var Ci,cn,Ri,qg,zg,Kg,Yg,nr,or=y(()=>{"use strict";n();Ci=require("@reduxjs/toolkit");K();cn={},Ri=(0,Ci.createSlice)({name:"batchTransactionsSlice",initialState:cn,reducers:{setBatchTransactions:(e,t)=>{e[t.payload.id]=t.payload},updateBatchTransactions:(e,t)=>{e[t.payload.id]=t.payload},clearBatchTransactions:(e,t)=>{delete e[t.payload.batchId]},clearAllBatchTransactions:()=>cn},extraReducers:e=>{e.addCase(C,()=>cn)}}),{setBatchTransactions:qg,updateBatchTransactions:zg,clearBatchTransactions:Kg,clearAllBatchTransactions:Yg}=Ri.actions,nr=Ri.reducer});var Di,Ni,_i,Qg,Oi,ln=y(()=>{"use strict";n();Di=require("@reduxjs/toolkit");K();Ni={},_i=(0,Di.createSlice)({name:"dappConfigSlice",initialState:Ni,reducers:{setDappConfig:(e,t)=>t.payload},extraReducers:e=>{e.addCase(C,()=>Ni)}}),{setDappConfig:Qg}=_i.actions,Oi=_i.reducer});var Te=y(()=>{"use strict";n();Bt();Wt();$t();qt();Kt();Xt();Jt();rr();or();ln()});var pn=y(()=>{"use strict";n()});var Bi,dl,ml,De,ar=y(()=>{"use strict";n();Bi=require("@reduxjs/toolkit");pn();Bt();or();ln();Wt();$t();qt();Kt();Xt();Jt();rr();dl={["account"]:Ft,["dappConfig"]:Oi,["loginInfo"]:Ut,["modals"]:Vt,["networkConfig"]:jt,["signedMessageInfo"]:zt,["toasts"]:Yt,["transactionsInfo"]:Zt,["transactions"]:tr,["batchTransactions"]:nr},ml=(e={})=>(0,Bi.combineReducers)(T(T({},dl),e)),De=ml});var $i={};Ee($i,{default:()=>Pl,sessionStorageReducers:()=>un});function Ie(e,t=[]){return{key:e,version:1,storage:Wi.default,blacklist:t}}var Y,Ui,Wi,gl,pt,fl,Tl,yl,hl,xl,Sl,wl,Al,vl,Il,Vi,bl,un,kl,El,Ll,Pl,Gi=y(()=>{"use strict";n();Y=require("redux-persist"),Ui=A(require("redux-persist/lib/storage")),Wi=A(require("redux-persist/lib/storage/session"));ar();Te();Bt();or();Wt();$t();qt();Kt();Xt();Jt();rr();pn();gl={persistReducersStorageType:"localStorage"},pt={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},fl=Ie(pt["account"]),Tl=Ie(pt["loginInfo"]),yl=Ie(pt["modals"]),hl=Ie(pt["networkConfig"]),xl={2:e=>b(T({},e),{networkConfig:Qr})};Sl=Ie("sdk-dapp-transactionsInfo"),wl=Ie("sdk-dapp-transactions",["transactionsToSign"]),Al=Ie("sdk-dapp-batchTransactions",["batchTransactions"]),vl=Ie("sdk-dapp-toasts"),Il=Ie("sdk-dapp-signedMessageInfo"),Vi={key:"sdk-dapp-store",version:2,storage:Ui.default,whitelist:Object.keys(pt),migrate:(0,Y.createMigrate)(xl,{debug:!1})},bl=b(T({},Vi),{whitelist:[]}),un={["toasts"]:(0,Y.persistReducer)(vl,Yt),["transactions"]:(0,Y.persistReducer)(wl,tr),["transactionsInfo"]:(0,Y.persistReducer)(Sl,Zt),["batchTransactions"]:(0,Y.persistReducer)(Al,nr),["signedMessageInfo"]:(0,Y.persistReducer)(Il,zt)},kl=b(T({},un),{["account"]:(0,Y.persistReducer)(fl,Ft),["loginInfo"]:(0,Y.persistReducer)(Tl,Ut),["modals"]:(0,Y.persistReducer)(yl,Vt),["networkConfig"]:(0,Y.persistReducer)(hl,jt)}),El=gl.persistReducersStorageType==="localStorage",Ll=El?(0,Y.persistReducer)(Vi,De(un)):(0,Y.persistReducer)(bl,De(kl)),Pl=Ll});var Hi={};Ee(Hi,{default:()=>Cl});var Cl,ji=y(()=>{"use strict";n();ar();Cl=De()});var qi={};Ee(qi,{default:()=>Nl});var re,Rl,Nl,zi=y(()=>{"use strict";n();re=require("redux-persist"),Rl=[re.FLUSH,re.REHYDRATE,re.PAUSE,re.PERSIST,re.PURGE,re.REGISTER],Nl=Rl});var Xi={};Ee(Xi,{default:()=>Yi});function Yi(e){return(0,Ki.persistStore)(e)}var Ki,Zi=y(()=>{"use strict";n();Ki=require("redux-persist")});var Vs=j((f0,Ws)=>{n();function Rp(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}Ws.exports=Rp});var ua=j((VE,pa)=>{n();var zp=typeof a=="object"&&a&&a.Object===Object&&a;pa.exports=zp});var ma=j(($E,da)=>{n();var Kp=ua(),Yp=typeof self=="object"&&self&&self.Object===Object&&self,Xp=Kp||Yp||Function("return this")();da.exports=Xp});var En=j((GE,ga)=>{n();var Zp=ma(),Jp=Zp.Symbol;ga.exports=Jp});var ha=j((HE,ya)=>{n();var fa=En(),Ta=Object.prototype,Qp=Ta.hasOwnProperty,eu=Ta.toString,At=fa?fa.toStringTag:void 0;function tu(e){var t=Qp.call(e,At),r=e[At];try{e[At]=void 0;var o=!0}catch(l){}var i=eu.call(e);return o&&(t?e[At]=r:delete e[At]),i}ya.exports=tu});var Sa=j((jE,xa)=>{n();var ru=Object.prototype,nu=ru.toString;function ou(e){return nu.call(e)}xa.exports=ou});var Ia=j((qE,va)=>{n();var wa=En(),iu=ha(),su=Sa(),au="[object Null]",cu="[object Undefined]",Aa=wa?wa.toStringTag:void 0;function lu(e){return e==null?e===void 0?cu:au:Aa&&Aa in Object(e)?iu(e):su(e)}va.exports=lu});var ka=j((zE,ba)=>{n();var pu=Array.isArray;ba.exports=pu});var La=j((KE,Ea)=>{n();function uu(e){return e!=null&&typeof e=="object"}Ea.exports=uu});var Ca=j((YE,Pa)=>{n();var du=Ia(),mu=ka(),gu=La(),fu="[object String]";function Tu(e){return typeof e=="string"||!mu(e)&&gu(e)&&du(e)==fu}Pa.exports=Tu});var Su={};Ee(Su,{WalletConnectV2Error:()=>Ba,useWalletConnectV2Login:()=>xu});module.exports=et(Su);n();var Z=require("react");n();n();n();var ns=require("react"),qe=require("react-redux");n();var dn=require("@reduxjs/toolkit"),ts=require("react-redux/lib/utils/Subscription");Te();n();var Mi=A(require("lodash.throttle"));L();Te();Yr();nt();He();var ll=[_t],ir=!1,pl=(0,Mi.default)(()=>{st(it())},5e3),Fi=e=>t=>r=>{if(ll.includes(r.type))return t(r);let o=e.getState(),i=ge.local.getItem(ie.loginExpiresAt);if(!Boolean(o==null?void 0:o.account.address))return t(r);if(i==null)return st(it()),t(r);let p=Date.now();return i-p<0&&!ir?setTimeout(()=>{ir=!0,e.dispatch(Zo())},1e3):(ir&&(ir=!1),pl()),t(r)};n();n();function sr(){return typeof sessionStorage!="undefined"}var Ji=sr()?(Gi(),et($i)).default:(ji(),et(Hi)).default,Qi=sr()?(zi(),et(qi)).default:[],es=sr()?(Zi(),et(Xi)).default:e=>e;ar();var P=(0,dn.configureStore)({reducer:Ji,middleware:e=>e({serializableCheck:{ignoredActions:[...Qi,Kr.type,ot.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(Fi)}),rs=(0,ts.createSubscription)(P),Jf=es(P),Qf=(0,dn.configureStore)({reducer:De});var Dl={store:P,subscription:rs},mn=(0,ns.createContext)(Dl),nT=(0,qe.createStoreHook)(mn),cr=(0,qe.createDispatchHook)(mn),B=(0,qe.createSelectorHook)(mn);n();n();Te();n();var os=A(require("lodash.isequal")),lr=require("reselect"),h=(0,lr.createSelectorCreator)(lr.defaultMemoize,os.default);var ye=e=>e.account,ut=h(ye,e=>e.address),ze=h(ye,ut,(e,t)=>t in e.accounts?e.accounts[t]:Ne),_l=h(ye,ze,(e,t)=>{let i=e,{accounts:r}=i,o=Bn(i,["accounts"]);return b(T({},o),{address:t.address,account:t})}),cT=h(ze,e=>e.balance),Ol=h(ze,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),lT=h(ye,e=>e.shard),pT=h(ye,e=>e.ledgerAccount),uT=h(ye,e=>e.walletConnectAccount),dT=h(ye,e=>e.isAccountLoading),mT=h(ye,e=>e.accountLoadingError),Ml=h(ye,e=>e.websocketEvent),Fl=h(ye,e=>e.websocketBatchEvent);n();var Bl=e=>e.dappConfig,TT=h(Bl,e=>e.shouldUseWebViewProvider);n();var X=e=>e.loginInfo,is=h(X,e=>e.loginMethod),dt=h(X,ut,(e,t)=>Boolean(t)),ST=h(X,e=>e.walletConnectLogin),wT=h(X,e=>e.ledgerLogin),ss=h(X,e=>e.walletLogin),AT=h(X,e=>e.isLoginSessionInvalid),as=h(X,e=>e.tokenLogin),cs=h(X,e=>e.logoutRoute),Ul=h(X,e=>e.isWalletConnectV2Initialized);n();var ls=e=>e.modals,bT=h(ls,e=>e.txSubmittedModal),kT=h(ls,e=>e.notificationModal);n();var be=e=>e.networkConfig,ps=h(be,e=>e.network.chainId),PT=h(be,e=>e.network.roundDuration),CT=h(be,e=>e.network.walletConnectBridgeAddress),us=h(be,e=>e.network.walletConnectV2RelayAddress),ds=h(be,e=>e.network.walletConnectV2ProjectId),ms=h(be,e=>e.network.walletConnectV2Options),gs=h(be,e=>e.network.walletConnectDeepLink),_e=h(be,e=>e.network),Wl=h(_e,e=>e.apiAddress),fs=h(_e,e=>e.explorerAddress),RT=h(_e,e=>{var t;return(t=e.customWalletAddress)!=null?t:e.walletAddress}),NT=h(_e,e=>e.xAliasAddress),DT=h(_e,e=>e.egldLabel);n();var pr=e=>e.signedMessageInfo,MT=h(pr,e=>e.isSigning),FT=h(pr,e=>e.errorMessage),BT=h(pr,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]}),UT=h(pr,e=>{let t=Object.keys(e.signedSessions),r=t.length;return t.length>0?t[r-1]:""});n();var Ts=e=>e.toasts,$T=h(Ts,e=>e.customToasts),GT=h(Ts,e=>e.transactionToasts);n();Te();var ys={errorMessage:rn,successMessage:nn,processingMessage:on},Vl=e=>e.transactionsInfo,KT=h(Vl,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[t])||ys);n();n();var Me=require("@multiversx/sdk-core");L();n();n();n();function ur(e){try{let t=atob(e),r=btoa(t),o=s.Buffer.from(e,"base64").toString(),i=s.Buffer.from(o).toString("base64"),l=e===r||r.startsWith(e),p=e===i||i.startsWith(e);if(l&&p)return!0}catch(t){return!1}return!1}function Oe(e){return ur(e)?atob(e):e}n();n();n();n();var hs=e=>{let t=e!=null?e:"";return ur(t)?s.Buffer.from(s.Buffer.from(t,"base64").toString().trim()):s.Buffer.from(t.trim())};n();L();var dr=({data:e,onlySetGuardian:t})=>e?t?e.startsWith("SetGuardian"):Object.values(Mr).some(r=>e.startsWith(r)):!1;function gn(e){var o,i,l;let t=T({},e);dr({data:t.data,onlySetGuardian:!0})&&(delete t.senderUsername,delete t.receiverUsername);let r=new Me.Transaction(T(T(b(T(b(T(T({value:BigInt(t.value.valueOf()),data:hs(t.data),nonce:BigInt(t.nonce.valueOf()),receiver:new Me.Address(t.receiver)},t.receiverUsername?{receiverUsername:t.receiverUsername}:{}),t.relayer?{relayer:new Me.Address(t.relayer)}:{}),{sender:new Me.Address(t.sender)}),t.senderUsername?{senderUsername:t.senderUsername}:{}),{gasLimit:BigInt((o=t.gasLimit.valueOf())!=null?o:Vr),gasPrice:BigInt((i=t.gasPrice.valueOf())!=null?i:$r),chainID:t.chainID.valueOf(),version:(l=t.version)!=null?l:Do}),t.options?{options:t.options}:{}),t.guardian?{guardian:new Me.Address(t.guardian)}:{}));return t.relayerSignature&&(r.relayerSignature=s.Buffer.from(t.relayerSignature,"hex")),t.guardianSignature&&(r.guardianSignature=s.Buffer.from(t.guardianSignature,"hex")),t.signature&&(r.signature=s.Buffer.from(t.signature,"hex")),r}n();n();L();n();n();n();var jl=require("@multiversx/sdk-core");n();L();n();var zl=require("@multiversx/sdk-core");H();n();var xs=require("@multiversx/sdk-core");function ql(e){try{return xs.Address.isValid(e)}catch(t){return!1}}function mt(e){return/^\w+$/.test(e)&&ql(e)}n();n();n();var Kl=require("@multiversx/sdk-core"),Yl=A(require("bignumber.js"));te();n();n();n();var fn="blocks";n();n();n();n();z();n();n();z();n();n();n();var tp=A(require("bignumber.js"));L();n();var ep=require("@multiversx/sdk-core"),Tn=A(require("bignumber.js"));L();n();var Jl=A(require("bignumber.js"));n();Tn.default.config({ROUNDING_MODE:Tn.default.ROUND_FLOOR});n();n();n();L();n();n();n();n();L();n();L();n();var rp=require("@multiversx/sdk-core"),np=A(require("bignumber.js"));L();n();var hn=require("@multiversx/sdk-core"),ip=A(require("bignumber.js"));L();n();n();var op=A(require("bignumber.js"));L();n();L();n();n();n();n();n();n();L();n();L();n();L();n();z();var ap=["reDelegateRewards","claimRewards","unBond"],cp=["wrapEgld","unwrapEgld"],lp=["unStake"],pp=["unDelegate"];n();n();n();L();n();var mp=A(require("bignumber.js"));n();n();z();n();var fp=A(require("bignumber.js"));n();n();n();n();var yp=A(require("bignumber.js"));H();n();n();var hp=require("@multiversx/sdk-core");n();n();te();n();var wp=require("@multiversx/sdk-web-wallet-provider");L();n();var Sp=A(require("qs"));n();je();Gt();n();Gt();var Nw={search:ct()?window.location.search:"",removeParams:[]};n();n();n();fe();n();z();n();n();fe();n();var Ap=A(require("linkifyjs"));n();L();n();var vp=A(require("bignumber.js"));n();H();n();n();te();n();te();n();n();n();z();n();z();n();var Ip=A(require("bignumber.js"));L();z();n();z();n();var ks=require("react");H();n();n();z();n();n();var bp=require("@multiversx/sdk-core"),kp=A(require("bignumber.js"));z();n();H();n();n();H();var bv=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];n();var Es=require("react");H();fe();n();var Lp=require("react");z();var Dv=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];an();n();var gr=e=>e.transactions,Tt=h(gr,e=>e.signedTransactions),vI=h(gr,e=>e.signTransactionsError),II=h(gr,e=>e.signTransactionsCancelMessage),fr=e=>t=>Object.entries(t).reduce((r,[o,i])=>(e(i.status)&&(r[o]=i),r),{}),bI=h(Tt,fr(Ii)),kI=h(Tt,fr(Qt)),EI=h(Tt,fr(er)),LI=h(Tt,fr(ki)),PI=h(gr,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:b(T({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>gn(r)))||[]})}),CI=h(Tt,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});var Sn=()=>B(ze);n();n();n();n();n();var Ls=require("@multiversx/sdk-extension-provider"),Ps=require("@multiversx/sdk-hw-provider"),Cs=require("@multiversx/sdk-metamask-provider/out/metamaskProvider"),Rs=require("@multiversx/sdk-opera-provider"),Ns=require("@multiversx/sdk-passkey-provider/out"),Ds=require("@multiversx/sdk-web-wallet-provider");L();Dt();n();var yt=require("@multiversx/sdk-web-wallet-iframe-provider/out"),Pp=require("@multiversx/sdk-web-wallet-iframe-provider/out/constants");te();n();var Tr={},yr=Ke;var ne=e=>{switch(e==null?void 0:e.constructor){case Ds.WalletProvider:return"wallet";case yr:return"walletconnectv2";case Ps.HWProvider:return"ledger";case Ls.ExtensionProvider:return"extension";case Ns.PasskeyProvider:return"passkey";case Cs.MetamaskProvider:return"metamask";case Rs.OperaProvider:return"opera";case tt.CrossWindowProvider:return"crossWindow";case yt.IframeProvider:return"iframe";case Ke:return"";default:return"extra"}};var se=e=>`Unable to perform ${e}, Provider not initialized`,Ke=class{init(){return Promise.resolve(!1)}getAccount(){throw new Error(se("getAccount"))}setAccount(t){throw new Error(se(`setAccount: ${t}`))}login(t){throw new Error(se(`login with options: ${t}`))}logout(t){throw new Error(se(`logout with options: ${t}`))}getAddress(){throw new Error(se("getAddress"))}isInitialized(){return!1}isConnected(){return!1}sendTransaction(t,r){throw new Error(se(`sendTransaction with transactions: ${t} options: ${r}`))}signTransaction(t,r){throw new Error(se(`signTransaction with transactions: ${t} options: ${r}`))}signTransactions(t,r){throw new Error(se(`signTransactions with transactions: ${t} options: ${r}`))}signMessage(t,r){throw new Error(se(`signTransactions with ${t} and options ${r}`))}sendCustomMessage({method:t,params:r}){throw new Error(se(`sendCustomMessage with method: ${t} params: ${r}`))}sendCustomRequest(t){throw new Error(se(`sendSessionEvent with options: ${t}`))}ping(){return Promise.resolve(!1)}},ht=new Ke;var _s=ht;function Os(e){_s=e}function ae(){return _s||ht}var Ms=()=>{let e=ae(),t=ne(e);return{provider:e,providerType:t}};n();n();n();n();n();n();n();var xt=A(require("react"));var Ab=(0,xt.createContext)({}),vb=P.getState();n();var Bs=A(require("react"));n();var wn=A(require("react")),Cp=A(require("axios"));n();n();n();var hr=require("react");function Us(e,t=[]){let r=(0,hr.useRef)(!0);(0,hr.useEffect)(()=>{r.current?r.current=!1:e()},t)}K();Te();te();n();n();var js=A(Vs());rt();var $s,Gs,Hs,Np=(Hs=(Gs=($s=J.safeWindow)==null?void 0:$s.location)==null?void 0:Gs.origin)==null?void 0:Hs.includes("localhost"),qs=e=>{if(!(0,js.default)(e))return Boolean(e);let r=T({},e);return Boolean(Np)&&delete r.origin,Object.keys(r).length>0};n();function An(){return dt(P.getState())}Jr();n();rt();K();H();n();function zs(e,t){if(!e){typeof console!="undefined"&&console.warn(t);try{throw new Error(t)}catch(r){}}}function Ks(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,o]=Dp(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let l=i[0],p=l.replace(/(.)\/+$/,"$1"),d=i.slice(1);return{params:o.reduce((g,x,f)=>{if(x==="*"){let S=d[f]||"";p=l.slice(0,l.length-S.length).replace(/(.)\/+$/,"$1")}return g[x]=_p(d[f]||"",x),g},{}),pathname:l,pathnameBase:p,pattern:e}}function Dp(e,t=!1,r=!0){zs(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let o=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(p,d)=>(o.push(d),"([^\\/]+)"));return e.endsWith("*")?(o.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i+=r?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)",[new RegExp(i,t?void 0:"i"),o]}function _p(e,t){try{return decodeURIComponent(e)}catch(r){return zs(!1,`The value for the URL param "${t}" will not be decoded because the string "${e}" is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),e}}n();n();fe();var Ys=()=>{let{search:e}=W(),t=new URLSearchParams(e),r=Object.fromEntries(t),o=r==null?void 0:r.address;return mt(o)?o:null};n();n();n();n();n();var Xs=require("@lifeomic/axios-fetch"),vn=A(require("axios")),In=(0,Xs.buildAxiosFetch)(vn.default),bn=(e,t)=>w(void 0,null,function*(){if(!e.ok)throw new Error(`HTTP error! Status: ${e.status}`);let o=e.clone().json(),[i]=yield Promise.all([o]);return{data:i,status:e.status,statusText:e.statusText,headers:e.headers,config:t}});function Op(e,t,r){return w(this,null,function*(){try{let o=yield In(e,T({method:"POST",body:t?JSON.stringify(t):void 0,headers:T({"Content-Type":"application/json"},(r==null?void 0:r.headers)||{})},r));return bn(o,r)}catch(o){throw console.error("Fetch Error:",o),o}})}function Mp(e,t){return w(this,null,function*(){try{let r=yield In(e,t);if(!r.ok)throw new Error(`HTTP error! Status: ${r.status}`);return bn(r,t)}catch(r){throw console.error("Fetch Error:",r),r}})}function Fp(e,t,r){return w(this,null,function*(){try{let o=yield In(e,T({method:"PATCH",body:t?JSON.stringify(t):void 0,headers:(r==null?void 0:r.headers)||{}},r));if(!o.ok)throw new Error(`HTTP error! Status: ${o.status}`);return bn(o,r)}catch(o){throw console.error("Fetch Error:",o),o}})}var St=vn.default.create();St.get=Mp;St.post=Op;St.patch=Fp;n();n();var Bp=A(require("axios"));n();var Wp=A(require("swr"));n();n();function Zs(){let e=ae();return ne(e)}n();te();n();function wt(e){return Zs()===e}function xr(){let e=P.getState(),t=ae(),r=ut(e),o=dt(e),i=ss(e);if(!t)throw"provider not initialized";return wt("ledger")&&o?new Promise(l=>{l(r)}):!wt("")&&!wt("wallet")&&!wt("extra")?t.getAddress():new Promise(l=>{let p=Ys();i!=null&&p&&l(p),o&&l(r),l("")})}n();n();n();fe();var Js=()=>{let{search:e}=W(),t=new URLSearchParams(e),r=Object.fromEntries(t);return r==null?void 0:r.accessToken};var Qs=()=>{var r;let e=Js(),t=X(P.getState());return e!=null?e:(r=t.webviewLogin)==null?void 0:r.data};n();K();H();n();Te();n();Te();n();var ea=require("@multiversx/sdk-core");H();je();Zr();nt();He();je();var ta=({callbackUrl:e,onRedirect:t})=>{typeof t=="function"?t(e):e&&Ht({url:e})},$p=e=>{let t=ge.local.getItem(ie.logoutEvent),{data:r}=t?JSON.parse(t):{data:e};e===r&&(ge.local.setItem({key:ie.logoutEvent,data:e,expires:0}),ge.local.removeItem(ie.logoutEvent))},Gp=500;function ra(i,l){return w(this,arguments,function*(e,t,r=Boolean(Qs()),o={shouldBroadcastLogoutAcrossTabs:!0,hasConsentPopup:!1}){var D,U,$;let p=yield xr(),d=ae(),m=ne(d),g=m==="wallet",x=m==="extra",f=((D=d==null?void 0:d.isInitialized)==null?void 0:D.call(d))===!0;if(r&&(d==null?void 0:d.relogin)!=null)return d.relogin();p&&o.shouldBroadcastLogoutAcrossTabs&&$p(p);let S=Xr(e),E=W(),{pathname:v,origin:I}=new URL(decodeURIComponent(S));if((Ks(E.pathname,v)||g&&f||((U=J.safeWindow)==null?void 0:U.opener)&&I===(($=J.safeWindow)==null?void 0:$.origin))&&si(),!p)return ta({callbackUrl:S,onRedirect:t});try{if(P.dispatch(C()),g&&f)return setTimeout(()=>{d.logout({callbackUrl:S})},Gp);o.hasConsentPopup&&m==="crossWindow"&&d.setShouldShowConsentPopup(!0),f&&(yield d.logout({callbackUrl:S}))}catch(oe){console.error("Logging out error:",oe)}finally{g||x||ta({callbackUrl:S,onRedirect:t})}})}n();var na=({maxRetries:e})=>new Promise((t,r)=>{let o=0,i=()=>{let l=ps(P.getState());if(l){t(l);return}if(o<e){o++,setTimeout(i,1e3);return}r(null)};i()});fe();n();n();Dt();H();var oa=e=>(Object.values(de).forEach(t=>{if(t!==(e==null?void 0:e.skipLoginMethod))switch(t){case"crossWindow":{let r=tt.CrossWindowProvider.getInstance();r.isInitialized()&&r.dispose();break}case"iframe":{let r=yt.IframeProvider.getInstance();r.isInitialized()&&r.dispose();break}default:break}}),null);n();var kn=i=>w(void 0,[i],function*({hasNativeAuth:e,token:t,loginService:r,onError:o}){let l=t;if(e&&!t){let p="Native auth token generation failed";try{if(l=yield r.getNativeAuthLoginToken(),!l)return console.error(p),o==null||o(p),{error:p}}catch(d){let m=d instanceof Error?d.message:String(d),g=`${p}: ${m}`;return console.error(g),o==null||o(g),{error:g}}}return l&&r.setLoginToken(l),{token:l}});n();var Ma=require("react"),wr=require("@multiversx/sdk-core");Te();n();n();var Oa=require("@multiversx/sdk-native-auth-client");n();var ca=A(require("axios"));n();n();n();function ia(e){return w(this,null,function*(){return yield new Promise(t=>{setTimeout(()=>t(),e)})})}n();var sa=(e,t,r,o=0)=>w(void 0,null,function*(){try{return yield e(...r)}catch(i){if(o<t.retries)return(t==null?void 0:t.delay)!=null&&(yield ia(t.delay)),yield sa(e,t,r,o+1);throw console.error(`Failed after ${t.retries} retries:`,i),i}}),aa=(e,t={retries:5,delay:500})=>(...r)=>w(void 0,null,function*(){return yield sa(e,t,r)});var Hp=4,jp=3e4,Sr={current:null},Fe={current:null},qp=aa((e,t,r)=>w(void 0,null,function*(){if(r){let l=Math.floor(Date.now()/1e3);return{hash:yield r(),timestamp:l}}let{data:o}=yield ca.default.get(`${e}/${fn}?from=${Hp}&size=1&fields=hash,timestamp${t?"&shard="+t:""}`),[i]=o;return i}));function la(e,t,r,o){return w(this,null,function*(){if(e==null)throw new Error("missing api url");let i=Date.now();if(Sr.current!=null&&i<Sr.current.timestamp*1e3+jp&&!o)return Sr.current;if(Fe.current!=null)return yield Fe.current;Fe.current=qp(e,t,r);try{let l=yield Fe.current;if(l==null)throw Fe.current=null,new Error("Could not retrieve block hash from API");return Sr.current={hash:l.hash,timestamp:l.timestamp},Fe.current=null,l}catch(l){Fe.current=null;let p=l instanceof Error?l.message:String(l);throw console.error("Failed to fetch latest block hash:",p),new Error(`Block hash fetch failed: ${p}`)}})}n();n();Ot();n();n();var Ra=A(Ca());var Na=e=>{if(!e||!(0,Ra.default)(e))return null;let t=e.split(".");if(t.length!==4)return null;try{let[r,o,i,l]=t,p=JSON.parse(Oe(l)),d=Oe(r);return{ttl:Number(i),extraInfo:p,origin:d,blockHash:o}}catch(r){return console.error(`Error trying to decode ${e}:`,r),null}};function yu(e){return Object.prototype.toString.call(e)==="[object String]"}var Da=e=>{var r;if(!e||!yu(e))return null;let t=e.split(".");if(t.length!==3)return console.error("Invalid nativeAuthToken. You may be trying to decode a loginToken. Try using decodeLoginToken method instead"),null;try{let[o,i,l]=t,p=Oe(o),d=Oe(i),m=Na(d);if(!m)return{address:p,body:d,signature:l,blockHash:"",origin:"",ttl:0};let g=b(T({},m),{address:p,body:d,signature:l});return(r=m.extraInfo)!=null&&r.timestamp||delete g.extraInfo,g}catch(o){return null}};var Ln={isExpired:!1},_a=e=>{if(!e)return Ln;let t=Da(e);if(!t)return Ln;let r=Ge(),{ttl:o,extraInfo:i}=t,l=i==null?void 0:i.timestamp;if(!l||!o)return Ln;let p=l+o,d=r>p,m=p-r;return{isExpired:d,expiresAt:p,secondsUntilExpires:m}};n();fe();var vt={origin:W().origin,apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60},It=e=>{var r,o,i,l,p,d;return e===!0?vt:{origin:(r=e==null?void 0:e.origin)!=null?r:vt.origin,blockHashShard:e==null?void 0:e.blockHashShard,expirySeconds:(o=e==null?void 0:e.expirySeconds)!=null?o:vt.expirySeconds,apiAddress:(i=e==null?void 0:e.apiAddress)!=null?i:vt.apiAddress,tokenExpirationToastWarningSeconds:(l=e==null?void 0:e.tokenExpirationToastWarningSeconds)!=null?l:vt.tokenExpirationToastWarningSeconds,extraInfo:(p=e==null?void 0:e.extraInfo)!=null?p:{},gatewayUrl:e==null?void 0:e.gatewayUrl,extraRequestHeaders:(d=e==null?void 0:e.extraRequestHeaders)!=null?d:{}}};var Pn=e=>{let{origin:t,apiAddress:r,expirySeconds:o,blockHashShard:i,extraInfo:l,gatewayUrl:p,extraRequestHeaders:d}=It(e),m=new Oa.NativeAuthClient({origin:t,apiUrl:r,expirySeconds:o,blockHashShard:i,gatewayUrl:p,extraRequestHeaders:d});return{getNativeAuthConfig:It,initialize:f=>w(void 0,null,function*(){var E,v;if(!r)throw new Error("Native auth configuration error: apiAddress is required");if(!t)throw new Error("Native auth configuration error: origin is required");let S=()=>m.getCurrentBlockHash();try{let I=(E=f==null?void 0:f.latestBlockInfo)!=null?E:yield la(r,i,S,f==null?void 0:f.noCache);if(!I)return"";let{hash:D,timestamp:U}=I,$=m.encodeValue(JSON.stringify(T(T({},(v=f==null?void 0:f.extraInfo)!=null?v:l),U?{timestamp:U}:{})));return`${m.encodeValue(t)}.${D}.${o}.${$}`}catch(I){let D=I instanceof Error?I.message:String(I);throw console.error("Native auth token creation failed:",D),new Error(`Native auth token creation failed: ${D}`)}}),getToken:({address:f,token:S,signature:E})=>m.getToken(f,S,E),getTokenExpiration:_a}};var hu=(e,t)=>{var r;return t?t===!0?e:(r=t.apiAddress)!=null?r:e:null},Fa=e=>{let t=B(_e),r=B(as),o=(0,Ma.useRef)(r==null?void 0:r.loginToken),i=hu(t.apiAddress,e),l=It(T(T({},e===!0?{}:e),i?{apiAddress:i}:{})),p=Boolean(e),d=Pn(l),{address:m}=Sn(),g=cr(),x=v=>{o.current=v,g(at(T(b(T({},r),{loginToken:v}),i?{nativeAuthConfig:l}:{})))},f=()=>w(void 0,null,function*(){try{let v=yield d.initialize();if(!v)throw new Error("Failed to generate login token: Empty token received from native auth service");return v}catch(v){let I=v instanceof Error?v.message:String(v);throw console.error("Native auth login token generation failed:",I),new Error(`Native auth login token generation failed: ${I}`)}}),S=({address:v,signature:I})=>{let D=o.current;if(!p){g(at(b(T({},D?{loginToken:D}:{}),{signature:I})));return}if(!D)throw new Error("Native auth login token not found. Ensure getNativeAuthLoginToken was called and completed successfully before setTokenLoginInfo.");try{let U=d.getToken({address:v,token:D,signature:I});return g(at(T({loginToken:D,signature:I,nativeAuthToken:U},i?{nativeAuthConfig:l}:{}))),U}catch(U){return console.error("SDK setTokenLoginInfo - Error generating nativeAuthToken:",U),g(at(T({loginToken:D,signature:I},i?{nativeAuthConfig:l}:{}))),null}};return{configuration:l,setLoginToken:x,getNativeAuthLoginToken:f,setTokenLoginInfo:S,refreshNativeAuthTokenLogin:D=>w(void 0,[D],function*({signMessageCallback:v,nativeAuthClientConfig:I}){let $=yield Pn(I||l).initialize({noCache:Boolean(I)});if(o.current=$,!$)return;let oe=new wr.Message({address:new wr.Address(m),data:s.Buffer.from(`${m}${$}`)}),M=yield v(oe,{});if(!(M!=null&&M.signature))throw"Message not signed";return S({address:m,signature:s.Buffer.from(M.signature).toString("hex")})})}};var Ba=(g=>(g.invalidAddress="Invalid address",g.invalidConfig="Invalid WalletConnect setup",g.invalidTopic="Expired connection",g.sessionExpired="Unable to connect to existing session",g.connectError="Unable to connect",g.userRejected="User rejected connection proposal",g.userRejectedExisting="User rejected existing connection proposal",g.errorLogout="Unable to remove existing pairing",g.invalidChainID="Invalid chainID",g))(Ba||{}),xu=({callbackRoute:e,token:t,nativeAuth:r,onLoginRedirect:o,logoutRoute:i,customRequestMethods:l=[]})=>{var Dn;let p=cr(),d=qs(r),m=Fa(d?r:!1),g=t,[x,f]=(0,Z.useState)(""),[S,E]=(0,Z.useState)(""),[v,I]=(0,Z.useState)(!0),[D,U]=(0,Z.useState)([]),[$,oe]=(0,Z.useState)(null),{provider:M}=Ms(),Ye=B(us),bt=B(ds),kt=B(ms),Ua=B(gs),Wa=B(cs),Va=B(is),k=(0,Z.useRef)(M),Xe=(0,Z.useRef)(!1),Ze=(0,Z.useRef)(!1),Cn=(Dn=i!=null?i:Wa)!=null?Dn:"/",Et=[Tr.CANCEL_ACTION,...l];t&&Et.push(Tr.SIGN_LOGIN_TOKEN),d&&Et.push(Tr.SIGN_NATIVE_AUTH_TOKEN);let $a=v?"":`${Ua}?wallet-connect=${encodeURIComponent(S)}`,Ar=Boolean(x),vr=An(),Ga=()=>{console.log("Logging out from wallet connect"),ra(Cn)},Ha=N=>{console.log("WalletConnect Session Event: ",N)},ja=()=>w(void 0,null,function*(){var N,_,O,V;try{if(Xe.current||k.current==null)return;if(!Ze.current){try{yield(N=k.current)==null?void 0:N.logout()}catch(Se){console.warn("Unable to logout")}return}let G=yield(O=(_=k.current)==null?void 0:_.getAddress)==null?void 0:O.call(_);if(!G){console.warn("Login cancelled.");return}let Q=yield(V=k.current)==null?void 0:V.getSignature(),he={address:G,loginMethod:"walletconnectv2"},xe={logoutRoute:Cn,loginType:"walletconnectv2",callbackRoute:e!=null?e:W().href};p(Xo(xe)),Q&&m.setTokenLoginInfo({signature:Q,address:G}),p(Re(he)),ai({callbackRoute:e,onLoginRedirect:o,options:{address:G,signature:Q}})}catch(G){f("User rejected connection proposal"),console.error(G)}}),Rn=()=>w(void 0,null,function*(){var _,O,V,G,Q;if(ne(k.current)==="walletconnectv2")try{((G=(V=(O=(_=k.current)==null?void 0:_.walletConnector)==null?void 0:O.session)==null?void 0:V.getAll())!=null?G:[]).length>0&&(yield(Q=k.current)==null?void 0:Q.logout()),k.current=ht,oe(null)}catch(he){console.warn("Unable to logout")}}),qa=N=>w(void 0,null,function*(){var _,O,V;if(!Ye||!bt){f("Invalid WalletConnect setup");return}if(!N||!N.topic){f("Expired connection");return}try{if((k.current?ne(k.current):!1)!=="walletconnectv2"){yield Je();return}I(!0),yield Rn();let{token:Q,error:he}=yield kn({hasNativeAuth:d,token:g,loginService:m,onError:f});if(he)return;g=Q,yield Je(!1);let{approval:xe}=yield(_=k.current)==null?void 0:_.connect({topic:N.topic,methods:Et});try{yield(O=k.current)==null?void 0:O.login({approval:xe,token:g})}catch(Se){console.error("User rejected existing connection proposal",Se),f("User rejected existing connection proposal"),I(!0),yield Je()}}catch(G){console.error("Unable to connect to existing session",G),f("Unable to connect to existing session")}finally{U((V=k.current)==null?void 0:V.pairings)}}),za=N=>w(void 0,null,function*(){var _,O;try{N&&(yield(_=k.current)==null?void 0:_.logout({topic:N}))}catch(V){console.error("Unable to remove existing pairing",V),f("Unable to remove existing pairing")}finally{let V=yield(O=k.current)==null?void 0:O.getPairings();U(V)}});function Je(N=!0){return w(this,null,function*(){var Se,_n,On;oa(),N&&(p(qo(Ne.address)),p(ot(Ne)));let _=yield na({maxRetries:15});if(!_){console.error("Invalid chainID"),f("Invalid chainID");return}if(!bt||!Ye){console.error("Invalid WalletConnect setup"),f("Invalid WalletConnect setup");return}let O=An(),V=Ze.current===!1&&!O,G=ne(k.current)==="walletconnectv2",Q=((_n=(Se=k.current)==null?void 0:Se.isInitialized)==null?void 0:_n.call(Se))&&G;if(Xe.current||V||Q)return;if(Xe.current=!0,(On=k.current)!=null&&On.walletConnector){yield k.current.init(),oe(k.current),Xe.current=!1,N&&(yield Nn());return}let he={onClientLogin:ja,onClientLogout:Ga,onClientEvent:Ha},xe=new yr(he,_,Ye,bt,kt);yield xe.init(),oe(xe),k.current=xe,Xe.current=!1,N&&(U(xe.pairings),yield Nn())})}function Nn(){return w(this,null,function*(){var N,_;if(!!k.current){if(!Ye||!bt){f("Invalid WalletConnect setup");return}try{if(!Ze.current)return;let{uri:O,approval:V}=yield(N=k.current)==null?void 0:N.connect({methods:Et});if(!Boolean(O))return;E(O),(kt==null?void 0:kt.logger)==="debug"&&console.log("WalletConnect uri: ",O);let{token:Q,error:he}=yield kn({hasNativeAuth:d,token:g,loginService:m,onError:f});if(he)return;if(g=Q,(k.current?ne(k.current):!1)!=="walletconnectv2"){I(!0),yield Je();return}try{yield(_=k.current)==null?void 0:_.login({approval:V,token:g})}catch(Se){console.error("User rejected connection proposal",Se),f("User rejected connection proposal"),I(!0)}}catch(O){console.error("Unable to connect",O)}}})}return Us(()=>{k.current=M},[M]),(0,Z.useEffect)(()=>(Ze.current=!0,()=>{Ze.current=!1}),[]),(0,Z.useEffect)(()=>{I(!S)},[S]),(0,Z.useEffect)(()=>{if(!$)return;(Boolean($.session)||Va==="walletconnectv2")&&vr&&Os($)},[$,vr]),[Je,{error:x,loginFailed:Ar,isLoading:v&&!Ar,isLoggedIn:vr&&!Ar},{uriDeepLink:$a,walletConnectUri:S,cancelLogin:Rn,connectExisting:qa,removeExistingPairing:za,wcPairings:D}]};0&&(module.exports={WalletConnectV2Error,useWalletConnectV2Login});
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|