@multiversx/sdk-dapp 2.14.2 → 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 (235) 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-R5G3CVWI.js → chunk-KKG5HGC2.js} +2 -2
  143. package/__chunks__/chunk-LDOD4URJ.js +2 -0
  144. package/__chunks__/{chunk-C7BMLFJP.js → chunk-LI2YTG6T.js} +2 -2
  145. package/__chunks__/{chunk-GJBD7RPH.js → chunk-N4AS4WKH.js} +2 -2
  146. package/__chunks__/{chunk-I2ZNHA6A.js → chunk-O3AHG24N.js} +2 -2
  147. package/__chunks__/{chunk-RDLDEORR.js → chunk-OATDAXFL.js} +2 -2
  148. package/__chunks__/{chunk-XUZZU2SJ.js → chunk-PEFNQYFJ.js} +2 -2
  149. package/__chunks__/{chunk-H6OTSQGS.js → chunk-QDMQLFXE.js} +2 -2
  150. package/__chunks__/{chunk-BPNXCDIK.js → chunk-RA4VBSV4.js} +2 -2
  151. package/__chunks__/{chunk-3XIOF6MM.js → chunk-SIX6M33Q.js} +2 -2
  152. package/__chunks__/{chunk-KVOYPUTL.js → chunk-SRAOPXTJ.js} +2 -2
  153. package/__chunks__/{chunk-ZE7Y2E3X.js → chunk-SZOZTDWH.js} +2 -2
  154. package/__chunks__/chunk-UJFVVD7I.js +2 -0
  155. package/__chunks__/chunk-UP3FFMFW.js +2 -0
  156. package/__chunks__/{chunk-MTLGBDZP.js → chunk-V24SSAOI.js} +2 -2
  157. package/__commonjs/UI/SignTransactionsModals/SignTransactionsModals.js +9 -9
  158. package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
  159. package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/SignWithDeviceModal.js +8 -8
  160. package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/index.js +8 -8
  161. package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/LedgerGuardianSigningModalError.js +14 -14
  162. package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/SignWithLedgerModal.js +2 -2
  163. package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/index.js +2 -2
  164. package/__commonjs/UI/SignTransactionsModals/components/ConfirmationScreen.js +2 -2
  165. package/__commonjs/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +2 -2
  166. package/__commonjs/UI/SignTransactionsModals/components/TransactionStatusToast.js +2 -2
  167. package/__commonjs/UI/SignTransactionsModals/components/index.js +12 -12
  168. package/__commonjs/UI/SignTransactionsModals/index.js +9 -9
  169. package/__commonjs/UI/TransactionDetails/TransactionDetails.js +1 -1
  170. package/__commonjs/UI/TransactionDetails/components/TransactionDetailsBody.js +1 -1
  171. package/__commonjs/UI/TransactionDetails/components/index.js +1 -1
  172. package/__commonjs/UI/TransactionDetails/index.js +1 -1
  173. package/__commonjs/UI/TransactionsToastList/TransactionsToastList.js +3 -3
  174. package/__commonjs/UI/TransactionsToastList/components/CustomToast/CustomToast.js +2 -2
  175. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +2 -2
  176. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +1 -1
  177. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +1 -1
  178. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +1 -1
  179. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +1 -1
  180. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +2 -2
  181. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +1 -1
  182. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/index.js +2 -2
  183. package/__commonjs/UI/TransactionsToastList/components/CustomToast/helpers/index.js +1 -1
  184. package/__commonjs/UI/TransactionsToastList/components/CustomToast/helpers/useMemoizedCloseButton.js +1 -1
  185. package/__commonjs/UI/TransactionsToastList/components/CustomToast/index.js +2 -2
  186. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +3 -3
  187. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/components/DefaultToastDeleteButton.js +1 -1
  188. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/components/TransactionToastContent.js +2 -2
  189. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/components/index.js +3 -3
  190. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/index.js +3 -3
  191. package/__commonjs/UI/TransactionsToastList/components/TransactionToastGuard.js +3 -3
  192. package/__commonjs/UI/TransactionsToastList/components/index.js +3 -3
  193. package/__commonjs/UI/TransactionsToastList/index.js +3 -3
  194. package/__commonjs/UI/index.js +18 -18
  195. package/__commonjs/components/TransactionStatusToast/FailedTransactionStatusToast.js +2 -2
  196. package/__commonjs/hooks/index.js +1 -1
  197. package/__commonjs/hooks/transactions/batch/useSendBatchTransactions.js +1 -1
  198. package/__commonjs/hooks/transactions/index.js +1 -1
  199. package/__commonjs/hooks/transactions/useParseMultiEsdtTransferData.js +1 -1
  200. package/__commonjs/hooks/transactions/useSignMultipleTransactions.js +1 -1
  201. package/__commonjs/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
  202. package/__commonjs/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
  203. package/__mocks__/index.js +1 -1
  204. package/__mocks__/utils/index.js +1 -1
  205. package/__mocks__/utils/renderWithProvider.js +1 -1
  206. package/components/LogoutListener/LogoutListener.js +1 -1
  207. package/components/LogoutListener/helpers/index.js +1 -1
  208. package/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
  209. package/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
  210. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
  211. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
  212. package/components/LogoutListener/index.js +1 -1
  213. package/components/TransactionStatusToast/FailedTransactionStatusToast.js +1 -1
  214. package/components/TransactionsTracker/TransactionTracker.js +1 -1
  215. package/components/TransactionsTracker/index.js +1 -1
  216. package/components/TransactionsTracker/useTransactionsTracker.js +1 -1
  217. package/hooks/index.js +1 -1
  218. package/hooks/toasts/index.js +1 -1
  219. package/hooks/toasts/useTransactionsToasts.js +1 -1
  220. package/hooks/transactions/batch/useSendBatchTransactions.js +1 -1
  221. package/hooks/transactions/index.js +1 -1
  222. package/hooks/transactions/useParseMultiEsdtTransferData.js +1 -1
  223. package/hooks/transactions/useSignMultipleTransactions.js +1 -1
  224. package/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
  225. package/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
  226. package/package.json +1 -1
  227. package/wrappers/DappProvider/CustomComponents.js +1 -1
  228. package/wrappers/DappProvider/DappProvider.js +1 -1
  229. package/wrappers/DappProvider/index.js +1 -1
  230. package/wrappers/index.js +1 -1
  231. package/__chunks__/chunk-6NLOVYDI.js +0 -2
  232. package/__chunks__/chunk-7F37MW76.js +0 -2
  233. package/__chunks__/chunk-KK6D6OI6.js +0 -2
  234. package/__chunks__/chunk-SYJSPEIV.js +0 -2
  235. package/__chunks__/chunk-T26DIT4Y.js +0 -2
@@ -1,4 +1,4 @@
1
- "use strict";var os=Object.create;var Be=Object.defineProperty,is=Object.defineProperties,as=Object.getOwnPropertyDescriptor,ss=Object.getOwnPropertyDescriptors,cs=Object.getOwnPropertyNames,ut=Object.getOwnPropertySymbols,ls=Object.getPrototypeOf,yr=Object.prototype.hasOwnProperty,Un=Object.prototype.propertyIsEnumerable;var Fn=(e,t,r)=>t in e?Be(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t)=>{for(var r in t||(t={}))yr.call(t,r)&&Fn(e,r,t[r]);if(ut)for(var r of ut(t))Un.call(t,r)&&Fn(e,r,t[r]);return e},b=(e,t)=>is(e,ss(t));var hr=(e,t)=>{var r={};for(var o in e)yr.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&ut)for(var o of ut(e))t.indexOf(o)<0&&Un.call(e,o)&&(r[o]=e[o]);return r};var h=(e,t)=>()=>(e&&(t=e(e=0)),t);var dt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Te=(e,t)=>{for(var r in t)Be(e,r,{get:t[r],enumerable:!0})},Bn=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of cs(t))!yr.call(e,i)&&i!==r&&Be(e,i,{get:()=>t[i],enumerable:!(o=as(t,i))||o.enumerable});return e};var I=(e,t,r)=>(r=e!=null?os(ls(e)):{},Bn(t||!e||!e.__esModule?Be(r,"default",{value:e,enumerable:!0}):r,e)),Ge=e=>Bn(Be({},"__esModule",{value:!0}),e);var N=(e,t,r)=>new Promise((o,i)=>{var l=m=>{try{d(r.next(m))}catch(g){i(g)}},p=m=>{try{d(r.throw(m))}catch(g){i(g)}},d=m=>m.done?o(m.value):Promise.resolve(m.value).then(l,p);d((r=r.apply(e,t)).next())});var Wn=dt(mt=>{"use strict";n();mt.byteLength=us;mt.toByteArray=ms;mt.fromByteArray=Ts;var K=[],W=[],ps=typeof Uint8Array!="undefined"?Uint8Array:Array,Sr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(ye=0,Gn=Sr.length;ye<Gn;++ye)K[ye]=Sr[ye],W[Sr.charCodeAt(ye)]=ye;var ye,Gn;W["-".charCodeAt(0)]=62;W["_".charCodeAt(0)]=63;function Vn(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var o=r===t?0:4-r%4;return[r,o]}function us(e){var t=Vn(e),r=t[0],o=t[1];return(r+o)*3/4-o}function ds(e,t,r){return(t+r)*3/4-r}function ms(e){var t,r=Vn(e),o=r[0],i=r[1],l=new ps(ds(e,o,i)),p=0,d=i>0?o-4:o,m;for(m=0;m<d;m+=4)t=W[e.charCodeAt(m)]<<18|W[e.charCodeAt(m+1)]<<12|W[e.charCodeAt(m+2)]<<6|W[e.charCodeAt(m+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return i===2&&(t=W[e.charCodeAt(m)]<<2|W[e.charCodeAt(m+1)]>>4,l[p++]=t&255),i===1&&(t=W[e.charCodeAt(m)]<<10|W[e.charCodeAt(m+1)]<<4|W[e.charCodeAt(m+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function gs(e){return K[e>>18&63]+K[e>>12&63]+K[e>>6&63]+K[e&63]}function fs(e,t,r){for(var o,i=[],l=t;l<r;l+=3)o=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(e[l+2]&255),i.push(gs(o));return i.join("")}function Ts(e){for(var t,r=e.length,o=r%3,i=[],l=16383,p=0,d=r-o;p<d;p+=l)i.push(fs(e,p,p+l>d?d:p+l));return o===1?(t=e[r-1],i.push(K[t>>2]+K[t<<4&63]+"==")):o===2&&(t=(e[r-2]<<8)+e[r-1],i.push(K[t>>10]+K[t>>4&63]+K[t<<2&63]+"=")),i.join("")}});var $n=dt(xr=>{n();xr.read=function(e,t,r,o,i){var l,p,d=i*8-o-1,m=(1<<d)-1,g=m>>1,f=-7,T=r?i-1:0,w=r?-1:1,S=e[t+T];for(T+=w,l=S&(1<<-f)-1,S>>=-f,f+=d;f>0;l=l*256+e[t+T],T+=w,f-=8);for(p=l&(1<<-f)-1,l>>=-f,f+=o;f>0;p=p*256+e[t+T],T+=w,f-=8);if(l===0)l=1-g;else{if(l===m)return p?NaN:(S?-1:1)*(1/0);p=p+Math.pow(2,o),l=l-g}return(S?-1:1)*p*Math.pow(2,l-o)};xr.write=function(e,t,r,o,i,l){var p,d,m,g=l*8-i-1,f=(1<<g)-1,T=f>>1,w=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,S=o?0:l-1,v=o?1:-1,P=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(d=isNaN(t)?1:0,p=f):(p=Math.floor(Math.log(t)/Math.LN2),t*(m=Math.pow(2,-p))<1&&(p--,m*=2),p+T>=1?t+=w/m:t+=w*Math.pow(2,1-T),t*m>=2&&(p++,m/=2),p+T>=f?(d=0,p=f):p+T>=1?(d=(t*m-1)*Math.pow(2,i),p=p+T):(d=t*Math.pow(2,T-1)*Math.pow(2,i),p=0));i>=8;e[r+S]=d&255,S+=v,d/=256,i-=8);for(p=p<<i|d,g+=i;g>0;e[r+S]=p&255,S+=v,p/=256,g-=8);e[r+S-v]|=P*128}});var ro=dt(ke=>{"use strict";n();var wr=Wn(),Ee=$n(),Hn=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ke.Buffer=u;ke.SlowBuffer=Is;ke.INSPECT_MAX_BYTES=50;var gt=2147483647;ke.kMaxLength=gt;u.TYPED_ARRAY_SUPPORT=ys();!u.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function ys(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(r){return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.buffer}});Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.byteOffset}});function oe(e){if(e>gt)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return br(e)}return zn(e,t,r)}u.poolSize=8192;function zn(e,t,r){if(typeof e=="string")return Ss(e,t);if(ArrayBuffer.isView(e))return xs(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(Y(e,ArrayBuffer)||e&&Y(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Y(e,SharedArrayBuffer)||e&&Y(e.buffer,SharedArrayBuffer)))return vr(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var o=e.valueOf&&e.valueOf();if(o!=null&&o!==e)return u.from(o,t,r);var i=ws(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return u.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}u.from=function(e,t,r){return zn(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function Kn(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 hs(e,t,r){return Kn(e),e<=0?oe(e):t!==void 0?typeof r=="string"?oe(e).fill(t,r):oe(e).fill(t):oe(e)}u.alloc=function(e,t,r){return hs(e,t,r)};function br(e){return Kn(e),oe(e<0?0:Er(e)|0)}u.allocUnsafe=function(e){return br(e)};u.allocUnsafeSlow=function(e){return br(e)};function Ss(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=Yn(e,t)|0,o=oe(r),i=o.write(e,t);return i!==r&&(o=o.slice(0,i)),o}function Ir(e){for(var t=e.length<0?0:Er(e.length)|0,r=oe(t),o=0;o<t;o+=1)r[o]=e[o]&255;return r}function xs(e){if(Y(e,Uint8Array)){var t=new Uint8Array(e);return vr(t.buffer,t.byteOffset,t.byteLength)}return Ir(e)}function vr(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var o;return t===void 0&&r===void 0?o=new Uint8Array(e):r===void 0?o=new Uint8Array(e,t):o=new Uint8Array(e,t,r),Object.setPrototypeOf(o,u.prototype),o}function ws(e){if(u.isBuffer(e)){var t=Er(e.length)|0,r=oe(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||kr(e.length)?oe(0):Ir(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Ir(e.data)}function Er(e){if(e>=gt)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+gt.toString(16)+" bytes");return e|0}function Is(e){return+e!=e&&(e=0),u.alloc(+e)}u.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==u.prototype};u.compare=function(t,r){if(Y(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),Y(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(t)||!u.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var o=t.length,i=r.length,l=0,p=Math.min(o,i);l<p;++l)if(t[l]!==r[l]){o=t[l],i=r[l];break}return o<i?-1:i<o?1:0};u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};u.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return u.alloc(0);var o;if(r===void 0)for(r=0,o=0;o<t.length;++o)r+=t[o].length;var i=u.allocUnsafe(r),l=0;for(o=0;o<t.length;++o){var p=t[o];if(Y(p,Uint8Array))l+p.length>i.length?u.from(p).copy(i,l):Uint8Array.prototype.set.call(i,p,l);else if(u.isBuffer(p))p.copy(i,l);else throw new TypeError('"list" argument must be an Array of Buffers');l+=p.length}return i};function Yn(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Y(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,o=arguments.length>2&&arguments[2]===!0;if(!o&&r===0)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Ar(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return to(e).length;default:if(i)return o?-1:Ar(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=Yn;function vs(e,t,r){var o=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return Rs(this,t,r);case"utf8":case"utf-8":return Zn(this,t,r);case"ascii":return Cs(this,t,r);case"latin1":case"binary":return Ps(this,t,r);case"base64":return Ls(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _s(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}u.prototype._isBuffer=!0;function he(e,t,r){var o=e[t];e[t]=e[r],e[r]=o}u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)he(this,r,r+1);return this};u.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)he(this,r,r+3),he(this,r+1,r+2);return this};u.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)he(this,r,r+7),he(this,r+1,r+6),he(this,r+2,r+5),he(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?Zn(this,0,t):vs.apply(this,arguments)};u.prototype.toLocaleString=u.prototype.toString;u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:u.compare(this,t)===0};u.prototype.inspect=function(){var t="",r=ke.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};Hn&&(u.prototype[Hn]=u.prototype.inspect);u.prototype.compare=function(t,r,o,i,l){if(Y(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),o===void 0&&(o=t?t.length:0),i===void 0&&(i=0),l===void 0&&(l=this.length),r<0||o>t.length||i<0||l>this.length)throw new RangeError("out of range index");if(i>=l&&r>=o)return 0;if(i>=l)return-1;if(r>=o)return 1;if(r>>>=0,o>>>=0,i>>>=0,l>>>=0,this===t)return 0;for(var p=l-i,d=o-r,m=Math.min(p,d),g=this.slice(i,l),f=t.slice(r,o),T=0;T<m;++T)if(g[T]!==f[T]){p=g[T],d=f[T];break}return p<d?-1:d<p?1:0};function Xn(e,t,r,o,i){if(e.length===0)return-1;if(typeof r=="string"?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,kr(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=u.from(t,o)),u.isBuffer(t))return t.length===0?-1:qn(e,t,r,o,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):qn(e,[t],r,o,i);throw new TypeError("val must be string, number or Buffer")}function qn(e,t,r,o,i){var l=1,p=e.length,d=t.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(e.length<2||t.length<2)return-1;l=2,p/=2,d/=2,r/=2}function m(S,v){return l===1?S[v]:S.readUInt16BE(v*l)}var g;if(i){var f=-1;for(g=r;g<p;g++)if(m(e,g)===m(t,f===-1?0:g-f)){if(f===-1&&(f=g),g-f+1===d)return f*l}else f!==-1&&(g-=g-f),f=-1}else for(r+d>p&&(r=p-d),g=r;g>=0;g--){for(var T=!0,w=0;w<d;w++)if(m(e,g+w)!==m(t,w)){T=!1;break}if(T)return g}return-1}u.prototype.includes=function(t,r,o){return this.indexOf(t,r,o)!==-1};u.prototype.indexOf=function(t,r,o){return Xn(this,t,r,o,!0)};u.prototype.lastIndexOf=function(t,r,o){return Xn(this,t,r,o,!1)};function As(e,t,r,o){r=Number(r)||0;var i=e.length-r;o?(o=Number(o),o>i&&(o=i)):o=i;var l=t.length;o>l/2&&(o=l/2);for(var p=0;p<o;++p){var d=parseInt(t.substr(p*2,2),16);if(kr(d))return p;e[r+p]=d}return p}function bs(e,t,r,o){return ft(Ar(t,e.length-r),e,r,o)}function Es(e,t,r,o){return ft(Fs(t),e,r,o)}function ks(e,t,r,o){return ft(to(t),e,r,o)}function Ds(e,t,r,o){return ft(Us(t,e.length-r),e,r,o)}u.prototype.write=function(t,r,o,i){if(r===void 0)i="utf8",o=this.length,r=0;else if(o===void 0&&typeof r=="string")i=r,o=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(o)?(o=o>>>0,i===void 0&&(i="utf8")):(i=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var l=this.length-r;if((o===void 0||o>l)&&(o=l),t.length>0&&(o<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var p=!1;;)switch(i){case"hex":return As(this,t,r,o);case"utf8":case"utf-8":return bs(this,t,r,o);case"ascii":case"latin1":case"binary":return Es(this,t,r,o);case"base64":return ks(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ds(this,t,r,o);default:if(p)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),p=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ls(e,t,r){return t===0&&r===e.length?wr.fromByteArray(e):wr.fromByteArray(e.slice(t,r))}function Zn(e,t,r){r=Math.min(e.length,r);for(var o=[],i=t;i<r;){var l=e[i],p=null,d=l>239?4:l>223?3:l>191?2:1;if(i+d<=r){var m,g,f,T;switch(d){case 1:l<128&&(p=l);break;case 2:m=e[i+1],(m&192)===128&&(T=(l&31)<<6|m&63,T>127&&(p=T));break;case 3:m=e[i+1],g=e[i+2],(m&192)===128&&(g&192)===128&&(T=(l&15)<<12|(m&63)<<6|g&63,T>2047&&(T<55296||T>57343)&&(p=T));break;case 4:m=e[i+1],g=e[i+2],f=e[i+3],(m&192)===128&&(g&192)===128&&(f&192)===128&&(T=(l&15)<<18|(m&63)<<12|(g&63)<<6|f&63,T>65535&&T<1114112&&(p=T))}}p===null?(p=65533,d=1):p>65535&&(p-=65536,o.push(p>>>10&1023|55296),p=56320|p&1023),o.push(p),i+=d}return Ns(o)}var jn=4096;function Ns(e){var t=e.length;if(t<=jn)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=jn));return r}function Cs(e,t,r){var o="";r=Math.min(e.length,r);for(var i=t;i<r;++i)o+=String.fromCharCode(e[i]&127);return o}function Ps(e,t,r){var o="";r=Math.min(e.length,r);for(var i=t;i<r;++i)o+=String.fromCharCode(e[i]);return o}function Rs(e,t,r){var o=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>o)&&(r=o);for(var i="",l=t;l<r;++l)i+=Bs[e[l]];return i}function _s(e,t,r){for(var o=e.slice(t,r),i="",l=0;l<o.length-1;l+=2)i+=String.fromCharCode(o[l]+o[l+1]*256);return i}u.prototype.slice=function(t,r){var o=this.length;t=~~t,r=r===void 0?o:~~r,t<0?(t+=o,t<0&&(t=0)):t>o&&(t=o),r<0?(r+=o,r<0&&(r=0)):r>o&&(r=o),r<t&&(r=t);var i=this.subarray(t,r);return Object.setPrototypeOf(i,u.prototype),i};function _(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||_(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return i};u.prototype.readUintBE=u.prototype.readUIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||_(t,r,this.length);for(var i=this[t+--r],l=1;r>0&&(l*=256);)i+=this[t+--r]*l;return i};u.prototype.readUint8=u.prototype.readUInt8=function(t,r){return t=t>>>0,r||_(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||_(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||_(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||_(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||_(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};u.prototype.readIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||_(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return l*=128,i>=l&&(i-=Math.pow(2,8*r)),i};u.prototype.readIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||_(t,r,this.length);for(var i=r,l=1,p=this[t+--i];i>0&&(l*=256);)p+=this[t+--i]*l;return l*=128,p>=l&&(p-=Math.pow(2,8*r)),p};u.prototype.readInt8=function(t,r){return t=t>>>0,r||_(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||_(t,2,this.length);var o=this[t]|this[t+1]<<8;return o&32768?o|4294901760:o};u.prototype.readInt16BE=function(t,r){t=t>>>0,r||_(t,2,this.length);var o=this[t+1]|this[t]<<8;return o&32768?o|4294901760:o};u.prototype.readInt32LE=function(t,r){return t=t>>>0,r||_(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};u.prototype.readInt32BE=function(t,r){return t=t>>>0,r||_(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};u.prototype.readFloatLE=function(t,r){return t=t>>>0,r||_(t,4,this.length),Ee.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||_(t,4,this.length),Ee.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||_(t,8,this.length),Ee.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||_(t,8,this.length),Ee.read(this,t,!1,52,8)};function U(e,t,r,o,i,l){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<l)throw new RangeError('"value" argument is out of bounds');if(r+o>e.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var l=Math.pow(2,8*o)-1;U(this,t,r,o,l,0)}var p=1,d=0;for(this[r]=t&255;++d<o&&(p*=256);)this[r+d]=t/p&255;return r+o};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var l=Math.pow(2,8*o)-1;U(this,t,r,o,l,0)}var p=o-1,d=1;for(this[r+p]=t&255;--p>=0&&(d*=256);)this[r+p]=t/d&255;return r+o};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,o){return t=+t,r=r>>>0,o||U(this,t,r,1,255,0),this[r]=t&255,r+1};u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||U(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||U(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||U(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||U(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};u.prototype.writeIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);U(this,t,r,o,l-1,-l)}var p=0,d=1,m=0;for(this[r]=t&255;++p<o&&(d*=256);)t<0&&m===0&&this[r+p-1]!==0&&(m=1),this[r+p]=(t/d>>0)-m&255;return r+o};u.prototype.writeIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);U(this,t,r,o,l-1,-l)}var p=o-1,d=1,m=0;for(this[r+p]=t&255;--p>=0&&(d*=256);)t<0&&m===0&&this[r+p+1]!==0&&(m=1),this[r+p]=(t/d>>0)-m&255;return r+o};u.prototype.writeInt8=function(t,r,o){return t=+t,r=r>>>0,o||U(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};u.prototype.writeInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||U(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||U(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||U(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};u.prototype.writeInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||U(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function Qn(e,t,r,o,i,l){if(r+o>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Jn(e,t,r,o,i){return t=+t,r=r>>>0,i||Qn(e,t,r,4,34028234663852886e22,-34028234663852886e22),Ee.write(e,t,r,o,23,4),r+4}u.prototype.writeFloatLE=function(t,r,o){return Jn(this,t,r,!0,o)};u.prototype.writeFloatBE=function(t,r,o){return Jn(this,t,r,!1,o)};function eo(e,t,r,o,i){return t=+t,r=r>>>0,i||Qn(e,t,r,8,17976931348623157e292,-17976931348623157e292),Ee.write(e,t,r,o,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,o){return eo(this,t,r,!0,o)};u.prototype.writeDoubleBE=function(t,r,o){return eo(this,t,r,!1,o)};u.prototype.copy=function(t,r,o,i){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(o||(o=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<o&&(i=o),i===o||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-o&&(i=t.length-r+o);var l=i-o;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,o,i):Uint8Array.prototype.set.call(t,this.subarray(o,i),r),l};u.prototype.fill=function(t,r,o,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,o=this.length):typeof o=="string"&&(i=o,o=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t.length===1){var l=t.charCodeAt(0);(i==="utf8"&&l<128||i==="latin1")&&(t=l)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<o)throw new RangeError("Out of range index");if(o<=r)return this;r=r>>>0,o=o===void 0?this.length:o>>>0,t||(t=0);var p;if(typeof t=="number")for(p=r;p<o;++p)this[p]=t;else{var d=u.isBuffer(t)?t:u.from(t,i),m=d.length;if(m===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(p=0;p<o-r;++p)this[p+r]=d[p%m]}return this};var Ms=/[^+/0-9A-Za-z-_]/g;function Os(e){if(e=e.split("=")[0],e=e.trim().replace(Ms,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Ar(e,t){t=t||1/0;for(var r,o=e.length,i=null,l=[],p=0;p<o;++p){if(r=e.charCodeAt(p),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&l.push(239,191,189);continue}else if(p+1===o){(t-=3)>-1&&l.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&l.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&l.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;l.push(r)}else if(r<2048){if((t-=2)<0)break;l.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;l.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;l.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return l}function Fs(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function Us(e,t){for(var r,o,i,l=[],p=0;p<e.length&&!((t-=2)<0);++p)r=e.charCodeAt(p),o=r>>8,i=r%256,l.push(i),l.push(o);return l}function to(e){return wr.toByteArray(Os(e))}function ft(e,t,r,o){for(var i=0;i<o&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function Y(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function kr(e){return e!==e}var Bs=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var o=r*16,i=0;i<16;++i)t[o+i]=e[r]+e[i];return t}()});var so=dt((Ml,ao)=>{n();var L=ao.exports={},X,Z;function Dr(){throw new Error("setTimeout has not been defined")}function Lr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?X=setTimeout:X=Dr}catch(e){X=Dr}try{typeof clearTimeout=="function"?Z=clearTimeout:Z=Lr}catch(e){Z=Lr}})();function no(e){if(X===setTimeout)return setTimeout(e,0);if((X===Dr||!X)&&setTimeout)return X=setTimeout,setTimeout(e,0);try{return X(e,0)}catch(t){try{return X.call(null,e,0)}catch(r){return X.call(this,e,0)}}}function Gs(e){if(Z===clearTimeout)return clearTimeout(e);if((Z===Lr||!Z)&&clearTimeout)return Z=clearTimeout,clearTimeout(e);try{return Z(e)}catch(t){try{return Z.call(null,e)}catch(r){return Z.call(this,e)}}}var ie=[],De=!1,Se,Tt=-1;function Vs(){!De||!Se||(De=!1,Se.length?ie=Se.concat(ie):Tt=-1,ie.length&&oo())}function oo(){if(!De){var e=no(Vs);De=!0;for(var t=ie.length;t;){for(Se=ie,ie=[];++Tt<t;)Se&&Se[Tt].run();Tt=-1,t=ie.length}Se=null,De=!1,Gs(e)}}L.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];ie.push(new io(e,t)),ie.length===1&&!De&&no(oo)};function io(e,t){this.fun=e,this.array=t}io.prototype.run=function(){this.fun.apply(null,this.array)};L.title="browser";L.browser=!0;L.env={};L.argv=[];L.version="";L.versions={};function ae(){}L.on=ae;L.addListener=ae;L.once=ae;L.off=ae;L.removeListener=ae;L.removeAllListeners=ae;L.emit=ae;L.prependListener=ae;L.prependOnceListener=ae;L.listeners=function(e){return[]};L.binding=function(e){throw new Error("process.binding is not supported")};L.cwd=function(){return"/"};L.chdir=function(e){throw new Error("process.chdir is not supported")};L.umask=function(){return 0}});var a,s,Ol,n=h(()=>{a=I(ro()),s=I(so()),Ol=function(e){function t(){var o=this||self;return delete e.prototype.__magic__,o}if(typeof globalThis=="object")return globalThis;if(this)return t();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:t});var r=__magic__;return r}(Object)});var yt,Nr=h(()=>{"use strict";n();yt="Transaction canceled"});var Cr,Pr=h(()=>{"use strict";n();Cr=(o=>(o.signature="signature",o.sessionId="sessionId",o.status="status",o))(Cr||{})});var co=h(()=>{"use strict";n()});var lo=h(()=>{"use strict";n()});var H=h(()=>{"use strict";n()});var po=h(()=>{"use strict";n()});var uo=h(()=>{"use strict";n()});var B=h(()=>{"use strict";n()});var mo=h(()=>{"use strict";n()});var go=h(()=>{"use strict";n()});var fo=h(()=>{"use strict";n()});var V=h(()=>{"use strict";n();Pr();co();lo();H();po();uo();B();mo();go();fo()});var xe,To,rp,yo,np,ho,op,ip,So,Ve=h(()=>{"use strict";n();V();xe={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:To,egldLabel:rp}=xe["devnet"],{chainId:yo,egldLabel:np}=xe["testnet"],{chainId:ho,egldLabel:op}=xe["mainnet"],ip={["devnet"]:To,["testnet"]:yo,["mainnet"]:ho},So={[To]:"devnet",[yo]:"testnet",[ho]:"mainnet"}});var Rr,_r=h(()=>{"use strict";n();Rr={36864:{code:"codeSuccess",message:"Success"},27013:{code:"ERR_USER_DENIED",message:"Rejected by user"},27904:{code:"ERR_UNKNOWN_INSTRUCTION",message:"Unknown instruction"},28160:{code:"ERR_WRONG_CLA",message:"Wrong CLA"},28161:{code:"ERR_INVALID_ARGUMENTS",message:"Invalid arguments"},28162:{code:"ERR_INVALID_MESSAGE",message:"Invalid message"},28163:{code:"ERR_INVALID_P1",message:"Invalid P1"},28164:{code:"ERR_MESSAGE_TOO_LONG",message:"Message too long"},28165:{code:"ERR_RECEIVER_TOO_LONG",message:"Receiver too long"},28166:{code:"ERR_AMOUNT_TOO_LONG",message:"Amount too long"},28167:{code:"ERR_CONTRACT_DATA_DISABLED",message:"Contract data disabled in app options"},28168:{code:"ERR_MESSAGE_INCOMPLETE",message:"Message incomplete"},28176:{code:"ERR_SIGNATURE_FAILED",message:"Signature failed"},28169:{code:"ERR_WRONG_TX_VERSION",message:"Wrong TX version"},28170:{code:"ERR_NONCE_TOO_LONG",message:"Nonce too long"},28171:{code:"ERR_INVALID_AMOUNT",message:"Invalid amount"},28172:{code:"ERR_INVALID_FEE",message:"Invalid fee"},28173:{code:"ERR_PRETTY_FAILED",message:"Pretty failed"},28174:{code:"ERR_DATA_TOO_LONG",message:"Data too long"},28175:{code:"ERR_WRONG_TX_OPTIONS",message:"Invalid transaction options"},28177:{code:"ERR_SIGN_TX_DEPRECATED",message:"Regular transaction signing is deprecated in this version. Use hash signing."}}});var xo=h(()=>{"use strict";n()});var ht,Mr=h(()=>{"use strict";n();ht="transaction-status-toast-id"});var Q,wo=h(()=>{"use strict";n();Q=require("@multiversx/sdk-web-wallet-provider")});var Io=h(()=>{"use strict";n()});var vo=h(()=>{"use strict";n()});var Or,Fr,Ao,bo,me,St,Eo,Le,E=h(()=>{"use strict";n();Nr();Ve();_r();xo();Mr();wo();Io();vo();Or=5e4,Fr=1e9,Ao=1,bo="/dapp/init",me="signSession",St="logout",Eo="login",Le="0"});var xt,Ur=h(()=>{"use strict";n();xt=()=>Date.now()/1e3});var ko=h(()=>{"use strict";n()});var Do=h(()=>{"use strict";n()});var Lo=h(()=>{"use strict";n();Ur();ko();Do()});var Gr={};Te(Gr,{getItem:()=>$s,localStorageKeys:()=>we,removeItem:()=>Hs,setItem:()=>Ws});var we,Br,Ws,$s,Hs,We=h(()=>{"use strict";n();Lo();we={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},Br=typeof localStorage!="undefined",Ws=({key:e,data:t,expires:r})=>{!Br||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},$s=e=>{if(!Br)return;let t=localStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:xt()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},Hs=e=>{!Br||localStorage.removeItem(String(e))}});var Vr={};Te(Vr,{clear:()=>Ro,getItem:()=>Co,removeItem:()=>Po,setItem:()=>No,storage:()=>qs});var No,Co,Po,Ro,qs,_o=h(()=>{"use strict";n();No=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Co=e=>{let t=sessionStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Date.now()>=r.expires?(sessionStorage.removeItem(String(e)),null):r.data},Po=e=>sessionStorage.removeItem(String(e)),Ro=()=>sessionStorage.clear(),qs={setItem:No,getItem:Co,removeItem:Po,clear:Ro}});var Ne,wt=h(()=>{"use strict";n();We();_o();Ne={session:Vr,local:Gr}});var Wr,C,It,q=h(()=>{"use strict";n();Wr=require("@reduxjs/toolkit");E();C=(0,Wr.createAction)(St),It=(0,Wr.createAction)(Eo,e=>({payload:e}))});var Hr,Mo,Oo,vt,$r,Fo,Uo,Bp,Bo,Gp,Vp,Wp,$p,Hp,qp,jp,zp,At,bt=h(()=>{"use strict";n();Hr=require("@multiversx/sdk-core"),Mo=require("@reduxjs/toolkit"),Oo=require("redux-persist");E();wt();We();q();vt={balance:"...",address:"",isGuarded:!1,nonce:0,txCount:0,scrCount:0,claimableRewards:Le},$r={address:"",websocketEvent:null,websocketBatchEvent:null,accounts:{"":vt},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Fo=(0,Mo.createSlice)({name:"accountInfoSlice",initialState:$r,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new Hr.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:vt},e.shard=t.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,t)=>{let{address:r}=e;e.accounts[r].nonce=t.payload},setAccountShard:(e,t)=>{e.shard=t.payload},setLedgerAccount:(e,t)=>{e.ledgerAccount=t.payload},updateLedgerAccount:(e,t)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=t.payload.index,e.ledgerAccount.address=t.payload.address)},setWalletConnectAccount:(e,t)=>{e.walletConnectAccount=t.payload},setIsAccountLoading:(e,t)=>{e.isAccountLoading=t.payload,e.accountLoadingError=null},setAccountLoadingError:(e,t)=>{e.accountLoadingError=t.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,t)=>{e.websocketEvent={timestamp:Date.now(),message:t.payload}},setWebsocketBatchEvent:(e,t)=>{e.websocketBatchEvent={timestamp:Date.now(),data:t.payload}}},extraReducers:e=>{e.addCase(C,()=>(Ne.local.removeItem(we.loginExpiresAt),$r)),e.addCase(It,(t,r)=>{let{address:o}=r.payload;t.address=o,t.publicKey=new Hr.Address(o).hex()}),e.addCase(Oo.REHYDRATE,(t,r)=>{var g;if(!((g=r.payload)!=null&&g.account))return;let{account:o}=r.payload,{address:i,shard:l,accounts:p,publicKey:d}=o;t.address=i,t.shard=l;let m=p&&i in p;t.accounts=m?p:$r.accounts,t.publicKey=d})}}),{setAccount:Uo,setAddress:Bp,setAccountNonce:Bo,setAccountShard:Gp,setLedgerAccount:Vp,updateLedgerAccount:Wp,setWalletConnectAccount:$p,setIsAccountLoading:Hp,setAccountLoadingError:qp,setWebsocketEvent:jp,setWebsocketBatchEvent:zp}=Fo.actions,At=Fo.reducer});function $e(){return new Date().setHours(new Date().getHours()+24)}function He(e){Ne.local.setItem({key:we.loginExpiresAt,data:e,expires:e})}var qr=h(()=>{"use strict";n();wt();We()});var Vo,Go,Wo,nu,ou,iu,au,su,cu,$o,lu,Et,kt=h(()=>{"use strict";n();Vo=require("@reduxjs/toolkit");qr();H();q();Go={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},Wo=(0,Vo.createSlice)({name:"loginInfoSlice",initialState:Go,reducers:{setLoginMethod:(e,t)=>{e.loginMethod=t.payload},setTokenLogin:(e,t)=>{e.tokenLogin=t.payload},setTokenLoginSignature:(e,t)=>{(e==null?void 0:e.tokenLogin)!=null&&(e.tokenLogin.signature=t.payload)},setWalletLogin:(e,t)=>{e.walletLogin=t.payload},setWalletConnectLogin:(e,t)=>{e.walletConnectLogin=t.payload},setLedgerLogin:(e,t)=>{e.ledgerLogin=t.payload},invalidateLoginSession:e=>{e.isLoginSessionInvalid=!0},setLogoutRoute:(e,t)=>{e.logoutRoute=t.payload}},extraReducers:e=>{e.addCase(C,()=>Go),e.addCase(It,(t,r)=>{t.loginMethod=r.payload.loginMethod,He($e())})}}),{setLoginMethod:nu,setWalletConnectLogin:ou,setLedgerLogin:iu,setTokenLogin:au,setTokenLoginSignature:su,setWalletLogin:cu,invalidateLoginSession:$o,setLogoutRoute:lu}=Wo.actions,Et=Wo.reducer});var qo,Ho,jo,mu,gu,fu,Tu,Dt,Lt=h(()=>{"use strict";n();qo=require("@reduxjs/toolkit");q();Ho={},jo=(0,qo.createSlice)({name:"modalsSlice",initialState:Ho,reducers:{setTxSubmittedModal:(e,t)=>{e.txSubmittedModal=t.payload},setNotificationModal:(e,t)=>{e.notificationModal=t.payload},clearTxSubmittedModal:e=>{e.txSubmittedModal=void 0},clearNotificationModal:e=>{e.notificationModal=void 0}},extraReducers:e=>{e.addCase(C,()=>Ho)}}),{setTxSubmittedModal:mu,setNotificationModal:gu,clearTxSubmittedModal:fu,clearNotificationModal:Tu}=jo.actions,Dt=jo.reducer});var js,zr,Kr=h(()=>{"use strict";n();js=!1,zr=(e,t=0)=>{js||setTimeout(()=>{!window||(window.location.href=e,window.location.assign(e))},t)}});var zo=h(()=>{"use strict";n();Kr()});function Yr(e){return e[Math.floor(Math.random()*e.length)]}var Ko=h(()=>{"use strict";n()});function Xo(e){let t=null;if((e==null?void 0:e.statusCode)in Rr){let r=e==null?void 0:e.statusCode,{message:o}=Rr[r];t=Ys.includes(r)?Yo:o}return{errorMessage:t,defaultErrorMessage:Yo}}var Yo,zs,Ks,Ys,Xr=h(()=>{"use strict";n();_r();Yo="Check if the MultiversX app is open on Ledger",zs=28161,Ks=28160,Ys=[zs,Ks]});var Zo=h(()=>{"use strict";n();zo();Ko();Xr()});var Qo,Jo,Zr,Xs,ei,Nu,Cu,Nt,Ct=h(()=>{"use strict";n();Qo=require("@reduxjs/toolkit"),Jo=I(require("lodash.omit"));Zo();Zr={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},Xs={network:Zr,chainID:"-1"},ei=(0,Qo.createSlice)({name:"appConfig",initialState:Xs,reducers:{initializeNetworkConfig:(e,t)=>{let r=Yr(t.payload.walletConnectBridgeAddresses),o=Yr(t.payload.walletConnectV2RelayAddresses),i=(0,Jo.default)(t.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=b(x(x({},e.network),i),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:o})},setChainID:(e,t)=>{e.chainID=t.payload}}}),{initializeNetworkConfig:Nu,setChainID:Cu}=ei.actions,Nt=ei.reducer});var ti,Qr,ri,Fu,Uu,Bu,Pt,Rt=h(()=>{"use strict";n();ti=require("@reduxjs/toolkit");V();q();Qr={isSigning:!1,signedSessions:{}},ri=(0,ti.createSlice)({name:"signedMessageInfoSliceState",initialState:Qr,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:o,errorMessage:i}=t.payload;i&&(e.errorMessage=i),e.isSigning=o.status==="pending",e.signedSessions[r]=o},setSignSessionState:(e,t)=>x(x({},e),t.payload),clearSignedMessageInfo:()=>Qr},extraReducers:e=>{e.addCase(C,()=>Qr)}}),{setSignSession:Fu,clearSignedMessageInfo:Uu,setSignSessionState:Bu}=ri.actions,Pt=ri.reducer});var oi,ii,ni,ai,zu,si,Ku,Yu,Xu,Zu,_t,Mt=h(()=>{"use strict";n();oi=require("@reduxjs/toolkit"),ii=require("redux-persist");Mr();V();Ur();q();ni={customToasts:[],transactionToasts:[],failTransactionToast:null},ai=(0,oi.createSlice)({name:"toastsSlice",initialState:ni,reducers:{addCustomToast:(e,t)=>{e.customToasts.push(b(x({},t.payload),{type:"custom",toastId:t.payload.toastId||`custom-toast-${e.customToasts.length+1}`}))},removeCustomToast:(e,t)=>{e.customToasts=e.customToasts.filter(r=>r.toastId!==t.payload)},addTransactionToast:(e,t)=>{e.transactionToasts.push({type:"transaction",startTimestamp:xt(),toastId:t.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,t)=>{e.transactionToasts=e.transactionToasts.filter(r=>r.toastId!==t.payload)},addFailTransactionToast:(e,t)=>{e.failTransactionToast=b(x({},t.payload),{toastId:ht})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(C,()=>ni),e.addCase(ii.REHYDRATE,(t,r)=>{var i,l;let o=(l=(i=r.customToasts)==null?void 0:i.filter(p=>!("component"in p)))!=null?l:[];t.customToasts=o})}}),{addCustomToast:zu,removeCustomToast:si,addTransactionToast:Ku,removeTransactionToast:Yu,addFailTransactionToast:Xu,removeFailTransactionToast:Zu}=ai.actions,_t=ai.reducer});var ci,en,tn,rn,Zs,Jr,li,td,rd,Ot,Ft,Ut=h(()=>{"use strict";n();ci=require("@reduxjs/toolkit");q();en="Transaction failed",tn="Transaction successful",rn="Processing transaction",Zs="Transaction submitted",Jr={},li=(0,ci.createSlice)({name:"transactionsInfo",initialState:Jr,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:o}=t.payload;r!=null&&(e[r]={errorMessage:(o==null?void 0:o.errorMessage)||en,successMessage:(o==null?void 0:o.successMessage)||tn,processingMessage:(o==null?void 0:o.processingMessage)||rn,submittedMessage:(o==null?void 0:o.submittedMessage)||Zs,transactionDuration:o==null?void 0:o.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>Jr},extraReducers:e=>{e.addCase(C,()=>Jr)}}),{clearTransactionsInfo:td,setTransactionsDisplayInfo:rd,clearTransactionsInfoForSessionId:Ot}=li.actions,Ft=li.reducer});function pi(e){return e!=null&&(sc(e)||dc(e))}function Bt(e){return e!=null&&(cc(e)||mc(e))}function Gt(e){return e!=null&&(lc(e)||gc(e))}function ui(e){return e!=null&&(pc(e)||fc(e))}function di(e){return e!=null&&uc(e)}function sc(e){return e!=null&&Qs.includes(e)}function cc(e){return e!=null&&Js.includes(e)}function lc(e){return e!=null&&ec.includes(e)}function pc(e){return e!=null&&tc.includes(e)}function uc(e){return e!=null&&rc.includes(e)}function dc(e){return e!=null&&nc.includes(e)}function mc(e){return e!=null&&oc.includes(e)}function gc(e){return e!=null&&ic.includes(e)}function fc(e){return e!=null&&ac.includes(e)}var Qs,Js,ec,tc,rc,nc,oc,ic,ac,an=h(()=>{"use strict";n();H();Qs=["sent"],Js=["success"],ec=["fail","cancelled","timedOut"],tc=["invalid"],rc=["timedOut"],nc=["pending"],oc=["success"],ic=["fail","invalid"],ac=["not executed"]});var mi,gi,qe,Tc,fi,ud,dd,md,Vt,gd,fd,Td,Ti,Ce,Pe,Wt,$t=h(()=>{"use strict";n();mi=require("@reduxjs/toolkit"),gi=require("redux-persist");H();an();q();qe={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},Tc={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},fi=(0,mi.createSlice)({name:"transactionsSlice",initialState:qe,reducers:{moveTransactionsToSignedState:(e,t)=>{var g,f;let{sessionId:r,transactions:o,errorMessage:i,status:l,redirectRoute:p,customTransactionInformation:d={}}=t.payload,m=((g=e.customTransactionInformationForSessionId)==null?void 0:g[r])||Tc;e.signedTransactions[r]={transactions:o,status:l,errorMessage:i,redirectRoute:p,customTransactionInformation:x(x({},m),d)},((f=e==null?void 0:e.transactionsToSign)==null?void 0:f.sessionId)===r&&(e.transactionsToSign=qe.transactionsToSign)},clearSignedTransaction:(e,t)=>{e.signedTransactions[t.payload]&&delete e.signedTransactions[t.payload]},clearTransactionToSign:e=>{e!=null&&e.transactionsToSign&&(e.transactionsToSign=null)},updateSignedTransaction:(e,t)=>{e.signedTransactions=x(x({},e.signedTransactions),t.payload)},updateSignedTransactions:(e,t)=>{let{sessionId:r,status:o,errorMessage:i,transactions:l}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].status=o,i!=null&&(e.signedTransactions[r].errorMessage=i),l!=null&&(e.signedTransactions[r].transactions=l))},updateSignedTransactionStatus:(e,t)=>{var m,g,f,T,w,S,v,P;let{sessionId:r,status:o,errorMessage:i,transactionHash:l,inTransit:p}=t.payload,d=(g=(m=e.signedTransactions)==null?void 0:m[r])==null?void 0:g.transactions;if(d!=null){e.signedTransactions[r].transactions=d.map(k=>k.hash===l?b(x({},k),{status:o,errorMessage:i,inTransit:p}):k);let A=(T=(f=e.signedTransactions[r])==null?void 0:f.transactions)==null?void 0:T.every(k=>Bt(k.status)),re=(S=(w=e.signedTransactions[r])==null?void 0:w.transactions)==null?void 0:S.every(k=>Gt(k.status)),R=(P=(v=e.signedTransactions[r])==null?void 0:v.transactions)==null?void 0:P.every(k=>ui(k.status));A&&(e.signedTransactions[r].status="success"),re&&(e.signedTransactions[r].status="fail"),R&&(e.signedTransactions[r].status="invalid")}},setTransactionsToSign:(e,t)=>{e.transactionsToSign=t.payload;let{sessionId:r,customTransactionInformation:o}=t.payload;e.customTransactionInformationForSessionId[r]=o,e.signTransactionsError=null},clearAllTransactionsToSign:e=>{e.transactionsToSign=qe.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=qe.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload}},extraReducers:e=>{e.addCase(C,()=>qe),e.addCase(gi.REHYDRATE,(t,r)=>{var p;if(t.signTransactionsCancelMessage=null,!((p=r.payload)!=null&&p.transactions))return;let{signedTransactions:o,customTransactionInformationForSessionId:i}=r.payload.transactions,l=Object.entries(o).reduce((d,[m,g])=>{let f=new Date(m),T=new Date;return T.setHours(T.getHours()+5),T-f>0||(d[m]=g),d},{});i!=null&&(t.customTransactionInformationForSessionId=i),o!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:ud,updateSignedTransactions:dd,setTransactionsToSign:md,clearAllTransactionsToSign:Vt,clearAllSignedTransactions:gd,clearSignedTransaction:fd,clearTransactionToSign:Td,setSignTransactionsError:Ti,setSignTransactionsCancelMessage:Ce,moveTransactionsToSignedState:Pe}=fi.actions,Wt=fi.reducer});var yi,sn,hi,xd,wd,Id,vd,Ht,qt=h(()=>{"use strict";n();yi=require("@reduxjs/toolkit");q();sn={},hi=(0,yi.createSlice)({name:"batchTransactionsSlice",initialState:sn,reducers:{setBatchTransactions:(e,t)=>{e[t.payload.id]=t.payload},updateBatchTransactions:(e,t)=>{e[t.payload.id]=t.payload},clearBatchTransactions:(e,t)=>{delete e[t.payload.batchId]},clearAllBatchTransactions:()=>sn},extraReducers:e=>{e.addCase(C,()=>sn)}}),{setBatchTransactions:xd,updateBatchTransactions:wd,clearBatchTransactions:Id,clearAllBatchTransactions:vd}=hi.actions,Ht=hi.reducer});var xi,Si,wi,kd,Ii,cn=h(()=>{"use strict";n();xi=require("@reduxjs/toolkit");q();Si={},wi=(0,xi.createSlice)({name:"dappConfigSlice",initialState:Si,reducers:{setDappConfig:(e,t)=>{if(e&&t.payload){let{logoutRoute:r,shouldUseWebViewProvider:o}=t.payload;e.logoutRoute=r,e.shouldUseWebViewProvider=o}else e=t.payload}},extraReducers:e=>{e.addCase(C,()=>Si)}}),{setDappConfig:kd}=wi.actions,Ii=wi.reducer});var J=h(()=>{"use strict";n();bt();kt();Lt();Ct();Rt();Mt();Ut();$t();qt();cn()});var mn=h(()=>{"use strict";n()});var Fi,Oi,Ui,mg,gg,fg,Tg,yg,hg,Bi,Gi=h(()=>{"use strict";n();Fi=require("@reduxjs/toolkit");q();Oi={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},Ui=(0,Fi.createSlice)({name:"dappModalsSlice",initialState:Oi,reducers:{setDappModalVisibility:(e,t)=>{e.visible=t.payload},setDappModalHeaderVisibility:(e,t)=>{e.modal.showHeader=t.payload},setDappModalFooterVisibility:(e,t)=>{e.modal.showFooter=t.payload},setDappModalHeaderText:(e,t)=>{e.modal.headerText=t.payload},setDappModalFooterText:(e,t)=>{e.modal.footerText=t.payload},setDappModalConfig:(e,t)=>{e.modal=x({},t.payload)}},extraReducers:e=>{e.addCase(C,()=>Oi)}}),{setDappModalVisibility:mg,setDappModalHeaderVisibility:gg,setDappModalFooterVisibility:fg,setDappModalHeaderText:Tg,setDappModalFooterText:yg,setDappModalConfig:hg}=Ui.actions,Bi=Ui.reducer});var Vi,bc,Ec,ve,Zt=h(()=>{"use strict";n();Vi=require("@reduxjs/toolkit");mn();bt();qt();cn();Gi();kt();Lt();Ct();Rt();Mt();Ut();$t();bc={["account"]:At,["dappModal"]:Bi,["dappConfig"]:Ii,["loginInfo"]:Et,["modals"]:Dt,["networkConfig"]:Nt,["signedMessageInfo"]:Pt,["toasts"]:_t,["transactionsInfo"]:Ft,["transactions"]:Wt,["batchTransactions"]:Ht},Ec=(e={})=>(0,Vi.combineReducers)(x(x({},bc),e)),ve=Ec});var qi={};Te(qi,{default:()=>Wc,sessionStorageReducers:()=>gn});function ce(e,t=[]){return{key:e,version:1,storage:$i.default,blacklist:t}}var G,Wi,$i,kc,Xe,Dc,Lc,Nc,Cc,Pc,Rc,_c,Mc,Oc,Fc,Hi,Uc,gn,Bc,Gc,Vc,Wc,ji=h(()=>{"use strict";n();G=require("redux-persist"),Wi=I(require("redux-persist/lib/storage")),$i=I(require("redux-persist/lib/storage/session"));Zt();J();bt();qt();kt();Lt();Ct();Rt();Mt();Ut();$t();mn();kc={persistReducersStorageType:"localStorage"},Xe={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},Dc=ce(Xe["account"]),Lc=ce(Xe["loginInfo"]),Nc=ce(Xe["modals"]),Cc=ce(Xe["networkConfig"]),Pc={2:e=>b(x({},e),{networkConfig:Zr})};Rc=ce("sdk-dapp-transactionsInfo"),_c=ce("sdk-dapp-transactions",["transactionsToSign"]),Mc=ce("sdk-dapp-batchTransactions",["batchTransactions"]),Oc=ce("sdk-dapp-toasts"),Fc=ce("sdk-dapp-signedMessageInfo"),Hi={key:"sdk-dapp-store",version:2,storage:Wi.default,whitelist:Object.keys(Xe),migrate:(0,G.createMigrate)(Pc,{debug:!1})},Uc=b(x({},Hi),{whitelist:[]}),gn={["toasts"]:(0,G.persistReducer)(Oc,_t),["transactions"]:(0,G.persistReducer)(_c,Wt),["transactionsInfo"]:(0,G.persistReducer)(Rc,Ft),["batchTransactions"]:(0,G.persistReducer)(Mc,Ht),["signedMessageInfo"]:(0,G.persistReducer)(Fc,Pt)},Bc=b(x({},gn),{["account"]:(0,G.persistReducer)(Dc,At),["loginInfo"]:(0,G.persistReducer)(Lc,Et),["modals"]:(0,G.persistReducer)(Nc,Dt),["networkConfig"]:(0,G.persistReducer)(Cc,Nt)}),Gc=kc.persistReducersStorageType==="localStorage",Vc=Gc?(0,G.persistReducer)(Hi,ve(gn)):(0,G.persistReducer)(Uc,ve(Bc)),Wc=Vc});var zi={};Te(zi,{default:()=>$c});var $c,Ki=h(()=>{"use strict";n();Zt();$c=ve()});var Yi={};Te(Yi,{default:()=>qc});var $,Hc,qc,Xi=h(()=>{"use strict";n();$=require("redux-persist"),Hc=[$.FLUSH,$.REHYDRATE,$.PAUSE,$.PERSIST,$.PURGE,$.REGISTER],qc=Hc});var Ji={};Te(Ji,{default:()=>Qi});function Qi(e){return(0,Zi.persistStore)(e)}var Zi,ea=h(()=>{"use strict";n();Zi=require("redux-persist")});var Nl={};Te(Nl,{useSignTransactionsWithLedger:()=>Ll});module.exports=Ge(Nl);n();n();var es=require("react");n();var Ia=I(require("axios"));n();n();J();n();var vi=I(require("lodash.isequal")),jt=require("reselect");V();var y=(0,jt.createSelectorCreator)(jt.defaultMemoize,vi.default),je=(e,t)=>e!=""&&Boolean(t);var ee=e=>e.account,ze=y(ee,e=>e.address),Ke=y(ee,ze,(e,t)=>t in e.accounts?e.accounts[t]:vt),Ai=y(ee,Ke,(e,t)=>{let i=e,{accounts:r}=i,o=hr(i,["accounts"]);return b(x({},o),{account:t})}),Hd=y(Ke,e=>e.balance),bi=y(Ke,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),qd=y(ee,e=>e.shard),jd=y(ee,e=>e.ledgerAccount),zd=y(ee,e=>e.walletConnectAccount),Kd=y(ee,e=>e.isAccountLoading),Yd=y(ee,e=>e.accountLoadingError),yc=y(ee,e=>e.websocketEvent),Xd=y(ee,e=>e.websocketBatchEvent);n();var hc=e=>e.dappConfig,Jd=y(hc,e=>e.shouldUseWebViewProvider);n();var j=e=>e.loginInfo,nm=y(j,e=>e.loginMethod),Sc=y(j,ze,(e,t)=>je(e.loginMethod,t)),om=y(j,e=>e.walletConnectLogin),im=y(j,e=>e.ledgerLogin),am=y(j,e=>e.walletLogin),sm=y(j,e=>e.isLoginSessionInvalid),cm=y(j,e=>e.tokenLogin),lm=y(j,e=>e.logoutRoute);n();var Ei=e=>e.modals,dm=y(Ei,e=>e.txSubmittedModal),mm=y(Ei,e=>e.notificationModal);n();var se=e=>e.networkConfig,Tm=y(se,e=>e.chainID),ym=y(se,e=>e.network.walletConnectBridgeAddress),hm=y(se,e=>e.network.walletConnectV2RelayAddress),Sm=y(se,e=>e.network.walletConnectV2ProjectId),xm=y(se,e=>e.network.walletConnectV2Options),wm=y(se,e=>e.network.walletConnectDeepLink),Ie=y(se,e=>e.network),ki=y(Ie,e=>e.apiAddress),Di=y(Ie,e=>e.explorerAddress),Li=y(Ie,e=>e.egldLabel);n();var zt=e=>e.signedMessageInfo,Am=y(zt,e=>e.isSigning),bm=y(zt,e=>e.errorMessage),Em=y(zt,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]}),km=y(zt,e=>{let t=Object.keys(e.signedSessions),r=t.length;return t.length>0?t[r-1]:""});n();var ln=e=>e.toasts,Nm=y(ln,e=>e.customToasts),Cm=y(ln,e=>e.transactionToasts),Pm=y(ln,e=>e.failTransactionToast);n();J();var Ni={errorMessage:en,successMessage:tn,processingMessage:rn},xc=e=>e.transactionsInfo,Om=y(xc,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||Ni);n();n();var te=require("@multiversx/sdk-core"),Pi=require("@multiversx/sdk-core/out/signature");E();n();var dn=require("@multiversx/sdk-core/out");n();n();function pn(e){try{let t=atob(e),r=btoa(t),o=a.Buffer.from(e,"base64").toString(),i=a.Buffer.from(o).toString("base64");if(e===r&&e===i||t===o)return!0}catch(t){return!1}return!1}n();n();function un(e){for(let t=0;t<e.length;t++)if(e.charCodeAt(t)>127)return!1;return!0}function Ye(e){let t=e;try{let r=a.Buffer.from(e,"hex").toString();un(r)&&r.length>1&&(t=r)}catch(r){}return t}n();n();var Ci=e=>{let t=e!=null?e:"";return pn(t)?dn.TransactionPayload.fromEncoded(t):new dn.TransactionPayload(t)};function Kt(e){var r,o,i;let t=new te.Transaction(x(x({value:e.value.valueOf(),data:Ci(e.data),nonce:e.nonce.valueOf(),receiver:new te.Address(e.receiver),sender:new te.Address(e.sender),gasLimit:(r=e.gasLimit.valueOf())!=null?r:Or,gasPrice:(o=e.gasPrice.valueOf())!=null?o:Fr,chainID:e.chainID.valueOf(),version:new te.TransactionVersion((i=e.version)!=null?i:Ao)},e.options?{options:new te.TransactionOptions(e.options)}:{}),e.guardian?{guardian:new te.Address(e.guardian)}:{}));return e.guardianSignature&&t.applyGuardianSignature({hex:()=>e.guardianSignature||""}),e.signature&&t.applySignature(new Pi.Signature(e.signature)),t}n();n();function wc(e,t){let r=new URLSearchParams(e),o=Object.fromEntries(r);return{nextUrlParams:new URLSearchParams(x(x({},o),t)).toString(),params:o}}function Ri({callbackUrl:e,urlParams:t={}}){let r=e;if(Object.entries(t).length>0){let{search:o,origin:i,pathname:l}=new URL(e),{nextUrlParams:p}=wc(o,t);r=`${i}${l}?${p}`}return r}n();n();var fn=require("@reduxjs/toolkit"),oa=require("react-redux/lib/utils/Subscription");J();n();var _i=I(require("lodash.throttle"));E();J();qr();wt();We();var Ic=[St],Yt=!1,vc=(0,_i.default)(()=>{He($e())},5e3),Mi=e=>t=>r=>{var m;if(Ic.includes(r.type))return t(r);let o=e.getState(),i=Ne.local.getItem(we.loginExpiresAt);if(!je((m=o==null?void 0:o.loginInfo)==null?void 0:m.loginMethod,o==null?void 0:o.account.address))return t(r);if(i==null)return He($e());let p=Date.now();return i-p<0&&!Yt?setTimeout(()=>{Yt=!0,e.dispatch($o())},1e3):(Yt&&(Yt=!1),vc()),t(r)};n();n();function Xt(){return typeof sessionStorage!="undefined"}var ta=Xt()?(ji(),Ge(qi)).default:(Ki(),Ge(zi)).default,ra=Xt()?(Xi(),Ge(Yi)).default:[],na=Xt()?(ea(),Ge(Ji)).default:e=>e;Zt();var F=(0,fn.configureStore)({reducer:ta,middleware:e=>e({serializableCheck:{ignoredActions:[...ra,Bo.type,Uo.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(Mi)}),ia=(0,oa.createSubscription)(F),Qg=na(F),Jg=(0,fn.configureStore)({reducer:ve});n();n();var zc=require("@multiversx/sdk-core/out");n();E();n();var sa=require("@multiversx/sdk-core");V();n();var aa=require("@multiversx/sdk-core");function Kc(e){try{let t=new aa.Address(e);return Boolean(t.bech32())}catch(t){return!1}}function Qt(e){return(e==null?void 0:e.startsWith("erd"))&&e.length===62&&/^\w+$/.test(e)&&Kc(e)}n();n();n();var yn=require("@multiversx/sdk-core"),hn=I(require("bignumber.js"));H();var Tn={tokenId:"",amount:""},Yc=e=>e.split("@").map((l,p)=>[2,3].includes(p)?l:Ye(l));function Sn(e){if(!e)return Tn;let t=e.startsWith("ESDTTransfer"),r=e.startsWith("ESDTNFTTransfer")&&e.includes("@");if(t){let[,o,i]=e.split("@");try{let l=a.Buffer.from(o,"hex").toString("ascii");if(!l)return Tn;let p=new hn.default("0x"+i.replace("0x","")).toString(10);return{tokenId:l,amount:p}}catch(l){console.error("Error getting token from transaction data",l)}}if(r)try{let[,o,i,l,p]=Yc(e);if([o,i,l,p].every(d=>Boolean(d))&&Qt(new yn.Address(p).bech32()))return{tokenId:`${o}-${i}`,amount:new hn.default(l,16).toString(10),collection:o,nonce:i,receiver:new yn.Address(p).bech32()}}catch(o){}return Tn}n();n();n();var Ze="accounts";n();n();n();n();B();n();n();B();n();n();n();var tl=I(require("bignumber.js"));E();n();var el=require("@multiversx/sdk-core"),xn=I(require("bignumber.js"));E();n();var Qc=I(require("bignumber.js"));n();xn.default.config({ROUNDING_MODE:xn.default.ROUND_FLOOR});n();n();n();E();n();n();n();n();E();n();E();n();var rl=require("@multiversx/sdk-core");E();n();var Je=require("@multiversx/sdk-core"),ol=require("@multiversx/sdk-network-providers");E();n();n();var nl=I(require("bignumber.js"));E();n();E();n();n();n();n();n();n();E();n();E();n();E();n();B();var al=["reDelegateRewards","claimRewards","unBond"],sl=["wrapEgld","unwrapEgld"],cl=["unStake"],ll=["unDelegate"];n();n();n();E();n();var dl=I(require("bignumber.js"));n();n();B();n();var ml=I(require("bignumber.js"));n();n();function ua({tokenId:e,erdLabel:t}){return Boolean(e&&e!==t)}n();var vn=I(require("bignumber.js"));V();n();var da=(e,t)=>{let r=[],o=e.indexOf(t,0);for(;o>=0;)r.push(o),o=e.indexOf(t,o+1);return r};function ma(e){let t=[],r=0;try{if((e==null?void 0:e.startsWith("MultiESDTNFTTransfer"))&&(e==null?void 0:e.includes("@"))){let[,o,i,...l]=e==null?void 0:e.split("@");if(o){let p=new vn.default(i,16).toNumber(),d=0;for(let T=0;T<p;T++){let w={type:"nftTransaction",data:"",receiver:o};for(let S=0;S<3;S++){switch(S){case 0:w.token=Ye(l[d]),w.data=l[d];break;case 1:{let v=l[d]&&l[d].length?l[d]:"";v&&v!=="00"?w.nonce=v:w.type="esdtTransaction",w.data=`${w.data}@${l[d]}`;break}case 2:w.amount=new vn.default(l[d],16).toString(10),w.data=`${w.data}@${l[d]}`;break;default:break}r=d+1,d++}t[T]=w}let m=t.length!==p,g=t.some(T=>da(T.data,"@").length!==2),f=t.some(T=>T.data.startsWith("@"));if(m||g||f)return[];if(l[r]){let T=l[r];for(let w=r+1;w<l.length;w++)T+="@"+l[w];t[p]={type:"scCall",data:T,receiver:o}}}}}catch(o){return console.error("failed parsing tx",o),t}return t}n();n();n();H();function er(e){let r=Object.getPrototypeOf(e).toPlainObject!=null?e:Kt(e);return b(x({},r.toPlainObject()),{hash:r.getHash().hex(),status:"pending"})}n();var Ta=require("@multiversx/sdk-web-wallet-provider");E();n();var fa=I(require("qs"));n();var tr=e=>{let t=new URLSearchParams(e).toString(),r=window==null?void 0:window.location.pathname,o=t?`?${t}`:"",i=r?`${r}${o}`:"./";setTimeout(()=>{window==null||window.history.replaceState({},document==null?void 0:document.title,i)})};n();var et=()=>typeof window!="undefined"&&typeof(window==null?void 0:window.location)!="undefined";n();var fl={search:et()?window.location.search:"",removeParams:[]},ga=(e,t=fl)=>{var p;let r={},o=et()?window.location.search:"",i=(p=t.search)!=null?p:o;if(i){let d=i?new URLSearchParams(i):[];r=Object.fromEntries(d)}let l={};return e.forEach(d=>{l[d]=r[d],delete r[d]}),t.removeParams!=null&&Object.keys(r).forEach(d=>{var g,f;let[m]=d.split("[");(((g=t.removeParams)==null?void 0:g.includes(d))||((f=t.removeParams)==null?void 0:f.includes(m)))&&delete r[d]}),{remainingParams:l,params:r,clearNavigationHistory:()=>tr(r)}};var rr=({removeParams:e,search:t})=>{let r=et()?window.location.search:"",o=t!=null?t:r;if(!o)return{};let i=fa.default.parse(o.replace("?","")),l=Object.keys(i).filter(d=>!e.includes(d)),{remainingParams:p}=ga(l,{search:t,removeParams:e});return tr(p),p};var ya=({transaction:e,search:t})=>rr({removeParams:[...Object.keys(e),Ta.WALLET_PROVIDER_CALLBACK_PARAM,me],search:t});n();n();n();n();B();n();n();n();var Tl=I(require("linkifyjs"));n();E();n();var yl=I(require("bignumber.js"));n();V();n();n();H();n();H();n();n();n();B();n();B();n();var hl=I(require("bignumber.js"));E();B();n();B();n();var Sa=require("react");V();n();n();B();n();n();var Sl=require("@multiversx/sdk-core/out"),xl=I(require("bignumber.js"));B();n();V();n();n();V();var Zx=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];n();var xa=require("react");V();n();var Il=require("react");B();var ow=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];an();var or=e=>e.transactions,tt=y(or,e=>e.signedTransactions),$w=y(or,e=>e.signTransactionsError),wa=y(or,e=>e.signTransactionsCancelMessage),ir=e=>t=>Object.entries(t).reduce((r,[o,i])=>(e(i.status)&&(r[o]=i),r),{}),Hw=y(tt,ir(pi)),qw=y(tt,ir(Bt)),jw=y(tt,ir(Gt)),zw=y(tt,ir(di)),ar=y(or,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:b(x({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>Kt(r)))||[]})}),Kw=y(tt,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});function va(e){return N(this,null,function*(){let{network:{apiAddress:t,apiTimeout:r}}=se(F.getState()),{data:o}=yield Ia.default.get(`/${Ze}/${e}`,{baseURL:t,timeout:Number(r)});return o})}n();n();var Aa=require("react"),Re=require("react-redux");var vl={store:F,subscription:ia},An=(0,Aa.createContext)(vl),dI=(0,Re.createStoreHook)(An),ge=(0,Re.createDispatchHook)(An),O=(0,Re.createSelectorHook)(An);var ba=()=>O(Ai);n();n();n();n();var ka=require("@multiversx/sdk-extension-provider"),Da=require("@multiversx/sdk-hw-provider"),La=require("@multiversx/sdk-opera-provider"),En=require("@multiversx/sdk-web-wallet-provider");E();H();n();var bn=_e,Ea=bn;var Al="/dapp/init",sr=e=>{switch(e==null?void 0:e.constructor){case En.WalletProvider:return"wallet";case bn:return"walletconnect";case Ea:return"walletconnectv2";case Da.HWProvider:return"ledger";case ka.ExtensionProvider:return"extension";case La.OperaProvider:return"opera";case _e:return"";default:return"extra"}},Na=e=>new En.WalletProvider(`${e}${Al}`);var pe=e=>`Unable to perform ${e}, Provider not initialized`,_e=class{init(){return Promise.resolve(!1)}login(t){throw new Error(pe(`login with options: ${t}`))}logout(t){throw new Error(pe(`logout with options: ${t}`))}getAddress(){throw new Error(pe("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(t,r){throw new Error(pe(`sendTransaction with transactions: ${t} options: ${r}`))}signTransaction(t,r){throw new Error(pe(`signTransaction with transactions: ${t} options: ${r}`))}signTransactions(t,r){throw new Error(pe(`signTransactions with transactions: ${t} options: ${r}`))}signMessage(t,r){throw new Error(pe(`signTransactions with ${t} and options ${r}`))}sendCustomMessage({method:t,params:r}){throw new Error(pe(`sendCustomMessage with method: ${t} params: ${r}`))}sendCustomRequest(t){throw new Error(pe(`sendSessionEvent with options: ${t}`))}ping(){return Promise.resolve(!1)}},kn=new _e;var bl=kn;function rt(){return bl||kn}var cr=()=>{let e=rt(),t=sr(e);return{provider:e,providerType:t}};n();var Ae=require("react"),be=require("@multiversx/sdk-core");n();var nt=require("react");var Ca={tokenId:"",amount:"",type:"",multiTxData:"",receiver:""};function Pa({transactions:e}){let[t,r]=(0,nt.useState)({}),[o,i]=(0,nt.useState)([]);function l(m,g){r(f=>b(x({},f),{[m]:g}))}function p(m,g){return t==null?Ca:m in t?t[m]:g!=null&&String(g)in t?t[g]:Ca}function d(){if(e&&e.length>0){let m=[];e.forEach((g,f)=>{let T=g.getData().toString(),w=ma(T);if(w.length>0)w.forEach((S,v)=>{let P={transaction:g,multiTxData:S.data,transactionIndex:v};l(S.data,{tokenId:S.token?S.token:"",amount:S.amount?S.amount:"",type:S.type,nonce:S.nonce?S.nonce:"",multiTxData:S.data,receiver:S.receiver}),m.push(P)});else{let{tokenId:S,amount:v}=Sn(g.getData().toString());S&&l(g.getData().toString(),{tokenId:S,amount:v,receiver:g.getReceiver().bech32()}),m.push({transaction:g,transactionIndex:f})}}),i(m)}}return(0,nt.useEffect)(()=>{d()},[e==null?void 0:e.length]),{parsedTransactionsByDataField:t,getTxInfoByDataField:p,allTransactions:o}}Xr();n();n();function Ra(e){let t=ar(F.getState()),r=Object.keys(e).length===(t==null?void 0:t.transactions.length);return e&&(e&&r)}n();n();n();var _a=I(require("axios"));n();n();var Dn=e=>{let t=e!=null?e:ki(F.getState());return t.endsWith("/")?t.slice(0,-1):t};function Ma(e){return N(this,null,function*(){if(!e)return null;let r=`${Dn()}/${Ze}/${e}?withGuardianInfo=true`;try{let{data:o}=yield _a.default.get(r);return o}catch(o){console.error("error fetching configuration for ",r)}return null})}function Oa(e){return N(this,null,function*(){return yield Ma(e)})}n();function Fa(e){let t=F.getState(),r=bi(t);return e?r&&!isNaN(r)?Math.max(r,e.nonce):e.nonce:r}n();n();var Ua=({accountNonce:e,transactionNonce:t})=>t&&t>e?t:e;var Ba=({latestNonce:e,transactions:t})=>t.length===0?t:t.map((r,o)=>{let i=e+o,l=r.getNonce().valueOf(),p=Ua({accountNonce:i,transactionNonce:l});return r.setNonce(p),r});var Ga=()=>{let e=O(ze);return t=>N(void 0,null,function*(){let r=yield Oa(e),o=Fa(r);return Ba({latestNonce:o,transactions:t})})};n();var lr=({transactions:e,isGuarded:t})=>t?e.every(o=>Boolean(o.getGuardianSignature().toString("hex"))):!0;n();n();n();Ve();n();var El=I(require("axios"));n();var kl=I(require("axios"));n();Ve();n();Ve();function Ln(e){return So[e]}E();var Va=({transactions:e,hasGuardianScreen:t,callbackRoute:r,sessionId:o,walletAddress:i,isGuarded:l})=>{let p=lr({isGuarded:l,transactions:e});return{needs2FaSigning:l?!t&&!p&&o:!1,sendTransactionsToGuardian:()=>{let g=e[0].getChainID().valueOf(),f=Ln(g),T=i!=null?i:xe[f].walletAddress,w=Na(T),S={[me]:String(o)},v=window!=null&&window.location?`${window.location.origin}${r}`:`${r}`,P=Ri({callbackUrl:v,urlParams:S});w.guardTransactions(e,{callbackUrl:encodeURIComponent(P)})}}};var pr={};function Wa({isLedger:e=!1,transactionsToSign:t,egldLabel:r,address:o,activeGuardianAddress:i,hasGuardianScreen:l,onCancel:p,onSignTransaction:d,onTransactionsSignError:m,onTransactionsSignSuccess:g,onGetScamAddressData:f}){var Rn,_n,Mn;let T=Boolean(i),[w,S]=(0,Ae.useState)(0),[v,P]=(0,Ae.useState)(),[A,re]=(0,Ae.useState)(null),[R,k]=(0,Ae.useState)(!1),{getTxInfoByDataField:ue,allTransactions:z}=Pa({transactions:i?t==null?void 0:t.map(D=>{D.setSender(be.Address.fromBech32(o)),D.setVersion(be.TransactionVersion.withTxOptions()),D.setGuardian(be.Address.fromBech32(i));let M=x({guarded:!0},e?{hashSign:!0}:{});return D.setOptions(be.TransactionOptions.withOptions(M)),D}):t}),Oe=w===z.length-1;(0,Ae.useEffect)(()=>{it()},[w,z]);function it(){return N(this,null,function*(){var On;let D=z[w];if(D==null)return;let{transaction:M,multiTxData:Fe}=D,lt=M.getData().toString(),Tr=ue(M.getData().toString(),Fe),{tokenId:de}=Tr,fe=M.getReceiver().toString(),Ue=o!==fe,rs=fe in pr;if(Ue&&!rs&&f!=null){let pt=yield f(fe);pr=x(x({},pr),pt!=null&&pt.scamInfo?{[fe]:pt.scamInfo}:{})}let ns=Boolean(de&&ua({tokenId:de,erdLabel:r}));re({transaction:M,receiverScamInfo:((On=pr[fe])==null?void 0:On.info)||null,transactionTokenInfo:Tr,isTokenTransaction:ns,dataField:lt})})}function at(){S(0),P(void 0),k(!1)}function st(){return N(this,null,function*(){if(A==null)return;k(e);let D;try{D=yield d(A.transaction)}catch(de){console.error(de,"sign error");let{message:fe}=de,Ue=e?Xo(de).errorMessage:null;return at(),m(Ue!=null?Ue:fe)}let M={[w]:D},Fe=v?x(x({},v),M):M;if(P(Fe),!Oe){S(de=>de+1),k(!1);return}if(!Fe)return;let lt=Object.values(Fe);!lr({isGuarded:T,transactions:lt})&&l||(g(lt),at())})}function ur(){try{if(A==null)return;if(A.transaction.getSignature().toString("hex")&&!Oe){S(M=>M+1);return}st()}catch(D){st()}}let ct=w===0;function ne(){ct?p==null||p():S(D=>D-1)}let dr=Boolean(((Rn=A==null?void 0:A.transactionTokenInfo)==null?void 0:Rn.type)&&((_n=A==null?void 0:A.transactionTokenInfo)==null?void 0:_n.multiTxData)&&!(A!=null&&A.dataField.endsWith((Mn=A==null?void 0:A.transactionTokenInfo)==null?void 0:Mn.multiTxData)));function mr(){dr?S(D=>D+1):ur()}function gr(){S(D=>{let M=D+1;return M>(z==null?void 0:z.length)?D:M})}function fr(){S(D=>{let M=D-1;return M<0?D:M})}return{allTransactions:z,onSignTransaction:mr,onNext:gr,onPrev:fr,waitingForDevice:R,onAbort:ne,isLastTransaction:Oe,isFirstTransaction:w===0,hasMultipleTransactions:z.length>1,shouldContinueWithoutSigning:dr,currentStep:w,signedTransactions:v,setSignedTransactions:P,currentTransaction:A}}J();V();n();n();function $a(){let e=rt();return sr(e)}function Ha(e){return $a()===e}Kr();n();Nr();J();function qa(){let e=ge();return t=>{e(Vt()),e(Ot(t)),e(Ce(yt))}}n();var Me=require("react"),Pn=require("@multiversx/sdk-extension-provider");E();n();n();var Nn=()=>O(Ke);n();n();n();n();n();var ot=I(require("react"));var dA=(0,ot.createContext)({}),mA=F.getState();n();var za=I(require("react"));n();var Cn=I(require("react")),Dl=I(require("axios"));n();n();n();var Ka=require("react"),Ya=require("@multiversx/sdk-web-wallet-provider"),Xa=require("@multiversx/sdk-web-wallet-provider"),Za=I(require("qs"));E();J();H();Pr();function Qa(e){let t=window==null?void 0:window.location.search,r=O(Ie),o=ge();(0,Ka.useEffect)(()=>{if(t!=null){let i=Za.default.parse(t.replace("?",""));if(i&&me in i){let l=String(i[me]),p=new Ya.WalletProvider(`${r.walletAddress}${bo}`).getTransactionsFromWalletUrl();if(i.status==="cancelled"){o(Pe({sessionId:l,status:"cancelled"})),e(),rr({removeParams:[...Object.keys(Cr),Xa.WALLET_PROVIDER_CALLBACK_PARAM,me,"address"],search:t}),o(Ce(yt));return}if(p.length>0){o(Pe({sessionId:l,status:"signed",transactions:p.map(m=>er(m))}));let[d]=p;ya({transaction:d,search:t})}}}},[t])}J();var Ja=()=>{let e=ge(),{provider:t}=cr(),{nonce:r}=Nn(),[o,i]=(0,Me.useState)(null),[l,p]=(0,Me.useState)(),[d,m]=(0,Me.useState)([]),g=Ga(),f=O(ar),T=O(wa),w=()=>N(void 0,null,function*(){var R;let A=Boolean(f==null?void 0:f.transactions),re=(R=f==null?void 0:f.transactions)!=null?R:[];if(A){let k=yield g(re);m(k)}p(A)});(0,Me.useEffect)(()=>{w()},[f,r]);let S=()=>{i(null),e(Ce(null))},v=A=>{S(),P(A)};Qa(v);function P(A){var R,k;let re=t instanceof Pn.ExtensionProvider;e(Vt()),e(Ot(A)),e(si(ht)),re&&(S(),(k=(R=Pn.ExtensionProvider.getInstance())==null?void 0:R.cancelAction)==null||k.call(R))}return{error:o,canceledTransactionsMessage:T,clearTransactionStatusMessage:S,onAbort:v,setError:i,hasTransactions:l,transactionsToSign:f&&b(x({},f),{transactions:d})}};function ts(e){let{onCancel:t,verifyReceiverScam:r=!0,hasGuardianScreen:o}=e,{transactionsToSign:i,hasTransactions:l}=Ja(),p=O(Ie),d=O(Li),{account:m}=ba(),{address:g,isGuarded:f,activeGuardianAddress:T}=m,{provider:w}=cr(),S=ge(),v=qa(),[P,A]=(0,es.useState)(),{transactions:re,sessionId:R,callbackRoute:k,customTransactionInformation:ue}=i||{};function z(ne){R&&S(Pe({sessionId:R,status:"cancelled"})),S(Ti(ne))}let Oe=k!=null&&(window==null?void 0:window.location.pathname.includes(k)),it=!(ue!=null&&ue.skipGuardian);function at(ne){if(!Ra(ne))return;let{needs2FaSigning:mr,sendTransactionsToGuardian:gr}=Va({transactions:ne,sessionId:R,callbackRoute:k,hasGuardianScreen:o,isGuarded:f&&it,walletAddress:p.walletAddress});if(mr)return A(!0),gr();R&&(S(Pe({sessionId:R,status:"signed",transactions:ne.map(fr=>er(fr))})),k!=null&&(ue==null?void 0:ue.redirectAfterSign)&&!Oe&&zr(k))}function st(){t(),v(R)}function ur(ne){return N(this,null,function*(){return yield w.signTransaction(ne)})}let ct=Wa({address:g,egldLabel:d,activeGuardianAddress:f&&it?T:void 0,transactionsToSign:l?re:[],onGetScamAddressData:r?va:null,isLedger:Ha("ledger"),hasGuardianScreen:o,onCancel:st,onSignTransaction:ur,onTransactionsSignError:z,onTransactionsSignSuccess:at});return b(x({},ct),{callbackRoute:k,waitingForDevice:P!=null?P:ct.waitingForDevice})}function Ll(e){return ts(e)}0&&(module.exports={useSignTransactionsWithLedger});
1
+ "use strict";var os=Object.create;var Be=Object.defineProperty,is=Object.defineProperties,as=Object.getOwnPropertyDescriptor,ss=Object.getOwnPropertyDescriptors,cs=Object.getOwnPropertyNames,ut=Object.getOwnPropertySymbols,ls=Object.getPrototypeOf,yr=Object.prototype.hasOwnProperty,Un=Object.prototype.propertyIsEnumerable;var Fn=(e,t,r)=>t in e?Be(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t)=>{for(var r in t||(t={}))yr.call(t,r)&&Fn(e,r,t[r]);if(ut)for(var r of ut(t))Un.call(t,r)&&Fn(e,r,t[r]);return e},b=(e,t)=>is(e,ss(t));var hr=(e,t)=>{var r={};for(var o in e)yr.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&ut)for(var o of ut(e))t.indexOf(o)<0&&Un.call(e,o)&&(r[o]=e[o]);return r};var S=(e,t)=>()=>(e&&(t=e(e=0)),t);var dt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Te=(e,t)=>{for(var r in t)Be(e,r,{get:t[r],enumerable:!0})},Bn=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of cs(t))!yr.call(e,i)&&i!==r&&Be(e,i,{get:()=>t[i],enumerable:!(o=as(t,i))||o.enumerable});return e};var v=(e,t,r)=>(r=e!=null?os(ls(e)):{},Bn(t||!e||!e.__esModule?Be(r,"default",{value:e,enumerable:!0}):r,e)),Ge=e=>Bn(Be({},"__esModule",{value:!0}),e);var C=(e,t,r)=>new Promise((o,i)=>{var l=m=>{try{d(r.next(m))}catch(g){i(g)}},p=m=>{try{d(r.throw(m))}catch(g){i(g)}},d=m=>m.done?o(m.value):Promise.resolve(m.value).then(l,p);d((r=r.apply(e,t)).next())});var Wn=dt(mt=>{"use strict";n();mt.byteLength=us;mt.toByteArray=ms;mt.fromByteArray=Ts;var K=[],W=[],ps=typeof Uint8Array!="undefined"?Uint8Array:Array,Sr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(ye=0,Gn=Sr.length;ye<Gn;++ye)K[ye]=Sr[ye],W[Sr.charCodeAt(ye)]=ye;var ye,Gn;W["-".charCodeAt(0)]=62;W["_".charCodeAt(0)]=63;function Vn(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var o=r===t?0:4-r%4;return[r,o]}function us(e){var t=Vn(e),r=t[0],o=t[1];return(r+o)*3/4-o}function ds(e,t,r){return(t+r)*3/4-r}function ms(e){var t,r=Vn(e),o=r[0],i=r[1],l=new ps(ds(e,o,i)),p=0,d=i>0?o-4:o,m;for(m=0;m<d;m+=4)t=W[e.charCodeAt(m)]<<18|W[e.charCodeAt(m+1)]<<12|W[e.charCodeAt(m+2)]<<6|W[e.charCodeAt(m+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return i===2&&(t=W[e.charCodeAt(m)]<<2|W[e.charCodeAt(m+1)]>>4,l[p++]=t&255),i===1&&(t=W[e.charCodeAt(m)]<<10|W[e.charCodeAt(m+1)]<<4|W[e.charCodeAt(m+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function gs(e){return K[e>>18&63]+K[e>>12&63]+K[e>>6&63]+K[e&63]}function fs(e,t,r){for(var o,i=[],l=t;l<r;l+=3)o=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(e[l+2]&255),i.push(gs(o));return i.join("")}function Ts(e){for(var t,r=e.length,o=r%3,i=[],l=16383,p=0,d=r-o;p<d;p+=l)i.push(fs(e,p,p+l>d?d:p+l));return o===1?(t=e[r-1],i.push(K[t>>2]+K[t<<4&63]+"==")):o===2&&(t=(e[r-2]<<8)+e[r-1],i.push(K[t>>10]+K[t>>4&63]+K[t<<2&63]+"=")),i.join("")}});var $n=dt(xr=>{n();xr.read=function(e,t,r,o,i){var l,p,d=i*8-o-1,m=(1<<d)-1,g=m>>1,f=-7,T=r?i-1:0,w=r?-1:1,h=e[t+T];for(T+=w,l=h&(1<<-f)-1,h>>=-f,f+=d;f>0;l=l*256+e[t+T],T+=w,f-=8);for(p=l&(1<<-f)-1,l>>=-f,f+=o;f>0;p=p*256+e[t+T],T+=w,f-=8);if(l===0)l=1-g;else{if(l===m)return p?NaN:(h?-1:1)*(1/0);p=p+Math.pow(2,o),l=l-g}return(h?-1:1)*p*Math.pow(2,l-o)};xr.write=function(e,t,r,o,i,l){var p,d,m,g=l*8-i-1,f=(1<<g)-1,T=f>>1,w=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=o?0:l-1,I=o?1:-1,N=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(d=isNaN(t)?1:0,p=f):(p=Math.floor(Math.log(t)/Math.LN2),t*(m=Math.pow(2,-p))<1&&(p--,m*=2),p+T>=1?t+=w/m:t+=w*Math.pow(2,1-T),t*m>=2&&(p++,m/=2),p+T>=f?(d=0,p=f):p+T>=1?(d=(t*m-1)*Math.pow(2,i),p=p+T):(d=t*Math.pow(2,T-1)*Math.pow(2,i),p=0));i>=8;e[r+h]=d&255,h+=I,d/=256,i-=8);for(p=p<<i|d,g+=i;g>0;e[r+h]=p&255,h+=I,p/=256,g-=8);e[r+h-I]|=N*128}});var ro=dt(ke=>{"use strict";n();var wr=Wn(),Ee=$n(),Hn=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ke.Buffer=u;ke.SlowBuffer=Is;ke.INSPECT_MAX_BYTES=50;var gt=2147483647;ke.kMaxLength=gt;u.TYPED_ARRAY_SUPPORT=ys();!u.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function ys(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(r){return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.buffer}});Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.byteOffset}});function oe(e){if(e>gt)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return br(e)}return zn(e,t,r)}u.poolSize=8192;function zn(e,t,r){if(typeof e=="string")return Ss(e,t);if(ArrayBuffer.isView(e))return xs(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(Y(e,ArrayBuffer)||e&&Y(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Y(e,SharedArrayBuffer)||e&&Y(e.buffer,SharedArrayBuffer)))return vr(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var o=e.valueOf&&e.valueOf();if(o!=null&&o!==e)return u.from(o,t,r);var i=ws(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return u.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}u.from=function(e,t,r){return zn(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function Kn(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 hs(e,t,r){return Kn(e),e<=0?oe(e):t!==void 0?typeof r=="string"?oe(e).fill(t,r):oe(e).fill(t):oe(e)}u.alloc=function(e,t,r){return hs(e,t,r)};function br(e){return Kn(e),oe(e<0?0:Er(e)|0)}u.allocUnsafe=function(e){return br(e)};u.allocUnsafeSlow=function(e){return br(e)};function Ss(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=Yn(e,t)|0,o=oe(r),i=o.write(e,t);return i!==r&&(o=o.slice(0,i)),o}function Ir(e){for(var t=e.length<0?0:Er(e.length)|0,r=oe(t),o=0;o<t;o+=1)r[o]=e[o]&255;return r}function xs(e){if(Y(e,Uint8Array)){var t=new Uint8Array(e);return vr(t.buffer,t.byteOffset,t.byteLength)}return Ir(e)}function vr(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var o;return t===void 0&&r===void 0?o=new Uint8Array(e):r===void 0?o=new Uint8Array(e,t):o=new Uint8Array(e,t,r),Object.setPrototypeOf(o,u.prototype),o}function ws(e){if(u.isBuffer(e)){var t=Er(e.length)|0,r=oe(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||kr(e.length)?oe(0):Ir(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Ir(e.data)}function Er(e){if(e>=gt)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+gt.toString(16)+" bytes");return e|0}function Is(e){return+e!=e&&(e=0),u.alloc(+e)}u.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==u.prototype};u.compare=function(t,r){if(Y(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),Y(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(t)||!u.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var o=t.length,i=r.length,l=0,p=Math.min(o,i);l<p;++l)if(t[l]!==r[l]){o=t[l],i=r[l];break}return o<i?-1:i<o?1:0};u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};u.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return u.alloc(0);var o;if(r===void 0)for(r=0,o=0;o<t.length;++o)r+=t[o].length;var i=u.allocUnsafe(r),l=0;for(o=0;o<t.length;++o){var p=t[o];if(Y(p,Uint8Array))l+p.length>i.length?u.from(p).copy(i,l):Uint8Array.prototype.set.call(i,p,l);else if(u.isBuffer(p))p.copy(i,l);else throw new TypeError('"list" argument must be an Array of Buffers');l+=p.length}return i};function Yn(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Y(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,o=arguments.length>2&&arguments[2]===!0;if(!o&&r===0)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Ar(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return to(e).length;default:if(i)return o?-1:Ar(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=Yn;function vs(e,t,r){var o=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return Rs(this,t,r);case"utf8":case"utf-8":return Zn(this,t,r);case"ascii":return Cs(this,t,r);case"latin1":case"binary":return Ps(this,t,r);case"base64":return Ls(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _s(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}u.prototype._isBuffer=!0;function he(e,t,r){var o=e[t];e[t]=e[r],e[r]=o}u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)he(this,r,r+1);return this};u.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)he(this,r,r+3),he(this,r+1,r+2);return this};u.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)he(this,r,r+7),he(this,r+1,r+6),he(this,r+2,r+5),he(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?Zn(this,0,t):vs.apply(this,arguments)};u.prototype.toLocaleString=u.prototype.toString;u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:u.compare(this,t)===0};u.prototype.inspect=function(){var t="",r=ke.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};Hn&&(u.prototype[Hn]=u.prototype.inspect);u.prototype.compare=function(t,r,o,i,l){if(Y(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),o===void 0&&(o=t?t.length:0),i===void 0&&(i=0),l===void 0&&(l=this.length),r<0||o>t.length||i<0||l>this.length)throw new RangeError("out of range index");if(i>=l&&r>=o)return 0;if(i>=l)return-1;if(r>=o)return 1;if(r>>>=0,o>>>=0,i>>>=0,l>>>=0,this===t)return 0;for(var p=l-i,d=o-r,m=Math.min(p,d),g=this.slice(i,l),f=t.slice(r,o),T=0;T<m;++T)if(g[T]!==f[T]){p=g[T],d=f[T];break}return p<d?-1:d<p?1:0};function Xn(e,t,r,o,i){if(e.length===0)return-1;if(typeof r=="string"?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,kr(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=u.from(t,o)),u.isBuffer(t))return t.length===0?-1:qn(e,t,r,o,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):qn(e,[t],r,o,i);throw new TypeError("val must be string, number or Buffer")}function qn(e,t,r,o,i){var l=1,p=e.length,d=t.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(e.length<2||t.length<2)return-1;l=2,p/=2,d/=2,r/=2}function m(h,I){return l===1?h[I]:h.readUInt16BE(I*l)}var g;if(i){var f=-1;for(g=r;g<p;g++)if(m(e,g)===m(t,f===-1?0:g-f)){if(f===-1&&(f=g),g-f+1===d)return f*l}else f!==-1&&(g-=g-f),f=-1}else for(r+d>p&&(r=p-d),g=r;g>=0;g--){for(var T=!0,w=0;w<d;w++)if(m(e,g+w)!==m(t,w)){T=!1;break}if(T)return g}return-1}u.prototype.includes=function(t,r,o){return this.indexOf(t,r,o)!==-1};u.prototype.indexOf=function(t,r,o){return Xn(this,t,r,o,!0)};u.prototype.lastIndexOf=function(t,r,o){return Xn(this,t,r,o,!1)};function As(e,t,r,o){r=Number(r)||0;var i=e.length-r;o?(o=Number(o),o>i&&(o=i)):o=i;var l=t.length;o>l/2&&(o=l/2);for(var p=0;p<o;++p){var d=parseInt(t.substr(p*2,2),16);if(kr(d))return p;e[r+p]=d}return p}function bs(e,t,r,o){return ft(Ar(t,e.length-r),e,r,o)}function Es(e,t,r,o){return ft(Fs(t),e,r,o)}function ks(e,t,r,o){return ft(to(t),e,r,o)}function Ds(e,t,r,o){return ft(Us(t,e.length-r),e,r,o)}u.prototype.write=function(t,r,o,i){if(r===void 0)i="utf8",o=this.length,r=0;else if(o===void 0&&typeof r=="string")i=r,o=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(o)?(o=o>>>0,i===void 0&&(i="utf8")):(i=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var l=this.length-r;if((o===void 0||o>l)&&(o=l),t.length>0&&(o<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var p=!1;;)switch(i){case"hex":return As(this,t,r,o);case"utf8":case"utf-8":return bs(this,t,r,o);case"ascii":case"latin1":case"binary":return Es(this,t,r,o);case"base64":return ks(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ds(this,t,r,o);default:if(p)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),p=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ls(e,t,r){return t===0&&r===e.length?wr.fromByteArray(e):wr.fromByteArray(e.slice(t,r))}function Zn(e,t,r){r=Math.min(e.length,r);for(var o=[],i=t;i<r;){var l=e[i],p=null,d=l>239?4:l>223?3:l>191?2:1;if(i+d<=r){var m,g,f,T;switch(d){case 1:l<128&&(p=l);break;case 2:m=e[i+1],(m&192)===128&&(T=(l&31)<<6|m&63,T>127&&(p=T));break;case 3:m=e[i+1],g=e[i+2],(m&192)===128&&(g&192)===128&&(T=(l&15)<<12|(m&63)<<6|g&63,T>2047&&(T<55296||T>57343)&&(p=T));break;case 4:m=e[i+1],g=e[i+2],f=e[i+3],(m&192)===128&&(g&192)===128&&(f&192)===128&&(T=(l&15)<<18|(m&63)<<12|(g&63)<<6|f&63,T>65535&&T<1114112&&(p=T))}}p===null?(p=65533,d=1):p>65535&&(p-=65536,o.push(p>>>10&1023|55296),p=56320|p&1023),o.push(p),i+=d}return Ns(o)}var jn=4096;function Ns(e){var t=e.length;if(t<=jn)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=jn));return r}function Cs(e,t,r){var o="";r=Math.min(e.length,r);for(var i=t;i<r;++i)o+=String.fromCharCode(e[i]&127);return o}function Ps(e,t,r){var o="";r=Math.min(e.length,r);for(var i=t;i<r;++i)o+=String.fromCharCode(e[i]);return o}function Rs(e,t,r){var o=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>o)&&(r=o);for(var i="",l=t;l<r;++l)i+=Bs[e[l]];return i}function _s(e,t,r){for(var o=e.slice(t,r),i="",l=0;l<o.length-1;l+=2)i+=String.fromCharCode(o[l]+o[l+1]*256);return i}u.prototype.slice=function(t,r){var o=this.length;t=~~t,r=r===void 0?o:~~r,t<0?(t+=o,t<0&&(t=0)):t>o&&(t=o),r<0?(r+=o,r<0&&(r=0)):r>o&&(r=o),r<t&&(r=t);var i=this.subarray(t,r);return Object.setPrototypeOf(i,u.prototype),i};function _(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||_(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return i};u.prototype.readUintBE=u.prototype.readUIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||_(t,r,this.length);for(var i=this[t+--r],l=1;r>0&&(l*=256);)i+=this[t+--r]*l;return i};u.prototype.readUint8=u.prototype.readUInt8=function(t,r){return t=t>>>0,r||_(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||_(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||_(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||_(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||_(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};u.prototype.readIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||_(t,r,this.length);for(var i=this[t],l=1,p=0;++p<r&&(l*=256);)i+=this[t+p]*l;return l*=128,i>=l&&(i-=Math.pow(2,8*r)),i};u.prototype.readIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||_(t,r,this.length);for(var i=r,l=1,p=this[t+--i];i>0&&(l*=256);)p+=this[t+--i]*l;return l*=128,p>=l&&(p-=Math.pow(2,8*r)),p};u.prototype.readInt8=function(t,r){return t=t>>>0,r||_(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||_(t,2,this.length);var o=this[t]|this[t+1]<<8;return o&32768?o|4294901760:o};u.prototype.readInt16BE=function(t,r){t=t>>>0,r||_(t,2,this.length);var o=this[t+1]|this[t]<<8;return o&32768?o|4294901760:o};u.prototype.readInt32LE=function(t,r){return t=t>>>0,r||_(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};u.prototype.readInt32BE=function(t,r){return t=t>>>0,r||_(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};u.prototype.readFloatLE=function(t,r){return t=t>>>0,r||_(t,4,this.length),Ee.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||_(t,4,this.length),Ee.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||_(t,8,this.length),Ee.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||_(t,8,this.length),Ee.read(this,t,!1,52,8)};function U(e,t,r,o,i,l){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<l)throw new RangeError('"value" argument is out of bounds');if(r+o>e.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var l=Math.pow(2,8*o)-1;U(this,t,r,o,l,0)}var p=1,d=0;for(this[r]=t&255;++d<o&&(p*=256);)this[r+d]=t/p&255;return r+o};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,o=o>>>0,!i){var l=Math.pow(2,8*o)-1;U(this,t,r,o,l,0)}var p=o-1,d=1;for(this[r+p]=t&255;--p>=0&&(d*=256);)this[r+p]=t/d&255;return r+o};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,o){return t=+t,r=r>>>0,o||U(this,t,r,1,255,0),this[r]=t&255,r+1};u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||U(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||U(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||U(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||U(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};u.prototype.writeIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);U(this,t,r,o,l-1,-l)}var p=0,d=1,m=0;for(this[r]=t&255;++p<o&&(d*=256);)t<0&&m===0&&this[r+p-1]!==0&&(m=1),this[r+p]=(t/d>>0)-m&255;return r+o};u.prototype.writeIntBE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);U(this,t,r,o,l-1,-l)}var p=o-1,d=1,m=0;for(this[r+p]=t&255;--p>=0&&(d*=256);)t<0&&m===0&&this[r+p+1]!==0&&(m=1),this[r+p]=(t/d>>0)-m&255;return r+o};u.prototype.writeInt8=function(t,r,o){return t=+t,r=r>>>0,o||U(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};u.prototype.writeInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||U(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||U(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||U(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};u.prototype.writeInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||U(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function Qn(e,t,r,o,i,l){if(r+o>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Jn(e,t,r,o,i){return t=+t,r=r>>>0,i||Qn(e,t,r,4,34028234663852886e22,-34028234663852886e22),Ee.write(e,t,r,o,23,4),r+4}u.prototype.writeFloatLE=function(t,r,o){return Jn(this,t,r,!0,o)};u.prototype.writeFloatBE=function(t,r,o){return Jn(this,t,r,!1,o)};function eo(e,t,r,o,i){return t=+t,r=r>>>0,i||Qn(e,t,r,8,17976931348623157e292,-17976931348623157e292),Ee.write(e,t,r,o,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,o){return eo(this,t,r,!0,o)};u.prototype.writeDoubleBE=function(t,r,o){return eo(this,t,r,!1,o)};u.prototype.copy=function(t,r,o,i){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(o||(o=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<o&&(i=o),i===o||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-o&&(i=t.length-r+o);var l=i-o;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,o,i):Uint8Array.prototype.set.call(t,this.subarray(o,i),r),l};u.prototype.fill=function(t,r,o,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,o=this.length):typeof o=="string"&&(i=o,o=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t.length===1){var l=t.charCodeAt(0);(i==="utf8"&&l<128||i==="latin1")&&(t=l)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<o)throw new RangeError("Out of range index");if(o<=r)return this;r=r>>>0,o=o===void 0?this.length:o>>>0,t||(t=0);var p;if(typeof t=="number")for(p=r;p<o;++p)this[p]=t;else{var d=u.isBuffer(t)?t:u.from(t,i),m=d.length;if(m===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(p=0;p<o-r;++p)this[p+r]=d[p%m]}return this};var Ms=/[^+/0-9A-Za-z-_]/g;function Os(e){if(e=e.split("=")[0],e=e.trim().replace(Ms,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Ar(e,t){t=t||1/0;for(var r,o=e.length,i=null,l=[],p=0;p<o;++p){if(r=e.charCodeAt(p),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&l.push(239,191,189);continue}else if(p+1===o){(t-=3)>-1&&l.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&l.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&l.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;l.push(r)}else if(r<2048){if((t-=2)<0)break;l.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;l.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;l.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return l}function Fs(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function Us(e,t){for(var r,o,i,l=[],p=0;p<e.length&&!((t-=2)<0);++p)r=e.charCodeAt(p),o=r>>8,i=r%256,l.push(i),l.push(o);return l}function to(e){return wr.toByteArray(Os(e))}function ft(e,t,r,o){for(var i=0;i<o&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function Y(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function kr(e){return e!==e}var Bs=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var o=r*16,i=0;i<16;++i)t[o+i]=e[r]+e[i];return t}()});var so=dt((Ml,ao)=>{n();var L=ao.exports={},X,Z;function Dr(){throw new Error("setTimeout has not been defined")}function Lr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?X=setTimeout:X=Dr}catch(e){X=Dr}try{typeof clearTimeout=="function"?Z=clearTimeout:Z=Lr}catch(e){Z=Lr}})();function no(e){if(X===setTimeout)return setTimeout(e,0);if((X===Dr||!X)&&setTimeout)return X=setTimeout,setTimeout(e,0);try{return X(e,0)}catch(t){try{return X.call(null,e,0)}catch(r){return X.call(this,e,0)}}}function Gs(e){if(Z===clearTimeout)return clearTimeout(e);if((Z===Lr||!Z)&&clearTimeout)return Z=clearTimeout,clearTimeout(e);try{return Z(e)}catch(t){try{return Z.call(null,e)}catch(r){return Z.call(this,e)}}}var ie=[],De=!1,Se,Tt=-1;function Vs(){!De||!Se||(De=!1,Se.length?ie=Se.concat(ie):Tt=-1,ie.length&&oo())}function oo(){if(!De){var e=no(Vs);De=!0;for(var t=ie.length;t;){for(Se=ie,ie=[];++Tt<t;)Se&&Se[Tt].run();Tt=-1,t=ie.length}Se=null,De=!1,Gs(e)}}L.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];ie.push(new io(e,t)),ie.length===1&&!De&&no(oo)};function io(e,t){this.fun=e,this.array=t}io.prototype.run=function(){this.fun.apply(null,this.array)};L.title="browser";L.browser=!0;L.env={};L.argv=[];L.version="";L.versions={};function ae(){}L.on=ae;L.addListener=ae;L.once=ae;L.off=ae;L.removeListener=ae;L.removeAllListeners=ae;L.emit=ae;L.prependListener=ae;L.prependOnceListener=ae;L.listeners=function(e){return[]};L.binding=function(e){throw new Error("process.binding is not supported")};L.cwd=function(){return"/"};L.chdir=function(e){throw new Error("process.chdir is not supported")};L.umask=function(){return 0}});var a,s,Ol,n=S(()=>{a=v(ro()),s=v(so()),Ol=function(e){function t(){var o=this||self;return delete e.prototype.__magic__,o}if(typeof globalThis=="object")return globalThis;if(this)return t();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:t});var r=__magic__;return r}(Object)});var yt,Nr=S(()=>{"use strict";n();yt="Transaction canceled"});var Cr,Pr=S(()=>{"use strict";n();Cr=(o=>(o.signature="signature",o.sessionId="sessionId",o.status="status",o))(Cr||{})});var co=S(()=>{"use strict";n()});var lo=S(()=>{"use strict";n()});var H=S(()=>{"use strict";n()});var po=S(()=>{"use strict";n()});var uo=S(()=>{"use strict";n()});var B=S(()=>{"use strict";n()});var mo=S(()=>{"use strict";n()});var go=S(()=>{"use strict";n()});var fo=S(()=>{"use strict";n()});var V=S(()=>{"use strict";n();Pr();co();lo();H();po();uo();B();mo();go();fo()});var xe,To,rp,yo,np,ho,op,ip,So,Ve=S(()=>{"use strict";n();V();xe={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:To,egldLabel:rp}=xe["devnet"],{chainId:yo,egldLabel:np}=xe["testnet"],{chainId:ho,egldLabel:op}=xe["mainnet"],ip={["devnet"]:To,["testnet"]:yo,["mainnet"]:ho},So={[To]:"devnet",[yo]:"testnet",[ho]:"mainnet"}});var Rr,_r=S(()=>{"use strict";n();Rr={36864:{code:"codeSuccess",message:"Success"},27013:{code:"ERR_USER_DENIED",message:"Rejected by user"},27904:{code:"ERR_UNKNOWN_INSTRUCTION",message:"Unknown instruction"},28160:{code:"ERR_WRONG_CLA",message:"Wrong CLA"},28161:{code:"ERR_INVALID_ARGUMENTS",message:"Invalid arguments"},28162:{code:"ERR_INVALID_MESSAGE",message:"Invalid message"},28163:{code:"ERR_INVALID_P1",message:"Invalid P1"},28164:{code:"ERR_MESSAGE_TOO_LONG",message:"Message too long"},28165:{code:"ERR_RECEIVER_TOO_LONG",message:"Receiver too long"},28166:{code:"ERR_AMOUNT_TOO_LONG",message:"Amount too long"},28167:{code:"ERR_CONTRACT_DATA_DISABLED",message:"Contract data disabled in app options"},28168:{code:"ERR_MESSAGE_INCOMPLETE",message:"Message incomplete"},28176:{code:"ERR_SIGNATURE_FAILED",message:"Signature failed"},28169:{code:"ERR_WRONG_TX_VERSION",message:"Wrong TX version"},28170:{code:"ERR_NONCE_TOO_LONG",message:"Nonce too long"},28171:{code:"ERR_INVALID_AMOUNT",message:"Invalid amount"},28172:{code:"ERR_INVALID_FEE",message:"Invalid fee"},28173:{code:"ERR_PRETTY_FAILED",message:"Pretty failed"},28174:{code:"ERR_DATA_TOO_LONG",message:"Data too long"},28175:{code:"ERR_WRONG_TX_OPTIONS",message:"Invalid transaction options"},28177:{code:"ERR_SIGN_TX_DEPRECATED",message:"Regular transaction signing is deprecated in this version. Use hash signing."}}});var xo=S(()=>{"use strict";n()});var ht,Mr=S(()=>{"use strict";n();ht="transaction-status-toast-id"});var Q,wo=S(()=>{"use strict";n();Q=require("@multiversx/sdk-web-wallet-provider")});var Io=S(()=>{"use strict";n()});var vo=S(()=>{"use strict";n()});var Or,Fr,Ao,bo,me,St,Eo,Le,E=S(()=>{"use strict";n();Nr();Ve();_r();xo();Mr();wo();Io();vo();Or=5e4,Fr=1e9,Ao=1,bo="/dapp/init",me="signSession",St="logout",Eo="login",Le="0"});var xt,Ur=S(()=>{"use strict";n();xt=()=>Date.now()/1e3});var ko=S(()=>{"use strict";n()});var Do=S(()=>{"use strict";n()});var Lo=S(()=>{"use strict";n();Ur();ko();Do()});var Gr={};Te(Gr,{getItem:()=>$s,localStorageKeys:()=>we,removeItem:()=>Hs,setItem:()=>Ws});var we,Br,Ws,$s,Hs,We=S(()=>{"use strict";n();Lo();we={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},Br=typeof localStorage!="undefined",Ws=({key:e,data:t,expires:r})=>{!Br||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},$s=e=>{if(!Br)return;let t=localStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:xt()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},Hs=e=>{!Br||localStorage.removeItem(String(e))}});var Vr={};Te(Vr,{clear:()=>Ro,getItem:()=>Co,removeItem:()=>Po,setItem:()=>No,storage:()=>qs});var No,Co,Po,Ro,qs,_o=S(()=>{"use strict";n();No=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Co=e=>{let t=sessionStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Date.now()>=r.expires?(sessionStorage.removeItem(String(e)),null):r.data},Po=e=>sessionStorage.removeItem(String(e)),Ro=()=>sessionStorage.clear(),qs={setItem:No,getItem:Co,removeItem:Po,clear:Ro}});var Ne,wt=S(()=>{"use strict";n();We();_o();Ne={session:Vr,local:Gr}});var Wr,P,It,q=S(()=>{"use strict";n();Wr=require("@reduxjs/toolkit");E();P=(0,Wr.createAction)(St),It=(0,Wr.createAction)(Eo,e=>({payload:e}))});var Hr,Mo,Oo,vt,$r,Fo,Uo,Bp,Bo,Gp,Vp,Wp,$p,Hp,qp,jp,zp,At,bt=S(()=>{"use strict";n();Hr=require("@multiversx/sdk-core"),Mo=require("@reduxjs/toolkit"),Oo=require("redux-persist");E();wt();We();q();vt={balance:"...",address:"",isGuarded:!1,nonce:0,txCount:0,scrCount:0,claimableRewards:Le},$r={address:"",websocketEvent:null,websocketBatchEvent:null,accounts:{"":vt},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Fo=(0,Mo.createSlice)({name:"accountInfoSlice",initialState:$r,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new Hr.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:vt},e.shard=t.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,t)=>{let{address:r}=e;e.accounts[r].nonce=t.payload},setAccountShard:(e,t)=>{e.shard=t.payload},setLedgerAccount:(e,t)=>{e.ledgerAccount=t.payload},updateLedgerAccount:(e,t)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=t.payload.index,e.ledgerAccount.address=t.payload.address)},setWalletConnectAccount:(e,t)=>{e.walletConnectAccount=t.payload},setIsAccountLoading:(e,t)=>{e.isAccountLoading=t.payload,e.accountLoadingError=null},setAccountLoadingError:(e,t)=>{e.accountLoadingError=t.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,t)=>{e.websocketEvent={timestamp:Date.now(),message:t.payload}},setWebsocketBatchEvent:(e,t)=>{e.websocketBatchEvent={timestamp:Date.now(),data:t.payload}}},extraReducers:e=>{e.addCase(P,()=>(Ne.local.removeItem(we.loginExpiresAt),$r)),e.addCase(It,(t,r)=>{let{address:o}=r.payload;t.address=o,t.publicKey=new Hr.Address(o).hex()}),e.addCase(Oo.REHYDRATE,(t,r)=>{var g;if(!((g=r.payload)!=null&&g.account))return;let{account:o}=r.payload,{address:i,shard:l,accounts:p,publicKey:d}=o;t.address=i,t.shard=l;let m=p&&i in p;t.accounts=m?p:$r.accounts,t.publicKey=d})}}),{setAccount:Uo,setAddress:Bp,setAccountNonce:Bo,setAccountShard:Gp,setLedgerAccount:Vp,updateLedgerAccount:Wp,setWalletConnectAccount:$p,setIsAccountLoading:Hp,setAccountLoadingError:qp,setWebsocketEvent:jp,setWebsocketBatchEvent:zp}=Fo.actions,At=Fo.reducer});function $e(){return new Date().setHours(new Date().getHours()+24)}function He(e){Ne.local.setItem({key:we.loginExpiresAt,data:e,expires:e})}var qr=S(()=>{"use strict";n();wt();We()});var Vo,Go,Wo,nu,ou,iu,au,su,cu,$o,lu,Et,kt=S(()=>{"use strict";n();Vo=require("@reduxjs/toolkit");qr();H();q();Go={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},Wo=(0,Vo.createSlice)({name:"loginInfoSlice",initialState:Go,reducers:{setLoginMethod:(e,t)=>{e.loginMethod=t.payload},setTokenLogin:(e,t)=>{e.tokenLogin=t.payload},setTokenLoginSignature:(e,t)=>{(e==null?void 0:e.tokenLogin)!=null&&(e.tokenLogin.signature=t.payload)},setWalletLogin:(e,t)=>{e.walletLogin=t.payload},setWalletConnectLogin:(e,t)=>{e.walletConnectLogin=t.payload},setLedgerLogin:(e,t)=>{e.ledgerLogin=t.payload},invalidateLoginSession:e=>{e.isLoginSessionInvalid=!0},setLogoutRoute:(e,t)=>{e.logoutRoute=t.payload}},extraReducers:e=>{e.addCase(P,()=>Go),e.addCase(It,(t,r)=>{t.loginMethod=r.payload.loginMethod,He($e())})}}),{setLoginMethod:nu,setWalletConnectLogin:ou,setLedgerLogin:iu,setTokenLogin:au,setTokenLoginSignature:su,setWalletLogin:cu,invalidateLoginSession:$o,setLogoutRoute:lu}=Wo.actions,Et=Wo.reducer});var qo,Ho,jo,mu,gu,fu,Tu,Dt,Lt=S(()=>{"use strict";n();qo=require("@reduxjs/toolkit");q();Ho={},jo=(0,qo.createSlice)({name:"modalsSlice",initialState:Ho,reducers:{setTxSubmittedModal:(e,t)=>{e.txSubmittedModal=t.payload},setNotificationModal:(e,t)=>{e.notificationModal=t.payload},clearTxSubmittedModal:e=>{e.txSubmittedModal=void 0},clearNotificationModal:e=>{e.notificationModal=void 0}},extraReducers:e=>{e.addCase(P,()=>Ho)}}),{setTxSubmittedModal:mu,setNotificationModal:gu,clearTxSubmittedModal:fu,clearNotificationModal:Tu}=jo.actions,Dt=jo.reducer});var js,zr,Kr=S(()=>{"use strict";n();js=!1,zr=(e,t=0)=>{js||setTimeout(()=>{!window||(window.location.href=e,window.location.assign(e))},t)}});var zo=S(()=>{"use strict";n();Kr()});function Yr(e){return e[Math.floor(Math.random()*e.length)]}var Ko=S(()=>{"use strict";n()});function Xo(e){let t=null;if((e==null?void 0:e.statusCode)in Rr){let r=e==null?void 0:e.statusCode,{message:o}=Rr[r];t=Ys.includes(r)?Yo:o}return{errorMessage:t,defaultErrorMessage:Yo}}var Yo,zs,Ks,Ys,Xr=S(()=>{"use strict";n();_r();Yo="Check if the MultiversX app is open on Ledger",zs=28161,Ks=28160,Ys=[zs,Ks]});var Zo=S(()=>{"use strict";n();zo();Ko();Xr()});var Qo,Jo,Zr,Xs,ei,Nu,Cu,Nt,Ct=S(()=>{"use strict";n();Qo=require("@reduxjs/toolkit"),Jo=v(require("lodash.omit"));Zo();Zr={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},Xs={network:Zr,chainID:"-1"},ei=(0,Qo.createSlice)({name:"appConfig",initialState:Xs,reducers:{initializeNetworkConfig:(e,t)=>{let r=Yr(t.payload.walletConnectBridgeAddresses),o=Yr(t.payload.walletConnectV2RelayAddresses),i=(0,Jo.default)(t.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");e.network=b(x(x({},e.network),i),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:o})},setChainID:(e,t)=>{e.chainID=t.payload}}}),{initializeNetworkConfig:Nu,setChainID:Cu}=ei.actions,Nt=ei.reducer});var ti,Qr,ri,Fu,Uu,Bu,Pt,Rt=S(()=>{"use strict";n();ti=require("@reduxjs/toolkit");V();q();Qr={isSigning:!1,signedSessions:{}},ri=(0,ti.createSlice)({name:"signedMessageInfoSliceState",initialState:Qr,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:o,errorMessage:i}=t.payload;i&&(e.errorMessage=i),e.isSigning=o.status==="pending",e.signedSessions[r]=o},setSignSessionState:(e,t)=>x(x({},e),t.payload),clearSignedMessageInfo:()=>Qr},extraReducers:e=>{e.addCase(P,()=>Qr)}}),{setSignSession:Fu,clearSignedMessageInfo:Uu,setSignSessionState:Bu}=ri.actions,Pt=ri.reducer});var oi,ii,ni,ai,zu,si,Ku,Yu,Xu,Zu,_t,Mt=S(()=>{"use strict";n();oi=require("@reduxjs/toolkit"),ii=require("redux-persist");Mr();V();Ur();q();ni={customToasts:[],transactionToasts:[],failTransactionToast:null},ai=(0,oi.createSlice)({name:"toastsSlice",initialState:ni,reducers:{addCustomToast:(e,t)=>{e.customToasts.push(b(x({},t.payload),{type:"custom",toastId:t.payload.toastId||`custom-toast-${e.customToasts.length+1}`}))},removeCustomToast:(e,t)=>{e.customToasts=e.customToasts.filter(r=>r.toastId!==t.payload)},addTransactionToast:(e,t)=>{e.transactionToasts.push({type:"transaction",startTimestamp:xt(),toastId:t.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,t)=>{e.transactionToasts=e.transactionToasts.filter(r=>r.toastId!==t.payload)},addFailTransactionToast:(e,t)=>{e.failTransactionToast=b(x({},t.payload),{toastId:ht})},removeFailTransactionToast:e=>{e.failTransactionToast=null}},extraReducers:e=>{e.addCase(P,()=>ni),e.addCase(ii.REHYDRATE,(t,r)=>{var i,l;let o=(l=(i=r.customToasts)==null?void 0:i.filter(p=>!("component"in p)))!=null?l:[];t.customToasts=o})}}),{addCustomToast:zu,removeCustomToast:si,addTransactionToast:Ku,removeTransactionToast:Yu,addFailTransactionToast:Xu,removeFailTransactionToast:Zu}=ai.actions,_t=ai.reducer});var ci,en,tn,rn,Zs,Jr,li,td,rd,Ot,Ft,Ut=S(()=>{"use strict";n();ci=require("@reduxjs/toolkit");q();en="Transaction failed",tn="Transaction successful",rn="Processing transaction",Zs="Transaction submitted",Jr={},li=(0,ci.createSlice)({name:"transactionsInfo",initialState:Jr,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:o}=t.payload;r!=null&&(e[r]={errorMessage:(o==null?void 0:o.errorMessage)||en,successMessage:(o==null?void 0:o.successMessage)||tn,processingMessage:(o==null?void 0:o.processingMessage)||rn,submittedMessage:(o==null?void 0:o.submittedMessage)||Zs,transactionDuration:o==null?void 0:o.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>Jr},extraReducers:e=>{e.addCase(P,()=>Jr)}}),{clearTransactionsInfo:td,setTransactionsDisplayInfo:rd,clearTransactionsInfoForSessionId:Ot}=li.actions,Ft=li.reducer});function pi(e){return e!=null&&(sc(e)||dc(e))}function Bt(e){return e!=null&&(cc(e)||mc(e))}function Gt(e){return e!=null&&(lc(e)||gc(e))}function ui(e){return e!=null&&(pc(e)||fc(e))}function di(e){return e!=null&&uc(e)}function sc(e){return e!=null&&Qs.includes(e)}function cc(e){return e!=null&&Js.includes(e)}function lc(e){return e!=null&&ec.includes(e)}function pc(e){return e!=null&&tc.includes(e)}function uc(e){return e!=null&&rc.includes(e)}function dc(e){return e!=null&&nc.includes(e)}function mc(e){return e!=null&&oc.includes(e)}function gc(e){return e!=null&&ic.includes(e)}function fc(e){return e!=null&&ac.includes(e)}var Qs,Js,ec,tc,rc,nc,oc,ic,ac,an=S(()=>{"use strict";n();H();Qs=["sent"],Js=["success"],ec=["fail","cancelled","timedOut"],tc=["invalid"],rc=["timedOut"],nc=["pending"],oc=["success"],ic=["fail","invalid"],ac=["not executed"]});var mi,gi,qe,Tc,fi,ud,dd,md,Vt,gd,fd,Td,Ti,Ce,Pe,Wt,$t=S(()=>{"use strict";n();mi=require("@reduxjs/toolkit"),gi=require("redux-persist");H();an();q();qe={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},Tc={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},fi=(0,mi.createSlice)({name:"transactionsSlice",initialState:qe,reducers:{moveTransactionsToSignedState:(e,t)=>{var g,f;let{sessionId:r,transactions:o,errorMessage:i,status:l,redirectRoute:p,customTransactionInformation:d={}}=t.payload,m=((g=e.customTransactionInformationForSessionId)==null?void 0:g[r])||Tc;e.signedTransactions[r]={transactions:o,status:l,errorMessage:i,redirectRoute:p,customTransactionInformation:x(x({},m),d)},((f=e==null?void 0:e.transactionsToSign)==null?void 0:f.sessionId)===r&&(e.transactionsToSign=qe.transactionsToSign)},clearSignedTransaction:(e,t)=>{e.signedTransactions[t.payload]&&delete e.signedTransactions[t.payload]},clearTransactionToSign:e=>{e!=null&&e.transactionsToSign&&(e.transactionsToSign=null)},updateSignedTransaction:(e,t)=>{e.signedTransactions=x(x({},e.signedTransactions),t.payload)},updateSignedTransactions:(e,t)=>{let{sessionId:r,status:o,errorMessage:i,transactions:l}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].status=o,i!=null&&(e.signedTransactions[r].errorMessage=i),l!=null&&(e.signedTransactions[r].transactions=l))},updateSignedTransactionStatus:(e,t)=>{var m,g,f,T,w,h,I,N;let{sessionId:r,status:o,errorMessage:i,transactionHash:l,inTransit:p}=t.payload,d=(g=(m=e.signedTransactions)==null?void 0:m[r])==null?void 0:g.transactions;if(d!=null){e.signedTransactions[r].transactions=d.map(k=>k.hash===l?b(x({},k),{status:o,errorMessage:i,inTransit:p}):k);let A=(T=(f=e.signedTransactions[r])==null?void 0:f.transactions)==null?void 0:T.every(k=>Bt(k.status)),re=(h=(w=e.signedTransactions[r])==null?void 0:w.transactions)==null?void 0:h.every(k=>Gt(k.status)),R=(N=(I=e.signedTransactions[r])==null?void 0:I.transactions)==null?void 0:N.every(k=>ui(k.status));A&&(e.signedTransactions[r].status="success"),re&&(e.signedTransactions[r].status="fail"),R&&(e.signedTransactions[r].status="invalid")}},setTransactionsToSign:(e,t)=>{e.transactionsToSign=t.payload;let{sessionId:r,customTransactionInformation:o}=t.payload;e.customTransactionInformationForSessionId[r]=o,e.signTransactionsError=null},clearAllTransactionsToSign:e=>{e.transactionsToSign=qe.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=qe.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload}},extraReducers:e=>{e.addCase(P,()=>qe),e.addCase(gi.REHYDRATE,(t,r)=>{var p;if(t.signTransactionsCancelMessage=null,!((p=r.payload)!=null&&p.transactions))return;let{signedTransactions:o,customTransactionInformationForSessionId:i}=r.payload.transactions,l=Object.entries(o).reduce((d,[m,g])=>{let f=new Date(m),T=new Date;return T.setHours(T.getHours()+5),T-f>0||(d[m]=g),d},{});i!=null&&(t.customTransactionInformationForSessionId=i),o!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:ud,updateSignedTransactions:dd,setTransactionsToSign:md,clearAllTransactionsToSign:Vt,clearAllSignedTransactions:gd,clearSignedTransaction:fd,clearTransactionToSign:Td,setSignTransactionsError:Ti,setSignTransactionsCancelMessage:Ce,moveTransactionsToSignedState:Pe}=fi.actions,Wt=fi.reducer});var yi,sn,hi,xd,wd,Id,vd,Ht,qt=S(()=>{"use strict";n();yi=require("@reduxjs/toolkit");q();sn={},hi=(0,yi.createSlice)({name:"batchTransactionsSlice",initialState:sn,reducers:{setBatchTransactions:(e,t)=>{e[t.payload.id]=t.payload},updateBatchTransactions:(e,t)=>{e[t.payload.id]=t.payload},clearBatchTransactions:(e,t)=>{delete e[t.payload.batchId]},clearAllBatchTransactions:()=>sn},extraReducers:e=>{e.addCase(P,()=>sn)}}),{setBatchTransactions:xd,updateBatchTransactions:wd,clearBatchTransactions:Id,clearAllBatchTransactions:vd}=hi.actions,Ht=hi.reducer});var xi,Si,wi,kd,Ii,cn=S(()=>{"use strict";n();xi=require("@reduxjs/toolkit");q();Si={},wi=(0,xi.createSlice)({name:"dappConfigSlice",initialState:Si,reducers:{setDappConfig:(e,t)=>{if(e&&t.payload){let{logoutRoute:r,shouldUseWebViewProvider:o}=t.payload;e.logoutRoute=r,e.shouldUseWebViewProvider=o}else e=t.payload}},extraReducers:e=>{e.addCase(P,()=>Si)}}),{setDappConfig:kd}=wi.actions,Ii=wi.reducer});var J=S(()=>{"use strict";n();bt();kt();Lt();Ct();Rt();Mt();Ut();$t();qt();cn()});var mn=S(()=>{"use strict";n()});var Fi,Oi,Ui,mg,gg,fg,Tg,yg,hg,Bi,Gi=S(()=>{"use strict";n();Fi=require("@reduxjs/toolkit");q();Oi={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},Ui=(0,Fi.createSlice)({name:"dappModalsSlice",initialState:Oi,reducers:{setDappModalVisibility:(e,t)=>{e.visible=t.payload},setDappModalHeaderVisibility:(e,t)=>{e.modal.showHeader=t.payload},setDappModalFooterVisibility:(e,t)=>{e.modal.showFooter=t.payload},setDappModalHeaderText:(e,t)=>{e.modal.headerText=t.payload},setDappModalFooterText:(e,t)=>{e.modal.footerText=t.payload},setDappModalConfig:(e,t)=>{e.modal=x({},t.payload)}},extraReducers:e=>{e.addCase(P,()=>Oi)}}),{setDappModalVisibility:mg,setDappModalHeaderVisibility:gg,setDappModalFooterVisibility:fg,setDappModalHeaderText:Tg,setDappModalFooterText:yg,setDappModalConfig:hg}=Ui.actions,Bi=Ui.reducer});var Vi,bc,Ec,ve,Zt=S(()=>{"use strict";n();Vi=require("@reduxjs/toolkit");mn();bt();qt();cn();Gi();kt();Lt();Ct();Rt();Mt();Ut();$t();bc={["account"]:At,["dappModal"]:Bi,["dappConfig"]:Ii,["loginInfo"]:Et,["modals"]:Dt,["networkConfig"]:Nt,["signedMessageInfo"]:Pt,["toasts"]:_t,["transactionsInfo"]:Ft,["transactions"]:Wt,["batchTransactions"]:Ht},Ec=(e={})=>(0,Vi.combineReducers)(x(x({},bc),e)),ve=Ec});var qi={};Te(qi,{default:()=>Wc,sessionStorageReducers:()=>gn});function ce(e,t=[]){return{key:e,version:1,storage:$i.default,blacklist:t}}var G,Wi,$i,kc,Xe,Dc,Lc,Nc,Cc,Pc,Rc,_c,Mc,Oc,Fc,Hi,Uc,gn,Bc,Gc,Vc,Wc,ji=S(()=>{"use strict";n();G=require("redux-persist"),Wi=v(require("redux-persist/lib/storage")),$i=v(require("redux-persist/lib/storage/session"));Zt();J();bt();qt();kt();Lt();Ct();Rt();Mt();Ut();$t();mn();kc={persistReducersStorageType:"localStorage"},Xe={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},Dc=ce(Xe["account"]),Lc=ce(Xe["loginInfo"]),Nc=ce(Xe["modals"]),Cc=ce(Xe["networkConfig"]),Pc={2:e=>b(x({},e),{networkConfig:Zr})};Rc=ce("sdk-dapp-transactionsInfo"),_c=ce("sdk-dapp-transactions",["transactionsToSign"]),Mc=ce("sdk-dapp-batchTransactions",["batchTransactions"]),Oc=ce("sdk-dapp-toasts"),Fc=ce("sdk-dapp-signedMessageInfo"),Hi={key:"sdk-dapp-store",version:2,storage:Wi.default,whitelist:Object.keys(Xe),migrate:(0,G.createMigrate)(Pc,{debug:!1})},Uc=b(x({},Hi),{whitelist:[]}),gn={["toasts"]:(0,G.persistReducer)(Oc,_t),["transactions"]:(0,G.persistReducer)(_c,Wt),["transactionsInfo"]:(0,G.persistReducer)(Rc,Ft),["batchTransactions"]:(0,G.persistReducer)(Mc,Ht),["signedMessageInfo"]:(0,G.persistReducer)(Fc,Pt)},Bc=b(x({},gn),{["account"]:(0,G.persistReducer)(Dc,At),["loginInfo"]:(0,G.persistReducer)(Lc,Et),["modals"]:(0,G.persistReducer)(Nc,Dt),["networkConfig"]:(0,G.persistReducer)(Cc,Nt)}),Gc=kc.persistReducersStorageType==="localStorage",Vc=Gc?(0,G.persistReducer)(Hi,ve(gn)):(0,G.persistReducer)(Uc,ve(Bc)),Wc=Vc});var zi={};Te(zi,{default:()=>$c});var $c,Ki=S(()=>{"use strict";n();Zt();$c=ve()});var Yi={};Te(Yi,{default:()=>qc});var $,Hc,qc,Xi=S(()=>{"use strict";n();$=require("redux-persist"),Hc=[$.FLUSH,$.REHYDRATE,$.PAUSE,$.PERSIST,$.PURGE,$.REGISTER],qc=Hc});var Ji={};Te(Ji,{default:()=>Qi});function Qi(e){return(0,Zi.persistStore)(e)}var Zi,ea=S(()=>{"use strict";n();Zi=require("redux-persist")});var Nl={};Te(Nl,{useSignTransactionsWithLedger:()=>Ll});module.exports=Ge(Nl);n();n();var es=require("react");n();var Ia=v(require("axios"));n();n();J();n();var vi=v(require("lodash.isequal")),jt=require("reselect");V();var y=(0,jt.createSelectorCreator)(jt.defaultMemoize,vi.default),je=(e,t)=>e!=""&&Boolean(t);var ee=e=>e.account,ze=y(ee,e=>e.address),Ke=y(ee,ze,(e,t)=>t in e.accounts?e.accounts[t]:vt),Ai=y(ee,Ke,(e,t)=>{let i=e,{accounts:r}=i,o=hr(i,["accounts"]);return b(x({},o),{account:t})}),Hd=y(Ke,e=>e.balance),bi=y(Ke,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),qd=y(ee,e=>e.shard),jd=y(ee,e=>e.ledgerAccount),zd=y(ee,e=>e.walletConnectAccount),Kd=y(ee,e=>e.isAccountLoading),Yd=y(ee,e=>e.accountLoadingError),yc=y(ee,e=>e.websocketEvent),Xd=y(ee,e=>e.websocketBatchEvent);n();var hc=e=>e.dappConfig,Jd=y(hc,e=>e.shouldUseWebViewProvider);n();var j=e=>e.loginInfo,nm=y(j,e=>e.loginMethod),Sc=y(j,ze,(e,t)=>je(e.loginMethod,t)),om=y(j,e=>e.walletConnectLogin),im=y(j,e=>e.ledgerLogin),am=y(j,e=>e.walletLogin),sm=y(j,e=>e.isLoginSessionInvalid),cm=y(j,e=>e.tokenLogin),lm=y(j,e=>e.logoutRoute);n();var Ei=e=>e.modals,dm=y(Ei,e=>e.txSubmittedModal),mm=y(Ei,e=>e.notificationModal);n();var se=e=>e.networkConfig,Tm=y(se,e=>e.chainID),ym=y(se,e=>e.network.walletConnectBridgeAddress),hm=y(se,e=>e.network.walletConnectV2RelayAddress),Sm=y(se,e=>e.network.walletConnectV2ProjectId),xm=y(se,e=>e.network.walletConnectV2Options),wm=y(se,e=>e.network.walletConnectDeepLink),Ie=y(se,e=>e.network),ki=y(Ie,e=>e.apiAddress),Di=y(Ie,e=>e.explorerAddress),Li=y(Ie,e=>e.egldLabel);n();var zt=e=>e.signedMessageInfo,Am=y(zt,e=>e.isSigning),bm=y(zt,e=>e.errorMessage),Em=y(zt,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]}),km=y(zt,e=>{let t=Object.keys(e.signedSessions),r=t.length;return t.length>0?t[r-1]:""});n();var ln=e=>e.toasts,Nm=y(ln,e=>e.customToasts),Cm=y(ln,e=>e.transactionToasts),Pm=y(ln,e=>e.failTransactionToast);n();J();var Ni={errorMessage:en,successMessage:tn,processingMessage:rn},xc=e=>e.transactionsInfo,Om=y(xc,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||Ni);n();n();var te=require("@multiversx/sdk-core"),Pi=require("@multiversx/sdk-core/out/signature");E();n();var dn=require("@multiversx/sdk-core/out");n();n();function pn(e){try{let t=atob(e),r=btoa(t),o=a.Buffer.from(e,"base64").toString(),i=a.Buffer.from(o).toString("base64");if(e===r&&e===i||t===o)return!0}catch(t){return!1}return!1}n();n();function un(e){for(let t=0;t<e.length;t++)if(e.charCodeAt(t)>127)return!1;return!0}function Ye(e){let t=e;try{let r=a.Buffer.from(e,"hex").toString();un(r)&&r.length>1&&(t=r)}catch(r){}return t}n();n();var Ci=e=>{let t=e!=null?e:"";return pn(t)?dn.TransactionPayload.fromEncoded(t):new dn.TransactionPayload(t)};function Kt(e){var r,o,i;let t=new te.Transaction(x(x({value:e.value.valueOf(),data:Ci(e.data),nonce:e.nonce.valueOf(),receiver:new te.Address(e.receiver),sender:new te.Address(e.sender),gasLimit:(r=e.gasLimit.valueOf())!=null?r:Or,gasPrice:(o=e.gasPrice.valueOf())!=null?o:Fr,chainID:e.chainID.valueOf(),version:new te.TransactionVersion((i=e.version)!=null?i:Ao)},e.options?{options:new te.TransactionOptions(e.options)}:{}),e.guardian?{guardian:new te.Address(e.guardian)}:{}));return e.guardianSignature&&t.applyGuardianSignature({hex:()=>e.guardianSignature||""}),e.signature&&t.applySignature(new Pi.Signature(e.signature)),t}n();n();function wc(e,t){let r=new URLSearchParams(e),o=Object.fromEntries(r);return{nextUrlParams:new URLSearchParams(x(x({},o),t)).toString(),params:o}}function Ri({callbackUrl:e,urlParams:t={}}){let r=e;if(Object.entries(t).length>0){let{search:o,origin:i,pathname:l}=new URL(e),{nextUrlParams:p}=wc(o,t);r=`${i}${l}?${p}`}return r}n();n();var fn=require("@reduxjs/toolkit"),oa=require("react-redux/lib/utils/Subscription");J();n();var _i=v(require("lodash.throttle"));E();J();qr();wt();We();var Ic=[St],Yt=!1,vc=(0,_i.default)(()=>{He($e())},5e3),Mi=e=>t=>r=>{var m;if(Ic.includes(r.type))return t(r);let o=e.getState(),i=Ne.local.getItem(we.loginExpiresAt);if(!je((m=o==null?void 0:o.loginInfo)==null?void 0:m.loginMethod,o==null?void 0:o.account.address))return t(r);if(i==null)return He($e());let p=Date.now();return i-p<0&&!Yt?setTimeout(()=>{Yt=!0,e.dispatch($o())},1e3):(Yt&&(Yt=!1),vc()),t(r)};n();n();function Xt(){return typeof sessionStorage!="undefined"}var ta=Xt()?(ji(),Ge(qi)).default:(Ki(),Ge(zi)).default,ra=Xt()?(Xi(),Ge(Yi)).default:[],na=Xt()?(ea(),Ge(Ji)).default:e=>e;Zt();var F=(0,fn.configureStore)({reducer:ta,middleware:e=>e({serializableCheck:{ignoredActions:[...ra,Bo.type,Uo.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(Mi)}),ia=(0,oa.createSubscription)(F),Qg=na(F),Jg=(0,fn.configureStore)({reducer:ve});n();n();var zc=require("@multiversx/sdk-core/out");n();E();n();var sa=require("@multiversx/sdk-core");V();n();var aa=require("@multiversx/sdk-core");function Kc(e){try{let t=new aa.Address(e);return Boolean(t.bech32())}catch(t){return!1}}function Qt(e){return(e==null?void 0:e.startsWith("erd"))&&e.length===62&&/^\w+$/.test(e)&&Kc(e)}n();n();n();var yn=require("@multiversx/sdk-core"),hn=v(require("bignumber.js"));H();var Tn={tokenId:"",amount:""},Yc=e=>e.split("@").map((l,p)=>[2,3].includes(p)?l:Ye(l));function Sn(e){if(!e)return Tn;let t=e.startsWith("ESDTTransfer"),r=e.startsWith("ESDTNFTTransfer")&&e.includes("@");if(t){let[,o,i]=e.split("@");try{let l=a.Buffer.from(o,"hex").toString("ascii");if(!l)return Tn;let p=new hn.default("0x"+i.replace("0x","")).toString(10);return{tokenId:l,amount:p}}catch(l){console.error("Error getting token from transaction data",l)}}if(r)try{let[,o,i,l,p]=Yc(e);if([o,i,l,p].every(d=>Boolean(d))&&Qt(new yn.Address(p).bech32()))return{tokenId:`${o}-${i}`,amount:new hn.default(l,16).toString(10),collection:o,nonce:i,receiver:new yn.Address(p).bech32()}}catch(o){}return Tn}n();n();n();var Ze="accounts";n();n();n();n();B();n();n();B();n();n();n();var tl=v(require("bignumber.js"));E();n();var el=require("@multiversx/sdk-core"),xn=v(require("bignumber.js"));E();n();var Qc=v(require("bignumber.js"));n();xn.default.config({ROUNDING_MODE:xn.default.ROUND_FLOOR});n();n();n();E();n();n();n();n();E();n();E();n();var rl=require("@multiversx/sdk-core");E();n();var Je=require("@multiversx/sdk-core"),ol=require("@multiversx/sdk-network-providers");E();n();n();var nl=v(require("bignumber.js"));E();n();E();n();n();n();n();n();n();E();n();E();n();E();n();B();var al=["reDelegateRewards","claimRewards","unBond"],sl=["wrapEgld","unwrapEgld"],cl=["unStake"],ll=["unDelegate"];n();n();n();E();n();var dl=v(require("bignumber.js"));n();n();B();n();var ml=v(require("bignumber.js"));n();n();function ua({tokenId:e,erdLabel:t}){return Boolean(e&&e!==t)}n();var vn=v(require("bignumber.js"));V();n();var da=(e,t)=>{let r=[],o=e.indexOf(t,0);for(;o>=0;)r.push(o),o=e.indexOf(t,o+1);return r};function ma(e){let t=[],r=0;try{if((e==null?void 0:e.startsWith("MultiESDTNFTTransfer"))&&(e==null?void 0:e.includes("@"))){let[,o,i,...l]=e==null?void 0:e.split("@");if(o){let p=new vn.default(i,16).toNumber(),d=0;for(let T=0;T<p;T++){let w={type:"nftTransaction",data:"",receiver:o};for(let h=0;h<3;h++){switch(h){case 0:w.token=Ye(l[d]),w.data=l[d];break;case 1:{let I=l[d]&&l[d].length?l[d]:"";I&&I!=="00"?w.nonce=I:w.type="esdtTransaction",w.data=`${w.data}@${l[d]}`;break}case 2:w.amount=new vn.default(l[d],16).toString(10),w.data=`${w.data}@${l[d]}`;break;default:break}r=d+1,d++}t[T]=w}let m=t.length!==p,g=t.some(T=>da(T.data,"@").length!==2),f=t.some(T=>T.data.startsWith("@"));if(m||g||f)return[];if(l[r]){let T=l[r];for(let w=r+1;w<l.length;w++)T+="@"+l[w];t[p]={type:"scCall",data:T,receiver:o}}}}}catch(o){return console.error("failed parsing tx",o),t}return t}n();n();n();H();function er(e){let r=Object.getPrototypeOf(e).toPlainObject!=null?e:Kt(e);return b(x({},r.toPlainObject()),{hash:r.getHash().hex(),status:"pending"})}n();var Ta=require("@multiversx/sdk-web-wallet-provider");E();n();var fa=v(require("qs"));n();var tr=e=>{let t=new URLSearchParams(e).toString(),r=window==null?void 0:window.location.pathname,o=t?`?${t}`:"",i=r?`${r}${o}`:"./";setTimeout(()=>{window==null||window.history.replaceState({},document==null?void 0:document.title,i)})};n();var et=()=>typeof window!="undefined"&&typeof(window==null?void 0:window.location)!="undefined";n();var fl={search:et()?window.location.search:"",removeParams:[]},ga=(e,t=fl)=>{var p;let r={},o=et()?window.location.search:"",i=(p=t.search)!=null?p:o;if(i){let d=i?new URLSearchParams(i):[];r=Object.fromEntries(d)}let l={};return e.forEach(d=>{l[d]=r[d],delete r[d]}),t.removeParams!=null&&Object.keys(r).forEach(d=>{var g,f;let[m]=d.split("[");(((g=t.removeParams)==null?void 0:g.includes(d))||((f=t.removeParams)==null?void 0:f.includes(m)))&&delete r[d]}),{remainingParams:l,params:r,clearNavigationHistory:()=>tr(r)}};var rr=({removeParams:e,search:t})=>{let r=et()?window.location.search:"",o=t!=null?t:r;if(!o)return{};let i=fa.default.parse(o.replace("?","")),l=Object.keys(i).filter(d=>!e.includes(d)),{remainingParams:p}=ga(l,{search:t,removeParams:e});return tr(p),p};var ya=({transaction:e,search:t})=>rr({removeParams:[...Object.keys(e),Ta.WALLET_PROVIDER_CALLBACK_PARAM,me],search:t});n();n();n();n();B();n();n();n();var Tl=v(require("linkifyjs"));n();E();n();var yl=v(require("bignumber.js"));n();V();n();n();H();n();H();n();n();n();B();n();B();n();var hl=v(require("bignumber.js"));E();B();n();B();n();var Sa=require("react");V();n();n();B();n();n();var Sl=require("@multiversx/sdk-core/out"),xl=v(require("bignumber.js"));B();n();V();n();n();V();var Zx=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];n();var xa=require("react");V();n();var Il=require("react");B();var ow=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];an();var or=e=>e.transactions,tt=y(or,e=>e.signedTransactions),$w=y(or,e=>e.signTransactionsError),wa=y(or,e=>e.signTransactionsCancelMessage),ir=e=>t=>Object.entries(t).reduce((r,[o,i])=>(e(i.status)&&(r[o]=i),r),{}),Hw=y(tt,ir(pi)),qw=y(tt,ir(Bt)),jw=y(tt,ir(Gt)),zw=y(tt,ir(di)),ar=y(or,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:b(x({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>Kt(r)))||[]})}),Kw=y(tt,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});function va(e){return C(this,null,function*(){let{network:{apiAddress:t,apiTimeout:r}}=se(F.getState()),{data:o}=yield Ia.default.get(`/${Ze}/${e}`,{baseURL:t,timeout:Number(r)});return o})}n();n();var Aa=require("react"),Re=require("react-redux");var vl={store:F,subscription:ia},An=(0,Aa.createContext)(vl),dI=(0,Re.createStoreHook)(An),ge=(0,Re.createDispatchHook)(An),O=(0,Re.createSelectorHook)(An);var ba=()=>O(Ai);n();n();n();n();var ka=require("@multiversx/sdk-extension-provider"),Da=require("@multiversx/sdk-hw-provider"),La=require("@multiversx/sdk-opera-provider"),En=require("@multiversx/sdk-web-wallet-provider");E();H();n();var bn=_e,Ea=bn;var Al="/dapp/init",sr=e=>{switch(e==null?void 0:e.constructor){case En.WalletProvider:return"wallet";case bn:return"walletconnect";case Ea:return"walletconnectv2";case Da.HWProvider:return"ledger";case ka.ExtensionProvider:return"extension";case La.OperaProvider:return"opera";case _e:return"";default:return"extra"}},Na=e=>new En.WalletProvider(`${e}${Al}`);var pe=e=>`Unable to perform ${e}, Provider not initialized`,_e=class{init(){return Promise.resolve(!1)}login(t){throw new Error(pe(`login with options: ${t}`))}logout(t){throw new Error(pe(`logout with options: ${t}`))}getAddress(){throw new Error(pe("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(t,r){throw new Error(pe(`sendTransaction with transactions: ${t} options: ${r}`))}signTransaction(t,r){throw new Error(pe(`signTransaction with transactions: ${t} options: ${r}`))}signTransactions(t,r){throw new Error(pe(`signTransactions with transactions: ${t} options: ${r}`))}signMessage(t,r){throw new Error(pe(`signTransactions with ${t} and options ${r}`))}sendCustomMessage({method:t,params:r}){throw new Error(pe(`sendCustomMessage with method: ${t} params: ${r}`))}sendCustomRequest(t){throw new Error(pe(`sendSessionEvent with options: ${t}`))}ping(){return Promise.resolve(!1)}},kn=new _e;var bl=kn;function rt(){return bl||kn}var cr=()=>{let e=rt(),t=sr(e);return{provider:e,providerType:t}};n();var Ae=require("react"),be=require("@multiversx/sdk-core");n();var nt=require("react");var Ca={tokenId:"",amount:"",type:"",multiTxData:"",receiver:""};function Pa({transactions:e}){let[t,r]=(0,nt.useState)({}),[o,i]=(0,nt.useState)([]);function l(m,g){r(f=>b(x({},f),{[m]:g}))}function p(m,g){return t==null?Ca:m in t?t[m]:g!=null&&String(g)in t?t[g]:Ca}function d(){if(e&&e.length>0){let m=[];e.forEach((g,f)=>{let T=g.getData().toString(),w=ma(T);if(w.length>0)w.forEach((h,I)=>{let N={transaction:g,multiTxData:h.data,transactionIndex:I};l(h.data,{tokenId:h.token?h.token:"",amount:h.amount?h.amount:"",type:h.type,nonce:h.nonce?h.nonce:"",multiTxData:h.data,receiver:h.receiver}),m.push(N)});else{let h=g.getData().toString(),{tokenId:I,amount:N}=Sn(h);I&&l(h,{tokenId:I,amount:N,receiver:g.getReceiver().bech32()}),m.push({transaction:g,transactionIndex:f,multiTxData:h})}}),i(m)}}return(0,nt.useEffect)(()=>{d()},[e==null?void 0:e.length]),{parsedTransactionsByDataField:t,getTxInfoByDataField:p,allTransactions:o}}Xr();n();n();function Ra(e){let t=ar(F.getState()),r=Object.keys(e).length===(t==null?void 0:t.transactions.length);return e&&(e&&r)}n();n();n();var _a=v(require("axios"));n();n();var Dn=e=>{let t=e!=null?e:ki(F.getState());return t.endsWith("/")?t.slice(0,-1):t};function Ma(e){return C(this,null,function*(){if(!e)return null;let r=`${Dn()}/${Ze}/${e}?withGuardianInfo=true`;try{let{data:o}=yield _a.default.get(r);return o}catch(o){console.error("error fetching configuration for ",r)}return null})}function Oa(e){return C(this,null,function*(){return yield Ma(e)})}n();function Fa(e){let t=F.getState(),r=bi(t);return e?r&&!isNaN(r)?Math.max(r,e.nonce):e.nonce:r}n();n();var Ua=({accountNonce:e,transactionNonce:t})=>t&&t>e?t:e;var Ba=({latestNonce:e,transactions:t})=>t.length===0?t:t.map((r,o)=>{let i=e+o,l=r.getNonce().valueOf(),p=Ua({accountNonce:i,transactionNonce:l});return r.setNonce(p),r});var Ga=()=>{let e=O(ze);return t=>C(void 0,null,function*(){let r=yield Oa(e),o=Fa(r);return Ba({latestNonce:o,transactions:t})})};n();var lr=({transactions:e,isGuarded:t})=>t?e.every(o=>Boolean(o.getGuardianSignature().toString("hex"))):!0;n();n();n();Ve();n();var El=v(require("axios"));n();var kl=v(require("axios"));n();Ve();n();Ve();function Ln(e){return So[e]}E();var Va=({transactions:e,hasGuardianScreen:t,callbackRoute:r,sessionId:o,walletAddress:i,isGuarded:l})=>{let p=lr({isGuarded:l,transactions:e});return{needs2FaSigning:l?!t&&!p&&o:!1,sendTransactionsToGuardian:()=>{let g=e[0].getChainID().valueOf(),f=Ln(g),T=i!=null?i:xe[f].walletAddress,w=Na(T),h={[me]:String(o)},I=window!=null&&window.location?`${window.location.origin}${r}`:`${r}`,N=Ri({callbackUrl:I,urlParams:h});w.guardTransactions(e,{callbackUrl:encodeURIComponent(N)})}}};var pr={};function Wa({isLedger:e=!1,transactionsToSign:t,egldLabel:r,address:o,activeGuardianAddress:i,hasGuardianScreen:l,onCancel:p,onSignTransaction:d,onTransactionsSignError:m,onTransactionsSignSuccess:g,onGetScamAddressData:f}){var Rn,_n,Mn;let T=Boolean(i),[w,h]=(0,Ae.useState)(0),[I,N]=(0,Ae.useState)(),[A,re]=(0,Ae.useState)(null),[R,k]=(0,Ae.useState)(!1),{getTxInfoByDataField:ue,allTransactions:z}=Pa({transactions:i?t==null?void 0:t.map(D=>{D.setSender(be.Address.fromBech32(o)),D.setVersion(be.TransactionVersion.withTxOptions()),D.setGuardian(be.Address.fromBech32(i));let M=x({guarded:!0},e?{hashSign:!0}:{});return D.setOptions(be.TransactionOptions.withOptions(M)),D}):t}),Oe=w===z.length-1;(0,Ae.useEffect)(()=>{it()},[w,z]);function it(){return C(this,null,function*(){var On;let D=z[w];if(D==null)return;let{transaction:M,multiTxData:Fe}=D,lt=M.getData().toString(),Tr=ue(M.getData().toString(),Fe),{tokenId:de}=Tr,fe=M.getReceiver().toString(),Ue=o!==fe,rs=fe in pr;if(Ue&&!rs&&f!=null){let pt=yield f(fe);pr=x(x({},pr),pt!=null&&pt.scamInfo?{[fe]:pt.scamInfo}:{})}let ns=Boolean(de&&ua({tokenId:de,erdLabel:r}));re({transaction:M,receiverScamInfo:((On=pr[fe])==null?void 0:On.info)||null,transactionTokenInfo:Tr,isTokenTransaction:ns,dataField:lt})})}function at(){h(0),N(void 0),k(!1)}function st(){return C(this,null,function*(){if(A==null)return;k(e);let D;try{D=yield d(A.transaction)}catch(de){console.error(de,"sign error");let{message:fe}=de,Ue=e?Xo(de).errorMessage:null;return at(),m(Ue!=null?Ue:fe)}let M={[w]:D},Fe=I?x(x({},I),M):M;if(N(Fe),!Oe){h(de=>de+1),k(!1);return}if(!Fe)return;let lt=Object.values(Fe);!lr({isGuarded:T,transactions:lt})&&l||(g(lt),at())})}function ur(){try{if(A==null)return;if(A.transaction.getSignature().toString("hex")&&!Oe){h(M=>M+1);return}st()}catch(D){st()}}let ct=w===0;function ne(){ct?p==null||p():h(D=>D-1)}let dr=Boolean(((Rn=A==null?void 0:A.transactionTokenInfo)==null?void 0:Rn.type)&&((_n=A==null?void 0:A.transactionTokenInfo)==null?void 0:_n.multiTxData)&&!(A!=null&&A.dataField.endsWith((Mn=A==null?void 0:A.transactionTokenInfo)==null?void 0:Mn.multiTxData)));function mr(){dr?h(D=>D+1):ur()}function gr(){h(D=>{let M=D+1;return M>(z==null?void 0:z.length)?D:M})}function fr(){h(D=>{let M=D-1;return M<0?D:M})}return{allTransactions:z,onSignTransaction:mr,onNext:gr,onPrev:fr,waitingForDevice:R,onAbort:ne,isLastTransaction:Oe,isFirstTransaction:w===0,hasMultipleTransactions:z.length>1,shouldContinueWithoutSigning:dr,currentStep:w,signedTransactions:I,setSignedTransactions:N,currentTransaction:A}}J();V();n();n();function $a(){let e=rt();return sr(e)}function Ha(e){return $a()===e}Kr();n();Nr();J();function qa(){let e=ge();return t=>{e(Vt()),e(Ot(t)),e(Ce(yt))}}n();var Me=require("react"),Pn=require("@multiversx/sdk-extension-provider");E();n();n();var Nn=()=>O(Ke);n();n();n();n();n();var ot=v(require("react"));var dA=(0,ot.createContext)({}),mA=F.getState();n();var za=v(require("react"));n();var Cn=v(require("react")),Dl=v(require("axios"));n();n();n();var Ka=require("react"),Ya=require("@multiversx/sdk-web-wallet-provider"),Xa=require("@multiversx/sdk-web-wallet-provider"),Za=v(require("qs"));E();J();H();Pr();function Qa(e){let t=window==null?void 0:window.location.search,r=O(Ie),o=ge();(0,Ka.useEffect)(()=>{if(t!=null){let i=Za.default.parse(t.replace("?",""));if(i&&me in i){let l=String(i[me]),p=new Ya.WalletProvider(`${r.walletAddress}${bo}`).getTransactionsFromWalletUrl();if(i.status==="cancelled"){o(Pe({sessionId:l,status:"cancelled"})),e(),rr({removeParams:[...Object.keys(Cr),Xa.WALLET_PROVIDER_CALLBACK_PARAM,me,"address"],search:t}),o(Ce(yt));return}if(p.length>0){o(Pe({sessionId:l,status:"signed",transactions:p.map(m=>er(m))}));let[d]=p;ya({transaction:d,search:t})}}}},[t])}J();var Ja=()=>{let e=ge(),{provider:t}=cr(),{nonce:r}=Nn(),[o,i]=(0,Me.useState)(null),[l,p]=(0,Me.useState)(),[d,m]=(0,Me.useState)([]),g=Ga(),f=O(ar),T=O(wa),w=()=>C(void 0,null,function*(){var R;let A=Boolean(f==null?void 0:f.transactions),re=(R=f==null?void 0:f.transactions)!=null?R:[];if(A){let k=yield g(re);m(k)}p(A)});(0,Me.useEffect)(()=>{w()},[f,r]);let h=()=>{i(null),e(Ce(null))},I=A=>{h(),N(A)};Qa(I);function N(A){var R,k;let re=t instanceof Pn.ExtensionProvider;e(Vt()),e(Ot(A)),e(si(ht)),re&&(h(),(k=(R=Pn.ExtensionProvider.getInstance())==null?void 0:R.cancelAction)==null||k.call(R))}return{error:o,canceledTransactionsMessage:T,clearTransactionStatusMessage:h,onAbort:I,setError:i,hasTransactions:l,transactionsToSign:f&&b(x({},f),{transactions:d})}};function ts(e){let{onCancel:t,verifyReceiverScam:r=!0,hasGuardianScreen:o}=e,{transactionsToSign:i,hasTransactions:l}=Ja(),p=O(Ie),d=O(Li),{account:m}=ba(),{address:g,isGuarded:f,activeGuardianAddress:T}=m,{provider:w}=cr(),h=ge(),I=qa(),[N,A]=(0,es.useState)(),{transactions:re,sessionId:R,callbackRoute:k,customTransactionInformation:ue}=i||{};function z(ne){R&&h(Pe({sessionId:R,status:"cancelled"})),h(Ti(ne))}let Oe=k!=null&&(window==null?void 0:window.location.pathname.includes(k)),it=!(ue!=null&&ue.skipGuardian);function at(ne){if(!Ra(ne))return;let{needs2FaSigning:mr,sendTransactionsToGuardian:gr}=Va({transactions:ne,sessionId:R,callbackRoute:k,hasGuardianScreen:o,isGuarded:f&&it,walletAddress:p.walletAddress});if(mr)return A(!0),gr();R&&(h(Pe({sessionId:R,status:"signed",transactions:ne.map(fr=>er(fr))})),k!=null&&(ue==null?void 0:ue.redirectAfterSign)&&!Oe&&zr(k))}function st(){t(),I(R)}function ur(ne){return C(this,null,function*(){return yield w.signTransaction(ne)})}let ct=Wa({address:g,egldLabel:d,activeGuardianAddress:f&&it?T:void 0,transactionsToSign:l?re:[],onGetScamAddressData:r?va:null,isLedger:Ha("ledger"),hasGuardianScreen:o,onCancel:st,onSignTransaction:ur,onTransactionsSignError:z,onTransactionsSignSuccess:at});return b(x({},ct),{callbackRoute:k,waitingForDevice:N!=null?N:ct.waitingForDevice})}function Ll(e){return ts(e)}0&&(module.exports={useSignTransactionsWithLedger});
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *
@@ -1,2 +1,2 @@
1
- "use strict";import"../__chunks__/chunk-OQMQWZG7.js";import{a as m}from"../__chunks__/chunk-WTAIM7XI.js";import{a as x,b as a,c as b}from"../__chunks__/chunk-JTR3JIF5.js";import"../__chunks__/chunk-G6V3RROQ.js";import{a as t}from"../__chunks__/chunk-ZD4T5RDE.js";import{a as p}from"../__chunks__/chunk-QB7FSZIJ.js";import"../__chunks__/chunk-4FTRS7WH.js";import"../__chunks__/chunk-J4FVDFZJ.js";import"../__chunks__/chunk-DQPZUP6J.js";import"../__chunks__/chunk-AS5LF45F.js";import"../__chunks__/chunk-K3PKB7WJ.js";import"../__chunks__/chunk-UTT6IDXI.js";import"../__chunks__/chunk-GVU7CFIB.js";import"../__chunks__/chunk-RTBLJLK5.js";import"../__chunks__/chunk-GKOGOKEY.js";import"../__chunks__/chunk-K34TH3BZ.js";import"../__chunks__/chunk-YKAKLVB7.js";import"../__chunks__/chunk-UCBDWIIG.js";import"../__chunks__/chunk-COW7WUHF.js";import"../__chunks__/chunk-5GJJYCFY.js";import"../__chunks__/chunk-Y4M6VSON.js";import"../__chunks__/chunk-FALDLO5J.js";import"../__chunks__/chunk-2VXRBR3A.js";import"../__chunks__/chunk-SSVGMOQH.js";import"../__chunks__/chunk-RJ7SJMWT.js";import"../__chunks__/chunk-FD3VYCS4.js";import"../__chunks__/chunk-NKHBIONP.js";import"../__chunks__/chunk-ICDXNBEF.js";import"../__chunks__/chunk-KMJBEARC.js";import"../__chunks__/chunk-3VOPLXJ4.js";import"../__chunks__/chunk-7HF7RMSM.js";import"../__chunks__/chunk-ZPLMSLJT.js";import"../__chunks__/chunk-PF6FZ5CA.js";import"../__chunks__/chunk-7B66IZJD.js";import"../__chunks__/chunk-B3T5YNKO.js";import"../__chunks__/chunk-LFMDBIML.js";import"../__chunks__/chunk-NXSPBH7F.js";import"../__chunks__/chunk-XX6WKYPF.js";import"../__chunks__/chunk-C6OR4CE7.js";import"../__chunks__/chunk-PENA4DTK.js";import"../__chunks__/chunk-7QGLKL3O.js";import"../__chunks__/chunk-HUNAKHPM.js";import"../__chunks__/chunk-VH5B3W6C.js";import"../__chunks__/chunk-VW2UBFJI.js";import"../__chunks__/chunk-SQJYWVIF.js";import"../__chunks__/chunk-V6IICA5I.js";import"../__chunks__/chunk-L5ZELHXF.js";import"../__chunks__/chunk-7HYW3VNZ.js";import"../__chunks__/chunk-3U7QBETU.js";import"../__chunks__/chunk-DBD6N2CW.js";import"../__chunks__/chunk-7I6VVHPW.js";import"../__chunks__/chunk-PASB5DTY.js";import"../__chunks__/chunk-MFK5TIXS.js";import"../__chunks__/chunk-MDIJXESM.js";import"../__chunks__/chunk-EQZEJKTR.js";import"../__chunks__/chunk-JIE46P3A.js";import"../__chunks__/chunk-VPGECZPA.js";import"../__chunks__/chunk-BIJ27EC2.js";import"../__chunks__/chunk-XPO7HQNJ.js";import"../__chunks__/chunk-ODZH7JKM.js";import"../__chunks__/chunk-LKEL6F45.js";import"../__chunks__/chunk-7F37MW76.js";import"../__chunks__/chunk-X27CJBLI.js";import"../__chunks__/chunk-GJBD7RPH.js";import"../__chunks__/chunk-S2KRJP2S.js";import"../__chunks__/chunk-ASQNM7MJ.js";import"../__chunks__/chunk-QCGS2BTF.js";import"../__chunks__/chunk-7PHB4IHW.js";import"../__chunks__/chunk-WHY2O6VY.js";import"../__chunks__/chunk-EW3SEUQV.js";import"../__chunks__/chunk-N4YDENJI.js";import"../__chunks__/chunk-6NLOVYDI.js";import"../__chunks__/chunk-RRSKW4X3.js";import"../__chunks__/chunk-S2ZXQSDD.js";import"../__chunks__/chunk-KXYIK2NA.js";import"../__chunks__/chunk-HEO7KJU5.js";import"../__chunks__/chunk-UQPS2RPU.js";import"../__chunks__/chunk-KMIS2BLG.js";import"../__chunks__/chunk-63OV72OW.js";import"../__chunks__/chunk-FN7HSBPB.js";import"../__chunks__/chunk-4UG2JBYU.js";import"../__chunks__/chunk-FUIWFYYW.js";import"../__chunks__/chunk-IGROQXUZ.js";import"../__chunks__/chunk-VB6VZREF.js";import"../__chunks__/chunk-HSWMYWSJ.js";import"../__chunks__/chunk-POJG76RP.js";import"../__chunks__/chunk-QJRS3XXT.js";import"../__chunks__/chunk-O2NVMOWV.js";import"../__chunks__/chunk-RIVVRYEZ.js";import"../__chunks__/chunk-UUYNGUKK.js";import"../__chunks__/chunk-UG2C5XXR.js";import"../__chunks__/chunk-CSTEEV34.js";import"../__chunks__/chunk-6ERRM2KF.js";import"../__chunks__/chunk-3GKFYHC4.js";import"../__chunks__/chunk-27M6NKGP.js";import"../__chunks__/chunk-5PH62EO2.js";import"../__chunks__/chunk-WLZPLFLW.js";import"../__chunks__/chunk-IF5CP4YY.js";import"../__chunks__/chunk-WJGL6LVA.js";import"../__chunks__/chunk-LK5TR7MI.js";import"../__chunks__/chunk-OCMDIV3Q.js";import"../__chunks__/chunk-TKIIHBF2.js";import"../__chunks__/chunk-KMTPVLTX.js";import"../__chunks__/chunk-KOH3SXG4.js";import"../__chunks__/chunk-ZY4AUE6X.js";import"../__chunks__/chunk-7RBYOO2J.js";import"../__chunks__/chunk-DGPHTEKD.js";import"../__chunks__/chunk-TXAITGIS.js";import"../__chunks__/chunk-JFXVZGSY.js";import"../__chunks__/chunk-AXIF35TD.js";import"../__chunks__/chunk-UMMB4MY5.js";import"../__chunks__/chunk-XAQNBFSL.js";import"../__chunks__/chunk-5HMS5KVK.js";import"../__chunks__/chunk-53GKFOIV.js";import"../__chunks__/chunk-V5ZYXPUP.js";import"../__chunks__/chunk-5WQI3F3M.js";import"../__chunks__/chunk-N3ETS4IR.js";import"../__chunks__/chunk-NUWNMCYM.js";import"../__chunks__/chunk-U2YJMXQE.js";import"../__chunks__/chunk-YTYNUTPN.js";import"../__chunks__/chunk-JVFR4K57.js";import"../__chunks__/chunk-24HAPWVY.js";import"../__chunks__/chunk-DWAZWPSE.js";import"../__chunks__/chunk-Z54DAJHV.js";import"../__chunks__/chunk-RS66KCFE.js";import"../__chunks__/chunk-MAIOHYCR.js";import"../__chunks__/chunk-AILGLGLT.js";import"../__chunks__/chunk-FZMRVALH.js";import"../__chunks__/chunk-HPFY6NOU.js";import"../__chunks__/chunk-WME7JUV7.js";import"../__chunks__/chunk-VFLNL2FY.js";import"../__chunks__/chunk-QW3V7MFZ.js";import"../__chunks__/chunk-ERXYZXKF.js";import"../__chunks__/chunk-FB2BXND5.js";import"../__chunks__/chunk-WWYZM6K6.js";import"../__chunks__/chunk-XBAP2D3B.js";import"../__chunks__/chunk-HI3RZINR.js";import"../__chunks__/chunk-MSREVFSA.js";import"../__chunks__/chunk-ZKKCLJG5.js";import"../__chunks__/chunk-HZSM6ODA.js";import"../__chunks__/chunk-OLYIRMPJ.js";import"../__chunks__/chunk-ELRQPILJ.js";import"../__chunks__/chunk-3SHFG3Q2.js";import"../__chunks__/chunk-3SGZP5CP.js";import"../__chunks__/chunk-WPNTJLX5.js";import"../__chunks__/chunk-MVJUBH74.js";import"../__chunks__/chunk-K7TKWQTX.js";import"../__chunks__/chunk-OE2TXZIV.js";import"../__chunks__/chunk-LDQULRQM.js";import"../__chunks__/chunk-NAUXCAHX.js";import"../__chunks__/chunk-ZT3JSTYM.js";import"../__chunks__/chunk-VVY3H3F7.js";import"../__chunks__/chunk-OIMSUDOK.js";import"../__chunks__/chunk-YAR2KJ42.js";import"../__chunks__/chunk-OZN64XXH.js";import"../__chunks__/chunk-AJJUE6BQ.js";import"../__chunks__/chunk-CIE6DSGF.js";import"../__chunks__/chunk-AMNHI3QW.js";import"../__chunks__/chunk-UDIL7X3Z.js";import"../__chunks__/chunk-R34ULZDI.js";import"../__chunks__/chunk-KZR7TQ7H.js";import"../__chunks__/chunk-XOZ662VA.js";import"../__chunks__/chunk-NAN2H6P3.js";import"../__chunks__/chunk-LO5NNAIV.js";import"../__chunks__/chunk-47JMQSE2.js";import"../__chunks__/chunk-WZSDWRXM.js";import"../__chunks__/chunk-KEQTNP4F.js";import"../__chunks__/chunk-VQ45VOHN.js";import"../__chunks__/chunk-FG74WDBQ.js";import"../__chunks__/chunk-3AWBGP7M.js";import"../__chunks__/chunk-WKVTOFIT.js";import"../__chunks__/chunk-4WQJMUQT.js";import"../__chunks__/chunk-HH5S5FOE.js";import"../__chunks__/chunk-XWK5XUNJ.js";import"../__chunks__/chunk-22UA5SNR.js";import"../__chunks__/chunk-W7WSJP4R.js";import"../__chunks__/chunk-QPHDB4SX.js";import"../__chunks__/chunk-NWAWFX5O.js";import"../__chunks__/chunk-M6BI7ILE.js";import"../__chunks__/chunk-MAN7DZAK.js";import"../__chunks__/chunk-FFXOJXGN.js";import"../__chunks__/chunk-IPRFCS7D.js";import"../__chunks__/chunk-OKNX6OPM.js";import"../__chunks__/chunk-VWBMNLVZ.js";import"../__chunks__/chunk-CSNNQII4.js";import"../__chunks__/chunk-MIQXM37N.js";import"../__chunks__/chunk-CUVIIQZB.js";import"../__chunks__/chunk-MBQJF3MO.js";import"../__chunks__/chunk-5ATU6BWE.js";import"../__chunks__/chunk-DXDKVGS6.js";import"../__chunks__/chunk-6M2KUHI5.js";import"../__chunks__/chunk-IHEQMC3B.js";import"../__chunks__/chunk-SKMXMVKW.js";import"../__chunks__/chunk-T74FZLQO.js";import"../__chunks__/chunk-ONNEZDFU.js";import"../__chunks__/chunk-LPQY7BQ4.js";import"../__chunks__/chunk-ZS72QLFO.js";import"../__chunks__/chunk-BPKJAHYT.js";import"../__chunks__/chunk-AURFLPJI.js";import"../__chunks__/chunk-HESHBYEE.js";import"../__chunks__/chunk-EIVAH6FT.js";import"../__chunks__/chunk-U7KBDVS6.js";import"../__chunks__/chunk-MALUP4TG.js";import"../__chunks__/chunk-OXSLKC3X.js";import"../__chunks__/chunk-T73DKVUT.js";import"../__chunks__/chunk-U47YYGAI.js";import"../__chunks__/chunk-RBHZ2TA2.js";import"../__chunks__/chunk-CF2SJYLM.js";import"../__chunks__/chunk-TPDR3Y6L.js";import"../__chunks__/chunk-7I7NVYZT.js";import"../__chunks__/chunk-X4TEIUC5.js";import"../__chunks__/chunk-J5WPVXJV.js";import"../__chunks__/chunk-72AKFMHW.js";import"../__chunks__/chunk-NGVYQHDX.js";import"../__chunks__/chunk-BP7X5FRP.js";import"../__chunks__/chunk-J3HVA7J2.js";import"../__chunks__/chunk-4M4ZG6UK.js";import"../__chunks__/chunk-A32WHRLH.js";import"../__chunks__/chunk-QOTHHSFI.js";import"../__chunks__/chunk-WYC35YN5.js";import"../__chunks__/chunk-CLBIWLXP.js";import"../__chunks__/chunk-Z2RFL7UF.js";import"../__chunks__/chunk-MQRTP6HG.js";import"../__chunks__/chunk-FMIRA7YL.js";import"../__chunks__/chunk-RQ3IOPRD.js";import"../__chunks__/chunk-WVJETRW5.js";import"../__chunks__/chunk-ZXAKZDAQ.js";import"../__chunks__/chunk-NCHDT5N7.js";import"../__chunks__/chunk-CF3APRHB.js";import"../__chunks__/chunk-XNOSDTBZ.js";import"../__chunks__/chunk-FRMKDPUJ.js";import"../__chunks__/chunk-OHJM3SMB.js";import"../__chunks__/chunk-KD7CSMP4.js";import"../__chunks__/chunk-W2FL4F7Y.js";import"../__chunks__/chunk-5MHH6T2T.js";import"../__chunks__/chunk-SLS4RCYR.js";import"../__chunks__/chunk-CFS5VG7S.js";import"../__chunks__/chunk-FUKFASZ4.js";import"../__chunks__/chunk-7F3MKQYJ.js";import"../__chunks__/chunk-4NZQZ2PK.js";import"../__chunks__/chunk-6AAGHH3Z.js";import"../__chunks__/chunk-OBKYH7E7.js";import"../__chunks__/chunk-I2ACNKBY.js";import"../__chunks__/chunk-7LG3PXXW.js";import"../__chunks__/chunk-RDTHAMCD.js";import"../__chunks__/chunk-UOJHMSFY.js";import"../__chunks__/chunk-MM7DLMSH.js";import"../__chunks__/chunk-DOWAMMRF.js";import"../__chunks__/chunk-MSYI33IZ.js";import"../__chunks__/chunk-TP3Q54FK.js";import"../__chunks__/chunk-VEMADCAG.js";import"../__chunks__/chunk-G7YPZ46A.js";import"../__chunks__/chunk-4MIWSVE2.js";import"../__chunks__/chunk-Y6NJKSSO.js";import"../__chunks__/chunk-C6FBV65M.js";import"../__chunks__/chunk-KT7HCFVX.js";import"../__chunks__/chunk-LHMTZEA5.js";import"../__chunks__/chunk-7CWJCONI.js";import"../__chunks__/chunk-XQVTILMR.js";import"../__chunks__/chunk-ZXF7VTXT.js";import"../__chunks__/chunk-2SAKHJIZ.js";import"../__chunks__/chunk-DEY75ILF.js";import"../__chunks__/chunk-DGMWAKSQ.js";import"../__chunks__/chunk-5NJW53EW.js";import"../__chunks__/chunk-JSD4JECW.js";import"../__chunks__/chunk-KRCUIXB4.js";import"../__chunks__/chunk-UWQPMY2D.js";import"../__chunks__/chunk-DPOE6IK4.js";import"../__chunks__/chunk-HP3L7RUD.js";import"../__chunks__/chunk-A3JT4J5G.js";import"../__chunks__/chunk-UDWLOK2I.js";import"../__chunks__/chunk-FOHOVMG2.js";import"../__chunks__/chunk-4CNJEAQC.js";import"../__chunks__/chunk-7NDRRNEP.js";import"../__chunks__/chunk-H2KQWRZO.js";import"../__chunks__/chunk-4I33RXZI.js";import"../__chunks__/chunk-5774QZTU.js";import"../__chunks__/chunk-QOETGIPL.js";import"../__chunks__/chunk-T7D7BT5X.js";import"../__chunks__/chunk-XBLU7KZJ.js";import"../__chunks__/chunk-JDDXX4XK.js";import"../__chunks__/chunk-DQG5M55E.js";import"../__chunks__/chunk-WKRJ3B6X.js";import"../__chunks__/chunk-ZRF45QPZ.js";import"../__chunks__/chunk-MUC4VQA2.js";import"../__chunks__/chunk-NRQ2QOKI.js";import"../__chunks__/chunk-6YEBPDTC.js";import"../__chunks__/chunk-OMEP276V.js";import"../__chunks__/chunk-KQBWXEGB.js";import"../__chunks__/chunk-DHRIIJW6.js";import"../__chunks__/chunk-2T3SZVFQ.js";import"../__chunks__/chunk-5FUU6YT7.js";import"../__chunks__/chunk-MR4I4XVG.js";import"../__chunks__/chunk-TTCT34VS.js";import"../__chunks__/chunk-FMHS53L2.js";import"../__chunks__/chunk-7CT27RQT.js";import"../__chunks__/chunk-7Q3LNSP3.js";import"../__chunks__/chunk-E5THMW5I.js";import"../__chunks__/chunk-LNYINVMN.js";import"../__chunks__/chunk-665NO27H.js";import"../__chunks__/chunk-UYEK2HPA.js";import"../__chunks__/chunk-N6VJQLL3.js";import"../__chunks__/chunk-OQ7P4SR6.js";import"../__chunks__/chunk-63OK7TX5.js";import"../__chunks__/chunk-DVCP2A6O.js";import"../__chunks__/chunk-OFOMMPSJ.js";import"../__chunks__/chunk-JAZTRPUN.js";import"../__chunks__/chunk-F4GPMVZ3.js";import"../__chunks__/chunk-RZW45AHN.js";import"../__chunks__/chunk-GYB57BD3.js";import"../__chunks__/chunk-AP2OU4L5.js";import"../__chunks__/chunk-ZFXP4YRF.js";import"../__chunks__/chunk-TA6HP4LD.js";import"../__chunks__/chunk-QFTWB3KE.js";import"../__chunks__/chunk-635DGGEZ.js";import"../__chunks__/chunk-Y45HECK3.js";import"../__chunks__/chunk-EWSOJLDO.js";import"../__chunks__/chunk-NQYHKHB7.js";import"../__chunks__/chunk-NM43ACPN.js";import"../__chunks__/chunk-GGMEVY45.js";import"../__chunks__/chunk-D5UI3QA4.js";import"../__chunks__/chunk-W2ZGLITQ.js";import"../__chunks__/chunk-F2IU3HVC.js";import"../__chunks__/chunk-CHYGQARZ.js";import"../__chunks__/chunk-4NXNLUI5.js";import"../__chunks__/chunk-OPNKJA4L.js";import"../__chunks__/chunk-MHCO27HW.js";import"../__chunks__/chunk-FI4EFU5H.js";import"../__chunks__/chunk-7EH2JVA7.js";import"../__chunks__/chunk-4P42QTUO.js";import"../__chunks__/chunk-75LIHOT7.js";import"../__chunks__/chunk-VLRIBNO6.js";import"../__chunks__/chunk-BPCYDSCL.js";import"../__chunks__/chunk-MUAY6CGW.js";import"../__chunks__/chunk-IOL7ECDB.js";import"../__chunks__/chunk-XB3SZG7C.js";import"../__chunks__/chunk-PXHBOM4A.js";import"../__chunks__/chunk-WZZ2ZH2A.js";import"../__chunks__/chunk-6XR6BLIB.js";import"../__chunks__/chunk-5KGDRZSV.js";import"../__chunks__/chunk-HGOHQNWK.js";import"../__chunks__/chunk-WTIKHG7D.js";import"../__chunks__/chunk-PZODOGW5.js";import"../__chunks__/chunk-BQV5LZAR.js";import"../__chunks__/chunk-4JU7QJGU.js";import"../__chunks__/chunk-J42ZO72F.js";import"../__chunks__/chunk-6ZGFYJ6T.js";import"../__chunks__/chunk-CSUZ4NMB.js";import"../__chunks__/chunk-XRCJ5PNU.js";import"../__chunks__/chunk-G67YB5IT.js";import"../__chunks__/chunk-6WZ7DVP7.js";import"../__chunks__/chunk-AZT6MXVG.js";import"../__chunks__/chunk-LNQARCOO.js";import"../__chunks__/chunk-X2JZA2ND.js";import"../__chunks__/chunk-SD4GGXWR.js";import"../__chunks__/chunk-WQFSDAGL.js";import"../__chunks__/chunk-QR72MI4M.js";import"../__chunks__/chunk-A2R2BMVL.js";import"../__chunks__/chunk-CM6AEXUD.js";import"../__chunks__/chunk-27DX5WIQ.js";import"../__chunks__/chunk-F4DBBFBM.js";import{a as r,b as e,c as f}from"../__chunks__/chunk-2LCMVQG2.js";import"../__chunks__/chunk-HXXADXWC.js";import"../__chunks__/chunk-QEHQ4T4K.js";import"../__chunks__/chunk-UATCR5PB.js";import"../__chunks__/chunk-OGKM4YOJ.js";import"../__chunks__/chunk-6LITAK4Z.js";import"../__chunks__/chunk-HJBXC7VN.js";import"../__chunks__/chunk-GVCPEY3I.js";import"../__chunks__/chunk-MFMZQYRN.js";import"../__chunks__/chunk-XTDLK5SN.js";import"../__chunks__/chunk-M233YJDK.js";import"../__chunks__/chunk-DCI4LUDC.js";import"../__chunks__/chunk-NDBCUTWV.js";import"../__chunks__/chunk-GNCSMYRN.js";import"../__chunks__/chunk-Y4RXLAEX.js";import"../__chunks__/chunk-UIDXWJ2D.js";import"../__chunks__/chunk-FTQGHIGG.js";import"../__chunks__/chunk-NHHDQ53S.js";import"../__chunks__/chunk-XXP2T2NS.js";import"../__chunks__/chunk-AHX4GHIC.js";import{m as o}from"../__chunks__/chunk-HBP5N4FR.js";o();export{m as createSubscription,a as mockResponse,t as mockWindowLocation,p as renderWithProvider,x as rest,b as server,r as testAddress,e as testNetwork,f as testReceiver};
1
+ "use strict";import"../__chunks__/chunk-OQMQWZG7.js";import{a as m}from"../__chunks__/chunk-WTAIM7XI.js";import{a as x,b as a,c as b}from"../__chunks__/chunk-JTR3JIF5.js";import"../__chunks__/chunk-G6V3RROQ.js";import{a as t}from"../__chunks__/chunk-ZD4T5RDE.js";import{a as p}from"../__chunks__/chunk-QB7FSZIJ.js";import"../__chunks__/chunk-4FTRS7WH.js";import"../__chunks__/chunk-J4FVDFZJ.js";import"../__chunks__/chunk-DQPZUP6J.js";import"../__chunks__/chunk-AS5LF45F.js";import"../__chunks__/chunk-K3PKB7WJ.js";import"../__chunks__/chunk-UTT6IDXI.js";import"../__chunks__/chunk-GVU7CFIB.js";import"../__chunks__/chunk-RTBLJLK5.js";import"../__chunks__/chunk-GKOGOKEY.js";import"../__chunks__/chunk-K34TH3BZ.js";import"../__chunks__/chunk-YKAKLVB7.js";import"../__chunks__/chunk-UCBDWIIG.js";import"../__chunks__/chunk-COW7WUHF.js";import"../__chunks__/chunk-5GJJYCFY.js";import"../__chunks__/chunk-Y4M6VSON.js";import"../__chunks__/chunk-FALDLO5J.js";import"../__chunks__/chunk-2VXRBR3A.js";import"../__chunks__/chunk-SSVGMOQH.js";import"../__chunks__/chunk-RJ7SJMWT.js";import"../__chunks__/chunk-FD3VYCS4.js";import"../__chunks__/chunk-NKHBIONP.js";import"../__chunks__/chunk-ICDXNBEF.js";import"../__chunks__/chunk-KMJBEARC.js";import"../__chunks__/chunk-3VOPLXJ4.js";import"../__chunks__/chunk-7HF7RMSM.js";import"../__chunks__/chunk-ZPLMSLJT.js";import"../__chunks__/chunk-PF6FZ5CA.js";import"../__chunks__/chunk-7B66IZJD.js";import"../__chunks__/chunk-B3T5YNKO.js";import"../__chunks__/chunk-LFMDBIML.js";import"../__chunks__/chunk-NXSPBH7F.js";import"../__chunks__/chunk-XX6WKYPF.js";import"../__chunks__/chunk-C6OR4CE7.js";import"../__chunks__/chunk-PENA4DTK.js";import"../__chunks__/chunk-7QGLKL3O.js";import"../__chunks__/chunk-HUNAKHPM.js";import"../__chunks__/chunk-VH5B3W6C.js";import"../__chunks__/chunk-VW2UBFJI.js";import"../__chunks__/chunk-SQJYWVIF.js";import"../__chunks__/chunk-V6IICA5I.js";import"../__chunks__/chunk-L5ZELHXF.js";import"../__chunks__/chunk-7HYW3VNZ.js";import"../__chunks__/chunk-3U7QBETU.js";import"../__chunks__/chunk-DBD6N2CW.js";import"../__chunks__/chunk-7I6VVHPW.js";import"../__chunks__/chunk-PASB5DTY.js";import"../__chunks__/chunk-MFK5TIXS.js";import"../__chunks__/chunk-MDIJXESM.js";import"../__chunks__/chunk-EQZEJKTR.js";import"../__chunks__/chunk-JIE46P3A.js";import"../__chunks__/chunk-VPGECZPA.js";import"../__chunks__/chunk-BIJ27EC2.js";import"../__chunks__/chunk-XPO7HQNJ.js";import"../__chunks__/chunk-ODZH7JKM.js";import"../__chunks__/chunk-LKEL6F45.js";import"../__chunks__/chunk-74RR42GW.js";import"../__chunks__/chunk-CCPH6YBW.js";import"../__chunks__/chunk-N4AS4WKH.js";import"../__chunks__/chunk-S2KRJP2S.js";import"../__chunks__/chunk-ASQNM7MJ.js";import"../__chunks__/chunk-QCGS2BTF.js";import"../__chunks__/chunk-7PHB4IHW.js";import"../__chunks__/chunk-WHY2O6VY.js";import"../__chunks__/chunk-EW3SEUQV.js";import"../__chunks__/chunk-N4YDENJI.js";import"../__chunks__/chunk-UJFVVD7I.js";import"../__chunks__/chunk-RRSKW4X3.js";import"../__chunks__/chunk-S2ZXQSDD.js";import"../__chunks__/chunk-KXYIK2NA.js";import"../__chunks__/chunk-HEO7KJU5.js";import"../__chunks__/chunk-UQPS2RPU.js";import"../__chunks__/chunk-KMIS2BLG.js";import"../__chunks__/chunk-63OV72OW.js";import"../__chunks__/chunk-FN7HSBPB.js";import"../__chunks__/chunk-4UG2JBYU.js";import"../__chunks__/chunk-FUIWFYYW.js";import"../__chunks__/chunk-IGROQXUZ.js";import"../__chunks__/chunk-VB6VZREF.js";import"../__chunks__/chunk-HSWMYWSJ.js";import"../__chunks__/chunk-POJG76RP.js";import"../__chunks__/chunk-QJRS3XXT.js";import"../__chunks__/chunk-O2NVMOWV.js";import"../__chunks__/chunk-RIVVRYEZ.js";import"../__chunks__/chunk-UUYNGUKK.js";import"../__chunks__/chunk-UG2C5XXR.js";import"../__chunks__/chunk-CSTEEV34.js";import"../__chunks__/chunk-6ERRM2KF.js";import"../__chunks__/chunk-3GKFYHC4.js";import"../__chunks__/chunk-27M6NKGP.js";import"../__chunks__/chunk-5PH62EO2.js";import"../__chunks__/chunk-WLZPLFLW.js";import"../__chunks__/chunk-IF5CP4YY.js";import"../__chunks__/chunk-WJGL6LVA.js";import"../__chunks__/chunk-LK5TR7MI.js";import"../__chunks__/chunk-OCMDIV3Q.js";import"../__chunks__/chunk-TKIIHBF2.js";import"../__chunks__/chunk-KMTPVLTX.js";import"../__chunks__/chunk-KOH3SXG4.js";import"../__chunks__/chunk-ZY4AUE6X.js";import"../__chunks__/chunk-7RBYOO2J.js";import"../__chunks__/chunk-DGPHTEKD.js";import"../__chunks__/chunk-TXAITGIS.js";import"../__chunks__/chunk-JFXVZGSY.js";import"../__chunks__/chunk-AXIF35TD.js";import"../__chunks__/chunk-UMMB4MY5.js";import"../__chunks__/chunk-XAQNBFSL.js";import"../__chunks__/chunk-5HMS5KVK.js";import"../__chunks__/chunk-53GKFOIV.js";import"../__chunks__/chunk-V5ZYXPUP.js";import"../__chunks__/chunk-5WQI3F3M.js";import"../__chunks__/chunk-N3ETS4IR.js";import"../__chunks__/chunk-NUWNMCYM.js";import"../__chunks__/chunk-U2YJMXQE.js";import"../__chunks__/chunk-YTYNUTPN.js";import"../__chunks__/chunk-JVFR4K57.js";import"../__chunks__/chunk-24HAPWVY.js";import"../__chunks__/chunk-DWAZWPSE.js";import"../__chunks__/chunk-Z54DAJHV.js";import"../__chunks__/chunk-RS66KCFE.js";import"../__chunks__/chunk-MAIOHYCR.js";import"../__chunks__/chunk-AILGLGLT.js";import"../__chunks__/chunk-FZMRVALH.js";import"../__chunks__/chunk-HPFY6NOU.js";import"../__chunks__/chunk-WME7JUV7.js";import"../__chunks__/chunk-VFLNL2FY.js";import"../__chunks__/chunk-QW3V7MFZ.js";import"../__chunks__/chunk-ERXYZXKF.js";import"../__chunks__/chunk-FB2BXND5.js";import"../__chunks__/chunk-WWYZM6K6.js";import"../__chunks__/chunk-XBAP2D3B.js";import"../__chunks__/chunk-HI3RZINR.js";import"../__chunks__/chunk-MSREVFSA.js";import"../__chunks__/chunk-ZKKCLJG5.js";import"../__chunks__/chunk-HZSM6ODA.js";import"../__chunks__/chunk-OLYIRMPJ.js";import"../__chunks__/chunk-ELRQPILJ.js";import"../__chunks__/chunk-3SHFG3Q2.js";import"../__chunks__/chunk-3SGZP5CP.js";import"../__chunks__/chunk-WPNTJLX5.js";import"../__chunks__/chunk-MVJUBH74.js";import"../__chunks__/chunk-K7TKWQTX.js";import"../__chunks__/chunk-OE2TXZIV.js";import"../__chunks__/chunk-LDQULRQM.js";import"../__chunks__/chunk-NAUXCAHX.js";import"../__chunks__/chunk-ZT3JSTYM.js";import"../__chunks__/chunk-VVY3H3F7.js";import"../__chunks__/chunk-OIMSUDOK.js";import"../__chunks__/chunk-YAR2KJ42.js";import"../__chunks__/chunk-OZN64XXH.js";import"../__chunks__/chunk-AJJUE6BQ.js";import"../__chunks__/chunk-CIE6DSGF.js";import"../__chunks__/chunk-AMNHI3QW.js";import"../__chunks__/chunk-UDIL7X3Z.js";import"../__chunks__/chunk-R34ULZDI.js";import"../__chunks__/chunk-KZR7TQ7H.js";import"../__chunks__/chunk-XOZ662VA.js";import"../__chunks__/chunk-NAN2H6P3.js";import"../__chunks__/chunk-LO5NNAIV.js";import"../__chunks__/chunk-47JMQSE2.js";import"../__chunks__/chunk-WZSDWRXM.js";import"../__chunks__/chunk-KEQTNP4F.js";import"../__chunks__/chunk-VQ45VOHN.js";import"../__chunks__/chunk-FG74WDBQ.js";import"../__chunks__/chunk-3AWBGP7M.js";import"../__chunks__/chunk-WKVTOFIT.js";import"../__chunks__/chunk-4WQJMUQT.js";import"../__chunks__/chunk-HH5S5FOE.js";import"../__chunks__/chunk-XWK5XUNJ.js";import"../__chunks__/chunk-22UA5SNR.js";import"../__chunks__/chunk-W7WSJP4R.js";import"../__chunks__/chunk-QPHDB4SX.js";import"../__chunks__/chunk-NWAWFX5O.js";import"../__chunks__/chunk-M6BI7ILE.js";import"../__chunks__/chunk-MAN7DZAK.js";import"../__chunks__/chunk-FFXOJXGN.js";import"../__chunks__/chunk-IPRFCS7D.js";import"../__chunks__/chunk-OKNX6OPM.js";import"../__chunks__/chunk-VWBMNLVZ.js";import"../__chunks__/chunk-CSNNQII4.js";import"../__chunks__/chunk-MIQXM37N.js";import"../__chunks__/chunk-CUVIIQZB.js";import"../__chunks__/chunk-MBQJF3MO.js";import"../__chunks__/chunk-5ATU6BWE.js";import"../__chunks__/chunk-DXDKVGS6.js";import"../__chunks__/chunk-6M2KUHI5.js";import"../__chunks__/chunk-IHEQMC3B.js";import"../__chunks__/chunk-SKMXMVKW.js";import"../__chunks__/chunk-T74FZLQO.js";import"../__chunks__/chunk-ONNEZDFU.js";import"../__chunks__/chunk-LPQY7BQ4.js";import"../__chunks__/chunk-ZS72QLFO.js";import"../__chunks__/chunk-BPKJAHYT.js";import"../__chunks__/chunk-AURFLPJI.js";import"../__chunks__/chunk-HESHBYEE.js";import"../__chunks__/chunk-EIVAH6FT.js";import"../__chunks__/chunk-U7KBDVS6.js";import"../__chunks__/chunk-MALUP4TG.js";import"../__chunks__/chunk-OXSLKC3X.js";import"../__chunks__/chunk-T73DKVUT.js";import"../__chunks__/chunk-U47YYGAI.js";import"../__chunks__/chunk-RBHZ2TA2.js";import"../__chunks__/chunk-CF2SJYLM.js";import"../__chunks__/chunk-TPDR3Y6L.js";import"../__chunks__/chunk-7I7NVYZT.js";import"../__chunks__/chunk-X4TEIUC5.js";import"../__chunks__/chunk-J5WPVXJV.js";import"../__chunks__/chunk-72AKFMHW.js";import"../__chunks__/chunk-NGVYQHDX.js";import"../__chunks__/chunk-BP7X5FRP.js";import"../__chunks__/chunk-J3HVA7J2.js";import"../__chunks__/chunk-4M4ZG6UK.js";import"../__chunks__/chunk-A32WHRLH.js";import"../__chunks__/chunk-QOTHHSFI.js";import"../__chunks__/chunk-WYC35YN5.js";import"../__chunks__/chunk-CLBIWLXP.js";import"../__chunks__/chunk-Z2RFL7UF.js";import"../__chunks__/chunk-MQRTP6HG.js";import"../__chunks__/chunk-FMIRA7YL.js";import"../__chunks__/chunk-RQ3IOPRD.js";import"../__chunks__/chunk-WVJETRW5.js";import"../__chunks__/chunk-ZXAKZDAQ.js";import"../__chunks__/chunk-NCHDT5N7.js";import"../__chunks__/chunk-CF3APRHB.js";import"../__chunks__/chunk-XNOSDTBZ.js";import"../__chunks__/chunk-FRMKDPUJ.js";import"../__chunks__/chunk-OHJM3SMB.js";import"../__chunks__/chunk-KD7CSMP4.js";import"../__chunks__/chunk-W2FL4F7Y.js";import"../__chunks__/chunk-5MHH6T2T.js";import"../__chunks__/chunk-SLS4RCYR.js";import"../__chunks__/chunk-CFS5VG7S.js";import"../__chunks__/chunk-FUKFASZ4.js";import"../__chunks__/chunk-7F3MKQYJ.js";import"../__chunks__/chunk-4NZQZ2PK.js";import"../__chunks__/chunk-6AAGHH3Z.js";import"../__chunks__/chunk-OBKYH7E7.js";import"../__chunks__/chunk-I2ACNKBY.js";import"../__chunks__/chunk-7LG3PXXW.js";import"../__chunks__/chunk-RDTHAMCD.js";import"../__chunks__/chunk-UOJHMSFY.js";import"../__chunks__/chunk-MM7DLMSH.js";import"../__chunks__/chunk-DOWAMMRF.js";import"../__chunks__/chunk-MSYI33IZ.js";import"../__chunks__/chunk-TP3Q54FK.js";import"../__chunks__/chunk-VEMADCAG.js";import"../__chunks__/chunk-G7YPZ46A.js";import"../__chunks__/chunk-4MIWSVE2.js";import"../__chunks__/chunk-Y6NJKSSO.js";import"../__chunks__/chunk-C6FBV65M.js";import"../__chunks__/chunk-KT7HCFVX.js";import"../__chunks__/chunk-LHMTZEA5.js";import"../__chunks__/chunk-7CWJCONI.js";import"../__chunks__/chunk-XQVTILMR.js";import"../__chunks__/chunk-ZXF7VTXT.js";import"../__chunks__/chunk-2SAKHJIZ.js";import"../__chunks__/chunk-DEY75ILF.js";import"../__chunks__/chunk-DGMWAKSQ.js";import"../__chunks__/chunk-5NJW53EW.js";import"../__chunks__/chunk-JSD4JECW.js";import"../__chunks__/chunk-KRCUIXB4.js";import"../__chunks__/chunk-UWQPMY2D.js";import"../__chunks__/chunk-DPOE6IK4.js";import"../__chunks__/chunk-HP3L7RUD.js";import"../__chunks__/chunk-A3JT4J5G.js";import"../__chunks__/chunk-UDWLOK2I.js";import"../__chunks__/chunk-FOHOVMG2.js";import"../__chunks__/chunk-4CNJEAQC.js";import"../__chunks__/chunk-7NDRRNEP.js";import"../__chunks__/chunk-H2KQWRZO.js";import"../__chunks__/chunk-4I33RXZI.js";import"../__chunks__/chunk-5774QZTU.js";import"../__chunks__/chunk-QOETGIPL.js";import"../__chunks__/chunk-T7D7BT5X.js";import"../__chunks__/chunk-XBLU7KZJ.js";import"../__chunks__/chunk-JDDXX4XK.js";import"../__chunks__/chunk-DQG5M55E.js";import"../__chunks__/chunk-WKRJ3B6X.js";import"../__chunks__/chunk-ZRF45QPZ.js";import"../__chunks__/chunk-MUC4VQA2.js";import"../__chunks__/chunk-NRQ2QOKI.js";import"../__chunks__/chunk-6YEBPDTC.js";import"../__chunks__/chunk-OMEP276V.js";import"../__chunks__/chunk-KQBWXEGB.js";import"../__chunks__/chunk-DHRIIJW6.js";import"../__chunks__/chunk-2T3SZVFQ.js";import"../__chunks__/chunk-5FUU6YT7.js";import"../__chunks__/chunk-MR4I4XVG.js";import"../__chunks__/chunk-TTCT34VS.js";import"../__chunks__/chunk-FMHS53L2.js";import"../__chunks__/chunk-7CT27RQT.js";import"../__chunks__/chunk-7Q3LNSP3.js";import"../__chunks__/chunk-E5THMW5I.js";import"../__chunks__/chunk-LNYINVMN.js";import"../__chunks__/chunk-665NO27H.js";import"../__chunks__/chunk-UYEK2HPA.js";import"../__chunks__/chunk-N6VJQLL3.js";import"../__chunks__/chunk-OQ7P4SR6.js";import"../__chunks__/chunk-63OK7TX5.js";import"../__chunks__/chunk-DVCP2A6O.js";import"../__chunks__/chunk-OFOMMPSJ.js";import"../__chunks__/chunk-JAZTRPUN.js";import"../__chunks__/chunk-F4GPMVZ3.js";import"../__chunks__/chunk-RZW45AHN.js";import"../__chunks__/chunk-GYB57BD3.js";import"../__chunks__/chunk-AP2OU4L5.js";import"../__chunks__/chunk-ZFXP4YRF.js";import"../__chunks__/chunk-TA6HP4LD.js";import"../__chunks__/chunk-QFTWB3KE.js";import"../__chunks__/chunk-635DGGEZ.js";import"../__chunks__/chunk-Y45HECK3.js";import"../__chunks__/chunk-EWSOJLDO.js";import"../__chunks__/chunk-NQYHKHB7.js";import"../__chunks__/chunk-NM43ACPN.js";import"../__chunks__/chunk-GGMEVY45.js";import"../__chunks__/chunk-D5UI3QA4.js";import"../__chunks__/chunk-W2ZGLITQ.js";import"../__chunks__/chunk-F2IU3HVC.js";import"../__chunks__/chunk-CHYGQARZ.js";import"../__chunks__/chunk-4NXNLUI5.js";import"../__chunks__/chunk-OPNKJA4L.js";import"../__chunks__/chunk-MHCO27HW.js";import"../__chunks__/chunk-FI4EFU5H.js";import"../__chunks__/chunk-7EH2JVA7.js";import"../__chunks__/chunk-4P42QTUO.js";import"../__chunks__/chunk-75LIHOT7.js";import"../__chunks__/chunk-VLRIBNO6.js";import"../__chunks__/chunk-BPCYDSCL.js";import"../__chunks__/chunk-MUAY6CGW.js";import"../__chunks__/chunk-IOL7ECDB.js";import"../__chunks__/chunk-XB3SZG7C.js";import"../__chunks__/chunk-PXHBOM4A.js";import"../__chunks__/chunk-WZZ2ZH2A.js";import"../__chunks__/chunk-6XR6BLIB.js";import"../__chunks__/chunk-5KGDRZSV.js";import"../__chunks__/chunk-HGOHQNWK.js";import"../__chunks__/chunk-WTIKHG7D.js";import"../__chunks__/chunk-PZODOGW5.js";import"../__chunks__/chunk-BQV5LZAR.js";import"../__chunks__/chunk-4JU7QJGU.js";import"../__chunks__/chunk-J42ZO72F.js";import"../__chunks__/chunk-6ZGFYJ6T.js";import"../__chunks__/chunk-CSUZ4NMB.js";import"../__chunks__/chunk-XRCJ5PNU.js";import"../__chunks__/chunk-G67YB5IT.js";import"../__chunks__/chunk-6WZ7DVP7.js";import"../__chunks__/chunk-AZT6MXVG.js";import"../__chunks__/chunk-LNQARCOO.js";import"../__chunks__/chunk-X2JZA2ND.js";import"../__chunks__/chunk-SD4GGXWR.js";import"../__chunks__/chunk-WQFSDAGL.js";import"../__chunks__/chunk-QR72MI4M.js";import"../__chunks__/chunk-A2R2BMVL.js";import"../__chunks__/chunk-CM6AEXUD.js";import"../__chunks__/chunk-27DX5WIQ.js";import"../__chunks__/chunk-F4DBBFBM.js";import{a as r,b as e,c as f}from"../__chunks__/chunk-2LCMVQG2.js";import"../__chunks__/chunk-HXXADXWC.js";import"../__chunks__/chunk-QEHQ4T4K.js";import"../__chunks__/chunk-UATCR5PB.js";import"../__chunks__/chunk-OGKM4YOJ.js";import"../__chunks__/chunk-6LITAK4Z.js";import"../__chunks__/chunk-HJBXC7VN.js";import"../__chunks__/chunk-GVCPEY3I.js";import"../__chunks__/chunk-MFMZQYRN.js";import"../__chunks__/chunk-XTDLK5SN.js";import"../__chunks__/chunk-M233YJDK.js";import"../__chunks__/chunk-DCI4LUDC.js";import"../__chunks__/chunk-NDBCUTWV.js";import"../__chunks__/chunk-GNCSMYRN.js";import"../__chunks__/chunk-Y4RXLAEX.js";import"../__chunks__/chunk-UIDXWJ2D.js";import"../__chunks__/chunk-FTQGHIGG.js";import"../__chunks__/chunk-NHHDQ53S.js";import"../__chunks__/chunk-XXP2T2NS.js";import"../__chunks__/chunk-AHX4GHIC.js";import{m as o}from"../__chunks__/chunk-HBP5N4FR.js";o();export{m as createSubscription,a as mockResponse,t as mockWindowLocation,p as renderWithProvider,x as rest,b as server,r as testAddress,e as testNetwork,f as testReceiver};
2
2
  //# sourceMappingURL=index.js.map