@multiversx/sdk-dapp 2.10.4 → 2.10.5

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 (422) hide show
  1. package/README.md +4 -0
  2. package/UI/DappModal/hooks/index.js +1 -1
  3. package/UI/DappModal/hooks/useDappModal.js +1 -1
  4. package/UI/DappModal/index.js +1 -1
  5. package/UI/ExplorerLink/ExplorerLink.js +1 -1
  6. package/UI/ExplorerLink/index.js +1 -1
  7. package/UI/ModalContainer/ModalContainer.js +1 -1
  8. package/UI/ModalContainer/index.js +1 -1
  9. package/UI/NotificationModal/index.js +1 -1
  10. package/UI/Progress/index.d.ts +2 -2
  11. package/UI/Progress/index.js +1 -1
  12. package/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
  13. package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
  14. package/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
  15. package/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
  16. package/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
  17. package/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
  18. package/UI/SignTransactionsModals/SignWithOperaModal/index.js +1 -1
  19. package/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +1 -1
  20. package/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
  21. package/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
  22. package/UI/SignTransactionsModals/components/TransactionStatusToast.js +1 -1
  23. package/UI/SignTransactionsModals/components/index.js +1 -1
  24. package/UI/SignTransactionsModals/index.js +1 -1
  25. package/UI/TokenDetails/index.js +1 -1
  26. package/UI/TransactionDetails/TransactionDetails.js +1 -1
  27. package/UI/TransactionDetails/components/TransactionDetailsBody.js +1 -1
  28. package/UI/TransactionDetails/components/index.js +1 -1
  29. package/UI/TransactionDetails/index.js +1 -1
  30. package/UI/TransactionInfo/TransactionInfo.js +1 -1
  31. package/UI/TransactionInfo/components/AddressDetailItem/AddressDetailitem.js +1 -1
  32. package/UI/TransactionInfo/components/AddressDetailItem/index.js +1 -1
  33. package/UI/TransactionInfo/components/EventsList/EventsList.js +1 -1
  34. package/UI/TransactionInfo/components/EventsList/index.js +1 -1
  35. package/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +1 -1
  36. package/UI/TransactionInfo/components/NonceMessage/index.js +1 -1
  37. package/UI/TransactionInfo/components/OperationsList/OperationList.js +1 -1
  38. package/UI/TransactionInfo/components/OperationsList/components/DetailedItem.js +1 -1
  39. package/UI/TransactionInfo/components/OperationsList/components/OperationBlock.js +1 -1
  40. package/UI/TransactionInfo/components/OperationsList/components/OperationRow.js +1 -1
  41. package/UI/TransactionInfo/components/OperationsList/components/OperationText.js +1 -1
  42. package/UI/TransactionInfo/components/OperationsList/components/OperationToken.js +1 -1
  43. package/UI/TransactionInfo/components/OperationsList/components/index.js +1 -1
  44. package/UI/TransactionInfo/components/OperationsList/index.js +1 -1
  45. package/UI/TransactionInfo/components/ScResultsList/ScResultsList.js +1 -1
  46. package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/ResultHash.js +1 -1
  47. package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/index.js +1 -1
  48. package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/ResultReceiver.js +1 -1
  49. package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/index.js +1 -1
  50. package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/ResultSender.js +1 -1
  51. package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/index.js +1 -1
  52. package/UI/TransactionInfo/components/ScResultsList/index.js +1 -1
  53. package/UI/TransactionInfo/components/ScrDetailItem/ScrDetailItem.js +1 -1
  54. package/UI/TransactionInfo/components/ScrDetailItem/index.js +1 -1
  55. package/UI/TransactionInfo/components/TransactionAction/TransactionAction.js +1 -1
  56. package/UI/TransactionInfo/components/TransactionAction/components/ActionText/index.js +1 -1
  57. package/UI/TransactionInfo/components/TransactionAction/components/ActionToken.js +1 -1
  58. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionCollection.js +1 -1
  59. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionNft.js +1 -1
  60. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionToken.js +1 -1
  61. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/index.js +1 -1
  62. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/index.js +1 -1
  63. package/UI/TransactionInfo/components/TransactionAction/components/index.js +1 -1
  64. package/UI/TransactionInfo/components/TransactionAction/index.js +1 -1
  65. package/UI/TransactionInfo/components/TransactionLogs/TransactionLogs.js +1 -1
  66. package/UI/TransactionInfo/components/TransactionLogs/index.js +1 -1
  67. package/UI/TransactionInfo/components/TransactionStatus/TransactionStatus.js +1 -1
  68. package/UI/TransactionInfo/components/TransactionStatus/index.js +1 -1
  69. package/UI/TransactionInfo/components/index.js +1 -1
  70. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/TransactionInfoFee.js +1 -1
  71. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/index.js +1 -1
  72. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/TransactionInfoFrom.js +1 -1
  73. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/index.js +1 -1
  74. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/TransactionInfoMethod.js +1 -1
  75. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/index.js +1 -1
  76. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/TransactionInfoMiniblock.js +1 -1
  77. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/index.js +1 -1
  78. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +1 -1
  79. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +1 -1
  80. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/TransactionInfoScResults.js +1 -1
  81. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/index.js +1 -1
  82. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/TransactionInfoStatus.js +1 -1
  83. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/index.js +1 -1
  84. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/TransactionInfoTo.js +1 -1
  85. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/index.js +1 -1
  86. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/TransactionInfoTokenOperations.js +1 -1
  87. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/index.js +1 -1
  88. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/TransactionInfoValue.js +1 -1
  89. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/index.js +1 -1
  90. package/UI/TransactionInfo/components/transactionInfoFields/index.js +1 -1
  91. package/UI/TransactionInfo/index.js +1 -1
  92. package/UI/TransactionsTable/TransactionsTable.js +1 -1
  93. package/UI/TransactionsTable/components/LockedTokenAddressIcon.js +1 -1
  94. package/UI/TransactionsTable/components/TransactionHash.js +1 -1
  95. package/UI/TransactionsTable/components/TransactionIcon.js +1 -1
  96. package/UI/TransactionsTable/components/TransactionReceiver.js +1 -1
  97. package/UI/TransactionsTable/components/TransactionRow.js +1 -1
  98. package/UI/TransactionsTable/components/TransactionSender.js +1 -1
  99. package/UI/TransactionsTable/components/TransactionShardsTransition.js +1 -1
  100. package/UI/TransactionsTable/components/TransactionValue/TransactionValue.js +1 -1
  101. package/UI/TransactionsTable/components/TransactionValue/index.js +1 -1
  102. package/UI/TransactionsTable/components/index.js +1 -1
  103. package/UI/TransactionsTable/index.js +1 -1
  104. package/UI/TransactionsToastList/TransactionsToastList.js +1 -1
  105. package/UI/TransactionsToastList/components/CustomToast/CustomToast.js +1 -1
  106. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +1 -1
  107. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +1 -1
  108. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +1 -1
  109. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +1 -1
  110. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +1 -1
  111. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +1 -1
  112. package/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +1 -1
  113. package/UI/TransactionsToastList/components/CustomToast/components/index.js +1 -1
  114. package/UI/TransactionsToastList/components/CustomToast/helpers/index.js +1 -1
  115. package/UI/TransactionsToastList/components/CustomToast/helpers/useMemoizedCloseButton.js +1 -1
  116. package/UI/TransactionsToastList/components/CustomToast/index.js +1 -1
  117. package/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +1 -1
  118. package/UI/TransactionsToastList/components/TransactionToast/components/TransactionToastContent.js +1 -1
  119. package/UI/TransactionsToastList/components/TransactionToast/components/index.js +1 -1
  120. package/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.d.ts +1 -1
  121. package/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +1 -1
  122. package/UI/TransactionsToastList/components/TransactionToast/index.js +1 -1
  123. package/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
  124. package/UI/TransactionsToastList/components/index.js +1 -1
  125. package/UI/TransactionsToastList/index.js +1 -1
  126. package/UI/extension/ExtensionLoginButton/index.js +1 -1
  127. package/UI/index.js +1 -1
  128. package/UI/ledger/LedgerLoginButton/index.js +1 -1
  129. package/UI/ledger/LedgerLoginContainer/AddressRow.js +1 -1
  130. package/UI/ledger/LedgerLoginContainer/AddressTable.js +1 -1
  131. package/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +1 -1
  132. package/UI/ledger/LedgerLoginContainer/index.js +1 -1
  133. package/UI/ledger/index.js +1 -1
  134. package/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
  135. package/UI/pages/UnlockPage/index.js +1 -1
  136. package/UI/pages/index.js +1 -1
  137. package/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
  138. package/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
  139. package/UI/walletConnect/index.js +1 -1
  140. package/UI/webWallet/WebWalletLoginButton/index.js +1 -1
  141. package/__chunks__/{chunk-PRWM5NXO.js → chunk-23AR74JT.js} +2 -2
  142. package/__chunks__/{chunk-VKDC3IWB.js → chunk-2ISPMCOR.js} +2 -2
  143. package/__chunks__/{chunk-5BCZMVXS.js → chunk-2IYNHVJL.js} +1 -1
  144. package/__chunks__/{chunk-ZT7BDVKR.js → chunk-2ZNMV4CY.js} +2 -2
  145. package/__chunks__/{chunk-33OCKJAV.js → chunk-3ICTRNAJ.js} +2 -2
  146. package/__chunks__/{chunk-URS4GMMU.js → chunk-3KCO4MXM.js} +2 -2
  147. package/__chunks__/{chunk-LYXQ7CIO.js → chunk-3NU4LLZB.js} +2 -2
  148. package/__chunks__/chunk-5HMS5KVK.js +2 -0
  149. package/__chunks__/{chunk-4RF32HNF.js → chunk-5SKFKZCR.js} +2 -2
  150. package/__chunks__/{chunk-VHYGEFUQ.js → chunk-5V6VYXL3.js} +2 -2
  151. package/__chunks__/{chunk-B22GF6DM.js → chunk-7REPD67L.js} +2 -2
  152. package/__chunks__/{chunk-LNJVLMB7.js → chunk-ARDY274Z.js} +2 -2
  153. package/__chunks__/chunk-ASAQ62V4.js +2 -0
  154. package/__chunks__/chunk-BUZJT76L.js +2 -0
  155. package/__chunks__/{chunk-CEULNEJE.js → chunk-C2YQPUWD.js} +2 -2
  156. package/__chunks__/{chunk-O6T3AYZU.js → chunk-C6JDAMLX.js} +2 -2
  157. package/__chunks__/{chunk-5XJEQUOW.js → chunk-CDOYWSYO.js} +2 -2
  158. package/__chunks__/{chunk-HKB7EFMV.js → chunk-CL4PMPHN.js} +2 -2
  159. package/__chunks__/{chunk-EUVACHJE.js → chunk-E4JTETZW.js} +2 -2
  160. package/__chunks__/{chunk-SDJZA4DK.js → chunk-FQGWBA4W.js} +2 -2
  161. package/__chunks__/chunk-FSGZYLZK.js +2 -0
  162. package/__chunks__/chunk-GVOVWBXS.js +2 -0
  163. package/__chunks__/{chunk-5SWCMULI.js → chunk-H7DVPZUN.js} +2 -2
  164. package/__chunks__/{chunk-KPWJNRVA.js → chunk-KL6JA2LY.js} +2 -2
  165. package/__chunks__/{chunk-V7L5LB27.js → chunk-LF2JB3GC.js} +2 -2
  166. package/__chunks__/{chunk-GHAQFK3S.js → chunk-MLWNORHX.js} +2 -2
  167. package/__chunks__/{chunk-7APG4MX7.js → chunk-MRHZ6VXL.js} +2 -2
  168. package/__chunks__/{chunk-UFHWS5AW.js → chunk-NVEJH4VD.js} +2 -2
  169. package/__chunks__/{chunk-JSSHU3EZ.js → chunk-OGWDYJ7D.js} +2 -2
  170. package/__chunks__/{chunk-IUPGQFMH.js → chunk-OSI6YIMO.js} +2 -2
  171. package/__chunks__/chunk-PO7P2NDG.js +2 -0
  172. package/__chunks__/{chunk-IKECFSKY.js → chunk-QDZ54HMC.js} +2 -2
  173. package/__chunks__/{chunk-XVSYJ5G4.js → chunk-QY35GWQL.js} +2 -2
  174. package/__chunks__/{chunk-XLC5AYSW.js → chunk-R3HRFF5X.js} +2 -2
  175. package/__chunks__/{chunk-S5MYJVLY.js → chunk-RCHECCGP.js} +2 -2
  176. package/__chunks__/chunk-TKIIHBF2.js +2 -0
  177. package/__chunks__/{chunk-NUIKMJXU.js → chunk-TMJYZR6V.js} +2 -2
  178. package/__chunks__/chunk-UFPATSSG.js +2 -0
  179. package/__chunks__/{chunk-WT2TPB6D.js → chunk-UQF6GCBQ.js} +2 -2
  180. package/__chunks__/chunk-WQMPD53F.js +2 -0
  181. package/__chunks__/{chunk-KV42JGDN.js → chunk-XAL5IR73.js} +2 -2
  182. package/__chunks__/chunk-XAQNBFSL.js +2 -0
  183. package/__chunks__/{chunk-XZT4X522.js → chunk-XNPGGZNV.js} +2 -2
  184. package/__commonjs/UI/DappModal/hooks/index.js +4 -4
  185. package/__commonjs/UI/DappModal/hooks/useDappModal.js +4 -4
  186. package/__commonjs/UI/DappModal/index.js +1 -1
  187. package/__commonjs/UI/ModalContainer/ModalContainer.js +1 -1
  188. package/__commonjs/UI/ModalContainer/index.js +1 -1
  189. package/__commonjs/UI/NotificationModal/index.js +1 -1
  190. package/__commonjs/UI/Progress/index.js +2 -2
  191. package/__commonjs/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
  192. package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
  193. package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/index.js +10 -10
  194. package/__commonjs/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
  195. package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/index.js +10 -10
  196. package/__commonjs/UI/SignTransactionsModals/SignWithOperaModal/index.js +10 -10
  197. package/__commonjs/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +8 -8
  198. package/__commonjs/UI/SignTransactionsModals/components/ConfirmationScreen.js +10 -10
  199. package/__commonjs/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +12 -12
  200. package/__commonjs/UI/SignTransactionsModals/components/TransactionStatusToast.js +8 -8
  201. package/__commonjs/UI/SignTransactionsModals/components/index.js +10 -10
  202. package/__commonjs/UI/SignTransactionsModals/index.js +1 -1
  203. package/__commonjs/UI/TransactionInfo/TransactionInfo.js +1 -1
  204. package/__commonjs/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +1 -1
  205. package/__commonjs/UI/TransactionInfo/components/NonceMessage/index.js +1 -1
  206. package/__commonjs/UI/TransactionInfo/components/index.js +40 -40
  207. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +4 -4
  208. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +4 -4
  209. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/index.js +1 -1
  210. package/__commonjs/UI/TransactionInfo/index.js +1 -1
  211. package/__commonjs/UI/TransactionsTable/TransactionsTable.js +16 -16
  212. package/__commonjs/UI/TransactionsTable/index.js +17 -17
  213. package/__commonjs/UI/TransactionsToastList/TransactionsToastList.js +21 -21
  214. package/__commonjs/UI/TransactionsToastList/components/CustomToast/CustomToast.js +1 -1
  215. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +1 -1
  216. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +1 -1
  217. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +1 -1
  218. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +1 -1
  219. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +1 -1
  220. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +1 -1
  221. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/index.js +1 -1
  222. package/__commonjs/UI/TransactionsToastList/components/CustomToast/index.js +1 -1
  223. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +22 -22
  224. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +6 -6
  225. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/index.js +22 -22
  226. package/__commonjs/UI/TransactionsToastList/components/TransactionToastGuard.js +17 -17
  227. package/__commonjs/UI/TransactionsToastList/components/index.js +20 -20
  228. package/__commonjs/UI/TransactionsToastList/index.js +21 -21
  229. package/__commonjs/UI/index.js +73 -73
  230. package/__commonjs/UI/ledger/LedgerLoginButton/index.js +2 -2
  231. package/__commonjs/UI/ledger/LedgerLoginContainer/AddressTable.js +4 -4
  232. package/__commonjs/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +1 -1
  233. package/__commonjs/UI/ledger/LedgerLoginContainer/index.js +15 -15
  234. package/__commonjs/UI/ledger/index.js +4 -4
  235. package/__commonjs/UI/operaWallet/OperaWalletLoginButton/index.js +4 -4
  236. package/__commonjs/UI/pages/UnlockPage/index.js +1 -1
  237. package/__commonjs/UI/pages/index.js +1 -1
  238. package/__commonjs/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
  239. package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/index.js +4 -4
  240. package/__commonjs/UI/walletConnect/index.js +1 -1
  241. package/__commonjs/UI/webWallet/WebWalletLoginButton/index.js +7 -7
  242. package/__commonjs/__mocks__/index.js +5 -5
  243. package/__commonjs/__mocks__/utils/index.js +5 -5
  244. package/__commonjs/__mocks__/utils/renderWithProvider.js +5 -5
  245. package/__commonjs/components/LogoutListener/LogoutListener.js +1 -1
  246. package/__commonjs/components/LogoutListener/helpers/index.js +1 -1
  247. package/__commonjs/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +3 -3
  248. package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogout.js +3 -3
  249. package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +11 -11
  250. package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +11 -11
  251. package/__commonjs/components/LogoutListener/index.js +1 -1
  252. package/__commonjs/components/TransactionStatusToast/FailedTransactionStatusToast.js +8 -8
  253. package/__commonjs/components/TransactionsTracker/TransactionTracker.js +1 -1
  254. package/__commonjs/components/TransactionsTracker/index.js +1 -1
  255. package/__commonjs/components/TransactionsTracker/useTransactionsTracker.js +3 -3
  256. package/__commonjs/hooks/index.js +3 -3
  257. package/__commonjs/hooks/login/index.js +5 -5
  258. package/__commonjs/hooks/login/useLedgerLogin.js +1 -1
  259. package/__commonjs/hooks/login/useWebWalletLogin.js +1 -1
  260. package/__commonjs/utils/index.js +2 -2
  261. package/__commonjs/utils/math.js +1 -1
  262. package/__commonjs/utils/progress/getRemainingValue.js +9 -0
  263. package/__commonjs/utils/progress/index.js +9 -0
  264. package/__commonjs/utils/sanitizeCallbackUrl.js +1 -1
  265. package/__commonjs/wrappers/DappProvider/CustomComponents.js +5 -5
  266. package/__commonjs/wrappers/DappProvider/index.js +6 -6
  267. package/__commonjs/wrappers/index.js +1 -1
  268. package/__mocks__/index.js +1 -1
  269. package/__mocks__/utils/index.js +1 -1
  270. package/__mocks__/utils/renderWithProvider.js +1 -1
  271. package/apiCalls/accounts/getAccountFromApi.js +1 -1
  272. package/apiCalls/accounts/index.js +1 -1
  273. package/apiCalls/configuration/getNetworkConfig.js +1 -1
  274. package/apiCalls/configuration/index.js +1 -1
  275. package/apiCalls/getScamAddressData.js +1 -1
  276. package/apiCalls/index.js +1 -1
  277. package/apiCalls/transactions/getTransactionsByHashes.js +1 -1
  278. package/apiCalls/transactions/index.js +1 -1
  279. package/apiCalls/transactions/sendSignedTransactions.js +1 -1
  280. package/apiCalls/utils/getCleanApiAddress.js +1 -1
  281. package/apiCalls/utils/index.js +1 -1
  282. package/components/LogoutListener/LogoutListener.js +1 -1
  283. package/components/LogoutListener/helpers/index.js +1 -1
  284. package/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
  285. package/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
  286. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
  287. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
  288. package/components/LogoutListener/index.js +1 -1
  289. package/components/ProviderInitializer.js +1 -1
  290. package/components/TransactionSender/TransactionSender.js +1 -1
  291. package/components/TransactionSender/index.js +1 -1
  292. package/components/TransactionStatusToast/FailedTransactionStatusToast.js +1 -1
  293. package/components/TransactionsTracker/TransactionTracker.js +1 -1
  294. package/components/TransactionsTracker/index.js +1 -1
  295. package/components/TransactionsTracker/useTransactionsTracker.js +1 -1
  296. package/hooks/account/index.js +1 -1
  297. package/hooks/account/useGetAccount.js +1 -1
  298. package/hooks/account/useGetAccountInfo.js +1 -1
  299. package/hooks/account/useGetIsLoggedIn.js +1 -1
  300. package/hooks/account/useGetLoginInfo.js +1 -1
  301. package/hooks/account/useGetWebsocketEvent.js +1 -1
  302. package/hooks/index.js +1 -1
  303. package/hooks/login/index.js +1 -1
  304. package/hooks/login/useExtensionLogin.js +1 -1
  305. package/hooks/login/useLedgerLogin.js +1 -1
  306. package/hooks/login/useLoginService.js +1 -1
  307. package/hooks/login/useOperaLogin.js +1 -1
  308. package/hooks/login/useWalletConnectLogin.js +1 -1
  309. package/hooks/login/useWalletConnectV2Login.js +1 -1
  310. package/hooks/login/useWebWalletLogin.js +1 -1
  311. package/hooks/signMessage/index.js +1 -1
  312. package/hooks/signMessage/useGetLastSignedMessageSession.js +1 -1
  313. package/hooks/signMessage/useGetSignMessageSession.js +1 -1
  314. package/hooks/signMessage/useGetSignedMessageStatus.js +1 -1
  315. package/hooks/signMessage/useSignMessage.js +1 -1
  316. package/hooks/transactions/helpers/getShouldMoveTransactionsToSignedState.js +1 -1
  317. package/hooks/transactions/helpers/index.js +1 -1
  318. package/hooks/transactions/helpers/useSetTransactionNonces.js +1 -1
  319. package/hooks/transactions/index.js +1 -1
  320. package/hooks/transactions/useCheckTransactionStatus/checkBatch.js +1 -1
  321. package/hooks/transactions/useCheckTransactionStatus/index.js +1 -1
  322. package/hooks/transactions/useCheckTransactionStatus/useCheckTransactionStatus.js +1 -1
  323. package/hooks/transactions/useGetActiveTransactionsStatus.js +1 -1
  324. package/hooks/transactions/useGetFailedTransactions.js +1 -1
  325. package/hooks/transactions/useGetLastPendingTransactionHash.js +1 -1
  326. package/hooks/transactions/useGetPendingTransactions.js +1 -1
  327. package/hooks/transactions/useGetSignTransactionsError.js +1 -1
  328. package/hooks/transactions/useGetSignedTransactions.js +1 -1
  329. package/hooks/transactions/useGetSuccessfulTransactions.js +1 -1
  330. package/hooks/transactions/useGetTokenDetails.js +1 -1
  331. package/hooks/transactions/useGetTransactionDisplayInfo.js +1 -1
  332. package/hooks/transactions/useParseSignedTransactions.js +1 -1
  333. package/hooks/transactions/useSignTransactions.js +1 -1
  334. package/hooks/transactions/useSignTransactionsCommonData.js +1 -1
  335. package/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
  336. package/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
  337. package/hooks/transactions/useTrackTransactionStatus.js +1 -1
  338. package/hooks/useGetNetworkConfig.js +1 -1
  339. package/hooks/useGetNotification.js +1 -1
  340. package/hooks/websocketListener/index.js +1 -1
  341. package/hooks/websocketListener/useInitializeWebsocketConnection.js +1 -1
  342. package/hooks/websocketListener/useRegisterWebsocketListener.js +1 -1
  343. package/package.json +1 -1
  344. package/reduxStore/selectors/index.js +1 -1
  345. package/reduxStore/selectors/transactionsSelectors.js +1 -1
  346. package/services/index.js +1 -1
  347. package/services/nativeAuth/helpers/getAuthorizationInfo.js +1 -1
  348. package/services/nativeAuth/helpers/getIsNativeAuthSingingForbidden.js +1 -1
  349. package/services/nativeAuth/helpers/index.js +1 -1
  350. package/services/nativeAuth/index.js +1 -1
  351. package/services/nativeAuth/methods/getToken.js +1 -1
  352. package/services/nativeAuth/methods/getTokenExpiration.js +1 -1
  353. package/services/nativeAuth/methods/index.js +1 -1
  354. package/services/nativeAuth/nativeAuth.js +1 -1
  355. package/services/transactions/index.js +1 -1
  356. package/services/transactions/sendTransactions.js +1 -1
  357. package/services/transactions/signTransactions.js +1 -1
  358. package/services/transactions/transformAndSignTransactions.js +1 -1
  359. package/services/transactions/utils.js +1 -1
  360. package/utils/account/getAccount.js +1 -1
  361. package/utils/account/getAccountBalance.js +1 -1
  362. package/utils/account/getAccountShard.js +1 -1
  363. package/utils/account/getAddress.js +1 -1
  364. package/utils/account/getLatestNonce.js +1 -1
  365. package/utils/account/index.js +1 -1
  366. package/utils/account/refreshAccount.js +1 -1
  367. package/utils/account/signMessage.js +1 -1
  368. package/utils/getIsLoggedIn.js +1 -1
  369. package/utils/index.d.ts +1 -0
  370. package/utils/index.js +1 -1
  371. package/utils/logout.js +1 -1
  372. package/utils/math.d.ts +5 -2
  373. package/utils/math.js +1 -1
  374. package/utils/network/getChainID.js +1 -1
  375. package/utils/network/getEgldLabel.js +1 -1
  376. package/utils/network/getNetworkConfig.js +1 -1
  377. package/utils/network/index.js +1 -1
  378. package/utils/operations/calculateFeeLimit.js +1 -1
  379. package/utils/operations/index.js +1 -1
  380. package/utils/progress/getRemainingValue.d.ts +11 -0
  381. package/utils/progress/getRemainingValue.js +2 -0
  382. package/utils/progress/index.d.ts +2 -0
  383. package/utils/progress/index.js +2 -0
  384. package/utils/sanitizeCallbackUrl.js +1 -1
  385. package/utils/tests/getRemainingValue.test.d.ts +2 -0
  386. package/utils/transactions/getAllTransactionsLink.js +1 -1
  387. package/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.js +1 -1
  388. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/getTransactionValue.js +1 -1
  389. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getTitleText.js +1 -1
  390. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/index.js +1 -1
  391. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/index.js +1 -1
  392. package/utils/transactions/getInterpretedTransaction/helpers/index.js +1 -1
  393. package/utils/transactions/getInterpretedTransaction/index.js +1 -1
  394. package/utils/transactions/getTransactionLink.js +1 -1
  395. package/utils/transactions/index.js +1 -1
  396. package/utils/transactions/transactionInfoHelpers/getTransactionActionNftText.js +1 -1
  397. package/utils/transactions/transactionInfoHelpers/getTransactionActionTokenText.js +1 -1
  398. package/utils/transactions/transactionInfoHelpers/getTransactionMessages.js +1 -1
  399. package/utils/transactions/transactionInfoHelpers/index.js +1 -1
  400. package/utils/validation/index.js +1 -1
  401. package/web/hooks/index.js +1 -1
  402. package/web/hooks/useIdleTimer.js +1 -1
  403. package/web/index.js +1 -1
  404. package/wrappers/AppInitializer.js +1 -1
  405. package/wrappers/AuthenticatedRoutesWrapper/index.js +1 -1
  406. package/wrappers/AxiosInterceptorContext/AxiosInterceptorContext.js +1 -1
  407. package/wrappers/AxiosInterceptorContext/components/AxiosInterceptor.js +1 -1
  408. package/wrappers/AxiosInterceptorContext/components/AxiosInterceptorContextProvider.js +1 -1
  409. package/wrappers/AxiosInterceptorContext/components/LoginInfoListener.js +1 -1
  410. package/wrappers/AxiosInterceptorContext/components/index.js +1 -1
  411. package/wrappers/AxiosInterceptorContext/index.js +1 -1
  412. package/wrappers/DappProvider/CustomComponents.js +1 -1
  413. package/wrappers/DappProvider/index.js +1 -1
  414. package/wrappers/index.js +1 -1
  415. package/__chunks__/chunk-3ARNSCNU.js +0 -2
  416. package/__chunks__/chunk-7H52FZED.js +0 -2
  417. package/__chunks__/chunk-CI5V2EIZ.js +0 -2
  418. package/__chunks__/chunk-E3ZZOQNR.js +0 -2
  419. package/__chunks__/chunk-F3USMPPZ.js +0 -2
  420. package/__chunks__/chunk-FN7XCOXT.js +0 -2
  421. package/__chunks__/chunk-PI5JHYWA.js +0 -2
  422. package/__chunks__/chunk-QXXPROXW.js +0 -2
@@ -1,4 +1,4 @@
1
- "use strict";var Tr=Object.create;var b=Object.defineProperty;var Ir=Object.getOwnPropertyDescriptor;var dr=Object.getOwnPropertyNames;var Cr=Object.getPrototypeOf,Sr=Object.prototype.hasOwnProperty;var Lr=(e,r)=>()=>(e&&(r=e(e=0)),r);var N=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Mr=(e,r)=>{for(var t in r)b(e,t,{get:r[t],enumerable:!0})},rr=(e,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of dr(r))!Sr.call(e,n)&&n!==t&&b(e,n,{get:()=>r[n],enumerable:!(i=Ir(r,n))||i.enumerable});return e};var tr=(e,r,t)=>(t=e!=null?Tr(Cr(e)):{},rr(r||!e||!e.__esModule?b(t,"default",{value:e,enumerable:!0}):t,e)),Rr=e=>rr(b({},"__esModule",{value:!0}),e);var nr=N(W=>{"use strict";F();W.byteLength=kr;W.toByteArray=br;W.fromByteArray=Xr;var g=[],m=[],_r=typeof Uint8Array!="undefined"?Uint8Array:Array,G="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(d=0,er=G.length;d<er;++d)g[d]=G[d],m[G.charCodeAt(d)]=d;var d,er;m["-".charCodeAt(0)]=62;m["_".charCodeAt(0)]=63;function ir(e){var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var i=t===r?0:4-t%4;return[t,i]}function kr(e){var r=ir(e),t=r[0],i=r[1];return(t+i)*3/4-i}function Dr(e,r,t){return(r+t)*3/4-t}function br(e){var r,t=ir(e),i=t[0],n=t[1],o=new _r(Dr(e,i,n)),u=0,h=n>0?i-4:i,f;for(f=0;f<h;f+=4)r=m[e.charCodeAt(f)]<<18|m[e.charCodeAt(f+1)]<<12|m[e.charCodeAt(f+2)]<<6|m[e.charCodeAt(f+3)],o[u++]=r>>16&255,o[u++]=r>>8&255,o[u++]=r&255;return n===2&&(r=m[e.charCodeAt(f)]<<2|m[e.charCodeAt(f+1)]>>4,o[u++]=r&255),n===1&&(r=m[e.charCodeAt(f)]<<10|m[e.charCodeAt(f+1)]<<4|m[e.charCodeAt(f+2)]>>2,o[u++]=r>>8&255,o[u++]=r&255),o}function Nr(e){return g[e>>18&63]+g[e>>12&63]+g[e>>6&63]+g[e&63]}function Wr(e,r,t){for(var i,n=[],o=r;o<t;o+=3)i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),n.push(Nr(i));return n.join("")}function Xr(e){for(var r,t=e.length,i=t%3,n=[],o=16383,u=0,h=t-i;u<h;u+=o)n.push(Wr(e,u,u+o>h?h:u+o));return i===1?(r=e[t-1],n.push(g[r>>2]+g[r<<4&63]+"==")):i===2&&(r=(e[t-2]<<8)+e[t-1],n.push(g[r>>10]+g[r>>4&63]+g[r<<2&63]+"=")),n.join("")}});var or=N(z=>{F();z.read=function(e,r,t,i,n){var o,u,h=n*8-i-1,f=(1<<h)-1,c=f>>1,l=-7,p=t?n-1:0,E=t?-1:1,x=e[r+p];for(p+=E,o=x&(1<<-l)-1,x>>=-l,l+=h;l>0;o=o*256+e[r+p],p+=E,l-=8);for(u=o&(1<<-l)-1,o>>=-l,l+=i;l>0;u=u*256+e[r+p],p+=E,l-=8);if(o===0)o=1-c;else{if(o===f)return u?NaN:(x?-1:1)*(1/0);u=u+Math.pow(2,i),o=o-c}return(x?-1:1)*u*Math.pow(2,o-i)};z.write=function(e,r,t,i,n,o){var u,h,f,c=o*8-n-1,l=(1<<c)-1,p=l>>1,E=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=i?0:o-1,L=i?1:-1,Ur=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(h=isNaN(r)?1:0,u=l):(u=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-u))<1&&(u--,f*=2),u+p>=1?r+=E/f:r+=E*Math.pow(2,1-p),r*f>=2&&(u++,f/=2),u+p>=l?(h=0,u=l):u+p>=1?(h=(r*f-1)*Math.pow(2,n),u=u+p):(h=r*Math.pow(2,p-1)*Math.pow(2,n),u=0));n>=8;e[t+x]=h&255,x+=L,h/=256,n-=8);for(u=u<<n|h,c+=n;c>0;e[t+x]=u&255,x+=L,u/=256,c-=8);e[t+x-L]|=Ur*128}});var Er=N(R=>{"use strict";F();var J=nr(),M=or(),ur=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;R.Buffer=a;R.SlowBuffer=Jr;R.INSPECT_MAX_BYTES=50;var Y=2147483647;R.kMaxLength=Y;a.TYPED_ARRAY_SUPPORT=Yr();!a.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Yr(){try{var e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(t){return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.buffer}});Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.byteOffset}});function U(e){if(e>Y)throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=new Uint8Array(e);return Object.setPrototypeOf(r,a.prototype),r}function a(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return O(e)}return fr(e,r,t)}a.poolSize=8192;function fr(e,r,t){if(typeof e=="string")return Hr(e,r);if(ArrayBuffer.isView(e))return Gr(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(B(e,ArrayBuffer)||e&&B(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(B(e,SharedArrayBuffer)||e&&B(e.buffer,SharedArrayBuffer)))return V(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(i!=null&&i!==e)return a.from(i,r,t);var n=zr(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return a.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}a.from=function(e,r,t){return fr(e,r,t)};Object.setPrototypeOf(a.prototype,Uint8Array.prototype);Object.setPrototypeOf(a,Uint8Array);function pr(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 qr(e,r,t){return pr(e),e<=0?U(e):r!==void 0?typeof t=="string"?U(e).fill(r,t):U(e).fill(r):U(e)}a.alloc=function(e,r,t){return qr(e,r,t)};function O(e){return pr(e),U(e<0?0:Z(e)|0)}a.allocUnsafe=function(e){return O(e)};a.allocUnsafeSlow=function(e){return O(e)};function Hr(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var t=cr(e,r)|0,i=U(t),n=i.write(e,r);return n!==t&&(i=i.slice(0,n)),i}function Q(e){for(var r=e.length<0?0:Z(e.length)|0,t=U(r),i=0;i<r;i+=1)t[i]=e[i]&255;return t}function Gr(e){if(B(e,Uint8Array)){var r=new Uint8Array(e);return V(r.buffer,r.byteOffset,r.byteLength)}return Q(e)}function V(e,r,t){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');var i;return r===void 0&&t===void 0?i=new Uint8Array(e):t===void 0?i=new Uint8Array(e,r):i=new Uint8Array(e,r,t),Object.setPrototypeOf(i,a.prototype),i}function zr(e){if(a.isBuffer(e)){var r=Z(e.length)|0,t=U(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||$(e.length)?U(0):Q(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Q(e.data)}function Z(e){if(e>=Y)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Y.toString(16)+" bytes");return e|0}function Jr(e){return+e!=e&&(e=0),a.alloc(+e)}a.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==a.prototype};a.compare=function(r,t){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),B(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(r)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;for(var i=r.length,n=t.length,o=0,u=Math.min(i,n);o<u;++o)if(r[o]!==t[o]){i=r[o],n=t[o];break}return i<n?-1:n<i?1:0};a.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};a.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return a.alloc(0);var i;if(t===void 0)for(t=0,i=0;i<r.length;++i)t+=r[i].length;var n=a.allocUnsafe(t),o=0;for(i=0;i<r.length;++i){var u=r[i];if(B(u,Uint8Array))o+u.length>n.length?a.from(u).copy(n,o):Uint8Array.prototype.set.call(n,u,o);else if(a.isBuffer(u))u.copy(n,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=u.length}return n};function cr(e,r){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||B(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var t=e.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&t===0)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return mr(e).length;default:if(n)return i?-1:K(e).length;r=(""+r).toLowerCase(),n=!0}}a.byteLength=cr;function Qr(e,r,t){var i=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return et(this,r,t);case"utf8":case"utf-8":return sr(this,r,t);case"ascii":return rt(this,r,t);case"latin1":case"binary":return tt(this,r,t);case"base64":return Pr(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return it(this,r,t);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}a.prototype._isBuffer=!0;function C(e,r,t){var i=e[r];e[r]=e[t],e[t]=i}a.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<r;t+=2)C(this,t,t+1);return this};a.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<r;t+=4)C(this,t,t+3),C(this,t+1,t+2);return this};a.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<r;t+=8)C(this,t,t+7),C(this,t+1,t+6),C(this,t+2,t+5),C(this,t+3,t+4);return this};a.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?sr(this,0,r):Qr.apply(this,arguments)};a.prototype.toLocaleString=a.prototype.toString;a.prototype.equals=function(r){if(!a.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:a.compare(this,r)===0};a.prototype.inspect=function(){var r="",t=R.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};ur&&(a.prototype[ur]=a.prototype.inspect);a.prototype.compare=function(r,t,i,n,o){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),!a.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),i===void 0&&(i=r?r.length:0),n===void 0&&(n=0),o===void 0&&(o=this.length),t<0||i>r.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=i)return 0;if(n>=o)return-1;if(t>=i)return 1;if(t>>>=0,i>>>=0,n>>>=0,o>>>=0,this===r)return 0;for(var u=o-n,h=i-t,f=Math.min(u,h),c=this.slice(n,o),l=r.slice(t,i),p=0;p<f;++p)if(c[p]!==l[p]){u=c[p],h=l[p];break}return u<h?-1:h<u?1:0};function lr(e,r,t,i,n){if(e.length===0)return-1;if(typeof t=="string"?(i=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,$(t)&&(t=n?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(n)return-1;t=e.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof r=="string"&&(r=a.from(r,i)),a.isBuffer(r))return r.length===0?-1:ar(e,r,t,i,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):ar(e,[r],t,i,n);throw new TypeError("val must be string, number or Buffer")}function ar(e,r,t,i,n){var o=1,u=e.length,h=r.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(e.length<2||r.length<2)return-1;o=2,u/=2,h/=2,t/=2}function f(x,L){return o===1?x[L]:x.readUInt16BE(L*o)}var c;if(n){var l=-1;for(c=t;c<u;c++)if(f(e,c)===f(r,l===-1?0:c-l)){if(l===-1&&(l=c),c-l+1===h)return l*o}else l!==-1&&(c-=c-l),l=-1}else for(t+h>u&&(t=u-h),c=t;c>=0;c--){for(var p=!0,E=0;E<h;E++)if(f(e,c+E)!==f(r,E)){p=!1;break}if(p)return c}return-1}a.prototype.includes=function(r,t,i){return this.indexOf(r,t,i)!==-1};a.prototype.indexOf=function(r,t,i){return lr(this,r,t,i,!0)};a.prototype.lastIndexOf=function(r,t,i){return lr(this,r,t,i,!1)};function Vr(e,r,t,i){t=Number(t)||0;var n=e.length-t;i?(i=Number(i),i>n&&(i=n)):i=n;var o=r.length;i>o/2&&(i=o/2);for(var u=0;u<i;++u){var h=parseInt(r.substr(u*2,2),16);if($(h))return u;e[t+u]=h}return u}function Kr(e,r,t,i){return q(K(r,e.length-t),e,t,i)}function Or(e,r,t,i){return q(ut(r),e,t,i)}function Zr(e,r,t,i){return q(mr(r),e,t,i)}function $r(e,r,t,i){return q(at(r,e.length-t),e,t,i)}a.prototype.write=function(r,t,i,n){if(t===void 0)n="utf8",i=this.length,t=0;else if(i===void 0&&typeof t=="string")n=t,i=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(i)?(i=i>>>0,n===void 0&&(n="utf8")):(n=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-t;if((i===void 0||i>o)&&(i=o),r.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var u=!1;;)switch(n){case"hex":return Vr(this,r,t,i);case"utf8":case"utf-8":return Kr(this,r,t,i);case"ascii":case"latin1":case"binary":return Or(this,r,t,i);case"base64":return Zr(this,r,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $r(this,r,t,i);default:if(u)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),u=!0}};a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Pr(e,r,t){return r===0&&t===e.length?J.fromByteArray(e):J.fromByteArray(e.slice(r,t))}function sr(e,r,t){t=Math.min(e.length,t);for(var i=[],n=r;n<t;){var o=e[n],u=null,h=o>239?4:o>223?3:o>191?2:1;if(n+h<=t){var f,c,l,p;switch(h){case 1:o<128&&(u=o);break;case 2:f=e[n+1],(f&192)===128&&(p=(o&31)<<6|f&63,p>127&&(u=p));break;case 3:f=e[n+1],c=e[n+2],(f&192)===128&&(c&192)===128&&(p=(o&15)<<12|(f&63)<<6|c&63,p>2047&&(p<55296||p>57343)&&(u=p));break;case 4:f=e[n+1],c=e[n+2],l=e[n+3],(f&192)===128&&(c&192)===128&&(l&192)===128&&(p=(o&15)<<18|(f&63)<<12|(c&63)<<6|l&63,p>65535&&p<1114112&&(u=p))}}u===null?(u=65533,h=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|u&1023),i.push(u),n+=h}return jr(i)}var hr=4096;function jr(e){var r=e.length;if(r<=hr)return String.fromCharCode.apply(String,e);for(var t="",i=0;i<r;)t+=String.fromCharCode.apply(String,e.slice(i,i+=hr));return t}function rt(e,r,t){var i="";t=Math.min(e.length,t);for(var n=r;n<t;++n)i+=String.fromCharCode(e[n]&127);return i}function tt(e,r,t){var i="";t=Math.min(e.length,t);for(var n=r;n<t;++n)i+=String.fromCharCode(e[n]);return i}function et(e,r,t){var i=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>i)&&(t=i);for(var n="",o=r;o<t;++o)n+=ht[e[o]];return n}function it(e,r,t){for(var i=e.slice(r,t),n="",o=0;o<i.length-1;o+=2)n+=String.fromCharCode(i[o]+i[o+1]*256);return n}a.prototype.slice=function(r,t){var i=this.length;r=~~r,t=t===void 0?i:~~t,r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t<r&&(t=r);var n=this.subarray(r,t);return Object.setPrototypeOf(n,a.prototype),n};function w(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r],o=1,u=0;++u<t&&(o*=256);)n+=this[r+u]*o;return n};a.prototype.readUintBE=a.prototype.readUIntBE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r+--t],o=1;t>0&&(o*=256);)n+=this[r+--t]*o;return n};a.prototype.readUint8=a.prototype.readUInt8=function(r,t){return r=r>>>0,t||w(r,1,this.length),this[r]};a.prototype.readUint16LE=a.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||w(r,2,this.length),this[r]|this[r+1]<<8};a.prototype.readUint16BE=a.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||w(r,2,this.length),this[r]<<8|this[r+1]};a.prototype.readUint32LE=a.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||w(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};a.prototype.readUint32BE=a.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};a.prototype.readIntLE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r],o=1,u=0;++u<t&&(o*=256);)n+=this[r+u]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*t)),n};a.prototype.readIntBE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=t,o=1,u=this[r+--n];n>0&&(o*=256);)u+=this[r+--n]*o;return o*=128,u>=o&&(u-=Math.pow(2,8*t)),u};a.prototype.readInt8=function(r,t){return r=r>>>0,t||w(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};a.prototype.readInt16LE=function(r,t){r=r>>>0,t||w(r,2,this.length);var i=this[r]|this[r+1]<<8;return i&32768?i|4294901760:i};a.prototype.readInt16BE=function(r,t){r=r>>>0,t||w(r,2,this.length);var i=this[r+1]|this[r]<<8;return i&32768?i|4294901760:i};a.prototype.readInt32LE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};a.prototype.readInt32BE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};a.prototype.readFloatLE=function(r,t){return r=r>>>0,t||w(r,4,this.length),M.read(this,r,!0,23,4)};a.prototype.readFloatBE=function(r,t){return r=r>>>0,t||w(r,4,this.length),M.read(this,r,!1,23,4)};a.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||w(r,8,this.length),M.read(this,r,!0,52,8)};a.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||w(r,8,this.length),M.read(this,r,!1,52,8)};function y(e,r,t,i,n,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||r<o)throw new RangeError('"value" argument is out of bounds');if(t+i>e.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(r,t,i,n){if(r=+r,t=t>>>0,i=i>>>0,!n){var o=Math.pow(2,8*i)-1;y(this,r,t,i,o,0)}var u=1,h=0;for(this[t]=r&255;++h<i&&(u*=256);)this[t+h]=r/u&255;return t+i};a.prototype.writeUintBE=a.prototype.writeUIntBE=function(r,t,i,n){if(r=+r,t=t>>>0,i=i>>>0,!n){var o=Math.pow(2,8*i)-1;y(this,r,t,i,o,0)}var u=i-1,h=1;for(this[t+u]=r&255;--u>=0&&(h*=256);)this[t+u]=r/h&255;return t+i};a.prototype.writeUint8=a.prototype.writeUInt8=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,1,255,0),this[t]=r&255,t+1};a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};a.prototype.writeIntLE=function(r,t,i,n){if(r=+r,t=t>>>0,!n){var o=Math.pow(2,8*i-1);y(this,r,t,i,o-1,-o)}var u=0,h=1,f=0;for(this[t]=r&255;++u<i&&(h*=256);)r<0&&f===0&&this[t+u-1]!==0&&(f=1),this[t+u]=(r/h>>0)-f&255;return t+i};a.prototype.writeIntBE=function(r,t,i,n){if(r=+r,t=t>>>0,!n){var o=Math.pow(2,8*i-1);y(this,r,t,i,o-1,-o)}var u=i-1,h=1,f=0;for(this[t+u]=r&255;--u>=0&&(h*=256);)r<0&&f===0&&this[t+u+1]!==0&&(f=1),this[t+u]=(r/h>>0)-f&255;return t+i};a.prototype.writeInt8=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};a.prototype.writeInt16LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeInt16BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeInt32LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};a.prototype.writeInt32BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function wr(e,r,t,i,n,o){if(t+i>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function yr(e,r,t,i,n){return r=+r,t=t>>>0,n||wr(e,r,t,4,34028234663852886e22,-34028234663852886e22),M.write(e,r,t,i,23,4),t+4}a.prototype.writeFloatLE=function(r,t,i){return yr(this,r,t,!0,i)};a.prototype.writeFloatBE=function(r,t,i){return yr(this,r,t,!1,i)};function xr(e,r,t,i,n){return r=+r,t=t>>>0,n||wr(e,r,t,8,17976931348623157e292,-17976931348623157e292),M.write(e,r,t,i,52,8),t+8}a.prototype.writeDoubleLE=function(r,t,i){return xr(this,r,t,!0,i)};a.prototype.writeDoubleBE=function(r,t,i){return xr(this,r,t,!1,i)};a.prototype.copy=function(r,t,i,n){if(!a.isBuffer(r))throw new TypeError("argument should be a Buffer");if(i||(i=0),!n&&n!==0&&(n=this.length),t>=r.length&&(t=r.length),t||(t=0),n>0&&n<i&&(n=i),n===i||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-t<n-i&&(n=r.length-t+i);var o=n-i;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,i,n):Uint8Array.prototype.set.call(r,this.subarray(i,n),t),o};a.prototype.fill=function(r,t,i,n){if(typeof r=="string"){if(typeof t=="string"?(n=t,t=0,i=this.length):typeof i=="string"&&(n=i,i=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!a.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(r.length===1){var o=r.charCodeAt(0);(n==="utf8"&&o<128||n==="latin1")&&(r=o)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;t=t>>>0,i=i===void 0?this.length:i>>>0,r||(r=0);var u;if(typeof r=="number")for(u=t;u<i;++u)this[u]=r;else{var h=a.isBuffer(r)?r:a.from(r,n),f=h.length;if(f===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(u=0;u<i-t;++u)this[u+t]=h[u%f]}return this};var nt=/[^+/0-9A-Za-z-_]/g;function ot(e){if(e=e.split("=")[0],e=e.trim().replace(nt,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function K(e,r){r=r||1/0;for(var t,i=e.length,n=null,o=[],u=0;u<i;++u){if(t=e.charCodeAt(u),t>55295&&t<57344){if(!n){if(t>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(u+1===i){(r-=3)>-1&&o.push(239,191,189);continue}n=t;continue}if(t<56320){(r-=3)>-1&&o.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(r-=3)>-1&&o.push(239,191,189);if(n=null,t<128){if((r-=1)<0)break;o.push(t)}else if(t<2048){if((r-=2)<0)break;o.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;o.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return o}function ut(e){for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function at(e,r){for(var t,i,n,o=[],u=0;u<e.length&&!((r-=2)<0);++u)t=e.charCodeAt(u),i=t>>8,n=t%256,o.push(n),o.push(i);return o}function mr(e){return J.toByteArray(ot(e))}function q(e,r,t,i){for(var n=0;n<i&&!(n+t>=r.length||n>=e.length);++n)r[n+t]=e[n];return n}function B(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function $(e){return e!==e}var ht=function(){for(var e="0123456789abcdef",r=new Array(256),t=0;t<16;++t)for(var i=t*16,n=0;n<16;++n)r[i+n]=e[t]+e[n];return r}()});var vr=N((Et,Ar)=>{F();var s=Ar.exports={},A,v;function P(){throw new Error("setTimeout has not been defined")}function j(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?A=setTimeout:A=P}catch(e){A=P}try{typeof clearTimeout=="function"?v=clearTimeout:v=j}catch(e){v=j}})();function Fr(e){if(A===setTimeout)return setTimeout(e,0);if((A===P||!A)&&setTimeout)return A=setTimeout,setTimeout(e,0);try{return A(e,0)}catch(r){try{return A.call(null,e,0)}catch(t){return A.call(this,e,0)}}}function ft(e){if(v===clearTimeout)return clearTimeout(e);if((v===j||!v)&&clearTimeout)return v=clearTimeout,clearTimeout(e);try{return v(e)}catch(r){try{return v.call(null,e)}catch(t){return v.call(this,e)}}}var T=[],_=!1,S,H=-1;function pt(){!_||!S||(_=!1,S.length?T=S.concat(T):H=-1,T.length&&gr())}function gr(){if(!_){var e=Fr(pt);_=!0;for(var r=T.length;r;){for(S=T,T=[];++H<r;)S&&S[H].run();H=-1,r=T.length}S=null,_=!1,ft(e)}}s.nextTick=function(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];T.push(new Br(e,r)),T.length===1&&!_&&Fr(gr)};function Br(e,r){this.fun=e,this.array=r}Br.prototype.run=function(){this.fun.apply(null,this.array)};s.title="browser";s.browser=!0;s.env={};s.argv=[];s.version="";s.versions={};function I(){}s.on=I;s.addListener=I;s.once=I;s.off=I;s.removeListener=I;s.removeAllListeners=I;s.emit=I;s.prependListener=I;s.prependOnceListener=I;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 k,D,Ft,F=Lr(()=>{k=tr(Er()),D=tr(vr()),Ft=function(e){function r(){var i=this||self;return delete e.prototype.__magic__,i}if(typeof globalThis=="object")return globalThis;if(this)return r();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:r});var t=__magic__;return t}(Object)});var st={};Mr(st,{MAX_REST:()=>ct,logarithmicRest:()=>lt});module.exports=Rr(st);F();var ct=10,lt=(e,r=10)=>{let i=Math.log(.005),o=(Math.log(5)-i)/(r-0);return Math.exp(i+o*(e-0))};0&&(module.exports={MAX_REST,logarithmicRest});
1
+ "use strict";var Tr=Object.create;var b=Object.defineProperty;var Ir=Object.getOwnPropertyDescriptor;var dr=Object.getOwnPropertyNames;var Cr=Object.getPrototypeOf,Lr=Object.prototype.hasOwnProperty;var Sr=(e,r)=>()=>(e&&(r=e(e=0)),r);var N=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Mr=(e,r)=>{for(var t in r)b(e,t,{get:r[t],enumerable:!0})},rr=(e,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of dr(r))!Lr.call(e,n)&&n!==t&&b(e,n,{get:()=>r[n],enumerable:!(i=Ir(r,n))||i.enumerable});return e};var tr=(e,r,t)=>(t=e!=null?Tr(Cr(e)):{},rr(r||!e||!e.__esModule?b(t,"default",{value:e,enumerable:!0}):t,e)),Rr=e=>rr(b({},"__esModule",{value:!0}),e);var nr=N(W=>{"use strict";F();W.byteLength=kr;W.toByteArray=br;W.fromByteArray=Yr;var g=[],m=[],_r=typeof Uint8Array!="undefined"?Uint8Array:Array,G="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(d=0,er=G.length;d<er;++d)g[d]=G[d],m[G.charCodeAt(d)]=d;var d,er;m["-".charCodeAt(0)]=62;m["_".charCodeAt(0)]=63;function ir(e){var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var i=t===r?0:4-t%4;return[t,i]}function kr(e){var r=ir(e),t=r[0],i=r[1];return(t+i)*3/4-i}function Dr(e,r,t){return(r+t)*3/4-t}function br(e){var r,t=ir(e),i=t[0],n=t[1],u=new _r(Dr(e,i,n)),o=0,h=n>0?i-4:i,f;for(f=0;f<h;f+=4)r=m[e.charCodeAt(f)]<<18|m[e.charCodeAt(f+1)]<<12|m[e.charCodeAt(f+2)]<<6|m[e.charCodeAt(f+3)],u[o++]=r>>16&255,u[o++]=r>>8&255,u[o++]=r&255;return n===2&&(r=m[e.charCodeAt(f)]<<2|m[e.charCodeAt(f+1)]>>4,u[o++]=r&255),n===1&&(r=m[e.charCodeAt(f)]<<10|m[e.charCodeAt(f+1)]<<4|m[e.charCodeAt(f+2)]>>2,u[o++]=r>>8&255,u[o++]=r&255),u}function Nr(e){return g[e>>18&63]+g[e>>12&63]+g[e>>6&63]+g[e&63]}function Wr(e,r,t){for(var i,n=[],u=r;u<t;u+=3)i=(e[u]<<16&16711680)+(e[u+1]<<8&65280)+(e[u+2]&255),n.push(Nr(i));return n.join("")}function Yr(e){for(var r,t=e.length,i=t%3,n=[],u=16383,o=0,h=t-i;o<h;o+=u)n.push(Wr(e,o,o+u>h?h:o+u));return i===1?(r=e[t-1],n.push(g[r>>2]+g[r<<4&63]+"==")):i===2&&(r=(e[t-2]<<8)+e[t-1],n.push(g[r>>10]+g[r>>4&63]+g[r<<2&63]+"=")),n.join("")}});var ur=N(z=>{F();z.read=function(e,r,t,i,n){var u,o,h=n*8-i-1,f=(1<<h)-1,c=f>>1,l=-7,p=t?n-1:0,E=t?-1:1,x=e[r+p];for(p+=E,u=x&(1<<-l)-1,x>>=-l,l+=h;l>0;u=u*256+e[r+p],p+=E,l-=8);for(o=u&(1<<-l)-1,u>>=-l,l+=i;l>0;o=o*256+e[r+p],p+=E,l-=8);if(u===0)u=1-c;else{if(u===f)return o?NaN:(x?-1:1)*(1/0);o=o+Math.pow(2,i),u=u-c}return(x?-1:1)*o*Math.pow(2,u-i)};z.write=function(e,r,t,i,n,u){var o,h,f,c=u*8-n-1,l=(1<<c)-1,p=l>>1,E=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=i?0:u-1,S=i?1:-1,Ur=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(h=isNaN(r)?1:0,o=l):(o=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-o))<1&&(o--,f*=2),o+p>=1?r+=E/f:r+=E*Math.pow(2,1-p),r*f>=2&&(o++,f/=2),o+p>=l?(h=0,o=l):o+p>=1?(h=(r*f-1)*Math.pow(2,n),o=o+p):(h=r*Math.pow(2,p-1)*Math.pow(2,n),o=0));n>=8;e[t+x]=h&255,x+=S,h/=256,n-=8);for(o=o<<n|h,c+=n;c>0;e[t+x]=o&255,x+=S,o/=256,c-=8);e[t+x-S]|=Ur*128}});var Er=N(R=>{"use strict";F();var J=nr(),M=ur(),or=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;R.Buffer=a;R.SlowBuffer=Jr;R.INSPECT_MAX_BYTES=50;var q=2147483647;R.kMaxLength=q;a.TYPED_ARRAY_SUPPORT=qr();!a.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function qr(){try{var e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(t){return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.buffer}});Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.byteOffset}});function U(e){if(e>q)throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=new Uint8Array(e);return Object.setPrototypeOf(r,a.prototype),r}function a(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return O(e)}return fr(e,r,t)}a.poolSize=8192;function fr(e,r,t){if(typeof e=="string")return Xr(e,r);if(ArrayBuffer.isView(e))return Gr(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(B(e,ArrayBuffer)||e&&B(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(B(e,SharedArrayBuffer)||e&&B(e.buffer,SharedArrayBuffer)))return V(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(i!=null&&i!==e)return a.from(i,r,t);var n=zr(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return a.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}a.from=function(e,r,t){return fr(e,r,t)};Object.setPrototypeOf(a.prototype,Uint8Array.prototype);Object.setPrototypeOf(a,Uint8Array);function pr(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 Hr(e,r,t){return pr(e),e<=0?U(e):r!==void 0?typeof t=="string"?U(e).fill(r,t):U(e).fill(r):U(e)}a.alloc=function(e,r,t){return Hr(e,r,t)};function O(e){return pr(e),U(e<0?0:Z(e)|0)}a.allocUnsafe=function(e){return O(e)};a.allocUnsafeSlow=function(e){return O(e)};function Xr(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var t=cr(e,r)|0,i=U(t),n=i.write(e,r);return n!==t&&(i=i.slice(0,n)),i}function Q(e){for(var r=e.length<0?0:Z(e.length)|0,t=U(r),i=0;i<r;i+=1)t[i]=e[i]&255;return t}function Gr(e){if(B(e,Uint8Array)){var r=new Uint8Array(e);return V(r.buffer,r.byteOffset,r.byteLength)}return Q(e)}function V(e,r,t){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');var i;return r===void 0&&t===void 0?i=new Uint8Array(e):t===void 0?i=new Uint8Array(e,r):i=new Uint8Array(e,r,t),Object.setPrototypeOf(i,a.prototype),i}function zr(e){if(a.isBuffer(e)){var r=Z(e.length)|0,t=U(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||$(e.length)?U(0):Q(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Q(e.data)}function Z(e){if(e>=q)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+q.toString(16)+" bytes");return e|0}function Jr(e){return+e!=e&&(e=0),a.alloc(+e)}a.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==a.prototype};a.compare=function(r,t){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),B(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(r)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;for(var i=r.length,n=t.length,u=0,o=Math.min(i,n);u<o;++u)if(r[u]!==t[u]){i=r[u],n=t[u];break}return i<n?-1:n<i?1:0};a.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};a.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return a.alloc(0);var i;if(t===void 0)for(t=0,i=0;i<r.length;++i)t+=r[i].length;var n=a.allocUnsafe(t),u=0;for(i=0;i<r.length;++i){var o=r[i];if(B(o,Uint8Array))u+o.length>n.length?a.from(o).copy(n,u):Uint8Array.prototype.set.call(n,o,u);else if(a.isBuffer(o))o.copy(n,u);else throw new TypeError('"list" argument must be an Array of Buffers');u+=o.length}return n};function cr(e,r){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||B(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var t=e.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&t===0)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return mr(e).length;default:if(n)return i?-1:K(e).length;r=(""+r).toLowerCase(),n=!0}}a.byteLength=cr;function Qr(e,r,t){var i=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return et(this,r,t);case"utf8":case"utf-8":return sr(this,r,t);case"ascii":return rt(this,r,t);case"latin1":case"binary":return tt(this,r,t);case"base64":return Pr(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return it(this,r,t);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}a.prototype._isBuffer=!0;function C(e,r,t){var i=e[r];e[r]=e[t],e[t]=i}a.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<r;t+=2)C(this,t,t+1);return this};a.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<r;t+=4)C(this,t,t+3),C(this,t+1,t+2);return this};a.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<r;t+=8)C(this,t,t+7),C(this,t+1,t+6),C(this,t+2,t+5),C(this,t+3,t+4);return this};a.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?sr(this,0,r):Qr.apply(this,arguments)};a.prototype.toLocaleString=a.prototype.toString;a.prototype.equals=function(r){if(!a.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:a.compare(this,r)===0};a.prototype.inspect=function(){var r="",t=R.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};or&&(a.prototype[or]=a.prototype.inspect);a.prototype.compare=function(r,t,i,n,u){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),!a.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),i===void 0&&(i=r?r.length:0),n===void 0&&(n=0),u===void 0&&(u=this.length),t<0||i>r.length||n<0||u>this.length)throw new RangeError("out of range index");if(n>=u&&t>=i)return 0;if(n>=u)return-1;if(t>=i)return 1;if(t>>>=0,i>>>=0,n>>>=0,u>>>=0,this===r)return 0;for(var o=u-n,h=i-t,f=Math.min(o,h),c=this.slice(n,u),l=r.slice(t,i),p=0;p<f;++p)if(c[p]!==l[p]){o=c[p],h=l[p];break}return o<h?-1:h<o?1:0};function lr(e,r,t,i,n){if(e.length===0)return-1;if(typeof t=="string"?(i=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,$(t)&&(t=n?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(n)return-1;t=e.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof r=="string"&&(r=a.from(r,i)),a.isBuffer(r))return r.length===0?-1:ar(e,r,t,i,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):ar(e,[r],t,i,n);throw new TypeError("val must be string, number or Buffer")}function ar(e,r,t,i,n){var u=1,o=e.length,h=r.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(e.length<2||r.length<2)return-1;u=2,o/=2,h/=2,t/=2}function f(x,S){return u===1?x[S]:x.readUInt16BE(S*u)}var c;if(n){var l=-1;for(c=t;c<o;c++)if(f(e,c)===f(r,l===-1?0:c-l)){if(l===-1&&(l=c),c-l+1===h)return l*u}else l!==-1&&(c-=c-l),l=-1}else for(t+h>o&&(t=o-h),c=t;c>=0;c--){for(var p=!0,E=0;E<h;E++)if(f(e,c+E)!==f(r,E)){p=!1;break}if(p)return c}return-1}a.prototype.includes=function(r,t,i){return this.indexOf(r,t,i)!==-1};a.prototype.indexOf=function(r,t,i){return lr(this,r,t,i,!0)};a.prototype.lastIndexOf=function(r,t,i){return lr(this,r,t,i,!1)};function Vr(e,r,t,i){t=Number(t)||0;var n=e.length-t;i?(i=Number(i),i>n&&(i=n)):i=n;var u=r.length;i>u/2&&(i=u/2);for(var o=0;o<i;++o){var h=parseInt(r.substr(o*2,2),16);if($(h))return o;e[t+o]=h}return o}function Kr(e,r,t,i){return H(K(r,e.length-t),e,t,i)}function Or(e,r,t,i){return H(ot(r),e,t,i)}function Zr(e,r,t,i){return H(mr(r),e,t,i)}function $r(e,r,t,i){return H(at(r,e.length-t),e,t,i)}a.prototype.write=function(r,t,i,n){if(t===void 0)n="utf8",i=this.length,t=0;else if(i===void 0&&typeof t=="string")n=t,i=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(i)?(i=i>>>0,n===void 0&&(n="utf8")):(n=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var u=this.length-t;if((i===void 0||i>u)&&(i=u),r.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return Vr(this,r,t,i);case"utf8":case"utf-8":return Kr(this,r,t,i);case"ascii":case"latin1":case"binary":return Or(this,r,t,i);case"base64":return Zr(this,r,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $r(this,r,t,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Pr(e,r,t){return r===0&&t===e.length?J.fromByteArray(e):J.fromByteArray(e.slice(r,t))}function sr(e,r,t){t=Math.min(e.length,t);for(var i=[],n=r;n<t;){var u=e[n],o=null,h=u>239?4:u>223?3:u>191?2:1;if(n+h<=t){var f,c,l,p;switch(h){case 1:u<128&&(o=u);break;case 2:f=e[n+1],(f&192)===128&&(p=(u&31)<<6|f&63,p>127&&(o=p));break;case 3:f=e[n+1],c=e[n+2],(f&192)===128&&(c&192)===128&&(p=(u&15)<<12|(f&63)<<6|c&63,p>2047&&(p<55296||p>57343)&&(o=p));break;case 4:f=e[n+1],c=e[n+2],l=e[n+3],(f&192)===128&&(c&192)===128&&(l&192)===128&&(p=(u&15)<<18|(f&63)<<12|(c&63)<<6|l&63,p>65535&&p<1114112&&(o=p))}}o===null?(o=65533,h=1):o>65535&&(o-=65536,i.push(o>>>10&1023|55296),o=56320|o&1023),i.push(o),n+=h}return jr(i)}var hr=4096;function jr(e){var r=e.length;if(r<=hr)return String.fromCharCode.apply(String,e);for(var t="",i=0;i<r;)t+=String.fromCharCode.apply(String,e.slice(i,i+=hr));return t}function rt(e,r,t){var i="";t=Math.min(e.length,t);for(var n=r;n<t;++n)i+=String.fromCharCode(e[n]&127);return i}function tt(e,r,t){var i="";t=Math.min(e.length,t);for(var n=r;n<t;++n)i+=String.fromCharCode(e[n]);return i}function et(e,r,t){var i=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>i)&&(t=i);for(var n="",u=r;u<t;++u)n+=ht[e[u]];return n}function it(e,r,t){for(var i=e.slice(r,t),n="",u=0;u<i.length-1;u+=2)n+=String.fromCharCode(i[u]+i[u+1]*256);return n}a.prototype.slice=function(r,t){var i=this.length;r=~~r,t=t===void 0?i:~~t,r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t<r&&(t=r);var n=this.subarray(r,t);return Object.setPrototypeOf(n,a.prototype),n};function w(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r],u=1,o=0;++o<t&&(u*=256);)n+=this[r+o]*u;return n};a.prototype.readUintBE=a.prototype.readUIntBE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r+--t],u=1;t>0&&(u*=256);)n+=this[r+--t]*u;return n};a.prototype.readUint8=a.prototype.readUInt8=function(r,t){return r=r>>>0,t||w(r,1,this.length),this[r]};a.prototype.readUint16LE=a.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||w(r,2,this.length),this[r]|this[r+1]<<8};a.prototype.readUint16BE=a.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||w(r,2,this.length),this[r]<<8|this[r+1]};a.prototype.readUint32LE=a.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||w(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};a.prototype.readUint32BE=a.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};a.prototype.readIntLE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r],u=1,o=0;++o<t&&(u*=256);)n+=this[r+o]*u;return u*=128,n>=u&&(n-=Math.pow(2,8*t)),n};a.prototype.readIntBE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=t,u=1,o=this[r+--n];n>0&&(u*=256);)o+=this[r+--n]*u;return u*=128,o>=u&&(o-=Math.pow(2,8*t)),o};a.prototype.readInt8=function(r,t){return r=r>>>0,t||w(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};a.prototype.readInt16LE=function(r,t){r=r>>>0,t||w(r,2,this.length);var i=this[r]|this[r+1]<<8;return i&32768?i|4294901760:i};a.prototype.readInt16BE=function(r,t){r=r>>>0,t||w(r,2,this.length);var i=this[r+1]|this[r]<<8;return i&32768?i|4294901760:i};a.prototype.readInt32LE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};a.prototype.readInt32BE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};a.prototype.readFloatLE=function(r,t){return r=r>>>0,t||w(r,4,this.length),M.read(this,r,!0,23,4)};a.prototype.readFloatBE=function(r,t){return r=r>>>0,t||w(r,4,this.length),M.read(this,r,!1,23,4)};a.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||w(r,8,this.length),M.read(this,r,!0,52,8)};a.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||w(r,8,this.length),M.read(this,r,!1,52,8)};function y(e,r,t,i,n,u){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||r<u)throw new RangeError('"value" argument is out of bounds');if(t+i>e.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(r,t,i,n){if(r=+r,t=t>>>0,i=i>>>0,!n){var u=Math.pow(2,8*i)-1;y(this,r,t,i,u,0)}var o=1,h=0;for(this[t]=r&255;++h<i&&(o*=256);)this[t+h]=r/o&255;return t+i};a.prototype.writeUintBE=a.prototype.writeUIntBE=function(r,t,i,n){if(r=+r,t=t>>>0,i=i>>>0,!n){var u=Math.pow(2,8*i)-1;y(this,r,t,i,u,0)}var o=i-1,h=1;for(this[t+o]=r&255;--o>=0&&(h*=256);)this[t+o]=r/h&255;return t+i};a.prototype.writeUint8=a.prototype.writeUInt8=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,1,255,0),this[t]=r&255,t+1};a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};a.prototype.writeIntLE=function(r,t,i,n){if(r=+r,t=t>>>0,!n){var u=Math.pow(2,8*i-1);y(this,r,t,i,u-1,-u)}var o=0,h=1,f=0;for(this[t]=r&255;++o<i&&(h*=256);)r<0&&f===0&&this[t+o-1]!==0&&(f=1),this[t+o]=(r/h>>0)-f&255;return t+i};a.prototype.writeIntBE=function(r,t,i,n){if(r=+r,t=t>>>0,!n){var u=Math.pow(2,8*i-1);y(this,r,t,i,u-1,-u)}var o=i-1,h=1,f=0;for(this[t+o]=r&255;--o>=0&&(h*=256);)r<0&&f===0&&this[t+o+1]!==0&&(f=1),this[t+o]=(r/h>>0)-f&255;return t+i};a.prototype.writeInt8=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};a.prototype.writeInt16LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeInt16BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeInt32LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};a.prototype.writeInt32BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function wr(e,r,t,i,n,u){if(t+i>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function yr(e,r,t,i,n){return r=+r,t=t>>>0,n||wr(e,r,t,4,34028234663852886e22,-34028234663852886e22),M.write(e,r,t,i,23,4),t+4}a.prototype.writeFloatLE=function(r,t,i){return yr(this,r,t,!0,i)};a.prototype.writeFloatBE=function(r,t,i){return yr(this,r,t,!1,i)};function xr(e,r,t,i,n){return r=+r,t=t>>>0,n||wr(e,r,t,8,17976931348623157e292,-17976931348623157e292),M.write(e,r,t,i,52,8),t+8}a.prototype.writeDoubleLE=function(r,t,i){return xr(this,r,t,!0,i)};a.prototype.writeDoubleBE=function(r,t,i){return xr(this,r,t,!1,i)};a.prototype.copy=function(r,t,i,n){if(!a.isBuffer(r))throw new TypeError("argument should be a Buffer");if(i||(i=0),!n&&n!==0&&(n=this.length),t>=r.length&&(t=r.length),t||(t=0),n>0&&n<i&&(n=i),n===i||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-t<n-i&&(n=r.length-t+i);var u=n-i;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,i,n):Uint8Array.prototype.set.call(r,this.subarray(i,n),t),u};a.prototype.fill=function(r,t,i,n){if(typeof r=="string"){if(typeof t=="string"?(n=t,t=0,i=this.length):typeof i=="string"&&(n=i,i=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!a.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(r.length===1){var u=r.charCodeAt(0);(n==="utf8"&&u<128||n==="latin1")&&(r=u)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;t=t>>>0,i=i===void 0?this.length:i>>>0,r||(r=0);var o;if(typeof r=="number")for(o=t;o<i;++o)this[o]=r;else{var h=a.isBuffer(r)?r:a.from(r,n),f=h.length;if(f===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(o=0;o<i-t;++o)this[o+t]=h[o%f]}return this};var nt=/[^+/0-9A-Za-z-_]/g;function ut(e){if(e=e.split("=")[0],e=e.trim().replace(nt,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function K(e,r){r=r||1/0;for(var t,i=e.length,n=null,u=[],o=0;o<i;++o){if(t=e.charCodeAt(o),t>55295&&t<57344){if(!n){if(t>56319){(r-=3)>-1&&u.push(239,191,189);continue}else if(o+1===i){(r-=3)>-1&&u.push(239,191,189);continue}n=t;continue}if(t<56320){(r-=3)>-1&&u.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(r-=3)>-1&&u.push(239,191,189);if(n=null,t<128){if((r-=1)<0)break;u.push(t)}else if(t<2048){if((r-=2)<0)break;u.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;u.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;u.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return u}function ot(e){for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function at(e,r){for(var t,i,n,u=[],o=0;o<e.length&&!((r-=2)<0);++o)t=e.charCodeAt(o),i=t>>8,n=t%256,u.push(n),u.push(i);return u}function mr(e){return J.toByteArray(ut(e))}function H(e,r,t,i){for(var n=0;n<i&&!(n+t>=r.length||n>=e.length);++n)r[n+t]=e[n];return n}function B(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function $(e){return e!==e}var ht=function(){for(var e="0123456789abcdef",r=new Array(256),t=0;t<16;++t)for(var i=t*16,n=0;n<16;++n)r[i+n]=e[t]+e[n];return r}()});var vr=N((mt,Ar)=>{F();var s=Ar.exports={},A,v;function P(){throw new Error("setTimeout has not been defined")}function j(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?A=setTimeout:A=P}catch(e){A=P}try{typeof clearTimeout=="function"?v=clearTimeout:v=j}catch(e){v=j}})();function Fr(e){if(A===setTimeout)return setTimeout(e,0);if((A===P||!A)&&setTimeout)return A=setTimeout,setTimeout(e,0);try{return A(e,0)}catch(r){try{return A.call(null,e,0)}catch(t){return A.call(this,e,0)}}}function ft(e){if(v===clearTimeout)return clearTimeout(e);if((v===j||!v)&&clearTimeout)return v=clearTimeout,clearTimeout(e);try{return v(e)}catch(r){try{return v.call(null,e)}catch(t){return v.call(this,e)}}}var T=[],_=!1,L,X=-1;function pt(){!_||!L||(_=!1,L.length?T=L.concat(T):X=-1,T.length&&gr())}function gr(){if(!_){var e=Fr(pt);_=!0;for(var r=T.length;r;){for(L=T,T=[];++X<r;)L&&L[X].run();X=-1,r=T.length}L=null,_=!1,ft(e)}}s.nextTick=function(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];T.push(new Br(e,r)),T.length===1&&!_&&Fr(gr)};function Br(e,r){this.fun=e,this.array=r}Br.prototype.run=function(){this.fun.apply(null,this.array)};s.title="browser";s.browser=!0;s.env={};s.argv=[];s.version="";s.versions={};function I(){}s.on=I;s.addListener=I;s.once=I;s.off=I;s.removeListener=I;s.removeAllListeners=I;s.emit=I;s.prependListener=I;s.prependOnceListener=I;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 k,D,Et,F=Sr(()=>{k=tr(Er()),D=tr(vr()),Et=function(e){function r(){var i=this||self;return delete e.prototype.__magic__,i}if(typeof globalThis=="object")return globalThis;if(this)return r();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:r});var t=__magic__;return t}(Object)});var lt={};Mr(lt,{progressiveDecrement:()=>ct});module.exports=Rr(lt);F();var ct=e=>Math.exp(e/100);0&&(module.exports={progressiveDecrement});
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *
@@ -0,0 +1,9 @@
1
+ "use strict";var Sr=Object.create;var N=Object.defineProperty;var _r=Object.getOwnPropertyDescriptor;var Rr=Object.getOwnPropertyNames;var Lr=Object.getPrototypeOf,Mr=Object.prototype.hasOwnProperty;var Dr=(e,r)=>()=>(e&&(r=e(e=0)),r);var W=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),kr=(e,r)=>{for(var t in r)N(e,t,{get:r[t],enumerable:!0})},rr=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Rr(r))!Mr.call(e,i)&&i!==t&&N(e,i,{get:()=>r[i],enumerable:!(n=_r(r,i))||n.enumerable});return e};var tr=(e,r,t)=>(t=e!=null?Sr(Lr(e)):{},rr(r||!e||!e.__esModule?N(t,"default",{value:e,enumerable:!0}):t,e)),br=e=>rr(N({},"__esModule",{value:!0}),e);var ir=W(H=>{"use strict";m();H.byteLength=Wr;H.toByteArray=Gr;H.fromByteArray=Xr;var g=[],E=[],Nr=typeof Uint8Array!="undefined"?Uint8Array:Array,X="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(d=0,er=X.length;d<er;++d)g[d]=X[d],E[X.charCodeAt(d)]=d;var d,er;E["-".charCodeAt(0)]=62;E["_".charCodeAt(0)]=63;function nr(e){var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var n=t===r?0:4-t%4;return[t,n]}function Wr(e){var r=nr(e),t=r[0],n=r[1];return(t+n)*3/4-n}function Hr(e,r,t){return(r+t)*3/4-t}function Gr(e){var r,t=nr(e),n=t[0],i=t[1],o=new Nr(Hr(e,n,i)),u=0,h=i>0?n-4:n,f;for(f=0;f<h;f+=4)r=E[e.charCodeAt(f)]<<18|E[e.charCodeAt(f+1)]<<12|E[e.charCodeAt(f+2)]<<6|E[e.charCodeAt(f+3)],o[u++]=r>>16&255,o[u++]=r>>8&255,o[u++]=r&255;return i===2&&(r=E[e.charCodeAt(f)]<<2|E[e.charCodeAt(f+1)]>>4,o[u++]=r&255),i===1&&(r=E[e.charCodeAt(f)]<<10|E[e.charCodeAt(f+1)]<<4|E[e.charCodeAt(f+2)]>>2,o[u++]=r>>8&255,o[u++]=r&255),o}function Or(e){return g[e>>18&63]+g[e>>12&63]+g[e>>6&63]+g[e&63]}function Vr(e,r,t){for(var n,i=[],o=r;o<t;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),i.push(Or(n));return i.join("")}function Xr(e){for(var r,t=e.length,n=t%3,i=[],o=16383,u=0,h=t-n;u<h;u+=o)i.push(Vr(e,u,u+o>h?h:u+o));return n===1?(r=e[t-1],i.push(g[r>>2]+g[r<<4&63]+"==")):n===2&&(r=(e[t-2]<<8)+e[t-1],i.push(g[r>>10]+g[r>>4&63]+g[r<<2&63]+"=")),i.join("")}});var or=W(Y=>{m();Y.read=function(e,r,t,n,i){var o,u,h=i*8-n-1,f=(1<<h)-1,c=f>>1,l=-7,p=t?i-1:0,F=t?-1:1,x=e[r+p];for(p+=F,o=x&(1<<-l)-1,x>>=-l,l+=h;l>0;o=o*256+e[r+p],p+=F,l-=8);for(u=o&(1<<-l)-1,o>>=-l,l+=n;l>0;u=u*256+e[r+p],p+=F,l-=8);if(o===0)o=1-c;else{if(o===f)return u?NaN:(x?-1:1)*(1/0);u=u+Math.pow(2,n),o=o-c}return(x?-1:1)*u*Math.pow(2,o-n)};Y.write=function(e,r,t,n,i,o){var u,h,f,c=o*8-i-1,l=(1<<c)-1,p=l>>1,F=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=n?0:o-1,_=n?1:-1,Cr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(h=isNaN(r)?1:0,u=l):(u=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-u))<1&&(u--,f*=2),u+p>=1?r+=F/f:r+=F*Math.pow(2,1-p),r*f>=2&&(u++,f/=2),u+p>=l?(h=0,u=l):u+p>=1?(h=(r*f-1)*Math.pow(2,i),u=u+p):(h=r*Math.pow(2,p-1)*Math.pow(2,i),u=0));i>=8;e[t+x]=h&255,x+=_,h/=256,i-=8);for(u=u<<i|h,c+=i;c>0;e[t+x]=u&255,x+=_,u/=256,c-=8);e[t+x-_]|=Cr*128}});var Er=W(D=>{"use strict";m();var q=ir(),M=or(),ur=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;D.Buffer=a;D.SlowBuffer=Qr;D.INSPECT_MAX_BYTES=50;var G=2147483647;D.kMaxLength=G;a.TYPED_ARRAY_SUPPORT=Yr();!a.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Yr(){try{var e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(t){return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.buffer}});Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.byteOffset}});function T(e){if(e>G)throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=new Uint8Array(e);return Object.setPrototypeOf(r,a.prototype),r}function a(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Q(e)}return fr(e,r,t)}a.poolSize=8192;function fr(e,r,t){if(typeof e=="string")return zr(e,r);if(ArrayBuffer.isView(e))return Jr(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(A(e,ArrayBuffer)||e&&A(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(A(e,SharedArrayBuffer)||e&&A(e.buffer,SharedArrayBuffer)))return J(e,r,t);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 a.from(n,r,t);var i=Pr(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return a.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}a.from=function(e,r,t){return fr(e,r,t)};Object.setPrototypeOf(a.prototype,Uint8Array.prototype);Object.setPrototypeOf(a,Uint8Array);function pr(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 qr(e,r,t){return pr(e),e<=0?T(e):r!==void 0?typeof t=="string"?T(e).fill(r,t):T(e).fill(r):T(e)}a.alloc=function(e,r,t){return qr(e,r,t)};function Q(e){return pr(e),T(e<0?0:K(e)|0)}a.allocUnsafe=function(e){return Q(e)};a.allocUnsafeSlow=function(e){return Q(e)};function zr(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var t=cr(e,r)|0,n=T(t),i=n.write(e,r);return i!==t&&(n=n.slice(0,i)),n}function z(e){for(var r=e.length<0?0:K(e.length)|0,t=T(r),n=0;n<r;n+=1)t[n]=e[n]&255;return t}function Jr(e){if(A(e,Uint8Array)){var r=new Uint8Array(e);return J(r.buffer,r.byteOffset,r.byteLength)}return z(e)}function J(e,r,t){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');var n;return r===void 0&&t===void 0?n=new Uint8Array(e):t===void 0?n=new Uint8Array(e,r):n=new Uint8Array(e,r,t),Object.setPrototypeOf(n,a.prototype),n}function Pr(e){if(a.isBuffer(e)){var r=K(e.length)|0,t=T(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||Z(e.length)?T(0):z(e);if(e.type==="Buffer"&&Array.isArray(e.data))return z(e.data)}function K(e){if(e>=G)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+G.toString(16)+" bytes");return e|0}function Qr(e){return+e!=e&&(e=0),a.alloc(+e)}a.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==a.prototype};a.compare=function(r,t){if(A(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),A(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(r)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;for(var n=r.length,i=t.length,o=0,u=Math.min(n,i);o<u;++o)if(r[o]!==t[o]){n=r[o],i=t[o];break}return n<i?-1:i<n?1:0};a.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};a.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return a.alloc(0);var n;if(t===void 0)for(t=0,n=0;n<r.length;++n)t+=r[n].length;var i=a.allocUnsafe(t),o=0;for(n=0;n<r.length;++n){var u=r[n];if(A(u,Uint8Array))o+u.length>i.length?a.from(u).copy(i,o):Uint8Array.prototype.set.call(i,u,o);else if(a.isBuffer(u))u.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=u.length}return i};function cr(e,r){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||A(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var t=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return P(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return mr(e).length;default:if(i)return n?-1:P(e).length;r=(""+r).toLowerCase(),i=!0}}a.byteLength=cr;function Kr(e,r,t){var n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return ut(this,r,t);case"utf8":case"utf-8":return sr(this,r,t);case"ascii":return it(this,r,t);case"latin1":case"binary":return ot(this,r,t);case"base64":return et(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return at(this,r,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}a.prototype._isBuffer=!0;function C(e,r,t){var n=e[r];e[r]=e[t],e[t]=n}a.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<r;t+=2)C(this,t,t+1);return this};a.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<r;t+=4)C(this,t,t+3),C(this,t+1,t+2);return this};a.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<r;t+=8)C(this,t,t+7),C(this,t+1,t+6),C(this,t+2,t+5),C(this,t+3,t+4);return this};a.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?sr(this,0,r):Kr.apply(this,arguments)};a.prototype.toLocaleString=a.prototype.toString;a.prototype.equals=function(r){if(!a.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:a.compare(this,r)===0};a.prototype.inspect=function(){var r="",t=D.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};ur&&(a.prototype[ur]=a.prototype.inspect);a.prototype.compare=function(r,t,n,i,o){if(A(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),!a.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),t<0||n>r.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&t>=n)return 0;if(i>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,o>>>=0,this===r)return 0;for(var u=o-i,h=n-t,f=Math.min(u,h),c=this.slice(i,o),l=r.slice(t,n),p=0;p<f;++p)if(c[p]!==l[p]){u=c[p],h=l[p];break}return u<h?-1:h<u?1:0};function lr(e,r,t,n,i){if(e.length===0)return-1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,Z(t)&&(t=i?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(i)return-1;t=e.length-1}else if(t<0)if(i)t=0;else return-1;if(typeof r=="string"&&(r=a.from(r,n)),a.isBuffer(r))return r.length===0?-1:ar(e,r,t,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):ar(e,[r],t,n,i);throw new TypeError("val must be string, number or Buffer")}function ar(e,r,t,n,i){var o=1,u=e.length,h=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||r.length<2)return-1;o=2,u/=2,h/=2,t/=2}function f(x,_){return o===1?x[_]:x.readUInt16BE(_*o)}var c;if(i){var l=-1;for(c=t;c<u;c++)if(f(e,c)===f(r,l===-1?0:c-l)){if(l===-1&&(l=c),c-l+1===h)return l*o}else l!==-1&&(c-=c-l),l=-1}else for(t+h>u&&(t=u-h),c=t;c>=0;c--){for(var p=!0,F=0;F<h;F++)if(f(e,c+F)!==f(r,F)){p=!1;break}if(p)return c}return-1}a.prototype.includes=function(r,t,n){return this.indexOf(r,t,n)!==-1};a.prototype.indexOf=function(r,t,n){return lr(this,r,t,n,!0)};a.prototype.lastIndexOf=function(r,t,n){return lr(this,r,t,n,!1)};function Zr(e,r,t,n){t=Number(t)||0;var i=e.length-t;n?(n=Number(n),n>i&&(n=i)):n=i;var o=r.length;n>o/2&&(n=o/2);for(var u=0;u<n;++u){var h=parseInt(r.substr(u*2,2),16);if(Z(h))return u;e[t+u]=h}return u}function $r(e,r,t,n){return O(P(r,e.length-t),e,t,n)}function jr(e,r,t,n){return O(pt(r),e,t,n)}function rt(e,r,t,n){return O(mr(r),e,t,n)}function tt(e,r,t,n){return O(ct(r,e.length-t),e,t,n)}a.prototype.write=function(r,t,n,i){if(t===void 0)i="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")i=t,n=this.length,t=0;else if(isFinite(t))t=t>>>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 o=this.length-t;if((n===void 0||n>o)&&(n=o),r.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var u=!1;;)switch(i){case"hex":return Zr(this,r,t,n);case"utf8":case"utf-8":return $r(this,r,t,n);case"ascii":case"latin1":case"binary":return jr(this,r,t,n);case"base64":return rt(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return tt(this,r,t,n);default:if(u)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),u=!0}};a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function et(e,r,t){return r===0&&t===e.length?q.fromByteArray(e):q.fromByteArray(e.slice(r,t))}function sr(e,r,t){t=Math.min(e.length,t);for(var n=[],i=r;i<t;){var o=e[i],u=null,h=o>239?4:o>223?3:o>191?2:1;if(i+h<=t){var f,c,l,p;switch(h){case 1:o<128&&(u=o);break;case 2:f=e[i+1],(f&192)===128&&(p=(o&31)<<6|f&63,p>127&&(u=p));break;case 3:f=e[i+1],c=e[i+2],(f&192)===128&&(c&192)===128&&(p=(o&15)<<12|(f&63)<<6|c&63,p>2047&&(p<55296||p>57343)&&(u=p));break;case 4:f=e[i+1],c=e[i+2],l=e[i+3],(f&192)===128&&(c&192)===128&&(l&192)===128&&(p=(o&15)<<18|(f&63)<<12|(c&63)<<6|l&63,p>65535&&p<1114112&&(u=p))}}u===null?(u=65533,h=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|u&1023),n.push(u),i+=h}return nt(n)}var hr=4096;function nt(e){var r=e.length;if(r<=hr)return String.fromCharCode.apply(String,e);for(var t="",n=0;n<r;)t+=String.fromCharCode.apply(String,e.slice(n,n+=hr));return t}function it(e,r,t){var n="";t=Math.min(e.length,t);for(var i=r;i<t;++i)n+=String.fromCharCode(e[i]&127);return n}function ot(e,r,t){var n="";t=Math.min(e.length,t);for(var i=r;i<t;++i)n+=String.fromCharCode(e[i]);return n}function ut(e,r,t){var n=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>n)&&(t=n);for(var i="",o=r;o<t;++o)i+=lt[e[o]];return i}function at(e,r,t){for(var n=e.slice(r,t),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}a.prototype.slice=function(r,t){var n=this.length;r=~~r,t=t===void 0?n:~~t,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<r&&(t=r);var i=this.subarray(r,t);return Object.setPrototypeOf(i,a.prototype),i};function w(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||w(r,t,this.length);for(var i=this[r],o=1,u=0;++u<t&&(o*=256);)i+=this[r+u]*o;return i};a.prototype.readUintBE=a.prototype.readUIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||w(r,t,this.length);for(var i=this[r+--t],o=1;t>0&&(o*=256);)i+=this[r+--t]*o;return i};a.prototype.readUint8=a.prototype.readUInt8=function(r,t){return r=r>>>0,t||w(r,1,this.length),this[r]};a.prototype.readUint16LE=a.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||w(r,2,this.length),this[r]|this[r+1]<<8};a.prototype.readUint16BE=a.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||w(r,2,this.length),this[r]<<8|this[r+1]};a.prototype.readUint32LE=a.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||w(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};a.prototype.readUint32BE=a.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};a.prototype.readIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||w(r,t,this.length);for(var i=this[r],o=1,u=0;++u<t&&(o*=256);)i+=this[r+u]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i};a.prototype.readIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||w(r,t,this.length);for(var i=t,o=1,u=this[r+--i];i>0&&(o*=256);)u+=this[r+--i]*o;return o*=128,u>=o&&(u-=Math.pow(2,8*t)),u};a.prototype.readInt8=function(r,t){return r=r>>>0,t||w(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};a.prototype.readInt16LE=function(r,t){r=r>>>0,t||w(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};a.prototype.readInt16BE=function(r,t){r=r>>>0,t||w(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};a.prototype.readInt32LE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};a.prototype.readInt32BE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};a.prototype.readFloatLE=function(r,t){return r=r>>>0,t||w(r,4,this.length),M.read(this,r,!0,23,4)};a.prototype.readFloatBE=function(r,t){return r=r>>>0,t||w(r,4,this.length),M.read(this,r,!1,23,4)};a.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||w(r,8,this.length),M.read(this,r,!0,52,8)};a.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||w(r,8,this.length),M.read(this,r,!1,52,8)};function y(e,r,t,n,i,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<o)throw new RangeError('"value" argument is out of bounds');if(t+n>e.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;y(this,r,t,n,o,0)}var u=1,h=0;for(this[t]=r&255;++h<n&&(u*=256);)this[t+h]=r/u&255;return t+n};a.prototype.writeUintBE=a.prototype.writeUIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;y(this,r,t,n,o,0)}var u=n-1,h=1;for(this[t+u]=r&255;--u>=0&&(h*=256);)this[t+u]=r/h&255;return t+n};a.prototype.writeUint8=a.prototype.writeUInt8=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,1,255,0),this[t]=r&255,t+1};a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};a.prototype.writeIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){var o=Math.pow(2,8*n-1);y(this,r,t,n,o-1,-o)}var u=0,h=1,f=0;for(this[t]=r&255;++u<n&&(h*=256);)r<0&&f===0&&this[t+u-1]!==0&&(f=1),this[t+u]=(r/h>>0)-f&255;return t+n};a.prototype.writeIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){var o=Math.pow(2,8*n-1);y(this,r,t,n,o-1,-o)}var u=n-1,h=1,f=0;for(this[t+u]=r&255;--u>=0&&(h*=256);)r<0&&f===0&&this[t+u+1]!==0&&(f=1),this[t+u]=(r/h>>0)-f&255;return t+n};a.prototype.writeInt8=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};a.prototype.writeInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};a.prototype.writeInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||y(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function wr(e,r,t,n,i,o){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function yr(e,r,t,n,i){return r=+r,t=t>>>0,i||wr(e,r,t,4,34028234663852886e22,-34028234663852886e22),M.write(e,r,t,n,23,4),t+4}a.prototype.writeFloatLE=function(r,t,n){return yr(this,r,t,!0,n)};a.prototype.writeFloatBE=function(r,t,n){return yr(this,r,t,!1,n)};function xr(e,r,t,n,i){return r=+r,t=t>>>0,i||wr(e,r,t,8,17976931348623157e292,-17976931348623157e292),M.write(e,r,t,n,52,8),t+8}a.prototype.writeDoubleLE=function(r,t,n){return xr(this,r,t,!0,n)};a.prototype.writeDoubleBE=function(r,t,n){return xr(this,r,t,!1,n)};a.prototype.copy=function(r,t,n,i){if(!a.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=r.length&&(t=r.length),t||(t=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(t<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),r.length-t<i-n&&(i=r.length-t+n);var o=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),t),o};a.prototype.fill=function(r,t,n,i){if(typeof r=="string"){if(typeof t=="string"?(i=t,t=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"&&!a.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){var o=r.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(r=o)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var u;if(typeof r=="number")for(u=t;u<n;++u)this[u]=r;else{var h=a.isBuffer(r)?r:a.from(r,i),f=h.length;if(f===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(u=0;u<n-t;++u)this[u+t]=h[u%f]}return this};var ht=/[^+/0-9A-Za-z-_]/g;function ft(e){if(e=e.split("=")[0],e=e.trim().replace(ht,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function P(e,r){r=r||1/0;for(var t,n=e.length,i=null,o=[],u=0;u<n;++u){if(t=e.charCodeAt(u),t>55295&&t<57344){if(!i){if(t>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(u+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=t;continue}if(t<56320){(r-=3)>-1&&o.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=null,t<128){if((r-=1)<0)break;o.push(t)}else if(t<2048){if((r-=2)<0)break;o.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;o.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return o}function pt(e){for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function ct(e,r){for(var t,n,i,o=[],u=0;u<e.length&&!((r-=2)<0);++u)t=e.charCodeAt(u),n=t>>8,i=t%256,o.push(i),o.push(n);return o}function mr(e){return q.toByteArray(ft(e))}function O(e,r,t,n){for(var i=0;i<n&&!(i+t>=r.length||i>=e.length);++i)r[i+t]=e[i];return i}function A(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function Z(e){return e!==e}var lt=function(){for(var e="0123456789abcdef",r=new Array(256),t=0;t<16;++t)for(var n=t*16,i=0;i<16;++i)r[n+i]=e[t]+e[i];return r}()});var vr=W((At,Br)=>{m();var s=Br.exports={},B,v;function $(){throw new Error("setTimeout has not been defined")}function j(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?B=setTimeout:B=$}catch(e){B=$}try{typeof clearTimeout=="function"?v=clearTimeout:v=j}catch(e){v=j}})();function Fr(e){if(B===setTimeout)return setTimeout(e,0);if((B===$||!B)&&setTimeout)return B=setTimeout,setTimeout(e,0);try{return B(e,0)}catch(r){try{return B.call(null,e,0)}catch(t){return B.call(this,e,0)}}}function st(e){if(v===clearTimeout)return clearTimeout(e);if((v===j||!v)&&clearTimeout)return v=clearTimeout,clearTimeout(e);try{return v(e)}catch(r){try{return v.call(null,e)}catch(t){return v.call(this,e)}}}var U=[],k=!1,S,V=-1;function wt(){!k||!S||(k=!1,S.length?U=S.concat(U):V=-1,U.length&&gr())}function gr(){if(!k){var e=Fr(wt);k=!0;for(var r=U.length;r;){for(S=U,U=[];++V<r;)S&&S[V].run();V=-1,r=U.length}S=null,k=!1,st(e)}}s.nextTick=function(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];U.push(new Ar(e,r)),U.length===1&&!k&&Fr(gr)};function Ar(e,r){this.fun=e,this.array=r}Ar.prototype.run=function(){this.fun.apply(null,this.array)};s.title="browser";s.browser=!0;s.env={};s.argv=[];s.version="";s.versions={};function I(){}s.on=I;s.addListener=I;s.once=I;s.off=I;s.removeListener=I;s.removeAllListeners=I;s.emit=I;s.prependListener=I;s.prependOnceListener=I;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 R,L,Bt,m=Dr(()=>{R=tr(Er()),L=tr(vr()),Bt=function(e){function r(){var n=this||self;return delete e.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return r();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:r});var t=__magic__;return t}(Object)});var xt={};kr(xt,{CROSS_SHARD_MAX_TOAST_WIDTH_PERCENT_DECREASE:()=>Ir,PROGRESS_INTERVAL_DURATION_MS:()=>dr,SAME_SHARD_MAX_TOAST_WIDTH_PERCENT_DECREASE:()=>Ur,getRemainingValue:()=>yt});module.exports=br(xt);m();m();var Tr=e=>Math.exp(e/100);var Ur=75,Ir=25,dr=100,yt=({remaining:e,totalSeconds:r,isCrossShard:t})=>{let n=t?Ir:Ur,i=dr/1e3,o=1/(r*i),u=Math.min(Tr(e)-1,o),h=e>=100-n?o:u;return e-h};0&&(module.exports={CROSS_SHARD_MAX_TOAST_WIDTH_PERCENT_DECREASE,PROGRESS_INTERVAL_DURATION_MS,SAME_SHARD_MAX_TOAST_WIDTH_PERCENT_DECREASE,getRemainingValue});
2
+ /*!
3
+ * The buffer module from node.js, for the browser.
4
+ *
5
+ * @author Feross Aboukhadijeh <https://feross.org>
6
+ * @license MIT
7
+ */
8
+ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
9
+ //# sourceMappingURL=getRemainingValue.js.map
@@ -0,0 +1,9 @@
1
+ "use strict";var Sr=Object.create;var N=Object.defineProperty;var _r=Object.getOwnPropertyDescriptor;var Rr=Object.getOwnPropertyNames;var Lr=Object.getPrototypeOf,Mr=Object.prototype.hasOwnProperty;var Dr=(e,r)=>()=>(e&&(r=e(e=0)),r);var W=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),kr=(e,r)=>{for(var t in r)N(e,t,{get:r[t],enumerable:!0})},rr=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Rr(r))!Mr.call(e,i)&&i!==t&&N(e,i,{get:()=>r[i],enumerable:!(n=_r(r,i))||n.enumerable});return e};var tr=(e,r,t)=>(t=e!=null?Sr(Lr(e)):{},rr(r||!e||!e.__esModule?N(t,"default",{value:e,enumerable:!0}):t,e)),br=e=>rr(N({},"__esModule",{value:!0}),e);var ir=W(H=>{"use strict";y();H.byteLength=Wr;H.toByteArray=Gr;H.fromByteArray=Xr;var g=[],E=[],Nr=typeof Uint8Array!="undefined"?Uint8Array:Array,X="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(d=0,er=X.length;d<er;++d)g[d]=X[d],E[X.charCodeAt(d)]=d;var d,er;E["-".charCodeAt(0)]=62;E["_".charCodeAt(0)]=63;function nr(e){var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var n=t===r?0:4-t%4;return[t,n]}function Wr(e){var r=nr(e),t=r[0],n=r[1];return(t+n)*3/4-n}function Hr(e,r,t){return(r+t)*3/4-t}function Gr(e){var r,t=nr(e),n=t[0],i=t[1],o=new Nr(Hr(e,n,i)),u=0,h=i>0?n-4:n,f;for(f=0;f<h;f+=4)r=E[e.charCodeAt(f)]<<18|E[e.charCodeAt(f+1)]<<12|E[e.charCodeAt(f+2)]<<6|E[e.charCodeAt(f+3)],o[u++]=r>>16&255,o[u++]=r>>8&255,o[u++]=r&255;return i===2&&(r=E[e.charCodeAt(f)]<<2|E[e.charCodeAt(f+1)]>>4,o[u++]=r&255),i===1&&(r=E[e.charCodeAt(f)]<<10|E[e.charCodeAt(f+1)]<<4|E[e.charCodeAt(f+2)]>>2,o[u++]=r>>8&255,o[u++]=r&255),o}function Or(e){return g[e>>18&63]+g[e>>12&63]+g[e>>6&63]+g[e&63]}function Vr(e,r,t){for(var n,i=[],o=r;o<t;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),i.push(Or(n));return i.join("")}function Xr(e){for(var r,t=e.length,n=t%3,i=[],o=16383,u=0,h=t-n;u<h;u+=o)i.push(Vr(e,u,u+o>h?h:u+o));return n===1?(r=e[t-1],i.push(g[r>>2]+g[r<<4&63]+"==")):n===2&&(r=(e[t-2]<<8)+e[t-1],i.push(g[r>>10]+g[r>>4&63]+g[r<<2&63]+"=")),i.join("")}});var or=W(Y=>{y();Y.read=function(e,r,t,n,i){var o,u,h=i*8-n-1,f=(1<<h)-1,c=f>>1,l=-7,p=t?i-1:0,F=t?-1:1,m=e[r+p];for(p+=F,o=m&(1<<-l)-1,m>>=-l,l+=h;l>0;o=o*256+e[r+p],p+=F,l-=8);for(u=o&(1<<-l)-1,o>>=-l,l+=n;l>0;u=u*256+e[r+p],p+=F,l-=8);if(o===0)o=1-c;else{if(o===f)return u?NaN:(m?-1:1)*(1/0);u=u+Math.pow(2,n),o=o-c}return(m?-1:1)*u*Math.pow(2,o-n)};Y.write=function(e,r,t,n,i,o){var u,h,f,c=o*8-i-1,l=(1<<c)-1,p=l>>1,F=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=n?0:o-1,L=n?1:-1,Cr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(h=isNaN(r)?1:0,u=l):(u=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-u))<1&&(u--,f*=2),u+p>=1?r+=F/f:r+=F*Math.pow(2,1-p),r*f>=2&&(u++,f/=2),u+p>=l?(h=0,u=l):u+p>=1?(h=(r*f-1)*Math.pow(2,i),u=u+p):(h=r*Math.pow(2,p-1)*Math.pow(2,i),u=0));i>=8;e[t+m]=h&255,m+=L,h/=256,i-=8);for(u=u<<i|h,c+=i;c>0;e[t+m]=u&255,m+=L,u/=256,c-=8);e[t+m-L]|=Cr*128}});var Er=W(k=>{"use strict";y();var q=ir(),D=or(),ur=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;k.Buffer=a;k.SlowBuffer=Qr;k.INSPECT_MAX_BYTES=50;var G=2147483647;k.kMaxLength=G;a.TYPED_ARRAY_SUPPORT=Yr();!a.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Yr(){try{var e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(t){return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.buffer}});Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.byteOffset}});function T(e){if(e>G)throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=new Uint8Array(e);return Object.setPrototypeOf(r,a.prototype),r}function a(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Q(e)}return fr(e,r,t)}a.poolSize=8192;function fr(e,r,t){if(typeof e=="string")return zr(e,r);if(ArrayBuffer.isView(e))return Jr(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(A(e,ArrayBuffer)||e&&A(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(A(e,SharedArrayBuffer)||e&&A(e.buffer,SharedArrayBuffer)))return J(e,r,t);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 a.from(n,r,t);var i=Pr(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return a.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}a.from=function(e,r,t){return fr(e,r,t)};Object.setPrototypeOf(a.prototype,Uint8Array.prototype);Object.setPrototypeOf(a,Uint8Array);function pr(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 qr(e,r,t){return pr(e),e<=0?T(e):r!==void 0?typeof t=="string"?T(e).fill(r,t):T(e).fill(r):T(e)}a.alloc=function(e,r,t){return qr(e,r,t)};function Q(e){return pr(e),T(e<0?0:K(e)|0)}a.allocUnsafe=function(e){return Q(e)};a.allocUnsafeSlow=function(e){return Q(e)};function zr(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var t=cr(e,r)|0,n=T(t),i=n.write(e,r);return i!==t&&(n=n.slice(0,i)),n}function z(e){for(var r=e.length<0?0:K(e.length)|0,t=T(r),n=0;n<r;n+=1)t[n]=e[n]&255;return t}function Jr(e){if(A(e,Uint8Array)){var r=new Uint8Array(e);return J(r.buffer,r.byteOffset,r.byteLength)}return z(e)}function J(e,r,t){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');var n;return r===void 0&&t===void 0?n=new Uint8Array(e):t===void 0?n=new Uint8Array(e,r):n=new Uint8Array(e,r,t),Object.setPrototypeOf(n,a.prototype),n}function Pr(e){if(a.isBuffer(e)){var r=K(e.length)|0,t=T(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||Z(e.length)?T(0):z(e);if(e.type==="Buffer"&&Array.isArray(e.data))return z(e.data)}function K(e){if(e>=G)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+G.toString(16)+" bytes");return e|0}function Qr(e){return+e!=e&&(e=0),a.alloc(+e)}a.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==a.prototype};a.compare=function(r,t){if(A(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),A(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(r)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;for(var n=r.length,i=t.length,o=0,u=Math.min(n,i);o<u;++o)if(r[o]!==t[o]){n=r[o],i=t[o];break}return n<i?-1:i<n?1:0};a.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};a.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return a.alloc(0);var n;if(t===void 0)for(t=0,n=0;n<r.length;++n)t+=r[n].length;var i=a.allocUnsafe(t),o=0;for(n=0;n<r.length;++n){var u=r[n];if(A(u,Uint8Array))o+u.length>i.length?a.from(u).copy(i,o):Uint8Array.prototype.set.call(i,u,o);else if(a.isBuffer(u))u.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=u.length}return i};function cr(e,r){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||A(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var t=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return P(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return mr(e).length;default:if(i)return n?-1:P(e).length;r=(""+r).toLowerCase(),i=!0}}a.byteLength=cr;function Kr(e,r,t){var n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return ut(this,r,t);case"utf8":case"utf-8":return sr(this,r,t);case"ascii":return it(this,r,t);case"latin1":case"binary":return ot(this,r,t);case"base64":return et(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return at(this,r,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}a.prototype._isBuffer=!0;function _(e,r,t){var n=e[r];e[r]=e[t],e[t]=n}a.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<r;t+=2)_(this,t,t+1);return this};a.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<r;t+=4)_(this,t,t+3),_(this,t+1,t+2);return this};a.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<r;t+=8)_(this,t,t+7),_(this,t+1,t+6),_(this,t+2,t+5),_(this,t+3,t+4);return this};a.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?sr(this,0,r):Kr.apply(this,arguments)};a.prototype.toLocaleString=a.prototype.toString;a.prototype.equals=function(r){if(!a.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:a.compare(this,r)===0};a.prototype.inspect=function(){var r="",t=k.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};ur&&(a.prototype[ur]=a.prototype.inspect);a.prototype.compare=function(r,t,n,i,o){if(A(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),!a.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),t<0||n>r.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&t>=n)return 0;if(i>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,o>>>=0,this===r)return 0;for(var u=o-i,h=n-t,f=Math.min(u,h),c=this.slice(i,o),l=r.slice(t,n),p=0;p<f;++p)if(c[p]!==l[p]){u=c[p],h=l[p];break}return u<h?-1:h<u?1:0};function lr(e,r,t,n,i){if(e.length===0)return-1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,Z(t)&&(t=i?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(i)return-1;t=e.length-1}else if(t<0)if(i)t=0;else return-1;if(typeof r=="string"&&(r=a.from(r,n)),a.isBuffer(r))return r.length===0?-1:ar(e,r,t,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):ar(e,[r],t,n,i);throw new TypeError("val must be string, number or Buffer")}function ar(e,r,t,n,i){var o=1,u=e.length,h=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||r.length<2)return-1;o=2,u/=2,h/=2,t/=2}function f(m,L){return o===1?m[L]:m.readUInt16BE(L*o)}var c;if(i){var l=-1;for(c=t;c<u;c++)if(f(e,c)===f(r,l===-1?0:c-l)){if(l===-1&&(l=c),c-l+1===h)return l*o}else l!==-1&&(c-=c-l),l=-1}else for(t+h>u&&(t=u-h),c=t;c>=0;c--){for(var p=!0,F=0;F<h;F++)if(f(e,c+F)!==f(r,F)){p=!1;break}if(p)return c}return-1}a.prototype.includes=function(r,t,n){return this.indexOf(r,t,n)!==-1};a.prototype.indexOf=function(r,t,n){return lr(this,r,t,n,!0)};a.prototype.lastIndexOf=function(r,t,n){return lr(this,r,t,n,!1)};function Zr(e,r,t,n){t=Number(t)||0;var i=e.length-t;n?(n=Number(n),n>i&&(n=i)):n=i;var o=r.length;n>o/2&&(n=o/2);for(var u=0;u<n;++u){var h=parseInt(r.substr(u*2,2),16);if(Z(h))return u;e[t+u]=h}return u}function $r(e,r,t,n){return O(P(r,e.length-t),e,t,n)}function jr(e,r,t,n){return O(pt(r),e,t,n)}function rt(e,r,t,n){return O(mr(r),e,t,n)}function tt(e,r,t,n){return O(ct(r,e.length-t),e,t,n)}a.prototype.write=function(r,t,n,i){if(t===void 0)i="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")i=t,n=this.length,t=0;else if(isFinite(t))t=t>>>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 o=this.length-t;if((n===void 0||n>o)&&(n=o),r.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var u=!1;;)switch(i){case"hex":return Zr(this,r,t,n);case"utf8":case"utf-8":return $r(this,r,t,n);case"ascii":case"latin1":case"binary":return jr(this,r,t,n);case"base64":return rt(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return tt(this,r,t,n);default:if(u)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),u=!0}};a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function et(e,r,t){return r===0&&t===e.length?q.fromByteArray(e):q.fromByteArray(e.slice(r,t))}function sr(e,r,t){t=Math.min(e.length,t);for(var n=[],i=r;i<t;){var o=e[i],u=null,h=o>239?4:o>223?3:o>191?2:1;if(i+h<=t){var f,c,l,p;switch(h){case 1:o<128&&(u=o);break;case 2:f=e[i+1],(f&192)===128&&(p=(o&31)<<6|f&63,p>127&&(u=p));break;case 3:f=e[i+1],c=e[i+2],(f&192)===128&&(c&192)===128&&(p=(o&15)<<12|(f&63)<<6|c&63,p>2047&&(p<55296||p>57343)&&(u=p));break;case 4:f=e[i+1],c=e[i+2],l=e[i+3],(f&192)===128&&(c&192)===128&&(l&192)===128&&(p=(o&15)<<18|(f&63)<<12|(c&63)<<6|l&63,p>65535&&p<1114112&&(u=p))}}u===null?(u=65533,h=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|u&1023),n.push(u),i+=h}return nt(n)}var hr=4096;function nt(e){var r=e.length;if(r<=hr)return String.fromCharCode.apply(String,e);for(var t="",n=0;n<r;)t+=String.fromCharCode.apply(String,e.slice(n,n+=hr));return t}function it(e,r,t){var n="";t=Math.min(e.length,t);for(var i=r;i<t;++i)n+=String.fromCharCode(e[i]&127);return n}function ot(e,r,t){var n="";t=Math.min(e.length,t);for(var i=r;i<t;++i)n+=String.fromCharCode(e[i]);return n}function ut(e,r,t){var n=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>n)&&(t=n);for(var i="",o=r;o<t;++o)i+=lt[e[o]];return i}function at(e,r,t){for(var n=e.slice(r,t),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}a.prototype.slice=function(r,t){var n=this.length;r=~~r,t=t===void 0?n:~~t,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<r&&(t=r);var i=this.subarray(r,t);return Object.setPrototypeOf(i,a.prototype),i};function w(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||w(r,t,this.length);for(var i=this[r],o=1,u=0;++u<t&&(o*=256);)i+=this[r+u]*o;return i};a.prototype.readUintBE=a.prototype.readUIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||w(r,t,this.length);for(var i=this[r+--t],o=1;t>0&&(o*=256);)i+=this[r+--t]*o;return i};a.prototype.readUint8=a.prototype.readUInt8=function(r,t){return r=r>>>0,t||w(r,1,this.length),this[r]};a.prototype.readUint16LE=a.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||w(r,2,this.length),this[r]|this[r+1]<<8};a.prototype.readUint16BE=a.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||w(r,2,this.length),this[r]<<8|this[r+1]};a.prototype.readUint32LE=a.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||w(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};a.prototype.readUint32BE=a.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};a.prototype.readIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||w(r,t,this.length);for(var i=this[r],o=1,u=0;++u<t&&(o*=256);)i+=this[r+u]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i};a.prototype.readIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||w(r,t,this.length);for(var i=t,o=1,u=this[r+--i];i>0&&(o*=256);)u+=this[r+--i]*o;return o*=128,u>=o&&(u-=Math.pow(2,8*t)),u};a.prototype.readInt8=function(r,t){return r=r>>>0,t||w(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};a.prototype.readInt16LE=function(r,t){r=r>>>0,t||w(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};a.prototype.readInt16BE=function(r,t){r=r>>>0,t||w(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};a.prototype.readInt32LE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};a.prototype.readInt32BE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};a.prototype.readFloatLE=function(r,t){return r=r>>>0,t||w(r,4,this.length),D.read(this,r,!0,23,4)};a.prototype.readFloatBE=function(r,t){return r=r>>>0,t||w(r,4,this.length),D.read(this,r,!1,23,4)};a.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||w(r,8,this.length),D.read(this,r,!0,52,8)};a.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||w(r,8,this.length),D.read(this,r,!1,52,8)};function x(e,r,t,n,i,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<o)throw new RangeError('"value" argument is out of bounds');if(t+n>e.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;x(this,r,t,n,o,0)}var u=1,h=0;for(this[t]=r&255;++h<n&&(u*=256);)this[t+h]=r/u&255;return t+n};a.prototype.writeUintBE=a.prototype.writeUIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;x(this,r,t,n,o,0)}var u=n-1,h=1;for(this[t+u]=r&255;--u>=0&&(h*=256);)this[t+u]=r/h&255;return t+n};a.prototype.writeUint8=a.prototype.writeUInt8=function(r,t,n){return r=+r,t=t>>>0,n||x(this,r,t,1,255,0),this[t]=r&255,t+1};a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||x(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||x(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||x(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||x(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};a.prototype.writeIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){var o=Math.pow(2,8*n-1);x(this,r,t,n,o-1,-o)}var u=0,h=1,f=0;for(this[t]=r&255;++u<n&&(h*=256);)r<0&&f===0&&this[t+u-1]!==0&&(f=1),this[t+u]=(r/h>>0)-f&255;return t+n};a.prototype.writeIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){var o=Math.pow(2,8*n-1);x(this,r,t,n,o-1,-o)}var u=n-1,h=1,f=0;for(this[t+u]=r&255;--u>=0&&(h*=256);)r<0&&f===0&&this[t+u+1]!==0&&(f=1),this[t+u]=(r/h>>0)-f&255;return t+n};a.prototype.writeInt8=function(r,t,n){return r=+r,t=t>>>0,n||x(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};a.prototype.writeInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||x(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||x(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||x(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};a.prototype.writeInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||x(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function wr(e,r,t,n,i,o){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function yr(e,r,t,n,i){return r=+r,t=t>>>0,i||wr(e,r,t,4,34028234663852886e22,-34028234663852886e22),D.write(e,r,t,n,23,4),t+4}a.prototype.writeFloatLE=function(r,t,n){return yr(this,r,t,!0,n)};a.prototype.writeFloatBE=function(r,t,n){return yr(this,r,t,!1,n)};function xr(e,r,t,n,i){return r=+r,t=t>>>0,i||wr(e,r,t,8,17976931348623157e292,-17976931348623157e292),D.write(e,r,t,n,52,8),t+8}a.prototype.writeDoubleLE=function(r,t,n){return xr(this,r,t,!0,n)};a.prototype.writeDoubleBE=function(r,t,n){return xr(this,r,t,!1,n)};a.prototype.copy=function(r,t,n,i){if(!a.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=r.length&&(t=r.length),t||(t=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(t<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),r.length-t<i-n&&(i=r.length-t+n);var o=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),t),o};a.prototype.fill=function(r,t,n,i){if(typeof r=="string"){if(typeof t=="string"?(i=t,t=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"&&!a.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){var o=r.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(r=o)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var u;if(typeof r=="number")for(u=t;u<n;++u)this[u]=r;else{var h=a.isBuffer(r)?r:a.from(r,i),f=h.length;if(f===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(u=0;u<n-t;++u)this[u+t]=h[u%f]}return this};var ht=/[^+/0-9A-Za-z-_]/g;function ft(e){if(e=e.split("=")[0],e=e.trim().replace(ht,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function P(e,r){r=r||1/0;for(var t,n=e.length,i=null,o=[],u=0;u<n;++u){if(t=e.charCodeAt(u),t>55295&&t<57344){if(!i){if(t>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(u+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=t;continue}if(t<56320){(r-=3)>-1&&o.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=null,t<128){if((r-=1)<0)break;o.push(t)}else if(t<2048){if((r-=2)<0)break;o.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;o.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return o}function pt(e){for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function ct(e,r){for(var t,n,i,o=[],u=0;u<e.length&&!((r-=2)<0);++u)t=e.charCodeAt(u),n=t>>8,i=t%256,o.push(i),o.push(n);return o}function mr(e){return q.toByteArray(ft(e))}function O(e,r,t,n){for(var i=0;i<n&&!(i+t>=r.length||i>=e.length);++i)r[i+t]=e[i];return i}function A(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function Z(e){return e!==e}var lt=function(){for(var e="0123456789abcdef",r=new Array(256),t=0;t<16;++t)for(var n=t*16,i=0;i<16;++i)r[n+i]=e[t]+e[i];return r}()});var vr=W((At,Br)=>{y();var s=Br.exports={},B,v;function $(){throw new Error("setTimeout has not been defined")}function j(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?B=setTimeout:B=$}catch(e){B=$}try{typeof clearTimeout=="function"?v=clearTimeout:v=j}catch(e){v=j}})();function Fr(e){if(B===setTimeout)return setTimeout(e,0);if((B===$||!B)&&setTimeout)return B=setTimeout,setTimeout(e,0);try{return B(e,0)}catch(r){try{return B.call(null,e,0)}catch(t){return B.call(this,e,0)}}}function st(e){if(v===clearTimeout)return clearTimeout(e);if((v===j||!v)&&clearTimeout)return v=clearTimeout,clearTimeout(e);try{return v(e)}catch(r){try{return v.call(null,e)}catch(t){return v.call(this,e)}}}var U=[],b=!1,R,V=-1;function wt(){!b||!R||(b=!1,R.length?U=R.concat(U):V=-1,U.length&&gr())}function gr(){if(!b){var e=Fr(wt);b=!0;for(var r=U.length;r;){for(R=U,U=[];++V<r;)R&&R[V].run();V=-1,r=U.length}R=null,b=!1,st(e)}}s.nextTick=function(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];U.push(new Ar(e,r)),U.length===1&&!b&&Fr(gr)};function Ar(e,r){this.fun=e,this.array=r}Ar.prototype.run=function(){this.fun.apply(null,this.array)};s.title="browser";s.browser=!0;s.env={};s.argv=[];s.version="";s.versions={};function I(){}s.on=I;s.addListener=I;s.once=I;s.off=I;s.removeListener=I;s.removeAllListeners=I;s.emit=I;s.prependListener=I;s.prependOnceListener=I;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 C,S,Bt,y=Dr(()=>{C=tr(Er()),S=tr(vr()),Bt=function(e){function r(){var n=this||self;return delete e.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return r();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:r});var t=__magic__;return t}(Object)});var xt={};kr(xt,{CROSS_SHARD_MAX_TOAST_WIDTH_PERCENT_DECREASE:()=>Ir,PROGRESS_INTERVAL_DURATION_MS:()=>dr,SAME_SHARD_MAX_TOAST_WIDTH_PERCENT_DECREASE:()=>Ur,getRemainingValue:()=>yt});module.exports=br(xt);y();y();y();var Tr=e=>Math.exp(e/100);var Ur=75,Ir=25,dr=100,yt=({remaining:e,totalSeconds:r,isCrossShard:t})=>{let n=t?Ir:Ur,i=dr/1e3,o=1/(r*i),u=Math.min(Tr(e)-1,o),h=e>=100-n?o:u;return e-h};0&&(module.exports={CROSS_SHARD_MAX_TOAST_WIDTH_PERCENT_DECREASE,PROGRESS_INTERVAL_DURATION_MS,SAME_SHARD_MAX_TOAST_WIDTH_PERCENT_DECREASE,getRemainingValue});
2
+ /*!
3
+ * The buffer module from node.js, for the browser.
4
+ *
5
+ * @author Feross Aboukhadijeh <https://feross.org>
6
+ * @license MIT
7
+ */
8
+ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
9
+ //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- "use strict";var Tr=Object.create;var b=Object.defineProperty;var Ir=Object.getOwnPropertyDescriptor;var dr=Object.getOwnPropertyNames;var Cr=Object.getPrototypeOf,Lr=Object.prototype.hasOwnProperty;var Sr=(e,r)=>()=>(e&&(r=e(e=0)),r);var N=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Rr=(e,r)=>{for(var t in r)b(e,t,{get:r[t],enumerable:!0})},rr=(e,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of dr(r))!Lr.call(e,n)&&n!==t&&b(e,n,{get:()=>r[n],enumerable:!(i=Ir(r,n))||i.enumerable});return e};var tr=(e,r,t)=>(t=e!=null?Tr(Cr(e)):{},rr(r||!e||!e.__esModule?b(t,"default",{value:e,enumerable:!0}):t,e)),Mr=e=>rr(b({},"__esModule",{value:!0}),e);var nr=N(W=>{"use strict";F();W.byteLength=kr;W.toByteArray=br;W.fromByteArray=qr;var g=[],m=[],_r=typeof Uint8Array!="undefined"?Uint8Array:Array,$="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(d=0,er=$.length;d<er;++d)g[d]=$[d],m[$.charCodeAt(d)]=d;var d,er;m["-".charCodeAt(0)]=62;m["_".charCodeAt(0)]=63;function ir(e){var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var i=t===r?0:4-t%4;return[t,i]}function kr(e){var r=ir(e),t=r[0],i=r[1];return(t+i)*3/4-i}function Dr(e,r,t){return(r+t)*3/4-t}function br(e){var r,t=ir(e),i=t[0],n=t[1],o=new _r(Dr(e,i,n)),u=0,h=n>0?i-4:i,f;for(f=0;f<h;f+=4)r=m[e.charCodeAt(f)]<<18|m[e.charCodeAt(f+1)]<<12|m[e.charCodeAt(f+2)]<<6|m[e.charCodeAt(f+3)],o[u++]=r>>16&255,o[u++]=r>>8&255,o[u++]=r&255;return n===2&&(r=m[e.charCodeAt(f)]<<2|m[e.charCodeAt(f+1)]>>4,o[u++]=r&255),n===1&&(r=m[e.charCodeAt(f)]<<10|m[e.charCodeAt(f+1)]<<4|m[e.charCodeAt(f+2)]>>2,o[u++]=r>>8&255,o[u++]=r&255),o}function Nr(e){return g[e>>18&63]+g[e>>12&63]+g[e>>6&63]+g[e&63]}function Wr(e,r,t){for(var i,n=[],o=r;o<t;o+=3)i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),n.push(Nr(i));return n.join("")}function qr(e){for(var r,t=e.length,i=t%3,n=[],o=16383,u=0,h=t-i;u<h;u+=o)n.push(Wr(e,u,u+o>h?h:u+o));return i===1?(r=e[t-1],n.push(g[r>>2]+g[r<<4&63]+"==")):i===2&&(r=(e[t-2]<<8)+e[t-1],n.push(g[r>>10]+g[r>>4&63]+g[r<<2&63]+"=")),n.join("")}});var or=N(z=>{F();z.read=function(e,r,t,i,n){var o,u,h=n*8-i-1,f=(1<<h)-1,c=f>>1,l=-7,p=t?n-1:0,E=t?-1:1,x=e[r+p];for(p+=E,o=x&(1<<-l)-1,x>>=-l,l+=h;l>0;o=o*256+e[r+p],p+=E,l-=8);for(u=o&(1<<-l)-1,o>>=-l,l+=i;l>0;u=u*256+e[r+p],p+=E,l-=8);if(o===0)o=1-c;else{if(o===f)return u?NaN:(x?-1:1)*(1/0);u=u+Math.pow(2,i),o=o-c}return(x?-1:1)*u*Math.pow(2,o-i)};z.write=function(e,r,t,i,n,o){var u,h,f,c=o*8-n-1,l=(1<<c)-1,p=l>>1,E=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=i?0:o-1,S=i?1:-1,Ur=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(h=isNaN(r)?1:0,u=l):(u=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-u))<1&&(u--,f*=2),u+p>=1?r+=E/f:r+=E*Math.pow(2,1-p),r*f>=2&&(u++,f/=2),u+p>=l?(h=0,u=l):u+p>=1?(h=(r*f-1)*Math.pow(2,n),u=u+p):(h=r*Math.pow(2,p-1)*Math.pow(2,n),u=0));n>=8;e[t+x]=h&255,x+=S,h/=256,n-=8);for(u=u<<n|h,c+=n;c>0;e[t+x]=u&255,x+=S,u/=256,c-=8);e[t+x-S]|=Ur*128}});var Er=N(M=>{"use strict";F();var G=nr(),R=or(),ur=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;M.Buffer=a;M.SlowBuffer=Gr;M.INSPECT_MAX_BYTES=50;var Y=2147483647;M.kMaxLength=Y;a.TYPED_ARRAY_SUPPORT=Yr();!a.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Yr(){try{var e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(t){return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.buffer}});Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.byteOffset}});function U(e){if(e>Y)throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=new Uint8Array(e);return Object.setPrototypeOf(r,a.prototype),r}function a(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return K(e)}return fr(e,r,t)}a.poolSize=8192;function fr(e,r,t){if(typeof e=="string")return Xr(e,r);if(ArrayBuffer.isView(e))return $r(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(B(e,ArrayBuffer)||e&&B(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(B(e,SharedArrayBuffer)||e&&B(e.buffer,SharedArrayBuffer)))return Q(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(i!=null&&i!==e)return a.from(i,r,t);var n=zr(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return a.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}a.from=function(e,r,t){return fr(e,r,t)};Object.setPrototypeOf(a.prototype,Uint8Array.prototype);Object.setPrototypeOf(a,Uint8Array);function pr(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 Hr(e,r,t){return pr(e),e<=0?U(e):r!==void 0?typeof t=="string"?U(e).fill(r,t):U(e).fill(r):U(e)}a.alloc=function(e,r,t){return Hr(e,r,t)};function K(e){return pr(e),U(e<0?0:O(e)|0)}a.allocUnsafe=function(e){return K(e)};a.allocUnsafeSlow=function(e){return K(e)};function Xr(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var t=cr(e,r)|0,i=U(t),n=i.write(e,r);return n!==t&&(i=i.slice(0,n)),i}function J(e){for(var r=e.length<0?0:O(e.length)|0,t=U(r),i=0;i<r;i+=1)t[i]=e[i]&255;return t}function $r(e){if(B(e,Uint8Array)){var r=new Uint8Array(e);return Q(r.buffer,r.byteOffset,r.byteLength)}return J(e)}function Q(e,r,t){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');var i;return r===void 0&&t===void 0?i=new Uint8Array(e):t===void 0?i=new Uint8Array(e,r):i=new Uint8Array(e,r,t),Object.setPrototypeOf(i,a.prototype),i}function zr(e){if(a.isBuffer(e)){var r=O(e.length)|0,t=U(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||Z(e.length)?U(0):J(e);if(e.type==="Buffer"&&Array.isArray(e.data))return J(e.data)}function O(e){if(e>=Y)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Y.toString(16)+" bytes");return e|0}function Gr(e){return+e!=e&&(e=0),a.alloc(+e)}a.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==a.prototype};a.compare=function(r,t){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),B(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(r)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;for(var i=r.length,n=t.length,o=0,u=Math.min(i,n);o<u;++o)if(r[o]!==t[o]){i=r[o],n=t[o];break}return i<n?-1:n<i?1:0};a.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};a.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return a.alloc(0);var i;if(t===void 0)for(t=0,i=0;i<r.length;++i)t+=r[i].length;var n=a.allocUnsafe(t),o=0;for(i=0;i<r.length;++i){var u=r[i];if(B(u,Uint8Array))o+u.length>n.length?a.from(u).copy(n,o):Uint8Array.prototype.set.call(n,u,o);else if(a.isBuffer(u))u.copy(n,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=u.length}return n};function cr(e,r){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||B(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var t=e.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&t===0)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return mr(e).length;default:if(n)return i?-1:V(e).length;r=(""+r).toLowerCase(),n=!0}}a.byteLength=cr;function Jr(e,r,t){var i=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return et(this,r,t);case"utf8":case"utf-8":return sr(this,r,t);case"ascii":return rt(this,r,t);case"latin1":case"binary":return tt(this,r,t);case"base64":return Pr(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return it(this,r,t);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}a.prototype._isBuffer=!0;function C(e,r,t){var i=e[r];e[r]=e[t],e[t]=i}a.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<r;t+=2)C(this,t,t+1);return this};a.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<r;t+=4)C(this,t,t+3),C(this,t+1,t+2);return this};a.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<r;t+=8)C(this,t,t+7),C(this,t+1,t+6),C(this,t+2,t+5),C(this,t+3,t+4);return this};a.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?sr(this,0,r):Jr.apply(this,arguments)};a.prototype.toLocaleString=a.prototype.toString;a.prototype.equals=function(r){if(!a.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:a.compare(this,r)===0};a.prototype.inspect=function(){var r="",t=M.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};ur&&(a.prototype[ur]=a.prototype.inspect);a.prototype.compare=function(r,t,i,n,o){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),!a.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),i===void 0&&(i=r?r.length:0),n===void 0&&(n=0),o===void 0&&(o=this.length),t<0||i>r.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=i)return 0;if(n>=o)return-1;if(t>=i)return 1;if(t>>>=0,i>>>=0,n>>>=0,o>>>=0,this===r)return 0;for(var u=o-n,h=i-t,f=Math.min(u,h),c=this.slice(n,o),l=r.slice(t,i),p=0;p<f;++p)if(c[p]!==l[p]){u=c[p],h=l[p];break}return u<h?-1:h<u?1:0};function lr(e,r,t,i,n){if(e.length===0)return-1;if(typeof t=="string"?(i=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,Z(t)&&(t=n?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(n)return-1;t=e.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof r=="string"&&(r=a.from(r,i)),a.isBuffer(r))return r.length===0?-1:ar(e,r,t,i,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):ar(e,[r],t,i,n);throw new TypeError("val must be string, number or Buffer")}function ar(e,r,t,i,n){var o=1,u=e.length,h=r.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(e.length<2||r.length<2)return-1;o=2,u/=2,h/=2,t/=2}function f(x,S){return o===1?x[S]:x.readUInt16BE(S*o)}var c;if(n){var l=-1;for(c=t;c<u;c++)if(f(e,c)===f(r,l===-1?0:c-l)){if(l===-1&&(l=c),c-l+1===h)return l*o}else l!==-1&&(c-=c-l),l=-1}else for(t+h>u&&(t=u-h),c=t;c>=0;c--){for(var p=!0,E=0;E<h;E++)if(f(e,c+E)!==f(r,E)){p=!1;break}if(p)return c}return-1}a.prototype.includes=function(r,t,i){return this.indexOf(r,t,i)!==-1};a.prototype.indexOf=function(r,t,i){return lr(this,r,t,i,!0)};a.prototype.lastIndexOf=function(r,t,i){return lr(this,r,t,i,!1)};function Qr(e,r,t,i){t=Number(t)||0;var n=e.length-t;i?(i=Number(i),i>n&&(i=n)):i=n;var o=r.length;i>o/2&&(i=o/2);for(var u=0;u<i;++u){var h=parseInt(r.substr(u*2,2),16);if(Z(h))return u;e[t+u]=h}return u}function Vr(e,r,t,i){return H(V(r,e.length-t),e,t,i)}function Kr(e,r,t,i){return H(ut(r),e,t,i)}function Or(e,r,t,i){return H(mr(r),e,t,i)}function Zr(e,r,t,i){return H(at(r,e.length-t),e,t,i)}a.prototype.write=function(r,t,i,n){if(t===void 0)n="utf8",i=this.length,t=0;else if(i===void 0&&typeof t=="string")n=t,i=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(i)?(i=i>>>0,n===void 0&&(n="utf8")):(n=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-t;if((i===void 0||i>o)&&(i=o),r.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var u=!1;;)switch(n){case"hex":return Qr(this,r,t,i);case"utf8":case"utf-8":return Vr(this,r,t,i);case"ascii":case"latin1":case"binary":return Kr(this,r,t,i);case"base64":return Or(this,r,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Zr(this,r,t,i);default:if(u)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),u=!0}};a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Pr(e,r,t){return r===0&&t===e.length?G.fromByteArray(e):G.fromByteArray(e.slice(r,t))}function sr(e,r,t){t=Math.min(e.length,t);for(var i=[],n=r;n<t;){var o=e[n],u=null,h=o>239?4:o>223?3:o>191?2:1;if(n+h<=t){var f,c,l,p;switch(h){case 1:o<128&&(u=o);break;case 2:f=e[n+1],(f&192)===128&&(p=(o&31)<<6|f&63,p>127&&(u=p));break;case 3:f=e[n+1],c=e[n+2],(f&192)===128&&(c&192)===128&&(p=(o&15)<<12|(f&63)<<6|c&63,p>2047&&(p<55296||p>57343)&&(u=p));break;case 4:f=e[n+1],c=e[n+2],l=e[n+3],(f&192)===128&&(c&192)===128&&(l&192)===128&&(p=(o&15)<<18|(f&63)<<12|(c&63)<<6|l&63,p>65535&&p<1114112&&(u=p))}}u===null?(u=65533,h=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|u&1023),i.push(u),n+=h}return jr(i)}var hr=4096;function jr(e){var r=e.length;if(r<=hr)return String.fromCharCode.apply(String,e);for(var t="",i=0;i<r;)t+=String.fromCharCode.apply(String,e.slice(i,i+=hr));return t}function rt(e,r,t){var i="";t=Math.min(e.length,t);for(var n=r;n<t;++n)i+=String.fromCharCode(e[n]&127);return i}function tt(e,r,t){var i="";t=Math.min(e.length,t);for(var n=r;n<t;++n)i+=String.fromCharCode(e[n]);return i}function et(e,r,t){var i=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>i)&&(t=i);for(var n="",o=r;o<t;++o)n+=ht[e[o]];return n}function it(e,r,t){for(var i=e.slice(r,t),n="",o=0;o<i.length-1;o+=2)n+=String.fromCharCode(i[o]+i[o+1]*256);return n}a.prototype.slice=function(r,t){var i=this.length;r=~~r,t=t===void 0?i:~~t,r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t<r&&(t=r);var n=this.subarray(r,t);return Object.setPrototypeOf(n,a.prototype),n};function w(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r],o=1,u=0;++u<t&&(o*=256);)n+=this[r+u]*o;return n};a.prototype.readUintBE=a.prototype.readUIntBE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r+--t],o=1;t>0&&(o*=256);)n+=this[r+--t]*o;return n};a.prototype.readUint8=a.prototype.readUInt8=function(r,t){return r=r>>>0,t||w(r,1,this.length),this[r]};a.prototype.readUint16LE=a.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||w(r,2,this.length),this[r]|this[r+1]<<8};a.prototype.readUint16BE=a.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||w(r,2,this.length),this[r]<<8|this[r+1]};a.prototype.readUint32LE=a.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||w(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};a.prototype.readUint32BE=a.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};a.prototype.readIntLE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r],o=1,u=0;++u<t&&(o*=256);)n+=this[r+u]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*t)),n};a.prototype.readIntBE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=t,o=1,u=this[r+--n];n>0&&(o*=256);)u+=this[r+--n]*o;return o*=128,u>=o&&(u-=Math.pow(2,8*t)),u};a.prototype.readInt8=function(r,t){return r=r>>>0,t||w(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};a.prototype.readInt16LE=function(r,t){r=r>>>0,t||w(r,2,this.length);var i=this[r]|this[r+1]<<8;return i&32768?i|4294901760:i};a.prototype.readInt16BE=function(r,t){r=r>>>0,t||w(r,2,this.length);var i=this[r+1]|this[r]<<8;return i&32768?i|4294901760:i};a.prototype.readInt32LE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};a.prototype.readInt32BE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};a.prototype.readFloatLE=function(r,t){return r=r>>>0,t||w(r,4,this.length),R.read(this,r,!0,23,4)};a.prototype.readFloatBE=function(r,t){return r=r>>>0,t||w(r,4,this.length),R.read(this,r,!1,23,4)};a.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||w(r,8,this.length),R.read(this,r,!0,52,8)};a.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||w(r,8,this.length),R.read(this,r,!1,52,8)};function y(e,r,t,i,n,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||r<o)throw new RangeError('"value" argument is out of bounds');if(t+i>e.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(r,t,i,n){if(r=+r,t=t>>>0,i=i>>>0,!n){var o=Math.pow(2,8*i)-1;y(this,r,t,i,o,0)}var u=1,h=0;for(this[t]=r&255;++h<i&&(u*=256);)this[t+h]=r/u&255;return t+i};a.prototype.writeUintBE=a.prototype.writeUIntBE=function(r,t,i,n){if(r=+r,t=t>>>0,i=i>>>0,!n){var o=Math.pow(2,8*i)-1;y(this,r,t,i,o,0)}var u=i-1,h=1;for(this[t+u]=r&255;--u>=0&&(h*=256);)this[t+u]=r/h&255;return t+i};a.prototype.writeUint8=a.prototype.writeUInt8=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,1,255,0),this[t]=r&255,t+1};a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};a.prototype.writeIntLE=function(r,t,i,n){if(r=+r,t=t>>>0,!n){var o=Math.pow(2,8*i-1);y(this,r,t,i,o-1,-o)}var u=0,h=1,f=0;for(this[t]=r&255;++u<i&&(h*=256);)r<0&&f===0&&this[t+u-1]!==0&&(f=1),this[t+u]=(r/h>>0)-f&255;return t+i};a.prototype.writeIntBE=function(r,t,i,n){if(r=+r,t=t>>>0,!n){var o=Math.pow(2,8*i-1);y(this,r,t,i,o-1,-o)}var u=i-1,h=1,f=0;for(this[t+u]=r&255;--u>=0&&(h*=256);)r<0&&f===0&&this[t+u+1]!==0&&(f=1),this[t+u]=(r/h>>0)-f&255;return t+i};a.prototype.writeInt8=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};a.prototype.writeInt16LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeInt16BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeInt32LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};a.prototype.writeInt32BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function wr(e,r,t,i,n,o){if(t+i>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function yr(e,r,t,i,n){return r=+r,t=t>>>0,n||wr(e,r,t,4,34028234663852886e22,-34028234663852886e22),R.write(e,r,t,i,23,4),t+4}a.prototype.writeFloatLE=function(r,t,i){return yr(this,r,t,!0,i)};a.prototype.writeFloatBE=function(r,t,i){return yr(this,r,t,!1,i)};function xr(e,r,t,i,n){return r=+r,t=t>>>0,n||wr(e,r,t,8,17976931348623157e292,-17976931348623157e292),R.write(e,r,t,i,52,8),t+8}a.prototype.writeDoubleLE=function(r,t,i){return xr(this,r,t,!0,i)};a.prototype.writeDoubleBE=function(r,t,i){return xr(this,r,t,!1,i)};a.prototype.copy=function(r,t,i,n){if(!a.isBuffer(r))throw new TypeError("argument should be a Buffer");if(i||(i=0),!n&&n!==0&&(n=this.length),t>=r.length&&(t=r.length),t||(t=0),n>0&&n<i&&(n=i),n===i||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-t<n-i&&(n=r.length-t+i);var o=n-i;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,i,n):Uint8Array.prototype.set.call(r,this.subarray(i,n),t),o};a.prototype.fill=function(r,t,i,n){if(typeof r=="string"){if(typeof t=="string"?(n=t,t=0,i=this.length):typeof i=="string"&&(n=i,i=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!a.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(r.length===1){var o=r.charCodeAt(0);(n==="utf8"&&o<128||n==="latin1")&&(r=o)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;t=t>>>0,i=i===void 0?this.length:i>>>0,r||(r=0);var u;if(typeof r=="number")for(u=t;u<i;++u)this[u]=r;else{var h=a.isBuffer(r)?r:a.from(r,n),f=h.length;if(f===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(u=0;u<i-t;++u)this[u+t]=h[u%f]}return this};var nt=/[^+/0-9A-Za-z-_]/g;function ot(e){if(e=e.split("=")[0],e=e.trim().replace(nt,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function V(e,r){r=r||1/0;for(var t,i=e.length,n=null,o=[],u=0;u<i;++u){if(t=e.charCodeAt(u),t>55295&&t<57344){if(!n){if(t>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(u+1===i){(r-=3)>-1&&o.push(239,191,189);continue}n=t;continue}if(t<56320){(r-=3)>-1&&o.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(r-=3)>-1&&o.push(239,191,189);if(n=null,t<128){if((r-=1)<0)break;o.push(t)}else if(t<2048){if((r-=2)<0)break;o.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;o.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return o}function ut(e){for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function at(e,r){for(var t,i,n,o=[],u=0;u<e.length&&!((r-=2)<0);++u)t=e.charCodeAt(u),i=t>>8,n=t%256,o.push(n),o.push(i);return o}function mr(e){return G.toByteArray(ot(e))}function H(e,r,t,i){for(var n=0;n<i&&!(n+t>=r.length||n>=e.length);++n)r[n+t]=e[n];return n}function B(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function Z(e){return e!==e}var ht=function(){for(var e="0123456789abcdef",r=new Array(256),t=0;t<16;++t)for(var i=t*16,n=0;n<16;++n)r[i+n]=e[t]+e[n];return r}()});var vr=N((mt,Ar)=>{F();var s=Ar.exports={},A,v;function P(){throw new Error("setTimeout has not been defined")}function j(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?A=setTimeout:A=P}catch(e){A=P}try{typeof clearTimeout=="function"?v=clearTimeout:v=j}catch(e){v=j}})();function Fr(e){if(A===setTimeout)return setTimeout(e,0);if((A===P||!A)&&setTimeout)return A=setTimeout,setTimeout(e,0);try{return A(e,0)}catch(r){try{return A.call(null,e,0)}catch(t){return A.call(this,e,0)}}}function ft(e){if(v===clearTimeout)return clearTimeout(e);if((v===j||!v)&&clearTimeout)return v=clearTimeout,clearTimeout(e);try{return v(e)}catch(r){try{return v.call(null,e)}catch(t){return v.call(this,e)}}}var T=[],_=!1,L,X=-1;function pt(){!_||!L||(_=!1,L.length?T=L.concat(T):X=-1,T.length&&gr())}function gr(){if(!_){var e=Fr(pt);_=!0;for(var r=T.length;r;){for(L=T,T=[];++X<r;)L&&L[X].run();X=-1,r=T.length}L=null,_=!1,ft(e)}}s.nextTick=function(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];T.push(new Br(e,r)),T.length===1&&!_&&Fr(gr)};function Br(e,r){this.fun=e,this.array=r}Br.prototype.run=function(){this.fun.apply(null,this.array)};s.title="browser";s.browser=!0;s.env={};s.argv=[];s.version="";s.versions={};function I(){}s.on=I;s.addListener=I;s.once=I;s.off=I;s.removeListener=I;s.removeAllListeners=I;s.emit=I;s.prependListener=I;s.prependOnceListener=I;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 k,D,Et,F=Sr(()=>{k=tr(Er()),D=tr(vr()),Et=function(e){function r(){var i=this||self;return delete e.prototype.__magic__,i}if(typeof globalThis=="object")return globalThis;if(this)return r();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:r});var t=__magic__;return t}(Object)});var lt={};Rr(lt,{sanitizeCallbackUrl:()=>ct});module.exports=Mr(lt);F();var ct=(e,r=["address"])=>{let t=new URL(e),i=new URLSearchParams(t.search);r.forEach(o=>i.delete(o));let n=Array.from(i.values()).length>0?"?":"";return`${t.origin}${t.pathname}${n}${i.toString()}`};0&&(module.exports={sanitizeCallbackUrl});
1
+ "use strict";var Tr=Object.create;var b=Object.defineProperty;var Ir=Object.getOwnPropertyDescriptor;var dr=Object.getOwnPropertyNames;var Cr=Object.getPrototypeOf,Sr=Object.prototype.hasOwnProperty;var Lr=(e,r)=>()=>(e&&(r=e(e=0)),r);var N=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Rr=(e,r)=>{for(var t in r)b(e,t,{get:r[t],enumerable:!0})},rr=(e,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of dr(r))!Sr.call(e,n)&&n!==t&&b(e,n,{get:()=>r[n],enumerable:!(i=Ir(r,n))||i.enumerable});return e};var tr=(e,r,t)=>(t=e!=null?Tr(Cr(e)):{},rr(r||!e||!e.__esModule?b(t,"default",{value:e,enumerable:!0}):t,e)),Mr=e=>rr(b({},"__esModule",{value:!0}),e);var nr=N(W=>{"use strict";F();W.byteLength=kr;W.toByteArray=br;W.fromByteArray=qr;var g=[],m=[],_r=typeof Uint8Array!="undefined"?Uint8Array:Array,$="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(d=0,er=$.length;d<er;++d)g[d]=$[d],m[$.charCodeAt(d)]=d;var d,er;m["-".charCodeAt(0)]=62;m["_".charCodeAt(0)]=63;function ir(e){var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var i=t===r?0:4-t%4;return[t,i]}function kr(e){var r=ir(e),t=r[0],i=r[1];return(t+i)*3/4-i}function Dr(e,r,t){return(r+t)*3/4-t}function br(e){var r,t=ir(e),i=t[0],n=t[1],o=new _r(Dr(e,i,n)),u=0,h=n>0?i-4:i,f;for(f=0;f<h;f+=4)r=m[e.charCodeAt(f)]<<18|m[e.charCodeAt(f+1)]<<12|m[e.charCodeAt(f+2)]<<6|m[e.charCodeAt(f+3)],o[u++]=r>>16&255,o[u++]=r>>8&255,o[u++]=r&255;return n===2&&(r=m[e.charCodeAt(f)]<<2|m[e.charCodeAt(f+1)]>>4,o[u++]=r&255),n===1&&(r=m[e.charCodeAt(f)]<<10|m[e.charCodeAt(f+1)]<<4|m[e.charCodeAt(f+2)]>>2,o[u++]=r>>8&255,o[u++]=r&255),o}function Nr(e){return g[e>>18&63]+g[e>>12&63]+g[e>>6&63]+g[e&63]}function Wr(e,r,t){for(var i,n=[],o=r;o<t;o+=3)i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),n.push(Nr(i));return n.join("")}function qr(e){for(var r,t=e.length,i=t%3,n=[],o=16383,u=0,h=t-i;u<h;u+=o)n.push(Wr(e,u,u+o>h?h:u+o));return i===1?(r=e[t-1],n.push(g[r>>2]+g[r<<4&63]+"==")):i===2&&(r=(e[t-2]<<8)+e[t-1],n.push(g[r>>10]+g[r>>4&63]+g[r<<2&63]+"=")),n.join("")}});var or=N(z=>{F();z.read=function(e,r,t,i,n){var o,u,h=n*8-i-1,f=(1<<h)-1,c=f>>1,l=-7,p=t?n-1:0,E=t?-1:1,x=e[r+p];for(p+=E,o=x&(1<<-l)-1,x>>=-l,l+=h;l>0;o=o*256+e[r+p],p+=E,l-=8);for(u=o&(1<<-l)-1,o>>=-l,l+=i;l>0;u=u*256+e[r+p],p+=E,l-=8);if(o===0)o=1-c;else{if(o===f)return u?NaN:(x?-1:1)*(1/0);u=u+Math.pow(2,i),o=o-c}return(x?-1:1)*u*Math.pow(2,o-i)};z.write=function(e,r,t,i,n,o){var u,h,f,c=o*8-n-1,l=(1<<c)-1,p=l>>1,E=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=i?0:o-1,L=i?1:-1,Ur=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(h=isNaN(r)?1:0,u=l):(u=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-u))<1&&(u--,f*=2),u+p>=1?r+=E/f:r+=E*Math.pow(2,1-p),r*f>=2&&(u++,f/=2),u+p>=l?(h=0,u=l):u+p>=1?(h=(r*f-1)*Math.pow(2,n),u=u+p):(h=r*Math.pow(2,p-1)*Math.pow(2,n),u=0));n>=8;e[t+x]=h&255,x+=L,h/=256,n-=8);for(u=u<<n|h,c+=n;c>0;e[t+x]=u&255,x+=L,u/=256,c-=8);e[t+x-L]|=Ur*128}});var Er=N(M=>{"use strict";F();var G=nr(),R=or(),ur=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;M.Buffer=a;M.SlowBuffer=Gr;M.INSPECT_MAX_BYTES=50;var Y=2147483647;M.kMaxLength=Y;a.TYPED_ARRAY_SUPPORT=Yr();!a.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Yr(){try{var e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(t){return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.buffer}});Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.byteOffset}});function U(e){if(e>Y)throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=new Uint8Array(e);return Object.setPrototypeOf(r,a.prototype),r}function a(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return K(e)}return fr(e,r,t)}a.poolSize=8192;function fr(e,r,t){if(typeof e=="string")return Xr(e,r);if(ArrayBuffer.isView(e))return $r(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(B(e,ArrayBuffer)||e&&B(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(B(e,SharedArrayBuffer)||e&&B(e.buffer,SharedArrayBuffer)))return Q(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(i!=null&&i!==e)return a.from(i,r,t);var n=zr(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return a.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}a.from=function(e,r,t){return fr(e,r,t)};Object.setPrototypeOf(a.prototype,Uint8Array.prototype);Object.setPrototypeOf(a,Uint8Array);function pr(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 Hr(e,r,t){return pr(e),e<=0?U(e):r!==void 0?typeof t=="string"?U(e).fill(r,t):U(e).fill(r):U(e)}a.alloc=function(e,r,t){return Hr(e,r,t)};function K(e){return pr(e),U(e<0?0:O(e)|0)}a.allocUnsafe=function(e){return K(e)};a.allocUnsafeSlow=function(e){return K(e)};function Xr(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var t=cr(e,r)|0,i=U(t),n=i.write(e,r);return n!==t&&(i=i.slice(0,n)),i}function J(e){for(var r=e.length<0?0:O(e.length)|0,t=U(r),i=0;i<r;i+=1)t[i]=e[i]&255;return t}function $r(e){if(B(e,Uint8Array)){var r=new Uint8Array(e);return Q(r.buffer,r.byteOffset,r.byteLength)}return J(e)}function Q(e,r,t){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');var i;return r===void 0&&t===void 0?i=new Uint8Array(e):t===void 0?i=new Uint8Array(e,r):i=new Uint8Array(e,r,t),Object.setPrototypeOf(i,a.prototype),i}function zr(e){if(a.isBuffer(e)){var r=O(e.length)|0,t=U(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||Z(e.length)?U(0):J(e);if(e.type==="Buffer"&&Array.isArray(e.data))return J(e.data)}function O(e){if(e>=Y)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Y.toString(16)+" bytes");return e|0}function Gr(e){return+e!=e&&(e=0),a.alloc(+e)}a.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==a.prototype};a.compare=function(r,t){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),B(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(r)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;for(var i=r.length,n=t.length,o=0,u=Math.min(i,n);o<u;++o)if(r[o]!==t[o]){i=r[o],n=t[o];break}return i<n?-1:n<i?1:0};a.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};a.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return a.alloc(0);var i;if(t===void 0)for(t=0,i=0;i<r.length;++i)t+=r[i].length;var n=a.allocUnsafe(t),o=0;for(i=0;i<r.length;++i){var u=r[i];if(B(u,Uint8Array))o+u.length>n.length?a.from(u).copy(n,o):Uint8Array.prototype.set.call(n,u,o);else if(a.isBuffer(u))u.copy(n,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=u.length}return n};function cr(e,r){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||B(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var t=e.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&t===0)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return mr(e).length;default:if(n)return i?-1:V(e).length;r=(""+r).toLowerCase(),n=!0}}a.byteLength=cr;function Jr(e,r,t){var i=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return et(this,r,t);case"utf8":case"utf-8":return sr(this,r,t);case"ascii":return rt(this,r,t);case"latin1":case"binary":return tt(this,r,t);case"base64":return Pr(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return it(this,r,t);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}a.prototype._isBuffer=!0;function C(e,r,t){var i=e[r];e[r]=e[t],e[t]=i}a.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<r;t+=2)C(this,t,t+1);return this};a.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<r;t+=4)C(this,t,t+3),C(this,t+1,t+2);return this};a.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<r;t+=8)C(this,t,t+7),C(this,t+1,t+6),C(this,t+2,t+5),C(this,t+3,t+4);return this};a.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?sr(this,0,r):Jr.apply(this,arguments)};a.prototype.toLocaleString=a.prototype.toString;a.prototype.equals=function(r){if(!a.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:a.compare(this,r)===0};a.prototype.inspect=function(){var r="",t=M.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};ur&&(a.prototype[ur]=a.prototype.inspect);a.prototype.compare=function(r,t,i,n,o){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),!a.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),i===void 0&&(i=r?r.length:0),n===void 0&&(n=0),o===void 0&&(o=this.length),t<0||i>r.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=i)return 0;if(n>=o)return-1;if(t>=i)return 1;if(t>>>=0,i>>>=0,n>>>=0,o>>>=0,this===r)return 0;for(var u=o-n,h=i-t,f=Math.min(u,h),c=this.slice(n,o),l=r.slice(t,i),p=0;p<f;++p)if(c[p]!==l[p]){u=c[p],h=l[p];break}return u<h?-1:h<u?1:0};function lr(e,r,t,i,n){if(e.length===0)return-1;if(typeof t=="string"?(i=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,Z(t)&&(t=n?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(n)return-1;t=e.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof r=="string"&&(r=a.from(r,i)),a.isBuffer(r))return r.length===0?-1:ar(e,r,t,i,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):ar(e,[r],t,i,n);throw new TypeError("val must be string, number or Buffer")}function ar(e,r,t,i,n){var o=1,u=e.length,h=r.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(e.length<2||r.length<2)return-1;o=2,u/=2,h/=2,t/=2}function f(x,L){return o===1?x[L]:x.readUInt16BE(L*o)}var c;if(n){var l=-1;for(c=t;c<u;c++)if(f(e,c)===f(r,l===-1?0:c-l)){if(l===-1&&(l=c),c-l+1===h)return l*o}else l!==-1&&(c-=c-l),l=-1}else for(t+h>u&&(t=u-h),c=t;c>=0;c--){for(var p=!0,E=0;E<h;E++)if(f(e,c+E)!==f(r,E)){p=!1;break}if(p)return c}return-1}a.prototype.includes=function(r,t,i){return this.indexOf(r,t,i)!==-1};a.prototype.indexOf=function(r,t,i){return lr(this,r,t,i,!0)};a.prototype.lastIndexOf=function(r,t,i){return lr(this,r,t,i,!1)};function Qr(e,r,t,i){t=Number(t)||0;var n=e.length-t;i?(i=Number(i),i>n&&(i=n)):i=n;var o=r.length;i>o/2&&(i=o/2);for(var u=0;u<i;++u){var h=parseInt(r.substr(u*2,2),16);if(Z(h))return u;e[t+u]=h}return u}function Vr(e,r,t,i){return H(V(r,e.length-t),e,t,i)}function Kr(e,r,t,i){return H(ut(r),e,t,i)}function Or(e,r,t,i){return H(mr(r),e,t,i)}function Zr(e,r,t,i){return H(at(r,e.length-t),e,t,i)}a.prototype.write=function(r,t,i,n){if(t===void 0)n="utf8",i=this.length,t=0;else if(i===void 0&&typeof t=="string")n=t,i=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(i)?(i=i>>>0,n===void 0&&(n="utf8")):(n=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-t;if((i===void 0||i>o)&&(i=o),r.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var u=!1;;)switch(n){case"hex":return Qr(this,r,t,i);case"utf8":case"utf-8":return Vr(this,r,t,i);case"ascii":case"latin1":case"binary":return Kr(this,r,t,i);case"base64":return Or(this,r,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Zr(this,r,t,i);default:if(u)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),u=!0}};a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Pr(e,r,t){return r===0&&t===e.length?G.fromByteArray(e):G.fromByteArray(e.slice(r,t))}function sr(e,r,t){t=Math.min(e.length,t);for(var i=[],n=r;n<t;){var o=e[n],u=null,h=o>239?4:o>223?3:o>191?2:1;if(n+h<=t){var f,c,l,p;switch(h){case 1:o<128&&(u=o);break;case 2:f=e[n+1],(f&192)===128&&(p=(o&31)<<6|f&63,p>127&&(u=p));break;case 3:f=e[n+1],c=e[n+2],(f&192)===128&&(c&192)===128&&(p=(o&15)<<12|(f&63)<<6|c&63,p>2047&&(p<55296||p>57343)&&(u=p));break;case 4:f=e[n+1],c=e[n+2],l=e[n+3],(f&192)===128&&(c&192)===128&&(l&192)===128&&(p=(o&15)<<18|(f&63)<<12|(c&63)<<6|l&63,p>65535&&p<1114112&&(u=p))}}u===null?(u=65533,h=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|u&1023),i.push(u),n+=h}return jr(i)}var hr=4096;function jr(e){var r=e.length;if(r<=hr)return String.fromCharCode.apply(String,e);for(var t="",i=0;i<r;)t+=String.fromCharCode.apply(String,e.slice(i,i+=hr));return t}function rt(e,r,t){var i="";t=Math.min(e.length,t);for(var n=r;n<t;++n)i+=String.fromCharCode(e[n]&127);return i}function tt(e,r,t){var i="";t=Math.min(e.length,t);for(var n=r;n<t;++n)i+=String.fromCharCode(e[n]);return i}function et(e,r,t){var i=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>i)&&(t=i);for(var n="",o=r;o<t;++o)n+=ht[e[o]];return n}function it(e,r,t){for(var i=e.slice(r,t),n="",o=0;o<i.length-1;o+=2)n+=String.fromCharCode(i[o]+i[o+1]*256);return n}a.prototype.slice=function(r,t){var i=this.length;r=~~r,t=t===void 0?i:~~t,r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t<r&&(t=r);var n=this.subarray(r,t);return Object.setPrototypeOf(n,a.prototype),n};function w(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r],o=1,u=0;++u<t&&(o*=256);)n+=this[r+u]*o;return n};a.prototype.readUintBE=a.prototype.readUIntBE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r+--t],o=1;t>0&&(o*=256);)n+=this[r+--t]*o;return n};a.prototype.readUint8=a.prototype.readUInt8=function(r,t){return r=r>>>0,t||w(r,1,this.length),this[r]};a.prototype.readUint16LE=a.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||w(r,2,this.length),this[r]|this[r+1]<<8};a.prototype.readUint16BE=a.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||w(r,2,this.length),this[r]<<8|this[r+1]};a.prototype.readUint32LE=a.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||w(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};a.prototype.readUint32BE=a.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};a.prototype.readIntLE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r],o=1,u=0;++u<t&&(o*=256);)n+=this[r+u]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*t)),n};a.prototype.readIntBE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=t,o=1,u=this[r+--n];n>0&&(o*=256);)u+=this[r+--n]*o;return o*=128,u>=o&&(u-=Math.pow(2,8*t)),u};a.prototype.readInt8=function(r,t){return r=r>>>0,t||w(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};a.prototype.readInt16LE=function(r,t){r=r>>>0,t||w(r,2,this.length);var i=this[r]|this[r+1]<<8;return i&32768?i|4294901760:i};a.prototype.readInt16BE=function(r,t){r=r>>>0,t||w(r,2,this.length);var i=this[r+1]|this[r]<<8;return i&32768?i|4294901760:i};a.prototype.readInt32LE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};a.prototype.readInt32BE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};a.prototype.readFloatLE=function(r,t){return r=r>>>0,t||w(r,4,this.length),R.read(this,r,!0,23,4)};a.prototype.readFloatBE=function(r,t){return r=r>>>0,t||w(r,4,this.length),R.read(this,r,!1,23,4)};a.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||w(r,8,this.length),R.read(this,r,!0,52,8)};a.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||w(r,8,this.length),R.read(this,r,!1,52,8)};function y(e,r,t,i,n,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||r<o)throw new RangeError('"value" argument is out of bounds');if(t+i>e.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(r,t,i,n){if(r=+r,t=t>>>0,i=i>>>0,!n){var o=Math.pow(2,8*i)-1;y(this,r,t,i,o,0)}var u=1,h=0;for(this[t]=r&255;++h<i&&(u*=256);)this[t+h]=r/u&255;return t+i};a.prototype.writeUintBE=a.prototype.writeUIntBE=function(r,t,i,n){if(r=+r,t=t>>>0,i=i>>>0,!n){var o=Math.pow(2,8*i)-1;y(this,r,t,i,o,0)}var u=i-1,h=1;for(this[t+u]=r&255;--u>=0&&(h*=256);)this[t+u]=r/h&255;return t+i};a.prototype.writeUint8=a.prototype.writeUInt8=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,1,255,0),this[t]=r&255,t+1};a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};a.prototype.writeIntLE=function(r,t,i,n){if(r=+r,t=t>>>0,!n){var o=Math.pow(2,8*i-1);y(this,r,t,i,o-1,-o)}var u=0,h=1,f=0;for(this[t]=r&255;++u<i&&(h*=256);)r<0&&f===0&&this[t+u-1]!==0&&(f=1),this[t+u]=(r/h>>0)-f&255;return t+i};a.prototype.writeIntBE=function(r,t,i,n){if(r=+r,t=t>>>0,!n){var o=Math.pow(2,8*i-1);y(this,r,t,i,o-1,-o)}var u=i-1,h=1,f=0;for(this[t+u]=r&255;--u>=0&&(h*=256);)r<0&&f===0&&this[t+u+1]!==0&&(f=1),this[t+u]=(r/h>>0)-f&255;return t+i};a.prototype.writeInt8=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};a.prototype.writeInt16LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeInt16BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeInt32LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};a.prototype.writeInt32BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function wr(e,r,t,i,n,o){if(t+i>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function yr(e,r,t,i,n){return r=+r,t=t>>>0,n||wr(e,r,t,4,34028234663852886e22,-34028234663852886e22),R.write(e,r,t,i,23,4),t+4}a.prototype.writeFloatLE=function(r,t,i){return yr(this,r,t,!0,i)};a.prototype.writeFloatBE=function(r,t,i){return yr(this,r,t,!1,i)};function xr(e,r,t,i,n){return r=+r,t=t>>>0,n||wr(e,r,t,8,17976931348623157e292,-17976931348623157e292),R.write(e,r,t,i,52,8),t+8}a.prototype.writeDoubleLE=function(r,t,i){return xr(this,r,t,!0,i)};a.prototype.writeDoubleBE=function(r,t,i){return xr(this,r,t,!1,i)};a.prototype.copy=function(r,t,i,n){if(!a.isBuffer(r))throw new TypeError("argument should be a Buffer");if(i||(i=0),!n&&n!==0&&(n=this.length),t>=r.length&&(t=r.length),t||(t=0),n>0&&n<i&&(n=i),n===i||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-t<n-i&&(n=r.length-t+i);var o=n-i;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,i,n):Uint8Array.prototype.set.call(r,this.subarray(i,n),t),o};a.prototype.fill=function(r,t,i,n){if(typeof r=="string"){if(typeof t=="string"?(n=t,t=0,i=this.length):typeof i=="string"&&(n=i,i=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!a.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(r.length===1){var o=r.charCodeAt(0);(n==="utf8"&&o<128||n==="latin1")&&(r=o)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;t=t>>>0,i=i===void 0?this.length:i>>>0,r||(r=0);var u;if(typeof r=="number")for(u=t;u<i;++u)this[u]=r;else{var h=a.isBuffer(r)?r:a.from(r,n),f=h.length;if(f===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(u=0;u<i-t;++u)this[u+t]=h[u%f]}return this};var nt=/[^+/0-9A-Za-z-_]/g;function ot(e){if(e=e.split("=")[0],e=e.trim().replace(nt,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function V(e,r){r=r||1/0;for(var t,i=e.length,n=null,o=[],u=0;u<i;++u){if(t=e.charCodeAt(u),t>55295&&t<57344){if(!n){if(t>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(u+1===i){(r-=3)>-1&&o.push(239,191,189);continue}n=t;continue}if(t<56320){(r-=3)>-1&&o.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(r-=3)>-1&&o.push(239,191,189);if(n=null,t<128){if((r-=1)<0)break;o.push(t)}else if(t<2048){if((r-=2)<0)break;o.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;o.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return o}function ut(e){for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function at(e,r){for(var t,i,n,o=[],u=0;u<e.length&&!((r-=2)<0);++u)t=e.charCodeAt(u),i=t>>8,n=t%256,o.push(n),o.push(i);return o}function mr(e){return G.toByteArray(ot(e))}function H(e,r,t,i){for(var n=0;n<i&&!(n+t>=r.length||n>=e.length);++n)r[n+t]=e[n];return n}function B(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function Z(e){return e!==e}var ht=function(){for(var e="0123456789abcdef",r=new Array(256),t=0;t<16;++t)for(var i=t*16,n=0;n<16;++n)r[i+n]=e[t]+e[n];return r}()});var vr=N((mt,Ar)=>{F();var s=Ar.exports={},A,v;function P(){throw new Error("setTimeout has not been defined")}function j(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?A=setTimeout:A=P}catch(e){A=P}try{typeof clearTimeout=="function"?v=clearTimeout:v=j}catch(e){v=j}})();function Fr(e){if(A===setTimeout)return setTimeout(e,0);if((A===P||!A)&&setTimeout)return A=setTimeout,setTimeout(e,0);try{return A(e,0)}catch(r){try{return A.call(null,e,0)}catch(t){return A.call(this,e,0)}}}function ft(e){if(v===clearTimeout)return clearTimeout(e);if((v===j||!v)&&clearTimeout)return v=clearTimeout,clearTimeout(e);try{return v(e)}catch(r){try{return v.call(null,e)}catch(t){return v.call(this,e)}}}var T=[],_=!1,S,X=-1;function pt(){!_||!S||(_=!1,S.length?T=S.concat(T):X=-1,T.length&&gr())}function gr(){if(!_){var e=Fr(pt);_=!0;for(var r=T.length;r;){for(S=T,T=[];++X<r;)S&&S[X].run();X=-1,r=T.length}S=null,_=!1,ft(e)}}s.nextTick=function(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];T.push(new Br(e,r)),T.length===1&&!_&&Fr(gr)};function Br(e,r){this.fun=e,this.array=r}Br.prototype.run=function(){this.fun.apply(null,this.array)};s.title="browser";s.browser=!0;s.env={};s.argv=[];s.version="";s.versions={};function I(){}s.on=I;s.addListener=I;s.once=I;s.off=I;s.removeListener=I;s.removeAllListeners=I;s.emit=I;s.prependListener=I;s.prependOnceListener=I;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 k,D,Et,F=Lr(()=>{k=tr(Er()),D=tr(vr()),Et=function(e){function r(){var i=this||self;return delete e.prototype.__magic__,i}if(typeof globalThis=="object")return globalThis;if(this)return r();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:r});var t=__magic__;return t}(Object)});var lt={};Rr(lt,{sanitizeCallbackUrl:()=>ct});module.exports=Mr(lt);F();var ct=(e,r=["address"])=>{let t=new URL(e),i=new URLSearchParams(t.search);r.forEach(u=>i.delete(u));let n=Array.from(i.values()).length>0?"?":"",o=t.pathname==="/"&&!e.endsWith("/")?"":t.pathname;return`${t.origin}${o}${n}${i.toString()}`};0&&(module.exports={sanitizeCallbackUrl});
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *