@multiversx/sdk-dapp 2.14.3 → 2.14.4

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 (231) hide show
  1. package/UI/DappModal/hooks/index.js +1 -1
  2. package/UI/DappModal/hooks/useDappModal.js +1 -1
  3. package/UI/DappModal/index.js +1 -1
  4. package/UI/ModalContainer/ModalContainer.js +1 -1
  5. package/UI/ModalContainer/index.js +1 -1
  6. package/UI/NotificationModal/NotificationModal.js +1 -1
  7. package/UI/NotificationModal/index.js +1 -1
  8. package/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
  9. package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
  10. package/UI/SignTransactionsModals/SignWithDeviceModal/SignWithDeviceModal.js +1 -1
  11. package/UI/SignTransactionsModals/SignWithDeviceModal/components/SignStepBody.js +1 -1
  12. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmFee/ConfirmFee.js +1 -1
  13. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmFee/index.js +1 -1
  14. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/NftSftPreviewComponent/NftSftPreviewComponent.js +1 -1
  15. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/NftSftPreviewComponent/index.js +1 -1
  16. package/UI/SignTransactionsModals/SignWithDeviceModal/components/index.js +1 -1
  17. package/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
  18. package/UI/SignTransactionsModals/SignWithExtensionModal/SignWithExtensionModal.js +1 -1
  19. package/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
  20. package/UI/SignTransactionsModals/SignWithLedgerModal/LedgerGuardianSigningModalError.js +1 -1
  21. package/UI/SignTransactionsModals/SignWithLedgerModal/SignWithLedgerModal.js +1 -1
  22. package/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
  23. package/UI/SignTransactionsModals/SignWithOperaModal/SignWithOperaModal.js +1 -1
  24. package/UI/SignTransactionsModals/SignWithOperaModal/index.js +1 -1
  25. package/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +1 -1
  26. package/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
  27. package/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
  28. package/UI/SignTransactionsModals/components/SignWaitingScreenModal/SignWaitingScreenModal.js +1 -1
  29. package/UI/SignTransactionsModals/components/SignWaitingScreenModal/index.js +1 -1
  30. package/UI/SignTransactionsModals/components/TransactionStatusToast.js +1 -1
  31. package/UI/SignTransactionsModals/components/index.js +1 -1
  32. package/UI/SignTransactionsModals/index.js +1 -1
  33. package/UI/TransactionDetails/TransactionDetails.js +1 -1
  34. package/UI/TransactionDetails/components/TransactionDetailsBody.js +1 -1
  35. package/UI/TransactionDetails/components/index.js +1 -1
  36. package/UI/TransactionDetails/index.js +1 -1
  37. package/UI/TransactionInfo/TransactionInfo.js +1 -1
  38. package/UI/TransactionInfo/components/AddressDetailItem/AddressDetailitem.js +1 -1
  39. package/UI/TransactionInfo/components/AddressDetailItem/index.js +1 -1
  40. package/UI/TransactionInfo/components/EventsList/EventsList.js +1 -1
  41. package/UI/TransactionInfo/components/EventsList/index.js +1 -1
  42. package/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +1 -1
  43. package/UI/TransactionInfo/components/NonceMessage/index.js +1 -1
  44. package/UI/TransactionInfo/components/OperationsList/OperationList.js +1 -1
  45. package/UI/TransactionInfo/components/OperationsList/components/DetailedItem.js +1 -1
  46. package/UI/TransactionInfo/components/OperationsList/components/OperationBlock.js +1 -1
  47. package/UI/TransactionInfo/components/OperationsList/components/OperationRow.js +1 -1
  48. package/UI/TransactionInfo/components/OperationsList/components/OperationText.js +1 -1
  49. package/UI/TransactionInfo/components/OperationsList/components/index.js +1 -1
  50. package/UI/TransactionInfo/components/OperationsList/index.js +1 -1
  51. package/UI/TransactionInfo/components/ScResultsList/ScResultsList.js +1 -1
  52. package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/ResultHash.js +1 -1
  53. package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/index.js +1 -1
  54. package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/ResultReceiver.js +1 -1
  55. package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/index.js +1 -1
  56. package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/ResultSender.js +1 -1
  57. package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/index.js +1 -1
  58. package/UI/TransactionInfo/components/ScResultsList/index.js +1 -1
  59. package/UI/TransactionInfo/components/ScrDetailItem/ScrDetailItem.js +1 -1
  60. package/UI/TransactionInfo/components/ScrDetailItem/index.js +1 -1
  61. package/UI/TransactionInfo/components/TransactionAction/TransactionAction.js +1 -1
  62. package/UI/TransactionInfo/components/TransactionAction/components/ActionText/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/index.js +1 -1
  68. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/TransactionInfoFrom.js +1 -1
  69. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/index.js +1 -1
  70. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/TransactionInfoMethod.js +1 -1
  71. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/index.js +1 -1
  72. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/TransactionInfoMiniblock.js +1 -1
  73. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/index.js +1 -1
  74. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +1 -1
  75. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +1 -1
  76. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/TransactionInfoScResults.js +1 -1
  77. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/index.js +1 -1
  78. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/TransactionInfoTo.js +1 -1
  79. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/index.js +1 -1
  80. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/TransactionInfoTokenOperations.js +1 -1
  81. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/index.js +1 -1
  82. package/UI/TransactionInfo/components/transactionInfoFields/index.js +1 -1
  83. package/UI/TransactionInfo/index.js +1 -1
  84. package/UI/TransactionsTable/TransactionsTable.js +1 -1
  85. package/UI/TransactionsTable/components/AccountName.js +1 -1
  86. package/UI/TransactionsTable/components/TransactionHash.js +1 -1
  87. package/UI/TransactionsTable/components/TransactionReceiver.js +1 -1
  88. package/UI/TransactionsTable/components/TransactionRow.js +1 -1
  89. package/UI/TransactionsTable/components/TransactionSender.js +1 -1
  90. package/UI/TransactionsTable/components/index.js +1 -1
  91. package/UI/TransactionsTable/index.js +1 -1
  92. package/UI/TransactionsToastList/TransactionsToastList.js +1 -1
  93. package/UI/TransactionsToastList/components/CustomToast/CustomToast.js +1 -1
  94. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +1 -1
  95. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +1 -1
  96. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +1 -1
  97. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +1 -1
  98. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +1 -1
  99. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +1 -1
  100. package/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +1 -1
  101. package/UI/TransactionsToastList/components/CustomToast/components/index.js +1 -1
  102. package/UI/TransactionsToastList/components/CustomToast/helpers/index.js +1 -1
  103. package/UI/TransactionsToastList/components/CustomToast/helpers/useMemoizedCloseButton.js +1 -1
  104. package/UI/TransactionsToastList/components/CustomToast/index.js +1 -1
  105. package/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +1 -1
  106. package/UI/TransactionsToastList/components/TransactionToast/components/DefaultToastDeleteButton.js +1 -1
  107. package/UI/TransactionsToastList/components/TransactionToast/components/TransactionToastContent.js +1 -1
  108. package/UI/TransactionsToastList/components/TransactionToast/components/index.js +1 -1
  109. package/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +1 -1
  110. package/UI/TransactionsToastList/components/TransactionToast/index.js +1 -1
  111. package/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
  112. package/UI/TransactionsToastList/components/index.js +1 -1
  113. package/UI/TransactionsToastList/index.js +1 -1
  114. package/UI/Trim/Trim.js +1 -1
  115. package/UI/Trim/index.js +1 -1
  116. package/UI/index.js +1 -1
  117. package/UI/ledger/LedgerLoginButton/LedgerLoginButton.js +1 -1
  118. package/UI/ledger/LedgerLoginButton/index.js +1 -1
  119. package/UI/ledger/LedgerLoginContainer/AddressRow.js +1 -1
  120. package/UI/ledger/LedgerLoginContainer/AddressTable.js +1 -1
  121. package/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +1 -1
  122. package/UI/ledger/LedgerLoginContainer/index.js +1 -1
  123. package/UI/ledger/index.js +1 -1
  124. package/UI/operaWallet/OperaWalletLoginButton/OperaWalletLoginButton.js +1 -1
  125. package/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
  126. package/UI/pages/UnlockPage/index.js +1 -1
  127. package/UI/pages/index.js +1 -1
  128. package/UI/walletConnect/WalletConnectLoginButton/WalletConnectLoginButton.js +1 -1
  129. package/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
  130. package/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
  131. package/UI/walletConnect/index.js +1 -1
  132. package/__chunks__/{chunk-6OFXQVUT.js → chunk-52Y6CHVB.js} +2 -2
  133. package/__chunks__/{chunk-BYITR7E4.js → chunk-5UZMHOUB.js} +2 -2
  134. package/__chunks__/chunk-74RR42GW.js +2 -0
  135. package/__chunks__/{chunk-J57T5QE3.js → chunk-7EKFPJ4U.js} +2 -2
  136. package/__chunks__/{chunk-2SCW4SVI.js → chunk-BOG6ROSF.js} +2 -2
  137. package/__chunks__/{chunk-X27CJBLI.js → chunk-CCPH6YBW.js} +2 -2
  138. package/__chunks__/{chunk-HDZI637B.js → chunk-EFBSLWOT.js} +2 -2
  139. package/__chunks__/chunk-GAYS6IZO.js +2 -0
  140. package/__chunks__/{chunk-WOOPC5ZW.js → chunk-JCB2UFE6.js} +2 -2
  141. package/__chunks__/{chunk-AUPP7RGC.js → chunk-JFYYTG2B.js} +2 -2
  142. package/__chunks__/chunk-LDOD4URJ.js +2 -0
  143. package/__chunks__/{chunk-C7BMLFJP.js → chunk-LI2YTG6T.js} +2 -2
  144. package/__chunks__/{chunk-GJBD7RPH.js → chunk-N4AS4WKH.js} +2 -2
  145. package/__chunks__/{chunk-I2ZNHA6A.js → chunk-O3AHG24N.js} +2 -2
  146. package/__chunks__/{chunk-RDLDEORR.js → chunk-OATDAXFL.js} +2 -2
  147. package/__chunks__/{chunk-XUZZU2SJ.js → chunk-PEFNQYFJ.js} +2 -2
  148. package/__chunks__/{chunk-LRX2BJPT.js → chunk-QDMQLFXE.js} +2 -2
  149. package/__chunks__/{chunk-BPNXCDIK.js → chunk-RA4VBSV4.js} +2 -2
  150. package/__chunks__/{chunk-UGI3Z2VB.js → chunk-SIX6M33Q.js} +2 -2
  151. package/__chunks__/{chunk-KVOYPUTL.js → chunk-SRAOPXTJ.js} +2 -2
  152. package/__chunks__/{chunk-ZE7Y2E3X.js → chunk-SZOZTDWH.js} +2 -2
  153. package/__chunks__/chunk-UJFVVD7I.js +2 -0
  154. package/__chunks__/chunk-UP3FFMFW.js +2 -0
  155. package/__chunks__/{chunk-YGG5ERHH.js → chunk-V24SSAOI.js} +2 -2
  156. package/__commonjs/UI/SignTransactionsModals/SignTransactionsModals.js +9 -9
  157. package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/SignWithDeviceModal.js +8 -8
  158. package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/index.js +8 -8
  159. package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/LedgerGuardianSigningModalError.js +14 -14
  160. package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/SignWithLedgerModal.js +1 -1
  161. package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
  162. package/__commonjs/UI/SignTransactionsModals/components/ConfirmationScreen.js +2 -2
  163. package/__commonjs/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +2 -2
  164. package/__commonjs/UI/SignTransactionsModals/components/TransactionStatusToast.js +2 -2
  165. package/__commonjs/UI/SignTransactionsModals/components/index.js +12 -12
  166. package/__commonjs/UI/SignTransactionsModals/index.js +9 -9
  167. package/__commonjs/UI/TransactionDetails/TransactionDetails.js +1 -1
  168. package/__commonjs/UI/TransactionDetails/components/TransactionDetailsBody.js +1 -1
  169. package/__commonjs/UI/TransactionDetails/components/index.js +1 -1
  170. package/__commonjs/UI/TransactionDetails/index.js +1 -1
  171. package/__commonjs/UI/TransactionsToastList/TransactionsToastList.js +3 -3
  172. package/__commonjs/UI/TransactionsToastList/components/CustomToast/CustomToast.js +2 -2
  173. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +2 -2
  174. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +1 -1
  175. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +1 -1
  176. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +1 -1
  177. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +1 -1
  178. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +2 -2
  179. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +1 -1
  180. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/index.js +2 -2
  181. package/__commonjs/UI/TransactionsToastList/components/CustomToast/helpers/index.js +1 -1
  182. package/__commonjs/UI/TransactionsToastList/components/CustomToast/helpers/useMemoizedCloseButton.js +1 -1
  183. package/__commonjs/UI/TransactionsToastList/components/CustomToast/index.js +2 -2
  184. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +3 -3
  185. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/components/DefaultToastDeleteButton.js +1 -1
  186. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/components/TransactionToastContent.js +2 -2
  187. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/components/index.js +3 -3
  188. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/index.js +3 -3
  189. package/__commonjs/UI/TransactionsToastList/components/TransactionToastGuard.js +3 -3
  190. package/__commonjs/UI/TransactionsToastList/components/index.js +3 -3
  191. package/__commonjs/UI/TransactionsToastList/index.js +3 -3
  192. package/__commonjs/UI/index.js +18 -18
  193. package/__commonjs/components/TransactionStatusToast/FailedTransactionStatusToast.js +2 -2
  194. package/__commonjs/hooks/index.js +1 -1
  195. package/__commonjs/hooks/transactions/index.js +1 -1
  196. package/__commonjs/hooks/transactions/useParseMultiEsdtTransferData.js +1 -1
  197. package/__commonjs/hooks/transactions/useSignMultipleTransactions.js +1 -1
  198. package/__commonjs/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
  199. package/__commonjs/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
  200. package/__mocks__/index.js +1 -1
  201. package/__mocks__/utils/index.js +1 -1
  202. package/__mocks__/utils/renderWithProvider.js +1 -1
  203. package/components/LogoutListener/LogoutListener.js +1 -1
  204. package/components/LogoutListener/helpers/index.js +1 -1
  205. package/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
  206. package/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
  207. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
  208. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
  209. package/components/LogoutListener/index.js +1 -1
  210. package/components/TransactionStatusToast/FailedTransactionStatusToast.js +1 -1
  211. package/components/TransactionsTracker/TransactionTracker.js +1 -1
  212. package/components/TransactionsTracker/index.js +1 -1
  213. package/components/TransactionsTracker/useTransactionsTracker.js +1 -1
  214. package/hooks/index.js +1 -1
  215. package/hooks/toasts/index.js +1 -1
  216. package/hooks/toasts/useTransactionsToasts.js +1 -1
  217. package/hooks/transactions/index.js +1 -1
  218. package/hooks/transactions/useParseMultiEsdtTransferData.js +1 -1
  219. package/hooks/transactions/useSignMultipleTransactions.js +1 -1
  220. package/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
  221. package/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
  222. package/package.json +1 -1
  223. package/wrappers/DappProvider/CustomComponents.js +1 -1
  224. package/wrappers/DappProvider/DappProvider.js +1 -1
  225. package/wrappers/DappProvider/index.js +1 -1
  226. package/wrappers/index.js +1 -1
  227. package/__chunks__/chunk-6NLOVYDI.js +0 -2
  228. package/__chunks__/chunk-7F37MW76.js +0 -2
  229. package/__chunks__/chunk-KK6D6OI6.js +0 -2
  230. package/__chunks__/chunk-SYJSPEIV.js +0 -2
  231. package/__chunks__/chunk-T26DIT4Y.js +0 -2
@@ -1,4 +1,4 @@
1
- "use strict";var zi=Object.create;var Fe=Object.defineProperty,qi=Object.defineProperties,Ki=Object.getOwnPropertyDescriptor,Xi=Object.getOwnPropertyDescriptors,Yi=Object.getOwnPropertyNames,to=Object.getOwnPropertySymbols,Zi=Object.getPrototypeOf,Yo=Object.prototype.hasOwnProperty,_t=Object.prototype.propertyIsEnumerable;var lt=(e,o,t)=>o in e?Fe(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,g=(e,o)=>{for(var t in o||(o={}))Yo.call(o,t)&&lt(e,t,o[t]);if(to)for(var t of to(o))_t.call(o,t)&&lt(e,t,o[t]);return e},S=(e,o)=>qi(e,Xi(o));var ye=(e,o)=>{var t={};for(var s in e)Yo.call(e,s)&&o.indexOf(s)<0&&(t[s]=e[s]);if(e!=null&&to)for(var s of to(e))o.indexOf(s)<0&&_t.call(e,s)&&(t[s]=e[s]);return t};var T=(e,o)=>()=>(e&&(o=e(e=0)),o);var U=(e,o)=>()=>(o||e((o={exports:{}}).exports,o),o.exports),me=(e,o)=>{for(var t in o)Fe(e,t,{get:o[t],enumerable:!0})},ut=(e,o,t,s)=>{if(o&&typeof o=="object"||typeof o=="function")for(let c of Yi(o))!Yo.call(e,c)&&c!==t&&Fe(e,c,{get:()=>o[c],enumerable:!(s=Ki(o,c))||s.enumerable});return e};var f=(e,o,t)=>(t=e!=null?zi(Zi(e)):{},ut(o||!e||!e.__esModule?Fe(t,"default",{value:e,enumerable:!0}):t,e)),Ue=e=>ut(Fe({},"__esModule",{value:!0}),e);var x=(e,o,t)=>new Promise((s,c)=>{var p=l=>{try{u(t.next(l))}catch(h){c(h)}},m=l=>{try{u(t.throw(l))}catch(h){c(h)}},u=l=>l.done?s(l.value):Promise.resolve(l.value).then(p,m);u((t=t.apply(e,o)).next())});var Tt=U(ro=>{"use strict";n();ro.byteLength=Qi;ro.toByteArray=os;ro.fromByteArray=rs;var H=[],W=[],Ji=typeof Uint8Array!="undefined"?Uint8Array:Array,Zo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(de=0,gt=Zo.length;de<gt;++de)H[de]=Zo[de],W[Zo.charCodeAt(de)]=de;var de,gt;W["-".charCodeAt(0)]=62;W["_".charCodeAt(0)]=63;function ft(e){var o=e.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=o);var s=t===o?0:4-t%4;return[t,s]}function Qi(e){var o=ft(e),t=o[0],s=o[1];return(t+s)*3/4-s}function es(e,o,t){return(o+t)*3/4-t}function os(e){var o,t=ft(e),s=t[0],c=t[1],p=new Ji(es(e,s,c)),m=0,u=c>0?s-4:s,l;for(l=0;l<u;l+=4)o=W[e.charCodeAt(l)]<<18|W[e.charCodeAt(l+1)]<<12|W[e.charCodeAt(l+2)]<<6|W[e.charCodeAt(l+3)],p[m++]=o>>16&255,p[m++]=o>>8&255,p[m++]=o&255;return c===2&&(o=W[e.charCodeAt(l)]<<2|W[e.charCodeAt(l+1)]>>4,p[m++]=o&255),c===1&&(o=W[e.charCodeAt(l)]<<10|W[e.charCodeAt(l+1)]<<4|W[e.charCodeAt(l+2)]>>2,p[m++]=o>>8&255,p[m++]=o&255),p}function ns(e){return H[e>>18&63]+H[e>>12&63]+H[e>>6&63]+H[e&63]}function ts(e,o,t){for(var s,c=[],p=o;p<t;p+=3)s=(e[p]<<16&16711680)+(e[p+1]<<8&65280)+(e[p+2]&255),c.push(ns(s));return c.join("")}function rs(e){for(var o,t=e.length,s=t%3,c=[],p=16383,m=0,u=t-s;m<u;m+=p)c.push(ts(e,m,m+p>u?u:m+p));return s===1?(o=e[t-1],c.push(H[o>>2]+H[o<<4&63]+"==")):s===2&&(o=(e[t-2]<<8)+e[t-1],c.push(H[o>>10]+H[o>>4&63]+H[o<<2&63]+"=")),c.join("")}});var ht=U(Jo=>{n();Jo.read=function(e,o,t,s,c){var p,m,u=c*8-s-1,l=(1<<u)-1,h=l>>1,b=-7,y=t?c-1:0,R=t?-1:1,D=e[o+y];for(y+=R,p=D&(1<<-b)-1,D>>=-b,b+=u;b>0;p=p*256+e[o+y],y+=R,b-=8);for(m=p&(1<<-b)-1,p>>=-b,b+=s;b>0;m=m*256+e[o+y],y+=R,b-=8);if(p===0)p=1-h;else{if(p===l)return m?NaN:(D?-1:1)*(1/0);m=m+Math.pow(2,s),p=p-h}return(D?-1:1)*m*Math.pow(2,p-s)};Jo.write=function(e,o,t,s,c,p){var m,u,l,h=p*8-c-1,b=(1<<h)-1,y=b>>1,R=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,D=s?0:p-1,Q=s?1:-1,no=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(u=isNaN(o)?1:0,m=b):(m=Math.floor(Math.log(o)/Math.LN2),o*(l=Math.pow(2,-m))<1&&(m--,l*=2),m+y>=1?o+=R/l:o+=R*Math.pow(2,1-y),o*l>=2&&(m++,l/=2),m+y>=b?(u=0,m=b):m+y>=1?(u=(o*l-1)*Math.pow(2,c),m=m+y):(u=o*Math.pow(2,y-1)*Math.pow(2,c),m=0));c>=8;e[t+D]=u&255,D+=Q,u/=256,c-=8);for(m=m<<c|u,h+=c;h>0;e[t+D]=m&255,D+=Q,m/=256,h-=8);e[t+D-Q]|=no*128}});var Nt=U(Se=>{"use strict";n();var Qo=Tt(),be=ht(),xt=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Se.Buffer=d;Se.SlowBuffer=ms;Se.INSPECT_MAX_BYTES=50;var ao=2147483647;Se.kMaxLength=ao;d.TYPED_ARRAY_SUPPORT=as();!d.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 as(){try{var e=new Uint8Array(1),o={foo:function(){return 42}};return Object.setPrototypeOf(o,Uint8Array.prototype),Object.setPrototypeOf(e,o),e.foo()===42}catch(t){return!1}}Object.defineProperty(d.prototype,"parent",{enumerable:!0,get:function(){if(!!d.isBuffer(this))return this.buffer}});Object.defineProperty(d.prototype,"offset",{enumerable:!0,get:function(){if(!!d.isBuffer(this))return this.byteOffset}});function oe(e){if(e>ao)throw new RangeError('The value "'+e+'" is invalid for option "size"');var o=new Uint8Array(e);return Object.setPrototypeOf(o,d.prototype),o}function d(e,o,t){if(typeof e=="number"){if(typeof o=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return tn(e)}return St(e,o,t)}d.poolSize=8192;function St(e,o,t){if(typeof e=="string")return ss(e,o);if(ArrayBuffer.isView(e))return cs(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(j(e,ArrayBuffer)||e&&j(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(j(e,SharedArrayBuffer)||e&&j(e.buffer,SharedArrayBuffer)))return on(e,o,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var s=e.valueOf&&e.valueOf();if(s!=null&&s!==e)return d.from(s,o,t);var c=ps(e);if(c)return c;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return d.from(e[Symbol.toPrimitive]("string"),o,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}d.from=function(e,o,t){return St(e,o,t)};Object.setPrototypeOf(d.prototype,Uint8Array.prototype);Object.setPrototypeOf(d,Uint8Array);function wt(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 is(e,o,t){return wt(e),e<=0?oe(e):o!==void 0?typeof t=="string"?oe(e).fill(o,t):oe(e).fill(o):oe(e)}d.alloc=function(e,o,t){return is(e,o,t)};function tn(e){return wt(e),oe(e<0?0:rn(e)|0)}d.allocUnsafe=function(e){return tn(e)};d.allocUnsafeSlow=function(e){return tn(e)};function ss(e,o){if((typeof o!="string"||o==="")&&(o="utf8"),!d.isEncoding(o))throw new TypeError("Unknown encoding: "+o);var t=vt(e,o)|0,s=oe(t),c=s.write(e,o);return c!==t&&(s=s.slice(0,c)),s}function en(e){for(var o=e.length<0?0:rn(e.length)|0,t=oe(o),s=0;s<o;s+=1)t[s]=e[s]&255;return t}function cs(e){if(j(e,Uint8Array)){var o=new Uint8Array(e);return on(o.buffer,o.byteOffset,o.byteLength)}return en(e)}function on(e,o,t){if(o<0||e.byteLength<o)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<o+(t||0))throw new RangeError('"length" is outside of buffer bounds');var s;return o===void 0&&t===void 0?s=new Uint8Array(e):t===void 0?s=new Uint8Array(e,o):s=new Uint8Array(e,o,t),Object.setPrototypeOf(s,d.prototype),s}function ps(e){if(d.isBuffer(e)){var o=rn(e.length)|0,t=oe(o);return t.length===0||e.copy(t,0,0,o),t}if(e.length!==void 0)return typeof e.length!="number"||an(e.length)?oe(0):en(e);if(e.type==="Buffer"&&Array.isArray(e.data))return en(e.data)}function rn(e){if(e>=ao)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ao.toString(16)+" bytes");return e|0}function ms(e){return+e!=e&&(e=0),d.alloc(+e)}d.isBuffer=function(o){return o!=null&&o._isBuffer===!0&&o!==d.prototype};d.compare=function(o,t){if(j(o,Uint8Array)&&(o=d.from(o,o.offset,o.byteLength)),j(t,Uint8Array)&&(t=d.from(t,t.offset,t.byteLength)),!d.isBuffer(o)||!d.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(o===t)return 0;for(var s=o.length,c=t.length,p=0,m=Math.min(s,c);p<m;++p)if(o[p]!==t[p]){s=o[p],c=t[p];break}return s<c?-1:c<s?1:0};d.isEncoding=function(o){switch(String(o).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}};d.concat=function(o,t){if(!Array.isArray(o))throw new TypeError('"list" argument must be an Array of Buffers');if(o.length===0)return d.alloc(0);var s;if(t===void 0)for(t=0,s=0;s<o.length;++s)t+=o[s].length;var c=d.allocUnsafe(t),p=0;for(s=0;s<o.length;++s){var m=o[s];if(j(m,Uint8Array))p+m.length>c.length?d.from(m).copy(c,p):Uint8Array.prototype.set.call(c,m,p);else if(d.isBuffer(m))m.copy(c,p);else throw new TypeError('"list" argument must be an Array of Buffers');p+=m.length}return c};function vt(e,o){if(d.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||j(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,s=arguments.length>2&&arguments[2]===!0;if(!s&&t===0)return 0;for(var c=!1;;)switch(o){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return nn(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Ct(e).length;default:if(c)return s?-1:nn(e).length;o=(""+o).toLowerCase(),c=!0}}d.byteLength=vt;function ds(e,o,t){var s=!1;if((o===void 0||o<0)&&(o=0),o>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,o>>>=0,t<=o))return"";for(e||(e="utf8");;)switch(e){case"hex":return bs(this,o,t);case"utf8":case"utf-8":return kt(this,o,t);case"ascii":return xs(this,o,t);case"latin1":case"binary":return ys(this,o,t);case"base64":return Ts(this,o,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ss(this,o,t);default:if(s)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}d.prototype._isBuffer=!0;function le(e,o,t){var s=e[o];e[o]=e[t],e[t]=s}d.prototype.swap16=function(){var o=this.length;if(o%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<o;t+=2)le(this,t,t+1);return this};d.prototype.swap32=function(){var o=this.length;if(o%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<o;t+=4)le(this,t,t+3),le(this,t+1,t+2);return this};d.prototype.swap64=function(){var o=this.length;if(o%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<o;t+=8)le(this,t,t+7),le(this,t+1,t+6),le(this,t+2,t+5),le(this,t+3,t+4);return this};d.prototype.toString=function(){var o=this.length;return o===0?"":arguments.length===0?kt(this,0,o):ds.apply(this,arguments)};d.prototype.toLocaleString=d.prototype.toString;d.prototype.equals=function(o){if(!d.isBuffer(o))throw new TypeError("Argument must be a Buffer");return this===o?!0:d.compare(this,o)===0};d.prototype.inspect=function(){var o="",t=Se.INSPECT_MAX_BYTES;return o=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(o+=" ... "),"<Buffer "+o+">"};xt&&(d.prototype[xt]=d.prototype.inspect);d.prototype.compare=function(o,t,s,c,p){if(j(o,Uint8Array)&&(o=d.from(o,o.offset,o.byteLength)),!d.isBuffer(o))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof o);if(t===void 0&&(t=0),s===void 0&&(s=o?o.length:0),c===void 0&&(c=0),p===void 0&&(p=this.length),t<0||s>o.length||c<0||p>this.length)throw new RangeError("out of range index");if(c>=p&&t>=s)return 0;if(c>=p)return-1;if(t>=s)return 1;if(t>>>=0,s>>>=0,c>>>=0,p>>>=0,this===o)return 0;for(var m=p-c,u=s-t,l=Math.min(m,u),h=this.slice(c,p),b=o.slice(t,s),y=0;y<l;++y)if(h[y]!==b[y]){m=h[y],u=b[y];break}return m<u?-1:u<m?1:0};function It(e,o,t,s,c){if(e.length===0)return-1;if(typeof t=="string"?(s=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,an(t)&&(t=c?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(c)return-1;t=e.length-1}else if(t<0)if(c)t=0;else return-1;if(typeof o=="string"&&(o=d.from(o,s)),d.isBuffer(o))return o.length===0?-1:yt(e,o,t,s,c);if(typeof o=="number")return o=o&255,typeof Uint8Array.prototype.indexOf=="function"?c?Uint8Array.prototype.indexOf.call(e,o,t):Uint8Array.prototype.lastIndexOf.call(e,o,t):yt(e,[o],t,s,c);throw new TypeError("val must be string, number or Buffer")}function yt(e,o,t,s,c){var p=1,m=e.length,u=o.length;if(s!==void 0&&(s=String(s).toLowerCase(),s==="ucs2"||s==="ucs-2"||s==="utf16le"||s==="utf-16le")){if(e.length<2||o.length<2)return-1;p=2,m/=2,u/=2,t/=2}function l(D,Q){return p===1?D[Q]:D.readUInt16BE(Q*p)}var h;if(c){var b=-1;for(h=t;h<m;h++)if(l(e,h)===l(o,b===-1?0:h-b)){if(b===-1&&(b=h),h-b+1===u)return b*p}else b!==-1&&(h-=h-b),b=-1}else for(t+u>m&&(t=m-u),h=t;h>=0;h--){for(var y=!0,R=0;R<u;R++)if(l(e,h+R)!==l(o,R)){y=!1;break}if(y)return h}return-1}d.prototype.includes=function(o,t,s){return this.indexOf(o,t,s)!==-1};d.prototype.indexOf=function(o,t,s){return It(this,o,t,s,!0)};d.prototype.lastIndexOf=function(o,t,s){return It(this,o,t,s,!1)};function ls(e,o,t,s){t=Number(t)||0;var c=e.length-t;s?(s=Number(s),s>c&&(s=c)):s=c;var p=o.length;s>p/2&&(s=p/2);for(var m=0;m<s;++m){var u=parseInt(o.substr(m*2,2),16);if(an(u))return m;e[t+m]=u}return m}function _s(e,o,t,s){return io(nn(o,e.length-t),e,t,s)}function us(e,o,t,s){return io(Is(o),e,t,s)}function gs(e,o,t,s){return io(Ct(o),e,t,s)}function fs(e,o,t,s){return io(ks(o,e.length-t),e,t,s)}d.prototype.write=function(o,t,s,c){if(t===void 0)c="utf8",s=this.length,t=0;else if(s===void 0&&typeof t=="string")c=t,s=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(s)?(s=s>>>0,c===void 0&&(c="utf8")):(c=s,s=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var p=this.length-t;if((s===void 0||s>p)&&(s=p),o.length>0&&(s<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");c||(c="utf8");for(var m=!1;;)switch(c){case"hex":return ls(this,o,t,s);case"utf8":case"utf-8":return _s(this,o,t,s);case"ascii":case"latin1":case"binary":return us(this,o,t,s);case"base64":return gs(this,o,t,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return fs(this,o,t,s);default:if(m)throw new TypeError("Unknown encoding: "+c);c=(""+c).toLowerCase(),m=!0}};d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ts(e,o,t){return o===0&&t===e.length?Qo.fromByteArray(e):Qo.fromByteArray(e.slice(o,t))}function kt(e,o,t){t=Math.min(e.length,t);for(var s=[],c=o;c<t;){var p=e[c],m=null,u=p>239?4:p>223?3:p>191?2:1;if(c+u<=t){var l,h,b,y;switch(u){case 1:p<128&&(m=p);break;case 2:l=e[c+1],(l&192)===128&&(y=(p&31)<<6|l&63,y>127&&(m=y));break;case 3:l=e[c+1],h=e[c+2],(l&192)===128&&(h&192)===128&&(y=(p&15)<<12|(l&63)<<6|h&63,y>2047&&(y<55296||y>57343)&&(m=y));break;case 4:l=e[c+1],h=e[c+2],b=e[c+3],(l&192)===128&&(h&192)===128&&(b&192)===128&&(y=(p&15)<<18|(l&63)<<12|(h&63)<<6|b&63,y>65535&&y<1114112&&(m=y))}}m===null?(m=65533,u=1):m>65535&&(m-=65536,s.push(m>>>10&1023|55296),m=56320|m&1023),s.push(m),c+=u}return hs(s)}var bt=4096;function hs(e){var o=e.length;if(o<=bt)return String.fromCharCode.apply(String,e);for(var t="",s=0;s<o;)t+=String.fromCharCode.apply(String,e.slice(s,s+=bt));return t}function xs(e,o,t){var s="";t=Math.min(e.length,t);for(var c=o;c<t;++c)s+=String.fromCharCode(e[c]&127);return s}function ys(e,o,t){var s="";t=Math.min(e.length,t);for(var c=o;c<t;++c)s+=String.fromCharCode(e[c]);return s}function bs(e,o,t){var s=e.length;(!o||o<0)&&(o=0),(!t||t<0||t>s)&&(t=s);for(var c="",p=o;p<t;++p)c+=As[e[p]];return c}function Ss(e,o,t){for(var s=e.slice(o,t),c="",p=0;p<s.length-1;p+=2)c+=String.fromCharCode(s[p]+s[p+1]*256);return c}d.prototype.slice=function(o,t){var s=this.length;o=~~o,t=t===void 0?s:~~t,o<0?(o+=s,o<0&&(o=0)):o>s&&(o=s),t<0?(t+=s,t<0&&(t=0)):t>s&&(t=s),t<o&&(t=o);var c=this.subarray(o,t);return Object.setPrototypeOf(c,d.prototype),c};function N(e,o,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+o>t)throw new RangeError("Trying to access beyond buffer length")}d.prototype.readUintLE=d.prototype.readUIntLE=function(o,t,s){o=o>>>0,t=t>>>0,s||N(o,t,this.length);for(var c=this[o],p=1,m=0;++m<t&&(p*=256);)c+=this[o+m]*p;return c};d.prototype.readUintBE=d.prototype.readUIntBE=function(o,t,s){o=o>>>0,t=t>>>0,s||N(o,t,this.length);for(var c=this[o+--t],p=1;t>0&&(p*=256);)c+=this[o+--t]*p;return c};d.prototype.readUint8=d.prototype.readUInt8=function(o,t){return o=o>>>0,t||N(o,1,this.length),this[o]};d.prototype.readUint16LE=d.prototype.readUInt16LE=function(o,t){return o=o>>>0,t||N(o,2,this.length),this[o]|this[o+1]<<8};d.prototype.readUint16BE=d.prototype.readUInt16BE=function(o,t){return o=o>>>0,t||N(o,2,this.length),this[o]<<8|this[o+1]};d.prototype.readUint32LE=d.prototype.readUInt32LE=function(o,t){return o=o>>>0,t||N(o,4,this.length),(this[o]|this[o+1]<<8|this[o+2]<<16)+this[o+3]*16777216};d.prototype.readUint32BE=d.prototype.readUInt32BE=function(o,t){return o=o>>>0,t||N(o,4,this.length),this[o]*16777216+(this[o+1]<<16|this[o+2]<<8|this[o+3])};d.prototype.readIntLE=function(o,t,s){o=o>>>0,t=t>>>0,s||N(o,t,this.length);for(var c=this[o],p=1,m=0;++m<t&&(p*=256);)c+=this[o+m]*p;return p*=128,c>=p&&(c-=Math.pow(2,8*t)),c};d.prototype.readIntBE=function(o,t,s){o=o>>>0,t=t>>>0,s||N(o,t,this.length);for(var c=t,p=1,m=this[o+--c];c>0&&(p*=256);)m+=this[o+--c]*p;return p*=128,m>=p&&(m-=Math.pow(2,8*t)),m};d.prototype.readInt8=function(o,t){return o=o>>>0,t||N(o,1,this.length),this[o]&128?(255-this[o]+1)*-1:this[o]};d.prototype.readInt16LE=function(o,t){o=o>>>0,t||N(o,2,this.length);var s=this[o]|this[o+1]<<8;return s&32768?s|4294901760:s};d.prototype.readInt16BE=function(o,t){o=o>>>0,t||N(o,2,this.length);var s=this[o+1]|this[o]<<8;return s&32768?s|4294901760:s};d.prototype.readInt32LE=function(o,t){return o=o>>>0,t||N(o,4,this.length),this[o]|this[o+1]<<8|this[o+2]<<16|this[o+3]<<24};d.prototype.readInt32BE=function(o,t){return o=o>>>0,t||N(o,4,this.length),this[o]<<24|this[o+1]<<16|this[o+2]<<8|this[o+3]};d.prototype.readFloatLE=function(o,t){return o=o>>>0,t||N(o,4,this.length),be.read(this,o,!0,23,4)};d.prototype.readFloatBE=function(o,t){return o=o>>>0,t||N(o,4,this.length),be.read(this,o,!1,23,4)};d.prototype.readDoubleLE=function(o,t){return o=o>>>0,t||N(o,8,this.length),be.read(this,o,!0,52,8)};d.prototype.readDoubleBE=function(o,t){return o=o>>>0,t||N(o,8,this.length),be.read(this,o,!1,52,8)};function O(e,o,t,s,c,p){if(!d.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(o>c||o<p)throw new RangeError('"value" argument is out of bounds');if(t+s>e.length)throw new RangeError("Index out of range")}d.prototype.writeUintLE=d.prototype.writeUIntLE=function(o,t,s,c){if(o=+o,t=t>>>0,s=s>>>0,!c){var p=Math.pow(2,8*s)-1;O(this,o,t,s,p,0)}var m=1,u=0;for(this[t]=o&255;++u<s&&(m*=256);)this[t+u]=o/m&255;return t+s};d.prototype.writeUintBE=d.prototype.writeUIntBE=function(o,t,s,c){if(o=+o,t=t>>>0,s=s>>>0,!c){var p=Math.pow(2,8*s)-1;O(this,o,t,s,p,0)}var m=s-1,u=1;for(this[t+m]=o&255;--m>=0&&(u*=256);)this[t+m]=o/u&255;return t+s};d.prototype.writeUint8=d.prototype.writeUInt8=function(o,t,s){return o=+o,t=t>>>0,s||O(this,o,t,1,255,0),this[t]=o&255,t+1};d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(o,t,s){return o=+o,t=t>>>0,s||O(this,o,t,2,65535,0),this[t]=o&255,this[t+1]=o>>>8,t+2};d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(o,t,s){return o=+o,t=t>>>0,s||O(this,o,t,2,65535,0),this[t]=o>>>8,this[t+1]=o&255,t+2};d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(o,t,s){return o=+o,t=t>>>0,s||O(this,o,t,4,4294967295,0),this[t+3]=o>>>24,this[t+2]=o>>>16,this[t+1]=o>>>8,this[t]=o&255,t+4};d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(o,t,s){return o=+o,t=t>>>0,s||O(this,o,t,4,4294967295,0),this[t]=o>>>24,this[t+1]=o>>>16,this[t+2]=o>>>8,this[t+3]=o&255,t+4};d.prototype.writeIntLE=function(o,t,s,c){if(o=+o,t=t>>>0,!c){var p=Math.pow(2,8*s-1);O(this,o,t,s,p-1,-p)}var m=0,u=1,l=0;for(this[t]=o&255;++m<s&&(u*=256);)o<0&&l===0&&this[t+m-1]!==0&&(l=1),this[t+m]=(o/u>>0)-l&255;return t+s};d.prototype.writeIntBE=function(o,t,s,c){if(o=+o,t=t>>>0,!c){var p=Math.pow(2,8*s-1);O(this,o,t,s,p-1,-p)}var m=s-1,u=1,l=0;for(this[t+m]=o&255;--m>=0&&(u*=256);)o<0&&l===0&&this[t+m+1]!==0&&(l=1),this[t+m]=(o/u>>0)-l&255;return t+s};d.prototype.writeInt8=function(o,t,s){return o=+o,t=t>>>0,s||O(this,o,t,1,127,-128),o<0&&(o=255+o+1),this[t]=o&255,t+1};d.prototype.writeInt16LE=function(o,t,s){return o=+o,t=t>>>0,s||O(this,o,t,2,32767,-32768),this[t]=o&255,this[t+1]=o>>>8,t+2};d.prototype.writeInt16BE=function(o,t,s){return o=+o,t=t>>>0,s||O(this,o,t,2,32767,-32768),this[t]=o>>>8,this[t+1]=o&255,t+2};d.prototype.writeInt32LE=function(o,t,s){return o=+o,t=t>>>0,s||O(this,o,t,4,2147483647,-2147483648),this[t]=o&255,this[t+1]=o>>>8,this[t+2]=o>>>16,this[t+3]=o>>>24,t+4};d.prototype.writeInt32BE=function(o,t,s){return o=+o,t=t>>>0,s||O(this,o,t,4,2147483647,-2147483648),o<0&&(o=4294967295+o+1),this[t]=o>>>24,this[t+1]=o>>>16,this[t+2]=o>>>8,this[t+3]=o&255,t+4};function At(e,o,t,s,c,p){if(t+s>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Et(e,o,t,s,c){return o=+o,t=t>>>0,c||At(e,o,t,4,34028234663852886e22,-34028234663852886e22),be.write(e,o,t,s,23,4),t+4}d.prototype.writeFloatLE=function(o,t,s){return Et(this,o,t,!0,s)};d.prototype.writeFloatBE=function(o,t,s){return Et(this,o,t,!1,s)};function Lt(e,o,t,s,c){return o=+o,t=t>>>0,c||At(e,o,t,8,17976931348623157e292,-17976931348623157e292),be.write(e,o,t,s,52,8),t+8}d.prototype.writeDoubleLE=function(o,t,s){return Lt(this,o,t,!0,s)};d.prototype.writeDoubleBE=function(o,t,s){return Lt(this,o,t,!1,s)};d.prototype.copy=function(o,t,s,c){if(!d.isBuffer(o))throw new TypeError("argument should be a Buffer");if(s||(s=0),!c&&c!==0&&(c=this.length),t>=o.length&&(t=o.length),t||(t=0),c>0&&c<s&&(c=s),c===s||o.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(s<0||s>=this.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("sourceEnd out of bounds");c>this.length&&(c=this.length),o.length-t<c-s&&(c=o.length-t+s);var p=c-s;return this===o&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,s,c):Uint8Array.prototype.set.call(o,this.subarray(s,c),t),p};d.prototype.fill=function(o,t,s,c){if(typeof o=="string"){if(typeof t=="string"?(c=t,t=0,s=this.length):typeof s=="string"&&(c=s,s=this.length),c!==void 0&&typeof c!="string")throw new TypeError("encoding must be a string");if(typeof c=="string"&&!d.isEncoding(c))throw new TypeError("Unknown encoding: "+c);if(o.length===1){var p=o.charCodeAt(0);(c==="utf8"&&p<128||c==="latin1")&&(o=p)}}else typeof o=="number"?o=o&255:typeof o=="boolean"&&(o=Number(o));if(t<0||this.length<t||this.length<s)throw new RangeError("Out of range index");if(s<=t)return this;t=t>>>0,s=s===void 0?this.length:s>>>0,o||(o=0);var m;if(typeof o=="number")for(m=t;m<s;++m)this[m]=o;else{var u=d.isBuffer(o)?o:d.from(o,c),l=u.length;if(l===0)throw new TypeError('The value "'+o+'" is invalid for argument "value"');for(m=0;m<s-t;++m)this[m+t]=u[m%l]}return this};var ws=/[^+/0-9A-Za-z-_]/g;function vs(e){if(e=e.split("=")[0],e=e.trim().replace(ws,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function nn(e,o){o=o||1/0;for(var t,s=e.length,c=null,p=[],m=0;m<s;++m){if(t=e.charCodeAt(m),t>55295&&t<57344){if(!c){if(t>56319){(o-=3)>-1&&p.push(239,191,189);continue}else if(m+1===s){(o-=3)>-1&&p.push(239,191,189);continue}c=t;continue}if(t<56320){(o-=3)>-1&&p.push(239,191,189),c=t;continue}t=(c-55296<<10|t-56320)+65536}else c&&(o-=3)>-1&&p.push(239,191,189);if(c=null,t<128){if((o-=1)<0)break;p.push(t)}else if(t<2048){if((o-=2)<0)break;p.push(t>>6|192,t&63|128)}else if(t<65536){if((o-=3)<0)break;p.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((o-=4)<0)break;p.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return p}function Is(e){for(var o=[],t=0;t<e.length;++t)o.push(e.charCodeAt(t)&255);return o}function ks(e,o){for(var t,s,c,p=[],m=0;m<e.length&&!((o-=2)<0);++m)t=e.charCodeAt(m),s=t>>8,c=t%256,p.push(c),p.push(s);return p}function Ct(e){return Qo.toByteArray(vs(e))}function io(e,o,t,s){for(var c=0;c<s&&!(c+t>=o.length||c>=e.length);++c)o[c+t]=e[c];return c}function j(e,o){return e instanceof o||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===o.name}function an(e){return e!==e}var As=function(){for(var e="0123456789abcdef",o=new Array(256),t=0;t<16;++t)for(var s=t*16,c=0;c<16;++c)o[s+c]=e[t]+e[c];return o}()});var Mt=U((fl,Ot)=>{n();var E=Ot.exports={},z,q;function sn(){throw new Error("setTimeout has not been defined")}function cn(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?z=setTimeout:z=sn}catch(e){z=sn}try{typeof clearTimeout=="function"?q=clearTimeout:q=cn}catch(e){q=cn}})();function Pt(e){if(z===setTimeout)return setTimeout(e,0);if((z===sn||!z)&&setTimeout)return z=setTimeout,setTimeout(e,0);try{return z(e,0)}catch(o){try{return z.call(null,e,0)}catch(t){return z.call(this,e,0)}}}function Es(e){if(q===clearTimeout)return clearTimeout(e);if((q===cn||!q)&&clearTimeout)return q=clearTimeout,clearTimeout(e);try{return q(e)}catch(o){try{return q.call(null,e)}catch(t){return q.call(this,e)}}}var ne=[],we=!1,_e,so=-1;function Ls(){!we||!_e||(we=!1,_e.length?ne=_e.concat(ne):so=-1,ne.length&&Dt())}function Dt(){if(!we){var e=Pt(Ls);we=!0;for(var o=ne.length;o;){for(_e=ne,ne=[];++so<o;)_e&&_e[so].run();so=-1,o=ne.length}_e=null,we=!1,Es(e)}}E.nextTick=function(e){var o=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)o[t-1]=arguments[t];ne.push(new Rt(e,o)),ne.length===1&&!we&&Pt(Dt)};function Rt(e,o){this.fun=e,this.array=o}Rt.prototype.run=function(){this.fun.apply(null,this.array)};E.title="browser";E.browser=!0;E.env={};E.argv=[];E.version="";E.versions={};function te(){}E.on=te;E.addListener=te;E.once=te;E.off=te;E.removeListener=te;E.removeAllListeners=te;E.emit=te;E.prependListener=te;E.prependOnceListener=te;E.listeners=function(e){return[]};E.binding=function(e){throw new Error("process.binding is not supported")};E.cwd=function(){return"/"};E.chdir=function(e){throw new Error("process.chdir is not supported")};E.umask=function(){return 0}});var a,i,Cs,r,n=T(()=>{a=f(Nt()),i=f(Mt()),Cs=function(e){function o(){var s=this||self;return delete e.prototype.__magic__,s}if(typeof globalThis=="object")return globalThis;if(this)return o();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:o});var t=__magic__;return t}(Object),r=Cs});var A=T(()=>{"use strict";n()});function Ie(e){return e!=null&&(Vs(e)||Wt(e))}function ke(e){return e!=null&&($s(e)||qs(e))}function Ae(e){return e!=null&&(Hs(e)||Ks(e))}function Gt(e){return e!=null&&(js(e)||Xs(e))}function dn(e){return e!=null&&zs(e)}function Vs(e){return e!=null&&Ds.includes(e)}function $s(e){return e!=null&&Rs.includes(e)}function Hs(e){return e!=null&&Os.includes(e)}function js(e){return e!=null&&Ms.includes(e)}function zs(e){return e!=null&&Bs.includes(e)}function Wt(e){return e!=null&&Fs.includes(e)}function qs(e){return e!=null&&Us.includes(e)}function Ks(e){return e!=null&&Gs.includes(e)}function Xs(e){return e!=null&&Ws.includes(e)}var Ds,Rs,Os,Ms,Bs,Fs,Us,Gs,Ws,ue=T(()=>{"use strict";n();A();Ds=["sent"],Rs=["success"],Os=["fail","cancelled","timedOut"],Ms=["invalid"],Bs=["timedOut"],Fs=["pending"],Us=["success"],Gs=["fail","invalid"],Ws=["not executed"]});var ge=T(()=>{"use strict";n()});var ln=T(()=>{"use strict";n()});var Vt=T(()=>{"use strict";n()});var $t=T(()=>{"use strict";n()});var Ht=T(()=>{"use strict";n()});var jt=T(()=>{"use strict";n()});var M=T(()=>{"use strict";n()});var zt=T(()=>{"use strict";n()});var qt=T(()=>{"use strict";n()});var Kt=T(()=>{"use strict";n()});var C=T(()=>{"use strict";n();ln();Vt();$t();A();Ht();jt();M();zt();qt();Kt()});var Ee,Xt,Wl,Yt,Vl,Zt,$l,Hl,Ys,Ge=T(()=>{"use strict";n();C();Ee={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:Xt,egldLabel:Wl}=Ee["devnet"],{chainId:Yt,egldLabel:Vl}=Ee["testnet"],{chainId:Zt,egldLabel:$l}=Ee["mainnet"],Hl={["devnet"]:Xt,["testnet"]:Yt,["mainnet"]:Zt},Ys={[Xt]:"devnet",[Yt]:"testnet",[Zt]:"mainnet"}});var _n=T(()=>{"use strict";n()});var Jt=T(()=>{"use strict";n()});var co,un=T(()=>{"use strict";n();co="transaction-status-toast-id"});var K,Qt=T(()=>{"use strict";n();K=require("@multiversx/sdk-web-wallet-provider")});var er=T(()=>{"use strict";n()});var or=T(()=>{"use strict";n()});var We,po,nr,mo,tr,Le,w=T(()=>{"use strict";n();ge();Ge();_n();Jt();un();Qt();er();or();We=5e4,po=1e9,nr=1,mo="logout",tr="login",Le="0"});var Ve,lo=T(()=>{"use strict";n();Ve=()=>Date.now()/1e3});var rr=T(()=>{"use strict";n()});var ar=T(()=>{"use strict";n()});var gn=T(()=>{"use strict";n();lo();rr();ar()});var Tn={};me(Tn,{getItem:()=>Js,localStorageKeys:()=>pe,removeItem:()=>Qs,setItem:()=>Zs});var pe,fn,Zs,Js,Qs,Ce=T(()=>{"use strict";n();gn();pe={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},fn=typeof localStorage!="undefined",Zs=({key:e,data:o,expires:t})=>{!fn||localStorage.setItem(String(e),JSON.stringify({expires:t,data:o}))},Js=e=>{if(!fn)return;let o=localStorage.getItem(String(e));if(!o)return null;let t=JSON.parse(o);return!t||!t.hasOwnProperty("expires")||!t.hasOwnProperty("data")?null:Ve()>=t.expires?(localStorage.removeItem(String(e)),null):t.data},Qs=e=>{!fn||localStorage.removeItem(String(e))}});var hn={};me(hn,{clear:()=>pr,getItem:()=>sr,removeItem:()=>cr,setItem:()=>ir,storage:()=>ec});var ir,sr,cr,pr,ec,mr=T(()=>{"use strict";n();ir=({key:e,data:o,expires:t})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:t,data:o}))},sr=e=>{let o=sessionStorage.getItem(String(e));if(!o)return null;let t=JSON.parse(o);return!t||!t.hasOwnProperty("expires")||!t.hasOwnProperty("data")?null:Date.now()>=t.expires?(sessionStorage.removeItem(String(e)),null):t.data},cr=e=>sessionStorage.removeItem(String(e)),pr=()=>sessionStorage.clear(),ec={setItem:ir,getItem:sr,removeItem:cr,clear:pr}});var fe,Ne=T(()=>{"use strict";n();Ce();mr();fe={session:hn,local:Tn}});var xn,L,X,P=T(()=>{"use strict";n();xn=require("@reduxjs/toolkit");w();L=(0,xn.createAction)(mo),X=(0,xn.createAction)(tr,e=>({payload:e}))});var bn,dr,lr,_o,yn,_r,Sn,v_,wn,I_,oc,nc,k_,A_,E_,tc,rc,uo,go=T(()=>{"use strict";n();bn=require("@multiversx/sdk-core"),dr=require("@reduxjs/toolkit"),lr=require("redux-persist");w();Ne();Ce();P();_o={balance:"...",address:"",isGuarded:!1,nonce:0,txCount:0,scrCount:0,claimableRewards:Le},yn={address:"",websocketEvent:null,websocketBatchEvent:null,accounts:{"":_o},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},_r=(0,dr.createSlice)({name:"accountInfoSlice",initialState:yn,reducers:{setAddress:(e,o)=>{let t=o.payload;e.address=t,e.publicKey=new bn.Address(t).hex()},setAccount:(e,o)=>{let t=e.address===o.payload.address;e.accounts={[e.address]:t?o.payload:_o},e.shard=o.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,o)=>{let{address:t}=e;e.accounts[t].nonce=o.payload},setAccountShard:(e,o)=>{e.shard=o.payload},setLedgerAccount:(e,o)=>{e.ledgerAccount=o.payload},updateLedgerAccount:(e,o)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=o.payload.index,e.ledgerAccount.address=o.payload.address)},setWalletConnectAccount:(e,o)=>{e.walletConnectAccount=o.payload},setIsAccountLoading:(e,o)=>{e.isAccountLoading=o.payload,e.accountLoadingError=null},setAccountLoadingError:(e,o)=>{e.accountLoadingError=o.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,o)=>{e.websocketEvent={timestamp:Date.now(),message:o.payload}},setWebsocketBatchEvent:(e,o)=>{e.websocketBatchEvent={timestamp:Date.now(),data:o.payload}}},extraReducers:e=>{e.addCase(L,()=>(fe.local.removeItem(pe.loginExpiresAt),yn)),e.addCase(X,(o,t)=>{let{address:s}=t.payload;o.address=s,o.publicKey=new bn.Address(s).hex()}),e.addCase(lr.REHYDRATE,(o,t)=>{var h;if(!((h=t.payload)!=null&&h.account))return;let{account:s}=t.payload,{address:c,shard:p,accounts:m,publicKey:u}=s;o.address=c,o.shard=p;let l=m&&c in m;o.accounts=l?m:yn.accounts,o.publicKey=u})}}),{setAccount:Sn,setAddress:v_,setAccountNonce:wn,setAccountShard:I_,setLedgerAccount:oc,updateLedgerAccount:nc,setWalletConnectAccount:k_,setIsAccountLoading:A_,setAccountLoadingError:E_,setWebsocketEvent:tc,setWebsocketBatchEvent:rc}=_r.actions,uo=_r.reducer});function $e(){return new Date().setHours(new Date().getHours()+24)}function He(e){fe.local.setItem({key:pe.loginExpiresAt,data:e,expires:e})}var vn=T(()=>{"use strict";n();Ne();Ce()});var gr,ur,fr,F_,Tr,ac,ic,U_,sc,hr,G_,fo,To=T(()=>{"use strict";n();gr=require("@reduxjs/toolkit");vn();A();P();ur={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},fr=(0,gr.createSlice)({name:"loginInfoSlice",initialState:ur,reducers:{setLoginMethod:(e,o)=>{e.loginMethod=o.payload},setTokenLogin:(e,o)=>{e.tokenLogin=o.payload},setTokenLoginSignature:(e,o)=>{(e==null?void 0:e.tokenLogin)!=null&&(e.tokenLogin.signature=o.payload)},setWalletLogin:(e,o)=>{e.walletLogin=o.payload},setWalletConnectLogin:(e,o)=>{e.walletConnectLogin=o.payload},setLedgerLogin:(e,o)=>{e.ledgerLogin=o.payload},invalidateLoginSession:e=>{e.isLoginSessionInvalid=!0},setLogoutRoute:(e,o)=>{e.logoutRoute=o.payload}},extraReducers:e=>{e.addCase(L,()=>ur),e.addCase(X,(o,t)=>{o.loginMethod=t.payload.loginMethod,He($e())})}}),{setLoginMethod:F_,setWalletConnectLogin:Tr,setLedgerLogin:ac,setTokenLogin:ic,setTokenLoginSignature:U_,setWalletLogin:sc,invalidateLoginSession:hr,setLogoutRoute:G_}=fr.actions,fo=fr.reducer});var yr,xr,br,H_,cc,j_,pc,ho,xo=T(()=>{"use strict";n();yr=require("@reduxjs/toolkit");P();xr={},br=(0,yr.createSlice)({name:"modalsSlice",initialState:xr,reducers:{setTxSubmittedModal:(e,o)=>{e.txSubmittedModal=o.payload},setNotificationModal:(e,o)=>{e.notificationModal=o.payload},clearTxSubmittedModal:e=>{e.txSubmittedModal=void 0},clearNotificationModal:e=>{e.notificationModal=void 0}},extraReducers:e=>{e.addCase(L,()=>xr)}}),{setTxSubmittedModal:H_,setNotificationModal:cc,clearTxSubmittedModal:j_,clearNotificationModal:pc}=br.actions,ho=br.reducer});var je=T(()=>{"use strict";n()});var wr=T(()=>{"use strict";n();je()});function In(e){return e[Math.floor(Math.random()*e.length)]}var vr=T(()=>{"use strict";n()});var kn=T(()=>{"use strict";n();_n()});var Te=T(()=>{"use strict";n();wr();vr();kn()});var Ir,kr,An,mc,Ar,iu,su,yo,bo=T(()=>{"use strict";n();Ir=require("@reduxjs/toolkit"),kr=f(require("lodash.omit"));Te();An={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},mc={network:An,chainID:"-1"},Ar=(0,Ir.createSlice)({name:"appConfig",initialState:mc,reducers:{initializeNetworkConfig:(e,o)=>{let t=In(o.payload.walletConnectBridgeAddresses),s=In(o.payload.walletConnectV2RelayAddresses),c=(0,kr.default)(o.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=S(g(g({},e.network),c),{walletConnectBridgeAddress:t,walletConnectV2RelayAddress:s})},setChainID:(e,o)=>{e.chainID=o.payload}}}),{initializeNetworkConfig:iu,setChainID:su}=Ar.actions,yo=Ar.reducer});var Er,En,Lr,_u,uu,gu,So,wo=T(()=>{"use strict";n();Er=require("@reduxjs/toolkit");C();P();En={isSigning:!1,signedSessions:{}},Lr=(0,Er.createSlice)({name:"signedMessageInfoSliceState",initialState:En,reducers:{setSignSession:(e,o)=>{let{sessionId:t,signedSession:s,errorMessage:c}=o.payload;c&&(e.errorMessage=c),e.isSigning=s.status==="pending",e.signedSessions[t]=s},setSignSessionState:(e,o)=>g(g({},e),o.payload),clearSignedMessageInfo:()=>En},extraReducers:e=>{e.addCase(L,()=>En)}}),{setSignSession:_u,clearSignedMessageInfo:uu,setSignSessionState:gu}=Lr.actions,So=Lr.reducer});var Nr,Pr,Cr,Dr,dc,Ln,wu,lc,vu,Iu,vo,Io=T(()=>{"use strict";n();Nr=require("@reduxjs/toolkit"),Pr=require("redux-persist");un();C();lo();P();Cr={customToasts:[],transactionToasts:[],failTransactionToast:null},Dr=(0,Nr.createSlice)({name:"toastsSlice",initialState:Cr,reducers:{addCustomToast:(e,o)=>{e.customToasts.push(S(g({},o.payload),{type:"custom",toastId:o.payload.toastId||`custom-toast-${e.customToasts.length+1}`}))},removeCustomToast:(e,o)=>{e.customToasts=e.customToasts.filter(t=>t.toastId!==o.payload)},addTransactionToast:(e,o)=>{e.transactionToasts.push({type:"transaction",startTimestamp:Ve(),toastId:o.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,o)=>{e.transactionToasts=e.transactionToasts.filter(t=>t.toastId!==o.payload)},addFailTransactionToast:(e,o)=>{e.failTransactionToast=S(g({},o.payload),{toastId:co})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(L,()=>Cr),e.addCase(Pr.REHYDRATE,(o,t)=>{var c,p;let s=(p=(c=t.customToasts)==null?void 0:c.filter(m=>!("component"in m)))!=null?p:[];o.customToasts=s})}}),{addCustomToast:dc,removeCustomToast:Ln,addTransactionToast:wu,removeTransactionToast:lc,addFailTransactionToast:vu,removeFailTransactionToast:Iu}=Dr.actions,vo=Dr.reducer});var Rr,Nn,Pn,Dn,_c,Cn,Or,Lu,uc,Rn,ko,Ao=T(()=>{"use strict";n();Rr=require("@reduxjs/toolkit");P();Nn="Transaction failed",Pn="Transaction successful",Dn="Processing transaction",_c="Transaction submitted",Cn={},Or=(0,Rr.createSlice)({name:"transactionsInfo",initialState:Cn,reducers:{setTransactionsDisplayInfo(e,o){let{sessionId:t,transactionsDisplayInfo:s}=o.payload;t!=null&&(e[t]={errorMessage:(s==null?void 0:s.errorMessage)||Nn,successMessage:(s==null?void 0:s.successMessage)||Pn,processingMessage:(s==null?void 0:s.processingMessage)||Dn,submittedMessage:(s==null?void 0:s.submittedMessage)||_c,transactionDuration:s==null?void 0:s.transactionDuration})},clearTransactionsInfoForSessionId(e,o){o.payload!=null&&delete e[o.payload]},clearTransactionsInfo:()=>Cn},extraReducers:e=>{e.addCase(L,()=>Cn)}}),{clearTransactionsInfo:Lu,setTransactionsDisplayInfo:uc,clearTransactionsInfoForSessionId:Rn}=Or.actions,ko=Or.reducer});var Mr,Br,ze,gc,Fr,Ur,Gr,fc,Eo,Tc,hc,Mu,xc,qe,On,Lo,Co=T(()=>{"use strict";n();Mr=require("@reduxjs/toolkit"),Br=require("redux-persist");A();ue();P();ze={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},gc={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Fr=(0,Mr.createSlice)({name:"transactionsSlice",initialState:ze,reducers:{moveTransactionsToSignedState:(e,o)=>{var h,b;let{sessionId:t,transactions:s,errorMessage:c,status:p,redirectRoute:m,customTransactionInformation:u={}}=o.payload,l=((h=e.customTransactionInformationForSessionId)==null?void 0:h[t])||gc;e.signedTransactions[t]={transactions:s,status:p,errorMessage:c,redirectRoute:m,customTransactionInformation:g(g({},l),u)},((b=e==null?void 0:e.transactionsToSign)==null?void 0:b.sessionId)===t&&(e.transactionsToSign=ze.transactionsToSign)},clearSignedTransaction:(e,o)=>{e.signedTransactions[o.payload]&&delete e.signedTransactions[o.payload]},clearTransactionToSign:e=>{e!=null&&e.transactionsToSign&&(e.transactionsToSign=null)},updateSignedTransaction:(e,o)=>{e.signedTransactions=g(g({},e.signedTransactions),o.payload)},updateSignedTransactions:(e,o)=>{let{sessionId:t,status:s,errorMessage:c,transactions:p}=o.payload;e.signedTransactions[t]!=null&&(e.signedTransactions[t].status=s,c!=null&&(e.signedTransactions[t].errorMessage=c),p!=null&&(e.signedTransactions[t].transactions=p))},updateSignedTransactionStatus:(e,o)=>{var l,h,b,y,R,D,Q,no;let{sessionId:t,status:s,errorMessage:c,transactionHash:p,inTransit:m}=o.payload,u=(h=(l=e.signedTransactions)==null?void 0:l[t])==null?void 0:h.transactions;if(u!=null){e.signedTransactions[t].transactions=u.map(ee=>ee.hash===p?S(g({},ee),{status:s,errorMessage:c,inTransit:m}):ee);let $i=(y=(b=e.signedTransactions[t])==null?void 0:b.transactions)==null?void 0:y.every(ee=>ke(ee.status)),Hi=(D=(R=e.signedTransactions[t])==null?void 0:R.transactions)==null?void 0:D.every(ee=>Ae(ee.status)),ji=(no=(Q=e.signedTransactions[t])==null?void 0:Q.transactions)==null?void 0:no.every(ee=>Gt(ee.status));$i&&(e.signedTransactions[t].status="success"),Hi&&(e.signedTransactions[t].status="fail"),ji&&(e.signedTransactions[t].status="invalid")}},setTransactionsToSign:(e,o)=>{e.transactionsToSign=o.payload;let{sessionId:t,customTransactionInformation:s}=o.payload;e.customTransactionInformationForSessionId[t]=s,e.signTransactionsError=null},clearAllTransactionsToSign:e=>{e.transactionsToSign=ze.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=ze.signedTransactions},setSignTransactionsError:(e,o)=>{e.signTransactionsError=o.payload},setSignTransactionsCancelMessage:(e,o)=>{e.signTransactionsCancelMessage=o.payload}},extraReducers:e=>{e.addCase(L,()=>ze),e.addCase(Br.REHYDRATE,(o,t)=>{var m;if(o.signTransactionsCancelMessage=null,!((m=t.payload)!=null&&m.transactions))return;let{signedTransactions:s,customTransactionInformationForSessionId:c}=t.payload.transactions,p=Object.entries(s).reduce((u,[l,h])=>{let b=new Date(l),y=new Date;return y.setHours(y.getHours()+5),y-b>0||(u[l]=h),u},{});c!=null&&(o.customTransactionInformationForSessionId=c),s!=null&&(o.signedTransactions=p)})}}),{updateSignedTransactionStatus:Ur,updateSignedTransactions:Gr,setTransactionsToSign:fc,clearAllTransactionsToSign:Eo,clearAllSignedTransactions:Tc,clearSignedTransaction:hc,clearTransactionToSign:Mu,setSignTransactionsError:xc,setSignTransactionsCancelMessage:qe,moveTransactionsToSignedState:On}=Fr.actions,Lo=Fr.reducer});var Wr,Mn,Vr,Gu,Wu,yc,Vu,No,Po=T(()=>{"use strict";n();Wr=require("@reduxjs/toolkit");P();Mn={},Vr=(0,Wr.createSlice)({name:"batchTransactionsSlice",initialState:Mn,reducers:{setBatchTransactions:(e,o)=>{e[o.payload.id]=o.payload},updateBatchTransactions:(e,o)=>{e[o.payload.id]=o.payload},clearBatchTransactions:(e,o)=>{delete e[o.payload.batchId]},clearAllBatchTransactions:()=>Mn},extraReducers:e=>{e.addCase(L,()=>Mn)}}),{setBatchTransactions:Gu,updateBatchTransactions:Wu,clearBatchTransactions:yc,clearAllBatchTransactions:Vu}=Vr.actions,No=Vr.reducer});var Hr,$r,jr,zu,zr,Bn=T(()=>{"use strict";n();Hr=require("@reduxjs/toolkit");P();$r={},jr=(0,Hr.createSlice)({name:"dappConfigSlice",initialState:$r,reducers:{setDappConfig:(e,o)=>{if(e&&o.payload){let{logoutRoute:t,shouldUseWebViewProvider:s}=o.payload;e.logoutRoute=t,e.shouldUseWebViewProvider=s}else e=o.payload}},extraReducers:e=>{e.addCase(L,()=>$r)}}),{setDappConfig:zu}=jr.actions,zr=jr.reducer});var k=T(()=>{"use strict";n();go();To();xo();bo();wo();Io();Ao();Co();Po();Bn()});var Vn=T(()=>{"use strict";n()});var sa,ia,ca,xf,yf,bf,Sf,wf,vf,pa,ma=T(()=>{"use strict";n();sa=require("@reduxjs/toolkit");P();ia={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},ca=(0,sa.createSlice)({name:"dappModalsSlice",initialState:ia,reducers:{setDappModalVisibility:(e,o)=>{e.visible=o.payload},setDappModalHeaderVisibility:(e,o)=>{e.modal.showHeader=o.payload},setDappModalFooterVisibility:(e,o)=>{e.modal.showFooter=o.payload},setDappModalHeaderText:(e,o)=>{e.modal.headerText=o.payload},setDappModalFooterText:(e,o)=>{e.modal.footerText=o.payload},setDappModalConfig:(e,o)=>{e.modal=g({},o.payload)}},extraReducers:e=>{e.addCase(L,()=>ia)}}),{setDappModalVisibility:xf,setDappModalHeaderVisibility:yf,setDappModalFooterVisibility:bf,setDappModalHeaderText:Sf,setDappModalFooterText:wf,setDappModalConfig:vf}=ca.actions,pa=ca.reducer});var da,Gc,Wc,he,Fo=T(()=>{"use strict";n();da=require("@reduxjs/toolkit");Vn();go();Po();Bn();ma();To();xo();bo();wo();Io();Ao();Co();Gc={["account"]:uo,["dappModal"]:pa,["dappConfig"]:zr,["loginInfo"]:fo,["modals"]:ho,["networkConfig"]:yo,["signedMessageInfo"]:So,["toasts"]:vo,["transactionsInfo"]:ko,["transactions"]:Lo,["batchTransactions"]:No},Wc=(e={})=>(0,da.combineReducers)(g(g({},Gc),e)),he=Wc});var ga={};me(ga,{default:()=>tp,sessionStorageReducers:()=>$n});function ae(e,o=[]){return{key:e,version:1,storage:_a.default,blacklist:o}}var B,la,_a,Vc,Xe,$c,Hc,jc,zc,qc,Kc,Xc,Yc,Zc,Jc,ua,Qc,$n,ep,op,np,tp,fa=T(()=>{"use strict";n();B=require("redux-persist"),la=f(require("redux-persist/lib/storage")),_a=f(require("redux-persist/lib/storage/session"));Fo();k();go();Po();To();xo();bo();wo();Io();Ao();Co();Vn();Vc={persistReducersStorageType:"localStorage"},Xe={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},$c=ae(Xe["account"]),Hc=ae(Xe["loginInfo"]),jc=ae(Xe["modals"]),zc=ae(Xe["networkConfig"]),qc={2:e=>S(g({},e),{networkConfig:An})};Kc=ae("sdk-dapp-transactionsInfo"),Xc=ae("sdk-dapp-transactions",["transactionsToSign"]),Yc=ae("sdk-dapp-batchTransactions",["batchTransactions"]),Zc=ae("sdk-dapp-toasts"),Jc=ae("sdk-dapp-signedMessageInfo"),ua={key:"sdk-dapp-store",version:2,storage:la.default,whitelist:Object.keys(Xe),migrate:(0,B.createMigrate)(qc,{debug:!1})},Qc=S(g({},ua),{whitelist:[]}),$n={["toasts"]:(0,B.persistReducer)(Zc,vo),["transactions"]:(0,B.persistReducer)(Xc,Lo),["transactionsInfo"]:(0,B.persistReducer)(Kc,ko),["batchTransactions"]:(0,B.persistReducer)(Yc,No),["signedMessageInfo"]:(0,B.persistReducer)(Jc,So)},ep=S(g({},$n),{["account"]:(0,B.persistReducer)($c,uo),["loginInfo"]:(0,B.persistReducer)(Hc,fo),["modals"]:(0,B.persistReducer)(jc,ho),["networkConfig"]:(0,B.persistReducer)(zc,yo)}),op=Vc.persistReducersStorageType==="localStorage",np=op?(0,B.persistReducer)(ua,he($n)):(0,B.persistReducer)(Qc,he(ep)),tp=np});var Ta={};me(Ta,{default:()=>rp});var rp,ha=T(()=>{"use strict";n();Fo();rp=he()});var xa={};me(xa,{default:()=>ip});var V,ap,ip,ya=T(()=>{"use strict";n();V=require("redux-persist"),ap=[V.FLUSH,V.REHYDRATE,V.PAUSE,V.PERSIST,V.PURGE,V.REGISTER],ip=ap});var wa={};me(wa,{default:()=>Sa});function Sa(e){return(0,ba.persistStore)(e)}var ba,va=T(()=>{"use strict";n();ba=require("redux-persist")});var gi=U((CC,ui)=>{n();var nd=typeof r=="object"&&r&&r.Object===Object&&r;ui.exports=nd});var Ti=U((NC,fi)=>{n();var td=gi(),rd=typeof self=="object"&&self&&self.Object===Object&&self,ad=td||rd||Function("return this")();fi.exports=ad});var it=U((PC,hi)=>{n();var id=Ti(),sd=id.Symbol;hi.exports=sd});var Si=U((DC,bi)=>{n();var xi=it(),yi=Object.prototype,cd=yi.hasOwnProperty,pd=yi.toString,Qe=xi?xi.toStringTag:void 0;function md(e){var o=cd.call(e,Qe),t=e[Qe];try{e[Qe]=void 0;var s=!0}catch(p){}var c=pd.call(e);return s&&(o?e[Qe]=t:delete e[Qe]),c}bi.exports=md});var vi=U((RC,wi)=>{n();var dd=Object.prototype,ld=dd.toString;function _d(e){return ld.call(e)}wi.exports=_d});var Ei=U((OC,Ai)=>{n();var Ii=it(),ud=Si(),gd=vi(),fd="[object Null]",Td="[object Undefined]",ki=Ii?Ii.toStringTag:void 0;function hd(e){return e==null?e===void 0?Td:fd:ki&&ki in Object(e)?ud(e):gd(e)}Ai.exports=hd});var Ci=U((MC,Li)=>{n();var xd=Array.isArray;Li.exports=xd});var Pi=U((BC,Ni)=>{n();function yd(e){return e!=null&&typeof e=="object"}Ni.exports=yd});var Ri=U((FC,Di)=>{n();var bd=Ei(),Sd=Ci(),wd=Pi(),vd="[object String]";function Id(e){return typeof e=="string"||!Sd(e)&&wd(e)&&bd(e)==vd}Di.exports=Id});var dl={};me(dl,{getIsTransaction:()=>ml,useMemoizedCloseButton:()=>pl,useRemoveCustomToast:()=>Ns});module.exports=Ue(dl);n();n();var Bt=require("react"),Ns=({duration:e,onDelete:o})=>{(0,Bt.useEffect)(()=>{let t;return e&&(t=setTimeout(o,e)),()=>{clearTimeout(t)}},[e])};n();var oo=f(require("react"));n();n();var pn=f(require("react")),Ft=require("@fortawesome/free-solid-svg-icons"),Ut=require("@fortawesome/react-fontawesome"),mn=({className:e="dapp-default-toast-delete-button",onClick:o})=>pn.default.createElement("button",{type:"button",className:e,onClick:o},pn.default.createElement(Ut.FontAwesomeIcon,{icon:Ft.faTimes,size:"xs"}));n();var nl=f(require("react")),tl=require("@fortawesome/react-fontawesome"),rl=f(require("classnames"));n();var Ps=`.dapp-core-component__main__link-style {
1
+ "use strict";var zi=Object.create;var Fe=Object.defineProperty,qi=Object.defineProperties,Ki=Object.getOwnPropertyDescriptor,Xi=Object.getOwnPropertyDescriptors,Yi=Object.getOwnPropertyNames,to=Object.getOwnPropertySymbols,Zi=Object.getPrototypeOf,Yo=Object.prototype.hasOwnProperty,_t=Object.prototype.propertyIsEnumerable;var lt=(e,o,t)=>o in e?Fe(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,g=(e,o)=>{for(var t in o||(o={}))Yo.call(o,t)&&lt(e,t,o[t]);if(to)for(var t of to(o))_t.call(o,t)&&lt(e,t,o[t]);return e},S=(e,o)=>qi(e,Xi(o));var ye=(e,o)=>{var t={};for(var s in e)Yo.call(e,s)&&o.indexOf(s)<0&&(t[s]=e[s]);if(e!=null&&to)for(var s of to(e))o.indexOf(s)<0&&_t.call(e,s)&&(t[s]=e[s]);return t};var T=(e,o)=>()=>(e&&(o=e(e=0)),o);var U=(e,o)=>()=>(o||e((o={exports:{}}).exports,o),o.exports),me=(e,o)=>{for(var t in o)Fe(e,t,{get:o[t],enumerable:!0})},ut=(e,o,t,s)=>{if(o&&typeof o=="object"||typeof o=="function")for(let c of Yi(o))!Yo.call(e,c)&&c!==t&&Fe(e,c,{get:()=>o[c],enumerable:!(s=Ki(o,c))||s.enumerable});return e};var f=(e,o,t)=>(t=e!=null?zi(Zi(e)):{},ut(o||!e||!e.__esModule?Fe(t,"default",{value:e,enumerable:!0}):t,e)),Ue=e=>ut(Fe({},"__esModule",{value:!0}),e);var x=(e,o,t)=>new Promise((s,c)=>{var p=l=>{try{u(t.next(l))}catch(h){c(h)}},m=l=>{try{u(t.throw(l))}catch(h){c(h)}},u=l=>l.done?s(l.value):Promise.resolve(l.value).then(p,m);u((t=t.apply(e,o)).next())});var Tt=U(ro=>{"use strict";n();ro.byteLength=Qi;ro.toByteArray=os;ro.fromByteArray=rs;var H=[],W=[],Ji=typeof Uint8Array!="undefined"?Uint8Array:Array,Zo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(de=0,gt=Zo.length;de<gt;++de)H[de]=Zo[de],W[Zo.charCodeAt(de)]=de;var de,gt;W["-".charCodeAt(0)]=62;W["_".charCodeAt(0)]=63;function ft(e){var o=e.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=o);var s=t===o?0:4-t%4;return[t,s]}function Qi(e){var o=ft(e),t=o[0],s=o[1];return(t+s)*3/4-s}function es(e,o,t){return(o+t)*3/4-t}function os(e){var o,t=ft(e),s=t[0],c=t[1],p=new Ji(es(e,s,c)),m=0,u=c>0?s-4:s,l;for(l=0;l<u;l+=4)o=W[e.charCodeAt(l)]<<18|W[e.charCodeAt(l+1)]<<12|W[e.charCodeAt(l+2)]<<6|W[e.charCodeAt(l+3)],p[m++]=o>>16&255,p[m++]=o>>8&255,p[m++]=o&255;return c===2&&(o=W[e.charCodeAt(l)]<<2|W[e.charCodeAt(l+1)]>>4,p[m++]=o&255),c===1&&(o=W[e.charCodeAt(l)]<<10|W[e.charCodeAt(l+1)]<<4|W[e.charCodeAt(l+2)]>>2,p[m++]=o>>8&255,p[m++]=o&255),p}function ns(e){return H[e>>18&63]+H[e>>12&63]+H[e>>6&63]+H[e&63]}function ts(e,o,t){for(var s,c=[],p=o;p<t;p+=3)s=(e[p]<<16&16711680)+(e[p+1]<<8&65280)+(e[p+2]&255),c.push(ns(s));return c.join("")}function rs(e){for(var o,t=e.length,s=t%3,c=[],p=16383,m=0,u=t-s;m<u;m+=p)c.push(ts(e,m,m+p>u?u:m+p));return s===1?(o=e[t-1],c.push(H[o>>2]+H[o<<4&63]+"==")):s===2&&(o=(e[t-2]<<8)+e[t-1],c.push(H[o>>10]+H[o>>4&63]+H[o<<2&63]+"=")),c.join("")}});var ht=U(Jo=>{n();Jo.read=function(e,o,t,s,c){var p,m,u=c*8-s-1,l=(1<<u)-1,h=l>>1,b=-7,y=t?c-1:0,R=t?-1:1,D=e[o+y];for(y+=R,p=D&(1<<-b)-1,D>>=-b,b+=u;b>0;p=p*256+e[o+y],y+=R,b-=8);for(m=p&(1<<-b)-1,p>>=-b,b+=s;b>0;m=m*256+e[o+y],y+=R,b-=8);if(p===0)p=1-h;else{if(p===l)return m?NaN:(D?-1:1)*(1/0);m=m+Math.pow(2,s),p=p-h}return(D?-1:1)*m*Math.pow(2,p-s)};Jo.write=function(e,o,t,s,c,p){var m,u,l,h=p*8-c-1,b=(1<<h)-1,y=b>>1,R=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,D=s?0:p-1,Q=s?1:-1,no=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(u=isNaN(o)?1:0,m=b):(m=Math.floor(Math.log(o)/Math.LN2),o*(l=Math.pow(2,-m))<1&&(m--,l*=2),m+y>=1?o+=R/l:o+=R*Math.pow(2,1-y),o*l>=2&&(m++,l/=2),m+y>=b?(u=0,m=b):m+y>=1?(u=(o*l-1)*Math.pow(2,c),m=m+y):(u=o*Math.pow(2,y-1)*Math.pow(2,c),m=0));c>=8;e[t+D]=u&255,D+=Q,u/=256,c-=8);for(m=m<<c|u,h+=c;h>0;e[t+D]=m&255,D+=Q,m/=256,h-=8);e[t+D-Q]|=no*128}});var Nt=U(Se=>{"use strict";n();var Qo=Tt(),be=ht(),xt=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Se.Buffer=d;Se.SlowBuffer=ms;Se.INSPECT_MAX_BYTES=50;var ao=2147483647;Se.kMaxLength=ao;d.TYPED_ARRAY_SUPPORT=as();!d.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 as(){try{var e=new Uint8Array(1),o={foo:function(){return 42}};return Object.setPrototypeOf(o,Uint8Array.prototype),Object.setPrototypeOf(e,o),e.foo()===42}catch(t){return!1}}Object.defineProperty(d.prototype,"parent",{enumerable:!0,get:function(){if(!!d.isBuffer(this))return this.buffer}});Object.defineProperty(d.prototype,"offset",{enumerable:!0,get:function(){if(!!d.isBuffer(this))return this.byteOffset}});function oe(e){if(e>ao)throw new RangeError('The value "'+e+'" is invalid for option "size"');var o=new Uint8Array(e);return Object.setPrototypeOf(o,d.prototype),o}function d(e,o,t){if(typeof e=="number"){if(typeof o=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return tn(e)}return St(e,o,t)}d.poolSize=8192;function St(e,o,t){if(typeof e=="string")return ss(e,o);if(ArrayBuffer.isView(e))return cs(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(j(e,ArrayBuffer)||e&&j(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(j(e,SharedArrayBuffer)||e&&j(e.buffer,SharedArrayBuffer)))return on(e,o,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var s=e.valueOf&&e.valueOf();if(s!=null&&s!==e)return d.from(s,o,t);var c=ps(e);if(c)return c;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return d.from(e[Symbol.toPrimitive]("string"),o,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}d.from=function(e,o,t){return St(e,o,t)};Object.setPrototypeOf(d.prototype,Uint8Array.prototype);Object.setPrototypeOf(d,Uint8Array);function wt(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 is(e,o,t){return wt(e),e<=0?oe(e):o!==void 0?typeof t=="string"?oe(e).fill(o,t):oe(e).fill(o):oe(e)}d.alloc=function(e,o,t){return is(e,o,t)};function tn(e){return wt(e),oe(e<0?0:rn(e)|0)}d.allocUnsafe=function(e){return tn(e)};d.allocUnsafeSlow=function(e){return tn(e)};function ss(e,o){if((typeof o!="string"||o==="")&&(o="utf8"),!d.isEncoding(o))throw new TypeError("Unknown encoding: "+o);var t=vt(e,o)|0,s=oe(t),c=s.write(e,o);return c!==t&&(s=s.slice(0,c)),s}function en(e){for(var o=e.length<0?0:rn(e.length)|0,t=oe(o),s=0;s<o;s+=1)t[s]=e[s]&255;return t}function cs(e){if(j(e,Uint8Array)){var o=new Uint8Array(e);return on(o.buffer,o.byteOffset,o.byteLength)}return en(e)}function on(e,o,t){if(o<0||e.byteLength<o)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<o+(t||0))throw new RangeError('"length" is outside of buffer bounds');var s;return o===void 0&&t===void 0?s=new Uint8Array(e):t===void 0?s=new Uint8Array(e,o):s=new Uint8Array(e,o,t),Object.setPrototypeOf(s,d.prototype),s}function ps(e){if(d.isBuffer(e)){var o=rn(e.length)|0,t=oe(o);return t.length===0||e.copy(t,0,0,o),t}if(e.length!==void 0)return typeof e.length!="number"||an(e.length)?oe(0):en(e);if(e.type==="Buffer"&&Array.isArray(e.data))return en(e.data)}function rn(e){if(e>=ao)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ao.toString(16)+" bytes");return e|0}function ms(e){return+e!=e&&(e=0),d.alloc(+e)}d.isBuffer=function(o){return o!=null&&o._isBuffer===!0&&o!==d.prototype};d.compare=function(o,t){if(j(o,Uint8Array)&&(o=d.from(o,o.offset,o.byteLength)),j(t,Uint8Array)&&(t=d.from(t,t.offset,t.byteLength)),!d.isBuffer(o)||!d.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(o===t)return 0;for(var s=o.length,c=t.length,p=0,m=Math.min(s,c);p<m;++p)if(o[p]!==t[p]){s=o[p],c=t[p];break}return s<c?-1:c<s?1:0};d.isEncoding=function(o){switch(String(o).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}};d.concat=function(o,t){if(!Array.isArray(o))throw new TypeError('"list" argument must be an Array of Buffers');if(o.length===0)return d.alloc(0);var s;if(t===void 0)for(t=0,s=0;s<o.length;++s)t+=o[s].length;var c=d.allocUnsafe(t),p=0;for(s=0;s<o.length;++s){var m=o[s];if(j(m,Uint8Array))p+m.length>c.length?d.from(m).copy(c,p):Uint8Array.prototype.set.call(c,m,p);else if(d.isBuffer(m))m.copy(c,p);else throw new TypeError('"list" argument must be an Array of Buffers');p+=m.length}return c};function vt(e,o){if(d.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||j(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,s=arguments.length>2&&arguments[2]===!0;if(!s&&t===0)return 0;for(var c=!1;;)switch(o){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return nn(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Ct(e).length;default:if(c)return s?-1:nn(e).length;o=(""+o).toLowerCase(),c=!0}}d.byteLength=vt;function ds(e,o,t){var s=!1;if((o===void 0||o<0)&&(o=0),o>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,o>>>=0,t<=o))return"";for(e||(e="utf8");;)switch(e){case"hex":return bs(this,o,t);case"utf8":case"utf-8":return kt(this,o,t);case"ascii":return xs(this,o,t);case"latin1":case"binary":return ys(this,o,t);case"base64":return Ts(this,o,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ss(this,o,t);default:if(s)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}d.prototype._isBuffer=!0;function le(e,o,t){var s=e[o];e[o]=e[t],e[t]=s}d.prototype.swap16=function(){var o=this.length;if(o%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<o;t+=2)le(this,t,t+1);return this};d.prototype.swap32=function(){var o=this.length;if(o%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<o;t+=4)le(this,t,t+3),le(this,t+1,t+2);return this};d.prototype.swap64=function(){var o=this.length;if(o%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<o;t+=8)le(this,t,t+7),le(this,t+1,t+6),le(this,t+2,t+5),le(this,t+3,t+4);return this};d.prototype.toString=function(){var o=this.length;return o===0?"":arguments.length===0?kt(this,0,o):ds.apply(this,arguments)};d.prototype.toLocaleString=d.prototype.toString;d.prototype.equals=function(o){if(!d.isBuffer(o))throw new TypeError("Argument must be a Buffer");return this===o?!0:d.compare(this,o)===0};d.prototype.inspect=function(){var o="",t=Se.INSPECT_MAX_BYTES;return o=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(o+=" ... "),"<Buffer "+o+">"};xt&&(d.prototype[xt]=d.prototype.inspect);d.prototype.compare=function(o,t,s,c,p){if(j(o,Uint8Array)&&(o=d.from(o,o.offset,o.byteLength)),!d.isBuffer(o))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof o);if(t===void 0&&(t=0),s===void 0&&(s=o?o.length:0),c===void 0&&(c=0),p===void 0&&(p=this.length),t<0||s>o.length||c<0||p>this.length)throw new RangeError("out of range index");if(c>=p&&t>=s)return 0;if(c>=p)return-1;if(t>=s)return 1;if(t>>>=0,s>>>=0,c>>>=0,p>>>=0,this===o)return 0;for(var m=p-c,u=s-t,l=Math.min(m,u),h=this.slice(c,p),b=o.slice(t,s),y=0;y<l;++y)if(h[y]!==b[y]){m=h[y],u=b[y];break}return m<u?-1:u<m?1:0};function It(e,o,t,s,c){if(e.length===0)return-1;if(typeof t=="string"?(s=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,an(t)&&(t=c?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(c)return-1;t=e.length-1}else if(t<0)if(c)t=0;else return-1;if(typeof o=="string"&&(o=d.from(o,s)),d.isBuffer(o))return o.length===0?-1:yt(e,o,t,s,c);if(typeof o=="number")return o=o&255,typeof Uint8Array.prototype.indexOf=="function"?c?Uint8Array.prototype.indexOf.call(e,o,t):Uint8Array.prototype.lastIndexOf.call(e,o,t):yt(e,[o],t,s,c);throw new TypeError("val must be string, number or Buffer")}function yt(e,o,t,s,c){var p=1,m=e.length,u=o.length;if(s!==void 0&&(s=String(s).toLowerCase(),s==="ucs2"||s==="ucs-2"||s==="utf16le"||s==="utf-16le")){if(e.length<2||o.length<2)return-1;p=2,m/=2,u/=2,t/=2}function l(D,Q){return p===1?D[Q]:D.readUInt16BE(Q*p)}var h;if(c){var b=-1;for(h=t;h<m;h++)if(l(e,h)===l(o,b===-1?0:h-b)){if(b===-1&&(b=h),h-b+1===u)return b*p}else b!==-1&&(h-=h-b),b=-1}else for(t+u>m&&(t=m-u),h=t;h>=0;h--){for(var y=!0,R=0;R<u;R++)if(l(e,h+R)!==l(o,R)){y=!1;break}if(y)return h}return-1}d.prototype.includes=function(o,t,s){return this.indexOf(o,t,s)!==-1};d.prototype.indexOf=function(o,t,s){return It(this,o,t,s,!0)};d.prototype.lastIndexOf=function(o,t,s){return It(this,o,t,s,!1)};function ls(e,o,t,s){t=Number(t)||0;var c=e.length-t;s?(s=Number(s),s>c&&(s=c)):s=c;var p=o.length;s>p/2&&(s=p/2);for(var m=0;m<s;++m){var u=parseInt(o.substr(m*2,2),16);if(an(u))return m;e[t+m]=u}return m}function _s(e,o,t,s){return io(nn(o,e.length-t),e,t,s)}function us(e,o,t,s){return io(Is(o),e,t,s)}function gs(e,o,t,s){return io(Ct(o),e,t,s)}function fs(e,o,t,s){return io(ks(o,e.length-t),e,t,s)}d.prototype.write=function(o,t,s,c){if(t===void 0)c="utf8",s=this.length,t=0;else if(s===void 0&&typeof t=="string")c=t,s=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(s)?(s=s>>>0,c===void 0&&(c="utf8")):(c=s,s=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var p=this.length-t;if((s===void 0||s>p)&&(s=p),o.length>0&&(s<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");c||(c="utf8");for(var m=!1;;)switch(c){case"hex":return ls(this,o,t,s);case"utf8":case"utf-8":return _s(this,o,t,s);case"ascii":case"latin1":case"binary":return us(this,o,t,s);case"base64":return gs(this,o,t,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return fs(this,o,t,s);default:if(m)throw new TypeError("Unknown encoding: "+c);c=(""+c).toLowerCase(),m=!0}};d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ts(e,o,t){return o===0&&t===e.length?Qo.fromByteArray(e):Qo.fromByteArray(e.slice(o,t))}function kt(e,o,t){t=Math.min(e.length,t);for(var s=[],c=o;c<t;){var p=e[c],m=null,u=p>239?4:p>223?3:p>191?2:1;if(c+u<=t){var l,h,b,y;switch(u){case 1:p<128&&(m=p);break;case 2:l=e[c+1],(l&192)===128&&(y=(p&31)<<6|l&63,y>127&&(m=y));break;case 3:l=e[c+1],h=e[c+2],(l&192)===128&&(h&192)===128&&(y=(p&15)<<12|(l&63)<<6|h&63,y>2047&&(y<55296||y>57343)&&(m=y));break;case 4:l=e[c+1],h=e[c+2],b=e[c+3],(l&192)===128&&(h&192)===128&&(b&192)===128&&(y=(p&15)<<18|(l&63)<<12|(h&63)<<6|b&63,y>65535&&y<1114112&&(m=y))}}m===null?(m=65533,u=1):m>65535&&(m-=65536,s.push(m>>>10&1023|55296),m=56320|m&1023),s.push(m),c+=u}return hs(s)}var bt=4096;function hs(e){var o=e.length;if(o<=bt)return String.fromCharCode.apply(String,e);for(var t="",s=0;s<o;)t+=String.fromCharCode.apply(String,e.slice(s,s+=bt));return t}function xs(e,o,t){var s="";t=Math.min(e.length,t);for(var c=o;c<t;++c)s+=String.fromCharCode(e[c]&127);return s}function ys(e,o,t){var s="";t=Math.min(e.length,t);for(var c=o;c<t;++c)s+=String.fromCharCode(e[c]);return s}function bs(e,o,t){var s=e.length;(!o||o<0)&&(o=0),(!t||t<0||t>s)&&(t=s);for(var c="",p=o;p<t;++p)c+=As[e[p]];return c}function Ss(e,o,t){for(var s=e.slice(o,t),c="",p=0;p<s.length-1;p+=2)c+=String.fromCharCode(s[p]+s[p+1]*256);return c}d.prototype.slice=function(o,t){var s=this.length;o=~~o,t=t===void 0?s:~~t,o<0?(o+=s,o<0&&(o=0)):o>s&&(o=s),t<0?(t+=s,t<0&&(t=0)):t>s&&(t=s),t<o&&(t=o);var c=this.subarray(o,t);return Object.setPrototypeOf(c,d.prototype),c};function N(e,o,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+o>t)throw new RangeError("Trying to access beyond buffer length")}d.prototype.readUintLE=d.prototype.readUIntLE=function(o,t,s){o=o>>>0,t=t>>>0,s||N(o,t,this.length);for(var c=this[o],p=1,m=0;++m<t&&(p*=256);)c+=this[o+m]*p;return c};d.prototype.readUintBE=d.prototype.readUIntBE=function(o,t,s){o=o>>>0,t=t>>>0,s||N(o,t,this.length);for(var c=this[o+--t],p=1;t>0&&(p*=256);)c+=this[o+--t]*p;return c};d.prototype.readUint8=d.prototype.readUInt8=function(o,t){return o=o>>>0,t||N(o,1,this.length),this[o]};d.prototype.readUint16LE=d.prototype.readUInt16LE=function(o,t){return o=o>>>0,t||N(o,2,this.length),this[o]|this[o+1]<<8};d.prototype.readUint16BE=d.prototype.readUInt16BE=function(o,t){return o=o>>>0,t||N(o,2,this.length),this[o]<<8|this[o+1]};d.prototype.readUint32LE=d.prototype.readUInt32LE=function(o,t){return o=o>>>0,t||N(o,4,this.length),(this[o]|this[o+1]<<8|this[o+2]<<16)+this[o+3]*16777216};d.prototype.readUint32BE=d.prototype.readUInt32BE=function(o,t){return o=o>>>0,t||N(o,4,this.length),this[o]*16777216+(this[o+1]<<16|this[o+2]<<8|this[o+3])};d.prototype.readIntLE=function(o,t,s){o=o>>>0,t=t>>>0,s||N(o,t,this.length);for(var c=this[o],p=1,m=0;++m<t&&(p*=256);)c+=this[o+m]*p;return p*=128,c>=p&&(c-=Math.pow(2,8*t)),c};d.prototype.readIntBE=function(o,t,s){o=o>>>0,t=t>>>0,s||N(o,t,this.length);for(var c=t,p=1,m=this[o+--c];c>0&&(p*=256);)m+=this[o+--c]*p;return p*=128,m>=p&&(m-=Math.pow(2,8*t)),m};d.prototype.readInt8=function(o,t){return o=o>>>0,t||N(o,1,this.length),this[o]&128?(255-this[o]+1)*-1:this[o]};d.prototype.readInt16LE=function(o,t){o=o>>>0,t||N(o,2,this.length);var s=this[o]|this[o+1]<<8;return s&32768?s|4294901760:s};d.prototype.readInt16BE=function(o,t){o=o>>>0,t||N(o,2,this.length);var s=this[o+1]|this[o]<<8;return s&32768?s|4294901760:s};d.prototype.readInt32LE=function(o,t){return o=o>>>0,t||N(o,4,this.length),this[o]|this[o+1]<<8|this[o+2]<<16|this[o+3]<<24};d.prototype.readInt32BE=function(o,t){return o=o>>>0,t||N(o,4,this.length),this[o]<<24|this[o+1]<<16|this[o+2]<<8|this[o+3]};d.prototype.readFloatLE=function(o,t){return o=o>>>0,t||N(o,4,this.length),be.read(this,o,!0,23,4)};d.prototype.readFloatBE=function(o,t){return o=o>>>0,t||N(o,4,this.length),be.read(this,o,!1,23,4)};d.prototype.readDoubleLE=function(o,t){return o=o>>>0,t||N(o,8,this.length),be.read(this,o,!0,52,8)};d.prototype.readDoubleBE=function(o,t){return o=o>>>0,t||N(o,8,this.length),be.read(this,o,!1,52,8)};function O(e,o,t,s,c,p){if(!d.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(o>c||o<p)throw new RangeError('"value" argument is out of bounds');if(t+s>e.length)throw new RangeError("Index out of range")}d.prototype.writeUintLE=d.prototype.writeUIntLE=function(o,t,s,c){if(o=+o,t=t>>>0,s=s>>>0,!c){var p=Math.pow(2,8*s)-1;O(this,o,t,s,p,0)}var m=1,u=0;for(this[t]=o&255;++u<s&&(m*=256);)this[t+u]=o/m&255;return t+s};d.prototype.writeUintBE=d.prototype.writeUIntBE=function(o,t,s,c){if(o=+o,t=t>>>0,s=s>>>0,!c){var p=Math.pow(2,8*s)-1;O(this,o,t,s,p,0)}var m=s-1,u=1;for(this[t+m]=o&255;--m>=0&&(u*=256);)this[t+m]=o/u&255;return t+s};d.prototype.writeUint8=d.prototype.writeUInt8=function(o,t,s){return o=+o,t=t>>>0,s||O(this,o,t,1,255,0),this[t]=o&255,t+1};d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(o,t,s){return o=+o,t=t>>>0,s||O(this,o,t,2,65535,0),this[t]=o&255,this[t+1]=o>>>8,t+2};d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(o,t,s){return o=+o,t=t>>>0,s||O(this,o,t,2,65535,0),this[t]=o>>>8,this[t+1]=o&255,t+2};d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(o,t,s){return o=+o,t=t>>>0,s||O(this,o,t,4,4294967295,0),this[t+3]=o>>>24,this[t+2]=o>>>16,this[t+1]=o>>>8,this[t]=o&255,t+4};d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(o,t,s){return o=+o,t=t>>>0,s||O(this,o,t,4,4294967295,0),this[t]=o>>>24,this[t+1]=o>>>16,this[t+2]=o>>>8,this[t+3]=o&255,t+4};d.prototype.writeIntLE=function(o,t,s,c){if(o=+o,t=t>>>0,!c){var p=Math.pow(2,8*s-1);O(this,o,t,s,p-1,-p)}var m=0,u=1,l=0;for(this[t]=o&255;++m<s&&(u*=256);)o<0&&l===0&&this[t+m-1]!==0&&(l=1),this[t+m]=(o/u>>0)-l&255;return t+s};d.prototype.writeIntBE=function(o,t,s,c){if(o=+o,t=t>>>0,!c){var p=Math.pow(2,8*s-1);O(this,o,t,s,p-1,-p)}var m=s-1,u=1,l=0;for(this[t+m]=o&255;--m>=0&&(u*=256);)o<0&&l===0&&this[t+m+1]!==0&&(l=1),this[t+m]=(o/u>>0)-l&255;return t+s};d.prototype.writeInt8=function(o,t,s){return o=+o,t=t>>>0,s||O(this,o,t,1,127,-128),o<0&&(o=255+o+1),this[t]=o&255,t+1};d.prototype.writeInt16LE=function(o,t,s){return o=+o,t=t>>>0,s||O(this,o,t,2,32767,-32768),this[t]=o&255,this[t+1]=o>>>8,t+2};d.prototype.writeInt16BE=function(o,t,s){return o=+o,t=t>>>0,s||O(this,o,t,2,32767,-32768),this[t]=o>>>8,this[t+1]=o&255,t+2};d.prototype.writeInt32LE=function(o,t,s){return o=+o,t=t>>>0,s||O(this,o,t,4,2147483647,-2147483648),this[t]=o&255,this[t+1]=o>>>8,this[t+2]=o>>>16,this[t+3]=o>>>24,t+4};d.prototype.writeInt32BE=function(o,t,s){return o=+o,t=t>>>0,s||O(this,o,t,4,2147483647,-2147483648),o<0&&(o=4294967295+o+1),this[t]=o>>>24,this[t+1]=o>>>16,this[t+2]=o>>>8,this[t+3]=o&255,t+4};function At(e,o,t,s,c,p){if(t+s>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Et(e,o,t,s,c){return o=+o,t=t>>>0,c||At(e,o,t,4,34028234663852886e22,-34028234663852886e22),be.write(e,o,t,s,23,4),t+4}d.prototype.writeFloatLE=function(o,t,s){return Et(this,o,t,!0,s)};d.prototype.writeFloatBE=function(o,t,s){return Et(this,o,t,!1,s)};function Lt(e,o,t,s,c){return o=+o,t=t>>>0,c||At(e,o,t,8,17976931348623157e292,-17976931348623157e292),be.write(e,o,t,s,52,8),t+8}d.prototype.writeDoubleLE=function(o,t,s){return Lt(this,o,t,!0,s)};d.prototype.writeDoubleBE=function(o,t,s){return Lt(this,o,t,!1,s)};d.prototype.copy=function(o,t,s,c){if(!d.isBuffer(o))throw new TypeError("argument should be a Buffer");if(s||(s=0),!c&&c!==0&&(c=this.length),t>=o.length&&(t=o.length),t||(t=0),c>0&&c<s&&(c=s),c===s||o.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(s<0||s>=this.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("sourceEnd out of bounds");c>this.length&&(c=this.length),o.length-t<c-s&&(c=o.length-t+s);var p=c-s;return this===o&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,s,c):Uint8Array.prototype.set.call(o,this.subarray(s,c),t),p};d.prototype.fill=function(o,t,s,c){if(typeof o=="string"){if(typeof t=="string"?(c=t,t=0,s=this.length):typeof s=="string"&&(c=s,s=this.length),c!==void 0&&typeof c!="string")throw new TypeError("encoding must be a string");if(typeof c=="string"&&!d.isEncoding(c))throw new TypeError("Unknown encoding: "+c);if(o.length===1){var p=o.charCodeAt(0);(c==="utf8"&&p<128||c==="latin1")&&(o=p)}}else typeof o=="number"?o=o&255:typeof o=="boolean"&&(o=Number(o));if(t<0||this.length<t||this.length<s)throw new RangeError("Out of range index");if(s<=t)return this;t=t>>>0,s=s===void 0?this.length:s>>>0,o||(o=0);var m;if(typeof o=="number")for(m=t;m<s;++m)this[m]=o;else{var u=d.isBuffer(o)?o:d.from(o,c),l=u.length;if(l===0)throw new TypeError('The value "'+o+'" is invalid for argument "value"');for(m=0;m<s-t;++m)this[m+t]=u[m%l]}return this};var ws=/[^+/0-9A-Za-z-_]/g;function vs(e){if(e=e.split("=")[0],e=e.trim().replace(ws,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function nn(e,o){o=o||1/0;for(var t,s=e.length,c=null,p=[],m=0;m<s;++m){if(t=e.charCodeAt(m),t>55295&&t<57344){if(!c){if(t>56319){(o-=3)>-1&&p.push(239,191,189);continue}else if(m+1===s){(o-=3)>-1&&p.push(239,191,189);continue}c=t;continue}if(t<56320){(o-=3)>-1&&p.push(239,191,189),c=t;continue}t=(c-55296<<10|t-56320)+65536}else c&&(o-=3)>-1&&p.push(239,191,189);if(c=null,t<128){if((o-=1)<0)break;p.push(t)}else if(t<2048){if((o-=2)<0)break;p.push(t>>6|192,t&63|128)}else if(t<65536){if((o-=3)<0)break;p.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((o-=4)<0)break;p.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return p}function Is(e){for(var o=[],t=0;t<e.length;++t)o.push(e.charCodeAt(t)&255);return o}function ks(e,o){for(var t,s,c,p=[],m=0;m<e.length&&!((o-=2)<0);++m)t=e.charCodeAt(m),s=t>>8,c=t%256,p.push(c),p.push(s);return p}function Ct(e){return Qo.toByteArray(vs(e))}function io(e,o,t,s){for(var c=0;c<s&&!(c+t>=o.length||c>=e.length);++c)o[c+t]=e[c];return c}function j(e,o){return e instanceof o||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===o.name}function an(e){return e!==e}var As=function(){for(var e="0123456789abcdef",o=new Array(256),t=0;t<16;++t)for(var s=t*16,c=0;c<16;++c)o[s+c]=e[t]+e[c];return o}()});var Mt=U((fl,Ot)=>{n();var E=Ot.exports={},z,q;function sn(){throw new Error("setTimeout has not been defined")}function cn(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?z=setTimeout:z=sn}catch(e){z=sn}try{typeof clearTimeout=="function"?q=clearTimeout:q=cn}catch(e){q=cn}})();function Pt(e){if(z===setTimeout)return setTimeout(e,0);if((z===sn||!z)&&setTimeout)return z=setTimeout,setTimeout(e,0);try{return z(e,0)}catch(o){try{return z.call(null,e,0)}catch(t){return z.call(this,e,0)}}}function Es(e){if(q===clearTimeout)return clearTimeout(e);if((q===cn||!q)&&clearTimeout)return q=clearTimeout,clearTimeout(e);try{return q(e)}catch(o){try{return q.call(null,e)}catch(t){return q.call(this,e)}}}var ne=[],we=!1,_e,so=-1;function Ls(){!we||!_e||(we=!1,_e.length?ne=_e.concat(ne):so=-1,ne.length&&Dt())}function Dt(){if(!we){var e=Pt(Ls);we=!0;for(var o=ne.length;o;){for(_e=ne,ne=[];++so<o;)_e&&_e[so].run();so=-1,o=ne.length}_e=null,we=!1,Es(e)}}E.nextTick=function(e){var o=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)o[t-1]=arguments[t];ne.push(new Rt(e,o)),ne.length===1&&!we&&Pt(Dt)};function Rt(e,o){this.fun=e,this.array=o}Rt.prototype.run=function(){this.fun.apply(null,this.array)};E.title="browser";E.browser=!0;E.env={};E.argv=[];E.version="";E.versions={};function te(){}E.on=te;E.addListener=te;E.once=te;E.off=te;E.removeListener=te;E.removeAllListeners=te;E.emit=te;E.prependListener=te;E.prependOnceListener=te;E.listeners=function(e){return[]};E.binding=function(e){throw new Error("process.binding is not supported")};E.cwd=function(){return"/"};E.chdir=function(e){throw new Error("process.chdir is not supported")};E.umask=function(){return 0}});var a,i,Cs,r,n=T(()=>{a=f(Nt()),i=f(Mt()),Cs=function(e){function o(){var s=this||self;return delete e.prototype.__magic__,s}if(typeof globalThis=="object")return globalThis;if(this)return o();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:o});var t=__magic__;return t}(Object),r=Cs});var A=T(()=>{"use strict";n()});function Ie(e){return e!=null&&(Vs(e)||Wt(e))}function ke(e){return e!=null&&($s(e)||qs(e))}function Ae(e){return e!=null&&(Hs(e)||Ks(e))}function Gt(e){return e!=null&&(js(e)||Xs(e))}function dn(e){return e!=null&&zs(e)}function Vs(e){return e!=null&&Ds.includes(e)}function $s(e){return e!=null&&Rs.includes(e)}function Hs(e){return e!=null&&Os.includes(e)}function js(e){return e!=null&&Ms.includes(e)}function zs(e){return e!=null&&Bs.includes(e)}function Wt(e){return e!=null&&Fs.includes(e)}function qs(e){return e!=null&&Us.includes(e)}function Ks(e){return e!=null&&Gs.includes(e)}function Xs(e){return e!=null&&Ws.includes(e)}var Ds,Rs,Os,Ms,Bs,Fs,Us,Gs,Ws,ue=T(()=>{"use strict";n();A();Ds=["sent"],Rs=["success"],Os=["fail","cancelled","timedOut"],Ms=["invalid"],Bs=["timedOut"],Fs=["pending"],Us=["success"],Gs=["fail","invalid"],Ws=["not executed"]});var ge=T(()=>{"use strict";n()});var ln=T(()=>{"use strict";n()});var Vt=T(()=>{"use strict";n()});var $t=T(()=>{"use strict";n()});var Ht=T(()=>{"use strict";n()});var jt=T(()=>{"use strict";n()});var M=T(()=>{"use strict";n()});var zt=T(()=>{"use strict";n()});var qt=T(()=>{"use strict";n()});var Kt=T(()=>{"use strict";n()});var C=T(()=>{"use strict";n();ln();Vt();$t();A();Ht();jt();M();zt();qt();Kt()});var Ee,Xt,Wl,Yt,Vl,Zt,$l,Hl,Ys,Ge=T(()=>{"use strict";n();C();Ee={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:Xt,egldLabel:Wl}=Ee["devnet"],{chainId:Yt,egldLabel:Vl}=Ee["testnet"],{chainId:Zt,egldLabel:$l}=Ee["mainnet"],Hl={["devnet"]:Xt,["testnet"]:Yt,["mainnet"]:Zt},Ys={[Xt]:"devnet",[Yt]:"testnet",[Zt]:"mainnet"}});var _n=T(()=>{"use strict";n()});var Jt=T(()=>{"use strict";n()});var co,un=T(()=>{"use strict";n();co="transaction-status-toast-id"});var K,Qt=T(()=>{"use strict";n();K=require("@multiversx/sdk-web-wallet-provider")});var er=T(()=>{"use strict";n()});var or=T(()=>{"use strict";n()});var We,po,nr,mo,tr,Le,w=T(()=>{"use strict";n();ge();Ge();_n();Jt();un();Qt();er();or();We=5e4,po=1e9,nr=1,mo="logout",tr="login",Le="0"});var Ve,lo=T(()=>{"use strict";n();Ve=()=>Date.now()/1e3});var rr=T(()=>{"use strict";n()});var ar=T(()=>{"use strict";n()});var gn=T(()=>{"use strict";n();lo();rr();ar()});var Tn={};me(Tn,{getItem:()=>Js,localStorageKeys:()=>pe,removeItem:()=>Qs,setItem:()=>Zs});var pe,fn,Zs,Js,Qs,Ce=T(()=>{"use strict";n();gn();pe={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},fn=typeof localStorage!="undefined",Zs=({key:e,data:o,expires:t})=>{!fn||localStorage.setItem(String(e),JSON.stringify({expires:t,data:o}))},Js=e=>{if(!fn)return;let o=localStorage.getItem(String(e));if(!o)return null;let t=JSON.parse(o);return!t||!t.hasOwnProperty("expires")||!t.hasOwnProperty("data")?null:Ve()>=t.expires?(localStorage.removeItem(String(e)),null):t.data},Qs=e=>{!fn||localStorage.removeItem(String(e))}});var hn={};me(hn,{clear:()=>pr,getItem:()=>sr,removeItem:()=>cr,setItem:()=>ir,storage:()=>ec});var ir,sr,cr,pr,ec,mr=T(()=>{"use strict";n();ir=({key:e,data:o,expires:t})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:t,data:o}))},sr=e=>{let o=sessionStorage.getItem(String(e));if(!o)return null;let t=JSON.parse(o);return!t||!t.hasOwnProperty("expires")||!t.hasOwnProperty("data")?null:Date.now()>=t.expires?(sessionStorage.removeItem(String(e)),null):t.data},cr=e=>sessionStorage.removeItem(String(e)),pr=()=>sessionStorage.clear(),ec={setItem:ir,getItem:sr,removeItem:cr,clear:pr}});var fe,Ne=T(()=>{"use strict";n();Ce();mr();fe={session:hn,local:Tn}});var xn,L,X,P=T(()=>{"use strict";n();xn=require("@reduxjs/toolkit");w();L=(0,xn.createAction)(mo),X=(0,xn.createAction)(tr,e=>({payload:e}))});var bn,dr,lr,_o,yn,_r,Sn,v_,wn,I_,oc,nc,k_,A_,E_,tc,rc,uo,go=T(()=>{"use strict";n();bn=require("@multiversx/sdk-core"),dr=require("@reduxjs/toolkit"),lr=require("redux-persist");w();Ne();Ce();P();_o={balance:"...",address:"",isGuarded:!1,nonce:0,txCount:0,scrCount:0,claimableRewards:Le},yn={address:"",websocketEvent:null,websocketBatchEvent:null,accounts:{"":_o},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},_r=(0,dr.createSlice)({name:"accountInfoSlice",initialState:yn,reducers:{setAddress:(e,o)=>{let t=o.payload;e.address=t,e.publicKey=new bn.Address(t).hex()},setAccount:(e,o)=>{let t=e.address===o.payload.address;e.accounts={[e.address]:t?o.payload:_o},e.shard=o.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,o)=>{let{address:t}=e;e.accounts[t].nonce=o.payload},setAccountShard:(e,o)=>{e.shard=o.payload},setLedgerAccount:(e,o)=>{e.ledgerAccount=o.payload},updateLedgerAccount:(e,o)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=o.payload.index,e.ledgerAccount.address=o.payload.address)},setWalletConnectAccount:(e,o)=>{e.walletConnectAccount=o.payload},setIsAccountLoading:(e,o)=>{e.isAccountLoading=o.payload,e.accountLoadingError=null},setAccountLoadingError:(e,o)=>{e.accountLoadingError=o.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,o)=>{e.websocketEvent={timestamp:Date.now(),message:o.payload}},setWebsocketBatchEvent:(e,o)=>{e.websocketBatchEvent={timestamp:Date.now(),data:o.payload}}},extraReducers:e=>{e.addCase(L,()=>(fe.local.removeItem(pe.loginExpiresAt),yn)),e.addCase(X,(o,t)=>{let{address:s}=t.payload;o.address=s,o.publicKey=new bn.Address(s).hex()}),e.addCase(lr.REHYDRATE,(o,t)=>{var h;if(!((h=t.payload)!=null&&h.account))return;let{account:s}=t.payload,{address:c,shard:p,accounts:m,publicKey:u}=s;o.address=c,o.shard=p;let l=m&&c in m;o.accounts=l?m:yn.accounts,o.publicKey=u})}}),{setAccount:Sn,setAddress:v_,setAccountNonce:wn,setAccountShard:I_,setLedgerAccount:oc,updateLedgerAccount:nc,setWalletConnectAccount:k_,setIsAccountLoading:A_,setAccountLoadingError:E_,setWebsocketEvent:tc,setWebsocketBatchEvent:rc}=_r.actions,uo=_r.reducer});function $e(){return new Date().setHours(new Date().getHours()+24)}function He(e){fe.local.setItem({key:pe.loginExpiresAt,data:e,expires:e})}var vn=T(()=>{"use strict";n();Ne();Ce()});var gr,ur,fr,F_,Tr,ac,ic,U_,sc,hr,G_,fo,To=T(()=>{"use strict";n();gr=require("@reduxjs/toolkit");vn();A();P();ur={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},fr=(0,gr.createSlice)({name:"loginInfoSlice",initialState:ur,reducers:{setLoginMethod:(e,o)=>{e.loginMethod=o.payload},setTokenLogin:(e,o)=>{e.tokenLogin=o.payload},setTokenLoginSignature:(e,o)=>{(e==null?void 0:e.tokenLogin)!=null&&(e.tokenLogin.signature=o.payload)},setWalletLogin:(e,o)=>{e.walletLogin=o.payload},setWalletConnectLogin:(e,o)=>{e.walletConnectLogin=o.payload},setLedgerLogin:(e,o)=>{e.ledgerLogin=o.payload},invalidateLoginSession:e=>{e.isLoginSessionInvalid=!0},setLogoutRoute:(e,o)=>{e.logoutRoute=o.payload}},extraReducers:e=>{e.addCase(L,()=>ur),e.addCase(X,(o,t)=>{o.loginMethod=t.payload.loginMethod,He($e())})}}),{setLoginMethod:F_,setWalletConnectLogin:Tr,setLedgerLogin:ac,setTokenLogin:ic,setTokenLoginSignature:U_,setWalletLogin:sc,invalidateLoginSession:hr,setLogoutRoute:G_}=fr.actions,fo=fr.reducer});var yr,xr,br,H_,cc,j_,pc,ho,xo=T(()=>{"use strict";n();yr=require("@reduxjs/toolkit");P();xr={},br=(0,yr.createSlice)({name:"modalsSlice",initialState:xr,reducers:{setTxSubmittedModal:(e,o)=>{e.txSubmittedModal=o.payload},setNotificationModal:(e,o)=>{e.notificationModal=o.payload},clearTxSubmittedModal:e=>{e.txSubmittedModal=void 0},clearNotificationModal:e=>{e.notificationModal=void 0}},extraReducers:e=>{e.addCase(L,()=>xr)}}),{setTxSubmittedModal:H_,setNotificationModal:cc,clearTxSubmittedModal:j_,clearNotificationModal:pc}=br.actions,ho=br.reducer});var je=T(()=>{"use strict";n()});var wr=T(()=>{"use strict";n();je()});function In(e){return e[Math.floor(Math.random()*e.length)]}var vr=T(()=>{"use strict";n()});var kn=T(()=>{"use strict";n();_n()});var Te=T(()=>{"use strict";n();wr();vr();kn()});var Ir,kr,An,mc,Ar,iu,su,yo,bo=T(()=>{"use strict";n();Ir=require("@reduxjs/toolkit"),kr=f(require("lodash.omit"));Te();An={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},mc={network:An,chainID:"-1"},Ar=(0,Ir.createSlice)({name:"appConfig",initialState:mc,reducers:{initializeNetworkConfig:(e,o)=>{let t=In(o.payload.walletConnectBridgeAddresses),s=In(o.payload.walletConnectV2RelayAddresses),c=(0,kr.default)(o.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=S(g(g({},e.network),c),{walletConnectBridgeAddress:t,walletConnectV2RelayAddress:s})},setChainID:(e,o)=>{e.chainID=o.payload}}}),{initializeNetworkConfig:iu,setChainID:su}=Ar.actions,yo=Ar.reducer});var Er,En,Lr,_u,uu,gu,So,wo=T(()=>{"use strict";n();Er=require("@reduxjs/toolkit");C();P();En={isSigning:!1,signedSessions:{}},Lr=(0,Er.createSlice)({name:"signedMessageInfoSliceState",initialState:En,reducers:{setSignSession:(e,o)=>{let{sessionId:t,signedSession:s,errorMessage:c}=o.payload;c&&(e.errorMessage=c),e.isSigning=s.status==="pending",e.signedSessions[t]=s},setSignSessionState:(e,o)=>g(g({},e),o.payload),clearSignedMessageInfo:()=>En},extraReducers:e=>{e.addCase(L,()=>En)}}),{setSignSession:_u,clearSignedMessageInfo:uu,setSignSessionState:gu}=Lr.actions,So=Lr.reducer});var Nr,Pr,Cr,Dr,dc,Ln,wu,lc,vu,Iu,vo,Io=T(()=>{"use strict";n();Nr=require("@reduxjs/toolkit"),Pr=require("redux-persist");un();C();lo();P();Cr={customToasts:[],transactionToasts:[],failTransactionToast:null},Dr=(0,Nr.createSlice)({name:"toastsSlice",initialState:Cr,reducers:{addCustomToast:(e,o)=>{e.customToasts.push(S(g({},o.payload),{type:"custom",toastId:o.payload.toastId||`custom-toast-${e.customToasts.length+1}`}))},removeCustomToast:(e,o)=>{e.customToasts=e.customToasts.filter(t=>t.toastId!==o.payload)},addTransactionToast:(e,o)=>{e.transactionToasts.push({type:"transaction",startTimestamp:Ve(),toastId:o.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,o)=>{e.transactionToasts=e.transactionToasts.filter(t=>t.toastId!==o.payload)},addFailTransactionToast:(e,o)=>{e.failTransactionToast=S(g({},o.payload),{toastId:co})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(L,()=>Cr),e.addCase(Pr.REHYDRATE,(o,t)=>{var c,p;let s=(p=(c=t.customToasts)==null?void 0:c.filter(m=>!("component"in m)))!=null?p:[];o.customToasts=s})}}),{addCustomToast:dc,removeCustomToast:Ln,addTransactionToast:wu,removeTransactionToast:lc,addFailTransactionToast:vu,removeFailTransactionToast:Iu}=Dr.actions,vo=Dr.reducer});var Rr,Nn,Pn,Dn,_c,Cn,Or,Lu,uc,Rn,ko,Ao=T(()=>{"use strict";n();Rr=require("@reduxjs/toolkit");P();Nn="Transaction failed",Pn="Transaction successful",Dn="Processing transaction",_c="Transaction submitted",Cn={},Or=(0,Rr.createSlice)({name:"transactionsInfo",initialState:Cn,reducers:{setTransactionsDisplayInfo(e,o){let{sessionId:t,transactionsDisplayInfo:s}=o.payload;t!=null&&(e[t]={errorMessage:(s==null?void 0:s.errorMessage)||Nn,successMessage:(s==null?void 0:s.successMessage)||Pn,processingMessage:(s==null?void 0:s.processingMessage)||Dn,submittedMessage:(s==null?void 0:s.submittedMessage)||_c,transactionDuration:s==null?void 0:s.transactionDuration})},clearTransactionsInfoForSessionId(e,o){o.payload!=null&&delete e[o.payload]},clearTransactionsInfo:()=>Cn},extraReducers:e=>{e.addCase(L,()=>Cn)}}),{clearTransactionsInfo:Lu,setTransactionsDisplayInfo:uc,clearTransactionsInfoForSessionId:Rn}=Or.actions,ko=Or.reducer});var Mr,Br,ze,gc,Fr,Ur,Gr,fc,Eo,Tc,hc,Mu,xc,qe,On,Lo,Co=T(()=>{"use strict";n();Mr=require("@reduxjs/toolkit"),Br=require("redux-persist");A();ue();P();ze={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},gc={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Fr=(0,Mr.createSlice)({name:"transactionsSlice",initialState:ze,reducers:{moveTransactionsToSignedState:(e,o)=>{var h,b;let{sessionId:t,transactions:s,errorMessage:c,status:p,redirectRoute:m,customTransactionInformation:u={}}=o.payload,l=((h=e.customTransactionInformationForSessionId)==null?void 0:h[t])||gc;e.signedTransactions[t]={transactions:s,status:p,errorMessage:c,redirectRoute:m,customTransactionInformation:g(g({},l),u)},((b=e==null?void 0:e.transactionsToSign)==null?void 0:b.sessionId)===t&&(e.transactionsToSign=ze.transactionsToSign)},clearSignedTransaction:(e,o)=>{e.signedTransactions[o.payload]&&delete e.signedTransactions[o.payload]},clearTransactionToSign:e=>{e!=null&&e.transactionsToSign&&(e.transactionsToSign=null)},updateSignedTransaction:(e,o)=>{e.signedTransactions=g(g({},e.signedTransactions),o.payload)},updateSignedTransactions:(e,o)=>{let{sessionId:t,status:s,errorMessage:c,transactions:p}=o.payload;e.signedTransactions[t]!=null&&(e.signedTransactions[t].status=s,c!=null&&(e.signedTransactions[t].errorMessage=c),p!=null&&(e.signedTransactions[t].transactions=p))},updateSignedTransactionStatus:(e,o)=>{var l,h,b,y,R,D,Q,no;let{sessionId:t,status:s,errorMessage:c,transactionHash:p,inTransit:m}=o.payload,u=(h=(l=e.signedTransactions)==null?void 0:l[t])==null?void 0:h.transactions;if(u!=null){e.signedTransactions[t].transactions=u.map(ee=>ee.hash===p?S(g({},ee),{status:s,errorMessage:c,inTransit:m}):ee);let $i=(y=(b=e.signedTransactions[t])==null?void 0:b.transactions)==null?void 0:y.every(ee=>ke(ee.status)),Hi=(D=(R=e.signedTransactions[t])==null?void 0:R.transactions)==null?void 0:D.every(ee=>Ae(ee.status)),ji=(no=(Q=e.signedTransactions[t])==null?void 0:Q.transactions)==null?void 0:no.every(ee=>Gt(ee.status));$i&&(e.signedTransactions[t].status="success"),Hi&&(e.signedTransactions[t].status="fail"),ji&&(e.signedTransactions[t].status="invalid")}},setTransactionsToSign:(e,o)=>{e.transactionsToSign=o.payload;let{sessionId:t,customTransactionInformation:s}=o.payload;e.customTransactionInformationForSessionId[t]=s,e.signTransactionsError=null},clearAllTransactionsToSign:e=>{e.transactionsToSign=ze.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=ze.signedTransactions},setSignTransactionsError:(e,o)=>{e.signTransactionsError=o.payload},setSignTransactionsCancelMessage:(e,o)=>{e.signTransactionsCancelMessage=o.payload}},extraReducers:e=>{e.addCase(L,()=>ze),e.addCase(Br.REHYDRATE,(o,t)=>{var m;if(o.signTransactionsCancelMessage=null,!((m=t.payload)!=null&&m.transactions))return;let{signedTransactions:s,customTransactionInformationForSessionId:c}=t.payload.transactions,p=Object.entries(s).reduce((u,[l,h])=>{let b=new Date(l),y=new Date;return y.setHours(y.getHours()+5),y-b>0||(u[l]=h),u},{});c!=null&&(o.customTransactionInformationForSessionId=c),s!=null&&(o.signedTransactions=p)})}}),{updateSignedTransactionStatus:Ur,updateSignedTransactions:Gr,setTransactionsToSign:fc,clearAllTransactionsToSign:Eo,clearAllSignedTransactions:Tc,clearSignedTransaction:hc,clearTransactionToSign:Mu,setSignTransactionsError:xc,setSignTransactionsCancelMessage:qe,moveTransactionsToSignedState:On}=Fr.actions,Lo=Fr.reducer});var Wr,Mn,Vr,Gu,Wu,yc,Vu,No,Po=T(()=>{"use strict";n();Wr=require("@reduxjs/toolkit");P();Mn={},Vr=(0,Wr.createSlice)({name:"batchTransactionsSlice",initialState:Mn,reducers:{setBatchTransactions:(e,o)=>{e[o.payload.id]=o.payload},updateBatchTransactions:(e,o)=>{e[o.payload.id]=o.payload},clearBatchTransactions:(e,o)=>{delete e[o.payload.batchId]},clearAllBatchTransactions:()=>Mn},extraReducers:e=>{e.addCase(L,()=>Mn)}}),{setBatchTransactions:Gu,updateBatchTransactions:Wu,clearBatchTransactions:yc,clearAllBatchTransactions:Vu}=Vr.actions,No=Vr.reducer});var Hr,$r,jr,zu,zr,Bn=T(()=>{"use strict";n();Hr=require("@reduxjs/toolkit");P();$r={},jr=(0,Hr.createSlice)({name:"dappConfigSlice",initialState:$r,reducers:{setDappConfig:(e,o)=>{if(e&&o.payload){let{logoutRoute:t,shouldUseWebViewProvider:s}=o.payload;e.logoutRoute=t,e.shouldUseWebViewProvider=s}else e=o.payload}},extraReducers:e=>{e.addCase(L,()=>$r)}}),{setDappConfig:zu}=jr.actions,zr=jr.reducer});var k=T(()=>{"use strict";n();go();To();xo();bo();wo();Io();Ao();Co();Po();Bn()});var Vn=T(()=>{"use strict";n()});var sa,ia,ca,xf,yf,bf,Sf,wf,vf,pa,ma=T(()=>{"use strict";n();sa=require("@reduxjs/toolkit");P();ia={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},ca=(0,sa.createSlice)({name:"dappModalsSlice",initialState:ia,reducers:{setDappModalVisibility:(e,o)=>{e.visible=o.payload},setDappModalHeaderVisibility:(e,o)=>{e.modal.showHeader=o.payload},setDappModalFooterVisibility:(e,o)=>{e.modal.showFooter=o.payload},setDappModalHeaderText:(e,o)=>{e.modal.headerText=o.payload},setDappModalFooterText:(e,o)=>{e.modal.footerText=o.payload},setDappModalConfig:(e,o)=>{e.modal=g({},o.payload)}},extraReducers:e=>{e.addCase(L,()=>ia)}}),{setDappModalVisibility:xf,setDappModalHeaderVisibility:yf,setDappModalFooterVisibility:bf,setDappModalHeaderText:Sf,setDappModalFooterText:wf,setDappModalConfig:vf}=ca.actions,pa=ca.reducer});var da,Gc,Wc,he,Fo=T(()=>{"use strict";n();da=require("@reduxjs/toolkit");Vn();go();Po();Bn();ma();To();xo();bo();wo();Io();Ao();Co();Gc={["account"]:uo,["dappModal"]:pa,["dappConfig"]:zr,["loginInfo"]:fo,["modals"]:ho,["networkConfig"]:yo,["signedMessageInfo"]:So,["toasts"]:vo,["transactionsInfo"]:ko,["transactions"]:Lo,["batchTransactions"]:No},Wc=(e={})=>(0,da.combineReducers)(g(g({},Gc),e)),he=Wc});var ga={};me(ga,{default:()=>tp,sessionStorageReducers:()=>$n});function ae(e,o=[]){return{key:e,version:1,storage:_a.default,blacklist:o}}var B,la,_a,Vc,Xe,$c,Hc,jc,zc,qc,Kc,Xc,Yc,Zc,Jc,ua,Qc,$n,ep,op,np,tp,fa=T(()=>{"use strict";n();B=require("redux-persist"),la=f(require("redux-persist/lib/storage")),_a=f(require("redux-persist/lib/storage/session"));Fo();k();go();Po();To();xo();bo();wo();Io();Ao();Co();Vn();Vc={persistReducersStorageType:"localStorage"},Xe={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},$c=ae(Xe["account"]),Hc=ae(Xe["loginInfo"]),jc=ae(Xe["modals"]),zc=ae(Xe["networkConfig"]),qc={2:e=>S(g({},e),{networkConfig:An})};Kc=ae("sdk-dapp-transactionsInfo"),Xc=ae("sdk-dapp-transactions",["transactionsToSign"]),Yc=ae("sdk-dapp-batchTransactions",["batchTransactions"]),Zc=ae("sdk-dapp-toasts"),Jc=ae("sdk-dapp-signedMessageInfo"),ua={key:"sdk-dapp-store",version:2,storage:la.default,whitelist:Object.keys(Xe),migrate:(0,B.createMigrate)(qc,{debug:!1})},Qc=S(g({},ua),{whitelist:[]}),$n={["toasts"]:(0,B.persistReducer)(Zc,vo),["transactions"]:(0,B.persistReducer)(Xc,Lo),["transactionsInfo"]:(0,B.persistReducer)(Kc,ko),["batchTransactions"]:(0,B.persistReducer)(Yc,No),["signedMessageInfo"]:(0,B.persistReducer)(Jc,So)},ep=S(g({},$n),{["account"]:(0,B.persistReducer)($c,uo),["loginInfo"]:(0,B.persistReducer)(Hc,fo),["modals"]:(0,B.persistReducer)(jc,ho),["networkConfig"]:(0,B.persistReducer)(zc,yo)}),op=Vc.persistReducersStorageType==="localStorage",np=op?(0,B.persistReducer)(ua,he($n)):(0,B.persistReducer)(Qc,he(ep)),tp=np});var Ta={};me(Ta,{default:()=>rp});var rp,ha=T(()=>{"use strict";n();Fo();rp=he()});var xa={};me(xa,{default:()=>ip});var V,ap,ip,ya=T(()=>{"use strict";n();V=require("redux-persist"),ap=[V.FLUSH,V.REHYDRATE,V.PAUSE,V.PERSIST,V.PURGE,V.REGISTER],ip=ap});var wa={};me(wa,{default:()=>Sa});function Sa(e){return(0,ba.persistStore)(e)}var ba,va=T(()=>{"use strict";n();ba=require("redux-persist")});var gi=U((CC,ui)=>{n();var nd=typeof r=="object"&&r&&r.Object===Object&&r;ui.exports=nd});var Ti=U((NC,fi)=>{n();var td=gi(),rd=typeof self=="object"&&self&&self.Object===Object&&self,ad=td||rd||Function("return this")();fi.exports=ad});var it=U((PC,hi)=>{n();var id=Ti(),sd=id.Symbol;hi.exports=sd});var Si=U((DC,bi)=>{n();var xi=it(),yi=Object.prototype,cd=yi.hasOwnProperty,pd=yi.toString,Qe=xi?xi.toStringTag:void 0;function md(e){var o=cd.call(e,Qe),t=e[Qe];try{e[Qe]=void 0;var s=!0}catch(p){}var c=pd.call(e);return s&&(o?e[Qe]=t:delete e[Qe]),c}bi.exports=md});var vi=U((RC,wi)=>{n();var dd=Object.prototype,ld=dd.toString;function _d(e){return ld.call(e)}wi.exports=_d});var Ei=U((OC,Ai)=>{n();var Ii=it(),ud=Si(),gd=vi(),fd="[object Null]",Td="[object Undefined]",ki=Ii?Ii.toStringTag:void 0;function hd(e){return e==null?e===void 0?Td:fd:ki&&ki in Object(e)?ud(e):gd(e)}Ai.exports=hd});var Ci=U((MC,Li)=>{n();var xd=Array.isArray;Li.exports=xd});var Pi=U((BC,Ni)=>{n();function yd(e){return e!=null&&typeof e=="object"}Ni.exports=yd});var Ri=U((FC,Di)=>{n();var bd=Ei(),Sd=Ci(),wd=Pi(),vd="[object String]";function Id(e){return typeof e=="string"||!Sd(e)&&wd(e)&&bd(e)==vd}Di.exports=Id});var dl={};me(dl,{getIsTransaction:()=>ml,useMemoizedCloseButton:()=>pl,useRemoveCustomToast:()=>Ns});module.exports=Ue(dl);n();n();var Bt=require("react"),Ns=({duration:e,onDelete:o})=>{(0,Bt.useEffect)(()=>{let t;return e&&(t=setTimeout(o,e)),()=>{clearTimeout(t)}},[e])};n();var oo=f(require("react"));n();n();var pn=f(require("react")),Ft=require("@fortawesome/free-solid-svg-icons"),Ut=require("@fortawesome/react-fontawesome"),mn=({className:e="dapp-default-toast-delete-button",onClick:o})=>pn.default.createElement("button",{type:"button",className:e,onClick:o,"data-testid":"deleteToastButton"},pn.default.createElement(Ut.FontAwesomeIcon,{icon:Ft.faTimes,size:"xs"}));n();var nl=f(require("react")),tl=require("@fortawesome/react-fontawesome"),rl=f(require("classnames"));n();var Ps=`.dapp-core-component__main__link-style {
2
2
  color: #1392ff;
3
3
  }
4
4
 
@@ -1,4 +1,4 @@
1
- "use strict";var ji=Object.create;var Be=Object.defineProperty,zi=Object.defineProperties,qi=Object.getOwnPropertyDescriptor,Ki=Object.getOwnPropertyDescriptors,Xi=Object.getOwnPropertyNames,no=Object.getOwnPropertySymbols,Yi=Object.getPrototypeOf,Yo=Object.prototype.hasOwnProperty,_t=Object.prototype.propertyIsEnumerable;var lt=(e,o,t)=>o in e?Be(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,g=(e,o)=>{for(var t in o||(o={}))Yo.call(o,t)&&lt(e,t,o[t]);if(no)for(var t of no(o))_t.call(o,t)&&lt(e,t,o[t]);return e},S=(e,o)=>zi(e,Ki(o));var ye=(e,o)=>{var t={};for(var s in e)Yo.call(e,s)&&o.indexOf(s)<0&&(t[s]=e[s]);if(e!=null&&no)for(var s of no(e))o.indexOf(s)<0&&_t.call(e,s)&&(t[s]=e[s]);return t};var T=(e,o)=>()=>(e&&(o=e(e=0)),o);var U=(e,o)=>()=>(o||e((o={exports:{}}).exports,o),o.exports),me=(e,o)=>{for(var t in o)Be(e,t,{get:o[t],enumerable:!0})},ut=(e,o,t,s)=>{if(o&&typeof o=="object"||typeof o=="function")for(let c of Xi(o))!Yo.call(e,c)&&c!==t&&Be(e,c,{get:()=>o[c],enumerable:!(s=qi(o,c))||s.enumerable});return e};var f=(e,o,t)=>(t=e!=null?ji(Yi(e)):{},ut(o||!e||!e.__esModule?Be(t,"default",{value:e,enumerable:!0}):t,e)),Fe=e=>ut(Be({},"__esModule",{value:!0}),e);var x=(e,o,t)=>new Promise((s,c)=>{var p=l=>{try{u(t.next(l))}catch(h){c(h)}},m=l=>{try{u(t.throw(l))}catch(h){c(h)}},u=l=>l.done?s(l.value):Promise.resolve(l.value).then(p,m);u((t=t.apply(e,o)).next())});var Tt=U(to=>{"use strict";n();to.byteLength=Ji;to.toByteArray=es;to.fromByteArray=ts;var H=[],W=[],Zi=typeof Uint8Array!="undefined"?Uint8Array:Array,Zo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(de=0,gt=Zo.length;de<gt;++de)H[de]=Zo[de],W[Zo.charCodeAt(de)]=de;var de,gt;W["-".charCodeAt(0)]=62;W["_".charCodeAt(0)]=63;function ft(e){var o=e.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=o);var s=t===o?0:4-t%4;return[t,s]}function Ji(e){var o=ft(e),t=o[0],s=o[1];return(t+s)*3/4-s}function Qi(e,o,t){return(o+t)*3/4-t}function es(e){var o,t=ft(e),s=t[0],c=t[1],p=new Zi(Qi(e,s,c)),m=0,u=c>0?s-4:s,l;for(l=0;l<u;l+=4)o=W[e.charCodeAt(l)]<<18|W[e.charCodeAt(l+1)]<<12|W[e.charCodeAt(l+2)]<<6|W[e.charCodeAt(l+3)],p[m++]=o>>16&255,p[m++]=o>>8&255,p[m++]=o&255;return c===2&&(o=W[e.charCodeAt(l)]<<2|W[e.charCodeAt(l+1)]>>4,p[m++]=o&255),c===1&&(o=W[e.charCodeAt(l)]<<10|W[e.charCodeAt(l+1)]<<4|W[e.charCodeAt(l+2)]>>2,p[m++]=o>>8&255,p[m++]=o&255),p}function os(e){return H[e>>18&63]+H[e>>12&63]+H[e>>6&63]+H[e&63]}function ns(e,o,t){for(var s,c=[],p=o;p<t;p+=3)s=(e[p]<<16&16711680)+(e[p+1]<<8&65280)+(e[p+2]&255),c.push(os(s));return c.join("")}function ts(e){for(var o,t=e.length,s=t%3,c=[],p=16383,m=0,u=t-s;m<u;m+=p)c.push(ns(e,m,m+p>u?u:m+p));return s===1?(o=e[t-1],c.push(H[o>>2]+H[o<<4&63]+"==")):s===2&&(o=(e[t-2]<<8)+e[t-1],c.push(H[o>>10]+H[o>>4&63]+H[o<<2&63]+"=")),c.join("")}});var ht=U(Jo=>{n();Jo.read=function(e,o,t,s,c){var p,m,u=c*8-s-1,l=(1<<u)-1,h=l>>1,b=-7,y=t?c-1:0,R=t?-1:1,D=e[o+y];for(y+=R,p=D&(1<<-b)-1,D>>=-b,b+=u;b>0;p=p*256+e[o+y],y+=R,b-=8);for(m=p&(1<<-b)-1,p>>=-b,b+=s;b>0;m=m*256+e[o+y],y+=R,b-=8);if(p===0)p=1-h;else{if(p===l)return m?NaN:(D?-1:1)*(1/0);m=m+Math.pow(2,s),p=p-h}return(D?-1:1)*m*Math.pow(2,p-s)};Jo.write=function(e,o,t,s,c,p){var m,u,l,h=p*8-c-1,b=(1<<h)-1,y=b>>1,R=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,D=s?0:p-1,Q=s?1:-1,oo=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(u=isNaN(o)?1:0,m=b):(m=Math.floor(Math.log(o)/Math.LN2),o*(l=Math.pow(2,-m))<1&&(m--,l*=2),m+y>=1?o+=R/l:o+=R*Math.pow(2,1-y),o*l>=2&&(m++,l/=2),m+y>=b?(u=0,m=b):m+y>=1?(u=(o*l-1)*Math.pow(2,c),m=m+y):(u=o*Math.pow(2,y-1)*Math.pow(2,c),m=0));c>=8;e[t+D]=u&255,D+=Q,u/=256,c-=8);for(m=m<<c|u,h+=c;h>0;e[t+D]=m&255,D+=Q,m/=256,h-=8);e[t+D-Q]|=oo*128}});var Nt=U(Se=>{"use strict";n();var Qo=Tt(),be=ht(),xt=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Se.Buffer=d;Se.SlowBuffer=ps;Se.INSPECT_MAX_BYTES=50;var ro=2147483647;Se.kMaxLength=ro;d.TYPED_ARRAY_SUPPORT=rs();!d.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 rs(){try{var e=new Uint8Array(1),o={foo:function(){return 42}};return Object.setPrototypeOf(o,Uint8Array.prototype),Object.setPrototypeOf(e,o),e.foo()===42}catch(t){return!1}}Object.defineProperty(d.prototype,"parent",{enumerable:!0,get:function(){if(!!d.isBuffer(this))return this.buffer}});Object.defineProperty(d.prototype,"offset",{enumerable:!0,get:function(){if(!!d.isBuffer(this))return this.byteOffset}});function oe(e){if(e>ro)throw new RangeError('The value "'+e+'" is invalid for option "size"');var o=new Uint8Array(e);return Object.setPrototypeOf(o,d.prototype),o}function d(e,o,t){if(typeof e=="number"){if(typeof o=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return tn(e)}return St(e,o,t)}d.poolSize=8192;function St(e,o,t){if(typeof e=="string")return is(e,o);if(ArrayBuffer.isView(e))return ss(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(j(e,ArrayBuffer)||e&&j(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(j(e,SharedArrayBuffer)||e&&j(e.buffer,SharedArrayBuffer)))return on(e,o,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var s=e.valueOf&&e.valueOf();if(s!=null&&s!==e)return d.from(s,o,t);var c=cs(e);if(c)return c;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return d.from(e[Symbol.toPrimitive]("string"),o,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}d.from=function(e,o,t){return St(e,o,t)};Object.setPrototypeOf(d.prototype,Uint8Array.prototype);Object.setPrototypeOf(d,Uint8Array);function wt(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 as(e,o,t){return wt(e),e<=0?oe(e):o!==void 0?typeof t=="string"?oe(e).fill(o,t):oe(e).fill(o):oe(e)}d.alloc=function(e,o,t){return as(e,o,t)};function tn(e){return wt(e),oe(e<0?0:rn(e)|0)}d.allocUnsafe=function(e){return tn(e)};d.allocUnsafeSlow=function(e){return tn(e)};function is(e,o){if((typeof o!="string"||o==="")&&(o="utf8"),!d.isEncoding(o))throw new TypeError("Unknown encoding: "+o);var t=vt(e,o)|0,s=oe(t),c=s.write(e,o);return c!==t&&(s=s.slice(0,c)),s}function en(e){for(var o=e.length<0?0:rn(e.length)|0,t=oe(o),s=0;s<o;s+=1)t[s]=e[s]&255;return t}function ss(e){if(j(e,Uint8Array)){var o=new Uint8Array(e);return on(o.buffer,o.byteOffset,o.byteLength)}return en(e)}function on(e,o,t){if(o<0||e.byteLength<o)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<o+(t||0))throw new RangeError('"length" is outside of buffer bounds');var s;return o===void 0&&t===void 0?s=new Uint8Array(e):t===void 0?s=new Uint8Array(e,o):s=new Uint8Array(e,o,t),Object.setPrototypeOf(s,d.prototype),s}function cs(e){if(d.isBuffer(e)){var o=rn(e.length)|0,t=oe(o);return t.length===0||e.copy(t,0,0,o),t}if(e.length!==void 0)return typeof e.length!="number"||an(e.length)?oe(0):en(e);if(e.type==="Buffer"&&Array.isArray(e.data))return en(e.data)}function rn(e){if(e>=ro)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ro.toString(16)+" bytes");return e|0}function ps(e){return+e!=e&&(e=0),d.alloc(+e)}d.isBuffer=function(o){return o!=null&&o._isBuffer===!0&&o!==d.prototype};d.compare=function(o,t){if(j(o,Uint8Array)&&(o=d.from(o,o.offset,o.byteLength)),j(t,Uint8Array)&&(t=d.from(t,t.offset,t.byteLength)),!d.isBuffer(o)||!d.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(o===t)return 0;for(var s=o.length,c=t.length,p=0,m=Math.min(s,c);p<m;++p)if(o[p]!==t[p]){s=o[p],c=t[p];break}return s<c?-1:c<s?1:0};d.isEncoding=function(o){switch(String(o).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}};d.concat=function(o,t){if(!Array.isArray(o))throw new TypeError('"list" argument must be an Array of Buffers');if(o.length===0)return d.alloc(0);var s;if(t===void 0)for(t=0,s=0;s<o.length;++s)t+=o[s].length;var c=d.allocUnsafe(t),p=0;for(s=0;s<o.length;++s){var m=o[s];if(j(m,Uint8Array))p+m.length>c.length?d.from(m).copy(c,p):Uint8Array.prototype.set.call(c,m,p);else if(d.isBuffer(m))m.copy(c,p);else throw new TypeError('"list" argument must be an Array of Buffers');p+=m.length}return c};function vt(e,o){if(d.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||j(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,s=arguments.length>2&&arguments[2]===!0;if(!s&&t===0)return 0;for(var c=!1;;)switch(o){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return nn(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Ct(e).length;default:if(c)return s?-1:nn(e).length;o=(""+o).toLowerCase(),c=!0}}d.byteLength=vt;function ms(e,o,t){var s=!1;if((o===void 0||o<0)&&(o=0),o>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,o>>>=0,t<=o))return"";for(e||(e="utf8");;)switch(e){case"hex":return ys(this,o,t);case"utf8":case"utf-8":return kt(this,o,t);case"ascii":return hs(this,o,t);case"latin1":case"binary":return xs(this,o,t);case"base64":return fs(this,o,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return bs(this,o,t);default:if(s)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}d.prototype._isBuffer=!0;function le(e,o,t){var s=e[o];e[o]=e[t],e[t]=s}d.prototype.swap16=function(){var o=this.length;if(o%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<o;t+=2)le(this,t,t+1);return this};d.prototype.swap32=function(){var o=this.length;if(o%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<o;t+=4)le(this,t,t+3),le(this,t+1,t+2);return this};d.prototype.swap64=function(){var o=this.length;if(o%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<o;t+=8)le(this,t,t+7),le(this,t+1,t+6),le(this,t+2,t+5),le(this,t+3,t+4);return this};d.prototype.toString=function(){var o=this.length;return o===0?"":arguments.length===0?kt(this,0,o):ms.apply(this,arguments)};d.prototype.toLocaleString=d.prototype.toString;d.prototype.equals=function(o){if(!d.isBuffer(o))throw new TypeError("Argument must be a Buffer");return this===o?!0:d.compare(this,o)===0};d.prototype.inspect=function(){var o="",t=Se.INSPECT_MAX_BYTES;return o=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(o+=" ... "),"<Buffer "+o+">"};xt&&(d.prototype[xt]=d.prototype.inspect);d.prototype.compare=function(o,t,s,c,p){if(j(o,Uint8Array)&&(o=d.from(o,o.offset,o.byteLength)),!d.isBuffer(o))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof o);if(t===void 0&&(t=0),s===void 0&&(s=o?o.length:0),c===void 0&&(c=0),p===void 0&&(p=this.length),t<0||s>o.length||c<0||p>this.length)throw new RangeError("out of range index");if(c>=p&&t>=s)return 0;if(c>=p)return-1;if(t>=s)return 1;if(t>>>=0,s>>>=0,c>>>=0,p>>>=0,this===o)return 0;for(var m=p-c,u=s-t,l=Math.min(m,u),h=this.slice(c,p),b=o.slice(t,s),y=0;y<l;++y)if(h[y]!==b[y]){m=h[y],u=b[y];break}return m<u?-1:u<m?1:0};function It(e,o,t,s,c){if(e.length===0)return-1;if(typeof t=="string"?(s=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,an(t)&&(t=c?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(c)return-1;t=e.length-1}else if(t<0)if(c)t=0;else return-1;if(typeof o=="string"&&(o=d.from(o,s)),d.isBuffer(o))return o.length===0?-1:yt(e,o,t,s,c);if(typeof o=="number")return o=o&255,typeof Uint8Array.prototype.indexOf=="function"?c?Uint8Array.prototype.indexOf.call(e,o,t):Uint8Array.prototype.lastIndexOf.call(e,o,t):yt(e,[o],t,s,c);throw new TypeError("val must be string, number or Buffer")}function yt(e,o,t,s,c){var p=1,m=e.length,u=o.length;if(s!==void 0&&(s=String(s).toLowerCase(),s==="ucs2"||s==="ucs-2"||s==="utf16le"||s==="utf-16le")){if(e.length<2||o.length<2)return-1;p=2,m/=2,u/=2,t/=2}function l(D,Q){return p===1?D[Q]:D.readUInt16BE(Q*p)}var h;if(c){var b=-1;for(h=t;h<m;h++)if(l(e,h)===l(o,b===-1?0:h-b)){if(b===-1&&(b=h),h-b+1===u)return b*p}else b!==-1&&(h-=h-b),b=-1}else for(t+u>m&&(t=m-u),h=t;h>=0;h--){for(var y=!0,R=0;R<u;R++)if(l(e,h+R)!==l(o,R)){y=!1;break}if(y)return h}return-1}d.prototype.includes=function(o,t,s){return this.indexOf(o,t,s)!==-1};d.prototype.indexOf=function(o,t,s){return It(this,o,t,s,!0)};d.prototype.lastIndexOf=function(o,t,s){return It(this,o,t,s,!1)};function ds(e,o,t,s){t=Number(t)||0;var c=e.length-t;s?(s=Number(s),s>c&&(s=c)):s=c;var p=o.length;s>p/2&&(s=p/2);for(var m=0;m<s;++m){var u=parseInt(o.substr(m*2,2),16);if(an(u))return m;e[t+m]=u}return m}function ls(e,o,t,s){return ao(nn(o,e.length-t),e,t,s)}function _s(e,o,t,s){return ao(vs(o),e,t,s)}function us(e,o,t,s){return ao(Ct(o),e,t,s)}function gs(e,o,t,s){return ao(Is(o,e.length-t),e,t,s)}d.prototype.write=function(o,t,s,c){if(t===void 0)c="utf8",s=this.length,t=0;else if(s===void 0&&typeof t=="string")c=t,s=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(s)?(s=s>>>0,c===void 0&&(c="utf8")):(c=s,s=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var p=this.length-t;if((s===void 0||s>p)&&(s=p),o.length>0&&(s<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");c||(c="utf8");for(var m=!1;;)switch(c){case"hex":return ds(this,o,t,s);case"utf8":case"utf-8":return ls(this,o,t,s);case"ascii":case"latin1":case"binary":return _s(this,o,t,s);case"base64":return us(this,o,t,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return gs(this,o,t,s);default:if(m)throw new TypeError("Unknown encoding: "+c);c=(""+c).toLowerCase(),m=!0}};d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function fs(e,o,t){return o===0&&t===e.length?Qo.fromByteArray(e):Qo.fromByteArray(e.slice(o,t))}function kt(e,o,t){t=Math.min(e.length,t);for(var s=[],c=o;c<t;){var p=e[c],m=null,u=p>239?4:p>223?3:p>191?2:1;if(c+u<=t){var l,h,b,y;switch(u){case 1:p<128&&(m=p);break;case 2:l=e[c+1],(l&192)===128&&(y=(p&31)<<6|l&63,y>127&&(m=y));break;case 3:l=e[c+1],h=e[c+2],(l&192)===128&&(h&192)===128&&(y=(p&15)<<12|(l&63)<<6|h&63,y>2047&&(y<55296||y>57343)&&(m=y));break;case 4:l=e[c+1],h=e[c+2],b=e[c+3],(l&192)===128&&(h&192)===128&&(b&192)===128&&(y=(p&15)<<18|(l&63)<<12|(h&63)<<6|b&63,y>65535&&y<1114112&&(m=y))}}m===null?(m=65533,u=1):m>65535&&(m-=65536,s.push(m>>>10&1023|55296),m=56320|m&1023),s.push(m),c+=u}return Ts(s)}var bt=4096;function Ts(e){var o=e.length;if(o<=bt)return String.fromCharCode.apply(String,e);for(var t="",s=0;s<o;)t+=String.fromCharCode.apply(String,e.slice(s,s+=bt));return t}function hs(e,o,t){var s="";t=Math.min(e.length,t);for(var c=o;c<t;++c)s+=String.fromCharCode(e[c]&127);return s}function xs(e,o,t){var s="";t=Math.min(e.length,t);for(var c=o;c<t;++c)s+=String.fromCharCode(e[c]);return s}function ys(e,o,t){var s=e.length;(!o||o<0)&&(o=0),(!t||t<0||t>s)&&(t=s);for(var c="",p=o;p<t;++p)c+=ks[e[p]];return c}function bs(e,o,t){for(var s=e.slice(o,t),c="",p=0;p<s.length-1;p+=2)c+=String.fromCharCode(s[p]+s[p+1]*256);return c}d.prototype.slice=function(o,t){var s=this.length;o=~~o,t=t===void 0?s:~~t,o<0?(o+=s,o<0&&(o=0)):o>s&&(o=s),t<0?(t+=s,t<0&&(t=0)):t>s&&(t=s),t<o&&(t=o);var c=this.subarray(o,t);return Object.setPrototypeOf(c,d.prototype),c};function N(e,o,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+o>t)throw new RangeError("Trying to access beyond buffer length")}d.prototype.readUintLE=d.prototype.readUIntLE=function(o,t,s){o=o>>>0,t=t>>>0,s||N(o,t,this.length);for(var c=this[o],p=1,m=0;++m<t&&(p*=256);)c+=this[o+m]*p;return c};d.prototype.readUintBE=d.prototype.readUIntBE=function(o,t,s){o=o>>>0,t=t>>>0,s||N(o,t,this.length);for(var c=this[o+--t],p=1;t>0&&(p*=256);)c+=this[o+--t]*p;return c};d.prototype.readUint8=d.prototype.readUInt8=function(o,t){return o=o>>>0,t||N(o,1,this.length),this[o]};d.prototype.readUint16LE=d.prototype.readUInt16LE=function(o,t){return o=o>>>0,t||N(o,2,this.length),this[o]|this[o+1]<<8};d.prototype.readUint16BE=d.prototype.readUInt16BE=function(o,t){return o=o>>>0,t||N(o,2,this.length),this[o]<<8|this[o+1]};d.prototype.readUint32LE=d.prototype.readUInt32LE=function(o,t){return o=o>>>0,t||N(o,4,this.length),(this[o]|this[o+1]<<8|this[o+2]<<16)+this[o+3]*16777216};d.prototype.readUint32BE=d.prototype.readUInt32BE=function(o,t){return o=o>>>0,t||N(o,4,this.length),this[o]*16777216+(this[o+1]<<16|this[o+2]<<8|this[o+3])};d.prototype.readIntLE=function(o,t,s){o=o>>>0,t=t>>>0,s||N(o,t,this.length);for(var c=this[o],p=1,m=0;++m<t&&(p*=256);)c+=this[o+m]*p;return p*=128,c>=p&&(c-=Math.pow(2,8*t)),c};d.prototype.readIntBE=function(o,t,s){o=o>>>0,t=t>>>0,s||N(o,t,this.length);for(var c=t,p=1,m=this[o+--c];c>0&&(p*=256);)m+=this[o+--c]*p;return p*=128,m>=p&&(m-=Math.pow(2,8*t)),m};d.prototype.readInt8=function(o,t){return o=o>>>0,t||N(o,1,this.length),this[o]&128?(255-this[o]+1)*-1:this[o]};d.prototype.readInt16LE=function(o,t){o=o>>>0,t||N(o,2,this.length);var s=this[o]|this[o+1]<<8;return s&32768?s|4294901760:s};d.prototype.readInt16BE=function(o,t){o=o>>>0,t||N(o,2,this.length);var s=this[o+1]|this[o]<<8;return s&32768?s|4294901760:s};d.prototype.readInt32LE=function(o,t){return o=o>>>0,t||N(o,4,this.length),this[o]|this[o+1]<<8|this[o+2]<<16|this[o+3]<<24};d.prototype.readInt32BE=function(o,t){return o=o>>>0,t||N(o,4,this.length),this[o]<<24|this[o+1]<<16|this[o+2]<<8|this[o+3]};d.prototype.readFloatLE=function(o,t){return o=o>>>0,t||N(o,4,this.length),be.read(this,o,!0,23,4)};d.prototype.readFloatBE=function(o,t){return o=o>>>0,t||N(o,4,this.length),be.read(this,o,!1,23,4)};d.prototype.readDoubleLE=function(o,t){return o=o>>>0,t||N(o,8,this.length),be.read(this,o,!0,52,8)};d.prototype.readDoubleBE=function(o,t){return o=o>>>0,t||N(o,8,this.length),be.read(this,o,!1,52,8)};function O(e,o,t,s,c,p){if(!d.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(o>c||o<p)throw new RangeError('"value" argument is out of bounds');if(t+s>e.length)throw new RangeError("Index out of range")}d.prototype.writeUintLE=d.prototype.writeUIntLE=function(o,t,s,c){if(o=+o,t=t>>>0,s=s>>>0,!c){var p=Math.pow(2,8*s)-1;O(this,o,t,s,p,0)}var m=1,u=0;for(this[t]=o&255;++u<s&&(m*=256);)this[t+u]=o/m&255;return t+s};d.prototype.writeUintBE=d.prototype.writeUIntBE=function(o,t,s,c){if(o=+o,t=t>>>0,s=s>>>0,!c){var p=Math.pow(2,8*s)-1;O(this,o,t,s,p,0)}var m=s-1,u=1;for(this[t+m]=o&255;--m>=0&&(u*=256);)this[t+m]=o/u&255;return t+s};d.prototype.writeUint8=d.prototype.writeUInt8=function(o,t,s){return o=+o,t=t>>>0,s||O(this,o,t,1,255,0),this[t]=o&255,t+1};d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(o,t,s){return o=+o,t=t>>>0,s||O(this,o,t,2,65535,0),this[t]=o&255,this[t+1]=o>>>8,t+2};d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(o,t,s){return o=+o,t=t>>>0,s||O(this,o,t,2,65535,0),this[t]=o>>>8,this[t+1]=o&255,t+2};d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(o,t,s){return o=+o,t=t>>>0,s||O(this,o,t,4,4294967295,0),this[t+3]=o>>>24,this[t+2]=o>>>16,this[t+1]=o>>>8,this[t]=o&255,t+4};d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(o,t,s){return o=+o,t=t>>>0,s||O(this,o,t,4,4294967295,0),this[t]=o>>>24,this[t+1]=o>>>16,this[t+2]=o>>>8,this[t+3]=o&255,t+4};d.prototype.writeIntLE=function(o,t,s,c){if(o=+o,t=t>>>0,!c){var p=Math.pow(2,8*s-1);O(this,o,t,s,p-1,-p)}var m=0,u=1,l=0;for(this[t]=o&255;++m<s&&(u*=256);)o<0&&l===0&&this[t+m-1]!==0&&(l=1),this[t+m]=(o/u>>0)-l&255;return t+s};d.prototype.writeIntBE=function(o,t,s,c){if(o=+o,t=t>>>0,!c){var p=Math.pow(2,8*s-1);O(this,o,t,s,p-1,-p)}var m=s-1,u=1,l=0;for(this[t+m]=o&255;--m>=0&&(u*=256);)o<0&&l===0&&this[t+m+1]!==0&&(l=1),this[t+m]=(o/u>>0)-l&255;return t+s};d.prototype.writeInt8=function(o,t,s){return o=+o,t=t>>>0,s||O(this,o,t,1,127,-128),o<0&&(o=255+o+1),this[t]=o&255,t+1};d.prototype.writeInt16LE=function(o,t,s){return o=+o,t=t>>>0,s||O(this,o,t,2,32767,-32768),this[t]=o&255,this[t+1]=o>>>8,t+2};d.prototype.writeInt16BE=function(o,t,s){return o=+o,t=t>>>0,s||O(this,o,t,2,32767,-32768),this[t]=o>>>8,this[t+1]=o&255,t+2};d.prototype.writeInt32LE=function(o,t,s){return o=+o,t=t>>>0,s||O(this,o,t,4,2147483647,-2147483648),this[t]=o&255,this[t+1]=o>>>8,this[t+2]=o>>>16,this[t+3]=o>>>24,t+4};d.prototype.writeInt32BE=function(o,t,s){return o=+o,t=t>>>0,s||O(this,o,t,4,2147483647,-2147483648),o<0&&(o=4294967295+o+1),this[t]=o>>>24,this[t+1]=o>>>16,this[t+2]=o>>>8,this[t+3]=o&255,t+4};function At(e,o,t,s,c,p){if(t+s>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Et(e,o,t,s,c){return o=+o,t=t>>>0,c||At(e,o,t,4,34028234663852886e22,-34028234663852886e22),be.write(e,o,t,s,23,4),t+4}d.prototype.writeFloatLE=function(o,t,s){return Et(this,o,t,!0,s)};d.prototype.writeFloatBE=function(o,t,s){return Et(this,o,t,!1,s)};function Lt(e,o,t,s,c){return o=+o,t=t>>>0,c||At(e,o,t,8,17976931348623157e292,-17976931348623157e292),be.write(e,o,t,s,52,8),t+8}d.prototype.writeDoubleLE=function(o,t,s){return Lt(this,o,t,!0,s)};d.prototype.writeDoubleBE=function(o,t,s){return Lt(this,o,t,!1,s)};d.prototype.copy=function(o,t,s,c){if(!d.isBuffer(o))throw new TypeError("argument should be a Buffer");if(s||(s=0),!c&&c!==0&&(c=this.length),t>=o.length&&(t=o.length),t||(t=0),c>0&&c<s&&(c=s),c===s||o.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(s<0||s>=this.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("sourceEnd out of bounds");c>this.length&&(c=this.length),o.length-t<c-s&&(c=o.length-t+s);var p=c-s;return this===o&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,s,c):Uint8Array.prototype.set.call(o,this.subarray(s,c),t),p};d.prototype.fill=function(o,t,s,c){if(typeof o=="string"){if(typeof t=="string"?(c=t,t=0,s=this.length):typeof s=="string"&&(c=s,s=this.length),c!==void 0&&typeof c!="string")throw new TypeError("encoding must be a string");if(typeof c=="string"&&!d.isEncoding(c))throw new TypeError("Unknown encoding: "+c);if(o.length===1){var p=o.charCodeAt(0);(c==="utf8"&&p<128||c==="latin1")&&(o=p)}}else typeof o=="number"?o=o&255:typeof o=="boolean"&&(o=Number(o));if(t<0||this.length<t||this.length<s)throw new RangeError("Out of range index");if(s<=t)return this;t=t>>>0,s=s===void 0?this.length:s>>>0,o||(o=0);var m;if(typeof o=="number")for(m=t;m<s;++m)this[m]=o;else{var u=d.isBuffer(o)?o:d.from(o,c),l=u.length;if(l===0)throw new TypeError('The value "'+o+'" is invalid for argument "value"');for(m=0;m<s-t;++m)this[m+t]=u[m%l]}return this};var Ss=/[^+/0-9A-Za-z-_]/g;function ws(e){if(e=e.split("=")[0],e=e.trim().replace(Ss,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function nn(e,o){o=o||1/0;for(var t,s=e.length,c=null,p=[],m=0;m<s;++m){if(t=e.charCodeAt(m),t>55295&&t<57344){if(!c){if(t>56319){(o-=3)>-1&&p.push(239,191,189);continue}else if(m+1===s){(o-=3)>-1&&p.push(239,191,189);continue}c=t;continue}if(t<56320){(o-=3)>-1&&p.push(239,191,189),c=t;continue}t=(c-55296<<10|t-56320)+65536}else c&&(o-=3)>-1&&p.push(239,191,189);if(c=null,t<128){if((o-=1)<0)break;p.push(t)}else if(t<2048){if((o-=2)<0)break;p.push(t>>6|192,t&63|128)}else if(t<65536){if((o-=3)<0)break;p.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((o-=4)<0)break;p.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return p}function vs(e){for(var o=[],t=0;t<e.length;++t)o.push(e.charCodeAt(t)&255);return o}function Is(e,o){for(var t,s,c,p=[],m=0;m<e.length&&!((o-=2)<0);++m)t=e.charCodeAt(m),s=t>>8,c=t%256,p.push(c),p.push(s);return p}function Ct(e){return Qo.toByteArray(ws(e))}function ao(e,o,t,s){for(var c=0;c<s&&!(c+t>=o.length||c>=e.length);++c)o[c+t]=e[c];return c}function j(e,o){return e instanceof o||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===o.name}function an(e){return e!==e}var ks=function(){for(var e="0123456789abcdef",o=new Array(256),t=0;t<16;++t)for(var s=t*16,c=0;c<16;++c)o[s+c]=e[t]+e[c];return o}()});var Mt=U((_l,Ot)=>{n();var E=Ot.exports={},z,q;function sn(){throw new Error("setTimeout has not been defined")}function cn(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?z=setTimeout:z=sn}catch(e){z=sn}try{typeof clearTimeout=="function"?q=clearTimeout:q=cn}catch(e){q=cn}})();function Pt(e){if(z===setTimeout)return setTimeout(e,0);if((z===sn||!z)&&setTimeout)return z=setTimeout,setTimeout(e,0);try{return z(e,0)}catch(o){try{return z.call(null,e,0)}catch(t){return z.call(this,e,0)}}}function As(e){if(q===clearTimeout)return clearTimeout(e);if((q===cn||!q)&&clearTimeout)return q=clearTimeout,clearTimeout(e);try{return q(e)}catch(o){try{return q.call(null,e)}catch(t){return q.call(this,e)}}}var ne=[],we=!1,_e,io=-1;function Es(){!we||!_e||(we=!1,_e.length?ne=_e.concat(ne):io=-1,ne.length&&Dt())}function Dt(){if(!we){var e=Pt(Es);we=!0;for(var o=ne.length;o;){for(_e=ne,ne=[];++io<o;)_e&&_e[io].run();io=-1,o=ne.length}_e=null,we=!1,As(e)}}E.nextTick=function(e){var o=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)o[t-1]=arguments[t];ne.push(new Rt(e,o)),ne.length===1&&!we&&Pt(Dt)};function Rt(e,o){this.fun=e,this.array=o}Rt.prototype.run=function(){this.fun.apply(null,this.array)};E.title="browser";E.browser=!0;E.env={};E.argv=[];E.version="";E.versions={};function te(){}E.on=te;E.addListener=te;E.once=te;E.off=te;E.removeListener=te;E.removeAllListeners=te;E.emit=te;E.prependListener=te;E.prependOnceListener=te;E.listeners=function(e){return[]};E.binding=function(e){throw new Error("process.binding is not supported")};E.cwd=function(){return"/"};E.chdir=function(e){throw new Error("process.chdir is not supported")};E.umask=function(){return 0}});var a,i,Ls,r,n=T(()=>{a=f(Nt()),i=f(Mt()),Ls=function(e){function o(){var s=this||self;return delete e.prototype.__magic__,s}if(typeof globalThis=="object")return globalThis;if(this)return o();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:o});var t=__magic__;return t}(Object),r=Ls});var A=T(()=>{"use strict";n()});function Ie(e){return e!=null&&(Gs(e)||Gt(e))}function ke(e){return e!=null&&(Ws(e)||js(e))}function Ae(e){return e!=null&&(Vs(e)||zs(e))}function Ut(e){return e!=null&&($s(e)||qs(e))}function dn(e){return e!=null&&Hs(e)}function Gs(e){return e!=null&&Ns.includes(e)}function Ws(e){return e!=null&&Ps.includes(e)}function Vs(e){return e!=null&&Ds.includes(e)}function $s(e){return e!=null&&Rs.includes(e)}function Hs(e){return e!=null&&Os.includes(e)}function Gt(e){return e!=null&&Ms.includes(e)}function js(e){return e!=null&&Bs.includes(e)}function zs(e){return e!=null&&Fs.includes(e)}function qs(e){return e!=null&&Us.includes(e)}var Ns,Ps,Ds,Rs,Os,Ms,Bs,Fs,Us,ue=T(()=>{"use strict";n();A();Ns=["sent"],Ps=["success"],Ds=["fail","cancelled","timedOut"],Rs=["invalid"],Os=["timedOut"],Ms=["pending"],Bs=["success"],Fs=["fail","invalid"],Us=["not executed"]});var ge=T(()=>{"use strict";n()});var ln=T(()=>{"use strict";n()});var Wt=T(()=>{"use strict";n()});var Vt=T(()=>{"use strict";n()});var $t=T(()=>{"use strict";n()});var Ht=T(()=>{"use strict";n()});var M=T(()=>{"use strict";n()});var jt=T(()=>{"use strict";n()});var zt=T(()=>{"use strict";n()});var qt=T(()=>{"use strict";n()});var C=T(()=>{"use strict";n();ln();Wt();Vt();A();$t();Ht();M();jt();zt();qt()});var Ee,Kt,Bl,Xt,Fl,Yt,Ul,Gl,Ks,Ue=T(()=>{"use strict";n();C();Ee={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:Kt,egldLabel:Bl}=Ee["devnet"],{chainId:Xt,egldLabel:Fl}=Ee["testnet"],{chainId:Yt,egldLabel:Ul}=Ee["mainnet"],Gl={["devnet"]:Kt,["testnet"]:Xt,["mainnet"]:Yt},Ks={[Kt]:"devnet",[Xt]:"testnet",[Yt]:"mainnet"}});var _n=T(()=>{"use strict";n()});var Zt=T(()=>{"use strict";n()});var so,un=T(()=>{"use strict";n();so="transaction-status-toast-id"});var K,Jt=T(()=>{"use strict";n();K=require("@multiversx/sdk-web-wallet-provider")});var Qt=T(()=>{"use strict";n()});var er=T(()=>{"use strict";n()});var Ge,co,or,po,nr,Le,w=T(()=>{"use strict";n();ge();Ue();_n();Zt();un();Jt();Qt();er();Ge=5e4,co=1e9,or=1,po="logout",nr="login",Le="0"});var We,mo=T(()=>{"use strict";n();We=()=>Date.now()/1e3});var tr=T(()=>{"use strict";n()});var rr=T(()=>{"use strict";n()});var gn=T(()=>{"use strict";n();mo();tr();rr()});var Tn={};me(Tn,{getItem:()=>Ys,localStorageKeys:()=>pe,removeItem:()=>Zs,setItem:()=>Xs});var pe,fn,Xs,Ys,Zs,Ce=T(()=>{"use strict";n();gn();pe={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},fn=typeof localStorage!="undefined",Xs=({key:e,data:o,expires:t})=>{!fn||localStorage.setItem(String(e),JSON.stringify({expires:t,data:o}))},Ys=e=>{if(!fn)return;let o=localStorage.getItem(String(e));if(!o)return null;let t=JSON.parse(o);return!t||!t.hasOwnProperty("expires")||!t.hasOwnProperty("data")?null:We()>=t.expires?(localStorage.removeItem(String(e)),null):t.data},Zs=e=>{!fn||localStorage.removeItem(String(e))}});var hn={};me(hn,{clear:()=>cr,getItem:()=>ir,removeItem:()=>sr,setItem:()=>ar,storage:()=>Js});var ar,ir,sr,cr,Js,pr=T(()=>{"use strict";n();ar=({key:e,data:o,expires:t})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:t,data:o}))},ir=e=>{let o=sessionStorage.getItem(String(e));if(!o)return null;let t=JSON.parse(o);return!t||!t.hasOwnProperty("expires")||!t.hasOwnProperty("data")?null:Date.now()>=t.expires?(sessionStorage.removeItem(String(e)),null):t.data},sr=e=>sessionStorage.removeItem(String(e)),cr=()=>sessionStorage.clear(),Js={setItem:ar,getItem:ir,removeItem:sr,clear:cr}});var fe,Ne=T(()=>{"use strict";n();Ce();pr();fe={session:hn,local:Tn}});var xn,L,X,P=T(()=>{"use strict";n();xn=require("@reduxjs/toolkit");w();L=(0,xn.createAction)(po),X=(0,xn.createAction)(nr,e=>({payload:e}))});var bn,mr,dr,lo,yn,lr,Sn,y_,wn,b_,Qs,ec,S_,w_,v_,oc,nc,_o,uo=T(()=>{"use strict";n();bn=require("@multiversx/sdk-core"),mr=require("@reduxjs/toolkit"),dr=require("redux-persist");w();Ne();Ce();P();lo={balance:"...",address:"",isGuarded:!1,nonce:0,txCount:0,scrCount:0,claimableRewards:Le},yn={address:"",websocketEvent:null,websocketBatchEvent:null,accounts:{"":lo},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},lr=(0,mr.createSlice)({name:"accountInfoSlice",initialState:yn,reducers:{setAddress:(e,o)=>{let t=o.payload;e.address=t,e.publicKey=new bn.Address(t).hex()},setAccount:(e,o)=>{let t=e.address===o.payload.address;e.accounts={[e.address]:t?o.payload:lo},e.shard=o.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,o)=>{let{address:t}=e;e.accounts[t].nonce=o.payload},setAccountShard:(e,o)=>{e.shard=o.payload},setLedgerAccount:(e,o)=>{e.ledgerAccount=o.payload},updateLedgerAccount:(e,o)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=o.payload.index,e.ledgerAccount.address=o.payload.address)},setWalletConnectAccount:(e,o)=>{e.walletConnectAccount=o.payload},setIsAccountLoading:(e,o)=>{e.isAccountLoading=o.payload,e.accountLoadingError=null},setAccountLoadingError:(e,o)=>{e.accountLoadingError=o.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,o)=>{e.websocketEvent={timestamp:Date.now(),message:o.payload}},setWebsocketBatchEvent:(e,o)=>{e.websocketBatchEvent={timestamp:Date.now(),data:o.payload}}},extraReducers:e=>{e.addCase(L,()=>(fe.local.removeItem(pe.loginExpiresAt),yn)),e.addCase(X,(o,t)=>{let{address:s}=t.payload;o.address=s,o.publicKey=new bn.Address(s).hex()}),e.addCase(dr.REHYDRATE,(o,t)=>{var h;if(!((h=t.payload)!=null&&h.account))return;let{account:s}=t.payload,{address:c,shard:p,accounts:m,publicKey:u}=s;o.address=c,o.shard=p;let l=m&&c in m;o.accounts=l?m:yn.accounts,o.publicKey=u})}}),{setAccount:Sn,setAddress:y_,setAccountNonce:wn,setAccountShard:b_,setLedgerAccount:Qs,updateLedgerAccount:ec,setWalletConnectAccount:S_,setIsAccountLoading:w_,setAccountLoadingError:v_,setWebsocketEvent:oc,setWebsocketBatchEvent:nc}=lr.actions,_o=lr.reducer});function Ve(){return new Date().setHours(new Date().getHours()+24)}function $e(e){fe.local.setItem({key:pe.loginExpiresAt,data:e,expires:e})}var vn=T(()=>{"use strict";n();Ne();Ce()});var ur,_r,gr,R_,fr,tc,rc,O_,ac,Tr,M_,go,fo=T(()=>{"use strict";n();ur=require("@reduxjs/toolkit");vn();A();P();_r={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},gr=(0,ur.createSlice)({name:"loginInfoSlice",initialState:_r,reducers:{setLoginMethod:(e,o)=>{e.loginMethod=o.payload},setTokenLogin:(e,o)=>{e.tokenLogin=o.payload},setTokenLoginSignature:(e,o)=>{(e==null?void 0:e.tokenLogin)!=null&&(e.tokenLogin.signature=o.payload)},setWalletLogin:(e,o)=>{e.walletLogin=o.payload},setWalletConnectLogin:(e,o)=>{e.walletConnectLogin=o.payload},setLedgerLogin:(e,o)=>{e.ledgerLogin=o.payload},invalidateLoginSession:e=>{e.isLoginSessionInvalid=!0},setLogoutRoute:(e,o)=>{e.logoutRoute=o.payload}},extraReducers:e=>{e.addCase(L,()=>_r),e.addCase(X,(o,t)=>{o.loginMethod=t.payload.loginMethod,$e(Ve())})}}),{setLoginMethod:R_,setWalletConnectLogin:fr,setLedgerLogin:tc,setTokenLogin:rc,setTokenLoginSignature:O_,setWalletLogin:ac,invalidateLoginSession:Tr,setLogoutRoute:M_}=gr.actions,go=gr.reducer});var xr,hr,yr,G_,ic,W_,sc,To,ho=T(()=>{"use strict";n();xr=require("@reduxjs/toolkit");P();hr={},yr=(0,xr.createSlice)({name:"modalsSlice",initialState:hr,reducers:{setTxSubmittedModal:(e,o)=>{e.txSubmittedModal=o.payload},setNotificationModal:(e,o)=>{e.notificationModal=o.payload},clearTxSubmittedModal:e=>{e.txSubmittedModal=void 0},clearNotificationModal:e=>{e.notificationModal=void 0}},extraReducers:e=>{e.addCase(L,()=>hr)}}),{setTxSubmittedModal:G_,setNotificationModal:ic,clearTxSubmittedModal:W_,clearNotificationModal:sc}=yr.actions,To=yr.reducer});var He=T(()=>{"use strict";n()});var Sr=T(()=>{"use strict";n();He()});function In(e){return e[Math.floor(Math.random()*e.length)]}var wr=T(()=>{"use strict";n()});var kn=T(()=>{"use strict";n();_n()});var Te=T(()=>{"use strict";n();Sr();wr();kn()});var vr,Ir,An,cc,kr,nu,tu,xo,yo=T(()=>{"use strict";n();vr=require("@reduxjs/toolkit"),Ir=f(require("lodash.omit"));Te();An={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},cc={network:An,chainID:"-1"},kr=(0,vr.createSlice)({name:"appConfig",initialState:cc,reducers:{initializeNetworkConfig:(e,o)=>{let t=In(o.payload.walletConnectBridgeAddresses),s=In(o.payload.walletConnectV2RelayAddresses),c=(0,Ir.default)(o.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=S(g(g({},e.network),c),{walletConnectBridgeAddress:t,walletConnectV2RelayAddress:s})},setChainID:(e,o)=>{e.chainID=o.payload}}}),{initializeNetworkConfig:nu,setChainID:tu}=kr.actions,xo=kr.reducer});var Ar,En,Er,pu,mu,du,bo,So=T(()=>{"use strict";n();Ar=require("@reduxjs/toolkit");C();P();En={isSigning:!1,signedSessions:{}},Er=(0,Ar.createSlice)({name:"signedMessageInfoSliceState",initialState:En,reducers:{setSignSession:(e,o)=>{let{sessionId:t,signedSession:s,errorMessage:c}=o.payload;c&&(e.errorMessage=c),e.isSigning=s.status==="pending",e.signedSessions[t]=s},setSignSessionState:(e,o)=>g(g({},e),o.payload),clearSignedMessageInfo:()=>En},extraReducers:e=>{e.addCase(L,()=>En)}}),{setSignSession:pu,clearSignedMessageInfo:mu,setSignSessionState:du}=Er.actions,bo=Er.reducer});var Cr,Nr,Lr,Pr,pc,Ln,xu,mc,yu,bu,wo,vo=T(()=>{"use strict";n();Cr=require("@reduxjs/toolkit"),Nr=require("redux-persist");un();C();mo();P();Lr={customToasts:[],transactionToasts:[],failTransactionToast:null},Pr=(0,Cr.createSlice)({name:"toastsSlice",initialState:Lr,reducers:{addCustomToast:(e,o)=>{e.customToasts.push(S(g({},o.payload),{type:"custom",toastId:o.payload.toastId||`custom-toast-${e.customToasts.length+1}`}))},removeCustomToast:(e,o)=>{e.customToasts=e.customToasts.filter(t=>t.toastId!==o.payload)},addTransactionToast:(e,o)=>{e.transactionToasts.push({type:"transaction",startTimestamp:We(),toastId:o.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,o)=>{e.transactionToasts=e.transactionToasts.filter(t=>t.toastId!==o.payload)},addFailTransactionToast:(e,o)=>{e.failTransactionToast=S(g({},o.payload),{toastId:so})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(L,()=>Lr),e.addCase(Nr.REHYDRATE,(o,t)=>{var c,p;let s=(p=(c=t.customToasts)==null?void 0:c.filter(m=>!("component"in m)))!=null?p:[];o.customToasts=s})}}),{addCustomToast:pc,removeCustomToast:Ln,addTransactionToast:xu,removeTransactionToast:mc,addFailTransactionToast:yu,removeFailTransactionToast:bu}=Pr.actions,wo=Pr.reducer});var Dr,Nn,Pn,Dn,dc,Cn,Rr,Iu,lc,Rn,Io,ko=T(()=>{"use strict";n();Dr=require("@reduxjs/toolkit");P();Nn="Transaction failed",Pn="Transaction successful",Dn="Processing transaction",dc="Transaction submitted",Cn={},Rr=(0,Dr.createSlice)({name:"transactionsInfo",initialState:Cn,reducers:{setTransactionsDisplayInfo(e,o){let{sessionId:t,transactionsDisplayInfo:s}=o.payload;t!=null&&(e[t]={errorMessage:(s==null?void 0:s.errorMessage)||Nn,successMessage:(s==null?void 0:s.successMessage)||Pn,processingMessage:(s==null?void 0:s.processingMessage)||Dn,submittedMessage:(s==null?void 0:s.submittedMessage)||dc,transactionDuration:s==null?void 0:s.transactionDuration})},clearTransactionsInfoForSessionId(e,o){o.payload!=null&&delete e[o.payload]},clearTransactionsInfo:()=>Cn},extraReducers:e=>{e.addCase(L,()=>Cn)}}),{clearTransactionsInfo:Iu,setTransactionsDisplayInfo:lc,clearTransactionsInfoForSessionId:Rn}=Rr.actions,Io=Rr.reducer});var Or,Mr,je,_c,Br,Fr,Ur,uc,Ao,gc,fc,Pu,Tc,ze,On,Eo,Lo=T(()=>{"use strict";n();Or=require("@reduxjs/toolkit"),Mr=require("redux-persist");A();ue();P();je={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},_c={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Br=(0,Or.createSlice)({name:"transactionsSlice",initialState:je,reducers:{moveTransactionsToSignedState:(e,o)=>{var h,b;let{sessionId:t,transactions:s,errorMessage:c,status:p,redirectRoute:m,customTransactionInformation:u={}}=o.payload,l=((h=e.customTransactionInformationForSessionId)==null?void 0:h[t])||_c;e.signedTransactions[t]={transactions:s,status:p,errorMessage:c,redirectRoute:m,customTransactionInformation:g(g({},l),u)},((b=e==null?void 0:e.transactionsToSign)==null?void 0:b.sessionId)===t&&(e.transactionsToSign=je.transactionsToSign)},clearSignedTransaction:(e,o)=>{e.signedTransactions[o.payload]&&delete e.signedTransactions[o.payload]},clearTransactionToSign:e=>{e!=null&&e.transactionsToSign&&(e.transactionsToSign=null)},updateSignedTransaction:(e,o)=>{e.signedTransactions=g(g({},e.signedTransactions),o.payload)},updateSignedTransactions:(e,o)=>{let{sessionId:t,status:s,errorMessage:c,transactions:p}=o.payload;e.signedTransactions[t]!=null&&(e.signedTransactions[t].status=s,c!=null&&(e.signedTransactions[t].errorMessage=c),p!=null&&(e.signedTransactions[t].transactions=p))},updateSignedTransactionStatus:(e,o)=>{var l,h,b,y,R,D,Q,oo;let{sessionId:t,status:s,errorMessage:c,transactionHash:p,inTransit:m}=o.payload,u=(h=(l=e.signedTransactions)==null?void 0:l[t])==null?void 0:h.transactions;if(u!=null){e.signedTransactions[t].transactions=u.map(ee=>ee.hash===p?S(g({},ee),{status:s,errorMessage:c,inTransit:m}):ee);let Vi=(y=(b=e.signedTransactions[t])==null?void 0:b.transactions)==null?void 0:y.every(ee=>ke(ee.status)),$i=(D=(R=e.signedTransactions[t])==null?void 0:R.transactions)==null?void 0:D.every(ee=>Ae(ee.status)),Hi=(oo=(Q=e.signedTransactions[t])==null?void 0:Q.transactions)==null?void 0:oo.every(ee=>Ut(ee.status));Vi&&(e.signedTransactions[t].status="success"),$i&&(e.signedTransactions[t].status="fail"),Hi&&(e.signedTransactions[t].status="invalid")}},setTransactionsToSign:(e,o)=>{e.transactionsToSign=o.payload;let{sessionId:t,customTransactionInformation:s}=o.payload;e.customTransactionInformationForSessionId[t]=s,e.signTransactionsError=null},clearAllTransactionsToSign:e=>{e.transactionsToSign=je.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=je.signedTransactions},setSignTransactionsError:(e,o)=>{e.signTransactionsError=o.payload},setSignTransactionsCancelMessage:(e,o)=>{e.signTransactionsCancelMessage=o.payload}},extraReducers:e=>{e.addCase(L,()=>je),e.addCase(Mr.REHYDRATE,(o,t)=>{var m;if(o.signTransactionsCancelMessage=null,!((m=t.payload)!=null&&m.transactions))return;let{signedTransactions:s,customTransactionInformationForSessionId:c}=t.payload.transactions,p=Object.entries(s).reduce((u,[l,h])=>{let b=new Date(l),y=new Date;return y.setHours(y.getHours()+5),y-b>0||(u[l]=h),u},{});c!=null&&(o.customTransactionInformationForSessionId=c),s!=null&&(o.signedTransactions=p)})}}),{updateSignedTransactionStatus:Fr,updateSignedTransactions:Ur,setTransactionsToSign:uc,clearAllTransactionsToSign:Ao,clearAllSignedTransactions:gc,clearSignedTransaction:fc,clearTransactionToSign:Pu,setSignTransactionsError:Tc,setSignTransactionsCancelMessage:ze,moveTransactionsToSignedState:On}=Br.actions,Eo=Br.reducer});var Gr,Mn,Wr,Mu,Bu,hc,Fu,Co,No=T(()=>{"use strict";n();Gr=require("@reduxjs/toolkit");P();Mn={},Wr=(0,Gr.createSlice)({name:"batchTransactionsSlice",initialState:Mn,reducers:{setBatchTransactions:(e,o)=>{e[o.payload.id]=o.payload},updateBatchTransactions:(e,o)=>{e[o.payload.id]=o.payload},clearBatchTransactions:(e,o)=>{delete e[o.payload.batchId]},clearAllBatchTransactions:()=>Mn},extraReducers:e=>{e.addCase(L,()=>Mn)}}),{setBatchTransactions:Mu,updateBatchTransactions:Bu,clearBatchTransactions:hc,clearAllBatchTransactions:Fu}=Wr.actions,Co=Wr.reducer});var $r,Vr,Hr,Vu,jr,Bn=T(()=>{"use strict";n();$r=require("@reduxjs/toolkit");P();Vr={},Hr=(0,$r.createSlice)({name:"dappConfigSlice",initialState:Vr,reducers:{setDappConfig:(e,o)=>{if(e&&o.payload){let{logoutRoute:t,shouldUseWebViewProvider:s}=o.payload;e.logoutRoute=t,e.shouldUseWebViewProvider=s}else e=o.payload}},extraReducers:e=>{e.addCase(L,()=>Vr)}}),{setDappConfig:Vu}=Hr.actions,jr=Hr.reducer});var k=T(()=>{"use strict";n();uo();fo();ho();yo();So();vo();ko();Lo();No();Bn()});var Vn=T(()=>{"use strict";n()});var ia,aa,sa,gf,ff,Tf,hf,xf,yf,ca,pa=T(()=>{"use strict";n();ia=require("@reduxjs/toolkit");P();aa={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},sa=(0,ia.createSlice)({name:"dappModalsSlice",initialState:aa,reducers:{setDappModalVisibility:(e,o)=>{e.visible=o.payload},setDappModalHeaderVisibility:(e,o)=>{e.modal.showHeader=o.payload},setDappModalFooterVisibility:(e,o)=>{e.modal.showFooter=o.payload},setDappModalHeaderText:(e,o)=>{e.modal.headerText=o.payload},setDappModalFooterText:(e,o)=>{e.modal.footerText=o.payload},setDappModalConfig:(e,o)=>{e.modal=g({},o.payload)}},extraReducers:e=>{e.addCase(L,()=>aa)}}),{setDappModalVisibility:gf,setDappModalHeaderVisibility:ff,setDappModalFooterVisibility:Tf,setDappModalHeaderText:hf,setDappModalFooterText:xf,setDappModalConfig:yf}=sa.actions,ca=sa.reducer});var ma,Fc,Uc,he,Fo=T(()=>{"use strict";n();ma=require("@reduxjs/toolkit");Vn();uo();No();Bn();pa();fo();ho();yo();So();vo();ko();Lo();Fc={["account"]:_o,["dappModal"]:ca,["dappConfig"]:jr,["loginInfo"]:go,["modals"]:To,["networkConfig"]:xo,["signedMessageInfo"]:bo,["toasts"]:wo,["transactionsInfo"]:Io,["transactions"]:Eo,["batchTransactions"]:Co},Uc=(e={})=>(0,ma.combineReducers)(g(g({},Fc),e)),he=Uc});var ua={};me(ua,{default:()=>op,sessionStorageReducers:()=>$n});function ae(e,o=[]){return{key:e,version:1,storage:la.default,blacklist:o}}var B,da,la,Gc,Ke,Wc,Vc,$c,Hc,jc,zc,qc,Kc,Xc,Yc,_a,Zc,$n,Jc,Qc,ep,op,ga=T(()=>{"use strict";n();B=require("redux-persist"),da=f(require("redux-persist/lib/storage")),la=f(require("redux-persist/lib/storage/session"));Fo();k();uo();No();fo();ho();yo();So();vo();ko();Lo();Vn();Gc={persistReducersStorageType:"localStorage"},Ke={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},Wc=ae(Ke["account"]),Vc=ae(Ke["loginInfo"]),$c=ae(Ke["modals"]),Hc=ae(Ke["networkConfig"]),jc={2:e=>S(g({},e),{networkConfig:An})};zc=ae("sdk-dapp-transactionsInfo"),qc=ae("sdk-dapp-transactions",["transactionsToSign"]),Kc=ae("sdk-dapp-batchTransactions",["batchTransactions"]),Xc=ae("sdk-dapp-toasts"),Yc=ae("sdk-dapp-signedMessageInfo"),_a={key:"sdk-dapp-store",version:2,storage:da.default,whitelist:Object.keys(Ke),migrate:(0,B.createMigrate)(jc,{debug:!1})},Zc=S(g({},_a),{whitelist:[]}),$n={["toasts"]:(0,B.persistReducer)(Xc,wo),["transactions"]:(0,B.persistReducer)(qc,Eo),["transactionsInfo"]:(0,B.persistReducer)(zc,Io),["batchTransactions"]:(0,B.persistReducer)(Kc,Co),["signedMessageInfo"]:(0,B.persistReducer)(Yc,bo)},Jc=S(g({},$n),{["account"]:(0,B.persistReducer)(Wc,_o),["loginInfo"]:(0,B.persistReducer)(Vc,go),["modals"]:(0,B.persistReducer)($c,To),["networkConfig"]:(0,B.persistReducer)(Hc,xo)}),Qc=Gc.persistReducersStorageType==="localStorage",ep=Qc?(0,B.persistReducer)(_a,he($n)):(0,B.persistReducer)(Zc,he(Jc)),op=ep});var fa={};me(fa,{default:()=>np});var np,Ta=T(()=>{"use strict";n();Fo();np=he()});var ha={};me(ha,{default:()=>rp});var V,tp,rp,xa=T(()=>{"use strict";n();V=require("redux-persist"),tp=[V.FLUSH,V.REHYDRATE,V.PAUSE,V.PERSIST,V.PURGE,V.REGISTER],rp=tp});var Sa={};me(Sa,{default:()=>ba});function ba(e){return(0,ya.persistStore)(e)}var ya,wa=T(()=>{"use strict";n();ya=require("redux-persist")});var ui=U((kC,_i)=>{n();var ed=typeof r=="object"&&r&&r.Object===Object&&r;_i.exports=ed});var fi=U((AC,gi)=>{n();var od=ui(),nd=typeof self=="object"&&self&&self.Object===Object&&self,td=od||nd||Function("return this")();gi.exports=td});var it=U((EC,Ti)=>{n();var rd=fi(),ad=rd.Symbol;Ti.exports=ad});var bi=U((LC,yi)=>{n();var hi=it(),xi=Object.prototype,id=xi.hasOwnProperty,sd=xi.toString,Je=hi?hi.toStringTag:void 0;function cd(e){var o=id.call(e,Je),t=e[Je];try{e[Je]=void 0;var s=!0}catch(p){}var c=sd.call(e);return s&&(o?e[Je]=t:delete e[Je]),c}yi.exports=cd});var wi=U((CC,Si)=>{n();var pd=Object.prototype,md=pd.toString;function dd(e){return md.call(e)}Si.exports=dd});var Ai=U((NC,ki)=>{n();var vi=it(),ld=bi(),_d=wi(),ud="[object Null]",gd="[object Undefined]",Ii=vi?vi.toStringTag:void 0;function fd(e){return e==null?e===void 0?gd:ud:Ii&&Ii in Object(e)?ld(e):_d(e)}ki.exports=fd});var Li=U((PC,Ei)=>{n();var Td=Array.isArray;Ei.exports=Td});var Ni=U((DC,Ci)=>{n();function hd(e){return e!=null&&typeof e=="object"}Ci.exports=hd});var Di=U((RC,Pi)=>{n();var xd=Ai(),yd=Li(),bd=Ni(),Sd="[object String]";function wd(e){return typeof e=="string"||!yd(e)&&bd(e)&&xd(e)==Sd}Pi.exports=wd});var cl={};me(cl,{useMemoizedCloseButton:()=>sl});module.exports=Fe(cl);n();var eo=f(require("react"));n();n();var pn=f(require("react")),Bt=require("@fortawesome/free-solid-svg-icons"),Ft=require("@fortawesome/react-fontawesome"),mn=({className:e="dapp-default-toast-delete-button",onClick:o})=>pn.default.createElement("button",{type:"button",className:e,onClick:o},pn.default.createElement(Ft.FontAwesomeIcon,{icon:Bt.faTimes,size:"xs"}));n();var el=f(require("react")),ol=require("@fortawesome/react-fontawesome"),nl=f(require("classnames"));n();var Cs=`.dapp-core-component__main__link-style {
1
+ "use strict";var ji=Object.create;var Be=Object.defineProperty,zi=Object.defineProperties,qi=Object.getOwnPropertyDescriptor,Ki=Object.getOwnPropertyDescriptors,Xi=Object.getOwnPropertyNames,no=Object.getOwnPropertySymbols,Yi=Object.getPrototypeOf,Yo=Object.prototype.hasOwnProperty,_t=Object.prototype.propertyIsEnumerable;var lt=(e,o,t)=>o in e?Be(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,g=(e,o)=>{for(var t in o||(o={}))Yo.call(o,t)&&lt(e,t,o[t]);if(no)for(var t of no(o))_t.call(o,t)&&lt(e,t,o[t]);return e},S=(e,o)=>zi(e,Ki(o));var ye=(e,o)=>{var t={};for(var s in e)Yo.call(e,s)&&o.indexOf(s)<0&&(t[s]=e[s]);if(e!=null&&no)for(var s of no(e))o.indexOf(s)<0&&_t.call(e,s)&&(t[s]=e[s]);return t};var T=(e,o)=>()=>(e&&(o=e(e=0)),o);var U=(e,o)=>()=>(o||e((o={exports:{}}).exports,o),o.exports),me=(e,o)=>{for(var t in o)Be(e,t,{get:o[t],enumerable:!0})},ut=(e,o,t,s)=>{if(o&&typeof o=="object"||typeof o=="function")for(let c of Xi(o))!Yo.call(e,c)&&c!==t&&Be(e,c,{get:()=>o[c],enumerable:!(s=qi(o,c))||s.enumerable});return e};var f=(e,o,t)=>(t=e!=null?ji(Yi(e)):{},ut(o||!e||!e.__esModule?Be(t,"default",{value:e,enumerable:!0}):t,e)),Fe=e=>ut(Be({},"__esModule",{value:!0}),e);var x=(e,o,t)=>new Promise((s,c)=>{var p=l=>{try{u(t.next(l))}catch(h){c(h)}},m=l=>{try{u(t.throw(l))}catch(h){c(h)}},u=l=>l.done?s(l.value):Promise.resolve(l.value).then(p,m);u((t=t.apply(e,o)).next())});var Tt=U(to=>{"use strict";n();to.byteLength=Ji;to.toByteArray=es;to.fromByteArray=ts;var H=[],W=[],Zi=typeof Uint8Array!="undefined"?Uint8Array:Array,Zo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(de=0,gt=Zo.length;de<gt;++de)H[de]=Zo[de],W[Zo.charCodeAt(de)]=de;var de,gt;W["-".charCodeAt(0)]=62;W["_".charCodeAt(0)]=63;function ft(e){var o=e.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=o);var s=t===o?0:4-t%4;return[t,s]}function Ji(e){var o=ft(e),t=o[0],s=o[1];return(t+s)*3/4-s}function Qi(e,o,t){return(o+t)*3/4-t}function es(e){var o,t=ft(e),s=t[0],c=t[1],p=new Zi(Qi(e,s,c)),m=0,u=c>0?s-4:s,l;for(l=0;l<u;l+=4)o=W[e.charCodeAt(l)]<<18|W[e.charCodeAt(l+1)]<<12|W[e.charCodeAt(l+2)]<<6|W[e.charCodeAt(l+3)],p[m++]=o>>16&255,p[m++]=o>>8&255,p[m++]=o&255;return c===2&&(o=W[e.charCodeAt(l)]<<2|W[e.charCodeAt(l+1)]>>4,p[m++]=o&255),c===1&&(o=W[e.charCodeAt(l)]<<10|W[e.charCodeAt(l+1)]<<4|W[e.charCodeAt(l+2)]>>2,p[m++]=o>>8&255,p[m++]=o&255),p}function os(e){return H[e>>18&63]+H[e>>12&63]+H[e>>6&63]+H[e&63]}function ns(e,o,t){for(var s,c=[],p=o;p<t;p+=3)s=(e[p]<<16&16711680)+(e[p+1]<<8&65280)+(e[p+2]&255),c.push(os(s));return c.join("")}function ts(e){for(var o,t=e.length,s=t%3,c=[],p=16383,m=0,u=t-s;m<u;m+=p)c.push(ns(e,m,m+p>u?u:m+p));return s===1?(o=e[t-1],c.push(H[o>>2]+H[o<<4&63]+"==")):s===2&&(o=(e[t-2]<<8)+e[t-1],c.push(H[o>>10]+H[o>>4&63]+H[o<<2&63]+"=")),c.join("")}});var ht=U(Jo=>{n();Jo.read=function(e,o,t,s,c){var p,m,u=c*8-s-1,l=(1<<u)-1,h=l>>1,b=-7,y=t?c-1:0,R=t?-1:1,D=e[o+y];for(y+=R,p=D&(1<<-b)-1,D>>=-b,b+=u;b>0;p=p*256+e[o+y],y+=R,b-=8);for(m=p&(1<<-b)-1,p>>=-b,b+=s;b>0;m=m*256+e[o+y],y+=R,b-=8);if(p===0)p=1-h;else{if(p===l)return m?NaN:(D?-1:1)*(1/0);m=m+Math.pow(2,s),p=p-h}return(D?-1:1)*m*Math.pow(2,p-s)};Jo.write=function(e,o,t,s,c,p){var m,u,l,h=p*8-c-1,b=(1<<h)-1,y=b>>1,R=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,D=s?0:p-1,Q=s?1:-1,oo=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(u=isNaN(o)?1:0,m=b):(m=Math.floor(Math.log(o)/Math.LN2),o*(l=Math.pow(2,-m))<1&&(m--,l*=2),m+y>=1?o+=R/l:o+=R*Math.pow(2,1-y),o*l>=2&&(m++,l/=2),m+y>=b?(u=0,m=b):m+y>=1?(u=(o*l-1)*Math.pow(2,c),m=m+y):(u=o*Math.pow(2,y-1)*Math.pow(2,c),m=0));c>=8;e[t+D]=u&255,D+=Q,u/=256,c-=8);for(m=m<<c|u,h+=c;h>0;e[t+D]=m&255,D+=Q,m/=256,h-=8);e[t+D-Q]|=oo*128}});var Nt=U(Se=>{"use strict";n();var Qo=Tt(),be=ht(),xt=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Se.Buffer=d;Se.SlowBuffer=ps;Se.INSPECT_MAX_BYTES=50;var ro=2147483647;Se.kMaxLength=ro;d.TYPED_ARRAY_SUPPORT=rs();!d.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 rs(){try{var e=new Uint8Array(1),o={foo:function(){return 42}};return Object.setPrototypeOf(o,Uint8Array.prototype),Object.setPrototypeOf(e,o),e.foo()===42}catch(t){return!1}}Object.defineProperty(d.prototype,"parent",{enumerable:!0,get:function(){if(!!d.isBuffer(this))return this.buffer}});Object.defineProperty(d.prototype,"offset",{enumerable:!0,get:function(){if(!!d.isBuffer(this))return this.byteOffset}});function oe(e){if(e>ro)throw new RangeError('The value "'+e+'" is invalid for option "size"');var o=new Uint8Array(e);return Object.setPrototypeOf(o,d.prototype),o}function d(e,o,t){if(typeof e=="number"){if(typeof o=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return tn(e)}return St(e,o,t)}d.poolSize=8192;function St(e,o,t){if(typeof e=="string")return is(e,o);if(ArrayBuffer.isView(e))return ss(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(j(e,ArrayBuffer)||e&&j(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(j(e,SharedArrayBuffer)||e&&j(e.buffer,SharedArrayBuffer)))return on(e,o,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var s=e.valueOf&&e.valueOf();if(s!=null&&s!==e)return d.from(s,o,t);var c=cs(e);if(c)return c;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return d.from(e[Symbol.toPrimitive]("string"),o,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}d.from=function(e,o,t){return St(e,o,t)};Object.setPrototypeOf(d.prototype,Uint8Array.prototype);Object.setPrototypeOf(d,Uint8Array);function wt(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 as(e,o,t){return wt(e),e<=0?oe(e):o!==void 0?typeof t=="string"?oe(e).fill(o,t):oe(e).fill(o):oe(e)}d.alloc=function(e,o,t){return as(e,o,t)};function tn(e){return wt(e),oe(e<0?0:rn(e)|0)}d.allocUnsafe=function(e){return tn(e)};d.allocUnsafeSlow=function(e){return tn(e)};function is(e,o){if((typeof o!="string"||o==="")&&(o="utf8"),!d.isEncoding(o))throw new TypeError("Unknown encoding: "+o);var t=vt(e,o)|0,s=oe(t),c=s.write(e,o);return c!==t&&(s=s.slice(0,c)),s}function en(e){for(var o=e.length<0?0:rn(e.length)|0,t=oe(o),s=0;s<o;s+=1)t[s]=e[s]&255;return t}function ss(e){if(j(e,Uint8Array)){var o=new Uint8Array(e);return on(o.buffer,o.byteOffset,o.byteLength)}return en(e)}function on(e,o,t){if(o<0||e.byteLength<o)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<o+(t||0))throw new RangeError('"length" is outside of buffer bounds');var s;return o===void 0&&t===void 0?s=new Uint8Array(e):t===void 0?s=new Uint8Array(e,o):s=new Uint8Array(e,o,t),Object.setPrototypeOf(s,d.prototype),s}function cs(e){if(d.isBuffer(e)){var o=rn(e.length)|0,t=oe(o);return t.length===0||e.copy(t,0,0,o),t}if(e.length!==void 0)return typeof e.length!="number"||an(e.length)?oe(0):en(e);if(e.type==="Buffer"&&Array.isArray(e.data))return en(e.data)}function rn(e){if(e>=ro)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ro.toString(16)+" bytes");return e|0}function ps(e){return+e!=e&&(e=0),d.alloc(+e)}d.isBuffer=function(o){return o!=null&&o._isBuffer===!0&&o!==d.prototype};d.compare=function(o,t){if(j(o,Uint8Array)&&(o=d.from(o,o.offset,o.byteLength)),j(t,Uint8Array)&&(t=d.from(t,t.offset,t.byteLength)),!d.isBuffer(o)||!d.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(o===t)return 0;for(var s=o.length,c=t.length,p=0,m=Math.min(s,c);p<m;++p)if(o[p]!==t[p]){s=o[p],c=t[p];break}return s<c?-1:c<s?1:0};d.isEncoding=function(o){switch(String(o).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}};d.concat=function(o,t){if(!Array.isArray(o))throw new TypeError('"list" argument must be an Array of Buffers');if(o.length===0)return d.alloc(0);var s;if(t===void 0)for(t=0,s=0;s<o.length;++s)t+=o[s].length;var c=d.allocUnsafe(t),p=0;for(s=0;s<o.length;++s){var m=o[s];if(j(m,Uint8Array))p+m.length>c.length?d.from(m).copy(c,p):Uint8Array.prototype.set.call(c,m,p);else if(d.isBuffer(m))m.copy(c,p);else throw new TypeError('"list" argument must be an Array of Buffers');p+=m.length}return c};function vt(e,o){if(d.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||j(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,s=arguments.length>2&&arguments[2]===!0;if(!s&&t===0)return 0;for(var c=!1;;)switch(o){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return nn(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Ct(e).length;default:if(c)return s?-1:nn(e).length;o=(""+o).toLowerCase(),c=!0}}d.byteLength=vt;function ms(e,o,t){var s=!1;if((o===void 0||o<0)&&(o=0),o>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,o>>>=0,t<=o))return"";for(e||(e="utf8");;)switch(e){case"hex":return ys(this,o,t);case"utf8":case"utf-8":return kt(this,o,t);case"ascii":return hs(this,o,t);case"latin1":case"binary":return xs(this,o,t);case"base64":return fs(this,o,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return bs(this,o,t);default:if(s)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}d.prototype._isBuffer=!0;function le(e,o,t){var s=e[o];e[o]=e[t],e[t]=s}d.prototype.swap16=function(){var o=this.length;if(o%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<o;t+=2)le(this,t,t+1);return this};d.prototype.swap32=function(){var o=this.length;if(o%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<o;t+=4)le(this,t,t+3),le(this,t+1,t+2);return this};d.prototype.swap64=function(){var o=this.length;if(o%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<o;t+=8)le(this,t,t+7),le(this,t+1,t+6),le(this,t+2,t+5),le(this,t+3,t+4);return this};d.prototype.toString=function(){var o=this.length;return o===0?"":arguments.length===0?kt(this,0,o):ms.apply(this,arguments)};d.prototype.toLocaleString=d.prototype.toString;d.prototype.equals=function(o){if(!d.isBuffer(o))throw new TypeError("Argument must be a Buffer");return this===o?!0:d.compare(this,o)===0};d.prototype.inspect=function(){var o="",t=Se.INSPECT_MAX_BYTES;return o=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(o+=" ... "),"<Buffer "+o+">"};xt&&(d.prototype[xt]=d.prototype.inspect);d.prototype.compare=function(o,t,s,c,p){if(j(o,Uint8Array)&&(o=d.from(o,o.offset,o.byteLength)),!d.isBuffer(o))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof o);if(t===void 0&&(t=0),s===void 0&&(s=o?o.length:0),c===void 0&&(c=0),p===void 0&&(p=this.length),t<0||s>o.length||c<0||p>this.length)throw new RangeError("out of range index");if(c>=p&&t>=s)return 0;if(c>=p)return-1;if(t>=s)return 1;if(t>>>=0,s>>>=0,c>>>=0,p>>>=0,this===o)return 0;for(var m=p-c,u=s-t,l=Math.min(m,u),h=this.slice(c,p),b=o.slice(t,s),y=0;y<l;++y)if(h[y]!==b[y]){m=h[y],u=b[y];break}return m<u?-1:u<m?1:0};function It(e,o,t,s,c){if(e.length===0)return-1;if(typeof t=="string"?(s=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,an(t)&&(t=c?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(c)return-1;t=e.length-1}else if(t<0)if(c)t=0;else return-1;if(typeof o=="string"&&(o=d.from(o,s)),d.isBuffer(o))return o.length===0?-1:yt(e,o,t,s,c);if(typeof o=="number")return o=o&255,typeof Uint8Array.prototype.indexOf=="function"?c?Uint8Array.prototype.indexOf.call(e,o,t):Uint8Array.prototype.lastIndexOf.call(e,o,t):yt(e,[o],t,s,c);throw new TypeError("val must be string, number or Buffer")}function yt(e,o,t,s,c){var p=1,m=e.length,u=o.length;if(s!==void 0&&(s=String(s).toLowerCase(),s==="ucs2"||s==="ucs-2"||s==="utf16le"||s==="utf-16le")){if(e.length<2||o.length<2)return-1;p=2,m/=2,u/=2,t/=2}function l(D,Q){return p===1?D[Q]:D.readUInt16BE(Q*p)}var h;if(c){var b=-1;for(h=t;h<m;h++)if(l(e,h)===l(o,b===-1?0:h-b)){if(b===-1&&(b=h),h-b+1===u)return b*p}else b!==-1&&(h-=h-b),b=-1}else for(t+u>m&&(t=m-u),h=t;h>=0;h--){for(var y=!0,R=0;R<u;R++)if(l(e,h+R)!==l(o,R)){y=!1;break}if(y)return h}return-1}d.prototype.includes=function(o,t,s){return this.indexOf(o,t,s)!==-1};d.prototype.indexOf=function(o,t,s){return It(this,o,t,s,!0)};d.prototype.lastIndexOf=function(o,t,s){return It(this,o,t,s,!1)};function ds(e,o,t,s){t=Number(t)||0;var c=e.length-t;s?(s=Number(s),s>c&&(s=c)):s=c;var p=o.length;s>p/2&&(s=p/2);for(var m=0;m<s;++m){var u=parseInt(o.substr(m*2,2),16);if(an(u))return m;e[t+m]=u}return m}function ls(e,o,t,s){return ao(nn(o,e.length-t),e,t,s)}function _s(e,o,t,s){return ao(vs(o),e,t,s)}function us(e,o,t,s){return ao(Ct(o),e,t,s)}function gs(e,o,t,s){return ao(Is(o,e.length-t),e,t,s)}d.prototype.write=function(o,t,s,c){if(t===void 0)c="utf8",s=this.length,t=0;else if(s===void 0&&typeof t=="string")c=t,s=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(s)?(s=s>>>0,c===void 0&&(c="utf8")):(c=s,s=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var p=this.length-t;if((s===void 0||s>p)&&(s=p),o.length>0&&(s<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");c||(c="utf8");for(var m=!1;;)switch(c){case"hex":return ds(this,o,t,s);case"utf8":case"utf-8":return ls(this,o,t,s);case"ascii":case"latin1":case"binary":return _s(this,o,t,s);case"base64":return us(this,o,t,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return gs(this,o,t,s);default:if(m)throw new TypeError("Unknown encoding: "+c);c=(""+c).toLowerCase(),m=!0}};d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function fs(e,o,t){return o===0&&t===e.length?Qo.fromByteArray(e):Qo.fromByteArray(e.slice(o,t))}function kt(e,o,t){t=Math.min(e.length,t);for(var s=[],c=o;c<t;){var p=e[c],m=null,u=p>239?4:p>223?3:p>191?2:1;if(c+u<=t){var l,h,b,y;switch(u){case 1:p<128&&(m=p);break;case 2:l=e[c+1],(l&192)===128&&(y=(p&31)<<6|l&63,y>127&&(m=y));break;case 3:l=e[c+1],h=e[c+2],(l&192)===128&&(h&192)===128&&(y=(p&15)<<12|(l&63)<<6|h&63,y>2047&&(y<55296||y>57343)&&(m=y));break;case 4:l=e[c+1],h=e[c+2],b=e[c+3],(l&192)===128&&(h&192)===128&&(b&192)===128&&(y=(p&15)<<18|(l&63)<<12|(h&63)<<6|b&63,y>65535&&y<1114112&&(m=y))}}m===null?(m=65533,u=1):m>65535&&(m-=65536,s.push(m>>>10&1023|55296),m=56320|m&1023),s.push(m),c+=u}return Ts(s)}var bt=4096;function Ts(e){var o=e.length;if(o<=bt)return String.fromCharCode.apply(String,e);for(var t="",s=0;s<o;)t+=String.fromCharCode.apply(String,e.slice(s,s+=bt));return t}function hs(e,o,t){var s="";t=Math.min(e.length,t);for(var c=o;c<t;++c)s+=String.fromCharCode(e[c]&127);return s}function xs(e,o,t){var s="";t=Math.min(e.length,t);for(var c=o;c<t;++c)s+=String.fromCharCode(e[c]);return s}function ys(e,o,t){var s=e.length;(!o||o<0)&&(o=0),(!t||t<0||t>s)&&(t=s);for(var c="",p=o;p<t;++p)c+=ks[e[p]];return c}function bs(e,o,t){for(var s=e.slice(o,t),c="",p=0;p<s.length-1;p+=2)c+=String.fromCharCode(s[p]+s[p+1]*256);return c}d.prototype.slice=function(o,t){var s=this.length;o=~~o,t=t===void 0?s:~~t,o<0?(o+=s,o<0&&(o=0)):o>s&&(o=s),t<0?(t+=s,t<0&&(t=0)):t>s&&(t=s),t<o&&(t=o);var c=this.subarray(o,t);return Object.setPrototypeOf(c,d.prototype),c};function N(e,o,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+o>t)throw new RangeError("Trying to access beyond buffer length")}d.prototype.readUintLE=d.prototype.readUIntLE=function(o,t,s){o=o>>>0,t=t>>>0,s||N(o,t,this.length);for(var c=this[o],p=1,m=0;++m<t&&(p*=256);)c+=this[o+m]*p;return c};d.prototype.readUintBE=d.prototype.readUIntBE=function(o,t,s){o=o>>>0,t=t>>>0,s||N(o,t,this.length);for(var c=this[o+--t],p=1;t>0&&(p*=256);)c+=this[o+--t]*p;return c};d.prototype.readUint8=d.prototype.readUInt8=function(o,t){return o=o>>>0,t||N(o,1,this.length),this[o]};d.prototype.readUint16LE=d.prototype.readUInt16LE=function(o,t){return o=o>>>0,t||N(o,2,this.length),this[o]|this[o+1]<<8};d.prototype.readUint16BE=d.prototype.readUInt16BE=function(o,t){return o=o>>>0,t||N(o,2,this.length),this[o]<<8|this[o+1]};d.prototype.readUint32LE=d.prototype.readUInt32LE=function(o,t){return o=o>>>0,t||N(o,4,this.length),(this[o]|this[o+1]<<8|this[o+2]<<16)+this[o+3]*16777216};d.prototype.readUint32BE=d.prototype.readUInt32BE=function(o,t){return o=o>>>0,t||N(o,4,this.length),this[o]*16777216+(this[o+1]<<16|this[o+2]<<8|this[o+3])};d.prototype.readIntLE=function(o,t,s){o=o>>>0,t=t>>>0,s||N(o,t,this.length);for(var c=this[o],p=1,m=0;++m<t&&(p*=256);)c+=this[o+m]*p;return p*=128,c>=p&&(c-=Math.pow(2,8*t)),c};d.prototype.readIntBE=function(o,t,s){o=o>>>0,t=t>>>0,s||N(o,t,this.length);for(var c=t,p=1,m=this[o+--c];c>0&&(p*=256);)m+=this[o+--c]*p;return p*=128,m>=p&&(m-=Math.pow(2,8*t)),m};d.prototype.readInt8=function(o,t){return o=o>>>0,t||N(o,1,this.length),this[o]&128?(255-this[o]+1)*-1:this[o]};d.prototype.readInt16LE=function(o,t){o=o>>>0,t||N(o,2,this.length);var s=this[o]|this[o+1]<<8;return s&32768?s|4294901760:s};d.prototype.readInt16BE=function(o,t){o=o>>>0,t||N(o,2,this.length);var s=this[o+1]|this[o]<<8;return s&32768?s|4294901760:s};d.prototype.readInt32LE=function(o,t){return o=o>>>0,t||N(o,4,this.length),this[o]|this[o+1]<<8|this[o+2]<<16|this[o+3]<<24};d.prototype.readInt32BE=function(o,t){return o=o>>>0,t||N(o,4,this.length),this[o]<<24|this[o+1]<<16|this[o+2]<<8|this[o+3]};d.prototype.readFloatLE=function(o,t){return o=o>>>0,t||N(o,4,this.length),be.read(this,o,!0,23,4)};d.prototype.readFloatBE=function(o,t){return o=o>>>0,t||N(o,4,this.length),be.read(this,o,!1,23,4)};d.prototype.readDoubleLE=function(o,t){return o=o>>>0,t||N(o,8,this.length),be.read(this,o,!0,52,8)};d.prototype.readDoubleBE=function(o,t){return o=o>>>0,t||N(o,8,this.length),be.read(this,o,!1,52,8)};function O(e,o,t,s,c,p){if(!d.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(o>c||o<p)throw new RangeError('"value" argument is out of bounds');if(t+s>e.length)throw new RangeError("Index out of range")}d.prototype.writeUintLE=d.prototype.writeUIntLE=function(o,t,s,c){if(o=+o,t=t>>>0,s=s>>>0,!c){var p=Math.pow(2,8*s)-1;O(this,o,t,s,p,0)}var m=1,u=0;for(this[t]=o&255;++u<s&&(m*=256);)this[t+u]=o/m&255;return t+s};d.prototype.writeUintBE=d.prototype.writeUIntBE=function(o,t,s,c){if(o=+o,t=t>>>0,s=s>>>0,!c){var p=Math.pow(2,8*s)-1;O(this,o,t,s,p,0)}var m=s-1,u=1;for(this[t+m]=o&255;--m>=0&&(u*=256);)this[t+m]=o/u&255;return t+s};d.prototype.writeUint8=d.prototype.writeUInt8=function(o,t,s){return o=+o,t=t>>>0,s||O(this,o,t,1,255,0),this[t]=o&255,t+1};d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(o,t,s){return o=+o,t=t>>>0,s||O(this,o,t,2,65535,0),this[t]=o&255,this[t+1]=o>>>8,t+2};d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(o,t,s){return o=+o,t=t>>>0,s||O(this,o,t,2,65535,0),this[t]=o>>>8,this[t+1]=o&255,t+2};d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(o,t,s){return o=+o,t=t>>>0,s||O(this,o,t,4,4294967295,0),this[t+3]=o>>>24,this[t+2]=o>>>16,this[t+1]=o>>>8,this[t]=o&255,t+4};d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(o,t,s){return o=+o,t=t>>>0,s||O(this,o,t,4,4294967295,0),this[t]=o>>>24,this[t+1]=o>>>16,this[t+2]=o>>>8,this[t+3]=o&255,t+4};d.prototype.writeIntLE=function(o,t,s,c){if(o=+o,t=t>>>0,!c){var p=Math.pow(2,8*s-1);O(this,o,t,s,p-1,-p)}var m=0,u=1,l=0;for(this[t]=o&255;++m<s&&(u*=256);)o<0&&l===0&&this[t+m-1]!==0&&(l=1),this[t+m]=(o/u>>0)-l&255;return t+s};d.prototype.writeIntBE=function(o,t,s,c){if(o=+o,t=t>>>0,!c){var p=Math.pow(2,8*s-1);O(this,o,t,s,p-1,-p)}var m=s-1,u=1,l=0;for(this[t+m]=o&255;--m>=0&&(u*=256);)o<0&&l===0&&this[t+m+1]!==0&&(l=1),this[t+m]=(o/u>>0)-l&255;return t+s};d.prototype.writeInt8=function(o,t,s){return o=+o,t=t>>>0,s||O(this,o,t,1,127,-128),o<0&&(o=255+o+1),this[t]=o&255,t+1};d.prototype.writeInt16LE=function(o,t,s){return o=+o,t=t>>>0,s||O(this,o,t,2,32767,-32768),this[t]=o&255,this[t+1]=o>>>8,t+2};d.prototype.writeInt16BE=function(o,t,s){return o=+o,t=t>>>0,s||O(this,o,t,2,32767,-32768),this[t]=o>>>8,this[t+1]=o&255,t+2};d.prototype.writeInt32LE=function(o,t,s){return o=+o,t=t>>>0,s||O(this,o,t,4,2147483647,-2147483648),this[t]=o&255,this[t+1]=o>>>8,this[t+2]=o>>>16,this[t+3]=o>>>24,t+4};d.prototype.writeInt32BE=function(o,t,s){return o=+o,t=t>>>0,s||O(this,o,t,4,2147483647,-2147483648),o<0&&(o=4294967295+o+1),this[t]=o>>>24,this[t+1]=o>>>16,this[t+2]=o>>>8,this[t+3]=o&255,t+4};function At(e,o,t,s,c,p){if(t+s>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Et(e,o,t,s,c){return o=+o,t=t>>>0,c||At(e,o,t,4,34028234663852886e22,-34028234663852886e22),be.write(e,o,t,s,23,4),t+4}d.prototype.writeFloatLE=function(o,t,s){return Et(this,o,t,!0,s)};d.prototype.writeFloatBE=function(o,t,s){return Et(this,o,t,!1,s)};function Lt(e,o,t,s,c){return o=+o,t=t>>>0,c||At(e,o,t,8,17976931348623157e292,-17976931348623157e292),be.write(e,o,t,s,52,8),t+8}d.prototype.writeDoubleLE=function(o,t,s){return Lt(this,o,t,!0,s)};d.prototype.writeDoubleBE=function(o,t,s){return Lt(this,o,t,!1,s)};d.prototype.copy=function(o,t,s,c){if(!d.isBuffer(o))throw new TypeError("argument should be a Buffer");if(s||(s=0),!c&&c!==0&&(c=this.length),t>=o.length&&(t=o.length),t||(t=0),c>0&&c<s&&(c=s),c===s||o.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(s<0||s>=this.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("sourceEnd out of bounds");c>this.length&&(c=this.length),o.length-t<c-s&&(c=o.length-t+s);var p=c-s;return this===o&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,s,c):Uint8Array.prototype.set.call(o,this.subarray(s,c),t),p};d.prototype.fill=function(o,t,s,c){if(typeof o=="string"){if(typeof t=="string"?(c=t,t=0,s=this.length):typeof s=="string"&&(c=s,s=this.length),c!==void 0&&typeof c!="string")throw new TypeError("encoding must be a string");if(typeof c=="string"&&!d.isEncoding(c))throw new TypeError("Unknown encoding: "+c);if(o.length===1){var p=o.charCodeAt(0);(c==="utf8"&&p<128||c==="latin1")&&(o=p)}}else typeof o=="number"?o=o&255:typeof o=="boolean"&&(o=Number(o));if(t<0||this.length<t||this.length<s)throw new RangeError("Out of range index");if(s<=t)return this;t=t>>>0,s=s===void 0?this.length:s>>>0,o||(o=0);var m;if(typeof o=="number")for(m=t;m<s;++m)this[m]=o;else{var u=d.isBuffer(o)?o:d.from(o,c),l=u.length;if(l===0)throw new TypeError('The value "'+o+'" is invalid for argument "value"');for(m=0;m<s-t;++m)this[m+t]=u[m%l]}return this};var Ss=/[^+/0-9A-Za-z-_]/g;function ws(e){if(e=e.split("=")[0],e=e.trim().replace(Ss,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function nn(e,o){o=o||1/0;for(var t,s=e.length,c=null,p=[],m=0;m<s;++m){if(t=e.charCodeAt(m),t>55295&&t<57344){if(!c){if(t>56319){(o-=3)>-1&&p.push(239,191,189);continue}else if(m+1===s){(o-=3)>-1&&p.push(239,191,189);continue}c=t;continue}if(t<56320){(o-=3)>-1&&p.push(239,191,189),c=t;continue}t=(c-55296<<10|t-56320)+65536}else c&&(o-=3)>-1&&p.push(239,191,189);if(c=null,t<128){if((o-=1)<0)break;p.push(t)}else if(t<2048){if((o-=2)<0)break;p.push(t>>6|192,t&63|128)}else if(t<65536){if((o-=3)<0)break;p.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((o-=4)<0)break;p.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return p}function vs(e){for(var o=[],t=0;t<e.length;++t)o.push(e.charCodeAt(t)&255);return o}function Is(e,o){for(var t,s,c,p=[],m=0;m<e.length&&!((o-=2)<0);++m)t=e.charCodeAt(m),s=t>>8,c=t%256,p.push(c),p.push(s);return p}function Ct(e){return Qo.toByteArray(ws(e))}function ao(e,o,t,s){for(var c=0;c<s&&!(c+t>=o.length||c>=e.length);++c)o[c+t]=e[c];return c}function j(e,o){return e instanceof o||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===o.name}function an(e){return e!==e}var ks=function(){for(var e="0123456789abcdef",o=new Array(256),t=0;t<16;++t)for(var s=t*16,c=0;c<16;++c)o[s+c]=e[t]+e[c];return o}()});var Mt=U((_l,Ot)=>{n();var E=Ot.exports={},z,q;function sn(){throw new Error("setTimeout has not been defined")}function cn(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?z=setTimeout:z=sn}catch(e){z=sn}try{typeof clearTimeout=="function"?q=clearTimeout:q=cn}catch(e){q=cn}})();function Pt(e){if(z===setTimeout)return setTimeout(e,0);if((z===sn||!z)&&setTimeout)return z=setTimeout,setTimeout(e,0);try{return z(e,0)}catch(o){try{return z.call(null,e,0)}catch(t){return z.call(this,e,0)}}}function As(e){if(q===clearTimeout)return clearTimeout(e);if((q===cn||!q)&&clearTimeout)return q=clearTimeout,clearTimeout(e);try{return q(e)}catch(o){try{return q.call(null,e)}catch(t){return q.call(this,e)}}}var ne=[],we=!1,_e,io=-1;function Es(){!we||!_e||(we=!1,_e.length?ne=_e.concat(ne):io=-1,ne.length&&Dt())}function Dt(){if(!we){var e=Pt(Es);we=!0;for(var o=ne.length;o;){for(_e=ne,ne=[];++io<o;)_e&&_e[io].run();io=-1,o=ne.length}_e=null,we=!1,As(e)}}E.nextTick=function(e){var o=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)o[t-1]=arguments[t];ne.push(new Rt(e,o)),ne.length===1&&!we&&Pt(Dt)};function Rt(e,o){this.fun=e,this.array=o}Rt.prototype.run=function(){this.fun.apply(null,this.array)};E.title="browser";E.browser=!0;E.env={};E.argv=[];E.version="";E.versions={};function te(){}E.on=te;E.addListener=te;E.once=te;E.off=te;E.removeListener=te;E.removeAllListeners=te;E.emit=te;E.prependListener=te;E.prependOnceListener=te;E.listeners=function(e){return[]};E.binding=function(e){throw new Error("process.binding is not supported")};E.cwd=function(){return"/"};E.chdir=function(e){throw new Error("process.chdir is not supported")};E.umask=function(){return 0}});var a,i,Ls,r,n=T(()=>{a=f(Nt()),i=f(Mt()),Ls=function(e){function o(){var s=this||self;return delete e.prototype.__magic__,s}if(typeof globalThis=="object")return globalThis;if(this)return o();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:o});var t=__magic__;return t}(Object),r=Ls});var A=T(()=>{"use strict";n()});function Ie(e){return e!=null&&(Gs(e)||Gt(e))}function ke(e){return e!=null&&(Ws(e)||js(e))}function Ae(e){return e!=null&&(Vs(e)||zs(e))}function Ut(e){return e!=null&&($s(e)||qs(e))}function dn(e){return e!=null&&Hs(e)}function Gs(e){return e!=null&&Ns.includes(e)}function Ws(e){return e!=null&&Ps.includes(e)}function Vs(e){return e!=null&&Ds.includes(e)}function $s(e){return e!=null&&Rs.includes(e)}function Hs(e){return e!=null&&Os.includes(e)}function Gt(e){return e!=null&&Ms.includes(e)}function js(e){return e!=null&&Bs.includes(e)}function zs(e){return e!=null&&Fs.includes(e)}function qs(e){return e!=null&&Us.includes(e)}var Ns,Ps,Ds,Rs,Os,Ms,Bs,Fs,Us,ue=T(()=>{"use strict";n();A();Ns=["sent"],Ps=["success"],Ds=["fail","cancelled","timedOut"],Rs=["invalid"],Os=["timedOut"],Ms=["pending"],Bs=["success"],Fs=["fail","invalid"],Us=["not executed"]});var ge=T(()=>{"use strict";n()});var ln=T(()=>{"use strict";n()});var Wt=T(()=>{"use strict";n()});var Vt=T(()=>{"use strict";n()});var $t=T(()=>{"use strict";n()});var Ht=T(()=>{"use strict";n()});var M=T(()=>{"use strict";n()});var jt=T(()=>{"use strict";n()});var zt=T(()=>{"use strict";n()});var qt=T(()=>{"use strict";n()});var C=T(()=>{"use strict";n();ln();Wt();Vt();A();$t();Ht();M();jt();zt();qt()});var Ee,Kt,Bl,Xt,Fl,Yt,Ul,Gl,Ks,Ue=T(()=>{"use strict";n();C();Ee={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:Kt,egldLabel:Bl}=Ee["devnet"],{chainId:Xt,egldLabel:Fl}=Ee["testnet"],{chainId:Yt,egldLabel:Ul}=Ee["mainnet"],Gl={["devnet"]:Kt,["testnet"]:Xt,["mainnet"]:Yt},Ks={[Kt]:"devnet",[Xt]:"testnet",[Yt]:"mainnet"}});var _n=T(()=>{"use strict";n()});var Zt=T(()=>{"use strict";n()});var so,un=T(()=>{"use strict";n();so="transaction-status-toast-id"});var K,Jt=T(()=>{"use strict";n();K=require("@multiversx/sdk-web-wallet-provider")});var Qt=T(()=>{"use strict";n()});var er=T(()=>{"use strict";n()});var Ge,co,or,po,nr,Le,w=T(()=>{"use strict";n();ge();Ue();_n();Zt();un();Jt();Qt();er();Ge=5e4,co=1e9,or=1,po="logout",nr="login",Le="0"});var We,mo=T(()=>{"use strict";n();We=()=>Date.now()/1e3});var tr=T(()=>{"use strict";n()});var rr=T(()=>{"use strict";n()});var gn=T(()=>{"use strict";n();mo();tr();rr()});var Tn={};me(Tn,{getItem:()=>Ys,localStorageKeys:()=>pe,removeItem:()=>Zs,setItem:()=>Xs});var pe,fn,Xs,Ys,Zs,Ce=T(()=>{"use strict";n();gn();pe={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},fn=typeof localStorage!="undefined",Xs=({key:e,data:o,expires:t})=>{!fn||localStorage.setItem(String(e),JSON.stringify({expires:t,data:o}))},Ys=e=>{if(!fn)return;let o=localStorage.getItem(String(e));if(!o)return null;let t=JSON.parse(o);return!t||!t.hasOwnProperty("expires")||!t.hasOwnProperty("data")?null:We()>=t.expires?(localStorage.removeItem(String(e)),null):t.data},Zs=e=>{!fn||localStorage.removeItem(String(e))}});var hn={};me(hn,{clear:()=>cr,getItem:()=>ir,removeItem:()=>sr,setItem:()=>ar,storage:()=>Js});var ar,ir,sr,cr,Js,pr=T(()=>{"use strict";n();ar=({key:e,data:o,expires:t})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:t,data:o}))},ir=e=>{let o=sessionStorage.getItem(String(e));if(!o)return null;let t=JSON.parse(o);return!t||!t.hasOwnProperty("expires")||!t.hasOwnProperty("data")?null:Date.now()>=t.expires?(sessionStorage.removeItem(String(e)),null):t.data},sr=e=>sessionStorage.removeItem(String(e)),cr=()=>sessionStorage.clear(),Js={setItem:ar,getItem:ir,removeItem:sr,clear:cr}});var fe,Ne=T(()=>{"use strict";n();Ce();pr();fe={session:hn,local:Tn}});var xn,L,X,P=T(()=>{"use strict";n();xn=require("@reduxjs/toolkit");w();L=(0,xn.createAction)(po),X=(0,xn.createAction)(nr,e=>({payload:e}))});var bn,mr,dr,lo,yn,lr,Sn,y_,wn,b_,Qs,ec,S_,w_,v_,oc,nc,_o,uo=T(()=>{"use strict";n();bn=require("@multiversx/sdk-core"),mr=require("@reduxjs/toolkit"),dr=require("redux-persist");w();Ne();Ce();P();lo={balance:"...",address:"",isGuarded:!1,nonce:0,txCount:0,scrCount:0,claimableRewards:Le},yn={address:"",websocketEvent:null,websocketBatchEvent:null,accounts:{"":lo},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},lr=(0,mr.createSlice)({name:"accountInfoSlice",initialState:yn,reducers:{setAddress:(e,o)=>{let t=o.payload;e.address=t,e.publicKey=new bn.Address(t).hex()},setAccount:(e,o)=>{let t=e.address===o.payload.address;e.accounts={[e.address]:t?o.payload:lo},e.shard=o.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,o)=>{let{address:t}=e;e.accounts[t].nonce=o.payload},setAccountShard:(e,o)=>{e.shard=o.payload},setLedgerAccount:(e,o)=>{e.ledgerAccount=o.payload},updateLedgerAccount:(e,o)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=o.payload.index,e.ledgerAccount.address=o.payload.address)},setWalletConnectAccount:(e,o)=>{e.walletConnectAccount=o.payload},setIsAccountLoading:(e,o)=>{e.isAccountLoading=o.payload,e.accountLoadingError=null},setAccountLoadingError:(e,o)=>{e.accountLoadingError=o.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,o)=>{e.websocketEvent={timestamp:Date.now(),message:o.payload}},setWebsocketBatchEvent:(e,o)=>{e.websocketBatchEvent={timestamp:Date.now(),data:o.payload}}},extraReducers:e=>{e.addCase(L,()=>(fe.local.removeItem(pe.loginExpiresAt),yn)),e.addCase(X,(o,t)=>{let{address:s}=t.payload;o.address=s,o.publicKey=new bn.Address(s).hex()}),e.addCase(dr.REHYDRATE,(o,t)=>{var h;if(!((h=t.payload)!=null&&h.account))return;let{account:s}=t.payload,{address:c,shard:p,accounts:m,publicKey:u}=s;o.address=c,o.shard=p;let l=m&&c in m;o.accounts=l?m:yn.accounts,o.publicKey=u})}}),{setAccount:Sn,setAddress:y_,setAccountNonce:wn,setAccountShard:b_,setLedgerAccount:Qs,updateLedgerAccount:ec,setWalletConnectAccount:S_,setIsAccountLoading:w_,setAccountLoadingError:v_,setWebsocketEvent:oc,setWebsocketBatchEvent:nc}=lr.actions,_o=lr.reducer});function Ve(){return new Date().setHours(new Date().getHours()+24)}function $e(e){fe.local.setItem({key:pe.loginExpiresAt,data:e,expires:e})}var vn=T(()=>{"use strict";n();Ne();Ce()});var ur,_r,gr,R_,fr,tc,rc,O_,ac,Tr,M_,go,fo=T(()=>{"use strict";n();ur=require("@reduxjs/toolkit");vn();A();P();_r={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},gr=(0,ur.createSlice)({name:"loginInfoSlice",initialState:_r,reducers:{setLoginMethod:(e,o)=>{e.loginMethod=o.payload},setTokenLogin:(e,o)=>{e.tokenLogin=o.payload},setTokenLoginSignature:(e,o)=>{(e==null?void 0:e.tokenLogin)!=null&&(e.tokenLogin.signature=o.payload)},setWalletLogin:(e,o)=>{e.walletLogin=o.payload},setWalletConnectLogin:(e,o)=>{e.walletConnectLogin=o.payload},setLedgerLogin:(e,o)=>{e.ledgerLogin=o.payload},invalidateLoginSession:e=>{e.isLoginSessionInvalid=!0},setLogoutRoute:(e,o)=>{e.logoutRoute=o.payload}},extraReducers:e=>{e.addCase(L,()=>_r),e.addCase(X,(o,t)=>{o.loginMethod=t.payload.loginMethod,$e(Ve())})}}),{setLoginMethod:R_,setWalletConnectLogin:fr,setLedgerLogin:tc,setTokenLogin:rc,setTokenLoginSignature:O_,setWalletLogin:ac,invalidateLoginSession:Tr,setLogoutRoute:M_}=gr.actions,go=gr.reducer});var xr,hr,yr,G_,ic,W_,sc,To,ho=T(()=>{"use strict";n();xr=require("@reduxjs/toolkit");P();hr={},yr=(0,xr.createSlice)({name:"modalsSlice",initialState:hr,reducers:{setTxSubmittedModal:(e,o)=>{e.txSubmittedModal=o.payload},setNotificationModal:(e,o)=>{e.notificationModal=o.payload},clearTxSubmittedModal:e=>{e.txSubmittedModal=void 0},clearNotificationModal:e=>{e.notificationModal=void 0}},extraReducers:e=>{e.addCase(L,()=>hr)}}),{setTxSubmittedModal:G_,setNotificationModal:ic,clearTxSubmittedModal:W_,clearNotificationModal:sc}=yr.actions,To=yr.reducer});var He=T(()=>{"use strict";n()});var Sr=T(()=>{"use strict";n();He()});function In(e){return e[Math.floor(Math.random()*e.length)]}var wr=T(()=>{"use strict";n()});var kn=T(()=>{"use strict";n();_n()});var Te=T(()=>{"use strict";n();Sr();wr();kn()});var vr,Ir,An,cc,kr,nu,tu,xo,yo=T(()=>{"use strict";n();vr=require("@reduxjs/toolkit"),Ir=f(require("lodash.omit"));Te();An={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},cc={network:An,chainID:"-1"},kr=(0,vr.createSlice)({name:"appConfig",initialState:cc,reducers:{initializeNetworkConfig:(e,o)=>{let t=In(o.payload.walletConnectBridgeAddresses),s=In(o.payload.walletConnectV2RelayAddresses),c=(0,Ir.default)(o.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=S(g(g({},e.network),c),{walletConnectBridgeAddress:t,walletConnectV2RelayAddress:s})},setChainID:(e,o)=>{e.chainID=o.payload}}}),{initializeNetworkConfig:nu,setChainID:tu}=kr.actions,xo=kr.reducer});var Ar,En,Er,pu,mu,du,bo,So=T(()=>{"use strict";n();Ar=require("@reduxjs/toolkit");C();P();En={isSigning:!1,signedSessions:{}},Er=(0,Ar.createSlice)({name:"signedMessageInfoSliceState",initialState:En,reducers:{setSignSession:(e,o)=>{let{sessionId:t,signedSession:s,errorMessage:c}=o.payload;c&&(e.errorMessage=c),e.isSigning=s.status==="pending",e.signedSessions[t]=s},setSignSessionState:(e,o)=>g(g({},e),o.payload),clearSignedMessageInfo:()=>En},extraReducers:e=>{e.addCase(L,()=>En)}}),{setSignSession:pu,clearSignedMessageInfo:mu,setSignSessionState:du}=Er.actions,bo=Er.reducer});var Cr,Nr,Lr,Pr,pc,Ln,xu,mc,yu,bu,wo,vo=T(()=>{"use strict";n();Cr=require("@reduxjs/toolkit"),Nr=require("redux-persist");un();C();mo();P();Lr={customToasts:[],transactionToasts:[],failTransactionToast:null},Pr=(0,Cr.createSlice)({name:"toastsSlice",initialState:Lr,reducers:{addCustomToast:(e,o)=>{e.customToasts.push(S(g({},o.payload),{type:"custom",toastId:o.payload.toastId||`custom-toast-${e.customToasts.length+1}`}))},removeCustomToast:(e,o)=>{e.customToasts=e.customToasts.filter(t=>t.toastId!==o.payload)},addTransactionToast:(e,o)=>{e.transactionToasts.push({type:"transaction",startTimestamp:We(),toastId:o.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,o)=>{e.transactionToasts=e.transactionToasts.filter(t=>t.toastId!==o.payload)},addFailTransactionToast:(e,o)=>{e.failTransactionToast=S(g({},o.payload),{toastId:so})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(L,()=>Lr),e.addCase(Nr.REHYDRATE,(o,t)=>{var c,p;let s=(p=(c=t.customToasts)==null?void 0:c.filter(m=>!("component"in m)))!=null?p:[];o.customToasts=s})}}),{addCustomToast:pc,removeCustomToast:Ln,addTransactionToast:xu,removeTransactionToast:mc,addFailTransactionToast:yu,removeFailTransactionToast:bu}=Pr.actions,wo=Pr.reducer});var Dr,Nn,Pn,Dn,dc,Cn,Rr,Iu,lc,Rn,Io,ko=T(()=>{"use strict";n();Dr=require("@reduxjs/toolkit");P();Nn="Transaction failed",Pn="Transaction successful",Dn="Processing transaction",dc="Transaction submitted",Cn={},Rr=(0,Dr.createSlice)({name:"transactionsInfo",initialState:Cn,reducers:{setTransactionsDisplayInfo(e,o){let{sessionId:t,transactionsDisplayInfo:s}=o.payload;t!=null&&(e[t]={errorMessage:(s==null?void 0:s.errorMessage)||Nn,successMessage:(s==null?void 0:s.successMessage)||Pn,processingMessage:(s==null?void 0:s.processingMessage)||Dn,submittedMessage:(s==null?void 0:s.submittedMessage)||dc,transactionDuration:s==null?void 0:s.transactionDuration})},clearTransactionsInfoForSessionId(e,o){o.payload!=null&&delete e[o.payload]},clearTransactionsInfo:()=>Cn},extraReducers:e=>{e.addCase(L,()=>Cn)}}),{clearTransactionsInfo:Iu,setTransactionsDisplayInfo:lc,clearTransactionsInfoForSessionId:Rn}=Rr.actions,Io=Rr.reducer});var Or,Mr,je,_c,Br,Fr,Ur,uc,Ao,gc,fc,Pu,Tc,ze,On,Eo,Lo=T(()=>{"use strict";n();Or=require("@reduxjs/toolkit"),Mr=require("redux-persist");A();ue();P();je={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},_c={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Br=(0,Or.createSlice)({name:"transactionsSlice",initialState:je,reducers:{moveTransactionsToSignedState:(e,o)=>{var h,b;let{sessionId:t,transactions:s,errorMessage:c,status:p,redirectRoute:m,customTransactionInformation:u={}}=o.payload,l=((h=e.customTransactionInformationForSessionId)==null?void 0:h[t])||_c;e.signedTransactions[t]={transactions:s,status:p,errorMessage:c,redirectRoute:m,customTransactionInformation:g(g({},l),u)},((b=e==null?void 0:e.transactionsToSign)==null?void 0:b.sessionId)===t&&(e.transactionsToSign=je.transactionsToSign)},clearSignedTransaction:(e,o)=>{e.signedTransactions[o.payload]&&delete e.signedTransactions[o.payload]},clearTransactionToSign:e=>{e!=null&&e.transactionsToSign&&(e.transactionsToSign=null)},updateSignedTransaction:(e,o)=>{e.signedTransactions=g(g({},e.signedTransactions),o.payload)},updateSignedTransactions:(e,o)=>{let{sessionId:t,status:s,errorMessage:c,transactions:p}=o.payload;e.signedTransactions[t]!=null&&(e.signedTransactions[t].status=s,c!=null&&(e.signedTransactions[t].errorMessage=c),p!=null&&(e.signedTransactions[t].transactions=p))},updateSignedTransactionStatus:(e,o)=>{var l,h,b,y,R,D,Q,oo;let{sessionId:t,status:s,errorMessage:c,transactionHash:p,inTransit:m}=o.payload,u=(h=(l=e.signedTransactions)==null?void 0:l[t])==null?void 0:h.transactions;if(u!=null){e.signedTransactions[t].transactions=u.map(ee=>ee.hash===p?S(g({},ee),{status:s,errorMessage:c,inTransit:m}):ee);let Vi=(y=(b=e.signedTransactions[t])==null?void 0:b.transactions)==null?void 0:y.every(ee=>ke(ee.status)),$i=(D=(R=e.signedTransactions[t])==null?void 0:R.transactions)==null?void 0:D.every(ee=>Ae(ee.status)),Hi=(oo=(Q=e.signedTransactions[t])==null?void 0:Q.transactions)==null?void 0:oo.every(ee=>Ut(ee.status));Vi&&(e.signedTransactions[t].status="success"),$i&&(e.signedTransactions[t].status="fail"),Hi&&(e.signedTransactions[t].status="invalid")}},setTransactionsToSign:(e,o)=>{e.transactionsToSign=o.payload;let{sessionId:t,customTransactionInformation:s}=o.payload;e.customTransactionInformationForSessionId[t]=s,e.signTransactionsError=null},clearAllTransactionsToSign:e=>{e.transactionsToSign=je.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=je.signedTransactions},setSignTransactionsError:(e,o)=>{e.signTransactionsError=o.payload},setSignTransactionsCancelMessage:(e,o)=>{e.signTransactionsCancelMessage=o.payload}},extraReducers:e=>{e.addCase(L,()=>je),e.addCase(Mr.REHYDRATE,(o,t)=>{var m;if(o.signTransactionsCancelMessage=null,!((m=t.payload)!=null&&m.transactions))return;let{signedTransactions:s,customTransactionInformationForSessionId:c}=t.payload.transactions,p=Object.entries(s).reduce((u,[l,h])=>{let b=new Date(l),y=new Date;return y.setHours(y.getHours()+5),y-b>0||(u[l]=h),u},{});c!=null&&(o.customTransactionInformationForSessionId=c),s!=null&&(o.signedTransactions=p)})}}),{updateSignedTransactionStatus:Fr,updateSignedTransactions:Ur,setTransactionsToSign:uc,clearAllTransactionsToSign:Ao,clearAllSignedTransactions:gc,clearSignedTransaction:fc,clearTransactionToSign:Pu,setSignTransactionsError:Tc,setSignTransactionsCancelMessage:ze,moveTransactionsToSignedState:On}=Br.actions,Eo=Br.reducer});var Gr,Mn,Wr,Mu,Bu,hc,Fu,Co,No=T(()=>{"use strict";n();Gr=require("@reduxjs/toolkit");P();Mn={},Wr=(0,Gr.createSlice)({name:"batchTransactionsSlice",initialState:Mn,reducers:{setBatchTransactions:(e,o)=>{e[o.payload.id]=o.payload},updateBatchTransactions:(e,o)=>{e[o.payload.id]=o.payload},clearBatchTransactions:(e,o)=>{delete e[o.payload.batchId]},clearAllBatchTransactions:()=>Mn},extraReducers:e=>{e.addCase(L,()=>Mn)}}),{setBatchTransactions:Mu,updateBatchTransactions:Bu,clearBatchTransactions:hc,clearAllBatchTransactions:Fu}=Wr.actions,Co=Wr.reducer});var $r,Vr,Hr,Vu,jr,Bn=T(()=>{"use strict";n();$r=require("@reduxjs/toolkit");P();Vr={},Hr=(0,$r.createSlice)({name:"dappConfigSlice",initialState:Vr,reducers:{setDappConfig:(e,o)=>{if(e&&o.payload){let{logoutRoute:t,shouldUseWebViewProvider:s}=o.payload;e.logoutRoute=t,e.shouldUseWebViewProvider=s}else e=o.payload}},extraReducers:e=>{e.addCase(L,()=>Vr)}}),{setDappConfig:Vu}=Hr.actions,jr=Hr.reducer});var k=T(()=>{"use strict";n();uo();fo();ho();yo();So();vo();ko();Lo();No();Bn()});var Vn=T(()=>{"use strict";n()});var ia,aa,sa,gf,ff,Tf,hf,xf,yf,ca,pa=T(()=>{"use strict";n();ia=require("@reduxjs/toolkit");P();aa={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},sa=(0,ia.createSlice)({name:"dappModalsSlice",initialState:aa,reducers:{setDappModalVisibility:(e,o)=>{e.visible=o.payload},setDappModalHeaderVisibility:(e,o)=>{e.modal.showHeader=o.payload},setDappModalFooterVisibility:(e,o)=>{e.modal.showFooter=o.payload},setDappModalHeaderText:(e,o)=>{e.modal.headerText=o.payload},setDappModalFooterText:(e,o)=>{e.modal.footerText=o.payload},setDappModalConfig:(e,o)=>{e.modal=g({},o.payload)}},extraReducers:e=>{e.addCase(L,()=>aa)}}),{setDappModalVisibility:gf,setDappModalHeaderVisibility:ff,setDappModalFooterVisibility:Tf,setDappModalHeaderText:hf,setDappModalFooterText:xf,setDappModalConfig:yf}=sa.actions,ca=sa.reducer});var ma,Fc,Uc,he,Fo=T(()=>{"use strict";n();ma=require("@reduxjs/toolkit");Vn();uo();No();Bn();pa();fo();ho();yo();So();vo();ko();Lo();Fc={["account"]:_o,["dappModal"]:ca,["dappConfig"]:jr,["loginInfo"]:go,["modals"]:To,["networkConfig"]:xo,["signedMessageInfo"]:bo,["toasts"]:wo,["transactionsInfo"]:Io,["transactions"]:Eo,["batchTransactions"]:Co},Uc=(e={})=>(0,ma.combineReducers)(g(g({},Fc),e)),he=Uc});var ua={};me(ua,{default:()=>op,sessionStorageReducers:()=>$n});function ae(e,o=[]){return{key:e,version:1,storage:la.default,blacklist:o}}var B,da,la,Gc,Ke,Wc,Vc,$c,Hc,jc,zc,qc,Kc,Xc,Yc,_a,Zc,$n,Jc,Qc,ep,op,ga=T(()=>{"use strict";n();B=require("redux-persist"),da=f(require("redux-persist/lib/storage")),la=f(require("redux-persist/lib/storage/session"));Fo();k();uo();No();fo();ho();yo();So();vo();ko();Lo();Vn();Gc={persistReducersStorageType:"localStorage"},Ke={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},Wc=ae(Ke["account"]),Vc=ae(Ke["loginInfo"]),$c=ae(Ke["modals"]),Hc=ae(Ke["networkConfig"]),jc={2:e=>S(g({},e),{networkConfig:An})};zc=ae("sdk-dapp-transactionsInfo"),qc=ae("sdk-dapp-transactions",["transactionsToSign"]),Kc=ae("sdk-dapp-batchTransactions",["batchTransactions"]),Xc=ae("sdk-dapp-toasts"),Yc=ae("sdk-dapp-signedMessageInfo"),_a={key:"sdk-dapp-store",version:2,storage:da.default,whitelist:Object.keys(Ke),migrate:(0,B.createMigrate)(jc,{debug:!1})},Zc=S(g({},_a),{whitelist:[]}),$n={["toasts"]:(0,B.persistReducer)(Xc,wo),["transactions"]:(0,B.persistReducer)(qc,Eo),["transactionsInfo"]:(0,B.persistReducer)(zc,Io),["batchTransactions"]:(0,B.persistReducer)(Kc,Co),["signedMessageInfo"]:(0,B.persistReducer)(Yc,bo)},Jc=S(g({},$n),{["account"]:(0,B.persistReducer)(Wc,_o),["loginInfo"]:(0,B.persistReducer)(Vc,go),["modals"]:(0,B.persistReducer)($c,To),["networkConfig"]:(0,B.persistReducer)(Hc,xo)}),Qc=Gc.persistReducersStorageType==="localStorage",ep=Qc?(0,B.persistReducer)(_a,he($n)):(0,B.persistReducer)(Zc,he(Jc)),op=ep});var fa={};me(fa,{default:()=>np});var np,Ta=T(()=>{"use strict";n();Fo();np=he()});var ha={};me(ha,{default:()=>rp});var V,tp,rp,xa=T(()=>{"use strict";n();V=require("redux-persist"),tp=[V.FLUSH,V.REHYDRATE,V.PAUSE,V.PERSIST,V.PURGE,V.REGISTER],rp=tp});var Sa={};me(Sa,{default:()=>ba});function ba(e){return(0,ya.persistStore)(e)}var ya,wa=T(()=>{"use strict";n();ya=require("redux-persist")});var ui=U((kC,_i)=>{n();var ed=typeof r=="object"&&r&&r.Object===Object&&r;_i.exports=ed});var fi=U((AC,gi)=>{n();var od=ui(),nd=typeof self=="object"&&self&&self.Object===Object&&self,td=od||nd||Function("return this")();gi.exports=td});var it=U((EC,Ti)=>{n();var rd=fi(),ad=rd.Symbol;Ti.exports=ad});var bi=U((LC,yi)=>{n();var hi=it(),xi=Object.prototype,id=xi.hasOwnProperty,sd=xi.toString,Je=hi?hi.toStringTag:void 0;function cd(e){var o=id.call(e,Je),t=e[Je];try{e[Je]=void 0;var s=!0}catch(p){}var c=sd.call(e);return s&&(o?e[Je]=t:delete e[Je]),c}yi.exports=cd});var wi=U((CC,Si)=>{n();var pd=Object.prototype,md=pd.toString;function dd(e){return md.call(e)}Si.exports=dd});var Ai=U((NC,ki)=>{n();var vi=it(),ld=bi(),_d=wi(),ud="[object Null]",gd="[object Undefined]",Ii=vi?vi.toStringTag:void 0;function fd(e){return e==null?e===void 0?gd:ud:Ii&&Ii in Object(e)?ld(e):_d(e)}ki.exports=fd});var Li=U((PC,Ei)=>{n();var Td=Array.isArray;Ei.exports=Td});var Ni=U((DC,Ci)=>{n();function hd(e){return e!=null&&typeof e=="object"}Ci.exports=hd});var Di=U((RC,Pi)=>{n();var xd=Ai(),yd=Li(),bd=Ni(),Sd="[object String]";function wd(e){return typeof e=="string"||!yd(e)&&bd(e)&&xd(e)==Sd}Pi.exports=wd});var cl={};me(cl,{useMemoizedCloseButton:()=>sl});module.exports=Fe(cl);n();var eo=f(require("react"));n();n();var pn=f(require("react")),Bt=require("@fortawesome/free-solid-svg-icons"),Ft=require("@fortawesome/react-fontawesome"),mn=({className:e="dapp-default-toast-delete-button",onClick:o})=>pn.default.createElement("button",{type:"button",className:e,onClick:o,"data-testid":"deleteToastButton"},pn.default.createElement(Ft.FontAwesomeIcon,{icon:Bt.faTimes,size:"xs"}));n();var el=f(require("react")),ol=require("@fortawesome/react-fontawesome"),nl=f(require("classnames"));n();var Cs=`.dapp-core-component__main__link-style {
2
2
  color: #1392ff;
3
3
  }
4
4
 
@@ -30,7 +30,7 @@
30
30
  100% {
31
31
  width: 0%;
32
32
  }
33
- }`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(im));var Qe={toasts:"dapp-core-component__transactionsToastList-styles__toasts",toastWrapper:"dapp-core-component__transactionsToastList-styles__toastWrapper",loader:"dapp-core-component__transactionsToastList-styles__loader"};n();n();var oa=require("react"),na=({duration:e,onDelete:o})=>{(0,oa.useEffect)(()=>{let t;return e&&(t=setTimeout(o,e)),()=>{clearTimeout(t)}},[e])};n();var Wo=g(require("react"));n();n();var _t=g(require("react")),ta=require("@fortawesome/free-solid-svg-icons"),ra=require("@fortawesome/react-fontawesome"),ut=({className:e="dapp-default-toast-delete-button",onClick:o})=>_t.default.createElement("button",{type:"button",className:e,onClick:o},_t.default.createElement(ra.FontAwesomeIcon,{icon:ta.faTimes,size:"xs"}));n();var mu=g(require("react")),lu=require("@fortawesome/react-fontawesome"),du=g(require("classnames"));n();var sm=`.dapp-core-component__main__link-style {
33
+ }`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(im));var Qe={toasts:"dapp-core-component__transactionsToastList-styles__toasts",toastWrapper:"dapp-core-component__transactionsToastList-styles__toastWrapper",loader:"dapp-core-component__transactionsToastList-styles__loader"};n();n();var oa=require("react"),na=({duration:e,onDelete:o})=>{(0,oa.useEffect)(()=>{let t;return e&&(t=setTimeout(o,e)),()=>{clearTimeout(t)}},[e])};n();var Wo=g(require("react"));n();n();var _t=g(require("react")),ta=require("@fortawesome/free-solid-svg-icons"),ra=require("@fortawesome/react-fontawesome"),ut=({className:e="dapp-default-toast-delete-button",onClick:o})=>_t.default.createElement("button",{type:"button",className:e,onClick:o,"data-testid":"deleteToastButton"},_t.default.createElement(ra.FontAwesomeIcon,{icon:ta.faTimes,size:"xs"}));n();var mu=g(require("react")),lu=require("@fortawesome/react-fontawesome"),du=g(require("classnames"));n();var sm=`.dapp-core-component__main__link-style {
34
34
  color: #1392ff;
35
35
  }
36
36
 
@@ -2876,7 +2876,7 @@ a > .dapp-core-component__trim-styles__trim span.dapp-core-component__trim-style
2876
2876
  .dapp-core-component__trim-styles__table .dapp-core-component__trim-styles__trim-size-xl .dapp-core-component__trim-styles__trim {
2877
2877
  max-width: 13rem;
2878
2878
  }
2879
- }`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(au));var fo={trim:"dapp-core-component__trim-styles__trim",overflow:"dapp-core-component__trim-styles__overflow",ellipsis:"dapp-core-component__trim-styles__ellipsis",left:"dapp-core-component__trim-styles__left",right:"dapp-core-component__trim-styles__right","hidden-text-ref":"dapp-core-component__trim-styles__hidden-text-ref",hiddenTextRef:"dapp-core-component__trim-styles__hidden-text-ref","trim-wrapper":"dapp-core-component__trim-styles__trim-wrapper",trimWrapper:"dapp-core-component__trim-styles__trim-wrapper","text-primary":"dapp-core-component__trim-styles__text-primary",textPrimary:"dapp-core-component__trim-styles__text-primary",table:"dapp-core-component__trim-styles__table","trim-only-sm":"dapp-core-component__trim-styles__trim-only-sm",trimOnlySm:"dapp-core-component__trim-styles__trim-only-sm","trim-fs-sm":"dapp-core-component__trim-styles__trim-fs-sm",trimFsSm:"dapp-core-component__trim-styles__trim-fs-sm","trim-size-xl":"dapp-core-component__trim-styles__trim-size-xl",trimSizeXl:"dapp-core-component__trim-styles__trim-size-xl"};var $c=({text:e,className:o="dapp-trim",dataTestId:t="trim-text-component",color:r})=>{let[c,p]=(0,R.useState)(0),[m,d]=(0,R.useState)(!1),_=(0,R.useRef)(document==null?void 0:document.createElement("span")),f=(0,R.useRef)(document==null?void 0:document.createElement("span")),y=Oc(c,300),h=()=>{if(_.current&&f.current){let C=f.current.offsetWidth-_.current.offsetWidth;d(C>1)}},v=()=>{p(c+1)};return(0,R.useEffect)(()=>(window==null||window.addEventListener("resize",v),()=>{window==null||window.removeEventListener("resize",v)})),(0,R.useEffect)(()=>{h()},[y]),R.default.createElement("span",{ref:_,className:(0,Vc.default)(fo.trim,r,o,{overflow:m}),"data-testid":t},R.default.createElement("span",{ref:f,className:fo.hiddenTextRef},e),m?R.default.createElement(R.default.Fragment,null,R.default.createElement("span",{className:fo.left},R.default.createElement("span",null,String(e).substring(0,Math.floor(e.length/2)))),R.default.createElement("span",{className:fo.ellipsis},va),R.default.createElement("span",{className:fo.right},R.default.createElement("span",null,String(e).substring(Math.ceil(e.length/2))))):R.default.createElement("span",null,e))};var iu={icon:To.faCheck},br={icon:To.faTimes},su={icon:To.faCircleNotch},cu={pending:su,success:iu,fail:br,invalid:br,timedOut:br},wr=({className:e,hash:o,status:t,iconSrc:r,isTimedOut:c})=>{var d;let p=t?cu[t]:null,m=(d=r==null?void 0:r.icon)!=null?d:p==null?void 0:p.icon;return qe.default.createElement("div",{className:(0,Sr.default)(ge.container,e),key:o},!c&&m!=null&&qe.default.createElement(Hc.FontAwesomeIcon,{icon:m,className:(0,Sr.default)(ge.icon,{"fa-spin slow-spin":t==="pending"})}),qe.default.createElement("span",{className:ge.trim},qe.default.createElement($c,{text:o})),qe.default.createElement(qs,{text:o}),qe.default.createElement(Le,{page:`/${Q}/${o}`,className:w.ml2}))};n();var pu=`.dapp-core-component__transactionToast-styles__content {
2879
+ }`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(au));var fo={trim:"dapp-core-component__trim-styles__trim",overflow:"dapp-core-component__trim-styles__overflow",ellipsis:"dapp-core-component__trim-styles__ellipsis",left:"dapp-core-component__trim-styles__left",right:"dapp-core-component__trim-styles__right","hidden-text-ref":"dapp-core-component__trim-styles__hidden-text-ref",hiddenTextRef:"dapp-core-component__trim-styles__hidden-text-ref","trim-wrapper":"dapp-core-component__trim-styles__trim-wrapper",trimWrapper:"dapp-core-component__trim-styles__trim-wrapper","text-primary":"dapp-core-component__trim-styles__text-primary",textPrimary:"dapp-core-component__trim-styles__text-primary",table:"dapp-core-component__trim-styles__table","trim-only-sm":"dapp-core-component__trim-styles__trim-only-sm",trimOnlySm:"dapp-core-component__trim-styles__trim-only-sm","trim-fs-sm":"dapp-core-component__trim-styles__trim-fs-sm",trimFsSm:"dapp-core-component__trim-styles__trim-fs-sm","trim-size-xl":"dapp-core-component__trim-styles__trim-size-xl",trimSizeXl:"dapp-core-component__trim-styles__trim-size-xl"};var $c=({text:e,className:o="dapp-trim",dataTestId:t="trim-text-component",color:r})=>{let[c,p]=(0,R.useState)(0),[m,d]=(0,R.useState)(!1),_=(0,R.useRef)(document==null?void 0:document.createElement("span")),f=(0,R.useRef)(document==null?void 0:document.createElement("span")),y=Oc(c,300),h=()=>{if(_.current&&f.current){let C=f.current.offsetWidth-_.current.offsetWidth;d(C>1)}},v=()=>{p(c+1)};return(0,R.useEffect)(()=>(window==null||window.addEventListener("resize",v),()=>{window==null||window.removeEventListener("resize",v)})),(0,R.useEffect)(()=>{h()},[y]),R.default.createElement("span",{ref:_,className:(0,Vc.default)(fo.trim,r,o,{overflow:m}),"data-testid":t},R.default.createElement("span",{ref:f,className:fo.hiddenTextRef},e),m?R.default.createElement(R.default.Fragment,null,R.default.createElement("span",{className:fo.left},R.default.createElement("span",null,String(e).substring(0,Math.floor(e.length/2)))),R.default.createElement("span",{className:fo.ellipsis},va),R.default.createElement("span",{className:fo.right},R.default.createElement("span",null,String(e).substring(Math.ceil(e.length/2))))):R.default.createElement("span",null,e))};var iu={icon:To.faCheck},br={icon:To.faTimes},su={icon:To.faCircleNotch},cu={pending:su,success:iu,fail:br,invalid:br,timedOut:br},wr=({className:e,hash:o,status:t,iconSrc:r,isTimedOut:c})=>{var d;let p=t?cu[t]:null,m=(d=r==null?void 0:r.icon)!=null?d:p==null?void 0:p.icon;return qe.default.createElement("div",{className:(0,Sr.default)(ge.container,e),key:o,"data-testid":"transactionDetailsToastBody"},!c&&m!=null&&qe.default.createElement(Hc.FontAwesomeIcon,{icon:m,className:(0,Sr.default)(ge.icon,{"fa-spin slow-spin":t==="pending"})}),qe.default.createElement("span",{className:ge.trim},qe.default.createElement($c,{text:o})),qe.default.createElement(qs,{text:o}),qe.default.createElement(Le,{page:`/${Q}/${o}`,className:w.ml2}))};n();var pu=`.dapp-core-component__transactionToast-styles__content {
2880
2880
  display: flex;
2881
2881
  align-items: center;
2882
2882
  }