@konnectio/core 4.0.83 → 4.0.85
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/dist/{ActionField-BA-fYDFE.js → ActionField-DJk5QgPZ.js} +3 -3
- package/dist/ActionField-DJk5QgPZ.js.br +0 -0
- package/dist/AvailabilitySkeleton-CtuxK5gu.js +309 -0
- package/dist/AvailabilitySkeleton-CtuxK5gu.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Qc9hcPxa.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Db0xB137.js} +18 -19
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Db0xB137.js.br +0 -0
- package/dist/{CheckoutWindow-BWvzwZp7.js → CheckoutWindow-C4Of_CDw.js} +62 -62
- package/dist/CheckoutWindow-C4Of_CDw.js.br +0 -0
- package/dist/{ErrorMessage-Cznv1pOA.js → ErrorMessage-CqKEeIyM.js} +3 -3
- package/dist/ErrorMessage-CqKEeIyM.js.br +0 -0
- package/dist/{EventAvailabilityForm-CCIRdxiD.js → EventAvailabilityForm-BuRH06ec.js} +18 -19
- package/dist/EventAvailabilityForm-BuRH06ec.js.br +0 -0
- package/dist/{Field-BvDQnKDq.js → Field-BQY1CedN.js} +5 -5
- package/dist/Field-BQY1CedN.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-9lyXRaoC.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CnESOevH.js} +1217 -1190
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CnESOevH.js.br +0 -0
- package/dist/TermsOfService-C0j_4-LO.js +28 -0
- package/dist/_-D5_t925T.js +5 -0
- package/dist/{_.vue_vue_type_style_index_0_lang-JXEPTW6b.js → _.vue_vue_type_style_index_0_lang-B2hdeWg4.js} +5 -5
- package/dist/availability.js +23 -24
- package/dist/availability.js.br +0 -0
- package/dist/deep-link.js +5 -6
- package/dist/deep-link.js.br +0 -0
- package/dist/event.js +72 -74
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +21 -22
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +67 -68
- package/dist/gift-card.js.br +0 -0
- package/dist/{giftCard-DA27WKsi.js → giftCard-Df_AbMio.js} +27 -28
- package/dist/giftCard-Df_AbMio.js.br +0 -0
- package/dist/hotel.js +1269 -1143
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-C22IPiCy.js → masonry.plugin-zqPD3EI2.js} +6 -7
- package/dist/masonry.plugin-zqPD3EI2.js.br +0 -0
- package/dist/mitt-B_elXQ2J.js +12437 -0
- package/dist/mitt-B_elXQ2J.js.br +0 -0
- package/dist/polyfill.js +2427 -2378
- package/dist/polyfill.js.br +0 -0
- package/dist/{style-CF23zZwv.js → style-CDpCXUak.js} +67 -67
- package/dist/style-CDpCXUak.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +12 -13
- package/dist/ActionField-BA-fYDFE.js.br +0 -0
- package/dist/AvailabilitySkeleton-cs1R6FqT.js +0 -281
- package/dist/AvailabilitySkeleton-cs1R6FqT.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Qc9hcPxa.js.br +0 -0
- package/dist/CheckoutWindow-BWvzwZp7.js.br +0 -0
- package/dist/ErrorMessage-Cznv1pOA.js.br +0 -0
- package/dist/EventAvailabilityForm-CCIRdxiD.js.br +0 -0
- package/dist/Field-BvDQnKDq.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-9lyXRaoC.js.br +0 -0
- package/dist/TermsOfService-GFdUcU5a.js +0 -29
- package/dist/_-CApO2y_W.js +0 -5
- package/dist/giftCard-DA27WKsi.js.br +0 -0
- package/dist/masonry.plugin-C22IPiCy.js.br +0 -0
- package/dist/mitt-QLRlCcPH.js +0 -2962
- package/dist/mitt-QLRlCcPH.js.br +0 -0
- package/dist/style-CF23zZwv.js.br +0 -0
- package/dist/vue.esm-bundler-BkY4vCIk.js +0 -9485
- package/dist/vue.esm-bundler-BkY4vCIk.js.br +0 -0
package/dist/mitt-QLRlCcPH.js
DELETED
|
@@ -1,2962 +0,0 @@
|
|
|
1
|
-
import { af as bt, r as Ot, ag as En, ah as gn, v as Te, ai as It, U as Qn, aj as qn, H as Nn, z as $e, N as Zn, a2 as zn, a3 as er, E as tr, ak as nr, c as Le, d as Ct, K as pn, I as yt, o as rr, O as sr, F as Ln, a8 as ar, f as lr, M as or } from "./vue.esm-bundler-BkY4vCIk.js";
|
|
2
|
-
var cr = !1;
|
|
3
|
-
/*!
|
|
4
|
-
* pinia v2.2.2
|
|
5
|
-
* (c) 2024 Eduardo San Martin Morote
|
|
6
|
-
* @license MIT
|
|
7
|
-
*/
|
|
8
|
-
let hn;
|
|
9
|
-
const Ye = (e) => hn = e, Tn = (
|
|
10
|
-
/* istanbul ignore next */
|
|
11
|
-
Symbol()
|
|
12
|
-
);
|
|
13
|
-
function mt(e) {
|
|
14
|
-
return e && typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" && typeof e.toJSON != "function";
|
|
15
|
-
}
|
|
16
|
-
var Re;
|
|
17
|
-
(function(e) {
|
|
18
|
-
e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
|
|
19
|
-
})(Re || (Re = {}));
|
|
20
|
-
function ha() {
|
|
21
|
-
const e = bt(!0), t = e.run(() => Ot({}));
|
|
22
|
-
let n = [], r = [];
|
|
23
|
-
const s = En({
|
|
24
|
-
install(l) {
|
|
25
|
-
Ye(s), s._a = l, l.provide(Tn, s), l.config.globalProperties.$pinia = s, r.forEach((c) => n.push(c)), r = [];
|
|
26
|
-
},
|
|
27
|
-
use(l) {
|
|
28
|
-
return !this._a && !cr ? r.push(l) : n.push(l), this;
|
|
29
|
-
},
|
|
30
|
-
_p: n,
|
|
31
|
-
// it's actually undefined here
|
|
32
|
-
// @ts-expect-error
|
|
33
|
-
_a: null,
|
|
34
|
-
_e: e,
|
|
35
|
-
_s: /* @__PURE__ */ new Map(),
|
|
36
|
-
state: t
|
|
37
|
-
});
|
|
38
|
-
return s;
|
|
39
|
-
}
|
|
40
|
-
const bn = () => {
|
|
41
|
-
};
|
|
42
|
-
function Mt(e, t, n, r = bn) {
|
|
43
|
-
e.push(t);
|
|
44
|
-
const s = () => {
|
|
45
|
-
const l = e.indexOf(t);
|
|
46
|
-
l > -1 && (e.splice(l, 1), r());
|
|
47
|
-
};
|
|
48
|
-
return !n && zn() && er(s), s;
|
|
49
|
-
}
|
|
50
|
-
function pe(e, ...t) {
|
|
51
|
-
e.slice().forEach((n) => {
|
|
52
|
-
n(...t);
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
const ir = (e) => e(), Ft = Symbol(), it = Symbol();
|
|
56
|
-
function _t(e, t) {
|
|
57
|
-
e instanceof Map && t instanceof Map ? t.forEach((n, r) => e.set(r, n)) : e instanceof Set && t instanceof Set && t.forEach(e.add, e);
|
|
58
|
-
for (const n in t) {
|
|
59
|
-
if (!t.hasOwnProperty(n))
|
|
60
|
-
continue;
|
|
61
|
-
const r = t[n], s = e[n];
|
|
62
|
-
mt(s) && mt(r) && e.hasOwnProperty(n) && !Te(r) && !It(r) ? e[n] = _t(s, r) : e[n] = r;
|
|
63
|
-
}
|
|
64
|
-
return e;
|
|
65
|
-
}
|
|
66
|
-
const ur = (
|
|
67
|
-
/* istanbul ignore next */
|
|
68
|
-
Symbol()
|
|
69
|
-
);
|
|
70
|
-
function fr(e) {
|
|
71
|
-
return !mt(e) || !e.hasOwnProperty(ur);
|
|
72
|
-
}
|
|
73
|
-
const { assign: ue } = Object;
|
|
74
|
-
function mr(e) {
|
|
75
|
-
return !!(Te(e) && e.effect);
|
|
76
|
-
}
|
|
77
|
-
function _r(e, t, n, r) {
|
|
78
|
-
const { state: s, actions: l, getters: c } = t, i = n.state.value[e];
|
|
79
|
-
let u;
|
|
80
|
-
function _() {
|
|
81
|
-
i || (n.state.value[e] = s ? s() : {});
|
|
82
|
-
const O = nr(n.state.value[e]);
|
|
83
|
-
return ue(O, l, Object.keys(c || {}).reduce((L, p) => (L[p] = En(Le(() => {
|
|
84
|
-
Ye(n);
|
|
85
|
-
const C = n._s.get(e);
|
|
86
|
-
return c[p].call(C, C);
|
|
87
|
-
})), L), {}));
|
|
88
|
-
}
|
|
89
|
-
return u = On(e, _, t, n, r, !0), u;
|
|
90
|
-
}
|
|
91
|
-
function On(e, t, n = {}, r, s, l) {
|
|
92
|
-
let c;
|
|
93
|
-
const i = ue({ actions: {} }, n), u = { deep: !0 };
|
|
94
|
-
let _, O, L = [], p = [], C;
|
|
95
|
-
const A = r.state.value[e];
|
|
96
|
-
!l && !A && (r.state.value[e] = {}), Ot({});
|
|
97
|
-
let R;
|
|
98
|
-
function y(b) {
|
|
99
|
-
let h;
|
|
100
|
-
_ = O = !1, typeof b == "function" ? (b(r.state.value[e]), h = {
|
|
101
|
-
type: Re.patchFunction,
|
|
102
|
-
storeId: e,
|
|
103
|
-
events: C
|
|
104
|
-
}) : (_t(r.state.value[e], b), h = {
|
|
105
|
-
type: Re.patchObject,
|
|
106
|
-
payload: b,
|
|
107
|
-
storeId: e,
|
|
108
|
-
events: C
|
|
109
|
-
});
|
|
110
|
-
const W = R = Symbol();
|
|
111
|
-
tr().then(() => {
|
|
112
|
-
R === W && (_ = !0);
|
|
113
|
-
}), O = !0, pe(L, h, r.state.value[e]);
|
|
114
|
-
}
|
|
115
|
-
const P = l ? function() {
|
|
116
|
-
const { state: h } = n, W = h ? h() : {};
|
|
117
|
-
this.$patch((G) => {
|
|
118
|
-
ue(G, W);
|
|
119
|
-
});
|
|
120
|
-
} : (
|
|
121
|
-
/* istanbul ignore next */
|
|
122
|
-
bn
|
|
123
|
-
);
|
|
124
|
-
function M() {
|
|
125
|
-
c.stop(), L = [], p = [], r._s.delete(e);
|
|
126
|
-
}
|
|
127
|
-
const m = (b, h = "") => {
|
|
128
|
-
if (Ft in b)
|
|
129
|
-
return b[it] = h, b;
|
|
130
|
-
const W = function() {
|
|
131
|
-
Ye(r);
|
|
132
|
-
const G = Array.from(arguments), F = [], Y = [];
|
|
133
|
-
function Ce(B) {
|
|
134
|
-
F.push(B);
|
|
135
|
-
}
|
|
136
|
-
function ye(B) {
|
|
137
|
-
Y.push(B);
|
|
138
|
-
}
|
|
139
|
-
pe(p, {
|
|
140
|
-
args: G,
|
|
141
|
-
name: W[it],
|
|
142
|
-
store: T,
|
|
143
|
-
after: Ce,
|
|
144
|
-
onError: ye
|
|
145
|
-
});
|
|
146
|
-
let re;
|
|
147
|
-
try {
|
|
148
|
-
re = b.apply(this && this.$id === e ? this : T, G);
|
|
149
|
-
} catch (B) {
|
|
150
|
-
throw pe(Y, B), B;
|
|
151
|
-
}
|
|
152
|
-
return re instanceof Promise ? re.then((B) => (pe(F, B), B)).catch((B) => (pe(Y, B), Promise.reject(B))) : (pe(F, re), re);
|
|
153
|
-
};
|
|
154
|
-
return W[Ft] = !0, W[it] = h, W;
|
|
155
|
-
}, d = {
|
|
156
|
-
_p: r,
|
|
157
|
-
// _s: scope,
|
|
158
|
-
$id: e,
|
|
159
|
-
$onAction: Mt.bind(null, p),
|
|
160
|
-
$patch: y,
|
|
161
|
-
$reset: P,
|
|
162
|
-
$subscribe(b, h = {}) {
|
|
163
|
-
const W = Mt(L, b, h.detached, () => G()), G = c.run(() => $e(() => r.state.value[e], (F) => {
|
|
164
|
-
(h.flush === "sync" ? O : _) && b({
|
|
165
|
-
storeId: e,
|
|
166
|
-
type: Re.direct,
|
|
167
|
-
events: C
|
|
168
|
-
}, F);
|
|
169
|
-
}, ue({}, u, h)));
|
|
170
|
-
return W;
|
|
171
|
-
},
|
|
172
|
-
$dispose: M
|
|
173
|
-
}, T = Zn(d);
|
|
174
|
-
r._s.set(e, T);
|
|
175
|
-
const I = (r._a && r._a.runWithContext || ir)(() => r._e.run(() => (c = bt()).run(() => t({ action: m }))));
|
|
176
|
-
for (const b in I) {
|
|
177
|
-
const h = I[b];
|
|
178
|
-
if (Te(h) && !mr(h) || It(h))
|
|
179
|
-
l || (A && fr(h) && (Te(h) ? h.value = A[b] : _t(h, A[b])), r.state.value[e][b] = h);
|
|
180
|
-
else if (typeof h == "function") {
|
|
181
|
-
const W = m(h, b);
|
|
182
|
-
I[b] = W, i.actions[b] = h;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
return ue(T, I), ue(gn(T), I), Object.defineProperty(T, "$state", {
|
|
186
|
-
get: () => r.state.value[e],
|
|
187
|
-
set: (b) => {
|
|
188
|
-
y((h) => {
|
|
189
|
-
ue(h, b);
|
|
190
|
-
});
|
|
191
|
-
}
|
|
192
|
-
}), r._p.forEach((b) => {
|
|
193
|
-
ue(T, c.run(() => b({
|
|
194
|
-
store: T,
|
|
195
|
-
app: r._a,
|
|
196
|
-
pinia: r,
|
|
197
|
-
options: i
|
|
198
|
-
})));
|
|
199
|
-
}), A && l && n.hydrate && n.hydrate(T.$state, A), _ = !0, O = !0, T;
|
|
200
|
-
}
|
|
201
|
-
// @__NO_SIDE_EFFECTS__
|
|
202
|
-
function Ta(e, t, n) {
|
|
203
|
-
let r, s;
|
|
204
|
-
const l = typeof t == "function";
|
|
205
|
-
typeof e == "string" ? (r = e, s = l ? n : t) : (s = e, r = e.id);
|
|
206
|
-
function c(i, u) {
|
|
207
|
-
const _ = qn();
|
|
208
|
-
return i = // in test mode, ignore the argument provided as we can always retrieve a
|
|
209
|
-
// pinia instance with getActivePinia()
|
|
210
|
-
i || (_ ? Nn(Tn, null) : null), i && Ye(i), i = hn, i._s.has(r) || (l ? On(r, t, s, i) : _r(r, s, i)), i._s.get(r);
|
|
211
|
-
}
|
|
212
|
-
return c.$id = r, c;
|
|
213
|
-
}
|
|
214
|
-
function ba(e) {
|
|
215
|
-
{
|
|
216
|
-
e = gn(e);
|
|
217
|
-
const t = {};
|
|
218
|
-
for (const n in e) {
|
|
219
|
-
const r = e[n];
|
|
220
|
-
(Te(r) || It(r)) && (t[n] = // ---
|
|
221
|
-
Qn(e, n));
|
|
222
|
-
}
|
|
223
|
-
return t;
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
const dr = (e) => e.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (t, n) => (n ? "-" : "") + t.toLowerCase()), Er = (e) => e.replace(/-./g, (t) => t[1].toUpperCase());
|
|
227
|
-
function Oa(e, t) {
|
|
228
|
-
const n = typeof e == "function" ? e.options : e;
|
|
229
|
-
let r = Array.isArray(n.props) ? n.props : Object.keys(n.props || {});
|
|
230
|
-
const s = {};
|
|
231
|
-
r = r.map(dr);
|
|
232
|
-
const l = {};
|
|
233
|
-
for (const c of Object.values(t)) {
|
|
234
|
-
const u = c.name.split(".");
|
|
235
|
-
u.length > 1 && (l[u[0]] || (l[u[0]] = {}), l[u[0]][Er(u[1])] = c.value);
|
|
236
|
-
}
|
|
237
|
-
for (const c of r) {
|
|
238
|
-
let i = t.getNamedItem(c)?.value;
|
|
239
|
-
Object.prototype.hasOwnProperty.call(l, c) && (i = l[c]), s[c] = i;
|
|
240
|
-
}
|
|
241
|
-
return s;
|
|
242
|
-
}
|
|
243
|
-
/*!
|
|
244
|
-
* shared v9.13.1
|
|
245
|
-
* (c) 2024 kazuya kawaguchi
|
|
246
|
-
* Released under the MIT License.
|
|
247
|
-
*/
|
|
248
|
-
const xe = typeof window < "u", fe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), gr = (e, t, n) => Nr({ l: e, k: t, s: n }), Nr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), K = (e) => typeof e == "number" && isFinite(e), pr = (e) => Cn(e) === "[object Date]", je = (e) => Cn(e) === "[object RegExp]", Ke = (e) => U(e) && Object.keys(e).length === 0, J = Object.assign;
|
|
249
|
-
let Ut;
|
|
250
|
-
const Lr = () => Ut || (Ut = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
251
|
-
function wt(e) {
|
|
252
|
-
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
253
|
-
}
|
|
254
|
-
const hr = Object.prototype.hasOwnProperty;
|
|
255
|
-
function He(e, t) {
|
|
256
|
-
return hr.call(e, t);
|
|
257
|
-
}
|
|
258
|
-
const X = Array.isArray, j = (e) => typeof e == "function", S = (e) => typeof e == "string", x = (e) => typeof e == "boolean", w = (e) => e !== null && typeof e == "object", Tr = (e) => w(e) && j(e.then) && j(e.catch), In = Object.prototype.toString, Cn = (e) => In.call(e), U = (e) => {
|
|
259
|
-
if (!w(e))
|
|
260
|
-
return !1;
|
|
261
|
-
const t = Object.getPrototypeOf(e);
|
|
262
|
-
return t === null || t.constructor === Object;
|
|
263
|
-
}, br = (e) => e == null ? "" : X(e) || U(e) && e.toString === In ? JSON.stringify(e, null, 2) : String(e);
|
|
264
|
-
function Or(e, t = "") {
|
|
265
|
-
return e.reduce((n, r, s) => s === 0 ? n + r : n + t + r, "");
|
|
266
|
-
}
|
|
267
|
-
function Be(e) {
|
|
268
|
-
let t = e;
|
|
269
|
-
return () => ++t;
|
|
270
|
-
}
|
|
271
|
-
function Ir(e, t) {
|
|
272
|
-
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
273
|
-
}
|
|
274
|
-
const we = (e) => !w(e) || X(e);
|
|
275
|
-
function Ve(e, t) {
|
|
276
|
-
if (we(e) || we(t))
|
|
277
|
-
throw new Error("Invalid value");
|
|
278
|
-
const n = [{ src: e, des: t }];
|
|
279
|
-
for (; n.length; ) {
|
|
280
|
-
const { src: r, des: s } = n.pop();
|
|
281
|
-
Object.keys(r).forEach((l) => {
|
|
282
|
-
we(r[l]) || we(s[l]) ? s[l] = r[l] : n.push({ src: r[l], des: s[l] });
|
|
283
|
-
});
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
/*!
|
|
287
|
-
* message-compiler v9.13.1
|
|
288
|
-
* (c) 2024 kazuya kawaguchi
|
|
289
|
-
* Released under the MIT License.
|
|
290
|
-
*/
|
|
291
|
-
function Cr(e, t, n) {
|
|
292
|
-
return { line: e, column: t, offset: n };
|
|
293
|
-
}
|
|
294
|
-
function Xe(e, t, n) {
|
|
295
|
-
return { start: e, end: t };
|
|
296
|
-
}
|
|
297
|
-
const yr = /\{([0-9a-zA-Z]+)\}/g;
|
|
298
|
-
function yn(e, ...t) {
|
|
299
|
-
return t.length === 1 && Sr(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(yr, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
|
|
300
|
-
}
|
|
301
|
-
const Sn = Object.assign, Wt = (e) => typeof e == "string", Sr = (e) => e !== null && typeof e == "object";
|
|
302
|
-
function An(e, t = "") {
|
|
303
|
-
return e.reduce((n, r, s) => s === 0 ? n + r : n + t + r, "");
|
|
304
|
-
}
|
|
305
|
-
const St = {
|
|
306
|
-
USE_MODULO_SYNTAX: 1,
|
|
307
|
-
__EXTEND_POINT__: 2
|
|
308
|
-
}, Ar = {
|
|
309
|
-
[St.USE_MODULO_SYNTAX]: "Use modulo before '{{0}}'."
|
|
310
|
-
};
|
|
311
|
-
function Pr(e, t, ...n) {
|
|
312
|
-
const r = yn(Ar[e], ...n || []), s = { message: String(r), code: e };
|
|
313
|
-
return t && (s.location = t), s;
|
|
314
|
-
}
|
|
315
|
-
const D = {
|
|
316
|
-
// tokenizer error codes
|
|
317
|
-
EXPECTED_TOKEN: 1,
|
|
318
|
-
INVALID_TOKEN_IN_PLACEHOLDER: 2,
|
|
319
|
-
UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3,
|
|
320
|
-
UNKNOWN_ESCAPE_SEQUENCE: 4,
|
|
321
|
-
INVALID_UNICODE_ESCAPE_SEQUENCE: 5,
|
|
322
|
-
UNBALANCED_CLOSING_BRACE: 6,
|
|
323
|
-
UNTERMINATED_CLOSING_BRACE: 7,
|
|
324
|
-
EMPTY_PLACEHOLDER: 8,
|
|
325
|
-
NOT_ALLOW_NEST_PLACEHOLDER: 9,
|
|
326
|
-
INVALID_LINKED_FORMAT: 10,
|
|
327
|
-
// parser error codes
|
|
328
|
-
MUST_HAVE_MESSAGES_IN_PLURAL: 11,
|
|
329
|
-
UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
|
|
330
|
-
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
331
|
-
UNEXPECTED_LEXICAL_ANALYSIS: 14,
|
|
332
|
-
// generator error codes
|
|
333
|
-
UNHANDLED_CODEGEN_NODE_TYPE: 15,
|
|
334
|
-
// minifier error codes
|
|
335
|
-
UNHANDLED_MINIFIER_NODE_TYPE: 16,
|
|
336
|
-
// Special value for higher-order compilers to pick up the last code
|
|
337
|
-
// to avoid collision of error codes. This should always be kept as the last
|
|
338
|
-
// item.
|
|
339
|
-
__EXTEND_POINT__: 17
|
|
340
|
-
}, kr = {
|
|
341
|
-
// tokenizer error messages
|
|
342
|
-
[D.EXPECTED_TOKEN]: "Expected token: '{0}'",
|
|
343
|
-
[D.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
|
|
344
|
-
[D.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder",
|
|
345
|
-
[D.UNKNOWN_ESCAPE_SEQUENCE]: "Unknown escape sequence: \\{0}",
|
|
346
|
-
[D.INVALID_UNICODE_ESCAPE_SEQUENCE]: "Invalid unicode escape sequence: {0}",
|
|
347
|
-
[D.UNBALANCED_CLOSING_BRACE]: "Unbalanced closing brace",
|
|
348
|
-
[D.UNTERMINATED_CLOSING_BRACE]: "Unterminated closing brace",
|
|
349
|
-
[D.EMPTY_PLACEHOLDER]: "Empty placeholder",
|
|
350
|
-
[D.NOT_ALLOW_NEST_PLACEHOLDER]: "Not allowed nest placeholder",
|
|
351
|
-
[D.INVALID_LINKED_FORMAT]: "Invalid linked format",
|
|
352
|
-
// parser error messages
|
|
353
|
-
[D.MUST_HAVE_MESSAGES_IN_PLURAL]: "Plural must have messages",
|
|
354
|
-
[D.UNEXPECTED_EMPTY_LINKED_MODIFIER]: "Unexpected empty linked modifier",
|
|
355
|
-
[D.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key",
|
|
356
|
-
[D.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'",
|
|
357
|
-
// generator error messages
|
|
358
|
-
[D.UNHANDLED_CODEGEN_NODE_TYPE]: "unhandled codegen node type: '{0}'",
|
|
359
|
-
// minimizer error messages
|
|
360
|
-
[D.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
|
361
|
-
};
|
|
362
|
-
function Ie(e, t, n = {}) {
|
|
363
|
-
const { domain: r, messages: s, args: l } = n, c = yn((s || kr)[e] || "", ...l || []), i = new SyntaxError(String(c));
|
|
364
|
-
return i.code = e, t && (i.location = t), i.domain = r, i;
|
|
365
|
-
}
|
|
366
|
-
function Rr(e) {
|
|
367
|
-
throw e;
|
|
368
|
-
}
|
|
369
|
-
const ae = " ", Dr = "\r", Q = `
|
|
370
|
-
`, vr = "\u2028", Mr = "\u2029";
|
|
371
|
-
function Fr(e) {
|
|
372
|
-
const t = e;
|
|
373
|
-
let n = 0, r = 1, s = 1, l = 0;
|
|
374
|
-
const c = (I) => t[I] === Dr && t[I + 1] === Q, i = (I) => t[I] === Q, u = (I) => t[I] === Mr, _ = (I) => t[I] === vr, O = (I) => c(I) || i(I) || u(I) || _(I), L = () => n, p = () => r, C = () => s, A = () => l, R = (I) => c(I) || u(I) || _(I) ? Q : t[I], y = () => R(n), P = () => R(n + l);
|
|
375
|
-
function M() {
|
|
376
|
-
return l = 0, O(n) && (r++, s = 0), c(n) && n++, n++, s++, t[n];
|
|
377
|
-
}
|
|
378
|
-
function m() {
|
|
379
|
-
return c(n + l) && l++, l++, t[n + l];
|
|
380
|
-
}
|
|
381
|
-
function d() {
|
|
382
|
-
n = 0, r = 1, s = 1, l = 0;
|
|
383
|
-
}
|
|
384
|
-
function T(I = 0) {
|
|
385
|
-
l = I;
|
|
386
|
-
}
|
|
387
|
-
function g() {
|
|
388
|
-
const I = n + l;
|
|
389
|
-
for (; I !== n; )
|
|
390
|
-
M();
|
|
391
|
-
l = 0;
|
|
392
|
-
}
|
|
393
|
-
return {
|
|
394
|
-
index: L,
|
|
395
|
-
line: p,
|
|
396
|
-
column: C,
|
|
397
|
-
peekOffset: A,
|
|
398
|
-
charAt: R,
|
|
399
|
-
currentChar: y,
|
|
400
|
-
currentPeek: P,
|
|
401
|
-
next: M,
|
|
402
|
-
peek: m,
|
|
403
|
-
reset: d,
|
|
404
|
-
resetPeek: T,
|
|
405
|
-
skipToPeek: g
|
|
406
|
-
};
|
|
407
|
-
}
|
|
408
|
-
const ie = void 0, Ur = ".", Vt = "'", wr = "tokenizer";
|
|
409
|
-
function Wr(e, t = {}) {
|
|
410
|
-
const n = t.location !== !1, r = Fr(e), s = () => r.index(), l = () => Cr(r.line(), r.column(), r.index()), c = l(), i = s(), u = {
|
|
411
|
-
currentType: 14,
|
|
412
|
-
offset: i,
|
|
413
|
-
startLoc: c,
|
|
414
|
-
endLoc: c,
|
|
415
|
-
lastType: 14,
|
|
416
|
-
lastOffset: i,
|
|
417
|
-
lastStartLoc: c,
|
|
418
|
-
lastEndLoc: c,
|
|
419
|
-
braceNest: 0,
|
|
420
|
-
inLinked: !1,
|
|
421
|
-
text: ""
|
|
422
|
-
}, _ = () => u, { onError: O } = t;
|
|
423
|
-
function L(a, o, E, ...k) {
|
|
424
|
-
const $ = _();
|
|
425
|
-
if (o.column += E, o.offset += E, O) {
|
|
426
|
-
const v = n ? Xe($.startLoc, o) : null, f = Ie(a, v, {
|
|
427
|
-
domain: wr,
|
|
428
|
-
args: k
|
|
429
|
-
});
|
|
430
|
-
O(f);
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
function p(a, o, E) {
|
|
434
|
-
a.endLoc = l(), a.currentType = o;
|
|
435
|
-
const k = { type: o };
|
|
436
|
-
return n && (k.loc = Xe(a.startLoc, a.endLoc)), E != null && (k.value = E), k;
|
|
437
|
-
}
|
|
438
|
-
const C = (a) => p(
|
|
439
|
-
a,
|
|
440
|
-
14
|
|
441
|
-
/* TokenTypes.EOF */
|
|
442
|
-
);
|
|
443
|
-
function A(a, o) {
|
|
444
|
-
return a.currentChar() === o ? (a.next(), o) : (L(D.EXPECTED_TOKEN, l(), 0, o), "");
|
|
445
|
-
}
|
|
446
|
-
function R(a) {
|
|
447
|
-
let o = "";
|
|
448
|
-
for (; a.currentPeek() === ae || a.currentPeek() === Q; )
|
|
449
|
-
o += a.currentPeek(), a.peek();
|
|
450
|
-
return o;
|
|
451
|
-
}
|
|
452
|
-
function y(a) {
|
|
453
|
-
const o = R(a);
|
|
454
|
-
return a.skipToPeek(), o;
|
|
455
|
-
}
|
|
456
|
-
function P(a) {
|
|
457
|
-
if (a === ie)
|
|
458
|
-
return !1;
|
|
459
|
-
const o = a.charCodeAt(0);
|
|
460
|
-
return o >= 97 && o <= 122 || // a-z
|
|
461
|
-
o >= 65 && o <= 90 || // A-Z
|
|
462
|
-
o === 95;
|
|
463
|
-
}
|
|
464
|
-
function M(a) {
|
|
465
|
-
if (a === ie)
|
|
466
|
-
return !1;
|
|
467
|
-
const o = a.charCodeAt(0);
|
|
468
|
-
return o >= 48 && o <= 57;
|
|
469
|
-
}
|
|
470
|
-
function m(a, o) {
|
|
471
|
-
const { currentType: E } = o;
|
|
472
|
-
if (E !== 2)
|
|
473
|
-
return !1;
|
|
474
|
-
R(a);
|
|
475
|
-
const k = P(a.currentPeek());
|
|
476
|
-
return a.resetPeek(), k;
|
|
477
|
-
}
|
|
478
|
-
function d(a, o) {
|
|
479
|
-
const { currentType: E } = o;
|
|
480
|
-
if (E !== 2)
|
|
481
|
-
return !1;
|
|
482
|
-
R(a);
|
|
483
|
-
const k = a.currentPeek() === "-" ? a.peek() : a.currentPeek(), $ = M(k);
|
|
484
|
-
return a.resetPeek(), $;
|
|
485
|
-
}
|
|
486
|
-
function T(a, o) {
|
|
487
|
-
const { currentType: E } = o;
|
|
488
|
-
if (E !== 2)
|
|
489
|
-
return !1;
|
|
490
|
-
R(a);
|
|
491
|
-
const k = a.currentPeek() === Vt;
|
|
492
|
-
return a.resetPeek(), k;
|
|
493
|
-
}
|
|
494
|
-
function g(a, o) {
|
|
495
|
-
const { currentType: E } = o;
|
|
496
|
-
if (E !== 8)
|
|
497
|
-
return !1;
|
|
498
|
-
R(a);
|
|
499
|
-
const k = a.currentPeek() === ".";
|
|
500
|
-
return a.resetPeek(), k;
|
|
501
|
-
}
|
|
502
|
-
function I(a, o) {
|
|
503
|
-
const { currentType: E } = o;
|
|
504
|
-
if (E !== 9)
|
|
505
|
-
return !1;
|
|
506
|
-
R(a);
|
|
507
|
-
const k = P(a.currentPeek());
|
|
508
|
-
return a.resetPeek(), k;
|
|
509
|
-
}
|
|
510
|
-
function b(a, o) {
|
|
511
|
-
const { currentType: E } = o;
|
|
512
|
-
if (!(E === 8 || E === 12))
|
|
513
|
-
return !1;
|
|
514
|
-
R(a);
|
|
515
|
-
const k = a.currentPeek() === ":";
|
|
516
|
-
return a.resetPeek(), k;
|
|
517
|
-
}
|
|
518
|
-
function h(a, o) {
|
|
519
|
-
const { currentType: E } = o;
|
|
520
|
-
if (E !== 10)
|
|
521
|
-
return !1;
|
|
522
|
-
const k = () => {
|
|
523
|
-
const v = a.currentPeek();
|
|
524
|
-
return v === "{" ? P(a.peek()) : v === "@" || v === "%" || v === "|" || v === ":" || v === "." || v === ae || !v ? !1 : v === Q ? (a.peek(), k()) : F(a, !1);
|
|
525
|
-
}, $ = k();
|
|
526
|
-
return a.resetPeek(), $;
|
|
527
|
-
}
|
|
528
|
-
function W(a) {
|
|
529
|
-
R(a);
|
|
530
|
-
const o = a.currentPeek() === "|";
|
|
531
|
-
return a.resetPeek(), o;
|
|
532
|
-
}
|
|
533
|
-
function G(a) {
|
|
534
|
-
const o = R(a), E = a.currentPeek() === "%" && a.peek() === "{";
|
|
535
|
-
return a.resetPeek(), {
|
|
536
|
-
isModulo: E,
|
|
537
|
-
hasSpace: o.length > 0
|
|
538
|
-
};
|
|
539
|
-
}
|
|
540
|
-
function F(a, o = !0) {
|
|
541
|
-
const E = ($ = !1, v = "", f = !1) => {
|
|
542
|
-
const N = a.currentPeek();
|
|
543
|
-
return N === "{" ? v === "%" ? !1 : $ : N === "@" || !N ? v === "%" ? !0 : $ : N === "%" ? (a.peek(), E($, "%", !0)) : N === "|" ? v === "%" || f ? !0 : !(v === ae || v === Q) : N === ae ? (a.peek(), E(!0, ae, f)) : N === Q ? (a.peek(), E(!0, Q, f)) : !0;
|
|
544
|
-
}, k = E();
|
|
545
|
-
return o && a.resetPeek(), k;
|
|
546
|
-
}
|
|
547
|
-
function Y(a, o) {
|
|
548
|
-
const E = a.currentChar();
|
|
549
|
-
return E === ie ? ie : o(E) ? (a.next(), E) : null;
|
|
550
|
-
}
|
|
551
|
-
function Ce(a) {
|
|
552
|
-
const o = a.charCodeAt(0);
|
|
553
|
-
return o >= 97 && o <= 122 || // a-z
|
|
554
|
-
o >= 65 && o <= 90 || // A-Z
|
|
555
|
-
o >= 48 && o <= 57 || // 0-9
|
|
556
|
-
o === 95 || // _
|
|
557
|
-
o === 36;
|
|
558
|
-
}
|
|
559
|
-
function ye(a) {
|
|
560
|
-
return Y(a, Ce);
|
|
561
|
-
}
|
|
562
|
-
function re(a) {
|
|
563
|
-
const o = a.charCodeAt(0);
|
|
564
|
-
return o >= 97 && o <= 122 || // a-z
|
|
565
|
-
o >= 65 && o <= 90 || // A-Z
|
|
566
|
-
o >= 48 && o <= 57 || // 0-9
|
|
567
|
-
o === 95 || // _
|
|
568
|
-
o === 36 || // $
|
|
569
|
-
o === 45;
|
|
570
|
-
}
|
|
571
|
-
function B(a) {
|
|
572
|
-
return Y(a, re);
|
|
573
|
-
}
|
|
574
|
-
function Qe(a) {
|
|
575
|
-
const o = a.charCodeAt(0);
|
|
576
|
-
return o >= 48 && o <= 57;
|
|
577
|
-
}
|
|
578
|
-
function qe(a) {
|
|
579
|
-
return Y(a, Qe);
|
|
580
|
-
}
|
|
581
|
-
function Ze(a) {
|
|
582
|
-
const o = a.charCodeAt(0);
|
|
583
|
-
return o >= 48 && o <= 57 || // 0-9
|
|
584
|
-
o >= 65 && o <= 70 || // A-F
|
|
585
|
-
o >= 97 && o <= 102;
|
|
586
|
-
}
|
|
587
|
-
function se(a) {
|
|
588
|
-
return Y(a, Ze);
|
|
589
|
-
}
|
|
590
|
-
function Se(a) {
|
|
591
|
-
let o = "", E = "";
|
|
592
|
-
for (; o = qe(a); )
|
|
593
|
-
E += o;
|
|
594
|
-
return E;
|
|
595
|
-
}
|
|
596
|
-
function ze(a) {
|
|
597
|
-
y(a);
|
|
598
|
-
const o = a.currentChar();
|
|
599
|
-
return o !== "%" && L(D.EXPECTED_TOKEN, l(), 0, o), a.next(), "%";
|
|
600
|
-
}
|
|
601
|
-
function Me(a) {
|
|
602
|
-
let o = "";
|
|
603
|
-
for (; ; ) {
|
|
604
|
-
const E = a.currentChar();
|
|
605
|
-
if (E === "{" || E === "}" || E === "@" || E === "|" || !E)
|
|
606
|
-
break;
|
|
607
|
-
if (E === "%")
|
|
608
|
-
if (F(a))
|
|
609
|
-
o += E, a.next();
|
|
610
|
-
else
|
|
611
|
-
break;
|
|
612
|
-
else if (E === ae || E === Q)
|
|
613
|
-
if (F(a))
|
|
614
|
-
o += E, a.next();
|
|
615
|
-
else {
|
|
616
|
-
if (W(a))
|
|
617
|
-
break;
|
|
618
|
-
o += E, a.next();
|
|
619
|
-
}
|
|
620
|
-
else
|
|
621
|
-
o += E, a.next();
|
|
622
|
-
}
|
|
623
|
-
return o;
|
|
624
|
-
}
|
|
625
|
-
function et(a) {
|
|
626
|
-
y(a);
|
|
627
|
-
let o = "", E = "";
|
|
628
|
-
for (; o = B(a); )
|
|
629
|
-
E += o;
|
|
630
|
-
return a.currentChar() === ie && L(D.UNTERMINATED_CLOSING_BRACE, l(), 0), E;
|
|
631
|
-
}
|
|
632
|
-
function tt(a) {
|
|
633
|
-
y(a);
|
|
634
|
-
let o = "";
|
|
635
|
-
return a.currentChar() === "-" ? (a.next(), o += `-${Se(a)}`) : o += Se(a), a.currentChar() === ie && L(D.UNTERMINATED_CLOSING_BRACE, l(), 0), o;
|
|
636
|
-
}
|
|
637
|
-
function vt(a) {
|
|
638
|
-
return a !== Vt && a !== Q;
|
|
639
|
-
}
|
|
640
|
-
function nt(a) {
|
|
641
|
-
y(a), A(a, "'");
|
|
642
|
-
let o = "", E = "";
|
|
643
|
-
for (; o = Y(a, vt); )
|
|
644
|
-
o === "\\" ? E += rt(a) : E += o;
|
|
645
|
-
const k = a.currentChar();
|
|
646
|
-
return k === Q || k === ie ? (L(D.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, l(), 0), k === Q && (a.next(), A(a, "'")), E) : (A(a, "'"), E);
|
|
647
|
-
}
|
|
648
|
-
function rt(a) {
|
|
649
|
-
const o = a.currentChar();
|
|
650
|
-
switch (o) {
|
|
651
|
-
case "\\":
|
|
652
|
-
case "'":
|
|
653
|
-
return a.next(), `\\${o}`;
|
|
654
|
-
case "u":
|
|
655
|
-
return Fe(a, o, 4);
|
|
656
|
-
case "U":
|
|
657
|
-
return Fe(a, o, 6);
|
|
658
|
-
default:
|
|
659
|
-
return L(D.UNKNOWN_ESCAPE_SEQUENCE, l(), 0, o), "";
|
|
660
|
-
}
|
|
661
|
-
}
|
|
662
|
-
function Fe(a, o, E) {
|
|
663
|
-
A(a, o);
|
|
664
|
-
let k = "";
|
|
665
|
-
for (let $ = 0; $ < E; $++) {
|
|
666
|
-
const v = se(a);
|
|
667
|
-
if (!v) {
|
|
668
|
-
L(D.INVALID_UNICODE_ESCAPE_SEQUENCE, l(), 0, `\\${o}${k}${a.currentChar()}`);
|
|
669
|
-
break;
|
|
670
|
-
}
|
|
671
|
-
k += v;
|
|
672
|
-
}
|
|
673
|
-
return `\\${o}${k}`;
|
|
674
|
-
}
|
|
675
|
-
function st(a) {
|
|
676
|
-
return a !== "{" && a !== "}" && a !== ae && a !== Q;
|
|
677
|
-
}
|
|
678
|
-
function at(a) {
|
|
679
|
-
y(a);
|
|
680
|
-
let o = "", E = "";
|
|
681
|
-
for (; o = Y(a, st); )
|
|
682
|
-
E += o;
|
|
683
|
-
return E;
|
|
684
|
-
}
|
|
685
|
-
function lt(a) {
|
|
686
|
-
let o = "", E = "";
|
|
687
|
-
for (; o = ye(a); )
|
|
688
|
-
E += o;
|
|
689
|
-
return E;
|
|
690
|
-
}
|
|
691
|
-
function ot(a) {
|
|
692
|
-
const o = (E) => {
|
|
693
|
-
const k = a.currentChar();
|
|
694
|
-
return k === "{" || k === "%" || k === "@" || k === "|" || k === "(" || k === ")" || !k || k === ae ? E : (E += k, a.next(), o(E));
|
|
695
|
-
};
|
|
696
|
-
return o("");
|
|
697
|
-
}
|
|
698
|
-
function Ae(a) {
|
|
699
|
-
y(a);
|
|
700
|
-
const o = A(
|
|
701
|
-
a,
|
|
702
|
-
"|"
|
|
703
|
-
/* TokenChars.Pipe */
|
|
704
|
-
);
|
|
705
|
-
return y(a), o;
|
|
706
|
-
}
|
|
707
|
-
function Ee(a, o) {
|
|
708
|
-
let E = null;
|
|
709
|
-
switch (a.currentChar()) {
|
|
710
|
-
case "{":
|
|
711
|
-
return o.braceNest >= 1 && L(D.NOT_ALLOW_NEST_PLACEHOLDER, l(), 0), a.next(), E = p(
|
|
712
|
-
o,
|
|
713
|
-
2,
|
|
714
|
-
"{"
|
|
715
|
-
/* TokenChars.BraceLeft */
|
|
716
|
-
), y(a), o.braceNest++, E;
|
|
717
|
-
case "}":
|
|
718
|
-
return o.braceNest > 0 && o.currentType === 2 && L(D.EMPTY_PLACEHOLDER, l(), 0), a.next(), E = p(
|
|
719
|
-
o,
|
|
720
|
-
3,
|
|
721
|
-
"}"
|
|
722
|
-
/* TokenChars.BraceRight */
|
|
723
|
-
), o.braceNest--, o.braceNest > 0 && y(a), o.inLinked && o.braceNest === 0 && (o.inLinked = !1), E;
|
|
724
|
-
case "@":
|
|
725
|
-
return o.braceNest > 0 && L(D.UNTERMINATED_CLOSING_BRACE, l(), 0), E = ge(a, o) || C(o), o.braceNest = 0, E;
|
|
726
|
-
default: {
|
|
727
|
-
let $ = !0, v = !0, f = !0;
|
|
728
|
-
if (W(a))
|
|
729
|
-
return o.braceNest > 0 && L(D.UNTERMINATED_CLOSING_BRACE, l(), 0), E = p(o, 1, Ae(a)), o.braceNest = 0, o.inLinked = !1, E;
|
|
730
|
-
if (o.braceNest > 0 && (o.currentType === 5 || o.currentType === 6 || o.currentType === 7))
|
|
731
|
-
return L(D.UNTERMINATED_CLOSING_BRACE, l(), 0), o.braceNest = 0, Pe(a, o);
|
|
732
|
-
if ($ = m(a, o))
|
|
733
|
-
return E = p(o, 5, et(a)), y(a), E;
|
|
734
|
-
if (v = d(a, o))
|
|
735
|
-
return E = p(o, 6, tt(a)), y(a), E;
|
|
736
|
-
if (f = T(a, o))
|
|
737
|
-
return E = p(o, 7, nt(a)), y(a), E;
|
|
738
|
-
if (!$ && !v && !f)
|
|
739
|
-
return E = p(o, 13, at(a)), L(D.INVALID_TOKEN_IN_PLACEHOLDER, l(), 0, E.value), y(a), E;
|
|
740
|
-
break;
|
|
741
|
-
}
|
|
742
|
-
}
|
|
743
|
-
return E;
|
|
744
|
-
}
|
|
745
|
-
function ge(a, o) {
|
|
746
|
-
const { currentType: E } = o;
|
|
747
|
-
let k = null;
|
|
748
|
-
const $ = a.currentChar();
|
|
749
|
-
switch ((E === 8 || E === 9 || E === 12 || E === 10) && ($ === Q || $ === ae) && L(D.INVALID_LINKED_FORMAT, l(), 0), $) {
|
|
750
|
-
case "@":
|
|
751
|
-
return a.next(), k = p(
|
|
752
|
-
o,
|
|
753
|
-
8,
|
|
754
|
-
"@"
|
|
755
|
-
/* TokenChars.LinkedAlias */
|
|
756
|
-
), o.inLinked = !0, k;
|
|
757
|
-
case ".":
|
|
758
|
-
return y(a), a.next(), p(
|
|
759
|
-
o,
|
|
760
|
-
9,
|
|
761
|
-
"."
|
|
762
|
-
/* TokenChars.LinkedDot */
|
|
763
|
-
);
|
|
764
|
-
case ":":
|
|
765
|
-
return y(a), a.next(), p(
|
|
766
|
-
o,
|
|
767
|
-
10,
|
|
768
|
-
":"
|
|
769
|
-
/* TokenChars.LinkedDelimiter */
|
|
770
|
-
);
|
|
771
|
-
default:
|
|
772
|
-
return W(a) ? (k = p(o, 1, Ae(a)), o.braceNest = 0, o.inLinked = !1, k) : g(a, o) || b(a, o) ? (y(a), ge(a, o)) : I(a, o) ? (y(a), p(o, 12, lt(a))) : h(a, o) ? (y(a), $ === "{" ? Ee(a, o) || k : p(o, 11, ot(a))) : (E === 8 && L(D.INVALID_LINKED_FORMAT, l(), 0), o.braceNest = 0, o.inLinked = !1, Pe(a, o));
|
|
773
|
-
}
|
|
774
|
-
}
|
|
775
|
-
function Pe(a, o) {
|
|
776
|
-
let E = {
|
|
777
|
-
type: 14
|
|
778
|
-
/* TokenTypes.EOF */
|
|
779
|
-
};
|
|
780
|
-
if (o.braceNest > 0)
|
|
781
|
-
return Ee(a, o) || C(o);
|
|
782
|
-
if (o.inLinked)
|
|
783
|
-
return ge(a, o) || C(o);
|
|
784
|
-
switch (a.currentChar()) {
|
|
785
|
-
case "{":
|
|
786
|
-
return Ee(a, o) || C(o);
|
|
787
|
-
case "}":
|
|
788
|
-
return L(D.UNBALANCED_CLOSING_BRACE, l(), 0), a.next(), p(
|
|
789
|
-
o,
|
|
790
|
-
3,
|
|
791
|
-
"}"
|
|
792
|
-
/* TokenChars.BraceRight */
|
|
793
|
-
);
|
|
794
|
-
case "@":
|
|
795
|
-
return ge(a, o) || C(o);
|
|
796
|
-
default: {
|
|
797
|
-
if (W(a))
|
|
798
|
-
return E = p(o, 1, Ae(a)), o.braceNest = 0, o.inLinked = !1, E;
|
|
799
|
-
const { isModulo: $, hasSpace: v } = G(a);
|
|
800
|
-
if ($)
|
|
801
|
-
return v ? p(o, 0, Me(a)) : p(o, 4, ze(a));
|
|
802
|
-
if (F(a))
|
|
803
|
-
return p(o, 0, Me(a));
|
|
804
|
-
break;
|
|
805
|
-
}
|
|
806
|
-
}
|
|
807
|
-
return E;
|
|
808
|
-
}
|
|
809
|
-
function ct() {
|
|
810
|
-
const { currentType: a, offset: o, startLoc: E, endLoc: k } = u;
|
|
811
|
-
return u.lastType = a, u.lastOffset = o, u.lastStartLoc = E, u.lastEndLoc = k, u.offset = s(), u.startLoc = l(), r.currentChar() === ie ? p(
|
|
812
|
-
u,
|
|
813
|
-
14
|
|
814
|
-
/* TokenTypes.EOF */
|
|
815
|
-
) : Pe(r, u);
|
|
816
|
-
}
|
|
817
|
-
return {
|
|
818
|
-
nextToken: ct,
|
|
819
|
-
currentOffset: s,
|
|
820
|
-
currentPosition: l,
|
|
821
|
-
context: _
|
|
822
|
-
};
|
|
823
|
-
}
|
|
824
|
-
const Vr = "parser", $r = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
825
|
-
function xr(e, t, n) {
|
|
826
|
-
switch (e) {
|
|
827
|
-
case "\\\\":
|
|
828
|
-
return "\\";
|
|
829
|
-
case "\\'":
|
|
830
|
-
return "'";
|
|
831
|
-
default: {
|
|
832
|
-
const r = parseInt(t || n, 16);
|
|
833
|
-
return r <= 55295 || r >= 57344 ? String.fromCodePoint(r) : "�";
|
|
834
|
-
}
|
|
835
|
-
}
|
|
836
|
-
}
|
|
837
|
-
function jr(e = {}) {
|
|
838
|
-
const t = e.location !== !1, { onError: n, onWarn: r } = e;
|
|
839
|
-
function s(m, d, T, g, ...I) {
|
|
840
|
-
const b = m.currentPosition();
|
|
841
|
-
if (b.offset += g, b.column += g, n) {
|
|
842
|
-
const h = t ? Xe(T, b) : null, W = Ie(d, h, {
|
|
843
|
-
domain: Vr,
|
|
844
|
-
args: I
|
|
845
|
-
});
|
|
846
|
-
n(W);
|
|
847
|
-
}
|
|
848
|
-
}
|
|
849
|
-
function l(m, d, T, g, ...I) {
|
|
850
|
-
const b = m.currentPosition();
|
|
851
|
-
if (b.offset += g, b.column += g, r) {
|
|
852
|
-
const h = t ? Xe(T, b) : null;
|
|
853
|
-
r(Pr(d, h, I));
|
|
854
|
-
}
|
|
855
|
-
}
|
|
856
|
-
function c(m, d, T) {
|
|
857
|
-
const g = { type: m };
|
|
858
|
-
return t && (g.start = d, g.end = d, g.loc = { start: T, end: T }), g;
|
|
859
|
-
}
|
|
860
|
-
function i(m, d, T, g) {
|
|
861
|
-
t && (m.end = d, m.loc && (m.loc.end = T));
|
|
862
|
-
}
|
|
863
|
-
function u(m, d) {
|
|
864
|
-
const T = m.context(), g = c(3, T.offset, T.startLoc);
|
|
865
|
-
return g.value = d, i(g, m.currentOffset(), m.currentPosition()), g;
|
|
866
|
-
}
|
|
867
|
-
function _(m, d) {
|
|
868
|
-
const T = m.context(), { lastOffset: g, lastStartLoc: I } = T, b = c(5, g, I);
|
|
869
|
-
return b.index = parseInt(d, 10), m.nextToken(), i(b, m.currentOffset(), m.currentPosition()), b;
|
|
870
|
-
}
|
|
871
|
-
function O(m, d, T) {
|
|
872
|
-
const g = m.context(), { lastOffset: I, lastStartLoc: b } = g, h = c(4, I, b);
|
|
873
|
-
return h.key = d, T === !0 && (h.modulo = !0), m.nextToken(), i(h, m.currentOffset(), m.currentPosition()), h;
|
|
874
|
-
}
|
|
875
|
-
function L(m, d) {
|
|
876
|
-
const T = m.context(), { lastOffset: g, lastStartLoc: I } = T, b = c(9, g, I);
|
|
877
|
-
return b.value = d.replace($r, xr), m.nextToken(), i(b, m.currentOffset(), m.currentPosition()), b;
|
|
878
|
-
}
|
|
879
|
-
function p(m) {
|
|
880
|
-
const d = m.nextToken(), T = m.context(), { lastOffset: g, lastStartLoc: I } = T, b = c(8, g, I);
|
|
881
|
-
return d.type !== 12 ? (s(m, D.UNEXPECTED_EMPTY_LINKED_MODIFIER, T.lastStartLoc, 0), b.value = "", i(b, g, I), {
|
|
882
|
-
nextConsumeToken: d,
|
|
883
|
-
node: b
|
|
884
|
-
}) : (d.value == null && s(m, D.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, ee(d)), b.value = d.value || "", i(b, m.currentOffset(), m.currentPosition()), {
|
|
885
|
-
node: b
|
|
886
|
-
});
|
|
887
|
-
}
|
|
888
|
-
function C(m, d) {
|
|
889
|
-
const T = m.context(), g = c(7, T.offset, T.startLoc);
|
|
890
|
-
return g.value = d, i(g, m.currentOffset(), m.currentPosition()), g;
|
|
891
|
-
}
|
|
892
|
-
function A(m) {
|
|
893
|
-
const d = m.context(), T = c(6, d.offset, d.startLoc);
|
|
894
|
-
let g = m.nextToken();
|
|
895
|
-
if (g.type === 9) {
|
|
896
|
-
const I = p(m);
|
|
897
|
-
T.modifier = I.node, g = I.nextConsumeToken || m.nextToken();
|
|
898
|
-
}
|
|
899
|
-
switch (g.type !== 10 && s(m, D.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ee(g)), g = m.nextToken(), g.type === 2 && (g = m.nextToken()), g.type) {
|
|
900
|
-
case 11:
|
|
901
|
-
g.value == null && s(m, D.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ee(g)), T.key = C(m, g.value || "");
|
|
902
|
-
break;
|
|
903
|
-
case 5:
|
|
904
|
-
g.value == null && s(m, D.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ee(g)), T.key = O(m, g.value || "");
|
|
905
|
-
break;
|
|
906
|
-
case 6:
|
|
907
|
-
g.value == null && s(m, D.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ee(g)), T.key = _(m, g.value || "");
|
|
908
|
-
break;
|
|
909
|
-
case 7:
|
|
910
|
-
g.value == null && s(m, D.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ee(g)), T.key = L(m, g.value || "");
|
|
911
|
-
break;
|
|
912
|
-
default: {
|
|
913
|
-
s(m, D.UNEXPECTED_EMPTY_LINKED_KEY, d.lastStartLoc, 0);
|
|
914
|
-
const I = m.context(), b = c(7, I.offset, I.startLoc);
|
|
915
|
-
return b.value = "", i(b, I.offset, I.startLoc), T.key = b, i(T, I.offset, I.startLoc), {
|
|
916
|
-
nextConsumeToken: g,
|
|
917
|
-
node: T
|
|
918
|
-
};
|
|
919
|
-
}
|
|
920
|
-
}
|
|
921
|
-
return i(T, m.currentOffset(), m.currentPosition()), {
|
|
922
|
-
node: T
|
|
923
|
-
};
|
|
924
|
-
}
|
|
925
|
-
function R(m) {
|
|
926
|
-
const d = m.context(), T = d.currentType === 1 ? m.currentOffset() : d.offset, g = d.currentType === 1 ? d.endLoc : d.startLoc, I = c(2, T, g);
|
|
927
|
-
I.items = [];
|
|
928
|
-
let b = null, h = null;
|
|
929
|
-
do {
|
|
930
|
-
const F = b || m.nextToken();
|
|
931
|
-
switch (b = null, F.type) {
|
|
932
|
-
case 0:
|
|
933
|
-
F.value == null && s(m, D.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ee(F)), I.items.push(u(m, F.value || ""));
|
|
934
|
-
break;
|
|
935
|
-
case 6:
|
|
936
|
-
F.value == null && s(m, D.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ee(F)), I.items.push(_(m, F.value || ""));
|
|
937
|
-
break;
|
|
938
|
-
case 4:
|
|
939
|
-
h = !0;
|
|
940
|
-
break;
|
|
941
|
-
case 5:
|
|
942
|
-
F.value == null && s(m, D.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ee(F)), I.items.push(O(m, F.value || "", !!h)), h && (l(m, St.USE_MODULO_SYNTAX, d.lastStartLoc, 0, ee(F)), h = null);
|
|
943
|
-
break;
|
|
944
|
-
case 7:
|
|
945
|
-
F.value == null && s(m, D.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ee(F)), I.items.push(L(m, F.value || ""));
|
|
946
|
-
break;
|
|
947
|
-
case 8: {
|
|
948
|
-
const Y = A(m);
|
|
949
|
-
I.items.push(Y.node), b = Y.nextConsumeToken || null;
|
|
950
|
-
break;
|
|
951
|
-
}
|
|
952
|
-
}
|
|
953
|
-
} while (d.currentType !== 14 && d.currentType !== 1);
|
|
954
|
-
const W = d.currentType === 1 ? d.lastOffset : m.currentOffset(), G = d.currentType === 1 ? d.lastEndLoc : m.currentPosition();
|
|
955
|
-
return i(I, W, G), I;
|
|
956
|
-
}
|
|
957
|
-
function y(m, d, T, g) {
|
|
958
|
-
const I = m.context();
|
|
959
|
-
let b = g.items.length === 0;
|
|
960
|
-
const h = c(1, d, T);
|
|
961
|
-
h.cases = [], h.cases.push(g);
|
|
962
|
-
do {
|
|
963
|
-
const W = R(m);
|
|
964
|
-
b || (b = W.items.length === 0), h.cases.push(W);
|
|
965
|
-
} while (I.currentType !== 14);
|
|
966
|
-
return b && s(m, D.MUST_HAVE_MESSAGES_IN_PLURAL, T, 0), i(h, m.currentOffset(), m.currentPosition()), h;
|
|
967
|
-
}
|
|
968
|
-
function P(m) {
|
|
969
|
-
const d = m.context(), { offset: T, startLoc: g } = d, I = R(m);
|
|
970
|
-
return d.currentType === 14 ? I : y(m, T, g, I);
|
|
971
|
-
}
|
|
972
|
-
function M(m) {
|
|
973
|
-
const d = Wr(m, Sn({}, e)), T = d.context(), g = c(0, T.offset, T.startLoc);
|
|
974
|
-
return t && g.loc && (g.loc.source = m), g.body = P(d), e.onCacheKey && (g.cacheKey = e.onCacheKey(m)), T.currentType !== 14 && s(d, D.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, m[T.offset] || ""), i(g, d.currentOffset(), d.currentPosition()), g;
|
|
975
|
-
}
|
|
976
|
-
return { parse: M };
|
|
977
|
-
}
|
|
978
|
-
function ee(e) {
|
|
979
|
-
if (e.type === 14)
|
|
980
|
-
return "EOF";
|
|
981
|
-
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
982
|
-
return t.length > 10 ? t.slice(0, 9) + "…" : t;
|
|
983
|
-
}
|
|
984
|
-
function Hr(e, t = {}) {
|
|
985
|
-
const n = {
|
|
986
|
-
ast: e,
|
|
987
|
-
helpers: /* @__PURE__ */ new Set()
|
|
988
|
-
};
|
|
989
|
-
return { context: () => n, helper: (l) => (n.helpers.add(l), l) };
|
|
990
|
-
}
|
|
991
|
-
function $t(e, t) {
|
|
992
|
-
for (let n = 0; n < e.length; n++)
|
|
993
|
-
At(e[n], t);
|
|
994
|
-
}
|
|
995
|
-
function At(e, t) {
|
|
996
|
-
switch (e.type) {
|
|
997
|
-
case 1:
|
|
998
|
-
$t(e.cases, t), t.helper(
|
|
999
|
-
"plural"
|
|
1000
|
-
/* HelperNameMap.PLURAL */
|
|
1001
|
-
);
|
|
1002
|
-
break;
|
|
1003
|
-
case 2:
|
|
1004
|
-
$t(e.items, t);
|
|
1005
|
-
break;
|
|
1006
|
-
case 6: {
|
|
1007
|
-
At(e.key, t), t.helper(
|
|
1008
|
-
"linked"
|
|
1009
|
-
/* HelperNameMap.LINKED */
|
|
1010
|
-
), t.helper(
|
|
1011
|
-
"type"
|
|
1012
|
-
/* HelperNameMap.TYPE */
|
|
1013
|
-
);
|
|
1014
|
-
break;
|
|
1015
|
-
}
|
|
1016
|
-
case 5:
|
|
1017
|
-
t.helper(
|
|
1018
|
-
"interpolate"
|
|
1019
|
-
/* HelperNameMap.INTERPOLATE */
|
|
1020
|
-
), t.helper(
|
|
1021
|
-
"list"
|
|
1022
|
-
/* HelperNameMap.LIST */
|
|
1023
|
-
);
|
|
1024
|
-
break;
|
|
1025
|
-
case 4:
|
|
1026
|
-
t.helper(
|
|
1027
|
-
"interpolate"
|
|
1028
|
-
/* HelperNameMap.INTERPOLATE */
|
|
1029
|
-
), t.helper(
|
|
1030
|
-
"named"
|
|
1031
|
-
/* HelperNameMap.NAMED */
|
|
1032
|
-
);
|
|
1033
|
-
break;
|
|
1034
|
-
}
|
|
1035
|
-
}
|
|
1036
|
-
function Xr(e, t = {}) {
|
|
1037
|
-
const n = Hr(e);
|
|
1038
|
-
n.helper(
|
|
1039
|
-
"normalize"
|
|
1040
|
-
/* HelperNameMap.NORMALIZE */
|
|
1041
|
-
), e.body && At(e.body, n);
|
|
1042
|
-
const r = n.context();
|
|
1043
|
-
e.helpers = Array.from(r.helpers);
|
|
1044
|
-
}
|
|
1045
|
-
function Gr(e) {
|
|
1046
|
-
const t = e.body;
|
|
1047
|
-
return t.type === 2 ? xt(t) : t.cases.forEach((n) => xt(n)), e;
|
|
1048
|
-
}
|
|
1049
|
-
function xt(e) {
|
|
1050
|
-
if (e.items.length === 1) {
|
|
1051
|
-
const t = e.items[0];
|
|
1052
|
-
(t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
|
|
1053
|
-
} else {
|
|
1054
|
-
const t = [];
|
|
1055
|
-
for (let n = 0; n < e.items.length; n++) {
|
|
1056
|
-
const r = e.items[n];
|
|
1057
|
-
if (!(r.type === 3 || r.type === 9) || r.value == null)
|
|
1058
|
-
break;
|
|
1059
|
-
t.push(r.value);
|
|
1060
|
-
}
|
|
1061
|
-
if (t.length === e.items.length) {
|
|
1062
|
-
e.static = An(t);
|
|
1063
|
-
for (let n = 0; n < e.items.length; n++) {
|
|
1064
|
-
const r = e.items[n];
|
|
1065
|
-
(r.type === 3 || r.type === 9) && delete r.value;
|
|
1066
|
-
}
|
|
1067
|
-
}
|
|
1068
|
-
}
|
|
1069
|
-
}
|
|
1070
|
-
const Yr = "minifier";
|
|
1071
|
-
function he(e) {
|
|
1072
|
-
switch (e.t = e.type, e.type) {
|
|
1073
|
-
case 0: {
|
|
1074
|
-
const t = e;
|
|
1075
|
-
he(t.body), t.b = t.body, delete t.body;
|
|
1076
|
-
break;
|
|
1077
|
-
}
|
|
1078
|
-
case 1: {
|
|
1079
|
-
const t = e, n = t.cases;
|
|
1080
|
-
for (let r = 0; r < n.length; r++)
|
|
1081
|
-
he(n[r]);
|
|
1082
|
-
t.c = n, delete t.cases;
|
|
1083
|
-
break;
|
|
1084
|
-
}
|
|
1085
|
-
case 2: {
|
|
1086
|
-
const t = e, n = t.items;
|
|
1087
|
-
for (let r = 0; r < n.length; r++)
|
|
1088
|
-
he(n[r]);
|
|
1089
|
-
t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
|
|
1090
|
-
break;
|
|
1091
|
-
}
|
|
1092
|
-
case 3:
|
|
1093
|
-
case 9:
|
|
1094
|
-
case 8:
|
|
1095
|
-
case 7: {
|
|
1096
|
-
const t = e;
|
|
1097
|
-
t.value && (t.v = t.value, delete t.value);
|
|
1098
|
-
break;
|
|
1099
|
-
}
|
|
1100
|
-
case 6: {
|
|
1101
|
-
const t = e;
|
|
1102
|
-
he(t.key), t.k = t.key, delete t.key, t.modifier && (he(t.modifier), t.m = t.modifier, delete t.modifier);
|
|
1103
|
-
break;
|
|
1104
|
-
}
|
|
1105
|
-
case 5: {
|
|
1106
|
-
const t = e;
|
|
1107
|
-
t.i = t.index, delete t.index;
|
|
1108
|
-
break;
|
|
1109
|
-
}
|
|
1110
|
-
case 4: {
|
|
1111
|
-
const t = e;
|
|
1112
|
-
t.k = t.key, delete t.key;
|
|
1113
|
-
break;
|
|
1114
|
-
}
|
|
1115
|
-
default:
|
|
1116
|
-
throw Ie(D.UNHANDLED_MINIFIER_NODE_TYPE, null, {
|
|
1117
|
-
domain: Yr,
|
|
1118
|
-
args: [e.type]
|
|
1119
|
-
});
|
|
1120
|
-
}
|
|
1121
|
-
delete e.type;
|
|
1122
|
-
}
|
|
1123
|
-
const Kr = "parser";
|
|
1124
|
-
function Br(e, t) {
|
|
1125
|
-
const { sourceMap: n, filename: r, breakLineCode: s, needIndent: l } = t, c = t.location !== !1, i = {
|
|
1126
|
-
filename: r,
|
|
1127
|
-
code: "",
|
|
1128
|
-
column: 1,
|
|
1129
|
-
line: 1,
|
|
1130
|
-
offset: 0,
|
|
1131
|
-
map: void 0,
|
|
1132
|
-
breakLineCode: s,
|
|
1133
|
-
needIndent: l,
|
|
1134
|
-
indentLevel: 0
|
|
1135
|
-
};
|
|
1136
|
-
c && e.loc && (i.source = e.loc.source);
|
|
1137
|
-
const u = () => i;
|
|
1138
|
-
function _(y, P) {
|
|
1139
|
-
i.code += y;
|
|
1140
|
-
}
|
|
1141
|
-
function O(y, P = !0) {
|
|
1142
|
-
const M = P ? s : "";
|
|
1143
|
-
_(l ? M + " ".repeat(y) : M);
|
|
1144
|
-
}
|
|
1145
|
-
function L(y = !0) {
|
|
1146
|
-
const P = ++i.indentLevel;
|
|
1147
|
-
y && O(P);
|
|
1148
|
-
}
|
|
1149
|
-
function p(y = !0) {
|
|
1150
|
-
const P = --i.indentLevel;
|
|
1151
|
-
y && O(P);
|
|
1152
|
-
}
|
|
1153
|
-
function C() {
|
|
1154
|
-
O(i.indentLevel);
|
|
1155
|
-
}
|
|
1156
|
-
return {
|
|
1157
|
-
context: u,
|
|
1158
|
-
push: _,
|
|
1159
|
-
indent: L,
|
|
1160
|
-
deindent: p,
|
|
1161
|
-
newline: C,
|
|
1162
|
-
helper: (y) => `_${y}`,
|
|
1163
|
-
needIndent: () => i.needIndent
|
|
1164
|
-
};
|
|
1165
|
-
}
|
|
1166
|
-
function Jr(e, t) {
|
|
1167
|
-
const { helper: n } = e;
|
|
1168
|
-
e.push(`${n(
|
|
1169
|
-
"linked"
|
|
1170
|
-
/* HelperNameMap.LINKED */
|
|
1171
|
-
)}(`), be(e, t.key), t.modifier ? (e.push(", "), be(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
1172
|
-
}
|
|
1173
|
-
function Qr(e, t) {
|
|
1174
|
-
const { helper: n, needIndent: r } = e;
|
|
1175
|
-
e.push(`${n(
|
|
1176
|
-
"normalize"
|
|
1177
|
-
/* HelperNameMap.NORMALIZE */
|
|
1178
|
-
)}([`), e.indent(r());
|
|
1179
|
-
const s = t.items.length;
|
|
1180
|
-
for (let l = 0; l < s && (be(e, t.items[l]), l !== s - 1); l++)
|
|
1181
|
-
e.push(", ");
|
|
1182
|
-
e.deindent(r()), e.push("])");
|
|
1183
|
-
}
|
|
1184
|
-
function qr(e, t) {
|
|
1185
|
-
const { helper: n, needIndent: r } = e;
|
|
1186
|
-
if (t.cases.length > 1) {
|
|
1187
|
-
e.push(`${n(
|
|
1188
|
-
"plural"
|
|
1189
|
-
/* HelperNameMap.PLURAL */
|
|
1190
|
-
)}([`), e.indent(r());
|
|
1191
|
-
const s = t.cases.length;
|
|
1192
|
-
for (let l = 0; l < s && (be(e, t.cases[l]), l !== s - 1); l++)
|
|
1193
|
-
e.push(", ");
|
|
1194
|
-
e.deindent(r()), e.push("])");
|
|
1195
|
-
}
|
|
1196
|
-
}
|
|
1197
|
-
function Zr(e, t) {
|
|
1198
|
-
t.body ? be(e, t.body) : e.push("null");
|
|
1199
|
-
}
|
|
1200
|
-
function be(e, t) {
|
|
1201
|
-
const { helper: n } = e;
|
|
1202
|
-
switch (t.type) {
|
|
1203
|
-
case 0:
|
|
1204
|
-
Zr(e, t);
|
|
1205
|
-
break;
|
|
1206
|
-
case 1:
|
|
1207
|
-
qr(e, t);
|
|
1208
|
-
break;
|
|
1209
|
-
case 2:
|
|
1210
|
-
Qr(e, t);
|
|
1211
|
-
break;
|
|
1212
|
-
case 6:
|
|
1213
|
-
Jr(e, t);
|
|
1214
|
-
break;
|
|
1215
|
-
case 8:
|
|
1216
|
-
e.push(JSON.stringify(t.value), t);
|
|
1217
|
-
break;
|
|
1218
|
-
case 7:
|
|
1219
|
-
e.push(JSON.stringify(t.value), t);
|
|
1220
|
-
break;
|
|
1221
|
-
case 5:
|
|
1222
|
-
e.push(`${n(
|
|
1223
|
-
"interpolate"
|
|
1224
|
-
/* HelperNameMap.INTERPOLATE */
|
|
1225
|
-
)}(${n(
|
|
1226
|
-
"list"
|
|
1227
|
-
/* HelperNameMap.LIST */
|
|
1228
|
-
)}(${t.index}))`, t);
|
|
1229
|
-
break;
|
|
1230
|
-
case 4:
|
|
1231
|
-
e.push(`${n(
|
|
1232
|
-
"interpolate"
|
|
1233
|
-
/* HelperNameMap.INTERPOLATE */
|
|
1234
|
-
)}(${n(
|
|
1235
|
-
"named"
|
|
1236
|
-
/* HelperNameMap.NAMED */
|
|
1237
|
-
)}(${JSON.stringify(t.key)}))`, t);
|
|
1238
|
-
break;
|
|
1239
|
-
case 9:
|
|
1240
|
-
e.push(JSON.stringify(t.value), t);
|
|
1241
|
-
break;
|
|
1242
|
-
case 3:
|
|
1243
|
-
e.push(JSON.stringify(t.value), t);
|
|
1244
|
-
break;
|
|
1245
|
-
default:
|
|
1246
|
-
throw Ie(D.UNHANDLED_CODEGEN_NODE_TYPE, null, {
|
|
1247
|
-
domain: Kr,
|
|
1248
|
-
args: [t.type]
|
|
1249
|
-
});
|
|
1250
|
-
}
|
|
1251
|
-
}
|
|
1252
|
-
const zr = (e, t = {}) => {
|
|
1253
|
-
const n = Wt(t.mode) ? t.mode : "normal", r = Wt(t.filename) ? t.filename : "message.intl", s = !!t.sourceMap, l = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
1254
|
-
`, c = t.needIndent ? t.needIndent : n !== "arrow", i = e.helpers || [], u = Br(e, {
|
|
1255
|
-
mode: n,
|
|
1256
|
-
filename: r,
|
|
1257
|
-
sourceMap: s,
|
|
1258
|
-
breakLineCode: l,
|
|
1259
|
-
needIndent: c
|
|
1260
|
-
});
|
|
1261
|
-
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(c), i.length > 0 && (u.push(`const { ${An(i.map((L) => `${L}: _${L}`), ", ")} } = ctx`), u.newline()), u.push("return "), be(u, e), u.deindent(c), u.push("}"), delete e.helpers;
|
|
1262
|
-
const { code: _, map: O } = u.context();
|
|
1263
|
-
return {
|
|
1264
|
-
ast: e,
|
|
1265
|
-
code: _,
|
|
1266
|
-
map: O ? O.toJSON() : void 0
|
|
1267
|
-
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1268
|
-
};
|
|
1269
|
-
};
|
|
1270
|
-
function es(e, t = {}) {
|
|
1271
|
-
const n = Sn({}, t), r = !!n.jit, s = !!n.minify, l = n.optimize == null ? !0 : n.optimize, i = jr(n).parse(e);
|
|
1272
|
-
return r ? (l && Gr(i), s && he(i), { ast: i, code: "" }) : (Xr(i, n), zr(i, n));
|
|
1273
|
-
}
|
|
1274
|
-
/*!
|
|
1275
|
-
* core-base v9.13.1
|
|
1276
|
-
* (c) 2024 kazuya kawaguchi
|
|
1277
|
-
* Released under the MIT License.
|
|
1278
|
-
*/
|
|
1279
|
-
const me = [];
|
|
1280
|
-
me[
|
|
1281
|
-
0
|
|
1282
|
-
/* States.BEFORE_PATH */
|
|
1283
|
-
] = {
|
|
1284
|
-
w: [
|
|
1285
|
-
0
|
|
1286
|
-
/* States.BEFORE_PATH */
|
|
1287
|
-
],
|
|
1288
|
-
i: [
|
|
1289
|
-
3,
|
|
1290
|
-
0
|
|
1291
|
-
/* Actions.APPEND */
|
|
1292
|
-
],
|
|
1293
|
-
"[": [
|
|
1294
|
-
4
|
|
1295
|
-
/* States.IN_SUB_PATH */
|
|
1296
|
-
],
|
|
1297
|
-
o: [
|
|
1298
|
-
7
|
|
1299
|
-
/* States.AFTER_PATH */
|
|
1300
|
-
]
|
|
1301
|
-
};
|
|
1302
|
-
me[
|
|
1303
|
-
1
|
|
1304
|
-
/* States.IN_PATH */
|
|
1305
|
-
] = {
|
|
1306
|
-
w: [
|
|
1307
|
-
1
|
|
1308
|
-
/* States.IN_PATH */
|
|
1309
|
-
],
|
|
1310
|
-
".": [
|
|
1311
|
-
2
|
|
1312
|
-
/* States.BEFORE_IDENT */
|
|
1313
|
-
],
|
|
1314
|
-
"[": [
|
|
1315
|
-
4
|
|
1316
|
-
/* States.IN_SUB_PATH */
|
|
1317
|
-
],
|
|
1318
|
-
o: [
|
|
1319
|
-
7
|
|
1320
|
-
/* States.AFTER_PATH */
|
|
1321
|
-
]
|
|
1322
|
-
};
|
|
1323
|
-
me[
|
|
1324
|
-
2
|
|
1325
|
-
/* States.BEFORE_IDENT */
|
|
1326
|
-
] = {
|
|
1327
|
-
w: [
|
|
1328
|
-
2
|
|
1329
|
-
/* States.BEFORE_IDENT */
|
|
1330
|
-
],
|
|
1331
|
-
i: [
|
|
1332
|
-
3,
|
|
1333
|
-
0
|
|
1334
|
-
/* Actions.APPEND */
|
|
1335
|
-
],
|
|
1336
|
-
0: [
|
|
1337
|
-
3,
|
|
1338
|
-
0
|
|
1339
|
-
/* Actions.APPEND */
|
|
1340
|
-
]
|
|
1341
|
-
};
|
|
1342
|
-
me[
|
|
1343
|
-
3
|
|
1344
|
-
/* States.IN_IDENT */
|
|
1345
|
-
] = {
|
|
1346
|
-
i: [
|
|
1347
|
-
3,
|
|
1348
|
-
0
|
|
1349
|
-
/* Actions.APPEND */
|
|
1350
|
-
],
|
|
1351
|
-
0: [
|
|
1352
|
-
3,
|
|
1353
|
-
0
|
|
1354
|
-
/* Actions.APPEND */
|
|
1355
|
-
],
|
|
1356
|
-
w: [
|
|
1357
|
-
1,
|
|
1358
|
-
1
|
|
1359
|
-
/* Actions.PUSH */
|
|
1360
|
-
],
|
|
1361
|
-
".": [
|
|
1362
|
-
2,
|
|
1363
|
-
1
|
|
1364
|
-
/* Actions.PUSH */
|
|
1365
|
-
],
|
|
1366
|
-
"[": [
|
|
1367
|
-
4,
|
|
1368
|
-
1
|
|
1369
|
-
/* Actions.PUSH */
|
|
1370
|
-
],
|
|
1371
|
-
o: [
|
|
1372
|
-
7,
|
|
1373
|
-
1
|
|
1374
|
-
/* Actions.PUSH */
|
|
1375
|
-
]
|
|
1376
|
-
};
|
|
1377
|
-
me[
|
|
1378
|
-
4
|
|
1379
|
-
/* States.IN_SUB_PATH */
|
|
1380
|
-
] = {
|
|
1381
|
-
"'": [
|
|
1382
|
-
5,
|
|
1383
|
-
0
|
|
1384
|
-
/* Actions.APPEND */
|
|
1385
|
-
],
|
|
1386
|
-
'"': [
|
|
1387
|
-
6,
|
|
1388
|
-
0
|
|
1389
|
-
/* Actions.APPEND */
|
|
1390
|
-
],
|
|
1391
|
-
"[": [
|
|
1392
|
-
4,
|
|
1393
|
-
2
|
|
1394
|
-
/* Actions.INC_SUB_PATH_DEPTH */
|
|
1395
|
-
],
|
|
1396
|
-
"]": [
|
|
1397
|
-
1,
|
|
1398
|
-
3
|
|
1399
|
-
/* Actions.PUSH_SUB_PATH */
|
|
1400
|
-
],
|
|
1401
|
-
o: 8,
|
|
1402
|
-
l: [
|
|
1403
|
-
4,
|
|
1404
|
-
0
|
|
1405
|
-
/* Actions.APPEND */
|
|
1406
|
-
]
|
|
1407
|
-
};
|
|
1408
|
-
me[
|
|
1409
|
-
5
|
|
1410
|
-
/* States.IN_SINGLE_QUOTE */
|
|
1411
|
-
] = {
|
|
1412
|
-
"'": [
|
|
1413
|
-
4,
|
|
1414
|
-
0
|
|
1415
|
-
/* Actions.APPEND */
|
|
1416
|
-
],
|
|
1417
|
-
o: 8,
|
|
1418
|
-
l: [
|
|
1419
|
-
5,
|
|
1420
|
-
0
|
|
1421
|
-
/* Actions.APPEND */
|
|
1422
|
-
]
|
|
1423
|
-
};
|
|
1424
|
-
me[
|
|
1425
|
-
6
|
|
1426
|
-
/* States.IN_DOUBLE_QUOTE */
|
|
1427
|
-
] = {
|
|
1428
|
-
'"': [
|
|
1429
|
-
4,
|
|
1430
|
-
0
|
|
1431
|
-
/* Actions.APPEND */
|
|
1432
|
-
],
|
|
1433
|
-
o: 8,
|
|
1434
|
-
l: [
|
|
1435
|
-
6,
|
|
1436
|
-
0
|
|
1437
|
-
/* Actions.APPEND */
|
|
1438
|
-
]
|
|
1439
|
-
};
|
|
1440
|
-
const ts = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1441
|
-
function ns(e) {
|
|
1442
|
-
return ts.test(e);
|
|
1443
|
-
}
|
|
1444
|
-
function rs(e) {
|
|
1445
|
-
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1446
|
-
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1447
|
-
}
|
|
1448
|
-
function ss(e) {
|
|
1449
|
-
if (e == null)
|
|
1450
|
-
return "o";
|
|
1451
|
-
switch (e.charCodeAt(0)) {
|
|
1452
|
-
case 91:
|
|
1453
|
-
case 93:
|
|
1454
|
-
case 46:
|
|
1455
|
-
case 34:
|
|
1456
|
-
case 39:
|
|
1457
|
-
return e;
|
|
1458
|
-
case 95:
|
|
1459
|
-
case 36:
|
|
1460
|
-
case 45:
|
|
1461
|
-
return "i";
|
|
1462
|
-
case 9:
|
|
1463
|
-
case 10:
|
|
1464
|
-
case 13:
|
|
1465
|
-
case 160:
|
|
1466
|
-
case 65279:
|
|
1467
|
-
case 8232:
|
|
1468
|
-
case 8233:
|
|
1469
|
-
return "w";
|
|
1470
|
-
}
|
|
1471
|
-
return "i";
|
|
1472
|
-
}
|
|
1473
|
-
function as(e) {
|
|
1474
|
-
const t = e.trim();
|
|
1475
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : ns(t) ? rs(t) : "*" + t;
|
|
1476
|
-
}
|
|
1477
|
-
function ls(e) {
|
|
1478
|
-
const t = [];
|
|
1479
|
-
let n = -1, r = 0, s = 0, l, c, i, u, _, O, L;
|
|
1480
|
-
const p = [];
|
|
1481
|
-
p[
|
|
1482
|
-
0
|
|
1483
|
-
/* Actions.APPEND */
|
|
1484
|
-
] = () => {
|
|
1485
|
-
c === void 0 ? c = i : c += i;
|
|
1486
|
-
}, p[
|
|
1487
|
-
1
|
|
1488
|
-
/* Actions.PUSH */
|
|
1489
|
-
] = () => {
|
|
1490
|
-
c !== void 0 && (t.push(c), c = void 0);
|
|
1491
|
-
}, p[
|
|
1492
|
-
2
|
|
1493
|
-
/* Actions.INC_SUB_PATH_DEPTH */
|
|
1494
|
-
] = () => {
|
|
1495
|
-
p[
|
|
1496
|
-
0
|
|
1497
|
-
/* Actions.APPEND */
|
|
1498
|
-
](), s++;
|
|
1499
|
-
}, p[
|
|
1500
|
-
3
|
|
1501
|
-
/* Actions.PUSH_SUB_PATH */
|
|
1502
|
-
] = () => {
|
|
1503
|
-
if (s > 0)
|
|
1504
|
-
s--, r = 4, p[
|
|
1505
|
-
0
|
|
1506
|
-
/* Actions.APPEND */
|
|
1507
|
-
]();
|
|
1508
|
-
else {
|
|
1509
|
-
if (s = 0, c === void 0 || (c = as(c), c === !1))
|
|
1510
|
-
return !1;
|
|
1511
|
-
p[
|
|
1512
|
-
1
|
|
1513
|
-
/* Actions.PUSH */
|
|
1514
|
-
]();
|
|
1515
|
-
}
|
|
1516
|
-
};
|
|
1517
|
-
function C() {
|
|
1518
|
-
const A = e[n + 1];
|
|
1519
|
-
if (r === 5 && A === "'" || r === 6 && A === '"')
|
|
1520
|
-
return n++, i = "\\" + A, p[
|
|
1521
|
-
0
|
|
1522
|
-
/* Actions.APPEND */
|
|
1523
|
-
](), !0;
|
|
1524
|
-
}
|
|
1525
|
-
for (; r !== null; )
|
|
1526
|
-
if (n++, l = e[n], !(l === "\\" && C())) {
|
|
1527
|
-
if (u = ss(l), L = me[r], _ = L[u] || L.l || 8, _ === 8 || (r = _[0], _[1] !== void 0 && (O = p[_[1]], O && (i = l, O() === !1))))
|
|
1528
|
-
return;
|
|
1529
|
-
if (r === 7)
|
|
1530
|
-
return t;
|
|
1531
|
-
}
|
|
1532
|
-
}
|
|
1533
|
-
const jt = /* @__PURE__ */ new Map();
|
|
1534
|
-
function os(e, t) {
|
|
1535
|
-
return w(e) ? e[t] : null;
|
|
1536
|
-
}
|
|
1537
|
-
function cs(e, t) {
|
|
1538
|
-
if (!w(e))
|
|
1539
|
-
return null;
|
|
1540
|
-
let n = jt.get(t);
|
|
1541
|
-
if (n || (n = ls(t), n && jt.set(t, n)), !n)
|
|
1542
|
-
return null;
|
|
1543
|
-
const r = n.length;
|
|
1544
|
-
let s = e, l = 0;
|
|
1545
|
-
for (; l < r; ) {
|
|
1546
|
-
const c = s[n[l]];
|
|
1547
|
-
if (c === void 0 || j(s))
|
|
1548
|
-
return null;
|
|
1549
|
-
s = c, l++;
|
|
1550
|
-
}
|
|
1551
|
-
return s;
|
|
1552
|
-
}
|
|
1553
|
-
const is = (e) => e, us = (e) => "", fs = "text", ms = (e) => e.length === 0 ? "" : Or(e), _s = br;
|
|
1554
|
-
function Ht(e, t) {
|
|
1555
|
-
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1556
|
-
}
|
|
1557
|
-
function ds(e) {
|
|
1558
|
-
const t = K(e.pluralIndex) ? e.pluralIndex : -1;
|
|
1559
|
-
return e.named && (K(e.named.count) || K(e.named.n)) ? K(e.named.count) ? e.named.count : K(e.named.n) ? e.named.n : t : t;
|
|
1560
|
-
}
|
|
1561
|
-
function Es(e, t) {
|
|
1562
|
-
t.count || (t.count = e), t.n || (t.n = e);
|
|
1563
|
-
}
|
|
1564
|
-
function gs(e = {}) {
|
|
1565
|
-
const t = e.locale, n = ds(e), r = w(e.pluralRules) && S(t) && j(e.pluralRules[t]) ? e.pluralRules[t] : Ht, s = w(e.pluralRules) && S(t) && j(e.pluralRules[t]) ? Ht : void 0, l = (P) => P[r(n, P.length, s)], c = e.list || [], i = (P) => c[P], u = e.named || {};
|
|
1566
|
-
K(e.pluralIndex) && Es(n, u);
|
|
1567
|
-
const _ = (P) => u[P];
|
|
1568
|
-
function O(P) {
|
|
1569
|
-
const M = j(e.messages) ? e.messages(P) : w(e.messages) ? e.messages[P] : !1;
|
|
1570
|
-
return M || (e.parent ? e.parent.message(P) : us);
|
|
1571
|
-
}
|
|
1572
|
-
const L = (P) => e.modifiers ? e.modifiers[P] : is, p = U(e.processor) && j(e.processor.normalize) ? e.processor.normalize : ms, C = U(e.processor) && j(e.processor.interpolate) ? e.processor.interpolate : _s, A = U(e.processor) && S(e.processor.type) ? e.processor.type : fs, y = {
|
|
1573
|
-
list: i,
|
|
1574
|
-
named: _,
|
|
1575
|
-
plural: l,
|
|
1576
|
-
linked: (P, ...M) => {
|
|
1577
|
-
const [m, d] = M;
|
|
1578
|
-
let T = "text", g = "";
|
|
1579
|
-
M.length === 1 ? w(m) ? (g = m.modifier || g, T = m.type || T) : S(m) && (g = m || g) : M.length === 2 && (S(m) && (g = m || g), S(d) && (T = d || T));
|
|
1580
|
-
const I = O(P)(y), b = (
|
|
1581
|
-
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1582
|
-
T === "vnode" && X(I) && g ? I[0] : I
|
|
1583
|
-
);
|
|
1584
|
-
return g ? L(g)(b, T) : b;
|
|
1585
|
-
},
|
|
1586
|
-
message: O,
|
|
1587
|
-
type: A,
|
|
1588
|
-
interpolate: C,
|
|
1589
|
-
normalize: p,
|
|
1590
|
-
values: J({}, c, u)
|
|
1591
|
-
};
|
|
1592
|
-
return y;
|
|
1593
|
-
}
|
|
1594
|
-
let De = null;
|
|
1595
|
-
function Ns(e) {
|
|
1596
|
-
De = e;
|
|
1597
|
-
}
|
|
1598
|
-
function ps(e, t, n) {
|
|
1599
|
-
De && De.emit("i18n:init", {
|
|
1600
|
-
timestamp: Date.now(),
|
|
1601
|
-
i18n: e,
|
|
1602
|
-
version: t,
|
|
1603
|
-
meta: n
|
|
1604
|
-
});
|
|
1605
|
-
}
|
|
1606
|
-
const Ls = /* @__PURE__ */ hs(
|
|
1607
|
-
"function:translate"
|
|
1608
|
-
/* IntlifyDevToolsHooks.FunctionTranslate */
|
|
1609
|
-
);
|
|
1610
|
-
function hs(e) {
|
|
1611
|
-
return (t) => De && De.emit(e, t);
|
|
1612
|
-
}
|
|
1613
|
-
const Pn = St.__EXTEND_POINT__, _e = Be(Pn), Ts = {
|
|
1614
|
-
NOT_FOUND_KEY: Pn,
|
|
1615
|
-
// 2
|
|
1616
|
-
FALLBACK_TO_TRANSLATE: _e(),
|
|
1617
|
-
// 3
|
|
1618
|
-
CANNOT_FORMAT_NUMBER: _e(),
|
|
1619
|
-
// 4
|
|
1620
|
-
FALLBACK_TO_NUMBER_FORMAT: _e(),
|
|
1621
|
-
// 5
|
|
1622
|
-
CANNOT_FORMAT_DATE: _e(),
|
|
1623
|
-
// 6
|
|
1624
|
-
FALLBACK_TO_DATE_FORMAT: _e(),
|
|
1625
|
-
// 7
|
|
1626
|
-
EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: _e(),
|
|
1627
|
-
// 8
|
|
1628
|
-
__EXTEND_POINT__: _e()
|
|
1629
|
-
// 9
|
|
1630
|
-
}, kn = D.__EXTEND_POINT__, de = Be(kn), ne = {
|
|
1631
|
-
INVALID_ARGUMENT: kn,
|
|
1632
|
-
// 17
|
|
1633
|
-
INVALID_DATE_ARGUMENT: de(),
|
|
1634
|
-
// 18
|
|
1635
|
-
INVALID_ISO_DATE_ARGUMENT: de(),
|
|
1636
|
-
// 19
|
|
1637
|
-
NOT_SUPPORT_NON_STRING_MESSAGE: de(),
|
|
1638
|
-
// 20
|
|
1639
|
-
NOT_SUPPORT_LOCALE_PROMISE_VALUE: de(),
|
|
1640
|
-
// 21
|
|
1641
|
-
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: de(),
|
|
1642
|
-
// 22
|
|
1643
|
-
NOT_SUPPORT_LOCALE_TYPE: de(),
|
|
1644
|
-
// 23
|
|
1645
|
-
__EXTEND_POINT__: de()
|
|
1646
|
-
// 24
|
|
1647
|
-
};
|
|
1648
|
-
function oe(e) {
|
|
1649
|
-
return Ie(e, null, void 0);
|
|
1650
|
-
}
|
|
1651
|
-
function Pt(e, t) {
|
|
1652
|
-
return t.locale != null ? Xt(t.locale) : Xt(e.locale);
|
|
1653
|
-
}
|
|
1654
|
-
let ut;
|
|
1655
|
-
function Xt(e) {
|
|
1656
|
-
if (S(e))
|
|
1657
|
-
return e;
|
|
1658
|
-
if (j(e)) {
|
|
1659
|
-
if (e.resolvedOnce && ut != null)
|
|
1660
|
-
return ut;
|
|
1661
|
-
if (e.constructor.name === "Function") {
|
|
1662
|
-
const t = e();
|
|
1663
|
-
if (Tr(t))
|
|
1664
|
-
throw oe(ne.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1665
|
-
return ut = t;
|
|
1666
|
-
} else
|
|
1667
|
-
throw oe(ne.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1668
|
-
} else
|
|
1669
|
-
throw oe(ne.NOT_SUPPORT_LOCALE_TYPE);
|
|
1670
|
-
}
|
|
1671
|
-
function bs(e, t, n) {
|
|
1672
|
-
return [.../* @__PURE__ */ new Set([
|
|
1673
|
-
n,
|
|
1674
|
-
...X(t) ? t : w(t) ? Object.keys(t) : S(t) ? [t] : [n]
|
|
1675
|
-
])];
|
|
1676
|
-
}
|
|
1677
|
-
function Rn(e, t, n) {
|
|
1678
|
-
const r = S(n) ? n : Ge, s = e;
|
|
1679
|
-
s.__localeChainCache || (s.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1680
|
-
let l = s.__localeChainCache.get(r);
|
|
1681
|
-
if (!l) {
|
|
1682
|
-
l = [];
|
|
1683
|
-
let c = [n];
|
|
1684
|
-
for (; X(c); )
|
|
1685
|
-
c = Gt(l, c, t);
|
|
1686
|
-
const i = X(t) || !U(t) ? t : t.default ? t.default : null;
|
|
1687
|
-
c = S(i) ? [i] : i, X(c) && Gt(l, c, !1), s.__localeChainCache.set(r, l);
|
|
1688
|
-
}
|
|
1689
|
-
return l;
|
|
1690
|
-
}
|
|
1691
|
-
function Gt(e, t, n) {
|
|
1692
|
-
let r = !0;
|
|
1693
|
-
for (let s = 0; s < t.length && x(r); s++) {
|
|
1694
|
-
const l = t[s];
|
|
1695
|
-
S(l) && (r = Os(e, t[s], n));
|
|
1696
|
-
}
|
|
1697
|
-
return r;
|
|
1698
|
-
}
|
|
1699
|
-
function Os(e, t, n) {
|
|
1700
|
-
let r;
|
|
1701
|
-
const s = t.split("-");
|
|
1702
|
-
do {
|
|
1703
|
-
const l = s.join("-");
|
|
1704
|
-
r = Is(e, l, n), s.splice(-1, 1);
|
|
1705
|
-
} while (s.length && r === !0);
|
|
1706
|
-
return r;
|
|
1707
|
-
}
|
|
1708
|
-
function Is(e, t, n) {
|
|
1709
|
-
let r = !1;
|
|
1710
|
-
if (!e.includes(t) && (r = !0, t)) {
|
|
1711
|
-
r = t[t.length - 1] !== "!";
|
|
1712
|
-
const s = t.replace(/!/g, "");
|
|
1713
|
-
e.push(s), (X(n) || U(n)) && n[s] && (r = n[s]);
|
|
1714
|
-
}
|
|
1715
|
-
return r;
|
|
1716
|
-
}
|
|
1717
|
-
const Cs = "9.13.1", Je = -1, Ge = "en-US", Yt = "", Kt = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1718
|
-
function ys() {
|
|
1719
|
-
return {
|
|
1720
|
-
upper: (e, t) => t === "text" && S(e) ? e.toUpperCase() : t === "vnode" && w(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1721
|
-
lower: (e, t) => t === "text" && S(e) ? e.toLowerCase() : t === "vnode" && w(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1722
|
-
capitalize: (e, t) => t === "text" && S(e) ? Kt(e) : t === "vnode" && w(e) && "__v_isVNode" in e ? Kt(e.children) : e
|
|
1723
|
-
};
|
|
1724
|
-
}
|
|
1725
|
-
let Dn;
|
|
1726
|
-
function Ss(e) {
|
|
1727
|
-
Dn = e;
|
|
1728
|
-
}
|
|
1729
|
-
let vn;
|
|
1730
|
-
function As(e) {
|
|
1731
|
-
vn = e;
|
|
1732
|
-
}
|
|
1733
|
-
let Mn;
|
|
1734
|
-
function Ps(e) {
|
|
1735
|
-
Mn = e;
|
|
1736
|
-
}
|
|
1737
|
-
let Fn = null;
|
|
1738
|
-
const ks = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1739
|
-
Fn = e;
|
|
1740
|
-
}, Rs = /* @__NO_SIDE_EFFECTS__ */ () => Fn;
|
|
1741
|
-
let Un = null;
|
|
1742
|
-
const Bt = (e) => {
|
|
1743
|
-
Un = e;
|
|
1744
|
-
}, Ds = () => Un;
|
|
1745
|
-
let Jt = 0;
|
|
1746
|
-
function vs(e = {}) {
|
|
1747
|
-
const t = j(e.onWarn) ? e.onWarn : Ir, n = S(e.version) ? e.version : Cs, r = S(e.locale) || j(e.locale) ? e.locale : Ge, s = j(r) ? Ge : r, l = X(e.fallbackLocale) || U(e.fallbackLocale) || S(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, c = U(e.messages) ? e.messages : { [s]: {} }, i = U(e.datetimeFormats) ? e.datetimeFormats : { [s]: {} }, u = U(e.numberFormats) ? e.numberFormats : { [s]: {} }, _ = J({}, e.modifiers || {}, ys()), O = e.pluralRules || {}, L = j(e.missing) ? e.missing : null, p = x(e.missingWarn) || je(e.missingWarn) ? e.missingWarn : !0, C = x(e.fallbackWarn) || je(e.fallbackWarn) ? e.fallbackWarn : !0, A = !!e.fallbackFormat, R = !!e.unresolving, y = j(e.postTranslation) ? e.postTranslation : null, P = U(e.processor) ? e.processor : null, M = x(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, m = !!e.escapeParameter, d = j(e.messageCompiler) ? e.messageCompiler : Dn, T = j(e.messageResolver) ? e.messageResolver : vn || os, g = j(e.localeFallbacker) ? e.localeFallbacker : Mn || bs, I = w(e.fallbackContext) ? e.fallbackContext : void 0, b = e, h = w(b.__datetimeFormatters) ? b.__datetimeFormatters : /* @__PURE__ */ new Map(), W = w(b.__numberFormatters) ? b.__numberFormatters : /* @__PURE__ */ new Map(), G = w(b.__meta) ? b.__meta : {};
|
|
1748
|
-
Jt++;
|
|
1749
|
-
const F = {
|
|
1750
|
-
version: n,
|
|
1751
|
-
cid: Jt,
|
|
1752
|
-
locale: r,
|
|
1753
|
-
fallbackLocale: l,
|
|
1754
|
-
messages: c,
|
|
1755
|
-
modifiers: _,
|
|
1756
|
-
pluralRules: O,
|
|
1757
|
-
missing: L,
|
|
1758
|
-
missingWarn: p,
|
|
1759
|
-
fallbackWarn: C,
|
|
1760
|
-
fallbackFormat: A,
|
|
1761
|
-
unresolving: R,
|
|
1762
|
-
postTranslation: y,
|
|
1763
|
-
processor: P,
|
|
1764
|
-
warnHtmlMessage: M,
|
|
1765
|
-
escapeParameter: m,
|
|
1766
|
-
messageCompiler: d,
|
|
1767
|
-
messageResolver: T,
|
|
1768
|
-
localeFallbacker: g,
|
|
1769
|
-
fallbackContext: I,
|
|
1770
|
-
onWarn: t,
|
|
1771
|
-
__meta: G
|
|
1772
|
-
};
|
|
1773
|
-
return F.datetimeFormats = i, F.numberFormats = u, F.__datetimeFormatters = h, F.__numberFormatters = W, ps(F, n, G), F;
|
|
1774
|
-
}
|
|
1775
|
-
function kt(e, t, n, r, s) {
|
|
1776
|
-
const { missing: l, onWarn: c } = e;
|
|
1777
|
-
if (l !== null) {
|
|
1778
|
-
const i = l(e, n, t, s);
|
|
1779
|
-
return S(i) ? i : t;
|
|
1780
|
-
} else
|
|
1781
|
-
return t;
|
|
1782
|
-
}
|
|
1783
|
-
function ke(e, t, n) {
|
|
1784
|
-
const r = e;
|
|
1785
|
-
r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
1786
|
-
}
|
|
1787
|
-
function Ms(e, t) {
|
|
1788
|
-
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
1789
|
-
}
|
|
1790
|
-
function Fs(e, t) {
|
|
1791
|
-
const n = t.indexOf(e);
|
|
1792
|
-
if (n === -1)
|
|
1793
|
-
return !1;
|
|
1794
|
-
for (let r = n + 1; r < t.length; r++)
|
|
1795
|
-
if (Ms(e, t[r]))
|
|
1796
|
-
return !0;
|
|
1797
|
-
return !1;
|
|
1798
|
-
}
|
|
1799
|
-
function ft(e) {
|
|
1800
|
-
return (n) => Us(n, e);
|
|
1801
|
-
}
|
|
1802
|
-
function Us(e, t) {
|
|
1803
|
-
const n = t.b || t.body;
|
|
1804
|
-
if ((n.t || n.type) === 1) {
|
|
1805
|
-
const r = n, s = r.c || r.cases;
|
|
1806
|
-
return e.plural(s.reduce((l, c) => [
|
|
1807
|
-
...l,
|
|
1808
|
-
Qt(e, c)
|
|
1809
|
-
], []));
|
|
1810
|
-
} else
|
|
1811
|
-
return Qt(e, n);
|
|
1812
|
-
}
|
|
1813
|
-
function Qt(e, t) {
|
|
1814
|
-
const n = t.s || t.static;
|
|
1815
|
-
if (n)
|
|
1816
|
-
return e.type === "text" ? n : e.normalize([n]);
|
|
1817
|
-
{
|
|
1818
|
-
const r = (t.i || t.items).reduce((s, l) => [...s, dt(e, l)], []);
|
|
1819
|
-
return e.normalize(r);
|
|
1820
|
-
}
|
|
1821
|
-
}
|
|
1822
|
-
function dt(e, t) {
|
|
1823
|
-
const n = t.t || t.type;
|
|
1824
|
-
switch (n) {
|
|
1825
|
-
case 3: {
|
|
1826
|
-
const r = t;
|
|
1827
|
-
return r.v || r.value;
|
|
1828
|
-
}
|
|
1829
|
-
case 9: {
|
|
1830
|
-
const r = t;
|
|
1831
|
-
return r.v || r.value;
|
|
1832
|
-
}
|
|
1833
|
-
case 4: {
|
|
1834
|
-
const r = t;
|
|
1835
|
-
return e.interpolate(e.named(r.k || r.key));
|
|
1836
|
-
}
|
|
1837
|
-
case 5: {
|
|
1838
|
-
const r = t;
|
|
1839
|
-
return e.interpolate(e.list(r.i != null ? r.i : r.index));
|
|
1840
|
-
}
|
|
1841
|
-
case 6: {
|
|
1842
|
-
const r = t, s = r.m || r.modifier;
|
|
1843
|
-
return e.linked(dt(e, r.k || r.key), s ? dt(e, s) : void 0, e.type);
|
|
1844
|
-
}
|
|
1845
|
-
case 7: {
|
|
1846
|
-
const r = t;
|
|
1847
|
-
return r.v || r.value;
|
|
1848
|
-
}
|
|
1849
|
-
case 8: {
|
|
1850
|
-
const r = t;
|
|
1851
|
-
return r.v || r.value;
|
|
1852
|
-
}
|
|
1853
|
-
default:
|
|
1854
|
-
throw new Error(`unhandled node type on format message part: ${n}`);
|
|
1855
|
-
}
|
|
1856
|
-
}
|
|
1857
|
-
const ws = (e) => e;
|
|
1858
|
-
let We = /* @__PURE__ */ Object.create(null);
|
|
1859
|
-
const Oe = (e) => w(e) && (e.t === 0 || e.type === 0) && ("b" in e || "body" in e);
|
|
1860
|
-
function Ws(e, t = {}) {
|
|
1861
|
-
let n = !1;
|
|
1862
|
-
const r = t.onError || Rr;
|
|
1863
|
-
return t.onError = (s) => {
|
|
1864
|
-
n = !0, r(s);
|
|
1865
|
-
}, { ...es(e, t), detectError: n };
|
|
1866
|
-
}
|
|
1867
|
-
function Vs(e, t) {
|
|
1868
|
-
if (S(e)) {
|
|
1869
|
-
x(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
1870
|
-
const r = (t.onCacheKey || ws)(e), s = We[r];
|
|
1871
|
-
if (s)
|
|
1872
|
-
return s;
|
|
1873
|
-
const { ast: l, detectError: c } = Ws(e, {
|
|
1874
|
-
...t,
|
|
1875
|
-
location: !1,
|
|
1876
|
-
jit: !0
|
|
1877
|
-
}), i = ft(l);
|
|
1878
|
-
return c ? i : We[r] = i;
|
|
1879
|
-
} else {
|
|
1880
|
-
const n = e.cacheKey;
|
|
1881
|
-
if (n) {
|
|
1882
|
-
const r = We[n];
|
|
1883
|
-
return r || (We[n] = ft(e));
|
|
1884
|
-
} else
|
|
1885
|
-
return ft(e);
|
|
1886
|
-
}
|
|
1887
|
-
}
|
|
1888
|
-
const qt = () => "", Z = (e) => j(e);
|
|
1889
|
-
function Zt(e, ...t) {
|
|
1890
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: l, fallbackLocale: c, messages: i } = e, [u, _] = Et(...t), O = x(_.missingWarn) ? _.missingWarn : e.missingWarn, L = x(_.fallbackWarn) ? _.fallbackWarn : e.fallbackWarn, p = x(_.escapeParameter) ? _.escapeParameter : e.escapeParameter, C = !!_.resolvedMessage, A = S(_.default) || x(_.default) ? x(_.default) ? l ? u : () => u : _.default : n ? l ? u : () => u : "", R = n || A !== "", y = Pt(e, _);
|
|
1891
|
-
p && $s(_);
|
|
1892
|
-
let [P, M, m] = C ? [
|
|
1893
|
-
u,
|
|
1894
|
-
y,
|
|
1895
|
-
i[y] || {}
|
|
1896
|
-
] : wn(e, u, y, c, L, O), d = P, T = u;
|
|
1897
|
-
if (!C && !(S(d) || Oe(d) || Z(d)) && R && (d = A, T = d), !C && (!(S(d) || Oe(d) || Z(d)) || !S(M)))
|
|
1898
|
-
return s ? Je : u;
|
|
1899
|
-
let g = !1;
|
|
1900
|
-
const I = () => {
|
|
1901
|
-
g = !0;
|
|
1902
|
-
}, b = Z(d) ? d : Wn(e, u, M, d, T, I);
|
|
1903
|
-
if (g)
|
|
1904
|
-
return d;
|
|
1905
|
-
const h = Hs(e, M, m, _), W = gs(h), G = xs(e, b, W), F = r ? r(G, u) : G;
|
|
1906
|
-
{
|
|
1907
|
-
const Y = {
|
|
1908
|
-
timestamp: Date.now(),
|
|
1909
|
-
key: S(u) ? u : Z(d) ? d.key : "",
|
|
1910
|
-
locale: M || (Z(d) ? d.locale : ""),
|
|
1911
|
-
format: S(d) ? d : Z(d) ? d.source : "",
|
|
1912
|
-
message: F
|
|
1913
|
-
};
|
|
1914
|
-
Y.meta = J({}, e.__meta, /* @__PURE__ */ Rs() || {}), Ls(Y);
|
|
1915
|
-
}
|
|
1916
|
-
return F;
|
|
1917
|
-
}
|
|
1918
|
-
function $s(e) {
|
|
1919
|
-
X(e.list) ? e.list = e.list.map((t) => S(t) ? wt(t) : t) : w(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1920
|
-
S(e.named[t]) && (e.named[t] = wt(e.named[t]));
|
|
1921
|
-
});
|
|
1922
|
-
}
|
|
1923
|
-
function wn(e, t, n, r, s, l) {
|
|
1924
|
-
const { messages: c, onWarn: i, messageResolver: u, localeFallbacker: _ } = e, O = _(e, r, n);
|
|
1925
|
-
let L = {}, p, C = null;
|
|
1926
|
-
const A = "translate";
|
|
1927
|
-
for (let R = 0; R < O.length && (p = O[R], L = c[p] || {}, (C = u(L, t)) === null && (C = L[t]), !(S(C) || Oe(C) || Z(C))); R++)
|
|
1928
|
-
if (!Fs(p, O)) {
|
|
1929
|
-
const y = kt(
|
|
1930
|
-
e,
|
|
1931
|
-
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1932
|
-
t,
|
|
1933
|
-
p,
|
|
1934
|
-
l,
|
|
1935
|
-
A
|
|
1936
|
-
);
|
|
1937
|
-
y !== t && (C = y);
|
|
1938
|
-
}
|
|
1939
|
-
return [C, p, L];
|
|
1940
|
-
}
|
|
1941
|
-
function Wn(e, t, n, r, s, l) {
|
|
1942
|
-
const { messageCompiler: c, warnHtmlMessage: i } = e;
|
|
1943
|
-
if (Z(r)) {
|
|
1944
|
-
const _ = r;
|
|
1945
|
-
return _.locale = _.locale || n, _.key = _.key || t, _;
|
|
1946
|
-
}
|
|
1947
|
-
if (c == null) {
|
|
1948
|
-
const _ = () => r;
|
|
1949
|
-
return _.locale = n, _.key = t, _;
|
|
1950
|
-
}
|
|
1951
|
-
const u = c(r, js(e, n, s, r, i, l));
|
|
1952
|
-
return u.locale = n, u.key = t, u.source = r, u;
|
|
1953
|
-
}
|
|
1954
|
-
function xs(e, t, n) {
|
|
1955
|
-
return t(n);
|
|
1956
|
-
}
|
|
1957
|
-
function Et(...e) {
|
|
1958
|
-
const [t, n, r] = e, s = {};
|
|
1959
|
-
if (!S(t) && !K(t) && !Z(t) && !Oe(t))
|
|
1960
|
-
throw oe(ne.INVALID_ARGUMENT);
|
|
1961
|
-
const l = K(t) ? String(t) : (Z(t), t);
|
|
1962
|
-
return K(n) ? s.plural = n : S(n) ? s.default = n : U(n) && !Ke(n) ? s.named = n : X(n) && (s.list = n), K(r) ? s.plural = r : S(r) ? s.default = r : U(r) && J(s, r), [l, s];
|
|
1963
|
-
}
|
|
1964
|
-
function js(e, t, n, r, s, l) {
|
|
1965
|
-
return {
|
|
1966
|
-
locale: t,
|
|
1967
|
-
key: n,
|
|
1968
|
-
warnHtmlMessage: s,
|
|
1969
|
-
onError: (c) => {
|
|
1970
|
-
throw l && l(c), c;
|
|
1971
|
-
},
|
|
1972
|
-
onCacheKey: (c) => gr(t, n, c)
|
|
1973
|
-
};
|
|
1974
|
-
}
|
|
1975
|
-
function Hs(e, t, n, r) {
|
|
1976
|
-
const { modifiers: s, pluralRules: l, messageResolver: c, fallbackLocale: i, fallbackWarn: u, missingWarn: _, fallbackContext: O } = e, p = {
|
|
1977
|
-
locale: t,
|
|
1978
|
-
modifiers: s,
|
|
1979
|
-
pluralRules: l,
|
|
1980
|
-
messages: (C) => {
|
|
1981
|
-
let A = c(n, C);
|
|
1982
|
-
if (A == null && O) {
|
|
1983
|
-
const [, , R] = wn(O, C, t, i, u, _);
|
|
1984
|
-
A = c(R, C);
|
|
1985
|
-
}
|
|
1986
|
-
if (S(A) || Oe(A)) {
|
|
1987
|
-
let R = !1;
|
|
1988
|
-
const P = Wn(e, C, t, A, C, () => {
|
|
1989
|
-
R = !0;
|
|
1990
|
-
});
|
|
1991
|
-
return R ? qt : P;
|
|
1992
|
-
} else return Z(A) ? A : qt;
|
|
1993
|
-
}
|
|
1994
|
-
};
|
|
1995
|
-
return e.processor && (p.processor = e.processor), r.list && (p.list = r.list), r.named && (p.named = r.named), K(r.plural) && (p.pluralIndex = r.plural), p;
|
|
1996
|
-
}
|
|
1997
|
-
function zt(e, ...t) {
|
|
1998
|
-
const { datetimeFormats: n, unresolving: r, fallbackLocale: s, onWarn: l, localeFallbacker: c } = e, { __datetimeFormatters: i } = e, [u, _, O, L] = gt(...t), p = x(O.missingWarn) ? O.missingWarn : e.missingWarn;
|
|
1999
|
-
x(O.fallbackWarn) ? O.fallbackWarn : e.fallbackWarn;
|
|
2000
|
-
const C = !!O.part, A = Pt(e, O), R = c(
|
|
2001
|
-
e,
|
|
2002
|
-
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2003
|
-
s,
|
|
2004
|
-
A
|
|
2005
|
-
);
|
|
2006
|
-
if (!S(u) || u === "")
|
|
2007
|
-
return new Intl.DateTimeFormat(A, L).format(_);
|
|
2008
|
-
let y = {}, P, M = null;
|
|
2009
|
-
const m = "datetime format";
|
|
2010
|
-
for (let g = 0; g < R.length && (P = R[g], y = n[P] || {}, M = y[u], !U(M)); g++)
|
|
2011
|
-
kt(e, u, P, p, m);
|
|
2012
|
-
if (!U(M) || !S(P))
|
|
2013
|
-
return r ? Je : u;
|
|
2014
|
-
let d = `${P}__${u}`;
|
|
2015
|
-
Ke(L) || (d = `${d}__${JSON.stringify(L)}`);
|
|
2016
|
-
let T = i.get(d);
|
|
2017
|
-
return T || (T = new Intl.DateTimeFormat(P, J({}, M, L)), i.set(d, T)), C ? T.formatToParts(_) : T.format(_);
|
|
2018
|
-
}
|
|
2019
|
-
const Vn = [
|
|
2020
|
-
"localeMatcher",
|
|
2021
|
-
"weekday",
|
|
2022
|
-
"era",
|
|
2023
|
-
"year",
|
|
2024
|
-
"month",
|
|
2025
|
-
"day",
|
|
2026
|
-
"hour",
|
|
2027
|
-
"minute",
|
|
2028
|
-
"second",
|
|
2029
|
-
"timeZoneName",
|
|
2030
|
-
"formatMatcher",
|
|
2031
|
-
"hour12",
|
|
2032
|
-
"timeZone",
|
|
2033
|
-
"dateStyle",
|
|
2034
|
-
"timeStyle",
|
|
2035
|
-
"calendar",
|
|
2036
|
-
"dayPeriod",
|
|
2037
|
-
"numberingSystem",
|
|
2038
|
-
"hourCycle",
|
|
2039
|
-
"fractionalSecondDigits"
|
|
2040
|
-
];
|
|
2041
|
-
function gt(...e) {
|
|
2042
|
-
const [t, n, r, s] = e, l = {};
|
|
2043
|
-
let c = {}, i;
|
|
2044
|
-
if (S(t)) {
|
|
2045
|
-
const u = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
2046
|
-
if (!u)
|
|
2047
|
-
throw oe(ne.INVALID_ISO_DATE_ARGUMENT);
|
|
2048
|
-
const _ = u[3] ? u[3].trim().startsWith("T") ? `${u[1].trim()}${u[3].trim()}` : `${u[1].trim()}T${u[3].trim()}` : u[1].trim();
|
|
2049
|
-
i = new Date(_);
|
|
2050
|
-
try {
|
|
2051
|
-
i.toISOString();
|
|
2052
|
-
} catch {
|
|
2053
|
-
throw oe(ne.INVALID_ISO_DATE_ARGUMENT);
|
|
2054
|
-
}
|
|
2055
|
-
} else if (pr(t)) {
|
|
2056
|
-
if (isNaN(t.getTime()))
|
|
2057
|
-
throw oe(ne.INVALID_DATE_ARGUMENT);
|
|
2058
|
-
i = t;
|
|
2059
|
-
} else if (K(t))
|
|
2060
|
-
i = t;
|
|
2061
|
-
else
|
|
2062
|
-
throw oe(ne.INVALID_ARGUMENT);
|
|
2063
|
-
return S(n) ? l.key = n : U(n) && Object.keys(n).forEach((u) => {
|
|
2064
|
-
Vn.includes(u) ? c[u] = n[u] : l[u] = n[u];
|
|
2065
|
-
}), S(r) ? l.locale = r : U(r) && (c = r), U(s) && (c = s), [l.key || "", i, l, c];
|
|
2066
|
-
}
|
|
2067
|
-
function en(e, t, n) {
|
|
2068
|
-
const r = e;
|
|
2069
|
-
for (const s in n) {
|
|
2070
|
-
const l = `${t}__${s}`;
|
|
2071
|
-
r.__datetimeFormatters.has(l) && r.__datetimeFormatters.delete(l);
|
|
2072
|
-
}
|
|
2073
|
-
}
|
|
2074
|
-
function tn(e, ...t) {
|
|
2075
|
-
const { numberFormats: n, unresolving: r, fallbackLocale: s, onWarn: l, localeFallbacker: c } = e, { __numberFormatters: i } = e, [u, _, O, L] = Nt(...t), p = x(O.missingWarn) ? O.missingWarn : e.missingWarn;
|
|
2076
|
-
x(O.fallbackWarn) ? O.fallbackWarn : e.fallbackWarn;
|
|
2077
|
-
const C = !!O.part, A = Pt(e, O), R = c(
|
|
2078
|
-
e,
|
|
2079
|
-
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2080
|
-
s,
|
|
2081
|
-
A
|
|
2082
|
-
);
|
|
2083
|
-
if (!S(u) || u === "")
|
|
2084
|
-
return new Intl.NumberFormat(A, L).format(_);
|
|
2085
|
-
let y = {}, P, M = null;
|
|
2086
|
-
const m = "number format";
|
|
2087
|
-
for (let g = 0; g < R.length && (P = R[g], y = n[P] || {}, M = y[u], !U(M)); g++)
|
|
2088
|
-
kt(e, u, P, p, m);
|
|
2089
|
-
if (!U(M) || !S(P))
|
|
2090
|
-
return r ? Je : u;
|
|
2091
|
-
let d = `${P}__${u}`;
|
|
2092
|
-
Ke(L) || (d = `${d}__${JSON.stringify(L)}`);
|
|
2093
|
-
let T = i.get(d);
|
|
2094
|
-
return T || (T = new Intl.NumberFormat(P, J({}, M, L)), i.set(d, T)), C ? T.formatToParts(_) : T.format(_);
|
|
2095
|
-
}
|
|
2096
|
-
const $n = [
|
|
2097
|
-
"localeMatcher",
|
|
2098
|
-
"style",
|
|
2099
|
-
"currency",
|
|
2100
|
-
"currencyDisplay",
|
|
2101
|
-
"currencySign",
|
|
2102
|
-
"useGrouping",
|
|
2103
|
-
"minimumIntegerDigits",
|
|
2104
|
-
"minimumFractionDigits",
|
|
2105
|
-
"maximumFractionDigits",
|
|
2106
|
-
"minimumSignificantDigits",
|
|
2107
|
-
"maximumSignificantDigits",
|
|
2108
|
-
"compactDisplay",
|
|
2109
|
-
"notation",
|
|
2110
|
-
"signDisplay",
|
|
2111
|
-
"unit",
|
|
2112
|
-
"unitDisplay",
|
|
2113
|
-
"roundingMode",
|
|
2114
|
-
"roundingPriority",
|
|
2115
|
-
"roundingIncrement",
|
|
2116
|
-
"trailingZeroDisplay"
|
|
2117
|
-
];
|
|
2118
|
-
function Nt(...e) {
|
|
2119
|
-
const [t, n, r, s] = e, l = {};
|
|
2120
|
-
let c = {};
|
|
2121
|
-
if (!K(t))
|
|
2122
|
-
throw oe(ne.INVALID_ARGUMENT);
|
|
2123
|
-
const i = t;
|
|
2124
|
-
return S(n) ? l.key = n : U(n) && Object.keys(n).forEach((u) => {
|
|
2125
|
-
$n.includes(u) ? c[u] = n[u] : l[u] = n[u];
|
|
2126
|
-
}), S(r) ? l.locale = r : U(r) && (c = r), U(s) && (c = s), [l.key || "", i, l, c];
|
|
2127
|
-
}
|
|
2128
|
-
function nn(e, t, n) {
|
|
2129
|
-
const r = e;
|
|
2130
|
-
for (const s in n) {
|
|
2131
|
-
const l = `${t}__${s}`;
|
|
2132
|
-
r.__numberFormatters.has(l) && r.__numberFormatters.delete(l);
|
|
2133
|
-
}
|
|
2134
|
-
}
|
|
2135
|
-
/*!
|
|
2136
|
-
* vue-i18n v9.13.1
|
|
2137
|
-
* (c) 2024 kazuya kawaguchi
|
|
2138
|
-
* Released under the MIT License.
|
|
2139
|
-
*/
|
|
2140
|
-
const Xs = "9.13.1", xn = Ts.__EXTEND_POINT__, le = Be(xn);
|
|
2141
|
-
le(), le(), le(), le(), le(), le(), le(), le(), le();
|
|
2142
|
-
const jn = ne.__EXTEND_POINT__, q = Be(jn), z = {
|
|
2143
|
-
// composer module errors
|
|
2144
|
-
UNEXPECTED_RETURN_TYPE: jn,
|
|
2145
|
-
// 24
|
|
2146
|
-
// legacy module errors
|
|
2147
|
-
INVALID_ARGUMENT: q(),
|
|
2148
|
-
// 25
|
|
2149
|
-
// i18n module errors
|
|
2150
|
-
MUST_BE_CALL_SETUP_TOP: q(),
|
|
2151
|
-
// 26
|
|
2152
|
-
NOT_INSTALLED: q(),
|
|
2153
|
-
// 27
|
|
2154
|
-
NOT_AVAILABLE_IN_LEGACY_MODE: q(),
|
|
2155
|
-
// 28
|
|
2156
|
-
// directive module errors
|
|
2157
|
-
REQUIRED_VALUE: q(),
|
|
2158
|
-
// 29
|
|
2159
|
-
INVALID_VALUE: q(),
|
|
2160
|
-
// 30
|
|
2161
|
-
// vue-devtools errors
|
|
2162
|
-
CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN: q(),
|
|
2163
|
-
// 31
|
|
2164
|
-
NOT_INSTALLED_WITH_PROVIDE: q(),
|
|
2165
|
-
// 32
|
|
2166
|
-
// unexpected error
|
|
2167
|
-
UNEXPECTED_ERROR: q(),
|
|
2168
|
-
// 33
|
|
2169
|
-
// not compatible legacy vue-i18n constructor
|
|
2170
|
-
NOT_COMPATIBLE_LEGACY_VUE_I18N: q(),
|
|
2171
|
-
// 34
|
|
2172
|
-
// bridge support vue 2.x only
|
|
2173
|
-
BRIDGE_SUPPORT_VUE_2_ONLY: q(),
|
|
2174
|
-
// 35
|
|
2175
|
-
// need to define `i18n` option in `allowComposition: true` and `useScope: 'local' at `useI18n``
|
|
2176
|
-
MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION: q(),
|
|
2177
|
-
// 36
|
|
2178
|
-
// Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly
|
|
2179
|
-
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: q(),
|
|
2180
|
-
// 37
|
|
2181
|
-
// for enhancement
|
|
2182
|
-
__EXTEND_POINT__: q()
|
|
2183
|
-
// 38
|
|
2184
|
-
};
|
|
2185
|
-
function te(e, ...t) {
|
|
2186
|
-
return Ie(e, null, void 0);
|
|
2187
|
-
}
|
|
2188
|
-
const pt = /* @__PURE__ */ fe("__translateVNode"), Lt = /* @__PURE__ */ fe("__datetimeParts"), ht = /* @__PURE__ */ fe("__numberParts"), Gs = fe("__setPluralRules"), Ys = /* @__PURE__ */ fe("__injectWithOption"), Tt = /* @__PURE__ */ fe("__dispose");
|
|
2189
|
-
function ve(e) {
|
|
2190
|
-
if (!w(e))
|
|
2191
|
-
return e;
|
|
2192
|
-
for (const t in e)
|
|
2193
|
-
if (He(e, t))
|
|
2194
|
-
if (!t.includes("."))
|
|
2195
|
-
w(e[t]) && ve(e[t]);
|
|
2196
|
-
else {
|
|
2197
|
-
const n = t.split("."), r = n.length - 1;
|
|
2198
|
-
let s = e, l = !1;
|
|
2199
|
-
for (let c = 0; c < r; c++) {
|
|
2200
|
-
if (n[c] in s || (s[n[c]] = {}), !w(s[n[c]])) {
|
|
2201
|
-
l = !0;
|
|
2202
|
-
break;
|
|
2203
|
-
}
|
|
2204
|
-
s = s[n[c]];
|
|
2205
|
-
}
|
|
2206
|
-
l || (s[n[r]] = e[t], delete e[t]), w(s[n[r]]) && ve(s[n[r]]);
|
|
2207
|
-
}
|
|
2208
|
-
return e;
|
|
2209
|
-
}
|
|
2210
|
-
function Hn(e, t) {
|
|
2211
|
-
const { messages: n, __i18n: r, messageResolver: s, flatJson: l } = t, c = U(n) ? n : X(r) ? {} : { [e]: {} };
|
|
2212
|
-
if (X(r) && r.forEach((i) => {
|
|
2213
|
-
if ("locale" in i && "resource" in i) {
|
|
2214
|
-
const { locale: u, resource: _ } = i;
|
|
2215
|
-
u ? (c[u] = c[u] || {}, Ve(_, c[u])) : Ve(_, c);
|
|
2216
|
-
} else
|
|
2217
|
-
S(i) && Ve(JSON.parse(i), c);
|
|
2218
|
-
}), s == null && l)
|
|
2219
|
-
for (const i in c)
|
|
2220
|
-
He(c, i) && ve(c[i]);
|
|
2221
|
-
return c;
|
|
2222
|
-
}
|
|
2223
|
-
function Xn(e) {
|
|
2224
|
-
return e.type;
|
|
2225
|
-
}
|
|
2226
|
-
function Ks(e, t, n) {
|
|
2227
|
-
let r = w(t.messages) ? t.messages : {};
|
|
2228
|
-
"__i18nGlobal" in n && (r = Hn(e.locale.value, {
|
|
2229
|
-
messages: r,
|
|
2230
|
-
__i18n: n.__i18nGlobal
|
|
2231
|
-
}));
|
|
2232
|
-
const s = Object.keys(r);
|
|
2233
|
-
s.length && s.forEach((l) => {
|
|
2234
|
-
e.mergeLocaleMessage(l, r[l]);
|
|
2235
|
-
});
|
|
2236
|
-
{
|
|
2237
|
-
if (w(t.datetimeFormats)) {
|
|
2238
|
-
const l = Object.keys(t.datetimeFormats);
|
|
2239
|
-
l.length && l.forEach((c) => {
|
|
2240
|
-
e.mergeDateTimeFormat(c, t.datetimeFormats[c]);
|
|
2241
|
-
});
|
|
2242
|
-
}
|
|
2243
|
-
if (w(t.numberFormats)) {
|
|
2244
|
-
const l = Object.keys(t.numberFormats);
|
|
2245
|
-
l.length && l.forEach((c) => {
|
|
2246
|
-
e.mergeNumberFormat(c, t.numberFormats[c]);
|
|
2247
|
-
});
|
|
2248
|
-
}
|
|
2249
|
-
}
|
|
2250
|
-
}
|
|
2251
|
-
function rn(e) {
|
|
2252
|
-
return lr(or, null, e, 0);
|
|
2253
|
-
}
|
|
2254
|
-
const sn = "__INTLIFY_META__", an = () => [], Bs = () => !1;
|
|
2255
|
-
let ln = 0;
|
|
2256
|
-
function on(e) {
|
|
2257
|
-
return (t, n, r, s) => e(n, r, yt() || void 0, s);
|
|
2258
|
-
}
|
|
2259
|
-
const Js = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
2260
|
-
const e = yt();
|
|
2261
|
-
let t = null;
|
|
2262
|
-
return e && (t = Xn(e)[sn]) ? { [sn]: t } : null;
|
|
2263
|
-
};
|
|
2264
|
-
function Gn(e = {}, t) {
|
|
2265
|
-
const { __root: n, __injectWithOption: r } = e, s = n === void 0, l = e.flatJson, c = xe ? Ot : ar, i = !!e.translateExistCompatible;
|
|
2266
|
-
let u = x(e.inheritLocale) ? e.inheritLocale : !0;
|
|
2267
|
-
const _ = c(
|
|
2268
|
-
// prettier-ignore
|
|
2269
|
-
n && u ? n.locale.value : S(e.locale) ? e.locale : Ge
|
|
2270
|
-
), O = c(
|
|
2271
|
-
// prettier-ignore
|
|
2272
|
-
n && u ? n.fallbackLocale.value : S(e.fallbackLocale) || X(e.fallbackLocale) || U(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : _.value
|
|
2273
|
-
), L = c(Hn(_.value, e)), p = c(U(e.datetimeFormats) ? e.datetimeFormats : { [_.value]: {} }), C = c(U(e.numberFormats) ? e.numberFormats : { [_.value]: {} });
|
|
2274
|
-
let A = n ? n.missingWarn : x(e.missingWarn) || je(e.missingWarn) ? e.missingWarn : !0, R = n ? n.fallbackWarn : x(e.fallbackWarn) || je(e.fallbackWarn) ? e.fallbackWarn : !0, y = n ? n.fallbackRoot : x(e.fallbackRoot) ? e.fallbackRoot : !0, P = !!e.fallbackFormat, M = j(e.missing) ? e.missing : null, m = j(e.missing) ? on(e.missing) : null, d = j(e.postTranslation) ? e.postTranslation : null, T = n ? n.warnHtmlMessage : x(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, g = !!e.escapeParameter;
|
|
2275
|
-
const I = n ? n.modifiers : U(e.modifiers) ? e.modifiers : {};
|
|
2276
|
-
let b = e.pluralRules || n && n.pluralRules, h;
|
|
2277
|
-
h = (() => {
|
|
2278
|
-
s && Bt(null);
|
|
2279
|
-
const f = {
|
|
2280
|
-
version: Xs,
|
|
2281
|
-
locale: _.value,
|
|
2282
|
-
fallbackLocale: O.value,
|
|
2283
|
-
messages: L.value,
|
|
2284
|
-
modifiers: I,
|
|
2285
|
-
pluralRules: b,
|
|
2286
|
-
missing: m === null ? void 0 : m,
|
|
2287
|
-
missingWarn: A,
|
|
2288
|
-
fallbackWarn: R,
|
|
2289
|
-
fallbackFormat: P,
|
|
2290
|
-
unresolving: !0,
|
|
2291
|
-
postTranslation: d === null ? void 0 : d,
|
|
2292
|
-
warnHtmlMessage: T,
|
|
2293
|
-
escapeParameter: g,
|
|
2294
|
-
messageResolver: e.messageResolver,
|
|
2295
|
-
messageCompiler: e.messageCompiler,
|
|
2296
|
-
__meta: { framework: "vue" }
|
|
2297
|
-
};
|
|
2298
|
-
f.datetimeFormats = p.value, f.numberFormats = C.value, f.__datetimeFormatters = U(h) ? h.__datetimeFormatters : void 0, f.__numberFormatters = U(h) ? h.__numberFormatters : void 0;
|
|
2299
|
-
const N = vs(f);
|
|
2300
|
-
return s && Bt(N), N;
|
|
2301
|
-
})(), ke(h, _.value, O.value);
|
|
2302
|
-
function G() {
|
|
2303
|
-
return [
|
|
2304
|
-
_.value,
|
|
2305
|
-
O.value,
|
|
2306
|
-
L.value,
|
|
2307
|
-
p.value,
|
|
2308
|
-
C.value
|
|
2309
|
-
];
|
|
2310
|
-
}
|
|
2311
|
-
const F = Le({
|
|
2312
|
-
get: () => _.value,
|
|
2313
|
-
set: (f) => {
|
|
2314
|
-
_.value = f, h.locale = _.value;
|
|
2315
|
-
}
|
|
2316
|
-
}), Y = Le({
|
|
2317
|
-
get: () => O.value,
|
|
2318
|
-
set: (f) => {
|
|
2319
|
-
O.value = f, h.fallbackLocale = O.value, ke(h, _.value, f);
|
|
2320
|
-
}
|
|
2321
|
-
}), Ce = Le(() => L.value), ye = /* @__PURE__ */ Le(() => p.value), re = /* @__PURE__ */ Le(() => C.value);
|
|
2322
|
-
function B() {
|
|
2323
|
-
return j(d) ? d : null;
|
|
2324
|
-
}
|
|
2325
|
-
function Qe(f) {
|
|
2326
|
-
d = f, h.postTranslation = f;
|
|
2327
|
-
}
|
|
2328
|
-
function qe() {
|
|
2329
|
-
return M;
|
|
2330
|
-
}
|
|
2331
|
-
function Ze(f) {
|
|
2332
|
-
f !== null && (m = on(f)), M = f, h.missing = m;
|
|
2333
|
-
}
|
|
2334
|
-
const se = (f, N, V, H, ce, Ue) => {
|
|
2335
|
-
G();
|
|
2336
|
-
let Ne;
|
|
2337
|
-
try {
|
|
2338
|
-
s || (h.fallbackContext = n ? Ds() : void 0), Ne = f(h);
|
|
2339
|
-
} finally {
|
|
2340
|
-
s || (h.fallbackContext = void 0);
|
|
2341
|
-
}
|
|
2342
|
-
if (V !== "translate exists" && // for not `te` (e.g `t`)
|
|
2343
|
-
K(Ne) && Ne === Je || V === "translate exists" && !Ne) {
|
|
2344
|
-
const [Jn, pa] = N();
|
|
2345
|
-
return n && y ? H(n) : ce(Jn);
|
|
2346
|
-
} else {
|
|
2347
|
-
if (Ue(Ne))
|
|
2348
|
-
return Ne;
|
|
2349
|
-
throw te(z.UNEXPECTED_RETURN_TYPE);
|
|
2350
|
-
}
|
|
2351
|
-
};
|
|
2352
|
-
function Se(...f) {
|
|
2353
|
-
return se((N) => Reflect.apply(Zt, null, [N, ...f]), () => Et(...f), "translate", (N) => Reflect.apply(N.t, N, [...f]), (N) => N, (N) => S(N));
|
|
2354
|
-
}
|
|
2355
|
-
function ze(...f) {
|
|
2356
|
-
const [N, V, H] = f;
|
|
2357
|
-
if (H && !w(H))
|
|
2358
|
-
throw te(z.INVALID_ARGUMENT);
|
|
2359
|
-
return Se(N, V, J({ resolvedMessage: !0 }, H || {}));
|
|
2360
|
-
}
|
|
2361
|
-
function Me(...f) {
|
|
2362
|
-
return se((N) => Reflect.apply(zt, null, [N, ...f]), () => gt(...f), "datetime format", (N) => Reflect.apply(N.d, N, [...f]), () => Yt, (N) => S(N));
|
|
2363
|
-
}
|
|
2364
|
-
function et(...f) {
|
|
2365
|
-
return se((N) => Reflect.apply(tn, null, [N, ...f]), () => Nt(...f), "number format", (N) => Reflect.apply(N.n, N, [...f]), () => Yt, (N) => S(N));
|
|
2366
|
-
}
|
|
2367
|
-
function tt(f) {
|
|
2368
|
-
return f.map((N) => S(N) || K(N) || x(N) ? rn(String(N)) : N);
|
|
2369
|
-
}
|
|
2370
|
-
const nt = {
|
|
2371
|
-
normalize: tt,
|
|
2372
|
-
interpolate: (f) => f,
|
|
2373
|
-
type: "vnode"
|
|
2374
|
-
};
|
|
2375
|
-
function rt(...f) {
|
|
2376
|
-
return se(
|
|
2377
|
-
(N) => {
|
|
2378
|
-
let V;
|
|
2379
|
-
const H = N;
|
|
2380
|
-
try {
|
|
2381
|
-
H.processor = nt, V = Reflect.apply(Zt, null, [H, ...f]);
|
|
2382
|
-
} finally {
|
|
2383
|
-
H.processor = null;
|
|
2384
|
-
}
|
|
2385
|
-
return V;
|
|
2386
|
-
},
|
|
2387
|
-
() => Et(...f),
|
|
2388
|
-
"translate",
|
|
2389
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2390
|
-
(N) => N[pt](...f),
|
|
2391
|
-
(N) => [rn(N)],
|
|
2392
|
-
(N) => X(N)
|
|
2393
|
-
);
|
|
2394
|
-
}
|
|
2395
|
-
function Fe(...f) {
|
|
2396
|
-
return se(
|
|
2397
|
-
(N) => Reflect.apply(tn, null, [N, ...f]),
|
|
2398
|
-
() => Nt(...f),
|
|
2399
|
-
"number format",
|
|
2400
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2401
|
-
(N) => N[ht](...f),
|
|
2402
|
-
an,
|
|
2403
|
-
(N) => S(N) || X(N)
|
|
2404
|
-
);
|
|
2405
|
-
}
|
|
2406
|
-
function st(...f) {
|
|
2407
|
-
return se(
|
|
2408
|
-
(N) => Reflect.apply(zt, null, [N, ...f]),
|
|
2409
|
-
() => gt(...f),
|
|
2410
|
-
"datetime format",
|
|
2411
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2412
|
-
(N) => N[Lt](...f),
|
|
2413
|
-
an,
|
|
2414
|
-
(N) => S(N) || X(N)
|
|
2415
|
-
);
|
|
2416
|
-
}
|
|
2417
|
-
function at(f) {
|
|
2418
|
-
b = f, h.pluralRules = b;
|
|
2419
|
-
}
|
|
2420
|
-
function lt(f, N) {
|
|
2421
|
-
return se(() => {
|
|
2422
|
-
if (!f)
|
|
2423
|
-
return !1;
|
|
2424
|
-
const V = S(N) ? N : _.value, H = Ee(V), ce = h.messageResolver(H, f);
|
|
2425
|
-
return i ? ce != null : Oe(ce) || Z(ce) || S(ce);
|
|
2426
|
-
}, () => [f], "translate exists", (V) => Reflect.apply(V.te, V, [f, N]), Bs, (V) => x(V));
|
|
2427
|
-
}
|
|
2428
|
-
function ot(f) {
|
|
2429
|
-
let N = null;
|
|
2430
|
-
const V = Rn(h, O.value, _.value);
|
|
2431
|
-
for (let H = 0; H < V.length; H++) {
|
|
2432
|
-
const ce = L.value[V[H]] || {}, Ue = h.messageResolver(ce, f);
|
|
2433
|
-
if (Ue != null) {
|
|
2434
|
-
N = Ue;
|
|
2435
|
-
break;
|
|
2436
|
-
}
|
|
2437
|
-
}
|
|
2438
|
-
return N;
|
|
2439
|
-
}
|
|
2440
|
-
function Ae(f) {
|
|
2441
|
-
const N = ot(f);
|
|
2442
|
-
return N ?? (n ? n.tm(f) || {} : {});
|
|
2443
|
-
}
|
|
2444
|
-
function Ee(f) {
|
|
2445
|
-
return L.value[f] || {};
|
|
2446
|
-
}
|
|
2447
|
-
function ge(f, N) {
|
|
2448
|
-
if (l) {
|
|
2449
|
-
const V = { [f]: N };
|
|
2450
|
-
for (const H in V)
|
|
2451
|
-
He(V, H) && ve(V[H]);
|
|
2452
|
-
N = V[f];
|
|
2453
|
-
}
|
|
2454
|
-
L.value[f] = N, h.messages = L.value;
|
|
2455
|
-
}
|
|
2456
|
-
function Pe(f, N) {
|
|
2457
|
-
L.value[f] = L.value[f] || {};
|
|
2458
|
-
const V = { [f]: N };
|
|
2459
|
-
if (l)
|
|
2460
|
-
for (const H in V)
|
|
2461
|
-
He(V, H) && ve(V[H]);
|
|
2462
|
-
N = V[f], Ve(N, L.value[f]), h.messages = L.value;
|
|
2463
|
-
}
|
|
2464
|
-
function ct(f) {
|
|
2465
|
-
return p.value[f] || {};
|
|
2466
|
-
}
|
|
2467
|
-
function a(f, N) {
|
|
2468
|
-
p.value[f] = N, h.datetimeFormats = p.value, en(h, f, N);
|
|
2469
|
-
}
|
|
2470
|
-
function o(f, N) {
|
|
2471
|
-
p.value[f] = J(p.value[f] || {}, N), h.datetimeFormats = p.value, en(h, f, N);
|
|
2472
|
-
}
|
|
2473
|
-
function E(f) {
|
|
2474
|
-
return C.value[f] || {};
|
|
2475
|
-
}
|
|
2476
|
-
function k(f, N) {
|
|
2477
|
-
C.value[f] = N, h.numberFormats = C.value, nn(h, f, N);
|
|
2478
|
-
}
|
|
2479
|
-
function $(f, N) {
|
|
2480
|
-
C.value[f] = J(C.value[f] || {}, N), h.numberFormats = C.value, nn(h, f, N);
|
|
2481
|
-
}
|
|
2482
|
-
ln++, n && xe && ($e(n.locale, (f) => {
|
|
2483
|
-
u && (_.value = f, h.locale = f, ke(h, _.value, O.value));
|
|
2484
|
-
}), $e(n.fallbackLocale, (f) => {
|
|
2485
|
-
u && (O.value = f, h.fallbackLocale = f, ke(h, _.value, O.value));
|
|
2486
|
-
}));
|
|
2487
|
-
const v = {
|
|
2488
|
-
id: ln,
|
|
2489
|
-
locale: F,
|
|
2490
|
-
fallbackLocale: Y,
|
|
2491
|
-
get inheritLocale() {
|
|
2492
|
-
return u;
|
|
2493
|
-
},
|
|
2494
|
-
set inheritLocale(f) {
|
|
2495
|
-
u = f, f && n && (_.value = n.locale.value, O.value = n.fallbackLocale.value, ke(h, _.value, O.value));
|
|
2496
|
-
},
|
|
2497
|
-
get availableLocales() {
|
|
2498
|
-
return Object.keys(L.value).sort();
|
|
2499
|
-
},
|
|
2500
|
-
messages: Ce,
|
|
2501
|
-
get modifiers() {
|
|
2502
|
-
return I;
|
|
2503
|
-
},
|
|
2504
|
-
get pluralRules() {
|
|
2505
|
-
return b || {};
|
|
2506
|
-
},
|
|
2507
|
-
get isGlobal() {
|
|
2508
|
-
return s;
|
|
2509
|
-
},
|
|
2510
|
-
get missingWarn() {
|
|
2511
|
-
return A;
|
|
2512
|
-
},
|
|
2513
|
-
set missingWarn(f) {
|
|
2514
|
-
A = f, h.missingWarn = A;
|
|
2515
|
-
},
|
|
2516
|
-
get fallbackWarn() {
|
|
2517
|
-
return R;
|
|
2518
|
-
},
|
|
2519
|
-
set fallbackWarn(f) {
|
|
2520
|
-
R = f, h.fallbackWarn = R;
|
|
2521
|
-
},
|
|
2522
|
-
get fallbackRoot() {
|
|
2523
|
-
return y;
|
|
2524
|
-
},
|
|
2525
|
-
set fallbackRoot(f) {
|
|
2526
|
-
y = f;
|
|
2527
|
-
},
|
|
2528
|
-
get fallbackFormat() {
|
|
2529
|
-
return P;
|
|
2530
|
-
},
|
|
2531
|
-
set fallbackFormat(f) {
|
|
2532
|
-
P = f, h.fallbackFormat = P;
|
|
2533
|
-
},
|
|
2534
|
-
get warnHtmlMessage() {
|
|
2535
|
-
return T;
|
|
2536
|
-
},
|
|
2537
|
-
set warnHtmlMessage(f) {
|
|
2538
|
-
T = f, h.warnHtmlMessage = f;
|
|
2539
|
-
},
|
|
2540
|
-
get escapeParameter() {
|
|
2541
|
-
return g;
|
|
2542
|
-
},
|
|
2543
|
-
set escapeParameter(f) {
|
|
2544
|
-
g = f, h.escapeParameter = f;
|
|
2545
|
-
},
|
|
2546
|
-
t: Se,
|
|
2547
|
-
getLocaleMessage: Ee,
|
|
2548
|
-
setLocaleMessage: ge,
|
|
2549
|
-
mergeLocaleMessage: Pe,
|
|
2550
|
-
getPostTranslationHandler: B,
|
|
2551
|
-
setPostTranslationHandler: Qe,
|
|
2552
|
-
getMissingHandler: qe,
|
|
2553
|
-
setMissingHandler: Ze,
|
|
2554
|
-
[Gs]: at
|
|
2555
|
-
};
|
|
2556
|
-
return v.datetimeFormats = ye, v.numberFormats = re, v.rt = ze, v.te = lt, v.tm = Ae, v.d = Me, v.n = et, v.getDateTimeFormat = ct, v.setDateTimeFormat = a, v.mergeDateTimeFormat = o, v.getNumberFormat = E, v.setNumberFormat = k, v.mergeNumberFormat = $, v[Ys] = r, v[pt] = rt, v[Lt] = st, v[ht] = Fe, v;
|
|
2557
|
-
}
|
|
2558
|
-
const Rt = {
|
|
2559
|
-
tag: {
|
|
2560
|
-
type: [String, Object]
|
|
2561
|
-
},
|
|
2562
|
-
locale: {
|
|
2563
|
-
type: String
|
|
2564
|
-
},
|
|
2565
|
-
scope: {
|
|
2566
|
-
type: String,
|
|
2567
|
-
// NOTE: avoid https://github.com/microsoft/rushstack/issues/1050
|
|
2568
|
-
validator: (e) => e === "parent" || e === "global",
|
|
2569
|
-
default: "parent"
|
|
2570
|
-
/* ComponentI18nScope */
|
|
2571
|
-
},
|
|
2572
|
-
i18n: {
|
|
2573
|
-
type: Object
|
|
2574
|
-
}
|
|
2575
|
-
};
|
|
2576
|
-
function Qs({ slots: e }, t) {
|
|
2577
|
-
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, s) => [
|
|
2578
|
-
...r,
|
|
2579
|
-
// prettier-ignore
|
|
2580
|
-
...s.type === Ln ? s.children : [s]
|
|
2581
|
-
], []) : t.reduce((n, r) => {
|
|
2582
|
-
const s = e[r];
|
|
2583
|
-
return s && (n[r] = s()), n;
|
|
2584
|
-
}, {});
|
|
2585
|
-
}
|
|
2586
|
-
function Yn(e) {
|
|
2587
|
-
return Ln;
|
|
2588
|
-
}
|
|
2589
|
-
const qs = /* @__PURE__ */ Ct({
|
|
2590
|
-
/* eslint-disable */
|
|
2591
|
-
name: "i18n-t",
|
|
2592
|
-
props: J({
|
|
2593
|
-
keypath: {
|
|
2594
|
-
type: String,
|
|
2595
|
-
required: !0
|
|
2596
|
-
},
|
|
2597
|
-
plural: {
|
|
2598
|
-
type: [Number, String],
|
|
2599
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2600
|
-
validator: (e) => K(e) || !isNaN(e)
|
|
2601
|
-
}
|
|
2602
|
-
}, Rt),
|
|
2603
|
-
/* eslint-enable */
|
|
2604
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2605
|
-
setup(e, t) {
|
|
2606
|
-
const { slots: n, attrs: r } = t, s = e.i18n || Dt({
|
|
2607
|
-
useScope: e.scope,
|
|
2608
|
-
__useComponent: !0
|
|
2609
|
-
});
|
|
2610
|
-
return () => {
|
|
2611
|
-
const l = Object.keys(n).filter((L) => L !== "_"), c = {};
|
|
2612
|
-
e.locale && (c.locale = e.locale), e.plural !== void 0 && (c.plural = S(e.plural) ? +e.plural : e.plural);
|
|
2613
|
-
const i = Qs(t, l), u = s[pt](e.keypath, i, c), _ = J({}, r), O = S(e.tag) || w(e.tag) ? e.tag : Yn();
|
|
2614
|
-
return pn(O, _, u);
|
|
2615
|
-
};
|
|
2616
|
-
}
|
|
2617
|
-
}), cn = qs;
|
|
2618
|
-
function Zs(e) {
|
|
2619
|
-
return X(e) && !S(e[0]);
|
|
2620
|
-
}
|
|
2621
|
-
function Kn(e, t, n, r) {
|
|
2622
|
-
const { slots: s, attrs: l } = t;
|
|
2623
|
-
return () => {
|
|
2624
|
-
const c = { part: !0 };
|
|
2625
|
-
let i = {};
|
|
2626
|
-
e.locale && (c.locale = e.locale), S(e.format) ? c.key = e.format : w(e.format) && (S(e.format.key) && (c.key = e.format.key), i = Object.keys(e.format).reduce((p, C) => n.includes(C) ? J({}, p, { [C]: e.format[C] }) : p, {}));
|
|
2627
|
-
const u = r(e.value, c, i);
|
|
2628
|
-
let _ = [c.key];
|
|
2629
|
-
X(u) ? _ = u.map((p, C) => {
|
|
2630
|
-
const A = s[p.type], R = A ? A({ [p.type]: p.value, index: C, parts: u }) : [p.value];
|
|
2631
|
-
return Zs(R) && (R[0].key = `${p.type}-${C}`), R;
|
|
2632
|
-
}) : S(u) && (_ = [u]);
|
|
2633
|
-
const O = J({}, l), L = S(e.tag) || w(e.tag) ? e.tag : Yn();
|
|
2634
|
-
return pn(L, O, _);
|
|
2635
|
-
};
|
|
2636
|
-
}
|
|
2637
|
-
const zs = /* @__PURE__ */ Ct({
|
|
2638
|
-
/* eslint-disable */
|
|
2639
|
-
name: "i18n-n",
|
|
2640
|
-
props: J({
|
|
2641
|
-
value: {
|
|
2642
|
-
type: Number,
|
|
2643
|
-
required: !0
|
|
2644
|
-
},
|
|
2645
|
-
format: {
|
|
2646
|
-
type: [String, Object]
|
|
2647
|
-
}
|
|
2648
|
-
}, Rt),
|
|
2649
|
-
/* eslint-enable */
|
|
2650
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2651
|
-
setup(e, t) {
|
|
2652
|
-
const n = e.i18n || Dt({
|
|
2653
|
-
useScope: e.scope,
|
|
2654
|
-
__useComponent: !0
|
|
2655
|
-
});
|
|
2656
|
-
return Kn(e, t, $n, (...r) => (
|
|
2657
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2658
|
-
n[ht](...r)
|
|
2659
|
-
));
|
|
2660
|
-
}
|
|
2661
|
-
}), un = zs, ea = /* @__PURE__ */ Ct({
|
|
2662
|
-
/* eslint-disable */
|
|
2663
|
-
name: "i18n-d",
|
|
2664
|
-
props: J({
|
|
2665
|
-
value: {
|
|
2666
|
-
type: [Number, Date],
|
|
2667
|
-
required: !0
|
|
2668
|
-
},
|
|
2669
|
-
format: {
|
|
2670
|
-
type: [String, Object]
|
|
2671
|
-
}
|
|
2672
|
-
}, Rt),
|
|
2673
|
-
/* eslint-enable */
|
|
2674
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2675
|
-
setup(e, t) {
|
|
2676
|
-
const n = e.i18n || Dt({
|
|
2677
|
-
useScope: e.scope,
|
|
2678
|
-
__useComponent: !0
|
|
2679
|
-
});
|
|
2680
|
-
return Kn(e, t, Vn, (...r) => (
|
|
2681
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2682
|
-
n[Lt](...r)
|
|
2683
|
-
));
|
|
2684
|
-
}
|
|
2685
|
-
}), fn = ea;
|
|
2686
|
-
function ta(e, t) {
|
|
2687
|
-
const n = e;
|
|
2688
|
-
if (e.mode === "composition")
|
|
2689
|
-
return n.__getInstance(t) || e.global;
|
|
2690
|
-
{
|
|
2691
|
-
const r = n.__getInstance(t);
|
|
2692
|
-
return r != null ? r.__composer : e.global.__composer;
|
|
2693
|
-
}
|
|
2694
|
-
}
|
|
2695
|
-
function na(e) {
|
|
2696
|
-
const t = (c) => {
|
|
2697
|
-
const { instance: i, modifiers: u, value: _ } = c;
|
|
2698
|
-
if (!i || !i.$)
|
|
2699
|
-
throw te(z.UNEXPECTED_ERROR);
|
|
2700
|
-
const O = ta(e, i.$), L = mn(_);
|
|
2701
|
-
return [
|
|
2702
|
-
Reflect.apply(O.t, O, [..._n(L)]),
|
|
2703
|
-
O
|
|
2704
|
-
];
|
|
2705
|
-
};
|
|
2706
|
-
return {
|
|
2707
|
-
created: (c, i) => {
|
|
2708
|
-
const [u, _] = t(i);
|
|
2709
|
-
xe && e.global === _ && (c.__i18nWatcher = $e(_.locale, () => {
|
|
2710
|
-
i.instance && i.instance.$forceUpdate();
|
|
2711
|
-
})), c.__composer = _, c.textContent = u;
|
|
2712
|
-
},
|
|
2713
|
-
unmounted: (c) => {
|
|
2714
|
-
xe && c.__i18nWatcher && (c.__i18nWatcher(), c.__i18nWatcher = void 0, delete c.__i18nWatcher), c.__composer && (c.__composer = void 0, delete c.__composer);
|
|
2715
|
-
},
|
|
2716
|
-
beforeUpdate: (c, { value: i }) => {
|
|
2717
|
-
if (c.__composer) {
|
|
2718
|
-
const u = c.__composer, _ = mn(i);
|
|
2719
|
-
c.textContent = Reflect.apply(u.t, u, [
|
|
2720
|
-
..._n(_)
|
|
2721
|
-
]);
|
|
2722
|
-
}
|
|
2723
|
-
},
|
|
2724
|
-
getSSRProps: (c) => {
|
|
2725
|
-
const [i] = t(c);
|
|
2726
|
-
return { textContent: i };
|
|
2727
|
-
}
|
|
2728
|
-
};
|
|
2729
|
-
}
|
|
2730
|
-
function mn(e) {
|
|
2731
|
-
if (S(e))
|
|
2732
|
-
return { path: e };
|
|
2733
|
-
if (U(e)) {
|
|
2734
|
-
if (!("path" in e))
|
|
2735
|
-
throw te(z.REQUIRED_VALUE, "path");
|
|
2736
|
-
return e;
|
|
2737
|
-
} else
|
|
2738
|
-
throw te(z.INVALID_VALUE);
|
|
2739
|
-
}
|
|
2740
|
-
function _n(e) {
|
|
2741
|
-
const { path: t, locale: n, args: r, choice: s, plural: l } = e, c = {}, i = r || {};
|
|
2742
|
-
return S(n) && (c.locale = n), K(s) && (c.plural = s), K(l) && (c.plural = l), [t, i, c];
|
|
2743
|
-
}
|
|
2744
|
-
function ra(e, t, ...n) {
|
|
2745
|
-
const r = U(n[0]) ? n[0] : {}, s = !!r.useI18nComponentName;
|
|
2746
|
-
(x(r.globalInstall) ? r.globalInstall : !0) && ([s ? "i18n" : cn.name, "I18nT"].forEach((c) => e.component(c, cn)), [un.name, "I18nN"].forEach((c) => e.component(c, un)), [fn.name, "I18nD"].forEach((c) => e.component(c, fn))), e.directive("t", na(t));
|
|
2747
|
-
}
|
|
2748
|
-
const sa = /* @__PURE__ */ fe("global-vue-i18n");
|
|
2749
|
-
function aa(e = {}, t) {
|
|
2750
|
-
const n = x(e.globalInjection) ? e.globalInjection : !0, r = !0, s = /* @__PURE__ */ new Map(), [l, c] = la(e), i = /* @__PURE__ */ fe("");
|
|
2751
|
-
function u(L) {
|
|
2752
|
-
return s.get(L) || null;
|
|
2753
|
-
}
|
|
2754
|
-
function _(L, p) {
|
|
2755
|
-
s.set(L, p);
|
|
2756
|
-
}
|
|
2757
|
-
function O(L) {
|
|
2758
|
-
s.delete(L);
|
|
2759
|
-
}
|
|
2760
|
-
{
|
|
2761
|
-
const L = {
|
|
2762
|
-
// mode
|
|
2763
|
-
get mode() {
|
|
2764
|
-
return "composition";
|
|
2765
|
-
},
|
|
2766
|
-
// allowComposition
|
|
2767
|
-
get allowComposition() {
|
|
2768
|
-
return r;
|
|
2769
|
-
},
|
|
2770
|
-
// install plugin
|
|
2771
|
-
async install(p, ...C) {
|
|
2772
|
-
if (p.__VUE_I18N_SYMBOL__ = i, p.provide(p.__VUE_I18N_SYMBOL__, L), U(C[0])) {
|
|
2773
|
-
const y = C[0];
|
|
2774
|
-
L.__composerExtend = y.__composerExtend, L.__vueI18nExtend = y.__vueI18nExtend;
|
|
2775
|
-
}
|
|
2776
|
-
let A = null;
|
|
2777
|
-
n && (A = da(p, L.global)), ra(p, L, ...C);
|
|
2778
|
-
const R = p.unmount;
|
|
2779
|
-
p.unmount = () => {
|
|
2780
|
-
A && A(), L.dispose(), R();
|
|
2781
|
-
};
|
|
2782
|
-
},
|
|
2783
|
-
// global accessor
|
|
2784
|
-
get global() {
|
|
2785
|
-
return c;
|
|
2786
|
-
},
|
|
2787
|
-
dispose() {
|
|
2788
|
-
l.stop();
|
|
2789
|
-
},
|
|
2790
|
-
// @internal
|
|
2791
|
-
__instances: s,
|
|
2792
|
-
// @internal
|
|
2793
|
-
__getInstance: u,
|
|
2794
|
-
// @internal
|
|
2795
|
-
__setInstance: _,
|
|
2796
|
-
// @internal
|
|
2797
|
-
__deleteInstance: O
|
|
2798
|
-
};
|
|
2799
|
-
return L;
|
|
2800
|
-
}
|
|
2801
|
-
}
|
|
2802
|
-
function Dt(e = {}) {
|
|
2803
|
-
const t = yt();
|
|
2804
|
-
if (t == null)
|
|
2805
|
-
throw te(z.MUST_BE_CALL_SETUP_TOP);
|
|
2806
|
-
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
2807
|
-
throw te(z.NOT_INSTALLED);
|
|
2808
|
-
const n = oa(t), r = ia(n), s = Xn(t), l = ca(e, s);
|
|
2809
|
-
if (l === "global")
|
|
2810
|
-
return Ks(r, e, s), r;
|
|
2811
|
-
if (l === "parent") {
|
|
2812
|
-
let u = ua(n, t, e.__useComponent);
|
|
2813
|
-
return u == null && (u = r), u;
|
|
2814
|
-
}
|
|
2815
|
-
const c = n;
|
|
2816
|
-
let i = c.__getInstance(t);
|
|
2817
|
-
if (i == null) {
|
|
2818
|
-
const u = J({}, e);
|
|
2819
|
-
"__i18n" in s && (u.__i18n = s.__i18n), r && (u.__root = r), i = Gn(u), c.__composerExtend && (i[Tt] = c.__composerExtend(i)), ma(c, t, i), c.__setInstance(t, i);
|
|
2820
|
-
}
|
|
2821
|
-
return i;
|
|
2822
|
-
}
|
|
2823
|
-
function la(e, t, n) {
|
|
2824
|
-
const r = bt();
|
|
2825
|
-
{
|
|
2826
|
-
const s = r.run(() => Gn(e));
|
|
2827
|
-
if (s == null)
|
|
2828
|
-
throw te(z.UNEXPECTED_ERROR);
|
|
2829
|
-
return [r, s];
|
|
2830
|
-
}
|
|
2831
|
-
}
|
|
2832
|
-
function oa(e) {
|
|
2833
|
-
{
|
|
2834
|
-
const t = Nn(e.isCE ? sa : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2835
|
-
if (!t)
|
|
2836
|
-
throw te(e.isCE ? z.NOT_INSTALLED_WITH_PROVIDE : z.UNEXPECTED_ERROR);
|
|
2837
|
-
return t;
|
|
2838
|
-
}
|
|
2839
|
-
}
|
|
2840
|
-
function ca(e, t) {
|
|
2841
|
-
return Ke(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
2842
|
-
}
|
|
2843
|
-
function ia(e) {
|
|
2844
|
-
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
2845
|
-
}
|
|
2846
|
-
function ua(e, t, n = !1) {
|
|
2847
|
-
let r = null;
|
|
2848
|
-
const s = t.root;
|
|
2849
|
-
let l = fa(t, n);
|
|
2850
|
-
for (; l != null; ) {
|
|
2851
|
-
const c = e;
|
|
2852
|
-
if (e.mode === "composition" && (r = c.__getInstance(l)), r != null || s === l)
|
|
2853
|
-
break;
|
|
2854
|
-
l = l.parent;
|
|
2855
|
-
}
|
|
2856
|
-
return r;
|
|
2857
|
-
}
|
|
2858
|
-
function fa(e, t = !1) {
|
|
2859
|
-
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2860
|
-
}
|
|
2861
|
-
function ma(e, t, n) {
|
|
2862
|
-
rr(() => {
|
|
2863
|
-
}, t), sr(() => {
|
|
2864
|
-
const r = n;
|
|
2865
|
-
e.__deleteInstance(t);
|
|
2866
|
-
const s = r[Tt];
|
|
2867
|
-
s && (s(), delete r[Tt]);
|
|
2868
|
-
}, t);
|
|
2869
|
-
}
|
|
2870
|
-
const _a = [
|
|
2871
|
-
"locale",
|
|
2872
|
-
"fallbackLocale",
|
|
2873
|
-
"availableLocales"
|
|
2874
|
-
], dn = ["t", "rt", "d", "n", "tm", "te"];
|
|
2875
|
-
function da(e, t) {
|
|
2876
|
-
const n = /* @__PURE__ */ Object.create(null);
|
|
2877
|
-
return _a.forEach((s) => {
|
|
2878
|
-
const l = Object.getOwnPropertyDescriptor(t, s);
|
|
2879
|
-
if (!l)
|
|
2880
|
-
throw te(z.UNEXPECTED_ERROR);
|
|
2881
|
-
const c = Te(l.value) ? {
|
|
2882
|
-
get() {
|
|
2883
|
-
return l.value.value;
|
|
2884
|
-
},
|
|
2885
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2886
|
-
set(i) {
|
|
2887
|
-
l.value.value = i;
|
|
2888
|
-
}
|
|
2889
|
-
} : {
|
|
2890
|
-
get() {
|
|
2891
|
-
return l.get && l.get();
|
|
2892
|
-
}
|
|
2893
|
-
};
|
|
2894
|
-
Object.defineProperty(n, s, c);
|
|
2895
|
-
}), e.config.globalProperties.$i18n = n, dn.forEach((s) => {
|
|
2896
|
-
const l = Object.getOwnPropertyDescriptor(t, s);
|
|
2897
|
-
if (!l || !l.value)
|
|
2898
|
-
throw te(z.UNEXPECTED_ERROR);
|
|
2899
|
-
Object.defineProperty(e.config.globalProperties, `$${s}`, l);
|
|
2900
|
-
}), () => {
|
|
2901
|
-
delete e.config.globalProperties.$i18n, dn.forEach((s) => {
|
|
2902
|
-
delete e.config.globalProperties[`$${s}`];
|
|
2903
|
-
});
|
|
2904
|
-
};
|
|
2905
|
-
}
|
|
2906
|
-
Ss(Vs);
|
|
2907
|
-
As(cs);
|
|
2908
|
-
Ps(Rn);
|
|
2909
|
-
{
|
|
2910
|
-
const e = Lr();
|
|
2911
|
-
e.__INTLIFY__ = !0, Ns(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2912
|
-
}
|
|
2913
|
-
const Bn = "en", Ea = document.documentElement.lang.slice(0, 2) || Bn, ga = aa({
|
|
2914
|
-
warnHtmlMessage: !1,
|
|
2915
|
-
fallbackRootWithEmptyString: !1,
|
|
2916
|
-
silentTranslationWarn: !0,
|
|
2917
|
-
allowComposition: !0,
|
|
2918
|
-
legacy: !1,
|
|
2919
|
-
globalInjection: !0,
|
|
2920
|
-
locale: Ea,
|
|
2921
|
-
fallbackLocale: Bn
|
|
2922
|
-
/*numberFormats: {
|
|
2923
|
-
'da': {
|
|
2924
|
-
currency: {
|
|
2925
|
-
style: 'currency', currency: 'DKK', useGrouping: true, currencyDisplay: 'symbol'
|
|
2926
|
-
}
|
|
2927
|
-
}
|
|
2928
|
-
}*/
|
|
2929
|
-
}), Na = ga.global;
|
|
2930
|
-
function Ia(e) {
|
|
2931
|
-
for (const t in e)
|
|
2932
|
-
Na.setLocaleMessage(t, e[t]);
|
|
2933
|
-
}
|
|
2934
|
-
function Ca(e) {
|
|
2935
|
-
return { all: e = e || /* @__PURE__ */ new Map(), on: function(t, n) {
|
|
2936
|
-
var r = e.get(t);
|
|
2937
|
-
r ? r.push(n) : e.set(t, [n]);
|
|
2938
|
-
}, off: function(t, n) {
|
|
2939
|
-
var r = e.get(t);
|
|
2940
|
-
r && (n ? r.splice(r.indexOf(n) >>> 0, 1) : e.set(t, []));
|
|
2941
|
-
}, emit: function(t, n) {
|
|
2942
|
-
var r = e.get(t);
|
|
2943
|
-
r && r.slice().map(function(s) {
|
|
2944
|
-
s(n);
|
|
2945
|
-
}), (r = e.get("*")) && r.slice().map(function(s) {
|
|
2946
|
-
s(t, n);
|
|
2947
|
-
});
|
|
2948
|
-
} };
|
|
2949
|
-
}
|
|
2950
|
-
export {
|
|
2951
|
-
cn as T,
|
|
2952
|
-
Na as a,
|
|
2953
|
-
Ia as b,
|
|
2954
|
-
ha as c,
|
|
2955
|
-
Ta as d,
|
|
2956
|
-
ga as i,
|
|
2957
|
-
Oa as l,
|
|
2958
|
-
Ca as m,
|
|
2959
|
-
ba as s,
|
|
2960
|
-
Dt as u
|
|
2961
|
-
};
|
|
2962
|
-
//# sourceMappingURL=mitt-QLRlCcPH.js.map
|