@multiversx/sdk-dapp 2.9.3 → 2.10.0
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-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-GZYBS3RX.js → chunk-3JKM5GE5.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-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-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-ACFBL4A7.js → chunk-6QEOI4LP.js} +2 -2
- 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-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-AE66JOMW.js +2 -0
- 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-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-L2UUUYJG.js → chunk-BMHV4H76.js} +2 -2
- package/__chunks__/{chunk-3Q7OTNFY.js → chunk-BTPDVQON.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-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-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-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-HYUP22HC.js +2 -0
- 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-L4CGB34M.js → chunk-J32KR5O6.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-JHCHULG6.js +2 -0
- 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-QN2Y4SM6.js → chunk-K7WZNW5X.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-2WCENO6D.js → chunk-KWMPPLTR.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-PEA6B2ZZ.js → chunk-M3DCFIB7.js} +2 -2
- 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-DEO64IOA.js → chunk-MXMO5VOA.js} +2 -2
- package/__chunks__/{chunk-YTSEILVL.js → chunk-MY5N6ROI.js} +2 -2
- package/__chunks__/chunk-N5EEQD2P.js +2 -0
- package/__chunks__/{chunk-KU6GMEDW.js → chunk-NA7BBONT.js} +2 -2
- 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-NDKKNO3E.js → chunk-OGY2VJHG.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-PLVN6R4K.js +2 -0
- package/__chunks__/{chunk-CSSOPAY3.js → chunk-PRBT2JHG.js} +2 -2
- package/__chunks__/chunk-PV4P32HG.js +2 -0
- package/__chunks__/{chunk-43MYPOBW.js → chunk-PXLDGKC4.js} +2 -2
- 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-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-U2XXWBAJ.js → chunk-SK3C6ZOZ.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-ZUKUDAXO.js → chunk-TMIKWYU6.js} +2 -2
- package/__chunks__/chunk-TQPEOA25.js +2 -0
- package/__chunks__/{chunk-ZETCVO2R.js → chunk-TR2J6DEL.js} +2 -2
- package/__chunks__/{chunk-PKNLHLMK.js → chunk-TU5N4L3F.js} +2 -2
- package/__chunks__/{chunk-B4AJMI3T.js → chunk-TWBQ7KS3.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-CB3TM7NC.js → chunk-UJNUZKVY.js} +2 -2
- package/__chunks__/{chunk-WL5XAOJQ.js → chunk-UNC4ZPZ7.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-VMD67BF6.js +2 -0
- package/__chunks__/{chunk-JJ5TU65J.js → chunk-VXWN2IY4.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-V2L6I47E.js → chunk-XW22FF2X.js} +2 -2
- package/__chunks__/chunk-XWZAWT7G.js +2 -0
- package/__chunks__/{chunk-QX22NYVR.js → chunk-Y3NLPZAR.js} +2 -2
- package/__chunks__/{chunk-RULY5VOQ.js → chunk-YB4BVMRP.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-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-TRBGUYRQ.js → chunk-ZERBKBEF.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-IJJ232SS.js → chunk-ZXAUVMQ6.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/getLatestBlockHash.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/getLatestBlockHash.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-7AMV6USN.js +0 -2
- package/__chunks__/chunk-AFAUYTFM.js +0 -2
- package/__chunks__/chunk-AZVCA6PP.js +0 -2
- package/__chunks__/chunk-B4D6WVTB.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-EZOGNXLH.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-NLB665WA.js +0 -2
- package/__chunks__/chunk-OQLWGB56.js +0 -2
- package/__chunks__/chunk-P44CM6L4.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 di=Object.create;var be=Object.defineProperty,gi=Object.defineProperties,mi=Object.getOwnPropertyDescriptor,fi=Object.getOwnPropertyDescriptors,Ti=Object.getOwnPropertyNames,Fe=Object.getOwnPropertySymbols,yi=Object.getPrototypeOf,Et=Object.prototype.hasOwnProperty,Ar=Object.prototype.propertyIsEnumerable;var vr=(e,t,r)=>t in e?be(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t)=>{for(var r in t||(t={}))Et.call(t,r)&&vr(e,r,t[r]);if(Fe)for(var r of Fe(t))Ar.call(t,r)&&vr(e,r,t[r]);return e},S=(e,t)=>gi(e,fi(t));var kr=(e,t)=>{var r={};for(var n in e)Et.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Fe)for(var n of Fe(e))t.indexOf(n)<0&&Ar.call(e,n)&&(r[n]=e[n]);return r};var T=(e,t)=>()=>(e&&(t=e(e=0)),t);var Ue=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ie=(e,t)=>{for(var r in t)be(e,r,{get:t[r],enumerable:!0})},Er=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ti(t))!Et.call(e,i)&&i!==r&&be(e,i,{get:()=>t[i],enumerable:!(n=mi(t,i))||n.enumerable});return e};var k=(e,t,r)=>(r=e!=null?di(yi(e)):{},Er(t||!e||!e.__esModule?be(r,"default",{value:e,enumerable:!0}):r,e)),Ie=e=>Er(be({},"__esModule",{value:!0}),e);var me=(e,t,r)=>new Promise((n,i)=>{var l=d=>{try{g(r.next(d))}catch(f){i(f)}},p=d=>{try{g(r.throw(d))}catch(f){i(f)}},g=d=>d.done?n(d.value):Promise.resolve(d.value).then(l,p);g((r=r.apply(e,t)).next())});var Nr=Ue(Be=>{"use strict";o();Be.byteLength=xi;Be.toByteArray=wi;Be.fromByteArray=vi;var G=[],F=[],hi=typeof Uint8Array!="undefined"?Uint8Array:Array,Lt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(se=0,Lr=Lt.length;se<Lr;++se)G[se]=Lt[se],F[Lt.charCodeAt(se)]=se;var se,Lr;F["-".charCodeAt(0)]=62;F["_".charCodeAt(0)]=63;function Dr(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function xi(e){var t=Dr(e),r=t[0],n=t[1];return(r+n)*3/4-n}function Si(e,t,r){return(t+r)*3/4-r}function wi(e){var t,r=Dr(e),n=r[0],i=r[1],l=new hi(Si(e,n,i)),p=0,g=i>0?n-4:n,d;for(d=0;d<g;d+=4)t=F[e.charCodeAt(d)]<<18|F[e.charCodeAt(d+1)]<<12|F[e.charCodeAt(d+2)]<<6|F[e.charCodeAt(d+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return i===2&&(t=F[e.charCodeAt(d)]<<2|F[e.charCodeAt(d+1)]>>4,l[p++]=t&255),i===1&&(t=F[e.charCodeAt(d)]<<10|F[e.charCodeAt(d+1)]<<4|F[e.charCodeAt(d+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function bi(e){return G[e>>18&63]+G[e>>12&63]+G[e>>6&63]+G[e&63]}function Ii(e,t,r){for(var n,i=[],l=t;l<r;l+=3)n=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(e[l+2]&255),i.push(bi(n));return i.join("")}function vi(e){for(var t,r=e.length,n=r%3,i=[],l=16383,p=0,g=r-n;p<g;p+=l)i.push(Ii(e,p,p+l>g?g:p+l));return n===1?(t=e[r-1],i.push(G[t>>2]+G[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(G[t>>10]+G[t>>4&63]+G[t<<2&63]+"=")),i.join("")}});var Rr=Ue(Dt=>{o();Dt.read=function(e,t,r,n,i){var l,p,g=i*8-n-1,d=(1<<g)-1,f=d>>1,h=-7,y=r?i-1:0,w=r?-1:1,D=e[t+y];for(y+=w,l=D&(1<<-h)-1,D>>=-h,h+=g;h>0;l=l*256+e[t+y],y+=w,h-=8);for(p=l&(1<<-h)-1,l>>=-h,h+=n;h>0;p=p*256+e[t+y],y+=w,h-=8);if(l===0)l=1-f;else{if(l===d)return p?NaN:(D?-1:1)*(1/0);p=p+Math.pow(2,n),l=l-f}return(D?-1:1)*p*Math.pow(2,l-n)};Dt.write=function(e,t,r,n,i,l){var p,g,d,f=l*8-i-1,h=(1<<f)-1,y=h>>1,w=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,D=n?0:l-1,V=n?1:-1,B=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(g=isNaN(t)?1:0,p=h):(p=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-p))<1&&(p--,d*=2),p+y>=1?t+=w/d:t+=w*Math.pow(2,1-y),t*d>=2&&(p++,d/=2),p+y>=h?(g=0,p=h):p+y>=1?(g=(t*d-1)*Math.pow(2,i),p=p+y):(g=t*Math.pow(2,y-1)*Math.pow(2,i),p=0));i>=8;e[r+D]=g&255,D+=V,g/=256,i-=8);for(p=p<<i|g,f+=i;f>0;e[r+D]=p&255,D+=V,p/=256,f-=8);e[r+D-V]|=B*128}});var Hr=Ue(Te=>{"use strict";o();var Nt=Nr(),fe=Rr(),Pr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Te.Buffer=u;Te.SlowBuffer=Ni;Te.INSPECT_MAX_BYTES=50;var $e=2147483647;Te.kMaxLength=$e;u.TYPED_ARRAY_SUPPORT=Ai();!u.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Ai(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(r){return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.buffer}});Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.byteOffset}});function z(e){if(e>$e)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Mt(e)}return _r(e,t,r)}u.poolSize=8192;function _r(e,t,r){if(typeof e=="string")return Ei(e,t);if(ArrayBuffer.isView(e))return Li(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(W(e,ArrayBuffer)||e&&W(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(W(e,SharedArrayBuffer)||e&&W(e.buffer,SharedArrayBuffer)))return Pt(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return u.from(n,t,r);var i=Di(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return u.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}u.from=function(e,t,r){return _r(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function Or(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function ki(e,t,r){return Or(e),e<=0?z(e):t!==void 0?typeof r=="string"?z(e).fill(t,r):z(e).fill(t):z(e)}u.alloc=function(e,t,r){return ki(e,t,r)};function Mt(e){return Or(e),z(e<0?0:_t(e)|0)}u.allocUnsafe=function(e){return Mt(e)};u.allocUnsafeSlow=function(e){return Mt(e)};function Ei(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=Fr(e,t)|0,n=z(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function Rt(e){for(var t=e.length<0?0:_t(e.length)|0,r=z(t),n=0;n<t;n+=1)r[n]=e[n]&255;return r}function Li(e){if(W(e,Uint8Array)){var t=new Uint8Array(e);return Pt(t.buffer,t.byteOffset,t.byteLength)}return Rt(e)}function Pt(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return t===void 0&&r===void 0?n=new Uint8Array(e):r===void 0?n=new Uint8Array(e,t):n=new Uint8Array(e,t,r),Object.setPrototypeOf(n,u.prototype),n}function Di(e){if(u.isBuffer(e)){var t=_t(e.length)|0,r=z(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||Ot(e.length)?z(0):Rt(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Rt(e.data)}function _t(e){if(e>=$e)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+$e.toString(16)+" bytes");return e|0}function Ni(e){return+e!=e&&(e=0),u.alloc(+e)}u.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==u.prototype};u.compare=function(t,r){if(W(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),W(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(t)||!u.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var n=t.length,i=r.length,l=0,p=Math.min(n,i);l<p;++l)if(t[l]!==r[l]){n=t[l],i=r[l];break}return n<i?-1:i<n?1:0};u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};u.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return u.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<t.length;++n)r+=t[n].length;var i=u.allocUnsafe(r),l=0;for(n=0;n<t.length;++n){var p=t[n];if(W(p,Uint8Array))l+p.length>i.length?u.from(p).copy(i,l):Uint8Array.prototype.set.call(i,p,l);else if(u.isBuffer(p))p.copy(i,l);else throw new TypeError('"list" argument must be an Array of Buffers');l+=p.length}return i};function Fr(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||W(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Ct(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Wr(e).length;default:if(i)return n?-1:Ct(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=Fr;function Ri(e,t,r){var n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return Vi(this,t,r);case"utf8":case"utf-8":return Br(this,t,r);case"ascii":return Bi(this,t,r);case"latin1":case"binary":return $i(this,t,r);case"base64":return Fi(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Gi(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}u.prototype._isBuffer=!0;function ae(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)ae(this,r,r+1);return this};u.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)ae(this,r,r+3),ae(this,r+1,r+2);return this};u.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)ae(this,r,r+7),ae(this,r+1,r+6),ae(this,r+2,r+5),ae(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?Br(this,0,t):Ri.apply(this,arguments)};u.prototype.toLocaleString=u.prototype.toString;u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:u.compare(this,t)===0};u.prototype.inspect=function(){var t="",r=Te.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};Pr&&(u.prototype[Pr]=u.prototype.inspect);u.prototype.compare=function(t,r,n,i,l){if(W(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),l===void 0&&(l=this.length),r<0||n>t.length||i<0||l>this.length)throw new RangeError("out of range index");if(i>=l&&r>=n)return 0;if(i>=l)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,l>>>=0,this===t)return 0;for(var p=l-i,g=n-r,d=Math.min(p,g),f=this.slice(i,l),h=t.slice(r,n),y=0;y<d;++y)if(f[y]!==h[y]){p=f[y],g=h[y];break}return p<g?-1:g<p?1:0};function Ur(e,t,r,n,i){if(e.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Ot(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=u.from(t,n)),u.isBuffer(t))return t.length===0?-1:Cr(e,t,r,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):Cr(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function Cr(e,t,r,n,i){var l=1,p=e.length,g=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;l=2,p/=2,g/=2,r/=2}function d(D,V){return l===1?D[V]:D.readUInt16BE(V*l)}var f;if(i){var h=-1;for(f=r;f<p;f++)if(d(e,f)===d(t,h===-1?0:f-h)){if(h===-1&&(h=f),f-h+1===g)return h*l}else h!==-1&&(f-=f-h),h=-1}else for(r+g>p&&(r=p-g),f=r;f>=0;f--){for(var y=!0,w=0;w<g;w++)if(d(e,f+w)!==d(t,w)){y=!1;break}if(y)return f}return-1}u.prototype.includes=function(t,r,n){return this.indexOf(t,r,n)!==-1};u.prototype.indexOf=function(t,r,n){return Ur(this,t,r,n,!0)};u.prototype.lastIndexOf=function(t,r,n){return Ur(this,t,r,n,!1)};function Pi(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var l=t.length;n>l/2&&(n=l/2);for(var p=0;p<n;++p){var g=parseInt(t.substr(p*2,2),16);if(Ot(g))return p;e[r+p]=g}return p}function Ci(e,t,r,n){return Ve(Ct(t,e.length-r),e,r,n)}function Mi(e,t,r,n){return Ve(qi(t),e,r,n)}function _i(e,t,r,n){return Ve(Wr(t),e,r,n)}function Oi(e,t,r,n){return Ve(ji(t,e.length-r),e,r,n)}u.prototype.write=function(t,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 l=this.length-r;if((n===void 0||n>l)&&(n=l),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var p=!1;;)switch(i){case"hex":return Pi(this,t,r,n);case"utf8":case"utf-8":return Ci(this,t,r,n);case"ascii":case"latin1":case"binary":return Mi(this,t,r,n);case"base64":return _i(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Oi(this,t,r,n);default:if(p)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),p=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Fi(e,t,r){return t===0&&r===e.length?Nt.fromByteArray(e):Nt.fromByteArray(e.slice(t,r))}function Br(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var l=e[i],p=null,g=l>239?4:l>223?3:l>191?2:1;if(i+g<=r){var d,f,h,y;switch(g){case 1:l<128&&(p=l);break;case 2:d=e[i+1],(d&192)===128&&(y=(l&31)<<6|d&63,y>127&&(p=y));break;case 3:d=e[i+1],f=e[i+2],(d&192)===128&&(f&192)===128&&(y=(l&15)<<12|(d&63)<<6|f&63,y>2047&&(y<55296||y>57343)&&(p=y));break;case 4:d=e[i+1],f=e[i+2],h=e[i+3],(d&192)===128&&(f&192)===128&&(h&192)===128&&(y=(l&15)<<18|(d&63)<<12|(f&63)<<6|h&63,y>65535&&y<1114112&&(p=y))}}p===null?(p=65533,g=1):p>65535&&(p-=65536,n.push(p>>>10&1023|55296),p=56320|p&1023),n.push(p),i+=g}return Ui(n)}var Mr=4096;function Ui(e){var t=e.length;if(t<=Mr)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=Mr));return r}function Bi(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]&127);return n}function $i(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function Vi(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",l=t;l<r;++l)i+=zi[e[l]];return i}function Gi(e,t,r){for(var n=e.slice(t,r),i="",l=0;l<n.length-1;l+=2)i+=String.fromCharCode(n[l]+n[l+1]*256);return i}u.prototype.slice=function(t,r){var n=this.length;t=~~t,r=r===void 0?n:~~r,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<t&&(r=t);var i=this.subarray(t,r);return Object.setPrototypeOf(i,u.prototype),i};function L(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||L(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return i};u.prototype.readUintBE=u.prototype.readUIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||L(t,r,this.length);for(var i=this[t+--r],l=1;r>0&&(l*=256);)i+=this[t+--r]*l;return i};u.prototype.readUint8=u.prototype.readUInt8=function(t,r){return t=t>>>0,r||L(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||L(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||L(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||L(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||L(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};u.prototype.readIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||L(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return l*=128,i>=l&&(i-=Math.pow(2,8*r)),i};u.prototype.readIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||L(t,r,this.length);for(var i=r,l=1,p=this[t+--i];i>0&&(l*=256);)p+=this[t+--i]*l;return l*=128,p>=l&&(p-=Math.pow(2,8*r)),p};u.prototype.readInt8=function(t,r){return t=t>>>0,r||L(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||L(t,2,this.length);var n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};u.prototype.readInt16BE=function(t,r){t=t>>>0,r||L(t,2,this.length);var n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};u.prototype.readInt32LE=function(t,r){return t=t>>>0,r||L(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};u.prototype.readInt32BE=function(t,r){return t=t>>>0,r||L(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};u.prototype.readFloatLE=function(t,r){return t=t>>>0,r||L(t,4,this.length),fe.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||L(t,4,this.length),fe.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||L(t,8,this.length),fe.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||L(t,8,this.length),fe.read(this,t,!1,52,8)};function P(e,t,r,n,i,l){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<l)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){var l=Math.pow(2,8*n)-1;P(this,t,r,n,l,0)}var p=1,g=0;for(this[r]=t&255;++g<n&&(p*=256);)this[r+g]=t/p&255;return r+n};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){var l=Math.pow(2,8*n)-1;P(this,t,r,n,l,0)}var p=n-1,g=1;for(this[r+p]=t&255;--p>=0&&(g*=256);)this[r+p]=t/g&255;return r+n};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,n){return t=+t,r=r>>>0,n||P(this,t,r,1,255,0),this[r]=t&255,r+1};u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||P(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||P(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||P(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||P(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};u.prototype.writeIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*n-1);P(this,t,r,n,l-1,-l)}var p=0,g=1,d=0;for(this[r]=t&255;++p<n&&(g*=256);)t<0&&d===0&&this[r+p-1]!==0&&(d=1),this[r+p]=(t/g>>0)-d&255;return r+n};u.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*n-1);P(this,t,r,n,l-1,-l)}var p=n-1,g=1,d=0;for(this[r+p]=t&255;--p>=0&&(g*=256);)t<0&&d===0&&this[r+p+1]!==0&&(d=1),this[r+p]=(t/g>>0)-d&255;return r+n};u.prototype.writeInt8=function(t,r,n){return t=+t,r=r>>>0,n||P(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};u.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||P(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||P(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||P(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};u.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||P(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function $r(e,t,r,n,i,l){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Vr(e,t,r,n,i){return t=+t,r=r>>>0,i||$r(e,t,r,4,34028234663852886e22,-34028234663852886e22),fe.write(e,t,r,n,23,4),r+4}u.prototype.writeFloatLE=function(t,r,n){return Vr(this,t,r,!0,n)};u.prototype.writeFloatBE=function(t,r,n){return Vr(this,t,r,!1,n)};function Gr(e,t,r,n,i){return t=+t,r=r>>>0,i||$r(e,t,r,8,17976931348623157e292,-17976931348623157e292),fe.write(e,t,r,n,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,n){return Gr(this,t,r,!0,n)};u.prototype.writeDoubleBE=function(t,r,n){return Gr(this,t,r,!1,n)};u.prototype.copy=function(t,r,n,i){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<n&&(i=n),i===n||t.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),t.length-r<i-n&&(i=t.length-r+n);var l=i-n;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(t,this.subarray(n,i),r),l};u.prototype.fill=function(t,r,n,i){if(typeof t=="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"&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t.length===1){var l=t.charCodeAt(0);(i==="utf8"&&l<128||i==="latin1")&&(t=l)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,t||(t=0);var p;if(typeof t=="number")for(p=r;p<n;++p)this[p]=t;else{var g=u.isBuffer(t)?t:u.from(t,i),d=g.length;if(d===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(p=0;p<n-r;++p)this[p+r]=g[p%d]}return this};var Wi=/[^+/0-9A-Za-z-_]/g;function Hi(e){if(e=e.split("=")[0],e=e.trim().replace(Wi,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Ct(e,t){t=t||1/0;for(var r,n=e.length,i=null,l=[],p=0;p<n;++p){if(r=e.charCodeAt(p),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&l.push(239,191,189);continue}else if(p+1===n){(t-=3)>-1&&l.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&l.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&l.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;l.push(r)}else if(r<2048){if((t-=2)<0)break;l.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;l.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;l.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return l}function qi(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function ji(e,t){for(var r,n,i,l=[],p=0;p<e.length&&!((t-=2)<0);++p)r=e.charCodeAt(p),n=r>>8,i=r%256,l.push(i),l.push(n);return l}function Wr(e){return Nt.toByteArray(Hi(e))}function Ve(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function W(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Ot(e){return e!==e}var zi=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var n=r*16,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()});var Yr=Ue((Ca,Kr)=>{o();var I=Kr.exports={},H,q;function Ft(){throw new Error("setTimeout has not been defined")}function Ut(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?H=setTimeout:H=Ft}catch(e){H=Ft}try{typeof clearTimeout=="function"?q=clearTimeout:q=Ut}catch(e){q=Ut}})();function qr(e){if(H===setTimeout)return setTimeout(e,0);if((H===Ft||!H)&&setTimeout)return H=setTimeout,setTimeout(e,0);try{return H(e,0)}catch(t){try{return H.call(null,e,0)}catch(r){return H.call(this,e,0)}}}function Ki(e){if(q===clearTimeout)return clearTimeout(e);if((q===Ut||!q)&&clearTimeout)return q=clearTimeout,clearTimeout(e);try{return q(e)}catch(t){try{return q.call(null,e)}catch(r){return q.call(this,e)}}}var K=[],ye=!1,ce,Ge=-1;function Yi(){!ye||!ce||(ye=!1,ce.length?K=ce.concat(K):Ge=-1,K.length&&jr())}function jr(){if(!ye){var e=qr(Yi);ye=!0;for(var t=K.length;t;){for(ce=K,K=[];++Ge<t;)ce&&ce[Ge].run();Ge=-1,t=K.length}ce=null,ye=!1,Ki(e)}}I.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];K.push(new zr(e,t)),K.length===1&&!ye&&qr(jr)};function zr(e,t){this.fun=e,this.array=t}zr.prototype.run=function(){this.fun.apply(null,this.array)};I.title="browser";I.browser=!0;I.env={};I.argv=[];I.version="";I.versions={};function Y(){}I.on=Y;I.addListener=Y;I.once=Y;I.off=Y;I.removeListener=Y;I.removeAllListeners=Y;I.emit=Y;I.prependListener=Y;I.prependOnceListener=Y;I.listeners=function(e){return[]};I.binding=function(e){throw new Error("process.binding is not supported")};I.cwd=function(){return"/"};I.chdir=function(e){throw new Error("process.chdir is not supported")};I.umask=function(){return 0}});var s,a,Ma,o=T(()=>{s=k(Hr()),a=k(Yr()),Ma=function(e){function t(){var n=this||self;return delete e.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return t();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:t});var r=__magic__;return r}(Object)});var Bt,ve,$t,Zr=T(()=>{"use strict";o();Bt="error when signing",ve="cancelled",$t="provider not initialized"});var Vt,Xr=T(()=>{"use strict";o();Vt=(n=>(n.signature="signature",n.sessionId="sessionId",n.status="status",n))(Vt||{})});var Qr=T(()=>{"use strict";o()});var Jr=T(()=>{"use strict";o()});var $=T(()=>{"use strict";o()});var en=T(()=>{"use strict";o()});var tn=T(()=>{"use strict";o()});var C=T(()=>{"use strict";o()});var rn=T(()=>{"use strict";o()});var nn=T(()=>{"use strict";o()});var M=T(()=>{"use strict";o();Xr();Qr();Jr();$();en();tn();C();rn();nn()});var Gt,on,Ja,sn,ec,an,tc,rc,nc,cn=T(()=>{"use strict";o();M();Gt={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:on,egldLabel:Ja}=Gt["devnet"],{chainId:sn,egldLabel:ec}=Gt["testnet"],{chainId:an,egldLabel:tc}=Gt["mainnet"],rc={["devnet"]:on,["testnet"]:sn,["mainnet"]:an},nc={[on]:"devnet",[sn]:"testnet",[an]:"mainnet"}});var Wt=T(()=>{"use strict";o()});var ln=T(()=>{"use strict";o()});var pn,Ht=T(()=>{"use strict";o();pn="transaction-status-toast-id"});var j,un=T(()=>{"use strict";o();j=require("@multiversx/sdk-web-wallet-provider")});var qt,jt,dn,We,gn,he,v=T(()=>{"use strict";o();Zr();cn();Wt();ln();Ht();un();qt=5e4,jt=1e9,dn=1,We="logout",gn="login",he="0"});var He,zt=T(()=>{"use strict";o();He=()=>Date.now()/1e3});var mn=T(()=>{"use strict";o()});var fn=T(()=>{"use strict";o()});var Tn=T(()=>{"use strict";o();zt();mn();fn()});var Yt={};ie(Yt,{getItem:()=>Xi,localStorageKeys:()=>le,removeItem:()=>Qi,setItem:()=>Zi});var le,Kt,Zi,Xi,Qi,Ae=T(()=>{"use strict";o();Tn();le={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},Kt=typeof localStorage!="undefined",Zi=({key:e,data:t,expires:r})=>{!Kt||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Xi=e=>{if(!Kt)return;let t=localStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:He()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},Qi=e=>{!Kt||localStorage.removeItem(String(e))}});var Zt={};ie(Zt,{clear:()=>Sn,getItem:()=>hn,removeItem:()=>xn,setItem:()=>yn,storage:()=>Ji});var yn,hn,xn,Sn,Ji,wn=T(()=>{"use strict";o();yn=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},hn=e=>{let t=sessionStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Date.now()>=r.expires?(sessionStorage.removeItem(String(e)),null):r.data},xn=e=>sessionStorage.removeItem(String(e)),Sn=()=>sessionStorage.clear(),Ji={setItem:yn,getItem:hn,removeItem:xn,clear:Sn}});var xe,qe=T(()=>{"use strict";o();Ae();wn();xe={session:Zt,local:Yt}});var Xt,N,je,Z=T(()=>{"use strict";o();Xt=require("@reduxjs/toolkit");v();N=(0,Xt.createAction)(We),je=(0,Xt.createAction)(gn,e=>({payload:e}))});var Jt,bn,In,ze,Qt,vn,An,Cc,kn,Mc,_c,Oc,Fc,Uc,Bc,$c,Ke,Ye=T(()=>{"use strict";o();Jt=require("@multiversx/sdk-core"),bn=require("@reduxjs/toolkit"),In=require("redux-persist");v();qe();Ae();Z();ze={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:he},Qt={address:"",websocketEvent:null,accounts:{"":ze},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},vn=(0,bn.createSlice)({name:"accountInfoSlice",initialState:Qt,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new Jt.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:ze},e.shard=t.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,t)=>{let{address:r}=e;e.accounts[r].nonce=t.payload},setAccountShard:(e,t)=>{e.shard=t.payload},setLedgerAccount:(e,t)=>{e.ledgerAccount=t.payload},updateLedgerAccount:(e,t)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=t.payload.index,e.ledgerAccount.address=t.payload.address)},setWalletConnectAccount:(e,t)=>{e.walletConnectAccount=t.payload},setIsAccountLoading:(e,t)=>{e.isAccountLoading=t.payload,e.accountLoadingError=null},setAccountLoadingError:(e,t)=>{e.accountLoadingError=t.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,t)=>{e.websocketEvent={timestamp:Date.now(),message:t.payload}}},extraReducers:e=>{e.addCase(N,()=>(xe.local.removeItem(le.loginExpiresAt),Qt)),e.addCase(je,(t,r)=>{let{address:n}=r.payload;t.address=n,t.publicKey=new Jt.Address(n).hex()}),e.addCase(In.REHYDRATE,(t,r)=>{var f;if(!((f=r.payload)!=null&&f.account))return;let{account:n}=r.payload,{address:i,shard:l,accounts:p,publicKey:g}=n;t.address=i,t.shard=l;let d=p&&i in p;t.accounts=d?p:Qt.accounts,t.publicKey=g})}}),{setAccount:An,setAddress:Cc,setAccountNonce:kn,setAccountShard:Mc,setLedgerAccount:_c,updateLedgerAccount:Oc,setWalletConnectAccount:Fc,setIsAccountLoading:Uc,setAccountLoadingError:Bc,setWebsocketEvent:$c}=vn.actions,Ke=vn.reducer});function ke(){return new Date().setHours(new Date().getHours()+24)}function Ee(e){xe.local.setItem({key:le.loginExpiresAt,data:e,expires:e})}var er=T(()=>{"use strict";o();qe();Ae()});var Ln,En,Dn,Zc,Xc,Qc,Jc,el,tl,Nn,rl,Xe,Qe=T(()=>{"use strict";o();Ln=require("@reduxjs/toolkit");er();$();Z();En={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},Dn=(0,Ln.createSlice)({name:"loginInfoSlice",initialState:En,reducers:{setLoginMethod:(e,t)=>{e.loginMethod=t.payload},setTokenLogin:(e,t)=>{e.tokenLogin=t.payload},setTokenLoginSignature:(e,t)=>{(e==null?void 0:e.tokenLogin)!=null&&(e.tokenLogin.signature=t.payload)},setWalletLogin:(e,t)=>{e.walletLogin=t.payload},setWalletConnectLogin:(e,t)=>{e.walletConnectLogin=t.payload},setLedgerLogin:(e,t)=>{e.ledgerLogin=t.payload},invalidateLoginSession:e=>{e.isLoginSessionInvalid=!0},setLogoutRoute:(e,t)=>{e.logoutRoute=t.payload}},extraReducers:e=>{e.addCase(N,()=>En),e.addCase(je,(t,r)=>{t.loginMethod=r.payload.loginMethod,Ee(ke())})}}),{setLoginMethod:Zc,setWalletConnectLogin:Xc,setLedgerLogin:Qc,setTokenLogin:Jc,setTokenLoginSignature:el,setWalletLogin:tl,invalidateLoginSession:Nn,setLogoutRoute:rl}=Dn.actions,Xe=Dn.reducer});var Pn,Rn,Cn,sl,al,cl,ll,Je,et=T(()=>{"use strict";o();Pn=require("@reduxjs/toolkit");Z();Rn={},Cn=(0,Pn.createSlice)({name:"modalsSlice",initialState:Rn,reducers:{setTxSubmittedModal:(e,t)=>{e.txSubmittedModal=t.payload},setNotificationModal:(e,t)=>{e.notificationModal=t.payload},clearTxSubmittedModal:e=>{e.txSubmittedModal=void 0},clearNotificationModal:e=>{e.notificationModal=void 0}},extraReducers:e=>{e.addCase(N,()=>Rn)}}),{setTxSubmittedModal:sl,setNotificationModal:al,clearTxSubmittedModal:cl,clearNotificationModal:ll}=Cn.actions,Je=Cn.reducer});var Mn=T(()=>{"use strict";o()});var _n=T(()=>{"use strict";o();Mn()});function tr(e){return e[Math.floor(Math.random()*e.length)]}var On=T(()=>{"use strict";o()});var Fn=T(()=>{"use strict";o();Wt()});var Un=T(()=>{"use strict";o();_n();On();Fn()});var Bn,$n,rr,es,Vn,Al,kl,tt,rt=T(()=>{"use strict";o();Bn=require("@reduxjs/toolkit"),$n=k(require("lodash.omit"));Un();rr={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},es={network:rr,chainID:"-1"},Vn=(0,Bn.createSlice)({name:"appConfig",initialState:es,reducers:{initializeNetworkConfig:(e,t)=>{let r=tr(t.payload.walletConnectBridgeAddresses),n=tr(t.payload.walletConnectV2RelayAddresses),i=(0,$n.default)(t.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=S(x(x({},e.network),i),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:n})},setChainID:(e,t)=>{e.chainID=t.payload}}}),{initializeNetworkConfig:Al,setChainID:kl}=Vn.actions,tt=Vn.reducer});var Gn,nr,Wn,Le,Hn,or,nt,ot=T(()=>{"use strict";o();Gn=require("@reduxjs/toolkit");M();Z();nr={isSigning:!1,signedSessions:{}},Wn=(0,Gn.createSlice)({name:"signedMessageInfoSliceState",initialState:nr,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:n,errorMessage:i}=t.payload;return S(x({},e),{errorMessage:i!=null?i:e.errorMessage,isSigning:n.status==="pending",signedSessions:S(x({},e.signedSessions),{[r]:n})})},setSignSessionState:(e,t)=>x(x({},e),t.payload),clearSignedMessageInfo:()=>nr},extraReducers:e=>{e.addCase(N,()=>nr)}}),{setSignSession:Le,clearSignedMessageInfo:Hn,setSignSessionState:or}=Wn.actions,nt=Wn.reducer});var jn,zn,qn,Kn,Ul,Bl,$l,Vl,Gl,Wl,it,st=T(()=>{"use strict";o();jn=require("@reduxjs/toolkit"),zn=require("redux-persist");Ht();M();zt();Z();qn={customToasts:[],transactionToasts:[],failTransactionToast:null},Kn=(0,jn.createSlice)({name:"toastsSlice",initialState:qn,reducers:{addCustomToast:(e,t)=>{e.customToasts.push(S(x({},t.payload),{type:"custom",toastId:t.payload.toastId||`custom-toast-${e.customToasts.length+1}`}))},removeCustomToast:(e,t)=>{e.customToasts=e.customToasts.filter(r=>r.toastId!==t.payload)},addTransactionToast:(e,t)=>{e.transactionToasts.push({type:"transaction",startTimestamp:He(),toastId:t.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,t)=>{e.transactionToasts=e.transactionToasts.filter(r=>r.toastId!==t.payload)},addFailTransactionToast:(e,t)=>{e.failTransactionToast=S(x({},t.payload),{toastId:pn})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(N,()=>qn),e.addCase(zn.REHYDRATE,(t,r)=>{var i,l;let n=(l=(i=r.customToasts)==null?void 0:i.filter(p=>!("component"in p)))!=null?l:[];t.customToasts=n})}}),{addCustomToast:Ul,removeCustomToast:Bl,addTransactionToast:$l,removeTransactionToast:Vl,addFailTransactionToast:Gl,removeFailTransactionToast:Wl}=Kn.actions,it=Kn.reducer});var Yn,sr,ar,cr,rs,ir,Zn,zl,Kl,Yl,at,ct=T(()=>{"use strict";o();Yn=require("@reduxjs/toolkit");Z();sr="Transaction failed",ar="Transaction successful",cr="Processing transaction",rs="Transaction submitted",ir={},Zn=(0,Yn.createSlice)({name:"transactionsInfo",initialState:ir,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:n}=t.payload;r!=null&&(e[r]={errorMessage:(n==null?void 0:n.errorMessage)||sr,successMessage:(n==null?void 0:n.successMessage)||ar,processingMessage:(n==null?void 0:n.processingMessage)||cr,submittedMessage:(n==null?void 0:n.submittedMessage)||rs,transactionDuration:n==null?void 0:n.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>ir},extraReducers:e=>{e.addCase(N,()=>ir)}}),{clearTransactionsInfo:zl,setTransactionsDisplayInfo:Kl,clearTransactionsInfoForSessionId:Yl}=Zn.actions,at=Zn.reducer});function Xn(e){return e!=null&&(us(e)||fs(e))}function lt(e){return e!=null&&(ds(e)||Ts(e))}function pt(e){return e!=null&&(gs(e)||ys(e))}function Qn(e){return e!=null&&ms(e)}function us(e){return e!=null&&os.includes(e)}function ds(e){return e!=null&&is.includes(e)}function gs(e){return e!=null&&ss.includes(e)}function ms(e){return e!=null&&as.includes(e)}function fs(e){return e!=null&&cs.includes(e)}function Ts(e){return e!=null&&ls.includes(e)}function ys(e){return e!=null&&ps.includes(e)}var os,is,ss,as,cs,ls,ps,pr=T(()=>{"use strict";o();$();os=["sent"],is=["success"],ss=["fail","cancelled","timedOut"],as=["timedOut"],cs=["pending"],ls=["success"],ps=["fail","invalid"]});var Jn,eo,De,hs,to,op,ip,sp,ap,cp,lp,pp,up,dp,gp,ut,dt=T(()=>{"use strict";o();Jn=require("@reduxjs/toolkit"),eo=require("redux-persist");$();pr();Z();De={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},hs={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},to=(0,Jn.createSlice)({name:"transactionsSlice",initialState:De,reducers:{moveTransactionsToSignedState:(e,t)=>{var d,f;let{sessionId:r,transactions:n,errorMessage:i,status:l,redirectRoute:p}=t.payload,g=((d=e.customTransactionInformationForSessionId)==null?void 0:d[r])||hs;e.signedTransactions[r]={transactions:n,status:l,errorMessage:i,redirectRoute:p,customTransactionInformation:g},((f=e==null?void 0:e.transactionsToSign)==null?void 0:f.sessionId)===r&&(e.transactionsToSign=De.transactionsToSign)},clearSignedTransaction:(e,t)=>{e.signedTransactions[t.payload]&&delete e.signedTransactions[t.payload]},clearTransactionToSign:e=>{e!=null&&e.transactionsToSign&&(e.transactionsToSign=null)},updateSignedTransaction:(e,t)=>{e.signedTransactions=x(x({},e.signedTransactions),t.payload)},updateSignedTransactions:(e,t)=>{let{sessionId:r,status:n,errorMessage:i,transactions:l}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].status=n,i!=null&&(e.signedTransactions[r].errorMessage=i),l!=null&&(e.signedTransactions[r].transactions=l))},updateSignedTransactionStatus:(e,t)=>{var g,d,f,h,y,w;let{sessionId:r,status:n,errorMessage:i,transactionHash:l}=t.payload,p=(d=(g=e.signedTransactions)==null?void 0:g[r])==null?void 0:d.transactions;if(p!=null){e.signedTransactions[r].transactions=p.map(B=>B.hash===l?S(x({},B),{status:n,errorMessage:i}):B);let D=(h=(f=e.signedTransactions[r])==null?void 0:f.transactions)==null?void 0:h.every(B=>lt(B.status)),V=(w=(y=e.signedTransactions[r])==null?void 0:y.transactions)==null?void 0:w.every(B=>pt(B.status));D&&(e.signedTransactions[r].status="success"),V&&(e.signedTransactions[r].status="fail")}},setTransactionsToSign:(e,t)=>{e.transactionsToSign=t.payload;let{sessionId:r,customTransactionInformation:n}=t.payload;e.customTransactionInformationForSessionId[r]=n,e.signTransactionsError=null},clearAllTransactionsToSign:e=>{e.transactionsToSign=De.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=De.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload}},extraReducers:e=>{e.addCase(N,()=>De),e.addCase(eo.REHYDRATE,(t,r)=>{var p;if(t.signTransactionsCancelMessage=null,!((p=r.payload)!=null&&p.transactions))return;let{signedTransactions:n,customTransactionInformationForSessionId:i}=r.payload.transactions,l=Object.entries(n).reduce((g,[d,f])=>{let h=new Date(d),y=new Date;return y.setHours(y.getHours()+5),y-h>0||(g[d]=f),g},{});i!=null&&(t.customTransactionInformationForSessionId=i),n!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:op,updateSignedTransactions:ip,setTransactionsToSign:sp,clearAllTransactionsToSign:ap,clearAllSignedTransactions:cp,clearSignedTransaction:lp,clearTransactionToSign:pp,setSignTransactionsError:up,setSignTransactionsCancelMessage:dp,moveTransactionsToSignedState:gp}=to.actions,ut=to.reducer});var pe=T(()=>{"use strict";o();Ye();Qe();et();rt();ot();st();ct();dt()});var ur=T(()=>{"use strict";o()});var so,io,ao,Fp,Up,Bp,$p,Vp,Gp,co,lo=T(()=>{"use strict";o();so=require("@reduxjs/toolkit");Z();io={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},ao=(0,so.createSlice)({name:"dappModalsSlice",initialState:io,reducers:{setDappModalVisibility:(e,t)=>{e.visible=t.payload},setDappModalHeaderVisibility:(e,t)=>{e.modal.showHeader=t.payload},setDappModalFooterVisibility:(e,t)=>{e.modal.showFooter=t.payload},setDappModalHeaderText:(e,t)=>{e.modal.headerText=t.payload},setDappModalFooterText:(e,t)=>{e.modal.footerText=t.payload},setDappModalConfig:(e,t)=>{e.modal=x({},t.payload)}},extraReducers:e=>{e.addCase(N,()=>io)}}),{setDappModalVisibility:Fp,setDappModalHeaderVisibility:Up,setDappModalFooterVisibility:Bp,setDappModalHeaderText:$p,setDappModalFooterText:Vp,setDappModalConfig:Gp}=ao.actions,co=ao.reducer});var po,bs,Is,ue,yt=T(()=>{"use strict";o();po=require("@reduxjs/toolkit");ur();Ye();lo();Qe();et();rt();ot();st();ct();dt();bs={["account"]:Ke,["dappModal"]:co,["loginInfo"]:Xe,["modals"]:Je,["networkConfig"]:tt,["signedMessageInfo"]:nt,["toasts"]:it,["transactionsInfo"]:at,["transactions"]:ut},Is=(e={})=>(0,po.combineReducers)(x(x({},bs),e)),ue=Is});var fo={};ie(fo,{default:()=>Us,sessionStorageReducers:()=>dr});function te(e,t=[]){return{key:e,version:1,storage:go.default,blacklist:t}}var _,uo,go,vs,Ne,As,ks,Es,Ls,Ds,Ns,Rs,Ps,Cs,mo,Ms,dr,_s,Os,Fs,Us,To=T(()=>{"use strict";o();_=require("redux-persist"),uo=k(require("redux-persist/lib/storage")),go=k(require("redux-persist/lib/storage/session"));yt();pe();Ye();Qe();et();rt();ot();st();ct();dt();ur();vs={persistReducersStorageType:"localStorage"},Ne={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},As=te(Ne["account"]),ks=te(Ne["loginInfo"]),Es=te(Ne["modals"]),Ls=te(Ne["networkConfig"]),Ds={2:e=>S(x({},e),{networkConfig:rr})};Ns=te("sdk-dapp-transactionsInfo"),Rs=te("sdk-dapp-transactions",["transactionsToSign"]),Ps=te("sdk-dapp-toasts"),Cs=te("sdk-dapp-signedMessageInfo"),mo={key:"sdk-dapp-store",version:2,storage:uo.default,whitelist:Object.keys(Ne),migrate:(0,_.createMigrate)(Ds,{debug:!1})},Ms=S(x({},mo),{whitelist:[]}),dr={["toasts"]:(0,_.persistReducer)(Ps,it),["transactions"]:(0,_.persistReducer)(Rs,ut),["transactionsInfo"]:(0,_.persistReducer)(Ns,at),["signedMessageInfo"]:(0,_.persistReducer)(Cs,nt)},_s=S(x({},dr),{["account"]:(0,_.persistReducer)(As,Ke),["loginInfo"]:(0,_.persistReducer)(ks,Xe),["modals"]:(0,_.persistReducer)(Es,Je),["networkConfig"]:(0,_.persistReducer)(Ls,tt)}),Os=vs.persistReducersStorageType==="localStorage",Fs=Os?(0,_.persistReducer)(mo,ue(dr)):(0,_.persistReducer)(Ms,ue(_s)),Us=Fs});var yo={};ie(yo,{default:()=>Bs});var Bs,ho=T(()=>{"use strict";o();yt();Bs=ue()});var xo={};ie(xo,{default:()=>Vs});var U,$s,Vs,So=T(()=>{"use strict";o();U=require("redux-persist"),$s=[U.FLUSH,U.REHYDRATE,U.PAUSE,U.PERSIST,U.PURGE,U.REGISTER],Vs=$s});var Io={};ie(Io,{default:()=>bo});function bo(e){return(0,wo.persistStore)(e)}var wo,vo=T(()=>{"use strict";o();wo=require("redux-persist")});var La={};ie(La,{useGetLastSignedMessageSession:()=>Ia,useGetSignMessageInfoStatus:()=>br,useGetSignMessageSession:()=>va,useSignMessage:()=>ka,useVerifyMessage:()=>Ea});module.exports=Ie(La);o();o();o();var No=require("react"),Se=require("react-redux");o();var gr=require("@reduxjs/toolkit"),Lo=require("react-redux/lib/utils/Subscription");pe();o();var no=k(require("lodash.throttle"));v();o();var ro=k(require("lodash.isequal")),gt=require("reselect");M();var m=(0,gt.createSelectorCreator)(gt.defaultMemoize,ro.default),mt=(e,t)=>e!=""&&Boolean(t);pe();er();qe();Ae();var xs=[We],ft=!1,Ss=(0,no.default)(()=>{Ee(ke())},5e3),oo=e=>t=>r=>{var d;if(xs.includes(r.type))return t(r);let n=e.getState(),i=xe.local.getItem(le.loginExpiresAt);if(!mt((d=n==null?void 0:n.loginInfo)==null?void 0:d.loginMethod,n==null?void 0:n.account.address))return t(r);if(i==null)return Ee(ke());let p=Date.now();return i-p<0&&!ft?setTimeout(()=>{ft=!0,e.dispatch(Nn())},1e3):(ft&&(ft=!1),Ss()),t(r)};o();o();function Tt(){return typeof sessionStorage!="undefined"}var Ao=Tt()?(To(),Ie(fo)).default:(ho(),Ie(yo)).default,ko=Tt()?(So(),Ie(xo)).default:[],Eo=Tt()?(vo(),Ie(Io)).default:e=>e;yt();var re=(0,gr.configureStore)({reducer:Ao,middleware:e=>e({serializableCheck:{ignoredActions:[...ko,kn.type,An.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(oo)}),Do=(0,Lo.createSubscription)(re),xu=Eo(re),Su=(0,gr.configureStore)({reducer:ue});var Gs={store:re,subscription:Do},mr=(0,No.createContext)(Gs),vu=(0,Se.createStoreHook)(mr),Ro=(0,Se.createDispatchHook)(mr),X=(0,Se.createSelectorHook)(mr);o();o();pe();var Q=e=>e.account,Re=m(Q,e=>e.address),fr=m(Q,Re,(e,t)=>t in e.accounts?e.accounts[t]:ze),Lu=m(Q,fr,(e,t)=>{let i=e,{accounts:r}=i,n=kr(i,["accounts"]);return S(x({},n),{account:t})}),Du=m(fr,e=>e.balance),Nu=m(fr,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),Ru=m(Q,e=>e.shard),Pu=m(Q,e=>e.ledgerAccount),Cu=m(Q,e=>e.walletConnectAccount),Mu=m(Q,e=>e.isAccountLoading),_u=m(Q,e=>e.accountLoadingError),Ou=m(Q,e=>e.websocketEvent);o();var ne=e=>e.loginInfo,$u=m(ne,e=>e.loginMethod),Po=m(ne,Re,(e,t)=>mt(e.loginMethod,t)),Vu=m(ne,e=>e.walletConnectLogin),Gu=m(ne,e=>e.ledgerLogin),Co=m(ne,e=>e.walletLogin),Wu=m(ne,e=>e.isLoginSessionInvalid),Hu=m(ne,e=>e.tokenLogin),qu=m(ne,e=>e.logoutRoute);o();var Mo=e=>e.modals,Ku=m(Mo,e=>e.txSubmittedModal),Yu=m(Mo,e=>e.notificationModal);o();var de=e=>e.networkConfig,Qu=m(de,e=>e.chainID),Ju=m(de,e=>e.network.walletConnectBridgeAddress),ed=m(de,e=>e.network.walletConnectV2RelayAddress),td=m(de,e=>e.network.walletConnectV2ProjectId),rd=m(de,e=>e.network.walletConnectV2Options),nd=m(de,e=>e.network.walletConnectDeepLink),Tr=m(de,e=>e.network),od=m(Tr,e=>e.apiAddress),_o=m(Tr,e=>e.explorerAddress),id=m(Tr,e=>e.egldLabel);o();var ge=e=>e.signedMessageInfo,Oo=m(ge,e=>e.isSigning),Fo=m(ge,e=>e.errorMessage),Uo=m(ge,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]});o();var yr=e=>e.toasts,pd=m(yr,e=>e.customToasts),ud=m(yr,e=>e.transactionToasts),dd=m(yr,e=>e.failTransactionToast);o();pe();var Bo={errorMessage:sr,successMessage:ar,processingMessage:cr},Ws=e=>e.transactionsInfo,Td=m(Ws,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||Bo);o();o();var O=require("@multiversx/sdk-core");v();o();function hr(e){try{return s.Buffer.from(e,"base64").toString()===atob(e)}catch(t){return!1}}function xr(e){var i,l,p;let{data:t}=e,r=hr(t!=null?t:"")?O.TransactionPayload.fromEncoded(t):new O.TransactionPayload(t),n=new O.Transaction(x({value:e.value.valueOf(),data:r,nonce:e.nonce.valueOf(),receiver:new O.Address(e.receiver),sender:new O.Address(e.sender),gasLimit:(i=e.gasLimit.valueOf())!=null?i:qt,gasPrice:(l=e.gasPrice.valueOf())!=null?l:jt,chainID:e.chainID.valueOf(),version:new O.TransactionVersion((p=e.version)!=null?p:dn)},e.options?{options:new O.TransactionOptions(e.options)}:{}));return n.applySignature({hex:()=>e.signature||""},new O.Address(e.sender)),n}o();pr();o();var qs=k(require("bignumber.js"));M();o();o();o();o();var zs=require("@multiversx/sdk-core"),Ks=k(require("bignumber.js"));$();o();var Go=require("@multiversx/sdk-core");function js(e){try{let t=new Go.Address(e);return Boolean(t.bech32())}catch(t){return!1}}function Pe(e){return(e==null?void 0:e.startsWith("erd"))&&e.length===62&&/^\w+$/.test(e)&&js(e)}o();o();o();var Zs=require("@multiversx/sdk-core/out");o();v();o();var Wo=require("@multiversx/sdk-core");M();o();o();o();o();$();o();o();o();o();o();o();o();o();o();o();o();C();o();o();C();o();o();o();var ra=k(require("bignumber.js"));v();o();var ta=require("@multiversx/sdk-core"),Sr=k(require("bignumber.js"));v();o();var Js=k(require("bignumber.js"));o();Sr.default.config({ROUNDING_MODE:Sr.default.ROUND_FLOOR});o();o();o();v();o();o();o();o();v();o();v();o();var na=require("@multiversx/sdk-core");v();o();var Ce=require("@multiversx/sdk-core"),ia=require("@multiversx/sdk-network-providers");v();o();o();var oa=k(require("bignumber.js"));v();o();v();o();o();o();o();o();v();o();C();var aa=["reDelegateRewards","claimRewards","unBond"],ca=["wrapEgld","unwrapEgld"],la=["unStake"],pa=["unDelegate"];o();o();o();v();o();var ga=k(require("bignumber.js"));o();o();o();o();C();o();var ma=k(require("bignumber.js"));o();o();o();o();C();o();o();o();var Ta=k(require("linkifyjs"));o();v();o();var ya=k(require("bignumber.js"));o();M();o();o();$();o();$();o();o();o();C();o();C();o();var ha=k(require("bignumber.js"));v();C();o();C();o();var Ko=require("react");M();o();o();C();o();o();var xa=require("@multiversx/sdk-core/out"),Sa=k(require("bignumber.js"));C();o();M();o();o();M();var nh=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];o();var Yo=require("react");M();o();var ba=require("react");C();var ph=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];var wt=e=>e.transactions,Me=m(wt,e=>e.signedTransactions),Kh=m(wt,e=>e.signTransactionsError),Yh=m(wt,e=>e.signTransactionsCancelMessage),bt=e=>t=>Object.entries(t).reduce((r,[n,i])=>(e(i.status)&&(r[n]=i),r),{}),Zh=m(Me,bt(Xn)),Xh=m(Me,bt(lt)),Qh=m(Me,bt(pt)),Jh=m(Me,bt(Qn)),ex=m(wt,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:S(x({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>xr(r)))||[]})}),tx=m(Me,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});var Ia=()=>X(Uo);o();var va=e=>{let t=X(ge);if(!!e)return t.signedSessions[e]};o();var br=()=>{let e=X(Oo),t=X(Fo);return{isPending:e,errorMessage:t}};o();var we=require("react");v();o();o();o();o();var Zo=require("@multiversx/sdk-extension-provider"),Xo=require("@multiversx/sdk-hw-provider"),Qo=require("@multiversx/sdk-opera-provider"),Jo=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider"),ei=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider"),ti=require("@multiversx/sdk-web-wallet-provider");v();$();var vt=e=>{switch(e==null?void 0:e.constructor){case ti.WalletProvider:return"wallet";case Jo.WalletConnectProvider:return"walletconnect";case ei.WalletConnectV2Provider:return"walletconnectv2";case Xo.HWProvider:return"ledger";case Zo.ExtensionProvider:return"extension";case Qo.OperaProvider:return"opera";case It:return"";default:return"extra"}};var J=e=>`Unable to perform ${e}, Provider not initialized`,It=class{init(){return Promise.resolve(!1)}login(t){throw new Error(J(`login with options: ${t}`))}logout(t){throw new Error(J(`logout with options: ${t}`))}getAddress(){throw new Error(J("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(t,r){throw new Error(J(`sendTransaction with transactions: ${t} options: ${r}`))}signTransaction(t,r){throw new Error(J(`signTransaction with transactions: ${t} options: ${r}`))}signTransactions(t,r){throw new Error(J(`signTransactions with transactions: ${t} options: ${r}`))}signMessage(t,r){throw new Error(J(`signTransactions with ${t} and options ${r}`))}sendCustomMessage({method:t,params:r}){throw new Error(J(`sendCustomMessage with method: ${t} params: ${r}`))}sendCustomRequest(t){throw new Error(J(`sendSessionEvent with options: ${t}`))}ping(){return Promise.resolve(!1)}},Ir=new It;var Aa=Ir;function ee(){return Aa||Ir}var ri=()=>{let e=ee(),t=vt(e);return{provider:e,providerType:t}};pe();M();o();var At=require("@multiversx/sdk-core");o();$();o();o();function ni(){let e=ee();return vt(e)}function _e(e){return ni()===e}function oi(){let{search:e}=window.location,t=re.getState(),r=ee(),n=Re(t),i=Po(t),l=Co(t);if(!r)throw"provider not initialized";return _e("ledger")&&i?new Promise(p=>{p(n)}):!_e("")&&!_e("wallet")&&!_e("extra")?r.getAddress():new Promise(p=>{if(l!=null){let g=new URLSearchParams(e),d=Object.fromEntries(g);Pe(d.address)&&p(d.address)}i&&p(n),p("")})}var ii=r=>me(void 0,[r],function*({message:e,callbackRoute:t}){let n=yield oi(),i=ee(),l=`${window.location.origin}${t}`,p=new At.SignableMessage({address:new At.Address(n),message:s.Buffer.from(e,"ascii")});return yield i.signMessage(p,{callbackUrl:encodeURIComponent(l)})});o();o();var si=e=>{let t=new URLSearchParams(e).toString(),{pathname:r}=window.location,n=t?`?${t}`:"",i=r?`${r}${n}`:"./";setTimeout(()=>{window.history.replaceState({},document==null?void 0:document.title,i)})};var ai=e=>{var n;let t={};if((n=window==null?void 0:window.location)!=null&&n.search){let i=new URLSearchParams(window.location.search);t=Object.fromEntries(i)}let r={};return e.forEach(i=>{r[i]=t[i],delete t[i]}),{remainingParams:r,clearNavigationHistory:()=>si(t)}};var ka=()=>{let e=Ro(),[t,r]=(0,we.useState)(""),i=X(ge).signedSessions[t],{isPending:l,errorMessage:p}=br(),{search:g}=window.location,{provider:d,providerType:f}=ri(),h=f==="wallet",y=()=>{e(Hn())},w=({callbackRoute:A,errorMessage:E=ve})=>{let b=E.includes(ve),R=Date.now().toString();i||r(R),e(Le({errorMessage:E,sessionId:R,signedSession:{callbackUrl:A,status:b?"cancelled":"failed"}}))},D=(A,E)=>{if(!A)return"";let b=new URL(A);return b.searchParams.get("sessionId")||b.searchParams.append("sessionId",E),`${h?window.location.origin:""}${b.pathname}${b.search}`},V=()=>me(void 0,null,function*(){var A;if(!h)try{if(!(yield(A=d==null?void 0:d.init)==null?void 0:A.call(d)))throw Error($t)}catch(E){let b=(E==null?void 0:E.message)||E||$t;throw Error(b)}}),B=A=>d.signMessage(A.message,{callbackUrl:encodeURIComponent(String(A.callbackRoute))}),li=A=>me(void 0,null,function*(){let E=Date.now().toString();r(E);let b=D(A.callbackRoute,E);if(e(Le({sessionId:E,signedSession:{status:"pending",message:A.message,callbackUrl:b}})),h)return B(S(x({},A),{callbackRoute:b}));try{yield V()}catch(R){return w({errorMessage:String(R),callbackRoute:b})}try{let R=yield ii(S(x({},A),{callbackRoute:b}));return R.signature?e(Le({sessionId:E,signedSession:{status:"signed",callbackUrl:b,message:A.message,signature:R.signature.hex()}})):w({errorMessage:ve,callbackRoute:b})}catch(R){let ui=(R==null?void 0:R.message)||R||Bt;return w({errorMessage:ui,callbackRoute:b})}}),pi=()=>{if(g){let{remainingParams:{signature:A,sessionId:E,status:b},clearNavigationHistory:R}=ai(Object.values(Vt));if(!E)return;if(r(E),["cancelled","failed"].includes(b))return w({errorMessage:b==="cancelled"?ve:Bt});if(A&&b==="signed")return e(Le({sessionId:t,signedSession:{signature:A,status:b}}));R()}};return(0,we.useEffect)(()=>{pi()},[g]),(0,we.useEffect)(()=>{(l||p)&&!i&&e(or({isSigning:!1,errorMessage:""}))},[]),(0,we.useEffect)(()=>{t&&!i&&!l&&e(or({isSigning:!1,errorMessage:""}))},[t]),{onAbort:y,onCancel:w,signMessage:li,sessionId:t}};o();var Oe=require("@multiversx/sdk-core/out"),ci=require("@multiversx/sdk-core/out/signature"),kt=require("@multiversx/sdk-wallet"),Ea=()=>e=>{let{message:t,address:r,signature:n}=JSON.parse(e),i=new Oe.SignableMessage({address:new Oe.Address(r),message:s.Buffer.from(t.replace("0x",""),"hex"),signature:new ci.Signature(n)}),l=new kt.UserPublicKey(Oe.Address.fromString(r).pubkey());return new kt.UserVerifier(l).verify(i)};0&&(module.exports={useGetLastSignedMessageSession,useGetSignMessageInfoStatus,useGetSignMessageSession,useSignMessage,useVerifyMessage});
|
|
1
|
+
"use strict";var di=Object.create;var be=Object.defineProperty,gi=Object.defineProperties,mi=Object.getOwnPropertyDescriptor,fi=Object.getOwnPropertyDescriptors,Ti=Object.getOwnPropertyNames,Fe=Object.getOwnPropertySymbols,yi=Object.getPrototypeOf,Et=Object.prototype.hasOwnProperty,Ar=Object.prototype.propertyIsEnumerable;var vr=(e,t,r)=>t in e?be(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t)=>{for(var r in t||(t={}))Et.call(t,r)&&vr(e,r,t[r]);if(Fe)for(var r of Fe(t))Ar.call(t,r)&&vr(e,r,t[r]);return e},S=(e,t)=>gi(e,fi(t));var kr=(e,t)=>{var r={};for(var n in e)Et.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Fe)for(var n of Fe(e))t.indexOf(n)<0&&Ar.call(e,n)&&(r[n]=e[n]);return r};var T=(e,t)=>()=>(e&&(t=e(e=0)),t);var Ue=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ie=(e,t)=>{for(var r in t)be(e,r,{get:t[r],enumerable:!0})},Er=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ti(t))!Et.call(e,i)&&i!==r&&be(e,i,{get:()=>t[i],enumerable:!(n=mi(t,i))||n.enumerable});return e};var k=(e,t,r)=>(r=e!=null?di(yi(e)):{},Er(t||!e||!e.__esModule?be(r,"default",{value:e,enumerable:!0}):r,e)),Ie=e=>Er(be({},"__esModule",{value:!0}),e);var me=(e,t,r)=>new Promise((n,i)=>{var l=d=>{try{g(r.next(d))}catch(f){i(f)}},p=d=>{try{g(r.throw(d))}catch(f){i(f)}},g=d=>d.done?n(d.value):Promise.resolve(d.value).then(l,p);g((r=r.apply(e,t)).next())});var Nr=Ue(Be=>{"use strict";o();Be.byteLength=xi;Be.toByteArray=wi;Be.fromByteArray=vi;var G=[],F=[],hi=typeof Uint8Array!="undefined"?Uint8Array:Array,Lt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(se=0,Lr=Lt.length;se<Lr;++se)G[se]=Lt[se],F[Lt.charCodeAt(se)]=se;var se,Lr;F["-".charCodeAt(0)]=62;F["_".charCodeAt(0)]=63;function Dr(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function xi(e){var t=Dr(e),r=t[0],n=t[1];return(r+n)*3/4-n}function Si(e,t,r){return(t+r)*3/4-r}function wi(e){var t,r=Dr(e),n=r[0],i=r[1],l=new hi(Si(e,n,i)),p=0,g=i>0?n-4:n,d;for(d=0;d<g;d+=4)t=F[e.charCodeAt(d)]<<18|F[e.charCodeAt(d+1)]<<12|F[e.charCodeAt(d+2)]<<6|F[e.charCodeAt(d+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return i===2&&(t=F[e.charCodeAt(d)]<<2|F[e.charCodeAt(d+1)]>>4,l[p++]=t&255),i===1&&(t=F[e.charCodeAt(d)]<<10|F[e.charCodeAt(d+1)]<<4|F[e.charCodeAt(d+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function bi(e){return G[e>>18&63]+G[e>>12&63]+G[e>>6&63]+G[e&63]}function Ii(e,t,r){for(var n,i=[],l=t;l<r;l+=3)n=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(e[l+2]&255),i.push(bi(n));return i.join("")}function vi(e){for(var t,r=e.length,n=r%3,i=[],l=16383,p=0,g=r-n;p<g;p+=l)i.push(Ii(e,p,p+l>g?g:p+l));return n===1?(t=e[r-1],i.push(G[t>>2]+G[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(G[t>>10]+G[t>>4&63]+G[t<<2&63]+"=")),i.join("")}});var Rr=Ue(Dt=>{o();Dt.read=function(e,t,r,n,i){var l,p,g=i*8-n-1,d=(1<<g)-1,f=d>>1,h=-7,y=r?i-1:0,w=r?-1:1,D=e[t+y];for(y+=w,l=D&(1<<-h)-1,D>>=-h,h+=g;h>0;l=l*256+e[t+y],y+=w,h-=8);for(p=l&(1<<-h)-1,l>>=-h,h+=n;h>0;p=p*256+e[t+y],y+=w,h-=8);if(l===0)l=1-f;else{if(l===d)return p?NaN:(D?-1:1)*(1/0);p=p+Math.pow(2,n),l=l-f}return(D?-1:1)*p*Math.pow(2,l-n)};Dt.write=function(e,t,r,n,i,l){var p,g,d,f=l*8-i-1,h=(1<<f)-1,y=h>>1,w=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,D=n?0:l-1,V=n?1:-1,B=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(g=isNaN(t)?1:0,p=h):(p=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-p))<1&&(p--,d*=2),p+y>=1?t+=w/d:t+=w*Math.pow(2,1-y),t*d>=2&&(p++,d/=2),p+y>=h?(g=0,p=h):p+y>=1?(g=(t*d-1)*Math.pow(2,i),p=p+y):(g=t*Math.pow(2,y-1)*Math.pow(2,i),p=0));i>=8;e[r+D]=g&255,D+=V,g/=256,i-=8);for(p=p<<i|g,f+=i;f>0;e[r+D]=p&255,D+=V,p/=256,f-=8);e[r+D-V]|=B*128}});var Hr=Ue(Te=>{"use strict";o();var Nt=Nr(),fe=Rr(),Pr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Te.Buffer=u;Te.SlowBuffer=Ni;Te.INSPECT_MAX_BYTES=50;var $e=2147483647;Te.kMaxLength=$e;u.TYPED_ARRAY_SUPPORT=Ai();!u.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Ai(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(r){return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.buffer}});Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.byteOffset}});function z(e){if(e>$e)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Mt(e)}return _r(e,t,r)}u.poolSize=8192;function _r(e,t,r){if(typeof e=="string")return Ei(e,t);if(ArrayBuffer.isView(e))return Li(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(W(e,ArrayBuffer)||e&&W(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(W(e,SharedArrayBuffer)||e&&W(e.buffer,SharedArrayBuffer)))return Pt(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return u.from(n,t,r);var i=Di(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return u.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}u.from=function(e,t,r){return _r(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function Or(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function ki(e,t,r){return Or(e),e<=0?z(e):t!==void 0?typeof r=="string"?z(e).fill(t,r):z(e).fill(t):z(e)}u.alloc=function(e,t,r){return ki(e,t,r)};function Mt(e){return Or(e),z(e<0?0:_t(e)|0)}u.allocUnsafe=function(e){return Mt(e)};u.allocUnsafeSlow=function(e){return Mt(e)};function Ei(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=Fr(e,t)|0,n=z(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function Rt(e){for(var t=e.length<0?0:_t(e.length)|0,r=z(t),n=0;n<t;n+=1)r[n]=e[n]&255;return r}function Li(e){if(W(e,Uint8Array)){var t=new Uint8Array(e);return Pt(t.buffer,t.byteOffset,t.byteLength)}return Rt(e)}function Pt(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return t===void 0&&r===void 0?n=new Uint8Array(e):r===void 0?n=new Uint8Array(e,t):n=new Uint8Array(e,t,r),Object.setPrototypeOf(n,u.prototype),n}function Di(e){if(u.isBuffer(e)){var t=_t(e.length)|0,r=z(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||Ot(e.length)?z(0):Rt(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Rt(e.data)}function _t(e){if(e>=$e)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+$e.toString(16)+" bytes");return e|0}function Ni(e){return+e!=e&&(e=0),u.alloc(+e)}u.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==u.prototype};u.compare=function(t,r){if(W(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),W(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(t)||!u.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var n=t.length,i=r.length,l=0,p=Math.min(n,i);l<p;++l)if(t[l]!==r[l]){n=t[l],i=r[l];break}return n<i?-1:i<n?1:0};u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};u.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return u.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<t.length;++n)r+=t[n].length;var i=u.allocUnsafe(r),l=0;for(n=0;n<t.length;++n){var p=t[n];if(W(p,Uint8Array))l+p.length>i.length?u.from(p).copy(i,l):Uint8Array.prototype.set.call(i,p,l);else if(u.isBuffer(p))p.copy(i,l);else throw new TypeError('"list" argument must be an Array of Buffers');l+=p.length}return i};function Fr(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||W(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Ct(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Wr(e).length;default:if(i)return n?-1:Ct(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=Fr;function Ri(e,t,r){var n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return Vi(this,t,r);case"utf8":case"utf-8":return Br(this,t,r);case"ascii":return Bi(this,t,r);case"latin1":case"binary":return $i(this,t,r);case"base64":return Fi(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Gi(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}u.prototype._isBuffer=!0;function ae(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)ae(this,r,r+1);return this};u.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)ae(this,r,r+3),ae(this,r+1,r+2);return this};u.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)ae(this,r,r+7),ae(this,r+1,r+6),ae(this,r+2,r+5),ae(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?Br(this,0,t):Ri.apply(this,arguments)};u.prototype.toLocaleString=u.prototype.toString;u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:u.compare(this,t)===0};u.prototype.inspect=function(){var t="",r=Te.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};Pr&&(u.prototype[Pr]=u.prototype.inspect);u.prototype.compare=function(t,r,n,i,l){if(W(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),l===void 0&&(l=this.length),r<0||n>t.length||i<0||l>this.length)throw new RangeError("out of range index");if(i>=l&&r>=n)return 0;if(i>=l)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,l>>>=0,this===t)return 0;for(var p=l-i,g=n-r,d=Math.min(p,g),f=this.slice(i,l),h=t.slice(r,n),y=0;y<d;++y)if(f[y]!==h[y]){p=f[y],g=h[y];break}return p<g?-1:g<p?1:0};function Ur(e,t,r,n,i){if(e.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Ot(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=u.from(t,n)),u.isBuffer(t))return t.length===0?-1:Cr(e,t,r,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):Cr(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function Cr(e,t,r,n,i){var l=1,p=e.length,g=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;l=2,p/=2,g/=2,r/=2}function d(D,V){return l===1?D[V]:D.readUInt16BE(V*l)}var f;if(i){var h=-1;for(f=r;f<p;f++)if(d(e,f)===d(t,h===-1?0:f-h)){if(h===-1&&(h=f),f-h+1===g)return h*l}else h!==-1&&(f-=f-h),h=-1}else for(r+g>p&&(r=p-g),f=r;f>=0;f--){for(var y=!0,w=0;w<g;w++)if(d(e,f+w)!==d(t,w)){y=!1;break}if(y)return f}return-1}u.prototype.includes=function(t,r,n){return this.indexOf(t,r,n)!==-1};u.prototype.indexOf=function(t,r,n){return Ur(this,t,r,n,!0)};u.prototype.lastIndexOf=function(t,r,n){return Ur(this,t,r,n,!1)};function Pi(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var l=t.length;n>l/2&&(n=l/2);for(var p=0;p<n;++p){var g=parseInt(t.substr(p*2,2),16);if(Ot(g))return p;e[r+p]=g}return p}function Ci(e,t,r,n){return Ve(Ct(t,e.length-r),e,r,n)}function Mi(e,t,r,n){return Ve(qi(t),e,r,n)}function _i(e,t,r,n){return Ve(Wr(t),e,r,n)}function Oi(e,t,r,n){return Ve(ji(t,e.length-r),e,r,n)}u.prototype.write=function(t,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 l=this.length-r;if((n===void 0||n>l)&&(n=l),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var p=!1;;)switch(i){case"hex":return Pi(this,t,r,n);case"utf8":case"utf-8":return Ci(this,t,r,n);case"ascii":case"latin1":case"binary":return Mi(this,t,r,n);case"base64":return _i(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Oi(this,t,r,n);default:if(p)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),p=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Fi(e,t,r){return t===0&&r===e.length?Nt.fromByteArray(e):Nt.fromByteArray(e.slice(t,r))}function Br(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var l=e[i],p=null,g=l>239?4:l>223?3:l>191?2:1;if(i+g<=r){var d,f,h,y;switch(g){case 1:l<128&&(p=l);break;case 2:d=e[i+1],(d&192)===128&&(y=(l&31)<<6|d&63,y>127&&(p=y));break;case 3:d=e[i+1],f=e[i+2],(d&192)===128&&(f&192)===128&&(y=(l&15)<<12|(d&63)<<6|f&63,y>2047&&(y<55296||y>57343)&&(p=y));break;case 4:d=e[i+1],f=e[i+2],h=e[i+3],(d&192)===128&&(f&192)===128&&(h&192)===128&&(y=(l&15)<<18|(d&63)<<12|(f&63)<<6|h&63,y>65535&&y<1114112&&(p=y))}}p===null?(p=65533,g=1):p>65535&&(p-=65536,n.push(p>>>10&1023|55296),p=56320|p&1023),n.push(p),i+=g}return Ui(n)}var Mr=4096;function Ui(e){var t=e.length;if(t<=Mr)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=Mr));return r}function Bi(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]&127);return n}function $i(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function Vi(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",l=t;l<r;++l)i+=zi[e[l]];return i}function Gi(e,t,r){for(var n=e.slice(t,r),i="",l=0;l<n.length-1;l+=2)i+=String.fromCharCode(n[l]+n[l+1]*256);return i}u.prototype.slice=function(t,r){var n=this.length;t=~~t,r=r===void 0?n:~~r,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<t&&(r=t);var i=this.subarray(t,r);return Object.setPrototypeOf(i,u.prototype),i};function L(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||L(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return i};u.prototype.readUintBE=u.prototype.readUIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||L(t,r,this.length);for(var i=this[t+--r],l=1;r>0&&(l*=256);)i+=this[t+--r]*l;return i};u.prototype.readUint8=u.prototype.readUInt8=function(t,r){return t=t>>>0,r||L(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||L(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||L(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||L(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||L(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};u.prototype.readIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||L(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return l*=128,i>=l&&(i-=Math.pow(2,8*r)),i};u.prototype.readIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||L(t,r,this.length);for(var i=r,l=1,p=this[t+--i];i>0&&(l*=256);)p+=this[t+--i]*l;return l*=128,p>=l&&(p-=Math.pow(2,8*r)),p};u.prototype.readInt8=function(t,r){return t=t>>>0,r||L(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||L(t,2,this.length);var n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};u.prototype.readInt16BE=function(t,r){t=t>>>0,r||L(t,2,this.length);var n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};u.prototype.readInt32LE=function(t,r){return t=t>>>0,r||L(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};u.prototype.readInt32BE=function(t,r){return t=t>>>0,r||L(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};u.prototype.readFloatLE=function(t,r){return t=t>>>0,r||L(t,4,this.length),fe.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||L(t,4,this.length),fe.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||L(t,8,this.length),fe.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||L(t,8,this.length),fe.read(this,t,!1,52,8)};function P(e,t,r,n,i,l){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<l)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){var l=Math.pow(2,8*n)-1;P(this,t,r,n,l,0)}var p=1,g=0;for(this[r]=t&255;++g<n&&(p*=256);)this[r+g]=t/p&255;return r+n};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){var l=Math.pow(2,8*n)-1;P(this,t,r,n,l,0)}var p=n-1,g=1;for(this[r+p]=t&255;--p>=0&&(g*=256);)this[r+p]=t/g&255;return r+n};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,n){return t=+t,r=r>>>0,n||P(this,t,r,1,255,0),this[r]=t&255,r+1};u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||P(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||P(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||P(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||P(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};u.prototype.writeIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*n-1);P(this,t,r,n,l-1,-l)}var p=0,g=1,d=0;for(this[r]=t&255;++p<n&&(g*=256);)t<0&&d===0&&this[r+p-1]!==0&&(d=1),this[r+p]=(t/g>>0)-d&255;return r+n};u.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*n-1);P(this,t,r,n,l-1,-l)}var p=n-1,g=1,d=0;for(this[r+p]=t&255;--p>=0&&(g*=256);)t<0&&d===0&&this[r+p+1]!==0&&(d=1),this[r+p]=(t/g>>0)-d&255;return r+n};u.prototype.writeInt8=function(t,r,n){return t=+t,r=r>>>0,n||P(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};u.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||P(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||P(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||P(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};u.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||P(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function $r(e,t,r,n,i,l){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Vr(e,t,r,n,i){return t=+t,r=r>>>0,i||$r(e,t,r,4,34028234663852886e22,-34028234663852886e22),fe.write(e,t,r,n,23,4),r+4}u.prototype.writeFloatLE=function(t,r,n){return Vr(this,t,r,!0,n)};u.prototype.writeFloatBE=function(t,r,n){return Vr(this,t,r,!1,n)};function Gr(e,t,r,n,i){return t=+t,r=r>>>0,i||$r(e,t,r,8,17976931348623157e292,-17976931348623157e292),fe.write(e,t,r,n,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,n){return Gr(this,t,r,!0,n)};u.prototype.writeDoubleBE=function(t,r,n){return Gr(this,t,r,!1,n)};u.prototype.copy=function(t,r,n,i){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<n&&(i=n),i===n||t.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),t.length-r<i-n&&(i=t.length-r+n);var l=i-n;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(t,this.subarray(n,i),r),l};u.prototype.fill=function(t,r,n,i){if(typeof t=="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"&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t.length===1){var l=t.charCodeAt(0);(i==="utf8"&&l<128||i==="latin1")&&(t=l)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,t||(t=0);var p;if(typeof t=="number")for(p=r;p<n;++p)this[p]=t;else{var g=u.isBuffer(t)?t:u.from(t,i),d=g.length;if(d===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(p=0;p<n-r;++p)this[p+r]=g[p%d]}return this};var Wi=/[^+/0-9A-Za-z-_]/g;function Hi(e){if(e=e.split("=")[0],e=e.trim().replace(Wi,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Ct(e,t){t=t||1/0;for(var r,n=e.length,i=null,l=[],p=0;p<n;++p){if(r=e.charCodeAt(p),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&l.push(239,191,189);continue}else if(p+1===n){(t-=3)>-1&&l.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&l.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&l.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;l.push(r)}else if(r<2048){if((t-=2)<0)break;l.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;l.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;l.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return l}function qi(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function ji(e,t){for(var r,n,i,l=[],p=0;p<e.length&&!((t-=2)<0);++p)r=e.charCodeAt(p),n=r>>8,i=r%256,l.push(i),l.push(n);return l}function Wr(e){return Nt.toByteArray(Hi(e))}function Ve(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function W(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Ot(e){return e!==e}var zi=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var n=r*16,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()});var Yr=Ue((Ca,Kr)=>{o();var I=Kr.exports={},H,q;function Ft(){throw new Error("setTimeout has not been defined")}function Ut(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?H=setTimeout:H=Ft}catch(e){H=Ft}try{typeof clearTimeout=="function"?q=clearTimeout:q=Ut}catch(e){q=Ut}})();function qr(e){if(H===setTimeout)return setTimeout(e,0);if((H===Ft||!H)&&setTimeout)return H=setTimeout,setTimeout(e,0);try{return H(e,0)}catch(t){try{return H.call(null,e,0)}catch(r){return H.call(this,e,0)}}}function Ki(e){if(q===clearTimeout)return clearTimeout(e);if((q===Ut||!q)&&clearTimeout)return q=clearTimeout,clearTimeout(e);try{return q(e)}catch(t){try{return q.call(null,e)}catch(r){return q.call(this,e)}}}var K=[],ye=!1,ce,Ge=-1;function Yi(){!ye||!ce||(ye=!1,ce.length?K=ce.concat(K):Ge=-1,K.length&&jr())}function jr(){if(!ye){var e=qr(Yi);ye=!0;for(var t=K.length;t;){for(ce=K,K=[];++Ge<t;)ce&&ce[Ge].run();Ge=-1,t=K.length}ce=null,ye=!1,Ki(e)}}I.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];K.push(new zr(e,t)),K.length===1&&!ye&&qr(jr)};function zr(e,t){this.fun=e,this.array=t}zr.prototype.run=function(){this.fun.apply(null,this.array)};I.title="browser";I.browser=!0;I.env={};I.argv=[];I.version="";I.versions={};function Y(){}I.on=Y;I.addListener=Y;I.once=Y;I.off=Y;I.removeListener=Y;I.removeAllListeners=Y;I.emit=Y;I.prependListener=Y;I.prependOnceListener=Y;I.listeners=function(e){return[]};I.binding=function(e){throw new Error("process.binding is not supported")};I.cwd=function(){return"/"};I.chdir=function(e){throw new Error("process.chdir is not supported")};I.umask=function(){return 0}});var s,a,Ma,o=T(()=>{s=k(Hr()),a=k(Yr()),Ma=function(e){function t(){var n=this||self;return delete e.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return t();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:t});var r=__magic__;return r}(Object)});var Bt,ve,$t,Zr=T(()=>{"use strict";o();Bt="error when signing",ve="cancelled",$t="provider not initialized"});var Vt,Xr=T(()=>{"use strict";o();Vt=(n=>(n.signature="signature",n.sessionId="sessionId",n.status="status",n))(Vt||{})});var Qr=T(()=>{"use strict";o()});var Jr=T(()=>{"use strict";o()});var $=T(()=>{"use strict";o()});var en=T(()=>{"use strict";o()});var tn=T(()=>{"use strict";o()});var C=T(()=>{"use strict";o()});var rn=T(()=>{"use strict";o()});var nn=T(()=>{"use strict";o()});var M=T(()=>{"use strict";o();Xr();Qr();Jr();$();en();tn();C();rn();nn()});var Gt,on,Ja,sn,ec,an,tc,rc,nc,cn=T(()=>{"use strict";o();M();Gt={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:on,egldLabel:Ja}=Gt["devnet"],{chainId:sn,egldLabel:ec}=Gt["testnet"],{chainId:an,egldLabel:tc}=Gt["mainnet"],rc={["devnet"]:on,["testnet"]:sn,["mainnet"]:an},nc={[on]:"devnet",[sn]:"testnet",[an]:"mainnet"}});var Wt=T(()=>{"use strict";o()});var ln=T(()=>{"use strict";o()});var pn,Ht=T(()=>{"use strict";o();pn="transaction-status-toast-id"});var j,un=T(()=>{"use strict";o();j=require("@multiversx/sdk-web-wallet-provider")});var qt,jt,dn,We,gn,he,v=T(()=>{"use strict";o();Zr();cn();Wt();ln();Ht();un();qt=5e4,jt=1e9,dn=1,We="logout",gn="login",he="0"});var He,zt=T(()=>{"use strict";o();He=()=>Date.now()/1e3});var mn=T(()=>{"use strict";o()});var fn=T(()=>{"use strict";o()});var Tn=T(()=>{"use strict";o();zt();mn();fn()});var Yt={};ie(Yt,{getItem:()=>Xi,localStorageKeys:()=>le,removeItem:()=>Qi,setItem:()=>Zi});var le,Kt,Zi,Xi,Qi,Ae=T(()=>{"use strict";o();Tn();le={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},Kt=typeof localStorage!="undefined",Zi=({key:e,data:t,expires:r})=>{!Kt||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Xi=e=>{if(!Kt)return;let t=localStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:He()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},Qi=e=>{!Kt||localStorage.removeItem(String(e))}});var Zt={};ie(Zt,{clear:()=>Sn,getItem:()=>hn,removeItem:()=>xn,setItem:()=>yn,storage:()=>Ji});var yn,hn,xn,Sn,Ji,wn=T(()=>{"use strict";o();yn=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},hn=e=>{let t=sessionStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Date.now()>=r.expires?(sessionStorage.removeItem(String(e)),null):r.data},xn=e=>sessionStorage.removeItem(String(e)),Sn=()=>sessionStorage.clear(),Ji={setItem:yn,getItem:hn,removeItem:xn,clear:Sn}});var xe,qe=T(()=>{"use strict";o();Ae();wn();xe={session:Zt,local:Yt}});var Xt,N,je,Z=T(()=>{"use strict";o();Xt=require("@reduxjs/toolkit");v();N=(0,Xt.createAction)(We),je=(0,Xt.createAction)(gn,e=>({payload:e}))});var Jt,bn,In,ze,Qt,vn,An,Cc,kn,Mc,_c,Oc,Fc,Uc,Bc,$c,Ke,Ye=T(()=>{"use strict";o();Jt=require("@multiversx/sdk-core"),bn=require("@reduxjs/toolkit"),In=require("redux-persist");v();qe();Ae();Z();ze={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:he},Qt={address:"",websocketEvent:null,accounts:{"":ze},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},vn=(0,bn.createSlice)({name:"accountInfoSlice",initialState:Qt,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new Jt.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:ze},e.shard=t.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,t)=>{let{address:r}=e;e.accounts[r].nonce=t.payload},setAccountShard:(e,t)=>{e.shard=t.payload},setLedgerAccount:(e,t)=>{e.ledgerAccount=t.payload},updateLedgerAccount:(e,t)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=t.payload.index,e.ledgerAccount.address=t.payload.address)},setWalletConnectAccount:(e,t)=>{e.walletConnectAccount=t.payload},setIsAccountLoading:(e,t)=>{e.isAccountLoading=t.payload,e.accountLoadingError=null},setAccountLoadingError:(e,t)=>{e.accountLoadingError=t.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,t)=>{e.websocketEvent={timestamp:Date.now(),message:t.payload}}},extraReducers:e=>{e.addCase(N,()=>(xe.local.removeItem(le.loginExpiresAt),Qt)),e.addCase(je,(t,r)=>{let{address:n}=r.payload;t.address=n,t.publicKey=new Jt.Address(n).hex()}),e.addCase(In.REHYDRATE,(t,r)=>{var f;if(!((f=r.payload)!=null&&f.account))return;let{account:n}=r.payload,{address:i,shard:l,accounts:p,publicKey:g}=n;t.address=i,t.shard=l;let d=p&&i in p;t.accounts=d?p:Qt.accounts,t.publicKey=g})}}),{setAccount:An,setAddress:Cc,setAccountNonce:kn,setAccountShard:Mc,setLedgerAccount:_c,updateLedgerAccount:Oc,setWalletConnectAccount:Fc,setIsAccountLoading:Uc,setAccountLoadingError:Bc,setWebsocketEvent:$c}=vn.actions,Ke=vn.reducer});function ke(){return new Date().setHours(new Date().getHours()+24)}function Ee(e){xe.local.setItem({key:le.loginExpiresAt,data:e,expires:e})}var er=T(()=>{"use strict";o();qe();Ae()});var Ln,En,Dn,Zc,Xc,Qc,Jc,el,tl,Nn,rl,Xe,Qe=T(()=>{"use strict";o();Ln=require("@reduxjs/toolkit");er();$();Z();En={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},Dn=(0,Ln.createSlice)({name:"loginInfoSlice",initialState:En,reducers:{setLoginMethod:(e,t)=>{e.loginMethod=t.payload},setTokenLogin:(e,t)=>{e.tokenLogin=t.payload},setTokenLoginSignature:(e,t)=>{(e==null?void 0:e.tokenLogin)!=null&&(e.tokenLogin.signature=t.payload)},setWalletLogin:(e,t)=>{e.walletLogin=t.payload},setWalletConnectLogin:(e,t)=>{e.walletConnectLogin=t.payload},setLedgerLogin:(e,t)=>{e.ledgerLogin=t.payload},invalidateLoginSession:e=>{e.isLoginSessionInvalid=!0},setLogoutRoute:(e,t)=>{e.logoutRoute=t.payload}},extraReducers:e=>{e.addCase(N,()=>En),e.addCase(je,(t,r)=>{t.loginMethod=r.payload.loginMethod,Ee(ke())})}}),{setLoginMethod:Zc,setWalletConnectLogin:Xc,setLedgerLogin:Qc,setTokenLogin:Jc,setTokenLoginSignature:el,setWalletLogin:tl,invalidateLoginSession:Nn,setLogoutRoute:rl}=Dn.actions,Xe=Dn.reducer});var Pn,Rn,Cn,sl,al,cl,ll,Je,et=T(()=>{"use strict";o();Pn=require("@reduxjs/toolkit");Z();Rn={},Cn=(0,Pn.createSlice)({name:"modalsSlice",initialState:Rn,reducers:{setTxSubmittedModal:(e,t)=>{e.txSubmittedModal=t.payload},setNotificationModal:(e,t)=>{e.notificationModal=t.payload},clearTxSubmittedModal:e=>{e.txSubmittedModal=void 0},clearNotificationModal:e=>{e.notificationModal=void 0}},extraReducers:e=>{e.addCase(N,()=>Rn)}}),{setTxSubmittedModal:sl,setNotificationModal:al,clearTxSubmittedModal:cl,clearNotificationModal:ll}=Cn.actions,Je=Cn.reducer});var Mn=T(()=>{"use strict";o()});var _n=T(()=>{"use strict";o();Mn()});function tr(e){return e[Math.floor(Math.random()*e.length)]}var On=T(()=>{"use strict";o()});var Fn=T(()=>{"use strict";o();Wt()});var Un=T(()=>{"use strict";o();_n();On();Fn()});var Bn,$n,rr,es,Vn,Al,kl,tt,rt=T(()=>{"use strict";o();Bn=require("@reduxjs/toolkit"),$n=k(require("lodash.omit"));Un();rr={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},es={network:rr,chainID:"-1"},Vn=(0,Bn.createSlice)({name:"appConfig",initialState:es,reducers:{initializeNetworkConfig:(e,t)=>{let r=tr(t.payload.walletConnectBridgeAddresses),n=tr(t.payload.walletConnectV2RelayAddresses),i=(0,$n.default)(t.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=S(x(x({},e.network),i),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:n})},setChainID:(e,t)=>{e.chainID=t.payload}}}),{initializeNetworkConfig:Al,setChainID:kl}=Vn.actions,tt=Vn.reducer});var Gn,nr,Wn,Le,Hn,or,nt,ot=T(()=>{"use strict";o();Gn=require("@reduxjs/toolkit");M();Z();nr={isSigning:!1,signedSessions:{}},Wn=(0,Gn.createSlice)({name:"signedMessageInfoSliceState",initialState:nr,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:n,errorMessage:i}=t.payload;return S(x({},e),{errorMessage:i!=null?i:e.errorMessage,isSigning:n.status==="pending",signedSessions:S(x({},e.signedSessions),{[r]:n})})},setSignSessionState:(e,t)=>x(x({},e),t.payload),clearSignedMessageInfo:()=>nr},extraReducers:e=>{e.addCase(N,()=>nr)}}),{setSignSession:Le,clearSignedMessageInfo:Hn,setSignSessionState:or}=Wn.actions,nt=Wn.reducer});var jn,zn,qn,Kn,Ul,Bl,$l,Vl,Gl,Wl,it,st=T(()=>{"use strict";o();jn=require("@reduxjs/toolkit"),zn=require("redux-persist");Ht();M();zt();Z();qn={customToasts:[],transactionToasts:[],failTransactionToast:null},Kn=(0,jn.createSlice)({name:"toastsSlice",initialState:qn,reducers:{addCustomToast:(e,t)=>{e.customToasts.push(S(x({},t.payload),{type:"custom",toastId:t.payload.toastId||`custom-toast-${e.customToasts.length+1}`}))},removeCustomToast:(e,t)=>{e.customToasts=e.customToasts.filter(r=>r.toastId!==t.payload)},addTransactionToast:(e,t)=>{e.transactionToasts.push({type:"transaction",startTimestamp:He(),toastId:t.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,t)=>{e.transactionToasts=e.transactionToasts.filter(r=>r.toastId!==t.payload)},addFailTransactionToast:(e,t)=>{e.failTransactionToast=S(x({},t.payload),{toastId:pn})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(N,()=>qn),e.addCase(zn.REHYDRATE,(t,r)=>{var i,l;let n=(l=(i=r.customToasts)==null?void 0:i.filter(p=>!("component"in p)))!=null?l:[];t.customToasts=n})}}),{addCustomToast:Ul,removeCustomToast:Bl,addTransactionToast:$l,removeTransactionToast:Vl,addFailTransactionToast:Gl,removeFailTransactionToast:Wl}=Kn.actions,it=Kn.reducer});var Yn,sr,ar,cr,rs,ir,Zn,zl,Kl,Yl,at,ct=T(()=>{"use strict";o();Yn=require("@reduxjs/toolkit");Z();sr="Transaction failed",ar="Transaction successful",cr="Processing transaction",rs="Transaction submitted",ir={},Zn=(0,Yn.createSlice)({name:"transactionsInfo",initialState:ir,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:n}=t.payload;r!=null&&(e[r]={errorMessage:(n==null?void 0:n.errorMessage)||sr,successMessage:(n==null?void 0:n.successMessage)||ar,processingMessage:(n==null?void 0:n.processingMessage)||cr,submittedMessage:(n==null?void 0:n.submittedMessage)||rs,transactionDuration:n==null?void 0:n.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>ir},extraReducers:e=>{e.addCase(N,()=>ir)}}),{clearTransactionsInfo:zl,setTransactionsDisplayInfo:Kl,clearTransactionsInfoForSessionId:Yl}=Zn.actions,at=Zn.reducer});function Xn(e){return e!=null&&(us(e)||fs(e))}function lt(e){return e!=null&&(ds(e)||Ts(e))}function pt(e){return e!=null&&(gs(e)||ys(e))}function Qn(e){return e!=null&&ms(e)}function us(e){return e!=null&&os.includes(e)}function ds(e){return e!=null&&is.includes(e)}function gs(e){return e!=null&&ss.includes(e)}function ms(e){return e!=null&&as.includes(e)}function fs(e){return e!=null&&cs.includes(e)}function Ts(e){return e!=null&&ls.includes(e)}function ys(e){return e!=null&&ps.includes(e)}var os,is,ss,as,cs,ls,ps,pr=T(()=>{"use strict";o();$();os=["sent"],is=["success"],ss=["fail","cancelled","timedOut"],as=["timedOut"],cs=["pending"],ls=["success"],ps=["fail","invalid"]});var Jn,eo,De,hs,to,op,ip,sp,ap,cp,lp,pp,up,dp,gp,ut,dt=T(()=>{"use strict";o();Jn=require("@reduxjs/toolkit"),eo=require("redux-persist");$();pr();Z();De={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},hs={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},to=(0,Jn.createSlice)({name:"transactionsSlice",initialState:De,reducers:{moveTransactionsToSignedState:(e,t)=>{var d,f;let{sessionId:r,transactions:n,errorMessage:i,status:l,redirectRoute:p}=t.payload,g=((d=e.customTransactionInformationForSessionId)==null?void 0:d[r])||hs;e.signedTransactions[r]={transactions:n,status:l,errorMessage:i,redirectRoute:p,customTransactionInformation:g},((f=e==null?void 0:e.transactionsToSign)==null?void 0:f.sessionId)===r&&(e.transactionsToSign=De.transactionsToSign)},clearSignedTransaction:(e,t)=>{e.signedTransactions[t.payload]&&delete e.signedTransactions[t.payload]},clearTransactionToSign:e=>{e!=null&&e.transactionsToSign&&(e.transactionsToSign=null)},updateSignedTransaction:(e,t)=>{e.signedTransactions=x(x({},e.signedTransactions),t.payload)},updateSignedTransactions:(e,t)=>{let{sessionId:r,status:n,errorMessage:i,transactions:l}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].status=n,i!=null&&(e.signedTransactions[r].errorMessage=i),l!=null&&(e.signedTransactions[r].transactions=l))},updateSignedTransactionStatus:(e,t)=>{var g,d,f,h,y,w;let{sessionId:r,status:n,errorMessage:i,transactionHash:l}=t.payload,p=(d=(g=e.signedTransactions)==null?void 0:g[r])==null?void 0:d.transactions;if(p!=null){e.signedTransactions[r].transactions=p.map(B=>B.hash===l?S(x({},B),{status:n,errorMessage:i}):B);let D=(h=(f=e.signedTransactions[r])==null?void 0:f.transactions)==null?void 0:h.every(B=>lt(B.status)),V=(w=(y=e.signedTransactions[r])==null?void 0:y.transactions)==null?void 0:w.every(B=>pt(B.status));D&&(e.signedTransactions[r].status="success"),V&&(e.signedTransactions[r].status="fail")}},setTransactionsToSign:(e,t)=>{e.transactionsToSign=t.payload;let{sessionId:r,customTransactionInformation:n}=t.payload;e.customTransactionInformationForSessionId[r]=n,e.signTransactionsError=null},clearAllTransactionsToSign:e=>{e.transactionsToSign=De.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=De.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload}},extraReducers:e=>{e.addCase(N,()=>De),e.addCase(eo.REHYDRATE,(t,r)=>{var p;if(t.signTransactionsCancelMessage=null,!((p=r.payload)!=null&&p.transactions))return;let{signedTransactions:n,customTransactionInformationForSessionId:i}=r.payload.transactions,l=Object.entries(n).reduce((g,[d,f])=>{let h=new Date(d),y=new Date;return y.setHours(y.getHours()+5),y-h>0||(g[d]=f),g},{});i!=null&&(t.customTransactionInformationForSessionId=i),n!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:op,updateSignedTransactions:ip,setTransactionsToSign:sp,clearAllTransactionsToSign:ap,clearAllSignedTransactions:cp,clearSignedTransaction:lp,clearTransactionToSign:pp,setSignTransactionsError:up,setSignTransactionsCancelMessage:dp,moveTransactionsToSignedState:gp}=to.actions,ut=to.reducer});var pe=T(()=>{"use strict";o();Ye();Qe();et();rt();ot();st();ct();dt()});var ur=T(()=>{"use strict";o()});var so,io,ao,Fp,Up,Bp,$p,Vp,Gp,co,lo=T(()=>{"use strict";o();so=require("@reduxjs/toolkit");Z();io={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},ao=(0,so.createSlice)({name:"dappModalsSlice",initialState:io,reducers:{setDappModalVisibility:(e,t)=>{e.visible=t.payload},setDappModalHeaderVisibility:(e,t)=>{e.modal.showHeader=t.payload},setDappModalFooterVisibility:(e,t)=>{e.modal.showFooter=t.payload},setDappModalHeaderText:(e,t)=>{e.modal.headerText=t.payload},setDappModalFooterText:(e,t)=>{e.modal.footerText=t.payload},setDappModalConfig:(e,t)=>{e.modal=x({},t.payload)}},extraReducers:e=>{e.addCase(N,()=>io)}}),{setDappModalVisibility:Fp,setDappModalHeaderVisibility:Up,setDappModalFooterVisibility:Bp,setDappModalHeaderText:$p,setDappModalFooterText:Vp,setDappModalConfig:Gp}=ao.actions,co=ao.reducer});var po,bs,Is,ue,yt=T(()=>{"use strict";o();po=require("@reduxjs/toolkit");ur();Ye();lo();Qe();et();rt();ot();st();ct();dt();bs={["account"]:Ke,["dappModal"]:co,["loginInfo"]:Xe,["modals"]:Je,["networkConfig"]:tt,["signedMessageInfo"]:nt,["toasts"]:it,["transactionsInfo"]:at,["transactions"]:ut},Is=(e={})=>(0,po.combineReducers)(x(x({},bs),e)),ue=Is});var fo={};ie(fo,{default:()=>Us,sessionStorageReducers:()=>dr});function te(e,t=[]){return{key:e,version:1,storage:go.default,blacklist:t}}var _,uo,go,vs,Ne,As,ks,Es,Ls,Ds,Ns,Rs,Ps,Cs,mo,Ms,dr,_s,Os,Fs,Us,To=T(()=>{"use strict";o();_=require("redux-persist"),uo=k(require("redux-persist/lib/storage")),go=k(require("redux-persist/lib/storage/session"));yt();pe();Ye();Qe();et();rt();ot();st();ct();dt();ur();vs={persistReducersStorageType:"localStorage"},Ne={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},As=te(Ne["account"]),ks=te(Ne["loginInfo"]),Es=te(Ne["modals"]),Ls=te(Ne["networkConfig"]),Ds={2:e=>S(x({},e),{networkConfig:rr})};Ns=te("sdk-dapp-transactionsInfo"),Rs=te("sdk-dapp-transactions",["transactionsToSign"]),Ps=te("sdk-dapp-toasts"),Cs=te("sdk-dapp-signedMessageInfo"),mo={key:"sdk-dapp-store",version:2,storage:uo.default,whitelist:Object.keys(Ne),migrate:(0,_.createMigrate)(Ds,{debug:!1})},Ms=S(x({},mo),{whitelist:[]}),dr={["toasts"]:(0,_.persistReducer)(Ps,it),["transactions"]:(0,_.persistReducer)(Rs,ut),["transactionsInfo"]:(0,_.persistReducer)(Ns,at),["signedMessageInfo"]:(0,_.persistReducer)(Cs,nt)},_s=S(x({},dr),{["account"]:(0,_.persistReducer)(As,Ke),["loginInfo"]:(0,_.persistReducer)(ks,Xe),["modals"]:(0,_.persistReducer)(Es,Je),["networkConfig"]:(0,_.persistReducer)(Ls,tt)}),Os=vs.persistReducersStorageType==="localStorage",Fs=Os?(0,_.persistReducer)(mo,ue(dr)):(0,_.persistReducer)(Ms,ue(_s)),Us=Fs});var yo={};ie(yo,{default:()=>Bs});var Bs,ho=T(()=>{"use strict";o();yt();Bs=ue()});var xo={};ie(xo,{default:()=>Vs});var U,$s,Vs,So=T(()=>{"use strict";o();U=require("redux-persist"),$s=[U.FLUSH,U.REHYDRATE,U.PAUSE,U.PERSIST,U.PURGE,U.REGISTER],Vs=$s});var Io={};ie(Io,{default:()=>bo});function bo(e){return(0,wo.persistStore)(e)}var wo,vo=T(()=>{"use strict";o();wo=require("redux-persist")});var La={};ie(La,{useGetLastSignedMessageSession:()=>Ia,useGetSignMessageInfoStatus:()=>br,useGetSignMessageSession:()=>va,useSignMessage:()=>ka,verifyMessage:()=>Ea});module.exports=Ie(La);o();o();o();var No=require("react"),Se=require("react-redux");o();var gr=require("@reduxjs/toolkit"),Lo=require("react-redux/lib/utils/Subscription");pe();o();var no=k(require("lodash.throttle"));v();o();var ro=k(require("lodash.isequal")),gt=require("reselect");M();var m=(0,gt.createSelectorCreator)(gt.defaultMemoize,ro.default),mt=(e,t)=>e!=""&&Boolean(t);pe();er();qe();Ae();var xs=[We],ft=!1,Ss=(0,no.default)(()=>{Ee(ke())},5e3),oo=e=>t=>r=>{var d;if(xs.includes(r.type))return t(r);let n=e.getState(),i=xe.local.getItem(le.loginExpiresAt);if(!mt((d=n==null?void 0:n.loginInfo)==null?void 0:d.loginMethod,n==null?void 0:n.account.address))return t(r);if(i==null)return Ee(ke());let p=Date.now();return i-p<0&&!ft?setTimeout(()=>{ft=!0,e.dispatch(Nn())},1e3):(ft&&(ft=!1),Ss()),t(r)};o();o();function Tt(){return typeof sessionStorage!="undefined"}var Ao=Tt()?(To(),Ie(fo)).default:(ho(),Ie(yo)).default,ko=Tt()?(So(),Ie(xo)).default:[],Eo=Tt()?(vo(),Ie(Io)).default:e=>e;yt();var re=(0,gr.configureStore)({reducer:Ao,middleware:e=>e({serializableCheck:{ignoredActions:[...ko,kn.type,An.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(oo)}),Do=(0,Lo.createSubscription)(re),xu=Eo(re),Su=(0,gr.configureStore)({reducer:ue});var Gs={store:re,subscription:Do},mr=(0,No.createContext)(Gs),vu=(0,Se.createStoreHook)(mr),Ro=(0,Se.createDispatchHook)(mr),X=(0,Se.createSelectorHook)(mr);o();o();pe();var Q=e=>e.account,Re=m(Q,e=>e.address),fr=m(Q,Re,(e,t)=>t in e.accounts?e.accounts[t]:ze),Lu=m(Q,fr,(e,t)=>{let i=e,{accounts:r}=i,n=kr(i,["accounts"]);return S(x({},n),{account:t})}),Du=m(fr,e=>e.balance),Nu=m(fr,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),Ru=m(Q,e=>e.shard),Pu=m(Q,e=>e.ledgerAccount),Cu=m(Q,e=>e.walletConnectAccount),Mu=m(Q,e=>e.isAccountLoading),_u=m(Q,e=>e.accountLoadingError),Ou=m(Q,e=>e.websocketEvent);o();var ne=e=>e.loginInfo,$u=m(ne,e=>e.loginMethod),Po=m(ne,Re,(e,t)=>mt(e.loginMethod,t)),Vu=m(ne,e=>e.walletConnectLogin),Gu=m(ne,e=>e.ledgerLogin),Co=m(ne,e=>e.walletLogin),Wu=m(ne,e=>e.isLoginSessionInvalid),Hu=m(ne,e=>e.tokenLogin),qu=m(ne,e=>e.logoutRoute);o();var Mo=e=>e.modals,Ku=m(Mo,e=>e.txSubmittedModal),Yu=m(Mo,e=>e.notificationModal);o();var de=e=>e.networkConfig,Qu=m(de,e=>e.chainID),Ju=m(de,e=>e.network.walletConnectBridgeAddress),ed=m(de,e=>e.network.walletConnectV2RelayAddress),td=m(de,e=>e.network.walletConnectV2ProjectId),rd=m(de,e=>e.network.walletConnectV2Options),nd=m(de,e=>e.network.walletConnectDeepLink),Tr=m(de,e=>e.network),od=m(Tr,e=>e.apiAddress),_o=m(Tr,e=>e.explorerAddress),id=m(Tr,e=>e.egldLabel);o();var ge=e=>e.signedMessageInfo,Oo=m(ge,e=>e.isSigning),Fo=m(ge,e=>e.errorMessage),Uo=m(ge,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]});o();var yr=e=>e.toasts,pd=m(yr,e=>e.customToasts),ud=m(yr,e=>e.transactionToasts),dd=m(yr,e=>e.failTransactionToast);o();pe();var Bo={errorMessage:sr,successMessage:ar,processingMessage:cr},Ws=e=>e.transactionsInfo,Td=m(Ws,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||Bo);o();o();var O=require("@multiversx/sdk-core");v();o();function hr(e){try{return s.Buffer.from(e,"base64").toString()===atob(e)}catch(t){return!1}}function xr(e){var i,l,p;let{data:t}=e,r=hr(t!=null?t:"")?O.TransactionPayload.fromEncoded(t):new O.TransactionPayload(t),n=new O.Transaction(x({value:e.value.valueOf(),data:r,nonce:e.nonce.valueOf(),receiver:new O.Address(e.receiver),sender:new O.Address(e.sender),gasLimit:(i=e.gasLimit.valueOf())!=null?i:qt,gasPrice:(l=e.gasPrice.valueOf())!=null?l:jt,chainID:e.chainID.valueOf(),version:new O.TransactionVersion((p=e.version)!=null?p:dn)},e.options?{options:new O.TransactionOptions(e.options)}:{}));return n.applySignature({hex:()=>e.signature||""},new O.Address(e.sender)),n}o();pr();o();var qs=k(require("bignumber.js"));M();o();o();o();o();var zs=require("@multiversx/sdk-core"),Ks=k(require("bignumber.js"));$();o();var Go=require("@multiversx/sdk-core");function js(e){try{let t=new Go.Address(e);return Boolean(t.bech32())}catch(t){return!1}}function Pe(e){return(e==null?void 0:e.startsWith("erd"))&&e.length===62&&/^\w+$/.test(e)&&js(e)}o();o();o();var Zs=require("@multiversx/sdk-core/out");o();v();o();var Wo=require("@multiversx/sdk-core");M();o();o();o();o();$();o();o();o();o();o();o();o();o();o();o();o();C();o();o();C();o();o();o();var ra=k(require("bignumber.js"));v();o();var ta=require("@multiversx/sdk-core"),Sr=k(require("bignumber.js"));v();o();var Js=k(require("bignumber.js"));o();Sr.default.config({ROUNDING_MODE:Sr.default.ROUND_FLOOR});o();o();o();v();o();o();o();o();v();o();v();o();var na=require("@multiversx/sdk-core");v();o();var Ce=require("@multiversx/sdk-core"),ia=require("@multiversx/sdk-network-providers");v();o();o();var oa=k(require("bignumber.js"));v();o();v();o();o();o();o();o();v();o();C();var aa=["reDelegateRewards","claimRewards","unBond"],ca=["wrapEgld","unwrapEgld"],la=["unStake"],pa=["unDelegate"];o();o();o();v();o();var ga=k(require("bignumber.js"));o();o();o();o();C();o();var ma=k(require("bignumber.js"));o();o();o();o();C();o();o();o();var Ta=k(require("linkifyjs"));o();v();o();var ya=k(require("bignumber.js"));o();M();o();o();$();o();$();o();o();o();C();o();C();o();var ha=k(require("bignumber.js"));v();C();o();C();o();var Ko=require("react");M();o();o();C();o();o();var xa=require("@multiversx/sdk-core/out"),Sa=k(require("bignumber.js"));C();o();M();o();o();M();var nh=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];o();var Yo=require("react");M();o();var ba=require("react");C();var ph=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];var wt=e=>e.transactions,Me=m(wt,e=>e.signedTransactions),Kh=m(wt,e=>e.signTransactionsError),Yh=m(wt,e=>e.signTransactionsCancelMessage),bt=e=>t=>Object.entries(t).reduce((r,[n,i])=>(e(i.status)&&(r[n]=i),r),{}),Zh=m(Me,bt(Xn)),Xh=m(Me,bt(lt)),Qh=m(Me,bt(pt)),Jh=m(Me,bt(Qn)),ex=m(wt,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:S(x({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>xr(r)))||[]})}),tx=m(Me,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});var Ia=()=>X(Uo);o();var va=e=>{let t=X(ge);if(!!e)return t.signedSessions[e]};o();var br=()=>{let e=X(Oo),t=X(Fo);return{isPending:e,errorMessage:t}};o();var we=require("react");v();o();o();o();o();var Zo=require("@multiversx/sdk-extension-provider"),Xo=require("@multiversx/sdk-hw-provider"),Qo=require("@multiversx/sdk-opera-provider"),Jo=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider"),ei=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider"),ti=require("@multiversx/sdk-web-wallet-provider");v();$();var vt=e=>{switch(e==null?void 0:e.constructor){case ti.WalletProvider:return"wallet";case Jo.WalletConnectProvider:return"walletconnect";case ei.WalletConnectV2Provider:return"walletconnectv2";case Xo.HWProvider:return"ledger";case Zo.ExtensionProvider:return"extension";case Qo.OperaProvider:return"opera";case It:return"";default:return"extra"}};var J=e=>`Unable to perform ${e}, Provider not initialized`,It=class{init(){return Promise.resolve(!1)}login(t){throw new Error(J(`login with options: ${t}`))}logout(t){throw new Error(J(`logout with options: ${t}`))}getAddress(){throw new Error(J("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(t,r){throw new Error(J(`sendTransaction with transactions: ${t} options: ${r}`))}signTransaction(t,r){throw new Error(J(`signTransaction with transactions: ${t} options: ${r}`))}signTransactions(t,r){throw new Error(J(`signTransactions with transactions: ${t} options: ${r}`))}signMessage(t,r){throw new Error(J(`signTransactions with ${t} and options ${r}`))}sendCustomMessage({method:t,params:r}){throw new Error(J(`sendCustomMessage with method: ${t} params: ${r}`))}sendCustomRequest(t){throw new Error(J(`sendSessionEvent with options: ${t}`))}ping(){return Promise.resolve(!1)}},Ir=new It;var Aa=Ir;function ee(){return Aa||Ir}var ri=()=>{let e=ee(),t=vt(e);return{provider:e,providerType:t}};pe();M();o();var At=require("@multiversx/sdk-core");o();$();o();o();function ni(){let e=ee();return vt(e)}function _e(e){return ni()===e}function oi(){let{search:e}=window.location,t=re.getState(),r=ee(),n=Re(t),i=Po(t),l=Co(t);if(!r)throw"provider not initialized";return _e("ledger")&&i?new Promise(p=>{p(n)}):!_e("")&&!_e("wallet")&&!_e("extra")?r.getAddress():new Promise(p=>{if(l!=null){let g=new URLSearchParams(e),d=Object.fromEntries(g);Pe(d.address)&&p(d.address)}i&&p(n),p("")})}var ii=r=>me(void 0,[r],function*({message:e,callbackRoute:t}){let n=yield oi(),i=ee(),l=`${window.location.origin}${t}`,p=new At.SignableMessage({address:new At.Address(n),message:s.Buffer.from(e,"ascii")});return yield i.signMessage(p,{callbackUrl:encodeURIComponent(l)})});o();o();var si=e=>{let t=new URLSearchParams(e).toString(),{pathname:r}=window.location,n=t?`?${t}`:"",i=r?`${r}${n}`:"./";setTimeout(()=>{window.history.replaceState({},document==null?void 0:document.title,i)})};var ai=e=>{var n;let t={};if((n=window==null?void 0:window.location)!=null&&n.search){let i=new URLSearchParams(window.location.search);t=Object.fromEntries(i)}let r={};return e.forEach(i=>{r[i]=t[i],delete t[i]}),{remainingParams:r,clearNavigationHistory:()=>si(t)}};var ka=()=>{let e=Ro(),[t,r]=(0,we.useState)(""),i=X(ge).signedSessions[t],{isPending:l,errorMessage:p}=br(),{search:g}=window.location,{provider:d,providerType:f}=ri(),h=f==="wallet",y=()=>{e(Hn())},w=({callbackRoute:A,errorMessage:E=ve})=>{let b=E.includes(ve),R=Date.now().toString();i||r(R),e(Le({errorMessage:E,sessionId:R,signedSession:{callbackUrl:A,status:b?"cancelled":"failed"}}))},D=(A,E)=>{if(!A)return"";let b=new URL(A);return b.searchParams.get("sessionId")||b.searchParams.append("sessionId",E),`${h?window.location.origin:""}${b.pathname}${b.search}`},V=()=>me(void 0,null,function*(){var A;if(!h)try{if(!(yield(A=d==null?void 0:d.init)==null?void 0:A.call(d)))throw Error($t)}catch(E){let b=(E==null?void 0:E.message)||E||$t;throw Error(b)}}),B=A=>d.signMessage(A.message,{callbackUrl:encodeURIComponent(String(A.callbackRoute))}),li=A=>me(void 0,null,function*(){let E=Date.now().toString();r(E);let b=D(A.callbackRoute,E);if(e(Le({sessionId:E,signedSession:{status:"pending",message:A.message,callbackUrl:b}})),h)return B(S(x({},A),{callbackRoute:b}));try{yield V()}catch(R){return w({errorMessage:String(R),callbackRoute:b})}try{let R=yield ii(S(x({},A),{callbackRoute:b}));return R.signature?e(Le({sessionId:E,signedSession:{status:"signed",callbackUrl:b,message:A.message,signature:R.signature.hex()}})):w({errorMessage:ve,callbackRoute:b})}catch(R){let ui=(R==null?void 0:R.message)||R||Bt;return w({errorMessage:ui,callbackRoute:b})}}),pi=()=>{if(g){let{remainingParams:{signature:A,sessionId:E,status:b},clearNavigationHistory:R}=ai(Object.values(Vt));if(!E)return;if(r(E),["cancelled","failed"].includes(b))return w({errorMessage:b==="cancelled"?ve:Bt});if(A&&b==="signed")return e(Le({sessionId:t,signedSession:{signature:A,status:b}}));R()}};return(0,we.useEffect)(()=>{pi()},[g]),(0,we.useEffect)(()=>{(l||p)&&!i&&e(or({isSigning:!1,errorMessage:""}))},[]),(0,we.useEffect)(()=>{t&&!i&&!l&&e(or({isSigning:!1,errorMessage:""}))},[t]),{onAbort:y,onCancel:w,signMessage:li,sessionId:t}};o();var Oe=require("@multiversx/sdk-core/out"),ci=require("@multiversx/sdk-core/out/signature"),kt=require("@multiversx/sdk-wallet"),Ea=e=>{try{let{message:t,address:r,signature:n}=JSON.parse(e),i=s.Buffer.from(t.replace("0x",""),"hex"),l=new Oe.Address(r),p=new Oe.SignableMessage({address:l,message:i,signature:new ci.Signature(n)}),g=new kt.UserPublicKey(Oe.Address.fromString(r).pubkey());return{isVerified:new kt.UserVerifier(g).verify(p),message:i.toString(),address:r}}catch(t){return{isVerified:!1,message:"",address:""}}};0&&(module.exports={useGetLastSignedMessageSession,useGetSignMessageInfoStatus,useGetSignMessageSession,useSignMessage,verifyMessage});
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Cr=Object.create;var N=Object.defineProperty;var Sr=Object.getOwnPropertyDescriptor;var Lr=Object.getOwnPropertyNames;var Mr=Object.getPrototypeOf,Rr=Object.prototype.hasOwnProperty;var _r=(e,r)=>()=>(e&&(r=e(e=0)),r);var W=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),kr=(e,r)=>{for(var t in r)N(e,t,{get:r[t],enumerable:!0})},er=(e,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Lr(r))!Rr.call(e,n)&&n!==t&&N(e,n,{get:()=>r[n],enumerable:!(i=Sr(r,n))||i.enumerable});return e};var ir=(e,r,t)=>(t=e!=null?Cr(Mr(e)):{},er(r||!e||!e.__esModule?N(t,"default",{value:e,enumerable:!0}):t,e)),Dr=e=>er(N({},"__esModule",{value:!0}),e);var ur=W(Y=>{"use strict";g();Y.byteLength=Nr;Y.toByteArray=Yr;Y.fromByteArray=Vr;var F=[],m=[],br=typeof Uint8Array!="undefined"?Uint8Array:Array,J="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(d=0,nr=J.length;d<nr;++d)F[d]=J[d],m[J.charCodeAt(d)]=d;var d,nr;m["-".charCodeAt(0)]=62;m["_".charCodeAt(0)]=63;function or(e){var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var i=t===r?0:4-t%4;return[t,i]}function Nr(e){var r=or(e),t=r[0],i=r[1];return(t+i)*3/4-i}function Wr(e,r,t){return(r+t)*3/4-t}function Yr(e){var r,t=or(e),i=t[0],n=t[1],o=new br(Wr(e,i,n)),u=0,h=n>0?i-4:i,f;for(f=0;f<h;f+=4)r=m[e.charCodeAt(f)]<<18|m[e.charCodeAt(f+1)]<<12|m[e.charCodeAt(f+2)]<<6|m[e.charCodeAt(f+3)],o[u++]=r>>16&255,o[u++]=r>>8&255,o[u++]=r&255;return n===2&&(r=m[e.charCodeAt(f)]<<2|m[e.charCodeAt(f+1)]>>4,o[u++]=r&255),n===1&&(r=m[e.charCodeAt(f)]<<10|m[e.charCodeAt(f+1)]<<4|m[e.charCodeAt(f+2)]>>2,o[u++]=r>>8&255,o[u++]=r&255),o}function qr(e){return F[e>>18&63]+F[e>>12&63]+F[e>>6&63]+F[e&63]}function Hr(e,r,t){for(var i,n=[],o=r;o<t;o+=3)i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),n.push(qr(i));return n.join("")}function Vr(e){for(var r,t=e.length,i=t%3,n=[],o=16383,u=0,h=t-i;u<h;u+=o)n.push(Hr(e,u,u+o>h?h:u+o));return i===1?(r=e[t-1],n.push(F[r>>2]+F[r<<4&63]+"==")):i===2&&(r=(e[t-2]<<8)+e[t-1],n.push(F[r>>10]+F[r>>4&63]+F[r<<2&63]+"=")),n.join("")}});var ar=W(K=>{g();K.read=function(e,r,t,i,n){var o,u,h=n*8-i-1,f=(1<<h)-1,c=f>>1,s=-7,p=t?n-1:0,E=t?-1:1,x=e[r+p];for(p+=E,o=x&(1<<-s)-1,x>>=-s,s+=h;s>0;o=o*256+e[r+p],p+=E,s-=8);for(u=o&(1<<-s)-1,o>>=-s,s+=i;s>0;u=u*256+e[r+p],p+=E,s-=8);if(o===0)o=1-c;else{if(o===f)return u?NaN:(x?-1:1)*(1/0);u=u+Math.pow(2,i),o=o-c}return(x?-1:1)*u*Math.pow(2,o-i)};K.write=function(e,r,t,i,n,o){var u,h,f,c=o*8-n-1,s=(1<<c)-1,p=s>>1,E=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=i?0:o-1,L=i?1:-1,dr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(h=isNaN(r)?1:0,u=s):(u=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-u))<1&&(u--,f*=2),u+p>=1?r+=E/f:r+=E*Math.pow(2,1-p),r*f>=2&&(u++,f/=2),u+p>=s?(h=0,u=s):u+p>=1?(h=(r*f-1)*Math.pow(2,n),u=u+p):(h=r*Math.pow(2,p-1)*Math.pow(2,n),u=0));n>=8;e[t+x]=h&255,x+=L,h/=256,n-=8);for(u=u<<n|h,c+=n;c>0;e[t+x]=u&255,x+=L,u/=256,c-=8);e[t+x-L]|=dr*128}});var Fr=W(_=>{"use strict";g();var z=ur(),R=ar(),hr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;_.Buffer=a;_.SlowBuffer=Or;_.INSPECT_MAX_BYTES=50;var H=2147483647;_.kMaxLength=H;a.TYPED_ARRAY_SUPPORT=Xr();!a.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Xr(){try{var e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(t){return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.buffer}});Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.byteOffset}});function U(e){if(e>H)throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=new Uint8Array(e);return Object.setPrototypeOf(r,a.prototype),r}function a(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return $(e)}return cr(e,r,t)}a.poolSize=8192;function cr(e,r,t){if(typeof e=="string")return Jr(e,r);if(ArrayBuffer.isView(e))return Kr(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(B(e,ArrayBuffer)||e&&B(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(B(e,SharedArrayBuffer)||e&&B(e.buffer,SharedArrayBuffer)))return Q(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(i!=null&&i!==e)return a.from(i,r,t);var n=zr(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return a.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}a.from=function(e,r,t){return cr(e,r,t)};Object.setPrototypeOf(a.prototype,Uint8Array.prototype);Object.setPrototypeOf(a,Uint8Array);function sr(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Gr(e,r,t){return sr(e),e<=0?U(e):r!==void 0?typeof t=="string"?U(e).fill(r,t):U(e).fill(r):U(e)}a.alloc=function(e,r,t){return Gr(e,r,t)};function $(e){return sr(e),U(e<0?0:P(e)|0)}a.allocUnsafe=function(e){return $(e)};a.allocUnsafeSlow=function(e){return $(e)};function Jr(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var t=lr(e,r)|0,i=U(t),n=i.write(e,r);return n!==t&&(i=i.slice(0,n)),i}function O(e){for(var r=e.length<0?0:P(e.length)|0,t=U(r),i=0;i<r;i+=1)t[i]=e[i]&255;return t}function Kr(e){if(B(e,Uint8Array)){var r=new Uint8Array(e);return Q(r.buffer,r.byteOffset,r.byteLength)}return O(e)}function Q(e,r,t){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');var i;return r===void 0&&t===void 0?i=new Uint8Array(e):t===void 0?i=new Uint8Array(e,r):i=new Uint8Array(e,r,t),Object.setPrototypeOf(i,a.prototype),i}function zr(e){if(a.isBuffer(e)){var r=P(e.length)|0,t=U(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||j(e.length)?U(0):O(e);if(e.type==="Buffer"&&Array.isArray(e.data))return O(e.data)}function P(e){if(e>=H)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+H.toString(16)+" bytes");return e|0}function Or(e){return+e!=e&&(e=0),a.alloc(+e)}a.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==a.prototype};a.compare=function(r,t){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),B(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(r)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;for(var i=r.length,n=t.length,o=0,u=Math.min(i,n);o<u;++o)if(r[o]!==t[o]){i=r[o],n=t[o];break}return i<n?-1:n<i?1:0};a.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};a.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return a.alloc(0);var i;if(t===void 0)for(t=0,i=0;i<r.length;++i)t+=r[i].length;var n=a.allocUnsafe(t),o=0;for(i=0;i<r.length;++i){var u=r[i];if(B(u,Uint8Array))o+u.length>n.length?a.from(u).copy(n,o):Uint8Array.prototype.set.call(n,u,o);else if(a.isBuffer(u))u.copy(n,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=u.length}return n};function lr(e,r){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||B(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var t=e.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&t===0)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return Z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return gr(e).length;default:if(n)return i?-1:Z(e).length;r=(""+r).toLowerCase(),n=!0}}a.byteLength=lr;function Qr(e,r,t){var i=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return ot(this,r,t);case"utf8":case"utf-8":return yr(this,r,t);case"ascii":return it(this,r,t);case"latin1":case"binary":return nt(this,r,t);case"base64":return tt(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ut(this,r,t);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}a.prototype._isBuffer=!0;function C(e,r,t){var i=e[r];e[r]=e[t],e[t]=i}a.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<r;t+=2)C(this,t,t+1);return this};a.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<r;t+=4)C(this,t,t+3),C(this,t+1,t+2);return this};a.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<r;t+=8)C(this,t,t+7),C(this,t+1,t+6),C(this,t+2,t+5),C(this,t+3,t+4);return this};a.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?yr(this,0,r):Qr.apply(this,arguments)};a.prototype.toLocaleString=a.prototype.toString;a.prototype.equals=function(r){if(!a.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:a.compare(this,r)===0};a.prototype.inspect=function(){var r="",t=_.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};hr&&(a.prototype[hr]=a.prototype.inspect);a.prototype.compare=function(r,t,i,n,o){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),!a.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),i===void 0&&(i=r?r.length:0),n===void 0&&(n=0),o===void 0&&(o=this.length),t<0||i>r.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=i)return 0;if(n>=o)return-1;if(t>=i)return 1;if(t>>>=0,i>>>=0,n>>>=0,o>>>=0,this===r)return 0;for(var u=o-n,h=i-t,f=Math.min(u,h),c=this.slice(n,o),s=r.slice(t,i),p=0;p<f;++p)if(c[p]!==s[p]){u=c[p],h=s[p];break}return u<h?-1:h<u?1:0};function wr(e,r,t,i,n){if(e.length===0)return-1;if(typeof t=="string"?(i=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,j(t)&&(t=n?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(n)return-1;t=e.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof r=="string"&&(r=a.from(r,i)),a.isBuffer(r))return r.length===0?-1:fr(e,r,t,i,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):fr(e,[r],t,i,n);throw new TypeError("val must be string, number or Buffer")}function fr(e,r,t,i,n){var o=1,u=e.length,h=r.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(e.length<2||r.length<2)return-1;o=2,u/=2,h/=2,t/=2}function f(x,L){return o===1?x[L]:x.readUInt16BE(L*o)}var c;if(n){var s=-1;for(c=t;c<u;c++)if(f(e,c)===f(r,s===-1?0:c-s)){if(s===-1&&(s=c),c-s+1===h)return s*o}else s!==-1&&(c-=c-s),s=-1}else for(t+h>u&&(t=u-h),c=t;c>=0;c--){for(var p=!0,E=0;E<h;E++)if(f(e,c+E)!==f(r,E)){p=!1;break}if(p)return c}return-1}a.prototype.includes=function(r,t,i){return this.indexOf(r,t,i)!==-1};a.prototype.indexOf=function(r,t,i){return wr(this,r,t,i,!0)};a.prototype.lastIndexOf=function(r,t,i){return wr(this,r,t,i,!1)};function Zr(e,r,t,i){t=Number(t)||0;var n=e.length-t;i?(i=Number(i),i>n&&(i=n)):i=n;var o=r.length;i>o/2&&(i=o/2);for(var u=0;u<i;++u){var h=parseInt(r.substr(u*2,2),16);if(j(h))return u;e[t+u]=h}return u}function $r(e,r,t,i){return V(Z(r,e.length-t),e,t,i)}function Pr(e,r,t,i){return V(ft(r),e,t,i)}function jr(e,r,t,i){return V(gr(r),e,t,i)}function rt(e,r,t,i){return V(pt(r,e.length-t),e,t,i)}a.prototype.write=function(r,t,i,n){if(t===void 0)n="utf8",i=this.length,t=0;else if(i===void 0&&typeof t=="string")n=t,i=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(i)?(i=i>>>0,n===void 0&&(n="utf8")):(n=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-t;if((i===void 0||i>o)&&(i=o),r.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var u=!1;;)switch(n){case"hex":return Zr(this,r,t,i);case"utf8":case"utf-8":return $r(this,r,t,i);case"ascii":case"latin1":case"binary":return Pr(this,r,t,i);case"base64":return jr(this,r,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return rt(this,r,t,i);default:if(u)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),u=!0}};a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function tt(e,r,t){return r===0&&t===e.length?z.fromByteArray(e):z.fromByteArray(e.slice(r,t))}function yr(e,r,t){t=Math.min(e.length,t);for(var i=[],n=r;n<t;){var o=e[n],u=null,h=o>239?4:o>223?3:o>191?2:1;if(n+h<=t){var f,c,s,p;switch(h){case 1:o<128&&(u=o);break;case 2:f=e[n+1],(f&192)===128&&(p=(o&31)<<6|f&63,p>127&&(u=p));break;case 3:f=e[n+1],c=e[n+2],(f&192)===128&&(c&192)===128&&(p=(o&15)<<12|(f&63)<<6|c&63,p>2047&&(p<55296||p>57343)&&(u=p));break;case 4:f=e[n+1],c=e[n+2],s=e[n+3],(f&192)===128&&(c&192)===128&&(s&192)===128&&(p=(o&15)<<18|(f&63)<<12|(c&63)<<6|s&63,p>65535&&p<1114112&&(u=p))}}u===null?(u=65533,h=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|u&1023),i.push(u),n+=h}return et(i)}var pr=4096;function et(e){var r=e.length;if(r<=pr)return String.fromCharCode.apply(String,e);for(var t="",i=0;i<r;)t+=String.fromCharCode.apply(String,e.slice(i,i+=pr));return t}function it(e,r,t){var i="";t=Math.min(e.length,t);for(var n=r;n<t;++n)i+=String.fromCharCode(e[n]&127);return i}function nt(e,r,t){var i="";t=Math.min(e.length,t);for(var n=r;n<t;++n)i+=String.fromCharCode(e[n]);return i}function ot(e,r,t){var i=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>i)&&(t=i);for(var n="",o=r;o<t;++o)n+=ct[e[o]];return n}function ut(e,r,t){for(var i=e.slice(r,t),n="",o=0;o<i.length-1;o+=2)n+=String.fromCharCode(i[o]+i[o+1]*256);return n}a.prototype.slice=function(r,t){var i=this.length;r=~~r,t=t===void 0?i:~~t,r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t<r&&(t=r);var n=this.subarray(r,t);return Object.setPrototypeOf(n,a.prototype),n};function w(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r],o=1,u=0;++u<t&&(o*=256);)n+=this[r+u]*o;return n};a.prototype.readUintBE=a.prototype.readUIntBE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r+--t],o=1;t>0&&(o*=256);)n+=this[r+--t]*o;return n};a.prototype.readUint8=a.prototype.readUInt8=function(r,t){return r=r>>>0,t||w(r,1,this.length),this[r]};a.prototype.readUint16LE=a.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||w(r,2,this.length),this[r]|this[r+1]<<8};a.prototype.readUint16BE=a.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||w(r,2,this.length),this[r]<<8|this[r+1]};a.prototype.readUint32LE=a.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||w(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};a.prototype.readUint32BE=a.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};a.prototype.readIntLE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r],o=1,u=0;++u<t&&(o*=256);)n+=this[r+u]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*t)),n};a.prototype.readIntBE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=t,o=1,u=this[r+--n];n>0&&(o*=256);)u+=this[r+--n]*o;return o*=128,u>=o&&(u-=Math.pow(2,8*t)),u};a.prototype.readInt8=function(r,t){return r=r>>>0,t||w(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};a.prototype.readInt16LE=function(r,t){r=r>>>0,t||w(r,2,this.length);var i=this[r]|this[r+1]<<8;return i&32768?i|4294901760:i};a.prototype.readInt16BE=function(r,t){r=r>>>0,t||w(r,2,this.length);var i=this[r+1]|this[r]<<8;return i&32768?i|4294901760:i};a.prototype.readInt32LE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};a.prototype.readInt32BE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};a.prototype.readFloatLE=function(r,t){return r=r>>>0,t||w(r,4,this.length),R.read(this,r,!0,23,4)};a.prototype.readFloatBE=function(r,t){return r=r>>>0,t||w(r,4,this.length),R.read(this,r,!1,23,4)};a.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||w(r,8,this.length),R.read(this,r,!0,52,8)};a.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||w(r,8,this.length),R.read(this,r,!1,52,8)};function y(e,r,t,i,n,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||r<o)throw new RangeError('"value" argument is out of bounds');if(t+i>e.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(r,t,i,n){if(r=+r,t=t>>>0,i=i>>>0,!n){var o=Math.pow(2,8*i)-1;y(this,r,t,i,o,0)}var u=1,h=0;for(this[t]=r&255;++h<i&&(u*=256);)this[t+h]=r/u&255;return t+i};a.prototype.writeUintBE=a.prototype.writeUIntBE=function(r,t,i,n){if(r=+r,t=t>>>0,i=i>>>0,!n){var o=Math.pow(2,8*i)-1;y(this,r,t,i,o,0)}var u=i-1,h=1;for(this[t+u]=r&255;--u>=0&&(h*=256);)this[t+u]=r/h&255;return t+i};a.prototype.writeUint8=a.prototype.writeUInt8=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,1,255,0),this[t]=r&255,t+1};a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};a.prototype.writeIntLE=function(r,t,i,n){if(r=+r,t=t>>>0,!n){var o=Math.pow(2,8*i-1);y(this,r,t,i,o-1,-o)}var u=0,h=1,f=0;for(this[t]=r&255;++u<i&&(h*=256);)r<0&&f===0&&this[t+u-1]!==0&&(f=1),this[t+u]=(r/h>>0)-f&255;return t+i};a.prototype.writeIntBE=function(r,t,i,n){if(r=+r,t=t>>>0,!n){var o=Math.pow(2,8*i-1);y(this,r,t,i,o-1,-o)}var u=i-1,h=1,f=0;for(this[t+u]=r&255;--u>=0&&(h*=256);)r<0&&f===0&&this[t+u+1]!==0&&(f=1),this[t+u]=(r/h>>0)-f&255;return t+i};a.prototype.writeInt8=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};a.prototype.writeInt16LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeInt16BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeInt32LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};a.prototype.writeInt32BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function xr(e,r,t,i,n,o){if(t+i>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function mr(e,r,t,i,n){return r=+r,t=t>>>0,n||xr(e,r,t,4,34028234663852886e22,-34028234663852886e22),R.write(e,r,t,i,23,4),t+4}a.prototype.writeFloatLE=function(r,t,i){return mr(this,r,t,!0,i)};a.prototype.writeFloatBE=function(r,t,i){return mr(this,r,t,!1,i)};function Er(e,r,t,i,n){return r=+r,t=t>>>0,n||xr(e,r,t,8,17976931348623157e292,-17976931348623157e292),R.write(e,r,t,i,52,8),t+8}a.prototype.writeDoubleLE=function(r,t,i){return Er(this,r,t,!0,i)};a.prototype.writeDoubleBE=function(r,t,i){return Er(this,r,t,!1,i)};a.prototype.copy=function(r,t,i,n){if(!a.isBuffer(r))throw new TypeError("argument should be a Buffer");if(i||(i=0),!n&&n!==0&&(n=this.length),t>=r.length&&(t=r.length),t||(t=0),n>0&&n<i&&(n=i),n===i||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-t<n-i&&(n=r.length-t+i);var o=n-i;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,i,n):Uint8Array.prototype.set.call(r,this.subarray(i,n),t),o};a.prototype.fill=function(r,t,i,n){if(typeof r=="string"){if(typeof t=="string"?(n=t,t=0,i=this.length):typeof i=="string"&&(n=i,i=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!a.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(r.length===1){var o=r.charCodeAt(0);(n==="utf8"&&o<128||n==="latin1")&&(r=o)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;t=t>>>0,i=i===void 0?this.length:i>>>0,r||(r=0);var u;if(typeof r=="number")for(u=t;u<i;++u)this[u]=r;else{var h=a.isBuffer(r)?r:a.from(r,n),f=h.length;if(f===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(u=0;u<i-t;++u)this[u+t]=h[u%f]}return this};var at=/[^+/0-9A-Za-z-_]/g;function ht(e){if(e=e.split("=")[0],e=e.trim().replace(at,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Z(e,r){r=r||1/0;for(var t,i=e.length,n=null,o=[],u=0;u<i;++u){if(t=e.charCodeAt(u),t>55295&&t<57344){if(!n){if(t>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(u+1===i){(r-=3)>-1&&o.push(239,191,189);continue}n=t;continue}if(t<56320){(r-=3)>-1&&o.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(r-=3)>-1&&o.push(239,191,189);if(n=null,t<128){if((r-=1)<0)break;o.push(t)}else if(t<2048){if((r-=2)<0)break;o.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;o.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return o}function ft(e){for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function pt(e,r){for(var t,i,n,o=[],u=0;u<e.length&&!((r-=2)<0);++u)t=e.charCodeAt(u),i=t>>8,n=t%256,o.push(n),o.push(i);return o}function gr(e){return z.toByteArray(ht(e))}function V(e,r,t,i){for(var n=0;n<i&&!(n+t>=r.length||n>=e.length);++n)r[n+t]=e[n];return n}function B(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function j(e){return e!==e}var ct=function(){for(var e="0123456789abcdef",r=new Array(256),t=0;t<16;++t)for(var i=t*16,n=0;n<16;++n)r[i+n]=e[t]+e[n];return r}()});var Tr=W((Ft,Ur)=>{g();var l=Ur.exports={},A,v;function rr(){throw new Error("setTimeout has not been defined")}function tr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?A=setTimeout:A=rr}catch(e){A=rr}try{typeof clearTimeout=="function"?v=clearTimeout:v=tr}catch(e){v=tr}})();function Br(e){if(A===setTimeout)return setTimeout(e,0);if((A===rr||!A)&&setTimeout)return A=setTimeout,setTimeout(e,0);try{return A(e,0)}catch(r){try{return A.call(null,e,0)}catch(t){return A.call(this,e,0)}}}function st(e){if(v===clearTimeout)return clearTimeout(e);if((v===tr||!v)&&clearTimeout)return v=clearTimeout,clearTimeout(e);try{return v(e)}catch(r){try{return v.call(null,e)}catch(t){return v.call(this,e)}}}var T=[],k=!1,S,X=-1;function lt(){!k||!S||(k=!1,S.length?T=S.concat(T):X=-1,T.length&&Ar())}function Ar(){if(!k){var e=Br(lt);k=!0;for(var r=T.length;r;){for(S=T,T=[];++X<r;)S&&S[X].run();X=-1,r=T.length}S=null,k=!1,st(e)}}l.nextTick=function(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];T.push(new vr(e,r)),T.length===1&&!k&&Br(Ar)};function vr(e,r){this.fun=e,this.array=r}vr.prototype.run=function(){this.fun.apply(null,this.array)};l.title="browser";l.browser=!0;l.env={};l.argv=[];l.version="";l.versions={};function I(){}l.on=I;l.addListener=I;l.once=I;l.off=I;l.removeListener=I;l.removeAllListeners=I;l.emit=I;l.prependListener=I;l.prependOnceListener=I;l.listeners=function(e){return[]};l.binding=function(e){throw new Error("process.binding is not supported")};l.cwd=function(){return"/"};l.chdir=function(e){throw new Error("process.chdir is not supported")};l.umask=function(){return 0}});var M,D,Bt,g=_r(()=>{M=ir(Fr()),D=ir(Tr()),Bt=function(e){function r(){var i=this||self;return delete e.prototype.__magic__,i}if(typeof globalThis=="object")return globalThis;if(this)return r();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:r});var t=__magic__;return t}(Object)});var yt={};kr(yt,{useVerifyMessage:()=>wt});module.exports=Dr(yt);g();var b=require("@multiversx/sdk-core/out"),Ir=require("@multiversx/sdk-core/out/signature"),G=require("@multiversx/sdk-wallet"),wt=()=>e=>{let{message:r,address:t,signature:i}=JSON.parse(e),n=new b.SignableMessage({address:new b.Address(t),message:M.Buffer.from(r.replace("0x",""),"hex"),signature:new Ir.Signature(i)}),o=new G.UserPublicKey(b.Address.fromString(t).pubkey());return new G.UserVerifier(o).verify(n)};0&&(module.exports={useVerifyMessage});
|
|
1
|
+
"use strict";var Cr=Object.create;var N=Object.defineProperty;var Sr=Object.getOwnPropertyDescriptor;var Lr=Object.getOwnPropertyNames;var Mr=Object.getPrototypeOf,Rr=Object.prototype.hasOwnProperty;var _r=(e,r)=>()=>(e&&(r=e(e=0)),r);var W=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),kr=(e,r)=>{for(var t in r)N(e,t,{get:r[t],enumerable:!0})},er=(e,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Lr(r))!Rr.call(e,n)&&n!==t&&N(e,n,{get:()=>r[n],enumerable:!(i=Sr(r,n))||i.enumerable});return e};var ir=(e,r,t)=>(t=e!=null?Cr(Mr(e)):{},er(r||!e||!e.__esModule?N(t,"default",{value:e,enumerable:!0}):t,e)),br=e=>er(N({},"__esModule",{value:!0}),e);var ur=W(Y=>{"use strict";g();Y.byteLength=Nr;Y.toByteArray=Yr;Y.fromByteArray=Hr;var F=[],m=[],Dr=typeof Uint8Array!="undefined"?Uint8Array:Array,J="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(I=0,nr=J.length;I<nr;++I)F[I]=J[I],m[J.charCodeAt(I)]=I;var I,nr;m["-".charCodeAt(0)]=62;m["_".charCodeAt(0)]=63;function or(e){var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var i=t===r?0:4-t%4;return[t,i]}function Nr(e){var r=or(e),t=r[0],i=r[1];return(t+i)*3/4-i}function Wr(e,r,t){return(r+t)*3/4-t}function Yr(e){var r,t=or(e),i=t[0],n=t[1],o=new Dr(Wr(e,i,n)),u=0,h=n>0?i-4:i,f;for(f=0;f<h;f+=4)r=m[e.charCodeAt(f)]<<18|m[e.charCodeAt(f+1)]<<12|m[e.charCodeAt(f+2)]<<6|m[e.charCodeAt(f+3)],o[u++]=r>>16&255,o[u++]=r>>8&255,o[u++]=r&255;return n===2&&(r=m[e.charCodeAt(f)]<<2|m[e.charCodeAt(f+1)]>>4,o[u++]=r&255),n===1&&(r=m[e.charCodeAt(f)]<<10|m[e.charCodeAt(f+1)]<<4|m[e.charCodeAt(f+2)]>>2,o[u++]=r>>8&255,o[u++]=r&255),o}function qr(e){return F[e>>18&63]+F[e>>12&63]+F[e>>6&63]+F[e&63]}function Vr(e,r,t){for(var i,n=[],o=r;o<t;o+=3)i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),n.push(qr(i));return n.join("")}function Hr(e){for(var r,t=e.length,i=t%3,n=[],o=16383,u=0,h=t-i;u<h;u+=o)n.push(Vr(e,u,u+o>h?h:u+o));return i===1?(r=e[t-1],n.push(F[r>>2]+F[r<<4&63]+"==")):i===2&&(r=(e[t-2]<<8)+e[t-1],n.push(F[r>>10]+F[r>>4&63]+F[r<<2&63]+"=")),n.join("")}});var ar=W(K=>{g();K.read=function(e,r,t,i,n){var o,u,h=n*8-i-1,f=(1<<h)-1,c=f>>1,s=-7,p=t?n-1:0,E=t?-1:1,x=e[r+p];for(p+=E,o=x&(1<<-s)-1,x>>=-s,s+=h;s>0;o=o*256+e[r+p],p+=E,s-=8);for(u=o&(1<<-s)-1,o>>=-s,s+=i;s>0;u=u*256+e[r+p],p+=E,s-=8);if(o===0)o=1-c;else{if(o===f)return u?NaN:(x?-1:1)*(1/0);u=u+Math.pow(2,i),o=o-c}return(x?-1:1)*u*Math.pow(2,o-i)};K.write=function(e,r,t,i,n,o){var u,h,f,c=o*8-n-1,s=(1<<c)-1,p=s>>1,E=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=i?0:o-1,L=i?1:-1,Ir=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(h=isNaN(r)?1:0,u=s):(u=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-u))<1&&(u--,f*=2),u+p>=1?r+=E/f:r+=E*Math.pow(2,1-p),r*f>=2&&(u++,f/=2),u+p>=s?(h=0,u=s):u+p>=1?(h=(r*f-1)*Math.pow(2,n),u=u+p):(h=r*Math.pow(2,p-1)*Math.pow(2,n),u=0));n>=8;e[t+x]=h&255,x+=L,h/=256,n-=8);for(u=u<<n|h,c+=n;c>0;e[t+x]=u&255,x+=L,u/=256,c-=8);e[t+x-L]|=Ir*128}});var Fr=W(_=>{"use strict";g();var z=ur(),R=ar(),hr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;_.Buffer=a;_.SlowBuffer=Or;_.INSPECT_MAX_BYTES=50;var V=2147483647;_.kMaxLength=V;a.TYPED_ARRAY_SUPPORT=Xr();!a.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Xr(){try{var e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(t){return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.buffer}});Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.byteOffset}});function U(e){if(e>V)throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=new Uint8Array(e);return Object.setPrototypeOf(r,a.prototype),r}function a(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return $(e)}return cr(e,r,t)}a.poolSize=8192;function cr(e,r,t){if(typeof e=="string")return Jr(e,r);if(ArrayBuffer.isView(e))return Kr(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(B(e,ArrayBuffer)||e&&B(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(B(e,SharedArrayBuffer)||e&&B(e.buffer,SharedArrayBuffer)))return Q(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(i!=null&&i!==e)return a.from(i,r,t);var n=zr(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return a.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}a.from=function(e,r,t){return cr(e,r,t)};Object.setPrototypeOf(a.prototype,Uint8Array.prototype);Object.setPrototypeOf(a,Uint8Array);function sr(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Gr(e,r,t){return sr(e),e<=0?U(e):r!==void 0?typeof t=="string"?U(e).fill(r,t):U(e).fill(r):U(e)}a.alloc=function(e,r,t){return Gr(e,r,t)};function $(e){return sr(e),U(e<0?0:P(e)|0)}a.allocUnsafe=function(e){return $(e)};a.allocUnsafeSlow=function(e){return $(e)};function Jr(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var t=lr(e,r)|0,i=U(t),n=i.write(e,r);return n!==t&&(i=i.slice(0,n)),i}function O(e){for(var r=e.length<0?0:P(e.length)|0,t=U(r),i=0;i<r;i+=1)t[i]=e[i]&255;return t}function Kr(e){if(B(e,Uint8Array)){var r=new Uint8Array(e);return Q(r.buffer,r.byteOffset,r.byteLength)}return O(e)}function Q(e,r,t){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');var i;return r===void 0&&t===void 0?i=new Uint8Array(e):t===void 0?i=new Uint8Array(e,r):i=new Uint8Array(e,r,t),Object.setPrototypeOf(i,a.prototype),i}function zr(e){if(a.isBuffer(e)){var r=P(e.length)|0,t=U(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||j(e.length)?U(0):O(e);if(e.type==="Buffer"&&Array.isArray(e.data))return O(e.data)}function P(e){if(e>=V)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+V.toString(16)+" bytes");return e|0}function Or(e){return+e!=e&&(e=0),a.alloc(+e)}a.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==a.prototype};a.compare=function(r,t){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),B(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(r)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;for(var i=r.length,n=t.length,o=0,u=Math.min(i,n);o<u;++o)if(r[o]!==t[o]){i=r[o],n=t[o];break}return i<n?-1:n<i?1:0};a.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};a.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return a.alloc(0);var i;if(t===void 0)for(t=0,i=0;i<r.length;++i)t+=r[i].length;var n=a.allocUnsafe(t),o=0;for(i=0;i<r.length;++i){var u=r[i];if(B(u,Uint8Array))o+u.length>n.length?a.from(u).copy(n,o):Uint8Array.prototype.set.call(n,u,o);else if(a.isBuffer(u))u.copy(n,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=u.length}return n};function lr(e,r){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||B(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var t=e.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&t===0)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return Z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return gr(e).length;default:if(n)return i?-1:Z(e).length;r=(""+r).toLowerCase(),n=!0}}a.byteLength=lr;function Qr(e,r,t){var i=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return ot(this,r,t);case"utf8":case"utf-8":return yr(this,r,t);case"ascii":return it(this,r,t);case"latin1":case"binary":return nt(this,r,t);case"base64":return tt(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ut(this,r,t);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}a.prototype._isBuffer=!0;function C(e,r,t){var i=e[r];e[r]=e[t],e[t]=i}a.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<r;t+=2)C(this,t,t+1);return this};a.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<r;t+=4)C(this,t,t+3),C(this,t+1,t+2);return this};a.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<r;t+=8)C(this,t,t+7),C(this,t+1,t+6),C(this,t+2,t+5),C(this,t+3,t+4);return this};a.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?yr(this,0,r):Qr.apply(this,arguments)};a.prototype.toLocaleString=a.prototype.toString;a.prototype.equals=function(r){if(!a.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:a.compare(this,r)===0};a.prototype.inspect=function(){var r="",t=_.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};hr&&(a.prototype[hr]=a.prototype.inspect);a.prototype.compare=function(r,t,i,n,o){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),!a.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),i===void 0&&(i=r?r.length:0),n===void 0&&(n=0),o===void 0&&(o=this.length),t<0||i>r.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=i)return 0;if(n>=o)return-1;if(t>=i)return 1;if(t>>>=0,i>>>=0,n>>>=0,o>>>=0,this===r)return 0;for(var u=o-n,h=i-t,f=Math.min(u,h),c=this.slice(n,o),s=r.slice(t,i),p=0;p<f;++p)if(c[p]!==s[p]){u=c[p],h=s[p];break}return u<h?-1:h<u?1:0};function wr(e,r,t,i,n){if(e.length===0)return-1;if(typeof t=="string"?(i=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,j(t)&&(t=n?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(n)return-1;t=e.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof r=="string"&&(r=a.from(r,i)),a.isBuffer(r))return r.length===0?-1:fr(e,r,t,i,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):fr(e,[r],t,i,n);throw new TypeError("val must be string, number or Buffer")}function fr(e,r,t,i,n){var o=1,u=e.length,h=r.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(e.length<2||r.length<2)return-1;o=2,u/=2,h/=2,t/=2}function f(x,L){return o===1?x[L]:x.readUInt16BE(L*o)}var c;if(n){var s=-1;for(c=t;c<u;c++)if(f(e,c)===f(r,s===-1?0:c-s)){if(s===-1&&(s=c),c-s+1===h)return s*o}else s!==-1&&(c-=c-s),s=-1}else for(t+h>u&&(t=u-h),c=t;c>=0;c--){for(var p=!0,E=0;E<h;E++)if(f(e,c+E)!==f(r,E)){p=!1;break}if(p)return c}return-1}a.prototype.includes=function(r,t,i){return this.indexOf(r,t,i)!==-1};a.prototype.indexOf=function(r,t,i){return wr(this,r,t,i,!0)};a.prototype.lastIndexOf=function(r,t,i){return wr(this,r,t,i,!1)};function Zr(e,r,t,i){t=Number(t)||0;var n=e.length-t;i?(i=Number(i),i>n&&(i=n)):i=n;var o=r.length;i>o/2&&(i=o/2);for(var u=0;u<i;++u){var h=parseInt(r.substr(u*2,2),16);if(j(h))return u;e[t+u]=h}return u}function $r(e,r,t,i){return H(Z(r,e.length-t),e,t,i)}function Pr(e,r,t,i){return H(ft(r),e,t,i)}function jr(e,r,t,i){return H(gr(r),e,t,i)}function rt(e,r,t,i){return H(pt(r,e.length-t),e,t,i)}a.prototype.write=function(r,t,i,n){if(t===void 0)n="utf8",i=this.length,t=0;else if(i===void 0&&typeof t=="string")n=t,i=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(i)?(i=i>>>0,n===void 0&&(n="utf8")):(n=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-t;if((i===void 0||i>o)&&(i=o),r.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var u=!1;;)switch(n){case"hex":return Zr(this,r,t,i);case"utf8":case"utf-8":return $r(this,r,t,i);case"ascii":case"latin1":case"binary":return Pr(this,r,t,i);case"base64":return jr(this,r,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return rt(this,r,t,i);default:if(u)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),u=!0}};a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function tt(e,r,t){return r===0&&t===e.length?z.fromByteArray(e):z.fromByteArray(e.slice(r,t))}function yr(e,r,t){t=Math.min(e.length,t);for(var i=[],n=r;n<t;){var o=e[n],u=null,h=o>239?4:o>223?3:o>191?2:1;if(n+h<=t){var f,c,s,p;switch(h){case 1:o<128&&(u=o);break;case 2:f=e[n+1],(f&192)===128&&(p=(o&31)<<6|f&63,p>127&&(u=p));break;case 3:f=e[n+1],c=e[n+2],(f&192)===128&&(c&192)===128&&(p=(o&15)<<12|(f&63)<<6|c&63,p>2047&&(p<55296||p>57343)&&(u=p));break;case 4:f=e[n+1],c=e[n+2],s=e[n+3],(f&192)===128&&(c&192)===128&&(s&192)===128&&(p=(o&15)<<18|(f&63)<<12|(c&63)<<6|s&63,p>65535&&p<1114112&&(u=p))}}u===null?(u=65533,h=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|u&1023),i.push(u),n+=h}return et(i)}var pr=4096;function et(e){var r=e.length;if(r<=pr)return String.fromCharCode.apply(String,e);for(var t="",i=0;i<r;)t+=String.fromCharCode.apply(String,e.slice(i,i+=pr));return t}function it(e,r,t){var i="";t=Math.min(e.length,t);for(var n=r;n<t;++n)i+=String.fromCharCode(e[n]&127);return i}function nt(e,r,t){var i="";t=Math.min(e.length,t);for(var n=r;n<t;++n)i+=String.fromCharCode(e[n]);return i}function ot(e,r,t){var i=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>i)&&(t=i);for(var n="",o=r;o<t;++o)n+=ct[e[o]];return n}function ut(e,r,t){for(var i=e.slice(r,t),n="",o=0;o<i.length-1;o+=2)n+=String.fromCharCode(i[o]+i[o+1]*256);return n}a.prototype.slice=function(r,t){var i=this.length;r=~~r,t=t===void 0?i:~~t,r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t<r&&(t=r);var n=this.subarray(r,t);return Object.setPrototypeOf(n,a.prototype),n};function w(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r],o=1,u=0;++u<t&&(o*=256);)n+=this[r+u]*o;return n};a.prototype.readUintBE=a.prototype.readUIntBE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r+--t],o=1;t>0&&(o*=256);)n+=this[r+--t]*o;return n};a.prototype.readUint8=a.prototype.readUInt8=function(r,t){return r=r>>>0,t||w(r,1,this.length),this[r]};a.prototype.readUint16LE=a.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||w(r,2,this.length),this[r]|this[r+1]<<8};a.prototype.readUint16BE=a.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||w(r,2,this.length),this[r]<<8|this[r+1]};a.prototype.readUint32LE=a.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||w(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};a.prototype.readUint32BE=a.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};a.prototype.readIntLE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r],o=1,u=0;++u<t&&(o*=256);)n+=this[r+u]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*t)),n};a.prototype.readIntBE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=t,o=1,u=this[r+--n];n>0&&(o*=256);)u+=this[r+--n]*o;return o*=128,u>=o&&(u-=Math.pow(2,8*t)),u};a.prototype.readInt8=function(r,t){return r=r>>>0,t||w(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};a.prototype.readInt16LE=function(r,t){r=r>>>0,t||w(r,2,this.length);var i=this[r]|this[r+1]<<8;return i&32768?i|4294901760:i};a.prototype.readInt16BE=function(r,t){r=r>>>0,t||w(r,2,this.length);var i=this[r+1]|this[r]<<8;return i&32768?i|4294901760:i};a.prototype.readInt32LE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};a.prototype.readInt32BE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};a.prototype.readFloatLE=function(r,t){return r=r>>>0,t||w(r,4,this.length),R.read(this,r,!0,23,4)};a.prototype.readFloatBE=function(r,t){return r=r>>>0,t||w(r,4,this.length),R.read(this,r,!1,23,4)};a.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||w(r,8,this.length),R.read(this,r,!0,52,8)};a.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||w(r,8,this.length),R.read(this,r,!1,52,8)};function y(e,r,t,i,n,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||r<o)throw new RangeError('"value" argument is out of bounds');if(t+i>e.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(r,t,i,n){if(r=+r,t=t>>>0,i=i>>>0,!n){var o=Math.pow(2,8*i)-1;y(this,r,t,i,o,0)}var u=1,h=0;for(this[t]=r&255;++h<i&&(u*=256);)this[t+h]=r/u&255;return t+i};a.prototype.writeUintBE=a.prototype.writeUIntBE=function(r,t,i,n){if(r=+r,t=t>>>0,i=i>>>0,!n){var o=Math.pow(2,8*i)-1;y(this,r,t,i,o,0)}var u=i-1,h=1;for(this[t+u]=r&255;--u>=0&&(h*=256);)this[t+u]=r/h&255;return t+i};a.prototype.writeUint8=a.prototype.writeUInt8=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,1,255,0),this[t]=r&255,t+1};a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};a.prototype.writeIntLE=function(r,t,i,n){if(r=+r,t=t>>>0,!n){var o=Math.pow(2,8*i-1);y(this,r,t,i,o-1,-o)}var u=0,h=1,f=0;for(this[t]=r&255;++u<i&&(h*=256);)r<0&&f===0&&this[t+u-1]!==0&&(f=1),this[t+u]=(r/h>>0)-f&255;return t+i};a.prototype.writeIntBE=function(r,t,i,n){if(r=+r,t=t>>>0,!n){var o=Math.pow(2,8*i-1);y(this,r,t,i,o-1,-o)}var u=i-1,h=1,f=0;for(this[t+u]=r&255;--u>=0&&(h*=256);)r<0&&f===0&&this[t+u+1]!==0&&(f=1),this[t+u]=(r/h>>0)-f&255;return t+i};a.prototype.writeInt8=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};a.prototype.writeInt16LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeInt16BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeInt32LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};a.prototype.writeInt32BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function xr(e,r,t,i,n,o){if(t+i>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function mr(e,r,t,i,n){return r=+r,t=t>>>0,n||xr(e,r,t,4,34028234663852886e22,-34028234663852886e22),R.write(e,r,t,i,23,4),t+4}a.prototype.writeFloatLE=function(r,t,i){return mr(this,r,t,!0,i)};a.prototype.writeFloatBE=function(r,t,i){return mr(this,r,t,!1,i)};function Er(e,r,t,i,n){return r=+r,t=t>>>0,n||xr(e,r,t,8,17976931348623157e292,-17976931348623157e292),R.write(e,r,t,i,52,8),t+8}a.prototype.writeDoubleLE=function(r,t,i){return Er(this,r,t,!0,i)};a.prototype.writeDoubleBE=function(r,t,i){return Er(this,r,t,!1,i)};a.prototype.copy=function(r,t,i,n){if(!a.isBuffer(r))throw new TypeError("argument should be a Buffer");if(i||(i=0),!n&&n!==0&&(n=this.length),t>=r.length&&(t=r.length),t||(t=0),n>0&&n<i&&(n=i),n===i||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-t<n-i&&(n=r.length-t+i);var o=n-i;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,i,n):Uint8Array.prototype.set.call(r,this.subarray(i,n),t),o};a.prototype.fill=function(r,t,i,n){if(typeof r=="string"){if(typeof t=="string"?(n=t,t=0,i=this.length):typeof i=="string"&&(n=i,i=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!a.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(r.length===1){var o=r.charCodeAt(0);(n==="utf8"&&o<128||n==="latin1")&&(r=o)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;t=t>>>0,i=i===void 0?this.length:i>>>0,r||(r=0);var u;if(typeof r=="number")for(u=t;u<i;++u)this[u]=r;else{var h=a.isBuffer(r)?r:a.from(r,n),f=h.length;if(f===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(u=0;u<i-t;++u)this[u+t]=h[u%f]}return this};var at=/[^+/0-9A-Za-z-_]/g;function ht(e){if(e=e.split("=")[0],e=e.trim().replace(at,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Z(e,r){r=r||1/0;for(var t,i=e.length,n=null,o=[],u=0;u<i;++u){if(t=e.charCodeAt(u),t>55295&&t<57344){if(!n){if(t>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(u+1===i){(r-=3)>-1&&o.push(239,191,189);continue}n=t;continue}if(t<56320){(r-=3)>-1&&o.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(r-=3)>-1&&o.push(239,191,189);if(n=null,t<128){if((r-=1)<0)break;o.push(t)}else if(t<2048){if((r-=2)<0)break;o.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;o.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return o}function ft(e){for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function pt(e,r){for(var t,i,n,o=[],u=0;u<e.length&&!((r-=2)<0);++u)t=e.charCodeAt(u),i=t>>8,n=t%256,o.push(n),o.push(i);return o}function gr(e){return z.toByteArray(ht(e))}function H(e,r,t,i){for(var n=0;n<i&&!(n+t>=r.length||n>=e.length);++n)r[n+t]=e[n];return n}function B(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function j(e){return e!==e}var ct=function(){for(var e="0123456789abcdef",r=new Array(256),t=0;t<16;++t)for(var i=t*16,n=0;n<16;++n)r[i+n]=e[t]+e[n];return r}()});var dr=W((Ft,Ur)=>{g();var l=Ur.exports={},A,v;function rr(){throw new Error("setTimeout has not been defined")}function tr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?A=setTimeout:A=rr}catch(e){A=rr}try{typeof clearTimeout=="function"?v=clearTimeout:v=tr}catch(e){v=tr}})();function Br(e){if(A===setTimeout)return setTimeout(e,0);if((A===rr||!A)&&setTimeout)return A=setTimeout,setTimeout(e,0);try{return A(e,0)}catch(r){try{return A.call(null,e,0)}catch(t){return A.call(this,e,0)}}}function st(e){if(v===clearTimeout)return clearTimeout(e);if((v===tr||!v)&&clearTimeout)return v=clearTimeout,clearTimeout(e);try{return v(e)}catch(r){try{return v.call(null,e)}catch(t){return v.call(this,e)}}}var d=[],k=!1,S,X=-1;function lt(){!k||!S||(k=!1,S.length?d=S.concat(d):X=-1,d.length&&Ar())}function Ar(){if(!k){var e=Br(lt);k=!0;for(var r=d.length;r;){for(S=d,d=[];++X<r;)S&&S[X].run();X=-1,r=d.length}S=null,k=!1,st(e)}}l.nextTick=function(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];d.push(new vr(e,r)),d.length===1&&!k&&Br(Ar)};function vr(e,r){this.fun=e,this.array=r}vr.prototype.run=function(){this.fun.apply(null,this.array)};l.title="browser";l.browser=!0;l.env={};l.argv=[];l.version="";l.versions={};function T(){}l.on=T;l.addListener=T;l.once=T;l.off=T;l.removeListener=T;l.removeAllListeners=T;l.emit=T;l.prependListener=T;l.prependOnceListener=T;l.listeners=function(e){return[]};l.binding=function(e){throw new Error("process.binding is not supported")};l.cwd=function(){return"/"};l.chdir=function(e){throw new Error("process.chdir is not supported")};l.umask=function(){return 0}});var M,b,Bt,g=_r(()=>{M=ir(Fr()),b=ir(dr()),Bt=function(e){function r(){var i=this||self;return delete e.prototype.__magic__,i}if(typeof globalThis=="object")return globalThis;if(this)return r();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:r});var t=__magic__;return t}(Object)});var yt={};kr(yt,{verifyMessage:()=>wt});module.exports=br(yt);g();var D=require("@multiversx/sdk-core/out"),Tr=require("@multiversx/sdk-core/out/signature"),G=require("@multiversx/sdk-wallet"),wt=e=>{try{let{message:r,address:t,signature:i}=JSON.parse(e),n=M.Buffer.from(r.replace("0x",""),"hex"),o=new D.Address(t),u=new D.SignableMessage({address:o,message:n,signature:new Tr.Signature(i)}),h=new G.UserPublicKey(D.Address.fromString(t).pubkey());return{isVerified:new G.UserVerifier(h).verify(u),message:n.toString(),address:t}}catch(r){return{isVerified:!1,message:"",address:""}}};0&&(module.exports={verifyMessage});
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
* @license MIT
|
|
7
7
|
*/
|
|
8
8
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
9
|
-
//# sourceMappingURL=
|
|
9
|
+
//# sourceMappingURL=verifyMessage.js.map
|