@konnectio/core 4.0.62 → 4.0.64
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-8uyqR4s2.js → ActionField-D28Pe5Bb.js} +33 -25
- package/dist/ActionField-D28Pe5Bb.js.br +0 -0
- package/dist/{AvailabilitySkeleton-DR0TlG1c.js → AvailabilitySkeleton-BGEhEqa-.js} +123 -115
- package/dist/AvailabilitySkeleton-BGEhEqa-.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-IMAsOOYG.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CFzvon5m.js} +1089 -1081
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CFzvon5m.js.br +0 -0
- package/dist/{CheckoutWindow-b6nqgL-q.js → CheckoutWindow-Cv7p0DrF.js} +174 -166
- package/dist/CheckoutWindow-Cv7p0DrF.js.br +0 -0
- package/dist/{ErrorMessage-CTB9P7th.js → ErrorMessage-T11Ou3eh.js} +24 -16
- package/dist/ErrorMessage-T11Ou3eh.js.br +0 -0
- package/dist/EventAvailabilityForm-DeqQKdKV.js +125 -0
- package/dist/EventAvailabilityForm-DeqQKdKV.js.br +0 -0
- package/dist/Field-DcoRYqr8.js +58 -0
- package/dist/Field-DcoRYqr8.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-C-2VAK1P.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B53ZPSma.js} +2031 -2022
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B53ZPSma.js.br +0 -0
- package/dist/TermsOfService-CL0zaNw_.js +44 -0
- package/dist/TermsOfService-CL0zaNw_.js.br +0 -0
- package/dist/_-C5tf0vwv.js +20 -0
- package/dist/_.vue_vue_type_style_index_0_lang-BWAizmh6.js +77 -0
- package/dist/_.vue_vue_type_style_index_0_lang-BWAizmh6.js.br +0 -0
- package/dist/{_commonjsHelpers-DZ_3pocK.js → _commonjsHelpers-BeCRh3Xf.js} +618 -558
- package/dist/_commonjsHelpers-BeCRh3Xf.js.br +0 -0
- package/dist/{_sentry-release-injection-file-gnd2S326.js → _sentry-release-injection-file-CY9ljBue.js} +1643 -1635
- package/dist/_sentry-release-injection-file-CY9ljBue.js.br +0 -0
- package/dist/availability.js +67 -59
- package/dist/availability.js.br +0 -0
- package/dist/deep-link.js +29 -21
- package/dist/deep-link.js.br +0 -0
- package/dist/event.js +276 -260
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +71 -63
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +137 -129
- package/dist/gift-card.js.br +0 -0
- package/dist/giftCard-CHf9cbmB.js +134 -0
- package/dist/giftCard-CHf9cbmB.js.br +0 -0
- package/dist/hotel.js +812 -803
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-BNjra0SH.js → masonry.plugin-q1wqMEhq.js} +860 -852
- package/dist/masonry.plugin-q1wqMEhq.js.br +0 -0
- package/dist/{mitt-B7XZkC8D.js → mitt-CZC0Vuw7.js} +505 -497
- package/dist/mitt-CZC0Vuw7.js.br +0 -0
- package/dist/polyfill.js +6472 -6259
- package/dist/polyfill.js.br +0 -0
- package/dist/{style-lYuGbuqk.js → style-Di3bMYae.js} +392 -384
- package/dist/style-Di3bMYae.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +8 -8
- package/dist/ActionField-8uyqR4s2.js.br +0 -0
- package/dist/AvailabilitySkeleton-DR0TlG1c.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-IMAsOOYG.js.br +0 -0
- package/dist/CheckoutWindow-b6nqgL-q.js.br +0 -0
- package/dist/ErrorMessage-CTB9P7th.js.br +0 -0
- package/dist/EventAvailabilityForm-Dz_XUv-P.js +0 -117
- package/dist/EventAvailabilityForm-Dz_XUv-P.js.br +0 -0
- package/dist/Field-D74LzwJ5.js +0 -50
- package/dist/Field-D74LzwJ5.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-C-2VAK1P.js.br +0 -0
- package/dist/TermsOfService-BWi7ax17.js +0 -36
- package/dist/TermsOfService-BWi7ax17.js.br +0 -0
- package/dist/_-D5EdBcrp.js +0 -12
- package/dist/_.vue_vue_type_style_index_0_lang-DXnzUVHn.js +0 -69
- package/dist/_.vue_vue_type_style_index_0_lang-DXnzUVHn.js.br +0 -0
- package/dist/_commonjsHelpers-DZ_3pocK.js.br +0 -0
- package/dist/_sentry-release-injection-file-gnd2S326.js.br +0 -0
- package/dist/giftCard-Dl1tPQsP.js +0 -126
- package/dist/giftCard-Dl1tPQsP.js.br +0 -0
- package/dist/masonry.plugin-BNjra0SH.js.br +0 -0
- package/dist/mitt-B7XZkC8D.js.br +0 -0
- package/dist/style-lYuGbuqk.js.br +0 -0
|
@@ -1,38 +1,46 @@
|
|
|
1
|
-
import { ae as
|
|
1
|
+
import { ae as Tt, r as It, af as dn, ag as En, v as he, ah as Ot, U as Jn, ai as Qn, G as gn, z as $e, N as qn, a1 as Zn, a2 as zn, D as er, aj as tr, c as pe, d as Ct, J as Nn, H as yt, o as nr, O as rr, F as Ln, a7 as sr, f as ar, L as lr } from "./_sentry-release-injection-file-CY9ljBue.js";
|
|
2
2
|
(function() {
|
|
3
3
|
try {
|
|
4
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] = "
|
|
5
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "ee9e776b-87b9-464b-ba90-c69a28265e94", e._sentryDebugIdIdentifier = "sentry-dbid-ee9e776b-87b9-464b-ba90-c69a28265e94");
|
|
6
6
|
} catch {
|
|
7
7
|
}
|
|
8
8
|
})();
|
|
9
|
-
|
|
9
|
+
{
|
|
10
|
+
var Ue = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
11
|
+
Ue._sentryModuleMetadata = Ue._sentryModuleMetadata || {}, Ue._sentryModuleMetadata[new Error().stack] = Object.assign(
|
|
12
|
+
{},
|
|
13
|
+
Ue._sentryModuleMetadata[new Error().stack],
|
|
14
|
+
{ "_sentryBundlerPluginAppKey:konnectio-frontend-core": !0 }
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
var or = !1;
|
|
10
18
|
/*!
|
|
11
19
|
* pinia v2.1.7
|
|
12
20
|
* (c) 2023 Eduardo San Martin Morote
|
|
13
21
|
* @license MIT
|
|
14
22
|
*/
|
|
15
|
-
let
|
|
16
|
-
const Ge = (e) =>
|
|
23
|
+
let pn;
|
|
24
|
+
const Ge = (e) => pn = e, bn = (
|
|
17
25
|
/* istanbul ignore next */
|
|
18
26
|
Symbol()
|
|
19
27
|
);
|
|
20
|
-
function
|
|
28
|
+
function _t(e) {
|
|
21
29
|
return e && typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" && typeof e.toJSON != "function";
|
|
22
30
|
}
|
|
23
31
|
var ke;
|
|
24
32
|
(function(e) {
|
|
25
33
|
e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
|
|
26
34
|
})(ke || (ke = {}));
|
|
27
|
-
function
|
|
28
|
-
const e =
|
|
35
|
+
function Na() {
|
|
36
|
+
const e = Tt(!0), t = e.run(() => It({}));
|
|
29
37
|
let n = [], r = [];
|
|
30
|
-
const s =
|
|
38
|
+
const s = dn({
|
|
31
39
|
install(l) {
|
|
32
|
-
Ge(s), s._a = l, l.provide(
|
|
40
|
+
Ge(s), s._a = l, l.provide(bn, s), l.config.globalProperties.$pinia = s, r.forEach((c) => n.push(c)), r = [];
|
|
33
41
|
},
|
|
34
42
|
use(l) {
|
|
35
|
-
return !this._a && !
|
|
43
|
+
return !this._a && !or ? r.push(l) : n.push(l), this;
|
|
36
44
|
},
|
|
37
45
|
_p: n,
|
|
38
46
|
// it's actually undefined here
|
|
@@ -44,58 +52,58 @@ function ga() {
|
|
|
44
52
|
});
|
|
45
53
|
return s;
|
|
46
54
|
}
|
|
47
|
-
const
|
|
55
|
+
const hn = () => {
|
|
48
56
|
};
|
|
49
|
-
function
|
|
57
|
+
function Mt(e, t, n, r = hn) {
|
|
50
58
|
e.push(t);
|
|
51
59
|
const s = () => {
|
|
52
60
|
const l = e.indexOf(t);
|
|
53
61
|
l > -1 && (e.splice(l, 1), r());
|
|
54
62
|
};
|
|
55
|
-
return !n &&
|
|
63
|
+
return !n && Zn() && zn(s), s;
|
|
56
64
|
}
|
|
57
65
|
function Le(e, ...t) {
|
|
58
66
|
e.slice().forEach((n) => {
|
|
59
67
|
n(...t);
|
|
60
68
|
});
|
|
61
69
|
}
|
|
62
|
-
const
|
|
63
|
-
function
|
|
70
|
+
const cr = (e) => e();
|
|
71
|
+
function mt(e, t) {
|
|
64
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);
|
|
65
73
|
for (const n in t) {
|
|
66
74
|
if (!t.hasOwnProperty(n))
|
|
67
75
|
continue;
|
|
68
76
|
const r = t[n], s = e[n];
|
|
69
|
-
|
|
77
|
+
_t(s) && _t(r) && e.hasOwnProperty(n) && !he(r) && !Ot(r) ? e[n] = mt(s, r) : e[n] = r;
|
|
70
78
|
}
|
|
71
79
|
return e;
|
|
72
80
|
}
|
|
73
|
-
const
|
|
81
|
+
const ir = (
|
|
74
82
|
/* istanbul ignore next */
|
|
75
83
|
Symbol()
|
|
76
84
|
);
|
|
77
|
-
function
|
|
78
|
-
return !
|
|
85
|
+
function ur(e) {
|
|
86
|
+
return !_t(e) || !e.hasOwnProperty(ir);
|
|
79
87
|
}
|
|
80
88
|
const { assign: ue } = Object;
|
|
81
|
-
function
|
|
89
|
+
function fr(e) {
|
|
82
90
|
return !!(he(e) && e.effect);
|
|
83
91
|
}
|
|
84
|
-
function
|
|
92
|
+
function _r(e, t, n, r) {
|
|
85
93
|
const { state: s, actions: l, getters: c } = t, i = n.state.value[e];
|
|
86
94
|
let u;
|
|
87
95
|
function m() {
|
|
88
96
|
i || (n.state.value[e] = s ? s() : {});
|
|
89
|
-
const T =
|
|
90
|
-
return ue(T, l, Object.keys(c || {}).reduce((p, L) => (p[L] =
|
|
97
|
+
const T = tr(n.state.value[e]);
|
|
98
|
+
return ue(T, l, Object.keys(c || {}).reduce((p, L) => (p[L] = dn(pe(() => {
|
|
91
99
|
Ge(n);
|
|
92
100
|
const C = n._s.get(e);
|
|
93
101
|
return c[L].call(C, C);
|
|
94
102
|
})), p), {}));
|
|
95
103
|
}
|
|
96
|
-
return u =
|
|
104
|
+
return u = Tn(e, m, t, n, r, !0), u;
|
|
97
105
|
}
|
|
98
|
-
function
|
|
106
|
+
function Tn(e, t, n = {}, r, s, l) {
|
|
99
107
|
let c;
|
|
100
108
|
const i = ue({ actions: {} }, n), u = {
|
|
101
109
|
deep: !0
|
|
@@ -103,7 +111,7 @@ function hn(e, t, n = {}, r, s, l) {
|
|
|
103
111
|
};
|
|
104
112
|
let m, T, p = [], L = [], C;
|
|
105
113
|
const A = r.state.value[e];
|
|
106
|
-
!l && !A && (r.state.value[e] = {}),
|
|
114
|
+
!l && !A && (r.state.value[e] = {}), It({});
|
|
107
115
|
let D;
|
|
108
116
|
function y(O) {
|
|
109
117
|
let h;
|
|
@@ -111,14 +119,14 @@ function hn(e, t, n = {}, r, s, l) {
|
|
|
111
119
|
type: ke.patchFunction,
|
|
112
120
|
storeId: e,
|
|
113
121
|
events: C
|
|
114
|
-
}) : (
|
|
122
|
+
}) : (mt(r.state.value[e], O), h = {
|
|
115
123
|
type: ke.patchObject,
|
|
116
124
|
payload: O,
|
|
117
125
|
storeId: e,
|
|
118
126
|
events: C
|
|
119
127
|
});
|
|
120
128
|
const W = D = Symbol();
|
|
121
|
-
|
|
129
|
+
er().then(() => {
|
|
122
130
|
D === W && (m = !0);
|
|
123
131
|
}), T = !0, Le(p, h, r.state.value[e]);
|
|
124
132
|
}
|
|
@@ -129,7 +137,7 @@ function hn(e, t, n = {}, r, s, l) {
|
|
|
129
137
|
});
|
|
130
138
|
} : (
|
|
131
139
|
/* istanbul ignore next */
|
|
132
|
-
|
|
140
|
+
hn
|
|
133
141
|
);
|
|
134
142
|
function M() {
|
|
135
143
|
c.stop(), p = [], L = [], r._s.delete(e);
|
|
@@ -164,11 +172,11 @@ function hn(e, t, n = {}, r, s, l) {
|
|
|
164
172
|
_p: r,
|
|
165
173
|
// _s: scope,
|
|
166
174
|
$id: e,
|
|
167
|
-
$onAction:
|
|
175
|
+
$onAction: Mt.bind(null, L),
|
|
168
176
|
$patch: y,
|
|
169
177
|
$reset: P,
|
|
170
178
|
$subscribe(O, h = {}) {
|
|
171
|
-
const W =
|
|
179
|
+
const W = Mt(p, O, h.detached, () => X()), X = c.run(() => $e(() => r.state.value[e], (F) => {
|
|
172
180
|
(h.flush === "sync" ? T : m) && O({
|
|
173
181
|
storeId: e,
|
|
174
182
|
type: ke.direct,
|
|
@@ -178,19 +186,19 @@ function hn(e, t, n = {}, r, s, l) {
|
|
|
178
186
|
return W;
|
|
179
187
|
},
|
|
180
188
|
$dispose: M
|
|
181
|
-
}, b =
|
|
189
|
+
}, b = qn(d);
|
|
182
190
|
r._s.set(e, b);
|
|
183
|
-
const I = (r._a && r._a.runWithContext ||
|
|
191
|
+
const I = (r._a && r._a.runWithContext || cr)(() => r._e.run(() => (c = Tt()).run(t)));
|
|
184
192
|
for (const O in I) {
|
|
185
193
|
const h = I[O];
|
|
186
|
-
if (he(h) && !
|
|
187
|
-
l || (A &&
|
|
194
|
+
if (he(h) && !fr(h) || Ot(h))
|
|
195
|
+
l || (A && ur(h) && (he(h) ? h.value = A[O] : mt(h, A[O])), r.state.value[e][O] = h);
|
|
188
196
|
else if (typeof h == "function") {
|
|
189
197
|
const W = _(O, h);
|
|
190
198
|
I[O] = W, i.actions[O] = h;
|
|
191
199
|
}
|
|
192
200
|
}
|
|
193
|
-
return ue(b, I), ue(
|
|
201
|
+
return ue(b, I), ue(En(b), I), Object.defineProperty(b, "$state", {
|
|
194
202
|
get: () => r.state.value[e],
|
|
195
203
|
set: (O) => {
|
|
196
204
|
y((h) => {
|
|
@@ -206,26 +214,26 @@ function hn(e, t, n = {}, r, s, l) {
|
|
|
206
214
|
})));
|
|
207
215
|
}), A && l && n.hydrate && n.hydrate(b.$state, A), m = !0, T = !0, b;
|
|
208
216
|
}
|
|
209
|
-
function
|
|
217
|
+
function La(e, t, n) {
|
|
210
218
|
let r, s;
|
|
211
219
|
const l = typeof t == "function";
|
|
212
220
|
typeof e == "string" ? (r = e, s = l ? n : t) : (s = e, r = e.id);
|
|
213
221
|
function c(i, u) {
|
|
214
|
-
const m =
|
|
222
|
+
const m = Qn();
|
|
215
223
|
return i = // in test mode, ignore the argument provided as we can always retrieve a
|
|
216
224
|
// pinia instance with getActivePinia()
|
|
217
|
-
i || (m ?
|
|
225
|
+
i || (m ? gn(bn, null) : null), i && Ge(i), i = pn, i._s.has(r) || (l ? Tn(r, t, s, i) : _r(r, s, i)), i._s.get(r);
|
|
218
226
|
}
|
|
219
227
|
return c.$id = r, c;
|
|
220
228
|
}
|
|
221
|
-
function
|
|
229
|
+
function pa(e) {
|
|
222
230
|
{
|
|
223
|
-
e =
|
|
231
|
+
e = En(e);
|
|
224
232
|
const t = {};
|
|
225
233
|
for (const n in e) {
|
|
226
234
|
const r = e[n];
|
|
227
|
-
(he(r) ||
|
|
228
|
-
|
|
235
|
+
(he(r) || Ot(r)) && (t[n] = // ---
|
|
236
|
+
Jn(e, n));
|
|
229
237
|
}
|
|
230
238
|
return t;
|
|
231
239
|
}
|
|
@@ -235,41 +243,41 @@ function La(e) {
|
|
|
235
243
|
* (c) 2024 kazuya kawaguchi
|
|
236
244
|
* Released under the MIT License.
|
|
237
245
|
*/
|
|
238
|
-
const
|
|
239
|
-
let
|
|
240
|
-
const
|
|
241
|
-
function
|
|
246
|
+
const xe = typeof window < "u", fe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), mr = (e, t, n) => dr({ l: e, k: t, s: n }), dr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), G = (e) => typeof e == "number" && isFinite(e), Er = (e) => On(e) === "[object Date]", je = (e) => On(e) === "[object RegExp]", Ke = (e) => U(e) && Object.keys(e).length === 0, J = Object.assign;
|
|
247
|
+
let Ft;
|
|
248
|
+
const gr = () => Ft || (Ft = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
249
|
+
function Ut(e) {
|
|
242
250
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
243
251
|
}
|
|
244
|
-
const
|
|
245
|
-
function
|
|
246
|
-
return
|
|
252
|
+
const Nr = Object.prototype.hasOwnProperty;
|
|
253
|
+
function He(e, t) {
|
|
254
|
+
return Nr.call(e, t);
|
|
247
255
|
}
|
|
248
|
-
const
|
|
256
|
+
const Y = Array.isArray, j = (e) => typeof e == "function", S = (e) => typeof e == "string", x = (e) => typeof e == "boolean", w = (e) => e !== null && typeof e == "object", Lr = (e) => w(e) && j(e.then) && j(e.catch), In = Object.prototype.toString, On = (e) => In.call(e), U = (e) => {
|
|
249
257
|
if (!w(e))
|
|
250
258
|
return !1;
|
|
251
259
|
const t = Object.getPrototypeOf(e);
|
|
252
260
|
return t === null || t.constructor === Object;
|
|
253
|
-
},
|
|
254
|
-
function
|
|
261
|
+
}, pr = (e) => e == null ? "" : Y(e) || U(e) && e.toString === In ? JSON.stringify(e, null, 2) : String(e);
|
|
262
|
+
function br(e, t = "") {
|
|
255
263
|
return e.reduce((n, r, s) => s === 0 ? n + r : n + t + r, "");
|
|
256
264
|
}
|
|
257
|
-
function
|
|
265
|
+
function Be(e) {
|
|
258
266
|
let t = e;
|
|
259
267
|
return () => ++t;
|
|
260
268
|
}
|
|
261
|
-
function
|
|
269
|
+
function hr(e, t) {
|
|
262
270
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
263
271
|
}
|
|
264
|
-
const
|
|
265
|
-
function
|
|
266
|
-
if (
|
|
272
|
+
const we = (e) => !w(e) || Y(e);
|
|
273
|
+
function Ve(e, t) {
|
|
274
|
+
if (we(e) || we(t))
|
|
267
275
|
throw new Error("Invalid value");
|
|
268
276
|
const n = [{ src: e, des: t }];
|
|
269
277
|
for (; n.length; ) {
|
|
270
278
|
const { src: r, des: s } = n.pop();
|
|
271
279
|
Object.keys(r).forEach((l) => {
|
|
272
|
-
|
|
280
|
+
we(r[l]) || we(s[l]) ? s[l] = r[l] : n.push({ src: r[l], des: s[l] });
|
|
273
281
|
});
|
|
274
282
|
}
|
|
275
283
|
}
|
|
@@ -278,29 +286,29 @@ function We(e, t) {
|
|
|
278
286
|
* (c) 2024 kazuya kawaguchi
|
|
279
287
|
* Released under the MIT License.
|
|
280
288
|
*/
|
|
281
|
-
function
|
|
289
|
+
function Tr(e, t, n) {
|
|
282
290
|
return { line: e, column: t, offset: n };
|
|
283
291
|
}
|
|
284
|
-
function
|
|
292
|
+
function Xe(e, t, n) {
|
|
285
293
|
const r = { start: e, end: t };
|
|
286
294
|
return n != null && (r.source = n), r;
|
|
287
295
|
}
|
|
288
|
-
const
|
|
289
|
-
function
|
|
290
|
-
return t.length === 1 &&
|
|
296
|
+
const Ir = /\{([0-9a-zA-Z]+)\}/g;
|
|
297
|
+
function Cn(e, ...t) {
|
|
298
|
+
return t.length === 1 && Or(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(Ir, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
|
|
291
299
|
}
|
|
292
|
-
const
|
|
293
|
-
function
|
|
300
|
+
const yn = Object.assign, wt = (e) => typeof e == "string", Or = (e) => e !== null && typeof e == "object";
|
|
301
|
+
function Sn(e, t = "") {
|
|
294
302
|
return e.reduce((n, r, s) => s === 0 ? n + r : n + t + r, "");
|
|
295
303
|
}
|
|
296
|
-
const
|
|
304
|
+
const St = {
|
|
297
305
|
USE_MODULO_SYNTAX: 1,
|
|
298
306
|
__EXTEND_POINT__: 2
|
|
299
|
-
},
|
|
300
|
-
[
|
|
307
|
+
}, Cr = {
|
|
308
|
+
[St.USE_MODULO_SYNTAX]: "Use modulo before '{{0}}'."
|
|
301
309
|
};
|
|
302
|
-
function
|
|
303
|
-
const r =
|
|
310
|
+
function yr(e, t, ...n) {
|
|
311
|
+
const r = Cn(Cr[e] || "", ...n || []), s = { message: String(r), code: e };
|
|
304
312
|
return t && (s.location = t), s;
|
|
305
313
|
}
|
|
306
314
|
const R = {
|
|
@@ -328,7 +336,7 @@ const R = {
|
|
|
328
336
|
// to avoid collision of error codes. This should always be kept as the last
|
|
329
337
|
// item.
|
|
330
338
|
__EXTEND_POINT__: 17
|
|
331
|
-
},
|
|
339
|
+
}, Sr = {
|
|
332
340
|
// tokenizer error messages
|
|
333
341
|
[R.EXPECTED_TOKEN]: "Expected token: '{0}'",
|
|
334
342
|
[R.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
|
|
@@ -351,18 +359,18 @@ const R = {
|
|
|
351
359
|
[R.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
|
352
360
|
};
|
|
353
361
|
function Oe(e, t, n = {}) {
|
|
354
|
-
const { domain: r, messages: s, args: l } = n, c =
|
|
362
|
+
const { domain: r, messages: s, args: l } = n, c = Cn((s || Sr)[e] || "", ...l || []), i = new SyntaxError(String(c));
|
|
355
363
|
return i.code = e, t && (i.location = t), i.domain = r, i;
|
|
356
364
|
}
|
|
357
|
-
function
|
|
365
|
+
function Ar(e) {
|
|
358
366
|
throw e;
|
|
359
367
|
}
|
|
360
|
-
const ae = " ",
|
|
361
|
-
`,
|
|
362
|
-
function
|
|
368
|
+
const ae = " ", Pr = "\r", Q = `
|
|
369
|
+
`, kr = "\u2028", Dr = "\u2029";
|
|
370
|
+
function Rr(e) {
|
|
363
371
|
const t = e;
|
|
364
372
|
let n = 0, r = 1, s = 1, l = 0;
|
|
365
|
-
const c = (I) => t[I] ===
|
|
373
|
+
const c = (I) => t[I] === Pr && t[I + 1] === Q, i = (I) => t[I] === Q, u = (I) => t[I] === Dr, m = (I) => t[I] === kr, T = (I) => c(I) || i(I) || u(I) || m(I), p = () => n, L = () => r, C = () => s, A = () => l, D = (I) => c(I) || u(I) || m(I) ? Q : t[I], y = () => D(n), P = () => D(n + l);
|
|
366
374
|
function M() {
|
|
367
375
|
return l = 0, T(n) && (r++, s = 0), c(n) && n++, n++, s++, t[n];
|
|
368
376
|
}
|
|
@@ -396,9 +404,9 @@ function Dr(e) {
|
|
|
396
404
|
skipToPeek: g
|
|
397
405
|
};
|
|
398
406
|
}
|
|
399
|
-
const ie = void 0,
|
|
400
|
-
function
|
|
401
|
-
const n = t.location !== !1, r =
|
|
407
|
+
const ie = void 0, vr = ".", Wt = "'", Mr = "tokenizer";
|
|
408
|
+
function Fr(e, t = {}) {
|
|
409
|
+
const n = t.location !== !1, r = Rr(e), s = () => r.index(), l = () => Tr(r.line(), r.column(), r.index()), c = l(), i = s(), u = {
|
|
402
410
|
currentType: 14,
|
|
403
411
|
offset: i,
|
|
404
412
|
startLoc: c,
|
|
@@ -414,8 +422,8 @@ function Mr(e, t = {}) {
|
|
|
414
422
|
function p(a, o, E, ...k) {
|
|
415
423
|
const $ = m();
|
|
416
424
|
if (o.column += E, o.offset += E, T) {
|
|
417
|
-
const v = n ?
|
|
418
|
-
domain:
|
|
425
|
+
const v = n ? Xe($.startLoc, o) : null, f = Oe(a, v, {
|
|
426
|
+
domain: Mr,
|
|
419
427
|
args: k
|
|
420
428
|
});
|
|
421
429
|
T(f);
|
|
@@ -424,7 +432,7 @@ function Mr(e, t = {}) {
|
|
|
424
432
|
function L(a, o, E) {
|
|
425
433
|
a.endLoc = l(), a.currentType = o;
|
|
426
434
|
const k = { type: o };
|
|
427
|
-
return n && (k.loc =
|
|
435
|
+
return n && (k.loc = Xe(a.startLoc, a.endLoc)), E != null && (k.value = E), k;
|
|
428
436
|
}
|
|
429
437
|
const C = (a) => L(
|
|
430
438
|
a,
|
|
@@ -479,7 +487,7 @@ function Mr(e, t = {}) {
|
|
|
479
487
|
if (E !== 2)
|
|
480
488
|
return !1;
|
|
481
489
|
D(a);
|
|
482
|
-
const k = a.currentPeek() ===
|
|
490
|
+
const k = a.currentPeek() === Wt;
|
|
483
491
|
return a.resetPeek(), k;
|
|
484
492
|
}
|
|
485
493
|
function g(a, o) {
|
|
@@ -559,32 +567,32 @@ function Mr(e, t = {}) {
|
|
|
559
567
|
o === 36 || // $
|
|
560
568
|
o === 45;
|
|
561
569
|
}
|
|
562
|
-
function
|
|
570
|
+
function Qe(a) {
|
|
563
571
|
return K(a, B);
|
|
564
572
|
}
|
|
565
|
-
function
|
|
573
|
+
function qe(a) {
|
|
566
574
|
const o = a.charCodeAt(0);
|
|
567
575
|
return o >= 48 && o <= 57;
|
|
568
576
|
}
|
|
569
|
-
function qe(a) {
|
|
570
|
-
return K(a, Qe);
|
|
571
|
-
}
|
|
572
577
|
function Ze(a) {
|
|
578
|
+
return K(a, qe);
|
|
579
|
+
}
|
|
580
|
+
function ze(a) {
|
|
573
581
|
const o = a.charCodeAt(0);
|
|
574
582
|
return o >= 48 && o <= 57 || // 0-9
|
|
575
583
|
o >= 65 && o <= 70 || // A-F
|
|
576
584
|
o >= 97 && o <= 102;
|
|
577
585
|
}
|
|
578
586
|
function se(a) {
|
|
579
|
-
return K(a,
|
|
587
|
+
return K(a, ze);
|
|
580
588
|
}
|
|
581
589
|
function ye(a) {
|
|
582
590
|
let o = "", E = "";
|
|
583
|
-
for (; o =
|
|
591
|
+
for (; o = Ze(a); )
|
|
584
592
|
E += o;
|
|
585
593
|
return E;
|
|
586
594
|
}
|
|
587
|
-
function
|
|
595
|
+
function et(a) {
|
|
588
596
|
y(a);
|
|
589
597
|
const o = a.currentChar();
|
|
590
598
|
return o !== "%" && p(R.EXPECTED_TOKEN, l(), 0, o), a.next(), "%";
|
|
@@ -613,30 +621,30 @@ function Mr(e, t = {}) {
|
|
|
613
621
|
}
|
|
614
622
|
return o;
|
|
615
623
|
}
|
|
616
|
-
function
|
|
624
|
+
function tt(a) {
|
|
617
625
|
y(a);
|
|
618
626
|
let o = "", E = "";
|
|
619
|
-
for (; o =
|
|
627
|
+
for (; o = Qe(a); )
|
|
620
628
|
E += o;
|
|
621
629
|
return a.currentChar() === ie && p(R.UNTERMINATED_CLOSING_BRACE, l(), 0), E;
|
|
622
630
|
}
|
|
623
|
-
function
|
|
631
|
+
function nt(a) {
|
|
624
632
|
y(a);
|
|
625
633
|
let o = "";
|
|
626
634
|
return a.currentChar() === "-" ? (a.next(), o += `-${ye(a)}`) : o += ye(a), a.currentChar() === ie && p(R.UNTERMINATED_CLOSING_BRACE, l(), 0), o;
|
|
627
635
|
}
|
|
628
|
-
function
|
|
629
|
-
return a !==
|
|
636
|
+
function vt(a) {
|
|
637
|
+
return a !== Wt && a !== Q;
|
|
630
638
|
}
|
|
631
|
-
function
|
|
639
|
+
function rt(a) {
|
|
632
640
|
y(a), A(a, "'");
|
|
633
641
|
let o = "", E = "";
|
|
634
|
-
for (; o = K(a,
|
|
635
|
-
o === "\\" ? E +=
|
|
642
|
+
for (; o = K(a, vt); )
|
|
643
|
+
o === "\\" ? E += st(a) : E += o;
|
|
636
644
|
const k = a.currentChar();
|
|
637
645
|
return k === Q || k === ie ? (p(R.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, l(), 0), k === Q && (a.next(), A(a, "'")), E) : (A(a, "'"), E);
|
|
638
646
|
}
|
|
639
|
-
function
|
|
647
|
+
function st(a) {
|
|
640
648
|
const o = a.currentChar();
|
|
641
649
|
switch (o) {
|
|
642
650
|
case "\\":
|
|
@@ -663,23 +671,23 @@ function Mr(e, t = {}) {
|
|
|
663
671
|
}
|
|
664
672
|
return `\\${o}${k}`;
|
|
665
673
|
}
|
|
666
|
-
function
|
|
674
|
+
function at(a) {
|
|
667
675
|
return a !== "{" && a !== "}" && a !== ae && a !== Q;
|
|
668
676
|
}
|
|
669
|
-
function
|
|
677
|
+
function lt(a) {
|
|
670
678
|
y(a);
|
|
671
679
|
let o = "", E = "";
|
|
672
|
-
for (; o = K(a,
|
|
680
|
+
for (; o = K(a, at); )
|
|
673
681
|
E += o;
|
|
674
682
|
return E;
|
|
675
683
|
}
|
|
676
|
-
function
|
|
684
|
+
function ot(a) {
|
|
677
685
|
let o = "", E = "";
|
|
678
686
|
for (; o = re(a); )
|
|
679
687
|
E += o;
|
|
680
688
|
return E;
|
|
681
689
|
}
|
|
682
|
-
function
|
|
690
|
+
function ct(a) {
|
|
683
691
|
const o = (E) => {
|
|
684
692
|
const k = a.currentChar();
|
|
685
693
|
return k === "{" || k === "%" || k === "@" || k === "|" || k === "(" || k === ")" || !k || k === ae ? E : (E += k, a.next(), o(E));
|
|
@@ -721,13 +729,13 @@ function Mr(e, t = {}) {
|
|
|
721
729
|
if (o.braceNest > 0 && (o.currentType === 5 || o.currentType === 6 || o.currentType === 7))
|
|
722
730
|
return p(R.UNTERMINATED_CLOSING_BRACE, l(), 0), o.braceNest = 0, Ae(a, o);
|
|
723
731
|
if ($ = _(a, o))
|
|
724
|
-
return E = L(o, 5,
|
|
732
|
+
return E = L(o, 5, tt(a)), y(a), E;
|
|
725
733
|
if (v = d(a, o))
|
|
726
|
-
return E = L(o, 6,
|
|
734
|
+
return E = L(o, 6, nt(a)), y(a), E;
|
|
727
735
|
if (f = b(a, o))
|
|
728
|
-
return E = L(o, 7,
|
|
736
|
+
return E = L(o, 7, rt(a)), y(a), E;
|
|
729
737
|
if (!$ && !v && !f)
|
|
730
|
-
return E = L(o, 13,
|
|
738
|
+
return E = L(o, 13, lt(a)), p(R.INVALID_TOKEN_IN_PLACEHOLDER, l(), 0, E.value), y(a), E;
|
|
731
739
|
break;
|
|
732
740
|
}
|
|
733
741
|
}
|
|
@@ -760,7 +768,7 @@ function Mr(e, t = {}) {
|
|
|
760
768
|
/* TokenChars.LinkedDelimiter */
|
|
761
769
|
);
|
|
762
770
|
default:
|
|
763
|
-
return W(a) ? (k = L(o, 1, Se(a)), o.braceNest = 0, o.inLinked = !1, k) : g(a, o) || O(a, o) ? (y(a), ge(a, o)) : I(a, o) ? (y(a), L(o, 12,
|
|
771
|
+
return W(a) ? (k = L(o, 1, Se(a)), o.braceNest = 0, o.inLinked = !1, k) : g(a, o) || O(a, o) ? (y(a), ge(a, o)) : I(a, o) ? (y(a), L(o, 12, ot(a))) : h(a, o) ? (y(a), $ === "{" ? Ee(a, o) || k : L(o, 11, ct(a))) : (E === 8 && p(R.INVALID_LINKED_FORMAT, l(), 0), o.braceNest = 0, o.inLinked = !1, Ae(a, o));
|
|
764
772
|
}
|
|
765
773
|
}
|
|
766
774
|
function Ae(a, o) {
|
|
@@ -789,7 +797,7 @@ function Mr(e, t = {}) {
|
|
|
789
797
|
return E = L(o, 1, Se(a)), o.braceNest = 0, o.inLinked = !1, E;
|
|
790
798
|
const { isModulo: $, hasSpace: v } = X(a);
|
|
791
799
|
if ($)
|
|
792
|
-
return v ? L(o, 0, ve(a)) : L(o, 4,
|
|
800
|
+
return v ? L(o, 0, ve(a)) : L(o, 4, et(a));
|
|
793
801
|
if (F(a))
|
|
794
802
|
return L(o, 0, ve(a));
|
|
795
803
|
break;
|
|
@@ -797,7 +805,7 @@ function Mr(e, t = {}) {
|
|
|
797
805
|
}
|
|
798
806
|
return E;
|
|
799
807
|
}
|
|
800
|
-
function
|
|
808
|
+
function it() {
|
|
801
809
|
const { currentType: a, offset: o, startLoc: E, endLoc: k } = u;
|
|
802
810
|
return u.lastType = a, u.lastOffset = o, u.lastStartLoc = E, u.lastEndLoc = k, u.offset = s(), u.startLoc = l(), r.currentChar() === ie ? L(
|
|
803
811
|
u,
|
|
@@ -806,14 +814,14 @@ function Mr(e, t = {}) {
|
|
|
806
814
|
) : Ae(r, u);
|
|
807
815
|
}
|
|
808
816
|
return {
|
|
809
|
-
nextToken:
|
|
817
|
+
nextToken: it,
|
|
810
818
|
currentOffset: s,
|
|
811
819
|
currentPosition: l,
|
|
812
820
|
context: m
|
|
813
821
|
};
|
|
814
822
|
}
|
|
815
|
-
const
|
|
816
|
-
function
|
|
823
|
+
const Ur = "parser", wr = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
824
|
+
function Wr(e, t, n) {
|
|
817
825
|
switch (e) {
|
|
818
826
|
case "\\\\":
|
|
819
827
|
return "\\";
|
|
@@ -825,13 +833,13 @@ function wr(e, t, n) {
|
|
|
825
833
|
}
|
|
826
834
|
}
|
|
827
835
|
}
|
|
828
|
-
function
|
|
836
|
+
function Vr(e = {}) {
|
|
829
837
|
const t = e.location !== !1, { onError: n, onWarn: r } = e;
|
|
830
838
|
function s(_, d, b, g, ...I) {
|
|
831
839
|
const O = _.currentPosition();
|
|
832
840
|
if (O.offset += g, O.column += g, n) {
|
|
833
|
-
const h = t ?
|
|
834
|
-
domain:
|
|
841
|
+
const h = t ? Xe(b, O) : null, W = Oe(d, h, {
|
|
842
|
+
domain: Ur,
|
|
835
843
|
args: I
|
|
836
844
|
});
|
|
837
845
|
n(W);
|
|
@@ -840,8 +848,8 @@ function Wr(e = {}) {
|
|
|
840
848
|
function l(_, d, b, g, ...I) {
|
|
841
849
|
const O = _.currentPosition();
|
|
842
850
|
if (O.offset += g, O.column += g, r) {
|
|
843
|
-
const h = t ?
|
|
844
|
-
r(
|
|
851
|
+
const h = t ? Xe(b, O) : null;
|
|
852
|
+
r(yr(d, h, I));
|
|
845
853
|
}
|
|
846
854
|
}
|
|
847
855
|
function c(_, d, b) {
|
|
@@ -865,7 +873,7 @@ function Wr(e = {}) {
|
|
|
865
873
|
}
|
|
866
874
|
function p(_, d) {
|
|
867
875
|
const b = _.context(), { lastOffset: g, lastStartLoc: I } = b, O = c(9, g, I);
|
|
868
|
-
return O.value = d.replace(
|
|
876
|
+
return O.value = d.replace(wr, Wr), _.nextToken(), i(O, _.currentOffset(), _.currentPosition()), O;
|
|
869
877
|
}
|
|
870
878
|
function L(_) {
|
|
871
879
|
const d = _.nextToken(), b = _.context(), { lastOffset: g, lastStartLoc: I } = b, O = c(8, g, I);
|
|
@@ -930,7 +938,7 @@ function Wr(e = {}) {
|
|
|
930
938
|
h = !0;
|
|
931
939
|
break;
|
|
932
940
|
case 5:
|
|
933
|
-
F.value == null && s(_, R.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ee(F)), I.items.push(T(_, F.value || "", !!h)), h && (l(_,
|
|
941
|
+
F.value == null && s(_, R.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ee(F)), I.items.push(T(_, F.value || "", !!h)), h && (l(_, St.USE_MODULO_SYNTAX, d.lastStartLoc, 0, ee(F)), h = null);
|
|
934
942
|
break;
|
|
935
943
|
case 7:
|
|
936
944
|
F.value == null && s(_, R.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ee(F)), I.items.push(p(_, F.value || ""));
|
|
@@ -961,7 +969,7 @@ function Wr(e = {}) {
|
|
|
961
969
|
return d.currentType === 14 ? I : y(_, b, g, I);
|
|
962
970
|
}
|
|
963
971
|
function M(_) {
|
|
964
|
-
const d =
|
|
972
|
+
const d = Fr(_, yn({}, e)), b = d.context(), g = c(0, b.offset, b.startLoc);
|
|
965
973
|
return t && g.loc && (g.loc.source = _), g.body = P(d), e.onCacheKey && (g.cacheKey = e.onCacheKey(_)), b.currentType !== 14 && s(d, R.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, _[b.offset] || ""), i(g, d.currentOffset(), d.currentPosition()), g;
|
|
966
974
|
}
|
|
967
975
|
return { parse: M };
|
|
@@ -972,30 +980,30 @@ function ee(e) {
|
|
|
972
980
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
973
981
|
return t.length > 10 ? t.slice(0, 9) + "…" : t;
|
|
974
982
|
}
|
|
975
|
-
function
|
|
983
|
+
function $r(e, t = {}) {
|
|
976
984
|
const n = {
|
|
977
985
|
ast: e,
|
|
978
986
|
helpers: /* @__PURE__ */ new Set()
|
|
979
987
|
};
|
|
980
988
|
return { context: () => n, helper: (l) => (n.helpers.add(l), l) };
|
|
981
989
|
}
|
|
982
|
-
function
|
|
990
|
+
function Vt(e, t) {
|
|
983
991
|
for (let n = 0; n < e.length; n++)
|
|
984
|
-
|
|
992
|
+
At(e[n], t);
|
|
985
993
|
}
|
|
986
|
-
function
|
|
994
|
+
function At(e, t) {
|
|
987
995
|
switch (e.type) {
|
|
988
996
|
case 1:
|
|
989
|
-
|
|
997
|
+
Vt(e.cases, t), t.helper(
|
|
990
998
|
"plural"
|
|
991
999
|
/* HelperNameMap.PLURAL */
|
|
992
1000
|
);
|
|
993
1001
|
break;
|
|
994
1002
|
case 2:
|
|
995
|
-
|
|
1003
|
+
Vt(e.items, t);
|
|
996
1004
|
break;
|
|
997
1005
|
case 6: {
|
|
998
|
-
|
|
1006
|
+
At(e.key, t), t.helper(
|
|
999
1007
|
"linked"
|
|
1000
1008
|
/* HelperNameMap.LINKED */
|
|
1001
1009
|
), t.helper(
|
|
@@ -1024,20 +1032,20 @@ function St(e, t) {
|
|
|
1024
1032
|
break;
|
|
1025
1033
|
}
|
|
1026
1034
|
}
|
|
1027
|
-
function
|
|
1028
|
-
const n =
|
|
1035
|
+
function xr(e, t = {}) {
|
|
1036
|
+
const n = $r(e);
|
|
1029
1037
|
n.helper(
|
|
1030
1038
|
"normalize"
|
|
1031
1039
|
/* HelperNameMap.NORMALIZE */
|
|
1032
|
-
), e.body &&
|
|
1040
|
+
), e.body && At(e.body, n);
|
|
1033
1041
|
const r = n.context();
|
|
1034
1042
|
e.helpers = Array.from(r.helpers);
|
|
1035
1043
|
}
|
|
1036
|
-
function
|
|
1044
|
+
function jr(e) {
|
|
1037
1045
|
const t = e.body;
|
|
1038
|
-
return t.type === 2 ?
|
|
1046
|
+
return t.type === 2 ? $t(t) : t.cases.forEach((n) => $t(n)), e;
|
|
1039
1047
|
}
|
|
1040
|
-
function
|
|
1048
|
+
function $t(e) {
|
|
1041
1049
|
if (e.items.length === 1) {
|
|
1042
1050
|
const t = e.items[0];
|
|
1043
1051
|
(t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
|
|
@@ -1050,7 +1058,7 @@ function Vt(e) {
|
|
|
1050
1058
|
t.push(r.value);
|
|
1051
1059
|
}
|
|
1052
1060
|
if (t.length === e.items.length) {
|
|
1053
|
-
e.static =
|
|
1061
|
+
e.static = Sn(t);
|
|
1054
1062
|
for (let n = 0; n < e.items.length; n++) {
|
|
1055
1063
|
const r = e.items[n];
|
|
1056
1064
|
(r.type === 3 || r.type === 9) && delete r.value;
|
|
@@ -1058,7 +1066,7 @@ function Vt(e) {
|
|
|
1058
1066
|
}
|
|
1059
1067
|
}
|
|
1060
1068
|
}
|
|
1061
|
-
const
|
|
1069
|
+
const Hr = "minifier";
|
|
1062
1070
|
function be(e) {
|
|
1063
1071
|
switch (e.t = e.type, e.type) {
|
|
1064
1072
|
case 0: {
|
|
@@ -1105,14 +1113,14 @@ function be(e) {
|
|
|
1105
1113
|
}
|
|
1106
1114
|
default:
|
|
1107
1115
|
throw Oe(R.UNHANDLED_MINIFIER_NODE_TYPE, null, {
|
|
1108
|
-
domain:
|
|
1116
|
+
domain: Hr,
|
|
1109
1117
|
args: [e.type]
|
|
1110
1118
|
});
|
|
1111
1119
|
}
|
|
1112
1120
|
delete e.type;
|
|
1113
1121
|
}
|
|
1114
|
-
const
|
|
1115
|
-
function
|
|
1122
|
+
const Xr = "parser";
|
|
1123
|
+
function Yr(e, t) {
|
|
1116
1124
|
const { sourceMap: n, filename: r, breakLineCode: s, needIndent: l } = t, c = t.location !== !1, i = {
|
|
1117
1125
|
filename: r,
|
|
1118
1126
|
code: "",
|
|
@@ -1161,7 +1169,7 @@ function Gr(e, t) {
|
|
|
1161
1169
|
/* HelperNameMap.LINKED */
|
|
1162
1170
|
)}(`), Te(e, t.key), t.modifier ? (e.push(", "), Te(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
1163
1171
|
}
|
|
1164
|
-
function
|
|
1172
|
+
function Kr(e, t) {
|
|
1165
1173
|
const { helper: n, needIndent: r } = e;
|
|
1166
1174
|
e.push(`${n(
|
|
1167
1175
|
"normalize"
|
|
@@ -1172,7 +1180,7 @@ function Yr(e, t) {
|
|
|
1172
1180
|
e.push(", ");
|
|
1173
1181
|
e.deindent(r()), e.push("])");
|
|
1174
1182
|
}
|
|
1175
|
-
function
|
|
1183
|
+
function Br(e, t) {
|
|
1176
1184
|
const { helper: n, needIndent: r } = e;
|
|
1177
1185
|
if (t.cases.length > 1) {
|
|
1178
1186
|
e.push(`${n(
|
|
@@ -1185,20 +1193,20 @@ function Kr(e, t) {
|
|
|
1185
1193
|
e.deindent(r()), e.push("])");
|
|
1186
1194
|
}
|
|
1187
1195
|
}
|
|
1188
|
-
function
|
|
1196
|
+
function Jr(e, t) {
|
|
1189
1197
|
t.body ? Te(e, t.body) : e.push("null");
|
|
1190
1198
|
}
|
|
1191
1199
|
function Te(e, t) {
|
|
1192
1200
|
const { helper: n } = e;
|
|
1193
1201
|
switch (t.type) {
|
|
1194
1202
|
case 0:
|
|
1195
|
-
|
|
1203
|
+
Jr(e, t);
|
|
1196
1204
|
break;
|
|
1197
1205
|
case 1:
|
|
1198
|
-
|
|
1206
|
+
Br(e, t);
|
|
1199
1207
|
break;
|
|
1200
1208
|
case 2:
|
|
1201
|
-
|
|
1209
|
+
Kr(e, t);
|
|
1202
1210
|
break;
|
|
1203
1211
|
case 6:
|
|
1204
1212
|
Gr(e, t);
|
|
@@ -1235,21 +1243,21 @@ function Te(e, t) {
|
|
|
1235
1243
|
break;
|
|
1236
1244
|
default:
|
|
1237
1245
|
throw Oe(R.UNHANDLED_CODEGEN_NODE_TYPE, null, {
|
|
1238
|
-
domain:
|
|
1246
|
+
domain: Xr,
|
|
1239
1247
|
args: [t.type]
|
|
1240
1248
|
});
|
|
1241
1249
|
}
|
|
1242
1250
|
}
|
|
1243
|
-
const
|
|
1244
|
-
const n =
|
|
1245
|
-
`, c = t.needIndent ? t.needIndent : n !== "arrow", i = e.helpers || [], u =
|
|
1251
|
+
const Qr = (e, t = {}) => {
|
|
1252
|
+
const n = wt(t.mode) ? t.mode : "normal", r = wt(t.filename) ? t.filename : "message.intl", s = !!t.sourceMap, l = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
1253
|
+
`, c = t.needIndent ? t.needIndent : n !== "arrow", i = e.helpers || [], u = Yr(e, {
|
|
1246
1254
|
mode: n,
|
|
1247
1255
|
filename: r,
|
|
1248
1256
|
sourceMap: s,
|
|
1249
1257
|
breakLineCode: l,
|
|
1250
1258
|
needIndent: c
|
|
1251
1259
|
});
|
|
1252
|
-
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(c), i.length > 0 && (u.push(`const { ${
|
|
1260
|
+
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(c), i.length > 0 && (u.push(`const { ${Sn(i.map((p) => `${p}: _${p}`), ", ")} } = ctx`), u.newline()), u.push("return "), Te(u, e), u.deindent(c), u.push("}"), delete e.helpers;
|
|
1253
1261
|
const { code: m, map: T } = u.context();
|
|
1254
1262
|
return {
|
|
1255
1263
|
ast: e,
|
|
@@ -1258,9 +1266,9 @@ const Jr = (e, t = {}) => {
|
|
|
1258
1266
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1259
1267
|
};
|
|
1260
1268
|
};
|
|
1261
|
-
function
|
|
1262
|
-
const n =
|
|
1263
|
-
return r ? (l &&
|
|
1269
|
+
function qr(e, t = {}) {
|
|
1270
|
+
const n = yn({}, t), r = !!n.jit, s = !!n.minify, l = n.optimize == null ? !0 : n.optimize, i = Vr(n).parse(e);
|
|
1271
|
+
return r ? (l && jr(i), s && be(i), { ast: i, code: "" }) : (xr(i, n), Qr(i, n));
|
|
1264
1272
|
}
|
|
1265
1273
|
/*!
|
|
1266
1274
|
* core-base v9.13.1
|
|
@@ -1428,15 +1436,15 @@ _e[
|
|
|
1428
1436
|
/* Actions.APPEND */
|
|
1429
1437
|
]
|
|
1430
1438
|
};
|
|
1431
|
-
const
|
|
1432
|
-
function Zr(e) {
|
|
1433
|
-
return qr.test(e);
|
|
1434
|
-
}
|
|
1439
|
+
const Zr = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1435
1440
|
function zr(e) {
|
|
1441
|
+
return Zr.test(e);
|
|
1442
|
+
}
|
|
1443
|
+
function es(e) {
|
|
1436
1444
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1437
1445
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1438
1446
|
}
|
|
1439
|
-
function
|
|
1447
|
+
function ts(e) {
|
|
1440
1448
|
if (e == null)
|
|
1441
1449
|
return "o";
|
|
1442
1450
|
switch (e.charCodeAt(0)) {
|
|
@@ -1461,11 +1469,11 @@ function es(e) {
|
|
|
1461
1469
|
}
|
|
1462
1470
|
return "i";
|
|
1463
1471
|
}
|
|
1464
|
-
function
|
|
1472
|
+
function ns(e) {
|
|
1465
1473
|
const t = e.trim();
|
|
1466
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
1474
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : zr(t) ? es(t) : "*" + t;
|
|
1467
1475
|
}
|
|
1468
|
-
function
|
|
1476
|
+
function rs(e) {
|
|
1469
1477
|
const t = [];
|
|
1470
1478
|
let n = -1, r = 0, s = 0, l, c, i, u, m, T, p;
|
|
1471
1479
|
const L = [];
|
|
@@ -1497,7 +1505,7 @@ function ns(e) {
|
|
|
1497
1505
|
/* Actions.APPEND */
|
|
1498
1506
|
]();
|
|
1499
1507
|
else {
|
|
1500
|
-
if (s = 0, c === void 0 || (c =
|
|
1508
|
+
if (s = 0, c === void 0 || (c = ns(c), c === !1))
|
|
1501
1509
|
return !1;
|
|
1502
1510
|
L[
|
|
1503
1511
|
1
|
|
@@ -1515,21 +1523,21 @@ function ns(e) {
|
|
|
1515
1523
|
}
|
|
1516
1524
|
for (; r !== null; )
|
|
1517
1525
|
if (n++, l = e[n], !(l === "\\" && C())) {
|
|
1518
|
-
if (u =
|
|
1526
|
+
if (u = ts(l), p = _e[r], m = p[u] || p.l || 8, m === 8 || (r = m[0], m[1] !== void 0 && (T = L[m[1]], T && (i = l, T() === !1))))
|
|
1519
1527
|
return;
|
|
1520
1528
|
if (r === 7)
|
|
1521
1529
|
return t;
|
|
1522
1530
|
}
|
|
1523
1531
|
}
|
|
1524
|
-
const
|
|
1525
|
-
function
|
|
1532
|
+
const xt = /* @__PURE__ */ new Map();
|
|
1533
|
+
function ss(e, t) {
|
|
1526
1534
|
return w(e) ? e[t] : null;
|
|
1527
1535
|
}
|
|
1528
|
-
function
|
|
1536
|
+
function as(e, t) {
|
|
1529
1537
|
if (!w(e))
|
|
1530
1538
|
return null;
|
|
1531
|
-
let n =
|
|
1532
|
-
if (n || (n =
|
|
1539
|
+
let n = xt.get(t);
|
|
1540
|
+
if (n || (n = rs(t), n && xt.set(t, n)), !n)
|
|
1533
1541
|
return null;
|
|
1534
1542
|
const r = n.length;
|
|
1535
1543
|
let s = e, l = 0;
|
|
@@ -1541,26 +1549,26 @@ function ss(e, t) {
|
|
|
1541
1549
|
}
|
|
1542
1550
|
return s;
|
|
1543
1551
|
}
|
|
1544
|
-
const
|
|
1545
|
-
function
|
|
1552
|
+
const ls = (e) => e, os = (e) => "", cs = "text", is = (e) => e.length === 0 ? "" : br(e), us = pr;
|
|
1553
|
+
function jt(e, t) {
|
|
1546
1554
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1547
1555
|
}
|
|
1548
|
-
function
|
|
1549
|
-
const t =
|
|
1550
|
-
return e.named && (
|
|
1556
|
+
function fs(e) {
|
|
1557
|
+
const t = G(e.pluralIndex) ? e.pluralIndex : -1;
|
|
1558
|
+
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;
|
|
1551
1559
|
}
|
|
1552
|
-
function
|
|
1560
|
+
function _s(e, t) {
|
|
1553
1561
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1554
1562
|
}
|
|
1555
|
-
function
|
|
1556
|
-
const t = e.locale, n =
|
|
1557
|
-
|
|
1563
|
+
function ms(e = {}) {
|
|
1564
|
+
const t = e.locale, n = fs(e), r = w(e.pluralRules) && S(t) && j(e.pluralRules[t]) ? e.pluralRules[t] : jt, s = w(e.pluralRules) && S(t) && j(e.pluralRules[t]) ? jt : void 0, l = (P) => P[r(n, P.length, s)], c = e.list || [], i = (P) => c[P], u = e.named || {};
|
|
1565
|
+
G(e.pluralIndex) && _s(n, u);
|
|
1558
1566
|
const m = (P) => u[P];
|
|
1559
1567
|
function T(P) {
|
|
1560
1568
|
const M = j(e.messages) ? e.messages(P) : w(e.messages) ? e.messages[P] : !1;
|
|
1561
|
-
return M || (e.parent ? e.parent.message(P) :
|
|
1569
|
+
return M || (e.parent ? e.parent.message(P) : os);
|
|
1562
1570
|
}
|
|
1563
|
-
const p = (P) => e.modifiers ? e.modifiers[P] :
|
|
1571
|
+
const p = (P) => e.modifiers ? e.modifiers[P] : ls, L = U(e.processor) && j(e.processor.normalize) ? e.processor.normalize : is, C = U(e.processor) && j(e.processor.interpolate) ? e.processor.interpolate : us, A = U(e.processor) && S(e.processor.type) ? e.processor.type : cs, y = {
|
|
1564
1572
|
list: i,
|
|
1565
1573
|
named: m,
|
|
1566
1574
|
plural: l,
|
|
@@ -1570,7 +1578,7 @@ function _s(e = {}) {
|
|
|
1570
1578
|
M.length === 1 ? w(_) ? (g = _.modifier || g, b = _.type || b) : S(_) && (g = _ || g) : M.length === 2 && (S(_) && (g = _ || g), S(d) && (b = d || b));
|
|
1571
1579
|
const I = T(P)(y), O = (
|
|
1572
1580
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1573
|
-
b === "vnode" &&
|
|
1581
|
+
b === "vnode" && Y(I) && g ? I[0] : I
|
|
1574
1582
|
);
|
|
1575
1583
|
return g ? p(g)(O, b) : O;
|
|
1576
1584
|
},
|
|
@@ -1583,10 +1591,10 @@ function _s(e = {}) {
|
|
|
1583
1591
|
return y;
|
|
1584
1592
|
}
|
|
1585
1593
|
let De = null;
|
|
1586
|
-
function
|
|
1594
|
+
function ds(e) {
|
|
1587
1595
|
De = e;
|
|
1588
1596
|
}
|
|
1589
|
-
function
|
|
1597
|
+
function Es(e, t, n) {
|
|
1590
1598
|
De && De.emit("i18n:init", {
|
|
1591
1599
|
timestamp: Date.now(),
|
|
1592
1600
|
i18n: e,
|
|
@@ -1594,15 +1602,15 @@ function ds(e, t, n) {
|
|
|
1594
1602
|
meta: n
|
|
1595
1603
|
});
|
|
1596
1604
|
}
|
|
1597
|
-
const
|
|
1605
|
+
const gs = /* @__PURE__ */ Ns(
|
|
1598
1606
|
"function:translate"
|
|
1599
1607
|
/* IntlifyDevToolsHooks.FunctionTranslate */
|
|
1600
1608
|
);
|
|
1601
|
-
function
|
|
1609
|
+
function Ns(e) {
|
|
1602
1610
|
return (t) => De && De.emit(e, t);
|
|
1603
1611
|
}
|
|
1604
|
-
const
|
|
1605
|
-
NOT_FOUND_KEY:
|
|
1612
|
+
const An = St.__EXTEND_POINT__, me = Be(An), Ls = {
|
|
1613
|
+
NOT_FOUND_KEY: An,
|
|
1606
1614
|
// 2
|
|
1607
1615
|
FALLBACK_TO_TRANSLATE: me(),
|
|
1608
1616
|
// 3
|
|
@@ -1618,8 +1626,8 @@ const Sn = yt.__EXTEND_POINT__, me = Ke(Sn), Ns = {
|
|
|
1618
1626
|
// 8
|
|
1619
1627
|
__EXTEND_POINT__: me()
|
|
1620
1628
|
// 9
|
|
1621
|
-
},
|
|
1622
|
-
INVALID_ARGUMENT:
|
|
1629
|
+
}, Pn = R.__EXTEND_POINT__, de = Be(Pn), ne = {
|
|
1630
|
+
INVALID_ARGUMENT: Pn,
|
|
1623
1631
|
// 17
|
|
1624
1632
|
INVALID_DATE_ARGUMENT: de(),
|
|
1625
1633
|
// 18
|
|
@@ -1639,84 +1647,80 @@ const Sn = yt.__EXTEND_POINT__, me = Ke(Sn), Ns = {
|
|
|
1639
1647
|
function oe(e) {
|
|
1640
1648
|
return Oe(e, null, void 0);
|
|
1641
1649
|
}
|
|
1642
|
-
function
|
|
1643
|
-
return t.locale != null ?
|
|
1650
|
+
function Pt(e, t) {
|
|
1651
|
+
return t.locale != null ? Ht(t.locale) : Ht(e.locale);
|
|
1644
1652
|
}
|
|
1645
|
-
let
|
|
1646
|
-
function
|
|
1653
|
+
let ut;
|
|
1654
|
+
function Ht(e) {
|
|
1647
1655
|
if (S(e))
|
|
1648
1656
|
return e;
|
|
1649
1657
|
if (j(e)) {
|
|
1650
|
-
if (e.resolvedOnce &&
|
|
1651
|
-
return
|
|
1658
|
+
if (e.resolvedOnce && ut != null)
|
|
1659
|
+
return ut;
|
|
1652
1660
|
if (e.constructor.name === "Function") {
|
|
1653
1661
|
const t = e();
|
|
1654
|
-
if (
|
|
1662
|
+
if (Lr(t))
|
|
1655
1663
|
throw oe(ne.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1656
|
-
return
|
|
1664
|
+
return ut = t;
|
|
1657
1665
|
} else
|
|
1658
1666
|
throw oe(ne.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1659
1667
|
} else
|
|
1660
1668
|
throw oe(ne.NOT_SUPPORT_LOCALE_TYPE);
|
|
1661
1669
|
}
|
|
1662
|
-
function
|
|
1670
|
+
function ps(e, t, n) {
|
|
1663
1671
|
return [.../* @__PURE__ */ new Set([
|
|
1664
1672
|
n,
|
|
1665
|
-
...
|
|
1673
|
+
...Y(t) ? t : w(t) ? Object.keys(t) : S(t) ? [t] : [n]
|
|
1666
1674
|
])];
|
|
1667
1675
|
}
|
|
1668
|
-
function
|
|
1669
|
-
const r = S(n) ? n :
|
|
1676
|
+
function kn(e, t, n) {
|
|
1677
|
+
const r = S(n) ? n : Ye, s = e;
|
|
1670
1678
|
s.__localeChainCache || (s.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1671
1679
|
let l = s.__localeChainCache.get(r);
|
|
1672
1680
|
if (!l) {
|
|
1673
1681
|
l = [];
|
|
1674
1682
|
let c = [n];
|
|
1675
|
-
for (;
|
|
1676
|
-
c =
|
|
1677
|
-
const i =
|
|
1678
|
-
c = S(i) ? [i] : i,
|
|
1683
|
+
for (; Y(c); )
|
|
1684
|
+
c = Xt(l, c, t);
|
|
1685
|
+
const i = Y(t) || !U(t) ? t : t.default ? t.default : null;
|
|
1686
|
+
c = S(i) ? [i] : i, Y(c) && Xt(l, c, !1), s.__localeChainCache.set(r, l);
|
|
1679
1687
|
}
|
|
1680
1688
|
return l;
|
|
1681
1689
|
}
|
|
1682
|
-
function
|
|
1690
|
+
function Xt(e, t, n) {
|
|
1683
1691
|
let r = !0;
|
|
1684
1692
|
for (let s = 0; s < t.length && x(r); s++) {
|
|
1685
1693
|
const l = t[s];
|
|
1686
|
-
S(l) && (r =
|
|
1694
|
+
S(l) && (r = bs(e, t[s], n));
|
|
1687
1695
|
}
|
|
1688
1696
|
return r;
|
|
1689
1697
|
}
|
|
1690
|
-
function
|
|
1698
|
+
function bs(e, t, n) {
|
|
1691
1699
|
let r;
|
|
1692
1700
|
const s = t.split("-");
|
|
1693
1701
|
do {
|
|
1694
1702
|
const l = s.join("-");
|
|
1695
|
-
r =
|
|
1703
|
+
r = hs(e, l, n), s.splice(-1, 1);
|
|
1696
1704
|
} while (s.length && r === !0);
|
|
1697
1705
|
return r;
|
|
1698
1706
|
}
|
|
1699
|
-
function
|
|
1707
|
+
function hs(e, t, n) {
|
|
1700
1708
|
let r = !1;
|
|
1701
1709
|
if (!e.includes(t) && (r = !0, t)) {
|
|
1702
1710
|
r = t[t.length - 1] !== "!";
|
|
1703
1711
|
const s = t.replace(/!/g, "");
|
|
1704
|
-
e.push(s), (
|
|
1712
|
+
e.push(s), (Y(n) || U(n)) && n[s] && (r = n[s]);
|
|
1705
1713
|
}
|
|
1706
1714
|
return r;
|
|
1707
1715
|
}
|
|
1708
|
-
const
|
|
1709
|
-
function
|
|
1716
|
+
const Ts = "9.13.1", Je = -1, Ye = "en-US", Yt = "", Gt = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1717
|
+
function Is() {
|
|
1710
1718
|
return {
|
|
1711
1719
|
upper: (e, t) => t === "text" && S(e) ? e.toUpperCase() : t === "vnode" && w(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1712
1720
|
lower: (e, t) => t === "text" && S(e) ? e.toLowerCase() : t === "vnode" && w(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1713
1721
|
capitalize: (e, t) => t === "text" && S(e) ? Gt(e) : t === "vnode" && w(e) && "__v_isVNode" in e ? Gt(e.children) : e
|
|
1714
1722
|
};
|
|
1715
1723
|
}
|
|
1716
|
-
let kn;
|
|
1717
|
-
function Is(e) {
|
|
1718
|
-
kn = e;
|
|
1719
|
-
}
|
|
1720
1724
|
let Dn;
|
|
1721
1725
|
function Os(e) {
|
|
1722
1726
|
Dn = e;
|
|
@@ -1725,21 +1729,25 @@ let Rn;
|
|
|
1725
1729
|
function Cs(e) {
|
|
1726
1730
|
Rn = e;
|
|
1727
1731
|
}
|
|
1728
|
-
let vn
|
|
1729
|
-
|
|
1732
|
+
let vn;
|
|
1733
|
+
function ys(e) {
|
|
1730
1734
|
vn = e;
|
|
1731
|
-
}
|
|
1735
|
+
}
|
|
1732
1736
|
let Mn = null;
|
|
1733
|
-
const
|
|
1737
|
+
const Ss = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1734
1738
|
Mn = e;
|
|
1735
|
-
}, As = () => Mn;
|
|
1736
|
-
let
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1739
|
+
}, As = /* @__NO_SIDE_EFFECTS__ */ () => Mn;
|
|
1740
|
+
let Fn = null;
|
|
1741
|
+
const Kt = (e) => {
|
|
1742
|
+
Fn = e;
|
|
1743
|
+
}, Ps = () => Fn;
|
|
1744
|
+
let Bt = 0;
|
|
1745
|
+
function ks(e = {}) {
|
|
1746
|
+
const t = j(e.onWarn) ? e.onWarn : hr, n = S(e.version) ? e.version : Ts, r = S(e.locale) || j(e.locale) ? e.locale : Ye, s = j(r) ? Ye : r, l = Y(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 || {}, Is()), T = e.pluralRules || {}, p = j(e.missing) ? e.missing : null, L = x(e.missingWarn) || je(e.missingWarn) ? e.missingWarn : !0, C = x(e.fallbackWarn) || je(e.fallbackWarn) ? e.fallbackWarn : !0, A = !!e.fallbackFormat, D = !!e.unresolving, y = j(e.postTranslation) ? e.postTranslation : null, P = U(e.processor) ? e.processor : null, M = x(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, _ = !!e.escapeParameter, d = j(e.messageCompiler) ? e.messageCompiler : Dn, b = j(e.messageResolver) ? e.messageResolver : Rn || ss, g = j(e.localeFallbacker) ? e.localeFallbacker : vn || ps, I = w(e.fallbackContext) ? e.fallbackContext : void 0, O = e, h = w(O.__datetimeFormatters) ? O.__datetimeFormatters : /* @__PURE__ */ new Map(), W = w(O.__numberFormatters) ? O.__numberFormatters : /* @__PURE__ */ new Map(), X = w(O.__meta) ? O.__meta : {};
|
|
1747
|
+
Bt++;
|
|
1740
1748
|
const F = {
|
|
1741
1749
|
version: n,
|
|
1742
|
-
cid:
|
|
1750
|
+
cid: Bt,
|
|
1743
1751
|
locale: r,
|
|
1744
1752
|
fallbackLocale: l,
|
|
1745
1753
|
messages: c,
|
|
@@ -1761,9 +1769,9 @@ function Ps(e = {}) {
|
|
|
1761
1769
|
onWarn: t,
|
|
1762
1770
|
__meta: X
|
|
1763
1771
|
};
|
|
1764
|
-
return F.datetimeFormats = i, F.numberFormats = u, F.__datetimeFormatters = h, F.__numberFormatters = W,
|
|
1772
|
+
return F.datetimeFormats = i, F.numberFormats = u, F.__datetimeFormatters = h, F.__numberFormatters = W, Es(F, n, X), F;
|
|
1765
1773
|
}
|
|
1766
|
-
function
|
|
1774
|
+
function kt(e, t, n, r, s) {
|
|
1767
1775
|
const { missing: l, onWarn: c } = e;
|
|
1768
1776
|
if (l !== null) {
|
|
1769
1777
|
const i = l(e, n, t, s);
|
|
@@ -1775,42 +1783,42 @@ function Pe(e, t, n) {
|
|
|
1775
1783
|
const r = e;
|
|
1776
1784
|
r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
1777
1785
|
}
|
|
1778
|
-
function
|
|
1786
|
+
function Ds(e, t) {
|
|
1779
1787
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
1780
1788
|
}
|
|
1781
|
-
function
|
|
1789
|
+
function Rs(e, t) {
|
|
1782
1790
|
const n = t.indexOf(e);
|
|
1783
1791
|
if (n === -1)
|
|
1784
1792
|
return !1;
|
|
1785
1793
|
for (let r = n + 1; r < t.length; r++)
|
|
1786
|
-
if (
|
|
1794
|
+
if (Ds(e, t[r]))
|
|
1787
1795
|
return !0;
|
|
1788
1796
|
return !1;
|
|
1789
1797
|
}
|
|
1790
|
-
function
|
|
1791
|
-
return (n) =>
|
|
1798
|
+
function ft(e) {
|
|
1799
|
+
return (n) => vs(n, e);
|
|
1792
1800
|
}
|
|
1793
|
-
function
|
|
1801
|
+
function vs(e, t) {
|
|
1794
1802
|
const n = t.b || t.body;
|
|
1795
1803
|
if ((n.t || n.type) === 1) {
|
|
1796
1804
|
const r = n, s = r.c || r.cases;
|
|
1797
1805
|
return e.plural(s.reduce((l, c) => [
|
|
1798
1806
|
...l,
|
|
1799
|
-
|
|
1807
|
+
Jt(e, c)
|
|
1800
1808
|
], []));
|
|
1801
1809
|
} else
|
|
1802
|
-
return
|
|
1810
|
+
return Jt(e, n);
|
|
1803
1811
|
}
|
|
1804
|
-
function
|
|
1812
|
+
function Jt(e, t) {
|
|
1805
1813
|
const n = t.s || t.static;
|
|
1806
1814
|
if (n)
|
|
1807
1815
|
return e.type === "text" ? n : e.normalize([n]);
|
|
1808
1816
|
{
|
|
1809
|
-
const r = (t.i || t.items).reduce((s, l) => [...s,
|
|
1817
|
+
const r = (t.i || t.items).reduce((s, l) => [...s, dt(e, l)], []);
|
|
1810
1818
|
return e.normalize(r);
|
|
1811
1819
|
}
|
|
1812
1820
|
}
|
|
1813
|
-
function
|
|
1821
|
+
function dt(e, t) {
|
|
1814
1822
|
const n = t.t || t.type;
|
|
1815
1823
|
switch (n) {
|
|
1816
1824
|
case 3: {
|
|
@@ -1831,7 +1839,7 @@ function mt(e, t) {
|
|
|
1831
1839
|
}
|
|
1832
1840
|
case 6: {
|
|
1833
1841
|
const r = t, s = r.m || r.modifier;
|
|
1834
|
-
return e.linked(
|
|
1842
|
+
return e.linked(dt(e, r.k || r.key), s ? dt(e, s) : void 0, e.type);
|
|
1835
1843
|
}
|
|
1836
1844
|
case 7: {
|
|
1837
1845
|
const r = t;
|
|
@@ -1845,55 +1853,55 @@ function mt(e, t) {
|
|
|
1845
1853
|
throw new Error(`unhandled node type on format message part: ${n}`);
|
|
1846
1854
|
}
|
|
1847
1855
|
}
|
|
1848
|
-
const
|
|
1849
|
-
let
|
|
1856
|
+
const Ms = (e) => e;
|
|
1857
|
+
let We = /* @__PURE__ */ Object.create(null);
|
|
1850
1858
|
const Ie = (e) => w(e) && (e.t === 0 || e.type === 0) && ("b" in e || "body" in e);
|
|
1851
|
-
function
|
|
1859
|
+
function Fs(e, t = {}) {
|
|
1852
1860
|
let n = !1;
|
|
1853
|
-
const r = t.onError ||
|
|
1861
|
+
const r = t.onError || Ar;
|
|
1854
1862
|
return t.onError = (s) => {
|
|
1855
1863
|
n = !0, r(s);
|
|
1856
|
-
}, { ...
|
|
1864
|
+
}, { ...qr(e, t), detectError: n };
|
|
1857
1865
|
}
|
|
1858
|
-
function
|
|
1866
|
+
function Us(e, t) {
|
|
1859
1867
|
if (S(e)) {
|
|
1860
1868
|
x(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
1861
|
-
const r = (t.onCacheKey ||
|
|
1869
|
+
const r = (t.onCacheKey || Ms)(e), s = We[r];
|
|
1862
1870
|
if (s)
|
|
1863
1871
|
return s;
|
|
1864
|
-
const { ast: l, detectError: c } =
|
|
1872
|
+
const { ast: l, detectError: c } = Fs(e, {
|
|
1865
1873
|
...t,
|
|
1866
1874
|
location: !1,
|
|
1867
1875
|
jit: !0
|
|
1868
|
-
}), i =
|
|
1869
|
-
return c ? i :
|
|
1876
|
+
}), i = ft(l);
|
|
1877
|
+
return c ? i : We[r] = i;
|
|
1870
1878
|
} else {
|
|
1871
1879
|
const n = e.cacheKey;
|
|
1872
1880
|
if (n) {
|
|
1873
|
-
const r =
|
|
1874
|
-
return r || (
|
|
1881
|
+
const r = We[n];
|
|
1882
|
+
return r || (We[n] = ft(e));
|
|
1875
1883
|
} else
|
|
1876
|
-
return
|
|
1884
|
+
return ft(e);
|
|
1877
1885
|
}
|
|
1878
1886
|
}
|
|
1879
|
-
const
|
|
1880
|
-
function
|
|
1881
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: l, fallbackLocale: c, messages: i } = e, [u, m] =
|
|
1882
|
-
L &&
|
|
1887
|
+
const Qt = () => "", Z = (e) => j(e);
|
|
1888
|
+
function qt(e, ...t) {
|
|
1889
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: l, fallbackLocale: c, messages: i } = e, [u, m] = Et(...t), T = x(m.missingWarn) ? m.missingWarn : e.missingWarn, p = x(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, L = x(m.escapeParameter) ? m.escapeParameter : e.escapeParameter, C = !!m.resolvedMessage, A = S(m.default) || x(m.default) ? x(m.default) ? l ? u : () => u : m.default : n ? l ? u : () => u : "", D = n || A !== "", y = Pt(e, m);
|
|
1890
|
+
L && ws(m);
|
|
1883
1891
|
let [P, M, _] = C ? [
|
|
1884
1892
|
u,
|
|
1885
1893
|
y,
|
|
1886
1894
|
i[y] || {}
|
|
1887
|
-
] :
|
|
1895
|
+
] : Un(e, u, y, c, p, T), d = P, b = u;
|
|
1888
1896
|
if (!C && !(S(d) || Ie(d) || Z(d)) && D && (d = A, b = d), !C && (!(S(d) || Ie(d) || Z(d)) || !S(M)))
|
|
1889
|
-
return s ?
|
|
1897
|
+
return s ? Je : u;
|
|
1890
1898
|
let g = !1;
|
|
1891
1899
|
const I = () => {
|
|
1892
1900
|
g = !0;
|
|
1893
|
-
}, O = Z(d) ? d :
|
|
1901
|
+
}, O = Z(d) ? d : wn(e, u, M, d, b, I);
|
|
1894
1902
|
if (g)
|
|
1895
1903
|
return d;
|
|
1896
|
-
const h =
|
|
1904
|
+
const h = $s(e, M, _, m), W = ms(h), X = Ws(e, O, W), F = r ? r(X, u) : X;
|
|
1897
1905
|
{
|
|
1898
1906
|
const K = {
|
|
1899
1907
|
timestamp: Date.now(),
|
|
@@ -1902,22 +1910,22 @@ function Qt(e, ...t) {
|
|
|
1902
1910
|
format: S(d) ? d : Z(d) ? d.source : "",
|
|
1903
1911
|
message: F
|
|
1904
1912
|
};
|
|
1905
|
-
K.meta = J({}, e.__meta, /* @__PURE__ */
|
|
1913
|
+
K.meta = J({}, e.__meta, /* @__PURE__ */ As() || {}), gs(K);
|
|
1906
1914
|
}
|
|
1907
1915
|
return F;
|
|
1908
1916
|
}
|
|
1909
|
-
function
|
|
1910
|
-
|
|
1911
|
-
S(e.named[t]) && (e.named[t] =
|
|
1917
|
+
function ws(e) {
|
|
1918
|
+
Y(e.list) ? e.list = e.list.map((t) => S(t) ? Ut(t) : t) : w(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1919
|
+
S(e.named[t]) && (e.named[t] = Ut(e.named[t]));
|
|
1912
1920
|
});
|
|
1913
1921
|
}
|
|
1914
|
-
function
|
|
1922
|
+
function Un(e, t, n, r, s, l) {
|
|
1915
1923
|
const { messages: c, onWarn: i, messageResolver: u, localeFallbacker: m } = e, T = m(e, r, n);
|
|
1916
1924
|
let p = {}, L, C = null;
|
|
1917
1925
|
const A = "translate";
|
|
1918
1926
|
for (let D = 0; D < T.length && (L = T[D], p = c[L] || {}, (C = u(p, t)) === null && (C = p[t]), !(S(C) || Ie(C) || Z(C))); D++)
|
|
1919
|
-
if (!
|
|
1920
|
-
const y =
|
|
1927
|
+
if (!Rs(L, T)) {
|
|
1928
|
+
const y = kt(
|
|
1921
1929
|
e,
|
|
1922
1930
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1923
1931
|
t,
|
|
@@ -1929,7 +1937,7 @@ function Fn(e, t, n, r, s, l) {
|
|
|
1929
1937
|
}
|
|
1930
1938
|
return [C, L, p];
|
|
1931
1939
|
}
|
|
1932
|
-
function
|
|
1940
|
+
function wn(e, t, n, r, s, l) {
|
|
1933
1941
|
const { messageCompiler: c, warnHtmlMessage: i } = e;
|
|
1934
1942
|
if (Z(r)) {
|
|
1935
1943
|
const m = r;
|
|
@@ -1939,20 +1947,20 @@ function Un(e, t, n, r, s, l) {
|
|
|
1939
1947
|
const m = () => r;
|
|
1940
1948
|
return m.locale = n, m.key = t, m;
|
|
1941
1949
|
}
|
|
1942
|
-
const u = c(r,
|
|
1950
|
+
const u = c(r, Vs(e, n, s, r, i, l));
|
|
1943
1951
|
return u.locale = n, u.key = t, u.source = r, u;
|
|
1944
1952
|
}
|
|
1945
|
-
function
|
|
1953
|
+
function Ws(e, t, n) {
|
|
1946
1954
|
return t(n);
|
|
1947
1955
|
}
|
|
1948
|
-
function
|
|
1956
|
+
function Et(...e) {
|
|
1949
1957
|
const [t, n, r] = e, s = {};
|
|
1950
|
-
if (!S(t) && !
|
|
1958
|
+
if (!S(t) && !G(t) && !Z(t) && !Ie(t))
|
|
1951
1959
|
throw oe(ne.INVALID_ARGUMENT);
|
|
1952
|
-
const l =
|
|
1953
|
-
return
|
|
1960
|
+
const l = G(t) ? String(t) : (Z(t), t);
|
|
1961
|
+
return G(n) ? s.plural = n : S(n) ? s.default = n : U(n) && !Ke(n) ? s.named = n : Y(n) && (s.list = n), G(r) ? s.plural = r : S(r) ? s.default = r : U(r) && J(s, r), [l, s];
|
|
1954
1962
|
}
|
|
1955
|
-
function
|
|
1963
|
+
function Vs(e, t, n, r, s, l) {
|
|
1956
1964
|
return {
|
|
1957
1965
|
locale: t,
|
|
1958
1966
|
key: n,
|
|
@@ -1960,10 +1968,10 @@ function Ws(e, t, n, r, s, l) {
|
|
|
1960
1968
|
onError: (c) => {
|
|
1961
1969
|
throw l && l(c), c;
|
|
1962
1970
|
},
|
|
1963
|
-
onCacheKey: (c) =>
|
|
1971
|
+
onCacheKey: (c) => mr(t, n, c)
|
|
1964
1972
|
};
|
|
1965
1973
|
}
|
|
1966
|
-
function
|
|
1974
|
+
function $s(e, t, n, r) {
|
|
1967
1975
|
const { modifiers: s, pluralRules: l, messageResolver: c, fallbackLocale: i, fallbackWarn: u, missingWarn: m, fallbackContext: T } = e, L = {
|
|
1968
1976
|
locale: t,
|
|
1969
1977
|
modifiers: s,
|
|
@@ -1971,24 +1979,24 @@ function Vs(e, t, n, r) {
|
|
|
1971
1979
|
messages: (C) => {
|
|
1972
1980
|
let A = c(n, C);
|
|
1973
1981
|
if (A == null && T) {
|
|
1974
|
-
const [, , D] =
|
|
1982
|
+
const [, , D] = Un(T, C, t, i, u, m);
|
|
1975
1983
|
A = c(D, C);
|
|
1976
1984
|
}
|
|
1977
1985
|
if (S(A) || Ie(A)) {
|
|
1978
1986
|
let D = !1;
|
|
1979
|
-
const P =
|
|
1987
|
+
const P = wn(e, C, t, A, C, () => {
|
|
1980
1988
|
D = !0;
|
|
1981
1989
|
});
|
|
1982
|
-
return D ?
|
|
1983
|
-
} else return Z(A) ? A :
|
|
1990
|
+
return D ? Qt : P;
|
|
1991
|
+
} else return Z(A) ? A : Qt;
|
|
1984
1992
|
}
|
|
1985
1993
|
};
|
|
1986
|
-
return e.processor && (L.processor = e.processor), r.list && (L.list = r.list), r.named && (L.named = r.named),
|
|
1994
|
+
return e.processor && (L.processor = e.processor), r.list && (L.list = r.list), r.named && (L.named = r.named), G(r.plural) && (L.pluralIndex = r.plural), L;
|
|
1987
1995
|
}
|
|
1988
|
-
function
|
|
1989
|
-
const { datetimeFormats: n, unresolving: r, fallbackLocale: s, onWarn: l, localeFallbacker: c } = e, { __datetimeFormatters: i } = e, [u, m, T, p] =
|
|
1996
|
+
function Zt(e, ...t) {
|
|
1997
|
+
const { datetimeFormats: n, unresolving: r, fallbackLocale: s, onWarn: l, localeFallbacker: c } = e, { __datetimeFormatters: i } = e, [u, m, T, p] = gt(...t), L = x(T.missingWarn) ? T.missingWarn : e.missingWarn;
|
|
1990
1998
|
x(T.fallbackWarn) ? T.fallbackWarn : e.fallbackWarn;
|
|
1991
|
-
const C = !!T.part, A =
|
|
1999
|
+
const C = !!T.part, A = Pt(e, T), D = c(
|
|
1992
2000
|
e,
|
|
1993
2001
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1994
2002
|
s,
|
|
@@ -1999,15 +2007,15 @@ function qt(e, ...t) {
|
|
|
1999
2007
|
let y = {}, P, M = null;
|
|
2000
2008
|
const _ = "datetime format";
|
|
2001
2009
|
for (let g = 0; g < D.length && (P = D[g], y = n[P] || {}, M = y[u], !U(M)); g++)
|
|
2002
|
-
|
|
2010
|
+
kt(e, u, P, L, _);
|
|
2003
2011
|
if (!U(M) || !S(P))
|
|
2004
|
-
return r ?
|
|
2012
|
+
return r ? Je : u;
|
|
2005
2013
|
let d = `${P}__${u}`;
|
|
2006
|
-
|
|
2014
|
+
Ke(p) || (d = `${d}__${JSON.stringify(p)}`);
|
|
2007
2015
|
let b = i.get(d);
|
|
2008
2016
|
return b || (b = new Intl.DateTimeFormat(P, J({}, M, p)), i.set(d, b)), C ? b.formatToParts(m) : b.format(m);
|
|
2009
2017
|
}
|
|
2010
|
-
const
|
|
2018
|
+
const Wn = [
|
|
2011
2019
|
"localeMatcher",
|
|
2012
2020
|
"weekday",
|
|
2013
2021
|
"era",
|
|
@@ -2029,7 +2037,7 @@ const wn = [
|
|
|
2029
2037
|
"hourCycle",
|
|
2030
2038
|
"fractionalSecondDigits"
|
|
2031
2039
|
];
|
|
2032
|
-
function
|
|
2040
|
+
function gt(...e) {
|
|
2033
2041
|
const [t, n, r, s] = e, l = {};
|
|
2034
2042
|
let c = {}, i;
|
|
2035
2043
|
if (S(t)) {
|
|
@@ -2043,29 +2051,29 @@ function Et(...e) {
|
|
|
2043
2051
|
} catch {
|
|
2044
2052
|
throw oe(ne.INVALID_ISO_DATE_ARGUMENT);
|
|
2045
2053
|
}
|
|
2046
|
-
} else if (
|
|
2054
|
+
} else if (Er(t)) {
|
|
2047
2055
|
if (isNaN(t.getTime()))
|
|
2048
2056
|
throw oe(ne.INVALID_DATE_ARGUMENT);
|
|
2049
2057
|
i = t;
|
|
2050
|
-
} else if (
|
|
2058
|
+
} else if (G(t))
|
|
2051
2059
|
i = t;
|
|
2052
2060
|
else
|
|
2053
2061
|
throw oe(ne.INVALID_ARGUMENT);
|
|
2054
2062
|
return S(n) ? l.key = n : U(n) && Object.keys(n).forEach((u) => {
|
|
2055
|
-
|
|
2063
|
+
Wn.includes(u) ? c[u] = n[u] : l[u] = n[u];
|
|
2056
2064
|
}), S(r) ? l.locale = r : U(r) && (c = r), U(s) && (c = s), [l.key || "", i, l, c];
|
|
2057
2065
|
}
|
|
2058
|
-
function
|
|
2066
|
+
function zt(e, t, n) {
|
|
2059
2067
|
const r = e;
|
|
2060
2068
|
for (const s in n) {
|
|
2061
2069
|
const l = `${t}__${s}`;
|
|
2062
2070
|
r.__datetimeFormatters.has(l) && r.__datetimeFormatters.delete(l);
|
|
2063
2071
|
}
|
|
2064
2072
|
}
|
|
2065
|
-
function
|
|
2066
|
-
const { numberFormats: n, unresolving: r, fallbackLocale: s, onWarn: l, localeFallbacker: c } = e, { __numberFormatters: i } = e, [u, m, T, p] =
|
|
2073
|
+
function en(e, ...t) {
|
|
2074
|
+
const { numberFormats: n, unresolving: r, fallbackLocale: s, onWarn: l, localeFallbacker: c } = e, { __numberFormatters: i } = e, [u, m, T, p] = Nt(...t), L = x(T.missingWarn) ? T.missingWarn : e.missingWarn;
|
|
2067
2075
|
x(T.fallbackWarn) ? T.fallbackWarn : e.fallbackWarn;
|
|
2068
|
-
const C = !!T.part, A =
|
|
2076
|
+
const C = !!T.part, A = Pt(e, T), D = c(
|
|
2069
2077
|
e,
|
|
2070
2078
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2071
2079
|
s,
|
|
@@ -2076,15 +2084,15 @@ function zt(e, ...t) {
|
|
|
2076
2084
|
let y = {}, P, M = null;
|
|
2077
2085
|
const _ = "number format";
|
|
2078
2086
|
for (let g = 0; g < D.length && (P = D[g], y = n[P] || {}, M = y[u], !U(M)); g++)
|
|
2079
|
-
|
|
2087
|
+
kt(e, u, P, L, _);
|
|
2080
2088
|
if (!U(M) || !S(P))
|
|
2081
|
-
return r ?
|
|
2089
|
+
return r ? Je : u;
|
|
2082
2090
|
let d = `${P}__${u}`;
|
|
2083
|
-
|
|
2091
|
+
Ke(p) || (d = `${d}__${JSON.stringify(p)}`);
|
|
2084
2092
|
let b = i.get(d);
|
|
2085
2093
|
return b || (b = new Intl.NumberFormat(P, J({}, M, p)), i.set(d, b)), C ? b.formatToParts(m) : b.format(m);
|
|
2086
2094
|
}
|
|
2087
|
-
const
|
|
2095
|
+
const Vn = [
|
|
2088
2096
|
"localeMatcher",
|
|
2089
2097
|
"style",
|
|
2090
2098
|
"currency",
|
|
@@ -2106,17 +2114,17 @@ const Wn = [
|
|
|
2106
2114
|
"roundingIncrement",
|
|
2107
2115
|
"trailingZeroDisplay"
|
|
2108
2116
|
];
|
|
2109
|
-
function
|
|
2117
|
+
function Nt(...e) {
|
|
2110
2118
|
const [t, n, r, s] = e, l = {};
|
|
2111
2119
|
let c = {};
|
|
2112
|
-
if (!
|
|
2120
|
+
if (!G(t))
|
|
2113
2121
|
throw oe(ne.INVALID_ARGUMENT);
|
|
2114
2122
|
const i = t;
|
|
2115
2123
|
return S(n) ? l.key = n : U(n) && Object.keys(n).forEach((u) => {
|
|
2116
|
-
|
|
2124
|
+
Vn.includes(u) ? c[u] = n[u] : l[u] = n[u];
|
|
2117
2125
|
}), S(r) ? l.locale = r : U(r) && (c = r), U(s) && (c = s), [l.key || "", i, l, c];
|
|
2118
2126
|
}
|
|
2119
|
-
function
|
|
2127
|
+
function tn(e, t, n) {
|
|
2120
2128
|
const r = e;
|
|
2121
2129
|
for (const s in n) {
|
|
2122
2130
|
const l = `${t}__${s}`;
|
|
@@ -2128,11 +2136,11 @@ function en(e, t, n) {
|
|
|
2128
2136
|
* (c) 2024 kazuya kawaguchi
|
|
2129
2137
|
* Released under the MIT License.
|
|
2130
2138
|
*/
|
|
2131
|
-
const
|
|
2139
|
+
const xs = "9.13.1", $n = Ls.__EXTEND_POINT__, le = Be($n);
|
|
2132
2140
|
le(), le(), le(), le(), le(), le(), le(), le(), le();
|
|
2133
|
-
const
|
|
2141
|
+
const xn = ne.__EXTEND_POINT__, q = Be(xn), z = {
|
|
2134
2142
|
// composer module errors
|
|
2135
|
-
UNEXPECTED_RETURN_TYPE:
|
|
2143
|
+
UNEXPECTED_RETURN_TYPE: xn,
|
|
2136
2144
|
// 24
|
|
2137
2145
|
// legacy module errors
|
|
2138
2146
|
INVALID_ARGUMENT: q(),
|
|
@@ -2176,12 +2184,12 @@ const $n = ne.__EXTEND_POINT__, q = Ke($n), z = {
|
|
|
2176
2184
|
function te(e, ...t) {
|
|
2177
2185
|
return Oe(e, null, void 0);
|
|
2178
2186
|
}
|
|
2179
|
-
const
|
|
2187
|
+
const Lt = /* @__PURE__ */ fe("__translateVNode"), pt = /* @__PURE__ */ fe("__datetimeParts"), bt = /* @__PURE__ */ fe("__numberParts"), js = fe("__setPluralRules"), Hs = /* @__PURE__ */ fe("__injectWithOption"), ht = /* @__PURE__ */ fe("__dispose");
|
|
2180
2188
|
function Re(e) {
|
|
2181
2189
|
if (!w(e))
|
|
2182
2190
|
return e;
|
|
2183
2191
|
for (const t in e)
|
|
2184
|
-
if (
|
|
2192
|
+
if (He(e, t))
|
|
2185
2193
|
if (!t.includes("."))
|
|
2186
2194
|
w(e[t]) && Re(e[t]);
|
|
2187
2195
|
else {
|
|
@@ -2198,25 +2206,25 @@ function Re(e) {
|
|
|
2198
2206
|
}
|
|
2199
2207
|
return e;
|
|
2200
2208
|
}
|
|
2201
|
-
function
|
|
2202
|
-
const { messages: n, __i18n: r, messageResolver: s, flatJson: l } = t, c = U(n) ? n :
|
|
2203
|
-
if (
|
|
2209
|
+
function jn(e, t) {
|
|
2210
|
+
const { messages: n, __i18n: r, messageResolver: s, flatJson: l } = t, c = U(n) ? n : Y(r) ? {} : { [e]: {} };
|
|
2211
|
+
if (Y(r) && r.forEach((i) => {
|
|
2204
2212
|
if ("locale" in i && "resource" in i) {
|
|
2205
2213
|
const { locale: u, resource: m } = i;
|
|
2206
|
-
u ? (c[u] = c[u] || {},
|
|
2214
|
+
u ? (c[u] = c[u] || {}, Ve(m, c[u])) : Ve(m, c);
|
|
2207
2215
|
} else
|
|
2208
|
-
S(i) &&
|
|
2216
|
+
S(i) && Ve(JSON.parse(i), c);
|
|
2209
2217
|
}), s == null && l)
|
|
2210
2218
|
for (const i in c)
|
|
2211
|
-
|
|
2219
|
+
He(c, i) && Re(c[i]);
|
|
2212
2220
|
return c;
|
|
2213
2221
|
}
|
|
2214
|
-
function
|
|
2222
|
+
function Hn(e) {
|
|
2215
2223
|
return e.type;
|
|
2216
2224
|
}
|
|
2217
|
-
function
|
|
2225
|
+
function Xs(e, t, n) {
|
|
2218
2226
|
let r = w(t.messages) ? t.messages : {};
|
|
2219
|
-
"__i18nGlobal" in n && (r =
|
|
2227
|
+
"__i18nGlobal" in n && (r = jn(e.locale.value, {
|
|
2220
2228
|
messages: r,
|
|
2221
2229
|
__i18n: n.__i18nGlobal
|
|
2222
2230
|
}));
|
|
@@ -2239,36 +2247,36 @@ function Hs(e, t, n) {
|
|
|
2239
2247
|
}
|
|
2240
2248
|
}
|
|
2241
2249
|
}
|
|
2242
|
-
function
|
|
2243
|
-
return
|
|
2250
|
+
function nn(e) {
|
|
2251
|
+
return ar(lr, null, e, 0);
|
|
2244
2252
|
}
|
|
2245
|
-
const
|
|
2246
|
-
let
|
|
2247
|
-
function
|
|
2248
|
-
return (t, n, r, s) => e(n, r,
|
|
2253
|
+
const rn = "__INTLIFY_META__", sn = () => [], Ys = () => !1;
|
|
2254
|
+
let an = 0;
|
|
2255
|
+
function ln(e) {
|
|
2256
|
+
return (t, n, r, s) => e(n, r, yt() || void 0, s);
|
|
2249
2257
|
}
|
|
2250
2258
|
const Gs = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
2251
|
-
const e =
|
|
2259
|
+
const e = yt();
|
|
2252
2260
|
let t = null;
|
|
2253
|
-
return e && (t =
|
|
2261
|
+
return e && (t = Hn(e)[rn]) ? { [rn]: t } : null;
|
|
2254
2262
|
};
|
|
2255
|
-
function
|
|
2256
|
-
const { __root: n, __injectWithOption: r } = e, s = n === void 0, l = e.flatJson, c =
|
|
2263
|
+
function Xn(e = {}, t) {
|
|
2264
|
+
const { __root: n, __injectWithOption: r } = e, s = n === void 0, l = e.flatJson, c = xe ? It : sr, i = !!e.translateExistCompatible;
|
|
2257
2265
|
let u = x(e.inheritLocale) ? e.inheritLocale : !0;
|
|
2258
2266
|
const m = c(
|
|
2259
2267
|
// prettier-ignore
|
|
2260
|
-
n && u ? n.locale.value : S(e.locale) ? e.locale :
|
|
2268
|
+
n && u ? n.locale.value : S(e.locale) ? e.locale : Ye
|
|
2261
2269
|
), T = c(
|
|
2262
2270
|
// prettier-ignore
|
|
2263
|
-
n && u ? n.fallbackLocale.value : S(e.fallbackLocale) ||
|
|
2264
|
-
), p = c(
|
|
2265
|
-
let A = n ? n.missingWarn : x(e.missingWarn) ||
|
|
2271
|
+
n && u ? n.fallbackLocale.value : S(e.fallbackLocale) || Y(e.fallbackLocale) || U(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : m.value
|
|
2272
|
+
), p = c(jn(m.value, e)), L = c(U(e.datetimeFormats) ? e.datetimeFormats : { [m.value]: {} }), C = c(U(e.numberFormats) ? e.numberFormats : { [m.value]: {} });
|
|
2273
|
+
let A = n ? n.missingWarn : x(e.missingWarn) || je(e.missingWarn) ? e.missingWarn : !0, D = n ? n.fallbackWarn : x(e.fallbackWarn) || je(e.fallbackWarn) ? e.fallbackWarn : !0, y = n ? n.fallbackRoot : x(e.fallbackRoot) ? e.fallbackRoot : !0, P = !!e.fallbackFormat, M = j(e.missing) ? e.missing : null, _ = j(e.missing) ? ln(e.missing) : null, d = j(e.postTranslation) ? e.postTranslation : null, b = n ? n.warnHtmlMessage : x(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, g = !!e.escapeParameter;
|
|
2266
2274
|
const I = n ? n.modifiers : U(e.modifiers) ? e.modifiers : {};
|
|
2267
2275
|
let O = e.pluralRules || n && n.pluralRules, h;
|
|
2268
2276
|
h = (() => {
|
|
2269
|
-
s &&
|
|
2277
|
+
s && Kt(null);
|
|
2270
2278
|
const f = {
|
|
2271
|
-
version:
|
|
2279
|
+
version: xs,
|
|
2272
2280
|
locale: m.value,
|
|
2273
2281
|
fallbackLocale: T.value,
|
|
2274
2282
|
messages: p.value,
|
|
@@ -2287,8 +2295,8 @@ function Hn(e = {}, t) {
|
|
|
2287
2295
|
__meta: { framework: "vue" }
|
|
2288
2296
|
};
|
|
2289
2297
|
f.datetimeFormats = L.value, f.numberFormats = C.value, f.__datetimeFormatters = U(h) ? h.__datetimeFormatters : void 0, f.__numberFormatters = U(h) ? h.__numberFormatters : void 0;
|
|
2290
|
-
const N =
|
|
2291
|
-
return s &&
|
|
2298
|
+
const N = ks(f);
|
|
2299
|
+
return s && Kt(N), N;
|
|
2292
2300
|
})(), Pe(h, m.value, T.value);
|
|
2293
2301
|
function X() {
|
|
2294
2302
|
return [
|
|
@@ -2310,30 +2318,30 @@ function Hn(e = {}, t) {
|
|
|
2310
2318
|
T.value = f, h.fallbackLocale = T.value, Pe(h, m.value, f);
|
|
2311
2319
|
}
|
|
2312
2320
|
}), Ce = pe(() => p.value), re = /* @__PURE__ */ pe(() => L.value), B = /* @__PURE__ */ pe(() => C.value);
|
|
2313
|
-
function
|
|
2321
|
+
function Qe() {
|
|
2314
2322
|
return j(d) ? d : null;
|
|
2315
2323
|
}
|
|
2316
|
-
function
|
|
2324
|
+
function qe(f) {
|
|
2317
2325
|
d = f, h.postTranslation = f;
|
|
2318
2326
|
}
|
|
2319
|
-
function
|
|
2327
|
+
function Ze() {
|
|
2320
2328
|
return M;
|
|
2321
2329
|
}
|
|
2322
|
-
function
|
|
2323
|
-
f !== null && (_ =
|
|
2330
|
+
function ze(f) {
|
|
2331
|
+
f !== null && (_ = ln(f)), M = f, h.missing = _;
|
|
2324
2332
|
}
|
|
2325
2333
|
const se = (f, N, V, H, ce, Fe) => {
|
|
2326
2334
|
X();
|
|
2327
2335
|
let Ne;
|
|
2328
2336
|
try {
|
|
2329
|
-
s || (h.fallbackContext = n ?
|
|
2337
|
+
s || (h.fallbackContext = n ? Ps() : void 0), Ne = f(h);
|
|
2330
2338
|
} finally {
|
|
2331
2339
|
s || (h.fallbackContext = void 0);
|
|
2332
2340
|
}
|
|
2333
2341
|
if (V !== "translate exists" && // for not `te` (e.g `t`)
|
|
2334
|
-
|
|
2335
|
-
const [
|
|
2336
|
-
return n && y ? H(n) : ce(
|
|
2342
|
+
G(Ne) && Ne === Je || V === "translate exists" && !Ne) {
|
|
2343
|
+
const [Bn, Ea] = N();
|
|
2344
|
+
return n && y ? H(n) : ce(Bn);
|
|
2337
2345
|
} else {
|
|
2338
2346
|
if (Fe(Ne))
|
|
2339
2347
|
return Ne;
|
|
@@ -2341,84 +2349,84 @@ function Hn(e = {}, t) {
|
|
|
2341
2349
|
}
|
|
2342
2350
|
};
|
|
2343
2351
|
function ye(...f) {
|
|
2344
|
-
return se((N) => Reflect.apply(
|
|
2352
|
+
return se((N) => Reflect.apply(qt, null, [N, ...f]), () => Et(...f), "translate", (N) => Reflect.apply(N.t, N, [...f]), (N) => N, (N) => S(N));
|
|
2345
2353
|
}
|
|
2346
|
-
function
|
|
2354
|
+
function et(...f) {
|
|
2347
2355
|
const [N, V, H] = f;
|
|
2348
2356
|
if (H && !w(H))
|
|
2349
2357
|
throw te(z.INVALID_ARGUMENT);
|
|
2350
2358
|
return ye(N, V, J({ resolvedMessage: !0 }, H || {}));
|
|
2351
2359
|
}
|
|
2352
2360
|
function ve(...f) {
|
|
2353
|
-
return se((N) => Reflect.apply(
|
|
2361
|
+
return se((N) => Reflect.apply(Zt, null, [N, ...f]), () => gt(...f), "datetime format", (N) => Reflect.apply(N.d, N, [...f]), () => Yt, (N) => S(N));
|
|
2354
2362
|
}
|
|
2355
|
-
function
|
|
2356
|
-
return se((N) => Reflect.apply(
|
|
2363
|
+
function tt(...f) {
|
|
2364
|
+
return se((N) => Reflect.apply(en, null, [N, ...f]), () => Nt(...f), "number format", (N) => Reflect.apply(N.n, N, [...f]), () => Yt, (N) => S(N));
|
|
2357
2365
|
}
|
|
2358
|
-
function
|
|
2359
|
-
return f.map((N) => S(N) ||
|
|
2366
|
+
function nt(f) {
|
|
2367
|
+
return f.map((N) => S(N) || G(N) || x(N) ? nn(String(N)) : N);
|
|
2360
2368
|
}
|
|
2361
|
-
const
|
|
2362
|
-
normalize:
|
|
2369
|
+
const rt = {
|
|
2370
|
+
normalize: nt,
|
|
2363
2371
|
interpolate: (f) => f,
|
|
2364
2372
|
type: "vnode"
|
|
2365
2373
|
};
|
|
2366
|
-
function
|
|
2374
|
+
function st(...f) {
|
|
2367
2375
|
return se(
|
|
2368
2376
|
(N) => {
|
|
2369
2377
|
let V;
|
|
2370
2378
|
const H = N;
|
|
2371
2379
|
try {
|
|
2372
|
-
H.processor =
|
|
2380
|
+
H.processor = rt, V = Reflect.apply(qt, null, [H, ...f]);
|
|
2373
2381
|
} finally {
|
|
2374
2382
|
H.processor = null;
|
|
2375
2383
|
}
|
|
2376
2384
|
return V;
|
|
2377
2385
|
},
|
|
2378
|
-
() =>
|
|
2386
|
+
() => Et(...f),
|
|
2379
2387
|
"translate",
|
|
2380
2388
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2381
|
-
(N) => N[
|
|
2382
|
-
(N) => [
|
|
2383
|
-
(N) =>
|
|
2389
|
+
(N) => N[Lt](...f),
|
|
2390
|
+
(N) => [nn(N)],
|
|
2391
|
+
(N) => Y(N)
|
|
2384
2392
|
);
|
|
2385
2393
|
}
|
|
2386
2394
|
function Me(...f) {
|
|
2387
2395
|
return se(
|
|
2388
|
-
(N) => Reflect.apply(
|
|
2389
|
-
() =>
|
|
2396
|
+
(N) => Reflect.apply(en, null, [N, ...f]),
|
|
2397
|
+
() => Nt(...f),
|
|
2390
2398
|
"number format",
|
|
2391
2399
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2392
|
-
(N) => N[
|
|
2393
|
-
|
|
2394
|
-
(N) => S(N) ||
|
|
2400
|
+
(N) => N[bt](...f),
|
|
2401
|
+
sn,
|
|
2402
|
+
(N) => S(N) || Y(N)
|
|
2395
2403
|
);
|
|
2396
2404
|
}
|
|
2397
|
-
function
|
|
2405
|
+
function at(...f) {
|
|
2398
2406
|
return se(
|
|
2399
|
-
(N) => Reflect.apply(
|
|
2400
|
-
() =>
|
|
2407
|
+
(N) => Reflect.apply(Zt, null, [N, ...f]),
|
|
2408
|
+
() => gt(...f),
|
|
2401
2409
|
"datetime format",
|
|
2402
2410
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2403
|
-
(N) => N[
|
|
2404
|
-
|
|
2405
|
-
(N) => S(N) ||
|
|
2411
|
+
(N) => N[pt](...f),
|
|
2412
|
+
sn,
|
|
2413
|
+
(N) => S(N) || Y(N)
|
|
2406
2414
|
);
|
|
2407
2415
|
}
|
|
2408
|
-
function
|
|
2416
|
+
function lt(f) {
|
|
2409
2417
|
O = f, h.pluralRules = O;
|
|
2410
2418
|
}
|
|
2411
|
-
function
|
|
2419
|
+
function ot(f, N) {
|
|
2412
2420
|
return se(() => {
|
|
2413
2421
|
if (!f)
|
|
2414
2422
|
return !1;
|
|
2415
2423
|
const V = S(N) ? N : m.value, H = Ee(V), ce = h.messageResolver(H, f);
|
|
2416
2424
|
return i ? ce != null : Ie(ce) || Z(ce) || S(ce);
|
|
2417
|
-
}, () => [f], "translate exists", (V) => Reflect.apply(V.te, V, [f, N]),
|
|
2425
|
+
}, () => [f], "translate exists", (V) => Reflect.apply(V.te, V, [f, N]), Ys, (V) => x(V));
|
|
2418
2426
|
}
|
|
2419
|
-
function
|
|
2427
|
+
function ct(f) {
|
|
2420
2428
|
let N = null;
|
|
2421
|
-
const V =
|
|
2429
|
+
const V = kn(h, T.value, m.value);
|
|
2422
2430
|
for (let H = 0; H < V.length; H++) {
|
|
2423
2431
|
const ce = p.value[V[H]] || {}, Fe = h.messageResolver(ce, f);
|
|
2424
2432
|
if (Fe != null) {
|
|
@@ -2429,7 +2437,7 @@ function Hn(e = {}, t) {
|
|
|
2429
2437
|
return N;
|
|
2430
2438
|
}
|
|
2431
2439
|
function Se(f) {
|
|
2432
|
-
const N =
|
|
2440
|
+
const N = ct(f);
|
|
2433
2441
|
return N ?? (n ? n.tm(f) || {} : {});
|
|
2434
2442
|
}
|
|
2435
2443
|
function Ee(f) {
|
|
@@ -2439,7 +2447,7 @@ function Hn(e = {}, t) {
|
|
|
2439
2447
|
if (l) {
|
|
2440
2448
|
const V = { [f]: N };
|
|
2441
2449
|
for (const H in V)
|
|
2442
|
-
|
|
2450
|
+
He(V, H) && Re(V[H]);
|
|
2443
2451
|
N = V[f];
|
|
2444
2452
|
}
|
|
2445
2453
|
p.value[f] = N, h.messages = p.value;
|
|
@@ -2449,34 +2457,34 @@ function Hn(e = {}, t) {
|
|
|
2449
2457
|
const V = { [f]: N };
|
|
2450
2458
|
if (l)
|
|
2451
2459
|
for (const H in V)
|
|
2452
|
-
|
|
2453
|
-
N = V[f],
|
|
2460
|
+
He(V, H) && Re(V[H]);
|
|
2461
|
+
N = V[f], Ve(N, p.value[f]), h.messages = p.value;
|
|
2454
2462
|
}
|
|
2455
|
-
function
|
|
2463
|
+
function it(f) {
|
|
2456
2464
|
return L.value[f] || {};
|
|
2457
2465
|
}
|
|
2458
2466
|
function a(f, N) {
|
|
2459
|
-
L.value[f] = N, h.datetimeFormats = L.value,
|
|
2467
|
+
L.value[f] = N, h.datetimeFormats = L.value, zt(h, f, N);
|
|
2460
2468
|
}
|
|
2461
2469
|
function o(f, N) {
|
|
2462
|
-
L.value[f] = J(L.value[f] || {}, N), h.datetimeFormats = L.value,
|
|
2470
|
+
L.value[f] = J(L.value[f] || {}, N), h.datetimeFormats = L.value, zt(h, f, N);
|
|
2463
2471
|
}
|
|
2464
2472
|
function E(f) {
|
|
2465
2473
|
return C.value[f] || {};
|
|
2466
2474
|
}
|
|
2467
2475
|
function k(f, N) {
|
|
2468
|
-
C.value[f] = N, h.numberFormats = C.value,
|
|
2476
|
+
C.value[f] = N, h.numberFormats = C.value, tn(h, f, N);
|
|
2469
2477
|
}
|
|
2470
2478
|
function $(f, N) {
|
|
2471
|
-
C.value[f] = J(C.value[f] || {}, N), h.numberFormats = C.value,
|
|
2479
|
+
C.value[f] = J(C.value[f] || {}, N), h.numberFormats = C.value, tn(h, f, N);
|
|
2472
2480
|
}
|
|
2473
|
-
|
|
2481
|
+
an++, n && xe && ($e(n.locale, (f) => {
|
|
2474
2482
|
u && (m.value = f, h.locale = f, Pe(h, m.value, T.value));
|
|
2475
|
-
}),
|
|
2483
|
+
}), $e(n.fallbackLocale, (f) => {
|
|
2476
2484
|
u && (T.value = f, h.fallbackLocale = f, Pe(h, m.value, T.value));
|
|
2477
2485
|
}));
|
|
2478
2486
|
const v = {
|
|
2479
|
-
id:
|
|
2487
|
+
id: an,
|
|
2480
2488
|
locale: F,
|
|
2481
2489
|
fallbackLocale: K,
|
|
2482
2490
|
get inheritLocale() {
|
|
@@ -2538,15 +2546,15 @@ function Hn(e = {}, t) {
|
|
|
2538
2546
|
getLocaleMessage: Ee,
|
|
2539
2547
|
setLocaleMessage: ge,
|
|
2540
2548
|
mergeLocaleMessage: Ae,
|
|
2541
|
-
getPostTranslationHandler:
|
|
2542
|
-
setPostTranslationHandler:
|
|
2543
|
-
getMissingHandler:
|
|
2544
|
-
setMissingHandler:
|
|
2545
|
-
[
|
|
2549
|
+
getPostTranslationHandler: Qe,
|
|
2550
|
+
setPostTranslationHandler: qe,
|
|
2551
|
+
getMissingHandler: Ze,
|
|
2552
|
+
setMissingHandler: ze,
|
|
2553
|
+
[js]: lt
|
|
2546
2554
|
};
|
|
2547
|
-
return v.datetimeFormats = re, v.numberFormats = B, v.rt =
|
|
2555
|
+
return v.datetimeFormats = re, v.numberFormats = B, v.rt = et, v.te = ot, v.tm = Se, v.d = ve, v.n = tt, v.getDateTimeFormat = it, v.setDateTimeFormat = a, v.mergeDateTimeFormat = o, v.getNumberFormat = E, v.setNumberFormat = k, v.mergeNumberFormat = $, v[Hs] = r, v[Lt] = st, v[pt] = at, v[bt] = Me, v;
|
|
2548
2556
|
}
|
|
2549
|
-
const
|
|
2557
|
+
const Dt = {
|
|
2550
2558
|
tag: {
|
|
2551
2559
|
type: [String, Object]
|
|
2552
2560
|
},
|
|
@@ -2564,20 +2572,20 @@ const kt = {
|
|
|
2564
2572
|
type: Object
|
|
2565
2573
|
}
|
|
2566
2574
|
};
|
|
2567
|
-
function
|
|
2575
|
+
function Ks({ slots: e }, t) {
|
|
2568
2576
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, s) => [
|
|
2569
2577
|
...r,
|
|
2570
2578
|
// prettier-ignore
|
|
2571
|
-
...s.type ===
|
|
2579
|
+
...s.type === Ln ? s.children : [s]
|
|
2572
2580
|
], []) : t.reduce((n, r) => {
|
|
2573
2581
|
const s = e[r];
|
|
2574
2582
|
return s && (n[r] = s()), n;
|
|
2575
2583
|
}, {});
|
|
2576
2584
|
}
|
|
2577
|
-
function
|
|
2578
|
-
return
|
|
2585
|
+
function Yn(e) {
|
|
2586
|
+
return Ln;
|
|
2579
2587
|
}
|
|
2580
|
-
const
|
|
2588
|
+
const Bs = /* @__PURE__ */ Ct({
|
|
2581
2589
|
/* eslint-disable */
|
|
2582
2590
|
name: "i18n-t",
|
|
2583
2591
|
props: J({
|
|
@@ -2588,26 +2596,26 @@ const Ks = /* @__PURE__ */ Ot({
|
|
|
2588
2596
|
plural: {
|
|
2589
2597
|
type: [Number, String],
|
|
2590
2598
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2591
|
-
validator: (e) =>
|
|
2599
|
+
validator: (e) => G(e) || !isNaN(e)
|
|
2592
2600
|
}
|
|
2593
|
-
},
|
|
2601
|
+
}, Dt),
|
|
2594
2602
|
/* eslint-enable */
|
|
2595
2603
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2596
2604
|
setup(e, t) {
|
|
2597
|
-
const { slots: n, attrs: r } = t, s = e.i18n ||
|
|
2605
|
+
const { slots: n, attrs: r } = t, s = e.i18n || Rt({
|
|
2598
2606
|
useScope: e.scope,
|
|
2599
2607
|
__useComponent: !0
|
|
2600
2608
|
});
|
|
2601
2609
|
return () => {
|
|
2602
2610
|
const l = Object.keys(n).filter((p) => p !== "_"), c = {};
|
|
2603
2611
|
e.locale && (c.locale = e.locale), e.plural !== void 0 && (c.plural = S(e.plural) ? +e.plural : e.plural);
|
|
2604
|
-
const i =
|
|
2605
|
-
return
|
|
2612
|
+
const i = Ks(t, l), u = s[Lt](e.keypath, i, c), m = J({}, r), T = S(e.tag) || w(e.tag) ? e.tag : Yn();
|
|
2613
|
+
return Nn(T, m, u);
|
|
2606
2614
|
};
|
|
2607
2615
|
}
|
|
2608
|
-
}),
|
|
2609
|
-
function
|
|
2610
|
-
return
|
|
2616
|
+
}), on = Bs;
|
|
2617
|
+
function Js(e) {
|
|
2618
|
+
return Y(e) && !S(e[0]);
|
|
2611
2619
|
}
|
|
2612
2620
|
function Gn(e, t, n, r) {
|
|
2613
2621
|
const { slots: s, attrs: l } = t;
|
|
@@ -2617,15 +2625,15 @@ function Gn(e, t, n, r) {
|
|
|
2617
2625
|
e.locale && (c.locale = e.locale), S(e.format) ? c.key = e.format : w(e.format) && (S(e.format.key) && (c.key = e.format.key), i = Object.keys(e.format).reduce((L, C) => n.includes(C) ? J({}, L, { [C]: e.format[C] }) : L, {}));
|
|
2618
2626
|
const u = r(e.value, c, i);
|
|
2619
2627
|
let m = [c.key];
|
|
2620
|
-
|
|
2628
|
+
Y(u) ? m = u.map((L, C) => {
|
|
2621
2629
|
const A = s[L.type], D = A ? A({ [L.type]: L.value, index: C, parts: u }) : [L.value];
|
|
2622
|
-
return
|
|
2630
|
+
return Js(D) && (D[0].key = `${L.type}-${C}`), D;
|
|
2623
2631
|
}) : S(u) && (m = [u]);
|
|
2624
|
-
const T = J({}, l), p = S(e.tag) || w(e.tag) ? e.tag :
|
|
2625
|
-
return
|
|
2632
|
+
const T = J({}, l), p = S(e.tag) || w(e.tag) ? e.tag : Yn();
|
|
2633
|
+
return Nn(p, T, m);
|
|
2626
2634
|
};
|
|
2627
2635
|
}
|
|
2628
|
-
const
|
|
2636
|
+
const Qs = /* @__PURE__ */ Ct({
|
|
2629
2637
|
/* eslint-disable */
|
|
2630
2638
|
name: "i18n-n",
|
|
2631
2639
|
props: J({
|
|
@@ -2636,20 +2644,20 @@ const Js = /* @__PURE__ */ Ot({
|
|
|
2636
2644
|
format: {
|
|
2637
2645
|
type: [String, Object]
|
|
2638
2646
|
}
|
|
2639
|
-
},
|
|
2647
|
+
}, Dt),
|
|
2640
2648
|
/* eslint-enable */
|
|
2641
2649
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2642
2650
|
setup(e, t) {
|
|
2643
|
-
const n = e.i18n ||
|
|
2651
|
+
const n = e.i18n || Rt({
|
|
2644
2652
|
useScope: e.scope,
|
|
2645
2653
|
__useComponent: !0
|
|
2646
2654
|
});
|
|
2647
|
-
return Gn(e, t,
|
|
2655
|
+
return Gn(e, t, Vn, (...r) => (
|
|
2648
2656
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2649
|
-
n[
|
|
2657
|
+
n[bt](...r)
|
|
2650
2658
|
));
|
|
2651
2659
|
}
|
|
2652
|
-
}),
|
|
2660
|
+
}), cn = Qs, qs = /* @__PURE__ */ Ct({
|
|
2653
2661
|
/* eslint-disable */
|
|
2654
2662
|
name: "i18n-d",
|
|
2655
2663
|
props: J({
|
|
@@ -2660,21 +2668,21 @@ const Js = /* @__PURE__ */ Ot({
|
|
|
2660
2668
|
format: {
|
|
2661
2669
|
type: [String, Object]
|
|
2662
2670
|
}
|
|
2663
|
-
},
|
|
2671
|
+
}, Dt),
|
|
2664
2672
|
/* eslint-enable */
|
|
2665
2673
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2666
2674
|
setup(e, t) {
|
|
2667
|
-
const n = e.i18n ||
|
|
2675
|
+
const n = e.i18n || Rt({
|
|
2668
2676
|
useScope: e.scope,
|
|
2669
2677
|
__useComponent: !0
|
|
2670
2678
|
});
|
|
2671
|
-
return Gn(e, t,
|
|
2679
|
+
return Gn(e, t, Wn, (...r) => (
|
|
2672
2680
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2673
|
-
n[
|
|
2681
|
+
n[pt](...r)
|
|
2674
2682
|
));
|
|
2675
2683
|
}
|
|
2676
|
-
}),
|
|
2677
|
-
function
|
|
2684
|
+
}), un = qs;
|
|
2685
|
+
function Zs(e, t) {
|
|
2678
2686
|
const n = e;
|
|
2679
2687
|
if (e.mode === "composition")
|
|
2680
2688
|
return n.__getInstance(t) || e.global;
|
|
@@ -2683,32 +2691,32 @@ function qs(e, t) {
|
|
|
2683
2691
|
return r != null ? r.__composer : e.global.__composer;
|
|
2684
2692
|
}
|
|
2685
2693
|
}
|
|
2686
|
-
function
|
|
2694
|
+
function zs(e) {
|
|
2687
2695
|
const t = (c) => {
|
|
2688
2696
|
const { instance: i, modifiers: u, value: m } = c;
|
|
2689
2697
|
if (!i || !i.$)
|
|
2690
2698
|
throw te(z.UNEXPECTED_ERROR);
|
|
2691
|
-
const T =
|
|
2699
|
+
const T = Zs(e, i.$), p = fn(m);
|
|
2692
2700
|
return [
|
|
2693
|
-
Reflect.apply(T.t, T, [...
|
|
2701
|
+
Reflect.apply(T.t, T, [..._n(p)]),
|
|
2694
2702
|
T
|
|
2695
2703
|
];
|
|
2696
2704
|
};
|
|
2697
2705
|
return {
|
|
2698
2706
|
created: (c, i) => {
|
|
2699
2707
|
const [u, m] = t(i);
|
|
2700
|
-
|
|
2708
|
+
xe && e.global === m && (c.__i18nWatcher = $e(m.locale, () => {
|
|
2701
2709
|
i.instance && i.instance.$forceUpdate();
|
|
2702
2710
|
})), c.__composer = m, c.textContent = u;
|
|
2703
2711
|
},
|
|
2704
2712
|
unmounted: (c) => {
|
|
2705
|
-
|
|
2713
|
+
xe && c.__i18nWatcher && (c.__i18nWatcher(), c.__i18nWatcher = void 0, delete c.__i18nWatcher), c.__composer && (c.__composer = void 0, delete c.__composer);
|
|
2706
2714
|
},
|
|
2707
2715
|
beforeUpdate: (c, { value: i }) => {
|
|
2708
2716
|
if (c.__composer) {
|
|
2709
|
-
const u = c.__composer, m =
|
|
2717
|
+
const u = c.__composer, m = fn(i);
|
|
2710
2718
|
c.textContent = Reflect.apply(u.t, u, [
|
|
2711
|
-
...
|
|
2719
|
+
..._n(m)
|
|
2712
2720
|
]);
|
|
2713
2721
|
}
|
|
2714
2722
|
},
|
|
@@ -2718,7 +2726,7 @@ function Zs(e) {
|
|
|
2718
2726
|
}
|
|
2719
2727
|
};
|
|
2720
2728
|
}
|
|
2721
|
-
function
|
|
2729
|
+
function fn(e) {
|
|
2722
2730
|
if (S(e))
|
|
2723
2731
|
return { path: e };
|
|
2724
2732
|
if (U(e)) {
|
|
@@ -2728,17 +2736,17 @@ function un(e) {
|
|
|
2728
2736
|
} else
|
|
2729
2737
|
throw te(z.INVALID_VALUE);
|
|
2730
2738
|
}
|
|
2731
|
-
function
|
|
2739
|
+
function _n(e) {
|
|
2732
2740
|
const { path: t, locale: n, args: r, choice: s, plural: l } = e, c = {}, i = r || {};
|
|
2733
|
-
return S(n) && (c.locale = n),
|
|
2741
|
+
return S(n) && (c.locale = n), G(s) && (c.plural = s), G(l) && (c.plural = l), [t, i, c];
|
|
2734
2742
|
}
|
|
2735
|
-
function
|
|
2743
|
+
function ea(e, t, ...n) {
|
|
2736
2744
|
const r = U(n[0]) ? n[0] : {}, s = !!r.useI18nComponentName;
|
|
2737
|
-
(x(r.globalInstall) ? r.globalInstall : !0) && ([s ? "i18n" :
|
|
2745
|
+
(x(r.globalInstall) ? r.globalInstall : !0) && ([s ? "i18n" : on.name, "I18nT"].forEach((c) => e.component(c, on)), [cn.name, "I18nN"].forEach((c) => e.component(c, cn)), [un.name, "I18nD"].forEach((c) => e.component(c, un))), e.directive("t", zs(t));
|
|
2738
2746
|
}
|
|
2739
|
-
const
|
|
2740
|
-
function
|
|
2741
|
-
const n = x(e.globalInjection) ? e.globalInjection : !0, r = !0, s = /* @__PURE__ */ new Map(), [l, c] =
|
|
2747
|
+
const ta = /* @__PURE__ */ fe("global-vue-i18n");
|
|
2748
|
+
function na(e = {}, t) {
|
|
2749
|
+
const n = x(e.globalInjection) ? e.globalInjection : !0, r = !0, s = /* @__PURE__ */ new Map(), [l, c] = ra(e), i = /* @__PURE__ */ fe("");
|
|
2742
2750
|
function u(p) {
|
|
2743
2751
|
return s.get(p) || null;
|
|
2744
2752
|
}
|
|
@@ -2765,7 +2773,7 @@ function ta(e = {}, t) {
|
|
|
2765
2773
|
p.__composerExtend = y.__composerExtend, p.__vueI18nExtend = y.__vueI18nExtend;
|
|
2766
2774
|
}
|
|
2767
2775
|
let A = null;
|
|
2768
|
-
n && (A =
|
|
2776
|
+
n && (A = fa(L, p.global)), ea(L, p, ...C);
|
|
2769
2777
|
const D = L.unmount;
|
|
2770
2778
|
L.unmount = () => {
|
|
2771
2779
|
A && A(), p.dispose(), D();
|
|
@@ -2790,54 +2798,54 @@ function ta(e = {}, t) {
|
|
|
2790
2798
|
return p;
|
|
2791
2799
|
}
|
|
2792
2800
|
}
|
|
2793
|
-
function
|
|
2794
|
-
const t =
|
|
2801
|
+
function Rt(e = {}) {
|
|
2802
|
+
const t = yt();
|
|
2795
2803
|
if (t == null)
|
|
2796
2804
|
throw te(z.MUST_BE_CALL_SETUP_TOP);
|
|
2797
2805
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
2798
2806
|
throw te(z.NOT_INSTALLED);
|
|
2799
|
-
const n =
|
|
2807
|
+
const n = sa(t), r = la(n), s = Hn(t), l = aa(e, s);
|
|
2800
2808
|
if (l === "global")
|
|
2801
|
-
return
|
|
2809
|
+
return Xs(r, e, s), r;
|
|
2802
2810
|
if (l === "parent") {
|
|
2803
|
-
let u =
|
|
2811
|
+
let u = oa(n, t, e.__useComponent);
|
|
2804
2812
|
return u == null && (u = r), u;
|
|
2805
2813
|
}
|
|
2806
2814
|
const c = n;
|
|
2807
2815
|
let i = c.__getInstance(t);
|
|
2808
2816
|
if (i == null) {
|
|
2809
2817
|
const u = J({}, e);
|
|
2810
|
-
"__i18n" in s && (u.__i18n = s.__i18n), r && (u.__root = r), i =
|
|
2818
|
+
"__i18n" in s && (u.__i18n = s.__i18n), r && (u.__root = r), i = Xn(u), c.__composerExtend && (i[ht] = c.__composerExtend(i)), ia(c, t, i), c.__setInstance(t, i);
|
|
2811
2819
|
}
|
|
2812
2820
|
return i;
|
|
2813
2821
|
}
|
|
2814
|
-
function
|
|
2815
|
-
const r =
|
|
2822
|
+
function ra(e, t, n) {
|
|
2823
|
+
const r = Tt();
|
|
2816
2824
|
{
|
|
2817
|
-
const s = r.run(() =>
|
|
2825
|
+
const s = r.run(() => Xn(e));
|
|
2818
2826
|
if (s == null)
|
|
2819
2827
|
throw te(z.UNEXPECTED_ERROR);
|
|
2820
2828
|
return [r, s];
|
|
2821
2829
|
}
|
|
2822
2830
|
}
|
|
2823
|
-
function
|
|
2831
|
+
function sa(e) {
|
|
2824
2832
|
{
|
|
2825
|
-
const t =
|
|
2833
|
+
const t = gn(e.isCE ? ta : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2826
2834
|
if (!t)
|
|
2827
2835
|
throw te(e.isCE ? z.NOT_INSTALLED_WITH_PROVIDE : z.UNEXPECTED_ERROR);
|
|
2828
2836
|
return t;
|
|
2829
2837
|
}
|
|
2830
2838
|
}
|
|
2831
|
-
function
|
|
2832
|
-
return
|
|
2839
|
+
function aa(e, t) {
|
|
2840
|
+
return Ke(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
2833
2841
|
}
|
|
2834
|
-
function
|
|
2842
|
+
function la(e) {
|
|
2835
2843
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
2836
2844
|
}
|
|
2837
|
-
function
|
|
2845
|
+
function oa(e, t, n = !1) {
|
|
2838
2846
|
let r = null;
|
|
2839
2847
|
const s = t.root;
|
|
2840
|
-
let l =
|
|
2848
|
+
let l = ca(t, n);
|
|
2841
2849
|
for (; l != null; ) {
|
|
2842
2850
|
const c = e;
|
|
2843
2851
|
if (e.mode === "composition" && (r = c.__getInstance(l)), r != null || s === l)
|
|
@@ -2846,26 +2854,26 @@ function la(e, t, n = !1) {
|
|
|
2846
2854
|
}
|
|
2847
2855
|
return r;
|
|
2848
2856
|
}
|
|
2849
|
-
function
|
|
2857
|
+
function ca(e, t = !1) {
|
|
2850
2858
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2851
2859
|
}
|
|
2852
|
-
function
|
|
2853
|
-
|
|
2854
|
-
}, t),
|
|
2860
|
+
function ia(e, t, n) {
|
|
2861
|
+
nr(() => {
|
|
2862
|
+
}, t), rr(() => {
|
|
2855
2863
|
const r = n;
|
|
2856
2864
|
e.__deleteInstance(t);
|
|
2857
|
-
const s = r[
|
|
2858
|
-
s && (s(), delete r[
|
|
2865
|
+
const s = r[ht];
|
|
2866
|
+
s && (s(), delete r[ht]);
|
|
2859
2867
|
}, t);
|
|
2860
2868
|
}
|
|
2861
|
-
const
|
|
2869
|
+
const ua = [
|
|
2862
2870
|
"locale",
|
|
2863
2871
|
"fallbackLocale",
|
|
2864
2872
|
"availableLocales"
|
|
2865
|
-
],
|
|
2866
|
-
function
|
|
2873
|
+
], mn = ["t", "rt", "d", "n", "tm", "te"];
|
|
2874
|
+
function fa(e, t) {
|
|
2867
2875
|
const n = /* @__PURE__ */ Object.create(null);
|
|
2868
|
-
return
|
|
2876
|
+
return ua.forEach((s) => {
|
|
2869
2877
|
const l = Object.getOwnPropertyDescriptor(t, s);
|
|
2870
2878
|
if (!l)
|
|
2871
2879
|
throw te(z.UNEXPECTED_ERROR);
|
|
@@ -2883,33 +2891,33 @@ function ua(e, t) {
|
|
|
2883
2891
|
}
|
|
2884
2892
|
};
|
|
2885
2893
|
Object.defineProperty(n, s, c);
|
|
2886
|
-
}), e.config.globalProperties.$i18n = n,
|
|
2894
|
+
}), e.config.globalProperties.$i18n = n, mn.forEach((s) => {
|
|
2887
2895
|
const l = Object.getOwnPropertyDescriptor(t, s);
|
|
2888
2896
|
if (!l || !l.value)
|
|
2889
2897
|
throw te(z.UNEXPECTED_ERROR);
|
|
2890
2898
|
Object.defineProperty(e.config.globalProperties, `$${s}`, l);
|
|
2891
2899
|
}), () => {
|
|
2892
|
-
delete e.config.globalProperties.$i18n,
|
|
2900
|
+
delete e.config.globalProperties.$i18n, mn.forEach((s) => {
|
|
2893
2901
|
delete e.config.globalProperties[`$${s}`];
|
|
2894
2902
|
});
|
|
2895
2903
|
};
|
|
2896
2904
|
}
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2905
|
+
Os(Us);
|
|
2906
|
+
Cs(as);
|
|
2907
|
+
ys(kn);
|
|
2900
2908
|
{
|
|
2901
|
-
const e =
|
|
2902
|
-
e.__INTLIFY__ = !0,
|
|
2909
|
+
const e = gr();
|
|
2910
|
+
e.__INTLIFY__ = !0, ds(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2903
2911
|
}
|
|
2904
|
-
const
|
|
2912
|
+
const Kn = "en", _a = document.documentElement.lang.slice(0, 2) || Kn, ma = na({
|
|
2905
2913
|
warnHtmlMessage: !1,
|
|
2906
2914
|
fallbackRootWithEmptyString: !1,
|
|
2907
2915
|
silentTranslationWarn: !0,
|
|
2908
2916
|
allowComposition: !0,
|
|
2909
2917
|
legacy: !1,
|
|
2910
2918
|
globalInjection: !0,
|
|
2911
|
-
locale:
|
|
2912
|
-
fallbackLocale:
|
|
2919
|
+
locale: _a,
|
|
2920
|
+
fallbackLocale: Kn
|
|
2913
2921
|
/*numberFormats: {
|
|
2914
2922
|
'da': {
|
|
2915
2923
|
currency: {
|
|
@@ -2917,12 +2925,12 @@ const Yn = "en", fa = document.documentElement.lang.slice(0, 2) || Yn, _a = ta({
|
|
|
2917
2925
|
}
|
|
2918
2926
|
}
|
|
2919
2927
|
}*/
|
|
2920
|
-
}),
|
|
2921
|
-
function
|
|
2928
|
+
}), da = ma.global;
|
|
2929
|
+
function ba(e) {
|
|
2922
2930
|
for (const t in e)
|
|
2923
|
-
|
|
2931
|
+
da.setLocaleMessage(t, e[t]);
|
|
2924
2932
|
}
|
|
2925
|
-
function
|
|
2933
|
+
function ha(e) {
|
|
2926
2934
|
return { all: e = e || /* @__PURE__ */ new Map(), on: function(t, n) {
|
|
2927
2935
|
var r = e.get(t);
|
|
2928
2936
|
r ? r.push(n) : e.set(t, [n]);
|
|
@@ -2939,14 +2947,14 @@ function ba(e) {
|
|
|
2939
2947
|
} };
|
|
2940
2948
|
}
|
|
2941
2949
|
export {
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2950
|
+
on as T,
|
|
2951
|
+
da as a,
|
|
2952
|
+
ba as b,
|
|
2953
|
+
Na as c,
|
|
2954
|
+
La as d,
|
|
2955
|
+
ma as i,
|
|
2956
|
+
ha as m,
|
|
2957
|
+
pa as s,
|
|
2958
|
+
Rt as u
|
|
2951
2959
|
};
|
|
2952
|
-
//# sourceMappingURL=mitt-
|
|
2960
|
+
//# sourceMappingURL=mitt-CZC0Vuw7.js.map
|