@multiversx/sdk-dapp 2.3.0 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (305) hide show
  1. package/UI/DappModal/hooks/index.js +1 -1
  2. package/UI/DappModal/hooks/useDappModal.js +1 -1
  3. package/UI/DappModal/index.js +1 -1
  4. package/UI/ExplorerLink/ExplorerLink.js +1 -1
  5. package/UI/ExplorerLink/index.js +1 -1
  6. package/UI/ModalContainer/ModalContainer.js +1 -1
  7. package/UI/ModalContainer/index.js +1 -1
  8. package/UI/NotificationModal/index.js +1 -1
  9. package/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
  10. package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
  11. package/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
  12. package/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
  13. package/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
  14. package/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +1 -1
  15. package/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
  16. package/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
  17. package/UI/SignTransactionsModals/components/TransactionStatusToast.js +1 -1
  18. package/UI/SignTransactionsModals/components/index.js +1 -1
  19. package/UI/SignTransactionsModals/index.js +1 -1
  20. package/UI/TimeAgo/TimeAgo.js +1 -1
  21. package/UI/TimeAgo/index.js +1 -1
  22. package/UI/TokenDetails/index.js +1 -1
  23. package/UI/TransactionDetails/TransactionDetails.js +1 -1
  24. package/UI/TransactionDetails/components/TransactionDetailsBody.js +1 -1
  25. package/UI/TransactionDetails/components/index.js +1 -1
  26. package/UI/TransactionDetails/index.js +1 -1
  27. package/UI/TransactionInfo/TransactionInfo.js +1 -1
  28. package/UI/TransactionInfo/components/AddressDetailItem/AddressDetailitem.js +1 -1
  29. package/UI/TransactionInfo/components/AddressDetailItem/index.js +1 -1
  30. package/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +1 -1
  31. package/UI/TransactionInfo/components/NonceMessage/index.js +1 -1
  32. package/UI/TransactionInfo/components/OperationsList/OperationList.js +1 -1
  33. package/UI/TransactionInfo/components/OperationsList/components/DetailedItem.js +1 -1
  34. package/UI/TransactionInfo/components/OperationsList/components/OperationBlock.js +1 -1
  35. package/UI/TransactionInfo/components/OperationsList/components/OperationRow.js +1 -1
  36. package/UI/TransactionInfo/components/OperationsList/components/OperationText.js +1 -1
  37. package/UI/TransactionInfo/components/OperationsList/components/OperationToken.js +1 -1
  38. package/UI/TransactionInfo/components/OperationsList/components/index.js +1 -1
  39. package/UI/TransactionInfo/components/OperationsList/index.js +1 -1
  40. package/UI/TransactionInfo/components/ScResultsList/ScResultsList.js +1 -1
  41. package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/ResultHash.js +1 -1
  42. package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/index.js +1 -1
  43. package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/ResultReceiver.js +1 -1
  44. package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/index.js +1 -1
  45. package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/ResultSender.js +1 -1
  46. package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/index.js +1 -1
  47. package/UI/TransactionInfo/components/ScResultsList/index.js +1 -1
  48. package/UI/TransactionInfo/components/ScrDetailItem/ScrDetailItem.js +1 -1
  49. package/UI/TransactionInfo/components/ScrDetailItem/index.js +1 -1
  50. package/UI/TransactionInfo/components/TransactionAction/TransactionAction.js +1 -1
  51. package/UI/TransactionInfo/components/TransactionAction/components/ActionText/index.js +1 -1
  52. package/UI/TransactionInfo/components/TransactionAction/components/ActionToken.js +1 -1
  53. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionCollection.js +1 -1
  54. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionNft.js +1 -1
  55. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionToken.js +1 -1
  56. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/index.js +1 -1
  57. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/index.js +1 -1
  58. package/UI/TransactionInfo/components/TransactionAction/components/index.js +1 -1
  59. package/UI/TransactionInfo/components/TransactionAction/index.js +1 -1
  60. package/UI/TransactionInfo/components/TransactionLogs/TransactionLogs.js +1 -1
  61. package/UI/TransactionInfo/components/TransactionLogs/index.js +1 -1
  62. package/UI/TransactionInfo/components/index.js +1 -1
  63. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoAge/TransactionInfoAge.js +1 -1
  64. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoAge/index.js +1 -1
  65. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/TransactionInfoFee.js +1 -1
  66. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/index.js +1 -1
  67. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/TransactionInfoFrom.js +1 -1
  68. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/index.js +1 -1
  69. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/TransactionInfoMethod.js +1 -1
  70. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/index.js +1 -1
  71. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/TransactionInfoMiniblock.js +1 -1
  72. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/index.js +1 -1
  73. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +1 -1
  74. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +1 -1
  75. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/TransactionInfoScResults.js +1 -1
  76. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/index.js +1 -1
  77. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/TransactionInfoTo.js +1 -1
  78. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/index.js +1 -1
  79. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/TransactionInfoTokenOperations.js +1 -1
  80. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/index.js +1 -1
  81. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/TransactionInfoValue.js +1 -1
  82. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/index.js +1 -1
  83. package/UI/TransactionInfo/components/transactionInfoFields/index.js +1 -1
  84. package/UI/TransactionInfo/index.js +1 -1
  85. package/UI/TransactionsTable/TransactionsTable.js +1 -1
  86. package/UI/TransactionsTable/components/LockedTokenAddressIcon.js +1 -1
  87. package/UI/TransactionsTable/components/TransactionHash.js +1 -1
  88. package/UI/TransactionsTable/components/TransactionReceiver.js +1 -1
  89. package/UI/TransactionsTable/components/TransactionRow.js +1 -1
  90. package/UI/TransactionsTable/components/TransactionSender.js +1 -1
  91. package/UI/TransactionsTable/components/TransactionShardsTransition.js +1 -1
  92. package/UI/TransactionsTable/components/TransactionValue/TransactionValue.js +1 -1
  93. package/UI/TransactionsTable/components/TransactionValue/index.js +1 -1
  94. package/UI/TransactionsTable/components/index.js +1 -1
  95. package/UI/TransactionsTable/index.js +1 -1
  96. package/UI/TransactionsToastList/TransactionsToastList.js +1 -1
  97. package/UI/TransactionsToastList/components/CustomToast/CustomToast.js +1 -1
  98. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +1 -1
  99. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +1 -1
  100. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +1 -1
  101. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +1 -1
  102. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +1 -1
  103. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +1 -1
  104. package/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +1 -1
  105. package/UI/TransactionsToastList/components/CustomToast/components/index.js +1 -1
  106. package/UI/TransactionsToastList/components/CustomToast/helpers/index.js +1 -1
  107. package/UI/TransactionsToastList/components/CustomToast/helpers/useMemoizedCloseButton.js +1 -1
  108. package/UI/TransactionsToastList/components/CustomToast/index.js +1 -1
  109. package/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +1 -1
  110. package/UI/TransactionsToastList/components/TransactionToast/components/TransactionToastContent.js +1 -1
  111. package/UI/TransactionsToastList/components/TransactionToast/components/index.js +1 -1
  112. package/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +1 -1
  113. package/UI/TransactionsToastList/components/TransactionToast/index.js +1 -1
  114. package/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
  115. package/UI/TransactionsToastList/components/index.js +1 -1
  116. package/UI/TransactionsToastList/index.js +1 -1
  117. package/UI/extension/ExtensionLoginButton/index.js +1 -1
  118. package/UI/index.js +1 -1
  119. package/UI/ledger/LedgerLoginButton/index.js +1 -1
  120. package/UI/ledger/LedgerLoginContainer/AddressRow.js +1 -1
  121. package/UI/ledger/LedgerLoginContainer/AddressTable.js +1 -1
  122. package/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +1 -1
  123. package/UI/ledger/LedgerLoginContainer/index.js +1 -1
  124. package/UI/ledger/index.js +1 -1
  125. package/UI/pages/UnlockPage/index.js +1 -1
  126. package/UI/pages/index.js +1 -1
  127. package/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
  128. package/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
  129. package/UI/walletConnect/index.js +1 -1
  130. package/UI/webWallet/WebWalletLoginButton/index.js +1 -1
  131. package/__chunks__/{chunk-3PWOZSFG.js → chunk-6JPAXTK6.js} +2 -2
  132. package/__chunks__/{chunk-6BKASPUT.js → chunk-7NFQGQ5Q.js} +2 -2
  133. package/__chunks__/{chunk-IYJJQRS2.js → chunk-JVO3OTWJ.js} +2 -2
  134. package/__chunks__/{chunk-BHP7MLTJ.js → chunk-PAYBBQDI.js} +2 -2
  135. package/__chunks__/chunk-Q3JOZ2CP.js +2 -0
  136. package/__chunks__/chunk-T7D7BT5X.js +2 -0
  137. package/__chunks__/{chunk-6XBUOELQ.js → chunk-U2L6FONJ.js} +2 -2
  138. package/__chunks__/{chunk-2BOUSQ3X.js → chunk-VMMI6YPU.js} +2 -2
  139. package/__chunks__/{chunk-6W5JFCQR.js → chunk-VSFOSOV7.js} +2 -2
  140. package/__commonjs/UI/DappModal/index.js +2 -2
  141. package/__commonjs/UI/ModalContainer/ModalContainer.js +2 -2
  142. package/__commonjs/UI/ModalContainer/index.js +2 -2
  143. package/__commonjs/UI/NotificationModal/index.js +2 -2
  144. package/__commonjs/UI/SignTransactionsModals/SignWithExtensionModal/index.js +3 -3
  145. package/__commonjs/UI/SignTransactionsModals/index.js +21 -21
  146. package/__commonjs/UI/TimeAgo/TimeAgo.js +2 -2
  147. package/__commonjs/UI/TimeAgo/index.js +2 -2
  148. package/__commonjs/UI/TransactionInfo/TransactionInfo.js +22 -22
  149. package/__commonjs/UI/TransactionInfo/components/OperationsList/OperationList.js +2 -2
  150. package/__commonjs/UI/TransactionInfo/components/index.js +24 -24
  151. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoAge/TransactionInfoAge.js +4 -4
  152. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoAge/index.js +4 -4
  153. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/index.js +2 -2
  154. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/TransactionInfoScResults.js +13 -13
  155. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/index.js +13 -13
  156. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/TransactionInfoTo.js +2 -2
  157. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/index.js +2 -2
  158. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/index.js +22 -22
  159. package/__commonjs/UI/TransactionInfo/index.js +24 -24
  160. package/__commonjs/UI/TransactionsTable/TransactionsTable.js +8 -8
  161. package/__commonjs/UI/TransactionsTable/components/LockedTokenAddressIcon.js +2 -2
  162. package/__commonjs/UI/TransactionsTable/components/TransactionRow.js +9 -9
  163. package/__commonjs/UI/TransactionsTable/index.js +11 -11
  164. package/__commonjs/UI/index.js +1 -1
  165. package/__commonjs/UI/ledger/LedgerLoginContainer/AddressRow.js +3 -3
  166. package/__commonjs/__mocks__/index.js +1 -1
  167. package/__commonjs/__mocks__/utils/index.js +1 -1
  168. package/__commonjs/__mocks__/utils/renderWithProvider.js +1 -1
  169. package/__commonjs/apiCalls/configuration/index.js +1 -1
  170. package/__commonjs/apiCalls/transactions/getTransactionsByHashes.js +1 -1
  171. package/__commonjs/components/ProviderInitializer.js +1 -1
  172. package/__commonjs/hooks/signMessage/useGetLastSignedMessageSession.js +1 -1
  173. package/__commonjs/hooks/transactions/index.js +1 -1
  174. package/__commonjs/hooks/transactions/useGetActiveTransactionsStatus.js +1 -1
  175. package/__commonjs/hooks/transactions/useGetFailedTransactions.js +1 -1
  176. package/__commonjs/hooks/transactions/useGetSignTransactionsError.js +1 -1
  177. package/__commonjs/hooks/transactions/useGetSuccessfulTransactions.js +1 -1
  178. package/__commonjs/hooks/useGetNetworkConfig.js +1 -1
  179. package/__commonjs/utils/account/getAccountShard.js +1 -1
  180. package/__commonjs/utils/account/getLatestNonce.js +1 -1
  181. package/__commonjs/utils/network/index.js +1 -1
  182. package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getHumanReadableTimeFormat.js +1 -1
  183. package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/index.js +2 -2
  184. package/__commonjs/wrappers/AuthenticatedRoutesWrapper/index.js +1 -1
  185. package/__commonjs/wrappers/DappProvider/index.js +1 -1
  186. package/__commonjs/wrappers/index.js +1 -1
  187. package/__mocks__/index.js +1 -1
  188. package/__mocks__/utils/index.js +1 -1
  189. package/__mocks__/utils/renderWithProvider.js +1 -1
  190. package/apiCalls/accounts/getAccountFromApi.js +1 -1
  191. package/apiCalls/accounts/index.js +1 -1
  192. package/apiCalls/configuration/getNetworkConfig.js +1 -1
  193. package/apiCalls/configuration/index.js +1 -1
  194. package/apiCalls/getScamAddressData.js +1 -1
  195. package/apiCalls/index.js +1 -1
  196. package/apiCalls/transactions/getTransactionsByHashes.js +1 -1
  197. package/apiCalls/transactions/index.js +1 -1
  198. package/apiCalls/transactions/sendSignedTransactions.js +1 -1
  199. package/apiCalls/utils/getCleanApiAddress.js +1 -1
  200. package/apiCalls/utils/index.js +1 -1
  201. package/components/LogoutListener/LogoutListener.js +1 -1
  202. package/components/LogoutListener/helpers/index.js +1 -1
  203. package/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
  204. package/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
  205. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
  206. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
  207. package/components/LogoutListener/index.js +1 -1
  208. package/components/ProviderInitializer.js +1 -1
  209. package/components/TransactionSender/TransactionSender.js +1 -1
  210. package/components/TransactionSender/index.js +1 -1
  211. package/components/TransactionStatusToast/FailedTransactionStatusToast.js +1 -1
  212. package/components/TransactionsTracker/TransactionTracker.js +1 -1
  213. package/components/TransactionsTracker/index.js +1 -1
  214. package/components/TransactionsTracker/useTransactionsTracker.js +1 -1
  215. package/hooks/account/index.js +1 -1
  216. package/hooks/account/useGetAccount.js +1 -1
  217. package/hooks/account/useGetAccountInfo.js +1 -1
  218. package/hooks/account/useGetIsLoggedIn.js +1 -1
  219. package/hooks/account/useGetLoginInfo.js +1 -1
  220. package/hooks/account/useGetWebsocketEvent.js +1 -1
  221. package/hooks/index.js +1 -1
  222. package/hooks/login/index.js +1 -1
  223. package/hooks/login/useExtensionLogin.js +1 -1
  224. package/hooks/login/useLedgerLogin.js +1 -1
  225. package/hooks/login/useLoginService.js +1 -1
  226. package/hooks/login/useWalletConnectLogin.js +1 -1
  227. package/hooks/login/useWalletConnectV2Login.js +1 -1
  228. package/hooks/login/useWebWalletLogin.js +1 -1
  229. package/hooks/signMessage/index.js +1 -1
  230. package/hooks/signMessage/useGetLastSignedMessageSession.js +1 -1
  231. package/hooks/signMessage/useGetSignMessageSession.js +1 -1
  232. package/hooks/signMessage/useGetSignedMessageStatus.js +1 -1
  233. package/hooks/signMessage/useSignMessage.js +1 -1
  234. package/hooks/transactions/helpers/getShouldMoveTransactionsToSignedState.js +1 -1
  235. package/hooks/transactions/helpers/index.js +1 -1
  236. package/hooks/transactions/helpers/useSetTransactionNonces.js +1 -1
  237. package/hooks/transactions/index.js +1 -1
  238. package/hooks/transactions/useCheckTransactionStatus/checkBatch.js +1 -1
  239. package/hooks/transactions/useCheckTransactionStatus/index.js +1 -1
  240. package/hooks/transactions/useCheckTransactionStatus/useCheckTransactionStatus.js +1 -1
  241. package/hooks/transactions/useGetActiveTransactionsStatus.js +1 -1
  242. package/hooks/transactions/useGetFailedTransactions.js +1 -1
  243. package/hooks/transactions/useGetPendingTransactions.js +1 -1
  244. package/hooks/transactions/useGetSignTransactionsError.js +1 -1
  245. package/hooks/transactions/useGetSignedTransactions.js +1 -1
  246. package/hooks/transactions/useGetSuccessfulTransactions.js +1 -1
  247. package/hooks/transactions/useGetTokenDetails.js +1 -1
  248. package/hooks/transactions/useGetTransactionDisplayInfo.js +1 -1
  249. package/hooks/transactions/useParseSignedTransactions.js +1 -1
  250. package/hooks/transactions/useSignTransactions.js +1 -1
  251. package/hooks/transactions/useSignTransactionsCommonData.js +1 -1
  252. package/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
  253. package/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
  254. package/hooks/transactions/useTrackTransactionStatus.js +1 -1
  255. package/hooks/useGetNetworkConfig.js +1 -1
  256. package/hooks/useGetNotification.js +1 -1
  257. package/hooks/websocketListener/index.js +1 -1
  258. package/hooks/websocketListener/useInitializeWebsocketConnection.js +1 -1
  259. package/hooks/websocketListener/useRegisterWebsocketListener.js +1 -1
  260. package/package.json +1 -1
  261. package/reduxStore/selectors/index.js +1 -1
  262. package/reduxStore/selectors/transactionsSelectors.js +1 -1
  263. package/services/index.js +1 -1
  264. package/services/transactions/index.js +1 -1
  265. package/services/transactions/sendTransactions.js +1 -1
  266. package/services/transactions/transformAndSignTransactions.js +1 -1
  267. package/utils/account/getAccount.js +1 -1
  268. package/utils/account/getAccountBalance.js +1 -1
  269. package/utils/account/getAccountShard.js +1 -1
  270. package/utils/account/getAddress.js +1 -1
  271. package/utils/account/getLatestNonce.js +1 -1
  272. package/utils/account/index.js +1 -1
  273. package/utils/account/refreshAccount.js +1 -1
  274. package/utils/account/signMessage.js +1 -1
  275. package/utils/getIsLoggedIn.js +1 -1
  276. package/utils/index.js +1 -1
  277. package/utils/logout.js +1 -1
  278. package/utils/network/getChainID.js +1 -1
  279. package/utils/network/getEgldLabel.js +1 -1
  280. package/utils/network/getNetworkConfig.js +1 -1
  281. package/utils/network/index.js +1 -1
  282. package/utils/transactions/getAllTransactionsLink.js +1 -1
  283. package/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.js +1 -1
  284. package/utils/transactions/getInterpretedTransaction/helpers/getHumanReadableTimeFormat.d.ts +2 -1
  285. package/utils/transactions/getInterpretedTransaction/helpers/getHumanReadableTimeFormat.js +1 -1
  286. package/utils/transactions/getInterpretedTransaction/helpers/index.js +1 -1
  287. package/utils/transactions/getInterpretedTransaction/index.js +1 -1
  288. package/utils/transactions/getTransactionLink.js +1 -1
  289. package/utils/transactions/index.js +1 -1
  290. package/web/hooks/index.js +1 -1
  291. package/web/hooks/useIdleTimer.js +1 -1
  292. package/web/index.js +1 -1
  293. package/wrappers/AppInitializer.js +1 -1
  294. package/wrappers/AuthenticatedRoutesWrapper/index.js +1 -1
  295. package/wrappers/AxiosInterceptorContext/AxiosInterceptorContext.js +1 -1
  296. package/wrappers/AxiosInterceptorContext/components/AxiosInterceptor.js +1 -1
  297. package/wrappers/AxiosInterceptorContext/components/AxiosInterceptorContextProvider.js +1 -1
  298. package/wrappers/AxiosInterceptorContext/components/LoginInfoListener.js +1 -1
  299. package/wrappers/AxiosInterceptorContext/components/index.js +1 -1
  300. package/wrappers/AxiosInterceptorContext/index.js +1 -1
  301. package/wrappers/DappProvider/CustomComponents.js +1 -1
  302. package/wrappers/DappProvider/index.js +1 -1
  303. package/wrappers/index.js +1 -1
  304. package/__chunks__/chunk-EXJ5ZTBR.js +0 -2
  305. package/__chunks__/chunk-ZPDZ3RNC.js +0 -2
@@ -1,4 +1,4 @@
1
- "use strict";var mo=Object.create;var pe=Object.defineProperty,fo=Object.defineProperties,To=Object.getOwnPropertyDescriptor,yo=Object.getOwnPropertyDescriptors,ho=Object.getOwnPropertyNames,he=Object.getOwnPropertySymbols,xo=Object.getPrototypeOf,Ze=Object.prototype.hasOwnProperty,zt=Object.prototype.propertyIsEnumerable;var jt=(e,t,r)=>t in e?pe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t)=>{for(var r in t||(t={}))Ze.call(t,r)&&jt(e,r,t[r]);if(he)for(var r of he(t))zt.call(t,r)&&jt(e,r,t[r]);return e},w=(e,t)=>fo(e,yo(t));var Kt=(e,t)=>{var r={};for(var n in e)Ze.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&he)for(var n of he(e))t.indexOf(n)<0&&zt.call(e,n)&&(r[n]=e[n]);return r};var f=(e,t)=>()=>(e&&(t=e(e=0)),t);var xe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Z=(e,t)=>{for(var r in t)pe(e,r,{get:t[r],enumerable:!0})},Yt=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ho(t))!Ze.call(e,i)&&i!==r&&pe(e,i,{get:()=>t[i],enumerable:!(n=To(t,i))||n.enumerable});return e};var b=(e,t,r)=>(r=e!=null?mo(xo(e)):{},Yt(t||!e||!e.__esModule?pe(r,"default",{value:e,enumerable:!0}):r,e)),ue=e=>Yt(pe({},"__esModule",{value:!0}),e);var Jt=xe(Se=>{"use strict";o();Se.byteLength=wo;Se.toByteArray=Io;Se.fromByteArray=ko;var P=[],C=[],So=typeof Uint8Array!="undefined"?Uint8Array:Array,Xe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(X=0,Zt=Xe.length;X<Zt;++X)P[X]=Xe[X],C[Xe.charCodeAt(X)]=X;var X,Zt;C["-".charCodeAt(0)]=62;C["_".charCodeAt(0)]=63;function Xt(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 wo(e){var t=Xt(e),r=t[0],n=t[1];return(r+n)*3/4-n}function bo(e,t,r){return(t+r)*3/4-r}function Io(e){var t,r=Xt(e),n=r[0],i=r[1],l=new So(bo(e,n,i)),p=0,g=i>0?n-4:n,d;for(d=0;d<g;d+=4)t=C[e.charCodeAt(d)]<<18|C[e.charCodeAt(d+1)]<<12|C[e.charCodeAt(d+2)]<<6|C[e.charCodeAt(d+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return i===2&&(t=C[e.charCodeAt(d)]<<2|C[e.charCodeAt(d+1)]>>4,l[p++]=t&255),i===1&&(t=C[e.charCodeAt(d)]<<10|C[e.charCodeAt(d+1)]<<4|C[e.charCodeAt(d+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function Ao(e){return P[e>>18&63]+P[e>>12&63]+P[e>>6&63]+P[e&63]}function vo(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(Ao(n));return i.join("")}function ko(e){for(var t,r=e.length,n=r%3,i=[],l=16383,p=0,g=r-n;p<g;p+=l)i.push(vo(e,p,p+l>g?g:p+l));return n===1?(t=e[r-1],i.push(P[t>>2]+P[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(P[t>>10]+P[t>>4&63]+P[t<<2&63]+"=")),i.join("")}});var Qt=xe(Je=>{o();Je.read=function(e,t,r,n,i){var l,p,g=i*8-n-1,d=(1<<g)-1,T=d>>1,h=-7,y=r?i-1:0,k=r?-1:1,E=e[t+y];for(y+=k,l=E&(1<<-h)-1,E>>=-h,h+=g;h>0;l=l*256+e[t+y],y+=k,h-=8);for(p=l&(1<<-h)-1,l>>=-h,h+=n;h>0;p=p*256+e[t+y],y+=k,h-=8);if(l===0)l=1-T;else{if(l===d)return p?NaN:(E?-1:1)*(1/0);p=p+Math.pow(2,n),l=l-T}return(E?-1:1)*p*Math.pow(2,l-n)};Je.write=function(e,t,r,n,i,l){var p,g,d,T=l*8-i-1,h=(1<<T)-1,y=h>>1,k=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=n?0:l-1,j=n?1:-1,U=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(g=isNaN(t)?1:0,p=h):(p=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-p))<1&&(p--,d*=2),p+y>=1?t+=k/d:t+=k*Math.pow(2,1-y),t*d>=2&&(p++,d/=2),p+y>=h?(g=0,p=h):p+y>=1?(g=(t*d-1)*Math.pow(2,i),p=p+y):(g=t*Math.pow(2,y-1)*Math.pow(2,i),p=0));i>=8;e[r+E]=g&255,E+=j,g/=256,i-=8);for(p=p<<i|g,T+=i;T>0;e[r+E]=p&255,E+=j,p/=256,T-=8);e[r+E-j]|=U*128}});var dr=xe(re=>{"use strict";o();var Qe=Jt(),te=Qt(),er=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;re.Buffer=u;re.SlowBuffer=Ro;re.INSPECT_MAX_BYTES=50;var we=2147483647;re.kMaxLength=we;u.TYPED_ARRAY_SUPPORT=Eo();!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 Eo(){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 V(e){if(e>we)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 nt(e)}return nr(e,t,r)}u.poolSize=8192;function nr(e,t,r){if(typeof e=="string")return Do(e,t);if(ArrayBuffer.isView(e))return No(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(M(e,ArrayBuffer)||e&&M(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(M(e,SharedArrayBuffer)||e&&M(e.buffer,SharedArrayBuffer)))return tt(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=Co(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 nr(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function or(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Lo(e,t,r){return or(e),e<=0?V(e):t!==void 0?typeof r=="string"?V(e).fill(t,r):V(e).fill(t):V(e)}u.alloc=function(e,t,r){return Lo(e,t,r)};function nt(e){return or(e),V(e<0?0:ot(e)|0)}u.allocUnsafe=function(e){return nt(e)};u.allocUnsafeSlow=function(e){return nt(e)};function Do(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=ir(e,t)|0,n=V(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function et(e){for(var t=e.length<0?0:ot(e.length)|0,r=V(t),n=0;n<t;n+=1)r[n]=e[n]&255;return r}function No(e){if(M(e,Uint8Array)){var t=new Uint8Array(e);return tt(t.buffer,t.byteOffset,t.byteLength)}return et(e)}function tt(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 Co(e){if(u.isBuffer(e)){var t=ot(e.length)|0,r=V(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||it(e.length)?V(0):et(e);if(e.type==="Buffer"&&Array.isArray(e.data))return et(e.data)}function ot(e){if(e>=we)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+we.toString(16)+" bytes");return e|0}function Ro(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(M(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),M(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(M(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 ir(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||M(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 rt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return ur(e).length;default:if(i)return n?-1:rt(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=ir;function Po(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 Go(this,t,r);case"utf8":case"utf-8":return sr(this,t,r);case"ascii":return $o(this,t,r);case"latin1":case"binary":return Ho(this,t,r);case"base64":return Uo(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Wo(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}u.prototype._isBuffer=!0;function J(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)J(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)J(this,r,r+3),J(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)J(this,r,r+7),J(this,r+1,r+6),J(this,r+2,r+5),J(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?sr(this,0,t):Po.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=re.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};er&&(u.prototype[er]=u.prototype.inspect);u.prototype.compare=function(t,r,n,i,l){if(M(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),l===void 0&&(l=this.length),r<0||n>t.length||i<0||l>this.length)throw new RangeError("out of range index");if(i>=l&&r>=n)return 0;if(i>=l)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,l>>>=0,this===t)return 0;for(var p=l-i,g=n-r,d=Math.min(p,g),T=this.slice(i,l),h=t.slice(r,n),y=0;y<d;++y)if(T[y]!==h[y]){p=T[y],g=h[y];break}return p<g?-1:g<p?1:0};function ar(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,it(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:tr(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):tr(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function tr(e,t,r,n,i){var l=1,p=e.length,g=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;l=2,p/=2,g/=2,r/=2}function d(E,j){return l===1?E[j]:E.readUInt16BE(j*l)}var T;if(i){var h=-1;for(T=r;T<p;T++)if(d(e,T)===d(t,h===-1?0:T-h)){if(h===-1&&(h=T),T-h+1===g)return h*l}else h!==-1&&(T-=T-h),h=-1}else for(r+g>p&&(r=p-g),T=r;T>=0;T--){for(var y=!0,k=0;k<g;k++)if(d(e,T+k)!==d(t,k)){y=!1;break}if(y)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 ar(this,t,r,n,!0)};u.prototype.lastIndexOf=function(t,r,n){return ar(this,t,r,n,!1)};function Mo(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var l=t.length;n>l/2&&(n=l/2);for(var p=0;p<n;++p){var g=parseInt(t.substr(p*2,2),16);if(it(g))return p;e[r+p]=g}return p}function Fo(e,t,r,n){return be(rt(t,e.length-r),e,r,n)}function _o(e,t,r,n){return be(zo(t),e,r,n)}function Oo(e,t,r,n){return be(ur(t),e,r,n)}function Bo(e,t,r,n){return be(Ko(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 Mo(this,t,r,n);case"utf8":case"utf-8":return Fo(this,t,r,n);case"ascii":case"latin1":case"binary":return _o(this,t,r,n);case"base64":return Oo(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Bo(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 Uo(e,t,r){return t===0&&r===e.length?Qe.fromByteArray(e):Qe.fromByteArray(e.slice(t,r))}function sr(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var l=e[i],p=null,g=l>239?4:l>223?3:l>191?2:1;if(i+g<=r){var d,T,h,y;switch(g){case 1:l<128&&(p=l);break;case 2:d=e[i+1],(d&192)===128&&(y=(l&31)<<6|d&63,y>127&&(p=y));break;case 3:d=e[i+1],T=e[i+2],(d&192)===128&&(T&192)===128&&(y=(l&15)<<12|(d&63)<<6|T&63,y>2047&&(y<55296||y>57343)&&(p=y));break;case 4:d=e[i+1],T=e[i+2],h=e[i+3],(d&192)===128&&(T&192)===128&&(h&192)===128&&(y=(l&15)<<18|(d&63)<<12|(T&63)<<6|h&63,y>65535&&y<1114112&&(p=y))}}p===null?(p=65533,g=1):p>65535&&(p-=65536,n.push(p>>>10&1023|55296),p=56320|p&1023),n.push(p),i+=g}return Vo(n)}var rr=4096;function Vo(e){var t=e.length;if(t<=rr)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=rr));return r}function $o(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 Ho(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 Go(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+=Yo[e[l]];return i}function Wo(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 A(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||A(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||A(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||A(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||A(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||A(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||A(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||A(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||A(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||A(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||A(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||A(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||A(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||A(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||A(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||A(t,4,this.length),te.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||A(t,4,this.length),te.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||A(t,8,this.length),te.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||A(t,8,this.length),te.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,g=0;for(this[r]=t&255;++g<n&&(p*=256);)this[r+g]=t/p&255;return r+n};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){var l=Math.pow(2,8*n)-1;D(this,t,r,n,l,0)}var p=n-1,g=1;for(this[r+p]=t&255;--p>=0&&(g*=256);)this[r+p]=t/g&255;return r+n};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,n){return t=+t,r=r>>>0,n||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,g=1,d=0;for(this[r]=t&255;++p<n&&(g*=256);)t<0&&d===0&&this[r+p-1]!==0&&(d=1),this[r+p]=(t/g>>0)-d&255;return r+n};u.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*n-1);D(this,t,r,n,l-1,-l)}var p=n-1,g=1,d=0;for(this[r+p]=t&255;--p>=0&&(g*=256);)t<0&&d===0&&this[r+p+1]!==0&&(d=1),this[r+p]=(t/g>>0)-d&255;return r+n};u.prototype.writeInt8=function(t,r,n){return t=+t,r=r>>>0,n||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 cr(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 lr(e,t,r,n,i){return t=+t,r=r>>>0,i||cr(e,t,r,4,34028234663852886e22,-34028234663852886e22),te.write(e,t,r,n,23,4),r+4}u.prototype.writeFloatLE=function(t,r,n){return lr(this,t,r,!0,n)};u.prototype.writeFloatBE=function(t,r,n){return lr(this,t,r,!1,n)};function pr(e,t,r,n,i){return t=+t,r=r>>>0,i||cr(e,t,r,8,17976931348623157e292,-17976931348623157e292),te.write(e,t,r,n,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,n){return pr(this,t,r,!0,n)};u.prototype.writeDoubleBE=function(t,r,n){return pr(this,t,r,!1,n)};u.prototype.copy=function(t,r,n,i){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<n&&(i=n),i===n||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-n&&(i=t.length-r+n);var l=i-n;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(t,this.subarray(n,i),r),l};u.prototype.fill=function(t,r,n,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t.length===1){var l=t.charCodeAt(0);(i==="utf8"&&l<128||i==="latin1")&&(t=l)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,t||(t=0);var p;if(typeof t=="number")for(p=r;p<n;++p)this[p]=t;else{var g=u.isBuffer(t)?t:u.from(t,i),d=g.length;if(d===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(p=0;p<n-r;++p)this[p+r]=g[p%d]}return this};var qo=/[^+/0-9A-Za-z-_]/g;function jo(e){if(e=e.split("=")[0],e=e.trim().replace(qo,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function rt(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 zo(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function Ko(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 ur(e){return Qe.toByteArray(jo(e))}function be(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 M(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function it(e){return e!==e}var Yo=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var n=r*16,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()});var yr=xe((Aa,Tr)=>{o();var S=Tr.exports={},F,_;function at(){throw new Error("setTimeout has not been defined")}function st(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?F=setTimeout:F=at}catch(e){F=at}try{typeof clearTimeout=="function"?_=clearTimeout:_=st}catch(e){_=st}})();function gr(e){if(F===setTimeout)return setTimeout(e,0);if((F===at||!F)&&setTimeout)return F=setTimeout,setTimeout(e,0);try{return F(e,0)}catch(t){try{return F.call(null,e,0)}catch(r){return F.call(this,e,0)}}}function Zo(e){if(_===clearTimeout)return clearTimeout(e);if((_===st||!_)&&clearTimeout)return _=clearTimeout,clearTimeout(e);try{return _(e)}catch(t){try{return _.call(null,e)}catch(r){return _.call(this,e)}}}var $=[],ne=!1,Q,Ie=-1;function Xo(){!ne||!Q||(ne=!1,Q.length?$=Q.concat($):Ie=-1,$.length&&mr())}function mr(){if(!ne){var e=gr(Xo);ne=!0;for(var t=$.length;t;){for(Q=$,$=[];++Ie<t;)Q&&Q[Ie].run();Ie=-1,t=$.length}Q=null,ne=!1,Zo(e)}}S.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];$.push(new fr(e,t)),$.length===1&&!ne&&gr(mr)};function fr(e,t){this.fun=e,this.array=t}fr.prototype.run=function(){this.fun.apply(null,this.array)};S.title="browser";S.browser=!0;S.env={};S.argv=[];S.version="";S.versions={};function H(){}S.on=H;S.addListener=H;S.once=H;S.off=H;S.removeListener=H;S.removeAllListeners=H;S.emit=H;S.prependListener=H;S.prependOnceListener=H;S.listeners=function(e){return[]};S.binding=function(e){throw new Error("process.binding is not supported")};S.cwd=function(){return"/"};S.chdir=function(e){throw new Error("process.chdir is not supported")};S.umask=function(){return 0}});var a,s,va,o=f(()=>{a=b(dr()),s=b(yr()),va=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 hr=f(()=>{"use strict";o()});var xr=f(()=>{"use strict";o()});var Sr=f(()=>{"use strict";o()});var wr=f(()=>{"use strict";o()});var O=f(()=>{"use strict";o()});var br=f(()=>{"use strict";o()});var Ir=f(()=>{"use strict";o()});var L=f(()=>{"use strict";o()});var Ar=f(()=>{"use strict";o()});var vr=f(()=>{"use strict";o()});var B=f(()=>{"use strict";o();xr();Sr();wr();O();br();Ir();L();Ar();vr()});var ct,kr,Wa,Er,qa,Lr,ja,za,Ka,Dr=f(()=>{"use strict";o();B();ct={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:"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://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:kr,egldLabel:Wa}=ct["devnet"],{chainId:Er,egldLabel:qa}=ct["testnet"],{chainId:Lr,egldLabel:ja}=ct["mainnet"],za={["devnet"]:kr,["testnet"]:Er,["mainnet"]:Lr},Ka={[kr]:"devnet",[Er]:"testnet",[Lr]:"mainnet"}});var lt=f(()=>{"use strict";o()});var Nr=f(()=>{"use strict";o()});var Cr,pt=f(()=>{"use strict";o();Cr="transaction-status-toast-id"});var ut,dt,Rr,Ae,Pr,oe,I=f(()=>{"use strict";o();hr();Dr();lt();Nr();pt();ut=5e4,dt=1e9,Rr=1,Ae="logout",Pr="login",oe="0"});var ve,gt=f(()=>{"use strict";o();ve=()=>Date.now()/1e3});var Mr=f(()=>{"use strict";o()});var Fr=f(()=>{"use strict";o()});var _r=f(()=>{"use strict";o();gt();Mr();Fr()});var ft={};Z(ft,{getItem:()=>Qo,localStorageKeys:()=>ee,removeItem:()=>ei,setItem:()=>Jo});var ee,mt,Jo,Qo,ei,de=f(()=>{"use strict";o();_r();ee={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},mt=typeof localStorage!="undefined",Jo=({key:e,data:t,expires:r})=>{!mt||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Qo=e=>{if(!mt)return;let t=localStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:ve()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},ei=e=>{!mt||localStorage.removeItem(String(e))}});var Tt={};Z(Tt,{clear:()=>Vr,getItem:()=>Br,removeItem:()=>Ur,setItem:()=>Or,storage:()=>ti});var Or,Br,Ur,Vr,ti,$r=f(()=>{"use strict";o();Or=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Br=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},Ur=e=>sessionStorage.removeItem(String(e)),Vr=()=>sessionStorage.clear(),ti={setItem:Or,getItem:Br,removeItem:Ur,clear:Vr}});var ie,ke=f(()=>{"use strict";o();de();$r();ie={session:Tt,local:ft}});var yt,v,Ee,G=f(()=>{"use strict";o();yt=require("@reduxjs/toolkit");I();v=(0,yt.createAction)(Ae),Ee=(0,yt.createAction)(Pr,e=>({payload:e}))});var xt,Hr,Gr,Le,ht,Wr,qr,bs,jr,Is,As,vs,ks,Es,Ls,Ds,zr,St=f(()=>{"use strict";o();xt=require("@multiversx/sdk-core"),Hr=require("@reduxjs/toolkit"),Gr=require("redux-persist");I();ke();de();G();Le={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:oe},ht={address:"",websocketEvent:null,accounts:{"":Le},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Wr=(0,Hr.createSlice)({name:"accountInfoSlice",initialState:ht,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new xt.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:Le},e.shard=t.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,t)=>{let{address:r}=e;e.accounts[r].nonce=t.payload},setAccountShard:(e,t)=>{e.shard=t.payload},setLedgerAccount:(e,t)=>{e.ledgerAccount=t.payload},updateLedgerAccount:(e,t)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=t.payload.index,e.ledgerAccount.address=t.payload.address)},setWalletConnectAccount:(e,t)=>{e.walletConnectAccount=t.payload},setIsAccountLoading:(e,t)=>{e.isAccountLoading=t.payload,e.accountLoadingError=null},setAccountLoadingError:(e,t)=>{e.accountLoadingError=t.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,t)=>{e.websocketEvent={timestamp:Date.now(),message:t.payload}}},extraReducers:e=>{e.addCase(v,()=>(ie.local.removeItem(ee.loginExpiresAt),ht)),e.addCase(Ee,(t,r)=>{let{address:n}=r.payload;t.address=n,t.publicKey=new xt.Address(n).hex()}),e.addCase(Gr.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:g}=n;t.address=i,t.shard=l;let d=p&&i in p;t.accounts=d?p:ht.accounts,t.publicKey=g})}}),{setAccount:qr,setAddress:bs,setAccountNonce:jr,setAccountShard:Is,setLedgerAccount:As,updateLedgerAccount:vs,setWalletConnectAccount:ks,setIsAccountLoading:Es,setAccountLoadingError:Ls,setWebsocketEvent:Ds}=Wr.actions,zr=Wr.reducer});function ge(){return new Date().setHours(new Date().getHours()+24)}function me(e){ie.local.setItem({key:ee.loginExpiresAt,data:e,expires:e})}var wt=f(()=>{"use strict";o();ke();de()});var Yr,Kr,Zr,Us,Vs,$s,Hs,Gs,Ws,Xr,qs,Jr,bt=f(()=>{"use strict";o();Yr=require("@reduxjs/toolkit");wt();O();G();Kr={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,isLoginSessionInvalid:!1},Zr=(0,Yr.createSlice)({name:"loginInfoSlice",initialState:Kr,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,()=>Kr),e.addCase(Ee,(t,r)=>{t.loginMethod=r.payload.loginMethod,me(ge())})}}),{setLoginMethod:Us,setWalletConnectLogin:Vs,setLedgerLogin:$s,setTokenLogin:Hs,setTokenLoginSignature:Gs,setWalletLogin:Ws,invalidateLoginSession:Xr,setLogoutRoute:qs}=Zr.actions,Jr=Zr.reducer});var en,Qr,tn,Ys,Zs,Xs,Js,rn,It=f(()=>{"use strict";o();en=require("@reduxjs/toolkit");G();Qr={},tn=(0,en.createSlice)({name:"modalsSlice",initialState:Qr,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,()=>Qr)}}),{setTxSubmittedModal:Ys,setNotificationModal:Zs,clearTxSubmittedModal:Xs,clearNotificationModal:Js}=tn.actions,rn=tn.reducer});var nn=f(()=>{"use strict";o()});var on=f(()=>{"use strict";o();nn()});function At(e){return e[Math.floor(Math.random()*e.length)]}var an=f(()=>{"use strict";o()});var sn=f(()=>{"use strict";o();lt()});var cn=f(()=>{"use strict";o();on();an();sn()});var ln,pn,vt,ni,un,mc,fc,dn,kt=f(()=>{"use strict";o();ln=require("@reduxjs/toolkit"),pn=b(require("lodash.omit"));cn();vt={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},ni={network:vt,chainID:"-1"},un=(0,ln.createSlice)({name:"appConfig",initialState:ni,reducers:{initializeNetworkConfig:(e,t)=>{let r=At(t.payload.walletConnectBridgeAddresses),n=At(t.payload.walletConnectV2RelayAddresses),i=(0,pn.default)(t.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=w(x(x({},e.network),i),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:n})},setChainID:(e,t)=>{e.chainID=t.payload}}}),{initializeNetworkConfig:mc,setChainID:fc}=un.actions,dn=un.reducer});var gn,Et,mn,wc,bc,Ic,De,Ne=f(()=>{"use strict";o();gn=require("@reduxjs/toolkit");B();G();Et={isSigning:!1,signedSessions:{}},mn=(0,gn.createSlice)({name:"signedMessageInfoSliceState",initialState:Et,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:n,errorMessage:i}=t.payload;return w(x({},e),{errorMessage:i!=null?i:e.errorMessage,isSigning:n.status==="pending",signedSessions:w(x({},e.signedSessions),{[r]:n})})},setSignSessionState:(e,t)=>x(x({},e),t.payload),clearSignedMessageInfo:()=>Et},extraReducers:e=>{e.addCase(v,()=>Et)}}),{setSignSession:wc,clearSignedMessageInfo:bc,setSignSessionState:Ic}=mn.actions,De=mn.reducer});var Tn,yn,fn,hn,Cc,Rc,Pc,Mc,Fc,_c,Ce,Re=f(()=>{"use strict";o();Tn=require("@reduxjs/toolkit"),yn=require("redux-persist");pt();B();gt();G();fn={customToasts:[],transactionToasts:[],failTransactionToast:null},hn=(0,Tn.createSlice)({name:"toastsSlice",initialState:fn,reducers:{addCustomToast:(e,t)=>{e.customToasts.push(w(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:ve(),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=w(x({},t.payload),{toastId:Cr})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(v,()=>fn),e.addCase(yn.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:Cc,removeCustomToast:Rc,addTransactionToast:Pc,removeTransactionToast:Mc,addFailTransactionToast:Fc,removeFailTransactionToast:_c}=hn.actions,Ce=hn.reducer});var xn,Dt,Nt,Ct,oi,Lt,Sn,Vc,$c,Hc,Pe,Me=f(()=>{"use strict";o();xn=require("@reduxjs/toolkit");G();Dt="Transaction failed",Nt="Transaction successful",Ct="Processing transaction",oi="Transaction submitted",Lt={},Sn=(0,xn.createSlice)({name:"transactionsInfo",initialState:Lt,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:n}=t.payload;r!=null&&(e[r]={errorMessage:(n==null?void 0:n.errorMessage)||Dt,successMessage:(n==null?void 0:n.successMessage)||Nt,processingMessage:(n==null?void 0:n.processingMessage)||Ct,submittedMessage:(n==null?void 0:n.submittedMessage)||oi,transactionDuration:n==null?void 0:n.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>Lt},extraReducers:e=>{e.addCase(v,()=>Lt)}}),{clearTransactionsInfo:Vc,setTransactionsDisplayInfo:$c,clearTransactionsInfoForSessionId:Hc}=Sn.actions,Pe=Sn.reducer});function wn(e){return e!=null&&(gi(e)||yi(e))}function Fe(e){return e!=null&&(mi(e)||hi(e))}function _e(e){return e!=null&&(fi(e)||xi(e))}function bn(e){return e!=null&&Ti(e)}function gi(e){return e!=null&&ai.includes(e)}function mi(e){return e!=null&&si.includes(e)}function fi(e){return e!=null&&ci.includes(e)}function Ti(e){return e!=null&&li.includes(e)}function yi(e){return e!=null&&pi.includes(e)}function hi(e){return e!=null&&ui.includes(e)}function xi(e){return e!=null&&di.includes(e)}var ai,si,ci,li,pi,ui,di,Pt=f(()=>{"use strict";o();O();ai=["sent"],si=["success"],ci=["fail","cancelled","timedOut"],li=["timedOut"],pi=["pending"],ui=["success"],di=["fail","invalid"]});var In,An,fe,Si,vn,Xc,Jc,Qc,el,tl,rl,nl,ol,il,al,Oe,Be=f(()=>{"use strict";o();In=require("@reduxjs/toolkit"),An=require("redux-persist");O();Pt();G();fe={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},Si={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},vn=(0,In.createSlice)({name:"transactionsSlice",initialState:fe,reducers:{moveTransactionsToSignedState:(e,t)=>{var d,T;let{sessionId:r,transactions:n,errorMessage:i,status:l,redirectRoute:p}=t.payload,g=((d=e.customTransactionInformationForSessionId)==null?void 0:d[r])||Si;e.signedTransactions[r]={transactions:n,status:l,errorMessage:i,redirectRoute:p,customTransactionInformation:g},((T=e==null?void 0:e.transactionsToSign)==null?void 0:T.sessionId)===r&&(e.transactionsToSign=fe.transactionsToSign)},clearSignedTransaction:(e,t)=>{e.signedTransactions[t.payload]&&delete e.signedTransactions[t.payload]},clearTransactionToSign:e=>{e!=null&&e.transactionsToSign&&(e.transactionsToSign=null)},updateSignedTransaction:(e,t)=>{e.signedTransactions=x(x({},e.signedTransactions),t.payload)},updateSignedTransactions:(e,t)=>{let{sessionId:r,status:n,errorMessage:i,transactions:l}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].status=n,i!=null&&(e.signedTransactions[r].errorMessage=i),l!=null&&(e.signedTransactions[r].transactions=l))},updateSignedTransactionStatus:(e,t)=>{var g,d,T,h,y,k;let{sessionId:r,status:n,errorMessage:i,transactionHash:l}=t.payload,p=(d=(g=e.signedTransactions)==null?void 0:g[r])==null?void 0:d.transactions;if(p!=null){e.signedTransactions[r].transactions=p.map(U=>U.hash===l?w(x({},U),{status:n,errorMessage:i}):U);let E=(h=(T=e.signedTransactions[r])==null?void 0:T.transactions)==null?void 0:h.every(U=>Fe(U.status)),j=(k=(y=e.signedTransactions[r])==null?void 0:y.transactions)==null?void 0:k.every(U=>_e(U.status));E&&(e.signedTransactions[r].status="success"),j&&(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=fe.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=fe.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload}},extraReducers:e=>{e.addCase(v,()=>fe),e.addCase(An.REHYDRATE,(t,r)=>{var p;if(t.signTransactionsCancelMessage=null,!((p=r.payload)!=null&&p.transactions))return;let{signedTransactions:n,customTransactionInformationForSessionId:i}=r.payload.transactions,l=Object.entries(n).reduce((g,[d,T])=>{let h=new Date(d),y=new Date;return y.setHours(y.getHours()+5),y-h>0||(g[d]=T),g},{});i!=null&&(t.customTransactionInformationForSessionId=i),n!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:Xc,updateSignedTransactions:Jc,setTransactionsToSign:Qc,clearAllTransactionsToSign:el,clearAllSignedTransactions:tl,clearSignedTransaction:rl,clearTransactionToSign:nl,setSignTransactionsError:ol,setSignTransactionsCancelMessage:il,moveTransactionsToSignedState:al}=vn.actions,Oe=vn.reducer});var ae=f(()=>{"use strict";o();St();bt();It();kt();Ne();Re();Me();Be()});var Mt=f(()=>{"use strict";o()});var Nn,Dn,Cn,Nl,Cl,Rl,Pl,Ml,Fl,Rn,Pn=f(()=>{"use strict";o();Nn=require("@reduxjs/toolkit");G();Dn={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},Cn=(0,Nn.createSlice)({name:"dappModalsSlice",initialState:Dn,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,()=>Dn)}}),{setDappModalVisibility:Nl,setDappModalHeaderVisibility:Cl,setDappModalFooterVisibility:Rl,setDappModalHeaderText:Pl,setDappModalFooterText:Ml,setDappModalConfig:Fl}=Cn.actions,Rn=Cn.reducer});var Mn,Ai,vi,se,Ge=f(()=>{"use strict";o();Mn=require("@reduxjs/toolkit");Mt();St();Pn();bt();It();kt();Ne();Re();Me();Be();Ai={["account"]:zr,["dappModal"]:Rn,["loginInfo"]:Jr,["modals"]:rn,["networkConfig"]:dn,["signedMessageInfo"]:De,["toasts"]:Ce,["transactionsInfo"]:Pe,["transactions"]:Oe},vi=(e={})=>(0,Mn.combineReducers)(x(x({},Ai),e)),se=vi});var On={};Z(On,{default:()=>Pi});function We(e,t=[]){return{key:e,version:1,storage:_n.default,blacklist:t}}var z,Fn,_n,ki,Ei,Li,Di,Ni,Ci,Ri,Pi,Bn=f(()=>{"use strict";o();z=require("redux-persist"),Fn=b(require("redux-persist/lib/storage")),_n=b(require("redux-persist/lib/storage/session"));Ge();ae();Ne();Re();Me();Be();Mt();ki={2:e=>w(x({},e),{networkConfig:vt})};Ei=We("sdk-dapp-transactionsInfo"),Li=We("sdk-dapp-transactions",["transactionsToSign"]),Di=We("sdk-dapp-toasts"),Ni=We("sdk-dapp-signedMessageInfo"),Ci={key:"sdk-dapp-store",version:2,storage:Fn.default,whitelist:["account","loginInfo","modals","networkConfig"],migrate:(0,z.createMigrate)(ki,{debug:!1})},Ri={["toasts"]:(0,z.persistReducer)(Di,Ce),["transactions"]:(0,z.persistReducer)(Li,Oe),["transactionsInfo"]:(0,z.persistReducer)(Ei,Pe),["signedMessageInfo"]:(0,z.persistReducer)(Ni,De)},Pi=(0,z.persistReducer)(Ci,se(Ri))});var Un={};Z(Un,{default:()=>Mi});var Mi,Vn=f(()=>{"use strict";o();Ge();Mi=se()});var $n={};Z($n,{default:()=>_i});var R,Fi,_i,Hn=f(()=>{"use strict";o();R=require("redux-persist"),Fi=[R.FLUSH,R.REHYDRATE,R.PAUSE,R.PERSIST,R.PURGE,R.REGISTER],_i=Fi});var qn={};Z(qn,{default:()=>Wn});function Wn(e){return(0,Gn.persistStore)(e)}var Gn,jn=f(()=>{"use strict";o();Gn=require("redux-persist")});var xa={};Z(xa,{useGetNetworkConfig:()=>ha});module.exports=ue(xa);o();o();var Jn=require("react"),le=require("react-redux");o();var Ft=require("@reduxjs/toolkit"),Zn=require("react-redux/lib/utils/Subscription");ae();o();var En=b(require("lodash.throttle"));I();o();var kn=b(require("lodash.isequal")),Ue=require("reselect");B();var m=(0,Ue.createSelectorCreator)(Ue.defaultMemoize,kn.default),Ve=(e,t)=>e!=""&&Boolean(t);ae();wt();ke();de();var wi=[Ae],$e=!1,bi=(0,En.default)(()=>{me(ge())},5e3),Ln=e=>t=>r=>{var d;if(wi.includes(r.type))return t(r);let n=e.getState(),i=ie.local.getItem(ee.loginExpiresAt);if(!Ve((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 me(ge());let p=Date.now();return i-p<0&&!$e?setTimeout(()=>{$e=!0,e.dispatch(Xr())},1e3):($e&&($e=!1),bi()),t(r)};o();o();function He(){return typeof sessionStorage!="undefined"}var zn=He()?(Bn(),ue(On)).default:(Vn(),ue(Un)).default,Kn=He()?(Hn(),ue($n)).default:[],Yn=He()?(jn(),ue(qn)).default:e=>e;Ge();var ce=(0,Ft.configureStore)({reducer:zn,middleware:e=>e({serializableCheck:{ignoredActions:[...Kn,jr.type,qr.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(Ln)}),Xn=(0,Zn.createSubscription)(ce),cp=Yn(ce),lp=(0,Ft.configureStore)({reducer:se});var Oi={store:ce,subscription:Xn},_t=(0,Jn.createContext)(Oi),gp=(0,le.createStoreHook)(_t),mp=(0,le.createDispatchHook)(_t),Qn=(0,le.createSelectorHook)(_t);o();o();ae();var W=e=>e.account,Ot=m(W,e=>e.address),Bt=m(W,Ot,(e,t)=>t in e.accounts?e.accounts[t]:Le),hp=m(W,Bt,(e,t)=>{let i=e,{accounts:r}=i,n=Kt(i,["accounts"]);return w(x({},n),{account:t})}),xp=m(Bt,e=>e.balance),Sp=m(Bt,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),wp=m(W,e=>e.shard),bp=m(W,e=>e.ledgerAccount),Ip=m(W,e=>e.walletConnectAccount),Ap=m(W,e=>e.isAccountLoading),vp=m(W,e=>e.accountLoadingError),kp=m(W,e=>e.websocketEvent);o();var K=e=>e.loginInfo,Np=m(K,e=>e.loginMethod),Cp=m(K,Ot,(e,t)=>Ve(e.loginMethod,t)),Rp=m(K,e=>e.walletConnectLogin),Pp=m(K,e=>e.ledgerLogin),Mp=m(K,e=>e.walletLogin),Fp=m(K,e=>e.isLoginSessionInvalid),_p=m(K,e=>e.tokenLogin),Op=m(K,e=>e.logoutRoute);o();var eo=e=>e.modals,Vp=m(eo,e=>e.txSubmittedModal),$p=m(eo,e=>e.notificationModal);o();var q=e=>e.networkConfig,Wp=m(q,e=>e.chainID),qp=m(q,e=>e.network.walletConnectBridgeAddress),jp=m(q,e=>e.network.walletConnectV2RelayAddress),zp=m(q,e=>e.network.walletConnectV2ProjectId),Kp=m(q,e=>e.network.walletConnectV2Options),Yp=m(q,e=>e.network.walletConnectDeepLink),Ut=m(q,e=>e.network),Zp=m(Ut,e=>e.apiAddress),to=m(Ut,e=>e.explorerAddress),Xp=m(Ut,e=>e.egldLabel);o();var Vt=e=>e.signedMessageInfo,eu=m(Vt,e=>e.isSigning),tu=m(Vt,e=>e.errorMessage),ru=m(Vt,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]});o();var $t=e=>e.toasts,iu=m($t,e=>e.customToasts),au=m($t,e=>e.transactionToasts),su=m($t,e=>e.failTransactionToast);o();ae();var ro={errorMessage:Dt,successMessage:Nt,processingMessage:Ct},Bi=e=>e.transactionsInfo,uu=m(Bi,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||ro);o();o();var N=require("@multiversx/sdk-core");I();o();function Ht(e){try{return a.Buffer.from(e,"base64").toString()===atob(e)}catch(t){return!1}}function Gt(e){var i,l,p;let{data:t}=e,r=Ht(t!=null?t:"")?N.TransactionPayload.fromEncoded(t):new N.TransactionPayload(t),n=new N.Transaction(x({value:e.value.valueOf(),data:r,nonce:e.nonce.valueOf(),receiver:new N.Address(e.receiver),sender:new N.Address(e.sender),gasLimit:(i=e.gasLimit.valueOf())!=null?i:ut,gasPrice:(l=e.gasPrice.valueOf())!=null?l:dt,chainID:e.chainID.valueOf(),version:new N.TransactionVersion((p=e.version)!=null?p:Rr)},e.options?{options:new N.TransactionOptions(e.options)}:{}));return n.applySignature({hex:()=>e.signature||""},new N.Address(e.sender)),n}o();Pt();o();var Vi=b(require("bignumber.js"));B();o();o();o();o();var Hi=require("@multiversx/sdk-core"),Gi=b(require("bignumber.js"));O();o();var $i=require("@multiversx/sdk-core");o();o();o();var qi=require("@multiversx/sdk-core/out");o();I();o();var ao=require("@multiversx/sdk-core");B();o();o();o();o();O();o();o();o();o();o();o();o();o();o();o();o();L();o();o();L();o();o();o();var Xi=b(require("bignumber.js"));I();o();var Zi=require("@multiversx/sdk-core"),Wt=b(require("bignumber.js"));I();o();var Ki=b(require("bignumber.js"));o();Wt.default.config({ROUNDING_MODE:Wt.default.ROUND_FLOOR});o();o();o();I();o();o();o();o();I();o();I();o();var Ji=require("@multiversx/sdk-core");I();o();var Te=require("@multiversx/sdk-core"),ea=require("@multiversx/sdk-network-providers");I();o();o();var Qi=b(require("bignumber.js"));I();o();I();o();o();o();o();o();I();o();L();var ra=["reDelegateRewards","claimRewards","unBond"],na=["wrapEgld","unwrapEgld"],oa=["unStake"],ia=["unDelegate"];o();o();o();I();o();var ca=b(require("bignumber.js"));o();o();o();L();o();var la=b(require("bignumber.js"));o();o();o();o();L();o();o();o();var ua=b(require("linkifyjs"));o();I();o();var da=b(require("bignumber.js"));o();B();o();o();O();o();O();o();o();o();L();o();L();o();var ga=b(require("bignumber.js"));I();L();o();L();o();var uo=require("react");B();o();o();L();o();var ma=require("@multiversx/sdk-core/out"),fa=b(require("bignumber.js"));L();o();L();o();o();O();var HT=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];o();var go=require("react");B();o();var ya=require("react");L();var YT=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];var Ke=e=>e.transactions,ye=m(Ke,e=>e.signedTransactions),Py=m(Ke,e=>e.signTransactionsError),My=m(Ke,e=>e.signTransactionsCancelMessage),Ye=e=>t=>Object.entries(t).reduce((r,[n,i])=>(e(i.status)&&(r[n]=i),r),{}),Fy=m(ye,Ye(wn)),_y=m(ye,Ye(Fe)),Oy=m(ye,Ye(_e)),By=m(ye,Ye(bn)),Uy=m(Ke,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:w(x({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>Gt(r)))||[]})}),Vy=m(ye,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});var ha=()=>Qn(q);0&&(module.exports={useGetNetworkConfig});
1
+ "use strict";var go=Object.create;var pe=Object.defineProperty,fo=Object.defineProperties,To=Object.getOwnPropertyDescriptor,yo=Object.getOwnPropertyDescriptors,ho=Object.getOwnPropertyNames,he=Object.getOwnPropertySymbols,xo=Object.getPrototypeOf,Ze=Object.prototype.hasOwnProperty,zt=Object.prototype.propertyIsEnumerable;var jt=(e,t,r)=>t in e?pe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t)=>{for(var r in t||(t={}))Ze.call(t,r)&&jt(e,r,t[r]);if(he)for(var r of he(t))zt.call(t,r)&&jt(e,r,t[r]);return e},w=(e,t)=>fo(e,yo(t));var Kt=(e,t)=>{var r={};for(var n in e)Ze.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&he)for(var n of he(e))t.indexOf(n)<0&&zt.call(e,n)&&(r[n]=e[n]);return r};var f=(e,t)=>()=>(e&&(t=e(e=0)),t);var xe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Z=(e,t)=>{for(var r in t)pe(e,r,{get:t[r],enumerable:!0})},Yt=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ho(t))!Ze.call(e,i)&&i!==r&&pe(e,i,{get:()=>t[i],enumerable:!(n=To(t,i))||n.enumerable});return e};var b=(e,t,r)=>(r=e!=null?go(xo(e)):{},Yt(t||!e||!e.__esModule?pe(r,"default",{value:e,enumerable:!0}):r,e)),ue=e=>Yt(pe({},"__esModule",{value:!0}),e);var Jt=xe(Se=>{"use strict";o();Se.byteLength=wo;Se.toByteArray=Io;Se.fromByteArray=ko;var P=[],C=[],So=typeof Uint8Array!="undefined"?Uint8Array:Array,Xe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(X=0,Zt=Xe.length;X<Zt;++X)P[X]=Xe[X],C[Xe.charCodeAt(X)]=X;var X,Zt;C["-".charCodeAt(0)]=62;C["_".charCodeAt(0)]=63;function Xt(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 wo(e){var t=Xt(e),r=t[0],n=t[1];return(r+n)*3/4-n}function bo(e,t,r){return(t+r)*3/4-r}function Io(e){var t,r=Xt(e),n=r[0],i=r[1],l=new So(bo(e,n,i)),p=0,m=i>0?n-4:n,d;for(d=0;d<m;d+=4)t=C[e.charCodeAt(d)]<<18|C[e.charCodeAt(d+1)]<<12|C[e.charCodeAt(d+2)]<<6|C[e.charCodeAt(d+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return i===2&&(t=C[e.charCodeAt(d)]<<2|C[e.charCodeAt(d+1)]>>4,l[p++]=t&255),i===1&&(t=C[e.charCodeAt(d)]<<10|C[e.charCodeAt(d+1)]<<4|C[e.charCodeAt(d+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function Ao(e){return P[e>>18&63]+P[e>>12&63]+P[e>>6&63]+P[e&63]}function vo(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(Ao(n));return i.join("")}function ko(e){for(var t,r=e.length,n=r%3,i=[],l=16383,p=0,m=r-n;p<m;p+=l)i.push(vo(e,p,p+l>m?m:p+l));return n===1?(t=e[r-1],i.push(P[t>>2]+P[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(P[t>>10]+P[t>>4&63]+P[t<<2&63]+"=")),i.join("")}});var Qt=xe(Je=>{o();Je.read=function(e,t,r,n,i){var l,p,m=i*8-n-1,d=(1<<m)-1,T=d>>1,h=-7,y=r?i-1:0,k=r?-1:1,E=e[t+y];for(y+=k,l=E&(1<<-h)-1,E>>=-h,h+=m;h>0;l=l*256+e[t+y],y+=k,h-=8);for(p=l&(1<<-h)-1,l>>=-h,h+=n;h>0;p=p*256+e[t+y],y+=k,h-=8);if(l===0)l=1-T;else{if(l===d)return p?NaN:(E?-1:1)*(1/0);p=p+Math.pow(2,n),l=l-T}return(E?-1:1)*p*Math.pow(2,l-n)};Je.write=function(e,t,r,n,i,l){var p,m,d,T=l*8-i-1,h=(1<<T)-1,y=h>>1,k=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=n?0:l-1,j=n?1:-1,U=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+=k/d:t+=k*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+E]=m&255,E+=j,m/=256,i-=8);for(p=p<<i|m,T+=i;T>0;e[r+E]=p&255,E+=j,p/=256,T-=8);e[r+E-j]|=U*128}});var dr=xe(re=>{"use strict";o();var Qe=Jt(),te=Qt(),er=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;re.Buffer=u;re.SlowBuffer=Ro;re.INSPECT_MAX_BYTES=50;var we=2147483647;re.kMaxLength=we;u.TYPED_ARRAY_SUPPORT=Eo();!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 Eo(){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 V(e){if(e>we)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 nt(e)}return nr(e,t,r)}u.poolSize=8192;function nr(e,t,r){if(typeof e=="string")return Do(e,t);if(ArrayBuffer.isView(e))return No(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(M(e,ArrayBuffer)||e&&M(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(M(e,SharedArrayBuffer)||e&&M(e.buffer,SharedArrayBuffer)))return tt(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=Co(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 nr(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function or(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Lo(e,t,r){return or(e),e<=0?V(e):t!==void 0?typeof r=="string"?V(e).fill(t,r):V(e).fill(t):V(e)}u.alloc=function(e,t,r){return Lo(e,t,r)};function nt(e){return or(e),V(e<0?0:ot(e)|0)}u.allocUnsafe=function(e){return nt(e)};u.allocUnsafeSlow=function(e){return nt(e)};function Do(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=ir(e,t)|0,n=V(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function et(e){for(var t=e.length<0?0:ot(e.length)|0,r=V(t),n=0;n<t;n+=1)r[n]=e[n]&255;return r}function No(e){if(M(e,Uint8Array)){var t=new Uint8Array(e);return tt(t.buffer,t.byteOffset,t.byteLength)}return et(e)}function tt(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 Co(e){if(u.isBuffer(e)){var t=ot(e.length)|0,r=V(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||it(e.length)?V(0):et(e);if(e.type==="Buffer"&&Array.isArray(e.data))return et(e.data)}function ot(e){if(e>=we)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+we.toString(16)+" bytes");return e|0}function Ro(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(M(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),M(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(M(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 ir(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||M(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 rt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return ur(e).length;default:if(i)return n?-1:rt(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=ir;function Po(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 Go(this,t,r);case"utf8":case"utf-8":return sr(this,t,r);case"ascii":return $o(this,t,r);case"latin1":case"binary":return Ho(this,t,r);case"base64":return Uo(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Wo(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}u.prototype._isBuffer=!0;function J(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)J(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)J(this,r,r+3),J(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)J(this,r,r+7),J(this,r+1,r+6),J(this,r+2,r+5),J(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?sr(this,0,t):Po.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=re.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};er&&(u.prototype[er]=u.prototype.inspect);u.prototype.compare=function(t,r,n,i,l){if(M(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),h=t.slice(r,n),y=0;y<d;++y)if(T[y]!==h[y]){p=T[y],m=h[y];break}return p<m?-1:m<p?1:0};function ar(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,it(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:tr(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):tr(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function tr(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(E,j){return l===1?E[j]:E.readUInt16BE(j*l)}var T;if(i){var h=-1;for(T=r;T<p;T++)if(d(e,T)===d(t,h===-1?0:T-h)){if(h===-1&&(h=T),T-h+1===m)return h*l}else h!==-1&&(T-=T-h),h=-1}else for(r+m>p&&(r=p-m),T=r;T>=0;T--){for(var y=!0,k=0;k<m;k++)if(d(e,T+k)!==d(t,k)){y=!1;break}if(y)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 ar(this,t,r,n,!0)};u.prototype.lastIndexOf=function(t,r,n){return ar(this,t,r,n,!1)};function Mo(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(it(m))return p;e[r+p]=m}return p}function Fo(e,t,r,n){return be(rt(t,e.length-r),e,r,n)}function _o(e,t,r,n){return be(zo(t),e,r,n)}function Oo(e,t,r,n){return be(ur(t),e,r,n)}function Bo(e,t,r,n){return be(Ko(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 Mo(this,t,r,n);case"utf8":case"utf-8":return Fo(this,t,r,n);case"ascii":case"latin1":case"binary":return _o(this,t,r,n);case"base64":return Oo(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Bo(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 Uo(e,t,r){return t===0&&r===e.length?Qe.fromByteArray(e):Qe.fromByteArray(e.slice(t,r))}function sr(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,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],T=e[i+2],(d&192)===128&&(T&192)===128&&(y=(l&15)<<12|(d&63)<<6|T&63,y>2047&&(y<55296||y>57343)&&(p=y));break;case 4:d=e[i+1],T=e[i+2],h=e[i+3],(d&192)===128&&(T&192)===128&&(h&192)===128&&(y=(l&15)<<18|(d&63)<<12|(T&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 Vo(n)}var rr=4096;function Vo(e){var t=e.length;if(t<=rr)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=rr));return r}function $o(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 Ho(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 Go(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+=Yo[e[l]];return i}function Wo(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 A(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||A(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||A(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||A(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||A(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||A(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||A(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||A(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||A(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||A(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||A(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||A(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||A(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||A(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||A(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||A(t,4,this.length),te.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||A(t,4,this.length),te.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||A(t,8,this.length),te.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||A(t,8,this.length),te.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 cr(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 lr(e,t,r,n,i){return t=+t,r=r>>>0,i||cr(e,t,r,4,34028234663852886e22,-34028234663852886e22),te.write(e,t,r,n,23,4),r+4}u.prototype.writeFloatLE=function(t,r,n){return lr(this,t,r,!0,n)};u.prototype.writeFloatBE=function(t,r,n){return lr(this,t,r,!1,n)};function pr(e,t,r,n,i){return t=+t,r=r>>>0,i||cr(e,t,r,8,17976931348623157e292,-17976931348623157e292),te.write(e,t,r,n,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,n){return pr(this,t,r,!0,n)};u.prototype.writeDoubleBE=function(t,r,n){return pr(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 qo=/[^+/0-9A-Za-z-_]/g;function jo(e){if(e=e.split("=")[0],e=e.trim().replace(qo,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function rt(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 zo(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function Ko(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 ur(e){return Qe.toByteArray(jo(e))}function be(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 M(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function it(e){return e!==e}var Yo=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var n=r*16,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()});var yr=xe((Aa,Tr)=>{o();var S=Tr.exports={},F,_;function at(){throw new Error("setTimeout has not been defined")}function st(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?F=setTimeout:F=at}catch(e){F=at}try{typeof clearTimeout=="function"?_=clearTimeout:_=st}catch(e){_=st}})();function mr(e){if(F===setTimeout)return setTimeout(e,0);if((F===at||!F)&&setTimeout)return F=setTimeout,setTimeout(e,0);try{return F(e,0)}catch(t){try{return F.call(null,e,0)}catch(r){return F.call(this,e,0)}}}function Zo(e){if(_===clearTimeout)return clearTimeout(e);if((_===st||!_)&&clearTimeout)return _=clearTimeout,clearTimeout(e);try{return _(e)}catch(t){try{return _.call(null,e)}catch(r){return _.call(this,e)}}}var $=[],ne=!1,Q,Ie=-1;function Xo(){!ne||!Q||(ne=!1,Q.length?$=Q.concat($):Ie=-1,$.length&&gr())}function gr(){if(!ne){var e=mr(Xo);ne=!0;for(var t=$.length;t;){for(Q=$,$=[];++Ie<t;)Q&&Q[Ie].run();Ie=-1,t=$.length}Q=null,ne=!1,Zo(e)}}S.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];$.push(new fr(e,t)),$.length===1&&!ne&&mr(gr)};function fr(e,t){this.fun=e,this.array=t}fr.prototype.run=function(){this.fun.apply(null,this.array)};S.title="browser";S.browser=!0;S.env={};S.argv=[];S.version="";S.versions={};function H(){}S.on=H;S.addListener=H;S.once=H;S.off=H;S.removeListener=H;S.removeAllListeners=H;S.emit=H;S.prependListener=H;S.prependOnceListener=H;S.listeners=function(e){return[]};S.binding=function(e){throw new Error("process.binding is not supported")};S.cwd=function(){return"/"};S.chdir=function(e){throw new Error("process.chdir is not supported")};S.umask=function(){return 0}});var a,s,va,o=f(()=>{a=b(dr()),s=b(yr()),va=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 hr=f(()=>{"use strict";o()});var xr=f(()=>{"use strict";o()});var Sr=f(()=>{"use strict";o()});var wr=f(()=>{"use strict";o()});var O=f(()=>{"use strict";o()});var br=f(()=>{"use strict";o()});var Ir=f(()=>{"use strict";o()});var L=f(()=>{"use strict";o()});var Ar=f(()=>{"use strict";o()});var vr=f(()=>{"use strict";o()});var B=f(()=>{"use strict";o();xr();Sr();wr();O();br();Ir();L();Ar();vr()});var ct,kr,Wa,Er,qa,Lr,ja,za,Ka,Dr=f(()=>{"use strict";o();B();ct={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:"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://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:kr,egldLabel:Wa}=ct["devnet"],{chainId:Er,egldLabel:qa}=ct["testnet"],{chainId:Lr,egldLabel:ja}=ct["mainnet"],za={["devnet"]:kr,["testnet"]:Er,["mainnet"]:Lr},Ka={[kr]:"devnet",[Er]:"testnet",[Lr]:"mainnet"}});var lt=f(()=>{"use strict";o()});var Nr=f(()=>{"use strict";o()});var Cr,pt=f(()=>{"use strict";o();Cr="transaction-status-toast-id"});var ut,dt,Rr,Ae,Pr,oe,I=f(()=>{"use strict";o();hr();Dr();lt();Nr();pt();ut=5e4,dt=1e9,Rr=1,Ae="logout",Pr="login",oe="0"});var ve,mt=f(()=>{"use strict";o();ve=()=>Date.now()/1e3});var Mr=f(()=>{"use strict";o()});var Fr=f(()=>{"use strict";o()});var _r=f(()=>{"use strict";o();mt();Mr();Fr()});var ft={};Z(ft,{getItem:()=>Qo,localStorageKeys:()=>ee,removeItem:()=>ei,setItem:()=>Jo});var ee,gt,Jo,Qo,ei,de=f(()=>{"use strict";o();_r();ee={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},gt=typeof localStorage!="undefined",Jo=({key:e,data:t,expires:r})=>{!gt||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Qo=e=>{if(!gt)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:ve()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},ei=e=>{!gt||localStorage.removeItem(String(e))}});var Tt={};Z(Tt,{clear:()=>Vr,getItem:()=>Br,removeItem:()=>Ur,setItem:()=>Or,storage:()=>ti});var Or,Br,Ur,Vr,ti,$r=f(()=>{"use strict";o();Or=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Br=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},Ur=e=>sessionStorage.removeItem(String(e)),Vr=()=>sessionStorage.clear(),ti={setItem:Or,getItem:Br,removeItem:Ur,clear:Vr}});var ie,ke=f(()=>{"use strict";o();de();$r();ie={session:Tt,local:ft}});var yt,v,Ee,G=f(()=>{"use strict";o();yt=require("@reduxjs/toolkit");I();v=(0,yt.createAction)(Ae),Ee=(0,yt.createAction)(Pr,e=>({payload:e}))});var xt,Hr,Gr,Le,ht,Wr,qr,bs,jr,Is,As,vs,ks,Es,Ls,Ds,zr,St=f(()=>{"use strict";o();xt=require("@multiversx/sdk-core"),Hr=require("@reduxjs/toolkit"),Gr=require("redux-persist");I();ke();de();G();Le={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:oe},ht={address:"",websocketEvent:null,accounts:{"":Le},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Wr=(0,Hr.createSlice)({name:"accountInfoSlice",initialState:ht,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new xt.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:Le},e.shard=t.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,t)=>{let{address:r}=e;e.accounts[r].nonce=t.payload},setAccountShard:(e,t)=>{e.shard=t.payload},setLedgerAccount:(e,t)=>{e.ledgerAccount=t.payload},updateLedgerAccount:(e,t)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=t.payload.index,e.ledgerAccount.address=t.payload.address)},setWalletConnectAccount:(e,t)=>{e.walletConnectAccount=t.payload},setIsAccountLoading:(e,t)=>{e.isAccountLoading=t.payload,e.accountLoadingError=null},setAccountLoadingError:(e,t)=>{e.accountLoadingError=t.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,t)=>{e.websocketEvent={timestamp:Date.now(),message:t.payload}}},extraReducers:e=>{e.addCase(v,()=>(ie.local.removeItem(ee.loginExpiresAt),ht)),e.addCase(Ee,(t,r)=>{let{address:n}=r.payload;t.address=n,t.publicKey=new xt.Address(n).hex()}),e.addCase(Gr.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:ht.accounts,t.publicKey=m})}}),{setAccount:qr,setAddress:bs,setAccountNonce:jr,setAccountShard:Is,setLedgerAccount:As,updateLedgerAccount:vs,setWalletConnectAccount:ks,setIsAccountLoading:Es,setAccountLoadingError:Ls,setWebsocketEvent:Ds}=Wr.actions,zr=Wr.reducer});function me(){return new Date().setHours(new Date().getHours()+24)}function ge(e){ie.local.setItem({key:ee.loginExpiresAt,data:e,expires:e})}var wt=f(()=>{"use strict";o();ke();de()});var Yr,Kr,Zr,Us,Vs,$s,Hs,Gs,Ws,Xr,qs,Jr,bt=f(()=>{"use strict";o();Yr=require("@reduxjs/toolkit");wt();O();G();Kr={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,isLoginSessionInvalid:!1},Zr=(0,Yr.createSlice)({name:"loginInfoSlice",initialState:Kr,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,()=>Kr),e.addCase(Ee,(t,r)=>{t.loginMethod=r.payload.loginMethod,ge(me())})}}),{setLoginMethod:Us,setWalletConnectLogin:Vs,setLedgerLogin:$s,setTokenLogin:Hs,setTokenLoginSignature:Gs,setWalletLogin:Ws,invalidateLoginSession:Xr,setLogoutRoute:qs}=Zr.actions,Jr=Zr.reducer});var en,Qr,tn,Ys,Zs,Xs,Js,rn,It=f(()=>{"use strict";o();en=require("@reduxjs/toolkit");G();Qr={},tn=(0,en.createSlice)({name:"modalsSlice",initialState:Qr,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,()=>Qr)}}),{setTxSubmittedModal:Ys,setNotificationModal:Zs,clearTxSubmittedModal:Xs,clearNotificationModal:Js}=tn.actions,rn=tn.reducer});var nn=f(()=>{"use strict";o()});var on=f(()=>{"use strict";o();nn()});function At(e){return e[Math.floor(Math.random()*e.length)]}var an=f(()=>{"use strict";o()});var sn=f(()=>{"use strict";o();lt()});var cn=f(()=>{"use strict";o();on();an();sn()});var ln,pn,vt,ni,un,gc,fc,dn,kt=f(()=>{"use strict";o();ln=require("@reduxjs/toolkit"),pn=b(require("lodash.omit"));cn();vt={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},ni={network:vt,chainID:"-1"},un=(0,ln.createSlice)({name:"appConfig",initialState:ni,reducers:{initializeNetworkConfig:(e,t)=>{let r=At(t.payload.walletConnectBridgeAddresses),n=At(t.payload.walletConnectV2RelayAddresses),i=(0,pn.default)(t.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=w(x(x({},e.network),i),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:n})},setChainID:(e,t)=>{e.chainID=t.payload}}}),{initializeNetworkConfig:gc,setChainID:fc}=un.actions,dn=un.reducer});var mn,Et,gn,wc,bc,Ic,De,Ne=f(()=>{"use strict";o();mn=require("@reduxjs/toolkit");B();G();Et={isSigning:!1,signedSessions:{}},gn=(0,mn.createSlice)({name:"signedMessageInfoSliceState",initialState:Et,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:n,errorMessage:i}=t.payload;return w(x({},e),{errorMessage:i!=null?i:e.errorMessage,isSigning:n.status==="pending",signedSessions:w(x({},e.signedSessions),{[r]:n})})},setSignSessionState:(e,t)=>x(x({},e),t.payload),clearSignedMessageInfo:()=>Et},extraReducers:e=>{e.addCase(v,()=>Et)}}),{setSignSession:wc,clearSignedMessageInfo:bc,setSignSessionState:Ic}=gn.actions,De=gn.reducer});var Tn,yn,fn,hn,Cc,Rc,Pc,Mc,Fc,_c,Ce,Re=f(()=>{"use strict";o();Tn=require("@reduxjs/toolkit"),yn=require("redux-persist");pt();B();mt();G();fn={customToasts:[],transactionToasts:[],failTransactionToast:null},hn=(0,Tn.createSlice)({name:"toastsSlice",initialState:fn,reducers:{addCustomToast:(e,t)=>{e.customToasts.push(w(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:ve(),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=w(x({},t.payload),{toastId:Cr})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(v,()=>fn),e.addCase(yn.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:Cc,removeCustomToast:Rc,addTransactionToast:Pc,removeTransactionToast:Mc,addFailTransactionToast:Fc,removeFailTransactionToast:_c}=hn.actions,Ce=hn.reducer});var xn,Dt,Nt,Ct,oi,Lt,Sn,Vc,$c,Hc,Pe,Me=f(()=>{"use strict";o();xn=require("@reduxjs/toolkit");G();Dt="Transaction failed",Nt="Transaction successful",Ct="Processing transaction",oi="Transaction submitted",Lt={},Sn=(0,xn.createSlice)({name:"transactionsInfo",initialState:Lt,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:n}=t.payload;r!=null&&(e[r]={errorMessage:(n==null?void 0:n.errorMessage)||Dt,successMessage:(n==null?void 0:n.successMessage)||Nt,processingMessage:(n==null?void 0:n.processingMessage)||Ct,submittedMessage:(n==null?void 0:n.submittedMessage)||oi,transactionDuration:n==null?void 0:n.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>Lt},extraReducers:e=>{e.addCase(v,()=>Lt)}}),{clearTransactionsInfo:Vc,setTransactionsDisplayInfo:$c,clearTransactionsInfoForSessionId:Hc}=Sn.actions,Pe=Sn.reducer});function wn(e){return e!=null&&(mi(e)||yi(e))}function Fe(e){return e!=null&&(gi(e)||hi(e))}function _e(e){return e!=null&&(fi(e)||xi(e))}function bn(e){return e!=null&&Ti(e)}function mi(e){return e!=null&&ai.includes(e)}function gi(e){return e!=null&&si.includes(e)}function fi(e){return e!=null&&ci.includes(e)}function Ti(e){return e!=null&&li.includes(e)}function yi(e){return e!=null&&pi.includes(e)}function hi(e){return e!=null&&ui.includes(e)}function xi(e){return e!=null&&di.includes(e)}var ai,si,ci,li,pi,ui,di,Pt=f(()=>{"use strict";o();O();ai=["sent"],si=["success"],ci=["fail","cancelled","timedOut"],li=["timedOut"],pi=["pending"],ui=["success"],di=["fail","invalid"]});var In,An,fe,Si,vn,Xc,Jc,Qc,el,tl,rl,nl,ol,il,al,Oe,Be=f(()=>{"use strict";o();In=require("@reduxjs/toolkit"),An=require("redux-persist");O();Pt();G();fe={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},Si={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},vn=(0,In.createSlice)({name:"transactionsSlice",initialState:fe,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])||Si;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=fe.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,h,y,k;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(U=>U.hash===l?w(x({},U),{status:n,errorMessage:i}):U);let E=(h=(T=e.signedTransactions[r])==null?void 0:T.transactions)==null?void 0:h.every(U=>Fe(U.status)),j=(k=(y=e.signedTransactions[r])==null?void 0:y.transactions)==null?void 0:k.every(U=>_e(U.status));E&&(e.signedTransactions[r].status="success"),j&&(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=fe.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=fe.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload}},extraReducers:e=>{e.addCase(v,()=>fe),e.addCase(An.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 h=new Date(d),y=new Date;return y.setHours(y.getHours()+5),y-h>0||(m[d]=T),m},{});i!=null&&(t.customTransactionInformationForSessionId=i),n!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:Xc,updateSignedTransactions:Jc,setTransactionsToSign:Qc,clearAllTransactionsToSign:el,clearAllSignedTransactions:tl,clearSignedTransaction:rl,clearTransactionToSign:nl,setSignTransactionsError:ol,setSignTransactionsCancelMessage:il,moveTransactionsToSignedState:al}=vn.actions,Oe=vn.reducer});var ae=f(()=>{"use strict";o();St();bt();It();kt();Ne();Re();Me();Be()});var Mt=f(()=>{"use strict";o()});var Nn,Dn,Cn,Nl,Cl,Rl,Pl,Ml,Fl,Rn,Pn=f(()=>{"use strict";o();Nn=require("@reduxjs/toolkit");G();Dn={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},Cn=(0,Nn.createSlice)({name:"dappModalsSlice",initialState:Dn,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,()=>Dn)}}),{setDappModalVisibility:Nl,setDappModalHeaderVisibility:Cl,setDappModalFooterVisibility:Rl,setDappModalHeaderText:Pl,setDappModalFooterText:Ml,setDappModalConfig:Fl}=Cn.actions,Rn=Cn.reducer});var Mn,Ai,vi,se,Ge=f(()=>{"use strict";o();Mn=require("@reduxjs/toolkit");Mt();St();Pn();bt();It();kt();Ne();Re();Me();Be();Ai={["account"]:zr,["dappModal"]:Rn,["loginInfo"]:Jr,["modals"]:rn,["networkConfig"]:dn,["signedMessageInfo"]:De,["toasts"]:Ce,["transactionsInfo"]:Pe,["transactions"]:Oe},vi=(e={})=>(0,Mn.combineReducers)(x(x({},Ai),e)),se=vi});var On={};Z(On,{default:()=>Pi});function We(e,t=[]){return{key:e,version:1,storage:_n.default,blacklist:t}}var z,Fn,_n,ki,Ei,Li,Di,Ni,Ci,Ri,Pi,Bn=f(()=>{"use strict";o();z=require("redux-persist"),Fn=b(require("redux-persist/lib/storage")),_n=b(require("redux-persist/lib/storage/session"));Ge();ae();Ne();Re();Me();Be();Mt();ki={2:e=>w(x({},e),{networkConfig:vt})};Ei=We("sdk-dapp-transactionsInfo"),Li=We("sdk-dapp-transactions",["transactionsToSign"]),Di=We("sdk-dapp-toasts"),Ni=We("sdk-dapp-signedMessageInfo"),Ci={key:"sdk-dapp-store",version:2,storage:Fn.default,whitelist:["account","loginInfo","modals","networkConfig"],migrate:(0,z.createMigrate)(ki,{debug:!1})},Ri={["toasts"]:(0,z.persistReducer)(Di,Ce),["transactions"]:(0,z.persistReducer)(Li,Oe),["transactionsInfo"]:(0,z.persistReducer)(Ei,Pe),["signedMessageInfo"]:(0,z.persistReducer)(Ni,De)},Pi=(0,z.persistReducer)(Ci,se(Ri))});var Un={};Z(Un,{default:()=>Mi});var Mi,Vn=f(()=>{"use strict";o();Ge();Mi=se()});var $n={};Z($n,{default:()=>_i});var R,Fi,_i,Hn=f(()=>{"use strict";o();R=require("redux-persist"),Fi=[R.FLUSH,R.REHYDRATE,R.PAUSE,R.PERSIST,R.PURGE,R.REGISTER],_i=Fi});var qn={};Z(qn,{default:()=>Wn});function Wn(e){return(0,Gn.persistStore)(e)}var Gn,jn=f(()=>{"use strict";o();Gn=require("redux-persist")});var xa={};Z(xa,{useGetNetworkConfig:()=>ha});module.exports=ue(xa);o();o();var Jn=require("react"),le=require("react-redux");o();var Ft=require("@reduxjs/toolkit"),Zn=require("react-redux/lib/utils/Subscription");ae();o();var En=b(require("lodash.throttle"));I();o();var kn=b(require("lodash.isequal")),Ue=require("reselect");B();var g=(0,Ue.createSelectorCreator)(Ue.defaultMemoize,kn.default),Ve=(e,t)=>e!=""&&Boolean(t);ae();wt();ke();de();var wi=[Ae],$e=!1,bi=(0,En.default)(()=>{ge(me())},5e3),Ln=e=>t=>r=>{var d;if(wi.includes(r.type))return t(r);let n=e.getState(),i=ie.local.getItem(ee.loginExpiresAt);if(!Ve((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 ge(me());let p=Date.now();return i-p<0&&!$e?setTimeout(()=>{$e=!0,e.dispatch(Xr())},1e3):($e&&($e=!1),bi()),t(r)};o();o();function He(){return typeof sessionStorage!="undefined"}var zn=He()?(Bn(),ue(On)).default:(Vn(),ue(Un)).default,Kn=He()?(Hn(),ue($n)).default:[],Yn=He()?(jn(),ue(qn)).default:e=>e;Ge();var ce=(0,Ft.configureStore)({reducer:zn,middleware:e=>e({serializableCheck:{ignoredActions:[...Kn,jr.type,qr.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(Ln)}),Xn=(0,Zn.createSubscription)(ce),cp=Yn(ce),lp=(0,Ft.configureStore)({reducer:se});var Oi={store:ce,subscription:Xn},_t=(0,Jn.createContext)(Oi),mp=(0,le.createStoreHook)(_t),gp=(0,le.createDispatchHook)(_t),Qn=(0,le.createSelectorHook)(_t);o();o();ae();var W=e=>e.account,Ot=g(W,e=>e.address),Bt=g(W,Ot,(e,t)=>t in e.accounts?e.accounts[t]:Le),hp=g(W,Bt,(e,t)=>{let i=e,{accounts:r}=i,n=Kt(i,["accounts"]);return w(x({},n),{account:t})}),xp=g(Bt,e=>e.balance),Sp=g(Bt,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),wp=g(W,e=>e.shard),bp=g(W,e=>e.ledgerAccount),Ip=g(W,e=>e.walletConnectAccount),Ap=g(W,e=>e.isAccountLoading),vp=g(W,e=>e.accountLoadingError),kp=g(W,e=>e.websocketEvent);o();var K=e=>e.loginInfo,Np=g(K,e=>e.loginMethod),Cp=g(K,Ot,(e,t)=>Ve(e.loginMethod,t)),Rp=g(K,e=>e.walletConnectLogin),Pp=g(K,e=>e.ledgerLogin),Mp=g(K,e=>e.walletLogin),Fp=g(K,e=>e.isLoginSessionInvalid),_p=g(K,e=>e.tokenLogin),Op=g(K,e=>e.logoutRoute);o();var eo=e=>e.modals,Vp=g(eo,e=>e.txSubmittedModal),$p=g(eo,e=>e.notificationModal);o();var q=e=>e.networkConfig,Wp=g(q,e=>e.chainID),qp=g(q,e=>e.network.walletConnectBridgeAddress),jp=g(q,e=>e.network.walletConnectV2RelayAddress),zp=g(q,e=>e.network.walletConnectV2ProjectId),Kp=g(q,e=>e.network.walletConnectV2Options),Yp=g(q,e=>e.network.walletConnectDeepLink),Ut=g(q,e=>e.network),Zp=g(Ut,e=>e.apiAddress),to=g(Ut,e=>e.explorerAddress),Xp=g(Ut,e=>e.egldLabel);o();var Vt=e=>e.signedMessageInfo,eu=g(Vt,e=>e.isSigning),tu=g(Vt,e=>e.errorMessage),ru=g(Vt,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]});o();var $t=e=>e.toasts,iu=g($t,e=>e.customToasts),au=g($t,e=>e.transactionToasts),su=g($t,e=>e.failTransactionToast);o();ae();var ro={errorMessage:Dt,successMessage:Nt,processingMessage:Ct},Bi=e=>e.transactionsInfo,uu=g(Bi,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||ro);o();o();var N=require("@multiversx/sdk-core");I();o();function Ht(e){try{return a.Buffer.from(e,"base64").toString()===atob(e)}catch(t){return!1}}function Gt(e){var i,l,p;let{data:t}=e,r=Ht(t!=null?t:"")?N.TransactionPayload.fromEncoded(t):new N.TransactionPayload(t),n=new N.Transaction(x({value:e.value.valueOf(),data:r,nonce:e.nonce.valueOf(),receiver:new N.Address(e.receiver),sender:new N.Address(e.sender),gasLimit:(i=e.gasLimit.valueOf())!=null?i:ut,gasPrice:(l=e.gasPrice.valueOf())!=null?l:dt,chainID:e.chainID.valueOf(),version:new N.TransactionVersion((p=e.version)!=null?p:Rr)},e.options?{options:new N.TransactionOptions(e.options)}:{}));return n.applySignature({hex:()=>e.signature||""},new N.Address(e.sender)),n}o();Pt();o();var Vi=b(require("bignumber.js"));B();o();o();o();o();var Hi=require("@multiversx/sdk-core"),Gi=b(require("bignumber.js"));O();o();var $i=require("@multiversx/sdk-core");o();o();o();var qi=require("@multiversx/sdk-core/out");o();I();o();var ao=require("@multiversx/sdk-core");B();o();o();o();o();O();o();o();o();o();o();o();o();o();o();o();o();L();o();o();L();o();o();o();var Xi=b(require("bignumber.js"));I();o();var Zi=require("@multiversx/sdk-core"),Wt=b(require("bignumber.js"));I();o();var Ki=b(require("bignumber.js"));o();Wt.default.config({ROUNDING_MODE:Wt.default.ROUND_FLOOR});o();o();o();I();o();o();o();o();I();o();I();o();var Ji=require("@multiversx/sdk-core");I();o();var Te=require("@multiversx/sdk-core"),ea=require("@multiversx/sdk-network-providers");I();o();o();var Qi=b(require("bignumber.js"));I();o();I();o();o();o();o();o();I();o();L();var ra=["reDelegateRewards","claimRewards","unBond"],na=["wrapEgld","unwrapEgld"],oa=["unStake"],ia=["unDelegate"];o();o();o();I();o();var ca=b(require("bignumber.js"));o();o();o();L();o();var la=b(require("bignumber.js"));o();o();o();o();L();o();o();o();var ua=b(require("linkifyjs"));o();I();o();var da=b(require("bignumber.js"));o();B();o();o();O();o();O();o();o();o();L();o();L();o();var ma=b(require("bignumber.js"));I();L();o();L();o();var uo=require("react");B();o();o();L();o();var ga=require("@multiversx/sdk-core/out"),fa=b(require("bignumber.js"));L();o();L();o();o();O();var HT=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];o();var mo=require("react");B();o();var ya=require("react");L();var YT=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];var Ke=e=>e.transactions,ye=g(Ke,e=>e.signedTransactions),Py=g(Ke,e=>e.signTransactionsError),My=g(Ke,e=>e.signTransactionsCancelMessage),Ye=e=>t=>Object.entries(t).reduce((r,[n,i])=>(e(i.status)&&(r[n]=i),r),{}),Fy=g(ye,Ye(wn)),_y=g(ye,Ye(Fe)),Oy=g(ye,Ye(_e)),By=g(ye,Ye(bn)),Uy=g(Ke,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:w(x({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>Gt(r)))||[]})}),Vy=g(ye,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});var ha=()=>Qn(q);0&&(module.exports={useGetNetworkConfig});
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *
@@ -1,4 +1,4 @@
1
- "use strict";var mo=Object.create;var le=Object.defineProperty,fo=Object.defineProperties,To=Object.getOwnPropertyDescriptor,yo=Object.getOwnPropertyDescriptors,ho=Object.getOwnPropertyNames,he=Object.getOwnPropertySymbols,xo=Object.getPrototypeOf,Ze=Object.prototype.hasOwnProperty,qt=Object.prototype.propertyIsEnumerable;var Wt=(e,t,r)=>t in e?le(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t)=>{for(var r in t||(t={}))Ze.call(t,r)&&Wt(e,r,t[r]);if(he)for(var r of he(t))qt.call(t,r)&&Wt(e,r,t[r]);return e},w=(e,t)=>fo(e,yo(t));var jt=(e,t)=>{var r={};for(var n in e)Ze.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&he)for(var n of he(e))t.indexOf(n)<0&&qt.call(e,n)&&(r[n]=e[n]);return r};var f=(e,t)=>()=>(e&&(t=e(e=0)),t);var xe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Y=(e,t)=>{for(var r in t)le(e,r,{get:t[r],enumerable:!0})},zt=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ho(t))!Ze.call(e,i)&&i!==r&&le(e,i,{get:()=>t[i],enumerable:!(n=To(t,i))||n.enumerable});return e};var b=(e,t,r)=>(r=e!=null?mo(xo(e)):{},zt(t||!e||!e.__esModule?le(r,"default",{value:e,enumerable:!0}):r,e)),pe=e=>zt(le({},"__esModule",{value:!0}),e);var Kt=(e,t,r)=>new Promise((n,i)=>{var l=d=>{try{g(r.next(d))}catch(T){i(T)}},p=d=>{try{g(r.throw(d))}catch(T){i(T)}},g=d=>d.done?n(d.value):Promise.resolve(d.value).then(l,p);g((r=r.apply(e,t)).next())});var Xt=xe(Se=>{"use strict";o();Se.byteLength=wo;Se.toByteArray=Ao;Se.fromByteArray=ko;var P=[],C=[],So=typeof Uint8Array!="undefined"?Uint8Array:Array,Xe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Z=0,Yt=Xe.length;Z<Yt;++Z)P[Z]=Xe[Z],C[Xe.charCodeAt(Z)]=Z;var Z,Yt;C["-".charCodeAt(0)]=62;C["_".charCodeAt(0)]=63;function Zt(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 wo(e){var t=Zt(e),r=t[0],n=t[1];return(r+n)*3/4-n}function bo(e,t,r){return(t+r)*3/4-r}function Ao(e){var t,r=Zt(e),n=r[0],i=r[1],l=new So(bo(e,n,i)),p=0,g=i>0?n-4:n,d;for(d=0;d<g;d+=4)t=C[e.charCodeAt(d)]<<18|C[e.charCodeAt(d+1)]<<12|C[e.charCodeAt(d+2)]<<6|C[e.charCodeAt(d+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return i===2&&(t=C[e.charCodeAt(d)]<<2|C[e.charCodeAt(d+1)]>>4,l[p++]=t&255),i===1&&(t=C[e.charCodeAt(d)]<<10|C[e.charCodeAt(d+1)]<<4|C[e.charCodeAt(d+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function Io(e){return P[e>>18&63]+P[e>>12&63]+P[e>>6&63]+P[e&63]}function vo(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(Io(n));return i.join("")}function ko(e){for(var t,r=e.length,n=r%3,i=[],l=16383,p=0,g=r-n;p<g;p+=l)i.push(vo(e,p,p+l>g?g:p+l));return n===1?(t=e[r-1],i.push(P[t>>2]+P[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(P[t>>10]+P[t>>4&63]+P[t<<2&63]+"=")),i.join("")}});var Jt=xe(Je=>{o();Je.read=function(e,t,r,n,i){var l,p,g=i*8-n-1,d=(1<<g)-1,T=d>>1,h=-7,y=r?i-1:0,k=r?-1:1,E=e[t+y];for(y+=k,l=E&(1<<-h)-1,E>>=-h,h+=g;h>0;l=l*256+e[t+y],y+=k,h-=8);for(p=l&(1<<-h)-1,l>>=-h,h+=n;h>0;p=p*256+e[t+y],y+=k,h-=8);if(l===0)l=1-T;else{if(l===d)return p?NaN:(E?-1:1)*(1/0);p=p+Math.pow(2,n),l=l-T}return(E?-1:1)*p*Math.pow(2,l-n)};Je.write=function(e,t,r,n,i,l){var p,g,d,T=l*8-i-1,h=(1<<T)-1,y=h>>1,k=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=n?0:l-1,q=n?1:-1,U=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(g=isNaN(t)?1:0,p=h):(p=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-p))<1&&(p--,d*=2),p+y>=1?t+=k/d:t+=k*Math.pow(2,1-y),t*d>=2&&(p++,d/=2),p+y>=h?(g=0,p=h):p+y>=1?(g=(t*d-1)*Math.pow(2,i),p=p+y):(g=t*Math.pow(2,y-1)*Math.pow(2,i),p=0));i>=8;e[r+E]=g&255,E+=q,g/=256,i-=8);for(p=p<<i|g,T+=i;T>0;e[r+E]=p&255,E+=q,p/=256,T-=8);e[r+E-q]|=U*128}});var ur=xe(oe=>{"use strict";o();var Qe=Xt(),ne=Jt(),Qt=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;oe.Buffer=u;oe.SlowBuffer=Ro;oe.INSPECT_MAX_BYTES=50;var we=2147483647;oe.kMaxLength=we;u.TYPED_ARRAY_SUPPORT=Eo();!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 Eo(){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 V(e){if(e>we)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 nt(e)}return rr(e,t,r)}u.poolSize=8192;function rr(e,t,r){if(typeof e=="string")return Do(e,t);if(ArrayBuffer.isView(e))return No(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(M(e,ArrayBuffer)||e&&M(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(M(e,SharedArrayBuffer)||e&&M(e.buffer,SharedArrayBuffer)))return tt(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=Co(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 rr(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function nr(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 Lo(e,t,r){return nr(e),e<=0?V(e):t!==void 0?typeof r=="string"?V(e).fill(t,r):V(e).fill(t):V(e)}u.alloc=function(e,t,r){return Lo(e,t,r)};function nt(e){return nr(e),V(e<0?0:ot(e)|0)}u.allocUnsafe=function(e){return nt(e)};u.allocUnsafeSlow=function(e){return nt(e)};function Do(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=or(e,t)|0,n=V(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function et(e){for(var t=e.length<0?0:ot(e.length)|0,r=V(t),n=0;n<t;n+=1)r[n]=e[n]&255;return r}function No(e){if(M(e,Uint8Array)){var t=new Uint8Array(e);return tt(t.buffer,t.byteOffset,t.byteLength)}return et(e)}function tt(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 Co(e){if(u.isBuffer(e)){var t=ot(e.length)|0,r=V(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||it(e.length)?V(0):et(e);if(e.type==="Buffer"&&Array.isArray(e.data))return et(e.data)}function ot(e){if(e>=we)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+we.toString(16)+" bytes");return e|0}function Ro(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(M(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),M(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(M(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 or(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||M(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 rt(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:rt(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=or;function Po(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 Go(this,t,r);case"utf8":case"utf-8":return ar(this,t,r);case"ascii":return $o(this,t,r);case"latin1":case"binary":return Ho(this,t,r);case"base64":return Uo(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Wo(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}u.prototype._isBuffer=!0;function X(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)X(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)X(this,r,r+3),X(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)X(this,r,r+7),X(this,r+1,r+6),X(this,r+2,r+5),X(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?ar(this,0,t):Po.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=oe.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};Qt&&(u.prototype[Qt]=u.prototype.inspect);u.prototype.compare=function(t,r,n,i,l){if(M(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),l===void 0&&(l=this.length),r<0||n>t.length||i<0||l>this.length)throw new RangeError("out of range index");if(i>=l&&r>=n)return 0;if(i>=l)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,l>>>=0,this===t)return 0;for(var p=l-i,g=n-r,d=Math.min(p,g),T=this.slice(i,l),h=t.slice(r,n),y=0;y<d;++y)if(T[y]!==h[y]){p=T[y],g=h[y];break}return p<g?-1:g<p?1:0};function ir(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,it(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:er(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):er(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function er(e,t,r,n,i){var l=1,p=e.length,g=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;l=2,p/=2,g/=2,r/=2}function d(E,q){return l===1?E[q]:E.readUInt16BE(q*l)}var T;if(i){var h=-1;for(T=r;T<p;T++)if(d(e,T)===d(t,h===-1?0:T-h)){if(h===-1&&(h=T),T-h+1===g)return h*l}else h!==-1&&(T-=T-h),h=-1}else for(r+g>p&&(r=p-g),T=r;T>=0;T--){for(var y=!0,k=0;k<g;k++)if(d(e,T+k)!==d(t,k)){y=!1;break}if(y)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 ir(this,t,r,n,!0)};u.prototype.lastIndexOf=function(t,r,n){return ir(this,t,r,n,!1)};function Mo(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var l=t.length;n>l/2&&(n=l/2);for(var p=0;p<n;++p){var g=parseInt(t.substr(p*2,2),16);if(it(g))return p;e[r+p]=g}return p}function Fo(e,t,r,n){return be(rt(t,e.length-r),e,r,n)}function _o(e,t,r,n){return be(zo(t),e,r,n)}function Oo(e,t,r,n){return be(pr(t),e,r,n)}function Bo(e,t,r,n){return be(Ko(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 Mo(this,t,r,n);case"utf8":case"utf-8":return Fo(this,t,r,n);case"ascii":case"latin1":case"binary":return _o(this,t,r,n);case"base64":return Oo(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Bo(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 Uo(e,t,r){return t===0&&r===e.length?Qe.fromByteArray(e):Qe.fromByteArray(e.slice(t,r))}function ar(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var l=e[i],p=null,g=l>239?4:l>223?3:l>191?2:1;if(i+g<=r){var d,T,h,y;switch(g){case 1:l<128&&(p=l);break;case 2:d=e[i+1],(d&192)===128&&(y=(l&31)<<6|d&63,y>127&&(p=y));break;case 3:d=e[i+1],T=e[i+2],(d&192)===128&&(T&192)===128&&(y=(l&15)<<12|(d&63)<<6|T&63,y>2047&&(y<55296||y>57343)&&(p=y));break;case 4:d=e[i+1],T=e[i+2],h=e[i+3],(d&192)===128&&(T&192)===128&&(h&192)===128&&(y=(l&15)<<18|(d&63)<<12|(T&63)<<6|h&63,y>65535&&y<1114112&&(p=y))}}p===null?(p=65533,g=1):p>65535&&(p-=65536,n.push(p>>>10&1023|55296),p=56320|p&1023),n.push(p),i+=g}return Vo(n)}var tr=4096;function Vo(e){var t=e.length;if(t<=tr)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=tr));return r}function $o(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 Ho(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 Go(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+=Yo[e[l]];return i}function Wo(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 I(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||I(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||I(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||I(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||I(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||I(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||I(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||I(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||I(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||I(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||I(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||I(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||I(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||I(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||I(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||I(t,4,this.length),ne.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||I(t,4,this.length),ne.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||I(t,8,this.length),ne.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||I(t,8,this.length),ne.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,g=0;for(this[r]=t&255;++g<n&&(p*=256);)this[r+g]=t/p&255;return r+n};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){var l=Math.pow(2,8*n)-1;D(this,t,r,n,l,0)}var p=n-1,g=1;for(this[r+p]=t&255;--p>=0&&(g*=256);)this[r+p]=t/g&255;return r+n};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,n){return t=+t,r=r>>>0,n||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,g=1,d=0;for(this[r]=t&255;++p<n&&(g*=256);)t<0&&d===0&&this[r+p-1]!==0&&(d=1),this[r+p]=(t/g>>0)-d&255;return r+n};u.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*n-1);D(this,t,r,n,l-1,-l)}var p=n-1,g=1,d=0;for(this[r+p]=t&255;--p>=0&&(g*=256);)t<0&&d===0&&this[r+p+1]!==0&&(d=1),this[r+p]=(t/g>>0)-d&255;return r+n};u.prototype.writeInt8=function(t,r,n){return t=+t,r=r>>>0,n||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 sr(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 cr(e,t,r,n,i){return t=+t,r=r>>>0,i||sr(e,t,r,4,34028234663852886e22,-34028234663852886e22),ne.write(e,t,r,n,23,4),r+4}u.prototype.writeFloatLE=function(t,r,n){return cr(this,t,r,!0,n)};u.prototype.writeFloatBE=function(t,r,n){return cr(this,t,r,!1,n)};function lr(e,t,r,n,i){return t=+t,r=r>>>0,i||sr(e,t,r,8,17976931348623157e292,-17976931348623157e292),ne.write(e,t,r,n,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,n){return lr(this,t,r,!0,n)};u.prototype.writeDoubleBE=function(t,r,n){return lr(this,t,r,!1,n)};u.prototype.copy=function(t,r,n,i){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<n&&(i=n),i===n||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-n&&(i=t.length-r+n);var l=i-n;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(t,this.subarray(n,i),r),l};u.prototype.fill=function(t,r,n,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t.length===1){var l=t.charCodeAt(0);(i==="utf8"&&l<128||i==="latin1")&&(t=l)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,t||(t=0);var p;if(typeof t=="number")for(p=r;p<n;++p)this[p]=t;else{var g=u.isBuffer(t)?t:u.from(t,i),d=g.length;if(d===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(p=0;p<n-r;++p)this[p+r]=g[p%d]}return this};var qo=/[^+/0-9A-Za-z-_]/g;function jo(e){if(e=e.split("=")[0],e=e.trim().replace(qo,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function rt(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 zo(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function Ko(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 Qe.toByteArray(jo(e))}function be(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 M(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function it(e){return e!==e}var Yo=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 Tr=xe((Aa,fr)=>{o();var S=fr.exports={},F,_;function at(){throw new Error("setTimeout has not been defined")}function st(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?F=setTimeout:F=at}catch(e){F=at}try{typeof clearTimeout=="function"?_=clearTimeout:_=st}catch(e){_=st}})();function dr(e){if(F===setTimeout)return setTimeout(e,0);if((F===at||!F)&&setTimeout)return F=setTimeout,setTimeout(e,0);try{return F(e,0)}catch(t){try{return F.call(null,e,0)}catch(r){return F.call(this,e,0)}}}function Zo(e){if(_===clearTimeout)return clearTimeout(e);if((_===st||!_)&&clearTimeout)return _=clearTimeout,clearTimeout(e);try{return _(e)}catch(t){try{return _.call(null,e)}catch(r){return _.call(this,e)}}}var $=[],ie=!1,J,Ae=-1;function Xo(){!ie||!J||(ie=!1,J.length?$=J.concat($):Ae=-1,$.length&&gr())}function gr(){if(!ie){var e=dr(Xo);ie=!0;for(var t=$.length;t;){for(J=$,$=[];++Ae<t;)J&&J[Ae].run();Ae=-1,t=$.length}J=null,ie=!1,Zo(e)}}S.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];$.push(new mr(e,t)),$.length===1&&!ie&&dr(gr)};function mr(e,t){this.fun=e,this.array=t}mr.prototype.run=function(){this.fun.apply(null,this.array)};S.title="browser";S.browser=!0;S.env={};S.argv=[];S.version="";S.versions={};function H(){}S.on=H;S.addListener=H;S.once=H;S.off=H;S.removeListener=H;S.removeAllListeners=H;S.emit=H;S.prependListener=H;S.prependOnceListener=H;S.listeners=function(e){return[]};S.binding=function(e){throw new Error("process.binding is not supported")};S.cwd=function(){return"/"};S.chdir=function(e){throw new Error("process.chdir is not supported")};S.umask=function(){return 0}});var a,s,Ia,o=f(()=>{a=b(ur()),s=b(Tr()),Ia=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 yr=f(()=>{"use strict";o()});var hr=f(()=>{"use strict";o()});var xr=f(()=>{"use strict";o()});var Sr=f(()=>{"use strict";o()});var O=f(()=>{"use strict";o()});var wr=f(()=>{"use strict";o()});var br=f(()=>{"use strict";o()});var L=f(()=>{"use strict";o()});var Ar=f(()=>{"use strict";o()});var Ir=f(()=>{"use strict";o()});var B=f(()=>{"use strict";o();hr();xr();Sr();O();wr();br();L();Ar();Ir()});var ct,vr,Ga,kr,Wa,Er,qa,ja,za,Lr=f(()=>{"use strict";o();B();ct={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:"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://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:vr,egldLabel:Ga}=ct["devnet"],{chainId:kr,egldLabel:Wa}=ct["testnet"],{chainId:Er,egldLabel:qa}=ct["mainnet"],ja={["devnet"]:vr,["testnet"]:kr,["mainnet"]:Er},za={[vr]:"devnet",[kr]:"testnet",[Er]:"mainnet"}});var lt=f(()=>{"use strict";o()});var Dr=f(()=>{"use strict";o()});var Nr,pt=f(()=>{"use strict";o();Nr="transaction-status-toast-id"});var ut,dt,Cr,Ie,Rr,ae,A=f(()=>{"use strict";o();yr();Lr();lt();Dr();pt();ut=5e4,dt=1e9,Cr=1,Ie="logout",Rr="login",ae="0"});var ve,gt=f(()=>{"use strict";o();ve=()=>Date.now()/1e3});var Pr=f(()=>{"use strict";o()});var Mr=f(()=>{"use strict";o()});var Fr=f(()=>{"use strict";o();gt();Pr();Mr()});var ft={};Y(ft,{getItem:()=>Qo,localStorageKeys:()=>Q,removeItem:()=>ei,setItem:()=>Jo});var Q,mt,Jo,Qo,ei,ue=f(()=>{"use strict";o();Fr();Q={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},mt=typeof localStorage!="undefined",Jo=({key:e,data:t,expires:r})=>{!mt||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Qo=e=>{if(!mt)return;let t=localStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:ve()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},ei=e=>{!mt||localStorage.removeItem(String(e))}});var Tt={};Y(Tt,{clear:()=>Ur,getItem:()=>Or,removeItem:()=>Br,setItem:()=>_r,storage:()=>ti});var _r,Or,Br,Ur,ti,Vr=f(()=>{"use strict";o();_r=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Or=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},Br=e=>sessionStorage.removeItem(String(e)),Ur=()=>sessionStorage.clear(),ti={setItem:_r,getItem:Or,removeItem:Br,clear:Ur}});var se,ke=f(()=>{"use strict";o();ue();Vr();se={session:Tt,local:ft}});var yt,v,Ee,G=f(()=>{"use strict";o();yt=require("@reduxjs/toolkit");A();v=(0,yt.createAction)(Ie),Ee=(0,yt.createAction)(Rr,e=>({payload:e}))});var xt,$r,Hr,Le,ht,Gr,Wr,ws,qr,jr,bs,As,Is,vs,ks,Es,zr,St=f(()=>{"use strict";o();xt=require("@multiversx/sdk-core"),$r=require("@reduxjs/toolkit"),Hr=require("redux-persist");A();ke();ue();G();Le={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:ae},ht={address:"",websocketEvent:null,accounts:{"":Le},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Gr=(0,$r.createSlice)({name:"accountInfoSlice",initialState:ht,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new xt.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:Le},e.shard=t.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,t)=>{let{address:r}=e;e.accounts[r].nonce=t.payload},setAccountShard:(e,t)=>{e.shard=t.payload},setLedgerAccount:(e,t)=>{e.ledgerAccount=t.payload},updateLedgerAccount:(e,t)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=t.payload.index,e.ledgerAccount.address=t.payload.address)},setWalletConnectAccount:(e,t)=>{e.walletConnectAccount=t.payload},setIsAccountLoading:(e,t)=>{e.isAccountLoading=t.payload,e.accountLoadingError=null},setAccountLoadingError:(e,t)=>{e.accountLoadingError=t.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,t)=>{e.websocketEvent={timestamp:Date.now(),message:t.payload}}},extraReducers:e=>{e.addCase(v,()=>(se.local.removeItem(Q.loginExpiresAt),ht)),e.addCase(Ee,(t,r)=>{let{address:n}=r.payload;t.address=n,t.publicKey=new xt.Address(n).hex()}),e.addCase(Hr.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:g}=n;t.address=i,t.shard=l;let d=p&&i in p;t.accounts=d?p:ht.accounts,t.publicKey=g})}}),{setAccount:Wr,setAddress:ws,setAccountNonce:qr,setAccountShard:jr,setLedgerAccount:bs,updateLedgerAccount:As,setWalletConnectAccount:Is,setIsAccountLoading:vs,setAccountLoadingError:ks,setWebsocketEvent:Es}=Gr.actions,zr=Gr.reducer});function de(){return new Date().setHours(new Date().getHours()+24)}function ge(e){se.local.setItem({key:Q.loginExpiresAt,data:e,expires:e})}var wt=f(()=>{"use strict";o();ke();ue()});var Yr,Kr,Zr,Os,Bs,Us,Vs,$s,Hs,Xr,Gs,Jr,bt=f(()=>{"use strict";o();Yr=require("@reduxjs/toolkit");wt();O();G();Kr={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,isLoginSessionInvalid:!1},Zr=(0,Yr.createSlice)({name:"loginInfoSlice",initialState:Kr,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,()=>Kr),e.addCase(Ee,(t,r)=>{t.loginMethod=r.payload.loginMethod,ge(de())})}}),{setLoginMethod:Os,setWalletConnectLogin:Bs,setLedgerLogin:Us,setTokenLogin:Vs,setTokenLoginSignature:$s,setWalletLogin:Hs,invalidateLoginSession:Xr,setLogoutRoute:Gs}=Zr.actions,Jr=Zr.reducer});var en,Qr,tn,zs,Ks,Ys,Zs,rn,At=f(()=>{"use strict";o();en=require("@reduxjs/toolkit");G();Qr={},tn=(0,en.createSlice)({name:"modalsSlice",initialState:Qr,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,()=>Qr)}}),{setTxSubmittedModal:zs,setNotificationModal:Ks,clearTxSubmittedModal:Ys,clearNotificationModal:Zs}=tn.actions,rn=tn.reducer});var nn=f(()=>{"use strict";o()});var on=f(()=>{"use strict";o();nn()});function It(e){return e[Math.floor(Math.random()*e.length)]}var an=f(()=>{"use strict";o()});var sn=f(()=>{"use strict";o();lt()});var cn=f(()=>{"use strict";o();on();an();sn()});var ln,pn,vt,ni,un,dc,gc,dn,kt=f(()=>{"use strict";o();ln=require("@reduxjs/toolkit"),pn=b(require("lodash.omit"));cn();vt={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},ni={network:vt,chainID:"-1"},un=(0,ln.createSlice)({name:"appConfig",initialState:ni,reducers:{initializeNetworkConfig:(e,t)=>{let r=It(t.payload.walletConnectBridgeAddresses),n=It(t.payload.walletConnectV2RelayAddresses),i=(0,pn.default)(t.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=w(x(x({},e.network),i),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:n})},setChainID:(e,t)=>{e.chainID=t.payload}}}),{initializeNetworkConfig:dc,setChainID:gc}=un.actions,dn=un.reducer});var gn,Et,mn,xc,Sc,wc,De,Ne=f(()=>{"use strict";o();gn=require("@reduxjs/toolkit");B();G();Et={isSigning:!1,signedSessions:{}},mn=(0,gn.createSlice)({name:"signedMessageInfoSliceState",initialState:Et,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:n,errorMessage:i}=t.payload;return w(x({},e),{errorMessage:i!=null?i:e.errorMessage,isSigning:n.status==="pending",signedSessions:w(x({},e.signedSessions),{[r]:n})})},setSignSessionState:(e,t)=>x(x({},e),t.payload),clearSignedMessageInfo:()=>Et},extraReducers:e=>{e.addCase(v,()=>Et)}}),{setSignSession:xc,clearSignedMessageInfo:Sc,setSignSessionState:wc}=mn.actions,De=mn.reducer});var Tn,yn,fn,hn,Dc,Nc,Cc,Rc,Pc,Mc,Ce,Re=f(()=>{"use strict";o();Tn=require("@reduxjs/toolkit"),yn=require("redux-persist");pt();B();gt();G();fn={customToasts:[],transactionToasts:[],failTransactionToast:null},hn=(0,Tn.createSlice)({name:"toastsSlice",initialState:fn,reducers:{addCustomToast:(e,t)=>{e.customToasts.push(w(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:ve(),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=w(x({},t.payload),{toastId:Nr})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(v,()=>fn),e.addCase(yn.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:Dc,removeCustomToast:Nc,addTransactionToast:Cc,removeTransactionToast:Rc,addFailTransactionToast:Pc,removeFailTransactionToast:Mc}=hn.actions,Ce=hn.reducer});var xn,Dt,Nt,Ct,oi,Lt,Sn,Bc,Uc,Vc,Pe,Me=f(()=>{"use strict";o();xn=require("@reduxjs/toolkit");G();Dt="Transaction failed",Nt="Transaction successful",Ct="Processing transaction",oi="Transaction submitted",Lt={},Sn=(0,xn.createSlice)({name:"transactionsInfo",initialState:Lt,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:n}=t.payload;r!=null&&(e[r]={errorMessage:(n==null?void 0:n.errorMessage)||Dt,successMessage:(n==null?void 0:n.successMessage)||Nt,processingMessage:(n==null?void 0:n.processingMessage)||Ct,submittedMessage:(n==null?void 0:n.submittedMessage)||oi,transactionDuration:n==null?void 0:n.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>Lt},extraReducers:e=>{e.addCase(v,()=>Lt)}}),{clearTransactionsInfo:Bc,setTransactionsDisplayInfo:Uc,clearTransactionsInfoForSessionId:Vc}=Sn.actions,Pe=Sn.reducer});function wn(e){return e!=null&&(gi(e)||yi(e))}function Fe(e){return e!=null&&(mi(e)||hi(e))}function _e(e){return e!=null&&(fi(e)||xi(e))}function bn(e){return e!=null&&Ti(e)}function gi(e){return e!=null&&ai.includes(e)}function mi(e){return e!=null&&si.includes(e)}function fi(e){return e!=null&&ci.includes(e)}function Ti(e){return e!=null&&li.includes(e)}function yi(e){return e!=null&&pi.includes(e)}function hi(e){return e!=null&&ui.includes(e)}function xi(e){return e!=null&&di.includes(e)}var ai,si,ci,li,pi,ui,di,Pt=f(()=>{"use strict";o();O();ai=["sent"],si=["success"],ci=["fail","cancelled","timedOut"],li=["timedOut"],pi=["pending"],ui=["success"],di=["fail","invalid"]});var An,In,me,Si,vn,Yc,Zc,Xc,Jc,Qc,el,tl,rl,nl,ol,Oe,Be=f(()=>{"use strict";o();An=require("@reduxjs/toolkit"),In=require("redux-persist");O();Pt();G();me={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},Si={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},vn=(0,An.createSlice)({name:"transactionsSlice",initialState:me,reducers:{moveTransactionsToSignedState:(e,t)=>{var d,T;let{sessionId:r,transactions:n,errorMessage:i,status:l,redirectRoute:p}=t.payload,g=((d=e.customTransactionInformationForSessionId)==null?void 0:d[r])||Si;e.signedTransactions[r]={transactions:n,status:l,errorMessage:i,redirectRoute:p,customTransactionInformation:g},((T=e==null?void 0:e.transactionsToSign)==null?void 0:T.sessionId)===r&&(e.transactionsToSign=me.transactionsToSign)},clearSignedTransaction:(e,t)=>{e.signedTransactions[t.payload]&&delete e.signedTransactions[t.payload]},clearTransactionToSign:e=>{e!=null&&e.transactionsToSign&&(e.transactionsToSign=null)},updateSignedTransaction:(e,t)=>{e.signedTransactions=x(x({},e.signedTransactions),t.payload)},updateSignedTransactions:(e,t)=>{let{sessionId:r,status:n,errorMessage:i,transactions:l}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].status=n,i!=null&&(e.signedTransactions[r].errorMessage=i),l!=null&&(e.signedTransactions[r].transactions=l))},updateSignedTransactionStatus:(e,t)=>{var g,d,T,h,y,k;let{sessionId:r,status:n,errorMessage:i,transactionHash:l}=t.payload,p=(d=(g=e.signedTransactions)==null?void 0:g[r])==null?void 0:d.transactions;if(p!=null){e.signedTransactions[r].transactions=p.map(U=>U.hash===l?w(x({},U),{status:n,errorMessage:i}):U);let E=(h=(T=e.signedTransactions[r])==null?void 0:T.transactions)==null?void 0:h.every(U=>Fe(U.status)),q=(k=(y=e.signedTransactions[r])==null?void 0:y.transactions)==null?void 0:k.every(U=>_e(U.status));E&&(e.signedTransactions[r].status="success"),q&&(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=me.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=me.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload}},extraReducers:e=>{e.addCase(v,()=>me),e.addCase(In.REHYDRATE,(t,r)=>{var p;if(t.signTransactionsCancelMessage=null,!((p=r.payload)!=null&&p.transactions))return;let{signedTransactions:n,customTransactionInformationForSessionId:i}=r.payload.transactions,l=Object.entries(n).reduce((g,[d,T])=>{let h=new Date(d),y=new Date;return y.setHours(y.getHours()+5),y-h>0||(g[d]=T),g},{});i!=null&&(t.customTransactionInformationForSessionId=i),n!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:Yc,updateSignedTransactions:Zc,setTransactionsToSign:Xc,clearAllTransactionsToSign:Jc,clearAllSignedTransactions:Qc,clearSignedTransaction:el,clearTransactionToSign:tl,setSignTransactionsError:rl,setSignTransactionsCancelMessage:nl,moveTransactionsToSignedState:ol}=vn.actions,Oe=vn.reducer});var ee=f(()=>{"use strict";o();St();bt();At();kt();Ne();Re();Me();Be()});var Vt=f(()=>{"use strict";o()});var Un,Bn,Vn,du,gu,mu,fu,Tu,yu,$n,Hn=f(()=>{"use strict";o();Un=require("@reduxjs/toolkit");G();Bn={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},Vn=(0,Un.createSlice)({name:"dappModalsSlice",initialState:Bn,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,()=>Bn)}}),{setDappModalVisibility:du,setDappModalHeaderVisibility:gu,setDappModalFooterVisibility:mu,setDappModalHeaderText:fu,setDappModalFooterText:Tu,setDappModalConfig:yu}=Vn.actions,$n=Vn.reducer});var Gn,Ri,Pi,ce,Ge=f(()=>{"use strict";o();Gn=require("@reduxjs/toolkit");Vt();St();Hn();bt();At();kt();Ne();Re();Me();Be();Ri={["account"]:zr,["dappModal"]:$n,["loginInfo"]:Jr,["modals"]:rn,["networkConfig"]:dn,["signedMessageInfo"]:De,["toasts"]:Ce,["transactionsInfo"]:Pe,["transactions"]:Oe},Pi=(e={})=>(0,Gn.combineReducers)(x(x({},Ri),e)),ce=Pi});var jn={};Y(jn,{default:()=>$i});function We(e,t=[]){return{key:e,version:1,storage:qn.default,blacklist:t}}var z,Wn,qn,Mi,Fi,_i,Oi,Bi,Ui,Vi,$i,zn=f(()=>{"use strict";o();z=require("redux-persist"),Wn=b(require("redux-persist/lib/storage")),qn=b(require("redux-persist/lib/storage/session"));Ge();ee();Ne();Re();Me();Be();Vt();Mi={2:e=>w(x({},e),{networkConfig:vt})};Fi=We("sdk-dapp-transactionsInfo"),_i=We("sdk-dapp-transactions",["transactionsToSign"]),Oi=We("sdk-dapp-toasts"),Bi=We("sdk-dapp-signedMessageInfo"),Ui={key:"sdk-dapp-store",version:2,storage:Wn.default,whitelist:["account","loginInfo","modals","networkConfig"],migrate:(0,z.createMigrate)(Mi,{debug:!1})},Vi={["toasts"]:(0,z.persistReducer)(Oi,Ce),["transactions"]:(0,z.persistReducer)(_i,Oe),["transactionsInfo"]:(0,z.persistReducer)(Fi,Pe),["signedMessageInfo"]:(0,z.persistReducer)(Bi,De)},$i=(0,z.persistReducer)(Ui,ce(Vi))});var Kn={};Y(Kn,{default:()=>Hi});var Hi,Yn=f(()=>{"use strict";o();Ge();Hi=ce()});var Zn={};Y(Zn,{default:()=>Wi});var R,Gi,Wi,Xn=f(()=>{"use strict";o();R=require("redux-persist"),Gi=[R.FLUSH,R.REHYDRATE,R.PAUSE,R.PERSIST,R.PURGE,R.REGISTER],Wi=Gi});var eo={};Y(eo,{default:()=>Qn});function Qn(e){return(0,Jn.persistStore)(e)}var Jn,to=f(()=>{"use strict";o();Jn=require("redux-persist")});var ha={};Y(ha,{getAccountShard:()=>ya});module.exports=pe(ha);o();var go=b(require("axios"));o();o();ee();o();var kn=b(require("lodash.isequal")),Ue=require("reselect");B();var m=(0,Ue.createSelectorCreator)(Ue.defaultMemoize,kn.default),Ve=(e,t)=>e!=""&&Boolean(t);var W=e=>e.account,fe=m(W,e=>e.address),Mt=m(W,fe,(e,t)=>t in e.accounts?e.accounts[t]:Le),xl=m(W,Mt,(e,t)=>{let i=e,{accounts:r}=i,n=jt(i,["accounts"]);return w(x({},n),{account:t})}),Sl=m(Mt,e=>e.balance),wl=m(Mt,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),En=m(W,e=>e.shard),bl=m(W,e=>e.ledgerAccount),Al=m(W,e=>e.walletConnectAccount),Il=m(W,e=>e.isAccountLoading),vl=m(W,e=>e.accountLoadingError),kl=m(W,e=>e.websocketEvent);o();var j=e=>e.loginInfo,Nl=m(j,e=>e.loginMethod),Cl=m(j,fe,(e,t)=>Ve(e.loginMethod,t)),Rl=m(j,e=>e.walletConnectLogin),Pl=m(j,e=>e.ledgerLogin),Ml=m(j,e=>e.walletLogin),Fl=m(j,e=>e.isLoginSessionInvalid),_l=m(j,e=>e.tokenLogin),Ol=m(j,e=>e.logoutRoute);o();var Ln=e=>e.modals,Vl=m(Ln,e=>e.txSubmittedModal),$l=m(Ln,e=>e.notificationModal);o();var te=e=>e.networkConfig,Wl=m(te,e=>e.chainID),ql=m(te,e=>e.network.walletConnectBridgeAddress),jl=m(te,e=>e.network.walletConnectV2RelayAddress),zl=m(te,e=>e.network.walletConnectV2ProjectId),Kl=m(te,e=>e.network.walletConnectV2Options),Yl=m(te,e=>e.network.walletConnectDeepLink),Ft=m(te,e=>e.network),Dn=m(Ft,e=>e.apiAddress),Nn=m(Ft,e=>e.explorerAddress),Zl=m(Ft,e=>e.egldLabel);o();var _t=e=>e.signedMessageInfo,Ql=m(_t,e=>e.isSigning),ep=m(_t,e=>e.errorMessage),tp=m(_t,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]});o();var Ot=e=>e.toasts,op=m(Ot,e=>e.customToasts),ip=m(Ot,e=>e.transactionToasts),ap=m(Ot,e=>e.failTransactionToast);o();ee();var Cn={errorMessage:Dt,successMessage:Nt,processingMessage:Ct},wi=e=>e.transactionsInfo,pp=m(wi,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||Cn);o();o();var N=require("@multiversx/sdk-core");A();o();function Bt(e){try{return a.Buffer.from(e,"base64").toString()===atob(e)}catch(t){return!1}}function Ut(e){var i,l,p;let{data:t}=e,r=Bt(t!=null?t:"")?N.TransactionPayload.fromEncoded(t):new N.TransactionPayload(t),n=new N.Transaction(x({value:e.value.valueOf(),data:r,nonce:e.nonce.valueOf(),receiver:new N.Address(e.receiver),sender:new N.Address(e.sender),gasLimit:(i=e.gasLimit.valueOf())!=null?i:ut,gasPrice:(l=e.gasPrice.valueOf())!=null?l:dt,chainID:e.chainID.valueOf(),version:new N.TransactionVersion((p=e.version)!=null?p:Cr)},e.options?{options:new N.TransactionOptions(e.options)}:{}));return n.applySignature({hex:()=>e.signature||""},new N.Address(e.sender)),n}o();Pt();o();var Ai=b(require("bignumber.js"));B();o();o();o();o();var vi=require("@multiversx/sdk-core"),ki=b(require("bignumber.js"));O();o();var Ii=require("@multiversx/sdk-core");o();o();o();var Li=require("@multiversx/sdk-core/out");o();A();o();var Fn=require("@multiversx/sdk-core");B();o();o();o();o();O();o();o();var $t=require("@reduxjs/toolkit"),io=require("react-redux/lib/utils/Subscription");ee();o();var _n=b(require("lodash.throttle"));A();ee();wt();ke();ue();var Di=[Ie],$e=!1,Ni=(0,_n.default)(()=>{ge(de())},5e3),On=e=>t=>r=>{var d;if(Di.includes(r.type))return t(r);let n=e.getState(),i=se.local.getItem(Q.loginExpiresAt);if(!Ve((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 ge(de());let p=Date.now();return i-p<0&&!$e?setTimeout(()=>{$e=!0,e.dispatch(Xr())},1e3):($e&&($e=!1),Ni()),t(r)};o();o();function He(){return typeof sessionStorage!="undefined"}var ro=He()?(zn(),pe(jn)).default:(Yn(),pe(Kn)).default,no=He()?(Xn(),pe(Zn)).default:[],oo=He()?(to(),pe(eo)).default:e=>e;Ge();var re=(0,$t.configureStore)({reducer:ro,middleware:e=>e({serializableCheck:{ignoredActions:[...no,qr.type,Wr.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(On)}),Wu=(0,io.createSubscription)(re),qu=oo(re),ju=(0,$t.configureStore)({reducer:ce});o();o();o();o();o();o();o();o();o();o();L();o();o();L();o();o();o();var Zi=b(require("bignumber.js"));A();o();var Yi=require("@multiversx/sdk-core"),Ht=b(require("bignumber.js"));A();o();var zi=b(require("bignumber.js"));o();Ht.default.config({ROUNDING_MODE:Ht.default.ROUND_FLOOR});o();o();o();A();o();o();o();o();A();o();A();o();var Xi=require("@multiversx/sdk-core");A();o();var Te=require("@multiversx/sdk-core"),Qi=require("@multiversx/sdk-network-providers");A();o();o();var Ji=b(require("bignumber.js"));A();o();A();o();o();o();o();o();A();o();L();var ta=["reDelegateRewards","claimRewards","unBond"],ra=["wrapEgld","unwrapEgld"],na=["unStake"],oa=["unDelegate"];o();o();o();A();o();var sa=b(require("bignumber.js"));o();o();o();L();o();var ca=b(require("bignumber.js"));o();o();o();o();L();o();o();o();var pa=b(require("linkifyjs"));o();A();o();var ua=b(require("bignumber.js"));o();B();o();o();O();o();O();o();o();o();L();o();L();o();var da=b(require("bignumber.js"));A();L();o();L();o();var po=require("react");B();o();o();L();o();var ga=require("@multiversx/sdk-core/out"),ma=b(require("bignumber.js"));L();o();L();o();o();O();var MT=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];o();var uo=require("react");B();o();var Ta=require("react");L();var $T=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];var Ke=e=>e.transactions,ye=m(Ke,e=>e.signedTransactions),vy=m(Ke,e=>e.signTransactionsError),ky=m(Ke,e=>e.signTransactionsCancelMessage),Ye=e=>t=>Object.entries(t).reduce((r,[n,i])=>(e(i.status)&&(r[n]=i),r),{}),Ey=m(ye,Ye(wn)),Ly=m(ye,Ye(Fe)),Dy=m(ye,Ye(_e)),Ny=m(ye,Ye(bn)),Cy=m(Ke,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:w(x({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>Ut(r)))||[]})}),Ry=m(ye,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});ee();function ya(){return Kt(this,null,function*(){let e=re.getState(),t=Dn(e),r=fe(e),n=En(e);try{if(n==null&&r){let{data:i}=yield go.default.get(`${t}/accounts/${r}`);return re.dispatch(jr(i.shard)),i.shard}else return n}catch(i){return console.error(i),null}})}0&&(module.exports={getAccountShard});
1
+ "use strict";var go=Object.create;var le=Object.defineProperty,fo=Object.defineProperties,To=Object.getOwnPropertyDescriptor,yo=Object.getOwnPropertyDescriptors,ho=Object.getOwnPropertyNames,he=Object.getOwnPropertySymbols,xo=Object.getPrototypeOf,Ze=Object.prototype.hasOwnProperty,qt=Object.prototype.propertyIsEnumerable;var Wt=(e,t,r)=>t in e?le(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t)=>{for(var r in t||(t={}))Ze.call(t,r)&&Wt(e,r,t[r]);if(he)for(var r of he(t))qt.call(t,r)&&Wt(e,r,t[r]);return e},w=(e,t)=>fo(e,yo(t));var jt=(e,t)=>{var r={};for(var n in e)Ze.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&he)for(var n of he(e))t.indexOf(n)<0&&qt.call(e,n)&&(r[n]=e[n]);return r};var f=(e,t)=>()=>(e&&(t=e(e=0)),t);var xe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Y=(e,t)=>{for(var r in t)le(e,r,{get:t[r],enumerable:!0})},zt=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ho(t))!Ze.call(e,i)&&i!==r&&le(e,i,{get:()=>t[i],enumerable:!(n=To(t,i))||n.enumerable});return e};var b=(e,t,r)=>(r=e!=null?go(xo(e)):{},zt(t||!e||!e.__esModule?le(r,"default",{value:e,enumerable:!0}):r,e)),pe=e=>zt(le({},"__esModule",{value:!0}),e);var Kt=(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 Xt=xe(Se=>{"use strict";o();Se.byteLength=wo;Se.toByteArray=Ao;Se.fromByteArray=ko;var P=[],C=[],So=typeof Uint8Array!="undefined"?Uint8Array:Array,Xe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Z=0,Yt=Xe.length;Z<Yt;++Z)P[Z]=Xe[Z],C[Xe.charCodeAt(Z)]=Z;var Z,Yt;C["-".charCodeAt(0)]=62;C["_".charCodeAt(0)]=63;function Zt(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 wo(e){var t=Zt(e),r=t[0],n=t[1];return(r+n)*3/4-n}function bo(e,t,r){return(t+r)*3/4-r}function Ao(e){var t,r=Zt(e),n=r[0],i=r[1],l=new So(bo(e,n,i)),p=0,m=i>0?n-4:n,d;for(d=0;d<m;d+=4)t=C[e.charCodeAt(d)]<<18|C[e.charCodeAt(d+1)]<<12|C[e.charCodeAt(d+2)]<<6|C[e.charCodeAt(d+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return i===2&&(t=C[e.charCodeAt(d)]<<2|C[e.charCodeAt(d+1)]>>4,l[p++]=t&255),i===1&&(t=C[e.charCodeAt(d)]<<10|C[e.charCodeAt(d+1)]<<4|C[e.charCodeAt(d+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function Io(e){return P[e>>18&63]+P[e>>12&63]+P[e>>6&63]+P[e&63]}function vo(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(Io(n));return i.join("")}function ko(e){for(var t,r=e.length,n=r%3,i=[],l=16383,p=0,m=r-n;p<m;p+=l)i.push(vo(e,p,p+l>m?m:p+l));return n===1?(t=e[r-1],i.push(P[t>>2]+P[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(P[t>>10]+P[t>>4&63]+P[t<<2&63]+"=")),i.join("")}});var Jt=xe(Je=>{o();Je.read=function(e,t,r,n,i){var l,p,m=i*8-n-1,d=(1<<m)-1,T=d>>1,h=-7,y=r?i-1:0,k=r?-1:1,E=e[t+y];for(y+=k,l=E&(1<<-h)-1,E>>=-h,h+=m;h>0;l=l*256+e[t+y],y+=k,h-=8);for(p=l&(1<<-h)-1,l>>=-h,h+=n;h>0;p=p*256+e[t+y],y+=k,h-=8);if(l===0)l=1-T;else{if(l===d)return p?NaN:(E?-1:1)*(1/0);p=p+Math.pow(2,n),l=l-T}return(E?-1:1)*p*Math.pow(2,l-n)};Je.write=function(e,t,r,n,i,l){var p,m,d,T=l*8-i-1,h=(1<<T)-1,y=h>>1,k=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=n?0:l-1,q=n?1:-1,U=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+=k/d:t+=k*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+E]=m&255,E+=q,m/=256,i-=8);for(p=p<<i|m,T+=i;T>0;e[r+E]=p&255,E+=q,p/=256,T-=8);e[r+E-q]|=U*128}});var ur=xe(oe=>{"use strict";o();var Qe=Xt(),ne=Jt(),Qt=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;oe.Buffer=u;oe.SlowBuffer=Ro;oe.INSPECT_MAX_BYTES=50;var we=2147483647;oe.kMaxLength=we;u.TYPED_ARRAY_SUPPORT=Eo();!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 Eo(){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 V(e){if(e>we)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 nt(e)}return rr(e,t,r)}u.poolSize=8192;function rr(e,t,r){if(typeof e=="string")return Do(e,t);if(ArrayBuffer.isView(e))return No(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(M(e,ArrayBuffer)||e&&M(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(M(e,SharedArrayBuffer)||e&&M(e.buffer,SharedArrayBuffer)))return tt(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=Co(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 rr(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function nr(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 Lo(e,t,r){return nr(e),e<=0?V(e):t!==void 0?typeof r=="string"?V(e).fill(t,r):V(e).fill(t):V(e)}u.alloc=function(e,t,r){return Lo(e,t,r)};function nt(e){return nr(e),V(e<0?0:ot(e)|0)}u.allocUnsafe=function(e){return nt(e)};u.allocUnsafeSlow=function(e){return nt(e)};function Do(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=or(e,t)|0,n=V(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function et(e){for(var t=e.length<0?0:ot(e.length)|0,r=V(t),n=0;n<t;n+=1)r[n]=e[n]&255;return r}function No(e){if(M(e,Uint8Array)){var t=new Uint8Array(e);return tt(t.buffer,t.byteOffset,t.byteLength)}return et(e)}function tt(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 Co(e){if(u.isBuffer(e)){var t=ot(e.length)|0,r=V(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||it(e.length)?V(0):et(e);if(e.type==="Buffer"&&Array.isArray(e.data))return et(e.data)}function ot(e){if(e>=we)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+we.toString(16)+" bytes");return e|0}function Ro(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(M(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),M(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(M(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 or(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||M(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 rt(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:rt(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=or;function Po(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 Go(this,t,r);case"utf8":case"utf-8":return ar(this,t,r);case"ascii":return $o(this,t,r);case"latin1":case"binary":return Ho(this,t,r);case"base64":return Uo(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Wo(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}u.prototype._isBuffer=!0;function X(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)X(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)X(this,r,r+3),X(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)X(this,r,r+7),X(this,r+1,r+6),X(this,r+2,r+5),X(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?ar(this,0,t):Po.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=oe.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};Qt&&(u.prototype[Qt]=u.prototype.inspect);u.prototype.compare=function(t,r,n,i,l){if(M(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),h=t.slice(r,n),y=0;y<d;++y)if(T[y]!==h[y]){p=T[y],m=h[y];break}return p<m?-1:m<p?1:0};function ir(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,it(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:er(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):er(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function er(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(E,q){return l===1?E[q]:E.readUInt16BE(q*l)}var T;if(i){var h=-1;for(T=r;T<p;T++)if(d(e,T)===d(t,h===-1?0:T-h)){if(h===-1&&(h=T),T-h+1===m)return h*l}else h!==-1&&(T-=T-h),h=-1}else for(r+m>p&&(r=p-m),T=r;T>=0;T--){for(var y=!0,k=0;k<m;k++)if(d(e,T+k)!==d(t,k)){y=!1;break}if(y)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 ir(this,t,r,n,!0)};u.prototype.lastIndexOf=function(t,r,n){return ir(this,t,r,n,!1)};function Mo(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(it(m))return p;e[r+p]=m}return p}function Fo(e,t,r,n){return be(rt(t,e.length-r),e,r,n)}function _o(e,t,r,n){return be(zo(t),e,r,n)}function Oo(e,t,r,n){return be(pr(t),e,r,n)}function Bo(e,t,r,n){return be(Ko(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 Mo(this,t,r,n);case"utf8":case"utf-8":return Fo(this,t,r,n);case"ascii":case"latin1":case"binary":return _o(this,t,r,n);case"base64":return Oo(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Bo(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 Uo(e,t,r){return t===0&&r===e.length?Qe.fromByteArray(e):Qe.fromByteArray(e.slice(t,r))}function ar(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,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],T=e[i+2],(d&192)===128&&(T&192)===128&&(y=(l&15)<<12|(d&63)<<6|T&63,y>2047&&(y<55296||y>57343)&&(p=y));break;case 4:d=e[i+1],T=e[i+2],h=e[i+3],(d&192)===128&&(T&192)===128&&(h&192)===128&&(y=(l&15)<<18|(d&63)<<12|(T&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 Vo(n)}var tr=4096;function Vo(e){var t=e.length;if(t<=tr)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=tr));return r}function $o(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 Ho(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 Go(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+=Yo[e[l]];return i}function Wo(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 I(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||I(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||I(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||I(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||I(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||I(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||I(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||I(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||I(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||I(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||I(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||I(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||I(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||I(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||I(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||I(t,4,this.length),ne.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||I(t,4,this.length),ne.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||I(t,8,this.length),ne.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||I(t,8,this.length),ne.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 sr(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 cr(e,t,r,n,i){return t=+t,r=r>>>0,i||sr(e,t,r,4,34028234663852886e22,-34028234663852886e22),ne.write(e,t,r,n,23,4),r+4}u.prototype.writeFloatLE=function(t,r,n){return cr(this,t,r,!0,n)};u.prototype.writeFloatBE=function(t,r,n){return cr(this,t,r,!1,n)};function lr(e,t,r,n,i){return t=+t,r=r>>>0,i||sr(e,t,r,8,17976931348623157e292,-17976931348623157e292),ne.write(e,t,r,n,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,n){return lr(this,t,r,!0,n)};u.prototype.writeDoubleBE=function(t,r,n){return lr(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 qo=/[^+/0-9A-Za-z-_]/g;function jo(e){if(e=e.split("=")[0],e=e.trim().replace(qo,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function rt(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 zo(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function Ko(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 Qe.toByteArray(jo(e))}function be(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 M(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function it(e){return e!==e}var Yo=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 Tr=xe((Aa,fr)=>{o();var S=fr.exports={},F,_;function at(){throw new Error("setTimeout has not been defined")}function st(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?F=setTimeout:F=at}catch(e){F=at}try{typeof clearTimeout=="function"?_=clearTimeout:_=st}catch(e){_=st}})();function dr(e){if(F===setTimeout)return setTimeout(e,0);if((F===at||!F)&&setTimeout)return F=setTimeout,setTimeout(e,0);try{return F(e,0)}catch(t){try{return F.call(null,e,0)}catch(r){return F.call(this,e,0)}}}function Zo(e){if(_===clearTimeout)return clearTimeout(e);if((_===st||!_)&&clearTimeout)return _=clearTimeout,clearTimeout(e);try{return _(e)}catch(t){try{return _.call(null,e)}catch(r){return _.call(this,e)}}}var $=[],ie=!1,J,Ae=-1;function Xo(){!ie||!J||(ie=!1,J.length?$=J.concat($):Ae=-1,$.length&&mr())}function mr(){if(!ie){var e=dr(Xo);ie=!0;for(var t=$.length;t;){for(J=$,$=[];++Ae<t;)J&&J[Ae].run();Ae=-1,t=$.length}J=null,ie=!1,Zo(e)}}S.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];$.push(new gr(e,t)),$.length===1&&!ie&&dr(mr)};function gr(e,t){this.fun=e,this.array=t}gr.prototype.run=function(){this.fun.apply(null,this.array)};S.title="browser";S.browser=!0;S.env={};S.argv=[];S.version="";S.versions={};function H(){}S.on=H;S.addListener=H;S.once=H;S.off=H;S.removeListener=H;S.removeAllListeners=H;S.emit=H;S.prependListener=H;S.prependOnceListener=H;S.listeners=function(e){return[]};S.binding=function(e){throw new Error("process.binding is not supported")};S.cwd=function(){return"/"};S.chdir=function(e){throw new Error("process.chdir is not supported")};S.umask=function(){return 0}});var a,s,Ia,o=f(()=>{a=b(ur()),s=b(Tr()),Ia=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 yr=f(()=>{"use strict";o()});var hr=f(()=>{"use strict";o()});var xr=f(()=>{"use strict";o()});var Sr=f(()=>{"use strict";o()});var O=f(()=>{"use strict";o()});var wr=f(()=>{"use strict";o()});var br=f(()=>{"use strict";o()});var L=f(()=>{"use strict";o()});var Ar=f(()=>{"use strict";o()});var Ir=f(()=>{"use strict";o()});var B=f(()=>{"use strict";o();hr();xr();Sr();O();wr();br();L();Ar();Ir()});var ct,vr,Ga,kr,Wa,Er,qa,ja,za,Lr=f(()=>{"use strict";o();B();ct={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:"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://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:vr,egldLabel:Ga}=ct["devnet"],{chainId:kr,egldLabel:Wa}=ct["testnet"],{chainId:Er,egldLabel:qa}=ct["mainnet"],ja={["devnet"]:vr,["testnet"]:kr,["mainnet"]:Er},za={[vr]:"devnet",[kr]:"testnet",[Er]:"mainnet"}});var lt=f(()=>{"use strict";o()});var Dr=f(()=>{"use strict";o()});var Nr,pt=f(()=>{"use strict";o();Nr="transaction-status-toast-id"});var ut,dt,Cr,Ie,Rr,ae,A=f(()=>{"use strict";o();yr();Lr();lt();Dr();pt();ut=5e4,dt=1e9,Cr=1,Ie="logout",Rr="login",ae="0"});var ve,mt=f(()=>{"use strict";o();ve=()=>Date.now()/1e3});var Pr=f(()=>{"use strict";o()});var Mr=f(()=>{"use strict";o()});var Fr=f(()=>{"use strict";o();mt();Pr();Mr()});var ft={};Y(ft,{getItem:()=>Qo,localStorageKeys:()=>Q,removeItem:()=>ei,setItem:()=>Jo});var Q,gt,Jo,Qo,ei,ue=f(()=>{"use strict";o();Fr();Q={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},gt=typeof localStorage!="undefined",Jo=({key:e,data:t,expires:r})=>{!gt||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Qo=e=>{if(!gt)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:ve()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},ei=e=>{!gt||localStorage.removeItem(String(e))}});var Tt={};Y(Tt,{clear:()=>Ur,getItem:()=>Or,removeItem:()=>Br,setItem:()=>_r,storage:()=>ti});var _r,Or,Br,Ur,ti,Vr=f(()=>{"use strict";o();_r=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Or=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},Br=e=>sessionStorage.removeItem(String(e)),Ur=()=>sessionStorage.clear(),ti={setItem:_r,getItem:Or,removeItem:Br,clear:Ur}});var se,ke=f(()=>{"use strict";o();ue();Vr();se={session:Tt,local:ft}});var yt,v,Ee,G=f(()=>{"use strict";o();yt=require("@reduxjs/toolkit");A();v=(0,yt.createAction)(Ie),Ee=(0,yt.createAction)(Rr,e=>({payload:e}))});var xt,$r,Hr,Le,ht,Gr,Wr,ws,qr,jr,bs,As,Is,vs,ks,Es,zr,St=f(()=>{"use strict";o();xt=require("@multiversx/sdk-core"),$r=require("@reduxjs/toolkit"),Hr=require("redux-persist");A();ke();ue();G();Le={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:ae},ht={address:"",websocketEvent:null,accounts:{"":Le},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Gr=(0,$r.createSlice)({name:"accountInfoSlice",initialState:ht,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new xt.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:Le},e.shard=t.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,t)=>{let{address:r}=e;e.accounts[r].nonce=t.payload},setAccountShard:(e,t)=>{e.shard=t.payload},setLedgerAccount:(e,t)=>{e.ledgerAccount=t.payload},updateLedgerAccount:(e,t)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=t.payload.index,e.ledgerAccount.address=t.payload.address)},setWalletConnectAccount:(e,t)=>{e.walletConnectAccount=t.payload},setIsAccountLoading:(e,t)=>{e.isAccountLoading=t.payload,e.accountLoadingError=null},setAccountLoadingError:(e,t)=>{e.accountLoadingError=t.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,t)=>{e.websocketEvent={timestamp:Date.now(),message:t.payload}}},extraReducers:e=>{e.addCase(v,()=>(se.local.removeItem(Q.loginExpiresAt),ht)),e.addCase(Ee,(t,r)=>{let{address:n}=r.payload;t.address=n,t.publicKey=new xt.Address(n).hex()}),e.addCase(Hr.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:ht.accounts,t.publicKey=m})}}),{setAccount:Wr,setAddress:ws,setAccountNonce:qr,setAccountShard:jr,setLedgerAccount:bs,updateLedgerAccount:As,setWalletConnectAccount:Is,setIsAccountLoading:vs,setAccountLoadingError:ks,setWebsocketEvent:Es}=Gr.actions,zr=Gr.reducer});function de(){return new Date().setHours(new Date().getHours()+24)}function me(e){se.local.setItem({key:Q.loginExpiresAt,data:e,expires:e})}var wt=f(()=>{"use strict";o();ke();ue()});var Yr,Kr,Zr,Os,Bs,Us,Vs,$s,Hs,Xr,Gs,Jr,bt=f(()=>{"use strict";o();Yr=require("@reduxjs/toolkit");wt();O();G();Kr={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,isLoginSessionInvalid:!1},Zr=(0,Yr.createSlice)({name:"loginInfoSlice",initialState:Kr,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,()=>Kr),e.addCase(Ee,(t,r)=>{t.loginMethod=r.payload.loginMethod,me(de())})}}),{setLoginMethod:Os,setWalletConnectLogin:Bs,setLedgerLogin:Us,setTokenLogin:Vs,setTokenLoginSignature:$s,setWalletLogin:Hs,invalidateLoginSession:Xr,setLogoutRoute:Gs}=Zr.actions,Jr=Zr.reducer});var en,Qr,tn,zs,Ks,Ys,Zs,rn,At=f(()=>{"use strict";o();en=require("@reduxjs/toolkit");G();Qr={},tn=(0,en.createSlice)({name:"modalsSlice",initialState:Qr,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,()=>Qr)}}),{setTxSubmittedModal:zs,setNotificationModal:Ks,clearTxSubmittedModal:Ys,clearNotificationModal:Zs}=tn.actions,rn=tn.reducer});var nn=f(()=>{"use strict";o()});var on=f(()=>{"use strict";o();nn()});function It(e){return e[Math.floor(Math.random()*e.length)]}var an=f(()=>{"use strict";o()});var sn=f(()=>{"use strict";o();lt()});var cn=f(()=>{"use strict";o();on();an();sn()});var ln,pn,vt,ni,un,dc,mc,dn,kt=f(()=>{"use strict";o();ln=require("@reduxjs/toolkit"),pn=b(require("lodash.omit"));cn();vt={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},ni={network:vt,chainID:"-1"},un=(0,ln.createSlice)({name:"appConfig",initialState:ni,reducers:{initializeNetworkConfig:(e,t)=>{let r=It(t.payload.walletConnectBridgeAddresses),n=It(t.payload.walletConnectV2RelayAddresses),i=(0,pn.default)(t.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=w(x(x({},e.network),i),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:n})},setChainID:(e,t)=>{e.chainID=t.payload}}}),{initializeNetworkConfig:dc,setChainID:mc}=un.actions,dn=un.reducer});var mn,Et,gn,xc,Sc,wc,De,Ne=f(()=>{"use strict";o();mn=require("@reduxjs/toolkit");B();G();Et={isSigning:!1,signedSessions:{}},gn=(0,mn.createSlice)({name:"signedMessageInfoSliceState",initialState:Et,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:n,errorMessage:i}=t.payload;return w(x({},e),{errorMessage:i!=null?i:e.errorMessage,isSigning:n.status==="pending",signedSessions:w(x({},e.signedSessions),{[r]:n})})},setSignSessionState:(e,t)=>x(x({},e),t.payload),clearSignedMessageInfo:()=>Et},extraReducers:e=>{e.addCase(v,()=>Et)}}),{setSignSession:xc,clearSignedMessageInfo:Sc,setSignSessionState:wc}=gn.actions,De=gn.reducer});var Tn,yn,fn,hn,Dc,Nc,Cc,Rc,Pc,Mc,Ce,Re=f(()=>{"use strict";o();Tn=require("@reduxjs/toolkit"),yn=require("redux-persist");pt();B();mt();G();fn={customToasts:[],transactionToasts:[],failTransactionToast:null},hn=(0,Tn.createSlice)({name:"toastsSlice",initialState:fn,reducers:{addCustomToast:(e,t)=>{e.customToasts.push(w(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:ve(),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=w(x({},t.payload),{toastId:Nr})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(v,()=>fn),e.addCase(yn.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:Dc,removeCustomToast:Nc,addTransactionToast:Cc,removeTransactionToast:Rc,addFailTransactionToast:Pc,removeFailTransactionToast:Mc}=hn.actions,Ce=hn.reducer});var xn,Dt,Nt,Ct,oi,Lt,Sn,Bc,Uc,Vc,Pe,Me=f(()=>{"use strict";o();xn=require("@reduxjs/toolkit");G();Dt="Transaction failed",Nt="Transaction successful",Ct="Processing transaction",oi="Transaction submitted",Lt={},Sn=(0,xn.createSlice)({name:"transactionsInfo",initialState:Lt,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:n}=t.payload;r!=null&&(e[r]={errorMessage:(n==null?void 0:n.errorMessage)||Dt,successMessage:(n==null?void 0:n.successMessage)||Nt,processingMessage:(n==null?void 0:n.processingMessage)||Ct,submittedMessage:(n==null?void 0:n.submittedMessage)||oi,transactionDuration:n==null?void 0:n.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>Lt},extraReducers:e=>{e.addCase(v,()=>Lt)}}),{clearTransactionsInfo:Bc,setTransactionsDisplayInfo:Uc,clearTransactionsInfoForSessionId:Vc}=Sn.actions,Pe=Sn.reducer});function wn(e){return e!=null&&(mi(e)||yi(e))}function Fe(e){return e!=null&&(gi(e)||hi(e))}function _e(e){return e!=null&&(fi(e)||xi(e))}function bn(e){return e!=null&&Ti(e)}function mi(e){return e!=null&&ai.includes(e)}function gi(e){return e!=null&&si.includes(e)}function fi(e){return e!=null&&ci.includes(e)}function Ti(e){return e!=null&&li.includes(e)}function yi(e){return e!=null&&pi.includes(e)}function hi(e){return e!=null&&ui.includes(e)}function xi(e){return e!=null&&di.includes(e)}var ai,si,ci,li,pi,ui,di,Pt=f(()=>{"use strict";o();O();ai=["sent"],si=["success"],ci=["fail","cancelled","timedOut"],li=["timedOut"],pi=["pending"],ui=["success"],di=["fail","invalid"]});var An,In,ge,Si,vn,Yc,Zc,Xc,Jc,Qc,el,tl,rl,nl,ol,Oe,Be=f(()=>{"use strict";o();An=require("@reduxjs/toolkit"),In=require("redux-persist");O();Pt();G();ge={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},Si={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},vn=(0,An.createSlice)({name:"transactionsSlice",initialState:ge,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])||Si;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=ge.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,h,y,k;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(U=>U.hash===l?w(x({},U),{status:n,errorMessage:i}):U);let E=(h=(T=e.signedTransactions[r])==null?void 0:T.transactions)==null?void 0:h.every(U=>Fe(U.status)),q=(k=(y=e.signedTransactions[r])==null?void 0:y.transactions)==null?void 0:k.every(U=>_e(U.status));E&&(e.signedTransactions[r].status="success"),q&&(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=ge.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=ge.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload}},extraReducers:e=>{e.addCase(v,()=>ge),e.addCase(In.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 h=new Date(d),y=new Date;return y.setHours(y.getHours()+5),y-h>0||(m[d]=T),m},{});i!=null&&(t.customTransactionInformationForSessionId=i),n!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:Yc,updateSignedTransactions:Zc,setTransactionsToSign:Xc,clearAllTransactionsToSign:Jc,clearAllSignedTransactions:Qc,clearSignedTransaction:el,clearTransactionToSign:tl,setSignTransactionsError:rl,setSignTransactionsCancelMessage:nl,moveTransactionsToSignedState:ol}=vn.actions,Oe=vn.reducer});var ee=f(()=>{"use strict";o();St();bt();At();kt();Ne();Re();Me();Be()});var Vt=f(()=>{"use strict";o()});var Un,Bn,Vn,du,mu,gu,fu,Tu,yu,$n,Hn=f(()=>{"use strict";o();Un=require("@reduxjs/toolkit");G();Bn={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},Vn=(0,Un.createSlice)({name:"dappModalsSlice",initialState:Bn,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,()=>Bn)}}),{setDappModalVisibility:du,setDappModalHeaderVisibility:mu,setDappModalFooterVisibility:gu,setDappModalHeaderText:fu,setDappModalFooterText:Tu,setDappModalConfig:yu}=Vn.actions,$n=Vn.reducer});var Gn,Ri,Pi,ce,Ge=f(()=>{"use strict";o();Gn=require("@reduxjs/toolkit");Vt();St();Hn();bt();At();kt();Ne();Re();Me();Be();Ri={["account"]:zr,["dappModal"]:$n,["loginInfo"]:Jr,["modals"]:rn,["networkConfig"]:dn,["signedMessageInfo"]:De,["toasts"]:Ce,["transactionsInfo"]:Pe,["transactions"]:Oe},Pi=(e={})=>(0,Gn.combineReducers)(x(x({},Ri),e)),ce=Pi});var jn={};Y(jn,{default:()=>$i});function We(e,t=[]){return{key:e,version:1,storage:qn.default,blacklist:t}}var z,Wn,qn,Mi,Fi,_i,Oi,Bi,Ui,Vi,$i,zn=f(()=>{"use strict";o();z=require("redux-persist"),Wn=b(require("redux-persist/lib/storage")),qn=b(require("redux-persist/lib/storage/session"));Ge();ee();Ne();Re();Me();Be();Vt();Mi={2:e=>w(x({},e),{networkConfig:vt})};Fi=We("sdk-dapp-transactionsInfo"),_i=We("sdk-dapp-transactions",["transactionsToSign"]),Oi=We("sdk-dapp-toasts"),Bi=We("sdk-dapp-signedMessageInfo"),Ui={key:"sdk-dapp-store",version:2,storage:Wn.default,whitelist:["account","loginInfo","modals","networkConfig"],migrate:(0,z.createMigrate)(Mi,{debug:!1})},Vi={["toasts"]:(0,z.persistReducer)(Oi,Ce),["transactions"]:(0,z.persistReducer)(_i,Oe),["transactionsInfo"]:(0,z.persistReducer)(Fi,Pe),["signedMessageInfo"]:(0,z.persistReducer)(Bi,De)},$i=(0,z.persistReducer)(Ui,ce(Vi))});var Kn={};Y(Kn,{default:()=>Hi});var Hi,Yn=f(()=>{"use strict";o();Ge();Hi=ce()});var Zn={};Y(Zn,{default:()=>Wi});var R,Gi,Wi,Xn=f(()=>{"use strict";o();R=require("redux-persist"),Gi=[R.FLUSH,R.REHYDRATE,R.PAUSE,R.PERSIST,R.PURGE,R.REGISTER],Wi=Gi});var eo={};Y(eo,{default:()=>Qn});function Qn(e){return(0,Jn.persistStore)(e)}var Jn,to=f(()=>{"use strict";o();Jn=require("redux-persist")});var ha={};Y(ha,{getAccountShard:()=>ya});module.exports=pe(ha);o();var mo=b(require("axios"));o();o();ee();o();var kn=b(require("lodash.isequal")),Ue=require("reselect");B();var g=(0,Ue.createSelectorCreator)(Ue.defaultMemoize,kn.default),Ve=(e,t)=>e!=""&&Boolean(t);var W=e=>e.account,fe=g(W,e=>e.address),Mt=g(W,fe,(e,t)=>t in e.accounts?e.accounts[t]:Le),xl=g(W,Mt,(e,t)=>{let i=e,{accounts:r}=i,n=jt(i,["accounts"]);return w(x({},n),{account:t})}),Sl=g(Mt,e=>e.balance),wl=g(Mt,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),En=g(W,e=>e.shard),bl=g(W,e=>e.ledgerAccount),Al=g(W,e=>e.walletConnectAccount),Il=g(W,e=>e.isAccountLoading),vl=g(W,e=>e.accountLoadingError),kl=g(W,e=>e.websocketEvent);o();var j=e=>e.loginInfo,Nl=g(j,e=>e.loginMethod),Cl=g(j,fe,(e,t)=>Ve(e.loginMethod,t)),Rl=g(j,e=>e.walletConnectLogin),Pl=g(j,e=>e.ledgerLogin),Ml=g(j,e=>e.walletLogin),Fl=g(j,e=>e.isLoginSessionInvalid),_l=g(j,e=>e.tokenLogin),Ol=g(j,e=>e.logoutRoute);o();var Ln=e=>e.modals,Vl=g(Ln,e=>e.txSubmittedModal),$l=g(Ln,e=>e.notificationModal);o();var te=e=>e.networkConfig,Wl=g(te,e=>e.chainID),ql=g(te,e=>e.network.walletConnectBridgeAddress),jl=g(te,e=>e.network.walletConnectV2RelayAddress),zl=g(te,e=>e.network.walletConnectV2ProjectId),Kl=g(te,e=>e.network.walletConnectV2Options),Yl=g(te,e=>e.network.walletConnectDeepLink),Ft=g(te,e=>e.network),Dn=g(Ft,e=>e.apiAddress),Nn=g(Ft,e=>e.explorerAddress),Zl=g(Ft,e=>e.egldLabel);o();var _t=e=>e.signedMessageInfo,Ql=g(_t,e=>e.isSigning),ep=g(_t,e=>e.errorMessage),tp=g(_t,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]});o();var Ot=e=>e.toasts,op=g(Ot,e=>e.customToasts),ip=g(Ot,e=>e.transactionToasts),ap=g(Ot,e=>e.failTransactionToast);o();ee();var Cn={errorMessage:Dt,successMessage:Nt,processingMessage:Ct},wi=e=>e.transactionsInfo,pp=g(wi,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||Cn);o();o();var N=require("@multiversx/sdk-core");A();o();function Bt(e){try{return a.Buffer.from(e,"base64").toString()===atob(e)}catch(t){return!1}}function Ut(e){var i,l,p;let{data:t}=e,r=Bt(t!=null?t:"")?N.TransactionPayload.fromEncoded(t):new N.TransactionPayload(t),n=new N.Transaction(x({value:e.value.valueOf(),data:r,nonce:e.nonce.valueOf(),receiver:new N.Address(e.receiver),sender:new N.Address(e.sender),gasLimit:(i=e.gasLimit.valueOf())!=null?i:ut,gasPrice:(l=e.gasPrice.valueOf())!=null?l:dt,chainID:e.chainID.valueOf(),version:new N.TransactionVersion((p=e.version)!=null?p:Cr)},e.options?{options:new N.TransactionOptions(e.options)}:{}));return n.applySignature({hex:()=>e.signature||""},new N.Address(e.sender)),n}o();Pt();o();var Ai=b(require("bignumber.js"));B();o();o();o();o();var vi=require("@multiversx/sdk-core"),ki=b(require("bignumber.js"));O();o();var Ii=require("@multiversx/sdk-core");o();o();o();var Li=require("@multiversx/sdk-core/out");o();A();o();var Fn=require("@multiversx/sdk-core");B();o();o();o();o();O();o();o();var $t=require("@reduxjs/toolkit"),io=require("react-redux/lib/utils/Subscription");ee();o();var _n=b(require("lodash.throttle"));A();ee();wt();ke();ue();var Di=[Ie],$e=!1,Ni=(0,_n.default)(()=>{me(de())},5e3),On=e=>t=>r=>{var d;if(Di.includes(r.type))return t(r);let n=e.getState(),i=se.local.getItem(Q.loginExpiresAt);if(!Ve((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 me(de());let p=Date.now();return i-p<0&&!$e?setTimeout(()=>{$e=!0,e.dispatch(Xr())},1e3):($e&&($e=!1),Ni()),t(r)};o();o();function He(){return typeof sessionStorage!="undefined"}var ro=He()?(zn(),pe(jn)).default:(Yn(),pe(Kn)).default,no=He()?(Xn(),pe(Zn)).default:[],oo=He()?(to(),pe(eo)).default:e=>e;Ge();var re=(0,$t.configureStore)({reducer:ro,middleware:e=>e({serializableCheck:{ignoredActions:[...no,qr.type,Wr.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(On)}),Wu=(0,io.createSubscription)(re),qu=oo(re),ju=(0,$t.configureStore)({reducer:ce});o();o();o();o();o();o();o();o();o();o();L();o();o();L();o();o();o();var Zi=b(require("bignumber.js"));A();o();var Yi=require("@multiversx/sdk-core"),Ht=b(require("bignumber.js"));A();o();var zi=b(require("bignumber.js"));o();Ht.default.config({ROUNDING_MODE:Ht.default.ROUND_FLOOR});o();o();o();A();o();o();o();o();A();o();A();o();var Xi=require("@multiversx/sdk-core");A();o();var Te=require("@multiversx/sdk-core"),Qi=require("@multiversx/sdk-network-providers");A();o();o();var Ji=b(require("bignumber.js"));A();o();A();o();o();o();o();o();A();o();L();var ta=["reDelegateRewards","claimRewards","unBond"],ra=["wrapEgld","unwrapEgld"],na=["unStake"],oa=["unDelegate"];o();o();o();A();o();var sa=b(require("bignumber.js"));o();o();o();L();o();var ca=b(require("bignumber.js"));o();o();o();o();L();o();o();o();var pa=b(require("linkifyjs"));o();A();o();var ua=b(require("bignumber.js"));o();B();o();o();O();o();O();o();o();o();L();o();L();o();var da=b(require("bignumber.js"));A();L();o();L();o();var po=require("react");B();o();o();L();o();var ma=require("@multiversx/sdk-core/out"),ga=b(require("bignumber.js"));L();o();L();o();o();O();var MT=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];o();var uo=require("react");B();o();var Ta=require("react");L();var $T=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];var Ke=e=>e.transactions,ye=g(Ke,e=>e.signedTransactions),vy=g(Ke,e=>e.signTransactionsError),ky=g(Ke,e=>e.signTransactionsCancelMessage),Ye=e=>t=>Object.entries(t).reduce((r,[n,i])=>(e(i.status)&&(r[n]=i),r),{}),Ey=g(ye,Ye(wn)),Ly=g(ye,Ye(Fe)),Dy=g(ye,Ye(_e)),Ny=g(ye,Ye(bn)),Cy=g(Ke,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:w(x({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>Ut(r)))||[]})}),Ry=g(ye,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});ee();function ya(){return Kt(this,null,function*(){let e=re.getState(),t=Dn(e),r=fe(e),n=En(e);try{if(n==null&&r){let{data:i}=yield mo.default.get(`${t}/accounts/${r}`);return re.dispatch(jr(i.shard)),i.shard}else return n}catch(i){return console.error(i),null}})}0&&(module.exports={getAccountShard});
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *