halo-pc 1.0.23 → 1.0.25
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Article-4S7jNdlM.js → Article-B85JcyzM.js} +10 -10
- package/dist/{ArticleFooter-DQs1A7g2.js → ArticleFooter-BCHVxIWa.js} +1 -1
- package/dist/{Autocomplete-B9SJNrNq.js → Autocomplete-BA0pEA9T.js} +2 -2
- package/dist/{Autocomplete-BZNDoWFj.js → Autocomplete-C1MC46ef.js} +3 -3
- package/dist/{Autocomplete-BXwtzACg.js → Autocomplete-DUmzcj_9.js} +1 -1
- package/dist/{CSharp-aXdVWxPS.js → CSharp-CLKgbbVS.js} +1 -1
- package/dist/{Calender-DSckLCh-.js → Calender-DIjZoC1-.js} +4 -4
- package/dist/{Callback-xlj8oj2-.js → Callback-DmCRycGX.js} +3 -3
- package/dist/{Cascader-Cwi5mukb.js → Cascader-CQqLPpEF.js} +10 -10
- package/dist/{Cascader-D1RbjsMs.js → Cascader-DcM0THgE.js} +1 -1
- package/dist/{Checkbox-DtNMPsX4.js → Checkbox-BJjYhPvp.js} +1 -1
- package/dist/{Checkbox-DFnVivE9.js → Checkbox-CLGuZoor.js} +1 -1
- package/dist/{Code-B2jpV8ek.js → Code-C5fE_bvq.js} +1 -1
- package/dist/{Code-CTmcyEEu.js → Code-CVyrDYHh.js} +4 -4
- package/dist/{Code-DEOvcbgy.js → Code-CfODGNBF.js} +1 -1
- package/dist/{Code-CEafFSlR.js → Code-D7kMH044.js} +1 -1
- package/dist/{Code.vue_vue_type_style_index_0_lang-Cf1QzL0C.js → Code.vue_vue_type_style_index_0_lang-CGIHkYJn.js} +5 -5
- package/dist/{Column-zAYqqGgI.js → Column-4XWgmnKg.js} +13 -12
- package/dist/{Comment-BZTVtxyP.js → Comment-CNvy-1Iq.js} +1 -1
- package/dist/{Compare-DMDVEK_Q.js → Compare-DICZHIEn.js} +1 -1
- package/dist/{Compare-Dy_YDKN2.js → Compare-wgk3D3EX.js} +13 -12
- package/dist/{Copy-KA_-9J5g.js → Copy-C_EBpWht.js} +1 -1
- package/dist/{Custom-BpQzSpoK.js → Custom-OUdFT-Z9.js} +1 -1
- package/dist/{DataExport-CU9MMI6C.js → DataExport-f8caAI4D.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-DdczhsmD.js → DataExport.vue_vue_type_script_setup_true_lang-CbiPENFw.js} +1 -1
- package/dist/{DataImport-Dzq9P4hO.js → DataImport-CZaVBfZq.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-BdDLixcQ.js → DataImport.vue_vue_type_script_setup_true_lang-DIrLf0yN.js} +6 -6
- package/dist/{Date-yqT5zILQ.js → Date-B1jUMPdx.js} +3 -3
- package/dist/{Date-BD5syhZL.js → Date-DtHzdllB.js} +1 -1
- package/dist/{DateRange-CUQsaLxD.js → DateRange-CXUIVfwU.js} +1 -1
- package/dist/{DateTime-DcerQByM.js → DateTime-6lhPVe1O.js} +1 -1
- package/dist/{DateTime-hLc--zka.js → DateTime-G4F8DiCI.js} +1 -1
- package/dist/{DateTimeRange-CSRaF4s1.js → DateTimeRange-CG9K8X5b.js} +5 -5
- package/dist/{Daterange-DY2i3jwP.js → Daterange-DbhWv06V.js} +1 -1
- package/dist/{Decimal-DY34o2Nh.js → Decimal-iKOftOtx.js} +1 -1
- package/dist/{Delete-CXnvlNw9.js → Delete-BU-TdXZR.js} +1 -1
- package/dist/{Detail-BYlDGKVP.js → Detail-syloerEZ.js} +12 -11
- package/dist/{Dictionary-DtXqTf_k.js → Dictionary-DYPWj-d0.js} +7 -7
- package/dist/{Email-ofMPw09E.js → Email-BTKIb--f.js} +1 -1
- package/dist/{File-czipSVR0.js → File-IQG0slBy.js} +15 -14
- package/dist/Image-BRH98A7N.js +9 -0
- package/dist/{Index-j9BffBys.js → Index-BJWMiDrx.js} +25 -25
- package/dist/{Index-CK25oTiA.js → Index-BqseRji6.js} +1 -1
- package/dist/Index-C8CUkTm5.js +4 -0
- package/dist/Index-CBAGTH43.js +4 -0
- package/dist/{Index-BSZ_tPMy.js → Index-CnqiNw5R.js} +1 -1
- package/dist/{Index-DIUPLGQ4.js → Index-CttpoRk-.js} +2 -2
- package/dist/Index-D3WQg1HZ.js +4 -0
- package/dist/Index-KxibedJH.js +4 -0
- package/dist/{Index.vue_vue_type_script_setup_true_lang-DtZPmPAC.js → Index.vue_vue_type_script_setup_true_lang-C0QNQ1MJ.js} +4 -3
- package/dist/{Index.vue_vue_type_script_setup_true_lang-Bp4JjtSz.js → Index.vue_vue_type_script_setup_true_lang-Cx8eXCsw.js} +7 -6
- package/dist/{Install-qFVqjd7y.js → Install-BEeQqQzM.js} +4 -3
- package/dist/{Int-BWcRpPzt.js → Int-Ae-gJbt5.js} +1 -1
- package/dist/{Int-BYyavcrM.js → Int-BqZ6sIcn.js} +3 -3
- package/dist/{List-BejoBArm.js → List-D8C_gyVz.js} +2 -2
- package/dist/{Maintaince-Dlh2ICnO.js → Maintaince-DdS89Bbv.js} +3 -3
- package/dist/{Markdown-DymmFy2X.js → Markdown-DR4rlU3-.js} +1 -1
- package/dist/{Month-DaYaF2WK.js → Month-BECDFWum.js} +3 -3
- package/dist/{Month-C5_ANmVr.js → Month-BRuj2vZ-.js} +1 -1
- package/dist/{Month-Cf8e0cin.js → Month-CnScc0mu.js} +3 -3
- package/dist/{Normal-NYkjZ2aA.js → Normal-B6h5U5-c.js} +95 -93
- package/dist/{Paging-DoQ_cXwj.js → Paging-CdUnYWJ1.js} +51 -51
- package/dist/{PagingHeader-BhwoSfFl.js → PagingHeader-BEfi7NBv.js} +1 -1
- package/dist/{PagingRow-BF6pUhoJ.js → PagingRow-C-l9v-bo.js} +1 -1
- package/dist/{QueryApi-CPQ67lb4.js → QueryApi-CwNeSXIs.js} +1 -1
- package/dist/{Racebar-BNPXg9aN.js → Racebar-BdLTF_ZH.js} +27 -27
- package/dist/{Radio-wHwEjg6V.js → Radio-DVmzOE7P.js} +1 -1
- package/dist/{Register-B4Bc8s-2.js → Register-CQSkhKvF.js} +24 -24
- package/dist/{RichText-Cj5QP79L.js → RichText-D-AaPwkx.js} +8 -8
- package/dist/{SearchFooter-zNYx9YkN.js → SearchFooter-CKOh4Fzz.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-CVxX9q-U.js → SearchFooter.vue_vue_type_style_index_0_lang-D6xp89r9.js} +1 -1
- package/dist/{SearchForm-CJ3ru63a.js → SearchForm-WtocjgIQ.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-DDH5N323.js → SearchForm.vue_vue_type_style_index_0_lang-DFqj7f23.js} +8 -8
- package/dist/{Select-BDaDhqW7.js → Select-CGC68XKI.js} +1 -1
- package/dist/{Select-DFLY8nGY.js → Select-DuHwIGlP.js} +1 -1
- package/dist/{Select-WXibWkE0.js → Select-RG1Hkpw4.js} +17 -17
- package/dist/{Single-CmQgQl_u.js → Single-PROE_P9A.js} +22 -23
- package/dist/{Statistic-BuU_GxqZ.js → Statistic-R1oy4jve.js} +25 -27
- package/dist/{Stock-CDJ-AVw-.js → Stock-Dzlxs_TK.js} +1 -1
- package/dist/{Stock-B7NgfM19.js → Stock-zGPixaHC.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-pZYnIJLp.js → Stock.vue_vue_type_style_index_0_lang-DAlvmXf0.js} +10 -10
- package/dist/{Switch-DHf-0HZD.js → Switch-y8TGQEHX.js} +1 -1
- package/dist/{Table-7P4KXMsy.js → Table-D--KFpz3.js} +107 -108
- package/dist/{Table-CN-KYO1R.js → Table-NDlPEOwH.js} +77 -77
- package/dist/{Text-Da3ROjFC.js → Text-BkKR1LPU.js} +4 -4
- package/dist/Text-DXGGbFhr.js +4 -0
- package/dist/{Text-C05EoDxO.js → Text-DXGzwZnW.js} +5 -5
- package/dist/{Text.vue_vue_type_style_index_0_lang-DKX9_aI4.js → Text.vue_vue_type_style_index_0_lang-CeWH48Pu.js} +1 -1
- package/dist/{TextLink-CQ_46bry.js → TextLink-DYisoDVn.js} +1 -1
- package/dist/{Textarea-B91EwIdj.js → Textarea-C4PlCQXP.js} +1 -1
- package/dist/{Time-DxyveGcA.js → Time-DxojKVPC.js} +3 -3
- package/dist/{Timeline-C1xOEcU4.js → Timeline-hBk2KUsH.js} +1 -1
- package/dist/{Tree-BK6p6Ake.js → Tree-Dsrpy8UN.js} +9 -9
- package/dist/{Tree-DxJKaqc6.js → Tree-DzfCEHVR.js} +19 -19
- package/dist/{TreeNode-C84IoqkK.js → TreeNode-BAZbs0jL.js} +1 -1
- package/dist/{Update-D5cXmHyf.js → Update-BzPazrMP.js} +4 -3
- package/dist/{UpdateChild-DvrF1nBA.js → UpdateChild-BvIiamkv.js} +1 -1
- package/dist/{Upload-CK-ALAKV.js → Upload-Dt2pNqjv.js} +16 -16
- package/dist/{Upload-CRpCHz3m.js → Upload-fnKNelcS.js} +14 -14
- package/dist/{UploadApi-B-7WPVHD.js → UploadApi-D_HwEoQY.js} +1 -1
- package/dist/{Year-BOL9ynRU.js → Year-BUO5CKKv.js} +4 -4
- package/dist/{Year-CwaPwkLN.js → Year-DJPzJlot.js} +1 -1
- package/dist/{main-CnPQ_RYM.js → main--j4fHmql.js} +2983 -2847
- package/dist/main.js +130 -128
- package/dist/style.css +1 -1
- package/esm/coms/controls/index.d.ts +2 -0
- package/esm/coms/headers/Index.vue.d.ts +21 -2
- package/esm/svcs/AppSvc.d.ts +4 -36
- package/esm/svcs/ControlSvc.d.ts +8 -8
- package/esm/svcs/PageSvc.d.ts +0 -12
- package/esm/svcs/StandardSvc.d.ts +13 -3
- package/esm/svcs/index.d.ts +1 -6
- package/package.json +2 -2
- package/dist/Image-BwJO-IEo.js +0 -9
- package/dist/Index-Bwy9Q7qy.js +0 -4
- package/dist/Index-Ch5_Jqsf.js +0 -4
- package/dist/Index-DnNVMYOZ.js +0 -4
- package/dist/Index-qOyfJhdG.js +0 -4
- package/dist/Index.vue_vue_type_style_index_0_lang-CTTyswoD.js +0 -122
- package/dist/Text-DqapEwUL.js +0 -4
- package/dist/assets/@intlify-BISCQg1h.js +0 -2189
- package/dist/assets/@vue-aVYGocXp.js +0 -93
- package/dist/assets/vue-i18n-CLr3brPz.js +0 -1670
@@ -1,2189 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* shared v9.13.1
|
3
|
-
* (c) 2024 kazuya kawaguchi
|
4
|
-
* Released under the MIT License.
|
5
|
-
*/
|
6
|
-
const se = typeof window < "u";
|
7
|
-
let X, ae;
|
8
|
-
if (process.env.NODE_ENV !== "production") {
|
9
|
-
const e = se && window.performance;
|
10
|
-
e && e.mark && e.measure && e.clearMarks && // @ts-ignore browser compat
|
11
|
-
e.clearMeasures && (X = (t) => {
|
12
|
-
e.mark(t);
|
13
|
-
}, ae = (t, n, r) => {
|
14
|
-
e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
|
15
|
-
});
|
16
|
-
}
|
17
|
-
const Yt = /\{([0-9a-zA-Z]+)\}/g;
|
18
|
-
function et(e, ...t) {
|
19
|
-
return t.length === 1 && U(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(Yt, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
|
20
|
-
}
|
21
|
-
const Tr = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Gt = (e, t, n) => Xt({ l: e, k: t, s: n }), Xt = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), G = (e) => typeof e == "number" && isFinite(e), Ht = (e) => nt(e) === "[object Date]", Fe = (e) => nt(e) === "[object RegExp]", De = (e) => v(e) && Object.keys(e).length === 0, fe = Object.assign;
|
22
|
-
let Ue;
|
23
|
-
const ge = () => Ue || (Ue = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
24
|
-
function $e(e) {
|
25
|
-
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
26
|
-
}
|
27
|
-
const xt = Object.prototype.hasOwnProperty;
|
28
|
-
function Lr(e, t) {
|
29
|
-
return xt.call(e, t);
|
30
|
-
}
|
31
|
-
const j = Array.isArray, $ = (e) => typeof e == "function", y = (e) => typeof e == "string", K = (e) => typeof e == "boolean", U = (e) => e !== null && typeof e == "object", Bt = (e) => U(e) && $(e.then) && $(e.catch), tt = Object.prototype.toString, nt = (e) => tt.call(e), v = (e) => {
|
32
|
-
if (!U(e))
|
33
|
-
return !1;
|
34
|
-
const t = Object.getPrototypeOf(e);
|
35
|
-
return t === null || t.constructor === Object;
|
36
|
-
}, jt = (e) => e == null ? "" : j(e) || v(e) && e.toString === tt ? JSON.stringify(e, null, 2) : String(e);
|
37
|
-
function Jt(e, t = "") {
|
38
|
-
return e.reduce((n, r, o) => o === 0 ? n + r : n + t + r, "");
|
39
|
-
}
|
40
|
-
const Ve = 2;
|
41
|
-
function Qt(e, t = 0, n = e.length) {
|
42
|
-
const r = e.split(/\r?\n/);
|
43
|
-
let o = 0;
|
44
|
-
const i = [];
|
45
|
-
for (let u = 0; u < r.length; u++)
|
46
|
-
if (o += r[u].length + 1, o >= t) {
|
47
|
-
for (let _ = u - Ve; _ <= u + Ve || n > o; _++) {
|
48
|
-
if (_ < 0 || _ >= r.length)
|
49
|
-
continue;
|
50
|
-
const l = _ + 1;
|
51
|
-
i.push(`${l}${" ".repeat(3 - String(l).length)}| ${r[_]}`);
|
52
|
-
const T = r[_].length;
|
53
|
-
if (_ === u) {
|
54
|
-
const O = t - (o - T) + 1, h = Math.max(1, n > o ? T - O : n - t);
|
55
|
-
i.push(" | " + " ".repeat(O) + "^".repeat(h));
|
56
|
-
} else if (_ > u) {
|
57
|
-
if (n > o) {
|
58
|
-
const O = Math.max(Math.min(n - o, T), 1);
|
59
|
-
i.push(" | " + "^".repeat(O));
|
60
|
-
}
|
61
|
-
o += T + 1;
|
62
|
-
}
|
63
|
-
}
|
64
|
-
break;
|
65
|
-
}
|
66
|
-
return i.join(`
|
67
|
-
`);
|
68
|
-
}
|
69
|
-
function rt(e) {
|
70
|
-
let t = e;
|
71
|
-
return () => ++t;
|
72
|
-
}
|
73
|
-
function _e(e, t) {
|
74
|
-
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
75
|
-
}
|
76
|
-
const We = {};
|
77
|
-
function qt(e) {
|
78
|
-
We[e] || (We[e] = !0, _e(e));
|
79
|
-
}
|
80
|
-
function Or() {
|
81
|
-
const e = /* @__PURE__ */ new Map();
|
82
|
-
return {
|
83
|
-
events: e,
|
84
|
-
on(n, r) {
|
85
|
-
const o = e.get(n);
|
86
|
-
o && o.push(r) || e.set(n, [r]);
|
87
|
-
},
|
88
|
-
off(n, r) {
|
89
|
-
const o = e.get(n);
|
90
|
-
o && o.splice(o.indexOf(r) >>> 0, 1);
|
91
|
-
},
|
92
|
-
emit(n, r) {
|
93
|
-
(e.get(n) || []).slice().map((o) => o(r)), (e.get("*") || []).slice().map((o) => o(n, r));
|
94
|
-
}
|
95
|
-
};
|
96
|
-
}
|
97
|
-
const Ne = (e) => !U(e) || j(e);
|
98
|
-
function hr(e, t) {
|
99
|
-
if (Ne(e) || Ne(t))
|
100
|
-
throw new Error("Invalid value");
|
101
|
-
const n = [{ src: e, des: t }];
|
102
|
-
for (; n.length; ) {
|
103
|
-
const { src: r, des: o } = n.pop();
|
104
|
-
Object.keys(r).forEach((i) => {
|
105
|
-
Ne(r[i]) || Ne(o[i]) ? o[i] = r[i] : n.push({ src: r[i], des: o[i] });
|
106
|
-
});
|
107
|
-
}
|
108
|
-
}
|
109
|
-
/*!
|
110
|
-
* message-compiler v9.13.1
|
111
|
-
* (c) 2024 kazuya kawaguchi
|
112
|
-
* Released under the MIT License.
|
113
|
-
*/
|
114
|
-
function Zt(e, t, n) {
|
115
|
-
return { line: e, column: t, offset: n };
|
116
|
-
}
|
117
|
-
function pe(e, t, n) {
|
118
|
-
return { start: e, end: t };
|
119
|
-
}
|
120
|
-
const zt = /\{([0-9a-zA-Z]+)\}/g;
|
121
|
-
function st(e, ...t) {
|
122
|
-
return t.length === 1 && en(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(zt, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
|
123
|
-
}
|
124
|
-
const at = Object.assign, Ke = (e) => typeof e == "string", en = (e) => e !== null && typeof e == "object";
|
125
|
-
function ot(e, t = "") {
|
126
|
-
return e.reduce((n, r, o) => o === 0 ? n + r : n + t + r, "");
|
127
|
-
}
|
128
|
-
const Te = {
|
129
|
-
USE_MODULO_SYNTAX: 1,
|
130
|
-
__EXTEND_POINT__: 2
|
131
|
-
}, tn = {
|
132
|
-
[Te.USE_MODULO_SYNTAX]: "Use modulo before '{{0}}'."
|
133
|
-
};
|
134
|
-
function nn(e, t, ...n) {
|
135
|
-
const r = st(tn[e], ...n || []), o = { message: String(r), code: e };
|
136
|
-
return t && (o.location = t), o;
|
137
|
-
}
|
138
|
-
const I = {
|
139
|
-
// tokenizer error codes
|
140
|
-
EXPECTED_TOKEN: 1,
|
141
|
-
INVALID_TOKEN_IN_PLACEHOLDER: 2,
|
142
|
-
UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3,
|
143
|
-
UNKNOWN_ESCAPE_SEQUENCE: 4,
|
144
|
-
INVALID_UNICODE_ESCAPE_SEQUENCE: 5,
|
145
|
-
UNBALANCED_CLOSING_BRACE: 6,
|
146
|
-
UNTERMINATED_CLOSING_BRACE: 7,
|
147
|
-
EMPTY_PLACEHOLDER: 8,
|
148
|
-
NOT_ALLOW_NEST_PLACEHOLDER: 9,
|
149
|
-
INVALID_LINKED_FORMAT: 10,
|
150
|
-
// parser error codes
|
151
|
-
MUST_HAVE_MESSAGES_IN_PLURAL: 11,
|
152
|
-
UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
|
153
|
-
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
154
|
-
UNEXPECTED_LEXICAL_ANALYSIS: 14,
|
155
|
-
// generator error codes
|
156
|
-
UNHANDLED_CODEGEN_NODE_TYPE: 15,
|
157
|
-
// minifier error codes
|
158
|
-
UNHANDLED_MINIFIER_NODE_TYPE: 16,
|
159
|
-
// Special value for higher-order compilers to pick up the last code
|
160
|
-
// to avoid collision of error codes. This should always be kept as the last
|
161
|
-
// item.
|
162
|
-
__EXTEND_POINT__: 17
|
163
|
-
}, rn = {
|
164
|
-
// tokenizer error messages
|
165
|
-
[I.EXPECTED_TOKEN]: "Expected token: '{0}'",
|
166
|
-
[I.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
|
167
|
-
[I.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder",
|
168
|
-
[I.UNKNOWN_ESCAPE_SEQUENCE]: "Unknown escape sequence: \\{0}",
|
169
|
-
[I.INVALID_UNICODE_ESCAPE_SEQUENCE]: "Invalid unicode escape sequence: {0}",
|
170
|
-
[I.UNBALANCED_CLOSING_BRACE]: "Unbalanced closing brace",
|
171
|
-
[I.UNTERMINATED_CLOSING_BRACE]: "Unterminated closing brace",
|
172
|
-
[I.EMPTY_PLACEHOLDER]: "Empty placeholder",
|
173
|
-
[I.NOT_ALLOW_NEST_PLACEHOLDER]: "Not allowed nest placeholder",
|
174
|
-
[I.INVALID_LINKED_FORMAT]: "Invalid linked format",
|
175
|
-
// parser error messages
|
176
|
-
[I.MUST_HAVE_MESSAGES_IN_PLURAL]: "Plural must have messages",
|
177
|
-
[I.UNEXPECTED_EMPTY_LINKED_MODIFIER]: "Unexpected empty linked modifier",
|
178
|
-
[I.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key",
|
179
|
-
[I.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'",
|
180
|
-
// generator error messages
|
181
|
-
[I.UNHANDLED_CODEGEN_NODE_TYPE]: "unhandled codegen node type: '{0}'",
|
182
|
-
// minimizer error messages
|
183
|
-
[I.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
184
|
-
};
|
185
|
-
function me(e, t, n = {}) {
|
186
|
-
const { domain: r, messages: o, args: i } = n, u = st((o || rn)[e] || "", ...i || []), _ = new SyntaxError(String(u));
|
187
|
-
return _.code = e, t && (_.location = t), _.domain = r, _;
|
188
|
-
}
|
189
|
-
function sn(e) {
|
190
|
-
throw e;
|
191
|
-
}
|
192
|
-
const an = /<\/?[\w\s="/.':;#-\/]+>/, on = (e) => an.test(e), q = " ", cn = "\r", W = `
|
193
|
-
`, ln = "\u2028", un = "\u2029";
|
194
|
-
function fn(e) {
|
195
|
-
const t = e;
|
196
|
-
let n = 0, r = 1, o = 1, i = 0;
|
197
|
-
const u = (N) => t[N] === cn && t[N + 1] === W, _ = (N) => t[N] === W, l = (N) => t[N] === un, T = (N) => t[N] === ln, O = (N) => u(N) || _(N) || l(N) || T(N), h = () => n, p = () => r, D = () => o, P = () => i, b = (N) => u(N) || l(N) || T(N) ? W : t[N], g = () => b(n), S = () => b(n + i);
|
198
|
-
function C() {
|
199
|
-
return i = 0, O(n) && (r++, o = 0), u(n) && n++, n++, o++, t[n];
|
200
|
-
}
|
201
|
-
function c() {
|
202
|
-
return u(n + i) && i++, i++, t[n + i];
|
203
|
-
}
|
204
|
-
function f() {
|
205
|
-
n = 0, r = 1, o = 1, i = 0;
|
206
|
-
}
|
207
|
-
function E(N = 0) {
|
208
|
-
i = N;
|
209
|
-
}
|
210
|
-
function m() {
|
211
|
-
const N = n + i;
|
212
|
-
for (; N !== n; )
|
213
|
-
C();
|
214
|
-
i = 0;
|
215
|
-
}
|
216
|
-
return {
|
217
|
-
index: h,
|
218
|
-
line: p,
|
219
|
-
column: D,
|
220
|
-
peekOffset: P,
|
221
|
-
charAt: b,
|
222
|
-
currentChar: g,
|
223
|
-
currentPeek: S,
|
224
|
-
next: C,
|
225
|
-
peek: c,
|
226
|
-
reset: f,
|
227
|
-
resetPeek: E,
|
228
|
-
skipToPeek: m
|
229
|
-
};
|
230
|
-
}
|
231
|
-
const z = void 0, _n = ".", Ye = "'", dn = "tokenizer";
|
232
|
-
function mn(e, t = {}) {
|
233
|
-
const n = t.location !== !1, r = fn(e), o = () => r.index(), i = () => Zt(r.line(), r.column(), r.index()), u = i(), _ = o(), l = {
|
234
|
-
currentType: 14,
|
235
|
-
offset: _,
|
236
|
-
startLoc: u,
|
237
|
-
endLoc: u,
|
238
|
-
lastType: 14,
|
239
|
-
lastOffset: _,
|
240
|
-
lastStartLoc: u,
|
241
|
-
lastEndLoc: u,
|
242
|
-
braceNest: 0,
|
243
|
-
inLinked: !1,
|
244
|
-
text: ""
|
245
|
-
}, T = () => l, { onError: O } = t;
|
246
|
-
function h(s, a, d, ...A) {
|
247
|
-
const w = T();
|
248
|
-
if (a.column += d, a.offset += d, O) {
|
249
|
-
const R = n ? pe(w.startLoc, a) : null, Z = me(s, R, {
|
250
|
-
domain: dn,
|
251
|
-
args: A
|
252
|
-
});
|
253
|
-
O(Z);
|
254
|
-
}
|
255
|
-
}
|
256
|
-
function p(s, a, d) {
|
257
|
-
s.endLoc = i(), s.currentType = a;
|
258
|
-
const A = { type: a };
|
259
|
-
return n && (A.loc = pe(s.startLoc, s.endLoc)), d != null && (A.value = d), A;
|
260
|
-
}
|
261
|
-
const D = (s) => p(
|
262
|
-
s,
|
263
|
-
14
|
264
|
-
/* TokenTypes.EOF */
|
265
|
-
);
|
266
|
-
function P(s, a) {
|
267
|
-
return s.currentChar() === a ? (s.next(), a) : (h(I.EXPECTED_TOKEN, i(), 0, a), "");
|
268
|
-
}
|
269
|
-
function b(s) {
|
270
|
-
let a = "";
|
271
|
-
for (; s.currentPeek() === q || s.currentPeek() === W; )
|
272
|
-
a += s.currentPeek(), s.peek();
|
273
|
-
return a;
|
274
|
-
}
|
275
|
-
function g(s) {
|
276
|
-
const a = b(s);
|
277
|
-
return s.skipToPeek(), a;
|
278
|
-
}
|
279
|
-
function S(s) {
|
280
|
-
if (s === z)
|
281
|
-
return !1;
|
282
|
-
const a = s.charCodeAt(0);
|
283
|
-
return a >= 97 && a <= 122 || // a-z
|
284
|
-
a >= 65 && a <= 90 || // A-Z
|
285
|
-
a === 95;
|
286
|
-
}
|
287
|
-
function C(s) {
|
288
|
-
if (s === z)
|
289
|
-
return !1;
|
290
|
-
const a = s.charCodeAt(0);
|
291
|
-
return a >= 48 && a <= 57;
|
292
|
-
}
|
293
|
-
function c(s, a) {
|
294
|
-
const { currentType: d } = a;
|
295
|
-
if (d !== 2)
|
296
|
-
return !1;
|
297
|
-
b(s);
|
298
|
-
const A = S(s.currentPeek());
|
299
|
-
return s.resetPeek(), A;
|
300
|
-
}
|
301
|
-
function f(s, a) {
|
302
|
-
const { currentType: d } = a;
|
303
|
-
if (d !== 2)
|
304
|
-
return !1;
|
305
|
-
b(s);
|
306
|
-
const A = s.currentPeek() === "-" ? s.peek() : s.currentPeek(), w = C(A);
|
307
|
-
return s.resetPeek(), w;
|
308
|
-
}
|
309
|
-
function E(s, a) {
|
310
|
-
const { currentType: d } = a;
|
311
|
-
if (d !== 2)
|
312
|
-
return !1;
|
313
|
-
b(s);
|
314
|
-
const A = s.currentPeek() === Ye;
|
315
|
-
return s.resetPeek(), A;
|
316
|
-
}
|
317
|
-
function m(s, a) {
|
318
|
-
const { currentType: d } = a;
|
319
|
-
if (d !== 8)
|
320
|
-
return !1;
|
321
|
-
b(s);
|
322
|
-
const A = s.currentPeek() === ".";
|
323
|
-
return s.resetPeek(), A;
|
324
|
-
}
|
325
|
-
function N(s, a) {
|
326
|
-
const { currentType: d } = a;
|
327
|
-
if (d !== 9)
|
328
|
-
return !1;
|
329
|
-
b(s);
|
330
|
-
const A = S(s.currentPeek());
|
331
|
-
return s.resetPeek(), A;
|
332
|
-
}
|
333
|
-
function L(s, a) {
|
334
|
-
const { currentType: d } = a;
|
335
|
-
if (!(d === 8 || d === 12))
|
336
|
-
return !1;
|
337
|
-
b(s);
|
338
|
-
const A = s.currentPeek() === ":";
|
339
|
-
return s.resetPeek(), A;
|
340
|
-
}
|
341
|
-
function M(s, a) {
|
342
|
-
const { currentType: d } = a;
|
343
|
-
if (d !== 10)
|
344
|
-
return !1;
|
345
|
-
const A = () => {
|
346
|
-
const R = s.currentPeek();
|
347
|
-
return R === "{" ? S(s.peek()) : R === "@" || R === "%" || R === "|" || R === ":" || R === "." || R === q || !R ? !1 : R === W ? (s.peek(), A()) : k(s, !1);
|
348
|
-
}, w = A();
|
349
|
-
return s.resetPeek(), w;
|
350
|
-
}
|
351
|
-
function F(s) {
|
352
|
-
b(s);
|
353
|
-
const a = s.currentPeek() === "|";
|
354
|
-
return s.resetPeek(), a;
|
355
|
-
}
|
356
|
-
function Q(s) {
|
357
|
-
const a = b(s), d = s.currentPeek() === "%" && s.peek() === "{";
|
358
|
-
return s.resetPeek(), {
|
359
|
-
isModulo: d,
|
360
|
-
hasSpace: a.length > 0
|
361
|
-
};
|
362
|
-
}
|
363
|
-
function k(s, a = !0) {
|
364
|
-
const d = (w = !1, R = "", Z = !1) => {
|
365
|
-
const te = s.currentPeek();
|
366
|
-
return te === "{" ? R === "%" ? !1 : w : te === "@" || !te ? R === "%" ? !0 : w : te === "%" ? (s.peek(), d(w, "%", !0)) : te === "|" ? R === "%" || Z ? !0 : !(R === q || R === W) : te === q ? (s.peek(), d(!0, q, Z)) : te === W ? (s.peek(), d(!0, W, Z)) : !0;
|
367
|
-
}, A = d();
|
368
|
-
return a && s.resetPeek(), A;
|
369
|
-
}
|
370
|
-
function H(s, a) {
|
371
|
-
const d = s.currentChar();
|
372
|
-
return d === z ? z : a(d) ? (s.next(), d) : null;
|
373
|
-
}
|
374
|
-
function At(s) {
|
375
|
-
const a = s.charCodeAt(0);
|
376
|
-
return a >= 97 && a <= 122 || // a-z
|
377
|
-
a >= 65 && a <= 90 || // A-Z
|
378
|
-
a >= 48 && a <= 57 || // 0-9
|
379
|
-
a === 95 || // _
|
380
|
-
a === 36;
|
381
|
-
}
|
382
|
-
function It(s) {
|
383
|
-
return H(s, At);
|
384
|
-
}
|
385
|
-
function Ct(s) {
|
386
|
-
const a = s.charCodeAt(0);
|
387
|
-
return a >= 97 && a <= 122 || // a-z
|
388
|
-
a >= 65 && a <= 90 || // A-Z
|
389
|
-
a >= 48 && a <= 57 || // 0-9
|
390
|
-
a === 95 || // _
|
391
|
-
a === 36 || // $
|
392
|
-
a === 45;
|
393
|
-
}
|
394
|
-
function St(s) {
|
395
|
-
return H(s, Ct);
|
396
|
-
}
|
397
|
-
function Dt(s) {
|
398
|
-
const a = s.charCodeAt(0);
|
399
|
-
return a >= 48 && a <= 57;
|
400
|
-
}
|
401
|
-
function yt(s) {
|
402
|
-
return H(s, Dt);
|
403
|
-
}
|
404
|
-
function bt(s) {
|
405
|
-
const a = s.charCodeAt(0);
|
406
|
-
return a >= 48 && a <= 57 || // 0-9
|
407
|
-
a >= 65 && a <= 70 || // A-F
|
408
|
-
a >= 97 && a <= 102;
|
409
|
-
}
|
410
|
-
function Pt(s) {
|
411
|
-
return H(s, bt);
|
412
|
-
}
|
413
|
-
function Re(s) {
|
414
|
-
let a = "", d = "";
|
415
|
-
for (; a = yt(s); )
|
416
|
-
d += a;
|
417
|
-
return d;
|
418
|
-
}
|
419
|
-
function Mt(s) {
|
420
|
-
g(s);
|
421
|
-
const a = s.currentChar();
|
422
|
-
return a !== "%" && h(I.EXPECTED_TOKEN, i(), 0, a), s.next(), "%";
|
423
|
-
}
|
424
|
-
function ve(s) {
|
425
|
-
let a = "";
|
426
|
-
for (; ; ) {
|
427
|
-
const d = s.currentChar();
|
428
|
-
if (d === "{" || d === "}" || d === "@" || d === "|" || !d)
|
429
|
-
break;
|
430
|
-
if (d === "%")
|
431
|
-
if (k(s))
|
432
|
-
a += d, s.next();
|
433
|
-
else
|
434
|
-
break;
|
435
|
-
else if (d === q || d === W)
|
436
|
-
if (k(s))
|
437
|
-
a += d, s.next();
|
438
|
-
else {
|
439
|
-
if (F(s))
|
440
|
-
break;
|
441
|
-
a += d, s.next();
|
442
|
-
}
|
443
|
-
else
|
444
|
-
a += d, s.next();
|
445
|
-
}
|
446
|
-
return a;
|
447
|
-
}
|
448
|
-
function kt(s) {
|
449
|
-
g(s);
|
450
|
-
let a = "", d = "";
|
451
|
-
for (; a = St(s); )
|
452
|
-
d += a;
|
453
|
-
return s.currentChar() === z && h(I.UNTERMINATED_CLOSING_BRACE, i(), 0), d;
|
454
|
-
}
|
455
|
-
function Rt(s) {
|
456
|
-
g(s);
|
457
|
-
let a = "";
|
458
|
-
return s.currentChar() === "-" ? (s.next(), a += `-${Re(s)}`) : a += Re(s), s.currentChar() === z && h(I.UNTERMINATED_CLOSING_BRACE, i(), 0), a;
|
459
|
-
}
|
460
|
-
function vt(s) {
|
461
|
-
return s !== Ye && s !== W;
|
462
|
-
}
|
463
|
-
function wt(s) {
|
464
|
-
g(s), P(s, "'");
|
465
|
-
let a = "", d = "";
|
466
|
-
for (; a = H(s, vt); )
|
467
|
-
a === "\\" ? d += Ft(s) : d += a;
|
468
|
-
const A = s.currentChar();
|
469
|
-
return A === W || A === z ? (h(I.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, i(), 0), A === W && (s.next(), P(s, "'")), d) : (P(s, "'"), d);
|
470
|
-
}
|
471
|
-
function Ft(s) {
|
472
|
-
const a = s.currentChar();
|
473
|
-
switch (a) {
|
474
|
-
case "\\":
|
475
|
-
case "'":
|
476
|
-
return s.next(), `\\${a}`;
|
477
|
-
case "u":
|
478
|
-
return we(s, a, 4);
|
479
|
-
case "U":
|
480
|
-
return we(s, a, 6);
|
481
|
-
default:
|
482
|
-
return h(I.UNKNOWN_ESCAPE_SEQUENCE, i(), 0, a), "";
|
483
|
-
}
|
484
|
-
}
|
485
|
-
function we(s, a, d) {
|
486
|
-
P(s, a);
|
487
|
-
let A = "";
|
488
|
-
for (let w = 0; w < d; w++) {
|
489
|
-
const R = Pt(s);
|
490
|
-
if (!R) {
|
491
|
-
h(I.INVALID_UNICODE_ESCAPE_SEQUENCE, i(), 0, `\\${a}${A}${s.currentChar()}`);
|
492
|
-
break;
|
493
|
-
}
|
494
|
-
A += R;
|
495
|
-
}
|
496
|
-
return `\\${a}${A}`;
|
497
|
-
}
|
498
|
-
function Ut(s) {
|
499
|
-
return s !== "{" && s !== "}" && s !== q && s !== W;
|
500
|
-
}
|
501
|
-
function $t(s) {
|
502
|
-
g(s);
|
503
|
-
let a = "", d = "";
|
504
|
-
for (; a = H(s, Ut); )
|
505
|
-
d += a;
|
506
|
-
return d;
|
507
|
-
}
|
508
|
-
function Vt(s) {
|
509
|
-
let a = "", d = "";
|
510
|
-
for (; a = It(s); )
|
511
|
-
d += a;
|
512
|
-
return d;
|
513
|
-
}
|
514
|
-
function Wt(s) {
|
515
|
-
const a = (d) => {
|
516
|
-
const A = s.currentChar();
|
517
|
-
return A === "{" || A === "%" || A === "@" || A === "|" || A === "(" || A === ")" || !A || A === q ? d : (d += A, s.next(), a(d));
|
518
|
-
};
|
519
|
-
return a("");
|
520
|
-
}
|
521
|
-
function Le(s) {
|
522
|
-
g(s);
|
523
|
-
const a = P(
|
524
|
-
s,
|
525
|
-
"|"
|
526
|
-
/* TokenChars.Pipe */
|
527
|
-
);
|
528
|
-
return g(s), a;
|
529
|
-
}
|
530
|
-
function Oe(s, a) {
|
531
|
-
let d = null;
|
532
|
-
switch (s.currentChar()) {
|
533
|
-
case "{":
|
534
|
-
return a.braceNest >= 1 && h(I.NOT_ALLOW_NEST_PLACEHOLDER, i(), 0), s.next(), d = p(
|
535
|
-
a,
|
536
|
-
2,
|
537
|
-
"{"
|
538
|
-
/* TokenChars.BraceLeft */
|
539
|
-
), g(s), a.braceNest++, d;
|
540
|
-
case "}":
|
541
|
-
return a.braceNest > 0 && a.currentType === 2 && h(I.EMPTY_PLACEHOLDER, i(), 0), s.next(), d = p(
|
542
|
-
a,
|
543
|
-
3,
|
544
|
-
"}"
|
545
|
-
/* TokenChars.BraceRight */
|
546
|
-
), a.braceNest--, a.braceNest > 0 && g(s), a.inLinked && a.braceNest === 0 && (a.inLinked = !1), d;
|
547
|
-
case "@":
|
548
|
-
return a.braceNest > 0 && h(I.UNTERMINATED_CLOSING_BRACE, i(), 0), d = Ee(s, a) || D(a), a.braceNest = 0, d;
|
549
|
-
default: {
|
550
|
-
let w = !0, R = !0, Z = !0;
|
551
|
-
if (F(s))
|
552
|
-
return a.braceNest > 0 && h(I.UNTERMINATED_CLOSING_BRACE, i(), 0), d = p(a, 1, Le(s)), a.braceNest = 0, a.inLinked = !1, d;
|
553
|
-
if (a.braceNest > 0 && (a.currentType === 5 || a.currentType === 6 || a.currentType === 7))
|
554
|
-
return h(I.UNTERMINATED_CLOSING_BRACE, i(), 0), a.braceNest = 0, he(s, a);
|
555
|
-
if (w = c(s, a))
|
556
|
-
return d = p(a, 5, kt(s)), g(s), d;
|
557
|
-
if (R = f(s, a))
|
558
|
-
return d = p(a, 6, Rt(s)), g(s), d;
|
559
|
-
if (Z = E(s, a))
|
560
|
-
return d = p(a, 7, wt(s)), g(s), d;
|
561
|
-
if (!w && !R && !Z)
|
562
|
-
return d = p(a, 13, $t(s)), h(I.INVALID_TOKEN_IN_PLACEHOLDER, i(), 0, d.value), g(s), d;
|
563
|
-
break;
|
564
|
-
}
|
565
|
-
}
|
566
|
-
return d;
|
567
|
-
}
|
568
|
-
function Ee(s, a) {
|
569
|
-
const { currentType: d } = a;
|
570
|
-
let A = null;
|
571
|
-
const w = s.currentChar();
|
572
|
-
switch ((d === 8 || d === 9 || d === 12 || d === 10) && (w === W || w === q) && h(I.INVALID_LINKED_FORMAT, i(), 0), w) {
|
573
|
-
case "@":
|
574
|
-
return s.next(), A = p(
|
575
|
-
a,
|
576
|
-
8,
|
577
|
-
"@"
|
578
|
-
/* TokenChars.LinkedAlias */
|
579
|
-
), a.inLinked = !0, A;
|
580
|
-
case ".":
|
581
|
-
return g(s), s.next(), p(
|
582
|
-
a,
|
583
|
-
9,
|
584
|
-
"."
|
585
|
-
/* TokenChars.LinkedDot */
|
586
|
-
);
|
587
|
-
case ":":
|
588
|
-
return g(s), s.next(), p(
|
589
|
-
a,
|
590
|
-
10,
|
591
|
-
":"
|
592
|
-
/* TokenChars.LinkedDelimiter */
|
593
|
-
);
|
594
|
-
default:
|
595
|
-
return F(s) ? (A = p(a, 1, Le(s)), a.braceNest = 0, a.inLinked = !1, A) : m(s, a) || L(s, a) ? (g(s), Ee(s, a)) : N(s, a) ? (g(s), p(a, 12, Vt(s))) : M(s, a) ? (g(s), w === "{" ? Oe(s, a) || A : p(a, 11, Wt(s))) : (d === 8 && h(I.INVALID_LINKED_FORMAT, i(), 0), a.braceNest = 0, a.inLinked = !1, he(s, a));
|
596
|
-
}
|
597
|
-
}
|
598
|
-
function he(s, a) {
|
599
|
-
let d = {
|
600
|
-
type: 14
|
601
|
-
/* TokenTypes.EOF */
|
602
|
-
};
|
603
|
-
if (a.braceNest > 0)
|
604
|
-
return Oe(s, a) || D(a);
|
605
|
-
if (a.inLinked)
|
606
|
-
return Ee(s, a) || D(a);
|
607
|
-
switch (s.currentChar()) {
|
608
|
-
case "{":
|
609
|
-
return Oe(s, a) || D(a);
|
610
|
-
case "}":
|
611
|
-
return h(I.UNBALANCED_CLOSING_BRACE, i(), 0), s.next(), p(
|
612
|
-
a,
|
613
|
-
3,
|
614
|
-
"}"
|
615
|
-
/* TokenChars.BraceRight */
|
616
|
-
);
|
617
|
-
case "@":
|
618
|
-
return Ee(s, a) || D(a);
|
619
|
-
default: {
|
620
|
-
if (F(s))
|
621
|
-
return d = p(a, 1, Le(s)), a.braceNest = 0, a.inLinked = !1, d;
|
622
|
-
const { isModulo: w, hasSpace: R } = Q(s);
|
623
|
-
if (w)
|
624
|
-
return R ? p(a, 0, ve(s)) : p(a, 4, Mt(s));
|
625
|
-
if (k(s))
|
626
|
-
return p(a, 0, ve(s));
|
627
|
-
break;
|
628
|
-
}
|
629
|
-
}
|
630
|
-
return d;
|
631
|
-
}
|
632
|
-
function Kt() {
|
633
|
-
const { currentType: s, offset: a, startLoc: d, endLoc: A } = l;
|
634
|
-
return l.lastType = s, l.lastOffset = a, l.lastStartLoc = d, l.lastEndLoc = A, l.offset = o(), l.startLoc = i(), r.currentChar() === z ? p(
|
635
|
-
l,
|
636
|
-
14
|
637
|
-
/* TokenTypes.EOF */
|
638
|
-
) : he(r, l);
|
639
|
-
}
|
640
|
-
return {
|
641
|
-
nextToken: Kt,
|
642
|
-
currentOffset: o,
|
643
|
-
currentPosition: i,
|
644
|
-
context: T
|
645
|
-
};
|
646
|
-
}
|
647
|
-
const En = "parser", Nn = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
648
|
-
function pn(e, t, n) {
|
649
|
-
switch (e) {
|
650
|
-
case "\\\\":
|
651
|
-
return "\\";
|
652
|
-
case "\\'":
|
653
|
-
return "'";
|
654
|
-
default: {
|
655
|
-
const r = parseInt(t || n, 16);
|
656
|
-
return r <= 55295 || r >= 57344 ? String.fromCodePoint(r) : "�";
|
657
|
-
}
|
658
|
-
}
|
659
|
-
}
|
660
|
-
function Tn(e = {}) {
|
661
|
-
const t = e.location !== !1, { onError: n, onWarn: r } = e;
|
662
|
-
function o(c, f, E, m, ...N) {
|
663
|
-
const L = c.currentPosition();
|
664
|
-
if (L.offset += m, L.column += m, n) {
|
665
|
-
const M = t ? pe(E, L) : null, F = me(f, M, {
|
666
|
-
domain: En,
|
667
|
-
args: N
|
668
|
-
});
|
669
|
-
n(F);
|
670
|
-
}
|
671
|
-
}
|
672
|
-
function i(c, f, E, m, ...N) {
|
673
|
-
const L = c.currentPosition();
|
674
|
-
if (L.offset += m, L.column += m, r) {
|
675
|
-
const M = t ? pe(E, L) : null;
|
676
|
-
r(nn(f, M, N));
|
677
|
-
}
|
678
|
-
}
|
679
|
-
function u(c, f, E) {
|
680
|
-
const m = { type: c };
|
681
|
-
return t && (m.start = f, m.end = f, m.loc = { start: E, end: E }), m;
|
682
|
-
}
|
683
|
-
function _(c, f, E, m) {
|
684
|
-
t && (c.end = f, c.loc && (c.loc.end = E));
|
685
|
-
}
|
686
|
-
function l(c, f) {
|
687
|
-
const E = c.context(), m = u(3, E.offset, E.startLoc);
|
688
|
-
return m.value = f, _(m, c.currentOffset(), c.currentPosition()), m;
|
689
|
-
}
|
690
|
-
function T(c, f) {
|
691
|
-
const E = c.context(), { lastOffset: m, lastStartLoc: N } = E, L = u(5, m, N);
|
692
|
-
return L.index = parseInt(f, 10), c.nextToken(), _(L, c.currentOffset(), c.currentPosition()), L;
|
693
|
-
}
|
694
|
-
function O(c, f, E) {
|
695
|
-
const m = c.context(), { lastOffset: N, lastStartLoc: L } = m, M = u(4, N, L);
|
696
|
-
return M.key = f, E === !0 && (M.modulo = !0), c.nextToken(), _(M, c.currentOffset(), c.currentPosition()), M;
|
697
|
-
}
|
698
|
-
function h(c, f) {
|
699
|
-
const E = c.context(), { lastOffset: m, lastStartLoc: N } = E, L = u(9, m, N);
|
700
|
-
return L.value = f.replace(Nn, pn), c.nextToken(), _(L, c.currentOffset(), c.currentPosition()), L;
|
701
|
-
}
|
702
|
-
function p(c) {
|
703
|
-
const f = c.nextToken(), E = c.context(), { lastOffset: m, lastStartLoc: N } = E, L = u(8, m, N);
|
704
|
-
return f.type !== 12 ? (o(c, I.UNEXPECTED_EMPTY_LINKED_MODIFIER, E.lastStartLoc, 0), L.value = "", _(L, m, N), {
|
705
|
-
nextConsumeToken: f,
|
706
|
-
node: L
|
707
|
-
}) : (f.value == null && o(c, I.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, x(f)), L.value = f.value || "", _(L, c.currentOffset(), c.currentPosition()), {
|
708
|
-
node: L
|
709
|
-
});
|
710
|
-
}
|
711
|
-
function D(c, f) {
|
712
|
-
const E = c.context(), m = u(7, E.offset, E.startLoc);
|
713
|
-
return m.value = f, _(m, c.currentOffset(), c.currentPosition()), m;
|
714
|
-
}
|
715
|
-
function P(c) {
|
716
|
-
const f = c.context(), E = u(6, f.offset, f.startLoc);
|
717
|
-
let m = c.nextToken();
|
718
|
-
if (m.type === 9) {
|
719
|
-
const N = p(c);
|
720
|
-
E.modifier = N.node, m = N.nextConsumeToken || c.nextToken();
|
721
|
-
}
|
722
|
-
switch (m.type !== 10 && o(c, I.UNEXPECTED_LEXICAL_ANALYSIS, f.lastStartLoc, 0, x(m)), m = c.nextToken(), m.type === 2 && (m = c.nextToken()), m.type) {
|
723
|
-
case 11:
|
724
|
-
m.value == null && o(c, I.UNEXPECTED_LEXICAL_ANALYSIS, f.lastStartLoc, 0, x(m)), E.key = D(c, m.value || "");
|
725
|
-
break;
|
726
|
-
case 5:
|
727
|
-
m.value == null && o(c, I.UNEXPECTED_LEXICAL_ANALYSIS, f.lastStartLoc, 0, x(m)), E.key = O(c, m.value || "");
|
728
|
-
break;
|
729
|
-
case 6:
|
730
|
-
m.value == null && o(c, I.UNEXPECTED_LEXICAL_ANALYSIS, f.lastStartLoc, 0, x(m)), E.key = T(c, m.value || "");
|
731
|
-
break;
|
732
|
-
case 7:
|
733
|
-
m.value == null && o(c, I.UNEXPECTED_LEXICAL_ANALYSIS, f.lastStartLoc, 0, x(m)), E.key = h(c, m.value || "");
|
734
|
-
break;
|
735
|
-
default: {
|
736
|
-
o(c, I.UNEXPECTED_EMPTY_LINKED_KEY, f.lastStartLoc, 0);
|
737
|
-
const N = c.context(), L = u(7, N.offset, N.startLoc);
|
738
|
-
return L.value = "", _(L, N.offset, N.startLoc), E.key = L, _(E, N.offset, N.startLoc), {
|
739
|
-
nextConsumeToken: m,
|
740
|
-
node: E
|
741
|
-
};
|
742
|
-
}
|
743
|
-
}
|
744
|
-
return _(E, c.currentOffset(), c.currentPosition()), {
|
745
|
-
node: E
|
746
|
-
};
|
747
|
-
}
|
748
|
-
function b(c) {
|
749
|
-
const f = c.context(), E = f.currentType === 1 ? c.currentOffset() : f.offset, m = f.currentType === 1 ? f.endLoc : f.startLoc, N = u(2, E, m);
|
750
|
-
N.items = [];
|
751
|
-
let L = null, M = null;
|
752
|
-
do {
|
753
|
-
const k = L || c.nextToken();
|
754
|
-
switch (L = null, k.type) {
|
755
|
-
case 0:
|
756
|
-
k.value == null && o(c, I.UNEXPECTED_LEXICAL_ANALYSIS, f.lastStartLoc, 0, x(k)), N.items.push(l(c, k.value || ""));
|
757
|
-
break;
|
758
|
-
case 6:
|
759
|
-
k.value == null && o(c, I.UNEXPECTED_LEXICAL_ANALYSIS, f.lastStartLoc, 0, x(k)), N.items.push(T(c, k.value || ""));
|
760
|
-
break;
|
761
|
-
case 4:
|
762
|
-
M = !0;
|
763
|
-
break;
|
764
|
-
case 5:
|
765
|
-
k.value == null && o(c, I.UNEXPECTED_LEXICAL_ANALYSIS, f.lastStartLoc, 0, x(k)), N.items.push(O(c, k.value || "", !!M)), M && (i(c, Te.USE_MODULO_SYNTAX, f.lastStartLoc, 0, x(k)), M = null);
|
766
|
-
break;
|
767
|
-
case 7:
|
768
|
-
k.value == null && o(c, I.UNEXPECTED_LEXICAL_ANALYSIS, f.lastStartLoc, 0, x(k)), N.items.push(h(c, k.value || ""));
|
769
|
-
break;
|
770
|
-
case 8: {
|
771
|
-
const H = P(c);
|
772
|
-
N.items.push(H.node), L = H.nextConsumeToken || null;
|
773
|
-
break;
|
774
|
-
}
|
775
|
-
}
|
776
|
-
} while (f.currentType !== 14 && f.currentType !== 1);
|
777
|
-
const F = f.currentType === 1 ? f.lastOffset : c.currentOffset(), Q = f.currentType === 1 ? f.lastEndLoc : c.currentPosition();
|
778
|
-
return _(N, F, Q), N;
|
779
|
-
}
|
780
|
-
function g(c, f, E, m) {
|
781
|
-
const N = c.context();
|
782
|
-
let L = m.items.length === 0;
|
783
|
-
const M = u(1, f, E);
|
784
|
-
M.cases = [], M.cases.push(m);
|
785
|
-
do {
|
786
|
-
const F = b(c);
|
787
|
-
L || (L = F.items.length === 0), M.cases.push(F);
|
788
|
-
} while (N.currentType !== 14);
|
789
|
-
return L && o(c, I.MUST_HAVE_MESSAGES_IN_PLURAL, E, 0), _(M, c.currentOffset(), c.currentPosition()), M;
|
790
|
-
}
|
791
|
-
function S(c) {
|
792
|
-
const f = c.context(), { offset: E, startLoc: m } = f, N = b(c);
|
793
|
-
return f.currentType === 14 ? N : g(c, E, m, N);
|
794
|
-
}
|
795
|
-
function C(c) {
|
796
|
-
const f = mn(c, at({}, e)), E = f.context(), m = u(0, E.offset, E.startLoc);
|
797
|
-
return t && m.loc && (m.loc.source = c), m.body = S(f), e.onCacheKey && (m.cacheKey = e.onCacheKey(c)), E.currentType !== 14 && o(f, I.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, c[E.offset] || ""), _(m, f.currentOffset(), f.currentPosition()), m;
|
798
|
-
}
|
799
|
-
return { parse: C };
|
800
|
-
}
|
801
|
-
function x(e) {
|
802
|
-
if (e.type === 14)
|
803
|
-
return "EOF";
|
804
|
-
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
805
|
-
return t.length > 10 ? t.slice(0, 9) + "…" : t;
|
806
|
-
}
|
807
|
-
function Ln(e, t = {}) {
|
808
|
-
const n = {
|
809
|
-
ast: e,
|
810
|
-
helpers: /* @__PURE__ */ new Set()
|
811
|
-
};
|
812
|
-
return { context: () => n, helper: (i) => (n.helpers.add(i), i) };
|
813
|
-
}
|
814
|
-
function Ge(e, t) {
|
815
|
-
for (let n = 0; n < e.length; n++)
|
816
|
-
ye(e[n], t);
|
817
|
-
}
|
818
|
-
function ye(e, t) {
|
819
|
-
switch (e.type) {
|
820
|
-
case 1:
|
821
|
-
Ge(e.cases, t), t.helper(
|
822
|
-
"plural"
|
823
|
-
/* HelperNameMap.PLURAL */
|
824
|
-
);
|
825
|
-
break;
|
826
|
-
case 2:
|
827
|
-
Ge(e.items, t);
|
828
|
-
break;
|
829
|
-
case 6: {
|
830
|
-
ye(e.key, t), t.helper(
|
831
|
-
"linked"
|
832
|
-
/* HelperNameMap.LINKED */
|
833
|
-
), t.helper(
|
834
|
-
"type"
|
835
|
-
/* HelperNameMap.TYPE */
|
836
|
-
);
|
837
|
-
break;
|
838
|
-
}
|
839
|
-
case 5:
|
840
|
-
t.helper(
|
841
|
-
"interpolate"
|
842
|
-
/* HelperNameMap.INTERPOLATE */
|
843
|
-
), t.helper(
|
844
|
-
"list"
|
845
|
-
/* HelperNameMap.LIST */
|
846
|
-
);
|
847
|
-
break;
|
848
|
-
case 4:
|
849
|
-
t.helper(
|
850
|
-
"interpolate"
|
851
|
-
/* HelperNameMap.INTERPOLATE */
|
852
|
-
), t.helper(
|
853
|
-
"named"
|
854
|
-
/* HelperNameMap.NAMED */
|
855
|
-
);
|
856
|
-
break;
|
857
|
-
}
|
858
|
-
}
|
859
|
-
function On(e, t = {}) {
|
860
|
-
const n = Ln(e);
|
861
|
-
n.helper(
|
862
|
-
"normalize"
|
863
|
-
/* HelperNameMap.NORMALIZE */
|
864
|
-
), e.body && ye(e.body, n);
|
865
|
-
const r = n.context();
|
866
|
-
e.helpers = Array.from(r.helpers);
|
867
|
-
}
|
868
|
-
function hn(e) {
|
869
|
-
const t = e.body;
|
870
|
-
return t.type === 2 ? Xe(t) : t.cases.forEach((n) => Xe(n)), e;
|
871
|
-
}
|
872
|
-
function Xe(e) {
|
873
|
-
if (e.items.length === 1) {
|
874
|
-
const t = e.items[0];
|
875
|
-
(t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
|
876
|
-
} else {
|
877
|
-
const t = [];
|
878
|
-
for (let n = 0; n < e.items.length; n++) {
|
879
|
-
const r = e.items[n];
|
880
|
-
if (!(r.type === 3 || r.type === 9) || r.value == null)
|
881
|
-
break;
|
882
|
-
t.push(r.value);
|
883
|
-
}
|
884
|
-
if (t.length === e.items.length) {
|
885
|
-
e.static = ot(t);
|
886
|
-
for (let n = 0; n < e.items.length; n++) {
|
887
|
-
const r = e.items[n];
|
888
|
-
(r.type === 3 || r.type === 9) && delete r.value;
|
889
|
-
}
|
890
|
-
}
|
891
|
-
}
|
892
|
-
}
|
893
|
-
const gn = "minifier";
|
894
|
-
function ie(e) {
|
895
|
-
switch (e.t = e.type, e.type) {
|
896
|
-
case 0: {
|
897
|
-
const t = e;
|
898
|
-
ie(t.body), t.b = t.body, delete t.body;
|
899
|
-
break;
|
900
|
-
}
|
901
|
-
case 1: {
|
902
|
-
const t = e, n = t.cases;
|
903
|
-
for (let r = 0; r < n.length; r++)
|
904
|
-
ie(n[r]);
|
905
|
-
t.c = n, delete t.cases;
|
906
|
-
break;
|
907
|
-
}
|
908
|
-
case 2: {
|
909
|
-
const t = e, n = t.items;
|
910
|
-
for (let r = 0; r < n.length; r++)
|
911
|
-
ie(n[r]);
|
912
|
-
t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
|
913
|
-
break;
|
914
|
-
}
|
915
|
-
case 3:
|
916
|
-
case 9:
|
917
|
-
case 8:
|
918
|
-
case 7: {
|
919
|
-
const t = e;
|
920
|
-
t.value && (t.v = t.value, delete t.value);
|
921
|
-
break;
|
922
|
-
}
|
923
|
-
case 6: {
|
924
|
-
const t = e;
|
925
|
-
ie(t.key), t.k = t.key, delete t.key, t.modifier && (ie(t.modifier), t.m = t.modifier, delete t.modifier);
|
926
|
-
break;
|
927
|
-
}
|
928
|
-
case 5: {
|
929
|
-
const t = e;
|
930
|
-
t.i = t.index, delete t.index;
|
931
|
-
break;
|
932
|
-
}
|
933
|
-
case 4: {
|
934
|
-
const t = e;
|
935
|
-
t.k = t.key, delete t.key;
|
936
|
-
break;
|
937
|
-
}
|
938
|
-
default:
|
939
|
-
throw me(I.UNHANDLED_MINIFIER_NODE_TYPE, null, {
|
940
|
-
domain: gn,
|
941
|
-
args: [e.type]
|
942
|
-
});
|
943
|
-
}
|
944
|
-
delete e.type;
|
945
|
-
}
|
946
|
-
const An = "parser";
|
947
|
-
function In(e, t) {
|
948
|
-
const { sourceMap: n, filename: r, breakLineCode: o, needIndent: i } = t, u = t.location !== !1, _ = {
|
949
|
-
filename: r,
|
950
|
-
code: "",
|
951
|
-
column: 1,
|
952
|
-
line: 1,
|
953
|
-
offset: 0,
|
954
|
-
map: void 0,
|
955
|
-
breakLineCode: o,
|
956
|
-
needIndent: i,
|
957
|
-
indentLevel: 0
|
958
|
-
};
|
959
|
-
u && e.loc && (_.source = e.loc.source);
|
960
|
-
const l = () => _;
|
961
|
-
function T(g, S) {
|
962
|
-
_.code += g;
|
963
|
-
}
|
964
|
-
function O(g, S = !0) {
|
965
|
-
const C = S ? o : "";
|
966
|
-
T(i ? C + " ".repeat(g) : C);
|
967
|
-
}
|
968
|
-
function h(g = !0) {
|
969
|
-
const S = ++_.indentLevel;
|
970
|
-
g && O(S);
|
971
|
-
}
|
972
|
-
function p(g = !0) {
|
973
|
-
const S = --_.indentLevel;
|
974
|
-
g && O(S);
|
975
|
-
}
|
976
|
-
function D() {
|
977
|
-
O(_.indentLevel);
|
978
|
-
}
|
979
|
-
return {
|
980
|
-
context: l,
|
981
|
-
push: T,
|
982
|
-
indent: h,
|
983
|
-
deindent: p,
|
984
|
-
newline: D,
|
985
|
-
helper: (g) => `_${g}`,
|
986
|
-
needIndent: () => _.needIndent
|
987
|
-
};
|
988
|
-
}
|
989
|
-
function Cn(e, t) {
|
990
|
-
const { helper: n } = e;
|
991
|
-
e.push(`${n(
|
992
|
-
"linked"
|
993
|
-
/* HelperNameMap.LINKED */
|
994
|
-
)}(`), le(e, t.key), t.modifier ? (e.push(", "), le(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
995
|
-
}
|
996
|
-
function Sn(e, t) {
|
997
|
-
const { helper: n, needIndent: r } = e;
|
998
|
-
e.push(`${n(
|
999
|
-
"normalize"
|
1000
|
-
/* HelperNameMap.NORMALIZE */
|
1001
|
-
)}([`), e.indent(r());
|
1002
|
-
const o = t.items.length;
|
1003
|
-
for (let i = 0; i < o && (le(e, t.items[i]), i !== o - 1); i++)
|
1004
|
-
e.push(", ");
|
1005
|
-
e.deindent(r()), e.push("])");
|
1006
|
-
}
|
1007
|
-
function Dn(e, t) {
|
1008
|
-
const { helper: n, needIndent: r } = e;
|
1009
|
-
if (t.cases.length > 1) {
|
1010
|
-
e.push(`${n(
|
1011
|
-
"plural"
|
1012
|
-
/* HelperNameMap.PLURAL */
|
1013
|
-
)}([`), e.indent(r());
|
1014
|
-
const o = t.cases.length;
|
1015
|
-
for (let i = 0; i < o && (le(e, t.cases[i]), i !== o - 1); i++)
|
1016
|
-
e.push(", ");
|
1017
|
-
e.deindent(r()), e.push("])");
|
1018
|
-
}
|
1019
|
-
}
|
1020
|
-
function yn(e, t) {
|
1021
|
-
t.body ? le(e, t.body) : e.push("null");
|
1022
|
-
}
|
1023
|
-
function le(e, t) {
|
1024
|
-
const { helper: n } = e;
|
1025
|
-
switch (t.type) {
|
1026
|
-
case 0:
|
1027
|
-
yn(e, t);
|
1028
|
-
break;
|
1029
|
-
case 1:
|
1030
|
-
Dn(e, t);
|
1031
|
-
break;
|
1032
|
-
case 2:
|
1033
|
-
Sn(e, t);
|
1034
|
-
break;
|
1035
|
-
case 6:
|
1036
|
-
Cn(e, t);
|
1037
|
-
break;
|
1038
|
-
case 8:
|
1039
|
-
e.push(JSON.stringify(t.value), t);
|
1040
|
-
break;
|
1041
|
-
case 7:
|
1042
|
-
e.push(JSON.stringify(t.value), t);
|
1043
|
-
break;
|
1044
|
-
case 5:
|
1045
|
-
e.push(`${n(
|
1046
|
-
"interpolate"
|
1047
|
-
/* HelperNameMap.INTERPOLATE */
|
1048
|
-
)}(${n(
|
1049
|
-
"list"
|
1050
|
-
/* HelperNameMap.LIST */
|
1051
|
-
)}(${t.index}))`, t);
|
1052
|
-
break;
|
1053
|
-
case 4:
|
1054
|
-
e.push(`${n(
|
1055
|
-
"interpolate"
|
1056
|
-
/* HelperNameMap.INTERPOLATE */
|
1057
|
-
)}(${n(
|
1058
|
-
"named"
|
1059
|
-
/* HelperNameMap.NAMED */
|
1060
|
-
)}(${JSON.stringify(t.key)}))`, t);
|
1061
|
-
break;
|
1062
|
-
case 9:
|
1063
|
-
e.push(JSON.stringify(t.value), t);
|
1064
|
-
break;
|
1065
|
-
case 3:
|
1066
|
-
e.push(JSON.stringify(t.value), t);
|
1067
|
-
break;
|
1068
|
-
default:
|
1069
|
-
throw me(I.UNHANDLED_CODEGEN_NODE_TYPE, null, {
|
1070
|
-
domain: An,
|
1071
|
-
args: [t.type]
|
1072
|
-
});
|
1073
|
-
}
|
1074
|
-
}
|
1075
|
-
const bn = (e, t = {}) => {
|
1076
|
-
const n = Ke(t.mode) ? t.mode : "normal", r = Ke(t.filename) ? t.filename : "message.intl", o = !!t.sourceMap, i = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
1077
|
-
`, u = t.needIndent ? t.needIndent : n !== "arrow", _ = e.helpers || [], l = In(e, {
|
1078
|
-
mode: n,
|
1079
|
-
filename: r,
|
1080
|
-
sourceMap: o,
|
1081
|
-
breakLineCode: i,
|
1082
|
-
needIndent: u
|
1083
|
-
});
|
1084
|
-
l.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), l.indent(u), _.length > 0 && (l.push(`const { ${ot(_.map((h) => `${h}: _${h}`), ", ")} } = ctx`), l.newline()), l.push("return "), le(l, e), l.deindent(u), l.push("}"), delete e.helpers;
|
1085
|
-
const { code: T, map: O } = l.context();
|
1086
|
-
return {
|
1087
|
-
ast: e,
|
1088
|
-
code: T,
|
1089
|
-
map: O ? O.toJSON() : void 0
|
1090
|
-
// eslint-disable-line @typescript-eslint/no-explicit-any
|
1091
|
-
};
|
1092
|
-
};
|
1093
|
-
function Pn(e, t = {}) {
|
1094
|
-
const n = at({}, t), r = !!n.jit, o = !!n.minify, i = n.optimize == null ? !0 : n.optimize, _ = Tn(n).parse(e);
|
1095
|
-
return r ? (i && hn(_), o && ie(_), { ast: _, code: "" }) : (On(_, n), bn(_, n));
|
1096
|
-
}
|
1097
|
-
/*!
|
1098
|
-
* core-base v9.13.1
|
1099
|
-
* (c) 2024 kazuya kawaguchi
|
1100
|
-
* Released under the MIT License.
|
1101
|
-
*/
|
1102
|
-
function Mn() {
|
1103
|
-
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (ge().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_JIT_COMPILATION__ != "boolean" && (ge().__INTLIFY_JIT_COMPILATION__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (ge().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
1104
|
-
}
|
1105
|
-
const ee = [];
|
1106
|
-
ee[
|
1107
|
-
0
|
1108
|
-
/* States.BEFORE_PATH */
|
1109
|
-
] = {
|
1110
|
-
w: [
|
1111
|
-
0
|
1112
|
-
/* States.BEFORE_PATH */
|
1113
|
-
],
|
1114
|
-
i: [
|
1115
|
-
3,
|
1116
|
-
0
|
1117
|
-
/* Actions.APPEND */
|
1118
|
-
],
|
1119
|
-
"[": [
|
1120
|
-
4
|
1121
|
-
/* States.IN_SUB_PATH */
|
1122
|
-
],
|
1123
|
-
o: [
|
1124
|
-
7
|
1125
|
-
/* States.AFTER_PATH */
|
1126
|
-
]
|
1127
|
-
};
|
1128
|
-
ee[
|
1129
|
-
1
|
1130
|
-
/* States.IN_PATH */
|
1131
|
-
] = {
|
1132
|
-
w: [
|
1133
|
-
1
|
1134
|
-
/* States.IN_PATH */
|
1135
|
-
],
|
1136
|
-
".": [
|
1137
|
-
2
|
1138
|
-
/* States.BEFORE_IDENT */
|
1139
|
-
],
|
1140
|
-
"[": [
|
1141
|
-
4
|
1142
|
-
/* States.IN_SUB_PATH */
|
1143
|
-
],
|
1144
|
-
o: [
|
1145
|
-
7
|
1146
|
-
/* States.AFTER_PATH */
|
1147
|
-
]
|
1148
|
-
};
|
1149
|
-
ee[
|
1150
|
-
2
|
1151
|
-
/* States.BEFORE_IDENT */
|
1152
|
-
] = {
|
1153
|
-
w: [
|
1154
|
-
2
|
1155
|
-
/* States.BEFORE_IDENT */
|
1156
|
-
],
|
1157
|
-
i: [
|
1158
|
-
3,
|
1159
|
-
0
|
1160
|
-
/* Actions.APPEND */
|
1161
|
-
],
|
1162
|
-
0: [
|
1163
|
-
3,
|
1164
|
-
0
|
1165
|
-
/* Actions.APPEND */
|
1166
|
-
]
|
1167
|
-
};
|
1168
|
-
ee[
|
1169
|
-
3
|
1170
|
-
/* States.IN_IDENT */
|
1171
|
-
] = {
|
1172
|
-
i: [
|
1173
|
-
3,
|
1174
|
-
0
|
1175
|
-
/* Actions.APPEND */
|
1176
|
-
],
|
1177
|
-
0: [
|
1178
|
-
3,
|
1179
|
-
0
|
1180
|
-
/* Actions.APPEND */
|
1181
|
-
],
|
1182
|
-
w: [
|
1183
|
-
1,
|
1184
|
-
1
|
1185
|
-
/* Actions.PUSH */
|
1186
|
-
],
|
1187
|
-
".": [
|
1188
|
-
2,
|
1189
|
-
1
|
1190
|
-
/* Actions.PUSH */
|
1191
|
-
],
|
1192
|
-
"[": [
|
1193
|
-
4,
|
1194
|
-
1
|
1195
|
-
/* Actions.PUSH */
|
1196
|
-
],
|
1197
|
-
o: [
|
1198
|
-
7,
|
1199
|
-
1
|
1200
|
-
/* Actions.PUSH */
|
1201
|
-
]
|
1202
|
-
};
|
1203
|
-
ee[
|
1204
|
-
4
|
1205
|
-
/* States.IN_SUB_PATH */
|
1206
|
-
] = {
|
1207
|
-
"'": [
|
1208
|
-
5,
|
1209
|
-
0
|
1210
|
-
/* Actions.APPEND */
|
1211
|
-
],
|
1212
|
-
'"': [
|
1213
|
-
6,
|
1214
|
-
0
|
1215
|
-
/* Actions.APPEND */
|
1216
|
-
],
|
1217
|
-
"[": [
|
1218
|
-
4,
|
1219
|
-
2
|
1220
|
-
/* Actions.INC_SUB_PATH_DEPTH */
|
1221
|
-
],
|
1222
|
-
"]": [
|
1223
|
-
1,
|
1224
|
-
3
|
1225
|
-
/* Actions.PUSH_SUB_PATH */
|
1226
|
-
],
|
1227
|
-
o: 8,
|
1228
|
-
l: [
|
1229
|
-
4,
|
1230
|
-
0
|
1231
|
-
/* Actions.APPEND */
|
1232
|
-
]
|
1233
|
-
};
|
1234
|
-
ee[
|
1235
|
-
5
|
1236
|
-
/* States.IN_SINGLE_QUOTE */
|
1237
|
-
] = {
|
1238
|
-
"'": [
|
1239
|
-
4,
|
1240
|
-
0
|
1241
|
-
/* Actions.APPEND */
|
1242
|
-
],
|
1243
|
-
o: 8,
|
1244
|
-
l: [
|
1245
|
-
5,
|
1246
|
-
0
|
1247
|
-
/* Actions.APPEND */
|
1248
|
-
]
|
1249
|
-
};
|
1250
|
-
ee[
|
1251
|
-
6
|
1252
|
-
/* States.IN_DOUBLE_QUOTE */
|
1253
|
-
] = {
|
1254
|
-
'"': [
|
1255
|
-
4,
|
1256
|
-
0
|
1257
|
-
/* Actions.APPEND */
|
1258
|
-
],
|
1259
|
-
o: 8,
|
1260
|
-
l: [
|
1261
|
-
6,
|
1262
|
-
0
|
1263
|
-
/* Actions.APPEND */
|
1264
|
-
]
|
1265
|
-
};
|
1266
|
-
const kn = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
1267
|
-
function Rn(e) {
|
1268
|
-
return kn.test(e);
|
1269
|
-
}
|
1270
|
-
function vn(e) {
|
1271
|
-
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
1272
|
-
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
1273
|
-
}
|
1274
|
-
function wn(e) {
|
1275
|
-
if (e == null)
|
1276
|
-
return "o";
|
1277
|
-
switch (e.charCodeAt(0)) {
|
1278
|
-
case 91:
|
1279
|
-
case 93:
|
1280
|
-
case 46:
|
1281
|
-
case 34:
|
1282
|
-
case 39:
|
1283
|
-
return e;
|
1284
|
-
case 95:
|
1285
|
-
case 36:
|
1286
|
-
case 45:
|
1287
|
-
return "i";
|
1288
|
-
case 9:
|
1289
|
-
case 10:
|
1290
|
-
case 13:
|
1291
|
-
case 160:
|
1292
|
-
case 65279:
|
1293
|
-
case 8232:
|
1294
|
-
case 8233:
|
1295
|
-
return "w";
|
1296
|
-
}
|
1297
|
-
return "i";
|
1298
|
-
}
|
1299
|
-
function Fn(e) {
|
1300
|
-
const t = e.trim();
|
1301
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Rn(t) ? vn(t) : "*" + t;
|
1302
|
-
}
|
1303
|
-
function Un(e) {
|
1304
|
-
const t = [];
|
1305
|
-
let n = -1, r = 0, o = 0, i, u, _, l, T, O, h;
|
1306
|
-
const p = [];
|
1307
|
-
p[
|
1308
|
-
0
|
1309
|
-
/* Actions.APPEND */
|
1310
|
-
] = () => {
|
1311
|
-
u === void 0 ? u = _ : u += _;
|
1312
|
-
}, p[
|
1313
|
-
1
|
1314
|
-
/* Actions.PUSH */
|
1315
|
-
] = () => {
|
1316
|
-
u !== void 0 && (t.push(u), u = void 0);
|
1317
|
-
}, p[
|
1318
|
-
2
|
1319
|
-
/* Actions.INC_SUB_PATH_DEPTH */
|
1320
|
-
] = () => {
|
1321
|
-
p[
|
1322
|
-
0
|
1323
|
-
/* Actions.APPEND */
|
1324
|
-
](), o++;
|
1325
|
-
}, p[
|
1326
|
-
3
|
1327
|
-
/* Actions.PUSH_SUB_PATH */
|
1328
|
-
] = () => {
|
1329
|
-
if (o > 0)
|
1330
|
-
o--, r = 4, p[
|
1331
|
-
0
|
1332
|
-
/* Actions.APPEND */
|
1333
|
-
]();
|
1334
|
-
else {
|
1335
|
-
if (o = 0, u === void 0 || (u = Fn(u), u === !1))
|
1336
|
-
return !1;
|
1337
|
-
p[
|
1338
|
-
1
|
1339
|
-
/* Actions.PUSH */
|
1340
|
-
]();
|
1341
|
-
}
|
1342
|
-
};
|
1343
|
-
function D() {
|
1344
|
-
const P = e[n + 1];
|
1345
|
-
if (r === 5 && P === "'" || r === 6 && P === '"')
|
1346
|
-
return n++, _ = "\\" + P, p[
|
1347
|
-
0
|
1348
|
-
/* Actions.APPEND */
|
1349
|
-
](), !0;
|
1350
|
-
}
|
1351
|
-
for (; r !== null; )
|
1352
|
-
if (n++, i = e[n], !(i === "\\" && D())) {
|
1353
|
-
if (l = wn(i), h = ee[r], T = h[l] || h.l || 8, T === 8 || (r = T[0], T[1] !== void 0 && (O = p[T[1]], O && (_ = i, O() === !1))))
|
1354
|
-
return;
|
1355
|
-
if (r === 7)
|
1356
|
-
return t;
|
1357
|
-
}
|
1358
|
-
}
|
1359
|
-
const He = /* @__PURE__ */ new Map();
|
1360
|
-
function $n(e, t) {
|
1361
|
-
return U(e) ? e[t] : null;
|
1362
|
-
}
|
1363
|
-
function gr(e, t) {
|
1364
|
-
if (!U(e))
|
1365
|
-
return null;
|
1366
|
-
let n = He.get(t);
|
1367
|
-
if (n || (n = Un(t), n && He.set(t, n)), !n)
|
1368
|
-
return null;
|
1369
|
-
const r = n.length;
|
1370
|
-
let o = e, i = 0;
|
1371
|
-
for (; i < r; ) {
|
1372
|
-
const u = o[n[i]];
|
1373
|
-
if (u === void 0 || $(o))
|
1374
|
-
return null;
|
1375
|
-
o = u, i++;
|
1376
|
-
}
|
1377
|
-
return o;
|
1378
|
-
}
|
1379
|
-
const Vn = (e) => e, Wn = (e) => "", Kn = "text", Yn = (e) => e.length === 0 ? "" : Jt(e), Gn = jt;
|
1380
|
-
function xe(e, t) {
|
1381
|
-
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
1382
|
-
}
|
1383
|
-
function Xn(e) {
|
1384
|
-
const t = G(e.pluralIndex) ? e.pluralIndex : -1;
|
1385
|
-
return e.named && (G(e.named.count) || G(e.named.n)) ? G(e.named.count) ? e.named.count : G(e.named.n) ? e.named.n : t : t;
|
1386
|
-
}
|
1387
|
-
function Hn(e, t) {
|
1388
|
-
t.count || (t.count = e), t.n || (t.n = e);
|
1389
|
-
}
|
1390
|
-
function xn(e = {}) {
|
1391
|
-
const t = e.locale, n = Xn(e), r = U(e.pluralRules) && y(t) && $(e.pluralRules[t]) ? e.pluralRules[t] : xe, o = U(e.pluralRules) && y(t) && $(e.pluralRules[t]) ? xe : void 0, i = (S) => S[r(n, S.length, o)], u = e.list || [], _ = (S) => u[S], l = e.named || {};
|
1392
|
-
G(e.pluralIndex) && Hn(n, l);
|
1393
|
-
const T = (S) => l[S];
|
1394
|
-
function O(S) {
|
1395
|
-
const C = $(e.messages) ? e.messages(S) : U(e.messages) ? e.messages[S] : !1;
|
1396
|
-
return C || (e.parent ? e.parent.message(S) : Wn);
|
1397
|
-
}
|
1398
|
-
const h = (S) => e.modifiers ? e.modifiers[S] : Vn, p = v(e.processor) && $(e.processor.normalize) ? e.processor.normalize : Yn, D = v(e.processor) && $(e.processor.interpolate) ? e.processor.interpolate : Gn, P = v(e.processor) && y(e.processor.type) ? e.processor.type : Kn, g = {
|
1399
|
-
list: _,
|
1400
|
-
named: T,
|
1401
|
-
plural: i,
|
1402
|
-
linked: (S, ...C) => {
|
1403
|
-
const [c, f] = C;
|
1404
|
-
let E = "text", m = "";
|
1405
|
-
C.length === 1 ? U(c) ? (m = c.modifier || m, E = c.type || E) : y(c) && (m = c || m) : C.length === 2 && (y(c) && (m = c || m), y(f) && (E = f || E));
|
1406
|
-
const N = O(S)(g), L = (
|
1407
|
-
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
1408
|
-
E === "vnode" && j(N) && m ? N[0] : N
|
1409
|
-
);
|
1410
|
-
return m ? h(m)(L, E) : L;
|
1411
|
-
},
|
1412
|
-
message: O,
|
1413
|
-
type: P,
|
1414
|
-
interpolate: D,
|
1415
|
-
normalize: p,
|
1416
|
-
values: fe({}, u, l)
|
1417
|
-
};
|
1418
|
-
return g;
|
1419
|
-
}
|
1420
|
-
let de = null;
|
1421
|
-
function Ar(e) {
|
1422
|
-
de = e;
|
1423
|
-
}
|
1424
|
-
function Bn(e, t, n) {
|
1425
|
-
de && de.emit("i18n:init", {
|
1426
|
-
timestamp: Date.now(),
|
1427
|
-
i18n: e,
|
1428
|
-
version: t,
|
1429
|
-
meta: n
|
1430
|
-
});
|
1431
|
-
}
|
1432
|
-
const jn = /* @__PURE__ */ Jn(
|
1433
|
-
"function:translate"
|
1434
|
-
/* IntlifyDevToolsHooks.FunctionTranslate */
|
1435
|
-
);
|
1436
|
-
function Jn(e) {
|
1437
|
-
return (t) => de && de.emit(e, t);
|
1438
|
-
}
|
1439
|
-
const it = Te.__EXTEND_POINT__, ne = rt(it), Y = {
|
1440
|
-
NOT_FOUND_KEY: it,
|
1441
|
-
// 2
|
1442
|
-
FALLBACK_TO_TRANSLATE: ne(),
|
1443
|
-
// 3
|
1444
|
-
CANNOT_FORMAT_NUMBER: ne(),
|
1445
|
-
// 4
|
1446
|
-
FALLBACK_TO_NUMBER_FORMAT: ne(),
|
1447
|
-
// 5
|
1448
|
-
CANNOT_FORMAT_DATE: ne(),
|
1449
|
-
// 6
|
1450
|
-
FALLBACK_TO_DATE_FORMAT: ne(),
|
1451
|
-
// 7
|
1452
|
-
EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: ne(),
|
1453
|
-
// 8
|
1454
|
-
__EXTEND_POINT__: ne()
|
1455
|
-
// 9
|
1456
|
-
}, Qn = {
|
1457
|
-
[Y.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
|
1458
|
-
[Y.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
|
1459
|
-
[Y.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
|
1460
|
-
[Y.FALLBACK_TO_NUMBER_FORMAT]: "Fall back to number format '{key}' key with '{target}' locale.",
|
1461
|
-
[Y.CANNOT_FORMAT_DATE]: "Cannot format a date value due to not supported Intl.DateTimeFormat.",
|
1462
|
-
[Y.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale.",
|
1463
|
-
[Y.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]: "This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."
|
1464
|
-
};
|
1465
|
-
function oe(e, ...t) {
|
1466
|
-
return et(Qn[e], ...t);
|
1467
|
-
}
|
1468
|
-
const ct = I.__EXTEND_POINT__, re = rt(ct), V = {
|
1469
|
-
INVALID_ARGUMENT: ct,
|
1470
|
-
// 17
|
1471
|
-
INVALID_DATE_ARGUMENT: re(),
|
1472
|
-
// 18
|
1473
|
-
INVALID_ISO_DATE_ARGUMENT: re(),
|
1474
|
-
// 19
|
1475
|
-
NOT_SUPPORT_NON_STRING_MESSAGE: re(),
|
1476
|
-
// 20
|
1477
|
-
NOT_SUPPORT_LOCALE_PROMISE_VALUE: re(),
|
1478
|
-
// 21
|
1479
|
-
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: re(),
|
1480
|
-
// 22
|
1481
|
-
NOT_SUPPORT_LOCALE_TYPE: re(),
|
1482
|
-
// 23
|
1483
|
-
__EXTEND_POINT__: re()
|
1484
|
-
// 24
|
1485
|
-
};
|
1486
|
-
function J(e) {
|
1487
|
-
return me(e, null, process.env.NODE_ENV !== "production" ? { messages: qn } : void 0);
|
1488
|
-
}
|
1489
|
-
const qn = {
|
1490
|
-
[V.INVALID_ARGUMENT]: "Invalid arguments",
|
1491
|
-
[V.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
1492
|
-
[V.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
|
1493
|
-
[V.NOT_SUPPORT_NON_STRING_MESSAGE]: "Not support non-string message",
|
1494
|
-
[V.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: "cannot support promise value",
|
1495
|
-
[V.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
|
1496
|
-
[V.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
|
1497
|
-
};
|
1498
|
-
function be(e, t) {
|
1499
|
-
return t.locale != null ? Be(t.locale) : Be(e.locale);
|
1500
|
-
}
|
1501
|
-
let Ae;
|
1502
|
-
function Be(e) {
|
1503
|
-
if (y(e))
|
1504
|
-
return e;
|
1505
|
-
if ($(e)) {
|
1506
|
-
if (e.resolvedOnce && Ae != null)
|
1507
|
-
return Ae;
|
1508
|
-
if (e.constructor.name === "Function") {
|
1509
|
-
const t = e();
|
1510
|
-
if (Bt(t))
|
1511
|
-
throw J(V.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
1512
|
-
return Ae = t;
|
1513
|
-
} else
|
1514
|
-
throw J(V.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
1515
|
-
} else
|
1516
|
-
throw J(V.NOT_SUPPORT_LOCALE_TYPE);
|
1517
|
-
}
|
1518
|
-
function Zn(e, t, n) {
|
1519
|
-
return [.../* @__PURE__ */ new Set([
|
1520
|
-
n,
|
1521
|
-
...j(t) ? t : U(t) ? Object.keys(t) : y(t) ? [t] : [n]
|
1522
|
-
])];
|
1523
|
-
}
|
1524
|
-
function Ir(e, t, n) {
|
1525
|
-
const r = y(n) ? n : Ce, o = e;
|
1526
|
-
o.__localeChainCache || (o.__localeChainCache = /* @__PURE__ */ new Map());
|
1527
|
-
let i = o.__localeChainCache.get(r);
|
1528
|
-
if (!i) {
|
1529
|
-
i = [];
|
1530
|
-
let u = [n];
|
1531
|
-
for (; j(u); )
|
1532
|
-
u = je(i, u, t);
|
1533
|
-
const _ = j(t) || !v(t) ? t : t.default ? t.default : null;
|
1534
|
-
u = y(_) ? [_] : _, j(u) && je(i, u, !1), o.__localeChainCache.set(r, i);
|
1535
|
-
}
|
1536
|
-
return i;
|
1537
|
-
}
|
1538
|
-
function je(e, t, n) {
|
1539
|
-
let r = !0;
|
1540
|
-
for (let o = 0; o < t.length && K(r); o++) {
|
1541
|
-
const i = t[o];
|
1542
|
-
y(i) && (r = zn(e, t[o], n));
|
1543
|
-
}
|
1544
|
-
return r;
|
1545
|
-
}
|
1546
|
-
function zn(e, t, n) {
|
1547
|
-
let r;
|
1548
|
-
const o = t.split("-");
|
1549
|
-
do {
|
1550
|
-
const i = o.join("-");
|
1551
|
-
r = er(e, i, n), o.splice(-1, 1);
|
1552
|
-
} while (o.length && r === !0);
|
1553
|
-
return r;
|
1554
|
-
}
|
1555
|
-
function er(e, t, n) {
|
1556
|
-
let r = !1;
|
1557
|
-
if (!e.includes(t) && (r = !0, t)) {
|
1558
|
-
r = t[t.length - 1] !== "!";
|
1559
|
-
const o = t.replace(/!/g, "");
|
1560
|
-
e.push(o), (j(n) || v(n)) && n[o] && (r = n[o]);
|
1561
|
-
}
|
1562
|
-
return r;
|
1563
|
-
}
|
1564
|
-
const tr = "9.13.1", Pe = -1, Ce = "en-US", lt = "", Je = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
1565
|
-
function nr() {
|
1566
|
-
return {
|
1567
|
-
upper: (e, t) => t === "text" && y(e) ? e.toUpperCase() : t === "vnode" && U(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
1568
|
-
lower: (e, t) => t === "text" && y(e) ? e.toLowerCase() : t === "vnode" && U(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
1569
|
-
capitalize: (e, t) => t === "text" && y(e) ? Je(e) : t === "vnode" && U(e) && "__v_isVNode" in e ? Je(e.children) : e
|
1570
|
-
};
|
1571
|
-
}
|
1572
|
-
let ut;
|
1573
|
-
function Cr(e) {
|
1574
|
-
ut = e;
|
1575
|
-
}
|
1576
|
-
let ft;
|
1577
|
-
function Sr(e) {
|
1578
|
-
ft = e;
|
1579
|
-
}
|
1580
|
-
let _t;
|
1581
|
-
function Dr(e) {
|
1582
|
-
_t = e;
|
1583
|
-
}
|
1584
|
-
let dt = null;
|
1585
|
-
const yr = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
1586
|
-
dt = e;
|
1587
|
-
}, rr = /* @__NO_SIDE_EFFECTS__ */ () => dt;
|
1588
|
-
let mt = null;
|
1589
|
-
const br = (e) => {
|
1590
|
-
mt = e;
|
1591
|
-
}, Pr = () => mt;
|
1592
|
-
let Qe = 0;
|
1593
|
-
function Mr(e = {}) {
|
1594
|
-
const t = $(e.onWarn) ? e.onWarn : _e, n = y(e.version) ? e.version : tr, r = y(e.locale) || $(e.locale) ? e.locale : Ce, o = $(r) ? Ce : r, i = j(e.fallbackLocale) || v(e.fallbackLocale) || y(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : o, u = v(e.messages) ? e.messages : { [o]: {} }, _ = v(e.datetimeFormats) ? e.datetimeFormats : { [o]: {} }, l = v(e.numberFormats) ? e.numberFormats : { [o]: {} }, T = fe({}, e.modifiers || {}, nr()), O = e.pluralRules || {}, h = $(e.missing) ? e.missing : null, p = K(e.missingWarn) || Fe(e.missingWarn) ? e.missingWarn : !0, D = K(e.fallbackWarn) || Fe(e.fallbackWarn) ? e.fallbackWarn : !0, P = !!e.fallbackFormat, b = !!e.unresolving, g = $(e.postTranslation) ? e.postTranslation : null, S = v(e.processor) ? e.processor : null, C = K(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, c = !!e.escapeParameter, f = $(e.messageCompiler) ? e.messageCompiler : ut;
|
1595
|
-
process.env.NODE_ENV !== "production" && $(e.messageCompiler) && qt(oe(Y.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
1596
|
-
const E = $(e.messageResolver) ? e.messageResolver : ft || $n, m = $(e.localeFallbacker) ? e.localeFallbacker : _t || Zn, N = U(e.fallbackContext) ? e.fallbackContext : void 0, L = e, M = U(L.__datetimeFormatters) ? L.__datetimeFormatters : /* @__PURE__ */ new Map(), F = U(L.__numberFormatters) ? L.__numberFormatters : /* @__PURE__ */ new Map(), Q = U(L.__meta) ? L.__meta : {};
|
1597
|
-
Qe++;
|
1598
|
-
const k = {
|
1599
|
-
version: n,
|
1600
|
-
cid: Qe,
|
1601
|
-
locale: r,
|
1602
|
-
fallbackLocale: i,
|
1603
|
-
messages: u,
|
1604
|
-
modifiers: T,
|
1605
|
-
pluralRules: O,
|
1606
|
-
missing: h,
|
1607
|
-
missingWarn: p,
|
1608
|
-
fallbackWarn: D,
|
1609
|
-
fallbackFormat: P,
|
1610
|
-
unresolving: b,
|
1611
|
-
postTranslation: g,
|
1612
|
-
processor: S,
|
1613
|
-
warnHtmlMessage: C,
|
1614
|
-
escapeParameter: c,
|
1615
|
-
messageCompiler: f,
|
1616
|
-
messageResolver: E,
|
1617
|
-
localeFallbacker: m,
|
1618
|
-
fallbackContext: N,
|
1619
|
-
onWarn: t,
|
1620
|
-
__meta: Q
|
1621
|
-
};
|
1622
|
-
return k.datetimeFormats = _, k.numberFormats = l, k.__datetimeFormatters = M, k.__numberFormatters = F, process.env.NODE_ENV !== "production" && (k.__v_emitter = L.__v_emitter != null ? L.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Bn(k, n, Q), k;
|
1623
|
-
}
|
1624
|
-
function Me(e, t) {
|
1625
|
-
return e instanceof RegExp ? e.test(t) : e;
|
1626
|
-
}
|
1627
|
-
function sr(e, t) {
|
1628
|
-
return e instanceof RegExp ? e.test(t) : e;
|
1629
|
-
}
|
1630
|
-
function ke(e, t, n, r, o) {
|
1631
|
-
const { missing: i, onWarn: u } = e;
|
1632
|
-
if (process.env.NODE_ENV !== "production") {
|
1633
|
-
const _ = e.__v_emitter;
|
1634
|
-
_ && _.emit("missing", {
|
1635
|
-
locale: n,
|
1636
|
-
key: t,
|
1637
|
-
type: o,
|
1638
|
-
groupId: `${o}:${t}`
|
1639
|
-
});
|
1640
|
-
}
|
1641
|
-
if (i !== null) {
|
1642
|
-
const _ = i(e, n, t, o);
|
1643
|
-
return y(_) ? _ : t;
|
1644
|
-
} else
|
1645
|
-
return process.env.NODE_ENV !== "production" && sr(r, t) && u(oe(Y.NOT_FOUND_KEY, { key: t, locale: n })), t;
|
1646
|
-
}
|
1647
|
-
function kr(e, t, n) {
|
1648
|
-
const r = e;
|
1649
|
-
r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
1650
|
-
}
|
1651
|
-
function Et(e, t) {
|
1652
|
-
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
1653
|
-
}
|
1654
|
-
function ar(e, t) {
|
1655
|
-
const n = t.indexOf(e);
|
1656
|
-
if (n === -1)
|
1657
|
-
return !1;
|
1658
|
-
for (let r = n + 1; r < t.length; r++)
|
1659
|
-
if (Et(e, t[r]))
|
1660
|
-
return !0;
|
1661
|
-
return !1;
|
1662
|
-
}
|
1663
|
-
function Ie(e) {
|
1664
|
-
return (n) => or(n, e);
|
1665
|
-
}
|
1666
|
-
function or(e, t) {
|
1667
|
-
const n = t.b || t.body;
|
1668
|
-
if ((n.t || n.type) === 1) {
|
1669
|
-
const r = n, o = r.c || r.cases;
|
1670
|
-
return e.plural(o.reduce((i, u) => [
|
1671
|
-
...i,
|
1672
|
-
qe(e, u)
|
1673
|
-
], []));
|
1674
|
-
} else
|
1675
|
-
return qe(e, n);
|
1676
|
-
}
|
1677
|
-
function qe(e, t) {
|
1678
|
-
const n = t.s || t.static;
|
1679
|
-
if (n)
|
1680
|
-
return e.type === "text" ? n : e.normalize([n]);
|
1681
|
-
{
|
1682
|
-
const r = (t.i || t.items).reduce((o, i) => [...o, Se(e, i)], []);
|
1683
|
-
return e.normalize(r);
|
1684
|
-
}
|
1685
|
-
}
|
1686
|
-
function Se(e, t) {
|
1687
|
-
const n = t.t || t.type;
|
1688
|
-
switch (n) {
|
1689
|
-
case 3: {
|
1690
|
-
const r = t;
|
1691
|
-
return r.v || r.value;
|
1692
|
-
}
|
1693
|
-
case 9: {
|
1694
|
-
const r = t;
|
1695
|
-
return r.v || r.value;
|
1696
|
-
}
|
1697
|
-
case 4: {
|
1698
|
-
const r = t;
|
1699
|
-
return e.interpolate(e.named(r.k || r.key));
|
1700
|
-
}
|
1701
|
-
case 5: {
|
1702
|
-
const r = t;
|
1703
|
-
return e.interpolate(e.list(r.i != null ? r.i : r.index));
|
1704
|
-
}
|
1705
|
-
case 6: {
|
1706
|
-
const r = t, o = r.m || r.modifier;
|
1707
|
-
return e.linked(Se(e, r.k || r.key), o ? Se(e, o) : void 0, e.type);
|
1708
|
-
}
|
1709
|
-
case 7: {
|
1710
|
-
const r = t;
|
1711
|
-
return r.v || r.value;
|
1712
|
-
}
|
1713
|
-
case 8: {
|
1714
|
-
const r = t;
|
1715
|
-
return r.v || r.value;
|
1716
|
-
}
|
1717
|
-
default:
|
1718
|
-
throw new Error(`unhandled node type on format message part: ${n}`);
|
1719
|
-
}
|
1720
|
-
}
|
1721
|
-
const ir = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
1722
|
-
function Nt(e, t) {
|
1723
|
-
t && on(e) && _e(et(ir, { source: e }));
|
1724
|
-
}
|
1725
|
-
const pt = (e) => e;
|
1726
|
-
let ce = /* @__PURE__ */ Object.create(null);
|
1727
|
-
function Tt(e) {
|
1728
|
-
e.code === Te.USE_MODULO_SYNTAX && _e(`The use of named interpolation with modulo syntax is deprecated. It will be removed in v10.
|
1729
|
-
reference: https://vue-i18n.intlify.dev/guide/essentials/syntax#rails-i18n-format
|
1730
|
-
(message compiler warning message: ${e.message})`);
|
1731
|
-
}
|
1732
|
-
const ue = (e) => U(e) && (e.t === 0 || e.type === 0) && ("b" in e || "body" in e);
|
1733
|
-
function Lt(e, t = {}) {
|
1734
|
-
let n = !1;
|
1735
|
-
const r = t.onError || sn;
|
1736
|
-
return t.onError = (o) => {
|
1737
|
-
n = !0, r(o);
|
1738
|
-
}, { ...Pn(e, t), detectError: n };
|
1739
|
-
}
|
1740
|
-
const Rr = /* @__NO_SIDE_EFFECTS__ */ (e, t) => {
|
1741
|
-
if (!y(e))
|
1742
|
-
throw J(V.NOT_SUPPORT_NON_STRING_MESSAGE);
|
1743
|
-
process.env.NODE_ENV !== "production" && (t.onWarn = Tt);
|
1744
|
-
{
|
1745
|
-
const n = K(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
1746
|
-
process.env.NODE_ENV !== "production" && Nt(e, n);
|
1747
|
-
const o = (t.onCacheKey || pt)(e), i = ce[o];
|
1748
|
-
if (i)
|
1749
|
-
return i;
|
1750
|
-
const { code: u, detectError: _ } = Lt(e, t), l = new Function(`return ${u}`)();
|
1751
|
-
return _ ? l : ce[o] = l;
|
1752
|
-
}
|
1753
|
-
};
|
1754
|
-
function vr(e, t) {
|
1755
|
-
if (process.env.NODE_ENV !== "production" && (t.onWarn = Tt), __INTLIFY_JIT_COMPILATION__ && !__INTLIFY_DROP_MESSAGE_COMPILER__ && y(e)) {
|
1756
|
-
const n = K(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
1757
|
-
process.env.NODE_ENV !== "production" && Nt(e, n);
|
1758
|
-
const o = (t.onCacheKey || pt)(e), i = ce[o];
|
1759
|
-
if (i)
|
1760
|
-
return i;
|
1761
|
-
const { ast: u, detectError: _ } = Lt(e, {
|
1762
|
-
...t,
|
1763
|
-
location: process.env.NODE_ENV !== "production",
|
1764
|
-
jit: !0
|
1765
|
-
}), l = Ie(u);
|
1766
|
-
return _ ? l : ce[o] = l;
|
1767
|
-
} else {
|
1768
|
-
if (process.env.NODE_ENV !== "production" && !ue(e))
|
1769
|
-
return _e(`the message that is resolve with key '${t.key}' is not supported for jit compilation`), () => e;
|
1770
|
-
const n = e.cacheKey;
|
1771
|
-
if (n) {
|
1772
|
-
const r = ce[n];
|
1773
|
-
return r || (ce[n] = Ie(e));
|
1774
|
-
} else
|
1775
|
-
return Ie(e);
|
1776
|
-
}
|
1777
|
-
}
|
1778
|
-
const Ze = () => "", B = (e) => $(e);
|
1779
|
-
function wr(e, ...t) {
|
1780
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: o, messageCompiler: i, fallbackLocale: u, messages: _ } = e, [l, T] = ur(...t), O = K(T.missingWarn) ? T.missingWarn : e.missingWarn, h = K(T.fallbackWarn) ? T.fallbackWarn : e.fallbackWarn, p = K(T.escapeParameter) ? T.escapeParameter : e.escapeParameter, D = !!T.resolvedMessage, P = y(T.default) || K(T.default) ? K(T.default) ? i ? l : () => l : T.default : n ? i ? l : () => l : "", b = n || P !== "", g = be(e, T);
|
1781
|
-
p && cr(T);
|
1782
|
-
let [S, C, c] = D ? [
|
1783
|
-
l,
|
1784
|
-
g,
|
1785
|
-
_[g] || {}
|
1786
|
-
] : Ot(e, l, g, u, h, O), f = S, E = l;
|
1787
|
-
if (!D && !(y(f) || ue(f) || B(f)) && b && (f = P, E = f), !D && (!(y(f) || ue(f) || B(f)) || !y(C)))
|
1788
|
-
return o ? Pe : l;
|
1789
|
-
if (process.env.NODE_ENV !== "production" && y(f) && e.messageCompiler == null)
|
1790
|
-
return _e(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${l}'.`), l;
|
1791
|
-
let m = !1;
|
1792
|
-
const N = () => {
|
1793
|
-
m = !0;
|
1794
|
-
}, L = B(f) ? f : ht(e, l, C, f, E, N);
|
1795
|
-
if (m)
|
1796
|
-
return f;
|
1797
|
-
const M = dr(e, C, c, T), F = xn(M), Q = lr(e, L, F), k = r ? r(Q, l) : Q;
|
1798
|
-
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
1799
|
-
const H = {
|
1800
|
-
timestamp: Date.now(),
|
1801
|
-
key: y(l) ? l : B(f) ? f.key : "",
|
1802
|
-
locale: C || (B(f) ? f.locale : ""),
|
1803
|
-
format: y(f) ? f : B(f) ? f.source : "",
|
1804
|
-
message: k
|
1805
|
-
};
|
1806
|
-
H.meta = fe({}, e.__meta, /* @__PURE__ */ rr() || {}), jn(H);
|
1807
|
-
}
|
1808
|
-
return k;
|
1809
|
-
}
|
1810
|
-
function cr(e) {
|
1811
|
-
j(e.list) ? e.list = e.list.map((t) => y(t) ? $e(t) : t) : U(e.named) && Object.keys(e.named).forEach((t) => {
|
1812
|
-
y(e.named[t]) && (e.named[t] = $e(e.named[t]));
|
1813
|
-
});
|
1814
|
-
}
|
1815
|
-
function Ot(e, t, n, r, o, i) {
|
1816
|
-
const { messages: u, onWarn: _, messageResolver: l, localeFallbacker: T } = e, O = T(e, r, n);
|
1817
|
-
let h = {}, p, D = null, P = n, b = null;
|
1818
|
-
const g = "translate";
|
1819
|
-
for (let S = 0; S < O.length; S++) {
|
1820
|
-
if (p = b = O[S], process.env.NODE_ENV !== "production" && n !== p && !Et(n, p) && Me(o, t) && _(oe(Y.FALLBACK_TO_TRANSLATE, {
|
1821
|
-
key: t,
|
1822
|
-
target: p
|
1823
|
-
})), process.env.NODE_ENV !== "production" && n !== p) {
|
1824
|
-
const E = e.__v_emitter;
|
1825
|
-
E && E.emit("fallback", {
|
1826
|
-
type: g,
|
1827
|
-
key: t,
|
1828
|
-
from: P,
|
1829
|
-
to: b,
|
1830
|
-
groupId: `${g}:${t}`
|
1831
|
-
});
|
1832
|
-
}
|
1833
|
-
h = u[p] || {};
|
1834
|
-
let C = null, c, f;
|
1835
|
-
if (process.env.NODE_ENV !== "production" && se && (C = window.performance.now(), c = "intlify-message-resolve-start", f = "intlify-message-resolve-end", X && X(c)), (D = l(h, t)) === null && (D = h[t]), process.env.NODE_ENV !== "production" && se) {
|
1836
|
-
const E = window.performance.now(), m = e.__v_emitter;
|
1837
|
-
m && C && D && m.emit("message-resolve", {
|
1838
|
-
type: "message-resolve",
|
1839
|
-
key: t,
|
1840
|
-
message: D,
|
1841
|
-
time: E - C,
|
1842
|
-
groupId: `${g}:${t}`
|
1843
|
-
}), c && f && X && ae && (X(f), ae("intlify message resolve", c, f));
|
1844
|
-
}
|
1845
|
-
if (y(D) || ue(D) || B(D))
|
1846
|
-
break;
|
1847
|
-
if (!ar(p, O)) {
|
1848
|
-
const E = ke(
|
1849
|
-
e,
|
1850
|
-
// eslint-disable-line @typescript-eslint/no-explicit-any
|
1851
|
-
t,
|
1852
|
-
p,
|
1853
|
-
i,
|
1854
|
-
g
|
1855
|
-
);
|
1856
|
-
E !== t && (D = E);
|
1857
|
-
}
|
1858
|
-
P = b;
|
1859
|
-
}
|
1860
|
-
return [D, p, h];
|
1861
|
-
}
|
1862
|
-
function ht(e, t, n, r, o, i) {
|
1863
|
-
const { messageCompiler: u, warnHtmlMessage: _ } = e;
|
1864
|
-
if (B(r)) {
|
1865
|
-
const p = r;
|
1866
|
-
return p.locale = p.locale || n, p.key = p.key || t, p;
|
1867
|
-
}
|
1868
|
-
if (u == null) {
|
1869
|
-
const p = () => r;
|
1870
|
-
return p.locale = n, p.key = t, p;
|
1871
|
-
}
|
1872
|
-
let l = null, T, O;
|
1873
|
-
process.env.NODE_ENV !== "production" && se && (l = window.performance.now(), T = "intlify-message-compilation-start", O = "intlify-message-compilation-end", X && X(T));
|
1874
|
-
const h = u(r, fr(e, n, o, r, _, i));
|
1875
|
-
if (process.env.NODE_ENV !== "production" && se) {
|
1876
|
-
const p = window.performance.now(), D = e.__v_emitter;
|
1877
|
-
D && l && D.emit("message-compilation", {
|
1878
|
-
type: "message-compilation",
|
1879
|
-
message: r,
|
1880
|
-
time: p - l,
|
1881
|
-
groupId: `translate:${t}`
|
1882
|
-
}), T && O && X && ae && (X(O), ae("intlify message compilation", T, O));
|
1883
|
-
}
|
1884
|
-
return h.locale = n, h.key = t, h.source = r, h;
|
1885
|
-
}
|
1886
|
-
function lr(e, t, n) {
|
1887
|
-
let r = null, o, i;
|
1888
|
-
process.env.NODE_ENV !== "production" && se && (r = window.performance.now(), o = "intlify-message-evaluation-start", i = "intlify-message-evaluation-end", X && X(o));
|
1889
|
-
const u = t(n);
|
1890
|
-
if (process.env.NODE_ENV !== "production" && se) {
|
1891
|
-
const _ = window.performance.now(), l = e.__v_emitter;
|
1892
|
-
l && r && l.emit("message-evaluation", {
|
1893
|
-
type: "message-evaluation",
|
1894
|
-
value: u,
|
1895
|
-
time: _ - r,
|
1896
|
-
groupId: `translate:${t.key}`
|
1897
|
-
}), o && i && X && ae && (X(i), ae("intlify message evaluation", o, i));
|
1898
|
-
}
|
1899
|
-
return u;
|
1900
|
-
}
|
1901
|
-
function ur(...e) {
|
1902
|
-
const [t, n, r] = e, o = {};
|
1903
|
-
if (!y(t) && !G(t) && !B(t) && !ue(t))
|
1904
|
-
throw J(V.INVALID_ARGUMENT);
|
1905
|
-
const i = G(t) ? String(t) : (B(t), t);
|
1906
|
-
return G(n) ? o.plural = n : y(n) ? o.default = n : v(n) && !De(n) ? o.named = n : j(n) && (o.list = n), G(r) ? o.plural = r : y(r) ? o.default = r : v(r) && fe(o, r), [i, o];
|
1907
|
-
}
|
1908
|
-
function fr(e, t, n, r, o, i) {
|
1909
|
-
return {
|
1910
|
-
locale: t,
|
1911
|
-
key: n,
|
1912
|
-
warnHtmlMessage: o,
|
1913
|
-
onError: (u) => {
|
1914
|
-
if (i && i(u), process.env.NODE_ENV !== "production") {
|
1915
|
-
const _ = _r(r), l = `Message compilation error: ${u.message}`, T = u.location && _ && Qt(_, u.location.start.offset, u.location.end.offset), O = e.__v_emitter;
|
1916
|
-
O && _ && O.emit("compile-error", {
|
1917
|
-
message: _,
|
1918
|
-
error: u.message,
|
1919
|
-
start: u.location && u.location.start.offset,
|
1920
|
-
end: u.location && u.location.end.offset,
|
1921
|
-
groupId: `translate:${n}`
|
1922
|
-
}), console.error(T ? `${l}
|
1923
|
-
${T}` : l);
|
1924
|
-
} else
|
1925
|
-
throw u;
|
1926
|
-
},
|
1927
|
-
onCacheKey: (u) => Gt(t, n, u)
|
1928
|
-
};
|
1929
|
-
}
|
1930
|
-
function _r(e) {
|
1931
|
-
if (y(e))
|
1932
|
-
return e;
|
1933
|
-
if (e.loc && e.loc.source)
|
1934
|
-
return e.loc.source;
|
1935
|
-
}
|
1936
|
-
function dr(e, t, n, r) {
|
1937
|
-
const { modifiers: o, pluralRules: i, messageResolver: u, fallbackLocale: _, fallbackWarn: l, missingWarn: T, fallbackContext: O } = e, p = {
|
1938
|
-
locale: t,
|
1939
|
-
modifiers: o,
|
1940
|
-
pluralRules: i,
|
1941
|
-
messages: (D) => {
|
1942
|
-
let P = u(n, D);
|
1943
|
-
if (P == null && O) {
|
1944
|
-
const [, , b] = Ot(O, D, t, _, l, T);
|
1945
|
-
P = u(b, D);
|
1946
|
-
}
|
1947
|
-
if (y(P) || ue(P)) {
|
1948
|
-
let b = !1;
|
1949
|
-
const S = ht(e, D, t, P, D, () => {
|
1950
|
-
b = !0;
|
1951
|
-
});
|
1952
|
-
return b ? Ze : S;
|
1953
|
-
} else return B(P) ? P : Ze;
|
1954
|
-
}
|
1955
|
-
};
|
1956
|
-
return e.processor && (p.processor = e.processor), r.list && (p.list = r.list), r.named && (p.named = r.named), G(r.plural) && (p.pluralIndex = r.plural), p;
|
1957
|
-
}
|
1958
|
-
const ze = typeof Intl < "u", gt = {
|
1959
|
-
dateTimeFormat: ze && typeof Intl.DateTimeFormat < "u",
|
1960
|
-
numberFormat: ze && typeof Intl.NumberFormat < "u"
|
1961
|
-
};
|
1962
|
-
function Fr(e, ...t) {
|
1963
|
-
const { datetimeFormats: n, unresolving: r, fallbackLocale: o, onWarn: i, localeFallbacker: u } = e, { __datetimeFormatters: _ } = e;
|
1964
|
-
if (process.env.NODE_ENV !== "production" && !gt.dateTimeFormat)
|
1965
|
-
return i(oe(Y.CANNOT_FORMAT_DATE)), lt;
|
1966
|
-
const [l, T, O, h] = Er(...t), p = K(O.missingWarn) ? O.missingWarn : e.missingWarn, D = K(O.fallbackWarn) ? O.fallbackWarn : e.fallbackWarn, P = !!O.part, b = be(e, O), g = u(
|
1967
|
-
e,
|
1968
|
-
// eslint-disable-line @typescript-eslint/no-explicit-any
|
1969
|
-
o,
|
1970
|
-
b
|
1971
|
-
);
|
1972
|
-
if (!y(l) || l === "")
|
1973
|
-
return new Intl.DateTimeFormat(b, h).format(T);
|
1974
|
-
let S = {}, C, c = null, f = b, E = null;
|
1975
|
-
const m = "datetime format";
|
1976
|
-
for (let M = 0; M < g.length; M++) {
|
1977
|
-
if (C = E = g[M], process.env.NODE_ENV !== "production" && b !== C && Me(D, l) && i(oe(Y.FALLBACK_TO_DATE_FORMAT, {
|
1978
|
-
key: l,
|
1979
|
-
target: C
|
1980
|
-
})), process.env.NODE_ENV !== "production" && b !== C) {
|
1981
|
-
const F = e.__v_emitter;
|
1982
|
-
F && F.emit("fallback", {
|
1983
|
-
type: m,
|
1984
|
-
key: l,
|
1985
|
-
from: f,
|
1986
|
-
to: E,
|
1987
|
-
groupId: `${m}:${l}`
|
1988
|
-
});
|
1989
|
-
}
|
1990
|
-
if (S = n[C] || {}, c = S[l], v(c))
|
1991
|
-
break;
|
1992
|
-
ke(e, l, C, p, m), f = E;
|
1993
|
-
}
|
1994
|
-
if (!v(c) || !y(C))
|
1995
|
-
return r ? Pe : l;
|
1996
|
-
let N = `${C}__${l}`;
|
1997
|
-
De(h) || (N = `${N}__${JSON.stringify(h)}`);
|
1998
|
-
let L = _.get(N);
|
1999
|
-
return L || (L = new Intl.DateTimeFormat(C, fe({}, c, h)), _.set(N, L)), P ? L.formatToParts(T) : L.format(T);
|
2000
|
-
}
|
2001
|
-
const mr = [
|
2002
|
-
"localeMatcher",
|
2003
|
-
"weekday",
|
2004
|
-
"era",
|
2005
|
-
"year",
|
2006
|
-
"month",
|
2007
|
-
"day",
|
2008
|
-
"hour",
|
2009
|
-
"minute",
|
2010
|
-
"second",
|
2011
|
-
"timeZoneName",
|
2012
|
-
"formatMatcher",
|
2013
|
-
"hour12",
|
2014
|
-
"timeZone",
|
2015
|
-
"dateStyle",
|
2016
|
-
"timeStyle",
|
2017
|
-
"calendar",
|
2018
|
-
"dayPeriod",
|
2019
|
-
"numberingSystem",
|
2020
|
-
"hourCycle",
|
2021
|
-
"fractionalSecondDigits"
|
2022
|
-
];
|
2023
|
-
function Er(...e) {
|
2024
|
-
const [t, n, r, o] = e, i = {};
|
2025
|
-
let u = {}, _;
|
2026
|
-
if (y(t)) {
|
2027
|
-
const l = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
2028
|
-
if (!l)
|
2029
|
-
throw J(V.INVALID_ISO_DATE_ARGUMENT);
|
2030
|
-
const T = l[3] ? l[3].trim().startsWith("T") ? `${l[1].trim()}${l[3].trim()}` : `${l[1].trim()}T${l[3].trim()}` : l[1].trim();
|
2031
|
-
_ = new Date(T);
|
2032
|
-
try {
|
2033
|
-
_.toISOString();
|
2034
|
-
} catch {
|
2035
|
-
throw J(V.INVALID_ISO_DATE_ARGUMENT);
|
2036
|
-
}
|
2037
|
-
} else if (Ht(t)) {
|
2038
|
-
if (isNaN(t.getTime()))
|
2039
|
-
throw J(V.INVALID_DATE_ARGUMENT);
|
2040
|
-
_ = t;
|
2041
|
-
} else if (G(t))
|
2042
|
-
_ = t;
|
2043
|
-
else
|
2044
|
-
throw J(V.INVALID_ARGUMENT);
|
2045
|
-
return y(n) ? i.key = n : v(n) && Object.keys(n).forEach((l) => {
|
2046
|
-
mr.includes(l) ? u[l] = n[l] : i[l] = n[l];
|
2047
|
-
}), y(r) ? i.locale = r : v(r) && (u = r), v(o) && (u = o), [i.key || "", _, i, u];
|
2048
|
-
}
|
2049
|
-
function Ur(e, t, n) {
|
2050
|
-
const r = e;
|
2051
|
-
for (const o in n) {
|
2052
|
-
const i = `${t}__${o}`;
|
2053
|
-
r.__datetimeFormatters.has(i) && r.__datetimeFormatters.delete(i);
|
2054
|
-
}
|
2055
|
-
}
|
2056
|
-
function $r(e, ...t) {
|
2057
|
-
const { numberFormats: n, unresolving: r, fallbackLocale: o, onWarn: i, localeFallbacker: u } = e, { __numberFormatters: _ } = e;
|
2058
|
-
if (process.env.NODE_ENV !== "production" && !gt.numberFormat)
|
2059
|
-
return i(oe(Y.CANNOT_FORMAT_NUMBER)), lt;
|
2060
|
-
const [l, T, O, h] = pr(...t), p = K(O.missingWarn) ? O.missingWarn : e.missingWarn, D = K(O.fallbackWarn) ? O.fallbackWarn : e.fallbackWarn, P = !!O.part, b = be(e, O), g = u(
|
2061
|
-
e,
|
2062
|
-
// eslint-disable-line @typescript-eslint/no-explicit-any
|
2063
|
-
o,
|
2064
|
-
b
|
2065
|
-
);
|
2066
|
-
if (!y(l) || l === "")
|
2067
|
-
return new Intl.NumberFormat(b, h).format(T);
|
2068
|
-
let S = {}, C, c = null, f = b, E = null;
|
2069
|
-
const m = "number format";
|
2070
|
-
for (let M = 0; M < g.length; M++) {
|
2071
|
-
if (C = E = g[M], process.env.NODE_ENV !== "production" && b !== C && Me(D, l) && i(oe(Y.FALLBACK_TO_NUMBER_FORMAT, {
|
2072
|
-
key: l,
|
2073
|
-
target: C
|
2074
|
-
})), process.env.NODE_ENV !== "production" && b !== C) {
|
2075
|
-
const F = e.__v_emitter;
|
2076
|
-
F && F.emit("fallback", {
|
2077
|
-
type: m,
|
2078
|
-
key: l,
|
2079
|
-
from: f,
|
2080
|
-
to: E,
|
2081
|
-
groupId: `${m}:${l}`
|
2082
|
-
});
|
2083
|
-
}
|
2084
|
-
if (S = n[C] || {}, c = S[l], v(c))
|
2085
|
-
break;
|
2086
|
-
ke(e, l, C, p, m), f = E;
|
2087
|
-
}
|
2088
|
-
if (!v(c) || !y(C))
|
2089
|
-
return r ? Pe : l;
|
2090
|
-
let N = `${C}__${l}`;
|
2091
|
-
De(h) || (N = `${N}__${JSON.stringify(h)}`);
|
2092
|
-
let L = _.get(N);
|
2093
|
-
return L || (L = new Intl.NumberFormat(C, fe({}, c, h)), _.set(N, L)), P ? L.formatToParts(T) : L.format(T);
|
2094
|
-
}
|
2095
|
-
const Nr = [
|
2096
|
-
"localeMatcher",
|
2097
|
-
"style",
|
2098
|
-
"currency",
|
2099
|
-
"currencyDisplay",
|
2100
|
-
"currencySign",
|
2101
|
-
"useGrouping",
|
2102
|
-
"minimumIntegerDigits",
|
2103
|
-
"minimumFractionDigits",
|
2104
|
-
"maximumFractionDigits",
|
2105
|
-
"minimumSignificantDigits",
|
2106
|
-
"maximumSignificantDigits",
|
2107
|
-
"compactDisplay",
|
2108
|
-
"notation",
|
2109
|
-
"signDisplay",
|
2110
|
-
"unit",
|
2111
|
-
"unitDisplay",
|
2112
|
-
"roundingMode",
|
2113
|
-
"roundingPriority",
|
2114
|
-
"roundingIncrement",
|
2115
|
-
"trailingZeroDisplay"
|
2116
|
-
];
|
2117
|
-
function pr(...e) {
|
2118
|
-
const [t, n, r, o] = e, i = {};
|
2119
|
-
let u = {};
|
2120
|
-
if (!G(t))
|
2121
|
-
throw J(V.INVALID_ARGUMENT);
|
2122
|
-
const _ = t;
|
2123
|
-
return y(n) ? i.key = n : v(n) && Object.keys(n).forEach((l) => {
|
2124
|
-
Nr.includes(l) ? u[l] = n[l] : i[l] = n[l];
|
2125
|
-
}), y(r) ? i.locale = r : v(r) && (u = r), v(o) && (u = o), [i.key || "", _, i, u];
|
2126
|
-
}
|
2127
|
-
function Vr(e, t, n) {
|
2128
|
-
const r = e;
|
2129
|
-
for (const o in n) {
|
2130
|
-
const i = `${t}__${o}`;
|
2131
|
-
r.__numberFormatters.has(i) && r.__numberFormatters.delete(i);
|
2132
|
-
}
|
2133
|
-
}
|
2134
|
-
Mn();
|
2135
|
-
export {
|
2136
|
-
vr as A,
|
2137
|
-
Rr as B,
|
2138
|
-
gr as C,
|
2139
|
-
Ce as D,
|
2140
|
-
Ir as E,
|
2141
|
-
V as F,
|
2142
|
-
rt as G,
|
2143
|
-
Mr as H,
|
2144
|
-
Ur as I,
|
2145
|
-
Vr as J,
|
2146
|
-
ue as K,
|
2147
|
-
Y as L,
|
2148
|
-
yr as M,
|
2149
|
-
Nr as N,
|
2150
|
-
Pr as O,
|
2151
|
-
Pe as P,
|
2152
|
-
Me as Q,
|
2153
|
-
sr as R,
|
2154
|
-
ur as S,
|
2155
|
-
wr as T,
|
2156
|
-
lt as U,
|
2157
|
-
Er as V,
|
2158
|
-
Fr as W,
|
2159
|
-
pr as X,
|
2160
|
-
$r as Y,
|
2161
|
-
B as Z,
|
2162
|
-
br as _,
|
2163
|
-
fe as a,
|
2164
|
-
y as b,
|
2165
|
-
U as c,
|
2166
|
-
K as d,
|
2167
|
-
De as e,
|
2168
|
-
j as f,
|
2169
|
-
v as g,
|
2170
|
-
Fe as h,
|
2171
|
-
G as i,
|
2172
|
-
$ as j,
|
2173
|
-
Sr as k,
|
2174
|
-
Dr as l,
|
2175
|
-
Tr as m,
|
2176
|
-
ge as n,
|
2177
|
-
et as o,
|
2178
|
-
me as p,
|
2179
|
-
hr as q,
|
2180
|
-
Cr as r,
|
2181
|
-
Ar as s,
|
2182
|
-
Lr as t,
|
2183
|
-
qt as u,
|
2184
|
-
kr as v,
|
2185
|
-
_e as w,
|
2186
|
-
se as x,
|
2187
|
-
mr as y,
|
2188
|
-
Or as z
|
2189
|
-
};
|