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