@multiversx/sdk-dapp 2.12.7 → 2.12.9
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/NotificationModal.js +1 -1
- package/UI/NotificationModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/SignWithDeviceModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/SignStepBody.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtraModal/SignWithExtraModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/SignWithLedgerModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithOperaModal/SignWithOperaModal.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/AccountName.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/Trim/Trim.js +1 -1
- package/UI/Trim/index.js +1 -1
- package/UI/UsdValue/UsdValue.js +1 -1
- package/UI/UsdValue/index.js +1 -1
- package/UI/extension/ExtensionLoginButton/ExtensionLoginButton.js +1 -1
- package/UI/extension/ExtensionLoginButton/index.js +1 -1
- package/UI/index.js +1 -1
- package/UI/ledger/LedgerLoginButton/LedgerLoginButton.js +1 -1
- package/UI/ledger/LedgerLoginButton/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressRow.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/OperaWalletLoginButton.js +1 -1
- package/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
- package/UI/pages/UnlockPage/index.js +1 -1
- package/UI/pages/index.js +1 -1
- package/UI/walletConnect/WalletConnectConnectionStatus/WalletConnectConnectionStatus.js +1 -1
- package/UI/walletConnect/WalletConnectConnectionStatus/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginButton/WalletConnectLoginButton.js +1 -1
- package/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
- package/UI/walletConnect/index.js +1 -1
- package/UI/webWallet/WebWalletLoginButton/WebWalletLoginButton.js +1 -1
- package/UI/webWallet/WebWalletLoginButton/index.js +1 -1
- package/__chunks__/{chunk-LBX3NVTC.js → chunk-25TTQGEX.js} +2 -2
- package/__chunks__/chunk-2BLNKKQV.js +2 -0
- package/__chunks__/chunk-2BTY3EO2.js +2 -0
- package/__chunks__/{chunk-KWX447BW.js → chunk-2PENUQYV.js} +2 -2
- package/__chunks__/{chunk-43KKXRC2.js → chunk-2PHNBV5S.js} +2 -2
- package/__chunks__/{chunk-OQEMXMDD.js → chunk-2SLPJGXG.js} +2 -2
- package/__chunks__/{chunk-HFQEDJ2B.js → chunk-3HZD5T6Q.js} +2 -2
- package/__chunks__/{chunk-GU3PXNAY.js → chunk-3IC3OYH5.js} +2 -2
- package/__chunks__/chunk-3OGDWVO7.js +2 -0
- package/__chunks__/{chunk-3JQJVPDO.js → chunk-3R7ET7XL.js} +2 -2
- package/__chunks__/chunk-3THCFE3J.js +2 -0
- package/__chunks__/{chunk-N2ZBQYKD.js → chunk-3WFJFXHY.js} +2 -2
- package/__chunks__/{chunk-BVZVVWO6.js → chunk-4CAZDF4D.js} +2 -2
- package/__chunks__/{chunk-KRXH6FKC.js → chunk-4FE3KVGP.js} +2 -2
- package/__chunks__/{chunk-WXFYRHD2.js → chunk-4JYZVFIV.js} +2 -2
- package/__chunks__/{chunk-ZMLTCUNQ.js → chunk-4KYCLIP2.js} +2 -2
- package/__chunks__/{chunk-OC7RHJY6.js → chunk-4T5TFHF6.js} +2 -2
- package/__chunks__/{chunk-A44Y55F7.js → chunk-4TCBBUSU.js} +2 -2
- package/__chunks__/{chunk-WROIAT2N.js → chunk-53Z7RDHU.js} +2 -2
- package/__chunks__/{chunk-7STA5D2T.js → chunk-56B7W2CE.js} +2 -2
- package/__chunks__/{chunk-4DGKR73R.js → chunk-56SUHXO3.js} +2 -2
- package/__chunks__/{chunk-LMH5D7PO.js → chunk-57NMXSRH.js} +2 -2
- package/__chunks__/{chunk-HLLGV3J2.js → chunk-5HZXCEQP.js} +2 -2
- package/__chunks__/{chunk-5RTGGHL7.js → chunk-5ICW6RLY.js} +2 -2
- package/__chunks__/{chunk-UHCLDQPY.js → chunk-5KKL6JIU.js} +2 -2
- package/__chunks__/{chunk-NGTYLR2P.js → chunk-5NDR2D3X.js} +2 -2
- package/__chunks__/chunk-5OHINNEN.js +2 -0
- package/__chunks__/chunk-5OYFXQSK.js +2 -0
- package/__chunks__/{chunk-YISI3TO4.js → chunk-5RPCQPBF.js} +2 -2
- package/__chunks__/{chunk-SINZVRGH.js → chunk-5WVG4JZ7.js} +2 -2
- package/__chunks__/{chunk-A5MGV2PF.js → chunk-5YGIUAD2.js} +2 -2
- package/__chunks__/{chunk-2YAOMBOW.js → chunk-5ZIX54TL.js} +2 -2
- package/__chunks__/{chunk-LNYWXGW7.js → chunk-6BNAALDP.js} +2 -2
- package/__chunks__/{chunk-A4OOIO54.js → chunk-6K4XJH5A.js} +2 -2
- package/__chunks__/{chunk-XD4W6G6Z.js → chunk-6OMJ6CE3.js} +2 -2
- package/__chunks__/{chunk-7CRTEUXQ.js → chunk-6QPBOXBF.js} +2 -2
- package/__chunks__/{chunk-N623YQX6.js → chunk-6WNGX2UB.js} +2 -2
- package/__chunks__/{chunk-RT4HX36Y.js → chunk-74BGZJCF.js} +2 -2
- package/__chunks__/chunk-75Q5SGBX.js +2 -0
- package/__chunks__/chunk-7ETWKK72.js +2 -0
- package/__chunks__/{chunk-6ACULWGS.js → chunk-7HNXQY2P.js} +2 -2
- package/__chunks__/chunk-7KVNUW4X.js +2 -0
- package/__chunks__/chunk-7N3S4X5Z.js +2 -0
- package/__chunks__/{chunk-WYNDSNTB.js → chunk-7UGNRV3L.js} +2 -2
- package/__chunks__/{chunk-XSU33MQE.js → chunk-7YF2VSF3.js} +2 -2
- package/__chunks__/chunk-7ZSWPMJ4.js +2 -0
- package/__chunks__/{chunk-WUCNNANV.js → chunk-A2CJZ723.js} +2 -2
- package/__chunks__/{chunk-TIQDH77C.js → chunk-AGTRHMNE.js} +2 -2
- package/__chunks__/{chunk-BDZY57A6.js → chunk-AHAGSUXW.js} +2 -2
- package/__chunks__/{chunk-42HHDBSD.js → chunk-AZUNNOQY.js} +2 -2
- package/__chunks__/{chunk-XKNQBRZO.js → chunk-B2SQFN7A.js} +2 -2
- package/__chunks__/{chunk-BZI5U74P.js → chunk-B76A3L37.js} +2 -2
- package/__chunks__/{chunk-M37NJUED.js → chunk-BB2CFNPA.js} +2 -2
- package/__chunks__/{chunk-QMAHFUXC.js → chunk-BKXGJHZ3.js} +2 -2
- package/__chunks__/{chunk-SGTU3REC.js → chunk-BMDDZG5S.js} +2 -2
- package/__chunks__/{chunk-5AT2CLST.js → chunk-BT4VUQHG.js} +2 -2
- package/__chunks__/{chunk-KJYPS4WM.js → chunk-BTVXK5F6.js} +2 -2
- package/__chunks__/chunk-BUNAZAQ2.js +2 -0
- package/__chunks__/{chunk-FX4ZAXUB.js → chunk-BVCSDUY7.js} +2 -2
- package/__chunks__/chunk-BZIYSYBS.js +2 -0
- package/__chunks__/chunk-C2O57ZZ3.js +2 -0
- package/__chunks__/{chunk-C46ILTGH.js → chunk-C3UPWTUL.js} +2 -2
- package/__chunks__/{chunk-INRJLH3K.js → chunk-C4JP2AAG.js} +2 -2
- package/__chunks__/{chunk-BFBJHILF.js → chunk-CE2CKTCJ.js} +2 -2
- package/__chunks__/{chunk-PFR5SUOK.js → chunk-CIY3BJYV.js} +2 -2
- package/__chunks__/{chunk-4NWSTAAZ.js → chunk-CLPQUX3I.js} +2 -2
- package/__chunks__/{chunk-GSAU65SR.js → chunk-CRFC2MYX.js} +1 -1
- package/__chunks__/{chunk-IE3ZZJWG.js → chunk-CS2PI52S.js} +2 -2
- package/__chunks__/{chunk-K4DOQKCI.js → chunk-CSONSW5S.js} +2 -2
- package/__chunks__/{chunk-U3IQKDUV.js → chunk-CXX3IDIG.js} +2 -2
- package/__chunks__/{chunk-D4GAJYCJ.js → chunk-DCD6EPNO.js} +2 -2
- package/__chunks__/{chunk-IB3UZXZV.js → chunk-DEHX5LRO.js} +2 -2
- package/__chunks__/{chunk-B3VMBKYV.js → chunk-DELOCRND.js} +2 -2
- package/__chunks__/{chunk-TPQDDLQV.js → chunk-DHI6DZRI.js} +2 -2
- package/__chunks__/{chunk-KCBVOAE5.js → chunk-DQAQI23Z.js} +2 -2
- package/__chunks__/{chunk-E6MPNKOA.js → chunk-DTARVI54.js} +2 -2
- package/__chunks__/{chunk-PW5QTCOQ.js → chunk-DZG4H2UO.js} +2 -2
- package/__chunks__/{chunk-PZZ4E52R.js → chunk-E2B7GAGB.js} +2 -2
- package/__chunks__/{chunk-2UCCB3MP.js → chunk-E3RKWI4F.js} +2 -2
- package/__chunks__/{chunk-H4XPIFVE.js → chunk-E5LS66QV.js} +2 -2
- package/__chunks__/{chunk-HOXLOOU2.js → chunk-EAK4AGOD.js} +2 -2
- package/__chunks__/{chunk-FBQHXG72.js → chunk-EDS2UEWP.js} +2 -2
- package/__chunks__/{chunk-CXFIBSLH.js → chunk-EHO2KJIN.js} +2 -2
- package/__chunks__/{chunk-3FNKFXI5.js → chunk-EIM6YCMX.js} +2 -2
- package/__chunks__/{chunk-UZUMPS4D.js → chunk-EK6G5G7U.js} +2 -2
- package/__chunks__/{chunk-ZTX5FNGQ.js → chunk-ELJKPLDZ.js} +2 -2
- package/__chunks__/chunk-EPKOUSPT.js +2 -0
- package/__chunks__/{chunk-LINILSAX.js → chunk-ERRCJ5WO.js} +2 -2
- package/__chunks__/{chunk-GXFGHRHG.js → chunk-ESUOJPFZ.js} +2 -2
- package/__chunks__/{chunk-UZJLDHFK.js → chunk-EZYQY5TX.js} +2 -2
- package/__chunks__/{chunk-OSOVIQYW.js → chunk-F5WM6Q4M.js} +2 -2
- package/__chunks__/{chunk-NHCAYUOL.js → chunk-FFPTTQ2Z.js} +2 -2
- package/__chunks__/{chunk-2CXJKNSP.js → chunk-FKMZQ6PI.js} +2 -2
- package/__chunks__/{chunk-VSOXJIE4.js → chunk-FLSN4Q5V.js} +2 -2
- package/__chunks__/{chunk-CM2GINJO.js → chunk-FPFBQQ56.js} +2 -2
- package/__chunks__/{chunk-TTWKANGP.js → chunk-FWJZ5654.js} +2 -2
- package/__chunks__/{chunk-AMMIWVOK.js → chunk-FWMS2ZOY.js} +2 -2
- package/__chunks__/{chunk-36LSGICN.js → chunk-FX6M2Z7X.js} +2 -2
- package/__chunks__/{chunk-H2RDZWXV.js → chunk-G5H7YRBS.js} +2 -2
- package/__chunks__/{chunk-54I3HE7Z.js → chunk-GCPJTM3M.js} +2 -2
- package/__chunks__/{chunk-ILQFJH3G.js → chunk-GGBYOLVR.js} +2 -2
- package/__chunks__/{chunk-3WXHT4F4.js → chunk-GXICS4HS.js} +2 -2
- package/__chunks__/{chunk-NKVZAB3K.js → chunk-GZIH5BDU.js} +2 -2
- package/__chunks__/{chunk-WIA67UCL.js → chunk-HC2MOVRO.js} +2 -2
- package/__chunks__/{chunk-J27DLS5B.js → chunk-HI2HYZIX.js} +2 -2
- package/__chunks__/{chunk-OB5OXBGC.js → chunk-HST2GGJ4.js} +2 -2
- package/__chunks__/{chunk-FWQBX5ZR.js → chunk-HTLZKHTZ.js} +2 -2
- package/__chunks__/{chunk-F6BJUWL4.js → chunk-I2SADEBF.js} +2 -2
- package/__chunks__/{chunk-P4JG3FOF.js → chunk-I5UOXQG3.js} +2 -2
- package/__chunks__/{chunk-A7T4ZPNP.js → chunk-IC4MBEJO.js} +2 -2
- package/__chunks__/{chunk-TRJJUI2H.js → chunk-IEO7HJFG.js} +2 -2
- package/__chunks__/{chunk-B76SBLRL.js → chunk-IFU3X6UL.js} +2 -2
- package/__chunks__/{chunk-BWVLB3EN.js → chunk-IGGV5BN5.js} +2 -2
- package/__chunks__/{chunk-I2ESI53D.js → chunk-IIMMZPAX.js} +2 -2
- package/__chunks__/{chunk-PHXT4KGL.js → chunk-ILVOI5JX.js} +2 -2
- package/__chunks__/{chunk-HM4ZNOAG.js → chunk-ILWO7NM5.js} +2 -2
- package/__chunks__/{chunk-UTYB5SVR.js → chunk-IT535HRO.js} +2 -2
- package/__chunks__/{chunk-UH2JJ2OH.js → chunk-ITEK3GYE.js} +2 -2
- package/__chunks__/{chunk-JSEXLEYA.js → chunk-ITKI3OPN.js} +2 -2
- package/__chunks__/{chunk-2JYLGADI.js → chunk-J2T752PE.js} +2 -2
- package/__chunks__/chunk-J3OGDCG6.js +2 -0
- package/__chunks__/chunk-JG3M6MK2.js +2 -0
- package/__chunks__/{chunk-EVT7EQKU.js → chunk-JIOI46EQ.js} +2 -2
- package/__chunks__/{chunk-MEYIRXHK.js → chunk-JRB42IEO.js} +2 -2
- package/__chunks__/{chunk-DR52VSGD.js → chunk-JRYWXEFU.js} +2 -2
- package/__chunks__/{chunk-YCDWRKZR.js → chunk-JTCS3OCP.js} +2 -2
- package/__chunks__/chunk-JXE4FVEW.js +2 -0
- package/__chunks__/{chunk-JURTWYMD.js → chunk-K3YZ6F2M.js} +2 -2
- package/__chunks__/chunk-K6C3JJYH.js +2 -0
- package/__chunks__/{chunk-NJUUQIZ7.js → chunk-K6FG7P75.js} +2 -2
- package/__chunks__/{chunk-U5CE3C53.js → chunk-K7AQ2IOB.js} +2 -2
- package/__chunks__/{chunk-6NACE4ST.js → chunk-KGRMH2D7.js} +2 -2
- package/__chunks__/chunk-KL2XL2VN.js +2 -0
- package/__chunks__/{chunk-KYUV4GGN.js → chunk-KLFHVD2M.js} +2 -2
- package/__chunks__/{chunk-PUXPL4MQ.js → chunk-KOCSFAOU.js} +2 -2
- package/__chunks__/{chunk-2ZZI3WWK.js → chunk-KQWUKJ5U.js} +2 -2
- package/__chunks__/chunk-KTELSCIW.js +2 -0
- package/__chunks__/{chunk-35NDQJYP.js → chunk-KYLDQLLP.js} +2 -2
- package/__chunks__/{chunk-5U7BHTBF.js → chunk-L4V3H4JN.js} +2 -2
- package/__chunks__/{chunk-3F7ZGRBB.js → chunk-L7CJYIRS.js} +2 -2
- package/__chunks__/chunk-LDLA5E7Y.js +2 -0
- package/__chunks__/{chunk-DP5HIL2M.js → chunk-LHPTACPO.js} +2 -2
- package/__chunks__/chunk-LI6PILSE.js +2 -0
- package/__chunks__/{chunk-LY757UDU.js → chunk-LKA7Z7XC.js} +2 -2
- package/__chunks__/{chunk-5HE6XUP4.js → chunk-LQYR4BQ4.js} +2 -2
- package/__chunks__/{chunk-AQ72WZBJ.js → chunk-LWWTVBER.js} +2 -2
- package/__chunks__/{chunk-XAGUELOI.js → chunk-LXWSWQO6.js} +2 -2
- package/__chunks__/{chunk-CDXLD3UX.js → chunk-LYF73EYO.js} +2 -2
- package/__chunks__/{chunk-LLKFSQJL.js → chunk-LZCS6ZYF.js} +2 -2
- package/__chunks__/{chunk-ZB5LRSUA.js → chunk-M2KURDCA.js} +2 -2
- package/__chunks__/chunk-MCKCARUG.js +2 -0
- package/__chunks__/chunk-MDEPBFNH.js +2 -0
- package/__chunks__/{chunk-UBGMYFYP.js → chunk-MDMDP7M4.js} +2 -2
- package/__chunks__/{chunk-URBTPPJQ.js → chunk-MEXHP4J3.js} +2 -2
- package/__chunks__/{chunk-E2X4CGZA.js → chunk-MGBNT5YC.js} +2 -2
- package/__chunks__/{chunk-EBNTLOIS.js → chunk-MMAQX7PZ.js} +2 -2
- package/__chunks__/{chunk-75DEF6KS.js → chunk-MMCZF45U.js} +2 -2
- package/__chunks__/{chunk-H2BDW4MQ.js → chunk-MV2L3RS5.js} +2 -2
- package/__chunks__/{chunk-UCZZ5H3Z.js → chunk-N4IWZRB4.js} +2 -2
- package/__chunks__/{chunk-BCXMOBSF.js → chunk-NAJM6SVE.js} +2 -2
- package/__chunks__/{chunk-ZXNFWJMH.js → chunk-NDJAQW5J.js} +2 -2
- package/__chunks__/{chunk-WWNMJLSX.js → chunk-NEJ5Y74B.js} +2 -2
- package/__chunks__/{chunk-NFTBRNA6.js → chunk-NFDTTOW7.js} +2 -2
- package/__chunks__/chunk-NGPND2WV.js +2 -0
- package/__chunks__/chunk-NOCNQEU6.js +2 -0
- package/__chunks__/{chunk-LNHJAXRU.js → chunk-NS3ODARJ.js} +2 -2
- package/__chunks__/{chunk-2JUQFS4O.js → chunk-NSFUSSUS.js} +2 -2
- package/__chunks__/{chunk-MAYO43ZD.js → chunk-NV6DLGYN.js} +2 -2
- package/__chunks__/{chunk-PVWWYI7D.js → chunk-NWGR33VA.js} +2 -2
- package/__chunks__/{chunk-VXNIDAW4.js → chunk-O2RCWISO.js} +2 -2
- package/__chunks__/{chunk-6RBPUPPU.js → chunk-O2V4CCMX.js} +2 -2
- package/__chunks__/{chunk-VXBWTSBA.js → chunk-O6MB6XKF.js} +2 -2
- package/__chunks__/{chunk-ZDEX2UMS.js → chunk-O6PZUAGB.js} +2 -2
- package/__chunks__/{chunk-AIQDX6K7.js → chunk-OBCB5GTS.js} +2 -2
- package/__chunks__/chunk-OGZDVTVE.js +2 -0
- package/__chunks__/{chunk-XD6XBD7M.js → chunk-OLNZJW3Z.js} +2 -2
- package/__chunks__/chunk-OMMQASLV.js +2 -0
- package/__chunks__/{chunk-PLHSIUIH.js → chunk-OSQQHPZM.js} +2 -2
- package/__chunks__/chunk-OVUMMVEK.js +2 -0
- package/__chunks__/{chunk-PED733EL.js → chunk-OXFLL7Y7.js} +2 -2
- package/__chunks__/chunk-P4YFVYE7.js +2 -0
- package/__chunks__/chunk-P7DX33YP.js +2 -0
- package/__chunks__/{chunk-W3ODGIKR.js → chunk-PCTAH6TR.js} +2 -2
- package/__chunks__/{chunk-COWK2W2W.js → chunk-PEMMY7FF.js} +2 -2
- package/__chunks__/{chunk-GZKFOA62.js → chunk-PEXA24OF.js} +2 -2
- package/__chunks__/{chunk-SWWGJTL5.js → chunk-PEY3BQ4R.js} +2 -2
- package/__chunks__/{chunk-56CSBJOA.js → chunk-PHIGKLSY.js} +2 -2
- package/__chunks__/chunk-PKHVN6YW.js +2 -0
- package/__chunks__/{chunk-ZM53UQ5W.js → chunk-PTVVMPSO.js} +2 -2
- package/__chunks__/{chunk-B5VQE4H2.js → chunk-PWH7DEFN.js} +2 -2
- package/__chunks__/{chunk-BDCWCPQD.js → chunk-PWR23BXD.js} +2 -2
- package/__chunks__/{chunk-YCH3M7LC.js → chunk-QEIPCSYQ.js} +2 -2
- package/__chunks__/{chunk-6DXVSPG6.js → chunk-QEKJFGEB.js} +2 -2
- package/__chunks__/{chunk-OHO5WVJC.js → chunk-QOEVYQ2J.js} +2 -2
- package/__chunks__/{chunk-SXQZTZRH.js → chunk-QW7HUS66.js} +2 -2
- package/__chunks__/{chunk-WGPDVKY5.js → chunk-QYHSBCZR.js} +2 -2
- package/__chunks__/{chunk-UX5PTPXR.js → chunk-QYNWZBUP.js} +2 -2
- package/__chunks__/{chunk-257M3QTY.js → chunk-R3SPPNHA.js} +2 -2
- package/__chunks__/{chunk-RKD5TB6H.js → chunk-R3SUSW6U.js} +2 -2
- package/__chunks__/{chunk-NTPBZBNQ.js → chunk-R7OFX7MT.js} +2 -2
- package/__chunks__/chunk-RAUSH6GD.js +2 -0
- package/__chunks__/chunk-RAXVRHEC.js +2 -0
- package/__chunks__/chunk-RISXNP5I.js +2 -0
- package/__chunks__/{chunk-CVNDZP76.js → chunk-RK7YWC7M.js} +2 -2
- package/__chunks__/chunk-RVTMBFZS.js +2 -0
- package/__chunks__/{chunk-CLPLALDF.js → chunk-RXPUGEMI.js} +2 -2
- package/__chunks__/{chunk-BYMPKNIX.js → chunk-RZUBAC4F.js} +2 -2
- package/__chunks__/{chunk-MFTEMWCU.js → chunk-S35I45ZQ.js} +2 -2
- package/__chunks__/{chunk-S6OFZ37Q.js → chunk-S6IMA7JA.js} +2 -2
- package/__chunks__/chunk-S6QS6J5L.js +2 -0
- package/__chunks__/chunk-S7HOS4OW.js +2 -0
- package/__chunks__/{chunk-G22LQ54W.js → chunk-SEOGCMB7.js} +2 -2
- package/__chunks__/{chunk-RCTS4E7X.js → chunk-SGABRPP2.js} +2 -2
- package/__chunks__/{chunk-ARN4TXNS.js → chunk-SGR4M32T.js} +2 -2
- package/__chunks__/{chunk-I75FKBLR.js → chunk-SO35Z4MW.js} +2 -2
- package/__chunks__/{chunk-4AI2UPIX.js → chunk-SPYQGKPN.js} +2 -2
- package/__chunks__/{chunk-6SQUT3SR.js → chunk-SQZGFLHB.js} +2 -2
- package/__chunks__/{chunk-TPFN52IW.js → chunk-SUJQA2GW.js} +2 -2
- package/__chunks__/{chunk-OUA5FLAV.js → chunk-SXIYWPTT.js} +2 -2
- package/__chunks__/{chunk-TYFF6L6K.js → chunk-SYFNYNRB.js} +2 -2
- package/__chunks__/{chunk-5LAIPB3D.js → chunk-SYGJB5IB.js} +2 -2
- package/__chunks__/{chunk-GWOBNRCO.js → chunk-T3H7IRS4.js} +2 -2
- package/__chunks__/chunk-T73GS72T.js +2 -0
- package/__chunks__/chunk-TILRG3KA.js +2 -0
- package/__chunks__/{chunk-IKIIFVAO.js → chunk-TIUQ37EG.js} +2 -2
- package/__chunks__/{chunk-6PBOXKX6.js → chunk-TN2C4EIK.js} +2 -2
- package/__chunks__/{chunk-EWPZVDAB.js → chunk-TPXVUJ4F.js} +2 -2
- package/__chunks__/{chunk-XPTZTIQ2.js → chunk-TQBVGRQJ.js} +2 -2
- package/__chunks__/{chunk-BX66MXW6.js → chunk-TSA6LFXL.js} +2 -2
- package/__chunks__/{chunk-OQFYWEIS.js → chunk-TUTBPOOU.js} +2 -2
- package/__chunks__/{chunk-HLAK36TW.js → chunk-TWVF7JWR.js} +2 -2
- package/__chunks__/{chunk-M2OXT3YO.js → chunk-U7MX6NMH.js} +2 -2
- package/__chunks__/{chunk-2AJOFYAV.js → chunk-UIVAIKSB.js} +2 -2
- package/__chunks__/{chunk-GVTQCXHP.js → chunk-UNO2T253.js} +2 -2
- package/__chunks__/{chunk-Q5C2SPDB.js → chunk-UNV3HNHX.js} +2 -2
- package/__chunks__/{chunk-IH33TIUO.js → chunk-UOWJXU7B.js} +2 -2
- package/__chunks__/{chunk-MRKRIB2A.js → chunk-UPAK55WQ.js} +2 -2
- package/__chunks__/{chunk-3GFG2A3U.js → chunk-V6TTX2GU.js} +2 -2
- package/__chunks__/chunk-V72DHDIE.js +2 -0
- package/__chunks__/{chunk-QXKIAILM.js → chunk-VAZCKIPF.js} +2 -2
- package/__chunks__/{chunk-4XMP5GTT.js → chunk-VKB64W7O.js} +2 -2
- package/__chunks__/{chunk-LOXGOWPI.js → chunk-VOBCK75J.js} +2 -2
- package/__chunks__/{chunk-4WHOJTZJ.js → chunk-VR6NBMGB.js} +2 -2
- package/__chunks__/chunk-VTUFVU5E.js +2 -0
- package/__chunks__/{chunk-RIJFBAYV.js → chunk-VVNOAZCN.js} +2 -2
- package/__chunks__/{chunk-Y3M4BQAH.js → chunk-VVNRFT4C.js} +2 -2
- package/__chunks__/{chunk-W3VTDJN2.js → chunk-VWJGXL3X.js} +2 -2
- package/__chunks__/{chunk-OUT3EF54.js → chunk-VX4YFYDE.js} +2 -2
- package/__chunks__/{chunk-JSYZ5XXA.js → chunk-W4VUUW4H.js} +2 -2
- package/__chunks__/{chunk-2VADEZKQ.js → chunk-W5VCGTY2.js} +2 -2
- package/__chunks__/{chunk-VKGQWWOB.js → chunk-WBROSYRH.js} +2 -2
- package/__chunks__/{chunk-KO26IQAN.js → chunk-WDIVU4TD.js} +2 -2
- package/__chunks__/{chunk-WDAY7K7O.js → chunk-WG32V2A5.js} +2 -2
- package/__chunks__/{chunk-NMJ6LNLI.js → chunk-WJOKG7OZ.js} +2 -2
- package/__chunks__/chunk-WRHANSVT.js +2 -0
- package/__chunks__/{chunk-TPS5KPXT.js → chunk-XBBPF73Z.js} +2 -2
- package/__chunks__/chunk-XCCT4TST.js +2 -0
- package/__chunks__/chunk-XKEURXOS.js +2 -0
- package/__chunks__/{chunk-RMWACIBX.js → chunk-XKGH4TXG.js} +2 -2
- package/__chunks__/{chunk-75GJK2GI.js → chunk-XQWVYVIL.js} +2 -2
- package/__chunks__/{chunk-JRSSYB2W.js → chunk-XUPYKS5D.js} +2 -2
- package/__chunks__/{chunk-A2UHFBXC.js → chunk-XWNVIHRK.js} +2 -2
- package/__chunks__/{chunk-MWQ7XWJ3.js → chunk-XY3MUJLX.js} +2 -2
- package/__chunks__/{chunk-IPHQVCKI.js → chunk-XZQYMTBX.js} +2 -2
- package/__chunks__/{chunk-4NQAIS37.js → chunk-Y4WVBCUE.js} +2 -2
- package/__chunks__/{chunk-G2WKJ6KK.js → chunk-Y6RIVHS3.js} +2 -2
- package/__chunks__/{chunk-CMXICFOE.js → chunk-Y7MXTBUL.js} +2 -2
- package/__chunks__/{chunk-TLFTE6OC.js → chunk-YE3SEFOS.js} +2 -2
- package/__chunks__/chunk-YNX3IGV3.js +2 -0
- package/__chunks__/{chunk-S5GCXB6J.js → chunk-YPR6PABP.js} +2 -2
- package/__chunks__/chunk-Z2B7ZPZQ.js +2 -0
- package/__chunks__/{chunk-HIONU7XT.js → chunk-Z2TCNCR5.js} +2 -2
- package/__chunks__/chunk-Z3L3GZGW.js +2 -0
- package/__chunks__/{chunk-7AD356MZ.js → chunk-Z5IV5H2B.js} +2 -2
- package/__chunks__/{chunk-CYKNXV5A.js → chunk-Z6T4QJTP.js} +2 -2
- package/__chunks__/{chunk-ND27OJ7I.js → chunk-ZAOOJQI2.js} +2 -2
- package/__chunks__/{chunk-NV22SU2V.js → chunk-ZB5AGTC4.js} +2 -2
- package/__chunks__/{chunk-XHHKUZ2U.js → chunk-ZBORIYHN.js} +2 -2
- package/__chunks__/chunk-ZCIQDTNG.js +2 -0
- package/__chunks__/{chunk-4UY6RTXV.js → chunk-ZGL5N2CM.js} +2 -2
- package/__chunks__/{chunk-LAZU73S2.js → chunk-ZH7PXPQS.js} +2 -2
- package/__chunks__/{chunk-VMW2UT4I.js → chunk-ZIEQGTNV.js} +2 -2
- package/__chunks__/{chunk-UQDIW6ZF.js → chunk-ZPDYQNBF.js} +2 -2
- package/__chunks__/{chunk-QWNXAJRR.js → chunk-ZYI33ZZI.js} +2 -2
- package/__commonjs/UI/SignTransactionsModals/SignTransactionsModals.js +21 -21
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/SignWithDeviceModal.js +6 -6
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/index.js +6 -6
- package/__commonjs/UI/SignTransactionsModals/SignWithExtraModal/SignWithExtraModal.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/SignWithLedgerModal.js +6 -6
- package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/index.js +6 -6
- package/__commonjs/UI/SignTransactionsModals/components/ConfirmationScreen.js +14 -14
- package/__commonjs/UI/SignTransactionsModals/components/index.js +14 -14
- package/__commonjs/UI/SignTransactionsModals/index.js +21 -21
- package/__commonjs/UI/TransactionInfo/components/ScResultsList/components/ResultHash/ResultHash.js +7 -7
- package/__commonjs/UI/TransactionInfo/components/ScResultsList/components/ResultHash/index.js +4 -4
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +5 -5
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/helpers/index.js +4 -4
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/helpers/useMemoizedCloseButton.js +2 -2
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +9 -9
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/components/index.js +4 -4
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/index.js +9 -9
- package/__commonjs/UI/index.js +52 -52
- package/__commonjs/UI/ledger/LedgerLoginButton/LedgerLoginButton.js +5 -5
- package/__commonjs/UI/ledger/LedgerLoginButton/index.js +5 -5
- package/__commonjs/UI/ledger/index.js +7 -7
- package/__commonjs/apiCalls/configuration/getApiAddressForChainId.js +1 -1
- package/__commonjs/constants/network.js +1 -1
- package/__commonjs/hooks/index.js +1 -1
- package/__commonjs/hooks/signMessage/index.js +1 -1
- package/__commonjs/hooks/signMessage/useSignMessage.d.ts +1 -4
- package/__commonjs/hooks/signMessage/useSignMessage.js +1 -1
- package/__commonjs/hooks/transactions/batch/useSendBatchTransactions.js +1 -1
- package/__commonjs/hooks/transactions/index.js +1 -1
- package/__commonjs/hooks/transactions/useParseMultiEsdtTransferData.js +1 -1
- package/__commonjs/hooks/transactions/useSignTransactions.js +1 -1
- package/__commonjs/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
- package/__commonjs/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
- package/__commonjs/hooks/websocketListener/useInitializeWebsocketConnection.js +1 -1
- package/__commonjs/reduxStore/selectors/modalsSelectors.js +1 -1
- package/__commonjs/services/index.js +1 -1
- package/__commonjs/services/transactions/index.js +1 -1
- package/__commonjs/services/transactions/sendTransactions.d.ts +1 -1
- package/__commonjs/services/transactions/sendTransactions.js +1 -1
- package/__commonjs/types/transactions.types.d.ts +1 -0
- package/__commonjs/types/transactions.types.js +1 -1
- package/__commonjs/utils/logout.js +1 -1
- package/__commonjs/utils/operations/calculateFeeLimit.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/index.js +1 -1
- package/__commonjs/utils/transactions/parseMultiEsdtTransferData.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionLinkWithLabel.js +1 -1
- package/__commonjs/wrappers/AxiosInterceptorContext/components/AxiosInterceptor.js +1 -1
- package/__commonjs/wrappers/AxiosInterceptorContext/components/LoginInfoListener.js +1 -1
- package/__mocks__/accountConfig.js +1 -1
- package/__mocks__/index.js +1 -1
- package/__mocks__/server.js +1 -1
- package/__mocks__/utils/index.js +1 -1
- package/__mocks__/utils/renderWithProvider.js +1 -1
- package/apiCalls/accounts/getAccountFromApi.js +1 -1
- package/apiCalls/accounts/index.js +1 -1
- package/apiCalls/configuration/getApiAddressForChainId.js +1 -1
- package/apiCalls/configuration/getEnvironmentForChainId.js +1 -1
- package/apiCalls/configuration/getNetworkConfig.js +1 -1
- package/apiCalls/configuration/getServerConfigurationForEnvironment.js +1 -1
- package/apiCalls/configuration/index.js +1 -1
- package/apiCalls/getScamAddressData.js +1 -1
- package/apiCalls/index.js +1 -1
- package/apiCalls/transactions/getTransactionsByHashes.js +1 -1
- package/apiCalls/transactions/index.js +1 -1
- package/apiCalls/transactions/sendSignedTransactions.js +1 -1
- package/apiCalls/utils/getCleanApiAddress.js +1 -1
- package/apiCalls/utils/index.js +1 -1
- package/components/LogoutListener/LogoutListener.js +1 -1
- package/components/LogoutListener/helpers/index.js +1 -1
- package/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
- package/components/LogoutListener/index.js +1 -1
- package/components/ProviderInitializer.js +1 -1
- package/components/TransactionSender/TransactionSender.js +1 -1
- package/components/TransactionSender/index.js +1 -1
- package/components/TransactionStatusToast/FailedTransactionStatusToast.js +1 -1
- package/components/TransactionsTracker/TransactionTracker.js +1 -1
- package/components/TransactionsTracker/index.js +1 -1
- package/components/TransactionsTracker/useTransactionsTracker.js +1 -1
- package/constants/index.js +1 -1
- package/constants/network.js +1 -1
- package/hooks/account/index.js +1 -1
- package/hooks/account/useGetAccount.js +1 -1
- package/hooks/account/useGetAccountInfo.js +1 -1
- package/hooks/account/useGetAccountProvider.js +1 -1
- package/hooks/account/useGetIsLoggedIn.js +1 -1
- package/hooks/account/useGetLoginInfo.js +1 -1
- package/hooks/account/useGetWebsocketEvent.js +1 -1
- package/hooks/index.js +1 -1
- package/hooks/login/index.js +1 -1
- package/hooks/login/useExtensionLogin.js +1 -1
- package/hooks/login/useLedgerLogin.js +1 -1
- package/hooks/login/useLoginService.js +1 -1
- package/hooks/login/useOperaLogin.js +1 -1
- package/hooks/login/useWalletConnectLogin.js +1 -1
- package/hooks/login/useWalletConnectV2Login.js +1 -1
- package/hooks/login/useWebViewLogin.js +1 -1
- package/hooks/login/useWebWalletLogin.js +1 -1
- package/hooks/signMessage/index.js +1 -1
- package/hooks/signMessage/useGetLastSignedMessageSession.js +1 -1
- package/hooks/signMessage/useGetSignMessageSession.js +1 -1
- package/hooks/signMessage/useGetSignedMessageStatus.js +1 -1
- package/hooks/signMessage/useSignMessage.d.ts +1 -4
- package/hooks/signMessage/useSignMessage.js +1 -1
- package/hooks/transactions/batch/useGetBatches.js +1 -1
- package/hooks/transactions/batch/useSendBatchTransactions.js +1 -1
- package/hooks/transactions/batch/useTrackBatchTransactions.js +1 -1
- package/hooks/transactions/batch/useUpdateBatch.js +1 -1
- package/hooks/transactions/batch/useUpdateBatches.js +1 -1
- package/hooks/transactions/helpers/checkNeedsGuardianSigning.js +1 -1
- package/hooks/transactions/helpers/getShouldMoveTransactionsToSignedState.js +1 -1
- package/hooks/transactions/helpers/index.js +1 -1
- package/hooks/transactions/helpers/useClearTransactionsToSignWithWarning.js +1 -1
- package/hooks/transactions/helpers/useSetTransactionNonces.js +1 -1
- package/hooks/transactions/index.js +1 -1
- package/hooks/transactions/useCancelWalletConnectAction.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/checkBatch.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/index.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/manageFailedTransactions.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/manageTimedOutTransactions.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/useCheckTransactionStatus.js +1 -1
- package/hooks/transactions/useGetActiveTransactionsStatus.js +1 -1
- package/hooks/transactions/useGetFailedTransactions.js +1 -1
- package/hooks/transactions/useGetLastPendingTransactionHash.js +1 -1
- package/hooks/transactions/useGetPendingTransactions.js +1 -1
- package/hooks/transactions/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 +1 -1
- 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/batchTransactionsSelectors.js +1 -1
- package/reduxStore/selectors/dappConfigSelector.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/batchTransactionsSlice.js +1 -1
- package/reduxStore/slices/dappConfigSlice.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/getAuthorizationInfo.js +1 -1
- package/services/nativeAuth/helpers/getIsNativeAuthSingingForbidden.js +1 -1
- package/services/nativeAuth/helpers/index.js +1 -1
- package/services/nativeAuth/helpers/loginWithNativeAuthToken.js +1 -1
- package/services/transactions/clearTransactions.js +1 -1
- package/services/transactions/getBatchTransactionsStatus.js +1 -1
- package/services/transactions/index.js +1 -1
- package/services/transactions/isCrossShardTransaction.js +1 -1
- package/services/transactions/sendBatchTransactions.js +1 -1
- package/services/transactions/sendTransactions.d.ts +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/transactions.types.d.ts +1 -0
- package/types/transactions.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/batch/updateBatchTransactionsStatuses.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/removeTransactionParamsFromUrl.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/utils/walletconnect/__mocks__/sdkWalletconnectProvider.js +1 -1
- package/web/hooks/index.js +1 -1
- package/web/hooks/useIdleTimer.js +1 -1
- package/web/index.js +1 -1
- package/wrappers/AppInitializer.js +1 -1
- package/wrappers/AuthenticatedRoutesWrapper/AuthenticatedRoutesWrapper.js +1 -1
- package/wrappers/AuthenticatedRoutesWrapper/index.js +1 -1
- package/wrappers/AxiosInterceptorContext/AxiosInterceptorContext.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/AxiosInterceptor.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/AxiosInterceptorContextProvider.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/LoginInfoListener.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/index.js +1 -1
- package/wrappers/AxiosInterceptorContext/index.js +1 -1
- package/wrappers/DappProvider/CustomComponents.js +1 -1
- package/wrappers/DappProvider/DappProvider.js +1 -1
- package/wrappers/DappProvider/index.js +1 -1
- package/wrappers/index.js +1 -1
- package/__chunks__/chunk-22OLJZCS.js +0 -2
- package/__chunks__/chunk-2P64IWEV.js +0 -2
- package/__chunks__/chunk-2TQ727TI.js +0 -2
- package/__chunks__/chunk-3E66U4NM.js +0 -2
- package/__chunks__/chunk-3HSI224D.js +0 -2
- package/__chunks__/chunk-4EVPEAAC.js +0 -2
- package/__chunks__/chunk-4ROA4IAP.js +0 -2
- package/__chunks__/chunk-554M7MC7.js +0 -2
- package/__chunks__/chunk-5IYO3P75.js +0 -2
- package/__chunks__/chunk-64OFEAPQ.js +0 -2
- package/__chunks__/chunk-64X5ELCG.js +0 -2
- package/__chunks__/chunk-67VZTXQO.js +0 -2
- package/__chunks__/chunk-7MBSMSCD.js +0 -2
- package/__chunks__/chunk-A3M2ZT2N.js +0 -2
- package/__chunks__/chunk-CAH5U2BC.js +0 -2
- package/__chunks__/chunk-D2YE4NU4.js +0 -2
- package/__chunks__/chunk-DDBXHWTW.js +0 -2
- package/__chunks__/chunk-E7ZMJK5T.js +0 -2
- package/__chunks__/chunk-EDUVKTUJ.js +0 -2
- package/__chunks__/chunk-EFR4FYH4.js +0 -2
- package/__chunks__/chunk-FHFSY4UV.js +0 -2
- package/__chunks__/chunk-GWOGB4RR.js +0 -2
- package/__chunks__/chunk-GZVP3ZXI.js +0 -2
- package/__chunks__/chunk-IW6SN7BF.js +0 -2
- package/__chunks__/chunk-JCNIVUOH.js +0 -2
- package/__chunks__/chunk-JQEIHESA.js +0 -2
- package/__chunks__/chunk-KV7GLUXD.js +0 -2
- package/__chunks__/chunk-LMFYIKOH.js +0 -2
- package/__chunks__/chunk-MLXPX23B.js +0 -2
- package/__chunks__/chunk-MXTJ27RN.js +0 -2
- package/__chunks__/chunk-N6SXDXRI.js +0 -2
- package/__chunks__/chunk-O5OTL554.js +0 -2
- package/__chunks__/chunk-OWRF45PP.js +0 -2
- package/__chunks__/chunk-OY6DZ7KU.js +0 -2
- package/__chunks__/chunk-P3DNG2RV.js +0 -2
- package/__chunks__/chunk-PCR2WU5P.js +0 -2
- package/__chunks__/chunk-Q4DPGKGE.js +0 -2
- package/__chunks__/chunk-R2BKZWTD.js +0 -2
- package/__chunks__/chunk-REFNSRHX.js +0 -2
- package/__chunks__/chunk-SB6Q3PIL.js +0 -2
- package/__chunks__/chunk-SWEULXYJ.js +0 -2
- package/__chunks__/chunk-T7V7454F.js +0 -2
- package/__chunks__/chunk-VRY2YA2B.js +0 -2
- package/__chunks__/chunk-VT4SCB2Q.js +0 -2
- package/__chunks__/chunk-WG2WVJQW.js +0 -2
- package/__chunks__/chunk-X6PPFAJP.js +0 -2
- package/__chunks__/chunk-XRVWJ3RL.js +0 -2
- package/__chunks__/chunk-XSXPHHSS.js +0 -2
- package/__chunks__/chunk-ZGKYWFGV.js +0 -2
- package/__chunks__/chunk-ZWEMOICZ.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var ui=Object.create;var Te=Object.defineProperty,di=Object.defineProperties,mi=Object.getOwnPropertyDescriptor,gi=Object.getOwnPropertyDescriptors,fi=Object.getOwnPropertyNames,Ee=Object.getOwnPropertySymbols,Ti=Object.getPrototypeOf,yt=Object.prototype.hasOwnProperty,fr=Object.prototype.propertyIsEnumerable;var gr=(e,t,r)=>t in e?Te(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t)=>{for(var r in t||(t={}))yt.call(t,r)&&gr(e,r,t[r]);if(Ee)for(var r of Ee(t))fr.call(t,r)&&gr(e,r,t[r]);return e},E=(e,t)=>di(e,gi(t));var Tr=(e,t)=>{var r={};for(var n in e)yt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ee)for(var n of Ee(e))t.indexOf(n)<0&&fr.call(e,n)&&(r[n]=e[n]);return r};var T=(e,t)=>()=>(e&&(t=e(e=0)),t);var ke=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ne=(e,t)=>{for(var r in t)Te(e,r,{get:t[r],enumerable:!0})},yr=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of fi(t))!yt.call(e,i)&&i!==r&&Te(e,i,{get:()=>t[i],enumerable:!(n=mi(t,i))||n.enumerable});return e};var w=(e,t,r)=>(r=e!=null?ui(Ti(e)):{},yr(t||!e||!e.__esModule?Te(r,"default",{value:e,enumerable:!0}):r,e)),ye=e=>yr(Te({},"__esModule",{value:!0}),e);var V=(e,t,r)=>new Promise((n,i)=>{var l=d=>{try{m(r.next(d))}catch(g){i(g)}},p=d=>{try{m(r.throw(d))}catch(g){i(g)}},m=d=>d.done?n(d.value):Promise.resolve(d.value).then(l,p);m((r=r.apply(e,t)).next())});var Sr=ke(Le=>{"use strict";o();Le.byteLength=hi;Le.toByteArray=Si;Le.fromByteArray=Ii;var $=[],M=[],yi=typeof Uint8Array!="undefined"?Uint8Array:Array,ht="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(oe=0,hr=ht.length;oe<hr;++oe)$[oe]=ht[oe],M[ht.charCodeAt(oe)]=oe;var oe,hr;M["-".charCodeAt(0)]=62;M["_".charCodeAt(0)]=63;function xr(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 hi(e){var t=xr(e),r=t[0],n=t[1];return(r+n)*3/4-n}function xi(e,t,r){return(t+r)*3/4-r}function Si(e){var t,r=xr(e),n=r[0],i=r[1],l=new yi(xi(e,n,i)),p=0,m=i>0?n-4:n,d;for(d=0;d<m;d+=4)t=M[e.charCodeAt(d)]<<18|M[e.charCodeAt(d+1)]<<12|M[e.charCodeAt(d+2)]<<6|M[e.charCodeAt(d+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return i===2&&(t=M[e.charCodeAt(d)]<<2|M[e.charCodeAt(d+1)]>>4,l[p++]=t&255),i===1&&(t=M[e.charCodeAt(d)]<<10|M[e.charCodeAt(d+1)]<<4|M[e.charCodeAt(d+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function wi(e){return $[e>>18&63]+$[e>>12&63]+$[e>>6&63]+$[e&63]}function bi(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(wi(n));return i.join("")}function Ii(e){for(var t,r=e.length,n=r%3,i=[],l=16383,p=0,m=r-n;p<m;p+=l)i.push(bi(e,p,p+l>m?m:p+l));return n===1?(t=e[r-1],i.push($[t>>2]+$[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push($[t>>10]+$[t>>4&63]+$[t<<2&63]+"=")),i.join("")}});var wr=ke(xt=>{o();xt.read=function(e,t,r,n,i){var l,p,m=i*8-n-1,d=(1<<m)-1,g=d>>1,h=-7,y=r?i-1:0,S=r?-1:1,A=e[t+y];for(y+=S,l=A&(1<<-h)-1,A>>=-h,h+=m;h>0;l=l*256+e[t+y],y+=S,h-=8);for(p=l&(1<<-h)-1,l>>=-h,h+=n;h>0;p=p*256+e[t+y],y+=S,h-=8);if(l===0)l=1-g;else{if(l===d)return p?NaN:(A?-1:1)*(1/0);p=p+Math.pow(2,n),l=l-g}return(A?-1:1)*p*Math.pow(2,l-n)};xt.write=function(e,t,r,n,i,l){var p,m,d,g=l*8-i-1,h=(1<<g)-1,y=h>>1,S=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,A=n?0:l-1,_=n?1:-1,C=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(m=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+=S/d:t+=S*Math.pow(2,1-y),t*d>=2&&(p++,d/=2),p+y>=h?(m=0,p=h):p+y>=1?(m=(t*d-1)*Math.pow(2,i),p=p+y):(m=t*Math.pow(2,y-1)*Math.pow(2,i),p=0));i>=8;e[r+A]=m&255,A+=_,m/=256,i-=8);for(p=p<<i|m,g+=i;g>0;e[r+A]=p&255,A+=_,p/=256,g-=8);e[r+A-_]|=C*128}});var _r=ke(de=>{"use strict";o();var St=Sr(),ue=wr(),br=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;de.Buffer=u;de.SlowBuffer=Di;de.INSPECT_MAX_BYTES=50;var De=2147483647;de.kMaxLength=De;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 K(e){if(e>De)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 At(e)}return vr(e,t,r)}u.poolSize=8192;function vr(e,t,r){if(typeof e=="string")return Ei(e,t);if(ArrayBuffer.isView(e))return ki(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(G(e,ArrayBuffer)||e&&G(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(G(e,SharedArrayBuffer)||e&&G(e.buffer,SharedArrayBuffer)))return bt(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=Li(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 vr(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function Er(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 vi(e,t,r){return Er(e),e<=0?K(e):t!==void 0?typeof r=="string"?K(e).fill(t,r):K(e).fill(t):K(e)}u.alloc=function(e,t,r){return vi(e,t,r)};function At(e){return Er(e),K(e<0?0:vt(e)|0)}u.allocUnsafe=function(e){return At(e)};u.allocUnsafeSlow=function(e){return At(e)};function Ei(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=kr(e,t)|0,n=K(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function wt(e){for(var t=e.length<0?0:vt(e.length)|0,r=K(t),n=0;n<t;n+=1)r[n]=e[n]&255;return r}function ki(e){if(G(e,Uint8Array)){var t=new Uint8Array(e);return bt(t.buffer,t.byteOffset,t.byteLength)}return wt(e)}function bt(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 Li(e){if(u.isBuffer(e)){var t=vt(e.length)|0,r=K(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||Et(e.length)?K(0):wt(e);if(e.type==="Buffer"&&Array.isArray(e.data))return wt(e.data)}function vt(e){if(e>=De)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+De.toString(16)+" bytes");return e|0}function Di(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(G(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),G(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(G(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 kr(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||G(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 It(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Pr(e).length;default:if(i)return n?-1:It(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=kr;function Ni(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 Dr(this,t,r);case"ascii":return Bi(this,t,r);case"latin1":case"binary":return Ui(this,t,r);case"base64":return Oi(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $i(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}u.prototype._isBuffer=!0;function ie(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)ie(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)ie(this,r,r+3),ie(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)ie(this,r,r+7),ie(this,r+1,r+6),ie(this,r+2,r+5),ie(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?Dr(this,0,t):Ni.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=de.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};br&&(u.prototype[br]=u.prototype.inspect);u.prototype.compare=function(t,r,n,i,l){if(G(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,m=n-r,d=Math.min(p,m),g=this.slice(i,l),h=t.slice(r,n),y=0;y<d;++y)if(g[y]!==h[y]){p=g[y],m=h[y];break}return p<m?-1:m<p?1:0};function Lr(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,Et(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:Ir(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):Ir(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function Ir(e,t,r,n,i){var l=1,p=e.length,m=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,m/=2,r/=2}function d(A,_){return l===1?A[_]:A.readUInt16BE(_*l)}var g;if(i){var h=-1;for(g=r;g<p;g++)if(d(e,g)===d(t,h===-1?0:g-h)){if(h===-1&&(h=g),g-h+1===m)return h*l}else h!==-1&&(g-=g-h),h=-1}else for(r+m>p&&(r=p-m),g=r;g>=0;g--){for(var y=!0,S=0;S<m;S++)if(d(e,g+S)!==d(t,S)){y=!1;break}if(y)return g}return-1}u.prototype.includes=function(t,r,n){return this.indexOf(t,r,n)!==-1};u.prototype.indexOf=function(t,r,n){return Lr(this,t,r,n,!0)};u.prototype.lastIndexOf=function(t,r,n){return Lr(this,t,r,n,!1)};function Ri(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 m=parseInt(t.substr(p*2,2),16);if(Et(m))return p;e[r+p]=m}return p}function Ci(e,t,r,n){return Ne(It(t,e.length-r),e,r,n)}function Pi(e,t,r,n){return Ne(Hi(t),e,r,n)}function _i(e,t,r,n){return Ne(Pr(t),e,r,n)}function Mi(e,t,r,n){return Ne(qi(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 Ri(this,t,r,n);case"utf8":case"utf-8":return Ci(this,t,r,n);case"ascii":case"latin1":case"binary":return Pi(this,t,r,n);case"base64":return _i(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Mi(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 Oi(e,t,r){return t===0&&r===e.length?St.fromByteArray(e):St.fromByteArray(e.slice(t,r))}function Dr(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var l=e[i],p=null,m=l>239?4:l>223?3:l>191?2:1;if(i+m<=r){var d,g,h,y;switch(m){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],g=e[i+2],(d&192)===128&&(g&192)===128&&(y=(l&15)<<12|(d&63)<<6|g&63,y>2047&&(y<55296||y>57343)&&(p=y));break;case 4:d=e[i+1],g=e[i+2],h=e[i+3],(d&192)===128&&(g&192)===128&&(h&192)===128&&(y=(l&15)<<18|(d&63)<<12|(g&63)<<6|h&63,y>65535&&y<1114112&&(p=y))}}p===null?(p=65533,m=1):p>65535&&(p-=65536,n.push(p>>>10&1023|55296),p=56320|p&1023),n.push(p),i+=m}return Fi(n)}var Ar=4096;function Fi(e){var t=e.length;if(t<=Ar)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=Ar));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 Ui(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+=ji[e[l]];return i}function $i(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 k(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||k(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||k(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||k(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||k(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||k(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||k(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||k(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||k(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||k(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||k(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||k(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||k(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||k(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||k(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||k(t,4,this.length),ue.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||k(t,4,this.length),ue.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||k(t,8,this.length),ue.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||k(t,8,this.length),ue.read(this,t,!1,52,8)};function D(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;D(this,t,r,n,l,0)}var p=1,m=0;for(this[r]=t&255;++m<n&&(p*=256);)this[r+m]=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;D(this,t,r,n,l,0)}var p=n-1,m=1;for(this[r+p]=t&255;--p>=0&&(m*=256);)this[r+p]=t/m&255;return r+n};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,n){return t=+t,r=r>>>0,n||D(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||D(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||D(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||D(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||D(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);D(this,t,r,n,l-1,-l)}var p=0,m=1,d=0;for(this[r]=t&255;++p<n&&(m*=256);)t<0&&d===0&&this[r+p-1]!==0&&(d=1),this[r+p]=(t/m>>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);D(this,t,r,n,l-1,-l)}var p=n-1,m=1,d=0;for(this[r+p]=t&255;--p>=0&&(m*=256);)t<0&&d===0&&this[r+p+1]!==0&&(d=1),this[r+p]=(t/m>>0)-d&255;return r+n};u.prototype.writeInt8=function(t,r,n){return t=+t,r=r>>>0,n||D(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||D(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||D(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||D(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||D(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 Nr(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 Rr(e,t,r,n,i){return t=+t,r=r>>>0,i||Nr(e,t,r,4,34028234663852886e22,-34028234663852886e22),ue.write(e,t,r,n,23,4),r+4}u.prototype.writeFloatLE=function(t,r,n){return Rr(this,t,r,!0,n)};u.prototype.writeFloatBE=function(t,r,n){return Rr(this,t,r,!1,n)};function Cr(e,t,r,n,i){return t=+t,r=r>>>0,i||Nr(e,t,r,8,17976931348623157e292,-17976931348623157e292),ue.write(e,t,r,n,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,n){return Cr(this,t,r,!0,n)};u.prototype.writeDoubleBE=function(t,r,n){return Cr(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 m=u.isBuffer(t)?t:u.from(t,i),d=m.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]=m[p%d]}return this};var Gi=/[^+/0-9A-Za-z-_]/g;function Wi(e){if(e=e.split("=")[0],e=e.trim().replace(Gi,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function It(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 Hi(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function qi(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 Pr(e){return St.toByteArray(Wi(e))}function Ne(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 G(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Et(e){return e!==e}var ji=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 Ur=ke((Ds,Br)=>{o();var I=Br.exports={},W,H;function kt(){throw new Error("setTimeout has not been defined")}function Lt(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?W=setTimeout:W=kt}catch(e){W=kt}try{typeof clearTimeout=="function"?H=clearTimeout:H=Lt}catch(e){H=Lt}})();function Mr(e){if(W===setTimeout)return setTimeout(e,0);if((W===kt||!W)&&setTimeout)return W=setTimeout,setTimeout(e,0);try{return W(e,0)}catch(t){try{return W.call(null,e,0)}catch(r){return W.call(this,e,0)}}}function zi(e){if(H===clearTimeout)return clearTimeout(e);if((H===Lt||!H)&&clearTimeout)return H=clearTimeout,clearTimeout(e);try{return H(e)}catch(t){try{return H.call(null,e)}catch(r){return H.call(this,e)}}}var Y=[],me=!1,ae,Re=-1;function Ki(){!me||!ae||(me=!1,ae.length?Y=ae.concat(Y):Re=-1,Y.length&&Or())}function Or(){if(!me){var e=Mr(Ki);me=!0;for(var t=Y.length;t;){for(ae=Y,Y=[];++Re<t;)ae&&ae[Re].run();Re=-1,t=Y.length}ae=null,me=!1,zi(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];Y.push(new Fr(e,t)),Y.length===1&&!me&&Mr(Or)};function Fr(e,t){this.fun=e,this.array=t}Fr.prototype.run=function(){this.fun.apply(null,this.array)};I.title="browser";I.browser=!0;I.env={};I.argv=[];I.version="";I.versions={};function X(){}I.on=X;I.addListener=X;I.once=X;I.off=X;I.removeListener=X;I.removeAllListeners=X;I.emit=X;I.prependListener=X;I.prependOnceListener=X;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 a,s,Ns,o=T(()=>{a=w(_r()),s=w(Ur()),Ns=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 Vr=T(()=>{"use strict";o()});var $r=T(()=>{"use strict";o()});var Gr=T(()=>{"use strict";o()});var Wr=T(()=>{"use strict";o()});var Z=T(()=>{"use strict";o()});var Hr=T(()=>{"use strict";o()});var qr=T(()=>{"use strict";o()});var N=T(()=>{"use strict";o()});var jr=T(()=>{"use strict";o()});var zr=T(()=>{"use strict";o()});var Kr=T(()=>{"use strict";o()});var P=T(()=>{"use strict";o();$r();Gr();Wr();Z();Hr();qr();N();jr();zr();Kr()});var Dt,Yr,Xs,Xr,Zs,Zr,Qs,Js,ec,Qr=T(()=>{"use strict";o();P();Dt={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:Yr,egldLabel:Xs}=Dt["devnet"],{chainId:Xr,egldLabel:Zs}=Dt["testnet"],{chainId:Zr,egldLabel:Qs}=Dt["mainnet"],Js={["devnet"]:Yr,["testnet"]:Xr,["mainnet"]:Zr},ec={[Yr]:"devnet",[Xr]:"testnet",[Zr]:"mainnet"}});var Nt=T(()=>{"use strict";o()});var Jr=T(()=>{"use strict";o()});var en,Rt=T(()=>{"use strict";o();en="transaction-status-toast-id"});var q,tn=T(()=>{"use strict";o();q=require("@multiversx/sdk-web-wallet-provider")});var rn=T(()=>{"use strict";o()});var nn,Ce,J,ge,on,Pe,an,ee,b=T(()=>{"use strict";o();Vr();Qr();Nt();Jr();Rt();tn();rn();nn=.01,Ce=1500,J=5e4,ge=1e9,on=1,Pe="logout",an="login",ee="0"});var _e,Ct=T(()=>{"use strict";o();_e=()=>Date.now()/1e3});var sn=T(()=>{"use strict";o()});var cn=T(()=>{"use strict";o()});var ln=T(()=>{"use strict";o();Ct();sn();cn()});var _t={};ne(_t,{getItem:()=>Xi,localStorageKeys:()=>se,removeItem:()=>Zi,setItem:()=>Yi});var se,Pt,Yi,Xi,Zi,he=T(()=>{"use strict";o();ln();se={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},Pt=typeof localStorage!="undefined",Yi=({key:e,data:t,expires:r})=>{!Pt||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Xi=e=>{if(!Pt)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:_e()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},Zi=e=>{!Pt||localStorage.removeItem(String(e))}});var Mt={};ne(Mt,{clear:()=>mn,getItem:()=>un,removeItem:()=>dn,setItem:()=>pn,storage:()=>Qi});var pn,un,dn,mn,Qi,gn=T(()=>{"use strict";o();pn=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},un=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},dn=e=>sessionStorage.removeItem(String(e)),mn=()=>sessionStorage.clear(),Qi={setItem:pn,getItem:un,removeItem:dn,clear:mn}});var fe,Me=T(()=>{"use strict";o();he();gn();fe={session:Mt,local:_t}});var Ot,v,Oe,F=T(()=>{"use strict";o();Ot=require("@reduxjs/toolkit");b();v=(0,Ot.createAction)(Pe),Oe=(0,Ot.createAction)(an,e=>({payload:e}))});var Bt,fn,Tn,Fe,Ft,yn,hn,Cc,xn,Pc,_c,Mc,Oc,Fc,Bc,Uc,Vc,Be,Ue=T(()=>{"use strict";o();Bt=require("@multiversx/sdk-core"),fn=require("@reduxjs/toolkit"),Tn=require("redux-persist");b();Me();he();F();Fe={balance:"...",address:"",isGuarded:!1,nonce:0,txCount:0,scrCount:0,claimableRewards:ee},Ft={address:"",websocketEvent:null,websocketBatchEvent:null,accounts:{"":Fe},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},yn=(0,fn.createSlice)({name:"accountInfoSlice",initialState:Ft,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new Bt.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:Fe},e.shard=t.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,t)=>{let{address:r}=e;e.accounts[r].nonce=t.payload},setAccountShard:(e,t)=>{e.shard=t.payload},setLedgerAccount:(e,t)=>{e.ledgerAccount=t.payload},updateLedgerAccount:(e,t)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=t.payload.index,e.ledgerAccount.address=t.payload.address)},setWalletConnectAccount:(e,t)=>{e.walletConnectAccount=t.payload},setIsAccountLoading:(e,t)=>{e.isAccountLoading=t.payload,e.accountLoadingError=null},setAccountLoadingError:(e,t)=>{e.accountLoadingError=t.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,t)=>{e.websocketEvent={timestamp:Date.now(),message:t.payload}},setWebsocketBatchEvent:(e,t)=>{e.websocketBatchEvent={timestamp:Date.now(),data:t.payload}}},extraReducers:e=>{e.addCase(v,()=>(fe.local.removeItem(se.loginExpiresAt),Ft)),e.addCase(Oe,(t,r)=>{let{address:n}=r.payload;t.address=n,t.publicKey=new Bt.Address(n).hex()}),e.addCase(Tn.REHYDRATE,(t,r)=>{var g;if(!((g=r.payload)!=null&&g.account))return;let{account:n}=r.payload,{address:i,shard:l,accounts:p,publicKey:m}=n;t.address=i,t.shard=l;let d=p&&i in p;t.accounts=d?p:Ft.accounts,t.publicKey=m})}}),{setAccount:hn,setAddress:Cc,setAccountNonce:xn,setAccountShard:Pc,setLedgerAccount:_c,updateLedgerAccount:Mc,setWalletConnectAccount:Oc,setIsAccountLoading:Fc,setAccountLoadingError:Bc,setWebsocketEvent:Uc,setWebsocketBatchEvent:Vc}=yn.actions,Be=yn.reducer});function xe(){return new Date().setHours(new Date().getHours()+24)}function Se(e){fe.local.setItem({key:se.loginExpiresAt,data:e,expires:e})}var Ut=T(()=>{"use strict";o();Me();he()});var wn,Sn,bn,Xc,Zc,Qc,Jc,el,tl,In,rl,Ve,$e=T(()=>{"use strict";o();wn=require("@reduxjs/toolkit");Ut();Z();F();Sn={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},bn=(0,wn.createSlice)({name:"loginInfoSlice",initialState:Sn,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(v,()=>Sn),e.addCase(Oe,(t,r)=>{t.loginMethod=r.payload.loginMethod,Se(xe())})}}),{setLoginMethod:Xc,setWalletConnectLogin:Zc,setLedgerLogin:Qc,setTokenLogin:Jc,setTokenLoginSignature:el,setWalletLogin:tl,invalidateLoginSession:In,setLogoutRoute:rl}=bn.actions,Ve=bn.reducer});var vn,An,En,al,Vt,sl,cl,Ge,We=T(()=>{"use strict";o();vn=require("@reduxjs/toolkit");F();An={},En=(0,vn.createSlice)({name:"modalsSlice",initialState:An,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(v,()=>An)}}),{setTxSubmittedModal:al,setNotificationModal:Vt,clearTxSubmittedModal:sl,clearNotificationModal:cl}=En.actions,Ge=En.reducer});var kn=T(()=>{"use strict";o()});var Ln=T(()=>{"use strict";o();kn()});function $t(e){return e[Math.floor(Math.random()*e.length)]}var Dn=T(()=>{"use strict";o()});var Nn=T(()=>{"use strict";o();Nt()});var Rn=T(()=>{"use strict";o();Ln();Dn();Nn()});var Cn,Pn,Gt,ea,_n,Al,vl,He,qe=T(()=>{"use strict";o();Cn=require("@reduxjs/toolkit"),Pn=w(require("lodash.omit"));Rn();Gt={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},ea={network:Gt,chainID:"-1"},_n=(0,Cn.createSlice)({name:"appConfig",initialState:ea,reducers:{initializeNetworkConfig:(e,t)=>{let r=$t(t.payload.walletConnectBridgeAddresses),n=$t(t.payload.walletConnectV2RelayAddresses),i=(0,Pn.default)(t.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=E(x(x({},e.network),i),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:n})},setChainID:(e,t)=>{e.chainID=t.payload}}}),{initializeNetworkConfig:Al,setChainID:vl}=_n.actions,He=_n.reducer});var Mn,Wt,On,Rl,Cl,Pl,je,ze=T(()=>{"use strict";o();Mn=require("@reduxjs/toolkit");P();F();Wt={isSigning:!1,signedSessions:{}},On=(0,Mn.createSlice)({name:"signedMessageInfoSliceState",initialState:Wt,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:n,errorMessage:i}=t.payload;i&&(e.errorMessage=i),e.isSigning=n.status==="pending",e.signedSessions[r]=n},setSignSessionState:(e,t)=>x(x({},e),t.payload),clearSignedMessageInfo:()=>Wt},extraReducers:e=>{e.addCase(v,()=>Wt)}}),{setSignSession:Rl,clearSignedMessageInfo:Cl,setSignSessionState:Pl}=On.actions,je=On.reducer});var Bn,Un,Fn,Vn,$l,Gl,Wl,Hl,ql,jl,Ke,Ye=T(()=>{"use strict";o();Bn=require("@reduxjs/toolkit"),Un=require("redux-persist");Rt();P();Ct();F();Fn={customToasts:[],transactionToasts:[],failTransactionToast:null},Vn=(0,Bn.createSlice)({name:"toastsSlice",initialState:Fn,reducers:{addCustomToast:(e,t)=>{e.customToasts.push(E(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:_e(),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=E(x({},t.payload),{toastId:en})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(v,()=>Fn),e.addCase(Un.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:$l,removeCustomToast:Gl,addTransactionToast:Wl,removeTransactionToast:Hl,addFailTransactionToast:ql,removeFailTransactionToast:jl}=Vn.actions,Ke=Vn.reducer});var $n,qt,jt,zt,ta,Ht,Gn,Xl,Wn,Zl,Xe,Ze=T(()=>{"use strict";o();$n=require("@reduxjs/toolkit");F();qt="Transaction failed",jt="Transaction successful",zt="Processing transaction",ta="Transaction submitted",Ht={},Gn=(0,$n.createSlice)({name:"transactionsInfo",initialState:Ht,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:n}=t.payload;r!=null&&(e[r]={errorMessage:(n==null?void 0:n.errorMessage)||qt,successMessage:(n==null?void 0:n.successMessage)||jt,processingMessage:(n==null?void 0:n.processingMessage)||zt,submittedMessage:(n==null?void 0:n.submittedMessage)||ta,transactionDuration:n==null?void 0:n.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>Ht},extraReducers:e=>{e.addCase(v,()=>Ht)}}),{clearTransactionsInfo:Xl,setTransactionsDisplayInfo:Wn,clearTransactionsInfoForSessionId:Zl}=Gn.actions,Xe=Gn.reducer});function Hn(e){return e!=null&&(pa(e)||ga(e))}function Qe(e){return e!=null&&(ua(e)||fa(e))}function Je(e){return e!=null&&(da(e)||Ta(e))}function qn(e){return e!=null&&ma(e)}function pa(e){return e!=null&&na.includes(e)}function ua(e){return e!=null&&oa.includes(e)}function da(e){return e!=null&&ia.includes(e)}function ma(e){return e!=null&&aa.includes(e)}function ga(e){return e!=null&&sa.includes(e)}function fa(e){return e!=null&&ca.includes(e)}function Ta(e){return e!=null&&la.includes(e)}var na,oa,ia,aa,sa,ca,la,Yt=T(()=>{"use strict";o();Z();na=["sent"],oa=["success"],ia=["fail","cancelled","timedOut"],aa=["timedOut"],sa=["pending"],ca=["success"],la=["fail","invalid"]});var jn,zn,we,ya,Kn,ap,sp,Yn,cp,lp,pp,up,dp,Xn,mp,et,tt=T(()=>{"use strict";o();jn=require("@reduxjs/toolkit"),zn=require("redux-persist");Z();Yt();F();we={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},ya={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Kn=(0,jn.createSlice)({name:"transactionsSlice",initialState:we,reducers:{moveTransactionsToSignedState:(e,t)=>{var d,g;let{sessionId:r,transactions:n,errorMessage:i,status:l,redirectRoute:p}=t.payload,m=((d=e.customTransactionInformationForSessionId)==null?void 0:d[r])||ya;e.signedTransactions[r]={transactions:n,status:l,errorMessage:i,redirectRoute:p,customTransactionInformation:m},((g=e==null?void 0:e.transactionsToSign)==null?void 0:g.sessionId)===r&&(e.transactionsToSign=we.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 m,d,g,h,y,S;let{sessionId:r,status:n,errorMessage:i,transactionHash:l}=t.payload,p=(d=(m=e.signedTransactions)==null?void 0:m[r])==null?void 0:d.transactions;if(p!=null){e.signedTransactions[r].transactions=p.map(C=>C.hash===l?E(x({},C),{status:n,errorMessage:i}):C);let A=(h=(g=e.signedTransactions[r])==null?void 0:g.transactions)==null?void 0:h.every(C=>Qe(C.status)),_=(S=(y=e.signedTransactions[r])==null?void 0:y.transactions)==null?void 0:S.every(C=>Je(C.status));A&&(e.signedTransactions[r].status="success"),_&&(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=we.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=we.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload}},extraReducers:e=>{e.addCase(v,()=>we),e.addCase(zn.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((m,[d,g])=>{let h=new Date(d),y=new Date;return y.setHours(y.getHours()+5),y-h>0||(m[d]=g),m},{});i!=null&&(t.customTransactionInformationForSessionId=i),n!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:ap,updateSignedTransactions:sp,setTransactionsToSign:Yn,clearAllTransactionsToSign:cp,clearAllSignedTransactions:lp,clearSignedTransaction:pp,clearTransactionToSign:up,setSignTransactionsError:dp,setSignTransactionsCancelMessage:Xn,moveTransactionsToSignedState:mp}=Kn.actions,et=Kn.reducer});var Zn,Xt,Qn,yp,hp,xp,Sp,rt,nt=T(()=>{"use strict";o();Zn=require("@reduxjs/toolkit");F();Xt={},Qn=(0,Zn.createSlice)({name:"batchTransactionsSlice",initialState:Xt,reducers:{setBatchTransactions:(e,t)=>{e[t.payload.id]=t.payload},updateBatchTransactions:(e,t)=>{e[t.payload.id]=t.payload},clearBatchTransactions:(e,t)=>{delete e[t.payload.batchId]},clearAllBatchTransactions:()=>Xt},extraReducers:e=>{e.addCase(v,()=>Xt)}}),{setBatchTransactions:yp,updateBatchTransactions:hp,clearBatchTransactions:xp,clearAllBatchTransactions:Sp}=Qn.actions,rt=Qn.reducer});var eo,Jn,to,Ap,ro,Zt=T(()=>{"use strict";o();eo=require("@reduxjs/toolkit");F();Jn={},to=(0,eo.createSlice)({name:"dappConfigSlice",initialState:Jn,reducers:{setDappConfig:(e,t)=>{e=x(x({},e),t.payload)}},extraReducers:e=>{e.addCase(v,()=>Jn)}}),{setDappConfig:Ap}=to.actions,ro=to.reducer});var ce=T(()=>{"use strict";o();Ue();$e();We();qe();ze();Ye();Ze();tt();nt();Zt()});var er=T(()=>{"use strict";o()});var uo,po,mo,fu,Tu,yu,hu,xu,Su,go,fo=T(()=>{"use strict";o();uo=require("@reduxjs/toolkit");F();po={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},mo=(0,uo.createSlice)({name:"dappModalsSlice",initialState:po,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(v,()=>po)}}),{setDappModalVisibility:fu,setDappModalHeaderVisibility:Tu,setDappModalFooterVisibility:yu,setDappModalHeaderText:hu,setDappModalFooterText:xu,setDappModalConfig:Su}=mo.actions,go=mo.reducer});var To,wa,ba,pe,lt=T(()=>{"use strict";o();To=require("@reduxjs/toolkit");er();Ue();nt();Zt();fo();$e();We();qe();ze();Ye();Ze();tt();wa={["account"]:Be,["dappModal"]:go,["dappConfig"]:ro,["loginInfo"]:Ve,["modals"]:Ge,["networkConfig"]:He,["signedMessageInfo"]:je,["toasts"]:Ke,["transactionsInfo"]:Xe,["transactions"]:et,["batchTransactions"]:rt},ba=(e={})=>(0,To.combineReducers)(x(x({},wa),e)),pe=ba});var So={};ne(So,{default:()=>Ba,sessionStorageReducers:()=>tr});function Q(e,t=[]){return{key:e,version:1,storage:ho.default,blacklist:t}}var R,yo,ho,Ia,Ie,Aa,va,Ea,ka,La,Da,Na,Ra,Ca,Pa,xo,_a,tr,Ma,Oa,Fa,Ba,wo=T(()=>{"use strict";o();R=require("redux-persist"),yo=w(require("redux-persist/lib/storage")),ho=w(require("redux-persist/lib/storage/session"));lt();ce();Ue();nt();$e();We();qe();ze();Ye();Ze();tt();er();Ia={persistReducersStorageType:"localStorage"},Ie={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},Aa=Q(Ie["account"]),va=Q(Ie["loginInfo"]),Ea=Q(Ie["modals"]),ka=Q(Ie["networkConfig"]),La={2:e=>E(x({},e),{networkConfig:Gt})};Da=Q("sdk-dapp-transactionsInfo"),Na=Q("sdk-dapp-transactions",["transactionsToSign"]),Ra=Q("sdk-dapp-batchTransactions",["batchTransactions"]),Ca=Q("sdk-dapp-toasts"),Pa=Q("sdk-dapp-signedMessageInfo"),xo={key:"sdk-dapp-store",version:2,storage:yo.default,whitelist:Object.keys(Ie),migrate:(0,R.createMigrate)(La,{debug:!1})},_a=E(x({},xo),{whitelist:[]}),tr={["toasts"]:(0,R.persistReducer)(Ca,Ke),["transactions"]:(0,R.persistReducer)(Na,et),["transactionsInfo"]:(0,R.persistReducer)(Da,Xe),["batchTransactions"]:(0,R.persistReducer)(Ra,rt),["signedMessageInfo"]:(0,R.persistReducer)(Pa,je)},Ma=E(x({},tr),{["account"]:(0,R.persistReducer)(Aa,Be),["loginInfo"]:(0,R.persistReducer)(va,Ve),["modals"]:(0,R.persistReducer)(Ea,Ge),["networkConfig"]:(0,R.persistReducer)(ka,He)}),Oa=Ia.persistReducersStorageType==="localStorage",Fa=Oa?(0,R.persistReducer)(xo,pe(tr)):(0,R.persistReducer)(_a,pe(Ma)),Ba=Fa});var bo={};ne(bo,{default:()=>Ua});var Ua,Io=T(()=>{"use strict";o();lt();Ua=pe()});var Ao={};ne(Ao,{default:()=>$a});var O,Va,$a,vo=T(()=>{"use strict";o();O=require("redux-persist"),Va=[O.FLUSH,O.REHYDRATE,O.PAUSE,O.PERSIST,O.PURGE,O.REGISTER],$a=Va});var Lo={};ne(Lo,{default:()=>ko});function ko(e){return(0,Eo.persistStore)(e)}var Eo,Do=T(()=>{"use strict";o();Eo=require("redux-persist")});var As={};ne(As,{sendTransactions:()=>Is});module.exports=ye(As);o();o();var Vo=w(require("bignumber.js"));b();o();ce();o();var no=w(require("lodash.isequal")),ot=require("reselect");P();var f=(0,ot.createSelectorCreator)(ot.defaultMemoize,no.default),it=(e,t)=>e!=""&&Boolean(t);var j=e=>e.account,be=f(j,e=>e.address),Qt=f(j,be,(e,t)=>t in e.accounts?e.accounts[t]:Fe),$p=f(j,Qt,(e,t)=>{let i=e,{accounts:r}=i,n=Tr(i,["accounts"]);return E(x({},n),{account:t})}),oo=f(Qt,e=>e.balance),io=f(Qt,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),Gp=f(j,e=>e.shard),Wp=f(j,e=>e.ledgerAccount),Hp=f(j,e=>e.walletConnectAccount),qp=f(j,e=>e.isAccountLoading),jp=f(j,e=>e.accountLoadingError),zp=f(j,e=>e.websocketEvent),Kp=f(j,e=>e.websocketBatchEvent);o();var le=e=>e.networkConfig,at=f(le,e=>e.chainID),Zp=f(le,e=>e.network.walletConnectBridgeAddress),Qp=f(le,e=>e.network.walletConnectV2RelayAddress),Jp=f(le,e=>e.network.walletConnectV2ProjectId),eu=f(le,e=>e.network.walletConnectV2Options),tu=f(le,e=>e.network.walletConnectDeepLink),Jt=f(le,e=>e.network),ao=f(Jt,e=>e.apiAddress),so=f(Jt,e=>e.explorerAddress),ru=f(Jt,e=>e.egldLabel);ce();o();var rr=require("@reduxjs/toolkit"),Po=require("react-redux/lib/utils/Subscription");ce();o();var co=w(require("lodash.throttle"));b();ce();Ut();Me();he();var ha=[Pe],st=!1,xa=(0,co.default)(()=>{Se(xe())},5e3),lo=e=>t=>r=>{var d;if(ha.includes(r.type))return t(r);let n=e.getState(),i=fe.local.getItem(se.loginExpiresAt);if(!it((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 Se(xe());let p=Date.now();return i-p<0&&!st?setTimeout(()=>{st=!0,e.dispatch(In())},1e3):(st&&(st=!1),xa()),t(r)};o();o();function ct(){return typeof sessionStorage!="undefined"}var No=ct()?(wo(),ye(So)).default:(Io(),ye(bo)).default,Ro=ct()?(vo(),ye(Ao)).default:[],Co=ct()?(Do(),ye(Lo)).default:e=>e;lt();var L=(0,rr.configureStore)({reducer:No,middleware:e=>e({serializableCheck:{ignoredActions:[...Ro,xn.type,hn.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(lo)}),ed=(0,Po.createSubscription)(L),td=Co(L),rd=(0,rr.configureStore)({reducer:pe});P();o();var _o=w(require("bignumber.js"));b();var pt=e=>{if(isNaN(e)||e==null||String(e).includes("Infinity"))return!1;let[t,r]=e.split(".");if(r)for(;r.charAt(r.length-1)===ee;)r=r.slice(0,-1);let n=r?[t,r].join("."):t,i=new _o.default(n);return i.toString(10)===n&&i.comparedTo(0)>=0};o();var or=w(require("bignumber.js"));b();o();var B=require("@multiversx/sdk-core"),Fo=require("@multiversx/sdk-network-providers");b();o();o();var Mo=w(require("bignumber.js")),nr=(e,t=!0)=>{let r=String(e);if(!r.match(/^[-]?\d+$/))return!1;let n=new Mo.default(r),i=t?0:-1;return n.toString(10)===r&&n.comparedTo(0)>=i};o();b();o();var Oo={from:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa",to:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa"};function Bo({minGasLimit:e=String(J),gasLimit:t,gasPrice:r,data:n,gasPerDataByte:i,gasPriceModifier:l,defaultGasPrice:p=String(ge),chainId:m}){let d=n||"",g=nr(t)?t:e,h=pt(r)?r:p,y=new B.Transaction({nonce:0,value:B.TokenPayment.egldFromAmount("0"),receiver:new B.Address(Oo.to),sender:new B.Address(Oo.to),gasPrice:parseInt(h),gasLimit:parseInt(g),data:new B.TransactionPayload(d.trim()),chainID:m,version:new B.TransactionVersion(1)}),S=new Fo.NetworkConfig;S.MinGasLimit=parseInt(e),S.GasPerDataByte=parseInt(i),S.GasPriceModifier=parseFloat(l);try{return y.computeFee(S).toString(10)}catch(A){return ee}}function Uo(e,t){let r=new or.default(0);return e.forEach(n=>{let i=Bo({gasPerDataByte:String(Ce),gasPriceModifier:String(nn),minGasLimit:String(t),gasLimit:n.getGasLimit().valueOf().toString(),gasPrice:n.getGasPrice().valueOf().toString(),data:n.getData().toString(),chainId:n.getChainID().valueOf()});r=r.plus(new or.default(i))}),r}function $o(l){return V(this,arguments,function*({transactions:e,callbackRoute:t,minGasLimit:r=J,customTransactionInformation:n,transactionsDisplayInfo:i}){let p=L.getState(),m=Date.now().toString(),d=oo(p),g=at(p),h=Array.isArray(e)?e:[e],y=Uo(h,r);if(!new Vo.default(pt(d)?d:"0").minus(y).isGreaterThan(0)){let U={type:"warning",iconClassName:"text-warning",title:"Insufficient EGLD funds",description:"Current EGLD balance cannot cover the transaction fees."};return L.dispatch(Vt(U)),{error:"insufficient funds",sessionId:null}}if(!(h==null?void 0:h.every(U=>U.getChainID().valueOf()===g.valueOf()))){let U={type:"warning",iconClassName:"text-warning",title:"Network change detected",description:"The application tried to change the transaction network"};return L.dispatch(Vt(U)),{error:"Invalid ChainID",sessionId:null}}let C={sessionId:m,callbackRoute:t,customTransactionInformation:n,transactions:h.map(U=>U.toPlainObject())};return L.dispatch(Xn(null)),L.dispatch(Yn(C)),L.dispatch(Wn({sessionId:m,transactionsDisplayInfo:i})),{sessionId:m}})}o();var dr=require("@multiversx/sdk-core"),mr=w(require("bignumber.js"));b();o();var z=require("@multiversx/sdk-core"),Wo=require("@multiversx/sdk-core/out/signature");b();o();var ar=require("@multiversx/sdk-core/out");o();o();function ir(e){try{let t=atob(e),r=btoa(t),n=a.Buffer.from(e,"base64").toString(),i=a.Buffer.from(n).toString("base64");if(e===r&&e===i||t===n)return!0}catch(t){return!1}return!1}o();o();o();o();var Go=e=>{let t=e!=null?e:"";return ir(t)?ar.TransactionPayload.fromEncoded(t):new ar.TransactionPayload(t)};function Ae(e){var r,n,i;let t=new z.Transaction(x(x({value:e.value.valueOf(),data:Go(e.data),nonce:e.nonce.valueOf(),receiver:new z.Address(e.receiver),sender:new z.Address(e.sender),gasLimit:(r=e.gasLimit.valueOf())!=null?r:J,gasPrice:(n=e.gasPrice.valueOf())!=null?n:ge,chainID:e.chainID.valueOf(),version:new z.TransactionVersion((i=e.version)!=null?i:on)},e.options?{options:new z.TransactionOptions(e.options)}:{}),e.guardian?{guardian:new z.Address(e.guardian)}:{}));return e.guardianSignature&&t.applyGuardianSignature({hex:()=>e.guardianSignature||""}),t.applySignature(new Wo.Signature(e.signature)),t}o();o();var re=e=>e.loginInfo,Qd=f(re,e=>e.loginMethod),Jd=f(re,be,(e,t)=>it(e.loginMethod,t)),em=f(re,e=>e.walletConnectLogin),tm=f(re,e=>e.ledgerLogin),rm=f(re,e=>e.walletLogin),nm=f(re,e=>e.isLoginSessionInvalid),om=f(re,e=>e.tokenLogin),im=f(re,e=>e.logoutRoute);o();var Ho=e=>e.modals,cm=f(Ho,e=>e.txSubmittedModal),lm=f(Ho,e=>e.notificationModal);o();var ut=e=>e.signedMessageInfo,dm=f(ut,e=>e.isSigning),mm=f(ut,e=>e.errorMessage),gm=f(ut,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]}),fm=f(ut,e=>{let t=Object.keys(e.signedSessions),r=t.length;return t.length>0?t[r-1]:""});o();var sr=e=>e.toasts,hm=f(sr,e=>e.customToasts),xm=f(sr,e=>e.transactionToasts),Sm=f(sr,e=>e.failTransactionToast);o();ce();var qo={errorMessage:qt,successMessage:jt,processingMessage:zt},Wa=e=>e.transactionsInfo,Am=f(Wa,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||qo);o();o();o();o();o();o();var qa=require("@multiversx/sdk-core/out");o();b();o();var zo=require("@multiversx/sdk-core");P();o();var ja=require("@multiversx/sdk-core");o();o();o();var za=require("@multiversx/sdk-core"),Ka=w(require("bignumber.js"));Z();o();o();o();var cr="accounts";o();o();o();o();N();o();o();N();o();o();o();var Qa=w(require("bignumber.js"));b();o();var Za=require("@multiversx/sdk-core"),lr=w(require("bignumber.js"));b();o();lr.default.config({ROUNDING_MODE:lr.default.ROUND_FLOOR});o();o();o();b();o();o();o();o();b();o();b();o();var Ja=require("@multiversx/sdk-core");b();o();o();o();o();b();o();N();var ts=["reDelegateRewards","claimRewards","unBond"],rs=["wrapEgld","unwrapEgld"],ns=["unStake"],os=["unDelegate"];o();o();o();b();o();var ss=w(require("bignumber.js"));o();o();N();o();var cs=w(require("bignumber.js"));o();o();o();var ps=w(require("bignumber.js"));P();o();o();o();o();Z();o();var ms=require("@multiversx/sdk-web-wallet-provider");b();o();var ds=w(require("qs"));o();o();var ur=()=>typeof window!="undefined";o();var ay={search:ur()?window.location.search:"",removeParams:[]};o();o();o();o();N();o();o();o();var gs=w(require("linkifyjs"));o();b();o();var fs=w(require("bignumber.js"));o();P();o();o();Z();o();Z();o();o();o();N();o();N();o();var Ts=w(require("bignumber.js"));b();N();o();N();o();var ei=require("react");P();o();o();N();o();o();var ys=require("@multiversx/sdk-core/out"),hs=w(require("bignumber.js"));N();o();P();o();o();P();var Qh=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];o();var ti=require("react");P();o();var Ss=require("react");N();var ix=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];Yt();var ft=e=>e.transactions,ve=f(ft,e=>e.signedTransactions),Hx=f(ft,e=>e.signTransactionsError),qx=f(ft,e=>e.signTransactionsCancelMessage),Tt=e=>t=>Object.entries(t).reduce((r,[n,i])=>(e(i.status)&&(r[n]=i),r),{}),jx=f(ve,Tt(Hn)),zx=f(ve,Tt(Qe)),Kx=f(ve,Tt(Je)),Yx=f(ve,Tt(qn)),Xx=f(ft,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:E(x({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>Ae(r)))||[]})}),Zx=f(ve,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});o();var ws=e=>e.dappConfig,eS=f(ws,e=>e.shouldUseWebViewProvider);o();o();var ni=w(require("axios"));o();o();var ri=e=>{let t=e!=null?e:ao(L.getState());return t.endsWith("/")?t.slice(0,-1):t};function oi(e){return V(this,null,function*(){if(!e)return null;let r=`${ri()}/${cr}/${e}?withGuardianInfo=true`;try{let{data:n}=yield ni.default.get(r);return n}catch(n){console.error("error fetching configuration for ",r)}return null})}function ii(e){return V(this,null,function*(){return yield oi(e)})}o();function ai(e){let t=L.getState(),r=io(t);return e?r&&!isNaN(r)?Math.max(r,e.nonce):e.nonce:r}function bs(e){let t=new mr.default(J),r=new mr.default(Ce),n=e?r.times(a.Buffer.from(e).length):0;return t.plus(n).toString(10)}function si(t){return V(this,arguments,function*({transactions:e}){let r=be(L.getState()),n=yield ii(r),i=ai(n);return e.map(l=>{let{value:p,receiver:m,data:d="",chainID:g,version:h=1,options:y,gasPrice:S=ge,gasLimit:A=bs(l.data),guardian:_,guardianSignature:C}=l,U=m;try{U=new dr.Address(m).hex()}catch(pi){throw"Invalid Receiver address"}let ci=at(L.getState()).valueOf().toString(),li=g||ci;return Ae({value:p,receiver:U,data:d,gasPrice:S,gasLimit:Number(A),nonce:Number(i.valueOf().toString()),sender:new dr.Address(r).hex(),chainID:li,version:h,options:y,guardian:_,guardianSignature:C})})})}function Is(d){return V(this,arguments,function*({transactions:e,transactionsDisplayInfo:t,redirectAfterSign:r=!0,callbackRoute:n=window==null?void 0:window.location.pathname,signWithoutSending:i,completedTransactionsDelay:l,sessionInformation:p,minGasLimit:m}){try{let g=Array.isArray(e)?e:[e],h=g.every(S=>Object.getPrototypeOf(S).toPlainObject!=null),y=g;return h||(y=yield si({transactions:g,minGasLimit:m})),$o({transactions:y,minGasLimit:m,callbackRoute:n,transactionsDisplayInfo:t,customTransactionInformation:{redirectAfterSign:r,completedTransactionsDelay:l,sessionInformation:p,signWithoutSending:i}})}catch(g){return console.error("error signing transaction",g),{error:g,sessionId:null}}})}0&&(module.exports={sendTransactions});
|
|
1
|
+
"use strict";var ui=Object.create;var Te=Object.defineProperty,di=Object.defineProperties,mi=Object.getOwnPropertyDescriptor,gi=Object.getOwnPropertyDescriptors,fi=Object.getOwnPropertyNames,Ee=Object.getOwnPropertySymbols,Ti=Object.getPrototypeOf,yt=Object.prototype.hasOwnProperty,fr=Object.prototype.propertyIsEnumerable;var gr=(e,t,r)=>t in e?Te(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t)=>{for(var r in t||(t={}))yt.call(t,r)&&gr(e,r,t[r]);if(Ee)for(var r of Ee(t))fr.call(t,r)&&gr(e,r,t[r]);return e},E=(e,t)=>di(e,gi(t));var Tr=(e,t)=>{var r={};for(var n in e)yt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ee)for(var n of Ee(e))t.indexOf(n)<0&&fr.call(e,n)&&(r[n]=e[n]);return r};var y=(e,t)=>()=>(e&&(t=e(e=0)),t);var ke=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ne=(e,t)=>{for(var r in t)Te(e,r,{get:t[r],enumerable:!0})},yr=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of fi(t))!yt.call(e,i)&&i!==r&&Te(e,i,{get:()=>t[i],enumerable:!(n=mi(t,i))||n.enumerable});return e};var w=(e,t,r)=>(r=e!=null?ui(Ti(e)):{},yr(t||!e||!e.__esModule?Te(r,"default",{value:e,enumerable:!0}):r,e)),ye=e=>yr(Te({},"__esModule",{value:!0}),e);var V=(e,t,r)=>new Promise((n,i)=>{var l=d=>{try{m(r.next(d))}catch(T){i(T)}},p=d=>{try{m(r.throw(d))}catch(T){i(T)}},m=d=>d.done?n(d.value):Promise.resolve(d.value).then(l,p);m((r=r.apply(e,t)).next())});var Sr=ke(Le=>{"use strict";o();Le.byteLength=hi;Le.toByteArray=Si;Le.fromByteArray=Ii;var $=[],M=[],yi=typeof Uint8Array!="undefined"?Uint8Array:Array,ht="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(oe=0,hr=ht.length;oe<hr;++oe)$[oe]=ht[oe],M[ht.charCodeAt(oe)]=oe;var oe,hr;M["-".charCodeAt(0)]=62;M["_".charCodeAt(0)]=63;function xr(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 hi(e){var t=xr(e),r=t[0],n=t[1];return(r+n)*3/4-n}function xi(e,t,r){return(t+r)*3/4-r}function Si(e){var t,r=xr(e),n=r[0],i=r[1],l=new yi(xi(e,n,i)),p=0,m=i>0?n-4:n,d;for(d=0;d<m;d+=4)t=M[e.charCodeAt(d)]<<18|M[e.charCodeAt(d+1)]<<12|M[e.charCodeAt(d+2)]<<6|M[e.charCodeAt(d+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return i===2&&(t=M[e.charCodeAt(d)]<<2|M[e.charCodeAt(d+1)]>>4,l[p++]=t&255),i===1&&(t=M[e.charCodeAt(d)]<<10|M[e.charCodeAt(d+1)]<<4|M[e.charCodeAt(d+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function wi(e){return $[e>>18&63]+$[e>>12&63]+$[e>>6&63]+$[e&63]}function bi(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(wi(n));return i.join("")}function Ii(e){for(var t,r=e.length,n=r%3,i=[],l=16383,p=0,m=r-n;p<m;p+=l)i.push(bi(e,p,p+l>m?m:p+l));return n===1?(t=e[r-1],i.push($[t>>2]+$[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push($[t>>10]+$[t>>4&63]+$[t<<2&63]+"=")),i.join("")}});var wr=ke(xt=>{o();xt.read=function(e,t,r,n,i){var l,p,m=i*8-n-1,d=(1<<m)-1,T=d>>1,f=-7,h=r?i-1:0,S=r?-1:1,I=e[t+h];for(h+=S,l=I&(1<<-f)-1,I>>=-f,f+=m;f>0;l=l*256+e[t+h],h+=S,f-=8);for(p=l&(1<<-f)-1,l>>=-f,f+=n;f>0;p=p*256+e[t+h],h+=S,f-=8);if(l===0)l=1-T;else{if(l===d)return p?NaN:(I?-1:1)*(1/0);p=p+Math.pow(2,n),l=l-T}return(I?-1:1)*p*Math.pow(2,l-n)};xt.write=function(e,t,r,n,i,l){var p,m,d,T=l*8-i-1,f=(1<<T)-1,h=f>>1,S=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,I=n?0:l-1,_=n?1:-1,C=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(m=isNaN(t)?1:0,p=f):(p=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-p))<1&&(p--,d*=2),p+h>=1?t+=S/d:t+=S*Math.pow(2,1-h),t*d>=2&&(p++,d/=2),p+h>=f?(m=0,p=f):p+h>=1?(m=(t*d-1)*Math.pow(2,i),p=p+h):(m=t*Math.pow(2,h-1)*Math.pow(2,i),p=0));i>=8;e[r+I]=m&255,I+=_,m/=256,i-=8);for(p=p<<i|m,T+=i;T>0;e[r+I]=p&255,I+=_,p/=256,T-=8);e[r+I-_]|=C*128}});var _r=ke(de=>{"use strict";o();var St=Sr(),ue=wr(),br=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;de.Buffer=u;de.SlowBuffer=Di;de.INSPECT_MAX_BYTES=50;var De=2147483647;de.kMaxLength=De;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 K(e){if(e>De)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 At(e)}return vr(e,t,r)}u.poolSize=8192;function vr(e,t,r){if(typeof e=="string")return Ei(e,t);if(ArrayBuffer.isView(e))return ki(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(G(e,ArrayBuffer)||e&&G(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(G(e,SharedArrayBuffer)||e&&G(e.buffer,SharedArrayBuffer)))return bt(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=Li(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 vr(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function Er(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 vi(e,t,r){return Er(e),e<=0?K(e):t!==void 0?typeof r=="string"?K(e).fill(t,r):K(e).fill(t):K(e)}u.alloc=function(e,t,r){return vi(e,t,r)};function At(e){return Er(e),K(e<0?0:vt(e)|0)}u.allocUnsafe=function(e){return At(e)};u.allocUnsafeSlow=function(e){return At(e)};function Ei(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=kr(e,t)|0,n=K(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function wt(e){for(var t=e.length<0?0:vt(e.length)|0,r=K(t),n=0;n<t;n+=1)r[n]=e[n]&255;return r}function ki(e){if(G(e,Uint8Array)){var t=new Uint8Array(e);return bt(t.buffer,t.byteOffset,t.byteLength)}return wt(e)}function bt(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 Li(e){if(u.isBuffer(e)){var t=vt(e.length)|0,r=K(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||Et(e.length)?K(0):wt(e);if(e.type==="Buffer"&&Array.isArray(e.data))return wt(e.data)}function vt(e){if(e>=De)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+De.toString(16)+" bytes");return e|0}function Di(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(G(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),G(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(G(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 kr(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||G(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 It(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Pr(e).length;default:if(i)return n?-1:It(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=kr;function Ni(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 Dr(this,t,r);case"ascii":return Bi(this,t,r);case"latin1":case"binary":return Ui(this,t,r);case"base64":return Oi(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $i(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}u.prototype._isBuffer=!0;function ie(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)ie(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)ie(this,r,r+3),ie(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)ie(this,r,r+7),ie(this,r+1,r+6),ie(this,r+2,r+5),ie(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?Dr(this,0,t):Ni.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=de.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};br&&(u.prototype[br]=u.prototype.inspect);u.prototype.compare=function(t,r,n,i,l){if(G(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,m=n-r,d=Math.min(p,m),T=this.slice(i,l),f=t.slice(r,n),h=0;h<d;++h)if(T[h]!==f[h]){p=T[h],m=f[h];break}return p<m?-1:m<p?1:0};function Lr(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,Et(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:Ir(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):Ir(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function Ir(e,t,r,n,i){var l=1,p=e.length,m=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,m/=2,r/=2}function d(I,_){return l===1?I[_]:I.readUInt16BE(_*l)}var T;if(i){var f=-1;for(T=r;T<p;T++)if(d(e,T)===d(t,f===-1?0:T-f)){if(f===-1&&(f=T),T-f+1===m)return f*l}else f!==-1&&(T-=T-f),f=-1}else for(r+m>p&&(r=p-m),T=r;T>=0;T--){for(var h=!0,S=0;S<m;S++)if(d(e,T+S)!==d(t,S)){h=!1;break}if(h)return T}return-1}u.prototype.includes=function(t,r,n){return this.indexOf(t,r,n)!==-1};u.prototype.indexOf=function(t,r,n){return Lr(this,t,r,n,!0)};u.prototype.lastIndexOf=function(t,r,n){return Lr(this,t,r,n,!1)};function Ri(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 m=parseInt(t.substr(p*2,2),16);if(Et(m))return p;e[r+p]=m}return p}function Ci(e,t,r,n){return Ne(It(t,e.length-r),e,r,n)}function Pi(e,t,r,n){return Ne(Hi(t),e,r,n)}function _i(e,t,r,n){return Ne(Pr(t),e,r,n)}function Mi(e,t,r,n){return Ne(qi(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 Ri(this,t,r,n);case"utf8":case"utf-8":return Ci(this,t,r,n);case"ascii":case"latin1":case"binary":return Pi(this,t,r,n);case"base64":return _i(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Mi(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 Oi(e,t,r){return t===0&&r===e.length?St.fromByteArray(e):St.fromByteArray(e.slice(t,r))}function Dr(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var l=e[i],p=null,m=l>239?4:l>223?3:l>191?2:1;if(i+m<=r){var d,T,f,h;switch(m){case 1:l<128&&(p=l);break;case 2:d=e[i+1],(d&192)===128&&(h=(l&31)<<6|d&63,h>127&&(p=h));break;case 3:d=e[i+1],T=e[i+2],(d&192)===128&&(T&192)===128&&(h=(l&15)<<12|(d&63)<<6|T&63,h>2047&&(h<55296||h>57343)&&(p=h));break;case 4:d=e[i+1],T=e[i+2],f=e[i+3],(d&192)===128&&(T&192)===128&&(f&192)===128&&(h=(l&15)<<18|(d&63)<<12|(T&63)<<6|f&63,h>65535&&h<1114112&&(p=h))}}p===null?(p=65533,m=1):p>65535&&(p-=65536,n.push(p>>>10&1023|55296),p=56320|p&1023),n.push(p),i+=m}return Fi(n)}var Ar=4096;function Fi(e){var t=e.length;if(t<=Ar)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=Ar));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 Ui(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+=ji[e[l]];return i}function $i(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 k(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||k(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||k(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||k(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||k(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||k(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||k(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||k(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||k(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||k(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||k(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||k(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||k(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||k(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||k(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||k(t,4,this.length),ue.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||k(t,4,this.length),ue.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||k(t,8,this.length),ue.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||k(t,8,this.length),ue.read(this,t,!1,52,8)};function D(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;D(this,t,r,n,l,0)}var p=1,m=0;for(this[r]=t&255;++m<n&&(p*=256);)this[r+m]=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;D(this,t,r,n,l,0)}var p=n-1,m=1;for(this[r+p]=t&255;--p>=0&&(m*=256);)this[r+p]=t/m&255;return r+n};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,n){return t=+t,r=r>>>0,n||D(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||D(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||D(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||D(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||D(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);D(this,t,r,n,l-1,-l)}var p=0,m=1,d=0;for(this[r]=t&255;++p<n&&(m*=256);)t<0&&d===0&&this[r+p-1]!==0&&(d=1),this[r+p]=(t/m>>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);D(this,t,r,n,l-1,-l)}var p=n-1,m=1,d=0;for(this[r+p]=t&255;--p>=0&&(m*=256);)t<0&&d===0&&this[r+p+1]!==0&&(d=1),this[r+p]=(t/m>>0)-d&255;return r+n};u.prototype.writeInt8=function(t,r,n){return t=+t,r=r>>>0,n||D(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||D(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||D(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||D(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||D(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 Nr(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 Rr(e,t,r,n,i){return t=+t,r=r>>>0,i||Nr(e,t,r,4,34028234663852886e22,-34028234663852886e22),ue.write(e,t,r,n,23,4),r+4}u.prototype.writeFloatLE=function(t,r,n){return Rr(this,t,r,!0,n)};u.prototype.writeFloatBE=function(t,r,n){return Rr(this,t,r,!1,n)};function Cr(e,t,r,n,i){return t=+t,r=r>>>0,i||Nr(e,t,r,8,17976931348623157e292,-17976931348623157e292),ue.write(e,t,r,n,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,n){return Cr(this,t,r,!0,n)};u.prototype.writeDoubleBE=function(t,r,n){return Cr(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 m=u.isBuffer(t)?t:u.from(t,i),d=m.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]=m[p%d]}return this};var Gi=/[^+/0-9A-Za-z-_]/g;function Wi(e){if(e=e.split("=")[0],e=e.trim().replace(Gi,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function It(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 Hi(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function qi(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 Pr(e){return St.toByteArray(Wi(e))}function Ne(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 G(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Et(e){return e!==e}var ji=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 Ur=ke((Ds,Br)=>{o();var A=Br.exports={},W,H;function kt(){throw new Error("setTimeout has not been defined")}function Lt(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?W=setTimeout:W=kt}catch(e){W=kt}try{typeof clearTimeout=="function"?H=clearTimeout:H=Lt}catch(e){H=Lt}})();function Mr(e){if(W===setTimeout)return setTimeout(e,0);if((W===kt||!W)&&setTimeout)return W=setTimeout,setTimeout(e,0);try{return W(e,0)}catch(t){try{return W.call(null,e,0)}catch(r){return W.call(this,e,0)}}}function zi(e){if(H===clearTimeout)return clearTimeout(e);if((H===Lt||!H)&&clearTimeout)return H=clearTimeout,clearTimeout(e);try{return H(e)}catch(t){try{return H.call(null,e)}catch(r){return H.call(this,e)}}}var Y=[],me=!1,ae,Re=-1;function Ki(){!me||!ae||(me=!1,ae.length?Y=ae.concat(Y):Re=-1,Y.length&&Or())}function Or(){if(!me){var e=Mr(Ki);me=!0;for(var t=Y.length;t;){for(ae=Y,Y=[];++Re<t;)ae&&ae[Re].run();Re=-1,t=Y.length}ae=null,me=!1,zi(e)}}A.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];Y.push(new Fr(e,t)),Y.length===1&&!me&&Mr(Or)};function Fr(e,t){this.fun=e,this.array=t}Fr.prototype.run=function(){this.fun.apply(null,this.array)};A.title="browser";A.browser=!0;A.env={};A.argv=[];A.version="";A.versions={};function X(){}A.on=X;A.addListener=X;A.once=X;A.off=X;A.removeListener=X;A.removeAllListeners=X;A.emit=X;A.prependListener=X;A.prependOnceListener=X;A.listeners=function(e){return[]};A.binding=function(e){throw new Error("process.binding is not supported")};A.cwd=function(){return"/"};A.chdir=function(e){throw new Error("process.chdir is not supported")};A.umask=function(){return 0}});var a,s,Ns,o=y(()=>{a=w(_r()),s=w(Ur()),Ns=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 Vr=y(()=>{"use strict";o()});var $r=y(()=>{"use strict";o()});var Gr=y(()=>{"use strict";o()});var Wr=y(()=>{"use strict";o()});var Z=y(()=>{"use strict";o()});var Hr=y(()=>{"use strict";o()});var qr=y(()=>{"use strict";o()});var N=y(()=>{"use strict";o()});var jr=y(()=>{"use strict";o()});var zr=y(()=>{"use strict";o()});var Kr=y(()=>{"use strict";o()});var P=y(()=>{"use strict";o();$r();Gr();Wr();Z();Hr();qr();N();jr();zr();Kr()});var Dt,Yr,Xs,Xr,Zs,Zr,Qs,Js,ec,Qr=y(()=>{"use strict";o();P();Dt={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:Yr,egldLabel:Xs}=Dt["devnet"],{chainId:Xr,egldLabel:Zs}=Dt["testnet"],{chainId:Zr,egldLabel:Qs}=Dt["mainnet"],Js={["devnet"]:Yr,["testnet"]:Xr,["mainnet"]:Zr},ec={[Yr]:"devnet",[Xr]:"testnet",[Zr]:"mainnet"}});var Nt=y(()=>{"use strict";o()});var Jr=y(()=>{"use strict";o()});var en,Rt=y(()=>{"use strict";o();en="transaction-status-toast-id"});var q,tn=y(()=>{"use strict";o();q=require("@multiversx/sdk-web-wallet-provider")});var rn=y(()=>{"use strict";o()});var nn,Ce,J,ge,on,Pe,an,ee,b=y(()=>{"use strict";o();Vr();Qr();Nt();Jr();Rt();tn();rn();nn=.01,Ce=1500,J=5e4,ge=1e9,on=1,Pe="logout",an="login",ee="0"});var _e,Ct=y(()=>{"use strict";o();_e=()=>Date.now()/1e3});var sn=y(()=>{"use strict";o()});var cn=y(()=>{"use strict";o()});var ln=y(()=>{"use strict";o();Ct();sn();cn()});var _t={};ne(_t,{getItem:()=>Xi,localStorageKeys:()=>se,removeItem:()=>Zi,setItem:()=>Yi});var se,Pt,Yi,Xi,Zi,he=y(()=>{"use strict";o();ln();se={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},Pt=typeof localStorage!="undefined",Yi=({key:e,data:t,expires:r})=>{!Pt||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Xi=e=>{if(!Pt)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:_e()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},Zi=e=>{!Pt||localStorage.removeItem(String(e))}});var Mt={};ne(Mt,{clear:()=>mn,getItem:()=>un,removeItem:()=>dn,setItem:()=>pn,storage:()=>Qi});var pn,un,dn,mn,Qi,gn=y(()=>{"use strict";o();pn=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},un=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},dn=e=>sessionStorage.removeItem(String(e)),mn=()=>sessionStorage.clear(),Qi={setItem:pn,getItem:un,removeItem:dn,clear:mn}});var fe,Me=y(()=>{"use strict";o();he();gn();fe={session:Mt,local:_t}});var Ot,v,Oe,F=y(()=>{"use strict";o();Ot=require("@reduxjs/toolkit");b();v=(0,Ot.createAction)(Pe),Oe=(0,Ot.createAction)(an,e=>({payload:e}))});var Bt,fn,Tn,Fe,Ft,yn,hn,Cc,xn,Pc,_c,Mc,Oc,Fc,Bc,Uc,Vc,Be,Ue=y(()=>{"use strict";o();Bt=require("@multiversx/sdk-core"),fn=require("@reduxjs/toolkit"),Tn=require("redux-persist");b();Me();he();F();Fe={balance:"...",address:"",isGuarded:!1,nonce:0,txCount:0,scrCount:0,claimableRewards:ee},Ft={address:"",websocketEvent:null,websocketBatchEvent:null,accounts:{"":Fe},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},yn=(0,fn.createSlice)({name:"accountInfoSlice",initialState:Ft,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new Bt.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:Fe},e.shard=t.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,t)=>{let{address:r}=e;e.accounts[r].nonce=t.payload},setAccountShard:(e,t)=>{e.shard=t.payload},setLedgerAccount:(e,t)=>{e.ledgerAccount=t.payload},updateLedgerAccount:(e,t)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=t.payload.index,e.ledgerAccount.address=t.payload.address)},setWalletConnectAccount:(e,t)=>{e.walletConnectAccount=t.payload},setIsAccountLoading:(e,t)=>{e.isAccountLoading=t.payload,e.accountLoadingError=null},setAccountLoadingError:(e,t)=>{e.accountLoadingError=t.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,t)=>{e.websocketEvent={timestamp:Date.now(),message:t.payload}},setWebsocketBatchEvent:(e,t)=>{e.websocketBatchEvent={timestamp:Date.now(),data:t.payload}}},extraReducers:e=>{e.addCase(v,()=>(fe.local.removeItem(se.loginExpiresAt),Ft)),e.addCase(Oe,(t,r)=>{let{address:n}=r.payload;t.address=n,t.publicKey=new Bt.Address(n).hex()}),e.addCase(Tn.REHYDRATE,(t,r)=>{var T;if(!((T=r.payload)!=null&&T.account))return;let{account:n}=r.payload,{address:i,shard:l,accounts:p,publicKey:m}=n;t.address=i,t.shard=l;let d=p&&i in p;t.accounts=d?p:Ft.accounts,t.publicKey=m})}}),{setAccount:hn,setAddress:Cc,setAccountNonce:xn,setAccountShard:Pc,setLedgerAccount:_c,updateLedgerAccount:Mc,setWalletConnectAccount:Oc,setIsAccountLoading:Fc,setAccountLoadingError:Bc,setWebsocketEvent:Uc,setWebsocketBatchEvent:Vc}=yn.actions,Be=yn.reducer});function xe(){return new Date().setHours(new Date().getHours()+24)}function Se(e){fe.local.setItem({key:se.loginExpiresAt,data:e,expires:e})}var Ut=y(()=>{"use strict";o();Me();he()});var wn,Sn,bn,Xc,Zc,Qc,Jc,el,tl,In,rl,Ve,$e=y(()=>{"use strict";o();wn=require("@reduxjs/toolkit");Ut();Z();F();Sn={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},bn=(0,wn.createSlice)({name:"loginInfoSlice",initialState:Sn,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(v,()=>Sn),e.addCase(Oe,(t,r)=>{t.loginMethod=r.payload.loginMethod,Se(xe())})}}),{setLoginMethod:Xc,setWalletConnectLogin:Zc,setLedgerLogin:Qc,setTokenLogin:Jc,setTokenLoginSignature:el,setWalletLogin:tl,invalidateLoginSession:In,setLogoutRoute:rl}=bn.actions,Ve=bn.reducer});var vn,An,En,al,Vt,sl,cl,Ge,We=y(()=>{"use strict";o();vn=require("@reduxjs/toolkit");F();An={},En=(0,vn.createSlice)({name:"modalsSlice",initialState:An,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(v,()=>An)}}),{setTxSubmittedModal:al,setNotificationModal:Vt,clearTxSubmittedModal:sl,clearNotificationModal:cl}=En.actions,Ge=En.reducer});var kn=y(()=>{"use strict";o()});var Ln=y(()=>{"use strict";o();kn()});function $t(e){return e[Math.floor(Math.random()*e.length)]}var Dn=y(()=>{"use strict";o()});var Nn=y(()=>{"use strict";o();Nt()});var Rn=y(()=>{"use strict";o();Ln();Dn();Nn()});var Cn,Pn,Gt,ea,_n,Al,vl,He,qe=y(()=>{"use strict";o();Cn=require("@reduxjs/toolkit"),Pn=w(require("lodash.omit"));Rn();Gt={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},ea={network:Gt,chainID:"-1"},_n=(0,Cn.createSlice)({name:"appConfig",initialState:ea,reducers:{initializeNetworkConfig:(e,t)=>{let r=$t(t.payload.walletConnectBridgeAddresses),n=$t(t.payload.walletConnectV2RelayAddresses),i=(0,Pn.default)(t.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=E(x(x({},e.network),i),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:n})},setChainID:(e,t)=>{e.chainID=t.payload}}}),{initializeNetworkConfig:Al,setChainID:vl}=_n.actions,He=_n.reducer});var Mn,Wt,On,Rl,Cl,Pl,je,ze=y(()=>{"use strict";o();Mn=require("@reduxjs/toolkit");P();F();Wt={isSigning:!1,signedSessions:{}},On=(0,Mn.createSlice)({name:"signedMessageInfoSliceState",initialState:Wt,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:n,errorMessage:i}=t.payload;i&&(e.errorMessage=i),e.isSigning=n.status==="pending",e.signedSessions[r]=n},setSignSessionState:(e,t)=>x(x({},e),t.payload),clearSignedMessageInfo:()=>Wt},extraReducers:e=>{e.addCase(v,()=>Wt)}}),{setSignSession:Rl,clearSignedMessageInfo:Cl,setSignSessionState:Pl}=On.actions,je=On.reducer});var Bn,Un,Fn,Vn,$l,Gl,Wl,Hl,ql,jl,Ke,Ye=y(()=>{"use strict";o();Bn=require("@reduxjs/toolkit"),Un=require("redux-persist");Rt();P();Ct();F();Fn={customToasts:[],transactionToasts:[],failTransactionToast:null},Vn=(0,Bn.createSlice)({name:"toastsSlice",initialState:Fn,reducers:{addCustomToast:(e,t)=>{e.customToasts.push(E(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:_e(),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=E(x({},t.payload),{toastId:en})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(v,()=>Fn),e.addCase(Un.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:$l,removeCustomToast:Gl,addTransactionToast:Wl,removeTransactionToast:Hl,addFailTransactionToast:ql,removeFailTransactionToast:jl}=Vn.actions,Ke=Vn.reducer});var $n,qt,jt,zt,ta,Ht,Gn,Xl,Wn,Zl,Xe,Ze=y(()=>{"use strict";o();$n=require("@reduxjs/toolkit");F();qt="Transaction failed",jt="Transaction successful",zt="Processing transaction",ta="Transaction submitted",Ht={},Gn=(0,$n.createSlice)({name:"transactionsInfo",initialState:Ht,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:n}=t.payload;r!=null&&(e[r]={errorMessage:(n==null?void 0:n.errorMessage)||qt,successMessage:(n==null?void 0:n.successMessage)||jt,processingMessage:(n==null?void 0:n.processingMessage)||zt,submittedMessage:(n==null?void 0:n.submittedMessage)||ta,transactionDuration:n==null?void 0:n.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>Ht},extraReducers:e=>{e.addCase(v,()=>Ht)}}),{clearTransactionsInfo:Xl,setTransactionsDisplayInfo:Wn,clearTransactionsInfoForSessionId:Zl}=Gn.actions,Xe=Gn.reducer});function Hn(e){return e!=null&&(pa(e)||ga(e))}function Qe(e){return e!=null&&(ua(e)||fa(e))}function Je(e){return e!=null&&(da(e)||Ta(e))}function qn(e){return e!=null&&ma(e)}function pa(e){return e!=null&&na.includes(e)}function ua(e){return e!=null&&oa.includes(e)}function da(e){return e!=null&&ia.includes(e)}function ma(e){return e!=null&&aa.includes(e)}function ga(e){return e!=null&&sa.includes(e)}function fa(e){return e!=null&&ca.includes(e)}function Ta(e){return e!=null&&la.includes(e)}var na,oa,ia,aa,sa,ca,la,Yt=y(()=>{"use strict";o();Z();na=["sent"],oa=["success"],ia=["fail","cancelled","timedOut"],aa=["timedOut"],sa=["pending"],ca=["success"],la=["fail","invalid"]});var jn,zn,we,ya,Kn,ap,sp,Yn,cp,lp,pp,up,dp,Xn,mp,et,tt=y(()=>{"use strict";o();jn=require("@reduxjs/toolkit"),zn=require("redux-persist");Z();Yt();F();we={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},ya={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Kn=(0,jn.createSlice)({name:"transactionsSlice",initialState:we,reducers:{moveTransactionsToSignedState:(e,t)=>{var d,T;let{sessionId:r,transactions:n,errorMessage:i,status:l,redirectRoute:p}=t.payload,m=((d=e.customTransactionInformationForSessionId)==null?void 0:d[r])||ya;e.signedTransactions[r]={transactions:n,status:l,errorMessage:i,redirectRoute:p,customTransactionInformation:m},((T=e==null?void 0:e.transactionsToSign)==null?void 0:T.sessionId)===r&&(e.transactionsToSign=we.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 m,d,T,f,h,S;let{sessionId:r,status:n,errorMessage:i,transactionHash:l}=t.payload,p=(d=(m=e.signedTransactions)==null?void 0:m[r])==null?void 0:d.transactions;if(p!=null){e.signedTransactions[r].transactions=p.map(C=>C.hash===l?E(x({},C),{status:n,errorMessage:i}):C);let I=(f=(T=e.signedTransactions[r])==null?void 0:T.transactions)==null?void 0:f.every(C=>Qe(C.status)),_=(S=(h=e.signedTransactions[r])==null?void 0:h.transactions)==null?void 0:S.every(C=>Je(C.status));I&&(e.signedTransactions[r].status="success"),_&&(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=we.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=we.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload}},extraReducers:e=>{e.addCase(v,()=>we),e.addCase(zn.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((m,[d,T])=>{let f=new Date(d),h=new Date;return h.setHours(h.getHours()+5),h-f>0||(m[d]=T),m},{});i!=null&&(t.customTransactionInformationForSessionId=i),n!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:ap,updateSignedTransactions:sp,setTransactionsToSign:Yn,clearAllTransactionsToSign:cp,clearAllSignedTransactions:lp,clearSignedTransaction:pp,clearTransactionToSign:up,setSignTransactionsError:dp,setSignTransactionsCancelMessage:Xn,moveTransactionsToSignedState:mp}=Kn.actions,et=Kn.reducer});var Zn,Xt,Qn,yp,hp,xp,Sp,rt,nt=y(()=>{"use strict";o();Zn=require("@reduxjs/toolkit");F();Xt={},Qn=(0,Zn.createSlice)({name:"batchTransactionsSlice",initialState:Xt,reducers:{setBatchTransactions:(e,t)=>{e[t.payload.id]=t.payload},updateBatchTransactions:(e,t)=>{e[t.payload.id]=t.payload},clearBatchTransactions:(e,t)=>{delete e[t.payload.batchId]},clearAllBatchTransactions:()=>Xt},extraReducers:e=>{e.addCase(v,()=>Xt)}}),{setBatchTransactions:yp,updateBatchTransactions:hp,clearBatchTransactions:xp,clearAllBatchTransactions:Sp}=Qn.actions,rt=Qn.reducer});var eo,Jn,to,Ap,ro,Zt=y(()=>{"use strict";o();eo=require("@reduxjs/toolkit");F();Jn={},to=(0,eo.createSlice)({name:"dappConfigSlice",initialState:Jn,reducers:{setDappConfig:(e,t)=>{e=x(x({},e),t.payload)}},extraReducers:e=>{e.addCase(v,()=>Jn)}}),{setDappConfig:Ap}=to.actions,ro=to.reducer});var ce=y(()=>{"use strict";o();Ue();$e();We();qe();ze();Ye();Ze();tt();nt();Zt()});var er=y(()=>{"use strict";o()});var uo,po,mo,fu,Tu,yu,hu,xu,Su,go,fo=y(()=>{"use strict";o();uo=require("@reduxjs/toolkit");F();po={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},mo=(0,uo.createSlice)({name:"dappModalsSlice",initialState:po,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(v,()=>po)}}),{setDappModalVisibility:fu,setDappModalHeaderVisibility:Tu,setDappModalFooterVisibility:yu,setDappModalHeaderText:hu,setDappModalFooterText:xu,setDappModalConfig:Su}=mo.actions,go=mo.reducer});var To,wa,ba,pe,lt=y(()=>{"use strict";o();To=require("@reduxjs/toolkit");er();Ue();nt();Zt();fo();$e();We();qe();ze();Ye();Ze();tt();wa={["account"]:Be,["dappModal"]:go,["dappConfig"]:ro,["loginInfo"]:Ve,["modals"]:Ge,["networkConfig"]:He,["signedMessageInfo"]:je,["toasts"]:Ke,["transactionsInfo"]:Xe,["transactions"]:et,["batchTransactions"]:rt},ba=(e={})=>(0,To.combineReducers)(x(x({},wa),e)),pe=ba});var So={};ne(So,{default:()=>Ba,sessionStorageReducers:()=>tr});function Q(e,t=[]){return{key:e,version:1,storage:ho.default,blacklist:t}}var R,yo,ho,Ia,Ie,Aa,va,Ea,ka,La,Da,Na,Ra,Ca,Pa,xo,_a,tr,Ma,Oa,Fa,Ba,wo=y(()=>{"use strict";o();R=require("redux-persist"),yo=w(require("redux-persist/lib/storage")),ho=w(require("redux-persist/lib/storage/session"));lt();ce();Ue();nt();$e();We();qe();ze();Ye();Ze();tt();er();Ia={persistReducersStorageType:"localStorage"},Ie={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},Aa=Q(Ie["account"]),va=Q(Ie["loginInfo"]),Ea=Q(Ie["modals"]),ka=Q(Ie["networkConfig"]),La={2:e=>E(x({},e),{networkConfig:Gt})};Da=Q("sdk-dapp-transactionsInfo"),Na=Q("sdk-dapp-transactions",["transactionsToSign"]),Ra=Q("sdk-dapp-batchTransactions",["batchTransactions"]),Ca=Q("sdk-dapp-toasts"),Pa=Q("sdk-dapp-signedMessageInfo"),xo={key:"sdk-dapp-store",version:2,storage:yo.default,whitelist:Object.keys(Ie),migrate:(0,R.createMigrate)(La,{debug:!1})},_a=E(x({},xo),{whitelist:[]}),tr={["toasts"]:(0,R.persistReducer)(Ca,Ke),["transactions"]:(0,R.persistReducer)(Na,et),["transactionsInfo"]:(0,R.persistReducer)(Da,Xe),["batchTransactions"]:(0,R.persistReducer)(Ra,rt),["signedMessageInfo"]:(0,R.persistReducer)(Pa,je)},Ma=E(x({},tr),{["account"]:(0,R.persistReducer)(Aa,Be),["loginInfo"]:(0,R.persistReducer)(va,Ve),["modals"]:(0,R.persistReducer)(Ea,Ge),["networkConfig"]:(0,R.persistReducer)(ka,He)}),Oa=Ia.persistReducersStorageType==="localStorage",Fa=Oa?(0,R.persistReducer)(xo,pe(tr)):(0,R.persistReducer)(_a,pe(Ma)),Ba=Fa});var bo={};ne(bo,{default:()=>Ua});var Ua,Io=y(()=>{"use strict";o();lt();Ua=pe()});var Ao={};ne(Ao,{default:()=>$a});var O,Va,$a,vo=y(()=>{"use strict";o();O=require("redux-persist"),Va=[O.FLUSH,O.REHYDRATE,O.PAUSE,O.PERSIST,O.PURGE,O.REGISTER],$a=Va});var Lo={};ne(Lo,{default:()=>ko});function ko(e){return(0,Eo.persistStore)(e)}var Eo,Do=y(()=>{"use strict";o();Eo=require("redux-persist")});var As={};ne(As,{sendTransactions:()=>Is});module.exports=ye(As);o();o();var Vo=w(require("bignumber.js"));b();o();ce();o();var no=w(require("lodash.isequal")),ot=require("reselect");P();var g=(0,ot.createSelectorCreator)(ot.defaultMemoize,no.default),it=(e,t)=>e!=""&&Boolean(t);var j=e=>e.account,be=g(j,e=>e.address),Qt=g(j,be,(e,t)=>t in e.accounts?e.accounts[t]:Fe),$p=g(j,Qt,(e,t)=>{let i=e,{accounts:r}=i,n=Tr(i,["accounts"]);return E(x({},n),{account:t})}),oo=g(Qt,e=>e.balance),io=g(Qt,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),Gp=g(j,e=>e.shard),Wp=g(j,e=>e.ledgerAccount),Hp=g(j,e=>e.walletConnectAccount),qp=g(j,e=>e.isAccountLoading),jp=g(j,e=>e.accountLoadingError),zp=g(j,e=>e.websocketEvent),Kp=g(j,e=>e.websocketBatchEvent);o();var le=e=>e.networkConfig,at=g(le,e=>e.chainID),Zp=g(le,e=>e.network.walletConnectBridgeAddress),Qp=g(le,e=>e.network.walletConnectV2RelayAddress),Jp=g(le,e=>e.network.walletConnectV2ProjectId),eu=g(le,e=>e.network.walletConnectV2Options),tu=g(le,e=>e.network.walletConnectDeepLink),Jt=g(le,e=>e.network),ao=g(Jt,e=>e.apiAddress),so=g(Jt,e=>e.explorerAddress),ru=g(Jt,e=>e.egldLabel);ce();o();var rr=require("@reduxjs/toolkit"),Po=require("react-redux/lib/utils/Subscription");ce();o();var co=w(require("lodash.throttle"));b();ce();Ut();Me();he();var ha=[Pe],st=!1,xa=(0,co.default)(()=>{Se(xe())},5e3),lo=e=>t=>r=>{var d;if(ha.includes(r.type))return t(r);let n=e.getState(),i=fe.local.getItem(se.loginExpiresAt);if(!it((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 Se(xe());let p=Date.now();return i-p<0&&!st?setTimeout(()=>{st=!0,e.dispatch(In())},1e3):(st&&(st=!1),xa()),t(r)};o();o();function ct(){return typeof sessionStorage!="undefined"}var No=ct()?(wo(),ye(So)).default:(Io(),ye(bo)).default,Ro=ct()?(vo(),ye(Ao)).default:[],Co=ct()?(Do(),ye(Lo)).default:e=>e;lt();var L=(0,rr.configureStore)({reducer:No,middleware:e=>e({serializableCheck:{ignoredActions:[...Ro,xn.type,hn.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(lo)}),ed=(0,Po.createSubscription)(L),td=Co(L),rd=(0,rr.configureStore)({reducer:pe});P();o();var _o=w(require("bignumber.js"));b();var pt=e=>{if(isNaN(e)||e==null||String(e).includes("Infinity"))return!1;let[t,r]=e.split(".");if(r)for(;r.charAt(r.length-1)===ee;)r=r.slice(0,-1);let n=r?[t,r].join("."):t,i=new _o.default(n);return i.toString(10)===n&&i.comparedTo(0)>=0};o();var or=w(require("bignumber.js"));b();o();var B=require("@multiversx/sdk-core"),Fo=require("@multiversx/sdk-network-providers");b();o();o();var Mo=w(require("bignumber.js")),nr=(e,t=!0)=>{let r=String(e);if(!r.match(/^[-]?\d+$/))return!1;let n=new Mo.default(r),i=t?0:-1;return n.toString(10)===r&&n.comparedTo(0)>=i};o();b();o();var Oo={from:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa",to:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa"};function Bo({minGasLimit:e=String(J),gasLimit:t,gasPrice:r,data:n,gasPerDataByte:i,gasPriceModifier:l,defaultGasPrice:p=String(ge),chainId:m}){let d=n||"",T=nr(t)?t:e,f=pt(r)?r:p,h=new B.Transaction({nonce:0,value:B.TokenPayment.egldFromAmount("0"),receiver:new B.Address(Oo.to),sender:new B.Address(Oo.to),gasPrice:parseInt(f),gasLimit:parseInt(T),data:new B.TransactionPayload(d.trim()),chainID:m,version:new B.TransactionVersion(1)}),S=new Fo.NetworkConfig;S.MinGasLimit=parseInt(e),S.GasPerDataByte=parseInt(i),S.GasPriceModifier=parseFloat(l);try{return h.computeFee(S).toString(10)}catch(I){return ee}}function Uo(e,t){let r=new or.default(0);return e.forEach(n=>{let i=Bo({gasPerDataByte:String(Ce),gasPriceModifier:String(nn),minGasLimit:String(t),gasLimit:n.getGasLimit().valueOf().toString(),gasPrice:n.getGasPrice().valueOf().toString(),data:n.getData().toString(),chainId:n.getChainID().valueOf()});r=r.plus(new or.default(i))}),r}function $o(l){return V(this,arguments,function*({transactions:e,callbackRoute:t,minGasLimit:r=J,customTransactionInformation:n,transactionsDisplayInfo:i}){let p=L.getState(),m=Date.now().toString(),d=oo(p),T=at(p),f=Array.isArray(e)?e:[e],h=Uo(f,r);if(!new Vo.default(pt(d)?d:"0").minus(h).isGreaterThan(0)){let U={type:"warning",iconClassName:"text-warning",title:"Insufficient EGLD funds",description:"Current EGLD balance cannot cover the transaction fees."};return L.dispatch(Vt(U)),{error:"insufficient funds",sessionId:null}}if(!(f==null?void 0:f.every(U=>U.getChainID().valueOf()===T.valueOf()))){let U={type:"warning",iconClassName:"text-warning",title:"Network change detected",description:"The application tried to change the transaction network"};return L.dispatch(Vt(U)),{error:"Invalid ChainID",sessionId:null}}let C={sessionId:m,callbackRoute:t,customTransactionInformation:n,transactions:f.map(U=>U.toPlainObject())};return L.dispatch(Xn(null)),L.dispatch(Yn(C)),L.dispatch(Wn({sessionId:m,transactionsDisplayInfo:i})),{sessionId:m}})}o();var dr=require("@multiversx/sdk-core"),mr=w(require("bignumber.js"));b();o();var z=require("@multiversx/sdk-core"),Wo=require("@multiversx/sdk-core/out/signature");b();o();var ar=require("@multiversx/sdk-core/out");o();o();function ir(e){try{let t=atob(e),r=btoa(t),n=a.Buffer.from(e,"base64").toString(),i=a.Buffer.from(n).toString("base64");if(e===r&&e===i||t===n)return!0}catch(t){return!1}return!1}o();o();o();o();var Go=e=>{let t=e!=null?e:"";return ir(t)?ar.TransactionPayload.fromEncoded(t):new ar.TransactionPayload(t)};function Ae(e){var r,n,i;let t=new z.Transaction(x(x({value:e.value.valueOf(),data:Go(e.data),nonce:e.nonce.valueOf(),receiver:new z.Address(e.receiver),sender:new z.Address(e.sender),gasLimit:(r=e.gasLimit.valueOf())!=null?r:J,gasPrice:(n=e.gasPrice.valueOf())!=null?n:ge,chainID:e.chainID.valueOf(),version:new z.TransactionVersion((i=e.version)!=null?i:on)},e.options?{options:new z.TransactionOptions(e.options)}:{}),e.guardian?{guardian:new z.Address(e.guardian)}:{}));return e.guardianSignature&&t.applyGuardianSignature({hex:()=>e.guardianSignature||""}),t.applySignature(new Wo.Signature(e.signature)),t}o();o();var re=e=>e.loginInfo,Qd=g(re,e=>e.loginMethod),Jd=g(re,be,(e,t)=>it(e.loginMethod,t)),em=g(re,e=>e.walletConnectLogin),tm=g(re,e=>e.ledgerLogin),rm=g(re,e=>e.walletLogin),nm=g(re,e=>e.isLoginSessionInvalid),om=g(re,e=>e.tokenLogin),im=g(re,e=>e.logoutRoute);o();var Ho=e=>e.modals,cm=g(Ho,e=>e.txSubmittedModal),lm=g(Ho,e=>e.notificationModal);o();var ut=e=>e.signedMessageInfo,dm=g(ut,e=>e.isSigning),mm=g(ut,e=>e.errorMessage),gm=g(ut,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]}),fm=g(ut,e=>{let t=Object.keys(e.signedSessions),r=t.length;return t.length>0?t[r-1]:""});o();var sr=e=>e.toasts,hm=g(sr,e=>e.customToasts),xm=g(sr,e=>e.transactionToasts),Sm=g(sr,e=>e.failTransactionToast);o();ce();var qo={errorMessage:qt,successMessage:jt,processingMessage:zt},Wa=e=>e.transactionsInfo,Am=g(Wa,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||qo);o();o();o();o();o();o();var qa=require("@multiversx/sdk-core/out");o();b();o();var zo=require("@multiversx/sdk-core");P();o();var ja=require("@multiversx/sdk-core");o();o();o();var za=require("@multiversx/sdk-core"),Ka=w(require("bignumber.js"));Z();o();o();o();var cr="accounts";o();o();o();o();N();o();o();N();o();o();o();var Qa=w(require("bignumber.js"));b();o();var Za=require("@multiversx/sdk-core"),lr=w(require("bignumber.js"));b();o();lr.default.config({ROUNDING_MODE:lr.default.ROUND_FLOOR});o();o();o();b();o();o();o();o();b();o();b();o();var Ja=require("@multiversx/sdk-core");b();o();o();o();o();b();o();N();var ts=["reDelegateRewards","claimRewards","unBond"],rs=["wrapEgld","unwrapEgld"],ns=["unStake"],os=["unDelegate"];o();o();o();b();o();var ss=w(require("bignumber.js"));o();o();N();o();var cs=w(require("bignumber.js"));o();o();o();var ps=w(require("bignumber.js"));P();o();o();o();o();Z();o();var ms=require("@multiversx/sdk-web-wallet-provider");b();o();var ds=w(require("qs"));o();o();var ur=()=>typeof window!="undefined";o();var ay={search:ur()?window.location.search:"",removeParams:[]};o();o();o();o();N();o();o();o();var gs=w(require("linkifyjs"));o();b();o();var fs=w(require("bignumber.js"));o();P();o();o();Z();o();Z();o();o();o();N();o();N();o();var Ts=w(require("bignumber.js"));b();N();o();N();o();var ei=require("react");P();o();o();N();o();o();var ys=require("@multiversx/sdk-core/out"),hs=w(require("bignumber.js"));N();o();P();o();o();P();var Qh=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];o();var ti=require("react");P();o();var Ss=require("react");N();var ix=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];Yt();var ft=e=>e.transactions,ve=g(ft,e=>e.signedTransactions),Hx=g(ft,e=>e.signTransactionsError),qx=g(ft,e=>e.signTransactionsCancelMessage),Tt=e=>t=>Object.entries(t).reduce((r,[n,i])=>(e(i.status)&&(r[n]=i),r),{}),jx=g(ve,Tt(Hn)),zx=g(ve,Tt(Qe)),Kx=g(ve,Tt(Je)),Yx=g(ve,Tt(qn)),Xx=g(ft,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:E(x({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>Ae(r)))||[]})}),Zx=g(ve,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});o();var ws=e=>e.dappConfig,eS=g(ws,e=>e.shouldUseWebViewProvider);o();o();var ni=w(require("axios"));o();o();var ri=e=>{let t=e!=null?e:ao(L.getState());return t.endsWith("/")?t.slice(0,-1):t};function oi(e){return V(this,null,function*(){if(!e)return null;let r=`${ri()}/${cr}/${e}?withGuardianInfo=true`;try{let{data:n}=yield ni.default.get(r);return n}catch(n){console.error("error fetching configuration for ",r)}return null})}function ii(e){return V(this,null,function*(){return yield oi(e)})}o();function ai(e){let t=L.getState(),r=io(t);return e?r&&!isNaN(r)?Math.max(r,e.nonce):e.nonce:r}function bs(e){let t=new mr.default(J),r=new mr.default(Ce),n=e?r.times(a.Buffer.from(e).length):0;return t.plus(n).toString(10)}function si(t){return V(this,arguments,function*({transactions:e}){let r=be(L.getState()),n=yield ii(r),i=ai(n);return e.map(l=>{let{value:p,receiver:m,data:d="",chainID:T,version:f=1,options:h,gasPrice:S=ge,gasLimit:I=bs(l.data),guardian:_,guardianSignature:C}=l,U=m;try{U=new dr.Address(m).hex()}catch(pi){throw"Invalid Receiver address"}let ci=at(L.getState()).valueOf().toString(),li=T||ci;return Ae({value:p,receiver:U,data:d,gasPrice:S,gasLimit:Number(I),nonce:Number(i.valueOf().toString()),sender:new dr.Address(r).hex(),chainID:li,version:f,options:h,guardian:_,guardianSignature:C})})})}function Is(T){return V(this,arguments,function*({transactions:e,transactionsDisplayInfo:t,redirectAfterSign:r=!0,callbackRoute:n=window==null?void 0:window.location.pathname,signWithoutSending:i,completedTransactionsDelay:l,sessionInformation:p,skipGuardian:m,minGasLimit:d}){try{let f=Array.isArray(e)?e:[e],h=f.every(I=>Object.getPrototypeOf(I).toPlainObject!=null),S=f;return h||(S=yield si({transactions:f,minGasLimit:d})),$o({transactions:S,minGasLimit:d,callbackRoute:n,transactionsDisplayInfo:t,customTransactionInformation:{redirectAfterSign:r,completedTransactionsDelay:l,sessionInformation:p,skipGuardian:m,signWithoutSending:i}})}catch(f){return console.error("error signing transaction",f),{error:f,sessionId:null}}})}0&&(module.exports={sendTransactions});
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|
|
@@ -103,6 +103,7 @@ export interface SendTransactionsPropsType {
|
|
|
103
103
|
transactions: Transaction | SimpleTransactionType | (Transaction | SimpleTransactionType)[];
|
|
104
104
|
redirectAfterSign?: boolean;
|
|
105
105
|
signWithoutSending: boolean;
|
|
106
|
+
skipGuardian?: boolean;
|
|
106
107
|
completedTransactionsDelay?: number;
|
|
107
108
|
callbackRoute?: string;
|
|
108
109
|
transactionsDisplayInfo: TransactionsDisplayInfoType;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Ir=Object.create;var O=Object.defineProperty;var Ar=Object.getOwnPropertyDescriptor;var Sr=Object.getOwnPropertyNames;var Ur=Object.getPrototypeOf,Cr=Object.prototype.hasOwnProperty;var br=(n,r)=>()=>(n&&(r=n(n=0)),r);var _=(n,r)=>()=>(r||n((r={exports:{}}).exports,r),r.exports);var rr=(n,r,t,e)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Sr(r))!Cr.call(n,i)&&i!==t&&O(n,i,{get:()=>r[i],enumerable:!(e=Ar(r,i))||e.enumerable});return n};var tr=(n,r,t)=>(t=n!=null?Ir(Ur(n)):{},rr(r||!n||!n.__esModule?O(t,"default",{value:n,enumerable:!0}):t,n)),Rr=n=>rr(O({},"__esModule",{value:!0}),n);var ir=_(N=>{"use strict";w();N.byteLength=kr;N.toByteArray=Lr;N.fromByteArray=Gr;var E=[],g=[],Mr=typeof Uint8Array!="undefined"?Uint8Array:Array,Y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(S=0,nr=Y.length;S<nr;++S)E[S]=Y[S],g[Y.charCodeAt(S)]=S;var S,nr;g["-".charCodeAt(0)]=62;g["_".charCodeAt(0)]=63;function er(n){var r=n.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=n.indexOf("=");t===-1&&(t=r);var e=t===r?0:4-t%4;return[t,e]}function kr(n){var r=er(n),t=r[0],e=r[1];return(t+e)*3/4-e}function Dr(n,r,t){return(r+t)*3/4-t}function Lr(n){var r,t=er(n),e=t[0],i=t[1],a=new Mr(Dr(n,e,i)),o=0,u=i>0?e-4:e,c;for(c=0;c<u;c+=4)r=g[n.charCodeAt(c)]<<18|g[n.charCodeAt(c+1)]<<12|g[n.charCodeAt(c+2)]<<6|g[n.charCodeAt(c+3)],a[o++]=r>>16&255,a[o++]=r>>8&255,a[o++]=r&255;return i===2&&(r=g[n.charCodeAt(c)]<<2|g[n.charCodeAt(c+1)]>>4,a[o++]=r&255),i===1&&(r=g[n.charCodeAt(c)]<<10|g[n.charCodeAt(c+1)]<<4|g[n.charCodeAt(c+2)]>>2,a[o++]=r>>8&255,a[o++]=r&255),a}function _r(n){return E[n>>18&63]+E[n>>12&63]+E[n>>6&63]+E[n&63]}function Nr(n,r,t){for(var e,i=[],a=r;a<t;a+=3)e=(n[a]<<16&16711680)+(n[a+1]<<8&65280)+(n[a+2]&255),i.push(_r(e));return i.join("")}function Gr(n){for(var r,t=n.length,e=t%3,i=[],a=16383,o=0,u=t-e;o<u;o+=a)i.push(Nr(n,o,o+a>u?u:o+a));return e===1?(r=n[t-1],i.push(E[r>>2]+E[r<<4&63]+"==")):e===2&&(r=(n[t-2]<<8)+n[t-1],i.push(E[r>>10]+E[r>>4&63]+E[r<<2&63]+"=")),i.join("")}});var ar=_(q=>{w();q.read=function(n,r,t,e,i){var a,o,u=i*8-e-1,c=(1<<u)-1,f=c>>1,h=-7,p=t?i-1:0,T=t?-1:1,x=n[r+p];for(p+=T,a=x&(1<<-h)-1,x>>=-h,h+=u;h>0;a=a*256+n[r+p],p+=T,h-=8);for(o=a&(1<<-h)-1,a>>=-h,h+=e;h>0;o=o*256+n[r+p],p+=T,h-=8);if(a===0)a=1-f;else{if(a===c)return o?NaN:(x?-1:1)*(1/0);o=o+Math.pow(2,e),a=a-f}return(x?-1:1)*o*Math.pow(2,a-e)};q.write=function(n,r,t,e,i,a){var o,u,c,f=a*8-i-1,h=(1<<f)-1,p=h>>1,T=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=e?0:a-1,b=e?1:-1,Br=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(u=isNaN(r)?1:0,o=h):(o=Math.floor(Math.log(r)/Math.LN2),r*(c=Math.pow(2,-o))<1&&(o--,c*=2),o+p>=1?r+=T/c:r+=T*Math.pow(2,1-p),r*c>=2&&(o++,c/=2),o+p>=h?(u=0,o=h):o+p>=1?(u=(r*c-1)*Math.pow(2,i),o=o+p):(u=r*Math.pow(2,p-1)*Math.pow(2,i),o=0));i>=8;n[t+x]=u&255,x+=b,u/=256,i-=8);for(o=o<<i|u,f+=i;f>0;n[t+x]=o&255,x+=b,o/=256,f-=8);n[t+x-b]|=Br*128}});var Tr=_(M=>{"use strict";w();var X=ir(),R=ar(),or=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;M.Buffer=s;M.SlowBuffer=qr;M.INSPECT_MAX_BYTES=50;var P=2147483647;M.kMaxLength=P;s.TYPED_ARRAY_SUPPORT=Pr();!s.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Pr(){try{var n=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(n,r),n.foo()===42}catch(t){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function B(n){if(n>P)throw new RangeError('The value "'+n+'" is invalid for option "size"');var r=new Uint8Array(n);return Object.setPrototypeOf(r,s.prototype),r}function s(n,r,t){if(typeof n=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return V(n)}return cr(n,r,t)}s.poolSize=8192;function cr(n,r,t){if(typeof n=="string")return Hr(n,r);if(ArrayBuffer.isView(n))return Or(n);if(n==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n);if(d(n,ArrayBuffer)||n&&d(n.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(d(n,SharedArrayBuffer)||n&&d(n.buffer,SharedArrayBuffer)))return z(n,r,t);if(typeof n=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var e=n.valueOf&&n.valueOf();if(e!=null&&e!==n)return s.from(e,r,t);var i=Yr(n);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof n[Symbol.toPrimitive]=="function")return s.from(n[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 n)}s.from=function(n,r,t){return cr(n,r,t)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function pr(n){if(typeof n!="number")throw new TypeError('"size" argument must be of type number');if(n<0)throw new RangeError('The value "'+n+'" is invalid for option "size"')}function Wr(n,r,t){return pr(n),n<=0?B(n):r!==void 0?typeof t=="string"?B(n).fill(r,t):B(n).fill(r):B(n)}s.alloc=function(n,r,t){return Wr(n,r,t)};function V(n){return pr(n),B(n<0?0:K(n)|0)}s.allocUnsafe=function(n){return V(n)};s.allocUnsafeSlow=function(n){return V(n)};function Hr(n,r){if((typeof r!="string"||r==="")&&(r="utf8"),!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var t=fr(n,r)|0,e=B(t),i=e.write(n,r);return i!==t&&(e=e.slice(0,i)),e}function J(n){for(var r=n.length<0?0:K(n.length)|0,t=B(r),e=0;e<r;e+=1)t[e]=n[e]&255;return t}function Or(n){if(d(n,Uint8Array)){var r=new Uint8Array(n);return z(r.buffer,r.byteOffset,r.byteLength)}return J(n)}function z(n,r,t){if(r<0||n.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(n.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');var e;return r===void 0&&t===void 0?e=new Uint8Array(n):t===void 0?e=new Uint8Array(n,r):e=new Uint8Array(n,r,t),Object.setPrototypeOf(e,s.prototype),e}function Yr(n){if(s.isBuffer(n)){var r=K(n.length)|0,t=B(r);return t.length===0||n.copy(t,0,0,r),t}if(n.length!==void 0)return typeof n.length!="number"||Z(n.length)?B(0):J(n);if(n.type==="Buffer"&&Array.isArray(n.data))return J(n.data)}function K(n){if(n>=P)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+P.toString(16)+" bytes");return n|0}function qr(n){return+n!=n&&(n=0),s.alloc(+n)}s.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==s.prototype};s.compare=function(r,t){if(d(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),d(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(r)||!s.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;for(var e=r.length,i=t.length,a=0,o=Math.min(e,i);a<o;++a)if(r[a]!==t[a]){e=r[a],i=t[a];break}return e<i?-1:i<e?1:0};s.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}};s.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return s.alloc(0);var e;if(t===void 0)for(t=0,e=0;e<r.length;++e)t+=r[e].length;var i=s.allocUnsafe(t),a=0;for(e=0;e<r.length;++e){var o=r[e];if(d(o,Uint8Array))a+o.length>i.length?s.from(o).copy(i,a):Uint8Array.prototype.set.call(i,o,a);else if(s.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function fr(n,r){if(s.isBuffer(n))return n.length;if(ArrayBuffer.isView(n)||d(n,ArrayBuffer))return n.byteLength;if(typeof n!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof n);var t=n.length,e=arguments.length>2&&arguments[2]===!0;if(!e&&t===0)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return Q(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return gr(n).length;default:if(i)return e?-1:Q(n).length;r=(""+r).toLowerCase(),i=!0}}s.byteLength=fr;function Xr(n,r,t){var e=!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(n||(n="utf8");;)switch(n){case"hex":return tt(this,r,t);case"utf8":case"utf-8":return lr(this,r,t);case"ascii":return jr(this,r,t);case"latin1":case"binary":return rt(this,r,t);case"base64":return Zr(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return nt(this,r,t);default:if(e)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),e=!0}}s.prototype._isBuffer=!0;function U(n,r,t){var e=n[r];n[r]=n[t],n[t]=e}s.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)U(this,t,t+1);return this};s.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)U(this,t,t+3),U(this,t+1,t+2);return this};s.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)U(this,t,t+7),U(this,t+1,t+6),U(this,t+2,t+5),U(this,t+3,t+4);return this};s.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?lr(this,0,r):Xr.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(r){if(!s.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:s.compare(this,r)===0};s.prototype.inspect=function(){var r="",t=M.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};or&&(s.prototype[or]=s.prototype.inspect);s.prototype.compare=function(r,t,e,i,a){if(d(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.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),e===void 0&&(e=r?r.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),t<0||e>r.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&t>=e)return 0;if(i>=a)return-1;if(t>=e)return 1;if(t>>>=0,e>>>=0,i>>>=0,a>>>=0,this===r)return 0;for(var o=a-i,u=e-t,c=Math.min(o,u),f=this.slice(i,a),h=r.slice(t,e),p=0;p<c;++p)if(f[p]!==h[p]){o=f[p],u=h[p];break}return o<u?-1:u<o?1:0};function hr(n,r,t,e,i){if(n.length===0)return-1;if(typeof t=="string"?(e=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,Z(t)&&(t=i?0:n.length-1),t<0&&(t=n.length+t),t>=n.length){if(i)return-1;t=n.length-1}else if(t<0)if(i)t=0;else return-1;if(typeof r=="string"&&(r=s.from(r,e)),s.isBuffer(r))return r.length===0?-1:sr(n,r,t,e,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(n,r,t):Uint8Array.prototype.lastIndexOf.call(n,r,t):sr(n,[r],t,e,i);throw new TypeError("val must be string, number or Buffer")}function sr(n,r,t,e,i){var a=1,o=n.length,u=r.length;if(e!==void 0&&(e=String(e).toLowerCase(),e==="ucs2"||e==="ucs-2"||e==="utf16le"||e==="utf-16le")){if(n.length<2||r.length<2)return-1;a=2,o/=2,u/=2,t/=2}function c(x,b){return a===1?x[b]:x.readUInt16BE(b*a)}var f;if(i){var h=-1;for(f=t;f<o;f++)if(c(n,f)===c(r,h===-1?0:f-h)){if(h===-1&&(h=f),f-h+1===u)return h*a}else h!==-1&&(f-=f-h),h=-1}else for(t+u>o&&(t=o-u),f=t;f>=0;f--){for(var p=!0,T=0;T<u;T++)if(c(n,f+T)!==c(r,T)){p=!1;break}if(p)return f}return-1}s.prototype.includes=function(r,t,e){return this.indexOf(r,t,e)!==-1};s.prototype.indexOf=function(r,t,e){return hr(this,r,t,e,!0)};s.prototype.lastIndexOf=function(r,t,e){return hr(this,r,t,e,!1)};function Jr(n,r,t,e){t=Number(t)||0;var i=n.length-t;e?(e=Number(e),e>i&&(e=i)):e=i;var a=r.length;e>a/2&&(e=a/2);for(var o=0;o<e;++o){var u=parseInt(r.substr(o*2,2),16);if(Z(u))return o;n[t+o]=u}return o}function zr(n,r,t,e){return W(Q(r,n.length-t),n,t,e)}function Qr(n,r,t,e){return W(at(r),n,t,e)}function Vr(n,r,t,e){return W(gr(r),n,t,e)}function Kr(n,r,t,e){return W(ot(r,n.length-t),n,t,e)}s.prototype.write=function(r,t,e,i){if(t===void 0)i="utf8",e=this.length,t=0;else if(e===void 0&&typeof t=="string")i=t,e=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(e)?(e=e>>>0,i===void 0&&(i="utf8")):(i=e,e=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-t;if((e===void 0||e>a)&&(e=a),r.length>0&&(e<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return Jr(this,r,t,e);case"utf8":case"utf-8":return zr(this,r,t,e);case"ascii":case"latin1":case"binary":return Qr(this,r,t,e);case"base64":return Vr(this,r,t,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Kr(this,r,t,e);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Zr(n,r,t){return r===0&&t===n.length?X.fromByteArray(n):X.fromByteArray(n.slice(r,t))}function lr(n,r,t){t=Math.min(n.length,t);for(var e=[],i=r;i<t;){var a=n[i],o=null,u=a>239?4:a>223?3:a>191?2:1;if(i+u<=t){var c,f,h,p;switch(u){case 1:a<128&&(o=a);break;case 2:c=n[i+1],(c&192)===128&&(p=(a&31)<<6|c&63,p>127&&(o=p));break;case 3:c=n[i+1],f=n[i+2],(c&192)===128&&(f&192)===128&&(p=(a&15)<<12|(c&63)<<6|f&63,p>2047&&(p<55296||p>57343)&&(o=p));break;case 4:c=n[i+1],f=n[i+2],h=n[i+3],(c&192)===128&&(f&192)===128&&(h&192)===128&&(p=(a&15)<<18|(c&63)<<12|(f&63)<<6|h&63,p>65535&&p<1114112&&(o=p))}}o===null?(o=65533,u=1):o>65535&&(o-=65536,e.push(o>>>10&1023|55296),o=56320|o&1023),e.push(o),i+=u}return $r(e)}var ur=4096;function $r(n){var r=n.length;if(r<=ur)return String.fromCharCode.apply(String,n);for(var t="",e=0;e<r;)t+=String.fromCharCode.apply(String,n.slice(e,e+=ur));return t}function jr(n,r,t){var e="";t=Math.min(n.length,t);for(var i=r;i<t;++i)e+=String.fromCharCode(n[i]&127);return e}function rt(n,r,t){var e="";t=Math.min(n.length,t);for(var i=r;i<t;++i)e+=String.fromCharCode(n[i]);return e}function tt(n,r,t){var e=n.length;(!r||r<0)&&(r=0),(!t||t<0||t>e)&&(t=e);for(var i="",a=r;a<t;++a)i+=st[n[a]];return i}function nt(n,r,t){for(var e=n.slice(r,t),i="",a=0;a<e.length-1;a+=2)i+=String.fromCharCode(e[a]+e[a+1]*256);return i}s.prototype.slice=function(r,t){var e=this.length;r=~~r,t=t===void 0?e:~~t,r<0?(r+=e,r<0&&(r=0)):r>e&&(r=e),t<0?(t+=e,t<0&&(t=0)):t>e&&(t=e),t<r&&(t=r);var i=this.subarray(r,t);return Object.setPrototypeOf(i,s.prototype),i};function y(n,r,t){if(n%1!==0||n<0)throw new RangeError("offset is not uint");if(n+r>t)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(r,t,e){r=r>>>0,t=t>>>0,e||y(r,t,this.length);for(var i=this[r],a=1,o=0;++o<t&&(a*=256);)i+=this[r+o]*a;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(r,t,e){r=r>>>0,t=t>>>0,e||y(r,t,this.length);for(var i=this[r+--t],a=1;t>0&&(a*=256);)i+=this[r+--t]*a;return i};s.prototype.readUint8=s.prototype.readUInt8=function(r,t){return r=r>>>0,t||y(r,1,this.length),this[r]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||y(r,2,this.length),this[r]|this[r+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||y(r,2,this.length),this[r]<<8|this[r+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||y(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||y(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};s.prototype.readIntLE=function(r,t,e){r=r>>>0,t=t>>>0,e||y(r,t,this.length);for(var i=this[r],a=1,o=0;++o<t&&(a*=256);)i+=this[r+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*t)),i};s.prototype.readIntBE=function(r,t,e){r=r>>>0,t=t>>>0,e||y(r,t,this.length);for(var i=t,a=1,o=this[r+--i];i>0&&(a*=256);)o+=this[r+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*t)),o};s.prototype.readInt8=function(r,t){return r=r>>>0,t||y(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};s.prototype.readInt16LE=function(r,t){r=r>>>0,t||y(r,2,this.length);var e=this[r]|this[r+1]<<8;return e&32768?e|4294901760:e};s.prototype.readInt16BE=function(r,t){r=r>>>0,t||y(r,2,this.length);var e=this[r+1]|this[r]<<8;return e&32768?e|4294901760:e};s.prototype.readInt32LE=function(r,t){return r=r>>>0,t||y(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};s.prototype.readInt32BE=function(r,t){return r=r>>>0,t||y(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};s.prototype.readFloatLE=function(r,t){return r=r>>>0,t||y(r,4,this.length),R.read(this,r,!0,23,4)};s.prototype.readFloatBE=function(r,t){return r=r>>>0,t||y(r,4,this.length),R.read(this,r,!1,23,4)};s.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||y(r,8,this.length),R.read(this,r,!0,52,8)};s.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||y(r,8,this.length),R.read(this,r,!1,52,8)};function m(n,r,t,e,i,a){if(!s.isBuffer(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<a)throw new RangeError('"value" argument is out of bounds');if(t+e>n.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(r,t,e,i){if(r=+r,t=t>>>0,e=e>>>0,!i){var a=Math.pow(2,8*e)-1;m(this,r,t,e,a,0)}var o=1,u=0;for(this[t]=r&255;++u<e&&(o*=256);)this[t+u]=r/o&255;return t+e};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(r,t,e,i){if(r=+r,t=t>>>0,e=e>>>0,!i){var a=Math.pow(2,8*e)-1;m(this,r,t,e,a,0)}var o=e-1,u=1;for(this[t+o]=r&255;--o>=0&&(u*=256);)this[t+o]=r/u&255;return t+e};s.prototype.writeUint8=s.prototype.writeUInt8=function(r,t,e){return r=+r,t=t>>>0,e||m(this,r,t,1,255,0),this[t]=r&255,t+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(r,t,e){return r=+r,t=t>>>0,e||m(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(r,t,e){return r=+r,t=t>>>0,e||m(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(r,t,e){return r=+r,t=t>>>0,e||m(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};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(r,t,e){return r=+r,t=t>>>0,e||m(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};s.prototype.writeIntLE=function(r,t,e,i){if(r=+r,t=t>>>0,!i){var a=Math.pow(2,8*e-1);m(this,r,t,e,a-1,-a)}var o=0,u=1,c=0;for(this[t]=r&255;++o<e&&(u*=256);)r<0&&c===0&&this[t+o-1]!==0&&(c=1),this[t+o]=(r/u>>0)-c&255;return t+e};s.prototype.writeIntBE=function(r,t,e,i){if(r=+r,t=t>>>0,!i){var a=Math.pow(2,8*e-1);m(this,r,t,e,a-1,-a)}var o=e-1,u=1,c=0;for(this[t+o]=r&255;--o>=0&&(u*=256);)r<0&&c===0&&this[t+o+1]!==0&&(c=1),this[t+o]=(r/u>>0)-c&255;return t+e};s.prototype.writeInt8=function(r,t,e){return r=+r,t=t>>>0,e||m(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};s.prototype.writeInt16LE=function(r,t,e){return r=+r,t=t>>>0,e||m(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};s.prototype.writeInt16BE=function(r,t,e){return r=+r,t=t>>>0,e||m(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};s.prototype.writeInt32LE=function(r,t,e){return r=+r,t=t>>>0,e||m(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};s.prototype.writeInt32BE=function(r,t,e){return r=+r,t=t>>>0,e||m(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 yr(n,r,t,e,i,a){if(t+e>n.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function mr(n,r,t,e,i){return r=+r,t=t>>>0,i||yr(n,r,t,4,34028234663852886e22,-34028234663852886e22),R.write(n,r,t,e,23,4),t+4}s.prototype.writeFloatLE=function(r,t,e){return mr(this,r,t,!0,e)};s.prototype.writeFloatBE=function(r,t,e){return mr(this,r,t,!1,e)};function xr(n,r,t,e,i){return r=+r,t=t>>>0,i||yr(n,r,t,8,17976931348623157e292,-17976931348623157e292),R.write(n,r,t,e,52,8),t+8}s.prototype.writeDoubleLE=function(r,t,e){return xr(this,r,t,!0,e)};s.prototype.writeDoubleBE=function(r,t,e){return xr(this,r,t,!1,e)};s.prototype.copy=function(r,t,e,i){if(!s.isBuffer(r))throw new TypeError("argument should be a Buffer");if(e||(e=0),!i&&i!==0&&(i=this.length),t>=r.length&&(t=r.length),t||(t=0),i>0&&i<e&&(i=e),i===e||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-t<i-e&&(i=r.length-t+e);var a=i-e;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,e,i):Uint8Array.prototype.set.call(r,this.subarray(e,i),t),a};s.prototype.fill=function(r,t,e,i){if(typeof r=="string"){if(typeof t=="string"?(i=t,t=0,e=this.length):typeof e=="string"&&(i=e,e=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){var a=r.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(r=a)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<e)throw new RangeError("Out of range index");if(e<=t)return this;t=t>>>0,e=e===void 0?this.length:e>>>0,r||(r=0);var o;if(typeof r=="number")for(o=t;o<e;++o)this[o]=r;else{var u=s.isBuffer(r)?r:s.from(r,i),c=u.length;if(c===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(o=0;o<e-t;++o)this[o+t]=u[o%c]}return this};var et=/[^+/0-9A-Za-z-_]/g;function it(n){if(n=n.split("=")[0],n=n.trim().replace(et,""),n.length<2)return"";for(;n.length%4!==0;)n=n+"=";return n}function Q(n,r){r=r||1/0;for(var t,e=n.length,i=null,a=[],o=0;o<e;++o){if(t=n.charCodeAt(o),t>55295&&t<57344){if(!i){if(t>56319){(r-=3)>-1&&a.push(239,191,189);continue}else if(o+1===e){(r-=3)>-1&&a.push(239,191,189);continue}i=t;continue}if(t<56320){(r-=3)>-1&&a.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536}else i&&(r-=3)>-1&&a.push(239,191,189);if(i=null,t<128){if((r-=1)<0)break;a.push(t)}else if(t<2048){if((r-=2)<0)break;a.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;a.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;a.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return a}function at(n){for(var r=[],t=0;t<n.length;++t)r.push(n.charCodeAt(t)&255);return r}function ot(n,r){for(var t,e,i,a=[],o=0;o<n.length&&!((r-=2)<0);++o)t=n.charCodeAt(o),e=t>>8,i=t%256,a.push(i),a.push(e);return a}function gr(n){return X.toByteArray(it(n))}function W(n,r,t,e){for(var i=0;i<e&&!(i+t>=r.length||i>=n.length);++i)r[i+t]=n[i];return i}function d(n,r){return n instanceof r||n!=null&&n.constructor!=null&&n.constructor.name!=null&&n.constructor.name===r.name}function Z(n){return n!==n}var st=function(){for(var n="0123456789abcdef",r=new Array(256),t=0;t<16;++t)for(var e=t*16,i=0;i<16;++i)r[e+i]=n[t]+n[i];return r}()});var Fr=_((mt,vr)=>{w();var l=vr.exports={},v,F;function $(){throw new Error("setTimeout has not been defined")}function j(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?v=setTimeout:v=$}catch(n){v=$}try{typeof clearTimeout=="function"?F=clearTimeout:F=j}catch(n){F=j}})();function wr(n){if(v===setTimeout)return setTimeout(n,0);if((v===$||!v)&&setTimeout)return v=setTimeout,setTimeout(n,0);try{return v(n,0)}catch(r){try{return v.call(null,n,0)}catch(t){return v.call(this,n,0)}}}function ut(n){if(F===clearTimeout)return clearTimeout(n);if((F===j||!F)&&clearTimeout)return F=clearTimeout,clearTimeout(n);try{return F(n)}catch(r){try{return F.call(null,n)}catch(t){return F.call(this,n)}}}var I=[],k=!1,C,H=-1;function ct(){!k||!C||(k=!1,C.length?I=C.concat(I):H=-1,I.length&&Er())}function Er(){if(!k){var n=wr(ct);k=!0;for(var r=I.length;r;){for(C=I,I=[];++H<r;)C&&C[H].run();H=-1,r=I.length}C=null,k=!1,ut(n)}}l.nextTick=function(n){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];I.push(new dr(n,r)),I.length===1&&!k&&wr(Er)};function dr(n,r){this.fun=n,this.array=r}dr.prototype.run=function(){this.fun.apply(null,this.array)};l.title="browser";l.browser=!0;l.env={};l.argv=[];l.version="";l.versions={};function A(){}l.on=A;l.addListener=A;l.once=A;l.off=A;l.removeListener=A;l.removeAllListeners=A;l.emit=A;l.prependListener=A;l.prependOnceListener=A;l.listeners=function(n){return[]};l.binding=function(n){throw new Error("process.binding is not supported")};l.cwd=function(){return"/"};l.chdir=function(n){throw new Error("process.chdir is not supported")};l.umask=function(){return 0}});var D,L,xt,w=br(()=>{D=tr(Tr()),L=tr(Fr()),xt=function(n){function r(){var e=this||self;return delete n.prototype.__magic__,e}if(typeof globalThis=="object")return globalThis;if(this)return r();n.defineProperty(n.prototype,"__magic__",{configurable:!0,get:r});var t=__magic__;return t}(Object)});var pt={};module.exports=Rr(pt);w();
|
|
1
|
+
"use strict";var Ir=Object.create;var O=Object.defineProperty;var Ar=Object.getOwnPropertyDescriptor;var Sr=Object.getOwnPropertyNames;var Ur=Object.getPrototypeOf,Cr=Object.prototype.hasOwnProperty;var br=(n,r)=>()=>(n&&(r=n(n=0)),r);var _=(n,r)=>()=>(r||n((r={exports:{}}).exports,r),r.exports);var rr=(n,r,t,e)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Sr(r))!Cr.call(n,i)&&i!==t&&O(n,i,{get:()=>r[i],enumerable:!(e=Ar(r,i))||e.enumerable});return n};var tr=(n,r,t)=>(t=n!=null?Ir(Ur(n)):{},rr(r||!n||!n.__esModule?O(t,"default",{value:n,enumerable:!0}):t,n)),Rr=n=>rr(O({},"__esModule",{value:!0}),n);var ir=_(N=>{"use strict";w();N.byteLength=kr;N.toByteArray=Lr;N.fromByteArray=Gr;var d=[],g=[],Mr=typeof Uint8Array!="undefined"?Uint8Array:Array,Y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(S=0,nr=Y.length;S<nr;++S)d[S]=Y[S],g[Y.charCodeAt(S)]=S;var S,nr;g["-".charCodeAt(0)]=62;g["_".charCodeAt(0)]=63;function er(n){var r=n.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=n.indexOf("=");t===-1&&(t=r);var e=t===r?0:4-t%4;return[t,e]}function kr(n){var r=er(n),t=r[0],e=r[1];return(t+e)*3/4-e}function Dr(n,r,t){return(r+t)*3/4-t}function Lr(n){var r,t=er(n),e=t[0],i=t[1],a=new Mr(Dr(n,e,i)),o=0,u=i>0?e-4:e,c;for(c=0;c<u;c+=4)r=g[n.charCodeAt(c)]<<18|g[n.charCodeAt(c+1)]<<12|g[n.charCodeAt(c+2)]<<6|g[n.charCodeAt(c+3)],a[o++]=r>>16&255,a[o++]=r>>8&255,a[o++]=r&255;return i===2&&(r=g[n.charCodeAt(c)]<<2|g[n.charCodeAt(c+1)]>>4,a[o++]=r&255),i===1&&(r=g[n.charCodeAt(c)]<<10|g[n.charCodeAt(c+1)]<<4|g[n.charCodeAt(c+2)]>>2,a[o++]=r>>8&255,a[o++]=r&255),a}function _r(n){return d[n>>18&63]+d[n>>12&63]+d[n>>6&63]+d[n&63]}function Nr(n,r,t){for(var e,i=[],a=r;a<t;a+=3)e=(n[a]<<16&16711680)+(n[a+1]<<8&65280)+(n[a+2]&255),i.push(_r(e));return i.join("")}function Gr(n){for(var r,t=n.length,e=t%3,i=[],a=16383,o=0,u=t-e;o<u;o+=a)i.push(Nr(n,o,o+a>u?u:o+a));return e===1?(r=n[t-1],i.push(d[r>>2]+d[r<<4&63]+"==")):e===2&&(r=(n[t-2]<<8)+n[t-1],i.push(d[r>>10]+d[r>>4&63]+d[r<<2&63]+"=")),i.join("")}});var ar=_(q=>{w();q.read=function(n,r,t,e,i){var a,o,u=i*8-e-1,c=(1<<u)-1,f=c>>1,h=-7,p=t?i-1:0,T=t?-1:1,x=n[r+p];for(p+=T,a=x&(1<<-h)-1,x>>=-h,h+=u;h>0;a=a*256+n[r+p],p+=T,h-=8);for(o=a&(1<<-h)-1,a>>=-h,h+=e;h>0;o=o*256+n[r+p],p+=T,h-=8);if(a===0)a=1-f;else{if(a===c)return o?NaN:(x?-1:1)*(1/0);o=o+Math.pow(2,e),a=a-f}return(x?-1:1)*o*Math.pow(2,a-e)};q.write=function(n,r,t,e,i,a){var o,u,c,f=a*8-i-1,h=(1<<f)-1,p=h>>1,T=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=e?0:a-1,b=e?1:-1,Br=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(u=isNaN(r)?1:0,o=h):(o=Math.floor(Math.log(r)/Math.LN2),r*(c=Math.pow(2,-o))<1&&(o--,c*=2),o+p>=1?r+=T/c:r+=T*Math.pow(2,1-p),r*c>=2&&(o++,c/=2),o+p>=h?(u=0,o=h):o+p>=1?(u=(r*c-1)*Math.pow(2,i),o=o+p):(u=r*Math.pow(2,p-1)*Math.pow(2,i),o=0));i>=8;n[t+x]=u&255,x+=b,u/=256,i-=8);for(o=o<<i|u,f+=i;f>0;n[t+x]=o&255,x+=b,o/=256,f-=8);n[t+x-b]|=Br*128}});var Tr=_(M=>{"use strict";w();var X=ir(),R=ar(),or=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;M.Buffer=s;M.SlowBuffer=qr;M.INSPECT_MAX_BYTES=50;var P=2147483647;M.kMaxLength=P;s.TYPED_ARRAY_SUPPORT=Pr();!s.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Pr(){try{var n=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(n,r),n.foo()===42}catch(t){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function B(n){if(n>P)throw new RangeError('The value "'+n+'" is invalid for option "size"');var r=new Uint8Array(n);return Object.setPrototypeOf(r,s.prototype),r}function s(n,r,t){if(typeof n=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return V(n)}return cr(n,r,t)}s.poolSize=8192;function cr(n,r,t){if(typeof n=="string")return Hr(n,r);if(ArrayBuffer.isView(n))return Or(n);if(n==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n);if(E(n,ArrayBuffer)||n&&E(n.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(E(n,SharedArrayBuffer)||n&&E(n.buffer,SharedArrayBuffer)))return z(n,r,t);if(typeof n=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var e=n.valueOf&&n.valueOf();if(e!=null&&e!==n)return s.from(e,r,t);var i=Yr(n);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof n[Symbol.toPrimitive]=="function")return s.from(n[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 n)}s.from=function(n,r,t){return cr(n,r,t)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function pr(n){if(typeof n!="number")throw new TypeError('"size" argument must be of type number');if(n<0)throw new RangeError('The value "'+n+'" is invalid for option "size"')}function Wr(n,r,t){return pr(n),n<=0?B(n):r!==void 0?typeof t=="string"?B(n).fill(r,t):B(n).fill(r):B(n)}s.alloc=function(n,r,t){return Wr(n,r,t)};function V(n){return pr(n),B(n<0?0:K(n)|0)}s.allocUnsafe=function(n){return V(n)};s.allocUnsafeSlow=function(n){return V(n)};function Hr(n,r){if((typeof r!="string"||r==="")&&(r="utf8"),!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var t=fr(n,r)|0,e=B(t),i=e.write(n,r);return i!==t&&(e=e.slice(0,i)),e}function J(n){for(var r=n.length<0?0:K(n.length)|0,t=B(r),e=0;e<r;e+=1)t[e]=n[e]&255;return t}function Or(n){if(E(n,Uint8Array)){var r=new Uint8Array(n);return z(r.buffer,r.byteOffset,r.byteLength)}return J(n)}function z(n,r,t){if(r<0||n.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(n.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');var e;return r===void 0&&t===void 0?e=new Uint8Array(n):t===void 0?e=new Uint8Array(n,r):e=new Uint8Array(n,r,t),Object.setPrototypeOf(e,s.prototype),e}function Yr(n){if(s.isBuffer(n)){var r=K(n.length)|0,t=B(r);return t.length===0||n.copy(t,0,0,r),t}if(n.length!==void 0)return typeof n.length!="number"||Z(n.length)?B(0):J(n);if(n.type==="Buffer"&&Array.isArray(n.data))return J(n.data)}function K(n){if(n>=P)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+P.toString(16)+" bytes");return n|0}function qr(n){return+n!=n&&(n=0),s.alloc(+n)}s.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==s.prototype};s.compare=function(r,t){if(E(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),E(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(r)||!s.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;for(var e=r.length,i=t.length,a=0,o=Math.min(e,i);a<o;++a)if(r[a]!==t[a]){e=r[a],i=t[a];break}return e<i?-1:i<e?1:0};s.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}};s.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return s.alloc(0);var e;if(t===void 0)for(t=0,e=0;e<r.length;++e)t+=r[e].length;var i=s.allocUnsafe(t),a=0;for(e=0;e<r.length;++e){var o=r[e];if(E(o,Uint8Array))a+o.length>i.length?s.from(o).copy(i,a):Uint8Array.prototype.set.call(i,o,a);else if(s.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function fr(n,r){if(s.isBuffer(n))return n.length;if(ArrayBuffer.isView(n)||E(n,ArrayBuffer))return n.byteLength;if(typeof n!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof n);var t=n.length,e=arguments.length>2&&arguments[2]===!0;if(!e&&t===0)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return Q(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return gr(n).length;default:if(i)return e?-1:Q(n).length;r=(""+r).toLowerCase(),i=!0}}s.byteLength=fr;function Xr(n,r,t){var e=!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(n||(n="utf8");;)switch(n){case"hex":return tt(this,r,t);case"utf8":case"utf-8":return lr(this,r,t);case"ascii":return jr(this,r,t);case"latin1":case"binary":return rt(this,r,t);case"base64":return Zr(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return nt(this,r,t);default:if(e)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),e=!0}}s.prototype._isBuffer=!0;function U(n,r,t){var e=n[r];n[r]=n[t],n[t]=e}s.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)U(this,t,t+1);return this};s.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)U(this,t,t+3),U(this,t+1,t+2);return this};s.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)U(this,t,t+7),U(this,t+1,t+6),U(this,t+2,t+5),U(this,t+3,t+4);return this};s.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?lr(this,0,r):Xr.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(r){if(!s.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:s.compare(this,r)===0};s.prototype.inspect=function(){var r="",t=M.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};or&&(s.prototype[or]=s.prototype.inspect);s.prototype.compare=function(r,t,e,i,a){if(E(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.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),e===void 0&&(e=r?r.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),t<0||e>r.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&t>=e)return 0;if(i>=a)return-1;if(t>=e)return 1;if(t>>>=0,e>>>=0,i>>>=0,a>>>=0,this===r)return 0;for(var o=a-i,u=e-t,c=Math.min(o,u),f=this.slice(i,a),h=r.slice(t,e),p=0;p<c;++p)if(f[p]!==h[p]){o=f[p],u=h[p];break}return o<u?-1:u<o?1:0};function hr(n,r,t,e,i){if(n.length===0)return-1;if(typeof t=="string"?(e=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,Z(t)&&(t=i?0:n.length-1),t<0&&(t=n.length+t),t>=n.length){if(i)return-1;t=n.length-1}else if(t<0)if(i)t=0;else return-1;if(typeof r=="string"&&(r=s.from(r,e)),s.isBuffer(r))return r.length===0?-1:sr(n,r,t,e,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(n,r,t):Uint8Array.prototype.lastIndexOf.call(n,r,t):sr(n,[r],t,e,i);throw new TypeError("val must be string, number or Buffer")}function sr(n,r,t,e,i){var a=1,o=n.length,u=r.length;if(e!==void 0&&(e=String(e).toLowerCase(),e==="ucs2"||e==="ucs-2"||e==="utf16le"||e==="utf-16le")){if(n.length<2||r.length<2)return-1;a=2,o/=2,u/=2,t/=2}function c(x,b){return a===1?x[b]:x.readUInt16BE(b*a)}var f;if(i){var h=-1;for(f=t;f<o;f++)if(c(n,f)===c(r,h===-1?0:f-h)){if(h===-1&&(h=f),f-h+1===u)return h*a}else h!==-1&&(f-=f-h),h=-1}else for(t+u>o&&(t=o-u),f=t;f>=0;f--){for(var p=!0,T=0;T<u;T++)if(c(n,f+T)!==c(r,T)){p=!1;break}if(p)return f}return-1}s.prototype.includes=function(r,t,e){return this.indexOf(r,t,e)!==-1};s.prototype.indexOf=function(r,t,e){return hr(this,r,t,e,!0)};s.prototype.lastIndexOf=function(r,t,e){return hr(this,r,t,e,!1)};function Jr(n,r,t,e){t=Number(t)||0;var i=n.length-t;e?(e=Number(e),e>i&&(e=i)):e=i;var a=r.length;e>a/2&&(e=a/2);for(var o=0;o<e;++o){var u=parseInt(r.substr(o*2,2),16);if(Z(u))return o;n[t+o]=u}return o}function zr(n,r,t,e){return W(Q(r,n.length-t),n,t,e)}function Qr(n,r,t,e){return W(at(r),n,t,e)}function Vr(n,r,t,e){return W(gr(r),n,t,e)}function Kr(n,r,t,e){return W(ot(r,n.length-t),n,t,e)}s.prototype.write=function(r,t,e,i){if(t===void 0)i="utf8",e=this.length,t=0;else if(e===void 0&&typeof t=="string")i=t,e=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(e)?(e=e>>>0,i===void 0&&(i="utf8")):(i=e,e=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-t;if((e===void 0||e>a)&&(e=a),r.length>0&&(e<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return Jr(this,r,t,e);case"utf8":case"utf-8":return zr(this,r,t,e);case"ascii":case"latin1":case"binary":return Qr(this,r,t,e);case"base64":return Vr(this,r,t,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Kr(this,r,t,e);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Zr(n,r,t){return r===0&&t===n.length?X.fromByteArray(n):X.fromByteArray(n.slice(r,t))}function lr(n,r,t){t=Math.min(n.length,t);for(var e=[],i=r;i<t;){var a=n[i],o=null,u=a>239?4:a>223?3:a>191?2:1;if(i+u<=t){var c,f,h,p;switch(u){case 1:a<128&&(o=a);break;case 2:c=n[i+1],(c&192)===128&&(p=(a&31)<<6|c&63,p>127&&(o=p));break;case 3:c=n[i+1],f=n[i+2],(c&192)===128&&(f&192)===128&&(p=(a&15)<<12|(c&63)<<6|f&63,p>2047&&(p<55296||p>57343)&&(o=p));break;case 4:c=n[i+1],f=n[i+2],h=n[i+3],(c&192)===128&&(f&192)===128&&(h&192)===128&&(p=(a&15)<<18|(c&63)<<12|(f&63)<<6|h&63,p>65535&&p<1114112&&(o=p))}}o===null?(o=65533,u=1):o>65535&&(o-=65536,e.push(o>>>10&1023|55296),o=56320|o&1023),e.push(o),i+=u}return $r(e)}var ur=4096;function $r(n){var r=n.length;if(r<=ur)return String.fromCharCode.apply(String,n);for(var t="",e=0;e<r;)t+=String.fromCharCode.apply(String,n.slice(e,e+=ur));return t}function jr(n,r,t){var e="";t=Math.min(n.length,t);for(var i=r;i<t;++i)e+=String.fromCharCode(n[i]&127);return e}function rt(n,r,t){var e="";t=Math.min(n.length,t);for(var i=r;i<t;++i)e+=String.fromCharCode(n[i]);return e}function tt(n,r,t){var e=n.length;(!r||r<0)&&(r=0),(!t||t<0||t>e)&&(t=e);for(var i="",a=r;a<t;++a)i+=st[n[a]];return i}function nt(n,r,t){for(var e=n.slice(r,t),i="",a=0;a<e.length-1;a+=2)i+=String.fromCharCode(e[a]+e[a+1]*256);return i}s.prototype.slice=function(r,t){var e=this.length;r=~~r,t=t===void 0?e:~~t,r<0?(r+=e,r<0&&(r=0)):r>e&&(r=e),t<0?(t+=e,t<0&&(t=0)):t>e&&(t=e),t<r&&(t=r);var i=this.subarray(r,t);return Object.setPrototypeOf(i,s.prototype),i};function y(n,r,t){if(n%1!==0||n<0)throw new RangeError("offset is not uint");if(n+r>t)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(r,t,e){r=r>>>0,t=t>>>0,e||y(r,t,this.length);for(var i=this[r],a=1,o=0;++o<t&&(a*=256);)i+=this[r+o]*a;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(r,t,e){r=r>>>0,t=t>>>0,e||y(r,t,this.length);for(var i=this[r+--t],a=1;t>0&&(a*=256);)i+=this[r+--t]*a;return i};s.prototype.readUint8=s.prototype.readUInt8=function(r,t){return r=r>>>0,t||y(r,1,this.length),this[r]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||y(r,2,this.length),this[r]|this[r+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||y(r,2,this.length),this[r]<<8|this[r+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||y(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||y(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};s.prototype.readIntLE=function(r,t,e){r=r>>>0,t=t>>>0,e||y(r,t,this.length);for(var i=this[r],a=1,o=0;++o<t&&(a*=256);)i+=this[r+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*t)),i};s.prototype.readIntBE=function(r,t,e){r=r>>>0,t=t>>>0,e||y(r,t,this.length);for(var i=t,a=1,o=this[r+--i];i>0&&(a*=256);)o+=this[r+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*t)),o};s.prototype.readInt8=function(r,t){return r=r>>>0,t||y(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};s.prototype.readInt16LE=function(r,t){r=r>>>0,t||y(r,2,this.length);var e=this[r]|this[r+1]<<8;return e&32768?e|4294901760:e};s.prototype.readInt16BE=function(r,t){r=r>>>0,t||y(r,2,this.length);var e=this[r+1]|this[r]<<8;return e&32768?e|4294901760:e};s.prototype.readInt32LE=function(r,t){return r=r>>>0,t||y(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};s.prototype.readInt32BE=function(r,t){return r=r>>>0,t||y(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};s.prototype.readFloatLE=function(r,t){return r=r>>>0,t||y(r,4,this.length),R.read(this,r,!0,23,4)};s.prototype.readFloatBE=function(r,t){return r=r>>>0,t||y(r,4,this.length),R.read(this,r,!1,23,4)};s.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||y(r,8,this.length),R.read(this,r,!0,52,8)};s.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||y(r,8,this.length),R.read(this,r,!1,52,8)};function m(n,r,t,e,i,a){if(!s.isBuffer(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<a)throw new RangeError('"value" argument is out of bounds');if(t+e>n.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(r,t,e,i){if(r=+r,t=t>>>0,e=e>>>0,!i){var a=Math.pow(2,8*e)-1;m(this,r,t,e,a,0)}var o=1,u=0;for(this[t]=r&255;++u<e&&(o*=256);)this[t+u]=r/o&255;return t+e};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(r,t,e,i){if(r=+r,t=t>>>0,e=e>>>0,!i){var a=Math.pow(2,8*e)-1;m(this,r,t,e,a,0)}var o=e-1,u=1;for(this[t+o]=r&255;--o>=0&&(u*=256);)this[t+o]=r/u&255;return t+e};s.prototype.writeUint8=s.prototype.writeUInt8=function(r,t,e){return r=+r,t=t>>>0,e||m(this,r,t,1,255,0),this[t]=r&255,t+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(r,t,e){return r=+r,t=t>>>0,e||m(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(r,t,e){return r=+r,t=t>>>0,e||m(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(r,t,e){return r=+r,t=t>>>0,e||m(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};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(r,t,e){return r=+r,t=t>>>0,e||m(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};s.prototype.writeIntLE=function(r,t,e,i){if(r=+r,t=t>>>0,!i){var a=Math.pow(2,8*e-1);m(this,r,t,e,a-1,-a)}var o=0,u=1,c=0;for(this[t]=r&255;++o<e&&(u*=256);)r<0&&c===0&&this[t+o-1]!==0&&(c=1),this[t+o]=(r/u>>0)-c&255;return t+e};s.prototype.writeIntBE=function(r,t,e,i){if(r=+r,t=t>>>0,!i){var a=Math.pow(2,8*e-1);m(this,r,t,e,a-1,-a)}var o=e-1,u=1,c=0;for(this[t+o]=r&255;--o>=0&&(u*=256);)r<0&&c===0&&this[t+o+1]!==0&&(c=1),this[t+o]=(r/u>>0)-c&255;return t+e};s.prototype.writeInt8=function(r,t,e){return r=+r,t=t>>>0,e||m(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};s.prototype.writeInt16LE=function(r,t,e){return r=+r,t=t>>>0,e||m(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};s.prototype.writeInt16BE=function(r,t,e){return r=+r,t=t>>>0,e||m(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};s.prototype.writeInt32LE=function(r,t,e){return r=+r,t=t>>>0,e||m(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};s.prototype.writeInt32BE=function(r,t,e){return r=+r,t=t>>>0,e||m(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 yr(n,r,t,e,i,a){if(t+e>n.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function mr(n,r,t,e,i){return r=+r,t=t>>>0,i||yr(n,r,t,4,34028234663852886e22,-34028234663852886e22),R.write(n,r,t,e,23,4),t+4}s.prototype.writeFloatLE=function(r,t,e){return mr(this,r,t,!0,e)};s.prototype.writeFloatBE=function(r,t,e){return mr(this,r,t,!1,e)};function xr(n,r,t,e,i){return r=+r,t=t>>>0,i||yr(n,r,t,8,17976931348623157e292,-17976931348623157e292),R.write(n,r,t,e,52,8),t+8}s.prototype.writeDoubleLE=function(r,t,e){return xr(this,r,t,!0,e)};s.prototype.writeDoubleBE=function(r,t,e){return xr(this,r,t,!1,e)};s.prototype.copy=function(r,t,e,i){if(!s.isBuffer(r))throw new TypeError("argument should be a Buffer");if(e||(e=0),!i&&i!==0&&(i=this.length),t>=r.length&&(t=r.length),t||(t=0),i>0&&i<e&&(i=e),i===e||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-t<i-e&&(i=r.length-t+e);var a=i-e;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,e,i):Uint8Array.prototype.set.call(r,this.subarray(e,i),t),a};s.prototype.fill=function(r,t,e,i){if(typeof r=="string"){if(typeof t=="string"?(i=t,t=0,e=this.length):typeof e=="string"&&(i=e,e=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){var a=r.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(r=a)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<e)throw new RangeError("Out of range index");if(e<=t)return this;t=t>>>0,e=e===void 0?this.length:e>>>0,r||(r=0);var o;if(typeof r=="number")for(o=t;o<e;++o)this[o]=r;else{var u=s.isBuffer(r)?r:s.from(r,i),c=u.length;if(c===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(o=0;o<e-t;++o)this[o+t]=u[o%c]}return this};var et=/[^+/0-9A-Za-z-_]/g;function it(n){if(n=n.split("=")[0],n=n.trim().replace(et,""),n.length<2)return"";for(;n.length%4!==0;)n=n+"=";return n}function Q(n,r){r=r||1/0;for(var t,e=n.length,i=null,a=[],o=0;o<e;++o){if(t=n.charCodeAt(o),t>55295&&t<57344){if(!i){if(t>56319){(r-=3)>-1&&a.push(239,191,189);continue}else if(o+1===e){(r-=3)>-1&&a.push(239,191,189);continue}i=t;continue}if(t<56320){(r-=3)>-1&&a.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536}else i&&(r-=3)>-1&&a.push(239,191,189);if(i=null,t<128){if((r-=1)<0)break;a.push(t)}else if(t<2048){if((r-=2)<0)break;a.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;a.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;a.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return a}function at(n){for(var r=[],t=0;t<n.length;++t)r.push(n.charCodeAt(t)&255);return r}function ot(n,r){for(var t,e,i,a=[],o=0;o<n.length&&!((r-=2)<0);++o)t=n.charCodeAt(o),e=t>>8,i=t%256,a.push(i),a.push(e);return a}function gr(n){return X.toByteArray(it(n))}function W(n,r,t,e){for(var i=0;i<e&&!(i+t>=r.length||i>=n.length);++i)r[i+t]=n[i];return i}function E(n,r){return n instanceof r||n!=null&&n.constructor!=null&&n.constructor.name!=null&&n.constructor.name===r.name}function Z(n){return n!==n}var st=function(){for(var n="0123456789abcdef",r=new Array(256),t=0;t<16;++t)for(var e=t*16,i=0;i<16;++i)r[e+i]=n[t]+n[i];return r}()});var Fr=_((mt,vr)=>{w();var l=vr.exports={},v,F;function $(){throw new Error("setTimeout has not been defined")}function j(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?v=setTimeout:v=$}catch(n){v=$}try{typeof clearTimeout=="function"?F=clearTimeout:F=j}catch(n){F=j}})();function wr(n){if(v===setTimeout)return setTimeout(n,0);if((v===$||!v)&&setTimeout)return v=setTimeout,setTimeout(n,0);try{return v(n,0)}catch(r){try{return v.call(null,n,0)}catch(t){return v.call(this,n,0)}}}function ut(n){if(F===clearTimeout)return clearTimeout(n);if((F===j||!F)&&clearTimeout)return F=clearTimeout,clearTimeout(n);try{return F(n)}catch(r){try{return F.call(null,n)}catch(t){return F.call(this,n)}}}var I=[],k=!1,C,H=-1;function ct(){!k||!C||(k=!1,C.length?I=C.concat(I):H=-1,I.length&&dr())}function dr(){if(!k){var n=wr(ct);k=!0;for(var r=I.length;r;){for(C=I,I=[];++H<r;)C&&C[H].run();H=-1,r=I.length}C=null,k=!1,ut(n)}}l.nextTick=function(n){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];I.push(new Er(n,r)),I.length===1&&!k&&wr(dr)};function Er(n,r){this.fun=n,this.array=r}Er.prototype.run=function(){this.fun.apply(null,this.array)};l.title="browser";l.browser=!0;l.env={};l.argv=[];l.version="";l.versions={};function A(){}l.on=A;l.addListener=A;l.once=A;l.off=A;l.removeListener=A;l.removeAllListeners=A;l.emit=A;l.prependListener=A;l.prependOnceListener=A;l.listeners=function(n){return[]};l.binding=function(n){throw new Error("process.binding is not supported")};l.cwd=function(){return"/"};l.chdir=function(n){throw new Error("process.chdir is not supported")};l.umask=function(){return 0}});var D,L,xt,w=br(()=>{D=tr(Tr()),L=tr(Fr()),xt=function(n){function r(){var e=this||self;return delete n.prototype.__magic__,e}if(typeof globalThis=="object")return globalThis;if(this)return r();n.defineProperty(n.prototype,"__magic__",{configurable:!0,get:r});var t=__magic__;return t}(Object)});var pt={};module.exports=Rr(pt);w();
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|