@multiversx/sdk-dapp 2.10.11 → 2.10.12
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/DappModal/hooks/index.js +1 -1
- package/UI/DappModal/hooks/useDappModal.js +1 -1
- package/UI/DappModal/index.js +1 -1
- package/UI/ModalContainer/ModalContainer.js +1 -1
- package/UI/ModalContainer/index.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/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithOperaModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +1 -1
- package/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
- package/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
- package/UI/SignTransactionsModals/components/TransactionStatusToast.js +1 -1
- package/UI/SignTransactionsModals/components/index.js +1 -1
- package/UI/SignTransactionsModals/index.js +1 -1
- package/UI/TransactionInfo/TransactionInfo.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/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/index.js +1 -1
- package/UI/TransactionInfo/index.js +1 -1
- package/UI/TransactionsTable/TransactionsTable.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/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/index.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/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/index.js +1 -1
- package/UI/ledger/LedgerLoginButton/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressTable.js +1 -1
- package/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +1 -1
- package/UI/ledger/LedgerLoginContainer/index.js +1 -1
- package/UI/ledger/index.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/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
- package/UI/walletConnect/index.js +1 -1
- package/UI/webWallet/WebWalletLoginButton/index.js +1 -1
- package/__chunks__/{chunk-FFCO2QCC.js → chunk-45ARMIIV.js} +2 -2
- package/__chunks__/{chunk-NAEZYYME.js → chunk-4AY436A3.js} +2 -2
- package/__chunks__/chunk-64WNNRH3.js +2 -0
- package/__chunks__/{chunk-2DEMXGE3.js → chunk-AGGHZD2X.js} +2 -2
- package/__chunks__/{chunk-ZD2FOYXH.js → chunk-BUAPQSLE.js} +2 -2
- package/__chunks__/{chunk-SXK2WRU5.js → chunk-D6K2SNBC.js} +2 -2
- package/__chunks__/{chunk-GO5RYX6I.js → chunk-HO5YNQLL.js} +2 -2
- package/__chunks__/{chunk-NV453TM2.js → chunk-HOF5K2JI.js} +2 -2
- package/__chunks__/{chunk-6U5ZKZIN.js → chunk-IHUJVHF6.js} +2 -2
- package/__chunks__/{chunk-YGN4D6EE.js → chunk-IVVW25DH.js} +2 -2
- package/__chunks__/{chunk-TM4XVRT6.js → chunk-M2A6EX5R.js} +2 -2
- package/__chunks__/{chunk-E4EQIILV.js → chunk-MGZU5WBA.js} +2 -2
- package/__chunks__/chunk-WISK7MIJ.js +2 -0
- package/__chunks__/{chunk-XZCNMRIW.js → chunk-YSWO56CP.js} +2 -2
- package/__chunks__/{chunk-A3ANJRRQ.js → chunk-YUXJXHBM.js} +2 -2
- package/__chunks__/chunk-ZRLJX7WH.js +2 -0
- package/__commonjs/UI/DappModal/hooks/index.js +5 -5
- package/__commonjs/UI/DappModal/hooks/useDappModal.js +5 -5
- package/__commonjs/UI/DappModal/index.js +9 -9
- package/__commonjs/UI/ModalContainer/ModalContainer.js +7 -7
- package/__commonjs/UI/ModalContainer/index.js +7 -7
- package/__commonjs/UI/NotificationModal/index.js +8 -8
- package/__commonjs/UI/SignTransactionsModals/SignTransactionsModals.js +26 -26
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +9 -9
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/index.js +11 -11
- package/__commonjs/UI/SignTransactionsModals/SignWithExtensionModal/index.js +9 -9
- package/__commonjs/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/index.js +11 -11
- package/__commonjs/UI/SignTransactionsModals/SignWithOperaModal/index.js +9 -9
- package/__commonjs/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +9 -9
- package/__commonjs/UI/SignTransactionsModals/components/ConfirmationScreen.js +18 -18
- package/__commonjs/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +19 -19
- package/__commonjs/UI/SignTransactionsModals/components/TransactionStatusToast.js +14 -14
- package/__commonjs/UI/SignTransactionsModals/components/index.js +18 -18
- package/__commonjs/UI/SignTransactionsModals/index.js +26 -26
- package/__commonjs/UI/TransactionInfo/TransactionInfo.js +40 -40
- package/__commonjs/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +6 -6
- package/__commonjs/UI/TransactionInfo/components/NonceMessage/index.js +6 -6
- package/__commonjs/UI/TransactionInfo/components/index.js +41 -41
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +7 -7
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +7 -7
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/index.js +37 -37
- package/__commonjs/UI/TransactionInfo/index.js +41 -41
- package/__commonjs/UI/TransactionsTable/TransactionsTable.js +18 -18
- package/__commonjs/UI/TransactionsTable/index.js +18 -18
- package/__commonjs/UI/TransactionsToastList/TransactionsToastList.js +18 -18
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/CustomToast.js +13 -13
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +13 -13
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +13 -13
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +11 -11
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +11 -11
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +13 -13
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +13 -13
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/index.js +13 -13
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/index.js +13 -13
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +13 -13
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +6 -6
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/index.js +13 -13
- package/__commonjs/UI/TransactionsToastList/components/TransactionToastGuard.js +13 -13
- package/__commonjs/UI/TransactionsToastList/components/index.js +18 -18
- package/__commonjs/UI/TransactionsToastList/index.js +18 -18
- package/__commonjs/UI/index.js +68 -68
- package/__commonjs/UI/ledger/LedgerLoginButton/index.js +20 -20
- package/__commonjs/UI/ledger/LedgerLoginContainer/AddressTable.js +8 -8
- package/__commonjs/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +6 -6
- package/__commonjs/UI/ledger/LedgerLoginContainer/index.js +20 -20
- package/__commonjs/UI/ledger/index.js +20 -20
- package/__commonjs/UI/operaWallet/OperaWalletLoginButton/index.js +7 -7
- package/__commonjs/UI/pages/UnlockPage/index.js +23 -23
- package/__commonjs/UI/pages/index.js +23 -23
- package/__commonjs/UI/walletConnect/WalletConnectLoginButton/index.js +13 -13
- package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/index.js +10 -10
- package/__commonjs/UI/walletConnect/index.js +13 -13
- package/__commonjs/UI/webWallet/WebWalletLoginButton/index.js +7 -7
- package/__commonjs/__mocks__/index.js +5 -5
- package/__commonjs/__mocks__/utils/index.js +11 -11
- package/__commonjs/__mocks__/utils/renderWithProvider.js +11 -11
- package/__commonjs/components/LogoutListener/LogoutListener.js +5 -5
- package/__commonjs/components/LogoutListener/helpers/index.js +5 -5
- package/__commonjs/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +5 -5
- package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogout.js +5 -5
- package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +5 -5
- package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +5 -5
- package/__commonjs/components/LogoutListener/index.js +5 -5
- package/__commonjs/components/ProviderInitializer.js +11 -11
- package/__commonjs/components/TransactionStatusToast/FailedTransactionStatusToast.js +14 -14
- package/__commonjs/components/TransactionsTracker/TransactionTracker.js +5 -5
- package/__commonjs/components/TransactionsTracker/index.js +5 -5
- package/__commonjs/components/TransactionsTracker/useTransactionsTracker.js +5 -5
- package/__commonjs/hooks/index.js +7 -7
- package/__commonjs/hooks/login/index.js +5 -5
- package/__commonjs/hooks/login/useLedgerLogin.js +5 -5
- package/__commonjs/hooks/login/useWebWalletLogin.js +5 -5
- package/__commonjs/hooks/signMessage/index.js +1 -1
- package/__commonjs/hooks/signMessage/useSignMessage.js +1 -1
- package/__commonjs/hooks/transactions/index.js +5 -5
- package/__commonjs/hooks/transactions/useParseSignedTransactions.js +1 -1
- package/__commonjs/hooks/transactions/useSignTransactions.js +1 -1
- package/__commonjs/hooks/transactions/useSignTransactionsCommonData.js +1 -1
- package/__commonjs/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
- package/__commonjs/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
- package/__commonjs/utils/index.js +3 -3
- package/__commonjs/utils/parseNavigationParams.js +1 -1
- package/__commonjs/wrappers/DappProvider/CustomComponents.js +5 -5
- package/__commonjs/wrappers/DappProvider/index.js +11 -11
- package/__commonjs/wrappers/index.js +5 -5
- package/__mocks__/index.js +1 -1
- package/__mocks__/utils/index.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/ProviderInitializer.js +1 -1
- package/components/TransactionStatusToast/FailedTransactionStatusToast.js +1 -1
- package/components/TransactionsTracker/TransactionTracker.js +1 -1
- package/components/TransactionsTracker/index.js +1 -1
- package/components/TransactionsTracker/useTransactionsTracker.js +1 -1
- package/hooks/index.js +1 -1
- package/hooks/login/index.js +1 -1
- package/hooks/login/useLedgerLogin.js +1 -1
- package/hooks/login/useWebWalletLogin.js +1 -1
- package/hooks/signMessage/index.js +1 -1
- package/hooks/signMessage/useSignMessage.js +1 -1
- package/hooks/transactions/index.js +1 -1
- package/hooks/transactions/useParseSignedTransactions.js +1 -1
- package/hooks/transactions/useSignTransactions.js +1 -1
- package/hooks/transactions/useSignTransactionsCommonData.js +1 -1
- package/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
- package/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
- package/package.json +1 -1
- package/utils/index.js +1 -1
- package/utils/parseNavigationParams.d.ts +12 -1
- package/utils/parseNavigationParams.js +1 -1
- package/utils/tests/parseNavigationParams.test.d.ts +2 -0
- package/wrappers/DappProvider/CustomComponents.js +1 -1
- package/wrappers/DappProvider/index.js +1 -1
- package/wrappers/index.js +1 -1
- package/__chunks__/chunk-BKQNIGD5.js +0 -2
- package/__chunks__/chunk-D35V4POU.js +0 -2
- package/__chunks__/chunk-W47X2A4Z.js +0 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";var Uv=Object.create;var Er=Object.defineProperty,Bv=Object.defineProperties,Wv=Object.getOwnPropertyDescriptor,Gv=Object.getOwnPropertyDescriptors,$v=Object.getOwnPropertyNames,Wo=Object.getOwnPropertySymbols,Hv=Object.getPrototypeOf,ta=Object.prototype.hasOwnProperty,Wl=Object.prototype.propertyIsEnumerable;var Bl=(n,o,i)=>o in n?Er(n,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[o]=i,O=(n,o)=>{for(var i in o||(o={}))ta.call(o,i)&&Bl(n,i,o[i]);if(Wo)for(var i of Wo(o))Wl.call(o,i)&&Bl(n,i,o[i]);return n},j=(n,o)=>Bv(n,Gv(o));var Go=(n,o)=>{var i={};for(var u in n)ta.call(n,u)&&o.indexOf(u)<0&&(i[u]=n[u]);if(n!=null&&Wo)for(var u of Wo(n))o.indexOf(u)<0&&Wl.call(n,u)&&(i[u]=n[u]);return i};var W=(n,o)=>()=>(n&&(o=n(n=0)),o);var kr=(n,o)=>()=>(o||n((o={exports:{}}).exports,o),o.exports),yn=(n,o)=>{for(var i in o)Er(n,i,{get:o[i],enumerable:!0})},Gl=(n,o,i,u)=>{if(o&&typeof o=="object"||typeof o=="function")for(let m of $v(o))!ta.call(n,m)&&m!==i&&Er(n,m,{get:()=>o[m],enumerable:!(u=Wv(o,m))||u.enumerable});return n};var K=(n,o,i)=>(i=n!=null?Uv(Hv(n)):{},Gl(o||!n||!n.__esModule?Er(i,"default",{value:n,enumerable:!0}):i,n)),Cr=n=>Gl(Er({},"__esModule",{value:!0}),n);var V=(n,o,i)=>new Promise((u,m)=>{var v=E=>{try{k(i.next(E))}catch(N){m(N)}},S=E=>{try{k(i.throw(E))}catch(N){m(N)}},k=E=>E.done?u(E.value):Promise.resolve(E.value).then(v,S);k((i=i.apply(n,o)).next())});var Vl=kr($o=>{"use strict";s();$o.byteLength=qv;$o.toByteArray=Kv;$o.fromByteArray=Xv;var vt=[],it=[],Vv=typeof Uint8Array!="undefined"?Uint8Array:Array,na="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(xn=0,$l=na.length;xn<$l;++xn)vt[xn]=na[xn],it[na.charCodeAt(xn)]=xn;var xn,$l;it["-".charCodeAt(0)]=62;it["_".charCodeAt(0)]=63;function Hl(n){var o=n.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=n.indexOf("=");i===-1&&(i=o);var u=i===o?0:4-i%4;return[i,u]}function qv(n){var o=Hl(n),i=o[0],u=o[1];return(i+u)*3/4-u}function zv(n,o,i){return(o+i)*3/4-i}function Kv(n){var o,i=Hl(n),u=i[0],m=i[1],v=new Vv(zv(n,u,m)),S=0,k=m>0?u-4:u,E;for(E=0;E<k;E+=4)o=it[n.charCodeAt(E)]<<18|it[n.charCodeAt(E+1)]<<12|it[n.charCodeAt(E+2)]<<6|it[n.charCodeAt(E+3)],v[S++]=o>>16&255,v[S++]=o>>8&255,v[S++]=o&255;return m===2&&(o=it[n.charCodeAt(E)]<<2|it[n.charCodeAt(E+1)]>>4,v[S++]=o&255),m===1&&(o=it[n.charCodeAt(E)]<<10|it[n.charCodeAt(E+1)]<<4|it[n.charCodeAt(E+2)]>>2,v[S++]=o>>8&255,v[S++]=o&255),v}function Yv(n){return vt[n>>18&63]+vt[n>>12&63]+vt[n>>6&63]+vt[n&63]}function Zv(n,o,i){for(var u,m=[],v=o;v<i;v+=3)u=(n[v]<<16&16711680)+(n[v+1]<<8&65280)+(n[v+2]&255),m.push(Yv(u));return m.join("")}function Xv(n){for(var o,i=n.length,u=i%3,m=[],v=16383,S=0,k=i-u;S<k;S+=v)m.push(Zv(n,S,S+v>k?k:S+v));return u===1?(o=n[i-1],m.push(vt[o>>2]+vt[o<<4&63]+"==")):u===2&&(o=(n[i-2]<<8)+n[i-1],m.push(vt[o>>10]+vt[o>>4&63]+vt[o<<2&63]+"=")),m.join("")}});var ql=kr(ra=>{s();ra.read=function(n,o,i,u,m){var v,S,k=m*8-u-1,E=(1<<k)-1,N=E>>1,q=-7,F=i?m-1:0,pe=i?-1:1,ye=n[o+F];for(F+=pe,v=ye&(1<<-q)-1,ye>>=-q,q+=k;q>0;v=v*256+n[o+F],F+=pe,q-=8);for(S=v&(1<<-q)-1,v>>=-q,q+=u;q>0;S=S*256+n[o+F],F+=pe,q-=8);if(v===0)v=1-N;else{if(v===E)return S?NaN:(ye?-1:1)*(1/0);S=S+Math.pow(2,u),v=v-N}return(ye?-1:1)*S*Math.pow(2,v-u)};ra.write=function(n,o,i,u,m,v){var S,k,E,N=v*8-m-1,q=(1<<N)-1,F=q>>1,pe=m===23?Math.pow(2,-24)-Math.pow(2,-77):0,ye=u?0:v-1,ge=u?1:-1,be=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(k=isNaN(o)?1:0,S=q):(S=Math.floor(Math.log(o)/Math.LN2),o*(E=Math.pow(2,-S))<1&&(S--,E*=2),S+F>=1?o+=pe/E:o+=pe*Math.pow(2,1-F),o*E>=2&&(S++,E/=2),S+F>=q?(k=0,S=q):S+F>=1?(k=(o*E-1)*Math.pow(2,m),S=S+F):(k=o*Math.pow(2,F-1)*Math.pow(2,m),S=0));m>=8;n[i+ye]=k&255,ye+=ge,k/=256,m-=8);for(S=S<<m|k,N+=m;N>0;n[i+ye]=S&255,ye+=ge,S/=256,N-=8);n[i+ye-ge]|=be*128}});var op=kr(zn=>{"use strict";s();var oa=Vl(),qn=ql(),zl=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;zn.Buffer=I;zn.SlowBuffer=n0;zn.INSPECT_MAX_BYTES=50;var Ho=2147483647;zn.kMaxLength=Ho;I.TYPED_ARRAY_SUPPORT=Jv();!I.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 Jv(){try{var n=new Uint8Array(1),o={foo:function(){return 42}};return Object.setPrototypeOf(o,Uint8Array.prototype),Object.setPrototypeOf(n,o),n.foo()===42}catch(i){return!1}}Object.defineProperty(I.prototype,"parent",{enumerable:!0,get:function(){if(!!I.isBuffer(this))return this.buffer}});Object.defineProperty(I.prototype,"offset",{enumerable:!0,get:function(){if(!!I.isBuffer(this))return this.byteOffset}});function Bt(n){if(n>Ho)throw new RangeError('The value "'+n+'" is invalid for option "size"');var o=new Uint8Array(n);return Object.setPrototypeOf(o,I.prototype),o}function I(n,o,i){if(typeof n=="number"){if(typeof o=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ca(n)}return Zl(n,o,i)}I.poolSize=8192;function Zl(n,o,i){if(typeof n=="string")return jv(n,o);if(ArrayBuffer.isView(n))return e0(n);if(n==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n);if(wt(n,ArrayBuffer)||n&&wt(n.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(wt(n,SharedArrayBuffer)||n&&wt(n.buffer,SharedArrayBuffer)))return sa(n,o,i);if(typeof n=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var u=n.valueOf&&n.valueOf();if(u!=null&&u!==n)return I.from(u,o,i);var m=t0(n);if(m)return m;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof n[Symbol.toPrimitive]=="function")return I.from(n[Symbol.toPrimitive]("string"),o,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n)}I.from=function(n,o,i){return Zl(n,o,i)};Object.setPrototypeOf(I.prototype,Uint8Array.prototype);Object.setPrototypeOf(I,Uint8Array);function Xl(n){if(typeof n!="number")throw new TypeError('"size" argument must be of type number');if(n<0)throw new RangeError('The value "'+n+'" is invalid for option "size"')}function Qv(n,o,i){return Xl(n),n<=0?Bt(n):o!==void 0?typeof i=="string"?Bt(n).fill(o,i):Bt(n).fill(o):Bt(n)}I.alloc=function(n,o,i){return Qv(n,o,i)};function ca(n){return Xl(n),Bt(n<0?0:ua(n)|0)}I.allocUnsafe=function(n){return ca(n)};I.allocUnsafeSlow=function(n){return ca(n)};function jv(n,o){if((typeof o!="string"||o==="")&&(o="utf8"),!I.isEncoding(o))throw new TypeError("Unknown encoding: "+o);var i=Jl(n,o)|0,u=Bt(i),m=u.write(n,o);return m!==i&&(u=u.slice(0,m)),u}function ia(n){for(var o=n.length<0?0:ua(n.length)|0,i=Bt(o),u=0;u<o;u+=1)i[u]=n[u]&255;return i}function e0(n){if(wt(n,Uint8Array)){var o=new Uint8Array(n);return sa(o.buffer,o.byteOffset,o.byteLength)}return ia(n)}function sa(n,o,i){if(o<0||n.byteLength<o)throw new RangeError('"offset" is outside of buffer bounds');if(n.byteLength<o+(i||0))throw new RangeError('"length" is outside of buffer bounds');var u;return o===void 0&&i===void 0?u=new Uint8Array(n):i===void 0?u=new Uint8Array(n,o):u=new Uint8Array(n,o,i),Object.setPrototypeOf(u,I.prototype),u}function t0(n){if(I.isBuffer(n)){var o=ua(n.length)|0,i=Bt(o);return i.length===0||n.copy(i,0,0,o),i}if(n.length!==void 0)return typeof n.length!="number"||la(n.length)?Bt(0):ia(n);if(n.type==="Buffer"&&Array.isArray(n.data))return ia(n.data)}function ua(n){if(n>=Ho)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ho.toString(16)+" bytes");return n|0}function n0(n){return+n!=n&&(n=0),I.alloc(+n)}I.isBuffer=function(o){return o!=null&&o._isBuffer===!0&&o!==I.prototype};I.compare=function(o,i){if(wt(o,Uint8Array)&&(o=I.from(o,o.offset,o.byteLength)),wt(i,Uint8Array)&&(i=I.from(i,i.offset,i.byteLength)),!I.isBuffer(o)||!I.isBuffer(i))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(o===i)return 0;for(var u=o.length,m=i.length,v=0,S=Math.min(u,m);v<S;++v)if(o[v]!==i[v]){u=o[v],m=i[v];break}return u<m?-1:m<u?1:0};I.isEncoding=function(o){switch(String(o).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};I.concat=function(o,i){if(!Array.isArray(o))throw new TypeError('"list" argument must be an Array of Buffers');if(o.length===0)return I.alloc(0);var u;if(i===void 0)for(i=0,u=0;u<o.length;++u)i+=o[u].length;var m=I.allocUnsafe(i),v=0;for(u=0;u<o.length;++u){var S=o[u];if(wt(S,Uint8Array))v+S.length>m.length?I.from(S).copy(m,v):Uint8Array.prototype.set.call(m,S,v);else if(I.isBuffer(S))S.copy(m,v);else throw new TypeError('"list" argument must be an Array of Buffers');v+=S.length}return m};function Jl(n,o){if(I.isBuffer(n))return n.length;if(ArrayBuffer.isView(n)||wt(n,ArrayBuffer))return n.byteLength;if(typeof n!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof n);var i=n.length,u=arguments.length>2&&arguments[2]===!0;if(!u&&i===0)return 0;for(var m=!1;;)switch(o){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return aa(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i*2;case"hex":return i>>>1;case"base64":return rp(n).length;default:if(m)return u?-1:aa(n).length;o=(""+o).toLowerCase(),m=!0}}I.byteLength=Jl;function r0(n,o,i){var u=!1;if((o===void 0||o<0)&&(o=0),o>this.length||((i===void 0||i>this.length)&&(i=this.length),i<=0)||(i>>>=0,o>>>=0,i<=o))return"";for(n||(n="utf8");;)switch(n){case"hex":return d0(this,o,i);case"utf8":case"utf-8":return jl(this,o,i);case"ascii":return p0(this,o,i);case"latin1":case"binary":return f0(this,o,i);case"base64":return u0(this,o,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return g0(this,o,i);default:if(u)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),u=!0}}I.prototype._isBuffer=!0;function Sn(n,o,i){var u=n[o];n[o]=n[i],n[i]=u}I.prototype.swap16=function(){var o=this.length;if(o%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;i<o;i+=2)Sn(this,i,i+1);return this};I.prototype.swap32=function(){var o=this.length;if(o%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var i=0;i<o;i+=4)Sn(this,i,i+3),Sn(this,i+1,i+2);return this};I.prototype.swap64=function(){var o=this.length;if(o%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var i=0;i<o;i+=8)Sn(this,i,i+7),Sn(this,i+1,i+6),Sn(this,i+2,i+5),Sn(this,i+3,i+4);return this};I.prototype.toString=function(){var o=this.length;return o===0?"":arguments.length===0?jl(this,0,o):r0.apply(this,arguments)};I.prototype.toLocaleString=I.prototype.toString;I.prototype.equals=function(o){if(!I.isBuffer(o))throw new TypeError("Argument must be a Buffer");return this===o?!0:I.compare(this,o)===0};I.prototype.inspect=function(){var o="",i=zn.INSPECT_MAX_BYTES;return o=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(o+=" ... "),"<Buffer "+o+">"};zl&&(I.prototype[zl]=I.prototype.inspect);I.prototype.compare=function(o,i,u,m,v){if(wt(o,Uint8Array)&&(o=I.from(o,o.offset,o.byteLength)),!I.isBuffer(o))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof o);if(i===void 0&&(i=0),u===void 0&&(u=o?o.length:0),m===void 0&&(m=0),v===void 0&&(v=this.length),i<0||u>o.length||m<0||v>this.length)throw new RangeError("out of range index");if(m>=v&&i>=u)return 0;if(m>=v)return-1;if(i>=u)return 1;if(i>>>=0,u>>>=0,m>>>=0,v>>>=0,this===o)return 0;for(var S=v-m,k=u-i,E=Math.min(S,k),N=this.slice(m,v),q=o.slice(i,u),F=0;F<E;++F)if(N[F]!==q[F]){S=N[F],k=q[F];break}return S<k?-1:k<S?1:0};function Ql(n,o,i,u,m){if(n.length===0)return-1;if(typeof i=="string"?(u=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,la(i)&&(i=m?0:n.length-1),i<0&&(i=n.length+i),i>=n.length){if(m)return-1;i=n.length-1}else if(i<0)if(m)i=0;else return-1;if(typeof o=="string"&&(o=I.from(o,u)),I.isBuffer(o))return o.length===0?-1:Kl(n,o,i,u,m);if(typeof o=="number")return o=o&255,typeof Uint8Array.prototype.indexOf=="function"?m?Uint8Array.prototype.indexOf.call(n,o,i):Uint8Array.prototype.lastIndexOf.call(n,o,i):Kl(n,[o],i,u,m);throw new TypeError("val must be string, number or Buffer")}function Kl(n,o,i,u,m){var v=1,S=n.length,k=o.length;if(u!==void 0&&(u=String(u).toLowerCase(),u==="ucs2"||u==="ucs-2"||u==="utf16le"||u==="utf-16le")){if(n.length<2||o.length<2)return-1;v=2,S/=2,k/=2,i/=2}function E(ye,ge){return v===1?ye[ge]:ye.readUInt16BE(ge*v)}var N;if(m){var q=-1;for(N=i;N<S;N++)if(E(n,N)===E(o,q===-1?0:N-q)){if(q===-1&&(q=N),N-q+1===k)return q*v}else q!==-1&&(N-=N-q),q=-1}else for(i+k>S&&(i=S-k),N=i;N>=0;N--){for(var F=!0,pe=0;pe<k;pe++)if(E(n,N+pe)!==E(o,pe)){F=!1;break}if(F)return N}return-1}I.prototype.includes=function(o,i,u){return this.indexOf(o,i,u)!==-1};I.prototype.indexOf=function(o,i,u){return Ql(this,o,i,u,!0)};I.prototype.lastIndexOf=function(o,i,u){return Ql(this,o,i,u,!1)};function o0(n,o,i,u){i=Number(i)||0;var m=n.length-i;u?(u=Number(u),u>m&&(u=m)):u=m;var v=o.length;u>v/2&&(u=v/2);for(var S=0;S<u;++S){var k=parseInt(o.substr(S*2,2),16);if(la(k))return S;n[i+S]=k}return S}function i0(n,o,i,u){return Vo(aa(o,n.length-i),n,i,u)}function s0(n,o,i,u){return Vo(h0(o),n,i,u)}function a0(n,o,i,u){return Vo(rp(o),n,i,u)}function c0(n,o,i,u){return Vo(y0(o,n.length-i),n,i,u)}I.prototype.write=function(o,i,u,m){if(i===void 0)m="utf8",u=this.length,i=0;else if(u===void 0&&typeof i=="string")m=i,u=this.length,i=0;else if(isFinite(i))i=i>>>0,isFinite(u)?(u=u>>>0,m===void 0&&(m="utf8")):(m=u,u=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var v=this.length-i;if((u===void 0||u>v)&&(u=v),o.length>0&&(u<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");m||(m="utf8");for(var S=!1;;)switch(m){case"hex":return o0(this,o,i,u);case"utf8":case"utf-8":return i0(this,o,i,u);case"ascii":case"latin1":case"binary":return s0(this,o,i,u);case"base64":return a0(this,o,i,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c0(this,o,i,u);default:if(S)throw new TypeError("Unknown encoding: "+m);m=(""+m).toLowerCase(),S=!0}};I.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function u0(n,o,i){return o===0&&i===n.length?oa.fromByteArray(n):oa.fromByteArray(n.slice(o,i))}function jl(n,o,i){i=Math.min(n.length,i);for(var u=[],m=o;m<i;){var v=n[m],S=null,k=v>239?4:v>223?3:v>191?2:1;if(m+k<=i){var E,N,q,F;switch(k){case 1:v<128&&(S=v);break;case 2:E=n[m+1],(E&192)===128&&(F=(v&31)<<6|E&63,F>127&&(S=F));break;case 3:E=n[m+1],N=n[m+2],(E&192)===128&&(N&192)===128&&(F=(v&15)<<12|(E&63)<<6|N&63,F>2047&&(F<55296||F>57343)&&(S=F));break;case 4:E=n[m+1],N=n[m+2],q=n[m+3],(E&192)===128&&(N&192)===128&&(q&192)===128&&(F=(v&15)<<18|(E&63)<<12|(N&63)<<6|q&63,F>65535&&F<1114112&&(S=F))}}S===null?(S=65533,k=1):S>65535&&(S-=65536,u.push(S>>>10&1023|55296),S=56320|S&1023),u.push(S),m+=k}return l0(u)}var Yl=4096;function l0(n){var o=n.length;if(o<=Yl)return String.fromCharCode.apply(String,n);for(var i="",u=0;u<o;)i+=String.fromCharCode.apply(String,n.slice(u,u+=Yl));return i}function p0(n,o,i){var u="";i=Math.min(n.length,i);for(var m=o;m<i;++m)u+=String.fromCharCode(n[m]&127);return u}function f0(n,o,i){var u="";i=Math.min(n.length,i);for(var m=o;m<i;++m)u+=String.fromCharCode(n[m]);return u}function d0(n,o,i){var u=n.length;(!o||o<0)&&(o=0),(!i||i<0||i>u)&&(i=u);for(var m="",v=o;v<i;++v)m+=x0[n[v]];return m}function g0(n,o,i){for(var u=n.slice(o,i),m="",v=0;v<u.length-1;v+=2)m+=String.fromCharCode(u[v]+u[v+1]*256);return m}I.prototype.slice=function(o,i){var u=this.length;o=~~o,i=i===void 0?u:~~i,o<0?(o+=u,o<0&&(o=0)):o>u&&(o=u),i<0?(i+=u,i<0&&(i=0)):i>u&&(i=u),i<o&&(i=o);var m=this.subarray(o,i);return Object.setPrototypeOf(m,I.prototype),m};function Ae(n,o,i){if(n%1!==0||n<0)throw new RangeError("offset is not uint");if(n+o>i)throw new RangeError("Trying to access beyond buffer length")}I.prototype.readUintLE=I.prototype.readUIntLE=function(o,i,u){o=o>>>0,i=i>>>0,u||Ae(o,i,this.length);for(var m=this[o],v=1,S=0;++S<i&&(v*=256);)m+=this[o+S]*v;return m};I.prototype.readUintBE=I.prototype.readUIntBE=function(o,i,u){o=o>>>0,i=i>>>0,u||Ae(o,i,this.length);for(var m=this[o+--i],v=1;i>0&&(v*=256);)m+=this[o+--i]*v;return m};I.prototype.readUint8=I.prototype.readUInt8=function(o,i){return o=o>>>0,i||Ae(o,1,this.length),this[o]};I.prototype.readUint16LE=I.prototype.readUInt16LE=function(o,i){return o=o>>>0,i||Ae(o,2,this.length),this[o]|this[o+1]<<8};I.prototype.readUint16BE=I.prototype.readUInt16BE=function(o,i){return o=o>>>0,i||Ae(o,2,this.length),this[o]<<8|this[o+1]};I.prototype.readUint32LE=I.prototype.readUInt32LE=function(o,i){return o=o>>>0,i||Ae(o,4,this.length),(this[o]|this[o+1]<<8|this[o+2]<<16)+this[o+3]*16777216};I.prototype.readUint32BE=I.prototype.readUInt32BE=function(o,i){return o=o>>>0,i||Ae(o,4,this.length),this[o]*16777216+(this[o+1]<<16|this[o+2]<<8|this[o+3])};I.prototype.readIntLE=function(o,i,u){o=o>>>0,i=i>>>0,u||Ae(o,i,this.length);for(var m=this[o],v=1,S=0;++S<i&&(v*=256);)m+=this[o+S]*v;return v*=128,m>=v&&(m-=Math.pow(2,8*i)),m};I.prototype.readIntBE=function(o,i,u){o=o>>>0,i=i>>>0,u||Ae(o,i,this.length);for(var m=i,v=1,S=this[o+--m];m>0&&(v*=256);)S+=this[o+--m]*v;return v*=128,S>=v&&(S-=Math.pow(2,8*i)),S};I.prototype.readInt8=function(o,i){return o=o>>>0,i||Ae(o,1,this.length),this[o]&128?(255-this[o]+1)*-1:this[o]};I.prototype.readInt16LE=function(o,i){o=o>>>0,i||Ae(o,2,this.length);var u=this[o]|this[o+1]<<8;return u&32768?u|4294901760:u};I.prototype.readInt16BE=function(o,i){o=o>>>0,i||Ae(o,2,this.length);var u=this[o+1]|this[o]<<8;return u&32768?u|4294901760:u};I.prototype.readInt32LE=function(o,i){return o=o>>>0,i||Ae(o,4,this.length),this[o]|this[o+1]<<8|this[o+2]<<16|this[o+3]<<24};I.prototype.readInt32BE=function(o,i){return o=o>>>0,i||Ae(o,4,this.length),this[o]<<24|this[o+1]<<16|this[o+2]<<8|this[o+3]};I.prototype.readFloatLE=function(o,i){return o=o>>>0,i||Ae(o,4,this.length),qn.read(this,o,!0,23,4)};I.prototype.readFloatBE=function(o,i){return o=o>>>0,i||Ae(o,4,this.length),qn.read(this,o,!1,23,4)};I.prototype.readDoubleLE=function(o,i){return o=o>>>0,i||Ae(o,8,this.length),qn.read(this,o,!0,52,8)};I.prototype.readDoubleBE=function(o,i){return o=o>>>0,i||Ae(o,8,this.length),qn.read(this,o,!1,52,8)};function Ue(n,o,i,u,m,v){if(!I.isBuffer(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(o>m||o<v)throw new RangeError('"value" argument is out of bounds');if(i+u>n.length)throw new RangeError("Index out of range")}I.prototype.writeUintLE=I.prototype.writeUIntLE=function(o,i,u,m){if(o=+o,i=i>>>0,u=u>>>0,!m){var v=Math.pow(2,8*u)-1;Ue(this,o,i,u,v,0)}var S=1,k=0;for(this[i]=o&255;++k<u&&(S*=256);)this[i+k]=o/S&255;return i+u};I.prototype.writeUintBE=I.prototype.writeUIntBE=function(o,i,u,m){if(o=+o,i=i>>>0,u=u>>>0,!m){var v=Math.pow(2,8*u)-1;Ue(this,o,i,u,v,0)}var S=u-1,k=1;for(this[i+S]=o&255;--S>=0&&(k*=256);)this[i+S]=o/k&255;return i+u};I.prototype.writeUint8=I.prototype.writeUInt8=function(o,i,u){return o=+o,i=i>>>0,u||Ue(this,o,i,1,255,0),this[i]=o&255,i+1};I.prototype.writeUint16LE=I.prototype.writeUInt16LE=function(o,i,u){return o=+o,i=i>>>0,u||Ue(this,o,i,2,65535,0),this[i]=o&255,this[i+1]=o>>>8,i+2};I.prototype.writeUint16BE=I.prototype.writeUInt16BE=function(o,i,u){return o=+o,i=i>>>0,u||Ue(this,o,i,2,65535,0),this[i]=o>>>8,this[i+1]=o&255,i+2};I.prototype.writeUint32LE=I.prototype.writeUInt32LE=function(o,i,u){return o=+o,i=i>>>0,u||Ue(this,o,i,4,4294967295,0),this[i+3]=o>>>24,this[i+2]=o>>>16,this[i+1]=o>>>8,this[i]=o&255,i+4};I.prototype.writeUint32BE=I.prototype.writeUInt32BE=function(o,i,u){return o=+o,i=i>>>0,u||Ue(this,o,i,4,4294967295,0),this[i]=o>>>24,this[i+1]=o>>>16,this[i+2]=o>>>8,this[i+3]=o&255,i+4};I.prototype.writeIntLE=function(o,i,u,m){if(o=+o,i=i>>>0,!m){var v=Math.pow(2,8*u-1);Ue(this,o,i,u,v-1,-v)}var S=0,k=1,E=0;for(this[i]=o&255;++S<u&&(k*=256);)o<0&&E===0&&this[i+S-1]!==0&&(E=1),this[i+S]=(o/k>>0)-E&255;return i+u};I.prototype.writeIntBE=function(o,i,u,m){if(o=+o,i=i>>>0,!m){var v=Math.pow(2,8*u-1);Ue(this,o,i,u,v-1,-v)}var S=u-1,k=1,E=0;for(this[i+S]=o&255;--S>=0&&(k*=256);)o<0&&E===0&&this[i+S+1]!==0&&(E=1),this[i+S]=(o/k>>0)-E&255;return i+u};I.prototype.writeInt8=function(o,i,u){return o=+o,i=i>>>0,u||Ue(this,o,i,1,127,-128),o<0&&(o=255+o+1),this[i]=o&255,i+1};I.prototype.writeInt16LE=function(o,i,u){return o=+o,i=i>>>0,u||Ue(this,o,i,2,32767,-32768),this[i]=o&255,this[i+1]=o>>>8,i+2};I.prototype.writeInt16BE=function(o,i,u){return o=+o,i=i>>>0,u||Ue(this,o,i,2,32767,-32768),this[i]=o>>>8,this[i+1]=o&255,i+2};I.prototype.writeInt32LE=function(o,i,u){return o=+o,i=i>>>0,u||Ue(this,o,i,4,2147483647,-2147483648),this[i]=o&255,this[i+1]=o>>>8,this[i+2]=o>>>16,this[i+3]=o>>>24,i+4};I.prototype.writeInt32BE=function(o,i,u){return o=+o,i=i>>>0,u||Ue(this,o,i,4,2147483647,-2147483648),o<0&&(o=4294967295+o+1),this[i]=o>>>24,this[i+1]=o>>>16,this[i+2]=o>>>8,this[i+3]=o&255,i+4};function ep(n,o,i,u,m,v){if(i+u>n.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function tp(n,o,i,u,m){return o=+o,i=i>>>0,m||ep(n,o,i,4,34028234663852886e22,-34028234663852886e22),qn.write(n,o,i,u,23,4),i+4}I.prototype.writeFloatLE=function(o,i,u){return tp(this,o,i,!0,u)};I.prototype.writeFloatBE=function(o,i,u){return tp(this,o,i,!1,u)};function np(n,o,i,u,m){return o=+o,i=i>>>0,m||ep(n,o,i,8,17976931348623157e292,-17976931348623157e292),qn.write(n,o,i,u,52,8),i+8}I.prototype.writeDoubleLE=function(o,i,u){return np(this,o,i,!0,u)};I.prototype.writeDoubleBE=function(o,i,u){return np(this,o,i,!1,u)};I.prototype.copy=function(o,i,u,m){if(!I.isBuffer(o))throw new TypeError("argument should be a Buffer");if(u||(u=0),!m&&m!==0&&(m=this.length),i>=o.length&&(i=o.length),i||(i=0),m>0&&m<u&&(m=u),m===u||o.length===0||this.length===0)return 0;if(i<0)throw new RangeError("targetStart out of bounds");if(u<0||u>=this.length)throw new RangeError("Index out of range");if(m<0)throw new RangeError("sourceEnd out of bounds");m>this.length&&(m=this.length),o.length-i<m-u&&(m=o.length-i+u);var v=m-u;return this===o&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(i,u,m):Uint8Array.prototype.set.call(o,this.subarray(u,m),i),v};I.prototype.fill=function(o,i,u,m){if(typeof o=="string"){if(typeof i=="string"?(m=i,i=0,u=this.length):typeof u=="string"&&(m=u,u=this.length),m!==void 0&&typeof m!="string")throw new TypeError("encoding must be a string");if(typeof m=="string"&&!I.isEncoding(m))throw new TypeError("Unknown encoding: "+m);if(o.length===1){var v=o.charCodeAt(0);(m==="utf8"&&v<128||m==="latin1")&&(o=v)}}else typeof o=="number"?o=o&255:typeof o=="boolean"&&(o=Number(o));if(i<0||this.length<i||this.length<u)throw new RangeError("Out of range index");if(u<=i)return this;i=i>>>0,u=u===void 0?this.length:u>>>0,o||(o=0);var S;if(typeof o=="number")for(S=i;S<u;++S)this[S]=o;else{var k=I.isBuffer(o)?o:I.from(o,m),E=k.length;if(E===0)throw new TypeError('The value "'+o+'" is invalid for argument "value"');for(S=0;S<u-i;++S)this[S+i]=k[S%E]}return this};var m0=/[^+/0-9A-Za-z-_]/g;function T0(n){if(n=n.split("=")[0],n=n.trim().replace(m0,""),n.length<2)return"";for(;n.length%4!==0;)n=n+"=";return n}function aa(n,o){o=o||1/0;for(var i,u=n.length,m=null,v=[],S=0;S<u;++S){if(i=n.charCodeAt(S),i>55295&&i<57344){if(!m){if(i>56319){(o-=3)>-1&&v.push(239,191,189);continue}else if(S+1===u){(o-=3)>-1&&v.push(239,191,189);continue}m=i;continue}if(i<56320){(o-=3)>-1&&v.push(239,191,189),m=i;continue}i=(m-55296<<10|i-56320)+65536}else m&&(o-=3)>-1&&v.push(239,191,189);if(m=null,i<128){if((o-=1)<0)break;v.push(i)}else if(i<2048){if((o-=2)<0)break;v.push(i>>6|192,i&63|128)}else if(i<65536){if((o-=3)<0)break;v.push(i>>12|224,i>>6&63|128,i&63|128)}else if(i<1114112){if((o-=4)<0)break;v.push(i>>18|240,i>>12&63|128,i>>6&63|128,i&63|128)}else throw new Error("Invalid code point")}return v}function h0(n){for(var o=[],i=0;i<n.length;++i)o.push(n.charCodeAt(i)&255);return o}function y0(n,o){for(var i,u,m,v=[],S=0;S<n.length&&!((o-=2)<0);++S)i=n.charCodeAt(S),u=i>>8,m=i%256,v.push(m),v.push(u);return v}function rp(n){return oa.toByteArray(T0(n))}function Vo(n,o,i,u){for(var m=0;m<u&&!(m+i>=o.length||m>=n.length);++m)o[m+i]=n[m];return m}function wt(n,o){return n instanceof o||n!=null&&n.constructor!=null&&n.constructor.name!=null&&n.constructor.name===o.name}function la(n){return n!==n}var x0=function(){for(var n="0123456789abcdef",o=new Array(256),i=0;i<16;++i)for(var u=i*16,m=0;m<16;++m)o[u+m]=n[i]+n[m];return o}()});var up=kr((NI,cp)=>{s();var he=cp.exports={},At,It;function pa(){throw new Error("setTimeout has not been defined")}function fa(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?At=setTimeout:At=pa}catch(n){At=pa}try{typeof clearTimeout=="function"?It=clearTimeout:It=fa}catch(n){It=fa}})();function ip(n){if(At===setTimeout)return setTimeout(n,0);if((At===pa||!At)&&setTimeout)return At=setTimeout,setTimeout(n,0);try{return At(n,0)}catch(o){try{return At.call(null,n,0)}catch(i){return At.call(this,n,0)}}}function S0(n){if(It===clearTimeout)return clearTimeout(n);if((It===fa||!It)&&clearTimeout)return It=clearTimeout,clearTimeout(n);try{return It(n)}catch(o){try{return It.call(null,n)}catch(i){return It.call(this,n)}}}var Wt=[],Kn=!1,vn,qo=-1;function v0(){!Kn||!vn||(Kn=!1,vn.length?Wt=vn.concat(Wt):qo=-1,Wt.length&&sp())}function sp(){if(!Kn){var n=ip(v0);Kn=!0;for(var o=Wt.length;o;){for(vn=Wt,Wt=[];++qo<o;)vn&&vn[qo].run();qo=-1,o=Wt.length}vn=null,Kn=!1,S0(n)}}he.nextTick=function(n){var o=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)o[i-1]=arguments[i];Wt.push(new ap(n,o)),Wt.length===1&&!Kn&&ip(sp)};function ap(n,o){this.fun=n,this.array=o}ap.prototype.run=function(){this.fun.apply(null,this.array)};he.title="browser";he.browser=!0;he.env={};he.argv=[];he.version="";he.versions={};function Gt(){}he.on=Gt;he.addListener=Gt;he.once=Gt;he.off=Gt;he.removeListener=Gt;he.removeAllListeners=Gt;he.emit=Gt;he.prependListener=Gt;he.prependOnceListener=Gt;he.listeners=function(n){return[]};he.binding=function(n){throw new Error("process.binding is not supported")};he.cwd=function(){return"/"};he.chdir=function(n){throw new Error("process.chdir is not supported")};he.umask=function(){return 0}});var d,g,w0,f,s=W(()=>{d=K(op()),g=K(up()),w0=function(n){function o(){var u=this||self;return delete n.prototype.__magic__,u}if(typeof globalThis=="object")return globalThis;if(this)return o();n.defineProperty(n.prototype,"__magic__",{configurable:!0,get:o});var i=__magic__;return i}(Object),f=w0});var wn=W(()=>{"use strict";s()});var lp=W(()=>{"use strict";s()});var pp=W(()=>{"use strict";s()});var fp=W(()=>{"use strict";s()});var de=W(()=>{"use strict";s()});var dp=W(()=>{"use strict";s()});var gp=W(()=>{"use strict";s()});var Be=W(()=>{"use strict";s()});var mp=W(()=>{"use strict";s()});var Tp=W(()=>{"use strict";s()});var Ie=W(()=>{"use strict";s();lp();pp();fp();de();dp();gp();Be();mp();Tp()});var da,hp,jI,yp,e_,xp,t_,n_,r_,Sp=W(()=>{"use strict";s();Ie();da={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:hp,egldLabel:jI}=da["devnet"],{chainId:yp,egldLabel:e_}=da["testnet"],{chainId:xp,egldLabel:t_}=da["mainnet"],n_={["devnet"]:hp,["testnet"]:yp,["mainnet"]:xp},r_={[hp]:"devnet",[yp]:"testnet",[xp]:"mainnet"}});var ga=W(()=>{"use strict";s()});var vp=W(()=>{"use strict";s()});var zo,ma=W(()=>{"use strict";s();zo="transaction-status-toast-id"});var _t,wp=W(()=>{"use strict";s();_t=require("@multiversx/sdk-web-wallet-provider")});var Ap=W(()=>{"use strict";s()});var Pr,Ko,Ip,Yo,_p,Yn,se=W(()=>{"use strict";s();wn();Sp();ga();vp();ma();wp();Ap();Pr=5e4,Ko=1e9,Ip=1,Yo="logout",_p="login",Yn="0"});var Rr,Zo=W(()=>{"use strict";s();Rr=()=>Date.now()/1e3});var bp=W(()=>{"use strict";s()});var Lp=W(()=>{"use strict";s()});var Ta=W(()=>{"use strict";s();Zo();bp();Lp()});var ya={};yn(ya,{getItem:()=>I0,localStorageKeys:()=>Ke,removeItem:()=>_0,setItem:()=>A0});var Ke,ha,A0,I0,_0,An=W(()=>{"use strict";s();Ta();Ke={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},ha=typeof localStorage!="undefined",A0=({key:n,data:o,expires:i})=>{!ha||localStorage.setItem(String(n),JSON.stringify({expires:i,data:o}))},I0=n=>{if(!ha)return;let o=localStorage.getItem(String(n));if(!o)return null;let i=JSON.parse(o);return!i||!i.hasOwnProperty("expires")||!i.hasOwnProperty("data")?null:Rr()>=i.expires?(localStorage.removeItem(String(n)),null):i.data},_0=n=>{!ha||localStorage.removeItem(String(n))}});var xa={};yn(xa,{clear:()=>Pp,getItem:()=>kp,removeItem:()=>Cp,setItem:()=>Ep,storage:()=>b0});var Ep,kp,Cp,Pp,b0,Rp=W(()=>{"use strict";s();Ep=({key:n,data:o,expires:i})=>{sessionStorage.setItem(String(n),JSON.stringify({expires:i,data:o}))},kp=n=>{let o=sessionStorage.getItem(String(n));if(!o)return null;let i=JSON.parse(o);return!i||!i.hasOwnProperty("expires")||!i.hasOwnProperty("data")?null:Date.now()>=i.expires?(sessionStorage.removeItem(String(n)),null):i.data},Cp=n=>sessionStorage.removeItem(String(n)),Pp=()=>sessionStorage.clear(),b0={setItem:Ep,getItem:kp,removeItem:Cp,clear:Pp}});var bt,Zn=W(()=>{"use strict";s();An();Rp();bt={session:xa,local:ya}});var Sa,_e,Lt,Ce=W(()=>{"use strict";s();Sa=require("@reduxjs/toolkit");se();_e=(0,Sa.createAction)(Yo),Lt=(0,Sa.createAction)(_p,n=>({payload:n}))});var wa,Dp,Np,Xo,va,Op,Aa,O_,Ia,M_,L0,E0,F_,U_,B_,k0,Jo,Qo=W(()=>{"use strict";s();wa=require("@multiversx/sdk-core"),Dp=require("@reduxjs/toolkit"),Np=require("redux-persist");se();Zn();An();Ce();Xo={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:Yn},va={address:"",websocketEvent:null,accounts:{"":Xo},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Op=(0,Dp.createSlice)({name:"accountInfoSlice",initialState:va,reducers:{setAddress:(n,o)=>{let i=o.payload;n.address=i,n.publicKey=new wa.Address(i).hex()},setAccount:(n,o)=>{let i=n.address===o.payload.address;n.accounts={[n.address]:i?o.payload:Xo},n.shard=o.payload.shard,n.isAccountLoading=!1,n.accountLoadingError=null},setAccountNonce:(n,o)=>{let{address:i}=n;n.accounts[i].nonce=o.payload},setAccountShard:(n,o)=>{n.shard=o.payload},setLedgerAccount:(n,o)=>{n.ledgerAccount=o.payload},updateLedgerAccount:(n,o)=>{n.ledgerAccount!=null&&(n.ledgerAccount.index=o.payload.index,n.ledgerAccount.address=o.payload.address)},setWalletConnectAccount:(n,o)=>{n.walletConnectAccount=o.payload},setIsAccountLoading:(n,o)=>{n.isAccountLoading=o.payload,n.accountLoadingError=null},setAccountLoadingError:(n,o)=>{n.accountLoadingError=o.payload,n.isAccountLoading=!1},setWebsocketEvent:(n,o)=>{n.websocketEvent={timestamp:Date.now(),message:o.payload}}},extraReducers:n=>{n.addCase(_e,()=>(bt.local.removeItem(Ke.loginExpiresAt),va)),n.addCase(Lt,(o,i)=>{let{address:u}=i.payload;o.address=u,o.publicKey=new wa.Address(u).hex()}),n.addCase(Np.REHYDRATE,(o,i)=>{var N;if(!((N=i.payload)!=null&&N.account))return;let{account:u}=i.payload,{address:m,shard:v,accounts:S,publicKey:k}=u;o.address=m,o.shard=v;let E=S&&m in S;o.accounts=E?S:va.accounts,o.publicKey=k})}}),{setAccount:Aa,setAddress:O_,setAccountNonce:Ia,setAccountShard:M_,setLedgerAccount:L0,updateLedgerAccount:E0,setWalletConnectAccount:F_,setIsAccountLoading:U_,setAccountLoadingError:B_,setWebsocketEvent:k0}=Op.actions,Jo=Op.reducer});function Dr(){return new Date().setHours(new Date().getHours()+24)}function Nr(n){bt.local.setItem({key:Ke.loginExpiresAt,data:n,expires:n})}var _a=W(()=>{"use strict";s();Zn();An()});var Fp,Mp,Up,Z_,Bp,C0,P0,X_,R0,Wp,J_,jo,ei=W(()=>{"use strict";s();Fp=require("@reduxjs/toolkit");_a();de();Ce();Mp={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},Up=(0,Fp.createSlice)({name:"loginInfoSlice",initialState:Mp,reducers:{setLoginMethod:(n,o)=>{n.loginMethod=o.payload},setTokenLogin:(n,o)=>{n.tokenLogin=o.payload},setTokenLoginSignature:(n,o)=>{(n==null?void 0:n.tokenLogin)!=null&&(n.tokenLogin.signature=o.payload)},setWalletLogin:(n,o)=>{n.walletLogin=o.payload},setWalletConnectLogin:(n,o)=>{n.walletConnectLogin=o.payload},setLedgerLogin:(n,o)=>{n.ledgerLogin=o.payload},invalidateLoginSession:n=>{n.isLoginSessionInvalid=!0},setLogoutRoute:(n,o)=>{n.logoutRoute=o.payload}},extraReducers:n=>{n.addCase(_e,()=>Mp),n.addCase(Lt,(o,i)=>{o.loginMethod=i.payload.loginMethod,Nr(Dr())})}}),{setLoginMethod:Z_,setWalletConnectLogin:Bp,setLedgerLogin:C0,setTokenLogin:P0,setTokenLoginSignature:X_,setWalletLogin:R0,invalidateLoginSession:Wp,setLogoutRoute:J_}=Up.actions,jo=Up.reducer});var $p,Gp,Hp,tb,D0,nb,N0,ti,ni=W(()=>{"use strict";s();$p=require("@reduxjs/toolkit");Ce();Gp={},Hp=(0,$p.createSlice)({name:"modalsSlice",initialState:Gp,reducers:{setTxSubmittedModal:(n,o)=>{n.txSubmittedModal=o.payload},setNotificationModal:(n,o)=>{n.notificationModal=o.payload},clearTxSubmittedModal:n=>{n.txSubmittedModal=void 0},clearNotificationModal:n=>{n.notificationModal=void 0}},extraReducers:n=>{n.addCase(_e,()=>Gp)}}),{setTxSubmittedModal:tb,setNotificationModal:D0,clearTxSubmittedModal:nb,clearNotificationModal:N0}=Hp.actions,ti=Hp.reducer});var Vp,qp,ri,Or=W(()=>{"use strict";s();Vp=!1,qp=(n=!0)=>{Vp=n},ri=(n,o=0)=>{Vp||setTimeout(()=>{!window||(window.location.href=n,window.location.assign(n))},o)}});var zp=W(()=>{"use strict";s();Or()});function ba(n){return n[Math.floor(Math.random()*n.length)]}var Kp=W(()=>{"use strict";s()});var La=W(()=>{"use strict";s();ga()});var In=W(()=>{"use strict";s();zp();Kp();La()});var Yp,Zp,Ea,O0,Xp,hb,yb,oi,ii=W(()=>{"use strict";s();Yp=require("@reduxjs/toolkit"),Zp=K(require("lodash.omit"));In();Ea={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},O0={network:Ea,chainID:"-1"},Xp=(0,Yp.createSlice)({name:"appConfig",initialState:O0,reducers:{initializeNetworkConfig:(n,o)=>{let i=ba(o.payload.walletConnectBridgeAddresses),u=ba(o.payload.walletConnectV2RelayAddresses),m=(0,Zp.default)(o.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");n.network=j(O(O({},n.network),m),{walletConnectBridgeAddress:i,walletConnectV2RelayAddress:u})},setChainID:(n,o)=>{n.chainID=o.payload}}}),{initializeNetworkConfig:hb,setChainID:yb}=Xp.actions,oi=Xp.reducer});var Jp,ka,Qp,Ib,_b,bb,si,ai=W(()=>{"use strict";s();Jp=require("@reduxjs/toolkit");Ie();Ce();ka={isSigning:!1,signedSessions:{}},Qp=(0,Jp.createSlice)({name:"signedMessageInfoSliceState",initialState:ka,reducers:{setSignSession:(n,o)=>{let{sessionId:i,signedSession:u,errorMessage:m}=o.payload;return j(O({},n),{errorMessage:m!=null?m:n.errorMessage,isSigning:u.status==="pending",signedSessions:j(O({},n.signedSessions),{[i]:u})})},setSignSessionState:(n,o)=>O(O({},n),o.payload),clearSignedMessageInfo:()=>ka},extraReducers:n=>{n.addCase(_e,()=>ka)}}),{setSignSession:Ib,clearSignedMessageInfo:_b,setSignSessionState:bb}=Qp.actions,si=Qp.reducer});var ef,tf,jp,nf,M0,Ca,Nb,Ob,Mb,Fb,ci,ui=W(()=>{"use strict";s();ef=require("@reduxjs/toolkit"),tf=require("redux-persist");ma();Ie();Zo();Ce();jp={customToasts:[],transactionToasts:[],failTransactionToast:null},nf=(0,ef.createSlice)({name:"toastsSlice",initialState:jp,reducers:{addCustomToast:(n,o)=>{n.customToasts.push(j(O({},o.payload),{type:"custom",toastId:o.payload.toastId||`custom-toast-${n.customToasts.length+1}`}))},removeCustomToast:(n,o)=>{n.customToasts=n.customToasts.filter(i=>i.toastId!==o.payload)},addTransactionToast:(n,o)=>{n.transactionToasts.push({type:"transaction",startTimestamp:Rr(),toastId:o.payload||`custom-toast-${n.transactionToasts.length+1}`})},removeTransactionToast:(n,o)=>{n.transactionToasts=n.transactionToasts.filter(i=>i.toastId!==o.payload)},addFailTransactionToast:(n,o)=>{n.failTransactionToast=j(O({},o.payload),{toastId:zo})},removeFailTransactionToast:n=>{n.failTransactionToast=null}},extraReducers:n=>{n.addCase(_e,()=>jp),n.addCase(tf.REHYDRATE,(o,i)=>{var m,v;let u=(v=(m=i.customToasts)==null?void 0:m.filter(S=>!("component"in S)))!=null?v:[];o.customToasts=u})}}),{addCustomToast:M0,removeCustomToast:Ca,addTransactionToast:Nb,removeTransactionToast:Ob,addFailTransactionToast:Mb,removeFailTransactionToast:Fb}=nf.actions,ci=nf.reducer});var rf,Ra,Da,Na,F0,Pa,of,Gb,U0,Oa,li,pi=W(()=>{"use strict";s();rf=require("@reduxjs/toolkit");Ce();Ra="Transaction failed",Da="Transaction successful",Na="Processing transaction",F0="Transaction submitted",Pa={},of=(0,rf.createSlice)({name:"transactionsInfo",initialState:Pa,reducers:{setTransactionsDisplayInfo(n,o){let{sessionId:i,transactionsDisplayInfo:u}=o.payload;i!=null&&(n[i]={errorMessage:(u==null?void 0:u.errorMessage)||Ra,successMessage:(u==null?void 0:u.successMessage)||Da,processingMessage:(u==null?void 0:u.processingMessage)||Na,submittedMessage:(u==null?void 0:u.submittedMessage)||F0,transactionDuration:u==null?void 0:u.transactionDuration})},clearTransactionsInfoForSessionId(n,o){o.payload!=null&&delete n[o.payload]},clearTransactionsInfo:()=>Pa},extraReducers:n=>{n.addCase(_e,()=>Pa)}}),{clearTransactionsInfo:Gb,setTransactionsDisplayInfo:U0,clearTransactionsInfoForSessionId:Oa}=of.actions,li=of.reducer});function Jn(n){return n!=null&&(z0(n)||X0(n))}function Qn(n){return n!=null&&(K0(n)||J0(n))}function jn(n){return n!=null&&(Y0(n)||Q0(n))}function Ma(n){return n!=null&&Z0(n)}function z0(n){return n!=null&&B0.includes(n)}function K0(n){return n!=null&&W0.includes(n)}function Y0(n){return n!=null&&G0.includes(n)}function Z0(n){return n!=null&&$0.includes(n)}function X0(n){return n!=null&&H0.includes(n)}function J0(n){return n!=null&&V0.includes(n)}function Q0(n){return n!=null&&q0.includes(n)}var B0,W0,G0,$0,H0,V0,q0,er=W(()=>{"use strict";s();de();B0=["sent"],W0=["success"],G0=["fail","cancelled","timedOut"],$0=["timedOut"],H0=["pending"],V0=["success"],q0=["fail","invalid"]});var sf,af,Mr,j0,cf,uf,lf,ew,fi,tw,nw,Xb,rw,di,Fa,gi,mi=W(()=>{"use strict";s();sf=require("@reduxjs/toolkit"),af=require("redux-persist");de();er();Ce();Mr={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},j0={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},cf=(0,sf.createSlice)({name:"transactionsSlice",initialState:Mr,reducers:{moveTransactionsToSignedState:(n,o)=>{var E,N;let{sessionId:i,transactions:u,errorMessage:m,status:v,redirectRoute:S}=o.payload,k=((E=n.customTransactionInformationForSessionId)==null?void 0:E[i])||j0;n.signedTransactions[i]={transactions:u,status:v,errorMessage:m,redirectRoute:S,customTransactionInformation:k},((N=n==null?void 0:n.transactionsToSign)==null?void 0:N.sessionId)===i&&(n.transactionsToSign=Mr.transactionsToSign)},clearSignedTransaction:(n,o)=>{n.signedTransactions[o.payload]&&delete n.signedTransactions[o.payload]},clearTransactionToSign:n=>{n!=null&&n.transactionsToSign&&(n.transactionsToSign=null)},updateSignedTransaction:(n,o)=>{n.signedTransactions=O(O({},n.signedTransactions),o.payload)},updateSignedTransactions:(n,o)=>{let{sessionId:i,status:u,errorMessage:m,transactions:v}=o.payload;n.signedTransactions[i]!=null&&(n.signedTransactions[i].status=u,m!=null&&(n.signedTransactions[i].errorMessage=m),v!=null&&(n.signedTransactions[i].transactions=v))},updateSignedTransactionStatus:(n,o)=>{var k,E,N,q,F,pe;let{sessionId:i,status:u,errorMessage:m,transactionHash:v}=o.payload,S=(E=(k=n.signedTransactions)==null?void 0:k[i])==null?void 0:E.transactions;if(S!=null){n.signedTransactions[i].transactions=S.map(be=>be.hash===v?j(O({},be),{status:u,errorMessage:m}):be);let ye=(q=(N=n.signedTransactions[i])==null?void 0:N.transactions)==null?void 0:q.every(be=>Qn(be.status)),ge=(pe=(F=n.signedTransactions[i])==null?void 0:F.transactions)==null?void 0:pe.every(be=>jn(be.status));ye&&(n.signedTransactions[i].status="success"),ge&&(n.signedTransactions[i].status="fail")}},setTransactionsToSign:(n,o)=>{n.transactionsToSign=o.payload;let{sessionId:i,customTransactionInformation:u}=o.payload;n.customTransactionInformationForSessionId[i]=u,n.signTransactionsError=null},clearAllTransactionsToSign:n=>{n.transactionsToSign=Mr.transactionsToSign,n.signTransactionsError=null},clearAllSignedTransactions:n=>{n.signedTransactions=Mr.signedTransactions},setSignTransactionsError:(n,o)=>{n.signTransactionsError=o.payload},setSignTransactionsCancelMessage:(n,o)=>{n.signTransactionsCancelMessage=o.payload}},extraReducers:n=>{n.addCase(_e,()=>Mr),n.addCase(af.REHYDRATE,(o,i)=>{var S;if(o.signTransactionsCancelMessage=null,!((S=i.payload)!=null&&S.transactions))return;let{signedTransactions:u,customTransactionInformationForSessionId:m}=i.payload.transactions,v=Object.entries(u).reduce((k,[E,N])=>{let q=new Date(E),F=new Date;return F.setHours(F.getHours()+5),F-q>0||(k[E]=N),k},{});m!=null&&(o.customTransactionInformationForSessionId=m),u!=null&&(o.signedTransactions=v)})}}),{updateSignedTransactionStatus:uf,updateSignedTransactions:lf,setTransactionsToSign:ew,clearAllTransactionsToSign:fi,clearAllSignedTransactions:tw,clearSignedTransaction:nw,clearTransactionToSign:Xb,setSignTransactionsError:rw,setSignTransactionsCancelMessage:di,moveTransactionsToSignedState:Fa}=cf.actions,gi=cf.reducer});var ae=W(()=>{"use strict";s();Qo();ei();ni();ii();ai();ui();pi();mi()});var Ua=W(()=>{"use strict";s()});var mf,gf,Tf,SL,vL,wL,AL,IL,_L,hf,yf=W(()=>{"use strict";s();mf=require("@reduxjs/toolkit");Ce();gf={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},Tf=(0,mf.createSlice)({name:"dappModalsSlice",initialState:gf,reducers:{setDappModalVisibility:(n,o)=>{n.visible=o.payload},setDappModalHeaderVisibility:(n,o)=>{n.modal.showHeader=o.payload},setDappModalFooterVisibility:(n,o)=>{n.modal.showFooter=o.payload},setDappModalHeaderText:(n,o)=>{n.modal.headerText=o.payload},setDappModalFooterText:(n,o)=>{n.modal.footerText=o.payload},setDappModalConfig:(n,o)=>{n.modal=O({},o.payload)}},extraReducers:n=>{n.addCase(_e,()=>gf)}}),{setDappModalVisibility:SL,setDappModalHeaderVisibility:vL,setDappModalFooterVisibility:wL,setDappModalHeaderText:AL,setDappModalFooterText:IL,setDappModalConfig:_L}=Tf.actions,hf=Tf.reducer});var xf,aw,cw,bn,xi=W(()=>{"use strict";s();xf=require("@reduxjs/toolkit");Ua();Qo();yf();ei();ni();ii();ai();ui();pi();mi();aw={["account"]:Jo,["dappModal"]:hf,["loginInfo"]:jo,["modals"]:ti,["networkConfig"]:oi,["signedMessageInfo"]:si,["toasts"]:ci,["transactionsInfo"]:li,["transactions"]:gi},cw=(n={})=>(0,xf.combineReducers)(O(O({},aw),n)),bn=cw});var Af={};yn(Af,{default:()=>Aw,sessionStorageReducers:()=>Ba});function rn(n,o=[]){return{key:n,version:1,storage:vf.default,blacklist:o}}var Ze,Sf,vf,uw,Ur,lw,pw,fw,dw,gw,mw,Tw,hw,yw,wf,xw,Ba,Sw,vw,ww,Aw,If=W(()=>{"use strict";s();Ze=require("redux-persist"),Sf=K(require("redux-persist/lib/storage")),vf=K(require("redux-persist/lib/storage/session"));xi();ae();Qo();ei();ni();ii();ai();ui();pi();mi();Ua();uw={persistReducersStorageType:"localStorage"},Ur={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},lw=rn(Ur["account"]),pw=rn(Ur["loginInfo"]),fw=rn(Ur["modals"]),dw=rn(Ur["networkConfig"]),gw={2:n=>j(O({},n),{networkConfig:Ea})};mw=rn("sdk-dapp-transactionsInfo"),Tw=rn("sdk-dapp-transactions",["transactionsToSign"]),hw=rn("sdk-dapp-toasts"),yw=rn("sdk-dapp-signedMessageInfo"),wf={key:"sdk-dapp-store",version:2,storage:Sf.default,whitelist:Object.keys(Ur),migrate:(0,Ze.createMigrate)(gw,{debug:!1})},xw=j(O({},wf),{whitelist:[]}),Ba={["toasts"]:(0,Ze.persistReducer)(hw,ci),["transactions"]:(0,Ze.persistReducer)(Tw,gi),["transactionsInfo"]:(0,Ze.persistReducer)(mw,li),["signedMessageInfo"]:(0,Ze.persistReducer)(yw,si)},Sw=j(O({},Ba),{["account"]:(0,Ze.persistReducer)(lw,Jo),["loginInfo"]:(0,Ze.persistReducer)(pw,jo),["modals"]:(0,Ze.persistReducer)(fw,ti),["networkConfig"]:(0,Ze.persistReducer)(dw,oi)}),vw=uw.persistReducersStorageType==="localStorage",ww=vw?(0,Ze.persistReducer)(wf,bn(Ba)):(0,Ze.persistReducer)(xw,bn(Sw)),Aw=ww});var _f={};yn(_f,{default:()=>Iw});var Iw,bf=W(()=>{"use strict";s();xi();Iw=bn()});var Lf={};yn(Lf,{default:()=>bw});var st,_w,bw,Ef=W(()=>{"use strict";s();st=require("redux-persist"),_w=[st.FLUSH,st.REHYDRATE,st.PAUSE,st.PERSIST,st.PURGE,st.REGISTER],bw=_w});var Pf={};yn(Pf,{default:()=>Cf});function Cf(n){return(0,kf.persistStore)(n)}var kf,Rf=W(()=>{"use strict";s();kf=require("redux-persist")});var Nd=kr((or,Vr)=>{s();(function(){var n,o="4.17.21",i=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",m="Expected a function",v="Invalid `variable` option passed into `_.template`",S="__lodash_hash_undefined__",k=500,E="__lodash_placeholder__",N=1,q=2,F=4,pe=1,ye=2,ge=1,be=2,sc=4,mt=8,En=16,Tt=32,kn=64,Et=128,ir=256,Di=512,Hd=30,Vd="...",qd=800,zd=16,ac=1,Kd=2,Yd=3,cn=1/0,zt=9007199254740991,Zd=17976931348623157e292,zr=0/0,ht=4294967295,Xd=ht-1,Jd=ht>>>1,Qd=[["ary",Et],["bind",ge],["bindKey",be],["curry",mt],["curryRight",En],["flip",Di],["partial",Tt],["partialRight",kn],["rearg",ir]],Cn="[object Arguments]",Kr="[object Array]",jd="[object AsyncFunction]",sr="[object Boolean]",ar="[object Date]",eg="[object DOMException]",Yr="[object Error]",Zr="[object Function]",cc="[object GeneratorFunction]",at="[object Map]",cr="[object Number]",tg="[object Null]",kt="[object Object]",uc="[object Promise]",ng="[object Proxy]",ur="[object RegExp]",ct="[object Set]",lr="[object String]",Xr="[object Symbol]",rg="[object Undefined]",pr="[object WeakMap]",og="[object WeakSet]",fr="[object ArrayBuffer]",Pn="[object DataView]",Ni="[object Float32Array]",Oi="[object Float64Array]",Mi="[object Int8Array]",Fi="[object Int16Array]",Ui="[object Int32Array]",Bi="[object Uint8Array]",Wi="[object Uint8ClampedArray]",Gi="[object Uint16Array]",$i="[object Uint32Array]",ig=/\b__p \+= '';/g,sg=/\b(__p \+=) '' \+/g,ag=/(__e\(.*?\)|\b__t\)) \+\n'';/g,lc=/&(?:amp|lt|gt|quot|#39);/g,pc=/[&<>"']/g,cg=RegExp(lc.source),ug=RegExp(pc.source),lg=/<%-([\s\S]+?)%>/g,pg=/<%([\s\S]+?)%>/g,fc=/<%=([\s\S]+?)%>/g,fg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,dg=/^\w*$/,gg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Hi=/[\\^$.*+?()[\]{}|]/g,mg=RegExp(Hi.source),Vi=/^\s+/,Tg=/\s/,hg=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,yg=/\{\n\/\* \[wrapped with (.+)\] \*/,xg=/,? & /,Sg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,vg=/[()=,{}\[\]\/\s]/,wg=/\\(\\)?/g,Ag=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,dc=/\w*$/,Ig=/^[-+]0x[0-9a-f]+$/i,_g=/^0b[01]+$/i,bg=/^\[object .+?Constructor\]$/,Lg=/^0o[0-7]+$/i,Eg=/^(?:0|[1-9]\d*)$/,kg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Jr=/($^)/,Cg=/['\n\r\u2028\u2029\\]/g,Qr="\\ud800-\\udfff",Pg="\\u0300-\\u036f",Rg="\\ufe20-\\ufe2f",Dg="\\u20d0-\\u20ff",gc=Pg+Rg+Dg,mc="\\u2700-\\u27bf",Tc="a-z\\xdf-\\xf6\\xf8-\\xff",Ng="\\xac\\xb1\\xd7\\xf7",Og="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Mg="\\u2000-\\u206f",Fg=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",hc="A-Z\\xc0-\\xd6\\xd8-\\xde",yc="\\ufe0e\\ufe0f",xc=Ng+Og+Mg+Fg,qi="['\u2019]",Ug="["+Qr+"]",Sc="["+xc+"]",jr="["+gc+"]",vc="\\d+",Bg="["+mc+"]",wc="["+Tc+"]",Ac="[^"+Qr+xc+vc+mc+Tc+hc+"]",zi="\\ud83c[\\udffb-\\udfff]",Wg="(?:"+jr+"|"+zi+")",Ic="[^"+Qr+"]",Ki="(?:\\ud83c[\\udde6-\\uddff]){2}",Yi="[\\ud800-\\udbff][\\udc00-\\udfff]",Rn="["+hc+"]",_c="\\u200d",bc="(?:"+wc+"|"+Ac+")",Gg="(?:"+Rn+"|"+Ac+")",Lc="(?:"+qi+"(?:d|ll|m|re|s|t|ve))?",Ec="(?:"+qi+"(?:D|LL|M|RE|S|T|VE))?",kc=Wg+"?",Cc="["+yc+"]?",$g="(?:"+_c+"(?:"+[Ic,Ki,Yi].join("|")+")"+Cc+kc+")*",Hg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Vg="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Pc=Cc+kc+$g,qg="(?:"+[Bg,Ki,Yi].join("|")+")"+Pc,zg="(?:"+[Ic+jr+"?",jr,Ki,Yi,Ug].join("|")+")",Kg=RegExp(qi,"g"),Yg=RegExp(jr,"g"),Zi=RegExp(zi+"(?="+zi+")|"+zg+Pc,"g"),Zg=RegExp([Rn+"?"+wc+"+"+Lc+"(?="+[Sc,Rn,"$"].join("|")+")",Gg+"+"+Ec+"(?="+[Sc,Rn+bc,"$"].join("|")+")",Rn+"?"+bc+"+"+Lc,Rn+"+"+Ec,Vg,Hg,vc,qg].join("|"),"g"),Xg=RegExp("["+_c+Qr+gc+yc+"]"),Jg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Qg=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],jg=-1,ce={};ce[Ni]=ce[Oi]=ce[Mi]=ce[Fi]=ce[Ui]=ce[Bi]=ce[Wi]=ce[Gi]=ce[$i]=!0,ce[Cn]=ce[Kr]=ce[fr]=ce[sr]=ce[Pn]=ce[ar]=ce[Yr]=ce[Zr]=ce[at]=ce[cr]=ce[kt]=ce[ur]=ce[ct]=ce[lr]=ce[pr]=!1;var ie={};ie[Cn]=ie[Kr]=ie[fr]=ie[Pn]=ie[sr]=ie[ar]=ie[Ni]=ie[Oi]=ie[Mi]=ie[Fi]=ie[Ui]=ie[at]=ie[cr]=ie[kt]=ie[ur]=ie[ct]=ie[lr]=ie[Xr]=ie[Bi]=ie[Wi]=ie[Gi]=ie[$i]=!0,ie[Yr]=ie[Zr]=ie[pr]=!1;var em={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},tm={"&":"&","<":"<",">":">",'"':""","'":"'"},nm={"&":"&","<":"<",">":">",""":'"',"'":"'"},rm={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},om=parseFloat,im=parseInt,Rc=typeof f=="object"&&f&&f.Object===Object&&f,sm=typeof self=="object"&&self&&self.Object===Object&&self,ve=Rc||sm||Function("return this")(),Xi=typeof or=="object"&&or&&!or.nodeType&&or,un=Xi&&typeof Vr=="object"&&Vr&&!Vr.nodeType&&Vr,Dc=un&&un.exports===Xi,Ji=Dc&&Rc.process,Je=function(){try{var y=un&&un.require&&un.require("util").types;return y||Ji&&Ji.binding&&Ji.binding("util")}catch(A){}}(),Nc=Je&&Je.isArrayBuffer,Oc=Je&&Je.isDate,Mc=Je&&Je.isMap,Fc=Je&&Je.isRegExp,Uc=Je&&Je.isSet,Bc=Je&&Je.isTypedArray;function Ge(y,A,w){switch(w.length){case 0:return y.call(A);case 1:return y.call(A,w[0]);case 2:return y.call(A,w[0],w[1]);case 3:return y.call(A,w[0],w[1],w[2])}return y.apply(A,w)}function am(y,A,w,P){for(var G=-1,ee=y==null?0:y.length;++G<ee;){var xe=y[G];A(P,xe,w(xe),y)}return P}function Qe(y,A){for(var w=-1,P=y==null?0:y.length;++w<P&&A(y[w],w,y)!==!1;);return y}function cm(y,A){for(var w=y==null?0:y.length;w--&&A(y[w],w,y)!==!1;);return y}function Wc(y,A){for(var w=-1,P=y==null?0:y.length;++w<P;)if(!A(y[w],w,y))return!1;return!0}function Kt(y,A){for(var w=-1,P=y==null?0:y.length,G=0,ee=[];++w<P;){var xe=y[w];A(xe,w,y)&&(ee[G++]=xe)}return ee}function eo(y,A){var w=y==null?0:y.length;return!!w&&Dn(y,A,0)>-1}function Qi(y,A,w){for(var P=-1,G=y==null?0:y.length;++P<G;)if(w(A,y[P]))return!0;return!1}function ue(y,A){for(var w=-1,P=y==null?0:y.length,G=Array(P);++w<P;)G[w]=A(y[w],w,y);return G}function Yt(y,A){for(var w=-1,P=A.length,G=y.length;++w<P;)y[G+w]=A[w];return y}function ji(y,A,w,P){var G=-1,ee=y==null?0:y.length;for(P&&ee&&(w=y[++G]);++G<ee;)w=A(w,y[G],G,y);return w}function um(y,A,w,P){var G=y==null?0:y.length;for(P&&G&&(w=y[--G]);G--;)w=A(w,y[G],G,y);return w}function es(y,A){for(var w=-1,P=y==null?0:y.length;++w<P;)if(A(y[w],w,y))return!0;return!1}var lm=ts("length");function pm(y){return y.split("")}function fm(y){return y.match(Sg)||[]}function Gc(y,A,w){var P;return w(y,function(G,ee,xe){if(A(G,ee,xe))return P=ee,!1}),P}function to(y,A,w,P){for(var G=y.length,ee=w+(P?1:-1);P?ee--:++ee<G;)if(A(y[ee],ee,y))return ee;return-1}function Dn(y,A,w){return A===A?Im(y,A,w):to(y,$c,w)}function dm(y,A,w,P){for(var G=w-1,ee=y.length;++G<ee;)if(P(y[G],A))return G;return-1}function $c(y){return y!==y}function Hc(y,A){var w=y==null?0:y.length;return w?rs(y,A)/w:zr}function ts(y){return function(A){return A==null?n:A[y]}}function ns(y){return function(A){return y==null?n:y[A]}}function Vc(y,A,w,P,G){return G(y,function(ee,xe,oe){w=P?(P=!1,ee):A(w,ee,xe,oe)}),w}function gm(y,A){var w=y.length;for(y.sort(A);w--;)y[w]=y[w].value;return y}function rs(y,A){for(var w,P=-1,G=y.length;++P<G;){var ee=A(y[P]);ee!==n&&(w=w===n?ee:w+ee)}return w}function os(y,A){for(var w=-1,P=Array(y);++w<y;)P[w]=A(w);return P}function mm(y,A){return ue(A,function(w){return[w,y[w]]})}function qc(y){return y&&y.slice(0,Zc(y)+1).replace(Vi,"")}function $e(y){return function(A){return y(A)}}function is(y,A){return ue(A,function(w){return y[w]})}function dr(y,A){return y.has(A)}function zc(y,A){for(var w=-1,P=y.length;++w<P&&Dn(A,y[w],0)>-1;);return w}function Kc(y,A){for(var w=y.length;w--&&Dn(A,y[w],0)>-1;);return w}function Tm(y,A){for(var w=y.length,P=0;w--;)y[w]===A&&++P;return P}var hm=ns(em),ym=ns(tm);function xm(y){return"\\"+rm[y]}function Sm(y,A){return y==null?n:y[A]}function Nn(y){return Xg.test(y)}function vm(y){return Jg.test(y)}function wm(y){for(var A,w=[];!(A=y.next()).done;)w.push(A.value);return w}function ss(y){var A=-1,w=Array(y.size);return y.forEach(function(P,G){w[++A]=[G,P]}),w}function Yc(y,A){return function(w){return y(A(w))}}function Zt(y,A){for(var w=-1,P=y.length,G=0,ee=[];++w<P;){var xe=y[w];(xe===A||xe===E)&&(y[w]=E,ee[G++]=w)}return ee}function no(y){var A=-1,w=Array(y.size);return y.forEach(function(P){w[++A]=P}),w}function Am(y){var A=-1,w=Array(y.size);return y.forEach(function(P){w[++A]=[P,P]}),w}function Im(y,A,w){for(var P=w-1,G=y.length;++P<G;)if(y[P]===A)return P;return-1}function _m(y,A,w){for(var P=w+1;P--;)if(y[P]===A)return P;return P}function On(y){return Nn(y)?Lm(y):lm(y)}function ut(y){return Nn(y)?Em(y):pm(y)}function Zc(y){for(var A=y.length;A--&&Tg.test(y.charAt(A)););return A}var bm=ns(nm);function Lm(y){for(var A=Zi.lastIndex=0;Zi.test(y);)++A;return A}function Em(y){return y.match(Zi)||[]}function km(y){return y.match(Zg)||[]}var Cm=function y(A){A=A==null?ve:Xt.defaults(ve.Object(),A,Xt.pick(ve,Qg));var w=A.Array,P=A.Date,G=A.Error,ee=A.Function,xe=A.Math,oe=A.Object,as=A.RegExp,Pm=A.String,je=A.TypeError,ro=w.prototype,Rm=ee.prototype,Mn=oe.prototype,oo=A["__core-js_shared__"],io=Rm.toString,re=Mn.hasOwnProperty,Dm=0,Xc=function(){var e=/[^.]+$/.exec(oo&&oo.keys&&oo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),so=Mn.toString,Nm=io.call(oe),Om=ve._,Mm=as("^"+io.call(re).replace(Hi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ao=Dc?A.Buffer:n,Jt=A.Symbol,co=A.Uint8Array,Jc=ao?ao.allocUnsafe:n,uo=Yc(oe.getPrototypeOf,oe),Qc=oe.create,jc=Mn.propertyIsEnumerable,lo=ro.splice,eu=Jt?Jt.isConcatSpreadable:n,gr=Jt?Jt.iterator:n,ln=Jt?Jt.toStringTag:n,po=function(){try{var e=mn(oe,"defineProperty");return e({},"",{}),e}catch(t){}}(),Fm=A.clearTimeout!==ve.clearTimeout&&A.clearTimeout,Um=P&&P.now!==ve.Date.now&&P.now,Bm=A.setTimeout!==ve.setTimeout&&A.setTimeout,fo=xe.ceil,go=xe.floor,cs=oe.getOwnPropertySymbols,Wm=ao?ao.isBuffer:n,tu=A.isFinite,Gm=ro.join,$m=Yc(oe.keys,oe),Se=xe.max,Ee=xe.min,Hm=P.now,Vm=A.parseInt,nu=xe.random,qm=ro.reverse,us=mn(A,"DataView"),mr=mn(A,"Map"),ls=mn(A,"Promise"),Fn=mn(A,"Set"),Tr=mn(A,"WeakMap"),hr=mn(oe,"create"),mo=Tr&&new Tr,Un={},zm=Tn(us),Km=Tn(mr),Ym=Tn(ls),Zm=Tn(Fn),Xm=Tn(Tr),To=Jt?Jt.prototype:n,yr=To?To.valueOf:n,ru=To?To.toString:n;function l(e){if(fe(e)&&!$(e)&&!(e instanceof X)){if(e instanceof et)return e;if(re.call(e,"__wrapped__"))return ol(e)}return new et(e)}var Bn=function(){function e(){}return function(t){if(!le(t))return{};if(Qc)return Qc(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function ho(){}function et(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}l.templateSettings={escape:lg,evaluate:pg,interpolate:fc,variable:"",imports:{_:l}},l.prototype=ho.prototype,l.prototype.constructor=l,et.prototype=Bn(ho.prototype),et.prototype.constructor=et;function X(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ht,this.__views__=[]}function Jm(){var e=new X(this.__wrapped__);return e.__actions__=Ne(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ne(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ne(this.__views__),e}function Qm(){if(this.__filtered__){var e=new X(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function jm(){var e=this.__wrapped__.value(),t=this.__dir__,r=$(e),a=t<0,c=r?e.length:0,p=ph(0,c,this.__views__),T=p.start,h=p.end,x=h-T,_=a?h:T-1,b=this.__iteratees__,L=b.length,C=0,D=Ee(x,this.__takeCount__);if(!r||!a&&c==x&&D==x)return Lu(e,this.__actions__);var U=[];e:for(;x--&&C<D;){_+=t;for(var z=-1,B=e[_];++z<L;){var Z=b[z],J=Z.iteratee,qe=Z.type,De=J(B);if(qe==Kd)B=De;else if(!De){if(qe==ac)continue e;break e}}U[C++]=B}return U}X.prototype=Bn(ho.prototype),X.prototype.constructor=X;function pn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}function eT(){this.__data__=hr?hr(null):{},this.size=0}function tT(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function nT(e){var t=this.__data__;if(hr){var r=t[e];return r===S?n:r}return re.call(t,e)?t[e]:n}function rT(e){var t=this.__data__;return hr?t[e]!==n:re.call(t,e)}function oT(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=hr&&t===n?S:t,this}pn.prototype.clear=eT,pn.prototype.delete=tT,pn.prototype.get=nT,pn.prototype.has=rT,pn.prototype.set=oT;function Ct(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}function iT(){this.__data__=[],this.size=0}function sT(e){var t=this.__data__,r=yo(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():lo.call(t,r,1),--this.size,!0}function aT(e){var t=this.__data__,r=yo(t,e);return r<0?n:t[r][1]}function cT(e){return yo(this.__data__,e)>-1}function uT(e,t){var r=this.__data__,a=yo(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}Ct.prototype.clear=iT,Ct.prototype.delete=sT,Ct.prototype.get=aT,Ct.prototype.has=cT,Ct.prototype.set=uT;function Pt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}function lT(){this.size=0,this.__data__={hash:new pn,map:new(mr||Ct),string:new pn}}function pT(e){var t=Co(this,e).delete(e);return this.size-=t?1:0,t}function fT(e){return Co(this,e).get(e)}function dT(e){return Co(this,e).has(e)}function gT(e,t){var r=Co(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}Pt.prototype.clear=lT,Pt.prototype.delete=pT,Pt.prototype.get=fT,Pt.prototype.has=dT,Pt.prototype.set=gT;function fn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Pt;++t<r;)this.add(e[t])}function mT(e){return this.__data__.set(e,S),this}function TT(e){return this.__data__.has(e)}fn.prototype.add=fn.prototype.push=mT,fn.prototype.has=TT;function lt(e){var t=this.__data__=new Ct(e);this.size=t.size}function hT(){this.__data__=new Ct,this.size=0}function yT(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function xT(e){return this.__data__.get(e)}function ST(e){return this.__data__.has(e)}function vT(e,t){var r=this.__data__;if(r instanceof Ct){var a=r.__data__;if(!mr||a.length<i-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new Pt(a)}return r.set(e,t),this.size=r.size,this}lt.prototype.clear=hT,lt.prototype.delete=yT,lt.prototype.get=xT,lt.prototype.has=ST,lt.prototype.set=vT;function ou(e,t){var r=$(e),a=!r&&hn(e),c=!r&&!a&&nn(e),p=!r&&!a&&!c&&Hn(e),T=r||a||c||p,h=T?os(e.length,Pm):[],x=h.length;for(var _ in e)(t||re.call(e,_))&&!(T&&(_=="length"||c&&(_=="offset"||_=="parent")||p&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||Ot(_,x)))&&h.push(_);return h}function iu(e){var t=e.length;return t?e[vs(0,t-1)]:n}function wT(e,t){return Po(Ne(e),dn(t,0,e.length))}function AT(e){return Po(Ne(e))}function ps(e,t,r){(r!==n&&!pt(e[t],r)||r===n&&!(t in e))&&Rt(e,t,r)}function xr(e,t,r){var a=e[t];(!(re.call(e,t)&&pt(a,r))||r===n&&!(t in e))&&Rt(e,t,r)}function yo(e,t){for(var r=e.length;r--;)if(pt(e[r][0],t))return r;return-1}function IT(e,t,r,a){return Qt(e,function(c,p,T){t(a,c,r(c),T)}),a}function su(e,t){return e&&xt(t,we(t),e)}function _T(e,t){return e&&xt(t,Me(t),e)}function Rt(e,t,r){t=="__proto__"&&po?po(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function fs(e,t){for(var r=-1,a=t.length,c=w(a),p=e==null;++r<a;)c[r]=p?n:zs(e,t[r]);return c}function dn(e,t,r){return e===e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function tt(e,t,r,a,c,p){var T,h=t&N,x=t&q,_=t&F;if(r&&(T=c?r(e,a,c,p):r(e)),T!==n)return T;if(!le(e))return e;var b=$(e);if(b){if(T=dh(e),!h)return Ne(e,T)}else{var L=ke(e),C=L==Zr||L==cc;if(nn(e))return Cu(e,h);if(L==kt||L==Cn||C&&!c){if(T=x||C?{}:Zu(e),!h)return x?nh(e,_T(T,e)):th(e,su(T,e))}else{if(!ie[L])return c?e:{};T=gh(e,L,h)}}p||(p=new lt);var D=p.get(e);if(D)return D;p.set(e,T),Il(e)?e.forEach(function(B){T.add(tt(B,t,r,B,e,p))}):wl(e)&&e.forEach(function(B,Z){T.set(Z,tt(B,t,r,Z,e,p))});var U=_?x?Rs:Ps:x?Me:we,z=b?n:U(e);return Qe(z||e,function(B,Z){z&&(Z=B,B=e[Z]),xr(T,Z,tt(B,t,r,Z,e,p))}),T}function bT(e){var t=we(e);return function(r){return au(r,e,t)}}function au(e,t,r){var a=r.length;if(e==null)return!a;for(e=oe(e);a--;){var c=r[a],p=t[c],T=e[c];if(T===n&&!(c in e)||!p(T))return!1}return!0}function cu(e,t,r){if(typeof e!="function")throw new je(m);return br(function(){e.apply(n,r)},t)}function Sr(e,t,r,a){var c=-1,p=eo,T=!0,h=e.length,x=[],_=t.length;if(!h)return x;r&&(t=ue(t,$e(r))),a?(p=Qi,T=!1):t.length>=i&&(p=dr,T=!1,t=new fn(t));e:for(;++c<h;){var b=e[c],L=r==null?b:r(b);if(b=a||b!==0?b:0,T&&L===L){for(var C=_;C--;)if(t[C]===L)continue e;x.push(b)}else p(t,L,a)||x.push(b)}return x}var Qt=Ou(yt),uu=Ou(gs,!0);function LT(e,t){var r=!0;return Qt(e,function(a,c,p){return r=!!t(a,c,p),r}),r}function xo(e,t,r){for(var a=-1,c=e.length;++a<c;){var p=e[a],T=t(p);if(T!=null&&(h===n?T===T&&!Ve(T):r(T,h)))var h=T,x=p}return x}function ET(e,t,r,a){var c=e.length;for(r=H(r),r<0&&(r=-r>c?0:c+r),a=a===n||a>c?c:H(a),a<0&&(a+=c),a=r>a?0:bl(a);r<a;)e[r++]=t;return e}function lu(e,t){var r=[];return Qt(e,function(a,c,p){t(a,c,p)&&r.push(a)}),r}function Le(e,t,r,a,c){var p=-1,T=e.length;for(r||(r=Th),c||(c=[]);++p<T;){var h=e[p];t>0&&r(h)?t>1?Le(h,t-1,r,a,c):Yt(c,h):a||(c[c.length]=h)}return c}var ds=Mu(),pu=Mu(!0);function yt(e,t){return e&&ds(e,t,we)}function gs(e,t){return e&&pu(e,t,we)}function So(e,t){return Kt(t,function(r){return Mt(e[r])})}function gn(e,t){t=en(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[St(t[r++])];return r&&r==a?e:n}function fu(e,t,r){var a=t(e);return $(e)?a:Yt(a,r(e))}function Pe(e){return e==null?e===n?rg:tg:ln&&ln in oe(e)?lh(e):Ah(e)}function ms(e,t){return e>t}function kT(e,t){return e!=null&&re.call(e,t)}function CT(e,t){return e!=null&&t in oe(e)}function PT(e,t,r){return e>=Ee(t,r)&&e<Se(t,r)}function Ts(e,t,r){for(var a=r?Qi:eo,c=e[0].length,p=e.length,T=p,h=w(p),x=1/0,_=[];T--;){var b=e[T];T&&t&&(b=ue(b,$e(t))),x=Ee(b.length,x),h[T]=!r&&(t||c>=120&&b.length>=120)?new fn(T&&b):n}b=e[0];var L=-1,C=h[0];e:for(;++L<c&&_.length<x;){var D=b[L],U=t?t(D):D;if(D=r||D!==0?D:0,!(C?dr(C,U):a(_,U,r))){for(T=p;--T;){var z=h[T];if(!(z?dr(z,U):a(e[T],U,r)))continue e}C&&C.push(U),_.push(D)}}return _}function RT(e,t,r,a){return yt(e,function(c,p,T){t(a,r(c),p,T)}),a}function vr(e,t,r){t=en(t,e),e=ju(e,t);var a=e==null?e:e[St(rt(t))];return a==null?n:Ge(a,e,r)}function du(e){return fe(e)&&Pe(e)==Cn}function DT(e){return fe(e)&&Pe(e)==fr}function NT(e){return fe(e)&&Pe(e)==ar}function wr(e,t,r,a,c){return e===t?!0:e==null||t==null||!fe(e)&&!fe(t)?e!==e&&t!==t:OT(e,t,r,a,wr,c)}function OT(e,t,r,a,c,p){var T=$(e),h=$(t),x=T?Kr:ke(e),_=h?Kr:ke(t);x=x==Cn?kt:x,_=_==Cn?kt:_;var b=x==kt,L=_==kt,C=x==_;if(C&&nn(e)){if(!nn(t))return!1;T=!0,b=!1}if(C&&!b)return p||(p=new lt),T||Hn(e)?zu(e,t,r,a,c,p):ch(e,t,x,r,a,c,p);if(!(r&pe)){var D=b&&re.call(e,"__wrapped__"),U=L&&re.call(t,"__wrapped__");if(D||U){var z=D?e.value():e,B=U?t.value():t;return p||(p=new lt),c(z,B,r,a,p)}}return C?(p||(p=new lt),uh(e,t,r,a,c,p)):!1}function MT(e){return fe(e)&&ke(e)==at}function hs(e,t,r,a){var c=r.length,p=c,T=!a;if(e==null)return!p;for(e=oe(e);c--;){var h=r[c];if(T&&h[2]?h[1]!==e[h[0]]:!(h[0]in e))return!1}for(;++c<p;){h=r[c];var x=h[0],_=e[x],b=h[1];if(T&&h[2]){if(_===n&&!(x in e))return!1}else{var L=new lt;if(a)var C=a(_,b,x,e,t,L);if(!(C===n?wr(b,_,pe|ye,a,L):C))return!1}}return!0}function gu(e){if(!le(e)||yh(e))return!1;var t=Mt(e)?Mm:bg;return t.test(Tn(e))}function FT(e){return fe(e)&&Pe(e)==ur}function UT(e){return fe(e)&&ke(e)==ct}function BT(e){return fe(e)&&Fo(e.length)&&!!ce[Pe(e)]}function mu(e){return typeof e=="function"?e:e==null?Fe:typeof e=="object"?$(e)?yu(e[0],e[1]):hu(e):Fl(e)}function ys(e){if(!_r(e))return $m(e);var t=[];for(var r in oe(e))re.call(e,r)&&r!="constructor"&&t.push(r);return t}function WT(e){if(!le(e))return wh(e);var t=_r(e),r=[];for(var a in e)a=="constructor"&&(t||!re.call(e,a))||r.push(a);return r}function xs(e,t){return e<t}function Tu(e,t){var r=-1,a=Oe(e)?w(e.length):[];return Qt(e,function(c,p,T){a[++r]=t(c,p,T)}),a}function hu(e){var t=Ns(e);return t.length==1&&t[0][2]?Ju(t[0][0],t[0][1]):function(r){return r===e||hs(r,e,t)}}function yu(e,t){return Ms(e)&&Xu(t)?Ju(St(e),t):function(r){var a=zs(r,e);return a===n&&a===t?Ks(r,e):wr(t,a,pe|ye)}}function vo(e,t,r,a,c){e!==t&&ds(t,function(p,T){if(c||(c=new lt),le(p))GT(e,t,T,r,vo,a,c);else{var h=a?a(Us(e,T),p,T+"",e,t,c):n;h===n&&(h=p),ps(e,T,h)}},Me)}function GT(e,t,r,a,c,p,T){var h=Us(e,r),x=Us(t,r),_=T.get(x);if(_){ps(e,r,_);return}var b=p?p(h,x,r+"",e,t,T):n,L=b===n;if(L){var C=$(x),D=!C&&nn(x),U=!C&&!D&&Hn(x);b=x,C||D||U?$(h)?b=h:me(h)?b=Ne(h):D?(L=!1,b=Cu(x,!0)):U?(L=!1,b=Pu(x,!0)):b=[]:Lr(x)||hn(x)?(b=h,hn(h)?b=Ll(h):(!le(h)||Mt(h))&&(b=Zu(x))):L=!1}L&&(T.set(x,b),c(b,x,a,p,T),T.delete(x)),ps(e,r,b)}function xu(e,t){var r=e.length;if(!!r)return t+=t<0?r:0,Ot(t,r)?e[t]:n}function Su(e,t,r){t.length?t=ue(t,function(p){return $(p)?function(T){return gn(T,p.length===1?p[0]:p)}:p}):t=[Fe];var a=-1;t=ue(t,$e(M()));var c=Tu(e,function(p,T,h){var x=ue(t,function(_){return _(p)});return{criteria:x,index:++a,value:p}});return gm(c,function(p,T){return eh(p,T,r)})}function $T(e,t){return vu(e,t,function(r,a){return Ks(e,a)})}function vu(e,t,r){for(var a=-1,c=t.length,p={};++a<c;){var T=t[a],h=gn(e,T);r(h,T)&&Ar(p,en(T,e),h)}return p}function HT(e){return function(t){return gn(t,e)}}function Ss(e,t,r,a){var c=a?dm:Dn,p=-1,T=t.length,h=e;for(e===t&&(t=Ne(t)),r&&(h=ue(e,$e(r)));++p<T;)for(var x=0,_=t[p],b=r?r(_):_;(x=c(h,b,x,a))>-1;)h!==e&&lo.call(h,x,1),lo.call(e,x,1);return e}function wu(e,t){for(var r=e?t.length:0,a=r-1;r--;){var c=t[r];if(r==a||c!==p){var p=c;Ot(c)?lo.call(e,c,1):Is(e,c)}}return e}function vs(e,t){return e+go(nu()*(t-e+1))}function VT(e,t,r,a){for(var c=-1,p=Se(fo((t-e)/(r||1)),0),T=w(p);p--;)T[a?p:++c]=e,e+=r;return T}function ws(e,t){var r="";if(!e||t<1||t>zt)return r;do t%2&&(r+=e),t=go(t/2),t&&(e+=e);while(t);return r}function Y(e,t){return Bs(Qu(e,t,Fe),e+"")}function qT(e){return iu(Vn(e))}function zT(e,t){var r=Vn(e);return Po(r,dn(t,0,r.length))}function Ar(e,t,r,a){if(!le(e))return e;t=en(t,e);for(var c=-1,p=t.length,T=p-1,h=e;h!=null&&++c<p;){var x=St(t[c]),_=r;if(x==="__proto__"||x==="constructor"||x==="prototype")return e;if(c!=T){var b=h[x];_=a?a(b,x,h):n,_===n&&(_=le(b)?b:Ot(t[c+1])?[]:{})}xr(h,x,_),h=h[x]}return e}var Au=mo?function(e,t){return mo.set(e,t),e}:Fe,KT=po?function(e,t){return po(e,"toString",{configurable:!0,enumerable:!1,value:Zs(t),writable:!0})}:Fe;function YT(e){return Po(Vn(e))}function nt(e,t,r){var a=-1,c=e.length;t<0&&(t=-t>c?0:c+t),r=r>c?c:r,r<0&&(r+=c),c=t>r?0:r-t>>>0,t>>>=0;for(var p=w(c);++a<c;)p[a]=e[a+t];return p}function ZT(e,t){var r;return Qt(e,function(a,c,p){return r=t(a,c,p),!r}),!!r}function wo(e,t,r){var a=0,c=e==null?a:e.length;if(typeof t=="number"&&t===t&&c<=Jd){for(;a<c;){var p=a+c>>>1,T=e[p];T!==null&&!Ve(T)&&(r?T<=t:T<t)?a=p+1:c=p}return c}return As(e,t,Fe,r)}function As(e,t,r,a){var c=0,p=e==null?0:e.length;if(p===0)return 0;t=r(t);for(var T=t!==t,h=t===null,x=Ve(t),_=t===n;c<p;){var b=go((c+p)/2),L=r(e[b]),C=L!==n,D=L===null,U=L===L,z=Ve(L);if(T)var B=a||U;else _?B=U&&(a||C):h?B=U&&C&&(a||!D):x?B=U&&C&&!D&&(a||!z):D||z?B=!1:B=a?L<=t:L<t;B?c=b+1:p=b}return Ee(p,Xd)}function Iu(e,t){for(var r=-1,a=e.length,c=0,p=[];++r<a;){var T=e[r],h=t?t(T):T;if(!r||!pt(h,x)){var x=h;p[c++]=T===0?0:T}}return p}function _u(e){return typeof e=="number"?e:Ve(e)?zr:+e}function He(e){if(typeof e=="string")return e;if($(e))return ue(e,He)+"";if(Ve(e))return ru?ru.call(e):"";var t=e+"";return t=="0"&&1/e==-cn?"-0":t}function jt(e,t,r){var a=-1,c=eo,p=e.length,T=!0,h=[],x=h;if(r)T=!1,c=Qi;else if(p>=i){var _=t?null:sh(e);if(_)return no(_);T=!1,c=dr,x=new fn}else x=t?[]:h;e:for(;++a<p;){var b=e[a],L=t?t(b):b;if(b=r||b!==0?b:0,T&&L===L){for(var C=x.length;C--;)if(x[C]===L)continue e;t&&x.push(L),h.push(b)}else c(x,L,r)||(x!==h&&x.push(L),h.push(b))}return h}function Is(e,t){return t=en(t,e),e=ju(e,t),e==null||delete e[St(rt(t))]}function bu(e,t,r,a){return Ar(e,t,r(gn(e,t)),a)}function Ao(e,t,r,a){for(var c=e.length,p=a?c:-1;(a?p--:++p<c)&&t(e[p],p,e););return r?nt(e,a?0:p,a?p+1:c):nt(e,a?p+1:0,a?c:p)}function Lu(e,t){var r=e;return r instanceof X&&(r=r.value()),ji(t,function(a,c){return c.func.apply(c.thisArg,Yt([a],c.args))},r)}function _s(e,t,r){var a=e.length;if(a<2)return a?jt(e[0]):[];for(var c=-1,p=w(a);++c<a;)for(var T=e[c],h=-1;++h<a;)h!=c&&(p[c]=Sr(p[c]||T,e[h],t,r));return jt(Le(p,1),t,r)}function Eu(e,t,r){for(var a=-1,c=e.length,p=t.length,T={};++a<c;){var h=a<p?t[a]:n;r(T,e[a],h)}return T}function bs(e){return me(e)?e:[]}function Ls(e){return typeof e=="function"?e:Fe}function en(e,t){return $(e)?e:Ms(e,t)?[e]:rl(te(e))}var XT=Y;function tn(e,t,r){var a=e.length;return r=r===n?a:r,!t&&r>=a?e:nt(e,t,r)}var ku=Fm||function(e){return ve.clearTimeout(e)};function Cu(e,t){if(t)return e.slice();var r=e.length,a=Jc?Jc(r):new e.constructor(r);return e.copy(a),a}function Es(e){var t=new e.constructor(e.byteLength);return new co(t).set(new co(e)),t}function JT(e,t){var r=t?Es(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function QT(e){var t=new e.constructor(e.source,dc.exec(e));return t.lastIndex=e.lastIndex,t}function jT(e){return yr?oe(yr.call(e)):{}}function Pu(e,t){var r=t?Es(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Ru(e,t){if(e!==t){var r=e!==n,a=e===null,c=e===e,p=Ve(e),T=t!==n,h=t===null,x=t===t,_=Ve(t);if(!h&&!_&&!p&&e>t||p&&T&&x&&!h&&!_||a&&T&&x||!r&&x||!c)return 1;if(!a&&!p&&!_&&e<t||_&&r&&c&&!a&&!p||h&&r&&c||!T&&c||!x)return-1}return 0}function eh(e,t,r){for(var a=-1,c=e.criteria,p=t.criteria,T=c.length,h=r.length;++a<T;){var x=Ru(c[a],p[a]);if(x){if(a>=h)return x;var _=r[a];return x*(_=="desc"?-1:1)}}return e.index-t.index}function Du(e,t,r,a){for(var c=-1,p=e.length,T=r.length,h=-1,x=t.length,_=Se(p-T,0),b=w(x+_),L=!a;++h<x;)b[h]=t[h];for(;++c<T;)(L||c<p)&&(b[r[c]]=e[c]);for(;_--;)b[h++]=e[c++];return b}function Nu(e,t,r,a){for(var c=-1,p=e.length,T=-1,h=r.length,x=-1,_=t.length,b=Se(p-h,0),L=w(b+_),C=!a;++c<b;)L[c]=e[c];for(var D=c;++x<_;)L[D+x]=t[x];for(;++T<h;)(C||c<p)&&(L[D+r[T]]=e[c++]);return L}function Ne(e,t){var r=-1,a=e.length;for(t||(t=w(a));++r<a;)t[r]=e[r];return t}function xt(e,t,r,a){var c=!r;r||(r={});for(var p=-1,T=t.length;++p<T;){var h=t[p],x=a?a(r[h],e[h],h,r,e):n;x===n&&(x=e[h]),c?Rt(r,h,x):xr(r,h,x)}return r}function th(e,t){return xt(e,Os(e),t)}function nh(e,t){return xt(e,Ku(e),t)}function Io(e,t){return function(r,a){var c=$(r)?am:IT,p=t?t():{};return c(r,e,M(a,2),p)}}function Wn(e){return Y(function(t,r){var a=-1,c=r.length,p=c>1?r[c-1]:n,T=c>2?r[2]:n;for(p=e.length>3&&typeof p=="function"?(c--,p):n,T&&Re(r[0],r[1],T)&&(p=c<3?n:p,c=1),t=oe(t);++a<c;){var h=r[a];h&&e(t,h,a,p)}return t})}function Ou(e,t){return function(r,a){if(r==null)return r;if(!Oe(r))return e(r,a);for(var c=r.length,p=t?c:-1,T=oe(r);(t?p--:++p<c)&&a(T[p],p,T)!==!1;);return r}}function Mu(e){return function(t,r,a){for(var c=-1,p=oe(t),T=a(t),h=T.length;h--;){var x=T[e?h:++c];if(r(p[x],x,p)===!1)break}return t}}function rh(e,t,r){var a=t&ge,c=Ir(e);function p(){var T=this&&this!==ve&&this instanceof p?c:e;return T.apply(a?r:this,arguments)}return p}function Fu(e){return function(t){t=te(t);var r=Nn(t)?ut(t):n,a=r?r[0]:t.charAt(0),c=r?tn(r,1).join(""):t.slice(1);return a[e]()+c}}function Gn(e){return function(t){return ji(Ol(Nl(t).replace(Kg,"")),e,"")}}function Ir(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Bn(e.prototype),a=e.apply(r,t);return le(a)?a:r}}function oh(e,t,r){var a=Ir(e);function c(){for(var p=arguments.length,T=w(p),h=p,x=$n(c);h--;)T[h]=arguments[h];var _=p<3&&T[0]!==x&&T[p-1]!==x?[]:Zt(T,x);if(p-=_.length,p<r)return $u(e,t,_o,c.placeholder,n,T,_,n,n,r-p);var b=this&&this!==ve&&this instanceof c?a:e;return Ge(b,this,T)}return c}function Uu(e){return function(t,r,a){var c=oe(t);if(!Oe(t)){var p=M(r,3);t=we(t),r=function(h){return p(c[h],h,c)}}var T=e(t,r,a);return T>-1?c[p?t[T]:T]:n}}function Bu(e){return Nt(function(t){var r=t.length,a=r,c=et.prototype.thru;for(e&&t.reverse();a--;){var p=t[a];if(typeof p!="function")throw new je(m);if(c&&!T&&ko(p)=="wrapper")var T=new et([],!0)}for(a=T?a:r;++a<r;){p=t[a];var h=ko(p),x=h=="wrapper"?Ds(p):n;x&&Fs(x[0])&&x[1]==(Et|mt|Tt|ir)&&!x[4].length&&x[9]==1?T=T[ko(x[0])].apply(T,x[3]):T=p.length==1&&Fs(p)?T[h]():T.thru(p)}return function(){var _=arguments,b=_[0];if(T&&_.length==1&&$(b))return T.plant(b).value();for(var L=0,C=r?t[L].apply(this,_):b;++L<r;)C=t[L].call(this,C);return C}})}function _o(e,t,r,a,c,p,T,h,x,_){var b=t&Et,L=t&ge,C=t&be,D=t&(mt|En),U=t&Di,z=C?n:Ir(e);function B(){for(var Z=arguments.length,J=w(Z),qe=Z;qe--;)J[qe]=arguments[qe];if(D)var De=$n(B),ze=Tm(J,De);if(a&&(J=Du(J,a,c,D)),p&&(J=Nu(J,p,T,D)),Z-=ze,D&&Z<_){var Te=Zt(J,De);return $u(e,t,_o,B.placeholder,r,J,Te,h,x,_-Z)}var ft=L?r:this,Ut=C?ft[e]:e;return Z=J.length,h?J=Ih(J,h):U&&Z>1&&J.reverse(),b&&x<Z&&(J.length=x),this&&this!==ve&&this instanceof B&&(Ut=z||Ir(Ut)),Ut.apply(ft,J)}return B}function Wu(e,t){return function(r,a){return RT(r,e,t(a),{})}}function bo(e,t){return function(r,a){var c;if(r===n&&a===n)return t;if(r!==n&&(c=r),a!==n){if(c===n)return a;typeof r=="string"||typeof a=="string"?(r=He(r),a=He(a)):(r=_u(r),a=_u(a)),c=e(r,a)}return c}}function ks(e){return Nt(function(t){return t=ue(t,$e(M())),Y(function(r){var a=this;return e(t,function(c){return Ge(c,a,r)})})})}function Lo(e,t){t=t===n?" ":He(t);var r=t.length;if(r<2)return r?ws(t,e):t;var a=ws(t,fo(e/On(t)));return Nn(t)?tn(ut(a),0,e).join(""):a.slice(0,e)}function ih(e,t,r,a){var c=t&ge,p=Ir(e);function T(){for(var h=-1,x=arguments.length,_=-1,b=a.length,L=w(b+x),C=this&&this!==ve&&this instanceof T?p:e;++_<b;)L[_]=a[_];for(;x--;)L[_++]=arguments[++h];return Ge(C,c?r:this,L)}return T}function Gu(e){return function(t,r,a){return a&&typeof a!="number"&&Re(t,r,a)&&(r=a=n),t=Ft(t),r===n?(r=t,t=0):r=Ft(r),a=a===n?t<r?1:-1:Ft(a),VT(t,r,a,e)}}function Eo(e){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=ot(t),r=ot(r)),e(t,r)}}function $u(e,t,r,a,c,p,T,h,x,_){var b=t&mt,L=b?T:n,C=b?n:T,D=b?p:n,U=b?n:p;t|=b?Tt:kn,t&=~(b?kn:Tt),t&sc||(t&=~(ge|be));var z=[e,t,c,D,L,U,C,h,x,_],B=r.apply(n,z);return Fs(e)&&el(B,z),B.placeholder=a,tl(B,e,t)}function Cs(e){var t=xe[e];return function(r,a){if(r=ot(r),a=a==null?0:Ee(H(a),292),a&&tu(r)){var c=(te(r)+"e").split("e"),p=t(c[0]+"e"+(+c[1]+a));return c=(te(p)+"e").split("e"),+(c[0]+"e"+(+c[1]-a))}return t(r)}}var sh=Fn&&1/no(new Fn([,-0]))[1]==cn?function(e){return new Fn(e)}:Qs;function Hu(e){return function(t){var r=ke(t);return r==at?ss(t):r==ct?Am(t):mm(t,e(t))}}function Dt(e,t,r,a,c,p,T,h){var x=t&be;if(!x&&typeof e!="function")throw new je(m);var _=a?a.length:0;if(_||(t&=~(Tt|kn),a=c=n),T=T===n?T:Se(H(T),0),h=h===n?h:H(h),_-=c?c.length:0,t&kn){var b=a,L=c;a=c=n}var C=x?n:Ds(e),D=[e,t,r,a,c,b,L,p,T,h];if(C&&vh(D,C),e=D[0],t=D[1],r=D[2],a=D[3],c=D[4],h=D[9]=D[9]===n?x?0:e.length:Se(D[9]-_,0),!h&&t&(mt|En)&&(t&=~(mt|En)),!t||t==ge)var U=rh(e,t,r);else t==mt||t==En?U=oh(e,t,h):(t==Tt||t==(ge|Tt))&&!c.length?U=ih(e,t,r,a):U=_o.apply(n,D);var z=C?Au:el;return tl(z(U,D),e,t)}function Vu(e,t,r,a){return e===n||pt(e,Mn[r])&&!re.call(a,r)?t:e}function qu(e,t,r,a,c,p){return le(e)&&le(t)&&(p.set(t,e),vo(e,t,n,qu,p),p.delete(t)),e}function ah(e){return Lr(e)?n:e}function zu(e,t,r,a,c,p){var T=r&pe,h=e.length,x=t.length;if(h!=x&&!(T&&x>h))return!1;var _=p.get(e),b=p.get(t);if(_&&b)return _==t&&b==e;var L=-1,C=!0,D=r&ye?new fn:n;for(p.set(e,t),p.set(t,e);++L<h;){var U=e[L],z=t[L];if(a)var B=T?a(z,U,L,t,e,p):a(U,z,L,e,t,p);if(B!==n){if(B)continue;C=!1;break}if(D){if(!es(t,function(Z,J){if(!dr(D,J)&&(U===Z||c(U,Z,r,a,p)))return D.push(J)})){C=!1;break}}else if(!(U===z||c(U,z,r,a,p))){C=!1;break}}return p.delete(e),p.delete(t),C}function ch(e,t,r,a,c,p,T){switch(r){case Pn:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case fr:return!(e.byteLength!=t.byteLength||!p(new co(e),new co(t)));case sr:case ar:case cr:return pt(+e,+t);case Yr:return e.name==t.name&&e.message==t.message;case ur:case lr:return e==t+"";case at:var h=ss;case ct:var x=a&pe;if(h||(h=no),e.size!=t.size&&!x)return!1;var _=T.get(e);if(_)return _==t;a|=ye,T.set(e,t);var b=zu(h(e),h(t),a,c,p,T);return T.delete(e),b;case Xr:if(yr)return yr.call(e)==yr.call(t)}return!1}function uh(e,t,r,a,c,p){var T=r&pe,h=Ps(e),x=h.length,_=Ps(t),b=_.length;if(x!=b&&!T)return!1;for(var L=x;L--;){var C=h[L];if(!(T?C in t:re.call(t,C)))return!1}var D=p.get(e),U=p.get(t);if(D&&U)return D==t&&U==e;var z=!0;p.set(e,t),p.set(t,e);for(var B=T;++L<x;){C=h[L];var Z=e[C],J=t[C];if(a)var qe=T?a(J,Z,C,t,e,p):a(Z,J,C,e,t,p);if(!(qe===n?Z===J||c(Z,J,r,a,p):qe)){z=!1;break}B||(B=C=="constructor")}if(z&&!B){var De=e.constructor,ze=t.constructor;De!=ze&&"constructor"in e&&"constructor"in t&&!(typeof De=="function"&&De instanceof De&&typeof ze=="function"&&ze instanceof ze)&&(z=!1)}return p.delete(e),p.delete(t),z}function Nt(e){return Bs(Qu(e,n,al),e+"")}function Ps(e){return fu(e,we,Os)}function Rs(e){return fu(e,Me,Ku)}var Ds=mo?function(e){return mo.get(e)}:Qs;function ko(e){for(var t=e.name+"",r=Un[t],a=re.call(Un,t)?r.length:0;a--;){var c=r[a],p=c.func;if(p==null||p==e)return c.name}return t}function $n(e){var t=re.call(l,"placeholder")?l:e;return t.placeholder}function M(){var e=l.iteratee||Xs;return e=e===Xs?mu:e,arguments.length?e(arguments[0],arguments[1]):e}function Co(e,t){var r=e.__data__;return hh(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Ns(e){for(var t=we(e),r=t.length;r--;){var a=t[r],c=e[a];t[r]=[a,c,Xu(c)]}return t}function mn(e,t){var r=Sm(e,t);return gu(r)?r:n}function lh(e){var t=re.call(e,ln),r=e[ln];try{e[ln]=n;var a=!0}catch(p){}var c=so.call(e);return a&&(t?e[ln]=r:delete e[ln]),c}var Os=cs?function(e){return e==null?[]:(e=oe(e),Kt(cs(e),function(t){return jc.call(e,t)}))}:js,Ku=cs?function(e){for(var t=[];e;)Yt(t,Os(e)),e=uo(e);return t}:js,ke=Pe;(us&&ke(new us(new ArrayBuffer(1)))!=Pn||mr&&ke(new mr)!=at||ls&&ke(ls.resolve())!=uc||Fn&&ke(new Fn)!=ct||Tr&&ke(new Tr)!=pr)&&(ke=function(e){var t=Pe(e),r=t==kt?e.constructor:n,a=r?Tn(r):"";if(a)switch(a){case zm:return Pn;case Km:return at;case Ym:return uc;case Zm:return ct;case Xm:return pr}return t});function ph(e,t,r){for(var a=-1,c=r.length;++a<c;){var p=r[a],T=p.size;switch(p.type){case"drop":e+=T;break;case"dropRight":t-=T;break;case"take":t=Ee(t,e+T);break;case"takeRight":e=Se(e,t-T);break}}return{start:e,end:t}}function fh(e){var t=e.match(yg);return t?t[1].split(xg):[]}function Yu(e,t,r){t=en(t,e);for(var a=-1,c=t.length,p=!1;++a<c;){var T=St(t[a]);if(!(p=e!=null&&r(e,T)))break;e=e[T]}return p||++a!=c?p:(c=e==null?0:e.length,!!c&&Fo(c)&&Ot(T,c)&&($(e)||hn(e)))}function dh(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&re.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function Zu(e){return typeof e.constructor=="function"&&!_r(e)?Bn(uo(e)):{}}function gh(e,t,r){var a=e.constructor;switch(t){case fr:return Es(e);case sr:case ar:return new a(+e);case Pn:return JT(e,r);case Ni:case Oi:case Mi:case Fi:case Ui:case Bi:case Wi:case Gi:case $i:return Pu(e,r);case at:return new a;case cr:case lr:return new a(e);case ur:return QT(e);case ct:return new a;case Xr:return jT(e)}}function mh(e,t){var r=t.length;if(!r)return e;var a=r-1;return t[a]=(r>1?"& ":"")+t[a],t=t.join(r>2?", ":" "),e.replace(hg,`{
|
|
1
|
+
"use strict";var Wv=Object.create;var Er=Object.defineProperty,Gv=Object.defineProperties,$v=Object.getOwnPropertyDescriptor,Hv=Object.getOwnPropertyDescriptors,Vv=Object.getOwnPropertyNames,Wo=Object.getOwnPropertySymbols,qv=Object.getPrototypeOf,ta=Object.prototype.hasOwnProperty,Wl=Object.prototype.propertyIsEnumerable;var Bl=(n,o,i)=>o in n?Er(n,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[o]=i,O=(n,o)=>{for(var i in o||(o={}))ta.call(o,i)&&Bl(n,i,o[i]);if(Wo)for(var i of Wo(o))Wl.call(o,i)&&Bl(n,i,o[i]);return n},j=(n,o)=>Gv(n,Hv(o));var Go=(n,o)=>{var i={};for(var u in n)ta.call(n,u)&&o.indexOf(u)<0&&(i[u]=n[u]);if(n!=null&&Wo)for(var u of Wo(n))o.indexOf(u)<0&&Wl.call(n,u)&&(i[u]=n[u]);return i};var W=(n,o)=>()=>(n&&(o=n(n=0)),o);var kr=(n,o)=>()=>(o||n((o={exports:{}}).exports,o),o.exports),yn=(n,o)=>{for(var i in o)Er(n,i,{get:o[i],enumerable:!0})},Gl=(n,o,i,u)=>{if(o&&typeof o=="object"||typeof o=="function")for(let m of Vv(o))!ta.call(n,m)&&m!==i&&Er(n,m,{get:()=>o[m],enumerable:!(u=$v(o,m))||u.enumerable});return n};var K=(n,o,i)=>(i=n!=null?Wv(qv(n)):{},Gl(o||!n||!n.__esModule?Er(i,"default",{value:n,enumerable:!0}):i,n)),Cr=n=>Gl(Er({},"__esModule",{value:!0}),n);var V=(n,o,i)=>new Promise((u,m)=>{var v=E=>{try{k(i.next(E))}catch(N){m(N)}},S=E=>{try{k(i.throw(E))}catch(N){m(N)}},k=E=>E.done?u(E.value):Promise.resolve(E.value).then(v,S);k((i=i.apply(n,o)).next())});var Vl=kr($o=>{"use strict";s();$o.byteLength=Kv;$o.toByteArray=Zv;$o.fromByteArray=Qv;var vt=[],it=[],zv=typeof Uint8Array!="undefined"?Uint8Array:Array,na="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(xn=0,$l=na.length;xn<$l;++xn)vt[xn]=na[xn],it[na.charCodeAt(xn)]=xn;var xn,$l;it["-".charCodeAt(0)]=62;it["_".charCodeAt(0)]=63;function Hl(n){var o=n.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=n.indexOf("=");i===-1&&(i=o);var u=i===o?0:4-i%4;return[i,u]}function Kv(n){var o=Hl(n),i=o[0],u=o[1];return(i+u)*3/4-u}function Yv(n,o,i){return(o+i)*3/4-i}function Zv(n){var o,i=Hl(n),u=i[0],m=i[1],v=new zv(Yv(n,u,m)),S=0,k=m>0?u-4:u,E;for(E=0;E<k;E+=4)o=it[n.charCodeAt(E)]<<18|it[n.charCodeAt(E+1)]<<12|it[n.charCodeAt(E+2)]<<6|it[n.charCodeAt(E+3)],v[S++]=o>>16&255,v[S++]=o>>8&255,v[S++]=o&255;return m===2&&(o=it[n.charCodeAt(E)]<<2|it[n.charCodeAt(E+1)]>>4,v[S++]=o&255),m===1&&(o=it[n.charCodeAt(E)]<<10|it[n.charCodeAt(E+1)]<<4|it[n.charCodeAt(E+2)]>>2,v[S++]=o>>8&255,v[S++]=o&255),v}function Xv(n){return vt[n>>18&63]+vt[n>>12&63]+vt[n>>6&63]+vt[n&63]}function Jv(n,o,i){for(var u,m=[],v=o;v<i;v+=3)u=(n[v]<<16&16711680)+(n[v+1]<<8&65280)+(n[v+2]&255),m.push(Xv(u));return m.join("")}function Qv(n){for(var o,i=n.length,u=i%3,m=[],v=16383,S=0,k=i-u;S<k;S+=v)m.push(Jv(n,S,S+v>k?k:S+v));return u===1?(o=n[i-1],m.push(vt[o>>2]+vt[o<<4&63]+"==")):u===2&&(o=(n[i-2]<<8)+n[i-1],m.push(vt[o>>10]+vt[o>>4&63]+vt[o<<2&63]+"=")),m.join("")}});var ql=kr(ra=>{s();ra.read=function(n,o,i,u,m){var v,S,k=m*8-u-1,E=(1<<k)-1,N=E>>1,q=-7,F=i?m-1:0,pe=i?-1:1,ye=n[o+F];for(F+=pe,v=ye&(1<<-q)-1,ye>>=-q,q+=k;q>0;v=v*256+n[o+F],F+=pe,q-=8);for(S=v&(1<<-q)-1,v>>=-q,q+=u;q>0;S=S*256+n[o+F],F+=pe,q-=8);if(v===0)v=1-N;else{if(v===E)return S?NaN:(ye?-1:1)*(1/0);S=S+Math.pow(2,u),v=v-N}return(ye?-1:1)*S*Math.pow(2,v-u)};ra.write=function(n,o,i,u,m,v){var S,k,E,N=v*8-m-1,q=(1<<N)-1,F=q>>1,pe=m===23?Math.pow(2,-24)-Math.pow(2,-77):0,ye=u?0:v-1,ge=u?1:-1,be=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(k=isNaN(o)?1:0,S=q):(S=Math.floor(Math.log(o)/Math.LN2),o*(E=Math.pow(2,-S))<1&&(S--,E*=2),S+F>=1?o+=pe/E:o+=pe*Math.pow(2,1-F),o*E>=2&&(S++,E/=2),S+F>=q?(k=0,S=q):S+F>=1?(k=(o*E-1)*Math.pow(2,m),S=S+F):(k=o*Math.pow(2,F-1)*Math.pow(2,m),S=0));m>=8;n[i+ye]=k&255,ye+=ge,k/=256,m-=8);for(S=S<<m|k,N+=m;N>0;n[i+ye]=S&255,ye+=ge,S/=256,N-=8);n[i+ye-ge]|=be*128}});var op=kr(zn=>{"use strict";s();var oa=Vl(),qn=ql(),zl=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;zn.Buffer=I;zn.SlowBuffer=o0;zn.INSPECT_MAX_BYTES=50;var Ho=2147483647;zn.kMaxLength=Ho;I.TYPED_ARRAY_SUPPORT=jv();!I.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 jv(){try{var n=new Uint8Array(1),o={foo:function(){return 42}};return Object.setPrototypeOf(o,Uint8Array.prototype),Object.setPrototypeOf(n,o),n.foo()===42}catch(i){return!1}}Object.defineProperty(I.prototype,"parent",{enumerable:!0,get:function(){if(!!I.isBuffer(this))return this.buffer}});Object.defineProperty(I.prototype,"offset",{enumerable:!0,get:function(){if(!!I.isBuffer(this))return this.byteOffset}});function Bt(n){if(n>Ho)throw new RangeError('The value "'+n+'" is invalid for option "size"');var o=new Uint8Array(n);return Object.setPrototypeOf(o,I.prototype),o}function I(n,o,i){if(typeof n=="number"){if(typeof o=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ca(n)}return Zl(n,o,i)}I.poolSize=8192;function Zl(n,o,i){if(typeof n=="string")return t0(n,o);if(ArrayBuffer.isView(n))return n0(n);if(n==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n);if(wt(n,ArrayBuffer)||n&&wt(n.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(wt(n,SharedArrayBuffer)||n&&wt(n.buffer,SharedArrayBuffer)))return sa(n,o,i);if(typeof n=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var u=n.valueOf&&n.valueOf();if(u!=null&&u!==n)return I.from(u,o,i);var m=r0(n);if(m)return m;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof n[Symbol.toPrimitive]=="function")return I.from(n[Symbol.toPrimitive]("string"),o,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n)}I.from=function(n,o,i){return Zl(n,o,i)};Object.setPrototypeOf(I.prototype,Uint8Array.prototype);Object.setPrototypeOf(I,Uint8Array);function Xl(n){if(typeof n!="number")throw new TypeError('"size" argument must be of type number');if(n<0)throw new RangeError('The value "'+n+'" is invalid for option "size"')}function e0(n,o,i){return Xl(n),n<=0?Bt(n):o!==void 0?typeof i=="string"?Bt(n).fill(o,i):Bt(n).fill(o):Bt(n)}I.alloc=function(n,o,i){return e0(n,o,i)};function ca(n){return Xl(n),Bt(n<0?0:ua(n)|0)}I.allocUnsafe=function(n){return ca(n)};I.allocUnsafeSlow=function(n){return ca(n)};function t0(n,o){if((typeof o!="string"||o==="")&&(o="utf8"),!I.isEncoding(o))throw new TypeError("Unknown encoding: "+o);var i=Jl(n,o)|0,u=Bt(i),m=u.write(n,o);return m!==i&&(u=u.slice(0,m)),u}function ia(n){for(var o=n.length<0?0:ua(n.length)|0,i=Bt(o),u=0;u<o;u+=1)i[u]=n[u]&255;return i}function n0(n){if(wt(n,Uint8Array)){var o=new Uint8Array(n);return sa(o.buffer,o.byteOffset,o.byteLength)}return ia(n)}function sa(n,o,i){if(o<0||n.byteLength<o)throw new RangeError('"offset" is outside of buffer bounds');if(n.byteLength<o+(i||0))throw new RangeError('"length" is outside of buffer bounds');var u;return o===void 0&&i===void 0?u=new Uint8Array(n):i===void 0?u=new Uint8Array(n,o):u=new Uint8Array(n,o,i),Object.setPrototypeOf(u,I.prototype),u}function r0(n){if(I.isBuffer(n)){var o=ua(n.length)|0,i=Bt(o);return i.length===0||n.copy(i,0,0,o),i}if(n.length!==void 0)return typeof n.length!="number"||la(n.length)?Bt(0):ia(n);if(n.type==="Buffer"&&Array.isArray(n.data))return ia(n.data)}function ua(n){if(n>=Ho)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ho.toString(16)+" bytes");return n|0}function o0(n){return+n!=n&&(n=0),I.alloc(+n)}I.isBuffer=function(o){return o!=null&&o._isBuffer===!0&&o!==I.prototype};I.compare=function(o,i){if(wt(o,Uint8Array)&&(o=I.from(o,o.offset,o.byteLength)),wt(i,Uint8Array)&&(i=I.from(i,i.offset,i.byteLength)),!I.isBuffer(o)||!I.isBuffer(i))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(o===i)return 0;for(var u=o.length,m=i.length,v=0,S=Math.min(u,m);v<S;++v)if(o[v]!==i[v]){u=o[v],m=i[v];break}return u<m?-1:m<u?1:0};I.isEncoding=function(o){switch(String(o).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};I.concat=function(o,i){if(!Array.isArray(o))throw new TypeError('"list" argument must be an Array of Buffers');if(o.length===0)return I.alloc(0);var u;if(i===void 0)for(i=0,u=0;u<o.length;++u)i+=o[u].length;var m=I.allocUnsafe(i),v=0;for(u=0;u<o.length;++u){var S=o[u];if(wt(S,Uint8Array))v+S.length>m.length?I.from(S).copy(m,v):Uint8Array.prototype.set.call(m,S,v);else if(I.isBuffer(S))S.copy(m,v);else throw new TypeError('"list" argument must be an Array of Buffers');v+=S.length}return m};function Jl(n,o){if(I.isBuffer(n))return n.length;if(ArrayBuffer.isView(n)||wt(n,ArrayBuffer))return n.byteLength;if(typeof n!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof n);var i=n.length,u=arguments.length>2&&arguments[2]===!0;if(!u&&i===0)return 0;for(var m=!1;;)switch(o){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return aa(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i*2;case"hex":return i>>>1;case"base64":return rp(n).length;default:if(m)return u?-1:aa(n).length;o=(""+o).toLowerCase(),m=!0}}I.byteLength=Jl;function i0(n,o,i){var u=!1;if((o===void 0||o<0)&&(o=0),o>this.length||((i===void 0||i>this.length)&&(i=this.length),i<=0)||(i>>>=0,o>>>=0,i<=o))return"";for(n||(n="utf8");;)switch(n){case"hex":return m0(this,o,i);case"utf8":case"utf-8":return jl(this,o,i);case"ascii":return d0(this,o,i);case"latin1":case"binary":return g0(this,o,i);case"base64":return p0(this,o,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T0(this,o,i);default:if(u)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),u=!0}}I.prototype._isBuffer=!0;function Sn(n,o,i){var u=n[o];n[o]=n[i],n[i]=u}I.prototype.swap16=function(){var o=this.length;if(o%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;i<o;i+=2)Sn(this,i,i+1);return this};I.prototype.swap32=function(){var o=this.length;if(o%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var i=0;i<o;i+=4)Sn(this,i,i+3),Sn(this,i+1,i+2);return this};I.prototype.swap64=function(){var o=this.length;if(o%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var i=0;i<o;i+=8)Sn(this,i,i+7),Sn(this,i+1,i+6),Sn(this,i+2,i+5),Sn(this,i+3,i+4);return this};I.prototype.toString=function(){var o=this.length;return o===0?"":arguments.length===0?jl(this,0,o):i0.apply(this,arguments)};I.prototype.toLocaleString=I.prototype.toString;I.prototype.equals=function(o){if(!I.isBuffer(o))throw new TypeError("Argument must be a Buffer");return this===o?!0:I.compare(this,o)===0};I.prototype.inspect=function(){var o="",i=zn.INSPECT_MAX_BYTES;return o=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(o+=" ... "),"<Buffer "+o+">"};zl&&(I.prototype[zl]=I.prototype.inspect);I.prototype.compare=function(o,i,u,m,v){if(wt(o,Uint8Array)&&(o=I.from(o,o.offset,o.byteLength)),!I.isBuffer(o))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof o);if(i===void 0&&(i=0),u===void 0&&(u=o?o.length:0),m===void 0&&(m=0),v===void 0&&(v=this.length),i<0||u>o.length||m<0||v>this.length)throw new RangeError("out of range index");if(m>=v&&i>=u)return 0;if(m>=v)return-1;if(i>=u)return 1;if(i>>>=0,u>>>=0,m>>>=0,v>>>=0,this===o)return 0;for(var S=v-m,k=u-i,E=Math.min(S,k),N=this.slice(m,v),q=o.slice(i,u),F=0;F<E;++F)if(N[F]!==q[F]){S=N[F],k=q[F];break}return S<k?-1:k<S?1:0};function Ql(n,o,i,u,m){if(n.length===0)return-1;if(typeof i=="string"?(u=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,la(i)&&(i=m?0:n.length-1),i<0&&(i=n.length+i),i>=n.length){if(m)return-1;i=n.length-1}else if(i<0)if(m)i=0;else return-1;if(typeof o=="string"&&(o=I.from(o,u)),I.isBuffer(o))return o.length===0?-1:Kl(n,o,i,u,m);if(typeof o=="number")return o=o&255,typeof Uint8Array.prototype.indexOf=="function"?m?Uint8Array.prototype.indexOf.call(n,o,i):Uint8Array.prototype.lastIndexOf.call(n,o,i):Kl(n,[o],i,u,m);throw new TypeError("val must be string, number or Buffer")}function Kl(n,o,i,u,m){var v=1,S=n.length,k=o.length;if(u!==void 0&&(u=String(u).toLowerCase(),u==="ucs2"||u==="ucs-2"||u==="utf16le"||u==="utf-16le")){if(n.length<2||o.length<2)return-1;v=2,S/=2,k/=2,i/=2}function E(ye,ge){return v===1?ye[ge]:ye.readUInt16BE(ge*v)}var N;if(m){var q=-1;for(N=i;N<S;N++)if(E(n,N)===E(o,q===-1?0:N-q)){if(q===-1&&(q=N),N-q+1===k)return q*v}else q!==-1&&(N-=N-q),q=-1}else for(i+k>S&&(i=S-k),N=i;N>=0;N--){for(var F=!0,pe=0;pe<k;pe++)if(E(n,N+pe)!==E(o,pe)){F=!1;break}if(F)return N}return-1}I.prototype.includes=function(o,i,u){return this.indexOf(o,i,u)!==-1};I.prototype.indexOf=function(o,i,u){return Ql(this,o,i,u,!0)};I.prototype.lastIndexOf=function(o,i,u){return Ql(this,o,i,u,!1)};function s0(n,o,i,u){i=Number(i)||0;var m=n.length-i;u?(u=Number(u),u>m&&(u=m)):u=m;var v=o.length;u>v/2&&(u=v/2);for(var S=0;S<u;++S){var k=parseInt(o.substr(S*2,2),16);if(la(k))return S;n[i+S]=k}return S}function a0(n,o,i,u){return Vo(aa(o,n.length-i),n,i,u)}function c0(n,o,i,u){return Vo(x0(o),n,i,u)}function u0(n,o,i,u){return Vo(rp(o),n,i,u)}function l0(n,o,i,u){return Vo(S0(o,n.length-i),n,i,u)}I.prototype.write=function(o,i,u,m){if(i===void 0)m="utf8",u=this.length,i=0;else if(u===void 0&&typeof i=="string")m=i,u=this.length,i=0;else if(isFinite(i))i=i>>>0,isFinite(u)?(u=u>>>0,m===void 0&&(m="utf8")):(m=u,u=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var v=this.length-i;if((u===void 0||u>v)&&(u=v),o.length>0&&(u<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");m||(m="utf8");for(var S=!1;;)switch(m){case"hex":return s0(this,o,i,u);case"utf8":case"utf-8":return a0(this,o,i,u);case"ascii":case"latin1":case"binary":return c0(this,o,i,u);case"base64":return u0(this,o,i,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return l0(this,o,i,u);default:if(S)throw new TypeError("Unknown encoding: "+m);m=(""+m).toLowerCase(),S=!0}};I.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function p0(n,o,i){return o===0&&i===n.length?oa.fromByteArray(n):oa.fromByteArray(n.slice(o,i))}function jl(n,o,i){i=Math.min(n.length,i);for(var u=[],m=o;m<i;){var v=n[m],S=null,k=v>239?4:v>223?3:v>191?2:1;if(m+k<=i){var E,N,q,F;switch(k){case 1:v<128&&(S=v);break;case 2:E=n[m+1],(E&192)===128&&(F=(v&31)<<6|E&63,F>127&&(S=F));break;case 3:E=n[m+1],N=n[m+2],(E&192)===128&&(N&192)===128&&(F=(v&15)<<12|(E&63)<<6|N&63,F>2047&&(F<55296||F>57343)&&(S=F));break;case 4:E=n[m+1],N=n[m+2],q=n[m+3],(E&192)===128&&(N&192)===128&&(q&192)===128&&(F=(v&15)<<18|(E&63)<<12|(N&63)<<6|q&63,F>65535&&F<1114112&&(S=F))}}S===null?(S=65533,k=1):S>65535&&(S-=65536,u.push(S>>>10&1023|55296),S=56320|S&1023),u.push(S),m+=k}return f0(u)}var Yl=4096;function f0(n){var o=n.length;if(o<=Yl)return String.fromCharCode.apply(String,n);for(var i="",u=0;u<o;)i+=String.fromCharCode.apply(String,n.slice(u,u+=Yl));return i}function d0(n,o,i){var u="";i=Math.min(n.length,i);for(var m=o;m<i;++m)u+=String.fromCharCode(n[m]&127);return u}function g0(n,o,i){var u="";i=Math.min(n.length,i);for(var m=o;m<i;++m)u+=String.fromCharCode(n[m]);return u}function m0(n,o,i){var u=n.length;(!o||o<0)&&(o=0),(!i||i<0||i>u)&&(i=u);for(var m="",v=o;v<i;++v)m+=v0[n[v]];return m}function T0(n,o,i){for(var u=n.slice(o,i),m="",v=0;v<u.length-1;v+=2)m+=String.fromCharCode(u[v]+u[v+1]*256);return m}I.prototype.slice=function(o,i){var u=this.length;o=~~o,i=i===void 0?u:~~i,o<0?(o+=u,o<0&&(o=0)):o>u&&(o=u),i<0?(i+=u,i<0&&(i=0)):i>u&&(i=u),i<o&&(i=o);var m=this.subarray(o,i);return Object.setPrototypeOf(m,I.prototype),m};function Ae(n,o,i){if(n%1!==0||n<0)throw new RangeError("offset is not uint");if(n+o>i)throw new RangeError("Trying to access beyond buffer length")}I.prototype.readUintLE=I.prototype.readUIntLE=function(o,i,u){o=o>>>0,i=i>>>0,u||Ae(o,i,this.length);for(var m=this[o],v=1,S=0;++S<i&&(v*=256);)m+=this[o+S]*v;return m};I.prototype.readUintBE=I.prototype.readUIntBE=function(o,i,u){o=o>>>0,i=i>>>0,u||Ae(o,i,this.length);for(var m=this[o+--i],v=1;i>0&&(v*=256);)m+=this[o+--i]*v;return m};I.prototype.readUint8=I.prototype.readUInt8=function(o,i){return o=o>>>0,i||Ae(o,1,this.length),this[o]};I.prototype.readUint16LE=I.prototype.readUInt16LE=function(o,i){return o=o>>>0,i||Ae(o,2,this.length),this[o]|this[o+1]<<8};I.prototype.readUint16BE=I.prototype.readUInt16BE=function(o,i){return o=o>>>0,i||Ae(o,2,this.length),this[o]<<8|this[o+1]};I.prototype.readUint32LE=I.prototype.readUInt32LE=function(o,i){return o=o>>>0,i||Ae(o,4,this.length),(this[o]|this[o+1]<<8|this[o+2]<<16)+this[o+3]*16777216};I.prototype.readUint32BE=I.prototype.readUInt32BE=function(o,i){return o=o>>>0,i||Ae(o,4,this.length),this[o]*16777216+(this[o+1]<<16|this[o+2]<<8|this[o+3])};I.prototype.readIntLE=function(o,i,u){o=o>>>0,i=i>>>0,u||Ae(o,i,this.length);for(var m=this[o],v=1,S=0;++S<i&&(v*=256);)m+=this[o+S]*v;return v*=128,m>=v&&(m-=Math.pow(2,8*i)),m};I.prototype.readIntBE=function(o,i,u){o=o>>>0,i=i>>>0,u||Ae(o,i,this.length);for(var m=i,v=1,S=this[o+--m];m>0&&(v*=256);)S+=this[o+--m]*v;return v*=128,S>=v&&(S-=Math.pow(2,8*i)),S};I.prototype.readInt8=function(o,i){return o=o>>>0,i||Ae(o,1,this.length),this[o]&128?(255-this[o]+1)*-1:this[o]};I.prototype.readInt16LE=function(o,i){o=o>>>0,i||Ae(o,2,this.length);var u=this[o]|this[o+1]<<8;return u&32768?u|4294901760:u};I.prototype.readInt16BE=function(o,i){o=o>>>0,i||Ae(o,2,this.length);var u=this[o+1]|this[o]<<8;return u&32768?u|4294901760:u};I.prototype.readInt32LE=function(o,i){return o=o>>>0,i||Ae(o,4,this.length),this[o]|this[o+1]<<8|this[o+2]<<16|this[o+3]<<24};I.prototype.readInt32BE=function(o,i){return o=o>>>0,i||Ae(o,4,this.length),this[o]<<24|this[o+1]<<16|this[o+2]<<8|this[o+3]};I.prototype.readFloatLE=function(o,i){return o=o>>>0,i||Ae(o,4,this.length),qn.read(this,o,!0,23,4)};I.prototype.readFloatBE=function(o,i){return o=o>>>0,i||Ae(o,4,this.length),qn.read(this,o,!1,23,4)};I.prototype.readDoubleLE=function(o,i){return o=o>>>0,i||Ae(o,8,this.length),qn.read(this,o,!0,52,8)};I.prototype.readDoubleBE=function(o,i){return o=o>>>0,i||Ae(o,8,this.length),qn.read(this,o,!1,52,8)};function Ue(n,o,i,u,m,v){if(!I.isBuffer(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(o>m||o<v)throw new RangeError('"value" argument is out of bounds');if(i+u>n.length)throw new RangeError("Index out of range")}I.prototype.writeUintLE=I.prototype.writeUIntLE=function(o,i,u,m){if(o=+o,i=i>>>0,u=u>>>0,!m){var v=Math.pow(2,8*u)-1;Ue(this,o,i,u,v,0)}var S=1,k=0;for(this[i]=o&255;++k<u&&(S*=256);)this[i+k]=o/S&255;return i+u};I.prototype.writeUintBE=I.prototype.writeUIntBE=function(o,i,u,m){if(o=+o,i=i>>>0,u=u>>>0,!m){var v=Math.pow(2,8*u)-1;Ue(this,o,i,u,v,0)}var S=u-1,k=1;for(this[i+S]=o&255;--S>=0&&(k*=256);)this[i+S]=o/k&255;return i+u};I.prototype.writeUint8=I.prototype.writeUInt8=function(o,i,u){return o=+o,i=i>>>0,u||Ue(this,o,i,1,255,0),this[i]=o&255,i+1};I.prototype.writeUint16LE=I.prototype.writeUInt16LE=function(o,i,u){return o=+o,i=i>>>0,u||Ue(this,o,i,2,65535,0),this[i]=o&255,this[i+1]=o>>>8,i+2};I.prototype.writeUint16BE=I.prototype.writeUInt16BE=function(o,i,u){return o=+o,i=i>>>0,u||Ue(this,o,i,2,65535,0),this[i]=o>>>8,this[i+1]=o&255,i+2};I.prototype.writeUint32LE=I.prototype.writeUInt32LE=function(o,i,u){return o=+o,i=i>>>0,u||Ue(this,o,i,4,4294967295,0),this[i+3]=o>>>24,this[i+2]=o>>>16,this[i+1]=o>>>8,this[i]=o&255,i+4};I.prototype.writeUint32BE=I.prototype.writeUInt32BE=function(o,i,u){return o=+o,i=i>>>0,u||Ue(this,o,i,4,4294967295,0),this[i]=o>>>24,this[i+1]=o>>>16,this[i+2]=o>>>8,this[i+3]=o&255,i+4};I.prototype.writeIntLE=function(o,i,u,m){if(o=+o,i=i>>>0,!m){var v=Math.pow(2,8*u-1);Ue(this,o,i,u,v-1,-v)}var S=0,k=1,E=0;for(this[i]=o&255;++S<u&&(k*=256);)o<0&&E===0&&this[i+S-1]!==0&&(E=1),this[i+S]=(o/k>>0)-E&255;return i+u};I.prototype.writeIntBE=function(o,i,u,m){if(o=+o,i=i>>>0,!m){var v=Math.pow(2,8*u-1);Ue(this,o,i,u,v-1,-v)}var S=u-1,k=1,E=0;for(this[i+S]=o&255;--S>=0&&(k*=256);)o<0&&E===0&&this[i+S+1]!==0&&(E=1),this[i+S]=(o/k>>0)-E&255;return i+u};I.prototype.writeInt8=function(o,i,u){return o=+o,i=i>>>0,u||Ue(this,o,i,1,127,-128),o<0&&(o=255+o+1),this[i]=o&255,i+1};I.prototype.writeInt16LE=function(o,i,u){return o=+o,i=i>>>0,u||Ue(this,o,i,2,32767,-32768),this[i]=o&255,this[i+1]=o>>>8,i+2};I.prototype.writeInt16BE=function(o,i,u){return o=+o,i=i>>>0,u||Ue(this,o,i,2,32767,-32768),this[i]=o>>>8,this[i+1]=o&255,i+2};I.prototype.writeInt32LE=function(o,i,u){return o=+o,i=i>>>0,u||Ue(this,o,i,4,2147483647,-2147483648),this[i]=o&255,this[i+1]=o>>>8,this[i+2]=o>>>16,this[i+3]=o>>>24,i+4};I.prototype.writeInt32BE=function(o,i,u){return o=+o,i=i>>>0,u||Ue(this,o,i,4,2147483647,-2147483648),o<0&&(o=4294967295+o+1),this[i]=o>>>24,this[i+1]=o>>>16,this[i+2]=o>>>8,this[i+3]=o&255,i+4};function ep(n,o,i,u,m,v){if(i+u>n.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function tp(n,o,i,u,m){return o=+o,i=i>>>0,m||ep(n,o,i,4,34028234663852886e22,-34028234663852886e22),qn.write(n,o,i,u,23,4),i+4}I.prototype.writeFloatLE=function(o,i,u){return tp(this,o,i,!0,u)};I.prototype.writeFloatBE=function(o,i,u){return tp(this,o,i,!1,u)};function np(n,o,i,u,m){return o=+o,i=i>>>0,m||ep(n,o,i,8,17976931348623157e292,-17976931348623157e292),qn.write(n,o,i,u,52,8),i+8}I.prototype.writeDoubleLE=function(o,i,u){return np(this,o,i,!0,u)};I.prototype.writeDoubleBE=function(o,i,u){return np(this,o,i,!1,u)};I.prototype.copy=function(o,i,u,m){if(!I.isBuffer(o))throw new TypeError("argument should be a Buffer");if(u||(u=0),!m&&m!==0&&(m=this.length),i>=o.length&&(i=o.length),i||(i=0),m>0&&m<u&&(m=u),m===u||o.length===0||this.length===0)return 0;if(i<0)throw new RangeError("targetStart out of bounds");if(u<0||u>=this.length)throw new RangeError("Index out of range");if(m<0)throw new RangeError("sourceEnd out of bounds");m>this.length&&(m=this.length),o.length-i<m-u&&(m=o.length-i+u);var v=m-u;return this===o&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(i,u,m):Uint8Array.prototype.set.call(o,this.subarray(u,m),i),v};I.prototype.fill=function(o,i,u,m){if(typeof o=="string"){if(typeof i=="string"?(m=i,i=0,u=this.length):typeof u=="string"&&(m=u,u=this.length),m!==void 0&&typeof m!="string")throw new TypeError("encoding must be a string");if(typeof m=="string"&&!I.isEncoding(m))throw new TypeError("Unknown encoding: "+m);if(o.length===1){var v=o.charCodeAt(0);(m==="utf8"&&v<128||m==="latin1")&&(o=v)}}else typeof o=="number"?o=o&255:typeof o=="boolean"&&(o=Number(o));if(i<0||this.length<i||this.length<u)throw new RangeError("Out of range index");if(u<=i)return this;i=i>>>0,u=u===void 0?this.length:u>>>0,o||(o=0);var S;if(typeof o=="number")for(S=i;S<u;++S)this[S]=o;else{var k=I.isBuffer(o)?o:I.from(o,m),E=k.length;if(E===0)throw new TypeError('The value "'+o+'" is invalid for argument "value"');for(S=0;S<u-i;++S)this[S+i]=k[S%E]}return this};var h0=/[^+/0-9A-Za-z-_]/g;function y0(n){if(n=n.split("=")[0],n=n.trim().replace(h0,""),n.length<2)return"";for(;n.length%4!==0;)n=n+"=";return n}function aa(n,o){o=o||1/0;for(var i,u=n.length,m=null,v=[],S=0;S<u;++S){if(i=n.charCodeAt(S),i>55295&&i<57344){if(!m){if(i>56319){(o-=3)>-1&&v.push(239,191,189);continue}else if(S+1===u){(o-=3)>-1&&v.push(239,191,189);continue}m=i;continue}if(i<56320){(o-=3)>-1&&v.push(239,191,189),m=i;continue}i=(m-55296<<10|i-56320)+65536}else m&&(o-=3)>-1&&v.push(239,191,189);if(m=null,i<128){if((o-=1)<0)break;v.push(i)}else if(i<2048){if((o-=2)<0)break;v.push(i>>6|192,i&63|128)}else if(i<65536){if((o-=3)<0)break;v.push(i>>12|224,i>>6&63|128,i&63|128)}else if(i<1114112){if((o-=4)<0)break;v.push(i>>18|240,i>>12&63|128,i>>6&63|128,i&63|128)}else throw new Error("Invalid code point")}return v}function x0(n){for(var o=[],i=0;i<n.length;++i)o.push(n.charCodeAt(i)&255);return o}function S0(n,o){for(var i,u,m,v=[],S=0;S<n.length&&!((o-=2)<0);++S)i=n.charCodeAt(S),u=i>>8,m=i%256,v.push(m),v.push(u);return v}function rp(n){return oa.toByteArray(y0(n))}function Vo(n,o,i,u){for(var m=0;m<u&&!(m+i>=o.length||m>=n.length);++m)o[m+i]=n[m];return m}function wt(n,o){return n instanceof o||n!=null&&n.constructor!=null&&n.constructor.name!=null&&n.constructor.name===o.name}function la(n){return n!==n}var v0=function(){for(var n="0123456789abcdef",o=new Array(256),i=0;i<16;++i)for(var u=i*16,m=0;m<16;++m)o[u+m]=n[i]+n[m];return o}()});var up=kr((MI,cp)=>{s();var he=cp.exports={},At,It;function pa(){throw new Error("setTimeout has not been defined")}function fa(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?At=setTimeout:At=pa}catch(n){At=pa}try{typeof clearTimeout=="function"?It=clearTimeout:It=fa}catch(n){It=fa}})();function ip(n){if(At===setTimeout)return setTimeout(n,0);if((At===pa||!At)&&setTimeout)return At=setTimeout,setTimeout(n,0);try{return At(n,0)}catch(o){try{return At.call(null,n,0)}catch(i){return At.call(this,n,0)}}}function w0(n){if(It===clearTimeout)return clearTimeout(n);if((It===fa||!It)&&clearTimeout)return It=clearTimeout,clearTimeout(n);try{return It(n)}catch(o){try{return It.call(null,n)}catch(i){return It.call(this,n)}}}var Wt=[],Kn=!1,vn,qo=-1;function A0(){!Kn||!vn||(Kn=!1,vn.length?Wt=vn.concat(Wt):qo=-1,Wt.length&&sp())}function sp(){if(!Kn){var n=ip(A0);Kn=!0;for(var o=Wt.length;o;){for(vn=Wt,Wt=[];++qo<o;)vn&&vn[qo].run();qo=-1,o=Wt.length}vn=null,Kn=!1,w0(n)}}he.nextTick=function(n){var o=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)o[i-1]=arguments[i];Wt.push(new ap(n,o)),Wt.length===1&&!Kn&&ip(sp)};function ap(n,o){this.fun=n,this.array=o}ap.prototype.run=function(){this.fun.apply(null,this.array)};he.title="browser";he.browser=!0;he.env={};he.argv=[];he.version="";he.versions={};function Gt(){}he.on=Gt;he.addListener=Gt;he.once=Gt;he.off=Gt;he.removeListener=Gt;he.removeAllListeners=Gt;he.emit=Gt;he.prependListener=Gt;he.prependOnceListener=Gt;he.listeners=function(n){return[]};he.binding=function(n){throw new Error("process.binding is not supported")};he.cwd=function(){return"/"};he.chdir=function(n){throw new Error("process.chdir is not supported")};he.umask=function(){return 0}});var d,g,I0,f,s=W(()=>{d=K(op()),g=K(up()),I0=function(n){function o(){var u=this||self;return delete n.prototype.__magic__,u}if(typeof globalThis=="object")return globalThis;if(this)return o();n.defineProperty(n.prototype,"__magic__",{configurable:!0,get:o});var i=__magic__;return i}(Object),f=I0});var wn=W(()=>{"use strict";s()});var lp=W(()=>{"use strict";s()});var pp=W(()=>{"use strict";s()});var fp=W(()=>{"use strict";s()});var de=W(()=>{"use strict";s()});var dp=W(()=>{"use strict";s()});var gp=W(()=>{"use strict";s()});var Be=W(()=>{"use strict";s()});var mp=W(()=>{"use strict";s()});var Tp=W(()=>{"use strict";s()});var Ie=W(()=>{"use strict";s();lp();pp();fp();de();dp();gp();Be();mp();Tp()});var da,hp,t_,yp,n_,xp,r_,o_,i_,Sp=W(()=>{"use strict";s();Ie();da={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:hp,egldLabel:t_}=da["devnet"],{chainId:yp,egldLabel:n_}=da["testnet"],{chainId:xp,egldLabel:r_}=da["mainnet"],o_={["devnet"]:hp,["testnet"]:yp,["mainnet"]:xp},i_={[hp]:"devnet",[yp]:"testnet",[xp]:"mainnet"}});var ga=W(()=>{"use strict";s()});var vp=W(()=>{"use strict";s()});var zo,ma=W(()=>{"use strict";s();zo="transaction-status-toast-id"});var _t,wp=W(()=>{"use strict";s();_t=require("@multiversx/sdk-web-wallet-provider")});var Ap=W(()=>{"use strict";s()});var Pr,Ko,Ip,Yo,_p,Yn,se=W(()=>{"use strict";s();wn();Sp();ga();vp();ma();wp();Ap();Pr=5e4,Ko=1e9,Ip=1,Yo="logout",_p="login",Yn="0"});var Rr,Zo=W(()=>{"use strict";s();Rr=()=>Date.now()/1e3});var bp=W(()=>{"use strict";s()});var Lp=W(()=>{"use strict";s()});var Ta=W(()=>{"use strict";s();Zo();bp();Lp()});var ya={};yn(ya,{getItem:()=>b0,localStorageKeys:()=>Ke,removeItem:()=>L0,setItem:()=>_0});var Ke,ha,_0,b0,L0,An=W(()=>{"use strict";s();Ta();Ke={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},ha=typeof localStorage!="undefined",_0=({key:n,data:o,expires:i})=>{!ha||localStorage.setItem(String(n),JSON.stringify({expires:i,data:o}))},b0=n=>{if(!ha)return;let o=localStorage.getItem(String(n));if(!o)return null;let i=JSON.parse(o);return!i||!i.hasOwnProperty("expires")||!i.hasOwnProperty("data")?null:Rr()>=i.expires?(localStorage.removeItem(String(n)),null):i.data},L0=n=>{!ha||localStorage.removeItem(String(n))}});var xa={};yn(xa,{clear:()=>Pp,getItem:()=>kp,removeItem:()=>Cp,setItem:()=>Ep,storage:()=>E0});var Ep,kp,Cp,Pp,E0,Rp=W(()=>{"use strict";s();Ep=({key:n,data:o,expires:i})=>{sessionStorage.setItem(String(n),JSON.stringify({expires:i,data:o}))},kp=n=>{let o=sessionStorage.getItem(String(n));if(!o)return null;let i=JSON.parse(o);return!i||!i.hasOwnProperty("expires")||!i.hasOwnProperty("data")?null:Date.now()>=i.expires?(sessionStorage.removeItem(String(n)),null):i.data},Cp=n=>sessionStorage.removeItem(String(n)),Pp=()=>sessionStorage.clear(),E0={setItem:Ep,getItem:kp,removeItem:Cp,clear:Pp}});var bt,Zn=W(()=>{"use strict";s();An();Rp();bt={session:xa,local:ya}});var Sa,_e,Lt,Ce=W(()=>{"use strict";s();Sa=require("@reduxjs/toolkit");se();_e=(0,Sa.createAction)(Yo),Lt=(0,Sa.createAction)(_p,n=>({payload:n}))});var wa,Dp,Np,Xo,va,Op,Aa,F_,Ia,U_,k0,C0,B_,W_,G_,P0,Jo,Qo=W(()=>{"use strict";s();wa=require("@multiversx/sdk-core"),Dp=require("@reduxjs/toolkit"),Np=require("redux-persist");se();Zn();An();Ce();Xo={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:Yn},va={address:"",websocketEvent:null,accounts:{"":Xo},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Op=(0,Dp.createSlice)({name:"accountInfoSlice",initialState:va,reducers:{setAddress:(n,o)=>{let i=o.payload;n.address=i,n.publicKey=new wa.Address(i).hex()},setAccount:(n,o)=>{let i=n.address===o.payload.address;n.accounts={[n.address]:i?o.payload:Xo},n.shard=o.payload.shard,n.isAccountLoading=!1,n.accountLoadingError=null},setAccountNonce:(n,o)=>{let{address:i}=n;n.accounts[i].nonce=o.payload},setAccountShard:(n,o)=>{n.shard=o.payload},setLedgerAccount:(n,o)=>{n.ledgerAccount=o.payload},updateLedgerAccount:(n,o)=>{n.ledgerAccount!=null&&(n.ledgerAccount.index=o.payload.index,n.ledgerAccount.address=o.payload.address)},setWalletConnectAccount:(n,o)=>{n.walletConnectAccount=o.payload},setIsAccountLoading:(n,o)=>{n.isAccountLoading=o.payload,n.accountLoadingError=null},setAccountLoadingError:(n,o)=>{n.accountLoadingError=o.payload,n.isAccountLoading=!1},setWebsocketEvent:(n,o)=>{n.websocketEvent={timestamp:Date.now(),message:o.payload}}},extraReducers:n=>{n.addCase(_e,()=>(bt.local.removeItem(Ke.loginExpiresAt),va)),n.addCase(Lt,(o,i)=>{let{address:u}=i.payload;o.address=u,o.publicKey=new wa.Address(u).hex()}),n.addCase(Np.REHYDRATE,(o,i)=>{var N;if(!((N=i.payload)!=null&&N.account))return;let{account:u}=i.payload,{address:m,shard:v,accounts:S,publicKey:k}=u;o.address=m,o.shard=v;let E=S&&m in S;o.accounts=E?S:va.accounts,o.publicKey=k})}}),{setAccount:Aa,setAddress:F_,setAccountNonce:Ia,setAccountShard:U_,setLedgerAccount:k0,updateLedgerAccount:C0,setWalletConnectAccount:B_,setIsAccountLoading:W_,setAccountLoadingError:G_,setWebsocketEvent:P0}=Op.actions,Jo=Op.reducer});function Dr(){return new Date().setHours(new Date().getHours()+24)}function Nr(n){bt.local.setItem({key:Ke.loginExpiresAt,data:n,expires:n})}var _a=W(()=>{"use strict";s();Zn();An()});var Fp,Mp,Up,J_,Bp,R0,D0,Q_,N0,Wp,j_,jo,ei=W(()=>{"use strict";s();Fp=require("@reduxjs/toolkit");_a();de();Ce();Mp={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},Up=(0,Fp.createSlice)({name:"loginInfoSlice",initialState:Mp,reducers:{setLoginMethod:(n,o)=>{n.loginMethod=o.payload},setTokenLogin:(n,o)=>{n.tokenLogin=o.payload},setTokenLoginSignature:(n,o)=>{(n==null?void 0:n.tokenLogin)!=null&&(n.tokenLogin.signature=o.payload)},setWalletLogin:(n,o)=>{n.walletLogin=o.payload},setWalletConnectLogin:(n,o)=>{n.walletConnectLogin=o.payload},setLedgerLogin:(n,o)=>{n.ledgerLogin=o.payload},invalidateLoginSession:n=>{n.isLoginSessionInvalid=!0},setLogoutRoute:(n,o)=>{n.logoutRoute=o.payload}},extraReducers:n=>{n.addCase(_e,()=>Mp),n.addCase(Lt,(o,i)=>{o.loginMethod=i.payload.loginMethod,Nr(Dr())})}}),{setLoginMethod:J_,setWalletConnectLogin:Bp,setLedgerLogin:R0,setTokenLogin:D0,setTokenLoginSignature:Q_,setWalletLogin:N0,invalidateLoginSession:Wp,setLogoutRoute:j_}=Up.actions,jo=Up.reducer});var $p,Gp,Hp,rb,O0,ob,M0,ti,ni=W(()=>{"use strict";s();$p=require("@reduxjs/toolkit");Ce();Gp={},Hp=(0,$p.createSlice)({name:"modalsSlice",initialState:Gp,reducers:{setTxSubmittedModal:(n,o)=>{n.txSubmittedModal=o.payload},setNotificationModal:(n,o)=>{n.notificationModal=o.payload},clearTxSubmittedModal:n=>{n.txSubmittedModal=void 0},clearNotificationModal:n=>{n.notificationModal=void 0}},extraReducers:n=>{n.addCase(_e,()=>Gp)}}),{setTxSubmittedModal:rb,setNotificationModal:O0,clearTxSubmittedModal:ob,clearNotificationModal:M0}=Hp.actions,ti=Hp.reducer});var Vp,qp,ri,Or=W(()=>{"use strict";s();Vp=!1,qp=(n=!0)=>{Vp=n},ri=(n,o=0)=>{Vp||setTimeout(()=>{!window||(window.location.href=n,window.location.assign(n))},o)}});var zp=W(()=>{"use strict";s();Or()});function ba(n){return n[Math.floor(Math.random()*n.length)]}var Kp=W(()=>{"use strict";s()});var La=W(()=>{"use strict";s();ga()});var In=W(()=>{"use strict";s();zp();Kp();La()});var Yp,Zp,Ea,F0,Xp,xb,Sb,oi,ii=W(()=>{"use strict";s();Yp=require("@reduxjs/toolkit"),Zp=K(require("lodash.omit"));In();Ea={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},F0={network:Ea,chainID:"-1"},Xp=(0,Yp.createSlice)({name:"appConfig",initialState:F0,reducers:{initializeNetworkConfig:(n,o)=>{let i=ba(o.payload.walletConnectBridgeAddresses),u=ba(o.payload.walletConnectV2RelayAddresses),m=(0,Zp.default)(o.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");n.network=j(O(O({},n.network),m),{walletConnectBridgeAddress:i,walletConnectV2RelayAddress:u})},setChainID:(n,o)=>{n.chainID=o.payload}}}),{initializeNetworkConfig:xb,setChainID:Sb}=Xp.actions,oi=Xp.reducer});var Jp,ka,Qp,bb,Lb,Eb,si,ai=W(()=>{"use strict";s();Jp=require("@reduxjs/toolkit");Ie();Ce();ka={isSigning:!1,signedSessions:{}},Qp=(0,Jp.createSlice)({name:"signedMessageInfoSliceState",initialState:ka,reducers:{setSignSession:(n,o)=>{let{sessionId:i,signedSession:u,errorMessage:m}=o.payload;return j(O({},n),{errorMessage:m!=null?m:n.errorMessage,isSigning:u.status==="pending",signedSessions:j(O({},n.signedSessions),{[i]:u})})},setSignSessionState:(n,o)=>O(O({},n),o.payload),clearSignedMessageInfo:()=>ka},extraReducers:n=>{n.addCase(_e,()=>ka)}}),{setSignSession:bb,clearSignedMessageInfo:Lb,setSignSessionState:Eb}=Qp.actions,si=Qp.reducer});var ef,tf,jp,nf,U0,Ca,Mb,Fb,Ub,Bb,ci,ui=W(()=>{"use strict";s();ef=require("@reduxjs/toolkit"),tf=require("redux-persist");ma();Ie();Zo();Ce();jp={customToasts:[],transactionToasts:[],failTransactionToast:null},nf=(0,ef.createSlice)({name:"toastsSlice",initialState:jp,reducers:{addCustomToast:(n,o)=>{n.customToasts.push(j(O({},o.payload),{type:"custom",toastId:o.payload.toastId||`custom-toast-${n.customToasts.length+1}`}))},removeCustomToast:(n,o)=>{n.customToasts=n.customToasts.filter(i=>i.toastId!==o.payload)},addTransactionToast:(n,o)=>{n.transactionToasts.push({type:"transaction",startTimestamp:Rr(),toastId:o.payload||`custom-toast-${n.transactionToasts.length+1}`})},removeTransactionToast:(n,o)=>{n.transactionToasts=n.transactionToasts.filter(i=>i.toastId!==o.payload)},addFailTransactionToast:(n,o)=>{n.failTransactionToast=j(O({},o.payload),{toastId:zo})},removeFailTransactionToast:n=>{n.failTransactionToast=null}},extraReducers:n=>{n.addCase(_e,()=>jp),n.addCase(tf.REHYDRATE,(o,i)=>{var m,v;let u=(v=(m=i.customToasts)==null?void 0:m.filter(S=>!("component"in S)))!=null?v:[];o.customToasts=u})}}),{addCustomToast:U0,removeCustomToast:Ca,addTransactionToast:Mb,removeTransactionToast:Fb,addFailTransactionToast:Ub,removeFailTransactionToast:Bb}=nf.actions,ci=nf.reducer});var rf,Ra,Da,Na,B0,Pa,of,Hb,W0,Oa,li,pi=W(()=>{"use strict";s();rf=require("@reduxjs/toolkit");Ce();Ra="Transaction failed",Da="Transaction successful",Na="Processing transaction",B0="Transaction submitted",Pa={},of=(0,rf.createSlice)({name:"transactionsInfo",initialState:Pa,reducers:{setTransactionsDisplayInfo(n,o){let{sessionId:i,transactionsDisplayInfo:u}=o.payload;i!=null&&(n[i]={errorMessage:(u==null?void 0:u.errorMessage)||Ra,successMessage:(u==null?void 0:u.successMessage)||Da,processingMessage:(u==null?void 0:u.processingMessage)||Na,submittedMessage:(u==null?void 0:u.submittedMessage)||B0,transactionDuration:u==null?void 0:u.transactionDuration})},clearTransactionsInfoForSessionId(n,o){o.payload!=null&&delete n[o.payload]},clearTransactionsInfo:()=>Pa},extraReducers:n=>{n.addCase(_e,()=>Pa)}}),{clearTransactionsInfo:Hb,setTransactionsDisplayInfo:W0,clearTransactionsInfoForSessionId:Oa}=of.actions,li=of.reducer});function Jn(n){return n!=null&&(Y0(n)||Q0(n))}function Qn(n){return n!=null&&(Z0(n)||j0(n))}function jn(n){return n!=null&&(X0(n)||ew(n))}function Ma(n){return n!=null&&J0(n)}function Y0(n){return n!=null&&G0.includes(n)}function Z0(n){return n!=null&&$0.includes(n)}function X0(n){return n!=null&&H0.includes(n)}function J0(n){return n!=null&&V0.includes(n)}function Q0(n){return n!=null&&q0.includes(n)}function j0(n){return n!=null&&z0.includes(n)}function ew(n){return n!=null&&K0.includes(n)}var G0,$0,H0,V0,q0,z0,K0,er=W(()=>{"use strict";s();de();G0=["sent"],$0=["success"],H0=["fail","cancelled","timedOut"],V0=["timedOut"],q0=["pending"],z0=["success"],K0=["fail","invalid"]});var sf,af,Mr,tw,cf,uf,lf,nw,fi,rw,ow,Qb,iw,di,Fa,gi,mi=W(()=>{"use strict";s();sf=require("@reduxjs/toolkit"),af=require("redux-persist");de();er();Ce();Mr={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},tw={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},cf=(0,sf.createSlice)({name:"transactionsSlice",initialState:Mr,reducers:{moveTransactionsToSignedState:(n,o)=>{var E,N;let{sessionId:i,transactions:u,errorMessage:m,status:v,redirectRoute:S}=o.payload,k=((E=n.customTransactionInformationForSessionId)==null?void 0:E[i])||tw;n.signedTransactions[i]={transactions:u,status:v,errorMessage:m,redirectRoute:S,customTransactionInformation:k},((N=n==null?void 0:n.transactionsToSign)==null?void 0:N.sessionId)===i&&(n.transactionsToSign=Mr.transactionsToSign)},clearSignedTransaction:(n,o)=>{n.signedTransactions[o.payload]&&delete n.signedTransactions[o.payload]},clearTransactionToSign:n=>{n!=null&&n.transactionsToSign&&(n.transactionsToSign=null)},updateSignedTransaction:(n,o)=>{n.signedTransactions=O(O({},n.signedTransactions),o.payload)},updateSignedTransactions:(n,o)=>{let{sessionId:i,status:u,errorMessage:m,transactions:v}=o.payload;n.signedTransactions[i]!=null&&(n.signedTransactions[i].status=u,m!=null&&(n.signedTransactions[i].errorMessage=m),v!=null&&(n.signedTransactions[i].transactions=v))},updateSignedTransactionStatus:(n,o)=>{var k,E,N,q,F,pe;let{sessionId:i,status:u,errorMessage:m,transactionHash:v}=o.payload,S=(E=(k=n.signedTransactions)==null?void 0:k[i])==null?void 0:E.transactions;if(S!=null){n.signedTransactions[i].transactions=S.map(be=>be.hash===v?j(O({},be),{status:u,errorMessage:m}):be);let ye=(q=(N=n.signedTransactions[i])==null?void 0:N.transactions)==null?void 0:q.every(be=>Qn(be.status)),ge=(pe=(F=n.signedTransactions[i])==null?void 0:F.transactions)==null?void 0:pe.every(be=>jn(be.status));ye&&(n.signedTransactions[i].status="success"),ge&&(n.signedTransactions[i].status="fail")}},setTransactionsToSign:(n,o)=>{n.transactionsToSign=o.payload;let{sessionId:i,customTransactionInformation:u}=o.payload;n.customTransactionInformationForSessionId[i]=u,n.signTransactionsError=null},clearAllTransactionsToSign:n=>{n.transactionsToSign=Mr.transactionsToSign,n.signTransactionsError=null},clearAllSignedTransactions:n=>{n.signedTransactions=Mr.signedTransactions},setSignTransactionsError:(n,o)=>{n.signTransactionsError=o.payload},setSignTransactionsCancelMessage:(n,o)=>{n.signTransactionsCancelMessage=o.payload}},extraReducers:n=>{n.addCase(_e,()=>Mr),n.addCase(af.REHYDRATE,(o,i)=>{var S;if(o.signTransactionsCancelMessage=null,!((S=i.payload)!=null&&S.transactions))return;let{signedTransactions:u,customTransactionInformationForSessionId:m}=i.payload.transactions,v=Object.entries(u).reduce((k,[E,N])=>{let q=new Date(E),F=new Date;return F.setHours(F.getHours()+5),F-q>0||(k[E]=N),k},{});m!=null&&(o.customTransactionInformationForSessionId=m),u!=null&&(o.signedTransactions=v)})}}),{updateSignedTransactionStatus:uf,updateSignedTransactions:lf,setTransactionsToSign:nw,clearAllTransactionsToSign:fi,clearAllSignedTransactions:rw,clearSignedTransaction:ow,clearTransactionToSign:Qb,setSignTransactionsError:iw,setSignTransactionsCancelMessage:di,moveTransactionsToSignedState:Fa}=cf.actions,gi=cf.reducer});var ae=W(()=>{"use strict";s();Qo();ei();ni();ii();ai();ui();pi();mi()});var Ua=W(()=>{"use strict";s()});var mf,gf,Tf,wL,AL,IL,_L,bL,LL,hf,yf=W(()=>{"use strict";s();mf=require("@reduxjs/toolkit");Ce();gf={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},Tf=(0,mf.createSlice)({name:"dappModalsSlice",initialState:gf,reducers:{setDappModalVisibility:(n,o)=>{n.visible=o.payload},setDappModalHeaderVisibility:(n,o)=>{n.modal.showHeader=o.payload},setDappModalFooterVisibility:(n,o)=>{n.modal.showFooter=o.payload},setDappModalHeaderText:(n,o)=>{n.modal.headerText=o.payload},setDappModalFooterText:(n,o)=>{n.modal.footerText=o.payload},setDappModalConfig:(n,o)=>{n.modal=O({},o.payload)}},extraReducers:n=>{n.addCase(_e,()=>gf)}}),{setDappModalVisibility:wL,setDappModalHeaderVisibility:AL,setDappModalFooterVisibility:IL,setDappModalHeaderText:_L,setDappModalFooterText:bL,setDappModalConfig:LL}=Tf.actions,hf=Tf.reducer});var xf,uw,lw,bn,xi=W(()=>{"use strict";s();xf=require("@reduxjs/toolkit");Ua();Qo();yf();ei();ni();ii();ai();ui();pi();mi();uw={["account"]:Jo,["dappModal"]:hf,["loginInfo"]:jo,["modals"]:ti,["networkConfig"]:oi,["signedMessageInfo"]:si,["toasts"]:ci,["transactionsInfo"]:li,["transactions"]:gi},lw=(n={})=>(0,xf.combineReducers)(O(O({},uw),n)),bn=lw});var Af={};yn(Af,{default:()=>_w,sessionStorageReducers:()=>Ba});function rn(n,o=[]){return{key:n,version:1,storage:vf.default,blacklist:o}}var Ze,Sf,vf,pw,Ur,fw,dw,gw,mw,Tw,hw,yw,xw,Sw,wf,vw,Ba,ww,Aw,Iw,_w,If=W(()=>{"use strict";s();Ze=require("redux-persist"),Sf=K(require("redux-persist/lib/storage")),vf=K(require("redux-persist/lib/storage/session"));xi();ae();Qo();ei();ni();ii();ai();ui();pi();mi();Ua();pw={persistReducersStorageType:"localStorage"},Ur={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},fw=rn(Ur["account"]),dw=rn(Ur["loginInfo"]),gw=rn(Ur["modals"]),mw=rn(Ur["networkConfig"]),Tw={2:n=>j(O({},n),{networkConfig:Ea})};hw=rn("sdk-dapp-transactionsInfo"),yw=rn("sdk-dapp-transactions",["transactionsToSign"]),xw=rn("sdk-dapp-toasts"),Sw=rn("sdk-dapp-signedMessageInfo"),wf={key:"sdk-dapp-store",version:2,storage:Sf.default,whitelist:Object.keys(Ur),migrate:(0,Ze.createMigrate)(Tw,{debug:!1})},vw=j(O({},wf),{whitelist:[]}),Ba={["toasts"]:(0,Ze.persistReducer)(xw,ci),["transactions"]:(0,Ze.persistReducer)(yw,gi),["transactionsInfo"]:(0,Ze.persistReducer)(hw,li),["signedMessageInfo"]:(0,Ze.persistReducer)(Sw,si)},ww=j(O({},Ba),{["account"]:(0,Ze.persistReducer)(fw,Jo),["loginInfo"]:(0,Ze.persistReducer)(dw,jo),["modals"]:(0,Ze.persistReducer)(gw,ti),["networkConfig"]:(0,Ze.persistReducer)(mw,oi)}),Aw=pw.persistReducersStorageType==="localStorage",Iw=Aw?(0,Ze.persistReducer)(wf,bn(Ba)):(0,Ze.persistReducer)(vw,bn(ww)),_w=Iw});var _f={};yn(_f,{default:()=>bw});var bw,bf=W(()=>{"use strict";s();xi();bw=bn()});var Lf={};yn(Lf,{default:()=>Ew});var st,Lw,Ew,Ef=W(()=>{"use strict";s();st=require("redux-persist"),Lw=[st.FLUSH,st.REHYDRATE,st.PAUSE,st.PERSIST,st.PURGE,st.REGISTER],Ew=Lw});var Pf={};yn(Pf,{default:()=>Cf});function Cf(n){return(0,kf.persistStore)(n)}var kf,Rf=W(()=>{"use strict";s();kf=require("redux-persist")});var Md=kr((or,Vr)=>{s();(function(){var n,o="4.17.21",i=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",m="Expected a function",v="Invalid `variable` option passed into `_.template`",S="__lodash_hash_undefined__",k=500,E="__lodash_placeholder__",N=1,q=2,F=4,pe=1,ye=2,ge=1,be=2,sc=4,mt=8,En=16,Tt=32,kn=64,Et=128,ir=256,Di=512,qd=30,zd="...",Kd=800,Yd=16,ac=1,Zd=2,Xd=3,cn=1/0,zt=9007199254740991,Jd=17976931348623157e292,zr=0/0,ht=4294967295,Qd=ht-1,jd=ht>>>1,eg=[["ary",Et],["bind",ge],["bindKey",be],["curry",mt],["curryRight",En],["flip",Di],["partial",Tt],["partialRight",kn],["rearg",ir]],Cn="[object Arguments]",Kr="[object Array]",tg="[object AsyncFunction]",sr="[object Boolean]",ar="[object Date]",ng="[object DOMException]",Yr="[object Error]",Zr="[object Function]",cc="[object GeneratorFunction]",at="[object Map]",cr="[object Number]",rg="[object Null]",kt="[object Object]",uc="[object Promise]",og="[object Proxy]",ur="[object RegExp]",ct="[object Set]",lr="[object String]",Xr="[object Symbol]",ig="[object Undefined]",pr="[object WeakMap]",sg="[object WeakSet]",fr="[object ArrayBuffer]",Pn="[object DataView]",Ni="[object Float32Array]",Oi="[object Float64Array]",Mi="[object Int8Array]",Fi="[object Int16Array]",Ui="[object Int32Array]",Bi="[object Uint8Array]",Wi="[object Uint8ClampedArray]",Gi="[object Uint16Array]",$i="[object Uint32Array]",ag=/\b__p \+= '';/g,cg=/\b(__p \+=) '' \+/g,ug=/(__e\(.*?\)|\b__t\)) \+\n'';/g,lc=/&(?:amp|lt|gt|quot|#39);/g,pc=/[&<>"']/g,lg=RegExp(lc.source),pg=RegExp(pc.source),fg=/<%-([\s\S]+?)%>/g,dg=/<%([\s\S]+?)%>/g,fc=/<%=([\s\S]+?)%>/g,gg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,mg=/^\w*$/,Tg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Hi=/[\\^$.*+?()[\]{}|]/g,hg=RegExp(Hi.source),Vi=/^\s+/,yg=/\s/,xg=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Sg=/\{\n\/\* \[wrapped with (.+)\] \*/,vg=/,? & /,wg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ag=/[()=,{}\[\]\/\s]/,Ig=/\\(\\)?/g,_g=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,dc=/\w*$/,bg=/^[-+]0x[0-9a-f]+$/i,Lg=/^0b[01]+$/i,Eg=/^\[object .+?Constructor\]$/,kg=/^0o[0-7]+$/i,Cg=/^(?:0|[1-9]\d*)$/,Pg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Jr=/($^)/,Rg=/['\n\r\u2028\u2029\\]/g,Qr="\\ud800-\\udfff",Dg="\\u0300-\\u036f",Ng="\\ufe20-\\ufe2f",Og="\\u20d0-\\u20ff",gc=Dg+Ng+Og,mc="\\u2700-\\u27bf",Tc="a-z\\xdf-\\xf6\\xf8-\\xff",Mg="\\xac\\xb1\\xd7\\xf7",Fg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ug="\\u2000-\\u206f",Bg=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",hc="A-Z\\xc0-\\xd6\\xd8-\\xde",yc="\\ufe0e\\ufe0f",xc=Mg+Fg+Ug+Bg,qi="['\u2019]",Wg="["+Qr+"]",Sc="["+xc+"]",jr="["+gc+"]",vc="\\d+",Gg="["+mc+"]",wc="["+Tc+"]",Ac="[^"+Qr+xc+vc+mc+Tc+hc+"]",zi="\\ud83c[\\udffb-\\udfff]",$g="(?:"+jr+"|"+zi+")",Ic="[^"+Qr+"]",Ki="(?:\\ud83c[\\udde6-\\uddff]){2}",Yi="[\\ud800-\\udbff][\\udc00-\\udfff]",Rn="["+hc+"]",_c="\\u200d",bc="(?:"+wc+"|"+Ac+")",Hg="(?:"+Rn+"|"+Ac+")",Lc="(?:"+qi+"(?:d|ll|m|re|s|t|ve))?",Ec="(?:"+qi+"(?:D|LL|M|RE|S|T|VE))?",kc=$g+"?",Cc="["+yc+"]?",Vg="(?:"+_c+"(?:"+[Ic,Ki,Yi].join("|")+")"+Cc+kc+")*",qg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",zg="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Pc=Cc+kc+Vg,Kg="(?:"+[Gg,Ki,Yi].join("|")+")"+Pc,Yg="(?:"+[Ic+jr+"?",jr,Ki,Yi,Wg].join("|")+")",Zg=RegExp(qi,"g"),Xg=RegExp(jr,"g"),Zi=RegExp(zi+"(?="+zi+")|"+Yg+Pc,"g"),Jg=RegExp([Rn+"?"+wc+"+"+Lc+"(?="+[Sc,Rn,"$"].join("|")+")",Hg+"+"+Ec+"(?="+[Sc,Rn+bc,"$"].join("|")+")",Rn+"?"+bc+"+"+Lc,Rn+"+"+Ec,zg,qg,vc,Kg].join("|"),"g"),Qg=RegExp("["+_c+Qr+gc+yc+"]"),jg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,em=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],tm=-1,ce={};ce[Ni]=ce[Oi]=ce[Mi]=ce[Fi]=ce[Ui]=ce[Bi]=ce[Wi]=ce[Gi]=ce[$i]=!0,ce[Cn]=ce[Kr]=ce[fr]=ce[sr]=ce[Pn]=ce[ar]=ce[Yr]=ce[Zr]=ce[at]=ce[cr]=ce[kt]=ce[ur]=ce[ct]=ce[lr]=ce[pr]=!1;var ie={};ie[Cn]=ie[Kr]=ie[fr]=ie[Pn]=ie[sr]=ie[ar]=ie[Ni]=ie[Oi]=ie[Mi]=ie[Fi]=ie[Ui]=ie[at]=ie[cr]=ie[kt]=ie[ur]=ie[ct]=ie[lr]=ie[Xr]=ie[Bi]=ie[Wi]=ie[Gi]=ie[$i]=!0,ie[Yr]=ie[Zr]=ie[pr]=!1;var nm={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},rm={"&":"&","<":"<",">":">",'"':""","'":"'"},om={"&":"&","<":"<",">":">",""":'"',"'":"'"},im={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},sm=parseFloat,am=parseInt,Rc=typeof f=="object"&&f&&f.Object===Object&&f,cm=typeof self=="object"&&self&&self.Object===Object&&self,ve=Rc||cm||Function("return this")(),Xi=typeof or=="object"&&or&&!or.nodeType&&or,un=Xi&&typeof Vr=="object"&&Vr&&!Vr.nodeType&&Vr,Dc=un&&un.exports===Xi,Ji=Dc&&Rc.process,Je=function(){try{var y=un&&un.require&&un.require("util").types;return y||Ji&&Ji.binding&&Ji.binding("util")}catch(A){}}(),Nc=Je&&Je.isArrayBuffer,Oc=Je&&Je.isDate,Mc=Je&&Je.isMap,Fc=Je&&Je.isRegExp,Uc=Je&&Je.isSet,Bc=Je&&Je.isTypedArray;function Ge(y,A,w){switch(w.length){case 0:return y.call(A);case 1:return y.call(A,w[0]);case 2:return y.call(A,w[0],w[1]);case 3:return y.call(A,w[0],w[1],w[2])}return y.apply(A,w)}function um(y,A,w,P){for(var G=-1,ee=y==null?0:y.length;++G<ee;){var xe=y[G];A(P,xe,w(xe),y)}return P}function Qe(y,A){for(var w=-1,P=y==null?0:y.length;++w<P&&A(y[w],w,y)!==!1;);return y}function lm(y,A){for(var w=y==null?0:y.length;w--&&A(y[w],w,y)!==!1;);return y}function Wc(y,A){for(var w=-1,P=y==null?0:y.length;++w<P;)if(!A(y[w],w,y))return!1;return!0}function Kt(y,A){for(var w=-1,P=y==null?0:y.length,G=0,ee=[];++w<P;){var xe=y[w];A(xe,w,y)&&(ee[G++]=xe)}return ee}function eo(y,A){var w=y==null?0:y.length;return!!w&&Dn(y,A,0)>-1}function Qi(y,A,w){for(var P=-1,G=y==null?0:y.length;++P<G;)if(w(A,y[P]))return!0;return!1}function ue(y,A){for(var w=-1,P=y==null?0:y.length,G=Array(P);++w<P;)G[w]=A(y[w],w,y);return G}function Yt(y,A){for(var w=-1,P=A.length,G=y.length;++w<P;)y[G+w]=A[w];return y}function ji(y,A,w,P){var G=-1,ee=y==null?0:y.length;for(P&&ee&&(w=y[++G]);++G<ee;)w=A(w,y[G],G,y);return w}function pm(y,A,w,P){var G=y==null?0:y.length;for(P&&G&&(w=y[--G]);G--;)w=A(w,y[G],G,y);return w}function es(y,A){for(var w=-1,P=y==null?0:y.length;++w<P;)if(A(y[w],w,y))return!0;return!1}var fm=ts("length");function dm(y){return y.split("")}function gm(y){return y.match(wg)||[]}function Gc(y,A,w){var P;return w(y,function(G,ee,xe){if(A(G,ee,xe))return P=ee,!1}),P}function to(y,A,w,P){for(var G=y.length,ee=w+(P?1:-1);P?ee--:++ee<G;)if(A(y[ee],ee,y))return ee;return-1}function Dn(y,A,w){return A===A?bm(y,A,w):to(y,$c,w)}function mm(y,A,w,P){for(var G=w-1,ee=y.length;++G<ee;)if(P(y[G],A))return G;return-1}function $c(y){return y!==y}function Hc(y,A){var w=y==null?0:y.length;return w?rs(y,A)/w:zr}function ts(y){return function(A){return A==null?n:A[y]}}function ns(y){return function(A){return y==null?n:y[A]}}function Vc(y,A,w,P,G){return G(y,function(ee,xe,oe){w=P?(P=!1,ee):A(w,ee,xe,oe)}),w}function Tm(y,A){var w=y.length;for(y.sort(A);w--;)y[w]=y[w].value;return y}function rs(y,A){for(var w,P=-1,G=y.length;++P<G;){var ee=A(y[P]);ee!==n&&(w=w===n?ee:w+ee)}return w}function os(y,A){for(var w=-1,P=Array(y);++w<y;)P[w]=A(w);return P}function hm(y,A){return ue(A,function(w){return[w,y[w]]})}function qc(y){return y&&y.slice(0,Zc(y)+1).replace(Vi,"")}function $e(y){return function(A){return y(A)}}function is(y,A){return ue(A,function(w){return y[w]})}function dr(y,A){return y.has(A)}function zc(y,A){for(var w=-1,P=y.length;++w<P&&Dn(A,y[w],0)>-1;);return w}function Kc(y,A){for(var w=y.length;w--&&Dn(A,y[w],0)>-1;);return w}function ym(y,A){for(var w=y.length,P=0;w--;)y[w]===A&&++P;return P}var xm=ns(nm),Sm=ns(rm);function vm(y){return"\\"+im[y]}function wm(y,A){return y==null?n:y[A]}function Nn(y){return Qg.test(y)}function Am(y){return jg.test(y)}function Im(y){for(var A,w=[];!(A=y.next()).done;)w.push(A.value);return w}function ss(y){var A=-1,w=Array(y.size);return y.forEach(function(P,G){w[++A]=[G,P]}),w}function Yc(y,A){return function(w){return y(A(w))}}function Zt(y,A){for(var w=-1,P=y.length,G=0,ee=[];++w<P;){var xe=y[w];(xe===A||xe===E)&&(y[w]=E,ee[G++]=w)}return ee}function no(y){var A=-1,w=Array(y.size);return y.forEach(function(P){w[++A]=P}),w}function _m(y){var A=-1,w=Array(y.size);return y.forEach(function(P){w[++A]=[P,P]}),w}function bm(y,A,w){for(var P=w-1,G=y.length;++P<G;)if(y[P]===A)return P;return-1}function Lm(y,A,w){for(var P=w+1;P--;)if(y[P]===A)return P;return P}function On(y){return Nn(y)?km(y):fm(y)}function ut(y){return Nn(y)?Cm(y):dm(y)}function Zc(y){for(var A=y.length;A--&&yg.test(y.charAt(A)););return A}var Em=ns(om);function km(y){for(var A=Zi.lastIndex=0;Zi.test(y);)++A;return A}function Cm(y){return y.match(Zi)||[]}function Pm(y){return y.match(Jg)||[]}var Rm=function y(A){A=A==null?ve:Xt.defaults(ve.Object(),A,Xt.pick(ve,em));var w=A.Array,P=A.Date,G=A.Error,ee=A.Function,xe=A.Math,oe=A.Object,as=A.RegExp,Dm=A.String,je=A.TypeError,ro=w.prototype,Nm=ee.prototype,Mn=oe.prototype,oo=A["__core-js_shared__"],io=Nm.toString,re=Mn.hasOwnProperty,Om=0,Xc=function(){var e=/[^.]+$/.exec(oo&&oo.keys&&oo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),so=Mn.toString,Mm=io.call(oe),Fm=ve._,Um=as("^"+io.call(re).replace(Hi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ao=Dc?A.Buffer:n,Jt=A.Symbol,co=A.Uint8Array,Jc=ao?ao.allocUnsafe:n,uo=Yc(oe.getPrototypeOf,oe),Qc=oe.create,jc=Mn.propertyIsEnumerable,lo=ro.splice,eu=Jt?Jt.isConcatSpreadable:n,gr=Jt?Jt.iterator:n,ln=Jt?Jt.toStringTag:n,po=function(){try{var e=mn(oe,"defineProperty");return e({},"",{}),e}catch(t){}}(),Bm=A.clearTimeout!==ve.clearTimeout&&A.clearTimeout,Wm=P&&P.now!==ve.Date.now&&P.now,Gm=A.setTimeout!==ve.setTimeout&&A.setTimeout,fo=xe.ceil,go=xe.floor,cs=oe.getOwnPropertySymbols,$m=ao?ao.isBuffer:n,tu=A.isFinite,Hm=ro.join,Vm=Yc(oe.keys,oe),Se=xe.max,Ee=xe.min,qm=P.now,zm=A.parseInt,nu=xe.random,Km=ro.reverse,us=mn(A,"DataView"),mr=mn(A,"Map"),ls=mn(A,"Promise"),Fn=mn(A,"Set"),Tr=mn(A,"WeakMap"),hr=mn(oe,"create"),mo=Tr&&new Tr,Un={},Ym=Tn(us),Zm=Tn(mr),Xm=Tn(ls),Jm=Tn(Fn),Qm=Tn(Tr),To=Jt?Jt.prototype:n,yr=To?To.valueOf:n,ru=To?To.toString:n;function l(e){if(fe(e)&&!$(e)&&!(e instanceof X)){if(e instanceof et)return e;if(re.call(e,"__wrapped__"))return ol(e)}return new et(e)}var Bn=function(){function e(){}return function(t){if(!le(t))return{};if(Qc)return Qc(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function ho(){}function et(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}l.templateSettings={escape:fg,evaluate:dg,interpolate:fc,variable:"",imports:{_:l}},l.prototype=ho.prototype,l.prototype.constructor=l,et.prototype=Bn(ho.prototype),et.prototype.constructor=et;function X(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ht,this.__views__=[]}function jm(){var e=new X(this.__wrapped__);return e.__actions__=Ne(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ne(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ne(this.__views__),e}function eT(){if(this.__filtered__){var e=new X(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function tT(){var e=this.__wrapped__.value(),t=this.__dir__,r=$(e),a=t<0,c=r?e.length:0,p=dh(0,c,this.__views__),T=p.start,h=p.end,x=h-T,_=a?h:T-1,b=this.__iteratees__,L=b.length,C=0,D=Ee(x,this.__takeCount__);if(!r||!a&&c==x&&D==x)return Lu(e,this.__actions__);var U=[];e:for(;x--&&C<D;){_+=t;for(var z=-1,B=e[_];++z<L;){var Z=b[z],J=Z.iteratee,qe=Z.type,De=J(B);if(qe==Zd)B=De;else if(!De){if(qe==ac)continue e;break e}}U[C++]=B}return U}X.prototype=Bn(ho.prototype),X.prototype.constructor=X;function pn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}function nT(){this.__data__=hr?hr(null):{},this.size=0}function rT(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function oT(e){var t=this.__data__;if(hr){var r=t[e];return r===S?n:r}return re.call(t,e)?t[e]:n}function iT(e){var t=this.__data__;return hr?t[e]!==n:re.call(t,e)}function sT(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=hr&&t===n?S:t,this}pn.prototype.clear=nT,pn.prototype.delete=rT,pn.prototype.get=oT,pn.prototype.has=iT,pn.prototype.set=sT;function Ct(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}function aT(){this.__data__=[],this.size=0}function cT(e){var t=this.__data__,r=yo(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():lo.call(t,r,1),--this.size,!0}function uT(e){var t=this.__data__,r=yo(t,e);return r<0?n:t[r][1]}function lT(e){return yo(this.__data__,e)>-1}function pT(e,t){var r=this.__data__,a=yo(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}Ct.prototype.clear=aT,Ct.prototype.delete=cT,Ct.prototype.get=uT,Ct.prototype.has=lT,Ct.prototype.set=pT;function Pt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}function fT(){this.size=0,this.__data__={hash:new pn,map:new(mr||Ct),string:new pn}}function dT(e){var t=Co(this,e).delete(e);return this.size-=t?1:0,t}function gT(e){return Co(this,e).get(e)}function mT(e){return Co(this,e).has(e)}function TT(e,t){var r=Co(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}Pt.prototype.clear=fT,Pt.prototype.delete=dT,Pt.prototype.get=gT,Pt.prototype.has=mT,Pt.prototype.set=TT;function fn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Pt;++t<r;)this.add(e[t])}function hT(e){return this.__data__.set(e,S),this}function yT(e){return this.__data__.has(e)}fn.prototype.add=fn.prototype.push=hT,fn.prototype.has=yT;function lt(e){var t=this.__data__=new Ct(e);this.size=t.size}function xT(){this.__data__=new Ct,this.size=0}function ST(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function vT(e){return this.__data__.get(e)}function wT(e){return this.__data__.has(e)}function AT(e,t){var r=this.__data__;if(r instanceof Ct){var a=r.__data__;if(!mr||a.length<i-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new Pt(a)}return r.set(e,t),this.size=r.size,this}lt.prototype.clear=xT,lt.prototype.delete=ST,lt.prototype.get=vT,lt.prototype.has=wT,lt.prototype.set=AT;function ou(e,t){var r=$(e),a=!r&&hn(e),c=!r&&!a&&nn(e),p=!r&&!a&&!c&&Hn(e),T=r||a||c||p,h=T?os(e.length,Dm):[],x=h.length;for(var _ in e)(t||re.call(e,_))&&!(T&&(_=="length"||c&&(_=="offset"||_=="parent")||p&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||Ot(_,x)))&&h.push(_);return h}function iu(e){var t=e.length;return t?e[vs(0,t-1)]:n}function IT(e,t){return Po(Ne(e),dn(t,0,e.length))}function _T(e){return Po(Ne(e))}function ps(e,t,r){(r!==n&&!pt(e[t],r)||r===n&&!(t in e))&&Rt(e,t,r)}function xr(e,t,r){var a=e[t];(!(re.call(e,t)&&pt(a,r))||r===n&&!(t in e))&&Rt(e,t,r)}function yo(e,t){for(var r=e.length;r--;)if(pt(e[r][0],t))return r;return-1}function bT(e,t,r,a){return Qt(e,function(c,p,T){t(a,c,r(c),T)}),a}function su(e,t){return e&&xt(t,we(t),e)}function LT(e,t){return e&&xt(t,Me(t),e)}function Rt(e,t,r){t=="__proto__"&&po?po(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function fs(e,t){for(var r=-1,a=t.length,c=w(a),p=e==null;++r<a;)c[r]=p?n:zs(e,t[r]);return c}function dn(e,t,r){return e===e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function tt(e,t,r,a,c,p){var T,h=t&N,x=t&q,_=t&F;if(r&&(T=c?r(e,a,c,p):r(e)),T!==n)return T;if(!le(e))return e;var b=$(e);if(b){if(T=mh(e),!h)return Ne(e,T)}else{var L=ke(e),C=L==Zr||L==cc;if(nn(e))return Cu(e,h);if(L==kt||L==Cn||C&&!c){if(T=x||C?{}:Zu(e),!h)return x?oh(e,LT(T,e)):rh(e,su(T,e))}else{if(!ie[L])return c?e:{};T=Th(e,L,h)}}p||(p=new lt);var D=p.get(e);if(D)return D;p.set(e,T),Il(e)?e.forEach(function(B){T.add(tt(B,t,r,B,e,p))}):wl(e)&&e.forEach(function(B,Z){T.set(Z,tt(B,t,r,Z,e,p))});var U=_?x?Rs:Ps:x?Me:we,z=b?n:U(e);return Qe(z||e,function(B,Z){z&&(Z=B,B=e[Z]),xr(T,Z,tt(B,t,r,Z,e,p))}),T}function ET(e){var t=we(e);return function(r){return au(r,e,t)}}function au(e,t,r){var a=r.length;if(e==null)return!a;for(e=oe(e);a--;){var c=r[a],p=t[c],T=e[c];if(T===n&&!(c in e)||!p(T))return!1}return!0}function cu(e,t,r){if(typeof e!="function")throw new je(m);return br(function(){e.apply(n,r)},t)}function Sr(e,t,r,a){var c=-1,p=eo,T=!0,h=e.length,x=[],_=t.length;if(!h)return x;r&&(t=ue(t,$e(r))),a?(p=Qi,T=!1):t.length>=i&&(p=dr,T=!1,t=new fn(t));e:for(;++c<h;){var b=e[c],L=r==null?b:r(b);if(b=a||b!==0?b:0,T&&L===L){for(var C=_;C--;)if(t[C]===L)continue e;x.push(b)}else p(t,L,a)||x.push(b)}return x}var Qt=Ou(yt),uu=Ou(gs,!0);function kT(e,t){var r=!0;return Qt(e,function(a,c,p){return r=!!t(a,c,p),r}),r}function xo(e,t,r){for(var a=-1,c=e.length;++a<c;){var p=e[a],T=t(p);if(T!=null&&(h===n?T===T&&!Ve(T):r(T,h)))var h=T,x=p}return x}function CT(e,t,r,a){var c=e.length;for(r=H(r),r<0&&(r=-r>c?0:c+r),a=a===n||a>c?c:H(a),a<0&&(a+=c),a=r>a?0:bl(a);r<a;)e[r++]=t;return e}function lu(e,t){var r=[];return Qt(e,function(a,c,p){t(a,c,p)&&r.push(a)}),r}function Le(e,t,r,a,c){var p=-1,T=e.length;for(r||(r=yh),c||(c=[]);++p<T;){var h=e[p];t>0&&r(h)?t>1?Le(h,t-1,r,a,c):Yt(c,h):a||(c[c.length]=h)}return c}var ds=Mu(),pu=Mu(!0);function yt(e,t){return e&&ds(e,t,we)}function gs(e,t){return e&&pu(e,t,we)}function So(e,t){return Kt(t,function(r){return Mt(e[r])})}function gn(e,t){t=en(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[St(t[r++])];return r&&r==a?e:n}function fu(e,t,r){var a=t(e);return $(e)?a:Yt(a,r(e))}function Pe(e){return e==null?e===n?ig:rg:ln&&ln in oe(e)?fh(e):_h(e)}function ms(e,t){return e>t}function PT(e,t){return e!=null&&re.call(e,t)}function RT(e,t){return e!=null&&t in oe(e)}function DT(e,t,r){return e>=Ee(t,r)&&e<Se(t,r)}function Ts(e,t,r){for(var a=r?Qi:eo,c=e[0].length,p=e.length,T=p,h=w(p),x=1/0,_=[];T--;){var b=e[T];T&&t&&(b=ue(b,$e(t))),x=Ee(b.length,x),h[T]=!r&&(t||c>=120&&b.length>=120)?new fn(T&&b):n}b=e[0];var L=-1,C=h[0];e:for(;++L<c&&_.length<x;){var D=b[L],U=t?t(D):D;if(D=r||D!==0?D:0,!(C?dr(C,U):a(_,U,r))){for(T=p;--T;){var z=h[T];if(!(z?dr(z,U):a(e[T],U,r)))continue e}C&&C.push(U),_.push(D)}}return _}function NT(e,t,r,a){return yt(e,function(c,p,T){t(a,r(c),p,T)}),a}function vr(e,t,r){t=en(t,e),e=ju(e,t);var a=e==null?e:e[St(rt(t))];return a==null?n:Ge(a,e,r)}function du(e){return fe(e)&&Pe(e)==Cn}function OT(e){return fe(e)&&Pe(e)==fr}function MT(e){return fe(e)&&Pe(e)==ar}function wr(e,t,r,a,c){return e===t?!0:e==null||t==null||!fe(e)&&!fe(t)?e!==e&&t!==t:FT(e,t,r,a,wr,c)}function FT(e,t,r,a,c,p){var T=$(e),h=$(t),x=T?Kr:ke(e),_=h?Kr:ke(t);x=x==Cn?kt:x,_=_==Cn?kt:_;var b=x==kt,L=_==kt,C=x==_;if(C&&nn(e)){if(!nn(t))return!1;T=!0,b=!1}if(C&&!b)return p||(p=new lt),T||Hn(e)?zu(e,t,r,a,c,p):lh(e,t,x,r,a,c,p);if(!(r&pe)){var D=b&&re.call(e,"__wrapped__"),U=L&&re.call(t,"__wrapped__");if(D||U){var z=D?e.value():e,B=U?t.value():t;return p||(p=new lt),c(z,B,r,a,p)}}return C?(p||(p=new lt),ph(e,t,r,a,c,p)):!1}function UT(e){return fe(e)&&ke(e)==at}function hs(e,t,r,a){var c=r.length,p=c,T=!a;if(e==null)return!p;for(e=oe(e);c--;){var h=r[c];if(T&&h[2]?h[1]!==e[h[0]]:!(h[0]in e))return!1}for(;++c<p;){h=r[c];var x=h[0],_=e[x],b=h[1];if(T&&h[2]){if(_===n&&!(x in e))return!1}else{var L=new lt;if(a)var C=a(_,b,x,e,t,L);if(!(C===n?wr(b,_,pe|ye,a,L):C))return!1}}return!0}function gu(e){if(!le(e)||Sh(e))return!1;var t=Mt(e)?Um:Eg;return t.test(Tn(e))}function BT(e){return fe(e)&&Pe(e)==ur}function WT(e){return fe(e)&&ke(e)==ct}function GT(e){return fe(e)&&Fo(e.length)&&!!ce[Pe(e)]}function mu(e){return typeof e=="function"?e:e==null?Fe:typeof e=="object"?$(e)?yu(e[0],e[1]):hu(e):Fl(e)}function ys(e){if(!_r(e))return Vm(e);var t=[];for(var r in oe(e))re.call(e,r)&&r!="constructor"&&t.push(r);return t}function $T(e){if(!le(e))return Ih(e);var t=_r(e),r=[];for(var a in e)a=="constructor"&&(t||!re.call(e,a))||r.push(a);return r}function xs(e,t){return e<t}function Tu(e,t){var r=-1,a=Oe(e)?w(e.length):[];return Qt(e,function(c,p,T){a[++r]=t(c,p,T)}),a}function hu(e){var t=Ns(e);return t.length==1&&t[0][2]?Ju(t[0][0],t[0][1]):function(r){return r===e||hs(r,e,t)}}function yu(e,t){return Ms(e)&&Xu(t)?Ju(St(e),t):function(r){var a=zs(r,e);return a===n&&a===t?Ks(r,e):wr(t,a,pe|ye)}}function vo(e,t,r,a,c){e!==t&&ds(t,function(p,T){if(c||(c=new lt),le(p))HT(e,t,T,r,vo,a,c);else{var h=a?a(Us(e,T),p,T+"",e,t,c):n;h===n&&(h=p),ps(e,T,h)}},Me)}function HT(e,t,r,a,c,p,T){var h=Us(e,r),x=Us(t,r),_=T.get(x);if(_){ps(e,r,_);return}var b=p?p(h,x,r+"",e,t,T):n,L=b===n;if(L){var C=$(x),D=!C&&nn(x),U=!C&&!D&&Hn(x);b=x,C||D||U?$(h)?b=h:me(h)?b=Ne(h):D?(L=!1,b=Cu(x,!0)):U?(L=!1,b=Pu(x,!0)):b=[]:Lr(x)||hn(x)?(b=h,hn(h)?b=Ll(h):(!le(h)||Mt(h))&&(b=Zu(x))):L=!1}L&&(T.set(x,b),c(b,x,a,p,T),T.delete(x)),ps(e,r,b)}function xu(e,t){var r=e.length;if(!!r)return t+=t<0?r:0,Ot(t,r)?e[t]:n}function Su(e,t,r){t.length?t=ue(t,function(p){return $(p)?function(T){return gn(T,p.length===1?p[0]:p)}:p}):t=[Fe];var a=-1;t=ue(t,$e(M()));var c=Tu(e,function(p,T,h){var x=ue(t,function(_){return _(p)});return{criteria:x,index:++a,value:p}});return Tm(c,function(p,T){return nh(p,T,r)})}function VT(e,t){return vu(e,t,function(r,a){return Ks(e,a)})}function vu(e,t,r){for(var a=-1,c=t.length,p={};++a<c;){var T=t[a],h=gn(e,T);r(h,T)&&Ar(p,en(T,e),h)}return p}function qT(e){return function(t){return gn(t,e)}}function Ss(e,t,r,a){var c=a?mm:Dn,p=-1,T=t.length,h=e;for(e===t&&(t=Ne(t)),r&&(h=ue(e,$e(r)));++p<T;)for(var x=0,_=t[p],b=r?r(_):_;(x=c(h,b,x,a))>-1;)h!==e&&lo.call(h,x,1),lo.call(e,x,1);return e}function wu(e,t){for(var r=e?t.length:0,a=r-1;r--;){var c=t[r];if(r==a||c!==p){var p=c;Ot(c)?lo.call(e,c,1):Is(e,c)}}return e}function vs(e,t){return e+go(nu()*(t-e+1))}function zT(e,t,r,a){for(var c=-1,p=Se(fo((t-e)/(r||1)),0),T=w(p);p--;)T[a?p:++c]=e,e+=r;return T}function ws(e,t){var r="";if(!e||t<1||t>zt)return r;do t%2&&(r+=e),t=go(t/2),t&&(e+=e);while(t);return r}function Y(e,t){return Bs(Qu(e,t,Fe),e+"")}function KT(e){return iu(Vn(e))}function YT(e,t){var r=Vn(e);return Po(r,dn(t,0,r.length))}function Ar(e,t,r,a){if(!le(e))return e;t=en(t,e);for(var c=-1,p=t.length,T=p-1,h=e;h!=null&&++c<p;){var x=St(t[c]),_=r;if(x==="__proto__"||x==="constructor"||x==="prototype")return e;if(c!=T){var b=h[x];_=a?a(b,x,h):n,_===n&&(_=le(b)?b:Ot(t[c+1])?[]:{})}xr(h,x,_),h=h[x]}return e}var Au=mo?function(e,t){return mo.set(e,t),e}:Fe,ZT=po?function(e,t){return po(e,"toString",{configurable:!0,enumerable:!1,value:Zs(t),writable:!0})}:Fe;function XT(e){return Po(Vn(e))}function nt(e,t,r){var a=-1,c=e.length;t<0&&(t=-t>c?0:c+t),r=r>c?c:r,r<0&&(r+=c),c=t>r?0:r-t>>>0,t>>>=0;for(var p=w(c);++a<c;)p[a]=e[a+t];return p}function JT(e,t){var r;return Qt(e,function(a,c,p){return r=t(a,c,p),!r}),!!r}function wo(e,t,r){var a=0,c=e==null?a:e.length;if(typeof t=="number"&&t===t&&c<=jd){for(;a<c;){var p=a+c>>>1,T=e[p];T!==null&&!Ve(T)&&(r?T<=t:T<t)?a=p+1:c=p}return c}return As(e,t,Fe,r)}function As(e,t,r,a){var c=0,p=e==null?0:e.length;if(p===0)return 0;t=r(t);for(var T=t!==t,h=t===null,x=Ve(t),_=t===n;c<p;){var b=go((c+p)/2),L=r(e[b]),C=L!==n,D=L===null,U=L===L,z=Ve(L);if(T)var B=a||U;else _?B=U&&(a||C):h?B=U&&C&&(a||!D):x?B=U&&C&&!D&&(a||!z):D||z?B=!1:B=a?L<=t:L<t;B?c=b+1:p=b}return Ee(p,Qd)}function Iu(e,t){for(var r=-1,a=e.length,c=0,p=[];++r<a;){var T=e[r],h=t?t(T):T;if(!r||!pt(h,x)){var x=h;p[c++]=T===0?0:T}}return p}function _u(e){return typeof e=="number"?e:Ve(e)?zr:+e}function He(e){if(typeof e=="string")return e;if($(e))return ue(e,He)+"";if(Ve(e))return ru?ru.call(e):"";var t=e+"";return t=="0"&&1/e==-cn?"-0":t}function jt(e,t,r){var a=-1,c=eo,p=e.length,T=!0,h=[],x=h;if(r)T=!1,c=Qi;else if(p>=i){var _=t?null:ch(e);if(_)return no(_);T=!1,c=dr,x=new fn}else x=t?[]:h;e:for(;++a<p;){var b=e[a],L=t?t(b):b;if(b=r||b!==0?b:0,T&&L===L){for(var C=x.length;C--;)if(x[C]===L)continue e;t&&x.push(L),h.push(b)}else c(x,L,r)||(x!==h&&x.push(L),h.push(b))}return h}function Is(e,t){return t=en(t,e),e=ju(e,t),e==null||delete e[St(rt(t))]}function bu(e,t,r,a){return Ar(e,t,r(gn(e,t)),a)}function Ao(e,t,r,a){for(var c=e.length,p=a?c:-1;(a?p--:++p<c)&&t(e[p],p,e););return r?nt(e,a?0:p,a?p+1:c):nt(e,a?p+1:0,a?c:p)}function Lu(e,t){var r=e;return r instanceof X&&(r=r.value()),ji(t,function(a,c){return c.func.apply(c.thisArg,Yt([a],c.args))},r)}function _s(e,t,r){var a=e.length;if(a<2)return a?jt(e[0]):[];for(var c=-1,p=w(a);++c<a;)for(var T=e[c],h=-1;++h<a;)h!=c&&(p[c]=Sr(p[c]||T,e[h],t,r));return jt(Le(p,1),t,r)}function Eu(e,t,r){for(var a=-1,c=e.length,p=t.length,T={};++a<c;){var h=a<p?t[a]:n;r(T,e[a],h)}return T}function bs(e){return me(e)?e:[]}function Ls(e){return typeof e=="function"?e:Fe}function en(e,t){return $(e)?e:Ms(e,t)?[e]:rl(te(e))}var QT=Y;function tn(e,t,r){var a=e.length;return r=r===n?a:r,!t&&r>=a?e:nt(e,t,r)}var ku=Bm||function(e){return ve.clearTimeout(e)};function Cu(e,t){if(t)return e.slice();var r=e.length,a=Jc?Jc(r):new e.constructor(r);return e.copy(a),a}function Es(e){var t=new e.constructor(e.byteLength);return new co(t).set(new co(e)),t}function jT(e,t){var r=t?Es(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function eh(e){var t=new e.constructor(e.source,dc.exec(e));return t.lastIndex=e.lastIndex,t}function th(e){return yr?oe(yr.call(e)):{}}function Pu(e,t){var r=t?Es(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Ru(e,t){if(e!==t){var r=e!==n,a=e===null,c=e===e,p=Ve(e),T=t!==n,h=t===null,x=t===t,_=Ve(t);if(!h&&!_&&!p&&e>t||p&&T&&x&&!h&&!_||a&&T&&x||!r&&x||!c)return 1;if(!a&&!p&&!_&&e<t||_&&r&&c&&!a&&!p||h&&r&&c||!T&&c||!x)return-1}return 0}function nh(e,t,r){for(var a=-1,c=e.criteria,p=t.criteria,T=c.length,h=r.length;++a<T;){var x=Ru(c[a],p[a]);if(x){if(a>=h)return x;var _=r[a];return x*(_=="desc"?-1:1)}}return e.index-t.index}function Du(e,t,r,a){for(var c=-1,p=e.length,T=r.length,h=-1,x=t.length,_=Se(p-T,0),b=w(x+_),L=!a;++h<x;)b[h]=t[h];for(;++c<T;)(L||c<p)&&(b[r[c]]=e[c]);for(;_--;)b[h++]=e[c++];return b}function Nu(e,t,r,a){for(var c=-1,p=e.length,T=-1,h=r.length,x=-1,_=t.length,b=Se(p-h,0),L=w(b+_),C=!a;++c<b;)L[c]=e[c];for(var D=c;++x<_;)L[D+x]=t[x];for(;++T<h;)(C||c<p)&&(L[D+r[T]]=e[c++]);return L}function Ne(e,t){var r=-1,a=e.length;for(t||(t=w(a));++r<a;)t[r]=e[r];return t}function xt(e,t,r,a){var c=!r;r||(r={});for(var p=-1,T=t.length;++p<T;){var h=t[p],x=a?a(r[h],e[h],h,r,e):n;x===n&&(x=e[h]),c?Rt(r,h,x):xr(r,h,x)}return r}function rh(e,t){return xt(e,Os(e),t)}function oh(e,t){return xt(e,Ku(e),t)}function Io(e,t){return function(r,a){var c=$(r)?um:bT,p=t?t():{};return c(r,e,M(a,2),p)}}function Wn(e){return Y(function(t,r){var a=-1,c=r.length,p=c>1?r[c-1]:n,T=c>2?r[2]:n;for(p=e.length>3&&typeof p=="function"?(c--,p):n,T&&Re(r[0],r[1],T)&&(p=c<3?n:p,c=1),t=oe(t);++a<c;){var h=r[a];h&&e(t,h,a,p)}return t})}function Ou(e,t){return function(r,a){if(r==null)return r;if(!Oe(r))return e(r,a);for(var c=r.length,p=t?c:-1,T=oe(r);(t?p--:++p<c)&&a(T[p],p,T)!==!1;);return r}}function Mu(e){return function(t,r,a){for(var c=-1,p=oe(t),T=a(t),h=T.length;h--;){var x=T[e?h:++c];if(r(p[x],x,p)===!1)break}return t}}function ih(e,t,r){var a=t&ge,c=Ir(e);function p(){var T=this&&this!==ve&&this instanceof p?c:e;return T.apply(a?r:this,arguments)}return p}function Fu(e){return function(t){t=te(t);var r=Nn(t)?ut(t):n,a=r?r[0]:t.charAt(0),c=r?tn(r,1).join(""):t.slice(1);return a[e]()+c}}function Gn(e){return function(t){return ji(Ol(Nl(t).replace(Zg,"")),e,"")}}function Ir(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Bn(e.prototype),a=e.apply(r,t);return le(a)?a:r}}function sh(e,t,r){var a=Ir(e);function c(){for(var p=arguments.length,T=w(p),h=p,x=$n(c);h--;)T[h]=arguments[h];var _=p<3&&T[0]!==x&&T[p-1]!==x?[]:Zt(T,x);if(p-=_.length,p<r)return $u(e,t,_o,c.placeholder,n,T,_,n,n,r-p);var b=this&&this!==ve&&this instanceof c?a:e;return Ge(b,this,T)}return c}function Uu(e){return function(t,r,a){var c=oe(t);if(!Oe(t)){var p=M(r,3);t=we(t),r=function(h){return p(c[h],h,c)}}var T=e(t,r,a);return T>-1?c[p?t[T]:T]:n}}function Bu(e){return Nt(function(t){var r=t.length,a=r,c=et.prototype.thru;for(e&&t.reverse();a--;){var p=t[a];if(typeof p!="function")throw new je(m);if(c&&!T&&ko(p)=="wrapper")var T=new et([],!0)}for(a=T?a:r;++a<r;){p=t[a];var h=ko(p),x=h=="wrapper"?Ds(p):n;x&&Fs(x[0])&&x[1]==(Et|mt|Tt|ir)&&!x[4].length&&x[9]==1?T=T[ko(x[0])].apply(T,x[3]):T=p.length==1&&Fs(p)?T[h]():T.thru(p)}return function(){var _=arguments,b=_[0];if(T&&_.length==1&&$(b))return T.plant(b).value();for(var L=0,C=r?t[L].apply(this,_):b;++L<r;)C=t[L].call(this,C);return C}})}function _o(e,t,r,a,c,p,T,h,x,_){var b=t&Et,L=t&ge,C=t&be,D=t&(mt|En),U=t&Di,z=C?n:Ir(e);function B(){for(var Z=arguments.length,J=w(Z),qe=Z;qe--;)J[qe]=arguments[qe];if(D)var De=$n(B),ze=ym(J,De);if(a&&(J=Du(J,a,c,D)),p&&(J=Nu(J,p,T,D)),Z-=ze,D&&Z<_){var Te=Zt(J,De);return $u(e,t,_o,B.placeholder,r,J,Te,h,x,_-Z)}var ft=L?r:this,Ut=C?ft[e]:e;return Z=J.length,h?J=bh(J,h):U&&Z>1&&J.reverse(),b&&x<Z&&(J.length=x),this&&this!==ve&&this instanceof B&&(Ut=z||Ir(Ut)),Ut.apply(ft,J)}return B}function Wu(e,t){return function(r,a){return NT(r,e,t(a),{})}}function bo(e,t){return function(r,a){var c;if(r===n&&a===n)return t;if(r!==n&&(c=r),a!==n){if(c===n)return a;typeof r=="string"||typeof a=="string"?(r=He(r),a=He(a)):(r=_u(r),a=_u(a)),c=e(r,a)}return c}}function ks(e){return Nt(function(t){return t=ue(t,$e(M())),Y(function(r){var a=this;return e(t,function(c){return Ge(c,a,r)})})})}function Lo(e,t){t=t===n?" ":He(t);var r=t.length;if(r<2)return r?ws(t,e):t;var a=ws(t,fo(e/On(t)));return Nn(t)?tn(ut(a),0,e).join(""):a.slice(0,e)}function ah(e,t,r,a){var c=t&ge,p=Ir(e);function T(){for(var h=-1,x=arguments.length,_=-1,b=a.length,L=w(b+x),C=this&&this!==ve&&this instanceof T?p:e;++_<b;)L[_]=a[_];for(;x--;)L[_++]=arguments[++h];return Ge(C,c?r:this,L)}return T}function Gu(e){return function(t,r,a){return a&&typeof a!="number"&&Re(t,r,a)&&(r=a=n),t=Ft(t),r===n?(r=t,t=0):r=Ft(r),a=a===n?t<r?1:-1:Ft(a),zT(t,r,a,e)}}function Eo(e){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=ot(t),r=ot(r)),e(t,r)}}function $u(e,t,r,a,c,p,T,h,x,_){var b=t&mt,L=b?T:n,C=b?n:T,D=b?p:n,U=b?n:p;t|=b?Tt:kn,t&=~(b?kn:Tt),t&sc||(t&=~(ge|be));var z=[e,t,c,D,L,U,C,h,x,_],B=r.apply(n,z);return Fs(e)&&el(B,z),B.placeholder=a,tl(B,e,t)}function Cs(e){var t=xe[e];return function(r,a){if(r=ot(r),a=a==null?0:Ee(H(a),292),a&&tu(r)){var c=(te(r)+"e").split("e"),p=t(c[0]+"e"+(+c[1]+a));return c=(te(p)+"e").split("e"),+(c[0]+"e"+(+c[1]-a))}return t(r)}}var ch=Fn&&1/no(new Fn([,-0]))[1]==cn?function(e){return new Fn(e)}:Qs;function Hu(e){return function(t){var r=ke(t);return r==at?ss(t):r==ct?_m(t):hm(t,e(t))}}function Dt(e,t,r,a,c,p,T,h){var x=t&be;if(!x&&typeof e!="function")throw new je(m);var _=a?a.length:0;if(_||(t&=~(Tt|kn),a=c=n),T=T===n?T:Se(H(T),0),h=h===n?h:H(h),_-=c?c.length:0,t&kn){var b=a,L=c;a=c=n}var C=x?n:Ds(e),D=[e,t,r,a,c,b,L,p,T,h];if(C&&Ah(D,C),e=D[0],t=D[1],r=D[2],a=D[3],c=D[4],h=D[9]=D[9]===n?x?0:e.length:Se(D[9]-_,0),!h&&t&(mt|En)&&(t&=~(mt|En)),!t||t==ge)var U=ih(e,t,r);else t==mt||t==En?U=sh(e,t,h):(t==Tt||t==(ge|Tt))&&!c.length?U=ah(e,t,r,a):U=_o.apply(n,D);var z=C?Au:el;return tl(z(U,D),e,t)}function Vu(e,t,r,a){return e===n||pt(e,Mn[r])&&!re.call(a,r)?t:e}function qu(e,t,r,a,c,p){return le(e)&&le(t)&&(p.set(t,e),vo(e,t,n,qu,p),p.delete(t)),e}function uh(e){return Lr(e)?n:e}function zu(e,t,r,a,c,p){var T=r&pe,h=e.length,x=t.length;if(h!=x&&!(T&&x>h))return!1;var _=p.get(e),b=p.get(t);if(_&&b)return _==t&&b==e;var L=-1,C=!0,D=r&ye?new fn:n;for(p.set(e,t),p.set(t,e);++L<h;){var U=e[L],z=t[L];if(a)var B=T?a(z,U,L,t,e,p):a(U,z,L,e,t,p);if(B!==n){if(B)continue;C=!1;break}if(D){if(!es(t,function(Z,J){if(!dr(D,J)&&(U===Z||c(U,Z,r,a,p)))return D.push(J)})){C=!1;break}}else if(!(U===z||c(U,z,r,a,p))){C=!1;break}}return p.delete(e),p.delete(t),C}function lh(e,t,r,a,c,p,T){switch(r){case Pn:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case fr:return!(e.byteLength!=t.byteLength||!p(new co(e),new co(t)));case sr:case ar:case cr:return pt(+e,+t);case Yr:return e.name==t.name&&e.message==t.message;case ur:case lr:return e==t+"";case at:var h=ss;case ct:var x=a&pe;if(h||(h=no),e.size!=t.size&&!x)return!1;var _=T.get(e);if(_)return _==t;a|=ye,T.set(e,t);var b=zu(h(e),h(t),a,c,p,T);return T.delete(e),b;case Xr:if(yr)return yr.call(e)==yr.call(t)}return!1}function ph(e,t,r,a,c,p){var T=r&pe,h=Ps(e),x=h.length,_=Ps(t),b=_.length;if(x!=b&&!T)return!1;for(var L=x;L--;){var C=h[L];if(!(T?C in t:re.call(t,C)))return!1}var D=p.get(e),U=p.get(t);if(D&&U)return D==t&&U==e;var z=!0;p.set(e,t),p.set(t,e);for(var B=T;++L<x;){C=h[L];var Z=e[C],J=t[C];if(a)var qe=T?a(J,Z,C,t,e,p):a(Z,J,C,e,t,p);if(!(qe===n?Z===J||c(Z,J,r,a,p):qe)){z=!1;break}B||(B=C=="constructor")}if(z&&!B){var De=e.constructor,ze=t.constructor;De!=ze&&"constructor"in e&&"constructor"in t&&!(typeof De=="function"&&De instanceof De&&typeof ze=="function"&&ze instanceof ze)&&(z=!1)}return p.delete(e),p.delete(t),z}function Nt(e){return Bs(Qu(e,n,al),e+"")}function Ps(e){return fu(e,we,Os)}function Rs(e){return fu(e,Me,Ku)}var Ds=mo?function(e){return mo.get(e)}:Qs;function ko(e){for(var t=e.name+"",r=Un[t],a=re.call(Un,t)?r.length:0;a--;){var c=r[a],p=c.func;if(p==null||p==e)return c.name}return t}function $n(e){var t=re.call(l,"placeholder")?l:e;return t.placeholder}function M(){var e=l.iteratee||Xs;return e=e===Xs?mu:e,arguments.length?e(arguments[0],arguments[1]):e}function Co(e,t){var r=e.__data__;return xh(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Ns(e){for(var t=we(e),r=t.length;r--;){var a=t[r],c=e[a];t[r]=[a,c,Xu(c)]}return t}function mn(e,t){var r=wm(e,t);return gu(r)?r:n}function fh(e){var t=re.call(e,ln),r=e[ln];try{e[ln]=n;var a=!0}catch(p){}var c=so.call(e);return a&&(t?e[ln]=r:delete e[ln]),c}var Os=cs?function(e){return e==null?[]:(e=oe(e),Kt(cs(e),function(t){return jc.call(e,t)}))}:js,Ku=cs?function(e){for(var t=[];e;)Yt(t,Os(e)),e=uo(e);return t}:js,ke=Pe;(us&&ke(new us(new ArrayBuffer(1)))!=Pn||mr&&ke(new mr)!=at||ls&&ke(ls.resolve())!=uc||Fn&&ke(new Fn)!=ct||Tr&&ke(new Tr)!=pr)&&(ke=function(e){var t=Pe(e),r=t==kt?e.constructor:n,a=r?Tn(r):"";if(a)switch(a){case Ym:return Pn;case Zm:return at;case Xm:return uc;case Jm:return ct;case Qm:return pr}return t});function dh(e,t,r){for(var a=-1,c=r.length;++a<c;){var p=r[a],T=p.size;switch(p.type){case"drop":e+=T;break;case"dropRight":t-=T;break;case"take":t=Ee(t,e+T);break;case"takeRight":e=Se(e,t-T);break}}return{start:e,end:t}}function gh(e){var t=e.match(Sg);return t?t[1].split(vg):[]}function Yu(e,t,r){t=en(t,e);for(var a=-1,c=t.length,p=!1;++a<c;){var T=St(t[a]);if(!(p=e!=null&&r(e,T)))break;e=e[T]}return p||++a!=c?p:(c=e==null?0:e.length,!!c&&Fo(c)&&Ot(T,c)&&($(e)||hn(e)))}function mh(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&re.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function Zu(e){return typeof e.constructor=="function"&&!_r(e)?Bn(uo(e)):{}}function Th(e,t,r){var a=e.constructor;switch(t){case fr:return Es(e);case sr:case ar:return new a(+e);case Pn:return jT(e,r);case Ni:case Oi:case Mi:case Fi:case Ui:case Bi:case Wi:case Gi:case $i:return Pu(e,r);case at:return new a;case cr:case lr:return new a(e);case ur:return eh(e);case ct:return new a;case Xr:return th(e)}}function hh(e,t){var r=t.length;if(!r)return e;var a=r-1;return t[a]=(r>1?"& ":"")+t[a],t=t.join(r>2?", ":" "),e.replace(xg,`{
|
|
2
2
|
/* [wrapped with `+t+`] */
|
|
3
|
-
`)}function Th(e){return $(e)||hn(e)||!!(eu&&e&&e[eu])}function Ot(e,t){var r=typeof e;return t=t==null?zt:t,!!t&&(r=="number"||r!="symbol"&&Eg.test(e))&&e>-1&&e%1==0&&e<t}function Re(e,t,r){if(!le(r))return!1;var a=typeof t;return(a=="number"?Oe(r)&&Ot(t,r.length):a=="string"&&t in r)?pt(r[t],e):!1}function Ms(e,t){if($(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Ve(e)?!0:dg.test(e)||!fg.test(e)||t!=null&&e in oe(t)}function hh(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Fs(e){var t=ko(e),r=l[t];if(typeof r!="function"||!(t in X.prototype))return!1;if(e===r)return!0;var a=Ds(r);return!!a&&e===a[0]}function yh(e){return!!Xc&&Xc in e}var xh=oo?Mt:ea;function _r(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Mn;return e===r}function Xu(e){return e===e&&!le(e)}function Ju(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==n||e in oe(r))}}function Sh(e){var t=Oo(e,function(a){return r.size===k&&r.clear(),a}),r=t.cache;return t}function vh(e,t){var r=e[1],a=t[1],c=r|a,p=c<(ge|be|Et),T=a==Et&&r==mt||a==Et&&r==ir&&e[7].length<=t[8]||a==(Et|ir)&&t[7].length<=t[8]&&r==mt;if(!(p||T))return e;a&ge&&(e[2]=t[2],c|=r&ge?0:sc);var h=t[3];if(h){var x=e[3];e[3]=x?Du(x,h,t[4]):h,e[4]=x?Zt(e[3],E):t[4]}return h=t[5],h&&(x=e[5],e[5]=x?Nu(x,h,t[6]):h,e[6]=x?Zt(e[5],E):t[6]),h=t[7],h&&(e[7]=h),a&Et&&(e[8]=e[8]==null?t[8]:Ee(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=c,e}function wh(e){var t=[];if(e!=null)for(var r in oe(e))t.push(r);return t}function Ah(e){return so.call(e)}function Qu(e,t,r){return t=Se(t===n?e.length-1:t,0),function(){for(var a=arguments,c=-1,p=Se(a.length-t,0),T=w(p);++c<p;)T[c]=a[t+c];c=-1;for(var h=w(t+1);++c<t;)h[c]=a[c];return h[t]=r(T),Ge(e,this,h)}}function ju(e,t){return t.length<2?e:gn(e,nt(t,0,-1))}function Ih(e,t){for(var r=e.length,a=Ee(t.length,r),c=Ne(e);a--;){var p=t[a];e[a]=Ot(p,r)?c[p]:n}return e}function Us(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var el=nl(Au),br=Bm||function(e,t){return ve.setTimeout(e,t)},Bs=nl(KT);function tl(e,t,r){var a=t+"";return Bs(e,mh(a,_h(fh(a),r)))}function nl(e){var t=0,r=0;return function(){var a=Hm(),c=zd-(a-r);if(r=a,c>0){if(++t>=qd)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Po(e,t){var r=-1,a=e.length,c=a-1;for(t=t===n?a:t;++r<t;){var p=vs(r,c),T=e[p];e[p]=e[r],e[r]=T}return e.length=t,e}var rl=Sh(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(gg,function(r,a,c,p){t.push(c?p.replace(wg,"$1"):a||r)}),t});function St(e){if(typeof e=="string"||Ve(e))return e;var t=e+"";return t=="0"&&1/e==-cn?"-0":t}function Tn(e){if(e!=null){try{return io.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function _h(e,t){return Qe(Qd,function(r){var a="_."+r[0];t&r[1]&&!eo(e,a)&&e.push(a)}),e.sort()}function ol(e){if(e instanceof X)return e.clone();var t=new et(e.__wrapped__,e.__chain__);return t.__actions__=Ne(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function bh(e,t,r){(r?Re(e,t,r):t===n)?t=1:t=Se(H(t),0);var a=e==null?0:e.length;if(!a||t<1)return[];for(var c=0,p=0,T=w(fo(a/t));c<a;)T[p++]=nt(e,c,c+=t);return T}function Lh(e){for(var t=-1,r=e==null?0:e.length,a=0,c=[];++t<r;){var p=e[t];p&&(c[a++]=p)}return c}function Eh(){var e=arguments.length;if(!e)return[];for(var t=w(e-1),r=arguments[0],a=e;a--;)t[a-1]=arguments[a];return Yt($(r)?Ne(r):[r],Le(t,1))}var kh=Y(function(e,t){return me(e)?Sr(e,Le(t,1,me,!0)):[]}),Ch=Y(function(e,t){var r=rt(t);return me(r)&&(r=n),me(e)?Sr(e,Le(t,1,me,!0),M(r,2)):[]}),Ph=Y(function(e,t){var r=rt(t);return me(r)&&(r=n),me(e)?Sr(e,Le(t,1,me,!0),n,r):[]});function Rh(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===n?1:H(t),nt(e,t<0?0:t,a)):[]}function Dh(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===n?1:H(t),t=a-t,nt(e,0,t<0?0:t)):[]}function Nh(e,t){return e&&e.length?Ao(e,M(t,3),!0,!0):[]}function Oh(e,t){return e&&e.length?Ao(e,M(t,3),!0):[]}function Mh(e,t,r,a){var c=e==null?0:e.length;return c?(r&&typeof r!="number"&&Re(e,t,r)&&(r=0,a=c),ET(e,t,r,a)):[]}function il(e,t,r){var a=e==null?0:e.length;if(!a)return-1;var c=r==null?0:H(r);return c<0&&(c=Se(a+c,0)),to(e,M(t,3),c)}function sl(e,t,r){var a=e==null?0:e.length;if(!a)return-1;var c=a-1;return r!==n&&(c=H(r),c=r<0?Se(a+c,0):Ee(c,a-1)),to(e,M(t,3),c,!0)}function al(e){var t=e==null?0:e.length;return t?Le(e,1):[]}function Fh(e){var t=e==null?0:e.length;return t?Le(e,cn):[]}function Uh(e,t){var r=e==null?0:e.length;return r?(t=t===n?1:H(t),Le(e,t)):[]}function Bh(e){for(var t=-1,r=e==null?0:e.length,a={};++t<r;){var c=e[t];a[c[0]]=c[1]}return a}function cl(e){return e&&e.length?e[0]:n}function Wh(e,t,r){var a=e==null?0:e.length;if(!a)return-1;var c=r==null?0:H(r);return c<0&&(c=Se(a+c,0)),Dn(e,t,c)}function Gh(e){var t=e==null?0:e.length;return t?nt(e,0,-1):[]}var $h=Y(function(e){var t=ue(e,bs);return t.length&&t[0]===e[0]?Ts(t):[]}),Hh=Y(function(e){var t=rt(e),r=ue(e,bs);return t===rt(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Ts(r,M(t,2)):[]}),Vh=Y(function(e){var t=rt(e),r=ue(e,bs);return t=typeof t=="function"?t:n,t&&r.pop(),r.length&&r[0]===e[0]?Ts(r,n,t):[]});function qh(e,t){return e==null?"":Gm.call(e,t)}function rt(e){var t=e==null?0:e.length;return t?e[t-1]:n}function zh(e,t,r){var a=e==null?0:e.length;if(!a)return-1;var c=a;return r!==n&&(c=H(r),c=c<0?Se(a+c,0):Ee(c,a-1)),t===t?_m(e,t,c):to(e,$c,c,!0)}function Kh(e,t){return e&&e.length?xu(e,H(t)):n}var Yh=Y(ul);function ul(e,t){return e&&e.length&&t&&t.length?Ss(e,t):e}function Zh(e,t,r){return e&&e.length&&t&&t.length?Ss(e,t,M(r,2)):e}function Xh(e,t,r){return e&&e.length&&t&&t.length?Ss(e,t,n,r):e}var Jh=Nt(function(e,t){var r=e==null?0:e.length,a=fs(e,t);return wu(e,ue(t,function(c){return Ot(c,r)?+c:c}).sort(Ru)),a});function Qh(e,t){var r=[];if(!(e&&e.length))return r;var a=-1,c=[],p=e.length;for(t=M(t,3);++a<p;){var T=e[a];t(T,a,e)&&(r.push(T),c.push(a))}return wu(e,c),r}function Ws(e){return e==null?e:qm.call(e)}function jh(e,t,r){var a=e==null?0:e.length;return a?(r&&typeof r!="number"&&Re(e,t,r)?(t=0,r=a):(t=t==null?0:H(t),r=r===n?a:H(r)),nt(e,t,r)):[]}function ey(e,t){return wo(e,t)}function ty(e,t,r){return As(e,t,M(r,2))}function ny(e,t){var r=e==null?0:e.length;if(r){var a=wo(e,t);if(a<r&&pt(e[a],t))return a}return-1}function ry(e,t){return wo(e,t,!0)}function oy(e,t,r){return As(e,t,M(r,2),!0)}function iy(e,t){var r=e==null?0:e.length;if(r){var a=wo(e,t,!0)-1;if(pt(e[a],t))return a}return-1}function sy(e){return e&&e.length?Iu(e):[]}function ay(e,t){return e&&e.length?Iu(e,M(t,2)):[]}function cy(e){var t=e==null?0:e.length;return t?nt(e,1,t):[]}function uy(e,t,r){return e&&e.length?(t=r||t===n?1:H(t),nt(e,0,t<0?0:t)):[]}function ly(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===n?1:H(t),t=a-t,nt(e,t<0?0:t,a)):[]}function py(e,t){return e&&e.length?Ao(e,M(t,3),!1,!0):[]}function fy(e,t){return e&&e.length?Ao(e,M(t,3)):[]}var dy=Y(function(e){return jt(Le(e,1,me,!0))}),gy=Y(function(e){var t=rt(e);return me(t)&&(t=n),jt(Le(e,1,me,!0),M(t,2))}),my=Y(function(e){var t=rt(e);return t=typeof t=="function"?t:n,jt(Le(e,1,me,!0),n,t)});function Ty(e){return e&&e.length?jt(e):[]}function hy(e,t){return e&&e.length?jt(e,M(t,2)):[]}function yy(e,t){return t=typeof t=="function"?t:n,e&&e.length?jt(e,n,t):[]}function Gs(e){if(!(e&&e.length))return[];var t=0;return e=Kt(e,function(r){if(me(r))return t=Se(r.length,t),!0}),os(t,function(r){return ue(e,ts(r))})}function ll(e,t){if(!(e&&e.length))return[];var r=Gs(e);return t==null?r:ue(r,function(a){return Ge(t,n,a)})}var xy=Y(function(e,t){return me(e)?Sr(e,t):[]}),Sy=Y(function(e){return _s(Kt(e,me))}),vy=Y(function(e){var t=rt(e);return me(t)&&(t=n),_s(Kt(e,me),M(t,2))}),wy=Y(function(e){var t=rt(e);return t=typeof t=="function"?t:n,_s(Kt(e,me),n,t)}),Ay=Y(Gs);function Iy(e,t){return Eu(e||[],t||[],xr)}function _y(e,t){return Eu(e||[],t||[],Ar)}var by=Y(function(e){var t=e.length,r=t>1?e[t-1]:n;return r=typeof r=="function"?(e.pop(),r):n,ll(e,r)});function pl(e){var t=l(e);return t.__chain__=!0,t}function Ly(e,t){return t(e),e}function Ro(e,t){return t(e)}var Ey=Nt(function(e){var t=e.length,r=t?e[0]:0,a=this.__wrapped__,c=function(p){return fs(p,e)};return t>1||this.__actions__.length||!(a instanceof X)||!Ot(r)?this.thru(c):(a=a.slice(r,+r+(t?1:0)),a.__actions__.push({func:Ro,args:[c],thisArg:n}),new et(a,this.__chain__).thru(function(p){return t&&!p.length&&p.push(n),p}))});function ky(){return pl(this)}function Cy(){return new et(this.value(),this.__chain__)}function Py(){this.__values__===n&&(this.__values__=_l(this.value()));var e=this.__index__>=this.__values__.length,t=e?n:this.__values__[this.__index__++];return{done:e,value:t}}function Ry(){return this}function Dy(e){for(var t,r=this;r instanceof ho;){var a=ol(r);a.__index__=0,a.__values__=n,t?c.__wrapped__=a:t=a;var c=a;r=r.__wrapped__}return c.__wrapped__=e,t}function Ny(){var e=this.__wrapped__;if(e instanceof X){var t=e;return this.__actions__.length&&(t=new X(this)),t=t.reverse(),t.__actions__.push({func:Ro,args:[Ws],thisArg:n}),new et(t,this.__chain__)}return this.thru(Ws)}function Oy(){return Lu(this.__wrapped__,this.__actions__)}var My=Io(function(e,t,r){re.call(e,r)?++e[r]:Rt(e,r,1)});function Fy(e,t,r){var a=$(e)?Wc:LT;return r&&Re(e,t,r)&&(t=n),a(e,M(t,3))}function Uy(e,t){var r=$(e)?Kt:lu;return r(e,M(t,3))}var By=Uu(il),Wy=Uu(sl);function Gy(e,t){return Le(Do(e,t),1)}function $y(e,t){return Le(Do(e,t),cn)}function Hy(e,t,r){return r=r===n?1:H(r),Le(Do(e,t),r)}function fl(e,t){var r=$(e)?Qe:Qt;return r(e,M(t,3))}function dl(e,t){var r=$(e)?cm:uu;return r(e,M(t,3))}var Vy=Io(function(e,t,r){re.call(e,r)?e[r].push(t):Rt(e,r,[t])});function qy(e,t,r,a){e=Oe(e)?e:Vn(e),r=r&&!a?H(r):0;var c=e.length;return r<0&&(r=Se(c+r,0)),Uo(e)?r<=c&&e.indexOf(t,r)>-1:!!c&&Dn(e,t,r)>-1}var zy=Y(function(e,t,r){var a=-1,c=typeof t=="function",p=Oe(e)?w(e.length):[];return Qt(e,function(T){p[++a]=c?Ge(t,T,r):vr(T,t,r)}),p}),Ky=Io(function(e,t,r){Rt(e,r,t)});function Do(e,t){var r=$(e)?ue:Tu;return r(e,M(t,3))}function Yy(e,t,r,a){return e==null?[]:($(t)||(t=t==null?[]:[t]),r=a?n:r,$(r)||(r=r==null?[]:[r]),Su(e,t,r))}var Zy=Io(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function Xy(e,t,r){var a=$(e)?ji:Vc,c=arguments.length<3;return a(e,M(t,4),r,c,Qt)}function Jy(e,t,r){var a=$(e)?um:Vc,c=arguments.length<3;return a(e,M(t,4),r,c,uu)}function Qy(e,t){var r=$(e)?Kt:lu;return r(e,Mo(M(t,3)))}function jy(e){var t=$(e)?iu:qT;return t(e)}function ex(e,t,r){(r?Re(e,t,r):t===n)?t=1:t=H(t);var a=$(e)?wT:zT;return a(e,t)}function tx(e){var t=$(e)?AT:YT;return t(e)}function nx(e){if(e==null)return 0;if(Oe(e))return Uo(e)?On(e):e.length;var t=ke(e);return t==at||t==ct?e.size:ys(e).length}function rx(e,t,r){var a=$(e)?es:ZT;return r&&Re(e,t,r)&&(t=n),a(e,M(t,3))}var ox=Y(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Re(e,t[0],t[1])?t=[]:r>2&&Re(t[0],t[1],t[2])&&(t=[t[0]]),Su(e,Le(t,1),[])}),No=Um||function(){return ve.Date.now()};function ix(e,t){if(typeof t!="function")throw new je(m);return e=H(e),function(){if(--e<1)return t.apply(this,arguments)}}function gl(e,t,r){return t=r?n:t,t=e&&t==null?e.length:t,Dt(e,Et,n,n,n,n,t)}function ml(e,t){var r;if(typeof t!="function")throw new je(m);return e=H(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var $s=Y(function(e,t,r){var a=ge;if(r.length){var c=Zt(r,$n($s));a|=Tt}return Dt(e,a,t,r,c)}),Tl=Y(function(e,t,r){var a=ge|be;if(r.length){var c=Zt(r,$n(Tl));a|=Tt}return Dt(t,a,e,r,c)});function hl(e,t,r){t=r?n:t;var a=Dt(e,mt,n,n,n,n,n,t);return a.placeholder=hl.placeholder,a}function yl(e,t,r){t=r?n:t;var a=Dt(e,En,n,n,n,n,n,t);return a.placeholder=yl.placeholder,a}function xl(e,t,r){var a,c,p,T,h,x,_=0,b=!1,L=!1,C=!0;if(typeof e!="function")throw new je(m);t=ot(t)||0,le(r)&&(b=!!r.leading,L="maxWait"in r,p=L?Se(ot(r.maxWait)||0,t):p,C="trailing"in r?!!r.trailing:C);function D(Te){var ft=a,Ut=c;return a=c=n,_=Te,T=e.apply(Ut,ft),T}function U(Te){return _=Te,h=br(Z,t),b?D(Te):T}function z(Te){var ft=Te-x,Ut=Te-_,Ul=t-ft;return L?Ee(Ul,p-Ut):Ul}function B(Te){var ft=Te-x,Ut=Te-_;return x===n||ft>=t||ft<0||L&&Ut>=p}function Z(){var Te=No();if(B(Te))return J(Te);h=br(Z,z(Te))}function J(Te){return h=n,C&&a?D(Te):(a=c=n,T)}function qe(){h!==n&&ku(h),_=0,a=x=c=h=n}function De(){return h===n?T:J(No())}function ze(){var Te=No(),ft=B(Te);if(a=arguments,c=this,x=Te,ft){if(h===n)return U(x);if(L)return ku(h),h=br(Z,t),D(x)}return h===n&&(h=br(Z,t)),T}return ze.cancel=qe,ze.flush=De,ze}var sx=Y(function(e,t){return cu(e,1,t)}),ax=Y(function(e,t,r){return cu(e,ot(t)||0,r)});function cx(e){return Dt(e,Di)}function Oo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new je(m);var r=function(){var a=arguments,c=t?t.apply(this,a):a[0],p=r.cache;if(p.has(c))return p.get(c);var T=e.apply(this,a);return r.cache=p.set(c,T)||p,T};return r.cache=new(Oo.Cache||Pt),r}Oo.Cache=Pt;function Mo(e){if(typeof e!="function")throw new je(m);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function ux(e){return ml(2,e)}var lx=XT(function(e,t){t=t.length==1&&$(t[0])?ue(t[0],$e(M())):ue(Le(t,1),$e(M()));var r=t.length;return Y(function(a){for(var c=-1,p=Ee(a.length,r);++c<p;)a[c]=t[c].call(this,a[c]);return Ge(e,this,a)})}),Hs=Y(function(e,t){var r=Zt(t,$n(Hs));return Dt(e,Tt,n,t,r)}),Sl=Y(function(e,t){var r=Zt(t,$n(Sl));return Dt(e,kn,n,t,r)}),px=Nt(function(e,t){return Dt(e,ir,n,n,n,t)});function fx(e,t){if(typeof e!="function")throw new je(m);return t=t===n?t:H(t),Y(e,t)}function dx(e,t){if(typeof e!="function")throw new je(m);return t=t==null?0:Se(H(t),0),Y(function(r){var a=r[t],c=tn(r,0,t);return a&&Yt(c,a),Ge(e,this,c)})}function gx(e,t,r){var a=!0,c=!0;if(typeof e!="function")throw new je(m);return le(r)&&(a="leading"in r?!!r.leading:a,c="trailing"in r?!!r.trailing:c),xl(e,t,{leading:a,maxWait:t,trailing:c})}function mx(e){return gl(e,1)}function Tx(e,t){return Hs(Ls(t),e)}function hx(){if(!arguments.length)return[];var e=arguments[0];return $(e)?e:[e]}function yx(e){return tt(e,F)}function xx(e,t){return t=typeof t=="function"?t:n,tt(e,F,t)}function Sx(e){return tt(e,N|F)}function vx(e,t){return t=typeof t=="function"?t:n,tt(e,N|F,t)}function wx(e,t){return t==null||au(e,t,we(t))}function pt(e,t){return e===t||e!==e&&t!==t}var Ax=Eo(ms),Ix=Eo(function(e,t){return e>=t}),hn=du(function(){return arguments}())?du:function(e){return fe(e)&&re.call(e,"callee")&&!jc.call(e,"callee")},$=w.isArray,_x=Nc?$e(Nc):DT;function Oe(e){return e!=null&&Fo(e.length)&&!Mt(e)}function me(e){return fe(e)&&Oe(e)}function bx(e){return e===!0||e===!1||fe(e)&&Pe(e)==sr}var nn=Wm||ea,Lx=Oc?$e(Oc):NT;function Ex(e){return fe(e)&&e.nodeType===1&&!Lr(e)}function kx(e){if(e==null)return!0;if(Oe(e)&&($(e)||typeof e=="string"||typeof e.splice=="function"||nn(e)||Hn(e)||hn(e)))return!e.length;var t=ke(e);if(t==at||t==ct)return!e.size;if(_r(e))return!ys(e).length;for(var r in e)if(re.call(e,r))return!1;return!0}function Cx(e,t){return wr(e,t)}function Px(e,t,r){r=typeof r=="function"?r:n;var a=r?r(e,t):n;return a===n?wr(e,t,n,r):!!a}function Vs(e){if(!fe(e))return!1;var t=Pe(e);return t==Yr||t==eg||typeof e.message=="string"&&typeof e.name=="string"&&!Lr(e)}function Rx(e){return typeof e=="number"&&tu(e)}function Mt(e){if(!le(e))return!1;var t=Pe(e);return t==Zr||t==cc||t==jd||t==ng}function vl(e){return typeof e=="number"&&e==H(e)}function Fo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=zt}function le(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function fe(e){return e!=null&&typeof e=="object"}var wl=Mc?$e(Mc):MT;function Dx(e,t){return e===t||hs(e,t,Ns(t))}function Nx(e,t,r){return r=typeof r=="function"?r:n,hs(e,t,Ns(t),r)}function Ox(e){return Al(e)&&e!=+e}function Mx(e){if(xh(e))throw new G(u);return gu(e)}function Fx(e){return e===null}function Ux(e){return e==null}function Al(e){return typeof e=="number"||fe(e)&&Pe(e)==cr}function Lr(e){if(!fe(e)||Pe(e)!=kt)return!1;var t=uo(e);if(t===null)return!0;var r=re.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&io.call(r)==Nm}var qs=Fc?$e(Fc):FT;function Bx(e){return vl(e)&&e>=-zt&&e<=zt}var Il=Uc?$e(Uc):UT;function Uo(e){return typeof e=="string"||!$(e)&&fe(e)&&Pe(e)==lr}function Ve(e){return typeof e=="symbol"||fe(e)&&Pe(e)==Xr}var Hn=Bc?$e(Bc):BT;function Wx(e){return e===n}function Gx(e){return fe(e)&&ke(e)==pr}function $x(e){return fe(e)&&Pe(e)==og}var Hx=Eo(xs),Vx=Eo(function(e,t){return e<=t});function _l(e){if(!e)return[];if(Oe(e))return Uo(e)?ut(e):Ne(e);if(gr&&e[gr])return wm(e[gr]());var t=ke(e),r=t==at?ss:t==ct?no:Vn;return r(e)}function Ft(e){if(!e)return e===0?e:0;if(e=ot(e),e===cn||e===-cn){var t=e<0?-1:1;return t*Zd}return e===e?e:0}function H(e){var t=Ft(e),r=t%1;return t===t?r?t-r:t:0}function bl(e){return e?dn(H(e),0,ht):0}function ot(e){if(typeof e=="number")return e;if(Ve(e))return zr;if(le(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=le(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=qc(e);var r=_g.test(e);return r||Lg.test(e)?im(e.slice(2),r?2:8):Ig.test(e)?zr:+e}function Ll(e){return xt(e,Me(e))}function qx(e){return e?dn(H(e),-zt,zt):e===0?e:0}function te(e){return e==null?"":He(e)}var zx=Wn(function(e,t){if(_r(t)||Oe(t)){xt(t,we(t),e);return}for(var r in t)re.call(t,r)&&xr(e,r,t[r])}),El=Wn(function(e,t){xt(t,Me(t),e)}),Bo=Wn(function(e,t,r,a){xt(t,Me(t),e,a)}),Kx=Wn(function(e,t,r,a){xt(t,we(t),e,a)}),Yx=Nt(fs);function Zx(e,t){var r=Bn(e);return t==null?r:su(r,t)}var Xx=Y(function(e,t){e=oe(e);var r=-1,a=t.length,c=a>2?t[2]:n;for(c&&Re(t[0],t[1],c)&&(a=1);++r<a;)for(var p=t[r],T=Me(p),h=-1,x=T.length;++h<x;){var _=T[h],b=e[_];(b===n||pt(b,Mn[_])&&!re.call(e,_))&&(e[_]=p[_])}return e}),Jx=Y(function(e){return e.push(n,qu),Ge(kl,n,e)});function Qx(e,t){return Gc(e,M(t,3),yt)}function jx(e,t){return Gc(e,M(t,3),gs)}function eS(e,t){return e==null?e:ds(e,M(t,3),Me)}function tS(e,t){return e==null?e:pu(e,M(t,3),Me)}function nS(e,t){return e&&yt(e,M(t,3))}function rS(e,t){return e&&gs(e,M(t,3))}function oS(e){return e==null?[]:So(e,we(e))}function iS(e){return e==null?[]:So(e,Me(e))}function zs(e,t,r){var a=e==null?n:gn(e,t);return a===n?r:a}function sS(e,t){return e!=null&&Yu(e,t,kT)}function Ks(e,t){return e!=null&&Yu(e,t,CT)}var aS=Wu(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=so.call(t)),e[t]=r},Zs(Fe)),cS=Wu(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=so.call(t)),re.call(e,t)?e[t].push(r):e[t]=[r]},M),uS=Y(vr);function we(e){return Oe(e)?ou(e):ys(e)}function Me(e){return Oe(e)?ou(e,!0):WT(e)}function lS(e,t){var r={};return t=M(t,3),yt(e,function(a,c,p){Rt(r,t(a,c,p),a)}),r}function pS(e,t){var r={};return t=M(t,3),yt(e,function(a,c,p){Rt(r,c,t(a,c,p))}),r}var fS=Wn(function(e,t,r){vo(e,t,r)}),kl=Wn(function(e,t,r,a){vo(e,t,r,a)}),dS=Nt(function(e,t){var r={};if(e==null)return r;var a=!1;t=ue(t,function(p){return p=en(p,e),a||(a=p.length>1),p}),xt(e,Rs(e),r),a&&(r=tt(r,N|q|F,ah));for(var c=t.length;c--;)Is(r,t[c]);return r});function gS(e,t){return Cl(e,Mo(M(t)))}var mS=Nt(function(e,t){return e==null?{}:$T(e,t)});function Cl(e,t){if(e==null)return{};var r=ue(Rs(e),function(a){return[a]});return t=M(t),vu(e,r,function(a,c){return t(a,c[0])})}function TS(e,t,r){t=en(t,e);var a=-1,c=t.length;for(c||(c=1,e=n);++a<c;){var p=e==null?n:e[St(t[a])];p===n&&(a=c,p=r),e=Mt(p)?p.call(e):p}return e}function hS(e,t,r){return e==null?e:Ar(e,t,r)}function yS(e,t,r,a){return a=typeof a=="function"?a:n,e==null?e:Ar(e,t,r,a)}var Pl=Hu(we),Rl=Hu(Me);function xS(e,t,r){var a=$(e),c=a||nn(e)||Hn(e);if(t=M(t,4),r==null){var p=e&&e.constructor;c?r=a?new p:[]:le(e)?r=Mt(p)?Bn(uo(e)):{}:r={}}return(c?Qe:yt)(e,function(T,h,x){return t(r,T,h,x)}),r}function SS(e,t){return e==null?!0:Is(e,t)}function vS(e,t,r){return e==null?e:bu(e,t,Ls(r))}function wS(e,t,r,a){return a=typeof a=="function"?a:n,e==null?e:bu(e,t,Ls(r),a)}function Vn(e){return e==null?[]:is(e,we(e))}function AS(e){return e==null?[]:is(e,Me(e))}function IS(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=ot(r),r=r===r?r:0),t!==n&&(t=ot(t),t=t===t?t:0),dn(ot(e),t,r)}function _S(e,t,r){return t=Ft(t),r===n?(r=t,t=0):r=Ft(r),e=ot(e),PT(e,t,r)}function bS(e,t,r){if(r&&typeof r!="boolean"&&Re(e,t,r)&&(t=r=n),r===n&&(typeof t=="boolean"?(r=t,t=n):typeof e=="boolean"&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=Ft(e),t===n?(t=e,e=0):t=Ft(t)),e>t){var a=e;e=t,t=a}if(r||e%1||t%1){var c=nu();return Ee(e+c*(t-e+om("1e-"+((c+"").length-1))),t)}return vs(e,t)}var LS=Gn(function(e,t,r){return t=t.toLowerCase(),e+(r?Dl(t):t)});function Dl(e){return Ys(te(e).toLowerCase())}function Nl(e){return e=te(e),e&&e.replace(kg,hm).replace(Yg,"")}function ES(e,t,r){e=te(e),t=He(t);var a=e.length;r=r===n?a:dn(H(r),0,a);var c=r;return r-=t.length,r>=0&&e.slice(r,c)==t}function kS(e){return e=te(e),e&&ug.test(e)?e.replace(pc,ym):e}function CS(e){return e=te(e),e&&mg.test(e)?e.replace(Hi,"\\$&"):e}var PS=Gn(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),RS=Gn(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),DS=Fu("toLowerCase");function NS(e,t,r){e=te(e),t=H(t);var a=t?On(e):0;if(!t||a>=t)return e;var c=(t-a)/2;return Lo(go(c),r)+e+Lo(fo(c),r)}function OS(e,t,r){e=te(e),t=H(t);var a=t?On(e):0;return t&&a<t?e+Lo(t-a,r):e}function MS(e,t,r){e=te(e),t=H(t);var a=t?On(e):0;return t&&a<t?Lo(t-a,r)+e:e}function FS(e,t,r){return r||t==null?t=0:t&&(t=+t),Vm(te(e).replace(Vi,""),t||0)}function US(e,t,r){return(r?Re(e,t,r):t===n)?t=1:t=H(t),ws(te(e),t)}function BS(){var e=arguments,t=te(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var WS=Gn(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function GS(e,t,r){return r&&typeof r!="number"&&Re(e,t,r)&&(t=r=n),r=r===n?ht:r>>>0,r?(e=te(e),e&&(typeof t=="string"||t!=null&&!qs(t))&&(t=He(t),!t&&Nn(e))?tn(ut(e),0,r):e.split(t,r)):[]}var $S=Gn(function(e,t,r){return e+(r?" ":"")+Ys(t)});function HS(e,t,r){return e=te(e),r=r==null?0:dn(H(r),0,e.length),t=He(t),e.slice(r,r+t.length)==t}function VS(e,t,r){var a=l.templateSettings;r&&Re(e,t,r)&&(t=n),e=te(e),t=Bo({},t,a,Vu);var c=Bo({},t.imports,a.imports,Vu),p=we(c),T=is(c,p),h,x,_=0,b=t.interpolate||Jr,L="__p += '",C=as((t.escape||Jr).source+"|"+b.source+"|"+(b===fc?Ag:Jr).source+"|"+(t.evaluate||Jr).source+"|$","g"),D="//# sourceURL="+(re.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++jg+"]")+`
|
|
4
|
-
`;e.replace(C,function(B,Z,J,qe,De,ze){return J||(J=qe),L+=e.slice(_,ze).replace(
|
|
3
|
+
`)}function yh(e){return $(e)||hn(e)||!!(eu&&e&&e[eu])}function Ot(e,t){var r=typeof e;return t=t==null?zt:t,!!t&&(r=="number"||r!="symbol"&&Cg.test(e))&&e>-1&&e%1==0&&e<t}function Re(e,t,r){if(!le(r))return!1;var a=typeof t;return(a=="number"?Oe(r)&&Ot(t,r.length):a=="string"&&t in r)?pt(r[t],e):!1}function Ms(e,t){if($(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Ve(e)?!0:mg.test(e)||!gg.test(e)||t!=null&&e in oe(t)}function xh(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Fs(e){var t=ko(e),r=l[t];if(typeof r!="function"||!(t in X.prototype))return!1;if(e===r)return!0;var a=Ds(r);return!!a&&e===a[0]}function Sh(e){return!!Xc&&Xc in e}var vh=oo?Mt:ea;function _r(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Mn;return e===r}function Xu(e){return e===e&&!le(e)}function Ju(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==n||e in oe(r))}}function wh(e){var t=Oo(e,function(a){return r.size===k&&r.clear(),a}),r=t.cache;return t}function Ah(e,t){var r=e[1],a=t[1],c=r|a,p=c<(ge|be|Et),T=a==Et&&r==mt||a==Et&&r==ir&&e[7].length<=t[8]||a==(Et|ir)&&t[7].length<=t[8]&&r==mt;if(!(p||T))return e;a&ge&&(e[2]=t[2],c|=r&ge?0:sc);var h=t[3];if(h){var x=e[3];e[3]=x?Du(x,h,t[4]):h,e[4]=x?Zt(e[3],E):t[4]}return h=t[5],h&&(x=e[5],e[5]=x?Nu(x,h,t[6]):h,e[6]=x?Zt(e[5],E):t[6]),h=t[7],h&&(e[7]=h),a&Et&&(e[8]=e[8]==null?t[8]:Ee(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=c,e}function Ih(e){var t=[];if(e!=null)for(var r in oe(e))t.push(r);return t}function _h(e){return so.call(e)}function Qu(e,t,r){return t=Se(t===n?e.length-1:t,0),function(){for(var a=arguments,c=-1,p=Se(a.length-t,0),T=w(p);++c<p;)T[c]=a[t+c];c=-1;for(var h=w(t+1);++c<t;)h[c]=a[c];return h[t]=r(T),Ge(e,this,h)}}function ju(e,t){return t.length<2?e:gn(e,nt(t,0,-1))}function bh(e,t){for(var r=e.length,a=Ee(t.length,r),c=Ne(e);a--;){var p=t[a];e[a]=Ot(p,r)?c[p]:n}return e}function Us(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var el=nl(Au),br=Gm||function(e,t){return ve.setTimeout(e,t)},Bs=nl(ZT);function tl(e,t,r){var a=t+"";return Bs(e,hh(a,Lh(gh(a),r)))}function nl(e){var t=0,r=0;return function(){var a=qm(),c=Yd-(a-r);if(r=a,c>0){if(++t>=Kd)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Po(e,t){var r=-1,a=e.length,c=a-1;for(t=t===n?a:t;++r<t;){var p=vs(r,c),T=e[p];e[p]=e[r],e[r]=T}return e.length=t,e}var rl=wh(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Tg,function(r,a,c,p){t.push(c?p.replace(Ig,"$1"):a||r)}),t});function St(e){if(typeof e=="string"||Ve(e))return e;var t=e+"";return t=="0"&&1/e==-cn?"-0":t}function Tn(e){if(e!=null){try{return io.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Lh(e,t){return Qe(eg,function(r){var a="_."+r[0];t&r[1]&&!eo(e,a)&&e.push(a)}),e.sort()}function ol(e){if(e instanceof X)return e.clone();var t=new et(e.__wrapped__,e.__chain__);return t.__actions__=Ne(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Eh(e,t,r){(r?Re(e,t,r):t===n)?t=1:t=Se(H(t),0);var a=e==null?0:e.length;if(!a||t<1)return[];for(var c=0,p=0,T=w(fo(a/t));c<a;)T[p++]=nt(e,c,c+=t);return T}function kh(e){for(var t=-1,r=e==null?0:e.length,a=0,c=[];++t<r;){var p=e[t];p&&(c[a++]=p)}return c}function Ch(){var e=arguments.length;if(!e)return[];for(var t=w(e-1),r=arguments[0],a=e;a--;)t[a-1]=arguments[a];return Yt($(r)?Ne(r):[r],Le(t,1))}var Ph=Y(function(e,t){return me(e)?Sr(e,Le(t,1,me,!0)):[]}),Rh=Y(function(e,t){var r=rt(t);return me(r)&&(r=n),me(e)?Sr(e,Le(t,1,me,!0),M(r,2)):[]}),Dh=Y(function(e,t){var r=rt(t);return me(r)&&(r=n),me(e)?Sr(e,Le(t,1,me,!0),n,r):[]});function Nh(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===n?1:H(t),nt(e,t<0?0:t,a)):[]}function Oh(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===n?1:H(t),t=a-t,nt(e,0,t<0?0:t)):[]}function Mh(e,t){return e&&e.length?Ao(e,M(t,3),!0,!0):[]}function Fh(e,t){return e&&e.length?Ao(e,M(t,3),!0):[]}function Uh(e,t,r,a){var c=e==null?0:e.length;return c?(r&&typeof r!="number"&&Re(e,t,r)&&(r=0,a=c),CT(e,t,r,a)):[]}function il(e,t,r){var a=e==null?0:e.length;if(!a)return-1;var c=r==null?0:H(r);return c<0&&(c=Se(a+c,0)),to(e,M(t,3),c)}function sl(e,t,r){var a=e==null?0:e.length;if(!a)return-1;var c=a-1;return r!==n&&(c=H(r),c=r<0?Se(a+c,0):Ee(c,a-1)),to(e,M(t,3),c,!0)}function al(e){var t=e==null?0:e.length;return t?Le(e,1):[]}function Bh(e){var t=e==null?0:e.length;return t?Le(e,cn):[]}function Wh(e,t){var r=e==null?0:e.length;return r?(t=t===n?1:H(t),Le(e,t)):[]}function Gh(e){for(var t=-1,r=e==null?0:e.length,a={};++t<r;){var c=e[t];a[c[0]]=c[1]}return a}function cl(e){return e&&e.length?e[0]:n}function $h(e,t,r){var a=e==null?0:e.length;if(!a)return-1;var c=r==null?0:H(r);return c<0&&(c=Se(a+c,0)),Dn(e,t,c)}function Hh(e){var t=e==null?0:e.length;return t?nt(e,0,-1):[]}var Vh=Y(function(e){var t=ue(e,bs);return t.length&&t[0]===e[0]?Ts(t):[]}),qh=Y(function(e){var t=rt(e),r=ue(e,bs);return t===rt(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Ts(r,M(t,2)):[]}),zh=Y(function(e){var t=rt(e),r=ue(e,bs);return t=typeof t=="function"?t:n,t&&r.pop(),r.length&&r[0]===e[0]?Ts(r,n,t):[]});function Kh(e,t){return e==null?"":Hm.call(e,t)}function rt(e){var t=e==null?0:e.length;return t?e[t-1]:n}function Yh(e,t,r){var a=e==null?0:e.length;if(!a)return-1;var c=a;return r!==n&&(c=H(r),c=c<0?Se(a+c,0):Ee(c,a-1)),t===t?Lm(e,t,c):to(e,$c,c,!0)}function Zh(e,t){return e&&e.length?xu(e,H(t)):n}var Xh=Y(ul);function ul(e,t){return e&&e.length&&t&&t.length?Ss(e,t):e}function Jh(e,t,r){return e&&e.length&&t&&t.length?Ss(e,t,M(r,2)):e}function Qh(e,t,r){return e&&e.length&&t&&t.length?Ss(e,t,n,r):e}var jh=Nt(function(e,t){var r=e==null?0:e.length,a=fs(e,t);return wu(e,ue(t,function(c){return Ot(c,r)?+c:c}).sort(Ru)),a});function ey(e,t){var r=[];if(!(e&&e.length))return r;var a=-1,c=[],p=e.length;for(t=M(t,3);++a<p;){var T=e[a];t(T,a,e)&&(r.push(T),c.push(a))}return wu(e,c),r}function Ws(e){return e==null?e:Km.call(e)}function ty(e,t,r){var a=e==null?0:e.length;return a?(r&&typeof r!="number"&&Re(e,t,r)?(t=0,r=a):(t=t==null?0:H(t),r=r===n?a:H(r)),nt(e,t,r)):[]}function ny(e,t){return wo(e,t)}function ry(e,t,r){return As(e,t,M(r,2))}function oy(e,t){var r=e==null?0:e.length;if(r){var a=wo(e,t);if(a<r&&pt(e[a],t))return a}return-1}function iy(e,t){return wo(e,t,!0)}function sy(e,t,r){return As(e,t,M(r,2),!0)}function ay(e,t){var r=e==null?0:e.length;if(r){var a=wo(e,t,!0)-1;if(pt(e[a],t))return a}return-1}function cy(e){return e&&e.length?Iu(e):[]}function uy(e,t){return e&&e.length?Iu(e,M(t,2)):[]}function ly(e){var t=e==null?0:e.length;return t?nt(e,1,t):[]}function py(e,t,r){return e&&e.length?(t=r||t===n?1:H(t),nt(e,0,t<0?0:t)):[]}function fy(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===n?1:H(t),t=a-t,nt(e,t<0?0:t,a)):[]}function dy(e,t){return e&&e.length?Ao(e,M(t,3),!1,!0):[]}function gy(e,t){return e&&e.length?Ao(e,M(t,3)):[]}var my=Y(function(e){return jt(Le(e,1,me,!0))}),Ty=Y(function(e){var t=rt(e);return me(t)&&(t=n),jt(Le(e,1,me,!0),M(t,2))}),hy=Y(function(e){var t=rt(e);return t=typeof t=="function"?t:n,jt(Le(e,1,me,!0),n,t)});function yy(e){return e&&e.length?jt(e):[]}function xy(e,t){return e&&e.length?jt(e,M(t,2)):[]}function Sy(e,t){return t=typeof t=="function"?t:n,e&&e.length?jt(e,n,t):[]}function Gs(e){if(!(e&&e.length))return[];var t=0;return e=Kt(e,function(r){if(me(r))return t=Se(r.length,t),!0}),os(t,function(r){return ue(e,ts(r))})}function ll(e,t){if(!(e&&e.length))return[];var r=Gs(e);return t==null?r:ue(r,function(a){return Ge(t,n,a)})}var vy=Y(function(e,t){return me(e)?Sr(e,t):[]}),wy=Y(function(e){return _s(Kt(e,me))}),Ay=Y(function(e){var t=rt(e);return me(t)&&(t=n),_s(Kt(e,me),M(t,2))}),Iy=Y(function(e){var t=rt(e);return t=typeof t=="function"?t:n,_s(Kt(e,me),n,t)}),_y=Y(Gs);function by(e,t){return Eu(e||[],t||[],xr)}function Ly(e,t){return Eu(e||[],t||[],Ar)}var Ey=Y(function(e){var t=e.length,r=t>1?e[t-1]:n;return r=typeof r=="function"?(e.pop(),r):n,ll(e,r)});function pl(e){var t=l(e);return t.__chain__=!0,t}function ky(e,t){return t(e),e}function Ro(e,t){return t(e)}var Cy=Nt(function(e){var t=e.length,r=t?e[0]:0,a=this.__wrapped__,c=function(p){return fs(p,e)};return t>1||this.__actions__.length||!(a instanceof X)||!Ot(r)?this.thru(c):(a=a.slice(r,+r+(t?1:0)),a.__actions__.push({func:Ro,args:[c],thisArg:n}),new et(a,this.__chain__).thru(function(p){return t&&!p.length&&p.push(n),p}))});function Py(){return pl(this)}function Ry(){return new et(this.value(),this.__chain__)}function Dy(){this.__values__===n&&(this.__values__=_l(this.value()));var e=this.__index__>=this.__values__.length,t=e?n:this.__values__[this.__index__++];return{done:e,value:t}}function Ny(){return this}function Oy(e){for(var t,r=this;r instanceof ho;){var a=ol(r);a.__index__=0,a.__values__=n,t?c.__wrapped__=a:t=a;var c=a;r=r.__wrapped__}return c.__wrapped__=e,t}function My(){var e=this.__wrapped__;if(e instanceof X){var t=e;return this.__actions__.length&&(t=new X(this)),t=t.reverse(),t.__actions__.push({func:Ro,args:[Ws],thisArg:n}),new et(t,this.__chain__)}return this.thru(Ws)}function Fy(){return Lu(this.__wrapped__,this.__actions__)}var Uy=Io(function(e,t,r){re.call(e,r)?++e[r]:Rt(e,r,1)});function By(e,t,r){var a=$(e)?Wc:kT;return r&&Re(e,t,r)&&(t=n),a(e,M(t,3))}function Wy(e,t){var r=$(e)?Kt:lu;return r(e,M(t,3))}var Gy=Uu(il),$y=Uu(sl);function Hy(e,t){return Le(Do(e,t),1)}function Vy(e,t){return Le(Do(e,t),cn)}function qy(e,t,r){return r=r===n?1:H(r),Le(Do(e,t),r)}function fl(e,t){var r=$(e)?Qe:Qt;return r(e,M(t,3))}function dl(e,t){var r=$(e)?lm:uu;return r(e,M(t,3))}var zy=Io(function(e,t,r){re.call(e,r)?e[r].push(t):Rt(e,r,[t])});function Ky(e,t,r,a){e=Oe(e)?e:Vn(e),r=r&&!a?H(r):0;var c=e.length;return r<0&&(r=Se(c+r,0)),Uo(e)?r<=c&&e.indexOf(t,r)>-1:!!c&&Dn(e,t,r)>-1}var Yy=Y(function(e,t,r){var a=-1,c=typeof t=="function",p=Oe(e)?w(e.length):[];return Qt(e,function(T){p[++a]=c?Ge(t,T,r):vr(T,t,r)}),p}),Zy=Io(function(e,t,r){Rt(e,r,t)});function Do(e,t){var r=$(e)?ue:Tu;return r(e,M(t,3))}function Xy(e,t,r,a){return e==null?[]:($(t)||(t=t==null?[]:[t]),r=a?n:r,$(r)||(r=r==null?[]:[r]),Su(e,t,r))}var Jy=Io(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function Qy(e,t,r){var a=$(e)?ji:Vc,c=arguments.length<3;return a(e,M(t,4),r,c,Qt)}function jy(e,t,r){var a=$(e)?pm:Vc,c=arguments.length<3;return a(e,M(t,4),r,c,uu)}function ex(e,t){var r=$(e)?Kt:lu;return r(e,Mo(M(t,3)))}function tx(e){var t=$(e)?iu:KT;return t(e)}function nx(e,t,r){(r?Re(e,t,r):t===n)?t=1:t=H(t);var a=$(e)?IT:YT;return a(e,t)}function rx(e){var t=$(e)?_T:XT;return t(e)}function ox(e){if(e==null)return 0;if(Oe(e))return Uo(e)?On(e):e.length;var t=ke(e);return t==at||t==ct?e.size:ys(e).length}function ix(e,t,r){var a=$(e)?es:JT;return r&&Re(e,t,r)&&(t=n),a(e,M(t,3))}var sx=Y(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Re(e,t[0],t[1])?t=[]:r>2&&Re(t[0],t[1],t[2])&&(t=[t[0]]),Su(e,Le(t,1),[])}),No=Wm||function(){return ve.Date.now()};function ax(e,t){if(typeof t!="function")throw new je(m);return e=H(e),function(){if(--e<1)return t.apply(this,arguments)}}function gl(e,t,r){return t=r?n:t,t=e&&t==null?e.length:t,Dt(e,Et,n,n,n,n,t)}function ml(e,t){var r;if(typeof t!="function")throw new je(m);return e=H(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var $s=Y(function(e,t,r){var a=ge;if(r.length){var c=Zt(r,$n($s));a|=Tt}return Dt(e,a,t,r,c)}),Tl=Y(function(e,t,r){var a=ge|be;if(r.length){var c=Zt(r,$n(Tl));a|=Tt}return Dt(t,a,e,r,c)});function hl(e,t,r){t=r?n:t;var a=Dt(e,mt,n,n,n,n,n,t);return a.placeholder=hl.placeholder,a}function yl(e,t,r){t=r?n:t;var a=Dt(e,En,n,n,n,n,n,t);return a.placeholder=yl.placeholder,a}function xl(e,t,r){var a,c,p,T,h,x,_=0,b=!1,L=!1,C=!0;if(typeof e!="function")throw new je(m);t=ot(t)||0,le(r)&&(b=!!r.leading,L="maxWait"in r,p=L?Se(ot(r.maxWait)||0,t):p,C="trailing"in r?!!r.trailing:C);function D(Te){var ft=a,Ut=c;return a=c=n,_=Te,T=e.apply(Ut,ft),T}function U(Te){return _=Te,h=br(Z,t),b?D(Te):T}function z(Te){var ft=Te-x,Ut=Te-_,Ul=t-ft;return L?Ee(Ul,p-Ut):Ul}function B(Te){var ft=Te-x,Ut=Te-_;return x===n||ft>=t||ft<0||L&&Ut>=p}function Z(){var Te=No();if(B(Te))return J(Te);h=br(Z,z(Te))}function J(Te){return h=n,C&&a?D(Te):(a=c=n,T)}function qe(){h!==n&&ku(h),_=0,a=x=c=h=n}function De(){return h===n?T:J(No())}function ze(){var Te=No(),ft=B(Te);if(a=arguments,c=this,x=Te,ft){if(h===n)return U(x);if(L)return ku(h),h=br(Z,t),D(x)}return h===n&&(h=br(Z,t)),T}return ze.cancel=qe,ze.flush=De,ze}var cx=Y(function(e,t){return cu(e,1,t)}),ux=Y(function(e,t,r){return cu(e,ot(t)||0,r)});function lx(e){return Dt(e,Di)}function Oo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new je(m);var r=function(){var a=arguments,c=t?t.apply(this,a):a[0],p=r.cache;if(p.has(c))return p.get(c);var T=e.apply(this,a);return r.cache=p.set(c,T)||p,T};return r.cache=new(Oo.Cache||Pt),r}Oo.Cache=Pt;function Mo(e){if(typeof e!="function")throw new je(m);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function px(e){return ml(2,e)}var fx=QT(function(e,t){t=t.length==1&&$(t[0])?ue(t[0],$e(M())):ue(Le(t,1),$e(M()));var r=t.length;return Y(function(a){for(var c=-1,p=Ee(a.length,r);++c<p;)a[c]=t[c].call(this,a[c]);return Ge(e,this,a)})}),Hs=Y(function(e,t){var r=Zt(t,$n(Hs));return Dt(e,Tt,n,t,r)}),Sl=Y(function(e,t){var r=Zt(t,$n(Sl));return Dt(e,kn,n,t,r)}),dx=Nt(function(e,t){return Dt(e,ir,n,n,n,t)});function gx(e,t){if(typeof e!="function")throw new je(m);return t=t===n?t:H(t),Y(e,t)}function mx(e,t){if(typeof e!="function")throw new je(m);return t=t==null?0:Se(H(t),0),Y(function(r){var a=r[t],c=tn(r,0,t);return a&&Yt(c,a),Ge(e,this,c)})}function Tx(e,t,r){var a=!0,c=!0;if(typeof e!="function")throw new je(m);return le(r)&&(a="leading"in r?!!r.leading:a,c="trailing"in r?!!r.trailing:c),xl(e,t,{leading:a,maxWait:t,trailing:c})}function hx(e){return gl(e,1)}function yx(e,t){return Hs(Ls(t),e)}function xx(){if(!arguments.length)return[];var e=arguments[0];return $(e)?e:[e]}function Sx(e){return tt(e,F)}function vx(e,t){return t=typeof t=="function"?t:n,tt(e,F,t)}function wx(e){return tt(e,N|F)}function Ax(e,t){return t=typeof t=="function"?t:n,tt(e,N|F,t)}function Ix(e,t){return t==null||au(e,t,we(t))}function pt(e,t){return e===t||e!==e&&t!==t}var _x=Eo(ms),bx=Eo(function(e,t){return e>=t}),hn=du(function(){return arguments}())?du:function(e){return fe(e)&&re.call(e,"callee")&&!jc.call(e,"callee")},$=w.isArray,Lx=Nc?$e(Nc):OT;function Oe(e){return e!=null&&Fo(e.length)&&!Mt(e)}function me(e){return fe(e)&&Oe(e)}function Ex(e){return e===!0||e===!1||fe(e)&&Pe(e)==sr}var nn=$m||ea,kx=Oc?$e(Oc):MT;function Cx(e){return fe(e)&&e.nodeType===1&&!Lr(e)}function Px(e){if(e==null)return!0;if(Oe(e)&&($(e)||typeof e=="string"||typeof e.splice=="function"||nn(e)||Hn(e)||hn(e)))return!e.length;var t=ke(e);if(t==at||t==ct)return!e.size;if(_r(e))return!ys(e).length;for(var r in e)if(re.call(e,r))return!1;return!0}function Rx(e,t){return wr(e,t)}function Dx(e,t,r){r=typeof r=="function"?r:n;var a=r?r(e,t):n;return a===n?wr(e,t,n,r):!!a}function Vs(e){if(!fe(e))return!1;var t=Pe(e);return t==Yr||t==ng||typeof e.message=="string"&&typeof e.name=="string"&&!Lr(e)}function Nx(e){return typeof e=="number"&&tu(e)}function Mt(e){if(!le(e))return!1;var t=Pe(e);return t==Zr||t==cc||t==tg||t==og}function vl(e){return typeof e=="number"&&e==H(e)}function Fo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=zt}function le(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function fe(e){return e!=null&&typeof e=="object"}var wl=Mc?$e(Mc):UT;function Ox(e,t){return e===t||hs(e,t,Ns(t))}function Mx(e,t,r){return r=typeof r=="function"?r:n,hs(e,t,Ns(t),r)}function Fx(e){return Al(e)&&e!=+e}function Ux(e){if(vh(e))throw new G(u);return gu(e)}function Bx(e){return e===null}function Wx(e){return e==null}function Al(e){return typeof e=="number"||fe(e)&&Pe(e)==cr}function Lr(e){if(!fe(e)||Pe(e)!=kt)return!1;var t=uo(e);if(t===null)return!0;var r=re.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&io.call(r)==Mm}var qs=Fc?$e(Fc):BT;function Gx(e){return vl(e)&&e>=-zt&&e<=zt}var Il=Uc?$e(Uc):WT;function Uo(e){return typeof e=="string"||!$(e)&&fe(e)&&Pe(e)==lr}function Ve(e){return typeof e=="symbol"||fe(e)&&Pe(e)==Xr}var Hn=Bc?$e(Bc):GT;function $x(e){return e===n}function Hx(e){return fe(e)&&ke(e)==pr}function Vx(e){return fe(e)&&Pe(e)==sg}var qx=Eo(xs),zx=Eo(function(e,t){return e<=t});function _l(e){if(!e)return[];if(Oe(e))return Uo(e)?ut(e):Ne(e);if(gr&&e[gr])return Im(e[gr]());var t=ke(e),r=t==at?ss:t==ct?no:Vn;return r(e)}function Ft(e){if(!e)return e===0?e:0;if(e=ot(e),e===cn||e===-cn){var t=e<0?-1:1;return t*Jd}return e===e?e:0}function H(e){var t=Ft(e),r=t%1;return t===t?r?t-r:t:0}function bl(e){return e?dn(H(e),0,ht):0}function ot(e){if(typeof e=="number")return e;if(Ve(e))return zr;if(le(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=le(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=qc(e);var r=Lg.test(e);return r||kg.test(e)?am(e.slice(2),r?2:8):bg.test(e)?zr:+e}function Ll(e){return xt(e,Me(e))}function Kx(e){return e?dn(H(e),-zt,zt):e===0?e:0}function te(e){return e==null?"":He(e)}var Yx=Wn(function(e,t){if(_r(t)||Oe(t)){xt(t,we(t),e);return}for(var r in t)re.call(t,r)&&xr(e,r,t[r])}),El=Wn(function(e,t){xt(t,Me(t),e)}),Bo=Wn(function(e,t,r,a){xt(t,Me(t),e,a)}),Zx=Wn(function(e,t,r,a){xt(t,we(t),e,a)}),Xx=Nt(fs);function Jx(e,t){var r=Bn(e);return t==null?r:su(r,t)}var Qx=Y(function(e,t){e=oe(e);var r=-1,a=t.length,c=a>2?t[2]:n;for(c&&Re(t[0],t[1],c)&&(a=1);++r<a;)for(var p=t[r],T=Me(p),h=-1,x=T.length;++h<x;){var _=T[h],b=e[_];(b===n||pt(b,Mn[_])&&!re.call(e,_))&&(e[_]=p[_])}return e}),jx=Y(function(e){return e.push(n,qu),Ge(kl,n,e)});function eS(e,t){return Gc(e,M(t,3),yt)}function tS(e,t){return Gc(e,M(t,3),gs)}function nS(e,t){return e==null?e:ds(e,M(t,3),Me)}function rS(e,t){return e==null?e:pu(e,M(t,3),Me)}function oS(e,t){return e&&yt(e,M(t,3))}function iS(e,t){return e&&gs(e,M(t,3))}function sS(e){return e==null?[]:So(e,we(e))}function aS(e){return e==null?[]:So(e,Me(e))}function zs(e,t,r){var a=e==null?n:gn(e,t);return a===n?r:a}function cS(e,t){return e!=null&&Yu(e,t,PT)}function Ks(e,t){return e!=null&&Yu(e,t,RT)}var uS=Wu(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=so.call(t)),e[t]=r},Zs(Fe)),lS=Wu(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=so.call(t)),re.call(e,t)?e[t].push(r):e[t]=[r]},M),pS=Y(vr);function we(e){return Oe(e)?ou(e):ys(e)}function Me(e){return Oe(e)?ou(e,!0):$T(e)}function fS(e,t){var r={};return t=M(t,3),yt(e,function(a,c,p){Rt(r,t(a,c,p),a)}),r}function dS(e,t){var r={};return t=M(t,3),yt(e,function(a,c,p){Rt(r,c,t(a,c,p))}),r}var gS=Wn(function(e,t,r){vo(e,t,r)}),kl=Wn(function(e,t,r,a){vo(e,t,r,a)}),mS=Nt(function(e,t){var r={};if(e==null)return r;var a=!1;t=ue(t,function(p){return p=en(p,e),a||(a=p.length>1),p}),xt(e,Rs(e),r),a&&(r=tt(r,N|q|F,uh));for(var c=t.length;c--;)Is(r,t[c]);return r});function TS(e,t){return Cl(e,Mo(M(t)))}var hS=Nt(function(e,t){return e==null?{}:VT(e,t)});function Cl(e,t){if(e==null)return{};var r=ue(Rs(e),function(a){return[a]});return t=M(t),vu(e,r,function(a,c){return t(a,c[0])})}function yS(e,t,r){t=en(t,e);var a=-1,c=t.length;for(c||(c=1,e=n);++a<c;){var p=e==null?n:e[St(t[a])];p===n&&(a=c,p=r),e=Mt(p)?p.call(e):p}return e}function xS(e,t,r){return e==null?e:Ar(e,t,r)}function SS(e,t,r,a){return a=typeof a=="function"?a:n,e==null?e:Ar(e,t,r,a)}var Pl=Hu(we),Rl=Hu(Me);function vS(e,t,r){var a=$(e),c=a||nn(e)||Hn(e);if(t=M(t,4),r==null){var p=e&&e.constructor;c?r=a?new p:[]:le(e)?r=Mt(p)?Bn(uo(e)):{}:r={}}return(c?Qe:yt)(e,function(T,h,x){return t(r,T,h,x)}),r}function wS(e,t){return e==null?!0:Is(e,t)}function AS(e,t,r){return e==null?e:bu(e,t,Ls(r))}function IS(e,t,r,a){return a=typeof a=="function"?a:n,e==null?e:bu(e,t,Ls(r),a)}function Vn(e){return e==null?[]:is(e,we(e))}function _S(e){return e==null?[]:is(e,Me(e))}function bS(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=ot(r),r=r===r?r:0),t!==n&&(t=ot(t),t=t===t?t:0),dn(ot(e),t,r)}function LS(e,t,r){return t=Ft(t),r===n?(r=t,t=0):r=Ft(r),e=ot(e),DT(e,t,r)}function ES(e,t,r){if(r&&typeof r!="boolean"&&Re(e,t,r)&&(t=r=n),r===n&&(typeof t=="boolean"?(r=t,t=n):typeof e=="boolean"&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=Ft(e),t===n?(t=e,e=0):t=Ft(t)),e>t){var a=e;e=t,t=a}if(r||e%1||t%1){var c=nu();return Ee(e+c*(t-e+sm("1e-"+((c+"").length-1))),t)}return vs(e,t)}var kS=Gn(function(e,t,r){return t=t.toLowerCase(),e+(r?Dl(t):t)});function Dl(e){return Ys(te(e).toLowerCase())}function Nl(e){return e=te(e),e&&e.replace(Pg,xm).replace(Xg,"")}function CS(e,t,r){e=te(e),t=He(t);var a=e.length;r=r===n?a:dn(H(r),0,a);var c=r;return r-=t.length,r>=0&&e.slice(r,c)==t}function PS(e){return e=te(e),e&&pg.test(e)?e.replace(pc,Sm):e}function RS(e){return e=te(e),e&&hg.test(e)?e.replace(Hi,"\\$&"):e}var DS=Gn(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),NS=Gn(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),OS=Fu("toLowerCase");function MS(e,t,r){e=te(e),t=H(t);var a=t?On(e):0;if(!t||a>=t)return e;var c=(t-a)/2;return Lo(go(c),r)+e+Lo(fo(c),r)}function FS(e,t,r){e=te(e),t=H(t);var a=t?On(e):0;return t&&a<t?e+Lo(t-a,r):e}function US(e,t,r){e=te(e),t=H(t);var a=t?On(e):0;return t&&a<t?Lo(t-a,r)+e:e}function BS(e,t,r){return r||t==null?t=0:t&&(t=+t),zm(te(e).replace(Vi,""),t||0)}function WS(e,t,r){return(r?Re(e,t,r):t===n)?t=1:t=H(t),ws(te(e),t)}function GS(){var e=arguments,t=te(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var $S=Gn(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function HS(e,t,r){return r&&typeof r!="number"&&Re(e,t,r)&&(t=r=n),r=r===n?ht:r>>>0,r?(e=te(e),e&&(typeof t=="string"||t!=null&&!qs(t))&&(t=He(t),!t&&Nn(e))?tn(ut(e),0,r):e.split(t,r)):[]}var VS=Gn(function(e,t,r){return e+(r?" ":"")+Ys(t)});function qS(e,t,r){return e=te(e),r=r==null?0:dn(H(r),0,e.length),t=He(t),e.slice(r,r+t.length)==t}function zS(e,t,r){var a=l.templateSettings;r&&Re(e,t,r)&&(t=n),e=te(e),t=Bo({},t,a,Vu);var c=Bo({},t.imports,a.imports,Vu),p=we(c),T=is(c,p),h,x,_=0,b=t.interpolate||Jr,L="__p += '",C=as((t.escape||Jr).source+"|"+b.source+"|"+(b===fc?_g:Jr).source+"|"+(t.evaluate||Jr).source+"|$","g"),D="//# sourceURL="+(re.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++tm+"]")+`
|
|
4
|
+
`;e.replace(C,function(B,Z,J,qe,De,ze){return J||(J=qe),L+=e.slice(_,ze).replace(Rg,vm),Z&&(h=!0,L+=`' +
|
|
5
5
|
__e(`+Z+`) +
|
|
6
6
|
'`),De&&(x=!0,L+=`';
|
|
7
7
|
`+De+`;
|
|
@@ -11,13 +11,13 @@ __p += '`),J&&(L+=`' +
|
|
|
11
11
|
`;var U=re.call(t,"variable")&&t.variable;if(!U)L=`with (obj) {
|
|
12
12
|
`+L+`
|
|
13
13
|
}
|
|
14
|
-
`;else if(
|
|
14
|
+
`;else if(Ag.test(U))throw new G(v);L=(x?L.replace(ag,""):L).replace(cg,"$1").replace(ug,"$1;"),L="function("+(U||"obj")+`) {
|
|
15
15
|
`+(U?"":`obj || (obj = {});
|
|
16
16
|
`)+"var __t, __p = ''"+(h?", __e = _.escape":"")+(x?`, __j = Array.prototype.join;
|
|
17
17
|
function print() { __p += __j.call(arguments, '') }
|
|
18
18
|
`:`;
|
|
19
19
|
`)+L+`return __p
|
|
20
|
-
}`;var z=Ml(function(){return ee(p,D+"return "+L).apply(n,T)});if(z.source=L,Vs(z))throw z;return z}function qS(e){return te(e).toLowerCase()}function zS(e){return te(e).toUpperCase()}function KS(e,t,r){if(e=te(e),e&&(r||t===n))return qc(e);if(!e||!(t=He(t)))return e;var a=ut(e),c=ut(t),p=zc(a,c),T=Kc(a,c)+1;return tn(a,p,T).join("")}function YS(e,t,r){if(e=te(e),e&&(r||t===n))return e.slice(0,Zc(e)+1);if(!e||!(t=He(t)))return e;var a=ut(e),c=Kc(a,ut(t))+1;return tn(a,0,c).join("")}function ZS(e,t,r){if(e=te(e),e&&(r||t===n))return e.replace(Vi,"");if(!e||!(t=He(t)))return e;var a=ut(e),c=zc(a,ut(t));return tn(a,c).join("")}function XS(e,t){var r=Hd,a=Vd;if(le(t)){var c="separator"in t?t.separator:c;r="length"in t?H(t.length):r,a="omission"in t?He(t.omission):a}e=te(e);var p=e.length;if(Nn(e)){var T=ut(e);p=T.length}if(r>=p)return e;var h=r-On(a);if(h<1)return a;var x=T?tn(T,0,h).join(""):e.slice(0,h);if(c===n)return x+a;if(T&&(h+=x.length-h),qs(c)){if(e.slice(h).search(c)){var _,b=x;for(c.global||(c=as(c.source,te(dc.exec(c))+"g")),c.lastIndex=0;_=c.exec(b);)var L=_.index;x=x.slice(0,L===n?h:L)}}else if(e.indexOf(He(c),h)!=h){var C=x.lastIndexOf(c);C>-1&&(x=x.slice(0,C))}return x+a}function JS(e){return e=te(e),e&&cg.test(e)?e.replace(lc,bm):e}var QS=Gn(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),Ys=Fu("toUpperCase");function Ol(e,t,r){return e=te(e),t=r?n:t,t===n?vm(e)?km(e):fm(e):e.match(t)||[]}var Ml=Y(function(e,t){try{return Ge(e,n,t)}catch(r){return Vs(r)?r:new G(r)}}),jS=Nt(function(e,t){return Qe(t,function(r){r=St(r),Rt(e,r,$s(e[r],e))}),e});function ev(e){var t=e==null?0:e.length,r=M();return e=t?ue(e,function(a){if(typeof a[1]!="function")throw new je(m);return[r(a[0]),a[1]]}):[],Y(function(a){for(var c=-1;++c<t;){var p=e[c];if(Ge(p[0],this,a))return Ge(p[1],this,a)}})}function tv(e){return bT(tt(e,N))}function Zs(e){return function(){return e}}function nv(e,t){return e==null||e!==e?t:e}var rv=Bu(),ov=Bu(!0);function Fe(e){return e}function Xs(e){return mu(typeof e=="function"?e:tt(e,N))}function iv(e){return hu(tt(e,N))}function sv(e,t){return yu(e,tt(t,N))}var av=Y(function(e,t){return function(r){return vr(r,e,t)}}),cv=Y(function(e,t){return function(r){return vr(e,r,t)}});function Js(e,t,r){var a=we(t),c=So(t,a);r==null&&!(le(t)&&(c.length||!a.length))&&(r=t,t=e,e=this,c=So(t,we(t)));var p=!(le(r)&&"chain"in r)||!!r.chain,T=Mt(e);return Qe(c,function(h){var x=t[h];e[h]=x,T&&(e.prototype[h]=function(){var _=this.__chain__;if(p||_){var b=e(this.__wrapped__),L=b.__actions__=Ne(this.__actions__);return L.push({func:x,args:arguments,thisArg:e}),b.__chain__=_,b}return x.apply(e,Yt([this.value()],arguments))})}),e}function uv(){return ve._===this&&(ve._=Om),this}function Qs(){}function lv(e){return e=H(e),Y(function(t){return xu(t,e)})}var pv=ks(ue),fv=ks(Wc),dv=ks(es);function Fl(e){return Ms(e)?ts(St(e)):HT(e)}function gv(e){return function(t){return e==null?n:gn(e,t)}}var mv=Gu(),Tv=Gu(!0);function js(){return[]}function ea(){return!1}function hv(){return{}}function yv(){return""}function xv(){return!0}function Sv(e,t){if(e=H(e),e<1||e>zt)return[];var r=ht,a=Ee(e,ht);t=M(t),e-=ht;for(var c=os(a,t);++r<e;)t(r);return c}function vv(e){return $(e)?ue(e,St):Ve(e)?[e]:Ne(rl(te(e)))}function wv(e){var t=++Dm;return te(e)+t}var Av=bo(function(e,t){return e+t},0),Iv=Cs("ceil"),_v=bo(function(e,t){return e/t},1),bv=Cs("floor");function Lv(e){return e&&e.length?xo(e,Fe,ms):n}function Ev(e,t){return e&&e.length?xo(e,M(t,2),ms):n}function kv(e){return Hc(e,Fe)}function Cv(e,t){return Hc(e,M(t,2))}function Pv(e){return e&&e.length?xo(e,Fe,xs):n}function Rv(e,t){return e&&e.length?xo(e,M(t,2),xs):n}var Dv=bo(function(e,t){return e*t},1),Nv=Cs("round"),Ov=bo(function(e,t){return e-t},0);function Mv(e){return e&&e.length?rs(e,Fe):0}function Fv(e,t){return e&&e.length?rs(e,M(t,2)):0}return l.after=ix,l.ary=gl,l.assign=zx,l.assignIn=El,l.assignInWith=Bo,l.assignWith=Kx,l.at=Yx,l.before=ml,l.bind=$s,l.bindAll=jS,l.bindKey=Tl,l.castArray=hx,l.chain=pl,l.chunk=bh,l.compact=Lh,l.concat=Eh,l.cond=ev,l.conforms=tv,l.constant=Zs,l.countBy=My,l.create=Zx,l.curry=hl,l.curryRight=yl,l.debounce=xl,l.defaults=Xx,l.defaultsDeep=Jx,l.defer=sx,l.delay=ax,l.difference=kh,l.differenceBy=Ch,l.differenceWith=Ph,l.drop=Rh,l.dropRight=Dh,l.dropRightWhile=Nh,l.dropWhile=Oh,l.fill=Mh,l.filter=Uy,l.flatMap=Gy,l.flatMapDeep=$y,l.flatMapDepth=Hy,l.flatten=al,l.flattenDeep=Fh,l.flattenDepth=Uh,l.flip=cx,l.flow=rv,l.flowRight=ov,l.fromPairs=Bh,l.functions=oS,l.functionsIn=iS,l.groupBy=Vy,l.initial=Gh,l.intersection=$h,l.intersectionBy=Hh,l.intersectionWith=Vh,l.invert=aS,l.invertBy=cS,l.invokeMap=zy,l.iteratee=Xs,l.keyBy=Ky,l.keys=we,l.keysIn=Me,l.map=Do,l.mapKeys=lS,l.mapValues=pS,l.matches=iv,l.matchesProperty=sv,l.memoize=Oo,l.merge=fS,l.mergeWith=kl,l.method=av,l.methodOf=cv,l.mixin=Js,l.negate=Mo,l.nthArg=lv,l.omit=dS,l.omitBy=gS,l.once=ux,l.orderBy=Yy,l.over=pv,l.overArgs=lx,l.overEvery=fv,l.overSome=dv,l.partial=Hs,l.partialRight=Sl,l.partition=Zy,l.pick=mS,l.pickBy=Cl,l.property=Fl,l.propertyOf=gv,l.pull=Yh,l.pullAll=ul,l.pullAllBy=Zh,l.pullAllWith=Xh,l.pullAt=Jh,l.range=mv,l.rangeRight=Tv,l.rearg=px,l.reject=Qy,l.remove=Qh,l.rest=fx,l.reverse=Ws,l.sampleSize=ex,l.set=hS,l.setWith=yS,l.shuffle=tx,l.slice=jh,l.sortBy=ox,l.sortedUniq=sy,l.sortedUniqBy=ay,l.split=GS,l.spread=dx,l.tail=cy,l.take=uy,l.takeRight=ly,l.takeRightWhile=py,l.takeWhile=fy,l.tap=Ly,l.throttle=gx,l.thru=Ro,l.toArray=_l,l.toPairs=Pl,l.toPairsIn=Rl,l.toPath=vv,l.toPlainObject=Ll,l.transform=xS,l.unary=mx,l.union=dy,l.unionBy=gy,l.unionWith=my,l.uniq=Ty,l.uniqBy=hy,l.uniqWith=yy,l.unset=SS,l.unzip=Gs,l.unzipWith=ll,l.update=vS,l.updateWith=wS,l.values=Vn,l.valuesIn=AS,l.without=xy,l.words=Ol,l.wrap=Tx,l.xor=Sy,l.xorBy=vy,l.xorWith=wy,l.zip=Ay,l.zipObject=Iy,l.zipObjectDeep=_y,l.zipWith=by,l.entries=Pl,l.entriesIn=Rl,l.extend=El,l.extendWith=Bo,Js(l,l),l.add=Av,l.attempt=Ml,l.camelCase=LS,l.capitalize=Dl,l.ceil=Iv,l.clamp=IS,l.clone=yx,l.cloneDeep=Sx,l.cloneDeepWith=vx,l.cloneWith=xx,l.conformsTo=wx,l.deburr=Nl,l.defaultTo=nv,l.divide=_v,l.endsWith=ES,l.eq=pt,l.escape=kS,l.escapeRegExp=CS,l.every=Fy,l.find=By,l.findIndex=il,l.findKey=Qx,l.findLast=Wy,l.findLastIndex=sl,l.findLastKey=jx,l.floor=bv,l.forEach=fl,l.forEachRight=dl,l.forIn=eS,l.forInRight=tS,l.forOwn=nS,l.forOwnRight=rS,l.get=zs,l.gt=Ax,l.gte=Ix,l.has=sS,l.hasIn=Ks,l.head=cl,l.identity=Fe,l.includes=qy,l.indexOf=Wh,l.inRange=_S,l.invoke=uS,l.isArguments=hn,l.isArray=$,l.isArrayBuffer=_x,l.isArrayLike=Oe,l.isArrayLikeObject=me,l.isBoolean=bx,l.isBuffer=nn,l.isDate=Lx,l.isElement=Ex,l.isEmpty=kx,l.isEqual=Cx,l.isEqualWith=Px,l.isError=Vs,l.isFinite=Rx,l.isFunction=Mt,l.isInteger=vl,l.isLength=Fo,l.isMap=wl,l.isMatch=Dx,l.isMatchWith=Nx,l.isNaN=Ox,l.isNative=Mx,l.isNil=Ux,l.isNull=Fx,l.isNumber=Al,l.isObject=le,l.isObjectLike=fe,l.isPlainObject=Lr,l.isRegExp=qs,l.isSafeInteger=Bx,l.isSet=Il,l.isString=Uo,l.isSymbol=Ve,l.isTypedArray=Hn,l.isUndefined=Wx,l.isWeakMap=Gx,l.isWeakSet=$x,l.join=qh,l.kebabCase=PS,l.last=rt,l.lastIndexOf=zh,l.lowerCase=RS,l.lowerFirst=DS,l.lt=Hx,l.lte=Vx,l.max=Lv,l.maxBy=Ev,l.mean=kv,l.meanBy=Cv,l.min=Pv,l.minBy=Rv,l.stubArray=js,l.stubFalse=ea,l.stubObject=hv,l.stubString=yv,l.stubTrue=xv,l.multiply=Dv,l.nth=Kh,l.noConflict=uv,l.noop=Qs,l.now=No,l.pad=NS,l.padEnd=OS,l.padStart=MS,l.parseInt=FS,l.random=bS,l.reduce=Xy,l.reduceRight=Jy,l.repeat=US,l.replace=BS,l.result=TS,l.round=Nv,l.runInContext=y,l.sample=jy,l.size=nx,l.snakeCase=WS,l.some=rx,l.sortedIndex=ey,l.sortedIndexBy=ty,l.sortedIndexOf=ny,l.sortedLastIndex=ry,l.sortedLastIndexBy=oy,l.sortedLastIndexOf=iy,l.startCase=$S,l.startsWith=HS,l.subtract=Ov,l.sum=Mv,l.sumBy=Fv,l.template=VS,l.times=Sv,l.toFinite=Ft,l.toInteger=H,l.toLength=bl,l.toLower=qS,l.toNumber=ot,l.toSafeInteger=qx,l.toString=te,l.toUpper=zS,l.trim=KS,l.trimEnd=YS,l.trimStart=ZS,l.truncate=XS,l.unescape=JS,l.uniqueId=wv,l.upperCase=QS,l.upperFirst=Ys,l.each=fl,l.eachRight=dl,l.first=cl,Js(l,function(){var e={};return yt(l,function(t,r){re.call(l.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),l.VERSION=o,Qe(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),Qe(["drop","take"],function(e,t){X.prototype[e]=function(r){r=r===n?1:Se(H(r),0);var a=this.__filtered__&&!t?new X(this):this.clone();return a.__filtered__?a.__takeCount__=Ee(r,a.__takeCount__):a.__views__.push({size:Ee(r,ht),type:e+(a.__dir__<0?"Right":"")}),a},X.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),Qe(["filter","map","takeWhile"],function(e,t){var r=t+1,a=r==ac||r==Yd;X.prototype[e]=function(c){var p=this.clone();return p.__iteratees__.push({iteratee:M(c,3),type:r}),p.__filtered__=p.__filtered__||a,p}}),Qe(["head","last"],function(e,t){var r="take"+(t?"Right":"");X.prototype[e]=function(){return this[r](1).value()[0]}}),Qe(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");X.prototype[e]=function(){return this.__filtered__?new X(this):this[r](1)}}),X.prototype.compact=function(){return this.filter(Fe)},X.prototype.find=function(e){return this.filter(e).head()},X.prototype.findLast=function(e){return this.reverse().find(e)},X.prototype.invokeMap=Y(function(e,t){return typeof e=="function"?new X(this):this.map(function(r){return vr(r,e,t)})}),X.prototype.reject=function(e){return this.filter(Mo(M(e)))},X.prototype.slice=function(e,t){e=H(e);var r=this;return r.__filtered__&&(e>0||t<0)?new X(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(t=H(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},X.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},X.prototype.toArray=function(){return this.take(ht)},yt(X.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),c=l[a?"take"+(t=="last"?"Right":""):t],p=a||/^find/.test(t);!c||(l.prototype[t]=function(){var T=this.__wrapped__,h=a?[1]:arguments,x=T instanceof X,_=h[0],b=x||$(T),L=function(Z){var J=c.apply(l,Yt([Z],h));return a&&C?J[0]:J};b&&r&&typeof _=="function"&&_.length!=1&&(x=b=!1);var C=this.__chain__,D=!!this.__actions__.length,U=p&&!C,z=x&&!D;if(!p&&b){T=z?T:new X(this);var B=e.apply(T,h);return B.__actions__.push({func:Ro,args:[L],thisArg:n}),new et(B,C)}return U&&z?e.apply(this,h):(B=this.thru(L),U?a?B.value()[0]:B.value():B)})}),Qe(["pop","push","shift","sort","splice","unshift"],function(e){var t=ro[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);l.prototype[e]=function(){var c=arguments;if(a&&!this.__chain__){var p=this.value();return t.apply($(p)?p:[],c)}return this[r](function(T){return t.apply($(T)?T:[],c)})}}),yt(X.prototype,function(e,t){var r=l[t];if(r){var a=r.name+"";re.call(Un,a)||(Un[a]=[]),Un[a].push({name:t,func:r})}}),Un[_o(n,be).name]=[{name:"wrapper",func:n}],X.prototype.clone=Jm,X.prototype.reverse=Qm,X.prototype.value=jm,l.prototype.at=Ey,l.prototype.chain=ky,l.prototype.commit=Cy,l.prototype.next=Py,l.prototype.plant=Dy,l.prototype.reverse=Ny,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=Oy,l.prototype.first=l.prototype.head,gr&&(l.prototype[gr]=Ry),l},Xt=Cm();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(ve._=Xt,define(function(){return Xt})):un?((un.exports=Xt)._=Xt,Xi._=Xt):ve._=Xt}).call(or)});var kI={};yn(kI,{useLogoutFromMultipleTabs:()=>EI});module.exports=Cr(kI);s();var $d=require("react");s();s();s();var Uf=require("react"),tr=require("react-redux");s();var Wa=require("@reduxjs/toolkit"),Mf=require("react-redux/lib/utils/Subscription");ae();s();var ff=K(require("lodash.throttle"));se();s();var pf=K(require("lodash.isequal")),Ti=require("reselect");Ie();var R=(0,Ti.createSelectorCreator)(Ti.defaultMemoize,pf.default),Fr=(n,o)=>n!=""&&Boolean(o);ae();_a();Zn();An();var ow=[Yo],hi=!1,iw=(0,ff.default)(()=>{Nr(Dr())},5e3),df=n=>o=>i=>{var E;if(ow.includes(i.type))return o(i);let u=n.getState(),m=bt.local.getItem(Ke.loginExpiresAt);if(!Fr((E=u==null?void 0:u.loginInfo)==null?void 0:E.loginMethod,u==null?void 0:u.account.address))return o(i);if(m==null)return Nr(Dr());let S=Date.now();return m-S<0&&!hi?setTimeout(()=>{hi=!0,n.dispatch(Wp())},1e3):(hi&&(hi=!1),iw()),o(i)};s();s();function yi(){return typeof sessionStorage!="undefined"}var Df=yi()?(If(),Cr(Af)).default:(bf(),Cr(_f)).default,Nf=yi()?(Ef(),Cr(Lf)).default:[],Of=yi()?(Rf(),Cr(Pf)).default:n=>n;xi();var Q=(0,Wa.configureStore)({reducer:Df,middleware:n=>n({serializableCheck:{ignoredActions:[...Nf,Ia.type,Aa.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(df)}),Ff=(0,Mf.createSubscription)(Q),nE=Of(Q),rE=(0,Wa.configureStore)({reducer:bn});var Lw={store:Q,subscription:Ff},Ga=(0,Uf.createContext)(Lw),aE=(0,tr.createStoreHook)(Ga),We=(0,tr.createDispatchHook)(Ga),ne=(0,tr.createSelectorHook)(Ga);s();s();ae();var $t=n=>n.account,Ln=R($t,n=>n.address),Br=R($t,Ln,(n,o)=>o in n.accounts?n.accounts[o]:Xo),Bf=R($t,Br,(n,o)=>{let m=n,{accounts:i}=m,u=Go(m,["accounts"]);return j(O({},u),{account:o})}),Ew=R(Br,n=>n.balance),kw=R(Br,n=>{var o;return((o=n==null?void 0:n.nonce)==null?void 0:o.valueOf())||0}),pE=R($t,n=>n.shard),Cw=R($t,n=>n.ledgerAccount),fE=R($t,n=>n.walletConnectAccount),dE=R($t,n=>n.isAccountLoading),gE=R($t,n=>n.accountLoadingError),Wf=R($t,n=>n.websocketEvent);s();var dt=n=>n.loginInfo,yE=R(dt,n=>n.loginMethod),Wr=R(dt,Ln,(n,o)=>Fr(n.loginMethod,o)),xE=R(dt,n=>n.walletConnectLogin),SE=R(dt,n=>n.ledgerLogin),Gf=R(dt,n=>n.walletLogin),vE=R(dt,n=>n.isLoginSessionInvalid),Pw=R(dt,n=>n.tokenLogin),$f=R(dt,n=>n.logoutRoute);s();var Hf=n=>n.modals,IE=R(Hf,n=>n.txSubmittedModal),Rw=R(Hf,n=>n.notificationModal);s();var Ht=n=>n.networkConfig,Si=R(Ht,n=>n.chainID),Dw=R(Ht,n=>n.network.walletConnectBridgeAddress),Nw=R(Ht,n=>n.network.walletConnectV2RelayAddress),Ow=R(Ht,n=>n.network.walletConnectV2ProjectId),Mw=R(Ht,n=>n.network.walletConnectV2Options),Vf=R(Ht,n=>n.network.walletConnectDeepLink),on=R(Ht,n=>n.network),qf=R(on,n=>n.apiAddress),zf=R(on,n=>n.explorerAddress),Kf=R(on,n=>n.egldLabel);s();var $a=n=>n.signedMessageInfo,kE=R($a,n=>n.isSigning),CE=R($a,n=>n.errorMessage),PE=R($a,n=>{let o=Object.keys(n.signedSessions),i=o.length;return n.signedSessions[o[i-1]]});s();var Ha=n=>n.toasts,NE=R(Ha,n=>n.customToasts),OE=R(Ha,n=>n.transactionToasts),ME=R(Ha,n=>n.failTransactionToast);s();ae();var Yf={errorMessage:Ra,successMessage:Da,processingMessage:Na},Fw=n=>n.transactionsInfo,Uw=R(Fw,(n,o)=>o,(n,o)=>o!=null&&(n==null?void 0:n[Number(o)])||Yf);s();s();var Xe=require("@multiversx/sdk-core");se();s();function Va(n){try{return d.Buffer.from(n,"base64").toString()===atob(n)}catch(o){return!1}}function vi(n){var m,v,S;let{data:o}=n,i=Va(o!=null?o:"")?Xe.TransactionPayload.fromEncoded(o):new Xe.TransactionPayload(o),u=new Xe.Transaction(O({value:n.value.valueOf(),data:i,nonce:n.nonce.valueOf(),receiver:new Xe.Address(n.receiver),sender:new Xe.Address(n.sender),gasLimit:(m=n.gasLimit.valueOf())!=null?m:Pr,gasPrice:(v=n.gasPrice.valueOf())!=null?v:Ko,chainID:n.chainID.valueOf(),version:new Xe.TransactionVersion((S=n.version)!=null?S:Ip)},n.options?{options:new Xe.TransactionOptions(n.options)}:{}));return u.applySignature({hex:()=>n.signature||""},new Xe.Address(n.sender)),u}s();s();s();s();s();var Ww=require("@multiversx/sdk-core/out");s();se();s();var Xf=require("@multiversx/sdk-core");Ie();s();var Zf=require("@multiversx/sdk-core");function Gw(n){try{let o=new Zf.Address(n);return Boolean(o.bech32())}catch(o){return!1}}function Gr(n){return(n==null?void 0:n.startsWith("erd"))&&n.length===62&&/^\w+$/.test(n)&&Gw(n)}s();s();s();var Hw=require("@multiversx/sdk-core"),Vw=K(require("bignumber.js"));de();s();s();s();s();s();var qa="blocks";s();s();s();s();Be();s();s();Be();s();s();s();var Qw=K(require("bignumber.js"));se();s();var Jw=require("@multiversx/sdk-core"),za=K(require("bignumber.js"));se();s();var Zw=K(require("bignumber.js"));s();za.default.config({ROUNDING_MODE:za.default.ROUND_FLOOR});s();s();s();se();s();s();s();s();se();s();se();s();var jw=require("@multiversx/sdk-core");se();s();var $r=require("@multiversx/sdk-core"),nA=require("@multiversx/sdk-network-providers");se();s();s();var eA=K(require("bignumber.js"));se();s();se();s();s();s();s();s();se();s();Be();var oA=["reDelegateRewards","claimRewards","unBond"],iA=["wrapEgld","unwrapEgld"],sA=["unStake"],aA=["unDelegate"];s();s();s();se();s();var pA=K(require("bignumber.js"));s();s();s();s();Be();s();var fA=K(require("bignumber.js"));s();s();s();var mA=K(require("bignumber.js"));Ie();s();s();s();s();de();s();s();s();s();Be();s();s();s();var TA=K(require("linkifyjs"));s();se();s();var hA=K(require("bignumber.js"));s();Ie();s();s();de();s();de();s();s();s();Be();s();Be();s();var yA=K(require("bignumber.js"));se();Be();s();Be();s();var sd=require("react");Ie();s();s();Be();s();s();var xA=require("@multiversx/sdk-core/out"),SA=K(require("bignumber.js"));Be();s();Ie();s();s();Ie();var TD=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];s();var ad=require("react");Ie();s();var wA=require("react");Be();var AD=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];er();var _i=n=>n.transactions,nr=R(_i,n=>n.signedTransactions),AA=R(_i,n=>n.signTransactionsError),cd=R(_i,n=>n.signTransactionsCancelMessage),bi=n=>o=>Object.entries(o).reduce((i,[u,m])=>(n(m.status)&&(i[u]=m),i),{}),ud=R(nr,bi(Jn)),ld=R(nr,bi(Qn)),pd=R(nr,bi(jn)),IA=R(nr,bi(Ma)),fd=R(_i,n=>{var o;return(n==null?void 0:n.transactionsToSign)==null?null:j(O({},n.transactionsToSign),{transactions:((o=n==null?void 0:n.transactionsToSign)==null?void 0:o.transactions.map(i=>vi(i)))||[]})}),_A=R(nr,(n,o)=>o,(n,o)=>o!=null?(n==null?void 0:n[o])||{}:{});s();var dd=require("react");s();ae();s();s();s();s();s();s();s();s();var gd=require("@multiversx/sdk-extension-provider"),md=require("@multiversx/sdk-hw-provider"),Td=require("@multiversx/sdk-opera-provider"),hd=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider"),yd=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider"),xd=require("@multiversx/sdk-web-wallet-provider");se();de();var rr=n=>{switch(n==null?void 0:n.constructor){case xd.WalletProvider:return"wallet";case hd.WalletConnectProvider:return"walletconnect";case yd.WalletConnectV2Provider:return"walletconnectv2";case md.HWProvider:return"ledger";case gd.ExtensionProvider:return"extension";case Td.OperaProvider:return"opera";case Li:return"";default:return"extra"}};var Vt=n=>`Unable to perform ${n}, Provider not initialized`,Li=class{init(){return Promise.resolve(!1)}login(o){throw new Error(Vt(`login with options: ${o}`))}logout(o){throw new Error(Vt(`logout with options: ${o}`))}getAddress(){throw new Error(Vt("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(o,i){throw new Error(Vt(`sendTransaction with transactions: ${o} options: ${i}`))}signTransaction(o,i){throw new Error(Vt(`signTransaction with transactions: ${o} options: ${i}`))}signTransactions(o,i){throw new Error(Vt(`signTransactions with transactions: ${o} options: ${i}`))}signMessage(o,i){throw new Error(Vt(`signTransactions with ${o} and options ${i}`))}sendCustomMessage({method:o,params:i}){throw new Error(Vt(`sendCustomMessage with method: ${o} params: ${i}`))}sendCustomRequest(o){throw new Error(Vt(`sendSessionEvent with options: ${o}`))}ping(){return Promise.resolve(!1)}},Ya=new Li;var bA=Ya;function gt(){return bA||Ya}ae();s();s();var LA=K(require("axios"));s();s();s();de();s();s();function Sd(){let n=gt();return rr(n)}function qt(n){return Sd()===n}function Ei(){let n=window==null?void 0:window.location.search,o=Q.getState(),i=gt(),u=Ln(o),m=Wr(o),v=Gf(o);if(!i)throw"provider not initialized";return qt("ledger")&&m?new Promise(S=>{S(u)}):!qt("")&&!qt("wallet")&&!qt("extra")?i.getAddress():new Promise(S=>{if(v!=null){let k=new URLSearchParams(n),E=Object.fromEntries(k);Gr(E.address)&&S(E.address)}m&&S(u),S("")})}s();er();s();s();s();var EA=K(require("axios"));s();var kA=K(require("axios"));s();var PA=K(require("axios"));s();s();var RA=K(require("axios"));s();var DA=K(require("axios"));s();ae();de();s();s();ae();s();s();var Ad=require("@multiversx/sdk-core");s();Ce();Ie();s();er();s();ae();de();s();ae();Ie();s();s();s();Ie();s();s();s();s();var FA=K(require("axios")),UA=K(require("swr"));s();s();var Id=require("react");s();var WA=require("react"),GA=require("@multiversx/sdk-web-wallet-provider"),$A=K(require("qs"));se();ae();de();s();var bd=require("react");La();s();var Cd=require("react"),JA=require("@multiversx/sdk-extension-provider");se();s();ae();de();s();s();s();s();var kd=require("react"),KA=require("@multiversx/sdk-extension-provider");se();s();s();var Xa=()=>ne(Bf);s();s();s();s();s();s();var Hr=K(require("react"));var cU=(0,Hr.createContext)({}),uU=Q.getState();s();var Ed=K(require("react"));s();var Qa=K(require("react")),VA=K(require("axios"));s();s();ae();s();s();var QA=K(require("axios"));ae();Ie();Or();s();wn();ae();s();s();var cI=require("react");s();s();s();ae();s();s();var tI=K(require("bignumber.js"));se();ae();Ie();s();var eI=K(require("bignumber.js"));se();s();var nI=require("@multiversx/sdk-core"),rI=K(require("bignumber.js"));se();s();s();s();s();var Dd=K(require("axios"));s();s();s();function Pd(n){return V(this,null,function*(){return yield new Promise(o=>{setTimeout(()=>o(),n)})})}s();var Rd=(n,o,i,u=0)=>V(void 0,null,function*(){try{return yield n(...i)}catch(m){return u<o.retries?((o==null?void 0:o.delay)!=null&&(yield Pd(o.delay)),yield Rd(n,o,i,u+1)):null}}),ec=(n,o={retries:5,delay:500})=>(...i)=>V(void 0,null,function*(){return yield Rd(n,o,i)});var oI=4;var Q2=ec((n,o)=>V(void 0,null,function*(){let{data:i}=yield Dd.default.get(`${n}/${qa}?from=${oI}&size=1&fields=hash,timestamp${o?"&shard="+o:""}`),[u]=i;return u}));s();s();Zo();s();s();var iI=K(Nd());s();var Od,pW={origin:typeof window!="undefined"?(Od=window==null?void 0:window.location)==null?void 0:Od.origin:"",apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60};s();de();er();s();var Md=require("react");s();s();var lI=require("react"),pI=require("@multiversx/sdk-extension-provider");wn();Ce();de();s();function an(){return Wr(Q.getState())}In();s();var uI=require("react"),Fd=require("@multiversx/sdk-core");ae();s();var fI=require("react"),dI=require("@multiversx/sdk-opera-provider");wn();Ce();de();In();s();var hI=require("react");wn();ae();s();s();s();Ta();s();s();var gI=K(require("platform"));s();Ce();Ie();Or();Zn();An();var mI=n=>{let o=bt.local.getItem(Ke.logoutEvent),{data:i}=o?JSON.parse(o):{data:n};n===i&&(bt.local.setItem({key:Ke.logoutEvent,data:n,expires:0}),bt.local.removeItem(Ke.logoutEvent))};function Pi(n,o,i=!0){return V(this,null,function*(){let u=gt(),m=rr(u),v=an(),S=m==="wallet";if(i&&(u==null?void 0:u.relogin)!=null)return yield u.relogin();if(!v||!u){nc(n,o,!1);return}try{let k=yield Ei();mI(k)}catch(k){nc(n,o,!1),console.error("error fetching logout address",k)}S&&qp(),Q.dispatch(_e());try{let E=S&&!n?window==null?void 0:window.location.origin:n;S?setTimeout(()=>{u.logout({callbackUrl:E})}):(yield u.logout({callbackUrl:E}),nc(n,o,S))}catch(k){console.error("error logging out",k)}})}function nc(n,o,i){n&&!i&&(typeof o=="function"?o(n):ri(n))}s();s();s();s();s();s();s();s();s();s();de();s();Or();Zn();s();s();s();ae();s();s();var TI=K(require("axios"));s();s();var Ud=require("react"),xI=require("@multiversx/sdk-hw-provider");wn();Ce();ae();de();In();s();var yI=require("react");s();var rc=require("react"),vI=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider");Ce();ae();de();In();s();var oc=require("react"),wI=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider");Ce();ae();de();In();s();s();var Bd=require("react");s();var _I=require("react");s();var ic=require("react"),II=require("socket.io-client");ae();s();s();s();s();var Wd=n=>n.dappModal,bI=R(Wd,n=>n.visible),Ri=R(Wd,n=>n.modal),q6=R(Ri,n=>n.showHeader),z6=R(Ri,n=>n.showFooter),K6=R(Ri,n=>n.headerText),Y6=R(Ri,n=>n.footerText);An();var{logoutEvent:LI}=Ke,Gd="storage",EI=()=>{let{address:n}=Xa(),o=ne($f);(0,$d.useEffect)(()=>{let i=u=>{if(!(u.key!==LI||!u.newValue))try{let{data:m}=JSON.parse(u.newValue);m===n&&Pi(o)}catch(m){return}};return window==null||window.addEventListener(Gd,i),()=>{window==null||window.removeEventListener(Gd,i)}},[n,o])};0&&(module.exports={useLogoutFromMultipleTabs});
|
|
20
|
+
}`;var z=Ml(function(){return ee(p,D+"return "+L).apply(n,T)});if(z.source=L,Vs(z))throw z;return z}function KS(e){return te(e).toLowerCase()}function YS(e){return te(e).toUpperCase()}function ZS(e,t,r){if(e=te(e),e&&(r||t===n))return qc(e);if(!e||!(t=He(t)))return e;var a=ut(e),c=ut(t),p=zc(a,c),T=Kc(a,c)+1;return tn(a,p,T).join("")}function XS(e,t,r){if(e=te(e),e&&(r||t===n))return e.slice(0,Zc(e)+1);if(!e||!(t=He(t)))return e;var a=ut(e),c=Kc(a,ut(t))+1;return tn(a,0,c).join("")}function JS(e,t,r){if(e=te(e),e&&(r||t===n))return e.replace(Vi,"");if(!e||!(t=He(t)))return e;var a=ut(e),c=zc(a,ut(t));return tn(a,c).join("")}function QS(e,t){var r=qd,a=zd;if(le(t)){var c="separator"in t?t.separator:c;r="length"in t?H(t.length):r,a="omission"in t?He(t.omission):a}e=te(e);var p=e.length;if(Nn(e)){var T=ut(e);p=T.length}if(r>=p)return e;var h=r-On(a);if(h<1)return a;var x=T?tn(T,0,h).join(""):e.slice(0,h);if(c===n)return x+a;if(T&&(h+=x.length-h),qs(c)){if(e.slice(h).search(c)){var _,b=x;for(c.global||(c=as(c.source,te(dc.exec(c))+"g")),c.lastIndex=0;_=c.exec(b);)var L=_.index;x=x.slice(0,L===n?h:L)}}else if(e.indexOf(He(c),h)!=h){var C=x.lastIndexOf(c);C>-1&&(x=x.slice(0,C))}return x+a}function jS(e){return e=te(e),e&&lg.test(e)?e.replace(lc,Em):e}var ev=Gn(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),Ys=Fu("toUpperCase");function Ol(e,t,r){return e=te(e),t=r?n:t,t===n?Am(e)?Pm(e):gm(e):e.match(t)||[]}var Ml=Y(function(e,t){try{return Ge(e,n,t)}catch(r){return Vs(r)?r:new G(r)}}),tv=Nt(function(e,t){return Qe(t,function(r){r=St(r),Rt(e,r,$s(e[r],e))}),e});function nv(e){var t=e==null?0:e.length,r=M();return e=t?ue(e,function(a){if(typeof a[1]!="function")throw new je(m);return[r(a[0]),a[1]]}):[],Y(function(a){for(var c=-1;++c<t;){var p=e[c];if(Ge(p[0],this,a))return Ge(p[1],this,a)}})}function rv(e){return ET(tt(e,N))}function Zs(e){return function(){return e}}function ov(e,t){return e==null||e!==e?t:e}var iv=Bu(),sv=Bu(!0);function Fe(e){return e}function Xs(e){return mu(typeof e=="function"?e:tt(e,N))}function av(e){return hu(tt(e,N))}function cv(e,t){return yu(e,tt(t,N))}var uv=Y(function(e,t){return function(r){return vr(r,e,t)}}),lv=Y(function(e,t){return function(r){return vr(e,r,t)}});function Js(e,t,r){var a=we(t),c=So(t,a);r==null&&!(le(t)&&(c.length||!a.length))&&(r=t,t=e,e=this,c=So(t,we(t)));var p=!(le(r)&&"chain"in r)||!!r.chain,T=Mt(e);return Qe(c,function(h){var x=t[h];e[h]=x,T&&(e.prototype[h]=function(){var _=this.__chain__;if(p||_){var b=e(this.__wrapped__),L=b.__actions__=Ne(this.__actions__);return L.push({func:x,args:arguments,thisArg:e}),b.__chain__=_,b}return x.apply(e,Yt([this.value()],arguments))})}),e}function pv(){return ve._===this&&(ve._=Fm),this}function Qs(){}function fv(e){return e=H(e),Y(function(t){return xu(t,e)})}var dv=ks(ue),gv=ks(Wc),mv=ks(es);function Fl(e){return Ms(e)?ts(St(e)):qT(e)}function Tv(e){return function(t){return e==null?n:gn(e,t)}}var hv=Gu(),yv=Gu(!0);function js(){return[]}function ea(){return!1}function xv(){return{}}function Sv(){return""}function vv(){return!0}function wv(e,t){if(e=H(e),e<1||e>zt)return[];var r=ht,a=Ee(e,ht);t=M(t),e-=ht;for(var c=os(a,t);++r<e;)t(r);return c}function Av(e){return $(e)?ue(e,St):Ve(e)?[e]:Ne(rl(te(e)))}function Iv(e){var t=++Om;return te(e)+t}var _v=bo(function(e,t){return e+t},0),bv=Cs("ceil"),Lv=bo(function(e,t){return e/t},1),Ev=Cs("floor");function kv(e){return e&&e.length?xo(e,Fe,ms):n}function Cv(e,t){return e&&e.length?xo(e,M(t,2),ms):n}function Pv(e){return Hc(e,Fe)}function Rv(e,t){return Hc(e,M(t,2))}function Dv(e){return e&&e.length?xo(e,Fe,xs):n}function Nv(e,t){return e&&e.length?xo(e,M(t,2),xs):n}var Ov=bo(function(e,t){return e*t},1),Mv=Cs("round"),Fv=bo(function(e,t){return e-t},0);function Uv(e){return e&&e.length?rs(e,Fe):0}function Bv(e,t){return e&&e.length?rs(e,M(t,2)):0}return l.after=ax,l.ary=gl,l.assign=Yx,l.assignIn=El,l.assignInWith=Bo,l.assignWith=Zx,l.at=Xx,l.before=ml,l.bind=$s,l.bindAll=tv,l.bindKey=Tl,l.castArray=xx,l.chain=pl,l.chunk=Eh,l.compact=kh,l.concat=Ch,l.cond=nv,l.conforms=rv,l.constant=Zs,l.countBy=Uy,l.create=Jx,l.curry=hl,l.curryRight=yl,l.debounce=xl,l.defaults=Qx,l.defaultsDeep=jx,l.defer=cx,l.delay=ux,l.difference=Ph,l.differenceBy=Rh,l.differenceWith=Dh,l.drop=Nh,l.dropRight=Oh,l.dropRightWhile=Mh,l.dropWhile=Fh,l.fill=Uh,l.filter=Wy,l.flatMap=Hy,l.flatMapDeep=Vy,l.flatMapDepth=qy,l.flatten=al,l.flattenDeep=Bh,l.flattenDepth=Wh,l.flip=lx,l.flow=iv,l.flowRight=sv,l.fromPairs=Gh,l.functions=sS,l.functionsIn=aS,l.groupBy=zy,l.initial=Hh,l.intersection=Vh,l.intersectionBy=qh,l.intersectionWith=zh,l.invert=uS,l.invertBy=lS,l.invokeMap=Yy,l.iteratee=Xs,l.keyBy=Zy,l.keys=we,l.keysIn=Me,l.map=Do,l.mapKeys=fS,l.mapValues=dS,l.matches=av,l.matchesProperty=cv,l.memoize=Oo,l.merge=gS,l.mergeWith=kl,l.method=uv,l.methodOf=lv,l.mixin=Js,l.negate=Mo,l.nthArg=fv,l.omit=mS,l.omitBy=TS,l.once=px,l.orderBy=Xy,l.over=dv,l.overArgs=fx,l.overEvery=gv,l.overSome=mv,l.partial=Hs,l.partialRight=Sl,l.partition=Jy,l.pick=hS,l.pickBy=Cl,l.property=Fl,l.propertyOf=Tv,l.pull=Xh,l.pullAll=ul,l.pullAllBy=Jh,l.pullAllWith=Qh,l.pullAt=jh,l.range=hv,l.rangeRight=yv,l.rearg=dx,l.reject=ex,l.remove=ey,l.rest=gx,l.reverse=Ws,l.sampleSize=nx,l.set=xS,l.setWith=SS,l.shuffle=rx,l.slice=ty,l.sortBy=sx,l.sortedUniq=cy,l.sortedUniqBy=uy,l.split=HS,l.spread=mx,l.tail=ly,l.take=py,l.takeRight=fy,l.takeRightWhile=dy,l.takeWhile=gy,l.tap=ky,l.throttle=Tx,l.thru=Ro,l.toArray=_l,l.toPairs=Pl,l.toPairsIn=Rl,l.toPath=Av,l.toPlainObject=Ll,l.transform=vS,l.unary=hx,l.union=my,l.unionBy=Ty,l.unionWith=hy,l.uniq=yy,l.uniqBy=xy,l.uniqWith=Sy,l.unset=wS,l.unzip=Gs,l.unzipWith=ll,l.update=AS,l.updateWith=IS,l.values=Vn,l.valuesIn=_S,l.without=vy,l.words=Ol,l.wrap=yx,l.xor=wy,l.xorBy=Ay,l.xorWith=Iy,l.zip=_y,l.zipObject=by,l.zipObjectDeep=Ly,l.zipWith=Ey,l.entries=Pl,l.entriesIn=Rl,l.extend=El,l.extendWith=Bo,Js(l,l),l.add=_v,l.attempt=Ml,l.camelCase=kS,l.capitalize=Dl,l.ceil=bv,l.clamp=bS,l.clone=Sx,l.cloneDeep=wx,l.cloneDeepWith=Ax,l.cloneWith=vx,l.conformsTo=Ix,l.deburr=Nl,l.defaultTo=ov,l.divide=Lv,l.endsWith=CS,l.eq=pt,l.escape=PS,l.escapeRegExp=RS,l.every=By,l.find=Gy,l.findIndex=il,l.findKey=eS,l.findLast=$y,l.findLastIndex=sl,l.findLastKey=tS,l.floor=Ev,l.forEach=fl,l.forEachRight=dl,l.forIn=nS,l.forInRight=rS,l.forOwn=oS,l.forOwnRight=iS,l.get=zs,l.gt=_x,l.gte=bx,l.has=cS,l.hasIn=Ks,l.head=cl,l.identity=Fe,l.includes=Ky,l.indexOf=$h,l.inRange=LS,l.invoke=pS,l.isArguments=hn,l.isArray=$,l.isArrayBuffer=Lx,l.isArrayLike=Oe,l.isArrayLikeObject=me,l.isBoolean=Ex,l.isBuffer=nn,l.isDate=kx,l.isElement=Cx,l.isEmpty=Px,l.isEqual=Rx,l.isEqualWith=Dx,l.isError=Vs,l.isFinite=Nx,l.isFunction=Mt,l.isInteger=vl,l.isLength=Fo,l.isMap=wl,l.isMatch=Ox,l.isMatchWith=Mx,l.isNaN=Fx,l.isNative=Ux,l.isNil=Wx,l.isNull=Bx,l.isNumber=Al,l.isObject=le,l.isObjectLike=fe,l.isPlainObject=Lr,l.isRegExp=qs,l.isSafeInteger=Gx,l.isSet=Il,l.isString=Uo,l.isSymbol=Ve,l.isTypedArray=Hn,l.isUndefined=$x,l.isWeakMap=Hx,l.isWeakSet=Vx,l.join=Kh,l.kebabCase=DS,l.last=rt,l.lastIndexOf=Yh,l.lowerCase=NS,l.lowerFirst=OS,l.lt=qx,l.lte=zx,l.max=kv,l.maxBy=Cv,l.mean=Pv,l.meanBy=Rv,l.min=Dv,l.minBy=Nv,l.stubArray=js,l.stubFalse=ea,l.stubObject=xv,l.stubString=Sv,l.stubTrue=vv,l.multiply=Ov,l.nth=Zh,l.noConflict=pv,l.noop=Qs,l.now=No,l.pad=MS,l.padEnd=FS,l.padStart=US,l.parseInt=BS,l.random=ES,l.reduce=Qy,l.reduceRight=jy,l.repeat=WS,l.replace=GS,l.result=yS,l.round=Mv,l.runInContext=y,l.sample=tx,l.size=ox,l.snakeCase=$S,l.some=ix,l.sortedIndex=ny,l.sortedIndexBy=ry,l.sortedIndexOf=oy,l.sortedLastIndex=iy,l.sortedLastIndexBy=sy,l.sortedLastIndexOf=ay,l.startCase=VS,l.startsWith=qS,l.subtract=Fv,l.sum=Uv,l.sumBy=Bv,l.template=zS,l.times=wv,l.toFinite=Ft,l.toInteger=H,l.toLength=bl,l.toLower=KS,l.toNumber=ot,l.toSafeInteger=Kx,l.toString=te,l.toUpper=YS,l.trim=ZS,l.trimEnd=XS,l.trimStart=JS,l.truncate=QS,l.unescape=jS,l.uniqueId=Iv,l.upperCase=ev,l.upperFirst=Ys,l.each=fl,l.eachRight=dl,l.first=cl,Js(l,function(){var e={};return yt(l,function(t,r){re.call(l.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),l.VERSION=o,Qe(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),Qe(["drop","take"],function(e,t){X.prototype[e]=function(r){r=r===n?1:Se(H(r),0);var a=this.__filtered__&&!t?new X(this):this.clone();return a.__filtered__?a.__takeCount__=Ee(r,a.__takeCount__):a.__views__.push({size:Ee(r,ht),type:e+(a.__dir__<0?"Right":"")}),a},X.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),Qe(["filter","map","takeWhile"],function(e,t){var r=t+1,a=r==ac||r==Xd;X.prototype[e]=function(c){var p=this.clone();return p.__iteratees__.push({iteratee:M(c,3),type:r}),p.__filtered__=p.__filtered__||a,p}}),Qe(["head","last"],function(e,t){var r="take"+(t?"Right":"");X.prototype[e]=function(){return this[r](1).value()[0]}}),Qe(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");X.prototype[e]=function(){return this.__filtered__?new X(this):this[r](1)}}),X.prototype.compact=function(){return this.filter(Fe)},X.prototype.find=function(e){return this.filter(e).head()},X.prototype.findLast=function(e){return this.reverse().find(e)},X.prototype.invokeMap=Y(function(e,t){return typeof e=="function"?new X(this):this.map(function(r){return vr(r,e,t)})}),X.prototype.reject=function(e){return this.filter(Mo(M(e)))},X.prototype.slice=function(e,t){e=H(e);var r=this;return r.__filtered__&&(e>0||t<0)?new X(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(t=H(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},X.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},X.prototype.toArray=function(){return this.take(ht)},yt(X.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),c=l[a?"take"+(t=="last"?"Right":""):t],p=a||/^find/.test(t);!c||(l.prototype[t]=function(){var T=this.__wrapped__,h=a?[1]:arguments,x=T instanceof X,_=h[0],b=x||$(T),L=function(Z){var J=c.apply(l,Yt([Z],h));return a&&C?J[0]:J};b&&r&&typeof _=="function"&&_.length!=1&&(x=b=!1);var C=this.__chain__,D=!!this.__actions__.length,U=p&&!C,z=x&&!D;if(!p&&b){T=z?T:new X(this);var B=e.apply(T,h);return B.__actions__.push({func:Ro,args:[L],thisArg:n}),new et(B,C)}return U&&z?e.apply(this,h):(B=this.thru(L),U?a?B.value()[0]:B.value():B)})}),Qe(["pop","push","shift","sort","splice","unshift"],function(e){var t=ro[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);l.prototype[e]=function(){var c=arguments;if(a&&!this.__chain__){var p=this.value();return t.apply($(p)?p:[],c)}return this[r](function(T){return t.apply($(T)?T:[],c)})}}),yt(X.prototype,function(e,t){var r=l[t];if(r){var a=r.name+"";re.call(Un,a)||(Un[a]=[]),Un[a].push({name:t,func:r})}}),Un[_o(n,be).name]=[{name:"wrapper",func:n}],X.prototype.clone=jm,X.prototype.reverse=eT,X.prototype.value=tT,l.prototype.at=Cy,l.prototype.chain=Py,l.prototype.commit=Ry,l.prototype.next=Dy,l.prototype.plant=Oy,l.prototype.reverse=My,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=Fy,l.prototype.first=l.prototype.head,gr&&(l.prototype[gr]=Ny),l},Xt=Rm();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(ve._=Xt,define(function(){return Xt})):un?((un.exports=Xt)._=Xt,Xi._=Xt):ve._=Xt}).call(or)});var PI={};yn(PI,{useLogoutFromMultipleTabs:()=>CI});module.exports=Cr(PI);s();var Vd=require("react");s();s();s();var Uf=require("react"),tr=require("react-redux");s();var Wa=require("@reduxjs/toolkit"),Mf=require("react-redux/lib/utils/Subscription");ae();s();var ff=K(require("lodash.throttle"));se();s();var pf=K(require("lodash.isequal")),Ti=require("reselect");Ie();var R=(0,Ti.createSelectorCreator)(Ti.defaultMemoize,pf.default),Fr=(n,o)=>n!=""&&Boolean(o);ae();_a();Zn();An();var sw=[Yo],hi=!1,aw=(0,ff.default)(()=>{Nr(Dr())},5e3),df=n=>o=>i=>{var E;if(sw.includes(i.type))return o(i);let u=n.getState(),m=bt.local.getItem(Ke.loginExpiresAt);if(!Fr((E=u==null?void 0:u.loginInfo)==null?void 0:E.loginMethod,u==null?void 0:u.account.address))return o(i);if(m==null)return Nr(Dr());let S=Date.now();return m-S<0&&!hi?setTimeout(()=>{hi=!0,n.dispatch(Wp())},1e3):(hi&&(hi=!1),aw()),o(i)};s();s();function yi(){return typeof sessionStorage!="undefined"}var Df=yi()?(If(),Cr(Af)).default:(bf(),Cr(_f)).default,Nf=yi()?(Ef(),Cr(Lf)).default:[],Of=yi()?(Rf(),Cr(Pf)).default:n=>n;xi();var Q=(0,Wa.configureStore)({reducer:Df,middleware:n=>n({serializableCheck:{ignoredActions:[...Nf,Ia.type,Aa.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(df)}),Ff=(0,Mf.createSubscription)(Q),oE=Of(Q),iE=(0,Wa.configureStore)({reducer:bn});var kw={store:Q,subscription:Ff},Ga=(0,Uf.createContext)(kw),uE=(0,tr.createStoreHook)(Ga),We=(0,tr.createDispatchHook)(Ga),ne=(0,tr.createSelectorHook)(Ga);s();s();ae();var $t=n=>n.account,Ln=R($t,n=>n.address),Br=R($t,Ln,(n,o)=>o in n.accounts?n.accounts[o]:Xo),Bf=R($t,Br,(n,o)=>{let m=n,{accounts:i}=m,u=Go(m,["accounts"]);return j(O({},u),{account:o})}),Cw=R(Br,n=>n.balance),Pw=R(Br,n=>{var o;return((o=n==null?void 0:n.nonce)==null?void 0:o.valueOf())||0}),dE=R($t,n=>n.shard),Rw=R($t,n=>n.ledgerAccount),gE=R($t,n=>n.walletConnectAccount),mE=R($t,n=>n.isAccountLoading),TE=R($t,n=>n.accountLoadingError),Wf=R($t,n=>n.websocketEvent);s();var dt=n=>n.loginInfo,SE=R(dt,n=>n.loginMethod),Wr=R(dt,Ln,(n,o)=>Fr(n.loginMethod,o)),vE=R(dt,n=>n.walletConnectLogin),wE=R(dt,n=>n.ledgerLogin),Gf=R(dt,n=>n.walletLogin),AE=R(dt,n=>n.isLoginSessionInvalid),Dw=R(dt,n=>n.tokenLogin),$f=R(dt,n=>n.logoutRoute);s();var Hf=n=>n.modals,bE=R(Hf,n=>n.txSubmittedModal),Nw=R(Hf,n=>n.notificationModal);s();var Ht=n=>n.networkConfig,Si=R(Ht,n=>n.chainID),Ow=R(Ht,n=>n.network.walletConnectBridgeAddress),Mw=R(Ht,n=>n.network.walletConnectV2RelayAddress),Fw=R(Ht,n=>n.network.walletConnectV2ProjectId),Uw=R(Ht,n=>n.network.walletConnectV2Options),Vf=R(Ht,n=>n.network.walletConnectDeepLink),on=R(Ht,n=>n.network),qf=R(on,n=>n.apiAddress),zf=R(on,n=>n.explorerAddress),Kf=R(on,n=>n.egldLabel);s();var $a=n=>n.signedMessageInfo,PE=R($a,n=>n.isSigning),RE=R($a,n=>n.errorMessage),DE=R($a,n=>{let o=Object.keys(n.signedSessions),i=o.length;return n.signedSessions[o[i-1]]});s();var Ha=n=>n.toasts,ME=R(Ha,n=>n.customToasts),FE=R(Ha,n=>n.transactionToasts),UE=R(Ha,n=>n.failTransactionToast);s();ae();var Yf={errorMessage:Ra,successMessage:Da,processingMessage:Na},Bw=n=>n.transactionsInfo,Ww=R(Bw,(n,o)=>o,(n,o)=>o!=null&&(n==null?void 0:n[Number(o)])||Yf);s();s();var Xe=require("@multiversx/sdk-core");se();s();function Va(n){try{return d.Buffer.from(n,"base64").toString()===atob(n)}catch(o){return!1}}function vi(n){var m,v,S;let{data:o}=n,i=Va(o!=null?o:"")?Xe.TransactionPayload.fromEncoded(o):new Xe.TransactionPayload(o),u=new Xe.Transaction(O({value:n.value.valueOf(),data:i,nonce:n.nonce.valueOf(),receiver:new Xe.Address(n.receiver),sender:new Xe.Address(n.sender),gasLimit:(m=n.gasLimit.valueOf())!=null?m:Pr,gasPrice:(v=n.gasPrice.valueOf())!=null?v:Ko,chainID:n.chainID.valueOf(),version:new Xe.TransactionVersion((S=n.version)!=null?S:Ip)},n.options?{options:new Xe.TransactionOptions(n.options)}:{}));return u.applySignature({hex:()=>n.signature||""},new Xe.Address(n.sender)),u}s();s();s();s();s();var $w=require("@multiversx/sdk-core/out");s();se();s();var Xf=require("@multiversx/sdk-core");Ie();s();var Zf=require("@multiversx/sdk-core");function Hw(n){try{let o=new Zf.Address(n);return Boolean(o.bech32())}catch(o){return!1}}function Gr(n){return(n==null?void 0:n.startsWith("erd"))&&n.length===62&&/^\w+$/.test(n)&&Hw(n)}s();s();s();var qw=require("@multiversx/sdk-core"),zw=K(require("bignumber.js"));de();s();s();s();s();s();var qa="blocks";s();s();s();s();Be();s();s();Be();s();s();s();var eA=K(require("bignumber.js"));se();s();var jw=require("@multiversx/sdk-core"),za=K(require("bignumber.js"));se();s();var Jw=K(require("bignumber.js"));s();za.default.config({ROUNDING_MODE:za.default.ROUND_FLOOR});s();s();s();se();s();s();s();s();se();s();se();s();var tA=require("@multiversx/sdk-core");se();s();var $r=require("@multiversx/sdk-core"),oA=require("@multiversx/sdk-network-providers");se();s();s();var nA=K(require("bignumber.js"));se();s();se();s();s();s();s();s();se();s();Be();var sA=["reDelegateRewards","claimRewards","unBond"],aA=["wrapEgld","unwrapEgld"],cA=["unStake"],uA=["unDelegate"];s();s();s();se();s();var dA=K(require("bignumber.js"));s();s();s();s();Be();s();var gA=K(require("bignumber.js"));s();s();s();var hA=K(require("bignumber.js"));Ie();s();s();s();s();de();s();s();s();s();Be();s();s();s();var yA=K(require("linkifyjs"));s();se();s();var xA=K(require("bignumber.js"));s();Ie();s();s();de();s();de();s();s();s();Be();s();Be();s();var SA=K(require("bignumber.js"));se();Be();s();Be();s();var sd=require("react");Ie();s();s();Be();s();s();var vA=require("@multiversx/sdk-core/out"),wA=K(require("bignumber.js"));Be();s();Ie();s();s();Ie();var yD=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];s();var ad=require("react");Ie();s();var IA=require("react");Be();var _D=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];er();var _i=n=>n.transactions,nr=R(_i,n=>n.signedTransactions),_A=R(_i,n=>n.signTransactionsError),cd=R(_i,n=>n.signTransactionsCancelMessage),bi=n=>o=>Object.entries(o).reduce((i,[u,m])=>(n(m.status)&&(i[u]=m),i),{}),ud=R(nr,bi(Jn)),ld=R(nr,bi(Qn)),pd=R(nr,bi(jn)),bA=R(nr,bi(Ma)),fd=R(_i,n=>{var o;return(n==null?void 0:n.transactionsToSign)==null?null:j(O({},n.transactionsToSign),{transactions:((o=n==null?void 0:n.transactionsToSign)==null?void 0:o.transactions.map(i=>vi(i)))||[]})}),LA=R(nr,(n,o)=>o,(n,o)=>o!=null?(n==null?void 0:n[o])||{}:{});s();var dd=require("react");s();ae();s();s();s();s();s();s();s();s();var gd=require("@multiversx/sdk-extension-provider"),md=require("@multiversx/sdk-hw-provider"),Td=require("@multiversx/sdk-opera-provider"),hd=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider"),yd=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider"),xd=require("@multiversx/sdk-web-wallet-provider");se();de();var rr=n=>{switch(n==null?void 0:n.constructor){case xd.WalletProvider:return"wallet";case hd.WalletConnectProvider:return"walletconnect";case yd.WalletConnectV2Provider:return"walletconnectv2";case md.HWProvider:return"ledger";case gd.ExtensionProvider:return"extension";case Td.OperaProvider:return"opera";case Li:return"";default:return"extra"}};var Vt=n=>`Unable to perform ${n}, Provider not initialized`,Li=class{init(){return Promise.resolve(!1)}login(o){throw new Error(Vt(`login with options: ${o}`))}logout(o){throw new Error(Vt(`logout with options: ${o}`))}getAddress(){throw new Error(Vt("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(o,i){throw new Error(Vt(`sendTransaction with transactions: ${o} options: ${i}`))}signTransaction(o,i){throw new Error(Vt(`signTransaction with transactions: ${o} options: ${i}`))}signTransactions(o,i){throw new Error(Vt(`signTransactions with transactions: ${o} options: ${i}`))}signMessage(o,i){throw new Error(Vt(`signTransactions with ${o} and options ${i}`))}sendCustomMessage({method:o,params:i}){throw new Error(Vt(`sendCustomMessage with method: ${o} params: ${i}`))}sendCustomRequest(o){throw new Error(Vt(`sendSessionEvent with options: ${o}`))}ping(){return Promise.resolve(!1)}},Ya=new Li;var EA=Ya;function gt(){return EA||Ya}ae();s();s();var kA=K(require("axios"));s();s();s();de();s();s();function Sd(){let n=gt();return rr(n)}function qt(n){return Sd()===n}function Ei(){let n=window==null?void 0:window.location.search,o=Q.getState(),i=gt(),u=Ln(o),m=Wr(o),v=Gf(o);if(!i)throw"provider not initialized";return qt("ledger")&&m?new Promise(S=>{S(u)}):!qt("")&&!qt("wallet")&&!qt("extra")?i.getAddress():new Promise(S=>{if(v!=null){let k=new URLSearchParams(n),E=Object.fromEntries(k);Gr(E.address)&&S(E.address)}m&&S(u),S("")})}s();er();s();s();s();var CA=K(require("axios"));s();var PA=K(require("axios"));s();var DA=K(require("axios"));s();s();var NA=K(require("axios"));s();var OA=K(require("axios"));s();ae();de();s();s();ae();s();s();var Ad=require("@multiversx/sdk-core");s();Ce();Ie();s();er();s();ae();de();s();ae();Ie();s();s();s();Ie();s();s();s();s();var BA=K(require("axios")),WA=K(require("swr"));s();s();var Id=require("react");s();var HA=require("react"),Ld=require("@multiversx/sdk-web-wallet-provider"),VA=K(require("qs"));se();ae();de();s();s();var _d,bF={search:(_d=window==null?void 0:window.location)==null?void 0:_d.search,removeParams:[]};s();var Ed=require("react");La();s();var Rd=require("react"),jA=require("@multiversx/sdk-extension-provider");se();s();ae();de();s();s();s();s();var Pd=require("react"),ZA=require("@multiversx/sdk-extension-provider");se();s();s();var Xa=()=>ne(Bf);s();s();s();s();s();s();var Hr=K(require("react"));var hU=(0,Hr.createContext)({}),yU=Q.getState();s();var Cd=K(require("react"));s();var Qa=K(require("react")),zA=K(require("axios"));s();s();ae();s();s();var eI=K(require("axios"));ae();Ie();Or();s();wn();ae();s();s();var lI=require("react");s();s();s();ae();s();s();var rI=K(require("bignumber.js"));se();ae();Ie();s();var nI=K(require("bignumber.js"));se();s();var oI=require("@multiversx/sdk-core"),iI=K(require("bignumber.js"));se();s();s();s();s();var Od=K(require("axios"));s();s();s();function Dd(n){return V(this,null,function*(){return yield new Promise(o=>{setTimeout(()=>o(),n)})})}s();var Nd=(n,o,i,u=0)=>V(void 0,null,function*(){try{return yield n(...i)}catch(m){return u<o.retries?((o==null?void 0:o.delay)!=null&&(yield Dd(o.delay)),yield Nd(n,o,i,u+1)):null}}),ec=(n,o={retries:5,delay:500})=>(...i)=>V(void 0,null,function*(){return yield Nd(n,o,i)});var sI=4;var aW=ec((n,o)=>V(void 0,null,function*(){let{data:i}=yield Od.default.get(`${n}/${qa}?from=${sI}&size=1&fields=hash,timestamp${o?"&shard="+o:""}`),[u]=i;return u}));s();s();Zo();s();s();var aI=K(Md());s();var Fd,SW={origin:typeof window!="undefined"?(Fd=window==null?void 0:window.location)==null?void 0:Fd.origin:"",apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60};s();de();er();s();var Ud=require("react");s();s();var fI=require("react"),dI=require("@multiversx/sdk-extension-provider");wn();Ce();de();s();function an(){return Wr(Q.getState())}In();s();var pI=require("react"),Bd=require("@multiversx/sdk-core");ae();s();var gI=require("react"),mI=require("@multiversx/sdk-opera-provider");wn();Ce();de();In();s();var xI=require("react");wn();ae();s();s();Ta();s();s();var TI=K(require("platform"));s();Ce();Ie();Or();Zn();An();var hI=n=>{let o=bt.local.getItem(Ke.logoutEvent),{data:i}=o?JSON.parse(o):{data:n};n===i&&(bt.local.setItem({key:Ke.logoutEvent,data:n,expires:0}),bt.local.removeItem(Ke.logoutEvent))};function Pi(n,o,i=!0){return V(this,null,function*(){let u=gt(),m=rr(u),v=an(),S=m==="wallet";if(i&&(u==null?void 0:u.relogin)!=null)return yield u.relogin();if(!v||!u){nc(n,o,!1);return}try{let k=yield Ei();hI(k)}catch(k){nc(n,o,!1),console.error("error fetching logout address",k)}S&&qp(),Q.dispatch(_e());try{let E=S&&!n?window==null?void 0:window.location.origin:n;S?setTimeout(()=>{u.logout({callbackUrl:E})}):(yield u.logout({callbackUrl:E}),nc(n,o,S))}catch(k){console.error("error logging out",k)}})}function nc(n,o,i){n&&!i&&(typeof o=="function"?o(n):ri(n))}s();s();s();s();s();s();s();s();s();de();s();Or();Zn();s();s();s();ae();s();s();var yI=K(require("axios"));s();s();var Wd=require("react"),vI=require("@multiversx/sdk-hw-provider");wn();Ce();ae();de();In();s();var SI=require("react");s();var rc=require("react"),AI=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider");Ce();ae();de();In();s();var oc=require("react"),II=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider");Ce();ae();de();In();s();s();var Gd=require("react");s();var LI=require("react");s();var ic=require("react"),bI=require("socket.io-client");ae();s();s();s();s();var $d=n=>n.dappModal,EI=R($d,n=>n.visible),Ri=R($d,n=>n.modal),X6=R(Ri,n=>n.showHeader),J6=R(Ri,n=>n.showFooter),Q6=R(Ri,n=>n.headerText),j6=R(Ri,n=>n.footerText);An();var{logoutEvent:kI}=Ke,Hd="storage",CI=()=>{let{address:n}=Xa(),o=ne($f);(0,Vd.useEffect)(()=>{let i=u=>{if(!(u.key!==kI||!u.newValue))try{let{data:m}=JSON.parse(u.newValue);m===n&&Pi(o)}catch(m){return}};return window==null||window.addEventListener(Hd,i),()=>{window==null||window.removeEventListener(Hd,i)}},[n,o])};0&&(module.exports={useLogoutFromMultipleTabs});
|
|
21
21
|
/*!
|
|
22
22
|
* The buffer module from node.js, for the browser.
|
|
23
23
|
*
|