@multiversx/sdk-dapp 2.9.4 → 2.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/UI/DappModal/hooks/index.js +1 -1
- package/UI/DappModal/hooks/useDappModal.js +1 -1
- package/UI/DappModal/index.js +1 -1
- package/UI/Denominate/index.js +1 -1
- package/UI/ExplorerLink/ExplorerLink.js +1 -1
- package/UI/ExplorerLink/index.js +1 -1
- package/UI/FormatAmount/FormatAmount.js +1 -1
- package/UI/FormatAmount/index.js +1 -1
- package/UI/ModalContainer/ModalContainer.js +1 -1
- package/UI/ModalContainer/index.js +1 -1
- package/UI/NotificationModal/index.js +1 -1
- package/UI/ScamPhishingAlert/ScamPhishingAlert.d.ts +6 -0
- package/UI/ScamPhishingAlert/ScamPhishingAlert.js +1 -1
- package/UI/ScamPhishingAlert/index.js +1 -1
- package/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithOperaModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +1 -1
- package/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
- package/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
- package/UI/SignTransactionsModals/components/TransactionStatusToast.js +1 -1
- package/UI/SignTransactionsModals/components/index.js +1 -1
- package/UI/SignTransactionsModals/index.js +1 -1
- package/UI/TokenDetails/index.js +1 -1
- package/UI/TransactionData/index.js +1 -1
- package/UI/TransactionDetails/TransactionDetails.js +1 -1
- package/UI/TransactionDetails/components/TransactionDetailsBody.js +1 -1
- package/UI/TransactionDetails/components/index.js +1 -1
- package/UI/TransactionDetails/index.js +1 -1
- package/UI/TransactionInfo/TransactionInfo.js +1 -1
- package/UI/TransactionInfo/components/AddressDetailItem/AddressDetailitem.js +1 -1
- package/UI/TransactionInfo/components/AddressDetailItem/index.js +1 -1
- package/UI/TransactionInfo/components/DataDecode/DataDecode.js +1 -1
- package/UI/TransactionInfo/components/DataDecode/index.js +1 -1
- package/UI/TransactionInfo/components/DataField/DataField.js +1 -1
- package/UI/TransactionInfo/components/DataField/index.js +1 -1
- package/UI/TransactionInfo/components/EventsList/EventsList.js +1 -1
- package/UI/TransactionInfo/components/EventsList/index.js +1 -1
- package/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +1 -1
- package/UI/TransactionInfo/components/NonceMessage/index.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/OperationList.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/DetailedItem.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationBlock.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationRow.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationText.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationToken.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/index.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/ScResultsList.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultData/ResultData.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultData/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/ResultHash.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/ResultReceiver.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/ResultSender.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/index.js +1 -1
- package/UI/TransactionInfo/components/ScrDetailItem/ScrDetailItem.js +1 -1
- package/UI/TransactionInfo/components/ScrDetailItem/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/TransactionAction.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/ActionText/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/ActionToken.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionCollection.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionNft.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionToken.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionLogs/TransactionLogs.js +1 -1
- package/UI/TransactionInfo/components/TransactionLogs/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionStatus/TransactionStatus.js +1 -1
- package/UI/TransactionInfo/components/TransactionStatus/index.js +1 -1
- package/UI/TransactionInfo/components/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoAge/TransactionInfoAge.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoAge/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/TransactionInfoEgldPrice.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/TransactionInfoFee.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/TransactionInfoFrom.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/TransactionInfoGasLimit.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/TransactionInfoGasPrice.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/TransactionInfoGasUsed.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/TransactionInfoInputData.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/TransactionInfoMethod.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/TransactionInfoMiniblock.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/TransactionInfoScResults.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/TransactionInfoStatus.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/TransactionInfoTo.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/TransactionInfoTokenOperations.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/TransactionInfoValue.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/index.js +1 -1
- package/UI/TransactionInfo/index.js +1 -1
- package/UI/TransactionsTable/TransactionsTable.js +1 -1
- package/UI/TransactionsTable/components/LockedTokenAddressIcon.js +1 -1
- package/UI/TransactionsTable/components/ScAddressIcon.js +1 -1
- package/UI/TransactionsTable/components/ShardSpan.js +1 -1
- package/UI/TransactionsTable/components/TransactionHash.js +1 -1
- package/UI/TransactionsTable/components/TransactionIcon.js +1 -1
- package/UI/TransactionsTable/components/TransactionReceiver.js +1 -1
- package/UI/TransactionsTable/components/TransactionRow.js +1 -1
- package/UI/TransactionsTable/components/TransactionSender.js +1 -1
- package/UI/TransactionsTable/components/TransactionShardsTransition.js +1 -1
- package/UI/TransactionsTable/components/TransactionValue/TransactionValue.js +1 -1
- package/UI/TransactionsTable/components/TransactionValue/index.js +1 -1
- package/UI/TransactionsTable/components/index.js +1 -1
- package/UI/TransactionsTable/index.js +1 -1
- package/UI/TransactionsToastList/TransactionsToastList.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/CustomToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/ComponentToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/helpers/getIsTransaction.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/helpers/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/helpers/useMemoizedCloseButton.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/components/TransactionToastContent.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/components/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/utils/getToastDataStateByStatus.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/utils/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
- package/UI/TransactionsToastList/components/index.js +1 -1
- package/UI/TransactionsToastList/index.js +1 -1
- package/UI/UsdValue/UsdValue.js +1 -1
- package/UI/UsdValue/index.js +1 -1
- package/UI/extension/ExtensionLoginButton/index.js +1 -1
- package/UI/index.js +1 -1
- package/UI/ledger/LedgerLoginButton/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressRow.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressTable.js +1 -1
- package/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +1 -1
- package/UI/ledger/LedgerLoginContainer/index.js +1 -1
- package/UI/ledger/index.js +1 -1
- package/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
- package/UI/pages/UnlockPage/index.js +1 -1
- package/UI/pages/index.js +1 -1
- package/UI/walletConnect/WalletConnectConnectionStatus/WalletConnectConnectionStatus.js +1 -1
- package/UI/walletConnect/WalletConnectConnectionStatus/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
- package/UI/walletConnect/index.js +1 -1
- package/UI/webWallet/WebWalletLoginButton/index.js +1 -1
- package/__chunks__/{chunk-QB77NCQP.js → chunk-23C7PSCU.js} +2 -2
- package/__chunks__/chunk-24L47LFC.js +2 -0
- package/__chunks__/chunk-24NXBISC.js +2 -0
- package/__chunks__/{chunk-CKON224P.js → chunk-275ET3MG.js} +2 -2
- package/__chunks__/chunk-27FOVSG4.js +2 -0
- package/__chunks__/{chunk-DJE62XNL.js → chunk-2AUVCAY2.js} +2 -2
- package/__chunks__/{chunk-ZJLU56XW.js → chunk-2C4D4BXB.js} +2 -2
- package/__chunks__/{chunk-MUARPNJ4.js → chunk-2F2F6SXB.js} +2 -2
- package/__chunks__/{chunk-6D3XECJF.js → chunk-2GRUAWVQ.js} +2 -2
- package/__chunks__/{chunk-OGM64QGG.js → chunk-2OGSUSTF.js} +2 -2
- package/__chunks__/{chunk-YMALAD3K.js → chunk-2VZDXZQ5.js} +2 -2
- package/__chunks__/{chunk-QNBNTXIT.js → chunk-2W2FXPJN.js} +2 -2
- package/__chunks__/{chunk-KJDC7FVK.js → chunk-33RUZW2A.js} +2 -2
- package/__chunks__/{chunk-LT2FAIWS.js → chunk-3FTRTVML.js} +2 -2
- package/__chunks__/{chunk-OYESXIST.js → chunk-3LZDI5TU.js} +2 -2
- package/__chunks__/{chunk-4BNSTWCX.js → chunk-3M4SIGZT.js} +2 -2
- package/__chunks__/{chunk-JZ2Y7SFA.js → chunk-3Z3XQSPU.js} +2 -2
- package/__chunks__/{chunk-R7JGMLFZ.js → chunk-45AZIANS.js} +2 -2
- package/__chunks__/{chunk-YZSCV3FW.js → chunk-463NLZJE.js} +2 -2
- package/__chunks__/{chunk-HLEXPOK5.js → chunk-4BE3NFUD.js} +2 -2
- package/__chunks__/chunk-4JUSV4O3.js +2 -0
- package/__chunks__/{chunk-BYYVJIPP.js → chunk-4NK74AZF.js} +2 -2
- package/__chunks__/{chunk-MSXSTSBP.js → chunk-4PBGN6HU.js} +2 -2
- package/__chunks__/{chunk-7XL5MCJK.js → chunk-4QT63WFQ.js} +2 -2
- package/__chunks__/{chunk-ZGQSC36F.js → chunk-4QVOURVU.js} +2 -2
- package/__chunks__/{chunk-BBQMKL5D.js → chunk-4XDCRJFT.js} +2 -2
- package/__chunks__/{chunk-4AOEMKED.js → chunk-5DATHNGR.js} +2 -2
- package/__chunks__/chunk-5HEC3YLM.js +2 -0
- package/__chunks__/{chunk-BAG2O7IE.js → chunk-5KGYQ5YJ.js} +2 -2
- package/__chunks__/{chunk-5CTSV7TH.js → chunk-5LVOAS3B.js} +2 -2
- package/__chunks__/{chunk-NHNWAEZU.js → chunk-5MYSV4SO.js} +2 -2
- package/__chunks__/{chunk-ESYXEFZ7.js → chunk-5OLXKR6C.js} +2 -2
- package/__chunks__/{chunk-H2H3IXYD.js → chunk-5RTST5UL.js} +2 -2
- package/__chunks__/{chunk-PYG3OL3F.js → chunk-5VRKUYL5.js} +2 -2
- package/__chunks__/{chunk-5MRTWQBG.js → chunk-5ZMUR7H7.js} +2 -2
- package/__chunks__/{chunk-PBXY5VMX.js → chunk-62LPCEWI.js} +2 -2
- package/__chunks__/{chunk-DQ2DOR6B.js → chunk-64FKZVXB.js} +2 -2
- package/__chunks__/{chunk-AMM27AEW.js → chunk-6D35ISCH.js} +2 -2
- package/__chunks__/{chunk-PHI6WXH3.js → chunk-6DXP6E4O.js} +2 -2
- package/__chunks__/chunk-6DYUOTME.js +2 -0
- package/__chunks__/{chunk-7EY74WNI.js → chunk-6GTXZ4FY.js} +2 -2
- package/__chunks__/{chunk-GFGHEH4C.js → chunk-6HLEIPL4.js} +2 -2
- package/__chunks__/chunk-6LYP3E7T.js +2 -0
- package/__chunks__/{chunk-J5EWZ734.js → chunk-6MI5GXXO.js} +2 -2
- package/__chunks__/chunk-6PH5XEI7.js +2 -0
- package/__chunks__/{chunk-D2O5MZMR.js → chunk-6QYMQVME.js} +2 -2
- package/__chunks__/{chunk-JJP72MAJ.js → chunk-6RHGIGMZ.js} +2 -2
- package/__chunks__/{chunk-ZLERNDUF.js → chunk-6ROKDWR7.js} +2 -2
- package/__chunks__/{chunk-VEAORVA6.js → chunk-74Q5MYVW.js} +2 -2
- package/__chunks__/chunk-7AEDPEBX.js +2 -0
- package/__chunks__/{chunk-OT2NVXBU.js → chunk-7KZPFHA7.js} +2 -2
- package/__chunks__/{chunk-JS2HC4SX.js → chunk-7WE7OBCZ.js} +2 -2
- package/__chunks__/{chunk-SA2UKCJX.js → chunk-7YH5VZS2.js} +2 -2
- package/__chunks__/{chunk-KMDMJSTX.js → chunk-A3XBAFZH.js} +2 -2
- package/__chunks__/{chunk-JI2RQZZD.js → chunk-AIL4PBA7.js} +2 -2
- package/__chunks__/chunk-AL2J7KB6.js +2 -0
- package/__chunks__/{chunk-5ZW4DA22.js → chunk-AQ3UNMCA.js} +2 -2
- package/__chunks__/chunk-AVGHJOI6.js +2 -0
- package/__chunks__/{chunk-UMK6DGBB.js → chunk-AWEYI553.js} +2 -2
- package/__chunks__/{chunk-N5TBTK3M.js → chunk-AWQPH4LC.js} +2 -2
- package/__chunks__/{chunk-M5D23LEL.js → chunk-B3M2FLWF.js} +2 -2
- package/__chunks__/{chunk-WUZCRVSU.js → chunk-B4WCXVUI.js} +2 -2
- package/__chunks__/{chunk-U63TNTLR.js → chunk-B7U7C44X.js} +2 -2
- package/__chunks__/{chunk-ALN2ZAQY.js → chunk-BGHY6J4G.js} +2 -2
- package/__chunks__/{chunk-4B4D6PRI.js → chunk-BHXTZPBC.js} +2 -2
- package/__chunks__/{chunk-XXJ64HPL.js → chunk-BK5NO33M.js} +2 -2
- package/__chunks__/chunk-BM4XGIZN.js +2 -0
- package/__chunks__/{chunk-L2UUUYJG.js → chunk-BMHV4H76.js} +2 -2
- package/__chunks__/{chunk-V6H2IJKH.js → chunk-BUPVEQ5J.js} +2 -2
- package/__chunks__/chunk-C2H5OPTX.js +2 -0
- package/__chunks__/{chunk-VMNKME5Q.js → chunk-C34CKSUX.js} +2 -2
- package/__chunks__/chunk-C4MQO6LF.js +2 -0
- package/__chunks__/{chunk-DUPCI6XE.js → chunk-C5CGNL6I.js} +2 -2
- package/__chunks__/{chunk-N6WFQG55.js → chunk-C6XUZNBO.js} +2 -2
- package/__chunks__/{chunk-RGS2R63F.js → chunk-CA4Q4MT7.js} +2 -2
- package/__chunks__/{chunk-XWRW4TO4.js → chunk-CFRQE7JG.js} +2 -2
- package/__chunks__/{chunk-VNODUVFK.js → chunk-CGM7WOQF.js} +2 -2
- package/__chunks__/{chunk-KTUPMIFX.js → chunk-CLB447PY.js} +2 -2
- package/__chunks__/{chunk-KYEQ3HY7.js → chunk-CLY5MAPE.js} +2 -2
- package/__chunks__/{chunk-RUDUNU34.js → chunk-CNPDPX2F.js} +2 -2
- package/__chunks__/{chunk-TGRX3YCF.js → chunk-CQGYS7PC.js} +2 -2
- package/__chunks__/{chunk-WQ22KG5Y.js → chunk-CZJRRY2I.js} +2 -2
- package/__chunks__/{chunk-24SJCJRG.js → chunk-D2DOX7XX.js} +2 -2
- package/__chunks__/{chunk-7JLRHOSP.js → chunk-DHHFPYRR.js} +2 -2
- package/__chunks__/{chunk-WVNUK67H.js → chunk-DI67V6VC.js} +2 -2
- package/__chunks__/{chunk-VOLUHLVM.js → chunk-DNIYPVUV.js} +2 -2
- package/__chunks__/chunk-DNOXON3M.js +2 -0
- package/__chunks__/chunk-DSFJO624.js +2 -0
- package/__chunks__/{chunk-5EGPVDYI.js → chunk-DVOTPSUB.js} +2 -2
- package/__chunks__/chunk-DY7CS3RG.js +2 -0
- package/__chunks__/{chunk-65KFD325.js → chunk-E2NBQFIC.js} +2 -2
- package/__chunks__/{chunk-RFVFASBJ.js → chunk-E5KECQYG.js} +2 -2
- package/__chunks__/{chunk-LGYW2J5J.js → chunk-E7ZJLCWM.js} +2 -2
- package/__chunks__/{chunk-LVOMPLSI.js → chunk-EAVICDCR.js} +2 -2
- package/__chunks__/chunk-EBEYQZIS.js +2 -0
- package/__chunks__/{chunk-RRXC3HFG.js → chunk-ECNBTR2P.js} +2 -2
- package/__chunks__/chunk-EHBEIKPT.js +2 -0
- package/__chunks__/{chunk-BN5PQAN2.js → chunk-ELJRZBUP.js} +2 -2
- package/__chunks__/{chunk-OPDO5T3P.js → chunk-ESY2WJZF.js} +2 -2
- package/__chunks__/{chunk-VGPEWMQW.js → chunk-EU3M2TPH.js} +2 -2
- package/__chunks__/{chunk-SPLIL3ZF.js → chunk-EVHHLVIO.js} +2 -2
- package/__chunks__/{chunk-7KR7Q4BZ.js → chunk-EVKVW6OP.js} +2 -2
- package/__chunks__/{chunk-EFQAZJYN.js → chunk-F4LPQWRK.js} +2 -2
- package/__chunks__/{chunk-VP5L3R3J.js → chunk-F5O3Z6FA.js} +2 -2
- package/__chunks__/{chunk-JGZCNGRV.js → chunk-FDG3CTJQ.js} +2 -2
- package/__chunks__/{chunk-DXOQOQTD.js → chunk-FG7U2ZRB.js} +2 -2
- package/__chunks__/{chunk-5XELCN7M.js → chunk-FITCOASE.js} +2 -2
- package/__chunks__/chunk-FL42ANFT.js +2 -0
- package/__chunks__/chunk-FT6XZQFL.js +2 -0
- package/__chunks__/{chunk-52ECK57H.js → chunk-FUMYEVN5.js} +2 -2
- package/__chunks__/{chunk-PUO4W3JY.js → chunk-FWTCHRN5.js} +2 -2
- package/__chunks__/{chunk-LTDUS257.js → chunk-G5T5SM4B.js} +2 -2
- package/__chunks__/{chunk-72FDUWXP.js → chunk-GDEIDSQC.js} +2 -2
- package/__chunks__/chunk-GFAN5STZ.js +2 -0
- package/__chunks__/{chunk-35VZ6NCK.js → chunk-GHTSBIH4.js} +2 -2
- package/__chunks__/chunk-GKSVI6Q5.js +2 -0
- package/__chunks__/{chunk-6CORFLG2.js → chunk-GO7NXC6I.js} +2 -2
- package/__chunks__/{chunk-OPAGSP3Y.js → chunk-GPQOL7GB.js} +2 -2
- package/__chunks__/chunk-GQX2AXPF.js +2 -0
- package/__chunks__/{chunk-TDYVMPIO.js → chunk-GYT7W4IV.js} +2 -2
- package/__chunks__/{chunk-JP736RXG.js → chunk-GZ7UARPP.js} +2 -2
- package/__chunks__/{chunk-XJVQOJZB.js → chunk-H5VMN2B4.js} +2 -2
- package/__chunks__/{chunk-KLLXNFCE.js → chunk-HCBNUJGK.js} +2 -2
- package/__chunks__/{chunk-J3POMKPU.js → chunk-HCG2PO6Z.js} +2 -2
- package/__chunks__/{chunk-FZ3BVOID.js → chunk-HFD6SX7K.js} +2 -2
- package/__chunks__/chunk-HFLWYN2V.js +2 -0
- package/__chunks__/{chunk-NHLZWMC2.js → chunk-HHL5UDTQ.js} +2 -2
- package/__chunks__/chunk-HHNOK5PG.js +2 -0
- package/__chunks__/{chunk-KFKU4K4H.js → chunk-HKO35JVE.js} +2 -2
- package/__chunks__/{chunk-RVISUG5T.js → chunk-HQYYJGF4.js} +2 -2
- package/__chunks__/{chunk-LKJPV45E.js → chunk-I4VYIHJD.js} +2 -2
- package/__chunks__/{chunk-TGQUDIQS.js → chunk-I5VKTCVW.js} +2 -2
- package/__chunks__/{chunk-IMNJMWNY.js → chunk-ID3NTT4Z.js} +2 -2
- package/__chunks__/{chunk-MIUU5UXK.js → chunk-IFVVHVQM.js} +2 -2
- package/__chunks__/{chunk-VKLTH4PZ.js → chunk-IJIYT3QB.js} +2 -2
- package/__chunks__/chunk-IRBTPHUB.js +2 -0
- package/__chunks__/{chunk-FT2IN7BT.js → chunk-ITUIM5G6.js} +2 -2
- package/__chunks__/{chunk-5KK3CLWQ.js → chunk-IUSZYBUQ.js} +2 -2
- package/__chunks__/{chunk-CLAUUCCC.js → chunk-IWAB24AH.js} +2 -2
- package/__chunks__/{chunk-6LGKAMXK.js → chunk-J56U5IAV.js} +2 -2
- package/__chunks__/{chunk-5DV7AOX4.js → chunk-J7M5HUAD.js} +2 -2
- package/__chunks__/{chunk-JCMBU43R.js → chunk-JDCJAJD4.js} +2 -2
- package/__chunks__/{chunk-SRVNBVIN.js → chunk-JHQFA6YK.js} +2 -2
- package/__chunks__/{chunk-PNXAVAWX.js → chunk-JMCMYELN.js} +2 -2
- package/__chunks__/{chunk-QQS7BRLY.js → chunk-JNMLUSOK.js} +2 -2
- package/__chunks__/{chunk-HEQQ64B6.js → chunk-JPJTXA2G.js} +2 -2
- package/__chunks__/{chunk-PADNJI6W.js → chunk-JQYERTXG.js} +2 -2
- package/__chunks__/{chunk-32JTIMBG.js → chunk-JUURLCJI.js} +2 -2
- package/__chunks__/chunk-JVSYNX7I.js +2 -0
- package/__chunks__/{chunk-6IBZJR36.js → chunk-JY3HMAMR.js} +2 -2
- package/__chunks__/{chunk-46PCNA3N.js → chunk-JZNLILZQ.js} +2 -2
- package/__chunks__/{chunk-CILXKB6B.js → chunk-K3WF2VCZ.js} +2 -2
- package/__chunks__/{chunk-QN2Y4SM6.js → chunk-K7WZNW5X.js} +2 -2
- package/__chunks__/{chunk-7S7LAS32.js → chunk-KDSNYB35.js} +2 -2
- package/__chunks__/{chunk-YKNQQTMV.js → chunk-KN53GKZX.js} +2 -2
- package/__chunks__/{chunk-JR6NRUWF.js → chunk-KOQXMQSP.js} +2 -2
- package/__chunks__/{chunk-OJC5LON4.js → chunk-KV4BYCDF.js} +2 -2
- package/__chunks__/{chunk-TXKLIAKR.js → chunk-KYFQ6IIQ.js} +2 -2
- package/__chunks__/{chunk-TF77GIBC.js → chunk-LNOKECRH.js} +2 -2
- package/__chunks__/{chunk-CXMSIGN3.js → chunk-LTJVHYYW.js} +2 -2
- package/__chunks__/{chunk-EWWRMWGQ.js → chunk-LVWF5CKD.js} +2 -2
- package/__chunks__/chunk-LW7U3EUB.js +2 -0
- package/__chunks__/{chunk-R6OGIXW3.js → chunk-LWAL5OMN.js} +2 -2
- package/__chunks__/{chunk-TMUOMOCN.js → chunk-LYN37XH5.js} +2 -2
- package/__chunks__/{chunk-BPPVSU25.js → chunk-M233YJDK.js} +1 -1
- package/__chunks__/{chunk-NUNUM2A2.js → chunk-M5BOIA6B.js} +2 -2
- package/__chunks__/chunk-M7T4AUBP.js +2 -0
- package/__chunks__/{chunk-QH27B2OC.js → chunk-MC7RXBF4.js} +2 -2
- package/__chunks__/{chunk-VLHTKYIW.js → chunk-ME4CQMKT.js} +2 -2
- package/__chunks__/chunk-MFT36UPJ.js +2 -0
- package/__chunks__/{chunk-CQVMLDWA.js → chunk-MM5XW7VA.js} +2 -2
- package/__chunks__/{chunk-Z4CVKFHQ.js → chunk-MTWKFHRA.js} +2 -2
- package/__chunks__/chunk-MX3CY6TB.js +2 -0
- package/__chunks__/{chunk-YTSEILVL.js → chunk-MY5N6ROI.js} +2 -2
- package/__chunks__/{chunk-7FIOYGVQ.js → chunk-MYBMSS23.js} +2 -2
- package/__chunks__/chunk-N5EEQD2P.js +2 -0
- package/__chunks__/{chunk-RLOOYBXD.js → chunk-NALUFJK4.js} +2 -2
- package/__chunks__/chunk-NHZC5PWW.js +2 -0
- package/__chunks__/{chunk-X7KSFJQK.js → chunk-NKWA6FJW.js} +2 -2
- package/__chunks__/{chunk-CVSHXU7I.js → chunk-NTPWI3LZ.js} +2 -2
- package/__chunks__/chunk-NUQWOH62.js +2 -0
- package/__chunks__/chunk-O76SO5NN.js +2 -0
- package/__chunks__/chunk-OBCFAKCR.js +2 -0
- package/__chunks__/chunk-OCH5X6XJ.js +2 -0
- package/__chunks__/{chunk-ZUXEYBK5.js → chunk-OCIFQ26I.js} +2 -2
- package/__chunks__/{chunk-NR5NGCMG.js → chunk-OJUAVBN4.js} +2 -2
- package/__chunks__/chunk-OKGLECMC.js +2 -0
- package/__chunks__/chunk-OLI3TNCJ.js +2 -0
- package/__chunks__/{chunk-HED7LZVU.js → chunk-OQ2YXDWR.js} +2 -2
- package/__chunks__/{chunk-YANNTW2Q.js → chunk-OQ3JVDP4.js} +2 -2
- package/__chunks__/{chunk-UORGIPVL.js → chunk-OQUCU64T.js} +2 -2
- package/__chunks__/{chunk-BACKWDOJ.js → chunk-ORCYEIJZ.js} +2 -2
- package/__chunks__/chunk-OT7R2NEQ.js +2 -0
- package/__chunks__/chunk-OZBDF76V.js +2 -0
- package/__chunks__/{chunk-PDWYQFPS.js → chunk-P24VSIZF.js} +2 -2
- package/__chunks__/{chunk-W4GZJ24H.js → chunk-P2KRF4TX.js} +2 -2
- package/__chunks__/{chunk-TLCTBY2K.js → chunk-P4ZLCGAX.js} +2 -2
- package/__chunks__/{chunk-CSSOPAY3.js → chunk-PRBT2JHG.js} +2 -2
- package/__chunks__/chunk-PV4P32HG.js +2 -0
- package/__chunks__/{chunk-KBFFGMRC.js → chunk-PYNDT3DJ.js} +2 -2
- package/__chunks__/{chunk-CWCTVSSE.js → chunk-Q7HPUVKJ.js} +2 -2
- package/__chunks__/{chunk-UY7WU4RX.js → chunk-QE6MZGN5.js} +2 -2
- package/__chunks__/{chunk-ZGUGCPPH.js → chunk-QFLGG2EQ.js} +2 -2
- package/__chunks__/{chunk-D5K7WBRB.js → chunk-QGZR4AIT.js} +2 -2
- package/__chunks__/{chunk-O3DTNAEY.js → chunk-QSHIJADJ.js} +2 -2
- package/__chunks__/{chunk-ONX2WKS4.js → chunk-QVIRQKAN.js} +2 -2
- package/__chunks__/{chunk-RCHL72K4.js → chunk-QWWOCHOY.js} +2 -2
- package/__chunks__/{chunk-G2OLVYAC.js → chunk-QWZX4YJN.js} +2 -2
- package/__chunks__/{chunk-CEU34V6N.js → chunk-R2TDBDEX.js} +2 -2
- package/__chunks__/{chunk-3F3GOL42.js → chunk-R5AZ5VME.js} +2 -2
- package/__chunks__/chunk-RF7HMR74.js +2 -0
- package/__chunks__/{chunk-GBAACFEX.js → chunk-RYJFVB3O.js} +2 -2
- package/__chunks__/{chunk-FQ72GI3P.js → chunk-SF4HPDHQ.js} +2 -2
- package/__chunks__/{chunk-K5EF6Y3F.js → chunk-SHWQX35Z.js} +2 -2
- package/__chunks__/{chunk-3M4QTTV7.js → chunk-SMYUEECP.js} +2 -2
- package/__chunks__/{chunk-S75EYWKY.js → chunk-SP5SBX3P.js} +2 -2
- package/__chunks__/{chunk-XX2BDOLP.js → chunk-SPD45ZEH.js} +2 -2
- package/__chunks__/{chunk-N4WBG64L.js → chunk-SQDL2UBG.js} +2 -2
- package/__chunks__/chunk-SW27GSXL.js +2 -0
- package/__chunks__/{chunk-THATLRXI.js → chunk-TKGUBRTO.js} +2 -2
- package/__chunks__/chunk-TQPEOA25.js +2 -0
- package/__chunks__/{chunk-PKNLHLMK.js → chunk-TU5N4L3F.js} +2 -2
- package/__chunks__/{chunk-NQVKUO5J.js → chunk-U5LSCOHZ.js} +2 -2
- package/__chunks__/{chunk-CV6LTYEN.js → chunk-UB4DU6IY.js} +2 -2
- package/__chunks__/{chunk-ZUBYGCI6.js → chunk-UGG4ZVT7.js} +2 -2
- package/__chunks__/{chunk-HUHBWTGV.js → chunk-UHNAW66J.js} +2 -2
- package/__chunks__/{chunk-W4BJGGSU.js → chunk-UIMOFTYA.js} +2 -2
- package/__chunks__/{chunk-WL5XAOJQ.js → chunk-UNC4ZPZ7.js} +2 -2
- package/__chunks__/{chunk-Z2ZEUHYK.js → chunk-UNWWLB6H.js} +2 -2
- package/__chunks__/{chunk-QXVU5FGO.js → chunk-USGR36BQ.js} +2 -2
- package/__chunks__/{chunk-SNGAFUP6.js → chunk-UV3BQKFK.js} +2 -2
- package/__chunks__/{chunk-HKOVN6MG.js → chunk-V3X7UG2C.js} +2 -2
- package/__chunks__/{chunk-COUZONBL.js → chunk-V5QSDNY3.js} +2 -2
- package/__chunks__/{chunk-XMM4AD2U.js → chunk-V7ACSO4O.js} +2 -2
- package/__chunks__/{chunk-LO3RIUS3.js → chunk-VH5YTYFI.js} +2 -2
- package/__chunks__/chunk-VMD67BF6.js +2 -0
- package/__chunks__/{chunk-JJ5TU65J.js → chunk-VXWN2IY4.js} +2 -2
- package/__chunks__/{chunk-65PTUMFW.js → chunk-W3YW72OF.js} +2 -2
- package/__chunks__/{chunk-KXYOZZWH.js → chunk-WA5XP3EV.js} +2 -2
- package/__chunks__/{chunk-QMFN5L42.js → chunk-WEA4C5X7.js} +2 -2
- package/__chunks__/{chunk-IINAI2T7.js → chunk-WFMSTO6P.js} +2 -2
- package/__chunks__/{chunk-4UQWT5ZQ.js → chunk-WHJDOGU7.js} +2 -2
- package/__chunks__/{chunk-YNWHJAAC.js → chunk-WJF3CIOE.js} +2 -2
- package/__chunks__/{chunk-7ATRC2HC.js → chunk-WNSPURWS.js} +2 -2
- package/__chunks__/{chunk-GDDIVHLD.js → chunk-WOHL234A.js} +2 -2
- package/__chunks__/chunk-WQV4NSZG.js +2 -0
- package/__chunks__/{chunk-AUMJWTVL.js → chunk-WRO6THDA.js} +2 -2
- package/__chunks__/chunk-WTMHDI3F.js +2 -0
- package/__chunks__/{chunk-7VAMMQBW.js → chunk-WXYQ5GK4.js} +2 -2
- package/__chunks__/{chunk-FULWXGZA.js → chunk-X2VKBIHG.js} +2 -2
- package/__chunks__/{chunk-LPOKARPF.js → chunk-XCEK2L6C.js} +2 -2
- package/__chunks__/{chunk-G5FPMOKK.js → chunk-XHD63UMY.js} +2 -2
- package/__chunks__/{chunk-BJLACGZ2.js → chunk-XKG6MJJF.js} +2 -2
- package/__chunks__/{chunk-GZH3R2XH.js → chunk-XRI4KXUU.js} +2 -2
- package/__chunks__/{chunk-QX22NYVR.js → chunk-Y3NLPZAR.js} +2 -2
- package/__chunks__/{chunk-RULY5VOQ.js → chunk-YB4BVMRP.js} +2 -2
- package/__chunks__/{chunk-EEI35GZT.js → chunk-YNIWDNDQ.js} +2 -2
- package/__chunks__/{chunk-C5LKGARX.js → chunk-YPXBAXJG.js} +2 -2
- package/__chunks__/{chunk-JSOZJSKF.js → chunk-YRXFSVU4.js} +2 -2
- package/__chunks__/chunk-YSQKUC2C.js +2 -0
- package/__chunks__/{chunk-RQJTGIXR.js → chunk-YT6MEERZ.js} +2 -2
- package/__chunks__/{chunk-RHJRKQLW.js → chunk-YUW6HFTC.js} +2 -2
- package/__chunks__/{chunk-FKIKFBN6.js → chunk-YX7HCJV4.js} +2 -2
- package/__chunks__/{chunk-JH6JZ4CB.js → chunk-YZLRTQIA.js} +2 -2
- package/__chunks__/{chunk-TKL5MHDO.js → chunk-Z2W42GR6.js} +2 -2
- package/__chunks__/{chunk-2L5WU6KF.js → chunk-Z5HOLA7Z.js} +2 -2
- package/__chunks__/{chunk-GVQUOFTI.js → chunk-ZEN5RLW4.js} +2 -2
- package/__chunks__/{chunk-BOW2EG2N.js → chunk-ZFOGJLJ6.js} +2 -2
- package/__chunks__/{chunk-HWHFIUZU.js → chunk-ZJ6WAYTZ.js} +2 -2
- package/__chunks__/{chunk-7YQ54JUZ.js → chunk-ZV5ESV2M.js} +2 -2
- package/__chunks__/{chunk-GSMMBXTD.js → chunk-ZYBZKJ66.js} +2 -2
- package/__chunks__/{chunk-NL2BF2BK.js → chunk-ZYXYZADX.js} +2 -2
- package/__chunks__/{chunk-5RYOEKY5.js → chunk-ZZ4XEJL7.js} +2 -2
- package/__commonjs/UI/DappModal/hooks/index.js +1 -1
- package/__commonjs/UI/DappModal/hooks/useDappModal.js +1 -1
- package/__commonjs/UI/DappModal/index.js +1 -1
- package/__commonjs/UI/ModalContainer/ModalContainer.js +1 -1
- package/__commonjs/UI/ModalContainer/index.js +1 -1
- package/__commonjs/UI/NotificationModal/index.js +1 -1
- package/__commonjs/UI/ScamPhishingAlert/ScamPhishingAlert.js +2 -2
- package/__commonjs/UI/ScamPhishingAlert/index.js +2 -2
- package/__commonjs/UI/SignTransactionsModals/SignTransactionsModals.js +22 -22
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithOperaModal/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +4 -4
- package/__commonjs/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/components/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/index.js +22 -22
- package/__commonjs/UI/TransactionInfo/TransactionInfo.js +1 -1
- package/__commonjs/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +1 -1
- package/__commonjs/UI/TransactionInfo/components/NonceMessage/index.js +1 -1
- package/__commonjs/UI/TransactionInfo/components/index.js +1 -1
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +1 -1
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +1 -1
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/index.js +1 -1
- package/__commonjs/UI/TransactionInfo/index.js +1 -1
- package/__commonjs/UI/TransactionsTable/TransactionsTable.js +1 -1
- package/__commonjs/UI/TransactionsTable/index.js +1 -1
- package/__commonjs/UI/TransactionsToastList/TransactionsToastList.js +1 -1
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +8 -8
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +2 -2
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/index.js +8 -8
- package/__commonjs/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
- package/__commonjs/UI/TransactionsToastList/components/index.js +1 -1
- package/__commonjs/UI/TransactionsToastList/index.js +1 -1
- package/__commonjs/UI/extension/ExtensionLoginButton/index.js +1 -1
- package/__commonjs/UI/index.js +69 -69
- package/__commonjs/UI/ledger/LedgerLoginButton/index.js +15 -15
- package/__commonjs/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +1 -1
- package/__commonjs/UI/ledger/LedgerLoginContainer/index.js +14 -14
- package/__commonjs/UI/ledger/index.js +15 -15
- package/__commonjs/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
- package/__commonjs/UI/pages/UnlockPage/index.js +18 -18
- package/__commonjs/UI/pages/index.js +18 -18
- package/__commonjs/UI/walletConnect/WalletConnectLoginButton/index.js +7 -7
- package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/index.js +6 -6
- package/__commonjs/UI/walletConnect/index.js +7 -7
- package/__commonjs/UI/webWallet/WebWalletLoginButton/index.js +1 -1
- package/__commonjs/__mocks__/index.js +1 -1
- package/__commonjs/__mocks__/server.js +1 -1
- package/__commonjs/__mocks__/utils/index.js +1 -1
- package/__commonjs/__mocks__/utils/renderWithProvider.js +1 -1
- package/__commonjs/components/LogoutListener/LogoutListener.js +1 -1
- package/__commonjs/components/LogoutListener/helpers/index.js +1 -1
- package/__commonjs/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
- package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
- package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
- package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
- package/__commonjs/components/LogoutListener/index.js +1 -1
- package/__commonjs/components/ProviderInitializer.js +1 -1
- package/__commonjs/components/TransactionsTracker/TransactionTracker.js +1 -1
- package/__commonjs/components/TransactionsTracker/index.js +1 -1
- package/__commonjs/components/TransactionsTracker/useTransactionsTracker.js +1 -1
- package/__commonjs/hooks/index.js +1 -1
- package/__commonjs/hooks/login/index.js +1 -1
- package/__commonjs/hooks/login/useExtensionLogin.js +1 -1
- package/__commonjs/hooks/login/useLedgerLogin.js +1 -1
- package/__commonjs/hooks/login/useLoginService.js +1 -1
- package/__commonjs/hooks/login/useOperaLogin.js +1 -1
- package/__commonjs/hooks/login/useWalletConnectLogin.js +1 -1
- package/__commonjs/hooks/login/useWalletConnectV2Login.js +1 -1
- package/__commonjs/hooks/login/useWebViewLogin.js +1 -1
- package/__commonjs/hooks/login/useWebWalletLogin.js +1 -1
- package/__commonjs/hooks/signMessage/index.js +1 -1
- package/__commonjs/hooks/signMessage/{useVerifyMessage.js → verifyMessage.js} +2 -2
- package/__commonjs/hooks/transactions/index.js +1 -1
- package/__commonjs/hooks/transactions/useTrackTransactionStatus.js +1 -1
- package/__commonjs/providers/webviewProvider/index.js +1 -1
- package/__commonjs/providers/webviewProvider/requestMethods.js +1 -1
- package/__commonjs/providers/webviewProvider/webviewProvider.js +1 -1
- package/__commonjs/reduxStore/commonActions.js +1 -1
- package/__commonjs/reduxStore/persistedRootReducer.js +1 -1
- package/__commonjs/reduxStore/slices/dappModalsSlice.js +1 -1
- package/__commonjs/services/index.js +1 -1
- package/__commonjs/services/nativeAuth/helpers/decodeNativeAuthToken.js +1 -1
- package/__commonjs/services/nativeAuth/helpers/index.js +1 -1
- package/__commonjs/services/nativeAuth/helpers/loginWithNativeAuthToken.js +1 -1
- package/__commonjs/services/nativeAuth/index.js +1 -1
- package/__commonjs/services/nativeAuth/methods/getNativeAuthConfig.js +1 -1
- package/__commonjs/services/nativeAuth/methods/getTokenExpiration.js +1 -1
- package/__commonjs/services/nativeAuth/methods/index.js +1 -1
- package/__commonjs/services/nativeAuth/nativeAuth.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromActions.js +1 -1
- package/__commonjs/wrappers/DappProvider/CustomComponents.js +1 -1
- package/__commonjs/wrappers/DappProvider/index.js +1 -1
- package/__commonjs/wrappers/index.js +1 -1
- package/__mocks__/accountConfig.js +1 -1
- package/__mocks__/index.js +1 -1
- package/__mocks__/server.js +1 -1
- package/__mocks__/utils/index.js +1 -1
- package/__mocks__/utils/renderWithProvider.js +1 -1
- package/apiCalls/accounts/getAccountFromApi.js +1 -1
- package/apiCalls/accounts/index.js +1 -1
- package/apiCalls/configuration/getApiAddressForChainId.js +1 -1
- package/apiCalls/configuration/getEnvironmentForChainId.js +1 -1
- package/apiCalls/configuration/getNetworkConfig.js +1 -1
- package/apiCalls/configuration/getServerConfigurationForEnvironment.js +1 -1
- package/apiCalls/configuration/index.js +1 -1
- package/apiCalls/getScamAddressData.js +1 -1
- package/apiCalls/index.js +1 -1
- package/apiCalls/transactions/getTransactionsByHashes.js +1 -1
- package/apiCalls/transactions/index.js +1 -1
- package/apiCalls/transactions/sendSignedTransactions.js +1 -1
- package/apiCalls/utils/getCleanApiAddress.js +1 -1
- package/apiCalls/utils/index.js +1 -1
- package/components/LogoutListener/LogoutListener.js +1 -1
- package/components/LogoutListener/helpers/index.js +1 -1
- package/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
- package/components/LogoutListener/index.js +1 -1
- package/components/ProviderInitializer.js +1 -1
- package/components/TransactionSender/TransactionSender.js +1 -1
- package/components/TransactionSender/index.js +1 -1
- package/components/TransactionStatusToast/FailedTransactionStatusToast.js +1 -1
- package/components/TransactionsTracker/TransactionTracker.js +1 -1
- package/components/TransactionsTracker/index.js +1 -1
- package/components/TransactionsTracker/useTransactionsTracker.js +1 -1
- package/constants/index.js +1 -1
- package/constants/network.js +1 -1
- package/hooks/account/index.js +1 -1
- package/hooks/account/useGetAccount.js +1 -1
- package/hooks/account/useGetAccountInfo.js +1 -1
- package/hooks/account/useGetAccountProvider.js +1 -1
- package/hooks/account/useGetIsLoggedIn.js +1 -1
- package/hooks/account/useGetLoginInfo.js +1 -1
- package/hooks/account/useGetWebsocketEvent.js +1 -1
- package/hooks/index.js +1 -1
- package/hooks/login/index.js +1 -1
- package/hooks/login/useExtensionLogin.js +1 -1
- package/hooks/login/useLedgerLogin.js +1 -1
- package/hooks/login/useLoginService.d.ts +1 -1
- package/hooks/login/useLoginService.js +1 -1
- package/hooks/login/useOperaLogin.js +1 -1
- package/hooks/login/useWalletConnectLogin.js +1 -1
- package/hooks/login/useWalletConnectV2Login.js +1 -1
- package/hooks/login/useWebViewLogin.js +1 -1
- package/hooks/login/useWebWalletLogin.js +1 -1
- package/hooks/signMessage/index.d.ts +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/signMessage/verifyMessage.d.ts +6 -0
- package/hooks/signMessage/verifyMessage.js +2 -0
- package/hooks/transactions/helpers/getShouldMoveTransactionsToSignedState.js +1 -1
- package/hooks/transactions/helpers/index.js +1 -1
- package/hooks/transactions/helpers/useClearTransactionsToSignWithWarning.js +1 -1
- package/hooks/transactions/helpers/useSetTransactionNonces.js +1 -1
- package/hooks/transactions/index.js +1 -1
- package/hooks/transactions/useCancelWalletConnectAction.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/checkBatch.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/index.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/manageFailedTransactions.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/manageTimedOutTransactions.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/useCheckTransactionStatus.js +1 -1
- package/hooks/transactions/useGetActiveTransactionsStatus.js +1 -1
- package/hooks/transactions/useGetFailedTransactions.js +1 -1
- package/hooks/transactions/useGetPendingTransactions.js +1 -1
- package/hooks/transactions/useGetSignTransactionsError.js +1 -1
- package/hooks/transactions/useGetSignedTransactions.js +1 -1
- package/hooks/transactions/useGetSuccessfulTransactions.js +1 -1
- package/hooks/transactions/useGetTokenDetails.js +1 -1
- package/hooks/transactions/useGetTransactionDisplayInfo.js +1 -1
- package/hooks/transactions/useParseMultiEsdtTransferData.js +1 -1
- package/hooks/transactions/useParseSignedTransactions.js +1 -1
- package/hooks/transactions/useSignMultipleTransactions.js +1 -1
- package/hooks/transactions/useSignTransactions.js +1 -1
- package/hooks/transactions/useSignTransactionsCommonData.js +1 -1
- package/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
- package/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
- package/hooks/transactions/useTrackTransactionStatus.js +1 -1
- package/hooks/useGetNetworkConfig.js +1 -1
- package/hooks/useGetNotification.js +1 -1
- package/hooks/userInterface/index.js +1 -1
- package/hooks/userInterface/useIsDappModalVisible.js +1 -1
- package/hooks/websocketListener/index.js +1 -1
- package/hooks/websocketListener/useInitializeWebsocketConnection.js +1 -1
- package/hooks/websocketListener/useRegisterWebsocketListener.js +1 -1
- package/models/index.js +1 -1
- package/models/newTransaction.js +1 -1
- package/package.json +2 -2
- package/providers/accountProvider.js +1 -1
- package/providers/index.js +1 -1
- package/providers/utils.js +1 -1
- package/providers/webviewProvider/index.js +1 -1
- package/providers/webviewProvider/requestMethods.js +1 -1
- package/providers/webviewProvider/webviewProvider.js +1 -1
- package/reduxStore/DappProviderContext.js +1 -1
- package/reduxStore/commonActions.js +1 -1
- package/reduxStore/middlewares/loginSessionMiddleware.js +1 -1
- package/reduxStore/persistConfig.js +1 -1
- package/reduxStore/persistedRootReducer.js +1 -1
- package/reduxStore/reducers.js +1 -1
- package/reduxStore/rootReducer.js +1 -1
- package/reduxStore/selectors/accountInfoSelectors.js +1 -1
- package/reduxStore/selectors/dappModalsSelectors.js +1 -1
- package/reduxStore/selectors/helpers.js +1 -1
- package/reduxStore/selectors/index.js +1 -1
- package/reduxStore/selectors/loginInfoSelectors.js +1 -1
- package/reduxStore/selectors/modalsSelectors.js +1 -1
- package/reduxStore/selectors/networkConfigSelectors.js +1 -1
- package/reduxStore/selectors/signedMessageInfoSelectors.js +1 -1
- package/reduxStore/selectors/toastsSelectors.js +1 -1
- package/reduxStore/selectors/transactionsInfoSelectors.js +1 -1
- package/reduxStore/selectors/transactionsSelectors.js +1 -1
- package/reduxStore/slices/accountInfoSlice.js +1 -1
- package/reduxStore/slices/dappModalsSlice.js +1 -1
- package/reduxStore/slices/index.js +1 -1
- package/reduxStore/slices/loginInfoSlice.js +1 -1
- package/reduxStore/slices/modalsSlice.js +1 -1
- package/reduxStore/slices/signedMessageInfoSlice.js +1 -1
- package/reduxStore/slices/toastsSlice.js +1 -1
- package/reduxStore/slices/transactionsInfoSlice.js +1 -1
- package/reduxStore/slices/transactionsSlice.js +1 -1
- package/reduxStore/store.js +1 -1
- package/services/index.js +1 -1
- package/services/nativeAuth/helpers/decodeNativeAuthToken.d.ts +1 -1
- package/services/nativeAuth/helpers/decodeNativeAuthToken.js +1 -1
- package/services/nativeAuth/helpers/index.js +1 -1
- package/services/nativeAuth/helpers/loginWithNativeAuthToken.js +1 -1
- package/services/nativeAuth/index.js +1 -1
- package/services/nativeAuth/methods/getNativeAuthConfig.d.ts +1 -1
- package/services/nativeAuth/methods/getNativeAuthConfig.js +1 -1
- package/services/nativeAuth/methods/getToken.js +1 -1
- package/services/nativeAuth/methods/getTokenExpiration.js +1 -1
- package/services/nativeAuth/methods/index.js +1 -1
- package/services/nativeAuth/nativeAuth.d.ts +1 -1
- package/services/nativeAuth/nativeAuth.js +1 -1
- package/services/transactions/clearTransactions.js +1 -1
- package/services/transactions/index.js +1 -1
- package/services/transactions/isCrossShardTransaction.js +1 -1
- package/services/transactions/sendTransactions.js +1 -1
- package/services/transactions/signTransactions.js +1 -1
- package/services/transactions/transformAndSignTransactions.js +1 -1
- package/services/transactions/utils.js +1 -1
- package/types/index.js +1 -1
- package/types/login.types.d.ts +1 -1
- package/types/login.types.js +1 -1
- package/utils/account/getAccount.js +1 -1
- package/utils/account/getAccountBalance.js +1 -1
- package/utils/account/getAccountProviderType.js +1 -1
- package/utils/account/getAccountShard.js +1 -1
- package/utils/account/getAddress.js +1 -1
- package/utils/account/getIsProviderEqualTo.js +1 -1
- package/utils/account/getLatestNonce.js +1 -1
- package/utils/account/getShardOfAddress.js +1 -1
- package/utils/account/index.js +1 -1
- package/utils/account/loginWithExternalProvider.js +1 -1
- package/utils/account/refreshAccount.js +1 -1
- package/utils/account/setNonce.js +1 -1
- package/utils/account/signMessage.js +1 -1
- package/utils/getIsLoggedIn.js +1 -1
- package/utils/index.js +1 -1
- package/utils/logout.js +1 -1
- package/utils/network/getChainID.js +1 -1
- package/utils/network/getEgldLabel.js +1 -1
- package/utils/network/getNetworkConfig.js +1 -1
- package/utils/network/index.js +1 -1
- package/utils/operations/calculateFeeLimit.js +1 -1
- package/utils/operations/denominate.js +1 -1
- package/utils/operations/formatAmount.js +1 -1
- package/utils/operations/index.js +1 -1
- package/utils/operations/nominate.js +1 -1
- package/utils/operations/parseAmount.js +1 -1
- package/utils/smartContracts.js +1 -1
- package/utils/toasts/customToastsActions.js +1 -1
- package/utils/toasts/index.js +1 -1
- package/utils/transactions/getAllTransactionsLink.js +1 -1
- package/utils/transactions/getAreTransactionsOnSameShard.js +1 -1
- package/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/getTransactionValue.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getEgldValueData.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getTitleText.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromActions.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromDataField.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromOperations.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/index.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/index.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/index.js +1 -1
- package/utils/transactions/getInterpretedTransaction/index.js +1 -1
- package/utils/transactions/getTransactionLink.js +1 -1
- package/utils/transactions/index.js +1 -1
- package/utils/transactions/parseMultiEsdtTransferData.js +1 -1
- package/utils/transactions/parseTransactionAfterSigning.js +1 -1
- package/utils/transactions/transactionInfoHelpers/decodeForDisplay/decodeForDisplay.js +1 -1
- package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/getDisplayValueAndValidationWarnings.js +1 -1
- package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/getSmartDecodedParts.js +1 -1
- package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/decodeForDisplay/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getScResultsInitialDecodeMethod.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getShardText.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionActionNftText.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionActionTokenText.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionLinkWithLabel.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionMessages.js +1 -1
- package/utils/transactions/transactionInfoHelpers/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/helpers/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/helpers/mexUnwrapper.js +1 -1
- package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/transactionActionUnwrapper.js +1 -1
- package/utils/transactions/transactionInfoHelpers/useDataDecode.js +1 -1
- package/utils/transactions/transactionInfoHelpers/useDataDecodeMethod.js +1 -1
- package/utils/validation/index.js +1 -1
- package/utils/validation/maxDecimals.js +1 -1
- package/utils/validation/stringIsFloat.js +1 -1
- package/web/hooks/index.js +1 -1
- package/web/hooks/useIdleTimer.js +1 -1
- package/web/index.js +1 -1
- package/wrappers/AppInitializer.js +1 -1
- package/wrappers/AuthenticatedRoutesWrapper/index.js +1 -1
- package/wrappers/AxiosInterceptorContext/AxiosInterceptorContext.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/AxiosInterceptor.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/AxiosInterceptorContextProvider.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/LoginInfoListener.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/index.js +1 -1
- package/wrappers/AxiosInterceptorContext/index.js +1 -1
- package/wrappers/DappProvider/CustomComponents.js +1 -1
- package/wrappers/DappProvider/index.js +1 -1
- package/wrappers/index.js +1 -1
- package/__chunks__/chunk-23WPUIWM.js +0 -2
- package/__chunks__/chunk-2LFAG5UW.js +0 -2
- package/__chunks__/chunk-4QMATHBG.js +0 -2
- package/__chunks__/chunk-5C5IMDWD.js +0 -2
- package/__chunks__/chunk-5VEFV3IS.js +0 -2
- package/__chunks__/chunk-7A4X3VND.js +0 -2
- package/__chunks__/chunk-AFAUYTFM.js +0 -2
- package/__chunks__/chunk-AZVCA6PP.js +0 -2
- package/__chunks__/chunk-BMM3EAVE.js +0 -2
- package/__chunks__/chunk-BQOOU5JN.js +0 -2
- package/__chunks__/chunk-CHTJEAWJ.js +0 -2
- package/__chunks__/chunk-CUPMM5UN.js +0 -2
- package/__chunks__/chunk-DQ6NMBLV.js +0 -2
- package/__chunks__/chunk-DXWP7WID.js +0 -2
- package/__chunks__/chunk-EGUQKZHO.js +0 -2
- package/__chunks__/chunk-EPODPC7N.js +0 -2
- package/__chunks__/chunk-FDNJRVRV.js +0 -2
- package/__chunks__/chunk-FZKUX6GT.js +0 -2
- package/__chunks__/chunk-GTFL6MTY.js +0 -2
- package/__chunks__/chunk-IH6JAQIK.js +0 -2
- package/__chunks__/chunk-J5MXYBME.js +0 -2
- package/__chunks__/chunk-JRCA2D4O.js +0 -2
- package/__chunks__/chunk-JZMR4U4G.js +0 -2
- package/__chunks__/chunk-K4JDGZX7.js +0 -2
- package/__chunks__/chunk-KK63JPYF.js +0 -2
- package/__chunks__/chunk-KL3ZFTGO.js +0 -2
- package/__chunks__/chunk-KVKIF44C.js +0 -2
- package/__chunks__/chunk-LHMBRPVE.js +0 -2
- package/__chunks__/chunk-MNBMZXH4.js +0 -2
- package/__chunks__/chunk-N53WBDGP.js +0 -2
- package/__chunks__/chunk-NJ2FRDNT.js +0 -2
- package/__chunks__/chunk-NJAB7S6U.js +0 -2
- package/__chunks__/chunk-NLB665WA.js +0 -2
- package/__chunks__/chunk-O3IP5FLJ.js +0 -2
- package/__chunks__/chunk-OQLWGB56.js +0 -2
- package/__chunks__/chunk-PK3B7MMU.js +0 -2
- package/__chunks__/chunk-Q2MHKB63.js +0 -2
- package/__chunks__/chunk-QC4HFPGK.js +0 -2
- package/__chunks__/chunk-QMD3AU7N.js +0 -2
- package/__chunks__/chunk-RNF6NJNX.js +0 -2
- package/__chunks__/chunk-T7QMSC3P.js +0 -2
- package/__chunks__/chunk-TMCGSBFK.js +0 -2
- package/__chunks__/chunk-TMST4RY3.js +0 -2
- package/__chunks__/chunk-U2HS3BH7.js +0 -2
- package/__chunks__/chunk-XUFBPLE5.js +0 -2
- package/__chunks__/chunk-XW4TJUAM.js +0 -2
- package/__chunks__/chunk-YHN6UC5D.js +0 -2
- package/__chunks__/chunk-YMCJEH4Z.js +0 -2
- package/__chunks__/chunk-Z5PKPJRS.js +0 -2
- package/__chunks__/chunk-ZTLF7T3Z.js +0 -2
- package/hooks/signMessage/useVerifyMessage.d.ts +0 -2
- package/hooks/signMessage/useVerifyMessage.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var tr=Object.create;var W=Object.defineProperty,rr=Object.defineProperties,nr=Object.getOwnPropertyDescriptor,or=Object.getOwnPropertyDescriptors,ar=Object.getOwnPropertyNames,De=Object.getOwnPropertySymbols,ir=Object.getPrototypeOf,Ue=Object.prototype.hasOwnProperty,sr=Object.prototype.propertyIsEnumerable;var Be=(t,e,r)=>e in t?W(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,h=(t,e)=>{for(var r in e||(e={}))Ue.call(e,r)&&Be(t,r,e[r]);if(De)for(var r of De(e))sr.call(e,r)&&Be(t,r,e[r]);return t},v=(t,e)=>rr(t,or(e));var cr=(t,e)=>()=>(t&&(e=t(t=0)),e);var X=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ue=(t,e)=>{for(var r in e)W(t,r,{get:e[r],enumerable:!0})},Oe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of ar(e))!Ue.call(t,o)&&o!==r&&W(t,o,{get:()=>e[o],enumerable:!(n=nr(e,o))||n.enumerable});return t};var q=(t,e,r)=>(r=t!=null?tr(ir(t)):{},Oe(e||!t||!t.__esModule?W(r,"default",{value:t,enumerable:!0}):r,t)),lr=t=>Oe(W({},"__esModule",{value:!0}),t);var ze=X(J=>{"use strict";c();J.byteLength=ur;J.toByteArray=gr;J.fromByteArray=yr;var E=[],k=[],pr=typeof Uint8Array!="undefined"?Uint8Array:Array,de="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(U=0,Ge=de.length;U<Ge;++U)E[U]=de[U],k[de.charCodeAt(U)]=U;var U,Ge;k["-".charCodeAt(0)]=62;k["_".charCodeAt(0)]=63;function He(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function ur(t){var e=He(t),r=e[0],n=e[1];return(r+n)*3/4-n}function dr(t,e,r){return(e+r)*3/4-r}function gr(t){var e,r=He(t),n=r[0],o=r[1],a=new pr(dr(t,n,o)),i=0,p=o>0?n-4:n,l;for(l=0;l<p;l+=4)e=k[t.charCodeAt(l)]<<18|k[t.charCodeAt(l+1)]<<12|k[t.charCodeAt(l+2)]<<6|k[t.charCodeAt(l+3)],a[i++]=e>>16&255,a[i++]=e>>8&255,a[i++]=e&255;return o===2&&(e=k[t.charCodeAt(l)]<<2|k[t.charCodeAt(l+1)]>>4,a[i++]=e&255),o===1&&(e=k[t.charCodeAt(l)]<<10|k[t.charCodeAt(l+1)]<<4|k[t.charCodeAt(l+2)]>>2,a[i++]=e>>8&255,a[i++]=e&255),a}function mr(t){return E[t>>18&63]+E[t>>12&63]+E[t>>6&63]+E[t&63]}function fr(t,e,r){for(var n,o=[],a=e;a<r;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(t[a+2]&255),o.push(mr(n));return o.join("")}function yr(t){for(var e,r=t.length,n=r%3,o=[],a=16383,i=0,p=r-n;i<p;i+=a)o.push(fr(t,i,i+a>p?p:i+a));return n===1?(e=t[r-1],o.push(E[e>>2]+E[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],o.push(E[e>>10]+E[e>>4&63]+E[e<<2&63]+"=")),o.join("")}});var Ve=X(ge=>{c();ge.read=function(t,e,r,n,o){var a,i,p=o*8-n-1,l=(1<<p)-1,m=l>>1,y=-7,f=r?o-1:0,w=r?-1:1,b=t[e+f];for(f+=w,a=b&(1<<-y)-1,b>>=-y,y+=p;y>0;a=a*256+t[e+f],f+=w,y-=8);for(i=a&(1<<-y)-1,a>>=-y,y+=n;y>0;i=i*256+t[e+f],f+=w,y-=8);if(a===0)a=1-m;else{if(a===l)return i?NaN:(b?-1:1)*(1/0);i=i+Math.pow(2,n),a=a-m}return(b?-1:1)*i*Math.pow(2,a-n)};ge.write=function(t,e,r,n,o,a){var i,p,l,m=a*8-o-1,y=(1<<m)-1,f=y>>1,w=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:a-1,D=n?1:-1,M=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(p=isNaN(e)?1:0,i=y):(i=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-i))<1&&(i--,l*=2),i+f>=1?e+=w/l:e+=w*Math.pow(2,1-f),e*l>=2&&(i++,l/=2),i+f>=y?(p=0,i=y):i+f>=1?(p=(e*l-1)*Math.pow(2,o),i=i+f):(p=e*Math.pow(2,f-1)*Math.pow(2,o),i=0));o>=8;t[r+b]=p&255,b+=D,p/=256,o-=8);for(i=i<<o|p,m+=o;m>0;t[r+b]=i&255,b+=D,i/=256,m-=8);t[r+b-D]|=M*128}});var rt=X(z=>{"use strict";c();var me=ze(),H=Ve(),We=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;z.Buffer=s;z.SlowBuffer=br;z.INSPECT_MAX_BYTES=50;var Q=2147483647;z.kMaxLength=Q;s.TYPED_ARRAY_SUPPORT=hr();!s.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function hr(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch(r){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function N(t){if(t>Q)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Te(t)}return Ke(t,e,r)}s.poolSize=8192;function Ke(t,e,r){if(typeof t=="string")return xr(t,e);if(ArrayBuffer.isView(t))return Sr(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(L(t,ArrayBuffer)||t&&L(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(L(t,SharedArrayBuffer)||t&&L(t.buffer,SharedArrayBuffer)))return ye(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return s.from(n,e,r);var o=wr(t);if(o)return o;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}s.from=function(t,e,r){return Ke(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function Ye(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function Tr(t,e,r){return Ye(t),t<=0?N(t):e!==void 0?typeof r=="string"?N(t).fill(e,r):N(t).fill(e):N(t)}s.alloc=function(t,e,r){return Tr(t,e,r)};function Te(t){return Ye(t),N(t<0?0:xe(t)|0)}s.allocUnsafe=function(t){return Te(t)};s.allocUnsafeSlow=function(t){return Te(t)};function xr(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=Xe(t,e)|0,n=N(r),o=n.write(t,e);return o!==r&&(n=n.slice(0,o)),n}function fe(t){for(var e=t.length<0?0:xe(t.length)|0,r=N(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function Sr(t){if(L(t,Uint8Array)){var e=new Uint8Array(t);return ye(e.buffer,e.byteOffset,e.byteLength)}return fe(t)}function ye(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,s.prototype),n}function wr(t){if(s.isBuffer(t)){var e=xe(t.length)|0,r=N(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||Se(t.length)?N(0):fe(t);if(t.type==="Buffer"&&Array.isArray(t.data))return fe(t.data)}function xe(t){if(t>=Q)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Q.toString(16)+" bytes");return t|0}function br(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype};s.compare=function(e,r){if(L(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),L(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(e)||!s.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,o=r.length,a=0,i=Math.min(n,o);a<i;++a)if(e[a]!==r[a]){n=e[a],o=r[a];break}return n<o?-1:o<n?1:0};s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};s.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return s.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var o=s.allocUnsafe(r),a=0;for(n=0;n<e.length;++n){var i=e[n];if(L(i,Uint8Array))a+i.length>o.length?s.from(i).copy(o,a):Uint8Array.prototype.set.call(o,i,a);else if(s.isBuffer(i))i.copy(o,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=i.length}return o};function Xe(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||L(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return he(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return tt(t).length;default:if(o)return n?-1:he(t).length;e=(""+e).toLowerCase(),o=!0}}s.byteLength=Xe;function vr(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return Nr(this,e,r);case"utf8":case"utf-8":return Qe(this,e,r);case"ascii":return Cr(this,e,r);case"latin1":case"binary":return Mr(this,e,r);case"base64":return Rr(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Fr(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function O(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}s.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)O(this,r,r+1);return this};s.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)O(this,r,r+3),O(this,r+1,r+2);return this};s.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)O(this,r,r+7),O(this,r+1,r+6),O(this,r+2,r+5),O(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?Qe(this,0,e):vr.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:s.compare(this,e)===0};s.prototype.inspect=function(){var e="",r=z.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};We&&(s.prototype[We]=s.prototype.inspect);s.prototype.compare=function(e,r,n,o,a){if(L(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),o===void 0&&(o=0),a===void 0&&(a=this.length),r<0||n>e.length||o<0||a>this.length)throw new RangeError("out of range index");if(o>=a&&r>=n)return 0;if(o>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,o>>>=0,a>>>=0,this===e)return 0;for(var i=a-o,p=n-r,l=Math.min(i,p),m=this.slice(o,a),y=e.slice(r,n),f=0;f<l;++f)if(m[f]!==y[f]){i=m[f],p=y[f];break}return i<p?-1:p<i?1:0};function Je(t,e,r,n,o){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Se(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0)if(o)r=0;else return-1;if(typeof e=="string"&&(e=s.from(e,n)),s.isBuffer(e))return e.length===0?-1:qe(t,e,r,n,o);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):qe(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function qe(t,e,r,n,o){var a=1,i=t.length,p=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;a=2,i/=2,p/=2,r/=2}function l(b,D){return a===1?b[D]:b.readUInt16BE(D*a)}var m;if(o){var y=-1;for(m=r;m<i;m++)if(l(t,m)===l(e,y===-1?0:m-y)){if(y===-1&&(y=m),m-y+1===p)return y*a}else y!==-1&&(m-=m-y),y=-1}else for(r+p>i&&(r=i-p),m=r;m>=0;m--){for(var f=!0,w=0;w<p;w++)if(l(t,m+w)!==l(e,w)){f=!1;break}if(f)return m}return-1}s.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};s.prototype.indexOf=function(e,r,n){return Je(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return Je(this,e,r,n,!1)};function Ir(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n),n>o&&(n=o)):n=o;var a=e.length;n>a/2&&(n=a/2);for(var i=0;i<n;++i){var p=parseInt(e.substr(i*2,2),16);if(Se(p))return i;t[r+i]=p}return i}function Ar(t,e,r,n){return Z(he(e,t.length-r),t,r,n)}function kr(t,e,r,n){return Z(Br(e),t,r,n)}function Er(t,e,r,n){return Z(tt(e),t,r,n)}function Lr(t,e,r,n){return Z(Ur(e,t.length-r),t,r,n)}s.prototype.write=function(e,r,n,o){if(r===void 0)o="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")o=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,o===void 0&&(o="utf8")):(o=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-r;if((n===void 0||n>a)&&(n=a),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var i=!1;;)switch(o){case"hex":return Ir(this,e,r,n);case"utf8":case"utf-8":return Ar(this,e,r,n);case"ascii":case"latin1":case"binary":return kr(this,e,r,n);case"base64":return Er(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Lr(this,e,r,n);default:if(i)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),i=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Rr(t,e,r){return e===0&&r===t.length?me.fromByteArray(t):me.fromByteArray(t.slice(e,r))}function Qe(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var a=t[o],i=null,p=a>239?4:a>223?3:a>191?2:1;if(o+p<=r){var l,m,y,f;switch(p){case 1:a<128&&(i=a);break;case 2:l=t[o+1],(l&192)===128&&(f=(a&31)<<6|l&63,f>127&&(i=f));break;case 3:l=t[o+1],m=t[o+2],(l&192)===128&&(m&192)===128&&(f=(a&15)<<12|(l&63)<<6|m&63,f>2047&&(f<55296||f>57343)&&(i=f));break;case 4:l=t[o+1],m=t[o+2],y=t[o+3],(l&192)===128&&(m&192)===128&&(y&192)===128&&(f=(a&15)<<18|(l&63)<<12|(m&63)<<6|y&63,f>65535&&f<1114112&&(i=f))}}i===null?(i=65533,p=1):i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|i&1023),n.push(i),o+=p}return _r(n)}var je=4096;function _r(t){var e=t.length;if(e<=je)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=je));return r}function Cr(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]&127);return n}function Mr(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function Nr(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var o="",a=e;a<r;++a)o+=Or[t[a]];return o}function Fr(t,e,r){for(var n=t.slice(e,r),o="",a=0;a<n.length-1;a+=2)o+=String.fromCharCode(n[a]+n[a+1]*256);return o}s.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var o=this.subarray(e,r);return Object.setPrototypeOf(o,s.prototype),o};function x(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var o=this[e],a=1,i=0;++i<r&&(a*=256);)o+=this[e+i]*a;return o};s.prototype.readUintBE=s.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var o=this[e+--r],a=1;r>0&&(a*=256);)o+=this[e+--r]*a;return o};s.prototype.readUint8=s.prototype.readUInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};s.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var o=this[e],a=1,i=0;++i<r&&(a*=256);)o+=this[e+i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};s.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var o=r,a=1,i=this[e+--o];o>0&&(a*=256);)i+=this[e+--o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*r)),i};s.prototype.readInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};s.prototype.readInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};s.prototype.readFloatLE=function(e,r){return e=e>>>0,r||x(e,4,this.length),H.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||x(e,4,this.length),H.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||x(e,8,this.length),H.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||x(e,8,this.length),H.read(this,e,!1,52,8)};function I(t,e,r,n,o,a){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<a)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,r,n,o){if(e=+e,r=r>>>0,n=n>>>0,!o){var a=Math.pow(2,8*n)-1;I(this,e,r,n,a,0)}var i=1,p=0;for(this[r]=e&255;++p<n&&(i*=256);)this[r+p]=e/i&255;return r+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,r,n,o){if(e=+e,r=r>>>0,n=n>>>0,!o){var a=Math.pow(2,8*n)-1;I(this,e,r,n,a,0)}var i=n-1,p=1;for(this[r+i]=e&255;--i>=0&&(p*=256);)this[r+i]=e/p&255;return r+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||I(this,e,r,1,255,0),this[r]=e&255,r+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||I(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||I(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||I(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||I(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};s.prototype.writeIntLE=function(e,r,n,o){if(e=+e,r=r>>>0,!o){var a=Math.pow(2,8*n-1);I(this,e,r,n,a-1,-a)}var i=0,p=1,l=0;for(this[r]=e&255;++i<n&&(p*=256);)e<0&&l===0&&this[r+i-1]!==0&&(l=1),this[r+i]=(e/p>>0)-l&255;return r+n};s.prototype.writeIntBE=function(e,r,n,o){if(e=+e,r=r>>>0,!o){var a=Math.pow(2,8*n-1);I(this,e,r,n,a-1,-a)}var i=n-1,p=1,l=0;for(this[r+i]=e&255;--i>=0&&(p*=256);)e<0&&l===0&&this[r+i+1]!==0&&(l=1),this[r+i]=(e/p>>0)-l&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||I(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};s.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||I(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||I(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||I(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};s.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||I(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function Ze(t,e,r,n,o,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function $e(t,e,r,n,o){return e=+e,r=r>>>0,o||Ze(t,e,r,4,34028234663852886e22,-34028234663852886e22),H.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return $e(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return $e(this,e,r,!1,n)};function et(t,e,r,n,o){return e=+e,r=r>>>0,o||Ze(t,e,r,8,17976931348623157e292,-17976931348623157e292),H.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return et(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return et(this,e,r,!1,n)};s.prototype.copy=function(e,r,n,o){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!o&&o!==0&&(o=this.length),r>=e.length&&(r=e.length),r||(r=0),o>0&&o<n&&(o=n),o===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-r<o-n&&(o=e.length-r+n);var a=o-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,o):Uint8Array.prototype.set.call(e,this.subarray(n,o),r),a};s.prototype.fill=function(e,r,n,o){if(typeof e=="string"){if(typeof r=="string"?(o=r,r=0,n=this.length):typeof n=="string"&&(o=n,n=this.length),o!==void 0&&typeof o!="string")throw new TypeError("encoding must be a string");if(typeof o=="string"&&!s.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(e.length===1){var a=e.charCodeAt(0);(o==="utf8"&&a<128||o==="latin1")&&(e=a)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var i;if(typeof e=="number")for(i=r;i<n;++i)this[i]=e;else{var p=s.isBuffer(e)?e:s.from(e,o),l=p.length;if(l===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-r;++i)this[i+r]=p[i%l]}return this};var Pr=/[^+/0-9A-Za-z-_]/g;function Dr(t){if(t=t.split("=")[0],t=t.trim().replace(Pr,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function he(t,e){e=e||1/0;for(var r,n=t.length,o=null,a=[],i=0;i<n;++i){if(r=t.charCodeAt(i),r>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}else if(i+1===n){(e-=3)>-1&&a.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(e-=3)>-1&&a.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function Br(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function Ur(t,e){for(var r,n,o,a=[],i=0;i<t.length&&!((e-=2)<0);++i)r=t.charCodeAt(i),n=r>>8,o=r%256,a.push(o),a.push(n);return a}function tt(t){return me.toByteArray(Dr(t))}function Z(t,e,r,n){for(var o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function L(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function Se(t){return t!==t}var Or=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=r*16,o=0;o<16;++o)e[n+o]=t[r]+t[o];return e}()});var st=X((Cn,it)=>{c();var T=it.exports={},R,_;function we(){throw new Error("setTimeout has not been defined")}function be(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?R=setTimeout:R=we}catch(t){R=we}try{typeof clearTimeout=="function"?_=clearTimeout:_=be}catch(t){_=be}})();function nt(t){if(R===setTimeout)return setTimeout(t,0);if((R===we||!R)&&setTimeout)return R=setTimeout,setTimeout(t,0);try{return R(t,0)}catch(e){try{return R.call(null,t,0)}catch(r){return R.call(this,t,0)}}}function Gr(t){if(_===clearTimeout)return clearTimeout(t);if((_===be||!_)&&clearTimeout)return _=clearTimeout,clearTimeout(t);try{return _(t)}catch(e){try{return _.call(null,t)}catch(r){return _.call(this,t)}}}var F=[],V=!1,G,$=-1;function Hr(){!V||!G||(V=!1,G.length?F=G.concat(F):$=-1,F.length&&ot())}function ot(){if(!V){var t=nt(Hr);V=!0;for(var e=F.length;e;){for(G=F,F=[];++$<e;)G&&G[$].run();$=-1,e=F.length}G=null,V=!1,Gr(t)}}T.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];F.push(new at(t,e)),F.length===1&&!V&&nt(ot)};function at(t,e){this.fun=t,this.array=e}at.prototype.run=function(){this.fun.apply(null,this.array)};T.title="browser";T.browser=!0;T.env={};T.argv=[];T.version="";T.versions={};function P(){}T.on=P;T.addListener=P;T.once=P;T.off=P;T.removeListener=P;T.removeAllListeners=P;T.emit=P;T.prependListener=P;T.prependOnceListener=P;T.listeners=function(t){return[]};T.binding=function(t){throw new Error("process.binding is not supported")};T.cwd=function(){return"/"};T.chdir=function(t){throw new Error("process.chdir is not supported")};T.umask=function(){return 0}});var u,d,Mn,c=cr(()=>{u=q(rt()),d=q(st()),Mn=function(t){function e(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:e});var r=__magic__;return r}(Object)});var kn={};ue(kn,{default:()=>An,sessionStorageReducers:()=>Pe});module.exports=lr(kn);c();var A=require("redux-persist"),Zt=q(require("redux-persist/lib/storage")),$t=q(require("redux-persist/lib/storage/session"));c();var Qt=require("@reduxjs/toolkit");c();c();var Re=require("@multiversx/sdk-core"),xt=require("@reduxjs/toolkit"),St=require("redux-persist");c();c();c();c();c();c();c();c();c();c();c();c();c();var ve={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:ct,egldLabel:Zn}=ve["devnet"],{chainId:lt,egldLabel:$n}=ve["testnet"],{chainId:pt,egldLabel:eo}=ve["mainnet"];var to={["devnet"]:ct,["testnet"]:lt,["mainnet"]:pt},ro={[ct]:"devnet",[lt]:"testnet",[pt]:"mainnet"};c();c();c();var ut="transaction-status-toast-id";c();var C=require("@multiversx/sdk-web-wallet-provider");var dt="logout",gt="login";var mt="0";c();var Ae={};ue(Ae,{getItem:()=>Vr,localStorageKeys:()=>j,removeItem:()=>Wr,setItem:()=>zr});c();c();c();var ee=()=>Date.now()/1e3;c();c();var j={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},Ie=typeof localStorage!="undefined",zr=({key:t,data:e,expires:r})=>{!Ie||localStorage.setItem(String(t),JSON.stringify({expires:r,data:e}))},Vr=t=>{if(!Ie)return;let e=localStorage.getItem(String(t));if(!e)return null;let r=JSON.parse(e);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:ee()>=r.expires?(localStorage.removeItem(String(t)),null):r.data},Wr=t=>{!Ie||localStorage.removeItem(String(t))};var ke={};ue(ke,{clear:()=>Tt,getItem:()=>yt,removeItem:()=>ht,setItem:()=>ft,storage:()=>qr});c();var ft=({key:t,data:e,expires:r})=>{sessionStorage.setItem(String(t),JSON.stringify({expires:r,data:e}))},yt=t=>{let e=sessionStorage.getItem(String(t));if(!e)return null;let r=JSON.parse(e);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Date.now()>=r.expires?(sessionStorage.removeItem(String(t)),null):r.data},ht=t=>sessionStorage.removeItem(String(t)),Tt=()=>sessionStorage.clear(),qr={setItem:ft,getItem:yt,removeItem:ht,clear:Tt};var te={session:ke,local:Ae};c();var Ee=require("@reduxjs/toolkit");var S=(0,Ee.createAction)(dt),re=(0,Ee.createAction)(gt,t=>({payload:t}));var wt={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:mt},Le={address:"",websocketEvent:null,accounts:{"":wt},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},bt=(0,xt.createSlice)({name:"accountInfoSlice",initialState:Le,reducers:{setAddress:(t,e)=>{let r=e.payload;t.address=r,t.publicKey=new Re.Address(r).hex()},setAccount:(t,e)=>{let r=t.address===e.payload.address;t.accounts={[t.address]:r?e.payload:wt},t.shard=e.payload.shard,t.isAccountLoading=!1,t.accountLoadingError=null},setAccountNonce:(t,e)=>{let{address:r}=t;t.accounts[r].nonce=e.payload},setAccountShard:(t,e)=>{t.shard=e.payload},setLedgerAccount:(t,e)=>{t.ledgerAccount=e.payload},updateLedgerAccount:(t,e)=>{t.ledgerAccount!=null&&(t.ledgerAccount.index=e.payload.index,t.ledgerAccount.address=e.payload.address)},setWalletConnectAccount:(t,e)=>{t.walletConnectAccount=e.payload},setIsAccountLoading:(t,e)=>{t.isAccountLoading=e.payload,t.accountLoadingError=null},setAccountLoadingError:(t,e)=>{t.accountLoadingError=e.payload,t.isAccountLoading=!1},setWebsocketEvent:(t,e)=>{t.websocketEvent={timestamp:Date.now(),message:e.payload}}},extraReducers:t=>{t.addCase(S,()=>(te.local.removeItem(j.loginExpiresAt),Le)),t.addCase(re,(e,r)=>{let{address:n}=r.payload;e.address=n,e.publicKey=new Re.Address(n).hex()}),t.addCase(St.REHYDRATE,(e,r)=>{var m;if(!((m=r.payload)!=null&&m.account))return;let{account:n}=r.payload,{address:o,shard:a,accounts:i,publicKey:p}=n;e.address=o,e.shard=a;let l=i&&o in i;e.accounts=l?i:Le.accounts,e.publicKey=p})}}),{setAccount:No,setAddress:Fo,setAccountNonce:Po,setAccountShard:Do,setLedgerAccount:Bo,updateLedgerAccount:Uo,setWalletConnectAccount:Oo,setIsAccountLoading:Go,setAccountLoadingError:Ho,setWebsocketEvent:zo}=bt.actions,ne=bt.reducer;c();var It=require("@reduxjs/toolkit");var vt={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},At=(0,It.createSlice)({name:"dappModalsSlice",initialState:vt,reducers:{setDappModalVisibility:(t,e)=>{t.visible=e.payload},setDappModalHeaderVisibility:(t,e)=>{t.modal.showHeader=e.payload},setDappModalFooterVisibility:(t,e)=>{t.modal.showFooter=e.payload},setDappModalHeaderText:(t,e)=>{t.modal.headerText=e.payload},setDappModalFooterText:(t,e)=>{t.modal.footerText=e.payload},setDappModalConfig:(t,e)=>{t.modal=h({},e.payload)}},extraReducers:t=>{t.addCase(S,()=>vt)}}),{setDappModalVisibility:jo,setDappModalHeaderVisibility:Ko,setDappModalFooterVisibility:Yo,setDappModalHeaderText:Xo,setDappModalFooterText:Jo,setDappModalConfig:Qo}=At.actions,kt=At.reducer;c();var _t=require("@reduxjs/toolkit");c();function Et(){return new Date().setHours(new Date().getHours()+24)}function Lt(t){te.local.setItem({key:j.loginExpiresAt,data:t,expires:t})}var Rt={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},Ct=(0,_t.createSlice)({name:"loginInfoSlice",initialState:Rt,reducers:{setLoginMethod:(t,e)=>{t.loginMethod=e.payload},setTokenLogin:(t,e)=>{t.tokenLogin=e.payload},setTokenLoginSignature:(t,e)=>{(t==null?void 0:t.tokenLogin)!=null&&(t.tokenLogin.signature=e.payload)},setWalletLogin:(t,e)=>{t.walletLogin=e.payload},setWalletConnectLogin:(t,e)=>{t.walletConnectLogin=e.payload},setLedgerLogin:(t,e)=>{t.ledgerLogin=e.payload},invalidateLoginSession:t=>{t.isLoginSessionInvalid=!0},setLogoutRoute:(t,e)=>{t.logoutRoute=e.payload}},extraReducers:t=>{t.addCase(S,()=>Rt),t.addCase(re,(e,r)=>{e.loginMethod=r.payload.loginMethod,Lt(Et())})}}),{setLoginMethod:ca,setWalletConnectLogin:la,setLedgerLogin:pa,setTokenLogin:ua,setTokenLoginSignature:da,setWalletLogin:ga,invalidateLoginSession:ma,setLogoutRoute:fa}=Ct.actions,oe=Ct.reducer;c();var Nt=require("@reduxjs/toolkit");var Mt={},Ft=(0,Nt.createSlice)({name:"modalsSlice",initialState:Mt,reducers:{setTxSubmittedModal:(t,e)=>{t.txSubmittedModal=e.payload},setNotificationModal:(t,e)=>{t.notificationModal=e.payload},clearTxSubmittedModal:t=>{t.txSubmittedModal=void 0},clearNotificationModal:t=>{t.notificationModal=void 0}},extraReducers:t=>{t.addCase(S,()=>Mt)}}),{setTxSubmittedModal:xa,setNotificationModal:Sa,clearTxSubmittedModal:wa,clearNotificationModal:ba}=Ft.actions,ae=Ft.reducer;c();var Pt=require("@reduxjs/toolkit"),Dt=q(require("lodash.omit"));c();c();c();c();function _e(t){return t[Math.floor(Math.random()*t.length)]}c();var Ce={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},jr={network:Ce,chainID:"-1"},Bt=(0,Pt.createSlice)({name:"appConfig",initialState:jr,reducers:{initializeNetworkConfig:(t,e)=>{let r=_e(e.payload.walletConnectBridgeAddresses),n=_e(e.payload.walletConnectV2RelayAddresses),o=(0,Dt.default)(e.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");t.network=v(h(h({},t.network),o),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:n})},setChainID:(t,e)=>{t.chainID=e.payload}}}),{initializeNetworkConfig:Ua,setChainID:Oa}=Bt.actions,ie=Bt.reducer;c();var Ut=require("@reduxjs/toolkit");var Me={isSigning:!1,signedSessions:{}},Ot=(0,Ut.createSlice)({name:"signedMessageInfoSliceState",initialState:Me,reducers:{setSignSession:(t,e)=>{let{sessionId:r,signedSession:n,errorMessage:o}=e.payload;return v(h({},t),{errorMessage:o!=null?o:t.errorMessage,isSigning:n.status==="pending",signedSessions:v(h({},t.signedSessions),{[r]:n})})},setSignSessionState:(t,e)=>h(h({},t),e.payload),clearSignedMessageInfo:()=>Me},extraReducers:t=>{t.addCase(S,()=>Me)}}),{setSignSession:qa,clearSignedMessageInfo:ja,setSignSessionState:Ka}=Ot.actions,se=Ot.reducer;c();var Ht=require("@reduxjs/toolkit"),zt=require("redux-persist");var Gt={customToasts:[],transactionToasts:[],failTransactionToast:null},Vt=(0,Ht.createSlice)({name:"toastsSlice",initialState:Gt,reducers:{addCustomToast:(t,e)=>{t.customToasts.push(v(h({},e.payload),{type:"custom",toastId:e.payload.toastId||`custom-toast-${t.customToasts.length+1}`}))},removeCustomToast:(t,e)=>{t.customToasts=t.customToasts.filter(r=>r.toastId!==e.payload)},addTransactionToast:(t,e)=>{t.transactionToasts.push({type:"transaction",startTimestamp:ee(),toastId:e.payload||`custom-toast-${t.transactionToasts.length+1}`})},removeTransactionToast:(t,e)=>{t.transactionToasts=t.transactionToasts.filter(r=>r.toastId!==e.payload)},addFailTransactionToast:(t,e)=>{t.failTransactionToast=v(h({},e.payload),{toastId:ut})},removeFailTransactionToast:t=>{t.failTransactionToast=null}},extraReducers:t=>{t.addCase(S,()=>Gt),t.addCase(zt.REHYDRATE,(e,r)=>{var o,a;let n=(a=(o=r.customToasts)==null?void 0:o.filter(i=>!("component"in i)))!=null?a:[];e.customToasts=n})}}),{addCustomToast:ti,removeCustomToast:ri,addTransactionToast:ni,removeTransactionToast:oi,addFailTransactionToast:ai,removeFailTransactionToast:ii}=Vt.actions,ce=Vt.reducer;c();var Wt=require("@reduxjs/toolkit");var Kr="Transaction failed",Yr="Transaction successful",Xr="Processing transaction",Jr="Transaction submitted",Ne={},qt=(0,Wt.createSlice)({name:"transactionsInfo",initialState:Ne,reducers:{setTransactionsDisplayInfo(t,e){let{sessionId:r,transactionsDisplayInfo:n}=e.payload;r!=null&&(t[r]={errorMessage:(n==null?void 0:n.errorMessage)||Kr,successMessage:(n==null?void 0:n.successMessage)||Yr,processingMessage:(n==null?void 0:n.processingMessage)||Xr,submittedMessage:(n==null?void 0:n.submittedMessage)||Jr,transactionDuration:n==null?void 0:n.transactionDuration})},clearTransactionsInfoForSessionId(t,e){e.payload!=null&&delete t[e.payload]},clearTransactionsInfo:()=>Ne},extraReducers:t=>{t.addCase(S,()=>Ne)}}),{clearTransactionsInfo:pi,setTransactionsDisplayInfo:ui,clearTransactionsInfoForSessionId:di}=qt.actions,le=qt.reducer;c();var Yt=require("@reduxjs/toolkit"),Xt=require("redux-persist");c();var yi=["sent"],Zr=["success"],$r=["fail","cancelled","timedOut"],hi=["timedOut"],Ti=["pending"],en=["success"],tn=["fail","invalid"];function jt(t){return t!=null&&(rn(t)||on(t))}function Kt(t){return t!=null&&(nn(t)||an(t))}function rn(t){return t!=null&&Zr.includes(t)}function nn(t){return t!=null&&$r.includes(t)}function on(t){return t!=null&&en.includes(t)}function an(t){return t!=null&&tn.includes(t)}var K={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},sn={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Jt=(0,Yt.createSlice)({name:"transactionsSlice",initialState:K,reducers:{moveTransactionsToSignedState:(t,e)=>{var l,m;let{sessionId:r,transactions:n,errorMessage:o,status:a,redirectRoute:i}=e.payload,p=((l=t.customTransactionInformationForSessionId)==null?void 0:l[r])||sn;t.signedTransactions[r]={transactions:n,status:a,errorMessage:o,redirectRoute:i,customTransactionInformation:p},((m=t==null?void 0:t.transactionsToSign)==null?void 0:m.sessionId)===r&&(t.transactionsToSign=K.transactionsToSign)},clearSignedTransaction:(t,e)=>{t.signedTransactions[e.payload]&&delete t.signedTransactions[e.payload]},clearTransactionToSign:t=>{t!=null&&t.transactionsToSign&&(t.transactionsToSign=null)},updateSignedTransaction:(t,e)=>{t.signedTransactions=h(h({},t.signedTransactions),e.payload)},updateSignedTransactions:(t,e)=>{let{sessionId:r,status:n,errorMessage:o,transactions:a}=e.payload;t.signedTransactions[r]!=null&&(t.signedTransactions[r].status=n,o!=null&&(t.signedTransactions[r].errorMessage=o),a!=null&&(t.signedTransactions[r].transactions=a))},updateSignedTransactionStatus:(t,e)=>{var p,l,m,y,f,w;let{sessionId:r,status:n,errorMessage:o,transactionHash:a}=e.payload,i=(l=(p=t.signedTransactions)==null?void 0:p[r])==null?void 0:l.transactions;if(i!=null){t.signedTransactions[r].transactions=i.map(M=>M.hash===a?v(h({},M),{status:n,errorMessage:o}):M);let b=(y=(m=t.signedTransactions[r])==null?void 0:m.transactions)==null?void 0:y.every(M=>jt(M.status)),D=(w=(f=t.signedTransactions[r])==null?void 0:f.transactions)==null?void 0:w.every(M=>Kt(M.status));b&&(t.signedTransactions[r].status="success"),D&&(t.signedTransactions[r].status="fail")}},setTransactionsToSign:(t,e)=>{t.transactionsToSign=e.payload;let{sessionId:r,customTransactionInformation:n}=e.payload;t.customTransactionInformationForSessionId[r]=n,t.signTransactionsError=null},clearAllTransactionsToSign:t=>{t.transactionsToSign=K.transactionsToSign,t.signTransactionsError=null},clearAllSignedTransactions:t=>{t.signedTransactions=K.signedTransactions},setSignTransactionsError:(t,e)=>{t.signTransactionsError=e.payload},setSignTransactionsCancelMessage:(t,e)=>{t.signTransactionsCancelMessage=e.payload}},extraReducers:t=>{t.addCase(S,()=>K),t.addCase(Xt.REHYDRATE,(e,r)=>{var i;if(e.signTransactionsCancelMessage=null,!((i=r.payload)!=null&&i.transactions))return;let{signedTransactions:n,customTransactionInformationForSessionId:o}=r.payload.transactions,a=Object.entries(n).reduce((p,[l,m])=>{let y=new Date(l),f=new Date;return f.setHours(f.getHours()+5),f-y>0||(p[l]=m),p},{});o!=null&&(e.customTransactionInformationForSessionId=o),n!=null&&(e.signedTransactions=a)})}}),{updateSignedTransactionStatus:Ai,updateSignedTransactions:ki,setTransactionsToSign:Ei,clearAllTransactionsToSign:Li,clearAllSignedTransactions:Ri,clearSignedTransaction:_i,clearTransactionToSign:Ci,setSignTransactionsError:Mi,setSignTransactionsCancelMessage:Ni,moveTransactionsToSignedState:Fi}=Jt.actions,pe=Jt.reducer;var ln={["account"]:ne,["dappModal"]:kt,["loginInfo"]:oe,["modals"]:ae,["networkConfig"]:ie,["signedMessageInfo"]:se,["toasts"]:ce,["transactionsInfo"]:le,["transactions"]:pe},pn=(t={})=>(0,Qt.combineReducers)(h(h({},ln),t)),Fe=pn;c();var un={persistReducersStorageType:"localStorage"},Y={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},dn=B(Y["account"]),gn=B(Y["loginInfo"]),mn=B(Y["modals"]),fn=B(Y["networkConfig"]),yn={2:t=>v(h({},t),{networkConfig:Ce})};function B(t,e=[]){return{key:t,version:1,storage:$t.default,blacklist:e}}var hn=B("sdk-dapp-transactionsInfo"),Tn=B("sdk-dapp-transactions",["transactionsToSign"]),xn=B("sdk-dapp-toasts"),Sn=B("sdk-dapp-signedMessageInfo"),er={key:"sdk-dapp-store",version:2,storage:Zt.default,whitelist:Object.keys(Y),migrate:(0,A.createMigrate)(yn,{debug:!1})},wn=v(h({},er),{whitelist:[]}),Pe={["toasts"]:(0,A.persistReducer)(xn,ce),["transactions"]:(0,A.persistReducer)(Tn,pe),["transactionsInfo"]:(0,A.persistReducer)(hn,le),["signedMessageInfo"]:(0,A.persistReducer)(Sn,se)},bn=v(h({},Pe),{["account"]:(0,A.persistReducer)(dn,ne),["loginInfo"]:(0,A.persistReducer)(gn,oe),["modals"]:(0,A.persistReducer)(mn,ae),["networkConfig"]:(0,A.persistReducer)(fn,ie)}),vn=un.persistReducersStorageType==="localStorage",In=vn?(0,A.persistReducer)(er,Fe(Pe)):(0,A.persistReducer)(wn,Fe(bn)),An=In;0&&(module.exports={sessionStorageReducers});
|
|
1
|
+
"use strict";var tr=Object.create;var W=Object.defineProperty,rr=Object.defineProperties,nr=Object.getOwnPropertyDescriptor,or=Object.getOwnPropertyDescriptors,ir=Object.getOwnPropertyNames,De=Object.getOwnPropertySymbols,ar=Object.getPrototypeOf,Ue=Object.prototype.hasOwnProperty,sr=Object.prototype.propertyIsEnumerable;var Be=(t,e,r)=>e in t?W(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,h=(t,e)=>{for(var r in e||(e={}))Ue.call(e,r)&&Be(t,r,e[r]);if(De)for(var r of De(e))sr.call(e,r)&&Be(t,r,e[r]);return t},v=(t,e)=>rr(t,or(e));var cr=(t,e)=>()=>(t&&(e=t(t=0)),e);var X=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ue=(t,e)=>{for(var r in e)W(t,r,{get:e[r],enumerable:!0})},Oe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of ir(e))!Ue.call(t,o)&&o!==r&&W(t,o,{get:()=>e[o],enumerable:!(n=nr(e,o))||n.enumerable});return t};var q=(t,e,r)=>(r=t!=null?tr(ar(t)):{},Oe(e||!t||!t.__esModule?W(r,"default",{value:t,enumerable:!0}):r,t)),lr=t=>Oe(W({},"__esModule",{value:!0}),t);var ze=X(J=>{"use strict";c();J.byteLength=ur;J.toByteArray=gr;J.fromByteArray=yr;var E=[],k=[],pr=typeof Uint8Array!="undefined"?Uint8Array:Array,de="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(U=0,Ge=de.length;U<Ge;++U)E[U]=de[U],k[de.charCodeAt(U)]=U;var U,Ge;k["-".charCodeAt(0)]=62;k["_".charCodeAt(0)]=63;function He(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function ur(t){var e=He(t),r=e[0],n=e[1];return(r+n)*3/4-n}function dr(t,e,r){return(e+r)*3/4-r}function gr(t){var e,r=He(t),n=r[0],o=r[1],i=new pr(dr(t,n,o)),a=0,p=o>0?n-4:n,l;for(l=0;l<p;l+=4)e=k[t.charCodeAt(l)]<<18|k[t.charCodeAt(l+1)]<<12|k[t.charCodeAt(l+2)]<<6|k[t.charCodeAt(l+3)],i[a++]=e>>16&255,i[a++]=e>>8&255,i[a++]=e&255;return o===2&&(e=k[t.charCodeAt(l)]<<2|k[t.charCodeAt(l+1)]>>4,i[a++]=e&255),o===1&&(e=k[t.charCodeAt(l)]<<10|k[t.charCodeAt(l+1)]<<4|k[t.charCodeAt(l+2)]>>2,i[a++]=e>>8&255,i[a++]=e&255),i}function mr(t){return E[t>>18&63]+E[t>>12&63]+E[t>>6&63]+E[t&63]}function fr(t,e,r){for(var n,o=[],i=e;i<r;i+=3)n=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(t[i+2]&255),o.push(mr(n));return o.join("")}function yr(t){for(var e,r=t.length,n=r%3,o=[],i=16383,a=0,p=r-n;a<p;a+=i)o.push(fr(t,a,a+i>p?p:a+i));return n===1?(e=t[r-1],o.push(E[e>>2]+E[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],o.push(E[e>>10]+E[e>>4&63]+E[e<<2&63]+"=")),o.join("")}});var Ve=X(ge=>{c();ge.read=function(t,e,r,n,o){var i,a,p=o*8-n-1,l=(1<<p)-1,m=l>>1,y=-7,f=r?o-1:0,w=r?-1:1,b=t[e+f];for(f+=w,i=b&(1<<-y)-1,b>>=-y,y+=p;y>0;i=i*256+t[e+f],f+=w,y-=8);for(a=i&(1<<-y)-1,i>>=-y,y+=n;y>0;a=a*256+t[e+f],f+=w,y-=8);if(i===0)i=1-m;else{if(i===l)return a?NaN:(b?-1:1)*(1/0);a=a+Math.pow(2,n),i=i-m}return(b?-1:1)*a*Math.pow(2,i-n)};ge.write=function(t,e,r,n,o,i){var a,p,l,m=i*8-o-1,y=(1<<m)-1,f=y>>1,w=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:i-1,D=n?1:-1,M=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(p=isNaN(e)?1:0,a=y):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+f>=1?e+=w/l:e+=w*Math.pow(2,1-f),e*l>=2&&(a++,l/=2),a+f>=y?(p=0,a=y):a+f>=1?(p=(e*l-1)*Math.pow(2,o),a=a+f):(p=e*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;t[r+b]=p&255,b+=D,p/=256,o-=8);for(a=a<<o|p,m+=o;m>0;t[r+b]=a&255,b+=D,a/=256,m-=8);t[r+b-D]|=M*128}});var rt=X(z=>{"use strict";c();var me=ze(),H=Ve(),We=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;z.Buffer=s;z.SlowBuffer=br;z.INSPECT_MAX_BYTES=50;var Q=2147483647;z.kMaxLength=Q;s.TYPED_ARRAY_SUPPORT=hr();!s.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function hr(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch(r){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function N(t){if(t>Q)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Te(t)}return Ke(t,e,r)}s.poolSize=8192;function Ke(t,e,r){if(typeof t=="string")return xr(t,e);if(ArrayBuffer.isView(t))return Sr(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(L(t,ArrayBuffer)||t&&L(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(L(t,SharedArrayBuffer)||t&&L(t.buffer,SharedArrayBuffer)))return ye(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return s.from(n,e,r);var o=wr(t);if(o)return o;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}s.from=function(t,e,r){return Ke(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function Ye(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function Tr(t,e,r){return Ye(t),t<=0?N(t):e!==void 0?typeof r=="string"?N(t).fill(e,r):N(t).fill(e):N(t)}s.alloc=function(t,e,r){return Tr(t,e,r)};function Te(t){return Ye(t),N(t<0?0:xe(t)|0)}s.allocUnsafe=function(t){return Te(t)};s.allocUnsafeSlow=function(t){return Te(t)};function xr(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=Xe(t,e)|0,n=N(r),o=n.write(t,e);return o!==r&&(n=n.slice(0,o)),n}function fe(t){for(var e=t.length<0?0:xe(t.length)|0,r=N(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function Sr(t){if(L(t,Uint8Array)){var e=new Uint8Array(t);return ye(e.buffer,e.byteOffset,e.byteLength)}return fe(t)}function ye(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,s.prototype),n}function wr(t){if(s.isBuffer(t)){var e=xe(t.length)|0,r=N(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||Se(t.length)?N(0):fe(t);if(t.type==="Buffer"&&Array.isArray(t.data))return fe(t.data)}function xe(t){if(t>=Q)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Q.toString(16)+" bytes");return t|0}function br(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype};s.compare=function(e,r){if(L(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),L(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(e)||!s.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,o=r.length,i=0,a=Math.min(n,o);i<a;++i)if(e[i]!==r[i]){n=e[i],o=r[i];break}return n<o?-1:o<n?1:0};s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};s.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return s.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var o=s.allocUnsafe(r),i=0;for(n=0;n<e.length;++n){var a=e[n];if(L(a,Uint8Array))i+a.length>o.length?s.from(a).copy(o,i):Uint8Array.prototype.set.call(o,a,i);else if(s.isBuffer(a))a.copy(o,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=a.length}return o};function Xe(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||L(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return he(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return tt(t).length;default:if(o)return n?-1:he(t).length;e=(""+e).toLowerCase(),o=!0}}s.byteLength=Xe;function vr(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return Nr(this,e,r);case"utf8":case"utf-8":return Qe(this,e,r);case"ascii":return Cr(this,e,r);case"latin1":case"binary":return Mr(this,e,r);case"base64":return Rr(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Fr(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function O(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}s.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)O(this,r,r+1);return this};s.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)O(this,r,r+3),O(this,r+1,r+2);return this};s.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)O(this,r,r+7),O(this,r+1,r+6),O(this,r+2,r+5),O(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?Qe(this,0,e):vr.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:s.compare(this,e)===0};s.prototype.inspect=function(){var e="",r=z.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};We&&(s.prototype[We]=s.prototype.inspect);s.prototype.compare=function(e,r,n,o,i){if(L(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),o===void 0&&(o=0),i===void 0&&(i=this.length),r<0||n>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&r>=n)return 0;if(o>=i)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,o>>>=0,i>>>=0,this===e)return 0;for(var a=i-o,p=n-r,l=Math.min(a,p),m=this.slice(o,i),y=e.slice(r,n),f=0;f<l;++f)if(m[f]!==y[f]){a=m[f],p=y[f];break}return a<p?-1:p<a?1:0};function Je(t,e,r,n,o){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Se(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0)if(o)r=0;else return-1;if(typeof e=="string"&&(e=s.from(e,n)),s.isBuffer(e))return e.length===0?-1:qe(t,e,r,n,o);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):qe(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function qe(t,e,r,n,o){var i=1,a=t.length,p=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;i=2,a/=2,p/=2,r/=2}function l(b,D){return i===1?b[D]:b.readUInt16BE(D*i)}var m;if(o){var y=-1;for(m=r;m<a;m++)if(l(t,m)===l(e,y===-1?0:m-y)){if(y===-1&&(y=m),m-y+1===p)return y*i}else y!==-1&&(m-=m-y),y=-1}else for(r+p>a&&(r=a-p),m=r;m>=0;m--){for(var f=!0,w=0;w<p;w++)if(l(t,m+w)!==l(e,w)){f=!1;break}if(f)return m}return-1}s.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};s.prototype.indexOf=function(e,r,n){return Je(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return Je(this,e,r,n,!1)};function Ir(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n),n>o&&(n=o)):n=o;var i=e.length;n>i/2&&(n=i/2);for(var a=0;a<n;++a){var p=parseInt(e.substr(a*2,2),16);if(Se(p))return a;t[r+a]=p}return a}function Ar(t,e,r,n){return Z(he(e,t.length-r),t,r,n)}function kr(t,e,r,n){return Z(Br(e),t,r,n)}function Er(t,e,r,n){return Z(tt(e),t,r,n)}function Lr(t,e,r,n){return Z(Ur(e,t.length-r),t,r,n)}s.prototype.write=function(e,r,n,o){if(r===void 0)o="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")o=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,o===void 0&&(o="utf8")):(o=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i=this.length-r;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var a=!1;;)switch(o){case"hex":return Ir(this,e,r,n);case"utf8":case"utf-8":return Ar(this,e,r,n);case"ascii":case"latin1":case"binary":return kr(this,e,r,n);case"base64":return Er(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Lr(this,e,r,n);default:if(a)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),a=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Rr(t,e,r){return e===0&&r===t.length?me.fromByteArray(t):me.fromByteArray(t.slice(e,r))}function Qe(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i=t[o],a=null,p=i>239?4:i>223?3:i>191?2:1;if(o+p<=r){var l,m,y,f;switch(p){case 1:i<128&&(a=i);break;case 2:l=t[o+1],(l&192)===128&&(f=(i&31)<<6|l&63,f>127&&(a=f));break;case 3:l=t[o+1],m=t[o+2],(l&192)===128&&(m&192)===128&&(f=(i&15)<<12|(l&63)<<6|m&63,f>2047&&(f<55296||f>57343)&&(a=f));break;case 4:l=t[o+1],m=t[o+2],y=t[o+3],(l&192)===128&&(m&192)===128&&(y&192)===128&&(f=(i&15)<<18|(l&63)<<12|(m&63)<<6|y&63,f>65535&&f<1114112&&(a=f))}}a===null?(a=65533,p=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),o+=p}return _r(n)}var je=4096;function _r(t){var e=t.length;if(e<=je)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=je));return r}function Cr(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]&127);return n}function Mr(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function Nr(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=e;i<r;++i)o+=Or[t[i]];return o}function Fr(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length-1;i+=2)o+=String.fromCharCode(n[i]+n[i+1]*256);return o}s.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var o=this.subarray(e,r);return Object.setPrototypeOf(o,s.prototype),o};function x(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var o=this[e],i=1,a=0;++a<r&&(i*=256);)o+=this[e+a]*i;return o};s.prototype.readUintBE=s.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var o=this[e+--r],i=1;r>0&&(i*=256);)o+=this[e+--r]*i;return o};s.prototype.readUint8=s.prototype.readUInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};s.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var o=this[e],i=1,a=0;++a<r&&(i*=256);)o+=this[e+a]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*r)),o};s.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var o=r,i=1,a=this[e+--o];o>0&&(i*=256);)a+=this[e+--o]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*r)),a};s.prototype.readInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};s.prototype.readInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};s.prototype.readFloatLE=function(e,r){return e=e>>>0,r||x(e,4,this.length),H.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||x(e,4,this.length),H.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||x(e,8,this.length),H.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||x(e,8,this.length),H.read(this,e,!1,52,8)};function I(t,e,r,n,o,i){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,r,n,o){if(e=+e,r=r>>>0,n=n>>>0,!o){var i=Math.pow(2,8*n)-1;I(this,e,r,n,i,0)}var a=1,p=0;for(this[r]=e&255;++p<n&&(a*=256);)this[r+p]=e/a&255;return r+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,r,n,o){if(e=+e,r=r>>>0,n=n>>>0,!o){var i=Math.pow(2,8*n)-1;I(this,e,r,n,i,0)}var a=n-1,p=1;for(this[r+a]=e&255;--a>=0&&(p*=256);)this[r+a]=e/p&255;return r+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||I(this,e,r,1,255,0),this[r]=e&255,r+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||I(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||I(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||I(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||I(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};s.prototype.writeIntLE=function(e,r,n,o){if(e=+e,r=r>>>0,!o){var i=Math.pow(2,8*n-1);I(this,e,r,n,i-1,-i)}var a=0,p=1,l=0;for(this[r]=e&255;++a<n&&(p*=256);)e<0&&l===0&&this[r+a-1]!==0&&(l=1),this[r+a]=(e/p>>0)-l&255;return r+n};s.prototype.writeIntBE=function(e,r,n,o){if(e=+e,r=r>>>0,!o){var i=Math.pow(2,8*n-1);I(this,e,r,n,i-1,-i)}var a=n-1,p=1,l=0;for(this[r+a]=e&255;--a>=0&&(p*=256);)e<0&&l===0&&this[r+a+1]!==0&&(l=1),this[r+a]=(e/p>>0)-l&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||I(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};s.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||I(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||I(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||I(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};s.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||I(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function Ze(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function $e(t,e,r,n,o){return e=+e,r=r>>>0,o||Ze(t,e,r,4,34028234663852886e22,-34028234663852886e22),H.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return $e(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return $e(this,e,r,!1,n)};function et(t,e,r,n,o){return e=+e,r=r>>>0,o||Ze(t,e,r,8,17976931348623157e292,-17976931348623157e292),H.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return et(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return et(this,e,r,!1,n)};s.prototype.copy=function(e,r,n,o){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!o&&o!==0&&(o=this.length),r>=e.length&&(r=e.length),r||(r=0),o>0&&o<n&&(o=n),o===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-r<o-n&&(o=e.length-r+n);var i=o-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,o):Uint8Array.prototype.set.call(e,this.subarray(n,o),r),i};s.prototype.fill=function(e,r,n,o){if(typeof e=="string"){if(typeof r=="string"?(o=r,r=0,n=this.length):typeof n=="string"&&(o=n,n=this.length),o!==void 0&&typeof o!="string")throw new TypeError("encoding must be a string");if(typeof o=="string"&&!s.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(e.length===1){var i=e.charCodeAt(0);(o==="utf8"&&i<128||o==="latin1")&&(e=i)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var a;if(typeof e=="number")for(a=r;a<n;++a)this[a]=e;else{var p=s.isBuffer(e)?e:s.from(e,o),l=p.length;if(l===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-r;++a)this[a+r]=p[a%l]}return this};var Pr=/[^+/0-9A-Za-z-_]/g;function Dr(t){if(t=t.split("=")[0],t=t.trim().replace(Pr,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function he(t,e){e=e||1/0;for(var r,n=t.length,o=null,i=[],a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}else if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return i}function Br(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function Ur(t,e){for(var r,n,o,i=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,o=r%256,i.push(o),i.push(n);return i}function tt(t){return me.toByteArray(Dr(t))}function Z(t,e,r,n){for(var o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function L(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function Se(t){return t!==t}var Or=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=r*16,o=0;o<16;++o)e[n+o]=t[r]+t[o];return e}()});var st=X((Cn,at)=>{c();var T=at.exports={},R,_;function we(){throw new Error("setTimeout has not been defined")}function be(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?R=setTimeout:R=we}catch(t){R=we}try{typeof clearTimeout=="function"?_=clearTimeout:_=be}catch(t){_=be}})();function nt(t){if(R===setTimeout)return setTimeout(t,0);if((R===we||!R)&&setTimeout)return R=setTimeout,setTimeout(t,0);try{return R(t,0)}catch(e){try{return R.call(null,t,0)}catch(r){return R.call(this,t,0)}}}function Gr(t){if(_===clearTimeout)return clearTimeout(t);if((_===be||!_)&&clearTimeout)return _=clearTimeout,clearTimeout(t);try{return _(t)}catch(e){try{return _.call(null,t)}catch(r){return _.call(this,t)}}}var F=[],V=!1,G,$=-1;function Hr(){!V||!G||(V=!1,G.length?F=G.concat(F):$=-1,F.length&&ot())}function ot(){if(!V){var t=nt(Hr);V=!0;for(var e=F.length;e;){for(G=F,F=[];++$<e;)G&&G[$].run();$=-1,e=F.length}G=null,V=!1,Gr(t)}}T.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];F.push(new it(t,e)),F.length===1&&!V&&nt(ot)};function it(t,e){this.fun=t,this.array=e}it.prototype.run=function(){this.fun.apply(null,this.array)};T.title="browser";T.browser=!0;T.env={};T.argv=[];T.version="";T.versions={};function P(){}T.on=P;T.addListener=P;T.once=P;T.off=P;T.removeListener=P;T.removeAllListeners=P;T.emit=P;T.prependListener=P;T.prependOnceListener=P;T.listeners=function(t){return[]};T.binding=function(t){throw new Error("process.binding is not supported")};T.cwd=function(){return"/"};T.chdir=function(t){throw new Error("process.chdir is not supported")};T.umask=function(){return 0}});var u,d,Mn,c=cr(()=>{u=q(rt()),d=q(st()),Mn=function(t){function e(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:e});var r=__magic__;return r}(Object)});var kn={};ue(kn,{default:()=>An,sessionStorageReducers:()=>Pe});module.exports=lr(kn);c();var A=require("redux-persist"),Zt=q(require("redux-persist/lib/storage")),$t=q(require("redux-persist/lib/storage/session"));c();var Qt=require("@reduxjs/toolkit");c();c();var Re=require("@multiversx/sdk-core"),xt=require("@reduxjs/toolkit"),St=require("redux-persist");c();c();c();c();c();c();c();c();c();c();c();c();c();var ve={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:ct,egldLabel:Zn}=ve["devnet"],{chainId:lt,egldLabel:$n}=ve["testnet"],{chainId:pt,egldLabel:eo}=ve["mainnet"];var to={["devnet"]:ct,["testnet"]:lt,["mainnet"]:pt},ro={[ct]:"devnet",[lt]:"testnet",[pt]:"mainnet"};c();c();c();var ut="transaction-status-toast-id";c();var C=require("@multiversx/sdk-web-wallet-provider");var dt="logout",gt="login";var mt="0";c();var Ae={};ue(Ae,{getItem:()=>Vr,localStorageKeys:()=>j,removeItem:()=>Wr,setItem:()=>zr});c();c();c();var ee=()=>Date.now()/1e3;c();c();var j={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},Ie=typeof localStorage!="undefined",zr=({key:t,data:e,expires:r})=>{!Ie||localStorage.setItem(String(t),JSON.stringify({expires:r,data:e}))},Vr=t=>{if(!Ie)return;let e=localStorage.getItem(String(t));if(!e)return null;let r=JSON.parse(e);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:ee()>=r.expires?(localStorage.removeItem(String(t)),null):r.data},Wr=t=>{!Ie||localStorage.removeItem(String(t))};var ke={};ue(ke,{clear:()=>Tt,getItem:()=>yt,removeItem:()=>ht,setItem:()=>ft,storage:()=>qr});c();var ft=({key:t,data:e,expires:r})=>{sessionStorage.setItem(String(t),JSON.stringify({expires:r,data:e}))},yt=t=>{let e=sessionStorage.getItem(String(t));if(!e)return null;let r=JSON.parse(e);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Date.now()>=r.expires?(sessionStorage.removeItem(String(t)),null):r.data},ht=t=>sessionStorage.removeItem(String(t)),Tt=()=>sessionStorage.clear(),qr={setItem:ft,getItem:yt,removeItem:ht,clear:Tt};var te={session:ke,local:Ae};c();var Ee=require("@reduxjs/toolkit");var S=(0,Ee.createAction)(dt),re=(0,Ee.createAction)(gt,t=>({payload:t}));var wt={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:mt},Le={address:"",websocketEvent:null,accounts:{"":wt},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},bt=(0,xt.createSlice)({name:"accountInfoSlice",initialState:Le,reducers:{setAddress:(t,e)=>{let r=e.payload;t.address=r,t.publicKey=new Re.Address(r).hex()},setAccount:(t,e)=>{let r=t.address===e.payload.address;t.accounts={[t.address]:r?e.payload:wt},t.shard=e.payload.shard,t.isAccountLoading=!1,t.accountLoadingError=null},setAccountNonce:(t,e)=>{let{address:r}=t;t.accounts[r].nonce=e.payload},setAccountShard:(t,e)=>{t.shard=e.payload},setLedgerAccount:(t,e)=>{t.ledgerAccount=e.payload},updateLedgerAccount:(t,e)=>{t.ledgerAccount!=null&&(t.ledgerAccount.index=e.payload.index,t.ledgerAccount.address=e.payload.address)},setWalletConnectAccount:(t,e)=>{t.walletConnectAccount=e.payload},setIsAccountLoading:(t,e)=>{t.isAccountLoading=e.payload,t.accountLoadingError=null},setAccountLoadingError:(t,e)=>{t.accountLoadingError=e.payload,t.isAccountLoading=!1},setWebsocketEvent:(t,e)=>{t.websocketEvent={timestamp:Date.now(),message:e.payload}}},extraReducers:t=>{t.addCase(S,()=>(te.local.removeItem(j.loginExpiresAt),Le)),t.addCase(re,(e,r)=>{let{address:n}=r.payload;e.address=n,e.publicKey=new Re.Address(n).hex()}),t.addCase(St.REHYDRATE,(e,r)=>{var m;if(!((m=r.payload)!=null&&m.account))return;let{account:n}=r.payload,{address:o,shard:i,accounts:a,publicKey:p}=n;e.address=o,e.shard=i;let l=a&&o in a;e.accounts=l?a:Le.accounts,e.publicKey=p})}}),{setAccount:No,setAddress:Fo,setAccountNonce:Po,setAccountShard:Do,setLedgerAccount:Bo,updateLedgerAccount:Uo,setWalletConnectAccount:Oo,setIsAccountLoading:Go,setAccountLoadingError:Ho,setWebsocketEvent:zo}=bt.actions,ne=bt.reducer;c();var It=require("@reduxjs/toolkit");var vt={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},At=(0,It.createSlice)({name:"dappModalsSlice",initialState:vt,reducers:{setDappModalVisibility:(t,e)=>{t.visible=e.payload},setDappModalHeaderVisibility:(t,e)=>{t.modal.showHeader=e.payload},setDappModalFooterVisibility:(t,e)=>{t.modal.showFooter=e.payload},setDappModalHeaderText:(t,e)=>{t.modal.headerText=e.payload},setDappModalFooterText:(t,e)=>{t.modal.footerText=e.payload},setDappModalConfig:(t,e)=>{t.modal=h({},e.payload)}},extraReducers:t=>{t.addCase(S,()=>vt)}}),{setDappModalVisibility:jo,setDappModalHeaderVisibility:Ko,setDappModalFooterVisibility:Yo,setDappModalHeaderText:Xo,setDappModalFooterText:Jo,setDappModalConfig:Qo}=At.actions,kt=At.reducer;c();var _t=require("@reduxjs/toolkit");c();function Et(){return new Date().setHours(new Date().getHours()+24)}function Lt(t){te.local.setItem({key:j.loginExpiresAt,data:t,expires:t})}var Rt={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},Ct=(0,_t.createSlice)({name:"loginInfoSlice",initialState:Rt,reducers:{setLoginMethod:(t,e)=>{t.loginMethod=e.payload},setTokenLogin:(t,e)=>{t.tokenLogin=e.payload},setTokenLoginSignature:(t,e)=>{(t==null?void 0:t.tokenLogin)!=null&&(t.tokenLogin.signature=e.payload)},setWalletLogin:(t,e)=>{t.walletLogin=e.payload},setWalletConnectLogin:(t,e)=>{t.walletConnectLogin=e.payload},setLedgerLogin:(t,e)=>{t.ledgerLogin=e.payload},invalidateLoginSession:t=>{t.isLoginSessionInvalid=!0},setLogoutRoute:(t,e)=>{t.logoutRoute=e.payload}},extraReducers:t=>{t.addCase(S,()=>Rt),t.addCase(re,(e,r)=>{e.loginMethod=r.payload.loginMethod,Lt(Et())})}}),{setLoginMethod:ci,setWalletConnectLogin:li,setLedgerLogin:pi,setTokenLogin:ui,setTokenLoginSignature:di,setWalletLogin:gi,invalidateLoginSession:mi,setLogoutRoute:fi}=Ct.actions,oe=Ct.reducer;c();var Nt=require("@reduxjs/toolkit");var Mt={},Ft=(0,Nt.createSlice)({name:"modalsSlice",initialState:Mt,reducers:{setTxSubmittedModal:(t,e)=>{t.txSubmittedModal=e.payload},setNotificationModal:(t,e)=>{t.notificationModal=e.payload},clearTxSubmittedModal:t=>{t.txSubmittedModal=void 0},clearNotificationModal:t=>{t.notificationModal=void 0}},extraReducers:t=>{t.addCase(S,()=>Mt)}}),{setTxSubmittedModal:xi,setNotificationModal:Si,clearTxSubmittedModal:wi,clearNotificationModal:bi}=Ft.actions,ie=Ft.reducer;c();var Pt=require("@reduxjs/toolkit"),Dt=q(require("lodash.omit"));c();c();c();c();function _e(t){return t[Math.floor(Math.random()*t.length)]}c();var Ce={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},jr={network:Ce,chainID:"-1"},Bt=(0,Pt.createSlice)({name:"appConfig",initialState:jr,reducers:{initializeNetworkConfig:(t,e)=>{let r=_e(e.payload.walletConnectBridgeAddresses),n=_e(e.payload.walletConnectV2RelayAddresses),o=(0,Dt.default)(e.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");t.network=v(h(h({},t.network),o),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:n})},setChainID:(t,e)=>{t.chainID=e.payload}}}),{initializeNetworkConfig:Ui,setChainID:Oi}=Bt.actions,ae=Bt.reducer;c();var Ut=require("@reduxjs/toolkit");var Me={isSigning:!1,signedSessions:{}},Ot=(0,Ut.createSlice)({name:"signedMessageInfoSliceState",initialState:Me,reducers:{setSignSession:(t,e)=>{let{sessionId:r,signedSession:n,errorMessage:o}=e.payload;return v(h({},t),{errorMessage:o!=null?o:t.errorMessage,isSigning:n.status==="pending",signedSessions:v(h({},t.signedSessions),{[r]:n})})},setSignSessionState:(t,e)=>h(h({},t),e.payload),clearSignedMessageInfo:()=>Me},extraReducers:t=>{t.addCase(S,()=>Me)}}),{setSignSession:qi,clearSignedMessageInfo:ji,setSignSessionState:Ki}=Ot.actions,se=Ot.reducer;c();var Ht=require("@reduxjs/toolkit"),zt=require("redux-persist");var Gt={customToasts:[],transactionToasts:[],failTransactionToast:null},Vt=(0,Ht.createSlice)({name:"toastsSlice",initialState:Gt,reducers:{addCustomToast:(t,e)=>{t.customToasts.push(v(h({},e.payload),{type:"custom",toastId:e.payload.toastId||`custom-toast-${t.customToasts.length+1}`}))},removeCustomToast:(t,e)=>{t.customToasts=t.customToasts.filter(r=>r.toastId!==e.payload)},addTransactionToast:(t,e)=>{t.transactionToasts.push({type:"transaction",startTimestamp:ee(),toastId:e.payload||`custom-toast-${t.transactionToasts.length+1}`})},removeTransactionToast:(t,e)=>{t.transactionToasts=t.transactionToasts.filter(r=>r.toastId!==e.payload)},addFailTransactionToast:(t,e)=>{t.failTransactionToast=v(h({},e.payload),{toastId:ut})},removeFailTransactionToast:t=>{t.failTransactionToast=null}},extraReducers:t=>{t.addCase(S,()=>Gt),t.addCase(zt.REHYDRATE,(e,r)=>{var o,i;let n=(i=(o=r.customToasts)==null?void 0:o.filter(a=>!("component"in a)))!=null?i:[];e.customToasts=n})}}),{addCustomToast:ta,removeCustomToast:ra,addTransactionToast:na,removeTransactionToast:oa,addFailTransactionToast:ia,removeFailTransactionToast:aa}=Vt.actions,ce=Vt.reducer;c();var Wt=require("@reduxjs/toolkit");var Kr="Transaction failed",Yr="Transaction successful",Xr="Processing transaction",Jr="Transaction submitted",Ne={},qt=(0,Wt.createSlice)({name:"transactionsInfo",initialState:Ne,reducers:{setTransactionsDisplayInfo(t,e){let{sessionId:r,transactionsDisplayInfo:n}=e.payload;r!=null&&(t[r]={errorMessage:(n==null?void 0:n.errorMessage)||Kr,successMessage:(n==null?void 0:n.successMessage)||Yr,processingMessage:(n==null?void 0:n.processingMessage)||Xr,submittedMessage:(n==null?void 0:n.submittedMessage)||Jr,transactionDuration:n==null?void 0:n.transactionDuration})},clearTransactionsInfoForSessionId(t,e){e.payload!=null&&delete t[e.payload]},clearTransactionsInfo:()=>Ne},extraReducers:t=>{t.addCase(S,()=>Ne)}}),{clearTransactionsInfo:pa,setTransactionsDisplayInfo:ua,clearTransactionsInfoForSessionId:da}=qt.actions,le=qt.reducer;c();var Yt=require("@reduxjs/toolkit"),Xt=require("redux-persist");c();var ya=["sent"],Zr=["success"],$r=["fail","cancelled","timedOut"],ha=["timedOut"],Ta=["pending"],en=["success"],tn=["fail","invalid"];function jt(t){return t!=null&&(rn(t)||on(t))}function Kt(t){return t!=null&&(nn(t)||an(t))}function rn(t){return t!=null&&Zr.includes(t)}function nn(t){return t!=null&&$r.includes(t)}function on(t){return t!=null&&en.includes(t)}function an(t){return t!=null&&tn.includes(t)}var K={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},sn={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Jt=(0,Yt.createSlice)({name:"transactionsSlice",initialState:K,reducers:{moveTransactionsToSignedState:(t,e)=>{var l,m;let{sessionId:r,transactions:n,errorMessage:o,status:i,redirectRoute:a}=e.payload,p=((l=t.customTransactionInformationForSessionId)==null?void 0:l[r])||sn;t.signedTransactions[r]={transactions:n,status:i,errorMessage:o,redirectRoute:a,customTransactionInformation:p},((m=t==null?void 0:t.transactionsToSign)==null?void 0:m.sessionId)===r&&(t.transactionsToSign=K.transactionsToSign)},clearSignedTransaction:(t,e)=>{t.signedTransactions[e.payload]&&delete t.signedTransactions[e.payload]},clearTransactionToSign:t=>{t!=null&&t.transactionsToSign&&(t.transactionsToSign=null)},updateSignedTransaction:(t,e)=>{t.signedTransactions=h(h({},t.signedTransactions),e.payload)},updateSignedTransactions:(t,e)=>{let{sessionId:r,status:n,errorMessage:o,transactions:i}=e.payload;t.signedTransactions[r]!=null&&(t.signedTransactions[r].status=n,o!=null&&(t.signedTransactions[r].errorMessage=o),i!=null&&(t.signedTransactions[r].transactions=i))},updateSignedTransactionStatus:(t,e)=>{var p,l,m,y,f,w;let{sessionId:r,status:n,errorMessage:o,transactionHash:i}=e.payload,a=(l=(p=t.signedTransactions)==null?void 0:p[r])==null?void 0:l.transactions;if(a!=null){t.signedTransactions[r].transactions=a.map(M=>M.hash===i?v(h({},M),{status:n,errorMessage:o}):M);let b=(y=(m=t.signedTransactions[r])==null?void 0:m.transactions)==null?void 0:y.every(M=>jt(M.status)),D=(w=(f=t.signedTransactions[r])==null?void 0:f.transactions)==null?void 0:w.every(M=>Kt(M.status));b&&(t.signedTransactions[r].status="success"),D&&(t.signedTransactions[r].status="fail")}},setTransactionsToSign:(t,e)=>{t.transactionsToSign=e.payload;let{sessionId:r,customTransactionInformation:n}=e.payload;t.customTransactionInformationForSessionId[r]=n,t.signTransactionsError=null},clearAllTransactionsToSign:t=>{t.transactionsToSign=K.transactionsToSign,t.signTransactionsError=null},clearAllSignedTransactions:t=>{t.signedTransactions=K.signedTransactions},setSignTransactionsError:(t,e)=>{t.signTransactionsError=e.payload},setSignTransactionsCancelMessage:(t,e)=>{t.signTransactionsCancelMessage=e.payload}},extraReducers:t=>{t.addCase(S,()=>K),t.addCase(Xt.REHYDRATE,(e,r)=>{var a;if(e.signTransactionsCancelMessage=null,!((a=r.payload)!=null&&a.transactions))return;let{signedTransactions:n,customTransactionInformationForSessionId:o}=r.payload.transactions,i=Object.entries(n).reduce((p,[l,m])=>{let y=new Date(l),f=new Date;return f.setHours(f.getHours()+5),f-y>0||(p[l]=m),p},{});o!=null&&(e.customTransactionInformationForSessionId=o),n!=null&&(e.signedTransactions=i)})}}),{updateSignedTransactionStatus:Aa,updateSignedTransactions:ka,setTransactionsToSign:Ea,clearAllTransactionsToSign:La,clearAllSignedTransactions:Ra,clearSignedTransaction:_a,clearTransactionToSign:Ca,setSignTransactionsError:Ma,setSignTransactionsCancelMessage:Na,moveTransactionsToSignedState:Fa}=Jt.actions,pe=Jt.reducer;var ln={["account"]:ne,["dappModal"]:kt,["loginInfo"]:oe,["modals"]:ie,["networkConfig"]:ae,["signedMessageInfo"]:se,["toasts"]:ce,["transactionsInfo"]:le,["transactions"]:pe},pn=(t={})=>(0,Qt.combineReducers)(h(h({},ln),t)),Fe=pn;c();var un={persistReducersStorageType:"localStorage"},Y={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},dn=B(Y["account"]),gn=B(Y["loginInfo"]),mn=B(Y["modals"]),fn=B(Y["networkConfig"]),yn={2:t=>v(h({},t),{networkConfig:Ce})};function B(t,e=[]){return{key:t,version:1,storage:$t.default,blacklist:e}}var hn=B("sdk-dapp-transactionsInfo"),Tn=B("sdk-dapp-transactions",["transactionsToSign"]),xn=B("sdk-dapp-toasts"),Sn=B("sdk-dapp-signedMessageInfo"),er={key:"sdk-dapp-store",version:2,storage:Zt.default,whitelist:Object.keys(Y),migrate:(0,A.createMigrate)(yn,{debug:!1})},wn=v(h({},er),{whitelist:[]}),Pe={["toasts"]:(0,A.persistReducer)(xn,ce),["transactions"]:(0,A.persistReducer)(Tn,pe),["transactionsInfo"]:(0,A.persistReducer)(hn,le),["signedMessageInfo"]:(0,A.persistReducer)(Sn,se)},bn=v(h({},Pe),{["account"]:(0,A.persistReducer)(dn,ne),["loginInfo"]:(0,A.persistReducer)(gn,oe),["modals"]:(0,A.persistReducer)(mn,ie),["networkConfig"]:(0,A.persistReducer)(fn,ae)}),vn=un.persistReducersStorageType==="localStorage",In=vn?(0,A.persistReducer)(er,Fe(Pe)):(0,A.persistReducer)(wn,Fe(bn)),An=In;0&&(module.exports={sessionStorageReducers});
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var ze=Object.create;var O=Object.defineProperty;var qe=Object.getOwnPropertyDescriptor;var He=Object.getOwnPropertyNames,ie=Object.getOwnPropertySymbols,Ve=Object.getPrototypeOf,oe=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable;var ae=(t,e,r)=>e in t?O(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,se=(t,e)=>{for(var r in e||(e={}))oe.call(e,r)&&ae(t,r,e[r]);if(ie)for(var r of ie(e))je.call(e,r)&&ae(t,r,e[r]);return t};var We=(t,e)=>()=>(t&&(e=t(t=0)),e);var P=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ye=(t,e)=>{for(var r in e)O(t,r,{get:e[r],enumerable:!0})},le=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of He(e))!oe.call(t,i)&&i!==r&&O(t,i,{get:()=>e[i],enumerable:!(n=qe(e,i))||n.enumerable});return t};var ce=(t,e,r)=>(r=t!=null?ze(Ve(t)):{},le(e||!t||!t.__esModule?O(r,"default",{value:t,enumerable:!0}):r,t)),Xe=t=>le(O({},"__esModule",{value:!0}),t);var de=P(G=>{"use strict";p();G.byteLength=Ke;G.toByteArray=Je;G.fromByteArray=rr;var k=[],T=[],Qe=typeof Uint8Array!="undefined"?Uint8Array:Array,V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(F=0,pe=V.length;F<pe;++F)k[F]=V[F],T[V.charCodeAt(F)]=F;var F,pe;T["-".charCodeAt(0)]=62;T["_".charCodeAt(0)]=63;function ue(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function Ke(t){var e=ue(t),r=e[0],n=e[1];return(r+n)*3/4-n}function Ze(t,e,r){return(e+r)*3/4-r}function Je(t){var e,r=ue(t),n=r[0],i=r[1],a=new Qe(Ze(t,n,i)),o=0,l=i>0?n-4:n,c;for(c=0;c<l;c+=4)e=T[t.charCodeAt(c)]<<18|T[t.charCodeAt(c+1)]<<12|T[t.charCodeAt(c+2)]<<6|T[t.charCodeAt(c+3)],a[o++]=e>>16&255,a[o++]=e>>8&255,a[o++]=e&255;return i===2&&(e=T[t.charCodeAt(c)]<<2|T[t.charCodeAt(c+1)]>>4,a[o++]=e&255),i===1&&(e=T[t.charCodeAt(c)]<<10|T[t.charCodeAt(c+1)]<<4|T[t.charCodeAt(c+2)]>>2,a[o++]=e>>8&255,a[o++]=e&255),a}function $e(t){return k[t>>18&63]+k[t>>12&63]+k[t>>6&63]+k[t&63]}function er(t,e,r){for(var n,i=[],a=e;a<r;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(t[a+2]&255),i.push($e(n));return i.join("")}function rr(t){for(var e,r=t.length,n=r%3,i=[],a=16383,o=0,l=r-n;o<l;o+=a)i.push(er(t,o,o+a>l?l:o+a));return n===1?(e=t[r-1],i.push(k[e>>2]+k[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(k[e>>10]+k[e>>4&63]+k[e<<2&63]+"=")),i.join("")}});var ge=P(j=>{p();j.read=function(t,e,r,n,i){var a,o,l=i*8-n-1,c=(1<<l)-1,d=c>>1,g=-7,u=r?i-1:0,v=r?-1:1,b=t[e+u];for(u+=v,a=b&(1<<-g)-1,b>>=-g,g+=l;g>0;a=a*256+t[e+u],u+=v,g-=8);for(o=a&(1<<-g)-1,a>>=-g,g+=n;g>0;o=o*256+t[e+u],u+=v,g-=8);if(a===0)a=1-d;else{if(a===c)return o?NaN:(b?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-d}return(b?-1:1)*o*Math.pow(2,a-n)};j.write=function(t,e,r,n,i,a){var o,l,c,d=a*8-i-1,g=(1<<d)-1,u=g>>1,v=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:a-1,C=n?1:-1,Ge=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(l=isNaN(e)?1:0,o=g):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),o+u>=1?e+=v/c:e+=v*Math.pow(2,1-u),e*c>=2&&(o++,c/=2),o+u>=g?(l=0,o=g):o+u>=1?(l=(e*c-1)*Math.pow(2,i),o=o+u):(l=e*Math.pow(2,u-1)*Math.pow(2,i),o=0));i>=8;t[r+b]=l&255,b+=C,l/=256,i-=8);for(o=o<<i|l,d+=i;d>0;t[r+b]=o&255,b+=C,o/=256,d-=8);t[r+b-C]|=Ge*128}});var Ie=P(U=>{"use strict";p();var W=de(),B=ge(),me=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;U.Buffer=s;U.SlowBuffer=sr;U.INSPECT_MAX_BYTES=50;var z=2147483647;U.kMaxLength=z;s.TYPED_ARRAY_SUPPORT=tr();!s.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function tr(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch(r){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function R(t){if(t>z)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return K(t)}return ye(t,e,r)}s.poolSize=8192;function ye(t,e,r){if(typeof t=="string")return ir(t,e);if(ArrayBuffer.isView(t))return ar(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(_(t,ArrayBuffer)||t&&_(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(_(t,SharedArrayBuffer)||t&&_(t.buffer,SharedArrayBuffer)))return X(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return s.from(n,e,r);var i=or(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}s.from=function(t,e,r){return ye(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function xe(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function nr(t,e,r){return xe(t),t<=0?R(t):e!==void 0?typeof r=="string"?R(t).fill(e,r):R(t).fill(e):R(t)}s.alloc=function(t,e,r){return nr(t,e,r)};function K(t){return xe(t),R(t<0?0:Z(t)|0)}s.allocUnsafe=function(t){return K(t)};s.allocUnsafeSlow=function(t){return K(t)};function ir(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=we(t,e)|0,n=R(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function Y(t){for(var e=t.length<0?0:Z(t.length)|0,r=R(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function ar(t){if(_(t,Uint8Array)){var e=new Uint8Array(t);return X(e.buffer,e.byteOffset,e.byteLength)}return Y(t)}function X(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,s.prototype),n}function or(t){if(s.isBuffer(t)){var e=Z(t.length)|0,r=R(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||J(t.length)?R(0):Y(t);if(t.type==="Buffer"&&Array.isArray(t.data))return Y(t.data)}function Z(t){if(t>=z)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+z.toString(16)+" bytes");return t|0}function sr(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype};s.compare=function(e,r){if(_(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),_(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(e)||!s.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,i=r.length,a=0,o=Math.min(n,i);a<o;++a)if(e[a]!==r[a]){n=e[a],i=r[a];break}return n<i?-1:i<n?1:0};s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};s.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return s.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=s.allocUnsafe(r),a=0;for(n=0;n<e.length;++n){var o=e[n];if(_(o,Uint8Array))a+o.length>i.length?s.from(o).copy(i,a):Uint8Array.prototype.set.call(i,o,a);else if(s.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function we(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||_(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Q(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Ae(t).length;default:if(i)return n?-1:Q(t).length;e=(""+e).toLowerCase(),i=!0}}s.byteLength=we;function lr(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return xr(this,e,r);case"utf8":case"utf-8":return Te(this,e,r);case"ascii":return hr(this,e,r);case"latin1":case"binary":return yr(this,e,r);case"base64":return mr(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return wr(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function N(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}s.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)N(this,r,r+1);return this};s.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)N(this,r,r+3),N(this,r+1,r+2);return this};s.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)N(this,r,r+7),N(this,r+1,r+6),N(this,r+2,r+5),N(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?Te(this,0,e):lr.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:s.compare(this,e)===0};s.prototype.inspect=function(){var e="",r=U.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};me&&(s.prototype[me]=s.prototype.inspect);s.prototype.compare=function(e,r,n,i,a){if(_(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),r<0||n>e.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===e)return 0;for(var o=a-i,l=n-r,c=Math.min(o,l),d=this.slice(i,a),g=e.slice(r,n),u=0;u<c;++u)if(d[u]!==g[u]){o=d[u],l=g[u];break}return o<l?-1:l<o?1:0};function be(t,e,r,n,i){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,J(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof e=="string"&&(e=s.from(e,n)),s.isBuffer(e))return e.length===0?-1:fe(t,e,r,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):fe(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function fe(t,e,r,n,i){var a=1,o=t.length,l=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;a=2,o/=2,l/=2,r/=2}function c(b,C){return a===1?b[C]:b.readUInt16BE(C*a)}var d;if(i){var g=-1;for(d=r;d<o;d++)if(c(t,d)===c(e,g===-1?0:d-g)){if(g===-1&&(g=d),d-g+1===l)return g*a}else g!==-1&&(d-=d-g),g=-1}else for(r+l>o&&(r=o-l),d=r;d>=0;d--){for(var u=!0,v=0;v<l;v++)if(c(t,d+v)!==c(e,v)){u=!1;break}if(u)return d}return-1}s.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};s.prototype.indexOf=function(e,r,n){return be(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return be(this,e,r,n,!1)};function cr(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var a=e.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var l=parseInt(e.substr(o*2,2),16);if(J(l))return o;t[r+o]=l}return o}function pr(t,e,r,n){return q(Q(e,t.length-r),t,r,n)}function ur(t,e,r,n){return q(vr(e),t,r,n)}function dr(t,e,r,n){return q(Ae(e),t,r,n)}function gr(t,e,r,n){return q(kr(e,t.length-r),t,r,n)}s.prototype.write=function(e,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-r;if((n===void 0||n>a)&&(n=a),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return cr(this,e,r,n);case"utf8":case"utf-8":return pr(this,e,r,n);case"ascii":case"latin1":case"binary":return ur(this,e,r,n);case"base64":return dr(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return gr(this,e,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function mr(t,e,r){return e===0&&r===t.length?W.fromByteArray(t):W.fromByteArray(t.slice(e,r))}function Te(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var a=t[i],o=null,l=a>239?4:a>223?3:a>191?2:1;if(i+l<=r){var c,d,g,u;switch(l){case 1:a<128&&(o=a);break;case 2:c=t[i+1],(c&192)===128&&(u=(a&31)<<6|c&63,u>127&&(o=u));break;case 3:c=t[i+1],d=t[i+2],(c&192)===128&&(d&192)===128&&(u=(a&15)<<12|(c&63)<<6|d&63,u>2047&&(u<55296||u>57343)&&(o=u));break;case 4:c=t[i+1],d=t[i+2],g=t[i+3],(c&192)===128&&(d&192)===128&&(g&192)===128&&(u=(a&15)<<18|(c&63)<<12|(d&63)<<6|g&63,u>65535&&u<1114112&&(o=u))}}o===null?(o=65533,l=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=l}return fr(n)}var he=4096;function fr(t){var e=t.length;if(e<=he)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=he));return r}function hr(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]&127);return n}function yr(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function xr(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=e;a<r;++a)i+=_r[t[a]];return i}function wr(t,e,r){for(var n=t.slice(e,r),i="",a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}s.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var i=this.subarray(e,r);return Object.setPrototypeOf(i,s.prototype),i};function x(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],a=1,o=0;++o<r&&(a*=256);)i+=this[e+o]*a;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e+--r],a=1;r>0&&(a*=256);)i+=this[e+--r]*a;return i};s.prototype.readUint8=s.prototype.readUInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};s.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],a=1,o=0;++o<r&&(a*=256);)i+=this[e+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*r)),i};s.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=r,a=1,o=this[e+--i];i>0&&(a*=256);)o+=this[e+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};s.prototype.readInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};s.prototype.readInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};s.prototype.readFloatLE=function(e,r){return e=e>>>0,r||x(e,4,this.length),B.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||x(e,4,this.length),B.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||x(e,8,this.length),B.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||x(e,8,this.length),B.read(this,e,!1,52,8)};function w(t,e,r,n,i,a){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;w(this,e,r,n,a,0)}var o=1,l=0;for(this[r]=e&255;++l<n&&(o*=256);)this[r+l]=e/o&255;return r+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;w(this,e,r,n,a,0)}var o=n-1,l=1;for(this[r+o]=e&255;--o>=0&&(l*=256);)this[r+o]=e/l&255;return r+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,255,0),this[r]=e&255,r+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};s.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);w(this,e,r,n,a-1,-a)}var o=0,l=1,c=0;for(this[r]=e&255;++o<n&&(l*=256);)e<0&&c===0&&this[r+o-1]!==0&&(c=1),this[r+o]=(e/l>>0)-c&255;return r+n};s.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);w(this,e,r,n,a-1,-a)}var o=n-1,l=1,c=0;for(this[r+o]=e&255;--o>=0&&(l*=256);)e<0&&c===0&&this[r+o+1]!==0&&(c=1),this[r+o]=(e/l>>0)-c&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};s.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};s.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function ve(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function ke(t,e,r,n,i){return e=+e,r=r>>>0,i||ve(t,e,r,4,34028234663852886e22,-34028234663852886e22),B.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return ke(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return ke(this,e,r,!1,n)};function _e(t,e,r,n,i){return e=+e,r=r>>>0,i||ve(t,e,r,8,17976931348623157e292,-17976931348623157e292),B.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return _e(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return _e(this,e,r,!1,n)};s.prototype.copy=function(e,r,n,i){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r<i-n&&(i=e.length-r+n);var a=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),r),a};s.prototype.fill=function(e,r,n,i){if(typeof e=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var a=e.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(e=a)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var o;if(typeof e=="number")for(o=r;o<n;++o)this[o]=e;else{var l=s.isBuffer(e)?e:s.from(e,i),c=l.length;if(c===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-r;++o)this[o+r]=l[o%c]}return this};var br=/[^+/0-9A-Za-z-_]/g;function Tr(t){if(t=t.split("=")[0],t=t.trim().replace(br,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function Q(t,e){e=e||1/0;for(var r,n=t.length,i=null,a=[],o=0;o<n;++o){if(r=t.charCodeAt(o),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function vr(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function kr(t,e){for(var r,n,i,a=[],o=0;o<t.length&&!((e-=2)<0);++o)r=t.charCodeAt(o),n=r>>8,i=r%256,a.push(i),a.push(n);return a}function Ae(t){return W.toByteArray(Tr(t))}function q(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function _(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function J(t){return t!==t}var _r=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=r*16,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()});var Fe=P((Pr,Le)=>{p();var y=Le.exports={},A,I;function $(){throw new Error("setTimeout has not been defined")}function ee(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?A=setTimeout:A=$}catch(t){A=$}try{typeof clearTimeout=="function"?I=clearTimeout:I=ee}catch(t){I=ee}})();function Ee(t){if(A===setTimeout)return setTimeout(t,0);if((A===$||!A)&&setTimeout)return A=setTimeout,setTimeout(t,0);try{return A(t,0)}catch(e){try{return A.call(null,t,0)}catch(r){return A.call(this,t,0)}}}function Ar(t){if(I===clearTimeout)return clearTimeout(t);if((I===ee||!I)&&clearTimeout)return I=clearTimeout,clearTimeout(t);try{return I(t)}catch(e){try{return I.call(null,t)}catch(r){return I.call(this,t)}}}var S=[],M=!1,D,H=-1;function Ir(){!M||!D||(M=!1,D.length?S=D.concat(S):H=-1,S.length&&Re())}function Re(){if(!M){var t=Ee(Ir);M=!0;for(var e=S.length;e;){for(D=S,S=[];++H<e;)D&&D[H].run();H=-1,e=S.length}D=null,M=!1,Ar(t)}}y.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];S.push(new Se(t,e)),S.length===1&&!M&&Ee(Re)};function Se(t,e){this.fun=t,this.array=e}Se.prototype.run=function(){this.fun.apply(null,this.array)};y.title="browser";y.browser=!0;y.env={};y.argv=[];y.version="";y.versions={};function L(){}y.on=L;y.addListener=L;y.once=L;y.off=L;y.removeListener=L;y.removeAllListeners=L;y.emit=L;y.prependListener=L;y.prependOnceListener=L;y.listeners=function(t){return[]};y.binding=function(t){throw new Error("process.binding is not supported")};y.cwd=function(){return"/"};y.chdir=function(t){throw new Error("process.chdir is not supported")};y.umask=function(){return 0}});var m,f,Gr,p=We(()=>{m=ce(Ie()),f=ce(Fe()),Gr=function(t){function e(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:e});var r=__magic__;return r}(Object)});var Cr={};Ye(Cr,{dappModalsSlice:()=>ne,default:()=>Dr,setDappModalConfig:()=>Nr,setDappModalFooterText:()=>Fr,setDappModalFooterVisibility:()=>Sr,setDappModalHeaderText:()=>Lr,setDappModalHeaderVisibility:()=>Rr,setDappModalVisibility:()=>Er});module.exports=Xe(Cr);p();var Pe=require("@reduxjs/toolkit");p();var te=require("@reduxjs/toolkit");p();p();p();p();p();p();p();p();p();p();p();p();p();var re={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:Ne,egldLabel:at}=re["devnet"],{chainId:De,egldLabel:ot}=re["testnet"],{chainId:Ce,egldLabel:st}=re["mainnet"];var lt={["devnet"]:Ne,["testnet"]:De,["mainnet"]:Ce},ct={[Ne]:"devnet",[De]:"testnet",[Ce]:"mainnet"};p();p();p();p();var E=require("@multiversx/sdk-web-wallet-provider");var Be="logout",Ue="login";var Me=(0,te.createAction)(Be),kt=(0,te.createAction)(Ue,t=>({payload:t}));var Oe={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},ne=(0,Pe.createSlice)({name:"dappModalsSlice",initialState:Oe,reducers:{setDappModalVisibility:(t,e)=>{t.visible=e.payload},setDappModalHeaderVisibility:(t,e)=>{t.modal.showHeader=e.payload},setDappModalFooterVisibility:(t,e)=>{t.modal.showFooter=e.payload},setDappModalHeaderText:(t,e)=>{t.modal.headerText=e.payload},setDappModalFooterText:(t,e)=>{t.modal.footerText=e.payload},setDappModalConfig:(t,e)=>{t.modal=se({},e.payload)}},extraReducers:t=>{t.addCase(Me,()=>Oe)}}),{setDappModalVisibility:Er,setDappModalHeaderVisibility:Rr,setDappModalFooterVisibility:Sr,setDappModalHeaderText:Lr,setDappModalFooterText:Fr,setDappModalConfig:Nr}=ne.actions,Dr=ne.reducer;0&&(module.exports={dappModalsSlice,setDappModalConfig,setDappModalFooterText,setDappModalFooterVisibility,setDappModalHeaderText,setDappModalHeaderVisibility,setDappModalVisibility});
|
|
1
|
+
"use strict";var ze=Object.create;var O=Object.defineProperty;var qe=Object.getOwnPropertyDescriptor;var He=Object.getOwnPropertyNames,ie=Object.getOwnPropertySymbols,Ve=Object.getPrototypeOf,oe=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable;var ae=(t,e,r)=>e in t?O(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,se=(t,e)=>{for(var r in e||(e={}))oe.call(e,r)&&ae(t,r,e[r]);if(ie)for(var r of ie(e))je.call(e,r)&&ae(t,r,e[r]);return t};var We=(t,e)=>()=>(t&&(e=t(t=0)),e);var P=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ye=(t,e)=>{for(var r in e)O(t,r,{get:e[r],enumerable:!0})},le=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of He(e))!oe.call(t,i)&&i!==r&&O(t,i,{get:()=>e[i],enumerable:!(n=qe(e,i))||n.enumerable});return t};var ce=(t,e,r)=>(r=t!=null?ze(Ve(t)):{},le(e||!t||!t.__esModule?O(r,"default",{value:t,enumerable:!0}):r,t)),Xe=t=>le(O({},"__esModule",{value:!0}),t);var de=P(G=>{"use strict";p();G.byteLength=Ke;G.toByteArray=Je;G.fromByteArray=rr;var k=[],T=[],Qe=typeof Uint8Array!="undefined"?Uint8Array:Array,V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(F=0,pe=V.length;F<pe;++F)k[F]=V[F],T[V.charCodeAt(F)]=F;var F,pe;T["-".charCodeAt(0)]=62;T["_".charCodeAt(0)]=63;function ue(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function Ke(t){var e=ue(t),r=e[0],n=e[1];return(r+n)*3/4-n}function Ze(t,e,r){return(e+r)*3/4-r}function Je(t){var e,r=ue(t),n=r[0],i=r[1],a=new Qe(Ze(t,n,i)),o=0,l=i>0?n-4:n,c;for(c=0;c<l;c+=4)e=T[t.charCodeAt(c)]<<18|T[t.charCodeAt(c+1)]<<12|T[t.charCodeAt(c+2)]<<6|T[t.charCodeAt(c+3)],a[o++]=e>>16&255,a[o++]=e>>8&255,a[o++]=e&255;return i===2&&(e=T[t.charCodeAt(c)]<<2|T[t.charCodeAt(c+1)]>>4,a[o++]=e&255),i===1&&(e=T[t.charCodeAt(c)]<<10|T[t.charCodeAt(c+1)]<<4|T[t.charCodeAt(c+2)]>>2,a[o++]=e>>8&255,a[o++]=e&255),a}function $e(t){return k[t>>18&63]+k[t>>12&63]+k[t>>6&63]+k[t&63]}function er(t,e,r){for(var n,i=[],a=e;a<r;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(t[a+2]&255),i.push($e(n));return i.join("")}function rr(t){for(var e,r=t.length,n=r%3,i=[],a=16383,o=0,l=r-n;o<l;o+=a)i.push(er(t,o,o+a>l?l:o+a));return n===1?(e=t[r-1],i.push(k[e>>2]+k[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(k[e>>10]+k[e>>4&63]+k[e<<2&63]+"=")),i.join("")}});var ge=P(j=>{p();j.read=function(t,e,r,n,i){var a,o,l=i*8-n-1,c=(1<<l)-1,d=c>>1,g=-7,u=r?i-1:0,v=r?-1:1,b=t[e+u];for(u+=v,a=b&(1<<-g)-1,b>>=-g,g+=l;g>0;a=a*256+t[e+u],u+=v,g-=8);for(o=a&(1<<-g)-1,a>>=-g,g+=n;g>0;o=o*256+t[e+u],u+=v,g-=8);if(a===0)a=1-d;else{if(a===c)return o?NaN:(b?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-d}return(b?-1:1)*o*Math.pow(2,a-n)};j.write=function(t,e,r,n,i,a){var o,l,c,d=a*8-i-1,g=(1<<d)-1,u=g>>1,v=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:a-1,C=n?1:-1,Ge=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(l=isNaN(e)?1:0,o=g):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),o+u>=1?e+=v/c:e+=v*Math.pow(2,1-u),e*c>=2&&(o++,c/=2),o+u>=g?(l=0,o=g):o+u>=1?(l=(e*c-1)*Math.pow(2,i),o=o+u):(l=e*Math.pow(2,u-1)*Math.pow(2,i),o=0));i>=8;t[r+b]=l&255,b+=C,l/=256,i-=8);for(o=o<<i|l,d+=i;d>0;t[r+b]=o&255,b+=C,o/=256,d-=8);t[r+b-C]|=Ge*128}});var Ie=P(U=>{"use strict";p();var W=de(),B=ge(),fe=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;U.Buffer=s;U.SlowBuffer=sr;U.INSPECT_MAX_BYTES=50;var z=2147483647;U.kMaxLength=z;s.TYPED_ARRAY_SUPPORT=tr();!s.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function tr(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch(r){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function R(t){if(t>z)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return K(t)}return ye(t,e,r)}s.poolSize=8192;function ye(t,e,r){if(typeof t=="string")return ir(t,e);if(ArrayBuffer.isView(t))return ar(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(_(t,ArrayBuffer)||t&&_(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(_(t,SharedArrayBuffer)||t&&_(t.buffer,SharedArrayBuffer)))return X(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return s.from(n,e,r);var i=or(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}s.from=function(t,e,r){return ye(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function xe(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function nr(t,e,r){return xe(t),t<=0?R(t):e!==void 0?typeof r=="string"?R(t).fill(e,r):R(t).fill(e):R(t)}s.alloc=function(t,e,r){return nr(t,e,r)};function K(t){return xe(t),R(t<0?0:Z(t)|0)}s.allocUnsafe=function(t){return K(t)};s.allocUnsafeSlow=function(t){return K(t)};function ir(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=we(t,e)|0,n=R(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function Y(t){for(var e=t.length<0?0:Z(t.length)|0,r=R(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function ar(t){if(_(t,Uint8Array)){var e=new Uint8Array(t);return X(e.buffer,e.byteOffset,e.byteLength)}return Y(t)}function X(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,s.prototype),n}function or(t){if(s.isBuffer(t)){var e=Z(t.length)|0,r=R(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||J(t.length)?R(0):Y(t);if(t.type==="Buffer"&&Array.isArray(t.data))return Y(t.data)}function Z(t){if(t>=z)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+z.toString(16)+" bytes");return t|0}function sr(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype};s.compare=function(e,r){if(_(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),_(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(e)||!s.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,i=r.length,a=0,o=Math.min(n,i);a<o;++a)if(e[a]!==r[a]){n=e[a],i=r[a];break}return n<i?-1:i<n?1:0};s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};s.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return s.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=s.allocUnsafe(r),a=0;for(n=0;n<e.length;++n){var o=e[n];if(_(o,Uint8Array))a+o.length>i.length?s.from(o).copy(i,a):Uint8Array.prototype.set.call(i,o,a);else if(s.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function we(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||_(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Q(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Ae(t).length;default:if(i)return n?-1:Q(t).length;e=(""+e).toLowerCase(),i=!0}}s.byteLength=we;function lr(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return xr(this,e,r);case"utf8":case"utf-8":return Te(this,e,r);case"ascii":return hr(this,e,r);case"latin1":case"binary":return yr(this,e,r);case"base64":return fr(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return wr(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function N(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}s.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)N(this,r,r+1);return this};s.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)N(this,r,r+3),N(this,r+1,r+2);return this};s.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)N(this,r,r+7),N(this,r+1,r+6),N(this,r+2,r+5),N(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?Te(this,0,e):lr.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:s.compare(this,e)===0};s.prototype.inspect=function(){var e="",r=U.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};fe&&(s.prototype[fe]=s.prototype.inspect);s.prototype.compare=function(e,r,n,i,a){if(_(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),r<0||n>e.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===e)return 0;for(var o=a-i,l=n-r,c=Math.min(o,l),d=this.slice(i,a),g=e.slice(r,n),u=0;u<c;++u)if(d[u]!==g[u]){o=d[u],l=g[u];break}return o<l?-1:l<o?1:0};function be(t,e,r,n,i){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,J(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof e=="string"&&(e=s.from(e,n)),s.isBuffer(e))return e.length===0?-1:me(t,e,r,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):me(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function me(t,e,r,n,i){var a=1,o=t.length,l=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;a=2,o/=2,l/=2,r/=2}function c(b,C){return a===1?b[C]:b.readUInt16BE(C*a)}var d;if(i){var g=-1;for(d=r;d<o;d++)if(c(t,d)===c(e,g===-1?0:d-g)){if(g===-1&&(g=d),d-g+1===l)return g*a}else g!==-1&&(d-=d-g),g=-1}else for(r+l>o&&(r=o-l),d=r;d>=0;d--){for(var u=!0,v=0;v<l;v++)if(c(t,d+v)!==c(e,v)){u=!1;break}if(u)return d}return-1}s.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};s.prototype.indexOf=function(e,r,n){return be(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return be(this,e,r,n,!1)};function cr(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var a=e.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var l=parseInt(e.substr(o*2,2),16);if(J(l))return o;t[r+o]=l}return o}function pr(t,e,r,n){return q(Q(e,t.length-r),t,r,n)}function ur(t,e,r,n){return q(vr(e),t,r,n)}function dr(t,e,r,n){return q(Ae(e),t,r,n)}function gr(t,e,r,n){return q(kr(e,t.length-r),t,r,n)}s.prototype.write=function(e,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-r;if((n===void 0||n>a)&&(n=a),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return cr(this,e,r,n);case"utf8":case"utf-8":return pr(this,e,r,n);case"ascii":case"latin1":case"binary":return ur(this,e,r,n);case"base64":return dr(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return gr(this,e,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function fr(t,e,r){return e===0&&r===t.length?W.fromByteArray(t):W.fromByteArray(t.slice(e,r))}function Te(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var a=t[i],o=null,l=a>239?4:a>223?3:a>191?2:1;if(i+l<=r){var c,d,g,u;switch(l){case 1:a<128&&(o=a);break;case 2:c=t[i+1],(c&192)===128&&(u=(a&31)<<6|c&63,u>127&&(o=u));break;case 3:c=t[i+1],d=t[i+2],(c&192)===128&&(d&192)===128&&(u=(a&15)<<12|(c&63)<<6|d&63,u>2047&&(u<55296||u>57343)&&(o=u));break;case 4:c=t[i+1],d=t[i+2],g=t[i+3],(c&192)===128&&(d&192)===128&&(g&192)===128&&(u=(a&15)<<18|(c&63)<<12|(d&63)<<6|g&63,u>65535&&u<1114112&&(o=u))}}o===null?(o=65533,l=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=l}return mr(n)}var he=4096;function mr(t){var e=t.length;if(e<=he)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=he));return r}function hr(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]&127);return n}function yr(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function xr(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=e;a<r;++a)i+=_r[t[a]];return i}function wr(t,e,r){for(var n=t.slice(e,r),i="",a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}s.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var i=this.subarray(e,r);return Object.setPrototypeOf(i,s.prototype),i};function x(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],a=1,o=0;++o<r&&(a*=256);)i+=this[e+o]*a;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e+--r],a=1;r>0&&(a*=256);)i+=this[e+--r]*a;return i};s.prototype.readUint8=s.prototype.readUInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};s.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],a=1,o=0;++o<r&&(a*=256);)i+=this[e+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*r)),i};s.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=r,a=1,o=this[e+--i];i>0&&(a*=256);)o+=this[e+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};s.prototype.readInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};s.prototype.readInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};s.prototype.readFloatLE=function(e,r){return e=e>>>0,r||x(e,4,this.length),B.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||x(e,4,this.length),B.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||x(e,8,this.length),B.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||x(e,8,this.length),B.read(this,e,!1,52,8)};function w(t,e,r,n,i,a){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;w(this,e,r,n,a,0)}var o=1,l=0;for(this[r]=e&255;++l<n&&(o*=256);)this[r+l]=e/o&255;return r+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;w(this,e,r,n,a,0)}var o=n-1,l=1;for(this[r+o]=e&255;--o>=0&&(l*=256);)this[r+o]=e/l&255;return r+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,255,0),this[r]=e&255,r+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};s.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);w(this,e,r,n,a-1,-a)}var o=0,l=1,c=0;for(this[r]=e&255;++o<n&&(l*=256);)e<0&&c===0&&this[r+o-1]!==0&&(c=1),this[r+o]=(e/l>>0)-c&255;return r+n};s.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);w(this,e,r,n,a-1,-a)}var o=n-1,l=1,c=0;for(this[r+o]=e&255;--o>=0&&(l*=256);)e<0&&c===0&&this[r+o+1]!==0&&(c=1),this[r+o]=(e/l>>0)-c&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};s.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};s.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function ve(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function ke(t,e,r,n,i){return e=+e,r=r>>>0,i||ve(t,e,r,4,34028234663852886e22,-34028234663852886e22),B.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return ke(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return ke(this,e,r,!1,n)};function _e(t,e,r,n,i){return e=+e,r=r>>>0,i||ve(t,e,r,8,17976931348623157e292,-17976931348623157e292),B.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return _e(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return _e(this,e,r,!1,n)};s.prototype.copy=function(e,r,n,i){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r<i-n&&(i=e.length-r+n);var a=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),r),a};s.prototype.fill=function(e,r,n,i){if(typeof e=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var a=e.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(e=a)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var o;if(typeof e=="number")for(o=r;o<n;++o)this[o]=e;else{var l=s.isBuffer(e)?e:s.from(e,i),c=l.length;if(c===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-r;++o)this[o+r]=l[o%c]}return this};var br=/[^+/0-9A-Za-z-_]/g;function Tr(t){if(t=t.split("=")[0],t=t.trim().replace(br,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function Q(t,e){e=e||1/0;for(var r,n=t.length,i=null,a=[],o=0;o<n;++o){if(r=t.charCodeAt(o),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function vr(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function kr(t,e){for(var r,n,i,a=[],o=0;o<t.length&&!((e-=2)<0);++o)r=t.charCodeAt(o),n=r>>8,i=r%256,a.push(i),a.push(n);return a}function Ae(t){return W.toByteArray(Tr(t))}function q(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function _(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function J(t){return t!==t}var _r=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=r*16,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()});var Fe=P((Pr,Le)=>{p();var y=Le.exports={},A,I;function $(){throw new Error("setTimeout has not been defined")}function ee(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?A=setTimeout:A=$}catch(t){A=$}try{typeof clearTimeout=="function"?I=clearTimeout:I=ee}catch(t){I=ee}})();function Ee(t){if(A===setTimeout)return setTimeout(t,0);if((A===$||!A)&&setTimeout)return A=setTimeout,setTimeout(t,0);try{return A(t,0)}catch(e){try{return A.call(null,t,0)}catch(r){return A.call(this,t,0)}}}function Ar(t){if(I===clearTimeout)return clearTimeout(t);if((I===ee||!I)&&clearTimeout)return I=clearTimeout,clearTimeout(t);try{return I(t)}catch(e){try{return I.call(null,t)}catch(r){return I.call(this,t)}}}var S=[],M=!1,D,H=-1;function Ir(){!M||!D||(M=!1,D.length?S=D.concat(S):H=-1,S.length&&Re())}function Re(){if(!M){var t=Ee(Ir);M=!0;for(var e=S.length;e;){for(D=S,S=[];++H<e;)D&&D[H].run();H=-1,e=S.length}D=null,M=!1,Ar(t)}}y.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];S.push(new Se(t,e)),S.length===1&&!M&&Ee(Re)};function Se(t,e){this.fun=t,this.array=e}Se.prototype.run=function(){this.fun.apply(null,this.array)};y.title="browser";y.browser=!0;y.env={};y.argv=[];y.version="";y.versions={};function L(){}y.on=L;y.addListener=L;y.once=L;y.off=L;y.removeListener=L;y.removeAllListeners=L;y.emit=L;y.prependListener=L;y.prependOnceListener=L;y.listeners=function(t){return[]};y.binding=function(t){throw new Error("process.binding is not supported")};y.cwd=function(){return"/"};y.chdir=function(t){throw new Error("process.chdir is not supported")};y.umask=function(){return 0}});var f,m,Gr,p=We(()=>{f=ce(Ie()),m=ce(Fe()),Gr=function(t){function e(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:e});var r=__magic__;return r}(Object)});var Cr={};Ye(Cr,{dappModalsSlice:()=>ne,default:()=>Dr,setDappModalConfig:()=>Nr,setDappModalFooterText:()=>Fr,setDappModalFooterVisibility:()=>Sr,setDappModalHeaderText:()=>Lr,setDappModalHeaderVisibility:()=>Rr,setDappModalVisibility:()=>Er});module.exports=Xe(Cr);p();var Pe=require("@reduxjs/toolkit");p();var te=require("@reduxjs/toolkit");p();p();p();p();p();p();p();p();p();p();p();p();p();var re={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:Ne,egldLabel:at}=re["devnet"],{chainId:De,egldLabel:ot}=re["testnet"],{chainId:Ce,egldLabel:st}=re["mainnet"];var lt={["devnet"]:Ne,["testnet"]:De,["mainnet"]:Ce},ct={[Ne]:"devnet",[De]:"testnet",[Ce]:"mainnet"};p();p();p();p();var E=require("@multiversx/sdk-web-wallet-provider");var Be="logout",Ue="login";var Me=(0,te.createAction)(Be),kt=(0,te.createAction)(Ue,t=>({payload:t}));var Oe={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},ne=(0,Pe.createSlice)({name:"dappModalsSlice",initialState:Oe,reducers:{setDappModalVisibility:(t,e)=>{t.visible=e.payload},setDappModalHeaderVisibility:(t,e)=>{t.modal.showHeader=e.payload},setDappModalFooterVisibility:(t,e)=>{t.modal.showFooter=e.payload},setDappModalHeaderText:(t,e)=>{t.modal.headerText=e.payload},setDappModalFooterText:(t,e)=>{t.modal.footerText=e.payload},setDappModalConfig:(t,e)=>{t.modal=se({},e.payload)}},extraReducers:t=>{t.addCase(Me,()=>Oe)}}),{setDappModalVisibility:Er,setDappModalHeaderVisibility:Rr,setDappModalFooterVisibility:Sr,setDappModalHeaderText:Lr,setDappModalFooterText:Fr,setDappModalConfig:Nr}=ne.actions,Dr=ne.reducer;0&&(module.exports={dappModalsSlice,setDappModalConfig,setDappModalFooterText,setDappModalFooterVisibility,setDappModalHeaderText,setDappModalHeaderVisibility,setDappModalVisibility});
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|