@webitel/ui-sdk 26.8.112 → 26.8.113

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 (68) hide show
  1. package/dist/{caseConverters-6cy_SaV5.js → caseConverters-DGri4uJo.js} +1 -1
  2. package/dist/{clients-Be8f1qoM.js → clients-CWniSi77.js} +255 -163
  3. package/dist/{components-GY1xFZWr.js → components-DJVzkzrr.js} +301 -301
  4. package/dist/{composables-Vg-QfE_2.js → composables-BeyROIj_.js} +2 -2
  5. package/dist/{convertDuration-heRoQzks.js → convertDuration-BOe9PsRT.js} +1 -1
  6. package/dist/{deep-copy-7O5ej7vT.js → deep-copy-BJdHBMNZ.js} +1 -1
  7. package/dist/{dist-DJZOILzq.js → dist-CnyqtIg9.js} +1 -1
  8. package/dist/{dist-DB8lC4KJ.js → dist-EXdgfpvN.js} +44 -44
  9. package/dist/{enums-BDtfwdQu.js → enums-CsINFPBu.js} +133 -11
  10. package/dist/{genClient-5JkKKac8.js → genClient-CvWlQ0TZ.js} +2 -2
  11. package/dist/ui-sdk.js +16 -16
  12. package/dist/ui-sdk.umd.cjs +691 -656
  13. package/dist/{useValidation-B4q8qUvG.js → useValidation-KcXmMBtR.js} +2 -2
  14. package/dist/{useWtTable-CUpN0LZ5.js → useWtTable-AYb1yHre.js} +1 -1
  15. package/dist/{utils-DaacyMAw.js → utils-DHSDTqJG.js} +1 -1
  16. package/dist/vue-i18n-VBiROMZ4.js +3031 -0
  17. package/dist/{vue-router-CobN9tLi.js → vue-router-C9sRzLyg.js} +1 -1
  18. package/dist/{wt-action-bar-DJ_xvqhE.js → wt-action-bar-TwclxZyb.js} +3 -3
  19. package/dist/{wt-badge-C8O4Oarp.js → wt-badge-DbplVXor.js} +1 -1
  20. package/dist/{wt-button-BmBqpEkp.js → wt-button-rUZKbswL.js} +4 -4
  21. package/dist/{wt-chat-emoji-E6MiDOCz.js → wt-chat-emoji-BATwPh2q.js} +4 -4
  22. package/dist/{wt-datepicker-C1kACub3.js → wt-datepicker-C4wrYXt9.js} +11 -11
  23. package/dist/{wt-display-chip-items-Dr6QjwFR.js → wt-display-chip-items-N20vx27z.js} +2 -2
  24. package/dist/{wt-dual-panel-D5TCilWN.js → wt-dual-panel-CjWwG7y6.js} +7 -7
  25. package/dist/{wt-expansion-card-2wdr_Hpi.js → wt-expansion-card-vv5ctpfw.js} +2 -2
  26. package/dist/{wt-expansion-panel-DP8zz2tS.js → wt-expansion-panel-3tx3DGUp.js} +1 -1
  27. package/dist/{wt-galleria-iRpRiDc6.js → wt-galleria-DcZRuekj.js} +2 -2
  28. package/dist/{wt-icon-CZlhT7Yb.js → wt-icon-B4wxzcVG.js} +4 -4
  29. package/dist/{wt-icon-action-BXg3jVf6.js → wt-icon-action-CTPCemTs.js} +2 -2
  30. package/dist/{wt-icon-btn-C8xuTCJR.js → wt-icon-btn-D3lG7Acn.js} +1 -1
  31. package/dist/{wt-notifications-bar-BDOKlHao.js → wt-notifications-bar-BMV-0Vmo.js} +2 -2
  32. package/dist/{wt-player-Dqlccj2F.js → wt-player-DBsbjt_l.js} +5 -5
  33. package/dist/{wt-popover-DuZFw3bg.js → wt-popover-BI6YyXy0.js} +1 -1
  34. package/dist/{wt-screen-recordings-action-biHVl6lR.js → wt-screen-recordings-action-D2PKGnNl.js} +1 -1
  35. package/dist/{wt-search-bar-ByF2Wjsg.js → wt-search-bar-CFANAMNQ.js} +1 -1
  36. package/dist/{wt-selection-popup-Bd4EuLl-.js → wt-selection-popup-Dei_JZah.js} +1 -1
  37. package/dist/{wt-send-message-popup-BL9aJz5t.js → wt-send-message-popup-DSZ7srx4.js} +7 -7
  38. package/dist/{wt-slider-Co6hZQu_.js → wt-slider-x-Tch7RT.js} +1 -1
  39. package/dist/{wt-start-page-Bp7b0ir-.js → wt-start-page-2Bdzg5V5.js} +1 -1
  40. package/dist/{wt-status-select-BOmAd__4.js → wt-status-select-Bgtu5WrX.js} +11 -11
  41. package/dist/{wt-table-RK0pOlzR.js → wt-table-DMEjT0xF.js} +6 -6
  42. package/dist/{wt-table-column-select-BtFhZKPT.js → wt-table-column-select-DzXaRs03.js} +3 -3
  43. package/dist/{wt-timepicker-C4kMPkNd.js → wt-timepicker-B-ZZUyDZ.js} +5 -5
  44. package/dist/{wt-toast-DbYB-u-k.js → wt-toast-pXV44Y3v.js} +10 -10
  45. package/dist/{wt-tree-BH2o2iCt.js → wt-tree-Cu_yRDjp.js} +98 -98
  46. package/dist/{wt-tree-table-CCaiVeY_.js → wt-tree-table-BET1GUgf.js} +2 -2
  47. package/dist/wt-type-extension-value-input-B1-ScgJm.js +14743 -0
  48. package/dist/{wt-vidstack-player-u4R9q51f.js → wt-vidstack-player-C_EdEZ8v.js} +6 -6
  49. package/package.json +1 -1
  50. package/src/components/on-demand/wt-type-extension-value-input/wt-type-extension-value-input.vue +19 -5
  51. package/src/modules/Userinfo/composables/useLookupFieldReadAccess.ts +54 -0
  52. package/src/modules/Userinfo/index.ts +10 -0
  53. package/src/modules/Userinfo/injection/filterReadAccess.ts +21 -0
  54. package/src/modules/Userinfo/mappings/lookupPathToScopeClass.ts +53 -0
  55. package/src/modules/Userinfo/scripts/typeObjectClass.ts +55 -0
  56. package/src/modules/Userinfo/stores/userinfoStore.ts +13 -2
  57. package/types/.tsbuildinfo +1 -1
  58. package/types/components/on-demand/wt-type-extension-value-input/wt-type-extension-value-input.vue.d.ts +11 -4
  59. package/types/components/wt-inline-add-panel/wt-inline-add-panel.vue.d.ts +1 -1
  60. package/types/modules/Flow/lookups/FlowTypeApplications.lookup.d.ts +5 -5
  61. package/types/modules/Userinfo/composables/useLookupFieldReadAccess.d.ts +14 -0
  62. package/types/modules/Userinfo/index.d.ts +2 -0
  63. package/types/modules/Userinfo/injection/filterReadAccess.d.ts +7 -0
  64. package/types/modules/Userinfo/mappings/lookupPathToScopeClass.d.ts +3 -0
  65. package/types/modules/Userinfo/scripts/typeObjectClass.d.ts +2 -0
  66. package/types/modules/Userinfo/stores/userinfoStore.d.ts +25 -15
  67. package/dist/vue-i18n-B88GcHzn.js +0 -2275
  68. package/dist/wt-type-extension-value-input-DaSIbXbu.js +0 -109
@@ -1,2275 +0,0 @@
1
- import { n as e, t } from "./dist-DB8lC4KJ.js";
2
- import { n, t as r } from "./dist-DJZOILzq.js";
3
- import * as i from "vue";
4
- import { Text as a, computed as o, createVNode as s, getCurrentScope as c, inject as l, onMounted as u, onScopeDispose as d, onUnmounted as f, ref as p, shallowRef as m, watch as h } from "vue";
5
- n(), t();
6
- function g(e, t) {
7
- typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
8
- }
9
- var _ = {};
10
- function v(e) {
11
- _[e] || (_[e] = !0, g(e));
12
- }
13
- var y = typeof window < "u", b, x;
14
- if (e.env.NODE_ENV !== "production") {
15
- let e = y && window.performance;
16
- e && e.mark && e.measure && e.clearMarks && e.clearMeasures && (b = (t) => {
17
- e.mark(t);
18
- }, x = (t, n, r) => {
19
- e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
20
- });
21
- }
22
- var S = /\{([0-9a-zA-Z]+)\}/g;
23
- function C(e, ...t) {
24
- return t.length === 1 && R(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(S, (e, n) => t.hasOwnProperty(n) ? t[n] : "");
25
- }
26
- var w = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), T = (e, t, n) => E({
27
- l: e,
28
- k: t,
29
- s: n
30
- }), E = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), D = (e) => typeof e == "number" && isFinite(e), O = (e) => pe(e) === "[object Date]", ee = (e) => pe(e) === "[object RegExp]", te = (e) => B(e) && Object.keys(e).length === 0, k = Object.assign, ne = Object.create, A = (e = null) => ne(e), j, M = () => j ||= typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : r === void 0 ? A() : r;
31
- function re(e) {
32
- return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/\//g, "&#x2F;").replace(/=/g, "&#x3D;");
33
- }
34
- function ie(e) {
35
- return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&amp;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
36
- }
37
- var ae = /^\s*javascript\s*(?::|&#0*58;?|&#x0*3a;?|&colon;?)/i, oe = /^(?:href|src|action|formaction)$/i;
38
- function se(e) {
39
- return ae.test(e);
40
- }
41
- function ce(e) {
42
- let t = /url\s*\(/gi, n = "", r = 0, i;
43
- for (; (i = t.exec(e)) !== null;) {
44
- let a = i.index, o = t.lastIndex - 1, s = o + 1, c = 1, l = null;
45
- for (; s < e.length; s++) {
46
- let t = e[s];
47
- if (l) {
48
- t === l && (l = null);
49
- continue;
50
- }
51
- if (t === "\"" || t === "'") l = t;
52
- else if (t === "(") c++;
53
- else if (t === ")" && (c--, c === 0)) break;
54
- }
55
- if (c !== 0) break;
56
- let u = e.slice(o + 1, s).trim(), d = u.startsWith("\"") && u.endsWith("\"") || u.startsWith("'") && u.endsWith("'") ? u.slice(1, -1).trim() : u;
57
- n += e.slice(r, a), n += se(d) ? "url(about:blank)" : e.slice(a, s + 1), r = s + 1;
58
- }
59
- return n + e.slice(r);
60
- }
61
- function le(e, t) {
62
- return oe.test(e) && se(t) ? "about:blank" : ie(e.toLowerCase() === "style" ? ce(t) : t);
63
- }
64
- function ue(t) {
65
- return t = t.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g, (e, t, n) => `${t}="${le(t, n)}"`), t = t.replace(/([\w:-]+)\s*=\s*'([^']*)'/g, (e, t, n) => `${t}='${le(t, n)}'`), /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(t) && (e.env.NODE_ENV !== "production" && g("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."), t = t.replace(/(\s+)(on)(\w+\s*=)/gi, "$1&#111;n$3")), t = t.replace(/(\s+(?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi, (e, t, n) => se(n) ? `${t}about:blank` : e), t;
66
- }
67
- var de = Object.prototype.hasOwnProperty;
68
- function N(e, t) {
69
- return de.call(e, t);
70
- }
71
- var P = Array.isArray, F = (e) => typeof e == "function", I = (e) => typeof e == "string", L = (e) => typeof e == "boolean", R = (e) => typeof e == "object" && !!e, z = (e) => R(e) && F(e.then) && F(e.catch), fe = Object.prototype.toString, pe = (e) => fe.call(e), B = (e) => pe(e) === "[object Object]", me = (e) => e == null ? "" : P(e) || B(e) && e.toString === fe ? JSON.stringify(e, null, 2) : String(e);
72
- function he(e, t = "") {
73
- return e.reduce((e, n, r) => r === 0 ? e + n : e + t + n, "");
74
- }
75
- var ge = 2;
76
- function _e(e, t = 0, n = e.length) {
77
- let r = e.split(/\r?\n/), i = 0, a = [];
78
- for (let e = 0; e < r.length; e++) if (i += r[e].length + 1, i >= t) {
79
- for (let o = e - ge; o <= e + ge || n > i; o++) {
80
- if (o < 0 || o >= r.length) continue;
81
- let s = o + 1;
82
- a.push(`${s}${" ".repeat(3 - String(s).length)}| ${r[o]}`);
83
- let c = r[o].length;
84
- if (o === e) {
85
- let e = t - (i - c) + 1, r = Math.max(1, n > i ? c - e : n - t);
86
- a.push(" | " + " ".repeat(e) + "^".repeat(r));
87
- } else if (o > e) {
88
- if (n > i) {
89
- let e = Math.max(Math.min(n - i, c), 1);
90
- a.push(" | " + "^".repeat(e));
91
- }
92
- i += c + 1;
93
- }
94
- }
95
- break;
96
- }
97
- return a.join("\n");
98
- }
99
- function ve() {
100
- let e = /* @__PURE__ */ new Map();
101
- return {
102
- events: e,
103
- on(t, n) {
104
- let r = e.get(t);
105
- r && r.push(n) || e.set(t, [n]);
106
- },
107
- off(t, n) {
108
- let r = e.get(t);
109
- r && r.splice(r.indexOf(n) >>> 0, 1);
110
- },
111
- emit(t, n) {
112
- (e.get(t) || []).slice().map((e) => e(n)), (e.get("*") || []).slice().map((e) => e(t, n));
113
- }
114
- };
115
- }
116
- var ye = (e) => !R(e) || P(e);
117
- function be(e, t) {
118
- if (ye(e) || ye(t)) throw Error("Invalid value");
119
- let n = [{
120
- src: e,
121
- des: t
122
- }];
123
- for (; n.length;) {
124
- let { src: e, des: t } = n.pop();
125
- Object.keys(e).forEach((r) => {
126
- r !== "__proto__" && (R(e[r]) && !R(t[r]) && (t[r] = Array.isArray(e[r]) ? [] : A()), ye(t[r]) || ye(e[r]) ? t[r] = e[r] : n.push({
127
- src: e[r],
128
- des: t[r]
129
- }));
130
- });
131
- }
132
- }
133
- //#endregion
134
- //#region node_modules/@intlify/message-compiler/dist/message-compiler.mjs
135
- t();
136
- function xe(e, t, n) {
137
- return {
138
- line: e,
139
- column: t,
140
- offset: n
141
- };
142
- }
143
- function Se(e, t, n) {
144
- let r = {
145
- start: e,
146
- end: t
147
- };
148
- return n != null && (r.source = n), r;
149
- }
150
- var V = {
151
- EXPECTED_TOKEN: 1,
152
- INVALID_TOKEN_IN_PLACEHOLDER: 2,
153
- UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3,
154
- UNKNOWN_ESCAPE_SEQUENCE: 4,
155
- INVALID_UNICODE_ESCAPE_SEQUENCE: 5,
156
- UNBALANCED_CLOSING_BRACE: 6,
157
- UNTERMINATED_CLOSING_BRACE: 7,
158
- EMPTY_PLACEHOLDER: 8,
159
- NOT_ALLOW_NEST_PLACEHOLDER: 9,
160
- INVALID_LINKED_FORMAT: 10,
161
- MUST_HAVE_MESSAGES_IN_PLURAL: 11,
162
- UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
163
- UNEXPECTED_EMPTY_LINKED_KEY: 13,
164
- UNEXPECTED_LEXICAL_ANALYSIS: 14,
165
- UNHANDLED_CODEGEN_NODE_TYPE: 15,
166
- UNHANDLED_MINIFIER_NODE_TYPE: 16
167
- }, Ce = {
168
- [V.EXPECTED_TOKEN]: "Expected token: '{0}'",
169
- [V.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
170
- [V.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder",
171
- [V.UNKNOWN_ESCAPE_SEQUENCE]: "Unknown escape sequence: \\{0}",
172
- [V.INVALID_UNICODE_ESCAPE_SEQUENCE]: "Invalid unicode escape sequence: {0}",
173
- [V.UNBALANCED_CLOSING_BRACE]: "Unbalanced closing brace",
174
- [V.UNTERMINATED_CLOSING_BRACE]: "Unterminated closing brace",
175
- [V.EMPTY_PLACEHOLDER]: "Empty placeholder",
176
- [V.NOT_ALLOW_NEST_PLACEHOLDER]: "Not allowed nest placeholder",
177
- [V.INVALID_LINKED_FORMAT]: "Invalid linked format",
178
- [V.MUST_HAVE_MESSAGES_IN_PLURAL]: "Plural must have messages",
179
- [V.UNEXPECTED_EMPTY_LINKED_MODIFIER]: "Unexpected empty linked modifier",
180
- [V.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key",
181
- [V.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'",
182
- [V.UNHANDLED_CODEGEN_NODE_TYPE]: "unhandled codegen node type: '{0}'",
183
- [V.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
184
- };
185
- function we(t, n, r = {}) {
186
- let { domain: i, messages: a, args: o } = r, s = e.env.NODE_ENV === "production" ? t : C((a || Ce)[t] || "", ...o || []), c = SyntaxError(String(s));
187
- return c.code = t, n && (c.location = n), c.domain = i, c;
188
- }
189
- function Te(e) {
190
- throw e;
191
- }
192
- var Ee = /<\/?[\w\s="/.':;#-\/]+>/, De = (e) => Ee.test(e), H = " ", Oe = "\r", U = "\n", ke = "\u2028", Ae = "\u2029";
193
- function je(e) {
194
- let t = e, n = 0, r = 1, i = 1, a = 0, o = (e) => t[e] === Oe && t[e + 1] === U, s = (e) => t[e] === U, c = (e) => t[e] === Ae, l = (e) => t[e] === ke, u = (e) => o(e) || s(e) || c(e) || l(e), d = () => n, f = () => r, p = () => i, m = () => a, h = (e) => o(e) || c(e) || l(e) ? U : t[e], g = () => h(n), _ = () => h(n + a);
195
- function v() {
196
- return a = 0, u(n) && (r++, i = 0), o(n) && n++, n++, i++, t[n];
197
- }
198
- function y() {
199
- return o(n + a) && a++, a++, t[n + a];
200
- }
201
- function b() {
202
- n = 0, r = 1, i = 1, a = 0;
203
- }
204
- function x(e = 0) {
205
- a = e;
206
- }
207
- function S() {
208
- let e = n + a;
209
- for (; e !== n;) v();
210
- a = 0;
211
- }
212
- return {
213
- index: d,
214
- line: f,
215
- column: p,
216
- peekOffset: m,
217
- charAt: h,
218
- currentChar: g,
219
- currentPeek: _,
220
- next: v,
221
- peek: y,
222
- reset: b,
223
- resetPeek: x,
224
- skipToPeek: S
225
- };
226
- }
227
- var W = void 0, Me = "'", Ne = "tokenizer";
228
- function Pe(e, t = {}) {
229
- let n = t.location !== !1, r = je(e), i = () => r.index(), a = () => xe(r.line(), r.column(), r.index()), o = a(), s = i(), c = {
230
- currentType: 13,
231
- offset: s,
232
- startLoc: o,
233
- endLoc: o,
234
- lastType: 13,
235
- lastOffset: s,
236
- lastStartLoc: o,
237
- lastEndLoc: o,
238
- braceNest: 0,
239
- inLinked: !1,
240
- text: ""
241
- }, l = () => c, { onError: u } = t;
242
- function d(e, t, r, ...i) {
243
- let a = l();
244
- if (t.column += r, t.offset += r, u) {
245
- let r = we(e, n ? Se(a.startLoc, t) : null, {
246
- domain: Ne,
247
- args: i
248
- });
249
- u(r);
250
- }
251
- }
252
- function f(e, t, r) {
253
- e.endLoc = a(), e.currentType = t;
254
- let i = { type: t };
255
- return n && (i.loc = Se(e.startLoc, e.endLoc)), r != null && (i.value = r), i;
256
- }
257
- let p = (e) => f(e, 13);
258
- function m(e, t) {
259
- return e.currentChar() === t ? (e.next(), t) : (d(V.EXPECTED_TOKEN, a(), 0, t), "");
260
- }
261
- function h(e) {
262
- let t = "";
263
- for (; e.currentPeek() === H || e.currentPeek() === U;) t += e.currentPeek(), e.peek();
264
- return t;
265
- }
266
- function g(e) {
267
- let t = h(e);
268
- return e.skipToPeek(), t;
269
- }
270
- function _(e) {
271
- if (e === W) return !1;
272
- let t = e.charCodeAt(0);
273
- return t >= 97 && t <= 122 || t >= 65 && t <= 90 || t === 95;
274
- }
275
- function v(e) {
276
- if (e === W) return !1;
277
- let t = e.charCodeAt(0);
278
- return t >= 48 && t <= 57;
279
- }
280
- function y(e, t) {
281
- let { currentType: n } = t;
282
- if (n !== 2) return !1;
283
- h(e);
284
- let r = _(e.currentPeek());
285
- return e.resetPeek(), r;
286
- }
287
- function b(e, t) {
288
- let { currentType: n } = t;
289
- if (n !== 2) return !1;
290
- h(e);
291
- let r = v(e.currentPeek() === "-" ? e.peek() : e.currentPeek());
292
- return e.resetPeek(), r;
293
- }
294
- function x(e, t) {
295
- let { currentType: n } = t;
296
- if (n !== 2) return !1;
297
- h(e);
298
- let r = e.currentPeek() === Me;
299
- return e.resetPeek(), r;
300
- }
301
- function S(e, t) {
302
- let { currentType: n } = t;
303
- if (n !== 7) return !1;
304
- h(e);
305
- let r = e.currentPeek() === ".";
306
- return e.resetPeek(), r;
307
- }
308
- function C(e, t) {
309
- let { currentType: n } = t;
310
- if (n !== 8) return !1;
311
- h(e);
312
- let r = _(e.currentPeek());
313
- return e.resetPeek(), r;
314
- }
315
- function w(e, t) {
316
- let { currentType: n } = t;
317
- if (!(n === 7 || n === 11)) return !1;
318
- h(e);
319
- let r = e.currentPeek() === ":";
320
- return e.resetPeek(), r;
321
- }
322
- function T(e, t) {
323
- let { currentType: n } = t;
324
- if (n !== 9) return !1;
325
- let r = () => {
326
- let t = e.currentPeek();
327
- return t === "{" ? _(e.peek()) : t === "@" || t === "|" || t === ":" || t === "." || t === H || !t ? !1 : t === U ? (e.peek(), r()) : D(e, !1);
328
- }, i = r();
329
- return e.resetPeek(), i;
330
- }
331
- function E(e) {
332
- h(e);
333
- let t = e.currentPeek() === "|";
334
- return e.resetPeek(), t;
335
- }
336
- function D(e, t = !0) {
337
- let n = (t = !1, r = "") => {
338
- let i = e.currentPeek();
339
- return i === "{" || i === "@" || !i ? t : i === "|" ? !(r === H || r === U) : i === H ? (e.peek(), n(!0, H)) : i === U ? (e.peek(), n(!0, U)) : !0;
340
- }, r = n();
341
- return t && e.resetPeek(), r;
342
- }
343
- function O(e, t) {
344
- let n = e.currentChar();
345
- if (n !== W) return t(n) ? (e.next(), n) : null;
346
- }
347
- function ee(e) {
348
- let t = e.charCodeAt(0);
349
- return t >= 97 && t <= 122 || t >= 65 && t <= 90 || t >= 48 && t <= 57 || t === 95 || t === 36;
350
- }
351
- function te(e) {
352
- return O(e, ee);
353
- }
354
- function k(e) {
355
- let t = e.charCodeAt(0);
356
- return t >= 97 && t <= 122 || t >= 65 && t <= 90 || t >= 48 && t <= 57 || t === 95 || t === 36 || t === 45;
357
- }
358
- function ne(e) {
359
- return O(e, k);
360
- }
361
- function A(e) {
362
- let t = e.charCodeAt(0);
363
- return t >= 48 && t <= 57;
364
- }
365
- function j(e) {
366
- return O(e, A);
367
- }
368
- function M(e) {
369
- let t = e.charCodeAt(0);
370
- return t >= 48 && t <= 57 || t >= 65 && t <= 70 || t >= 97 && t <= 102;
371
- }
372
- function re(e) {
373
- return O(e, M);
374
- }
375
- function ie(e) {
376
- let t = "", n = "";
377
- for (; t = j(e);) n += t;
378
- return n;
379
- }
380
- function ae(e) {
381
- let t = "";
382
- for (;;) {
383
- let n = e.currentChar();
384
- if (n === "\\") {
385
- let r = e.peek();
386
- r === "{" || r === "}" || r === "@" || r === "|" || r === "\\" ? (t += n + r, e.next(), e.next()) : (e.resetPeek(), t += n, e.next());
387
- } else if (n === "{" || n === "}" || n === "@" || n === "|" || !n) break;
388
- else if (n === H || n === U) if (D(e)) t += n, e.next();
389
- else if (E(e)) break;
390
- else t += n, e.next();
391
- else t += n, e.next();
392
- }
393
- return t;
394
- }
395
- function oe(e) {
396
- g(e);
397
- let t = "", n = "";
398
- for (; t = ne(e);) n += t;
399
- let r = e.currentChar();
400
- if (r && r !== "}" && r !== W && r !== H && r !== U && r !== " ") {
401
- let t = P(e);
402
- return d(V.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, n + t), n + t;
403
- }
404
- return e.currentChar() === W && d(V.UNTERMINATED_CLOSING_BRACE, a(), 0), n;
405
- }
406
- function se(e) {
407
- g(e);
408
- let t = "";
409
- return e.currentChar() === "-" ? (e.next(), t += `-${ie(e)}`) : t += ie(e), e.currentChar() === W && d(V.UNTERMINATED_CLOSING_BRACE, a(), 0), t;
410
- }
411
- function ce(e) {
412
- return e !== Me && e !== U;
413
- }
414
- function le(e) {
415
- g(e), m(e, "'");
416
- let t = "", n = "";
417
- for (; t = O(e, ce);) t === "\\" ? n += ue(e) : n += t;
418
- let r = e.currentChar();
419
- return r === U || r === W ? (d(V.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), r === U && (e.next(), m(e, "'")), n) : (m(e, "'"), n);
420
- }
421
- function ue(e) {
422
- let t = e.currentChar();
423
- switch (t) {
424
- case "\\":
425
- case "'": return e.next(), `\\${t}`;
426
- case "u": return de(e, t, 4);
427
- case "U": return de(e, t, 6);
428
- default: return d(V.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, t), "";
429
- }
430
- }
431
- function de(e, t, n) {
432
- m(e, t);
433
- let r = "";
434
- for (let i = 0; i < n; i++) {
435
- let n = re(e);
436
- if (!n) {
437
- d(V.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${t}${r}${e.currentChar()}`);
438
- break;
439
- }
440
- r += n;
441
- }
442
- return `\\${t}${r}`;
443
- }
444
- function N(e) {
445
- return e !== "{" && e !== "}" && e !== H && e !== U;
446
- }
447
- function P(e) {
448
- g(e);
449
- let t = "", n = "";
450
- for (; t = O(e, N);) n += t;
451
- return n;
452
- }
453
- function F(e) {
454
- let t = "", n = "";
455
- for (; t = te(e);) n += t;
456
- return n;
457
- }
458
- function I(e) {
459
- let t = (n) => {
460
- let r = e.currentChar();
461
- return r === "{" || r === "@" || r === "|" || r === "(" || r === ")" || !r || r === H ? n : (n += r, e.next(), t(n));
462
- };
463
- return t("");
464
- }
465
- function L(e) {
466
- g(e);
467
- let t = m(e, "|");
468
- return g(e), t;
469
- }
470
- function R(e, t) {
471
- let n = null;
472
- switch (e.currentChar()) {
473
- case "{": return t.braceNest >= 1 && d(V.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), e.next(), n = f(t, 2, "{"), g(e), t.braceNest++, n;
474
- case "}": return t.braceNest > 0 && t.currentType === 2 && d(V.EMPTY_PLACEHOLDER, a(), 0), e.next(), n = f(t, 3, "}"), t.braceNest--, t.braceNest > 0 && g(e), t.inLinked && t.braceNest === 0 && (t.inLinked = !1), n;
475
- case "@": return t.braceNest > 0 && d(V.UNTERMINATED_CLOSING_BRACE, a(), 0), n = z(e, t) || p(t), t.braceNest = 0, n;
476
- default: {
477
- let r = !0, i = !0, o = !0;
478
- if (E(e)) return t.braceNest > 0 && d(V.UNTERMINATED_CLOSING_BRACE, a(), 0), n = f(t, 1, L(e)), t.braceNest = 0, t.inLinked = !1, n;
479
- if (t.braceNest > 0 && (t.currentType === 4 || t.currentType === 5 || t.currentType === 6)) return d(V.UNTERMINATED_CLOSING_BRACE, a(), 0), t.braceNest = 0, fe(e, t);
480
- if (r = y(e, t)) return n = f(t, 4, oe(e)), g(e), n;
481
- if (i = b(e, t)) return n = f(t, 5, se(e)), g(e), n;
482
- if (o = x(e, t)) return n = f(t, 6, le(e)), g(e), n;
483
- if (!r && !i && !o) return n = f(t, 12, P(e)), d(V.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, n.value), g(e), n;
484
- break;
485
- }
486
- }
487
- return n;
488
- }
489
- function z(e, t) {
490
- let { currentType: n } = t, r = null, i = e.currentChar();
491
- switch ((n === 7 || n === 8 || n === 11 || n === 9) && (i === U || i === H) && d(V.INVALID_LINKED_FORMAT, a(), 0), i) {
492
- case "@": return e.next(), r = f(t, 7, "@"), t.inLinked = !0, r;
493
- case ".": return g(e), e.next(), f(t, 8, ".");
494
- case ":": return g(e), e.next(), f(t, 9, ":");
495
- default: return E(e) ? (r = f(t, 1, L(e)), t.braceNest = 0, t.inLinked = !1, r) : S(e, t) || w(e, t) ? (g(e), z(e, t)) : C(e, t) ? (g(e), f(t, 11, F(e))) : T(e, t) ? (g(e), i === "{" ? R(e, t) || r : f(t, 10, I(e))) : (n === 7 && d(V.INVALID_LINKED_FORMAT, a(), 0), t.braceNest = 0, t.inLinked = !1, fe(e, t));
496
- }
497
- }
498
- function fe(e, t) {
499
- let n = { type: 13 };
500
- if (t.braceNest > 0) return R(e, t) || p(t);
501
- if (t.inLinked) return z(e, t) || p(t);
502
- switch (e.currentChar()) {
503
- case "{": return R(e, t) || p(t);
504
- case "}": return d(V.UNBALANCED_CLOSING_BRACE, a(), 0), e.next(), f(t, 3, "}");
505
- case "@": return z(e, t) || p(t);
506
- default:
507
- if (E(e)) return n = f(t, 1, L(e)), t.braceNest = 0, t.inLinked = !1, n;
508
- if (D(e)) return f(t, 0, ae(e));
509
- break;
510
- }
511
- return n;
512
- }
513
- function pe() {
514
- let { currentType: e, offset: t, startLoc: n, endLoc: o } = c;
515
- return c.lastType = e, c.lastOffset = t, c.lastStartLoc = n, c.lastEndLoc = o, c.offset = i(), c.startLoc = a(), r.currentChar() === W ? f(c, 13) : fe(r, c);
516
- }
517
- return {
518
- nextToken: pe,
519
- currentOffset: i,
520
- currentPosition: a,
521
- context: l
522
- };
523
- }
524
- var Fe = "parser", Ie = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g, Le = /\\([\\@{}|])/g;
525
- function Re(e, t) {
526
- return t;
527
- }
528
- function ze(e, t, n) {
529
- switch (e) {
530
- case "\\\\": return "\\";
531
- case "\\'": return "'";
532
- default: {
533
- let e = parseInt(t || n, 16);
534
- return e <= 55295 || e >= 57344 ? String.fromCodePoint(e) : "�";
535
- }
536
- }
537
- }
538
- function Be(e = {}) {
539
- let t = e.location !== !1, { onError: n } = e;
540
- function r(e, r, i, a, ...o) {
541
- let s = e.currentPosition();
542
- if (s.offset += a, s.column += a, n) {
543
- let e = we(r, t ? Se(i, s) : null, {
544
- domain: Fe,
545
- args: o
546
- });
547
- n(e);
548
- }
549
- }
550
- function i(e, n, r) {
551
- let i = { type: e };
552
- return t && (i.start = n, i.end = n, i.loc = {
553
- start: r,
554
- end: r
555
- }), i;
556
- }
557
- function a(e, n, r, i) {
558
- t && (e.end = n, e.loc && (e.loc.end = r));
559
- }
560
- function o(e, t) {
561
- let n = e.context(), r = i(3, n.offset, n.startLoc);
562
- return r.value = t.replace(Le, Re), a(r, e.currentOffset(), e.currentPosition()), r;
563
- }
564
- function s(e, t) {
565
- let { lastOffset: n, lastStartLoc: r } = e.context(), o = i(5, n, r);
566
- return o.index = parseInt(t, 10), e.nextToken(), a(o, e.currentOffset(), e.currentPosition()), o;
567
- }
568
- function c(e, t) {
569
- let { lastOffset: n, lastStartLoc: r } = e.context(), o = i(4, n, r);
570
- return o.key = t, e.nextToken(), a(o, e.currentOffset(), e.currentPosition()), o;
571
- }
572
- function l(e, t) {
573
- let { lastOffset: n, lastStartLoc: r } = e.context(), o = i(9, n, r);
574
- return o.value = t.replace(Ie, ze), e.nextToken(), a(o, e.currentOffset(), e.currentPosition()), o;
575
- }
576
- function u(e) {
577
- let t = e.nextToken(), n = e.context(), { lastOffset: o, lastStartLoc: s } = n, c = i(8, o, s);
578
- return t.type === 11 ? (t.value ?? r(e, V.UNEXPECTED_LEXICAL_ANALYSIS, n.lastStartLoc, 0, G(t)), c.value = t.value || "", a(c, e.currentOffset(), e.currentPosition()), { node: c }) : (r(e, V.UNEXPECTED_EMPTY_LINKED_MODIFIER, n.lastStartLoc, 0), c.value = "", a(c, o, s), {
579
- nextConsumeToken: t,
580
- node: c
581
- });
582
- }
583
- function d(e, t) {
584
- let n = e.context(), r = i(7, n.offset, n.startLoc);
585
- return r.value = t, a(r, e.currentOffset(), e.currentPosition()), r;
586
- }
587
- function f(e) {
588
- let t = e.context(), n = i(6, t.offset, t.startLoc), o = e.nextToken();
589
- if (o.type === 8) {
590
- let t = u(e);
591
- n.modifier = t.node, o = t.nextConsumeToken || e.nextToken();
592
- }
593
- switch (o.type !== 9 && r(e, V.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, G(o)), o = e.nextToken(), o.type === 2 && (o = e.nextToken()), o.type) {
594
- case 10:
595
- o.value ?? r(e, V.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, G(o)), n.key = d(e, o.value || "");
596
- break;
597
- case 4:
598
- o.value ?? r(e, V.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, G(o)), n.key = c(e, o.value || "");
599
- break;
600
- case 5:
601
- o.value ?? r(e, V.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, G(o)), n.key = s(e, o.value || "");
602
- break;
603
- case 6:
604
- o.value ?? r(e, V.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, G(o)), n.key = l(e, o.value || "");
605
- break;
606
- default: {
607
- r(e, V.UNEXPECTED_EMPTY_LINKED_KEY, t.lastStartLoc, 0);
608
- let s = e.context(), c = i(7, s.offset, s.startLoc);
609
- return c.value = "", a(c, s.offset, s.startLoc), n.key = c, a(n, s.offset, s.startLoc), {
610
- nextConsumeToken: o,
611
- node: n
612
- };
613
- }
614
- }
615
- return a(n, e.currentOffset(), e.currentPosition()), { node: n };
616
- }
617
- function p(e) {
618
- let t = e.context(), n = i(2, t.currentType === 1 ? e.currentOffset() : t.offset, t.currentType === 1 ? t.endLoc : t.startLoc);
619
- n.items = [];
620
- let u = null;
621
- do {
622
- let i = u || e.nextToken();
623
- switch (u = null, i.type) {
624
- case 0:
625
- i.value ?? r(e, V.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, G(i)), n.items.push(o(e, i.value || ""));
626
- break;
627
- case 5:
628
- i.value ?? r(e, V.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, G(i)), n.items.push(s(e, i.value || ""));
629
- break;
630
- case 4:
631
- i.value ?? r(e, V.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, G(i)), n.items.push(c(e, i.value || ""));
632
- break;
633
- case 6:
634
- i.value ?? r(e, V.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, G(i)), n.items.push(l(e, i.value || ""));
635
- break;
636
- case 7: {
637
- let t = f(e);
638
- n.items.push(t.node), u = t.nextConsumeToken || null;
639
- break;
640
- }
641
- }
642
- } while (t.currentType !== 13 && t.currentType !== 1);
643
- return a(n, t.currentType === 1 ? t.lastOffset : e.currentOffset(), t.currentType === 1 ? t.lastEndLoc : e.currentPosition()), n;
644
- }
645
- function m(e, t, n, o) {
646
- let s = e.context(), c = o.items.length === 0, l = i(1, t, n);
647
- l.cases = [], l.cases.push(o);
648
- do {
649
- let t = p(e);
650
- c ||= t.items.length === 0, l.cases.push(t);
651
- } while (s.currentType !== 13);
652
- return c && r(e, V.MUST_HAVE_MESSAGES_IN_PLURAL, n, 0), a(l, e.currentOffset(), e.currentPosition()), l;
653
- }
654
- function h(e) {
655
- let t = e.context(), { offset: n, startLoc: r } = t, i = p(e);
656
- return t.currentType === 13 ? i : m(e, n, r, i);
657
- }
658
- function g(n) {
659
- let o = Pe(n, k({}, e)), s = o.context(), c = i(0, s.offset, s.startLoc);
660
- return t && c.loc && (c.loc.source = n), c.body = h(o), e.onCacheKey && (c.cacheKey = e.onCacheKey(n)), s.currentType !== 13 && r(o, V.UNEXPECTED_LEXICAL_ANALYSIS, s.lastStartLoc, 0, n[s.offset] || ""), a(c, o.currentOffset(), o.currentPosition()), c;
661
- }
662
- return { parse: g };
663
- }
664
- function G(e) {
665
- if (e.type === 13) return "EOF";
666
- let t = (e.value || "").replace(/\r?\n/gu, "\\n");
667
- return t.length > 10 ? t.slice(0, 9) + "…" : t;
668
- }
669
- function Ve(e, t = {}) {
670
- let n = {
671
- ast: e,
672
- helpers: /* @__PURE__ */ new Set()
673
- };
674
- return {
675
- context: () => n,
676
- helper: (e) => (n.helpers.add(e), e)
677
- };
678
- }
679
- function He(e, t) {
680
- for (let n = 0; n < e.length; n++) Ue(e[n], t);
681
- }
682
- function Ue(e, t) {
683
- switch (e.type) {
684
- case 1:
685
- He(e.cases, t), t.helper("plural");
686
- break;
687
- case 2:
688
- He(e.items, t);
689
- break;
690
- case 6:
691
- Ue(e.key, t), t.helper("linked"), t.helper("type");
692
- break;
693
- case 5:
694
- t.helper("interpolate"), t.helper("list");
695
- break;
696
- case 4:
697
- t.helper("interpolate"), t.helper("named");
698
- break;
699
- }
700
- }
701
- function We(e, t = {}) {
702
- let n = Ve(e);
703
- n.helper("normalize"), e.body && Ue(e.body, n);
704
- let r = n.context();
705
- e.helpers = Array.from(r.helpers);
706
- }
707
- function Ge(e) {
708
- let t = e.body;
709
- return t.type === 2 ? Ke(t) : t.cases.forEach((e) => Ke(e)), e;
710
- }
711
- function Ke(e) {
712
- if (e.items.length === 1) {
713
- let t = e.items[0];
714
- (t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
715
- } else {
716
- let t = [];
717
- for (let n = 0; n < e.items.length; n++) {
718
- let r = e.items[n];
719
- if (!(r.type === 3 || r.type === 9) || r.value == null) break;
720
- t.push(r.value);
721
- }
722
- if (t.length === e.items.length) {
723
- e.static = he(t);
724
- for (let t = 0; t < e.items.length; t++) {
725
- let n = e.items[t];
726
- (n.type === 3 || n.type === 9) && delete n.value;
727
- }
728
- }
729
- }
730
- }
731
- var qe = "minifier";
732
- function Je(t) {
733
- switch (t.t = t.type, t.type) {
734
- case 0: {
735
- let e = t;
736
- Je(e.body), e.b = e.body, delete e.body;
737
- break;
738
- }
739
- case 1: {
740
- let e = t, n = e.cases;
741
- for (let e = 0; e < n.length; e++) Je(n[e]);
742
- e.c = n, delete e.cases;
743
- break;
744
- }
745
- case 2: {
746
- let e = t, n = e.items;
747
- for (let e = 0; e < n.length; e++) Je(n[e]);
748
- e.i = n, delete e.items, e.static && (e.s = e.static, delete e.static);
749
- break;
750
- }
751
- case 3:
752
- case 9:
753
- case 8:
754
- case 7: {
755
- let e = t;
756
- e.value && (e.v = e.value, delete e.value);
757
- break;
758
- }
759
- case 6: {
760
- let e = t;
761
- Je(e.key), e.k = e.key, delete e.key, e.modifier && (Je(e.modifier), e.m = e.modifier, delete e.modifier);
762
- break;
763
- }
764
- case 5: {
765
- let e = t;
766
- e.i = e.index, delete e.index;
767
- break;
768
- }
769
- case 4: {
770
- let e = t;
771
- e.k = e.key, delete e.key;
772
- break;
773
- }
774
- default: if (e.env.NODE_ENV !== "production") throw we(V.UNHANDLED_MINIFIER_NODE_TYPE, null, {
775
- domain: qe,
776
- args: [t.type]
777
- });
778
- }
779
- delete t.type;
780
- }
781
- var Ye = "parser";
782
- function Xe(e, t) {
783
- let { filename: n, breakLineCode: r, needIndent: i } = t, a = t.location !== !1, o = {
784
- filename: n,
785
- code: "",
786
- column: 1,
787
- line: 1,
788
- offset: 0,
789
- map: void 0,
790
- breakLineCode: r,
791
- needIndent: i,
792
- indentLevel: 0
793
- };
794
- a && e.loc && (o.source = e.loc.source);
795
- let s = () => o;
796
- function c(e, t) {
797
- o.code += e;
798
- }
799
- function l(e, t = !0) {
800
- let n = t ? r : "";
801
- c(i ? n + " ".repeat(e) : n);
802
- }
803
- function u(e = !0) {
804
- let t = ++o.indentLevel;
805
- e && l(t);
806
- }
807
- function d(e = !0) {
808
- let t = --o.indentLevel;
809
- e && l(t);
810
- }
811
- function f() {
812
- l(o.indentLevel);
813
- }
814
- return {
815
- context: s,
816
- push: c,
817
- indent: u,
818
- deindent: d,
819
- newline: f,
820
- helper: (e) => `_${e}`,
821
- needIndent: () => o.needIndent
822
- };
823
- }
824
- function Ze(e, t) {
825
- let { helper: n } = e;
826
- e.push(`${n("linked")}(`), tt(e, t.key), t.modifier ? (e.push(", "), tt(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
827
- }
828
- function Qe(e, t) {
829
- let { helper: n, needIndent: r } = e;
830
- e.push(`${n("normalize")}([`), e.indent(r());
831
- let i = t.items.length;
832
- for (let n = 0; n < i && (tt(e, t.items[n]), n !== i - 1); n++) e.push(", ");
833
- e.deindent(r()), e.push("])");
834
- }
835
- function $e(e, t) {
836
- let { helper: n, needIndent: r } = e;
837
- if (t.cases.length > 1) {
838
- e.push(`${n("plural")}([`), e.indent(r());
839
- let i = t.cases.length;
840
- for (let n = 0; n < i && (tt(e, t.cases[n]), n !== i - 1); n++) e.push(", ");
841
- e.deindent(r()), e.push("])");
842
- }
843
- }
844
- function et(e, t) {
845
- t.body ? tt(e, t.body) : e.push("null");
846
- }
847
- function tt(t, n) {
848
- let { helper: r } = t;
849
- switch (n.type) {
850
- case 0:
851
- et(t, n);
852
- break;
853
- case 1:
854
- $e(t, n);
855
- break;
856
- case 2:
857
- Qe(t, n);
858
- break;
859
- case 6:
860
- Ze(t, n);
861
- break;
862
- case 8:
863
- t.push(JSON.stringify(n.value), n);
864
- break;
865
- case 7:
866
- t.push(JSON.stringify(n.value), n);
867
- break;
868
- case 5:
869
- t.push(`${r("interpolate")}(${r("list")}(${n.index}))`, n);
870
- break;
871
- case 4:
872
- t.push(`${r("interpolate")}(${r("named")}(${JSON.stringify(n.key)}))`, n);
873
- break;
874
- case 9:
875
- t.push(JSON.stringify(n.value), n);
876
- break;
877
- case 3:
878
- t.push(JSON.stringify(n.value), n);
879
- break;
880
- default: if (e.env.NODE_ENV !== "production") throw we(V.UNHANDLED_CODEGEN_NODE_TYPE, null, {
881
- domain: Ye,
882
- args: [n.type]
883
- });
884
- }
885
- }
886
- var nt = (e, t = {}) => {
887
- let n = I(t.mode) ? t.mode : "normal", r = I(t.filename) ? t.filename : "message.intl";
888
- t.sourceMap;
889
- let i = t.breakLineCode == null ? n === "arrow" ? ";" : "\n" : t.breakLineCode, a = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], s = Xe(e, {
890
- filename: r,
891
- breakLineCode: i,
892
- needIndent: a
893
- });
894
- s.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), s.indent(a), o.length > 0 && (s.push(`const { ${he(o.map((e) => `${e}: _${e}`), ", ")} } = ctx`), s.newline()), s.push("return "), tt(s, e), s.deindent(a), s.push("}"), delete e.helpers;
895
- let { code: c, map: l } = s.context();
896
- return {
897
- ast: e,
898
- code: c,
899
- map: l ? l.toJSON() : void 0
900
- };
901
- };
902
- function rt(e, t = {}) {
903
- let n = k({}, t), r = !!n.jit, i = !!n.minify, a = n.optimize == null ? !0 : n.optimize, o = Be(n).parse(e);
904
- return r ? (a && Ge(o), i && Je(o), {
905
- ast: o,
906
- code: ""
907
- }) : (We(o, n), nt(o, n));
908
- }
909
- //#endregion
910
- //#region node_modules/@intlify/core-base/dist/core-base.mjs
911
- t();
912
- function it() {
913
- typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (M().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (M().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
914
- }
915
- function K(e) {
916
- return R(e) && mt(e) === 0 && (N(e, "b") || N(e, "body"));
917
- }
918
- var at = ["b", "body"];
919
- function ot(e) {
920
- return xt(e, at);
921
- }
922
- var st = ["c", "cases"];
923
- function ct(e) {
924
- return xt(e, st, []);
925
- }
926
- var lt = ["s", "static"];
927
- function ut(e) {
928
- return xt(e, lt);
929
- }
930
- var dt = ["i", "items"];
931
- function ft(e) {
932
- return xt(e, dt, []);
933
- }
934
- var pt = ["t", "type"];
935
- function mt(e) {
936
- return xt(e, pt);
937
- }
938
- var ht = ["v", "value"];
939
- function gt(e, t) {
940
- let n = xt(e, ht);
941
- if (n != null) return n;
942
- throw Ct(t);
943
- }
944
- var _t = ["m", "modifier"];
945
- function vt(e) {
946
- return xt(e, _t);
947
- }
948
- var yt = ["k", "key"];
949
- function bt(e) {
950
- let t = xt(e, yt);
951
- if (t) return t;
952
- throw Ct(6);
953
- }
954
- function xt(e, t, n) {
955
- for (let n = 0; n < t.length; n++) {
956
- let r = t[n];
957
- if (N(e, r) && e[r] != null) return e[r];
958
- }
959
- return n;
960
- }
961
- var St = [
962
- ...at,
963
- ...st,
964
- ...lt,
965
- ...dt,
966
- ...yt,
967
- ..._t,
968
- ...ht,
969
- ...pt
970
- ];
971
- function Ct(e) {
972
- return /* @__PURE__ */ Error(`unhandled node type: ${e}`);
973
- }
974
- function wt(e) {
975
- return (t) => Tt(t, e);
976
- }
977
- function Tt(e, t) {
978
- let n = ot(t);
979
- if (n == null) throw Ct(0);
980
- if (mt(n) === 1) {
981
- let t = ct(n);
982
- return e.plural(t.reduce((t, n) => [...t, Et(e, n)], []));
983
- } else return Et(e, n);
984
- }
985
- function Et(e, t) {
986
- let n = ut(t);
987
- if (n != null) return e.type === "text" ? n : e.normalize([n]);
988
- {
989
- let n = ft(t).reduce((t, n) => [...t, Dt(e, n)], []);
990
- return e.normalize(n);
991
- }
992
- }
993
- function Dt(e, t) {
994
- let n = mt(t);
995
- switch (n) {
996
- case 3: return gt(t, n);
997
- case 9: return gt(t, n);
998
- case 4: {
999
- let r = t;
1000
- if (N(r, "k") && r.k) return e.interpolate(e.named(r.k));
1001
- if (N(r, "key") && r.key) return e.interpolate(e.named(r.key));
1002
- throw Ct(n);
1003
- }
1004
- case 5: {
1005
- let r = t;
1006
- if (N(r, "i") && D(r.i)) return e.interpolate(e.list(r.i));
1007
- if (N(r, "index") && D(r.index)) return e.interpolate(e.list(r.index));
1008
- throw Ct(n);
1009
- }
1010
- case 6: {
1011
- let n = t, r = vt(n), i = bt(n);
1012
- return e.linked(Dt(e, i), r ? Dt(e, r) : void 0, e.type);
1013
- }
1014
- case 7: return gt(t, n);
1015
- case 8: return gt(t, n);
1016
- default: throw Error(`unhandled node on format message part: ${n}`);
1017
- }
1018
- }
1019
- var Ot = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
1020
- function kt(e, t) {
1021
- t && De(e) && g(C(Ot, { source: e }));
1022
- }
1023
- var At = (e) => e, jt = A();
1024
- function Mt(e, t = {}) {
1025
- let n = !1, r = t.onError || Te;
1026
- return t.onError = (e) => {
1027
- n = !0, r(e);
1028
- }, {
1029
- ...rt(e, t),
1030
- detectError: n
1031
- };
1032
- }
1033
- /* #__NO_SIDE_EFFECTS__ */
1034
- function Nt(t, n) {
1035
- if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && I(t)) {
1036
- let r = L(n.warnHtmlMessage) ? n.warnHtmlMessage : !0;
1037
- e.env.NODE_ENV !== "production" && kt(t, r);
1038
- let i = (n.onCacheKey || At)(t), a = jt[i];
1039
- if (a) return a;
1040
- let { ast: o, detectError: s } = Mt(t, {
1041
- ...n,
1042
- location: e.env.NODE_ENV !== "production",
1043
- jit: !0
1044
- }), c = wt(o);
1045
- return s ? c : jt[i] = c;
1046
- } else {
1047
- if (e.env.NODE_ENV !== "production" && !K(t)) return g(`the message that is resolve with key '${n.key}' is not supported for jit compilation`), (() => t);
1048
- let r = t.cacheKey;
1049
- return r ? jt[r] || (jt[r] = wt(t)) : wt(t);
1050
- }
1051
- }
1052
- var Pt = null;
1053
- function Ft(e) {
1054
- Pt = e;
1055
- }
1056
- function It(e, t, n) {
1057
- Pt && Pt.emit("i18n:init", {
1058
- timestamp: Date.now(),
1059
- i18n: e,
1060
- version: t,
1061
- meta: n
1062
- });
1063
- }
1064
- var Lt = /* #__PURE__*/ Rt("function:translate");
1065
- function Rt(e) {
1066
- return (t) => Pt && Pt.emit(e, t);
1067
- }
1068
- var q = {
1069
- INVALID_ARGUMENT: 17,
1070
- INVALID_DATE_ARGUMENT: 18,
1071
- INVALID_ISO_DATE_ARGUMENT: 19,
1072
- NOT_SUPPORT_NON_STRING_MESSAGE: 20,
1073
- NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
1074
- NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
1075
- NOT_SUPPORT_LOCALE_TYPE: 23
1076
- };
1077
- function J(t) {
1078
- return we(t, null, e.env.NODE_ENV === "production" ? void 0 : { messages: zt });
1079
- }
1080
- var zt = {
1081
- [q.INVALID_ARGUMENT]: "Invalid arguments",
1082
- [q.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
1083
- [q.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
1084
- [q.NOT_SUPPORT_NON_STRING_MESSAGE]: "Not support non-string message",
1085
- [q.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: "cannot support promise value",
1086
- [q.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
1087
- [q.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
1088
- };
1089
- function Bt(e, t) {
1090
- return t.locale == null ? Ht(e.locale) : Ht(t.locale);
1091
- }
1092
- var Vt;
1093
- function Ht(e) {
1094
- if (I(e)) return e;
1095
- if (F(e)) {
1096
- if (e.resolvedOnce && Vt != null) return Vt;
1097
- if (e.constructor.name === "Function") {
1098
- let t = e();
1099
- if (z(t)) throw J(q.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
1100
- return Vt = t;
1101
- } else throw J(q.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
1102
- } else throw J(q.NOT_SUPPORT_LOCALE_TYPE);
1103
- }
1104
- function Ut(e, t, n) {
1105
- return [.../* @__PURE__ */ new Set([n, ...P(t) ? t : R(t) ? Object.keys(t) : I(t) ? [t] : [n]])];
1106
- }
1107
- function Wt(e, t, n) {
1108
- let r = I(n) ? n : sn, i = e;
1109
- i.__localeChainCache ||= /* @__PURE__ */ new Map();
1110
- let a = i.__localeChainCache.get(r);
1111
- if (!a) {
1112
- a = [];
1113
- let e = [n];
1114
- for (; P(e);) e = Gt(a, e, t);
1115
- let o = P(t) || !B(t) ? t : t.default ? t.default : null;
1116
- e = I(o) ? [o] : o, P(e) && Gt(a, e, !1), i.__localeChainCache.set(r, a);
1117
- }
1118
- return a;
1119
- }
1120
- function Gt(e, t, n) {
1121
- let r = !0;
1122
- for (let i = 0; i < t.length && L(r); i++) {
1123
- let a = t[i];
1124
- I(a) && (r = Kt(e, t[i], n));
1125
- }
1126
- return r;
1127
- }
1128
- function Kt(e, t, n) {
1129
- let r, i = t.split("-");
1130
- do
1131
- r = qt(e, i.join("-"), n), i.splice(-1, 1);
1132
- while (i.length && r === !0);
1133
- return r;
1134
- }
1135
- function qt(e, t, n) {
1136
- let r = !1;
1137
- if (!e.includes(t) && (r = !0, t)) {
1138
- r = t[t.length - 1] !== "!";
1139
- let i = t.replace(/!/g, "");
1140
- e.push(i), (P(n) || B(n)) && n[i] && (r = n[i]);
1141
- }
1142
- return r;
1143
- }
1144
- var Jt = [];
1145
- Jt[0] = {
1146
- w: [0],
1147
- i: [3, 0],
1148
- "[": [4],
1149
- o: [7]
1150
- }, Jt[1] = {
1151
- w: [1],
1152
- ".": [2],
1153
- "[": [4],
1154
- o: [7]
1155
- }, Jt[2] = {
1156
- w: [2],
1157
- i: [3, 0],
1158
- 0: [3, 0]
1159
- }, Jt[3] = {
1160
- i: [3, 0],
1161
- 0: [3, 0],
1162
- w: [1, 1],
1163
- ".": [2, 1],
1164
- "[": [4, 1],
1165
- o: [7, 1]
1166
- }, Jt[4] = {
1167
- "'": [5, 0],
1168
- "\"": [6, 0],
1169
- "[": [4, 2],
1170
- "]": [1, 3],
1171
- o: 8,
1172
- l: [4, 0]
1173
- }, Jt[5] = {
1174
- "'": [4, 0],
1175
- o: 8,
1176
- l: [5, 0]
1177
- }, Jt[6] = {
1178
- "\"": [4, 0],
1179
- o: 8,
1180
- l: [6, 0]
1181
- };
1182
- var Yt = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
1183
- function Xt(e) {
1184
- return Yt.test(e);
1185
- }
1186
- function Zt(e) {
1187
- let t = e.charCodeAt(0);
1188
- return t === e.charCodeAt(e.length - 1) && (t === 34 || t === 39) ? e.slice(1, -1) : e;
1189
- }
1190
- function Qt(e) {
1191
- if (e == null) return "o";
1192
- switch (e.charCodeAt(0)) {
1193
- case 91:
1194
- case 93:
1195
- case 46:
1196
- case 34:
1197
- case 39: return e;
1198
- case 95:
1199
- case 36:
1200
- case 45: return "i";
1201
- case 9:
1202
- case 10:
1203
- case 13:
1204
- case 160:
1205
- case 65279:
1206
- case 8232:
1207
- case 8233: return "w";
1208
- }
1209
- return "i";
1210
- }
1211
- function $t(e) {
1212
- let t = e.trim();
1213
- return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Xt(t) ? Zt(t) : "*" + t;
1214
- }
1215
- function en(e) {
1216
- let t = [], n = -1, r = 0, i = 0, a, o, s, c, l, u, d, f = [];
1217
- f[0] = () => {
1218
- o === void 0 ? o = s : o += s;
1219
- }, f[1] = () => {
1220
- o !== void 0 && (t.push(o), o = void 0);
1221
- }, f[2] = () => {
1222
- f[0](), i++;
1223
- }, f[3] = () => {
1224
- if (i > 0) i--, r = 4, f[0]();
1225
- else {
1226
- if (i = 0, o === void 0 || (o = $t(o), o === !1)) return !1;
1227
- f[1]();
1228
- }
1229
- };
1230
- function p() {
1231
- let t = e[n + 1];
1232
- if (r === 5 && t === "'" || r === 6 && t === "\"") return n++, s = "\\" + t, f[0](), !0;
1233
- }
1234
- for (; r !== null;) if (n++, a = e[n], !(a === "\\" && p())) {
1235
- if (c = Qt(a), d = Jt[r], l = d[c] || d.l || 8, l === 8 || (r = l[0], l[1] !== void 0 && (u = f[l[1]], u && (s = a, u() === !1)))) return;
1236
- if (r === 7) return t;
1237
- }
1238
- }
1239
- var tn = /* @__PURE__ */ new Map();
1240
- function nn(e, t) {
1241
- return R(e) ? e[t] : null;
1242
- }
1243
- function rn(e, t) {
1244
- if (!R(e)) return null;
1245
- let n = tn.get(t);
1246
- if (n || (n = en(t), n && tn.set(t, n)), !n) return null;
1247
- let r = n.length, i = e, a = 0;
1248
- for (; a < r;) {
1249
- let e = n[a];
1250
- if (St.includes(e) && K(i) || !R(i) || !N(i, e)) return null;
1251
- let t = i[e];
1252
- if (t === void 0 || F(i)) return null;
1253
- i = t, a++;
1254
- }
1255
- return i;
1256
- }
1257
- var Y = {
1258
- NOT_FOUND_KEY: 1,
1259
- FALLBACK_TO_TRANSLATE: 2,
1260
- CANNOT_FORMAT_NUMBER: 3,
1261
- FALLBACK_TO_NUMBER_FORMAT: 4,
1262
- CANNOT_FORMAT_DATE: 5,
1263
- FALLBACK_TO_DATE_FORMAT: 6,
1264
- EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7,
1265
- INVALID_NUMBER_ARGUMENT: 8,
1266
- INVALID_DATE_ARGUMENT: 9
1267
- }, an = {
1268
- [Y.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
1269
- [Y.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
1270
- [Y.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
1271
- [Y.FALLBACK_TO_NUMBER_FORMAT]: "Fall back to number format '{key}' key with '{target}' locale.",
1272
- [Y.CANNOT_FORMAT_DATE]: "Cannot format a date value due to not supported Intl.DateTimeFormat.",
1273
- [Y.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale.",
1274
- [Y.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.",
1275
- [Y.INVALID_NUMBER_ARGUMENT]: "Invalid argument for number formatting: expected a number but received '{value}'.",
1276
- [Y.INVALID_DATE_ARGUMENT]: "Invalid argument for datetime formatting: expected a Date, number, or ISO string but received '{value}'."
1277
- };
1278
- function X(e, ...t) {
1279
- return C(an[e], ...t);
1280
- }
1281
- var on = "11.4.6", sn = "en-US", cn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
1282
- function ln() {
1283
- return {
1284
- upper: (e, t) => t === "text" && I(e) ? e.toUpperCase() : t === "vnode" && R(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
1285
- lower: (e, t) => t === "text" && I(e) ? e.toLowerCase() : t === "vnode" && R(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
1286
- capitalize: (e, t) => t === "text" && I(e) ? cn(e) : t === "vnode" && R(e) && "__v_isVNode" in e ? cn(e.children) : e
1287
- };
1288
- }
1289
- var un;
1290
- function dn(e) {
1291
- un = e;
1292
- }
1293
- var fn;
1294
- function pn(e) {
1295
- fn = e;
1296
- }
1297
- var mn;
1298
- function hn(e) {
1299
- mn = e;
1300
- }
1301
- var gn = null, _n = /* @__NO_SIDE_EFFECTS__ */ () => gn, vn = null, yn = (e) => {
1302
- vn = e;
1303
- }, bn = () => vn, xn = 0;
1304
- function Sn(t = {}) {
1305
- let n = F(t.onWarn) ? t.onWarn : g, r = I(t.version) ? t.version : on, i = I(t.locale) || F(t.locale) ? t.locale : sn, a = F(i) ? sn : i, o = P(t.fallbackLocale) || B(t.fallbackLocale) || I(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : a, s = B(t.messages) ? t.messages : Cn(a), c = B(t.datetimeFormats) ? t.datetimeFormats : Cn(a), l = B(t.numberFormats) ? t.numberFormats : Cn(a), u = k(A(), t.modifiers, ln()), d = t.pluralRules || A(), f = F(t.missing) ? t.missing : null, p = L(t.missingWarn) || ee(t.missingWarn) ? t.missingWarn : !0, m = L(t.fallbackWarn) || ee(t.fallbackWarn) ? t.fallbackWarn : !0, h = !!t.fallbackFormat, _ = !!t.unresolving, y = F(t.postTranslation) ? t.postTranslation : null, b = B(t.processor) ? t.processor : null, x = L(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, S = !!t.escapeParameter, C = F(t.messageCompiler) ? t.messageCompiler : un;
1306
- e.env.NODE_ENV !== "production" && F(t.messageCompiler) && v(X(Y.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
1307
- let w = F(t.messageResolver) ? t.messageResolver : fn || nn, T = F(t.localeFallbacker) ? t.localeFallbacker : mn || Ut, E = R(t.fallbackContext) ? t.fallbackContext : void 0, D = t, O = R(D.__datetimeFormatters) ? D.__datetimeFormatters : /* @__PURE__ */ new Map(), te = R(D.__numberFormatters) ? D.__numberFormatters : /* @__PURE__ */ new Map(), ne = R(D.__meta) ? D.__meta : {};
1308
- xn++;
1309
- let j = {
1310
- version: r,
1311
- cid: xn,
1312
- locale: i,
1313
- fallbackLocale: o,
1314
- messages: s,
1315
- modifiers: u,
1316
- pluralRules: d,
1317
- missing: f,
1318
- missingWarn: p,
1319
- fallbackWarn: m,
1320
- fallbackFormat: h,
1321
- unresolving: _,
1322
- postTranslation: y,
1323
- processor: b,
1324
- warnHtmlMessage: x,
1325
- escapeParameter: S,
1326
- messageCompiler: C,
1327
- messageResolver: w,
1328
- localeFallbacker: T,
1329
- fallbackContext: E,
1330
- onWarn: n,
1331
- __meta: ne
1332
- };
1333
- return j.datetimeFormats = c, j.numberFormats = l, j.__datetimeFormatters = O, j.__numberFormatters = te, e.env.NODE_ENV !== "production" && (j.__v_emitter = D.__v_emitter == null ? void 0 : D.__v_emitter), (e.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && It(j, r, ne), j;
1334
- }
1335
- var Cn = (e) => ({ [e]: A() });
1336
- function wn(e, t) {
1337
- return e instanceof RegExp ? e.test(t) : e;
1338
- }
1339
- function Tn(e, t) {
1340
- return e instanceof RegExp ? e.test(t) : e;
1341
- }
1342
- function En(t, n, r, i, a) {
1343
- let { missing: o, onWarn: s } = t;
1344
- if (e.env.NODE_ENV !== "production") {
1345
- let e = t.__v_emitter;
1346
- e && e.emit("missing", {
1347
- locale: r,
1348
- key: n,
1349
- type: a,
1350
- groupId: `${a}:${n}`
1351
- });
1352
- }
1353
- if (o !== null) {
1354
- let e = o(t, r, n, a);
1355
- return I(e) ? e : n;
1356
- } else return e.env.NODE_ENV !== "production" && Tn(i, n) && s(X(Y.NOT_FOUND_KEY, {
1357
- key: n,
1358
- locale: r
1359
- })), n;
1360
- }
1361
- function Dn(e, t, n) {
1362
- let r = e;
1363
- r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
1364
- }
1365
- function On(e, t) {
1366
- return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
1367
- }
1368
- function kn(e, t) {
1369
- let n = t.indexOf(e);
1370
- if (n === -1) return !1;
1371
- for (let r = n + 1; r < t.length; r++) if (On(e, t[r])) return !0;
1372
- return !1;
1373
- }
1374
- var An = typeof Intl < "u", jn = {
1375
- dateTimeFormat: An && Intl.DateTimeFormat !== void 0,
1376
- numberFormat: An && Intl.NumberFormat !== void 0
1377
- };
1378
- function Mn(t, ...n) {
1379
- let { datetimeFormats: r, unresolving: i, fallbackLocale: a, onWarn: o, localeFallbacker: s } = t, { __datetimeFormatters: c } = t;
1380
- if (e.env.NODE_ENV !== "production" && !jn.dateTimeFormat) return o(X(Y.CANNOT_FORMAT_DATE)), "";
1381
- if (!I(n[0]) && !O(n[0]) && !D(n[0])) return e.env.NODE_ENV !== "production" && o(X(Y.INVALID_DATE_ARGUMENT, { value: String(n[0]) })), "";
1382
- let [l, u, d, f] = Pn(...n), p = L(d.missingWarn) ? d.missingWarn : t.missingWarn, m = L(d.fallbackWarn) ? d.fallbackWarn : t.fallbackWarn, h = !!d.part, g = Bt(t, d), _ = s(t, a, g);
1383
- if (!I(l) || l === "") {
1384
- let e = new Intl.DateTimeFormat(g.replace(/!/g, ""), f);
1385
- return h ? e.formatToParts(u) : e.format(u);
1386
- }
1387
- let v = {}, y, b = null, x = g, S = null, C = "datetime format";
1388
- for (let n = 0; n < _.length; n++) {
1389
- if (y = S = _[n], e.env.NODE_ENV !== "production" && g !== y && wn(m, l) && o(X(Y.FALLBACK_TO_DATE_FORMAT, {
1390
- key: l,
1391
- target: y
1392
- })), e.env.NODE_ENV !== "production" && g !== y) {
1393
- let e = t.__v_emitter;
1394
- e && e.emit("fallback", {
1395
- type: C,
1396
- key: l,
1397
- from: x,
1398
- to: S,
1399
- groupId: `${C}:${l}`
1400
- });
1401
- }
1402
- if (v = r[y] || {}, b = v[l], B(b)) break;
1403
- En(t, l, y, p, C), x = S;
1404
- }
1405
- if (!B(b) || !I(y)) return i ? -1 : l;
1406
- let w = `${y}__${l}`;
1407
- te(f) || (w = `${w}__${JSON.stringify(f)}`);
1408
- let T = c.get(w);
1409
- return T || (T = new Intl.DateTimeFormat(y, k({}, b, f)), c.set(w, T)), h ? T.formatToParts(u) : T.format(u);
1410
- }
1411
- var Nn = [
1412
- "localeMatcher",
1413
- "weekday",
1414
- "era",
1415
- "year",
1416
- "month",
1417
- "day",
1418
- "hour",
1419
- "minute",
1420
- "second",
1421
- "timeZoneName",
1422
- "formatMatcher",
1423
- "hour12",
1424
- "timeZone",
1425
- "dateStyle",
1426
- "timeStyle",
1427
- "calendar",
1428
- "dayPeriod",
1429
- "numberingSystem",
1430
- "hourCycle",
1431
- "fractionalSecondDigits"
1432
- ];
1433
- function Pn(...e) {
1434
- let [t, n, r, i] = e, a = A(), o = A(), s;
1435
- if (I(t)) {
1436
- let e = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
1437
- if (!e) throw J(q.INVALID_ISO_DATE_ARGUMENT);
1438
- let n = e[3] ? e[3].trim().startsWith("T") ? `${e[1].trim()}${e[3].trim()}` : `${e[1].trim()}T${e[3].trim()}` : e[1].trim();
1439
- s = new Date(n);
1440
- try {
1441
- s.toISOString();
1442
- } catch {
1443
- throw J(q.INVALID_ISO_DATE_ARGUMENT);
1444
- }
1445
- } else if (O(t)) {
1446
- if (isNaN(t.getTime())) throw J(q.INVALID_DATE_ARGUMENT);
1447
- s = t;
1448
- } else if (D(t)) s = t;
1449
- else throw J(q.INVALID_ARGUMENT);
1450
- return I(n) ? a.key = n : B(n) && Object.keys(n).forEach((e) => {
1451
- Nn.includes(e) ? o[e] = n[e] : a[e] = n[e];
1452
- }), I(r) ? a.locale = r : B(r) && (o = r), B(i) && (o = i), [
1453
- a.key || "",
1454
- s,
1455
- a,
1456
- o
1457
- ];
1458
- }
1459
- function Fn(e, t, n) {
1460
- let r = e;
1461
- for (let e in n) {
1462
- let n = `${t}__${e}`;
1463
- r.__datetimeFormatters.has(n) && r.__datetimeFormatters.delete(n);
1464
- }
1465
- }
1466
- function In(t, ...n) {
1467
- let { numberFormats: r, unresolving: i, fallbackLocale: a, onWarn: o, localeFallbacker: s } = t, { __numberFormatters: c } = t;
1468
- if (e.env.NODE_ENV !== "production" && !jn.numberFormat) return o(X(Y.CANNOT_FORMAT_NUMBER)), "";
1469
- if (!D(n[0])) return e.env.NODE_ENV !== "production" && o(X(Y.INVALID_NUMBER_ARGUMENT, { value: String(n[0]) })), "";
1470
- let [l, u, d, f] = Rn(...n), p = L(d.missingWarn) ? d.missingWarn : t.missingWarn, m = L(d.fallbackWarn) ? d.fallbackWarn : t.fallbackWarn, h = !!d.part, g = Bt(t, d), _ = s(t, a, g);
1471
- if (!I(l) || l === "") {
1472
- let e = new Intl.NumberFormat(g.replace(/!/g, ""), f);
1473
- return h ? e.formatToParts(u) : e.format(u);
1474
- }
1475
- let v = {}, y, b = null, x = g, S = null, C = "number format";
1476
- for (let n = 0; n < _.length; n++) {
1477
- if (y = S = _[n], e.env.NODE_ENV !== "production" && g !== y && wn(m, l) && o(X(Y.FALLBACK_TO_NUMBER_FORMAT, {
1478
- key: l,
1479
- target: y
1480
- })), e.env.NODE_ENV !== "production" && g !== y) {
1481
- let e = t.__v_emitter;
1482
- e && e.emit("fallback", {
1483
- type: C,
1484
- key: l,
1485
- from: x,
1486
- to: S,
1487
- groupId: `${C}:${l}`
1488
- });
1489
- }
1490
- if (v = r[y] || {}, b = v[l], B(b)) break;
1491
- En(t, l, y, p, C), x = S;
1492
- }
1493
- if (!B(b) || !I(y)) return i ? -1 : l;
1494
- let w = `${y}__${l}`;
1495
- te(f) || (w = `${w}__${JSON.stringify(f)}`);
1496
- let T = c.get(w);
1497
- return T || (T = new Intl.NumberFormat(y, k({}, b, f)), c.set(w, T)), h ? T.formatToParts(u) : T.format(u);
1498
- }
1499
- var Ln = [
1500
- "localeMatcher",
1501
- "style",
1502
- "currency",
1503
- "currencyDisplay",
1504
- "currencySign",
1505
- "useGrouping",
1506
- "minimumIntegerDigits",
1507
- "minimumFractionDigits",
1508
- "maximumFractionDigits",
1509
- "minimumSignificantDigits",
1510
- "maximumSignificantDigits",
1511
- "compactDisplay",
1512
- "notation",
1513
- "signDisplay",
1514
- "unit",
1515
- "unitDisplay",
1516
- "roundingMode",
1517
- "roundingPriority",
1518
- "roundingIncrement",
1519
- "trailingZeroDisplay"
1520
- ];
1521
- function Rn(...e) {
1522
- let [t, n, r, i] = e, a = A(), o = A();
1523
- if (!D(t)) throw J(q.INVALID_ARGUMENT);
1524
- let s = t;
1525
- return I(n) ? a.key = n : B(n) && Object.keys(n).forEach((e) => {
1526
- Ln.includes(e) ? o[e] = n[e] : a[e] = n[e];
1527
- }), I(r) ? a.locale = r : B(r) && (o = r), B(i) && (o = i), [
1528
- a.key || "",
1529
- s,
1530
- a,
1531
- o
1532
- ];
1533
- }
1534
- function zn(e, t, n) {
1535
- let r = e;
1536
- for (let e in n) {
1537
- let n = `${t}__${e}`;
1538
- r.__numberFormatters.has(n) && r.__numberFormatters.delete(n);
1539
- }
1540
- }
1541
- var Bn = (e) => e, Vn = (e) => "", Hn = "text", Un = (e) => e.length === 0 ? "" : he(e), Wn = me;
1542
- function Gn(e, t) {
1543
- return e = Math.abs(e), t === 2 ? e === 1 ? 0 : 1 : Math.min(e, 2);
1544
- }
1545
- function Kn(e) {
1546
- let t = D(e.pluralIndex) ? e.pluralIndex : -1;
1547
- return D(e.named?.count) ? e.named.count : D(e.named?.n) ? e.named.n : t;
1548
- }
1549
- function qn(e = {}) {
1550
- let t = e.locale, n = Kn(e), r = I(t) && F(e.pluralRules?.[t]) ? e.pluralRules[t] : Gn, i = r === Gn ? void 0 : Gn, a = (e) => e[r(n, e.length, i)], o = e.list || [], s = (e) => o[e], c = e.named || A();
1551
- D(e.pluralIndex) && (c.count ||= e.pluralIndex, c.n ||= e.pluralIndex);
1552
- let l = (e) => c[e];
1553
- function u(t, n) {
1554
- return (F(e.messages) ? e.messages(t, !!n) : R(e.messages) ? e.messages[t] : !1) || (e.parent ? e.parent.message(t) : Vn);
1555
- }
1556
- let d = (t) => e.modifiers ? e.modifiers[t] : Bn, f = F(e.processor?.normalize) ? e.processor.normalize : Un, p = F(e.processor?.interpolate) ? e.processor.interpolate : Wn, m = {
1557
- list: s,
1558
- named: l,
1559
- plural: a,
1560
- linked: (e, ...t) => {
1561
- let [n, r] = t, i = "text", a = "";
1562
- t.length === 1 ? R(n) ? (a = n.modifier || a, i = n.type || i) : I(n) && (a = n || a) : t.length === 2 && (I(n) && (a = n || a), I(r) && (i = r || i));
1563
- let o = u(e, !0)(m), s = o === "" || o === void 0 ? e : o, c = i === "vnode" && P(s) && a ? s[0] : s;
1564
- return a ? d(a)(c, i) : c;
1565
- },
1566
- message: u,
1567
- type: I(e.processor?.type) ? e.processor.type : Hn,
1568
- interpolate: p,
1569
- normalize: f,
1570
- values: k(A(), o, c)
1571
- };
1572
- return m;
1573
- }
1574
- var Jn = () => "", Z = (e) => F(e);
1575
- function Yn(t, ...n) {
1576
- let { fallbackFormat: r, postTranslation: i, unresolving: a, messageCompiler: o, fallbackLocale: s, messages: c } = t, [l, u] = er(...n), d = L(u.missingWarn) ? u.missingWarn : t.missingWarn, f = L(u.fallbackWarn) ? u.fallbackWarn : t.fallbackWarn, p = L(u.escapeParameter) ? u.escapeParameter : t.escapeParameter, m = !!u.resolvedMessage, h = I(u.default) || L(u.default) ? L(u.default) ? o ? l : () => l : u.default : r ? o ? l : () => l : null, _ = r || h != null && (I(h) || F(h)), v = Bt(t, u);
1577
- p && Xn(u);
1578
- let [y, b, x] = m ? [
1579
- l,
1580
- v,
1581
- c[v] || A()
1582
- ] : Zn(t, l, v, s, f, d), S = y, C = l;
1583
- if (!m && !(I(S) || K(S) || Z(S)) && _ && (S = h, C = S), !m && (!(I(S) || K(S) || Z(S)) || !I(b))) return a ? -1 : l;
1584
- if (e.env.NODE_ENV !== "production" && I(S) && t.messageCompiler == null) return g(`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 '${l}'.`), l;
1585
- let w = !1, T = Z(S) ? S : Qn(t, l, b, S, C, () => {
1586
- w = !0;
1587
- });
1588
- if (w) return S;
1589
- let E = $n(t, T, qn(rr(t, b, x, u))), D = i ? i(E, l) : E;
1590
- if (p && I(D) && (D = ue(D)), e.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
1591
- let e = {
1592
- timestamp: Date.now(),
1593
- key: I(l) ? l : Z(S) ? S.key : "",
1594
- locale: b || (Z(S) ? S.locale : ""),
1595
- format: I(S) ? S : Z(S) ? S.source : "",
1596
- message: D
1597
- };
1598
- e.meta = k({}, t.__meta, /* @__PURE__ */ _n() || {}), Lt(e);
1599
- }
1600
- return D;
1601
- }
1602
- function Xn(e) {
1603
- P(e.list) ? e.list = e.list.map((e) => I(e) ? re(e) : e) : R(e.named) && Object.keys(e.named).forEach((t) => {
1604
- I(e.named[t]) && (e.named[t] = re(e.named[t]));
1605
- });
1606
- }
1607
- function Zn(t, n, r, i, a, o) {
1608
- let { messages: s, onWarn: c, messageResolver: l, localeFallbacker: u } = t, d = u(t, i, r), f = A(), p, m = null, h = r, g = null, _ = "translate";
1609
- for (let i = 0; i < d.length; i++) {
1610
- p = g = d[i], e.env.NODE_ENV !== "production" && r !== p && !On(r, p) && wn(a, n) && c(X(Y.FALLBACK_TO_TRANSLATE, {
1611
- key: n,
1612
- target: p
1613
- }));
1614
- let u = e.env.NODE_ENV === "production" ? void 0 : t.__v_emitter;
1615
- e.env.NODE_ENV !== "production" && r !== p && u && u.emit("fallback", {
1616
- type: _,
1617
- key: n,
1618
- from: h,
1619
- to: g,
1620
- groupId: `${_}:${n}`
1621
- }), f = s[p] || A();
1622
- let v = null, S, C;
1623
- if (e.env.NODE_ENV !== "production" && y && u && (v = window.performance.now(), S = "intlify-message-resolve-start", C = "intlify-message-resolve-end", b && b(S)), (m = l(f, n)) === null && (m = f[n]), e.env.NODE_ENV !== "production" && y && u) {
1624
- let e = window.performance.now();
1625
- u && v && m && u.emit("message-resolve", {
1626
- type: "message-resolve",
1627
- key: n,
1628
- message: m,
1629
- time: e - v,
1630
- groupId: `${_}:${n}`
1631
- }), S && C && b && x && (b(C), x("intlify message resolve", S, C));
1632
- }
1633
- if (I(m) || K(m) || Z(m)) break;
1634
- if (!kn(p, d)) {
1635
- let e = En(t, n, p, o, _);
1636
- e !== n && (m = e);
1637
- }
1638
- h = g;
1639
- }
1640
- return [
1641
- m,
1642
- p,
1643
- f
1644
- ];
1645
- }
1646
- function Qn(t, n, r, i, a, o) {
1647
- let { messageCompiler: s, warnHtmlMessage: c } = t;
1648
- if (Z(i)) {
1649
- let e = i;
1650
- return e.locale = e.locale || r, e.key = e.key || n, e;
1651
- }
1652
- if (s == null) {
1653
- let e = (() => i);
1654
- return e.locale = r, e.key = n, e;
1655
- }
1656
- let l = e.env.NODE_ENV === "production" ? void 0 : t.__v_emitter, u = null, d, f;
1657
- e.env.NODE_ENV !== "production" && y && l && (u = window.performance.now(), d = "intlify-message-compilation-start", f = "intlify-message-compilation-end", b && b(d));
1658
- let p = s(i, tr(t, r, a, i, c, o));
1659
- if (e.env.NODE_ENV !== "production" && y && l) {
1660
- let e = window.performance.now();
1661
- l && u && l.emit("message-compilation", {
1662
- type: "message-compilation",
1663
- message: i,
1664
- time: e - u,
1665
- groupId: `translate:${n}`
1666
- }), d && f && b && x && (b(f), x("intlify message compilation", d, f));
1667
- }
1668
- return p.locale = r, p.key = n, p.source = i, p;
1669
- }
1670
- function $n(t, n, r) {
1671
- let i = e.env.NODE_ENV === "production" ? void 0 : t.__v_emitter, a = null, o, s;
1672
- e.env.NODE_ENV !== "production" && y && i && (a = window.performance.now(), o = "intlify-message-evaluation-start", s = "intlify-message-evaluation-end", b && b(o));
1673
- let c = n(r);
1674
- if (e.env.NODE_ENV !== "production" && y && i) {
1675
- let e = window.performance.now();
1676
- i && a && i.emit("message-evaluation", {
1677
- type: "message-evaluation",
1678
- value: c,
1679
- time: e - a,
1680
- groupId: `translate:${n.key}`
1681
- }), o && s && b && x && (b(s), x("intlify message evaluation", o, s));
1682
- }
1683
- return c;
1684
- }
1685
- function er(...e) {
1686
- let [t, n, r] = e, i = A();
1687
- if (!I(t) && !D(t) && !Z(t) && !K(t)) throw J(q.INVALID_ARGUMENT);
1688
- let a = D(t) ? String(t) : (Z(t), t);
1689
- return D(n) ? i.plural = n : I(n) ? i.default = n : B(n) && !te(n) ? i.named = n : P(n) && (i.list = n), D(r) ? i.plural = r : I(r) ? i.default = r : B(r) && k(i, r), [a, i];
1690
- }
1691
- function tr(t, n, r, i, a, o) {
1692
- return {
1693
- locale: n,
1694
- key: r,
1695
- warnHtmlMessage: a,
1696
- onError: (n) => {
1697
- if (o && o(n), e.env.NODE_ENV !== "production") {
1698
- let e = nr(i), a = n.location && e && _e(e, n.location.start.offset, n.location.end.offset), o = t.__v_emitter;
1699
- o && e && o.emit("compile-error", {
1700
- message: e,
1701
- error: n.message,
1702
- start: n.location && n.location.start.offset,
1703
- end: n.location && n.location.end.offset,
1704
- groupId: `translate:${r}`
1705
- });
1706
- let s = `Message compilation error: ${n.message}`;
1707
- throw SyntaxError(a ? `${s}\n${a}` : s);
1708
- }
1709
- throw n;
1710
- },
1711
- onCacheKey: (e) => T(n, r, e)
1712
- };
1713
- }
1714
- function nr(e) {
1715
- if (I(e)) return e;
1716
- if (e.loc && e.loc.source) return e.loc.source;
1717
- }
1718
- function rr(e, t, n, r) {
1719
- let { modifiers: i, pluralRules: a, messageResolver: o, fallbackLocale: s, fallbackWarn: c, missingWarn: l, fallbackContext: u } = e, d = {
1720
- locale: t,
1721
- modifiers: i,
1722
- pluralRules: a,
1723
- messages: (r, i) => {
1724
- let a = o(n, r);
1725
- if (a == null && (u || i)) {
1726
- let [n, , i] = Zn(u || e, r, t, s, c, l);
1727
- a = n ?? o(i, r);
1728
- }
1729
- if (I(a) || K(a)) {
1730
- let n = !1, i = Qn(e, r, t, a, r, () => {
1731
- n = !0;
1732
- });
1733
- return n ? Jn : i;
1734
- } else if (Z(a)) return a;
1735
- else return Jn;
1736
- }
1737
- };
1738
- return e.processor && (d.processor = e.processor), r.list && (d.list = r.list), r.named && (d.named = r.named), D(r.plural) && (d.pluralIndex = r.plural), d;
1739
- }
1740
- //#endregion
1741
- //#region node_modules/vue-i18n/dist/vue-i18n.mjs
1742
- it(), t();
1743
- var ir = "11.4.6";
1744
- function ar() {
1745
- typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (M().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (M().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (M().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (M().__INTLIFY_PROD_DEVTOOLS__ = !1);
1746
- }
1747
- var Q = {
1748
- UNEXPECTED_RETURN_TYPE: 24,
1749
- INVALID_ARGUMENT: 25,
1750
- MUST_BE_CALL_SETUP_TOP: 26,
1751
- NOT_INSTALLED: 27,
1752
- REQUIRED_VALUE: 28,
1753
- INVALID_VALUE: 29,
1754
- CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN: 30,
1755
- NOT_INSTALLED_WITH_PROVIDE: 31,
1756
- UNEXPECTED_ERROR: 32,
1757
- NOT_COMPATIBLE_LEGACY_VUE_I18N: 33,
1758
- NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
1759
- };
1760
- function or(t, ...n) {
1761
- return we(t, null, e.env.NODE_ENV === "production" ? void 0 : {
1762
- messages: sr,
1763
- args: n
1764
- });
1765
- }
1766
- var sr = {
1767
- [Q.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
1768
- [Q.INVALID_ARGUMENT]: "Invalid argument",
1769
- [Q.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
1770
- [Q.NOT_INSTALLED]: "Need to install with `app.use` function",
1771
- [Q.UNEXPECTED_ERROR]: "Unexpected error",
1772
- [Q.REQUIRED_VALUE]: "Required in value: {0}",
1773
- [Q.INVALID_VALUE]: "Invalid value",
1774
- [Q.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]: "Cannot setup vue-devtools plugin",
1775
- [Q.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
1776
- [Q.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
1777
- [Q.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
1778
- }, cr = /* #__PURE__*/ w("__translateVNode"), lr = /* #__PURE__*/ w("__datetimeParts"), ur = /* #__PURE__*/ w("__numberParts"), dr = /* #__PURE__*/ w("__enableEmitter"), fr = /* #__PURE__*/ w("__disableEmitter"), pr = w("__setPluralRules");
1779
- w("__intlifyMeta");
1780
- var mr = /* #__PURE__*/ w("__injectWithOption"), hr = /* #__PURE__*/ w("__dispose"), $ = {
1781
- FALLBACK_TO_ROOT: 10,
1782
- NOT_FOUND_PARENT_SCOPE: 11,
1783
- IGNORE_OBJ_FLATTEN: 12,
1784
- DEPRECATE_LEGACY_MODE: 13,
1785
- DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 14,
1786
- DUPLICATE_USE_I18N_CALLING: 15
1787
- }, gr = {
1788
- [$.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
1789
- [$.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
1790
- [$.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
1791
- [$.DEPRECATE_LEGACY_MODE]: "Legacy API mode has been deprecated in v11. Use Composition API mode instead.\nAbout how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html",
1792
- [$.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]: "'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",
1793
- [$.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."
1794
- };
1795
- function _r(e, ...t) {
1796
- return C(gr[e], ...t);
1797
- }
1798
- function vr(t) {
1799
- if (!R(t) || K(t)) return t;
1800
- for (let n in t) if (N(t, n)) if (!n.includes(".")) R(t[n]) && vr(t[n]);
1801
- else {
1802
- let r = n.split("."), i = r.length - 1, a = t, o = !1;
1803
- for (let t = 0; t < i; t++) {
1804
- if (r[t] === "__proto__") throw Error(`unsafe key: ${r[t]}`);
1805
- if (r[t] in a || (a[r[t]] = A()), !R(a[r[t]])) {
1806
- e.env.NODE_ENV !== "production" && g(_r($.IGNORE_OBJ_FLATTEN, { key: r[t] })), o = !0;
1807
- break;
1808
- }
1809
- a = a[r[t]];
1810
- }
1811
- if (o || (K(a) ? St.includes(r[i]) || delete t[n] : (a[r[i]] = t[n], delete t[n])), !K(a)) {
1812
- let e = a[r[i]];
1813
- R(e) && vr(e);
1814
- }
1815
- }
1816
- return t;
1817
- }
1818
- function yr(e, t) {
1819
- let { messages: n, __i18n: r, messageResolver: i, flatJson: a } = t, o = B(n) ? n : P(r) ? A() : { [e]: A() };
1820
- if (P(r) && r.forEach((e) => {
1821
- if ("locale" in e && "resource" in e) {
1822
- let { locale: t, resource: n } = e;
1823
- t ? (o[t] = o[t] || A(), be(n, o[t])) : be(n, o);
1824
- } else I(e) && be(JSON.parse(e), o);
1825
- }), i == null && a) for (let e in o) N(o, e) && vr(o[e]);
1826
- return o;
1827
- }
1828
- function br(e) {
1829
- return e.type;
1830
- }
1831
- function xr(e, t, n) {
1832
- let r = R(t.messages) ? t.messages : A();
1833
- "__i18nGlobal" in n && (r = yr(e.locale.value, {
1834
- messages: r,
1835
- __i18n: n.__i18nGlobal
1836
- }));
1837
- let i = Object.keys(r);
1838
- if (i.length && i.forEach((t) => {
1839
- e.mergeLocaleMessage(t, r[t]);
1840
- }), R(t.datetimeFormats)) {
1841
- let n = Object.keys(t.datetimeFormats);
1842
- n.length && n.forEach((n) => {
1843
- e.mergeDateTimeFormat(n, t.datetimeFormats[n]);
1844
- });
1845
- }
1846
- if (R(t.numberFormats)) {
1847
- let n = Object.keys(t.numberFormats);
1848
- n.length && n.forEach((n) => {
1849
- e.mergeNumberFormat(n, t.numberFormats[n]);
1850
- });
1851
- }
1852
- }
1853
- function Sr(e) {
1854
- return s(a, null, e, 0);
1855
- }
1856
- function Cr() {
1857
- let e = "currentInstance";
1858
- return e in i ? i[e] : i.getCurrentInstance();
1859
- }
1860
- var wr = () => [], Tr = () => !1, Er = 0;
1861
- function Dr(e) {
1862
- return ((t, n, r, i) => e(n, r, Cr() || void 0, i));
1863
- }
1864
- function Or(t = {}) {
1865
- let { __root: n, __injectWithOption: r } = t, i = n === void 0, a = t.flatJson, s = y ? p : m, c = L(t.inheritLocale) ? t.inheritLocale : !0, l = s(n && c ? n.locale.value : I(t.locale) ? t.locale : sn), u = s(n && c ? n.fallbackLocale.value : I(t.fallbackLocale) || P(t.fallbackLocale) || B(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : l.value), d = s(yr(l.value, t)), f = s(B(t.datetimeFormats) ? t.datetimeFormats : { [l.value]: {} }), _ = s(B(t.numberFormats) ? t.numberFormats : { [l.value]: {} }), v = n ? n.missingWarn : L(t.missingWarn) || ee(t.missingWarn) ? t.missingWarn : !0, b = n ? n.fallbackWarn : L(t.fallbackWarn) || ee(t.fallbackWarn) ? t.fallbackWarn : !0, x = n ? n.fallbackRoot : L(t.fallbackRoot) ? t.fallbackRoot : !0, S = !!t.fallbackFormat, C = F(t.missing) ? t.missing : null, w = F(t.missing) ? Dr(t.missing) : null, T = F(t.postTranslation) ? t.postTranslation : null, E = n ? n.warnHtmlMessage : L(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, O = !!t.escapeParameter, te = n ? n.modifiers : B(t.modifiers) ? t.modifiers : {}, ne = t.pluralRules || n && n.pluralRules, A;
1866
- A = (() => {
1867
- i && yn(null);
1868
- let n = {
1869
- version: ir,
1870
- locale: l.value,
1871
- fallbackLocale: u.value,
1872
- messages: d.value,
1873
- modifiers: te,
1874
- pluralRules: ne,
1875
- missing: w === null ? void 0 : w,
1876
- missingWarn: v,
1877
- fallbackWarn: b,
1878
- fallbackFormat: S,
1879
- unresolving: !0,
1880
- postTranslation: T === null ? void 0 : T,
1881
- warnHtmlMessage: E,
1882
- escapeParameter: O,
1883
- messageResolver: t.messageResolver,
1884
- messageCompiler: t.messageCompiler,
1885
- __meta: { framework: "vue" }
1886
- };
1887
- n.datetimeFormats = f.value, n.numberFormats = _.value, n.__datetimeFormatters = B(A) ? A.__datetimeFormatters : void 0, n.__numberFormatters = B(A) ? A.__numberFormatters : void 0, e.env.NODE_ENV !== "production" && (n.__v_emitter = B(A) ? A.__v_emitter : void 0);
1888
- let r = Sn(n);
1889
- return i && yn(r), r;
1890
- })(), Dn(A, l.value, u.value);
1891
- function j() {
1892
- return [
1893
- l.value,
1894
- u.value,
1895
- d.value,
1896
- f.value,
1897
- _.value
1898
- ];
1899
- }
1900
- let M = o({
1901
- get: () => l.value,
1902
- set: (e) => {
1903
- A.locale = e, l.value = e;
1904
- }
1905
- }), re = o({
1906
- get: () => u.value,
1907
- set: (e) => {
1908
- A.fallbackLocale = e, u.value = e, Dn(A, l.value, e);
1909
- }
1910
- }), ie = o(() => d.value), ae = /* #__PURE__*/ o(() => f.value), oe = /* #__PURE__*/ o(() => _.value);
1911
- function se() {
1912
- return F(T) ? T : null;
1913
- }
1914
- function ce(e) {
1915
- T = e, A.postTranslation = e;
1916
- }
1917
- function le() {
1918
- return C;
1919
- }
1920
- function ue(e) {
1921
- e !== null && (w = Dr(e)), C = e, A.missing = w;
1922
- }
1923
- function de(e, t) {
1924
- return e !== "translate" || !t.resolvedMessage;
1925
- }
1926
- let z = (t, r, a, o, s, c) => {
1927
- j();
1928
- let l;
1929
- try {
1930
- e.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, i || (A.fallbackContext = n ? bn() : void 0), l = t(A);
1931
- } finally {
1932
- e.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, i || (A.fallbackContext = void 0);
1933
- }
1934
- if (a !== "translate exists" && D(l) && l === -1 || a === "translate exists" && !l) {
1935
- let [t, i] = r();
1936
- if (e.env.NODE_ENV !== "production" && n && I(t) && de(a, i) && (x && (wn(b, t) || Tn(v, t)) && g(_r($.FALLBACK_TO_ROOT, {
1937
- key: t,
1938
- type: a
1939
- })), e.env.NODE_ENV !== "production")) {
1940
- let { __v_emitter: e } = A;
1941
- e && x && e.emit("fallback", {
1942
- type: a,
1943
- key: t,
1944
- to: "global",
1945
- groupId: `${a}:${t}`
1946
- });
1947
- }
1948
- return n && x ? o(n) : s(t);
1949
- } else if (c(l)) return l;
1950
- else
1951
- /* istanbul ignore next */
1952
- throw or(Q.UNEXPECTED_RETURN_TYPE);
1953
- };
1954
- function fe(...e) {
1955
- return z((t) => Reflect.apply(Yn, null, [t, ...e]), () => er(...e), "translate", (t) => Reflect.apply(t.t, t, [...e]), (e) => e, (e) => I(e));
1956
- }
1957
- function pe(...e) {
1958
- let [t, n, r] = e;
1959
- if (r && !R(r)) throw or(Q.INVALID_ARGUMENT);
1960
- return fe(t, n, k({ resolvedMessage: !0 }, r || {}));
1961
- }
1962
- function me(...e) {
1963
- return z((t) => Reflect.apply(Mn, null, [t, ...e]), () => Pn(...e), "datetime format", (t) => Reflect.apply(t.d, t, [...e]), () => "", (e) => I(e) || P(e));
1964
- }
1965
- function he(...e) {
1966
- return z((t) => Reflect.apply(In, null, [t, ...e]), () => Rn(...e), "number format", (t) => Reflect.apply(t.n, t, [...e]), () => "", (e) => I(e) || P(e));
1967
- }
1968
- function ge(e) {
1969
- return e.map((e) => I(e) || D(e) || L(e) ? Sr(String(e)) : e);
1970
- }
1971
- let _e = {
1972
- normalize: ge,
1973
- interpolate: (e) => e,
1974
- type: "vnode"
1975
- };
1976
- function ve(...e) {
1977
- return z((t) => {
1978
- let n, r = t;
1979
- try {
1980
- r.processor = _e, n = Reflect.apply(Yn, null, [r, ...e]);
1981
- } finally {
1982
- r.processor = null;
1983
- }
1984
- return n;
1985
- }, () => er(...e), "translate", (t) => t[cr](...e), (e) => [Sr(e)], (e) => P(e));
1986
- }
1987
- function ye(...e) {
1988
- return z((t) => Reflect.apply(In, null, [t, ...e]), () => Rn(...e), "number format", (t) => t[ur](...e), wr, (e) => I(e) || P(e));
1989
- }
1990
- function xe(...e) {
1991
- return z((t) => Reflect.apply(Mn, null, [t, ...e]), () => Pn(...e), "datetime format", (t) => t[lr](...e), wr, (e) => I(e) || P(e));
1992
- }
1993
- function Se(e) {
1994
- ne = e, A.pluralRules = ne;
1995
- }
1996
- function V(e, t) {
1997
- return z(() => {
1998
- if (!e) return !1;
1999
- let n = I(t) ? t : l.value, r = I(t) ? [n] : Wt(A, u.value, n);
2000
- for (let t = 0; t < r.length; t++) {
2001
- let n = Te(r[t]), i = A.messageResolver(n, e);
2002
- if (i === null && (i = n[e]), K(i) || Z(i) || I(i)) return !0;
2003
- }
2004
- return !1;
2005
- }, () => [e], "translate exists", (n) => Reflect.apply(n.te, n, [e, t]), Tr, (e) => L(e));
2006
- }
2007
- function Ce(e) {
2008
- let t = null, n = Wt(A, u.value, l.value);
2009
- for (let r = 0; r < n.length; r++) {
2010
- let i = d.value[n[r]] || {}, a = A.messageResolver(i, e);
2011
- if (a != null) {
2012
- t = a;
2013
- break;
2014
- }
2015
- }
2016
- return t;
2017
- }
2018
- function we(e) {
2019
- return Ce(e) ?? (n && n.tm(e) || {});
2020
- }
2021
- function Te(e) {
2022
- return d.value[e] || {};
2023
- }
2024
- function Ee(e, t) {
2025
- if (a) {
2026
- let n = { [e]: t };
2027
- for (let e in n) N(n, e) && vr(n[e]);
2028
- t = n[e];
2029
- }
2030
- d.value[e] = t, A.messages = d.value;
2031
- }
2032
- function De(e, t) {
2033
- d.value[e] = d.value[e] || {};
2034
- let n = { [e]: t };
2035
- if (a) for (let e in n) N(n, e) && vr(n[e]);
2036
- t = n[e], be(t, d.value[e]), A.messages = d.value;
2037
- }
2038
- function H(e) {
2039
- return f.value[e] || {};
2040
- }
2041
- function Oe(e, t) {
2042
- f.value[e] = t, A.datetimeFormats = f.value, Fn(A, e, t);
2043
- }
2044
- function U(e, t) {
2045
- f.value[e] = k(f.value[e] || {}, t), A.datetimeFormats = f.value, Fn(A, e, t);
2046
- }
2047
- function ke(e) {
2048
- return _.value[e] || {};
2049
- }
2050
- function Ae(e, t) {
2051
- _.value[e] = t, A.numberFormats = _.value, zn(A, e, t);
2052
- }
2053
- function je(e, t) {
2054
- _.value[e] = k(_.value[e] || {}, t), A.numberFormats = _.value, zn(A, e, t);
2055
- }
2056
- Er++, n && y && (h(n.locale, (e) => {
2057
- c && (l.value = e, A.locale = e, Dn(A, l.value, u.value));
2058
- }), h(n.fallbackLocale, (e) => {
2059
- c && (u.value = e, A.fallbackLocale = e, Dn(A, l.value, u.value));
2060
- }));
2061
- let W = {
2062
- id: Er,
2063
- locale: M,
2064
- fallbackLocale: re,
2065
- get inheritLocale() {
2066
- return c;
2067
- },
2068
- set inheritLocale(e) {
2069
- c = e, e && n && (l.value = n.locale.value, u.value = n.fallbackLocale.value, Dn(A, l.value, u.value));
2070
- },
2071
- get availableLocales() {
2072
- return Object.keys(d.value).sort();
2073
- },
2074
- messages: ie,
2075
- get modifiers() {
2076
- return te;
2077
- },
2078
- get pluralRules() {
2079
- return ne || {};
2080
- },
2081
- get isGlobal() {
2082
- return i;
2083
- },
2084
- get missingWarn() {
2085
- return v;
2086
- },
2087
- set missingWarn(e) {
2088
- v = e, A.missingWarn = v;
2089
- },
2090
- get fallbackWarn() {
2091
- return b;
2092
- },
2093
- set fallbackWarn(e) {
2094
- b = e, A.fallbackWarn = b;
2095
- },
2096
- get fallbackRoot() {
2097
- return x;
2098
- },
2099
- set fallbackRoot(e) {
2100
- x = e;
2101
- },
2102
- get fallbackFormat() {
2103
- return S;
2104
- },
2105
- set fallbackFormat(e) {
2106
- S = e, A.fallbackFormat = S;
2107
- },
2108
- get warnHtmlMessage() {
2109
- return E;
2110
- },
2111
- set warnHtmlMessage(e) {
2112
- E = e, A.warnHtmlMessage = e;
2113
- },
2114
- get escapeParameter() {
2115
- return O;
2116
- },
2117
- set escapeParameter(e) {
2118
- O = e, A.escapeParameter = e;
2119
- },
2120
- t: fe,
2121
- getLocaleMessage: Te,
2122
- setLocaleMessage: Ee,
2123
- mergeLocaleMessage: De,
2124
- getPostTranslationHandler: se,
2125
- setPostTranslationHandler: ce,
2126
- getMissingHandler: le,
2127
- setMissingHandler: ue,
2128
- [pr]: Se
2129
- };
2130
- return W.datetimeFormats = ae, W.numberFormats = oe, W.rt = pe, W.te = V, W.tm = we, W.d = me, W.n = he, W.getDateTimeFormat = H, W.setDateTimeFormat = Oe, W.mergeDateTimeFormat = U, W.getNumberFormat = ke, W.setNumberFormat = Ae, W.mergeNumberFormat = je, W[mr] = r, W[cr] = ve, W[lr] = xe, W[ur] = ye, e.env.NODE_ENV !== "production" && (W[dr] = (e) => {
2131
- A.__v_emitter = e;
2132
- }, W[fr] = () => {
2133
- A.__v_emitter = void 0;
2134
- }), W;
2135
- }
2136
- var kr;
2137
- function Ar(e, t) {
2138
- if (kr) {
2139
- let n;
2140
- t && "groupId" in t && (n = t.groupId, delete t.groupId), kr.addTimelineEvent({
2141
- layerId: "vue-i18n-timeline",
2142
- event: {
2143
- title: e,
2144
- groupId: n,
2145
- time: Date.now(),
2146
- meta: {},
2147
- data: t || {},
2148
- logType: e === "compile-error" ? "error" : e === "fallback" || e === "missing" ? "warning" : "default"
2149
- }
2150
- });
2151
- }
2152
- }
2153
- var jr = {
2154
- tag: { type: [String, Object] },
2155
- locale: { type: String },
2156
- scope: {
2157
- type: String,
2158
- validator: (e) => e === "parent" || e === "global",
2159
- default: "parent"
2160
- },
2161
- i18n: { type: Object }
2162
- };
2163
- k({
2164
- keypath: {
2165
- type: String,
2166
- required: !0
2167
- },
2168
- plural: {
2169
- type: [Number, String],
2170
- validator: (e) => D(e) || !isNaN(e)
2171
- }
2172
- }, jr), k({
2173
- value: {
2174
- type: Number,
2175
- required: !0
2176
- },
2177
- format: { type: [String, Object] }
2178
- }, jr);
2179
- var Mr = /* #__PURE__*/ w("global-vue-i18n");
2180
- function Nr(t = {}) {
2181
- let n = Cr();
2182
- if (n == null) throw or(Q.MUST_BE_CALL_SETUP_TOP);
2183
- if (!n.isCE && n.appContext.app != null && !n.appContext.app.__VUE_I18N_SYMBOL__) throw or(Q.NOT_INSTALLED);
2184
- let r = Pr(n), i = Ir(r), a = br(n), o = Fr(t, a);
2185
- if (o === "global") return xr(i, t, a), i;
2186
- if (o === "parent") {
2187
- let a = Lr(r, n, t.__useComponent);
2188
- return a ??= (e.env.NODE_ENV !== "production" && g(_r($.NOT_FOUND_PARENT_SCOPE)), i), a;
2189
- }
2190
- if (o === "isolated") {
2191
- if (r.mode !== "composition") throw or(Q.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);
2192
- let a = r, o = k({}, t);
2193
- o.__root = Lr(r, n) || i;
2194
- let s = Or(o);
2195
- a.__composerExtend && (s[hr] = a.__composerExtend(s));
2196
- let l = null;
2197
- if (e.env.NODE_ENV !== "production") {
2198
- l = ve();
2199
- let e = s;
2200
- e[dr] && e[dr](l), l.on("*", Ar);
2201
- }
2202
- return c() && d(() => {
2203
- if (e.env.NODE_ENV !== "production") {
2204
- l && l.off("*", Ar);
2205
- let e = s;
2206
- e[fr] && e[fr]();
2207
- }
2208
- let t = s[hr];
2209
- t && (t(), delete s[hr]);
2210
- }), s;
2211
- }
2212
- let s = r, l = s.__getInstance(n);
2213
- if (l == null) {
2214
- let e = k({}, t);
2215
- "__i18n" in a && (e.__i18n = a.__i18n), i && (e.__root = i), l = Or(e), s.__composerExtend && (l[hr] = s.__composerExtend(l)), zr(s, n, l), s.__setInstance(n, l);
2216
- } else e.env.NODE_ENV !== "production" && o === "local" && g(_r($.DUPLICATE_USE_I18N_CALLING));
2217
- return l;
2218
- }
2219
- function Pr(e) {
2220
- let t = l(e.isCE ? Mr : e.appContext.app.__VUE_I18N_SYMBOL__);
2221
- /* istanbul ignore if */
2222
- if (!t) throw or(e.isCE ? Q.NOT_INSTALLED_WITH_PROVIDE : Q.UNEXPECTED_ERROR);
2223
- return t;
2224
- }
2225
- function Fr(e, t) {
2226
- return te(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
2227
- }
2228
- function Ir(e) {
2229
- return e.mode === "composition" ? e.global : e.global.__composer;
2230
- }
2231
- function Lr(e, t, n = !1) {
2232
- let r = null, i = t.root, a = Rr(t, n);
2233
- for (; a != null;) {
2234
- let t = e;
2235
- if (e.mode === "composition") r = t.__getInstance(a);
2236
- else if (__VUE_I18N_LEGACY_API__) {
2237
- let e = t.__getInstance(a);
2238
- e != null && (r = e.__composer, n && r && !r[mr] && (r = null));
2239
- }
2240
- if (r != null || i === a) break;
2241
- a = a.parent;
2242
- }
2243
- return r;
2244
- }
2245
- function Rr(e, t = !1) {
2246
- return e == null ? null : t && e.vnode.ctx || e.parent;
2247
- }
2248
- function zr(t, n, r) {
2249
- let i = null;
2250
- u(() => {
2251
- if (e.env.NODE_ENV !== "production") {
2252
- n.__VUE_I18N__ = r, i = ve();
2253
- let e = r;
2254
- e[dr] && e[dr](i), i.on("*", Ar);
2255
- }
2256
- }, n), f(() => {
2257
- let a = r;
2258
- e.env.NODE_ENV !== "production" && (i && i.off("*", Ar), a[fr] && a[fr](), delete n.__VUE_I18N__), t.__deleteInstance(n);
2259
- let o = a[hr];
2260
- o && (o(), delete a[hr]);
2261
- }, n);
2262
- }
2263
- if (k({
2264
- value: {
2265
- type: [Number, Date],
2266
- required: !0
2267
- },
2268
- format: { type: [String, Object] }
2269
- }, jr), ar(), dn(Nt), pn(rn), hn(Wt), e.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
2270
- let e = M();
2271
- e.__INTLIFY__ = !0, Ft(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
2272
- }
2273
- e.env.NODE_ENV;
2274
- //#endregion
2275
- export { Nr as t };