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