@everymatrix/player-account-controller 1.74.10 → 1.76.0
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-CuvnoUn1.cjs +21 -0
- package/components/{GeneralLogout-CiyGpZGU.js → GeneralLogout-DSECYo0-.js} +1427 -1392
- package/components/{GeneralLogout-Vg76ri4V.js → GeneralLogout-DpZ-BcWm.js} +1432 -1397
- package/components/{PlayerAccountBettingHistory-Dn9IsrIP.js → PlayerAccountBettingHistory-BDYeFmkk.js} +27 -27
- package/components/{PlayerAccountBettingHistory-Bv1Qcp8m.js → PlayerAccountBettingHistory-CNH9wk4q.js} +27 -27
- package/components/{PlayerAccountBettingHistory-CE023VGz.cjs → PlayerAccountBettingHistory-Cb9zY2cj.cjs} +1 -1
- package/components/{PlayerAccountBiometrics-C2wumiJ3.js → PlayerAccountBiometrics-B9d0_egW.js} +22 -22
- package/components/{PlayerAccountBiometrics-DPdT285K.cjs → PlayerAccountBiometrics-CSSQNl0K.cjs} +1 -1
- package/components/{PlayerAccountBiometrics-CH9MN1vT.js → PlayerAccountBiometrics-DvAjLCSX.js} +22 -22
- package/components/{PlayerAccountClosure-DG5NrDqY.cjs → PlayerAccountClosure-D2ovK8jC.cjs} +1 -1
- package/components/{PlayerAccountClosure-BqrCJaGp.js → PlayerAccountClosure-DzDcGjw6.js} +17 -17
- package/components/{PlayerAccountClosure-Dda9CHdX.js → PlayerAccountClosure-uGbZZ9An.js} +17 -17
- package/components/{PlayerAccountController-BeY5S0EH.js → PlayerAccountController-BaPQkVoS.js} +143 -143
- package/components/{PlayerAccountController-MSqVuCPp.cjs → PlayerAccountController-CNO7uWc6.cjs} +1 -1
- package/components/{PlayerAccountController-Cu59Kubb.js → PlayerAccountController-DvF_-Gnz.js} +141 -141
- package/components/{PlayerAccountGamingLimits-CqPkjNdS.js → PlayerAccountGamingLimits-B6wKBvsB.js} +19 -19
- package/components/{PlayerAccountGamingLimits-B2vzRems.cjs → PlayerAccountGamingLimits-BPVpte4c.cjs} +1 -1
- package/components/{PlayerAccountGamingLimits-CJksEBIA.js → PlayerAccountGamingLimits-DBraet-_.js} +19 -19
- package/components/{PlayerAccountGamingLimitsConfirmationModal-BX8_aYoz.js → PlayerAccountGamingLimitsConfirmationModal-BKVbjWGo.js} +53 -53
- package/components/{PlayerAccountGamingLimitsConfirmationModal-CfPKMMkU.js → PlayerAccountGamingLimitsConfirmationModal-C7eo4n91.js} +53 -53
- package/components/PlayerAccountGamingLimitsConfirmationModal-CTub7J3N.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsGroupEdit-BD9SWhvO.js → PlayerAccountGamingLimitsGroupEdit-CfD-M6Qh.js} +1079 -1081
- package/components/{PlayerAccountGamingLimitsGroupEdit-Ageqronh.js → PlayerAccountGamingLimitsGroupEdit-JjBMtw_4.js} +1079 -1081
- package/components/PlayerAccountGamingLimitsGroupEdit-gUkWnHwu.cjs +2 -0
- package/components/{PlayerAccountGamingLimitsHistory2-kH5zBkQX.js → PlayerAccountGamingLimitsHistory2-B41VVq8R.js} +39 -39
- package/components/{PlayerAccountGamingLimitsHistory2-BusoJL-w.js → PlayerAccountGamingLimitsHistory2-BM9UlpyS.js} +41 -41
- package/components/{PlayerAccountGamingLimitsHistory2-B6QgZ3Qd.cjs → PlayerAccountGamingLimitsHistory2-Bl-VMGFi.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-DRRou8s9.cjs → PlayerAccountGamingLimitsInfoCard-B1-rS3C8.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-BHAREEgX.js → PlayerAccountGamingLimitsInfoCard-B9H7I5Gr.js} +80 -80
- package/components/{PlayerAccountGamingLimitsInfoCard-BvQ7pktR.js → PlayerAccountGamingLimitsInfoCard-DwX_bkPR.js} +80 -80
- package/components/{PlayerAccountGamingLimitsPage2Gm16-CAVf4Y-G.js → PlayerAccountGamingLimitsPage2Gm16-Cg-G38ui.js} +594 -597
- package/components/{PlayerAccountGamingLimitsPage2Gm16-ryQx6oP1.cjs → PlayerAccountGamingLimitsPage2Gm16-DtHQGK21.cjs} +6 -6
- package/components/{PlayerAccountGamingLimitsPage2Gm16-DJHbna0W.js → PlayerAccountGamingLimitsPage2Gm16-T6Ii0fag.js} +241 -241
- package/components/{PlayerAccountGamingLimitsPopup-D16rhs4n.cjs → PlayerAccountGamingLimitsPopup-B9mkm7cd.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-Bl1xoGPY.js → PlayerAccountGamingLimitsPopup-BhTuwNDv.js} +28 -28
- package/components/{PlayerAccountGamingLimitsPopup-D0ltWJSo.js → PlayerAccountGamingLimitsPopup-Bm8wJyt7.js} +28 -28
- package/components/{PlayerAccountGamingLimitsWrapper2-nO_niNOc.js → PlayerAccountGamingLimitsWrapper2-Bjsb9I8u.js} +37 -37
- package/components/{PlayerAccountGamingLimitsWrapper2-vu5v2bbv.js → PlayerAccountGamingLimitsWrapper2-CbFe0wKm.js} +37 -37
- package/components/{PlayerAccountGamingLimitsWrapper2-BSqP4Sd8.cjs → PlayerAccountGamingLimitsWrapper2-CrCkUbSW.cjs} +1 -1
- package/components/{PlayerAccountGeneralConfirmationModal-JvzRw4bx.js → PlayerAccountGeneralConfirmationModal-C2j-cezP.js} +68 -68
- package/components/PlayerAccountGeneralConfirmationModal-OYut1Lou.cjs +1 -0
- package/components/{PlayerAccountGeneralConfirmationModal-T_JYxL62.js → PlayerAccountGeneralConfirmationModal-TR0re855.js} +68 -68
- package/components/{PlayerAccountMenu-JDfi5y52.cjs → PlayerAccountMenu-BQu1uMXy.cjs} +1 -1
- package/components/{PlayerAccountMenu-DPpd0Onj.js → PlayerAccountMenu-DDK28uRA.js} +33 -33
- package/components/{PlayerAccountMenu-C4sG1dhf.js → PlayerAccountMenu-DZqChKXK.js} +33 -33
- package/components/{PlayerAccountModal-BGCTA59j.js → PlayerAccountModal-Cw2Mcd-d.js} +25 -25
- package/components/{PlayerAccountModal-DvJ0OsPC.cjs → PlayerAccountModal-CzspHDhO.cjs} +1 -1
- package/components/{PlayerAccountModal-DkyQ5JIi.js → PlayerAccountModal-DoBwOdNI.js} +25 -25
- package/components/{PlayerAccountNotifications-DTtMvV8M.js → PlayerAccountNotifications-BpsUOj0M.js} +36 -36
- package/components/{PlayerAccountNotifications-CdPeCghS.cjs → PlayerAccountNotifications-CGmkTd-y.cjs} +1 -1
- package/components/{PlayerAccountNotifications-OJnPC108.js → PlayerAccountNotifications-CzhNTTTd.js} +35 -35
- package/components/{PlayerAccountProductRestriction-DSjfzN0L.js → PlayerAccountProductRestriction-ClvW28BI.js} +9467 -4397
- package/components/{PlayerAccountProductRestriction-BtXJwF14.js → PlayerAccountProductRestriction-DEGzc5kz.js} +9491 -4421
- package/components/PlayerAccountProductRestriction-HFCCxFxz.cjs +7968 -0
- package/components/{PlayerAccountSelfExclusion-BFhhj0lU.js → PlayerAccountSelfExclusion-BOViWFS9.js} +899 -901
- package/components/{PlayerAccountSelfExclusion-CdvQXAjK.cjs → PlayerAccountSelfExclusion-BWBLv-18.cjs} +155 -155
- package/components/{PlayerAccountSelfExclusion-CLHfQEii.js → PlayerAccountSelfExclusion-C7Br5VmH.js} +1216 -1218
- package/components/{PlayerAccountTimeout-Dfa2jJXc.js → PlayerAccountTimeout-CIHTd0LQ.js} +103 -103
- package/components/{PlayerAccountTimeout-lsP1D_FM.js → PlayerAccountTimeout-CfEHZ9pc.js} +103 -103
- package/components/{PlayerAccountTimeout-Dhey1QrR.cjs → PlayerAccountTimeout-DtpzMxQd.cjs} +1 -1
- package/components/{PlayerAccountTransactionsHistory-x6Mj8Vqc.cjs → PlayerAccountTransactionsHistory-CDHvYjjJ.cjs} +1 -1
- package/components/{PlayerAccountTransactionsHistory-e7LnmN2n.js → PlayerAccountTransactionsHistory-CnZ9-j-P.js} +84 -84
- package/components/{PlayerAccountTransactionsHistory-BumeG74E.js → PlayerAccountTransactionsHistory-DXz91A1z.js} +84 -84
- package/components/{PlayerActiveBonuses-BWfdGowJ.js → PlayerActiveBonuses-M2nfyZqa.js} +48 -48
- package/components/{PlayerActiveBonuses-Me5Q3o65.cjs → PlayerActiveBonuses-_NK812L8.cjs} +1 -1
- package/components/{PlayerActiveBonuses-DcuRFKFP.js → PlayerActiveBonuses-vH3WJNi8.js} +54 -54
- package/components/{PlayerBonusCard-CkEs_ikq.js → PlayerBonusCard-BXjt3PQh.js} +81 -81
- package/components/{PlayerBonusCard-D8XTVs99.js → PlayerBonusCard-BYBQy1Si.js} +81 -81
- package/components/{PlayerBonusCard-DgyhSYBs.cjs → PlayerBonusCard-C6zYcpN6.cjs} +1 -1
- package/components/{PlayerBonusHistory-DmYF8qYy.js → PlayerBonusHistory-CoCvBZgH.js} +30 -30
- package/components/{PlayerBonusHistory-BmeRyaDK.cjs → PlayerBonusHistory-DLt5HM6L.cjs} +1 -1
- package/components/{PlayerBonusHistory-CTKJuEJG.js → PlayerBonusHistory-DOeREoa9.js} +30 -30
- package/components/{PlayerChangePassword-Hj0mD9xL.js → PlayerChangePassword-B5A-0Obq.js} +66 -66
- package/components/{PlayerChangePassword-CfCN79eP.cjs → PlayerChangePassword-CTNjnq_r.cjs} +1 -1
- package/components/{PlayerChangePassword-Cc15tSRv.js → PlayerChangePassword-DTahlEtx.js} +66 -66
- package/components/{PlayerDeposit-CmBFg6tX.cjs → PlayerDeposit-BsyYS9xx.cjs} +1 -1
- package/components/{PlayerDeposit-Bm1DOHlW.js → PlayerDeposit-DOzGblzs.js} +29 -29
- package/components/{PlayerDeposit-BpS3fS46.js → PlayerDeposit-DqT5-LKW.js} +29 -29
- package/components/{PlayerGamingHistory-F3yi70Vu.cjs → PlayerGamingHistory-8Bo-uc3o.cjs} +1 -1
- package/components/{PlayerGamingHistory-Bew4OVxF.js → PlayerGamingHistory-ByLE5wRu.js} +82 -82
- package/components/{PlayerGamingHistory-B9lwGb0Z.js → PlayerGamingHistory-CfvSHYhg.js} +102 -102
- package/components/{PlayerPendingWithdrawals-scSFcYAA.js → PlayerPendingWithdrawals-CGYcCotO.js} +26 -26
- package/components/{PlayerPendingWithdrawals-D-KWiMH6.cjs → PlayerPendingWithdrawals-Dvq9lK8F.cjs} +1 -1
- package/components/{PlayerPendingWithdrawals-pfC5sUpM.js → PlayerPendingWithdrawals-iWN6LsIP.js} +26 -26
- package/components/{PlayerProfileInfo-CwZQ79SV.cjs → PlayerProfileInfo-CYPlnEWJ.cjs} +1 -1
- package/components/{PlayerProfileInfo-DYvdUkJZ.js → PlayerProfileInfo-kZXtGVGK.js} +146 -146
- package/components/{PlayerProfileInfo-1ELKHIQs.js → PlayerProfileInfo-tCIspsyo.js} +158 -158
- package/components/{PlayerRealityCheck-JdOGHDG6.cjs → PlayerRealityCheck-BynMsi1X.cjs} +1 -1
- package/components/{PlayerRealityCheck-pQWsLK1G.js → PlayerRealityCheck-Dr5lvwHL.js} +45 -45
- package/components/{PlayerRealityCheck-DLPtMaP7.js → PlayerRealityCheck-kgcCV8FV.js} +44 -44
- package/components/{PlayerTransactionHistory-Hz2IWD73.cjs → PlayerTransactionHistory-BU4_vLyx.cjs} +1 -1
- package/components/{PlayerTransactionHistory-B7ts1zGr.js → PlayerTransactionHistory-CEEirGIE.js} +19 -19
- package/components/{PlayerTransactionHistory-CUa0IaZD.js → PlayerTransactionHistory-j-FbnqEI.js} +19 -19
- package/components/{PlayerWithdrawal-BTfz-sCc.js → PlayerWithdrawal-B_nHZSvY.js} +19 -19
- package/components/{PlayerWithdrawal-P_0MIA-u.cjs → PlayerWithdrawal-CkSCfQ4A.cjs} +1 -1
- package/components/{PlayerWithdrawal-DYVDpOnE.js → PlayerWithdrawal-DjRR7TrQ.js} +19 -19
- package/es2015/player-account-controller.cjs +1 -1
- package/es2015/player-account-controller.js +1 -1
- package/esnext/player-account-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/checkbox-group-input_15-4Hs1gM1f.cjs +8212 -0
- package/stencil/{checkbox-group-input_15-7ljokaYC.js → checkbox-group-input_15-C9RSqwNE.js} +9427 -4355
- package/stencil/{checkbox-group-input_15-BzU_0jJ_.js → checkbox-group-input_15-COZrprO3.js} +9424 -4352
- package/stencil/index-13661b98-8hgREsxq.cjs +1 -0
- package/stencil/{index-13661b98-Cty_Ct2m.js → index-13661b98-BGWA5lR-.js} +207 -207
- package/stencil/{index-13661b98-BJM2hHx6.js → index-13661b98-C1LBo8p_.js} +215 -215
- package/stencil/index-1ef3a64c-DR7bpfUj.cjs +1 -0
- package/stencil/{index-1ef3a64c-DuKSFSN8.js → index-1ef3a64c-HE2lDlEL.js} +192 -192
- package/stencil/{index-1ef3a64c-DQk1yZfC.js → index-1ef3a64c-zEGNB-u8.js} +185 -185
- package/stencil/index-6e523641-C-aWDr56.js +627 -0
- package/stencil/index-6e523641-CIqESSFm.js +654 -0
- package/stencil/index-6e523641-D-RFKZXR.cjs +1 -0
- package/stencil/{index-9c0f6c58-GCIFeGLp.js → index-9c0f6c58-CWsaYxOT.js} +176 -176
- package/stencil/index-9c0f6c58-Cv5Mos03.cjs +1 -0
- package/stencil/{index-9c0f6c58-Ucwc3Jk1.js → index-9c0f6c58-ntq_iYNK.js} +180 -180
- package/stencil/index-b2193545-DQUvHUpa.cjs +1 -0
- package/stencil/index-b2193545-DoYU_tL8.js +503 -0
- package/stencil/index-b2193545-_I2wisuY.js +519 -0
- package/stencil/pam-change-password-CgN62FEK.js +25 -0
- package/stencil/pam-change-password-Ck1Dqung.js +7 -0
- package/stencil/{pam-change-password-af5033a0-BfWHc1Rw.js → pam-change-password-c578e291-ApXrRZhk.js} +59 -59
- package/stencil/{pam-change-password-af5033a0-C18GwNdS.cjs → pam-change-password-c578e291-CObxKeQj.cjs} +2 -2
- package/stencil/{pam-change-password-af5033a0-DYGjeRTR.js → pam-change-password-c578e291-DjiJJQNq.js} +59 -59
- package/stencil/pam-change-password-q-zLWG5h.cjs +1 -0
- package/stencil/{player-kyc-verification-D10m225z.cjs → player-kyc-verification-BOxNJ6x_.cjs} +1 -1
- package/stencil/{player-kyc-verification-Wsswi9br.js → player-kyc-verification-jOo_qPpq.js} +1 -1
- package/stencil/{player-kyc-verification-B9ZaCq1K.js → player-kyc-verification-sZ9OAQ8Z.js} +1 -1
- package/stencil/{ui-skeleton-2XsWxl4S.js → ui-skeleton-C_FDz0NJ.js} +2 -2
- package/stencil/{ui-skeleton-Cbqo0oYF.cjs → ui-skeleton-GEqIXVxo.cjs} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-OnzqIAY0.js → ui-skeleton-ae35c6f2-BreM325l.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-B4ncHe9g.cjs → ui-skeleton-ae35c6f2-CeNpgiKf.cjs} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-8s3Rqu1P.js → ui-skeleton-ae35c6f2-e6Wte4qi.js} +1 -1
- package/stencil/{ui-skeleton-LneRlsD3.js → ui-skeleton-mkMdvWYI.js} +2 -2
- package/stencil/{user-deposit-withdrawal-BP58nPO1.cjs → user-deposit-withdrawal-BuFBx-hr.cjs} +2 -2
- package/stencil/{user-deposit-withdrawal-DcVKAa80.js → user-deposit-withdrawal-Cr0-V-2c.js} +45 -45
- package/stencil/{user-deposit-withdrawal-CSakhNt1.js → user-deposit-withdrawal-DdJYJeX1.js} +45 -45
- package/stencil/user-transaction-history-ChQcZwtX.js +25 -0
- package/stencil/user-transaction-history-D4WBmCh8.cjs +1 -0
- package/stencil/user-transaction-history-Dla0Do5o.js +7 -0
- package/stencil/user-transaction-history_2-B1al0Y-h.js +3533 -0
- package/stencil/user-transaction-history_2-DznYNRIL.js +3555 -0
- package/stencil/user-transaction-history_2-bMxqSwYs.cjs +2 -0
- package/components/GeneralLogout-COm1JcKW.cjs +0 -21
- package/components/PlayerAccountGamingLimitsConfirmationModal-BR2Qm3Iq.cjs +0 -1
- package/components/PlayerAccountGamingLimitsGroupEdit-JerzRaIW.cjs +0 -2
- package/components/PlayerAccountGeneralConfirmationModal-BajaU0jJ.cjs +0 -1
- package/components/PlayerAccountProductRestriction-BJ0LFpLp.cjs +0 -6061
- package/stencil/checkbox-group-input_15-Fs7-YN7u.cjs +0 -6305
- package/stencil/index-13661b98-DuhNdmHd.cjs +0 -1
- package/stencil/index-1ef3a64c-DD-PHh2g.cjs +0 -1
- package/stencil/index-7c5e707a-B54Yjxc3.js +0 -616
- package/stencil/index-7c5e707a-BHFN5Fx4.js +0 -643
- 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/index-b2193545-DPKCFIaU.js +0 -503
- package/stencil/index-b2193545-LzjWxki5.js +0 -519
- package/stencil/pam-change-password-Bdu7Bk_h.js +0 -25
- package/stencil/pam-change-password-DSAfkY23.js +0 -7
- package/stencil/pam-change-password-mcRyjsPo.cjs +0 -1
- package/stencil/user-transaction-history-BrBScppC.js +0 -1651
- package/stencil/user-transaction-history-D0jBcRwe.js +0 -1627
- package/stencil/user-transaction-history-HA_tfHfo.cjs +0 -1
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
function H() {
|
|
2
2
|
}
|
|
3
|
-
const
|
|
4
|
-
function
|
|
5
|
-
for (const
|
|
6
|
-
e[
|
|
3
|
+
const Br = (e) => e;
|
|
4
|
+
function Ar(e, t) {
|
|
5
|
+
for (const r in t)
|
|
6
|
+
e[r] = t[r];
|
|
7
7
|
return (
|
|
8
8
|
/** @type {T & S} */
|
|
9
9
|
e
|
|
10
10
|
);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function $t(e) {
|
|
13
13
|
return e();
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function lt() {
|
|
16
16
|
return /* @__PURE__ */ Object.create(null);
|
|
17
17
|
}
|
|
18
18
|
function G(e) {
|
|
19
|
-
e.forEach(
|
|
19
|
+
e.forEach($t);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function ue(e) {
|
|
22
22
|
return typeof e == "function";
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function Rt(e, t) {
|
|
25
25
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
26
26
|
}
|
|
27
|
-
let
|
|
28
|
-
function
|
|
29
|
-
return e === t ? !0 : (
|
|
27
|
+
let pe;
|
|
28
|
+
function go(e, t) {
|
|
29
|
+
return e === t ? !0 : (pe || (pe = document.createElement("a")), pe.href = t, e === pe.href);
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function Pr(e) {
|
|
32
32
|
return Object.keys(e).length === 0;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function Ut(e, ...t) {
|
|
35
35
|
if (e == null) {
|
|
36
|
-
for (const
|
|
37
|
-
|
|
36
|
+
for (const n of t)
|
|
37
|
+
n(void 0);
|
|
38
38
|
return H;
|
|
39
39
|
}
|
|
40
|
-
const
|
|
41
|
-
return
|
|
40
|
+
const r = e.subscribe(...t);
|
|
41
|
+
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
e.$$.on_destroy.push(
|
|
43
|
+
function Or(e, t, r) {
|
|
44
|
+
e.$$.on_destroy.push(Ut(t, r));
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function vo(e, t, r, n) {
|
|
47
47
|
if (e) {
|
|
48
|
-
const i =
|
|
48
|
+
const i = Dt(e, t, r, n);
|
|
49
49
|
return e[0](i);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
return e[1] &&
|
|
52
|
+
function Dt(e, t, r, n) {
|
|
53
|
+
return e[1] && n ? Ar(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
56
|
-
if (e[2] &&
|
|
57
|
-
const i = e[2](r
|
|
55
|
+
function _o(e, t, r, n) {
|
|
56
|
+
if (e[2] && n) {
|
|
57
|
+
const i = e[2](n(r));
|
|
58
58
|
if (t.dirty === void 0)
|
|
59
59
|
return i;
|
|
60
60
|
if (typeof i == "object") {
|
|
@@ -67,40 +67,40 @@ function bo(e, t, n, r) {
|
|
|
67
67
|
}
|
|
68
68
|
return t.dirty;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function Eo(e, t, r, n, i, o) {
|
|
71
71
|
if (i) {
|
|
72
|
-
const a =
|
|
72
|
+
const a = Dt(t, r, n, o);
|
|
73
73
|
e.p(a, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function xo(e) {
|
|
77
77
|
if (e.ctx.length > 32) {
|
|
78
|
-
const t = [],
|
|
79
|
-
for (let
|
|
80
|
-
t[
|
|
78
|
+
const t = [], r = e.ctx.length / 32;
|
|
79
|
+
for (let n = 0; n < r; n++)
|
|
80
|
+
t[n] = -1;
|
|
81
81
|
return t;
|
|
82
82
|
}
|
|
83
83
|
return -1;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function So(e) {
|
|
86
86
|
return e ?? "";
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
return e &&
|
|
88
|
+
function To(e) {
|
|
89
|
+
return e && ue(e.destroy) ? e.destroy : H;
|
|
90
90
|
}
|
|
91
|
-
const
|
|
92
|
-
let
|
|
91
|
+
const Gt = typeof window < "u";
|
|
92
|
+
let Ir = Gt ? () => window.performance.now() : () => Date.now(), st = Gt ? (e) => requestAnimationFrame(e) : H;
|
|
93
93
|
const W = /* @__PURE__ */ new Set();
|
|
94
|
-
function
|
|
94
|
+
function Ft(e) {
|
|
95
95
|
W.forEach((t) => {
|
|
96
96
|
t.c(e) || (W.delete(t), t.f());
|
|
97
|
-
}), W.size !== 0 &&
|
|
97
|
+
}), W.size !== 0 && st(Ft);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Lr(e) {
|
|
100
100
|
let t;
|
|
101
|
-
return W.size === 0 &&
|
|
102
|
-
promise: new Promise((
|
|
103
|
-
W.add(t = { c: e, f:
|
|
101
|
+
return W.size === 0 && st(Ft), {
|
|
102
|
+
promise: new Promise((r) => {
|
|
103
|
+
W.add(t = { c: e, f: r });
|
|
104
104
|
}),
|
|
105
105
|
abort() {
|
|
106
106
|
W.delete(t);
|
|
@@ -110,14 +110,14 @@ function Pn(e) {
|
|
|
110
110
|
function A(e, t) {
|
|
111
111
|
e.appendChild(t);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
const
|
|
115
|
-
if (!
|
|
113
|
+
function Nr(e, t, r) {
|
|
114
|
+
const n = at(e);
|
|
115
|
+
if (!n.getElementById(t)) {
|
|
116
116
|
const i = I("style");
|
|
117
|
-
i.id = t, i.textContent =
|
|
117
|
+
i.id = t, i.textContent = r, jt(n, i);
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function at(e) {
|
|
121
121
|
if (!e)
|
|
122
122
|
return document;
|
|
123
123
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -127,26 +127,26 @@ function nt(e) {
|
|
|
127
127
|
t
|
|
128
128
|
) : e.ownerDocument;
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function Mr(e) {
|
|
131
131
|
const t = I("style");
|
|
132
|
-
return t.textContent = "/* empty */",
|
|
132
|
+
return t.textContent = "/* empty */", jt(at(e), t), t.sheet;
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function jt(e, t) {
|
|
135
135
|
return A(
|
|
136
136
|
/** @type {Document} */
|
|
137
137
|
e.head || e,
|
|
138
138
|
t
|
|
139
139
|
), t.sheet;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
142
|
-
e.insertBefore(t,
|
|
141
|
+
function Y(e, t, r) {
|
|
142
|
+
e.insertBefore(t, r || null);
|
|
143
143
|
}
|
|
144
144
|
function D(e) {
|
|
145
145
|
e.parentNode && e.parentNode.removeChild(e);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
148
|
-
for (let
|
|
149
|
-
e[
|
|
147
|
+
function wo(e, t) {
|
|
148
|
+
for (let r = 0; r < e.length; r += 1)
|
|
149
|
+
e[r] && e[r].d(t);
|
|
150
150
|
}
|
|
151
151
|
function I(e) {
|
|
152
152
|
return document.createElement(e);
|
|
@@ -154,80 +154,80 @@ function I(e) {
|
|
|
154
154
|
function V(e) {
|
|
155
155
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function he(e) {
|
|
158
158
|
return document.createTextNode(e);
|
|
159
159
|
}
|
|
160
|
-
function
|
|
161
|
-
return
|
|
160
|
+
function Cr() {
|
|
161
|
+
return he(" ");
|
|
162
162
|
}
|
|
163
|
-
function
|
|
164
|
-
return
|
|
163
|
+
function Ho() {
|
|
164
|
+
return he("");
|
|
165
165
|
}
|
|
166
|
-
function
|
|
167
|
-
return e.addEventListener(t,
|
|
166
|
+
function kt(e, t, r, n) {
|
|
167
|
+
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function Bo(e) {
|
|
170
170
|
return function(t) {
|
|
171
171
|
return t.preventDefault(), e.call(this, t);
|
|
172
172
|
};
|
|
173
173
|
}
|
|
174
|
-
function B(e, t,
|
|
175
|
-
|
|
174
|
+
function B(e, t, r) {
|
|
175
|
+
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
176
176
|
}
|
|
177
|
-
function
|
|
178
|
-
const
|
|
179
|
-
|
|
177
|
+
function Ao(e, t, r) {
|
|
178
|
+
const n = t.toLowerCase();
|
|
179
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : B(e, t, r);
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function Po(e) {
|
|
182
182
|
let t;
|
|
183
183
|
return {
|
|
184
184
|
/* push */
|
|
185
|
-
p(...
|
|
186
|
-
t =
|
|
185
|
+
p(...r) {
|
|
186
|
+
t = r, t.forEach((n) => e.push(n));
|
|
187
187
|
},
|
|
188
188
|
/* remove */
|
|
189
189
|
r() {
|
|
190
|
-
t.forEach((
|
|
190
|
+
t.forEach((r) => e.splice(e.indexOf(r), 1));
|
|
191
191
|
}
|
|
192
192
|
};
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function Oo(e) {
|
|
195
195
|
return e === "" ? null : +e;
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function $r(e) {
|
|
198
198
|
return Array.from(e.childNodes);
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function Vt(e, t) {
|
|
201
201
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
202
202
|
t);
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function Io(e, t) {
|
|
205
205
|
e.value = t ?? "";
|
|
206
206
|
}
|
|
207
|
-
function
|
|
208
|
-
|
|
207
|
+
function Rr(e, t, r, n) {
|
|
208
|
+
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
209
209
|
}
|
|
210
|
-
function
|
|
211
|
-
for (let
|
|
212
|
-
const i = e.options[
|
|
210
|
+
function Lo(e, t, r) {
|
|
211
|
+
for (let n = 0; n < e.options.length; n += 1) {
|
|
212
|
+
const i = e.options[n];
|
|
213
213
|
if (i.__value === t) {
|
|
214
214
|
i.selected = !0;
|
|
215
215
|
return;
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
(!
|
|
218
|
+
(!r || t !== void 0) && (e.selectedIndex = -1);
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function No(e) {
|
|
221
221
|
const t = e.querySelector(":checked");
|
|
222
222
|
return t && t.__value;
|
|
223
223
|
}
|
|
224
|
-
function
|
|
225
|
-
e.classList.toggle(t, !!
|
|
224
|
+
function Mo(e, t, r) {
|
|
225
|
+
e.classList.toggle(t, !!r);
|
|
226
226
|
}
|
|
227
|
-
function
|
|
228
|
-
return new CustomEvent(e, { detail: t, bubbles:
|
|
227
|
+
function Ur(e, t, { bubbles: r = !1, cancelable: n = !1 } = {}) {
|
|
228
|
+
return new CustomEvent(e, { detail: t, bubbles: r, cancelable: n });
|
|
229
229
|
}
|
|
230
|
-
class
|
|
230
|
+
class Co {
|
|
231
231
|
/**
|
|
232
232
|
* @private
|
|
233
233
|
* @default false
|
|
@@ -257,17 +257,17 @@ class Io {
|
|
|
257
257
|
* @param {HTMLElement | SVGElement} anchor
|
|
258
258
|
* @returns {void}
|
|
259
259
|
*/
|
|
260
|
-
m(t,
|
|
260
|
+
m(t, r, n = null) {
|
|
261
261
|
this.e || (this.is_svg ? this.e = V(
|
|
262
262
|
/** @type {keyof SVGElementTagNameMap} */
|
|
263
|
-
|
|
263
|
+
r.nodeName
|
|
264
264
|
) : this.e = I(
|
|
265
265
|
/** @type {keyof HTMLElementTagNameMap} */
|
|
266
|
-
|
|
267
|
-
), this.t =
|
|
266
|
+
r.nodeType === 11 ? "TEMPLATE" : r.nodeName
|
|
267
|
+
), this.t = r.tagName !== "TEMPLATE" ? r : (
|
|
268
268
|
/** @type {HTMLTemplateElement} */
|
|
269
|
-
|
|
270
|
-
), this.c(t)), this.i(
|
|
269
|
+
r.content
|
|
270
|
+
), this.c(t)), this.i(n);
|
|
271
271
|
}
|
|
272
272
|
/**
|
|
273
273
|
* @param {string} html
|
|
@@ -281,8 +281,8 @@ class Io {
|
|
|
281
281
|
/**
|
|
282
282
|
* @returns {void} */
|
|
283
283
|
i(t) {
|
|
284
|
-
for (let
|
|
285
|
-
|
|
284
|
+
for (let r = 0; r < this.n.length; r += 1)
|
|
285
|
+
Y(this.t, this.n[r], t);
|
|
286
286
|
}
|
|
287
287
|
/**
|
|
288
288
|
* @param {string} html
|
|
@@ -297,190 +297,190 @@ class Io {
|
|
|
297
297
|
this.n.forEach(D);
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function Dr(e) {
|
|
301
301
|
const t = {};
|
|
302
302
|
return e.childNodes.forEach(
|
|
303
303
|
/** @param {Element} node */
|
|
304
|
-
(
|
|
305
|
-
t[
|
|
304
|
+
(r) => {
|
|
305
|
+
t[r.slot || "default"] = !0;
|
|
306
306
|
}
|
|
307
307
|
), t;
|
|
308
308
|
}
|
|
309
|
-
const
|
|
310
|
-
let
|
|
311
|
-
function
|
|
312
|
-
let t = 5381,
|
|
313
|
-
for (;
|
|
314
|
-
t = (t << 5) - t ^ e.charCodeAt(
|
|
309
|
+
const Ee = /* @__PURE__ */ new Map();
|
|
310
|
+
let xe = 0;
|
|
311
|
+
function Gr(e) {
|
|
312
|
+
let t = 5381, r = e.length;
|
|
313
|
+
for (; r--; )
|
|
314
|
+
t = (t << 5) - t ^ e.charCodeAt(r);
|
|
315
315
|
return t >>> 0;
|
|
316
316
|
}
|
|
317
|
-
function
|
|
318
|
-
const
|
|
319
|
-
return
|
|
317
|
+
function Fr(e, t) {
|
|
318
|
+
const r = { stylesheet: Mr(t), rules: {} };
|
|
319
|
+
return Ee.set(e, r), r;
|
|
320
320
|
}
|
|
321
|
-
function
|
|
322
|
-
const h = 16.666 /
|
|
321
|
+
function ct(e, t, r, n, i, o, a, s = 0) {
|
|
322
|
+
const h = 16.666 / n;
|
|
323
323
|
let u = `{
|
|
324
324
|
`;
|
|
325
|
-
for (let
|
|
326
|
-
const T = t + (
|
|
327
|
-
u +=
|
|
325
|
+
for (let _ = 0; _ <= 1; _ += h) {
|
|
326
|
+
const T = t + (r - t) * o(_);
|
|
327
|
+
u += _ * 100 + `%{${a(T, 1 - T)}}
|
|
328
328
|
`;
|
|
329
329
|
}
|
|
330
|
-
const l = u + `100% {${a(
|
|
331
|
-
}`,
|
|
332
|
-
|
|
330
|
+
const l = u + `100% {${a(r, 1 - r)}}
|
|
331
|
+
}`, f = `__svelte_${Gr(l)}_${s}`, c = at(e), { stylesheet: d, rules: p } = Ee.get(c) || Fr(c, e);
|
|
332
|
+
p[f] || (p[f] = !0, d.insertRule(`@keyframes ${f} ${l}`, d.cssRules.length));
|
|
333
333
|
const m = e.style.animation || "";
|
|
334
|
-
return e.style.animation = `${m ? `${m}, ` : ""}${
|
|
334
|
+
return e.style.animation = `${m ? `${m}, ` : ""}${f} ${n}ms linear ${i}ms 1 both`, xe += 1, f;
|
|
335
335
|
}
|
|
336
|
-
function
|
|
337
|
-
const
|
|
336
|
+
function jr(e, t) {
|
|
337
|
+
const r = (e.style.animation || "").split(", "), n = r.filter(
|
|
338
338
|
t ? (o) => o.indexOf(t) < 0 : (o) => o.indexOf("__svelte") === -1
|
|
339
339
|
// remove all Svelte animations
|
|
340
|
-
), i =
|
|
341
|
-
i && (e.style.animation =
|
|
340
|
+
), i = r.length - n.length;
|
|
341
|
+
i && (e.style.animation = n.join(", "), xe -= i, xe || kr());
|
|
342
342
|
}
|
|
343
|
-
function
|
|
344
|
-
|
|
345
|
-
|
|
343
|
+
function kr() {
|
|
344
|
+
st(() => {
|
|
345
|
+
xe || (Ee.forEach((e) => {
|
|
346
346
|
const { ownerNode: t } = e.stylesheet;
|
|
347
347
|
t && D(t);
|
|
348
|
-
}),
|
|
348
|
+
}), Ee.clear());
|
|
349
349
|
});
|
|
350
350
|
}
|
|
351
|
-
let
|
|
352
|
-
function
|
|
353
|
-
|
|
351
|
+
let oe;
|
|
352
|
+
function ie(e) {
|
|
353
|
+
oe = e;
|
|
354
354
|
}
|
|
355
|
-
function
|
|
356
|
-
if (!
|
|
355
|
+
function Vr() {
|
|
356
|
+
if (!oe)
|
|
357
357
|
throw new Error("Function called outside component initialization");
|
|
358
|
-
return
|
|
358
|
+
return oe;
|
|
359
359
|
}
|
|
360
|
-
function
|
|
361
|
-
|
|
360
|
+
function Xr(e) {
|
|
361
|
+
Vr().$$.on_mount.push(e);
|
|
362
362
|
}
|
|
363
|
-
const X = [],
|
|
363
|
+
const X = [], ke = [];
|
|
364
364
|
let z = [];
|
|
365
|
-
const
|
|
366
|
-
let
|
|
367
|
-
function
|
|
368
|
-
|
|
365
|
+
const ft = [], Xt = /* @__PURE__ */ Promise.resolve();
|
|
366
|
+
let Ve = !1;
|
|
367
|
+
function Wt() {
|
|
368
|
+
Ve || (Ve = !0, Xt.then(L));
|
|
369
369
|
}
|
|
370
|
-
function
|
|
371
|
-
return
|
|
370
|
+
function $o() {
|
|
371
|
+
return Wt(), Xt;
|
|
372
372
|
}
|
|
373
373
|
function Se(e) {
|
|
374
374
|
z.push(e);
|
|
375
375
|
}
|
|
376
|
-
const
|
|
376
|
+
const Me = /* @__PURE__ */ new Set();
|
|
377
377
|
let j = 0;
|
|
378
378
|
function L() {
|
|
379
379
|
if (j !== 0)
|
|
380
380
|
return;
|
|
381
|
-
const e =
|
|
381
|
+
const e = oe;
|
|
382
382
|
do {
|
|
383
383
|
try {
|
|
384
384
|
for (; j < X.length; ) {
|
|
385
385
|
const t = X[j];
|
|
386
|
-
j++,
|
|
386
|
+
j++, ie(t), Wr(t.$$);
|
|
387
387
|
}
|
|
388
388
|
} catch (t) {
|
|
389
389
|
throw X.length = 0, j = 0, t;
|
|
390
390
|
}
|
|
391
|
-
for (
|
|
392
|
-
|
|
391
|
+
for (ie(null), X.length = 0, j = 0; ke.length; )
|
|
392
|
+
ke.pop()();
|
|
393
393
|
for (let t = 0; t < z.length; t += 1) {
|
|
394
|
-
const
|
|
395
|
-
|
|
394
|
+
const r = z[t];
|
|
395
|
+
Me.has(r) || (Me.add(r), r());
|
|
396
396
|
}
|
|
397
397
|
z.length = 0;
|
|
398
398
|
} while (X.length);
|
|
399
|
-
for (;
|
|
400
|
-
|
|
401
|
-
|
|
399
|
+
for (; ft.length; )
|
|
400
|
+
ft.pop()();
|
|
401
|
+
Ve = !1, Me.clear(), ie(e);
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function Wr(e) {
|
|
404
404
|
if (e.fragment !== null) {
|
|
405
405
|
e.update(), G(e.before_update);
|
|
406
406
|
const t = e.dirty;
|
|
407
407
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Se);
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
|
-
function
|
|
411
|
-
const t = [],
|
|
412
|
-
z.forEach((
|
|
410
|
+
function zr(e) {
|
|
411
|
+
const t = [], r = [];
|
|
412
|
+
z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), z = t;
|
|
413
413
|
}
|
|
414
414
|
let re;
|
|
415
|
-
function
|
|
415
|
+
function Zr() {
|
|
416
416
|
return re || (re = Promise.resolve(), re.then(() => {
|
|
417
417
|
re = null;
|
|
418
418
|
})), re;
|
|
419
419
|
}
|
|
420
|
-
function
|
|
421
|
-
e.dispatchEvent(
|
|
420
|
+
function Ce(e, t, r) {
|
|
421
|
+
e.dispatchEvent(Ur(`${t ? "intro" : "outro"}${r}`));
|
|
422
422
|
}
|
|
423
423
|
const be = /* @__PURE__ */ new Set();
|
|
424
|
-
let
|
|
425
|
-
function
|
|
426
|
-
|
|
424
|
+
let M;
|
|
425
|
+
function Ro() {
|
|
426
|
+
M = {
|
|
427
427
|
r: 0,
|
|
428
428
|
c: [],
|
|
429
|
-
p:
|
|
429
|
+
p: M
|
|
430
430
|
// parent group
|
|
431
431
|
};
|
|
432
432
|
}
|
|
433
|
-
function
|
|
434
|
-
|
|
433
|
+
function Uo() {
|
|
434
|
+
M.r || G(M.c), M = M.p;
|
|
435
435
|
}
|
|
436
|
-
function
|
|
436
|
+
function qr(e, t) {
|
|
437
437
|
e && e.i && (be.delete(e), e.i(t));
|
|
438
438
|
}
|
|
439
|
-
function
|
|
439
|
+
function Do(e, t, r, n) {
|
|
440
440
|
if (e && e.o) {
|
|
441
441
|
if (be.has(e))
|
|
442
442
|
return;
|
|
443
|
-
be.add(e),
|
|
444
|
-
be.delete(e),
|
|
443
|
+
be.add(e), M.c.push(() => {
|
|
444
|
+
be.delete(e), n && (r && e.d(1), n());
|
|
445
445
|
}), e.o(t);
|
|
446
446
|
} else
|
|
447
|
-
|
|
447
|
+
n && n();
|
|
448
448
|
}
|
|
449
|
-
const
|
|
450
|
-
function
|
|
451
|
-
let o = t(e,
|
|
452
|
-
function
|
|
453
|
-
u &&
|
|
449
|
+
const Qr = { duration: 0 };
|
|
450
|
+
function Go(e, t, r, n) {
|
|
451
|
+
let o = t(e, r, { direction: "both" }), a = n ? 0 : 1, s = null, h = null, u = null, l;
|
|
452
|
+
function f() {
|
|
453
|
+
u && jr(e, u);
|
|
454
454
|
}
|
|
455
|
-
function
|
|
456
|
-
const
|
|
455
|
+
function c(p, m) {
|
|
456
|
+
const _ = (
|
|
457
457
|
/** @type {Program['d']} */
|
|
458
|
-
|
|
458
|
+
p.b - a
|
|
459
459
|
);
|
|
460
|
-
return m *= Math.abs(
|
|
460
|
+
return m *= Math.abs(_), {
|
|
461
461
|
a,
|
|
462
|
-
b:
|
|
463
|
-
d:
|
|
462
|
+
b: p.b,
|
|
463
|
+
d: _,
|
|
464
464
|
duration: m,
|
|
465
|
-
start:
|
|
466
|
-
end:
|
|
467
|
-
group:
|
|
465
|
+
start: p.start,
|
|
466
|
+
end: p.start + m,
|
|
467
|
+
group: p.group
|
|
468
468
|
};
|
|
469
469
|
}
|
|
470
|
-
function p
|
|
470
|
+
function d(p) {
|
|
471
471
|
const {
|
|
472
472
|
delay: m = 0,
|
|
473
|
-
duration:
|
|
474
|
-
easing: T =
|
|
473
|
+
duration: _ = 300,
|
|
474
|
+
easing: T = Br,
|
|
475
475
|
tick: P = H,
|
|
476
|
-
css:
|
|
477
|
-
} = o ||
|
|
478
|
-
start:
|
|
479
|
-
b:
|
|
476
|
+
css: x
|
|
477
|
+
} = o || Qr, O = {
|
|
478
|
+
start: Ir() + m,
|
|
479
|
+
b: p
|
|
480
480
|
};
|
|
481
|
-
|
|
482
|
-
e.inert, e.inert = !0)), s || h ? h = O : (
|
|
483
|
-
if (h && w > h.start && (s =
|
|
481
|
+
p || (O.group = M, M.r += 1), "inert" in e && (p ? l !== void 0 && (e.inert = l) : (l = /** @type {HTMLElement} */
|
|
482
|
+
e.inert, e.inert = !0)), s || h ? h = O : (x && (f(), u = ct(e, a, p, _, m, T, x)), p && P(0, 1), s = c(O, _), Se(() => Ce(e, p, "start")), Lr((w) => {
|
|
483
|
+
if (h && w > h.start && (s = c(h, _), h = null, Ce(e, s.b, "start"), x && (f(), u = ct(
|
|
484
484
|
e,
|
|
485
485
|
a,
|
|
486
486
|
s.b,
|
|
@@ -490,7 +490,7 @@ function $o(e, t, n, r) {
|
|
|
490
490
|
o.css
|
|
491
491
|
))), s) {
|
|
492
492
|
if (w >= s.end)
|
|
493
|
-
P(a = s.b, 1 - a),
|
|
493
|
+
P(a = s.b, 1 - a), Ce(e, s.b, "end"), h || (s.b ? f() : --s.group.r || G(s.group.c)), s = null;
|
|
494
494
|
else if (w >= s.start) {
|
|
495
495
|
const $ = w - s.start;
|
|
496
496
|
a = s.a + s.d * T($ / s.duration), P(a, 1 - a);
|
|
@@ -500,36 +500,36 @@ function $o(e, t, n, r) {
|
|
|
500
500
|
}));
|
|
501
501
|
}
|
|
502
502
|
return {
|
|
503
|
-
run(
|
|
504
|
-
|
|
505
|
-
o = o({ direction:
|
|
506
|
-
}) : p
|
|
503
|
+
run(p) {
|
|
504
|
+
ue(o) ? Zr().then(() => {
|
|
505
|
+
o = o({ direction: p ? "in" : "out" }), d(p);
|
|
506
|
+
}) : d(p);
|
|
507
507
|
},
|
|
508
508
|
end() {
|
|
509
|
-
|
|
509
|
+
f(), s = h = null;
|
|
510
510
|
}
|
|
511
511
|
};
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function Fo(e) {
|
|
514
514
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
515
515
|
}
|
|
516
|
-
function
|
|
517
|
-
const { fragment:
|
|
518
|
-
|
|
519
|
-
const o = e.$$.on_mount.map(
|
|
516
|
+
function Jr(e, t, r) {
|
|
517
|
+
const { fragment: n, after_update: i } = e.$$;
|
|
518
|
+
n && n.m(t, r), Se(() => {
|
|
519
|
+
const o = e.$$.on_mount.map($t).filter(ue);
|
|
520
520
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : G(o), e.$$.on_mount = [];
|
|
521
521
|
}), i.forEach(Se);
|
|
522
522
|
}
|
|
523
|
-
function
|
|
524
|
-
const
|
|
525
|
-
|
|
523
|
+
function Yr(e, t) {
|
|
524
|
+
const r = e.$$;
|
|
525
|
+
r.fragment !== null && (zr(r.after_update), G(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
526
526
|
}
|
|
527
|
-
function
|
|
528
|
-
e.$$.dirty[0] === -1 && (X.push(e),
|
|
527
|
+
function Kr(e, t) {
|
|
528
|
+
e.$$.dirty[0] === -1 && (X.push(e), Wt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
529
529
|
}
|
|
530
|
-
function
|
|
531
|
-
const h =
|
|
532
|
-
|
|
530
|
+
function en(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
531
|
+
const h = oe;
|
|
532
|
+
ie(e);
|
|
533
533
|
const u = e.$$ = {
|
|
534
534
|
fragment: null,
|
|
535
535
|
ctx: [],
|
|
@@ -537,7 +537,7 @@ function Jn(e, t, n, r, i, o, a = null, s = [-1]) {
|
|
|
537
537
|
props: o,
|
|
538
538
|
update: H,
|
|
539
539
|
not_equal: i,
|
|
540
|
-
bound:
|
|
540
|
+
bound: lt(),
|
|
541
541
|
// lifecycle
|
|
542
542
|
on_mount: [],
|
|
543
543
|
on_destroy: [],
|
|
@@ -546,28 +546,28 @@ function Jn(e, t, n, r, i, o, a = null, s = [-1]) {
|
|
|
546
546
|
after_update: [],
|
|
547
547
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
548
548
|
// everything else
|
|
549
|
-
callbacks:
|
|
549
|
+
callbacks: lt(),
|
|
550
550
|
dirty: s,
|
|
551
551
|
skip_bound: !1,
|
|
552
552
|
root: t.target || h.$$.root
|
|
553
553
|
};
|
|
554
554
|
a && a(u.root);
|
|
555
555
|
let l = !1;
|
|
556
|
-
if (u.ctx =
|
|
557
|
-
const
|
|
558
|
-
return u.ctx && i(u.ctx[
|
|
559
|
-
}) : [], u.update(), l = !0, G(u.before_update), u.fragment =
|
|
556
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...d) => {
|
|
557
|
+
const p = d.length ? d[0] : c;
|
|
558
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = p) && (!u.skip_bound && u.bound[f] && u.bound[f](p), l && Kr(e, f)), c;
|
|
559
|
+
}) : [], u.update(), l = !0, G(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
560
560
|
if (t.hydrate) {
|
|
561
|
-
const
|
|
562
|
-
u.fragment && u.fragment.l(
|
|
561
|
+
const f = $r(t.target);
|
|
562
|
+
u.fragment && u.fragment.l(f), f.forEach(D);
|
|
563
563
|
} else
|
|
564
564
|
u.fragment && u.fragment.c();
|
|
565
|
-
t.intro &&
|
|
565
|
+
t.intro && qr(e.$$.fragment), Jr(e, t.target, t.anchor), L();
|
|
566
566
|
}
|
|
567
|
-
|
|
567
|
+
ie(h);
|
|
568
568
|
}
|
|
569
|
-
let
|
|
570
|
-
typeof HTMLElement == "function" && (
|
|
569
|
+
let zt;
|
|
570
|
+
typeof HTMLElement == "function" && (zt = class extends HTMLElement {
|
|
571
571
|
/** The Svelte component constructor */
|
|
572
572
|
$$ctor;
|
|
573
573
|
/** Slots */
|
|
@@ -586,20 +586,20 @@ typeof HTMLElement == "function" && (kt = class extends HTMLElement {
|
|
|
586
586
|
$$l = {};
|
|
587
587
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
588
588
|
$$l_u = /* @__PURE__ */ new Map();
|
|
589
|
-
constructor(e, t,
|
|
590
|
-
super(), this.$$ctor = e, this.$$s = t,
|
|
589
|
+
constructor(e, t, r) {
|
|
590
|
+
super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
|
|
591
591
|
}
|
|
592
|
-
addEventListener(e, t,
|
|
592
|
+
addEventListener(e, t, r) {
|
|
593
593
|
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
594
|
-
const
|
|
595
|
-
this.$$l_u.set(t,
|
|
594
|
+
const n = this.$$c.$on(e, t);
|
|
595
|
+
this.$$l_u.set(t, n);
|
|
596
596
|
}
|
|
597
|
-
super.addEventListener(e, t,
|
|
597
|
+
super.addEventListener(e, t, r);
|
|
598
598
|
}
|
|
599
|
-
removeEventListener(e, t,
|
|
600
|
-
if (super.removeEventListener(e, t,
|
|
601
|
-
const
|
|
602
|
-
|
|
599
|
+
removeEventListener(e, t, r) {
|
|
600
|
+
if (super.removeEventListener(e, t, r), this.$$c) {
|
|
601
|
+
const n = this.$$l_u.get(t);
|
|
602
|
+
n && (n(), this.$$l_u.delete(t));
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
605
|
async connectedCallback() {
|
|
@@ -616,7 +616,7 @@ typeof HTMLElement == "function" && (kt = class extends HTMLElement {
|
|
|
616
616
|
* @param {HTMLElement} [anchor]
|
|
617
617
|
*/
|
|
618
618
|
m: function(h, u) {
|
|
619
|
-
|
|
619
|
+
Y(h, o, u);
|
|
620
620
|
},
|
|
621
621
|
d: function(h) {
|
|
622
622
|
h && D(o);
|
|
@@ -626,12 +626,12 @@ typeof HTMLElement == "function" && (kt = class extends HTMLElement {
|
|
|
626
626
|
};
|
|
627
627
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
628
628
|
return;
|
|
629
|
-
const t = {},
|
|
629
|
+
const t = {}, r = Dr(this);
|
|
630
630
|
for (const i of this.$$s)
|
|
631
|
-
i in
|
|
631
|
+
i in r && (t[i] = [e(i)]);
|
|
632
632
|
for (const i of this.attributes) {
|
|
633
633
|
const o = this.$$g_p(i.name);
|
|
634
|
-
o in this.$$d || (this.$$d[o] =
|
|
634
|
+
o in this.$$d || (this.$$d[o] = ye(o, i.value, this.$$p_d, "toProp"));
|
|
635
635
|
}
|
|
636
636
|
for (const i in this.$$p_d)
|
|
637
637
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -645,11 +645,11 @@ typeof HTMLElement == "function" && (kt = class extends HTMLElement {
|
|
|
645
645
|
}
|
|
646
646
|
}
|
|
647
647
|
});
|
|
648
|
-
const
|
|
648
|
+
const n = () => {
|
|
649
649
|
this.$$r = !0;
|
|
650
650
|
for (const i in this.$$p_d)
|
|
651
651
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
652
|
-
const o =
|
|
652
|
+
const o = ye(
|
|
653
653
|
i,
|
|
654
654
|
this.$$d[i],
|
|
655
655
|
this.$$p_d,
|
|
@@ -659,7 +659,7 @@ typeof HTMLElement == "function" && (kt = class extends HTMLElement {
|
|
|
659
659
|
}
|
|
660
660
|
this.$$r = !1;
|
|
661
661
|
};
|
|
662
|
-
this.$$c.$$.after_update.push(
|
|
662
|
+
this.$$c.$$.after_update.push(n), n();
|
|
663
663
|
for (const i in this.$$l)
|
|
664
664
|
for (const o of this.$$l[i]) {
|
|
665
665
|
const a = this.$$c.$on(i, o);
|
|
@@ -670,8 +670,8 @@ typeof HTMLElement == "function" && (kt = class extends HTMLElement {
|
|
|
670
670
|
}
|
|
671
671
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
672
672
|
// and setting attributes through setAttribute etc, this is helpful
|
|
673
|
-
attributeChangedCallback(e, t,
|
|
674
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
673
|
+
attributeChangedCallback(e, t, r) {
|
|
674
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ye(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
675
675
|
}
|
|
676
676
|
disconnectedCallback() {
|
|
677
677
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -684,11 +684,11 @@ typeof HTMLElement == "function" && (kt = class extends HTMLElement {
|
|
|
684
684
|
) || e;
|
|
685
685
|
}
|
|
686
686
|
});
|
|
687
|
-
function
|
|
688
|
-
const i =
|
|
689
|
-
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !
|
|
687
|
+
function ye(e, t, r, n) {
|
|
688
|
+
const i = r[e]?.type;
|
|
689
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
690
690
|
return t;
|
|
691
|
-
if (
|
|
691
|
+
if (n === "toAttribute")
|
|
692
692
|
switch (i) {
|
|
693
693
|
case "Object":
|
|
694
694
|
case "Array":
|
|
@@ -713,10 +713,10 @@ function ge(e, t, n, r) {
|
|
|
713
713
|
return t;
|
|
714
714
|
}
|
|
715
715
|
}
|
|
716
|
-
function
|
|
717
|
-
let a = class extends
|
|
716
|
+
function tn(e, t, r, n, i, o) {
|
|
717
|
+
let a = class extends zt {
|
|
718
718
|
constructor() {
|
|
719
|
-
super(e,
|
|
719
|
+
super(e, r, i), this.$$p_d = t;
|
|
720
720
|
}
|
|
721
721
|
static get observedAttributes() {
|
|
722
722
|
return Object.keys(t).map(
|
|
@@ -730,10 +730,10 @@ function Yn(e, t, n, r, i, o) {
|
|
|
730
730
|
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
731
731
|
},
|
|
732
732
|
set(h) {
|
|
733
|
-
h =
|
|
733
|
+
h = ye(s, h, t), this.$$d[s] = h, this.$$c?.$set({ [s]: h });
|
|
734
734
|
}
|
|
735
735
|
});
|
|
736
|
-
}),
|
|
736
|
+
}), n.forEach((s) => {
|
|
737
737
|
Object.defineProperty(a.prototype, s, {
|
|
738
738
|
get() {
|
|
739
739
|
return this.$$c?.[s];
|
|
@@ -742,7 +742,7 @@ function Yn(e, t, n, r, i, o) {
|
|
|
742
742
|
}), e.element = /** @type {any} */
|
|
743
743
|
a, a;
|
|
744
744
|
}
|
|
745
|
-
class
|
|
745
|
+
class rn {
|
|
746
746
|
/**
|
|
747
747
|
* ### PRIVATE API
|
|
748
748
|
*
|
|
@@ -761,7 +761,7 @@ class Kn {
|
|
|
761
761
|
$$set = void 0;
|
|
762
762
|
/** @returns {void} */
|
|
763
763
|
$destroy() {
|
|
764
|
-
|
|
764
|
+
Yr(this, 1), this.$destroy = H;
|
|
765
765
|
}
|
|
766
766
|
/**
|
|
767
767
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -769,13 +769,13 @@ class Kn {
|
|
|
769
769
|
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
770
770
|
* @returns {() => void}
|
|
771
771
|
*/
|
|
772
|
-
$on(t,
|
|
773
|
-
if (!
|
|
772
|
+
$on(t, r) {
|
|
773
|
+
if (!ue(r))
|
|
774
774
|
return H;
|
|
775
|
-
const
|
|
776
|
-
return
|
|
777
|
-
const i =
|
|
778
|
-
i !== -1 &&
|
|
775
|
+
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
776
|
+
return n.push(r), () => {
|
|
777
|
+
const i = n.indexOf(r);
|
|
778
|
+
i !== -1 && n.splice(i, 1);
|
|
779
779
|
};
|
|
780
780
|
}
|
|
781
781
|
/**
|
|
@@ -783,11 +783,11 @@ class Kn {
|
|
|
783
783
|
* @returns {void}
|
|
784
784
|
*/
|
|
785
785
|
$set(t) {
|
|
786
|
-
this.$$set && !
|
|
786
|
+
this.$$set && !Pr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
787
787
|
}
|
|
788
788
|
}
|
|
789
|
-
const
|
|
790
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
789
|
+
const nn = "4";
|
|
790
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(nn);
|
|
791
791
|
/*! *****************************************************************************
|
|
792
792
|
Copyright (c) Microsoft Corporation.
|
|
793
793
|
|
|
@@ -802,67 +802,48 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
802
802
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
803
803
|
PERFORMANCE OF THIS SOFTWARE.
|
|
804
804
|
***************************************************************************** */
|
|
805
|
-
var
|
|
806
|
-
return
|
|
807
|
-
|
|
808
|
-
} || function(
|
|
809
|
-
for (var i in
|
|
810
|
-
Object.prototype.hasOwnProperty.call(
|
|
811
|
-
},
|
|
805
|
+
var Xe = function(e, t) {
|
|
806
|
+
return Xe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
807
|
+
r.__proto__ = n;
|
|
808
|
+
} || function(r, n) {
|
|
809
|
+
for (var i in n)
|
|
810
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
811
|
+
}, Xe(e, t);
|
|
812
812
|
};
|
|
813
|
-
function
|
|
813
|
+
function le(e, t) {
|
|
814
814
|
if (typeof t != "function" && t !== null)
|
|
815
815
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
816
|
-
|
|
817
|
-
function
|
|
816
|
+
Xe(e, t);
|
|
817
|
+
function r() {
|
|
818
818
|
this.constructor = e;
|
|
819
819
|
}
|
|
820
|
-
e.prototype = t === null ? Object.create(t) : (
|
|
821
|
-
}
|
|
822
|
-
var y = function() {
|
|
823
|
-
return y = Object.assign || function(t) {
|
|
824
|
-
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
825
|
-
n = arguments[r];
|
|
826
|
-
for (var o in n)
|
|
827
|
-
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
828
|
-
}
|
|
829
|
-
return t;
|
|
830
|
-
}, y.apply(this, arguments);
|
|
831
|
-
};
|
|
832
|
-
function tr(e, t) {
|
|
833
|
-
var n = {};
|
|
834
|
-
for (var r in e)
|
|
835
|
-
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
836
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
837
|
-
for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
|
|
838
|
-
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
839
|
-
return n;
|
|
820
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
840
821
|
}
|
|
841
|
-
function
|
|
842
|
-
var t = typeof Symbol == "function" && Symbol.iterator,
|
|
843
|
-
if (
|
|
844
|
-
return
|
|
822
|
+
function We(e) {
|
|
823
|
+
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
824
|
+
if (r)
|
|
825
|
+
return r.call(e);
|
|
845
826
|
if (e && typeof e.length == "number")
|
|
846
827
|
return {
|
|
847
828
|
next: function() {
|
|
848
|
-
return e &&
|
|
829
|
+
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
849
830
|
}
|
|
850
831
|
};
|
|
851
832
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
852
833
|
}
|
|
853
|
-
function
|
|
854
|
-
var
|
|
855
|
-
if (!
|
|
834
|
+
function ze(e, t) {
|
|
835
|
+
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
836
|
+
if (!r)
|
|
856
837
|
return e;
|
|
857
|
-
var
|
|
838
|
+
var n = r.call(e), i, o = [], a;
|
|
858
839
|
try {
|
|
859
|
-
for (; (t === void 0 || t-- > 0) && !(i =
|
|
840
|
+
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
860
841
|
o.push(i.value);
|
|
861
842
|
} catch (s) {
|
|
862
843
|
a = { error: s };
|
|
863
844
|
} finally {
|
|
864
845
|
try {
|
|
865
|
-
i && !i.done && (
|
|
846
|
+
i && !i.done && (r = n.return) && r.call(n);
|
|
866
847
|
} finally {
|
|
867
848
|
if (a)
|
|
868
849
|
throw a.error;
|
|
@@ -870,49 +851,49 @@ function Ve(e, t) {
|
|
|
870
851
|
}
|
|
871
852
|
return o;
|
|
872
853
|
}
|
|
873
|
-
function
|
|
874
|
-
if (
|
|
875
|
-
for (var
|
|
876
|
-
(o || !(
|
|
854
|
+
function Ze(e, t, r) {
|
|
855
|
+
if (arguments.length === 2)
|
|
856
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
857
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
877
858
|
return e.concat(o || t);
|
|
878
859
|
}
|
|
879
|
-
function
|
|
860
|
+
function C(e) {
|
|
880
861
|
return typeof e == "function";
|
|
881
862
|
}
|
|
882
|
-
function
|
|
883
|
-
var t = function(
|
|
884
|
-
Error.call(
|
|
885
|
-
},
|
|
886
|
-
return
|
|
887
|
-
}
|
|
888
|
-
var
|
|
889
|
-
return function(
|
|
890
|
-
e(this), this.message =
|
|
891
|
-
` +
|
|
892
|
-
return i + 1 + ") " +
|
|
863
|
+
function Zt(e) {
|
|
864
|
+
var t = function(n) {
|
|
865
|
+
Error.call(n), n.stack = new Error().stack;
|
|
866
|
+
}, r = e(t);
|
|
867
|
+
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
868
|
+
}
|
|
869
|
+
var $e = Zt(function(e) {
|
|
870
|
+
return function(r) {
|
|
871
|
+
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
872
|
+
` + r.map(function(n, i) {
|
|
873
|
+
return i + 1 + ") " + n.toString();
|
|
893
874
|
}).join(`
|
|
894
|
-
`) : "", this.name = "UnsubscriptionError", this.errors =
|
|
875
|
+
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
895
876
|
};
|
|
896
877
|
});
|
|
897
|
-
function
|
|
878
|
+
function qe(e, t) {
|
|
898
879
|
if (e) {
|
|
899
|
-
var
|
|
900
|
-
0 <=
|
|
880
|
+
var r = e.indexOf(t);
|
|
881
|
+
0 <= r && e.splice(r, 1);
|
|
901
882
|
}
|
|
902
883
|
}
|
|
903
|
-
var
|
|
884
|
+
var Be = function() {
|
|
904
885
|
function e(t) {
|
|
905
886
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
906
887
|
}
|
|
907
888
|
return e.prototype.unsubscribe = function() {
|
|
908
|
-
var t,
|
|
889
|
+
var t, r, n, i, o;
|
|
909
890
|
if (!this.closed) {
|
|
910
891
|
this.closed = !0;
|
|
911
892
|
var a = this._parentage;
|
|
912
893
|
if (a)
|
|
913
894
|
if (this._parentage = null, Array.isArray(a))
|
|
914
895
|
try {
|
|
915
|
-
for (var s =
|
|
896
|
+
for (var s = We(a), h = s.next(); !h.done; h = s.next()) {
|
|
916
897
|
var u = h.value;
|
|
917
898
|
u.remove(this);
|
|
918
899
|
}
|
|
@@ -920,7 +901,7 @@ var He = function() {
|
|
|
920
901
|
t = { error: m };
|
|
921
902
|
} finally {
|
|
922
903
|
try {
|
|
923
|
-
h && !h.done && (
|
|
904
|
+
h && !h.done && (r = s.return) && r.call(s);
|
|
924
905
|
} finally {
|
|
925
906
|
if (t)
|
|
926
907
|
throw t.error;
|
|
@@ -929,122 +910,118 @@ var He = function() {
|
|
|
929
910
|
else
|
|
930
911
|
a.remove(this);
|
|
931
912
|
var l = this.initialTeardown;
|
|
932
|
-
if (
|
|
913
|
+
if (C(l))
|
|
933
914
|
try {
|
|
934
915
|
l();
|
|
935
916
|
} catch (m) {
|
|
936
|
-
o = m instanceof
|
|
917
|
+
o = m instanceof $e ? m.errors : [m];
|
|
937
918
|
}
|
|
938
|
-
var
|
|
939
|
-
if (
|
|
919
|
+
var f = this._finalizers;
|
|
920
|
+
if (f) {
|
|
940
921
|
this._finalizers = null;
|
|
941
922
|
try {
|
|
942
|
-
for (var
|
|
943
|
-
var
|
|
923
|
+
for (var c = We(f), d = c.next(); !d.done; d = c.next()) {
|
|
924
|
+
var p = d.value;
|
|
944
925
|
try {
|
|
945
|
-
|
|
926
|
+
pt(p);
|
|
946
927
|
} catch (m) {
|
|
947
|
-
o = o ?? [], m instanceof
|
|
928
|
+
o = o ?? [], m instanceof $e ? o = Ze(Ze([], ze(o)), ze(m.errors)) : o.push(m);
|
|
948
929
|
}
|
|
949
930
|
}
|
|
950
931
|
} catch (m) {
|
|
951
|
-
|
|
932
|
+
n = { error: m };
|
|
952
933
|
} finally {
|
|
953
934
|
try {
|
|
954
|
-
|
|
935
|
+
d && !d.done && (i = c.return) && i.call(c);
|
|
955
936
|
} finally {
|
|
956
|
-
if (
|
|
957
|
-
throw
|
|
937
|
+
if (n)
|
|
938
|
+
throw n.error;
|
|
958
939
|
}
|
|
959
940
|
}
|
|
960
941
|
}
|
|
961
942
|
if (o)
|
|
962
|
-
throw new
|
|
943
|
+
throw new $e(o);
|
|
963
944
|
}
|
|
964
945
|
}, e.prototype.add = function(t) {
|
|
965
|
-
var
|
|
946
|
+
var r;
|
|
966
947
|
if (t && t !== this)
|
|
967
948
|
if (this.closed)
|
|
968
|
-
|
|
949
|
+
pt(t);
|
|
969
950
|
else {
|
|
970
951
|
if (t instanceof e) {
|
|
971
952
|
if (t.closed || t._hasParent(this))
|
|
972
953
|
return;
|
|
973
954
|
t._addParent(this);
|
|
974
955
|
}
|
|
975
|
-
(this._finalizers = (
|
|
956
|
+
(this._finalizers = (r = this._finalizers) !== null && r !== void 0 ? r : []).push(t);
|
|
976
957
|
}
|
|
977
958
|
}, e.prototype._hasParent = function(t) {
|
|
978
|
-
var
|
|
979
|
-
return
|
|
959
|
+
var r = this._parentage;
|
|
960
|
+
return r === t || Array.isArray(r) && r.includes(t);
|
|
980
961
|
}, e.prototype._addParent = function(t) {
|
|
981
|
-
var
|
|
982
|
-
this._parentage = Array.isArray(
|
|
962
|
+
var r = this._parentage;
|
|
963
|
+
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
983
964
|
}, e.prototype._removeParent = function(t) {
|
|
984
|
-
var
|
|
985
|
-
|
|
965
|
+
var r = this._parentage;
|
|
966
|
+
r === t ? this._parentage = null : Array.isArray(r) && qe(r, t);
|
|
986
967
|
}, e.prototype.remove = function(t) {
|
|
987
|
-
var
|
|
988
|
-
|
|
968
|
+
var r = this._finalizers;
|
|
969
|
+
r && qe(r, t), t instanceof e && t._removeParent(this);
|
|
989
970
|
}, e.EMPTY = function() {
|
|
990
971
|
var t = new e();
|
|
991
972
|
return t.closed = !0, t;
|
|
992
973
|
}(), e;
|
|
993
|
-
}(),
|
|
994
|
-
function
|
|
995
|
-
return e instanceof
|
|
996
|
-
}
|
|
997
|
-
function
|
|
998
|
-
|
|
999
|
-
}
|
|
1000
|
-
var
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
Promise: void 0,
|
|
1004
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
1005
|
-
useDeprecatedNextContext: !1
|
|
1006
|
-
}, rr = {
|
|
974
|
+
}(), qt = Be.EMPTY;
|
|
975
|
+
function Qt(e) {
|
|
976
|
+
return e instanceof Be || e && "closed" in e && C(e.remove) && C(e.add) && C(e.unsubscribe);
|
|
977
|
+
}
|
|
978
|
+
function pt(e) {
|
|
979
|
+
C(e) ? e() : e.unsubscribe();
|
|
980
|
+
}
|
|
981
|
+
var on = {
|
|
982
|
+
Promise: void 0
|
|
983
|
+
}, sn = {
|
|
1007
984
|
setTimeout: function(e, t) {
|
|
1008
|
-
for (var
|
|
1009
|
-
n
|
|
1010
|
-
return setTimeout.apply(void 0,
|
|
985
|
+
for (var r = [], n = 2; n < arguments.length; n++)
|
|
986
|
+
r[n - 2] = arguments[n];
|
|
987
|
+
return setTimeout.apply(void 0, Ze([e, t], ze(r)));
|
|
1011
988
|
},
|
|
1012
989
|
clearTimeout: function(e) {
|
|
1013
990
|
return clearTimeout(e);
|
|
1014
991
|
},
|
|
1015
992
|
delegate: void 0
|
|
1016
993
|
};
|
|
1017
|
-
function
|
|
1018
|
-
|
|
994
|
+
function an(e) {
|
|
995
|
+
sn.setTimeout(function() {
|
|
1019
996
|
throw e;
|
|
1020
997
|
});
|
|
1021
998
|
}
|
|
1022
|
-
function
|
|
999
|
+
function dt() {
|
|
1023
1000
|
}
|
|
1024
|
-
function
|
|
1001
|
+
function ge(e) {
|
|
1025
1002
|
e();
|
|
1026
1003
|
}
|
|
1027
|
-
var
|
|
1028
|
-
|
|
1029
|
-
function t(
|
|
1030
|
-
var
|
|
1031
|
-
return
|
|
1004
|
+
var Jt = function(e) {
|
|
1005
|
+
le(t, e);
|
|
1006
|
+
function t(r) {
|
|
1007
|
+
var n = e.call(this) || this;
|
|
1008
|
+
return n.isStopped = !1, r ? (n.destination = r, Qt(r) && r.add(n)) : n.destination = ln, n;
|
|
1032
1009
|
}
|
|
1033
|
-
return t.create = function(
|
|
1034
|
-
return new
|
|
1035
|
-
}, t.prototype.next = function(
|
|
1036
|
-
this.isStopped || this._next(
|
|
1037
|
-
}, t.prototype.error = function(
|
|
1038
|
-
this.isStopped || (this.isStopped = !0, this._error(
|
|
1010
|
+
return t.create = function(r, n, i) {
|
|
1011
|
+
return new Qe(r, n, i);
|
|
1012
|
+
}, t.prototype.next = function(r) {
|
|
1013
|
+
this.isStopped || this._next(r);
|
|
1014
|
+
}, t.prototype.error = function(r) {
|
|
1015
|
+
this.isStopped || (this.isStopped = !0, this._error(r));
|
|
1039
1016
|
}, t.prototype.complete = function() {
|
|
1040
1017
|
this.isStopped || (this.isStopped = !0, this._complete());
|
|
1041
1018
|
}, t.prototype.unsubscribe = function() {
|
|
1042
1019
|
this.closed || (this.isStopped = !0, e.prototype.unsubscribe.call(this), this.destination = null);
|
|
1043
|
-
}, t.prototype._next = function(
|
|
1044
|
-
this.destination.next(
|
|
1045
|
-
}, t.prototype._error = function(
|
|
1020
|
+
}, t.prototype._next = function(r) {
|
|
1021
|
+
this.destination.next(r);
|
|
1022
|
+
}, t.prototype._error = function(r) {
|
|
1046
1023
|
try {
|
|
1047
|
-
this.destination.error(
|
|
1024
|
+
this.destination.error(r);
|
|
1048
1025
|
} finally {
|
|
1049
1026
|
this.unsubscribe();
|
|
1050
1027
|
}
|
|
@@ -1055,96 +1032,96 @@ var zt = function(e) {
|
|
|
1055
1032
|
this.unsubscribe();
|
|
1056
1033
|
}
|
|
1057
1034
|
}, t;
|
|
1058
|
-
}(
|
|
1035
|
+
}(Be), un = function() {
|
|
1059
1036
|
function e(t) {
|
|
1060
1037
|
this.partialObserver = t;
|
|
1061
1038
|
}
|
|
1062
1039
|
return e.prototype.next = function(t) {
|
|
1063
|
-
var
|
|
1064
|
-
if (
|
|
1040
|
+
var r = this.partialObserver;
|
|
1041
|
+
if (r.next)
|
|
1065
1042
|
try {
|
|
1066
|
-
|
|
1067
|
-
} catch (
|
|
1068
|
-
|
|
1043
|
+
r.next(t);
|
|
1044
|
+
} catch (n) {
|
|
1045
|
+
de(n);
|
|
1069
1046
|
}
|
|
1070
1047
|
}, e.prototype.error = function(t) {
|
|
1071
|
-
var
|
|
1072
|
-
if (
|
|
1048
|
+
var r = this.partialObserver;
|
|
1049
|
+
if (r.error)
|
|
1073
1050
|
try {
|
|
1074
|
-
|
|
1075
|
-
} catch (
|
|
1076
|
-
|
|
1051
|
+
r.error(t);
|
|
1052
|
+
} catch (n) {
|
|
1053
|
+
de(n);
|
|
1077
1054
|
}
|
|
1078
1055
|
else
|
|
1079
|
-
|
|
1056
|
+
de(t);
|
|
1080
1057
|
}, e.prototype.complete = function() {
|
|
1081
1058
|
var t = this.partialObserver;
|
|
1082
1059
|
if (t.complete)
|
|
1083
1060
|
try {
|
|
1084
1061
|
t.complete();
|
|
1085
|
-
} catch (
|
|
1086
|
-
|
|
1062
|
+
} catch (r) {
|
|
1063
|
+
de(r);
|
|
1087
1064
|
}
|
|
1088
1065
|
}, e;
|
|
1089
|
-
}(),
|
|
1090
|
-
|
|
1091
|
-
function t(
|
|
1066
|
+
}(), Qe = function(e) {
|
|
1067
|
+
le(t, e);
|
|
1068
|
+
function t(r, n, i) {
|
|
1092
1069
|
var o = e.call(this) || this, a;
|
|
1093
|
-
return
|
|
1094
|
-
next:
|
|
1095
|
-
error:
|
|
1070
|
+
return C(r) || !r ? a = {
|
|
1071
|
+
next: r ?? void 0,
|
|
1072
|
+
error: n ?? void 0,
|
|
1096
1073
|
complete: i ?? void 0
|
|
1097
|
-
} : a =
|
|
1074
|
+
} : a = r, o.destination = new un(a), o;
|
|
1098
1075
|
}
|
|
1099
1076
|
return t;
|
|
1100
|
-
}(
|
|
1101
|
-
function
|
|
1102
|
-
|
|
1077
|
+
}(Jt);
|
|
1078
|
+
function de(e) {
|
|
1079
|
+
an(e);
|
|
1103
1080
|
}
|
|
1104
|
-
function
|
|
1081
|
+
function hn(e) {
|
|
1105
1082
|
throw e;
|
|
1106
1083
|
}
|
|
1107
|
-
var
|
|
1084
|
+
var ln = {
|
|
1108
1085
|
closed: !0,
|
|
1109
|
-
next:
|
|
1110
|
-
error:
|
|
1111
|
-
complete:
|
|
1112
|
-
},
|
|
1086
|
+
next: dt,
|
|
1087
|
+
error: hn,
|
|
1088
|
+
complete: dt
|
|
1089
|
+
}, cn = function() {
|
|
1113
1090
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
1114
1091
|
}();
|
|
1115
|
-
function
|
|
1092
|
+
function fn(e) {
|
|
1116
1093
|
return e;
|
|
1117
1094
|
}
|
|
1118
|
-
function
|
|
1119
|
-
return e.length === 0 ?
|
|
1120
|
-
return e.reduce(function(
|
|
1121
|
-
return i(
|
|
1122
|
-
},
|
|
1095
|
+
function pn(e) {
|
|
1096
|
+
return e.length === 0 ? fn : e.length === 1 ? e[0] : function(r) {
|
|
1097
|
+
return e.reduce(function(n, i) {
|
|
1098
|
+
return i(n);
|
|
1099
|
+
}, r);
|
|
1123
1100
|
};
|
|
1124
1101
|
}
|
|
1125
|
-
var
|
|
1102
|
+
var mt = function() {
|
|
1126
1103
|
function e(t) {
|
|
1127
1104
|
t && (this._subscribe = t);
|
|
1128
1105
|
}
|
|
1129
1106
|
return e.prototype.lift = function(t) {
|
|
1130
|
-
var
|
|
1131
|
-
return
|
|
1132
|
-
}, e.prototype.subscribe = function(t,
|
|
1133
|
-
var i = this, o =
|
|
1134
|
-
return
|
|
1107
|
+
var r = new e();
|
|
1108
|
+
return r.source = this, r.operator = t, r;
|
|
1109
|
+
}, e.prototype.subscribe = function(t, r, n) {
|
|
1110
|
+
var i = this, o = mn(t) ? t : new Qe(t, r, n);
|
|
1111
|
+
return ge(function() {
|
|
1135
1112
|
var a = i, s = a.operator, h = a.source;
|
|
1136
1113
|
o.add(s ? s.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
1137
1114
|
}), o;
|
|
1138
1115
|
}, e.prototype._trySubscribe = function(t) {
|
|
1139
1116
|
try {
|
|
1140
1117
|
return this._subscribe(t);
|
|
1141
|
-
} catch (
|
|
1142
|
-
t.error(
|
|
1118
|
+
} catch (r) {
|
|
1119
|
+
t.error(r);
|
|
1143
1120
|
}
|
|
1144
|
-
}, e.prototype.forEach = function(t,
|
|
1145
|
-
var
|
|
1146
|
-
return
|
|
1147
|
-
var a = new
|
|
1121
|
+
}, e.prototype.forEach = function(t, r) {
|
|
1122
|
+
var n = this;
|
|
1123
|
+
return r = bt(r), new r(function(i, o) {
|
|
1124
|
+
var a = new Qe({
|
|
1148
1125
|
next: function(s) {
|
|
1149
1126
|
try {
|
|
1150
1127
|
t(s);
|
|
@@ -1155,69 +1132,69 @@ var ft = function() {
|
|
|
1155
1132
|
error: o,
|
|
1156
1133
|
complete: i
|
|
1157
1134
|
});
|
|
1158
|
-
|
|
1135
|
+
n.subscribe(a);
|
|
1159
1136
|
});
|
|
1160
1137
|
}, e.prototype._subscribe = function(t) {
|
|
1161
|
-
var
|
|
1162
|
-
return (
|
|
1163
|
-
}, e.prototype[
|
|
1138
|
+
var r;
|
|
1139
|
+
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
1140
|
+
}, e.prototype[cn] = function() {
|
|
1164
1141
|
return this;
|
|
1165
1142
|
}, e.prototype.pipe = function() {
|
|
1166
|
-
for (var t = [],
|
|
1167
|
-
t[
|
|
1168
|
-
return
|
|
1143
|
+
for (var t = [], r = 0; r < arguments.length; r++)
|
|
1144
|
+
t[r] = arguments[r];
|
|
1145
|
+
return pn(t)(this);
|
|
1169
1146
|
}, e.prototype.toPromise = function(t) {
|
|
1170
|
-
var
|
|
1171
|
-
return t =
|
|
1147
|
+
var r = this;
|
|
1148
|
+
return t = bt(t), new t(function(n, i) {
|
|
1172
1149
|
var o;
|
|
1173
|
-
|
|
1150
|
+
r.subscribe(function(a) {
|
|
1174
1151
|
return o = a;
|
|
1175
1152
|
}, function(a) {
|
|
1176
1153
|
return i(a);
|
|
1177
1154
|
}, function() {
|
|
1178
|
-
return
|
|
1155
|
+
return n(o);
|
|
1179
1156
|
});
|
|
1180
1157
|
});
|
|
1181
1158
|
}, e.create = function(t) {
|
|
1182
1159
|
return new e(t);
|
|
1183
1160
|
}, e;
|
|
1184
1161
|
}();
|
|
1185
|
-
function
|
|
1162
|
+
function bt(e) {
|
|
1186
1163
|
var t;
|
|
1187
|
-
return (t = e ??
|
|
1164
|
+
return (t = e ?? on.Promise) !== null && t !== void 0 ? t : Promise;
|
|
1188
1165
|
}
|
|
1189
|
-
function
|
|
1190
|
-
return e &&
|
|
1166
|
+
function dn(e) {
|
|
1167
|
+
return e && C(e.next) && C(e.error) && C(e.complete);
|
|
1191
1168
|
}
|
|
1192
|
-
function
|
|
1193
|
-
return e && e instanceof
|
|
1169
|
+
function mn(e) {
|
|
1170
|
+
return e && e instanceof Jt || dn(e) && Qt(e);
|
|
1194
1171
|
}
|
|
1195
|
-
var
|
|
1172
|
+
var bn = Zt(function(e) {
|
|
1196
1173
|
return function() {
|
|
1197
1174
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
1198
1175
|
};
|
|
1199
|
-
}),
|
|
1200
|
-
|
|
1176
|
+
}), Yt = function(e) {
|
|
1177
|
+
le(t, e);
|
|
1201
1178
|
function t() {
|
|
1202
|
-
var
|
|
1203
|
-
return
|
|
1179
|
+
var r = e.call(this) || this;
|
|
1180
|
+
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
1204
1181
|
}
|
|
1205
|
-
return t.prototype.lift = function(
|
|
1206
|
-
var
|
|
1207
|
-
return
|
|
1182
|
+
return t.prototype.lift = function(r) {
|
|
1183
|
+
var n = new yt(this, this);
|
|
1184
|
+
return n.operator = r, n;
|
|
1208
1185
|
}, t.prototype._throwIfClosed = function() {
|
|
1209
1186
|
if (this.closed)
|
|
1210
|
-
throw new
|
|
1211
|
-
}, t.prototype.next = function(
|
|
1212
|
-
var
|
|
1213
|
-
|
|
1187
|
+
throw new bn();
|
|
1188
|
+
}, t.prototype.next = function(r) {
|
|
1189
|
+
var n = this;
|
|
1190
|
+
ge(function() {
|
|
1214
1191
|
var i, o;
|
|
1215
|
-
if (
|
|
1216
|
-
|
|
1192
|
+
if (n._throwIfClosed(), !n.isStopped) {
|
|
1193
|
+
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
1217
1194
|
try {
|
|
1218
|
-
for (var a =
|
|
1195
|
+
for (var a = We(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
1219
1196
|
var h = s.value;
|
|
1220
|
-
h.next(
|
|
1197
|
+
h.next(r);
|
|
1221
1198
|
}
|
|
1222
1199
|
} catch (u) {
|
|
1223
1200
|
i = { error: u };
|
|
@@ -1231,118 +1208,118 @@ var dr = Vt(function(e) {
|
|
|
1231
1208
|
}
|
|
1232
1209
|
}
|
|
1233
1210
|
});
|
|
1234
|
-
}, t.prototype.error = function(
|
|
1235
|
-
var
|
|
1236
|
-
|
|
1237
|
-
if (
|
|
1238
|
-
|
|
1239
|
-
for (var i =
|
|
1240
|
-
i.shift().error(
|
|
1211
|
+
}, t.prototype.error = function(r) {
|
|
1212
|
+
var n = this;
|
|
1213
|
+
ge(function() {
|
|
1214
|
+
if (n._throwIfClosed(), !n.isStopped) {
|
|
1215
|
+
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
1216
|
+
for (var i = n.observers; i.length; )
|
|
1217
|
+
i.shift().error(r);
|
|
1241
1218
|
}
|
|
1242
1219
|
});
|
|
1243
1220
|
}, t.prototype.complete = function() {
|
|
1244
|
-
var
|
|
1245
|
-
|
|
1246
|
-
if (
|
|
1247
|
-
|
|
1248
|
-
for (var
|
|
1249
|
-
|
|
1221
|
+
var r = this;
|
|
1222
|
+
ge(function() {
|
|
1223
|
+
if (r._throwIfClosed(), !r.isStopped) {
|
|
1224
|
+
r.isStopped = !0;
|
|
1225
|
+
for (var n = r.observers; n.length; )
|
|
1226
|
+
n.shift().complete();
|
|
1250
1227
|
}
|
|
1251
1228
|
});
|
|
1252
1229
|
}, t.prototype.unsubscribe = function() {
|
|
1253
1230
|
this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
|
|
1254
1231
|
}, Object.defineProperty(t.prototype, "observed", {
|
|
1255
1232
|
get: function() {
|
|
1256
|
-
var
|
|
1257
|
-
return ((
|
|
1233
|
+
var r;
|
|
1234
|
+
return ((r = this.observers) === null || r === void 0 ? void 0 : r.length) > 0;
|
|
1258
1235
|
},
|
|
1259
1236
|
enumerable: !1,
|
|
1260
1237
|
configurable: !0
|
|
1261
|
-
}), t.prototype._trySubscribe = function(
|
|
1262
|
-
return this._throwIfClosed(), e.prototype._trySubscribe.call(this,
|
|
1263
|
-
}, t.prototype._subscribe = function(
|
|
1264
|
-
return this._throwIfClosed(), this._checkFinalizedStatuses(
|
|
1265
|
-
}, t.prototype._innerSubscribe = function(
|
|
1266
|
-
var
|
|
1267
|
-
return o || a ?
|
|
1268
|
-
|
|
1238
|
+
}), t.prototype._trySubscribe = function(r) {
|
|
1239
|
+
return this._throwIfClosed(), e.prototype._trySubscribe.call(this, r);
|
|
1240
|
+
}, t.prototype._subscribe = function(r) {
|
|
1241
|
+
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
1242
|
+
}, t.prototype._innerSubscribe = function(r) {
|
|
1243
|
+
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
1244
|
+
return o || a ? qt : (this.currentObservers = null, s.push(r), new Be(function() {
|
|
1245
|
+
n.currentObservers = null, qe(s, r);
|
|
1269
1246
|
}));
|
|
1270
|
-
}, t.prototype._checkFinalizedStatuses = function(
|
|
1271
|
-
var
|
|
1272
|
-
i ?
|
|
1247
|
+
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
1248
|
+
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
1249
|
+
i ? r.error(o) : a && r.complete();
|
|
1273
1250
|
}, t.prototype.asObservable = function() {
|
|
1274
|
-
var
|
|
1275
|
-
return
|
|
1276
|
-
}, t.create = function(
|
|
1277
|
-
return new
|
|
1251
|
+
var r = new mt();
|
|
1252
|
+
return r.source = this, r;
|
|
1253
|
+
}, t.create = function(r, n) {
|
|
1254
|
+
return new yt(r, n);
|
|
1278
1255
|
}, t;
|
|
1279
|
-
}(
|
|
1280
|
-
|
|
1281
|
-
function t(
|
|
1256
|
+
}(mt), yt = function(e) {
|
|
1257
|
+
le(t, e);
|
|
1258
|
+
function t(r, n) {
|
|
1282
1259
|
var i = e.call(this) || this;
|
|
1283
|
-
return i.destination =
|
|
1260
|
+
return i.destination = r, i.source = n, i;
|
|
1284
1261
|
}
|
|
1285
|
-
return t.prototype.next = function(
|
|
1286
|
-
var
|
|
1287
|
-
(i = (
|
|
1288
|
-
}, t.prototype.error = function(
|
|
1289
|
-
var
|
|
1290
|
-
(i = (
|
|
1262
|
+
return t.prototype.next = function(r) {
|
|
1263
|
+
var n, i;
|
|
1264
|
+
(i = (n = this.destination) === null || n === void 0 ? void 0 : n.next) === null || i === void 0 || i.call(n, r);
|
|
1265
|
+
}, t.prototype.error = function(r) {
|
|
1266
|
+
var n, i;
|
|
1267
|
+
(i = (n = this.destination) === null || n === void 0 ? void 0 : n.error) === null || i === void 0 || i.call(n, r);
|
|
1291
1268
|
}, t.prototype.complete = function() {
|
|
1292
|
-
var
|
|
1293
|
-
(
|
|
1294
|
-
}, t.prototype._subscribe = function(
|
|
1295
|
-
var
|
|
1296
|
-
return (i = (
|
|
1269
|
+
var r, n;
|
|
1270
|
+
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1271
|
+
}, t.prototype._subscribe = function(r) {
|
|
1272
|
+
var n, i;
|
|
1273
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : qt;
|
|
1297
1274
|
}, t;
|
|
1298
|
-
}(
|
|
1275
|
+
}(Yt), Kt = {
|
|
1299
1276
|
now: function() {
|
|
1300
|
-
return (
|
|
1277
|
+
return (Kt.delegate || Date).now();
|
|
1301
1278
|
},
|
|
1302
1279
|
delegate: void 0
|
|
1303
|
-
},
|
|
1304
|
-
|
|
1305
|
-
function t(
|
|
1306
|
-
|
|
1280
|
+
}, yn = function(e) {
|
|
1281
|
+
le(t, e);
|
|
1282
|
+
function t(r, n, i) {
|
|
1283
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Kt);
|
|
1307
1284
|
var o = e.call(this) || this;
|
|
1308
|
-
return o._bufferSize =
|
|
1285
|
+
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
1309
1286
|
}
|
|
1310
|
-
return t.prototype.next = function(
|
|
1311
|
-
var
|
|
1312
|
-
i || (o.push(
|
|
1313
|
-
}, t.prototype._subscribe = function(
|
|
1287
|
+
return t.prototype.next = function(r) {
|
|
1288
|
+
var n = this, i = n.isStopped, o = n._buffer, a = n._infiniteTimeWindow, s = n._timestampProvider, h = n._windowTime;
|
|
1289
|
+
i || (o.push(r), !a && o.push(s.now() + h)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
1290
|
+
}, t.prototype._subscribe = function(r) {
|
|
1314
1291
|
this._throwIfClosed(), this._trimBuffer();
|
|
1315
|
-
for (var
|
|
1316
|
-
|
|
1317
|
-
return this._checkFinalizedStatuses(
|
|
1292
|
+
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(), h = 0; h < s.length && !r.closed; h += o ? 1 : 2)
|
|
1293
|
+
r.next(s[h]);
|
|
1294
|
+
return this._checkFinalizedStatuses(r), n;
|
|
1318
1295
|
}, t.prototype._trimBuffer = function() {
|
|
1319
|
-
var
|
|
1320
|
-
if (
|
|
1296
|
+
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, a = r._infiniteTimeWindow, s = (a ? 1 : 2) * n;
|
|
1297
|
+
if (n < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
|
|
1321
1298
|
for (var h = i.now(), u = 0, l = 1; l < o.length && o[l] <= h; l += 2)
|
|
1322
1299
|
u = l;
|
|
1323
1300
|
u && o.splice(0, u + 1);
|
|
1324
1301
|
}
|
|
1325
1302
|
}, t;
|
|
1326
|
-
}(
|
|
1327
|
-
const
|
|
1328
|
-
if (
|
|
1329
|
-
const
|
|
1330
|
-
|
|
1303
|
+
}(Yt);
|
|
1304
|
+
const gt = [], vt = {}, gn = (e, t = 0) => {
|
|
1305
|
+
if (gt.indexOf(e) == -1) {
|
|
1306
|
+
const r = new yn(t);
|
|
1307
|
+
vt[e] = r, gt.push(e);
|
|
1331
1308
|
}
|
|
1332
|
-
return
|
|
1309
|
+
return vt[e];
|
|
1333
1310
|
}, k = [];
|
|
1334
|
-
function
|
|
1311
|
+
function vn(e, t) {
|
|
1335
1312
|
return {
|
|
1336
|
-
subscribe:
|
|
1313
|
+
subscribe: Ae(e, t).subscribe
|
|
1337
1314
|
};
|
|
1338
1315
|
}
|
|
1339
|
-
function
|
|
1340
|
-
let
|
|
1341
|
-
const
|
|
1316
|
+
function Ae(e, t = H) {
|
|
1317
|
+
let r;
|
|
1318
|
+
const n = /* @__PURE__ */ new Set();
|
|
1342
1319
|
function i(s) {
|
|
1343
|
-
if (
|
|
1320
|
+
if (Rt(e, s) && (e = s, r)) {
|
|
1344
1321
|
const h = !k.length;
|
|
1345
|
-
for (const u of
|
|
1322
|
+
for (const u of n)
|
|
1346
1323
|
u[1](), k.push(u, e);
|
|
1347
1324
|
if (h) {
|
|
1348
1325
|
for (let u = 0; u < k.length; u += 2)
|
|
@@ -1356,152 +1333,191 @@ function Be(e, t = H) {
|
|
|
1356
1333
|
}
|
|
1357
1334
|
function a(s, h = H) {
|
|
1358
1335
|
const u = [s, h];
|
|
1359
|
-
return
|
|
1360
|
-
|
|
1336
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || H), s(e), () => {
|
|
1337
|
+
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1361
1338
|
};
|
|
1362
1339
|
}
|
|
1363
1340
|
return { set: i, update: o, subscribe: a };
|
|
1364
1341
|
}
|
|
1365
|
-
function
|
|
1366
|
-
const
|
|
1342
|
+
function K(e, t, r) {
|
|
1343
|
+
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1367
1344
|
if (!i.every(Boolean))
|
|
1368
1345
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1369
1346
|
const o = t.length < 2;
|
|
1370
|
-
return
|
|
1347
|
+
return vn(r, (a, s) => {
|
|
1371
1348
|
let h = !1;
|
|
1372
1349
|
const u = [];
|
|
1373
|
-
let l = 0,
|
|
1374
|
-
const
|
|
1350
|
+
let l = 0, f = H;
|
|
1351
|
+
const c = () => {
|
|
1375
1352
|
if (l)
|
|
1376
1353
|
return;
|
|
1377
|
-
|
|
1378
|
-
const
|
|
1379
|
-
o ? a(
|
|
1380
|
-
},
|
|
1381
|
-
(
|
|
1382
|
-
|
|
1383
|
-
(
|
|
1384
|
-
u[m] =
|
|
1354
|
+
f();
|
|
1355
|
+
const p = t(n ? u[0] : u, a, s);
|
|
1356
|
+
o ? a(p) : f = ue(p) ? p : H;
|
|
1357
|
+
}, d = i.map(
|
|
1358
|
+
(p, m) => Ut(
|
|
1359
|
+
p,
|
|
1360
|
+
(_) => {
|
|
1361
|
+
u[m] = _, l &= ~(1 << m), h && c();
|
|
1385
1362
|
},
|
|
1386
1363
|
() => {
|
|
1387
1364
|
l |= 1 << m;
|
|
1388
1365
|
}
|
|
1389
1366
|
)
|
|
1390
1367
|
);
|
|
1391
|
-
return h = !0,
|
|
1392
|
-
G(
|
|
1368
|
+
return h = !0, c(), function() {
|
|
1369
|
+
G(d), f(), h = !1;
|
|
1393
1370
|
};
|
|
1394
1371
|
});
|
|
1395
1372
|
}
|
|
1396
|
-
var
|
|
1397
|
-
function
|
|
1373
|
+
var jo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1374
|
+
function _n(e) {
|
|
1398
1375
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1399
1376
|
}
|
|
1400
|
-
var
|
|
1401
|
-
return
|
|
1377
|
+
var En = function(t) {
|
|
1378
|
+
return xn(t) && !Sn(t);
|
|
1402
1379
|
};
|
|
1403
|
-
function
|
|
1380
|
+
function xn(e) {
|
|
1404
1381
|
return !!e && typeof e == "object";
|
|
1405
1382
|
}
|
|
1406
|
-
function
|
|
1383
|
+
function Sn(e) {
|
|
1407
1384
|
var t = Object.prototype.toString.call(e);
|
|
1408
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1385
|
+
return t === "[object RegExp]" || t === "[object Date]" || Hn(e);
|
|
1409
1386
|
}
|
|
1410
|
-
var
|
|
1411
|
-
function
|
|
1412
|
-
return e.$$typeof ===
|
|
1387
|
+
var Tn = typeof Symbol == "function" && Symbol.for, wn = Tn ? Symbol.for("react.element") : 60103;
|
|
1388
|
+
function Hn(e) {
|
|
1389
|
+
return e.$$typeof === wn;
|
|
1413
1390
|
}
|
|
1414
|
-
function
|
|
1391
|
+
function Bn(e) {
|
|
1415
1392
|
return Array.isArray(e) ? [] : {};
|
|
1416
1393
|
}
|
|
1417
|
-
function
|
|
1418
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1394
|
+
function se(e, t) {
|
|
1395
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Z(Bn(e), e, t) : e;
|
|
1419
1396
|
}
|
|
1420
|
-
function
|
|
1421
|
-
return e.concat(t).map(function(
|
|
1422
|
-
return
|
|
1397
|
+
function An(e, t, r) {
|
|
1398
|
+
return e.concat(t).map(function(n) {
|
|
1399
|
+
return se(n, r);
|
|
1423
1400
|
});
|
|
1424
1401
|
}
|
|
1425
|
-
function
|
|
1402
|
+
function Pn(e, t) {
|
|
1426
1403
|
if (!t.customMerge)
|
|
1427
|
-
return
|
|
1428
|
-
var
|
|
1429
|
-
return typeof
|
|
1404
|
+
return Z;
|
|
1405
|
+
var r = t.customMerge(e);
|
|
1406
|
+
return typeof r == "function" ? r : Z;
|
|
1430
1407
|
}
|
|
1431
|
-
function
|
|
1408
|
+
function On(e) {
|
|
1432
1409
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1433
1410
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1434
1411
|
}) : [];
|
|
1435
1412
|
}
|
|
1436
|
-
function
|
|
1437
|
-
return Object.keys(e).concat(
|
|
1413
|
+
function _t(e) {
|
|
1414
|
+
return Object.keys(e).concat(On(e));
|
|
1438
1415
|
}
|
|
1439
|
-
function
|
|
1416
|
+
function er(e, t) {
|
|
1440
1417
|
try {
|
|
1441
1418
|
return t in e;
|
|
1442
1419
|
} catch {
|
|
1443
1420
|
return !1;
|
|
1444
1421
|
}
|
|
1445
1422
|
}
|
|
1446
|
-
function
|
|
1447
|
-
return
|
|
1423
|
+
function In(e, t) {
|
|
1424
|
+
return er(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1448
1425
|
}
|
|
1449
|
-
function
|
|
1450
|
-
var
|
|
1451
|
-
return
|
|
1452
|
-
|
|
1453
|
-
}),
|
|
1454
|
-
|
|
1455
|
-
}),
|
|
1456
|
-
}
|
|
1457
|
-
function
|
|
1458
|
-
|
|
1459
|
-
var
|
|
1460
|
-
return o ?
|
|
1461
|
-
}
|
|
1462
|
-
|
|
1426
|
+
function Ln(e, t, r) {
|
|
1427
|
+
var n = {};
|
|
1428
|
+
return r.isMergeableObject(e) && _t(e).forEach(function(i) {
|
|
1429
|
+
n[i] = se(e[i], r);
|
|
1430
|
+
}), _t(t).forEach(function(i) {
|
|
1431
|
+
In(e, i) || (er(e, i) && r.isMergeableObject(t[i]) ? n[i] = Pn(i, r)(e[i], t[i], r) : n[i] = se(t[i], r));
|
|
1432
|
+
}), n;
|
|
1433
|
+
}
|
|
1434
|
+
function Z(e, t, r) {
|
|
1435
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || An, r.isMergeableObject = r.isMergeableObject || En, r.cloneUnlessOtherwiseSpecified = se;
|
|
1436
|
+
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1437
|
+
return o ? n ? r.arrayMerge(e, t, r) : Ln(e, t, r) : se(t, r);
|
|
1438
|
+
}
|
|
1439
|
+
Z.all = function(t, r) {
|
|
1463
1440
|
if (!Array.isArray(t))
|
|
1464
1441
|
throw new Error("first argument should be an array");
|
|
1465
|
-
return t.reduce(function(
|
|
1466
|
-
return
|
|
1442
|
+
return t.reduce(function(n, i) {
|
|
1443
|
+
return Z(n, i, r);
|
|
1467
1444
|
}, {});
|
|
1468
1445
|
};
|
|
1469
|
-
var
|
|
1470
|
-
const
|
|
1471
|
-
function
|
|
1472
|
-
|
|
1446
|
+
var Nn = Z, Mn = Nn;
|
|
1447
|
+
const Cn = /* @__PURE__ */ _n(Mn);
|
|
1448
|
+
var Je = function(e, t) {
|
|
1449
|
+
return Je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1450
|
+
r.__proto__ = n;
|
|
1451
|
+
} || function(r, n) {
|
|
1452
|
+
for (var i in n)
|
|
1453
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1454
|
+
}, Je(e, t);
|
|
1455
|
+
};
|
|
1456
|
+
function Pe(e, t) {
|
|
1457
|
+
if (typeof t != "function" && t !== null)
|
|
1458
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1459
|
+
Je(e, t);
|
|
1460
|
+
function r() {
|
|
1461
|
+
this.constructor = e;
|
|
1462
|
+
}
|
|
1463
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1464
|
+
}
|
|
1465
|
+
var N = function() {
|
|
1466
|
+
return N = Object.assign || function(t) {
|
|
1467
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1468
|
+
r = arguments[n];
|
|
1469
|
+
for (var o in r)
|
|
1470
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1471
|
+
}
|
|
1472
|
+
return t;
|
|
1473
|
+
}, N.apply(this, arguments);
|
|
1474
|
+
};
|
|
1475
|
+
function $n(e, t) {
|
|
1476
|
+
var r = {};
|
|
1477
|
+
for (var n in e)
|
|
1478
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1479
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1480
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1481
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1482
|
+
return r;
|
|
1483
|
+
}
|
|
1484
|
+
function Re(e, t, r) {
|
|
1485
|
+
if (r || arguments.length === 2)
|
|
1486
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1487
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1488
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1489
|
+
}
|
|
1490
|
+
function Ue(e, t) {
|
|
1491
|
+
var r = t && t.cache ? t.cache : kn, n = t && t.serializer ? t.serializer : Fn, i = t && t.strategy ? t.strategy : Dn;
|
|
1473
1492
|
return i(e, {
|
|
1474
|
-
cache:
|
|
1475
|
-
serializer:
|
|
1493
|
+
cache: r,
|
|
1494
|
+
serializer: n
|
|
1476
1495
|
});
|
|
1477
1496
|
}
|
|
1478
|
-
function
|
|
1497
|
+
function Rn(e) {
|
|
1479
1498
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1480
1499
|
}
|
|
1481
|
-
function
|
|
1482
|
-
var i =
|
|
1483
|
-
return typeof o > "u" && (o = e.call(this,
|
|
1484
|
-
}
|
|
1485
|
-
function Yt(e, t, n) {
|
|
1486
|
-
var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
|
|
1487
|
-
return typeof o > "u" && (o = e.apply(this, r), t.set(i, o)), o;
|
|
1500
|
+
function Un(e, t, r, n) {
|
|
1501
|
+
var i = Rn(n) ? n : r(n), o = t.get(i);
|
|
1502
|
+
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1488
1503
|
}
|
|
1489
|
-
function
|
|
1490
|
-
|
|
1504
|
+
function tr(e, t, r) {
|
|
1505
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1506
|
+
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1491
1507
|
}
|
|
1492
|
-
function
|
|
1493
|
-
|
|
1494
|
-
return rt(e, this, n, t.cache.create(), t.serializer);
|
|
1508
|
+
function rr(e, t, r, n, i) {
|
|
1509
|
+
return r.bind(t, e, n, i);
|
|
1495
1510
|
}
|
|
1496
|
-
function
|
|
1497
|
-
|
|
1511
|
+
function Dn(e, t) {
|
|
1512
|
+
var r = e.length === 1 ? Un : tr;
|
|
1513
|
+
return rr(e, this, r, t.cache.create(), t.serializer);
|
|
1498
1514
|
}
|
|
1499
|
-
function
|
|
1500
|
-
return
|
|
1515
|
+
function Gn(e, t) {
|
|
1516
|
+
return rr(e, this, tr, t.cache.create(), t.serializer);
|
|
1501
1517
|
}
|
|
1502
|
-
var
|
|
1518
|
+
var Fn = function() {
|
|
1503
1519
|
return JSON.stringify(arguments);
|
|
1504
|
-
},
|
|
1520
|
+
}, jn = (
|
|
1505
1521
|
/** @class */
|
|
1506
1522
|
function() {
|
|
1507
1523
|
function e() {
|
|
@@ -1509,18 +1525,27 @@ var Rr = function() {
|
|
|
1509
1525
|
}
|
|
1510
1526
|
return e.prototype.get = function(t) {
|
|
1511
1527
|
return this.cache[t];
|
|
1512
|
-
}, e.prototype.set = function(t,
|
|
1513
|
-
this.cache[t] =
|
|
1528
|
+
}, e.prototype.set = function(t, r) {
|
|
1529
|
+
this.cache[t] = r;
|
|
1514
1530
|
}, e;
|
|
1515
1531
|
}()
|
|
1516
|
-
),
|
|
1532
|
+
), kn = {
|
|
1517
1533
|
create: function() {
|
|
1518
|
-
return new
|
|
1534
|
+
return new jn();
|
|
1519
1535
|
}
|
|
1520
|
-
},
|
|
1521
|
-
variadic:
|
|
1522
|
-
|
|
1523
|
-
|
|
1536
|
+
}, De = {
|
|
1537
|
+
variadic: Gn
|
|
1538
|
+
}, Te = function() {
|
|
1539
|
+
return Te = Object.assign || function(t) {
|
|
1540
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1541
|
+
r = arguments[n];
|
|
1542
|
+
for (var o in r)
|
|
1543
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1544
|
+
}
|
|
1545
|
+
return t;
|
|
1546
|
+
}, Te.apply(this, arguments);
|
|
1547
|
+
};
|
|
1548
|
+
var b;
|
|
1524
1549
|
(function(e) {
|
|
1525
1550
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
1526
1551
|
})(b || (b = {}));
|
|
@@ -1528,54 +1553,54 @@ var v;
|
|
|
1528
1553
|
(function(e) {
|
|
1529
1554
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
1530
1555
|
})(v || (v = {}));
|
|
1531
|
-
var
|
|
1556
|
+
var q;
|
|
1532
1557
|
(function(e) {
|
|
1533
1558
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1534
|
-
})(
|
|
1535
|
-
function
|
|
1559
|
+
})(q || (q = {}));
|
|
1560
|
+
function Et(e) {
|
|
1536
1561
|
return e.type === v.literal;
|
|
1537
1562
|
}
|
|
1538
|
-
function
|
|
1563
|
+
function Vn(e) {
|
|
1539
1564
|
return e.type === v.argument;
|
|
1540
1565
|
}
|
|
1541
|
-
function
|
|
1566
|
+
function nr(e) {
|
|
1542
1567
|
return e.type === v.number;
|
|
1543
1568
|
}
|
|
1544
|
-
function
|
|
1569
|
+
function ir(e) {
|
|
1545
1570
|
return e.type === v.date;
|
|
1546
1571
|
}
|
|
1547
|
-
function
|
|
1572
|
+
function or(e) {
|
|
1548
1573
|
return e.type === v.time;
|
|
1549
1574
|
}
|
|
1550
|
-
function
|
|
1575
|
+
function sr(e) {
|
|
1551
1576
|
return e.type === v.select;
|
|
1552
1577
|
}
|
|
1553
|
-
function
|
|
1578
|
+
function ar(e) {
|
|
1554
1579
|
return e.type === v.plural;
|
|
1555
1580
|
}
|
|
1556
|
-
function
|
|
1581
|
+
function Xn(e) {
|
|
1557
1582
|
return e.type === v.pound;
|
|
1558
1583
|
}
|
|
1559
|
-
function
|
|
1584
|
+
function ur(e) {
|
|
1560
1585
|
return e.type === v.tag;
|
|
1561
1586
|
}
|
|
1562
|
-
function
|
|
1563
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1587
|
+
function hr(e) {
|
|
1588
|
+
return !!(e && typeof e == "object" && e.type === q.number);
|
|
1564
1589
|
}
|
|
1565
|
-
function
|
|
1566
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1590
|
+
function Ye(e) {
|
|
1591
|
+
return !!(e && typeof e == "object" && e.type === q.dateTime);
|
|
1567
1592
|
}
|
|
1568
|
-
var
|
|
1569
|
-
function
|
|
1593
|
+
var lr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Wn = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
1594
|
+
function zn(e) {
|
|
1570
1595
|
var t = {};
|
|
1571
|
-
return e.replace(
|
|
1572
|
-
var
|
|
1573
|
-
switch (
|
|
1596
|
+
return e.replace(Wn, function(r) {
|
|
1597
|
+
var n = r.length;
|
|
1598
|
+
switch (r[0]) {
|
|
1574
1599
|
case "G":
|
|
1575
|
-
t.era =
|
|
1600
|
+
t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
1576
1601
|
break;
|
|
1577
1602
|
case "y":
|
|
1578
|
-
t.year =
|
|
1603
|
+
t.year = n === 2 ? "2-digit" : "numeric";
|
|
1579
1604
|
break;
|
|
1580
1605
|
case "Y":
|
|
1581
1606
|
case "u":
|
|
@@ -1587,30 +1612,30 @@ function kr(e) {
|
|
|
1587
1612
|
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
1588
1613
|
case "M":
|
|
1589
1614
|
case "L":
|
|
1590
|
-
t.month = ["numeric", "2-digit", "short", "long", "narrow"][
|
|
1615
|
+
t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
|
|
1591
1616
|
break;
|
|
1592
1617
|
case "w":
|
|
1593
1618
|
case "W":
|
|
1594
1619
|
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
1595
1620
|
case "d":
|
|
1596
|
-
t.day = ["numeric", "2-digit"][
|
|
1621
|
+
t.day = ["numeric", "2-digit"][n - 1];
|
|
1597
1622
|
break;
|
|
1598
1623
|
case "D":
|
|
1599
1624
|
case "F":
|
|
1600
1625
|
case "g":
|
|
1601
1626
|
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
1602
1627
|
case "E":
|
|
1603
|
-
t.weekday =
|
|
1628
|
+
t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
1604
1629
|
break;
|
|
1605
1630
|
case "e":
|
|
1606
|
-
if (
|
|
1631
|
+
if (n < 4)
|
|
1607
1632
|
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
1608
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
1633
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
1609
1634
|
break;
|
|
1610
1635
|
case "c":
|
|
1611
|
-
if (
|
|
1636
|
+
if (n < 4)
|
|
1612
1637
|
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
1613
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
1638
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
1614
1639
|
break;
|
|
1615
1640
|
case "a":
|
|
1616
1641
|
t.hour12 = !0;
|
|
@@ -1619,32 +1644,32 @@ function kr(e) {
|
|
|
1619
1644
|
case "B":
|
|
1620
1645
|
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
1621
1646
|
case "h":
|
|
1622
|
-
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][
|
|
1647
|
+
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1623
1648
|
break;
|
|
1624
1649
|
case "H":
|
|
1625
|
-
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][
|
|
1650
|
+
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1626
1651
|
break;
|
|
1627
1652
|
case "K":
|
|
1628
|
-
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][
|
|
1653
|
+
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1629
1654
|
break;
|
|
1630
1655
|
case "k":
|
|
1631
|
-
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][
|
|
1656
|
+
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1632
1657
|
break;
|
|
1633
1658
|
case "j":
|
|
1634
1659
|
case "J":
|
|
1635
1660
|
case "C":
|
|
1636
1661
|
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
1637
1662
|
case "m":
|
|
1638
|
-
t.minute = ["numeric", "2-digit"][
|
|
1663
|
+
t.minute = ["numeric", "2-digit"][n - 1];
|
|
1639
1664
|
break;
|
|
1640
1665
|
case "s":
|
|
1641
|
-
t.second = ["numeric", "2-digit"][
|
|
1666
|
+
t.second = ["numeric", "2-digit"][n - 1];
|
|
1642
1667
|
break;
|
|
1643
1668
|
case "S":
|
|
1644
1669
|
case "A":
|
|
1645
1670
|
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
1646
1671
|
case "z":
|
|
1647
|
-
t.timeZoneName =
|
|
1672
|
+
t.timeZoneName = n < 4 ? "short" : "long";
|
|
1648
1673
|
break;
|
|
1649
1674
|
case "Z":
|
|
1650
1675
|
case "O":
|
|
@@ -1657,36 +1682,46 @@ function kr(e) {
|
|
|
1657
1682
|
return "";
|
|
1658
1683
|
}), t;
|
|
1659
1684
|
}
|
|
1660
|
-
var
|
|
1661
|
-
function
|
|
1685
|
+
var E = function() {
|
|
1686
|
+
return E = Object.assign || function(t) {
|
|
1687
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1688
|
+
r = arguments[n];
|
|
1689
|
+
for (var o in r)
|
|
1690
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1691
|
+
}
|
|
1692
|
+
return t;
|
|
1693
|
+
}, E.apply(this, arguments);
|
|
1694
|
+
};
|
|
1695
|
+
var Zn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1696
|
+
function qn(e) {
|
|
1662
1697
|
if (e.length === 0)
|
|
1663
1698
|
throw new Error("Number skeleton cannot be empty");
|
|
1664
|
-
for (var t = e.split(
|
|
1665
|
-
return
|
|
1666
|
-
}),
|
|
1667
|
-
var o = i[
|
|
1699
|
+
for (var t = e.split(Zn).filter(function(c) {
|
|
1700
|
+
return c.length > 0;
|
|
1701
|
+
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1702
|
+
var o = i[n], a = o.split("/");
|
|
1668
1703
|
if (a.length === 0)
|
|
1669
1704
|
throw new Error("Invalid number skeleton");
|
|
1670
1705
|
for (var s = a[0], h = a.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
1671
|
-
var
|
|
1672
|
-
if (
|
|
1706
|
+
var f = l[u];
|
|
1707
|
+
if (f.length === 0)
|
|
1673
1708
|
throw new Error("Invalid number skeleton");
|
|
1674
1709
|
}
|
|
1675
|
-
|
|
1710
|
+
r.push({ stem: s, options: h });
|
|
1676
1711
|
}
|
|
1677
|
-
return
|
|
1712
|
+
return r;
|
|
1678
1713
|
}
|
|
1679
|
-
function
|
|
1714
|
+
function Qn(e) {
|
|
1680
1715
|
return e.replace(/^(.*?)-/, "");
|
|
1681
1716
|
}
|
|
1682
|
-
var
|
|
1683
|
-
function
|
|
1717
|
+
var xt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, cr = /^(@+)?(\+|#+)?[rs]?$/g, Jn = /(\*)(0+)|(#+)(0+)|(0+)/g, fr = /^(0+)$/;
|
|
1718
|
+
function St(e) {
|
|
1684
1719
|
var t = {};
|
|
1685
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1686
|
-
return typeof i != "string" ? (t.minimumSignificantDigits =
|
|
1720
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(cr, function(r, n, i) {
|
|
1721
|
+
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1687
1722
|
}), t;
|
|
1688
1723
|
}
|
|
1689
|
-
function
|
|
1724
|
+
function pr(e) {
|
|
1690
1725
|
switch (e) {
|
|
1691
1726
|
case "sign-auto":
|
|
1692
1727
|
return {
|
|
@@ -1726,27 +1761,27 @@ function ln(e) {
|
|
|
1726
1761
|
};
|
|
1727
1762
|
}
|
|
1728
1763
|
}
|
|
1729
|
-
function
|
|
1764
|
+
function Yn(e) {
|
|
1730
1765
|
var t;
|
|
1731
1766
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1732
1767
|
notation: "engineering"
|
|
1733
1768
|
}, e = e.slice(2)) : e[0] === "E" && (t = {
|
|
1734
1769
|
notation: "scientific"
|
|
1735
1770
|
}, e = e.slice(1)), t) {
|
|
1736
|
-
var
|
|
1737
|
-
if (
|
|
1771
|
+
var r = e.slice(0, 2);
|
|
1772
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !fr.test(e))
|
|
1738
1773
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1739
1774
|
t.minimumIntegerDigits = e.length;
|
|
1740
1775
|
}
|
|
1741
1776
|
return t;
|
|
1742
1777
|
}
|
|
1743
|
-
function
|
|
1744
|
-
var t = {},
|
|
1745
|
-
return
|
|
1778
|
+
function Tt(e) {
|
|
1779
|
+
var t = {}, r = pr(e);
|
|
1780
|
+
return r || t;
|
|
1746
1781
|
}
|
|
1747
|
-
function
|
|
1748
|
-
for (var t = {},
|
|
1749
|
-
var i = r
|
|
1782
|
+
function Kn(e) {
|
|
1783
|
+
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1784
|
+
var i = n[r];
|
|
1750
1785
|
switch (i.stem) {
|
|
1751
1786
|
case "percent":
|
|
1752
1787
|
case "%":
|
|
@@ -1768,7 +1803,7 @@ function qr(e) {
|
|
|
1768
1803
|
continue;
|
|
1769
1804
|
case "measure-unit":
|
|
1770
1805
|
case "unit":
|
|
1771
|
-
t.style = "unit", t.unit =
|
|
1806
|
+
t.style = "unit", t.unit = Qn(i.options[0]);
|
|
1772
1807
|
continue;
|
|
1773
1808
|
case "compact-short":
|
|
1774
1809
|
case "K":
|
|
@@ -1779,13 +1814,13 @@ function qr(e) {
|
|
|
1779
1814
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1780
1815
|
continue;
|
|
1781
1816
|
case "scientific":
|
|
1782
|
-
t =
|
|
1783
|
-
return
|
|
1817
|
+
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1818
|
+
return E(E({}, h), Tt(u));
|
|
1784
1819
|
}, {}));
|
|
1785
1820
|
continue;
|
|
1786
1821
|
case "engineering":
|
|
1787
|
-
t =
|
|
1788
|
-
return
|
|
1822
|
+
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1823
|
+
return E(E({}, h), Tt(u));
|
|
1789
1824
|
}, {}));
|
|
1790
1825
|
continue;
|
|
1791
1826
|
case "notation-simple":
|
|
@@ -1830,41 +1865,41 @@ function qr(e) {
|
|
|
1830
1865
|
case "integer-width":
|
|
1831
1866
|
if (i.options.length > 1)
|
|
1832
1867
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1833
|
-
i.options[0].replace(
|
|
1868
|
+
i.options[0].replace(Jn, function(h, u, l, f, c, d) {
|
|
1834
1869
|
if (u)
|
|
1835
1870
|
t.minimumIntegerDigits = l.length;
|
|
1836
1871
|
else {
|
|
1837
|
-
if (
|
|
1872
|
+
if (f && c)
|
|
1838
1873
|
throw new Error("We currently do not support maximum integer digits");
|
|
1839
|
-
if (
|
|
1874
|
+
if (d)
|
|
1840
1875
|
throw new Error("We currently do not support exact integer digits");
|
|
1841
1876
|
}
|
|
1842
1877
|
return "";
|
|
1843
1878
|
});
|
|
1844
1879
|
continue;
|
|
1845
1880
|
}
|
|
1846
|
-
if (
|
|
1881
|
+
if (fr.test(i.stem)) {
|
|
1847
1882
|
t.minimumIntegerDigits = i.stem.length;
|
|
1848
1883
|
continue;
|
|
1849
1884
|
}
|
|
1850
|
-
if (
|
|
1885
|
+
if (xt.test(i.stem)) {
|
|
1851
1886
|
if (i.options.length > 1)
|
|
1852
1887
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1853
|
-
i.stem.replace(
|
|
1854
|
-
return l === "*" ? t.minimumFractionDigits = u.length :
|
|
1888
|
+
i.stem.replace(xt, function(h, u, l, f, c, d) {
|
|
1889
|
+
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1855
1890
|
});
|
|
1856
1891
|
var o = i.options[0];
|
|
1857
|
-
o === "w" ? t =
|
|
1892
|
+
o === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = E(E({}, t), St(o)));
|
|
1858
1893
|
continue;
|
|
1859
1894
|
}
|
|
1860
|
-
if (
|
|
1861
|
-
t =
|
|
1895
|
+
if (cr.test(i.stem)) {
|
|
1896
|
+
t = E(E({}, t), St(i.stem));
|
|
1862
1897
|
continue;
|
|
1863
1898
|
}
|
|
1864
|
-
var a =
|
|
1865
|
-
a && (t =
|
|
1866
|
-
var s =
|
|
1867
|
-
s && (t =
|
|
1899
|
+
var a = pr(i.stem);
|
|
1900
|
+
a && (t = E(E({}, t), a));
|
|
1901
|
+
var s = Yn(i.stem);
|
|
1902
|
+
s && (t = E(E({}, t), s));
|
|
1868
1903
|
}
|
|
1869
1904
|
return t;
|
|
1870
1905
|
}
|
|
@@ -3283,23 +3318,23 @@ var me = {
|
|
|
3283
3318
|
"h"
|
|
3284
3319
|
]
|
|
3285
3320
|
};
|
|
3286
|
-
function
|
|
3287
|
-
for (var
|
|
3288
|
-
var i = e.charAt(
|
|
3321
|
+
function ei(e, t) {
|
|
3322
|
+
for (var r = "", n = 0; n < e.length; n++) {
|
|
3323
|
+
var i = e.charAt(n);
|
|
3289
3324
|
if (i === "j") {
|
|
3290
|
-
for (var o = 0;
|
|
3291
|
-
o++,
|
|
3292
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
3325
|
+
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3326
|
+
o++, n++;
|
|
3327
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = ti(t);
|
|
3293
3328
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
3294
|
-
|
|
3329
|
+
r += h;
|
|
3295
3330
|
for (; a-- > 0; )
|
|
3296
|
-
|
|
3331
|
+
r = u + r;
|
|
3297
3332
|
} else
|
|
3298
|
-
i === "J" ?
|
|
3333
|
+
i === "J" ? r += "H" : r += i;
|
|
3299
3334
|
}
|
|
3300
|
-
return
|
|
3335
|
+
return r;
|
|
3301
3336
|
}
|
|
3302
|
-
function
|
|
3337
|
+
function ti(e) {
|
|
3303
3338
|
var t = e.hourCycle;
|
|
3304
3339
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3305
3340
|
e.hourCycles && // @ts-ignore
|
|
@@ -3316,73 +3351,73 @@ function Jr(e) {
|
|
|
3316
3351
|
default:
|
|
3317
3352
|
throw new Error("Invalid hourCycle");
|
|
3318
3353
|
}
|
|
3319
|
-
var
|
|
3320
|
-
|
|
3321
|
-
var i = me[
|
|
3354
|
+
var r = e.language, n;
|
|
3355
|
+
r !== "root" && (n = e.maximize().region);
|
|
3356
|
+
var i = me[n || ""] || me[r || ""] || me["".concat(r, "-001")] || me["001"];
|
|
3322
3357
|
return i[0];
|
|
3323
3358
|
}
|
|
3324
|
-
var
|
|
3325
|
-
function
|
|
3359
|
+
var Ge, ri = new RegExp("^".concat(lr.source, "*")), ni = new RegExp("".concat(lr.source, "*$"));
|
|
3360
|
+
function y(e, t) {
|
|
3326
3361
|
return { start: e, end: t };
|
|
3327
3362
|
}
|
|
3328
|
-
var
|
|
3363
|
+
var ii = !!String.prototype.startsWith && "_a".startsWith("a", 1), oi = !!String.fromCodePoint, si = !!Object.fromEntries, ai = !!String.prototype.codePointAt, ui = !!String.prototype.trimStart, hi = !!String.prototype.trimEnd, li = !!Number.isSafeInteger, ci = li ? Number.isSafeInteger : function(e) {
|
|
3329
3364
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3330
|
-
},
|
|
3365
|
+
}, Ke = !0;
|
|
3331
3366
|
try {
|
|
3332
|
-
var
|
|
3333
|
-
|
|
3367
|
+
var fi = mr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3368
|
+
Ke = ((Ge = fi.exec("a")) === null || Ge === void 0 ? void 0 : Ge[0]) === "a";
|
|
3334
3369
|
} catch {
|
|
3335
|
-
|
|
3370
|
+
Ke = !1;
|
|
3336
3371
|
}
|
|
3337
|
-
var
|
|
3372
|
+
var wt = ii ? (
|
|
3338
3373
|
// Native
|
|
3339
|
-
function(t,
|
|
3340
|
-
return t.startsWith(
|
|
3374
|
+
function(t, r, n) {
|
|
3375
|
+
return t.startsWith(r, n);
|
|
3341
3376
|
}
|
|
3342
3377
|
) : (
|
|
3343
3378
|
// For IE11
|
|
3344
|
-
function(t,
|
|
3345
|
-
return t.slice(
|
|
3379
|
+
function(t, r, n) {
|
|
3380
|
+
return t.slice(n, n + r.length) === r;
|
|
3346
3381
|
}
|
|
3347
|
-
),
|
|
3382
|
+
), et = oi ? String.fromCodePoint : (
|
|
3348
3383
|
// IE11
|
|
3349
3384
|
function() {
|
|
3350
|
-
for (var t = [],
|
|
3351
|
-
t[
|
|
3352
|
-
for (var
|
|
3385
|
+
for (var t = [], r = 0; r < arguments.length; r++)
|
|
3386
|
+
t[r] = arguments[r];
|
|
3387
|
+
for (var n = "", i = t.length, o = 0, a; i > o; ) {
|
|
3353
3388
|
if (a = t[o++], a > 1114111)
|
|
3354
3389
|
throw RangeError(a + " is not a valid code point");
|
|
3355
|
-
|
|
3390
|
+
n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
3356
3391
|
}
|
|
3357
|
-
return
|
|
3392
|
+
return n;
|
|
3358
3393
|
}
|
|
3359
|
-
),
|
|
3394
|
+
), Ht = (
|
|
3360
3395
|
// native
|
|
3361
|
-
|
|
3396
|
+
si ? Object.fromEntries : (
|
|
3362
3397
|
// Ponyfill
|
|
3363
3398
|
function(t) {
|
|
3364
|
-
for (var
|
|
3365
|
-
var o = i[
|
|
3366
|
-
|
|
3399
|
+
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
3400
|
+
var o = i[n], a = o[0], s = o[1];
|
|
3401
|
+
r[a] = s;
|
|
3367
3402
|
}
|
|
3368
|
-
return
|
|
3403
|
+
return r;
|
|
3369
3404
|
}
|
|
3370
3405
|
)
|
|
3371
|
-
),
|
|
3406
|
+
), dr = ai ? (
|
|
3372
3407
|
// Native
|
|
3373
|
-
function(t,
|
|
3374
|
-
return t.codePointAt(
|
|
3408
|
+
function(t, r) {
|
|
3409
|
+
return t.codePointAt(r);
|
|
3375
3410
|
}
|
|
3376
3411
|
) : (
|
|
3377
3412
|
// IE 11
|
|
3378
|
-
function(t,
|
|
3379
|
-
var
|
|
3380
|
-
if (!(
|
|
3381
|
-
var i = t.charCodeAt(
|
|
3382
|
-
return i < 55296 || i > 56319 ||
|
|
3413
|
+
function(t, r) {
|
|
3414
|
+
var n = t.length;
|
|
3415
|
+
if (!(r < 0 || r >= n)) {
|
|
3416
|
+
var i = t.charCodeAt(r), o;
|
|
3417
|
+
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3383
3418
|
}
|
|
3384
3419
|
}
|
|
3385
|
-
),
|
|
3420
|
+
), pi = ui ? (
|
|
3386
3421
|
// Native
|
|
3387
3422
|
function(t) {
|
|
3388
3423
|
return t.trimStart();
|
|
@@ -3390,9 +3425,9 @@ var xt = ei ? (
|
|
|
3390
3425
|
) : (
|
|
3391
3426
|
// Ponyfill
|
|
3392
3427
|
function(t) {
|
|
3393
|
-
return t.replace(
|
|
3428
|
+
return t.replace(ri, "");
|
|
3394
3429
|
}
|
|
3395
|
-
),
|
|
3430
|
+
), di = hi ? (
|
|
3396
3431
|
// Native
|
|
3397
3432
|
function(t) {
|
|
3398
3433
|
return t.trimEnd();
|
|
@@ -3400,69 +3435,69 @@ var xt = ei ? (
|
|
|
3400
3435
|
) : (
|
|
3401
3436
|
// Ponyfill
|
|
3402
3437
|
function(t) {
|
|
3403
|
-
return t.replace(
|
|
3438
|
+
return t.replace(ni, "");
|
|
3404
3439
|
}
|
|
3405
3440
|
);
|
|
3406
|
-
function
|
|
3441
|
+
function mr(e, t) {
|
|
3407
3442
|
return new RegExp(e, t);
|
|
3408
3443
|
}
|
|
3409
|
-
var
|
|
3410
|
-
if (
|
|
3411
|
-
var
|
|
3412
|
-
|
|
3413
|
-
var
|
|
3414
|
-
|
|
3415
|
-
var i =
|
|
3416
|
-
return (
|
|
3444
|
+
var tt;
|
|
3445
|
+
if (Ke) {
|
|
3446
|
+
var Bt = mr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3447
|
+
tt = function(t, r) {
|
|
3448
|
+
var n;
|
|
3449
|
+
Bt.lastIndex = r;
|
|
3450
|
+
var i = Bt.exec(t);
|
|
3451
|
+
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3417
3452
|
};
|
|
3418
3453
|
} else
|
|
3419
|
-
|
|
3420
|
-
for (var
|
|
3421
|
-
var i =
|
|
3422
|
-
if (i === void 0 ||
|
|
3454
|
+
tt = function(t, r) {
|
|
3455
|
+
for (var n = []; ; ) {
|
|
3456
|
+
var i = dr(t, r);
|
|
3457
|
+
if (i === void 0 || br(i) || gi(i))
|
|
3423
3458
|
break;
|
|
3424
|
-
|
|
3459
|
+
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3425
3460
|
}
|
|
3426
|
-
return
|
|
3461
|
+
return et.apply(void 0, n);
|
|
3427
3462
|
};
|
|
3428
|
-
var
|
|
3463
|
+
var mi = (
|
|
3429
3464
|
/** @class */
|
|
3430
3465
|
function() {
|
|
3431
|
-
function e(t,
|
|
3432
|
-
|
|
3466
|
+
function e(t, r) {
|
|
3467
|
+
r === void 0 && (r = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
|
|
3433
3468
|
}
|
|
3434
3469
|
return e.prototype.parse = function() {
|
|
3435
3470
|
if (this.offset() !== 0)
|
|
3436
3471
|
throw Error("parser can only be used once");
|
|
3437
3472
|
return this.parseMessage(0, "", !1);
|
|
3438
|
-
}, e.prototype.parseMessage = function(t,
|
|
3473
|
+
}, e.prototype.parseMessage = function(t, r, n) {
|
|
3439
3474
|
for (var i = []; !this.isEOF(); ) {
|
|
3440
3475
|
var o = this.char();
|
|
3441
3476
|
if (o === 123) {
|
|
3442
|
-
var a = this.parseArgument(t,
|
|
3477
|
+
var a = this.parseArgument(t, n);
|
|
3443
3478
|
if (a.err)
|
|
3444
3479
|
return a;
|
|
3445
3480
|
i.push(a.val);
|
|
3446
3481
|
} else {
|
|
3447
3482
|
if (o === 125 && t > 0)
|
|
3448
3483
|
break;
|
|
3449
|
-
if (o === 35 && (
|
|
3484
|
+
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3450
3485
|
var s = this.clonePosition();
|
|
3451
3486
|
this.bump(), i.push({
|
|
3452
3487
|
type: v.pound,
|
|
3453
|
-
location:
|
|
3488
|
+
location: y(s, this.clonePosition())
|
|
3454
3489
|
});
|
|
3455
3490
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3456
|
-
if (
|
|
3491
|
+
if (n)
|
|
3457
3492
|
break;
|
|
3458
|
-
return this.error(b.UNMATCHED_CLOSING_TAG,
|
|
3459
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3460
|
-
var a = this.parseTag(t,
|
|
3493
|
+
return this.error(b.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
|
3494
|
+
} else if (o === 60 && !this.ignoreTag && rt(this.peek() || 0)) {
|
|
3495
|
+
var a = this.parseTag(t, r);
|
|
3461
3496
|
if (a.err)
|
|
3462
3497
|
return a;
|
|
3463
3498
|
i.push(a.val);
|
|
3464
3499
|
} else {
|
|
3465
|
-
var a = this.parseLiteral(t,
|
|
3500
|
+
var a = this.parseLiteral(t, r);
|
|
3466
3501
|
if (a.err)
|
|
3467
3502
|
return a;
|
|
3468
3503
|
i.push(a.val);
|
|
@@ -3470,8 +3505,8 @@ var fi = (
|
|
|
3470
3505
|
}
|
|
3471
3506
|
}
|
|
3472
3507
|
return { val: i, err: null };
|
|
3473
|
-
}, e.prototype.parseTag = function(t,
|
|
3474
|
-
var
|
|
3508
|
+
}, e.prototype.parseTag = function(t, r) {
|
|
3509
|
+
var n = this.clonePosition();
|
|
3475
3510
|
this.bump();
|
|
3476
3511
|
var i = this.parseTagName();
|
|
3477
3512
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
@@ -3479,45 +3514,45 @@ var fi = (
|
|
|
3479
3514
|
val: {
|
|
3480
3515
|
type: v.literal,
|
|
3481
3516
|
value: "<".concat(i, "/>"),
|
|
3482
|
-
location:
|
|
3517
|
+
location: y(n, this.clonePosition())
|
|
3483
3518
|
},
|
|
3484
3519
|
err: null
|
|
3485
3520
|
};
|
|
3486
3521
|
if (this.bumpIf(">")) {
|
|
3487
|
-
var o = this.parseMessage(t + 1,
|
|
3522
|
+
var o = this.parseMessage(t + 1, r, !0);
|
|
3488
3523
|
if (o.err)
|
|
3489
3524
|
return o;
|
|
3490
3525
|
var a = o.val, s = this.clonePosition();
|
|
3491
3526
|
if (this.bumpIf("</")) {
|
|
3492
|
-
if (this.isEOF() || !
|
|
3493
|
-
return this.error(b.INVALID_TAG,
|
|
3527
|
+
if (this.isEOF() || !rt(this.char()))
|
|
3528
|
+
return this.error(b.INVALID_TAG, y(s, this.clonePosition()));
|
|
3494
3529
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3495
|
-
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG,
|
|
3530
|
+
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, y(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3496
3531
|
val: {
|
|
3497
3532
|
type: v.tag,
|
|
3498
3533
|
value: i,
|
|
3499
3534
|
children: a,
|
|
3500
|
-
location:
|
|
3535
|
+
location: y(n, this.clonePosition())
|
|
3501
3536
|
},
|
|
3502
3537
|
err: null
|
|
3503
|
-
} : this.error(b.INVALID_TAG,
|
|
3538
|
+
} : this.error(b.INVALID_TAG, y(s, this.clonePosition())));
|
|
3504
3539
|
} else
|
|
3505
|
-
return this.error(b.UNCLOSED_TAG,
|
|
3540
|
+
return this.error(b.UNCLOSED_TAG, y(n, this.clonePosition()));
|
|
3506
3541
|
} else
|
|
3507
|
-
return this.error(b.INVALID_TAG,
|
|
3542
|
+
return this.error(b.INVALID_TAG, y(n, this.clonePosition()));
|
|
3508
3543
|
}, e.prototype.parseTagName = function() {
|
|
3509
3544
|
var t = this.offset();
|
|
3510
|
-
for (this.bump(); !this.isEOF() &&
|
|
3545
|
+
for (this.bump(); !this.isEOF() && yi(this.char()); )
|
|
3511
3546
|
this.bump();
|
|
3512
3547
|
return this.message.slice(t, this.offset());
|
|
3513
|
-
}, e.prototype.parseLiteral = function(t,
|
|
3514
|
-
for (var
|
|
3515
|
-
var o = this.tryParseQuote(
|
|
3548
|
+
}, e.prototype.parseLiteral = function(t, r) {
|
|
3549
|
+
for (var n = this.clonePosition(), i = ""; ; ) {
|
|
3550
|
+
var o = this.tryParseQuote(r);
|
|
3516
3551
|
if (o) {
|
|
3517
3552
|
i += o;
|
|
3518
3553
|
continue;
|
|
3519
3554
|
}
|
|
3520
|
-
var a = this.tryParseUnquoted(t,
|
|
3555
|
+
var a = this.tryParseUnquoted(t, r);
|
|
3521
3556
|
if (a) {
|
|
3522
3557
|
i += a;
|
|
3523
3558
|
continue;
|
|
@@ -3529,14 +3564,14 @@ var fi = (
|
|
|
3529
3564
|
}
|
|
3530
3565
|
break;
|
|
3531
3566
|
}
|
|
3532
|
-
var h =
|
|
3567
|
+
var h = y(n, this.clonePosition());
|
|
3533
3568
|
return {
|
|
3534
3569
|
val: { type: v.literal, value: i, location: h },
|
|
3535
3570
|
err: null
|
|
3536
3571
|
};
|
|
3537
3572
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3538
3573
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3539
|
-
!
|
|
3574
|
+
!bi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3540
3575
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3541
3576
|
if (this.isEOF() || this.char() !== 39)
|
|
3542
3577
|
return null;
|
|
@@ -3556,37 +3591,37 @@ var fi = (
|
|
|
3556
3591
|
return null;
|
|
3557
3592
|
}
|
|
3558
3593
|
this.bump();
|
|
3559
|
-
var
|
|
3594
|
+
var r = [this.char()];
|
|
3560
3595
|
for (this.bump(); !this.isEOF(); ) {
|
|
3561
|
-
var
|
|
3562
|
-
if (
|
|
3596
|
+
var n = this.char();
|
|
3597
|
+
if (n === 39)
|
|
3563
3598
|
if (this.peek() === 39)
|
|
3564
|
-
|
|
3599
|
+
r.push(39), this.bump();
|
|
3565
3600
|
else {
|
|
3566
3601
|
this.bump();
|
|
3567
3602
|
break;
|
|
3568
3603
|
}
|
|
3569
3604
|
else
|
|
3570
|
-
|
|
3605
|
+
r.push(n);
|
|
3571
3606
|
this.bump();
|
|
3572
3607
|
}
|
|
3573
|
-
return
|
|
3574
|
-
}, e.prototype.tryParseUnquoted = function(t,
|
|
3608
|
+
return et.apply(void 0, r);
|
|
3609
|
+
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3575
3610
|
if (this.isEOF())
|
|
3576
3611
|
return null;
|
|
3577
|
-
var
|
|
3578
|
-
return
|
|
3579
|
-
}, e.prototype.parseArgument = function(t,
|
|
3580
|
-
var
|
|
3612
|
+
var n = this.char();
|
|
3613
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), et(n));
|
|
3614
|
+
}, e.prototype.parseArgument = function(t, r) {
|
|
3615
|
+
var n = this.clonePosition();
|
|
3581
3616
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3582
|
-
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3617
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
|
3583
3618
|
if (this.char() === 125)
|
|
3584
|
-
return this.bump(), this.error(b.EMPTY_ARGUMENT,
|
|
3619
|
+
return this.bump(), this.error(b.EMPTY_ARGUMENT, y(n, this.clonePosition()));
|
|
3585
3620
|
var i = this.parseIdentifierIfPossible().value;
|
|
3586
3621
|
if (!i)
|
|
3587
|
-
return this.error(b.MALFORMED_ARGUMENT,
|
|
3622
|
+
return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
3588
3623
|
if (this.bumpSpace(), this.isEOF())
|
|
3589
|
-
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3624
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
|
3590
3625
|
switch (this.char()) {
|
|
3591
3626
|
case 125:
|
|
3592
3627
|
return this.bump(), {
|
|
@@ -3594,25 +3629,25 @@ var fi = (
|
|
|
3594
3629
|
type: v.argument,
|
|
3595
3630
|
// value does not include the opening and closing braces.
|
|
3596
3631
|
value: i,
|
|
3597
|
-
location:
|
|
3632
|
+
location: y(n, this.clonePosition())
|
|
3598
3633
|
},
|
|
3599
3634
|
err: null
|
|
3600
3635
|
};
|
|
3601
3636
|
case 44:
|
|
3602
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3637
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3603
3638
|
default:
|
|
3604
|
-
return this.error(b.MALFORMED_ARGUMENT,
|
|
3639
|
+
return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
3605
3640
|
}
|
|
3606
3641
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3607
|
-
var t = this.clonePosition(),
|
|
3642
|
+
var t = this.clonePosition(), r = this.offset(), n = tt(this.message, r), i = r + n.length;
|
|
3608
3643
|
this.bumpTo(i);
|
|
3609
|
-
var o = this.clonePosition(), a =
|
|
3610
|
-
return { value:
|
|
3611
|
-
}, e.prototype.parseArgumentOptions = function(t,
|
|
3644
|
+
var o = this.clonePosition(), a = y(t, o);
|
|
3645
|
+
return { value: n, location: a };
|
|
3646
|
+
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3612
3647
|
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3613
3648
|
switch (s) {
|
|
3614
3649
|
case "":
|
|
3615
|
-
return this.error(b.EXPECT_ARGUMENT_TYPE,
|
|
3650
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, y(a, h));
|
|
3616
3651
|
case "number":
|
|
3617
3652
|
case "date":
|
|
3618
3653
|
case "time": {
|
|
@@ -3620,40 +3655,40 @@ var fi = (
|
|
|
3620
3655
|
var u = null;
|
|
3621
3656
|
if (this.bumpIf(",")) {
|
|
3622
3657
|
this.bumpSpace();
|
|
3623
|
-
var l = this.clonePosition(),
|
|
3624
|
-
if (
|
|
3625
|
-
return
|
|
3626
|
-
var
|
|
3627
|
-
if (
|
|
3628
|
-
return this.error(b.EXPECT_ARGUMENT_STYLE,
|
|
3629
|
-
var
|
|
3630
|
-
u = { style:
|
|
3658
|
+
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3659
|
+
if (f.err)
|
|
3660
|
+
return f;
|
|
3661
|
+
var c = di(f.val);
|
|
3662
|
+
if (c.length === 0)
|
|
3663
|
+
return this.error(b.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
|
3664
|
+
var d = y(l, this.clonePosition());
|
|
3665
|
+
u = { style: c, styleLocation: d };
|
|
3631
3666
|
}
|
|
3632
|
-
var
|
|
3633
|
-
if (
|
|
3634
|
-
return
|
|
3635
|
-
var m =
|
|
3636
|
-
if (u &&
|
|
3637
|
-
var
|
|
3667
|
+
var p = this.tryParseArgumentClose(i);
|
|
3668
|
+
if (p.err)
|
|
3669
|
+
return p;
|
|
3670
|
+
var m = y(i, this.clonePosition());
|
|
3671
|
+
if (u && wt(u?.style, "::", 0)) {
|
|
3672
|
+
var _ = pi(u.style.slice(2));
|
|
3638
3673
|
if (s === "number") {
|
|
3639
|
-
var
|
|
3640
|
-
return
|
|
3641
|
-
val: { type: v.number, value:
|
|
3674
|
+
var f = this.parseNumberSkeletonFromString(_, u.styleLocation);
|
|
3675
|
+
return f.err ? f : {
|
|
3676
|
+
val: { type: v.number, value: n, location: m, style: f.val },
|
|
3642
3677
|
err: null
|
|
3643
3678
|
};
|
|
3644
3679
|
} else {
|
|
3645
|
-
if (
|
|
3680
|
+
if (_.length === 0)
|
|
3646
3681
|
return this.error(b.EXPECT_DATE_TIME_SKELETON, m);
|
|
3647
|
-
var T =
|
|
3648
|
-
this.locale && (T =
|
|
3649
|
-
var
|
|
3650
|
-
type:
|
|
3682
|
+
var T = _;
|
|
3683
|
+
this.locale && (T = ei(_, this.locale));
|
|
3684
|
+
var c = {
|
|
3685
|
+
type: q.dateTime,
|
|
3651
3686
|
pattern: T,
|
|
3652
3687
|
location: u.styleLocation,
|
|
3653
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3688
|
+
parsedOptions: this.shouldParseSkeletons ? zn(T) : {}
|
|
3654
3689
|
}, P = s === "date" ? v.date : v.time;
|
|
3655
3690
|
return {
|
|
3656
|
-
val: { type: P, value:
|
|
3691
|
+
val: { type: P, value: n, location: m, style: c },
|
|
3657
3692
|
err: null
|
|
3658
3693
|
};
|
|
3659
3694
|
}
|
|
@@ -3661,7 +3696,7 @@ var fi = (
|
|
|
3661
3696
|
return {
|
|
3662
3697
|
val: {
|
|
3663
3698
|
type: s === "number" ? v.number : s === "date" ? v.date : v.time,
|
|
3664
|
-
value:
|
|
3699
|
+
value: n,
|
|
3665
3700
|
location: m,
|
|
3666
3701
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3667
3702
|
},
|
|
@@ -3671,61 +3706,61 @@ var fi = (
|
|
|
3671
3706
|
case "plural":
|
|
3672
3707
|
case "selectordinal":
|
|
3673
3708
|
case "select": {
|
|
3674
|
-
var
|
|
3709
|
+
var x = this.clonePosition();
|
|
3675
3710
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3676
|
-
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
3711
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, y(x, Te({}, x)));
|
|
3677
3712
|
this.bumpSpace();
|
|
3678
3713
|
var O = this.parseIdentifierIfPossible(), w = 0;
|
|
3679
3714
|
if (s !== "select" && O.value === "offset") {
|
|
3680
3715
|
if (!this.bumpIf(":"))
|
|
3681
|
-
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
3716
|
+
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
|
|
3682
3717
|
this.bumpSpace();
|
|
3683
|
-
var
|
|
3684
|
-
if (
|
|
3685
|
-
return
|
|
3686
|
-
this.bumpSpace(), O = this.parseIdentifierIfPossible(), w =
|
|
3718
|
+
var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3719
|
+
if (f.err)
|
|
3720
|
+
return f;
|
|
3721
|
+
this.bumpSpace(), O = this.parseIdentifierIfPossible(), w = f.val;
|
|
3687
3722
|
}
|
|
3688
|
-
var $ = this.tryParsePluralOrSelectOptions(t, s,
|
|
3723
|
+
var $ = this.tryParsePluralOrSelectOptions(t, s, r, O);
|
|
3689
3724
|
if ($.err)
|
|
3690
3725
|
return $;
|
|
3691
|
-
var
|
|
3692
|
-
if (
|
|
3693
|
-
return
|
|
3694
|
-
var
|
|
3726
|
+
var p = this.tryParseArgumentClose(i);
|
|
3727
|
+
if (p.err)
|
|
3728
|
+
return p;
|
|
3729
|
+
var fe = y(i, this.clonePosition());
|
|
3695
3730
|
return s === "select" ? {
|
|
3696
3731
|
val: {
|
|
3697
3732
|
type: v.select,
|
|
3698
|
-
value:
|
|
3699
|
-
options:
|
|
3700
|
-
location:
|
|
3733
|
+
value: n,
|
|
3734
|
+
options: Ht($.val),
|
|
3735
|
+
location: fe
|
|
3701
3736
|
},
|
|
3702
3737
|
err: null
|
|
3703
3738
|
} : {
|
|
3704
3739
|
val: {
|
|
3705
3740
|
type: v.plural,
|
|
3706
|
-
value:
|
|
3707
|
-
options:
|
|
3741
|
+
value: n,
|
|
3742
|
+
options: Ht($.val),
|
|
3708
3743
|
offset: w,
|
|
3709
3744
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3710
|
-
location:
|
|
3745
|
+
location: fe
|
|
3711
3746
|
},
|
|
3712
3747
|
err: null
|
|
3713
3748
|
};
|
|
3714
3749
|
}
|
|
3715
3750
|
default:
|
|
3716
|
-
return this.error(b.INVALID_ARGUMENT_TYPE,
|
|
3751
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, y(a, h));
|
|
3717
3752
|
}
|
|
3718
3753
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3719
|
-
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3754
|
+
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3720
3755
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3721
|
-
for (var t = 0,
|
|
3722
|
-
var
|
|
3723
|
-
switch (
|
|
3756
|
+
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3757
|
+
var n = this.char();
|
|
3758
|
+
switch (n) {
|
|
3724
3759
|
case 39: {
|
|
3725
3760
|
this.bump();
|
|
3726
3761
|
var i = this.clonePosition();
|
|
3727
3762
|
if (!this.bumpUntil("'"))
|
|
3728
|
-
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
3763
|
+
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, y(i, this.clonePosition()));
|
|
3729
3764
|
this.bump();
|
|
3730
3765
|
break;
|
|
3731
3766
|
}
|
|
@@ -3738,7 +3773,7 @@ var fi = (
|
|
|
3738
3773
|
t -= 1;
|
|
3739
3774
|
else
|
|
3740
3775
|
return {
|
|
3741
|
-
val: this.message.slice(
|
|
3776
|
+
val: this.message.slice(r.offset, this.offset()),
|
|
3742
3777
|
err: null
|
|
3743
3778
|
};
|
|
3744
3779
|
break;
|
|
@@ -3749,61 +3784,61 @@ var fi = (
|
|
|
3749
3784
|
}
|
|
3750
3785
|
}
|
|
3751
3786
|
return {
|
|
3752
|
-
val: this.message.slice(
|
|
3787
|
+
val: this.message.slice(r.offset, this.offset()),
|
|
3753
3788
|
err: null
|
|
3754
3789
|
};
|
|
3755
|
-
}, e.prototype.parseNumberSkeletonFromString = function(t,
|
|
3756
|
-
var
|
|
3790
|
+
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3791
|
+
var n = [];
|
|
3757
3792
|
try {
|
|
3758
|
-
|
|
3793
|
+
n = qn(t);
|
|
3759
3794
|
} catch {
|
|
3760
|
-
return this.error(b.INVALID_NUMBER_SKELETON,
|
|
3795
|
+
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3761
3796
|
}
|
|
3762
3797
|
return {
|
|
3763
3798
|
val: {
|
|
3764
|
-
type:
|
|
3765
|
-
tokens:
|
|
3766
|
-
location:
|
|
3767
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3799
|
+
type: q.number,
|
|
3800
|
+
tokens: n,
|
|
3801
|
+
location: r,
|
|
3802
|
+
parsedOptions: this.shouldParseSkeletons ? Kn(n) : {}
|
|
3768
3803
|
},
|
|
3769
3804
|
err: null
|
|
3770
3805
|
};
|
|
3771
|
-
}, e.prototype.tryParsePluralOrSelectOptions = function(t,
|
|
3806
|
+
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3772
3807
|
for (var o, a = !1, s = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
3773
3808
|
if (u.length === 0) {
|
|
3774
|
-
var
|
|
3775
|
-
if (
|
|
3776
|
-
var
|
|
3777
|
-
if (
|
|
3778
|
-
return
|
|
3779
|
-
l =
|
|
3809
|
+
var f = this.clonePosition();
|
|
3810
|
+
if (r !== "select" && this.bumpIf("=")) {
|
|
3811
|
+
var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3812
|
+
if (c.err)
|
|
3813
|
+
return c;
|
|
3814
|
+
l = y(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
3780
3815
|
} else
|
|
3781
3816
|
break;
|
|
3782
3817
|
}
|
|
3783
3818
|
if (h.has(u))
|
|
3784
|
-
return this.error(
|
|
3819
|
+
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3785
3820
|
u === "other" && (a = !0), this.bumpSpace();
|
|
3786
|
-
var
|
|
3821
|
+
var d = this.clonePosition();
|
|
3787
3822
|
if (!this.bumpIf("{"))
|
|
3788
|
-
return this.error(
|
|
3789
|
-
var
|
|
3790
|
-
if (
|
|
3791
|
-
return
|
|
3792
|
-
var m = this.tryParseArgumentClose(
|
|
3823
|
+
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
|
|
3824
|
+
var p = this.parseMessage(t + 1, r, n);
|
|
3825
|
+
if (p.err)
|
|
3826
|
+
return p;
|
|
3827
|
+
var m = this.tryParseArgumentClose(d);
|
|
3793
3828
|
if (m.err)
|
|
3794
3829
|
return m;
|
|
3795
3830
|
s.push([
|
|
3796
3831
|
u,
|
|
3797
3832
|
{
|
|
3798
|
-
value:
|
|
3799
|
-
location:
|
|
3833
|
+
value: p.val,
|
|
3834
|
+
location: y(d, this.clonePosition())
|
|
3800
3835
|
}
|
|
3801
3836
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3802
3837
|
}
|
|
3803
|
-
return s.length === 0 ? this.error(
|
|
3804
|
-
}, e.prototype.tryParseDecimalInteger = function(t,
|
|
3805
|
-
var
|
|
3806
|
-
this.bumpIf("+") || this.bumpIf("-") && (
|
|
3838
|
+
return s.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(b.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3839
|
+
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3840
|
+
var n = 1, i = this.clonePosition();
|
|
3841
|
+
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3807
3842
|
for (var o = !1, a = 0; !this.isEOF(); ) {
|
|
3808
3843
|
var s = this.char();
|
|
3809
3844
|
if (s >= 48 && s <= 57)
|
|
@@ -3811,8 +3846,8 @@ var fi = (
|
|
|
3811
3846
|
else
|
|
3812
3847
|
break;
|
|
3813
3848
|
}
|
|
3814
|
-
var h =
|
|
3815
|
-
return o ? (a *=
|
|
3849
|
+
var h = y(i, this.clonePosition());
|
|
3850
|
+
return o ? (a *= n, ci(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3816
3851
|
}, e.prototype.offset = function() {
|
|
3817
3852
|
return this.position.offset;
|
|
3818
3853
|
}, e.prototype.isEOF = function() {
|
|
@@ -3827,17 +3862,17 @@ var fi = (
|
|
|
3827
3862
|
var t = this.position.offset;
|
|
3828
3863
|
if (t >= this.message.length)
|
|
3829
3864
|
throw Error("out of bound");
|
|
3830
|
-
var
|
|
3831
|
-
if (
|
|
3865
|
+
var r = dr(this.message, t);
|
|
3866
|
+
if (r === void 0)
|
|
3832
3867
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3833
|
-
return
|
|
3834
|
-
}, e.prototype.error = function(t,
|
|
3868
|
+
return r;
|
|
3869
|
+
}, e.prototype.error = function(t, r) {
|
|
3835
3870
|
return {
|
|
3836
3871
|
val: null,
|
|
3837
3872
|
err: {
|
|
3838
3873
|
kind: t,
|
|
3839
3874
|
message: this.message,
|
|
3840
|
-
location:
|
|
3875
|
+
location: r
|
|
3841
3876
|
}
|
|
3842
3877
|
};
|
|
3843
3878
|
}, e.prototype.bump = function() {
|
|
@@ -3846,129 +3881,129 @@ var fi = (
|
|
|
3846
3881
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3847
3882
|
}
|
|
3848
3883
|
}, e.prototype.bumpIf = function(t) {
|
|
3849
|
-
if (
|
|
3850
|
-
for (var
|
|
3884
|
+
if (wt(this.message, t, this.offset())) {
|
|
3885
|
+
for (var r = 0; r < t.length; r++)
|
|
3851
3886
|
this.bump();
|
|
3852
3887
|
return !0;
|
|
3853
3888
|
}
|
|
3854
3889
|
return !1;
|
|
3855
3890
|
}, e.prototype.bumpUntil = function(t) {
|
|
3856
|
-
var
|
|
3857
|
-
return
|
|
3891
|
+
var r = this.offset(), n = this.message.indexOf(t, r);
|
|
3892
|
+
return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
|
|
3858
3893
|
}, e.prototype.bumpTo = function(t) {
|
|
3859
3894
|
if (this.offset() > t)
|
|
3860
3895
|
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
3861
3896
|
for (t = Math.min(t, this.message.length); ; ) {
|
|
3862
|
-
var
|
|
3863
|
-
if (
|
|
3897
|
+
var r = this.offset();
|
|
3898
|
+
if (r === t)
|
|
3864
3899
|
break;
|
|
3865
|
-
if (
|
|
3900
|
+
if (r > t)
|
|
3866
3901
|
throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3867
3902
|
if (this.bump(), this.isEOF())
|
|
3868
3903
|
break;
|
|
3869
3904
|
}
|
|
3870
3905
|
}, e.prototype.bumpSpace = function() {
|
|
3871
|
-
for (; !this.isEOF() &&
|
|
3906
|
+
for (; !this.isEOF() && br(this.char()); )
|
|
3872
3907
|
this.bump();
|
|
3873
3908
|
}, e.prototype.peek = function() {
|
|
3874
3909
|
if (this.isEOF())
|
|
3875
3910
|
return null;
|
|
3876
|
-
var t = this.char(),
|
|
3877
|
-
return
|
|
3911
|
+
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
3912
|
+
return n ?? null;
|
|
3878
3913
|
}, e;
|
|
3879
3914
|
}()
|
|
3880
3915
|
);
|
|
3881
|
-
function
|
|
3916
|
+
function rt(e) {
|
|
3882
3917
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3883
3918
|
}
|
|
3884
|
-
function
|
|
3885
|
-
return
|
|
3919
|
+
function bi(e) {
|
|
3920
|
+
return rt(e) || e === 47;
|
|
3886
3921
|
}
|
|
3887
|
-
function
|
|
3922
|
+
function yi(e) {
|
|
3888
3923
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
3889
3924
|
}
|
|
3890
|
-
function
|
|
3925
|
+
function br(e) {
|
|
3891
3926
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3892
3927
|
}
|
|
3893
|
-
function
|
|
3928
|
+
function gi(e) {
|
|
3894
3929
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3895
3930
|
}
|
|
3896
|
-
function
|
|
3931
|
+
function nt(e) {
|
|
3897
3932
|
e.forEach(function(t) {
|
|
3898
|
-
if (delete t.location,
|
|
3899
|
-
for (var
|
|
3900
|
-
delete t.options[
|
|
3933
|
+
if (delete t.location, sr(t) || ar(t))
|
|
3934
|
+
for (var r in t.options)
|
|
3935
|
+
delete t.options[r].location, nt(t.options[r].value);
|
|
3901
3936
|
else
|
|
3902
|
-
|
|
3937
|
+
nr(t) && hr(t.style) || (ir(t) || or(t)) && Ye(t.style) ? delete t.style.location : ur(t) && nt(t.children);
|
|
3903
3938
|
});
|
|
3904
3939
|
}
|
|
3905
|
-
function
|
|
3906
|
-
t === void 0 && (t = {}), t =
|
|
3907
|
-
var
|
|
3908
|
-
if (
|
|
3909
|
-
var
|
|
3910
|
-
throw
|
|
3940
|
+
function vi(e, t) {
|
|
3941
|
+
t === void 0 && (t = {}), t = Te({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3942
|
+
var r = new mi(e, t).parse();
|
|
3943
|
+
if (r.err) {
|
|
3944
|
+
var n = SyntaxError(b[r.err.kind]);
|
|
3945
|
+
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3911
3946
|
}
|
|
3912
|
-
return t?.captureLocation ||
|
|
3947
|
+
return t?.captureLocation || nt(r.val), r.val;
|
|
3913
3948
|
}
|
|
3914
|
-
var
|
|
3949
|
+
var Q;
|
|
3915
3950
|
(function(e) {
|
|
3916
3951
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3917
|
-
})(
|
|
3918
|
-
var
|
|
3952
|
+
})(Q || (Q = {}));
|
|
3953
|
+
var Oe = (
|
|
3919
3954
|
/** @class */
|
|
3920
3955
|
function(e) {
|
|
3921
|
-
|
|
3922
|
-
function t(
|
|
3923
|
-
var o = e.call(this,
|
|
3924
|
-
return o.code =
|
|
3956
|
+
Pe(t, e);
|
|
3957
|
+
function t(r, n, i) {
|
|
3958
|
+
var o = e.call(this, r) || this;
|
|
3959
|
+
return o.code = n, o.originalMessage = i, o;
|
|
3925
3960
|
}
|
|
3926
3961
|
return t.prototype.toString = function() {
|
|
3927
3962
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3928
3963
|
}, t;
|
|
3929
3964
|
}(Error)
|
|
3930
|
-
),
|
|
3965
|
+
), At = (
|
|
3931
3966
|
/** @class */
|
|
3932
3967
|
function(e) {
|
|
3933
|
-
|
|
3934
|
-
function t(
|
|
3935
|
-
return e.call(this, 'Invalid values for "'.concat(
|
|
3968
|
+
Pe(t, e);
|
|
3969
|
+
function t(r, n, i, o) {
|
|
3970
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Q.INVALID_VALUE, o) || this;
|
|
3936
3971
|
}
|
|
3937
3972
|
return t;
|
|
3938
|
-
}(
|
|
3939
|
-
),
|
|
3973
|
+
}(Oe)
|
|
3974
|
+
), _i = (
|
|
3940
3975
|
/** @class */
|
|
3941
3976
|
function(e) {
|
|
3942
|
-
|
|
3943
|
-
function t(
|
|
3944
|
-
return e.call(this, 'Value for "'.concat(
|
|
3977
|
+
Pe(t, e);
|
|
3978
|
+
function t(r, n, i) {
|
|
3979
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Q.INVALID_VALUE, i) || this;
|
|
3945
3980
|
}
|
|
3946
3981
|
return t;
|
|
3947
|
-
}(
|
|
3948
|
-
),
|
|
3982
|
+
}(Oe)
|
|
3983
|
+
), Ei = (
|
|
3949
3984
|
/** @class */
|
|
3950
3985
|
function(e) {
|
|
3951
|
-
|
|
3952
|
-
function t(
|
|
3953
|
-
return e.call(this, 'The intl string context variable "'.concat(
|
|
3986
|
+
Pe(t, e);
|
|
3987
|
+
function t(r, n) {
|
|
3988
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Q.MISSING_VALUE, n) || this;
|
|
3954
3989
|
}
|
|
3955
3990
|
return t;
|
|
3956
|
-
}(
|
|
3991
|
+
}(Oe)
|
|
3957
3992
|
), S;
|
|
3958
3993
|
(function(e) {
|
|
3959
3994
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3960
3995
|
})(S || (S = {}));
|
|
3961
|
-
function
|
|
3962
|
-
return e.length < 2 ? e : e.reduce(function(t,
|
|
3963
|
-
var
|
|
3964
|
-
return !
|
|
3996
|
+
function xi(e) {
|
|
3997
|
+
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3998
|
+
var n = t[t.length - 1];
|
|
3999
|
+
return !n || n.type !== S.literal || r.type !== S.literal ? t.push(r) : n.value += r.value, t;
|
|
3965
4000
|
}, []);
|
|
3966
4001
|
}
|
|
3967
|
-
function
|
|
4002
|
+
function Si(e) {
|
|
3968
4003
|
return typeof e == "function";
|
|
3969
4004
|
}
|
|
3970
|
-
function
|
|
3971
|
-
if (e.length === 1 &&
|
|
4005
|
+
function ve(e, t, r, n, i, o, a) {
|
|
4006
|
+
if (e.length === 1 && Et(e[0]))
|
|
3972
4007
|
return [
|
|
3973
4008
|
{
|
|
3974
4009
|
type: S.literal,
|
|
@@ -3977,60 +4012,60 @@ function _e(e, t, n, r, i, o, a) {
|
|
|
3977
4012
|
];
|
|
3978
4013
|
for (var s = [], h = 0, u = e; h < u.length; h++) {
|
|
3979
4014
|
var l = u[h];
|
|
3980
|
-
if (
|
|
4015
|
+
if (Et(l)) {
|
|
3981
4016
|
s.push({
|
|
3982
4017
|
type: S.literal,
|
|
3983
4018
|
value: l.value
|
|
3984
4019
|
});
|
|
3985
4020
|
continue;
|
|
3986
4021
|
}
|
|
3987
|
-
if (
|
|
4022
|
+
if (Xn(l)) {
|
|
3988
4023
|
typeof o == "number" && s.push({
|
|
3989
4024
|
type: S.literal,
|
|
3990
|
-
value:
|
|
4025
|
+
value: r.getNumberFormat(t).format(o)
|
|
3991
4026
|
});
|
|
3992
4027
|
continue;
|
|
3993
4028
|
}
|
|
3994
|
-
var
|
|
3995
|
-
if (!(i &&
|
|
3996
|
-
throw new
|
|
3997
|
-
var
|
|
3998
|
-
if (
|
|
3999
|
-
(!
|
|
4000
|
-
type: typeof
|
|
4001
|
-
value:
|
|
4029
|
+
var f = l.value;
|
|
4030
|
+
if (!(i && f in i))
|
|
4031
|
+
throw new Ei(f, a);
|
|
4032
|
+
var c = i[f];
|
|
4033
|
+
if (Vn(l)) {
|
|
4034
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
|
|
4035
|
+
type: typeof c == "string" ? S.literal : S.object,
|
|
4036
|
+
value: c
|
|
4002
4037
|
});
|
|
4003
4038
|
continue;
|
|
4004
4039
|
}
|
|
4005
|
-
if (
|
|
4006
|
-
var
|
|
4040
|
+
if (ir(l)) {
|
|
4041
|
+
var d = typeof l.style == "string" ? n.date[l.style] : Ye(l.style) ? l.style.parsedOptions : void 0;
|
|
4007
4042
|
s.push({
|
|
4008
4043
|
type: S.literal,
|
|
4009
|
-
value:
|
|
4044
|
+
value: r.getDateTimeFormat(t, d).format(c)
|
|
4010
4045
|
});
|
|
4011
4046
|
continue;
|
|
4012
4047
|
}
|
|
4013
|
-
if (
|
|
4014
|
-
var
|
|
4048
|
+
if (or(l)) {
|
|
4049
|
+
var d = typeof l.style == "string" ? n.time[l.style] : Ye(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
4015
4050
|
s.push({
|
|
4016
4051
|
type: S.literal,
|
|
4017
|
-
value:
|
|
4052
|
+
value: r.getDateTimeFormat(t, d).format(c)
|
|
4018
4053
|
});
|
|
4019
4054
|
continue;
|
|
4020
4055
|
}
|
|
4021
|
-
if (
|
|
4022
|
-
var
|
|
4023
|
-
|
|
4056
|
+
if (nr(l)) {
|
|
4057
|
+
var d = typeof l.style == "string" ? n.number[l.style] : hr(l.style) ? l.style.parsedOptions : void 0;
|
|
4058
|
+
d && d.scale && (c = c * (d.scale || 1)), s.push({
|
|
4024
4059
|
type: S.literal,
|
|
4025
|
-
value:
|
|
4060
|
+
value: r.getNumberFormat(t, d).format(c)
|
|
4026
4061
|
});
|
|
4027
4062
|
continue;
|
|
4028
4063
|
}
|
|
4029
|
-
if (
|
|
4030
|
-
var
|
|
4031
|
-
if (!
|
|
4032
|
-
throw new
|
|
4033
|
-
var T =
|
|
4064
|
+
if (ur(l)) {
|
|
4065
|
+
var p = l.children, m = l.value, _ = i[m];
|
|
4066
|
+
if (!Si(_))
|
|
4067
|
+
throw new _i(m, "function", a);
|
|
4068
|
+
var T = ve(p, t, r, n, i, o), P = _(T.map(function(w) {
|
|
4034
4069
|
return w.value;
|
|
4035
4070
|
}));
|
|
4036
4071
|
Array.isArray(P) || (P = [P]), s.push.apply(s, P.map(function(w) {
|
|
@@ -4040,92 +4075,92 @@ function _e(e, t, n, r, i, o, a) {
|
|
|
4040
4075
|
};
|
|
4041
4076
|
}));
|
|
4042
4077
|
}
|
|
4043
|
-
if (
|
|
4044
|
-
var
|
|
4045
|
-
if (!
|
|
4046
|
-
throw new
|
|
4047
|
-
s.push.apply(s,
|
|
4078
|
+
if (sr(l)) {
|
|
4079
|
+
var x = l.options[c] || l.options.other;
|
|
4080
|
+
if (!x)
|
|
4081
|
+
throw new At(l.value, c, Object.keys(l.options), a);
|
|
4082
|
+
s.push.apply(s, ve(x.value, t, r, n, i));
|
|
4048
4083
|
continue;
|
|
4049
4084
|
}
|
|
4050
|
-
if (
|
|
4051
|
-
var
|
|
4052
|
-
if (!
|
|
4085
|
+
if (ar(l)) {
|
|
4086
|
+
var x = l.options["=".concat(c)];
|
|
4087
|
+
if (!x) {
|
|
4053
4088
|
if (!Intl.PluralRules)
|
|
4054
|
-
throw new
|
|
4089
|
+
throw new Oe(`Intl.PluralRules is not available in this environment.
|
|
4055
4090
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
4056
|
-
`,
|
|
4057
|
-
var O =
|
|
4058
|
-
|
|
4091
|
+
`, Q.MISSING_INTL_API, a);
|
|
4092
|
+
var O = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
4093
|
+
x = l.options[O] || l.options.other;
|
|
4059
4094
|
}
|
|
4060
|
-
if (!
|
|
4061
|
-
throw new
|
|
4062
|
-
s.push.apply(s,
|
|
4095
|
+
if (!x)
|
|
4096
|
+
throw new At(l.value, c, Object.keys(l.options), a);
|
|
4097
|
+
s.push.apply(s, ve(x.value, t, r, n, i, c - (l.offset || 0)));
|
|
4063
4098
|
continue;
|
|
4064
4099
|
}
|
|
4065
4100
|
}
|
|
4066
|
-
return
|
|
4101
|
+
return xi(s);
|
|
4067
4102
|
}
|
|
4068
|
-
function
|
|
4069
|
-
return t ?
|
|
4070
|
-
return n
|
|
4103
|
+
function Ti(e, t) {
|
|
4104
|
+
return t ? N(N(N({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
4105
|
+
return r[n] = N(N({}, e[n]), t[n] || {}), r;
|
|
4071
4106
|
}, {})) : e;
|
|
4072
4107
|
}
|
|
4073
|
-
function
|
|
4074
|
-
return t ? Object.keys(e).reduce(function(
|
|
4075
|
-
return n
|
|
4076
|
-
},
|
|
4108
|
+
function wi(e, t) {
|
|
4109
|
+
return t ? Object.keys(e).reduce(function(r, n) {
|
|
4110
|
+
return r[n] = Ti(e[n], t[n]), r;
|
|
4111
|
+
}, N({}, e)) : e;
|
|
4077
4112
|
}
|
|
4078
|
-
function
|
|
4113
|
+
function Fe(e) {
|
|
4079
4114
|
return {
|
|
4080
4115
|
create: function() {
|
|
4081
4116
|
return {
|
|
4082
4117
|
get: function(t) {
|
|
4083
4118
|
return e[t];
|
|
4084
4119
|
},
|
|
4085
|
-
set: function(t,
|
|
4086
|
-
e[t] =
|
|
4120
|
+
set: function(t, r) {
|
|
4121
|
+
e[t] = r;
|
|
4087
4122
|
}
|
|
4088
4123
|
};
|
|
4089
4124
|
}
|
|
4090
4125
|
};
|
|
4091
4126
|
}
|
|
4092
|
-
function
|
|
4127
|
+
function Hi(e) {
|
|
4093
4128
|
return e === void 0 && (e = {
|
|
4094
4129
|
number: {},
|
|
4095
4130
|
dateTime: {},
|
|
4096
4131
|
pluralRules: {}
|
|
4097
4132
|
}), {
|
|
4098
|
-
getNumberFormat:
|
|
4099
|
-
for (var t,
|
|
4100
|
-
n
|
|
4101
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
4133
|
+
getNumberFormat: Ue(function() {
|
|
4134
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
4135
|
+
r[n] = arguments[n];
|
|
4136
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Re([void 0], r, !1)))();
|
|
4102
4137
|
}, {
|
|
4103
|
-
cache:
|
|
4104
|
-
strategy:
|
|
4138
|
+
cache: Fe(e.number),
|
|
4139
|
+
strategy: De.variadic
|
|
4105
4140
|
}),
|
|
4106
|
-
getDateTimeFormat:
|
|
4107
|
-
for (var t,
|
|
4108
|
-
n
|
|
4109
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
4141
|
+
getDateTimeFormat: Ue(function() {
|
|
4142
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
4143
|
+
r[n] = arguments[n];
|
|
4144
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Re([void 0], r, !1)))();
|
|
4110
4145
|
}, {
|
|
4111
|
-
cache:
|
|
4112
|
-
strategy:
|
|
4146
|
+
cache: Fe(e.dateTime),
|
|
4147
|
+
strategy: De.variadic
|
|
4113
4148
|
}),
|
|
4114
|
-
getPluralRules:
|
|
4115
|
-
for (var t,
|
|
4116
|
-
n
|
|
4117
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
4149
|
+
getPluralRules: Ue(function() {
|
|
4150
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
4151
|
+
r[n] = arguments[n];
|
|
4152
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Re([void 0], r, !1)))();
|
|
4118
4153
|
}, {
|
|
4119
|
-
cache:
|
|
4120
|
-
strategy:
|
|
4154
|
+
cache: Fe(e.pluralRules),
|
|
4155
|
+
strategy: De.variadic
|
|
4121
4156
|
})
|
|
4122
4157
|
};
|
|
4123
4158
|
}
|
|
4124
|
-
var
|
|
4159
|
+
var Bi = (
|
|
4125
4160
|
/** @class */
|
|
4126
4161
|
function() {
|
|
4127
|
-
function e(t,
|
|
4128
|
-
|
|
4162
|
+
function e(t, r, n, i) {
|
|
4163
|
+
r === void 0 && (r = e.defaultLocale);
|
|
4129
4164
|
var o = this;
|
|
4130
4165
|
if (this.formatterCache = {
|
|
4131
4166
|
number: {},
|
|
@@ -4135,12 +4170,12 @@ var Si = (
|
|
|
4135
4170
|
var u = o.formatToParts(h);
|
|
4136
4171
|
if (u.length === 1)
|
|
4137
4172
|
return u[0].value;
|
|
4138
|
-
var l = u.reduce(function(
|
|
4139
|
-
return !
|
|
4173
|
+
var l = u.reduce(function(f, c) {
|
|
4174
|
+
return !f.length || c.type !== S.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
4140
4175
|
}, []);
|
|
4141
4176
|
return l.length <= 1 ? l[0] || "" : l;
|
|
4142
4177
|
}, this.formatToParts = function(h) {
|
|
4143
|
-
return
|
|
4178
|
+
return ve(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
4144
4179
|
}, this.resolvedOptions = function() {
|
|
4145
4180
|
var h;
|
|
4146
4181
|
return {
|
|
@@ -4148,18 +4183,18 @@ var Si = (
|
|
|
4148
4183
|
};
|
|
4149
4184
|
}, this.getAst = function() {
|
|
4150
4185
|
return o.ast;
|
|
4151
|
-
}, this.locales =
|
|
4186
|
+
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
4152
4187
|
if (this.message = t, !e.__parse)
|
|
4153
4188
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
4154
4189
|
var a = i || {};
|
|
4155
4190
|
a.formatters;
|
|
4156
|
-
var s =
|
|
4157
|
-
this.ast = e.__parse(t,
|
|
4191
|
+
var s = $n(a, ["formatters"]);
|
|
4192
|
+
this.ast = e.__parse(t, N(N({}, s), { locale: this.resolvedLocale }));
|
|
4158
4193
|
} else
|
|
4159
4194
|
this.ast = t;
|
|
4160
4195
|
if (!Array.isArray(this.ast))
|
|
4161
4196
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
4162
|
-
this.formats =
|
|
4197
|
+
this.formats = wi(e.formats, n), this.formatters = i && i.formatters || Hi(this.formatterCache);
|
|
4163
4198
|
}
|
|
4164
4199
|
return Object.defineProperty(e, "defaultLocale", {
|
|
4165
4200
|
get: function() {
|
|
@@ -4169,10 +4204,10 @@ var Si = (
|
|
|
4169
4204
|
configurable: !0
|
|
4170
4205
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
4171
4206
|
if (!(typeof Intl.Locale > "u")) {
|
|
4172
|
-
var
|
|
4173
|
-
return
|
|
4207
|
+
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
4208
|
+
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
4174
4209
|
}
|
|
4175
|
-
}, e.__parse =
|
|
4210
|
+
}, e.__parse = vi, e.formats = {
|
|
4176
4211
|
number: {
|
|
4177
4212
|
integer: {
|
|
4178
4213
|
maximumFractionDigits: 0
|
|
@@ -4233,113 +4268,113 @@ var Si = (
|
|
|
4233
4268
|
}, e;
|
|
4234
4269
|
}()
|
|
4235
4270
|
);
|
|
4236
|
-
function
|
|
4271
|
+
function Ai(e, t) {
|
|
4237
4272
|
if (t == null)
|
|
4238
4273
|
return;
|
|
4239
4274
|
if (t in e)
|
|
4240
4275
|
return e[t];
|
|
4241
|
-
const
|
|
4242
|
-
let
|
|
4243
|
-
for (let i = 0; i <
|
|
4244
|
-
if (typeof
|
|
4276
|
+
const r = t.split(".");
|
|
4277
|
+
let n = e;
|
|
4278
|
+
for (let i = 0; i < r.length; i++)
|
|
4279
|
+
if (typeof n == "object") {
|
|
4245
4280
|
if (i > 0) {
|
|
4246
|
-
const o =
|
|
4247
|
-
if (o in
|
|
4248
|
-
|
|
4281
|
+
const o = r.slice(i, r.length).join(".");
|
|
4282
|
+
if (o in n) {
|
|
4283
|
+
n = n[o];
|
|
4249
4284
|
break;
|
|
4250
4285
|
}
|
|
4251
4286
|
}
|
|
4252
|
-
|
|
4287
|
+
n = n[r[i]];
|
|
4253
4288
|
} else
|
|
4254
|
-
|
|
4255
|
-
return
|
|
4289
|
+
n = void 0;
|
|
4290
|
+
return n;
|
|
4256
4291
|
}
|
|
4257
|
-
const U = {},
|
|
4292
|
+
const U = {}, Pi = (e, t, r) => r && (t in U || (U[t] = {}), e in U[t] || (U[t][e] = r), r), yr = (e, t) => {
|
|
4258
4293
|
if (t == null)
|
|
4259
4294
|
return;
|
|
4260
4295
|
if (t in U && e in U[t])
|
|
4261
4296
|
return U[t][e];
|
|
4262
|
-
const
|
|
4263
|
-
for (let
|
|
4264
|
-
const i = n
|
|
4297
|
+
const r = Ie(t);
|
|
4298
|
+
for (let n = 0; n < r.length; n++) {
|
|
4299
|
+
const i = r[n], o = Ii(i, e);
|
|
4265
4300
|
if (o)
|
|
4266
|
-
return
|
|
4301
|
+
return Pi(e, t, o);
|
|
4267
4302
|
}
|
|
4268
4303
|
};
|
|
4269
|
-
let
|
|
4270
|
-
const
|
|
4271
|
-
function
|
|
4272
|
-
return
|
|
4304
|
+
let ut;
|
|
4305
|
+
const ce = Ae({});
|
|
4306
|
+
function Oi(e) {
|
|
4307
|
+
return ut[e] || null;
|
|
4273
4308
|
}
|
|
4274
|
-
function
|
|
4275
|
-
return e in
|
|
4309
|
+
function gr(e) {
|
|
4310
|
+
return e in ut;
|
|
4276
4311
|
}
|
|
4277
|
-
function
|
|
4278
|
-
if (!
|
|
4312
|
+
function Ii(e, t) {
|
|
4313
|
+
if (!gr(e))
|
|
4279
4314
|
return null;
|
|
4280
|
-
const
|
|
4281
|
-
return
|
|
4315
|
+
const r = Oi(e);
|
|
4316
|
+
return Ai(r, t);
|
|
4282
4317
|
}
|
|
4283
|
-
function
|
|
4318
|
+
function Li(e) {
|
|
4284
4319
|
if (e == null)
|
|
4285
4320
|
return;
|
|
4286
|
-
const t =
|
|
4287
|
-
for (let
|
|
4288
|
-
const
|
|
4289
|
-
if (
|
|
4290
|
-
return
|
|
4321
|
+
const t = Ie(e);
|
|
4322
|
+
for (let r = 0; r < t.length; r++) {
|
|
4323
|
+
const n = t[r];
|
|
4324
|
+
if (gr(n))
|
|
4325
|
+
return n;
|
|
4291
4326
|
}
|
|
4292
4327
|
}
|
|
4293
|
-
function
|
|
4294
|
-
delete U[e],
|
|
4328
|
+
function vr(e, ...t) {
|
|
4329
|
+
delete U[e], ce.update((r) => (r[e] = Cn.all([r[e] || {}, ...t]), r));
|
|
4295
4330
|
}
|
|
4296
|
-
|
|
4297
|
-
[
|
|
4331
|
+
K(
|
|
4332
|
+
[ce],
|
|
4298
4333
|
([e]) => Object.keys(e)
|
|
4299
4334
|
);
|
|
4300
|
-
|
|
4301
|
-
const
|
|
4302
|
-
function
|
|
4303
|
-
|
|
4335
|
+
ce.subscribe((e) => ut = e);
|
|
4336
|
+
const _e = {};
|
|
4337
|
+
function Ni(e, t) {
|
|
4338
|
+
_e[e].delete(t), _e[e].size === 0 && delete _e[e];
|
|
4304
4339
|
}
|
|
4305
|
-
function
|
|
4306
|
-
return
|
|
4340
|
+
function _r(e) {
|
|
4341
|
+
return _e[e];
|
|
4307
4342
|
}
|
|
4308
|
-
function
|
|
4309
|
-
return
|
|
4310
|
-
const
|
|
4311
|
-
return [t,
|
|
4343
|
+
function Mi(e) {
|
|
4344
|
+
return Ie(e).map((t) => {
|
|
4345
|
+
const r = _r(t);
|
|
4346
|
+
return [t, r ? [...r] : []];
|
|
4312
4347
|
}).filter(([, t]) => t.length > 0);
|
|
4313
4348
|
}
|
|
4314
|
-
function
|
|
4315
|
-
return e == null ? !1 :
|
|
4349
|
+
function it(e) {
|
|
4350
|
+
return e == null ? !1 : Ie(e).some(
|
|
4316
4351
|
(t) => {
|
|
4317
|
-
var
|
|
4318
|
-
return (
|
|
4352
|
+
var r;
|
|
4353
|
+
return (r = _r(t)) == null ? void 0 : r.size;
|
|
4319
4354
|
}
|
|
4320
4355
|
);
|
|
4321
4356
|
}
|
|
4322
|
-
function
|
|
4357
|
+
function Ci(e, t) {
|
|
4323
4358
|
return Promise.all(
|
|
4324
|
-
t.map((
|
|
4325
|
-
).then((
|
|
4326
|
-
}
|
|
4327
|
-
const
|
|
4328
|
-
function
|
|
4329
|
-
if (!
|
|
4330
|
-
return e in
|
|
4331
|
-
const t =
|
|
4332
|
-
return
|
|
4359
|
+
t.map((n) => (Ni(e, n), n().then((i) => i.default || i)))
|
|
4360
|
+
).then((n) => vr(e, ...n));
|
|
4361
|
+
}
|
|
4362
|
+
const ne = {};
|
|
4363
|
+
function Er(e) {
|
|
4364
|
+
if (!it(e))
|
|
4365
|
+
return e in ne ? ne[e] : Promise.resolve();
|
|
4366
|
+
const t = Mi(e);
|
|
4367
|
+
return ne[e] = Promise.all(
|
|
4333
4368
|
t.map(
|
|
4334
|
-
([
|
|
4369
|
+
([r, n]) => Ci(r, n)
|
|
4335
4370
|
)
|
|
4336
4371
|
).then(() => {
|
|
4337
|
-
if (
|
|
4338
|
-
return
|
|
4339
|
-
delete
|
|
4340
|
-
}),
|
|
4372
|
+
if (it(e))
|
|
4373
|
+
return Er(e);
|
|
4374
|
+
delete ne[e];
|
|
4375
|
+
}), ne[e];
|
|
4341
4376
|
}
|
|
4342
|
-
const
|
|
4377
|
+
const $i = {
|
|
4343
4378
|
number: {
|
|
4344
4379
|
scientific: { notation: "scientific" },
|
|
4345
4380
|
engineering: { notation: "engineering" },
|
|
@@ -4368,136 +4403,136 @@ const Li = {
|
|
|
4368
4403
|
timeZoneName: "short"
|
|
4369
4404
|
}
|
|
4370
4405
|
}
|
|
4371
|
-
},
|
|
4406
|
+
}, Ri = {
|
|
4372
4407
|
fallbackLocale: null,
|
|
4373
4408
|
loadingDelay: 200,
|
|
4374
|
-
formats:
|
|
4409
|
+
formats: $i,
|
|
4375
4410
|
warnOnMissingMessages: !0,
|
|
4376
4411
|
handleMissingMessage: void 0,
|
|
4377
4412
|
ignoreTag: !0
|
|
4378
|
-
},
|
|
4379
|
-
function
|
|
4380
|
-
return
|
|
4381
|
-
}
|
|
4382
|
-
const
|
|
4383
|
-
var
|
|
4384
|
-
for (var
|
|
4385
|
-
|
|
4386
|
-
if (
|
|
4387
|
-
for (var
|
|
4388
|
-
|
|
4413
|
+
}, Ui = Ri;
|
|
4414
|
+
function J() {
|
|
4415
|
+
return Ui;
|
|
4416
|
+
}
|
|
4417
|
+
const je = Ae(!1);
|
|
4418
|
+
var Di = Object.defineProperty, Gi = Object.defineProperties, Fi = Object.getOwnPropertyDescriptors, Pt = Object.getOwnPropertySymbols, ji = Object.prototype.hasOwnProperty, ki = Object.prototype.propertyIsEnumerable, Ot = (e, t, r) => t in e ? Di(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Vi = (e, t) => {
|
|
4419
|
+
for (var r in t || (t = {}))
|
|
4420
|
+
ji.call(t, r) && Ot(e, r, t[r]);
|
|
4421
|
+
if (Pt)
|
|
4422
|
+
for (var r of Pt(t))
|
|
4423
|
+
ki.call(t, r) && Ot(e, r, t[r]);
|
|
4389
4424
|
return e;
|
|
4390
|
-
},
|
|
4391
|
-
let
|
|
4392
|
-
const
|
|
4393
|
-
function
|
|
4394
|
-
return e.split("-").map((t,
|
|
4425
|
+
}, Xi = (e, t) => Gi(e, Fi(t));
|
|
4426
|
+
let ot;
|
|
4427
|
+
const we = Ae(null);
|
|
4428
|
+
function It(e) {
|
|
4429
|
+
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4395
4430
|
}
|
|
4396
|
-
function
|
|
4397
|
-
const
|
|
4398
|
-
return t ? [.../* @__PURE__ */ new Set([...
|
|
4431
|
+
function Ie(e, t = J().fallbackLocale) {
|
|
4432
|
+
const r = It(e);
|
|
4433
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...It(t)])] : r;
|
|
4399
4434
|
}
|
|
4400
4435
|
function F() {
|
|
4401
|
-
return
|
|
4436
|
+
return ot ?? void 0;
|
|
4402
4437
|
}
|
|
4403
|
-
|
|
4404
|
-
|
|
4438
|
+
we.subscribe((e) => {
|
|
4439
|
+
ot = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4405
4440
|
});
|
|
4406
|
-
const
|
|
4407
|
-
if (e &&
|
|
4408
|
-
const { loadingDelay: t } =
|
|
4409
|
-
let
|
|
4410
|
-
return typeof window < "u" && F() != null && t ?
|
|
4411
|
-
() =>
|
|
4441
|
+
const Wi = (e) => {
|
|
4442
|
+
if (e && Li(e) && it(e)) {
|
|
4443
|
+
const { loadingDelay: t } = J();
|
|
4444
|
+
let r;
|
|
4445
|
+
return typeof window < "u" && F() != null && t ? r = window.setTimeout(
|
|
4446
|
+
() => je.set(!0),
|
|
4412
4447
|
t
|
|
4413
|
-
) :
|
|
4414
|
-
|
|
4448
|
+
) : je.set(!0), Er(e).then(() => {
|
|
4449
|
+
we.set(e);
|
|
4415
4450
|
}).finally(() => {
|
|
4416
|
-
clearTimeout(
|
|
4451
|
+
clearTimeout(r), je.set(!1);
|
|
4417
4452
|
});
|
|
4418
4453
|
}
|
|
4419
|
-
return
|
|
4420
|
-
},
|
|
4421
|
-
set:
|
|
4422
|
-
}),
|
|
4454
|
+
return we.set(e);
|
|
4455
|
+
}, ee = Xi(Vi({}, we), {
|
|
4456
|
+
set: Wi
|
|
4457
|
+
}), Le = (e) => {
|
|
4423
4458
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4424
|
-
return (
|
|
4425
|
-
const i = JSON.stringify(
|
|
4426
|
-
return i in t ? t[i] : t[i] = e(
|
|
4459
|
+
return (n) => {
|
|
4460
|
+
const i = JSON.stringify(n);
|
|
4461
|
+
return i in t ? t[i] : t[i] = e(n);
|
|
4427
4462
|
};
|
|
4428
4463
|
};
|
|
4429
|
-
var
|
|
4430
|
-
for (var
|
|
4431
|
-
|
|
4432
|
-
if (
|
|
4433
|
-
for (var
|
|
4434
|
-
|
|
4464
|
+
var zi = Object.defineProperty, He = Object.getOwnPropertySymbols, xr = Object.prototype.hasOwnProperty, Sr = Object.prototype.propertyIsEnumerable, Lt = (e, t, r) => t in e ? zi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ht = (e, t) => {
|
|
4465
|
+
for (var r in t || (t = {}))
|
|
4466
|
+
xr.call(t, r) && Lt(e, r, t[r]);
|
|
4467
|
+
if (He)
|
|
4468
|
+
for (var r of He(t))
|
|
4469
|
+
Sr.call(t, r) && Lt(e, r, t[r]);
|
|
4435
4470
|
return e;
|
|
4436
|
-
},
|
|
4437
|
-
var
|
|
4438
|
-
for (var
|
|
4439
|
-
|
|
4440
|
-
if (e != null &&
|
|
4441
|
-
for (var
|
|
4442
|
-
t.indexOf(
|
|
4443
|
-
return
|
|
4471
|
+
}, te = (e, t) => {
|
|
4472
|
+
var r = {};
|
|
4473
|
+
for (var n in e)
|
|
4474
|
+
xr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4475
|
+
if (e != null && He)
|
|
4476
|
+
for (var n of He(e))
|
|
4477
|
+
t.indexOf(n) < 0 && Sr.call(e, n) && (r[n] = e[n]);
|
|
4478
|
+
return r;
|
|
4444
4479
|
};
|
|
4445
|
-
const
|
|
4446
|
-
const { formats:
|
|
4447
|
-
if (e in
|
|
4448
|
-
return
|
|
4480
|
+
const ae = (e, t) => {
|
|
4481
|
+
const { formats: r } = J();
|
|
4482
|
+
if (e in r && t in r[e])
|
|
4483
|
+
return r[e][t];
|
|
4449
4484
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4450
|
-
},
|
|
4485
|
+
}, Zi = Le(
|
|
4451
4486
|
(e) => {
|
|
4452
|
-
var t = e, { locale:
|
|
4453
|
-
if (
|
|
4487
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
4488
|
+
if (r == null)
|
|
4454
4489
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4455
|
-
return
|
|
4490
|
+
return n && (i = ae("number", n)), new Intl.NumberFormat(r, i);
|
|
4456
4491
|
}
|
|
4457
|
-
),
|
|
4492
|
+
), qi = Le(
|
|
4458
4493
|
(e) => {
|
|
4459
|
-
var t = e, { locale:
|
|
4460
|
-
if (
|
|
4494
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
4495
|
+
if (r == null)
|
|
4461
4496
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4462
|
-
return
|
|
4497
|
+
return n ? i = ae("date", n) : Object.keys(i).length === 0 && (i = ae("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4463
4498
|
}
|
|
4464
|
-
),
|
|
4499
|
+
), Qi = Le(
|
|
4465
4500
|
(e) => {
|
|
4466
|
-
var t = e, { locale:
|
|
4467
|
-
if (
|
|
4501
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
4502
|
+
if (r == null)
|
|
4468
4503
|
throw new Error(
|
|
4469
4504
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4470
4505
|
);
|
|
4471
|
-
return
|
|
4506
|
+
return n ? i = ae("time", n) : Object.keys(i).length === 0 && (i = ae("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4472
4507
|
}
|
|
4473
|
-
),
|
|
4508
|
+
), Ji = (e = {}) => {
|
|
4474
4509
|
var t = e, {
|
|
4475
|
-
locale:
|
|
4476
|
-
} = t,
|
|
4510
|
+
locale: r = F()
|
|
4511
|
+
} = t, n = te(t, [
|
|
4477
4512
|
"locale"
|
|
4478
4513
|
]);
|
|
4479
|
-
return
|
|
4480
|
-
},
|
|
4514
|
+
return Zi(ht({ locale: r }, n));
|
|
4515
|
+
}, Yi = (e = {}) => {
|
|
4481
4516
|
var t = e, {
|
|
4482
|
-
locale:
|
|
4483
|
-
} = t,
|
|
4517
|
+
locale: r = F()
|
|
4518
|
+
} = t, n = te(t, [
|
|
4484
4519
|
"locale"
|
|
4485
4520
|
]);
|
|
4486
|
-
return
|
|
4487
|
-
},
|
|
4521
|
+
return qi(ht({ locale: r }, n));
|
|
4522
|
+
}, Ki = (e = {}) => {
|
|
4488
4523
|
var t = e, {
|
|
4489
|
-
locale:
|
|
4490
|
-
} = t,
|
|
4524
|
+
locale: r = F()
|
|
4525
|
+
} = t, n = te(t, [
|
|
4491
4526
|
"locale"
|
|
4492
4527
|
]);
|
|
4493
|
-
return
|
|
4494
|
-
},
|
|
4528
|
+
return Qi(ht({ locale: r }, n));
|
|
4529
|
+
}, eo = Le(
|
|
4495
4530
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4496
|
-
(e, t = F()) => new
|
|
4497
|
-
ignoreTag:
|
|
4531
|
+
(e, t = F()) => new Bi(e, t, J().formats, {
|
|
4532
|
+
ignoreTag: J().ignoreTag
|
|
4498
4533
|
})
|
|
4499
|
-
),
|
|
4500
|
-
var
|
|
4534
|
+
), to = (e, t = {}) => {
|
|
4535
|
+
var r, n, i, o;
|
|
4501
4536
|
let a = t;
|
|
4502
4537
|
typeof e == "object" && (a = e, e = a.id);
|
|
4503
4538
|
const {
|
|
@@ -4509,70 +4544,70 @@ const ue = (e, t) => {
|
|
|
4509
4544
|
throw new Error(
|
|
4510
4545
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4511
4546
|
);
|
|
4512
|
-
let l =
|
|
4547
|
+
let l = yr(e, h);
|
|
4513
4548
|
if (!l)
|
|
4514
|
-
l = (o = (i = (
|
|
4549
|
+
l = (o = (i = (n = (r = J()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4515
4550
|
else if (typeof l != "string")
|
|
4516
4551
|
return console.warn(
|
|
4517
4552
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
4518
4553
|
), l;
|
|
4519
4554
|
if (!s)
|
|
4520
4555
|
return l;
|
|
4521
|
-
let
|
|
4556
|
+
let f = l;
|
|
4522
4557
|
try {
|
|
4523
|
-
|
|
4524
|
-
} catch (
|
|
4525
|
-
|
|
4558
|
+
f = eo(l, h).format(s);
|
|
4559
|
+
} catch (c) {
|
|
4560
|
+
c instanceof Error && console.warn(
|
|
4526
4561
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4527
|
-
|
|
4562
|
+
c.message
|
|
4528
4563
|
);
|
|
4529
4564
|
}
|
|
4530
|
-
return
|
|
4531
|
-
},
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
window.emWidgets = { topic:
|
|
4537
|
-
const
|
|
4538
|
-
function
|
|
4539
|
-
const
|
|
4565
|
+
return f;
|
|
4566
|
+
}, ro = (e, t) => Ki(t).format(e), no = (e, t) => Yi(t).format(e), io = (e, t) => Ji(t).format(e), oo = (e, t = F()) => yr(e, t), so = K([ee, ce], () => to);
|
|
4567
|
+
K([ee], () => ro);
|
|
4568
|
+
K([ee], () => no);
|
|
4569
|
+
K([ee], () => io);
|
|
4570
|
+
K([ee, ce], () => oo);
|
|
4571
|
+
window.emWidgets = { topic: gn };
|
|
4572
|
+
const ko = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)), Tr = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC", Vo = (e) => e.match(/CustomNative/i) ? "NativeApp" : Tr(e) === "PC" ? "Desktop" : "Mobile";
|
|
4573
|
+
function Xo(e, t) {
|
|
4574
|
+
const r = () => !0;
|
|
4540
4575
|
switch (typeof e) {
|
|
4541
4576
|
case "string": {
|
|
4542
|
-
const
|
|
4543
|
-
return
|
|
4577
|
+
const n = e.trim();
|
|
4578
|
+
return n && isFinite(Number(n)) && r();
|
|
4544
4579
|
}
|
|
4545
4580
|
case "number":
|
|
4546
|
-
return isFinite(e) &&
|
|
4581
|
+
return isFinite(e) && r();
|
|
4547
4582
|
default:
|
|
4548
4583
|
return !1;
|
|
4549
4584
|
}
|
|
4550
4585
|
}
|
|
4551
|
-
function
|
|
4586
|
+
function Nt(e, t) {
|
|
4552
4587
|
if (e) {
|
|
4553
|
-
const
|
|
4554
|
-
|
|
4588
|
+
const r = document.createElement("style");
|
|
4589
|
+
r.innerHTML = t, e.appendChild(r);
|
|
4555
4590
|
}
|
|
4556
4591
|
}
|
|
4557
|
-
function
|
|
4558
|
-
const
|
|
4559
|
-
fetch(
|
|
4592
|
+
function ao(e, t) {
|
|
4593
|
+
const r = new URL(t);
|
|
4594
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4560
4595
|
const i = document.createElement("style");
|
|
4561
|
-
i.innerHTML =
|
|
4562
|
-
}).catch((
|
|
4563
|
-
console.error("There was an error while trying to load client styling from URL",
|
|
4596
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
4597
|
+
}).catch((n) => {
|
|
4598
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
4564
4599
|
});
|
|
4565
4600
|
}
|
|
4566
|
-
function
|
|
4601
|
+
function uo(e, t, r) {
|
|
4567
4602
|
if (window.emMessageBus) {
|
|
4568
|
-
const
|
|
4603
|
+
const n = document.createElement("style");
|
|
4569
4604
|
window.emMessageBus.subscribe(t, (i) => {
|
|
4570
|
-
|
|
4605
|
+
n.innerHTML = i, e && e.appendChild(n);
|
|
4571
4606
|
});
|
|
4572
4607
|
}
|
|
4573
4608
|
}
|
|
4574
|
-
const
|
|
4575
|
-
const
|
|
4609
|
+
const ho = (e, t = {}) => {
|
|
4610
|
+
const r = new CustomEvent("track-custom-event", {
|
|
4576
4611
|
detail: {
|
|
4577
4612
|
type: e,
|
|
4578
4613
|
data: t
|
|
@@ -4580,15 +4615,15 @@ const oo = (e, t = {}) => {
|
|
|
4580
4615
|
bubbles: !0,
|
|
4581
4616
|
composed: !0
|
|
4582
4617
|
});
|
|
4583
|
-
document.dispatchEvent(
|
|
4618
|
+
document.dispatchEvent(r);
|
|
4584
4619
|
};
|
|
4585
|
-
function
|
|
4586
|
-
|
|
4620
|
+
function Mt(e, t) {
|
|
4621
|
+
vr(e, t);
|
|
4587
4622
|
}
|
|
4588
|
-
function
|
|
4589
|
-
|
|
4623
|
+
function lo(e) {
|
|
4624
|
+
ee.set(e);
|
|
4590
4625
|
}
|
|
4591
|
-
const
|
|
4626
|
+
const Ct = {
|
|
4592
4627
|
en: {
|
|
4593
4628
|
logoutButton: "Logout"
|
|
4594
4629
|
},
|
|
@@ -4623,21 +4658,21 @@ const It = {
|
|
|
4623
4658
|
logoutButton: "Logout"
|
|
4624
4659
|
}
|
|
4625
4660
|
};
|
|
4626
|
-
function
|
|
4627
|
-
|
|
4661
|
+
function co(e) {
|
|
4662
|
+
Nr(e, "svelte-xtnqa3", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PlayerAccountMenuItemBox{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerLogoutText{margin-left:20px}.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox{height:auto;justify-content:center;position:relative;display:flex;width:unset;padding:0}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}");
|
|
4628
4663
|
}
|
|
4629
|
-
function
|
|
4630
|
-
let t,
|
|
4664
|
+
function fo(e) {
|
|
4665
|
+
let t, r, n, i = (
|
|
4631
4666
|
/*$_*/
|
|
4632
4667
|
e[2]("logoutButton") + ""
|
|
4633
4668
|
), o, a, s;
|
|
4634
4669
|
return {
|
|
4635
4670
|
c() {
|
|
4636
|
-
t = I("div"),
|
|
4671
|
+
t = I("div"), r = I("button"), n = I("span"), o = he(i), B(t, "class", "GeneralLogout");
|
|
4637
4672
|
},
|
|
4638
4673
|
m(h, u) {
|
|
4639
|
-
|
|
4640
|
-
|
|
4674
|
+
Y(h, t, u), A(t, r), A(r, n), A(n, o), a || (s = kt(
|
|
4675
|
+
r,
|
|
4641
4676
|
"click",
|
|
4642
4677
|
/*click_handler_1*/
|
|
4643
4678
|
e[14]
|
|
@@ -4646,19 +4681,19 @@ function uo(e) {
|
|
|
4646
4681
|
p(h, u) {
|
|
4647
4682
|
u & /*$_*/
|
|
4648
4683
|
4 && i !== (i = /*$_*/
|
|
4649
|
-
h[2]("logoutButton") + "") &&
|
|
4684
|
+
h[2]("logoutButton") + "") && Vt(o, i);
|
|
4650
4685
|
},
|
|
4651
4686
|
d(h) {
|
|
4652
4687
|
h && D(t), a = !1, s();
|
|
4653
4688
|
}
|
|
4654
4689
|
};
|
|
4655
4690
|
}
|
|
4656
|
-
function
|
|
4657
|
-
let t,
|
|
4658
|
-
e[3] &&
|
|
4691
|
+
function po(e) {
|
|
4692
|
+
let t, r, n, i, o, a, s, h, u, l, f, c = !/*isMobile*/
|
|
4693
|
+
e[3] && mo(e);
|
|
4659
4694
|
return {
|
|
4660
4695
|
c() {
|
|
4661
|
-
t = I("p"),
|
|
4696
|
+
t = I("p"), r = I("span"), n = V("svg"), i = V("defs"), o = V("style"), a = he(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"), s = V("path"), h = V("path"), u = Cr(), c && c.c(), B(s, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), B(s, "d", "M147.16,67.69,115.42,36a9.6,9.6,0,1,0-13.58,13.58l15.32,15.31H49.58a9.63,9.63,0,1,0,0,19.26h67.58L101.84,99.42a9.64,9.64,0,0,0,6.79,16.43,9.41,9.41,0,0,0,6.79-2.85l31.74-31.73a9.53,9.53,0,0,0,0-13.58Z"), B(h, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), B(h, "d", "M45.16,122.16H19.26V26.79H45.32a9.63,9.63,0,1,0,0-19.26H9.63A9.56,9.56,0,0,0,0,17.16V131.63a9.57,9.57,0,0,0,9.63,9.64H45.32A9.57,9.57,0,0,0,55,131.63a9.78,9.78,0,0,0-9.79-9.47Z"), B(n, "id", "bbfaf345-72af-4296-bf4b-2fd41fc03d5d"), B(n, "data-name", "Layer 1"), B(n, "xmlns", "http://www.w3.org/2000/svg"), B(n, "viewBox", "0 0 150 150"), Rr(r, "width", /*isMobile*/
|
|
4662
4697
|
e[3] ? (
|
|
4663
4698
|
/*mediaQuery*/
|
|
4664
4699
|
e[4].matches ? "20px" : "24px"
|
|
@@ -4667,63 +4702,63 @@ function ho(e) {
|
|
|
4667
4702
|
(e[4].matches && /*isMobile*/
|
|
4668
4703
|
e[3] ? "PlayerAccountMenuItemBoxTablet" : ""));
|
|
4669
4704
|
},
|
|
4670
|
-
m(
|
|
4671
|
-
|
|
4705
|
+
m(d, p) {
|
|
4706
|
+
Y(d, t, p), A(t, r), A(r, n), A(n, i), A(i, o), A(o, a), A(n, s), A(n, h), A(t, u), c && c.m(t, null), l || (f = kt(
|
|
4672
4707
|
t,
|
|
4673
4708
|
"click",
|
|
4674
4709
|
/*click_handler*/
|
|
4675
4710
|
e[13]
|
|
4676
4711
|
), l = !0);
|
|
4677
4712
|
},
|
|
4678
|
-
p(
|
|
4713
|
+
p(d, p) {
|
|
4679
4714
|
/*isMobile*/
|
|
4680
|
-
|
|
4715
|
+
d[3] || c.p(d, p);
|
|
4681
4716
|
},
|
|
4682
|
-
d(
|
|
4683
|
-
|
|
4717
|
+
d(d) {
|
|
4718
|
+
d && D(t), c && c.d(), l = !1, f();
|
|
4684
4719
|
}
|
|
4685
4720
|
};
|
|
4686
4721
|
}
|
|
4687
|
-
function
|
|
4688
|
-
let t,
|
|
4722
|
+
function mo(e) {
|
|
4723
|
+
let t, r = (
|
|
4689
4724
|
/*$_*/
|
|
4690
4725
|
e[2]("logoutButton") + ""
|
|
4691
|
-
),
|
|
4726
|
+
), n;
|
|
4692
4727
|
return {
|
|
4693
4728
|
c() {
|
|
4694
|
-
t = I("span"),
|
|
4729
|
+
t = I("span"), n = he(r), B(t, "class", "PlayerLogoutText");
|
|
4695
4730
|
},
|
|
4696
4731
|
m(i, o) {
|
|
4697
|
-
|
|
4732
|
+
Y(i, t, o), A(t, n);
|
|
4698
4733
|
},
|
|
4699
4734
|
p(i, o) {
|
|
4700
4735
|
o & /*$_*/
|
|
4701
|
-
4 &&
|
|
4702
|
-
i[2]("logoutButton") + "") &&
|
|
4736
|
+
4 && r !== (r = /*$_*/
|
|
4737
|
+
i[2]("logoutButton") + "") && Vt(n, r);
|
|
4703
4738
|
},
|
|
4704
4739
|
d(i) {
|
|
4705
4740
|
i && D(t);
|
|
4706
4741
|
}
|
|
4707
4742
|
};
|
|
4708
4743
|
}
|
|
4709
|
-
function
|
|
4744
|
+
function bo(e) {
|
|
4710
4745
|
let t;
|
|
4711
|
-
function
|
|
4746
|
+
function r(o, a) {
|
|
4712
4747
|
return (
|
|
4713
4748
|
/*buttonlocation*/
|
|
4714
|
-
o[0] === "PlayerAccountMenu" ?
|
|
4749
|
+
o[0] === "PlayerAccountMenu" ? po : fo
|
|
4715
4750
|
);
|
|
4716
4751
|
}
|
|
4717
|
-
let
|
|
4752
|
+
let n = r(e), i = n(e);
|
|
4718
4753
|
return {
|
|
4719
4754
|
c() {
|
|
4720
4755
|
t = I("div"), i.c();
|
|
4721
4756
|
},
|
|
4722
4757
|
m(o, a) {
|
|
4723
|
-
|
|
4758
|
+
Y(o, t, a), i.m(t, null), e[15](t);
|
|
4724
4759
|
},
|
|
4725
4760
|
p(o, [a]) {
|
|
4726
|
-
|
|
4761
|
+
n === (n = r(o)) && i ? i.p(o, a) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
|
|
4727
4762
|
},
|
|
4728
4763
|
i: H,
|
|
4729
4764
|
o: H,
|
|
@@ -4732,78 +4767,78 @@ function fo(e) {
|
|
|
4732
4767
|
}
|
|
4733
4768
|
};
|
|
4734
4769
|
}
|
|
4735
|
-
function
|
|
4736
|
-
let
|
|
4737
|
-
|
|
4738
|
-
let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: a = "" } = t, { lang: s = "" } = t, { mbsource: h } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl:
|
|
4770
|
+
function yo(e, t, r) {
|
|
4771
|
+
let n;
|
|
4772
|
+
Or(e, so, (g) => r(2, n = g));
|
|
4773
|
+
let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: a = "" } = t, { lang: s = "" } = t, { mbsource: h } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, c = "", d = !1, p, m = window.navigator.userAgent, _ = Tr(m) !== "PC";
|
|
4739
4774
|
const T = window.matchMedia("(min-width: 768px)"), P = () => {
|
|
4740
|
-
fetch(
|
|
4741
|
-
Object.keys(R).forEach((
|
|
4742
|
-
|
|
4775
|
+
fetch(f).then((R) => R.json()).then((R) => {
|
|
4776
|
+
Object.keys(R).forEach((Ne) => {
|
|
4777
|
+
Mt(Ne, R[Ne]);
|
|
4743
4778
|
});
|
|
4744
4779
|
}).catch((R) => {
|
|
4745
4780
|
console.log(R);
|
|
4746
4781
|
});
|
|
4747
4782
|
};
|
|
4748
|
-
Object.keys(
|
|
4749
|
-
|
|
4783
|
+
Object.keys(Ct).forEach((g) => {
|
|
4784
|
+
Mt(g, Ct[g]);
|
|
4750
4785
|
});
|
|
4751
|
-
const
|
|
4752
|
-
let
|
|
4753
|
-
|
|
4754
|
-
let R = { method: "DELETE", headers:
|
|
4755
|
-
fetch(`${i}/v1/player/session/player`, R).then((
|
|
4756
|
-
window.postMessage({ type: "LogoutSuccessfull" }, window.location.href),
|
|
4786
|
+
const x = () => {
|
|
4787
|
+
let g = new Headers();
|
|
4788
|
+
g.append("Content-type", "application/json"), g.append("X-SessionID", o);
|
|
4789
|
+
let R = { method: "DELETE", headers: g };
|
|
4790
|
+
fetch(`${i}/v1/player/session/player`, R).then((Ne) => {
|
|
4791
|
+
window.postMessage({ type: "LogoutSuccessfull" }, window.location.href), ho("logged_out", {});
|
|
4757
4792
|
});
|
|
4758
|
-
}, O = () => (i || (
|
|
4759
|
-
|
|
4793
|
+
}, O = () => (i || (c = "GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.", d = !0, console.error(c)), o || (c = "GENERAL-LOGOUT - Session is missing! Please provide a valid session.", d = !0, console.error(c)), d), w = () => {
|
|
4794
|
+
lo(s);
|
|
4760
4795
|
};
|
|
4761
|
-
|
|
4796
|
+
Xr(() => () => {
|
|
4762
4797
|
});
|
|
4763
|
-
const $ = () =>
|
|
4764
|
-
function
|
|
4765
|
-
|
|
4766
|
-
|
|
4798
|
+
const $ = () => x(), fe = () => x();
|
|
4799
|
+
function Hr(g) {
|
|
4800
|
+
ke[g ? "unshift" : "push"](() => {
|
|
4801
|
+
p = g, r(1, p);
|
|
4767
4802
|
});
|
|
4768
4803
|
}
|
|
4769
|
-
return e.$$set = (
|
|
4770
|
-
"endpoint" in
|
|
4804
|
+
return e.$$set = (g) => {
|
|
4805
|
+
"endpoint" in g && r(6, i = g.endpoint), "session" in g && r(7, o = g.session), "buttonlocation" in g && r(0, a = g.buttonlocation), "lang" in g && r(8, s = g.lang), "mbsource" in g && r(9, h = g.mbsource), "clientstyling" in g && r(10, u = g.clientstyling), "clientstylingurl" in g && r(11, l = g.clientstylingurl), "translationurl" in g && r(12, f = g.translationurl);
|
|
4771
4806
|
}, e.$$.update = () => {
|
|
4772
4807
|
e.$$.dirty & /*endpoint, session, buttonlocation*/
|
|
4773
4808
|
193 && i && o && a && O(), e.$$.dirty & /*lang*/
|
|
4774
4809
|
256 && s && w(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4775
|
-
1026 && u &&
|
|
4776
|
-
1026 && u &&
|
|
4777
|
-
2050 && l &&
|
|
4778
|
-
514 && h &&
|
|
4779
|
-
4096 &&
|
|
4810
|
+
1026 && u && p && Nt(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4811
|
+
1026 && u && p && Nt(p, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4812
|
+
2050 && l && p && ao(p, l), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4813
|
+
514 && h && p && uo(p, `${h}.Style`), e.$$.dirty & /*translationurl*/
|
|
4814
|
+
4096 && f && P();
|
|
4780
4815
|
}, [
|
|
4781
4816
|
a,
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4817
|
+
p,
|
|
4818
|
+
n,
|
|
4819
|
+
_,
|
|
4785
4820
|
T,
|
|
4786
|
-
|
|
4821
|
+
x,
|
|
4787
4822
|
i,
|
|
4788
4823
|
o,
|
|
4789
4824
|
s,
|
|
4790
4825
|
h,
|
|
4791
4826
|
u,
|
|
4792
4827
|
l,
|
|
4793
|
-
|
|
4828
|
+
f,
|
|
4794
4829
|
$,
|
|
4795
|
-
|
|
4796
|
-
|
|
4830
|
+
fe,
|
|
4831
|
+
Hr
|
|
4797
4832
|
];
|
|
4798
4833
|
}
|
|
4799
|
-
class
|
|
4834
|
+
class wr extends rn {
|
|
4800
4835
|
constructor(t) {
|
|
4801
|
-
super(),
|
|
4836
|
+
super(), en(
|
|
4802
4837
|
this,
|
|
4803
4838
|
t,
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4839
|
+
yo,
|
|
4840
|
+
bo,
|
|
4841
|
+
Rt,
|
|
4807
4842
|
{
|
|
4808
4843
|
endpoint: 6,
|
|
4809
4844
|
session: 7,
|
|
@@ -4814,7 +4849,7 @@ class En extends Kn {
|
|
|
4814
4849
|
clientstylingurl: 11,
|
|
4815
4850
|
translationurl: 12
|
|
4816
4851
|
},
|
|
4817
|
-
|
|
4852
|
+
co
|
|
4818
4853
|
);
|
|
4819
4854
|
}
|
|
4820
4855
|
get endpoint() {
|
|
@@ -4866,74 +4901,74 @@ class En extends Kn {
|
|
|
4866
4901
|
this.$$set({ translationurl: t }), L();
|
|
4867
4902
|
}
|
|
4868
4903
|
}
|
|
4869
|
-
|
|
4870
|
-
const
|
|
4904
|
+
tn(wr, { endpoint: {}, session: {}, buttonlocation: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4905
|
+
const Wo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4871
4906
|
__proto__: null,
|
|
4872
|
-
default:
|
|
4907
|
+
default: wr
|
|
4873
4908
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4874
4909
|
export {
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4910
|
+
ee as $,
|
|
4911
|
+
tn as A,
|
|
4912
|
+
so as B,
|
|
4913
|
+
ce as C,
|
|
4914
|
+
Vo as D,
|
|
4915
|
+
$o as E,
|
|
4916
|
+
Ho as F,
|
|
4917
|
+
To as G,
|
|
4918
|
+
vo as H,
|
|
4919
|
+
Do as I,
|
|
4920
|
+
qr as J,
|
|
4921
|
+
Eo as K,
|
|
4922
|
+
xo as L,
|
|
4923
|
+
_o as M,
|
|
4924
|
+
Bo as N,
|
|
4925
|
+
Fo as O,
|
|
4926
|
+
wo as P,
|
|
4927
|
+
No as Q,
|
|
4928
|
+
Oo as R,
|
|
4929
|
+
rn as S,
|
|
4930
|
+
Lo as T,
|
|
4931
|
+
ue as U,
|
|
4932
|
+
Io as V,
|
|
4933
|
+
Se as W,
|
|
4934
|
+
ko as X,
|
|
4935
|
+
So as Y,
|
|
4936
|
+
Rr as Z,
|
|
4937
|
+
Uo as _,
|
|
4938
|
+
vr as a,
|
|
4939
|
+
Ro as a0,
|
|
4940
|
+
Co as a1,
|
|
4941
|
+
go as a2,
|
|
4942
|
+
Br as a3,
|
|
4943
|
+
Go as a4,
|
|
4944
|
+
_n as a5,
|
|
4945
|
+
jo as a6,
|
|
4946
|
+
Xo as a7,
|
|
4947
|
+
Po as a8,
|
|
4948
|
+
Wo as a9,
|
|
4949
|
+
Nr as b,
|
|
4950
|
+
Vt as c,
|
|
4951
|
+
D as d,
|
|
4952
|
+
B as e,
|
|
4918
4953
|
L as f,
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4954
|
+
Ao as g,
|
|
4955
|
+
Y as h,
|
|
4956
|
+
en as i,
|
|
4957
|
+
A as j,
|
|
4958
|
+
I as k,
|
|
4959
|
+
kt as l,
|
|
4960
|
+
Cr as m,
|
|
4961
|
+
H as n,
|
|
4962
|
+
Mo as o,
|
|
4963
|
+
Or as p,
|
|
4964
|
+
Tr as q,
|
|
4930
4965
|
G as r,
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4966
|
+
Rt as s,
|
|
4967
|
+
he as t,
|
|
4968
|
+
Xr as u,
|
|
4969
|
+
V as v,
|
|
4970
|
+
ke as w,
|
|
4971
|
+
Nt as x,
|
|
4972
|
+
ao as y,
|
|
4973
|
+
uo as z
|
|
4939
4974
|
};
|