@ipa-community/element-plus 0.0.2 → 0.0.4

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 (37) hide show
  1. package/README.md +6 -4
  2. package/components.d.ts +2 -1
  3. package/eslint.config.js +7 -1
  4. package/lib/ElAuthCode-BtEs4aSF.js +84 -0
  5. package/lib/ElAuthCode-CjW7VQCs.cjs +1 -0
  6. package/lib/{index-DD0ylEu2.js → ElTablePlus-BFmsdH61.js} +1759 -1759
  7. package/lib/ElTablePlus-DGAKgtzB.cjs +13 -0
  8. package/lib/HelloWorld-DUGHI-ql.js +872 -0
  9. package/lib/HelloWorld-DkE5myvU.cjs +1 -0
  10. package/lib/_plugin-vue_export-helper-BHFhmbuH.cjs +1 -0
  11. package/lib/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  12. package/lib/assets/ElAuthCode.css +1 -0
  13. package/lib/{index.css → assets/ElTablePlus.css} +1 -1
  14. package/lib/assets/HelloWorld.css +1 -0
  15. package/lib/assets/base.css +1 -0
  16. package/lib/assets/index.css +1 -0
  17. package/lib/base-BKS5Bata.cjs +8 -0
  18. package/lib/base-D3FwvTBU.js +1648 -0
  19. package/lib/components/index.d.ts +64 -9
  20. package/lib/components/input/ElAuthCode.vue.d.ts +53 -0
  21. package/lib/components/{ElTablePlus/index.vue.d.ts → table/ElTablePlus.vue.d.ts} +3 -3
  22. package/lib/components/{ElTablePlus → table}/types.d.ts +1 -1
  23. package/lib/{index-CUQIwkb8.cjs → index-B9aGVsah.cjs} +1 -1
  24. package/lib/index-C3NSW_8F.cjs +6 -0
  25. package/lib/index-Dkgs1rld.js +3784 -0
  26. package/lib/{index-Dqu6455K.js → index-DlT5uboQ.js} +1 -1
  27. package/lib/index.cjs +1 -1
  28. package/lib/index.es.js +11 -10
  29. package/lib/index.umd.js +14 -42
  30. package/lib/{table-pPX_scdG.cjs → table-DnNkGrLR.cjs} +1 -1
  31. package/lib/{table-Dw-Nh_fr.js → table-T2Jkjf7q.js} +1 -1
  32. package/package.json +1 -1
  33. package/lib/index-B64Elx8V.cjs +0 -41
  34. package/lib/index-CMrOepdZ.js +0 -11923
  35. package/lib/index-DpfpHOHg.cjs +0 -13
  36. package/lib/index2.css +0 -1
  37. package/lib/types/page.d.ts +0 -25
@@ -0,0 +1,3784 @@
1
+ import * as an from "vue";
2
+ import { toRef as Vr, readonly as xn, ref as rt, customRef as $r, onMounted as Yt, nextTick as Kn, getCurrentInstance as jt, watch as Ie, getCurrentScope as Wr, onScopeDispose as Gr, hasInjectionContext as Bn, inject as Xn, computed as se, shallowRef as Pe, toValue as he, watchEffect as Hr, unref as Yr, effectScope as jr, onUnmounted as xr, isRef as Kr, defineComponent as xt, h as Jn, Fragment as Qn, createVNode as Br, Text as Xr, createApp as Jr, defineAsyncComponent as Kt } from "vue";
3
+ import { createPinia as Qr } from "pinia";
4
+ import { createRouter as qr, createWebHistory as Zr } from "vue-router";
5
+ function zr(e) {
6
+ return Wr() ? (Gr(e), !0) : !1;
7
+ }
8
+ const Tt = /* @__PURE__ */ new WeakMap(), es = /* @__NO_SIDE_EFFECTS__ */ (...e) => {
9
+ var t;
10
+ const n = e[0], r = (t = jt()) == null ? void 0 : t.proxy;
11
+ if (r == null && !Bn())
12
+ throw new Error("injectLocal must be called in setup");
13
+ return r && Tt.has(r) && n in Tt.get(r) ? Tt.get(r)[n] : Xn(...e);
14
+ }, ts = typeof window < "u" && typeof document < "u";
15
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
16
+ const ns = Object.prototype.toString, rs = (e) => ns.call(e) === "[object Object]", ss = () => {
17
+ };
18
+ function qn(...e) {
19
+ if (e.length !== 1)
20
+ return Vr(...e);
21
+ const t = e[0];
22
+ return typeof t == "function" ? xn($r(() => ({ get: t, set: ss }))) : rt(t);
23
+ }
24
+ function os(e, t) {
25
+ function n(...r) {
26
+ return new Promise((s, o) => {
27
+ Promise.resolve(e(() => t.apply(this, r), { fn: t, thisArg: this, args: r })).then(s).catch(o);
28
+ });
29
+ }
30
+ return n;
31
+ }
32
+ const Zn = (e) => e();
33
+ function as(e = Zn, t = {}) {
34
+ const {
35
+ initialState: n = "active"
36
+ } = t, r = qn(n === "active");
37
+ function s() {
38
+ r.value = !1;
39
+ }
40
+ function o() {
41
+ r.value = !0;
42
+ }
43
+ const a = (...l) => {
44
+ r.value && e(...l);
45
+ };
46
+ return { isActive: xn(r), pause: s, resume: o, eventFilter: a };
47
+ }
48
+ function ln(e) {
49
+ return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
50
+ }
51
+ function vt(e) {
52
+ return Array.isArray(e) ? e : [e];
53
+ }
54
+ function ls(e) {
55
+ return jt();
56
+ }
57
+ function is(e, t, n = {}) {
58
+ const {
59
+ eventFilter: r = Zn,
60
+ ...s
61
+ } = n;
62
+ return Ie(
63
+ e,
64
+ os(
65
+ r,
66
+ t
67
+ ),
68
+ s
69
+ );
70
+ }
71
+ function cs(e, t, n = {}) {
72
+ const {
73
+ eventFilter: r,
74
+ initialState: s = "active",
75
+ ...o
76
+ } = n, { eventFilter: a, pause: l, resume: u, isActive: _ } = as(r, { initialState: s });
77
+ return { stop: is(
78
+ e,
79
+ t,
80
+ {
81
+ ...o,
82
+ eventFilter: a
83
+ }
84
+ ), pause: l, resume: u, isActive: _ };
85
+ }
86
+ function zn(e, t = !0, n) {
87
+ ls() ? Yt(e, n) : t ? e() : Kn(e);
88
+ }
89
+ function us(e, t, n) {
90
+ return Ie(
91
+ e,
92
+ t,
93
+ {
94
+ ...n,
95
+ immediate: !0
96
+ }
97
+ );
98
+ }
99
+ const ke = ts ? window : void 0;
100
+ function er(e) {
101
+ var t;
102
+ const n = he(e);
103
+ return (t = n?.$el) != null ? t : n;
104
+ }
105
+ function Ct(...e) {
106
+ const t = [], n = () => {
107
+ t.forEach((l) => l()), t.length = 0;
108
+ }, r = (l, u, _, h) => (l.addEventListener(u, _, h), () => l.removeEventListener(u, _, h)), s = se(() => {
109
+ const l = vt(he(e[0])).filter((u) => u != null);
110
+ return l.every((u) => typeof u != "string") ? l : void 0;
111
+ }), o = us(
112
+ () => {
113
+ var l, u;
114
+ return [
115
+ (u = (l = s.value) == null ? void 0 : l.map((_) => er(_))) != null ? u : [ke].filter((_) => _ != null),
116
+ vt(he(s.value ? e[1] : e[0])),
117
+ vt(Yr(s.value ? e[2] : e[1])),
118
+ // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
119
+ he(s.value ? e[3] : e[2])
120
+ ];
121
+ },
122
+ ([l, u, _, h]) => {
123
+ if (n(), !l?.length || !u?.length || !_?.length)
124
+ return;
125
+ const T = rs(h) ? { ...h } : h;
126
+ t.push(
127
+ ...l.flatMap(
128
+ (p) => u.flatMap(
129
+ (S) => _.map((y) => r(p, S, y, T))
130
+ )
131
+ )
132
+ );
133
+ },
134
+ { flush: "post" }
135
+ ), a = () => {
136
+ o(), n();
137
+ };
138
+ return zr(n), a;
139
+ }
140
+ // @__NO_SIDE_EFFECTS__
141
+ function fs() {
142
+ const e = Pe(!1), t = jt();
143
+ return t && Yt(() => {
144
+ e.value = !0;
145
+ }, t), e;
146
+ }
147
+ // @__NO_SIDE_EFFECTS__
148
+ function _s(e) {
149
+ const t = /* @__PURE__ */ fs();
150
+ return se(() => (t.value, !!e()));
151
+ }
152
+ const ms = Symbol("vueuse-ssr-width");
153
+ // @__NO_SIDE_EFFECTS__
154
+ function ds() {
155
+ const e = Bn() ? /* @__PURE__ */ es(ms, null) : null;
156
+ return typeof e == "number" ? e : void 0;
157
+ }
158
+ function Es(e, t = {}) {
159
+ const { window: n = ke, ssrWidth: r = /* @__PURE__ */ ds() } = t, s = /* @__PURE__ */ _s(() => n && "matchMedia" in n && typeof n.matchMedia == "function"), o = Pe(typeof r == "number"), a = Pe(), l = Pe(!1), u = (_) => {
160
+ l.value = _.matches;
161
+ };
162
+ return Hr(() => {
163
+ if (o.value) {
164
+ o.value = !s.value;
165
+ const _ = he(e).split(",");
166
+ l.value = _.some((h) => {
167
+ const T = h.includes("not all"), p = h.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), S = h.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
168
+ let y = !!(p || S);
169
+ return p && y && (y = r >= ln(p[1])), S && y && (y = r <= ln(S[1])), T ? !y : y;
170
+ });
171
+ return;
172
+ }
173
+ s.value && (a.value = n.matchMedia(he(e)), l.value = a.value.matches);
174
+ }), Ct(a, "change", u, { passive: !0 }), se(() => l.value);
175
+ }
176
+ const Xe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Je = "__vueuse_ssr_handlers__", ps = /* @__PURE__ */ gs();
177
+ function gs() {
178
+ return Je in Xe || (Xe[Je] = Xe[Je] || {}), Xe[Je];
179
+ }
180
+ function tr(e, t) {
181
+ return ps[e] || t;
182
+ }
183
+ // @__NO_SIDE_EFFECTS__
184
+ function Ns(e) {
185
+ return Es("(prefers-color-scheme: dark)", e);
186
+ }
187
+ function hs(e) {
188
+ return e == null ? "any" : e instanceof Set ? "set" : e instanceof Map ? "map" : e instanceof Date ? "date" : typeof e == "boolean" ? "boolean" : typeof e == "string" ? "string" : typeof e == "object" ? "object" : Number.isNaN(e) ? "any" : "number";
189
+ }
190
+ const Ts = {
191
+ boolean: {
192
+ read: (e) => e === "true",
193
+ write: (e) => String(e)
194
+ },
195
+ object: {
196
+ read: (e) => JSON.parse(e),
197
+ write: (e) => JSON.stringify(e)
198
+ },
199
+ number: {
200
+ read: (e) => Number.parseFloat(e),
201
+ write: (e) => String(e)
202
+ },
203
+ any: {
204
+ read: (e) => e,
205
+ write: (e) => String(e)
206
+ },
207
+ string: {
208
+ read: (e) => e,
209
+ write: (e) => String(e)
210
+ },
211
+ map: {
212
+ read: (e) => new Map(JSON.parse(e)),
213
+ write: (e) => JSON.stringify(Array.from(e.entries()))
214
+ },
215
+ set: {
216
+ read: (e) => new Set(JSON.parse(e)),
217
+ write: (e) => JSON.stringify(Array.from(e))
218
+ },
219
+ date: {
220
+ read: (e) => new Date(e),
221
+ write: (e) => e.toISOString()
222
+ }
223
+ }, cn = "vueuse-storage";
224
+ function nr(e, t, n, r = {}) {
225
+ var s;
226
+ const {
227
+ flush: o = "pre",
228
+ deep: a = !0,
229
+ listenToStorageChanges: l = !0,
230
+ writeDefaults: u = !0,
231
+ mergeDefaults: _ = !1,
232
+ shallow: h,
233
+ window: T = ke,
234
+ eventFilter: p,
235
+ onError: S = (R) => {
236
+ console.error(R);
237
+ },
238
+ initOnMounted: y
239
+ } = r, L = (h ? Pe : rt)(typeof t == "function" ? t() : t), A = se(() => he(e));
240
+ if (!n)
241
+ try {
242
+ n = tr("getDefaultStorage", () => {
243
+ var R;
244
+ return (R = ke) == null ? void 0 : R.localStorage;
245
+ })();
246
+ } catch (R) {
247
+ S(R);
248
+ }
249
+ if (!n)
250
+ return L;
251
+ const f = he(t), E = hs(f), v = (s = r.serializer) != null ? s : Ts[E], { pause: m, resume: b } = cs(
252
+ L,
253
+ (R) => G(R),
254
+ { flush: o, deep: a, eventFilter: p }
255
+ );
256
+ Ie(A, () => F(), { flush: o });
257
+ let I = !1;
258
+ const g = (R) => {
259
+ y && !I || F(R);
260
+ }, k = (R) => {
261
+ y && !I || ne(R);
262
+ };
263
+ T && l && (n instanceof Storage ? Ct(T, "storage", g, { passive: !0 }) : Ct(T, cn, k)), y ? zn(() => {
264
+ I = !0, F();
265
+ }) : F();
266
+ function M(R, B) {
267
+ if (T) {
268
+ const te = {
269
+ key: A.value,
270
+ oldValue: R,
271
+ newValue: B,
272
+ storageArea: n
273
+ };
274
+ T.dispatchEvent(n instanceof Storage ? new StorageEvent("storage", te) : new CustomEvent(cn, {
275
+ detail: te
276
+ }));
277
+ }
278
+ }
279
+ function G(R) {
280
+ try {
281
+ const B = n.getItem(A.value);
282
+ if (R == null)
283
+ M(B, null), n.removeItem(A.value);
284
+ else {
285
+ const te = v.write(R);
286
+ B !== te && (n.setItem(A.value, te), M(B, te));
287
+ }
288
+ } catch (B) {
289
+ S(B);
290
+ }
291
+ }
292
+ function q(R) {
293
+ const B = R ? R.newValue : n.getItem(A.value);
294
+ if (B == null)
295
+ return u && f != null && n.setItem(A.value, v.write(f)), f;
296
+ if (!R && _) {
297
+ const te = v.read(B);
298
+ return typeof _ == "function" ? _(te, f) : E === "object" && !Array.isArray(te) ? { ...f, ...te } : te;
299
+ } else return typeof B != "string" ? B : v.read(B);
300
+ }
301
+ function F(R) {
302
+ if (!(R && R.storageArea !== n)) {
303
+ if (R && R.key == null) {
304
+ L.value = f;
305
+ return;
306
+ }
307
+ if (!(R && R.key !== A.value)) {
308
+ m();
309
+ try {
310
+ const B = v.write(L.value);
311
+ (R === void 0 || R?.newValue !== B) && (L.value = q(R));
312
+ } catch (B) {
313
+ S(B);
314
+ } finally {
315
+ R ? Kn(b) : b();
316
+ }
317
+ }
318
+ }
319
+ }
320
+ function ne(R) {
321
+ F(R.detail);
322
+ }
323
+ return L;
324
+ }
325
+ const vs = "*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";
326
+ function Os(e = {}) {
327
+ const {
328
+ selector: t = "html",
329
+ attribute: n = "class",
330
+ initialValue: r = "auto",
331
+ window: s = ke,
332
+ storage: o,
333
+ storageKey: a = "vueuse-color-scheme",
334
+ listenToStorageChanges: l = !0,
335
+ storageRef: u,
336
+ emitAuto: _,
337
+ disableTransition: h = !0
338
+ } = e, T = {
339
+ auto: "",
340
+ light: "light",
341
+ dark: "dark",
342
+ ...e.modes || {}
343
+ }, p = /* @__PURE__ */ Ns({ window: s }), S = se(() => p.value ? "dark" : "light"), y = u || (a == null ? qn(r) : nr(a, r, o, { window: s, listenToStorageChanges: l })), L = se(() => y.value === "auto" ? S.value : y.value), A = tr(
344
+ "updateHTMLAttrs",
345
+ (m, b, I) => {
346
+ const g = typeof m == "string" ? s?.document.querySelector(m) : er(m);
347
+ if (!g)
348
+ return;
349
+ const k = /* @__PURE__ */ new Set(), M = /* @__PURE__ */ new Set();
350
+ let G = null;
351
+ if (b === "class") {
352
+ const F = I.split(/\s/g);
353
+ Object.values(T).flatMap((ne) => (ne || "").split(/\s/g)).filter(Boolean).forEach((ne) => {
354
+ F.includes(ne) ? k.add(ne) : M.add(ne);
355
+ });
356
+ } else
357
+ G = { key: b, value: I };
358
+ if (k.size === 0 && M.size === 0 && G === null)
359
+ return;
360
+ let q;
361
+ h && (q = s.document.createElement("style"), q.appendChild(document.createTextNode(vs)), s.document.head.appendChild(q));
362
+ for (const F of k)
363
+ g.classList.add(F);
364
+ for (const F of M)
365
+ g.classList.remove(F);
366
+ G && g.setAttribute(G.key, G.value), h && (s.getComputedStyle(q).opacity, document.head.removeChild(q));
367
+ }
368
+ );
369
+ function f(m) {
370
+ var b;
371
+ A(t, n, (b = T[m]) != null ? b : m);
372
+ }
373
+ function E(m) {
374
+ e.onChanged ? e.onChanged(m, f) : f(m);
375
+ }
376
+ Ie(L, E, { flush: "post", immediate: !0 }), zn(() => E(L.value));
377
+ const v = se({
378
+ get() {
379
+ return _ ? y.value : L.value;
380
+ },
381
+ set(m) {
382
+ y.value = m;
383
+ }
384
+ });
385
+ return Object.assign(v, { store: y, system: S, state: L });
386
+ }
387
+ function Ls(e = {}) {
388
+ const {
389
+ valueDark: t = "dark",
390
+ valueLight: n = ""
391
+ } = e, r = Os({
392
+ ...e,
393
+ onChanged: (a, l) => {
394
+ var u;
395
+ e.onChanged ? (u = e.onChanged) == null || u.call(e, a === "dark", l, a) : l(a);
396
+ },
397
+ modes: {
398
+ dark: t,
399
+ light: n
400
+ }
401
+ }), s = se(() => r.system.value);
402
+ return se({
403
+ get() {
404
+ return r.value === "dark";
405
+ },
406
+ set(a) {
407
+ const l = a ? "dark" : "light";
408
+ s.value === l ? r.value = "auto" : r.value = l;
409
+ }
410
+ });
411
+ }
412
+ function dl(e, t, n = {}) {
413
+ const { window: r = ke } = n;
414
+ return nr(e, t, r?.sessionStorage, n);
415
+ }
416
+ function de(e, t) {
417
+ typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
418
+ }
419
+ const un = {};
420
+ function rr(e) {
421
+ un[e] || (un[e] = !0, de(e));
422
+ }
423
+ const fe = typeof window < "u";
424
+ let oe, Se;
425
+ if (process.env.NODE_ENV !== "production") {
426
+ const e = fe && window.performance;
427
+ e && e.mark && e.measure && e.clearMarks && // @ts-ignore browser compat
428
+ e.clearMeasures && (oe = (t) => {
429
+ e.mark(t);
430
+ }, Se = (t, n, r) => {
431
+ e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
432
+ });
433
+ }
434
+ const bs = /\{([0-9a-zA-Z]+)\}/g;
435
+ function st(e, ...t) {
436
+ return t.length === 1 && U(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(bs, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
437
+ }
438
+ const Ee = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Is = (e, t, n) => Ss({ l: e, k: t, s: n }), Ss = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), Q = (e) => typeof e == "number" && isFinite(e), As = (e) => Xt(e) === "[object Date]", et = (e) => Xt(e) === "[object RegExp]", ot = (e) => w(e) && Object.keys(e).length === 0, Z = Object.assign, Cs = Object.create, W = (e = null) => Cs(e);
439
+ let fn;
440
+ const Bt = () => fn || (fn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : W());
441
+ function _n(e) {
442
+ return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/\//g, "&#x2F;").replace(/=/g, "&#x3D;");
443
+ }
444
+ function mn(e) {
445
+ return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&amp;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
446
+ }
447
+ function ys(e) {
448
+ return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (r, s, o) => `${s}="${mn(o)}"`), e = e.replace(/(\w+)\s*=\s*'([^']*)'/g, (r, s, o) => `${s}='${mn(o)}'`), /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e) && (process.env.NODE_ENV !== "production" && de("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."), e = e.replace(/(\s+)(on)(\w+\s*=)/gi, "$1&#111;n$3")), [
449
+ // In href, src, action, formaction attributes
450
+ /(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,
451
+ // In style attributes within url()
452
+ /(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi
453
+ ].forEach((r) => {
454
+ e = e.replace(r, "$1javascript&#58;");
455
+ }), e;
456
+ }
457
+ const Ds = Object.prototype.hasOwnProperty;
458
+ function ue(e, t) {
459
+ return Ds.call(e, t);
460
+ }
461
+ const K = Array.isArray, H = (e) => typeof e == "function", C = (e) => typeof e == "string", x = (e) => typeof e == "boolean", U = (e) => e !== null && typeof e == "object", Ps = (e) => U(e) && H(e.then) && H(e.catch), sr = Object.prototype.toString, Xt = (e) => sr.call(e), w = (e) => Xt(e) === "[object Object]", ks = (e) => e == null ? "" : K(e) || w(e) && e.toString === sr ? JSON.stringify(e, null, 2) : String(e);
462
+ function Jt(e, t = "") {
463
+ return e.reduce((n, r, s) => s === 0 ? n + r : n + t + r, "");
464
+ }
465
+ const dn = 2;
466
+ function Rs(e, t = 0, n = e.length) {
467
+ const r = e.split(/\r?\n/);
468
+ let s = 0;
469
+ const o = [];
470
+ for (let a = 0; a < r.length; a++)
471
+ if (s += r[a].length + 1, s >= t) {
472
+ for (let l = a - dn; l <= a + dn || n > s; l++) {
473
+ if (l < 0 || l >= r.length)
474
+ continue;
475
+ const u = l + 1;
476
+ o.push(`${u}${" ".repeat(3 - String(u).length)}| ${r[l]}`);
477
+ const _ = r[l].length;
478
+ if (l === a) {
479
+ const h = t - (s - _) + 1, T = Math.max(1, n > s ? _ - h : n - t);
480
+ o.push(" | " + " ".repeat(h) + "^".repeat(T));
481
+ } else if (l > a) {
482
+ if (n > s) {
483
+ const h = Math.max(Math.min(n - s, _), 1);
484
+ o.push(" | " + "^".repeat(h));
485
+ }
486
+ s += _ + 1;
487
+ }
488
+ }
489
+ break;
490
+ }
491
+ return o.join(`
492
+ `);
493
+ }
494
+ function or() {
495
+ const e = /* @__PURE__ */ new Map();
496
+ return {
497
+ events: e,
498
+ on(n, r) {
499
+ const s = e.get(n);
500
+ s && s.push(r) || e.set(n, [r]);
501
+ },
502
+ off(n, r) {
503
+ const s = e.get(n);
504
+ s && s.splice(s.indexOf(r) >>> 0, 1);
505
+ },
506
+ emit(n, r) {
507
+ (e.get(n) || []).slice().map((s) => s(r)), (e.get("*") || []).slice().map((s) => s(n, r));
508
+ }
509
+ };
510
+ }
511
+ const Qe = (e) => !U(e) || K(e);
512
+ function ze(e, t) {
513
+ if (Qe(e) || Qe(t))
514
+ throw new Error("Invalid value");
515
+ const n = [{ src: e, des: t }];
516
+ for (; n.length; ) {
517
+ const { src: r, des: s } = n.pop();
518
+ Object.keys(r).forEach((o) => {
519
+ o !== "__proto__" && (U(r[o]) && !U(s[o]) && (s[o] = Array.isArray(r[o]) ? [] : W()), Qe(s[o]) || Qe(r[o]) ? s[o] = r[o] : n.push({ src: r[o], des: s[o] }));
520
+ });
521
+ }
522
+ }
523
+ function Ms(e, t, n) {
524
+ return { line: e, column: t, offset: n };
525
+ }
526
+ function yt(e, t, n) {
527
+ return { start: e, end: t };
528
+ }
529
+ const P = {
530
+ // tokenizer error codes
531
+ EXPECTED_TOKEN: 1,
532
+ INVALID_TOKEN_IN_PLACEHOLDER: 2,
533
+ UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3,
534
+ UNKNOWN_ESCAPE_SEQUENCE: 4,
535
+ INVALID_UNICODE_ESCAPE_SEQUENCE: 5,
536
+ UNBALANCED_CLOSING_BRACE: 6,
537
+ UNTERMINATED_CLOSING_BRACE: 7,
538
+ EMPTY_PLACEHOLDER: 8,
539
+ NOT_ALLOW_NEST_PLACEHOLDER: 9,
540
+ INVALID_LINKED_FORMAT: 10,
541
+ // parser error codes
542
+ MUST_HAVE_MESSAGES_IN_PLURAL: 11,
543
+ UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
544
+ UNEXPECTED_EMPTY_LINKED_KEY: 13,
545
+ UNEXPECTED_LEXICAL_ANALYSIS: 14,
546
+ // generator error codes
547
+ UNHANDLED_CODEGEN_NODE_TYPE: 15,
548
+ // minifier error codes
549
+ UNHANDLED_MINIFIER_NODE_TYPE: 16
550
+ }, ws = 17, Fs = {
551
+ // tokenizer error messages
552
+ [P.EXPECTED_TOKEN]: "Expected token: '{0}'",
553
+ [P.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
554
+ [P.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder",
555
+ [P.UNKNOWN_ESCAPE_SEQUENCE]: "Unknown escape sequence: \\{0}",
556
+ [P.INVALID_UNICODE_ESCAPE_SEQUENCE]: "Invalid unicode escape sequence: {0}",
557
+ [P.UNBALANCED_CLOSING_BRACE]: "Unbalanced closing brace",
558
+ [P.UNTERMINATED_CLOSING_BRACE]: "Unterminated closing brace",
559
+ [P.EMPTY_PLACEHOLDER]: "Empty placeholder",
560
+ [P.NOT_ALLOW_NEST_PLACEHOLDER]: "Not allowed nest placeholder",
561
+ [P.INVALID_LINKED_FORMAT]: "Invalid linked format",
562
+ // parser error messages
563
+ [P.MUST_HAVE_MESSAGES_IN_PLURAL]: "Plural must have messages",
564
+ [P.UNEXPECTED_EMPTY_LINKED_MODIFIER]: "Unexpected empty linked modifier",
565
+ [P.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key",
566
+ [P.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'",
567
+ // generator error messages
568
+ [P.UNHANDLED_CODEGEN_NODE_TYPE]: "unhandled codegen node type: '{0}'",
569
+ // minimizer error messages
570
+ [P.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
571
+ };
572
+ function Me(e, t, n = {}) {
573
+ const { domain: r, messages: s, args: o } = n, a = process.env.NODE_ENV !== "production" ? st((s || Fs)[e] || "", ...o || []) : e, l = new SyntaxError(String(a));
574
+ return l.code = e, t && (l.location = t), l.domain = r, l;
575
+ }
576
+ function Us(e) {
577
+ throw e;
578
+ }
579
+ const Vs = /<\/?[\w\s="/.':;#-\/]+>/, $s = (e) => Vs.test(e), _e = " ", Ws = "\r", z = `
580
+ `, Gs = "\u2028", Hs = "\u2029";
581
+ function Ys(e) {
582
+ const t = e;
583
+ let n = 0, r = 1, s = 1, o = 0;
584
+ const a = (g) => t[g] === Ws && t[g + 1] === z, l = (g) => t[g] === z, u = (g) => t[g] === Hs, _ = (g) => t[g] === Gs, h = (g) => a(g) || l(g) || u(g) || _(g), T = () => n, p = () => r, S = () => s, y = () => o, L = (g) => a(g) || u(g) || _(g) ? z : t[g], A = () => L(n), f = () => L(n + o);
585
+ function E() {
586
+ return o = 0, h(n) && (r++, s = 0), a(n) && n++, n++, s++, t[n];
587
+ }
588
+ function v() {
589
+ return a(n + o) && o++, o++, t[n + o];
590
+ }
591
+ function m() {
592
+ n = 0, r = 1, s = 1, o = 0;
593
+ }
594
+ function b(g = 0) {
595
+ o = g;
596
+ }
597
+ function I() {
598
+ const g = n + o;
599
+ for (; g !== n; )
600
+ E();
601
+ o = 0;
602
+ }
603
+ return {
604
+ index: T,
605
+ line: p,
606
+ column: S,
607
+ peekOffset: y,
608
+ charAt: L,
609
+ currentChar: A,
610
+ currentPeek: f,
611
+ next: E,
612
+ peek: v,
613
+ reset: m,
614
+ resetPeek: b,
615
+ skipToPeek: I
616
+ };
617
+ }
618
+ const ge = void 0, js = ".", En = "'", xs = "tokenizer";
619
+ function Ks(e, t = {}) {
620
+ const n = t.location !== !1, r = Ys(e), s = () => r.index(), o = () => Ms(r.line(), r.column(), r.index()), a = o(), l = s(), u = {
621
+ currentType: 13,
622
+ offset: l,
623
+ startLoc: a,
624
+ endLoc: a,
625
+ lastType: 13,
626
+ lastOffset: l,
627
+ lastStartLoc: a,
628
+ lastEndLoc: a,
629
+ braceNest: 0,
630
+ inLinked: !1,
631
+ text: ""
632
+ }, _ = () => u, { onError: h } = t;
633
+ function T(i, c, N, ...D) {
634
+ const Y = _();
635
+ if (c.column += N, c.offset += N, h) {
636
+ const X = n ? yt(Y.startLoc, c) : null, V = Me(i, X, {
637
+ domain: xs,
638
+ args: D
639
+ });
640
+ h(V);
641
+ }
642
+ }
643
+ function p(i, c, N) {
644
+ i.endLoc = o(), i.currentType = c;
645
+ const D = { type: c };
646
+ return n && (D.loc = yt(i.startLoc, i.endLoc)), N != null && (D.value = N), D;
647
+ }
648
+ const S = (i) => p(
649
+ i,
650
+ 13
651
+ /* TokenTypes.EOF */
652
+ );
653
+ function y(i, c) {
654
+ return i.currentChar() === c ? (i.next(), c) : (T(P.EXPECTED_TOKEN, o(), 0, c), "");
655
+ }
656
+ function L(i) {
657
+ let c = "";
658
+ for (; i.currentPeek() === _e || i.currentPeek() === z; )
659
+ c += i.currentPeek(), i.peek();
660
+ return c;
661
+ }
662
+ function A(i) {
663
+ const c = L(i);
664
+ return i.skipToPeek(), c;
665
+ }
666
+ function f(i) {
667
+ if (i === ge)
668
+ return !1;
669
+ const c = i.charCodeAt(0);
670
+ return c >= 97 && c <= 122 || // a-z
671
+ c >= 65 && c <= 90 || // A-Z
672
+ c === 95;
673
+ }
674
+ function E(i) {
675
+ if (i === ge)
676
+ return !1;
677
+ const c = i.charCodeAt(0);
678
+ return c >= 48 && c <= 57;
679
+ }
680
+ function v(i, c) {
681
+ const { currentType: N } = c;
682
+ if (N !== 2)
683
+ return !1;
684
+ L(i);
685
+ const D = f(i.currentPeek());
686
+ return i.resetPeek(), D;
687
+ }
688
+ function m(i, c) {
689
+ const { currentType: N } = c;
690
+ if (N !== 2)
691
+ return !1;
692
+ L(i);
693
+ const D = i.currentPeek() === "-" ? i.peek() : i.currentPeek(), Y = E(D);
694
+ return i.resetPeek(), Y;
695
+ }
696
+ function b(i, c) {
697
+ const { currentType: N } = c;
698
+ if (N !== 2)
699
+ return !1;
700
+ L(i);
701
+ const D = i.currentPeek() === En;
702
+ return i.resetPeek(), D;
703
+ }
704
+ function I(i, c) {
705
+ const { currentType: N } = c;
706
+ if (N !== 7)
707
+ return !1;
708
+ L(i);
709
+ const D = i.currentPeek() === ".";
710
+ return i.resetPeek(), D;
711
+ }
712
+ function g(i, c) {
713
+ const { currentType: N } = c;
714
+ if (N !== 8)
715
+ return !1;
716
+ L(i);
717
+ const D = f(i.currentPeek());
718
+ return i.resetPeek(), D;
719
+ }
720
+ function k(i, c) {
721
+ const { currentType: N } = c;
722
+ if (!(N === 7 || N === 11))
723
+ return !1;
724
+ L(i);
725
+ const D = i.currentPeek() === ":";
726
+ return i.resetPeek(), D;
727
+ }
728
+ function M(i, c) {
729
+ const { currentType: N } = c;
730
+ if (N !== 9)
731
+ return !1;
732
+ const D = () => {
733
+ const X = i.currentPeek();
734
+ return X === "{" ? f(i.peek()) : X === "@" || X === "|" || X === ":" || X === "." || X === _e || !X ? !1 : X === z ? (i.peek(), D()) : q(i, !1);
735
+ }, Y = D();
736
+ return i.resetPeek(), Y;
737
+ }
738
+ function G(i) {
739
+ L(i);
740
+ const c = i.currentPeek() === "|";
741
+ return i.resetPeek(), c;
742
+ }
743
+ function q(i, c = !0) {
744
+ const N = (Y = !1, X = "") => {
745
+ const V = i.currentPeek();
746
+ return V === "{" || V === "@" || !V ? Y : V === "|" ? !(X === _e || X === z) : V === _e ? (i.peek(), N(!0, _e)) : V === z ? (i.peek(), N(!0, z)) : !0;
747
+ }, D = N();
748
+ return c && i.resetPeek(), D;
749
+ }
750
+ function F(i, c) {
751
+ const N = i.currentChar();
752
+ return N === ge ? ge : c(N) ? (i.next(), N) : null;
753
+ }
754
+ function ne(i) {
755
+ const c = i.charCodeAt(0);
756
+ return c >= 97 && c <= 122 || // a-z
757
+ c >= 65 && c <= 90 || // A-Z
758
+ c >= 48 && c <= 57 || // 0-9
759
+ c === 95 || // _
760
+ c === 36;
761
+ }
762
+ function R(i) {
763
+ return F(i, ne);
764
+ }
765
+ function B(i) {
766
+ const c = i.charCodeAt(0);
767
+ return c >= 97 && c <= 122 || // a-z
768
+ c >= 65 && c <= 90 || // A-Z
769
+ c >= 48 && c <= 57 || // 0-9
770
+ c === 95 || // _
771
+ c === 36 || // $
772
+ c === 45;
773
+ }
774
+ function te(i) {
775
+ return F(i, B);
776
+ }
777
+ function it(i) {
778
+ const c = i.charCodeAt(0);
779
+ return c >= 48 && c <= 57;
780
+ }
781
+ function ct(i) {
782
+ return F(i, it);
783
+ }
784
+ function ut(i) {
785
+ const c = i.charCodeAt(0);
786
+ return c >= 48 && c <= 57 || // 0-9
787
+ c >= 65 && c <= 70 || // A-F
788
+ c >= 97 && c <= 102;
789
+ }
790
+ function pe(i) {
791
+ return F(i, ut);
792
+ }
793
+ function we(i) {
794
+ let c = "", N = "";
795
+ for (; c = ct(i); )
796
+ N += c;
797
+ return N;
798
+ }
799
+ function ft(i) {
800
+ let c = "";
801
+ for (; ; ) {
802
+ const N = i.currentChar();
803
+ if (N === "{" || N === "}" || N === "@" || N === "|" || !N)
804
+ break;
805
+ if (N === _e || N === z)
806
+ if (q(i))
807
+ c += N, i.next();
808
+ else {
809
+ if (G(i))
810
+ break;
811
+ c += N, i.next();
812
+ }
813
+ else
814
+ c += N, i.next();
815
+ }
816
+ return c;
817
+ }
818
+ function _t(i) {
819
+ A(i);
820
+ let c = "", N = "";
821
+ for (; c = te(i); )
822
+ N += c;
823
+ const D = i.currentChar();
824
+ if (D && D !== "}" && D !== ge && D !== _e && D !== z && D !== " ") {
825
+ const Y = Ke(i);
826
+ return T(P.INVALID_TOKEN_IN_PLACEHOLDER, o(), 0, N + Y), N + Y;
827
+ }
828
+ return i.currentChar() === ge && T(P.UNTERMINATED_CLOSING_BRACE, o(), 0), N;
829
+ }
830
+ function mt(i) {
831
+ A(i);
832
+ let c = "";
833
+ return i.currentChar() === "-" ? (i.next(), c += `-${we(i)}`) : c += we(i), i.currentChar() === ge && T(P.UNTERMINATED_CLOSING_BRACE, o(), 0), c;
834
+ }
835
+ function dt(i) {
836
+ return i !== En && i !== z;
837
+ }
838
+ function sn(i) {
839
+ A(i), y(i, "'");
840
+ let c = "", N = "";
841
+ for (; c = F(i, dt); )
842
+ c === "\\" ? N += Et(i) : N += c;
843
+ const D = i.currentChar();
844
+ return D === z || D === ge ? (T(P.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, o(), 0), D === z && (i.next(), y(i, "'")), N) : (y(i, "'"), N);
845
+ }
846
+ function Et(i) {
847
+ const c = i.currentChar();
848
+ switch (c) {
849
+ case "\\":
850
+ case "'":
851
+ return i.next(), `\\${c}`;
852
+ case "u":
853
+ return xe(i, c, 4);
854
+ case "U":
855
+ return xe(i, c, 6);
856
+ default:
857
+ return T(P.UNKNOWN_ESCAPE_SEQUENCE, o(), 0, c), "";
858
+ }
859
+ }
860
+ function xe(i, c, N) {
861
+ y(i, c);
862
+ let D = "";
863
+ for (let Y = 0; Y < N; Y++) {
864
+ const X = pe(i);
865
+ if (!X) {
866
+ T(P.INVALID_UNICODE_ESCAPE_SEQUENCE, o(), 0, `\\${c}${D}${i.currentChar()}`);
867
+ break;
868
+ }
869
+ D += X;
870
+ }
871
+ return `\\${c}${D}`;
872
+ }
873
+ function pt(i) {
874
+ return i !== "{" && i !== "}" && i !== _e && i !== z;
875
+ }
876
+ function Ke(i) {
877
+ A(i);
878
+ let c = "", N = "";
879
+ for (; c = F(i, pt); )
880
+ N += c;
881
+ return N;
882
+ }
883
+ function gt(i) {
884
+ let c = "", N = "";
885
+ for (; c = R(i); )
886
+ N += c;
887
+ return N;
888
+ }
889
+ function Nt(i) {
890
+ const c = (N) => {
891
+ const D = i.currentChar();
892
+ return D === "{" || D === "@" || D === "|" || D === "(" || D === ")" || !D || D === _e ? N : (N += D, i.next(), c(N));
893
+ };
894
+ return c("");
895
+ }
896
+ function Fe(i) {
897
+ A(i);
898
+ const c = y(
899
+ i,
900
+ "|"
901
+ /* TokenChars.Pipe */
902
+ );
903
+ return A(i), c;
904
+ }
905
+ function Ue(i, c) {
906
+ let N = null;
907
+ switch (i.currentChar()) {
908
+ case "{":
909
+ return c.braceNest >= 1 && T(P.NOT_ALLOW_NEST_PLACEHOLDER, o(), 0), i.next(), N = p(
910
+ c,
911
+ 2,
912
+ "{"
913
+ /* TokenChars.BraceLeft */
914
+ ), A(i), c.braceNest++, N;
915
+ case "}":
916
+ return c.braceNest > 0 && c.currentType === 2 && T(P.EMPTY_PLACEHOLDER, o(), 0), i.next(), N = p(
917
+ c,
918
+ 3,
919
+ "}"
920
+ /* TokenChars.BraceRight */
921
+ ), c.braceNest--, c.braceNest > 0 && A(i), c.inLinked && c.braceNest === 0 && (c.inLinked = !1), N;
922
+ case "@":
923
+ return c.braceNest > 0 && T(P.UNTERMINATED_CLOSING_BRACE, o(), 0), N = Oe(i, c) || S(c), c.braceNest = 0, N;
924
+ default: {
925
+ let Y = !0, X = !0, V = !0;
926
+ if (G(i))
927
+ return c.braceNest > 0 && T(P.UNTERMINATED_CLOSING_BRACE, o(), 0), N = p(c, 1, Fe(i)), c.braceNest = 0, c.inLinked = !1, N;
928
+ if (c.braceNest > 0 && (c.currentType === 4 || c.currentType === 5 || c.currentType === 6))
929
+ return T(P.UNTERMINATED_CLOSING_BRACE, o(), 0), c.braceNest = 0, Ve(i, c);
930
+ if (Y = v(i, c))
931
+ return N = p(c, 4, _t(i)), A(i), N;
932
+ if (X = m(i, c))
933
+ return N = p(c, 5, mt(i)), A(i), N;
934
+ if (V = b(i, c))
935
+ return N = p(c, 6, sn(i)), A(i), N;
936
+ if (!Y && !X && !V)
937
+ return N = p(c, 12, Ke(i)), T(P.INVALID_TOKEN_IN_PLACEHOLDER, o(), 0, N.value), A(i), N;
938
+ break;
939
+ }
940
+ }
941
+ return N;
942
+ }
943
+ function Oe(i, c) {
944
+ const { currentType: N } = c;
945
+ let D = null;
946
+ const Y = i.currentChar();
947
+ switch ((N === 7 || N === 8 || N === 11 || N === 9) && (Y === z || Y === _e) && T(P.INVALID_LINKED_FORMAT, o(), 0), Y) {
948
+ case "@":
949
+ return i.next(), D = p(
950
+ c,
951
+ 7,
952
+ "@"
953
+ /* TokenChars.LinkedAlias */
954
+ ), c.inLinked = !0, D;
955
+ case ".":
956
+ return A(i), i.next(), p(
957
+ c,
958
+ 8,
959
+ "."
960
+ /* TokenChars.LinkedDot */
961
+ );
962
+ case ":":
963
+ return A(i), i.next(), p(
964
+ c,
965
+ 9,
966
+ ":"
967
+ /* TokenChars.LinkedDelimiter */
968
+ );
969
+ default:
970
+ return G(i) ? (D = p(c, 1, Fe(i)), c.braceNest = 0, c.inLinked = !1, D) : I(i, c) || k(i, c) ? (A(i), Oe(i, c)) : g(i, c) ? (A(i), p(c, 11, gt(i))) : M(i, c) ? (A(i), Y === "{" ? Ue(i, c) || D : p(c, 10, Nt(i))) : (N === 7 && T(P.INVALID_LINKED_FORMAT, o(), 0), c.braceNest = 0, c.inLinked = !1, Ve(i, c));
971
+ }
972
+ }
973
+ function Ve(i, c) {
974
+ let N = {
975
+ type: 13
976
+ /* TokenTypes.EOF */
977
+ };
978
+ if (c.braceNest > 0)
979
+ return Ue(i, c) || S(c);
980
+ if (c.inLinked)
981
+ return Oe(i, c) || S(c);
982
+ switch (i.currentChar()) {
983
+ case "{":
984
+ return Ue(i, c) || S(c);
985
+ case "}":
986
+ return T(P.UNBALANCED_CLOSING_BRACE, o(), 0), i.next(), p(
987
+ c,
988
+ 3,
989
+ "}"
990
+ /* TokenChars.BraceRight */
991
+ );
992
+ case "@":
993
+ return Oe(i, c) || S(c);
994
+ default: {
995
+ if (G(i))
996
+ return N = p(c, 1, Fe(i)), c.braceNest = 0, c.inLinked = !1, N;
997
+ if (q(i))
998
+ return p(c, 0, ft(i));
999
+ break;
1000
+ }
1001
+ }
1002
+ return N;
1003
+ }
1004
+ function ht() {
1005
+ const { currentType: i, offset: c, startLoc: N, endLoc: D } = u;
1006
+ return u.lastType = i, u.lastOffset = c, u.lastStartLoc = N, u.lastEndLoc = D, u.offset = s(), u.startLoc = o(), r.currentChar() === ge ? p(
1007
+ u,
1008
+ 13
1009
+ /* TokenTypes.EOF */
1010
+ ) : Ve(r, u);
1011
+ }
1012
+ return {
1013
+ nextToken: ht,
1014
+ currentOffset: s,
1015
+ currentPosition: o,
1016
+ context: _
1017
+ };
1018
+ }
1019
+ const Bs = "parser", Xs = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
1020
+ function Js(e, t, n) {
1021
+ switch (e) {
1022
+ case "\\\\":
1023
+ return "\\";
1024
+ // eslint-disable-next-line no-useless-escape
1025
+ case "\\'":
1026
+ return "'";
1027
+ default: {
1028
+ const r = parseInt(t || n, 16);
1029
+ return r <= 55295 || r >= 57344 ? String.fromCodePoint(r) : "�";
1030
+ }
1031
+ }
1032
+ }
1033
+ function Qs(e = {}) {
1034
+ const t = e.location !== !1, { onError: n } = e;
1035
+ function r(f, E, v, m, ...b) {
1036
+ const I = f.currentPosition();
1037
+ if (I.offset += m, I.column += m, n) {
1038
+ const g = t ? yt(v, I) : null, k = Me(E, g, {
1039
+ domain: Bs,
1040
+ args: b
1041
+ });
1042
+ n(k);
1043
+ }
1044
+ }
1045
+ function s(f, E, v) {
1046
+ const m = { type: f };
1047
+ return t && (m.start = E, m.end = E, m.loc = { start: v, end: v }), m;
1048
+ }
1049
+ function o(f, E, v, m) {
1050
+ t && (f.end = E, f.loc && (f.loc.end = v));
1051
+ }
1052
+ function a(f, E) {
1053
+ const v = f.context(), m = s(3, v.offset, v.startLoc);
1054
+ return m.value = E, o(m, f.currentOffset(), f.currentPosition()), m;
1055
+ }
1056
+ function l(f, E) {
1057
+ const v = f.context(), { lastOffset: m, lastStartLoc: b } = v, I = s(5, m, b);
1058
+ return I.index = parseInt(E, 10), f.nextToken(), o(I, f.currentOffset(), f.currentPosition()), I;
1059
+ }
1060
+ function u(f, E) {
1061
+ const v = f.context(), { lastOffset: m, lastStartLoc: b } = v, I = s(4, m, b);
1062
+ return I.key = E, f.nextToken(), o(I, f.currentOffset(), f.currentPosition()), I;
1063
+ }
1064
+ function _(f, E) {
1065
+ const v = f.context(), { lastOffset: m, lastStartLoc: b } = v, I = s(9, m, b);
1066
+ return I.value = E.replace(Xs, Js), f.nextToken(), o(I, f.currentOffset(), f.currentPosition()), I;
1067
+ }
1068
+ function h(f) {
1069
+ const E = f.nextToken(), v = f.context(), { lastOffset: m, lastStartLoc: b } = v, I = s(8, m, b);
1070
+ return E.type !== 11 ? (r(f, P.UNEXPECTED_EMPTY_LINKED_MODIFIER, v.lastStartLoc, 0), I.value = "", o(I, m, b), {
1071
+ nextConsumeToken: E,
1072
+ node: I
1073
+ }) : (E.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, me(E)), I.value = E.value || "", o(I, f.currentOffset(), f.currentPosition()), {
1074
+ node: I
1075
+ });
1076
+ }
1077
+ function T(f, E) {
1078
+ const v = f.context(), m = s(7, v.offset, v.startLoc);
1079
+ return m.value = E, o(m, f.currentOffset(), f.currentPosition()), m;
1080
+ }
1081
+ function p(f) {
1082
+ const E = f.context(), v = s(6, E.offset, E.startLoc);
1083
+ let m = f.nextToken();
1084
+ if (m.type === 8) {
1085
+ const b = h(f);
1086
+ v.modifier = b.node, m = b.nextConsumeToken || f.nextToken();
1087
+ }
1088
+ switch (m.type !== 9 && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, me(m)), m = f.nextToken(), m.type === 2 && (m = f.nextToken()), m.type) {
1089
+ case 10:
1090
+ m.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, me(m)), v.key = T(f, m.value || "");
1091
+ break;
1092
+ case 4:
1093
+ m.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, me(m)), v.key = u(f, m.value || "");
1094
+ break;
1095
+ case 5:
1096
+ m.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, me(m)), v.key = l(f, m.value || "");
1097
+ break;
1098
+ case 6:
1099
+ m.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, me(m)), v.key = _(f, m.value || "");
1100
+ break;
1101
+ default: {
1102
+ r(f, P.UNEXPECTED_EMPTY_LINKED_KEY, E.lastStartLoc, 0);
1103
+ const b = f.context(), I = s(7, b.offset, b.startLoc);
1104
+ return I.value = "", o(I, b.offset, b.startLoc), v.key = I, o(v, b.offset, b.startLoc), {
1105
+ nextConsumeToken: m,
1106
+ node: v
1107
+ };
1108
+ }
1109
+ }
1110
+ return o(v, f.currentOffset(), f.currentPosition()), {
1111
+ node: v
1112
+ };
1113
+ }
1114
+ function S(f) {
1115
+ const E = f.context(), v = E.currentType === 1 ? f.currentOffset() : E.offset, m = E.currentType === 1 ? E.endLoc : E.startLoc, b = s(2, v, m);
1116
+ b.items = [];
1117
+ let I = null;
1118
+ do {
1119
+ const M = I || f.nextToken();
1120
+ switch (I = null, M.type) {
1121
+ case 0:
1122
+ M.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, me(M)), b.items.push(a(f, M.value || ""));
1123
+ break;
1124
+ case 5:
1125
+ M.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, me(M)), b.items.push(l(f, M.value || ""));
1126
+ break;
1127
+ case 4:
1128
+ M.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, me(M)), b.items.push(u(f, M.value || ""));
1129
+ break;
1130
+ case 6:
1131
+ M.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, me(M)), b.items.push(_(f, M.value || ""));
1132
+ break;
1133
+ case 7: {
1134
+ const G = p(f);
1135
+ b.items.push(G.node), I = G.nextConsumeToken || null;
1136
+ break;
1137
+ }
1138
+ }
1139
+ } while (E.currentType !== 13 && E.currentType !== 1);
1140
+ const g = E.currentType === 1 ? E.lastOffset : f.currentOffset(), k = E.currentType === 1 ? E.lastEndLoc : f.currentPosition();
1141
+ return o(b, g, k), b;
1142
+ }
1143
+ function y(f, E, v, m) {
1144
+ const b = f.context();
1145
+ let I = m.items.length === 0;
1146
+ const g = s(1, E, v);
1147
+ g.cases = [], g.cases.push(m);
1148
+ do {
1149
+ const k = S(f);
1150
+ I || (I = k.items.length === 0), g.cases.push(k);
1151
+ } while (b.currentType !== 13);
1152
+ return I && r(f, P.MUST_HAVE_MESSAGES_IN_PLURAL, v, 0), o(g, f.currentOffset(), f.currentPosition()), g;
1153
+ }
1154
+ function L(f) {
1155
+ const E = f.context(), { offset: v, startLoc: m } = E, b = S(f);
1156
+ return E.currentType === 13 ? b : y(f, v, m, b);
1157
+ }
1158
+ function A(f) {
1159
+ const E = Ks(f, Z({}, e)), v = E.context(), m = s(0, v.offset, v.startLoc);
1160
+ return t && m.loc && (m.loc.source = f), m.body = L(E), e.onCacheKey && (m.cacheKey = e.onCacheKey(f)), v.currentType !== 13 && r(E, P.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, f[v.offset] || ""), o(m, E.currentOffset(), E.currentPosition()), m;
1161
+ }
1162
+ return { parse: A };
1163
+ }
1164
+ function me(e) {
1165
+ if (e.type === 13)
1166
+ return "EOF";
1167
+ const t = (e.value || "").replace(/\r?\n/gu, "\\n");
1168
+ return t.length > 10 ? t.slice(0, 9) + "…" : t;
1169
+ }
1170
+ function qs(e, t = {}) {
1171
+ const n = {
1172
+ ast: e,
1173
+ helpers: /* @__PURE__ */ new Set()
1174
+ };
1175
+ return { context: () => n, helper: (o) => (n.helpers.add(o), o) };
1176
+ }
1177
+ function pn(e, t) {
1178
+ for (let n = 0; n < e.length; n++)
1179
+ Qt(e[n], t);
1180
+ }
1181
+ function Qt(e, t) {
1182
+ switch (e.type) {
1183
+ case 1:
1184
+ pn(e.cases, t), t.helper(
1185
+ "plural"
1186
+ /* HelperNameMap.PLURAL */
1187
+ );
1188
+ break;
1189
+ case 2:
1190
+ pn(e.items, t);
1191
+ break;
1192
+ case 6: {
1193
+ Qt(e.key, t), t.helper(
1194
+ "linked"
1195
+ /* HelperNameMap.LINKED */
1196
+ ), t.helper(
1197
+ "type"
1198
+ /* HelperNameMap.TYPE */
1199
+ );
1200
+ break;
1201
+ }
1202
+ case 5:
1203
+ t.helper(
1204
+ "interpolate"
1205
+ /* HelperNameMap.INTERPOLATE */
1206
+ ), t.helper(
1207
+ "list"
1208
+ /* HelperNameMap.LIST */
1209
+ );
1210
+ break;
1211
+ case 4:
1212
+ t.helper(
1213
+ "interpolate"
1214
+ /* HelperNameMap.INTERPOLATE */
1215
+ ), t.helper(
1216
+ "named"
1217
+ /* HelperNameMap.NAMED */
1218
+ );
1219
+ break;
1220
+ }
1221
+ }
1222
+ function Zs(e, t = {}) {
1223
+ const n = qs(e);
1224
+ n.helper(
1225
+ "normalize"
1226
+ /* HelperNameMap.NORMALIZE */
1227
+ ), e.body && Qt(e.body, n);
1228
+ const r = n.context();
1229
+ e.helpers = Array.from(r.helpers);
1230
+ }
1231
+ function zs(e) {
1232
+ const t = e.body;
1233
+ return t.type === 2 ? gn(t) : t.cases.forEach((n) => gn(n)), e;
1234
+ }
1235
+ function gn(e) {
1236
+ if (e.items.length === 1) {
1237
+ const t = e.items[0];
1238
+ (t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
1239
+ } else {
1240
+ const t = [];
1241
+ for (let n = 0; n < e.items.length; n++) {
1242
+ const r = e.items[n];
1243
+ if (!(r.type === 3 || r.type === 9) || r.value == null)
1244
+ break;
1245
+ t.push(r.value);
1246
+ }
1247
+ if (t.length === e.items.length) {
1248
+ e.static = Jt(t);
1249
+ for (let n = 0; n < e.items.length; n++) {
1250
+ const r = e.items[n];
1251
+ (r.type === 3 || r.type === 9) && delete r.value;
1252
+ }
1253
+ }
1254
+ }
1255
+ }
1256
+ const eo = "minifier";
1257
+ function De(e) {
1258
+ switch (e.t = e.type, e.type) {
1259
+ case 0: {
1260
+ const t = e;
1261
+ De(t.body), t.b = t.body, delete t.body;
1262
+ break;
1263
+ }
1264
+ case 1: {
1265
+ const t = e, n = t.cases;
1266
+ for (let r = 0; r < n.length; r++)
1267
+ De(n[r]);
1268
+ t.c = n, delete t.cases;
1269
+ break;
1270
+ }
1271
+ case 2: {
1272
+ const t = e, n = t.items;
1273
+ for (let r = 0; r < n.length; r++)
1274
+ De(n[r]);
1275
+ t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
1276
+ break;
1277
+ }
1278
+ case 3:
1279
+ case 9:
1280
+ case 8:
1281
+ case 7: {
1282
+ const t = e;
1283
+ t.value && (t.v = t.value, delete t.value);
1284
+ break;
1285
+ }
1286
+ case 6: {
1287
+ const t = e;
1288
+ De(t.key), t.k = t.key, delete t.key, t.modifier && (De(t.modifier), t.m = t.modifier, delete t.modifier);
1289
+ break;
1290
+ }
1291
+ case 5: {
1292
+ const t = e;
1293
+ t.i = t.index, delete t.index;
1294
+ break;
1295
+ }
1296
+ case 4: {
1297
+ const t = e;
1298
+ t.k = t.key, delete t.key;
1299
+ break;
1300
+ }
1301
+ default:
1302
+ if (process.env.NODE_ENV !== "production")
1303
+ throw Me(P.UNHANDLED_MINIFIER_NODE_TYPE, null, {
1304
+ domain: eo,
1305
+ args: [e.type]
1306
+ });
1307
+ }
1308
+ delete e.type;
1309
+ }
1310
+ const to = "parser";
1311
+ function no(e, t) {
1312
+ const { filename: n, breakLineCode: r, needIndent: s } = t, o = t.location !== !1, a = {
1313
+ filename: n,
1314
+ code: "",
1315
+ column: 1,
1316
+ line: 1,
1317
+ offset: 0,
1318
+ map: void 0,
1319
+ breakLineCode: r,
1320
+ needIndent: s,
1321
+ indentLevel: 0
1322
+ };
1323
+ o && e.loc && (a.source = e.loc.source);
1324
+ const l = () => a;
1325
+ function u(L, A) {
1326
+ a.code += L;
1327
+ }
1328
+ function _(L, A = !0) {
1329
+ const f = A ? r : "";
1330
+ u(s ? f + " ".repeat(L) : f);
1331
+ }
1332
+ function h(L = !0) {
1333
+ const A = ++a.indentLevel;
1334
+ L && _(A);
1335
+ }
1336
+ function T(L = !0) {
1337
+ const A = --a.indentLevel;
1338
+ L && _(A);
1339
+ }
1340
+ function p() {
1341
+ _(a.indentLevel);
1342
+ }
1343
+ return {
1344
+ context: l,
1345
+ push: u,
1346
+ indent: h,
1347
+ deindent: T,
1348
+ newline: p,
1349
+ helper: (L) => `_${L}`,
1350
+ needIndent: () => a.needIndent
1351
+ };
1352
+ }
1353
+ function ro(e, t) {
1354
+ const { helper: n } = e;
1355
+ e.push(`${n(
1356
+ "linked"
1357
+ /* HelperNameMap.LINKED */
1358
+ )}(`), Re(e, t.key), t.modifier ? (e.push(", "), Re(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
1359
+ }
1360
+ function so(e, t) {
1361
+ const { helper: n, needIndent: r } = e;
1362
+ e.push(`${n(
1363
+ "normalize"
1364
+ /* HelperNameMap.NORMALIZE */
1365
+ )}([`), e.indent(r());
1366
+ const s = t.items.length;
1367
+ for (let o = 0; o < s && (Re(e, t.items[o]), o !== s - 1); o++)
1368
+ e.push(", ");
1369
+ e.deindent(r()), e.push("])");
1370
+ }
1371
+ function oo(e, t) {
1372
+ const { helper: n, needIndent: r } = e;
1373
+ if (t.cases.length > 1) {
1374
+ e.push(`${n(
1375
+ "plural"
1376
+ /* HelperNameMap.PLURAL */
1377
+ )}([`), e.indent(r());
1378
+ const s = t.cases.length;
1379
+ for (let o = 0; o < s && (Re(e, t.cases[o]), o !== s - 1); o++)
1380
+ e.push(", ");
1381
+ e.deindent(r()), e.push("])");
1382
+ }
1383
+ }
1384
+ function ao(e, t) {
1385
+ t.body ? Re(e, t.body) : e.push("null");
1386
+ }
1387
+ function Re(e, t) {
1388
+ const { helper: n } = e;
1389
+ switch (t.type) {
1390
+ case 0:
1391
+ ao(e, t);
1392
+ break;
1393
+ case 1:
1394
+ oo(e, t);
1395
+ break;
1396
+ case 2:
1397
+ so(e, t);
1398
+ break;
1399
+ case 6:
1400
+ ro(e, t);
1401
+ break;
1402
+ case 8:
1403
+ e.push(JSON.stringify(t.value), t);
1404
+ break;
1405
+ case 7:
1406
+ e.push(JSON.stringify(t.value), t);
1407
+ break;
1408
+ case 5:
1409
+ e.push(`${n(
1410
+ "interpolate"
1411
+ /* HelperNameMap.INTERPOLATE */
1412
+ )}(${n(
1413
+ "list"
1414
+ /* HelperNameMap.LIST */
1415
+ )}(${t.index}))`, t);
1416
+ break;
1417
+ case 4:
1418
+ e.push(`${n(
1419
+ "interpolate"
1420
+ /* HelperNameMap.INTERPOLATE */
1421
+ )}(${n(
1422
+ "named"
1423
+ /* HelperNameMap.NAMED */
1424
+ )}(${JSON.stringify(t.key)}))`, t);
1425
+ break;
1426
+ case 9:
1427
+ e.push(JSON.stringify(t.value), t);
1428
+ break;
1429
+ case 3:
1430
+ e.push(JSON.stringify(t.value), t);
1431
+ break;
1432
+ default:
1433
+ if (process.env.NODE_ENV !== "production")
1434
+ throw Me(P.UNHANDLED_CODEGEN_NODE_TYPE, null, {
1435
+ domain: to,
1436
+ args: [t.type]
1437
+ });
1438
+ }
1439
+ }
1440
+ const lo = (e, t = {}) => {
1441
+ const n = C(t.mode) ? t.mode : "normal", r = C(t.filename) ? t.filename : "message.intl";
1442
+ t.sourceMap;
1443
+ const s = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
1444
+ `, o = t.needIndent ? t.needIndent : n !== "arrow", a = e.helpers || [], l = no(e, {
1445
+ filename: r,
1446
+ breakLineCode: s,
1447
+ needIndent: o
1448
+ });
1449
+ l.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), l.indent(o), a.length > 0 && (l.push(`const { ${Jt(a.map((h) => `${h}: _${h}`), ", ")} } = ctx`), l.newline()), l.push("return "), Re(l, e), l.deindent(o), l.push("}"), delete e.helpers;
1450
+ const { code: u, map: _ } = l.context();
1451
+ return {
1452
+ ast: e,
1453
+ code: u,
1454
+ map: _ ? _.toJSON() : void 0
1455
+ // eslint-disable-line @typescript-eslint/no-explicit-any
1456
+ };
1457
+ };
1458
+ function io(e, t = {}) {
1459
+ const n = Z({}, t), r = !!n.jit, s = !!n.minify, o = n.optimize == null ? !0 : n.optimize, l = Qs(n).parse(e);
1460
+ return r ? (o && zs(l), s && De(l), { ast: l, code: "" }) : (Zs(l, n), lo(l, n));
1461
+ }
1462
+ function co() {
1463
+ typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Bt().__INTLIFY_PROD_DEVTOOLS__ = !1);
1464
+ }
1465
+ function le(e) {
1466
+ return U(e) && qt(e) === 0 && (ue(e, "b") || ue(e, "body"));
1467
+ }
1468
+ const ar = ["b", "body"];
1469
+ function uo(e) {
1470
+ return Te(e, ar);
1471
+ }
1472
+ const lr = ["c", "cases"];
1473
+ function fo(e) {
1474
+ return Te(e, lr, []);
1475
+ }
1476
+ const ir = ["s", "static"];
1477
+ function _o(e) {
1478
+ return Te(e, ir);
1479
+ }
1480
+ const cr = ["i", "items"];
1481
+ function mo(e) {
1482
+ return Te(e, cr, []);
1483
+ }
1484
+ const ur = ["t", "type"];
1485
+ function qt(e) {
1486
+ return Te(e, ur);
1487
+ }
1488
+ const fr = ["v", "value"];
1489
+ function qe(e, t) {
1490
+ const n = Te(e, fr);
1491
+ if (n != null)
1492
+ return n;
1493
+ throw We(t);
1494
+ }
1495
+ const _r = ["m", "modifier"];
1496
+ function Eo(e) {
1497
+ return Te(e, _r);
1498
+ }
1499
+ const mr = ["k", "key"];
1500
+ function po(e) {
1501
+ const t = Te(e, mr);
1502
+ if (t)
1503
+ return t;
1504
+ throw We(
1505
+ 6
1506
+ /* NodeTypes.Linked */
1507
+ );
1508
+ }
1509
+ function Te(e, t, n) {
1510
+ for (let r = 0; r < t.length; r++) {
1511
+ const s = t[r];
1512
+ if (ue(e, s) && e[s] != null)
1513
+ return e[s];
1514
+ }
1515
+ return n;
1516
+ }
1517
+ const dr = [
1518
+ ...ar,
1519
+ ...lr,
1520
+ ...ir,
1521
+ ...cr,
1522
+ ...mr,
1523
+ ..._r,
1524
+ ...fr,
1525
+ ...ur
1526
+ ];
1527
+ function We(e) {
1528
+ return new Error(`unhandled node type: ${e}`);
1529
+ }
1530
+ function Ot(e) {
1531
+ return (n) => go(n, e);
1532
+ }
1533
+ function go(e, t) {
1534
+ const n = uo(t);
1535
+ if (n == null)
1536
+ throw We(
1537
+ 0
1538
+ /* NodeTypes.Resource */
1539
+ );
1540
+ if (qt(n) === 1) {
1541
+ const o = fo(n);
1542
+ return e.plural(o.reduce((a, l) => [
1543
+ ...a,
1544
+ Nn(e, l)
1545
+ ], []));
1546
+ } else
1547
+ return Nn(e, n);
1548
+ }
1549
+ function Nn(e, t) {
1550
+ const n = _o(t);
1551
+ if (n != null)
1552
+ return e.type === "text" ? n : e.normalize([n]);
1553
+ {
1554
+ const r = mo(t).reduce((s, o) => [...s, Dt(e, o)], []);
1555
+ return e.normalize(r);
1556
+ }
1557
+ }
1558
+ function Dt(e, t) {
1559
+ const n = qt(t);
1560
+ switch (n) {
1561
+ case 3:
1562
+ return qe(t, n);
1563
+ case 9:
1564
+ return qe(t, n);
1565
+ case 4: {
1566
+ const r = t;
1567
+ if (ue(r, "k") && r.k)
1568
+ return e.interpolate(e.named(r.k));
1569
+ if (ue(r, "key") && r.key)
1570
+ return e.interpolate(e.named(r.key));
1571
+ throw We(n);
1572
+ }
1573
+ case 5: {
1574
+ const r = t;
1575
+ if (ue(r, "i") && Q(r.i))
1576
+ return e.interpolate(e.list(r.i));
1577
+ if (ue(r, "index") && Q(r.index))
1578
+ return e.interpolate(e.list(r.index));
1579
+ throw We(n);
1580
+ }
1581
+ case 6: {
1582
+ const r = t, s = Eo(r), o = po(r);
1583
+ return e.linked(Dt(e, o), s ? Dt(e, s) : void 0, e.type);
1584
+ }
1585
+ case 7:
1586
+ return qe(t, n);
1587
+ case 8:
1588
+ return qe(t, n);
1589
+ default:
1590
+ throw new Error(`unhandled node on format message part: ${n}`);
1591
+ }
1592
+ }
1593
+ const No = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
1594
+ function ho(e, t) {
1595
+ t && $s(e) && de(st(No, { source: e }));
1596
+ }
1597
+ const To = (e) => e;
1598
+ let Ze = W();
1599
+ function vo(e, t = {}) {
1600
+ let n = !1;
1601
+ const r = t.onError || Us;
1602
+ return t.onError = (s) => {
1603
+ n = !0, r(s);
1604
+ }, { ...io(e, t), detectError: n };
1605
+ }
1606
+ // @__NO_SIDE_EFFECTS__
1607
+ function Oo(e, t) {
1608
+ if (C(e)) {
1609
+ const n = x(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
1610
+ process.env.NODE_ENV !== "production" && ho(e, n);
1611
+ const s = (t.onCacheKey || To)(e), o = Ze[s];
1612
+ if (o)
1613
+ return o;
1614
+ const { ast: a, detectError: l } = vo(e, {
1615
+ ...t,
1616
+ location: process.env.NODE_ENV !== "production",
1617
+ jit: !0
1618
+ }), u = Ot(a);
1619
+ return l ? u : Ze[s] = u;
1620
+ } else {
1621
+ if (process.env.NODE_ENV !== "production" && !le(e))
1622
+ return de(`the message that is resolve with key '${t.key}' is not supported for jit compilation`), (() => e);
1623
+ const n = e.cacheKey;
1624
+ if (n) {
1625
+ const r = Ze[n];
1626
+ return r || (Ze[n] = Ot(e));
1627
+ } else
1628
+ return Ot(e);
1629
+ }
1630
+ }
1631
+ let Ge = null;
1632
+ function Lo(e) {
1633
+ Ge = e;
1634
+ }
1635
+ function bo(e, t, n) {
1636
+ Ge && Ge.emit("i18n:init", {
1637
+ timestamp: Date.now(),
1638
+ i18n: e,
1639
+ version: t,
1640
+ meta: n
1641
+ });
1642
+ }
1643
+ const Io = /* @__PURE__ */ So("function:translate");
1644
+ function So(e) {
1645
+ return (t) => Ge && Ge.emit(e, t);
1646
+ }
1647
+ const ee = {
1648
+ INVALID_ARGUMENT: ws,
1649
+ // 17
1650
+ INVALID_DATE_ARGUMENT: 18,
1651
+ INVALID_ISO_DATE_ARGUMENT: 19,
1652
+ NOT_SUPPORT_NON_STRING_MESSAGE: 20,
1653
+ NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
1654
+ NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
1655
+ NOT_SUPPORT_LOCALE_TYPE: 23
1656
+ }, Ao = 24;
1657
+ function Ne(e) {
1658
+ return Me(e, null, process.env.NODE_ENV !== "production" ? { messages: Co } : void 0);
1659
+ }
1660
+ const Co = {
1661
+ [ee.INVALID_ARGUMENT]: "Invalid arguments",
1662
+ [ee.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
1663
+ [ee.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
1664
+ [ee.NOT_SUPPORT_NON_STRING_MESSAGE]: "Not support non-string message",
1665
+ [ee.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: "cannot support promise value",
1666
+ [ee.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
1667
+ [ee.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
1668
+ };
1669
+ function Zt(e, t) {
1670
+ return t.locale != null ? hn(t.locale) : hn(e.locale);
1671
+ }
1672
+ let Lt;
1673
+ function hn(e) {
1674
+ if (C(e))
1675
+ return e;
1676
+ if (H(e)) {
1677
+ if (e.resolvedOnce && Lt != null)
1678
+ return Lt;
1679
+ if (e.constructor.name === "Function") {
1680
+ const t = e();
1681
+ if (Ps(t))
1682
+ throw Ne(ee.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
1683
+ return Lt = t;
1684
+ } else
1685
+ throw Ne(ee.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
1686
+ } else
1687
+ throw Ne(ee.NOT_SUPPORT_LOCALE_TYPE);
1688
+ }
1689
+ function yo(e, t, n) {
1690
+ return [.../* @__PURE__ */ new Set([
1691
+ n,
1692
+ ...K(t) ? t : U(t) ? Object.keys(t) : C(t) ? [t] : [n]
1693
+ ])];
1694
+ }
1695
+ function Er(e, t, n) {
1696
+ const r = C(n) ? n : tt, s = e;
1697
+ s.__localeChainCache || (s.__localeChainCache = /* @__PURE__ */ new Map());
1698
+ let o = s.__localeChainCache.get(r);
1699
+ if (!o) {
1700
+ o = [];
1701
+ let a = [n];
1702
+ for (; K(a); )
1703
+ a = Tn(o, a, t);
1704
+ const l = K(t) || !w(t) ? t : t.default ? t.default : null;
1705
+ a = C(l) ? [l] : l, K(a) && Tn(o, a, !1), s.__localeChainCache.set(r, o);
1706
+ }
1707
+ return o;
1708
+ }
1709
+ function Tn(e, t, n) {
1710
+ let r = !0;
1711
+ for (let s = 0; s < t.length && x(r); s++) {
1712
+ const o = t[s];
1713
+ C(o) && (r = Do(e, t[s], n));
1714
+ }
1715
+ return r;
1716
+ }
1717
+ function Do(e, t, n) {
1718
+ let r;
1719
+ const s = t.split("-");
1720
+ do {
1721
+ const o = s.join("-");
1722
+ r = Po(e, o, n), s.splice(-1, 1);
1723
+ } while (s.length && r === !0);
1724
+ return r;
1725
+ }
1726
+ function Po(e, t, n) {
1727
+ let r = !1;
1728
+ if (!e.includes(t) && (r = !0, t)) {
1729
+ r = t[t.length - 1] !== "!";
1730
+ const s = t.replace(/!/g, "");
1731
+ e.push(s), (K(n) || w(n)) && n[s] && (r = n[s]);
1732
+ }
1733
+ return r;
1734
+ }
1735
+ const ve = [];
1736
+ ve[
1737
+ 0
1738
+ /* States.BEFORE_PATH */
1739
+ ] = {
1740
+ w: [
1741
+ 0
1742
+ /* States.BEFORE_PATH */
1743
+ ],
1744
+ i: [
1745
+ 3,
1746
+ 0
1747
+ /* Actions.APPEND */
1748
+ ],
1749
+ "[": [
1750
+ 4
1751
+ /* States.IN_SUB_PATH */
1752
+ ],
1753
+ o: [
1754
+ 7
1755
+ /* States.AFTER_PATH */
1756
+ ]
1757
+ };
1758
+ ve[
1759
+ 1
1760
+ /* States.IN_PATH */
1761
+ ] = {
1762
+ w: [
1763
+ 1
1764
+ /* States.IN_PATH */
1765
+ ],
1766
+ ".": [
1767
+ 2
1768
+ /* States.BEFORE_IDENT */
1769
+ ],
1770
+ "[": [
1771
+ 4
1772
+ /* States.IN_SUB_PATH */
1773
+ ],
1774
+ o: [
1775
+ 7
1776
+ /* States.AFTER_PATH */
1777
+ ]
1778
+ };
1779
+ ve[
1780
+ 2
1781
+ /* States.BEFORE_IDENT */
1782
+ ] = {
1783
+ w: [
1784
+ 2
1785
+ /* States.BEFORE_IDENT */
1786
+ ],
1787
+ i: [
1788
+ 3,
1789
+ 0
1790
+ /* Actions.APPEND */
1791
+ ],
1792
+ 0: [
1793
+ 3,
1794
+ 0
1795
+ /* Actions.APPEND */
1796
+ ]
1797
+ };
1798
+ ve[
1799
+ 3
1800
+ /* States.IN_IDENT */
1801
+ ] = {
1802
+ i: [
1803
+ 3,
1804
+ 0
1805
+ /* Actions.APPEND */
1806
+ ],
1807
+ 0: [
1808
+ 3,
1809
+ 0
1810
+ /* Actions.APPEND */
1811
+ ],
1812
+ w: [
1813
+ 1,
1814
+ 1
1815
+ /* Actions.PUSH */
1816
+ ],
1817
+ ".": [
1818
+ 2,
1819
+ 1
1820
+ /* Actions.PUSH */
1821
+ ],
1822
+ "[": [
1823
+ 4,
1824
+ 1
1825
+ /* Actions.PUSH */
1826
+ ],
1827
+ o: [
1828
+ 7,
1829
+ 1
1830
+ /* Actions.PUSH */
1831
+ ]
1832
+ };
1833
+ ve[
1834
+ 4
1835
+ /* States.IN_SUB_PATH */
1836
+ ] = {
1837
+ "'": [
1838
+ 5,
1839
+ 0
1840
+ /* Actions.APPEND */
1841
+ ],
1842
+ '"': [
1843
+ 6,
1844
+ 0
1845
+ /* Actions.APPEND */
1846
+ ],
1847
+ "[": [
1848
+ 4,
1849
+ 2
1850
+ /* Actions.INC_SUB_PATH_DEPTH */
1851
+ ],
1852
+ "]": [
1853
+ 1,
1854
+ 3
1855
+ /* Actions.PUSH_SUB_PATH */
1856
+ ],
1857
+ o: 8,
1858
+ l: [
1859
+ 4,
1860
+ 0
1861
+ /* Actions.APPEND */
1862
+ ]
1863
+ };
1864
+ ve[
1865
+ 5
1866
+ /* States.IN_SINGLE_QUOTE */
1867
+ ] = {
1868
+ "'": [
1869
+ 4,
1870
+ 0
1871
+ /* Actions.APPEND */
1872
+ ],
1873
+ o: 8,
1874
+ l: [
1875
+ 5,
1876
+ 0
1877
+ /* Actions.APPEND */
1878
+ ]
1879
+ };
1880
+ ve[
1881
+ 6
1882
+ /* States.IN_DOUBLE_QUOTE */
1883
+ ] = {
1884
+ '"': [
1885
+ 4,
1886
+ 0
1887
+ /* Actions.APPEND */
1888
+ ],
1889
+ o: 8,
1890
+ l: [
1891
+ 6,
1892
+ 0
1893
+ /* Actions.APPEND */
1894
+ ]
1895
+ };
1896
+ const ko = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
1897
+ function Ro(e) {
1898
+ return ko.test(e);
1899
+ }
1900
+ function Mo(e) {
1901
+ const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
1902
+ return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
1903
+ }
1904
+ function wo(e) {
1905
+ if (e == null)
1906
+ return "o";
1907
+ switch (e.charCodeAt(0)) {
1908
+ case 91:
1909
+ // [
1910
+ case 93:
1911
+ // ]
1912
+ case 46:
1913
+ // .
1914
+ case 34:
1915
+ // "
1916
+ case 39:
1917
+ return e;
1918
+ case 95:
1919
+ // _
1920
+ case 36:
1921
+ // $
1922
+ case 45:
1923
+ return "i";
1924
+ case 9:
1925
+ // Tab (HT)
1926
+ case 10:
1927
+ // Newline (LF)
1928
+ case 13:
1929
+ // Return (CR)
1930
+ case 160:
1931
+ // No-break space (NBSP)
1932
+ case 65279:
1933
+ // Byte Order Mark (BOM)
1934
+ case 8232:
1935
+ // Line Separator (LS)
1936
+ case 8233:
1937
+ return "w";
1938
+ }
1939
+ return "i";
1940
+ }
1941
+ function Fo(e) {
1942
+ const t = e.trim();
1943
+ return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Ro(t) ? Mo(t) : "*" + t;
1944
+ }
1945
+ function Uo(e) {
1946
+ const t = [];
1947
+ let n = -1, r = 0, s = 0, o, a, l, u, _, h, T;
1948
+ const p = [];
1949
+ p[
1950
+ 0
1951
+ /* Actions.APPEND */
1952
+ ] = () => {
1953
+ a === void 0 ? a = l : a += l;
1954
+ }, p[
1955
+ 1
1956
+ /* Actions.PUSH */
1957
+ ] = () => {
1958
+ a !== void 0 && (t.push(a), a = void 0);
1959
+ }, p[
1960
+ 2
1961
+ /* Actions.INC_SUB_PATH_DEPTH */
1962
+ ] = () => {
1963
+ p[
1964
+ 0
1965
+ /* Actions.APPEND */
1966
+ ](), s++;
1967
+ }, p[
1968
+ 3
1969
+ /* Actions.PUSH_SUB_PATH */
1970
+ ] = () => {
1971
+ if (s > 0)
1972
+ s--, r = 4, p[
1973
+ 0
1974
+ /* Actions.APPEND */
1975
+ ]();
1976
+ else {
1977
+ if (s = 0, a === void 0 || (a = Fo(a), a === !1))
1978
+ return !1;
1979
+ p[
1980
+ 1
1981
+ /* Actions.PUSH */
1982
+ ]();
1983
+ }
1984
+ };
1985
+ function S() {
1986
+ const y = e[n + 1];
1987
+ if (r === 5 && y === "'" || r === 6 && y === '"')
1988
+ return n++, l = "\\" + y, p[
1989
+ 0
1990
+ /* Actions.APPEND */
1991
+ ](), !0;
1992
+ }
1993
+ for (; r !== null; )
1994
+ if (n++, o = e[n], !(o === "\\" && S())) {
1995
+ if (u = wo(o), T = ve[r], _ = T[u] || T.l || 8, _ === 8 || (r = _[0], _[1] !== void 0 && (h = p[_[1]], h && (l = o, h() === !1))))
1996
+ return;
1997
+ if (r === 7)
1998
+ return t;
1999
+ }
2000
+ }
2001
+ const vn = /* @__PURE__ */ new Map();
2002
+ function Vo(e, t) {
2003
+ return U(e) ? e[t] : null;
2004
+ }
2005
+ function $o(e, t) {
2006
+ if (!U(e))
2007
+ return null;
2008
+ let n = vn.get(t);
2009
+ if (n || (n = Uo(t), n && vn.set(t, n)), !n)
2010
+ return null;
2011
+ const r = n.length;
2012
+ let s = e, o = 0;
2013
+ for (; o < r; ) {
2014
+ const a = n[o];
2015
+ if (dr.includes(a) && le(s))
2016
+ return null;
2017
+ const l = s[a];
2018
+ if (l === void 0 || H(s))
2019
+ return null;
2020
+ s = l, o++;
2021
+ }
2022
+ return s;
2023
+ }
2024
+ const re = {
2025
+ NOT_FOUND_KEY: 1,
2026
+ FALLBACK_TO_TRANSLATE: 2,
2027
+ CANNOT_FORMAT_NUMBER: 3,
2028
+ FALLBACK_TO_NUMBER_FORMAT: 4,
2029
+ CANNOT_FORMAT_DATE: 5,
2030
+ FALLBACK_TO_DATE_FORMAT: 6,
2031
+ EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7
2032
+ }, Wo = 8, Go = {
2033
+ [re.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
2034
+ [re.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
2035
+ [re.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
2036
+ [re.FALLBACK_TO_NUMBER_FORMAT]: "Fall back to number format '{key}' key with '{target}' locale.",
2037
+ [re.CANNOT_FORMAT_DATE]: "Cannot format a date value due to not supported Intl.DateTimeFormat.",
2038
+ [re.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale.",
2039
+ [re.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."
2040
+ };
2041
+ function Ae(e, ...t) {
2042
+ return st(Go[e], ...t);
2043
+ }
2044
+ const Ho = "11.2.1", at = -1, tt = "en-US", nt = "", On = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
2045
+ function Yo() {
2046
+ return {
2047
+ upper: (e, t) => t === "text" && C(e) ? e.toUpperCase() : t === "vnode" && U(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
2048
+ lower: (e, t) => t === "text" && C(e) ? e.toLowerCase() : t === "vnode" && U(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
2049
+ capitalize: (e, t) => t === "text" && C(e) ? On(e) : t === "vnode" && U(e) && "__v_isVNode" in e ? On(e.children) : e
2050
+ };
2051
+ }
2052
+ let pr;
2053
+ function jo(e) {
2054
+ pr = e;
2055
+ }
2056
+ let gr;
2057
+ function xo(e) {
2058
+ gr = e;
2059
+ }
2060
+ let Nr;
2061
+ function Ko(e) {
2062
+ Nr = e;
2063
+ }
2064
+ let hr = null;
2065
+ const Bo = /* @__NO_SIDE_EFFECTS__ */ (e) => {
2066
+ hr = e;
2067
+ }, Xo = /* @__NO_SIDE_EFFECTS__ */ () => hr;
2068
+ let Tr = null;
2069
+ const Ln = (e) => {
2070
+ Tr = e;
2071
+ }, Jo = () => Tr;
2072
+ let bn = 0;
2073
+ function Qo(e = {}) {
2074
+ const t = H(e.onWarn) ? e.onWarn : de, n = C(e.version) ? e.version : Ho, r = C(e.locale) || H(e.locale) ? e.locale : tt, s = H(r) ? tt : r, o = K(e.fallbackLocale) || w(e.fallbackLocale) || C(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, a = w(e.messages) ? e.messages : bt(s), l = w(e.datetimeFormats) ? e.datetimeFormats : bt(s), u = w(e.numberFormats) ? e.numberFormats : bt(s), _ = Z(W(), e.modifiers, Yo()), h = e.pluralRules || W(), T = H(e.missing) ? e.missing : null, p = x(e.missingWarn) || et(e.missingWarn) ? e.missingWarn : !0, S = x(e.fallbackWarn) || et(e.fallbackWarn) ? e.fallbackWarn : !0, y = !!e.fallbackFormat, L = !!e.unresolving, A = H(e.postTranslation) ? e.postTranslation : null, f = w(e.processor) ? e.processor : null, E = x(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, v = !!e.escapeParameter, m = H(e.messageCompiler) ? e.messageCompiler : pr;
2075
+ process.env.NODE_ENV !== "production" && H(e.messageCompiler) && rr(Ae(re.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
2076
+ const b = H(e.messageResolver) ? e.messageResolver : gr || Vo, I = H(e.localeFallbacker) ? e.localeFallbacker : Nr || yo, g = U(e.fallbackContext) ? e.fallbackContext : void 0, k = e, M = U(k.__datetimeFormatters) ? k.__datetimeFormatters : /* @__PURE__ */ new Map(), G = U(k.__numberFormatters) ? k.__numberFormatters : /* @__PURE__ */ new Map(), q = U(k.__meta) ? k.__meta : {};
2077
+ bn++;
2078
+ const F = {
2079
+ version: n,
2080
+ cid: bn,
2081
+ locale: r,
2082
+ fallbackLocale: o,
2083
+ messages: a,
2084
+ modifiers: _,
2085
+ pluralRules: h,
2086
+ missing: T,
2087
+ missingWarn: p,
2088
+ fallbackWarn: S,
2089
+ fallbackFormat: y,
2090
+ unresolving: L,
2091
+ postTranslation: A,
2092
+ processor: f,
2093
+ warnHtmlMessage: E,
2094
+ escapeParameter: v,
2095
+ messageCompiler: m,
2096
+ messageResolver: b,
2097
+ localeFallbacker: I,
2098
+ fallbackContext: g,
2099
+ onWarn: t,
2100
+ __meta: q
2101
+ };
2102
+ return F.datetimeFormats = l, F.numberFormats = u, F.__datetimeFormatters = M, F.__numberFormatters = G, process.env.NODE_ENV !== "production" && (F.__v_emitter = k.__v_emitter != null ? k.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && bo(F, n, q), F;
2103
+ }
2104
+ const bt = (e) => ({ [e]: W() });
2105
+ function lt(e, t) {
2106
+ return e instanceof RegExp ? e.test(t) : e;
2107
+ }
2108
+ function vr(e, t) {
2109
+ return e instanceof RegExp ? e.test(t) : e;
2110
+ }
2111
+ function zt(e, t, n, r, s) {
2112
+ const { missing: o, onWarn: a } = e;
2113
+ if (process.env.NODE_ENV !== "production") {
2114
+ const l = e.__v_emitter;
2115
+ l && l.emit("missing", {
2116
+ locale: n,
2117
+ key: t,
2118
+ type: s,
2119
+ groupId: `${s}:${t}`
2120
+ });
2121
+ }
2122
+ if (o !== null) {
2123
+ const l = o(e, n, t, s);
2124
+ return C(l) ? l : t;
2125
+ } else
2126
+ return process.env.NODE_ENV !== "production" && vr(r, t) && a(Ae(re.NOT_FOUND_KEY, { key: t, locale: n })), t;
2127
+ }
2128
+ function $e(e, t, n) {
2129
+ const r = e;
2130
+ r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
2131
+ }
2132
+ function Or(e, t) {
2133
+ return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
2134
+ }
2135
+ function qo(e, t) {
2136
+ const n = t.indexOf(e);
2137
+ if (n === -1)
2138
+ return !1;
2139
+ for (let r = n + 1; r < t.length; r++)
2140
+ if (Or(e, t[r]))
2141
+ return !0;
2142
+ return !1;
2143
+ }
2144
+ const In = typeof Intl < "u", Lr = {
2145
+ dateTimeFormat: In && typeof Intl.DateTimeFormat < "u",
2146
+ numberFormat: In && typeof Intl.NumberFormat < "u"
2147
+ };
2148
+ function Sn(e, ...t) {
2149
+ const { datetimeFormats: n, unresolving: r, fallbackLocale: s, onWarn: o, localeFallbacker: a } = e, { __datetimeFormatters: l } = e;
2150
+ if (process.env.NODE_ENV !== "production" && !Lr.dateTimeFormat)
2151
+ return o(Ae(re.CANNOT_FORMAT_DATE)), nt;
2152
+ const [u, _, h, T] = Pt(...t), p = x(h.missingWarn) ? h.missingWarn : e.missingWarn, S = x(h.fallbackWarn) ? h.fallbackWarn : e.fallbackWarn, y = !!h.part, L = Zt(e, h), A = a(
2153
+ e,
2154
+ // eslint-disable-line @typescript-eslint/no-explicit-any
2155
+ s,
2156
+ L
2157
+ );
2158
+ if (!C(u) || u === "")
2159
+ return new Intl.DateTimeFormat(L, T).format(_);
2160
+ let f = {}, E, v = null, m = L, b = null;
2161
+ const I = "datetime format";
2162
+ for (let M = 0; M < A.length; M++) {
2163
+ if (E = b = A[M], process.env.NODE_ENV !== "production" && L !== E && lt(S, u) && o(Ae(re.FALLBACK_TO_DATE_FORMAT, {
2164
+ key: u,
2165
+ target: E
2166
+ })), process.env.NODE_ENV !== "production" && L !== E) {
2167
+ const G = e.__v_emitter;
2168
+ G && G.emit("fallback", {
2169
+ type: I,
2170
+ key: u,
2171
+ from: m,
2172
+ to: b,
2173
+ groupId: `${I}:${u}`
2174
+ });
2175
+ }
2176
+ if (f = n[E] || {}, v = f[u], w(v))
2177
+ break;
2178
+ zt(e, u, E, p, I), m = b;
2179
+ }
2180
+ if (!w(v) || !C(E))
2181
+ return r ? at : u;
2182
+ let g = `${E}__${u}`;
2183
+ ot(T) || (g = `${g}__${JSON.stringify(T)}`);
2184
+ let k = l.get(g);
2185
+ return k || (k = new Intl.DateTimeFormat(E, Z({}, v, T)), l.set(g, k)), y ? k.formatToParts(_) : k.format(_);
2186
+ }
2187
+ const br = [
2188
+ "localeMatcher",
2189
+ "weekday",
2190
+ "era",
2191
+ "year",
2192
+ "month",
2193
+ "day",
2194
+ "hour",
2195
+ "minute",
2196
+ "second",
2197
+ "timeZoneName",
2198
+ "formatMatcher",
2199
+ "hour12",
2200
+ "timeZone",
2201
+ "dateStyle",
2202
+ "timeStyle",
2203
+ "calendar",
2204
+ "dayPeriod",
2205
+ "numberingSystem",
2206
+ "hourCycle",
2207
+ "fractionalSecondDigits"
2208
+ ];
2209
+ function Pt(...e) {
2210
+ const [t, n, r, s] = e, o = W();
2211
+ let a = W(), l;
2212
+ if (C(t)) {
2213
+ const u = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
2214
+ if (!u)
2215
+ throw Ne(ee.INVALID_ISO_DATE_ARGUMENT);
2216
+ const _ = u[3] ? u[3].trim().startsWith("T") ? `${u[1].trim()}${u[3].trim()}` : `${u[1].trim()}T${u[3].trim()}` : u[1].trim();
2217
+ l = new Date(_);
2218
+ try {
2219
+ l.toISOString();
2220
+ } catch {
2221
+ throw Ne(ee.INVALID_ISO_DATE_ARGUMENT);
2222
+ }
2223
+ } else if (As(t)) {
2224
+ if (isNaN(t.getTime()))
2225
+ throw Ne(ee.INVALID_DATE_ARGUMENT);
2226
+ l = t;
2227
+ } else if (Q(t))
2228
+ l = t;
2229
+ else
2230
+ throw Ne(ee.INVALID_ARGUMENT);
2231
+ return C(n) ? o.key = n : w(n) && Object.keys(n).forEach((u) => {
2232
+ br.includes(u) ? a[u] = n[u] : o[u] = n[u];
2233
+ }), C(r) ? o.locale = r : w(r) && (a = r), w(s) && (a = s), [o.key || "", l, o, a];
2234
+ }
2235
+ function An(e, t, n) {
2236
+ const r = e;
2237
+ for (const s in n) {
2238
+ const o = `${t}__${s}`;
2239
+ r.__datetimeFormatters.has(o) && r.__datetimeFormatters.delete(o);
2240
+ }
2241
+ }
2242
+ function Cn(e, ...t) {
2243
+ const { numberFormats: n, unresolving: r, fallbackLocale: s, onWarn: o, localeFallbacker: a } = e, { __numberFormatters: l } = e;
2244
+ if (process.env.NODE_ENV !== "production" && !Lr.numberFormat)
2245
+ return o(Ae(re.CANNOT_FORMAT_NUMBER)), nt;
2246
+ const [u, _, h, T] = kt(...t), p = x(h.missingWarn) ? h.missingWarn : e.missingWarn, S = x(h.fallbackWarn) ? h.fallbackWarn : e.fallbackWarn, y = !!h.part, L = Zt(e, h), A = a(
2247
+ e,
2248
+ // eslint-disable-line @typescript-eslint/no-explicit-any
2249
+ s,
2250
+ L
2251
+ );
2252
+ if (!C(u) || u === "")
2253
+ return new Intl.NumberFormat(L, T).format(_);
2254
+ let f = {}, E, v = null, m = L, b = null;
2255
+ const I = "number format";
2256
+ for (let M = 0; M < A.length; M++) {
2257
+ if (E = b = A[M], process.env.NODE_ENV !== "production" && L !== E && lt(S, u) && o(Ae(re.FALLBACK_TO_NUMBER_FORMAT, {
2258
+ key: u,
2259
+ target: E
2260
+ })), process.env.NODE_ENV !== "production" && L !== E) {
2261
+ const G = e.__v_emitter;
2262
+ G && G.emit("fallback", {
2263
+ type: I,
2264
+ key: u,
2265
+ from: m,
2266
+ to: b,
2267
+ groupId: `${I}:${u}`
2268
+ });
2269
+ }
2270
+ if (f = n[E] || {}, v = f[u], w(v))
2271
+ break;
2272
+ zt(e, u, E, p, I), m = b;
2273
+ }
2274
+ if (!w(v) || !C(E))
2275
+ return r ? at : u;
2276
+ let g = `${E}__${u}`;
2277
+ ot(T) || (g = `${g}__${JSON.stringify(T)}`);
2278
+ let k = l.get(g);
2279
+ return k || (k = new Intl.NumberFormat(E, Z({}, v, T)), l.set(g, k)), y ? k.formatToParts(_) : k.format(_);
2280
+ }
2281
+ const Ir = [
2282
+ "localeMatcher",
2283
+ "style",
2284
+ "currency",
2285
+ "currencyDisplay",
2286
+ "currencySign",
2287
+ "useGrouping",
2288
+ "minimumIntegerDigits",
2289
+ "minimumFractionDigits",
2290
+ "maximumFractionDigits",
2291
+ "minimumSignificantDigits",
2292
+ "maximumSignificantDigits",
2293
+ "compactDisplay",
2294
+ "notation",
2295
+ "signDisplay",
2296
+ "unit",
2297
+ "unitDisplay",
2298
+ "roundingMode",
2299
+ "roundingPriority",
2300
+ "roundingIncrement",
2301
+ "trailingZeroDisplay"
2302
+ ];
2303
+ function kt(...e) {
2304
+ const [t, n, r, s] = e, o = W();
2305
+ let a = W();
2306
+ if (!Q(t))
2307
+ throw Ne(ee.INVALID_ARGUMENT);
2308
+ const l = t;
2309
+ return C(n) ? o.key = n : w(n) && Object.keys(n).forEach((u) => {
2310
+ Ir.includes(u) ? a[u] = n[u] : o[u] = n[u];
2311
+ }), C(r) ? o.locale = r : w(r) && (a = r), w(s) && (a = s), [o.key || "", l, o, a];
2312
+ }
2313
+ function yn(e, t, n) {
2314
+ const r = e;
2315
+ for (const s in n) {
2316
+ const o = `${t}__${s}`;
2317
+ r.__numberFormatters.has(o) && r.__numberFormatters.delete(o);
2318
+ }
2319
+ }
2320
+ const Zo = (e) => e, zo = (e) => "", ea = "text", ta = (e) => e.length === 0 ? "" : Jt(e), na = ks;
2321
+ function Dn(e, t) {
2322
+ return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
2323
+ }
2324
+ function ra(e) {
2325
+ const t = Q(e.pluralIndex) ? e.pluralIndex : -1;
2326
+ return e.named && (Q(e.named.count) || Q(e.named.n)) ? Q(e.named.count) ? e.named.count : Q(e.named.n) ? e.named.n : t : t;
2327
+ }
2328
+ function sa(e, t) {
2329
+ t.count || (t.count = e), t.n || (t.n = e);
2330
+ }
2331
+ function oa(e = {}) {
2332
+ const t = e.locale, n = ra(e), r = U(e.pluralRules) && C(t) && H(e.pluralRules[t]) ? e.pluralRules[t] : Dn, s = U(e.pluralRules) && C(t) && H(e.pluralRules[t]) ? Dn : void 0, o = (f) => f[r(n, f.length, s)], a = e.list || [], l = (f) => a[f], u = e.named || W();
2333
+ Q(e.pluralIndex) && sa(n, u);
2334
+ const _ = (f) => u[f];
2335
+ function h(f, E) {
2336
+ const v = H(e.messages) ? e.messages(f, !!E) : U(e.messages) ? e.messages[f] : !1;
2337
+ return v || (e.parent ? e.parent.message(f) : zo);
2338
+ }
2339
+ const T = (f) => e.modifiers ? e.modifiers[f] : Zo, p = w(e.processor) && H(e.processor.normalize) ? e.processor.normalize : ta, S = w(e.processor) && H(e.processor.interpolate) ? e.processor.interpolate : na, y = w(e.processor) && C(e.processor.type) ? e.processor.type : ea, A = {
2340
+ list: l,
2341
+ named: _,
2342
+ plural: o,
2343
+ linked: (f, ...E) => {
2344
+ const [v, m] = E;
2345
+ let b = "text", I = "";
2346
+ E.length === 1 ? U(v) ? (I = v.modifier || I, b = v.type || b) : C(v) && (I = v || I) : E.length === 2 && (C(v) && (I = v || I), C(m) && (b = m || b));
2347
+ const g = h(f, !0)(A), k = (
2348
+ // The message in vnode resolved with linked are returned as an array by processor.nomalize
2349
+ b === "vnode" && K(g) && I ? g[0] : g
2350
+ );
2351
+ return I ? T(I)(k, b) : k;
2352
+ },
2353
+ message: h,
2354
+ type: y,
2355
+ interpolate: S,
2356
+ normalize: p,
2357
+ values: Z(W(), a, u)
2358
+ };
2359
+ return A;
2360
+ }
2361
+ const Pn = () => "", ae = (e) => H(e);
2362
+ function kn(e, ...t) {
2363
+ const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: o, fallbackLocale: a, messages: l } = e, [u, _] = Rt(...t), h = x(_.missingWarn) ? _.missingWarn : e.missingWarn, T = x(_.fallbackWarn) ? _.fallbackWarn : e.fallbackWarn, p = x(_.escapeParameter) ? _.escapeParameter : e.escapeParameter, S = !!_.resolvedMessage, y = C(_.default) || x(_.default) ? x(_.default) ? o ? u : () => u : _.default : n ? o ? u : () => u : null, L = n || y != null && (C(y) || H(y)), A = Zt(e, _);
2364
+ p && aa(_);
2365
+ let [f, E, v] = S ? [
2366
+ u,
2367
+ A,
2368
+ l[A] || W()
2369
+ ] : Sr(e, u, A, a, T, h), m = f, b = u;
2370
+ if (!S && !(C(m) || le(m) || ae(m)) && L && (m = y, b = m), !S && (!(C(m) || le(m) || ae(m)) || !C(E)))
2371
+ return s ? at : u;
2372
+ if (process.env.NODE_ENV !== "production" && C(m) && e.messageCompiler == null)
2373
+ return de(`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 '${u}'.`), u;
2374
+ let I = !1;
2375
+ const g = () => {
2376
+ I = !0;
2377
+ }, k = ae(m) ? m : Ar(e, u, E, m, b, g);
2378
+ if (I)
2379
+ return m;
2380
+ const M = ua(e, E, v, _), G = oa(M), q = la(e, k, G);
2381
+ let F = r ? r(q, u) : q;
2382
+ if (p && C(F) && (F = ys(F)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
2383
+ const ne = {
2384
+ timestamp: Date.now(),
2385
+ key: C(u) ? u : ae(m) ? m.key : "",
2386
+ locale: E || (ae(m) ? m.locale : ""),
2387
+ format: C(m) ? m : ae(m) ? m.source : "",
2388
+ message: F
2389
+ };
2390
+ ne.meta = Z({}, e.__meta, /* @__PURE__ */ Xo() || {}), Io(ne);
2391
+ }
2392
+ return F;
2393
+ }
2394
+ function aa(e) {
2395
+ K(e.list) ? e.list = e.list.map((t) => C(t) ? _n(t) : t) : U(e.named) && Object.keys(e.named).forEach((t) => {
2396
+ C(e.named[t]) && (e.named[t] = _n(e.named[t]));
2397
+ });
2398
+ }
2399
+ function Sr(e, t, n, r, s, o) {
2400
+ const { messages: a, onWarn: l, messageResolver: u, localeFallbacker: _ } = e, h = _(e, r, n);
2401
+ let T = W(), p, S = null, y = n, L = null;
2402
+ const A = "translate";
2403
+ for (let f = 0; f < h.length; f++) {
2404
+ if (p = L = h[f], process.env.NODE_ENV !== "production" && n !== p && !Or(n, p) && lt(s, t) && l(Ae(re.FALLBACK_TO_TRANSLATE, {
2405
+ key: t,
2406
+ target: p
2407
+ })), process.env.NODE_ENV !== "production" && n !== p) {
2408
+ const b = e.__v_emitter;
2409
+ b && b.emit("fallback", {
2410
+ type: A,
2411
+ key: t,
2412
+ from: y,
2413
+ to: L,
2414
+ groupId: `${A}:${t}`
2415
+ });
2416
+ }
2417
+ T = a[p] || W();
2418
+ let E = null, v, m;
2419
+ if (process.env.NODE_ENV !== "production" && fe && (E = window.performance.now(), v = "intlify-message-resolve-start", m = "intlify-message-resolve-end", oe && oe(v)), (S = u(T, t)) === null && (S = T[t]), process.env.NODE_ENV !== "production" && fe) {
2420
+ const b = window.performance.now(), I = e.__v_emitter;
2421
+ I && E && S && I.emit("message-resolve", {
2422
+ type: "message-resolve",
2423
+ key: t,
2424
+ message: S,
2425
+ time: b - E,
2426
+ groupId: `${A}:${t}`
2427
+ }), v && m && oe && Se && (oe(m), Se("intlify message resolve", v, m));
2428
+ }
2429
+ if (C(S) || le(S) || ae(S))
2430
+ break;
2431
+ if (!qo(p, h)) {
2432
+ const b = zt(
2433
+ e,
2434
+ // eslint-disable-line @typescript-eslint/no-explicit-any
2435
+ t,
2436
+ p,
2437
+ o,
2438
+ A
2439
+ );
2440
+ b !== t && (S = b);
2441
+ }
2442
+ y = L;
2443
+ }
2444
+ return [S, p, T];
2445
+ }
2446
+ function Ar(e, t, n, r, s, o) {
2447
+ const { messageCompiler: a, warnHtmlMessage: l } = e;
2448
+ if (ae(r)) {
2449
+ const p = r;
2450
+ return p.locale = p.locale || n, p.key = p.key || t, p;
2451
+ }
2452
+ if (a == null) {
2453
+ const p = (() => r);
2454
+ return p.locale = n, p.key = t, p;
2455
+ }
2456
+ let u = null, _, h;
2457
+ process.env.NODE_ENV !== "production" && fe && (u = window.performance.now(), _ = "intlify-message-compilation-start", h = "intlify-message-compilation-end", oe && oe(_));
2458
+ const T = a(r, ia(e, n, s, r, l, o));
2459
+ if (process.env.NODE_ENV !== "production" && fe) {
2460
+ const p = window.performance.now(), S = e.__v_emitter;
2461
+ S && u && S.emit("message-compilation", {
2462
+ type: "message-compilation",
2463
+ message: r,
2464
+ time: p - u,
2465
+ groupId: `translate:${t}`
2466
+ }), _ && h && oe && Se && (oe(h), Se("intlify message compilation", _, h));
2467
+ }
2468
+ return T.locale = n, T.key = t, T.source = r, T;
2469
+ }
2470
+ function la(e, t, n) {
2471
+ let r = null, s, o;
2472
+ process.env.NODE_ENV !== "production" && fe && (r = window.performance.now(), s = "intlify-message-evaluation-start", o = "intlify-message-evaluation-end", oe && oe(s));
2473
+ const a = t(n);
2474
+ if (process.env.NODE_ENV !== "production" && fe) {
2475
+ const l = window.performance.now(), u = e.__v_emitter;
2476
+ u && r && u.emit("message-evaluation", {
2477
+ type: "message-evaluation",
2478
+ value: a,
2479
+ time: l - r,
2480
+ groupId: `translate:${t.key}`
2481
+ }), s && o && oe && Se && (oe(o), Se("intlify message evaluation", s, o));
2482
+ }
2483
+ return a;
2484
+ }
2485
+ function Rt(...e) {
2486
+ const [t, n, r] = e, s = W();
2487
+ if (!C(t) && !Q(t) && !ae(t) && !le(t))
2488
+ throw Ne(ee.INVALID_ARGUMENT);
2489
+ const o = Q(t) ? String(t) : (ae(t), t);
2490
+ return Q(n) ? s.plural = n : C(n) ? s.default = n : w(n) && !ot(n) ? s.named = n : K(n) && (s.list = n), Q(r) ? s.plural = r : C(r) ? s.default = r : w(r) && Z(s, r), [o, s];
2491
+ }
2492
+ function ia(e, t, n, r, s, o) {
2493
+ return {
2494
+ locale: t,
2495
+ key: n,
2496
+ warnHtmlMessage: s,
2497
+ onError: (a) => {
2498
+ if (o && o(a), process.env.NODE_ENV !== "production") {
2499
+ const l = ca(r), u = `Message compilation error: ${a.message}`, _ = a.location && l && Rs(l, a.location.start.offset, a.location.end.offset), h = e.__v_emitter;
2500
+ h && l && h.emit("compile-error", {
2501
+ message: l,
2502
+ error: a.message,
2503
+ start: a.location && a.location.start.offset,
2504
+ end: a.location && a.location.end.offset,
2505
+ groupId: `translate:${n}`
2506
+ }), console.error(_ ? `${u}
2507
+ ${_}` : u);
2508
+ } else
2509
+ throw a;
2510
+ },
2511
+ onCacheKey: (a) => Is(t, n, a)
2512
+ };
2513
+ }
2514
+ function ca(e) {
2515
+ if (C(e))
2516
+ return e;
2517
+ if (e.loc && e.loc.source)
2518
+ return e.loc.source;
2519
+ }
2520
+ function ua(e, t, n, r) {
2521
+ const { modifiers: s, pluralRules: o, messageResolver: a, fallbackLocale: l, fallbackWarn: u, missingWarn: _, fallbackContext: h } = e, p = {
2522
+ locale: t,
2523
+ modifiers: s,
2524
+ pluralRules: o,
2525
+ messages: (S, y) => {
2526
+ let L = a(n, S);
2527
+ if (L == null && (h || y)) {
2528
+ const [, , A] = Sr(
2529
+ h || e,
2530
+ // NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
2531
+ S,
2532
+ t,
2533
+ l,
2534
+ u,
2535
+ _
2536
+ );
2537
+ L = a(A, S);
2538
+ }
2539
+ if (C(L) || le(L)) {
2540
+ let A = !1;
2541
+ const E = Ar(e, S, t, L, S, () => {
2542
+ A = !0;
2543
+ });
2544
+ return A ? Pn : E;
2545
+ } else return ae(L) ? L : Pn;
2546
+ }
2547
+ };
2548
+ return e.processor && (p.processor = e.processor), r.list && (p.list = r.list), r.named && (p.named = r.named), Q(r.plural) && (p.pluralIndex = r.plural), p;
2549
+ }
2550
+ co();
2551
+ function fa() {
2552
+ return Cr().__VUE_DEVTOOLS_GLOBAL_HOOK__;
2553
+ }
2554
+ function Cr() {
2555
+ return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
2556
+ }
2557
+ const _a = typeof Proxy == "function", ma = "devtools-plugin:setup", da = "plugin:settings:set";
2558
+ let ye, Mt;
2559
+ function Ea() {
2560
+ var e;
2561
+ return ye !== void 0 || (typeof window < "u" && window.performance ? (ye = !0, Mt = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (ye = !0, Mt = globalThis.perf_hooks.performance) : ye = !1), ye;
2562
+ }
2563
+ function pa() {
2564
+ return Ea() ? Mt.now() : Date.now();
2565
+ }
2566
+ class ga {
2567
+ constructor(t, n) {
2568
+ this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
2569
+ const r = {};
2570
+ if (t.settings)
2571
+ for (const a in t.settings) {
2572
+ const l = t.settings[a];
2573
+ r[a] = l.defaultValue;
2574
+ }
2575
+ const s = `__vue-devtools-plugin-settings__${t.id}`;
2576
+ let o = Object.assign({}, r);
2577
+ try {
2578
+ const a = localStorage.getItem(s), l = JSON.parse(a);
2579
+ Object.assign(o, l);
2580
+ } catch {
2581
+ }
2582
+ this.fallbacks = {
2583
+ getSettings() {
2584
+ return o;
2585
+ },
2586
+ setSettings(a) {
2587
+ try {
2588
+ localStorage.setItem(s, JSON.stringify(a));
2589
+ } catch {
2590
+ }
2591
+ o = a;
2592
+ },
2593
+ now() {
2594
+ return pa();
2595
+ }
2596
+ }, n && n.on(da, (a, l) => {
2597
+ a === this.plugin.id && this.fallbacks.setSettings(l);
2598
+ }), this.proxiedOn = new Proxy({}, {
2599
+ get: (a, l) => this.target ? this.target.on[l] : (...u) => {
2600
+ this.onQueue.push({
2601
+ method: l,
2602
+ args: u
2603
+ });
2604
+ }
2605
+ }), this.proxiedTarget = new Proxy({}, {
2606
+ get: (a, l) => this.target ? this.target[l] : l === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(l) ? (...u) => (this.targetQueue.push({
2607
+ method: l,
2608
+ args: u,
2609
+ resolve: () => {
2610
+ }
2611
+ }), this.fallbacks[l](...u)) : (...u) => new Promise((_) => {
2612
+ this.targetQueue.push({
2613
+ method: l,
2614
+ args: u,
2615
+ resolve: _
2616
+ });
2617
+ })
2618
+ });
2619
+ }
2620
+ async setRealTarget(t) {
2621
+ this.target = t;
2622
+ for (const n of this.onQueue)
2623
+ this.target.on[n.method](...n.args);
2624
+ for (const n of this.targetQueue)
2625
+ n.resolve(await this.target[n.method](...n.args));
2626
+ }
2627
+ }
2628
+ function Na(e, t) {
2629
+ const n = e, r = Cr(), s = fa(), o = _a && n.enableEarlyProxy;
2630
+ if (s && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !o))
2631
+ s.emit(ma, e, t);
2632
+ else {
2633
+ const a = o ? new ga(n, s) : null;
2634
+ (r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
2635
+ pluginDescriptor: n,
2636
+ setupFn: t,
2637
+ proxy: a
2638
+ }), a && t(a.proxiedTarget);
2639
+ }
2640
+ }
2641
+ const ha = "11.2.1";
2642
+ function Ta() {
2643
+ typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Bt().__INTLIFY_PROD_DEVTOOLS__ = !1);
2644
+ }
2645
+ const j = {
2646
+ // composer module errors
2647
+ UNEXPECTED_RETURN_TYPE: Ao,
2648
+ // 24
2649
+ // legacy module errors
2650
+ INVALID_ARGUMENT: 25,
2651
+ // i18n module errors
2652
+ MUST_BE_CALL_SETUP_TOP: 26,
2653
+ NOT_INSTALLED: 27,
2654
+ // directive module errors
2655
+ REQUIRED_VALUE: 28,
2656
+ INVALID_VALUE: 29,
2657
+ // vue-devtools errors
2658
+ CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN: 30,
2659
+ NOT_INSTALLED_WITH_PROVIDE: 31,
2660
+ // unexpected error
2661
+ UNEXPECTED_ERROR: 32,
2662
+ // not compatible legacy vue-i18n constructor
2663
+ NOT_COMPATIBLE_LEGACY_VUE_I18N: 33,
2664
+ // Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly
2665
+ NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
2666
+ };
2667
+ function ie(e, ...t) {
2668
+ return Me(e, null, process.env.NODE_ENV !== "production" ? { messages: va, args: t } : void 0);
2669
+ }
2670
+ const va = {
2671
+ [j.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
2672
+ [j.INVALID_ARGUMENT]: "Invalid argument",
2673
+ [j.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
2674
+ [j.NOT_INSTALLED]: "Need to install with `app.use` function",
2675
+ [j.UNEXPECTED_ERROR]: "Unexpected error",
2676
+ [j.REQUIRED_VALUE]: "Required in value: {0}",
2677
+ [j.INVALID_VALUE]: "Invalid value",
2678
+ [j.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]: "Cannot setup vue-devtools plugin",
2679
+ [j.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
2680
+ [j.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
2681
+ [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"
2682
+ }, wt = /* @__PURE__ */ Ee("__translateVNode"), Ft = /* @__PURE__ */ Ee("__datetimeParts"), Ut = /* @__PURE__ */ Ee("__numberParts"), He = /* @__PURE__ */ Ee("__enableEmitter"), Vt = /* @__PURE__ */ Ee("__disableEmitter"), Oa = Ee("__setPluralRules"), La = /* @__PURE__ */ Ee("__injectWithOption"), $t = /* @__PURE__ */ Ee("__dispose"), ce = {
2683
+ FALLBACK_TO_ROOT: Wo,
2684
+ // 8
2685
+ NOT_FOUND_PARENT_SCOPE: 9,
2686
+ IGNORE_OBJ_FLATTEN: 10,
2687
+ /**
2688
+ * @deprecated will be removed at vue-i18n v12
2689
+ */
2690
+ DEPRECATE_LEGACY_MODE: 11,
2691
+ /**
2692
+ * @deprecated will be removed at vue-i18n v12
2693
+ */
2694
+ DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 12,
2695
+ // duplicate `useI18n` calling
2696
+ DUPLICATE_USE_I18N_CALLING: 13
2697
+ }, ba = {
2698
+ [ce.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
2699
+ [ce.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
2700
+ [ce.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
2701
+ /**
2702
+ * @deprecated will be removed at vue-i18n v12
2703
+ */
2704
+ [ce.DEPRECATE_LEGACY_MODE]: `Legacy API mode has been deprecated in v11. Use Composition API mode instead.
2705
+ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,
2706
+ /**
2707
+ * @deprecated will be removed at vue-i18n v12
2708
+ */
2709
+ [ce.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]: "'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",
2710
+ [ce.DUPLICATE_USE_I18N_CALLING]: "Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."
2711
+ };
2712
+ function Ye(e, ...t) {
2713
+ return st(ba[e], ...t);
2714
+ }
2715
+ function je(e) {
2716
+ if (!U(e) || le(e))
2717
+ return e;
2718
+ for (const t in e)
2719
+ if (ue(e, t))
2720
+ if (!t.includes("."))
2721
+ U(e[t]) && je(e[t]);
2722
+ else {
2723
+ const n = t.split("."), r = n.length - 1;
2724
+ let s = e, o = !1;
2725
+ for (let a = 0; a < r; a++) {
2726
+ if (n[a] === "__proto__")
2727
+ throw new Error(`unsafe key: ${n[a]}`);
2728
+ if (n[a] in s || (s[n[a]] = W()), !U(s[n[a]])) {
2729
+ process.env.NODE_ENV !== "production" && de(Ye(ce.IGNORE_OBJ_FLATTEN, {
2730
+ key: n[a]
2731
+ })), o = !0;
2732
+ break;
2733
+ }
2734
+ s = s[n[a]];
2735
+ }
2736
+ if (o || (le(s) ? dr.includes(n[r]) || delete e[t] : (s[n[r]] = e[t], delete e[t])), !le(s)) {
2737
+ const a = s[n[r]];
2738
+ U(a) && je(a);
2739
+ }
2740
+ }
2741
+ return e;
2742
+ }
2743
+ function yr(e, t) {
2744
+ const { messages: n, __i18n: r, messageResolver: s, flatJson: o } = t, a = w(n) ? n : K(r) ? W() : { [e]: W() };
2745
+ if (K(r) && r.forEach((l) => {
2746
+ if ("locale" in l && "resource" in l) {
2747
+ const { locale: u, resource: _ } = l;
2748
+ u ? (a[u] = a[u] || W(), ze(_, a[u])) : ze(_, a);
2749
+ } else
2750
+ C(l) && ze(JSON.parse(l), a);
2751
+ }), s == null && o)
2752
+ for (const l in a)
2753
+ ue(a, l) && je(a[l]);
2754
+ return a;
2755
+ }
2756
+ function Dr(e) {
2757
+ return e.type;
2758
+ }
2759
+ function Ia(e, t, n) {
2760
+ let r = U(t.messages) ? t.messages : W();
2761
+ "__i18nGlobal" in n && (r = yr(e.locale.value, {
2762
+ messages: r,
2763
+ __i18n: n.__i18nGlobal
2764
+ }));
2765
+ const s = Object.keys(r);
2766
+ s.length && s.forEach((o) => {
2767
+ e.mergeLocaleMessage(o, r[o]);
2768
+ });
2769
+ {
2770
+ if (U(t.datetimeFormats)) {
2771
+ const o = Object.keys(t.datetimeFormats);
2772
+ o.length && o.forEach((a) => {
2773
+ e.mergeDateTimeFormat(a, t.datetimeFormats[a]);
2774
+ });
2775
+ }
2776
+ if (U(t.numberFormats)) {
2777
+ const o = Object.keys(t.numberFormats);
2778
+ o.length && o.forEach((a) => {
2779
+ e.mergeNumberFormat(a, t.numberFormats[a]);
2780
+ });
2781
+ }
2782
+ }
2783
+ }
2784
+ function Rn(e) {
2785
+ return Br(Xr, null, e, 0);
2786
+ }
2787
+ function en() {
2788
+ return an.currentInstance || an.getCurrentInstance();
2789
+ }
2790
+ const Mn = "__INTLIFY_META__", wn = () => [], Sa = () => !1;
2791
+ let Fn = 0;
2792
+ function Un(e) {
2793
+ return ((t, n, r, s) => e(n, r, en() || void 0, s));
2794
+ }
2795
+ const Aa = /* @__NO_SIDE_EFFECTS__ */ () => {
2796
+ const e = en();
2797
+ let t = null;
2798
+ return e && (t = Dr(e)[Mn]) ? { [Mn]: t } : null;
2799
+ };
2800
+ function Pr(e = {}) {
2801
+ const { __root: t, __injectWithOption: n } = e, r = t === void 0, s = e.flatJson, o = fe ? rt : Pe;
2802
+ let a = x(e.inheritLocale) ? e.inheritLocale : !0;
2803
+ const l = o(
2804
+ // prettier-ignore
2805
+ t && a ? t.locale.value : C(e.locale) ? e.locale : tt
2806
+ ), u = o(
2807
+ // prettier-ignore
2808
+ t && a ? t.fallbackLocale.value : C(e.fallbackLocale) || K(e.fallbackLocale) || w(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l.value
2809
+ ), _ = o(yr(l.value, e)), h = o(w(e.datetimeFormats) ? e.datetimeFormats : { [l.value]: {} }), T = o(w(e.numberFormats) ? e.numberFormats : { [l.value]: {} });
2810
+ let p = t ? t.missingWarn : x(e.missingWarn) || et(e.missingWarn) ? e.missingWarn : !0, S = t ? t.fallbackWarn : x(e.fallbackWarn) || et(e.fallbackWarn) ? e.fallbackWarn : !0, y = t ? t.fallbackRoot : x(e.fallbackRoot) ? e.fallbackRoot : !0, L = !!e.fallbackFormat, A = H(e.missing) ? e.missing : null, f = H(e.missing) ? Un(e.missing) : null, E = H(e.postTranslation) ? e.postTranslation : null, v = t ? t.warnHtmlMessage : x(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, m = !!e.escapeParameter;
2811
+ const b = t ? t.modifiers : w(e.modifiers) ? e.modifiers : {};
2812
+ let I = e.pluralRules || t && t.pluralRules, g;
2813
+ g = (() => {
2814
+ r && Ln(null);
2815
+ const d = {
2816
+ version: ha,
2817
+ locale: l.value,
2818
+ fallbackLocale: u.value,
2819
+ messages: _.value,
2820
+ modifiers: b,
2821
+ pluralRules: I,
2822
+ missing: f === null ? void 0 : f,
2823
+ missingWarn: p,
2824
+ fallbackWarn: S,
2825
+ fallbackFormat: L,
2826
+ unresolving: !0,
2827
+ postTranslation: E === null ? void 0 : E,
2828
+ warnHtmlMessage: v,
2829
+ escapeParameter: m,
2830
+ messageResolver: e.messageResolver,
2831
+ messageCompiler: e.messageCompiler,
2832
+ __meta: { framework: "vue" }
2833
+ };
2834
+ d.datetimeFormats = h.value, d.numberFormats = T.value, d.__datetimeFormatters = w(g) ? g.__datetimeFormatters : void 0, d.__numberFormatters = w(g) ? g.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (d.__v_emitter = w(g) ? g.__v_emitter : void 0);
2835
+ const O = Qo(d);
2836
+ return r && Ln(O), O;
2837
+ })(), $e(g, l.value, u.value);
2838
+ function M() {
2839
+ return [
2840
+ l.value,
2841
+ u.value,
2842
+ _.value,
2843
+ h.value,
2844
+ T.value
2845
+ ];
2846
+ }
2847
+ const G = se({
2848
+ get: () => l.value,
2849
+ set: (d) => {
2850
+ g.locale = d, l.value = d;
2851
+ }
2852
+ }), q = se({
2853
+ get: () => u.value,
2854
+ set: (d) => {
2855
+ g.fallbackLocale = d, u.value = d, $e(g, l.value, d);
2856
+ }
2857
+ }), F = se(() => _.value), ne = /* @__PURE__ */ se(() => h.value), R = /* @__PURE__ */ se(() => T.value);
2858
+ function B() {
2859
+ return H(E) ? E : null;
2860
+ }
2861
+ function te(d) {
2862
+ E = d, g.postTranslation = d;
2863
+ }
2864
+ function it() {
2865
+ return A;
2866
+ }
2867
+ function ct(d) {
2868
+ d !== null && (f = Un(d)), A = d, g.missing = f;
2869
+ }
2870
+ function ut(d, O) {
2871
+ return d !== "translate" || !O.resolvedMessage;
2872
+ }
2873
+ const pe = (d, O, $, J, Le, Be) => {
2874
+ M();
2875
+ let Ce;
2876
+ try {
2877
+ process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (g.fallbackContext = t ? Jo() : void 0), Ce = d(g);
2878
+ } finally {
2879
+ process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (g.fallbackContext = void 0);
2880
+ }
2881
+ if ($ !== "translate exists" && // for not `te` (e.g `t`)
2882
+ Q(Ce) && Ce === at || $ === "translate exists" && !Ce) {
2883
+ const [be, Ur] = O();
2884
+ if (process.env.NODE_ENV !== "production" && t && C(be) && ut($, Ur) && (y && (lt(S, be) || vr(p, be)) && de(Ye(ce.FALLBACK_TO_ROOT, {
2885
+ key: be,
2886
+ type: $
2887
+ })), process.env.NODE_ENV !== "production")) {
2888
+ const { __v_emitter: on } = g;
2889
+ on && y && on.emit("fallback", {
2890
+ type: $,
2891
+ key: be,
2892
+ to: "global",
2893
+ groupId: `${$}:${be}`
2894
+ });
2895
+ }
2896
+ return t && y ? J(t) : Le(be);
2897
+ } else {
2898
+ if (Be(Ce))
2899
+ return Ce;
2900
+ throw ie(j.UNEXPECTED_RETURN_TYPE);
2901
+ }
2902
+ };
2903
+ function we(...d) {
2904
+ return pe((O) => Reflect.apply(kn, null, [O, ...d]), () => Rt(...d), "translate", (O) => Reflect.apply(O.t, O, [...d]), (O) => O, (O) => C(O));
2905
+ }
2906
+ function ft(...d) {
2907
+ const [O, $, J] = d;
2908
+ if (J && !U(J))
2909
+ throw ie(j.INVALID_ARGUMENT);
2910
+ return we(O, $, Z({ resolvedMessage: !0 }, J || {}));
2911
+ }
2912
+ function _t(...d) {
2913
+ return pe((O) => Reflect.apply(Sn, null, [O, ...d]), () => Pt(...d), "datetime format", (O) => Reflect.apply(O.d, O, [...d]), () => nt, (O) => C(O) || K(O));
2914
+ }
2915
+ function mt(...d) {
2916
+ return pe((O) => Reflect.apply(Cn, null, [O, ...d]), () => kt(...d), "number format", (O) => Reflect.apply(O.n, O, [...d]), () => nt, (O) => C(O) || K(O));
2917
+ }
2918
+ function dt(d) {
2919
+ return d.map((O) => C(O) || Q(O) || x(O) ? Rn(String(O)) : O);
2920
+ }
2921
+ const Et = {
2922
+ normalize: dt,
2923
+ interpolate: (d) => d,
2924
+ type: "vnode"
2925
+ };
2926
+ function xe(...d) {
2927
+ return pe((O) => {
2928
+ let $;
2929
+ const J = O;
2930
+ try {
2931
+ J.processor = Et, $ = Reflect.apply(kn, null, [J, ...d]);
2932
+ } finally {
2933
+ J.processor = null;
2934
+ }
2935
+ return $;
2936
+ }, () => Rt(...d), "translate", (O) => O[wt](...d), (O) => [Rn(O)], (O) => K(O));
2937
+ }
2938
+ function pt(...d) {
2939
+ return pe((O) => Reflect.apply(Cn, null, [O, ...d]), () => kt(...d), "number format", (O) => O[Ut](...d), wn, (O) => C(O) || K(O));
2940
+ }
2941
+ function Ke(...d) {
2942
+ return pe((O) => Reflect.apply(Sn, null, [O, ...d]), () => Pt(...d), "datetime format", (O) => O[Ft](...d), wn, (O) => C(O) || K(O));
2943
+ }
2944
+ function gt(d) {
2945
+ I = d, g.pluralRules = I;
2946
+ }
2947
+ function Nt(d, O) {
2948
+ return pe(() => {
2949
+ if (!d)
2950
+ return !1;
2951
+ const $ = C(O) ? O : l.value, J = Oe($), Le = g.messageResolver(J, d);
2952
+ return le(Le) || ae(Le) || C(Le);
2953
+ }, () => [d], "translate exists", ($) => Reflect.apply($.te, $, [d, O]), Sa, ($) => x($));
2954
+ }
2955
+ function Fe(d) {
2956
+ let O = null;
2957
+ const $ = Er(g, u.value, l.value);
2958
+ for (let J = 0; J < $.length; J++) {
2959
+ const Le = _.value[$[J]] || {}, Be = g.messageResolver(Le, d);
2960
+ if (Be != null) {
2961
+ O = Be;
2962
+ break;
2963
+ }
2964
+ }
2965
+ return O;
2966
+ }
2967
+ function Ue(d) {
2968
+ const O = Fe(d);
2969
+ return O ?? (t ? t.tm(d) || {} : {});
2970
+ }
2971
+ function Oe(d) {
2972
+ return _.value[d] || {};
2973
+ }
2974
+ function Ve(d, O) {
2975
+ if (s) {
2976
+ const $ = { [d]: O };
2977
+ for (const J in $)
2978
+ ue($, J) && je($[J]);
2979
+ O = $[d];
2980
+ }
2981
+ _.value[d] = O, g.messages = _.value;
2982
+ }
2983
+ function ht(d, O) {
2984
+ _.value[d] = _.value[d] || {};
2985
+ const $ = { [d]: O };
2986
+ if (s)
2987
+ for (const J in $)
2988
+ ue($, J) && je($[J]);
2989
+ O = $[d], ze(O, _.value[d]), g.messages = _.value;
2990
+ }
2991
+ function i(d) {
2992
+ return h.value[d] || {};
2993
+ }
2994
+ function c(d, O) {
2995
+ h.value[d] = O, g.datetimeFormats = h.value, An(g, d, O);
2996
+ }
2997
+ function N(d, O) {
2998
+ h.value[d] = Z(h.value[d] || {}, O), g.datetimeFormats = h.value, An(g, d, O);
2999
+ }
3000
+ function D(d) {
3001
+ return T.value[d] || {};
3002
+ }
3003
+ function Y(d, O) {
3004
+ T.value[d] = O, g.numberFormats = T.value, yn(g, d, O);
3005
+ }
3006
+ function X(d, O) {
3007
+ T.value[d] = Z(T.value[d] || {}, O), g.numberFormats = T.value, yn(g, d, O);
3008
+ }
3009
+ Fn++, t && fe && (Ie(t.locale, (d) => {
3010
+ a && (l.value = d, g.locale = d, $e(g, l.value, u.value));
3011
+ }), Ie(t.fallbackLocale, (d) => {
3012
+ a && (u.value = d, g.fallbackLocale = d, $e(g, l.value, u.value));
3013
+ }));
3014
+ const V = {
3015
+ id: Fn,
3016
+ locale: G,
3017
+ fallbackLocale: q,
3018
+ get inheritLocale() {
3019
+ return a;
3020
+ },
3021
+ set inheritLocale(d) {
3022
+ a = d, d && t && (l.value = t.locale.value, u.value = t.fallbackLocale.value, $e(g, l.value, u.value));
3023
+ },
3024
+ get availableLocales() {
3025
+ return Object.keys(_.value).sort();
3026
+ },
3027
+ messages: F,
3028
+ get modifiers() {
3029
+ return b;
3030
+ },
3031
+ get pluralRules() {
3032
+ return I || {};
3033
+ },
3034
+ get isGlobal() {
3035
+ return r;
3036
+ },
3037
+ get missingWarn() {
3038
+ return p;
3039
+ },
3040
+ set missingWarn(d) {
3041
+ p = d, g.missingWarn = p;
3042
+ },
3043
+ get fallbackWarn() {
3044
+ return S;
3045
+ },
3046
+ set fallbackWarn(d) {
3047
+ S = d, g.fallbackWarn = S;
3048
+ },
3049
+ get fallbackRoot() {
3050
+ return y;
3051
+ },
3052
+ set fallbackRoot(d) {
3053
+ y = d;
3054
+ },
3055
+ get fallbackFormat() {
3056
+ return L;
3057
+ },
3058
+ set fallbackFormat(d) {
3059
+ L = d, g.fallbackFormat = L;
3060
+ },
3061
+ get warnHtmlMessage() {
3062
+ return v;
3063
+ },
3064
+ set warnHtmlMessage(d) {
3065
+ v = d, g.warnHtmlMessage = d;
3066
+ },
3067
+ get escapeParameter() {
3068
+ return m;
3069
+ },
3070
+ set escapeParameter(d) {
3071
+ m = d, g.escapeParameter = d;
3072
+ },
3073
+ t: we,
3074
+ getLocaleMessage: Oe,
3075
+ setLocaleMessage: Ve,
3076
+ mergeLocaleMessage: ht,
3077
+ getPostTranslationHandler: B,
3078
+ setPostTranslationHandler: te,
3079
+ getMissingHandler: it,
3080
+ setMissingHandler: ct,
3081
+ [Oa]: gt
3082
+ };
3083
+ return V.datetimeFormats = ne, V.numberFormats = R, V.rt = ft, V.te = Nt, V.tm = Ue, V.d = _t, V.n = mt, V.getDateTimeFormat = i, V.setDateTimeFormat = c, V.mergeDateTimeFormat = N, V.getNumberFormat = D, V.setNumberFormat = Y, V.mergeNumberFormat = X, V[La] = n, V[wt] = xe, V[Ft] = Ke, V[Ut] = pt, process.env.NODE_ENV !== "production" && (V[He] = (d) => {
3084
+ g.__v_emitter = d;
3085
+ }, V[Vt] = () => {
3086
+ g.__v_emitter = void 0;
3087
+ }), V;
3088
+ }
3089
+ const kr = "vue-i18n: composer properties", It = {
3090
+ "vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
3091
+ "vue-i18n-resource-inspector": "Vue I18n DevTools",
3092
+ "vue-i18n-timeline": "Vue I18n"
3093
+ }, Ca = {
3094
+ "vue-i18n-resource-inspector": "Search for scopes ..."
3095
+ }, ya = {
3096
+ "vue-i18n-timeline": 16764185
3097
+ };
3098
+ let Wt;
3099
+ async function Da(e, t) {
3100
+ return new Promise((n, r) => {
3101
+ try {
3102
+ Na({
3103
+ id: "vue-devtools-plugin-vue-i18n",
3104
+ label: It["vue-devtools-plugin-vue-i18n"],
3105
+ packageName: "vue-i18n",
3106
+ homepage: "https://vue-i18n.intlify.dev",
3107
+ logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
3108
+ componentStateTypes: [kr],
3109
+ app: e
3110
+ // eslint-disable-line @typescript-eslint/no-explicit-any
3111
+ }, (s) => {
3112
+ Wt = s, s.on.visitComponentTree(({ componentInstance: a, treeNode: l }) => {
3113
+ Pa(a, l, t);
3114
+ }), s.on.inspectComponent(({ componentInstance: a, instanceData: l }) => {
3115
+ a.__VUE_I18N__ && l && (t.mode === "legacy" ? a.__VUE_I18N__ !== t.global.__composer && Vn(l, a.__VUE_I18N__) : Vn(l, a.__VUE_I18N__));
3116
+ }), s.addInspector({
3117
+ id: "vue-i18n-resource-inspector",
3118
+ label: It["vue-i18n-resource-inspector"],
3119
+ icon: "language",
3120
+ treeFilterPlaceholder: Ca["vue-i18n-resource-inspector"]
3121
+ }), s.on.getInspectorTree((a) => {
3122
+ a.app === e && a.inspectorId === "vue-i18n-resource-inspector" && Fa(a, t);
3123
+ });
3124
+ const o = /* @__PURE__ */ new Map();
3125
+ s.on.getInspectorState(async (a) => {
3126
+ if (a.app === e && a.inspectorId === "vue-i18n-resource-inspector")
3127
+ if (s.unhighlightElement(), Va(a, t), a.nodeId === "global") {
3128
+ if (!o.has(a.app)) {
3129
+ const [l] = await s.getComponentInstances(a.app);
3130
+ o.set(a.app, l);
3131
+ }
3132
+ s.highlightElement(o.get(a.app));
3133
+ } else {
3134
+ const l = Ua(a.nodeId, t);
3135
+ l && s.highlightElement(l);
3136
+ }
3137
+ }), s.on.editInspectorState((a) => {
3138
+ a.app === e && a.inspectorId === "vue-i18n-resource-inspector" && Wa(a, t);
3139
+ }), s.addTimelineLayer({
3140
+ id: "vue-i18n-timeline",
3141
+ label: It["vue-i18n-timeline"],
3142
+ color: ya["vue-i18n-timeline"]
3143
+ }), n(!0);
3144
+ });
3145
+ } catch (s) {
3146
+ console.error(s), r(!1);
3147
+ }
3148
+ });
3149
+ }
3150
+ function Rr(e) {
3151
+ return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
3152
+ }
3153
+ function Pa(e, t, n) {
3154
+ const r = n.mode === "composition" ? n.global : n.global.__composer;
3155
+ if (e && e.__VUE_I18N__ && e.__VUE_I18N__ !== r) {
3156
+ const s = {
3157
+ label: `i18n (${Rr(e)} Scope)`,
3158
+ textColor: 0,
3159
+ backgroundColor: 16764185
3160
+ };
3161
+ t.tags.push(s);
3162
+ }
3163
+ }
3164
+ function Vn(e, t) {
3165
+ const n = kr;
3166
+ e.state.push({
3167
+ type: n,
3168
+ key: "locale",
3169
+ editable: !0,
3170
+ value: t.locale.value
3171
+ }), e.state.push({
3172
+ type: n,
3173
+ key: "availableLocales",
3174
+ editable: !1,
3175
+ value: t.availableLocales
3176
+ }), e.state.push({
3177
+ type: n,
3178
+ key: "fallbackLocale",
3179
+ editable: !0,
3180
+ value: t.fallbackLocale.value
3181
+ }), e.state.push({
3182
+ type: n,
3183
+ key: "inheritLocale",
3184
+ editable: !0,
3185
+ value: t.inheritLocale
3186
+ }), e.state.push({
3187
+ type: n,
3188
+ key: "messages",
3189
+ editable: !1,
3190
+ value: tn(t.messages.value)
3191
+ }), e.state.push({
3192
+ type: n,
3193
+ key: "datetimeFormats",
3194
+ editable: !1,
3195
+ value: t.datetimeFormats.value
3196
+ }), e.state.push({
3197
+ type: n,
3198
+ key: "numberFormats",
3199
+ editable: !1,
3200
+ value: t.numberFormats.value
3201
+ });
3202
+ }
3203
+ function tn(e) {
3204
+ const t = {};
3205
+ return Object.keys(e).forEach((n) => {
3206
+ const r = e[n];
3207
+ H(r) && "source" in r ? t[n] = wa(r) : le(r) && r.loc && r.loc.source ? t[n] = r.loc.source : U(r) ? t[n] = tn(r) : t[n] = r;
3208
+ }), t;
3209
+ }
3210
+ const ka = {
3211
+ "<": "&lt;",
3212
+ ">": "&gt;",
3213
+ '"': "&quot;",
3214
+ "&": "&amp;"
3215
+ };
3216
+ function Ra(e) {
3217
+ return e.replace(/[<>"&]/g, Ma);
3218
+ }
3219
+ function Ma(e) {
3220
+ return ka[e] || e;
3221
+ }
3222
+ function wa(e) {
3223
+ return {
3224
+ _custom: {
3225
+ type: "function",
3226
+ display: `<span>ƒ</span> ${e.source ? `("${Ra(e.source)}")` : "(?)"}`
3227
+ }
3228
+ };
3229
+ }
3230
+ function Fa(e, t) {
3231
+ e.rootNodes.push({
3232
+ id: "global",
3233
+ label: "Global Scope"
3234
+ });
3235
+ const n = t.mode === "composition" ? t.global : t.global.__composer;
3236
+ for (const [r, s] of t.__instances) {
3237
+ const o = t.mode === "composition" ? s : s.__composer;
3238
+ n !== o && e.rootNodes.push({
3239
+ id: o.id.toString(),
3240
+ label: `${Rr(r)} Scope`
3241
+ });
3242
+ }
3243
+ }
3244
+ function Ua(e, t) {
3245
+ let n = null;
3246
+ if (e !== "global") {
3247
+ for (const [r, s] of t.__instances.entries())
3248
+ if (s.id.toString() === e) {
3249
+ n = r;
3250
+ break;
3251
+ }
3252
+ }
3253
+ return n;
3254
+ }
3255
+ function Mr(e, t) {
3256
+ if (e === "global")
3257
+ return t.mode === "composition" ? t.global : t.global.__composer;
3258
+ {
3259
+ const n = Array.from(t.__instances.values()).find((r) => r.id.toString() === e);
3260
+ return n ? t.mode === "composition" ? n : n.__composer : null;
3261
+ }
3262
+ }
3263
+ function Va(e, t) {
3264
+ const n = Mr(e.nodeId, t);
3265
+ return n && (e.state = $a(n)), null;
3266
+ }
3267
+ function $a(e) {
3268
+ const t = {}, n = "Locale related info", r = [
3269
+ {
3270
+ type: n,
3271
+ key: "locale",
3272
+ editable: !0,
3273
+ value: e.locale.value
3274
+ },
3275
+ {
3276
+ type: n,
3277
+ key: "fallbackLocale",
3278
+ editable: !0,
3279
+ value: e.fallbackLocale.value
3280
+ },
3281
+ {
3282
+ type: n,
3283
+ key: "availableLocales",
3284
+ editable: !1,
3285
+ value: e.availableLocales
3286
+ },
3287
+ {
3288
+ type: n,
3289
+ key: "inheritLocale",
3290
+ editable: !0,
3291
+ value: e.inheritLocale
3292
+ }
3293
+ ];
3294
+ t[n] = r;
3295
+ const s = "Locale messages info", o = [
3296
+ {
3297
+ type: s,
3298
+ key: "messages",
3299
+ editable: !1,
3300
+ value: tn(e.messages.value)
3301
+ }
3302
+ ];
3303
+ t[s] = o;
3304
+ {
3305
+ const a = "Datetime formats info", l = [
3306
+ {
3307
+ type: a,
3308
+ key: "datetimeFormats",
3309
+ editable: !1,
3310
+ value: e.datetimeFormats.value
3311
+ }
3312
+ ];
3313
+ t[a] = l;
3314
+ const u = "Datetime formats info", _ = [
3315
+ {
3316
+ type: u,
3317
+ key: "numberFormats",
3318
+ editable: !1,
3319
+ value: e.numberFormats.value
3320
+ }
3321
+ ];
3322
+ t[u] = _;
3323
+ }
3324
+ return t;
3325
+ }
3326
+ function Gt(e, t) {
3327
+ if (Wt) {
3328
+ let n;
3329
+ t && "groupId" in t && (n = t.groupId, delete t.groupId), Wt.addTimelineEvent({
3330
+ layerId: "vue-i18n-timeline",
3331
+ event: {
3332
+ title: e,
3333
+ groupId: n,
3334
+ time: Date.now(),
3335
+ meta: {},
3336
+ data: t || {},
3337
+ logType: e === "compile-error" ? "error" : e === "fallback" || e === "missing" ? "warning" : "default"
3338
+ }
3339
+ });
3340
+ }
3341
+ }
3342
+ function Wa(e, t) {
3343
+ const n = Mr(e.nodeId, t);
3344
+ if (n) {
3345
+ const [r] = e.path;
3346
+ r === "locale" && C(e.state.value) ? n.locale.value = e.state.value : r === "fallbackLocale" && (C(e.state.value) || K(e.state.value) || U(e.state.value)) ? n.fallbackLocale.value = e.state.value : r === "inheritLocale" && x(e.state.value) && (n.inheritLocale = e.state.value);
3347
+ }
3348
+ }
3349
+ const nn = {
3350
+ tag: {
3351
+ type: [String, Object]
3352
+ },
3353
+ locale: {
3354
+ type: String
3355
+ },
3356
+ scope: {
3357
+ type: String,
3358
+ // NOTE: avoid https://github.com/microsoft/rushstack/issues/1050
3359
+ validator: (e) => e === "parent" || e === "global",
3360
+ default: "parent"
3361
+ /* ComponentI18nScope */
3362
+ },
3363
+ i18n: {
3364
+ type: Object
3365
+ }
3366
+ };
3367
+ function Ga({ slots: e }, t) {
3368
+ return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, s) => [
3369
+ ...r,
3370
+ // prettier-ignore
3371
+ ...s.type === Qn ? s.children : [s]
3372
+ ], []) : t.reduce((n, r) => {
3373
+ const s = e[r];
3374
+ return s && (n[r] = s()), n;
3375
+ }, W());
3376
+ }
3377
+ function wr() {
3378
+ return Qn;
3379
+ }
3380
+ const Ha = /* @__PURE__ */ xt({
3381
+ /* eslint-disable */
3382
+ name: "i18n-t",
3383
+ props: Z({
3384
+ keypath: {
3385
+ type: String,
3386
+ required: !0
3387
+ },
3388
+ plural: {
3389
+ type: [Number, String],
3390
+ validator: (e) => Q(e) || !isNaN(e)
3391
+ }
3392
+ }, nn),
3393
+ /* eslint-enable */
3394
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3395
+ setup(e, t) {
3396
+ const { slots: n, attrs: r } = t, s = e.i18n || rn({
3397
+ useScope: e.scope,
3398
+ __useComponent: !0
3399
+ });
3400
+ return () => {
3401
+ const o = Object.keys(n).filter((T) => T[0] !== "_"), a = W();
3402
+ e.locale && (a.locale = e.locale), e.plural !== void 0 && (a.plural = C(e.plural) ? +e.plural : e.plural);
3403
+ const l = Ga(t, o), u = s[wt](e.keypath, l, a), _ = Z(W(), r), h = C(e.tag) || U(e.tag) ? e.tag : wr();
3404
+ return Jn(h, _, u);
3405
+ };
3406
+ }
3407
+ }), $n = Ha;
3408
+ function Ya(e) {
3409
+ return K(e) && !C(e[0]);
3410
+ }
3411
+ function Fr(e, t, n, r) {
3412
+ const { slots: s, attrs: o } = t;
3413
+ return () => {
3414
+ const a = { part: !0 };
3415
+ let l = W();
3416
+ e.locale && (a.locale = e.locale), C(e.format) ? a.key = e.format : U(e.format) && (C(e.format.key) && (a.key = e.format.key), l = Object.keys(e.format).reduce((p, S) => n.includes(S) ? Z(W(), p, { [S]: e.format[S] }) : p, W()));
3417
+ const u = r(e.value, a, l);
3418
+ let _ = [a.key];
3419
+ K(u) ? _ = u.map((p, S) => {
3420
+ const y = s[p.type], L = y ? y({ [p.type]: p.value, index: S, parts: u }) : [p.value];
3421
+ return Ya(L) && (L[0].key = `${p.type}-${S}`), L;
3422
+ }) : C(u) && (_ = [u]);
3423
+ const h = Z(W(), o), T = C(e.tag) || U(e.tag) ? e.tag : wr();
3424
+ return Jn(T, h, _);
3425
+ };
3426
+ }
3427
+ const ja = /* @__PURE__ */ xt({
3428
+ /* eslint-disable */
3429
+ name: "i18n-n",
3430
+ props: Z({
3431
+ value: {
3432
+ type: Number,
3433
+ required: !0
3434
+ },
3435
+ format: {
3436
+ type: [String, Object]
3437
+ }
3438
+ }, nn),
3439
+ /* eslint-enable */
3440
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3441
+ setup(e, t) {
3442
+ const n = e.i18n || rn({
3443
+ useScope: e.scope,
3444
+ __useComponent: !0
3445
+ });
3446
+ return Fr(e, t, Ir, (...r) => (
3447
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3448
+ n[Ut](...r)
3449
+ ));
3450
+ }
3451
+ }), Wn = ja;
3452
+ function xa(e, t) {
3453
+ const n = e;
3454
+ if (e.mode === "composition")
3455
+ return n.__getInstance(t) || e.global;
3456
+ {
3457
+ const r = n.__getInstance(t);
3458
+ return r != null ? r.__composer : e.global.__composer;
3459
+ }
3460
+ }
3461
+ function Ka(e) {
3462
+ const t = (a) => {
3463
+ process.env.NODE_ENV !== "production" && rr(Ye(ce.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
3464
+ const { instance: l, value: u } = a;
3465
+ if (!l || !l.$)
3466
+ throw ie(j.UNEXPECTED_ERROR);
3467
+ const _ = xa(e, l.$), h = Gn(u);
3468
+ return [
3469
+ Reflect.apply(_.t, _, [...Hn(h)]),
3470
+ _
3471
+ ];
3472
+ };
3473
+ return {
3474
+ created: (a, l) => {
3475
+ const [u, _] = t(l);
3476
+ fe && e.global === _ && (a.__i18nWatcher = Ie(_.locale, () => {
3477
+ l.instance && l.instance.$forceUpdate();
3478
+ })), a.__composer = _, a.textContent = u;
3479
+ },
3480
+ unmounted: (a) => {
3481
+ fe && a.__i18nWatcher && (a.__i18nWatcher(), a.__i18nWatcher = void 0, delete a.__i18nWatcher), a.__composer && (a.__composer = void 0, delete a.__composer);
3482
+ },
3483
+ beforeUpdate: (a, { value: l }) => {
3484
+ if (a.__composer) {
3485
+ const u = a.__composer, _ = Gn(l);
3486
+ a.textContent = Reflect.apply(u.t, u, [
3487
+ ...Hn(_)
3488
+ ]);
3489
+ }
3490
+ },
3491
+ getSSRProps: (a) => {
3492
+ const [l] = t(a);
3493
+ return { textContent: l };
3494
+ }
3495
+ };
3496
+ }
3497
+ function Gn(e) {
3498
+ if (C(e))
3499
+ return { path: e };
3500
+ if (w(e)) {
3501
+ if (!("path" in e))
3502
+ throw ie(j.REQUIRED_VALUE, "path");
3503
+ return e;
3504
+ } else
3505
+ throw ie(j.INVALID_VALUE);
3506
+ }
3507
+ function Hn(e) {
3508
+ const { path: t, locale: n, args: r, choice: s, plural: o } = e, a = {}, l = r || {};
3509
+ return C(n) && (a.locale = n), Q(s) && (a.plural = s), Q(o) && (a.plural = o), [t, l, a];
3510
+ }
3511
+ function Ba(e, t, ...n) {
3512
+ const r = w(n[0]) ? n[0] : {};
3513
+ (x(r.globalInstall) ? r.globalInstall : !0) && ([$n.name, "I18nT"].forEach((o) => e.component(o, $n)), [Wn.name, "I18nN"].forEach((o) => e.component(o, Wn)), [jn.name, "I18nD"].forEach((o) => e.component(o, jn))), e.directive("t", Ka(t));
3514
+ }
3515
+ const Xa = /* @__PURE__ */ Ee("global-vue-i18n");
3516
+ function Ja(e = {}) {
3517
+ process.env.NODE_ENV;
3518
+ const n = x(e.globalInjection) ? e.globalInjection : !0, r = /* @__PURE__ */ new Map(), [s, o] = Qa(e), a = /* @__PURE__ */ Ee(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
3519
+ function l(T) {
3520
+ return r.get(T) || null;
3521
+ }
3522
+ function u(T, p) {
3523
+ r.set(T, p);
3524
+ }
3525
+ function _(T) {
3526
+ r.delete(T);
3527
+ }
3528
+ const h = {
3529
+ // mode
3530
+ get mode() {
3531
+ return "composition";
3532
+ },
3533
+ // install plugin
3534
+ async install(T, ...p) {
3535
+ if (process.env.NODE_ENV !== "production" && (T.__VUE_I18N__ = h), T.__VUE_I18N_SYMBOL__ = a, T.provide(T.__VUE_I18N_SYMBOL__, h), w(p[0])) {
3536
+ const L = p[0];
3537
+ h.__composerExtend = L.__composerExtend, h.__vueI18nExtend = L.__vueI18nExtend;
3538
+ }
3539
+ let S = null;
3540
+ n && (S = sl(T, h.global)), Ba(T, h, ...p);
3541
+ const y = T.unmount;
3542
+ if (T.unmount = () => {
3543
+ S && S(), h.dispose(), y();
3544
+ }, process.env.NODE_ENV !== "production") {
3545
+ if (!await Da(T, h))
3546
+ throw ie(j.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
3547
+ const A = or();
3548
+ {
3549
+ const f = o;
3550
+ f[He] && f[He](A);
3551
+ }
3552
+ A.on("*", Gt);
3553
+ }
3554
+ },
3555
+ // global accessor
3556
+ get global() {
3557
+ return o;
3558
+ },
3559
+ dispose() {
3560
+ s.stop();
3561
+ },
3562
+ // @internal
3563
+ __instances: r,
3564
+ // @internal
3565
+ __getInstance: l,
3566
+ // @internal
3567
+ __setInstance: u,
3568
+ // @internal
3569
+ __deleteInstance: _
3570
+ };
3571
+ return h;
3572
+ }
3573
+ function rn(e = {}) {
3574
+ const t = en();
3575
+ if (t == null)
3576
+ throw ie(j.MUST_BE_CALL_SETUP_TOP);
3577
+ if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
3578
+ throw ie(j.NOT_INSTALLED);
3579
+ const n = qa(t), r = za(n), s = Dr(t), o = Za(e, s);
3580
+ if (o === "global")
3581
+ return Ia(r, e, s), r;
3582
+ if (o === "parent") {
3583
+ let u = el(n, t, e.__useComponent);
3584
+ return u == null && (process.env.NODE_ENV !== "production" && de(Ye(ce.NOT_FOUND_PARENT_SCOPE)), u = r), u;
3585
+ }
3586
+ const a = n;
3587
+ let l = a.__getInstance(t);
3588
+ if (l == null) {
3589
+ const u = Z({}, e);
3590
+ "__i18n" in s && (u.__i18n = s.__i18n), r && (u.__root = r), l = Pr(u), a.__composerExtend && (l[$t] = a.__composerExtend(l)), nl(a, t, l), a.__setInstance(t, l);
3591
+ } else
3592
+ process.env.NODE_ENV !== "production" && o === "local" && de(Ye(ce.DUPLICATE_USE_I18N_CALLING));
3593
+ return l;
3594
+ }
3595
+ function Qa(e, t) {
3596
+ const n = jr(), r = n.run(() => Pr(e));
3597
+ if (r == null)
3598
+ throw ie(j.UNEXPECTED_ERROR);
3599
+ return [n, r];
3600
+ }
3601
+ function qa(e) {
3602
+ const t = Xn(e.isCE ? Xa : e.appContext.app.__VUE_I18N_SYMBOL__);
3603
+ if (!t)
3604
+ throw ie(e.isCE ? j.NOT_INSTALLED_WITH_PROVIDE : j.UNEXPECTED_ERROR);
3605
+ return t;
3606
+ }
3607
+ function Za(e, t) {
3608
+ return ot(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
3609
+ }
3610
+ function za(e) {
3611
+ return e.mode === "composition" ? e.global : e.global.__composer;
3612
+ }
3613
+ function el(e, t, n = !1) {
3614
+ let r = null;
3615
+ const s = t.root;
3616
+ let o = tl(t, n);
3617
+ for (; o != null; ) {
3618
+ const a = e;
3619
+ if (e.mode === "composition" && (r = a.__getInstance(o)), r != null || s === o)
3620
+ break;
3621
+ o = o.parent;
3622
+ }
3623
+ return r;
3624
+ }
3625
+ function tl(e, t = !1) {
3626
+ return e == null ? null : t && e.vnode.ctx || e.parent;
3627
+ }
3628
+ function nl(e, t, n) {
3629
+ let r = null;
3630
+ Yt(() => {
3631
+ if (process.env.NODE_ENV !== "production") {
3632
+ t.__VUE_I18N__ = n, r = or();
3633
+ const s = n;
3634
+ s[He] && s[He](r), r.on("*", Gt);
3635
+ }
3636
+ }, t), xr(() => {
3637
+ const s = n;
3638
+ process.env.NODE_ENV !== "production" && (r && r.off("*", Gt), s[Vt] && s[Vt](), delete t.__VUE_I18N__), e.__deleteInstance(t);
3639
+ const o = s[$t];
3640
+ o && (o(), delete s[$t]);
3641
+ }, t);
3642
+ }
3643
+ const rl = [
3644
+ "locale",
3645
+ "fallbackLocale",
3646
+ "availableLocales"
3647
+ ], Yn = ["t", "rt", "d", "n", "tm", "te"];
3648
+ function sl(e, t) {
3649
+ const n = /* @__PURE__ */ Object.create(null);
3650
+ return rl.forEach((s) => {
3651
+ const o = Object.getOwnPropertyDescriptor(t, s);
3652
+ if (!o)
3653
+ throw ie(j.UNEXPECTED_ERROR);
3654
+ const a = Kr(o.value) ? {
3655
+ get() {
3656
+ return o.value.value;
3657
+ },
3658
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3659
+ set(l) {
3660
+ o.value.value = l;
3661
+ }
3662
+ } : {
3663
+ get() {
3664
+ return o.get && o.get();
3665
+ }
3666
+ };
3667
+ Object.defineProperty(n, s, a);
3668
+ }), e.config.globalProperties.$i18n = n, Yn.forEach((s) => {
3669
+ const o = Object.getOwnPropertyDescriptor(t, s);
3670
+ if (!o || !o.value)
3671
+ throw ie(j.UNEXPECTED_ERROR);
3672
+ Object.defineProperty(e.config.globalProperties, `$${s}`, o);
3673
+ }), () => {
3674
+ delete e.config.globalProperties.$i18n, Yn.forEach((s) => {
3675
+ delete e.config.globalProperties[`$${s}`];
3676
+ });
3677
+ };
3678
+ }
3679
+ const ol = /* @__PURE__ */ xt({
3680
+ /* eslint-disable */
3681
+ name: "i18n-d",
3682
+ props: Z({
3683
+ value: {
3684
+ type: [Number, Date],
3685
+ required: !0
3686
+ },
3687
+ format: {
3688
+ type: [String, Object]
3689
+ }
3690
+ }, nn),
3691
+ /* eslint-enable */
3692
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3693
+ setup(e, t) {
3694
+ const n = e.i18n || rn({
3695
+ useScope: e.scope,
3696
+ __useComponent: !0
3697
+ });
3698
+ return Fr(e, t, br, (...r) => (
3699
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3700
+ n[Ft](...r)
3701
+ ));
3702
+ }
3703
+ }), jn = ol;
3704
+ Ta();
3705
+ jo(Oo);
3706
+ xo($o);
3707
+ Ko(Er);
3708
+ if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
3709
+ const e = Bt();
3710
+ e.__INTLIFY__ = !0, Lo(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
3711
+ }
3712
+ process.env.NODE_ENV;
3713
+ const St = (e) => e && typeof e == "object" && !Array.isArray(e), Ht = (e, ...t) => {
3714
+ if (!t.length) return e;
3715
+ const n = t.shift();
3716
+ if (St(e) && St(n))
3717
+ for (const r in n)
3718
+ St(n[r]) ? (e[r] || Object.assign(e, { [r]: {} }), Ht(e[r], n[r])) : Object.assign(e, { [r]: n[r] });
3719
+ return Ht(e, ...t);
3720
+ }, al = Ht(
3721
+ {},
3722
+ { "zh-CN": {
3723
+ hello: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "你好" } },
3724
+ age: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "年龄" } }
3725
+ } }
3726
+ ), ll = [
3727
+ {
3728
+ path: "/",
3729
+ name: "/",
3730
+ component: () => import("./index-DlT5uboQ.js")
3731
+ /* no children */
3732
+ },
3733
+ {
3734
+ path: "/test",
3735
+ /* internal name: '/test' */
3736
+ /* no component */
3737
+ children: [
3738
+ {
3739
+ path: "table",
3740
+ name: "/test/table",
3741
+ component: () => import("./table-T2Jkjf7q.js")
3742
+ /* no children */
3743
+ }
3744
+ ]
3745
+ }
3746
+ ], il = qr({
3747
+ history: Zr(),
3748
+ routes: ll
3749
+ }), cl = Qr(), ul = Ja({
3750
+ locale: "zh-CN",
3751
+ fallbackLocale: "en",
3752
+ messages: al
3753
+ }), At = Ls({
3754
+ valueLight: "light",
3755
+ valueDark: "dark"
3756
+ }), El = () => {
3757
+ At.value = !At.value, console.info("dark:", At.value);
3758
+ }, pl = (e) => {
3759
+ const t = Jr(e);
3760
+ return t.use(il).use(ul).use(cl), t;
3761
+ }, gl = rt(), Nl = (e) => {
3762
+ e.value = e;
3763
+ }, hl = Kt(
3764
+ () => import("./ElTablePlus-BFmsdH61.js")
3765
+ ), Tl = Kt(
3766
+ () => import("./ElAuthCode-BtEs4aSF.js")
3767
+ ), vl = Kt(
3768
+ () => import("./HelloWorld-DUGHI-ql.js")
3769
+ );
3770
+ export {
3771
+ hl as E,
3772
+ vl as H,
3773
+ dl as a,
3774
+ Nl as b,
3775
+ pl as c,
3776
+ At as d,
3777
+ Tl as e,
3778
+ ul as i,
3779
+ gl as l,
3780
+ cl as p,
3781
+ il as r,
3782
+ El as t,
3783
+ rn as u
3784
+ };