@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 Iv=Object.create;var Er=Object.defineProperty,_v=Object.defineProperties,bv=Object.getOwnPropertyDescriptor,Lv=Object.getOwnPropertyDescriptors,Ev=Object.getOwnPropertyNames,Uo=Object.getOwnPropertySymbols,Cv=Object.getPrototypeOf,Zs=Object.prototype.hasOwnProperty,Fl=Object.prototype.propertyIsEnumerable;var Ml=(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={}))Zs.call(o,i)&&Ml(n,i,o[i]);if(Uo)for(var i of Uo(o))Fl.call(o,i)&&Ml(n,i,o[i]);return n},Q=(n,o)=>_v(n,Lv(o));var Bo=(n,o)=>{var i={};for(var u in n)Zs.call(n,u)&&o.indexOf(u)<0&&(i[u]=n[u]);if(n!=null&&Uo)for(var u of Uo(n))o.indexOf(u)<0&&Fl.call(n,u)&&(i[u]=n[u]);return i};var W=(n,o)=>()=>(n&&(o=n(n=0)),o);var Cr=(n,o)=>()=>(o||n((o={exports:{}}).exports,o),o.exports),gn=(n,o)=>{for(var i in o)Er(n,i,{get:o[i],enumerable:!0})},Ul=(n,o,i,u)=>{if(o&&typeof o=="object"||typeof o=="function")for(let m of Ev(o))!Zs.call(n,m)&&m!==i&&Er(n,m,{get:()=>o[m],enumerable:!(u=bv(o,m))||u.enumerable});return n};var z=(n,o,i)=>(i=n!=null?Iv(Cv(n)):{},Ul(o||!n||!n.__esModule?Er(i,"default",{value:n,enumerable:!0}):i,n)),kr=n=>Ul(Er({},"__esModule",{value:!0}),n);var K=(n,o,i)=>new Promise((u,m)=>{var S=E=>{try{k(i.next(E))}catch(N){m(N)}},v=E=>{try{k(i.throw(E))}catch(N){m(N)}},k=E=>E.done?u(E.value):Promise.resolve(E.value).then(S,v);k((i=i.apply(n,o)).next())});var Gl=Cr(Wo=>{"use strict";s();Wo.byteLength=Pv;Wo.toByteArray=Rv;Wo.fromByteArray=Mv;var xt=[],ot=[],kv=typeof Uint8Array!="undefined"?Uint8Array:Array,Xs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(mn=0,Bl=Xs.length;mn<Bl;++mn)xt[mn]=Xs[mn],ot[Xs.charCodeAt(mn)]=mn;var mn,Bl;ot["-".charCodeAt(0)]=62;ot["_".charCodeAt(0)]=63;function Wl(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 Pv(n){var o=Wl(n),i=o[0],u=o[1];return(i+u)*3/4-u}function Dv(n,o,i){return(o+i)*3/4-i}function Rv(n){var o,i=Wl(n),u=i[0],m=i[1],S=new kv(Dv(n,u,m)),v=0,k=m>0?u-4:u,E;for(E=0;E<k;E+=4)o=ot[n.charCodeAt(E)]<<18|ot[n.charCodeAt(E+1)]<<12|ot[n.charCodeAt(E+2)]<<6|ot[n.charCodeAt(E+3)],S[v++]=o>>16&255,S[v++]=o>>8&255,S[v++]=o&255;return m===2&&(o=ot[n.charCodeAt(E)]<<2|ot[n.charCodeAt(E+1)]>>4,S[v++]=o&255),m===1&&(o=ot[n.charCodeAt(E)]<<10|ot[n.charCodeAt(E+1)]<<4|ot[n.charCodeAt(E+2)]>>2,S[v++]=o>>8&255,S[v++]=o&255),S}function Nv(n){return xt[n>>18&63]+xt[n>>12&63]+xt[n>>6&63]+xt[n&63]}function Ov(n,o,i){for(var u,m=[],S=o;S<i;S+=3)u=(n[S]<<16&16711680)+(n[S+1]<<8&65280)+(n[S+2]&255),m.push(Nv(u));return m.join("")}function Mv(n){for(var o,i=n.length,u=i%3,m=[],S=16383,v=0,k=i-u;v<k;v+=S)m.push(Ov(n,v,v+S>k?k:v+S));return u===1?(o=n[i-1],m.push(xt[o>>2]+xt[o<<4&63]+"==")):u===2&&(o=(n[i-2]<<8)+n[i-1],m.push(xt[o>>10]+xt[o>>4&63]+xt[o<<2&63]+"=")),m.join("")}});var $l=Cr(Js=>{s();Js.read=function(n,o,i,u,m){var S,v,k=m*8-u-1,E=(1<<k)-1,N=E>>1,V=-7,F=i?m-1:0,fe=i?-1:1,ye=n[o+F];for(F+=fe,S=ye&(1<<-V)-1,ye>>=-V,V+=k;V>0;S=S*256+n[o+F],F+=fe,V-=8);for(v=S&(1<<-V)-1,S>>=-V,V+=u;V>0;v=v*256+n[o+F],F+=fe,V-=8);if(S===0)S=1-N;else{if(S===E)return v?NaN:(ye?-1:1)*(1/0);v=v+Math.pow(2,u),S=S-N}return(ye?-1:1)*v*Math.pow(2,S-u)};Js.write=function(n,o,i,u,m,S){var v,k,E,N=S*8-m-1,V=(1<<N)-1,F=V>>1,fe=m===23?Math.pow(2,-24)-Math.pow(2,-77):0,ye=u?0:S-1,ge=u?1:-1,_e=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(k=isNaN(o)?1:0,v=V):(v=Math.floor(Math.log(o)/Math.LN2),o*(E=Math.pow(2,-v))<1&&(v--,E*=2),v+F>=1?o+=fe/E:o+=fe*Math.pow(2,1-F),o*E>=2&&(v++,E/=2),v+F>=V?(k=0,v=V):v+F>=1?(k=(o*E-1)*Math.pow(2,m),v=v+F):(k=o*Math.pow(2,F-1)*Math.pow(2,m),v=0));m>=8;n[i+ye]=k&255,ye+=ge,k/=256,m-=8);for(v=v<<m|k,N+=m;N>0;n[i+ye]=v&255,ye+=ge,v/=256,N-=8);n[i+ye-ge]|=_e*128}});var tf=Cr($n=>{"use strict";s();var Qs=Gl(),Gn=$l(),Hl=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;$n.Buffer=I;$n.SlowBuffer=$v;$n.INSPECT_MAX_BYTES=50;var Go=2147483647;$n.kMaxLength=Go;I.TYPED_ARRAY_SUPPORT=Fv();!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 Fv(){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 Mt(n){if(n>Go)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 na(n)}return zl(n,o,i)}I.poolSize=8192;function zl(n,o,i){if(typeof n=="string")return Bv(n,o);if(ArrayBuffer.isView(n))return Wv(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(St(n,ArrayBuffer)||n&&St(n.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(St(n,SharedArrayBuffer)||n&&St(n.buffer,SharedArrayBuffer)))return ea(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=Gv(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 Kl(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 Uv(n,o,i){return Kl(n),n<=0?Mt(n):o!==void 0?typeof i=="string"?Mt(n).fill(o,i):Mt(n).fill(o):Mt(n)}I.alloc=function(n,o,i){return Uv(n,o,i)};function na(n){return Kl(n),Mt(n<0?0:ra(n)|0)}I.allocUnsafe=function(n){return na(n)};I.allocUnsafeSlow=function(n){return na(n)};function Bv(n,o){if((typeof o!="string"||o==="")&&(o="utf8"),!I.isEncoding(o))throw new TypeError("Unknown encoding: "+o);var i=Yl(n,o)|0,u=Mt(i),m=u.write(n,o);return m!==i&&(u=u.slice(0,m)),u}function js(n){for(var o=n.length<0?0:ra(n.length)|0,i=Mt(o),u=0;u<o;u+=1)i[u]=n[u]&255;return i}function Wv(n){if(St(n,Uint8Array)){var o=new Uint8Array(n);return ea(o.buffer,o.byteOffset,o.byteLength)}return js(n)}function ea(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 Gv(n){if(I.isBuffer(n)){var o=ra(n.length)|0,i=Mt(o);return i.length===0||n.copy(i,0,0,o),i}if(n.length!==void 0)return typeof n.length!="number"||oa(n.length)?Mt(0):js(n);if(n.type==="Buffer"&&Array.isArray(n.data))return js(n.data)}function ra(n){if(n>=Go)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Go.toString(16)+" bytes");return n|0}function $v(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(St(o,Uint8Array)&&(o=I.from(o,o.offset,o.byteLength)),St(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,S=0,v=Math.min(u,m);S<v;++S)if(o[S]!==i[S]){u=o[S],m=i[S];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),S=0;for(u=0;u<o.length;++u){var v=o[u];if(St(v,Uint8Array))S+v.length>m.length?I.from(v).copy(m,S):Uint8Array.prototype.set.call(m,v,S);else if(I.isBuffer(v))v.copy(m,S);else throw new TypeError('"list" argument must be an Array of Buffers');S+=v.length}return m};function Yl(n,o){if(I.isBuffer(n))return n.length;if(ArrayBuffer.isView(n)||St(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 ta(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i*2;case"hex":return i>>>1;case"base64":return ef(n).length;default:if(m)return u?-1:ta(n).length;o=(""+o).toLowerCase(),m=!0}}I.byteLength=Yl;function Hv(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 jv(this,o,i);case"utf8":case"utf-8":return Xl(this,o,i);case"ascii":return Jv(this,o,i);case"latin1":case"binary":return Qv(this,o,i);case"base64":return Zv(this,o,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e0(this,o,i);default:if(u)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),u=!0}}I.prototype._isBuffer=!0;function Tn(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)Tn(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)Tn(this,i,i+3),Tn(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)Tn(this,i,i+7),Tn(this,i+1,i+6),Tn(this,i+2,i+5),Tn(this,i+3,i+4);return this};I.prototype.toString=function(){var o=this.length;return o===0?"":arguments.length===0?Xl(this,0,o):Hv.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=$n.INSPECT_MAX_BYTES;return o=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(o+=" ... "),"<Buffer "+o+">"};Hl&&(I.prototype[Hl]=I.prototype.inspect);I.prototype.compare=function(o,i,u,m,S){if(St(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),S===void 0&&(S=this.length),i<0||u>o.length||m<0||S>this.length)throw new RangeError("out of range index");if(m>=S&&i>=u)return 0;if(m>=S)return-1;if(i>=u)return 1;if(i>>>=0,u>>>=0,m>>>=0,S>>>=0,this===o)return 0;for(var v=S-m,k=u-i,E=Math.min(v,k),N=this.slice(m,S),V=o.slice(i,u),F=0;F<E;++F)if(N[F]!==V[F]){v=N[F],k=V[F];break}return v<k?-1:k<v?1:0};function Zl(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,oa(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:Vl(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):Vl(n,[o],i,u,m);throw new TypeError("val must be string, number or Buffer")}function Vl(n,o,i,u,m){var S=1,v=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;S=2,v/=2,k/=2,i/=2}function E(ye,ge){return S===1?ye[ge]:ye.readUInt16BE(ge*S)}var N;if(m){var V=-1;for(N=i;N<v;N++)if(E(n,N)===E(o,V===-1?0:N-V)){if(V===-1&&(V=N),N-V+1===k)return V*S}else V!==-1&&(N-=N-V),V=-1}else for(i+k>v&&(i=v-k),N=i;N>=0;N--){for(var F=!0,fe=0;fe<k;fe++)if(E(n,N+fe)!==E(o,fe)){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 Zl(this,o,i,u,!0)};I.prototype.lastIndexOf=function(o,i,u){return Zl(this,o,i,u,!1)};function Vv(n,o,i,u){i=Number(i)||0;var m=n.length-i;u?(u=Number(u),u>m&&(u=m)):u=m;var S=o.length;u>S/2&&(u=S/2);for(var v=0;v<u;++v){var k=parseInt(o.substr(v*2,2),16);if(oa(k))return v;n[i+v]=k}return v}function qv(n,o,i,u){return $o(ta(o,n.length-i),n,i,u)}function zv(n,o,i,u){return $o(r0(o),n,i,u)}function Kv(n,o,i,u){return $o(ef(o),n,i,u)}function Yv(n,o,i,u){return $o(o0(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 S=this.length-i;if((u===void 0||u>S)&&(u=S),o.length>0&&(u<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");m||(m="utf8");for(var v=!1;;)switch(m){case"hex":return Vv(this,o,i,u);case"utf8":case"utf-8":return qv(this,o,i,u);case"ascii":case"latin1":case"binary":return zv(this,o,i,u);case"base64":return Kv(this,o,i,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Yv(this,o,i,u);default:if(v)throw new TypeError("Unknown encoding: "+m);m=(""+m).toLowerCase(),v=!0}};I.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Zv(n,o,i){return o===0&&i===n.length?Qs.fromByteArray(n):Qs.fromByteArray(n.slice(o,i))}function Xl(n,o,i){i=Math.min(n.length,i);for(var u=[],m=o;m<i;){var S=n[m],v=null,k=S>239?4:S>223?3:S>191?2:1;if(m+k<=i){var E,N,V,F;switch(k){case 1:S<128&&(v=S);break;case 2:E=n[m+1],(E&192)===128&&(F=(S&31)<<6|E&63,F>127&&(v=F));break;case 3:E=n[m+1],N=n[m+2],(E&192)===128&&(N&192)===128&&(F=(S&15)<<12|(E&63)<<6|N&63,F>2047&&(F<55296||F>57343)&&(v=F));break;case 4:E=n[m+1],N=n[m+2],V=n[m+3],(E&192)===128&&(N&192)===128&&(V&192)===128&&(F=(S&15)<<18|(E&63)<<12|(N&63)<<6|V&63,F>65535&&F<1114112&&(v=F))}}v===null?(v=65533,k=1):v>65535&&(v-=65536,u.push(v>>>10&1023|55296),v=56320|v&1023),u.push(v),m+=k}return Xv(u)}var ql=4096;function Xv(n){var o=n.length;if(o<=ql)return String.fromCharCode.apply(String,n);for(var i="",u=0;u<o;)i+=String.fromCharCode.apply(String,n.slice(u,u+=ql));return i}function Jv(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 Qv(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 jv(n,o,i){var u=n.length;(!o||o<0)&&(o=0),(!i||i<0||i>u)&&(i=u);for(var m="",S=o;S<i;++S)m+=i0[n[S]];return m}function e0(n,o,i){for(var u=n.slice(o,i),m="",S=0;S<u.length-1;S+=2)m+=String.fromCharCode(u[S]+u[S+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],S=1,v=0;++v<i&&(S*=256);)m+=this[o+v]*S;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],S=1;i>0&&(S*=256);)m+=this[o+--i]*S;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],S=1,v=0;++v<i&&(S*=256);)m+=this[o+v]*S;return S*=128,m>=S&&(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,S=1,v=this[o+--m];m>0&&(S*=256);)v+=this[o+--m]*S;return S*=128,v>=S&&(v-=Math.pow(2,8*i)),v};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),Gn.read(this,o,!0,23,4)};I.prototype.readFloatBE=function(o,i){return o=o>>>0,i||Ae(o,4,this.length),Gn.read(this,o,!1,23,4)};I.prototype.readDoubleLE=function(o,i){return o=o>>>0,i||Ae(o,8,this.length),Gn.read(this,o,!0,52,8)};I.prototype.readDoubleBE=function(o,i){return o=o>>>0,i||Ae(o,8,this.length),Gn.read(this,o,!1,52,8)};function Be(n,o,i,u,m,S){if(!I.isBuffer(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(o>m||o<S)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 S=Math.pow(2,8*u)-1;Be(this,o,i,u,S,0)}var v=1,k=0;for(this[i]=o&255;++k<u&&(v*=256);)this[i+k]=o/v&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 S=Math.pow(2,8*u)-1;Be(this,o,i,u,S,0)}var v=u-1,k=1;for(this[i+v]=o&255;--v>=0&&(k*=256);)this[i+v]=o/k&255;return i+u};I.prototype.writeUint8=I.prototype.writeUInt8=function(o,i,u){return o=+o,i=i>>>0,u||Be(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||Be(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||Be(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||Be(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||Be(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 S=Math.pow(2,8*u-1);Be(this,o,i,u,S-1,-S)}var v=0,k=1,E=0;for(this[i]=o&255;++v<u&&(k*=256);)o<0&&E===0&&this[i+v-1]!==0&&(E=1),this[i+v]=(o/k>>0)-E&255;return i+u};I.prototype.writeIntBE=function(o,i,u,m){if(o=+o,i=i>>>0,!m){var S=Math.pow(2,8*u-1);Be(this,o,i,u,S-1,-S)}var v=u-1,k=1,E=0;for(this[i+v]=o&255;--v>=0&&(k*=256);)o<0&&E===0&&this[i+v+1]!==0&&(E=1),this[i+v]=(o/k>>0)-E&255;return i+u};I.prototype.writeInt8=function(o,i,u){return o=+o,i=i>>>0,u||Be(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||Be(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||Be(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||Be(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||Be(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 Jl(n,o,i,u,m,S){if(i+u>n.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function Ql(n,o,i,u,m){return o=+o,i=i>>>0,m||Jl(n,o,i,4,34028234663852886e22,-34028234663852886e22),Gn.write(n,o,i,u,23,4),i+4}I.prototype.writeFloatLE=function(o,i,u){return Ql(this,o,i,!0,u)};I.prototype.writeFloatBE=function(o,i,u){return Ql(this,o,i,!1,u)};function jl(n,o,i,u,m){return o=+o,i=i>>>0,m||Jl(n,o,i,8,17976931348623157e292,-17976931348623157e292),Gn.write(n,o,i,u,52,8),i+8}I.prototype.writeDoubleLE=function(o,i,u){return jl(this,o,i,!0,u)};I.prototype.writeDoubleBE=function(o,i,u){return jl(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 S=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),S};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 S=o.charCodeAt(0);(m==="utf8"&&S<128||m==="latin1")&&(o=S)}}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 v;if(typeof o=="number")for(v=i;v<u;++v)this[v]=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(v=0;v<u-i;++v)this[v+i]=k[v%E]}return this};var t0=/[^+/0-9A-Za-z-_]/g;function n0(n){if(n=n.split("=")[0],n=n.trim().replace(t0,""),n.length<2)return"";for(;n.length%4!==0;)n=n+"=";return n}function ta(n,o){o=o||1/0;for(var i,u=n.length,m=null,S=[],v=0;v<u;++v){if(i=n.charCodeAt(v),i>55295&&i<57344){if(!m){if(i>56319){(o-=3)>-1&&S.push(239,191,189);continue}else if(v+1===u){(o-=3)>-1&&S.push(239,191,189);continue}m=i;continue}if(i<56320){(o-=3)>-1&&S.push(239,191,189),m=i;continue}i=(m-55296<<10|i-56320)+65536}else m&&(o-=3)>-1&&S.push(239,191,189);if(m=null,i<128){if((o-=1)<0)break;S.push(i)}else if(i<2048){if((o-=2)<0)break;S.push(i>>6|192,i&63|128)}else if(i<65536){if((o-=3)<0)break;S.push(i>>12|224,i>>6&63|128,i&63|128)}else if(i<1114112){if((o-=4)<0)break;S.push(i>>18|240,i>>12&63|128,i>>6&63|128,i&63|128)}else throw new Error("Invalid code point")}return S}function r0(n){for(var o=[],i=0;i<n.length;++i)o.push(n.charCodeAt(i)&255);return o}function o0(n,o){for(var i,u,m,S=[],v=0;v<n.length&&!((o-=2)<0);++v)i=n.charCodeAt(v),u=i>>8,m=i%256,S.push(m),S.push(u);return S}function ef(n){return Qs.toByteArray(n0(n))}function $o(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 St(n,o){return n instanceof o||n!=null&&n.constructor!=null&&n.constructor.name!=null&&n.constructor.name===o.name}function oa(n){return n!==n}var i0=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 af=Cr((bI,sf)=>{s();var he=sf.exports={},vt,wt;function ia(){throw new Error("setTimeout has not been defined")}function sa(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?vt=setTimeout:vt=ia}catch(n){vt=ia}try{typeof clearTimeout=="function"?wt=clearTimeout:wt=sa}catch(n){wt=sa}})();function nf(n){if(vt===setTimeout)return setTimeout(n,0);if((vt===ia||!vt)&&setTimeout)return vt=setTimeout,setTimeout(n,0);try{return vt(n,0)}catch(o){try{return vt.call(null,n,0)}catch(i){return vt.call(this,n,0)}}}function s0(n){if(wt===clearTimeout)return clearTimeout(n);if((wt===sa||!wt)&&clearTimeout)return wt=clearTimeout,clearTimeout(n);try{return wt(n)}catch(o){try{return wt.call(null,n)}catch(i){return wt.call(this,n)}}}var Ft=[],Hn=!1,hn,Ho=-1;function a0(){!Hn||!hn||(Hn=!1,hn.length?Ft=hn.concat(Ft):Ho=-1,Ft.length&&rf())}function rf(){if(!Hn){var n=nf(a0);Hn=!0;for(var o=Ft.length;o;){for(hn=Ft,Ft=[];++Ho<o;)hn&&hn[Ho].run();Ho=-1,o=Ft.length}hn=null,Hn=!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];Ft.push(new of(n,o)),Ft.length===1&&!Hn&&nf(rf)};function of(n,o){this.fun=n,this.array=o}of.prototype.run=function(){this.fun.apply(null,this.array)};he.title="browser";he.browser=!0;he.env={};he.argv=[];he.version="";he.versions={};function Ut(){}he.on=Ut;he.addListener=Ut;he.once=Ut;he.off=Ut;he.removeListener=Ut;he.removeAllListeners=Ut;he.emit=Ut;he.prependListener=Ut;he.prependOnceListener=Ut;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,c0,p,s=W(()=>{d=z(tf()),g=z(af()),c0=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),p=c0});var yn=W(()=>{"use strict";s()});var cf=W(()=>{"use strict";s()});var uf=W(()=>{"use strict";s()});var lf=W(()=>{"use strict";s()});var de=W(()=>{"use strict";s()});var ff=W(()=>{"use strict";s()});var pf=W(()=>{"use strict";s()});var We=W(()=>{"use strict";s()});var df=W(()=>{"use strict";s()});var gf=W(()=>{"use strict";s()});var Ie=W(()=>{"use strict";s();cf();uf();lf();de();ff();pf();We();df();gf()});var aa,mf,qI,Tf,zI,hf,KI,YI,ZI,yf=W(()=>{"use strict";s();Ie();aa={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:mf,egldLabel:qI}=aa["devnet"],{chainId:Tf,egldLabel:zI}=aa["testnet"],{chainId:hf,egldLabel:KI}=aa["mainnet"],YI={["devnet"]:mf,["testnet"]:Tf,["mainnet"]:hf},ZI={[mf]:"devnet",[Tf]:"testnet",[hf]:"mainnet"}});var ca=W(()=>{"use strict";s()});var xf=W(()=>{"use strict";s()});var Vo,ua=W(()=>{"use strict";s();Vo="transaction-status-toast-id"});var At,Sf=W(()=>{"use strict";s();At=require("@multiversx/sdk-web-wallet-provider")});var vf=W(()=>{"use strict";s()});var Pr,qo,wf,zo,Af,Vn,se=W(()=>{"use strict";s();yn();yf();ca();xf();ua();Sf();vf();Pr=5e4,qo=1e9,wf=1,zo="logout",Af="login",Vn="0"});var Dr,Ko=W(()=>{"use strict";s();Dr=()=>Date.now()/1e3});var If=W(()=>{"use strict";s()});var _f=W(()=>{"use strict";s()});var la=W(()=>{"use strict";s();Ko();If();_f()});var pa={};gn(pa,{getItem:()=>l0,localStorageKeys:()=>jt,removeItem:()=>f0,setItem:()=>u0});var jt,fa,u0,l0,f0,qn=W(()=>{"use strict";s();la();jt={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},fa=typeof localStorage!="undefined",u0=({key:n,data:o,expires:i})=>{!fa||localStorage.setItem(String(n),JSON.stringify({expires:i,data:o}))},l0=n=>{if(!fa)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:Dr()>=i.expires?(localStorage.removeItem(String(n)),null):i.data},f0=n=>{!fa||localStorage.removeItem(String(n))}});var da={};gn(da,{clear:()=>Cf,getItem:()=>Lf,removeItem:()=>Ef,setItem:()=>bf,storage:()=>p0});var bf,Lf,Ef,Cf,p0,kf=W(()=>{"use strict";s();bf=({key:n,data:o,expires:i})=>{sessionStorage.setItem(String(n),JSON.stringify({expires:i,data:o}))},Lf=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},Ef=n=>sessionStorage.removeItem(String(n)),Cf=()=>sessionStorage.clear(),p0={setItem:bf,getItem:Lf,removeItem:Ef,clear:Cf}});var xn,zn=W(()=>{"use strict";s();qn();kf();xn={session:da,local:pa}});var ga,Le,It,ke=W(()=>{"use strict";s();ga=require("@reduxjs/toolkit");se();Le=(0,ga.createAction)(zo),It=(0,ga.createAction)(Af,n=>({payload:n}))});var Ta,Pf,Df,Yo,ma,Rf,ha,L_,ya,E_,d0,g0,C_,k_,P_,m0,Zo,Xo=W(()=>{"use strict";s();Ta=require("@multiversx/sdk-core"),Pf=require("@reduxjs/toolkit"),Df=require("redux-persist");se();zn();qn();ke();Yo={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:Vn},ma={address:"",websocketEvent:null,accounts:{"":Yo},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Rf=(0,Pf.createSlice)({name:"accountInfoSlice",initialState:ma,reducers:{setAddress:(n,o)=>{let i=o.payload;n.address=i,n.publicKey=new Ta.Address(i).hex()},setAccount:(n,o)=>{let i=n.address===o.payload.address;n.accounts={[n.address]:i?o.payload:Yo},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(Le,()=>(xn.local.removeItem(jt.loginExpiresAt),ma)),n.addCase(It,(o,i)=>{let{address:u}=i.payload;o.address=u,o.publicKey=new Ta.Address(u).hex()}),n.addCase(Df.REHYDRATE,(o,i)=>{var N;if(!((N=i.payload)!=null&&N.account))return;let{account:u}=i.payload,{address:m,shard:S,accounts:v,publicKey:k}=u;o.address=m,o.shard=S;let E=v&&m in v;o.accounts=E?v:ma.accounts,o.publicKey=k})}}),{setAccount:ha,setAddress:L_,setAccountNonce:ya,setAccountShard:E_,setLedgerAccount:d0,updateLedgerAccount:g0,setWalletConnectAccount:C_,setIsAccountLoading:k_,setAccountLoadingError:P_,setWebsocketEvent:m0}=Rf.actions,Zo=Rf.reducer});function Rr(){return new Date().setHours(new Date().getHours()+24)}function Nr(n){xn.local.setItem({key:jt.loginExpiresAt,data:n,expires:n})}var xa=W(()=>{"use strict";s();zn();qn()});var Of,Nf,Mf,G_,Ff,T0,h0,$_,y0,Uf,H_,Jo,Qo=W(()=>{"use strict";s();Of=require("@reduxjs/toolkit");xa();de();ke();Nf={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},Mf=(0,Of.createSlice)({name:"loginInfoSlice",initialState:Nf,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(Le,()=>Nf),n.addCase(It,(o,i)=>{o.loginMethod=i.payload.loginMethod,Nr(Rr())})}}),{setLoginMethod:G_,setWalletConnectLogin:Ff,setLedgerLogin:T0,setTokenLogin:h0,setTokenLoginSignature:$_,setWalletLogin:y0,invalidateLoginSession:Uf,setLogoutRoute:H_}=Mf.actions,Jo=Mf.reducer});var Wf,Bf,Gf,K_,x0,Y_,S0,jo,ei=W(()=>{"use strict";s();Wf=require("@reduxjs/toolkit");ke();Bf={},Gf=(0,Wf.createSlice)({name:"modalsSlice",initialState:Bf,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(Le,()=>Bf)}}),{setTxSubmittedModal:K_,setNotificationModal:x0,clearTxSubmittedModal:Y_,clearNotificationModal:S0}=Gf.actions,jo=Gf.reducer});var Or=W(()=>{"use strict";s()});var Hf=W(()=>{"use strict";s();Or()});function Sa(n){return n[Math.floor(Math.random()*n.length)]}var Vf=W(()=>{"use strict";s()});var va=W(()=>{"use strict";s();ca()});var Sn=W(()=>{"use strict";s();Hf();Vf();va()});var qf,zf,wa,v0,Kf,ub,lb,ti,ni=W(()=>{"use strict";s();qf=require("@reduxjs/toolkit"),zf=z(require("lodash.omit"));Sn();wa={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},v0={network:wa,chainID:"-1"},Kf=(0,qf.createSlice)({name:"appConfig",initialState:v0,reducers:{initializeNetworkConfig:(n,o)=>{let i=Sa(o.payload.walletConnectBridgeAddresses),u=Sa(o.payload.walletConnectV2RelayAddresses),m=(0,zf.default)(o.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");n.network=Q(O(O({},n.network),m),{walletConnectBridgeAddress:i,walletConnectV2RelayAddress:u})},setChainID:(n,o)=>{n.chainID=o.payload}}}),{initializeNetworkConfig:ub,setChainID:lb}=Kf.actions,ti=Kf.reducer});var Yf,Aa,Zf,Tb,hb,yb,ri,oi=W(()=>{"use strict";s();Yf=require("@reduxjs/toolkit");Ie();ke();Aa={isSigning:!1,signedSessions:{}},Zf=(0,Yf.createSlice)({name:"signedMessageInfoSliceState",initialState:Aa,reducers:{setSignSession:(n,o)=>{let{sessionId:i,signedSession:u,errorMessage:m}=o.payload;return Q(O({},n),{errorMessage:m!=null?m:n.errorMessage,isSigning:u.status==="pending",signedSessions:Q(O({},n.signedSessions),{[i]:u})})},setSignSessionState:(n,o)=>O(O({},n),o.payload),clearSignedMessageInfo:()=>Aa},extraReducers:n=>{n.addCase(Le,()=>Aa)}}),{setSignSession:Tb,clearSignedMessageInfo:hb,setSignSessionState:yb}=Zf.actions,ri=Zf.reducer});var Jf,Qf,Xf,jf,w0,Ia,bb,Lb,Eb,Cb,ii,si=W(()=>{"use strict";s();Jf=require("@reduxjs/toolkit"),Qf=require("redux-persist");ua();Ie();Ko();ke();Xf={customToasts:[],transactionToasts:[],failTransactionToast:null},jf=(0,Jf.createSlice)({name:"toastsSlice",initialState:Xf,reducers:{addCustomToast:(n,o)=>{n.customToasts.push(Q(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:Dr(),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=Q(O({},o.payload),{toastId:Vo})},removeFailTransactionToast:n=>{n.failTransactionToast=null}},extraReducers:n=>{n.addCase(Le,()=>Xf),n.addCase(Qf.REHYDRATE,(o,i)=>{var m,S;let u=(S=(m=i.customToasts)==null?void 0:m.filter(v=>!("component"in v)))!=null?S:[];o.customToasts=u})}}),{addCustomToast:w0,removeCustomToast:Ia,addTransactionToast:bb,removeTransactionToast:Lb,addFailTransactionToast:Eb,removeFailTransactionToast:Cb}=jf.actions,ii=jf.reducer});var ep,ba,La,Ea,A0,_a,tp,Rb,I0,Ca,ai,ci=W(()=>{"use strict";s();ep=require("@reduxjs/toolkit");ke();ba="Transaction failed",La="Transaction successful",Ea="Processing transaction",A0="Transaction submitted",_a={},tp=(0,ep.createSlice)({name:"transactionsInfo",initialState:_a,reducers:{setTransactionsDisplayInfo(n,o){let{sessionId:i,transactionsDisplayInfo:u}=o.payload;i!=null&&(n[i]={errorMessage:(u==null?void 0:u.errorMessage)||ba,successMessage:(u==null?void 0:u.successMessage)||La,processingMessage:(u==null?void 0:u.processingMessage)||Ea,submittedMessage:(u==null?void 0:u.submittedMessage)||A0,transactionDuration:u==null?void 0:u.transactionDuration})},clearTransactionsInfoForSessionId(n,o){o.payload!=null&&delete n[o.payload]},clearTransactionsInfo:()=>_a},extraReducers:n=>{n.addCase(Le,()=>_a)}}),{clearTransactionsInfo:Rb,setTransactionsDisplayInfo:I0,clearTransactionsInfoForSessionId:Ca}=tp.actions,ai=tp.reducer});function Yn(n){return n!=null&&(D0(n)||M0(n))}function Zn(n){return n!=null&&(R0(n)||F0(n))}function Xn(n){return n!=null&&(N0(n)||U0(n))}function ka(n){return n!=null&&O0(n)}function D0(n){return n!=null&&_0.includes(n)}function R0(n){return n!=null&&b0.includes(n)}function N0(n){return n!=null&&L0.includes(n)}function O0(n){return n!=null&&E0.includes(n)}function M0(n){return n!=null&&C0.includes(n)}function F0(n){return n!=null&&k0.includes(n)}function U0(n){return n!=null&&P0.includes(n)}var _0,b0,L0,E0,C0,k0,P0,Jn=W(()=>{"use strict";s();de();_0=["sent"],b0=["success"],L0=["fail","cancelled","timedOut"],E0=["timedOut"],C0=["pending"],k0=["success"],P0=["fail","invalid"]});var np,rp,Mr,B0,op,ip,sp,W0,ui,G0,$0,$b,H0,li,Pa,fi,pi=W(()=>{"use strict";s();np=require("@reduxjs/toolkit"),rp=require("redux-persist");de();Jn();ke();Mr={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},B0={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},op=(0,np.createSlice)({name:"transactionsSlice",initialState:Mr,reducers:{moveTransactionsToSignedState:(n,o)=>{var E,N;let{sessionId:i,transactions:u,errorMessage:m,status:S,redirectRoute:v}=o.payload,k=((E=n.customTransactionInformationForSessionId)==null?void 0:E[i])||B0;n.signedTransactions[i]={transactions:u,status:S,errorMessage:m,redirectRoute:v,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:S}=o.payload;n.signedTransactions[i]!=null&&(n.signedTransactions[i].status=u,m!=null&&(n.signedTransactions[i].errorMessage=m),S!=null&&(n.signedTransactions[i].transactions=S))},updateSignedTransactionStatus:(n,o)=>{var k,E,N,V,F,fe;let{sessionId:i,status:u,errorMessage:m,transactionHash:S}=o.payload,v=(E=(k=n.signedTransactions)==null?void 0:k[i])==null?void 0:E.transactions;if(v!=null){n.signedTransactions[i].transactions=v.map(_e=>_e.hash===S?Q(O({},_e),{status:u,errorMessage:m}):_e);let ye=(V=(N=n.signedTransactions[i])==null?void 0:N.transactions)==null?void 0:V.every(_e=>Zn(_e.status)),ge=(fe=(F=n.signedTransactions[i])==null?void 0:F.transactions)==null?void 0:fe.every(_e=>Xn(_e.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(Le,()=>Mr),n.addCase(rp.REHYDRATE,(o,i)=>{var v;if(o.signTransactionsCancelMessage=null,!((v=i.payload)!=null&&v.transactions))return;let{signedTransactions:u,customTransactionInformationForSessionId:m}=i.payload.transactions,S=Object.entries(u).reduce((k,[E,N])=>{let V=new Date(E),F=new Date;return F.setHours(F.getHours()+5),F-V>0||(k[E]=N),k},{});m!=null&&(o.customTransactionInformationForSessionId=m),u!=null&&(o.signedTransactions=S)})}}),{updateSignedTransactionStatus:ip,updateSignedTransactions:sp,setTransactionsToSign:W0,clearAllTransactionsToSign:ui,clearAllSignedTransactions:G0,clearSignedTransaction:$0,clearTransactionToSign:$b,setSignTransactionsError:H0,setSignTransactionsCancelMessage:li,moveTransactionsToSignedState:Pa}=op.actions,fi=op.reducer});var ae=W(()=>{"use strict";s();Xo();Qo();ei();ni();oi();si();ci();pi()});var Da=W(()=>{"use strict";s()});var fp,lp,pp,Ra,pL,dL,gL,mL,dp,gp,Na=W(()=>{"use strict";s();fp=require("@reduxjs/toolkit");ke();lp={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},pp=(0,fp.createSlice)({name:"dappModalsSlice",initialState:lp,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(Le,()=>lp)}}),{setDappModalVisibility:Ra,setDappModalHeaderVisibility:pL,setDappModalFooterVisibility:dL,setDappModalHeaderText:gL,setDappModalFooterText:mL,setDappModalConfig:dp}=pp.actions,gp=pp.reducer});var mp,K0,Y0,wn,Ti=W(()=>{"use strict";s();mp=require("@reduxjs/toolkit");Da();Xo();Na();Qo();ei();ni();oi();si();ci();pi();K0={["account"]:Zo,["dappModal"]:gp,["loginInfo"]:Jo,["modals"]:jo,["networkConfig"]:ti,["signedMessageInfo"]:ri,["toasts"]:ii,["transactionsInfo"]:ai,["transactions"]:fi},Y0=(n={})=>(0,mp.combineReducers)(O(O({},K0),n)),wn=Y0});var xp={};gn(xp,{default:()=>uw,sessionStorageReducers:()=>Oa});function en(n,o=[]){return{key:n,version:1,storage:hp.default,blacklist:o}}var Ye,Tp,hp,Z0,Ur,X0,J0,Q0,j0,ew,tw,nw,rw,ow,yp,iw,Oa,sw,aw,cw,uw,Sp=W(()=>{"use strict";s();Ye=require("redux-persist"),Tp=z(require("redux-persist/lib/storage")),hp=z(require("redux-persist/lib/storage/session"));Ti();ae();Xo();Qo();ei();ni();oi();si();ci();pi();Da();Z0={persistReducersStorageType:"localStorage"},Ur={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},X0=en(Ur["account"]),J0=en(Ur["loginInfo"]),Q0=en(Ur["modals"]),j0=en(Ur["networkConfig"]),ew={2:n=>Q(O({},n),{networkConfig:wa})};tw=en("sdk-dapp-transactionsInfo"),nw=en("sdk-dapp-transactions",["transactionsToSign"]),rw=en("sdk-dapp-toasts"),ow=en("sdk-dapp-signedMessageInfo"),yp={key:"sdk-dapp-store",version:2,storage:Tp.default,whitelist:Object.keys(Ur),migrate:(0,Ye.createMigrate)(ew,{debug:!1})},iw=Q(O({},yp),{whitelist:[]}),Oa={["toasts"]:(0,Ye.persistReducer)(rw,ii),["transactions"]:(0,Ye.persistReducer)(nw,fi),["transactionsInfo"]:(0,Ye.persistReducer)(tw,ai),["signedMessageInfo"]:(0,Ye.persistReducer)(ow,ri)},sw=Q(O({},Oa),{["account"]:(0,Ye.persistReducer)(X0,Zo),["loginInfo"]:(0,Ye.persistReducer)(J0,Jo),["modals"]:(0,Ye.persistReducer)(Q0,jo),["networkConfig"]:(0,Ye.persistReducer)(j0,ti)}),aw=Z0.persistReducersStorageType==="localStorage",cw=aw?(0,Ye.persistReducer)(yp,wn(Oa)):(0,Ye.persistReducer)(iw,wn(sw)),uw=cw});var vp={};gn(vp,{default:()=>lw});var lw,wp=W(()=>{"use strict";s();Ti();lw=wn()});var Ap={};gn(Ap,{default:()=>pw});var it,fw,pw,Ip=W(()=>{"use strict";s();it=require("redux-persist"),fw=[it.FLUSH,it.REHYDRATE,it.PAUSE,it.PERSIST,it.PURGE,it.REGISTER],pw=fw});var Lp={};gn(Lp,{default:()=>bp});function bp(n){return(0,_p.persistStore)(n)}var _p,Ep=W(()=>{"use strict";s();_p=require("redux-persist")});var Sd=Cr((tr,$r)=>{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",S="Invalid `variable` option passed into `_.template`",v="__lodash_hash_undefined__",k=500,E="__lodash_placeholder__",N=1,V=2,F=4,fe=1,ye=2,ge=1,_e=2,rc=4,dt=8,In=16,gt=32,_n=64,_t=128,ir=256,Li=512,Cd=30,kd="...",Pd=800,Dd=16,oc=1,Rd=2,Nd=3,rn=1/0,$t=9007199254740991,Od=17976931348623157e292,Vr=0/0,mt=4294967295,Md=mt-1,Fd=mt>>>1,Ud=[["ary",_t],["bind",ge],["bindKey",_e],["curry",dt],["curryRight",In],["flip",Li],["partial",gt],["partialRight",_n],["rearg",ir]],bn="[object Arguments]",qr="[object Array]",Bd="[object AsyncFunction]",sr="[object Boolean]",ar="[object Date]",Wd="[object DOMException]",zr="[object Error]",Kr="[object Function]",ic="[object GeneratorFunction]",st="[object Map]",cr="[object Number]",Gd="[object Null]",bt="[object Object]",sc="[object Promise]",$d="[object Proxy]",ur="[object RegExp]",at="[object Set]",lr="[object String]",Yr="[object Symbol]",Hd="[object Undefined]",fr="[object WeakMap]",Vd="[object WeakSet]",pr="[object ArrayBuffer]",Ln="[object DataView]",Ei="[object Float32Array]",Ci="[object Float64Array]",ki="[object Int8Array]",Pi="[object Int16Array]",Di="[object Int32Array]",Ri="[object Uint8Array]",Ni="[object Uint8ClampedArray]",Oi="[object Uint16Array]",Mi="[object Uint32Array]",qd=/\b__p \+= '';/g,zd=/\b(__p \+=) '' \+/g,Kd=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ac=/&(?:amp|lt|gt|quot|#39);/g,cc=/[&<>"']/g,Yd=RegExp(ac.source),Zd=RegExp(cc.source),Xd=/<%-([\s\S]+?)%>/g,Jd=/<%([\s\S]+?)%>/g,uc=/<%=([\s\S]+?)%>/g,Qd=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,jd=/^\w*$/,eg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fi=/[\\^$.*+?()[\]{}|]/g,tg=RegExp(Fi.source),Ui=/^\s+/,ng=/\s/,rg=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,og=/\{\n\/\* \[wrapped with (.+)\] \*/,ig=/,? & /,sg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ag=/[()=,{}\[\]\/\s]/,cg=/\\(\\)?/g,ug=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,lc=/\w*$/,lg=/^[-+]0x[0-9a-f]+$/i,fg=/^0b[01]+$/i,pg=/^\[object .+?Constructor\]$/,dg=/^0o[0-7]+$/i,gg=/^(?:0|[1-9]\d*)$/,mg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Zr=/($^)/,Tg=/['\n\r\u2028\u2029\\]/g,Xr="\\ud800-\\udfff",hg="\\u0300-\\u036f",yg="\\ufe20-\\ufe2f",xg="\\u20d0-\\u20ff",fc=hg+yg+xg,pc="\\u2700-\\u27bf",dc="a-z\\xdf-\\xf6\\xf8-\\xff",Sg="\\xac\\xb1\\xd7\\xf7",vg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",wg="\\u2000-\\u206f",Ag=" \\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",gc="A-Z\\xc0-\\xd6\\xd8-\\xde",mc="\\ufe0e\\ufe0f",Tc=Sg+vg+wg+Ag,Bi="['\u2019]",Ig="["+Xr+"]",hc="["+Tc+"]",Jr="["+fc+"]",yc="\\d+",_g="["+pc+"]",xc="["+dc+"]",Sc="[^"+Xr+Tc+yc+pc+dc+gc+"]",Wi="\\ud83c[\\udffb-\\udfff]",bg="(?:"+Jr+"|"+Wi+")",vc="[^"+Xr+"]",Gi="(?:\\ud83c[\\udde6-\\uddff]){2}",$i="[\\ud800-\\udbff][\\udc00-\\udfff]",En="["+gc+"]",wc="\\u200d",Ac="(?:"+xc+"|"+Sc+")",Lg="(?:"+En+"|"+Sc+")",Ic="(?:"+Bi+"(?:d|ll|m|re|s|t|ve))?",_c="(?:"+Bi+"(?:D|LL|M|RE|S|T|VE))?",bc=bg+"?",Lc="["+mc+"]?",Eg="(?:"+wc+"(?:"+[vc,Gi,$i].join("|")+")"+Lc+bc+")*",Cg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",kg="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ec=Lc+bc+Eg,Pg="(?:"+[_g,Gi,$i].join("|")+")"+Ec,Dg="(?:"+[vc+Jr+"?",Jr,Gi,$i,Ig].join("|")+")",Rg=RegExp(Bi,"g"),Ng=RegExp(Jr,"g"),Hi=RegExp(Wi+"(?="+Wi+")|"+Dg+Ec,"g"),Og=RegExp([En+"?"+xc+"+"+Ic+"(?="+[hc,En,"$"].join("|")+")",Lg+"+"+_c+"(?="+[hc,En+Ac,"$"].join("|")+")",En+"?"+Ac+"+"+Ic,En+"+"+_c,kg,Cg,yc,Pg].join("|"),"g"),Mg=RegExp("["+wc+Xr+fc+mc+"]"),Fg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ug=["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"],Bg=-1,ce={};ce[Ei]=ce[Ci]=ce[ki]=ce[Pi]=ce[Di]=ce[Ri]=ce[Ni]=ce[Oi]=ce[Mi]=!0,ce[bn]=ce[qr]=ce[pr]=ce[sr]=ce[Ln]=ce[ar]=ce[zr]=ce[Kr]=ce[st]=ce[cr]=ce[bt]=ce[ur]=ce[at]=ce[lr]=ce[fr]=!1;var ie={};ie[bn]=ie[qr]=ie[pr]=ie[Ln]=ie[sr]=ie[ar]=ie[Ei]=ie[Ci]=ie[ki]=ie[Pi]=ie[Di]=ie[st]=ie[cr]=ie[bt]=ie[ur]=ie[at]=ie[lr]=ie[Yr]=ie[Ri]=ie[Ni]=ie[Oi]=ie[Mi]=!0,ie[zr]=ie[Kr]=ie[fr]=!1;var Wg={\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"},Gg={"&":"&","<":"<",">":">",'"':""","'":"'"},$g={"&":"&","<":"<",">":">",""":'"',"'":"'"},Hg={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Vg=parseFloat,qg=parseInt,Cc=typeof p=="object"&&p&&p.Object===Object&&p,zg=typeof self=="object"&&self&&self.Object===Object&&self,ve=Cc||zg||Function("return this")(),Vi=typeof tr=="object"&&tr&&!tr.nodeType&&tr,on=Vi&&typeof $r=="object"&&$r&&!$r.nodeType&&$r,kc=on&&on.exports===Vi,qi=kc&&Cc.process,Xe=function(){try{var y=on&&on.require&&on.require("util").types;return y||qi&&qi.binding&&qi.binding("util")}catch(A){}}(),Pc=Xe&&Xe.isArrayBuffer,Dc=Xe&&Xe.isDate,Rc=Xe&&Xe.isMap,Nc=Xe&&Xe.isRegExp,Oc=Xe&&Xe.isSet,Mc=Xe&&Xe.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 Kg(y,A,w,P){for(var G=-1,j=y==null?0:y.length;++G<j;){var xe=y[G];A(P,xe,w(xe),y)}return P}function Je(y,A){for(var w=-1,P=y==null?0:y.length;++w<P&&A(y[w],w,y)!==!1;);return y}function Yg(y,A){for(var w=y==null?0:y.length;w--&&A(y[w],w,y)!==!1;);return y}function Fc(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 Ht(y,A){for(var w=-1,P=y==null?0:y.length,G=0,j=[];++w<P;){var xe=y[w];A(xe,w,y)&&(j[G++]=xe)}return j}function Qr(y,A){var w=y==null?0:y.length;return!!w&&Cn(y,A,0)>-1}function zi(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 Vt(y,A){for(var w=-1,P=A.length,G=y.length;++w<P;)y[G+w]=A[w];return y}function Ki(y,A,w,P){var G=-1,j=y==null?0:y.length;for(P&&j&&(w=y[++G]);++G<j;)w=A(w,y[G],G,y);return w}function Zg(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 Yi(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 Xg=Zi("length");function Jg(y){return y.split("")}function Qg(y){return y.match(sg)||[]}function Uc(y,A,w){var P;return w(y,function(G,j,xe){if(A(G,j,xe))return P=j,!1}),P}function jr(y,A,w,P){for(var G=y.length,j=w+(P?1:-1);P?j--:++j<G;)if(A(y[j],j,y))return j;return-1}function Cn(y,A,w){return A===A?lm(y,A,w):jr(y,Bc,w)}function jg(y,A,w,P){for(var G=w-1,j=y.length;++G<j;)if(P(y[G],A))return G;return-1}function Bc(y){return y!==y}function Wc(y,A){var w=y==null?0:y.length;return w?Ji(y,A)/w:Vr}function Zi(y){return function(A){return A==null?n:A[y]}}function Xi(y){return function(A){return y==null?n:y[A]}}function Gc(y,A,w,P,G){return G(y,function(j,xe,oe){w=P?(P=!1,j):A(w,j,xe,oe)}),w}function em(y,A){var w=y.length;for(y.sort(A);w--;)y[w]=y[w].value;return y}function Ji(y,A){for(var w,P=-1,G=y.length;++P<G;){var j=A(y[P]);j!==n&&(w=w===n?j:w+j)}return w}function Qi(y,A){for(var w=-1,P=Array(y);++w<y;)P[w]=A(w);return P}function tm(y,A){return ue(A,function(w){return[w,y[w]]})}function $c(y){return y&&y.slice(0,zc(y)+1).replace(Ui,"")}function $e(y){return function(A){return y(A)}}function ji(y,A){return ue(A,function(w){return y[w]})}function dr(y,A){return y.has(A)}function Hc(y,A){for(var w=-1,P=y.length;++w<P&&Cn(A,y[w],0)>-1;);return w}function Vc(y,A){for(var w=y.length;w--&&Cn(A,y[w],0)>-1;);return w}function nm(y,A){for(var w=y.length,P=0;w--;)y[w]===A&&++P;return P}var rm=Xi(Wg),om=Xi(Gg);function im(y){return"\\"+Hg[y]}function sm(y,A){return y==null?n:y[A]}function kn(y){return Mg.test(y)}function am(y){return Fg.test(y)}function cm(y){for(var A,w=[];!(A=y.next()).done;)w.push(A.value);return w}function es(y){var A=-1,w=Array(y.size);return y.forEach(function(P,G){w[++A]=[G,P]}),w}function qc(y,A){return function(w){return y(A(w))}}function qt(y,A){for(var w=-1,P=y.length,G=0,j=[];++w<P;){var xe=y[w];(xe===A||xe===E)&&(y[w]=E,j[G++]=w)}return j}function eo(y){var A=-1,w=Array(y.size);return y.forEach(function(P){w[++A]=P}),w}function um(y){var A=-1,w=Array(y.size);return y.forEach(function(P){w[++A]=[P,P]}),w}function lm(y,A,w){for(var P=w-1,G=y.length;++P<G;)if(y[P]===A)return P;return-1}function fm(y,A,w){for(var P=w+1;P--;)if(y[P]===A)return P;return P}function Pn(y){return kn(y)?dm(y):Xg(y)}function ct(y){return kn(y)?gm(y):Jg(y)}function zc(y){for(var A=y.length;A--&&ng.test(y.charAt(A)););return A}var pm=Xi($g);function dm(y){for(var A=Hi.lastIndex=0;Hi.test(y);)++A;return A}function gm(y){return y.match(Hi)||[]}function mm(y){return y.match(Og)||[]}var Tm=function y(A){A=A==null?ve:zt.defaults(ve.Object(),A,zt.pick(ve,Ug));var w=A.Array,P=A.Date,G=A.Error,j=A.Function,xe=A.Math,oe=A.Object,ts=A.RegExp,hm=A.String,Qe=A.TypeError,to=w.prototype,ym=j.prototype,Dn=oe.prototype,no=A["__core-js_shared__"],ro=ym.toString,re=Dn.hasOwnProperty,xm=0,Kc=function(){var e=/[^.]+$/.exec(no&&no.keys&&no.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),oo=Dn.toString,Sm=ro.call(oe),vm=ve._,wm=ts("^"+ro.call(re).replace(Fi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),io=kc?A.Buffer:n,Kt=A.Symbol,so=A.Uint8Array,Yc=io?io.allocUnsafe:n,ao=qc(oe.getPrototypeOf,oe),Zc=oe.create,Xc=Dn.propertyIsEnumerable,co=to.splice,Jc=Kt?Kt.isConcatSpreadable:n,gr=Kt?Kt.iterator:n,sn=Kt?Kt.toStringTag:n,uo=function(){try{var e=fn(oe,"defineProperty");return e({},"",{}),e}catch(t){}}(),Am=A.clearTimeout!==ve.clearTimeout&&A.clearTimeout,Im=P&&P.now!==ve.Date.now&&P.now,_m=A.setTimeout!==ve.setTimeout&&A.setTimeout,lo=xe.ceil,fo=xe.floor,ns=oe.getOwnPropertySymbols,bm=io?io.isBuffer:n,Qc=A.isFinite,Lm=to.join,Em=qc(oe.keys,oe),Se=xe.max,Ee=xe.min,Cm=P.now,km=A.parseInt,jc=xe.random,Pm=to.reverse,rs=fn(A,"DataView"),mr=fn(A,"Map"),os=fn(A,"Promise"),Rn=fn(A,"Set"),Tr=fn(A,"WeakMap"),hr=fn(oe,"create"),po=Tr&&new Tr,Nn={},Dm=pn(rs),Rm=pn(mr),Nm=pn(os),Om=pn(Rn),Mm=pn(Tr),go=Kt?Kt.prototype:n,yr=go?go.valueOf:n,eu=go?go.toString:n;function l(e){if(pe(e)&&!$(e)&&!(e instanceof X)){if(e instanceof je)return e;if(re.call(e,"__wrapped__"))return tl(e)}return new je(e)}var On=function(){function e(){}return function(t){if(!le(t))return{};if(Zc)return Zc(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function mo(){}function je(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}l.templateSettings={escape:Xd,evaluate:Jd,interpolate:uc,variable:"",imports:{_:l}},l.prototype=mo.prototype,l.prototype.constructor=l,je.prototype=On(mo.prototype),je.prototype.constructor=je;function X(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=mt,this.__views__=[]}function Fm(){var e=new X(this.__wrapped__);return e.__actions__=Oe(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Oe(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Oe(this.__views__),e}function Um(){if(this.__filtered__){var e=new X(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Bm(){var e=this.__wrapped__.value(),t=this.__dir__,r=$(e),a=t<0,c=r?e.length:0,f=JT(0,c,this.__views__),T=f.start,h=f.end,x=h-T,_=a?h:T-1,b=this.__iteratees__,L=b.length,C=0,R=Ee(x,this.__takeCount__);if(!r||!a&&c==x&&R==x)return Iu(e,this.__actions__);var U=[];e:for(;x--&&C<R;){_+=t;for(var q=-1,B=e[_];++q<L;){var Z=b[q],J=Z.iteratee,qe=Z.type,Ne=J(B);if(qe==Rd)B=Ne;else if(!Ne){if(qe==oc)continue e;break e}}U[C++]=B}return U}X.prototype=On(mo.prototype),X.prototype.constructor=X;function an(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 Wm(){this.__data__=hr?hr(null):{},this.size=0}function Gm(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function $m(e){var t=this.__data__;if(hr){var r=t[e];return r===v?n:r}return re.call(t,e)?t[e]:n}function Hm(e){var t=this.__data__;return hr?t[e]!==n:re.call(t,e)}function Vm(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=hr&&t===n?v:t,this}an.prototype.clear=Wm,an.prototype.delete=Gm,an.prototype.get=$m,an.prototype.has=Hm,an.prototype.set=Vm;function Lt(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 qm(){this.__data__=[],this.size=0}function zm(e){var t=this.__data__,r=To(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():co.call(t,r,1),--this.size,!0}function Km(e){var t=this.__data__,r=To(t,e);return r<0?n:t[r][1]}function Ym(e){return To(this.__data__,e)>-1}function Zm(e,t){var r=this.__data__,a=To(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}Lt.prototype.clear=qm,Lt.prototype.delete=zm,Lt.prototype.get=Km,Lt.prototype.has=Ym,Lt.prototype.set=Zm;function Et(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 Xm(){this.size=0,this.__data__={hash:new an,map:new(mr||Lt),string:new an}}function Jm(e){var t=Eo(this,e).delete(e);return this.size-=t?1:0,t}function Qm(e){return Eo(this,e).get(e)}function jm(e){return Eo(this,e).has(e)}function eT(e,t){var r=Eo(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}Et.prototype.clear=Xm,Et.prototype.delete=Jm,Et.prototype.get=Qm,Et.prototype.has=jm,Et.prototype.set=eT;function cn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Et;++t<r;)this.add(e[t])}function tT(e){return this.__data__.set(e,v),this}function nT(e){return this.__data__.has(e)}cn.prototype.add=cn.prototype.push=tT,cn.prototype.has=nT;function ut(e){var t=this.__data__=new Lt(e);this.size=t.size}function rT(){this.__data__=new Lt,this.size=0}function oT(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function iT(e){return this.__data__.get(e)}function sT(e){return this.__data__.has(e)}function aT(e,t){var r=this.__data__;if(r instanceof Lt){var a=r.__data__;if(!mr||a.length<i-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new Et(a)}return r.set(e,t),this.size=r.size,this}ut.prototype.clear=rT,ut.prototype.delete=oT,ut.prototype.get=iT,ut.prototype.has=sT,ut.prototype.set=aT;function tu(e,t){var r=$(e),a=!r&&dn(e),c=!r&&!a&&Qt(e),f=!r&&!a&&!c&&Bn(e),T=r||a||c||f,h=T?Qi(e.length,hm):[],x=h.length;for(var _ in e)(t||re.call(e,_))&&!(T&&(_=="length"||c&&(_=="offset"||_=="parent")||f&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||Dt(_,x)))&&h.push(_);return h}function nu(e){var t=e.length;return t?e[ms(0,t-1)]:n}function cT(e,t){return Co(Oe(e),un(t,0,e.length))}function uT(e){return Co(Oe(e))}function is(e,t,r){(r!==n&&!lt(e[t],r)||r===n&&!(t in e))&&Ct(e,t,r)}function xr(e,t,r){var a=e[t];(!(re.call(e,t)&<(a,r))||r===n&&!(t in e))&&Ct(e,t,r)}function To(e,t){for(var r=e.length;r--;)if(lt(e[r][0],t))return r;return-1}function lT(e,t,r,a){return Yt(e,function(c,f,T){t(a,c,r(c),T)}),a}function ru(e,t){return e&&ht(t,we(t),e)}function fT(e,t){return e&&ht(t,Fe(t),e)}function Ct(e,t,r){t=="__proto__"&&uo?uo(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function ss(e,t){for(var r=-1,a=t.length,c=w(a),f=e==null;++r<a;)c[r]=f?n:Ws(e,t[r]);return c}function un(e,t,r){return e===e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function et(e,t,r,a,c,f){var T,h=t&N,x=t&V,_=t&F;if(r&&(T=c?r(e,a,c,f):r(e)),T!==n)return T;if(!le(e))return e;var b=$(e);if(b){if(T=jT(e),!h)return Oe(e,T)}else{var L=Ce(e),C=L==Kr||L==ic;if(Qt(e))return Lu(e,h);if(L==bt||L==bn||C&&!c){if(T=x||C?{}:zu(e),!h)return x?$T(e,fT(T,e)):GT(e,ru(T,e))}else{if(!ie[L])return c?e:{};T=eh(e,L,h)}}f||(f=new ut);var R=f.get(e);if(R)return R;f.set(e,T),vl(e)?e.forEach(function(B){T.add(et(B,t,r,B,e,f))}):xl(e)&&e.forEach(function(B,Z){T.set(Z,et(B,t,r,Z,e,f))});var U=_?x?bs:_s:x?Fe:we,q=b?n:U(e);return Je(q||e,function(B,Z){q&&(Z=B,B=e[Z]),xr(T,Z,et(B,t,r,Z,e,f))}),T}function pT(e){var t=we(e);return function(r){return ou(r,e,t)}}function ou(e,t,r){var a=r.length;if(e==null)return!a;for(e=oe(e);a--;){var c=r[a],f=t[c],T=e[c];if(T===n&&!(c in e)||!f(T))return!1}return!0}function iu(e,t,r){if(typeof e!="function")throw new Qe(m);return br(function(){e.apply(n,r)},t)}function Sr(e,t,r,a){var c=-1,f=Qr,T=!0,h=e.length,x=[],_=t.length;if(!h)return x;r&&(t=ue(t,$e(r))),a?(f=zi,T=!1):t.length>=i&&(f=dr,T=!1,t=new cn(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 f(t,L,a)||x.push(b)}return x}var Yt=Du(Tt),su=Du(cs,!0);function dT(e,t){var r=!0;return Yt(e,function(a,c,f){return r=!!t(a,c,f),r}),r}function ho(e,t,r){for(var a=-1,c=e.length;++a<c;){var f=e[a],T=t(f);if(T!=null&&(h===n?T===T&&!Ve(T):r(T,h)))var h=T,x=f}return x}function gT(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:Al(a);r<a;)e[r++]=t;return e}function au(e,t){var r=[];return Yt(e,function(a,c,f){t(a,c,f)&&r.push(a)}),r}function be(e,t,r,a,c){var f=-1,T=e.length;for(r||(r=nh),c||(c=[]);++f<T;){var h=e[f];t>0&&r(h)?t>1?be(h,t-1,r,a,c):Vt(c,h):a||(c[c.length]=h)}return c}var as=Ru(),cu=Ru(!0);function Tt(e,t){return e&&as(e,t,we)}function cs(e,t){return e&&cu(e,t,we)}function yo(e,t){return Ht(t,function(r){return Rt(e[r])})}function ln(e,t){t=Xt(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[yt(t[r++])];return r&&r==a?e:n}function uu(e,t,r){var a=t(e);return $(e)?a:Vt(a,r(e))}function De(e){return e==null?e===n?Hd:Gd:sn&&sn in oe(e)?XT(e):uh(e)}function us(e,t){return e>t}function mT(e,t){return e!=null&&re.call(e,t)}function TT(e,t){return e!=null&&t in oe(e)}function hT(e,t,r){return e>=Ee(t,r)&&e<Se(t,r)}function ls(e,t,r){for(var a=r?zi:Qr,c=e[0].length,f=e.length,T=f,h=w(f),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 cn(T&&b):n}b=e[0];var L=-1,C=h[0];e:for(;++L<c&&_.length<x;){var R=b[L],U=t?t(R):R;if(R=r||R!==0?R:0,!(C?dr(C,U):a(_,U,r))){for(T=f;--T;){var q=h[T];if(!(q?dr(q,U):a(e[T],U,r)))continue e}C&&C.push(U),_.push(R)}}return _}function yT(e,t,r,a){return Tt(e,function(c,f,T){t(a,r(c),f,T)}),a}function vr(e,t,r){t=Xt(t,e),e=Xu(e,t);var a=e==null?e:e[yt(nt(t))];return a==null?n:Ge(a,e,r)}function lu(e){return pe(e)&&De(e)==bn}function xT(e){return pe(e)&&De(e)==pr}function ST(e){return pe(e)&&De(e)==ar}function wr(e,t,r,a,c){return e===t?!0:e==null||t==null||!pe(e)&&!pe(t)?e!==e&&t!==t:vT(e,t,r,a,wr,c)}function vT(e,t,r,a,c,f){var T=$(e),h=$(t),x=T?qr:Ce(e),_=h?qr:Ce(t);x=x==bn?bt:x,_=_==bn?bt:_;var b=x==bt,L=_==bt,C=x==_;if(C&&Qt(e)){if(!Qt(t))return!1;T=!0,b=!1}if(C&&!b)return f||(f=new ut),T||Bn(e)?Hu(e,t,r,a,c,f):YT(e,t,x,r,a,c,f);if(!(r&fe)){var R=b&&re.call(e,"__wrapped__"),U=L&&re.call(t,"__wrapped__");if(R||U){var q=R?e.value():e,B=U?t.value():t;return f||(f=new ut),c(q,B,r,a,f)}}return C?(f||(f=new ut),ZT(e,t,r,a,c,f)):!1}function wT(e){return pe(e)&&Ce(e)==st}function fs(e,t,r,a){var c=r.length,f=c,T=!a;if(e==null)return!f;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<f;){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 ut;if(a)var C=a(_,b,x,e,t,L);if(!(C===n?wr(b,_,fe|ye,a,L):C))return!1}}return!0}function fu(e){if(!le(e)||oh(e))return!1;var t=Rt(e)?wm:pg;return t.test(pn(e))}function AT(e){return pe(e)&&De(e)==ur}function IT(e){return pe(e)&&Ce(e)==at}function _T(e){return pe(e)&&Oo(e.length)&&!!ce[De(e)]}function pu(e){return typeof e=="function"?e:e==null?Ue:typeof e=="object"?$(e)?mu(e[0],e[1]):gu(e):Nl(e)}function ps(e){if(!_r(e))return Em(e);var t=[];for(var r in oe(e))re.call(e,r)&&r!="constructor"&&t.push(r);return t}function bT(e){if(!le(e))return ch(e);var t=_r(e),r=[];for(var a in e)a=="constructor"&&(t||!re.call(e,a))||r.push(a);return r}function ds(e,t){return e<t}function du(e,t){var r=-1,a=Me(e)?w(e.length):[];return Yt(e,function(c,f,T){a[++r]=t(c,f,T)}),a}function gu(e){var t=Es(e);return t.length==1&&t[0][2]?Yu(t[0][0],t[0][1]):function(r){return r===e||fs(r,e,t)}}function mu(e,t){return ks(e)&&Ku(t)?Yu(yt(e),t):function(r){var a=Ws(r,e);return a===n&&a===t?Gs(r,e):wr(t,a,fe|ye)}}function xo(e,t,r,a,c){e!==t&&as(t,function(f,T){if(c||(c=new ut),le(f))LT(e,t,T,r,xo,a,c);else{var h=a?a(Ds(e,T),f,T+"",e,t,c):n;h===n&&(h=f),is(e,T,h)}},Fe)}function LT(e,t,r,a,c,f,T){var h=Ds(e,r),x=Ds(t,r),_=T.get(x);if(_){is(e,r,_);return}var b=f?f(h,x,r+"",e,t,T):n,L=b===n;if(L){var C=$(x),R=!C&&Qt(x),U=!C&&!R&&Bn(x);b=x,C||R||U?$(h)?b=h:me(h)?b=Oe(h):R?(L=!1,b=Lu(x,!0)):U?(L=!1,b=Eu(x,!0)):b=[]:Lr(x)||dn(x)?(b=h,dn(h)?b=Il(h):(!le(h)||Rt(h))&&(b=zu(x))):L=!1}L&&(T.set(x,b),c(b,x,a,f,T),T.delete(x)),is(e,r,b)}function Tu(e,t){var r=e.length;if(!!r)return t+=t<0?r:0,Dt(t,r)?e[t]:n}function hu(e,t,r){t.length?t=ue(t,function(f){return $(f)?function(T){return ln(T,f.length===1?f[0]:f)}:f}):t=[Ue];var a=-1;t=ue(t,$e(M()));var c=du(e,function(f,T,h){var x=ue(t,function(_){return _(f)});return{criteria:x,index:++a,value:f}});return em(c,function(f,T){return WT(f,T,r)})}function ET(e,t){return yu(e,t,function(r,a){return Gs(e,a)})}function yu(e,t,r){for(var a=-1,c=t.length,f={};++a<c;){var T=t[a],h=ln(e,T);r(h,T)&&Ar(f,Xt(T,e),h)}return f}function CT(e){return function(t){return ln(t,e)}}function gs(e,t,r,a){var c=a?jg:Cn,f=-1,T=t.length,h=e;for(e===t&&(t=Oe(t)),r&&(h=ue(e,$e(r)));++f<T;)for(var x=0,_=t[f],b=r?r(_):_;(x=c(h,b,x,a))>-1;)h!==e&&co.call(h,x,1),co.call(e,x,1);return e}function xu(e,t){for(var r=e?t.length:0,a=r-1;r--;){var c=t[r];if(r==a||c!==f){var f=c;Dt(c)?co.call(e,c,1):ys(e,c)}}return e}function ms(e,t){return e+fo(jc()*(t-e+1))}function kT(e,t,r,a){for(var c=-1,f=Se(lo((t-e)/(r||1)),0),T=w(f);f--;)T[a?f:++c]=e,e+=r;return T}function Ts(e,t){var r="";if(!e||t<1||t>$t)return r;do t%2&&(r+=e),t=fo(t/2),t&&(e+=e);while(t);return r}function Y(e,t){return Rs(Zu(e,t,Ue),e+"")}function PT(e){return nu(Wn(e))}function DT(e,t){var r=Wn(e);return Co(r,un(t,0,r.length))}function Ar(e,t,r,a){if(!le(e))return e;t=Xt(t,e);for(var c=-1,f=t.length,T=f-1,h=e;h!=null&&++c<f;){var x=yt(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:Dt(t[c+1])?[]:{})}xr(h,x,_),h=h[x]}return e}var Su=po?function(e,t){return po.set(e,t),e}:Ue,RT=uo?function(e,t){return uo(e,"toString",{configurable:!0,enumerable:!1,value:Hs(t),writable:!0})}:Ue;function NT(e){return Co(Wn(e))}function tt(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 f=w(c);++a<c;)f[a]=e[a+t];return f}function OT(e,t){var r;return Yt(e,function(a,c,f){return r=t(a,c,f),!r}),!!r}function So(e,t,r){var a=0,c=e==null?a:e.length;if(typeof t=="number"&&t===t&&c<=Fd){for(;a<c;){var f=a+c>>>1,T=e[f];T!==null&&!Ve(T)&&(r?T<=t:T<t)?a=f+1:c=f}return c}return hs(e,t,Ue,r)}function hs(e,t,r,a){var c=0,f=e==null?0:e.length;if(f===0)return 0;t=r(t);for(var T=t!==t,h=t===null,x=Ve(t),_=t===n;c<f;){var b=fo((c+f)/2),L=r(e[b]),C=L!==n,R=L===null,U=L===L,q=Ve(L);if(T)var B=a||U;else _?B=U&&(a||C):h?B=U&&C&&(a||!R):x?B=U&&C&&!R&&(a||!q):R||q?B=!1:B=a?L<=t:L<t;B?c=b+1:f=b}return Ee(f,Md)}function vu(e,t){for(var r=-1,a=e.length,c=0,f=[];++r<a;){var T=e[r],h=t?t(T):T;if(!r||!lt(h,x)){var x=h;f[c++]=T===0?0:T}}return f}function wu(e){return typeof e=="number"?e:Ve(e)?Vr:+e}function He(e){if(typeof e=="string")return e;if($(e))return ue(e,He)+"";if(Ve(e))return eu?eu.call(e):"";var t=e+"";return t=="0"&&1/e==-rn?"-0":t}function Zt(e,t,r){var a=-1,c=Qr,f=e.length,T=!0,h=[],x=h;if(r)T=!1,c=zi;else if(f>=i){var _=t?null:zT(e);if(_)return eo(_);T=!1,c=dr,x=new cn}else x=t?[]:h;e:for(;++a<f;){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 ys(e,t){return t=Xt(t,e),e=Xu(e,t),e==null||delete e[yt(nt(t))]}function Au(e,t,r,a){return Ar(e,t,r(ln(e,t)),a)}function vo(e,t,r,a){for(var c=e.length,f=a?c:-1;(a?f--:++f<c)&&t(e[f],f,e););return r?tt(e,a?0:f,a?f+1:c):tt(e,a?f+1:0,a?c:f)}function Iu(e,t){var r=e;return r instanceof X&&(r=r.value()),Ki(t,function(a,c){return c.func.apply(c.thisArg,Vt([a],c.args))},r)}function xs(e,t,r){var a=e.length;if(a<2)return a?Zt(e[0]):[];for(var c=-1,f=w(a);++c<a;)for(var T=e[c],h=-1;++h<a;)h!=c&&(f[c]=Sr(f[c]||T,e[h],t,r));return Zt(be(f,1),t,r)}function _u(e,t,r){for(var a=-1,c=e.length,f=t.length,T={};++a<c;){var h=a<f?t[a]:n;r(T,e[a],h)}return T}function Ss(e){return me(e)?e:[]}function vs(e){return typeof e=="function"?e:Ue}function Xt(e,t){return $(e)?e:ks(e,t)?[e]:el(te(e))}var MT=Y;function Jt(e,t,r){var a=e.length;return r=r===n?a:r,!t&&r>=a?e:tt(e,t,r)}var bu=Am||function(e){return ve.clearTimeout(e)};function Lu(e,t){if(t)return e.slice();var r=e.length,a=Yc?Yc(r):new e.constructor(r);return e.copy(a),a}function ws(e){var t=new e.constructor(e.byteLength);return new so(t).set(new so(e)),t}function FT(e,t){var r=t?ws(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function UT(e){var t=new e.constructor(e.source,lc.exec(e));return t.lastIndex=e.lastIndex,t}function BT(e){return yr?oe(yr.call(e)):{}}function Eu(e,t){var r=t?ws(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Cu(e,t){if(e!==t){var r=e!==n,a=e===null,c=e===e,f=Ve(e),T=t!==n,h=t===null,x=t===t,_=Ve(t);if(!h&&!_&&!f&&e>t||f&&T&&x&&!h&&!_||a&&T&&x||!r&&x||!c)return 1;if(!a&&!f&&!_&&e<t||_&&r&&c&&!a&&!f||h&&r&&c||!T&&c||!x)return-1}return 0}function WT(e,t,r){for(var a=-1,c=e.criteria,f=t.criteria,T=c.length,h=r.length;++a<T;){var x=Cu(c[a],f[a]);if(x){if(a>=h)return x;var _=r[a];return x*(_=="desc"?-1:1)}}return e.index-t.index}function ku(e,t,r,a){for(var c=-1,f=e.length,T=r.length,h=-1,x=t.length,_=Se(f-T,0),b=w(x+_),L=!a;++h<x;)b[h]=t[h];for(;++c<T;)(L||c<f)&&(b[r[c]]=e[c]);for(;_--;)b[h++]=e[c++];return b}function Pu(e,t,r,a){for(var c=-1,f=e.length,T=-1,h=r.length,x=-1,_=t.length,b=Se(f-h,0),L=w(b+_),C=!a;++c<b;)L[c]=e[c];for(var R=c;++x<_;)L[R+x]=t[x];for(;++T<h;)(C||c<f)&&(L[R+r[T]]=e[c++]);return L}function Oe(e,t){var r=-1,a=e.length;for(t||(t=w(a));++r<a;)t[r]=e[r];return t}function ht(e,t,r,a){var c=!r;r||(r={});for(var f=-1,T=t.length;++f<T;){var h=t[f],x=a?a(r[h],e[h],h,r,e):n;x===n&&(x=e[h]),c?Ct(r,h,x):xr(r,h,x)}return r}function GT(e,t){return ht(e,Cs(e),t)}function $T(e,t){return ht(e,Vu(e),t)}function wo(e,t){return function(r,a){var c=$(r)?Kg:lT,f=t?t():{};return c(r,e,M(a,2),f)}}function Mn(e){return Y(function(t,r){var a=-1,c=r.length,f=c>1?r[c-1]:n,T=c>2?r[2]:n;for(f=e.length>3&&typeof f=="function"?(c--,f):n,T&&Re(r[0],r[1],T)&&(f=c<3?n:f,c=1),t=oe(t);++a<c;){var h=r[a];h&&e(t,h,a,f)}return t})}function Du(e,t){return function(r,a){if(r==null)return r;if(!Me(r))return e(r,a);for(var c=r.length,f=t?c:-1,T=oe(r);(t?f--:++f<c)&&a(T[f],f,T)!==!1;);return r}}function Ru(e){return function(t,r,a){for(var c=-1,f=oe(t),T=a(t),h=T.length;h--;){var x=T[e?h:++c];if(r(f[x],x,f)===!1)break}return t}}function HT(e,t,r){var a=t&ge,c=Ir(e);function f(){var T=this&&this!==ve&&this instanceof f?c:e;return T.apply(a?r:this,arguments)}return f}function Nu(e){return function(t){t=te(t);var r=kn(t)?ct(t):n,a=r?r[0]:t.charAt(0),c=r?Jt(r,1).join(""):t.slice(1);return a[e]()+c}}function Fn(e){return function(t){return Ki(Dl(Pl(t).replace(Rg,"")),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=On(e.prototype),a=e.apply(r,t);return le(a)?a:r}}function VT(e,t,r){var a=Ir(e);function c(){for(var f=arguments.length,T=w(f),h=f,x=Un(c);h--;)T[h]=arguments[h];var _=f<3&&T[0]!==x&&T[f-1]!==x?[]:qt(T,x);if(f-=_.length,f<r)return Bu(e,t,Ao,c.placeholder,n,T,_,n,n,r-f);var b=this&&this!==ve&&this instanceof c?a:e;return Ge(b,this,T)}return c}function Ou(e){return function(t,r,a){var c=oe(t);if(!Me(t)){var f=M(r,3);t=we(t),r=function(h){return f(c[h],h,c)}}var T=e(t,r,a);return T>-1?c[f?t[T]:T]:n}}function Mu(e){return Pt(function(t){var r=t.length,a=r,c=je.prototype.thru;for(e&&t.reverse();a--;){var f=t[a];if(typeof f!="function")throw new Qe(m);if(c&&!T&&Lo(f)=="wrapper")var T=new je([],!0)}for(a=T?a:r;++a<r;){f=t[a];var h=Lo(f),x=h=="wrapper"?Ls(f):n;x&&Ps(x[0])&&x[1]==(_t|dt|gt|ir)&&!x[4].length&&x[9]==1?T=T[Lo(x[0])].apply(T,x[3]):T=f.length==1&&Ps(f)?T[h]():T.thru(f)}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 Ao(e,t,r,a,c,f,T,h,x,_){var b=t&_t,L=t&ge,C=t&_e,R=t&(dt|In),U=t&Li,q=C?n:Ir(e);function B(){for(var Z=arguments.length,J=w(Z),qe=Z;qe--;)J[qe]=arguments[qe];if(R)var Ne=Un(B),ze=nm(J,Ne);if(a&&(J=ku(J,a,c,R)),f&&(J=Pu(J,f,T,R)),Z-=ze,R&&Z<_){var Te=qt(J,Ne);return Bu(e,t,Ao,B.placeholder,r,J,Te,h,x,_-Z)}var ft=L?r:this,Ot=C?ft[e]:e;return Z=J.length,h?J=lh(J,h):U&&Z>1&&J.reverse(),b&&x<Z&&(J.length=x),this&&this!==ve&&this instanceof B&&(Ot=q||Ir(Ot)),Ot.apply(ft,J)}return B}function Fu(e,t){return function(r,a){return yT(r,e,t(a),{})}}function Io(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=wu(r),a=wu(a)),c=e(r,a)}return c}}function As(e){return Pt(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 _o(e,t){t=t===n?" ":He(t);var r=t.length;if(r<2)return r?Ts(t,e):t;var a=Ts(t,lo(e/Pn(t)));return kn(t)?Jt(ct(a),0,e).join(""):a.slice(0,e)}function qT(e,t,r,a){var c=t&ge,f=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?f:e;++_<b;)L[_]=a[_];for(;x--;)L[_++]=arguments[++h];return Ge(C,c?r:this,L)}return T}function Uu(e){return function(t,r,a){return a&&typeof a!="number"&&Re(t,r,a)&&(r=a=n),t=Nt(t),r===n?(r=t,t=0):r=Nt(r),a=a===n?t<r?1:-1:Nt(a),kT(t,r,a,e)}}function bo(e){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=rt(t),r=rt(r)),e(t,r)}}function Bu(e,t,r,a,c,f,T,h,x,_){var b=t&dt,L=b?T:n,C=b?n:T,R=b?f:n,U=b?n:f;t|=b?gt:_n,t&=~(b?_n:gt),t&rc||(t&=~(ge|_e));var q=[e,t,c,R,L,U,C,h,x,_],B=r.apply(n,q);return Ps(e)&&Ju(B,q),B.placeholder=a,Qu(B,e,t)}function Is(e){var t=xe[e];return function(r,a){if(r=rt(r),a=a==null?0:Ee(H(a),292),a&&Qc(r)){var c=(te(r)+"e").split("e"),f=t(c[0]+"e"+(+c[1]+a));return c=(te(f)+"e").split("e"),+(c[0]+"e"+(+c[1]-a))}return t(r)}}var zT=Rn&&1/eo(new Rn([,-0]))[1]==rn?function(e){return new Rn(e)}:zs;function Wu(e){return function(t){var r=Ce(t);return r==st?es(t):r==at?um(t):tm(t,e(t))}}function kt(e,t,r,a,c,f,T,h){var x=t&_e;if(!x&&typeof e!="function")throw new Qe(m);var _=a?a.length:0;if(_||(t&=~(gt|_n),a=c=n),T=T===n?T:Se(H(T),0),h=h===n?h:H(h),_-=c?c.length:0,t&_n){var b=a,L=c;a=c=n}var C=x?n:Ls(e),R=[e,t,r,a,c,b,L,f,T,h];if(C&&ah(R,C),e=R[0],t=R[1],r=R[2],a=R[3],c=R[4],h=R[9]=R[9]===n?x?0:e.length:Se(R[9]-_,0),!h&&t&(dt|In)&&(t&=~(dt|In)),!t||t==ge)var U=HT(e,t,r);else t==dt||t==In?U=VT(e,t,h):(t==gt||t==(ge|gt))&&!c.length?U=qT(e,t,r,a):U=Ao.apply(n,R);var q=C?Su:Ju;return Qu(q(U,R),e,t)}function Gu(e,t,r,a){return e===n||lt(e,Dn[r])&&!re.call(a,r)?t:e}function $u(e,t,r,a,c,f){return le(e)&&le(t)&&(f.set(t,e),xo(e,t,n,$u,f),f.delete(t)),e}function KT(e){return Lr(e)?n:e}function Hu(e,t,r,a,c,f){var T=r&fe,h=e.length,x=t.length;if(h!=x&&!(T&&x>h))return!1;var _=f.get(e),b=f.get(t);if(_&&b)return _==t&&b==e;var L=-1,C=!0,R=r&ye?new cn:n;for(f.set(e,t),f.set(t,e);++L<h;){var U=e[L],q=t[L];if(a)var B=T?a(q,U,L,t,e,f):a(U,q,L,e,t,f);if(B!==n){if(B)continue;C=!1;break}if(R){if(!Yi(t,function(Z,J){if(!dr(R,J)&&(U===Z||c(U,Z,r,a,f)))return R.push(J)})){C=!1;break}}else if(!(U===q||c(U,q,r,a,f))){C=!1;break}}return f.delete(e),f.delete(t),C}function YT(e,t,r,a,c,f,T){switch(r){case Ln:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case pr:return!(e.byteLength!=t.byteLength||!f(new so(e),new so(t)));case sr:case ar:case cr:return lt(+e,+t);case zr:return e.name==t.name&&e.message==t.message;case ur:case lr:return e==t+"";case st:var h=es;case at:var x=a&fe;if(h||(h=eo),e.size!=t.size&&!x)return!1;var _=T.get(e);if(_)return _==t;a|=ye,T.set(e,t);var b=Hu(h(e),h(t),a,c,f,T);return T.delete(e),b;case Yr:if(yr)return yr.call(e)==yr.call(t)}return!1}function ZT(e,t,r,a,c,f){var T=r&fe,h=_s(e),x=h.length,_=_s(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 R=f.get(e),U=f.get(t);if(R&&U)return R==t&&U==e;var q=!0;f.set(e,t),f.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,f):a(Z,J,C,e,t,f);if(!(qe===n?Z===J||c(Z,J,r,a,f):qe)){q=!1;break}B||(B=C=="constructor")}if(q&&!B){var Ne=e.constructor,ze=t.constructor;Ne!=ze&&"constructor"in e&&"constructor"in t&&!(typeof Ne=="function"&&Ne instanceof Ne&&typeof ze=="function"&&ze instanceof ze)&&(q=!1)}return f.delete(e),f.delete(t),q}function Pt(e){return Rs(Zu(e,n,ol),e+"")}function _s(e){return uu(e,we,Cs)}function bs(e){return uu(e,Fe,Vu)}var Ls=po?function(e){return po.get(e)}:zs;function Lo(e){for(var t=e.name+"",r=Nn[t],a=re.call(Nn,t)?r.length:0;a--;){var c=r[a],f=c.func;if(f==null||f==e)return c.name}return t}function Un(e){var t=re.call(l,"placeholder")?l:e;return t.placeholder}function M(){var e=l.iteratee||Vs;return e=e===Vs?pu:e,arguments.length?e(arguments[0],arguments[1]):e}function Eo(e,t){var r=e.__data__;return rh(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Es(e){for(var t=we(e),r=t.length;r--;){var a=t[r],c=e[a];t[r]=[a,c,Ku(c)]}return t}function fn(e,t){var r=sm(e,t);return fu(r)?r:n}function XT(e){var t=re.call(e,sn),r=e[sn];try{e[sn]=n;var a=!0}catch(f){}var c=oo.call(e);return a&&(t?e[sn]=r:delete e[sn]),c}var Cs=ns?function(e){return e==null?[]:(e=oe(e),Ht(ns(e),function(t){return Xc.call(e,t)}))}:Ks,Vu=ns?function(e){for(var t=[];e;)Vt(t,Cs(e)),e=ao(e);return t}:Ks,Ce=De;(rs&&Ce(new rs(new ArrayBuffer(1)))!=Ln||mr&&Ce(new mr)!=st||os&&Ce(os.resolve())!=sc||Rn&&Ce(new Rn)!=at||Tr&&Ce(new Tr)!=fr)&&(Ce=function(e){var t=De(e),r=t==bt?e.constructor:n,a=r?pn(r):"";if(a)switch(a){case Dm:return Ln;case Rm:return st;case Nm:return sc;case Om:return at;case Mm:return fr}return t});function JT(e,t,r){for(var a=-1,c=r.length;++a<c;){var f=r[a],T=f.size;switch(f.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 QT(e){var t=e.match(og);return t?t[1].split(ig):[]}function qu(e,t,r){t=Xt(t,e);for(var a=-1,c=t.length,f=!1;++a<c;){var T=yt(t[a]);if(!(f=e!=null&&r(e,T)))break;e=e[T]}return f||++a!=c?f:(c=e==null?0:e.length,!!c&&Oo(c)&&Dt(T,c)&&($(e)||dn(e)))}function jT(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)?On(ao(e)):{}}function eh(e,t,r){var a=e.constructor;switch(t){case pr:return ws(e);case sr:case ar:return new a(+e);case Ln:return FT(e,r);case Ei:case Ci:case ki:case Pi:case Di:case Ri:case Ni:case Oi:case Mi:return Eu(e,r);case st:return new a;case cr:case lr:return new a(e);case ur:return UT(e);case at:return new a;case Yr:return BT(e)}}function th(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(rg,`{
|
|
1
|
+
"use strict";var bv=Object.create;var Er=Object.defineProperty,Lv=Object.defineProperties,Ev=Object.getOwnPropertyDescriptor,Cv=Object.getOwnPropertyDescriptors,kv=Object.getOwnPropertyNames,Uo=Object.getOwnPropertySymbols,Pv=Object.getPrototypeOf,Zs=Object.prototype.hasOwnProperty,Fl=Object.prototype.propertyIsEnumerable;var Ml=(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={}))Zs.call(o,i)&&Ml(n,i,o[i]);if(Uo)for(var i of Uo(o))Fl.call(o,i)&&Ml(n,i,o[i]);return n},Q=(n,o)=>Lv(n,Cv(o));var Bo=(n,o)=>{var i={};for(var u in n)Zs.call(n,u)&&o.indexOf(u)<0&&(i[u]=n[u]);if(n!=null&&Uo)for(var u of Uo(n))o.indexOf(u)<0&&Fl.call(n,u)&&(i[u]=n[u]);return i};var W=(n,o)=>()=>(n&&(o=n(n=0)),o);var Cr=(n,o)=>()=>(o||n((o={exports:{}}).exports,o),o.exports),gn=(n,o)=>{for(var i in o)Er(n,i,{get:o[i],enumerable:!0})},Ul=(n,o,i,u)=>{if(o&&typeof o=="object"||typeof o=="function")for(let m of kv(o))!Zs.call(n,m)&&m!==i&&Er(n,m,{get:()=>o[m],enumerable:!(u=Ev(o,m))||u.enumerable});return n};var z=(n,o,i)=>(i=n!=null?bv(Pv(n)):{},Ul(o||!n||!n.__esModule?Er(i,"default",{value:n,enumerable:!0}):i,n)),kr=n=>Ul(Er({},"__esModule",{value:!0}),n);var K=(n,o,i)=>new Promise((u,m)=>{var S=E=>{try{k(i.next(E))}catch(N){m(N)}},v=E=>{try{k(i.throw(E))}catch(N){m(N)}},k=E=>E.done?u(E.value):Promise.resolve(E.value).then(S,v);k((i=i.apply(n,o)).next())});var Gl=Cr(Wo=>{"use strict";s();Wo.byteLength=Rv;Wo.toByteArray=Ov;Wo.fromByteArray=Uv;var xt=[],ot=[],Dv=typeof Uint8Array!="undefined"?Uint8Array:Array,Xs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(mn=0,Bl=Xs.length;mn<Bl;++mn)xt[mn]=Xs[mn],ot[Xs.charCodeAt(mn)]=mn;var mn,Bl;ot["-".charCodeAt(0)]=62;ot["_".charCodeAt(0)]=63;function Wl(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 Rv(n){var o=Wl(n),i=o[0],u=o[1];return(i+u)*3/4-u}function Nv(n,o,i){return(o+i)*3/4-i}function Ov(n){var o,i=Wl(n),u=i[0],m=i[1],S=new Dv(Nv(n,u,m)),v=0,k=m>0?u-4:u,E;for(E=0;E<k;E+=4)o=ot[n.charCodeAt(E)]<<18|ot[n.charCodeAt(E+1)]<<12|ot[n.charCodeAt(E+2)]<<6|ot[n.charCodeAt(E+3)],S[v++]=o>>16&255,S[v++]=o>>8&255,S[v++]=o&255;return m===2&&(o=ot[n.charCodeAt(E)]<<2|ot[n.charCodeAt(E+1)]>>4,S[v++]=o&255),m===1&&(o=ot[n.charCodeAt(E)]<<10|ot[n.charCodeAt(E+1)]<<4|ot[n.charCodeAt(E+2)]>>2,S[v++]=o>>8&255,S[v++]=o&255),S}function Mv(n){return xt[n>>18&63]+xt[n>>12&63]+xt[n>>6&63]+xt[n&63]}function Fv(n,o,i){for(var u,m=[],S=o;S<i;S+=3)u=(n[S]<<16&16711680)+(n[S+1]<<8&65280)+(n[S+2]&255),m.push(Mv(u));return m.join("")}function Uv(n){for(var o,i=n.length,u=i%3,m=[],S=16383,v=0,k=i-u;v<k;v+=S)m.push(Fv(n,v,v+S>k?k:v+S));return u===1?(o=n[i-1],m.push(xt[o>>2]+xt[o<<4&63]+"==")):u===2&&(o=(n[i-2]<<8)+n[i-1],m.push(xt[o>>10]+xt[o>>4&63]+xt[o<<2&63]+"=")),m.join("")}});var $l=Cr(Js=>{s();Js.read=function(n,o,i,u,m){var S,v,k=m*8-u-1,E=(1<<k)-1,N=E>>1,V=-7,F=i?m-1:0,fe=i?-1:1,ye=n[o+F];for(F+=fe,S=ye&(1<<-V)-1,ye>>=-V,V+=k;V>0;S=S*256+n[o+F],F+=fe,V-=8);for(v=S&(1<<-V)-1,S>>=-V,V+=u;V>0;v=v*256+n[o+F],F+=fe,V-=8);if(S===0)S=1-N;else{if(S===E)return v?NaN:(ye?-1:1)*(1/0);v=v+Math.pow(2,u),S=S-N}return(ye?-1:1)*v*Math.pow(2,S-u)};Js.write=function(n,o,i,u,m,S){var v,k,E,N=S*8-m-1,V=(1<<N)-1,F=V>>1,fe=m===23?Math.pow(2,-24)-Math.pow(2,-77):0,ye=u?0:S-1,ge=u?1:-1,_e=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(k=isNaN(o)?1:0,v=V):(v=Math.floor(Math.log(o)/Math.LN2),o*(E=Math.pow(2,-v))<1&&(v--,E*=2),v+F>=1?o+=fe/E:o+=fe*Math.pow(2,1-F),o*E>=2&&(v++,E/=2),v+F>=V?(k=0,v=V):v+F>=1?(k=(o*E-1)*Math.pow(2,m),v=v+F):(k=o*Math.pow(2,F-1)*Math.pow(2,m),v=0));m>=8;n[i+ye]=k&255,ye+=ge,k/=256,m-=8);for(v=v<<m|k,N+=m;N>0;n[i+ye]=v&255,ye+=ge,v/=256,N-=8);n[i+ye-ge]|=_e*128}});var tf=Cr($n=>{"use strict";s();var Qs=Gl(),Gn=$l(),Hl=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;$n.Buffer=I;$n.SlowBuffer=Vv;$n.INSPECT_MAX_BYTES=50;var Go=2147483647;$n.kMaxLength=Go;I.TYPED_ARRAY_SUPPORT=Bv();!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 Bv(){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 Mt(n){if(n>Go)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 na(n)}return zl(n,o,i)}I.poolSize=8192;function zl(n,o,i){if(typeof n=="string")return Gv(n,o);if(ArrayBuffer.isView(n))return $v(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(St(n,ArrayBuffer)||n&&St(n.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(St(n,SharedArrayBuffer)||n&&St(n.buffer,SharedArrayBuffer)))return ea(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=Hv(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 Kl(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 Wv(n,o,i){return Kl(n),n<=0?Mt(n):o!==void 0?typeof i=="string"?Mt(n).fill(o,i):Mt(n).fill(o):Mt(n)}I.alloc=function(n,o,i){return Wv(n,o,i)};function na(n){return Kl(n),Mt(n<0?0:ra(n)|0)}I.allocUnsafe=function(n){return na(n)};I.allocUnsafeSlow=function(n){return na(n)};function Gv(n,o){if((typeof o!="string"||o==="")&&(o="utf8"),!I.isEncoding(o))throw new TypeError("Unknown encoding: "+o);var i=Yl(n,o)|0,u=Mt(i),m=u.write(n,o);return m!==i&&(u=u.slice(0,m)),u}function js(n){for(var o=n.length<0?0:ra(n.length)|0,i=Mt(o),u=0;u<o;u+=1)i[u]=n[u]&255;return i}function $v(n){if(St(n,Uint8Array)){var o=new Uint8Array(n);return ea(o.buffer,o.byteOffset,o.byteLength)}return js(n)}function ea(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 Hv(n){if(I.isBuffer(n)){var o=ra(n.length)|0,i=Mt(o);return i.length===0||n.copy(i,0,0,o),i}if(n.length!==void 0)return typeof n.length!="number"||oa(n.length)?Mt(0):js(n);if(n.type==="Buffer"&&Array.isArray(n.data))return js(n.data)}function ra(n){if(n>=Go)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Go.toString(16)+" bytes");return n|0}function Vv(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(St(o,Uint8Array)&&(o=I.from(o,o.offset,o.byteLength)),St(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,S=0,v=Math.min(u,m);S<v;++S)if(o[S]!==i[S]){u=o[S],m=i[S];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),S=0;for(u=0;u<o.length;++u){var v=o[u];if(St(v,Uint8Array))S+v.length>m.length?I.from(v).copy(m,S):Uint8Array.prototype.set.call(m,v,S);else if(I.isBuffer(v))v.copy(m,S);else throw new TypeError('"list" argument must be an Array of Buffers');S+=v.length}return m};function Yl(n,o){if(I.isBuffer(n))return n.length;if(ArrayBuffer.isView(n)||St(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 ta(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i*2;case"hex":return i>>>1;case"base64":return ef(n).length;default:if(m)return u?-1:ta(n).length;o=(""+o).toLowerCase(),m=!0}}I.byteLength=Yl;function qv(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 t0(this,o,i);case"utf8":case"utf-8":return Xl(this,o,i);case"ascii":return jv(this,o,i);case"latin1":case"binary":return e0(this,o,i);case"base64":return Jv(this,o,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n0(this,o,i);default:if(u)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),u=!0}}I.prototype._isBuffer=!0;function Tn(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)Tn(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)Tn(this,i,i+3),Tn(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)Tn(this,i,i+7),Tn(this,i+1,i+6),Tn(this,i+2,i+5),Tn(this,i+3,i+4);return this};I.prototype.toString=function(){var o=this.length;return o===0?"":arguments.length===0?Xl(this,0,o):qv.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=$n.INSPECT_MAX_BYTES;return o=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(o+=" ... "),"<Buffer "+o+">"};Hl&&(I.prototype[Hl]=I.prototype.inspect);I.prototype.compare=function(o,i,u,m,S){if(St(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),S===void 0&&(S=this.length),i<0||u>o.length||m<0||S>this.length)throw new RangeError("out of range index");if(m>=S&&i>=u)return 0;if(m>=S)return-1;if(i>=u)return 1;if(i>>>=0,u>>>=0,m>>>=0,S>>>=0,this===o)return 0;for(var v=S-m,k=u-i,E=Math.min(v,k),N=this.slice(m,S),V=o.slice(i,u),F=0;F<E;++F)if(N[F]!==V[F]){v=N[F],k=V[F];break}return v<k?-1:k<v?1:0};function Zl(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,oa(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:Vl(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):Vl(n,[o],i,u,m);throw new TypeError("val must be string, number or Buffer")}function Vl(n,o,i,u,m){var S=1,v=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;S=2,v/=2,k/=2,i/=2}function E(ye,ge){return S===1?ye[ge]:ye.readUInt16BE(ge*S)}var N;if(m){var V=-1;for(N=i;N<v;N++)if(E(n,N)===E(o,V===-1?0:N-V)){if(V===-1&&(V=N),N-V+1===k)return V*S}else V!==-1&&(N-=N-V),V=-1}else for(i+k>v&&(i=v-k),N=i;N>=0;N--){for(var F=!0,fe=0;fe<k;fe++)if(E(n,N+fe)!==E(o,fe)){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 Zl(this,o,i,u,!0)};I.prototype.lastIndexOf=function(o,i,u){return Zl(this,o,i,u,!1)};function zv(n,o,i,u){i=Number(i)||0;var m=n.length-i;u?(u=Number(u),u>m&&(u=m)):u=m;var S=o.length;u>S/2&&(u=S/2);for(var v=0;v<u;++v){var k=parseInt(o.substr(v*2,2),16);if(oa(k))return v;n[i+v]=k}return v}function Kv(n,o,i,u){return $o(ta(o,n.length-i),n,i,u)}function Yv(n,o,i,u){return $o(i0(o),n,i,u)}function Zv(n,o,i,u){return $o(ef(o),n,i,u)}function Xv(n,o,i,u){return $o(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 S=this.length-i;if((u===void 0||u>S)&&(u=S),o.length>0&&(u<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");m||(m="utf8");for(var v=!1;;)switch(m){case"hex":return zv(this,o,i,u);case"utf8":case"utf-8":return Kv(this,o,i,u);case"ascii":case"latin1":case"binary":return Yv(this,o,i,u);case"base64":return Zv(this,o,i,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Xv(this,o,i,u);default:if(v)throw new TypeError("Unknown encoding: "+m);m=(""+m).toLowerCase(),v=!0}};I.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Jv(n,o,i){return o===0&&i===n.length?Qs.fromByteArray(n):Qs.fromByteArray(n.slice(o,i))}function Xl(n,o,i){i=Math.min(n.length,i);for(var u=[],m=o;m<i;){var S=n[m],v=null,k=S>239?4:S>223?3:S>191?2:1;if(m+k<=i){var E,N,V,F;switch(k){case 1:S<128&&(v=S);break;case 2:E=n[m+1],(E&192)===128&&(F=(S&31)<<6|E&63,F>127&&(v=F));break;case 3:E=n[m+1],N=n[m+2],(E&192)===128&&(N&192)===128&&(F=(S&15)<<12|(E&63)<<6|N&63,F>2047&&(F<55296||F>57343)&&(v=F));break;case 4:E=n[m+1],N=n[m+2],V=n[m+3],(E&192)===128&&(N&192)===128&&(V&192)===128&&(F=(S&15)<<18|(E&63)<<12|(N&63)<<6|V&63,F>65535&&F<1114112&&(v=F))}}v===null?(v=65533,k=1):v>65535&&(v-=65536,u.push(v>>>10&1023|55296),v=56320|v&1023),u.push(v),m+=k}return Qv(u)}var ql=4096;function Qv(n){var o=n.length;if(o<=ql)return String.fromCharCode.apply(String,n);for(var i="",u=0;u<o;)i+=String.fromCharCode.apply(String,n.slice(u,u+=ql));return i}function jv(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 e0(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 t0(n,o,i){var u=n.length;(!o||o<0)&&(o=0),(!i||i<0||i>u)&&(i=u);for(var m="",S=o;S<i;++S)m+=a0[n[S]];return m}function n0(n,o,i){for(var u=n.slice(o,i),m="",S=0;S<u.length-1;S+=2)m+=String.fromCharCode(u[S]+u[S+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],S=1,v=0;++v<i&&(S*=256);)m+=this[o+v]*S;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],S=1;i>0&&(S*=256);)m+=this[o+--i]*S;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],S=1,v=0;++v<i&&(S*=256);)m+=this[o+v]*S;return S*=128,m>=S&&(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,S=1,v=this[o+--m];m>0&&(S*=256);)v+=this[o+--m]*S;return S*=128,v>=S&&(v-=Math.pow(2,8*i)),v};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),Gn.read(this,o,!0,23,4)};I.prototype.readFloatBE=function(o,i){return o=o>>>0,i||Ae(o,4,this.length),Gn.read(this,o,!1,23,4)};I.prototype.readDoubleLE=function(o,i){return o=o>>>0,i||Ae(o,8,this.length),Gn.read(this,o,!0,52,8)};I.prototype.readDoubleBE=function(o,i){return o=o>>>0,i||Ae(o,8,this.length),Gn.read(this,o,!1,52,8)};function Be(n,o,i,u,m,S){if(!I.isBuffer(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(o>m||o<S)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 S=Math.pow(2,8*u)-1;Be(this,o,i,u,S,0)}var v=1,k=0;for(this[i]=o&255;++k<u&&(v*=256);)this[i+k]=o/v&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 S=Math.pow(2,8*u)-1;Be(this,o,i,u,S,0)}var v=u-1,k=1;for(this[i+v]=o&255;--v>=0&&(k*=256);)this[i+v]=o/k&255;return i+u};I.prototype.writeUint8=I.prototype.writeUInt8=function(o,i,u){return o=+o,i=i>>>0,u||Be(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||Be(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||Be(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||Be(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||Be(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 S=Math.pow(2,8*u-1);Be(this,o,i,u,S-1,-S)}var v=0,k=1,E=0;for(this[i]=o&255;++v<u&&(k*=256);)o<0&&E===0&&this[i+v-1]!==0&&(E=1),this[i+v]=(o/k>>0)-E&255;return i+u};I.prototype.writeIntBE=function(o,i,u,m){if(o=+o,i=i>>>0,!m){var S=Math.pow(2,8*u-1);Be(this,o,i,u,S-1,-S)}var v=u-1,k=1,E=0;for(this[i+v]=o&255;--v>=0&&(k*=256);)o<0&&E===0&&this[i+v+1]!==0&&(E=1),this[i+v]=(o/k>>0)-E&255;return i+u};I.prototype.writeInt8=function(o,i,u){return o=+o,i=i>>>0,u||Be(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||Be(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||Be(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||Be(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||Be(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 Jl(n,o,i,u,m,S){if(i+u>n.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function Ql(n,o,i,u,m){return o=+o,i=i>>>0,m||Jl(n,o,i,4,34028234663852886e22,-34028234663852886e22),Gn.write(n,o,i,u,23,4),i+4}I.prototype.writeFloatLE=function(o,i,u){return Ql(this,o,i,!0,u)};I.prototype.writeFloatBE=function(o,i,u){return Ql(this,o,i,!1,u)};function jl(n,o,i,u,m){return o=+o,i=i>>>0,m||Jl(n,o,i,8,17976931348623157e292,-17976931348623157e292),Gn.write(n,o,i,u,52,8),i+8}I.prototype.writeDoubleLE=function(o,i,u){return jl(this,o,i,!0,u)};I.prototype.writeDoubleBE=function(o,i,u){return jl(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 S=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),S};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 S=o.charCodeAt(0);(m==="utf8"&&S<128||m==="latin1")&&(o=S)}}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 v;if(typeof o=="number")for(v=i;v<u;++v)this[v]=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(v=0;v<u-i;++v)this[v+i]=k[v%E]}return this};var r0=/[^+/0-9A-Za-z-_]/g;function o0(n){if(n=n.split("=")[0],n=n.trim().replace(r0,""),n.length<2)return"";for(;n.length%4!==0;)n=n+"=";return n}function ta(n,o){o=o||1/0;for(var i,u=n.length,m=null,S=[],v=0;v<u;++v){if(i=n.charCodeAt(v),i>55295&&i<57344){if(!m){if(i>56319){(o-=3)>-1&&S.push(239,191,189);continue}else if(v+1===u){(o-=3)>-1&&S.push(239,191,189);continue}m=i;continue}if(i<56320){(o-=3)>-1&&S.push(239,191,189),m=i;continue}i=(m-55296<<10|i-56320)+65536}else m&&(o-=3)>-1&&S.push(239,191,189);if(m=null,i<128){if((o-=1)<0)break;S.push(i)}else if(i<2048){if((o-=2)<0)break;S.push(i>>6|192,i&63|128)}else if(i<65536){if((o-=3)<0)break;S.push(i>>12|224,i>>6&63|128,i&63|128)}else if(i<1114112){if((o-=4)<0)break;S.push(i>>18|240,i>>12&63|128,i>>6&63|128,i&63|128)}else throw new Error("Invalid code point")}return S}function i0(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,S=[],v=0;v<n.length&&!((o-=2)<0);++v)i=n.charCodeAt(v),u=i>>8,m=i%256,S.push(m),S.push(u);return S}function ef(n){return Qs.toByteArray(o0(n))}function $o(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 St(n,o){return n instanceof o||n!=null&&n.constructor!=null&&n.constructor.name!=null&&n.constructor.name===o.name}function oa(n){return n!==n}var a0=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 af=Cr((EI,sf)=>{s();var he=sf.exports={},vt,wt;function ia(){throw new Error("setTimeout has not been defined")}function sa(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?vt=setTimeout:vt=ia}catch(n){vt=ia}try{typeof clearTimeout=="function"?wt=clearTimeout:wt=sa}catch(n){wt=sa}})();function nf(n){if(vt===setTimeout)return setTimeout(n,0);if((vt===ia||!vt)&&setTimeout)return vt=setTimeout,setTimeout(n,0);try{return vt(n,0)}catch(o){try{return vt.call(null,n,0)}catch(i){return vt.call(this,n,0)}}}function c0(n){if(wt===clearTimeout)return clearTimeout(n);if((wt===sa||!wt)&&clearTimeout)return wt=clearTimeout,clearTimeout(n);try{return wt(n)}catch(o){try{return wt.call(null,n)}catch(i){return wt.call(this,n)}}}var Ft=[],Hn=!1,hn,Ho=-1;function u0(){!Hn||!hn||(Hn=!1,hn.length?Ft=hn.concat(Ft):Ho=-1,Ft.length&&rf())}function rf(){if(!Hn){var n=nf(u0);Hn=!0;for(var o=Ft.length;o;){for(hn=Ft,Ft=[];++Ho<o;)hn&&hn[Ho].run();Ho=-1,o=Ft.length}hn=null,Hn=!1,c0(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];Ft.push(new of(n,o)),Ft.length===1&&!Hn&&nf(rf)};function of(n,o){this.fun=n,this.array=o}of.prototype.run=function(){this.fun.apply(null,this.array)};he.title="browser";he.browser=!0;he.env={};he.argv=[];he.version="";he.versions={};function Ut(){}he.on=Ut;he.addListener=Ut;he.once=Ut;he.off=Ut;he.removeListener=Ut;he.removeAllListeners=Ut;he.emit=Ut;he.prependListener=Ut;he.prependOnceListener=Ut;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,l0,p,s=W(()=>{d=z(tf()),g=z(af()),l0=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),p=l0});var yn=W(()=>{"use strict";s()});var cf=W(()=>{"use strict";s()});var uf=W(()=>{"use strict";s()});var lf=W(()=>{"use strict";s()});var de=W(()=>{"use strict";s()});var ff=W(()=>{"use strict";s()});var pf=W(()=>{"use strict";s()});var We=W(()=>{"use strict";s()});var df=W(()=>{"use strict";s()});var gf=W(()=>{"use strict";s()});var Ie=W(()=>{"use strict";s();cf();uf();lf();de();ff();pf();We();df();gf()});var aa,mf,KI,Tf,YI,hf,ZI,XI,JI,yf=W(()=>{"use strict";s();Ie();aa={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:mf,egldLabel:KI}=aa["devnet"],{chainId:Tf,egldLabel:YI}=aa["testnet"],{chainId:hf,egldLabel:ZI}=aa["mainnet"],XI={["devnet"]:mf,["testnet"]:Tf,["mainnet"]:hf},JI={[mf]:"devnet",[Tf]:"testnet",[hf]:"mainnet"}});var ca=W(()=>{"use strict";s()});var xf=W(()=>{"use strict";s()});var Vo,ua=W(()=>{"use strict";s();Vo="transaction-status-toast-id"});var At,Sf=W(()=>{"use strict";s();At=require("@multiversx/sdk-web-wallet-provider")});var vf=W(()=>{"use strict";s()});var Pr,qo,wf,zo,Af,Vn,se=W(()=>{"use strict";s();yn();yf();ca();xf();ua();Sf();vf();Pr=5e4,qo=1e9,wf=1,zo="logout",Af="login",Vn="0"});var Dr,Ko=W(()=>{"use strict";s();Dr=()=>Date.now()/1e3});var If=W(()=>{"use strict";s()});var _f=W(()=>{"use strict";s()});var la=W(()=>{"use strict";s();Ko();If();_f()});var pa={};gn(pa,{getItem:()=>p0,localStorageKeys:()=>jt,removeItem:()=>d0,setItem:()=>f0});var jt,fa,f0,p0,d0,qn=W(()=>{"use strict";s();la();jt={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},fa=typeof localStorage!="undefined",f0=({key:n,data:o,expires:i})=>{!fa||localStorage.setItem(String(n),JSON.stringify({expires:i,data:o}))},p0=n=>{if(!fa)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:Dr()>=i.expires?(localStorage.removeItem(String(n)),null):i.data},d0=n=>{!fa||localStorage.removeItem(String(n))}});var da={};gn(da,{clear:()=>Cf,getItem:()=>Lf,removeItem:()=>Ef,setItem:()=>bf,storage:()=>g0});var bf,Lf,Ef,Cf,g0,kf=W(()=>{"use strict";s();bf=({key:n,data:o,expires:i})=>{sessionStorage.setItem(String(n),JSON.stringify({expires:i,data:o}))},Lf=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},Ef=n=>sessionStorage.removeItem(String(n)),Cf=()=>sessionStorage.clear(),g0={setItem:bf,getItem:Lf,removeItem:Ef,clear:Cf}});var xn,zn=W(()=>{"use strict";s();qn();kf();xn={session:da,local:pa}});var ga,Le,It,ke=W(()=>{"use strict";s();ga=require("@reduxjs/toolkit");se();Le=(0,ga.createAction)(zo),It=(0,ga.createAction)(Af,n=>({payload:n}))});var Ta,Pf,Df,Yo,ma,Rf,ha,C_,ya,k_,m0,T0,P_,D_,R_,h0,Zo,Xo=W(()=>{"use strict";s();Ta=require("@multiversx/sdk-core"),Pf=require("@reduxjs/toolkit"),Df=require("redux-persist");se();zn();qn();ke();Yo={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:Vn},ma={address:"",websocketEvent:null,accounts:{"":Yo},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Rf=(0,Pf.createSlice)({name:"accountInfoSlice",initialState:ma,reducers:{setAddress:(n,o)=>{let i=o.payload;n.address=i,n.publicKey=new Ta.Address(i).hex()},setAccount:(n,o)=>{let i=n.address===o.payload.address;n.accounts={[n.address]:i?o.payload:Yo},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(Le,()=>(xn.local.removeItem(jt.loginExpiresAt),ma)),n.addCase(It,(o,i)=>{let{address:u}=i.payload;o.address=u,o.publicKey=new Ta.Address(u).hex()}),n.addCase(Df.REHYDRATE,(o,i)=>{var N;if(!((N=i.payload)!=null&&N.account))return;let{account:u}=i.payload,{address:m,shard:S,accounts:v,publicKey:k}=u;o.address=m,o.shard=S;let E=v&&m in v;o.accounts=E?v:ma.accounts,o.publicKey=k})}}),{setAccount:ha,setAddress:C_,setAccountNonce:ya,setAccountShard:k_,setLedgerAccount:m0,updateLedgerAccount:T0,setWalletConnectAccount:P_,setIsAccountLoading:D_,setAccountLoadingError:R_,setWebsocketEvent:h0}=Rf.actions,Zo=Rf.reducer});function Rr(){return new Date().setHours(new Date().getHours()+24)}function Nr(n){xn.local.setItem({key:jt.loginExpiresAt,data:n,expires:n})}var xa=W(()=>{"use strict";s();zn();qn()});var Of,Nf,Mf,H_,Ff,y0,x0,V_,S0,Uf,q_,Jo,Qo=W(()=>{"use strict";s();Of=require("@reduxjs/toolkit");xa();de();ke();Nf={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},Mf=(0,Of.createSlice)({name:"loginInfoSlice",initialState:Nf,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(Le,()=>Nf),n.addCase(It,(o,i)=>{o.loginMethod=i.payload.loginMethod,Nr(Rr())})}}),{setLoginMethod:H_,setWalletConnectLogin:Ff,setLedgerLogin:y0,setTokenLogin:x0,setTokenLoginSignature:V_,setWalletLogin:S0,invalidateLoginSession:Uf,setLogoutRoute:q_}=Mf.actions,Jo=Mf.reducer});var Wf,Bf,Gf,Z_,v0,X_,w0,jo,ei=W(()=>{"use strict";s();Wf=require("@reduxjs/toolkit");ke();Bf={},Gf=(0,Wf.createSlice)({name:"modalsSlice",initialState:Bf,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(Le,()=>Bf)}}),{setTxSubmittedModal:Z_,setNotificationModal:v0,clearTxSubmittedModal:X_,clearNotificationModal:w0}=Gf.actions,jo=Gf.reducer});var Or=W(()=>{"use strict";s()});var Hf=W(()=>{"use strict";s();Or()});function Sa(n){return n[Math.floor(Math.random()*n.length)]}var Vf=W(()=>{"use strict";s()});var va=W(()=>{"use strict";s();ca()});var Sn=W(()=>{"use strict";s();Hf();Vf();va()});var qf,zf,wa,A0,Kf,fb,pb,ti,ni=W(()=>{"use strict";s();qf=require("@reduxjs/toolkit"),zf=z(require("lodash.omit"));Sn();wa={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},A0={network:wa,chainID:"-1"},Kf=(0,qf.createSlice)({name:"appConfig",initialState:A0,reducers:{initializeNetworkConfig:(n,o)=>{let i=Sa(o.payload.walletConnectBridgeAddresses),u=Sa(o.payload.walletConnectV2RelayAddresses),m=(0,zf.default)(o.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");n.network=Q(O(O({},n.network),m),{walletConnectBridgeAddress:i,walletConnectV2RelayAddress:u})},setChainID:(n,o)=>{n.chainID=o.payload}}}),{initializeNetworkConfig:fb,setChainID:pb}=Kf.actions,ti=Kf.reducer});var Yf,Aa,Zf,yb,xb,Sb,ri,oi=W(()=>{"use strict";s();Yf=require("@reduxjs/toolkit");Ie();ke();Aa={isSigning:!1,signedSessions:{}},Zf=(0,Yf.createSlice)({name:"signedMessageInfoSliceState",initialState:Aa,reducers:{setSignSession:(n,o)=>{let{sessionId:i,signedSession:u,errorMessage:m}=o.payload;return Q(O({},n),{errorMessage:m!=null?m:n.errorMessage,isSigning:u.status==="pending",signedSessions:Q(O({},n.signedSessions),{[i]:u})})},setSignSessionState:(n,o)=>O(O({},n),o.payload),clearSignedMessageInfo:()=>Aa},extraReducers:n=>{n.addCase(Le,()=>Aa)}}),{setSignSession:yb,clearSignedMessageInfo:xb,setSignSessionState:Sb}=Zf.actions,ri=Zf.reducer});var Jf,Qf,Xf,jf,I0,Ia,Eb,Cb,kb,Pb,ii,si=W(()=>{"use strict";s();Jf=require("@reduxjs/toolkit"),Qf=require("redux-persist");ua();Ie();Ko();ke();Xf={customToasts:[],transactionToasts:[],failTransactionToast:null},jf=(0,Jf.createSlice)({name:"toastsSlice",initialState:Xf,reducers:{addCustomToast:(n,o)=>{n.customToasts.push(Q(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:Dr(),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=Q(O({},o.payload),{toastId:Vo})},removeFailTransactionToast:n=>{n.failTransactionToast=null}},extraReducers:n=>{n.addCase(Le,()=>Xf),n.addCase(Qf.REHYDRATE,(o,i)=>{var m,S;let u=(S=(m=i.customToasts)==null?void 0:m.filter(v=>!("component"in v)))!=null?S:[];o.customToasts=u})}}),{addCustomToast:I0,removeCustomToast:Ia,addTransactionToast:Eb,removeTransactionToast:Cb,addFailTransactionToast:kb,removeFailTransactionToast:Pb}=jf.actions,ii=jf.reducer});var ep,ba,La,Ea,_0,_a,tp,Ob,b0,Ca,ai,ci=W(()=>{"use strict";s();ep=require("@reduxjs/toolkit");ke();ba="Transaction failed",La="Transaction successful",Ea="Processing transaction",_0="Transaction submitted",_a={},tp=(0,ep.createSlice)({name:"transactionsInfo",initialState:_a,reducers:{setTransactionsDisplayInfo(n,o){let{sessionId:i,transactionsDisplayInfo:u}=o.payload;i!=null&&(n[i]={errorMessage:(u==null?void 0:u.errorMessage)||ba,successMessage:(u==null?void 0:u.successMessage)||La,processingMessage:(u==null?void 0:u.processingMessage)||Ea,submittedMessage:(u==null?void 0:u.submittedMessage)||_0,transactionDuration:u==null?void 0:u.transactionDuration})},clearTransactionsInfoForSessionId(n,o){o.payload!=null&&delete n[o.payload]},clearTransactionsInfo:()=>_a},extraReducers:n=>{n.addCase(Le,()=>_a)}}),{clearTransactionsInfo:Ob,setTransactionsDisplayInfo:b0,clearTransactionsInfoForSessionId:Ca}=tp.actions,ai=tp.reducer});function Yn(n){return n!=null&&(N0(n)||U0(n))}function Zn(n){return n!=null&&(O0(n)||B0(n))}function Xn(n){return n!=null&&(M0(n)||W0(n))}function ka(n){return n!=null&&F0(n)}function N0(n){return n!=null&&L0.includes(n)}function O0(n){return n!=null&&E0.includes(n)}function M0(n){return n!=null&&C0.includes(n)}function F0(n){return n!=null&&k0.includes(n)}function U0(n){return n!=null&&P0.includes(n)}function B0(n){return n!=null&&D0.includes(n)}function W0(n){return n!=null&&R0.includes(n)}var L0,E0,C0,k0,P0,D0,R0,Jn=W(()=>{"use strict";s();de();L0=["sent"],E0=["success"],C0=["fail","cancelled","timedOut"],k0=["timedOut"],P0=["pending"],D0=["success"],R0=["fail","invalid"]});var np,rp,Mr,G0,op,ip,sp,$0,ui,H0,V0,Vb,q0,li,Pa,fi,pi=W(()=>{"use strict";s();np=require("@reduxjs/toolkit"),rp=require("redux-persist");de();Jn();ke();Mr={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},G0={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},op=(0,np.createSlice)({name:"transactionsSlice",initialState:Mr,reducers:{moveTransactionsToSignedState:(n,o)=>{var E,N;let{sessionId:i,transactions:u,errorMessage:m,status:S,redirectRoute:v}=o.payload,k=((E=n.customTransactionInformationForSessionId)==null?void 0:E[i])||G0;n.signedTransactions[i]={transactions:u,status:S,errorMessage:m,redirectRoute:v,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:S}=o.payload;n.signedTransactions[i]!=null&&(n.signedTransactions[i].status=u,m!=null&&(n.signedTransactions[i].errorMessage=m),S!=null&&(n.signedTransactions[i].transactions=S))},updateSignedTransactionStatus:(n,o)=>{var k,E,N,V,F,fe;let{sessionId:i,status:u,errorMessage:m,transactionHash:S}=o.payload,v=(E=(k=n.signedTransactions)==null?void 0:k[i])==null?void 0:E.transactions;if(v!=null){n.signedTransactions[i].transactions=v.map(_e=>_e.hash===S?Q(O({},_e),{status:u,errorMessage:m}):_e);let ye=(V=(N=n.signedTransactions[i])==null?void 0:N.transactions)==null?void 0:V.every(_e=>Zn(_e.status)),ge=(fe=(F=n.signedTransactions[i])==null?void 0:F.transactions)==null?void 0:fe.every(_e=>Xn(_e.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(Le,()=>Mr),n.addCase(rp.REHYDRATE,(o,i)=>{var v;if(o.signTransactionsCancelMessage=null,!((v=i.payload)!=null&&v.transactions))return;let{signedTransactions:u,customTransactionInformationForSessionId:m}=i.payload.transactions,S=Object.entries(u).reduce((k,[E,N])=>{let V=new Date(E),F=new Date;return F.setHours(F.getHours()+5),F-V>0||(k[E]=N),k},{});m!=null&&(o.customTransactionInformationForSessionId=m),u!=null&&(o.signedTransactions=S)})}}),{updateSignedTransactionStatus:ip,updateSignedTransactions:sp,setTransactionsToSign:$0,clearAllTransactionsToSign:ui,clearAllSignedTransactions:H0,clearSignedTransaction:V0,clearTransactionToSign:Vb,setSignTransactionsError:q0,setSignTransactionsCancelMessage:li,moveTransactionsToSignedState:Pa}=op.actions,fi=op.reducer});var ae=W(()=>{"use strict";s();Xo();Qo();ei();ni();oi();si();ci();pi()});var Da=W(()=>{"use strict";s()});var fp,lp,pp,Ra,gL,mL,TL,hL,dp,gp,Na=W(()=>{"use strict";s();fp=require("@reduxjs/toolkit");ke();lp={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},pp=(0,fp.createSlice)({name:"dappModalsSlice",initialState:lp,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(Le,()=>lp)}}),{setDappModalVisibility:Ra,setDappModalHeaderVisibility:gL,setDappModalFooterVisibility:mL,setDappModalHeaderText:TL,setDappModalFooterText:hL,setDappModalConfig:dp}=pp.actions,gp=pp.reducer});var mp,Z0,X0,wn,Ti=W(()=>{"use strict";s();mp=require("@reduxjs/toolkit");Da();Xo();Na();Qo();ei();ni();oi();si();ci();pi();Z0={["account"]:Zo,["dappModal"]:gp,["loginInfo"]:Jo,["modals"]:jo,["networkConfig"]:ti,["signedMessageInfo"]:ri,["toasts"]:ii,["transactionsInfo"]:ai,["transactions"]:fi},X0=(n={})=>(0,mp.combineReducers)(O(O({},Z0),n)),wn=X0});var xp={};gn(xp,{default:()=>fw,sessionStorageReducers:()=>Oa});function en(n,o=[]){return{key:n,version:1,storage:hp.default,blacklist:o}}var Ye,Tp,hp,J0,Ur,Q0,j0,ew,tw,nw,rw,ow,iw,sw,yp,aw,Oa,cw,uw,lw,fw,Sp=W(()=>{"use strict";s();Ye=require("redux-persist"),Tp=z(require("redux-persist/lib/storage")),hp=z(require("redux-persist/lib/storage/session"));Ti();ae();Xo();Qo();ei();ni();oi();si();ci();pi();Da();J0={persistReducersStorageType:"localStorage"},Ur={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},Q0=en(Ur["account"]),j0=en(Ur["loginInfo"]),ew=en(Ur["modals"]),tw=en(Ur["networkConfig"]),nw={2:n=>Q(O({},n),{networkConfig:wa})};rw=en("sdk-dapp-transactionsInfo"),ow=en("sdk-dapp-transactions",["transactionsToSign"]),iw=en("sdk-dapp-toasts"),sw=en("sdk-dapp-signedMessageInfo"),yp={key:"sdk-dapp-store",version:2,storage:Tp.default,whitelist:Object.keys(Ur),migrate:(0,Ye.createMigrate)(nw,{debug:!1})},aw=Q(O({},yp),{whitelist:[]}),Oa={["toasts"]:(0,Ye.persistReducer)(iw,ii),["transactions"]:(0,Ye.persistReducer)(ow,fi),["transactionsInfo"]:(0,Ye.persistReducer)(rw,ai),["signedMessageInfo"]:(0,Ye.persistReducer)(sw,ri)},cw=Q(O({},Oa),{["account"]:(0,Ye.persistReducer)(Q0,Zo),["loginInfo"]:(0,Ye.persistReducer)(j0,Jo),["modals"]:(0,Ye.persistReducer)(ew,jo),["networkConfig"]:(0,Ye.persistReducer)(tw,ti)}),uw=J0.persistReducersStorageType==="localStorage",lw=uw?(0,Ye.persistReducer)(yp,wn(Oa)):(0,Ye.persistReducer)(aw,wn(cw)),fw=lw});var vp={};gn(vp,{default:()=>pw});var pw,wp=W(()=>{"use strict";s();Ti();pw=wn()});var Ap={};gn(Ap,{default:()=>gw});var it,dw,gw,Ip=W(()=>{"use strict";s();it=require("redux-persist"),dw=[it.FLUSH,it.REHYDRATE,it.PAUSE,it.PERSIST,it.PURGE,it.REGISTER],gw=dw});var Lp={};gn(Lp,{default:()=>bp});function bp(n){return(0,_p.persistStore)(n)}var _p,Ep=W(()=>{"use strict";s();_p=require("redux-persist")});var wd=Cr((tr,$r)=>{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",S="Invalid `variable` option passed into `_.template`",v="__lodash_hash_undefined__",k=500,E="__lodash_placeholder__",N=1,V=2,F=4,fe=1,ye=2,ge=1,_e=2,rc=4,dt=8,In=16,gt=32,_n=64,_t=128,ir=256,Li=512,Pd=30,Dd="...",Rd=800,Nd=16,oc=1,Od=2,Md=3,rn=1/0,$t=9007199254740991,Fd=17976931348623157e292,Vr=0/0,mt=4294967295,Ud=mt-1,Bd=mt>>>1,Wd=[["ary",_t],["bind",ge],["bindKey",_e],["curry",dt],["curryRight",In],["flip",Li],["partial",gt],["partialRight",_n],["rearg",ir]],bn="[object Arguments]",qr="[object Array]",Gd="[object AsyncFunction]",sr="[object Boolean]",ar="[object Date]",$d="[object DOMException]",zr="[object Error]",Kr="[object Function]",ic="[object GeneratorFunction]",st="[object Map]",cr="[object Number]",Hd="[object Null]",bt="[object Object]",sc="[object Promise]",Vd="[object Proxy]",ur="[object RegExp]",at="[object Set]",lr="[object String]",Yr="[object Symbol]",qd="[object Undefined]",fr="[object WeakMap]",zd="[object WeakSet]",pr="[object ArrayBuffer]",Ln="[object DataView]",Ei="[object Float32Array]",Ci="[object Float64Array]",ki="[object Int8Array]",Pi="[object Int16Array]",Di="[object Int32Array]",Ri="[object Uint8Array]",Ni="[object Uint8ClampedArray]",Oi="[object Uint16Array]",Mi="[object Uint32Array]",Kd=/\b__p \+= '';/g,Yd=/\b(__p \+=) '' \+/g,Zd=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ac=/&(?:amp|lt|gt|quot|#39);/g,cc=/[&<>"']/g,Xd=RegExp(ac.source),Jd=RegExp(cc.source),Qd=/<%-([\s\S]+?)%>/g,jd=/<%([\s\S]+?)%>/g,uc=/<%=([\s\S]+?)%>/g,eg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tg=/^\w*$/,ng=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fi=/[\\^$.*+?()[\]{}|]/g,rg=RegExp(Fi.source),Ui=/^\s+/,og=/\s/,ig=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,sg=/\{\n\/\* \[wrapped with (.+)\] \*/,ag=/,? & /,cg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ug=/[()=,{}\[\]\/\s]/,lg=/\\(\\)?/g,fg=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,lc=/\w*$/,pg=/^[-+]0x[0-9a-f]+$/i,dg=/^0b[01]+$/i,gg=/^\[object .+?Constructor\]$/,mg=/^0o[0-7]+$/i,Tg=/^(?:0|[1-9]\d*)$/,hg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Zr=/($^)/,yg=/['\n\r\u2028\u2029\\]/g,Xr="\\ud800-\\udfff",xg="\\u0300-\\u036f",Sg="\\ufe20-\\ufe2f",vg="\\u20d0-\\u20ff",fc=xg+Sg+vg,pc="\\u2700-\\u27bf",dc="a-z\\xdf-\\xf6\\xf8-\\xff",wg="\\xac\\xb1\\xd7\\xf7",Ag="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ig="\\u2000-\\u206f",_g=" \\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",gc="A-Z\\xc0-\\xd6\\xd8-\\xde",mc="\\ufe0e\\ufe0f",Tc=wg+Ag+Ig+_g,Bi="['\u2019]",bg="["+Xr+"]",hc="["+Tc+"]",Jr="["+fc+"]",yc="\\d+",Lg="["+pc+"]",xc="["+dc+"]",Sc="[^"+Xr+Tc+yc+pc+dc+gc+"]",Wi="\\ud83c[\\udffb-\\udfff]",Eg="(?:"+Jr+"|"+Wi+")",vc="[^"+Xr+"]",Gi="(?:\\ud83c[\\udde6-\\uddff]){2}",$i="[\\ud800-\\udbff][\\udc00-\\udfff]",En="["+gc+"]",wc="\\u200d",Ac="(?:"+xc+"|"+Sc+")",Cg="(?:"+En+"|"+Sc+")",Ic="(?:"+Bi+"(?:d|ll|m|re|s|t|ve))?",_c="(?:"+Bi+"(?:D|LL|M|RE|S|T|VE))?",bc=Eg+"?",Lc="["+mc+"]?",kg="(?:"+wc+"(?:"+[vc,Gi,$i].join("|")+")"+Lc+bc+")*",Pg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Dg="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ec=Lc+bc+kg,Rg="(?:"+[Lg,Gi,$i].join("|")+")"+Ec,Ng="(?:"+[vc+Jr+"?",Jr,Gi,$i,bg].join("|")+")",Og=RegExp(Bi,"g"),Mg=RegExp(Jr,"g"),Hi=RegExp(Wi+"(?="+Wi+")|"+Ng+Ec,"g"),Fg=RegExp([En+"?"+xc+"+"+Ic+"(?="+[hc,En,"$"].join("|")+")",Cg+"+"+_c+"(?="+[hc,En+Ac,"$"].join("|")+")",En+"?"+Ac+"+"+Ic,En+"+"+_c,Dg,Pg,yc,Rg].join("|"),"g"),Ug=RegExp("["+wc+Xr+fc+mc+"]"),Bg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Wg=["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"],Gg=-1,ce={};ce[Ei]=ce[Ci]=ce[ki]=ce[Pi]=ce[Di]=ce[Ri]=ce[Ni]=ce[Oi]=ce[Mi]=!0,ce[bn]=ce[qr]=ce[pr]=ce[sr]=ce[Ln]=ce[ar]=ce[zr]=ce[Kr]=ce[st]=ce[cr]=ce[bt]=ce[ur]=ce[at]=ce[lr]=ce[fr]=!1;var ie={};ie[bn]=ie[qr]=ie[pr]=ie[Ln]=ie[sr]=ie[ar]=ie[Ei]=ie[Ci]=ie[ki]=ie[Pi]=ie[Di]=ie[st]=ie[cr]=ie[bt]=ie[ur]=ie[at]=ie[lr]=ie[Yr]=ie[Ri]=ie[Ni]=ie[Oi]=ie[Mi]=!0,ie[zr]=ie[Kr]=ie[fr]=!1;var $g={\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"},Hg={"&":"&","<":"<",">":">",'"':""","'":"'"},Vg={"&":"&","<":"<",">":">",""":'"',"'":"'"},qg={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},zg=parseFloat,Kg=parseInt,Cc=typeof p=="object"&&p&&p.Object===Object&&p,Yg=typeof self=="object"&&self&&self.Object===Object&&self,ve=Cc||Yg||Function("return this")(),Vi=typeof tr=="object"&&tr&&!tr.nodeType&&tr,on=Vi&&typeof $r=="object"&&$r&&!$r.nodeType&&$r,kc=on&&on.exports===Vi,qi=kc&&Cc.process,Xe=function(){try{var y=on&&on.require&&on.require("util").types;return y||qi&&qi.binding&&qi.binding("util")}catch(A){}}(),Pc=Xe&&Xe.isArrayBuffer,Dc=Xe&&Xe.isDate,Rc=Xe&&Xe.isMap,Nc=Xe&&Xe.isRegExp,Oc=Xe&&Xe.isSet,Mc=Xe&&Xe.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 Zg(y,A,w,P){for(var G=-1,j=y==null?0:y.length;++G<j;){var xe=y[G];A(P,xe,w(xe),y)}return P}function Je(y,A){for(var w=-1,P=y==null?0:y.length;++w<P&&A(y[w],w,y)!==!1;);return y}function Xg(y,A){for(var w=y==null?0:y.length;w--&&A(y[w],w,y)!==!1;);return y}function Fc(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 Ht(y,A){for(var w=-1,P=y==null?0:y.length,G=0,j=[];++w<P;){var xe=y[w];A(xe,w,y)&&(j[G++]=xe)}return j}function Qr(y,A){var w=y==null?0:y.length;return!!w&&Cn(y,A,0)>-1}function zi(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 Vt(y,A){for(var w=-1,P=A.length,G=y.length;++w<P;)y[G+w]=A[w];return y}function Ki(y,A,w,P){var G=-1,j=y==null?0:y.length;for(P&&j&&(w=y[++G]);++G<j;)w=A(w,y[G],G,y);return w}function Jg(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 Yi(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 Qg=Zi("length");function jg(y){return y.split("")}function em(y){return y.match(cg)||[]}function Uc(y,A,w){var P;return w(y,function(G,j,xe){if(A(G,j,xe))return P=j,!1}),P}function jr(y,A,w,P){for(var G=y.length,j=w+(P?1:-1);P?j--:++j<G;)if(A(y[j],j,y))return j;return-1}function Cn(y,A,w){return A===A?pm(y,A,w):jr(y,Bc,w)}function tm(y,A,w,P){for(var G=w-1,j=y.length;++G<j;)if(P(y[G],A))return G;return-1}function Bc(y){return y!==y}function Wc(y,A){var w=y==null?0:y.length;return w?Ji(y,A)/w:Vr}function Zi(y){return function(A){return A==null?n:A[y]}}function Xi(y){return function(A){return y==null?n:y[A]}}function Gc(y,A,w,P,G){return G(y,function(j,xe,oe){w=P?(P=!1,j):A(w,j,xe,oe)}),w}function nm(y,A){var w=y.length;for(y.sort(A);w--;)y[w]=y[w].value;return y}function Ji(y,A){for(var w,P=-1,G=y.length;++P<G;){var j=A(y[P]);j!==n&&(w=w===n?j:w+j)}return w}function Qi(y,A){for(var w=-1,P=Array(y);++w<y;)P[w]=A(w);return P}function rm(y,A){return ue(A,function(w){return[w,y[w]]})}function $c(y){return y&&y.slice(0,zc(y)+1).replace(Ui,"")}function $e(y){return function(A){return y(A)}}function ji(y,A){return ue(A,function(w){return y[w]})}function dr(y,A){return y.has(A)}function Hc(y,A){for(var w=-1,P=y.length;++w<P&&Cn(A,y[w],0)>-1;);return w}function Vc(y,A){for(var w=y.length;w--&&Cn(A,y[w],0)>-1;);return w}function om(y,A){for(var w=y.length,P=0;w--;)y[w]===A&&++P;return P}var im=Xi($g),sm=Xi(Hg);function am(y){return"\\"+qg[y]}function cm(y,A){return y==null?n:y[A]}function kn(y){return Ug.test(y)}function um(y){return Bg.test(y)}function lm(y){for(var A,w=[];!(A=y.next()).done;)w.push(A.value);return w}function es(y){var A=-1,w=Array(y.size);return y.forEach(function(P,G){w[++A]=[G,P]}),w}function qc(y,A){return function(w){return y(A(w))}}function qt(y,A){for(var w=-1,P=y.length,G=0,j=[];++w<P;){var xe=y[w];(xe===A||xe===E)&&(y[w]=E,j[G++]=w)}return j}function eo(y){var A=-1,w=Array(y.size);return y.forEach(function(P){w[++A]=P}),w}function fm(y){var A=-1,w=Array(y.size);return y.forEach(function(P){w[++A]=[P,P]}),w}function pm(y,A,w){for(var P=w-1,G=y.length;++P<G;)if(y[P]===A)return P;return-1}function dm(y,A,w){for(var P=w+1;P--;)if(y[P]===A)return P;return P}function Pn(y){return kn(y)?mm(y):Qg(y)}function ct(y){return kn(y)?Tm(y):jg(y)}function zc(y){for(var A=y.length;A--&&og.test(y.charAt(A)););return A}var gm=Xi(Vg);function mm(y){for(var A=Hi.lastIndex=0;Hi.test(y);)++A;return A}function Tm(y){return y.match(Hi)||[]}function hm(y){return y.match(Fg)||[]}var ym=function y(A){A=A==null?ve:zt.defaults(ve.Object(),A,zt.pick(ve,Wg));var w=A.Array,P=A.Date,G=A.Error,j=A.Function,xe=A.Math,oe=A.Object,ts=A.RegExp,xm=A.String,Qe=A.TypeError,to=w.prototype,Sm=j.prototype,Dn=oe.prototype,no=A["__core-js_shared__"],ro=Sm.toString,re=Dn.hasOwnProperty,vm=0,Kc=function(){var e=/[^.]+$/.exec(no&&no.keys&&no.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),oo=Dn.toString,wm=ro.call(oe),Am=ve._,Im=ts("^"+ro.call(re).replace(Fi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),io=kc?A.Buffer:n,Kt=A.Symbol,so=A.Uint8Array,Yc=io?io.allocUnsafe:n,ao=qc(oe.getPrototypeOf,oe),Zc=oe.create,Xc=Dn.propertyIsEnumerable,co=to.splice,Jc=Kt?Kt.isConcatSpreadable:n,gr=Kt?Kt.iterator:n,sn=Kt?Kt.toStringTag:n,uo=function(){try{var e=fn(oe,"defineProperty");return e({},"",{}),e}catch(t){}}(),_m=A.clearTimeout!==ve.clearTimeout&&A.clearTimeout,bm=P&&P.now!==ve.Date.now&&P.now,Lm=A.setTimeout!==ve.setTimeout&&A.setTimeout,lo=xe.ceil,fo=xe.floor,ns=oe.getOwnPropertySymbols,Em=io?io.isBuffer:n,Qc=A.isFinite,Cm=to.join,km=qc(oe.keys,oe),Se=xe.max,Ee=xe.min,Pm=P.now,Dm=A.parseInt,jc=xe.random,Rm=to.reverse,rs=fn(A,"DataView"),mr=fn(A,"Map"),os=fn(A,"Promise"),Rn=fn(A,"Set"),Tr=fn(A,"WeakMap"),hr=fn(oe,"create"),po=Tr&&new Tr,Nn={},Nm=pn(rs),Om=pn(mr),Mm=pn(os),Fm=pn(Rn),Um=pn(Tr),go=Kt?Kt.prototype:n,yr=go?go.valueOf:n,eu=go?go.toString:n;function l(e){if(pe(e)&&!$(e)&&!(e instanceof X)){if(e instanceof je)return e;if(re.call(e,"__wrapped__"))return tl(e)}return new je(e)}var On=function(){function e(){}return function(t){if(!le(t))return{};if(Zc)return Zc(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function mo(){}function je(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}l.templateSettings={escape:Qd,evaluate:jd,interpolate:uc,variable:"",imports:{_:l}},l.prototype=mo.prototype,l.prototype.constructor=l,je.prototype=On(mo.prototype),je.prototype.constructor=je;function X(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=mt,this.__views__=[]}function Bm(){var e=new X(this.__wrapped__);return e.__actions__=Oe(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Oe(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Oe(this.__views__),e}function Wm(){if(this.__filtered__){var e=new X(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Gm(){var e=this.__wrapped__.value(),t=this.__dir__,r=$(e),a=t<0,c=r?e.length:0,f=jT(0,c,this.__views__),T=f.start,h=f.end,x=h-T,_=a?h:T-1,b=this.__iteratees__,L=b.length,C=0,R=Ee(x,this.__takeCount__);if(!r||!a&&c==x&&R==x)return Iu(e,this.__actions__);var U=[];e:for(;x--&&C<R;){_+=t;for(var q=-1,B=e[_];++q<L;){var Z=b[q],J=Z.iteratee,qe=Z.type,Ne=J(B);if(qe==Od)B=Ne;else if(!Ne){if(qe==oc)continue e;break e}}U[C++]=B}return U}X.prototype=On(mo.prototype),X.prototype.constructor=X;function an(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 $m(){this.__data__=hr?hr(null):{},this.size=0}function Hm(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Vm(e){var t=this.__data__;if(hr){var r=t[e];return r===v?n:r}return re.call(t,e)?t[e]:n}function qm(e){var t=this.__data__;return hr?t[e]!==n:re.call(t,e)}function zm(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=hr&&t===n?v:t,this}an.prototype.clear=$m,an.prototype.delete=Hm,an.prototype.get=Vm,an.prototype.has=qm,an.prototype.set=zm;function Lt(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 Km(){this.__data__=[],this.size=0}function Ym(e){var t=this.__data__,r=To(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():co.call(t,r,1),--this.size,!0}function Zm(e){var t=this.__data__,r=To(t,e);return r<0?n:t[r][1]}function Xm(e){return To(this.__data__,e)>-1}function Jm(e,t){var r=this.__data__,a=To(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}Lt.prototype.clear=Km,Lt.prototype.delete=Ym,Lt.prototype.get=Zm,Lt.prototype.has=Xm,Lt.prototype.set=Jm;function Et(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 Qm(){this.size=0,this.__data__={hash:new an,map:new(mr||Lt),string:new an}}function jm(e){var t=Eo(this,e).delete(e);return this.size-=t?1:0,t}function eT(e){return Eo(this,e).get(e)}function tT(e){return Eo(this,e).has(e)}function nT(e,t){var r=Eo(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}Et.prototype.clear=Qm,Et.prototype.delete=jm,Et.prototype.get=eT,Et.prototype.has=tT,Et.prototype.set=nT;function cn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Et;++t<r;)this.add(e[t])}function rT(e){return this.__data__.set(e,v),this}function oT(e){return this.__data__.has(e)}cn.prototype.add=cn.prototype.push=rT,cn.prototype.has=oT;function ut(e){var t=this.__data__=new Lt(e);this.size=t.size}function iT(){this.__data__=new Lt,this.size=0}function sT(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function aT(e){return this.__data__.get(e)}function cT(e){return this.__data__.has(e)}function uT(e,t){var r=this.__data__;if(r instanceof Lt){var a=r.__data__;if(!mr||a.length<i-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new Et(a)}return r.set(e,t),this.size=r.size,this}ut.prototype.clear=iT,ut.prototype.delete=sT,ut.prototype.get=aT,ut.prototype.has=cT,ut.prototype.set=uT;function tu(e,t){var r=$(e),a=!r&&dn(e),c=!r&&!a&&Qt(e),f=!r&&!a&&!c&&Bn(e),T=r||a||c||f,h=T?Qi(e.length,xm):[],x=h.length;for(var _ in e)(t||re.call(e,_))&&!(T&&(_=="length"||c&&(_=="offset"||_=="parent")||f&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||Dt(_,x)))&&h.push(_);return h}function nu(e){var t=e.length;return t?e[ms(0,t-1)]:n}function lT(e,t){return Co(Oe(e),un(t,0,e.length))}function fT(e){return Co(Oe(e))}function is(e,t,r){(r!==n&&!lt(e[t],r)||r===n&&!(t in e))&&Ct(e,t,r)}function xr(e,t,r){var a=e[t];(!(re.call(e,t)&<(a,r))||r===n&&!(t in e))&&Ct(e,t,r)}function To(e,t){for(var r=e.length;r--;)if(lt(e[r][0],t))return r;return-1}function pT(e,t,r,a){return Yt(e,function(c,f,T){t(a,c,r(c),T)}),a}function ru(e,t){return e&&ht(t,we(t),e)}function dT(e,t){return e&&ht(t,Fe(t),e)}function Ct(e,t,r){t=="__proto__"&&uo?uo(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function ss(e,t){for(var r=-1,a=t.length,c=w(a),f=e==null;++r<a;)c[r]=f?n:Ws(e,t[r]);return c}function un(e,t,r){return e===e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function et(e,t,r,a,c,f){var T,h=t&N,x=t&V,_=t&F;if(r&&(T=c?r(e,a,c,f):r(e)),T!==n)return T;if(!le(e))return e;var b=$(e);if(b){if(T=th(e),!h)return Oe(e,T)}else{var L=Ce(e),C=L==Kr||L==ic;if(Qt(e))return Lu(e,h);if(L==bt||L==bn||C&&!c){if(T=x||C?{}:zu(e),!h)return x?VT(e,dT(T,e)):HT(e,ru(T,e))}else{if(!ie[L])return c?e:{};T=nh(e,L,h)}}f||(f=new ut);var R=f.get(e);if(R)return R;f.set(e,T),vl(e)?e.forEach(function(B){T.add(et(B,t,r,B,e,f))}):xl(e)&&e.forEach(function(B,Z){T.set(Z,et(B,t,r,Z,e,f))});var U=_?x?bs:_s:x?Fe:we,q=b?n:U(e);return Je(q||e,function(B,Z){q&&(Z=B,B=e[Z]),xr(T,Z,et(B,t,r,Z,e,f))}),T}function gT(e){var t=we(e);return function(r){return ou(r,e,t)}}function ou(e,t,r){var a=r.length;if(e==null)return!a;for(e=oe(e);a--;){var c=r[a],f=t[c],T=e[c];if(T===n&&!(c in e)||!f(T))return!1}return!0}function iu(e,t,r){if(typeof e!="function")throw new Qe(m);return br(function(){e.apply(n,r)},t)}function Sr(e,t,r,a){var c=-1,f=Qr,T=!0,h=e.length,x=[],_=t.length;if(!h)return x;r&&(t=ue(t,$e(r))),a?(f=zi,T=!1):t.length>=i&&(f=dr,T=!1,t=new cn(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 f(t,L,a)||x.push(b)}return x}var Yt=Du(Tt),su=Du(cs,!0);function mT(e,t){var r=!0;return Yt(e,function(a,c,f){return r=!!t(a,c,f),r}),r}function ho(e,t,r){for(var a=-1,c=e.length;++a<c;){var f=e[a],T=t(f);if(T!=null&&(h===n?T===T&&!Ve(T):r(T,h)))var h=T,x=f}return x}function TT(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:Al(a);r<a;)e[r++]=t;return e}function au(e,t){var r=[];return Yt(e,function(a,c,f){t(a,c,f)&&r.push(a)}),r}function be(e,t,r,a,c){var f=-1,T=e.length;for(r||(r=oh),c||(c=[]);++f<T;){var h=e[f];t>0&&r(h)?t>1?be(h,t-1,r,a,c):Vt(c,h):a||(c[c.length]=h)}return c}var as=Ru(),cu=Ru(!0);function Tt(e,t){return e&&as(e,t,we)}function cs(e,t){return e&&cu(e,t,we)}function yo(e,t){return Ht(t,function(r){return Rt(e[r])})}function ln(e,t){t=Xt(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[yt(t[r++])];return r&&r==a?e:n}function uu(e,t,r){var a=t(e);return $(e)?a:Vt(a,r(e))}function De(e){return e==null?e===n?qd:Hd:sn&&sn in oe(e)?QT(e):fh(e)}function us(e,t){return e>t}function hT(e,t){return e!=null&&re.call(e,t)}function yT(e,t){return e!=null&&t in oe(e)}function xT(e,t,r){return e>=Ee(t,r)&&e<Se(t,r)}function ls(e,t,r){for(var a=r?zi:Qr,c=e[0].length,f=e.length,T=f,h=w(f),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 cn(T&&b):n}b=e[0];var L=-1,C=h[0];e:for(;++L<c&&_.length<x;){var R=b[L],U=t?t(R):R;if(R=r||R!==0?R:0,!(C?dr(C,U):a(_,U,r))){for(T=f;--T;){var q=h[T];if(!(q?dr(q,U):a(e[T],U,r)))continue e}C&&C.push(U),_.push(R)}}return _}function ST(e,t,r,a){return Tt(e,function(c,f,T){t(a,r(c),f,T)}),a}function vr(e,t,r){t=Xt(t,e),e=Xu(e,t);var a=e==null?e:e[yt(nt(t))];return a==null?n:Ge(a,e,r)}function lu(e){return pe(e)&&De(e)==bn}function vT(e){return pe(e)&&De(e)==pr}function wT(e){return pe(e)&&De(e)==ar}function wr(e,t,r,a,c){return e===t?!0:e==null||t==null||!pe(e)&&!pe(t)?e!==e&&t!==t:AT(e,t,r,a,wr,c)}function AT(e,t,r,a,c,f){var T=$(e),h=$(t),x=T?qr:Ce(e),_=h?qr:Ce(t);x=x==bn?bt:x,_=_==bn?bt:_;var b=x==bt,L=_==bt,C=x==_;if(C&&Qt(e)){if(!Qt(t))return!1;T=!0,b=!1}if(C&&!b)return f||(f=new ut),T||Bn(e)?Hu(e,t,r,a,c,f):XT(e,t,x,r,a,c,f);if(!(r&fe)){var R=b&&re.call(e,"__wrapped__"),U=L&&re.call(t,"__wrapped__");if(R||U){var q=R?e.value():e,B=U?t.value():t;return f||(f=new ut),c(q,B,r,a,f)}}return C?(f||(f=new ut),JT(e,t,r,a,c,f)):!1}function IT(e){return pe(e)&&Ce(e)==st}function fs(e,t,r,a){var c=r.length,f=c,T=!a;if(e==null)return!f;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<f;){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 ut;if(a)var C=a(_,b,x,e,t,L);if(!(C===n?wr(b,_,fe|ye,a,L):C))return!1}}return!0}function fu(e){if(!le(e)||sh(e))return!1;var t=Rt(e)?Im:gg;return t.test(pn(e))}function _T(e){return pe(e)&&De(e)==ur}function bT(e){return pe(e)&&Ce(e)==at}function LT(e){return pe(e)&&Oo(e.length)&&!!ce[De(e)]}function pu(e){return typeof e=="function"?e:e==null?Ue:typeof e=="object"?$(e)?mu(e[0],e[1]):gu(e):Nl(e)}function ps(e){if(!_r(e))return km(e);var t=[];for(var r in oe(e))re.call(e,r)&&r!="constructor"&&t.push(r);return t}function ET(e){if(!le(e))return lh(e);var t=_r(e),r=[];for(var a in e)a=="constructor"&&(t||!re.call(e,a))||r.push(a);return r}function ds(e,t){return e<t}function du(e,t){var r=-1,a=Me(e)?w(e.length):[];return Yt(e,function(c,f,T){a[++r]=t(c,f,T)}),a}function gu(e){var t=Es(e);return t.length==1&&t[0][2]?Yu(t[0][0],t[0][1]):function(r){return r===e||fs(r,e,t)}}function mu(e,t){return ks(e)&&Ku(t)?Yu(yt(e),t):function(r){var a=Ws(r,e);return a===n&&a===t?Gs(r,e):wr(t,a,fe|ye)}}function xo(e,t,r,a,c){e!==t&&as(t,function(f,T){if(c||(c=new ut),le(f))CT(e,t,T,r,xo,a,c);else{var h=a?a(Ds(e,T),f,T+"",e,t,c):n;h===n&&(h=f),is(e,T,h)}},Fe)}function CT(e,t,r,a,c,f,T){var h=Ds(e,r),x=Ds(t,r),_=T.get(x);if(_){is(e,r,_);return}var b=f?f(h,x,r+"",e,t,T):n,L=b===n;if(L){var C=$(x),R=!C&&Qt(x),U=!C&&!R&&Bn(x);b=x,C||R||U?$(h)?b=h:me(h)?b=Oe(h):R?(L=!1,b=Lu(x,!0)):U?(L=!1,b=Eu(x,!0)):b=[]:Lr(x)||dn(x)?(b=h,dn(h)?b=Il(h):(!le(h)||Rt(h))&&(b=zu(x))):L=!1}L&&(T.set(x,b),c(b,x,a,f,T),T.delete(x)),is(e,r,b)}function Tu(e,t){var r=e.length;if(!!r)return t+=t<0?r:0,Dt(t,r)?e[t]:n}function hu(e,t,r){t.length?t=ue(t,function(f){return $(f)?function(T){return ln(T,f.length===1?f[0]:f)}:f}):t=[Ue];var a=-1;t=ue(t,$e(M()));var c=du(e,function(f,T,h){var x=ue(t,function(_){return _(f)});return{criteria:x,index:++a,value:f}});return nm(c,function(f,T){return $T(f,T,r)})}function kT(e,t){return yu(e,t,function(r,a){return Gs(e,a)})}function yu(e,t,r){for(var a=-1,c=t.length,f={};++a<c;){var T=t[a],h=ln(e,T);r(h,T)&&Ar(f,Xt(T,e),h)}return f}function PT(e){return function(t){return ln(t,e)}}function gs(e,t,r,a){var c=a?tm:Cn,f=-1,T=t.length,h=e;for(e===t&&(t=Oe(t)),r&&(h=ue(e,$e(r)));++f<T;)for(var x=0,_=t[f],b=r?r(_):_;(x=c(h,b,x,a))>-1;)h!==e&&co.call(h,x,1),co.call(e,x,1);return e}function xu(e,t){for(var r=e?t.length:0,a=r-1;r--;){var c=t[r];if(r==a||c!==f){var f=c;Dt(c)?co.call(e,c,1):ys(e,c)}}return e}function ms(e,t){return e+fo(jc()*(t-e+1))}function DT(e,t,r,a){for(var c=-1,f=Se(lo((t-e)/(r||1)),0),T=w(f);f--;)T[a?f:++c]=e,e+=r;return T}function Ts(e,t){var r="";if(!e||t<1||t>$t)return r;do t%2&&(r+=e),t=fo(t/2),t&&(e+=e);while(t);return r}function Y(e,t){return Rs(Zu(e,t,Ue),e+"")}function RT(e){return nu(Wn(e))}function NT(e,t){var r=Wn(e);return Co(r,un(t,0,r.length))}function Ar(e,t,r,a){if(!le(e))return e;t=Xt(t,e);for(var c=-1,f=t.length,T=f-1,h=e;h!=null&&++c<f;){var x=yt(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:Dt(t[c+1])?[]:{})}xr(h,x,_),h=h[x]}return e}var Su=po?function(e,t){return po.set(e,t),e}:Ue,OT=uo?function(e,t){return uo(e,"toString",{configurable:!0,enumerable:!1,value:Hs(t),writable:!0})}:Ue;function MT(e){return Co(Wn(e))}function tt(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 f=w(c);++a<c;)f[a]=e[a+t];return f}function FT(e,t){var r;return Yt(e,function(a,c,f){return r=t(a,c,f),!r}),!!r}function So(e,t,r){var a=0,c=e==null?a:e.length;if(typeof t=="number"&&t===t&&c<=Bd){for(;a<c;){var f=a+c>>>1,T=e[f];T!==null&&!Ve(T)&&(r?T<=t:T<t)?a=f+1:c=f}return c}return hs(e,t,Ue,r)}function hs(e,t,r,a){var c=0,f=e==null?0:e.length;if(f===0)return 0;t=r(t);for(var T=t!==t,h=t===null,x=Ve(t),_=t===n;c<f;){var b=fo((c+f)/2),L=r(e[b]),C=L!==n,R=L===null,U=L===L,q=Ve(L);if(T)var B=a||U;else _?B=U&&(a||C):h?B=U&&C&&(a||!R):x?B=U&&C&&!R&&(a||!q):R||q?B=!1:B=a?L<=t:L<t;B?c=b+1:f=b}return Ee(f,Ud)}function vu(e,t){for(var r=-1,a=e.length,c=0,f=[];++r<a;){var T=e[r],h=t?t(T):T;if(!r||!lt(h,x)){var x=h;f[c++]=T===0?0:T}}return f}function wu(e){return typeof e=="number"?e:Ve(e)?Vr:+e}function He(e){if(typeof e=="string")return e;if($(e))return ue(e,He)+"";if(Ve(e))return eu?eu.call(e):"";var t=e+"";return t=="0"&&1/e==-rn?"-0":t}function Zt(e,t,r){var a=-1,c=Qr,f=e.length,T=!0,h=[],x=h;if(r)T=!1,c=zi;else if(f>=i){var _=t?null:YT(e);if(_)return eo(_);T=!1,c=dr,x=new cn}else x=t?[]:h;e:for(;++a<f;){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 ys(e,t){return t=Xt(t,e),e=Xu(e,t),e==null||delete e[yt(nt(t))]}function Au(e,t,r,a){return Ar(e,t,r(ln(e,t)),a)}function vo(e,t,r,a){for(var c=e.length,f=a?c:-1;(a?f--:++f<c)&&t(e[f],f,e););return r?tt(e,a?0:f,a?f+1:c):tt(e,a?f+1:0,a?c:f)}function Iu(e,t){var r=e;return r instanceof X&&(r=r.value()),Ki(t,function(a,c){return c.func.apply(c.thisArg,Vt([a],c.args))},r)}function xs(e,t,r){var a=e.length;if(a<2)return a?Zt(e[0]):[];for(var c=-1,f=w(a);++c<a;)for(var T=e[c],h=-1;++h<a;)h!=c&&(f[c]=Sr(f[c]||T,e[h],t,r));return Zt(be(f,1),t,r)}function _u(e,t,r){for(var a=-1,c=e.length,f=t.length,T={};++a<c;){var h=a<f?t[a]:n;r(T,e[a],h)}return T}function Ss(e){return me(e)?e:[]}function vs(e){return typeof e=="function"?e:Ue}function Xt(e,t){return $(e)?e:ks(e,t)?[e]:el(te(e))}var UT=Y;function Jt(e,t,r){var a=e.length;return r=r===n?a:r,!t&&r>=a?e:tt(e,t,r)}var bu=_m||function(e){return ve.clearTimeout(e)};function Lu(e,t){if(t)return e.slice();var r=e.length,a=Yc?Yc(r):new e.constructor(r);return e.copy(a),a}function ws(e){var t=new e.constructor(e.byteLength);return new so(t).set(new so(e)),t}function BT(e,t){var r=t?ws(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function WT(e){var t=new e.constructor(e.source,lc.exec(e));return t.lastIndex=e.lastIndex,t}function GT(e){return yr?oe(yr.call(e)):{}}function Eu(e,t){var r=t?ws(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Cu(e,t){if(e!==t){var r=e!==n,a=e===null,c=e===e,f=Ve(e),T=t!==n,h=t===null,x=t===t,_=Ve(t);if(!h&&!_&&!f&&e>t||f&&T&&x&&!h&&!_||a&&T&&x||!r&&x||!c)return 1;if(!a&&!f&&!_&&e<t||_&&r&&c&&!a&&!f||h&&r&&c||!T&&c||!x)return-1}return 0}function $T(e,t,r){for(var a=-1,c=e.criteria,f=t.criteria,T=c.length,h=r.length;++a<T;){var x=Cu(c[a],f[a]);if(x){if(a>=h)return x;var _=r[a];return x*(_=="desc"?-1:1)}}return e.index-t.index}function ku(e,t,r,a){for(var c=-1,f=e.length,T=r.length,h=-1,x=t.length,_=Se(f-T,0),b=w(x+_),L=!a;++h<x;)b[h]=t[h];for(;++c<T;)(L||c<f)&&(b[r[c]]=e[c]);for(;_--;)b[h++]=e[c++];return b}function Pu(e,t,r,a){for(var c=-1,f=e.length,T=-1,h=r.length,x=-1,_=t.length,b=Se(f-h,0),L=w(b+_),C=!a;++c<b;)L[c]=e[c];for(var R=c;++x<_;)L[R+x]=t[x];for(;++T<h;)(C||c<f)&&(L[R+r[T]]=e[c++]);return L}function Oe(e,t){var r=-1,a=e.length;for(t||(t=w(a));++r<a;)t[r]=e[r];return t}function ht(e,t,r,a){var c=!r;r||(r={});for(var f=-1,T=t.length;++f<T;){var h=t[f],x=a?a(r[h],e[h],h,r,e):n;x===n&&(x=e[h]),c?Ct(r,h,x):xr(r,h,x)}return r}function HT(e,t){return ht(e,Cs(e),t)}function VT(e,t){return ht(e,Vu(e),t)}function wo(e,t){return function(r,a){var c=$(r)?Zg:pT,f=t?t():{};return c(r,e,M(a,2),f)}}function Mn(e){return Y(function(t,r){var a=-1,c=r.length,f=c>1?r[c-1]:n,T=c>2?r[2]:n;for(f=e.length>3&&typeof f=="function"?(c--,f):n,T&&Re(r[0],r[1],T)&&(f=c<3?n:f,c=1),t=oe(t);++a<c;){var h=r[a];h&&e(t,h,a,f)}return t})}function Du(e,t){return function(r,a){if(r==null)return r;if(!Me(r))return e(r,a);for(var c=r.length,f=t?c:-1,T=oe(r);(t?f--:++f<c)&&a(T[f],f,T)!==!1;);return r}}function Ru(e){return function(t,r,a){for(var c=-1,f=oe(t),T=a(t),h=T.length;h--;){var x=T[e?h:++c];if(r(f[x],x,f)===!1)break}return t}}function qT(e,t,r){var a=t&ge,c=Ir(e);function f(){var T=this&&this!==ve&&this instanceof f?c:e;return T.apply(a?r:this,arguments)}return f}function Nu(e){return function(t){t=te(t);var r=kn(t)?ct(t):n,a=r?r[0]:t.charAt(0),c=r?Jt(r,1).join(""):t.slice(1);return a[e]()+c}}function Fn(e){return function(t){return Ki(Dl(Pl(t).replace(Og,"")),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=On(e.prototype),a=e.apply(r,t);return le(a)?a:r}}function zT(e,t,r){var a=Ir(e);function c(){for(var f=arguments.length,T=w(f),h=f,x=Un(c);h--;)T[h]=arguments[h];var _=f<3&&T[0]!==x&&T[f-1]!==x?[]:qt(T,x);if(f-=_.length,f<r)return Bu(e,t,Ao,c.placeholder,n,T,_,n,n,r-f);var b=this&&this!==ve&&this instanceof c?a:e;return Ge(b,this,T)}return c}function Ou(e){return function(t,r,a){var c=oe(t);if(!Me(t)){var f=M(r,3);t=we(t),r=function(h){return f(c[h],h,c)}}var T=e(t,r,a);return T>-1?c[f?t[T]:T]:n}}function Mu(e){return Pt(function(t){var r=t.length,a=r,c=je.prototype.thru;for(e&&t.reverse();a--;){var f=t[a];if(typeof f!="function")throw new Qe(m);if(c&&!T&&Lo(f)=="wrapper")var T=new je([],!0)}for(a=T?a:r;++a<r;){f=t[a];var h=Lo(f),x=h=="wrapper"?Ls(f):n;x&&Ps(x[0])&&x[1]==(_t|dt|gt|ir)&&!x[4].length&&x[9]==1?T=T[Lo(x[0])].apply(T,x[3]):T=f.length==1&&Ps(f)?T[h]():T.thru(f)}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 Ao(e,t,r,a,c,f,T,h,x,_){var b=t&_t,L=t&ge,C=t&_e,R=t&(dt|In),U=t&Li,q=C?n:Ir(e);function B(){for(var Z=arguments.length,J=w(Z),qe=Z;qe--;)J[qe]=arguments[qe];if(R)var Ne=Un(B),ze=om(J,Ne);if(a&&(J=ku(J,a,c,R)),f&&(J=Pu(J,f,T,R)),Z-=ze,R&&Z<_){var Te=qt(J,Ne);return Bu(e,t,Ao,B.placeholder,r,J,Te,h,x,_-Z)}var ft=L?r:this,Ot=C?ft[e]:e;return Z=J.length,h?J=ph(J,h):U&&Z>1&&J.reverse(),b&&x<Z&&(J.length=x),this&&this!==ve&&this instanceof B&&(Ot=q||Ir(Ot)),Ot.apply(ft,J)}return B}function Fu(e,t){return function(r,a){return ST(r,e,t(a),{})}}function Io(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=wu(r),a=wu(a)),c=e(r,a)}return c}}function As(e){return Pt(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 _o(e,t){t=t===n?" ":He(t);var r=t.length;if(r<2)return r?Ts(t,e):t;var a=Ts(t,lo(e/Pn(t)));return kn(t)?Jt(ct(a),0,e).join(""):a.slice(0,e)}function KT(e,t,r,a){var c=t&ge,f=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?f:e;++_<b;)L[_]=a[_];for(;x--;)L[_++]=arguments[++h];return Ge(C,c?r:this,L)}return T}function Uu(e){return function(t,r,a){return a&&typeof a!="number"&&Re(t,r,a)&&(r=a=n),t=Nt(t),r===n?(r=t,t=0):r=Nt(r),a=a===n?t<r?1:-1:Nt(a),DT(t,r,a,e)}}function bo(e){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=rt(t),r=rt(r)),e(t,r)}}function Bu(e,t,r,a,c,f,T,h,x,_){var b=t&dt,L=b?T:n,C=b?n:T,R=b?f:n,U=b?n:f;t|=b?gt:_n,t&=~(b?_n:gt),t&rc||(t&=~(ge|_e));var q=[e,t,c,R,L,U,C,h,x,_],B=r.apply(n,q);return Ps(e)&&Ju(B,q),B.placeholder=a,Qu(B,e,t)}function Is(e){var t=xe[e];return function(r,a){if(r=rt(r),a=a==null?0:Ee(H(a),292),a&&Qc(r)){var c=(te(r)+"e").split("e"),f=t(c[0]+"e"+(+c[1]+a));return c=(te(f)+"e").split("e"),+(c[0]+"e"+(+c[1]-a))}return t(r)}}var YT=Rn&&1/eo(new Rn([,-0]))[1]==rn?function(e){return new Rn(e)}:zs;function Wu(e){return function(t){var r=Ce(t);return r==st?es(t):r==at?fm(t):rm(t,e(t))}}function kt(e,t,r,a,c,f,T,h){var x=t&_e;if(!x&&typeof e!="function")throw new Qe(m);var _=a?a.length:0;if(_||(t&=~(gt|_n),a=c=n),T=T===n?T:Se(H(T),0),h=h===n?h:H(h),_-=c?c.length:0,t&_n){var b=a,L=c;a=c=n}var C=x?n:Ls(e),R=[e,t,r,a,c,b,L,f,T,h];if(C&&uh(R,C),e=R[0],t=R[1],r=R[2],a=R[3],c=R[4],h=R[9]=R[9]===n?x?0:e.length:Se(R[9]-_,0),!h&&t&(dt|In)&&(t&=~(dt|In)),!t||t==ge)var U=qT(e,t,r);else t==dt||t==In?U=zT(e,t,h):(t==gt||t==(ge|gt))&&!c.length?U=KT(e,t,r,a):U=Ao.apply(n,R);var q=C?Su:Ju;return Qu(q(U,R),e,t)}function Gu(e,t,r,a){return e===n||lt(e,Dn[r])&&!re.call(a,r)?t:e}function $u(e,t,r,a,c,f){return le(e)&&le(t)&&(f.set(t,e),xo(e,t,n,$u,f),f.delete(t)),e}function ZT(e){return Lr(e)?n:e}function Hu(e,t,r,a,c,f){var T=r&fe,h=e.length,x=t.length;if(h!=x&&!(T&&x>h))return!1;var _=f.get(e),b=f.get(t);if(_&&b)return _==t&&b==e;var L=-1,C=!0,R=r&ye?new cn:n;for(f.set(e,t),f.set(t,e);++L<h;){var U=e[L],q=t[L];if(a)var B=T?a(q,U,L,t,e,f):a(U,q,L,e,t,f);if(B!==n){if(B)continue;C=!1;break}if(R){if(!Yi(t,function(Z,J){if(!dr(R,J)&&(U===Z||c(U,Z,r,a,f)))return R.push(J)})){C=!1;break}}else if(!(U===q||c(U,q,r,a,f))){C=!1;break}}return f.delete(e),f.delete(t),C}function XT(e,t,r,a,c,f,T){switch(r){case Ln:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case pr:return!(e.byteLength!=t.byteLength||!f(new so(e),new so(t)));case sr:case ar:case cr:return lt(+e,+t);case zr:return e.name==t.name&&e.message==t.message;case ur:case lr:return e==t+"";case st:var h=es;case at:var x=a&fe;if(h||(h=eo),e.size!=t.size&&!x)return!1;var _=T.get(e);if(_)return _==t;a|=ye,T.set(e,t);var b=Hu(h(e),h(t),a,c,f,T);return T.delete(e),b;case Yr:if(yr)return yr.call(e)==yr.call(t)}return!1}function JT(e,t,r,a,c,f){var T=r&fe,h=_s(e),x=h.length,_=_s(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 R=f.get(e),U=f.get(t);if(R&&U)return R==t&&U==e;var q=!0;f.set(e,t),f.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,f):a(Z,J,C,e,t,f);if(!(qe===n?Z===J||c(Z,J,r,a,f):qe)){q=!1;break}B||(B=C=="constructor")}if(q&&!B){var Ne=e.constructor,ze=t.constructor;Ne!=ze&&"constructor"in e&&"constructor"in t&&!(typeof Ne=="function"&&Ne instanceof Ne&&typeof ze=="function"&&ze instanceof ze)&&(q=!1)}return f.delete(e),f.delete(t),q}function Pt(e){return Rs(Zu(e,n,ol),e+"")}function _s(e){return uu(e,we,Cs)}function bs(e){return uu(e,Fe,Vu)}var Ls=po?function(e){return po.get(e)}:zs;function Lo(e){for(var t=e.name+"",r=Nn[t],a=re.call(Nn,t)?r.length:0;a--;){var c=r[a],f=c.func;if(f==null||f==e)return c.name}return t}function Un(e){var t=re.call(l,"placeholder")?l:e;return t.placeholder}function M(){var e=l.iteratee||Vs;return e=e===Vs?pu:e,arguments.length?e(arguments[0],arguments[1]):e}function Eo(e,t){var r=e.__data__;return ih(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Es(e){for(var t=we(e),r=t.length;r--;){var a=t[r],c=e[a];t[r]=[a,c,Ku(c)]}return t}function fn(e,t){var r=cm(e,t);return fu(r)?r:n}function QT(e){var t=re.call(e,sn),r=e[sn];try{e[sn]=n;var a=!0}catch(f){}var c=oo.call(e);return a&&(t?e[sn]=r:delete e[sn]),c}var Cs=ns?function(e){return e==null?[]:(e=oe(e),Ht(ns(e),function(t){return Xc.call(e,t)}))}:Ks,Vu=ns?function(e){for(var t=[];e;)Vt(t,Cs(e)),e=ao(e);return t}:Ks,Ce=De;(rs&&Ce(new rs(new ArrayBuffer(1)))!=Ln||mr&&Ce(new mr)!=st||os&&Ce(os.resolve())!=sc||Rn&&Ce(new Rn)!=at||Tr&&Ce(new Tr)!=fr)&&(Ce=function(e){var t=De(e),r=t==bt?e.constructor:n,a=r?pn(r):"";if(a)switch(a){case Nm:return Ln;case Om:return st;case Mm:return sc;case Fm:return at;case Um:return fr}return t});function jT(e,t,r){for(var a=-1,c=r.length;++a<c;){var f=r[a],T=f.size;switch(f.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 eh(e){var t=e.match(sg);return t?t[1].split(ag):[]}function qu(e,t,r){t=Xt(t,e);for(var a=-1,c=t.length,f=!1;++a<c;){var T=yt(t[a]);if(!(f=e!=null&&r(e,T)))break;e=e[T]}return f||++a!=c?f:(c=e==null?0:e.length,!!c&&Oo(c)&&Dt(T,c)&&($(e)||dn(e)))}function th(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)?On(ao(e)):{}}function nh(e,t,r){var a=e.constructor;switch(t){case pr:return ws(e);case sr:case ar:return new a(+e);case Ln:return BT(e,r);case Ei:case Ci:case ki:case Pi:case Di:case Ri:case Ni:case Oi:case Mi:return Eu(e,r);case st:return new a;case cr:case lr:return new a(e);case ur:return WT(e);case at:return new a;case Yr:return GT(e)}}function rh(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(ig,`{
|
|
2
2
|
/* [wrapped with `+t+`] */
|
|
3
|
-
`)}function nh(e){return $(e)||dn(e)||!!(Jc&&e&&e[Jc])}function Dt(e,t){var r=typeof e;return t=t==null?$t:t,!!t&&(r=="number"||r!="symbol"&&gg.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"?Me(r)&&Dt(t,r.length):a=="string"&&t in r)?lt(r[t],e):!1}function ks(e,t){if($(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Ve(e)?!0:jd.test(e)||!Qd.test(e)||t!=null&&e in oe(t)}function rh(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ps(e){var t=Lo(e),r=l[t];if(typeof r!="function"||!(t in X.prototype))return!1;if(e===r)return!0;var a=Ls(r);return!!a&&e===a[0]}function oh(e){return!!Kc&&Kc in e}var ih=no?Rt:Ys;function _r(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Dn;return e===r}function Ku(e){return e===e&&!le(e)}function Yu(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==n||e in oe(r))}}function sh(e){var t=Ro(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,f=c<(ge|_e|_t),T=a==_t&&r==dt||a==_t&&r==ir&&e[7].length<=t[8]||a==(_t|ir)&&t[7].length<=t[8]&&r==dt;if(!(f||T))return e;a&ge&&(e[2]=t[2],c|=r&ge?0:rc);var h=t[3];if(h){var x=e[3];e[3]=x?ku(x,h,t[4]):h,e[4]=x?qt(e[3],E):t[4]}return h=t[5],h&&(x=e[5],e[5]=x?Pu(x,h,t[6]):h,e[6]=x?qt(e[5],E):t[6]),h=t[7],h&&(e[7]=h),a&_t&&(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 ch(e){var t=[];if(e!=null)for(var r in oe(e))t.push(r);return t}function uh(e){return oo.call(e)}function Zu(e,t,r){return t=Se(t===n?e.length-1:t,0),function(){for(var a=arguments,c=-1,f=Se(a.length-t,0),T=w(f);++c<f;)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 Xu(e,t){return t.length<2?e:ln(e,tt(t,0,-1))}function lh(e,t){for(var r=e.length,a=Ee(t.length,r),c=Oe(e);a--;){var f=t[a];e[a]=Dt(f,r)?c[f]:n}return e}function Ds(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Ju=ju(Su),br=_m||function(e,t){return ve.setTimeout(e,t)},Rs=ju(RT);function Qu(e,t,r){var a=t+"";return Rs(e,th(a,fh(QT(a),r)))}function ju(e){var t=0,r=0;return function(){var a=Cm(),c=Dd-(a-r);if(r=a,c>0){if(++t>=Pd)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Co(e,t){var r=-1,a=e.length,c=a-1;for(t=t===n?a:t;++r<t;){var f=ms(r,c),T=e[f];e[f]=e[r],e[r]=T}return e.length=t,e}var el=sh(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(eg,function(r,a,c,f){t.push(c?f.replace(cg,"$1"):a||r)}),t});function yt(e){if(typeof e=="string"||Ve(e))return e;var t=e+"";return t=="0"&&1/e==-rn?"-0":t}function pn(e){if(e!=null){try{return ro.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function fh(e,t){return Je(Ud,function(r){var a="_."+r[0];t&r[1]&&!Qr(e,a)&&e.push(a)}),e.sort()}function tl(e){if(e instanceof X)return e.clone();var t=new je(e.__wrapped__,e.__chain__);return t.__actions__=Oe(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function ph(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,f=0,T=w(lo(a/t));c<a;)T[f++]=tt(e,c,c+=t);return T}function dh(e){for(var t=-1,r=e==null?0:e.length,a=0,c=[];++t<r;){var f=e[t];f&&(c[a++]=f)}return c}function gh(){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 Vt($(r)?Oe(r):[r],be(t,1))}var mh=Y(function(e,t){return me(e)?Sr(e,be(t,1,me,!0)):[]}),Th=Y(function(e,t){var r=nt(t);return me(r)&&(r=n),me(e)?Sr(e,be(t,1,me,!0),M(r,2)):[]}),hh=Y(function(e,t){var r=nt(t);return me(r)&&(r=n),me(e)?Sr(e,be(t,1,me,!0),n,r):[]});function yh(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===n?1:H(t),tt(e,t<0?0:t,a)):[]}function xh(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===n?1:H(t),t=a-t,tt(e,0,t<0?0:t)):[]}function Sh(e,t){return e&&e.length?vo(e,M(t,3),!0,!0):[]}function vh(e,t){return e&&e.length?vo(e,M(t,3),!0):[]}function wh(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),gT(e,t,r,a)):[]}function nl(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)),jr(e,M(t,3),c)}function rl(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)),jr(e,M(t,3),c,!0)}function ol(e){var t=e==null?0:e.length;return t?be(e,1):[]}function Ah(e){var t=e==null?0:e.length;return t?be(e,rn):[]}function Ih(e,t){var r=e==null?0:e.length;return r?(t=t===n?1:H(t),be(e,t)):[]}function _h(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 il(e){return e&&e.length?e[0]:n}function bh(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)),Cn(e,t,c)}function Lh(e){var t=e==null?0:e.length;return t?tt(e,0,-1):[]}var Eh=Y(function(e){var t=ue(e,Ss);return t.length&&t[0]===e[0]?ls(t):[]}),Ch=Y(function(e){var t=nt(e),r=ue(e,Ss);return t===nt(r)?t=n:r.pop(),r.length&&r[0]===e[0]?ls(r,M(t,2)):[]}),kh=Y(function(e){var t=nt(e),r=ue(e,Ss);return t=typeof t=="function"?t:n,t&&r.pop(),r.length&&r[0]===e[0]?ls(r,n,t):[]});function Ph(e,t){return e==null?"":Lm.call(e,t)}function nt(e){var t=e==null?0:e.length;return t?e[t-1]:n}function Dh(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?fm(e,t,c):jr(e,Bc,c,!0)}function Rh(e,t){return e&&e.length?Tu(e,H(t)):n}var Nh=Y(sl);function sl(e,t){return e&&e.length&&t&&t.length?gs(e,t):e}function Oh(e,t,r){return e&&e.length&&t&&t.length?gs(e,t,M(r,2)):e}function Mh(e,t,r){return e&&e.length&&t&&t.length?gs(e,t,n,r):e}var Fh=Pt(function(e,t){var r=e==null?0:e.length,a=ss(e,t);return xu(e,ue(t,function(c){return Dt(c,r)?+c:c}).sort(Cu)),a});function Uh(e,t){var r=[];if(!(e&&e.length))return r;var a=-1,c=[],f=e.length;for(t=M(t,3);++a<f;){var T=e[a];t(T,a,e)&&(r.push(T),c.push(a))}return xu(e,c),r}function Ns(e){return e==null?e:Pm.call(e)}function Bh(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)),tt(e,t,r)):[]}function Wh(e,t){return So(e,t)}function Gh(e,t,r){return hs(e,t,M(r,2))}function $h(e,t){var r=e==null?0:e.length;if(r){var a=So(e,t);if(a<r&<(e[a],t))return a}return-1}function Hh(e,t){return So(e,t,!0)}function Vh(e,t,r){return hs(e,t,M(r,2),!0)}function qh(e,t){var r=e==null?0:e.length;if(r){var a=So(e,t,!0)-1;if(lt(e[a],t))return a}return-1}function zh(e){return e&&e.length?vu(e):[]}function Kh(e,t){return e&&e.length?vu(e,M(t,2)):[]}function Yh(e){var t=e==null?0:e.length;return t?tt(e,1,t):[]}function Zh(e,t,r){return e&&e.length?(t=r||t===n?1:H(t),tt(e,0,t<0?0:t)):[]}function Xh(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===n?1:H(t),t=a-t,tt(e,t<0?0:t,a)):[]}function Jh(e,t){return e&&e.length?vo(e,M(t,3),!1,!0):[]}function Qh(e,t){return e&&e.length?vo(e,M(t,3)):[]}var jh=Y(function(e){return Zt(be(e,1,me,!0))}),ey=Y(function(e){var t=nt(e);return me(t)&&(t=n),Zt(be(e,1,me,!0),M(t,2))}),ty=Y(function(e){var t=nt(e);return t=typeof t=="function"?t:n,Zt(be(e,1,me,!0),n,t)});function ny(e){return e&&e.length?Zt(e):[]}function ry(e,t){return e&&e.length?Zt(e,M(t,2)):[]}function oy(e,t){return t=typeof t=="function"?t:n,e&&e.length?Zt(e,n,t):[]}function Os(e){if(!(e&&e.length))return[];var t=0;return e=Ht(e,function(r){if(me(r))return t=Se(r.length,t),!0}),Qi(t,function(r){return ue(e,Zi(r))})}function al(e,t){if(!(e&&e.length))return[];var r=Os(e);return t==null?r:ue(r,function(a){return Ge(t,n,a)})}var iy=Y(function(e,t){return me(e)?Sr(e,t):[]}),sy=Y(function(e){return xs(Ht(e,me))}),ay=Y(function(e){var t=nt(e);return me(t)&&(t=n),xs(Ht(e,me),M(t,2))}),cy=Y(function(e){var t=nt(e);return t=typeof t=="function"?t:n,xs(Ht(e,me),n,t)}),uy=Y(Os);function ly(e,t){return _u(e||[],t||[],xr)}function fy(e,t){return _u(e||[],t||[],Ar)}var py=Y(function(e){var t=e.length,r=t>1?e[t-1]:n;return r=typeof r=="function"?(e.pop(),r):n,al(e,r)});function cl(e){var t=l(e);return t.__chain__=!0,t}function dy(e,t){return t(e),e}function ko(e,t){return t(e)}var gy=Pt(function(e){var t=e.length,r=t?e[0]:0,a=this.__wrapped__,c=function(f){return ss(f,e)};return t>1||this.__actions__.length||!(a instanceof X)||!Dt(r)?this.thru(c):(a=a.slice(r,+r+(t?1:0)),a.__actions__.push({func:ko,args:[c],thisArg:n}),new je(a,this.__chain__).thru(function(f){return t&&!f.length&&f.push(n),f}))});function my(){return cl(this)}function Ty(){return new je(this.value(),this.__chain__)}function hy(){this.__values__===n&&(this.__values__=wl(this.value()));var e=this.__index__>=this.__values__.length,t=e?n:this.__values__[this.__index__++];return{done:e,value:t}}function yy(){return this}function xy(e){for(var t,r=this;r instanceof mo;){var a=tl(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 Sy(){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:ko,args:[Ns],thisArg:n}),new je(t,this.__chain__)}return this.thru(Ns)}function vy(){return Iu(this.__wrapped__,this.__actions__)}var wy=wo(function(e,t,r){re.call(e,r)?++e[r]:Ct(e,r,1)});function Ay(e,t,r){var a=$(e)?Fc:dT;return r&&Re(e,t,r)&&(t=n),a(e,M(t,3))}function Iy(e,t){var r=$(e)?Ht:au;return r(e,M(t,3))}var _y=Ou(nl),by=Ou(rl);function Ly(e,t){return be(Po(e,t),1)}function Ey(e,t){return be(Po(e,t),rn)}function Cy(e,t,r){return r=r===n?1:H(r),be(Po(e,t),r)}function ul(e,t){var r=$(e)?Je:Yt;return r(e,M(t,3))}function ll(e,t){var r=$(e)?Yg:su;return r(e,M(t,3))}var ky=wo(function(e,t,r){re.call(e,r)?e[r].push(t):Ct(e,r,[t])});function Py(e,t,r,a){e=Me(e)?e:Wn(e),r=r&&!a?H(r):0;var c=e.length;return r<0&&(r=Se(c+r,0)),Mo(e)?r<=c&&e.indexOf(t,r)>-1:!!c&&Cn(e,t,r)>-1}var Dy=Y(function(e,t,r){var a=-1,c=typeof t=="function",f=Me(e)?w(e.length):[];return Yt(e,function(T){f[++a]=c?Ge(t,T,r):vr(T,t,r)}),f}),Ry=wo(function(e,t,r){Ct(e,r,t)});function Po(e,t){var r=$(e)?ue:du;return r(e,M(t,3))}function Ny(e,t,r,a){return e==null?[]:($(t)||(t=t==null?[]:[t]),r=a?n:r,$(r)||(r=r==null?[]:[r]),hu(e,t,r))}var Oy=wo(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function My(e,t,r){var a=$(e)?Ki:Gc,c=arguments.length<3;return a(e,M(t,4),r,c,Yt)}function Fy(e,t,r){var a=$(e)?Zg:Gc,c=arguments.length<3;return a(e,M(t,4),r,c,su)}function Uy(e,t){var r=$(e)?Ht:au;return r(e,No(M(t,3)))}function By(e){var t=$(e)?nu:PT;return t(e)}function Wy(e,t,r){(r?Re(e,t,r):t===n)?t=1:t=H(t);var a=$(e)?cT:DT;return a(e,t)}function Gy(e){var t=$(e)?uT:NT;return t(e)}function $y(e){if(e==null)return 0;if(Me(e))return Mo(e)?Pn(e):e.length;var t=Ce(e);return t==st||t==at?e.size:ps(e).length}function Hy(e,t,r){var a=$(e)?Yi:OT;return r&&Re(e,t,r)&&(t=n),a(e,M(t,3))}var Vy=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]]),hu(e,be(t,1),[])}),Do=Im||function(){return ve.Date.now()};function qy(e,t){if(typeof t!="function")throw new Qe(m);return e=H(e),function(){if(--e<1)return t.apply(this,arguments)}}function fl(e,t,r){return t=r?n:t,t=e&&t==null?e.length:t,kt(e,_t,n,n,n,n,t)}function pl(e,t){var r;if(typeof t!="function")throw new Qe(m);return e=H(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var Ms=Y(function(e,t,r){var a=ge;if(r.length){var c=qt(r,Un(Ms));a|=gt}return kt(e,a,t,r,c)}),dl=Y(function(e,t,r){var a=ge|_e;if(r.length){var c=qt(r,Un(dl));a|=gt}return kt(t,a,e,r,c)});function gl(e,t,r){t=r?n:t;var a=kt(e,dt,n,n,n,n,n,t);return a.placeholder=gl.placeholder,a}function ml(e,t,r){t=r?n:t;var a=kt(e,In,n,n,n,n,n,t);return a.placeholder=ml.placeholder,a}function Tl(e,t,r){var a,c,f,T,h,x,_=0,b=!1,L=!1,C=!0;if(typeof e!="function")throw new Qe(m);t=rt(t)||0,le(r)&&(b=!!r.leading,L="maxWait"in r,f=L?Se(rt(r.maxWait)||0,t):f,C="trailing"in r?!!r.trailing:C);function R(Te){var ft=a,Ot=c;return a=c=n,_=Te,T=e.apply(Ot,ft),T}function U(Te){return _=Te,h=br(Z,t),b?R(Te):T}function q(Te){var ft=Te-x,Ot=Te-_,Ol=t-ft;return L?Ee(Ol,f-Ot):Ol}function B(Te){var ft=Te-x,Ot=Te-_;return x===n||ft>=t||ft<0||L&&Ot>=f}function Z(){var Te=Do();if(B(Te))return J(Te);h=br(Z,q(Te))}function J(Te){return h=n,C&&a?R(Te):(a=c=n,T)}function qe(){h!==n&&bu(h),_=0,a=x=c=h=n}function Ne(){return h===n?T:J(Do())}function ze(){var Te=Do(),ft=B(Te);if(a=arguments,c=this,x=Te,ft){if(h===n)return U(x);if(L)return bu(h),h=br(Z,t),R(x)}return h===n&&(h=br(Z,t)),T}return ze.cancel=qe,ze.flush=Ne,ze}var zy=Y(function(e,t){return iu(e,1,t)}),Ky=Y(function(e,t,r){return iu(e,rt(t)||0,r)});function Yy(e){return kt(e,Li)}function Ro(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Qe(m);var r=function(){var a=arguments,c=t?t.apply(this,a):a[0],f=r.cache;if(f.has(c))return f.get(c);var T=e.apply(this,a);return r.cache=f.set(c,T)||f,T};return r.cache=new(Ro.Cache||Et),r}Ro.Cache=Et;function No(e){if(typeof e!="function")throw new Qe(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 Zy(e){return pl(2,e)}var Xy=MT(function(e,t){t=t.length==1&&$(t[0])?ue(t[0],$e(M())):ue(be(t,1),$e(M()));var r=t.length;return Y(function(a){for(var c=-1,f=Ee(a.length,r);++c<f;)a[c]=t[c].call(this,a[c]);return Ge(e,this,a)})}),Fs=Y(function(e,t){var r=qt(t,Un(Fs));return kt(e,gt,n,t,r)}),hl=Y(function(e,t){var r=qt(t,Un(hl));return kt(e,_n,n,t,r)}),Jy=Pt(function(e,t){return kt(e,ir,n,n,n,t)});function Qy(e,t){if(typeof e!="function")throw new Qe(m);return t=t===n?t:H(t),Y(e,t)}function jy(e,t){if(typeof e!="function")throw new Qe(m);return t=t==null?0:Se(H(t),0),Y(function(r){var a=r[t],c=Jt(r,0,t);return a&&Vt(c,a),Ge(e,this,c)})}function ex(e,t,r){var a=!0,c=!0;if(typeof e!="function")throw new Qe(m);return le(r)&&(a="leading"in r?!!r.leading:a,c="trailing"in r?!!r.trailing:c),Tl(e,t,{leading:a,maxWait:t,trailing:c})}function tx(e){return fl(e,1)}function nx(e,t){return Fs(vs(t),e)}function rx(){if(!arguments.length)return[];var e=arguments[0];return $(e)?e:[e]}function ox(e){return et(e,F)}function ix(e,t){return t=typeof t=="function"?t:n,et(e,F,t)}function sx(e){return et(e,N|F)}function ax(e,t){return t=typeof t=="function"?t:n,et(e,N|F,t)}function cx(e,t){return t==null||ou(e,t,we(t))}function lt(e,t){return e===t||e!==e&&t!==t}var ux=bo(us),lx=bo(function(e,t){return e>=t}),dn=lu(function(){return arguments}())?lu:function(e){return pe(e)&&re.call(e,"callee")&&!Xc.call(e,"callee")},$=w.isArray,fx=Pc?$e(Pc):xT;function Me(e){return e!=null&&Oo(e.length)&&!Rt(e)}function me(e){return pe(e)&&Me(e)}function px(e){return e===!0||e===!1||pe(e)&&De(e)==sr}var Qt=bm||Ys,dx=Dc?$e(Dc):ST;function gx(e){return pe(e)&&e.nodeType===1&&!Lr(e)}function mx(e){if(e==null)return!0;if(Me(e)&&($(e)||typeof e=="string"||typeof e.splice=="function"||Qt(e)||Bn(e)||dn(e)))return!e.length;var t=Ce(e);if(t==st||t==at)return!e.size;if(_r(e))return!ps(e).length;for(var r in e)if(re.call(e,r))return!1;return!0}function Tx(e,t){return wr(e,t)}function hx(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 Us(e){if(!pe(e))return!1;var t=De(e);return t==zr||t==Wd||typeof e.message=="string"&&typeof e.name=="string"&&!Lr(e)}function yx(e){return typeof e=="number"&&Qc(e)}function Rt(e){if(!le(e))return!1;var t=De(e);return t==Kr||t==ic||t==Bd||t==$d}function yl(e){return typeof e=="number"&&e==H(e)}function Oo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=$t}function le(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function pe(e){return e!=null&&typeof e=="object"}var xl=Rc?$e(Rc):wT;function xx(e,t){return e===t||fs(e,t,Es(t))}function Sx(e,t,r){return r=typeof r=="function"?r:n,fs(e,t,Es(t),r)}function vx(e){return Sl(e)&&e!=+e}function wx(e){if(ih(e))throw new G(u);return fu(e)}function Ax(e){return e===null}function Ix(e){return e==null}function Sl(e){return typeof e=="number"||pe(e)&&De(e)==cr}function Lr(e){if(!pe(e)||De(e)!=bt)return!1;var t=ao(e);if(t===null)return!0;var r=re.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&ro.call(r)==Sm}var Bs=Nc?$e(Nc):AT;function _x(e){return yl(e)&&e>=-$t&&e<=$t}var vl=Oc?$e(Oc):IT;function Mo(e){return typeof e=="string"||!$(e)&&pe(e)&&De(e)==lr}function Ve(e){return typeof e=="symbol"||pe(e)&&De(e)==Yr}var Bn=Mc?$e(Mc):_T;function bx(e){return e===n}function Lx(e){return pe(e)&&Ce(e)==fr}function Ex(e){return pe(e)&&De(e)==Vd}var Cx=bo(ds),kx=bo(function(e,t){return e<=t});function wl(e){if(!e)return[];if(Me(e))return Mo(e)?ct(e):Oe(e);if(gr&&e[gr])return cm(e[gr]());var t=Ce(e),r=t==st?es:t==at?eo:Wn;return r(e)}function Nt(e){if(!e)return e===0?e:0;if(e=rt(e),e===rn||e===-rn){var t=e<0?-1:1;return t*Od}return e===e?e:0}function H(e){var t=Nt(e),r=t%1;return t===t?r?t-r:t:0}function Al(e){return e?un(H(e),0,mt):0}function rt(e){if(typeof e=="number")return e;if(Ve(e))return Vr;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=$c(e);var r=fg.test(e);return r||dg.test(e)?qg(e.slice(2),r?2:8):lg.test(e)?Vr:+e}function Il(e){return ht(e,Fe(e))}function Px(e){return e?un(H(e),-$t,$t):e===0?e:0}function te(e){return e==null?"":He(e)}var Dx=Mn(function(e,t){if(_r(t)||Me(t)){ht(t,we(t),e);return}for(var r in t)re.call(t,r)&&xr(e,r,t[r])}),_l=Mn(function(e,t){ht(t,Fe(t),e)}),Fo=Mn(function(e,t,r,a){ht(t,Fe(t),e,a)}),Rx=Mn(function(e,t,r,a){ht(t,we(t),e,a)}),Nx=Pt(ss);function Ox(e,t){var r=On(e);return t==null?r:ru(r,t)}var Mx=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 f=t[r],T=Fe(f),h=-1,x=T.length;++h<x;){var _=T[h],b=e[_];(b===n||lt(b,Dn[_])&&!re.call(e,_))&&(e[_]=f[_])}return e}),Fx=Y(function(e){return e.push(n,$u),Ge(bl,n,e)});function Ux(e,t){return Uc(e,M(t,3),Tt)}function Bx(e,t){return Uc(e,M(t,3),cs)}function Wx(e,t){return e==null?e:as(e,M(t,3),Fe)}function Gx(e,t){return e==null?e:cu(e,M(t,3),Fe)}function $x(e,t){return e&&Tt(e,M(t,3))}function Hx(e,t){return e&&cs(e,M(t,3))}function Vx(e){return e==null?[]:yo(e,we(e))}function qx(e){return e==null?[]:yo(e,Fe(e))}function Ws(e,t,r){var a=e==null?n:ln(e,t);return a===n?r:a}function zx(e,t){return e!=null&&qu(e,t,mT)}function Gs(e,t){return e!=null&&qu(e,t,TT)}var Kx=Fu(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=oo.call(t)),e[t]=r},Hs(Ue)),Yx=Fu(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=oo.call(t)),re.call(e,t)?e[t].push(r):e[t]=[r]},M),Zx=Y(vr);function we(e){return Me(e)?tu(e):ps(e)}function Fe(e){return Me(e)?tu(e,!0):bT(e)}function Xx(e,t){var r={};return t=M(t,3),Tt(e,function(a,c,f){Ct(r,t(a,c,f),a)}),r}function Jx(e,t){var r={};return t=M(t,3),Tt(e,function(a,c,f){Ct(r,c,t(a,c,f))}),r}var Qx=Mn(function(e,t,r){xo(e,t,r)}),bl=Mn(function(e,t,r,a){xo(e,t,r,a)}),jx=Pt(function(e,t){var r={};if(e==null)return r;var a=!1;t=ue(t,function(f){return f=Xt(f,e),a||(a=f.length>1),f}),ht(e,bs(e),r),a&&(r=et(r,N|V|F,KT));for(var c=t.length;c--;)ys(r,t[c]);return r});function eS(e,t){return Ll(e,No(M(t)))}var tS=Pt(function(e,t){return e==null?{}:ET(e,t)});function Ll(e,t){if(e==null)return{};var r=ue(bs(e),function(a){return[a]});return t=M(t),yu(e,r,function(a,c){return t(a,c[0])})}function nS(e,t,r){t=Xt(t,e);var a=-1,c=t.length;for(c||(c=1,e=n);++a<c;){var f=e==null?n:e[yt(t[a])];f===n&&(a=c,f=r),e=Rt(f)?f.call(e):f}return e}function rS(e,t,r){return e==null?e:Ar(e,t,r)}function oS(e,t,r,a){return a=typeof a=="function"?a:n,e==null?e:Ar(e,t,r,a)}var El=Wu(we),Cl=Wu(Fe);function iS(e,t,r){var a=$(e),c=a||Qt(e)||Bn(e);if(t=M(t,4),r==null){var f=e&&e.constructor;c?r=a?new f:[]:le(e)?r=Rt(f)?On(ao(e)):{}:r={}}return(c?Je:Tt)(e,function(T,h,x){return t(r,T,h,x)}),r}function sS(e,t){return e==null?!0:ys(e,t)}function aS(e,t,r){return e==null?e:Au(e,t,vs(r))}function cS(e,t,r,a){return a=typeof a=="function"?a:n,e==null?e:Au(e,t,vs(r),a)}function Wn(e){return e==null?[]:ji(e,we(e))}function uS(e){return e==null?[]:ji(e,Fe(e))}function lS(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=rt(r),r=r===r?r:0),t!==n&&(t=rt(t),t=t===t?t:0),un(rt(e),t,r)}function fS(e,t,r){return t=Nt(t),r===n?(r=t,t=0):r=Nt(r),e=rt(e),hT(e,t,r)}function pS(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=Nt(e),t===n?(t=e,e=0):t=Nt(t)),e>t){var a=e;e=t,t=a}if(r||e%1||t%1){var c=jc();return Ee(e+c*(t-e+Vg("1e-"+((c+"").length-1))),t)}return ms(e,t)}var dS=Fn(function(e,t,r){return t=t.toLowerCase(),e+(r?kl(t):t)});function kl(e){return $s(te(e).toLowerCase())}function Pl(e){return e=te(e),e&&e.replace(mg,rm).replace(Ng,"")}function gS(e,t,r){e=te(e),t=He(t);var a=e.length;r=r===n?a:un(H(r),0,a);var c=r;return r-=t.length,r>=0&&e.slice(r,c)==t}function mS(e){return e=te(e),e&&Zd.test(e)?e.replace(cc,om):e}function TS(e){return e=te(e),e&&tg.test(e)?e.replace(Fi,"\\$&"):e}var hS=Fn(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),yS=Fn(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),xS=Nu("toLowerCase");function SS(e,t,r){e=te(e),t=H(t);var a=t?Pn(e):0;if(!t||a>=t)return e;var c=(t-a)/2;return _o(fo(c),r)+e+_o(lo(c),r)}function vS(e,t,r){e=te(e),t=H(t);var a=t?Pn(e):0;return t&&a<t?e+_o(t-a,r):e}function wS(e,t,r){e=te(e),t=H(t);var a=t?Pn(e):0;return t&&a<t?_o(t-a,r)+e:e}function AS(e,t,r){return r||t==null?t=0:t&&(t=+t),km(te(e).replace(Ui,""),t||0)}function IS(e,t,r){return(r?Re(e,t,r):t===n)?t=1:t=H(t),Ts(te(e),t)}function _S(){var e=arguments,t=te(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var bS=Fn(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function LS(e,t,r){return r&&typeof r!="number"&&Re(e,t,r)&&(t=r=n),r=r===n?mt:r>>>0,r?(e=te(e),e&&(typeof t=="string"||t!=null&&!Bs(t))&&(t=He(t),!t&&kn(e))?Jt(ct(e),0,r):e.split(t,r)):[]}var ES=Fn(function(e,t,r){return e+(r?" ":"")+$s(t)});function CS(e,t,r){return e=te(e),r=r==null?0:un(H(r),0,e.length),t=He(t),e.slice(r,r+t.length)==t}function kS(e,t,r){var a=l.templateSettings;r&&Re(e,t,r)&&(t=n),e=te(e),t=Fo({},t,a,Gu);var c=Fo({},t.imports,a.imports,Gu),f=we(c),T=ji(c,f),h,x,_=0,b=t.interpolate||Zr,L="__p += '",C=ts((t.escape||Zr).source+"|"+b.source+"|"+(b===uc?ug:Zr).source+"|"+(t.evaluate||Zr).source+"|$","g"),R="//# sourceURL="+(re.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Bg+"]")+`
|
|
4
|
-
`;e.replace(C,function(B,Z,J,qe,Ne,ze){return J||(J=qe),L+=e.slice(_,ze).replace(
|
|
3
|
+
`)}function oh(e){return $(e)||dn(e)||!!(Jc&&e&&e[Jc])}function Dt(e,t){var r=typeof e;return t=t==null?$t:t,!!t&&(r=="number"||r!="symbol"&&Tg.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"?Me(r)&&Dt(t,r.length):a=="string"&&t in r)?lt(r[t],e):!1}function ks(e,t){if($(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Ve(e)?!0:tg.test(e)||!eg.test(e)||t!=null&&e in oe(t)}function ih(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ps(e){var t=Lo(e),r=l[t];if(typeof r!="function"||!(t in X.prototype))return!1;if(e===r)return!0;var a=Ls(r);return!!a&&e===a[0]}function sh(e){return!!Kc&&Kc in e}var ah=no?Rt:Ys;function _r(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Dn;return e===r}function Ku(e){return e===e&&!le(e)}function Yu(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==n||e in oe(r))}}function ch(e){var t=Ro(e,function(a){return r.size===k&&r.clear(),a}),r=t.cache;return t}function uh(e,t){var r=e[1],a=t[1],c=r|a,f=c<(ge|_e|_t),T=a==_t&&r==dt||a==_t&&r==ir&&e[7].length<=t[8]||a==(_t|ir)&&t[7].length<=t[8]&&r==dt;if(!(f||T))return e;a&ge&&(e[2]=t[2],c|=r&ge?0:rc);var h=t[3];if(h){var x=e[3];e[3]=x?ku(x,h,t[4]):h,e[4]=x?qt(e[3],E):t[4]}return h=t[5],h&&(x=e[5],e[5]=x?Pu(x,h,t[6]):h,e[6]=x?qt(e[5],E):t[6]),h=t[7],h&&(e[7]=h),a&_t&&(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 lh(e){var t=[];if(e!=null)for(var r in oe(e))t.push(r);return t}function fh(e){return oo.call(e)}function Zu(e,t,r){return t=Se(t===n?e.length-1:t,0),function(){for(var a=arguments,c=-1,f=Se(a.length-t,0),T=w(f);++c<f;)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 Xu(e,t){return t.length<2?e:ln(e,tt(t,0,-1))}function ph(e,t){for(var r=e.length,a=Ee(t.length,r),c=Oe(e);a--;){var f=t[a];e[a]=Dt(f,r)?c[f]:n}return e}function Ds(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Ju=ju(Su),br=Lm||function(e,t){return ve.setTimeout(e,t)},Rs=ju(OT);function Qu(e,t,r){var a=t+"";return Rs(e,rh(a,dh(eh(a),r)))}function ju(e){var t=0,r=0;return function(){var a=Pm(),c=Nd-(a-r);if(r=a,c>0){if(++t>=Rd)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Co(e,t){var r=-1,a=e.length,c=a-1;for(t=t===n?a:t;++r<t;){var f=ms(r,c),T=e[f];e[f]=e[r],e[r]=T}return e.length=t,e}var el=ch(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ng,function(r,a,c,f){t.push(c?f.replace(lg,"$1"):a||r)}),t});function yt(e){if(typeof e=="string"||Ve(e))return e;var t=e+"";return t=="0"&&1/e==-rn?"-0":t}function pn(e){if(e!=null){try{return ro.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function dh(e,t){return Je(Wd,function(r){var a="_."+r[0];t&r[1]&&!Qr(e,a)&&e.push(a)}),e.sort()}function tl(e){if(e instanceof X)return e.clone();var t=new je(e.__wrapped__,e.__chain__);return t.__actions__=Oe(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function gh(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,f=0,T=w(lo(a/t));c<a;)T[f++]=tt(e,c,c+=t);return T}function mh(e){for(var t=-1,r=e==null?0:e.length,a=0,c=[];++t<r;){var f=e[t];f&&(c[a++]=f)}return c}function Th(){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 Vt($(r)?Oe(r):[r],be(t,1))}var hh=Y(function(e,t){return me(e)?Sr(e,be(t,1,me,!0)):[]}),yh=Y(function(e,t){var r=nt(t);return me(r)&&(r=n),me(e)?Sr(e,be(t,1,me,!0),M(r,2)):[]}),xh=Y(function(e,t){var r=nt(t);return me(r)&&(r=n),me(e)?Sr(e,be(t,1,me,!0),n,r):[]});function Sh(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===n?1:H(t),tt(e,t<0?0:t,a)):[]}function vh(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===n?1:H(t),t=a-t,tt(e,0,t<0?0:t)):[]}function wh(e,t){return e&&e.length?vo(e,M(t,3),!0,!0):[]}function Ah(e,t){return e&&e.length?vo(e,M(t,3),!0):[]}function Ih(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),TT(e,t,r,a)):[]}function nl(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)),jr(e,M(t,3),c)}function rl(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)),jr(e,M(t,3),c,!0)}function ol(e){var t=e==null?0:e.length;return t?be(e,1):[]}function _h(e){var t=e==null?0:e.length;return t?be(e,rn):[]}function bh(e,t){var r=e==null?0:e.length;return r?(t=t===n?1:H(t),be(e,t)):[]}function Lh(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 il(e){return e&&e.length?e[0]:n}function Eh(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)),Cn(e,t,c)}function Ch(e){var t=e==null?0:e.length;return t?tt(e,0,-1):[]}var kh=Y(function(e){var t=ue(e,Ss);return t.length&&t[0]===e[0]?ls(t):[]}),Ph=Y(function(e){var t=nt(e),r=ue(e,Ss);return t===nt(r)?t=n:r.pop(),r.length&&r[0]===e[0]?ls(r,M(t,2)):[]}),Dh=Y(function(e){var t=nt(e),r=ue(e,Ss);return t=typeof t=="function"?t:n,t&&r.pop(),r.length&&r[0]===e[0]?ls(r,n,t):[]});function Rh(e,t){return e==null?"":Cm.call(e,t)}function nt(e){var t=e==null?0:e.length;return t?e[t-1]:n}function Nh(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?dm(e,t,c):jr(e,Bc,c,!0)}function Oh(e,t){return e&&e.length?Tu(e,H(t)):n}var Mh=Y(sl);function sl(e,t){return e&&e.length&&t&&t.length?gs(e,t):e}function Fh(e,t,r){return e&&e.length&&t&&t.length?gs(e,t,M(r,2)):e}function Uh(e,t,r){return e&&e.length&&t&&t.length?gs(e,t,n,r):e}var Bh=Pt(function(e,t){var r=e==null?0:e.length,a=ss(e,t);return xu(e,ue(t,function(c){return Dt(c,r)?+c:c}).sort(Cu)),a});function Wh(e,t){var r=[];if(!(e&&e.length))return r;var a=-1,c=[],f=e.length;for(t=M(t,3);++a<f;){var T=e[a];t(T,a,e)&&(r.push(T),c.push(a))}return xu(e,c),r}function Ns(e){return e==null?e:Rm.call(e)}function Gh(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)),tt(e,t,r)):[]}function $h(e,t){return So(e,t)}function Hh(e,t,r){return hs(e,t,M(r,2))}function Vh(e,t){var r=e==null?0:e.length;if(r){var a=So(e,t);if(a<r&<(e[a],t))return a}return-1}function qh(e,t){return So(e,t,!0)}function zh(e,t,r){return hs(e,t,M(r,2),!0)}function Kh(e,t){var r=e==null?0:e.length;if(r){var a=So(e,t,!0)-1;if(lt(e[a],t))return a}return-1}function Yh(e){return e&&e.length?vu(e):[]}function Zh(e,t){return e&&e.length?vu(e,M(t,2)):[]}function Xh(e){var t=e==null?0:e.length;return t?tt(e,1,t):[]}function Jh(e,t,r){return e&&e.length?(t=r||t===n?1:H(t),tt(e,0,t<0?0:t)):[]}function Qh(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===n?1:H(t),t=a-t,tt(e,t<0?0:t,a)):[]}function jh(e,t){return e&&e.length?vo(e,M(t,3),!1,!0):[]}function ey(e,t){return e&&e.length?vo(e,M(t,3)):[]}var ty=Y(function(e){return Zt(be(e,1,me,!0))}),ny=Y(function(e){var t=nt(e);return me(t)&&(t=n),Zt(be(e,1,me,!0),M(t,2))}),ry=Y(function(e){var t=nt(e);return t=typeof t=="function"?t:n,Zt(be(e,1,me,!0),n,t)});function oy(e){return e&&e.length?Zt(e):[]}function iy(e,t){return e&&e.length?Zt(e,M(t,2)):[]}function sy(e,t){return t=typeof t=="function"?t:n,e&&e.length?Zt(e,n,t):[]}function Os(e){if(!(e&&e.length))return[];var t=0;return e=Ht(e,function(r){if(me(r))return t=Se(r.length,t),!0}),Qi(t,function(r){return ue(e,Zi(r))})}function al(e,t){if(!(e&&e.length))return[];var r=Os(e);return t==null?r:ue(r,function(a){return Ge(t,n,a)})}var ay=Y(function(e,t){return me(e)?Sr(e,t):[]}),cy=Y(function(e){return xs(Ht(e,me))}),uy=Y(function(e){var t=nt(e);return me(t)&&(t=n),xs(Ht(e,me),M(t,2))}),ly=Y(function(e){var t=nt(e);return t=typeof t=="function"?t:n,xs(Ht(e,me),n,t)}),fy=Y(Os);function py(e,t){return _u(e||[],t||[],xr)}function dy(e,t){return _u(e||[],t||[],Ar)}var gy=Y(function(e){var t=e.length,r=t>1?e[t-1]:n;return r=typeof r=="function"?(e.pop(),r):n,al(e,r)});function cl(e){var t=l(e);return t.__chain__=!0,t}function my(e,t){return t(e),e}function ko(e,t){return t(e)}var Ty=Pt(function(e){var t=e.length,r=t?e[0]:0,a=this.__wrapped__,c=function(f){return ss(f,e)};return t>1||this.__actions__.length||!(a instanceof X)||!Dt(r)?this.thru(c):(a=a.slice(r,+r+(t?1:0)),a.__actions__.push({func:ko,args:[c],thisArg:n}),new je(a,this.__chain__).thru(function(f){return t&&!f.length&&f.push(n),f}))});function hy(){return cl(this)}function yy(){return new je(this.value(),this.__chain__)}function xy(){this.__values__===n&&(this.__values__=wl(this.value()));var e=this.__index__>=this.__values__.length,t=e?n:this.__values__[this.__index__++];return{done:e,value:t}}function Sy(){return this}function vy(e){for(var t,r=this;r instanceof mo;){var a=tl(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 wy(){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:ko,args:[Ns],thisArg:n}),new je(t,this.__chain__)}return this.thru(Ns)}function Ay(){return Iu(this.__wrapped__,this.__actions__)}var Iy=wo(function(e,t,r){re.call(e,r)?++e[r]:Ct(e,r,1)});function _y(e,t,r){var a=$(e)?Fc:mT;return r&&Re(e,t,r)&&(t=n),a(e,M(t,3))}function by(e,t){var r=$(e)?Ht:au;return r(e,M(t,3))}var Ly=Ou(nl),Ey=Ou(rl);function Cy(e,t){return be(Po(e,t),1)}function ky(e,t){return be(Po(e,t),rn)}function Py(e,t,r){return r=r===n?1:H(r),be(Po(e,t),r)}function ul(e,t){var r=$(e)?Je:Yt;return r(e,M(t,3))}function ll(e,t){var r=$(e)?Xg:su;return r(e,M(t,3))}var Dy=wo(function(e,t,r){re.call(e,r)?e[r].push(t):Ct(e,r,[t])});function Ry(e,t,r,a){e=Me(e)?e:Wn(e),r=r&&!a?H(r):0;var c=e.length;return r<0&&(r=Se(c+r,0)),Mo(e)?r<=c&&e.indexOf(t,r)>-1:!!c&&Cn(e,t,r)>-1}var Ny=Y(function(e,t,r){var a=-1,c=typeof t=="function",f=Me(e)?w(e.length):[];return Yt(e,function(T){f[++a]=c?Ge(t,T,r):vr(T,t,r)}),f}),Oy=wo(function(e,t,r){Ct(e,r,t)});function Po(e,t){var r=$(e)?ue:du;return r(e,M(t,3))}function My(e,t,r,a){return e==null?[]:($(t)||(t=t==null?[]:[t]),r=a?n:r,$(r)||(r=r==null?[]:[r]),hu(e,t,r))}var Fy=wo(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function Uy(e,t,r){var a=$(e)?Ki:Gc,c=arguments.length<3;return a(e,M(t,4),r,c,Yt)}function By(e,t,r){var a=$(e)?Jg:Gc,c=arguments.length<3;return a(e,M(t,4),r,c,su)}function Wy(e,t){var r=$(e)?Ht:au;return r(e,No(M(t,3)))}function Gy(e){var t=$(e)?nu:RT;return t(e)}function $y(e,t,r){(r?Re(e,t,r):t===n)?t=1:t=H(t);var a=$(e)?lT:NT;return a(e,t)}function Hy(e){var t=$(e)?fT:MT;return t(e)}function Vy(e){if(e==null)return 0;if(Me(e))return Mo(e)?Pn(e):e.length;var t=Ce(e);return t==st||t==at?e.size:ps(e).length}function qy(e,t,r){var a=$(e)?Yi:FT;return r&&Re(e,t,r)&&(t=n),a(e,M(t,3))}var zy=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]]),hu(e,be(t,1),[])}),Do=bm||function(){return ve.Date.now()};function Ky(e,t){if(typeof t!="function")throw new Qe(m);return e=H(e),function(){if(--e<1)return t.apply(this,arguments)}}function fl(e,t,r){return t=r?n:t,t=e&&t==null?e.length:t,kt(e,_t,n,n,n,n,t)}function pl(e,t){var r;if(typeof t!="function")throw new Qe(m);return e=H(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var Ms=Y(function(e,t,r){var a=ge;if(r.length){var c=qt(r,Un(Ms));a|=gt}return kt(e,a,t,r,c)}),dl=Y(function(e,t,r){var a=ge|_e;if(r.length){var c=qt(r,Un(dl));a|=gt}return kt(t,a,e,r,c)});function gl(e,t,r){t=r?n:t;var a=kt(e,dt,n,n,n,n,n,t);return a.placeholder=gl.placeholder,a}function ml(e,t,r){t=r?n:t;var a=kt(e,In,n,n,n,n,n,t);return a.placeholder=ml.placeholder,a}function Tl(e,t,r){var a,c,f,T,h,x,_=0,b=!1,L=!1,C=!0;if(typeof e!="function")throw new Qe(m);t=rt(t)||0,le(r)&&(b=!!r.leading,L="maxWait"in r,f=L?Se(rt(r.maxWait)||0,t):f,C="trailing"in r?!!r.trailing:C);function R(Te){var ft=a,Ot=c;return a=c=n,_=Te,T=e.apply(Ot,ft),T}function U(Te){return _=Te,h=br(Z,t),b?R(Te):T}function q(Te){var ft=Te-x,Ot=Te-_,Ol=t-ft;return L?Ee(Ol,f-Ot):Ol}function B(Te){var ft=Te-x,Ot=Te-_;return x===n||ft>=t||ft<0||L&&Ot>=f}function Z(){var Te=Do();if(B(Te))return J(Te);h=br(Z,q(Te))}function J(Te){return h=n,C&&a?R(Te):(a=c=n,T)}function qe(){h!==n&&bu(h),_=0,a=x=c=h=n}function Ne(){return h===n?T:J(Do())}function ze(){var Te=Do(),ft=B(Te);if(a=arguments,c=this,x=Te,ft){if(h===n)return U(x);if(L)return bu(h),h=br(Z,t),R(x)}return h===n&&(h=br(Z,t)),T}return ze.cancel=qe,ze.flush=Ne,ze}var Yy=Y(function(e,t){return iu(e,1,t)}),Zy=Y(function(e,t,r){return iu(e,rt(t)||0,r)});function Xy(e){return kt(e,Li)}function Ro(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Qe(m);var r=function(){var a=arguments,c=t?t.apply(this,a):a[0],f=r.cache;if(f.has(c))return f.get(c);var T=e.apply(this,a);return r.cache=f.set(c,T)||f,T};return r.cache=new(Ro.Cache||Et),r}Ro.Cache=Et;function No(e){if(typeof e!="function")throw new Qe(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 Jy(e){return pl(2,e)}var Qy=UT(function(e,t){t=t.length==1&&$(t[0])?ue(t[0],$e(M())):ue(be(t,1),$e(M()));var r=t.length;return Y(function(a){for(var c=-1,f=Ee(a.length,r);++c<f;)a[c]=t[c].call(this,a[c]);return Ge(e,this,a)})}),Fs=Y(function(e,t){var r=qt(t,Un(Fs));return kt(e,gt,n,t,r)}),hl=Y(function(e,t){var r=qt(t,Un(hl));return kt(e,_n,n,t,r)}),jy=Pt(function(e,t){return kt(e,ir,n,n,n,t)});function ex(e,t){if(typeof e!="function")throw new Qe(m);return t=t===n?t:H(t),Y(e,t)}function tx(e,t){if(typeof e!="function")throw new Qe(m);return t=t==null?0:Se(H(t),0),Y(function(r){var a=r[t],c=Jt(r,0,t);return a&&Vt(c,a),Ge(e,this,c)})}function nx(e,t,r){var a=!0,c=!0;if(typeof e!="function")throw new Qe(m);return le(r)&&(a="leading"in r?!!r.leading:a,c="trailing"in r?!!r.trailing:c),Tl(e,t,{leading:a,maxWait:t,trailing:c})}function rx(e){return fl(e,1)}function ox(e,t){return Fs(vs(t),e)}function ix(){if(!arguments.length)return[];var e=arguments[0];return $(e)?e:[e]}function sx(e){return et(e,F)}function ax(e,t){return t=typeof t=="function"?t:n,et(e,F,t)}function cx(e){return et(e,N|F)}function ux(e,t){return t=typeof t=="function"?t:n,et(e,N|F,t)}function lx(e,t){return t==null||ou(e,t,we(t))}function lt(e,t){return e===t||e!==e&&t!==t}var fx=bo(us),px=bo(function(e,t){return e>=t}),dn=lu(function(){return arguments}())?lu:function(e){return pe(e)&&re.call(e,"callee")&&!Xc.call(e,"callee")},$=w.isArray,dx=Pc?$e(Pc):vT;function Me(e){return e!=null&&Oo(e.length)&&!Rt(e)}function me(e){return pe(e)&&Me(e)}function gx(e){return e===!0||e===!1||pe(e)&&De(e)==sr}var Qt=Em||Ys,mx=Dc?$e(Dc):wT;function Tx(e){return pe(e)&&e.nodeType===1&&!Lr(e)}function hx(e){if(e==null)return!0;if(Me(e)&&($(e)||typeof e=="string"||typeof e.splice=="function"||Qt(e)||Bn(e)||dn(e)))return!e.length;var t=Ce(e);if(t==st||t==at)return!e.size;if(_r(e))return!ps(e).length;for(var r in e)if(re.call(e,r))return!1;return!0}function yx(e,t){return wr(e,t)}function xx(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 Us(e){if(!pe(e))return!1;var t=De(e);return t==zr||t==$d||typeof e.message=="string"&&typeof e.name=="string"&&!Lr(e)}function Sx(e){return typeof e=="number"&&Qc(e)}function Rt(e){if(!le(e))return!1;var t=De(e);return t==Kr||t==ic||t==Gd||t==Vd}function yl(e){return typeof e=="number"&&e==H(e)}function Oo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=$t}function le(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function pe(e){return e!=null&&typeof e=="object"}var xl=Rc?$e(Rc):IT;function vx(e,t){return e===t||fs(e,t,Es(t))}function wx(e,t,r){return r=typeof r=="function"?r:n,fs(e,t,Es(t),r)}function Ax(e){return Sl(e)&&e!=+e}function Ix(e){if(ah(e))throw new G(u);return fu(e)}function _x(e){return e===null}function bx(e){return e==null}function Sl(e){return typeof e=="number"||pe(e)&&De(e)==cr}function Lr(e){if(!pe(e)||De(e)!=bt)return!1;var t=ao(e);if(t===null)return!0;var r=re.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&ro.call(r)==wm}var Bs=Nc?$e(Nc):_T;function Lx(e){return yl(e)&&e>=-$t&&e<=$t}var vl=Oc?$e(Oc):bT;function Mo(e){return typeof e=="string"||!$(e)&&pe(e)&&De(e)==lr}function Ve(e){return typeof e=="symbol"||pe(e)&&De(e)==Yr}var Bn=Mc?$e(Mc):LT;function Ex(e){return e===n}function Cx(e){return pe(e)&&Ce(e)==fr}function kx(e){return pe(e)&&De(e)==zd}var Px=bo(ds),Dx=bo(function(e,t){return e<=t});function wl(e){if(!e)return[];if(Me(e))return Mo(e)?ct(e):Oe(e);if(gr&&e[gr])return lm(e[gr]());var t=Ce(e),r=t==st?es:t==at?eo:Wn;return r(e)}function Nt(e){if(!e)return e===0?e:0;if(e=rt(e),e===rn||e===-rn){var t=e<0?-1:1;return t*Fd}return e===e?e:0}function H(e){var t=Nt(e),r=t%1;return t===t?r?t-r:t:0}function Al(e){return e?un(H(e),0,mt):0}function rt(e){if(typeof e=="number")return e;if(Ve(e))return Vr;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=$c(e);var r=dg.test(e);return r||mg.test(e)?Kg(e.slice(2),r?2:8):pg.test(e)?Vr:+e}function Il(e){return ht(e,Fe(e))}function Rx(e){return e?un(H(e),-$t,$t):e===0?e:0}function te(e){return e==null?"":He(e)}var Nx=Mn(function(e,t){if(_r(t)||Me(t)){ht(t,we(t),e);return}for(var r in t)re.call(t,r)&&xr(e,r,t[r])}),_l=Mn(function(e,t){ht(t,Fe(t),e)}),Fo=Mn(function(e,t,r,a){ht(t,Fe(t),e,a)}),Ox=Mn(function(e,t,r,a){ht(t,we(t),e,a)}),Mx=Pt(ss);function Fx(e,t){var r=On(e);return t==null?r:ru(r,t)}var Ux=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 f=t[r],T=Fe(f),h=-1,x=T.length;++h<x;){var _=T[h],b=e[_];(b===n||lt(b,Dn[_])&&!re.call(e,_))&&(e[_]=f[_])}return e}),Bx=Y(function(e){return e.push(n,$u),Ge(bl,n,e)});function Wx(e,t){return Uc(e,M(t,3),Tt)}function Gx(e,t){return Uc(e,M(t,3),cs)}function $x(e,t){return e==null?e:as(e,M(t,3),Fe)}function Hx(e,t){return e==null?e:cu(e,M(t,3),Fe)}function Vx(e,t){return e&&Tt(e,M(t,3))}function qx(e,t){return e&&cs(e,M(t,3))}function zx(e){return e==null?[]:yo(e,we(e))}function Kx(e){return e==null?[]:yo(e,Fe(e))}function Ws(e,t,r){var a=e==null?n:ln(e,t);return a===n?r:a}function Yx(e,t){return e!=null&&qu(e,t,hT)}function Gs(e,t){return e!=null&&qu(e,t,yT)}var Zx=Fu(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=oo.call(t)),e[t]=r},Hs(Ue)),Xx=Fu(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=oo.call(t)),re.call(e,t)?e[t].push(r):e[t]=[r]},M),Jx=Y(vr);function we(e){return Me(e)?tu(e):ps(e)}function Fe(e){return Me(e)?tu(e,!0):ET(e)}function Qx(e,t){var r={};return t=M(t,3),Tt(e,function(a,c,f){Ct(r,t(a,c,f),a)}),r}function jx(e,t){var r={};return t=M(t,3),Tt(e,function(a,c,f){Ct(r,c,t(a,c,f))}),r}var eS=Mn(function(e,t,r){xo(e,t,r)}),bl=Mn(function(e,t,r,a){xo(e,t,r,a)}),tS=Pt(function(e,t){var r={};if(e==null)return r;var a=!1;t=ue(t,function(f){return f=Xt(f,e),a||(a=f.length>1),f}),ht(e,bs(e),r),a&&(r=et(r,N|V|F,ZT));for(var c=t.length;c--;)ys(r,t[c]);return r});function nS(e,t){return Ll(e,No(M(t)))}var rS=Pt(function(e,t){return e==null?{}:kT(e,t)});function Ll(e,t){if(e==null)return{};var r=ue(bs(e),function(a){return[a]});return t=M(t),yu(e,r,function(a,c){return t(a,c[0])})}function oS(e,t,r){t=Xt(t,e);var a=-1,c=t.length;for(c||(c=1,e=n);++a<c;){var f=e==null?n:e[yt(t[a])];f===n&&(a=c,f=r),e=Rt(f)?f.call(e):f}return e}function iS(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 El=Wu(we),Cl=Wu(Fe);function aS(e,t,r){var a=$(e),c=a||Qt(e)||Bn(e);if(t=M(t,4),r==null){var f=e&&e.constructor;c?r=a?new f:[]:le(e)?r=Rt(f)?On(ao(e)):{}:r={}}return(c?Je:Tt)(e,function(T,h,x){return t(r,T,h,x)}),r}function cS(e,t){return e==null?!0:ys(e,t)}function uS(e,t,r){return e==null?e:Au(e,t,vs(r))}function lS(e,t,r,a){return a=typeof a=="function"?a:n,e==null?e:Au(e,t,vs(r),a)}function Wn(e){return e==null?[]:ji(e,we(e))}function fS(e){return e==null?[]:ji(e,Fe(e))}function pS(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=rt(r),r=r===r?r:0),t!==n&&(t=rt(t),t=t===t?t:0),un(rt(e),t,r)}function dS(e,t,r){return t=Nt(t),r===n?(r=t,t=0):r=Nt(r),e=rt(e),xT(e,t,r)}function gS(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=Nt(e),t===n?(t=e,e=0):t=Nt(t)),e>t){var a=e;e=t,t=a}if(r||e%1||t%1){var c=jc();return Ee(e+c*(t-e+zg("1e-"+((c+"").length-1))),t)}return ms(e,t)}var mS=Fn(function(e,t,r){return t=t.toLowerCase(),e+(r?kl(t):t)});function kl(e){return $s(te(e).toLowerCase())}function Pl(e){return e=te(e),e&&e.replace(hg,im).replace(Mg,"")}function TS(e,t,r){e=te(e),t=He(t);var a=e.length;r=r===n?a:un(H(r),0,a);var c=r;return r-=t.length,r>=0&&e.slice(r,c)==t}function hS(e){return e=te(e),e&&Jd.test(e)?e.replace(cc,sm):e}function yS(e){return e=te(e),e&&rg.test(e)?e.replace(Fi,"\\$&"):e}var xS=Fn(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),SS=Fn(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),vS=Nu("toLowerCase");function wS(e,t,r){e=te(e),t=H(t);var a=t?Pn(e):0;if(!t||a>=t)return e;var c=(t-a)/2;return _o(fo(c),r)+e+_o(lo(c),r)}function AS(e,t,r){e=te(e),t=H(t);var a=t?Pn(e):0;return t&&a<t?e+_o(t-a,r):e}function IS(e,t,r){e=te(e),t=H(t);var a=t?Pn(e):0;return t&&a<t?_o(t-a,r)+e:e}function _S(e,t,r){return r||t==null?t=0:t&&(t=+t),Dm(te(e).replace(Ui,""),t||0)}function bS(e,t,r){return(r?Re(e,t,r):t===n)?t=1:t=H(t),Ts(te(e),t)}function LS(){var e=arguments,t=te(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var ES=Fn(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function CS(e,t,r){return r&&typeof r!="number"&&Re(e,t,r)&&(t=r=n),r=r===n?mt:r>>>0,r?(e=te(e),e&&(typeof t=="string"||t!=null&&!Bs(t))&&(t=He(t),!t&&kn(e))?Jt(ct(e),0,r):e.split(t,r)):[]}var kS=Fn(function(e,t,r){return e+(r?" ":"")+$s(t)});function PS(e,t,r){return e=te(e),r=r==null?0:un(H(r),0,e.length),t=He(t),e.slice(r,r+t.length)==t}function DS(e,t,r){var a=l.templateSettings;r&&Re(e,t,r)&&(t=n),e=te(e),t=Fo({},t,a,Gu);var c=Fo({},t.imports,a.imports,Gu),f=we(c),T=ji(c,f),h,x,_=0,b=t.interpolate||Zr,L="__p += '",C=ts((t.escape||Zr).source+"|"+b.source+"|"+(b===uc?fg:Zr).source+"|"+(t.evaluate||Zr).source+"|$","g"),R="//# sourceURL="+(re.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Gg+"]")+`
|
|
4
|
+
`;e.replace(C,function(B,Z,J,qe,Ne,ze){return J||(J=qe),L+=e.slice(_,ze).replace(yg,am),Z&&(h=!0,L+=`' +
|
|
5
5
|
__e(`+Z+`) +
|
|
6
6
|
'`),Ne&&(x=!0,L+=`';
|
|
7
7
|
`+Ne+`;
|
|
@@ -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(ug.test(U))throw new G(S);L=(x?L.replace(Kd,""):L).replace(Yd,"$1").replace(Zd,"$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 q=Rl(function(){return j(f,R+"return "+L).apply(n,T)});if(q.source=L,Us(q))throw q;return q}function PS(e){return te(e).toLowerCase()}function DS(e){return te(e).toUpperCase()}function RS(e,t,r){if(e=te(e),e&&(r||t===n))return $c(e);if(!e||!(t=He(t)))return e;var a=ct(e),c=ct(t),f=Hc(a,c),T=Vc(a,c)+1;return Jt(a,f,T).join("")}function NS(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=ct(e),c=Vc(a,ct(t))+1;return Jt(a,0,c).join("")}function OS(e,t,r){if(e=te(e),e&&(r||t===n))return e.replace(Ui,"");if(!e||!(t=He(t)))return e;var a=ct(e),c=Hc(a,ct(t));return Jt(a,c).join("")}function MS(e,t){var r=Cd,a=kd;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 f=e.length;if(kn(e)){var T=ct(e);f=T.length}if(r>=f)return e;var h=r-Pn(a);if(h<1)return a;var x=T?Jt(T,0,h).join(""):e.slice(0,h);if(c===n)return x+a;if(T&&(h+=x.length-h),Bs(c)){if(e.slice(h).search(c)){var _,b=x;for(c.global||(c=ts(c.source,te(lc.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 FS(e){return e=te(e),e&&Yd.test(e)?e.replace(ac,pm):e}var US=Fn(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),$s=Nu("toUpperCase");function Dl(e,t,r){return e=te(e),t=r?n:t,t===n?am(e)?mm(e):Qg(e):e.match(t)||[]}var Rl=Y(function(e,t){try{return Ge(e,n,t)}catch(r){return Us(r)?r:new G(r)}}),BS=Pt(function(e,t){return Je(t,function(r){r=yt(r),Ct(e,r,Ms(e[r],e))}),e});function WS(e){var t=e==null?0:e.length,r=M();return e=t?ue(e,function(a){if(typeof a[1]!="function")throw new Qe(m);return[r(a[0]),a[1]]}):[],Y(function(a){for(var c=-1;++c<t;){var f=e[c];if(Ge(f[0],this,a))return Ge(f[1],this,a)}})}function GS(e){return pT(et(e,N))}function Hs(e){return function(){return e}}function $S(e,t){return e==null||e!==e?t:e}var HS=Mu(),VS=Mu(!0);function Ue(e){return e}function Vs(e){return pu(typeof e=="function"?e:et(e,N))}function qS(e){return gu(et(e,N))}function zS(e,t){return mu(e,et(t,N))}var KS=Y(function(e,t){return function(r){return vr(r,e,t)}}),YS=Y(function(e,t){return function(r){return vr(e,r,t)}});function qs(e,t,r){var a=we(t),c=yo(t,a);r==null&&!(le(t)&&(c.length||!a.length))&&(r=t,t=e,e=this,c=yo(t,we(t)));var f=!(le(r)&&"chain"in r)||!!r.chain,T=Rt(e);return Je(c,function(h){var x=t[h];e[h]=x,T&&(e.prototype[h]=function(){var _=this.__chain__;if(f||_){var b=e(this.__wrapped__),L=b.__actions__=Oe(this.__actions__);return L.push({func:x,args:arguments,thisArg:e}),b.__chain__=_,b}return x.apply(e,Vt([this.value()],arguments))})}),e}function ZS(){return ve._===this&&(ve._=vm),this}function zs(){}function XS(e){return e=H(e),Y(function(t){return Tu(t,e)})}var JS=As(ue),QS=As(Fc),jS=As(Yi);function Nl(e){return ks(e)?Zi(yt(e)):CT(e)}function ev(e){return function(t){return e==null?n:ln(e,t)}}var tv=Uu(),nv=Uu(!0);function Ks(){return[]}function Ys(){return!1}function rv(){return{}}function ov(){return""}function iv(){return!0}function sv(e,t){if(e=H(e),e<1||e>$t)return[];var r=mt,a=Ee(e,mt);t=M(t),e-=mt;for(var c=Qi(a,t);++r<e;)t(r);return c}function av(e){return $(e)?ue(e,yt):Ve(e)?[e]:Oe(el(te(e)))}function cv(e){var t=++xm;return te(e)+t}var uv=Io(function(e,t){return e+t},0),lv=Is("ceil"),fv=Io(function(e,t){return e/t},1),pv=Is("floor");function dv(e){return e&&e.length?ho(e,Ue,us):n}function gv(e,t){return e&&e.length?ho(e,M(t,2),us):n}function mv(e){return Wc(e,Ue)}function Tv(e,t){return Wc(e,M(t,2))}function hv(e){return e&&e.length?ho(e,Ue,ds):n}function yv(e,t){return e&&e.length?ho(e,M(t,2),ds):n}var xv=Io(function(e,t){return e*t},1),Sv=Is("round"),vv=Io(function(e,t){return e-t},0);function wv(e){return e&&e.length?Ji(e,Ue):0}function Av(e,t){return e&&e.length?Ji(e,M(t,2)):0}return l.after=qy,l.ary=fl,l.assign=Dx,l.assignIn=_l,l.assignInWith=Fo,l.assignWith=Rx,l.at=Nx,l.before=pl,l.bind=Ms,l.bindAll=BS,l.bindKey=dl,l.castArray=rx,l.chain=cl,l.chunk=ph,l.compact=dh,l.concat=gh,l.cond=WS,l.conforms=GS,l.constant=Hs,l.countBy=wy,l.create=Ox,l.curry=gl,l.curryRight=ml,l.debounce=Tl,l.defaults=Mx,l.defaultsDeep=Fx,l.defer=zy,l.delay=Ky,l.difference=mh,l.differenceBy=Th,l.differenceWith=hh,l.drop=yh,l.dropRight=xh,l.dropRightWhile=Sh,l.dropWhile=vh,l.fill=wh,l.filter=Iy,l.flatMap=Ly,l.flatMapDeep=Ey,l.flatMapDepth=Cy,l.flatten=ol,l.flattenDeep=Ah,l.flattenDepth=Ih,l.flip=Yy,l.flow=HS,l.flowRight=VS,l.fromPairs=_h,l.functions=Vx,l.functionsIn=qx,l.groupBy=ky,l.initial=Lh,l.intersection=Eh,l.intersectionBy=Ch,l.intersectionWith=kh,l.invert=Kx,l.invertBy=Yx,l.invokeMap=Dy,l.iteratee=Vs,l.keyBy=Ry,l.keys=we,l.keysIn=Fe,l.map=Po,l.mapKeys=Xx,l.mapValues=Jx,l.matches=qS,l.matchesProperty=zS,l.memoize=Ro,l.merge=Qx,l.mergeWith=bl,l.method=KS,l.methodOf=YS,l.mixin=qs,l.negate=No,l.nthArg=XS,l.omit=jx,l.omitBy=eS,l.once=Zy,l.orderBy=Ny,l.over=JS,l.overArgs=Xy,l.overEvery=QS,l.overSome=jS,l.partial=Fs,l.partialRight=hl,l.partition=Oy,l.pick=tS,l.pickBy=Ll,l.property=Nl,l.propertyOf=ev,l.pull=Nh,l.pullAll=sl,l.pullAllBy=Oh,l.pullAllWith=Mh,l.pullAt=Fh,l.range=tv,l.rangeRight=nv,l.rearg=Jy,l.reject=Uy,l.remove=Uh,l.rest=Qy,l.reverse=Ns,l.sampleSize=Wy,l.set=rS,l.setWith=oS,l.shuffle=Gy,l.slice=Bh,l.sortBy=Vy,l.sortedUniq=zh,l.sortedUniqBy=Kh,l.split=LS,l.spread=jy,l.tail=Yh,l.take=Zh,l.takeRight=Xh,l.takeRightWhile=Jh,l.takeWhile=Qh,l.tap=dy,l.throttle=ex,l.thru=ko,l.toArray=wl,l.toPairs=El,l.toPairsIn=Cl,l.toPath=av,l.toPlainObject=Il,l.transform=iS,l.unary=tx,l.union=jh,l.unionBy=ey,l.unionWith=ty,l.uniq=ny,l.uniqBy=ry,l.uniqWith=oy,l.unset=sS,l.unzip=Os,l.unzipWith=al,l.update=aS,l.updateWith=cS,l.values=Wn,l.valuesIn=uS,l.without=iy,l.words=Dl,l.wrap=nx,l.xor=sy,l.xorBy=ay,l.xorWith=cy,l.zip=uy,l.zipObject=ly,l.zipObjectDeep=fy,l.zipWith=py,l.entries=El,l.entriesIn=Cl,l.extend=_l,l.extendWith=Fo,qs(l,l),l.add=uv,l.attempt=Rl,l.camelCase=dS,l.capitalize=kl,l.ceil=lv,l.clamp=lS,l.clone=ox,l.cloneDeep=sx,l.cloneDeepWith=ax,l.cloneWith=ix,l.conformsTo=cx,l.deburr=Pl,l.defaultTo=$S,l.divide=fv,l.endsWith=gS,l.eq=lt,l.escape=mS,l.escapeRegExp=TS,l.every=Ay,l.find=_y,l.findIndex=nl,l.findKey=Ux,l.findLast=by,l.findLastIndex=rl,l.findLastKey=Bx,l.floor=pv,l.forEach=ul,l.forEachRight=ll,l.forIn=Wx,l.forInRight=Gx,l.forOwn=$x,l.forOwnRight=Hx,l.get=Ws,l.gt=ux,l.gte=lx,l.has=zx,l.hasIn=Gs,l.head=il,l.identity=Ue,l.includes=Py,l.indexOf=bh,l.inRange=fS,l.invoke=Zx,l.isArguments=dn,l.isArray=$,l.isArrayBuffer=fx,l.isArrayLike=Me,l.isArrayLikeObject=me,l.isBoolean=px,l.isBuffer=Qt,l.isDate=dx,l.isElement=gx,l.isEmpty=mx,l.isEqual=Tx,l.isEqualWith=hx,l.isError=Us,l.isFinite=yx,l.isFunction=Rt,l.isInteger=yl,l.isLength=Oo,l.isMap=xl,l.isMatch=xx,l.isMatchWith=Sx,l.isNaN=vx,l.isNative=wx,l.isNil=Ix,l.isNull=Ax,l.isNumber=Sl,l.isObject=le,l.isObjectLike=pe,l.isPlainObject=Lr,l.isRegExp=Bs,l.isSafeInteger=_x,l.isSet=vl,l.isString=Mo,l.isSymbol=Ve,l.isTypedArray=Bn,l.isUndefined=bx,l.isWeakMap=Lx,l.isWeakSet=Ex,l.join=Ph,l.kebabCase=hS,l.last=nt,l.lastIndexOf=Dh,l.lowerCase=yS,l.lowerFirst=xS,l.lt=Cx,l.lte=kx,l.max=dv,l.maxBy=gv,l.mean=mv,l.meanBy=Tv,l.min=hv,l.minBy=yv,l.stubArray=Ks,l.stubFalse=Ys,l.stubObject=rv,l.stubString=ov,l.stubTrue=iv,l.multiply=xv,l.nth=Rh,l.noConflict=ZS,l.noop=zs,l.now=Do,l.pad=SS,l.padEnd=vS,l.padStart=wS,l.parseInt=AS,l.random=pS,l.reduce=My,l.reduceRight=Fy,l.repeat=IS,l.replace=_S,l.result=nS,l.round=Sv,l.runInContext=y,l.sample=By,l.size=$y,l.snakeCase=bS,l.some=Hy,l.sortedIndex=Wh,l.sortedIndexBy=Gh,l.sortedIndexOf=$h,l.sortedLastIndex=Hh,l.sortedLastIndexBy=Vh,l.sortedLastIndexOf=qh,l.startCase=ES,l.startsWith=CS,l.subtract=vv,l.sum=wv,l.sumBy=Av,l.template=kS,l.times=sv,l.toFinite=Nt,l.toInteger=H,l.toLength=Al,l.toLower=PS,l.toNumber=rt,l.toSafeInteger=Px,l.toString=te,l.toUpper=DS,l.trim=RS,l.trimEnd=NS,l.trimStart=OS,l.truncate=MS,l.unescape=FS,l.uniqueId=cv,l.upperCase=US,l.upperFirst=$s,l.each=ul,l.eachRight=ll,l.first=il,qs(l,function(){var e={};return Tt(l,function(t,r){re.call(l.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),l.VERSION=o,Je(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),Je(["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,mt),type:e+(a.__dir__<0?"Right":"")}),a},X.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),Je(["filter","map","takeWhile"],function(e,t){var r=t+1,a=r==oc||r==Nd;X.prototype[e]=function(c){var f=this.clone();return f.__iteratees__.push({iteratee:M(c,3),type:r}),f.__filtered__=f.__filtered__||a,f}}),Je(["head","last"],function(e,t){var r="take"+(t?"Right":"");X.prototype[e]=function(){return this[r](1).value()[0]}}),Je(["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(Ue)},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(No(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(mt)},Tt(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],f=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,Vt([Z],h));return a&&C?J[0]:J};b&&r&&typeof _=="function"&&_.length!=1&&(x=b=!1);var C=this.__chain__,R=!!this.__actions__.length,U=f&&!C,q=x&&!R;if(!f&&b){T=q?T:new X(this);var B=e.apply(T,h);return B.__actions__.push({func:ko,args:[L],thisArg:n}),new je(B,C)}return U&&q?e.apply(this,h):(B=this.thru(L),U?a?B.value()[0]:B.value():B)})}),Je(["pop","push","shift","sort","splice","unshift"],function(e){var t=to[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 f=this.value();return t.apply($(f)?f:[],c)}return this[r](function(T){return t.apply($(T)?T:[],c)})}}),Tt(X.prototype,function(e,t){var r=l[t];if(r){var a=r.name+"";re.call(Nn,a)||(Nn[a]=[]),Nn[a].push({name:t,func:r})}}),Nn[Ao(n,_e).name]=[{name:"wrapper",func:n}],X.prototype.clone=Fm,X.prototype.reverse=Um,X.prototype.value=Bm,l.prototype.at=gy,l.prototype.chain=my,l.prototype.commit=Ty,l.prototype.next=hy,l.prototype.plant=xy,l.prototype.reverse=Sy,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=vy,l.prototype.first=l.prototype.head,gr&&(l.prototype[gr]=yy),l},zt=Tm();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(ve._=zt,define(function(){return zt})):on?((on.exports=zt)._=zt,Vi._=zt):ve._=zt}).call(tr)});var vI={};gn(vI,{useDappModal:()=>SI});module.exports=kr(vI);s();var or=require("react");s();s();s();var Np=require("react"),Qn=require("react-redux");s();var Ma=require("@reduxjs/toolkit"),Dp=require("react-redux/lib/utils/Subscription");ae();s();var cp=z(require("lodash.throttle"));se();s();var ap=z(require("lodash.isequal")),di=require("reselect");Ie();var D=(0,di.createSelectorCreator)(di.defaultMemoize,ap.default),Fr=(n,o)=>n!=""&&Boolean(o);ae();xa();zn();qn();var V0=[zo],gi=!1,q0=(0,cp.default)(()=>{Nr(Rr())},5e3),up=n=>o=>i=>{var E;if(V0.includes(i.type))return o(i);let u=n.getState(),m=xn.local.getItem(jt.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(Rr());let v=Date.now();return m-v<0&&!gi?setTimeout(()=>{gi=!0,n.dispatch(Uf())},1e3):(gi&&(gi=!1),q0()),o(i)};s();s();function mi(){return typeof sessionStorage!="undefined"}var Cp=mi()?(Sp(),kr(xp)).default:(wp(),kr(vp)).default,kp=mi()?(Ip(),kr(Ap)).default:[],Pp=mi()?(Ep(),kr(Lp)).default:n=>n;Ti();var ee=(0,Ma.configureStore)({reducer:Cp,middleware:n=>n({serializableCheck:{ignoredActions:[...kp,ya.type,ha.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(up)}),Rp=(0,Dp.createSubscription)(ee),zL=Pp(ee),KL=(0,Ma.configureStore)({reducer:wn});var dw={store:ee,subscription:Rp},Fa=(0,Np.createContext)(dw),JL=(0,Qn.createStoreHook)(Fa),Pe=(0,Qn.createDispatchHook)(Fa),ne=(0,Qn.createSelectorHook)(Fa);s();s();ae();var Bt=n=>n.account,jn=D(Bt,n=>n.address),Br=D(Bt,jn,(n,o)=>o in n.accounts?n.accounts[o]:Yo),gw=D(Bt,Br,(n,o)=>{let m=n,{accounts:i}=m,u=Bo(m,["accounts"]);return Q(O({},u),{account:o})}),mw=D(Br,n=>n.balance),Tw=D(Br,n=>{var o;return((o=n==null?void 0:n.nonce)==null?void 0:o.valueOf())||0}),tE=D(Bt,n=>n.shard),hw=D(Bt,n=>n.ledgerAccount),nE=D(Bt,n=>n.walletConnectAccount),rE=D(Bt,n=>n.isAccountLoading),oE=D(Bt,n=>n.accountLoadingError),Op=D(Bt,n=>n.websocketEvent);s();var pt=n=>n.loginInfo,cE=D(pt,n=>n.loginMethod),Ua=D(pt,jn,(n,o)=>Fr(n.loginMethod,o)),uE=D(pt,n=>n.walletConnectLogin),lE=D(pt,n=>n.ledgerLogin),yw=D(pt,n=>n.walletLogin),fE=D(pt,n=>n.isLoginSessionInvalid),xw=D(pt,n=>n.tokenLogin),pE=D(pt,n=>n.logoutRoute);s();var Mp=n=>n.modals,mE=D(Mp,n=>n.txSubmittedModal),Sw=D(Mp,n=>n.notificationModal);s();var Wt=n=>n.networkConfig,hi=D(Wt,n=>n.chainID),vw=D(Wt,n=>n.network.walletConnectBridgeAddress),ww=D(Wt,n=>n.network.walletConnectV2RelayAddress),Aw=D(Wt,n=>n.network.walletConnectV2ProjectId),Iw=D(Wt,n=>n.network.walletConnectV2Options),Fp=D(Wt,n=>n.network.walletConnectDeepLink),tn=D(Wt,n=>n.network),Up=D(tn,n=>n.apiAddress),Bp=D(tn,n=>n.explorerAddress),Wp=D(tn,n=>n.egldLabel);s();var Ba=n=>n.signedMessageInfo,SE=D(Ba,n=>n.isSigning),vE=D(Ba,n=>n.errorMessage),wE=D(Ba,n=>{let o=Object.keys(n.signedSessions),i=o.length;return n.signedSessions[o[i-1]]});s();var Wa=n=>n.toasts,_E=D(Wa,n=>n.customToasts),bE=D(Wa,n=>n.transactionToasts),LE=D(Wa,n=>n.failTransactionToast);s();ae();var Gp={errorMessage:ba,successMessage:La,processingMessage:Ea},_w=n=>n.transactionsInfo,bw=D(_w,(n,o)=>o,(n,o)=>o!=null&&(n==null?void 0:n[Number(o)])||Gp);s();s();var Ze=require("@multiversx/sdk-core");se();s();function Ga(n){try{return d.Buffer.from(n,"base64").toString()===atob(n)}catch(o){return!1}}function yi(n){var m,S,v;let{data:o}=n,i=Ga(o!=null?o:"")?Ze.TransactionPayload.fromEncoded(o):new Ze.TransactionPayload(o),u=new Ze.Transaction(O({value:n.value.valueOf(),data:i,nonce:n.nonce.valueOf(),receiver:new Ze.Address(n.receiver),sender:new Ze.Address(n.sender),gasLimit:(m=n.gasLimit.valueOf())!=null?m:Pr,gasPrice:(S=n.gasPrice.valueOf())!=null?S:qo,chainID:n.chainID.valueOf(),version:new Ze.TransactionVersion((v=n.version)!=null?v:wf)},n.options?{options:new Ze.TransactionOptions(n.options)}:{}));return u.applySignature({hex:()=>n.signature||""},new Ze.Address(n.sender)),u}s();s();s();s();s();var Ew=require("@multiversx/sdk-core/out");s();se();s();var $p=require("@multiversx/sdk-core");Ie();s();var Cw=require("@multiversx/sdk-core");s();s();s();var Pw=require("@multiversx/sdk-core"),Dw=z(require("bignumber.js"));de();s();s();s();s();s();var Ha="blocks";s();s();s();s();We();s();s();We();s();s();s();var Ww=z(require("bignumber.js"));se();s();var Bw=require("@multiversx/sdk-core"),Va=z(require("bignumber.js"));se();s();var Fw=z(require("bignumber.js"));s();Va.default.config({ROUNDING_MODE:Va.default.ROUND_FLOOR});s();s();s();se();s();s();s();s();se();s();se();s();var Gw=require("@multiversx/sdk-core");se();s();var Wr=require("@multiversx/sdk-core"),Vw=require("@multiversx/sdk-network-providers");se();s();s();var $w=z(require("bignumber.js"));se();s();se();s();s();s();s();s();se();s();We();var zw=["reDelegateRewards","claimRewards","unBond"],Kw=["wrapEgld","unwrapEgld"],Yw=["unStake"],Zw=["unDelegate"];s();s();s();se();s();var jw=z(require("bignumber.js"));s();s();s();s();We();s();var eA=z(require("bignumber.js"));s();s();s();var rA=z(require("bignumber.js"));Ie();s();s();s();s();de();s();s();s();s();We();s();s();s();var oA=z(require("linkifyjs"));s();se();s();var iA=z(require("bignumber.js"));s();Ie();s();s();de();s();de();s();s();s();We();s();We();s();var sA=z(require("bignumber.js"));se();We();s();We();s();var Qp=require("react");Ie();s();s();We();s();s();var aA=require("@multiversx/sdk-core/out"),cA=z(require("bignumber.js"));We();s();Ie();s();s();Ie();var aR=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];s();var jp=require("react");Ie();s();var lA=require("react");We();var gR=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];Jn();var wi=n=>n.transactions,er=D(wi,n=>n.signedTransactions),fA=D(wi,n=>n.signTransactionsError),ed=D(wi,n=>n.signTransactionsCancelMessage),Ai=n=>o=>Object.entries(o).reduce((i,[u,m])=>(n(m.status)&&(i[u]=m),i),{}),td=D(er,Ai(Yn)),nd=D(er,Ai(Zn)),rd=D(er,Ai(Xn)),pA=D(er,Ai(ka)),od=D(wi,n=>{var o;return(n==null?void 0:n.transactionsToSign)==null?null:Q(O({},n.transactionsToSign),{transactions:((o=n==null?void 0:n.transactionsToSign)==null?void 0:o.transactions.map(i=>yi(i)))||[]})}),dA=D(er,(n,o)=>o,(n,o)=>o!=null?(n==null?void 0:n[o])||{}:{});s();var id=require("react");s();ae();s();s();s();s();s();s();s();s();var gA=require("@multiversx/sdk-extension-provider"),mA=require("@multiversx/sdk-hw-provider"),TA=require("@multiversx/sdk-opera-provider"),hA=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider"),yA=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider"),xA=require("@multiversx/sdk-web-wallet-provider");se();de();var Gt=n=>`Unable to perform ${n}, Provider not initialized`,za=class{init(){return Promise.resolve(!1)}login(o){throw new Error(Gt(`login with options: ${o}`))}logout(o){throw new Error(Gt(`logout with options: ${o}`))}getAddress(){throw new Error(Gt("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(o,i){throw new Error(Gt(`sendTransaction with transactions: ${o} options: ${i}`))}signTransaction(o,i){throw new Error(Gt(`signTransaction with transactions: ${o} options: ${i}`))}signTransactions(o,i){throw new Error(Gt(`signTransactions with transactions: ${o} options: ${i}`))}signMessage(o,i){throw new Error(Gt(`signTransactions with ${o} and options ${i}`))}sendCustomMessage({method:o,params:i}){throw new Error(Gt(`sendCustomMessage with method: ${o} params: ${i}`))}sendCustomRequest(o){throw new Error(Gt(`sendSessionEvent with options: ${o}`))}ping(){return Promise.resolve(!1)}},SA=new za;ae();s();s();var vA=z(require("axios"));s();s();s();de();s();s();s();Jn();s();s();s();var wA=z(require("axios"));s();var AA=z(require("axios"));s();var _A=z(require("axios"));s();s();var bA=z(require("axios"));s();var LA=z(require("axios"));s();ae();de();s();s();ae();s();s();var ud=require("@multiversx/sdk-core");s();ke();Ie();s();Jn();s();ae();de();s();ae();Ie();s();s();s();Ie();s();s();s();s();var PA=z(require("axios")),DA=z(require("swr"));s();s();var ld=require("react");s();var NA=require("react"),OA=require("@multiversx/sdk-web-wallet-provider"),MA=z(require("qs"));se();ae();de();s();var pd=require("react");va();s();var Td=require("react"),qA=require("@multiversx/sdk-extension-provider");se();s();ae();de();s();s();s();s();var md=require("react"),GA=require("@multiversx/sdk-extension-provider");se();s();s();s();s();s();s();s();s();var Gr=z(require("react"));var eU=(0,Gr.createContext)({}),tU=ee.getState();s();var gd=z(require("react"));s();var Xa=z(require("react")),UA=z(require("axios"));s();s();ae();s();s();var zA=z(require("axios"));ae();Ie();Or();s();yn();ae();s();s();var nI=require("react");s();s();s();ae();s();s();var ZA=z(require("bignumber.js"));se();ae();Ie();s();var YA=z(require("bignumber.js"));se();s();var XA=require("@multiversx/sdk-core"),JA=z(require("bignumber.js"));se();s();s();s();s();var xd=z(require("axios"));s();s();s();function hd(n){return K(this,null,function*(){return yield new Promise(o=>{setTimeout(()=>o(),n)})})}s();var yd=(n,o,i,u=0)=>K(void 0,null,function*(){try{return yield n(...i)}catch(m){return u<o.retries?((o==null?void 0:o.delay)!=null&&(yield hd(o.delay)),yield yd(n,o,i,u+1)):null}}),Qa=(n,o={retries:5,delay:500})=>(...i)=>K(void 0,null,function*(){return yield yd(n,o,i)});var QA=4;var q2=Qa((n,o)=>K(void 0,null,function*(){let{data:i}=yield xd.default.get(`${n}/${Ha}?from=${QA}&size=1&fields=hash,timestamp${o?"&shard="+o:""}`),[u]=i;return u}));s();s();Ko();s();s();var jA=z(Sd());s();var vd,oW={origin:typeof window!="undefined"?(vd=window==null?void 0:window.location)==null?void 0:vd.origin:"",apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60};s();de();Jn();s();var wd=require("react");s();s();var oI=require("react"),iI=require("@multiversx/sdk-extension-provider");yn();ke();de();s();Sn();s();var rI=require("react"),Ad=require("@multiversx/sdk-core");ae();s();var sI=require("react"),aI=require("@multiversx/sdk-opera-provider");yn();ke();de();Sn();s();var lI=require("react");yn();ae();s();s();s();la();s();s();var cI=z(require("platform"));s();ke();Ie();Or();zn();qn();s();s();s();s();s();s();s();s();s();s();de();s();Or();zn();s();s();s();ae();s();s();var uI=z(require("axios"));s();s();var Id=require("react"),pI=require("@multiversx/sdk-hw-provider");yn();ke();ae();de();Sn();s();var fI=require("react");s();var ec=require("react"),mI=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider");ke();ae();de();Sn();s();var tc=require("react"),TI=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider");ke();ae();de();Sn();s();s();var _d=require("react");s();var xI=require("react");s();var nc=require("react"),yI=require("socket.io-client");ae();s();s();s();s();var bd=n=>n.dappModal,Ld=D(bd,n=>n.visible),rr=D(bd,n=>n.modal),B6=D(rr,n=>n.showHeader),W6=D(rr,n=>n.showFooter),G6=D(rr,n=>n.headerText),$6=D(rr,n=>n.footerText);var Ed=()=>ne(Ld);Na();var SI=n=>{var k;let o=Pe(),i=Ed(),u=ne(rr),m=()=>{o(Ra(!0))},S=()=>{o(Ra(!1))},v=(0,or.useCallback)(E=>{o(dp(E))},[]);return(0,or.useEffect)(()=>{n!=null&&n.modalConfig&&v(n==null?void 0:n.modalConfig)},[n==null?void 0:n.modalConfig]),(0,or.useEffect)(()=>{var E;return(E=n==null?void 0:n.config)!=null&&E.openOnMount&&m(),()=>{S()}},[]),(0,or.useEffect)(()=>{var E;typeof((E=n==null?void 0:n.config)==null?void 0:E.visible)=="boolean"&&(n.config.visible?m():S())},[(k=n==null?void 0:n.config)==null?void 0:k.visible]),{handleShowModal:m,handleHideModal:S,setModalConfig:v,visible:i,config:u}};0&&(module.exports={useDappModal});
|
|
20
|
+
}`;var q=Rl(function(){return j(f,R+"return "+L).apply(n,T)});if(q.source=L,Us(q))throw q;return q}function RS(e){return te(e).toLowerCase()}function NS(e){return te(e).toUpperCase()}function OS(e,t,r){if(e=te(e),e&&(r||t===n))return $c(e);if(!e||!(t=He(t)))return e;var a=ct(e),c=ct(t),f=Hc(a,c),T=Vc(a,c)+1;return Jt(a,f,T).join("")}function MS(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=ct(e),c=Vc(a,ct(t))+1;return Jt(a,0,c).join("")}function FS(e,t,r){if(e=te(e),e&&(r||t===n))return e.replace(Ui,"");if(!e||!(t=He(t)))return e;var a=ct(e),c=Hc(a,ct(t));return Jt(a,c).join("")}function US(e,t){var r=Pd,a=Dd;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 f=e.length;if(kn(e)){var T=ct(e);f=T.length}if(r>=f)return e;var h=r-Pn(a);if(h<1)return a;var x=T?Jt(T,0,h).join(""):e.slice(0,h);if(c===n)return x+a;if(T&&(h+=x.length-h),Bs(c)){if(e.slice(h).search(c)){var _,b=x;for(c.global||(c=ts(c.source,te(lc.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 BS(e){return e=te(e),e&&Xd.test(e)?e.replace(ac,gm):e}var WS=Fn(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),$s=Nu("toUpperCase");function Dl(e,t,r){return e=te(e),t=r?n:t,t===n?um(e)?hm(e):em(e):e.match(t)||[]}var Rl=Y(function(e,t){try{return Ge(e,n,t)}catch(r){return Us(r)?r:new G(r)}}),GS=Pt(function(e,t){return Je(t,function(r){r=yt(r),Ct(e,r,Ms(e[r],e))}),e});function $S(e){var t=e==null?0:e.length,r=M();return e=t?ue(e,function(a){if(typeof a[1]!="function")throw new Qe(m);return[r(a[0]),a[1]]}):[],Y(function(a){for(var c=-1;++c<t;){var f=e[c];if(Ge(f[0],this,a))return Ge(f[1],this,a)}})}function HS(e){return gT(et(e,N))}function Hs(e){return function(){return e}}function VS(e,t){return e==null||e!==e?t:e}var qS=Mu(),zS=Mu(!0);function Ue(e){return e}function Vs(e){return pu(typeof e=="function"?e:et(e,N))}function KS(e){return gu(et(e,N))}function YS(e,t){return mu(e,et(t,N))}var ZS=Y(function(e,t){return function(r){return vr(r,e,t)}}),XS=Y(function(e,t){return function(r){return vr(e,r,t)}});function qs(e,t,r){var a=we(t),c=yo(t,a);r==null&&!(le(t)&&(c.length||!a.length))&&(r=t,t=e,e=this,c=yo(t,we(t)));var f=!(le(r)&&"chain"in r)||!!r.chain,T=Rt(e);return Je(c,function(h){var x=t[h];e[h]=x,T&&(e.prototype[h]=function(){var _=this.__chain__;if(f||_){var b=e(this.__wrapped__),L=b.__actions__=Oe(this.__actions__);return L.push({func:x,args:arguments,thisArg:e}),b.__chain__=_,b}return x.apply(e,Vt([this.value()],arguments))})}),e}function JS(){return ve._===this&&(ve._=Am),this}function zs(){}function QS(e){return e=H(e),Y(function(t){return Tu(t,e)})}var jS=As(ue),ev=As(Fc),tv=As(Yi);function Nl(e){return ks(e)?Zi(yt(e)):PT(e)}function nv(e){return function(t){return e==null?n:ln(e,t)}}var rv=Uu(),ov=Uu(!0);function Ks(){return[]}function Ys(){return!1}function iv(){return{}}function sv(){return""}function av(){return!0}function cv(e,t){if(e=H(e),e<1||e>$t)return[];var r=mt,a=Ee(e,mt);t=M(t),e-=mt;for(var c=Qi(a,t);++r<e;)t(r);return c}function uv(e){return $(e)?ue(e,yt):Ve(e)?[e]:Oe(el(te(e)))}function lv(e){var t=++vm;return te(e)+t}var fv=Io(function(e,t){return e+t},0),pv=Is("ceil"),dv=Io(function(e,t){return e/t},1),gv=Is("floor");function mv(e){return e&&e.length?ho(e,Ue,us):n}function Tv(e,t){return e&&e.length?ho(e,M(t,2),us):n}function hv(e){return Wc(e,Ue)}function yv(e,t){return Wc(e,M(t,2))}function xv(e){return e&&e.length?ho(e,Ue,ds):n}function Sv(e,t){return e&&e.length?ho(e,M(t,2),ds):n}var vv=Io(function(e,t){return e*t},1),wv=Is("round"),Av=Io(function(e,t){return e-t},0);function Iv(e){return e&&e.length?Ji(e,Ue):0}function _v(e,t){return e&&e.length?Ji(e,M(t,2)):0}return l.after=Ky,l.ary=fl,l.assign=Nx,l.assignIn=_l,l.assignInWith=Fo,l.assignWith=Ox,l.at=Mx,l.before=pl,l.bind=Ms,l.bindAll=GS,l.bindKey=dl,l.castArray=ix,l.chain=cl,l.chunk=gh,l.compact=mh,l.concat=Th,l.cond=$S,l.conforms=HS,l.constant=Hs,l.countBy=Iy,l.create=Fx,l.curry=gl,l.curryRight=ml,l.debounce=Tl,l.defaults=Ux,l.defaultsDeep=Bx,l.defer=Yy,l.delay=Zy,l.difference=hh,l.differenceBy=yh,l.differenceWith=xh,l.drop=Sh,l.dropRight=vh,l.dropRightWhile=wh,l.dropWhile=Ah,l.fill=Ih,l.filter=by,l.flatMap=Cy,l.flatMapDeep=ky,l.flatMapDepth=Py,l.flatten=ol,l.flattenDeep=_h,l.flattenDepth=bh,l.flip=Xy,l.flow=qS,l.flowRight=zS,l.fromPairs=Lh,l.functions=zx,l.functionsIn=Kx,l.groupBy=Dy,l.initial=Ch,l.intersection=kh,l.intersectionBy=Ph,l.intersectionWith=Dh,l.invert=Zx,l.invertBy=Xx,l.invokeMap=Ny,l.iteratee=Vs,l.keyBy=Oy,l.keys=we,l.keysIn=Fe,l.map=Po,l.mapKeys=Qx,l.mapValues=jx,l.matches=KS,l.matchesProperty=YS,l.memoize=Ro,l.merge=eS,l.mergeWith=bl,l.method=ZS,l.methodOf=XS,l.mixin=qs,l.negate=No,l.nthArg=QS,l.omit=tS,l.omitBy=nS,l.once=Jy,l.orderBy=My,l.over=jS,l.overArgs=Qy,l.overEvery=ev,l.overSome=tv,l.partial=Fs,l.partialRight=hl,l.partition=Fy,l.pick=rS,l.pickBy=Ll,l.property=Nl,l.propertyOf=nv,l.pull=Mh,l.pullAll=sl,l.pullAllBy=Fh,l.pullAllWith=Uh,l.pullAt=Bh,l.range=rv,l.rangeRight=ov,l.rearg=jy,l.reject=Wy,l.remove=Wh,l.rest=ex,l.reverse=Ns,l.sampleSize=$y,l.set=iS,l.setWith=sS,l.shuffle=Hy,l.slice=Gh,l.sortBy=zy,l.sortedUniq=Yh,l.sortedUniqBy=Zh,l.split=CS,l.spread=tx,l.tail=Xh,l.take=Jh,l.takeRight=Qh,l.takeRightWhile=jh,l.takeWhile=ey,l.tap=my,l.throttle=nx,l.thru=ko,l.toArray=wl,l.toPairs=El,l.toPairsIn=Cl,l.toPath=uv,l.toPlainObject=Il,l.transform=aS,l.unary=rx,l.union=ty,l.unionBy=ny,l.unionWith=ry,l.uniq=oy,l.uniqBy=iy,l.uniqWith=sy,l.unset=cS,l.unzip=Os,l.unzipWith=al,l.update=uS,l.updateWith=lS,l.values=Wn,l.valuesIn=fS,l.without=ay,l.words=Dl,l.wrap=ox,l.xor=cy,l.xorBy=uy,l.xorWith=ly,l.zip=fy,l.zipObject=py,l.zipObjectDeep=dy,l.zipWith=gy,l.entries=El,l.entriesIn=Cl,l.extend=_l,l.extendWith=Fo,qs(l,l),l.add=fv,l.attempt=Rl,l.camelCase=mS,l.capitalize=kl,l.ceil=pv,l.clamp=pS,l.clone=sx,l.cloneDeep=cx,l.cloneDeepWith=ux,l.cloneWith=ax,l.conformsTo=lx,l.deburr=Pl,l.defaultTo=VS,l.divide=dv,l.endsWith=TS,l.eq=lt,l.escape=hS,l.escapeRegExp=yS,l.every=_y,l.find=Ly,l.findIndex=nl,l.findKey=Wx,l.findLast=Ey,l.findLastIndex=rl,l.findLastKey=Gx,l.floor=gv,l.forEach=ul,l.forEachRight=ll,l.forIn=$x,l.forInRight=Hx,l.forOwn=Vx,l.forOwnRight=qx,l.get=Ws,l.gt=fx,l.gte=px,l.has=Yx,l.hasIn=Gs,l.head=il,l.identity=Ue,l.includes=Ry,l.indexOf=Eh,l.inRange=dS,l.invoke=Jx,l.isArguments=dn,l.isArray=$,l.isArrayBuffer=dx,l.isArrayLike=Me,l.isArrayLikeObject=me,l.isBoolean=gx,l.isBuffer=Qt,l.isDate=mx,l.isElement=Tx,l.isEmpty=hx,l.isEqual=yx,l.isEqualWith=xx,l.isError=Us,l.isFinite=Sx,l.isFunction=Rt,l.isInteger=yl,l.isLength=Oo,l.isMap=xl,l.isMatch=vx,l.isMatchWith=wx,l.isNaN=Ax,l.isNative=Ix,l.isNil=bx,l.isNull=_x,l.isNumber=Sl,l.isObject=le,l.isObjectLike=pe,l.isPlainObject=Lr,l.isRegExp=Bs,l.isSafeInteger=Lx,l.isSet=vl,l.isString=Mo,l.isSymbol=Ve,l.isTypedArray=Bn,l.isUndefined=Ex,l.isWeakMap=Cx,l.isWeakSet=kx,l.join=Rh,l.kebabCase=xS,l.last=nt,l.lastIndexOf=Nh,l.lowerCase=SS,l.lowerFirst=vS,l.lt=Px,l.lte=Dx,l.max=mv,l.maxBy=Tv,l.mean=hv,l.meanBy=yv,l.min=xv,l.minBy=Sv,l.stubArray=Ks,l.stubFalse=Ys,l.stubObject=iv,l.stubString=sv,l.stubTrue=av,l.multiply=vv,l.nth=Oh,l.noConflict=JS,l.noop=zs,l.now=Do,l.pad=wS,l.padEnd=AS,l.padStart=IS,l.parseInt=_S,l.random=gS,l.reduce=Uy,l.reduceRight=By,l.repeat=bS,l.replace=LS,l.result=oS,l.round=wv,l.runInContext=y,l.sample=Gy,l.size=Vy,l.snakeCase=ES,l.some=qy,l.sortedIndex=$h,l.sortedIndexBy=Hh,l.sortedIndexOf=Vh,l.sortedLastIndex=qh,l.sortedLastIndexBy=zh,l.sortedLastIndexOf=Kh,l.startCase=kS,l.startsWith=PS,l.subtract=Av,l.sum=Iv,l.sumBy=_v,l.template=DS,l.times=cv,l.toFinite=Nt,l.toInteger=H,l.toLength=Al,l.toLower=RS,l.toNumber=rt,l.toSafeInteger=Rx,l.toString=te,l.toUpper=NS,l.trim=OS,l.trimEnd=MS,l.trimStart=FS,l.truncate=US,l.unescape=BS,l.uniqueId=lv,l.upperCase=WS,l.upperFirst=$s,l.each=ul,l.eachRight=ll,l.first=il,qs(l,function(){var e={};return Tt(l,function(t,r){re.call(l.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),l.VERSION=o,Je(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),Je(["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,mt),type:e+(a.__dir__<0?"Right":"")}),a},X.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),Je(["filter","map","takeWhile"],function(e,t){var r=t+1,a=r==oc||r==Md;X.prototype[e]=function(c){var f=this.clone();return f.__iteratees__.push({iteratee:M(c,3),type:r}),f.__filtered__=f.__filtered__||a,f}}),Je(["head","last"],function(e,t){var r="take"+(t?"Right":"");X.prototype[e]=function(){return this[r](1).value()[0]}}),Je(["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(Ue)},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(No(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(mt)},Tt(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],f=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,Vt([Z],h));return a&&C?J[0]:J};b&&r&&typeof _=="function"&&_.length!=1&&(x=b=!1);var C=this.__chain__,R=!!this.__actions__.length,U=f&&!C,q=x&&!R;if(!f&&b){T=q?T:new X(this);var B=e.apply(T,h);return B.__actions__.push({func:ko,args:[L],thisArg:n}),new je(B,C)}return U&&q?e.apply(this,h):(B=this.thru(L),U?a?B.value()[0]:B.value():B)})}),Je(["pop","push","shift","sort","splice","unshift"],function(e){var t=to[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 f=this.value();return t.apply($(f)?f:[],c)}return this[r](function(T){return t.apply($(T)?T:[],c)})}}),Tt(X.prototype,function(e,t){var r=l[t];if(r){var a=r.name+"";re.call(Nn,a)||(Nn[a]=[]),Nn[a].push({name:t,func:r})}}),Nn[Ao(n,_e).name]=[{name:"wrapper",func:n}],X.prototype.clone=Bm,X.prototype.reverse=Wm,X.prototype.value=Gm,l.prototype.at=Ty,l.prototype.chain=hy,l.prototype.commit=yy,l.prototype.next=xy,l.prototype.plant=vy,l.prototype.reverse=wy,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=Ay,l.prototype.first=l.prototype.head,gr&&(l.prototype[gr]=Sy),l},zt=ym();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(ve._=zt,define(function(){return zt})):on?((on.exports=zt)._=zt,Vi._=zt):ve._=zt}).call(tr)});var AI={};gn(AI,{useDappModal:()=>wI});module.exports=kr(AI);s();var or=require("react");s();s();s();var Np=require("react"),Qn=require("react-redux");s();var Ma=require("@reduxjs/toolkit"),Dp=require("react-redux/lib/utils/Subscription");ae();s();var cp=z(require("lodash.throttle"));se();s();var ap=z(require("lodash.isequal")),di=require("reselect");Ie();var D=(0,di.createSelectorCreator)(di.defaultMemoize,ap.default),Fr=(n,o)=>n!=""&&Boolean(o);ae();xa();zn();qn();var z0=[zo],gi=!1,K0=(0,cp.default)(()=>{Nr(Rr())},5e3),up=n=>o=>i=>{var E;if(z0.includes(i.type))return o(i);let u=n.getState(),m=xn.local.getItem(jt.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(Rr());let v=Date.now();return m-v<0&&!gi?setTimeout(()=>{gi=!0,n.dispatch(Uf())},1e3):(gi&&(gi=!1),K0()),o(i)};s();s();function mi(){return typeof sessionStorage!="undefined"}var Cp=mi()?(Sp(),kr(xp)).default:(wp(),kr(vp)).default,kp=mi()?(Ip(),kr(Ap)).default:[],Pp=mi()?(Ep(),kr(Lp)).default:n=>n;Ti();var ee=(0,Ma.configureStore)({reducer:Cp,middleware:n=>n({serializableCheck:{ignoredActions:[...kp,ya.type,ha.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(up)}),Rp=(0,Dp.createSubscription)(ee),YL=Pp(ee),ZL=(0,Ma.configureStore)({reducer:wn});var mw={store:ee,subscription:Rp},Fa=(0,Np.createContext)(mw),jL=(0,Qn.createStoreHook)(Fa),Pe=(0,Qn.createDispatchHook)(Fa),ne=(0,Qn.createSelectorHook)(Fa);s();s();ae();var Bt=n=>n.account,jn=D(Bt,n=>n.address),Br=D(Bt,jn,(n,o)=>o in n.accounts?n.accounts[o]:Yo),Tw=D(Bt,Br,(n,o)=>{let m=n,{accounts:i}=m,u=Bo(m,["accounts"]);return Q(O({},u),{account:o})}),hw=D(Br,n=>n.balance),yw=D(Br,n=>{var o;return((o=n==null?void 0:n.nonce)==null?void 0:o.valueOf())||0}),rE=D(Bt,n=>n.shard),xw=D(Bt,n=>n.ledgerAccount),oE=D(Bt,n=>n.walletConnectAccount),iE=D(Bt,n=>n.isAccountLoading),sE=D(Bt,n=>n.accountLoadingError),Op=D(Bt,n=>n.websocketEvent);s();var pt=n=>n.loginInfo,lE=D(pt,n=>n.loginMethod),Ua=D(pt,jn,(n,o)=>Fr(n.loginMethod,o)),fE=D(pt,n=>n.walletConnectLogin),pE=D(pt,n=>n.ledgerLogin),Sw=D(pt,n=>n.walletLogin),dE=D(pt,n=>n.isLoginSessionInvalid),vw=D(pt,n=>n.tokenLogin),gE=D(pt,n=>n.logoutRoute);s();var Mp=n=>n.modals,hE=D(Mp,n=>n.txSubmittedModal),ww=D(Mp,n=>n.notificationModal);s();var Wt=n=>n.networkConfig,hi=D(Wt,n=>n.chainID),Aw=D(Wt,n=>n.network.walletConnectBridgeAddress),Iw=D(Wt,n=>n.network.walletConnectV2RelayAddress),_w=D(Wt,n=>n.network.walletConnectV2ProjectId),bw=D(Wt,n=>n.network.walletConnectV2Options),Fp=D(Wt,n=>n.network.walletConnectDeepLink),tn=D(Wt,n=>n.network),Up=D(tn,n=>n.apiAddress),Bp=D(tn,n=>n.explorerAddress),Wp=D(tn,n=>n.egldLabel);s();var Ba=n=>n.signedMessageInfo,wE=D(Ba,n=>n.isSigning),AE=D(Ba,n=>n.errorMessage),IE=D(Ba,n=>{let o=Object.keys(n.signedSessions),i=o.length;return n.signedSessions[o[i-1]]});s();var Wa=n=>n.toasts,LE=D(Wa,n=>n.customToasts),EE=D(Wa,n=>n.transactionToasts),CE=D(Wa,n=>n.failTransactionToast);s();ae();var Gp={errorMessage:ba,successMessage:La,processingMessage:Ea},Lw=n=>n.transactionsInfo,Ew=D(Lw,(n,o)=>o,(n,o)=>o!=null&&(n==null?void 0:n[Number(o)])||Gp);s();s();var Ze=require("@multiversx/sdk-core");se();s();function Ga(n){try{return d.Buffer.from(n,"base64").toString()===atob(n)}catch(o){return!1}}function yi(n){var m,S,v;let{data:o}=n,i=Ga(o!=null?o:"")?Ze.TransactionPayload.fromEncoded(o):new Ze.TransactionPayload(o),u=new Ze.Transaction(O({value:n.value.valueOf(),data:i,nonce:n.nonce.valueOf(),receiver:new Ze.Address(n.receiver),sender:new Ze.Address(n.sender),gasLimit:(m=n.gasLimit.valueOf())!=null?m:Pr,gasPrice:(S=n.gasPrice.valueOf())!=null?S:qo,chainID:n.chainID.valueOf(),version:new Ze.TransactionVersion((v=n.version)!=null?v:wf)},n.options?{options:new Ze.TransactionOptions(n.options)}:{}));return u.applySignature({hex:()=>n.signature||""},new Ze.Address(n.sender)),u}s();s();s();s();s();var kw=require("@multiversx/sdk-core/out");s();se();s();var $p=require("@multiversx/sdk-core");Ie();s();var Pw=require("@multiversx/sdk-core");s();s();s();var Rw=require("@multiversx/sdk-core"),Nw=z(require("bignumber.js"));de();s();s();s();s();s();var Ha="blocks";s();s();s();s();We();s();s();We();s();s();s();var $w=z(require("bignumber.js"));se();s();var Gw=require("@multiversx/sdk-core"),Va=z(require("bignumber.js"));se();s();var Bw=z(require("bignumber.js"));s();Va.default.config({ROUNDING_MODE:Va.default.ROUND_FLOOR});s();s();s();se();s();s();s();s();se();s();se();s();var Hw=require("@multiversx/sdk-core");se();s();var Wr=require("@multiversx/sdk-core"),zw=require("@multiversx/sdk-network-providers");se();s();s();var Vw=z(require("bignumber.js"));se();s();se();s();s();s();s();s();se();s();We();var Yw=["reDelegateRewards","claimRewards","unBond"],Zw=["wrapEgld","unwrapEgld"],Xw=["unStake"],Jw=["unDelegate"];s();s();s();se();s();var tA=z(require("bignumber.js"));s();s();s();s();We();s();var nA=z(require("bignumber.js"));s();s();s();var iA=z(require("bignumber.js"));Ie();s();s();s();s();de();s();s();s();s();We();s();s();s();var sA=z(require("linkifyjs"));s();se();s();var aA=z(require("bignumber.js"));s();Ie();s();s();de();s();de();s();s();s();We();s();We();s();var cA=z(require("bignumber.js"));se();We();s();We();s();var Qp=require("react");Ie();s();s();We();s();s();var uA=require("@multiversx/sdk-core/out"),lA=z(require("bignumber.js"));We();s();Ie();s();s();Ie();var uR=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];s();var jp=require("react");Ie();s();var pA=require("react");We();var TR=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];Jn();var wi=n=>n.transactions,er=D(wi,n=>n.signedTransactions),dA=D(wi,n=>n.signTransactionsError),ed=D(wi,n=>n.signTransactionsCancelMessage),Ai=n=>o=>Object.entries(o).reduce((i,[u,m])=>(n(m.status)&&(i[u]=m),i),{}),td=D(er,Ai(Yn)),nd=D(er,Ai(Zn)),rd=D(er,Ai(Xn)),gA=D(er,Ai(ka)),od=D(wi,n=>{var o;return(n==null?void 0:n.transactionsToSign)==null?null:Q(O({},n.transactionsToSign),{transactions:((o=n==null?void 0:n.transactionsToSign)==null?void 0:o.transactions.map(i=>yi(i)))||[]})}),mA=D(er,(n,o)=>o,(n,o)=>o!=null?(n==null?void 0:n[o])||{}:{});s();var id=require("react");s();ae();s();s();s();s();s();s();s();s();var TA=require("@multiversx/sdk-extension-provider"),hA=require("@multiversx/sdk-hw-provider"),yA=require("@multiversx/sdk-opera-provider"),xA=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider"),SA=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider"),vA=require("@multiversx/sdk-web-wallet-provider");se();de();var Gt=n=>`Unable to perform ${n}, Provider not initialized`,za=class{init(){return Promise.resolve(!1)}login(o){throw new Error(Gt(`login with options: ${o}`))}logout(o){throw new Error(Gt(`logout with options: ${o}`))}getAddress(){throw new Error(Gt("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(o,i){throw new Error(Gt(`sendTransaction with transactions: ${o} options: ${i}`))}signTransaction(o,i){throw new Error(Gt(`signTransaction with transactions: ${o} options: ${i}`))}signTransactions(o,i){throw new Error(Gt(`signTransactions with transactions: ${o} options: ${i}`))}signMessage(o,i){throw new Error(Gt(`signTransactions with ${o} and options ${i}`))}sendCustomMessage({method:o,params:i}){throw new Error(Gt(`sendCustomMessage with method: ${o} params: ${i}`))}sendCustomRequest(o){throw new Error(Gt(`sendSessionEvent with options: ${o}`))}ping(){return Promise.resolve(!1)}},wA=new za;ae();s();s();var AA=z(require("axios"));s();s();s();de();s();s();s();Jn();s();s();s();var IA=z(require("axios"));s();var _A=z(require("axios"));s();var LA=z(require("axios"));s();s();var EA=z(require("axios"));s();var CA=z(require("axios"));s();ae();de();s();s();ae();s();s();var ud=require("@multiversx/sdk-core");s();ke();Ie();s();Jn();s();ae();de();s();ae();Ie();s();s();s();Ie();s();s();s();s();var RA=z(require("axios")),NA=z(require("swr"));s();s();var ld=require("react");s();var FA=require("react"),dd=require("@multiversx/sdk-web-wallet-provider"),UA=z(require("qs"));se();ae();de();s();s();var fd,yF={search:(fd=window==null?void 0:window.location)==null?void 0:fd.search,removeParams:[]};s();var gd=require("react");va();s();var yd=require("react"),KA=require("@multiversx/sdk-extension-provider");se();s();ae();de();s();s();s();s();var hd=require("react"),HA=require("@multiversx/sdk-extension-provider");se();s();s();s();s();s();s();s();s();var Gr=z(require("react"));var uU=(0,Gr.createContext)({}),lU=ee.getState();s();var Td=z(require("react"));s();var Xa=z(require("react")),WA=z(require("axios"));s();s();ae();s();s();var YA=z(require("axios"));ae();Ie();Or();s();yn();ae();s();s();var oI=require("react");s();s();s();ae();s();s();var JA=z(require("bignumber.js"));se();ae();Ie();s();var XA=z(require("bignumber.js"));se();s();var QA=require("@multiversx/sdk-core"),jA=z(require("bignumber.js"));se();s();s();s();s();var vd=z(require("axios"));s();s();s();function xd(n){return K(this,null,function*(){return yield new Promise(o=>{setTimeout(()=>o(),n)})})}s();var Sd=(n,o,i,u=0)=>K(void 0,null,function*(){try{return yield n(...i)}catch(m){return u<o.retries?((o==null?void 0:o.delay)!=null&&(yield xd(o.delay)),yield Sd(n,o,i,u+1)):null}}),Qa=(n,o={retries:5,delay:500})=>(...i)=>K(void 0,null,function*(){return yield Sd(n,o,i)});var eI=4;var eW=Qa((n,o)=>K(void 0,null,function*(){let{data:i}=yield vd.default.get(`${n}/${Ha}?from=${eI}&size=1&fields=hash,timestamp${o?"&shard="+o:""}`),[u]=i;return u}));s();s();Ko();s();s();var tI=z(wd());s();var Ad,dW={origin:typeof window!="undefined"?(Ad=window==null?void 0:window.location)==null?void 0:Ad.origin:"",apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60};s();de();Jn();s();var Id=require("react");s();s();var sI=require("react"),aI=require("@multiversx/sdk-extension-provider");yn();ke();de();s();Sn();s();var iI=require("react"),_d=require("@multiversx/sdk-core");ae();s();var cI=require("react"),uI=require("@multiversx/sdk-opera-provider");yn();ke();de();Sn();s();var pI=require("react");yn();ae();s();s();la();s();s();var lI=z(require("platform"));s();ke();Ie();Or();zn();qn();s();s();s();s();s();s();s();s();s();de();s();Or();zn();s();s();s();ae();s();s();var fI=z(require("axios"));s();s();var bd=require("react"),gI=require("@multiversx/sdk-hw-provider");yn();ke();ae();de();Sn();s();var dI=require("react");s();var ec=require("react"),hI=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider");ke();ae();de();Sn();s();var tc=require("react"),yI=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider");ke();ae();de();Sn();s();s();var Ld=require("react");s();var vI=require("react");s();var nc=require("react"),SI=require("socket.io-client");ae();s();s();s();s();var Ed=n=>n.dappModal,Cd=D(Ed,n=>n.visible),rr=D(Ed,n=>n.modal),V6=D(rr,n=>n.showHeader),q6=D(rr,n=>n.showFooter),z6=D(rr,n=>n.headerText),K6=D(rr,n=>n.footerText);var kd=()=>ne(Cd);Na();var wI=n=>{var k;let o=Pe(),i=kd(),u=ne(rr),m=()=>{o(Ra(!0))},S=()=>{o(Ra(!1))},v=(0,or.useCallback)(E=>{o(dp(E))},[]);return(0,or.useEffect)(()=>{n!=null&&n.modalConfig&&v(n==null?void 0:n.modalConfig)},[n==null?void 0:n.modalConfig]),(0,or.useEffect)(()=>{var E;return(E=n==null?void 0:n.config)!=null&&E.openOnMount&&m(),()=>{S()}},[]),(0,or.useEffect)(()=>{var E;typeof((E=n==null?void 0:n.config)==null?void 0:E.visible)=="boolean"&&(n.config.visible?m():S())},[(k=n==null?void 0:n.config)==null?void 0:k.visible]),{handleShowModal:m,handleHideModal:S,setModalConfig:v,visible:i,config:u}};0&&(module.exports={useDappModal});
|
|
21
21
|
/*!
|
|
22
22
|
* The buffer module from node.js, for the browser.
|
|
23
23
|
*
|