@nside/wefa 0.4.4 → 0.4.5

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 (139) hide show
  1. package/README.md +1 -1
  2. package/dist/LegalConsent-BxOWAO0s.js +126 -0
  3. package/dist/LegalConsent-ChW-GYBv.cjs +1 -0
  4. package/dist/LegalDocument-BM4HLw9A.js +1580 -0
  5. package/dist/LegalDocument-hhYW9BBO.cjs +114 -0
  6. package/dist/LoginView-BpDNpbMQ.cjs +1 -0
  7. package/dist/LoginView-bUKvV6JV.js +17 -0
  8. package/dist/LogoutView-BrAt0b2J.js +16 -0
  9. package/dist/LogoutView-D7D3LcfL.cjs +1 -0
  10. package/dist/angledown-DgMf_Vjv.cjs +2 -0
  11. package/dist/angledown-igq2UW-u.js +46 -0
  12. package/dist/badge-2r_VjcsG.js +102 -0
  13. package/dist/badge-DPwocFJ8.cjs +76 -0
  14. package/dist/basecomponent-CGerMr_k.cjs +146 -0
  15. package/dist/basecomponent-CRTLSsqZ.js +1278 -0
  16. package/dist/baseeditableholder-BEn83TQE.js +126 -0
  17. package/dist/baseeditableholder-Q1_XheNU.cjs +1 -0
  18. package/dist/baseicon-Ct8wtBEp.cjs +34 -0
  19. package/dist/baseicon-DdvhP0UT.js +90 -0
  20. package/dist/baseinput-B6KUYtrd.js +37 -0
  21. package/dist/baseinput-D8710HSg.cjs +1 -0
  22. package/dist/bff/openapi.yaml +7 -0
  23. package/dist/button-M3QREAcT.cjs +651 -0
  24. package/dist/button-xI3Wu15Z.js +311 -0
  25. package/dist/calendar-B8nJAQne.js +2891 -0
  26. package/dist/calendar-CW9WbT3C.cjs +477 -0
  27. package/dist/card-BXosepCe.js +57 -0
  28. package/dist/card-Db30JagR.cjs +32 -0
  29. package/dist/check-BYTdkWQh.js +46 -0
  30. package/dist/check-D4kxzECF.cjs +2 -0
  31. package/dist/checkbox-BIDoCr_X.cjs +142 -0
  32. package/dist/checkbox-TAWN7HJG.js +323 -0
  33. package/dist/chevrondown-DLIH6sRy.cjs +2 -0
  34. package/dist/chevrondown-v3qKRLEG.js +46 -0
  35. package/dist/chevronleft-DMbyAEgw.cjs +2 -0
  36. package/dist/chevronleft-dQlHS1Vs.js +46 -0
  37. package/dist/chevronright-B3qtGWZb.js +46 -0
  38. package/dist/chevronright-BisalZVe.cjs +2 -0
  39. package/dist/chip-CBoKYRL5.js +107 -0
  40. package/dist/chip-CLwNi1p_.cjs +54 -0
  41. package/dist/chunk-BK-Lzi7j.cjs +1 -0
  42. package/dist/chunk-DgQ9yJBH.js +17 -0
  43. package/dist/classnames-4RuV7Ryo.js +19 -0
  44. package/dist/classnames-DqVQ5xbt.cjs +1 -0
  45. package/dist/containers.cjs +23 -26
  46. package/dist/containers.d.ts +0 -116
  47. package/dist/containers.js +4476 -5541
  48. package/dist/focustrap-BhHF6zvb.js +558 -0
  49. package/dist/focustrap-C_v0dFmU.cjs +152 -0
  50. package/dist/inputnumber-CvuB8fHc.cjs +195 -0
  51. package/dist/inputnumber-UfGZdwk2.js +983 -0
  52. package/dist/inputtext-B-iUN1cV.js +108 -0
  53. package/dist/inputtext-D2Ay4aYr.cjs +79 -0
  54. package/dist/legalConsent-B3erdrHX.cjs +1 -0
  55. package/dist/legalConsent-kc_KWyR6.js +66 -0
  56. package/dist/lib.cjs +1331 -1
  57. package/dist/lib.d.ts +0 -728
  58. package/dist/lib.js +22977 -35
  59. package/dist/locales-4eL4-K7f.js +3168 -0
  60. package/dist/locales-DzyBr_JU.cjs +5 -0
  61. package/dist/markdown-Cb6J3R4j.js +28 -0
  62. package/dist/markdown-Dxqg6Ggd.cjs +1 -0
  63. package/dist/network-DD_yGfK6.js +2404 -0
  64. package/dist/network-uPe9-HeS.cjs +9 -0
  65. package/dist/network.cjs +1 -1
  66. package/dist/network.d.ts +0 -103
  67. package/dist/network.js +2 -48
  68. package/dist/portal-BbZw4bN9.js +265 -0
  69. package/dist/portal-pIcEXWz1.cjs +2 -0
  70. package/dist/{index-EDm9-cRY.cjs → progressbar-BPR5tRX7.cjs} +2 -2
  71. package/dist/progressbar-CzckKCUr.js +96 -0
  72. package/dist/rating-DsIxcJXU.js +332 -0
  73. package/dist/rating-HfRWRXuI.cjs +61 -0
  74. package/dist/ripple-CoTE8rF8.js +501 -0
  75. package/dist/ripple-UYfqtU0m.cjs +24 -0
  76. package/dist/router-CR-sxf1q.js +34 -0
  77. package/dist/router-qXH6kffG.cjs +1 -0
  78. package/dist/router.cjs +1 -1
  79. package/dist/router.d.ts +0 -54
  80. package/dist/router.js +2 -16
  81. package/dist/select-C05BBcmi.js +2357 -0
  82. package/dist/select-CZouTpLB.cjs +360 -0
  83. package/dist/stores-BAbCgIKW.cjs +1 -0
  84. package/dist/stores-C5CUNzM_.js +203 -0
  85. package/dist/textarea-DUmMHVXf.cjs +84 -0
  86. package/dist/textarea-f6-j7m1N.js +131 -0
  87. package/dist/times--t6-zeg6.js +46 -0
  88. package/dist/times-GcOHYs3E.cjs +2 -0
  89. package/dist/timescircle-CHGzPrwL.cjs +2 -0
  90. package/dist/timescircle-_NJIsGD1.js +48 -0
  91. package/dist/wefa.css +2 -1
  92. package/package.json +36 -34
  93. package/src/components/DashboardComponent/DashboardGroupComponent.vue +1 -1
  94. package/src/components/NetworkButton/__tests__/ApiMutationButton.test.ts +12 -3
  95. package/src/components/NetworkButton/__tests__/ApiQueryButton.test.ts +12 -3
  96. package/src/containers/LayoutContainer/SideNavigationComponent/MainComponent/NavigationLinkComponent.vue +1 -1
  97. package/src/containers/SideMenuContainer/SideMenuContainer.vue +14 -3
  98. package/src/containers/helpers.ts +1 -1
  99. package/src/router/guards.ts +2 -2
  100. package/src/stores/__tests__/backend/jwt.test.ts +6 -6
  101. package/src/stores/__tests__/backend/oauth.test.ts +1 -1
  102. package/src/stores/__tests__/backend/token.test.ts +5 -5
  103. package/src/stores/backend/schemes/jwt.ts +3 -3
  104. package/src/stores/backend/schemes/token.ts +6 -7
  105. package/dist/LegalConsent-DQ7fkgVc.cjs +0 -1
  106. package/dist/LegalConsent-OLyvuzRY.js +0 -151
  107. package/dist/LegalDocument-B-nntRW7.cjs +0 -109
  108. package/dist/LegalDocument-BKebNzIK.js +0 -1330
  109. package/dist/LoginView-DUPa_PsC.js +0 -24
  110. package/dist/LoginView-Dihs8n_X.cjs +0 -1
  111. package/dist/LogoutView-DAh7MrFi.js +0 -19
  112. package/dist/LogoutView-Fl3nfeJ0.cjs +0 -1
  113. package/dist/apiClient-BHDjT0dU.js +0 -928
  114. package/dist/apiClient-Cr0IvG5Z.cjs +0 -1
  115. package/dist/axios-CZvsFspN.js +0 -1887
  116. package/dist/axios-DMqeKDaq.cjs +0 -6
  117. package/dist/index--_rUTrqU.js +0 -1414
  118. package/dist/index-05ASaj7N.cjs +0 -477
  119. package/dist/index-B7hJ2pku.cjs +0 -61
  120. package/dist/index-BHSxFTgZ.js +0 -49
  121. package/dist/index-BaA_oL1s.cjs +0 -32
  122. package/dist/index-Be5h48vc.js +0 -3530
  123. package/dist/index-Becfy0pF.cjs +0 -2
  124. package/dist/index-CPv4agmV.js +0 -400
  125. package/dist/index-CgAb-gZi.js +0 -89
  126. package/dist/index-DFSkcsx-.cjs +0 -943
  127. package/dist/index-DGUVQqZw.js +0 -208
  128. package/dist/index-DRozw3P8.js +0 -167
  129. package/dist/index-DfCQoHSf.cjs +0 -146
  130. package/dist/index-DkuJMEY1.js +0 -6731
  131. package/dist/index-Dv6jyKbT.js +0 -47
  132. package/dist/index-IGN7_cyg.cjs +0 -2
  133. package/dist/index-lFl6UsTa.js +0 -212
  134. package/dist/index-lQmq7gxp.cjs +0 -54
  135. package/dist/index-t0sdL3f2.cjs +0 -84
  136. package/dist/lib-DZzubLGt.js +0 -26376
  137. package/dist/lib-lTzD7ltX.cjs +0 -2104
  138. package/dist/libRoutes-B-H3e9wZ.js +0 -22
  139. package/dist/libRoutes-Cl3TklhN.cjs +0 -1
@@ -0,0 +1,3168 @@
1
+ import { t as e } from "./chunk-DgQ9yJBH.js";
2
+ import * as t from "vue";
3
+ import { Fragment as n, Text as r, computed as i, createVNode as a, defineComponent as o, effectScope as s, h as c, inject as l, isRef as u, onMounted as d, onUnmounted as f, ref as p, shallowRef as m, watch as h } from "vue";
4
+ //#region src/locales/en/avatar.json
5
+ var g = /* @__PURE__ */ e({
6
+ default: () => v,
7
+ user_avatar: () => _
8
+ }), _ = "User avatar", v = { user_avatar: _ }, y = /* @__PURE__ */ e({
9
+ default: () => S,
10
+ form: () => x,
11
+ table: () => b
12
+ }), b = {
13
+ submit: "Submit",
14
+ name: "Name",
15
+ age: "Age",
16
+ status: "Status"
17
+ }, x = {
18
+ submit: "Submit",
19
+ username: "Username",
20
+ age: "Age",
21
+ email: "Email"
22
+ }, S = {
23
+ table: b,
24
+ form: x
25
+ }, C = /* @__PURE__ */ e({
26
+ age: () => "Age",
27
+ default: () => D,
28
+ email: () => E,
29
+ submit: () => w,
30
+ username: () => T
31
+ }), w = "Submit", T = "Username", E = "Email", D = {
32
+ submit: w,
33
+ username: T,
34
+ age: "Age",
35
+ email: E
36
+ }, O = /* @__PURE__ */ e({
37
+ activity: () => ne,
38
+ default: () => re,
39
+ header: () => te,
40
+ row: () => "Row",
41
+ week: () => ee
42
+ }), ee = "Week", te = "Header", ne = "Activity", re = {
43
+ week: ee,
44
+ header: te,
45
+ row: "Row",
46
+ activity: ne
47
+ }, ie = /* @__PURE__ */ e({
48
+ accept: () => k,
49
+ accept_label: () => ve,
50
+ cancel: () => ue,
51
+ checkbox_label: () => le,
52
+ confirm_header: () => ge,
53
+ confirm_message: () => he,
54
+ default: () => xe,
55
+ disconnected_detail: () => be,
56
+ disconnected_summary: () => ye,
57
+ error_detail: () => me,
58
+ error_summary: () => pe,
59
+ intro: () => oe,
60
+ privacy_notice: () => ce,
61
+ reject_label: () => _e,
62
+ terms_of_use: () => se,
63
+ title: () => ae,
64
+ toast_accept_detail: () => fe,
65
+ toast_accept_summary: () => de
66
+ }), ae = "Legal Consent Required", oe = "To continue using our services, you must accept our terms of use and privacy notice.", se = "Terms of Use", ce = "Privacy Notice", le = "I have read and accept the Terms of Use and Privacy Notice", k = "Accept", ue = "Cancel", de = "Consent Accepted", fe = "Thank you for accepting our terms. You can now continue using our services.", pe = "Error", me = "There was an error processing your consent. Please try again.", he = "If you refuse to accept the terms and privacy notice, you will be disconnected from our services. Are you sure you want to cancel?", ge = "Confirm Cancellation", _e = "No, Go Back", ve = "Yes, Disconnect", ye = "Disconnected", be = "You have been disconnected due to refusing consent.", xe = {
67
+ title: ae,
68
+ intro: oe,
69
+ terms_of_use: se,
70
+ privacy_notice: ce,
71
+ checkbox_label: le,
72
+ accept: k,
73
+ cancel: ue,
74
+ toast_accept_summary: de,
75
+ toast_accept_detail: fe,
76
+ error_summary: pe,
77
+ error_detail: me,
78
+ confirm_message: he,
79
+ confirm_header: ge,
80
+ reject_label: _e,
81
+ accept_label: ve,
82
+ disconnected_summary: ye,
83
+ disconnected_detail: be
84
+ }, Se = /* @__PURE__ */ e({
85
+ account: () => De,
86
+ default: () => A,
87
+ login: () => Ce,
88
+ logout: () => we,
89
+ open_navigation_menu: () => Ae,
90
+ open_user_menu_for: () => je,
91
+ profile: () => Oe,
92
+ settings: () => ke,
93
+ signin: () => Te,
94
+ signout: () => Ee
95
+ }), Ce = "Login", we = "Logout", Te = "Sign In", Ee = "Sign Out", De = "Account", Oe = "Profile", ke = "Settings", Ae = "Open navigation menu", je = "Open user menu for {username}", A = {
96
+ login: Ce,
97
+ logout: we,
98
+ signin: Te,
99
+ signout: Ee,
100
+ account: De,
101
+ profile: Oe,
102
+ settings: ke,
103
+ open_navigation_menu: Ae,
104
+ open_user_menu_for: je
105
+ }, Me = /* @__PURE__ */ e({
106
+ default: () => Re,
107
+ error: () => Fe,
108
+ loading: () => Ie,
109
+ retry: () => Le,
110
+ submit: () => Ne,
111
+ success: () => Pe
112
+ }), Ne = "Submit", Pe = "Success", Fe = "Error", Ie = "Loading...", Le = "Retry", Re = {
113
+ submit: Ne,
114
+ success: Pe,
115
+ error: Fe,
116
+ loading: Ie,
117
+ retry: Le
118
+ }, ze = /* @__PURE__ */ e({
119
+ default: () => We,
120
+ go_back: () => Ue,
121
+ go_home: () => He,
122
+ message: () => Ve,
123
+ title: () => Be
124
+ }), Be = "Page Not Found", Ve = "Sorry, the page you are looking for does not exist.", He = "Go Home", Ue = "Go Back", We = {
125
+ title: Be,
126
+ message: Ve,
127
+ go_home: He,
128
+ go_back: Ue
129
+ }, Ge = /* @__PURE__ */ e({
130
+ default: () => rt,
131
+ email: () => Je,
132
+ minLength: () => qe,
133
+ passwordAscii: () => Qe,
134
+ passwordLower: () => et,
135
+ passwordMin: () => Xe,
136
+ passwordNumber: () => tt,
137
+ passwordSpecial: () => nt,
138
+ passwordStrongMin: () => Ze,
139
+ passwordUpper: () => $e,
140
+ required: () => Ke,
141
+ url: () => Ye
142
+ }), Ke = "{field} is required.", qe = "{field} must be at least {minLength} characters.", Je = "{field} must be a valid email address.", Ye = "{field} must be a valid URL.", Xe = "{field} must be at least {minLength} characters.", Ze = "{field} must be at least {minLength} characters.", Qe = "{field} must contain only ASCII-standard characters (no accents or accented characters).", $e = "{field} should include at least one uppercase letter.", et = "{field} should include at least one lowercase letter.", tt = "{field} should include at least one number.", nt = "{field} should include at least one special character.", rt = {
143
+ required: Ke,
144
+ minLength: qe,
145
+ email: Je,
146
+ url: Ye,
147
+ passwordMin: Xe,
148
+ passwordStrongMin: Ze,
149
+ passwordAscii: Qe,
150
+ passwordUpper: $e,
151
+ passwordLower: et,
152
+ passwordNumber: tt,
153
+ passwordSpecial: nt
154
+ };
155
+ //#endregion
156
+ //#region node_modules/@intlify/shared/dist/shared.mjs
157
+ function j(e, t) {
158
+ typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
159
+ }
160
+ var it = {};
161
+ function at(e) {
162
+ it[e] || (it[e] = !0, j(e));
163
+ }
164
+ var M = typeof window < "u", N, ot;
165
+ if (process.env.NODE_ENV !== "production") {
166
+ let e = M && window.performance;
167
+ e && e.mark && e.measure && e.clearMarks && e.clearMeasures && (N = (t) => {
168
+ e.mark(t);
169
+ }, ot = (t, n, r) => {
170
+ e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
171
+ });
172
+ }
173
+ var st = /\{([0-9a-zA-Z]+)\}/g;
174
+ function ct(e, ...t) {
175
+ return t.length === 1 && U(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(st, (e, n) => t.hasOwnProperty(n) ? t[n] : "");
176
+ }
177
+ var P = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), lt = (e, t, n) => ut({
178
+ l: e,
179
+ k: t,
180
+ s: n
181
+ }), ut = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), F = (e) => typeof e == "number" && isFinite(e), dt = (e) => Ct(e) === "[object Date]", ft = (e) => Ct(e) === "[object RegExp]", pt = (e) => W(e) && Object.keys(e).length === 0, I = Object.assign, mt = Object.create, L = (e = null) => mt(e), ht, gt = () => ht ||= typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : L();
182
+ function _t(e) {
183
+ return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/\//g, "&#x2F;").replace(/=/g, "&#x3D;");
184
+ }
185
+ function vt(e) {
186
+ return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&amp;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
187
+ }
188
+ function yt(e) {
189
+ return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (e, t, n) => `${t}="${vt(n)}"`), e = e.replace(/(\w+)\s*=\s*'([^']*)'/g, (e, t, n) => `${t}='${vt(n)}'`), /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e) && (process.env.NODE_ENV !== "production" && j("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")), [/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi, /(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach((t) => {
190
+ e = e.replace(t, "$1javascript&#58;");
191
+ }), e;
192
+ }
193
+ var bt = Object.prototype.hasOwnProperty;
194
+ function R(e, t) {
195
+ return bt.call(e, t);
196
+ }
197
+ var z = Array.isArray, B = (e) => typeof e == "function", V = (e) => typeof e == "string", H = (e) => typeof e == "boolean", U = (e) => typeof e == "object" && !!e, xt = (e) => U(e) && B(e.then) && B(e.catch), St = Object.prototype.toString, Ct = (e) => St.call(e), W = (e) => Ct(e) === "[object Object]", wt = (e) => e == null ? "" : z(e) || W(e) && e.toString === St ? JSON.stringify(e, null, 2) : String(e);
198
+ function Tt(e, t = "") {
199
+ return e.reduce((e, n, r) => r === 0 ? e + n : e + t + n, "");
200
+ }
201
+ var Et = 2;
202
+ function Dt(e, t = 0, n = e.length) {
203
+ let r = e.split(/\r?\n/), i = 0, a = [];
204
+ for (let e = 0; e < r.length; e++) if (i += r[e].length + 1, i >= t) {
205
+ for (let o = e - Et; o <= e + Et || n > i; o++) {
206
+ if (o < 0 || o >= r.length) continue;
207
+ let s = o + 1;
208
+ a.push(`${s}${" ".repeat(3 - String(s).length)}| ${r[o]}`);
209
+ let c = r[o].length;
210
+ if (o === e) {
211
+ let e = t - (i - c) + 1, r = Math.max(1, n > i ? c - e : n - t);
212
+ a.push(" | " + " ".repeat(e) + "^".repeat(r));
213
+ } else if (o > e) {
214
+ if (n > i) {
215
+ let e = Math.max(Math.min(n - i, c), 1);
216
+ a.push(" | " + "^".repeat(e));
217
+ }
218
+ i += c + 1;
219
+ }
220
+ }
221
+ break;
222
+ }
223
+ return a.join("\n");
224
+ }
225
+ function Ot() {
226
+ let e = /* @__PURE__ */ new Map();
227
+ return {
228
+ events: e,
229
+ on(t, n) {
230
+ let r = e.get(t);
231
+ r && r.push(n) || e.set(t, [n]);
232
+ },
233
+ off(t, n) {
234
+ let r = e.get(t);
235
+ r && r.splice(r.indexOf(n) >>> 0, 1);
236
+ },
237
+ emit(t, n) {
238
+ (e.get(t) || []).slice().map((e) => e(n)), (e.get("*") || []).slice().map((e) => e(t, n));
239
+ }
240
+ };
241
+ }
242
+ var kt = (e) => !U(e) || z(e);
243
+ function At(e, t) {
244
+ if (kt(e) || kt(t)) throw Error("Invalid value");
245
+ let n = [{
246
+ src: e,
247
+ des: t
248
+ }];
249
+ for (; n.length;) {
250
+ let { src: e, des: t } = n.pop();
251
+ Object.keys(e).forEach((r) => {
252
+ r !== "__proto__" && (U(e[r]) && !U(t[r]) && (t[r] = Array.isArray(e[r]) ? [] : L()), kt(t[r]) || kt(e[r]) ? t[r] = e[r] : n.push({
253
+ src: e[r],
254
+ des: t[r]
255
+ }));
256
+ });
257
+ }
258
+ }
259
+ //#endregion
260
+ //#region node_modules/@intlify/message-compiler/dist/message-compiler.mjs
261
+ function jt(e, t, n) {
262
+ return {
263
+ line: e,
264
+ column: t,
265
+ offset: n
266
+ };
267
+ }
268
+ function Mt(e, t, n) {
269
+ let r = {
270
+ start: e,
271
+ end: t
272
+ };
273
+ return n != null && (r.source = n), r;
274
+ }
275
+ var G = {
276
+ EXPECTED_TOKEN: 1,
277
+ INVALID_TOKEN_IN_PLACEHOLDER: 2,
278
+ UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3,
279
+ UNKNOWN_ESCAPE_SEQUENCE: 4,
280
+ INVALID_UNICODE_ESCAPE_SEQUENCE: 5,
281
+ UNBALANCED_CLOSING_BRACE: 6,
282
+ UNTERMINATED_CLOSING_BRACE: 7,
283
+ EMPTY_PLACEHOLDER: 8,
284
+ NOT_ALLOW_NEST_PLACEHOLDER: 9,
285
+ INVALID_LINKED_FORMAT: 10,
286
+ MUST_HAVE_MESSAGES_IN_PLURAL: 11,
287
+ UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
288
+ UNEXPECTED_EMPTY_LINKED_KEY: 13,
289
+ UNEXPECTED_LEXICAL_ANALYSIS: 14,
290
+ UNHANDLED_CODEGEN_NODE_TYPE: 15,
291
+ UNHANDLED_MINIFIER_NODE_TYPE: 16
292
+ }, Nt = {
293
+ [G.EXPECTED_TOKEN]: "Expected token: '{0}'",
294
+ [G.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
295
+ [G.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder",
296
+ [G.UNKNOWN_ESCAPE_SEQUENCE]: "Unknown escape sequence: \\{0}",
297
+ [G.INVALID_UNICODE_ESCAPE_SEQUENCE]: "Invalid unicode escape sequence: {0}",
298
+ [G.UNBALANCED_CLOSING_BRACE]: "Unbalanced closing brace",
299
+ [G.UNTERMINATED_CLOSING_BRACE]: "Unterminated closing brace",
300
+ [G.EMPTY_PLACEHOLDER]: "Empty placeholder",
301
+ [G.NOT_ALLOW_NEST_PLACEHOLDER]: "Not allowed nest placeholder",
302
+ [G.INVALID_LINKED_FORMAT]: "Invalid linked format",
303
+ [G.MUST_HAVE_MESSAGES_IN_PLURAL]: "Plural must have messages",
304
+ [G.UNEXPECTED_EMPTY_LINKED_MODIFIER]: "Unexpected empty linked modifier",
305
+ [G.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key",
306
+ [G.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'",
307
+ [G.UNHANDLED_CODEGEN_NODE_TYPE]: "unhandled codegen node type: '{0}'",
308
+ [G.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
309
+ };
310
+ function Pt(e, t, n = {}) {
311
+ let { domain: r, messages: i, args: a } = n, o = process.env.NODE_ENV === "production" ? e : ct((i || Nt)[e] || "", ...a || []), s = SyntaxError(String(o));
312
+ return s.code = e, t && (s.location = t), s.domain = r, s;
313
+ }
314
+ function Ft(e) {
315
+ throw e;
316
+ }
317
+ var It = /<\/?[\w\s="/.':;#-\/]+>/, Lt = (e) => It.test(e), Rt = " ", zt = "\r", K = "\n", Bt = "\u2028", Vt = "\u2029";
318
+ function Ht(e) {
319
+ let t = e, n = 0, r = 1, i = 1, a = 0, o = (e) => t[e] === zt && t[e + 1] === K, s = (e) => t[e] === K, c = (e) => t[e] === Vt, l = (e) => t[e] === Bt, 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) ? K : t[e], g = () => h(n), _ = () => h(n + a);
320
+ function v() {
321
+ return a = 0, u(n) && (r++, i = 0), o(n) && n++, n++, i++, t[n];
322
+ }
323
+ function y() {
324
+ return o(n + a) && a++, a++, t[n + a];
325
+ }
326
+ function b() {
327
+ n = 0, r = 1, i = 1, a = 0;
328
+ }
329
+ function x(e = 0) {
330
+ a = e;
331
+ }
332
+ function S() {
333
+ let e = n + a;
334
+ for (; e !== n;) v();
335
+ a = 0;
336
+ }
337
+ return {
338
+ index: d,
339
+ line: f,
340
+ column: p,
341
+ peekOffset: m,
342
+ charAt: h,
343
+ currentChar: g,
344
+ currentPeek: _,
345
+ next: v,
346
+ peek: y,
347
+ reset: b,
348
+ resetPeek: x,
349
+ skipToPeek: S
350
+ };
351
+ }
352
+ var Ut = void 0, Wt = "'", Gt = "tokenizer";
353
+ function Kt(e, t = {}) {
354
+ let n = t.location !== !1, r = Ht(e), i = () => r.index(), a = () => jt(r.line(), r.column(), r.index()), o = a(), s = i(), c = {
355
+ currentType: 13,
356
+ offset: s,
357
+ startLoc: o,
358
+ endLoc: o,
359
+ lastType: 13,
360
+ lastOffset: s,
361
+ lastStartLoc: o,
362
+ lastEndLoc: o,
363
+ braceNest: 0,
364
+ inLinked: !1,
365
+ text: ""
366
+ }, l = () => c, { onError: u } = t;
367
+ function d(e, t, r, ...i) {
368
+ let a = l();
369
+ t.column += r, t.offset += r, u && u(Pt(e, n ? Mt(a.startLoc, t) : null, {
370
+ domain: Gt,
371
+ args: i
372
+ }));
373
+ }
374
+ function f(e, t, r) {
375
+ e.endLoc = a(), e.currentType = t;
376
+ let i = { type: t };
377
+ return n && (i.loc = Mt(e.startLoc, e.endLoc)), r != null && (i.value = r), i;
378
+ }
379
+ let p = (e) => f(e, 13);
380
+ function m(e, t) {
381
+ return e.currentChar() === t ? (e.next(), t) : (d(G.EXPECTED_TOKEN, a(), 0, t), "");
382
+ }
383
+ function h(e) {
384
+ let t = "";
385
+ for (; e.currentPeek() === Rt || e.currentPeek() === K;) t += e.currentPeek(), e.peek();
386
+ return t;
387
+ }
388
+ function g(e) {
389
+ let t = h(e);
390
+ return e.skipToPeek(), t;
391
+ }
392
+ function _(e) {
393
+ if (e === Ut) return !1;
394
+ let t = e.charCodeAt(0);
395
+ return t >= 97 && t <= 122 || t >= 65 && t <= 90 || t === 95;
396
+ }
397
+ function v(e) {
398
+ if (e === Ut) return !1;
399
+ let t = e.charCodeAt(0);
400
+ return t >= 48 && t <= 57;
401
+ }
402
+ function y(e, t) {
403
+ let { currentType: n } = t;
404
+ if (n !== 2) return !1;
405
+ h(e);
406
+ let r = _(e.currentPeek());
407
+ return e.resetPeek(), r;
408
+ }
409
+ function b(e, t) {
410
+ let { currentType: n } = t;
411
+ if (n !== 2) return !1;
412
+ h(e);
413
+ let r = v(e.currentPeek() === "-" ? e.peek() : e.currentPeek());
414
+ return e.resetPeek(), r;
415
+ }
416
+ function x(e, t) {
417
+ let { currentType: n } = t;
418
+ if (n !== 2) return !1;
419
+ h(e);
420
+ let r = e.currentPeek() === Wt;
421
+ return e.resetPeek(), r;
422
+ }
423
+ function S(e, t) {
424
+ let { currentType: n } = t;
425
+ if (n !== 7) return !1;
426
+ h(e);
427
+ let r = e.currentPeek() === ".";
428
+ return e.resetPeek(), r;
429
+ }
430
+ function C(e, t) {
431
+ let { currentType: n } = t;
432
+ if (n !== 8) return !1;
433
+ h(e);
434
+ let r = _(e.currentPeek());
435
+ return e.resetPeek(), r;
436
+ }
437
+ function w(e, t) {
438
+ let { currentType: n } = t;
439
+ if (!(n === 7 || n === 11)) return !1;
440
+ h(e);
441
+ let r = e.currentPeek() === ":";
442
+ return e.resetPeek(), r;
443
+ }
444
+ function T(e, t) {
445
+ let { currentType: n } = t;
446
+ if (n !== 9) return !1;
447
+ let r = () => {
448
+ let t = e.currentPeek();
449
+ return t === "{" ? _(e.peek()) : t === "@" || t === "|" || t === ":" || t === "." || t === Rt || !t ? !1 : t === K ? (e.peek(), r()) : D(e, !1);
450
+ }, i = r();
451
+ return e.resetPeek(), i;
452
+ }
453
+ function E(e) {
454
+ h(e);
455
+ let t = e.currentPeek() === "|";
456
+ return e.resetPeek(), t;
457
+ }
458
+ function D(e, t = !0) {
459
+ let n = (t = !1, r = "") => {
460
+ let i = e.currentPeek();
461
+ return i === "{" || i === "@" || !i ? t : i === "|" ? !(r === Rt || r === K) : i === Rt ? (e.peek(), n(!0, Rt)) : i === K ? (e.peek(), n(!0, K)) : !0;
462
+ }, r = n();
463
+ return t && e.resetPeek(), r;
464
+ }
465
+ function O(e, t) {
466
+ let n = e.currentChar();
467
+ return n === Ut ? Ut : t(n) ? (e.next(), n) : null;
468
+ }
469
+ function ee(e) {
470
+ let t = e.charCodeAt(0);
471
+ return t >= 97 && t <= 122 || t >= 65 && t <= 90 || t >= 48 && t <= 57 || t === 95 || t === 36;
472
+ }
473
+ function te(e) {
474
+ return O(e, ee);
475
+ }
476
+ function ne(e) {
477
+ let t = e.charCodeAt(0);
478
+ return t >= 97 && t <= 122 || t >= 65 && t <= 90 || t >= 48 && t <= 57 || t === 95 || t === 36 || t === 45;
479
+ }
480
+ function re(e) {
481
+ return O(e, ne);
482
+ }
483
+ function ie(e) {
484
+ let t = e.charCodeAt(0);
485
+ return t >= 48 && t <= 57;
486
+ }
487
+ function ae(e) {
488
+ return O(e, ie);
489
+ }
490
+ function oe(e) {
491
+ let t = e.charCodeAt(0);
492
+ return t >= 48 && t <= 57 || t >= 65 && t <= 70 || t >= 97 && t <= 102;
493
+ }
494
+ function se(e) {
495
+ return O(e, oe);
496
+ }
497
+ function ce(e) {
498
+ let t = "", n = "";
499
+ for (; t = ae(e);) n += t;
500
+ return n;
501
+ }
502
+ function le(e) {
503
+ let t = "";
504
+ for (;;) {
505
+ let n = e.currentChar();
506
+ if (n === "\\") {
507
+ let r = e.peek();
508
+ r === "{" || r === "}" || r === "@" || r === "|" || r === "\\" ? (t += n + r, e.next(), e.next()) : (e.resetPeek(), t += n, e.next());
509
+ } else if (n === "{" || n === "}" || n === "@" || n === "|" || !n) break;
510
+ else if (n === Rt || n === K) if (D(e)) t += n, e.next();
511
+ else if (E(e)) break;
512
+ else t += n, e.next();
513
+ else t += n, e.next();
514
+ }
515
+ return t;
516
+ }
517
+ function k(e) {
518
+ g(e);
519
+ let t = "", n = "";
520
+ for (; t = re(e);) n += t;
521
+ let r = e.currentChar();
522
+ if (r && r !== "}" && r !== Ut && r !== Rt && r !== K && r !== " ") {
523
+ let t = ge(e);
524
+ return d(G.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, n + t), n + t;
525
+ }
526
+ return e.currentChar() === Ut && d(G.UNTERMINATED_CLOSING_BRACE, a(), 0), n;
527
+ }
528
+ function ue(e) {
529
+ g(e);
530
+ let t = "";
531
+ return e.currentChar() === "-" ? (e.next(), t += `-${ce(e)}`) : t += ce(e), e.currentChar() === Ut && d(G.UNTERMINATED_CLOSING_BRACE, a(), 0), t;
532
+ }
533
+ function de(e) {
534
+ return e !== Wt && e !== K;
535
+ }
536
+ function fe(e) {
537
+ g(e), m(e, "'");
538
+ let t = "", n = "";
539
+ for (; t = O(e, de);) t === "\\" ? n += pe(e) : n += t;
540
+ let r = e.currentChar();
541
+ return r === K || r === Ut ? (d(G.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), r === K && (e.next(), m(e, "'")), n) : (m(e, "'"), n);
542
+ }
543
+ function pe(e) {
544
+ let t = e.currentChar();
545
+ switch (t) {
546
+ case "\\":
547
+ case "'": return e.next(), `\\${t}`;
548
+ case "u": return me(e, t, 4);
549
+ case "U": return me(e, t, 6);
550
+ default: return d(G.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, t), "";
551
+ }
552
+ }
553
+ function me(e, t, n) {
554
+ m(e, t);
555
+ let r = "";
556
+ for (let i = 0; i < n; i++) {
557
+ let n = se(e);
558
+ if (!n) {
559
+ d(G.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${t}${r}${e.currentChar()}`);
560
+ break;
561
+ }
562
+ r += n;
563
+ }
564
+ return `\\${t}${r}`;
565
+ }
566
+ function he(e) {
567
+ return e !== "{" && e !== "}" && e !== Rt && e !== K;
568
+ }
569
+ function ge(e) {
570
+ g(e);
571
+ let t = "", n = "";
572
+ for (; t = O(e, he);) n += t;
573
+ return n;
574
+ }
575
+ function _e(e) {
576
+ let t = "", n = "";
577
+ for (; t = te(e);) n += t;
578
+ return n;
579
+ }
580
+ function ve(e) {
581
+ let t = (n) => {
582
+ let r = e.currentChar();
583
+ return r === "{" || r === "@" || r === "|" || r === "(" || r === ")" || !r || r === Rt ? n : (n += r, e.next(), t(n));
584
+ };
585
+ return t("");
586
+ }
587
+ function ye(e) {
588
+ g(e);
589
+ let t = m(e, "|");
590
+ return g(e), t;
591
+ }
592
+ function be(e, t) {
593
+ let n = null;
594
+ switch (e.currentChar()) {
595
+ case "{": return t.braceNest >= 1 && d(G.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), e.next(), n = f(t, 2, "{"), g(e), t.braceNest++, n;
596
+ case "}": return t.braceNest > 0 && t.currentType === 2 && d(G.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;
597
+ case "@": return t.braceNest > 0 && d(G.UNTERMINATED_CLOSING_BRACE, a(), 0), n = xe(e, t) || p(t), t.braceNest = 0, n;
598
+ default: {
599
+ let r = !0, i = !0, o = !0;
600
+ if (E(e)) return t.braceNest > 0 && d(G.UNTERMINATED_CLOSING_BRACE, a(), 0), n = f(t, 1, ye(e)), t.braceNest = 0, t.inLinked = !1, n;
601
+ if (t.braceNest > 0 && (t.currentType === 4 || t.currentType === 5 || t.currentType === 6)) return d(G.UNTERMINATED_CLOSING_BRACE, a(), 0), t.braceNest = 0, Se(e, t);
602
+ if (r = y(e, t)) return n = f(t, 4, k(e)), g(e), n;
603
+ if (i = b(e, t)) return n = f(t, 5, ue(e)), g(e), n;
604
+ if (o = x(e, t)) return n = f(t, 6, fe(e)), g(e), n;
605
+ if (!r && !i && !o) return n = f(t, 12, ge(e)), d(G.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, n.value), g(e), n;
606
+ break;
607
+ }
608
+ }
609
+ return n;
610
+ }
611
+ function xe(e, t) {
612
+ let { currentType: n } = t, r = null, i = e.currentChar();
613
+ switch ((n === 7 || n === 8 || n === 11 || n === 9) && (i === K || i === Rt) && d(G.INVALID_LINKED_FORMAT, a(), 0), i) {
614
+ case "@": return e.next(), r = f(t, 7, "@"), t.inLinked = !0, r;
615
+ case ".": return g(e), e.next(), f(t, 8, ".");
616
+ case ":": return g(e), e.next(), f(t, 9, ":");
617
+ default: return E(e) ? (r = f(t, 1, ye(e)), t.braceNest = 0, t.inLinked = !1, r) : S(e, t) || w(e, t) ? (g(e), xe(e, t)) : C(e, t) ? (g(e), f(t, 11, _e(e))) : T(e, t) ? (g(e), i === "{" ? be(e, t) || r : f(t, 10, ve(e))) : (n === 7 && d(G.INVALID_LINKED_FORMAT, a(), 0), t.braceNest = 0, t.inLinked = !1, Se(e, t));
618
+ }
619
+ }
620
+ function Se(e, t) {
621
+ let n = { type: 13 };
622
+ if (t.braceNest > 0) return be(e, t) || p(t);
623
+ if (t.inLinked) return xe(e, t) || p(t);
624
+ switch (e.currentChar()) {
625
+ case "{": return be(e, t) || p(t);
626
+ case "}": return d(G.UNBALANCED_CLOSING_BRACE, a(), 0), e.next(), f(t, 3, "}");
627
+ case "@": return xe(e, t) || p(t);
628
+ default:
629
+ if (E(e)) return n = f(t, 1, ye(e)), t.braceNest = 0, t.inLinked = !1, n;
630
+ if (D(e)) return f(t, 0, le(e));
631
+ break;
632
+ }
633
+ return n;
634
+ }
635
+ function Ce() {
636
+ let { currentType: e, offset: t, startLoc: n, endLoc: o } = c;
637
+ return c.lastType = e, c.lastOffset = t, c.lastStartLoc = n, c.lastEndLoc = o, c.offset = i(), c.startLoc = a(), r.currentChar() === Ut ? f(c, 13) : Se(r, c);
638
+ }
639
+ return {
640
+ nextToken: Ce,
641
+ currentOffset: i,
642
+ currentPosition: a,
643
+ context: l
644
+ };
645
+ }
646
+ var qt = "parser", Jt = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g, Yt = /\\([\\@{}|])/g;
647
+ function Xt(e, t) {
648
+ return t;
649
+ }
650
+ function Zt(e, t, n) {
651
+ switch (e) {
652
+ case "\\\\": return "\\";
653
+ case "\\'": return "'";
654
+ default: {
655
+ let e = parseInt(t || n, 16);
656
+ return e <= 55295 || e >= 57344 ? String.fromCodePoint(e) : "�";
657
+ }
658
+ }
659
+ }
660
+ function Qt(e = {}) {
661
+ let t = e.location !== !1, { onError: n } = e;
662
+ function r(e, r, i, a, ...o) {
663
+ let s = e.currentPosition();
664
+ s.offset += a, s.column += a, n && n(Pt(r, t ? Mt(i, s) : null, {
665
+ domain: qt,
666
+ args: o
667
+ }));
668
+ }
669
+ function i(e, n, r) {
670
+ let i = { type: e };
671
+ return t && (i.start = n, i.end = n, i.loc = {
672
+ start: r,
673
+ end: r
674
+ }), i;
675
+ }
676
+ function a(e, n, r, i) {
677
+ t && (e.end = n, e.loc && (e.loc.end = r));
678
+ }
679
+ function o(e, t) {
680
+ let n = e.context(), r = i(3, n.offset, n.startLoc);
681
+ return r.value = t.replace(Yt, Xt), a(r, e.currentOffset(), e.currentPosition()), r;
682
+ }
683
+ function s(e, t) {
684
+ let { lastOffset: n, lastStartLoc: r } = e.context(), o = i(5, n, r);
685
+ return o.index = parseInt(t, 10), e.nextToken(), a(o, e.currentOffset(), e.currentPosition()), o;
686
+ }
687
+ function c(e, t) {
688
+ let { lastOffset: n, lastStartLoc: r } = e.context(), o = i(4, n, r);
689
+ return o.key = t, e.nextToken(), a(o, e.currentOffset(), e.currentPosition()), o;
690
+ }
691
+ function l(e, t) {
692
+ let { lastOffset: n, lastStartLoc: r } = e.context(), o = i(9, n, r);
693
+ return o.value = t.replace(Jt, Zt), e.nextToken(), a(o, e.currentOffset(), e.currentPosition()), o;
694
+ }
695
+ function u(e) {
696
+ let t = e.nextToken(), n = e.context(), { lastOffset: o, lastStartLoc: s } = n, c = i(8, o, s);
697
+ return t.type === 11 ? (t.value ?? r(e, G.UNEXPECTED_LEXICAL_ANALYSIS, n.lastStartLoc, 0, $t(t)), c.value = t.value || "", a(c, e.currentOffset(), e.currentPosition()), { node: c }) : (r(e, G.UNEXPECTED_EMPTY_LINKED_MODIFIER, n.lastStartLoc, 0), c.value = "", a(c, o, s), {
698
+ nextConsumeToken: t,
699
+ node: c
700
+ });
701
+ }
702
+ function d(e, t) {
703
+ let n = e.context(), r = i(7, n.offset, n.startLoc);
704
+ return r.value = t, a(r, e.currentOffset(), e.currentPosition()), r;
705
+ }
706
+ function f(e) {
707
+ let t = e.context(), n = i(6, t.offset, t.startLoc), o = e.nextToken();
708
+ if (o.type === 8) {
709
+ let t = u(e);
710
+ n.modifier = t.node, o = t.nextConsumeToken || e.nextToken();
711
+ }
712
+ switch (o.type !== 9 && r(e, G.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, $t(o)), o = e.nextToken(), o.type === 2 && (o = e.nextToken()), o.type) {
713
+ case 10:
714
+ o.value ?? r(e, G.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, $t(o)), n.key = d(e, o.value || "");
715
+ break;
716
+ case 4:
717
+ o.value ?? r(e, G.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, $t(o)), n.key = c(e, o.value || "");
718
+ break;
719
+ case 5:
720
+ o.value ?? r(e, G.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, $t(o)), n.key = s(e, o.value || "");
721
+ break;
722
+ case 6:
723
+ o.value ?? r(e, G.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, $t(o)), n.key = l(e, o.value || "");
724
+ break;
725
+ default: {
726
+ r(e, G.UNEXPECTED_EMPTY_LINKED_KEY, t.lastStartLoc, 0);
727
+ let s = e.context(), c = i(7, s.offset, s.startLoc);
728
+ return c.value = "", a(c, s.offset, s.startLoc), n.key = c, a(n, s.offset, s.startLoc), {
729
+ nextConsumeToken: o,
730
+ node: n
731
+ };
732
+ }
733
+ }
734
+ return a(n, e.currentOffset(), e.currentPosition()), { node: n };
735
+ }
736
+ function p(e) {
737
+ let t = e.context(), n = i(2, t.currentType === 1 ? e.currentOffset() : t.offset, t.currentType === 1 ? t.endLoc : t.startLoc);
738
+ n.items = [];
739
+ let u = null;
740
+ do {
741
+ let i = u || e.nextToken();
742
+ switch (u = null, i.type) {
743
+ case 0:
744
+ i.value ?? r(e, G.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, $t(i)), n.items.push(o(e, i.value || ""));
745
+ break;
746
+ case 5:
747
+ i.value ?? r(e, G.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, $t(i)), n.items.push(s(e, i.value || ""));
748
+ break;
749
+ case 4:
750
+ i.value ?? r(e, G.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, $t(i)), n.items.push(c(e, i.value || ""));
751
+ break;
752
+ case 6:
753
+ i.value ?? r(e, G.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, $t(i)), n.items.push(l(e, i.value || ""));
754
+ break;
755
+ case 7: {
756
+ let t = f(e);
757
+ n.items.push(t.node), u = t.nextConsumeToken || null;
758
+ break;
759
+ }
760
+ }
761
+ } while (t.currentType !== 13 && t.currentType !== 1);
762
+ return a(n, t.currentType === 1 ? t.lastOffset : e.currentOffset(), t.currentType === 1 ? t.lastEndLoc : e.currentPosition()), n;
763
+ }
764
+ function m(e, t, n, o) {
765
+ let s = e.context(), c = o.items.length === 0, l = i(1, t, n);
766
+ l.cases = [], l.cases.push(o);
767
+ do {
768
+ let t = p(e);
769
+ c ||= t.items.length === 0, l.cases.push(t);
770
+ } while (s.currentType !== 13);
771
+ return c && r(e, G.MUST_HAVE_MESSAGES_IN_PLURAL, n, 0), a(l, e.currentOffset(), e.currentPosition()), l;
772
+ }
773
+ function h(e) {
774
+ let t = e.context(), { offset: n, startLoc: r } = t, i = p(e);
775
+ return t.currentType === 13 ? i : m(e, n, r, i);
776
+ }
777
+ function g(n) {
778
+ let o = Kt(n, I({}, e)), s = o.context(), c = i(0, s.offset, s.startLoc);
779
+ return t && c.loc && (c.loc.source = n), c.body = h(o), e.onCacheKey && (c.cacheKey = e.onCacheKey(n)), s.currentType !== 13 && r(o, G.UNEXPECTED_LEXICAL_ANALYSIS, s.lastStartLoc, 0, n[s.offset] || ""), a(c, o.currentOffset(), o.currentPosition()), c;
780
+ }
781
+ return { parse: g };
782
+ }
783
+ function $t(e) {
784
+ if (e.type === 13) return "EOF";
785
+ let t = (e.value || "").replace(/\r?\n/gu, "\\n");
786
+ return t.length > 10 ? t.slice(0, 9) + "…" : t;
787
+ }
788
+ function en(e, t = {}) {
789
+ let n = {
790
+ ast: e,
791
+ helpers: /* @__PURE__ */ new Set()
792
+ };
793
+ return {
794
+ context: () => n,
795
+ helper: (e) => (n.helpers.add(e), e)
796
+ };
797
+ }
798
+ function tn(e, t) {
799
+ for (let n = 0; n < e.length; n++) nn(e[n], t);
800
+ }
801
+ function nn(e, t) {
802
+ switch (e.type) {
803
+ case 1:
804
+ tn(e.cases, t), t.helper("plural");
805
+ break;
806
+ case 2:
807
+ tn(e.items, t);
808
+ break;
809
+ case 6:
810
+ nn(e.key, t), t.helper("linked"), t.helper("type");
811
+ break;
812
+ case 5:
813
+ t.helper("interpolate"), t.helper("list");
814
+ break;
815
+ case 4:
816
+ t.helper("interpolate"), t.helper("named");
817
+ break;
818
+ }
819
+ }
820
+ function rn(e, t = {}) {
821
+ let n = en(e);
822
+ n.helper("normalize"), e.body && nn(e.body, n);
823
+ let r = n.context();
824
+ e.helpers = Array.from(r.helpers);
825
+ }
826
+ function an(e) {
827
+ let t = e.body;
828
+ return t.type === 2 ? on(t) : t.cases.forEach((e) => on(e)), e;
829
+ }
830
+ function on(e) {
831
+ if (e.items.length === 1) {
832
+ let t = e.items[0];
833
+ (t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
834
+ } else {
835
+ let t = [];
836
+ for (let n = 0; n < e.items.length; n++) {
837
+ let r = e.items[n];
838
+ if (!(r.type === 3 || r.type === 9) || r.value == null) break;
839
+ t.push(r.value);
840
+ }
841
+ if (t.length === e.items.length) {
842
+ e.static = Tt(t);
843
+ for (let t = 0; t < e.items.length; t++) {
844
+ let n = e.items[t];
845
+ (n.type === 3 || n.type === 9) && delete n.value;
846
+ }
847
+ }
848
+ }
849
+ }
850
+ var sn = "minifier";
851
+ function cn(e) {
852
+ switch (e.t = e.type, e.type) {
853
+ case 0: {
854
+ let t = e;
855
+ cn(t.body), t.b = t.body, delete t.body;
856
+ break;
857
+ }
858
+ case 1: {
859
+ let t = e, n = t.cases;
860
+ for (let e = 0; e < n.length; e++) cn(n[e]);
861
+ t.c = n, delete t.cases;
862
+ break;
863
+ }
864
+ case 2: {
865
+ let t = e, n = t.items;
866
+ for (let e = 0; e < n.length; e++) cn(n[e]);
867
+ t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
868
+ break;
869
+ }
870
+ case 3:
871
+ case 9:
872
+ case 8:
873
+ case 7: {
874
+ let t = e;
875
+ t.value && (t.v = t.value, delete t.value);
876
+ break;
877
+ }
878
+ case 6: {
879
+ let t = e;
880
+ cn(t.key), t.k = t.key, delete t.key, t.modifier && (cn(t.modifier), t.m = t.modifier, delete t.modifier);
881
+ break;
882
+ }
883
+ case 5: {
884
+ let t = e;
885
+ t.i = t.index, delete t.index;
886
+ break;
887
+ }
888
+ case 4: {
889
+ let t = e;
890
+ t.k = t.key, delete t.key;
891
+ break;
892
+ }
893
+ default: if (process.env.NODE_ENV !== "production") throw Pt(G.UNHANDLED_MINIFIER_NODE_TYPE, null, {
894
+ domain: sn,
895
+ args: [e.type]
896
+ });
897
+ }
898
+ delete e.type;
899
+ }
900
+ var ln = "parser";
901
+ function un(e, t) {
902
+ let { sourceMap: n, filename: r, breakLineCode: i, needIndent: a } = t, o = t.location !== !1, s = {
903
+ filename: r,
904
+ code: "",
905
+ column: 1,
906
+ line: 1,
907
+ offset: 0,
908
+ map: void 0,
909
+ breakLineCode: i,
910
+ needIndent: a,
911
+ indentLevel: 0
912
+ };
913
+ o && e.loc && (s.source = e.loc.source);
914
+ let c = () => s;
915
+ function l(e, t) {
916
+ s.code += e;
917
+ }
918
+ function u(e, t = !0) {
919
+ let n = t ? i : "";
920
+ l(a ? n + " ".repeat(e) : n);
921
+ }
922
+ function d(e = !0) {
923
+ let t = ++s.indentLevel;
924
+ e && u(t);
925
+ }
926
+ function f(e = !0) {
927
+ let t = --s.indentLevel;
928
+ e && u(t);
929
+ }
930
+ function p() {
931
+ u(s.indentLevel);
932
+ }
933
+ return {
934
+ context: c,
935
+ push: l,
936
+ indent: d,
937
+ deindent: f,
938
+ newline: p,
939
+ helper: (e) => `_${e}`,
940
+ needIndent: () => s.needIndent
941
+ };
942
+ }
943
+ function dn(e, t) {
944
+ let { helper: n } = e;
945
+ e.push(`${n("linked")}(`), hn(e, t.key), t.modifier ? (e.push(", "), hn(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
946
+ }
947
+ function fn(e, t) {
948
+ let { helper: n, needIndent: r } = e;
949
+ e.push(`${n("normalize")}([`), e.indent(r());
950
+ let i = t.items.length;
951
+ for (let n = 0; n < i && (hn(e, t.items[n]), n !== i - 1); n++) e.push(", ");
952
+ e.deindent(r()), e.push("])");
953
+ }
954
+ function pn(e, t) {
955
+ let { helper: n, needIndent: r } = e;
956
+ if (t.cases.length > 1) {
957
+ e.push(`${n("plural")}([`), e.indent(r());
958
+ let i = t.cases.length;
959
+ for (let n = 0; n < i && (hn(e, t.cases[n]), n !== i - 1); n++) e.push(", ");
960
+ e.deindent(r()), e.push("])");
961
+ }
962
+ }
963
+ function mn(e, t) {
964
+ t.body ? hn(e, t.body) : e.push("null");
965
+ }
966
+ function hn(e, t) {
967
+ let { helper: n } = e;
968
+ switch (t.type) {
969
+ case 0:
970
+ mn(e, t);
971
+ break;
972
+ case 1:
973
+ pn(e, t);
974
+ break;
975
+ case 2:
976
+ fn(e, t);
977
+ break;
978
+ case 6:
979
+ dn(e, t);
980
+ break;
981
+ case 8:
982
+ e.push(JSON.stringify(t.value), t);
983
+ break;
984
+ case 7:
985
+ e.push(JSON.stringify(t.value), t);
986
+ break;
987
+ case 5:
988
+ e.push(`${n("interpolate")}(${n("list")}(${t.index}))`, t);
989
+ break;
990
+ case 4:
991
+ e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`, t);
992
+ break;
993
+ case 9:
994
+ e.push(JSON.stringify(t.value), t);
995
+ break;
996
+ case 3:
997
+ e.push(JSON.stringify(t.value), t);
998
+ break;
999
+ default: if (process.env.NODE_ENV !== "production") throw Pt(G.UNHANDLED_CODEGEN_NODE_TYPE, null, {
1000
+ domain: ln,
1001
+ args: [t.type]
1002
+ });
1003
+ }
1004
+ }
1005
+ var gn = (e, t = {}) => {
1006
+ let n = V(t.mode) ? t.mode : "normal", r = V(t.filename) ? t.filename : "message.intl", i = !!t.sourceMap, a = t.breakLineCode == null ? n === "arrow" ? ";" : "\n" : t.breakLineCode, o = t.needIndent ? t.needIndent : n !== "arrow", s = e.helpers || [], c = un(e, {
1007
+ mode: n,
1008
+ filename: r,
1009
+ sourceMap: i,
1010
+ breakLineCode: a,
1011
+ needIndent: o
1012
+ });
1013
+ c.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), c.indent(o), s.length > 0 && (c.push(`const { ${Tt(s.map((e) => `${e}: _${e}`), ", ")} } = ctx`), c.newline()), c.push("return "), hn(c, e), c.deindent(o), c.push("}"), delete e.helpers;
1014
+ let { code: l, map: u } = c.context();
1015
+ return {
1016
+ ast: e,
1017
+ code: l,
1018
+ map: u ? u.toJSON() : void 0
1019
+ };
1020
+ };
1021
+ function _n(e, t = {}) {
1022
+ let n = I({}, t), r = !!n.jit, i = !!n.minify, a = n.optimize == null ? !0 : n.optimize, o = Qt(n).parse(e);
1023
+ return r ? (a && an(o), i && cn(o), {
1024
+ ast: o,
1025
+ code: ""
1026
+ }) : (rn(o, n), gn(o, n));
1027
+ }
1028
+ //#endregion
1029
+ //#region node_modules/@intlify/core-base/dist/core-base.mjs
1030
+ function vn() {
1031
+ typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (gt().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (gt().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
1032
+ }
1033
+ function q(e) {
1034
+ return U(e) && On(e) === 0 && (R(e, "b") || R(e, "body"));
1035
+ }
1036
+ var yn = ["b", "body"];
1037
+ function bn(e) {
1038
+ return Fn(e, yn);
1039
+ }
1040
+ var xn = ["c", "cases"];
1041
+ function Sn(e) {
1042
+ return Fn(e, xn, []);
1043
+ }
1044
+ var Cn = ["s", "static"];
1045
+ function wn(e) {
1046
+ return Fn(e, Cn);
1047
+ }
1048
+ var Tn = ["i", "items"];
1049
+ function En(e) {
1050
+ return Fn(e, Tn, []);
1051
+ }
1052
+ var Dn = ["t", "type"];
1053
+ function On(e) {
1054
+ return Fn(e, Dn);
1055
+ }
1056
+ var kn = ["v", "value"];
1057
+ function An(e, t) {
1058
+ let n = Fn(e, kn);
1059
+ if (n != null) return n;
1060
+ throw Ln(t);
1061
+ }
1062
+ var jn = ["m", "modifier"];
1063
+ function Mn(e) {
1064
+ return Fn(e, jn);
1065
+ }
1066
+ var Nn = ["k", "key"];
1067
+ function Pn(e) {
1068
+ let t = Fn(e, Nn);
1069
+ if (t) return t;
1070
+ throw Ln(6);
1071
+ }
1072
+ function Fn(e, t, n) {
1073
+ for (let n = 0; n < t.length; n++) {
1074
+ let r = t[n];
1075
+ if (R(e, r) && e[r] != null) return e[r];
1076
+ }
1077
+ return n;
1078
+ }
1079
+ var In = [
1080
+ ...yn,
1081
+ ...xn,
1082
+ ...Cn,
1083
+ ...Tn,
1084
+ ...Nn,
1085
+ ...jn,
1086
+ ...kn,
1087
+ ...Dn
1088
+ ];
1089
+ function Ln(e) {
1090
+ return /* @__PURE__ */ Error(`unhandled node type: ${e}`);
1091
+ }
1092
+ function Rn(e) {
1093
+ return (t) => zn(t, e);
1094
+ }
1095
+ function zn(e, t) {
1096
+ let n = bn(t);
1097
+ if (n == null) throw Ln(0);
1098
+ if (On(n) === 1) {
1099
+ let t = Sn(n);
1100
+ return e.plural(t.reduce((t, n) => [...t, Bn(e, n)], []));
1101
+ } else return Bn(e, n);
1102
+ }
1103
+ function Bn(e, t) {
1104
+ let n = wn(t);
1105
+ if (n != null) return e.type === "text" ? n : e.normalize([n]);
1106
+ {
1107
+ let n = En(t).reduce((t, n) => [...t, Vn(e, n)], []);
1108
+ return e.normalize(n);
1109
+ }
1110
+ }
1111
+ function Vn(e, t) {
1112
+ let n = On(t);
1113
+ switch (n) {
1114
+ case 3: return An(t, n);
1115
+ case 9: return An(t, n);
1116
+ case 4: {
1117
+ let r = t;
1118
+ if (R(r, "k") && r.k) return e.interpolate(e.named(r.k));
1119
+ if (R(r, "key") && r.key) return e.interpolate(e.named(r.key));
1120
+ throw Ln(n);
1121
+ }
1122
+ case 5: {
1123
+ let r = t;
1124
+ if (R(r, "i") && F(r.i)) return e.interpolate(e.list(r.i));
1125
+ if (R(r, "index") && F(r.index)) return e.interpolate(e.list(r.index));
1126
+ throw Ln(n);
1127
+ }
1128
+ case 6: {
1129
+ let n = t, r = Mn(n), i = Pn(n);
1130
+ return e.linked(Vn(e, i), r ? Vn(e, r) : void 0, e.type);
1131
+ }
1132
+ case 7: return An(t, n);
1133
+ case 8: return An(t, n);
1134
+ default: throw Error(`unhandled node on format message part: ${n}`);
1135
+ }
1136
+ }
1137
+ var Hn = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
1138
+ function Un(e, t) {
1139
+ t && Lt(e) && j(ct(Hn, { source: e }));
1140
+ }
1141
+ var Wn = (e) => e, Gn = L();
1142
+ function Kn(e, t = {}) {
1143
+ let n = !1, r = t.onError || Ft;
1144
+ return t.onError = (e) => {
1145
+ n = !0, r(e);
1146
+ }, {
1147
+ ..._n(e, t),
1148
+ detectError: n
1149
+ };
1150
+ }
1151
+ /* @__NO_SIDE_EFFECTS__ */
1152
+ function qn(e, t) {
1153
+ if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && V(e)) {
1154
+ let n = H(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
1155
+ process.env.NODE_ENV !== "production" && Un(e, n);
1156
+ let r = (t.onCacheKey || Wn)(e), i = Gn[r];
1157
+ if (i) return i;
1158
+ let { ast: a, detectError: o } = Kn(e, {
1159
+ ...t,
1160
+ location: process.env.NODE_ENV !== "production",
1161
+ jit: !0
1162
+ }), s = Rn(a);
1163
+ return o ? s : Gn[r] = s;
1164
+ } else {
1165
+ if (process.env.NODE_ENV !== "production" && !q(e)) return j(`the message that is resolve with key '${t.key}' is not supported for jit compilation`), (() => e);
1166
+ let n = e.cacheKey;
1167
+ return n ? Gn[n] || (Gn[n] = Rn(e)) : Rn(e);
1168
+ }
1169
+ }
1170
+ var Jn = null;
1171
+ function Yn(e) {
1172
+ Jn = e;
1173
+ }
1174
+ function Xn(e, t, n) {
1175
+ Jn && Jn.emit("i18n:init", {
1176
+ timestamp: Date.now(),
1177
+ i18n: e,
1178
+ version: t,
1179
+ meta: n
1180
+ });
1181
+ }
1182
+ var Zn = /* @__PURE__ */ Qn("function:translate");
1183
+ function Qn(e) {
1184
+ return (t) => Jn && Jn.emit(e, t);
1185
+ }
1186
+ var J = {
1187
+ INVALID_ARGUMENT: 17,
1188
+ INVALID_DATE_ARGUMENT: 18,
1189
+ INVALID_ISO_DATE_ARGUMENT: 19,
1190
+ NOT_SUPPORT_NON_STRING_MESSAGE: 20,
1191
+ NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
1192
+ NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
1193
+ NOT_SUPPORT_LOCALE_TYPE: 23
1194
+ };
1195
+ function $n(e) {
1196
+ return Pt(e, null, process.env.NODE_ENV === "production" ? void 0 : { messages: er });
1197
+ }
1198
+ var er = {
1199
+ [J.INVALID_ARGUMENT]: "Invalid arguments",
1200
+ [J.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
1201
+ [J.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
1202
+ [J.NOT_SUPPORT_NON_STRING_MESSAGE]: "Not support non-string message",
1203
+ [J.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: "cannot support promise value",
1204
+ [J.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
1205
+ [J.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
1206
+ };
1207
+ function tr(e, t) {
1208
+ return t.locale == null ? rr(e.locale) : rr(t.locale);
1209
+ }
1210
+ var nr;
1211
+ function rr(e) {
1212
+ if (V(e)) return e;
1213
+ if (B(e)) {
1214
+ if (e.resolvedOnce && nr != null) return nr;
1215
+ if (e.constructor.name === "Function") {
1216
+ let t = e();
1217
+ if (xt(t)) throw $n(J.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
1218
+ return nr = t;
1219
+ } else throw $n(J.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
1220
+ } else throw $n(J.NOT_SUPPORT_LOCALE_TYPE);
1221
+ }
1222
+ function ir(e, t, n) {
1223
+ return [...new Set([n, ...z(t) ? t : U(t) ? Object.keys(t) : V(t) ? [t] : [n]])];
1224
+ }
1225
+ function ar(e, t, n) {
1226
+ let r = V(n) ? n : Sr, i = e;
1227
+ i.__localeChainCache ||= /* @__PURE__ */ new Map();
1228
+ let a = i.__localeChainCache.get(r);
1229
+ if (!a) {
1230
+ a = [];
1231
+ let e = [n];
1232
+ for (; z(e);) e = or(a, e, t);
1233
+ let o = z(t) || !W(t) ? t : t.default ? t.default : null;
1234
+ e = V(o) ? [o] : o, z(e) && or(a, e, !1), i.__localeChainCache.set(r, a);
1235
+ }
1236
+ return a;
1237
+ }
1238
+ function or(e, t, n) {
1239
+ let r = !0;
1240
+ for (let i = 0; i < t.length && H(r); i++) {
1241
+ let a = t[i];
1242
+ V(a) && (r = sr(e, t[i], n));
1243
+ }
1244
+ return r;
1245
+ }
1246
+ function sr(e, t, n) {
1247
+ let r, i = t.split("-");
1248
+ do
1249
+ r = cr(e, i.join("-"), n), i.splice(-1, 1);
1250
+ while (i.length && r === !0);
1251
+ return r;
1252
+ }
1253
+ function cr(e, t, n) {
1254
+ let r = !1;
1255
+ if (!e.includes(t) && (r = !0, t)) {
1256
+ r = t[t.length - 1] !== "!";
1257
+ let i = t.replace(/!/g, "");
1258
+ e.push(i), (z(n) || W(n)) && n[i] && (r = n[i]);
1259
+ }
1260
+ return r;
1261
+ }
1262
+ var lr = [];
1263
+ lr[0] = {
1264
+ w: [0],
1265
+ i: [3, 0],
1266
+ "[": [4],
1267
+ o: [7]
1268
+ }, lr[1] = {
1269
+ w: [1],
1270
+ ".": [2],
1271
+ "[": [4],
1272
+ o: [7]
1273
+ }, lr[2] = {
1274
+ w: [2],
1275
+ i: [3, 0],
1276
+ 0: [3, 0]
1277
+ }, lr[3] = {
1278
+ i: [3, 0],
1279
+ 0: [3, 0],
1280
+ w: [1, 1],
1281
+ ".": [2, 1],
1282
+ "[": [4, 1],
1283
+ o: [7, 1]
1284
+ }, lr[4] = {
1285
+ "'": [5, 0],
1286
+ "\"": [6, 0],
1287
+ "[": [4, 2],
1288
+ "]": [1, 3],
1289
+ o: 8,
1290
+ l: [4, 0]
1291
+ }, lr[5] = {
1292
+ "'": [4, 0],
1293
+ o: 8,
1294
+ l: [5, 0]
1295
+ }, lr[6] = {
1296
+ "\"": [4, 0],
1297
+ o: 8,
1298
+ l: [6, 0]
1299
+ };
1300
+ var ur = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
1301
+ function dr(e) {
1302
+ return ur.test(e);
1303
+ }
1304
+ function fr(e) {
1305
+ let t = e.charCodeAt(0);
1306
+ return t === e.charCodeAt(e.length - 1) && (t === 34 || t === 39) ? e.slice(1, -1) : e;
1307
+ }
1308
+ function pr(e) {
1309
+ if (e == null) return "o";
1310
+ switch (e.charCodeAt(0)) {
1311
+ case 91:
1312
+ case 93:
1313
+ case 46:
1314
+ case 34:
1315
+ case 39: return e;
1316
+ case 95:
1317
+ case 36:
1318
+ case 45: return "i";
1319
+ case 9:
1320
+ case 10:
1321
+ case 13:
1322
+ case 160:
1323
+ case 65279:
1324
+ case 8232:
1325
+ case 8233: return "w";
1326
+ }
1327
+ return "i";
1328
+ }
1329
+ function mr(e) {
1330
+ let t = e.trim();
1331
+ return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : dr(t) ? fr(t) : "*" + t;
1332
+ }
1333
+ function hr(e) {
1334
+ let t = [], n = -1, r = 0, i = 0, a, o, s, c, l, u, d, f = [];
1335
+ f[0] = () => {
1336
+ o === void 0 ? o = s : o += s;
1337
+ }, f[1] = () => {
1338
+ o !== void 0 && (t.push(o), o = void 0);
1339
+ }, f[2] = () => {
1340
+ f[0](), i++;
1341
+ }, f[3] = () => {
1342
+ if (i > 0) i--, r = 4, f[0]();
1343
+ else {
1344
+ if (i = 0, o === void 0 || (o = mr(o), o === !1)) return !1;
1345
+ f[1]();
1346
+ }
1347
+ };
1348
+ function p() {
1349
+ let t = e[n + 1];
1350
+ if (r === 5 && t === "'" || r === 6 && t === "\"") return n++, s = "\\" + t, f[0](), !0;
1351
+ }
1352
+ for (; r !== null;) if (n++, a = e[n], !(a === "\\" && p())) {
1353
+ if (c = pr(a), d = lr[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;
1354
+ if (r === 7) return t;
1355
+ }
1356
+ }
1357
+ var gr = /* @__PURE__ */ new Map();
1358
+ function _r(e, t) {
1359
+ return U(e) ? e[t] : null;
1360
+ }
1361
+ function vr(e, t) {
1362
+ if (!U(e)) return null;
1363
+ let n = gr.get(t);
1364
+ if (n || (n = hr(t), n && gr.set(t, n)), !n) return null;
1365
+ let r = n.length, i = e, a = 0;
1366
+ for (; a < r;) {
1367
+ let e = n[a];
1368
+ if (In.includes(e) && q(i) || !U(i) || !R(i, e)) return null;
1369
+ let t = i[e];
1370
+ if (t === void 0 || B(i)) return null;
1371
+ i = t, a++;
1372
+ }
1373
+ return i;
1374
+ }
1375
+ var Y = {
1376
+ NOT_FOUND_KEY: 1,
1377
+ FALLBACK_TO_TRANSLATE: 2,
1378
+ CANNOT_FORMAT_NUMBER: 3,
1379
+ FALLBACK_TO_NUMBER_FORMAT: 4,
1380
+ CANNOT_FORMAT_DATE: 5,
1381
+ FALLBACK_TO_DATE_FORMAT: 6,
1382
+ EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7,
1383
+ INVALID_NUMBER_ARGUMENT: 8,
1384
+ INVALID_DATE_ARGUMENT: 9
1385
+ }, yr = {
1386
+ [Y.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
1387
+ [Y.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
1388
+ [Y.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
1389
+ [Y.FALLBACK_TO_NUMBER_FORMAT]: "Fall back to number format '{key}' key with '{target}' locale.",
1390
+ [Y.CANNOT_FORMAT_DATE]: "Cannot format a date value due to not supported Intl.DateTimeFormat.",
1391
+ [Y.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale.",
1392
+ [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.",
1393
+ [Y.INVALID_NUMBER_ARGUMENT]: "Invalid argument for number formatting: expected a number but received '{value}'.",
1394
+ [Y.INVALID_DATE_ARGUMENT]: "Invalid argument for datetime formatting: expected a Date, number, or ISO string but received '{value}'."
1395
+ };
1396
+ function br(e, ...t) {
1397
+ return ct(yr[e], ...t);
1398
+ }
1399
+ var xr = "11.3.2", Sr = "en-US", Cr = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
1400
+ function wr() {
1401
+ return {
1402
+ upper: (e, t) => t === "text" && V(e) ? e.toUpperCase() : t === "vnode" && U(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
1403
+ lower: (e, t) => t === "text" && V(e) ? e.toLowerCase() : t === "vnode" && U(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
1404
+ capitalize: (e, t) => t === "text" && V(e) ? Cr(e) : t === "vnode" && U(e) && "__v_isVNode" in e ? Cr(e.children) : e
1405
+ };
1406
+ }
1407
+ var Tr;
1408
+ function Er(e) {
1409
+ Tr = e;
1410
+ }
1411
+ var Dr;
1412
+ function Or(e) {
1413
+ Dr = e;
1414
+ }
1415
+ var kr;
1416
+ function Ar(e) {
1417
+ kr = e;
1418
+ }
1419
+ var jr = null, Mr = /* @__NO_SIDE_EFFECTS__ */ () => jr, Nr = null, Pr = (e) => {
1420
+ Nr = e;
1421
+ }, Fr = () => Nr, Ir = 0;
1422
+ function Lr(e = {}) {
1423
+ let t = B(e.onWarn) ? e.onWarn : j, n = V(e.version) ? e.version : xr, r = V(e.locale) || B(e.locale) ? e.locale : Sr, i = B(r) ? Sr : r, a = z(e.fallbackLocale) || W(e.fallbackLocale) || V(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : i, o = W(e.messages) ? e.messages : Rr(i), s = W(e.datetimeFormats) ? e.datetimeFormats : Rr(i), c = W(e.numberFormats) ? e.numberFormats : Rr(i), l = I(L(), e.modifiers, wr()), u = e.pluralRules || L(), d = B(e.missing) ? e.missing : null, f = H(e.missingWarn) || ft(e.missingWarn) ? e.missingWarn : !0, p = H(e.fallbackWarn) || ft(e.fallbackWarn) ? e.fallbackWarn : !0, m = !!e.fallbackFormat, h = !!e.unresolving, g = B(e.postTranslation) ? e.postTranslation : null, _ = W(e.processor) ? e.processor : null, v = H(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, y = !!e.escapeParameter, b = B(e.messageCompiler) ? e.messageCompiler : Tr;
1424
+ process.env.NODE_ENV !== "production" && B(e.messageCompiler) && at(br(Y.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
1425
+ let x = B(e.messageResolver) ? e.messageResolver : Dr || _r, S = B(e.localeFallbacker) ? e.localeFallbacker : kr || ir, C = U(e.fallbackContext) ? e.fallbackContext : void 0, w = e, T = U(w.__datetimeFormatters) ? w.__datetimeFormatters : /* @__PURE__ */ new Map(), E = U(w.__numberFormatters) ? w.__numberFormatters : /* @__PURE__ */ new Map(), D = U(w.__meta) ? w.__meta : {};
1426
+ Ir++;
1427
+ let O = {
1428
+ version: n,
1429
+ cid: Ir,
1430
+ locale: r,
1431
+ fallbackLocale: a,
1432
+ messages: o,
1433
+ modifiers: l,
1434
+ pluralRules: u,
1435
+ missing: d,
1436
+ missingWarn: f,
1437
+ fallbackWarn: p,
1438
+ fallbackFormat: m,
1439
+ unresolving: h,
1440
+ postTranslation: g,
1441
+ processor: _,
1442
+ warnHtmlMessage: v,
1443
+ escapeParameter: y,
1444
+ messageCompiler: b,
1445
+ messageResolver: x,
1446
+ localeFallbacker: S,
1447
+ fallbackContext: C,
1448
+ onWarn: t,
1449
+ __meta: D
1450
+ };
1451
+ return O.datetimeFormats = s, O.numberFormats = c, O.__datetimeFormatters = T, O.__numberFormatters = E, process.env.NODE_ENV !== "production" && (O.__v_emitter = w.__v_emitter == null ? void 0 : w.__v_emitter), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Xn(O, n, D), O;
1452
+ }
1453
+ var Rr = (e) => ({ [e]: L() });
1454
+ function zr(e, t) {
1455
+ return e instanceof RegExp ? e.test(t) : e;
1456
+ }
1457
+ function Br(e, t) {
1458
+ return e instanceof RegExp ? e.test(t) : e;
1459
+ }
1460
+ function Vr(e, t, n, r, i) {
1461
+ let { missing: a, onWarn: o } = e;
1462
+ if (process.env.NODE_ENV !== "production") {
1463
+ let r = e.__v_emitter;
1464
+ r && r.emit("missing", {
1465
+ locale: n,
1466
+ key: t,
1467
+ type: i,
1468
+ groupId: `${i}:${t}`
1469
+ });
1470
+ }
1471
+ if (a !== null) {
1472
+ let r = a(e, n, t, i);
1473
+ return V(r) ? r : t;
1474
+ } else return process.env.NODE_ENV !== "production" && Br(r, t) && o(br(Y.NOT_FOUND_KEY, {
1475
+ key: t,
1476
+ locale: n
1477
+ })), t;
1478
+ }
1479
+ function Hr(e, t, n) {
1480
+ let r = e;
1481
+ r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
1482
+ }
1483
+ function Ur(e, t) {
1484
+ return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
1485
+ }
1486
+ function Wr(e, t) {
1487
+ let n = t.indexOf(e);
1488
+ if (n === -1) return !1;
1489
+ for (let r = n + 1; r < t.length; r++) if (Ur(e, t[r])) return !0;
1490
+ return !1;
1491
+ }
1492
+ var Gr = typeof Intl < "u", Kr = {
1493
+ dateTimeFormat: Gr && Intl.DateTimeFormat !== void 0,
1494
+ numberFormat: Gr && Intl.NumberFormat !== void 0
1495
+ };
1496
+ function qr(e, ...t) {
1497
+ let { datetimeFormats: n, unresolving: r, fallbackLocale: i, onWarn: a, localeFallbacker: o } = e, { __datetimeFormatters: s } = e;
1498
+ if (process.env.NODE_ENV !== "production" && !Kr.dateTimeFormat) return a(br(Y.CANNOT_FORMAT_DATE)), "";
1499
+ if (!V(t[0]) && !dt(t[0]) && !F(t[0])) return process.env.NODE_ENV !== "production" && a(br(Y.INVALID_DATE_ARGUMENT, { value: String(t[0]) })), "";
1500
+ let [c, l, u, d] = Yr(...t), f = H(u.missingWarn) ? u.missingWarn : e.missingWarn, p = H(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, m = !!u.part, h = tr(e, u), g = o(e, i, h);
1501
+ if (!V(c) || c === "") return new Intl.DateTimeFormat(h.replace(/!/g, ""), d).format(l);
1502
+ let _ = {}, v, y = null, b = h, x = null, S = "datetime format";
1503
+ for (let t = 0; t < g.length; t++) {
1504
+ if (v = x = g[t], process.env.NODE_ENV !== "production" && h !== v && zr(p, c) && a(br(Y.FALLBACK_TO_DATE_FORMAT, {
1505
+ key: c,
1506
+ target: v
1507
+ })), process.env.NODE_ENV !== "production" && h !== v) {
1508
+ let t = e.__v_emitter;
1509
+ t && t.emit("fallback", {
1510
+ type: S,
1511
+ key: c,
1512
+ from: b,
1513
+ to: x,
1514
+ groupId: `${S}:${c}`
1515
+ });
1516
+ }
1517
+ if (_ = n[v] || {}, y = _[c], W(y)) break;
1518
+ Vr(e, c, v, f, S), b = x;
1519
+ }
1520
+ if (!W(y) || !V(v)) return r ? -1 : c;
1521
+ let C = `${v}__${c}`;
1522
+ pt(d) || (C = `${C}__${JSON.stringify(d)}`);
1523
+ let w = s.get(C);
1524
+ return w || (w = new Intl.DateTimeFormat(v, I({}, y, d)), s.set(C, w)), m ? w.formatToParts(l) : w.format(l);
1525
+ }
1526
+ var Jr = [
1527
+ "localeMatcher",
1528
+ "weekday",
1529
+ "era",
1530
+ "year",
1531
+ "month",
1532
+ "day",
1533
+ "hour",
1534
+ "minute",
1535
+ "second",
1536
+ "timeZoneName",
1537
+ "formatMatcher",
1538
+ "hour12",
1539
+ "timeZone",
1540
+ "dateStyle",
1541
+ "timeStyle",
1542
+ "calendar",
1543
+ "dayPeriod",
1544
+ "numberingSystem",
1545
+ "hourCycle",
1546
+ "fractionalSecondDigits"
1547
+ ];
1548
+ function Yr(...e) {
1549
+ let [t, n, r, i] = e, a = L(), o = L(), s;
1550
+ if (V(t)) {
1551
+ let e = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
1552
+ if (!e) throw $n(J.INVALID_ISO_DATE_ARGUMENT);
1553
+ 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();
1554
+ s = new Date(n);
1555
+ try {
1556
+ s.toISOString();
1557
+ } catch {
1558
+ throw $n(J.INVALID_ISO_DATE_ARGUMENT);
1559
+ }
1560
+ } else if (dt(t)) {
1561
+ if (isNaN(t.getTime())) throw $n(J.INVALID_DATE_ARGUMENT);
1562
+ s = t;
1563
+ } else if (F(t)) s = t;
1564
+ else throw $n(J.INVALID_ARGUMENT);
1565
+ return V(n) ? a.key = n : W(n) && Object.keys(n).forEach((e) => {
1566
+ Jr.includes(e) ? o[e] = n[e] : a[e] = n[e];
1567
+ }), V(r) ? a.locale = r : W(r) && (o = r), W(i) && (o = i), [
1568
+ a.key || "",
1569
+ s,
1570
+ a,
1571
+ o
1572
+ ];
1573
+ }
1574
+ function Xr(e, t, n) {
1575
+ let r = e;
1576
+ for (let e in n) {
1577
+ let n = `${t}__${e}`;
1578
+ r.__datetimeFormatters.has(n) && r.__datetimeFormatters.delete(n);
1579
+ }
1580
+ }
1581
+ function Zr(e, ...t) {
1582
+ let { numberFormats: n, unresolving: r, fallbackLocale: i, onWarn: a, localeFallbacker: o } = e, { __numberFormatters: s } = e;
1583
+ if (process.env.NODE_ENV !== "production" && !Kr.numberFormat) return a(br(Y.CANNOT_FORMAT_NUMBER)), "";
1584
+ if (!F(t[0])) return process.env.NODE_ENV !== "production" && a(br(Y.INVALID_NUMBER_ARGUMENT, { value: String(t[0]) })), "";
1585
+ let [c, l, u, d] = $r(...t), f = H(u.missingWarn) ? u.missingWarn : e.missingWarn, p = H(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, m = !!u.part, h = tr(e, u), g = o(e, i, h);
1586
+ if (!V(c) || c === "") return new Intl.NumberFormat(h.replace(/!/g, ""), d).format(l);
1587
+ let _ = {}, v, y = null, b = h, x = null, S = "number format";
1588
+ for (let t = 0; t < g.length; t++) {
1589
+ if (v = x = g[t], process.env.NODE_ENV !== "production" && h !== v && zr(p, c) && a(br(Y.FALLBACK_TO_NUMBER_FORMAT, {
1590
+ key: c,
1591
+ target: v
1592
+ })), process.env.NODE_ENV !== "production" && h !== v) {
1593
+ let t = e.__v_emitter;
1594
+ t && t.emit("fallback", {
1595
+ type: S,
1596
+ key: c,
1597
+ from: b,
1598
+ to: x,
1599
+ groupId: `${S}:${c}`
1600
+ });
1601
+ }
1602
+ if (_ = n[v] || {}, y = _[c], W(y)) break;
1603
+ Vr(e, c, v, f, S), b = x;
1604
+ }
1605
+ if (!W(y) || !V(v)) return r ? -1 : c;
1606
+ let C = `${v}__${c}`;
1607
+ pt(d) || (C = `${C}__${JSON.stringify(d)}`);
1608
+ let w = s.get(C);
1609
+ return w || (w = new Intl.NumberFormat(v, I({}, y, d)), s.set(C, w)), m ? w.formatToParts(l) : w.format(l);
1610
+ }
1611
+ var Qr = [
1612
+ "localeMatcher",
1613
+ "style",
1614
+ "currency",
1615
+ "currencyDisplay",
1616
+ "currencySign",
1617
+ "useGrouping",
1618
+ "minimumIntegerDigits",
1619
+ "minimumFractionDigits",
1620
+ "maximumFractionDigits",
1621
+ "minimumSignificantDigits",
1622
+ "maximumSignificantDigits",
1623
+ "compactDisplay",
1624
+ "notation",
1625
+ "signDisplay",
1626
+ "unit",
1627
+ "unitDisplay",
1628
+ "roundingMode",
1629
+ "roundingPriority",
1630
+ "roundingIncrement",
1631
+ "trailingZeroDisplay"
1632
+ ];
1633
+ function $r(...e) {
1634
+ let [t, n, r, i] = e, a = L(), o = L();
1635
+ if (!F(t)) throw $n(J.INVALID_ARGUMENT);
1636
+ let s = t;
1637
+ return V(n) ? a.key = n : W(n) && Object.keys(n).forEach((e) => {
1638
+ Qr.includes(e) ? o[e] = n[e] : a[e] = n[e];
1639
+ }), V(r) ? a.locale = r : W(r) && (o = r), W(i) && (o = i), [
1640
+ a.key || "",
1641
+ s,
1642
+ a,
1643
+ o
1644
+ ];
1645
+ }
1646
+ function ei(e, t, n) {
1647
+ let r = e;
1648
+ for (let e in n) {
1649
+ let n = `${t}__${e}`;
1650
+ r.__numberFormatters.has(n) && r.__numberFormatters.delete(n);
1651
+ }
1652
+ }
1653
+ var ti = (e) => e, ni = (e) => "", ri = "text", ii = (e) => e.length === 0 ? "" : Tt(e), ai = wt;
1654
+ function oi(e, t) {
1655
+ return e = Math.abs(e), t === 2 ? e === 1 ? 0 : 1 : Math.min(e, 2);
1656
+ }
1657
+ function si(e) {
1658
+ let t = F(e.pluralIndex) ? e.pluralIndex : -1;
1659
+ return F(e.named?.count) ? e.named.count : F(e.named?.n) ? e.named.n : t;
1660
+ }
1661
+ function ci(e = {}) {
1662
+ let t = e.locale, n = si(e), r = V(t) && B(e.pluralRules?.[t]) ? e.pluralRules[t] : oi, i = r === oi ? void 0 : oi, a = (e) => e[r(n, e.length, i)], o = e.list || [], s = (e) => o[e], c = e.named || L();
1663
+ F(e.pluralIndex) && (c.count ||= e.pluralIndex, c.n ||= e.pluralIndex);
1664
+ let l = (e) => c[e];
1665
+ function u(t, n) {
1666
+ return (B(e.messages) ? e.messages(t, !!n) : U(e.messages) ? e.messages[t] : !1) || (e.parent ? e.parent.message(t) : ni);
1667
+ }
1668
+ let d = (t) => e.modifiers ? e.modifiers[t] : ti, f = B(e.processor?.normalize) ? e.processor.normalize : ii, p = B(e.processor?.interpolate) ? e.processor.interpolate : ai, m = {
1669
+ list: s,
1670
+ named: l,
1671
+ plural: a,
1672
+ linked: (e, ...t) => {
1673
+ let [n, r] = t, i = "text", a = "";
1674
+ t.length === 1 ? U(n) ? (a = n.modifier || a, i = n.type || i) : V(n) && (a = n || a) : t.length === 2 && (V(n) && (a = n || a), V(r) && (i = r || i));
1675
+ let o = u(e, !0)(m), s = o === "" || o === void 0 ? e : o, c = i === "vnode" && z(s) && a ? s[0] : s;
1676
+ return a ? d(a)(c, i) : c;
1677
+ },
1678
+ message: u,
1679
+ type: V(e.processor?.type) ? e.processor.type : ri,
1680
+ interpolate: p,
1681
+ normalize: f,
1682
+ values: I(L(), o, c)
1683
+ };
1684
+ return m;
1685
+ }
1686
+ var li = () => "", X = (e) => B(e);
1687
+ function ui(e, ...t) {
1688
+ let { fallbackFormat: n, postTranslation: r, unresolving: i, messageCompiler: a, fallbackLocale: o, messages: s } = e, [c, l] = hi(...t), u = H(l.missingWarn) ? l.missingWarn : e.missingWarn, d = H(l.fallbackWarn) ? l.fallbackWarn : e.fallbackWarn, f = H(l.escapeParameter) ? l.escapeParameter : e.escapeParameter, p = !!l.resolvedMessage, m = V(l.default) || H(l.default) ? H(l.default) ? a ? c : () => c : l.default : n ? a ? c : () => c : null, h = n || m != null && (V(m) || B(m)), g = tr(e, l);
1689
+ f && di(l);
1690
+ let [_, v, y] = p ? [
1691
+ c,
1692
+ g,
1693
+ s[g] || L()
1694
+ ] : fi(e, c, g, o, d, u), b = _, x = c;
1695
+ if (!p && !(V(b) || q(b) || X(b)) && h && (b = m, x = b), !p && (!(V(b) || q(b) || X(b)) || !V(v))) return i ? -1 : c;
1696
+ if (process.env.NODE_ENV !== "production" && V(b) && e.messageCompiler == null) return j(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${c}'.`), c;
1697
+ let S = !1, C = X(b) ? b : pi(e, c, v, b, x, () => {
1698
+ S = !0;
1699
+ });
1700
+ if (S) return b;
1701
+ let w = mi(e, C, ci(vi(e, v, y, l))), T = r ? r(w, c) : w;
1702
+ if (f && V(T) && (T = yt(T)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
1703
+ let t = {
1704
+ timestamp: Date.now(),
1705
+ key: V(c) ? c : X(b) ? b.key : "",
1706
+ locale: v || (X(b) ? b.locale : ""),
1707
+ format: V(b) ? b : X(b) ? b.source : "",
1708
+ message: T
1709
+ };
1710
+ t.meta = I({}, e.__meta, /* @__PURE__ */ Mr() || {}), Zn(t);
1711
+ }
1712
+ return T;
1713
+ }
1714
+ function di(e) {
1715
+ z(e.list) ? e.list = e.list.map((e) => V(e) ? _t(e) : e) : U(e.named) && Object.keys(e.named).forEach((t) => {
1716
+ V(e.named[t]) && (e.named[t] = _t(e.named[t]));
1717
+ });
1718
+ }
1719
+ function fi(e, t, n, r, i, a) {
1720
+ let { messages: o, onWarn: s, messageResolver: c, localeFallbacker: l } = e, u = l(e, r, n), d = L(), f, p = null, m = n, h = null, g = "translate";
1721
+ for (let r = 0; r < u.length; r++) {
1722
+ f = h = u[r], process.env.NODE_ENV !== "production" && n !== f && !Ur(n, f) && zr(i, t) && s(br(Y.FALLBACK_TO_TRANSLATE, {
1723
+ key: t,
1724
+ target: f
1725
+ }));
1726
+ let l = process.env.NODE_ENV === "production" ? void 0 : e.__v_emitter;
1727
+ process.env.NODE_ENV !== "production" && n !== f && l && l.emit("fallback", {
1728
+ type: g,
1729
+ key: t,
1730
+ from: m,
1731
+ to: h,
1732
+ groupId: `${g}:${t}`
1733
+ }), d = o[f] || L();
1734
+ let _ = null, v, y;
1735
+ if (process.env.NODE_ENV !== "production" && M && l && (_ = window.performance.now(), v = "intlify-message-resolve-start", y = "intlify-message-resolve-end", N && N(v)), (p = c(d, t)) === null && (p = d[t]), process.env.NODE_ENV !== "production" && M && l) {
1736
+ let e = window.performance.now();
1737
+ l && _ && p && l.emit("message-resolve", {
1738
+ type: "message-resolve",
1739
+ key: t,
1740
+ message: p,
1741
+ time: e - _,
1742
+ groupId: `${g}:${t}`
1743
+ }), v && y && N && ot && (N(y), ot("intlify message resolve", v, y));
1744
+ }
1745
+ if (V(p) || q(p) || X(p)) break;
1746
+ if (!Wr(f, u)) {
1747
+ let n = Vr(e, t, f, a, g);
1748
+ n !== t && (p = n);
1749
+ }
1750
+ m = h;
1751
+ }
1752
+ return [
1753
+ p,
1754
+ f,
1755
+ d
1756
+ ];
1757
+ }
1758
+ function pi(e, t, n, r, i, a) {
1759
+ let { messageCompiler: o, warnHtmlMessage: s } = e;
1760
+ if (X(r)) {
1761
+ let e = r;
1762
+ return e.locale = e.locale || n, e.key = e.key || t, e;
1763
+ }
1764
+ if (o == null) {
1765
+ let e = (() => r);
1766
+ return e.locale = n, e.key = t, e;
1767
+ }
1768
+ let c = process.env.NODE_ENV === "production" ? void 0 : e.__v_emitter, l = null, u, d;
1769
+ process.env.NODE_ENV !== "production" && M && c && (l = window.performance.now(), u = "intlify-message-compilation-start", d = "intlify-message-compilation-end", N && N(u));
1770
+ let f = o(r, gi(e, n, i, r, s, a));
1771
+ if (process.env.NODE_ENV !== "production" && M && c) {
1772
+ let e = window.performance.now();
1773
+ c && l && c.emit("message-compilation", {
1774
+ type: "message-compilation",
1775
+ message: r,
1776
+ time: e - l,
1777
+ groupId: `translate:${t}`
1778
+ }), u && d && N && ot && (N(d), ot("intlify message compilation", u, d));
1779
+ }
1780
+ return f.locale = n, f.key = t, f.source = r, f;
1781
+ }
1782
+ function mi(e, t, n) {
1783
+ let r = process.env.NODE_ENV === "production" ? void 0 : e.__v_emitter, i = null, a, o;
1784
+ process.env.NODE_ENV !== "production" && M && r && (i = window.performance.now(), a = "intlify-message-evaluation-start", o = "intlify-message-evaluation-end", N && N(a));
1785
+ let s = t(n);
1786
+ if (process.env.NODE_ENV !== "production" && M && r) {
1787
+ let e = window.performance.now();
1788
+ r && i && r.emit("message-evaluation", {
1789
+ type: "message-evaluation",
1790
+ value: s,
1791
+ time: e - i,
1792
+ groupId: `translate:${t.key}`
1793
+ }), a && o && N && ot && (N(o), ot("intlify message evaluation", a, o));
1794
+ }
1795
+ return s;
1796
+ }
1797
+ function hi(...e) {
1798
+ let [t, n, r] = e, i = L();
1799
+ if (!V(t) && !F(t) && !X(t) && !q(t)) throw $n(J.INVALID_ARGUMENT);
1800
+ let a = F(t) ? String(t) : (X(t), t);
1801
+ return F(n) ? i.plural = n : V(n) ? i.default = n : W(n) && !pt(n) ? i.named = n : z(n) && (i.list = n), F(r) ? i.plural = r : V(r) ? i.default = r : W(r) && I(i, r), [a, i];
1802
+ }
1803
+ function gi(e, t, n, r, i, a) {
1804
+ return {
1805
+ locale: t,
1806
+ key: n,
1807
+ warnHtmlMessage: i,
1808
+ onError: (t) => {
1809
+ if (a && a(t), process.env.NODE_ENV !== "production") {
1810
+ let i = _i(r), a = t.location && i && Dt(i, t.location.start.offset, t.location.end.offset), o = e.__v_emitter;
1811
+ o && i && o.emit("compile-error", {
1812
+ message: i,
1813
+ error: t.message,
1814
+ start: t.location && t.location.start.offset,
1815
+ end: t.location && t.location.end.offset,
1816
+ groupId: `translate:${n}`
1817
+ });
1818
+ let s = `Message compilation error: ${t.message}`;
1819
+ throw SyntaxError(a ? `${s}\n${a}` : s);
1820
+ }
1821
+ throw t;
1822
+ },
1823
+ onCacheKey: (e) => lt(t, n, e)
1824
+ };
1825
+ }
1826
+ function _i(e) {
1827
+ if (V(e)) return e;
1828
+ if (e.loc && e.loc.source) return e.loc.source;
1829
+ }
1830
+ function vi(e, t, n, r) {
1831
+ let { modifiers: i, pluralRules: a, messageResolver: o, fallbackLocale: s, fallbackWarn: c, missingWarn: l, fallbackContext: u } = e, d = {
1832
+ locale: t,
1833
+ modifiers: i,
1834
+ pluralRules: a,
1835
+ messages: (r, i) => {
1836
+ let a = o(n, r);
1837
+ if (a == null && (u || i)) {
1838
+ let [n, , i] = fi(u || e, r, t, s, c, l);
1839
+ a = n ?? o(i, r);
1840
+ }
1841
+ if (V(a) || q(a)) {
1842
+ let n = !1, i = pi(e, r, t, a, r, () => {
1843
+ n = !0;
1844
+ });
1845
+ return n ? li : i;
1846
+ } else if (X(a)) return a;
1847
+ else return li;
1848
+ }
1849
+ };
1850
+ return e.processor && (d.processor = e.processor), r.list && (d.list = r.list), r.named && (d.named = r.named), F(r.plural) && (d.pluralIndex = r.plural), d;
1851
+ }
1852
+ vn();
1853
+ //#endregion
1854
+ //#region node_modules/vue-i18n/node_modules/@vue/devtools-api/lib/esm/env.js
1855
+ function yi() {
1856
+ return bi().__VUE_DEVTOOLS_GLOBAL_HOOK__;
1857
+ }
1858
+ function bi() {
1859
+ return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
1860
+ }
1861
+ var xi = typeof Proxy == "function", Si = "devtools-plugin:setup", Ci = "plugin:settings:set", wi, Ti;
1862
+ function Ei() {
1863
+ return wi === void 0 && (typeof window < "u" && window.performance ? (wi = !0, Ti = window.performance) : typeof globalThis < "u" && globalThis.perf_hooks?.performance ? (wi = !0, Ti = globalThis.perf_hooks.performance) : wi = !1), wi;
1864
+ }
1865
+ function Di() {
1866
+ return Ei() ? Ti.now() : Date.now();
1867
+ }
1868
+ //#endregion
1869
+ //#region node_modules/vue-i18n/node_modules/@vue/devtools-api/lib/esm/proxy.js
1870
+ var Oi = class {
1871
+ constructor(e, t) {
1872
+ this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = e, this.hook = t;
1873
+ let n = {};
1874
+ if (e.settings) for (let t in e.settings) n[t] = e.settings[t].defaultValue;
1875
+ let r = `__vue-devtools-plugin-settings__${e.id}`, i = Object.assign({}, n);
1876
+ try {
1877
+ let e = localStorage.getItem(r), t = JSON.parse(e);
1878
+ Object.assign(i, t);
1879
+ } catch {}
1880
+ this.fallbacks = {
1881
+ getSettings() {
1882
+ return i;
1883
+ },
1884
+ setSettings(e) {
1885
+ try {
1886
+ localStorage.setItem(r, JSON.stringify(e));
1887
+ } catch {}
1888
+ i = e;
1889
+ },
1890
+ now() {
1891
+ return Di();
1892
+ }
1893
+ }, t && t.on(Ci, (e, t) => {
1894
+ e === this.plugin.id && this.fallbacks.setSettings(t);
1895
+ }), this.proxiedOn = new Proxy({}, { get: (e, t) => this.target ? this.target.on[t] : (...e) => {
1896
+ this.onQueue.push({
1897
+ method: t,
1898
+ args: e
1899
+ });
1900
+ } }), this.proxiedTarget = new Proxy({}, { get: (e, t) => this.target ? this.target[t] : t === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(t) ? (...e) => (this.targetQueue.push({
1901
+ method: t,
1902
+ args: e,
1903
+ resolve: () => {}
1904
+ }), this.fallbacks[t](...e)) : (...e) => new Promise((n) => {
1905
+ this.targetQueue.push({
1906
+ method: t,
1907
+ args: e,
1908
+ resolve: n
1909
+ });
1910
+ }) });
1911
+ }
1912
+ async setRealTarget(e) {
1913
+ this.target = e;
1914
+ for (let e of this.onQueue) this.target.on[e.method](...e.args);
1915
+ for (let e of this.targetQueue) e.resolve(await this.target[e.method](...e.args));
1916
+ }
1917
+ };
1918
+ //#endregion
1919
+ //#region node_modules/vue-i18n/node_modules/@vue/devtools-api/lib/esm/index.js
1920
+ function ki(e, t) {
1921
+ let n = e, r = bi(), i = yi(), a = xi && n.enableEarlyProxy;
1922
+ if (i && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a)) i.emit(Si, e, t);
1923
+ else {
1924
+ let e = a ? new Oi(n, i) : null;
1925
+ (r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
1926
+ pluginDescriptor: n,
1927
+ setupFn: t,
1928
+ proxy: e
1929
+ }), e && t(e.proxiedTarget);
1930
+ }
1931
+ }
1932
+ //#endregion
1933
+ //#region node_modules/vue-i18n/dist/vue-i18n.mjs
1934
+ var Ai = "11.3.2";
1935
+ function ji() {
1936
+ typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (gt().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (gt().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (gt().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (gt().__INTLIFY_PROD_DEVTOOLS__ = !1);
1937
+ }
1938
+ var Z = {
1939
+ UNEXPECTED_RETURN_TYPE: 24,
1940
+ INVALID_ARGUMENT: 25,
1941
+ MUST_BE_CALL_SETUP_TOP: 26,
1942
+ NOT_INSTALLED: 27,
1943
+ REQUIRED_VALUE: 28,
1944
+ INVALID_VALUE: 29,
1945
+ CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN: 30,
1946
+ NOT_INSTALLED_WITH_PROVIDE: 31,
1947
+ UNEXPECTED_ERROR: 32,
1948
+ NOT_COMPATIBLE_LEGACY_VUE_I18N: 33,
1949
+ NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
1950
+ };
1951
+ function Q(e, ...t) {
1952
+ return Pt(e, null, process.env.NODE_ENV === "production" ? void 0 : {
1953
+ messages: Mi,
1954
+ args: t
1955
+ });
1956
+ }
1957
+ var Mi = {
1958
+ [Z.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
1959
+ [Z.INVALID_ARGUMENT]: "Invalid argument",
1960
+ [Z.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
1961
+ [Z.NOT_INSTALLED]: "Need to install with `app.use` function",
1962
+ [Z.UNEXPECTED_ERROR]: "Unexpected error",
1963
+ [Z.REQUIRED_VALUE]: "Required in value: {0}",
1964
+ [Z.INVALID_VALUE]: "Invalid value",
1965
+ [Z.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]: "Cannot setup vue-devtools plugin",
1966
+ [Z.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
1967
+ [Z.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
1968
+ [Z.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
1969
+ }, Ni = /* @__PURE__ */ P("__translateVNode"), Pi = /* @__PURE__ */ P("__datetimeParts"), Fi = /* @__PURE__ */ P("__numberParts"), Ii = /* @__PURE__ */ P("__enableEmitter"), Li = /* @__PURE__ */ P("__disableEmitter"), Ri = P("__setPluralRules");
1970
+ P("__intlifyMeta");
1971
+ var zi = /* @__PURE__ */ P("__injectWithOption"), Bi = /* @__PURE__ */ P("__dispose"), $ = {
1972
+ FALLBACK_TO_ROOT: 10,
1973
+ NOT_FOUND_PARENT_SCOPE: 11,
1974
+ IGNORE_OBJ_FLATTEN: 12,
1975
+ DEPRECATE_LEGACY_MODE: 13,
1976
+ DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 14,
1977
+ DUPLICATE_USE_I18N_CALLING: 15
1978
+ }, Vi = {
1979
+ [$.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
1980
+ [$.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
1981
+ [$.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
1982
+ [$.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",
1983
+ [$.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]: "'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",
1984
+ [$.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."
1985
+ };
1986
+ function Hi(e, ...t) {
1987
+ return ct(Vi[e], ...t);
1988
+ }
1989
+ function Ui(e) {
1990
+ if (!U(e) || q(e)) return e;
1991
+ for (let t in e) if (R(e, t)) if (!t.includes(".")) U(e[t]) && Ui(e[t]);
1992
+ else {
1993
+ let n = t.split("."), r = n.length - 1, i = e, a = !1;
1994
+ for (let e = 0; e < r; e++) {
1995
+ if (n[e] === "__proto__") throw Error(`unsafe key: ${n[e]}`);
1996
+ if (n[e] in i || (i[n[e]] = L()), !U(i[n[e]])) {
1997
+ process.env.NODE_ENV !== "production" && j(Hi($.IGNORE_OBJ_FLATTEN, { key: n[e] })), a = !0;
1998
+ break;
1999
+ }
2000
+ i = i[n[e]];
2001
+ }
2002
+ if (a || (q(i) ? In.includes(n[r]) || delete e[t] : (i[n[r]] = e[t], delete e[t])), !q(i)) {
2003
+ let e = i[n[r]];
2004
+ U(e) && Ui(e);
2005
+ }
2006
+ }
2007
+ return e;
2008
+ }
2009
+ function Wi(e, t) {
2010
+ let { messages: n, __i18n: r, messageResolver: i, flatJson: a } = t, o = W(n) ? n : z(r) ? L() : { [e]: L() };
2011
+ if (z(r) && r.forEach((e) => {
2012
+ if ("locale" in e && "resource" in e) {
2013
+ let { locale: t, resource: n } = e;
2014
+ t ? (o[t] = o[t] || L(), At(n, o[t])) : At(n, o);
2015
+ } else V(e) && At(JSON.parse(e), o);
2016
+ }), i == null && a) for (let e in o) R(o, e) && Ui(o[e]);
2017
+ return o;
2018
+ }
2019
+ function Gi(e) {
2020
+ return e.type;
2021
+ }
2022
+ function Ki(e, t, n) {
2023
+ let r = U(t.messages) ? t.messages : L();
2024
+ "__i18nGlobal" in n && (r = Wi(e.locale.value, {
2025
+ messages: r,
2026
+ __i18n: n.__i18nGlobal
2027
+ }));
2028
+ let i = Object.keys(r);
2029
+ if (i.length && i.forEach((t) => {
2030
+ e.mergeLocaleMessage(t, r[t]);
2031
+ }), U(t.datetimeFormats)) {
2032
+ let n = Object.keys(t.datetimeFormats);
2033
+ n.length && n.forEach((n) => {
2034
+ e.mergeDateTimeFormat(n, t.datetimeFormats[n]);
2035
+ });
2036
+ }
2037
+ if (U(t.numberFormats)) {
2038
+ let n = Object.keys(t.numberFormats);
2039
+ n.length && n.forEach((n) => {
2040
+ e.mergeNumberFormat(n, t.numberFormats[n]);
2041
+ });
2042
+ }
2043
+ }
2044
+ function qi(e) {
2045
+ return a(r, null, e, 0);
2046
+ }
2047
+ function Ji() {
2048
+ let e = "currentInstance";
2049
+ return e in t ? t[e] : t.getCurrentInstance();
2050
+ }
2051
+ var Yi = () => [], Xi = () => !1, Zi = 0;
2052
+ function Qi(e) {
2053
+ return ((t, n, r, i) => e(n, r, Ji() || void 0, i));
2054
+ }
2055
+ function $i(e = {}) {
2056
+ let { __root: t, __injectWithOption: n } = e, r = t === void 0, a = e.flatJson, o = M ? p : m, s = H(e.inheritLocale) ? e.inheritLocale : !0, c = o(t && s ? t.locale.value : V(e.locale) ? e.locale : Sr), l = o(t && s ? t.fallbackLocale.value : V(e.fallbackLocale) || z(e.fallbackLocale) || W(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : c.value), u = o(Wi(c.value, e)), d = o(W(e.datetimeFormats) ? e.datetimeFormats : { [c.value]: {} }), f = o(W(e.numberFormats) ? e.numberFormats : { [c.value]: {} }), g = t ? t.missingWarn : H(e.missingWarn) || ft(e.missingWarn) ? e.missingWarn : !0, _ = t ? t.fallbackWarn : H(e.fallbackWarn) || ft(e.fallbackWarn) ? e.fallbackWarn : !0, v = t ? t.fallbackRoot : H(e.fallbackRoot) ? e.fallbackRoot : !0, y = !!e.fallbackFormat, b = B(e.missing) ? e.missing : null, x = B(e.missing) ? Qi(e.missing) : null, S = B(e.postTranslation) ? e.postTranslation : null, C = t ? t.warnHtmlMessage : H(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, w = !!e.escapeParameter, T = t ? t.modifiers : W(e.modifiers) ? e.modifiers : {}, E = e.pluralRules || t && t.pluralRules, D;
2057
+ D = (() => {
2058
+ r && Pr(null);
2059
+ let t = {
2060
+ version: Ai,
2061
+ locale: c.value,
2062
+ fallbackLocale: l.value,
2063
+ messages: u.value,
2064
+ modifiers: T,
2065
+ pluralRules: E,
2066
+ missing: x === null ? void 0 : x,
2067
+ missingWarn: g,
2068
+ fallbackWarn: _,
2069
+ fallbackFormat: y,
2070
+ unresolving: !0,
2071
+ postTranslation: S === null ? void 0 : S,
2072
+ warnHtmlMessage: C,
2073
+ escapeParameter: w,
2074
+ messageResolver: e.messageResolver,
2075
+ messageCompiler: e.messageCompiler,
2076
+ __meta: { framework: "vue" }
2077
+ };
2078
+ t.datetimeFormats = d.value, t.numberFormats = f.value, t.__datetimeFormatters = W(D) ? D.__datetimeFormatters : void 0, t.__numberFormatters = W(D) ? D.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (t.__v_emitter = W(D) ? D.__v_emitter : void 0);
2079
+ let n = Lr(t);
2080
+ return r && Pr(n), n;
2081
+ })(), Hr(D, c.value, l.value);
2082
+ function O() {
2083
+ return [
2084
+ c.value,
2085
+ l.value,
2086
+ u.value,
2087
+ d.value,
2088
+ f.value
2089
+ ];
2090
+ }
2091
+ let ee = i({
2092
+ get: () => c.value,
2093
+ set: (e) => {
2094
+ D.locale = e, c.value = e;
2095
+ }
2096
+ }), te = i({
2097
+ get: () => l.value,
2098
+ set: (e) => {
2099
+ D.fallbackLocale = e, l.value = e, Hr(D, c.value, e);
2100
+ }
2101
+ }), ne = i(() => u.value), re = /* @__PURE__ */ i(() => d.value), ie = /* @__PURE__ */ i(() => f.value);
2102
+ function ae() {
2103
+ return B(S) ? S : null;
2104
+ }
2105
+ function oe(e) {
2106
+ S = e, D.postTranslation = e;
2107
+ }
2108
+ function se() {
2109
+ return b;
2110
+ }
2111
+ function ce(e) {
2112
+ e !== null && (x = Qi(e)), b = e, D.missing = x;
2113
+ }
2114
+ function le(e, t) {
2115
+ return e !== "translate" || !t.resolvedMessage;
2116
+ }
2117
+ let k = (e, n, i, a, o, s) => {
2118
+ O();
2119
+ let c;
2120
+ try {
2121
+ process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (D.fallbackContext = t ? Fr() : void 0), c = e(D);
2122
+ } finally {
2123
+ process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (D.fallbackContext = void 0);
2124
+ }
2125
+ if (i !== "translate exists" && F(c) && c === -1 || i === "translate exists" && !c) {
2126
+ let [e, r] = n();
2127
+ if (process.env.NODE_ENV !== "production" && t && V(e) && le(i, r) && (v && (zr(_, e) || Br(g, e)) && j(Hi($.FALLBACK_TO_ROOT, {
2128
+ key: e,
2129
+ type: i
2130
+ })), process.env.NODE_ENV !== "production")) {
2131
+ let { __v_emitter: t } = D;
2132
+ t && v && t.emit("fallback", {
2133
+ type: i,
2134
+ key: e,
2135
+ to: "global",
2136
+ groupId: `${i}:${e}`
2137
+ });
2138
+ }
2139
+ return t && v ? a(t) : o(e);
2140
+ } else if (s(c)) return c;
2141
+ else
2142
+ /* istanbul ignore next */
2143
+ throw Q(Z.UNEXPECTED_RETURN_TYPE);
2144
+ };
2145
+ function ue(...e) {
2146
+ return k((t) => Reflect.apply(ui, null, [t, ...e]), () => hi(...e), "translate", (t) => Reflect.apply(t.t, t, [...e]), (e) => e, (e) => V(e));
2147
+ }
2148
+ function de(...e) {
2149
+ let [t, n, r] = e;
2150
+ if (r && !U(r)) throw Q(Z.INVALID_ARGUMENT);
2151
+ return ue(t, n, I({ resolvedMessage: !0 }, r || {}));
2152
+ }
2153
+ function fe(...e) {
2154
+ return k((t) => Reflect.apply(qr, null, [t, ...e]), () => Yr(...e), "datetime format", (t) => Reflect.apply(t.d, t, [...e]), () => "", (e) => V(e) || z(e));
2155
+ }
2156
+ function pe(...e) {
2157
+ return k((t) => Reflect.apply(Zr, null, [t, ...e]), () => $r(...e), "number format", (t) => Reflect.apply(t.n, t, [...e]), () => "", (e) => V(e) || z(e));
2158
+ }
2159
+ function me(e) {
2160
+ return e.map((e) => V(e) || F(e) || H(e) ? qi(String(e)) : e);
2161
+ }
2162
+ let he = {
2163
+ normalize: me,
2164
+ interpolate: (e) => e,
2165
+ type: "vnode"
2166
+ };
2167
+ function ge(...e) {
2168
+ return k((t) => {
2169
+ let n, r = t;
2170
+ try {
2171
+ r.processor = he, n = Reflect.apply(ui, null, [r, ...e]);
2172
+ } finally {
2173
+ r.processor = null;
2174
+ }
2175
+ return n;
2176
+ }, () => hi(...e), "translate", (t) => t[Ni](...e), (e) => [qi(e)], (e) => z(e));
2177
+ }
2178
+ function _e(...e) {
2179
+ return k((t) => Reflect.apply(Zr, null, [t, ...e]), () => $r(...e), "number format", (t) => t[Fi](...e), Yi, (e) => V(e) || z(e));
2180
+ }
2181
+ function ve(...e) {
2182
+ return k((t) => Reflect.apply(qr, null, [t, ...e]), () => Yr(...e), "datetime format", (t) => t[Pi](...e), Yi, (e) => V(e) || z(e));
2183
+ }
2184
+ function ye(e) {
2185
+ E = e, D.pluralRules = E;
2186
+ }
2187
+ function be(e, t) {
2188
+ return k(() => {
2189
+ if (!e) return !1;
2190
+ let n = V(t) ? t : c.value, r = V(t) ? [n] : ar(D, l.value, n);
2191
+ for (let t = 0; t < r.length; t++) {
2192
+ let n = Ce(r[t]), i = D.messageResolver(n, e);
2193
+ if (i === null && (i = n[e]), q(i) || X(i) || V(i)) return !0;
2194
+ }
2195
+ return !1;
2196
+ }, () => [e], "translate exists", (n) => Reflect.apply(n.te, n, [e, t]), Xi, (e) => H(e));
2197
+ }
2198
+ function xe(e) {
2199
+ let t = null, n = ar(D, l.value, c.value);
2200
+ for (let r = 0; r < n.length; r++) {
2201
+ let i = u.value[n[r]] || {}, a = D.messageResolver(i, e);
2202
+ if (a != null) {
2203
+ t = a;
2204
+ break;
2205
+ }
2206
+ }
2207
+ return t;
2208
+ }
2209
+ function Se(e) {
2210
+ return xe(e) ?? (t && t.tm(e) || {});
2211
+ }
2212
+ function Ce(e) {
2213
+ return u.value[e] || {};
2214
+ }
2215
+ function we(e, t) {
2216
+ if (a) {
2217
+ let n = { [e]: t };
2218
+ for (let e in n) R(n, e) && Ui(n[e]);
2219
+ t = n[e];
2220
+ }
2221
+ u.value[e] = t, D.messages = u.value;
2222
+ }
2223
+ function Te(e, t) {
2224
+ u.value[e] = u.value[e] || {};
2225
+ let n = { [e]: t };
2226
+ if (a) for (let e in n) R(n, e) && Ui(n[e]);
2227
+ t = n[e], At(t, u.value[e]), D.messages = u.value;
2228
+ }
2229
+ function Ee(e) {
2230
+ return d.value[e] || {};
2231
+ }
2232
+ function De(e, t) {
2233
+ d.value[e] = t, D.datetimeFormats = d.value, Xr(D, e, t);
2234
+ }
2235
+ function Oe(e, t) {
2236
+ d.value[e] = I(d.value[e] || {}, t), D.datetimeFormats = d.value, Xr(D, e, t);
2237
+ }
2238
+ function ke(e) {
2239
+ return f.value[e] || {};
2240
+ }
2241
+ function Ae(e, t) {
2242
+ f.value[e] = t, D.numberFormats = f.value, ei(D, e, t);
2243
+ }
2244
+ function je(e, t) {
2245
+ f.value[e] = I(f.value[e] || {}, t), D.numberFormats = f.value, ei(D, e, t);
2246
+ }
2247
+ Zi++, t && M && (h(t.locale, (e) => {
2248
+ s && (c.value = e, D.locale = e, Hr(D, c.value, l.value));
2249
+ }), h(t.fallbackLocale, (e) => {
2250
+ s && (l.value = e, D.fallbackLocale = e, Hr(D, c.value, l.value));
2251
+ }));
2252
+ let A = {
2253
+ id: Zi,
2254
+ locale: ee,
2255
+ fallbackLocale: te,
2256
+ get inheritLocale() {
2257
+ return s;
2258
+ },
2259
+ set inheritLocale(e) {
2260
+ s = e, e && t && (c.value = t.locale.value, l.value = t.fallbackLocale.value, Hr(D, c.value, l.value));
2261
+ },
2262
+ get availableLocales() {
2263
+ return Object.keys(u.value).sort();
2264
+ },
2265
+ messages: ne,
2266
+ get modifiers() {
2267
+ return T;
2268
+ },
2269
+ get pluralRules() {
2270
+ return E || {};
2271
+ },
2272
+ get isGlobal() {
2273
+ return r;
2274
+ },
2275
+ get missingWarn() {
2276
+ return g;
2277
+ },
2278
+ set missingWarn(e) {
2279
+ g = e, D.missingWarn = g;
2280
+ },
2281
+ get fallbackWarn() {
2282
+ return _;
2283
+ },
2284
+ set fallbackWarn(e) {
2285
+ _ = e, D.fallbackWarn = _;
2286
+ },
2287
+ get fallbackRoot() {
2288
+ return v;
2289
+ },
2290
+ set fallbackRoot(e) {
2291
+ v = e;
2292
+ },
2293
+ get fallbackFormat() {
2294
+ return y;
2295
+ },
2296
+ set fallbackFormat(e) {
2297
+ y = e, D.fallbackFormat = y;
2298
+ },
2299
+ get warnHtmlMessage() {
2300
+ return C;
2301
+ },
2302
+ set warnHtmlMessage(e) {
2303
+ C = e, D.warnHtmlMessage = e;
2304
+ },
2305
+ get escapeParameter() {
2306
+ return w;
2307
+ },
2308
+ set escapeParameter(e) {
2309
+ w = e, D.escapeParameter = e;
2310
+ },
2311
+ t: ue,
2312
+ getLocaleMessage: Ce,
2313
+ setLocaleMessage: we,
2314
+ mergeLocaleMessage: Te,
2315
+ getPostTranslationHandler: ae,
2316
+ setPostTranslationHandler: oe,
2317
+ getMissingHandler: se,
2318
+ setMissingHandler: ce,
2319
+ [Ri]: ye
2320
+ };
2321
+ return A.datetimeFormats = re, A.numberFormats = ie, A.rt = de, A.te = be, A.tm = Se, A.d = fe, A.n = pe, A.getDateTimeFormat = Ee, A.setDateTimeFormat = De, A.mergeDateTimeFormat = Oe, A.getNumberFormat = ke, A.setNumberFormat = Ae, A.mergeNumberFormat = je, A[zi] = n, A[Ni] = ge, A[Pi] = ve, A[Fi] = _e, process.env.NODE_ENV !== "production" && (A[Ii] = (e) => {
2322
+ D.__v_emitter = e;
2323
+ }, A[Li] = () => {
2324
+ D.__v_emitter = void 0;
2325
+ }), A;
2326
+ }
2327
+ var ea = "vue-i18n: composer properties", ta = {
2328
+ "vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
2329
+ "vue-i18n-resource-inspector": "Vue I18n DevTools",
2330
+ "vue-i18n-timeline": "Vue I18n"
2331
+ }, na = { "vue-i18n-resource-inspector": "Search for scopes ..." }, ra = { "vue-i18n-timeline": 16764185 }, ia;
2332
+ async function aa(e, t) {
2333
+ return new Promise((n, r) => {
2334
+ try {
2335
+ ki({
2336
+ id: "vue-devtools-plugin-vue-i18n",
2337
+ label: ta["vue-devtools-plugin-vue-i18n"],
2338
+ packageName: "vue-i18n",
2339
+ homepage: "https://vue-i18n.intlify.dev",
2340
+ logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
2341
+ componentStateTypes: [ea],
2342
+ app: e
2343
+ }, (r) => {
2344
+ ia = r, r.on.visitComponentTree(({ componentInstance: e, treeNode: n }) => {
2345
+ sa(e, n, t);
2346
+ }), r.on.inspectComponent(({ componentInstance: e, instanceData: n }) => {
2347
+ e.__VUE_I18N__ && n && (t.mode === "legacy" ? e.__VUE_I18N__ !== t.global.__composer && ca(n, e.__VUE_I18N__) : ca(n, e.__VUE_I18N__));
2348
+ }), r.addInspector({
2349
+ id: "vue-i18n-resource-inspector",
2350
+ label: ta["vue-i18n-resource-inspector"],
2351
+ icon: "language",
2352
+ treeFilterPlaceholder: na["vue-i18n-resource-inspector"]
2353
+ }), r.on.getInspectorTree((n) => {
2354
+ n.app === e && n.inspectorId === "vue-i18n-resource-inspector" && ma(n, t);
2355
+ });
2356
+ let i = /* @__PURE__ */ new Map();
2357
+ r.on.getInspectorState(async (n) => {
2358
+ if (n.app === e && n.inspectorId === "vue-i18n-resource-inspector") if (r.unhighlightElement(), _a(n, t), n.nodeId === "global") {
2359
+ if (!i.has(n.app)) {
2360
+ let [e] = await r.getComponentInstances(n.app);
2361
+ i.set(n.app, e);
2362
+ }
2363
+ r.highlightElement(i.get(n.app));
2364
+ } else {
2365
+ let e = ha(n.nodeId, t);
2366
+ e && r.highlightElement(e);
2367
+ }
2368
+ }), r.on.editInspectorState((n) => {
2369
+ n.app === e && n.inspectorId === "vue-i18n-resource-inspector" && ba(n, t);
2370
+ }), r.addTimelineLayer({
2371
+ id: "vue-i18n-timeline",
2372
+ label: ta["vue-i18n-timeline"],
2373
+ color: ra["vue-i18n-timeline"]
2374
+ }), n(!0);
2375
+ });
2376
+ } catch (e) {
2377
+ console.error(e), r(!1);
2378
+ }
2379
+ });
2380
+ }
2381
+ function oa(e) {
2382
+ return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
2383
+ }
2384
+ function sa(e, t, n) {
2385
+ let r = n.mode === "composition" ? n.global : n.global.__composer;
2386
+ if (e && e.__VUE_I18N__ && e.__VUE_I18N__ !== r) {
2387
+ let n = {
2388
+ label: `i18n (${oa(e)} Scope)`,
2389
+ textColor: 0,
2390
+ backgroundColor: 16764185
2391
+ };
2392
+ t.tags.push(n);
2393
+ }
2394
+ }
2395
+ function ca(e, t) {
2396
+ let n = ea;
2397
+ e.state.push({
2398
+ type: n,
2399
+ key: "locale",
2400
+ editable: !0,
2401
+ value: t.locale.value
2402
+ }), e.state.push({
2403
+ type: n,
2404
+ key: "availableLocales",
2405
+ editable: !1,
2406
+ value: t.availableLocales
2407
+ }), e.state.push({
2408
+ type: n,
2409
+ key: "fallbackLocale",
2410
+ editable: !0,
2411
+ value: t.fallbackLocale.value
2412
+ }), e.state.push({
2413
+ type: n,
2414
+ key: "inheritLocale",
2415
+ editable: !0,
2416
+ value: t.inheritLocale
2417
+ }), e.state.push({
2418
+ type: n,
2419
+ key: "messages",
2420
+ editable: !1,
2421
+ value: la(t.messages.value)
2422
+ }), e.state.push({
2423
+ type: n,
2424
+ key: "datetimeFormats",
2425
+ editable: !1,
2426
+ value: t.datetimeFormats.value
2427
+ }), e.state.push({
2428
+ type: n,
2429
+ key: "numberFormats",
2430
+ editable: !1,
2431
+ value: t.numberFormats.value
2432
+ });
2433
+ }
2434
+ function la(e) {
2435
+ let t = {};
2436
+ return Object.keys(e).forEach((n) => {
2437
+ let r = e[n];
2438
+ B(r) && "source" in r ? t[n] = pa(r) : q(r) && r.loc && r.loc.source ? t[n] = r.loc.source : U(r) ? t[n] = la(r) : t[n] = r;
2439
+ }), t;
2440
+ }
2441
+ var ua = {
2442
+ "<": "&lt;",
2443
+ ">": "&gt;",
2444
+ "\"": "&quot;",
2445
+ "&": "&amp;"
2446
+ };
2447
+ function da(e) {
2448
+ return e.replace(/[<>"&]/g, fa);
2449
+ }
2450
+ function fa(e) {
2451
+ return ua[e] || e;
2452
+ }
2453
+ function pa(e) {
2454
+ return { _custom: {
2455
+ type: "function",
2456
+ display: `<span>ƒ</span> ${e.source ? `("${da(e.source)}")` : "(?)"}`
2457
+ } };
2458
+ }
2459
+ function ma(e, t) {
2460
+ e.rootNodes.push({
2461
+ id: "global",
2462
+ label: "Global Scope"
2463
+ });
2464
+ let n = t.mode === "composition" ? t.global : t.global.__composer;
2465
+ for (let [r, i] of t.__instances) {
2466
+ let a = t.mode === "composition" ? i : i.__composer;
2467
+ n !== a && e.rootNodes.push({
2468
+ id: a.id.toString(),
2469
+ label: `${oa(r)} Scope`
2470
+ });
2471
+ }
2472
+ }
2473
+ function ha(e, t) {
2474
+ let n = null;
2475
+ if (e !== "global") {
2476
+ for (let [r, i] of t.__instances.entries()) if (i.id.toString() === e) {
2477
+ n = r;
2478
+ break;
2479
+ }
2480
+ }
2481
+ return n;
2482
+ }
2483
+ function ga(e, t) {
2484
+ if (e === "global") return t.mode === "composition" ? t.global : t.global.__composer;
2485
+ {
2486
+ let n = Array.from(t.__instances.values()).find((t) => t.id.toString() === e);
2487
+ return n ? t.mode === "composition" ? n : n.__composer : null;
2488
+ }
2489
+ }
2490
+ function _a(e, t) {
2491
+ let n = ga(e.nodeId, t);
2492
+ return n && (e.state = va(n)), null;
2493
+ }
2494
+ function va(e) {
2495
+ let t = {}, n = "Locale related info";
2496
+ t[n] = [
2497
+ {
2498
+ type: n,
2499
+ key: "locale",
2500
+ editable: !0,
2501
+ value: e.locale.value
2502
+ },
2503
+ {
2504
+ type: n,
2505
+ key: "fallbackLocale",
2506
+ editable: !0,
2507
+ value: e.fallbackLocale.value
2508
+ },
2509
+ {
2510
+ type: n,
2511
+ key: "availableLocales",
2512
+ editable: !1,
2513
+ value: e.availableLocales
2514
+ },
2515
+ {
2516
+ type: n,
2517
+ key: "inheritLocale",
2518
+ editable: !0,
2519
+ value: e.inheritLocale
2520
+ }
2521
+ ];
2522
+ let r = "Locale messages info";
2523
+ t[r] = [{
2524
+ type: r,
2525
+ key: "messages",
2526
+ editable: !1,
2527
+ value: la(e.messages.value)
2528
+ }];
2529
+ {
2530
+ let n = "Datetime formats info";
2531
+ t[n] = [{
2532
+ type: n,
2533
+ key: "datetimeFormats",
2534
+ editable: !1,
2535
+ value: e.datetimeFormats.value
2536
+ }];
2537
+ let r = "Datetime formats info";
2538
+ t[r] = [{
2539
+ type: r,
2540
+ key: "numberFormats",
2541
+ editable: !1,
2542
+ value: e.numberFormats.value
2543
+ }];
2544
+ }
2545
+ return t;
2546
+ }
2547
+ function ya(e, t) {
2548
+ if (ia) {
2549
+ let n;
2550
+ t && "groupId" in t && (n = t.groupId, delete t.groupId), ia.addTimelineEvent({
2551
+ layerId: "vue-i18n-timeline",
2552
+ event: {
2553
+ title: e,
2554
+ groupId: n,
2555
+ time: Date.now(),
2556
+ meta: {},
2557
+ data: t || {},
2558
+ logType: e === "compile-error" ? "error" : e === "fallback" || e === "missing" ? "warning" : "default"
2559
+ }
2560
+ });
2561
+ }
2562
+ }
2563
+ function ba(e, t) {
2564
+ let n = ga(e.nodeId, t);
2565
+ if (n) {
2566
+ let [t] = e.path;
2567
+ t === "locale" && V(e.state.value) ? n.locale.value = e.state.value : t === "fallbackLocale" && (V(e.state.value) || z(e.state.value) || U(e.state.value)) ? n.fallbackLocale.value = e.state.value : t === "inheritLocale" && H(e.state.value) && (n.inheritLocale = e.state.value);
2568
+ }
2569
+ }
2570
+ function xa(e) {
2571
+ let t = V(e.locale) ? e.locale : Sr, n = V(e.fallbackLocale) || z(e.fallbackLocale) || W(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, r = B(e.missing) ? e.missing : void 0, i = H(e.silentTranslationWarn) || ft(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, a = H(e.silentFallbackWarn) || ft(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = H(e.fallbackRoot) ? e.fallbackRoot : !0, s = !!e.formatFallbackMessages, c = W(e.modifiers) ? e.modifiers : {}, l = e.pluralizationRules, u = B(e.postTranslation) ? e.postTranslation : void 0, d = V(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, f = !!e.escapeParameterHtml, p = H(e.sync) ? e.sync : !0, m = e.messages;
2572
+ if (W(e.sharedMessages)) {
2573
+ let t = e.sharedMessages;
2574
+ m = Object.keys(t).reduce((e, n) => (I(e[n] || (e[n] = {}), t[n]), e), m || {});
2575
+ }
2576
+ let { __i18n: h, __root: g, __injectWithOption: _ } = e, v = e.datetimeFormats, y = e.numberFormats, b = e.flatJson;
2577
+ return {
2578
+ locale: t,
2579
+ fallbackLocale: n,
2580
+ messages: m,
2581
+ flatJson: b,
2582
+ datetimeFormats: v,
2583
+ numberFormats: y,
2584
+ missing: r,
2585
+ missingWarn: i,
2586
+ fallbackWarn: a,
2587
+ fallbackRoot: o,
2588
+ fallbackFormat: s,
2589
+ modifiers: c,
2590
+ pluralRules: l,
2591
+ postTranslation: u,
2592
+ warnHtmlMessage: d,
2593
+ escapeParameter: f,
2594
+ messageResolver: e.messageResolver,
2595
+ inheritLocale: p,
2596
+ __i18n: h,
2597
+ __root: g,
2598
+ __injectWithOption: _
2599
+ };
2600
+ }
2601
+ function Sa(e = {}) {
2602
+ let t = $i(xa(e)), { __extender: n } = e, r = {
2603
+ id: t.id,
2604
+ get locale() {
2605
+ return t.locale.value;
2606
+ },
2607
+ set locale(e) {
2608
+ t.locale.value = e;
2609
+ },
2610
+ get fallbackLocale() {
2611
+ return t.fallbackLocale.value;
2612
+ },
2613
+ set fallbackLocale(e) {
2614
+ t.fallbackLocale.value = e;
2615
+ },
2616
+ get messages() {
2617
+ return t.messages.value;
2618
+ },
2619
+ get datetimeFormats() {
2620
+ return t.datetimeFormats.value;
2621
+ },
2622
+ get numberFormats() {
2623
+ return t.numberFormats.value;
2624
+ },
2625
+ get availableLocales() {
2626
+ return t.availableLocales;
2627
+ },
2628
+ get missing() {
2629
+ return t.getMissingHandler();
2630
+ },
2631
+ set missing(e) {
2632
+ t.setMissingHandler(e);
2633
+ },
2634
+ get silentTranslationWarn() {
2635
+ return H(t.missingWarn) ? !t.missingWarn : t.missingWarn;
2636
+ },
2637
+ set silentTranslationWarn(e) {
2638
+ t.missingWarn = H(e) ? !e : e;
2639
+ },
2640
+ get silentFallbackWarn() {
2641
+ return H(t.fallbackWarn) ? !t.fallbackWarn : t.fallbackWarn;
2642
+ },
2643
+ set silentFallbackWarn(e) {
2644
+ t.fallbackWarn = H(e) ? !e : e;
2645
+ },
2646
+ get modifiers() {
2647
+ return t.modifiers;
2648
+ },
2649
+ get formatFallbackMessages() {
2650
+ return t.fallbackFormat;
2651
+ },
2652
+ set formatFallbackMessages(e) {
2653
+ t.fallbackFormat = e;
2654
+ },
2655
+ get postTranslation() {
2656
+ return t.getPostTranslationHandler();
2657
+ },
2658
+ set postTranslation(e) {
2659
+ t.setPostTranslationHandler(e);
2660
+ },
2661
+ get sync() {
2662
+ return t.inheritLocale;
2663
+ },
2664
+ set sync(e) {
2665
+ t.inheritLocale = e;
2666
+ },
2667
+ get warnHtmlInMessage() {
2668
+ return t.warnHtmlMessage ? "warn" : "off";
2669
+ },
2670
+ set warnHtmlInMessage(e) {
2671
+ t.warnHtmlMessage = e !== "off";
2672
+ },
2673
+ get escapeParameterHtml() {
2674
+ return t.escapeParameter;
2675
+ },
2676
+ set escapeParameterHtml(e) {
2677
+ t.escapeParameter = e;
2678
+ },
2679
+ get pluralizationRules() {
2680
+ return t.pluralRules || {};
2681
+ },
2682
+ __composer: t,
2683
+ t(...e) {
2684
+ return Reflect.apply(t.t, t, [...e]);
2685
+ },
2686
+ rt(...e) {
2687
+ return Reflect.apply(t.rt, t, [...e]);
2688
+ },
2689
+ te(e, n) {
2690
+ return t.te(e, n);
2691
+ },
2692
+ tm(e) {
2693
+ return t.tm(e);
2694
+ },
2695
+ getLocaleMessage(e) {
2696
+ return t.getLocaleMessage(e);
2697
+ },
2698
+ setLocaleMessage(e, n) {
2699
+ t.setLocaleMessage(e, n);
2700
+ },
2701
+ mergeLocaleMessage(e, n) {
2702
+ t.mergeLocaleMessage(e, n);
2703
+ },
2704
+ d(...e) {
2705
+ return Reflect.apply(t.d, t, [...e]);
2706
+ },
2707
+ getDateTimeFormat(e) {
2708
+ return t.getDateTimeFormat(e);
2709
+ },
2710
+ setDateTimeFormat(e, n) {
2711
+ t.setDateTimeFormat(e, n);
2712
+ },
2713
+ mergeDateTimeFormat(e, n) {
2714
+ t.mergeDateTimeFormat(e, n);
2715
+ },
2716
+ n(...e) {
2717
+ return Reflect.apply(t.n, t, [...e]);
2718
+ },
2719
+ getNumberFormat(e) {
2720
+ return t.getNumberFormat(e);
2721
+ },
2722
+ setNumberFormat(e, n) {
2723
+ t.setNumberFormat(e, n);
2724
+ },
2725
+ mergeNumberFormat(e, n) {
2726
+ t.mergeNumberFormat(e, n);
2727
+ }
2728
+ };
2729
+ return r.__extender = n, process.env.NODE_ENV !== "production" && (r.__enableEmitter = (e) => {
2730
+ let n = t;
2731
+ n[Ii] && n[Ii](e);
2732
+ }, r.__disableEmitter = () => {
2733
+ let e = t;
2734
+ e[Li] && e[Li]();
2735
+ }), r;
2736
+ }
2737
+ function Ca(e, t, n) {
2738
+ return {
2739
+ beforeCreate() {
2740
+ let r = Ji();
2741
+ /* istanbul ignore if */
2742
+ if (!r) throw Q(Z.UNEXPECTED_ERROR);
2743
+ let i = this.$options;
2744
+ if (i.i18n) {
2745
+ let r = i.i18n;
2746
+ if (i.__i18n && (r.__i18n = i.__i18n), r.__root = t, this === this.$root) this.$i18n = wa(e, r);
2747
+ else {
2748
+ r.__injectWithOption = !0, r.__extender = n.__vueI18nExtend, this.$i18n = Sa(r);
2749
+ let e = this.$i18n;
2750
+ e.__extender && (e.__disposer = e.__extender(this.$i18n));
2751
+ }
2752
+ } else if (i.__i18n) if (this === this.$root) this.$i18n = wa(e, i);
2753
+ else {
2754
+ this.$i18n = Sa({
2755
+ __i18n: i.__i18n,
2756
+ __injectWithOption: !0,
2757
+ __extender: n.__vueI18nExtend,
2758
+ __root: t
2759
+ });
2760
+ let e = this.$i18n;
2761
+ e.__extender && (e.__disposer = e.__extender(this.$i18n));
2762
+ }
2763
+ else this.$i18n = e;
2764
+ i.__i18nGlobal && Ki(t, i, i), this.$t = (...e) => this.$i18n.t(...e), this.$rt = (...e) => this.$i18n.rt(...e), this.$te = (e, t) => this.$i18n.te(e, t), this.$d = (...e) => this.$i18n.d(...e), this.$n = (...e) => this.$i18n.n(...e), this.$tm = (e) => this.$i18n.tm(e), n.__setInstance(r, this.$i18n);
2765
+ },
2766
+ mounted() {
2767
+ /* istanbul ignore if */
2768
+ if (process.env.NODE_ENV !== "production" && this.$i18n) {
2769
+ let e = Ji();
2770
+ if (!e) return;
2771
+ let t = this.$i18n;
2772
+ e.__VUE_I18N__ = t.__composer;
2773
+ let n = this.__v_emitter = Ot();
2774
+ t.__enableEmitter && t.__enableEmitter(n), n.on("*", ya);
2775
+ }
2776
+ },
2777
+ unmounted() {
2778
+ let e = Ji();
2779
+ /* istanbul ignore if */
2780
+ if (!e) throw Q(Z.UNEXPECTED_ERROR);
2781
+ let t = this.$i18n;
2782
+ process.env.NODE_ENV !== "production" && e.__VUE_I18N__ && (this.__v_emitter && (this.__v_emitter.off("*", ya), delete this.__v_emitter), this.$i18n && (t.__disableEmitter && t.__disableEmitter(), delete e.__VUE_I18N__)), delete this.$t, delete this.$rt, delete this.$te, delete this.$d, delete this.$n, delete this.$tm, t.__disposer && (t.__disposer(), delete t.__disposer, delete t.__extender), n.__deleteInstance(e), delete this.$i18n;
2783
+ }
2784
+ };
2785
+ }
2786
+ function wa(e, t) {
2787
+ e.locale = t.locale || e.locale, e.fallbackLocale = t.fallbackLocale || e.fallbackLocale, e.missing = t.missing || e.missing, e.silentTranslationWarn = t.silentTranslationWarn || e.silentFallbackWarn, e.silentFallbackWarn = t.silentFallbackWarn || e.silentFallbackWarn, e.formatFallbackMessages = t.formatFallbackMessages || e.formatFallbackMessages, e.postTranslation = t.postTranslation || e.postTranslation, e.warnHtmlInMessage = t.warnHtmlInMessage || e.warnHtmlInMessage, e.escapeParameterHtml = t.escapeParameterHtml || e.escapeParameterHtml, e.sync = t.sync || e.sync, e.__composer[Ri](t.pluralizationRules || e.pluralizationRules);
2788
+ let n = Wi(e.locale, {
2789
+ messages: t.messages,
2790
+ __i18n: t.__i18n
2791
+ });
2792
+ return Object.keys(n).forEach((t) => e.mergeLocaleMessage(t, n[t])), t.datetimeFormats && Object.keys(t.datetimeFormats).forEach((n) => e.mergeDateTimeFormat(n, t.datetimeFormats[n])), t.numberFormats && Object.keys(t.numberFormats).forEach((n) => e.mergeNumberFormat(n, t.numberFormats[n])), e;
2793
+ }
2794
+ var Ta = {
2795
+ tag: { type: [String, Object] },
2796
+ locale: { type: String },
2797
+ scope: {
2798
+ type: String,
2799
+ validator: (e) => e === "parent" || e === "global",
2800
+ default: "parent"
2801
+ },
2802
+ i18n: { type: Object }
2803
+ };
2804
+ function Ea({ slots: e }, t) {
2805
+ return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((e, t) => [...e, ...t.type === n ? t.children : [t]], []) : t.reduce((t, n) => {
2806
+ let r = e[n];
2807
+ return r && (t[n] = r()), t;
2808
+ }, L());
2809
+ }
2810
+ function Da() {
2811
+ return n;
2812
+ }
2813
+ var Oa = /* @__PURE__ */ o({
2814
+ name: "i18n-t",
2815
+ props: I({
2816
+ keypath: {
2817
+ type: String,
2818
+ required: !0
2819
+ },
2820
+ plural: {
2821
+ type: [Number, String],
2822
+ validator: (e) => F(e) || !isNaN(e)
2823
+ }
2824
+ }, Ta),
2825
+ setup(e, t) {
2826
+ let { slots: n, attrs: r } = t, i = e.i18n || za({
2827
+ useScope: e.scope,
2828
+ __useComponent: !0
2829
+ });
2830
+ return () => {
2831
+ let a = Object.keys(n).filter((e) => e[0] !== "_"), o = L();
2832
+ e.locale && (o.locale = e.locale), e.plural !== void 0 && (o.plural = V(e.plural) ? +e.plural : e.plural);
2833
+ let s = Ea(t, a), l = i[Ni](e.keypath, s, o), u = I(L(), r);
2834
+ return c(V(e.tag) || U(e.tag) ? e.tag : Da(), u, l);
2835
+ };
2836
+ }
2837
+ });
2838
+ function ka(e) {
2839
+ return z(e) && !V(e[0]);
2840
+ }
2841
+ function Aa(e, t, n, r) {
2842
+ let { slots: i, attrs: a } = t;
2843
+ return () => {
2844
+ let t = { part: !0 }, o = L();
2845
+ e.locale && (t.locale = e.locale), V(e.format) ? t.key = e.format : U(e.format) && (V(e.format.key) && (t.key = e.format.key), o = Object.keys(e.format).reduce((t, r) => n.includes(r) ? I(L(), t, { [r]: e.format[r] }) : t, L()));
2846
+ let s = r(e.value, t, o), l = [t.key];
2847
+ z(s) ? l = s.map((e, t) => {
2848
+ let n = i[e.type], r = n ? n({
2849
+ [e.type]: e.value,
2850
+ index: t,
2851
+ parts: s
2852
+ }) : [e.value];
2853
+ return ka(r) && (r[0].key = `${e.type}-${t}`), r;
2854
+ }) : V(s) && (l = [s]);
2855
+ let u = I(L(), a);
2856
+ return c(V(e.tag) || U(e.tag) ? e.tag : Da(), u, l);
2857
+ };
2858
+ }
2859
+ var ja = /* @__PURE__ */ o({
2860
+ name: "i18n-n",
2861
+ props: I({
2862
+ value: {
2863
+ type: Number,
2864
+ required: !0
2865
+ },
2866
+ format: { type: [String, Object] }
2867
+ }, Ta),
2868
+ setup(e, t) {
2869
+ let n = e.i18n || za({
2870
+ useScope: e.scope,
2871
+ __useComponent: !0
2872
+ });
2873
+ return Aa(e, t, Qr, (...e) => n[Fi](...e));
2874
+ }
2875
+ });
2876
+ function Ma(e, t) {
2877
+ let n = e;
2878
+ if (e.mode === "composition") return n.__getInstance(t) || e.global;
2879
+ {
2880
+ let r = n.__getInstance(t);
2881
+ return r == null ? e.global.__composer : r.__composer;
2882
+ }
2883
+ }
2884
+ function Na(e) {
2885
+ let t = (t) => {
2886
+ process.env.NODE_ENV !== "production" && at(Hi($.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
2887
+ let { instance: n, value: r } = t;
2888
+ /* istanbul ignore if */
2889
+ if (!n || !n.$) throw Q(Z.UNEXPECTED_ERROR);
2890
+ let i = Ma(e, n.$), a = Pa(r);
2891
+ return [Reflect.apply(i.t, i, [...Fa(a)]), i];
2892
+ };
2893
+ return {
2894
+ created: (e, n) => {
2895
+ let [r, i] = t(n);
2896
+ M && (e.__i18nWatcher = h(i.locale, () => {
2897
+ n.instance && n.instance.$forceUpdate();
2898
+ })), e.__composer = i, e.textContent = r;
2899
+ },
2900
+ unmounted: (e) => {
2901
+ M && e.__i18nWatcher && (e.__i18nWatcher(), e.__i18nWatcher = void 0, delete e.__i18nWatcher), e.__composer && (e.__composer = void 0, delete e.__composer);
2902
+ },
2903
+ beforeUpdate: (e, { value: t }) => {
2904
+ if (e.__composer) {
2905
+ let n = e.__composer, r = Pa(t);
2906
+ e.textContent = Reflect.apply(n.t, n, [...Fa(r)]);
2907
+ }
2908
+ },
2909
+ getSSRProps: (e) => {
2910
+ let [n] = t(e);
2911
+ return { textContent: n };
2912
+ }
2913
+ };
2914
+ }
2915
+ function Pa(e) {
2916
+ if (V(e)) return { path: e };
2917
+ if (W(e)) {
2918
+ if (!("path" in e)) throw Q(Z.REQUIRED_VALUE, "path");
2919
+ return e;
2920
+ } else throw Q(Z.INVALID_VALUE);
2921
+ }
2922
+ function Fa(e) {
2923
+ let { path: t, locale: n, args: r, choice: i, plural: a } = e, o = {}, s = r || {};
2924
+ return V(n) && (o.locale = n), F(i) && (o.plural = i), F(a) && (o.plural = a), [
2925
+ t,
2926
+ s,
2927
+ o
2928
+ ];
2929
+ }
2930
+ function Ia(e, t, ...n) {
2931
+ let r = W(n[0]) ? n[0] : {};
2932
+ (!H(r.globalInstall) || r.globalInstall) && ([Oa.name, "I18nT"].forEach((t) => e.component(t, Oa)), [ja.name, "I18nN"].forEach((t) => e.component(t, ja)), [Xa.name, "I18nD"].forEach((t) => e.component(t, Xa))), e.directive("t", Na(t));
2933
+ }
2934
+ var La = /* @__PURE__ */ P("global-vue-i18n");
2935
+ function Ra(e = {}) {
2936
+ let t = __VUE_I18N_LEGACY_API__ && H(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__;
2937
+ process.env.NODE_ENV !== "production" && t && at(Hi($.DEPRECATE_LEGACY_MODE));
2938
+ let n = H(e.globalInjection) ? e.globalInjection : !0, r = /* @__PURE__ */ new Map(), [i, a] = Ba(e, t), o = /* @__PURE__ */ P(process.env.NODE_ENV === "production" ? "" : "vue-i18n");
2939
+ function s(e) {
2940
+ return r.get(e) || null;
2941
+ }
2942
+ function c(e, t) {
2943
+ r.set(e, t);
2944
+ }
2945
+ function l(e) {
2946
+ r.delete(e);
2947
+ }
2948
+ let u = {
2949
+ get mode() {
2950
+ return __VUE_I18N_LEGACY_API__ && t ? "legacy" : "composition";
2951
+ },
2952
+ async install(e, ...r) {
2953
+ if (process.env.NODE_ENV !== "production" && (e.__VUE_I18N__ = u), e.__VUE_I18N_SYMBOL__ = o, e.provide(e.__VUE_I18N_SYMBOL__, u), W(r[0])) {
2954
+ let e = r[0];
2955
+ u.__composerExtend = e.__composerExtend, u.__vueI18nExtend = e.__vueI18nExtend;
2956
+ }
2957
+ let i = null;
2958
+ !t && n && (i = Ya(e, u.global)), __VUE_I18N_FULL_INSTALL__ && Ia(e, u, ...r), __VUE_I18N_LEGACY_API__ && t && e.mixin(Ca(a, a.__composer, u));
2959
+ let s = e.unmount;
2960
+ if (e.unmount = () => {
2961
+ i && i(), u.dispose(), s();
2962
+ }, process.env.NODE_ENV !== "production") {
2963
+ if (!await aa(e, u)) throw Q(Z.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
2964
+ let n = Ot();
2965
+ if (t) {
2966
+ let e = a;
2967
+ e.__enableEmitter && e.__enableEmitter(n);
2968
+ } else {
2969
+ let e = a;
2970
+ e[Ii] && e[Ii](n);
2971
+ }
2972
+ n.on("*", ya);
2973
+ }
2974
+ },
2975
+ get global() {
2976
+ return a;
2977
+ },
2978
+ dispose() {
2979
+ i.stop();
2980
+ },
2981
+ __instances: r,
2982
+ __getInstance: s,
2983
+ __setInstance: c,
2984
+ __deleteInstance: l
2985
+ };
2986
+ return u;
2987
+ }
2988
+ function za(e = {}) {
2989
+ let t = Ji();
2990
+ if (t == null) throw Q(Z.MUST_BE_CALL_SETUP_TOP);
2991
+ if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__) throw Q(Z.NOT_INSTALLED);
2992
+ let n = Va(t), r = Ua(n), i = Gi(t), a = Ha(e, i);
2993
+ if (a === "global") return Ki(r, e, i), r;
2994
+ if (a === "parent") {
2995
+ let i = Wa(n, t, e.__useComponent);
2996
+ return i ??= (process.env.NODE_ENV !== "production" && j(Hi($.NOT_FOUND_PARENT_SCOPE)), r), i;
2997
+ }
2998
+ let o = n, s = o.__getInstance(t);
2999
+ if (s == null) {
3000
+ let n = I({}, e);
3001
+ "__i18n" in i && (n.__i18n = i.__i18n), r && (n.__root = r), s = $i(n), o.__composerExtend && (s[Bi] = o.__composerExtend(s)), Ka(o, t, s), o.__setInstance(t, s);
3002
+ } else process.env.NODE_ENV !== "production" && a === "local" && j(Hi($.DUPLICATE_USE_I18N_CALLING));
3003
+ return s;
3004
+ }
3005
+ function Ba(e, t) {
3006
+ let n = s(), r = __VUE_I18N_LEGACY_API__ && t ? n.run(() => Sa(e)) : n.run(() => $i(e));
3007
+ if (r == null) throw Q(Z.UNEXPECTED_ERROR);
3008
+ return [n, r];
3009
+ }
3010
+ function Va(e) {
3011
+ let t = l(e.isCE ? La : e.appContext.app.__VUE_I18N_SYMBOL__);
3012
+ /* istanbul ignore if */
3013
+ if (!t) throw Q(e.isCE ? Z.NOT_INSTALLED_WITH_PROVIDE : Z.UNEXPECTED_ERROR);
3014
+ return t;
3015
+ }
3016
+ function Ha(e, t) {
3017
+ return pt(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
3018
+ }
3019
+ function Ua(e) {
3020
+ return e.mode === "composition" ? e.global : e.global.__composer;
3021
+ }
3022
+ function Wa(e, t, n = !1) {
3023
+ let r = null, i = t.root, a = Ga(t, n);
3024
+ for (; a != null;) {
3025
+ let t = e;
3026
+ if (e.mode === "composition") r = t.__getInstance(a);
3027
+ else if (__VUE_I18N_LEGACY_API__) {
3028
+ let e = t.__getInstance(a);
3029
+ e != null && (r = e.__composer, n && r && !r[zi] && (r = null));
3030
+ }
3031
+ if (r != null || i === a) break;
3032
+ a = a.parent;
3033
+ }
3034
+ return r;
3035
+ }
3036
+ function Ga(e, t = !1) {
3037
+ return e == null ? null : t && e.vnode.ctx || e.parent;
3038
+ }
3039
+ function Ka(e, t, n) {
3040
+ let r = null;
3041
+ d(() => {
3042
+ if (process.env.NODE_ENV !== "production") {
3043
+ t.__VUE_I18N__ = n, r = Ot();
3044
+ let e = n;
3045
+ e[Ii] && e[Ii](r), r.on("*", ya);
3046
+ }
3047
+ }, t), f(() => {
3048
+ let i = n;
3049
+ process.env.NODE_ENV !== "production" && (r && r.off("*", ya), i[Li] && i[Li](), delete t.__VUE_I18N__), e.__deleteInstance(t);
3050
+ let a = i[Bi];
3051
+ a && (a(), delete i[Bi]);
3052
+ }, t);
3053
+ }
3054
+ var qa = [
3055
+ "locale",
3056
+ "fallbackLocale",
3057
+ "availableLocales"
3058
+ ], Ja = [
3059
+ "t",
3060
+ "rt",
3061
+ "d",
3062
+ "n",
3063
+ "tm",
3064
+ "te"
3065
+ ];
3066
+ function Ya(e, t) {
3067
+ let n = Object.create(null);
3068
+ return qa.forEach((e) => {
3069
+ let r = Object.getOwnPropertyDescriptor(t, e);
3070
+ if (!r) throw Q(Z.UNEXPECTED_ERROR);
3071
+ let i = u(r.value) ? {
3072
+ get() {
3073
+ return r.value.value;
3074
+ },
3075
+ set(e) {
3076
+ r.value.value = e;
3077
+ }
3078
+ } : { get() {
3079
+ return r.get && r.get();
3080
+ } };
3081
+ Object.defineProperty(n, e, i);
3082
+ }), e.config.globalProperties.$i18n = n, Ja.forEach((n) => {
3083
+ let r = Object.getOwnPropertyDescriptor(t, n);
3084
+ if (!r || !r.value) throw Q(Z.UNEXPECTED_ERROR);
3085
+ Object.defineProperty(e.config.globalProperties, `$${n}`, r);
3086
+ }), () => {
3087
+ delete e.config.globalProperties.$i18n, Ja.forEach((t) => {
3088
+ delete e.config.globalProperties[`$${t}`];
3089
+ });
3090
+ };
3091
+ }
3092
+ var Xa = /* @__PURE__ */ o({
3093
+ name: "i18n-d",
3094
+ props: I({
3095
+ value: {
3096
+ type: [Number, Date],
3097
+ required: !0
3098
+ },
3099
+ format: { type: [String, Object] }
3100
+ }, Ta),
3101
+ setup(e, t) {
3102
+ let n = e.i18n || za({
3103
+ useScope: e.scope,
3104
+ __useComponent: !0
3105
+ });
3106
+ return Aa(e, t, Jr, (...e) => n[Pi](...e));
3107
+ }
3108
+ });
3109
+ if (ji(), Er(qn), Or(vr), Ar(ar), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
3110
+ let e = gt();
3111
+ e.__INTLIFY__ = !0, Yn(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
3112
+ }
3113
+ process.env.NODE_ENV;
3114
+ //#endregion
3115
+ //#region src/locales/index.ts
3116
+ var Za = Qa();
3117
+ function Qa(e = void 0) {
3118
+ let t = e || /* @__PURE__ */ Object.assign({
3119
+ "/src/locales/en/avatar.json": g,
3120
+ "/src/locales/en/default.json": y,
3121
+ "/src/locales/en/form.json": C,
3122
+ "/src/locales/en/gantt_chart.json": O,
3123
+ "/src/locales/en/legal_consent.json": ie,
3124
+ "/src/locales/en/navigation.json": Se,
3125
+ "/src/locales/en/network_button.json": Me,
3126
+ "/src/locales/en/not_found.json": ze,
3127
+ "/src/locales/en/validation.json": Ge
3128
+ }), n = {};
3129
+ for (let e in t) {
3130
+ let r = e.match(/\/locales\/([\w-]+)\/([\w-]+)\.json$/i);
3131
+ if (r && r.length > 2) {
3132
+ let i = r[1], a = r[2], o = t[e];
3133
+ i && a && o && (n[i] || (n[i] = {}), n[i][a] = o.default);
3134
+ }
3135
+ }
3136
+ return n;
3137
+ }
3138
+ function $a(e = {}) {
3139
+ let t = {};
3140
+ for (let n in Za) if (t[n] = { ...Za[n] }, e.messages?.[n]) for (let r in e.messages[n]) {
3141
+ let i = typeof e.messages[n][r] == "object" && e.messages[n][r] !== null ? e.messages[n][r] : {};
3142
+ t[n][r] = {
3143
+ ...t[n][r],
3144
+ ...i
3145
+ };
3146
+ }
3147
+ return Ra({
3148
+ legacy: !1,
3149
+ locale: "en",
3150
+ fallbackLocale: "en",
3151
+ formatFallbackMessages: !0,
3152
+ silentTranslationWarn: !0,
3153
+ warnHtmlMessage: !1,
3154
+ silentFallbackWarn: !0,
3155
+ missingWarn: !1,
3156
+ messages: t,
3157
+ ...e
3158
+ });
3159
+ }
3160
+ function eo() {
3161
+ return za({ useScope: "global" });
3162
+ }
3163
+ function to(e, t) {
3164
+ let { mergeLocaleMessage: n } = eo();
3165
+ n(e, t);
3166
+ }
3167
+ //#endregion
3168
+ export { za as a, eo as i, Qa as n, to as r, $a as t };