@multiversx/sdk-dapp 2.22.3 → 2.22.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/UI/NotificationModal/NotificationModal.js +1 -1
- package/UI/NotificationModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/SignWithDeviceModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/SignStepBody.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmFee/ConfirmFee.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmFee/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmReceiver/ConfirmReceiver.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmReceiver/components/ReceiverSubValue/ReceiverSubValue.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmReceiver/components/ReceiverSubValue/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmReceiver/components/ReceiverValue/ReceiverValue.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmReceiver/components/ReceiverValue/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmReceiver/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/NftSftPreviewComponent/NftSftPreviewComponent.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/NftSftPreviewComponent/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtensionModal/SignWithExtensionModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/LedgerGuardianSigningModalError.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/SignWithLedgerModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
- package/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
- package/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
- package/UI/SignTransactionsModals/components/index.js +1 -1
- package/UI/SignTransactionsModals/index.js +1 -1
- package/UI/TransactionDetails/TransactionDetails.js +1 -1
- package/UI/TransactionDetails/components/TransactionDetailsBody.js +1 -1
- package/UI/TransactionDetails/components/index.js +1 -1
- package/UI/TransactionDetails/index.js +1 -1
- package/UI/TransactionInfo/TransactionInfo.js +1 -1
- package/UI/TransactionInfo/components/AddressDetailItem/AddressDetailitem.js +1 -1
- package/UI/TransactionInfo/components/AddressDetailItem/index.js +1 -1
- package/UI/TransactionInfo/components/EventsList/EventsList.js +1 -1
- package/UI/TransactionInfo/components/EventsList/index.js +1 -1
- package/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +1 -1
- package/UI/TransactionInfo/components/NonceMessage/index.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/OperationList.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/DetailedItem.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationBlock.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationRow.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationText.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/index.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/ScResultsList.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/ResultHash.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/ResultReceiver.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/ResultSender.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/index.js +1 -1
- package/UI/TransactionInfo/components/ScrDetailItem/ScrDetailItem.js +1 -1
- package/UI/TransactionInfo/components/ScrDetailItem/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/TransactionAction.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/ActionText/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionLogs/TransactionLogs.js +1 -1
- package/UI/TransactionInfo/components/TransactionLogs/index.js +1 -1
- package/UI/TransactionInfo/components/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/TransactionInfoFrom.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/TransactionInfoMethod.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/TransactionInfoMiniblock.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/TransactionInfoScResults.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/TransactionInfoTo.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/TransactionInfoTokenOperations.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/index.js +1 -1
- package/UI/TransactionInfo/index.js +1 -1
- package/UI/TransactionsTable/TransactionsTable.js +1 -1
- package/UI/TransactionsTable/components/AccountName.js +1 -1
- package/UI/TransactionsTable/components/TransactionHash.js +1 -1
- package/UI/TransactionsTable/components/TransactionReceiver.js +1 -1
- package/UI/TransactionsTable/components/TransactionRow.js +1 -1
- package/UI/TransactionsTable/components/TransactionSender.js +1 -1
- package/UI/TransactionsTable/components/index.js +1 -1
- package/UI/TransactionsTable/index.js +1 -1
- package/UI/TransactionsToastList/TransactionsToastList.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/CustomToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/CustomComponentToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/helpers/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/helpers/useMemoizedCloseButton.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/components/TransactionToastContent.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/components/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
- package/UI/TransactionsToastList/components/index.js +1 -1
- package/UI/TransactionsToastList/index.js +1 -1
- package/UI/Trim/Trim.js +1 -1
- package/UI/Trim/index.js +1 -1
- package/UI/index.js +1 -1
- package/UI/ledger/LedgerLoginButton/LedgerLoginButton.js +1 -1
- package/UI/ledger/LedgerLoginButton/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressRow/AddressRow.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressRow/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressTable/AddressTable.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressTable/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/ConfirmAddress/ConfirmAddress.js +1 -1
- package/UI/ledger/LedgerLoginContainer/ConfirmAddress/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoginContainer.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoginContent/LedgerLoginContent.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoginContent/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoginContentBody/LedgerLoginContentBody.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoginContentBody/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/index.js +1 -1
- package/UI/ledger/index.js +1 -1
- package/UI/operaWallet/OperaWalletLoginButton/OperaWalletLoginButton.js +1 -1
- package/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
- package/UI/pages/UnlockPage/index.js +1 -1
- package/UI/pages/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginButton/WalletConnectLoginButton.js +1 -1
- package/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
- package/UI/walletConnect/index.js +1 -1
- package/UI/webWallet/WebWalletLoginButton/WebWalletLoginButton.js +1 -1
- package/UI/webWallet/WebWalletLoginButton/index.js +1 -1
- package/__chunks__/{chunk-2X7IQMV3.js → chunk-66GI5LMJ.js} +2 -2
- package/__chunks__/chunk-6KZ376QS.js +2 -0
- package/__chunks__/chunk-ALWWVLET.js +2 -0
- package/__chunks__/{chunk-KBPU354O.js → chunk-CNEOY4HF.js} +2 -2
- package/__chunks__/{chunk-RJINUKHI.js → chunk-VGTBAXEI.js} +2 -2
- package/__chunks__/chunk-XKW7JKY7.js +2 -0
- package/__commonjs/UI/index.js +1 -1
- package/__commonjs/UI/pages/UnlockPage/index.js +1 -1
- package/__commonjs/UI/pages/index.js +1 -1
- package/__commonjs/UI/webWallet/WebWalletLoginButton/WebWalletLoginButton.js +1 -1
- package/__commonjs/UI/webWallet/WebWalletLoginButton/index.js +1 -1
- package/__commonjs/__mocks__/index.js +1 -1
- package/__commonjs/__mocks__/utils/index.js +1 -1
- package/__commonjs/__mocks__/utils/mockWindowHistory.js +1 -1
- package/__commonjs/__mocks__/utils/mockWindowLocation.js +1 -1
- package/__commonjs/hooks/index.js +1 -1
- package/__commonjs/hooks/login/index.js +1 -1
- package/__commonjs/hooks/login/useWebWalletLogin.js +1 -1
- package/__mocks__/index.js +1 -1
- package/__mocks__/utils/index.js +1 -1
- package/__mocks__/utils/mockWindowHistory.js +1 -1
- package/__mocks__/utils/mockWindowLocation.js +1 -1
- package/__mocks__/utils/renderWithProvider.js +1 -1
- package/components/LogoutListener/LogoutListener.js +1 -1
- package/components/LogoutListener/helpers/index.js +1 -1
- package/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
- package/components/LogoutListener/index.js +1 -1
- package/components/TransactionsTracker/TransactionTracker.js +1 -1
- package/components/TransactionsTracker/index.js +1 -1
- package/hooks/index.js +1 -1
- package/hooks/login/index.js +1 -1
- package/hooks/login/useWebWalletLogin.js +1 -1
- package/hooks/transactions/useTransactionsTracker.js +1 -1
- package/package.json +2 -2
- package/wrappers/DappProvider/CustomComponents.js +1 -1
- package/wrappers/DappProvider/DappProvider.js +1 -1
- package/wrappers/DappProvider/index.js +1 -1
- package/wrappers/index.js +1 -1
- package/__chunks__/chunk-GHE2YVYT.js +0 -2
- package/__chunks__/chunk-WIEHPIS6.js +0 -2
- package/__chunks__/chunk-ZD4T5RDE.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var ns=Object.create;var Ne=Object.defineProperty,os=Object.defineProperties,is=Object.getOwnPropertyDescriptor,ss=Object.getOwnPropertyDescriptors,as=Object.getOwnPropertyNames,He=Object.getOwnPropertySymbols,cs=Object.getPrototypeOf,Wt=Object.prototype.hasOwnProperty,$r=Object.prototype.propertyIsEnumerable;var Vr=(e,t,r)=>t in e?Ne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,f=(e,t)=>{for(var r in t||(t={}))Wt.call(t,r)&&Vr(e,r,t[r]);if(He)for(var r of He(t))$r.call(t,r)&&Vr(e,r,t[r]);return e},S=(e,t)=>os(e,ss(t));var je=(e,t)=>{var r={};for(var o in e)Wt.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&He)for(var o of He(e))t.indexOf(o)<0&&$r.call(e,o)&&(r[o]=e[o]);return r};var h=(e,t)=>()=>(e&&(t=e(e=0)),t);var M=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),pe=(e,t)=>{for(var r in t)Ne(e,r,{get:t[r],enumerable:!0})},Gr=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of as(t))!Wt.call(e,i)&&i!==r&&Ne(e,i,{get:()=>t[i],enumerable:!(o=is(t,i))||o.enumerable});return e};var w=(e,t,r)=>(r=e!=null?ns(cs(e)):{},Gr(t||!e||!e.__esModule?Ne(r,"default",{value:e,enumerable:!0}):r,e)),Re=e=>Gr(Ne({},"__esModule",{value:!0}),e);var I=(e,t,r)=>new Promise((o,i)=>{var l=d=>{try{m(r.next(d))}catch(y){i(y)}},p=d=>{try{m(r.throw(d))}catch(y){i(y)}},m=d=>d.done?o(d.value):Promise.resolve(d.value).then(l,p);m((r=r.apply(e,t)).next())});var qr=M(qe=>{"use strict";n();qe.byteLength=ps;qe.toByteArray=ds;qe.fromByteArray=fs;var Y=[],W=[],ls=typeof Uint8Array!="undefined"?Uint8Array:Array,Vt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(ue=0,Hr=Vt.length;ue<Hr;++ue)Y[ue]=Vt[ue],W[Vt.charCodeAt(ue)]=ue;var ue,Hr;W["-".charCodeAt(0)]=62;W["_".charCodeAt(0)]=63;function jr(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 ps(e){var t=jr(e),r=t[0],o=t[1];return(r+o)*3/4-o}function us(e,t,r){return(t+r)*3/4-r}function ds(e){var t,r=jr(e),o=r[0],i=r[1],l=new ls(us(e,o,i)),p=0,m=i>0?o-4:o,d;for(d=0;d<m;d+=4)t=W[e.charCodeAt(d)]<<18|W[e.charCodeAt(d+1)]<<12|W[e.charCodeAt(d+2)]<<6|W[e.charCodeAt(d+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return i===2&&(t=W[e.charCodeAt(d)]<<2|W[e.charCodeAt(d+1)]>>4,l[p++]=t&255),i===1&&(t=W[e.charCodeAt(d)]<<10|W[e.charCodeAt(d+1)]<<4|W[e.charCodeAt(d+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function ms(e){return Y[e>>18&63]+Y[e>>12&63]+Y[e>>6&63]+Y[e&63]}function gs(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(ms(o));return i.join("")}function fs(e){for(var t,r=e.length,o=r%3,i=[],l=16383,p=0,m=r-o;p<m;p+=l)i.push(gs(e,p,p+l>m?m:p+l));return o===1?(t=e[r-1],i.push(Y[t>>2]+Y[t<<4&63]+"==")):o===2&&(t=(e[r-2]<<8)+e[r-1],i.push(Y[t>>10]+Y[t>>4&63]+Y[t<<2&63]+"=")),i.join("")}});var zr=M($t=>{n();$t.read=function(e,t,r,o,i){var l,p,m=i*8-o-1,d=(1<<m)-1,y=d>>1,x=-7,g=r?i-1:0,v=r?-1:1,b=e[t+g];for(g+=v,l=b&(1<<-x)-1,b>>=-x,x+=m;x>0;l=l*256+e[t+g],g+=v,x-=8);for(p=l&(1<<-x)-1,l>>=-x,x+=o;x>0;p=p*256+e[t+g],g+=v,x-=8);if(l===0)l=1-y;else{if(l===d)return p?NaN:(b?-1:1)*(1/0);p=p+Math.pow(2,o),l=l-y}return(b?-1:1)*p*Math.pow(2,l-o)};$t.write=function(e,t,r,o,i,l){var p,m,d,y=l*8-i-1,x=(1<<y)-1,g=x>>1,v=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=o?0:l-1,A=o?1:-1,C=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(m=isNaN(t)?1:0,p=x):(p=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-p))<1&&(p--,d*=2),p+g>=1?t+=v/d:t+=v*Math.pow(2,1-g),t*d>=2&&(p++,d/=2),p+g>=x?(m=0,p=x):p+g>=1?(m=(t*d-1)*Math.pow(2,i),p=p+g):(m=t*Math.pow(2,g-1)*Math.pow(2,i),p=0));i>=8;e[r+b]=m&255,b+=A,m/=256,i-=8);for(p=p<<i|m,y+=i;y>0;e[r+b]=p&255,b+=A,p/=256,y-=8);e[r+b-A]|=C*128}});var an=M(Se=>{"use strict";n();var Gt=qr(),xe=zr(),Kr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Se.Buffer=u;Se.SlowBuffer=ws;Se.INSPECT_MAX_BYTES=50;var ze=2147483647;Se.kMaxLength=ze;u.TYPED_ARRAY_SUPPORT=Ts();!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 Ts(){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 re(e){if(e>ze)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 zt(e)}return Zr(e,t,r)}u.poolSize=8192;function Zr(e,t,r){if(typeof e=="string")return hs(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(X(e,ArrayBuffer)||e&&X(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(X(e,SharedArrayBuffer)||e&&X(e.buffer,SharedArrayBuffer)))return jt(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=Ss(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 Zr(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function Jr(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 ys(e,t,r){return Jr(e),e<=0?re(e):t!==void 0?typeof r=="string"?re(e).fill(t,r):re(e).fill(t):re(e)}u.alloc=function(e,t,r){return ys(e,t,r)};function zt(e){return Jr(e),re(e<0?0:Kt(e)|0)}u.allocUnsafe=function(e){return zt(e)};u.allocUnsafeSlow=function(e){return zt(e)};function hs(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=Qr(e,t)|0,o=re(r),i=o.write(e,t);return i!==r&&(o=o.slice(0,i)),o}function Ht(e){for(var t=e.length<0?0:Kt(e.length)|0,r=re(t),o=0;o<t;o+=1)r[o]=e[o]&255;return r}function xs(e){if(X(e,Uint8Array)){var t=new Uint8Array(e);return jt(t.buffer,t.byteOffset,t.byteLength)}return Ht(e)}function jt(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 Ss(e){if(u.isBuffer(e)){var t=Kt(e.length)|0,r=re(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||Yt(e.length)?re(0):Ht(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Ht(e.data)}function Kt(e){if(e>=ze)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ze.toString(16)+" bytes");return e|0}function ws(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(X(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),X(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(X(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 Qr(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||X(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 qt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return sn(e).length;default:if(i)return o?-1:qt(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=Qr;function As(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 Ps(this,t,r);case"utf8":case"utf-8":return tn(this,t,r);case"ascii":return Rs(this,t,r);case"latin1":case"binary":return Cs(this,t,r);case"base64":return Ls(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ds(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}u.prototype._isBuffer=!0;function de(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)de(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)de(this,r,r+3),de(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)de(this,r,r+7),de(this,r+1,r+6),de(this,r+2,r+5),de(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?tn(this,0,t):As.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=Se.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};Kr&&(u.prototype[Kr]=u.prototype.inspect);u.prototype.compare=function(t,r,o,i,l){if(X(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,m=o-r,d=Math.min(p,m),y=this.slice(i,l),x=t.slice(r,o),g=0;g<d;++g)if(y[g]!==x[g]){p=y[g],m=x[g];break}return p<m?-1:m<p?1:0};function en(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,Yt(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:Yr(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):Yr(e,[t],r,o,i);throw new TypeError("val must be string, number or Buffer")}function Yr(e,t,r,o,i){var l=1,p=e.length,m=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,m/=2,r/=2}function d(b,A){return l===1?b[A]:b.readUInt16BE(A*l)}var y;if(i){var x=-1;for(y=r;y<p;y++)if(d(e,y)===d(t,x===-1?0:y-x)){if(x===-1&&(x=y),y-x+1===m)return x*l}else x!==-1&&(y-=y-x),x=-1}else for(r+m>p&&(r=p-m),y=r;y>=0;y--){for(var g=!0,v=0;v<m;v++)if(d(e,y+v)!==d(t,v)){g=!1;break}if(g)return y}return-1}u.prototype.includes=function(t,r,o){return this.indexOf(t,r,o)!==-1};u.prototype.indexOf=function(t,r,o){return en(this,t,r,o,!0)};u.prototype.lastIndexOf=function(t,r,o){return en(this,t,r,o,!1)};function vs(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 m=parseInt(t.substr(p*2,2),16);if(Yt(m))return p;e[r+p]=m}return p}function bs(e,t,r,o){return Ke(qt(t,e.length-r),e,r,o)}function Is(e,t,r,o){return Ke(Ms(t),e,r,o)}function ks(e,t,r,o){return Ke(sn(t),e,r,o)}function Es(e,t,r,o){return Ke(Fs(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 vs(this,t,r,o);case"utf8":case"utf-8":return bs(this,t,r,o);case"ascii":case"latin1":case"binary":return Is(this,t,r,o);case"base64":return ks(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Es(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?Gt.fromByteArray(e):Gt.fromByteArray(e.slice(t,r))}function tn(e,t,r){r=Math.min(e.length,r);for(var o=[],i=t;i<r;){var l=e[i],p=null,m=l>239?4:l>223?3:l>191?2:1;if(i+m<=r){var d,y,x,g;switch(m){case 1:l<128&&(p=l);break;case 2:d=e[i+1],(d&192)===128&&(g=(l&31)<<6|d&63,g>127&&(p=g));break;case 3:d=e[i+1],y=e[i+2],(d&192)===128&&(y&192)===128&&(g=(l&15)<<12|(d&63)<<6|y&63,g>2047&&(g<55296||g>57343)&&(p=g));break;case 4:d=e[i+1],y=e[i+2],x=e[i+3],(d&192)===128&&(y&192)===128&&(x&192)===128&&(g=(l&15)<<18|(d&63)<<12|(y&63)<<6|x&63,g>65535&&g<1114112&&(p=g))}}p===null?(p=65533,m=1):p>65535&&(p-=65536,o.push(p>>>10&1023|55296),p=56320|p&1023),o.push(p),i+=m}return Ns(o)}var Xr=4096;function Ns(e){var t=e.length;if(t<=Xr)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=Xr));return r}function Rs(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 Cs(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 Ps(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 Ds(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 R(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||R(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||R(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||R(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||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||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||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||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||R(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||R(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||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||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||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||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||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||R(t,4,this.length),xe.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||R(t,4,this.length),xe.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||R(t,8,this.length),xe.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||R(t,8,this.length),xe.read(this,t,!1,52,8)};function D(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;D(this,t,r,o,l,0)}var p=1,m=0;for(this[r]=t&255;++m<o&&(p*=256);)this[r+m]=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;D(this,t,r,o,l,0)}var p=o-1,m=1;for(this[r+p]=t&255;--p>=0&&(m*=256);)this[r+p]=t/m&255;return r+o};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,o){return t=+t,r=r>>>0,o||D(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||D(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||D(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||D(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||D(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};u.prototype.writeIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);D(this,t,r,o,l-1,-l)}var p=0,m=1,d=0;for(this[r]=t&255;++p<o&&(m*=256);)t<0&&d===0&&this[r+p-1]!==0&&(d=1),this[r+p]=(t/m>>0)-d&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);D(this,t,r,o,l-1,-l)}var p=o-1,m=1,d=0;for(this[r+p]=t&255;--p>=0&&(m*=256);)t<0&&d===0&&this[r+p+1]!==0&&(d=1),this[r+p]=(t/m>>0)-d&255;return r+o};u.prototype.writeInt8=function(t,r,o){return t=+t,r=r>>>0,o||D(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};u.prototype.writeInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||D(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||D(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||D(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};u.prototype.writeInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||D(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function rn(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 nn(e,t,r,o,i){return t=+t,r=r>>>0,i||rn(e,t,r,4,34028234663852886e22,-34028234663852886e22),xe.write(e,t,r,o,23,4),r+4}u.prototype.writeFloatLE=function(t,r,o){return nn(this,t,r,!0,o)};u.prototype.writeFloatBE=function(t,r,o){return nn(this,t,r,!1,o)};function on(e,t,r,o,i){return t=+t,r=r>>>0,i||rn(e,t,r,8,17976931348623157e292,-17976931348623157e292),xe.write(e,t,r,o,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,o){return on(this,t,r,!0,o)};u.prototype.writeDoubleBE=function(t,r,o){return on(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 m=u.isBuffer(t)?t:u.from(t,i),d=m.length;if(d===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(p=0;p<o-r;++p)this[p+r]=m[p%d]}return this};var _s=/[^+/0-9A-Za-z-_]/g;function Os(e){if(e=e.split("=")[0],e=e.trim().replace(_s,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function qt(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 Ms(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function Fs(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 sn(e){return Gt.toByteArray(Os(e))}function Ke(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 X(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Yt(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 dn=M((Cl,un)=>{n();var L=un.exports={},Z,J;function Xt(){throw new Error("setTimeout has not been defined")}function Zt(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Z=setTimeout:Z=Xt}catch(e){Z=Xt}try{typeof clearTimeout=="function"?J=clearTimeout:J=Zt}catch(e){J=Zt}})();function cn(e){if(Z===setTimeout)return setTimeout(e,0);if((Z===Xt||!Z)&&setTimeout)return Z=setTimeout,setTimeout(e,0);try{return Z(e,0)}catch(t){try{return Z.call(null,e,0)}catch(r){return Z.call(this,e,0)}}}function Us(e){if(J===clearTimeout)return clearTimeout(e);if((J===Zt||!J)&&clearTimeout)return J=clearTimeout,clearTimeout(e);try{return J(e)}catch(t){try{return J.call(null,e)}catch(r){return J.call(this,e)}}}var ne=[],we=!1,me,Ye=-1;function Ws(){!we||!me||(we=!1,me.length?ne=me.concat(ne):Ye=-1,ne.length&&ln())}function ln(){if(!we){var e=cn(Ws);we=!0;for(var t=ne.length;t;){for(me=ne,ne=[];++Ye<t;)me&&me[Ye].run();Ye=-1,t=ne.length}me=null,we=!1,Us(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];ne.push(new pn(e,t)),ne.length===1&&!we&&cn(ln)};function pn(e,t){this.fun=e,this.array=t}pn.prototype.run=function(){this.fun.apply(null,this.array)};L.title="browser";L.browser=!0;L.env={};L.argv=[];L.version="";L.versions={};function oe(){}L.on=oe;L.addListener=oe;L.once=oe;L.off=oe;L.removeListener=oe;L.removeAllListeners=oe;L.emit=oe;L.prependListener=oe;L.prependOnceListener=oe;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 s,c,Vs,a,n=h(()=>{s=w(an()),c=w(dn()),Vs=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),a=Vs});var mn,Jt=h(()=>{"use strict";n();mn="Action not allowed. User is logged in. Call logout() first"});var gn=h(()=>{"use strict";n()});var fn=h(()=>{"use strict";n()});var Tn=h(()=>{"use strict";n()});var Qt=h(()=>{"use strict";n()});var yn=h(()=>{"use strict";n()});var hn=h(()=>{"use strict";n()});var xn=h(()=>{"use strict";n()});var Sn=h(()=>{"use strict";n()});var V=h(()=>{"use strict";n()});var wn=h(()=>{"use strict";n()});var An=h(()=>{"use strict";n()});var _=h(()=>{"use strict";n()});var vn=h(()=>{"use strict";n()});var bn=h(()=>{"use strict";n()});var In=h(()=>{"use strict";n()});var F=h(()=>{"use strict";n();hn();xn();Sn();V();wn();An();_();vn();bn();In()});var er,kn,rp,En,np,Ln,op,ip,sp,Nn=h(()=>{"use strict";n();F();er={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:kn,egldLabel:rp}=er["devnet"],{chainId:En,egldLabel:np}=er["testnet"],{chainId:Ln,egldLabel:op}=er["mainnet"],ip={["devnet"]:kn,["testnet"]:En,["mainnet"]:Ln},sp={[kn]:"devnet",[En]:"testnet",[Ln]:"mainnet"}});var Rn=h(()=>{"use strict";n()});var Q,Cn=h(()=>{"use strict";n();Q=require("@multiversx/sdk-web-wallet-provider")});var tr,rr,Pn,Xe,Dn,Ae,k=h(()=>{"use strict";n();gn();Jt();fn();Tn();Qt();yn();Nn();Rn();Cn();tr=5e4,rr=1e9,Pn=1,Xe="logout",Dn="login",Ae="0"});var ve,Ze=h(()=>{"use strict";n();ve=()=>Date.now()/1e3});var _n=h(()=>{"use strict";n()});var On=h(()=>{"use strict";n()});var nr=h(()=>{"use strict";n();Ze();_n();On()});var or={};pe(or,{clear:()=>js,getItem:()=>Gs,localStorageKeys:()=>le,removeItem:()=>Hs,setItem:()=>$s});var le,Je,$s,Gs,Hs,js,be=h(()=>{"use strict";n();nr();le={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},Je=typeof localStorage!="undefined",$s=({key:e,data:t,expires:r})=>{!Je||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Gs=e=>{if(!Je)return;let t=localStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:ve()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},Hs=e=>{!Je||localStorage.removeItem(String(e))},js=()=>{!Je||localStorage.clear()}});var ir={};pe(ir,{clear:()=>Un,getItem:()=>Fn,removeItem:()=>Bn,setItem:()=>Mn,storage:()=>qs});var Mn,Fn,Bn,Un,qs,Wn=h(()=>{"use strict";n();Mn=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Fn=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},Bn=e=>sessionStorage.removeItem(String(e)),Un=()=>sessionStorage.clear(),qs={setItem:Mn,getItem:Fn,removeItem:Bn,clear:Un}});var ge,Ie=h(()=>{"use strict";n();be();Wn();ge={session:ir,local:or}});var sr,N,Ce,B=h(()=>{"use strict";n();sr=require("@reduxjs/toolkit");k();N=(0,sr.createAction)(Xe),Ce=(0,sr.createAction)(Dn,e=>({payload:e}))});var cr,Vn,$n,Qe,ar,Gn,lr,Fp,pr,Bp,Up,Wp,Vp,$p,Gp,Hp,jp,et,tt=h(()=>{"use strict";n();cr=require("@multiversx/sdk-core"),Vn=require("@reduxjs/toolkit"),$n=require("redux-persist");k();Ie();be();B();Qe={balance:"...",address:"",isGuarded:!1,nonce:0,txCount:0,scrCount:0,claimableRewards:Ae},ar={address:"",websocketEvent:null,websocketBatchEvent:null,accounts:{"":Qe},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Gn=(0,Vn.createSlice)({name:"accountInfoSlice",initialState:ar,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new cr.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:Qe},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(N,()=>(ge.local.removeItem(le.loginExpiresAt),ar)),e.addCase(Ce,(t,r)=>{let{address:o}=r.payload;t.address=o,t.publicKey=new cr.Address(o).hex()}),e.addCase($n.REHYDRATE,(t,r)=>{var y;if(!((y=r.payload)!=null&&y.account))return;let{account:o}=r.payload,{address:i,shard:l,accounts:p,publicKey:m}=o;t.address=i,t.shard=l;let d=p&&i in p;t.accounts=d?p:ar.accounts,t.publicKey=m})}}),{setAccount:lr,setAddress:Fp,setAccountNonce:pr,setAccountShard:Bp,setLedgerAccount:Up,updateLedgerAccount:Wp,setWalletConnectAccount:Vp,setIsAccountLoading:$p,setAccountLoadingError:Gp,setWebsocketEvent:Hp,setWebsocketBatchEvent:jp}=Gn.actions,et=Gn.reducer});function Pe(){return new Date().setHours(new Date().getHours()+24)}function De(e){ge.local.setItem({key:le.loginExpiresAt,data:e,expires:e})}var ur=h(()=>{"use strict";n();Ie();be()});var jn,Hn,qn,tu,ru,nu,nt,ou,zn,Kn,iu,ot,it=h(()=>{"use strict";n();jn=require("@reduxjs/toolkit");ur();V();B();Hn={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},qn=(0,jn.createSlice)({name:"loginInfoSlice",initialState:Hn,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(N,()=>Hn),e.addCase(Ce,(t,r)=>{t.isLoginSessionInvalid=!1,t.loginMethod=r.payload.loginMethod,De(Pe())})}}),{setLoginMethod:tu,setWalletConnectLogin:ru,setLedgerLogin:nu,setTokenLogin:nt,setTokenLoginSignature:ou,setWalletLogin:zn,invalidateLoginSession:Kn,setLogoutRoute:iu}=qn.actions,ot=qn.reducer});var Xn,Yn,Zn,lu,pu,uu,du,st,at=h(()=>{"use strict";n();Xn=require("@reduxjs/toolkit");B();Yn={},Zn=(0,Xn.createSlice)({name:"modalsSlice",initialState:Yn,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(N,()=>Yn)}}),{setTxSubmittedModal:lu,setNotificationModal:pu,clearTxSubmittedModal:uu,clearNotificationModal:du}=Zn.actions,st=Zn.reducer});var ct=h(()=>{"use strict";n()});var Jn=h(()=>{"use strict";n();ct()});function Qn(e){return e[Math.floor(Math.random()*e.length)]}var eo=h(()=>{"use strict";n()});var to=h(()=>{"use strict";n();Qt()});var ro=h(()=>{"use strict";n();Jn();eo();to()});var no,oo,io,dr,Ks,so,Lu,Nu,ao,lt,pt=h(()=>{"use strict";n();no=require("@reduxjs/toolkit"),oo=w(require("lodash.omit")),io=require("redux-persist");B();ro();dr={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},Ks={network:dr,chainID:"-1"},so=(0,no.createSlice)({name:"appConfig",initialState:Ks,reducers:{initializeNetworkConfig:(e,t)=>{let r=Qn(t.payload.walletConnectV2RelayAddresses),o=(0,oo.default)(t.payload,"walletConnectV2RelayAddresses");e.network=S(f(f({},e.network),o),{walletConnectV2RelayAddress:r})},setChainID:(e,t)=>{e.chainID=t.payload},setCustomWalletAddress:(e,t)=>{e.network.customWalletAddress=t.payload}},extraReducers:e=>{e.addCase(N,t=>{t.network.customWalletAddress=void 0}),e.addCase(io.REHYDRATE,(t,r)=>{var i,l;if(!((l=(i=r.payload)==null?void 0:i.network)!=null&&l.customWalletAddress))return;let{network:{customWalletAddress:o}}=r.payload;t.network.customWalletAddress=o})}}),{initializeNetworkConfig:Lu,setChainID:Nu,setCustomWalletAddress:ao}=so.actions,lt=so.reducer});var co,mr,lo,Ou,Mu,Fu,ut,dt=h(()=>{"use strict";n();co=require("@reduxjs/toolkit");F();B();mr={isSigning:!1,signedSessions:{}},lo=(0,co.createSlice)({name:"signedMessageInfoSliceState",initialState:mr,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)=>f(f({},e),t.payload),clearSignedMessageInfo:()=>mr},extraReducers:e=>{e.addCase(N,()=>mr)}}),{setSignSession:Ou,clearSignedMessageInfo:Mu,setSignSessionState:Fu}=lo.actions,ut=lo.reducer});var uo,mo,po,go,Ys,Xs,Hu,ju,mt,gt=h(()=>{"use strict";n();uo=require("@reduxjs/toolkit"),mo=require("redux-persist");F();Ze();B();po={customToasts:[],transactionToasts:[]},go=(0,uo.createSlice)({name:"toastsSlice",initialState:po,reducers:{addCustomToast:(e,t)=>{let r=t.payload.toastId||`custom-toast-${e.customToasts.length+1}`,o=e.customToasts.findIndex(i=>i.toastId===r);if(o!==-1){e.customToasts[o]=S(f(f({},e.customToasts[o]),t.payload),{type:"custom",toastId:r});return}e.customToasts.push(S(f({},t.payload),{type:"custom",toastId:r}))},removeCustomToast:(e,t)=>{e.customToasts=e.customToasts.filter(r=>r.toastId!==t.payload)},addTransactionToast:(e,t)=>{e.transactionToasts.push({type:"transaction",startTimestamp:ve(),toastId:t.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,t)=>{e.transactionToasts=e.transactionToasts.filter(r=>r.toastId!==t.payload)}},extraReducers:e=>{e.addCase(N,()=>po),e.addCase(mo.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:Ys,removeCustomToast:Xs,addTransactionToast:Hu,removeTransactionToast:ju}=go.actions,mt=go.reducer});var fo,fr,Tr,yr,Zs,gr,To,Yu,Xu,Zu,ft,Tt=h(()=>{"use strict";n();fo=require("@reduxjs/toolkit");B();fr="Transaction failed",Tr="Transaction successful",yr="Processing transaction",Zs="Transaction submitted",gr={},To=(0,fo.createSlice)({name:"transactionsInfo",initialState:gr,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:o}=t.payload;r!=null&&(e[r]={errorMessage:(o==null?void 0:o.errorMessage)||fr,successMessage:(o==null?void 0:o.successMessage)||Tr,processingMessage:(o==null?void 0:o.processingMessage)||yr,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:()=>gr},extraReducers:e=>{e.addCase(N,()=>gr)}}),{clearTransactionsInfo:Yu,setTransactionsDisplayInfo:Xu,clearTransactionsInfoForSessionId:Zu}=To.actions,ft=To.reducer});function yo(e){return e!=null&&(ca(e)||ma(e))}function yt(e){return e!=null&&(la(e)||ga(e))}function ht(e){return e!=null&&(pa(e)||fa(e))}function ho(e){return e!=null&&(ua(e)||Ta(e))}function xo(e){return e!=null&&da(e)}function ca(e){return e!=null&&Qs.includes(e)}function la(e){return e!=null&&ea.includes(e)}function pa(e){return e!=null&&ta.includes(e)}function ua(e){return e!=null&&ra.includes(e)}function da(e){return e!=null&&na.includes(e)}function ma(e){return e!=null&&oa.includes(e)}function ga(e){return e!=null&&ia.includes(e)}function fa(e){return e!=null&&sa.includes(e)}function Ta(e){return e!=null&&aa.includes(e)}var Qs,ea,ta,ra,na,oa,ia,sa,aa,xr=h(()=>{"use strict";n();V();Qs=["sent"],ea=["success"],ta=["fail","cancelled","timedOut"],ra=["invalid"],na=["timedOut"],oa=["pending"],ia=["success"],sa=["fail","invalid"],aa=["not executed"]});var So,wo,_e,ya,Ao,sd,ad,cd,ld,pd,ud,dd,md,gd,fd,Td,xt,St=h(()=>{"use strict";n();So=require("@reduxjs/toolkit"),wo=require("redux-persist");V();xr();B();_e={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},ya={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Ao=(0,So.createSlice)({name:"transactionsSlice",initialState:_e,reducers:{moveTransactionsToSignedState:(e,t)=>{var d,y;let{sessionId:r,transactions:o,errorMessage:i,status:l,redirectRoute:p,customTransactionInformation:m}=t.payload;e.customTransactionInformationForSessionId[r]=f(f(f({},ya),((d=e.signedTransactions[r])==null?void 0:d.customTransactionInformation)||{}),e.customTransactionInformationForSessionId[r]||{}),e.signedTransactions[r]={transactions:o,status:l,errorMessage:i,redirectRoute:p,customTransactionInformation:f(f({},e.customTransactionInformationForSessionId[r]),m!=null?m:{})},((y=e==null?void 0:e.transactionsToSign)==null?void 0:y.sessionId)===r&&(e.transactionsToSign=_e.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=f(f({},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 d,y,x,g,v,b,A,C;let{sessionId:r,status:o,errorMessage:i,transactionHash:l,inTransit:p}=t.payload,m=(y=(d=e.signedTransactions)==null?void 0:d[r])==null?void 0:y.transactions;if(m!=null){e.signedTransactions[r].transactions=m.map(P=>P.hash===l?S(f({},P),{status:o,errorMessage:i,inTransit:p}):P);let U=(g=(x=e.signedTransactions[r])==null?void 0:x.transactions)==null?void 0:g.every(P=>yt(P.status)),H=(b=(v=e.signedTransactions[r])==null?void 0:v.transactions)==null?void 0:b.every(P=>ht(P.status)),j=(C=(A=e.signedTransactions[r])==null?void 0:A.transactions)==null?void 0:C.every(P=>ho(P.status));U&&(e.signedTransactions[r].status="success"),H&&(e.signedTransactions[r].status="fail"),j&&(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=_e.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=_e.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload},updateSignedTransactionsCustomTransactionInformation:(e,t)=>{let{sessionId:r,customTransactionInformationOverrides:o}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].customTransactionInformation=f(f({},e.signedTransactions[r].customTransactionInformation),o))}},extraReducers:e=>{e.addCase(N,()=>_e),e.addCase(wo.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((m,[d,y])=>{let x=new Date(d),g=new Date;return g.setHours(g.getHours()+5),g-x>0||(m[d]=y),m},{});i!=null&&(t.customTransactionInformationForSessionId=i),o!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:sd,updateSignedTransactions:ad,setTransactionsToSign:cd,clearAllTransactionsToSign:ld,clearAllSignedTransactions:pd,clearSignedTransaction:ud,clearTransactionToSign:dd,setSignTransactionsError:md,setSignTransactionsCancelMessage:gd,moveTransactionsToSignedState:fd,updateSignedTransactionsCustomTransactionInformation:Td}=Ao.actions,xt=Ao.reducer});var vo,Sr,bo,Sd,wd,Ad,vd,wt,At=h(()=>{"use strict";n();vo=require("@reduxjs/toolkit");B();Sr={},bo=(0,vo.createSlice)({name:"batchTransactionsSlice",initialState:Sr,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:()=>Sr},extraReducers:e=>{e.addCase(N,()=>Sr)}}),{setBatchTransactions:Sd,updateBatchTransactions:wd,clearBatchTransactions:Ad,clearAllBatchTransactions:vd}=bo.actions,wt=bo.reducer});var ko,Io,Eo,Ed,Lo,wr=h(()=>{"use strict";n();ko=require("@reduxjs/toolkit");B();Io={},Eo=(0,ko.createSlice)({name:"dappConfigSlice",initialState:Io,reducers:{setDappConfig:(e,t)=>{if(e&&t.payload){let{logoutRoute:r,shouldUseWebViewProvider:o,cancelTransactionToastDuration:i}=t.payload;e.logoutRoute=r,e.shouldUseWebViewProvider=o,e.cancelTransactionToastDuration=i}else e=t.payload}},extraReducers:e=>{e.addCase(N,()=>Io)}}),{setDappConfig:Ed}=Eo.actions,Lo=Eo.reducer});var q=h(()=>{"use strict";n();tt();it();at();pt();dt();gt();Tt();St();At();wr()});var Ar=h(()=>{"use strict";n()});var Co,wa,Aa,fe,It=h(()=>{"use strict";n();Co=require("@reduxjs/toolkit");Ar();tt();At();wr();it();at();pt();dt();gt();Tt();St();wa={["account"]:et,["dappConfig"]:Lo,["loginInfo"]:ot,["modals"]:st,["networkConfig"]:lt,["signedMessageInfo"]:ut,["toasts"]:mt,["transactionsInfo"]:ft,["transactions"]:xt,["batchTransactions"]:wt},Aa=(e={})=>(0,Co.combineReducers)(f(f({},wa),e)),fe=Aa});var Oo={};pe(Oo,{default:()=>Ba,sessionStorageReducers:()=>vr});function ie(e,t=[]){return{key:e,version:1,storage:Do.default,blacklist:t}}var O,Po,Do,va,Oe,ba,Ia,ka,Ea,La,Na,Ra,Ca,Pa,Da,_o,_a,vr,Oa,Ma,Fa,Ba,Mo=h(()=>{"use strict";n();O=require("redux-persist"),Po=w(require("redux-persist/lib/storage")),Do=w(require("redux-persist/lib/storage/session"));It();q();tt();At();it();at();pt();dt();gt();Tt();St();Ar();va={persistReducersStorageType:"localStorage"},Oe={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},ba=ie(Oe["account"]),Ia=ie(Oe["loginInfo"]),ka=ie(Oe["modals"]),Ea=ie(Oe["networkConfig"]),La={2:e=>S(f({},e),{networkConfig:dr})};Na=ie("sdk-dapp-transactionsInfo"),Ra=ie("sdk-dapp-transactions",["transactionsToSign"]),Ca=ie("sdk-dapp-batchTransactions",["batchTransactions"]),Pa=ie("sdk-dapp-toasts"),Da=ie("sdk-dapp-signedMessageInfo"),_o={key:"sdk-dapp-store",version:2,storage:Po.default,whitelist:Object.keys(Oe),migrate:(0,O.createMigrate)(La,{debug:!1})},_a=S(f({},_o),{whitelist:[]}),vr={["toasts"]:(0,O.persistReducer)(Pa,mt),["transactions"]:(0,O.persistReducer)(Ra,xt),["transactionsInfo"]:(0,O.persistReducer)(Na,ft),["batchTransactions"]:(0,O.persistReducer)(Ca,wt),["signedMessageInfo"]:(0,O.persistReducer)(Da,ut)},Oa=S(f({},vr),{["account"]:(0,O.persistReducer)(ba,et),["loginInfo"]:(0,O.persistReducer)(Ia,ot),["modals"]:(0,O.persistReducer)(ka,st),["networkConfig"]:(0,O.persistReducer)(Ea,lt)}),Ma=va.persistReducersStorageType==="localStorage",Fa=Ma?(0,O.persistReducer)(_o,fe(vr)):(0,O.persistReducer)(_a,fe(Oa)),Ba=Fa});var Fo={};pe(Fo,{default:()=>Ua});var Ua,Bo=h(()=>{"use strict";n();It();Ua=fe()});var Uo={};pe(Uo,{default:()=>Va});var $,Wa,Va,Wo=h(()=>{"use strict";n();$=require("redux-persist"),Wa=[$.FLUSH,$.REHYDRATE,$.PAUSE,$.PERSIST,$.PURGE,$.REGISTER],Va=Wa});var Go={};pe(Go,{default:()=>$o});function $o(e){return(0,Vo.persistStore)(e)}var Vo,Ho=h(()=>{"use strict";n();Vo=require("redux-persist")});var ki=M((WI,Ii)=>{n();var Zc=typeof a=="object"&&a&&a.Object===Object&&a;Ii.exports=Zc});var Li=M((VI,Ei)=>{n();var Jc=ki(),Qc=typeof self=="object"&&self&&self.Object===Object&&self,el=Jc||Qc||Function("return this")();Ei.exports=el});var Mr=M(($I,Ni)=>{n();var tl=Li(),rl=tl.Symbol;Ni.exports=rl});var Di=M((GI,Pi)=>{n();var Ri=Mr(),Ci=Object.prototype,nl=Ci.hasOwnProperty,ol=Ci.toString,Ve=Ri?Ri.toStringTag:void 0;function il(e){var t=nl.call(e,Ve),r=e[Ve];try{e[Ve]=void 0;var o=!0}catch(l){}var i=ol.call(e);return o&&(t?e[Ve]=r:delete e[Ve]),i}Pi.exports=il});var Oi=M((HI,_i)=>{n();var sl=Object.prototype,al=sl.toString;function cl(e){return al.call(e)}_i.exports=cl});var Ui=M((jI,Bi)=>{n();var Mi=Mr(),ll=Di(),pl=Oi(),ul="[object Null]",dl="[object Undefined]",Fi=Mi?Mi.toStringTag:void 0;function ml(e){return e==null?e===void 0?dl:ul:Fi&&Fi in Object(e)?ll(e):pl(e)}Bi.exports=ml});var Vi=M((qI,Wi)=>{n();var gl=Array.isArray;Wi.exports=gl});var Gi=M((zI,$i)=>{n();function fl(e){return e!=null&&typeof e=="object"}$i.exports=fl});var ji=M((KI,Hi)=>{n();var Tl=Ui(),yl=Vi(),hl=Gi(),xl="[object String]";function Sl(e){return typeof e=="string"||!yl(e)&&hl(e)&&Tl(e)==xl}Hi.exports=Sl});var bl={};pe(bl,{useWebWalletLogin:()=>vl});module.exports=Re(bl);n();var Ur=require("react");Jt();n();var Xo=require("react"),ke=require("react-redux");n();var br=require("@reduxjs/toolkit"),Ko=require("react-redux/lib/utils/Subscription");q();n();var No=w(require("lodash.throttle"));k();q();ur();Ie();be();var ha=[Xe],vt=!1,xa=(0,No.default)(()=>{De(Pe())},5e3),Ro=e=>t=>r=>{if(ha.includes(r.type))return t(r);let o=e.getState(),i=ge.local.getItem(le.loginExpiresAt);if(!Boolean(o==null?void 0:o.account.address))return t(r);if(i==null)return De(Pe());let p=Date.now();return i-p<0&&!vt?setTimeout(()=>{vt=!0,e.dispatch(Kn())},1e3):(vt&&(vt=!1),xa()),t(r)};n();n();function bt(){return typeof sessionStorage!="undefined"}var jo=bt()?(Mo(),Re(Oo)).default:(Bo(),Re(Fo)).default,qo=bt()?(Wo(),Re(Uo)).default:[],zo=bt()?(Ho(),Re(Go)).default:e=>e;It();var E=(0,br.configureStore)({reducer:jo,middleware:e=>e({serializableCheck:{ignoredActions:[...qo,pr.type,lr.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(Ro)}),Yo=(0,Ko.createSubscription)(E),Im=zo(E),km=(0,br.configureStore)({reducer:fe});var $a={store:E,subscription:Yo},Ir=(0,Xo.createContext)($a),Rm=(0,ke.createStoreHook)(Ir),kt=(0,ke.createDispatchHook)(Ir),z=(0,ke.createSelectorHook)(Ir);n();n();q();n();var Zo=w(require("lodash.isequal")),Et=require("reselect"),T=(0,Et.createSelectorCreator)(Et.defaultMemoize,Zo.default);var ee=e=>e.account,Lt=T(ee,e=>e.address),Ee=T(ee,Lt,(e,t)=>t in e.accounts?e.accounts[t]:Qe),Ga=T(ee,Ee,(e,t)=>{let i=e,{accounts:r}=i,o=je(i,["accounts"]);return S(f({},o),{account:t})}),Om=T(Ee,e=>e.balance),Ha=T(Ee,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),Mm=T(ee,e=>e.shard),Fm=T(ee,e=>e.ledgerAccount),Bm=T(ee,e=>e.walletConnectAccount),Um=T(ee,e=>e.isAccountLoading),Wm=T(ee,e=>e.accountLoadingError),ja=T(ee,e=>e.websocketEvent),Vm=T(ee,e=>e.websocketBatchEvent);n();var qa=e=>e.dappConfig,Hm=T(qa,e=>e.shouldUseWebViewProvider);n();var K=e=>e.loginInfo,Km=T(K,e=>e.loginMethod),Nt=T(K,Lt,(e,t)=>Boolean(t)),Ym=T(K,e=>e.walletConnectLogin),Xm=T(K,e=>e.ledgerLogin),za=T(K,e=>e.walletLogin),Zm=T(K,e=>e.isLoginSessionInvalid),Jo=T(K,e=>e.tokenLogin),Jm=T(K,e=>e.logoutRoute);n();var Qo=e=>e.modals,tg=T(Qo,e=>e.txSubmittedModal),rg=T(Qo,e=>e.notificationModal);n();var Te=e=>e.networkConfig,Ka=T(Te,e=>e.chainID),ig=T(Te,e=>e.network.walletConnectBridgeAddress),sg=T(Te,e=>e.network.walletConnectV2RelayAddress),ag=T(Te,e=>e.network.walletConnectV2ProjectId),cg=T(Te,e=>e.network.walletConnectV2Options),lg=T(Te,e=>e.network.walletConnectDeepLink),se=T(Te,e=>e.network),Ya=T(se,e=>e.apiAddress),ei=T(se,e=>e.explorerAddress),pg=T(se,e=>{var t;return(t=e.customWalletAddress)!=null?t:e.walletAddress}),Xa=T(se,e=>e.egldLabel);n();var Rt=e=>e.signedMessageInfo,mg=T(Rt,e=>e.isSigning),gg=T(Rt,e=>e.errorMessage),fg=T(Rt,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]}),Tg=T(Rt,e=>{let t=Object.keys(e.signedSessions),r=t.length;return t.length>0?t[r-1]:""});n();var ti=e=>e.toasts,xg=T(ti,e=>e.customToasts),Sg=T(ti,e=>e.transactionToasts);n();q();var ri={errorMessage:fr,successMessage:Tr,processingMessage:yr},Za=e=>e.transactionsInfo,bg=T(Za,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||ri);n();n();var te=require("@multiversx/sdk-core");k();n();var kr=require("@multiversx/sdk-core/out");n();n();function Ct(e){try{let t=atob(e),r=btoa(t),o=s.Buffer.from(e,"base64").toString(),i=s.Buffer.from(o).toString("base64");if(e===r&&e===i||t===o)return!0}catch(t){return!1}return!1}function ye(e){return Ct(e)?atob(e):e}n();n();n();n();var ni=e=>{let t=e!=null?e:"";return Ct(t)?kr.TransactionPayload.fromEncoded(t):new kr.TransactionPayload(t)};function Er(e){var r,o,i;let t=new te.Transaction(f(f(S(f(S(f({value:e.value.valueOf(),data:ni(e.data),nonce:e.nonce.valueOf(),receiver:new te.Address(e.receiver)},e.receiverUsername?{receiverUsername:e.receiverUsername}:{}),{sender:new te.Address(e.sender)}),e.senderUsername?{senderUsername:e.senderUsername}:{}),{gasLimit:(r=e.gasLimit.valueOf())!=null?r:tr,gasPrice:(o=e.gasPrice.valueOf())!=null?o:rr,chainID:e.chainID.valueOf(),version:new te.TransactionVersion((i=e.version)!=null?i:Pn)}),e.options?{options:new te.TransactionOptions(e.options)}:{}),e.guardian?{guardian:new te.Address(e.guardian)}:{}));return e.guardianSignature&&t.applyGuardianSignature(s.Buffer.from(e.guardianSignature,"hex")),e.signature&&t.applySignature(s.Buffer.from(e.signature,"hex")),t}n();n();n();n();n();var ec=require("@multiversx/sdk-core/out");n();k();n();var oi=require("@multiversx/sdk-core");F();n();var tc=require("@multiversx/sdk-core");n();n();n();var rc=require("@multiversx/sdk-core"),nc=w(require("bignumber.js"));V();n();n();n();var Nr="blocks";n();n();n();n();_();n();n();_();n();n();n();var pc=w(require("bignumber.js"));k();n();var lc=require("@multiversx/sdk-core"),Rr=w(require("bignumber.js"));k();n();var ac=w(require("bignumber.js"));n();Rr.default.config({ROUNDING_MODE:Rr.default.ROUND_FLOOR});n();n();n();k();n();n();n();n();k();n();k();n();var uc=require("@multiversx/sdk-core");k();n();var Fe=require("@multiversx/sdk-core"),mc=require("@multiversx/sdk-network-providers");k();n();n();var dc=w(require("bignumber.js"));k();n();k();n();n();n();n();n();n();k();n();k();n();k();n();_();var fc=["reDelegateRewards","claimRewards","unBond"],Tc=["wrapEgld","unwrapEgld"],yc=["unStake"],hc=["unDelegate"];n();n();n();k();n();var wc=w(require("bignumber.js"));n();n();_();n();var Ac=w(require("bignumber.js"));n();n();n();var bc=w(require("bignumber.js"));F();n();n();n();n();V();n();var Ec=require("@multiversx/sdk-web-wallet-provider");k();n();var kc=w(require("qs"));n();n();n();n();n();var Be=()=>typeof window!="undefined"&&typeof(window==null?void 0:window.location)!="undefined";var G=()=>{if(!Be())return{pathname:"",hash:"",origin:"",href:"",search:""};let{location:{pathname:t,hash:r,origin:o,href:i,search:l}}=window;return{pathname:t,hash:r,origin:o,href:i,search:l}};n();n();var px={search:Be()?window.location.search:"",removeParams:[]};n();n();n();n();_();n();n();n();var Lc=w(require("linkifyjs"));n();k();n();var Nc=w(require("bignumber.js"));n();F();n();n();V();n();V();n();n();n();_();n();_();n();var Rc=w(require("bignumber.js"));k();_();n();_();n();var pi=require("react");F();n();n();_();n();n();var Cc=require("@multiversx/sdk-core/out"),Pc=w(require("bignumber.js"));_();n();F();n();n();F();var ow=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];n();var ui=require("react");F();n();var _c=require("react");_();var dw=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];xr();var _t=e=>e.transactions,Ue=T(_t,e=>e.signedTransactions),Zw=T(_t,e=>e.signTransactionsError),Jw=T(_t,e=>e.signTransactionsCancelMessage),Ot=e=>t=>Object.entries(t).reduce((r,[o,i])=>(e(i.status)&&(r[o]=i),r),{}),Qw=T(Ue,Ot(yo)),eA=T(Ue,Ot(yt)),tA=T(Ue,Ot(ht)),rA=T(Ue,Ot(xo)),nA=T(_t,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:S(f({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>Er(r)))||[]})}),oA=T(Ue,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});q();n();n();n();n();n();var Oc=w(require("axios"));n();n();n();n();n();n();n();var Fc=require("@multiversx/sdk-extension-provider"),Bc=require("@multiversx/sdk-hw-provider"),Uc=require("@multiversx/sdk-opera-provider"),di=require("@multiversx/sdk-web-wallet-provider");k();V();n();var Wc="/dapp/init";var mi=e=>new di.WalletProvider(`${e}${Wc}`);var ce=e=>`Unable to perform ${e}, Provider not initialized`,Mt=class{init(){return Promise.resolve(!1)}login(t){throw new Error(ce(`login with options: ${t}`))}logout(t){throw new Error(ce(`logout with options: ${t}`))}getAddress(){throw new Error(ce("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(t,r){throw new Error(ce(`sendTransaction with transactions: ${t} options: ${r}`))}signTransaction(t,r){throw new Error(ce(`signTransaction with transactions: ${t} options: ${r}`))}signTransactions(t,r){throw new Error(ce(`signTransactions with transactions: ${t} options: ${r}`))}signMessage(t,r){throw new Error(ce(`signTransactions with ${t} and options ${r}`))}sendCustomMessage({method:t,params:r}){throw new Error(ce(`sendCustomMessage with method: ${t} params: ${r}`))}sendCustomRequest(t){throw new Error(ce(`sendSessionEvent with options: ${t}`))}ping(){return Promise.resolve(!1)}},Vc=new Mt;n();V();n();n();n();n();B();F();n();q();n();q();n();var Ti=require("@multiversx/sdk-core");n();nr();n();n();var Gc=w(require("platform"));n();function Dr(){return Nt(E.getState())}n();B();F();ct();Ie();be();n();n();n();n();n();n();n();n();n();V();n();ct();n();n();n();function yi(e){return I(this,null,function*(){return yield new Promise(t=>{setTimeout(()=>t(),e)})})}n();var hi=(e,t,r,o=0)=>I(void 0,null,function*(){try{return yield e(...r)}catch(i){return o<t.retries?((t==null?void 0:t.delay)!=null&&(yield yi(t.delay)),yield hi(e,t,r,o+1)):null}}),xi=(e,t={retries:5,delay:500})=>(...r)=>I(void 0,null,function*(){return yield hi(e,t,r)});Ie();n();n();n();q();n();n();var Hc=w(require("axios"));n();var Si=(e,t=["address"])=>{let r=new URL(e),o=new URLSearchParams(r.search);t.forEach(p=>o.delete(p));let i=Array.from(o.values()).length>0?"?":"",l=r.pathname==="/"&&!e.endsWith("/")?"":r.pathname;return r.protocol==="vscode:"?e:`${r.origin}${l}${i}${o.toString()}${r.hash}`};n();var Zi=require("react"),Bt=require("@multiversx/sdk-core");n();n();n();var _r=()=>z(Ee);n();n();n();n();n();var We=w(require("react"));var H0=(0,We.createContext)({}),j0=E.getState();n();var Ai=w(require("react"));n();var Or=w(require("react")),jc=w(require("axios"));n();n();n();n();var qc=require("react"),zc=w(require("swr"));q();n();n();var Xi=require("@multiversx/sdk-native-auth-client");n();var vi=w(require("axios"));var Kc=4,Yc=3e4,Ft={current:null},he={current:null},Xc=xi((e,t,r)=>I(void 0,null,function*(){if(r){let l=Math.floor(Date.now()/1e3);return{hash:yield r(),timestamp:l}}let{data:o}=yield vi.default.get(`${e}/${Nr}?from=${Kc}&size=1&fields=hash,timestamp${t?"&shard="+t:""}`),[i]=o;return i}));function bi(e,t,r,o){return I(this,null,function*(){if(e==null)throw new Error("missing api url");let i=Date.now();if(Ft.current!=null&&i<Ft.current.timestamp*1e3+Yc&&!o)return Ft.current;if(he.current!=null)return yield he.current;he.current=Xc(e,t,r);try{let l=yield he.current;if(l==null)throw he.current=null,new Error("could not get block hash");return Ft.current={hash:l.hash,timestamp:l.timestamp},he.current=null,l}catch(l){return he.current=null,null}})}n();n();Ze();n();n();var qi=w(ji());var zi=e=>{if(!e||!(0,qi.default)(e))return null;let t=e.split(".");if(t.length!==4)return null;try{let[r,o,i,l]=t,p=JSON.parse(ye(l)),m=ye(r);return{ttl:Number(i),extraInfo:p,origin:m,blockHash:o}}catch(r){return console.error(`Error trying to decode ${e}:`,r),null}};function wl(e){return Object.prototype.toString.call(e)==="[object String]"}var Ki=e=>{var r;if(!e||!wl(e))return null;let t=e.split(".");if(t.length!==3)return console.error("Invalid nativeAuthToken. You may be trying to decode a loginToken. Try using decodeLoginToken method instead"),null;try{let[o,i,l]=t,p=ye(o),m=ye(i),d=zi(m);if(!d)return{address:p,body:m,signature:l,blockHash:"",origin:"",ttl:0};let y=S(f({},d),{address:p,body:m,signature:l});return(r=d.extraInfo)!=null&&r.timestamp||delete y.extraInfo,y}catch(o){return null}};var Fr={isExpired:!1},Yi=e=>{if(!e)return Fr;let t=Ki(e);if(!t)return Fr;let r=ve(),{ttl:o,extraInfo:i}=t,l=i==null?void 0:i.timestamp;if(!l)return Fr;let p=l+o,m=r>p,d=p-r;return{isExpired:m,expiresAt:p,secondsUntilExpires:d}};n();var $e={origin:G().origin,apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60},Ge=e=>{var r,o,i,l,p,m;return e===!0?$e:{origin:(r=e==null?void 0:e.origin)!=null?r:$e.origin,blockHashShard:e==null?void 0:e.blockHashShard,expirySeconds:(o=e==null?void 0:e.expirySeconds)!=null?o:$e.expirySeconds,apiAddress:(i=e==null?void 0:e.apiAddress)!=null?i:$e.apiAddress,tokenExpirationToastWarningSeconds:(l=e==null?void 0:e.tokenExpirationToastWarningSeconds)!=null?l:$e.tokenExpirationToastWarningSeconds,extraInfo:(p=e==null?void 0:e.extraInfo)!=null?p:{},gatewayUrl:e==null?void 0:e.gatewayUrl,extraRequestHeaders:(m=e==null?void 0:e.extraRequestHeaders)!=null?m:{}}};var Br=e=>{let{origin:t,apiAddress:r,expirySeconds:o,blockHashShard:i,extraInfo:l,gatewayUrl:p,extraRequestHeaders:m}=Ge(e),d=new Xi.NativeAuthClient({origin:t,apiUrl:r,expirySeconds:o,blockHashShard:i,gatewayUrl:p,extraRequestHeaders:m});return{getNativeAuthConfig:Ge,initialize:g=>I(void 0,null,function*(){var j,P;if(!r||!t)return"";let v=()=>d.getCurrentBlockHash(),b=(j=g==null?void 0:g.latestBlockInfo)!=null?j:yield bi(r,i,v,g==null?void 0:g.noCache),{hash:A,timestamp:C}=b,U=d.encodeValue(JSON.stringify(f(f({},(P=g==null?void 0:g.extraInfo)!=null?P:l),C?{timestamp:C}:{})));return`${d.encodeValue(t)}.${A}.${o}.${U}`}),getToken:({address:g,token:v,signature:b})=>d.getToken(g,v,b),getTokenExpiration:Yi}};var Al=(e,t)=>{var r;return t?t===!0?e:(r=t.apiAddress)!=null?r:e:null},Ji=e=>{let t=z(se),r=z(Jo),o=(0,Zi.useRef)(r==null?void 0:r.loginToken),i=Al(t.apiAddress,e),l=Ge(f(f({},e===!0?{}:e),i?{apiAddress:i}:{})),p=Boolean(e),m=Br(l),{address:d}=_r(),y=kt(),x=A=>{o.current=A,y(nt(f({loginToken:A},i?{nativeAuthConfig:l}:{})))},g=()=>{try{return m.initialize()}catch(A){console.error("Unable to get block. Login failed.",A);return}},v=({address:A,signature:C})=>{let U=o.current;if(!U)throw"Token not found. Call `setLoginToken` first.";if(!p){y(nt({loginToken:U,signature:C}));return}let H=m.getToken({address:A,token:U,signature:C});return y(nt(f({loginToken:U,signature:C,nativeAuthToken:H},i?{nativeAuthConfig:l}:{}))),H};return{configuration:l,setLoginToken:x,getNativeAuthLoginToken:g,setTokenLoginInfo:v,refreshNativeAuthTokenLogin:U=>I(void 0,[U],function*({signMessageCallback:A,nativeAuthClientConfig:C}){let j=yield Br(C||l).initialize({noCache:Boolean(C)});if(o.current=j,!j)return;let P=new Bt.SignableMessage({address:new Bt.Address(d),message:s.Buffer.from(`${d}${j}{}`)}),Ut=yield A(P,{});return v({address:d,signature:Ut.getSignature().toString("hex")})})}};var vl=({callbackRoute:e,token:t,nativeAuth:r,redirectDelayMilliseconds:o=100,customWalletAddress:i})=>{let[l,p]=(0,Ur.useState)(""),[m,d]=(0,Ur.useState)(!1),y=z(se),x=kt(),g=Dr(),v=Boolean(r),b=Ji(r),A=t;function C(){return I(this,null,function*(){if(g)throw new Error(mn);x(ao(i));try{d(!0);let H=mi(i!=null?i:y.walletAddress),j=new Date,P=j.setMinutes(j.getMinutes()+3)/1e3,Ut={data:{},expires:P};if(v&&!A&&(A=yield b.getNativeAuthLoginToken(),!A)){console.warn("Login cancelled.");return}A&&b.setLoginToken(A);let{origin:Wr}=G(),Qi=window!=null&&window.location?`${Wr}${e}`:`${e}`;new URLSearchParams(document.location.search).get("address")||x(zn(Ut));let es=Si(Qi),ts=encodeURIComponent(es),rs=S(f({callbackUrl:ts},A&&{token:A}),{redirectDelayMilliseconds:o});yield H.login(rs)}catch(H){console.error(H),p("error logging in"+H.message)}finally{d(!1)}})}let U=Boolean(l);return[C,{error:l,loginFailed:U,isLoading:m&&!U,isLoggedIn:g&&!U}]};0&&(module.exports={useWebWalletLogin});
|
|
1
|
+
"use strict";var ns=Object.create;var Ne=Object.defineProperty,os=Object.defineProperties,is=Object.getOwnPropertyDescriptor,ss=Object.getOwnPropertyDescriptors,as=Object.getOwnPropertyNames,He=Object.getOwnPropertySymbols,cs=Object.getPrototypeOf,Wt=Object.prototype.hasOwnProperty,$r=Object.prototype.propertyIsEnumerable;var Vr=(e,t,r)=>t in e?Ne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,f=(e,t)=>{for(var r in t||(t={}))Wt.call(t,r)&&Vr(e,r,t[r]);if(He)for(var r of He(t))$r.call(t,r)&&Vr(e,r,t[r]);return e},S=(e,t)=>os(e,ss(t));var je=(e,t)=>{var r={};for(var o in e)Wt.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&He)for(var o of He(e))t.indexOf(o)<0&&$r.call(e,o)&&(r[o]=e[o]);return r};var h=(e,t)=>()=>(e&&(t=e(e=0)),t);var M=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),pe=(e,t)=>{for(var r in t)Ne(e,r,{get:t[r],enumerable:!0})},Gr=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of as(t))!Wt.call(e,i)&&i!==r&&Ne(e,i,{get:()=>t[i],enumerable:!(o=is(t,i))||o.enumerable});return e};var w=(e,t,r)=>(r=e!=null?ns(cs(e)):{},Gr(t||!e||!e.__esModule?Ne(r,"default",{value:e,enumerable:!0}):r,e)),Re=e=>Gr(Ne({},"__esModule",{value:!0}),e);var I=(e,t,r)=>new Promise((o,i)=>{var l=d=>{try{m(r.next(d))}catch(y){i(y)}},p=d=>{try{m(r.throw(d))}catch(y){i(y)}},m=d=>d.done?o(d.value):Promise.resolve(d.value).then(l,p);m((r=r.apply(e,t)).next())});var qr=M(qe=>{"use strict";n();qe.byteLength=ps;qe.toByteArray=ds;qe.fromByteArray=fs;var Y=[],W=[],ls=typeof Uint8Array!="undefined"?Uint8Array:Array,Vt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(ue=0,Hr=Vt.length;ue<Hr;++ue)Y[ue]=Vt[ue],W[Vt.charCodeAt(ue)]=ue;var ue,Hr;W["-".charCodeAt(0)]=62;W["_".charCodeAt(0)]=63;function jr(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 ps(e){var t=jr(e),r=t[0],o=t[1];return(r+o)*3/4-o}function us(e,t,r){return(t+r)*3/4-r}function ds(e){var t,r=jr(e),o=r[0],i=r[1],l=new ls(us(e,o,i)),p=0,m=i>0?o-4:o,d;for(d=0;d<m;d+=4)t=W[e.charCodeAt(d)]<<18|W[e.charCodeAt(d+1)]<<12|W[e.charCodeAt(d+2)]<<6|W[e.charCodeAt(d+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return i===2&&(t=W[e.charCodeAt(d)]<<2|W[e.charCodeAt(d+1)]>>4,l[p++]=t&255),i===1&&(t=W[e.charCodeAt(d)]<<10|W[e.charCodeAt(d+1)]<<4|W[e.charCodeAt(d+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function ms(e){return Y[e>>18&63]+Y[e>>12&63]+Y[e>>6&63]+Y[e&63]}function gs(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(ms(o));return i.join("")}function fs(e){for(var t,r=e.length,o=r%3,i=[],l=16383,p=0,m=r-o;p<m;p+=l)i.push(gs(e,p,p+l>m?m:p+l));return o===1?(t=e[r-1],i.push(Y[t>>2]+Y[t<<4&63]+"==")):o===2&&(t=(e[r-2]<<8)+e[r-1],i.push(Y[t>>10]+Y[t>>4&63]+Y[t<<2&63]+"=")),i.join("")}});var zr=M($t=>{n();$t.read=function(e,t,r,o,i){var l,p,m=i*8-o-1,d=(1<<m)-1,y=d>>1,x=-7,g=r?i-1:0,v=r?-1:1,b=e[t+g];for(g+=v,l=b&(1<<-x)-1,b>>=-x,x+=m;x>0;l=l*256+e[t+g],g+=v,x-=8);for(p=l&(1<<-x)-1,l>>=-x,x+=o;x>0;p=p*256+e[t+g],g+=v,x-=8);if(l===0)l=1-y;else{if(l===d)return p?NaN:(b?-1:1)*(1/0);p=p+Math.pow(2,o),l=l-y}return(b?-1:1)*p*Math.pow(2,l-o)};$t.write=function(e,t,r,o,i,l){var p,m,d,y=l*8-i-1,x=(1<<y)-1,g=x>>1,v=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=o?0:l-1,A=o?1:-1,C=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(m=isNaN(t)?1:0,p=x):(p=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-p))<1&&(p--,d*=2),p+g>=1?t+=v/d:t+=v*Math.pow(2,1-g),t*d>=2&&(p++,d/=2),p+g>=x?(m=0,p=x):p+g>=1?(m=(t*d-1)*Math.pow(2,i),p=p+g):(m=t*Math.pow(2,g-1)*Math.pow(2,i),p=0));i>=8;e[r+b]=m&255,b+=A,m/=256,i-=8);for(p=p<<i|m,y+=i;y>0;e[r+b]=p&255,b+=A,p/=256,y-=8);e[r+b-A]|=C*128}});var an=M(Se=>{"use strict";n();var Gt=qr(),xe=zr(),Kr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Se.Buffer=u;Se.SlowBuffer=ws;Se.INSPECT_MAX_BYTES=50;var ze=2147483647;Se.kMaxLength=ze;u.TYPED_ARRAY_SUPPORT=Ts();!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 Ts(){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 re(e){if(e>ze)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 zt(e)}return Zr(e,t,r)}u.poolSize=8192;function Zr(e,t,r){if(typeof e=="string")return hs(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(X(e,ArrayBuffer)||e&&X(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(X(e,SharedArrayBuffer)||e&&X(e.buffer,SharedArrayBuffer)))return jt(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=Ss(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 Zr(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function Jr(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 ys(e,t,r){return Jr(e),e<=0?re(e):t!==void 0?typeof r=="string"?re(e).fill(t,r):re(e).fill(t):re(e)}u.alloc=function(e,t,r){return ys(e,t,r)};function zt(e){return Jr(e),re(e<0?0:Kt(e)|0)}u.allocUnsafe=function(e){return zt(e)};u.allocUnsafeSlow=function(e){return zt(e)};function hs(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=Qr(e,t)|0,o=re(r),i=o.write(e,t);return i!==r&&(o=o.slice(0,i)),o}function Ht(e){for(var t=e.length<0?0:Kt(e.length)|0,r=re(t),o=0;o<t;o+=1)r[o]=e[o]&255;return r}function xs(e){if(X(e,Uint8Array)){var t=new Uint8Array(e);return jt(t.buffer,t.byteOffset,t.byteLength)}return Ht(e)}function jt(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 Ss(e){if(u.isBuffer(e)){var t=Kt(e.length)|0,r=re(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||Yt(e.length)?re(0):Ht(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Ht(e.data)}function Kt(e){if(e>=ze)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ze.toString(16)+" bytes");return e|0}function ws(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(X(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),X(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(X(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 Qr(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||X(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 qt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return sn(e).length;default:if(i)return o?-1:qt(e).length;t=(""+t).toLowerCase(),i=!0}}u.byteLength=Qr;function As(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 Ps(this,t,r);case"utf8":case"utf-8":return tn(this,t,r);case"ascii":return Rs(this,t,r);case"latin1":case"binary":return Cs(this,t,r);case"base64":return Ls(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ds(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}u.prototype._isBuffer=!0;function de(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)de(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)de(this,r,r+3),de(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)de(this,r,r+7),de(this,r+1,r+6),de(this,r+2,r+5),de(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?tn(this,0,t):As.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=Se.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};Kr&&(u.prototype[Kr]=u.prototype.inspect);u.prototype.compare=function(t,r,o,i,l){if(X(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,m=o-r,d=Math.min(p,m),y=this.slice(i,l),x=t.slice(r,o),g=0;g<d;++g)if(y[g]!==x[g]){p=y[g],m=x[g];break}return p<m?-1:m<p?1:0};function en(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,Yt(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:Yr(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):Yr(e,[t],r,o,i);throw new TypeError("val must be string, number or Buffer")}function Yr(e,t,r,o,i){var l=1,p=e.length,m=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,m/=2,r/=2}function d(b,A){return l===1?b[A]:b.readUInt16BE(A*l)}var y;if(i){var x=-1;for(y=r;y<p;y++)if(d(e,y)===d(t,x===-1?0:y-x)){if(x===-1&&(x=y),y-x+1===m)return x*l}else x!==-1&&(y-=y-x),x=-1}else for(r+m>p&&(r=p-m),y=r;y>=0;y--){for(var g=!0,v=0;v<m;v++)if(d(e,y+v)!==d(t,v)){g=!1;break}if(g)return y}return-1}u.prototype.includes=function(t,r,o){return this.indexOf(t,r,o)!==-1};u.prototype.indexOf=function(t,r,o){return en(this,t,r,o,!0)};u.prototype.lastIndexOf=function(t,r,o){return en(this,t,r,o,!1)};function vs(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 m=parseInt(t.substr(p*2,2),16);if(Yt(m))return p;e[r+p]=m}return p}function bs(e,t,r,o){return Ke(qt(t,e.length-r),e,r,o)}function Is(e,t,r,o){return Ke(Ms(t),e,r,o)}function ks(e,t,r,o){return Ke(sn(t),e,r,o)}function Es(e,t,r,o){return Ke(Fs(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 vs(this,t,r,o);case"utf8":case"utf-8":return bs(this,t,r,o);case"ascii":case"latin1":case"binary":return Is(this,t,r,o);case"base64":return ks(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Es(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?Gt.fromByteArray(e):Gt.fromByteArray(e.slice(t,r))}function tn(e,t,r){r=Math.min(e.length,r);for(var o=[],i=t;i<r;){var l=e[i],p=null,m=l>239?4:l>223?3:l>191?2:1;if(i+m<=r){var d,y,x,g;switch(m){case 1:l<128&&(p=l);break;case 2:d=e[i+1],(d&192)===128&&(g=(l&31)<<6|d&63,g>127&&(p=g));break;case 3:d=e[i+1],y=e[i+2],(d&192)===128&&(y&192)===128&&(g=(l&15)<<12|(d&63)<<6|y&63,g>2047&&(g<55296||g>57343)&&(p=g));break;case 4:d=e[i+1],y=e[i+2],x=e[i+3],(d&192)===128&&(y&192)===128&&(x&192)===128&&(g=(l&15)<<18|(d&63)<<12|(y&63)<<6|x&63,g>65535&&g<1114112&&(p=g))}}p===null?(p=65533,m=1):p>65535&&(p-=65536,o.push(p>>>10&1023|55296),p=56320|p&1023),o.push(p),i+=m}return Ns(o)}var Xr=4096;function Ns(e){var t=e.length;if(t<=Xr)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=Xr));return r}function Rs(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 Cs(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 Ps(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 Ds(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 R(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||R(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||R(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||R(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||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||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||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||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||R(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||R(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||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||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||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||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||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||R(t,4,this.length),xe.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||R(t,4,this.length),xe.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||R(t,8,this.length),xe.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||R(t,8,this.length),xe.read(this,t,!1,52,8)};function D(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;D(this,t,r,o,l,0)}var p=1,m=0;for(this[r]=t&255;++m<o&&(p*=256);)this[r+m]=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;D(this,t,r,o,l,0)}var p=o-1,m=1;for(this[r+p]=t&255;--p>=0&&(m*=256);)this[r+p]=t/m&255;return r+o};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,o){return t=+t,r=r>>>0,o||D(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||D(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||D(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||D(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||D(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};u.prototype.writeIntLE=function(t,r,o,i){if(t=+t,r=r>>>0,!i){var l=Math.pow(2,8*o-1);D(this,t,r,o,l-1,-l)}var p=0,m=1,d=0;for(this[r]=t&255;++p<o&&(m*=256);)t<0&&d===0&&this[r+p-1]!==0&&(d=1),this[r+p]=(t/m>>0)-d&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);D(this,t,r,o,l-1,-l)}var p=o-1,m=1,d=0;for(this[r+p]=t&255;--p>=0&&(m*=256);)t<0&&d===0&&this[r+p+1]!==0&&(d=1),this[r+p]=(t/m>>0)-d&255;return r+o};u.prototype.writeInt8=function(t,r,o){return t=+t,r=r>>>0,o||D(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};u.prototype.writeInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||D(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||D(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||D(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};u.prototype.writeInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||D(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function rn(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 nn(e,t,r,o,i){return t=+t,r=r>>>0,i||rn(e,t,r,4,34028234663852886e22,-34028234663852886e22),xe.write(e,t,r,o,23,4),r+4}u.prototype.writeFloatLE=function(t,r,o){return nn(this,t,r,!0,o)};u.prototype.writeFloatBE=function(t,r,o){return nn(this,t,r,!1,o)};function on(e,t,r,o,i){return t=+t,r=r>>>0,i||rn(e,t,r,8,17976931348623157e292,-17976931348623157e292),xe.write(e,t,r,o,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,o){return on(this,t,r,!0,o)};u.prototype.writeDoubleBE=function(t,r,o){return on(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 m=u.isBuffer(t)?t:u.from(t,i),d=m.length;if(d===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(p=0;p<o-r;++p)this[p+r]=m[p%d]}return this};var _s=/[^+/0-9A-Za-z-_]/g;function Os(e){if(e=e.split("=")[0],e=e.trim().replace(_s,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function qt(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 Ms(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function Fs(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 sn(e){return Gt.toByteArray(Os(e))}function Ke(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 X(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Yt(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 dn=M((Cl,un)=>{n();var L=un.exports={},Z,J;function Xt(){throw new Error("setTimeout has not been defined")}function Zt(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Z=setTimeout:Z=Xt}catch(e){Z=Xt}try{typeof clearTimeout=="function"?J=clearTimeout:J=Zt}catch(e){J=Zt}})();function cn(e){if(Z===setTimeout)return setTimeout(e,0);if((Z===Xt||!Z)&&setTimeout)return Z=setTimeout,setTimeout(e,0);try{return Z(e,0)}catch(t){try{return Z.call(null,e,0)}catch(r){return Z.call(this,e,0)}}}function Us(e){if(J===clearTimeout)return clearTimeout(e);if((J===Zt||!J)&&clearTimeout)return J=clearTimeout,clearTimeout(e);try{return J(e)}catch(t){try{return J.call(null,e)}catch(r){return J.call(this,e)}}}var ne=[],we=!1,me,Ye=-1;function Ws(){!we||!me||(we=!1,me.length?ne=me.concat(ne):Ye=-1,ne.length&&ln())}function ln(){if(!we){var e=cn(Ws);we=!0;for(var t=ne.length;t;){for(me=ne,ne=[];++Ye<t;)me&&me[Ye].run();Ye=-1,t=ne.length}me=null,we=!1,Us(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];ne.push(new pn(e,t)),ne.length===1&&!we&&cn(ln)};function pn(e,t){this.fun=e,this.array=t}pn.prototype.run=function(){this.fun.apply(null,this.array)};L.title="browser";L.browser=!0;L.env={};L.argv=[];L.version="";L.versions={};function oe(){}L.on=oe;L.addListener=oe;L.once=oe;L.off=oe;L.removeListener=oe;L.removeAllListeners=oe;L.emit=oe;L.prependListener=oe;L.prependOnceListener=oe;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 s,c,Vs,a,n=h(()=>{s=w(an()),c=w(dn()),Vs=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),a=Vs});var mn,Jt=h(()=>{"use strict";n();mn="Action not allowed. User is logged in. Call logout() first"});var gn=h(()=>{"use strict";n()});var fn=h(()=>{"use strict";n()});var Tn=h(()=>{"use strict";n()});var Qt=h(()=>{"use strict";n()});var yn=h(()=>{"use strict";n()});var hn=h(()=>{"use strict";n()});var xn=h(()=>{"use strict";n()});var Sn=h(()=>{"use strict";n()});var V=h(()=>{"use strict";n()});var wn=h(()=>{"use strict";n()});var An=h(()=>{"use strict";n()});var _=h(()=>{"use strict";n()});var vn=h(()=>{"use strict";n()});var bn=h(()=>{"use strict";n()});var In=h(()=>{"use strict";n()});var F=h(()=>{"use strict";n();hn();xn();Sn();V();wn();An();_();vn();bn();In()});var er,kn,rp,En,np,Ln,op,ip,sp,Nn=h(()=>{"use strict";n();F();er={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:kn,egldLabel:rp}=er["devnet"],{chainId:En,egldLabel:np}=er["testnet"],{chainId:Ln,egldLabel:op}=er["mainnet"],ip={["devnet"]:kn,["testnet"]:En,["mainnet"]:Ln},sp={[kn]:"devnet",[En]:"testnet",[Ln]:"mainnet"}});var Rn=h(()=>{"use strict";n()});var Q,Cn=h(()=>{"use strict";n();Q=require("@multiversx/sdk-web-wallet-provider")});var tr,rr,Pn,Xe,Dn,Ae,k=h(()=>{"use strict";n();gn();Jt();fn();Tn();Qt();yn();Nn();Rn();Cn();tr=5e4,rr=1e9,Pn=1,Xe="logout",Dn="login",Ae="0"});var ve,Ze=h(()=>{"use strict";n();ve=()=>Date.now()/1e3});var _n=h(()=>{"use strict";n()});var On=h(()=>{"use strict";n()});var nr=h(()=>{"use strict";n();Ze();_n();On()});var or={};pe(or,{clear:()=>js,getItem:()=>Gs,localStorageKeys:()=>le,removeItem:()=>Hs,setItem:()=>$s});var le,Je,$s,Gs,Hs,js,be=h(()=>{"use strict";n();nr();le={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},Je=typeof localStorage!="undefined",$s=({key:e,data:t,expires:r})=>{!Je||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Gs=e=>{if(!Je)return;let t=localStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:ve()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},Hs=e=>{!Je||localStorage.removeItem(String(e))},js=()=>{!Je||localStorage.clear()}});var ir={};pe(ir,{clear:()=>Un,getItem:()=>Fn,removeItem:()=>Bn,setItem:()=>Mn,storage:()=>qs});var Mn,Fn,Bn,Un,qs,Wn=h(()=>{"use strict";n();Mn=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},Fn=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},Bn=e=>sessionStorage.removeItem(String(e)),Un=()=>sessionStorage.clear(),qs={setItem:Mn,getItem:Fn,removeItem:Bn,clear:Un}});var ge,Ie=h(()=>{"use strict";n();be();Wn();ge={session:ir,local:or}});var sr,N,Ce,B=h(()=>{"use strict";n();sr=require("@reduxjs/toolkit");k();N=(0,sr.createAction)(Xe),Ce=(0,sr.createAction)(Dn,e=>({payload:e}))});var cr,Vn,$n,Qe,ar,Gn,lr,Fp,pr,Bp,Up,Wp,Vp,$p,Gp,Hp,jp,et,tt=h(()=>{"use strict";n();cr=require("@multiversx/sdk-core"),Vn=require("@reduxjs/toolkit"),$n=require("redux-persist");k();Ie();be();B();Qe={balance:"...",address:"",isGuarded:!1,nonce:0,txCount:0,scrCount:0,claimableRewards:Ae},ar={address:"",websocketEvent:null,websocketBatchEvent:null,accounts:{"":Qe},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Gn=(0,Vn.createSlice)({name:"accountInfoSlice",initialState:ar,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=new cr.Address(r).hex()},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:Qe},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(N,()=>(ge.local.removeItem(le.loginExpiresAt),ar)),e.addCase(Ce,(t,r)=>{let{address:o}=r.payload;t.address=o,t.publicKey=new cr.Address(o).hex()}),e.addCase($n.REHYDRATE,(t,r)=>{var y;if(!((y=r.payload)!=null&&y.account))return;let{account:o}=r.payload,{address:i,shard:l,accounts:p,publicKey:m}=o;t.address=i,t.shard=l;let d=p&&i in p;t.accounts=d?p:ar.accounts,t.publicKey=m})}}),{setAccount:lr,setAddress:Fp,setAccountNonce:pr,setAccountShard:Bp,setLedgerAccount:Up,updateLedgerAccount:Wp,setWalletConnectAccount:Vp,setIsAccountLoading:$p,setAccountLoadingError:Gp,setWebsocketEvent:Hp,setWebsocketBatchEvent:jp}=Gn.actions,et=Gn.reducer});function Pe(){return new Date().setHours(new Date().getHours()+24)}function De(e){ge.local.setItem({key:le.loginExpiresAt,data:e,expires:e})}var ur=h(()=>{"use strict";n();Ie();be()});var jn,Hn,qn,tu,ru,nu,nt,ou,zn,Kn,iu,ot,it=h(()=>{"use strict";n();jn=require("@reduxjs/toolkit");ur();V();B();Hn={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},qn=(0,jn.createSlice)({name:"loginInfoSlice",initialState:Hn,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(N,()=>Hn),e.addCase(Ce,(t,r)=>{t.isLoginSessionInvalid=!1,t.loginMethod=r.payload.loginMethod,De(Pe())})}}),{setLoginMethod:tu,setWalletConnectLogin:ru,setLedgerLogin:nu,setTokenLogin:nt,setTokenLoginSignature:ou,setWalletLogin:zn,invalidateLoginSession:Kn,setLogoutRoute:iu}=qn.actions,ot=qn.reducer});var Xn,Yn,Zn,lu,pu,uu,du,st,at=h(()=>{"use strict";n();Xn=require("@reduxjs/toolkit");B();Yn={},Zn=(0,Xn.createSlice)({name:"modalsSlice",initialState:Yn,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(N,()=>Yn)}}),{setTxSubmittedModal:lu,setNotificationModal:pu,clearTxSubmittedModal:uu,clearNotificationModal:du}=Zn.actions,st=Zn.reducer});var ct=h(()=>{"use strict";n()});var Jn=h(()=>{"use strict";n();ct()});function Qn(e){return e[Math.floor(Math.random()*e.length)]}var eo=h(()=>{"use strict";n()});var to=h(()=>{"use strict";n();Qt()});var ro=h(()=>{"use strict";n();Jn();eo();to()});var no,oo,io,dr,Ks,so,Lu,Nu,ao,lt,pt=h(()=>{"use strict";n();no=require("@reduxjs/toolkit"),oo=w(require("lodash.omit")),io=require("redux-persist");B();ro();dr={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},Ks={network:dr,chainID:"-1"},so=(0,no.createSlice)({name:"appConfig",initialState:Ks,reducers:{initializeNetworkConfig:(e,t)=>{let r=Qn(t.payload.walletConnectV2RelayAddresses),o=(0,oo.default)(t.payload,"walletConnectV2RelayAddresses");e.network=S(f(f({},e.network),o),{walletConnectV2RelayAddress:r})},setChainID:(e,t)=>{e.chainID=t.payload},setCustomWalletAddress:(e,t)=>{e.network.customWalletAddress=t.payload}},extraReducers:e=>{e.addCase(N,t=>{t.network.customWalletAddress=void 0}),e.addCase(io.REHYDRATE,(t,r)=>{var i,l;if(!((l=(i=r.payload)==null?void 0:i.network)!=null&&l.customWalletAddress))return;let{network:{customWalletAddress:o}}=r.payload;t.network.customWalletAddress=o})}}),{initializeNetworkConfig:Lu,setChainID:Nu,setCustomWalletAddress:ao}=so.actions,lt=so.reducer});var co,mr,lo,Ou,Mu,Fu,ut,dt=h(()=>{"use strict";n();co=require("@reduxjs/toolkit");F();B();mr={isSigning:!1,signedSessions:{}},lo=(0,co.createSlice)({name:"signedMessageInfoSliceState",initialState:mr,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)=>f(f({},e),t.payload),clearSignedMessageInfo:()=>mr},extraReducers:e=>{e.addCase(N,()=>mr)}}),{setSignSession:Ou,clearSignedMessageInfo:Mu,setSignSessionState:Fu}=lo.actions,ut=lo.reducer});var uo,mo,po,go,Ys,Xs,Hu,ju,mt,gt=h(()=>{"use strict";n();uo=require("@reduxjs/toolkit"),mo=require("redux-persist");F();Ze();B();po={customToasts:[],transactionToasts:[]},go=(0,uo.createSlice)({name:"toastsSlice",initialState:po,reducers:{addCustomToast:(e,t)=>{let r=t.payload.toastId||`custom-toast-${e.customToasts.length+1}`,o=e.customToasts.findIndex(i=>i.toastId===r);if(o!==-1){e.customToasts[o]=S(f(f({},e.customToasts[o]),t.payload),{type:"custom",toastId:r});return}e.customToasts.push(S(f({},t.payload),{type:"custom",toastId:r}))},removeCustomToast:(e,t)=>{e.customToasts=e.customToasts.filter(r=>r.toastId!==t.payload)},addTransactionToast:(e,t)=>{e.transactionToasts.push({type:"transaction",startTimestamp:ve(),toastId:t.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,t)=>{e.transactionToasts=e.transactionToasts.filter(r=>r.toastId!==t.payload)}},extraReducers:e=>{e.addCase(N,()=>po),e.addCase(mo.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:Ys,removeCustomToast:Xs,addTransactionToast:Hu,removeTransactionToast:ju}=go.actions,mt=go.reducer});var fo,fr,Tr,yr,Zs,gr,To,Yu,Xu,Zu,ft,Tt=h(()=>{"use strict";n();fo=require("@reduxjs/toolkit");B();fr="Transaction failed",Tr="Transaction successful",yr="Processing transaction",Zs="Transaction submitted",gr={},To=(0,fo.createSlice)({name:"transactionsInfo",initialState:gr,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:o}=t.payload;r!=null&&(e[r]={errorMessage:(o==null?void 0:o.errorMessage)||fr,successMessage:(o==null?void 0:o.successMessage)||Tr,processingMessage:(o==null?void 0:o.processingMessage)||yr,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:()=>gr},extraReducers:e=>{e.addCase(N,()=>gr)}}),{clearTransactionsInfo:Yu,setTransactionsDisplayInfo:Xu,clearTransactionsInfoForSessionId:Zu}=To.actions,ft=To.reducer});function yo(e){return e!=null&&(ca(e)||ma(e))}function yt(e){return e!=null&&(la(e)||ga(e))}function ht(e){return e!=null&&(pa(e)||fa(e))}function ho(e){return e!=null&&(ua(e)||Ta(e))}function xo(e){return e!=null&&da(e)}function ca(e){return e!=null&&Qs.includes(e)}function la(e){return e!=null&&ea.includes(e)}function pa(e){return e!=null&&ta.includes(e)}function ua(e){return e!=null&&ra.includes(e)}function da(e){return e!=null&&na.includes(e)}function ma(e){return e!=null&&oa.includes(e)}function ga(e){return e!=null&&ia.includes(e)}function fa(e){return e!=null&&sa.includes(e)}function Ta(e){return e!=null&&aa.includes(e)}var Qs,ea,ta,ra,na,oa,ia,sa,aa,xr=h(()=>{"use strict";n();V();Qs=["sent"],ea=["success"],ta=["fail","cancelled","timedOut"],ra=["invalid"],na=["timedOut"],oa=["pending"],ia=["success"],sa=["fail","invalid"],aa=["not executed"]});var So,wo,_e,ya,Ao,sd,ad,cd,ld,pd,ud,dd,md,gd,fd,Td,xt,St=h(()=>{"use strict";n();So=require("@reduxjs/toolkit"),wo=require("redux-persist");V();xr();B();_e={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},ya={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Ao=(0,So.createSlice)({name:"transactionsSlice",initialState:_e,reducers:{moveTransactionsToSignedState:(e,t)=>{var d,y;let{sessionId:r,transactions:o,errorMessage:i,status:l,redirectRoute:p,customTransactionInformation:m}=t.payload;e.customTransactionInformationForSessionId[r]=f(f(f({},ya),((d=e.signedTransactions[r])==null?void 0:d.customTransactionInformation)||{}),e.customTransactionInformationForSessionId[r]||{}),e.signedTransactions[r]={transactions:o,status:l,errorMessage:i,redirectRoute:p,customTransactionInformation:f(f({},e.customTransactionInformationForSessionId[r]),m!=null?m:{})},((y=e==null?void 0:e.transactionsToSign)==null?void 0:y.sessionId)===r&&(e.transactionsToSign=_e.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=f(f({},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 d,y,x,g,v,b,A,C;let{sessionId:r,status:o,errorMessage:i,transactionHash:l,inTransit:p}=t.payload,m=(y=(d=e.signedTransactions)==null?void 0:d[r])==null?void 0:y.transactions;if(m!=null){e.signedTransactions[r].transactions=m.map(P=>P.hash===l?S(f({},P),{status:o,errorMessage:i,inTransit:p}):P);let U=(g=(x=e.signedTransactions[r])==null?void 0:x.transactions)==null?void 0:g.every(P=>yt(P.status)),H=(b=(v=e.signedTransactions[r])==null?void 0:v.transactions)==null?void 0:b.every(P=>ht(P.status)),j=(C=(A=e.signedTransactions[r])==null?void 0:A.transactions)==null?void 0:C.every(P=>ho(P.status));U&&(e.signedTransactions[r].status="success"),H&&(e.signedTransactions[r].status="fail"),j&&(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=_e.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=_e.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload},updateSignedTransactionsCustomTransactionInformation:(e,t)=>{let{sessionId:r,customTransactionInformationOverrides:o}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].customTransactionInformation=f(f({},e.signedTransactions[r].customTransactionInformation),o))}},extraReducers:e=>{e.addCase(N,()=>_e),e.addCase(wo.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((m,[d,y])=>{let x=new Date(d),g=new Date;return g.setHours(g.getHours()+5),g-x>0||(m[d]=y),m},{});i!=null&&(t.customTransactionInformationForSessionId=i),o!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:sd,updateSignedTransactions:ad,setTransactionsToSign:cd,clearAllTransactionsToSign:ld,clearAllSignedTransactions:pd,clearSignedTransaction:ud,clearTransactionToSign:dd,setSignTransactionsError:md,setSignTransactionsCancelMessage:gd,moveTransactionsToSignedState:fd,updateSignedTransactionsCustomTransactionInformation:Td}=Ao.actions,xt=Ao.reducer});var vo,Sr,bo,Sd,wd,Ad,vd,wt,At=h(()=>{"use strict";n();vo=require("@reduxjs/toolkit");B();Sr={},bo=(0,vo.createSlice)({name:"batchTransactionsSlice",initialState:Sr,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:()=>Sr},extraReducers:e=>{e.addCase(N,()=>Sr)}}),{setBatchTransactions:Sd,updateBatchTransactions:wd,clearBatchTransactions:Ad,clearAllBatchTransactions:vd}=bo.actions,wt=bo.reducer});var ko,Io,Eo,Ed,Lo,wr=h(()=>{"use strict";n();ko=require("@reduxjs/toolkit");B();Io={},Eo=(0,ko.createSlice)({name:"dappConfigSlice",initialState:Io,reducers:{setDappConfig:(e,t)=>{if(e&&t.payload){let{logoutRoute:r,shouldUseWebViewProvider:o,cancelTransactionToastDuration:i}=t.payload;e.logoutRoute=r,e.shouldUseWebViewProvider=o,e.cancelTransactionToastDuration=i}else e=t.payload}},extraReducers:e=>{e.addCase(N,()=>Io)}}),{setDappConfig:Ed}=Eo.actions,Lo=Eo.reducer});var q=h(()=>{"use strict";n();tt();it();at();pt();dt();gt();Tt();St();At();wr()});var Ar=h(()=>{"use strict";n()});var Co,wa,Aa,fe,It=h(()=>{"use strict";n();Co=require("@reduxjs/toolkit");Ar();tt();At();wr();it();at();pt();dt();gt();Tt();St();wa={["account"]:et,["dappConfig"]:Lo,["loginInfo"]:ot,["modals"]:st,["networkConfig"]:lt,["signedMessageInfo"]:ut,["toasts"]:mt,["transactionsInfo"]:ft,["transactions"]:xt,["batchTransactions"]:wt},Aa=(e={})=>(0,Co.combineReducers)(f(f({},wa),e)),fe=Aa});var Oo={};pe(Oo,{default:()=>Ba,sessionStorageReducers:()=>vr});function ie(e,t=[]){return{key:e,version:1,storage:Do.default,blacklist:t}}var O,Po,Do,va,Oe,ba,Ia,ka,Ea,La,Na,Ra,Ca,Pa,Da,_o,_a,vr,Oa,Ma,Fa,Ba,Mo=h(()=>{"use strict";n();O=require("redux-persist"),Po=w(require("redux-persist/lib/storage")),Do=w(require("redux-persist/lib/storage/session"));It();q();tt();At();it();at();pt();dt();gt();Tt();St();Ar();va={persistReducersStorageType:"localStorage"},Oe={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},ba=ie(Oe["account"]),Ia=ie(Oe["loginInfo"]),ka=ie(Oe["modals"]),Ea=ie(Oe["networkConfig"]),La={2:e=>S(f({},e),{networkConfig:dr})};Na=ie("sdk-dapp-transactionsInfo"),Ra=ie("sdk-dapp-transactions",["transactionsToSign"]),Ca=ie("sdk-dapp-batchTransactions",["batchTransactions"]),Pa=ie("sdk-dapp-toasts"),Da=ie("sdk-dapp-signedMessageInfo"),_o={key:"sdk-dapp-store",version:2,storage:Po.default,whitelist:Object.keys(Oe),migrate:(0,O.createMigrate)(La,{debug:!1})},_a=S(f({},_o),{whitelist:[]}),vr={["toasts"]:(0,O.persistReducer)(Pa,mt),["transactions"]:(0,O.persistReducer)(Ra,xt),["transactionsInfo"]:(0,O.persistReducer)(Na,ft),["batchTransactions"]:(0,O.persistReducer)(Ca,wt),["signedMessageInfo"]:(0,O.persistReducer)(Da,ut)},Oa=S(f({},vr),{["account"]:(0,O.persistReducer)(ba,et),["loginInfo"]:(0,O.persistReducer)(Ia,ot),["modals"]:(0,O.persistReducer)(ka,st),["networkConfig"]:(0,O.persistReducer)(Ea,lt)}),Ma=va.persistReducersStorageType==="localStorage",Fa=Ma?(0,O.persistReducer)(_o,fe(vr)):(0,O.persistReducer)(_a,fe(Oa)),Ba=Fa});var Fo={};pe(Fo,{default:()=>Ua});var Ua,Bo=h(()=>{"use strict";n();It();Ua=fe()});var Uo={};pe(Uo,{default:()=>Va});var $,Wa,Va,Wo=h(()=>{"use strict";n();$=require("redux-persist"),Wa=[$.FLUSH,$.REHYDRATE,$.PAUSE,$.PERSIST,$.PURGE,$.REGISTER],Va=Wa});var Go={};pe(Go,{default:()=>$o});function $o(e){return(0,Vo.persistStore)(e)}var Vo,Ho=h(()=>{"use strict";n();Vo=require("redux-persist")});var ki=M((WI,Ii)=>{n();var Zc=typeof a=="object"&&a&&a.Object===Object&&a;Ii.exports=Zc});var Li=M((VI,Ei)=>{n();var Jc=ki(),Qc=typeof self=="object"&&self&&self.Object===Object&&self,el=Jc||Qc||Function("return this")();Ei.exports=el});var Mr=M(($I,Ni)=>{n();var tl=Li(),rl=tl.Symbol;Ni.exports=rl});var Di=M((GI,Pi)=>{n();var Ri=Mr(),Ci=Object.prototype,nl=Ci.hasOwnProperty,ol=Ci.toString,Ve=Ri?Ri.toStringTag:void 0;function il(e){var t=nl.call(e,Ve),r=e[Ve];try{e[Ve]=void 0;var o=!0}catch(l){}var i=ol.call(e);return o&&(t?e[Ve]=r:delete e[Ve]),i}Pi.exports=il});var Oi=M((HI,_i)=>{n();var sl=Object.prototype,al=sl.toString;function cl(e){return al.call(e)}_i.exports=cl});var Ui=M((jI,Bi)=>{n();var Mi=Mr(),ll=Di(),pl=Oi(),ul="[object Null]",dl="[object Undefined]",Fi=Mi?Mi.toStringTag:void 0;function ml(e){return e==null?e===void 0?dl:ul:Fi&&Fi in Object(e)?ll(e):pl(e)}Bi.exports=ml});var Vi=M((qI,Wi)=>{n();var gl=Array.isArray;Wi.exports=gl});var Gi=M((zI,$i)=>{n();function fl(e){return e!=null&&typeof e=="object"}$i.exports=fl});var ji=M((KI,Hi)=>{n();var Tl=Ui(),yl=Vi(),hl=Gi(),xl="[object String]";function Sl(e){return typeof e=="string"||!yl(e)&&hl(e)&&Tl(e)==xl}Hi.exports=Sl});var bl={};pe(bl,{useWebWalletLogin:()=>vl});module.exports=Re(bl);n();var Ur=require("react");Jt();n();var Xo=require("react"),ke=require("react-redux");n();var br=require("@reduxjs/toolkit"),Ko=require("react-redux/lib/utils/Subscription");q();n();var No=w(require("lodash.throttle"));k();q();ur();Ie();be();var ha=[Xe],vt=!1,xa=(0,No.default)(()=>{De(Pe())},5e3),Ro=e=>t=>r=>{if(ha.includes(r.type))return t(r);let o=e.getState(),i=ge.local.getItem(le.loginExpiresAt);if(!Boolean(o==null?void 0:o.account.address))return t(r);if(i==null)return De(Pe());let p=Date.now();return i-p<0&&!vt?setTimeout(()=>{vt=!0,e.dispatch(Kn())},1e3):(vt&&(vt=!1),xa()),t(r)};n();n();function bt(){return typeof sessionStorage!="undefined"}var jo=bt()?(Mo(),Re(Oo)).default:(Bo(),Re(Fo)).default,qo=bt()?(Wo(),Re(Uo)).default:[],zo=bt()?(Ho(),Re(Go)).default:e=>e;It();var E=(0,br.configureStore)({reducer:jo,middleware:e=>e({serializableCheck:{ignoredActions:[...qo,pr.type,lr.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(Ro)}),Yo=(0,Ko.createSubscription)(E),Im=zo(E),km=(0,br.configureStore)({reducer:fe});var $a={store:E,subscription:Yo},Ir=(0,Xo.createContext)($a),Rm=(0,ke.createStoreHook)(Ir),kt=(0,ke.createDispatchHook)(Ir),z=(0,ke.createSelectorHook)(Ir);n();n();q();n();var Zo=w(require("lodash.isequal")),Et=require("reselect"),T=(0,Et.createSelectorCreator)(Et.defaultMemoize,Zo.default);var ee=e=>e.account,Lt=T(ee,e=>e.address),Ee=T(ee,Lt,(e,t)=>t in e.accounts?e.accounts[t]:Qe),Ga=T(ee,Ee,(e,t)=>{let i=e,{accounts:r}=i,o=je(i,["accounts"]);return S(f({},o),{account:t})}),Om=T(Ee,e=>e.balance),Ha=T(Ee,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),Mm=T(ee,e=>e.shard),Fm=T(ee,e=>e.ledgerAccount),Bm=T(ee,e=>e.walletConnectAccount),Um=T(ee,e=>e.isAccountLoading),Wm=T(ee,e=>e.accountLoadingError),ja=T(ee,e=>e.websocketEvent),Vm=T(ee,e=>e.websocketBatchEvent);n();var qa=e=>e.dappConfig,Hm=T(qa,e=>e.shouldUseWebViewProvider);n();var K=e=>e.loginInfo,Km=T(K,e=>e.loginMethod),Nt=T(K,Lt,(e,t)=>Boolean(t)),Ym=T(K,e=>e.walletConnectLogin),Xm=T(K,e=>e.ledgerLogin),za=T(K,e=>e.walletLogin),Zm=T(K,e=>e.isLoginSessionInvalid),Jo=T(K,e=>e.tokenLogin),Jm=T(K,e=>e.logoutRoute);n();var Qo=e=>e.modals,tg=T(Qo,e=>e.txSubmittedModal),rg=T(Qo,e=>e.notificationModal);n();var Te=e=>e.networkConfig,Ka=T(Te,e=>e.chainID),ig=T(Te,e=>e.network.walletConnectBridgeAddress),sg=T(Te,e=>e.network.walletConnectV2RelayAddress),ag=T(Te,e=>e.network.walletConnectV2ProjectId),cg=T(Te,e=>e.network.walletConnectV2Options),lg=T(Te,e=>e.network.walletConnectDeepLink),se=T(Te,e=>e.network),Ya=T(se,e=>e.apiAddress),ei=T(se,e=>e.explorerAddress),pg=T(se,e=>{var t;return(t=e.customWalletAddress)!=null?t:e.walletAddress}),Xa=T(se,e=>e.egldLabel);n();var Rt=e=>e.signedMessageInfo,mg=T(Rt,e=>e.isSigning),gg=T(Rt,e=>e.errorMessage),fg=T(Rt,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]}),Tg=T(Rt,e=>{let t=Object.keys(e.signedSessions),r=t.length;return t.length>0?t[r-1]:""});n();var ti=e=>e.toasts,xg=T(ti,e=>e.customToasts),Sg=T(ti,e=>e.transactionToasts);n();q();var ri={errorMessage:fr,successMessage:Tr,processingMessage:yr},Za=e=>e.transactionsInfo,bg=T(Za,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||ri);n();n();var te=require("@multiversx/sdk-core");k();n();var kr=require("@multiversx/sdk-core/out");n();n();function Ct(e){try{let t=atob(e),r=btoa(t),o=s.Buffer.from(e,"base64").toString(),i=s.Buffer.from(o).toString("base64");if(e===r&&e===i||t===o)return!0}catch(t){return!1}return!1}function ye(e){return Ct(e)?atob(e):e}n();n();n();n();var ni=e=>{let t=e!=null?e:"";return Ct(t)?kr.TransactionPayload.fromEncoded(t):new kr.TransactionPayload(t)};function Er(e){var r,o,i;let t=new te.Transaction(f(f(S(f(S(f({value:e.value.valueOf(),data:ni(e.data),nonce:e.nonce.valueOf(),receiver:new te.Address(e.receiver)},e.receiverUsername?{receiverUsername:e.receiverUsername}:{}),{sender:new te.Address(e.sender)}),e.senderUsername?{senderUsername:e.senderUsername}:{}),{gasLimit:(r=e.gasLimit.valueOf())!=null?r:tr,gasPrice:(o=e.gasPrice.valueOf())!=null?o:rr,chainID:e.chainID.valueOf(),version:new te.TransactionVersion((i=e.version)!=null?i:Pn)}),e.options?{options:new te.TransactionOptions(e.options)}:{}),e.guardian?{guardian:new te.Address(e.guardian)}:{}));return e.guardianSignature&&t.applyGuardianSignature(s.Buffer.from(e.guardianSignature,"hex")),e.signature&&t.applySignature(s.Buffer.from(e.signature,"hex")),t}n();n();n();n();n();var ec=require("@multiversx/sdk-core/out");n();k();n();var oi=require("@multiversx/sdk-core");F();n();var tc=require("@multiversx/sdk-core");n();n();n();var rc=require("@multiversx/sdk-core"),nc=w(require("bignumber.js"));V();n();n();n();var Nr="blocks";n();n();n();n();_();n();n();_();n();n();n();var pc=w(require("bignumber.js"));k();n();var lc=require("@multiversx/sdk-core"),Rr=w(require("bignumber.js"));k();n();var ac=w(require("bignumber.js"));n();Rr.default.config({ROUNDING_MODE:Rr.default.ROUND_FLOOR});n();n();n();k();n();n();n();n();k();n();k();n();var uc=require("@multiversx/sdk-core");k();n();var Fe=require("@multiversx/sdk-core"),mc=require("@multiversx/sdk-network-providers");k();n();n();var dc=w(require("bignumber.js"));k();n();k();n();n();n();n();n();n();k();n();k();n();k();n();_();var fc=["reDelegateRewards","claimRewards","unBond"],Tc=["wrapEgld","unwrapEgld"],yc=["unStake"],hc=["unDelegate"];n();n();n();k();n();var wc=w(require("bignumber.js"));n();n();_();n();var Ac=w(require("bignumber.js"));n();n();n();var bc=w(require("bignumber.js"));F();n();n();n();n();V();n();var Ec=require("@multiversx/sdk-web-wallet-provider");k();n();var kc=w(require("qs"));n();n();n();n();n();var Be=()=>typeof window!="undefined"&&typeof(window==null?void 0:window.location)!="undefined";var G=()=>{if(!Be())return{pathname:"",hash:"",origin:"",href:"",search:""};let{location:{pathname:t,hash:r,origin:o,href:i,search:l}}=window;return{pathname:t,hash:r,origin:o,href:i,search:l}};n();n();var px={search:Be()?window.location.search:"",removeParams:[]};n();n();n();n();_();n();n();n();var Lc=w(require("linkifyjs"));n();k();n();var Nc=w(require("bignumber.js"));n();F();n();n();V();n();V();n();n();n();_();n();_();n();var Rc=w(require("bignumber.js"));k();_();n();_();n();var pi=require("react");F();n();n();_();n();n();var Cc=require("@multiversx/sdk-core/out"),Pc=w(require("bignumber.js"));_();n();F();n();n();F();var ow=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];n();var ui=require("react");F();n();var _c=require("react");_();var dw=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];xr();var _t=e=>e.transactions,Ue=T(_t,e=>e.signedTransactions),Zw=T(_t,e=>e.signTransactionsError),Jw=T(_t,e=>e.signTransactionsCancelMessage),Ot=e=>t=>Object.entries(t).reduce((r,[o,i])=>(e(i.status)&&(r[o]=i),r),{}),Qw=T(Ue,Ot(yo)),eA=T(Ue,Ot(yt)),tA=T(Ue,Ot(ht)),rA=T(Ue,Ot(xo)),nA=T(_t,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:S(f({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>Er(r)))||[]})}),oA=T(Ue,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});q();n();n();n();n();n();var Oc=w(require("axios"));n();n();n();n();n();n();n();var Fc=require("@multiversx/sdk-extension-provider"),Bc=require("@multiversx/sdk-hw-provider"),Uc=require("@multiversx/sdk-opera-provider"),di=require("@multiversx/sdk-web-wallet-provider");k();V();n();var Wc="/dapp/init";var mi=e=>new di.WalletProvider(`${e}${Wc}`);var ce=e=>`Unable to perform ${e}, Provider not initialized`,Mt=class{init(){return Promise.resolve(!1)}login(t){throw new Error(ce(`login with options: ${t}`))}logout(t){throw new Error(ce(`logout with options: ${t}`))}getAddress(){throw new Error(ce("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(t,r){throw new Error(ce(`sendTransaction with transactions: ${t} options: ${r}`))}signTransaction(t,r){throw new Error(ce(`signTransaction with transactions: ${t} options: ${r}`))}signTransactions(t,r){throw new Error(ce(`signTransactions with transactions: ${t} options: ${r}`))}signMessage(t,r){throw new Error(ce(`signTransactions with ${t} and options ${r}`))}sendCustomMessage({method:t,params:r}){throw new Error(ce(`sendCustomMessage with method: ${t} params: ${r}`))}sendCustomRequest(t){throw new Error(ce(`sendSessionEvent with options: ${t}`))}ping(){return Promise.resolve(!1)}},Vc=new Mt;n();V();n();n();n();n();B();F();n();q();n();q();n();var Ti=require("@multiversx/sdk-core");n();nr();n();n();var Gc=w(require("platform"));n();function Dr(){return Nt(E.getState())}n();B();F();ct();Ie();be();n();n();n();n();n();n();n();n();n();V();n();ct();n();n();n();function yi(e){return I(this,null,function*(){return yield new Promise(t=>{setTimeout(()=>t(),e)})})}n();var hi=(e,t,r,o=0)=>I(void 0,null,function*(){try{return yield e(...r)}catch(i){return o<t.retries?((t==null?void 0:t.delay)!=null&&(yield yi(t.delay)),yield hi(e,t,r,o+1)):null}}),xi=(e,t={retries:5,delay:500})=>(...r)=>I(void 0,null,function*(){return yield hi(e,t,r)});Ie();n();n();n();q();n();n();var Hc=w(require("axios"));n();var Si=(e,t=["address"])=>{let r=new URL(e),o=new URLSearchParams(r.search);t.forEach(p=>o.delete(p));let i=Array.from(o.values()).length>0?"?":"",l=r.pathname==="/"&&!e.endsWith("/")?"":r.pathname;return r.protocol==="vscode:"?e:`${r.origin}${l}${i}${o.toString()}${r.hash}`};n();var Zi=require("react"),Bt=require("@multiversx/sdk-core");n();n();n();var _r=()=>z(Ee);n();n();n();n();n();var We=w(require("react"));var H0=(0,We.createContext)({}),j0=E.getState();n();var Ai=w(require("react"));n();var Or=w(require("react")),jc=w(require("axios"));n();n();n();n();var qc=require("react"),zc=w(require("swr"));q();n();n();var Xi=require("@multiversx/sdk-native-auth-client");n();var vi=w(require("axios"));var Kc=4,Yc=3e4,Ft={current:null},he={current:null},Xc=xi((e,t,r)=>I(void 0,null,function*(){if(r){let l=Math.floor(Date.now()/1e3);return{hash:yield r(),timestamp:l}}let{data:o}=yield vi.default.get(`${e}/${Nr}?from=${Kc}&size=1&fields=hash,timestamp${t?"&shard="+t:""}`),[i]=o;return i}));function bi(e,t,r,o){return I(this,null,function*(){if(e==null)throw new Error("missing api url");let i=Date.now();if(Ft.current!=null&&i<Ft.current.timestamp*1e3+Yc&&!o)return Ft.current;if(he.current!=null)return yield he.current;he.current=Xc(e,t,r);try{let l=yield he.current;if(l==null)throw he.current=null,new Error("could not get block hash");return Ft.current={hash:l.hash,timestamp:l.timestamp},he.current=null,l}catch(l){return he.current=null,null}})}n();n();Ze();n();n();var qi=w(ji());var zi=e=>{if(!e||!(0,qi.default)(e))return null;let t=e.split(".");if(t.length!==4)return null;try{let[r,o,i,l]=t,p=JSON.parse(ye(l)),m=ye(r);return{ttl:Number(i),extraInfo:p,origin:m,blockHash:o}}catch(r){return console.error(`Error trying to decode ${e}:`,r),null}};function wl(e){return Object.prototype.toString.call(e)==="[object String]"}var Ki=e=>{var r;if(!e||!wl(e))return null;let t=e.split(".");if(t.length!==3)return console.error("Invalid nativeAuthToken. You may be trying to decode a loginToken. Try using decodeLoginToken method instead"),null;try{let[o,i,l]=t,p=ye(o),m=ye(i),d=zi(m);if(!d)return{address:p,body:m,signature:l,blockHash:"",origin:"",ttl:0};let y=S(f({},d),{address:p,body:m,signature:l});return(r=d.extraInfo)!=null&&r.timestamp||delete y.extraInfo,y}catch(o){return null}};var Fr={isExpired:!1},Yi=e=>{if(!e)return Fr;let t=Ki(e);if(!t)return Fr;let r=ve(),{ttl:o,extraInfo:i}=t,l=i==null?void 0:i.timestamp;if(!l)return Fr;let p=l+o,m=r>p,d=p-r;return{isExpired:m,expiresAt:p,secondsUntilExpires:d}};n();var $e={origin:G().origin,apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60},Ge=e=>{var r,o,i,l,p,m;return e===!0?$e:{origin:(r=e==null?void 0:e.origin)!=null?r:$e.origin,blockHashShard:e==null?void 0:e.blockHashShard,expirySeconds:(o=e==null?void 0:e.expirySeconds)!=null?o:$e.expirySeconds,apiAddress:(i=e==null?void 0:e.apiAddress)!=null?i:$e.apiAddress,tokenExpirationToastWarningSeconds:(l=e==null?void 0:e.tokenExpirationToastWarningSeconds)!=null?l:$e.tokenExpirationToastWarningSeconds,extraInfo:(p=e==null?void 0:e.extraInfo)!=null?p:{},gatewayUrl:e==null?void 0:e.gatewayUrl,extraRequestHeaders:(m=e==null?void 0:e.extraRequestHeaders)!=null?m:{}}};var Br=e=>{let{origin:t,apiAddress:r,expirySeconds:o,blockHashShard:i,extraInfo:l,gatewayUrl:p,extraRequestHeaders:m}=Ge(e),d=new Xi.NativeAuthClient({origin:t,apiUrl:r,expirySeconds:o,blockHashShard:i,gatewayUrl:p,extraRequestHeaders:m});return{getNativeAuthConfig:Ge,initialize:g=>I(void 0,null,function*(){var j,P;if(!r||!t)return"";let v=()=>d.getCurrentBlockHash(),b=(j=g==null?void 0:g.latestBlockInfo)!=null?j:yield bi(r,i,v,g==null?void 0:g.noCache),{hash:A,timestamp:C}=b,U=d.encodeValue(JSON.stringify(f(f({},(P=g==null?void 0:g.extraInfo)!=null?P:l),C?{timestamp:C}:{})));return`${d.encodeValue(t)}.${A}.${o}.${U}`}),getToken:({address:g,token:v,signature:b})=>d.getToken(g,v,b),getTokenExpiration:Yi}};var Al=(e,t)=>{var r;return t?t===!0?e:(r=t.apiAddress)!=null?r:e:null},Ji=e=>{let t=z(se),r=z(Jo),o=(0,Zi.useRef)(r==null?void 0:r.loginToken),i=Al(t.apiAddress,e),l=Ge(f(f({},e===!0?{}:e),i?{apiAddress:i}:{})),p=Boolean(e),m=Br(l),{address:d}=_r(),y=kt(),x=A=>{o.current=A,y(nt(f({loginToken:A},i?{nativeAuthConfig:l}:{})))},g=()=>{try{return m.initialize()}catch(A){console.error("Unable to get block. Login failed.",A);return}},v=({address:A,signature:C})=>{let U=o.current;if(!U)throw"Token not found. Call `setLoginToken` first.";if(!p){y(nt({loginToken:U,signature:C}));return}let H=m.getToken({address:A,token:U,signature:C});return y(nt(f({loginToken:U,signature:C,nativeAuthToken:H},i?{nativeAuthConfig:l}:{}))),H};return{configuration:l,setLoginToken:x,getNativeAuthLoginToken:g,setTokenLoginInfo:v,refreshNativeAuthTokenLogin:U=>I(void 0,[U],function*({signMessageCallback:A,nativeAuthClientConfig:C}){let j=yield Br(C||l).initialize({noCache:Boolean(C)});if(o.current=j,!j)return;let P=new Bt.SignableMessage({address:new Bt.Address(d),message:s.Buffer.from(`${d}${j}{}`)}),Ut=yield A(P,{});return v({address:d,signature:Ut.getSignature().toString("hex")})})}};var vl=({callbackRoute:e,token:t,nativeAuth:r,redirectDelayMilliseconds:o=100,customWalletAddress:i})=>{let[l,p]=(0,Ur.useState)(""),[m,d]=(0,Ur.useState)(!1),y=z(se),x=kt(),g=Dr(),v=Boolean(r),b=Ji(r),A=t;function C(){return I(this,null,function*(){if(g)throw new Error(mn);x(ao(i));try{d(!0);let H=mi(i!=null?i:y.walletAddress),j=new Date,P=j.setMinutes(j.getMinutes()+3)/1e3,Ut={data:{},expires:P};if(v&&!A&&(A=yield b.getNativeAuthLoginToken(),!A)){console.warn("Login cancelled.");return}A&&b.setLoginToken(A);let{origin:Wr}=G(),Qi=window!=null&&window.location?`${Wr}${e}`:`${e}`;new URLSearchParams(document==null?void 0:document.location.search).get("address")||x(zn(Ut));let es=Si(Qi),ts=encodeURIComponent(es),rs=S(f({callbackUrl:ts},A&&{token:A}),{redirectDelayMilliseconds:o});yield H.login(rs)}catch(H){console.error(H),p("error logging in"+H.message)}finally{d(!1)}})}let U=Boolean(l);return[C,{error:l,loginFailed:U,isLoading:m&&!U,isLoggedIn:g&&!U}]};0&&(module.exports={useWebWalletLogin});
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|
package/__mocks__/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";import"../__chunks__/chunk-OQMQWZG7.js";import{a as m}from"../__chunks__/chunk-WTAIM7XI.js";import{a as p,b as t,c as x}from"../__chunks__/chunk-ROIVVURF.js";import"../__chunks__/chunk-M6CAVA74.js";import{a as c}from"../__chunks__/chunk-GHE2YVYT.js";import{a as b}from"../__chunks__/chunk-ZD4T5RDE.js";import{a}from"../__chunks__/chunk-MM3XNJUX.js";import"../__chunks__/chunk-4FTRS7WH.js";import"../__chunks__/chunk-HNUVNTRH.js";import"../__chunks__/chunk-QW2K6EU2.js";import"../__chunks__/chunk-D2EJISTE.js";import"../__chunks__/chunk-K3PKB7WJ.js";import"../__chunks__/chunk-NIFB6QSZ.js";import"../__chunks__/chunk-YNJJZIKC.js";import"../__chunks__/chunk-QJARJPJE.js";import"../__chunks__/chunk-HV2BCQA4.js";import"../__chunks__/chunk-3XKE2HQA.js";import"../__chunks__/chunk-GP6IT7SP.js";import"../__chunks__/chunk-EQDUJYI7.js";import"../__chunks__/chunk-3VOPLXJ4.js";import"../__chunks__/chunk-YTQWYUYW.js";import"../__chunks__/chunk-SU4JC6WN.js";import"../__chunks__/chunk-PTZXE47C.js";import"../__chunks__/chunk-2GCFWKOL.js";import"../__chunks__/chunk-OQ74W6J4.js";import"../__chunks__/chunk-PENA4DTK.js";import"../__chunks__/chunk-BZLC5D73.js";import"../__chunks__/chunk-NNXE7L5C.js";import"../__chunks__/chunk-O3HR7S2U.js";import"../__chunks__/chunk-MDEIZZLG.js";import"../__chunks__/chunk-M7MGIO3S.js";import"../__chunks__/chunk-ZYCTBZ7O.js";import"../__chunks__/chunk-JAQYPX6Y.js";import"../__chunks__/chunk-6D5SMBU7.js";import"../__chunks__/chunk-D2JAQIBH.js";import"../__chunks__/chunk-ICUS6QYE.js";import"../__chunks__/chunk-PAVHGJ7A.js";import"../__chunks__/chunk-GVU7CFIB.js";import"../__chunks__/chunk-NZUHFWGJ.js";import"../__chunks__/chunk-SUWYB6AU.js";import"../__chunks__/chunk-VH5B3W6C.js";import"../__chunks__/chunk-VW2UBFJI.js";import"../__chunks__/chunk-GSU5KKHS.js";import"../__chunks__/chunk-3HTMDKJD.js";import"../__chunks__/chunk-UCBDWIIG.js";import"../__chunks__/chunk-OQUN3WEF.js";import"../__chunks__/chunk-R7VXMYQB.js";import"../__chunks__/chunk-SQJYWVIF.js";import"../__chunks__/chunk-S7RTYHZD.js";import"../__chunks__/chunk-L5ZELHXF.js";import"../__chunks__/chunk-7DXHLU4U.js";import"../__chunks__/chunk-ZPEMDWP2.js";import"../__chunks__/chunk-NLNFARHY.js";import"../__chunks__/chunk-54LSPY4R.js";import"../__chunks__/chunk-VPGECZPA.js";import"../__chunks__/chunk-VIHCLOWS.js";import"../__chunks__/chunk-XBVJ4WIE.js";import"../__chunks__/chunk-TDPTBO37.js";import"../__chunks__/chunk-ODZH7JKM.js";import"../__chunks__/chunk-ROTSESVR.js";import"../__chunks__/chunk-AYSTFUXE.js";import"../__chunks__/chunk-2MFNTUTR.js";import"../__chunks__/chunk-QCGS2BTF.js";import"../__chunks__/chunk-4KVP7H45.js";import"../__chunks__/chunk-GQOGGZFE.js";import"../__chunks__/chunk-IO35BN4Z.js";import"../__chunks__/chunk-7QNTOSCY.js";import"../__chunks__/chunk-PSTOL4V4.js";import"../__chunks__/chunk-U2ADLPS4.js";import"../__chunks__/chunk-Y2ILDUPM.js";import"../__chunks__/chunk-T57Y5JTI.js";import"../__chunks__/chunk-2EKZV34C.js";import"../__chunks__/chunk-IQXX5IJU.js";import"../__chunks__/chunk-5MPILH7X.js";import"../__chunks__/chunk-PBHGYXT3.js";import"../__chunks__/chunk-PJJVE6RO.js";import"../__chunks__/chunk-S2ZXQSDD.js";import"../__chunks__/chunk-YW6SNF3O.js";import"../__chunks__/chunk-MXCEN3H5.js";import"../__chunks__/chunk-3IQCEVEZ.js";import"../__chunks__/chunk-T5T7MQL2.js";import"../__chunks__/chunk-FFVV3SCF.js";import"../__chunks__/chunk-HRZGQJTT.js";import"../__chunks__/chunk-7YSGRW46.js";import"../__chunks__/chunk-H55BW62B.js";import"../__chunks__/chunk-3DQBAFMW.js";import"../__chunks__/chunk-TI7OGYFP.js";import"../__chunks__/chunk-YJFNSJWQ.js";import"../__chunks__/chunk-UUYNGUKK.js";import"../__chunks__/chunk-FHEWQJBV.js";import"../__chunks__/chunk-HZSM6ODA.js";import"../__chunks__/chunk-OLYIRMPJ.js";import"../__chunks__/chunk-S3JG5QFQ.js";import"../__chunks__/chunk-NKAAUHLP.js";import"../__chunks__/chunk-3SGZP5CP.js";import"../__chunks__/chunk-TO4PMUFS.js";import"../__chunks__/chunk-MVHVTAMV.js";import"../__chunks__/chunk-6IPUCVLQ.js";import"../__chunks__/chunk-DWS36N3A.js";import"../__chunks__/chunk-SD47PTNB.js";import"../__chunks__/chunk-ZJM2HWJ5.js";import"../__chunks__/chunk-XJFSNDLH.js";import"../__chunks__/chunk-H4NO4HCY.js";import"../__chunks__/chunk-JRVF5FZQ.js";import"../__chunks__/chunk-U62W3J3X.js";import"../__chunks__/chunk-LYPBOB2X.js";import"../__chunks__/chunk-MVL2PMWS.js";import"../__chunks__/chunk-RJINUKHI.js";import"../__chunks__/chunk-JCAUBGCB.js";import"../__chunks__/chunk-LXOZWITV.js";import"../__chunks__/chunk-VF7AB23D.js";import"../__chunks__/chunk-L3ERSIIK.js";import"../__chunks__/chunk-4UGEM7KX.js";import"../__chunks__/chunk-NKJDO5GI.js";import"../__chunks__/chunk-EMI5INPM.js";import"../__chunks__/chunk-X4OSS4GU.js";import"../__chunks__/chunk-DJBYEDIK.js";import"../__chunks__/chunk-MZDTO45T.js";import"../__chunks__/chunk-BJMFEZU3.js";import"../__chunks__/chunk-YYGVJULM.js";import"../__chunks__/chunk-BFNQA3P2.js";import"../__chunks__/chunk-LGBANZIL.js";import"../__chunks__/chunk-C7256GIJ.js";import"../__chunks__/chunk-QSRBOW33.js";import"../__chunks__/chunk-BOAUVGTN.js";import"../__chunks__/chunk-PXLKYXON.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-ATEFCARH.js";import"../__chunks__/chunk-JFXVZGSY.js";import"../__chunks__/chunk-TXAITGIS.js";import"../__chunks__/chunk-KOH3SXG4.js";import"../__chunks__/chunk-4ASJZWSW.js";import"../__chunks__/chunk-OM57M5QN.js";import"../__chunks__/chunk-KG4FUG77.js";import"../__chunks__/chunk-QYZILPYE.js";import"../__chunks__/chunk-XAQNBFSL.js";import"../__chunks__/chunk-5HMS5KVK.js";import"../__chunks__/chunk-53GKFOIV.js";import"../__chunks__/chunk-TSIOFCOA.js";import"../__chunks__/chunk-YAR2KJ42.js";import"../__chunks__/chunk-SLIVTINA.js";import"../__chunks__/chunk-UG2C5XXR.js";import"../__chunks__/chunk-RLEGTJWF.js";import"../__chunks__/chunk-JHU5IUB7.js";import"../__chunks__/chunk-YTYNUTPN.js";import"../__chunks__/chunk-OMT4TEDL.js";import"../__chunks__/chunk-FZMRVALH.js";import"../__chunks__/chunk-YOL72E3K.js";import"../__chunks__/chunk-37ZHJ2BK.js";import"../__chunks__/chunk-EA6JYINF.js";import"../__chunks__/chunk-ELWERAIL.js";import"../__chunks__/chunk-F7XKTZUU.js";import"../__chunks__/chunk-QUO3WQQP.js";import"../__chunks__/chunk-WGNJV6FV.js";import"../__chunks__/chunk-KZR7TQ7H.js";import"../__chunks__/chunk-XOZ662VA.js";import"../__chunks__/chunk-LO5NNAIV.js";import"../__chunks__/chunk-NAN2H6P3.js";import"../__chunks__/chunk-KTZ6NJYR.js";import"../__chunks__/chunk-RDB2436S.js";import"../__chunks__/chunk-VYPB4XKB.js";import"../__chunks__/chunk-7MWHZFZC.js";import"../__chunks__/chunk-VU5KZZ4F.js";import"../__chunks__/chunk-3LSGWB2D.js";import"../__chunks__/chunk-HH5S5FOE.js";import"../__chunks__/chunk-VDBMCVHT.js";import"../__chunks__/chunk-22UA5SNR.js";import"../__chunks__/chunk-NTW7VNS4.js";import"../__chunks__/chunk-GZAWM3MB.js";import"../__chunks__/chunk-JAHQWF5V.js";import"../__chunks__/chunk-CLZCWECI.js";import"../__chunks__/chunk-TXPZDSWB.js";import"../__chunks__/chunk-U6FPCKTD.js";import"../__chunks__/chunk-H5XM6MLO.js";import"../__chunks__/chunk-HN3VGROH.js";import"../__chunks__/chunk-KA4LEM3K.js";import"../__chunks__/chunk-SS4V3OT5.js";import"../__chunks__/chunk-OM2VSN3H.js";import"../__chunks__/chunk-S2TYOHJC.js";import"../__chunks__/chunk-IIEA2LVW.js";import"../__chunks__/chunk-NJWMFRBP.js";import"../__chunks__/chunk-EGS2BNV2.js";import"../__chunks__/chunk-JQGZ4NPN.js";import"../__chunks__/chunk-X4RET644.js";import"../__chunks__/chunk-QYC2Z4FV.js";import"../__chunks__/chunk-4IMFSHJX.js";import"../__chunks__/chunk-FBHNJJZH.js";import"../__chunks__/chunk-OR4IOV6T.js";import"../__chunks__/chunk-KEQTNP4F.js";import"../__chunks__/chunk-YTGZMJXZ.js";import"../__chunks__/chunk-5DFOBP4C.js";import"../__chunks__/chunk-4JP4CKHO.js";import"../__chunks__/chunk-CQVQUVCV.js";import"../__chunks__/chunk-A46DJQ6R.js";import"../__chunks__/chunk-3U7QBETU.js";import"../__chunks__/chunk-DBD6N2CW.js";import"../__chunks__/chunk-K7EQVIHG.js";import"../__chunks__/chunk-6IYK4PYK.js";import"../__chunks__/chunk-OWG32HIC.js";import"../__chunks__/chunk-ILZCPR3Z.js";import"../__chunks__/chunk-C77LE3WZ.js";import"../__chunks__/chunk-U57XNZBX.js";import"../__chunks__/chunk-63FV6OD4.js";import"../__chunks__/chunk-JGR7YHBL.js";import"../__chunks__/chunk-MBQJF3MO.js";import"../__chunks__/chunk-RHJ3HG4I.js";import"../__chunks__/chunk-R4VSFHLN.js";import"../__chunks__/chunk-FK6GRHXD.js";import"../__chunks__/chunk-ICVZO2K2.js";import"../__chunks__/chunk-DMW2AYNQ.js";import"../__chunks__/chunk-4MZ7WK7D.js";import"../__chunks__/chunk-OZWSTVZ7.js";import"../__chunks__/chunk-JS3K5CWO.js";import"../__chunks__/chunk-LPQY7BQ4.js";import"../__chunks__/chunk-VDGSDTYB.js";import"../__chunks__/chunk-NUICQGYP.js";import"../__chunks__/chunk-3VNPP5WZ.js";import"../__chunks__/chunk-LWYP45DI.js";import"../__chunks__/chunk-QP6LGN2T.js";import"../__chunks__/chunk-OFXDXKXF.js";import"../__chunks__/chunk-XNFCZFZP.js";import"../__chunks__/chunk-V2JQJYU7.js";import"../__chunks__/chunk-B2J4SA2C.js";import"../__chunks__/chunk-VZBHRDOX.js";import"../__chunks__/chunk-2C4V4IXB.js";import"../__chunks__/chunk-CJLDKFVG.js";import"../__chunks__/chunk-LJ7BGBHG.js";import"../__chunks__/chunk-2WP7OVEE.js";import"../__chunks__/chunk-U3TQIHS4.js";import"../__chunks__/chunk-LVXEGFDX.js";import"../__chunks__/chunk-SGQ54NQK.js";import"../__chunks__/chunk-JCJ47OMS.js";import"../__chunks__/chunk-Y4RCHOTY.js";import"../__chunks__/chunk-N3R7LCX5.js";import"../__chunks__/chunk-JRB2SSEU.js";import"../__chunks__/chunk-6ALBKZZO.js";import"../__chunks__/chunk-RXV2CATH.js";import"../__chunks__/chunk-6A3UTLF2.js";import"../__chunks__/chunk-26GS6QMF.js";import"../__chunks__/chunk-R7XFYQRR.js";import"../__chunks__/chunk-UY6STZS7.js";import"../__chunks__/chunk-II4YGYVN.js";import"../__chunks__/chunk-NFWRULG5.js";import"../__chunks__/chunk-CALTQQB2.js";import"../__chunks__/chunk-WOK66U3L.js";import"../__chunks__/chunk-MWUPZQEA.js";import"../__chunks__/chunk-WODTNYFW.js";import"../__chunks__/chunk-47XDMA2I.js";import"../__chunks__/chunk-TIRPJY6G.js";import"../__chunks__/chunk-6WHJ3OVF.js";import"../__chunks__/chunk-OGKASO74.js";import"../__chunks__/chunk-HB2AQDPQ.js";import"../__chunks__/chunk-GEIY6QKK.js";import"../__chunks__/chunk-LOEOBGHO.js";import"../__chunks__/chunk-GL24S5GY.js";import"../__chunks__/chunk-SFQFF2AF.js";import"../__chunks__/chunk-BZYEY4V6.js";import"../__chunks__/chunk-BENZDWG3.js";import"../__chunks__/chunk-M6A74AE4.js";import"../__chunks__/chunk-NLU2B6MT.js";import"../__chunks__/chunk-HUMOP4SH.js";import"../__chunks__/chunk-OF3VHHUR.js";import"../__chunks__/chunk-JW7ZCUB4.js";import"../__chunks__/chunk-XK4XOW72.js";import"../__chunks__/chunk-KLFPAZSS.js";import"../__chunks__/chunk-EQSNZZK2.js";import"../__chunks__/chunk-PYQY6CVO.js";import"../__chunks__/chunk-UX4T4TMQ.js";import"../__chunks__/chunk-X42PRFW5.js";import"../__chunks__/chunk-G7UZISJS.js";import"../__chunks__/chunk-S5N3R4MS.js";import"../__chunks__/chunk-6AAZVCTM.js";import"../__chunks__/chunk-F52JH274.js";import"../__chunks__/chunk-PJKUI3Y6.js";import"../__chunks__/chunk-YV4Y3N6A.js";import"../__chunks__/chunk-IMORLJ4D.js";import"../__chunks__/chunk-KWQPHBRJ.js";import"../__chunks__/chunk-NQOAOMEL.js";import"../__chunks__/chunk-7WXEH6OF.js";import"../__chunks__/chunk-AGEOX5JH.js";import"../__chunks__/chunk-YRZKLN43.js";import"../__chunks__/chunk-6MPGZ74L.js";import"../__chunks__/chunk-KLPLQMYE.js";import"../__chunks__/chunk-ZRD6IVNQ.js";import"../__chunks__/chunk-4M54TFO5.js";import"../__chunks__/chunk-5MYSYVJW.js";import"../__chunks__/chunk-NLDKTPU3.js";import"../__chunks__/chunk-75625ISR.js";import"../__chunks__/chunk-5IMNE4MQ.js";import"../__chunks__/chunk-DIKVWGTG.js";import"../__chunks__/chunk-36NZZB3P.js";import"../__chunks__/chunk-V3YGOOML.js";import"../__chunks__/chunk-JFW7QJGM.js";import"../__chunks__/chunk-N3QTYKLF.js";import"../__chunks__/chunk-HGEGFQPE.js";import"../__chunks__/chunk-3S7LOHJV.js";import"../__chunks__/chunk-7GGJHWEK.js";import"../__chunks__/chunk-BQBE7OZR.js";import"../__chunks__/chunk-LVCWBXY5.js";import"../__chunks__/chunk-5ZPIIZLN.js";import"../__chunks__/chunk-WUI72I54.js";import"../__chunks__/chunk-VSQTFQMH.js";import"../__chunks__/chunk-4RLCYQ74.js";import"../__chunks__/chunk-LXRRORKB.js";import"../__chunks__/chunk-JRQHEQBW.js";import"../__chunks__/chunk-M5P3J4PH.js";import"../__chunks__/chunk-OWBHRN3S.js";import"../__chunks__/chunk-CCMLFI4B.js";import"../__chunks__/chunk-BQNI2XMA.js";import"../__chunks__/chunk-7TW5V77R.js";import"../__chunks__/chunk-2WQS6SUB.js";import"../__chunks__/chunk-H6BZGL2Y.js";import"../__chunks__/chunk-MR3V64MT.js";import"../__chunks__/chunk-5LNCQB7U.js";import"../__chunks__/chunk-ZHMC3BOL.js";import"../__chunks__/chunk-3HHAVSUJ.js";import"../__chunks__/chunk-JC264KXM.js";import"../__chunks__/chunk-UFOWE24Z.js";import"../__chunks__/chunk-RTUYXLM2.js";import"../__chunks__/chunk-3XTQ4ABX.js";import"../__chunks__/chunk-SNQ7GR7D.js";import"../__chunks__/chunk-CCJG3WLD.js";import"../__chunks__/chunk-2PCYLQVD.js";import"../__chunks__/chunk-TN3IL6YQ.js";import"../__chunks__/chunk-RNBBOBRQ.js";import"../__chunks__/chunk-EBV5V6SU.js";import"../__chunks__/chunk-ZYJTJW6F.js";import"../__chunks__/chunk-FDI635JG.js";import"../__chunks__/chunk-N7MHQ6JT.js";import"../__chunks__/chunk-SAQ2TZS4.js";import"../__chunks__/chunk-5DJROO27.js";import"../__chunks__/chunk-3DHA63I3.js";import"../__chunks__/chunk-PSOTUYYR.js";import"../__chunks__/chunk-FNNO6X33.js";import"../__chunks__/chunk-2QIFGJLP.js";import"../__chunks__/chunk-RALSJ7UN.js";import"../__chunks__/chunk-ARZYHB3G.js";import"../__chunks__/chunk-UPMSDSQP.js";import"../__chunks__/chunk-LN7HFODU.js";import"../__chunks__/chunk-6WZ7DVP7.js";import"../__chunks__/chunk-6LYBJWQO.js";import"../__chunks__/chunk-CHYGQARZ.js";import"../__chunks__/chunk-P2VXRWXU.js";import"../__chunks__/chunk-BPYUN5PX.js";import"../__chunks__/chunk-Z6QBE5W7.js";import"../__chunks__/chunk-MZKFMF7G.js";import"../__chunks__/chunk-YXJVLN63.js";import"../__chunks__/chunk-J42ZO72F.js";import"../__chunks__/chunk-6ZGFYJ6T.js";import"../__chunks__/chunk-HIMYYDUZ.js";import"../__chunks__/chunk-DYORUPQR.js";import"../__chunks__/chunk-COWA3VKU.js";import"../__chunks__/chunk-SC7SRUXL.js";import"../__chunks__/chunk-LOZF3QI7.js";import"../__chunks__/chunk-CCN5MMPI.js";import"../__chunks__/chunk-FC3UYSGH.js";import"../__chunks__/chunk-WISLI42M.js";import"../__chunks__/chunk-W7SO52DM.js";import"../__chunks__/chunk-PXHBOM4A.js";import"../__chunks__/chunk-6XR6BLIB.js";import"../__chunks__/chunk-5KGDRZSV.js";import"../__chunks__/chunk-HGOHQNWK.js";import"../__chunks__/chunk-WTIKHG7D.js";import"../__chunks__/chunk-KV4PBIVD.js";import"../__chunks__/chunk-ZX2XOMRP.js";import"../__chunks__/chunk-3ZGAB2KK.js";import"../__chunks__/chunk-GGMEVY45.js";import"../__chunks__/chunk-E3VZKZ3M.js";import"../__chunks__/chunk-5YFVFPXX.js";import"../__chunks__/chunk-X2JZA2ND.js";import"../__chunks__/chunk-BZUMXHQT.js";import"../__chunks__/chunk-WQFSDAGL.js";import"../__chunks__/chunk-RVXC64US.js";import"../__chunks__/chunk-7YHU2LQD.js";import"../__chunks__/chunk-A2R2BMVL.js";import"../__chunks__/chunk-FDSDVDKW.js";import"../__chunks__/chunk-27DX5WIQ.js";import"../__chunks__/chunk-UIM5EFXT.js";import"../__chunks__/chunk-G3MFJX2K.js";import"../__chunks__/chunk-326XWAT2.js";import{a as r,b as e,c as f}from"../__chunks__/chunk-LISHYZJY.js";import"../__chunks__/chunk-FZ3QCOUU.js";import"../__chunks__/chunk-ERG7H4LX.js";import"../__chunks__/chunk-LIRR6LCS.js";import"../__chunks__/chunk-7CT2Q6BT.js";import"../__chunks__/chunk-XDZ2AX2X.js";import"../__chunks__/chunk-4SD7Y2KM.js";import"../__chunks__/chunk-W6HPOJ7Z.js";import"../__chunks__/chunk-6LITAK4Z.js";import"../__chunks__/chunk-GVCPEY3I.js";import"../__chunks__/chunk-2C7GRV4K.js";import"../__chunks__/chunk-XTDLK5SN.js";import"../__chunks__/chunk-TKJ42ND4.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,t as mockResponse,c as mockWindowHistory,b as mockWindowLocation,a as renderWithProvider,p as rest,x 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 p,b as t,c as x}from"../__chunks__/chunk-ROIVVURF.js";import"../__chunks__/chunk-M6CAVA74.js";import{a as c}from"../__chunks__/chunk-6KZ376QS.js";import{a as b}from"../__chunks__/chunk-ALWWVLET.js";import{a}from"../__chunks__/chunk-MM3XNJUX.js";import"../__chunks__/chunk-4FTRS7WH.js";import"../__chunks__/chunk-HNUVNTRH.js";import"../__chunks__/chunk-QW2K6EU2.js";import"../__chunks__/chunk-D2EJISTE.js";import"../__chunks__/chunk-K3PKB7WJ.js";import"../__chunks__/chunk-NIFB6QSZ.js";import"../__chunks__/chunk-YNJJZIKC.js";import"../__chunks__/chunk-QJARJPJE.js";import"../__chunks__/chunk-HV2BCQA4.js";import"../__chunks__/chunk-3XKE2HQA.js";import"../__chunks__/chunk-GP6IT7SP.js";import"../__chunks__/chunk-EQDUJYI7.js";import"../__chunks__/chunk-3VOPLXJ4.js";import"../__chunks__/chunk-YTQWYUYW.js";import"../__chunks__/chunk-SU4JC6WN.js";import"../__chunks__/chunk-PTZXE47C.js";import"../__chunks__/chunk-2GCFWKOL.js";import"../__chunks__/chunk-OQ74W6J4.js";import"../__chunks__/chunk-PENA4DTK.js";import"../__chunks__/chunk-BZLC5D73.js";import"../__chunks__/chunk-NNXE7L5C.js";import"../__chunks__/chunk-O3HR7S2U.js";import"../__chunks__/chunk-MDEIZZLG.js";import"../__chunks__/chunk-M7MGIO3S.js";import"../__chunks__/chunk-ZYCTBZ7O.js";import"../__chunks__/chunk-JAQYPX6Y.js";import"../__chunks__/chunk-6D5SMBU7.js";import"../__chunks__/chunk-D2JAQIBH.js";import"../__chunks__/chunk-ICUS6QYE.js";import"../__chunks__/chunk-PAVHGJ7A.js";import"../__chunks__/chunk-GVU7CFIB.js";import"../__chunks__/chunk-NZUHFWGJ.js";import"../__chunks__/chunk-SUWYB6AU.js";import"../__chunks__/chunk-VH5B3W6C.js";import"../__chunks__/chunk-VW2UBFJI.js";import"../__chunks__/chunk-GSU5KKHS.js";import"../__chunks__/chunk-3HTMDKJD.js";import"../__chunks__/chunk-UCBDWIIG.js";import"../__chunks__/chunk-OQUN3WEF.js";import"../__chunks__/chunk-R7VXMYQB.js";import"../__chunks__/chunk-SQJYWVIF.js";import"../__chunks__/chunk-S7RTYHZD.js";import"../__chunks__/chunk-L5ZELHXF.js";import"../__chunks__/chunk-7DXHLU4U.js";import"../__chunks__/chunk-ZPEMDWP2.js";import"../__chunks__/chunk-NLNFARHY.js";import"../__chunks__/chunk-54LSPY4R.js";import"../__chunks__/chunk-VPGECZPA.js";import"../__chunks__/chunk-VIHCLOWS.js";import"../__chunks__/chunk-XBVJ4WIE.js";import"../__chunks__/chunk-TDPTBO37.js";import"../__chunks__/chunk-ODZH7JKM.js";import"../__chunks__/chunk-ROTSESVR.js";import"../__chunks__/chunk-AYSTFUXE.js";import"../__chunks__/chunk-2MFNTUTR.js";import"../__chunks__/chunk-QCGS2BTF.js";import"../__chunks__/chunk-4KVP7H45.js";import"../__chunks__/chunk-GQOGGZFE.js";import"../__chunks__/chunk-IO35BN4Z.js";import"../__chunks__/chunk-7QNTOSCY.js";import"../__chunks__/chunk-PSTOL4V4.js";import"../__chunks__/chunk-U2ADLPS4.js";import"../__chunks__/chunk-Y2ILDUPM.js";import"../__chunks__/chunk-T57Y5JTI.js";import"../__chunks__/chunk-2EKZV34C.js";import"../__chunks__/chunk-IQXX5IJU.js";import"../__chunks__/chunk-5MPILH7X.js";import"../__chunks__/chunk-PBHGYXT3.js";import"../__chunks__/chunk-PJJVE6RO.js";import"../__chunks__/chunk-S2ZXQSDD.js";import"../__chunks__/chunk-YW6SNF3O.js";import"../__chunks__/chunk-MXCEN3H5.js";import"../__chunks__/chunk-3IQCEVEZ.js";import"../__chunks__/chunk-T5T7MQL2.js";import"../__chunks__/chunk-FFVV3SCF.js";import"../__chunks__/chunk-HRZGQJTT.js";import"../__chunks__/chunk-7YSGRW46.js";import"../__chunks__/chunk-H55BW62B.js";import"../__chunks__/chunk-3DQBAFMW.js";import"../__chunks__/chunk-TI7OGYFP.js";import"../__chunks__/chunk-YJFNSJWQ.js";import"../__chunks__/chunk-UUYNGUKK.js";import"../__chunks__/chunk-FHEWQJBV.js";import"../__chunks__/chunk-HZSM6ODA.js";import"../__chunks__/chunk-OLYIRMPJ.js";import"../__chunks__/chunk-S3JG5QFQ.js";import"../__chunks__/chunk-NKAAUHLP.js";import"../__chunks__/chunk-3SGZP5CP.js";import"../__chunks__/chunk-TO4PMUFS.js";import"../__chunks__/chunk-MVHVTAMV.js";import"../__chunks__/chunk-6IPUCVLQ.js";import"../__chunks__/chunk-DWS36N3A.js";import"../__chunks__/chunk-SD47PTNB.js";import"../__chunks__/chunk-ZJM2HWJ5.js";import"../__chunks__/chunk-XJFSNDLH.js";import"../__chunks__/chunk-H4NO4HCY.js";import"../__chunks__/chunk-JRVF5FZQ.js";import"../__chunks__/chunk-U62W3J3X.js";import"../__chunks__/chunk-LYPBOB2X.js";import"../__chunks__/chunk-MVL2PMWS.js";import"../__chunks__/chunk-VGTBAXEI.js";import"../__chunks__/chunk-JCAUBGCB.js";import"../__chunks__/chunk-LXOZWITV.js";import"../__chunks__/chunk-VF7AB23D.js";import"../__chunks__/chunk-L3ERSIIK.js";import"../__chunks__/chunk-4UGEM7KX.js";import"../__chunks__/chunk-NKJDO5GI.js";import"../__chunks__/chunk-EMI5INPM.js";import"../__chunks__/chunk-X4OSS4GU.js";import"../__chunks__/chunk-DJBYEDIK.js";import"../__chunks__/chunk-MZDTO45T.js";import"../__chunks__/chunk-BJMFEZU3.js";import"../__chunks__/chunk-YYGVJULM.js";import"../__chunks__/chunk-BFNQA3P2.js";import"../__chunks__/chunk-LGBANZIL.js";import"../__chunks__/chunk-C7256GIJ.js";import"../__chunks__/chunk-QSRBOW33.js";import"../__chunks__/chunk-BOAUVGTN.js";import"../__chunks__/chunk-PXLKYXON.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-ATEFCARH.js";import"../__chunks__/chunk-JFXVZGSY.js";import"../__chunks__/chunk-TXAITGIS.js";import"../__chunks__/chunk-KOH3SXG4.js";import"../__chunks__/chunk-4ASJZWSW.js";import"../__chunks__/chunk-OM57M5QN.js";import"../__chunks__/chunk-KG4FUG77.js";import"../__chunks__/chunk-QYZILPYE.js";import"../__chunks__/chunk-XAQNBFSL.js";import"../__chunks__/chunk-5HMS5KVK.js";import"../__chunks__/chunk-53GKFOIV.js";import"../__chunks__/chunk-TSIOFCOA.js";import"../__chunks__/chunk-YAR2KJ42.js";import"../__chunks__/chunk-SLIVTINA.js";import"../__chunks__/chunk-UG2C5XXR.js";import"../__chunks__/chunk-RLEGTJWF.js";import"../__chunks__/chunk-JHU5IUB7.js";import"../__chunks__/chunk-YTYNUTPN.js";import"../__chunks__/chunk-OMT4TEDL.js";import"../__chunks__/chunk-FZMRVALH.js";import"../__chunks__/chunk-YOL72E3K.js";import"../__chunks__/chunk-37ZHJ2BK.js";import"../__chunks__/chunk-EA6JYINF.js";import"../__chunks__/chunk-ELWERAIL.js";import"../__chunks__/chunk-F7XKTZUU.js";import"../__chunks__/chunk-QUO3WQQP.js";import"../__chunks__/chunk-WGNJV6FV.js";import"../__chunks__/chunk-KZR7TQ7H.js";import"../__chunks__/chunk-XOZ662VA.js";import"../__chunks__/chunk-LO5NNAIV.js";import"../__chunks__/chunk-NAN2H6P3.js";import"../__chunks__/chunk-KTZ6NJYR.js";import"../__chunks__/chunk-RDB2436S.js";import"../__chunks__/chunk-VYPB4XKB.js";import"../__chunks__/chunk-7MWHZFZC.js";import"../__chunks__/chunk-VU5KZZ4F.js";import"../__chunks__/chunk-3LSGWB2D.js";import"../__chunks__/chunk-HH5S5FOE.js";import"../__chunks__/chunk-VDBMCVHT.js";import"../__chunks__/chunk-22UA5SNR.js";import"../__chunks__/chunk-NTW7VNS4.js";import"../__chunks__/chunk-GZAWM3MB.js";import"../__chunks__/chunk-JAHQWF5V.js";import"../__chunks__/chunk-CLZCWECI.js";import"../__chunks__/chunk-TXPZDSWB.js";import"../__chunks__/chunk-U6FPCKTD.js";import"../__chunks__/chunk-H5XM6MLO.js";import"../__chunks__/chunk-HN3VGROH.js";import"../__chunks__/chunk-KA4LEM3K.js";import"../__chunks__/chunk-SS4V3OT5.js";import"../__chunks__/chunk-OM2VSN3H.js";import"../__chunks__/chunk-S2TYOHJC.js";import"../__chunks__/chunk-IIEA2LVW.js";import"../__chunks__/chunk-NJWMFRBP.js";import"../__chunks__/chunk-EGS2BNV2.js";import"../__chunks__/chunk-JQGZ4NPN.js";import"../__chunks__/chunk-X4RET644.js";import"../__chunks__/chunk-QYC2Z4FV.js";import"../__chunks__/chunk-4IMFSHJX.js";import"../__chunks__/chunk-FBHNJJZH.js";import"../__chunks__/chunk-OR4IOV6T.js";import"../__chunks__/chunk-KEQTNP4F.js";import"../__chunks__/chunk-YTGZMJXZ.js";import"../__chunks__/chunk-5DFOBP4C.js";import"../__chunks__/chunk-4JP4CKHO.js";import"../__chunks__/chunk-CQVQUVCV.js";import"../__chunks__/chunk-A46DJQ6R.js";import"../__chunks__/chunk-3U7QBETU.js";import"../__chunks__/chunk-DBD6N2CW.js";import"../__chunks__/chunk-K7EQVIHG.js";import"../__chunks__/chunk-6IYK4PYK.js";import"../__chunks__/chunk-OWG32HIC.js";import"../__chunks__/chunk-ILZCPR3Z.js";import"../__chunks__/chunk-C77LE3WZ.js";import"../__chunks__/chunk-U57XNZBX.js";import"../__chunks__/chunk-63FV6OD4.js";import"../__chunks__/chunk-JGR7YHBL.js";import"../__chunks__/chunk-MBQJF3MO.js";import"../__chunks__/chunk-RHJ3HG4I.js";import"../__chunks__/chunk-R4VSFHLN.js";import"../__chunks__/chunk-FK6GRHXD.js";import"../__chunks__/chunk-ICVZO2K2.js";import"../__chunks__/chunk-DMW2AYNQ.js";import"../__chunks__/chunk-4MZ7WK7D.js";import"../__chunks__/chunk-OZWSTVZ7.js";import"../__chunks__/chunk-JS3K5CWO.js";import"../__chunks__/chunk-LPQY7BQ4.js";import"../__chunks__/chunk-VDGSDTYB.js";import"../__chunks__/chunk-NUICQGYP.js";import"../__chunks__/chunk-3VNPP5WZ.js";import"../__chunks__/chunk-LWYP45DI.js";import"../__chunks__/chunk-QP6LGN2T.js";import"../__chunks__/chunk-OFXDXKXF.js";import"../__chunks__/chunk-XNFCZFZP.js";import"../__chunks__/chunk-V2JQJYU7.js";import"../__chunks__/chunk-B2J4SA2C.js";import"../__chunks__/chunk-VZBHRDOX.js";import"../__chunks__/chunk-2C4V4IXB.js";import"../__chunks__/chunk-CJLDKFVG.js";import"../__chunks__/chunk-LJ7BGBHG.js";import"../__chunks__/chunk-2WP7OVEE.js";import"../__chunks__/chunk-U3TQIHS4.js";import"../__chunks__/chunk-LVXEGFDX.js";import"../__chunks__/chunk-SGQ54NQK.js";import"../__chunks__/chunk-JCJ47OMS.js";import"../__chunks__/chunk-Y4RCHOTY.js";import"../__chunks__/chunk-N3R7LCX5.js";import"../__chunks__/chunk-JRB2SSEU.js";import"../__chunks__/chunk-6ALBKZZO.js";import"../__chunks__/chunk-RXV2CATH.js";import"../__chunks__/chunk-6A3UTLF2.js";import"../__chunks__/chunk-26GS6QMF.js";import"../__chunks__/chunk-R7XFYQRR.js";import"../__chunks__/chunk-UY6STZS7.js";import"../__chunks__/chunk-II4YGYVN.js";import"../__chunks__/chunk-NFWRULG5.js";import"../__chunks__/chunk-CALTQQB2.js";import"../__chunks__/chunk-WOK66U3L.js";import"../__chunks__/chunk-MWUPZQEA.js";import"../__chunks__/chunk-WODTNYFW.js";import"../__chunks__/chunk-47XDMA2I.js";import"../__chunks__/chunk-TIRPJY6G.js";import"../__chunks__/chunk-6WHJ3OVF.js";import"../__chunks__/chunk-OGKASO74.js";import"../__chunks__/chunk-HB2AQDPQ.js";import"../__chunks__/chunk-GEIY6QKK.js";import"../__chunks__/chunk-LOEOBGHO.js";import"../__chunks__/chunk-GL24S5GY.js";import"../__chunks__/chunk-SFQFF2AF.js";import"../__chunks__/chunk-BZYEY4V6.js";import"../__chunks__/chunk-BENZDWG3.js";import"../__chunks__/chunk-M6A74AE4.js";import"../__chunks__/chunk-NLU2B6MT.js";import"../__chunks__/chunk-HUMOP4SH.js";import"../__chunks__/chunk-OF3VHHUR.js";import"../__chunks__/chunk-JW7ZCUB4.js";import"../__chunks__/chunk-XK4XOW72.js";import"../__chunks__/chunk-KLFPAZSS.js";import"../__chunks__/chunk-EQSNZZK2.js";import"../__chunks__/chunk-PYQY6CVO.js";import"../__chunks__/chunk-UX4T4TMQ.js";import"../__chunks__/chunk-X42PRFW5.js";import"../__chunks__/chunk-G7UZISJS.js";import"../__chunks__/chunk-S5N3R4MS.js";import"../__chunks__/chunk-6AAZVCTM.js";import"../__chunks__/chunk-F52JH274.js";import"../__chunks__/chunk-PJKUI3Y6.js";import"../__chunks__/chunk-YV4Y3N6A.js";import"../__chunks__/chunk-IMORLJ4D.js";import"../__chunks__/chunk-KWQPHBRJ.js";import"../__chunks__/chunk-NQOAOMEL.js";import"../__chunks__/chunk-7WXEH6OF.js";import"../__chunks__/chunk-AGEOX5JH.js";import"../__chunks__/chunk-YRZKLN43.js";import"../__chunks__/chunk-6MPGZ74L.js";import"../__chunks__/chunk-KLPLQMYE.js";import"../__chunks__/chunk-ZRD6IVNQ.js";import"../__chunks__/chunk-4M54TFO5.js";import"../__chunks__/chunk-5MYSYVJW.js";import"../__chunks__/chunk-NLDKTPU3.js";import"../__chunks__/chunk-75625ISR.js";import"../__chunks__/chunk-5IMNE4MQ.js";import"../__chunks__/chunk-DIKVWGTG.js";import"../__chunks__/chunk-36NZZB3P.js";import"../__chunks__/chunk-V3YGOOML.js";import"../__chunks__/chunk-JFW7QJGM.js";import"../__chunks__/chunk-N3QTYKLF.js";import"../__chunks__/chunk-HGEGFQPE.js";import"../__chunks__/chunk-3S7LOHJV.js";import"../__chunks__/chunk-7GGJHWEK.js";import"../__chunks__/chunk-BQBE7OZR.js";import"../__chunks__/chunk-LVCWBXY5.js";import"../__chunks__/chunk-5ZPIIZLN.js";import"../__chunks__/chunk-WUI72I54.js";import"../__chunks__/chunk-VSQTFQMH.js";import"../__chunks__/chunk-4RLCYQ74.js";import"../__chunks__/chunk-LXRRORKB.js";import"../__chunks__/chunk-JRQHEQBW.js";import"../__chunks__/chunk-M5P3J4PH.js";import"../__chunks__/chunk-OWBHRN3S.js";import"../__chunks__/chunk-CCMLFI4B.js";import"../__chunks__/chunk-BQNI2XMA.js";import"../__chunks__/chunk-7TW5V77R.js";import"../__chunks__/chunk-2WQS6SUB.js";import"../__chunks__/chunk-H6BZGL2Y.js";import"../__chunks__/chunk-MR3V64MT.js";import"../__chunks__/chunk-5LNCQB7U.js";import"../__chunks__/chunk-ZHMC3BOL.js";import"../__chunks__/chunk-3HHAVSUJ.js";import"../__chunks__/chunk-JC264KXM.js";import"../__chunks__/chunk-UFOWE24Z.js";import"../__chunks__/chunk-RTUYXLM2.js";import"../__chunks__/chunk-3XTQ4ABX.js";import"../__chunks__/chunk-SNQ7GR7D.js";import"../__chunks__/chunk-CCJG3WLD.js";import"../__chunks__/chunk-2PCYLQVD.js";import"../__chunks__/chunk-TN3IL6YQ.js";import"../__chunks__/chunk-RNBBOBRQ.js";import"../__chunks__/chunk-EBV5V6SU.js";import"../__chunks__/chunk-ZYJTJW6F.js";import"../__chunks__/chunk-FDI635JG.js";import"../__chunks__/chunk-N7MHQ6JT.js";import"../__chunks__/chunk-SAQ2TZS4.js";import"../__chunks__/chunk-5DJROO27.js";import"../__chunks__/chunk-3DHA63I3.js";import"../__chunks__/chunk-PSOTUYYR.js";import"../__chunks__/chunk-FNNO6X33.js";import"../__chunks__/chunk-2QIFGJLP.js";import"../__chunks__/chunk-RALSJ7UN.js";import"../__chunks__/chunk-ARZYHB3G.js";import"../__chunks__/chunk-UPMSDSQP.js";import"../__chunks__/chunk-LN7HFODU.js";import"../__chunks__/chunk-6WZ7DVP7.js";import"../__chunks__/chunk-6LYBJWQO.js";import"../__chunks__/chunk-CHYGQARZ.js";import"../__chunks__/chunk-P2VXRWXU.js";import"../__chunks__/chunk-BPYUN5PX.js";import"../__chunks__/chunk-Z6QBE5W7.js";import"../__chunks__/chunk-MZKFMF7G.js";import"../__chunks__/chunk-YXJVLN63.js";import"../__chunks__/chunk-J42ZO72F.js";import"../__chunks__/chunk-6ZGFYJ6T.js";import"../__chunks__/chunk-HIMYYDUZ.js";import"../__chunks__/chunk-DYORUPQR.js";import"../__chunks__/chunk-COWA3VKU.js";import"../__chunks__/chunk-SC7SRUXL.js";import"../__chunks__/chunk-LOZF3QI7.js";import"../__chunks__/chunk-CCN5MMPI.js";import"../__chunks__/chunk-FC3UYSGH.js";import"../__chunks__/chunk-WISLI42M.js";import"../__chunks__/chunk-W7SO52DM.js";import"../__chunks__/chunk-PXHBOM4A.js";import"../__chunks__/chunk-6XR6BLIB.js";import"../__chunks__/chunk-5KGDRZSV.js";import"../__chunks__/chunk-HGOHQNWK.js";import"../__chunks__/chunk-WTIKHG7D.js";import"../__chunks__/chunk-KV4PBIVD.js";import"../__chunks__/chunk-ZX2XOMRP.js";import"../__chunks__/chunk-3ZGAB2KK.js";import"../__chunks__/chunk-GGMEVY45.js";import"../__chunks__/chunk-E3VZKZ3M.js";import"../__chunks__/chunk-5YFVFPXX.js";import"../__chunks__/chunk-X2JZA2ND.js";import"../__chunks__/chunk-BZUMXHQT.js";import"../__chunks__/chunk-WQFSDAGL.js";import"../__chunks__/chunk-RVXC64US.js";import"../__chunks__/chunk-7YHU2LQD.js";import"../__chunks__/chunk-A2R2BMVL.js";import"../__chunks__/chunk-FDSDVDKW.js";import"../__chunks__/chunk-27DX5WIQ.js";import"../__chunks__/chunk-UIM5EFXT.js";import"../__chunks__/chunk-G3MFJX2K.js";import"../__chunks__/chunk-326XWAT2.js";import{a as r,b as e,c as f}from"../__chunks__/chunk-LISHYZJY.js";import"../__chunks__/chunk-FZ3QCOUU.js";import"../__chunks__/chunk-ERG7H4LX.js";import"../__chunks__/chunk-LIRR6LCS.js";import"../__chunks__/chunk-7CT2Q6BT.js";import"../__chunks__/chunk-XDZ2AX2X.js";import"../__chunks__/chunk-4SD7Y2KM.js";import"../__chunks__/chunk-W6HPOJ7Z.js";import"../__chunks__/chunk-6LITAK4Z.js";import"../__chunks__/chunk-GVCPEY3I.js";import"../__chunks__/chunk-2C7GRV4K.js";import"../__chunks__/chunk-XTDLK5SN.js";import"../__chunks__/chunk-TKJ42ND4.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,t as mockResponse,c as mockWindowHistory,b as mockWindowLocation,a as renderWithProvider,p as rest,x as server,r as testAddress,e as testNetwork,f as testReceiver};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|