@feedmepos/mf-report 5.22.25 → 5.22.26

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