@everymatrix/player-account-controller-nd 1.74.10 → 1.75.99
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/components/{GeneralLogout-C52-PhwD.js → GeneralLogout-D030tuMl.js} +1298 -1284
- package/components/{GeneralLogout-C-KQBmk3.js → GeneralLogout-DqIgt_tx.js} +1322 -1308
- package/components/GeneralLogout-TofSUXEw.cjs +21 -0
- package/components/PlayerAccountBettingHistory-85apG_ux.cjs +1 -0
- package/components/PlayerAccountBettingHistory-BspqrGzf.js +310 -0
- package/components/PlayerAccountBettingHistory-Dl1_SAM4.js +311 -0
- package/components/{PlayerAccountBiometrics-C5FFOJ5V.js → PlayerAccountBiometrics-DsYJOGIk.js} +5 -5
- package/components/{PlayerAccountBiometrics-DPdT285K.cjs → PlayerAccountBiometrics-N164JTVo.cjs} +1 -1
- package/components/{PlayerAccountBiometrics-DuvDCmjx.js → PlayerAccountBiometrics-YcohloWe.js} +5 -5
- package/components/{PlayerAccountClosureNd-BEMKT7IM.js → PlayerAccountClosureNd-B9z8p3ie.js} +6 -6
- package/components/{PlayerAccountClosureNd-CYHq0859.js → PlayerAccountClosureNd-C5CrElCk.js} +6 -6
- package/components/{PlayerAccountClosureNd-CMzRAP8U.cjs → PlayerAccountClosureNd-DFWHunWk.cjs} +1 -1
- package/components/{PlayerAccountControllerNd-BLPNyTdD.cjs → PlayerAccountControllerNd-BIYxelWf.cjs} +1 -1
- package/components/PlayerAccountControllerNd-BnL3zttA.js +8883 -0
- package/components/PlayerAccountControllerNd-Brc1Pm9G.cjs +1 -0
- package/components/{PlayerAccountControllerNd-CkMeFrTH.js → PlayerAccountControllerNd-CQiByOpl.js} +215 -215
- package/components/PlayerAccountControllerNd-QNff2Pgi.js +8900 -0
- package/components/{PlayerAccountControllerNd-DVnO4_Om.js → PlayerAccountControllerNd-wYyuG8M1.js} +212 -212
- package/components/{PlayerAccountGamingLimits-B7ppWJQ6.js → PlayerAccountGamingLimits-CUtQADXZ.js} +124 -124
- package/components/{PlayerAccountGamingLimits-DMS9a3TN.js → PlayerAccountGamingLimits-CsAmDJwA.js} +124 -124
- package/components/{PlayerAccountGamingLimits-B2vzRems.cjs → PlayerAccountGamingLimits-DLyOkU8g.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsConfirmationModal-Crt7TSIB.js → PlayerAccountGamingLimitsConfirmationModal-CKwL1tb1.js} +38 -38
- package/components/{PlayerAccountGamingLimitsConfirmationModal-rkO4-ifF.js → PlayerAccountGamingLimitsConfirmationModal-DXqRhhmC.js} +38 -38
- package/components/PlayerAccountGamingLimitsConfirmationModal-cxg0byfD.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsGroupEdit-JerzRaIW.cjs → PlayerAccountGamingLimitsGroupEdit-BEb7Fv28.cjs} +2 -2
- package/components/{PlayerAccountGamingLimitsGroupEdit-CDRqETAd.js → PlayerAccountGamingLimitsGroupEdit-Cj8Zh8WK.js} +1009 -1009
- package/components/{PlayerAccountGamingLimitsGroupEdit-B-MqO4BJ.js → PlayerAccountGamingLimitsGroupEdit-DKNPRs3o.js} +1009 -1009
- package/components/{PlayerAccountGamingLimitsHistory2Nd-C85Ls9oF.js → PlayerAccountGamingLimitsHistory2Nd-BhLSHYdC.js} +4 -4
- package/components/{PlayerAccountGamingLimitsHistory2Nd-CG8WJl-W.cjs → PlayerAccountGamingLimitsHistory2Nd-CP6Lgi2e.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2Nd-C5ysmYyV.js → PlayerAccountGamingLimitsHistory2Nd-OS3hwfOI.js} +4 -4
- package/components/{PlayerAccountGamingLimitsInfoCard-BYwQnhb5.js → PlayerAccountGamingLimitsInfoCard-CLe77Gl9.js} +7 -7
- package/components/{PlayerAccountGamingLimitsInfoCard-DjnVkaho.js → PlayerAccountGamingLimitsInfoCard-DsRCdtpt.js} +7 -7
- package/components/{PlayerAccountGamingLimitsInfoCard-DRRou8s9.cjs → PlayerAccountGamingLimitsInfoCard-XCP1Kxff.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-Cd8mrrqZ.js → PlayerAccountGamingLimitsPage2Gm16Nd-BRkHDHHU.js} +423 -416
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-BMYVxNF1.cjs → PlayerAccountGamingLimitsPage2Gm16Nd-BZanq3Dj.cjs} +6 -6
- package/components/PlayerAccountGamingLimitsPage2Gm16Nd-C3w7JfjF.js +4235 -0
- package/components/PlayerAccountGamingLimitsPage2Gm16Nd-CENUtyWC.js +4289 -0
- package/components/PlayerAccountGamingLimitsPage2Gm16Nd-DWUo_yOs.cjs +35 -0
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-oZxq2GPD.js → PlayerAccountGamingLimitsPage2Gm16Nd-DvZCI9jR.js} +392 -385
- package/components/{PlayerAccountGamingLimitsPopup-lZ7y_RVP.js → PlayerAccountGamingLimitsPopup-B04Er6pi.js} +21 -21
- package/components/{PlayerAccountGamingLimitsPopup-D16rhs4n.cjs → PlayerAccountGamingLimitsPopup-DNjM-xS5.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-1ObhRFHn.js → PlayerAccountGamingLimitsPopup-oQNgmn2e.js} +21 -21
- package/components/PlayerAccountGamingLimitsWrapper2Nd-Bwnuz6Yq.js +1284 -0
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-DVmSDv2F.js → PlayerAccountGamingLimitsWrapper2Nd-GzdrBFqR.js} +6 -6
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-g_R5EsPn.cjs → PlayerAccountGamingLimitsWrapper2Nd-eFKelHQy.cjs} +1 -1
- package/components/PlayerAccountGamingLimitsWrapper2Nd-r_RFzIhz.js +1292 -0
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-iMEe46CC.js → PlayerAccountGamingLimitsWrapper2Nd-u6W-W9e4.js} +6 -6
- package/components/PlayerAccountGamingLimitsWrapper2Nd-xKD7XYGD.cjs +4 -0
- package/components/PlayerAccountGeneralConfirmationModal-BFCCI67b.cjs +1 -0
- package/components/{PlayerAccountGeneralConfirmationModal-Bgat7eVE.js → PlayerAccountGeneralConfirmationModal-CukB9VCO.js} +53 -53
- package/components/{PlayerAccountGeneralConfirmationModal-DrgjMSLh.js → PlayerAccountGeneralConfirmationModal-ESnfg5wk.js} +53 -53
- package/components/{PlayerAccountMenuNd-V9EOIgPS.js → PlayerAccountMenuNd-BIxULyK_.js} +7 -7
- package/components/{PlayerAccountMenuNd-alDPH0d2.js → PlayerAccountMenuNd-Dz2t35yx.js} +7 -7
- package/components/{PlayerAccountMenuNd-Yk5u12tl.cjs → PlayerAccountMenuNd-y2DyyHIy.cjs} +1 -1
- package/components/{PlayerAccountModal-9FK6eAt0.js → PlayerAccountModal-BUf_-0GM.js} +10 -10
- package/components/{PlayerAccountModal-DCsw7iyn.js → PlayerAccountModal-BZ_7luqG.js} +10 -10
- package/components/{PlayerAccountModal-DvJ0OsPC.cjs → PlayerAccountModal-DaIBO9tP.cjs} +1 -1
- package/components/{PlayerAccountNotifications-CdPeCghS.cjs → PlayerAccountNotifications-BbvJAh0S.cjs} +1 -1
- package/components/{PlayerAccountNotifications-BVfKQdMA.js → PlayerAccountNotifications-CNm0Cac9.js} +6 -6
- package/components/{PlayerAccountNotifications-BzEDVvTZ.js → PlayerAccountNotifications-qzx6Peu-.js} +6 -6
- package/components/{PlayerAccountProductRestriction-BJ0LFpLp.cjs → PlayerAccountProductRestriction-DJUublp5.cjs} +268 -268
- package/components/{PlayerAccountProductRestriction-DmWDaeEI.js → PlayerAccountProductRestriction-Dj-GoA-Y.js} +2498 -2494
- package/components/{PlayerAccountProductRestriction-EAWMHqK4.js → PlayerAccountProductRestriction-k26MhfnT.js} +2521 -2517
- package/components/{PlayerAccountSelfExclusionNd-BLr1N-Bv.cjs → PlayerAccountSelfExclusionNd-AgJSFDnT.cjs} +152 -152
- package/components/{PlayerAccountSelfExclusionNd-CiB251y6.js → PlayerAccountSelfExclusionNd-BQtNrIGS.js} +825 -824
- package/components/{PlayerAccountSelfExclusionNd-BI74DoLY.js → PlayerAccountSelfExclusionNd-CNzMQ7eW.js} +844 -843
- package/components/{PlayerAccountTimeout-U0kgxhKU.cjs → PlayerAccountTimeout-BSSbDBi8.cjs} +1 -1
- package/components/{PlayerAccountTimeout-BlJS9laL.js → PlayerAccountTimeout-CYyxjqJQ.js} +43 -43
- package/components/{PlayerAccountTimeout-GP0WHuhG.js → PlayerAccountTimeout-DTzfXl3o.js} +43 -43
- package/components/{PlayerAccountTransactionsHistory-hyaqdne0.js → PlayerAccountTransactionsHistory-Bj0KJm_X.js} +7 -7
- package/components/{PlayerAccountTransactionsHistory-D5lotPR-.js → PlayerAccountTransactionsHistory-BqN2JEaw.js} +7 -7
- package/components/{PlayerAccountTransactionsHistory-BxNwks5H.cjs → PlayerAccountTransactionsHistory-rH9fIVPg.cjs} +1 -1
- package/components/{PlayerActiveBonuses-zLuqH4eW.js → PlayerActiveBonuses-CG3MShje.js} +6 -6
- package/components/{PlayerActiveBonuses-Me5Q3o65.cjs → PlayerActiveBonuses-VMRnoY1_.cjs} +1 -1
- package/components/{PlayerActiveBonuses-D4OBnwNa.js → PlayerActiveBonuses-_5tMeqW1.js} +6 -6
- package/components/{PlayerBonusCard-BhW_g3sH.js → PlayerBonusCard-JxCswDEv.js} +7 -7
- package/components/{PlayerBonusCard-DgyhSYBs.cjs → PlayerBonusCard-KehruUku.cjs} +1 -1
- package/components/{PlayerBonusCard-BbRQx8Gg.js → PlayerBonusCard-PjFBuYOQ.js} +7 -7
- package/components/{PlayerBonusHistory-BxbtWY0l.js → PlayerBonusHistory-BJxVpVed.js} +7 -7
- package/components/{PlayerBonusHistory-C_uP6nBB.js → PlayerBonusHistory-D4fHekky.js} +7 -7
- package/components/{PlayerBonusHistory-BmeRyaDK.cjs → PlayerBonusHistory-WEjZxD6T.cjs} +1 -1
- package/components/{PlayerChangePasswordNd-DUzbCK4p.js → PlayerChangePasswordNd-BNKqXdus.js} +4 -4
- package/components/{PlayerChangePasswordNd-DSIi_04v.cjs → PlayerChangePasswordNd-DcgU3jc2.cjs} +1 -1
- package/components/{PlayerChangePasswordNd-DWsHRVAH.js → PlayerChangePasswordNd-DeLVgl-F.js} +4 -4
- package/components/PlayerDeposit-BLDWbMBK.cjs +1 -0
- package/components/{PlayerDeposit-BeGgsgNu.js → PlayerDeposit-CNQfct0C.js} +73 -73
- package/components/{PlayerDeposit-CI5GIyAe.js → PlayerDeposit-DGv0xh8z.js} +73 -73
- package/components/{PlayerGamingHistory-DEgVt4st.js → PlayerGamingHistory-BGfVusNu.js} +60 -60
- package/components/{PlayerGamingHistory-F3yi70Vu.cjs → PlayerGamingHistory-BxN4Cjj3.cjs} +1 -1
- package/components/{PlayerGamingHistory-BJQKapHg.js → PlayerGamingHistory-wT_xKClx.js} +53 -53
- package/components/{PlayerPendingWithdrawals-BL4JTLkC.js → PlayerPendingWithdrawals-BB2HoABl.js} +6 -6
- package/components/{PlayerPendingWithdrawals-o6_OjL5C.js → PlayerPendingWithdrawals-BizDJ0F9.js} +6 -6
- package/components/{PlayerPendingWithdrawals-D-KWiMH6.cjs → PlayerPendingWithdrawals-DfQ_PvkY.cjs} +1 -1
- package/components/{PlayerProfileInfo-xRMbiw1T.js → PlayerProfileInfo-C-g4XepU.js} +95 -95
- package/components/{PlayerProfileInfo-CwZQ79SV.cjs → PlayerProfileInfo-CKJNYYA8.cjs} +1 -1
- package/components/{PlayerProfileInfo-D0A3aRV_.js → PlayerProfileInfo-Cnl1XufF.js} +108 -108
- package/components/{PlayerRealityCheck-BEiZhn6p.js → PlayerRealityCheck-BBmsx1va.js} +6 -6
- package/components/{PlayerRealityCheck-JdOGHDG6.cjs → PlayerRealityCheck-Cq2rIALW.cjs} +1 -1
- package/components/{PlayerRealityCheck-CYU_NrFB.js → PlayerRealityCheck-P7wFyweE.js} +6 -6
- package/components/{PlayerTransactionHistory-BS1LjP09.js → PlayerTransactionHistory-CqY9DKiK.js} +6 -6
- package/components/{PlayerTransactionHistory-DdbQZ6mw.js → PlayerTransactionHistory-DN6FJ2lh.js} +6 -6
- package/components/{PlayerTransactionHistory-Hz2IWD73.cjs → PlayerTransactionHistory-DPvvu8Wp.cjs} +1 -1
- package/components/{PlayerWithdrawal-P_0MIA-u.cjs → PlayerWithdrawal-BcaC1sEF.cjs} +1 -1
- package/components/{PlayerWithdrawal-DGN4Y9QP.js → PlayerWithdrawal-lAVd0flG.js} +6 -6
- package/components/{PlayerWithdrawal-DOec04Iq.js → PlayerWithdrawal-oEAQeQgU.js} +6 -6
- package/es2015/player-account-controller-nd.cjs +1 -1
- package/es2015/player-account-controller-nd.js +1 -1
- package/esnext/player-account-controller-nd.js +1 -1
- package/package.json +1 -1
- package/stencil/{checkbox-group-input_15-BzU_0jJ_.js → checkbox-group-input_15-B47EbzkJ.js} +3227 -3221
- package/stencil/{checkbox-group-input_15-7ljokaYC.js → checkbox-group-input_15-BBaHCJ8m.js} +3231 -3225
- package/stencil/{checkbox-group-input_15-Fs7-YN7u.cjs → checkbox-group-input_15-BPXIBJ9O.cjs} +271 -271
- package/stencil/checkbox-group-input_15-C-tu3w4x.cjs +6305 -0
- package/stencil/checkbox-group-input_15-Crm4FsV9.js +19787 -0
- package/stencil/checkbox-group-input_15-DgfJh8az.js +19787 -0
- package/stencil/index-13661b98-8UaEvsFO.js +595 -0
- package/stencil/index-13661b98-BR0rdAwz.cjs +1 -0
- package/stencil/index-13661b98-BzYpZXJ-.js +595 -0
- package/stencil/{index-13661b98-BJM2hHx6.js → index-13661b98-D93Apl47.js} +124 -124
- package/stencil/index-13661b98-DBuU9Lk0.cjs +1 -0
- package/stencil/{index-13661b98-Cty_Ct2m.js → index-13661b98-y1Pmtmkx.js} +198 -182
- package/stencil/{index-1ef3a64c-DuKSFSN8.js → index-1ef3a64c-BJwg6KZV.js} +201 -201
- package/stencil/index-1ef3a64c-BkMv_VME.cjs +1 -0
- package/stencil/index-1ef3a64c-Cl4fiqPl.js +556 -0
- package/stencil/index-6e523641-078VKWzv.js +627 -0
- package/stencil/index-6e523641-BzXfsijo.cjs +1 -0
- package/stencil/index-6e523641-Q8F9VHK2.js +654 -0
- package/stencil/{index-7c5e707a-B54Yjxc3.js → index-7c5e707a-BZ26MA7_.js} +135 -135
- package/stencil/{index-7c5e707a-BHFN5Fx4.js → index-7c5e707a-CVVnpkZ1.js} +145 -145
- package/stencil/index-7c5e707a-d0LYIjGl.cjs +1 -0
- package/stencil/{index-9c0f6c58-Ucwc3Jk1.js → index-9c0f6c58-8sXzcKbt.js} +223 -223
- package/stencil/index-9c0f6c58-CbFwvYJ1.cjs +1 -0
- package/stencil/{index-9c0f6c58-GCIFeGLp.js → index-9c0f6c58-DH5Ki39B.js} +118 -118
- package/stencil/{index-b2193545-LzjWxki5.js → index-b2193545-BekNYO1T.js} +176 -176
- package/stencil/index-b2193545-BteAUmdh.cjs +1 -0
- package/stencil/{index-b2193545-DPKCFIaU.js → index-b2193545-DfDFpDFs.js} +169 -169
- package/stencil/{pam-change-password-DSAfkY23.js → pam-change-password-9bMd9dOQ.js} +1 -1
- package/stencil/pam-change-password-BK3IrP-3.js +25 -0
- package/stencil/pam-change-password-BeaU-3Ut.js +7 -0
- package/stencil/pam-change-password-BzyWRqhJ.cjs +1 -0
- package/stencil/{pam-change-password-mcRyjsPo.cjs → pam-change-password-D9deCtek.cjs} +1 -1
- package/stencil/{pam-change-password-af5033a0-BfWHc1Rw.js → pam-change-password-af5033a0-BdPXYjRb.js} +59 -59
- package/stencil/{pam-change-password-af5033a0-C18GwNdS.cjs → pam-change-password-af5033a0-CPFagM2l.cjs} +2 -2
- package/stencil/{pam-change-password-af5033a0-DYGjeRTR.js → pam-change-password-af5033a0-CXI6y6VZ.js} +59 -59
- package/stencil/pam-change-password-c578e291-B-RrWGEo.js +494 -0
- package/stencil/pam-change-password-c578e291-BZDon57y.js +494 -0
- package/stencil/pam-change-password-c578e291-Dh2wXnbm.cjs +125 -0
- package/stencil/{pam-change-password-Bdu7Bk_h.js → pam-change-password-h1ivBSP6.js} +1 -1
- package/stencil/{player-kyc-verification-Wsswi9br.js → player-kyc-verification-BJuBsd7A.js} +1 -1
- package/stencil/{player-kyc-verification-D10m225z.cjs → player-kyc-verification-DW2tWbg_.cjs} +1 -1
- package/stencil/{player-kyc-verification-B9ZaCq1K.js → player-kyc-verification-u-XUlDen.js} +1 -1
- package/stencil/{ui-skeleton-Cbqo0oYF.cjs → ui-skeleton-Bez-iF-R.cjs} +1 -1
- package/stencil/{ui-skeleton-LneRlsD3.js → ui-skeleton-CScGJdv_.js} +2 -2
- package/stencil/{ui-skeleton-2XsWxl4S.js → ui-skeleton-CnxOhYAT.js} +2 -2
- package/stencil/{ui-skeleton-ae35c6f2-OnzqIAY0.js → ui-skeleton-ae35c6f2-Bl0_r9TX.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-8s3Rqu1P.js → ui-skeleton-ae35c6f2-CXRVKjq-.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-B4ncHe9g.cjs → ui-skeleton-ae35c6f2-D37mmp9J.cjs} +1 -1
- package/stencil/{user-deposit-withdrawal-CSakhNt1.js → user-deposit-withdrawal-B7dnuKq0.js} +45 -45
- package/stencil/{user-deposit-withdrawal-BP58nPO1.cjs → user-deposit-withdrawal-KqJCF9Hl.cjs} +2 -2
- package/stencil/{user-deposit-withdrawal-DcVKAa80.js → user-deposit-withdrawal-ar8K3Kn7.js} +45 -45
- package/stencil/user-transaction-history-8J3-J0I0.js +7 -0
- package/stencil/user-transaction-history-Ch7DwPng.cjs +1 -0
- package/stencil/{user-transaction-history-D0jBcRwe.js → user-transaction-history-D86WcqZY.js} +588 -588
- package/stencil/user-transaction-history-DeLTrl8E.js +25 -0
- package/stencil/{user-transaction-history-BrBScppC.js → user-transaction-history-o1zvVNkt.js} +600 -600
- package/stencil/user-transaction-history-xgpDQYWU.cjs +1 -0
- package/stencil/user-transaction-history_2-B4YDWP13.js +3535 -0
- package/stencil/user-transaction-history_2-BxjAG99A.cjs +2 -0
- package/stencil/user-transaction-history_2-MG1TmhMo.js +3557 -0
- package/components/GeneralLogout-COm1JcKW.cjs +0 -21
- package/components/PlayerAccountBettingHistory-5QM3bGgT.js +0 -310
- package/components/PlayerAccountBettingHistory-B91V20F2.js +0 -311
- package/components/PlayerAccountBettingHistory-CE023VGz.cjs +0 -1
- package/components/PlayerAccountGamingLimitsConfirmationModal-BR2Qm3Iq.cjs +0 -1
- package/components/PlayerAccountGeneralConfirmationModal-BajaU0jJ.cjs +0 -1
- package/components/PlayerDeposit-CmBFg6tX.cjs +0 -1
- package/stencil/index-13661b98-DuhNdmHd.cjs +0 -1
- package/stencil/index-1ef3a64c-DD-PHh2g.cjs +0 -1
- package/stencil/index-1ef3a64c-DQk1yZfC.js +0 -556
- package/stencil/index-7c5e707a-CFlTnjRT.cjs +0 -1
- package/stencil/index-9c0f6c58-8Ks3y9ln.cjs +0 -1
- package/stencil/index-b2193545-BMFR9-V2.cjs +0 -1
- package/stencil/user-transaction-history-HA_tfHfo.cjs +0 -1
|
@@ -0,0 +1,3557 @@
|
|
|
1
|
+
var de = (i, a, t) => new Promise((r, e) => {
|
|
2
|
+
var o = (u) => {
|
|
3
|
+
try {
|
|
4
|
+
s(t.next(u));
|
|
5
|
+
} catch (f) {
|
|
6
|
+
e(f);
|
|
7
|
+
}
|
|
8
|
+
}, n = (u) => {
|
|
9
|
+
try {
|
|
10
|
+
s(t.throw(u));
|
|
11
|
+
} catch (f) {
|
|
12
|
+
e(f);
|
|
13
|
+
}
|
|
14
|
+
}, s = (u) => u.done ? r(u.value) : Promise.resolve(u.value).then(o, n);
|
|
15
|
+
s((t = t.apply(i, a)).next());
|
|
16
|
+
});
|
|
17
|
+
import { r as Fe, g as Ye, h as l, H as ot, a as st, c as ut } from "./index-6e523641-Q8F9VHK2.js";
|
|
18
|
+
const lt = {
|
|
19
|
+
en: {
|
|
20
|
+
deposit: "Deposit",
|
|
21
|
+
withdrawals: "Withdrawals",
|
|
22
|
+
show: "Show",
|
|
23
|
+
from: "From",
|
|
24
|
+
to: "To",
|
|
25
|
+
filter: "Filter",
|
|
26
|
+
transactionId: "Transaction ID",
|
|
27
|
+
date: "Date",
|
|
28
|
+
amount: "Amount",
|
|
29
|
+
productType: "Product Type",
|
|
30
|
+
status: "Status",
|
|
31
|
+
noData: "There are no account activities",
|
|
32
|
+
transactionTitle: "Transaction History"
|
|
33
|
+
},
|
|
34
|
+
hr: {
|
|
35
|
+
deposit: "Uplate",
|
|
36
|
+
withdrawals: "Isplate",
|
|
37
|
+
show: "Prikaži",
|
|
38
|
+
from: "Od",
|
|
39
|
+
to: "Do",
|
|
40
|
+
filter: "Filter",
|
|
41
|
+
transactionId: "ID transakcije",
|
|
42
|
+
date: "Datum",
|
|
43
|
+
amount: "Iznos",
|
|
44
|
+
productType: "Vrsta proizvoda",
|
|
45
|
+
status: "Status",
|
|
46
|
+
noData: "Nema aktivnosti na računu",
|
|
47
|
+
transactionTitle: "Povijest transakcija"
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
class g {
|
|
51
|
+
constructor() {
|
|
52
|
+
}
|
|
53
|
+
static loadCustomTranslations(a) {
|
|
54
|
+
return de(this, null, function* () {
|
|
55
|
+
try {
|
|
56
|
+
const t = yield fetch(a, {
|
|
57
|
+
headers: {
|
|
58
|
+
"Content-Type": "application/json"
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
if (!t.ok) {
|
|
62
|
+
const e = yield t.text();
|
|
63
|
+
throw new Error(e);
|
|
64
|
+
}
|
|
65
|
+
const r = yield t.json();
|
|
66
|
+
g.updateTranslations(r);
|
|
67
|
+
} catch (t) {
|
|
68
|
+
console.error(`Failed to load translations ${a}. ${t.message}`);
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
static translate(a, t) {
|
|
73
|
+
var r, e;
|
|
74
|
+
const o = g.getAvaliableLanguages(t);
|
|
75
|
+
return ((e = (r = g.customTranslation) === null || r === void 0 ? void 0 : r[o.customLanguage]) === null || e === void 0 ? void 0 : e[a]) || g.defaultTranslation[o.predefinedLanguage][a];
|
|
76
|
+
}
|
|
77
|
+
static getAvaliableLanguages(a) {
|
|
78
|
+
var t;
|
|
79
|
+
const r = !((t = g.customLanguages) === null || t === void 0) && t.includes(a) ? a : g.defaultLanguage;
|
|
80
|
+
return { predefinedLanguage: g.supportedLanguages.includes(a) ? a : g.defaultLanguage, customLanguage: r };
|
|
81
|
+
}
|
|
82
|
+
static updateTranslations(a) {
|
|
83
|
+
g.customLanguages = Array.from(/* @__PURE__ */ new Set([...g.supportedLanguages, ...Object.keys(a).map((t) => t.toLowerCase())])), g.customTranslation = a;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
g.defaultLanguage = "en";
|
|
87
|
+
g.supportedLanguages = ["en"];
|
|
88
|
+
g.defaultTranslation = lt;
|
|
89
|
+
const ct = () => l(
|
|
90
|
+
"div",
|
|
91
|
+
{ class: "loader" },
|
|
92
|
+
l("div", null),
|
|
93
|
+
l("div", null),
|
|
94
|
+
l("div", null),
|
|
95
|
+
l("div", null),
|
|
96
|
+
l("div", null),
|
|
97
|
+
l("div", null),
|
|
98
|
+
l("div", null),
|
|
99
|
+
l("div", null),
|
|
100
|
+
l("div", null),
|
|
101
|
+
l("div", null),
|
|
102
|
+
l("div", null),
|
|
103
|
+
l("div", null)
|
|
104
|
+
);
|
|
105
|
+
function Q(i) {
|
|
106
|
+
"@babel/helpers - typeof";
|
|
107
|
+
return Q = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(a) {
|
|
108
|
+
return typeof a;
|
|
109
|
+
} : function(a) {
|
|
110
|
+
return a && typeof Symbol == "function" && a.constructor === Symbol && a !== Symbol.prototype ? "symbol" : typeof a;
|
|
111
|
+
}, Q(i);
|
|
112
|
+
}
|
|
113
|
+
function M(i, a) {
|
|
114
|
+
if (a.length < i)
|
|
115
|
+
throw new TypeError(i + " argument" + (i > 1 ? "s" : "") + " required, but only " + a.length + " present");
|
|
116
|
+
}
|
|
117
|
+
function dt(i) {
|
|
118
|
+
return M(1, arguments), i instanceof Date || Q(i) === "object" && Object.prototype.toString.call(i) === "[object Date]";
|
|
119
|
+
}
|
|
120
|
+
function W(i) {
|
|
121
|
+
M(1, arguments);
|
|
122
|
+
var a = Object.prototype.toString.call(i);
|
|
123
|
+
return i instanceof Date || Q(i) === "object" && a === "[object Date]" ? new Date(i.getTime()) : typeof i == "number" || a === "[object Number]" ? new Date(i) : ((typeof i == "string" || a === "[object String]") && typeof console != "undefined" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN));
|
|
124
|
+
}
|
|
125
|
+
function ft(i) {
|
|
126
|
+
if (M(1, arguments), !dt(i) && typeof i != "number")
|
|
127
|
+
return !1;
|
|
128
|
+
var a = W(i);
|
|
129
|
+
return !isNaN(Number(a));
|
|
130
|
+
}
|
|
131
|
+
function S(i) {
|
|
132
|
+
if (i === null || i === !0 || i === !1)
|
|
133
|
+
return NaN;
|
|
134
|
+
var a = Number(i);
|
|
135
|
+
return isNaN(a) ? a : a < 0 ? Math.ceil(a) : Math.floor(a);
|
|
136
|
+
}
|
|
137
|
+
function ht(i, a) {
|
|
138
|
+
M(2, arguments);
|
|
139
|
+
var t = W(i).getTime(), r = S(a);
|
|
140
|
+
return new Date(t + r);
|
|
141
|
+
}
|
|
142
|
+
function Ie(i, a) {
|
|
143
|
+
M(2, arguments);
|
|
144
|
+
var t = S(a);
|
|
145
|
+
return ht(i, -t);
|
|
146
|
+
}
|
|
147
|
+
var vt = 864e5;
|
|
148
|
+
function mt(i) {
|
|
149
|
+
M(1, arguments);
|
|
150
|
+
var a = W(i), t = a.getTime();
|
|
151
|
+
a.setUTCMonth(0, 1), a.setUTCHours(0, 0, 0, 0);
|
|
152
|
+
var r = a.getTime(), e = t - r;
|
|
153
|
+
return Math.floor(e / vt) + 1;
|
|
154
|
+
}
|
|
155
|
+
function ee(i) {
|
|
156
|
+
M(1, arguments);
|
|
157
|
+
var a = 1, t = W(i), r = t.getUTCDay(), e = (r < a ? 7 : 0) + r - a;
|
|
158
|
+
return t.setUTCDate(t.getUTCDate() - e), t.setUTCHours(0, 0, 0, 0), t;
|
|
159
|
+
}
|
|
160
|
+
function qe(i) {
|
|
161
|
+
M(1, arguments);
|
|
162
|
+
var a = W(i), t = a.getUTCFullYear(), r = /* @__PURE__ */ new Date(0);
|
|
163
|
+
r.setUTCFullYear(t + 1, 0, 4), r.setUTCHours(0, 0, 0, 0);
|
|
164
|
+
var e = ee(r), o = /* @__PURE__ */ new Date(0);
|
|
165
|
+
o.setUTCFullYear(t, 0, 4), o.setUTCHours(0, 0, 0, 0);
|
|
166
|
+
var n = ee(o);
|
|
167
|
+
return a.getTime() >= e.getTime() ? t + 1 : a.getTime() >= n.getTime() ? t : t - 1;
|
|
168
|
+
}
|
|
169
|
+
function pt(i) {
|
|
170
|
+
M(1, arguments);
|
|
171
|
+
var a = qe(i), t = /* @__PURE__ */ new Date(0);
|
|
172
|
+
t.setUTCFullYear(a, 0, 4), t.setUTCHours(0, 0, 0, 0);
|
|
173
|
+
var r = ee(t);
|
|
174
|
+
return r;
|
|
175
|
+
}
|
|
176
|
+
var gt = 6048e5;
|
|
177
|
+
function Be(i) {
|
|
178
|
+
M(1, arguments);
|
|
179
|
+
var a = W(i), t = ee(a).getTime() - pt(a).getTime();
|
|
180
|
+
return Math.round(t / gt) + 1;
|
|
181
|
+
}
|
|
182
|
+
var wt = {};
|
|
183
|
+
function te() {
|
|
184
|
+
return wt;
|
|
185
|
+
}
|
|
186
|
+
function Z(i, a) {
|
|
187
|
+
var t, r, e, o, n, s, u, f;
|
|
188
|
+
M(1, arguments);
|
|
189
|
+
var w = te(), y = S((t = (r = (e = (o = a == null ? void 0 : a.weekStartsOn) !== null && o !== void 0 ? o : a == null || (n = a.locale) === null || n === void 0 || (s = n.options) === null || s === void 0 ? void 0 : s.weekStartsOn) !== null && e !== void 0 ? e : w.weekStartsOn) !== null && r !== void 0 ? r : (u = w.locale) === null || u === void 0 || (f = u.options) === null || f === void 0 ? void 0 : f.weekStartsOn) !== null && t !== void 0 ? t : 0);
|
|
190
|
+
if (!(y >= 0 && y <= 6))
|
|
191
|
+
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
192
|
+
var k = W(i), C = k.getUTCDay(), E = (C < y ? 7 : 0) + C - y;
|
|
193
|
+
return k.setUTCDate(k.getUTCDate() - E), k.setUTCHours(0, 0, 0, 0), k;
|
|
194
|
+
}
|
|
195
|
+
function Te(i, a) {
|
|
196
|
+
var t, r, e, o, n, s, u, f;
|
|
197
|
+
M(1, arguments);
|
|
198
|
+
var w = W(i), y = w.getUTCFullYear(), k = te(), C = S((t = (r = (e = (o = a == null ? void 0 : a.firstWeekContainsDate) !== null && o !== void 0 ? o : a == null || (n = a.locale) === null || n === void 0 || (s = n.options) === null || s === void 0 ? void 0 : s.firstWeekContainsDate) !== null && e !== void 0 ? e : k.firstWeekContainsDate) !== null && r !== void 0 ? r : (u = k.locale) === null || u === void 0 || (f = u.options) === null || f === void 0 ? void 0 : f.firstWeekContainsDate) !== null && t !== void 0 ? t : 1);
|
|
199
|
+
if (!(C >= 1 && C <= 7))
|
|
200
|
+
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
201
|
+
var E = /* @__PURE__ */ new Date(0);
|
|
202
|
+
E.setUTCFullYear(y + 1, 0, C), E.setUTCHours(0, 0, 0, 0);
|
|
203
|
+
var F = Z(E, a), H = /* @__PURE__ */ new Date(0);
|
|
204
|
+
H.setUTCFullYear(y, 0, C), H.setUTCHours(0, 0, 0, 0);
|
|
205
|
+
var $ = Z(H, a);
|
|
206
|
+
return w.getTime() >= F.getTime() ? y + 1 : w.getTime() >= $.getTime() ? y : y - 1;
|
|
207
|
+
}
|
|
208
|
+
function yt(i, a) {
|
|
209
|
+
var t, r, e, o, n, s, u, f;
|
|
210
|
+
M(1, arguments);
|
|
211
|
+
var w = te(), y = S((t = (r = (e = (o = a == null ? void 0 : a.firstWeekContainsDate) !== null && o !== void 0 ? o : a == null || (n = a.locale) === null || n === void 0 || (s = n.options) === null || s === void 0 ? void 0 : s.firstWeekContainsDate) !== null && e !== void 0 ? e : w.firstWeekContainsDate) !== null && r !== void 0 ? r : (u = w.locale) === null || u === void 0 || (f = u.options) === null || f === void 0 ? void 0 : f.firstWeekContainsDate) !== null && t !== void 0 ? t : 1), k = Te(i, a), C = /* @__PURE__ */ new Date(0);
|
|
212
|
+
C.setUTCFullYear(k, 0, y), C.setUTCHours(0, 0, 0, 0);
|
|
213
|
+
var E = Z(C, a);
|
|
214
|
+
return E;
|
|
215
|
+
}
|
|
216
|
+
var bt = 6048e5;
|
|
217
|
+
function $e(i, a) {
|
|
218
|
+
M(1, arguments);
|
|
219
|
+
var t = W(i), r = Z(t, a).getTime() - yt(t, a).getTime();
|
|
220
|
+
return Math.round(r / bt) + 1;
|
|
221
|
+
}
|
|
222
|
+
function T(i, a) {
|
|
223
|
+
for (var t = i < 0 ? "-" : "", r = Math.abs(i).toString(); r.length < a; )
|
|
224
|
+
r = "0" + r;
|
|
225
|
+
return t + r;
|
|
226
|
+
}
|
|
227
|
+
var Tt = {
|
|
228
|
+
// Year
|
|
229
|
+
y: function(a, t) {
|
|
230
|
+
var r = a.getUTCFullYear(), e = r > 0 ? r : 1 - r;
|
|
231
|
+
return T(t === "yy" ? e % 100 : e, t.length);
|
|
232
|
+
},
|
|
233
|
+
// Month
|
|
234
|
+
M: function(a, t) {
|
|
235
|
+
var r = a.getUTCMonth();
|
|
236
|
+
return t === "M" ? String(r + 1) : T(r + 1, 2);
|
|
237
|
+
},
|
|
238
|
+
// Day of the month
|
|
239
|
+
d: function(a, t) {
|
|
240
|
+
return T(a.getUTCDate(), t.length);
|
|
241
|
+
},
|
|
242
|
+
// AM or PM
|
|
243
|
+
a: function(a, t) {
|
|
244
|
+
var r = a.getUTCHours() / 12 >= 1 ? "pm" : "am";
|
|
245
|
+
switch (t) {
|
|
246
|
+
case "a":
|
|
247
|
+
case "aa":
|
|
248
|
+
return r.toUpperCase();
|
|
249
|
+
case "aaa":
|
|
250
|
+
return r;
|
|
251
|
+
case "aaaaa":
|
|
252
|
+
return r[0];
|
|
253
|
+
case "aaaa":
|
|
254
|
+
default:
|
|
255
|
+
return r === "am" ? "a.m." : "p.m.";
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
// Hour [1-12]
|
|
259
|
+
h: function(a, t) {
|
|
260
|
+
return T(a.getUTCHours() % 12 || 12, t.length);
|
|
261
|
+
},
|
|
262
|
+
// Hour [0-23]
|
|
263
|
+
H: function(a, t) {
|
|
264
|
+
return T(a.getUTCHours(), t.length);
|
|
265
|
+
},
|
|
266
|
+
// Minute
|
|
267
|
+
m: function(a, t) {
|
|
268
|
+
return T(a.getUTCMinutes(), t.length);
|
|
269
|
+
},
|
|
270
|
+
// Second
|
|
271
|
+
s: function(a, t) {
|
|
272
|
+
return T(a.getUTCSeconds(), t.length);
|
|
273
|
+
},
|
|
274
|
+
// Fraction of second
|
|
275
|
+
S: function(a, t) {
|
|
276
|
+
var r = t.length, e = a.getUTCMilliseconds(), o = Math.floor(e * Math.pow(10, r - 3));
|
|
277
|
+
return T(o, t.length);
|
|
278
|
+
}
|
|
279
|
+
};
|
|
280
|
+
const G = Tt;
|
|
281
|
+
var J = {
|
|
282
|
+
am: "am",
|
|
283
|
+
pm: "pm",
|
|
284
|
+
midnight: "midnight",
|
|
285
|
+
noon: "noon",
|
|
286
|
+
morning: "morning",
|
|
287
|
+
afternoon: "afternoon",
|
|
288
|
+
evening: "evening",
|
|
289
|
+
night: "night"
|
|
290
|
+
}, xt = {
|
|
291
|
+
// Era
|
|
292
|
+
G: function(a, t, r) {
|
|
293
|
+
var e = a.getUTCFullYear() > 0 ? 1 : 0;
|
|
294
|
+
switch (t) {
|
|
295
|
+
case "G":
|
|
296
|
+
case "GG":
|
|
297
|
+
case "GGG":
|
|
298
|
+
return r.era(e, {
|
|
299
|
+
width: "abbreviated"
|
|
300
|
+
});
|
|
301
|
+
case "GGGGG":
|
|
302
|
+
return r.era(e, {
|
|
303
|
+
width: "narrow"
|
|
304
|
+
});
|
|
305
|
+
case "GGGG":
|
|
306
|
+
default:
|
|
307
|
+
return r.era(e, {
|
|
308
|
+
width: "wide"
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
// Year
|
|
313
|
+
y: function(a, t, r) {
|
|
314
|
+
if (t === "yo") {
|
|
315
|
+
var e = a.getUTCFullYear(), o = e > 0 ? e : 1 - e;
|
|
316
|
+
return r.ordinalNumber(o, {
|
|
317
|
+
unit: "year"
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
return G.y(a, t);
|
|
321
|
+
},
|
|
322
|
+
// Local week-numbering year
|
|
323
|
+
Y: function(a, t, r, e) {
|
|
324
|
+
var o = Te(a, e), n = o > 0 ? o : 1 - o;
|
|
325
|
+
if (t === "YY") {
|
|
326
|
+
var s = n % 100;
|
|
327
|
+
return T(s, 2);
|
|
328
|
+
}
|
|
329
|
+
return t === "Yo" ? r.ordinalNumber(n, {
|
|
330
|
+
unit: "year"
|
|
331
|
+
}) : T(n, t.length);
|
|
332
|
+
},
|
|
333
|
+
// ISO week-numbering year
|
|
334
|
+
R: function(a, t) {
|
|
335
|
+
var r = qe(a);
|
|
336
|
+
return T(r, t.length);
|
|
337
|
+
},
|
|
338
|
+
// Extended year. This is a single number designating the year of this calendar system.
|
|
339
|
+
// The main difference between `y` and `u` localizers are B.C. years:
|
|
340
|
+
// | Year | `y` | `u` |
|
|
341
|
+
// |------|-----|-----|
|
|
342
|
+
// | AC 1 | 1 | 1 |
|
|
343
|
+
// | BC 1 | 1 | 0 |
|
|
344
|
+
// | BC 2 | 2 | -1 |
|
|
345
|
+
// Also `yy` always returns the last two digits of a year,
|
|
346
|
+
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
|
347
|
+
u: function(a, t) {
|
|
348
|
+
var r = a.getUTCFullYear();
|
|
349
|
+
return T(r, t.length);
|
|
350
|
+
},
|
|
351
|
+
// Quarter
|
|
352
|
+
Q: function(a, t, r) {
|
|
353
|
+
var e = Math.ceil((a.getUTCMonth() + 1) / 3);
|
|
354
|
+
switch (t) {
|
|
355
|
+
case "Q":
|
|
356
|
+
return String(e);
|
|
357
|
+
case "QQ":
|
|
358
|
+
return T(e, 2);
|
|
359
|
+
case "Qo":
|
|
360
|
+
return r.ordinalNumber(e, {
|
|
361
|
+
unit: "quarter"
|
|
362
|
+
});
|
|
363
|
+
case "QQQ":
|
|
364
|
+
return r.quarter(e, {
|
|
365
|
+
width: "abbreviated",
|
|
366
|
+
context: "formatting"
|
|
367
|
+
});
|
|
368
|
+
case "QQQQQ":
|
|
369
|
+
return r.quarter(e, {
|
|
370
|
+
width: "narrow",
|
|
371
|
+
context: "formatting"
|
|
372
|
+
});
|
|
373
|
+
case "QQQQ":
|
|
374
|
+
default:
|
|
375
|
+
return r.quarter(e, {
|
|
376
|
+
width: "wide",
|
|
377
|
+
context: "formatting"
|
|
378
|
+
});
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
// Stand-alone quarter
|
|
382
|
+
q: function(a, t, r) {
|
|
383
|
+
var e = Math.ceil((a.getUTCMonth() + 1) / 3);
|
|
384
|
+
switch (t) {
|
|
385
|
+
case "q":
|
|
386
|
+
return String(e);
|
|
387
|
+
case "qq":
|
|
388
|
+
return T(e, 2);
|
|
389
|
+
case "qo":
|
|
390
|
+
return r.ordinalNumber(e, {
|
|
391
|
+
unit: "quarter"
|
|
392
|
+
});
|
|
393
|
+
case "qqq":
|
|
394
|
+
return r.quarter(e, {
|
|
395
|
+
width: "abbreviated",
|
|
396
|
+
context: "standalone"
|
|
397
|
+
});
|
|
398
|
+
case "qqqqq":
|
|
399
|
+
return r.quarter(e, {
|
|
400
|
+
width: "narrow",
|
|
401
|
+
context: "standalone"
|
|
402
|
+
});
|
|
403
|
+
case "qqqq":
|
|
404
|
+
default:
|
|
405
|
+
return r.quarter(e, {
|
|
406
|
+
width: "wide",
|
|
407
|
+
context: "standalone"
|
|
408
|
+
});
|
|
409
|
+
}
|
|
410
|
+
},
|
|
411
|
+
// Month
|
|
412
|
+
M: function(a, t, r) {
|
|
413
|
+
var e = a.getUTCMonth();
|
|
414
|
+
switch (t) {
|
|
415
|
+
case "M":
|
|
416
|
+
case "MM":
|
|
417
|
+
return G.M(a, t);
|
|
418
|
+
case "Mo":
|
|
419
|
+
return r.ordinalNumber(e + 1, {
|
|
420
|
+
unit: "month"
|
|
421
|
+
});
|
|
422
|
+
case "MMM":
|
|
423
|
+
return r.month(e, {
|
|
424
|
+
width: "abbreviated",
|
|
425
|
+
context: "formatting"
|
|
426
|
+
});
|
|
427
|
+
case "MMMMM":
|
|
428
|
+
return r.month(e, {
|
|
429
|
+
width: "narrow",
|
|
430
|
+
context: "formatting"
|
|
431
|
+
});
|
|
432
|
+
case "MMMM":
|
|
433
|
+
default:
|
|
434
|
+
return r.month(e, {
|
|
435
|
+
width: "wide",
|
|
436
|
+
context: "formatting"
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
},
|
|
440
|
+
// Stand-alone month
|
|
441
|
+
L: function(a, t, r) {
|
|
442
|
+
var e = a.getUTCMonth();
|
|
443
|
+
switch (t) {
|
|
444
|
+
case "L":
|
|
445
|
+
return String(e + 1);
|
|
446
|
+
case "LL":
|
|
447
|
+
return T(e + 1, 2);
|
|
448
|
+
case "Lo":
|
|
449
|
+
return r.ordinalNumber(e + 1, {
|
|
450
|
+
unit: "month"
|
|
451
|
+
});
|
|
452
|
+
case "LLL":
|
|
453
|
+
return r.month(e, {
|
|
454
|
+
width: "abbreviated",
|
|
455
|
+
context: "standalone"
|
|
456
|
+
});
|
|
457
|
+
case "LLLLL":
|
|
458
|
+
return r.month(e, {
|
|
459
|
+
width: "narrow",
|
|
460
|
+
context: "standalone"
|
|
461
|
+
});
|
|
462
|
+
case "LLLL":
|
|
463
|
+
default:
|
|
464
|
+
return r.month(e, {
|
|
465
|
+
width: "wide",
|
|
466
|
+
context: "standalone"
|
|
467
|
+
});
|
|
468
|
+
}
|
|
469
|
+
},
|
|
470
|
+
// Local week of year
|
|
471
|
+
w: function(a, t, r, e) {
|
|
472
|
+
var o = $e(a, e);
|
|
473
|
+
return t === "wo" ? r.ordinalNumber(o, {
|
|
474
|
+
unit: "week"
|
|
475
|
+
}) : T(o, t.length);
|
|
476
|
+
},
|
|
477
|
+
// ISO week of year
|
|
478
|
+
I: function(a, t, r) {
|
|
479
|
+
var e = Be(a);
|
|
480
|
+
return t === "Io" ? r.ordinalNumber(e, {
|
|
481
|
+
unit: "week"
|
|
482
|
+
}) : T(e, t.length);
|
|
483
|
+
},
|
|
484
|
+
// Day of the month
|
|
485
|
+
d: function(a, t, r) {
|
|
486
|
+
return t === "do" ? r.ordinalNumber(a.getUTCDate(), {
|
|
487
|
+
unit: "date"
|
|
488
|
+
}) : G.d(a, t);
|
|
489
|
+
},
|
|
490
|
+
// Day of year
|
|
491
|
+
D: function(a, t, r) {
|
|
492
|
+
var e = mt(a);
|
|
493
|
+
return t === "Do" ? r.ordinalNumber(e, {
|
|
494
|
+
unit: "dayOfYear"
|
|
495
|
+
}) : T(e, t.length);
|
|
496
|
+
},
|
|
497
|
+
// Day of week
|
|
498
|
+
E: function(a, t, r) {
|
|
499
|
+
var e = a.getUTCDay();
|
|
500
|
+
switch (t) {
|
|
501
|
+
case "E":
|
|
502
|
+
case "EE":
|
|
503
|
+
case "EEE":
|
|
504
|
+
return r.day(e, {
|
|
505
|
+
width: "abbreviated",
|
|
506
|
+
context: "formatting"
|
|
507
|
+
});
|
|
508
|
+
case "EEEEE":
|
|
509
|
+
return r.day(e, {
|
|
510
|
+
width: "narrow",
|
|
511
|
+
context: "formatting"
|
|
512
|
+
});
|
|
513
|
+
case "EEEEEE":
|
|
514
|
+
return r.day(e, {
|
|
515
|
+
width: "short",
|
|
516
|
+
context: "formatting"
|
|
517
|
+
});
|
|
518
|
+
case "EEEE":
|
|
519
|
+
default:
|
|
520
|
+
return r.day(e, {
|
|
521
|
+
width: "wide",
|
|
522
|
+
context: "formatting"
|
|
523
|
+
});
|
|
524
|
+
}
|
|
525
|
+
},
|
|
526
|
+
// Local day of week
|
|
527
|
+
e: function(a, t, r, e) {
|
|
528
|
+
var o = a.getUTCDay(), n = (o - e.weekStartsOn + 8) % 7 || 7;
|
|
529
|
+
switch (t) {
|
|
530
|
+
case "e":
|
|
531
|
+
return String(n);
|
|
532
|
+
case "ee":
|
|
533
|
+
return T(n, 2);
|
|
534
|
+
case "eo":
|
|
535
|
+
return r.ordinalNumber(n, {
|
|
536
|
+
unit: "day"
|
|
537
|
+
});
|
|
538
|
+
case "eee":
|
|
539
|
+
return r.day(o, {
|
|
540
|
+
width: "abbreviated",
|
|
541
|
+
context: "formatting"
|
|
542
|
+
});
|
|
543
|
+
case "eeeee":
|
|
544
|
+
return r.day(o, {
|
|
545
|
+
width: "narrow",
|
|
546
|
+
context: "formatting"
|
|
547
|
+
});
|
|
548
|
+
case "eeeeee":
|
|
549
|
+
return r.day(o, {
|
|
550
|
+
width: "short",
|
|
551
|
+
context: "formatting"
|
|
552
|
+
});
|
|
553
|
+
case "eeee":
|
|
554
|
+
default:
|
|
555
|
+
return r.day(o, {
|
|
556
|
+
width: "wide",
|
|
557
|
+
context: "formatting"
|
|
558
|
+
});
|
|
559
|
+
}
|
|
560
|
+
},
|
|
561
|
+
// Stand-alone local day of week
|
|
562
|
+
c: function(a, t, r, e) {
|
|
563
|
+
var o = a.getUTCDay(), n = (o - e.weekStartsOn + 8) % 7 || 7;
|
|
564
|
+
switch (t) {
|
|
565
|
+
case "c":
|
|
566
|
+
return String(n);
|
|
567
|
+
case "cc":
|
|
568
|
+
return T(n, t.length);
|
|
569
|
+
case "co":
|
|
570
|
+
return r.ordinalNumber(n, {
|
|
571
|
+
unit: "day"
|
|
572
|
+
});
|
|
573
|
+
case "ccc":
|
|
574
|
+
return r.day(o, {
|
|
575
|
+
width: "abbreviated",
|
|
576
|
+
context: "standalone"
|
|
577
|
+
});
|
|
578
|
+
case "ccccc":
|
|
579
|
+
return r.day(o, {
|
|
580
|
+
width: "narrow",
|
|
581
|
+
context: "standalone"
|
|
582
|
+
});
|
|
583
|
+
case "cccccc":
|
|
584
|
+
return r.day(o, {
|
|
585
|
+
width: "short",
|
|
586
|
+
context: "standalone"
|
|
587
|
+
});
|
|
588
|
+
case "cccc":
|
|
589
|
+
default:
|
|
590
|
+
return r.day(o, {
|
|
591
|
+
width: "wide",
|
|
592
|
+
context: "standalone"
|
|
593
|
+
});
|
|
594
|
+
}
|
|
595
|
+
},
|
|
596
|
+
// ISO day of week
|
|
597
|
+
i: function(a, t, r) {
|
|
598
|
+
var e = a.getUTCDay(), o = e === 0 ? 7 : e;
|
|
599
|
+
switch (t) {
|
|
600
|
+
case "i":
|
|
601
|
+
return String(o);
|
|
602
|
+
case "ii":
|
|
603
|
+
return T(o, t.length);
|
|
604
|
+
case "io":
|
|
605
|
+
return r.ordinalNumber(o, {
|
|
606
|
+
unit: "day"
|
|
607
|
+
});
|
|
608
|
+
case "iii":
|
|
609
|
+
return r.day(e, {
|
|
610
|
+
width: "abbreviated",
|
|
611
|
+
context: "formatting"
|
|
612
|
+
});
|
|
613
|
+
case "iiiii":
|
|
614
|
+
return r.day(e, {
|
|
615
|
+
width: "narrow",
|
|
616
|
+
context: "formatting"
|
|
617
|
+
});
|
|
618
|
+
case "iiiiii":
|
|
619
|
+
return r.day(e, {
|
|
620
|
+
width: "short",
|
|
621
|
+
context: "formatting"
|
|
622
|
+
});
|
|
623
|
+
case "iiii":
|
|
624
|
+
default:
|
|
625
|
+
return r.day(e, {
|
|
626
|
+
width: "wide",
|
|
627
|
+
context: "formatting"
|
|
628
|
+
});
|
|
629
|
+
}
|
|
630
|
+
},
|
|
631
|
+
// AM or PM
|
|
632
|
+
a: function(a, t, r) {
|
|
633
|
+
var e = a.getUTCHours(), o = e / 12 >= 1 ? "pm" : "am";
|
|
634
|
+
switch (t) {
|
|
635
|
+
case "a":
|
|
636
|
+
case "aa":
|
|
637
|
+
return r.dayPeriod(o, {
|
|
638
|
+
width: "abbreviated",
|
|
639
|
+
context: "formatting"
|
|
640
|
+
});
|
|
641
|
+
case "aaa":
|
|
642
|
+
return r.dayPeriod(o, {
|
|
643
|
+
width: "abbreviated",
|
|
644
|
+
context: "formatting"
|
|
645
|
+
}).toLowerCase();
|
|
646
|
+
case "aaaaa":
|
|
647
|
+
return r.dayPeriod(o, {
|
|
648
|
+
width: "narrow",
|
|
649
|
+
context: "formatting"
|
|
650
|
+
});
|
|
651
|
+
case "aaaa":
|
|
652
|
+
default:
|
|
653
|
+
return r.dayPeriod(o, {
|
|
654
|
+
width: "wide",
|
|
655
|
+
context: "formatting"
|
|
656
|
+
});
|
|
657
|
+
}
|
|
658
|
+
},
|
|
659
|
+
// AM, PM, midnight, noon
|
|
660
|
+
b: function(a, t, r) {
|
|
661
|
+
var e = a.getUTCHours(), o;
|
|
662
|
+
switch (e === 12 ? o = J.noon : e === 0 ? o = J.midnight : o = e / 12 >= 1 ? "pm" : "am", t) {
|
|
663
|
+
case "b":
|
|
664
|
+
case "bb":
|
|
665
|
+
return r.dayPeriod(o, {
|
|
666
|
+
width: "abbreviated",
|
|
667
|
+
context: "formatting"
|
|
668
|
+
});
|
|
669
|
+
case "bbb":
|
|
670
|
+
return r.dayPeriod(o, {
|
|
671
|
+
width: "abbreviated",
|
|
672
|
+
context: "formatting"
|
|
673
|
+
}).toLowerCase();
|
|
674
|
+
case "bbbbb":
|
|
675
|
+
return r.dayPeriod(o, {
|
|
676
|
+
width: "narrow",
|
|
677
|
+
context: "formatting"
|
|
678
|
+
});
|
|
679
|
+
case "bbbb":
|
|
680
|
+
default:
|
|
681
|
+
return r.dayPeriod(o, {
|
|
682
|
+
width: "wide",
|
|
683
|
+
context: "formatting"
|
|
684
|
+
});
|
|
685
|
+
}
|
|
686
|
+
},
|
|
687
|
+
// in the morning, in the afternoon, in the evening, at night
|
|
688
|
+
B: function(a, t, r) {
|
|
689
|
+
var e = a.getUTCHours(), o;
|
|
690
|
+
switch (e >= 17 ? o = J.evening : e >= 12 ? o = J.afternoon : e >= 4 ? o = J.morning : o = J.night, t) {
|
|
691
|
+
case "B":
|
|
692
|
+
case "BB":
|
|
693
|
+
case "BBB":
|
|
694
|
+
return r.dayPeriod(o, {
|
|
695
|
+
width: "abbreviated",
|
|
696
|
+
context: "formatting"
|
|
697
|
+
});
|
|
698
|
+
case "BBBBB":
|
|
699
|
+
return r.dayPeriod(o, {
|
|
700
|
+
width: "narrow",
|
|
701
|
+
context: "formatting"
|
|
702
|
+
});
|
|
703
|
+
case "BBBB":
|
|
704
|
+
default:
|
|
705
|
+
return r.dayPeriod(o, {
|
|
706
|
+
width: "wide",
|
|
707
|
+
context: "formatting"
|
|
708
|
+
});
|
|
709
|
+
}
|
|
710
|
+
},
|
|
711
|
+
// Hour [1-12]
|
|
712
|
+
h: function(a, t, r) {
|
|
713
|
+
if (t === "ho") {
|
|
714
|
+
var e = a.getUTCHours() % 12;
|
|
715
|
+
return e === 0 && (e = 12), r.ordinalNumber(e, {
|
|
716
|
+
unit: "hour"
|
|
717
|
+
});
|
|
718
|
+
}
|
|
719
|
+
return G.h(a, t);
|
|
720
|
+
},
|
|
721
|
+
// Hour [0-23]
|
|
722
|
+
H: function(a, t, r) {
|
|
723
|
+
return t === "Ho" ? r.ordinalNumber(a.getUTCHours(), {
|
|
724
|
+
unit: "hour"
|
|
725
|
+
}) : G.H(a, t);
|
|
726
|
+
},
|
|
727
|
+
// Hour [0-11]
|
|
728
|
+
K: function(a, t, r) {
|
|
729
|
+
var e = a.getUTCHours() % 12;
|
|
730
|
+
return t === "Ko" ? r.ordinalNumber(e, {
|
|
731
|
+
unit: "hour"
|
|
732
|
+
}) : T(e, t.length);
|
|
733
|
+
},
|
|
734
|
+
// Hour [1-24]
|
|
735
|
+
k: function(a, t, r) {
|
|
736
|
+
var e = a.getUTCHours();
|
|
737
|
+
return e === 0 && (e = 24), t === "ko" ? r.ordinalNumber(e, {
|
|
738
|
+
unit: "hour"
|
|
739
|
+
}) : T(e, t.length);
|
|
740
|
+
},
|
|
741
|
+
// Minute
|
|
742
|
+
m: function(a, t, r) {
|
|
743
|
+
return t === "mo" ? r.ordinalNumber(a.getUTCMinutes(), {
|
|
744
|
+
unit: "minute"
|
|
745
|
+
}) : G.m(a, t);
|
|
746
|
+
},
|
|
747
|
+
// Second
|
|
748
|
+
s: function(a, t, r) {
|
|
749
|
+
return t === "so" ? r.ordinalNumber(a.getUTCSeconds(), {
|
|
750
|
+
unit: "second"
|
|
751
|
+
}) : G.s(a, t);
|
|
752
|
+
},
|
|
753
|
+
// Fraction of second
|
|
754
|
+
S: function(a, t) {
|
|
755
|
+
return G.S(a, t);
|
|
756
|
+
},
|
|
757
|
+
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
758
|
+
X: function(a, t, r, e) {
|
|
759
|
+
var o = e._originalDate || a, n = o.getTimezoneOffset();
|
|
760
|
+
if (n === 0)
|
|
761
|
+
return "Z";
|
|
762
|
+
switch (t) {
|
|
763
|
+
case "X":
|
|
764
|
+
return We(n);
|
|
765
|
+
case "XXXX":
|
|
766
|
+
case "XX":
|
|
767
|
+
return V(n);
|
|
768
|
+
case "XXXXX":
|
|
769
|
+
case "XXX":
|
|
770
|
+
default:
|
|
771
|
+
return V(n, ":");
|
|
772
|
+
}
|
|
773
|
+
},
|
|
774
|
+
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
775
|
+
x: function(a, t, r, e) {
|
|
776
|
+
var o = e._originalDate || a, n = o.getTimezoneOffset();
|
|
777
|
+
switch (t) {
|
|
778
|
+
case "x":
|
|
779
|
+
return We(n);
|
|
780
|
+
case "xxxx":
|
|
781
|
+
case "xx":
|
|
782
|
+
return V(n);
|
|
783
|
+
case "xxxxx":
|
|
784
|
+
case "xxx":
|
|
785
|
+
default:
|
|
786
|
+
return V(n, ":");
|
|
787
|
+
}
|
|
788
|
+
},
|
|
789
|
+
// Timezone (GMT)
|
|
790
|
+
O: function(a, t, r, e) {
|
|
791
|
+
var o = e._originalDate || a, n = o.getTimezoneOffset();
|
|
792
|
+
switch (t) {
|
|
793
|
+
case "O":
|
|
794
|
+
case "OO":
|
|
795
|
+
case "OOO":
|
|
796
|
+
return "GMT" + _e(n, ":");
|
|
797
|
+
case "OOOO":
|
|
798
|
+
default:
|
|
799
|
+
return "GMT" + V(n, ":");
|
|
800
|
+
}
|
|
801
|
+
},
|
|
802
|
+
// Timezone (specific non-location)
|
|
803
|
+
z: function(a, t, r, e) {
|
|
804
|
+
var o = e._originalDate || a, n = o.getTimezoneOffset();
|
|
805
|
+
switch (t) {
|
|
806
|
+
case "z":
|
|
807
|
+
case "zz":
|
|
808
|
+
case "zzz":
|
|
809
|
+
return "GMT" + _e(n, ":");
|
|
810
|
+
case "zzzz":
|
|
811
|
+
default:
|
|
812
|
+
return "GMT" + V(n, ":");
|
|
813
|
+
}
|
|
814
|
+
},
|
|
815
|
+
// Seconds timestamp
|
|
816
|
+
t: function(a, t, r, e) {
|
|
817
|
+
var o = e._originalDate || a, n = Math.floor(o.getTime() / 1e3);
|
|
818
|
+
return T(n, t.length);
|
|
819
|
+
},
|
|
820
|
+
// Milliseconds timestamp
|
|
821
|
+
T: function(a, t, r, e) {
|
|
822
|
+
var o = e._originalDate || a, n = o.getTime();
|
|
823
|
+
return T(n, t.length);
|
|
824
|
+
}
|
|
825
|
+
};
|
|
826
|
+
function _e(i, a) {
|
|
827
|
+
var t = i > 0 ? "-" : "+", r = Math.abs(i), e = Math.floor(r / 60), o = r % 60;
|
|
828
|
+
if (o === 0)
|
|
829
|
+
return t + String(e);
|
|
830
|
+
var n = a;
|
|
831
|
+
return t + String(e) + n + T(o, 2);
|
|
832
|
+
}
|
|
833
|
+
function We(i, a) {
|
|
834
|
+
if (i % 60 === 0) {
|
|
835
|
+
var t = i > 0 ? "-" : "+";
|
|
836
|
+
return t + T(Math.abs(i) / 60, 2);
|
|
837
|
+
}
|
|
838
|
+
return V(i, a);
|
|
839
|
+
}
|
|
840
|
+
function V(i, a) {
|
|
841
|
+
var t = a || "", r = i > 0 ? "-" : "+", e = Math.abs(i), o = T(Math.floor(e / 60), 2), n = T(e % 60, 2);
|
|
842
|
+
return r + o + t + n;
|
|
843
|
+
}
|
|
844
|
+
const Ct = xt;
|
|
845
|
+
var Le = function(a, t) {
|
|
846
|
+
switch (a) {
|
|
847
|
+
case "P":
|
|
848
|
+
return t.date({
|
|
849
|
+
width: "short"
|
|
850
|
+
});
|
|
851
|
+
case "PP":
|
|
852
|
+
return t.date({
|
|
853
|
+
width: "medium"
|
|
854
|
+
});
|
|
855
|
+
case "PPP":
|
|
856
|
+
return t.date({
|
|
857
|
+
width: "long"
|
|
858
|
+
});
|
|
859
|
+
case "PPPP":
|
|
860
|
+
default:
|
|
861
|
+
return t.date({
|
|
862
|
+
width: "full"
|
|
863
|
+
});
|
|
864
|
+
}
|
|
865
|
+
}, Re = function(a, t) {
|
|
866
|
+
switch (a) {
|
|
867
|
+
case "p":
|
|
868
|
+
return t.time({
|
|
869
|
+
width: "short"
|
|
870
|
+
});
|
|
871
|
+
case "pp":
|
|
872
|
+
return t.time({
|
|
873
|
+
width: "medium"
|
|
874
|
+
});
|
|
875
|
+
case "ppp":
|
|
876
|
+
return t.time({
|
|
877
|
+
width: "long"
|
|
878
|
+
});
|
|
879
|
+
case "pppp":
|
|
880
|
+
default:
|
|
881
|
+
return t.time({
|
|
882
|
+
width: "full"
|
|
883
|
+
});
|
|
884
|
+
}
|
|
885
|
+
}, Dt = function(a, t) {
|
|
886
|
+
var r = a.match(/(P+)(p+)?/) || [], e = r[1], o = r[2];
|
|
887
|
+
if (!o)
|
|
888
|
+
return Le(a, t);
|
|
889
|
+
var n;
|
|
890
|
+
switch (e) {
|
|
891
|
+
case "P":
|
|
892
|
+
n = t.dateTime({
|
|
893
|
+
width: "short"
|
|
894
|
+
});
|
|
895
|
+
break;
|
|
896
|
+
case "PP":
|
|
897
|
+
n = t.dateTime({
|
|
898
|
+
width: "medium"
|
|
899
|
+
});
|
|
900
|
+
break;
|
|
901
|
+
case "PPP":
|
|
902
|
+
n = t.dateTime({
|
|
903
|
+
width: "long"
|
|
904
|
+
});
|
|
905
|
+
break;
|
|
906
|
+
case "PPPP":
|
|
907
|
+
default:
|
|
908
|
+
n = t.dateTime({
|
|
909
|
+
width: "full"
|
|
910
|
+
});
|
|
911
|
+
break;
|
|
912
|
+
}
|
|
913
|
+
return n.replace("{{date}}", Le(e, t)).replace("{{time}}", Re(o, t));
|
|
914
|
+
}, kt = {
|
|
915
|
+
p: Re,
|
|
916
|
+
P: Dt
|
|
917
|
+
};
|
|
918
|
+
const ye = kt;
|
|
919
|
+
function Qe(i) {
|
|
920
|
+
var a = new Date(Date.UTC(i.getFullYear(), i.getMonth(), i.getDate(), i.getHours(), i.getMinutes(), i.getSeconds(), i.getMilliseconds()));
|
|
921
|
+
return a.setUTCFullYear(i.getFullYear()), i.getTime() - a.getTime();
|
|
922
|
+
}
|
|
923
|
+
var Pt = ["D", "DD"], Mt = ["YY", "YYYY"];
|
|
924
|
+
function je(i) {
|
|
925
|
+
return Pt.indexOf(i) !== -1;
|
|
926
|
+
}
|
|
927
|
+
function Xe(i) {
|
|
928
|
+
return Mt.indexOf(i) !== -1;
|
|
929
|
+
}
|
|
930
|
+
function fe(i, a, t) {
|
|
931
|
+
if (i === "YYYY")
|
|
932
|
+
throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(a, "`) for formatting years to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
|
|
933
|
+
if (i === "YY")
|
|
934
|
+
throw new RangeError("Use `yy` instead of `YY` (in `".concat(a, "`) for formatting years to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
|
|
935
|
+
if (i === "D")
|
|
936
|
+
throw new RangeError("Use `d` instead of `D` (in `".concat(a, "`) for formatting days of the month to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
|
|
937
|
+
if (i === "DD")
|
|
938
|
+
throw new RangeError("Use `dd` instead of `DD` (in `".concat(a, "`) for formatting days of the month to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
|
|
939
|
+
}
|
|
940
|
+
var Ot = {
|
|
941
|
+
lessThanXSeconds: {
|
|
942
|
+
one: "less than a second",
|
|
943
|
+
other: "less than {{count}} seconds"
|
|
944
|
+
},
|
|
945
|
+
xSeconds: {
|
|
946
|
+
one: "1 second",
|
|
947
|
+
other: "{{count}} seconds"
|
|
948
|
+
},
|
|
949
|
+
halfAMinute: "half a minute",
|
|
950
|
+
lessThanXMinutes: {
|
|
951
|
+
one: "less than a minute",
|
|
952
|
+
other: "less than {{count}} minutes"
|
|
953
|
+
},
|
|
954
|
+
xMinutes: {
|
|
955
|
+
one: "1 minute",
|
|
956
|
+
other: "{{count}} minutes"
|
|
957
|
+
},
|
|
958
|
+
aboutXHours: {
|
|
959
|
+
one: "about 1 hour",
|
|
960
|
+
other: "about {{count}} hours"
|
|
961
|
+
},
|
|
962
|
+
xHours: {
|
|
963
|
+
one: "1 hour",
|
|
964
|
+
other: "{{count}} hours"
|
|
965
|
+
},
|
|
966
|
+
xDays: {
|
|
967
|
+
one: "1 day",
|
|
968
|
+
other: "{{count}} days"
|
|
969
|
+
},
|
|
970
|
+
aboutXWeeks: {
|
|
971
|
+
one: "about 1 week",
|
|
972
|
+
other: "about {{count}} weeks"
|
|
973
|
+
},
|
|
974
|
+
xWeeks: {
|
|
975
|
+
one: "1 week",
|
|
976
|
+
other: "{{count}} weeks"
|
|
977
|
+
},
|
|
978
|
+
aboutXMonths: {
|
|
979
|
+
one: "about 1 month",
|
|
980
|
+
other: "about {{count}} months"
|
|
981
|
+
},
|
|
982
|
+
xMonths: {
|
|
983
|
+
one: "1 month",
|
|
984
|
+
other: "{{count}} months"
|
|
985
|
+
},
|
|
986
|
+
aboutXYears: {
|
|
987
|
+
one: "about 1 year",
|
|
988
|
+
other: "about {{count}} years"
|
|
989
|
+
},
|
|
990
|
+
xYears: {
|
|
991
|
+
one: "1 year",
|
|
992
|
+
other: "{{count}} years"
|
|
993
|
+
},
|
|
994
|
+
overXYears: {
|
|
995
|
+
one: "over 1 year",
|
|
996
|
+
other: "over {{count}} years"
|
|
997
|
+
},
|
|
998
|
+
almostXYears: {
|
|
999
|
+
one: "almost 1 year",
|
|
1000
|
+
other: "almost {{count}} years"
|
|
1001
|
+
}
|
|
1002
|
+
}, Ut = function(a, t, r) {
|
|
1003
|
+
var e, o = Ot[a];
|
|
1004
|
+
return typeof o == "string" ? e = o : t === 1 ? e = o.one : e = o.other.replace("{{count}}", t.toString()), r != null && r.addSuffix ? r.comparison && r.comparison > 0 ? "in " + e : e + " ago" : e;
|
|
1005
|
+
};
|
|
1006
|
+
const Et = Ut;
|
|
1007
|
+
function we(i) {
|
|
1008
|
+
return function() {
|
|
1009
|
+
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = a.width ? String(a.width) : i.defaultWidth, r = i.formats[t] || i.formats[i.defaultWidth];
|
|
1010
|
+
return r;
|
|
1011
|
+
};
|
|
1012
|
+
}
|
|
1013
|
+
var Yt = {
|
|
1014
|
+
full: "EEEE, MMMM do, y",
|
|
1015
|
+
long: "MMMM do, y",
|
|
1016
|
+
medium: "MMM d, y",
|
|
1017
|
+
short: "MM/dd/yyyy"
|
|
1018
|
+
}, _t = {
|
|
1019
|
+
full: "h:mm:ss a zzzz",
|
|
1020
|
+
long: "h:mm:ss a z",
|
|
1021
|
+
medium: "h:mm:ss a",
|
|
1022
|
+
short: "h:mm a"
|
|
1023
|
+
}, Wt = {
|
|
1024
|
+
full: "{{date}} 'at' {{time}}",
|
|
1025
|
+
long: "{{date}} 'at' {{time}}",
|
|
1026
|
+
medium: "{{date}}, {{time}}",
|
|
1027
|
+
short: "{{date}}, {{time}}"
|
|
1028
|
+
}, Lt = {
|
|
1029
|
+
date: we({
|
|
1030
|
+
formats: Yt,
|
|
1031
|
+
defaultWidth: "full"
|
|
1032
|
+
}),
|
|
1033
|
+
time: we({
|
|
1034
|
+
formats: _t,
|
|
1035
|
+
defaultWidth: "full"
|
|
1036
|
+
}),
|
|
1037
|
+
dateTime: we({
|
|
1038
|
+
formats: Wt,
|
|
1039
|
+
defaultWidth: "full"
|
|
1040
|
+
})
|
|
1041
|
+
};
|
|
1042
|
+
const St = Lt;
|
|
1043
|
+
var Ht = {
|
|
1044
|
+
lastWeek: "'last' eeee 'at' p",
|
|
1045
|
+
yesterday: "'yesterday at' p",
|
|
1046
|
+
today: "'today at' p",
|
|
1047
|
+
tomorrow: "'tomorrow at' p",
|
|
1048
|
+
nextWeek: "eeee 'at' p",
|
|
1049
|
+
other: "P"
|
|
1050
|
+
}, Nt = function(a, t, r, e) {
|
|
1051
|
+
return Ht[a];
|
|
1052
|
+
};
|
|
1053
|
+
const At = Nt;
|
|
1054
|
+
function oe(i) {
|
|
1055
|
+
return function(a, t) {
|
|
1056
|
+
var r = t != null && t.context ? String(t.context) : "standalone", e;
|
|
1057
|
+
if (r === "formatting" && i.formattingValues) {
|
|
1058
|
+
var o = i.defaultFormattingWidth || i.defaultWidth, n = t != null && t.width ? String(t.width) : o;
|
|
1059
|
+
e = i.formattingValues[n] || i.formattingValues[o];
|
|
1060
|
+
} else {
|
|
1061
|
+
var s = i.defaultWidth, u = t != null && t.width ? String(t.width) : i.defaultWidth;
|
|
1062
|
+
e = i.values[u] || i.values[s];
|
|
1063
|
+
}
|
|
1064
|
+
var f = i.argumentCallback ? i.argumentCallback(a) : a;
|
|
1065
|
+
return e[f];
|
|
1066
|
+
};
|
|
1067
|
+
}
|
|
1068
|
+
var Ft = {
|
|
1069
|
+
narrow: ["B", "A"],
|
|
1070
|
+
abbreviated: ["BC", "AD"],
|
|
1071
|
+
wide: ["Before Christ", "Anno Domini"]
|
|
1072
|
+
}, It = {
|
|
1073
|
+
narrow: ["1", "2", "3", "4"],
|
|
1074
|
+
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
1075
|
+
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
1076
|
+
}, qt = {
|
|
1077
|
+
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
1078
|
+
abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
|
|
1079
|
+
wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
|
|
1080
|
+
}, Bt = {
|
|
1081
|
+
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
1082
|
+
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
1083
|
+
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
1084
|
+
wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
|
|
1085
|
+
}, $t = {
|
|
1086
|
+
narrow: {
|
|
1087
|
+
am: "a",
|
|
1088
|
+
pm: "p",
|
|
1089
|
+
midnight: "mi",
|
|
1090
|
+
noon: "n",
|
|
1091
|
+
morning: "morning",
|
|
1092
|
+
afternoon: "afternoon",
|
|
1093
|
+
evening: "evening",
|
|
1094
|
+
night: "night"
|
|
1095
|
+
},
|
|
1096
|
+
abbreviated: {
|
|
1097
|
+
am: "AM",
|
|
1098
|
+
pm: "PM",
|
|
1099
|
+
midnight: "midnight",
|
|
1100
|
+
noon: "noon",
|
|
1101
|
+
morning: "morning",
|
|
1102
|
+
afternoon: "afternoon",
|
|
1103
|
+
evening: "evening",
|
|
1104
|
+
night: "night"
|
|
1105
|
+
},
|
|
1106
|
+
wide: {
|
|
1107
|
+
am: "a.m.",
|
|
1108
|
+
pm: "p.m.",
|
|
1109
|
+
midnight: "midnight",
|
|
1110
|
+
noon: "noon",
|
|
1111
|
+
morning: "morning",
|
|
1112
|
+
afternoon: "afternoon",
|
|
1113
|
+
evening: "evening",
|
|
1114
|
+
night: "night"
|
|
1115
|
+
}
|
|
1116
|
+
}, Rt = {
|
|
1117
|
+
narrow: {
|
|
1118
|
+
am: "a",
|
|
1119
|
+
pm: "p",
|
|
1120
|
+
midnight: "mi",
|
|
1121
|
+
noon: "n",
|
|
1122
|
+
morning: "in the morning",
|
|
1123
|
+
afternoon: "in the afternoon",
|
|
1124
|
+
evening: "in the evening",
|
|
1125
|
+
night: "at night"
|
|
1126
|
+
},
|
|
1127
|
+
abbreviated: {
|
|
1128
|
+
am: "AM",
|
|
1129
|
+
pm: "PM",
|
|
1130
|
+
midnight: "midnight",
|
|
1131
|
+
noon: "noon",
|
|
1132
|
+
morning: "in the morning",
|
|
1133
|
+
afternoon: "in the afternoon",
|
|
1134
|
+
evening: "in the evening",
|
|
1135
|
+
night: "at night"
|
|
1136
|
+
},
|
|
1137
|
+
wide: {
|
|
1138
|
+
am: "a.m.",
|
|
1139
|
+
pm: "p.m.",
|
|
1140
|
+
midnight: "midnight",
|
|
1141
|
+
noon: "noon",
|
|
1142
|
+
morning: "in the morning",
|
|
1143
|
+
afternoon: "in the afternoon",
|
|
1144
|
+
evening: "in the evening",
|
|
1145
|
+
night: "at night"
|
|
1146
|
+
}
|
|
1147
|
+
}, Qt = function(a, t) {
|
|
1148
|
+
var r = Number(a), e = r % 100;
|
|
1149
|
+
if (e > 20 || e < 10)
|
|
1150
|
+
switch (e % 10) {
|
|
1151
|
+
case 1:
|
|
1152
|
+
return r + "st";
|
|
1153
|
+
case 2:
|
|
1154
|
+
return r + "nd";
|
|
1155
|
+
case 3:
|
|
1156
|
+
return r + "rd";
|
|
1157
|
+
}
|
|
1158
|
+
return r + "th";
|
|
1159
|
+
}, jt = {
|
|
1160
|
+
ordinalNumber: Qt,
|
|
1161
|
+
era: oe({
|
|
1162
|
+
values: Ft,
|
|
1163
|
+
defaultWidth: "wide"
|
|
1164
|
+
}),
|
|
1165
|
+
quarter: oe({
|
|
1166
|
+
values: It,
|
|
1167
|
+
defaultWidth: "wide",
|
|
1168
|
+
argumentCallback: function(a) {
|
|
1169
|
+
return a - 1;
|
|
1170
|
+
}
|
|
1171
|
+
}),
|
|
1172
|
+
month: oe({
|
|
1173
|
+
values: qt,
|
|
1174
|
+
defaultWidth: "wide"
|
|
1175
|
+
}),
|
|
1176
|
+
day: oe({
|
|
1177
|
+
values: Bt,
|
|
1178
|
+
defaultWidth: "wide"
|
|
1179
|
+
}),
|
|
1180
|
+
dayPeriod: oe({
|
|
1181
|
+
values: $t,
|
|
1182
|
+
defaultWidth: "wide",
|
|
1183
|
+
formattingValues: Rt,
|
|
1184
|
+
defaultFormattingWidth: "wide"
|
|
1185
|
+
})
|
|
1186
|
+
};
|
|
1187
|
+
const Xt = jt;
|
|
1188
|
+
function se(i) {
|
|
1189
|
+
return function(a) {
|
|
1190
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = t.width, e = r && i.matchPatterns[r] || i.matchPatterns[i.defaultMatchWidth], o = a.match(e);
|
|
1191
|
+
if (!o)
|
|
1192
|
+
return null;
|
|
1193
|
+
var n = o[0], s = r && i.parsePatterns[r] || i.parsePatterns[i.defaultParseWidth], u = Array.isArray(s) ? zt(s, function(y) {
|
|
1194
|
+
return y.test(n);
|
|
1195
|
+
}) : Gt(s, function(y) {
|
|
1196
|
+
return y.test(n);
|
|
1197
|
+
}), f;
|
|
1198
|
+
f = i.valueCallback ? i.valueCallback(u) : u, f = t.valueCallback ? t.valueCallback(f) : f;
|
|
1199
|
+
var w = a.slice(n.length);
|
|
1200
|
+
return {
|
|
1201
|
+
value: f,
|
|
1202
|
+
rest: w
|
|
1203
|
+
};
|
|
1204
|
+
};
|
|
1205
|
+
}
|
|
1206
|
+
function Gt(i, a) {
|
|
1207
|
+
for (var t in i)
|
|
1208
|
+
if (i.hasOwnProperty(t) && a(i[t]))
|
|
1209
|
+
return t;
|
|
1210
|
+
}
|
|
1211
|
+
function zt(i, a) {
|
|
1212
|
+
for (var t = 0; t < i.length; t++)
|
|
1213
|
+
if (a(i[t]))
|
|
1214
|
+
return t;
|
|
1215
|
+
}
|
|
1216
|
+
function Vt(i) {
|
|
1217
|
+
return function(a) {
|
|
1218
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = a.match(i.matchPattern);
|
|
1219
|
+
if (!r)
|
|
1220
|
+
return null;
|
|
1221
|
+
var e = r[0], o = a.match(i.parsePattern);
|
|
1222
|
+
if (!o)
|
|
1223
|
+
return null;
|
|
1224
|
+
var n = i.valueCallback ? i.valueCallback(o[0]) : o[0];
|
|
1225
|
+
n = t.valueCallback ? t.valueCallback(n) : n;
|
|
1226
|
+
var s = a.slice(e.length);
|
|
1227
|
+
return {
|
|
1228
|
+
value: n,
|
|
1229
|
+
rest: s
|
|
1230
|
+
};
|
|
1231
|
+
};
|
|
1232
|
+
}
|
|
1233
|
+
var Kt = /^(\d+)(th|st|nd|rd)?/i, Zt = /\d+/i, Jt = {
|
|
1234
|
+
narrow: /^(b|a)/i,
|
|
1235
|
+
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
1236
|
+
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
1237
|
+
}, er = {
|
|
1238
|
+
any: [/^b/i, /^(a|c)/i]
|
|
1239
|
+
}, tr = {
|
|
1240
|
+
narrow: /^[1234]/i,
|
|
1241
|
+
abbreviated: /^q[1234]/i,
|
|
1242
|
+
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
1243
|
+
}, rr = {
|
|
1244
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
1245
|
+
}, ar = {
|
|
1246
|
+
narrow: /^[jfmasond]/i,
|
|
1247
|
+
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
1248
|
+
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
1249
|
+
}, nr = {
|
|
1250
|
+
narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],
|
|
1251
|
+
any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]
|
|
1252
|
+
}, ir = {
|
|
1253
|
+
narrow: /^[smtwf]/i,
|
|
1254
|
+
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
1255
|
+
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
1256
|
+
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
1257
|
+
}, or = {
|
|
1258
|
+
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
1259
|
+
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
1260
|
+
}, sr = {
|
|
1261
|
+
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
1262
|
+
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
1263
|
+
}, ur = {
|
|
1264
|
+
any: {
|
|
1265
|
+
am: /^a/i,
|
|
1266
|
+
pm: /^p/i,
|
|
1267
|
+
midnight: /^mi/i,
|
|
1268
|
+
noon: /^no/i,
|
|
1269
|
+
morning: /morning/i,
|
|
1270
|
+
afternoon: /afternoon/i,
|
|
1271
|
+
evening: /evening/i,
|
|
1272
|
+
night: /night/i
|
|
1273
|
+
}
|
|
1274
|
+
}, lr = {
|
|
1275
|
+
ordinalNumber: Vt({
|
|
1276
|
+
matchPattern: Kt,
|
|
1277
|
+
parsePattern: Zt,
|
|
1278
|
+
valueCallback: function(a) {
|
|
1279
|
+
return parseInt(a, 10);
|
|
1280
|
+
}
|
|
1281
|
+
}),
|
|
1282
|
+
era: se({
|
|
1283
|
+
matchPatterns: Jt,
|
|
1284
|
+
defaultMatchWidth: "wide",
|
|
1285
|
+
parsePatterns: er,
|
|
1286
|
+
defaultParseWidth: "any"
|
|
1287
|
+
}),
|
|
1288
|
+
quarter: se({
|
|
1289
|
+
matchPatterns: tr,
|
|
1290
|
+
defaultMatchWidth: "wide",
|
|
1291
|
+
parsePatterns: rr,
|
|
1292
|
+
defaultParseWidth: "any",
|
|
1293
|
+
valueCallback: function(a) {
|
|
1294
|
+
return a + 1;
|
|
1295
|
+
}
|
|
1296
|
+
}),
|
|
1297
|
+
month: se({
|
|
1298
|
+
matchPatterns: ar,
|
|
1299
|
+
defaultMatchWidth: "wide",
|
|
1300
|
+
parsePatterns: nr,
|
|
1301
|
+
defaultParseWidth: "any"
|
|
1302
|
+
}),
|
|
1303
|
+
day: se({
|
|
1304
|
+
matchPatterns: ir,
|
|
1305
|
+
defaultMatchWidth: "wide",
|
|
1306
|
+
parsePatterns: or,
|
|
1307
|
+
defaultParseWidth: "any"
|
|
1308
|
+
}),
|
|
1309
|
+
dayPeriod: se({
|
|
1310
|
+
matchPatterns: sr,
|
|
1311
|
+
defaultMatchWidth: "any",
|
|
1312
|
+
parsePatterns: ur,
|
|
1313
|
+
defaultParseWidth: "any"
|
|
1314
|
+
})
|
|
1315
|
+
};
|
|
1316
|
+
const cr = lr;
|
|
1317
|
+
var dr = {
|
|
1318
|
+
code: "en-US",
|
|
1319
|
+
formatDistance: Et,
|
|
1320
|
+
formatLong: St,
|
|
1321
|
+
formatRelative: At,
|
|
1322
|
+
localize: Xt,
|
|
1323
|
+
match: cr,
|
|
1324
|
+
options: {
|
|
1325
|
+
weekStartsOn: 0,
|
|
1326
|
+
firstWeekContainsDate: 1
|
|
1327
|
+
}
|
|
1328
|
+
};
|
|
1329
|
+
const Ge = dr;
|
|
1330
|
+
var fr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, hr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, vr = /^'([^]*?)'?$/, mr = /''/g, pr = /[a-zA-Z]/;
|
|
1331
|
+
function K(i, a, t) {
|
|
1332
|
+
var r, e, o, n, s, u, f, w, y, k, C, E, F, H;
|
|
1333
|
+
M(2, arguments);
|
|
1334
|
+
var $ = String(a), L = te(), I = (r = (e = void 0) !== null && e !== void 0 ? e : L.locale) !== null && r !== void 0 ? r : Ge, R = S((o = (n = (s = (u = void 0) !== null && u !== void 0 ? u : void 0) !== null && s !== void 0 ? s : L.firstWeekContainsDate) !== null && n !== void 0 ? n : (f = L.locale) === null || f === void 0 || (w = f.options) === null || w === void 0 ? void 0 : w.firstWeekContainsDate) !== null && o !== void 0 ? o : 1);
|
|
1335
|
+
if (!(R >= 1 && R <= 7))
|
|
1336
|
+
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
1337
|
+
var j = S((y = (k = (C = (E = void 0) !== null && E !== void 0 ? E : void 0) !== null && C !== void 0 ? C : L.weekStartsOn) !== null && k !== void 0 ? k : (F = L.locale) === null || F === void 0 || (H = F.options) === null || H === void 0 ? void 0 : H.weekStartsOn) !== null && y !== void 0 ? y : 0);
|
|
1338
|
+
if (!(j >= 0 && j <= 6))
|
|
1339
|
+
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
1340
|
+
if (!I.localize)
|
|
1341
|
+
throw new RangeError("locale must contain localize property");
|
|
1342
|
+
if (!I.formatLong)
|
|
1343
|
+
throw new RangeError("locale must contain formatLong property");
|
|
1344
|
+
var X = W(i);
|
|
1345
|
+
if (!ft(X))
|
|
1346
|
+
throw new RangeError("Invalid time value");
|
|
1347
|
+
var re = Qe(X), ae = Ie(X, re), ne = {
|
|
1348
|
+
firstWeekContainsDate: R,
|
|
1349
|
+
weekStartsOn: j,
|
|
1350
|
+
locale: I,
|
|
1351
|
+
_originalDate: X
|
|
1352
|
+
}, me = $.match(hr).map(function(_) {
|
|
1353
|
+
var N = _[0];
|
|
1354
|
+
if (N === "p" || N === "P") {
|
|
1355
|
+
var z = ye[N];
|
|
1356
|
+
return z(_, I.formatLong);
|
|
1357
|
+
}
|
|
1358
|
+
return _;
|
|
1359
|
+
}).join("").match(fr).map(function(_) {
|
|
1360
|
+
if (_ === "''")
|
|
1361
|
+
return "'";
|
|
1362
|
+
var N = _[0];
|
|
1363
|
+
if (N === "'")
|
|
1364
|
+
return gr(_);
|
|
1365
|
+
var z = Ct[N];
|
|
1366
|
+
if (z)
|
|
1367
|
+
return Xe(_) && fe(_, a, String(i)), je(_) && fe(_, a, String(i)), z(ae, _, I.localize, ne);
|
|
1368
|
+
if (N.match(pr))
|
|
1369
|
+
throw new RangeError("Format string contains an unescaped latin alphabet character `" + N + "`");
|
|
1370
|
+
return _;
|
|
1371
|
+
}).join("");
|
|
1372
|
+
return me;
|
|
1373
|
+
}
|
|
1374
|
+
function gr(i) {
|
|
1375
|
+
var a = i.match(vr);
|
|
1376
|
+
return a ? a[1].replace(mr, "'") : i;
|
|
1377
|
+
}
|
|
1378
|
+
class ze {
|
|
1379
|
+
constructor() {
|
|
1380
|
+
}
|
|
1381
|
+
static dateToFormatedString(a, t) {
|
|
1382
|
+
const r = t ? K(a, t) : a.toLocaleDateString("en-gb"), e = a.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", hour12: !1 });
|
|
1383
|
+
return `${r}, ${e}`;
|
|
1384
|
+
}
|
|
1385
|
+
}
|
|
1386
|
+
class Ve {
|
|
1387
|
+
constructor() {
|
|
1388
|
+
}
|
|
1389
|
+
static format(a, t) {
|
|
1390
|
+
let r = `${t} ${a}`;
|
|
1391
|
+
try {
|
|
1392
|
+
r = new Intl.NumberFormat("en-US", {
|
|
1393
|
+
style: "currency",
|
|
1394
|
+
currency: a
|
|
1395
|
+
}).format(t);
|
|
1396
|
+
} catch (e) {
|
|
1397
|
+
}
|
|
1398
|
+
return r;
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1401
|
+
const wr = (i) => l(
|
|
1402
|
+
"div",
|
|
1403
|
+
{ class: "data-transaction" },
|
|
1404
|
+
l("p", null, i.productType),
|
|
1405
|
+
l(
|
|
1406
|
+
"p",
|
|
1407
|
+
{ class: "text-style text-style-status" },
|
|
1408
|
+
l("span", { class: i.status.toLowerCase() }, i.status)
|
|
1409
|
+
),
|
|
1410
|
+
l(
|
|
1411
|
+
"p",
|
|
1412
|
+
{ class: "date" },
|
|
1413
|
+
i.transId,
|
|
1414
|
+
" | ",
|
|
1415
|
+
ze.dateToFormatedString(new Date(i.created), i.dateformat)
|
|
1416
|
+
),
|
|
1417
|
+
l(
|
|
1418
|
+
"p",
|
|
1419
|
+
{ class: "text-style" },
|
|
1420
|
+
Ve.format(i.currency, i.realAmount),
|
|
1421
|
+
" "
|
|
1422
|
+
)
|
|
1423
|
+
), yr = (i) => l(
|
|
1424
|
+
"div",
|
|
1425
|
+
{ class: "page-size" },
|
|
1426
|
+
l("span", null, g.translate("show", i.language)),
|
|
1427
|
+
i.pageSizes.map((a) => l("button", { class: i.currentPageSize === a ? "active" : "", onClick: () => i.changePageSize(a) }, a))
|
|
1428
|
+
), br = ({ source: i, language: a, dateformat: t }) => {
|
|
1429
|
+
const r = [
|
|
1430
|
+
{ name: g.translate("transactionId", a) },
|
|
1431
|
+
{
|
|
1432
|
+
name: g.translate("date", a)
|
|
1433
|
+
},
|
|
1434
|
+
{
|
|
1435
|
+
name: g.translate("amount", a)
|
|
1436
|
+
},
|
|
1437
|
+
{ name: g.translate("productType", a) },
|
|
1438
|
+
{
|
|
1439
|
+
name: g.translate("status", a)
|
|
1440
|
+
}
|
|
1441
|
+
];
|
|
1442
|
+
return l(
|
|
1443
|
+
"table",
|
|
1444
|
+
null,
|
|
1445
|
+
l(
|
|
1446
|
+
"thead",
|
|
1447
|
+
null,
|
|
1448
|
+
l("tr", null, r.map((e) => l("th", null, e.name)))
|
|
1449
|
+
),
|
|
1450
|
+
l("tbody", null, i.map((e) => l(
|
|
1451
|
+
"tr",
|
|
1452
|
+
null,
|
|
1453
|
+
l("td", null, e.transId),
|
|
1454
|
+
l("td", null, ze.dateToFormatedString(new Date(e.created), t)),
|
|
1455
|
+
l(
|
|
1456
|
+
"td",
|
|
1457
|
+
null,
|
|
1458
|
+
Ve.format(e.currency, e.realAmount),
|
|
1459
|
+
" "
|
|
1460
|
+
),
|
|
1461
|
+
l("td", null, e.productType),
|
|
1462
|
+
l(
|
|
1463
|
+
"td",
|
|
1464
|
+
null,
|
|
1465
|
+
l("span", { class: e.status.toLowerCase() }, e.status)
|
|
1466
|
+
)
|
|
1467
|
+
)))
|
|
1468
|
+
);
|
|
1469
|
+
};
|
|
1470
|
+
function Se(i, a) {
|
|
1471
|
+
if (i) {
|
|
1472
|
+
const t = document.createElement("style");
|
|
1473
|
+
t.innerHTML = a, i.appendChild(t);
|
|
1474
|
+
}
|
|
1475
|
+
}
|
|
1476
|
+
function He(i, a) {
|
|
1477
|
+
const t = new URL(a);
|
|
1478
|
+
fetch(t.href).then((r) => r.text()).then((r) => {
|
|
1479
|
+
const e = document.createElement("style");
|
|
1480
|
+
e.innerHTML = r, i && i.appendChild(e);
|
|
1481
|
+
}).catch((r) => {
|
|
1482
|
+
console.error("There was an error while trying to load client styling from URL", r);
|
|
1483
|
+
});
|
|
1484
|
+
}
|
|
1485
|
+
function Tr(i, a, t) {
|
|
1486
|
+
if (window.emMessageBus) {
|
|
1487
|
+
const r = document.createElement("style");
|
|
1488
|
+
window.emMessageBus.subscribe(a, (e) => {
|
|
1489
|
+
r.innerHTML = e, i && i.appendChild(r);
|
|
1490
|
+
});
|
|
1491
|
+
}
|
|
1492
|
+
}
|
|
1493
|
+
function Ne(i, a) {
|
|
1494
|
+
(a == null || a > i.length) && (a = i.length);
|
|
1495
|
+
for (var t = 0, r = Array(a); t < a; t++)
|
|
1496
|
+
r[t] = i[t];
|
|
1497
|
+
return r;
|
|
1498
|
+
}
|
|
1499
|
+
function xr(i, a) {
|
|
1500
|
+
if (i) {
|
|
1501
|
+
if (typeof i == "string")
|
|
1502
|
+
return Ne(i, a);
|
|
1503
|
+
var t = {}.toString.call(i).slice(8, -1);
|
|
1504
|
+
return t === "Object" && i.constructor && (t = i.constructor.name), t === "Map" || t === "Set" ? Array.from(i) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? Ne(i, a) : void 0;
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1507
|
+
function Ae(i, a) {
|
|
1508
|
+
var t = typeof Symbol != "undefined" && i[Symbol.iterator] || i["@@iterator"];
|
|
1509
|
+
if (!t) {
|
|
1510
|
+
if (Array.isArray(i) || (t = xr(i)) || a) {
|
|
1511
|
+
t && (i = t);
|
|
1512
|
+
var r = 0, e = function() {
|
|
1513
|
+
};
|
|
1514
|
+
return {
|
|
1515
|
+
s: e,
|
|
1516
|
+
n: function() {
|
|
1517
|
+
return r >= i.length ? {
|
|
1518
|
+
done: !0
|
|
1519
|
+
} : {
|
|
1520
|
+
done: !1,
|
|
1521
|
+
value: i[r++]
|
|
1522
|
+
};
|
|
1523
|
+
},
|
|
1524
|
+
e: function(f) {
|
|
1525
|
+
throw f;
|
|
1526
|
+
},
|
|
1527
|
+
f: e
|
|
1528
|
+
};
|
|
1529
|
+
}
|
|
1530
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1531
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1532
|
+
}
|
|
1533
|
+
var o, n = !0, s = !1;
|
|
1534
|
+
return {
|
|
1535
|
+
s: function() {
|
|
1536
|
+
t = t.call(i);
|
|
1537
|
+
},
|
|
1538
|
+
n: function() {
|
|
1539
|
+
var f = t.next();
|
|
1540
|
+
return n = f.done, f;
|
|
1541
|
+
},
|
|
1542
|
+
e: function(f) {
|
|
1543
|
+
s = !0, o = f;
|
|
1544
|
+
},
|
|
1545
|
+
f: function() {
|
|
1546
|
+
try {
|
|
1547
|
+
n || t.return == null || t.return();
|
|
1548
|
+
} finally {
|
|
1549
|
+
if (s)
|
|
1550
|
+
throw o;
|
|
1551
|
+
}
|
|
1552
|
+
}
|
|
1553
|
+
};
|
|
1554
|
+
}
|
|
1555
|
+
function Cr(i, a) {
|
|
1556
|
+
if (i == null)
|
|
1557
|
+
throw new TypeError("assign requires that input parameter not be null or undefined");
|
|
1558
|
+
for (var t in a)
|
|
1559
|
+
Object.prototype.hasOwnProperty.call(a, t) && (i[t] = a[t]);
|
|
1560
|
+
return i;
|
|
1561
|
+
}
|
|
1562
|
+
function d(i) {
|
|
1563
|
+
if (i === void 0)
|
|
1564
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1565
|
+
return i;
|
|
1566
|
+
}
|
|
1567
|
+
function be(i, a) {
|
|
1568
|
+
return be = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, r) {
|
|
1569
|
+
return t.__proto__ = r, t;
|
|
1570
|
+
}, be(i, a);
|
|
1571
|
+
}
|
|
1572
|
+
function m(i, a) {
|
|
1573
|
+
if (typeof a != "function" && a !== null)
|
|
1574
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
1575
|
+
i.prototype = Object.create(a && a.prototype, {
|
|
1576
|
+
constructor: {
|
|
1577
|
+
value: i,
|
|
1578
|
+
writable: !0,
|
|
1579
|
+
configurable: !0
|
|
1580
|
+
}
|
|
1581
|
+
}), Object.defineProperty(i, "prototype", {
|
|
1582
|
+
writable: !1
|
|
1583
|
+
}), a && be(i, a);
|
|
1584
|
+
}
|
|
1585
|
+
function he(i) {
|
|
1586
|
+
return he = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(a) {
|
|
1587
|
+
return a.__proto__ || Object.getPrototypeOf(a);
|
|
1588
|
+
}, he(i);
|
|
1589
|
+
}
|
|
1590
|
+
function Ke() {
|
|
1591
|
+
try {
|
|
1592
|
+
var i = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1593
|
+
}));
|
|
1594
|
+
} catch (a) {
|
|
1595
|
+
}
|
|
1596
|
+
return (Ke = function() {
|
|
1597
|
+
return !!i;
|
|
1598
|
+
})();
|
|
1599
|
+
}
|
|
1600
|
+
function Dr(i, a) {
|
|
1601
|
+
if (a && (Q(a) == "object" || typeof a == "function"))
|
|
1602
|
+
return a;
|
|
1603
|
+
if (a !== void 0)
|
|
1604
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
1605
|
+
return d(i);
|
|
1606
|
+
}
|
|
1607
|
+
function p(i) {
|
|
1608
|
+
var a = Ke();
|
|
1609
|
+
return function() {
|
|
1610
|
+
var t, r = he(i);
|
|
1611
|
+
if (a) {
|
|
1612
|
+
var e = he(this).constructor;
|
|
1613
|
+
t = Reflect.construct(r, arguments, e);
|
|
1614
|
+
} else
|
|
1615
|
+
t = r.apply(this, arguments);
|
|
1616
|
+
return Dr(this, t);
|
|
1617
|
+
};
|
|
1618
|
+
}
|
|
1619
|
+
function h(i, a) {
|
|
1620
|
+
if (!(i instanceof a))
|
|
1621
|
+
throw new TypeError("Cannot call a class as a function");
|
|
1622
|
+
}
|
|
1623
|
+
function kr(i, a) {
|
|
1624
|
+
if (Q(i) != "object" || !i)
|
|
1625
|
+
return i;
|
|
1626
|
+
var t = i[Symbol.toPrimitive];
|
|
1627
|
+
if (t !== void 0) {
|
|
1628
|
+
var r = t.call(i, a || "default");
|
|
1629
|
+
if (Q(r) != "object")
|
|
1630
|
+
return r;
|
|
1631
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1632
|
+
}
|
|
1633
|
+
return (a === "string" ? String : Number)(i);
|
|
1634
|
+
}
|
|
1635
|
+
function Ze(i) {
|
|
1636
|
+
var a = kr(i, "string");
|
|
1637
|
+
return Q(a) == "symbol" ? a : a + "";
|
|
1638
|
+
}
|
|
1639
|
+
function Pr(i, a) {
|
|
1640
|
+
for (var t = 0; t < a.length; t++) {
|
|
1641
|
+
var r = a[t];
|
|
1642
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(i, Ze(r.key), r);
|
|
1643
|
+
}
|
|
1644
|
+
}
|
|
1645
|
+
function v(i, a, t) {
|
|
1646
|
+
return a && Pr(i.prototype, a), Object.defineProperty(i, "prototype", {
|
|
1647
|
+
writable: !1
|
|
1648
|
+
}), i;
|
|
1649
|
+
}
|
|
1650
|
+
function c(i, a, t) {
|
|
1651
|
+
return (a = Ze(a)) in i ? Object.defineProperty(i, a, {
|
|
1652
|
+
value: t,
|
|
1653
|
+
enumerable: !0,
|
|
1654
|
+
configurable: !0,
|
|
1655
|
+
writable: !0
|
|
1656
|
+
}) : i[a] = t, i;
|
|
1657
|
+
}
|
|
1658
|
+
var Mr = 10, Je = /* @__PURE__ */ function() {
|
|
1659
|
+
function i() {
|
|
1660
|
+
h(this, i), c(this, "priority", void 0), c(this, "subPriority", 0);
|
|
1661
|
+
}
|
|
1662
|
+
return v(i, [{
|
|
1663
|
+
key: "validate",
|
|
1664
|
+
value: function(t, r) {
|
|
1665
|
+
return !0;
|
|
1666
|
+
}
|
|
1667
|
+
}]), i;
|
|
1668
|
+
}(), Or = /* @__PURE__ */ function(i) {
|
|
1669
|
+
m(t, i);
|
|
1670
|
+
var a = p(t);
|
|
1671
|
+
function t(r, e, o, n, s) {
|
|
1672
|
+
var u;
|
|
1673
|
+
return h(this, t), u = a.call(this), u.value = r, u.validateValue = e, u.setValue = o, u.priority = n, s && (u.subPriority = s), u;
|
|
1674
|
+
}
|
|
1675
|
+
return v(t, [{
|
|
1676
|
+
key: "validate",
|
|
1677
|
+
value: function(e, o) {
|
|
1678
|
+
return this.validateValue(e, this.value, o);
|
|
1679
|
+
}
|
|
1680
|
+
}, {
|
|
1681
|
+
key: "set",
|
|
1682
|
+
value: function(e, o, n) {
|
|
1683
|
+
return this.setValue(e, o, this.value, n);
|
|
1684
|
+
}
|
|
1685
|
+
}]), t;
|
|
1686
|
+
}(Je), Ur = /* @__PURE__ */ function(i) {
|
|
1687
|
+
m(t, i);
|
|
1688
|
+
var a = p(t);
|
|
1689
|
+
function t() {
|
|
1690
|
+
var r;
|
|
1691
|
+
h(this, t);
|
|
1692
|
+
for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
|
|
1693
|
+
o[n] = arguments[n];
|
|
1694
|
+
return r = a.call.apply(a, [this].concat(o)), c(d(r), "priority", Mr), c(d(r), "subPriority", -1), r;
|
|
1695
|
+
}
|
|
1696
|
+
return v(t, [{
|
|
1697
|
+
key: "set",
|
|
1698
|
+
value: function(e, o) {
|
|
1699
|
+
if (o.timestampIsSet)
|
|
1700
|
+
return e;
|
|
1701
|
+
var n = /* @__PURE__ */ new Date(0);
|
|
1702
|
+
return n.setFullYear(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate()), n.setHours(e.getUTCHours(), e.getUTCMinutes(), e.getUTCSeconds(), e.getUTCMilliseconds()), n;
|
|
1703
|
+
}
|
|
1704
|
+
}]), t;
|
|
1705
|
+
}(Je), b = /* @__PURE__ */ function() {
|
|
1706
|
+
function i() {
|
|
1707
|
+
h(this, i), c(this, "incompatibleTokens", void 0), c(this, "priority", void 0), c(this, "subPriority", void 0);
|
|
1708
|
+
}
|
|
1709
|
+
return v(i, [{
|
|
1710
|
+
key: "run",
|
|
1711
|
+
value: function(t, r, e, o) {
|
|
1712
|
+
var n = this.parse(t, r, e, o);
|
|
1713
|
+
return n ? {
|
|
1714
|
+
setter: new Or(n.value, this.validate, this.set, this.priority, this.subPriority),
|
|
1715
|
+
rest: n.rest
|
|
1716
|
+
} : null;
|
|
1717
|
+
}
|
|
1718
|
+
}, {
|
|
1719
|
+
key: "validate",
|
|
1720
|
+
value: function(t, r, e) {
|
|
1721
|
+
return !0;
|
|
1722
|
+
}
|
|
1723
|
+
}]), i;
|
|
1724
|
+
}(), Er = /* @__PURE__ */ function(i) {
|
|
1725
|
+
m(t, i);
|
|
1726
|
+
var a = p(t);
|
|
1727
|
+
function t() {
|
|
1728
|
+
var r;
|
|
1729
|
+
h(this, t);
|
|
1730
|
+
for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
|
|
1731
|
+
o[n] = arguments[n];
|
|
1732
|
+
return r = a.call.apply(a, [this].concat(o)), c(d(r), "priority", 140), c(d(r), "incompatibleTokens", ["R", "u", "t", "T"]), r;
|
|
1733
|
+
}
|
|
1734
|
+
return v(t, [{
|
|
1735
|
+
key: "parse",
|
|
1736
|
+
value: function(e, o, n) {
|
|
1737
|
+
switch (o) {
|
|
1738
|
+
case "G":
|
|
1739
|
+
case "GG":
|
|
1740
|
+
case "GGG":
|
|
1741
|
+
return n.era(e, {
|
|
1742
|
+
width: "abbreviated"
|
|
1743
|
+
}) || n.era(e, {
|
|
1744
|
+
width: "narrow"
|
|
1745
|
+
});
|
|
1746
|
+
case "GGGGG":
|
|
1747
|
+
return n.era(e, {
|
|
1748
|
+
width: "narrow"
|
|
1749
|
+
});
|
|
1750
|
+
case "GGGG":
|
|
1751
|
+
default:
|
|
1752
|
+
return n.era(e, {
|
|
1753
|
+
width: "wide"
|
|
1754
|
+
}) || n.era(e, {
|
|
1755
|
+
width: "abbreviated"
|
|
1756
|
+
}) || n.era(e, {
|
|
1757
|
+
width: "narrow"
|
|
1758
|
+
});
|
|
1759
|
+
}
|
|
1760
|
+
}
|
|
1761
|
+
}, {
|
|
1762
|
+
key: "set",
|
|
1763
|
+
value: function(e, o, n) {
|
|
1764
|
+
return o.era = n, e.setUTCFullYear(n, 0, 1), e.setUTCHours(0, 0, 0, 0), e;
|
|
1765
|
+
}
|
|
1766
|
+
}]), t;
|
|
1767
|
+
}(b), Yr = 6e4, _r = 36e5, Wr = 1e3, O = {
|
|
1768
|
+
month: /^(1[0-2]|0?\d)/,
|
|
1769
|
+
// 0 to 12
|
|
1770
|
+
date: /^(3[0-1]|[0-2]?\d)/,
|
|
1771
|
+
// 0 to 31
|
|
1772
|
+
dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,
|
|
1773
|
+
// 0 to 366
|
|
1774
|
+
week: /^(5[0-3]|[0-4]?\d)/,
|
|
1775
|
+
// 0 to 53
|
|
1776
|
+
hour23h: /^(2[0-3]|[0-1]?\d)/,
|
|
1777
|
+
// 0 to 23
|
|
1778
|
+
hour24h: /^(2[0-4]|[0-1]?\d)/,
|
|
1779
|
+
// 0 to 24
|
|
1780
|
+
hour11h: /^(1[0-1]|0?\d)/,
|
|
1781
|
+
// 0 to 11
|
|
1782
|
+
hour12h: /^(1[0-2]|0?\d)/,
|
|
1783
|
+
// 0 to 12
|
|
1784
|
+
minute: /^[0-5]?\d/,
|
|
1785
|
+
// 0 to 59
|
|
1786
|
+
second: /^[0-5]?\d/,
|
|
1787
|
+
// 0 to 59
|
|
1788
|
+
singleDigit: /^\d/,
|
|
1789
|
+
// 0 to 9
|
|
1790
|
+
twoDigits: /^\d{1,2}/,
|
|
1791
|
+
// 0 to 99
|
|
1792
|
+
threeDigits: /^\d{1,3}/,
|
|
1793
|
+
// 0 to 999
|
|
1794
|
+
fourDigits: /^\d{1,4}/,
|
|
1795
|
+
// 0 to 9999
|
|
1796
|
+
anyDigitsSigned: /^-?\d+/,
|
|
1797
|
+
singleDigitSigned: /^-?\d/,
|
|
1798
|
+
// 0 to 9, -0 to -9
|
|
1799
|
+
twoDigitsSigned: /^-?\d{1,2}/,
|
|
1800
|
+
// 0 to 99, -0 to -99
|
|
1801
|
+
threeDigitsSigned: /^-?\d{1,3}/,
|
|
1802
|
+
// 0 to 999, -0 to -999
|
|
1803
|
+
fourDigitsSigned: /^-?\d{1,4}/
|
|
1804
|
+
// 0 to 9999, -0 to -9999
|
|
1805
|
+
}, q = {
|
|
1806
|
+
basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
|
|
1807
|
+
basic: /^([+-])(\d{2})(\d{2})|Z/,
|
|
1808
|
+
basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,
|
|
1809
|
+
extended: /^([+-])(\d{2}):(\d{2})|Z/,
|
|
1810
|
+
extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/
|
|
1811
|
+
};
|
|
1812
|
+
function U(i, a) {
|
|
1813
|
+
return i && {
|
|
1814
|
+
value: a(i.value),
|
|
1815
|
+
rest: i.rest
|
|
1816
|
+
};
|
|
1817
|
+
}
|
|
1818
|
+
function D(i, a) {
|
|
1819
|
+
var t = a.match(i);
|
|
1820
|
+
return t ? {
|
|
1821
|
+
value: parseInt(t[0], 10),
|
|
1822
|
+
rest: a.slice(t[0].length)
|
|
1823
|
+
} : null;
|
|
1824
|
+
}
|
|
1825
|
+
function B(i, a) {
|
|
1826
|
+
var t = a.match(i);
|
|
1827
|
+
if (!t)
|
|
1828
|
+
return null;
|
|
1829
|
+
if (t[0] === "Z")
|
|
1830
|
+
return {
|
|
1831
|
+
value: 0,
|
|
1832
|
+
rest: a.slice(1)
|
|
1833
|
+
};
|
|
1834
|
+
var r = t[1] === "+" ? 1 : -1, e = t[2] ? parseInt(t[2], 10) : 0, o = t[3] ? parseInt(t[3], 10) : 0, n = t[5] ? parseInt(t[5], 10) : 0;
|
|
1835
|
+
return {
|
|
1836
|
+
value: r * (e * _r + o * Yr + n * Wr),
|
|
1837
|
+
rest: a.slice(t[0].length)
|
|
1838
|
+
};
|
|
1839
|
+
}
|
|
1840
|
+
function et(i) {
|
|
1841
|
+
return D(O.anyDigitsSigned, i);
|
|
1842
|
+
}
|
|
1843
|
+
function P(i, a) {
|
|
1844
|
+
switch (i) {
|
|
1845
|
+
case 1:
|
|
1846
|
+
return D(O.singleDigit, a);
|
|
1847
|
+
case 2:
|
|
1848
|
+
return D(O.twoDigits, a);
|
|
1849
|
+
case 3:
|
|
1850
|
+
return D(O.threeDigits, a);
|
|
1851
|
+
case 4:
|
|
1852
|
+
return D(O.fourDigits, a);
|
|
1853
|
+
default:
|
|
1854
|
+
return D(new RegExp("^\\d{1," + i + "}"), a);
|
|
1855
|
+
}
|
|
1856
|
+
}
|
|
1857
|
+
function ve(i, a) {
|
|
1858
|
+
switch (i) {
|
|
1859
|
+
case 1:
|
|
1860
|
+
return D(O.singleDigitSigned, a);
|
|
1861
|
+
case 2:
|
|
1862
|
+
return D(O.twoDigitsSigned, a);
|
|
1863
|
+
case 3:
|
|
1864
|
+
return D(O.threeDigitsSigned, a);
|
|
1865
|
+
case 4:
|
|
1866
|
+
return D(O.fourDigitsSigned, a);
|
|
1867
|
+
default:
|
|
1868
|
+
return D(new RegExp("^-?\\d{1," + i + "}"), a);
|
|
1869
|
+
}
|
|
1870
|
+
}
|
|
1871
|
+
function xe(i) {
|
|
1872
|
+
switch (i) {
|
|
1873
|
+
case "morning":
|
|
1874
|
+
return 4;
|
|
1875
|
+
case "evening":
|
|
1876
|
+
return 17;
|
|
1877
|
+
case "pm":
|
|
1878
|
+
case "noon":
|
|
1879
|
+
case "afternoon":
|
|
1880
|
+
return 12;
|
|
1881
|
+
case "am":
|
|
1882
|
+
case "midnight":
|
|
1883
|
+
case "night":
|
|
1884
|
+
default:
|
|
1885
|
+
return 0;
|
|
1886
|
+
}
|
|
1887
|
+
}
|
|
1888
|
+
function tt(i, a) {
|
|
1889
|
+
var t = a > 0, r = t ? a : 1 - a, e;
|
|
1890
|
+
if (r <= 50)
|
|
1891
|
+
e = i || 100;
|
|
1892
|
+
else {
|
|
1893
|
+
var o = r + 50, n = Math.floor(o / 100) * 100, s = i >= o % 100;
|
|
1894
|
+
e = i + n - (s ? 100 : 0);
|
|
1895
|
+
}
|
|
1896
|
+
return t ? e : 1 - e;
|
|
1897
|
+
}
|
|
1898
|
+
function rt(i) {
|
|
1899
|
+
return i % 400 === 0 || i % 4 === 0 && i % 100 !== 0;
|
|
1900
|
+
}
|
|
1901
|
+
var Lr = /* @__PURE__ */ function(i) {
|
|
1902
|
+
m(t, i);
|
|
1903
|
+
var a = p(t);
|
|
1904
|
+
function t() {
|
|
1905
|
+
var r;
|
|
1906
|
+
h(this, t);
|
|
1907
|
+
for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
|
|
1908
|
+
o[n] = arguments[n];
|
|
1909
|
+
return r = a.call.apply(a, [this].concat(o)), c(d(r), "priority", 130), c(d(r), "incompatibleTokens", ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"]), r;
|
|
1910
|
+
}
|
|
1911
|
+
return v(t, [{
|
|
1912
|
+
key: "parse",
|
|
1913
|
+
value: function(e, o, n) {
|
|
1914
|
+
var s = function(f) {
|
|
1915
|
+
return {
|
|
1916
|
+
year: f,
|
|
1917
|
+
isTwoDigitYear: o === "yy"
|
|
1918
|
+
};
|
|
1919
|
+
};
|
|
1920
|
+
switch (o) {
|
|
1921
|
+
case "y":
|
|
1922
|
+
return U(P(4, e), s);
|
|
1923
|
+
case "yo":
|
|
1924
|
+
return U(n.ordinalNumber(e, {
|
|
1925
|
+
unit: "year"
|
|
1926
|
+
}), s);
|
|
1927
|
+
default:
|
|
1928
|
+
return U(P(o.length, e), s);
|
|
1929
|
+
}
|
|
1930
|
+
}
|
|
1931
|
+
}, {
|
|
1932
|
+
key: "validate",
|
|
1933
|
+
value: function(e, o) {
|
|
1934
|
+
return o.isTwoDigitYear || o.year > 0;
|
|
1935
|
+
}
|
|
1936
|
+
}, {
|
|
1937
|
+
key: "set",
|
|
1938
|
+
value: function(e, o, n) {
|
|
1939
|
+
var s = e.getUTCFullYear();
|
|
1940
|
+
if (n.isTwoDigitYear) {
|
|
1941
|
+
var u = tt(n.year, s);
|
|
1942
|
+
return e.setUTCFullYear(u, 0, 1), e.setUTCHours(0, 0, 0, 0), e;
|
|
1943
|
+
}
|
|
1944
|
+
var f = !("era" in o) || o.era === 1 ? n.year : 1 - n.year;
|
|
1945
|
+
return e.setUTCFullYear(f, 0, 1), e.setUTCHours(0, 0, 0, 0), e;
|
|
1946
|
+
}
|
|
1947
|
+
}]), t;
|
|
1948
|
+
}(b), Sr = /* @__PURE__ */ function(i) {
|
|
1949
|
+
m(t, i);
|
|
1950
|
+
var a = p(t);
|
|
1951
|
+
function t() {
|
|
1952
|
+
var r;
|
|
1953
|
+
h(this, t);
|
|
1954
|
+
for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
|
|
1955
|
+
o[n] = arguments[n];
|
|
1956
|
+
return r = a.call.apply(a, [this].concat(o)), c(d(r), "priority", 130), c(d(r), "incompatibleTokens", ["y", "R", "u", "Q", "q", "M", "L", "I", "d", "D", "i", "t", "T"]), r;
|
|
1957
|
+
}
|
|
1958
|
+
return v(t, [{
|
|
1959
|
+
key: "parse",
|
|
1960
|
+
value: function(e, o, n) {
|
|
1961
|
+
var s = function(f) {
|
|
1962
|
+
return {
|
|
1963
|
+
year: f,
|
|
1964
|
+
isTwoDigitYear: o === "YY"
|
|
1965
|
+
};
|
|
1966
|
+
};
|
|
1967
|
+
switch (o) {
|
|
1968
|
+
case "Y":
|
|
1969
|
+
return U(P(4, e), s);
|
|
1970
|
+
case "Yo":
|
|
1971
|
+
return U(n.ordinalNumber(e, {
|
|
1972
|
+
unit: "year"
|
|
1973
|
+
}), s);
|
|
1974
|
+
default:
|
|
1975
|
+
return U(P(o.length, e), s);
|
|
1976
|
+
}
|
|
1977
|
+
}
|
|
1978
|
+
}, {
|
|
1979
|
+
key: "validate",
|
|
1980
|
+
value: function(e, o) {
|
|
1981
|
+
return o.isTwoDigitYear || o.year > 0;
|
|
1982
|
+
}
|
|
1983
|
+
}, {
|
|
1984
|
+
key: "set",
|
|
1985
|
+
value: function(e, o, n, s) {
|
|
1986
|
+
var u = Te(e, s);
|
|
1987
|
+
if (n.isTwoDigitYear) {
|
|
1988
|
+
var f = tt(n.year, u);
|
|
1989
|
+
return e.setUTCFullYear(f, 0, s.firstWeekContainsDate), e.setUTCHours(0, 0, 0, 0), Z(e, s);
|
|
1990
|
+
}
|
|
1991
|
+
var w = !("era" in o) || o.era === 1 ? n.year : 1 - n.year;
|
|
1992
|
+
return e.setUTCFullYear(w, 0, s.firstWeekContainsDate), e.setUTCHours(0, 0, 0, 0), Z(e, s);
|
|
1993
|
+
}
|
|
1994
|
+
}]), t;
|
|
1995
|
+
}(b), Hr = /* @__PURE__ */ function(i) {
|
|
1996
|
+
m(t, i);
|
|
1997
|
+
var a = p(t);
|
|
1998
|
+
function t() {
|
|
1999
|
+
var r;
|
|
2000
|
+
h(this, t);
|
|
2001
|
+
for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
|
|
2002
|
+
o[n] = arguments[n];
|
|
2003
|
+
return r = a.call.apply(a, [this].concat(o)), c(d(r), "priority", 130), c(d(r), "incompatibleTokens", ["G", "y", "Y", "u", "Q", "q", "M", "L", "w", "d", "D", "e", "c", "t", "T"]), r;
|
|
2004
|
+
}
|
|
2005
|
+
return v(t, [{
|
|
2006
|
+
key: "parse",
|
|
2007
|
+
value: function(e, o) {
|
|
2008
|
+
return ve(o === "R" ? 4 : o.length, e);
|
|
2009
|
+
}
|
|
2010
|
+
}, {
|
|
2011
|
+
key: "set",
|
|
2012
|
+
value: function(e, o, n) {
|
|
2013
|
+
var s = /* @__PURE__ */ new Date(0);
|
|
2014
|
+
return s.setUTCFullYear(n, 0, 4), s.setUTCHours(0, 0, 0, 0), ee(s);
|
|
2015
|
+
}
|
|
2016
|
+
}]), t;
|
|
2017
|
+
}(b), Nr = /* @__PURE__ */ function(i) {
|
|
2018
|
+
m(t, i);
|
|
2019
|
+
var a = p(t);
|
|
2020
|
+
function t() {
|
|
2021
|
+
var r;
|
|
2022
|
+
h(this, t);
|
|
2023
|
+
for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
|
|
2024
|
+
o[n] = arguments[n];
|
|
2025
|
+
return r = a.call.apply(a, [this].concat(o)), c(d(r), "priority", 130), c(d(r), "incompatibleTokens", ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"]), r;
|
|
2026
|
+
}
|
|
2027
|
+
return v(t, [{
|
|
2028
|
+
key: "parse",
|
|
2029
|
+
value: function(e, o) {
|
|
2030
|
+
return ve(o === "u" ? 4 : o.length, e);
|
|
2031
|
+
}
|
|
2032
|
+
}, {
|
|
2033
|
+
key: "set",
|
|
2034
|
+
value: function(e, o, n) {
|
|
2035
|
+
return e.setUTCFullYear(n, 0, 1), e.setUTCHours(0, 0, 0, 0), e;
|
|
2036
|
+
}
|
|
2037
|
+
}]), t;
|
|
2038
|
+
}(b), Ar = /* @__PURE__ */ function(i) {
|
|
2039
|
+
m(t, i);
|
|
2040
|
+
var a = p(t);
|
|
2041
|
+
function t() {
|
|
2042
|
+
var r;
|
|
2043
|
+
h(this, t);
|
|
2044
|
+
for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
|
|
2045
|
+
o[n] = arguments[n];
|
|
2046
|
+
return r = a.call.apply(a, [this].concat(o)), c(d(r), "priority", 120), c(d(r), "incompatibleTokens", ["Y", "R", "q", "M", "L", "w", "I", "d", "D", "i", "e", "c", "t", "T"]), r;
|
|
2047
|
+
}
|
|
2048
|
+
return v(t, [{
|
|
2049
|
+
key: "parse",
|
|
2050
|
+
value: function(e, o, n) {
|
|
2051
|
+
switch (o) {
|
|
2052
|
+
case "Q":
|
|
2053
|
+
case "QQ":
|
|
2054
|
+
return P(o.length, e);
|
|
2055
|
+
case "Qo":
|
|
2056
|
+
return n.ordinalNumber(e, {
|
|
2057
|
+
unit: "quarter"
|
|
2058
|
+
});
|
|
2059
|
+
case "QQQ":
|
|
2060
|
+
return n.quarter(e, {
|
|
2061
|
+
width: "abbreviated",
|
|
2062
|
+
context: "formatting"
|
|
2063
|
+
}) || n.quarter(e, {
|
|
2064
|
+
width: "narrow",
|
|
2065
|
+
context: "formatting"
|
|
2066
|
+
});
|
|
2067
|
+
case "QQQQQ":
|
|
2068
|
+
return n.quarter(e, {
|
|
2069
|
+
width: "narrow",
|
|
2070
|
+
context: "formatting"
|
|
2071
|
+
});
|
|
2072
|
+
case "QQQQ":
|
|
2073
|
+
default:
|
|
2074
|
+
return n.quarter(e, {
|
|
2075
|
+
width: "wide",
|
|
2076
|
+
context: "formatting"
|
|
2077
|
+
}) || n.quarter(e, {
|
|
2078
|
+
width: "abbreviated",
|
|
2079
|
+
context: "formatting"
|
|
2080
|
+
}) || n.quarter(e, {
|
|
2081
|
+
width: "narrow",
|
|
2082
|
+
context: "formatting"
|
|
2083
|
+
});
|
|
2084
|
+
}
|
|
2085
|
+
}
|
|
2086
|
+
}, {
|
|
2087
|
+
key: "validate",
|
|
2088
|
+
value: function(e, o) {
|
|
2089
|
+
return o >= 1 && o <= 4;
|
|
2090
|
+
}
|
|
2091
|
+
}, {
|
|
2092
|
+
key: "set",
|
|
2093
|
+
value: function(e, o, n) {
|
|
2094
|
+
return e.setUTCMonth((n - 1) * 3, 1), e.setUTCHours(0, 0, 0, 0), e;
|
|
2095
|
+
}
|
|
2096
|
+
}]), t;
|
|
2097
|
+
}(b), Fr = /* @__PURE__ */ function(i) {
|
|
2098
|
+
m(t, i);
|
|
2099
|
+
var a = p(t);
|
|
2100
|
+
function t() {
|
|
2101
|
+
var r;
|
|
2102
|
+
h(this, t);
|
|
2103
|
+
for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
|
|
2104
|
+
o[n] = arguments[n];
|
|
2105
|
+
return r = a.call.apply(a, [this].concat(o)), c(d(r), "priority", 120), c(d(r), "incompatibleTokens", ["Y", "R", "Q", "M", "L", "w", "I", "d", "D", "i", "e", "c", "t", "T"]), r;
|
|
2106
|
+
}
|
|
2107
|
+
return v(t, [{
|
|
2108
|
+
key: "parse",
|
|
2109
|
+
value: function(e, o, n) {
|
|
2110
|
+
switch (o) {
|
|
2111
|
+
case "q":
|
|
2112
|
+
case "qq":
|
|
2113
|
+
return P(o.length, e);
|
|
2114
|
+
case "qo":
|
|
2115
|
+
return n.ordinalNumber(e, {
|
|
2116
|
+
unit: "quarter"
|
|
2117
|
+
});
|
|
2118
|
+
case "qqq":
|
|
2119
|
+
return n.quarter(e, {
|
|
2120
|
+
width: "abbreviated",
|
|
2121
|
+
context: "standalone"
|
|
2122
|
+
}) || n.quarter(e, {
|
|
2123
|
+
width: "narrow",
|
|
2124
|
+
context: "standalone"
|
|
2125
|
+
});
|
|
2126
|
+
case "qqqqq":
|
|
2127
|
+
return n.quarter(e, {
|
|
2128
|
+
width: "narrow",
|
|
2129
|
+
context: "standalone"
|
|
2130
|
+
});
|
|
2131
|
+
case "qqqq":
|
|
2132
|
+
default:
|
|
2133
|
+
return n.quarter(e, {
|
|
2134
|
+
width: "wide",
|
|
2135
|
+
context: "standalone"
|
|
2136
|
+
}) || n.quarter(e, {
|
|
2137
|
+
width: "abbreviated",
|
|
2138
|
+
context: "standalone"
|
|
2139
|
+
}) || n.quarter(e, {
|
|
2140
|
+
width: "narrow",
|
|
2141
|
+
context: "standalone"
|
|
2142
|
+
});
|
|
2143
|
+
}
|
|
2144
|
+
}
|
|
2145
|
+
}, {
|
|
2146
|
+
key: "validate",
|
|
2147
|
+
value: function(e, o) {
|
|
2148
|
+
return o >= 1 && o <= 4;
|
|
2149
|
+
}
|
|
2150
|
+
}, {
|
|
2151
|
+
key: "set",
|
|
2152
|
+
value: function(e, o, n) {
|
|
2153
|
+
return e.setUTCMonth((n - 1) * 3, 1), e.setUTCHours(0, 0, 0, 0), e;
|
|
2154
|
+
}
|
|
2155
|
+
}]), t;
|
|
2156
|
+
}(b), Ir = /* @__PURE__ */ function(i) {
|
|
2157
|
+
m(t, i);
|
|
2158
|
+
var a = p(t);
|
|
2159
|
+
function t() {
|
|
2160
|
+
var r;
|
|
2161
|
+
h(this, t);
|
|
2162
|
+
for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
|
|
2163
|
+
o[n] = arguments[n];
|
|
2164
|
+
return r = a.call.apply(a, [this].concat(o)), c(d(r), "incompatibleTokens", ["Y", "R", "q", "Q", "L", "w", "I", "D", "i", "e", "c", "t", "T"]), c(d(r), "priority", 110), r;
|
|
2165
|
+
}
|
|
2166
|
+
return v(t, [{
|
|
2167
|
+
key: "parse",
|
|
2168
|
+
value: function(e, o, n) {
|
|
2169
|
+
var s = function(f) {
|
|
2170
|
+
return f - 1;
|
|
2171
|
+
};
|
|
2172
|
+
switch (o) {
|
|
2173
|
+
case "M":
|
|
2174
|
+
return U(D(O.month, e), s);
|
|
2175
|
+
case "MM":
|
|
2176
|
+
return U(P(2, e), s);
|
|
2177
|
+
case "Mo":
|
|
2178
|
+
return U(n.ordinalNumber(e, {
|
|
2179
|
+
unit: "month"
|
|
2180
|
+
}), s);
|
|
2181
|
+
case "MMM":
|
|
2182
|
+
return n.month(e, {
|
|
2183
|
+
width: "abbreviated",
|
|
2184
|
+
context: "formatting"
|
|
2185
|
+
}) || n.month(e, {
|
|
2186
|
+
width: "narrow",
|
|
2187
|
+
context: "formatting"
|
|
2188
|
+
});
|
|
2189
|
+
case "MMMMM":
|
|
2190
|
+
return n.month(e, {
|
|
2191
|
+
width: "narrow",
|
|
2192
|
+
context: "formatting"
|
|
2193
|
+
});
|
|
2194
|
+
case "MMMM":
|
|
2195
|
+
default:
|
|
2196
|
+
return n.month(e, {
|
|
2197
|
+
width: "wide",
|
|
2198
|
+
context: "formatting"
|
|
2199
|
+
}) || n.month(e, {
|
|
2200
|
+
width: "abbreviated",
|
|
2201
|
+
context: "formatting"
|
|
2202
|
+
}) || n.month(e, {
|
|
2203
|
+
width: "narrow",
|
|
2204
|
+
context: "formatting"
|
|
2205
|
+
});
|
|
2206
|
+
}
|
|
2207
|
+
}
|
|
2208
|
+
}, {
|
|
2209
|
+
key: "validate",
|
|
2210
|
+
value: function(e, o) {
|
|
2211
|
+
return o >= 0 && o <= 11;
|
|
2212
|
+
}
|
|
2213
|
+
}, {
|
|
2214
|
+
key: "set",
|
|
2215
|
+
value: function(e, o, n) {
|
|
2216
|
+
return e.setUTCMonth(n, 1), e.setUTCHours(0, 0, 0, 0), e;
|
|
2217
|
+
}
|
|
2218
|
+
}]), t;
|
|
2219
|
+
}(b), qr = /* @__PURE__ */ function(i) {
|
|
2220
|
+
m(t, i);
|
|
2221
|
+
var a = p(t);
|
|
2222
|
+
function t() {
|
|
2223
|
+
var r;
|
|
2224
|
+
h(this, t);
|
|
2225
|
+
for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
|
|
2226
|
+
o[n] = arguments[n];
|
|
2227
|
+
return r = a.call.apply(a, [this].concat(o)), c(d(r), "priority", 110), c(d(r), "incompatibleTokens", ["Y", "R", "q", "Q", "M", "w", "I", "D", "i", "e", "c", "t", "T"]), r;
|
|
2228
|
+
}
|
|
2229
|
+
return v(t, [{
|
|
2230
|
+
key: "parse",
|
|
2231
|
+
value: function(e, o, n) {
|
|
2232
|
+
var s = function(f) {
|
|
2233
|
+
return f - 1;
|
|
2234
|
+
};
|
|
2235
|
+
switch (o) {
|
|
2236
|
+
case "L":
|
|
2237
|
+
return U(D(O.month, e), s);
|
|
2238
|
+
case "LL":
|
|
2239
|
+
return U(P(2, e), s);
|
|
2240
|
+
case "Lo":
|
|
2241
|
+
return U(n.ordinalNumber(e, {
|
|
2242
|
+
unit: "month"
|
|
2243
|
+
}), s);
|
|
2244
|
+
case "LLL":
|
|
2245
|
+
return n.month(e, {
|
|
2246
|
+
width: "abbreviated",
|
|
2247
|
+
context: "standalone"
|
|
2248
|
+
}) || n.month(e, {
|
|
2249
|
+
width: "narrow",
|
|
2250
|
+
context: "standalone"
|
|
2251
|
+
});
|
|
2252
|
+
case "LLLLL":
|
|
2253
|
+
return n.month(e, {
|
|
2254
|
+
width: "narrow",
|
|
2255
|
+
context: "standalone"
|
|
2256
|
+
});
|
|
2257
|
+
case "LLLL":
|
|
2258
|
+
default:
|
|
2259
|
+
return n.month(e, {
|
|
2260
|
+
width: "wide",
|
|
2261
|
+
context: "standalone"
|
|
2262
|
+
}) || n.month(e, {
|
|
2263
|
+
width: "abbreviated",
|
|
2264
|
+
context: "standalone"
|
|
2265
|
+
}) || n.month(e, {
|
|
2266
|
+
width: "narrow",
|
|
2267
|
+
context: "standalone"
|
|
2268
|
+
});
|
|
2269
|
+
}
|
|
2270
|
+
}
|
|
2271
|
+
}, {
|
|
2272
|
+
key: "validate",
|
|
2273
|
+
value: function(e, o) {
|
|
2274
|
+
return o >= 0 && o <= 11;
|
|
2275
|
+
}
|
|
2276
|
+
}, {
|
|
2277
|
+
key: "set",
|
|
2278
|
+
value: function(e, o, n) {
|
|
2279
|
+
return e.setUTCMonth(n, 1), e.setUTCHours(0, 0, 0, 0), e;
|
|
2280
|
+
}
|
|
2281
|
+
}]), t;
|
|
2282
|
+
}(b);
|
|
2283
|
+
function Br(i, a, t) {
|
|
2284
|
+
M(2, arguments);
|
|
2285
|
+
var r = W(i), e = S(a), o = $e(r, t) - e;
|
|
2286
|
+
return r.setUTCDate(r.getUTCDate() - o * 7), r;
|
|
2287
|
+
}
|
|
2288
|
+
var $r = /* @__PURE__ */ function(i) {
|
|
2289
|
+
m(t, i);
|
|
2290
|
+
var a = p(t);
|
|
2291
|
+
function t() {
|
|
2292
|
+
var r;
|
|
2293
|
+
h(this, t);
|
|
2294
|
+
for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
|
|
2295
|
+
o[n] = arguments[n];
|
|
2296
|
+
return r = a.call.apply(a, [this].concat(o)), c(d(r), "priority", 100), c(d(r), "incompatibleTokens", ["y", "R", "u", "q", "Q", "M", "L", "I", "d", "D", "i", "t", "T"]), r;
|
|
2297
|
+
}
|
|
2298
|
+
return v(t, [{
|
|
2299
|
+
key: "parse",
|
|
2300
|
+
value: function(e, o, n) {
|
|
2301
|
+
switch (o) {
|
|
2302
|
+
case "w":
|
|
2303
|
+
return D(O.week, e);
|
|
2304
|
+
case "wo":
|
|
2305
|
+
return n.ordinalNumber(e, {
|
|
2306
|
+
unit: "week"
|
|
2307
|
+
});
|
|
2308
|
+
default:
|
|
2309
|
+
return P(o.length, e);
|
|
2310
|
+
}
|
|
2311
|
+
}
|
|
2312
|
+
}, {
|
|
2313
|
+
key: "validate",
|
|
2314
|
+
value: function(e, o) {
|
|
2315
|
+
return o >= 1 && o <= 53;
|
|
2316
|
+
}
|
|
2317
|
+
}, {
|
|
2318
|
+
key: "set",
|
|
2319
|
+
value: function(e, o, n, s) {
|
|
2320
|
+
return Z(Br(e, n, s), s);
|
|
2321
|
+
}
|
|
2322
|
+
}]), t;
|
|
2323
|
+
}(b);
|
|
2324
|
+
function Rr(i, a) {
|
|
2325
|
+
M(2, arguments);
|
|
2326
|
+
var t = W(i), r = S(a), e = Be(t) - r;
|
|
2327
|
+
return t.setUTCDate(t.getUTCDate() - e * 7), t;
|
|
2328
|
+
}
|
|
2329
|
+
var Qr = /* @__PURE__ */ function(i) {
|
|
2330
|
+
m(t, i);
|
|
2331
|
+
var a = p(t);
|
|
2332
|
+
function t() {
|
|
2333
|
+
var r;
|
|
2334
|
+
h(this, t);
|
|
2335
|
+
for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
|
|
2336
|
+
o[n] = arguments[n];
|
|
2337
|
+
return r = a.call.apply(a, [this].concat(o)), c(d(r), "priority", 100), c(d(r), "incompatibleTokens", ["y", "Y", "u", "q", "Q", "M", "L", "w", "d", "D", "e", "c", "t", "T"]), r;
|
|
2338
|
+
}
|
|
2339
|
+
return v(t, [{
|
|
2340
|
+
key: "parse",
|
|
2341
|
+
value: function(e, o, n) {
|
|
2342
|
+
switch (o) {
|
|
2343
|
+
case "I":
|
|
2344
|
+
return D(O.week, e);
|
|
2345
|
+
case "Io":
|
|
2346
|
+
return n.ordinalNumber(e, {
|
|
2347
|
+
unit: "week"
|
|
2348
|
+
});
|
|
2349
|
+
default:
|
|
2350
|
+
return P(o.length, e);
|
|
2351
|
+
}
|
|
2352
|
+
}
|
|
2353
|
+
}, {
|
|
2354
|
+
key: "validate",
|
|
2355
|
+
value: function(e, o) {
|
|
2356
|
+
return o >= 1 && o <= 53;
|
|
2357
|
+
}
|
|
2358
|
+
}, {
|
|
2359
|
+
key: "set",
|
|
2360
|
+
value: function(e, o, n) {
|
|
2361
|
+
return ee(Rr(e, n));
|
|
2362
|
+
}
|
|
2363
|
+
}]), t;
|
|
2364
|
+
}(b), jr = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Xr = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Gr = /* @__PURE__ */ function(i) {
|
|
2365
|
+
m(t, i);
|
|
2366
|
+
var a = p(t);
|
|
2367
|
+
function t() {
|
|
2368
|
+
var r;
|
|
2369
|
+
h(this, t);
|
|
2370
|
+
for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
|
|
2371
|
+
o[n] = arguments[n];
|
|
2372
|
+
return r = a.call.apply(a, [this].concat(o)), c(d(r), "priority", 90), c(d(r), "subPriority", 1), c(d(r), "incompatibleTokens", ["Y", "R", "q", "Q", "w", "I", "D", "i", "e", "c", "t", "T"]), r;
|
|
2373
|
+
}
|
|
2374
|
+
return v(t, [{
|
|
2375
|
+
key: "parse",
|
|
2376
|
+
value: function(e, o, n) {
|
|
2377
|
+
switch (o) {
|
|
2378
|
+
case "d":
|
|
2379
|
+
return D(O.date, e);
|
|
2380
|
+
case "do":
|
|
2381
|
+
return n.ordinalNumber(e, {
|
|
2382
|
+
unit: "date"
|
|
2383
|
+
});
|
|
2384
|
+
default:
|
|
2385
|
+
return P(o.length, e);
|
|
2386
|
+
}
|
|
2387
|
+
}
|
|
2388
|
+
}, {
|
|
2389
|
+
key: "validate",
|
|
2390
|
+
value: function(e, o) {
|
|
2391
|
+
var n = e.getUTCFullYear(), s = rt(n), u = e.getUTCMonth();
|
|
2392
|
+
return s ? o >= 1 && o <= Xr[u] : o >= 1 && o <= jr[u];
|
|
2393
|
+
}
|
|
2394
|
+
}, {
|
|
2395
|
+
key: "set",
|
|
2396
|
+
value: function(e, o, n) {
|
|
2397
|
+
return e.setUTCDate(n), e.setUTCHours(0, 0, 0, 0), e;
|
|
2398
|
+
}
|
|
2399
|
+
}]), t;
|
|
2400
|
+
}(b), zr = /* @__PURE__ */ function(i) {
|
|
2401
|
+
m(t, i);
|
|
2402
|
+
var a = p(t);
|
|
2403
|
+
function t() {
|
|
2404
|
+
var r;
|
|
2405
|
+
h(this, t);
|
|
2406
|
+
for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
|
|
2407
|
+
o[n] = arguments[n];
|
|
2408
|
+
return r = a.call.apply(a, [this].concat(o)), c(d(r), "priority", 90), c(d(r), "subpriority", 1), c(d(r), "incompatibleTokens", ["Y", "R", "q", "Q", "M", "L", "w", "I", "d", "E", "i", "e", "c", "t", "T"]), r;
|
|
2409
|
+
}
|
|
2410
|
+
return v(t, [{
|
|
2411
|
+
key: "parse",
|
|
2412
|
+
value: function(e, o, n) {
|
|
2413
|
+
switch (o) {
|
|
2414
|
+
case "D":
|
|
2415
|
+
case "DD":
|
|
2416
|
+
return D(O.dayOfYear, e);
|
|
2417
|
+
case "Do":
|
|
2418
|
+
return n.ordinalNumber(e, {
|
|
2419
|
+
unit: "date"
|
|
2420
|
+
});
|
|
2421
|
+
default:
|
|
2422
|
+
return P(o.length, e);
|
|
2423
|
+
}
|
|
2424
|
+
}
|
|
2425
|
+
}, {
|
|
2426
|
+
key: "validate",
|
|
2427
|
+
value: function(e, o) {
|
|
2428
|
+
var n = e.getUTCFullYear(), s = rt(n);
|
|
2429
|
+
return s ? o >= 1 && o <= 366 : o >= 1 && o <= 365;
|
|
2430
|
+
}
|
|
2431
|
+
}, {
|
|
2432
|
+
key: "set",
|
|
2433
|
+
value: function(e, o, n) {
|
|
2434
|
+
return e.setUTCMonth(0, n), e.setUTCHours(0, 0, 0, 0), e;
|
|
2435
|
+
}
|
|
2436
|
+
}]), t;
|
|
2437
|
+
}(b);
|
|
2438
|
+
function Ce(i, a, t) {
|
|
2439
|
+
var r, e, o, n, s, u, f, w;
|
|
2440
|
+
M(2, arguments);
|
|
2441
|
+
var y = te(), k = S((r = (e = (o = (n = t == null ? void 0 : t.weekStartsOn) !== null && n !== void 0 ? n : t == null || (s = t.locale) === null || s === void 0 || (u = s.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && o !== void 0 ? o : y.weekStartsOn) !== null && e !== void 0 ? e : (f = y.locale) === null || f === void 0 || (w = f.options) === null || w === void 0 ? void 0 : w.weekStartsOn) !== null && r !== void 0 ? r : 0);
|
|
2442
|
+
if (!(k >= 0 && k <= 6))
|
|
2443
|
+
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
2444
|
+
var C = W(i), E = S(a), F = C.getUTCDay(), H = E % 7, $ = (H + 7) % 7, L = ($ < k ? 7 : 0) + E - F;
|
|
2445
|
+
return C.setUTCDate(C.getUTCDate() + L), C;
|
|
2446
|
+
}
|
|
2447
|
+
var Vr = /* @__PURE__ */ function(i) {
|
|
2448
|
+
m(t, i);
|
|
2449
|
+
var a = p(t);
|
|
2450
|
+
function t() {
|
|
2451
|
+
var r;
|
|
2452
|
+
h(this, t);
|
|
2453
|
+
for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
|
|
2454
|
+
o[n] = arguments[n];
|
|
2455
|
+
return r = a.call.apply(a, [this].concat(o)), c(d(r), "priority", 90), c(d(r), "incompatibleTokens", ["D", "i", "e", "c", "t", "T"]), r;
|
|
2456
|
+
}
|
|
2457
|
+
return v(t, [{
|
|
2458
|
+
key: "parse",
|
|
2459
|
+
value: function(e, o, n) {
|
|
2460
|
+
switch (o) {
|
|
2461
|
+
case "E":
|
|
2462
|
+
case "EE":
|
|
2463
|
+
case "EEE":
|
|
2464
|
+
return n.day(e, {
|
|
2465
|
+
width: "abbreviated",
|
|
2466
|
+
context: "formatting"
|
|
2467
|
+
}) || n.day(e, {
|
|
2468
|
+
width: "short",
|
|
2469
|
+
context: "formatting"
|
|
2470
|
+
}) || n.day(e, {
|
|
2471
|
+
width: "narrow",
|
|
2472
|
+
context: "formatting"
|
|
2473
|
+
});
|
|
2474
|
+
case "EEEEE":
|
|
2475
|
+
return n.day(e, {
|
|
2476
|
+
width: "narrow",
|
|
2477
|
+
context: "formatting"
|
|
2478
|
+
});
|
|
2479
|
+
case "EEEEEE":
|
|
2480
|
+
return n.day(e, {
|
|
2481
|
+
width: "short",
|
|
2482
|
+
context: "formatting"
|
|
2483
|
+
}) || n.day(e, {
|
|
2484
|
+
width: "narrow",
|
|
2485
|
+
context: "formatting"
|
|
2486
|
+
});
|
|
2487
|
+
case "EEEE":
|
|
2488
|
+
default:
|
|
2489
|
+
return n.day(e, {
|
|
2490
|
+
width: "wide",
|
|
2491
|
+
context: "formatting"
|
|
2492
|
+
}) || n.day(e, {
|
|
2493
|
+
width: "abbreviated",
|
|
2494
|
+
context: "formatting"
|
|
2495
|
+
}) || n.day(e, {
|
|
2496
|
+
width: "short",
|
|
2497
|
+
context: "formatting"
|
|
2498
|
+
}) || n.day(e, {
|
|
2499
|
+
width: "narrow",
|
|
2500
|
+
context: "formatting"
|
|
2501
|
+
});
|
|
2502
|
+
}
|
|
2503
|
+
}
|
|
2504
|
+
}, {
|
|
2505
|
+
key: "validate",
|
|
2506
|
+
value: function(e, o) {
|
|
2507
|
+
return o >= 0 && o <= 6;
|
|
2508
|
+
}
|
|
2509
|
+
}, {
|
|
2510
|
+
key: "set",
|
|
2511
|
+
value: function(e, o, n, s) {
|
|
2512
|
+
return e = Ce(e, n, s), e.setUTCHours(0, 0, 0, 0), e;
|
|
2513
|
+
}
|
|
2514
|
+
}]), t;
|
|
2515
|
+
}(b), Kr = /* @__PURE__ */ function(i) {
|
|
2516
|
+
m(t, i);
|
|
2517
|
+
var a = p(t);
|
|
2518
|
+
function t() {
|
|
2519
|
+
var r;
|
|
2520
|
+
h(this, t);
|
|
2521
|
+
for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
|
|
2522
|
+
o[n] = arguments[n];
|
|
2523
|
+
return r = a.call.apply(a, [this].concat(o)), c(d(r), "priority", 90), c(d(r), "incompatibleTokens", ["y", "R", "u", "q", "Q", "M", "L", "I", "d", "D", "E", "i", "c", "t", "T"]), r;
|
|
2524
|
+
}
|
|
2525
|
+
return v(t, [{
|
|
2526
|
+
key: "parse",
|
|
2527
|
+
value: function(e, o, n, s) {
|
|
2528
|
+
var u = function(w) {
|
|
2529
|
+
var y = Math.floor((w - 1) / 7) * 7;
|
|
2530
|
+
return (w + s.weekStartsOn + 6) % 7 + y;
|
|
2531
|
+
};
|
|
2532
|
+
switch (o) {
|
|
2533
|
+
case "e":
|
|
2534
|
+
case "ee":
|
|
2535
|
+
return U(P(o.length, e), u);
|
|
2536
|
+
case "eo":
|
|
2537
|
+
return U(n.ordinalNumber(e, {
|
|
2538
|
+
unit: "day"
|
|
2539
|
+
}), u);
|
|
2540
|
+
case "eee":
|
|
2541
|
+
return n.day(e, {
|
|
2542
|
+
width: "abbreviated",
|
|
2543
|
+
context: "formatting"
|
|
2544
|
+
}) || n.day(e, {
|
|
2545
|
+
width: "short",
|
|
2546
|
+
context: "formatting"
|
|
2547
|
+
}) || n.day(e, {
|
|
2548
|
+
width: "narrow",
|
|
2549
|
+
context: "formatting"
|
|
2550
|
+
});
|
|
2551
|
+
case "eeeee":
|
|
2552
|
+
return n.day(e, {
|
|
2553
|
+
width: "narrow",
|
|
2554
|
+
context: "formatting"
|
|
2555
|
+
});
|
|
2556
|
+
case "eeeeee":
|
|
2557
|
+
return n.day(e, {
|
|
2558
|
+
width: "short",
|
|
2559
|
+
context: "formatting"
|
|
2560
|
+
}) || n.day(e, {
|
|
2561
|
+
width: "narrow",
|
|
2562
|
+
context: "formatting"
|
|
2563
|
+
});
|
|
2564
|
+
case "eeee":
|
|
2565
|
+
default:
|
|
2566
|
+
return n.day(e, {
|
|
2567
|
+
width: "wide",
|
|
2568
|
+
context: "formatting"
|
|
2569
|
+
}) || n.day(e, {
|
|
2570
|
+
width: "abbreviated",
|
|
2571
|
+
context: "formatting"
|
|
2572
|
+
}) || n.day(e, {
|
|
2573
|
+
width: "short",
|
|
2574
|
+
context: "formatting"
|
|
2575
|
+
}) || n.day(e, {
|
|
2576
|
+
width: "narrow",
|
|
2577
|
+
context: "formatting"
|
|
2578
|
+
});
|
|
2579
|
+
}
|
|
2580
|
+
}
|
|
2581
|
+
}, {
|
|
2582
|
+
key: "validate",
|
|
2583
|
+
value: function(e, o) {
|
|
2584
|
+
return o >= 0 && o <= 6;
|
|
2585
|
+
}
|
|
2586
|
+
}, {
|
|
2587
|
+
key: "set",
|
|
2588
|
+
value: function(e, o, n, s) {
|
|
2589
|
+
return e = Ce(e, n, s), e.setUTCHours(0, 0, 0, 0), e;
|
|
2590
|
+
}
|
|
2591
|
+
}]), t;
|
|
2592
|
+
}(b), Zr = /* @__PURE__ */ function(i) {
|
|
2593
|
+
m(t, i);
|
|
2594
|
+
var a = p(t);
|
|
2595
|
+
function t() {
|
|
2596
|
+
var r;
|
|
2597
|
+
h(this, t);
|
|
2598
|
+
for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
|
|
2599
|
+
o[n] = arguments[n];
|
|
2600
|
+
return r = a.call.apply(a, [this].concat(o)), c(d(r), "priority", 90), c(d(r), "incompatibleTokens", ["y", "R", "u", "q", "Q", "M", "L", "I", "d", "D", "E", "i", "e", "t", "T"]), r;
|
|
2601
|
+
}
|
|
2602
|
+
return v(t, [{
|
|
2603
|
+
key: "parse",
|
|
2604
|
+
value: function(e, o, n, s) {
|
|
2605
|
+
var u = function(w) {
|
|
2606
|
+
var y = Math.floor((w - 1) / 7) * 7;
|
|
2607
|
+
return (w + s.weekStartsOn + 6) % 7 + y;
|
|
2608
|
+
};
|
|
2609
|
+
switch (o) {
|
|
2610
|
+
case "c":
|
|
2611
|
+
case "cc":
|
|
2612
|
+
return U(P(o.length, e), u);
|
|
2613
|
+
case "co":
|
|
2614
|
+
return U(n.ordinalNumber(e, {
|
|
2615
|
+
unit: "day"
|
|
2616
|
+
}), u);
|
|
2617
|
+
case "ccc":
|
|
2618
|
+
return n.day(e, {
|
|
2619
|
+
width: "abbreviated",
|
|
2620
|
+
context: "standalone"
|
|
2621
|
+
}) || n.day(e, {
|
|
2622
|
+
width: "short",
|
|
2623
|
+
context: "standalone"
|
|
2624
|
+
}) || n.day(e, {
|
|
2625
|
+
width: "narrow",
|
|
2626
|
+
context: "standalone"
|
|
2627
|
+
});
|
|
2628
|
+
case "ccccc":
|
|
2629
|
+
return n.day(e, {
|
|
2630
|
+
width: "narrow",
|
|
2631
|
+
context: "standalone"
|
|
2632
|
+
});
|
|
2633
|
+
case "cccccc":
|
|
2634
|
+
return n.day(e, {
|
|
2635
|
+
width: "short",
|
|
2636
|
+
context: "standalone"
|
|
2637
|
+
}) || n.day(e, {
|
|
2638
|
+
width: "narrow",
|
|
2639
|
+
context: "standalone"
|
|
2640
|
+
});
|
|
2641
|
+
case "cccc":
|
|
2642
|
+
default:
|
|
2643
|
+
return n.day(e, {
|
|
2644
|
+
width: "wide",
|
|
2645
|
+
context: "standalone"
|
|
2646
|
+
}) || n.day(e, {
|
|
2647
|
+
width: "abbreviated",
|
|
2648
|
+
context: "standalone"
|
|
2649
|
+
}) || n.day(e, {
|
|
2650
|
+
width: "short",
|
|
2651
|
+
context: "standalone"
|
|
2652
|
+
}) || n.day(e, {
|
|
2653
|
+
width: "narrow",
|
|
2654
|
+
context: "standalone"
|
|
2655
|
+
});
|
|
2656
|
+
}
|
|
2657
|
+
}
|
|
2658
|
+
}, {
|
|
2659
|
+
key: "validate",
|
|
2660
|
+
value: function(e, o) {
|
|
2661
|
+
return o >= 0 && o <= 6;
|
|
2662
|
+
}
|
|
2663
|
+
}, {
|
|
2664
|
+
key: "set",
|
|
2665
|
+
value: function(e, o, n, s) {
|
|
2666
|
+
return e = Ce(e, n, s), e.setUTCHours(0, 0, 0, 0), e;
|
|
2667
|
+
}
|
|
2668
|
+
}]), t;
|
|
2669
|
+
}(b);
|
|
2670
|
+
function Jr(i, a) {
|
|
2671
|
+
M(2, arguments);
|
|
2672
|
+
var t = S(a);
|
|
2673
|
+
t % 7 === 0 && (t = t - 7);
|
|
2674
|
+
var r = 1, e = W(i), o = e.getUTCDay(), n = t % 7, s = (n + 7) % 7, u = (s < r ? 7 : 0) + t - o;
|
|
2675
|
+
return e.setUTCDate(e.getUTCDate() + u), e;
|
|
2676
|
+
}
|
|
2677
|
+
var ea = /* @__PURE__ */ function(i) {
|
|
2678
|
+
m(t, i);
|
|
2679
|
+
var a = p(t);
|
|
2680
|
+
function t() {
|
|
2681
|
+
var r;
|
|
2682
|
+
h(this, t);
|
|
2683
|
+
for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
|
|
2684
|
+
o[n] = arguments[n];
|
|
2685
|
+
return r = a.call.apply(a, [this].concat(o)), c(d(r), "priority", 90), c(d(r), "incompatibleTokens", ["y", "Y", "u", "q", "Q", "M", "L", "w", "d", "D", "E", "e", "c", "t", "T"]), r;
|
|
2686
|
+
}
|
|
2687
|
+
return v(t, [{
|
|
2688
|
+
key: "parse",
|
|
2689
|
+
value: function(e, o, n) {
|
|
2690
|
+
var s = function(f) {
|
|
2691
|
+
return f === 0 ? 7 : f;
|
|
2692
|
+
};
|
|
2693
|
+
switch (o) {
|
|
2694
|
+
case "i":
|
|
2695
|
+
case "ii":
|
|
2696
|
+
return P(o.length, e);
|
|
2697
|
+
case "io":
|
|
2698
|
+
return n.ordinalNumber(e, {
|
|
2699
|
+
unit: "day"
|
|
2700
|
+
});
|
|
2701
|
+
case "iii":
|
|
2702
|
+
return U(n.day(e, {
|
|
2703
|
+
width: "abbreviated",
|
|
2704
|
+
context: "formatting"
|
|
2705
|
+
}) || n.day(e, {
|
|
2706
|
+
width: "short",
|
|
2707
|
+
context: "formatting"
|
|
2708
|
+
}) || n.day(e, {
|
|
2709
|
+
width: "narrow",
|
|
2710
|
+
context: "formatting"
|
|
2711
|
+
}), s);
|
|
2712
|
+
case "iiiii":
|
|
2713
|
+
return U(n.day(e, {
|
|
2714
|
+
width: "narrow",
|
|
2715
|
+
context: "formatting"
|
|
2716
|
+
}), s);
|
|
2717
|
+
case "iiiiii":
|
|
2718
|
+
return U(n.day(e, {
|
|
2719
|
+
width: "short",
|
|
2720
|
+
context: "formatting"
|
|
2721
|
+
}) || n.day(e, {
|
|
2722
|
+
width: "narrow",
|
|
2723
|
+
context: "formatting"
|
|
2724
|
+
}), s);
|
|
2725
|
+
case "iiii":
|
|
2726
|
+
default:
|
|
2727
|
+
return U(n.day(e, {
|
|
2728
|
+
width: "wide",
|
|
2729
|
+
context: "formatting"
|
|
2730
|
+
}) || n.day(e, {
|
|
2731
|
+
width: "abbreviated",
|
|
2732
|
+
context: "formatting"
|
|
2733
|
+
}) || n.day(e, {
|
|
2734
|
+
width: "short",
|
|
2735
|
+
context: "formatting"
|
|
2736
|
+
}) || n.day(e, {
|
|
2737
|
+
width: "narrow",
|
|
2738
|
+
context: "formatting"
|
|
2739
|
+
}), s);
|
|
2740
|
+
}
|
|
2741
|
+
}
|
|
2742
|
+
}, {
|
|
2743
|
+
key: "validate",
|
|
2744
|
+
value: function(e, o) {
|
|
2745
|
+
return o >= 1 && o <= 7;
|
|
2746
|
+
}
|
|
2747
|
+
}, {
|
|
2748
|
+
key: "set",
|
|
2749
|
+
value: function(e, o, n) {
|
|
2750
|
+
return e = Jr(e, n), e.setUTCHours(0, 0, 0, 0), e;
|
|
2751
|
+
}
|
|
2752
|
+
}]), t;
|
|
2753
|
+
}(b), ta = /* @__PURE__ */ function(i) {
|
|
2754
|
+
m(t, i);
|
|
2755
|
+
var a = p(t);
|
|
2756
|
+
function t() {
|
|
2757
|
+
var r;
|
|
2758
|
+
h(this, t);
|
|
2759
|
+
for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
|
|
2760
|
+
o[n] = arguments[n];
|
|
2761
|
+
return r = a.call.apply(a, [this].concat(o)), c(d(r), "priority", 80), c(d(r), "incompatibleTokens", ["b", "B", "H", "k", "t", "T"]), r;
|
|
2762
|
+
}
|
|
2763
|
+
return v(t, [{
|
|
2764
|
+
key: "parse",
|
|
2765
|
+
value: function(e, o, n) {
|
|
2766
|
+
switch (o) {
|
|
2767
|
+
case "a":
|
|
2768
|
+
case "aa":
|
|
2769
|
+
case "aaa":
|
|
2770
|
+
return n.dayPeriod(e, {
|
|
2771
|
+
width: "abbreviated",
|
|
2772
|
+
context: "formatting"
|
|
2773
|
+
}) || n.dayPeriod(e, {
|
|
2774
|
+
width: "narrow",
|
|
2775
|
+
context: "formatting"
|
|
2776
|
+
});
|
|
2777
|
+
case "aaaaa":
|
|
2778
|
+
return n.dayPeriod(e, {
|
|
2779
|
+
width: "narrow",
|
|
2780
|
+
context: "formatting"
|
|
2781
|
+
});
|
|
2782
|
+
case "aaaa":
|
|
2783
|
+
default:
|
|
2784
|
+
return n.dayPeriod(e, {
|
|
2785
|
+
width: "wide",
|
|
2786
|
+
context: "formatting"
|
|
2787
|
+
}) || n.dayPeriod(e, {
|
|
2788
|
+
width: "abbreviated",
|
|
2789
|
+
context: "formatting"
|
|
2790
|
+
}) || n.dayPeriod(e, {
|
|
2791
|
+
width: "narrow",
|
|
2792
|
+
context: "formatting"
|
|
2793
|
+
});
|
|
2794
|
+
}
|
|
2795
|
+
}
|
|
2796
|
+
}, {
|
|
2797
|
+
key: "set",
|
|
2798
|
+
value: function(e, o, n) {
|
|
2799
|
+
return e.setUTCHours(xe(n), 0, 0, 0), e;
|
|
2800
|
+
}
|
|
2801
|
+
}]), t;
|
|
2802
|
+
}(b), ra = /* @__PURE__ */ function(i) {
|
|
2803
|
+
m(t, i);
|
|
2804
|
+
var a = p(t);
|
|
2805
|
+
function t() {
|
|
2806
|
+
var r;
|
|
2807
|
+
h(this, t);
|
|
2808
|
+
for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
|
|
2809
|
+
o[n] = arguments[n];
|
|
2810
|
+
return r = a.call.apply(a, [this].concat(o)), c(d(r), "priority", 80), c(d(r), "incompatibleTokens", ["a", "B", "H", "k", "t", "T"]), r;
|
|
2811
|
+
}
|
|
2812
|
+
return v(t, [{
|
|
2813
|
+
key: "parse",
|
|
2814
|
+
value: function(e, o, n) {
|
|
2815
|
+
switch (o) {
|
|
2816
|
+
case "b":
|
|
2817
|
+
case "bb":
|
|
2818
|
+
case "bbb":
|
|
2819
|
+
return n.dayPeriod(e, {
|
|
2820
|
+
width: "abbreviated",
|
|
2821
|
+
context: "formatting"
|
|
2822
|
+
}) || n.dayPeriod(e, {
|
|
2823
|
+
width: "narrow",
|
|
2824
|
+
context: "formatting"
|
|
2825
|
+
});
|
|
2826
|
+
case "bbbbb":
|
|
2827
|
+
return n.dayPeriod(e, {
|
|
2828
|
+
width: "narrow",
|
|
2829
|
+
context: "formatting"
|
|
2830
|
+
});
|
|
2831
|
+
case "bbbb":
|
|
2832
|
+
default:
|
|
2833
|
+
return n.dayPeriod(e, {
|
|
2834
|
+
width: "wide",
|
|
2835
|
+
context: "formatting"
|
|
2836
|
+
}) || n.dayPeriod(e, {
|
|
2837
|
+
width: "abbreviated",
|
|
2838
|
+
context: "formatting"
|
|
2839
|
+
}) || n.dayPeriod(e, {
|
|
2840
|
+
width: "narrow",
|
|
2841
|
+
context: "formatting"
|
|
2842
|
+
});
|
|
2843
|
+
}
|
|
2844
|
+
}
|
|
2845
|
+
}, {
|
|
2846
|
+
key: "set",
|
|
2847
|
+
value: function(e, o, n) {
|
|
2848
|
+
return e.setUTCHours(xe(n), 0, 0, 0), e;
|
|
2849
|
+
}
|
|
2850
|
+
}]), t;
|
|
2851
|
+
}(b), aa = /* @__PURE__ */ function(i) {
|
|
2852
|
+
m(t, i);
|
|
2853
|
+
var a = p(t);
|
|
2854
|
+
function t() {
|
|
2855
|
+
var r;
|
|
2856
|
+
h(this, t);
|
|
2857
|
+
for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
|
|
2858
|
+
o[n] = arguments[n];
|
|
2859
|
+
return r = a.call.apply(a, [this].concat(o)), c(d(r), "priority", 80), c(d(r), "incompatibleTokens", ["a", "b", "t", "T"]), r;
|
|
2860
|
+
}
|
|
2861
|
+
return v(t, [{
|
|
2862
|
+
key: "parse",
|
|
2863
|
+
value: function(e, o, n) {
|
|
2864
|
+
switch (o) {
|
|
2865
|
+
case "B":
|
|
2866
|
+
case "BB":
|
|
2867
|
+
case "BBB":
|
|
2868
|
+
return n.dayPeriod(e, {
|
|
2869
|
+
width: "abbreviated",
|
|
2870
|
+
context: "formatting"
|
|
2871
|
+
}) || n.dayPeriod(e, {
|
|
2872
|
+
width: "narrow",
|
|
2873
|
+
context: "formatting"
|
|
2874
|
+
});
|
|
2875
|
+
case "BBBBB":
|
|
2876
|
+
return n.dayPeriod(e, {
|
|
2877
|
+
width: "narrow",
|
|
2878
|
+
context: "formatting"
|
|
2879
|
+
});
|
|
2880
|
+
case "BBBB":
|
|
2881
|
+
default:
|
|
2882
|
+
return n.dayPeriod(e, {
|
|
2883
|
+
width: "wide",
|
|
2884
|
+
context: "formatting"
|
|
2885
|
+
}) || n.dayPeriod(e, {
|
|
2886
|
+
width: "abbreviated",
|
|
2887
|
+
context: "formatting"
|
|
2888
|
+
}) || n.dayPeriod(e, {
|
|
2889
|
+
width: "narrow",
|
|
2890
|
+
context: "formatting"
|
|
2891
|
+
});
|
|
2892
|
+
}
|
|
2893
|
+
}
|
|
2894
|
+
}, {
|
|
2895
|
+
key: "set",
|
|
2896
|
+
value: function(e, o, n) {
|
|
2897
|
+
return e.setUTCHours(xe(n), 0, 0, 0), e;
|
|
2898
|
+
}
|
|
2899
|
+
}]), t;
|
|
2900
|
+
}(b), na = /* @__PURE__ */ function(i) {
|
|
2901
|
+
m(t, i);
|
|
2902
|
+
var a = p(t);
|
|
2903
|
+
function t() {
|
|
2904
|
+
var r;
|
|
2905
|
+
h(this, t);
|
|
2906
|
+
for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
|
|
2907
|
+
o[n] = arguments[n];
|
|
2908
|
+
return r = a.call.apply(a, [this].concat(o)), c(d(r), "priority", 70), c(d(r), "incompatibleTokens", ["H", "K", "k", "t", "T"]), r;
|
|
2909
|
+
}
|
|
2910
|
+
return v(t, [{
|
|
2911
|
+
key: "parse",
|
|
2912
|
+
value: function(e, o, n) {
|
|
2913
|
+
switch (o) {
|
|
2914
|
+
case "h":
|
|
2915
|
+
return D(O.hour12h, e);
|
|
2916
|
+
case "ho":
|
|
2917
|
+
return n.ordinalNumber(e, {
|
|
2918
|
+
unit: "hour"
|
|
2919
|
+
});
|
|
2920
|
+
default:
|
|
2921
|
+
return P(o.length, e);
|
|
2922
|
+
}
|
|
2923
|
+
}
|
|
2924
|
+
}, {
|
|
2925
|
+
key: "validate",
|
|
2926
|
+
value: function(e, o) {
|
|
2927
|
+
return o >= 1 && o <= 12;
|
|
2928
|
+
}
|
|
2929
|
+
}, {
|
|
2930
|
+
key: "set",
|
|
2931
|
+
value: function(e, o, n) {
|
|
2932
|
+
var s = e.getUTCHours() >= 12;
|
|
2933
|
+
return s && n < 12 ? e.setUTCHours(n + 12, 0, 0, 0) : !s && n === 12 ? e.setUTCHours(0, 0, 0, 0) : e.setUTCHours(n, 0, 0, 0), e;
|
|
2934
|
+
}
|
|
2935
|
+
}]), t;
|
|
2936
|
+
}(b), ia = /* @__PURE__ */ function(i) {
|
|
2937
|
+
m(t, i);
|
|
2938
|
+
var a = p(t);
|
|
2939
|
+
function t() {
|
|
2940
|
+
var r;
|
|
2941
|
+
h(this, t);
|
|
2942
|
+
for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
|
|
2943
|
+
o[n] = arguments[n];
|
|
2944
|
+
return r = a.call.apply(a, [this].concat(o)), c(d(r), "priority", 70), c(d(r), "incompatibleTokens", ["a", "b", "h", "K", "k", "t", "T"]), r;
|
|
2945
|
+
}
|
|
2946
|
+
return v(t, [{
|
|
2947
|
+
key: "parse",
|
|
2948
|
+
value: function(e, o, n) {
|
|
2949
|
+
switch (o) {
|
|
2950
|
+
case "H":
|
|
2951
|
+
return D(O.hour23h, e);
|
|
2952
|
+
case "Ho":
|
|
2953
|
+
return n.ordinalNumber(e, {
|
|
2954
|
+
unit: "hour"
|
|
2955
|
+
});
|
|
2956
|
+
default:
|
|
2957
|
+
return P(o.length, e);
|
|
2958
|
+
}
|
|
2959
|
+
}
|
|
2960
|
+
}, {
|
|
2961
|
+
key: "validate",
|
|
2962
|
+
value: function(e, o) {
|
|
2963
|
+
return o >= 0 && o <= 23;
|
|
2964
|
+
}
|
|
2965
|
+
}, {
|
|
2966
|
+
key: "set",
|
|
2967
|
+
value: function(e, o, n) {
|
|
2968
|
+
return e.setUTCHours(n, 0, 0, 0), e;
|
|
2969
|
+
}
|
|
2970
|
+
}]), t;
|
|
2971
|
+
}(b), oa = /* @__PURE__ */ function(i) {
|
|
2972
|
+
m(t, i);
|
|
2973
|
+
var a = p(t);
|
|
2974
|
+
function t() {
|
|
2975
|
+
var r;
|
|
2976
|
+
h(this, t);
|
|
2977
|
+
for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
|
|
2978
|
+
o[n] = arguments[n];
|
|
2979
|
+
return r = a.call.apply(a, [this].concat(o)), c(d(r), "priority", 70), c(d(r), "incompatibleTokens", ["h", "H", "k", "t", "T"]), r;
|
|
2980
|
+
}
|
|
2981
|
+
return v(t, [{
|
|
2982
|
+
key: "parse",
|
|
2983
|
+
value: function(e, o, n) {
|
|
2984
|
+
switch (o) {
|
|
2985
|
+
case "K":
|
|
2986
|
+
return D(O.hour11h, e);
|
|
2987
|
+
case "Ko":
|
|
2988
|
+
return n.ordinalNumber(e, {
|
|
2989
|
+
unit: "hour"
|
|
2990
|
+
});
|
|
2991
|
+
default:
|
|
2992
|
+
return P(o.length, e);
|
|
2993
|
+
}
|
|
2994
|
+
}
|
|
2995
|
+
}, {
|
|
2996
|
+
key: "validate",
|
|
2997
|
+
value: function(e, o) {
|
|
2998
|
+
return o >= 0 && o <= 11;
|
|
2999
|
+
}
|
|
3000
|
+
}, {
|
|
3001
|
+
key: "set",
|
|
3002
|
+
value: function(e, o, n) {
|
|
3003
|
+
var s = e.getUTCHours() >= 12;
|
|
3004
|
+
return s && n < 12 ? e.setUTCHours(n + 12, 0, 0, 0) : e.setUTCHours(n, 0, 0, 0), e;
|
|
3005
|
+
}
|
|
3006
|
+
}]), t;
|
|
3007
|
+
}(b), sa = /* @__PURE__ */ function(i) {
|
|
3008
|
+
m(t, i);
|
|
3009
|
+
var a = p(t);
|
|
3010
|
+
function t() {
|
|
3011
|
+
var r;
|
|
3012
|
+
h(this, t);
|
|
3013
|
+
for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
|
|
3014
|
+
o[n] = arguments[n];
|
|
3015
|
+
return r = a.call.apply(a, [this].concat(o)), c(d(r), "priority", 70), c(d(r), "incompatibleTokens", ["a", "b", "h", "H", "K", "t", "T"]), r;
|
|
3016
|
+
}
|
|
3017
|
+
return v(t, [{
|
|
3018
|
+
key: "parse",
|
|
3019
|
+
value: function(e, o, n) {
|
|
3020
|
+
switch (o) {
|
|
3021
|
+
case "k":
|
|
3022
|
+
return D(O.hour24h, e);
|
|
3023
|
+
case "ko":
|
|
3024
|
+
return n.ordinalNumber(e, {
|
|
3025
|
+
unit: "hour"
|
|
3026
|
+
});
|
|
3027
|
+
default:
|
|
3028
|
+
return P(o.length, e);
|
|
3029
|
+
}
|
|
3030
|
+
}
|
|
3031
|
+
}, {
|
|
3032
|
+
key: "validate",
|
|
3033
|
+
value: function(e, o) {
|
|
3034
|
+
return o >= 1 && o <= 24;
|
|
3035
|
+
}
|
|
3036
|
+
}, {
|
|
3037
|
+
key: "set",
|
|
3038
|
+
value: function(e, o, n) {
|
|
3039
|
+
var s = n <= 24 ? n % 24 : n;
|
|
3040
|
+
return e.setUTCHours(s, 0, 0, 0), e;
|
|
3041
|
+
}
|
|
3042
|
+
}]), t;
|
|
3043
|
+
}(b), ua = /* @__PURE__ */ function(i) {
|
|
3044
|
+
m(t, i);
|
|
3045
|
+
var a = p(t);
|
|
3046
|
+
function t() {
|
|
3047
|
+
var r;
|
|
3048
|
+
h(this, t);
|
|
3049
|
+
for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
|
|
3050
|
+
o[n] = arguments[n];
|
|
3051
|
+
return r = a.call.apply(a, [this].concat(o)), c(d(r), "priority", 60), c(d(r), "incompatibleTokens", ["t", "T"]), r;
|
|
3052
|
+
}
|
|
3053
|
+
return v(t, [{
|
|
3054
|
+
key: "parse",
|
|
3055
|
+
value: function(e, o, n) {
|
|
3056
|
+
switch (o) {
|
|
3057
|
+
case "m":
|
|
3058
|
+
return D(O.minute, e);
|
|
3059
|
+
case "mo":
|
|
3060
|
+
return n.ordinalNumber(e, {
|
|
3061
|
+
unit: "minute"
|
|
3062
|
+
});
|
|
3063
|
+
default:
|
|
3064
|
+
return P(o.length, e);
|
|
3065
|
+
}
|
|
3066
|
+
}
|
|
3067
|
+
}, {
|
|
3068
|
+
key: "validate",
|
|
3069
|
+
value: function(e, o) {
|
|
3070
|
+
return o >= 0 && o <= 59;
|
|
3071
|
+
}
|
|
3072
|
+
}, {
|
|
3073
|
+
key: "set",
|
|
3074
|
+
value: function(e, o, n) {
|
|
3075
|
+
return e.setUTCMinutes(n, 0, 0), e;
|
|
3076
|
+
}
|
|
3077
|
+
}]), t;
|
|
3078
|
+
}(b), la = /* @__PURE__ */ function(i) {
|
|
3079
|
+
m(t, i);
|
|
3080
|
+
var a = p(t);
|
|
3081
|
+
function t() {
|
|
3082
|
+
var r;
|
|
3083
|
+
h(this, t);
|
|
3084
|
+
for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
|
|
3085
|
+
o[n] = arguments[n];
|
|
3086
|
+
return r = a.call.apply(a, [this].concat(o)), c(d(r), "priority", 50), c(d(r), "incompatibleTokens", ["t", "T"]), r;
|
|
3087
|
+
}
|
|
3088
|
+
return v(t, [{
|
|
3089
|
+
key: "parse",
|
|
3090
|
+
value: function(e, o, n) {
|
|
3091
|
+
switch (o) {
|
|
3092
|
+
case "s":
|
|
3093
|
+
return D(O.second, e);
|
|
3094
|
+
case "so":
|
|
3095
|
+
return n.ordinalNumber(e, {
|
|
3096
|
+
unit: "second"
|
|
3097
|
+
});
|
|
3098
|
+
default:
|
|
3099
|
+
return P(o.length, e);
|
|
3100
|
+
}
|
|
3101
|
+
}
|
|
3102
|
+
}, {
|
|
3103
|
+
key: "validate",
|
|
3104
|
+
value: function(e, o) {
|
|
3105
|
+
return o >= 0 && o <= 59;
|
|
3106
|
+
}
|
|
3107
|
+
}, {
|
|
3108
|
+
key: "set",
|
|
3109
|
+
value: function(e, o, n) {
|
|
3110
|
+
return e.setUTCSeconds(n, 0), e;
|
|
3111
|
+
}
|
|
3112
|
+
}]), t;
|
|
3113
|
+
}(b), ca = /* @__PURE__ */ function(i) {
|
|
3114
|
+
m(t, i);
|
|
3115
|
+
var a = p(t);
|
|
3116
|
+
function t() {
|
|
3117
|
+
var r;
|
|
3118
|
+
h(this, t);
|
|
3119
|
+
for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
|
|
3120
|
+
o[n] = arguments[n];
|
|
3121
|
+
return r = a.call.apply(a, [this].concat(o)), c(d(r), "priority", 30), c(d(r), "incompatibleTokens", ["t", "T"]), r;
|
|
3122
|
+
}
|
|
3123
|
+
return v(t, [{
|
|
3124
|
+
key: "parse",
|
|
3125
|
+
value: function(e, o) {
|
|
3126
|
+
var n = function(u) {
|
|
3127
|
+
return Math.floor(u * Math.pow(10, -o.length + 3));
|
|
3128
|
+
};
|
|
3129
|
+
return U(P(o.length, e), n);
|
|
3130
|
+
}
|
|
3131
|
+
}, {
|
|
3132
|
+
key: "set",
|
|
3133
|
+
value: function(e, o, n) {
|
|
3134
|
+
return e.setUTCMilliseconds(n), e;
|
|
3135
|
+
}
|
|
3136
|
+
}]), t;
|
|
3137
|
+
}(b), da = /* @__PURE__ */ function(i) {
|
|
3138
|
+
m(t, i);
|
|
3139
|
+
var a = p(t);
|
|
3140
|
+
function t() {
|
|
3141
|
+
var r;
|
|
3142
|
+
h(this, t);
|
|
3143
|
+
for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
|
|
3144
|
+
o[n] = arguments[n];
|
|
3145
|
+
return r = a.call.apply(a, [this].concat(o)), c(d(r), "priority", 10), c(d(r), "incompatibleTokens", ["t", "T", "x"]), r;
|
|
3146
|
+
}
|
|
3147
|
+
return v(t, [{
|
|
3148
|
+
key: "parse",
|
|
3149
|
+
value: function(e, o) {
|
|
3150
|
+
switch (o) {
|
|
3151
|
+
case "X":
|
|
3152
|
+
return B(q.basicOptionalMinutes, e);
|
|
3153
|
+
case "XX":
|
|
3154
|
+
return B(q.basic, e);
|
|
3155
|
+
case "XXXX":
|
|
3156
|
+
return B(q.basicOptionalSeconds, e);
|
|
3157
|
+
case "XXXXX":
|
|
3158
|
+
return B(q.extendedOptionalSeconds, e);
|
|
3159
|
+
case "XXX":
|
|
3160
|
+
default:
|
|
3161
|
+
return B(q.extended, e);
|
|
3162
|
+
}
|
|
3163
|
+
}
|
|
3164
|
+
}, {
|
|
3165
|
+
key: "set",
|
|
3166
|
+
value: function(e, o, n) {
|
|
3167
|
+
return o.timestampIsSet ? e : new Date(e.getTime() - n);
|
|
3168
|
+
}
|
|
3169
|
+
}]), t;
|
|
3170
|
+
}(b), fa = /* @__PURE__ */ function(i) {
|
|
3171
|
+
m(t, i);
|
|
3172
|
+
var a = p(t);
|
|
3173
|
+
function t() {
|
|
3174
|
+
var r;
|
|
3175
|
+
h(this, t);
|
|
3176
|
+
for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
|
|
3177
|
+
o[n] = arguments[n];
|
|
3178
|
+
return r = a.call.apply(a, [this].concat(o)), c(d(r), "priority", 10), c(d(r), "incompatibleTokens", ["t", "T", "X"]), r;
|
|
3179
|
+
}
|
|
3180
|
+
return v(t, [{
|
|
3181
|
+
key: "parse",
|
|
3182
|
+
value: function(e, o) {
|
|
3183
|
+
switch (o) {
|
|
3184
|
+
case "x":
|
|
3185
|
+
return B(q.basicOptionalMinutes, e);
|
|
3186
|
+
case "xx":
|
|
3187
|
+
return B(q.basic, e);
|
|
3188
|
+
case "xxxx":
|
|
3189
|
+
return B(q.basicOptionalSeconds, e);
|
|
3190
|
+
case "xxxxx":
|
|
3191
|
+
return B(q.extendedOptionalSeconds, e);
|
|
3192
|
+
case "xxx":
|
|
3193
|
+
default:
|
|
3194
|
+
return B(q.extended, e);
|
|
3195
|
+
}
|
|
3196
|
+
}
|
|
3197
|
+
}, {
|
|
3198
|
+
key: "set",
|
|
3199
|
+
value: function(e, o, n) {
|
|
3200
|
+
return o.timestampIsSet ? e : new Date(e.getTime() - n);
|
|
3201
|
+
}
|
|
3202
|
+
}]), t;
|
|
3203
|
+
}(b), ha = /* @__PURE__ */ function(i) {
|
|
3204
|
+
m(t, i);
|
|
3205
|
+
var a = p(t);
|
|
3206
|
+
function t() {
|
|
3207
|
+
var r;
|
|
3208
|
+
h(this, t);
|
|
3209
|
+
for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
|
|
3210
|
+
o[n] = arguments[n];
|
|
3211
|
+
return r = a.call.apply(a, [this].concat(o)), c(d(r), "priority", 40), c(d(r), "incompatibleTokens", "*"), r;
|
|
3212
|
+
}
|
|
3213
|
+
return v(t, [{
|
|
3214
|
+
key: "parse",
|
|
3215
|
+
value: function(e) {
|
|
3216
|
+
return et(e);
|
|
3217
|
+
}
|
|
3218
|
+
}, {
|
|
3219
|
+
key: "set",
|
|
3220
|
+
value: function(e, o, n) {
|
|
3221
|
+
return [new Date(n * 1e3), {
|
|
3222
|
+
timestampIsSet: !0
|
|
3223
|
+
}];
|
|
3224
|
+
}
|
|
3225
|
+
}]), t;
|
|
3226
|
+
}(b), va = /* @__PURE__ */ function(i) {
|
|
3227
|
+
m(t, i);
|
|
3228
|
+
var a = p(t);
|
|
3229
|
+
function t() {
|
|
3230
|
+
var r;
|
|
3231
|
+
h(this, t);
|
|
3232
|
+
for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
|
|
3233
|
+
o[n] = arguments[n];
|
|
3234
|
+
return r = a.call.apply(a, [this].concat(o)), c(d(r), "priority", 20), c(d(r), "incompatibleTokens", "*"), r;
|
|
3235
|
+
}
|
|
3236
|
+
return v(t, [{
|
|
3237
|
+
key: "parse",
|
|
3238
|
+
value: function(e) {
|
|
3239
|
+
return et(e);
|
|
3240
|
+
}
|
|
3241
|
+
}, {
|
|
3242
|
+
key: "set",
|
|
3243
|
+
value: function(e, o, n) {
|
|
3244
|
+
return [new Date(n), {
|
|
3245
|
+
timestampIsSet: !0
|
|
3246
|
+
}];
|
|
3247
|
+
}
|
|
3248
|
+
}]), t;
|
|
3249
|
+
}(b), ma = {
|
|
3250
|
+
G: new Er(),
|
|
3251
|
+
y: new Lr(),
|
|
3252
|
+
Y: new Sr(),
|
|
3253
|
+
R: new Hr(),
|
|
3254
|
+
u: new Nr(),
|
|
3255
|
+
Q: new Ar(),
|
|
3256
|
+
q: new Fr(),
|
|
3257
|
+
M: new Ir(),
|
|
3258
|
+
L: new qr(),
|
|
3259
|
+
w: new $r(),
|
|
3260
|
+
I: new Qr(),
|
|
3261
|
+
d: new Gr(),
|
|
3262
|
+
D: new zr(),
|
|
3263
|
+
E: new Vr(),
|
|
3264
|
+
e: new Kr(),
|
|
3265
|
+
c: new Zr(),
|
|
3266
|
+
i: new ea(),
|
|
3267
|
+
a: new ta(),
|
|
3268
|
+
b: new ra(),
|
|
3269
|
+
B: new aa(),
|
|
3270
|
+
h: new na(),
|
|
3271
|
+
H: new ia(),
|
|
3272
|
+
K: new oa(),
|
|
3273
|
+
k: new sa(),
|
|
3274
|
+
m: new ua(),
|
|
3275
|
+
s: new la(),
|
|
3276
|
+
S: new ca(),
|
|
3277
|
+
X: new da(),
|
|
3278
|
+
x: new fa(),
|
|
3279
|
+
t: new ha(),
|
|
3280
|
+
T: new va()
|
|
3281
|
+
}, pa = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ga = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, wa = /^'([^]*?)'?$/, ya = /''/g, ba = /\S/, Ta = /[a-zA-Z]/;
|
|
3282
|
+
function at(i, a, t, r) {
|
|
3283
|
+
var e, o, n, s, u, f, w, y, k, C, E, F, H, $;
|
|
3284
|
+
M(3, arguments);
|
|
3285
|
+
var L = String(i), I = String(a), R = te(), j = (e = (o = void 0) !== null && o !== void 0 ? o : R.locale) !== null && e !== void 0 ? e : Ge;
|
|
3286
|
+
if (!j.match)
|
|
3287
|
+
throw new RangeError("locale must contain match property");
|
|
3288
|
+
var X = S((n = (s = (u = (f = void 0) !== null && f !== void 0 ? f : void 0) !== null && u !== void 0 ? u : R.firstWeekContainsDate) !== null && s !== void 0 ? s : (w = R.locale) === null || w === void 0 || (y = w.options) === null || y === void 0 ? void 0 : y.firstWeekContainsDate) !== null && n !== void 0 ? n : 1);
|
|
3289
|
+
if (!(X >= 1 && X <= 7))
|
|
3290
|
+
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
3291
|
+
var re = S((k = (C = (E = (F = void 0) !== null && F !== void 0 ? F : void 0) !== null && E !== void 0 ? E : R.weekStartsOn) !== null && C !== void 0 ? C : (H = R.locale) === null || H === void 0 || ($ = H.options) === null || $ === void 0 ? void 0 : $.weekStartsOn) !== null && k !== void 0 ? k : 0);
|
|
3292
|
+
if (!(re >= 0 && re <= 6))
|
|
3293
|
+
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
3294
|
+
if (I === "")
|
|
3295
|
+
return L === "" ? W(t) : /* @__PURE__ */ new Date(NaN);
|
|
3296
|
+
var ae = {
|
|
3297
|
+
firstWeekContainsDate: X,
|
|
3298
|
+
weekStartsOn: re,
|
|
3299
|
+
locale: j
|
|
3300
|
+
}, ne = [new Ur()], me = I.match(ga).map(function(Y) {
|
|
3301
|
+
var x = Y[0];
|
|
3302
|
+
if (x in ye) {
|
|
3303
|
+
var A = ye[x];
|
|
3304
|
+
return A(Y, j.formatLong);
|
|
3305
|
+
}
|
|
3306
|
+
return Y;
|
|
3307
|
+
}).join("").match(pa), _ = [], N = Ae(me), z;
|
|
3308
|
+
try {
|
|
3309
|
+
var nt = function() {
|
|
3310
|
+
var x = z.value;
|
|
3311
|
+
!(r != null && r.useAdditionalWeekYearTokens) && Xe(x) && fe(x, I, i), !(r != null && r.useAdditionalDayOfYearTokens) && je(x) && fe(x, I, i);
|
|
3312
|
+
var A = x[0], ce = ma[A];
|
|
3313
|
+
if (ce) {
|
|
3314
|
+
var Oe = ce.incompatibleTokens;
|
|
3315
|
+
if (Array.isArray(Oe)) {
|
|
3316
|
+
var Ue = _.find(function(Ee) {
|
|
3317
|
+
return Oe.includes(Ee.token) || Ee.token === A;
|
|
3318
|
+
});
|
|
3319
|
+
if (Ue)
|
|
3320
|
+
throw new RangeError("The format string mustn't contain `".concat(Ue.fullToken, "` and `").concat(x, "` at the same time"));
|
|
3321
|
+
} else if (ce.incompatibleTokens === "*" && _.length > 0)
|
|
3322
|
+
throw new RangeError("The format string mustn't contain `".concat(x, "` and any other token at the same time"));
|
|
3323
|
+
_.push({
|
|
3324
|
+
token: A,
|
|
3325
|
+
fullToken: x
|
|
3326
|
+
});
|
|
3327
|
+
var ge = ce.run(L, x, j.match, ae);
|
|
3328
|
+
if (!ge)
|
|
3329
|
+
return {
|
|
3330
|
+
v: /* @__PURE__ */ new Date(NaN)
|
|
3331
|
+
};
|
|
3332
|
+
ne.push(ge.setter), L = ge.rest;
|
|
3333
|
+
} else {
|
|
3334
|
+
if (A.match(Ta))
|
|
3335
|
+
throw new RangeError("Format string contains an unescaped latin alphabet character `" + A + "`");
|
|
3336
|
+
if (x === "''" ? x = "'" : A === "'" && (x = xa(x)), L.indexOf(x) === 0)
|
|
3337
|
+
L = L.slice(x.length);
|
|
3338
|
+
else
|
|
3339
|
+
return {
|
|
3340
|
+
v: /* @__PURE__ */ new Date(NaN)
|
|
3341
|
+
};
|
|
3342
|
+
}
|
|
3343
|
+
};
|
|
3344
|
+
for (N.s(); !(z = N.n()).done; ) {
|
|
3345
|
+
var De = nt();
|
|
3346
|
+
if (Q(De) === "object")
|
|
3347
|
+
return De.v;
|
|
3348
|
+
}
|
|
3349
|
+
} catch (Y) {
|
|
3350
|
+
N.e(Y);
|
|
3351
|
+
} finally {
|
|
3352
|
+
N.f();
|
|
3353
|
+
}
|
|
3354
|
+
if (L.length > 0 && ba.test(L))
|
|
3355
|
+
return /* @__PURE__ */ new Date(NaN);
|
|
3356
|
+
var it = ne.map(function(Y) {
|
|
3357
|
+
return Y.priority;
|
|
3358
|
+
}).sort(function(Y, x) {
|
|
3359
|
+
return x - Y;
|
|
3360
|
+
}).filter(function(Y, x, A) {
|
|
3361
|
+
return A.indexOf(Y) === x;
|
|
3362
|
+
}).map(function(Y) {
|
|
3363
|
+
return ne.filter(function(x) {
|
|
3364
|
+
return x.priority === Y;
|
|
3365
|
+
}).sort(function(x, A) {
|
|
3366
|
+
return A.subPriority - x.subPriority;
|
|
3367
|
+
});
|
|
3368
|
+
}).map(function(Y) {
|
|
3369
|
+
return Y[0];
|
|
3370
|
+
}), pe = W(t);
|
|
3371
|
+
if (isNaN(pe.getTime()))
|
|
3372
|
+
return /* @__PURE__ */ new Date(NaN);
|
|
3373
|
+
var ie = Ie(pe, Qe(pe)), ke = {}, ue = Ae(it), Pe;
|
|
3374
|
+
try {
|
|
3375
|
+
for (ue.s(); !(Pe = ue.n()).done; ) {
|
|
3376
|
+
var Me = Pe.value;
|
|
3377
|
+
if (!Me.validate(ie, ae))
|
|
3378
|
+
return /* @__PURE__ */ new Date(NaN);
|
|
3379
|
+
var le = Me.set(ie, ke, ae);
|
|
3380
|
+
Array.isArray(le) ? (ie = le[0], Cr(ke, le[1])) : ie = le;
|
|
3381
|
+
}
|
|
3382
|
+
} catch (Y) {
|
|
3383
|
+
ue.e(Y);
|
|
3384
|
+
} finally {
|
|
3385
|
+
ue.f();
|
|
3386
|
+
}
|
|
3387
|
+
return ie;
|
|
3388
|
+
}
|
|
3389
|
+
function xa(i) {
|
|
3390
|
+
return i.match(wa)[1].replace(ya, "'");
|
|
3391
|
+
}
|
|
3392
|
+
function Ca(i, a) {
|
|
3393
|
+
M(2, arguments);
|
|
3394
|
+
var t = W(i), r = S(a);
|
|
3395
|
+
if (isNaN(r))
|
|
3396
|
+
return /* @__PURE__ */ new Date(NaN);
|
|
3397
|
+
if (!r)
|
|
3398
|
+
return t;
|
|
3399
|
+
var e = t.getDate(), o = new Date(t.getTime());
|
|
3400
|
+
o.setMonth(t.getMonth() + r + 1, 0);
|
|
3401
|
+
var n = o.getDate();
|
|
3402
|
+
return e >= n ? o : (t.setFullYear(o.getFullYear(), o.getMonth(), e), t);
|
|
3403
|
+
}
|
|
3404
|
+
function Da(i, a) {
|
|
3405
|
+
M(2, arguments);
|
|
3406
|
+
var t = S(a);
|
|
3407
|
+
return Ca(i, -t);
|
|
3408
|
+
}
|
|
3409
|
+
const ka = ':host{--activeButtonBackground:#7ec51e;--activeButtonFont:#002149;--hoverBackground:#ffffff;--background:#e4e6e8;--success:#7ac345;--heightScrollableContainer:400px;--borderColor:#d3d3d3;--borderColorButton:#c4c4c4;--textColor:#002554;--textColorHover:#7ac345;--errorColor:#c23b21;--loaderColor:#7ac345;--headerTableBackground:#cdcdcd;--borderTable:#dedede;--shadowBorderTable:#f1f1f1;--backgroundTable:#ffffff;font-family:Roboto, Arial, sans-serif;font-size:14px;color:var(--textColor);display:block;background-color:var(--background)}:host .wrapper{height:100%;padding:1rem}:host .types{display:flex;width:100%;gap:5px}:host .transaction-type{background:inherit;font-weight:600;padding:0.6rem 1.6rem;border:1px solid #6c757d;cursor:pointer}:host .transaction-type:hover{color:var(--activeButtonBackground);border-color:var(--activeButtonBackground);background:var(--hoverBackground)}:host .clicked{background-color:var(--activeButtonBackground);border-color:var(--activeButtonBackground)}:host .types-mobile{justify-content:center;margin-bottom:15px}:host .types-desktop{justify-content:flex-end;margin-bottom:3rem}:host .page-size{display:flex;width:100%;justify-content:flex-end;align-items:center}:host .page-size button{background:transparent;border:none;cursor:pointer;margin:0.4rem;width:2rem;height:2rem}:host .page-size button:hover{color:var(--textColorHover)}:host .page-size button.active{background:var(--activeButtonBackground);color:var(--textColor);font-weight:600;border-radius:0.4rem}:host .period{display:flex;width:100%;align-items:flex-end;justify-content:center;gap:10px;background:#f0f0f0;border-bottom:2px solid #e9e9e9;padding:1.6rem 0 0;margin-bottom:4rem}@media (max-width: 801px){:host .period{margin-bottom:0;flex-direction:column;align-items:stretch;width:auto;padding:1.4rem 2.8rem;box-shadow:0 4px 5px 0 rgba(90, 90, 90, 0.24)}}:host .period .range{color:var(--errorColor)}:host .period .filter-btn{height:40px;background:transparent;border:0.1rem solid var(--borderColorButton);min-width:12rem;max-width:17rem;cursor:pointer}@media (max-width: 801px){:host .period .filter-btn{max-width:none;min-width:none;margin-top:1rem}}:host .period .filter-btn:hover{border:none;background:var(--hoverBackground)}:host .period .duet-date__input{padding:7px 60px 7px 7px}:host .period+button{padding:9px 15px}:host .period-content{display:flex;flex-direction:row;width:100%;justify-content:center;align-items:flex-end;margin:0 auto 1.6rem}@media (max-width: 801px){:host .period-content{flex-direction:column;align-items:stretch}}:host .period-content span{height:40px;display:flex;align-items:center;justify-content:center}@media (max-width: 801px){:host .period-content span{display:none}}:host .period-content .filter-btn{margin-left:60px}@media (max-width: 801px){:host .period-content .filter-btn{margin-left:0}}:host .period-content .date-input{padding:0 4px}@media (max-width: 801px){:host .period-content .date-input{width:auto}:host .period-content .date-input:first-child{margin-bottom:0.5rem}}:host .period-content .date-input label{display:inline-block;margin-bottom:0.9rem}:host .period-content .date-input input{border:0.1rem solid var(--borderColor);box-sizing:border-box;border-radius:0.2rem}:host .pagination{display:flex;width:100%;justify-content:center;margin-top:1.5rem}:host .pagination button{cursor:pointer;border:none;background-color:var(--activeButtonBackground);color:#fff;opacity:0.5;padding:7px 12px}:host .pagination button:hover{opacity:1}:host .pagination button:focus{opacity:1}:host button.active{color:var(--activeButtonFont);background-color:var(--activeButtonBackground)}.mobile-filter-button{display:flex;justify-content:center;align-items:center;width:100%;height:2.8rem;background:inherit;border:1px solid var(--borderColorButton)}.mobile-filter-button img{height:50%;margin-right:0.5rem}.noData{display:flex;align-items:center;box-shadow:0 0.4rem 0.4rem rgba(0, 0, 0, 0.25);padding:1.1rem;border-radius:0.6rem}.noData span{margin-left:0.5rem}.table{height:var(--heightScrollableContainer);overflow-y:auto}.table .mobile-table{height:100%}.data-transaction{border-bottom:1px solid var(--borderColor);background-color:var(--hoverBackground);padding:0 20px;display:grid;grid-template-columns:repeat(2, 1fr)}.data-transaction .text-style-status{font-weight:600}.data-transaction .text-style-status .success{color:var(--success)}.data-transaction .text-style-status .error{color:var(--errorColor)}.data-transaction .text-style{text-align:end}.data-transaction .date{font-size:12px;display:flex;align-items:center}.loader{display:inline-block;position:absolute;width:80px;height:80px;top:calc(50% - 40px);left:calc(50% - 40px);z-index:100}.loader::before{content:"";position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(255, 255, 255, 0.6)}.loader div{position:absolute;width:6px;height:6px;background:var(--loaderColor);border-radius:50%;animation:loader 1.2s linear infinite}.loader div:nth-child(1){animation-delay:0s;top:37px;left:66px}.loader div:nth-child(2){animation-delay:-0.1s;top:22px;left:62px}.loader div:nth-child(3){animation-delay:-0.2s;top:11px;left:52px}.loader div:nth-child(4){animation-delay:-0.3s;top:7px;left:37px}.loader div:nth-child(5){animation-delay:-0.4s;top:11px;left:22px}.loader div:nth-child(6){animation-delay:-0.5s;top:22px;left:11px}.loader div:nth-child(7){animation-delay:-0.6s;top:37px;left:7px}.loader div:nth-child(8){animation-delay:-0.7s;top:52px;left:11px}.loader div:nth-child(9){animation-delay:-0.8s;top:62px;left:22px}.loader div:nth-child(10){animation-delay:-0.9s;top:66px;left:37px}.loader div:nth-child(11){animation-delay:-1s;top:62px;left:52px}.loader div:nth-child(12){animation-delay:-1.1s;top:52px;left:62px}@keyframes loader{0%,20%,80%,100%{transform:scale(1)}50%{transform:scale(1.5)}}.table thead th{position:sticky;top:0}table{border-collapse:collapse;width:100%}table th{padding:14px 24px;text-align:left;font-weight:600;color:var(--textColor);background:var(--headerTableBackground)}table td{padding:1rem 1.7rem;box-shadow:0 -1px 0 0 var(--shadowBorderTable) inset;border-bottom:0.1rem solid var(--borderTable);text-align:left;color:var(--textColor)}table tbody{background:var(--backgroundTable)}table .success{color:var(--success)}table .error{color:var(--errorColor)}vaadin-date-picker{min-width:320px}@media (max-width: 1261px){vaadin-date-picker{width:auto;min-width:auto}}@media (max-width: 801px){vaadin-date-picker{width:100%}}.MenuReturnButton{font:inherit;color:var(--emw--color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.MenuReturnButton h2.TransactionTitleMobile{font-size:16px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}', Pa = ka, Ma = class {
|
|
3410
|
+
constructor(i) {
|
|
3411
|
+
Fe(this, i), this.pageSizes = [10, 25, 50], this.pagination = null, this.toggleScreen = () => {
|
|
3412
|
+
window.postMessage({ type: "PlayerAccountMenuActive", isMobile: this.mobile }, window.location.href);
|
|
3413
|
+
}, this.endpoint = void 0, this.session = void 0, this.language = g.defaultLanguage, this.userId = void 0, this.translationUrl = void 0, this.mobile = !1, this.clientStyling = null, this.clientStylingUrl = null, this.mbSource = void 0, this.dateFormat = "", this.page = 0, this.pageSize = this.pageSizes[0], this.showMobileFilter = !1, this.to = void 0, this.from = void 0, this.type = "0", this.transactions = void 0, this.showLoader = !0;
|
|
3414
|
+
}
|
|
3415
|
+
watchMultiple() {
|
|
3416
|
+
this.loadTransactions();
|
|
3417
|
+
}
|
|
3418
|
+
handleClientStylingChange(i, a) {
|
|
3419
|
+
i != a && Se(this.stylingContainer, this.clientStyling);
|
|
3420
|
+
}
|
|
3421
|
+
handleClientStylingUrlChange(i, a) {
|
|
3422
|
+
i != a && this.clientStylingUrl && He(this.stylingContainer, this.clientStylingUrl);
|
|
3423
|
+
}
|
|
3424
|
+
componentWillLoad() {
|
|
3425
|
+
return de(this, null, function* () {
|
|
3426
|
+
this.translationUrl && (yield g.loadCustomTranslations(this.translationUrl)), this.to = K(/* @__PURE__ */ new Date(), `${this.dateFormat || "yyyy-MM-dd"}`), this.from = K(Da(/* @__PURE__ */ new Date(), 1), `${this.dateFormat || "yyyy-MM-dd"}`), this.loadTransactions();
|
|
3427
|
+
});
|
|
3428
|
+
}
|
|
3429
|
+
componentDidLoad() {
|
|
3430
|
+
this.stylingContainer && (window.emMessageBus != null ? Tr(this.stylingContainer, `${this.mbSource}.Style`) : (this.clientStyling && Se(this.stylingContainer, this.clientStyling), this.clientStylingUrl && He(this.stylingContainer, this.clientStylingUrl)));
|
|
3431
|
+
}
|
|
3432
|
+
componentDidRender() {
|
|
3433
|
+
this.getComponentHeight();
|
|
3434
|
+
}
|
|
3435
|
+
getComponentHeight() {
|
|
3436
|
+
var i;
|
|
3437
|
+
if (this.mobile) {
|
|
3438
|
+
let a = this.el.getBoundingClientRect().height - ((i = this.el.shadowRoot.querySelector(".table")) === null || i === void 0 ? void 0 : i.getBoundingClientRect().y);
|
|
3439
|
+
this.el.style.setProperty("--heightScrollableContainer", a + "px");
|
|
3440
|
+
}
|
|
3441
|
+
}
|
|
3442
|
+
setHeightTableProperty() {
|
|
3443
|
+
let i = this.getComponentHeight();
|
|
3444
|
+
this.el.style.setProperty("--heightScrollableContainer", i + "px");
|
|
3445
|
+
}
|
|
3446
|
+
changeTransactionsType(i) {
|
|
3447
|
+
this.type = i;
|
|
3448
|
+
}
|
|
3449
|
+
changePageSize(i) {
|
|
3450
|
+
this.pageSize = i;
|
|
3451
|
+
}
|
|
3452
|
+
prev() {
|
|
3453
|
+
var i;
|
|
3454
|
+
!((i = this.pagination) === null || i === void 0) && i.previous && this.page--;
|
|
3455
|
+
}
|
|
3456
|
+
next() {
|
|
3457
|
+
var i;
|
|
3458
|
+
!((i = this.pagination) === null || i === void 0) && i.next && this.page++;
|
|
3459
|
+
}
|
|
3460
|
+
applyFilters(i, a) {
|
|
3461
|
+
this.from = i, this.to = a, this.loadTransactions();
|
|
3462
|
+
}
|
|
3463
|
+
showFilter() {
|
|
3464
|
+
this.showMobileFilter = !this.showMobileFilter;
|
|
3465
|
+
}
|
|
3466
|
+
disconnectedCallback() {
|
|
3467
|
+
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
3468
|
+
}
|
|
3469
|
+
render() {
|
|
3470
|
+
var i;
|
|
3471
|
+
const a = Ye("../assets/filter.svg"), t = Ye("../assets/warning.svg");
|
|
3472
|
+
return l(ot, { key: "395328866f9fbae0a79d1dcf9dc5e9fd6e321406" }, this.showLoader ? l(ct, null) : "", l("div", { key: "fcb0efc2b0c9f2daa3df8c6c1d541dabe76c8126", class: "wrapper", ref: (r) => this.stylingContainer = r }, this.mobile ? l("div", { class: "MenuReturnButton", onClick: this.toggleScreen }, l("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15" }, l("defs", null), l("g", { transform: "translate(-20 -158)" }, l("g", { transform: "translate(20 158)" }, l("path", { class: "aaa", d: "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z", transform: "translate(15 15) rotate(180)" })))), l("h2", { class: "TransactionTitleMobile" }, g.translate("transactionTitle", this.language))) : l("h2", { class: "TransactionTitle" }, g.translate("transactionTitle", this.language)), l("div", { key: "3fcb0ac0f3bc81ce2c3e298e53649a7050a53cb2", class: { "types types-mobile": this.mobile, "types types-desktop": !this.mobile } }, l("button", { key: "1fcfd5dbf9857488bd0594f5b908e845a66f0d05", class: "transaction-type " + (this.type === "0" ? "clicked" : ""), onClick: () => this.changeTransactionsType("0") }, g.translate("deposit", this.language)), l("button", { key: "58c6707975e3854e8a4afcf270a11dacd3c15947", class: "transaction-type " + (this.type === "1" ? "clicked" : ""), onClick: () => this.changeTransactionsType("1") }, g.translate("withdrawals", this.language))), this.mobile ? "" : l(yr, { language: this.language, pageSizes: this.pageSizes, currentPageSize: this.pageSize, changePageSize: (r) => this.changePageSize(r) }), this.mobile ? l("button", { class: "mobile-filter-button", onClick: () => this.showFilter() }, l("img", { src: a, alt: "Filter" }), g.translate("filter", this.language)) : "", !this.mobile || this.showMobileFilter && this.mobile ? l("user-transaction-history-filter", { language: this.language, onApplyFilters: ({ detail: { from: r, to: e } }) => this.applyFilters(r, e), from: this.from, to: this.to, dateformat: this.dateFormat }) : "", ((i = this.transactions) === null || i === void 0 ? void 0 : i.length) > 0 ? l("div", { class: "table" }, this.mobile ? l("div", { class: "mobile-table" }, this.transactions.map((r) => l(wr, Object.assign({}, r, { dateformat: this.dateFormat })))) : l(br, { source: this.transactions, language: this.language, dateformat: this.dateFormat })) : l("div", { class: "noData" }, l("img", { src: t, alt: "Warning" }), l("span", null, g.translate("noData", this.language))), l("div", { key: "a58ec540ecc0d4162bb32eae5bd453e37cf7fed1", class: "pagination" }, l("button", { key: "f21b01b72d7a4470e1cbbefdec50169e6e5bc222", onClick: () => this.prev() }, "<"), l("button", { key: "d14d057b3620a30ae3c11a5f22640913c0a1d32e", onClick: () => this.next() }, ">"))));
|
|
3473
|
+
}
|
|
3474
|
+
loadTransactions() {
|
|
3475
|
+
return de(this, null, function* () {
|
|
3476
|
+
this.showLoader = !0;
|
|
3477
|
+
try {
|
|
3478
|
+
const i = `${this.endpoint}/v1/player/${this.userId}/transactions/banking?${this.getParams()}`, a = yield fetch(i, {
|
|
3479
|
+
headers: {
|
|
3480
|
+
"X-Sessionid": this.session,
|
|
3481
|
+
"Content-Type": "application/json"
|
|
3482
|
+
}
|
|
3483
|
+
});
|
|
3484
|
+
if (!a.ok) {
|
|
3485
|
+
const r = yield a.text();
|
|
3486
|
+
throw new Error(r);
|
|
3487
|
+
}
|
|
3488
|
+
const t = yield a.json();
|
|
3489
|
+
this.pagination = t.pagination, this.transactions = t.transactions;
|
|
3490
|
+
} catch (i) {
|
|
3491
|
+
console.error(i);
|
|
3492
|
+
} finally {
|
|
3493
|
+
this.showLoader = !1;
|
|
3494
|
+
}
|
|
3495
|
+
});
|
|
3496
|
+
}
|
|
3497
|
+
formatDateForApi(i) {
|
|
3498
|
+
const a = at(i, `${this.dateFormat || "yyyy-MM-dd"}`, /* @__PURE__ */ new Date());
|
|
3499
|
+
return K(a, "yyyy-MM-dd");
|
|
3500
|
+
}
|
|
3501
|
+
getParams() {
|
|
3502
|
+
const i = (this.page * this.pageSize).toString(), a = this.formatDateForApi(this.from), t = this.formatDateForApi(this.to);
|
|
3503
|
+
return `offset=${i}&endDate=${t}&startDate=${a}&type=${this.type}&limit=${this.pageSize}`;
|
|
3504
|
+
}
|
|
3505
|
+
static get assetsDirs() {
|
|
3506
|
+
return ["../assets"];
|
|
3507
|
+
}
|
|
3508
|
+
get el() {
|
|
3509
|
+
return st(this);
|
|
3510
|
+
}
|
|
3511
|
+
static get watchers() {
|
|
3512
|
+
return {
|
|
3513
|
+
page: ["watchMultiple"],
|
|
3514
|
+
type: ["watchMultiple"],
|
|
3515
|
+
session: ["watchMultiple"],
|
|
3516
|
+
userId: ["watchMultiple"],
|
|
3517
|
+
pageSize: ["watchMultiple"],
|
|
3518
|
+
clientStyling: ["handleClientStylingChange"],
|
|
3519
|
+
clientStylingUrl: ["handleClientStylingUrlChange"],
|
|
3520
|
+
showMobileFilter: ["getComponentHeight"]
|
|
3521
|
+
};
|
|
3522
|
+
}
|
|
3523
|
+
};
|
|
3524
|
+
Ma.style = Pa;
|
|
3525
|
+
const Ea = class {
|
|
3526
|
+
constructor(i) {
|
|
3527
|
+
Fe(this, i), this.applyFilters = ut(this, "applyFilters", 7), this.startDateChange = () => {
|
|
3528
|
+
this.startDate = K(new Date(this.startDatePicker.value), `${this.dateformat || "yyyy-MM-dd"}`);
|
|
3529
|
+
}, this.endDateChange = () => {
|
|
3530
|
+
this.endDate = K(new Date(this.endDatePicker.value), `${this.dateformat || "yyyy-MM-dd"}`);
|
|
3531
|
+
}, this.from = void 0, this.to = void 0, this.language = void 0, this.dateformat = void 0, this.startDate = void 0, this.endDate = void 0;
|
|
3532
|
+
}
|
|
3533
|
+
componentWillLoad() {
|
|
3534
|
+
this.startDate = this.from, this.endDate = this.to;
|
|
3535
|
+
}
|
|
3536
|
+
componentDidLoad() {
|
|
3537
|
+
this.startDatePicker.i18n = Object.assign(Object.assign({}, this.startDatePicker.i18n), { formatDate: this.formatVaadinDate.bind(this), parseDate: this.parseDate.bind(this) }), this.endDatePicker.i18n = Object.assign(Object.assign({}, this.endDatePicker.i18n), { formatDate: this.formatVaadinDate.bind(this), parseDate: this.parseDate.bind(this) });
|
|
3538
|
+
}
|
|
3539
|
+
formatVaadinDate(i) {
|
|
3540
|
+
const { year: a, month: t, day: r } = i, e = new Date(a, t, r);
|
|
3541
|
+
return K(e, this.dateformat || "yyyy-MM-dd");
|
|
3542
|
+
}
|
|
3543
|
+
parseDate(i) {
|
|
3544
|
+
const a = at(i, this.dateformat || "yyyy-MM-dd", /* @__PURE__ */ new Date());
|
|
3545
|
+
return { year: a.getFullYear(), month: a.getMonth(), day: a.getDate() };
|
|
3546
|
+
}
|
|
3547
|
+
handleApplyFilters() {
|
|
3548
|
+
this.applyFilters.emit({ from: this.startDate, to: this.endDate });
|
|
3549
|
+
}
|
|
3550
|
+
render() {
|
|
3551
|
+
return l("div", { key: "e25ee310b522ecfcc8dda8b6294e30f5e66c4edd", class: "period" }, l("div", { key: "a6ec37aafe30774077bae55366d6357c1b0a8c60", class: "period-content" }, l("div", { key: "d9796d6972931e14190fcd8ab558162af64d8d62", class: "date-input" }, l("vaadin-date-picker", { key: "3df25b815c7b2a7f3bf72ece4c430f595446122e", value: this.startDate, placeholder: this.startDate, ref: (i) => this.startDatePicker = i, label: g.translate("from", this.language), onChange: this.startDateChange })), l("span", { key: "f251410540f18bb86946c2e08915edbf73765fbc" }, l("svg", { key: "7c5d28705c152fbc73c3709b5e3b6bee5b14c0c7", width: "24px", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, l("path", { key: "3ebc124be61de20e9f946ae5f9116a5f9bf043ff", d: "m21 11.75c0-.414-.336-.75-.75-.75h-16.5c-.414 0-.75.336-.75.75s.336.75.75.75h16.5c.414 0 .75-.336.75-.75z", "fill-rule": "nonzero", fill: "5d687b" }))), l("div", { key: "84aa35e5d8598c713904bfd4baf109a422b83e2c", class: "date-input" }, l("vaadin-date-picker", { key: "3ef7bd62bc9ed6034fb55fff38013425b627d1c9", value: this.endDate, placeholder: this.endDate, ref: (i) => this.endDatePicker = i, label: g.translate("to", this.language), onChange: this.endDateChange })), l("button", { key: "6f3be9bf3a0c2de87d7661691e3b72b16018e460", class: "filter-btn", onClick: this.handleApplyFilters.bind(this) }, g.translate("filter", this.language))));
|
|
3552
|
+
}
|
|
3553
|
+
};
|
|
3554
|
+
export {
|
|
3555
|
+
Ma as user_transaction_history,
|
|
3556
|
+
Ea as user_transaction_history_filter
|
|
3557
|
+
};
|