@skyfox2000/webui 1.5.21 → 1.5.23

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.
@@ -1,20 +1,20 @@
1
- var dr = Object.defineProperty;
2
- var mr = (e, t, a) => t in e ? dr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
- var ne = (e, t, a) => mr(e, typeof t != "symbol" ? t + "" : t, a);
1
+ var mr = Object.defineProperty;
2
+ var pr = (e, t, a) => t in e ? mr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
+ var ne = (e, t, a) => pr(e, typeof t != "symbol" ? t + "" : t, a);
4
4
  import * as wa from "vue";
5
- import { effectScope as pr, ref as w, shallowRef as ke, computed as et, watch as B, isRef as _r, defineComponent as De, h as ye, Fragment as Ke, inject as at, onMounted as Rt, onUnmounted as ft, createVNode as Ye, Text as gr, nextTick as hr, provide as ka, toRaw as fs, reactive as Er, createBlock as zt, createCommentVNode as rt, openBlock as le, unref as X, mergeProps as wt, useAttrs as Zt, onActivated as ea, createElementBlock as ge, withCtx as Me, createTextVNode as ta, toDisplayString as Be, renderList as nn, normalizeClass as ds, createElementVNode as vr } from "vue";
6
- import { Switch as br, AutoComplete as yr, Input as Ir, CheckboxGroup as Nr, Checkbox as Sr, RadioGroup as Tr, Radio as Lr, Select as Or, SelectOption as Ar } from "ant-design-vue";
7
- import { createPinia as Pr, defineStore as kt } from "pinia";
8
- import Rr from "pinia-plugin-persistedstate";
9
- import { EnvConfig as Jt, AppAction as Sn, AppSource as Tn, isMicroApp as Ce, isBaseMicroApp as wr, combineParams as Dt } from "@skyfox2000/microbase";
10
- import { httpPost as Xe, ResStatus as ie, setToken as Ht, fieldMapping as kr, parseFieldTemplate as Qt, API_HOST as Da, SERVER_HOST as Dr } from "@skyfox2000/fapi";
5
+ import { effectScope as _r, ref as w, shallowRef as ke, computed as tt, watch as B, isRef as gr, defineComponent as De, h as Ie, Fragment as Ye, inject as nt, onMounted as wt, onUnmounted as dt, createVNode as Be, Text as hr, nextTick as Er, provide as ka, toRaw as fs, reactive as vr, createBlock as zt, createCommentVNode as ot, openBlock as le, unref as X, mergeProps as kt, useAttrs as Zt, onActivated as ea, createElementBlock as ge, withCtx as Ue, createTextVNode as ta, toDisplayString as je, renderList as nn, normalizeClass as ds, createElementVNode as br } from "vue";
6
+ import { Switch as Ir, AutoComplete as yr, Input as Nr, CheckboxGroup as Sr, Checkbox as Tr, RadioGroup as Lr, Radio as Or, Select as Ar, SelectOption as Pr } from "ant-design-vue";
7
+ import { createPinia as Rr, defineStore as Dt } from "pinia";
8
+ import wr from "pinia-plugin-persistedstate";
9
+ import { EnvConfig as Fe, AppAction as Sn, AppSource as Tn, isMicroApp as Ce, isBaseMicroApp as kr, combineParams as Ct } from "@skyfox2000/microbase";
10
+ import { httpPost as qe, ResStatus as ie, setToken as Wt, httpGet as ms, fieldMapping as Dr, parseFieldTemplate as Qt, API_HOST as Da, SERVER_HOST as Cr } from "@skyfox2000/fapi";
11
11
  import se from "vue-m-message";
12
- import { createRouter as Cr, createWebHashHistory as Fr } from "vue-router";
12
+ import { createRouter as Fr, createWebHashHistory as Mr } from "vue-router";
13
13
  import aa from "async-validator";
14
14
  import "dayjs";
15
15
  import "vue-draggable-next";
16
- const Mr = Pr();
17
- Mr.use(Rr);
16
+ const Ur = Rr();
17
+ Ur.use(wr);
18
18
  var Re = /* @__PURE__ */ ((e) => (e.PageControl = "Page.PageControl", e.EditorControl = "Page.EditorControl", e.GridControl = "Page.GridControl", e.LabelText = "FormItem.LabelText", e.LabelWidth = "FormItem.LabelWidth", e.RuleKey = "FormItem.RuleKey", e.ErrInfo = "FormItem.ErrInfo", e))(Re || {});
19
19
  /*!
20
20
  * shared v11.2.7
@@ -29,30 +29,30 @@ function sn(e) {
29
29
  Ln[e] || (Ln[e] = !0, Le(e));
30
30
  }
31
31
  const Ne = typeof window < "u";
32
- let fe, je;
32
+ let fe, Je;
33
33
  if (process.env.NODE_ENV !== "production") {
34
34
  const e = Ne && window.performance;
35
35
  e && e.mark && e.measure && e.clearMarks && // @ts-ignore browser compat
36
36
  e.clearMeasures && (fe = (t) => {
37
37
  e.mark(t);
38
- }, je = (t, a, n) => {
38
+ }, Je = (t, a, n) => {
39
39
  e.measure(t, a, n), e.clearMarks(a), e.clearMarks(n);
40
40
  });
41
41
  }
42
- const Ur = /\{([0-9a-zA-Z]+)\}/g;
42
+ const xr = /\{([0-9a-zA-Z]+)\}/g;
43
43
  function na(e, ...t) {
44
- return t.length === 1 && U(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(Ur, (a, n) => t.hasOwnProperty(n) ? t[n] : "");
44
+ return t.length === 1 && U(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(xr, (a, n) => t.hasOwnProperty(n) ? t[n] : "");
45
45
  }
46
- const Oe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), xr = (e, t, a) => Vr({ l: e, k: t, s: a }), Vr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ee = (e) => typeof e == "number" && isFinite(e), $r = (e) => rn(e) === "[object Date]", ot = (e) => rn(e) === "[object RegExp]", sa = (e) => F(e) && Object.keys(e).length === 0, te = Object.assign, Hr = Object.create, W = (e = null) => Hr(e);
46
+ const Oe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Vr = (e, t, a) => $r({ l: e, k: t, s: a }), $r = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ee = (e) => typeof e == "number" && isFinite(e), Hr = (e) => rn(e) === "[object Date]", lt = (e) => rn(e) === "[object RegExp]", sa = (e) => F(e) && Object.keys(e).length === 0, te = Object.assign, Wr = Object.create, W = (e = null) => Wr(e);
47
47
  let On;
48
- const We = () => On || (On = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : W());
48
+ const Ge = () => On || (On = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : W());
49
49
  function An(e) {
50
50
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/\//g, "&#x2F;").replace(/=/g, "&#x3D;");
51
51
  }
52
52
  function Pn(e) {
53
53
  return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&amp;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
54
54
  }
55
- function Wr(e) {
55
+ function Gr(e) {
56
56
  return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (n, s, r) => `${s}="${Pn(r)}"`), e = e.replace(/(\w+)\s*=\s*'([^']*)'/g, (n, s, r) => `${s}='${Pn(r)}'`), /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e) && (process.env.NODE_ENV !== "production" && Le("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")), [
57
57
  // In href, src, action, formaction attributes
58
58
  /(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,
@@ -62,16 +62,16 @@ function Wr(e) {
62
62
  e = e.replace(n, "$1javascript&#58;");
63
63
  }), e;
64
64
  }
65
- const Gr = Object.prototype.hasOwnProperty;
65
+ const Kr = Object.prototype.hasOwnProperty;
66
66
  function be(e, t) {
67
- return Gr.call(e, t);
67
+ return Kr.call(e, t);
68
68
  }
69
- const J = Array.isArray, G = (e) => typeof e == "function", A = (e) => typeof e == "string", x = (e) => typeof e == "boolean", U = (e) => e !== null && typeof e == "object", Kr = (e) => U(e) && G(e.then) && G(e.catch), ms = Object.prototype.toString, rn = (e) => ms.call(e), F = (e) => rn(e) === "[object Object]", Yr = (e) => e == null ? "" : J(e) || F(e) && e.toString === ms ? JSON.stringify(e, null, 2) : String(e);
69
+ const J = Array.isArray, G = (e) => typeof e == "function", A = (e) => typeof e == "string", x = (e) => typeof e == "boolean", U = (e) => e !== null && typeof e == "object", Yr = (e) => U(e) && G(e.then) && G(e.catch), ps = Object.prototype.toString, rn = (e) => ps.call(e), F = (e) => rn(e) === "[object Object]", Br = (e) => e == null ? "" : J(e) || F(e) && e.toString === ps ? JSON.stringify(e, null, 2) : String(e);
70
70
  function on(e, t = "") {
71
71
  return e.reduce((a, n, s) => s === 0 ? a + n : a + t + n, "");
72
72
  }
73
73
  const Rn = 2;
74
- function Br(e, t = 0, a = e.length) {
74
+ function jr(e, t = 0, a = e.length) {
75
75
  const n = e.split(/\r?\n/);
76
76
  let s = 0;
77
77
  const r = [];
@@ -116,15 +116,15 @@ function ln() {
116
116
  }
117
117
  };
118
118
  }
119
- const Wt = (e) => !U(e) || J(e);
120
- function Bt(e, t) {
121
- if (Wt(e) || Wt(t))
119
+ const Gt = (e) => !U(e) || J(e);
120
+ function jt(e, t) {
121
+ if (Gt(e) || Gt(t))
122
122
  throw new Error("Invalid value");
123
123
  const a = [{ src: e, des: t }];
124
124
  for (; a.length; ) {
125
125
  const { src: n, des: s } = a.pop();
126
126
  Object.keys(n).forEach((r) => {
127
- r !== "__proto__" && (U(n[r]) && !U(s[r]) && (s[r] = Array.isArray(n[r]) ? [] : W()), Wt(s[r]) || Wt(n[r]) ? s[r] = n[r] : a.push({ src: n[r], des: s[r] }));
127
+ r !== "__proto__" && (U(n[r]) && !U(s[r]) && (s[r] = Array.isArray(n[r]) ? [] : W()), Gt(s[r]) || Gt(n[r]) ? s[r] = n[r] : a.push({ src: n[r], des: s[r] }));
128
128
  });
129
129
  }
130
130
  }
@@ -133,7 +133,7 @@ function Bt(e, t) {
133
133
  * (c) 2025 kazuya kawaguchi
134
134
  * Released under the MIT License.
135
135
  */
136
- function jr(e, t, a) {
136
+ function Jr(e, t, a) {
137
137
  return { line: e, column: t, offset: a };
138
138
  }
139
139
  function $a(e, t, a) {
@@ -160,7 +160,7 @@ const D = {
160
160
  UNHANDLED_CODEGEN_NODE_TYPE: 15,
161
161
  // minifier error codes
162
162
  UNHANDLED_MINIFIER_NODE_TYPE: 16
163
- }, Jr = 17, Qr = {
163
+ }, Qr = 17, Xr = {
164
164
  // tokenizer error messages
165
165
  [D.EXPECTED_TOKEN]: "Expected token: '{0}'",
166
166
  [D.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
@@ -182,23 +182,23 @@ const D = {
182
182
  // minimizer error messages
183
183
  [D.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
184
184
  };
185
- function dt(e, t, a = {}) {
186
- const { domain: n, messages: s, args: r } = a, o = process.env.NODE_ENV !== "production" ? na((s || Qr)[e] || "", ...r || []) : e, l = new SyntaxError(String(o));
185
+ function mt(e, t, a = {}) {
186
+ const { domain: n, messages: s, args: r } = a, o = process.env.NODE_ENV !== "production" ? na((s || Xr)[e] || "", ...r || []) : e, l = new SyntaxError(String(o));
187
187
  return l.code = e, t && (l.location = t), l.domain = n, l;
188
188
  }
189
- function Xr(e) {
189
+ function qr(e) {
190
190
  throw e;
191
191
  }
192
- const qr = /<\/?[\w\s="/.':;#-\/]+>/, zr = (e) => qr.test(e), Se = " ", Zr = "\r", re = `
193
- `, eo = "\u2028", to = "\u2029";
194
- function ao(e) {
192
+ const zr = /<\/?[\w\s="/.':;#-\/]+>/, Zr = (e) => zr.test(e), Se = " ", eo = "\r", re = `
193
+ `, to = "\u2028", ao = "\u2029";
194
+ function no(e) {
195
195
  const t = e;
196
196
  let a = 0, n = 1, s = 1, r = 0;
197
- const o = (v) => t[v] === Zr && t[v + 1] === re, l = (v) => t[v] === re, i = (v) => t[v] === to, c = (v) => t[v] === eo, m = (v) => o(v) || l(v) || i(v) || c(v), g = () => a, p = () => n, I = () => s, R = () => r, S = (v) => o(v) || i(v) || c(v) ? re : t[v], O = () => S(a), d = () => S(a + r);
197
+ const o = (v) => t[v] === eo && t[v + 1] === re, l = (v) => t[v] === re, i = (v) => t[v] === ao, c = (v) => t[v] === to, m = (v) => o(v) || l(v) || i(v) || c(v), g = () => a, p = () => n, y = () => s, R = () => r, S = (v) => o(v) || i(v) || c(v) ? re : t[v], O = () => S(a), d = () => S(a + r);
198
198
  function _() {
199
199
  return r = 0, m(a) && (n++, s = 0), o(a) && a++, a++, s++, t[a];
200
200
  }
201
- function y() {
201
+ function I() {
202
202
  return o(a + r) && r++, r++, t[a + r];
203
203
  }
204
204
  function E() {
@@ -216,21 +216,21 @@ function ao(e) {
216
216
  return {
217
217
  index: g,
218
218
  line: p,
219
- column: I,
219
+ column: y,
220
220
  peekOffset: R,
221
221
  charAt: S,
222
222
  currentChar: O,
223
223
  currentPeek: d,
224
224
  next: _,
225
- peek: y,
225
+ peek: I,
226
226
  reset: E,
227
227
  resetPeek: b,
228
228
  skipToPeek: L
229
229
  };
230
230
  }
231
- const Pe = void 0, no = ".", wn = "'", so = "tokenizer";
232
- function ro(e, t = {}) {
233
- const a = t.location !== !1, n = ao(e), s = () => n.index(), r = () => jr(n.line(), n.column(), n.index()), o = r(), l = s(), i = {
231
+ const Pe = void 0, so = ".", wn = "'", ro = "tokenizer";
232
+ function oo(e, t = {}) {
233
+ const a = t.location !== !1, n = no(e), s = () => n.index(), r = () => Jr(n.line(), n.column(), n.index()), o = r(), l = s(), i = {
234
234
  currentType: 13,
235
235
  offset: l,
236
236
  startLoc: o,
@@ -246,8 +246,8 @@ function ro(e, t = {}) {
246
246
  function g(u, f, N, ...k) {
247
247
  const j = c();
248
248
  if (f.column += N, f.offset += N, m) {
249
- const q = a ? $a(j.startLoc, f) : null, V = dt(u, q, {
250
- domain: so,
249
+ const q = a ? $a(j.startLoc, f) : null, V = mt(u, q, {
250
+ domain: ro,
251
251
  args: k
252
252
  });
253
253
  m(V);
@@ -258,7 +258,7 @@ function ro(e, t = {}) {
258
258
  const k = { type: f };
259
259
  return a && (k.loc = $a(u.startLoc, u.endLoc)), N != null && (k.value = N), k;
260
260
  }
261
- const I = (u) => p(
261
+ const y = (u) => p(
262
262
  u,
263
263
  13
264
264
  /* TokenTypes.EOF */
@@ -290,7 +290,7 @@ function ro(e, t = {}) {
290
290
  const f = u.charCodeAt(0);
291
291
  return f >= 48 && f <= 57;
292
292
  }
293
- function y(u, f) {
293
+ function I(u, f) {
294
294
  const { currentType: N } = f;
295
295
  if (N !== 2)
296
296
  return !1;
@@ -364,7 +364,7 @@ function ro(e, t = {}) {
364
364
  const N = u.currentChar();
365
365
  return N === Pe ? Pe : f(N) ? (u.next(), N) : null;
366
366
  }
367
- function qe(u) {
367
+ function ze(u) {
368
368
  const f = u.charCodeAt(0);
369
369
  return f >= 97 && f <= 122 || // a-z
370
370
  f >= 65 && f <= 90 || // A-Z
@@ -373,7 +373,7 @@ function ro(e, t = {}) {
373
373
  f === 36;
374
374
  }
375
375
  function ga(u) {
376
- return Q(u, qe);
376
+ return Q(u, ze);
377
377
  }
378
378
  function ha(u) {
379
379
  const f = u.charCodeAt(0);
@@ -394,22 +394,22 @@ function ro(e, t = {}) {
394
394
  function ba(u) {
395
395
  return Q(u, va);
396
396
  }
397
- function ya(u) {
397
+ function Ia(u) {
398
398
  const f = u.charCodeAt(0);
399
399
  return f >= 48 && f <= 57 || // 0-9
400
400
  f >= 65 && f <= 70 || // A-F
401
401
  f >= 97 && f <= 102;
402
402
  }
403
403
  function Ae(u) {
404
- return Q(u, ya);
404
+ return Q(u, Ia);
405
405
  }
406
- function pt(u) {
406
+ function _t(u) {
407
407
  let f = "", N = "";
408
408
  for (; f = ba(u); )
409
409
  N += f;
410
410
  return N;
411
411
  }
412
- function Ia(u) {
412
+ function ya(u) {
413
413
  let f = "";
414
414
  for (; ; ) {
415
415
  const N = u.currentChar();
@@ -435,7 +435,7 @@ function ro(e, t = {}) {
435
435
  N += f;
436
436
  const k = u.currentChar();
437
437
  if (k && k !== "}" && k !== Pe && k !== Se && k !== re && k !== " ") {
438
- const j = Vt(u);
438
+ const j = $t(u);
439
439
  return g(D.INVALID_TOKEN_IN_PLACEHOLDER, r(), 0, N + j), N + j;
440
440
  }
441
441
  return u.currentChar() === Pe && g(D.UNTERMINATED_CLOSING_BRACE, r(), 0), N;
@@ -443,12 +443,12 @@ function ro(e, t = {}) {
443
443
  function Sa(u) {
444
444
  O(u);
445
445
  let f = "";
446
- return u.currentChar() === "-" ? (u.next(), f += `-${pt(u)}`) : f += pt(u), u.currentChar() === Pe && g(D.UNTERMINATED_CLOSING_BRACE, r(), 0), f;
446
+ return u.currentChar() === "-" ? (u.next(), f += `-${_t(u)}`) : f += _t(u), u.currentChar() === Pe && g(D.UNTERMINATED_CLOSING_BRACE, r(), 0), f;
447
447
  }
448
448
  function Ta(u) {
449
449
  return u !== wn && u !== re;
450
450
  }
451
- function In(u) {
451
+ function yn(u) {
452
452
  O(u), R(u, "'");
453
453
  let f = "", N = "";
454
454
  for (; f = Q(u, Ta); )
@@ -463,14 +463,14 @@ function ro(e, t = {}) {
463
463
  case "'":
464
464
  return u.next(), `\\${f}`;
465
465
  case "u":
466
- return xt(u, f, 4);
466
+ return Vt(u, f, 4);
467
467
  case "U":
468
- return xt(u, f, 6);
468
+ return Vt(u, f, 6);
469
469
  default:
470
470
  return g(D.UNKNOWN_ESCAPE_SEQUENCE, r(), 0, f), "";
471
471
  }
472
472
  }
473
- function xt(u, f, N) {
473
+ function Vt(u, f, N) {
474
474
  R(u, f);
475
475
  let k = "";
476
476
  for (let j = 0; j < N; j++) {
@@ -486,7 +486,7 @@ function ro(e, t = {}) {
486
486
  function Oa(u) {
487
487
  return u !== "{" && u !== "}" && u !== Se && u !== re;
488
488
  }
489
- function Vt(u) {
489
+ function $t(u) {
490
490
  O(u);
491
491
  let f = "", N = "";
492
492
  for (; f = Q(u, Oa); )
@@ -506,7 +506,7 @@ function ro(e, t = {}) {
506
506
  };
507
507
  return f("");
508
508
  }
509
- function _t(u) {
509
+ function gt(u) {
510
510
  O(u);
511
511
  const f = R(
512
512
  u,
@@ -515,7 +515,7 @@ function ro(e, t = {}) {
515
515
  );
516
516
  return O(u), f;
517
517
  }
518
- function gt(u, f) {
518
+ function ht(u, f) {
519
519
  let N = null;
520
520
  switch (u.currentChar()) {
521
521
  case "{":
@@ -533,27 +533,27 @@ function ro(e, t = {}) {
533
533
  /* TokenChars.BraceRight */
534
534
  ), f.braceNest--, f.braceNest > 0 && O(u), f.inLinked && f.braceNest === 0 && (f.inLinked = !1), N;
535
535
  case "@":
536
- return f.braceNest > 0 && g(D.UNTERMINATED_CLOSING_BRACE, r(), 0), N = Ve(u, f) || I(f), f.braceNest = 0, N;
536
+ return f.braceNest > 0 && g(D.UNTERMINATED_CLOSING_BRACE, r(), 0), N = $e(u, f) || y(f), f.braceNest = 0, N;
537
537
  default: {
538
538
  let j = !0, q = !0, V = !0;
539
539
  if (K(u))
540
- return f.braceNest > 0 && g(D.UNTERMINATED_CLOSING_BRACE, r(), 0), N = p(f, 1, _t(u)), f.braceNest = 0, f.inLinked = !1, N;
540
+ return f.braceNest > 0 && g(D.UNTERMINATED_CLOSING_BRACE, r(), 0), N = p(f, 1, gt(u)), f.braceNest = 0, f.inLinked = !1, N;
541
541
  if (f.braceNest > 0 && (f.currentType === 4 || f.currentType === 5 || f.currentType === 6))
542
- return g(D.UNTERMINATED_CLOSING_BRACE, r(), 0), f.braceNest = 0, ht(u, f);
543
- if (j = y(u, f))
542
+ return g(D.UNTERMINATED_CLOSING_BRACE, r(), 0), f.braceNest = 0, Et(u, f);
543
+ if (j = I(u, f))
544
544
  return N = p(f, 4, Na(u)), O(u), N;
545
545
  if (q = E(u, f))
546
546
  return N = p(f, 5, Sa(u)), O(u), N;
547
547
  if (V = b(u, f))
548
- return N = p(f, 6, In(u)), O(u), N;
548
+ return N = p(f, 6, yn(u)), O(u), N;
549
549
  if (!j && !q && !V)
550
- return N = p(f, 12, Vt(u)), g(D.INVALID_TOKEN_IN_PLACEHOLDER, r(), 0, N.value), O(u), N;
550
+ return N = p(f, 12, $t(u)), g(D.INVALID_TOKEN_IN_PLACEHOLDER, r(), 0, N.value), O(u), N;
551
551
  break;
552
552
  }
553
553
  }
554
554
  return N;
555
555
  }
556
- function Ve(u, f) {
556
+ function $e(u, f) {
557
557
  const { currentType: N } = f;
558
558
  let k = null;
559
559
  const j = u.currentChar();
@@ -580,21 +580,21 @@ function ro(e, t = {}) {
580
580
  /* TokenChars.LinkedDelimiter */
581
581
  );
582
582
  default:
583
- return K(u) ? (k = p(f, 1, _t(u)), f.braceNest = 0, f.inLinked = !1, k) : L(u, f) || C(u, f) ? (O(u), Ve(u, f)) : v(u, f) ? (O(u), p(f, 11, Aa(u))) : M(u, f) ? (O(u), j === "{" ? gt(u, f) || k : p(f, 10, Pa(u))) : (N === 7 && g(D.INVALID_LINKED_FORMAT, r(), 0), f.braceNest = 0, f.inLinked = !1, ht(u, f));
583
+ return K(u) ? (k = p(f, 1, gt(u)), f.braceNest = 0, f.inLinked = !1, k) : L(u, f) || C(u, f) ? (O(u), $e(u, f)) : v(u, f) ? (O(u), p(f, 11, Aa(u))) : M(u, f) ? (O(u), j === "{" ? ht(u, f) || k : p(f, 10, Pa(u))) : (N === 7 && g(D.INVALID_LINKED_FORMAT, r(), 0), f.braceNest = 0, f.inLinked = !1, Et(u, f));
584
584
  }
585
585
  }
586
- function ht(u, f) {
586
+ function Et(u, f) {
587
587
  let N = {
588
588
  type: 13
589
589
  /* TokenTypes.EOF */
590
590
  };
591
591
  if (f.braceNest > 0)
592
- return gt(u, f) || I(f);
592
+ return ht(u, f) || y(f);
593
593
  if (f.inLinked)
594
- return Ve(u, f) || I(f);
594
+ return $e(u, f) || y(f);
595
595
  switch (u.currentChar()) {
596
596
  case "{":
597
- return gt(u, f) || I(f);
597
+ return ht(u, f) || y(f);
598
598
  case "}":
599
599
  return g(D.UNBALANCED_CLOSING_BRACE, r(), 0), u.next(), p(
600
600
  f,
@@ -603,12 +603,12 @@ function ro(e, t = {}) {
603
603
  /* TokenChars.BraceRight */
604
604
  );
605
605
  case "@":
606
- return Ve(u, f) || I(f);
606
+ return $e(u, f) || y(f);
607
607
  default: {
608
608
  if (K(u))
609
- return N = p(f, 1, _t(u)), f.braceNest = 0, f.inLinked = !1, N;
609
+ return N = p(f, 1, gt(u)), f.braceNest = 0, f.inLinked = !1, N;
610
610
  if (Ee(u))
611
- return p(f, 0, Ia(u));
611
+ return p(f, 0, ya(u));
612
612
  break;
613
613
  }
614
614
  }
@@ -620,7 +620,7 @@ function ro(e, t = {}) {
620
620
  i,
621
621
  13
622
622
  /* TokenTypes.EOF */
623
- ) : ht(n, i);
623
+ ) : Et(n, i);
624
624
  }
625
625
  return {
626
626
  nextToken: Ra,
@@ -629,8 +629,8 @@ function ro(e, t = {}) {
629
629
  context: c
630
630
  };
631
631
  }
632
- const oo = "parser", lo = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
633
- function io(e, t, a) {
632
+ const lo = "parser", io = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
633
+ function co(e, t, a) {
634
634
  switch (e) {
635
635
  case "\\\\":
636
636
  return "\\";
@@ -643,89 +643,89 @@ function io(e, t, a) {
643
643
  }
644
644
  }
645
645
  }
646
- function co(e = {}) {
646
+ function uo(e = {}) {
647
647
  const t = e.location !== !1, { onError: a } = e;
648
- function n(d, _, y, E, ...b) {
648
+ function n(d, _, I, E, ...b) {
649
649
  const L = d.currentPosition();
650
650
  if (L.offset += E, L.column += E, a) {
651
- const v = t ? $a(y, L) : null, C = dt(_, v, {
652
- domain: oo,
651
+ const v = t ? $a(I, L) : null, C = mt(_, v, {
652
+ domain: lo,
653
653
  args: b
654
654
  });
655
655
  a(C);
656
656
  }
657
657
  }
658
- function s(d, _, y) {
658
+ function s(d, _, I) {
659
659
  const E = { type: d };
660
- return t && (E.start = _, E.end = _, E.loc = { start: y, end: y }), E;
660
+ return t && (E.start = _, E.end = _, E.loc = { start: I, end: I }), E;
661
661
  }
662
- function r(d, _, y, E) {
663
- t && (d.end = _, d.loc && (d.loc.end = y));
662
+ function r(d, _, I, E) {
663
+ t && (d.end = _, d.loc && (d.loc.end = I));
664
664
  }
665
665
  function o(d, _) {
666
- const y = d.context(), E = s(3, y.offset, y.startLoc);
666
+ const I = d.context(), E = s(3, I.offset, I.startLoc);
667
667
  return E.value = _, r(E, d.currentOffset(), d.currentPosition()), E;
668
668
  }
669
669
  function l(d, _) {
670
- const y = d.context(), { lastOffset: E, lastStartLoc: b } = y, L = s(5, E, b);
670
+ const I = d.context(), { lastOffset: E, lastStartLoc: b } = I, L = s(5, E, b);
671
671
  return L.index = parseInt(_, 10), d.nextToken(), r(L, d.currentOffset(), d.currentPosition()), L;
672
672
  }
673
673
  function i(d, _) {
674
- const y = d.context(), { lastOffset: E, lastStartLoc: b } = y, L = s(4, E, b);
674
+ const I = d.context(), { lastOffset: E, lastStartLoc: b } = I, L = s(4, E, b);
675
675
  return L.key = _, d.nextToken(), r(L, d.currentOffset(), d.currentPosition()), L;
676
676
  }
677
677
  function c(d, _) {
678
- const y = d.context(), { lastOffset: E, lastStartLoc: b } = y, L = s(9, E, b);
679
- return L.value = _.replace(lo, io), d.nextToken(), r(L, d.currentOffset(), d.currentPosition()), L;
678
+ const I = d.context(), { lastOffset: E, lastStartLoc: b } = I, L = s(9, E, b);
679
+ return L.value = _.replace(io, co), d.nextToken(), r(L, d.currentOffset(), d.currentPosition()), L;
680
680
  }
681
681
  function m(d) {
682
- const _ = d.nextToken(), y = d.context(), { lastOffset: E, lastStartLoc: b } = y, L = s(8, E, b);
683
- return _.type !== 11 ? (n(d, D.UNEXPECTED_EMPTY_LINKED_MODIFIER, y.lastStartLoc, 0), L.value = "", r(L, E, b), {
682
+ const _ = d.nextToken(), I = d.context(), { lastOffset: E, lastStartLoc: b } = I, L = s(8, E, b);
683
+ return _.type !== 11 ? (n(d, D.UNEXPECTED_EMPTY_LINKED_MODIFIER, I.lastStartLoc, 0), L.value = "", r(L, E, b), {
684
684
  nextConsumeToken: _,
685
685
  node: L
686
- }) : (_.value == null && n(d, D.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, Te(_)), L.value = _.value || "", r(L, d.currentOffset(), d.currentPosition()), {
686
+ }) : (_.value == null && n(d, D.UNEXPECTED_LEXICAL_ANALYSIS, I.lastStartLoc, 0, Te(_)), L.value = _.value || "", r(L, d.currentOffset(), d.currentPosition()), {
687
687
  node: L
688
688
  });
689
689
  }
690
690
  function g(d, _) {
691
- const y = d.context(), E = s(7, y.offset, y.startLoc);
691
+ const I = d.context(), E = s(7, I.offset, I.startLoc);
692
692
  return E.value = _, r(E, d.currentOffset(), d.currentPosition()), E;
693
693
  }
694
694
  function p(d) {
695
- const _ = d.context(), y = s(6, _.offset, _.startLoc);
695
+ const _ = d.context(), I = s(6, _.offset, _.startLoc);
696
696
  let E = d.nextToken();
697
697
  if (E.type === 8) {
698
698
  const b = m(d);
699
- y.modifier = b.node, E = b.nextConsumeToken || d.nextToken();
699
+ I.modifier = b.node, E = b.nextConsumeToken || d.nextToken();
700
700
  }
701
701
  switch (E.type !== 9 && n(d, D.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, Te(E)), E = d.nextToken(), E.type === 2 && (E = d.nextToken()), E.type) {
702
702
  case 10:
703
- E.value == null && n(d, D.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, Te(E)), y.key = g(d, E.value || "");
703
+ E.value == null && n(d, D.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, Te(E)), I.key = g(d, E.value || "");
704
704
  break;
705
705
  case 4:
706
- E.value == null && n(d, D.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, Te(E)), y.key = i(d, E.value || "");
706
+ E.value == null && n(d, D.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, Te(E)), I.key = i(d, E.value || "");
707
707
  break;
708
708
  case 5:
709
- E.value == null && n(d, D.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, Te(E)), y.key = l(d, E.value || "");
709
+ E.value == null && n(d, D.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, Te(E)), I.key = l(d, E.value || "");
710
710
  break;
711
711
  case 6:
712
- E.value == null && n(d, D.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, Te(E)), y.key = c(d, E.value || "");
712
+ E.value == null && n(d, D.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, Te(E)), I.key = c(d, E.value || "");
713
713
  break;
714
714
  default: {
715
715
  n(d, D.UNEXPECTED_EMPTY_LINKED_KEY, _.lastStartLoc, 0);
716
716
  const b = d.context(), L = s(7, b.offset, b.startLoc);
717
- return L.value = "", r(L, b.offset, b.startLoc), y.key = L, r(y, b.offset, b.startLoc), {
717
+ return L.value = "", r(L, b.offset, b.startLoc), I.key = L, r(I, b.offset, b.startLoc), {
718
718
  nextConsumeToken: E,
719
- node: y
719
+ node: I
720
720
  };
721
721
  }
722
722
  }
723
- return r(y, d.currentOffset(), d.currentPosition()), {
724
- node: y
723
+ return r(I, d.currentOffset(), d.currentPosition()), {
724
+ node: I
725
725
  };
726
726
  }
727
- function I(d) {
728
- const _ = d.context(), y = _.currentType === 1 ? d.currentOffset() : _.offset, E = _.currentType === 1 ? _.endLoc : _.startLoc, b = s(2, y, E);
727
+ function y(d) {
728
+ const _ = d.context(), I = _.currentType === 1 ? d.currentOffset() : _.offset, E = _.currentType === 1 ? _.endLoc : _.startLoc, b = s(2, I, E);
729
729
  b.items = [];
730
730
  let L = null;
731
731
  do {
@@ -753,24 +753,24 @@ function co(e = {}) {
753
753
  const v = _.currentType === 1 ? _.lastOffset : d.currentOffset(), C = _.currentType === 1 ? _.lastEndLoc : d.currentPosition();
754
754
  return r(b, v, C), b;
755
755
  }
756
- function R(d, _, y, E) {
756
+ function R(d, _, I, E) {
757
757
  const b = d.context();
758
758
  let L = E.items.length === 0;
759
- const v = s(1, _, y);
759
+ const v = s(1, _, I);
760
760
  v.cases = [], v.cases.push(E);
761
761
  do {
762
- const C = I(d);
762
+ const C = y(d);
763
763
  L || (L = C.items.length === 0), v.cases.push(C);
764
764
  } while (b.currentType !== 13);
765
- return L && n(d, D.MUST_HAVE_MESSAGES_IN_PLURAL, y, 0), r(v, d.currentOffset(), d.currentPosition()), v;
765
+ return L && n(d, D.MUST_HAVE_MESSAGES_IN_PLURAL, I, 0), r(v, d.currentOffset(), d.currentPosition()), v;
766
766
  }
767
767
  function S(d) {
768
- const _ = d.context(), { offset: y, startLoc: E } = _, b = I(d);
769
- return _.currentType === 13 ? b : R(d, y, E, b);
768
+ const _ = d.context(), { offset: I, startLoc: E } = _, b = y(d);
769
+ return _.currentType === 13 ? b : R(d, I, E, b);
770
770
  }
771
771
  function O(d) {
772
- const _ = ro(d, te({}, e)), y = _.context(), E = s(0, y.offset, y.startLoc);
773
- return t && E.loc && (E.loc.source = d), E.body = S(_), e.onCacheKey && (E.cacheKey = e.onCacheKey(d)), y.currentType !== 13 && n(_, D.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, d[y.offset] || ""), r(E, _.currentOffset(), _.currentPosition()), E;
772
+ const _ = oo(d, te({}, e)), I = _.context(), E = s(0, I.offset, I.startLoc);
773
+ return t && E.loc && (E.loc.source = d), E.body = S(_), e.onCacheKey && (E.cacheKey = e.onCacheKey(d)), I.currentType !== 13 && n(_, D.UNEXPECTED_LEXICAL_ANALYSIS, I.lastStartLoc, 0, d[I.offset] || ""), r(E, _.currentOffset(), _.currentPosition()), E;
774
774
  }
775
775
  return { parse: O };
776
776
  }
@@ -780,7 +780,7 @@ function Te(e) {
780
780
  const t = (e.value || "").replace(/\r?\n/gu, "\\n");
781
781
  return t.length > 10 ? t.slice(0, 9) + "…" : t;
782
782
  }
783
- function uo(e, t = {}) {
783
+ function fo(e, t = {}) {
784
784
  const a = {
785
785
  ast: e,
786
786
  helpers: /* @__PURE__ */ new Set()
@@ -832,8 +832,8 @@ function cn(e, t) {
832
832
  break;
833
833
  }
834
834
  }
835
- function fo(e, t = {}) {
836
- const a = uo(e);
835
+ function mo(e, t = {}) {
836
+ const a = fo(e);
837
837
  a.helper(
838
838
  "normalize"
839
839
  /* HelperNameMap.NORMALIZE */
@@ -841,7 +841,7 @@ function fo(e, t = {}) {
841
841
  const n = a.context();
842
842
  e.helpers = Array.from(n.helpers);
843
843
  }
844
- function mo(e) {
844
+ function po(e) {
845
845
  const t = e.body;
846
846
  return t.type === 2 ? Dn(t) : t.cases.forEach((a) => Dn(a)), e;
847
847
  }
@@ -866,25 +866,25 @@ function Dn(e) {
866
866
  }
867
867
  }
868
868
  }
869
- const po = "minifier";
870
- function tt(e) {
869
+ const _o = "minifier";
870
+ function at(e) {
871
871
  switch (e.t = e.type, e.type) {
872
872
  case 0: {
873
873
  const t = e;
874
- tt(t.body), t.b = t.body, delete t.body;
874
+ at(t.body), t.b = t.body, delete t.body;
875
875
  break;
876
876
  }
877
877
  case 1: {
878
878
  const t = e, a = t.cases;
879
879
  for (let n = 0; n < a.length; n++)
880
- tt(a[n]);
880
+ at(a[n]);
881
881
  t.c = a, delete t.cases;
882
882
  break;
883
883
  }
884
884
  case 2: {
885
885
  const t = e, a = t.items;
886
886
  for (let n = 0; n < a.length; n++)
887
- tt(a[n]);
887
+ at(a[n]);
888
888
  t.i = a, delete t.items, t.static && (t.s = t.static, delete t.static);
889
889
  break;
890
890
  }
@@ -898,7 +898,7 @@ function tt(e) {
898
898
  }
899
899
  case 6: {
900
900
  const t = e;
901
- tt(t.key), t.k = t.key, delete t.key, t.modifier && (tt(t.modifier), t.m = t.modifier, delete t.modifier);
901
+ at(t.key), t.k = t.key, delete t.key, t.modifier && (at(t.modifier), t.m = t.modifier, delete t.modifier);
902
902
  break;
903
903
  }
904
904
  case 5: {
@@ -913,15 +913,15 @@ function tt(e) {
913
913
  }
914
914
  default:
915
915
  if (process.env.NODE_ENV !== "production")
916
- throw dt(D.UNHANDLED_MINIFIER_NODE_TYPE, null, {
917
- domain: po,
916
+ throw mt(D.UNHANDLED_MINIFIER_NODE_TYPE, null, {
917
+ domain: _o,
918
918
  args: [e.type]
919
919
  });
920
920
  }
921
921
  delete e.type;
922
922
  }
923
- const _o = "parser";
924
- function go(e, t) {
923
+ const go = "parser";
924
+ function ho(e, t) {
925
925
  const { filename: a, breakLineCode: n, needIndent: s } = t, r = t.location !== !1, o = {
926
926
  filename: a,
927
927
  code: "",
@@ -963,25 +963,25 @@ function go(e, t) {
963
963
  needIndent: () => o.needIndent
964
964
  };
965
965
  }
966
- function ho(e, t) {
966
+ function Eo(e, t) {
967
967
  const { helper: a } = e;
968
968
  e.push(`${a(
969
969
  "linked"
970
970
  /* HelperNameMap.LINKED */
971
- )}(`), lt(e, t.key), t.modifier ? (e.push(", "), lt(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
971
+ )}(`), it(e, t.key), t.modifier ? (e.push(", "), it(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
972
972
  }
973
- function Eo(e, t) {
973
+ function vo(e, t) {
974
974
  const { helper: a, needIndent: n } = e;
975
975
  e.push(`${a(
976
976
  "normalize"
977
977
  /* HelperNameMap.NORMALIZE */
978
978
  )}([`), e.indent(n());
979
979
  const s = t.items.length;
980
- for (let r = 0; r < s && (lt(e, t.items[r]), r !== s - 1); r++)
980
+ for (let r = 0; r < s && (it(e, t.items[r]), r !== s - 1); r++)
981
981
  e.push(", ");
982
982
  e.deindent(n()), e.push("])");
983
983
  }
984
- function vo(e, t) {
984
+ function bo(e, t) {
985
985
  const { helper: a, needIndent: n } = e;
986
986
  if (t.cases.length > 1) {
987
987
  e.push(`${a(
@@ -989,28 +989,28 @@ function vo(e, t) {
989
989
  /* HelperNameMap.PLURAL */
990
990
  )}([`), e.indent(n());
991
991
  const s = t.cases.length;
992
- for (let r = 0; r < s && (lt(e, t.cases[r]), r !== s - 1); r++)
992
+ for (let r = 0; r < s && (it(e, t.cases[r]), r !== s - 1); r++)
993
993
  e.push(", ");
994
994
  e.deindent(n()), e.push("])");
995
995
  }
996
996
  }
997
- function bo(e, t) {
998
- t.body ? lt(e, t.body) : e.push("null");
997
+ function Io(e, t) {
998
+ t.body ? it(e, t.body) : e.push("null");
999
999
  }
1000
- function lt(e, t) {
1000
+ function it(e, t) {
1001
1001
  const { helper: a } = e;
1002
1002
  switch (t.type) {
1003
1003
  case 0:
1004
- bo(e, t);
1004
+ Io(e, t);
1005
1005
  break;
1006
1006
  case 1:
1007
- vo(e, t);
1007
+ bo(e, t);
1008
1008
  break;
1009
1009
  case 2:
1010
- Eo(e, t);
1010
+ vo(e, t);
1011
1011
  break;
1012
1012
  case 6:
1013
- ho(e, t);
1013
+ Eo(e, t);
1014
1014
  break;
1015
1015
  case 8:
1016
1016
  e.push(JSON.stringify(t.value), t);
@@ -1044,8 +1044,8 @@ function lt(e, t) {
1044
1044
  break;
1045
1045
  default:
1046
1046
  if (process.env.NODE_ENV !== "production")
1047
- throw dt(D.UNHANDLED_CODEGEN_NODE_TYPE, null, {
1048
- domain: _o,
1047
+ throw mt(D.UNHANDLED_CODEGEN_NODE_TYPE, null, {
1048
+ domain: go,
1049
1049
  args: [t.type]
1050
1050
  });
1051
1051
  }
@@ -1054,12 +1054,12 @@ const yo = (e, t = {}) => {
1054
1054
  const a = A(t.mode) ? t.mode : "normal", n = A(t.filename) ? t.filename : "message.intl";
1055
1055
  t.sourceMap;
1056
1056
  const s = t.breakLineCode != null ? t.breakLineCode : a === "arrow" ? ";" : `
1057
- `, r = t.needIndent ? t.needIndent : a !== "arrow", o = e.helpers || [], l = go(e, {
1057
+ `, r = t.needIndent ? t.needIndent : a !== "arrow", o = e.helpers || [], l = ho(e, {
1058
1058
  filename: n,
1059
1059
  breakLineCode: s,
1060
1060
  needIndent: r
1061
1061
  });
1062
- l.push(a === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), l.indent(r), o.length > 0 && (l.push(`const { ${on(o.map((m) => `${m}: _${m}`), ", ")} } = ctx`), l.newline()), l.push("return "), lt(l, e), l.deindent(r), l.push("}"), delete e.helpers;
1062
+ l.push(a === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), l.indent(r), o.length > 0 && (l.push(`const { ${on(o.map((m) => `${m}: _${m}`), ", ")} } = ctx`), l.newline()), l.push("return "), it(l, e), l.deindent(r), l.push("}"), delete e.helpers;
1063
1063
  const { code: i, map: c } = l.context();
1064
1064
  return {
1065
1065
  ast: e,
@@ -1068,63 +1068,63 @@ const yo = (e, t = {}) => {
1068
1068
  // eslint-disable-line @typescript-eslint/no-explicit-any
1069
1069
  };
1070
1070
  };
1071
- function Io(e, t = {}) {
1072
- const a = te({}, t), n = !!a.jit, s = !!a.minify, r = a.optimize == null ? !0 : a.optimize, l = co(a).parse(e);
1073
- return n ? (r && mo(l), s && tt(l), { ast: l, code: "" }) : (fo(l, a), yo(l, a));
1071
+ function No(e, t = {}) {
1072
+ const a = te({}, t), n = !!a.jit, s = !!a.minify, r = a.optimize == null ? !0 : a.optimize, l = uo(a).parse(e);
1073
+ return n ? (r && po(l), s && at(l), { ast: l, code: "" }) : (mo(l, a), yo(l, a));
1074
1074
  }
1075
1075
  /*!
1076
1076
  * core-base v11.2.7
1077
1077
  * (c) 2025 kazuya kawaguchi
1078
1078
  * Released under the MIT License.
1079
1079
  */
1080
- function No() {
1081
- typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (We().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (We().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
1080
+ function So() {
1081
+ typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Ge().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Ge().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
1082
1082
  }
1083
1083
  function he(e) {
1084
1084
  return U(e) && un(e) === 0 && (be(e, "b") || be(e, "body"));
1085
1085
  }
1086
- const ps = ["b", "body"];
1087
- function So(e) {
1088
- return Ue(e, ps);
1089
- }
1090
- const _s = ["c", "cases"];
1086
+ const _s = ["b", "body"];
1091
1087
  function To(e) {
1092
- return Ue(e, _s, []);
1088
+ return xe(e, _s);
1093
1089
  }
1094
- const gs = ["s", "static"];
1090
+ const gs = ["c", "cases"];
1095
1091
  function Lo(e) {
1096
- return Ue(e, gs);
1092
+ return xe(e, gs, []);
1097
1093
  }
1098
- const hs = ["i", "items"];
1094
+ const hs = ["s", "static"];
1099
1095
  function Oo(e) {
1100
- return Ue(e, hs, []);
1096
+ return xe(e, hs);
1097
+ }
1098
+ const Es = ["i", "items"];
1099
+ function Ao(e) {
1100
+ return xe(e, Es, []);
1101
1101
  }
1102
- const Es = ["t", "type"];
1102
+ const vs = ["t", "type"];
1103
1103
  function un(e) {
1104
- return Ue(e, Es);
1104
+ return xe(e, vs);
1105
1105
  }
1106
- const vs = ["v", "value"];
1107
- function Gt(e, t) {
1108
- const a = Ue(e, vs);
1106
+ const bs = ["v", "value"];
1107
+ function Kt(e, t) {
1108
+ const a = xe(e, bs);
1109
1109
  if (a != null)
1110
1110
  return a;
1111
- throw Nt(t);
1111
+ throw St(t);
1112
1112
  }
1113
- const bs = ["m", "modifier"];
1114
- function Ao(e) {
1115
- return Ue(e, bs);
1113
+ const Is = ["m", "modifier"];
1114
+ function Po(e) {
1115
+ return xe(e, Is);
1116
1116
  }
1117
1117
  const ys = ["k", "key"];
1118
- function Po(e) {
1119
- const t = Ue(e, ys);
1118
+ function Ro(e) {
1119
+ const t = xe(e, ys);
1120
1120
  if (t)
1121
1121
  return t;
1122
- throw Nt(
1122
+ throw St(
1123
1123
  6
1124
1124
  /* NodeTypes.Linked */
1125
1125
  );
1126
1126
  }
1127
- function Ue(e, t, a) {
1127
+ function xe(e, t, a) {
1128
1128
  for (let n = 0; n < t.length; n++) {
1129
1129
  const s = t[n];
1130
1130
  if (be(e, s) && e[s] != null)
@@ -1132,31 +1132,31 @@ function Ue(e, t, a) {
1132
1132
  }
1133
1133
  return a;
1134
1134
  }
1135
- const Is = [
1136
- ...ps,
1135
+ const Ns = [
1137
1136
  ..._s,
1138
1137
  ...gs,
1139
1138
  ...hs,
1139
+ ...Es,
1140
1140
  ...ys,
1141
+ ...Is,
1141
1142
  ...bs,
1142
- ...vs,
1143
- ...Es
1143
+ ...vs
1144
1144
  ];
1145
- function Nt(e) {
1145
+ function St(e) {
1146
1146
  return new Error(`unhandled node type: ${e}`);
1147
1147
  }
1148
1148
  function Ca(e) {
1149
- return (a) => Ro(a, e);
1149
+ return (a) => wo(a, e);
1150
1150
  }
1151
- function Ro(e, t) {
1152
- const a = So(t);
1151
+ function wo(e, t) {
1152
+ const a = To(t);
1153
1153
  if (a == null)
1154
- throw Nt(
1154
+ throw St(
1155
1155
  0
1156
1156
  /* NodeTypes.Resource */
1157
1157
  );
1158
1158
  if (un(a) === 1) {
1159
- const r = To(a);
1159
+ const r = Lo(a);
1160
1160
  return e.plural(r.reduce((o, l) => [
1161
1161
  ...o,
1162
1162
  Cn(e, l)
@@ -1165,11 +1165,11 @@ function Ro(e, t) {
1165
1165
  return Cn(e, a);
1166
1166
  }
1167
1167
  function Cn(e, t) {
1168
- const a = Lo(t);
1168
+ const a = Oo(t);
1169
1169
  if (a != null)
1170
1170
  return e.type === "text" ? a : e.normalize([a]);
1171
1171
  {
1172
- const n = Oo(t).reduce((s, r) => [...s, Ha(e, r)], []);
1172
+ const n = Ao(t).reduce((s, r) => [...s, Ha(e, r)], []);
1173
1173
  return e.normalize(n);
1174
1174
  }
1175
1175
  }
@@ -1177,16 +1177,16 @@ function Ha(e, t) {
1177
1177
  const a = un(t);
1178
1178
  switch (a) {
1179
1179
  case 3:
1180
- return Gt(t, a);
1180
+ return Kt(t, a);
1181
1181
  case 9:
1182
- return Gt(t, a);
1182
+ return Kt(t, a);
1183
1183
  case 4: {
1184
1184
  const n = t;
1185
1185
  if (be(n, "k") && n.k)
1186
1186
  return e.interpolate(e.named(n.k));
1187
1187
  if (be(n, "key") && n.key)
1188
1188
  return e.interpolate(e.named(n.key));
1189
- throw Nt(a);
1189
+ throw St(a);
1190
1190
  }
1191
1191
  case 5: {
1192
1192
  const n = t;
@@ -1194,76 +1194,76 @@ function Ha(e, t) {
1194
1194
  return e.interpolate(e.list(n.i));
1195
1195
  if (be(n, "index") && ee(n.index))
1196
1196
  return e.interpolate(e.list(n.index));
1197
- throw Nt(a);
1197
+ throw St(a);
1198
1198
  }
1199
1199
  case 6: {
1200
- const n = t, s = Ao(n), r = Po(n);
1200
+ const n = t, s = Po(n), r = Ro(n);
1201
1201
  return e.linked(Ha(e, r), s ? Ha(e, s) : void 0, e.type);
1202
1202
  }
1203
1203
  case 7:
1204
- return Gt(t, a);
1204
+ return Kt(t, a);
1205
1205
  case 8:
1206
- return Gt(t, a);
1206
+ return Kt(t, a);
1207
1207
  default:
1208
1208
  throw new Error(`unhandled node on format message part: ${a}`);
1209
1209
  }
1210
1210
  }
1211
- const wo = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
1212
- function ko(e, t) {
1213
- t && zr(e) && Le(na(wo, { source: e }));
1211
+ const ko = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
1212
+ function Do(e, t) {
1213
+ t && Zr(e) && Le(na(ko, { source: e }));
1214
1214
  }
1215
- const Do = (e) => e;
1216
- let Kt = W();
1217
- function Co(e, t = {}) {
1215
+ const Co = (e) => e;
1216
+ let Yt = W();
1217
+ function Fo(e, t = {}) {
1218
1218
  let a = !1;
1219
- const n = t.onError || Xr;
1219
+ const n = t.onError || qr;
1220
1220
  return t.onError = (s) => {
1221
1221
  a = !0, n(s);
1222
- }, { ...Io(e, t), detectError: a };
1222
+ }, { ...No(e, t), detectError: a };
1223
1223
  }
1224
1224
  // @__NO_SIDE_EFFECTS__
1225
- function Fo(e, t) {
1225
+ function Mo(e, t) {
1226
1226
  if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && A(e)) {
1227
1227
  const a = x(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
1228
- process.env.NODE_ENV !== "production" && ko(e, a);
1229
- const s = (t.onCacheKey || Do)(e), r = Kt[s];
1228
+ process.env.NODE_ENV !== "production" && Do(e, a);
1229
+ const s = (t.onCacheKey || Co)(e), r = Yt[s];
1230
1230
  if (r)
1231
1231
  return r;
1232
- const { ast: o, detectError: l } = Co(e, {
1232
+ const { ast: o, detectError: l } = Fo(e, {
1233
1233
  ...t,
1234
1234
  location: process.env.NODE_ENV !== "production",
1235
1235
  jit: !0
1236
1236
  }), i = Ca(o);
1237
- return l ? i : Kt[s] = i;
1237
+ return l ? i : Yt[s] = i;
1238
1238
  } else {
1239
1239
  if (process.env.NODE_ENV !== "production" && !he(e))
1240
1240
  return Le(`the message that is resolve with key '${t.key}' is not supported for jit compilation`), (() => e);
1241
1241
  const a = e.cacheKey;
1242
1242
  if (a) {
1243
- const n = Kt[a];
1244
- return n || (Kt[a] = Ca(e));
1243
+ const n = Yt[a];
1244
+ return n || (Yt[a] = Ca(e));
1245
1245
  } else
1246
1246
  return Ca(e);
1247
1247
  }
1248
1248
  }
1249
- let St = null;
1250
- function Mo(e) {
1251
- St = e;
1249
+ let Tt = null;
1250
+ function Uo(e) {
1251
+ Tt = e;
1252
1252
  }
1253
- function Uo(e, t, a) {
1254
- St && St.emit("i18n:init", {
1253
+ function xo(e, t, a) {
1254
+ Tt && Tt.emit("i18n:init", {
1255
1255
  timestamp: Date.now(),
1256
1256
  i18n: e,
1257
1257
  version: t,
1258
1258
  meta: a
1259
1259
  });
1260
1260
  }
1261
- const xo = /* @__PURE__ */ Vo("function:translate");
1262
- function Vo(e) {
1263
- return (t) => St && St.emit(e, t);
1261
+ const Vo = /* @__PURE__ */ $o("function:translate");
1262
+ function $o(e) {
1263
+ return (t) => Tt && Tt.emit(e, t);
1264
1264
  }
1265
1265
  const oe = {
1266
- INVALID_ARGUMENT: Jr,
1266
+ INVALID_ARGUMENT: Qr,
1267
1267
  // 17
1268
1268
  INVALID_DATE_ARGUMENT: 18,
1269
1269
  INVALID_ISO_DATE_ARGUMENT: 19,
@@ -1271,11 +1271,11 @@ const oe = {
1271
1271
  NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
1272
1272
  NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
1273
1273
  NOT_SUPPORT_LOCALE_TYPE: 23
1274
- }, $o = 24;
1274
+ }, Ho = 24;
1275
1275
  function we(e) {
1276
- return dt(e, null, process.env.NODE_ENV !== "production" ? { messages: Ho } : void 0);
1276
+ return mt(e, null, process.env.NODE_ENV !== "production" ? { messages: Wo } : void 0);
1277
1277
  }
1278
- const Ho = {
1278
+ const Wo = {
1279
1279
  [oe.INVALID_ARGUMENT]: "Invalid arguments",
1280
1280
  [oe.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
1281
1281
  [oe.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
@@ -1296,7 +1296,7 @@ function Fn(e) {
1296
1296
  return Fa;
1297
1297
  if (e.constructor.name === "Function") {
1298
1298
  const t = e();
1299
- if (Kr(t))
1299
+ if (Yr(t))
1300
1300
  throw we(oe.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
1301
1301
  return Fa = t;
1302
1302
  } else
@@ -1304,14 +1304,14 @@ function Fn(e) {
1304
1304
  } else
1305
1305
  throw we(oe.NOT_SUPPORT_LOCALE_TYPE);
1306
1306
  }
1307
- function Wo(e, t, a) {
1307
+ function Go(e, t, a) {
1308
1308
  return [.../* @__PURE__ */ new Set([
1309
1309
  a,
1310
1310
  ...J(t) ? t : U(t) ? Object.keys(t) : A(t) ? [t] : [a]
1311
1311
  ])];
1312
1312
  }
1313
- function Ns(e, t, a) {
1314
- const n = A(a) ? a : Tt, s = e;
1313
+ function Ss(e, t, a) {
1314
+ const n = A(a) ? a : Lt, s = e;
1315
1315
  s.__localeChainCache || (s.__localeChainCache = /* @__PURE__ */ new Map());
1316
1316
  let r = s.__localeChainCache.get(n);
1317
1317
  if (!r) {
@@ -1328,20 +1328,20 @@ function Mn(e, t, a) {
1328
1328
  let n = !0;
1329
1329
  for (let s = 0; s < t.length && x(n); s++) {
1330
1330
  const r = t[s];
1331
- A(r) && (n = Go(e, t[s], a));
1331
+ A(r) && (n = Ko(e, t[s], a));
1332
1332
  }
1333
1333
  return n;
1334
1334
  }
1335
- function Go(e, t, a) {
1335
+ function Ko(e, t, a) {
1336
1336
  let n;
1337
1337
  const s = t.split("-");
1338
1338
  do {
1339
1339
  const r = s.join("-");
1340
- n = Ko(e, r, a), s.splice(-1, 1);
1340
+ n = Yo(e, r, a), s.splice(-1, 1);
1341
1341
  } while (s.length && n === !0);
1342
1342
  return n;
1343
1343
  }
1344
- function Ko(e, t, a) {
1344
+ function Yo(e, t, a) {
1345
1345
  let n = !1;
1346
1346
  if (!e.includes(t) && (n = !0, t)) {
1347
1347
  n = t[t.length - 1] !== "!";
@@ -1350,8 +1350,8 @@ function Ko(e, t, a) {
1350
1350
  }
1351
1351
  return n;
1352
1352
  }
1353
- const xe = [];
1354
- xe[
1353
+ const Ve = [];
1354
+ Ve[
1355
1355
  0
1356
1356
  /* States.BEFORE_PATH */
1357
1357
  ] = {
@@ -1373,7 +1373,7 @@ xe[
1373
1373
  /* States.AFTER_PATH */
1374
1374
  ]
1375
1375
  };
1376
- xe[
1376
+ Ve[
1377
1377
  1
1378
1378
  /* States.IN_PATH */
1379
1379
  ] = {
@@ -1394,7 +1394,7 @@ xe[
1394
1394
  /* States.AFTER_PATH */
1395
1395
  ]
1396
1396
  };
1397
- xe[
1397
+ Ve[
1398
1398
  2
1399
1399
  /* States.BEFORE_IDENT */
1400
1400
  ] = {
@@ -1413,7 +1413,7 @@ xe[
1413
1413
  /* Actions.APPEND */
1414
1414
  ]
1415
1415
  };
1416
- xe[
1416
+ Ve[
1417
1417
  3
1418
1418
  /* States.IN_IDENT */
1419
1419
  ] = {
@@ -1448,7 +1448,7 @@ xe[
1448
1448
  /* Actions.PUSH */
1449
1449
  ]
1450
1450
  };
1451
- xe[
1451
+ Ve[
1452
1452
  4
1453
1453
  /* States.IN_SUB_PATH */
1454
1454
  ] = {
@@ -1479,7 +1479,7 @@ xe[
1479
1479
  /* Actions.APPEND */
1480
1480
  ]
1481
1481
  };
1482
- xe[
1482
+ Ve[
1483
1483
  5
1484
1484
  /* States.IN_SINGLE_QUOTE */
1485
1485
  ] = {
@@ -1495,7 +1495,7 @@ xe[
1495
1495
  /* Actions.APPEND */
1496
1496
  ]
1497
1497
  };
1498
- xe[
1498
+ Ve[
1499
1499
  6
1500
1500
  /* States.IN_DOUBLE_QUOTE */
1501
1501
  ] = {
@@ -1511,15 +1511,15 @@ xe[
1511
1511
  /* Actions.APPEND */
1512
1512
  ]
1513
1513
  };
1514
- const Yo = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
1515
- function Bo(e) {
1516
- return Yo.test(e);
1517
- }
1514
+ const Bo = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
1518
1515
  function jo(e) {
1516
+ return Bo.test(e);
1517
+ }
1518
+ function Jo(e) {
1519
1519
  const t = e.charCodeAt(0), a = e.charCodeAt(e.length - 1);
1520
1520
  return t === a && (t === 34 || t === 39) ? e.slice(1, -1) : e;
1521
1521
  }
1522
- function Jo(e) {
1522
+ function Qo(e) {
1523
1523
  if (e == null)
1524
1524
  return "o";
1525
1525
  switch (e.charCodeAt(0)) {
@@ -1556,11 +1556,11 @@ function Jo(e) {
1556
1556
  }
1557
1557
  return "i";
1558
1558
  }
1559
- function Qo(e) {
1559
+ function Xo(e) {
1560
1560
  const t = e.trim();
1561
- return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Bo(t) ? jo(t) : "*" + t;
1561
+ return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : jo(t) ? Jo(t) : "*" + t;
1562
1562
  }
1563
- function Xo(e) {
1563
+ function qo(e) {
1564
1564
  const t = [];
1565
1565
  let a = -1, n = 0, s = 0, r, o, l, i, c, m, g;
1566
1566
  const p = [];
@@ -1592,7 +1592,7 @@ function Xo(e) {
1592
1592
  /* Actions.APPEND */
1593
1593
  ]();
1594
1594
  else {
1595
- if (s = 0, o === void 0 || (o = Qo(o), o === !1))
1595
+ if (s = 0, o === void 0 || (o = Xo(o), o === !1))
1596
1596
  return !1;
1597
1597
  p[
1598
1598
  1
@@ -1600,7 +1600,7 @@ function Xo(e) {
1600
1600
  ]();
1601
1601
  }
1602
1602
  };
1603
- function I() {
1603
+ function y() {
1604
1604
  const R = e[a + 1];
1605
1605
  if (n === 5 && R === "'" || n === 6 && R === '"')
1606
1606
  return a++, l = "\\" + R, p[
@@ -1609,28 +1609,28 @@ function Xo(e) {
1609
1609
  ](), !0;
1610
1610
  }
1611
1611
  for (; n !== null; )
1612
- if (a++, r = e[a], !(r === "\\" && I())) {
1613
- if (i = Jo(r), g = xe[n], c = g[i] || g.l || 8, c === 8 || (n = c[0], c[1] !== void 0 && (m = p[c[1]], m && (l = r, m() === !1))))
1612
+ if (a++, r = e[a], !(r === "\\" && y())) {
1613
+ if (i = Qo(r), g = Ve[n], c = g[i] || g.l || 8, c === 8 || (n = c[0], c[1] !== void 0 && (m = p[c[1]], m && (l = r, m() === !1))))
1614
1614
  return;
1615
1615
  if (n === 7)
1616
1616
  return t;
1617
1617
  }
1618
1618
  }
1619
1619
  const Un = /* @__PURE__ */ new Map();
1620
- function qo(e, t) {
1620
+ function zo(e, t) {
1621
1621
  return U(e) ? e[t] : null;
1622
1622
  }
1623
- function zo(e, t) {
1623
+ function Zo(e, t) {
1624
1624
  if (!U(e))
1625
1625
  return null;
1626
1626
  let a = Un.get(t);
1627
- if (a || (a = Xo(t), a && Un.set(t, a)), !a)
1627
+ if (a || (a = qo(t), a && Un.set(t, a)), !a)
1628
1628
  return null;
1629
1629
  const n = a.length;
1630
1630
  let s = e, r = 0;
1631
1631
  for (; r < n; ) {
1632
1632
  const o = a[r];
1633
- if (Is.includes(o) && he(s))
1633
+ if (Ns.includes(o) && he(s))
1634
1634
  return null;
1635
1635
  const l = s[o];
1636
1636
  if (l === void 0 || G(s))
@@ -1647,7 +1647,7 @@ const ce = {
1647
1647
  CANNOT_FORMAT_DATE: 5,
1648
1648
  FALLBACK_TO_DATE_FORMAT: 6,
1649
1649
  EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7
1650
- }, Zo = 8, el = {
1650
+ }, el = 8, tl = {
1651
1651
  [ce.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
1652
1652
  [ce.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
1653
1653
  [ce.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
@@ -1656,21 +1656,17 @@ const ce = {
1656
1656
  [ce.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale.",
1657
1657
  [ce.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."
1658
1658
  };
1659
- function Je(e, ...t) {
1660
- return na(el[e], ...t);
1659
+ function Qe(e, ...t) {
1660
+ return na(tl[e], ...t);
1661
1661
  }
1662
- const tl = "11.2.7", ra = -1, Tt = "en-US", Xt = "", xn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
1663
- function al() {
1662
+ const al = "11.2.7", ra = -1, Lt = "en-US", Xt = "", xn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
1663
+ function nl() {
1664
1664
  return {
1665
1665
  upper: (e, t) => t === "text" && A(e) ? e.toUpperCase() : t === "vnode" && U(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
1666
1666
  lower: (e, t) => t === "text" && A(e) ? e.toLowerCase() : t === "vnode" && U(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
1667
1667
  capitalize: (e, t) => t === "text" && A(e) ? xn(e) : t === "vnode" && U(e) && "__v_isVNode" in e ? xn(e.children) : e
1668
1668
  };
1669
1669
  }
1670
- let Ss;
1671
- function nl(e) {
1672
- Ss = e;
1673
- }
1674
1670
  let Ts;
1675
1671
  function sl(e) {
1676
1672
  Ts = e;
@@ -1679,19 +1675,23 @@ let Ls;
1679
1675
  function rl(e) {
1680
1676
  Ls = e;
1681
1677
  }
1682
- let Os = null;
1683
- const ol = /* @__NO_SIDE_EFFECTS__ */ (e) => {
1678
+ let Os;
1679
+ function ol(e) {
1684
1680
  Os = e;
1685
- }, ll = /* @__NO_SIDE_EFFECTS__ */ () => Os;
1681
+ }
1686
1682
  let As = null;
1687
- const Vn = (e) => {
1683
+ const ll = /* @__NO_SIDE_EFFECTS__ */ (e) => {
1688
1684
  As = e;
1689
- }, il = () => As;
1685
+ }, il = /* @__NO_SIDE_EFFECTS__ */ () => As;
1686
+ let Ps = null;
1687
+ const Vn = (e) => {
1688
+ Ps = e;
1689
+ }, cl = () => Ps;
1690
1690
  let $n = 0;
1691
- function cl(e = {}) {
1692
- const t = G(e.onWarn) ? e.onWarn : Le, a = A(e.version) ? e.version : tl, n = A(e.locale) || G(e.locale) ? e.locale : Tt, s = G(n) ? Tt : n, r = J(e.fallbackLocale) || F(e.fallbackLocale) || A(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, o = F(e.messages) ? e.messages : Ma(s), l = F(e.datetimeFormats) ? e.datetimeFormats : Ma(s), i = F(e.numberFormats) ? e.numberFormats : Ma(s), c = te(W(), e.modifiers, al()), m = e.pluralRules || W(), g = G(e.missing) ? e.missing : null, p = x(e.missingWarn) || ot(e.missingWarn) ? e.missingWarn : !0, I = x(e.fallbackWarn) || ot(e.fallbackWarn) ? e.fallbackWarn : !0, R = !!e.fallbackFormat, S = !!e.unresolving, O = G(e.postTranslation) ? e.postTranslation : null, d = F(e.processor) ? e.processor : null, _ = x(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, y = !!e.escapeParameter, E = G(e.messageCompiler) ? e.messageCompiler : Ss;
1693
- process.env.NODE_ENV !== "production" && G(e.messageCompiler) && sn(Je(ce.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
1694
- const b = G(e.messageResolver) ? e.messageResolver : Ts || qo, L = G(e.localeFallbacker) ? e.localeFallbacker : Ls || Wo, v = U(e.fallbackContext) ? e.fallbackContext : void 0, C = e, M = U(C.__datetimeFormatters) ? C.__datetimeFormatters : /* @__PURE__ */ new Map(), K = U(C.__numberFormatters) ? C.__numberFormatters : /* @__PURE__ */ new Map(), Ee = U(C.__meta) ? C.__meta : {};
1691
+ function ul(e = {}) {
1692
+ const t = G(e.onWarn) ? e.onWarn : Le, a = A(e.version) ? e.version : al, n = A(e.locale) || G(e.locale) ? e.locale : Lt, s = G(n) ? Lt : n, r = J(e.fallbackLocale) || F(e.fallbackLocale) || A(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, o = F(e.messages) ? e.messages : Ma(s), l = F(e.datetimeFormats) ? e.datetimeFormats : Ma(s), i = F(e.numberFormats) ? e.numberFormats : Ma(s), c = te(W(), e.modifiers, nl()), m = e.pluralRules || W(), g = G(e.missing) ? e.missing : null, p = x(e.missingWarn) || lt(e.missingWarn) ? e.missingWarn : !0, y = x(e.fallbackWarn) || lt(e.fallbackWarn) ? e.fallbackWarn : !0, R = !!e.fallbackFormat, S = !!e.unresolving, O = G(e.postTranslation) ? e.postTranslation : null, d = F(e.processor) ? e.processor : null, _ = x(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, I = !!e.escapeParameter, E = G(e.messageCompiler) ? e.messageCompiler : Ts;
1693
+ process.env.NODE_ENV !== "production" && G(e.messageCompiler) && sn(Qe(ce.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
1694
+ const b = G(e.messageResolver) ? e.messageResolver : Ls || zo, L = G(e.localeFallbacker) ? e.localeFallbacker : Os || Go, v = U(e.fallbackContext) ? e.fallbackContext : void 0, C = e, M = U(C.__datetimeFormatters) ? C.__datetimeFormatters : /* @__PURE__ */ new Map(), K = U(C.__numberFormatters) ? C.__numberFormatters : /* @__PURE__ */ new Map(), Ee = U(C.__meta) ? C.__meta : {};
1695
1695
  $n++;
1696
1696
  const Q = {
1697
1697
  version: a,
@@ -1703,13 +1703,13 @@ function cl(e = {}) {
1703
1703
  pluralRules: m,
1704
1704
  missing: g,
1705
1705
  missingWarn: p,
1706
- fallbackWarn: I,
1706
+ fallbackWarn: y,
1707
1707
  fallbackFormat: R,
1708
1708
  unresolving: S,
1709
1709
  postTranslation: O,
1710
1710
  processor: d,
1711
1711
  warnHtmlMessage: _,
1712
- escapeParameter: y,
1712
+ escapeParameter: I,
1713
1713
  messageCompiler: E,
1714
1714
  messageResolver: b,
1715
1715
  localeFallbacker: L,
@@ -1717,13 +1717,13 @@ function cl(e = {}) {
1717
1717
  onWarn: t,
1718
1718
  __meta: Ee
1719
1719
  };
1720
- return Q.datetimeFormats = l, Q.numberFormats = i, Q.__datetimeFormatters = M, Q.__numberFormatters = K, process.env.NODE_ENV !== "production" && (Q.__v_emitter = C.__v_emitter != null ? C.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Uo(Q, a, Ee), Q;
1720
+ return Q.datetimeFormats = l, Q.numberFormats = i, Q.__datetimeFormatters = M, Q.__numberFormatters = K, process.env.NODE_ENV !== "production" && (Q.__v_emitter = C.__v_emitter != null ? C.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && xo(Q, a, Ee), Q;
1721
1721
  }
1722
1722
  const Ma = (e) => ({ [e]: W() });
1723
1723
  function oa(e, t) {
1724
1724
  return e instanceof RegExp ? e.test(t) : e;
1725
1725
  }
1726
- function Ps(e, t) {
1726
+ function Rs(e, t) {
1727
1727
  return e instanceof RegExp ? e.test(t) : e;
1728
1728
  }
1729
1729
  function dn(e, t, a, n, s) {
@@ -1741,33 +1741,33 @@ function dn(e, t, a, n, s) {
1741
1741
  const l = r(e, a, t, s);
1742
1742
  return A(l) ? l : t;
1743
1743
  } else
1744
- return process.env.NODE_ENV !== "production" && Ps(n, t) && o(Je(ce.NOT_FOUND_KEY, { key: t, locale: a })), t;
1744
+ return process.env.NODE_ENV !== "production" && Rs(n, t) && o(Qe(ce.NOT_FOUND_KEY, { key: t, locale: a })), t;
1745
1745
  }
1746
- function Et(e, t, a) {
1746
+ function vt(e, t, a) {
1747
1747
  const n = e;
1748
1748
  n.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, a, t);
1749
1749
  }
1750
- function Rs(e, t) {
1750
+ function ws(e, t) {
1751
1751
  return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
1752
1752
  }
1753
- function ul(e, t) {
1753
+ function fl(e, t) {
1754
1754
  const a = t.indexOf(e);
1755
1755
  if (a === -1)
1756
1756
  return !1;
1757
1757
  for (let n = a + 1; n < t.length; n++)
1758
- if (Rs(e, t[n]))
1758
+ if (ws(e, t[n]))
1759
1759
  return !0;
1760
1760
  return !1;
1761
1761
  }
1762
- const Hn = typeof Intl < "u", ws = {
1762
+ const Hn = typeof Intl < "u", ks = {
1763
1763
  dateTimeFormat: Hn && typeof Intl.DateTimeFormat < "u",
1764
1764
  numberFormat: Hn && typeof Intl.NumberFormat < "u"
1765
1765
  };
1766
1766
  function Wn(e, ...t) {
1767
1767
  const { datetimeFormats: a, unresolving: n, fallbackLocale: s, onWarn: r, localeFallbacker: o } = e, { __datetimeFormatters: l } = e;
1768
- if (process.env.NODE_ENV !== "production" && !ws.dateTimeFormat)
1769
- return r(Je(ce.CANNOT_FORMAT_DATE)), Xt;
1770
- const [i, c, m, g] = Wa(...t), p = x(m.missingWarn) ? m.missingWarn : e.missingWarn, I = x(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, R = !!m.part, S = fn(e, m), O = o(
1768
+ if (process.env.NODE_ENV !== "production" && !ks.dateTimeFormat)
1769
+ return r(Qe(ce.CANNOT_FORMAT_DATE)), Xt;
1770
+ const [i, c, m, g] = Wa(...t), p = x(m.missingWarn) ? m.missingWarn : e.missingWarn, y = x(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, R = !!m.part, S = fn(e, m), O = o(
1771
1771
  e,
1772
1772
  // eslint-disable-line @typescript-eslint/no-explicit-any
1773
1773
  s,
@@ -1775,10 +1775,10 @@ function Wn(e, ...t) {
1775
1775
  );
1776
1776
  if (!A(i) || i === "")
1777
1777
  return new Intl.DateTimeFormat(S, g).format(c);
1778
- let d = {}, _, y = null, E = S, b = null;
1778
+ let d = {}, _, I = null, E = S, b = null;
1779
1779
  const L = "datetime format";
1780
1780
  for (let M = 0; M < O.length; M++) {
1781
- if (_ = b = O[M], process.env.NODE_ENV !== "production" && S !== _ && oa(I, i) && r(Je(ce.FALLBACK_TO_DATE_FORMAT, {
1781
+ if (_ = b = O[M], process.env.NODE_ENV !== "production" && S !== _ && oa(y, i) && r(Qe(ce.FALLBACK_TO_DATE_FORMAT, {
1782
1782
  key: i,
1783
1783
  target: _
1784
1784
  })), process.env.NODE_ENV !== "production" && S !== _) {
@@ -1791,18 +1791,18 @@ function Wn(e, ...t) {
1791
1791
  groupId: `${L}:${i}`
1792
1792
  });
1793
1793
  }
1794
- if (d = a[_] || {}, y = d[i], F(y))
1794
+ if (d = a[_] || {}, I = d[i], F(I))
1795
1795
  break;
1796
1796
  dn(e, i, _, p, L), E = b;
1797
1797
  }
1798
- if (!F(y) || !A(_))
1798
+ if (!F(I) || !A(_))
1799
1799
  return n ? ra : i;
1800
1800
  let v = `${_}__${i}`;
1801
1801
  sa(g) || (v = `${v}__${JSON.stringify(g)}`);
1802
1802
  let C = l.get(v);
1803
- return C || (C = new Intl.DateTimeFormat(_, te({}, y, g)), l.set(v, C)), R ? C.formatToParts(c) : C.format(c);
1803
+ return C || (C = new Intl.DateTimeFormat(_, te({}, I, g)), l.set(v, C)), R ? C.formatToParts(c) : C.format(c);
1804
1804
  }
1805
- const ks = [
1805
+ const Ds = [
1806
1806
  "localeMatcher",
1807
1807
  "weekday",
1808
1808
  "era",
@@ -1838,7 +1838,7 @@ function Wa(...e) {
1838
1838
  } catch {
1839
1839
  throw we(oe.INVALID_ISO_DATE_ARGUMENT);
1840
1840
  }
1841
- } else if ($r(t)) {
1841
+ } else if (Hr(t)) {
1842
1842
  if (isNaN(t.getTime()))
1843
1843
  throw we(oe.INVALID_DATE_ARGUMENT);
1844
1844
  l = t;
@@ -1847,7 +1847,7 @@ function Wa(...e) {
1847
1847
  else
1848
1848
  throw we(oe.INVALID_ARGUMENT);
1849
1849
  return A(a) ? r.key = a : F(a) && Object.keys(a).forEach((i) => {
1850
- ks.includes(i) ? o[i] = a[i] : r[i] = a[i];
1850
+ Ds.includes(i) ? o[i] = a[i] : r[i] = a[i];
1851
1851
  }), A(n) ? r.locale = n : F(n) && (o = n), F(s) && (o = s), [r.key || "", l, r, o];
1852
1852
  }
1853
1853
  function Gn(e, t, a) {
@@ -1859,9 +1859,9 @@ function Gn(e, t, a) {
1859
1859
  }
1860
1860
  function Kn(e, ...t) {
1861
1861
  const { numberFormats: a, unresolving: n, fallbackLocale: s, onWarn: r, localeFallbacker: o } = e, { __numberFormatters: l } = e;
1862
- if (process.env.NODE_ENV !== "production" && !ws.numberFormat)
1863
- return r(Je(ce.CANNOT_FORMAT_NUMBER)), Xt;
1864
- const [i, c, m, g] = Ga(...t), p = x(m.missingWarn) ? m.missingWarn : e.missingWarn, I = x(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, R = !!m.part, S = fn(e, m), O = o(
1862
+ if (process.env.NODE_ENV !== "production" && !ks.numberFormat)
1863
+ return r(Qe(ce.CANNOT_FORMAT_NUMBER)), Xt;
1864
+ const [i, c, m, g] = Ga(...t), p = x(m.missingWarn) ? m.missingWarn : e.missingWarn, y = x(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, R = !!m.part, S = fn(e, m), O = o(
1865
1865
  e,
1866
1866
  // eslint-disable-line @typescript-eslint/no-explicit-any
1867
1867
  s,
@@ -1869,10 +1869,10 @@ function Kn(e, ...t) {
1869
1869
  );
1870
1870
  if (!A(i) || i === "")
1871
1871
  return new Intl.NumberFormat(S, g).format(c);
1872
- let d = {}, _, y = null, E = S, b = null;
1872
+ let d = {}, _, I = null, E = S, b = null;
1873
1873
  const L = "number format";
1874
1874
  for (let M = 0; M < O.length; M++) {
1875
- if (_ = b = O[M], process.env.NODE_ENV !== "production" && S !== _ && oa(I, i) && r(Je(ce.FALLBACK_TO_NUMBER_FORMAT, {
1875
+ if (_ = b = O[M], process.env.NODE_ENV !== "production" && S !== _ && oa(y, i) && r(Qe(ce.FALLBACK_TO_NUMBER_FORMAT, {
1876
1876
  key: i,
1877
1877
  target: _
1878
1878
  })), process.env.NODE_ENV !== "production" && S !== _) {
@@ -1885,18 +1885,18 @@ function Kn(e, ...t) {
1885
1885
  groupId: `${L}:${i}`
1886
1886
  });
1887
1887
  }
1888
- if (d = a[_] || {}, y = d[i], F(y))
1888
+ if (d = a[_] || {}, I = d[i], F(I))
1889
1889
  break;
1890
1890
  dn(e, i, _, p, L), E = b;
1891
1891
  }
1892
- if (!F(y) || !A(_))
1892
+ if (!F(I) || !A(_))
1893
1893
  return n ? ra : i;
1894
1894
  let v = `${_}__${i}`;
1895
1895
  sa(g) || (v = `${v}__${JSON.stringify(g)}`);
1896
1896
  let C = l.get(v);
1897
- return C || (C = new Intl.NumberFormat(_, te({}, y, g)), l.set(v, C)), R ? C.formatToParts(c) : C.format(c);
1897
+ return C || (C = new Intl.NumberFormat(_, te({}, I, g)), l.set(v, C)), R ? C.formatToParts(c) : C.format(c);
1898
1898
  }
1899
- const Ds = [
1899
+ const Cs = [
1900
1900
  "localeMatcher",
1901
1901
  "style",
1902
1902
  "currency",
@@ -1925,7 +1925,7 @@ function Ga(...e) {
1925
1925
  throw we(oe.INVALID_ARGUMENT);
1926
1926
  const l = t;
1927
1927
  return A(a) ? r.key = a : F(a) && Object.keys(a).forEach((i) => {
1928
- Ds.includes(i) ? o[i] = a[i] : r[i] = a[i];
1928
+ Cs.includes(i) ? o[i] = a[i] : r[i] = a[i];
1929
1929
  }), A(n) ? r.locale = n : F(n) && (o = n), F(s) && (o = s), [r.key || "", l, r, o];
1930
1930
  }
1931
1931
  function Yn(e, t, a) {
@@ -1935,33 +1935,33 @@ function Yn(e, t, a) {
1935
1935
  n.__numberFormatters.has(r) && n.__numberFormatters.delete(r);
1936
1936
  }
1937
1937
  }
1938
- const fl = (e) => e, dl = (e) => "", ml = "text", pl = (e) => e.length === 0 ? "" : on(e), _l = Yr;
1938
+ const dl = (e) => e, ml = (e) => "", pl = "text", _l = (e) => e.length === 0 ? "" : on(e), gl = Br;
1939
1939
  function Bn(e, t) {
1940
1940
  return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
1941
1941
  }
1942
- function gl(e) {
1942
+ function hl(e) {
1943
1943
  const t = ee(e.pluralIndex) ? e.pluralIndex : -1;
1944
1944
  return e.named && (ee(e.named.count) || ee(e.named.n)) ? ee(e.named.count) ? e.named.count : ee(e.named.n) ? e.named.n : t : t;
1945
1945
  }
1946
- function hl(e, t) {
1946
+ function El(e, t) {
1947
1947
  t.count || (t.count = e), t.n || (t.n = e);
1948
1948
  }
1949
- function El(e = {}) {
1950
- const t = e.locale, a = gl(e), n = U(e.pluralRules) && A(t) && G(e.pluralRules[t]) ? e.pluralRules[t] : Bn, s = U(e.pluralRules) && A(t) && G(e.pluralRules[t]) ? Bn : void 0, r = (d) => d[n(a, d.length, s)], o = e.list || [], l = (d) => o[d], i = e.named || W();
1951
- ee(e.pluralIndex) && hl(a, i);
1949
+ function vl(e = {}) {
1950
+ const t = e.locale, a = hl(e), n = U(e.pluralRules) && A(t) && G(e.pluralRules[t]) ? e.pluralRules[t] : Bn, s = U(e.pluralRules) && A(t) && G(e.pluralRules[t]) ? Bn : void 0, r = (d) => d[n(a, d.length, s)], o = e.list || [], l = (d) => o[d], i = e.named || W();
1951
+ ee(e.pluralIndex) && El(a, i);
1952
1952
  const c = (d) => i[d];
1953
1953
  function m(d, _) {
1954
- const y = G(e.messages) ? e.messages(d, !!_) : U(e.messages) ? e.messages[d] : !1;
1955
- return y || (e.parent ? e.parent.message(d) : dl);
1954
+ const I = G(e.messages) ? e.messages(d, !!_) : U(e.messages) ? e.messages[d] : !1;
1955
+ return I || (e.parent ? e.parent.message(d) : ml);
1956
1956
  }
1957
- const g = (d) => e.modifiers ? e.modifiers[d] : fl, p = F(e.processor) && G(e.processor.normalize) ? e.processor.normalize : pl, I = F(e.processor) && G(e.processor.interpolate) ? e.processor.interpolate : _l, R = F(e.processor) && A(e.processor.type) ? e.processor.type : ml, O = {
1957
+ const g = (d) => e.modifiers ? e.modifiers[d] : dl, p = F(e.processor) && G(e.processor.normalize) ? e.processor.normalize : _l, y = F(e.processor) && G(e.processor.interpolate) ? e.processor.interpolate : gl, R = F(e.processor) && A(e.processor.type) ? e.processor.type : pl, O = {
1958
1958
  list: l,
1959
1959
  named: c,
1960
1960
  plural: r,
1961
1961
  linked: (d, ..._) => {
1962
- const [y, E] = _;
1962
+ const [I, E] = _;
1963
1963
  let b = "text", L = "";
1964
- _.length === 1 ? U(y) ? (L = y.modifier || L, b = y.type || b) : A(y) && (L = y || L) : _.length === 2 && (A(y) && (L = y || L), A(E) && (b = E || b));
1964
+ _.length === 1 ? U(I) ? (L = I.modifier || L, b = I.type || b) : A(I) && (L = I || L) : _.length === 2 && (A(I) && (L = I || L), A(E) && (b = E || b));
1965
1965
  const v = m(d, !0)(O), C = (
1966
1966
  // The message in vnode resolved with linked are returned as an array by processor.nomalize
1967
1967
  b === "vnode" && J(v) && L ? v[0] : v
@@ -1970,7 +1970,7 @@ function El(e = {}) {
1970
1970
  },
1971
1971
  message: m,
1972
1972
  type: R,
1973
- interpolate: I,
1973
+ interpolate: y,
1974
1974
  normalize: p,
1975
1975
  values: te(W(), o, i)
1976
1976
  };
@@ -1978,48 +1978,48 @@ function El(e = {}) {
1978
1978
  }
1979
1979
  const jn = () => "", pe = (e) => G(e);
1980
1980
  function Jn(e, ...t) {
1981
- const { fallbackFormat: a, postTranslation: n, unresolving: s, messageCompiler: r, fallbackLocale: o, messages: l } = e, [i, c] = Ka(...t), m = x(c.missingWarn) ? c.missingWarn : e.missingWarn, g = x(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, p = x(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, I = !!c.resolvedMessage, R = A(c.default) || x(c.default) ? x(c.default) ? r ? i : () => i : c.default : a ? r ? i : () => i : null, S = a || R != null && (A(R) || G(R)), O = fn(e, c);
1982
- p && vl(c);
1983
- let [d, _, y] = I ? [
1981
+ const { fallbackFormat: a, postTranslation: n, unresolving: s, messageCompiler: r, fallbackLocale: o, messages: l } = e, [i, c] = Ka(...t), m = x(c.missingWarn) ? c.missingWarn : e.missingWarn, g = x(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, p = x(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, y = !!c.resolvedMessage, R = A(c.default) || x(c.default) ? x(c.default) ? r ? i : () => i : c.default : a ? r ? i : () => i : null, S = a || R != null && (A(R) || G(R)), O = fn(e, c);
1982
+ p && bl(c);
1983
+ let [d, _, I] = y ? [
1984
1984
  i,
1985
1985
  O,
1986
1986
  l[O] || W()
1987
- ] : Cs(e, i, O, o, g, m), E = d, b = i;
1988
- if (!I && !(A(E) || he(E) || pe(E)) && S && (E = R, b = E), !I && (!(A(E) || he(E) || pe(E)) || !A(_)))
1987
+ ] : Fs(e, i, O, o, g, m), E = d, b = i;
1988
+ if (!y && !(A(E) || he(E) || pe(E)) && S && (E = R, b = E), !y && (!(A(E) || he(E) || pe(E)) || !A(_)))
1989
1989
  return s ? ra : i;
1990
1990
  if (process.env.NODE_ENV !== "production" && A(E) && e.messageCompiler == null)
1991
1991
  return Le(`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 '${i}'.`), i;
1992
1992
  let L = !1;
1993
1993
  const v = () => {
1994
1994
  L = !0;
1995
- }, C = pe(E) ? E : Fs(e, i, _, E, b, v);
1995
+ }, C = pe(E) ? E : Ms(e, i, _, E, b, v);
1996
1996
  if (L)
1997
1997
  return E;
1998
- const M = Nl(e, _, y, c), K = El(M), Ee = bl(e, C, K);
1998
+ const M = Sl(e, _, I, c), K = vl(M), Ee = Il(e, C, K);
1999
1999
  let Q = n ? n(Ee, i) : Ee;
2000
- if (p && A(Q) && (Q = Wr(Q)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
2001
- const qe = {
2000
+ if (p && A(Q) && (Q = Gr(Q)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
2001
+ const ze = {
2002
2002
  timestamp: Date.now(),
2003
2003
  key: A(i) ? i : pe(E) ? E.key : "",
2004
2004
  locale: _ || (pe(E) ? E.locale : ""),
2005
2005
  format: A(E) ? E : pe(E) ? E.source : "",
2006
2006
  message: Q
2007
2007
  };
2008
- qe.meta = te({}, e.__meta, /* @__PURE__ */ ll() || {}), xo(qe);
2008
+ ze.meta = te({}, e.__meta, /* @__PURE__ */ il() || {}), Vo(ze);
2009
2009
  }
2010
2010
  return Q;
2011
2011
  }
2012
- function vl(e) {
2012
+ function bl(e) {
2013
2013
  J(e.list) ? e.list = e.list.map((t) => A(t) ? An(t) : t) : U(e.named) && Object.keys(e.named).forEach((t) => {
2014
2014
  A(e.named[t]) && (e.named[t] = An(e.named[t]));
2015
2015
  });
2016
2016
  }
2017
- function Cs(e, t, a, n, s, r) {
2017
+ function Fs(e, t, a, n, s, r) {
2018
2018
  const { messages: o, onWarn: l, messageResolver: i, localeFallbacker: c } = e, m = c(e, n, a);
2019
- let g = W(), p, I = null, R = a, S = null;
2019
+ let g = W(), p, y = null, R = a, S = null;
2020
2020
  const O = "translate";
2021
2021
  for (let d = 0; d < m.length; d++) {
2022
- if (p = S = m[d], process.env.NODE_ENV !== "production" && a !== p && !Rs(a, p) && oa(s, t) && l(Je(ce.FALLBACK_TO_TRANSLATE, {
2022
+ if (p = S = m[d], process.env.NODE_ENV !== "production" && a !== p && !ws(a, p) && oa(s, t) && l(Qe(ce.FALLBACK_TO_TRANSLATE, {
2023
2023
  key: t,
2024
2024
  target: p
2025
2025
  })), process.env.NODE_ENV !== "production" && a !== p) {
@@ -2033,20 +2033,20 @@ function Cs(e, t, a, n, s, r) {
2033
2033
  });
2034
2034
  }
2035
2035
  g = o[p] || W();
2036
- let _ = null, y, E;
2037
- if (process.env.NODE_ENV !== "production" && Ne && (_ = window.performance.now(), y = "intlify-message-resolve-start", E = "intlify-message-resolve-end", fe && fe(y)), (I = i(g, t)) === null && (I = g[t]), process.env.NODE_ENV !== "production" && Ne) {
2036
+ let _ = null, I, E;
2037
+ if (process.env.NODE_ENV !== "production" && Ne && (_ = window.performance.now(), I = "intlify-message-resolve-start", E = "intlify-message-resolve-end", fe && fe(I)), (y = i(g, t)) === null && (y = g[t]), process.env.NODE_ENV !== "production" && Ne) {
2038
2038
  const b = window.performance.now(), L = e.__v_emitter;
2039
- L && _ && I && L.emit("message-resolve", {
2039
+ L && _ && y && L.emit("message-resolve", {
2040
2040
  type: "message-resolve",
2041
2041
  key: t,
2042
- message: I,
2042
+ message: y,
2043
2043
  time: b - _,
2044
2044
  groupId: `${O}:${t}`
2045
- }), y && E && fe && je && (fe(E), je("intlify message resolve", y, E));
2045
+ }), I && E && fe && Je && (fe(E), Je("intlify message resolve", I, E));
2046
2046
  }
2047
- if (A(I) || he(I) || pe(I))
2047
+ if (A(y) || he(y) || pe(y))
2048
2048
  break;
2049
- if (!ul(p, m)) {
2049
+ if (!fl(p, m)) {
2050
2050
  const b = dn(
2051
2051
  e,
2052
2052
  // eslint-disable-line @typescript-eslint/no-explicit-any
@@ -2055,13 +2055,13 @@ function Cs(e, t, a, n, s, r) {
2055
2055
  r,
2056
2056
  O
2057
2057
  );
2058
- b !== t && (I = b);
2058
+ b !== t && (y = b);
2059
2059
  }
2060
2060
  R = S;
2061
2061
  }
2062
- return [I, p, g];
2062
+ return [y, p, g];
2063
2063
  }
2064
- function Fs(e, t, a, n, s, r) {
2064
+ function Ms(e, t, a, n, s, r) {
2065
2065
  const { messageCompiler: o, warnHtmlMessage: l } = e;
2066
2066
  if (pe(n)) {
2067
2067
  const p = n;
@@ -2075,17 +2075,17 @@ function Fs(e, t, a, n, s, r) {
2075
2075
  process.env.NODE_ENV !== "production" && Ne && (i = window.performance.now(), c = "intlify-message-compilation-start", m = "intlify-message-compilation-end", fe && fe(c));
2076
2076
  const g = o(n, yl(e, a, s, n, l, r));
2077
2077
  if (process.env.NODE_ENV !== "production" && Ne) {
2078
- const p = window.performance.now(), I = e.__v_emitter;
2079
- I && i && I.emit("message-compilation", {
2078
+ const p = window.performance.now(), y = e.__v_emitter;
2079
+ y && i && y.emit("message-compilation", {
2080
2080
  type: "message-compilation",
2081
2081
  message: n,
2082
2082
  time: p - i,
2083
2083
  groupId: `translate:${t}`
2084
- }), c && m && fe && je && (fe(m), je("intlify message compilation", c, m));
2084
+ }), c && m && fe && Je && (fe(m), Je("intlify message compilation", c, m));
2085
2085
  }
2086
2086
  return g.locale = a, g.key = t, g.source = n, g;
2087
2087
  }
2088
- function bl(e, t, a) {
2088
+ function Il(e, t, a) {
2089
2089
  let n = null, s, r;
2090
2090
  process.env.NODE_ENV !== "production" && Ne && (n = window.performance.now(), s = "intlify-message-evaluation-start", r = "intlify-message-evaluation-end", fe && fe(s));
2091
2091
  const o = t(a);
@@ -2096,7 +2096,7 @@ function bl(e, t, a) {
2096
2096
  value: o,
2097
2097
  time: l - n,
2098
2098
  groupId: `translate:${t.key}`
2099
- }), s && r && fe && je && (fe(r), je("intlify message evaluation", s, r));
2099
+ }), s && r && fe && Je && (fe(r), Je("intlify message evaluation", s, r));
2100
2100
  }
2101
2101
  return o;
2102
2102
  }
@@ -2114,7 +2114,7 @@ function yl(e, t, a, n, s, r) {
2114
2114
  warnHtmlMessage: s,
2115
2115
  onError: (o) => {
2116
2116
  if (r && r(o), process.env.NODE_ENV !== "production") {
2117
- const l = Il(n), i = `Message compilation error: ${o.message}`, c = o.location && l && Br(l, o.location.start.offset, o.location.end.offset), m = e.__v_emitter;
2117
+ const l = Nl(n), i = `Message compilation error: ${o.message}`, c = o.location && l && jr(l, o.location.start.offset, o.location.end.offset), m = e.__v_emitter;
2118
2118
  m && l && m.emit("compile-error", {
2119
2119
  message: l,
2120
2120
  error: o.message,
@@ -2126,37 +2126,37 @@ ${c}` : i);
2126
2126
  } else
2127
2127
  throw o;
2128
2128
  },
2129
- onCacheKey: (o) => xr(t, a, o)
2129
+ onCacheKey: (o) => Vr(t, a, o)
2130
2130
  };
2131
2131
  }
2132
- function Il(e) {
2132
+ function Nl(e) {
2133
2133
  if (A(e))
2134
2134
  return e;
2135
2135
  if (e.loc && e.loc.source)
2136
2136
  return e.loc.source;
2137
2137
  }
2138
- function Nl(e, t, a, n) {
2138
+ function Sl(e, t, a, n) {
2139
2139
  const { modifiers: s, pluralRules: r, messageResolver: o, fallbackLocale: l, fallbackWarn: i, missingWarn: c, fallbackContext: m } = e, p = {
2140
2140
  locale: t,
2141
2141
  modifiers: s,
2142
2142
  pluralRules: r,
2143
- messages: (I, R) => {
2144
- let S = o(a, I);
2143
+ messages: (y, R) => {
2144
+ let S = o(a, y);
2145
2145
  if (S == null && (m || R)) {
2146
- const [, , O] = Cs(
2146
+ const [, , O] = Fs(
2147
2147
  m || e,
2148
2148
  // NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
2149
- I,
2149
+ y,
2150
2150
  t,
2151
2151
  l,
2152
2152
  i,
2153
2153
  c
2154
2154
  );
2155
- S = o(O, I);
2155
+ S = o(O, y);
2156
2156
  }
2157
2157
  if (A(S) || he(S)) {
2158
2158
  let O = !1;
2159
- const _ = Fs(e, I, t, S, I, () => {
2159
+ const _ = Ms(e, y, t, S, y, () => {
2160
2160
  O = !0;
2161
2161
  });
2162
2162
  return O ? jn : _;
@@ -2165,23 +2165,23 @@ function Nl(e, t, a, n) {
2165
2165
  };
2166
2166
  return e.processor && (p.processor = e.processor), n.list && (p.list = n.list), n.named && (p.named = n.named), ee(n.plural) && (p.pluralIndex = n.plural), p;
2167
2167
  }
2168
- No();
2169
- function Sl() {
2170
- return Ms().__VUE_DEVTOOLS_GLOBAL_HOOK__;
2168
+ So();
2169
+ function Tl() {
2170
+ return Us().__VUE_DEVTOOLS_GLOBAL_HOOK__;
2171
2171
  }
2172
- function Ms() {
2172
+ function Us() {
2173
2173
  return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
2174
2174
  }
2175
- const Tl = typeof Proxy == "function", Ll = "devtools-plugin:setup", Ol = "plugin:settings:set";
2176
- let Ze, Ya;
2177
- function Al() {
2175
+ const Ll = typeof Proxy == "function", Ol = "devtools-plugin:setup", Al = "plugin:settings:set";
2176
+ let et, Ya;
2177
+ function Pl() {
2178
2178
  var e;
2179
- return Ze !== void 0 || (typeof window < "u" && window.performance ? (Ze = !0, Ya = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (Ze = !0, Ya = globalThis.perf_hooks.performance) : Ze = !1), Ze;
2179
+ return et !== void 0 || (typeof window < "u" && window.performance ? (et = !0, Ya = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (et = !0, Ya = globalThis.perf_hooks.performance) : et = !1), et;
2180
2180
  }
2181
- function Pl() {
2182
- return Al() ? Ya.now() : Date.now();
2181
+ function Rl() {
2182
+ return Pl() ? Ya.now() : Date.now();
2183
2183
  }
2184
- class Rl {
2184
+ class wl {
2185
2185
  constructor(t, a) {
2186
2186
  this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = a;
2187
2187
  const n = {};
@@ -2209,9 +2209,9 @@ class Rl {
2209
2209
  r = o;
2210
2210
  },
2211
2211
  now() {
2212
- return Pl();
2212
+ return Rl();
2213
2213
  }
2214
- }, a && a.on(Ol, (o, l) => {
2214
+ }, a && a.on(Al, (o, l) => {
2215
2215
  o === this.plugin.id && this.fallbacks.setSettings(l);
2216
2216
  }), this.proxiedOn = new Proxy({}, {
2217
2217
  get: (o, l) => this.target ? this.target.on[l] : (...i) => {
@@ -2243,12 +2243,12 @@ class Rl {
2243
2243
  a.resolve(await this.target[a.method](...a.args));
2244
2244
  }
2245
2245
  }
2246
- function wl(e, t) {
2247
- const a = e, n = Ms(), s = Sl(), r = Tl && a.enableEarlyProxy;
2246
+ function kl(e, t) {
2247
+ const a = e, n = Us(), s = Tl(), r = Ll && a.enableEarlyProxy;
2248
2248
  if (s && (n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !r))
2249
- s.emit(Ll, e, t);
2249
+ s.emit(Ol, e, t);
2250
2250
  else {
2251
- const o = r ? new Rl(a, s) : null;
2251
+ const o = r ? new wl(a, s) : null;
2252
2252
  (n.__VUE_DEVTOOLS_PLUGINS__ = n.__VUE_DEVTOOLS_PLUGINS__ || []).push({
2253
2253
  pluginDescriptor: a,
2254
2254
  setupFn: t,
@@ -2261,13 +2261,13 @@ function wl(e, t) {
2261
2261
  * (c) 2025 kazuya kawaguchi
2262
2262
  * Released under the MIT License.
2263
2263
  */
2264
- const kl = "11.2.7";
2265
- function Dl() {
2266
- typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (We().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (We().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (We().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (We().__INTLIFY_PROD_DEVTOOLS__ = !1);
2264
+ const Dl = "11.2.7";
2265
+ function Cl() {
2266
+ typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Ge().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Ge().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Ge().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Ge().__INTLIFY_PROD_DEVTOOLS__ = !1);
2267
2267
  }
2268
2268
  const Y = {
2269
2269
  // composer module errors
2270
- UNEXPECTED_RETURN_TYPE: $o,
2270
+ UNEXPECTED_RETURN_TYPE: Ho,
2271
2271
  // 24
2272
2272
  // legacy module errors
2273
2273
  INVALID_ARGUMENT: 25,
@@ -2288,9 +2288,9 @@ const Y = {
2288
2288
  NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
2289
2289
  };
2290
2290
  function ue(e, ...t) {
2291
- return dt(e, null, process.env.NODE_ENV !== "production" ? { messages: Cl, args: t } : void 0);
2291
+ return mt(e, null, process.env.NODE_ENV !== "production" ? { messages: Fl, args: t } : void 0);
2292
2292
  }
2293
- const Cl = {
2293
+ const Fl = {
2294
2294
  [Y.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
2295
2295
  [Y.INVALID_ARGUMENT]: "Invalid argument",
2296
2296
  [Y.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
@@ -2302,8 +2302,8 @@ const Cl = {
2302
2302
  [Y.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
2303
2303
  [Y.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
2304
2304
  [Y.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
2305
- }, Ba = /* @__PURE__ */ Oe("__translateVNode"), ja = /* @__PURE__ */ Oe("__datetimeParts"), Ja = /* @__PURE__ */ Oe("__numberParts"), Qe = /* @__PURE__ */ Oe("__enableEmitter"), Lt = /* @__PURE__ */ Oe("__disableEmitter"), Us = Oe("__setPluralRules"), xs = /* @__PURE__ */ Oe("__injectWithOption"), Qa = /* @__PURE__ */ Oe("__dispose"), _e = {
2306
- FALLBACK_TO_ROOT: Zo,
2305
+ }, Ba = /* @__PURE__ */ Oe("__translateVNode"), ja = /* @__PURE__ */ Oe("__datetimeParts"), Ja = /* @__PURE__ */ Oe("__numberParts"), Xe = /* @__PURE__ */ Oe("__enableEmitter"), Ot = /* @__PURE__ */ Oe("__disableEmitter"), xs = Oe("__setPluralRules"), Vs = /* @__PURE__ */ Oe("__injectWithOption"), Qa = /* @__PURE__ */ Oe("__dispose"), _e = {
2306
+ FALLBACK_TO_ROOT: el,
2307
2307
  // 8
2308
2308
  NOT_FOUND_PARENT_SCOPE: 9,
2309
2309
  IGNORE_OBJ_FLATTEN: 10,
@@ -2317,7 +2317,7 @@ const Cl = {
2317
2317
  DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 12,
2318
2318
  // duplicate `useI18n` calling
2319
2319
  DUPLICATE_USE_I18N_CALLING: 13
2320
- }, Fl = {
2320
+ }, Ml = {
2321
2321
  [_e.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
2322
2322
  [_e.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
2323
2323
  [_e.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
@@ -2332,16 +2332,16 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
2332
2332
  [_e.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]: "'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",
2333
2333
  [_e.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."
2334
2334
  };
2335
- function it(e, ...t) {
2336
- return na(Fl[e], ...t);
2335
+ function ct(e, ...t) {
2336
+ return na(Ml[e], ...t);
2337
2337
  }
2338
- function Ot(e) {
2338
+ function At(e) {
2339
2339
  if (!U(e) || he(e))
2340
2340
  return e;
2341
2341
  for (const t in e)
2342
2342
  if (be(e, t))
2343
2343
  if (!t.includes("."))
2344
- U(e[t]) && Ot(e[t]);
2344
+ U(e[t]) && At(e[t]);
2345
2345
  else {
2346
2346
  const a = t.split("."), n = a.length - 1;
2347
2347
  let s = e, r = !1;
@@ -2349,16 +2349,16 @@ function Ot(e) {
2349
2349
  if (a[o] === "__proto__")
2350
2350
  throw new Error(`unsafe key: ${a[o]}`);
2351
2351
  if (a[o] in s || (s[a[o]] = W()), !U(s[a[o]])) {
2352
- process.env.NODE_ENV !== "production" && Le(it(_e.IGNORE_OBJ_FLATTEN, {
2352
+ process.env.NODE_ENV !== "production" && Le(ct(_e.IGNORE_OBJ_FLATTEN, {
2353
2353
  key: a[o]
2354
2354
  })), r = !0;
2355
2355
  break;
2356
2356
  }
2357
2357
  s = s[a[o]];
2358
2358
  }
2359
- if (r || (he(s) ? Is.includes(a[n]) || delete e[t] : (s[a[n]] = e[t], delete e[t])), !he(s)) {
2359
+ if (r || (he(s) ? Ns.includes(a[n]) || delete e[t] : (s[a[n]] = e[t], delete e[t])), !he(s)) {
2360
2360
  const o = s[a[n]];
2361
- U(o) && Ot(o);
2361
+ U(o) && At(o);
2362
2362
  }
2363
2363
  }
2364
2364
  return e;
@@ -2368,18 +2368,18 @@ function mn(e, t) {
2368
2368
  if (J(n) && n.forEach((l) => {
2369
2369
  if ("locale" in l && "resource" in l) {
2370
2370
  const { locale: i, resource: c } = l;
2371
- i ? (o[i] = o[i] || W(), Bt(c, o[i])) : Bt(c, o);
2371
+ i ? (o[i] = o[i] || W(), jt(c, o[i])) : jt(c, o);
2372
2372
  } else
2373
- A(l) && Bt(JSON.parse(l), o);
2373
+ A(l) && jt(JSON.parse(l), o);
2374
2374
  }), s == null && r)
2375
2375
  for (const l in o)
2376
- be(o, l) && Ot(o[l]);
2376
+ be(o, l) && At(o[l]);
2377
2377
  return o;
2378
2378
  }
2379
- function Vs(e) {
2379
+ function $s(e) {
2380
2380
  return e.type;
2381
2381
  }
2382
- function $s(e, t, a) {
2382
+ function Hs(e, t, a) {
2383
2383
  let n = U(t.messages) ? t.messages : W();
2384
2384
  "__i18nGlobal" in a && (n = mn(e.locale.value, {
2385
2385
  messages: n,
@@ -2405,39 +2405,39 @@ function $s(e, t, a) {
2405
2405
  }
2406
2406
  }
2407
2407
  function Qn(e) {
2408
- return Ye(gr, null, e, 0);
2408
+ return Be(hr, null, e, 0);
2409
2409
  }
2410
- function st() {
2410
+ function rt() {
2411
2411
  const e = "currentInstance";
2412
2412
  return e in wa ? wa[e] : wa.getCurrentInstance();
2413
2413
  }
2414
- const Xn = "__INTLIFY_META__", qn = () => [], Ml = () => !1;
2414
+ const Xn = "__INTLIFY_META__", qn = () => [], Ul = () => !1;
2415
2415
  let zn = 0;
2416
2416
  function Zn(e) {
2417
- return ((t, a, n, s) => e(a, n, st() || void 0, s));
2417
+ return ((t, a, n, s) => e(a, n, rt() || void 0, s));
2418
2418
  }
2419
- const Ul = /* @__NO_SIDE_EFFECTS__ */ () => {
2420
- const e = st();
2419
+ const xl = /* @__NO_SIDE_EFFECTS__ */ () => {
2420
+ const e = rt();
2421
2421
  let t = null;
2422
- return e && (t = Vs(e)[Xn]) ? { [Xn]: t } : null;
2422
+ return e && (t = $s(e)[Xn]) ? { [Xn]: t } : null;
2423
2423
  };
2424
2424
  function pn(e = {}) {
2425
2425
  const { __root: t, __injectWithOption: a } = e, n = t === void 0, s = e.flatJson, r = Ne ? w : ke;
2426
2426
  let o = x(e.inheritLocale) ? e.inheritLocale : !0;
2427
2427
  const l = r(
2428
2428
  // prettier-ignore
2429
- t && o ? t.locale.value : A(e.locale) ? e.locale : Tt
2429
+ t && o ? t.locale.value : A(e.locale) ? e.locale : Lt
2430
2430
  ), i = r(
2431
2431
  // prettier-ignore
2432
2432
  t && o ? t.fallbackLocale.value : A(e.fallbackLocale) || J(e.fallbackLocale) || F(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l.value
2433
2433
  ), c = r(mn(l.value, e)), m = r(F(e.datetimeFormats) ? e.datetimeFormats : { [l.value]: {} }), g = r(F(e.numberFormats) ? e.numberFormats : { [l.value]: {} });
2434
- let p = t ? t.missingWarn : x(e.missingWarn) || ot(e.missingWarn) ? e.missingWarn : !0, I = t ? t.fallbackWarn : x(e.fallbackWarn) || ot(e.fallbackWarn) ? e.fallbackWarn : !0, R = t ? t.fallbackRoot : x(e.fallbackRoot) ? e.fallbackRoot : !0, S = !!e.fallbackFormat, O = G(e.missing) ? e.missing : null, d = G(e.missing) ? Zn(e.missing) : null, _ = G(e.postTranslation) ? e.postTranslation : null, y = t ? t.warnHtmlMessage : x(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, E = !!e.escapeParameter;
2434
+ let p = t ? t.missingWarn : x(e.missingWarn) || lt(e.missingWarn) ? e.missingWarn : !0, y = t ? t.fallbackWarn : x(e.fallbackWarn) || lt(e.fallbackWarn) ? e.fallbackWarn : !0, R = t ? t.fallbackRoot : x(e.fallbackRoot) ? e.fallbackRoot : !0, S = !!e.fallbackFormat, O = G(e.missing) ? e.missing : null, d = G(e.missing) ? Zn(e.missing) : null, _ = G(e.postTranslation) ? e.postTranslation : null, I = t ? t.warnHtmlMessage : x(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, E = !!e.escapeParameter;
2435
2435
  const b = t ? t.modifiers : F(e.modifiers) ? e.modifiers : {};
2436
2436
  let L = e.pluralRules || t && t.pluralRules, v;
2437
2437
  v = (() => {
2438
2438
  n && Vn(null);
2439
2439
  const h = {
2440
- version: kl,
2440
+ version: Dl,
2441
2441
  locale: l.value,
2442
2442
  fallbackLocale: i.value,
2443
2443
  messages: c.value,
@@ -2445,20 +2445,20 @@ function pn(e = {}) {
2445
2445
  pluralRules: L,
2446
2446
  missing: d === null ? void 0 : d,
2447
2447
  missingWarn: p,
2448
- fallbackWarn: I,
2448
+ fallbackWarn: y,
2449
2449
  fallbackFormat: S,
2450
2450
  unresolving: !0,
2451
2451
  postTranslation: _ === null ? void 0 : _,
2452
- warnHtmlMessage: y,
2452
+ warnHtmlMessage: I,
2453
2453
  escapeParameter: E,
2454
2454
  messageResolver: e.messageResolver,
2455
2455
  messageCompiler: e.messageCompiler,
2456
2456
  __meta: { framework: "vue" }
2457
2457
  };
2458
2458
  h.datetimeFormats = m.value, h.numberFormats = g.value, h.__datetimeFormatters = F(v) ? v.__datetimeFormatters : void 0, h.__numberFormatters = F(v) ? v.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (h.__v_emitter = F(v) ? v.__v_emitter : void 0);
2459
- const T = cl(h);
2459
+ const T = ul(h);
2460
2460
  return n && Vn(T), T;
2461
- })(), Et(v, l.value, i.value);
2461
+ })(), vt(v, l.value, i.value);
2462
2462
  function M() {
2463
2463
  return [
2464
2464
  l.value,
@@ -2468,17 +2468,17 @@ function pn(e = {}) {
2468
2468
  g.value
2469
2469
  ];
2470
2470
  }
2471
- const K = et({
2471
+ const K = tt({
2472
2472
  get: () => l.value,
2473
2473
  set: (h) => {
2474
2474
  v.locale = h, l.value = h;
2475
2475
  }
2476
- }), Ee = et({
2476
+ }), Ee = tt({
2477
2477
  get: () => i.value,
2478
2478
  set: (h) => {
2479
- v.fallbackLocale = h, i.value = h, Et(v, l.value, h);
2479
+ v.fallbackLocale = h, i.value = h, vt(v, l.value, h);
2480
2480
  }
2481
- }), Q = et(() => c.value), qe = /* @__PURE__ */ et(() => m.value), ga = /* @__PURE__ */ et(() => g.value);
2481
+ }), Q = tt(() => c.value), ze = /* @__PURE__ */ tt(() => m.value), ga = /* @__PURE__ */ tt(() => g.value);
2482
2482
  function ha() {
2483
2483
  return G(_) ? _ : null;
2484
2484
  }
@@ -2491,47 +2491,47 @@ function pn(e = {}) {
2491
2491
  function ba(h) {
2492
2492
  h !== null && (d = Zn(h)), O = h, v.missing = d;
2493
2493
  }
2494
- function ya(h, T) {
2494
+ function Ia(h, T) {
2495
2495
  return h !== "translate" || !T.resolvedMessage;
2496
2496
  }
2497
- const Ae = (h, T, H, z, $e, $t) => {
2497
+ const Ae = (h, T, H, z, He, Ht) => {
2498
2498
  M();
2499
- let ze;
2499
+ let Ze;
2500
2500
  try {
2501
- process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, n || (v.fallbackContext = t ? il() : void 0), ze = h(v);
2501
+ process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, n || (v.fallbackContext = t ? cl() : void 0), Ze = h(v);
2502
2502
  } finally {
2503
2503
  process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, n || (v.fallbackContext = void 0);
2504
2504
  }
2505
2505
  if (H !== "translate exists" && // for not `te` (e.g `t`)
2506
- ee(ze) && ze === ra || H === "translate exists" && !ze) {
2507
- const [He, fr] = T();
2508
- if (process.env.NODE_ENV !== "production" && t && A(He) && ya(H, fr) && (R && (oa(I, He) || Ps(p, He)) && Le(it(_e.FALLBACK_TO_ROOT, {
2509
- key: He,
2506
+ ee(Ze) && Ze === ra || H === "translate exists" && !Ze) {
2507
+ const [We, dr] = T();
2508
+ if (process.env.NODE_ENV !== "production" && t && A(We) && Ia(H, dr) && (R && (oa(y, We) || Rs(p, We)) && Le(ct(_e.FALLBACK_TO_ROOT, {
2509
+ key: We,
2510
2510
  type: H
2511
2511
  })), process.env.NODE_ENV !== "production")) {
2512
2512
  const { __v_emitter: Nn } = v;
2513
2513
  Nn && R && Nn.emit("fallback", {
2514
2514
  type: H,
2515
- key: He,
2515
+ key: We,
2516
2516
  to: "global",
2517
- groupId: `${H}:${He}`
2517
+ groupId: `${H}:${We}`
2518
2518
  });
2519
2519
  }
2520
- return t && R ? z(t) : $e(He);
2520
+ return t && R ? z(t) : He(We);
2521
2521
  } else {
2522
- if ($t(ze))
2523
- return ze;
2522
+ if (Ht(Ze))
2523
+ return Ze;
2524
2524
  throw ue(Y.UNEXPECTED_RETURN_TYPE);
2525
2525
  }
2526
2526
  };
2527
- function pt(...h) {
2527
+ function _t(...h) {
2528
2528
  return Ae((T) => Reflect.apply(Jn, null, [T, ...h]), () => Ka(...h), "translate", (T) => Reflect.apply(T.t, T, [...h]), (T) => T, (T) => A(T));
2529
2529
  }
2530
- function Ia(...h) {
2530
+ function ya(...h) {
2531
2531
  const [T, H, z] = h;
2532
2532
  if (z && !U(z))
2533
2533
  throw ue(Y.INVALID_ARGUMENT);
2534
- return pt(T, H, te({ resolvedMessage: !0 }, z || {}));
2534
+ return _t(T, H, te({ resolvedMessage: !0 }, z || {}));
2535
2535
  }
2536
2536
  function Na(...h) {
2537
2537
  return Ae((T) => Reflect.apply(Wn, null, [T, ...h]), () => Wa(...h), "datetime format", (T) => Reflect.apply(T.d, T, [...h]), () => Xt, (T) => A(T) || J(T));
@@ -2547,7 +2547,7 @@ function pn(e = {}) {
2547
2547
  interpolate: (h) => h,
2548
2548
  type: "vnode"
2549
2549
  };
2550
- function xt(...h) {
2550
+ function Vt(...h) {
2551
2551
  return Ae((T) => {
2552
2552
  let H;
2553
2553
  const z = T;
@@ -2562,7 +2562,7 @@ function pn(e = {}) {
2562
2562
  function Oa(...h) {
2563
2563
  return Ae((T) => Reflect.apply(Kn, null, [T, ...h]), () => Ga(...h), "number format", (T) => T[Ja](...h), qn, (T) => A(T) || J(T));
2564
2564
  }
2565
- function Vt(...h) {
2565
+ function $t(...h) {
2566
2566
  return Ae((T) => Reflect.apply(Wn, null, [T, ...h]), () => Wa(...h), "datetime format", (T) => T[ja](...h), qn, (T) => A(T) || J(T));
2567
2567
  }
2568
2568
  function Aa(h) {
@@ -2572,34 +2572,34 @@ function pn(e = {}) {
2572
2572
  return Ae(() => {
2573
2573
  if (!h)
2574
2574
  return !1;
2575
- const H = A(T) ? T : l.value, z = Ve(H), $e = v.messageResolver(z, h);
2576
- return he($e) || pe($e) || A($e);
2577
- }, () => [h], "translate exists", (H) => Reflect.apply(H.te, H, [h, T]), Ml, (H) => x(H));
2575
+ const H = A(T) ? T : l.value, z = $e(H), He = v.messageResolver(z, h);
2576
+ return he(He) || pe(He) || A(He);
2577
+ }, () => [h], "translate exists", (H) => Reflect.apply(H.te, H, [h, T]), Ul, (H) => x(H));
2578
2578
  }
2579
- function _t(h) {
2579
+ function gt(h) {
2580
2580
  let T = null;
2581
- const H = Ns(v, i.value, l.value);
2581
+ const H = Ss(v, i.value, l.value);
2582
2582
  for (let z = 0; z < H.length; z++) {
2583
- const $e = c.value[H[z]] || {}, $t = v.messageResolver($e, h);
2584
- if ($t != null) {
2585
- T = $t;
2583
+ const He = c.value[H[z]] || {}, Ht = v.messageResolver(He, h);
2584
+ if (Ht != null) {
2585
+ T = Ht;
2586
2586
  break;
2587
2587
  }
2588
2588
  }
2589
2589
  return T;
2590
2590
  }
2591
- function gt(h) {
2592
- const T = _t(h);
2591
+ function ht(h) {
2592
+ const T = gt(h);
2593
2593
  return T ?? (t ? t.tm(h) || {} : {});
2594
2594
  }
2595
- function Ve(h) {
2595
+ function $e(h) {
2596
2596
  return c.value[h] || {};
2597
2597
  }
2598
- function ht(h, T) {
2598
+ function Et(h, T) {
2599
2599
  if (s) {
2600
2600
  const H = { [h]: T };
2601
2601
  for (const z in H)
2602
- be(H, z) && Ot(H[z]);
2602
+ be(H, z) && At(H[z]);
2603
2603
  T = H[h];
2604
2604
  }
2605
2605
  c.value[h] = T, v.messages = c.value;
@@ -2609,8 +2609,8 @@ function pn(e = {}) {
2609
2609
  const H = { [h]: T };
2610
2610
  if (s)
2611
2611
  for (const z in H)
2612
- be(H, z) && Ot(H[z]);
2613
- T = H[h], Bt(T, c.value[h]), v.messages = c.value;
2612
+ be(H, z) && At(H[z]);
2613
+ T = H[h], jt(T, c.value[h]), v.messages = c.value;
2614
2614
  }
2615
2615
  function u(h) {
2616
2616
  return m.value[h] || {};
@@ -2631,9 +2631,9 @@ function pn(e = {}) {
2631
2631
  g.value[h] = te(g.value[h] || {}, T), v.numberFormats = g.value, Yn(v, h, T);
2632
2632
  }
2633
2633
  zn++, t && Ne && (B(t.locale, (h) => {
2634
- o && (l.value = h, v.locale = h, Et(v, l.value, i.value));
2634
+ o && (l.value = h, v.locale = h, vt(v, l.value, i.value));
2635
2635
  }), B(t.fallbackLocale, (h) => {
2636
- o && (i.value = h, v.fallbackLocale = h, Et(v, l.value, i.value));
2636
+ o && (i.value = h, v.fallbackLocale = h, vt(v, l.value, i.value));
2637
2637
  }));
2638
2638
  const V = {
2639
2639
  id: zn,
@@ -2643,7 +2643,7 @@ function pn(e = {}) {
2643
2643
  return o;
2644
2644
  },
2645
2645
  set inheritLocale(h) {
2646
- o = h, h && t && (l.value = t.locale.value, i.value = t.fallbackLocale.value, Et(v, l.value, i.value));
2646
+ o = h, h && t && (l.value = t.locale.value, i.value = t.fallbackLocale.value, vt(v, l.value, i.value));
2647
2647
  },
2648
2648
  get availableLocales() {
2649
2649
  return Object.keys(c.value).sort();
@@ -2665,10 +2665,10 @@ function pn(e = {}) {
2665
2665
  p = h, v.missingWarn = p;
2666
2666
  },
2667
2667
  get fallbackWarn() {
2668
- return I;
2668
+ return y;
2669
2669
  },
2670
2670
  set fallbackWarn(h) {
2671
- I = h, v.fallbackWarn = I;
2671
+ y = h, v.fallbackWarn = y;
2672
2672
  },
2673
2673
  get fallbackRoot() {
2674
2674
  return R;
@@ -2683,10 +2683,10 @@ function pn(e = {}) {
2683
2683
  S = h, v.fallbackFormat = S;
2684
2684
  },
2685
2685
  get warnHtmlMessage() {
2686
- return y;
2686
+ return I;
2687
2687
  },
2688
2688
  set warnHtmlMessage(h) {
2689
- y = h, v.warnHtmlMessage = h;
2689
+ I = h, v.warnHtmlMessage = h;
2690
2690
  },
2691
2691
  get escapeParameter() {
2692
2692
  return E;
@@ -2694,76 +2694,76 @@ function pn(e = {}) {
2694
2694
  set escapeParameter(h) {
2695
2695
  E = h, v.escapeParameter = h;
2696
2696
  },
2697
- t: pt,
2698
- getLocaleMessage: Ve,
2699
- setLocaleMessage: ht,
2697
+ t: _t,
2698
+ getLocaleMessage: $e,
2699
+ setLocaleMessage: Et,
2700
2700
  mergeLocaleMessage: Ra,
2701
2701
  getPostTranslationHandler: ha,
2702
2702
  setPostTranslationHandler: Ea,
2703
2703
  getMissingHandler: va,
2704
2704
  setMissingHandler: ba,
2705
- [Us]: Aa
2705
+ [xs]: Aa
2706
2706
  };
2707
- return V.datetimeFormats = qe, V.numberFormats = ga, V.rt = Ia, V.te = Pa, V.tm = gt, V.d = Na, V.n = Sa, V.getDateTimeFormat = u, V.setDateTimeFormat = f, V.mergeDateTimeFormat = N, V.getNumberFormat = k, V.setNumberFormat = j, V.mergeNumberFormat = q, V[xs] = a, V[Ba] = xt, V[ja] = Vt, V[Ja] = Oa, process.env.NODE_ENV !== "production" && (V[Qe] = (h) => {
2707
+ return V.datetimeFormats = ze, V.numberFormats = ga, V.rt = ya, V.te = Pa, V.tm = ht, V.d = Na, V.n = Sa, V.getDateTimeFormat = u, V.setDateTimeFormat = f, V.mergeDateTimeFormat = N, V.getNumberFormat = k, V.setNumberFormat = j, V.mergeNumberFormat = q, V[Vs] = a, V[Ba] = Vt, V[ja] = $t, V[Ja] = Oa, process.env.NODE_ENV !== "production" && (V[Xe] = (h) => {
2708
2708
  v.__v_emitter = h;
2709
- }, V[Lt] = () => {
2709
+ }, V[Ot] = () => {
2710
2710
  v.__v_emitter = void 0;
2711
2711
  }), V;
2712
2712
  }
2713
- const Hs = "vue-i18n: composer properties", Ua = {
2713
+ const Ws = "vue-i18n: composer properties", Ua = {
2714
2714
  "vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
2715
2715
  "vue-i18n-resource-inspector": "Vue I18n DevTools",
2716
2716
  "vue-i18n-timeline": "Vue I18n"
2717
- }, xl = {
2718
- "vue-i18n-resource-inspector": "Search for scopes ..."
2719
2717
  }, Vl = {
2718
+ "vue-i18n-resource-inspector": "Search for scopes ..."
2719
+ }, $l = {
2720
2720
  "vue-i18n-timeline": 16764185
2721
2721
  };
2722
2722
  let Xa;
2723
- async function $l(e, t) {
2723
+ async function Hl(e, t) {
2724
2724
  return new Promise((a, n) => {
2725
2725
  try {
2726
- wl({
2726
+ kl({
2727
2727
  id: "vue-devtools-plugin-vue-i18n",
2728
2728
  label: Ua["vue-devtools-plugin-vue-i18n"],
2729
2729
  packageName: "vue-i18n",
2730
2730
  homepage: "https://vue-i18n.intlify.dev",
2731
2731
  logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
2732
- componentStateTypes: [Hs],
2732
+ componentStateTypes: [Ws],
2733
2733
  app: e
2734
2734
  // eslint-disable-line @typescript-eslint/no-explicit-any
2735
2735
  }, (s) => {
2736
2736
  Xa = s, s.on.visitComponentTree(({ componentInstance: o, treeNode: l }) => {
2737
- Hl(o, l, t);
2737
+ Wl(o, l, t);
2738
2738
  }), s.on.inspectComponent(({ componentInstance: o, instanceData: l }) => {
2739
2739
  o.__VUE_I18N__ && l && (t.mode === "legacy" ? o.__VUE_I18N__ !== t.global.__composer && es(l, o.__VUE_I18N__) : es(l, o.__VUE_I18N__));
2740
2740
  }), s.addInspector({
2741
2741
  id: "vue-i18n-resource-inspector",
2742
2742
  label: Ua["vue-i18n-resource-inspector"],
2743
2743
  icon: "language",
2744
- treeFilterPlaceholder: xl["vue-i18n-resource-inspector"]
2744
+ treeFilterPlaceholder: Vl["vue-i18n-resource-inspector"]
2745
2745
  }), s.on.getInspectorTree((o) => {
2746
- o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && Bl(o, t);
2746
+ o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && jl(o, t);
2747
2747
  });
2748
2748
  const r = /* @__PURE__ */ new Map();
2749
2749
  s.on.getInspectorState(async (o) => {
2750
2750
  if (o.app === e && o.inspectorId === "vue-i18n-resource-inspector")
2751
- if (s.unhighlightElement(), Jl(o, t), o.nodeId === "global") {
2751
+ if (s.unhighlightElement(), Ql(o, t), o.nodeId === "global") {
2752
2752
  if (!r.has(o.app)) {
2753
2753
  const [l] = await s.getComponentInstances(o.app);
2754
2754
  r.set(o.app, l);
2755
2755
  }
2756
2756
  s.highlightElement(r.get(o.app));
2757
2757
  } else {
2758
- const l = jl(o.nodeId, t);
2758
+ const l = Jl(o.nodeId, t);
2759
2759
  l && s.highlightElement(l);
2760
2760
  }
2761
2761
  }), s.on.editInspectorState((o) => {
2762
- o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && Xl(o, t);
2762
+ o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && ql(o, t);
2763
2763
  }), s.addTimelineLayer({
2764
2764
  id: "vue-i18n-timeline",
2765
2765
  label: Ua["vue-i18n-timeline"],
2766
- color: Vl["vue-i18n-timeline"]
2766
+ color: $l["vue-i18n-timeline"]
2767
2767
  }), a(!0);
2768
2768
  });
2769
2769
  } catch (s) {
@@ -2771,14 +2771,14 @@ async function $l(e, t) {
2771
2771
  }
2772
2772
  });
2773
2773
  }
2774
- function Ws(e) {
2774
+ function Gs(e) {
2775
2775
  return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
2776
2776
  }
2777
- function Hl(e, t, a) {
2777
+ function Wl(e, t, a) {
2778
2778
  const n = a.mode === "composition" ? a.global : a.global.__composer;
2779
2779
  if (e && e.__VUE_I18N__ && e.__VUE_I18N__ !== n) {
2780
2780
  const s = {
2781
- label: `i18n (${Ws(e)} Scope)`,
2781
+ label: `i18n (${Gs(e)} Scope)`,
2782
2782
  textColor: 0,
2783
2783
  backgroundColor: 16764185
2784
2784
  };
@@ -2786,7 +2786,7 @@ function Hl(e, t, a) {
2786
2786
  }
2787
2787
  }
2788
2788
  function es(e, t) {
2789
- const a = Hs;
2789
+ const a = Ws;
2790
2790
  e.state.push({
2791
2791
  type: a,
2792
2792
  key: "locale",
@@ -2828,30 +2828,30 @@ function _n(e) {
2828
2828
  const t = {};
2829
2829
  return Object.keys(e).forEach((a) => {
2830
2830
  const n = e[a];
2831
- G(n) && "source" in n ? t[a] = Yl(n) : he(n) && n.loc && n.loc.source ? t[a] = n.loc.source : U(n) ? t[a] = _n(n) : t[a] = n;
2831
+ G(n) && "source" in n ? t[a] = Bl(n) : he(n) && n.loc && n.loc.source ? t[a] = n.loc.source : U(n) ? t[a] = _n(n) : t[a] = n;
2832
2832
  }), t;
2833
2833
  }
2834
- const Wl = {
2834
+ const Gl = {
2835
2835
  "<": "&lt;",
2836
2836
  ">": "&gt;",
2837
2837
  '"': "&quot;",
2838
2838
  "&": "&amp;"
2839
2839
  };
2840
- function Gl(e) {
2841
- return e.replace(/[<>"&]/g, Kl);
2842
- }
2843
2840
  function Kl(e) {
2844
- return Wl[e] || e;
2841
+ return e.replace(/[<>"&]/g, Yl);
2845
2842
  }
2846
2843
  function Yl(e) {
2844
+ return Gl[e] || e;
2845
+ }
2846
+ function Bl(e) {
2847
2847
  return {
2848
2848
  _custom: {
2849
2849
  type: "function",
2850
- display: `<span>ƒ</span> ${e.source ? `("${Gl(e.source)}")` : "(?)"}`
2850
+ display: `<span>ƒ</span> ${e.source ? `("${Kl(e.source)}")` : "(?)"}`
2851
2851
  }
2852
2852
  };
2853
2853
  }
2854
- function Bl(e, t) {
2854
+ function jl(e, t) {
2855
2855
  e.rootNodes.push({
2856
2856
  id: "global",
2857
2857
  label: "Global Scope"
@@ -2861,11 +2861,11 @@ function Bl(e, t) {
2861
2861
  const r = t.mode === "composition" ? s : s.__composer;
2862
2862
  a !== r && e.rootNodes.push({
2863
2863
  id: r.id.toString(),
2864
- label: `${Ws(n)} Scope`
2864
+ label: `${Gs(n)} Scope`
2865
2865
  });
2866
2866
  }
2867
2867
  }
2868
- function jl(e, t) {
2868
+ function Jl(e, t) {
2869
2869
  let a = null;
2870
2870
  if (e !== "global") {
2871
2871
  for (const [n, s] of t.__instances.entries())
@@ -2876,7 +2876,7 @@ function jl(e, t) {
2876
2876
  }
2877
2877
  return a;
2878
2878
  }
2879
- function Gs(e, t) {
2879
+ function Ks(e, t) {
2880
2880
  if (e === "global")
2881
2881
  return t.mode === "composition" ? t.global : t.global.__composer;
2882
2882
  {
@@ -2884,11 +2884,11 @@ function Gs(e, t) {
2884
2884
  return a ? t.mode === "composition" ? a : a.__composer : null;
2885
2885
  }
2886
2886
  }
2887
- function Jl(e, t) {
2888
- const a = Gs(e.nodeId, t);
2889
- return a && (e.state = Ql(a)), null;
2887
+ function Ql(e, t) {
2888
+ const a = Ks(e.nodeId, t);
2889
+ return a && (e.state = Xl(a)), null;
2890
2890
  }
2891
- function Ql(e) {
2891
+ function Xl(e) {
2892
2892
  const t = {}, a = "Locale related info", n = [
2893
2893
  {
2894
2894
  type: a,
@@ -2947,7 +2947,7 @@ function Ql(e) {
2947
2947
  }
2948
2948
  return t;
2949
2949
  }
2950
- function At(e, t) {
2950
+ function Pt(e, t) {
2951
2951
  if (Xa) {
2952
2952
  let a;
2953
2953
  t && "groupId" in t && (a = t.groupId, delete t.groupId), Xa.addTimelineEvent({
@@ -2963,15 +2963,15 @@ function At(e, t) {
2963
2963
  });
2964
2964
  }
2965
2965
  }
2966
- function Xl(e, t) {
2967
- const a = Gs(e.nodeId, t);
2966
+ function ql(e, t) {
2967
+ const a = Ks(e.nodeId, t);
2968
2968
  if (a) {
2969
2969
  const [n] = e.path;
2970
2970
  n === "locale" && A(e.state.value) ? a.locale.value = e.state.value : n === "fallbackLocale" && (A(e.state.value) || J(e.state.value) || U(e.state.value)) ? a.fallbackLocale.value = e.state.value : n === "inheritLocale" && x(e.state.value) && (a.inheritLocale = e.state.value);
2971
2971
  }
2972
2972
  }
2973
- function ql(e) {
2974
- const t = A(e.locale) ? e.locale : Tt, a = A(e.fallbackLocale) || J(e.fallbackLocale) || F(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, n = G(e.missing) ? e.missing : void 0, s = x(e.silentTranslationWarn) || ot(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, r = x(e.silentFallbackWarn) || ot(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = x(e.fallbackRoot) ? e.fallbackRoot : !0, l = !!e.formatFallbackMessages, i = F(e.modifiers) ? e.modifiers : {}, c = e.pluralizationRules, m = G(e.postTranslation) ? e.postTranslation : void 0, g = A(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, p = !!e.escapeParameterHtml, I = x(e.sync) ? e.sync : !0;
2973
+ function zl(e) {
2974
+ const t = A(e.locale) ? e.locale : Lt, a = A(e.fallbackLocale) || J(e.fallbackLocale) || F(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, n = G(e.missing) ? e.missing : void 0, s = x(e.silentTranslationWarn) || lt(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, r = x(e.silentFallbackWarn) || lt(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = x(e.fallbackRoot) ? e.fallbackRoot : !0, l = !!e.formatFallbackMessages, i = F(e.modifiers) ? e.modifiers : {}, c = e.pluralizationRules, m = G(e.postTranslation) ? e.postTranslation : void 0, g = A(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, p = !!e.escapeParameterHtml, y = x(e.sync) ? e.sync : !0;
2975
2975
  let R = e.messages;
2976
2976
  if (F(e.sharedMessages)) {
2977
2977
  const b = e.sharedMessages;
@@ -2980,14 +2980,14 @@ function ql(e) {
2980
2980
  return te(M, b[C]), v;
2981
2981
  }, R || {});
2982
2982
  }
2983
- const { __i18n: S, __root: O, __injectWithOption: d } = e, _ = e.datetimeFormats, y = e.numberFormats, E = e.flatJson;
2983
+ const { __i18n: S, __root: O, __injectWithOption: d } = e, _ = e.datetimeFormats, I = e.numberFormats, E = e.flatJson;
2984
2984
  return {
2985
2985
  locale: t,
2986
2986
  fallbackLocale: a,
2987
2987
  messages: R,
2988
2988
  flatJson: E,
2989
2989
  datetimeFormats: _,
2990
- numberFormats: y,
2990
+ numberFormats: I,
2991
2991
  missing: n,
2992
2992
  missingWarn: s,
2993
2993
  fallbackWarn: r,
@@ -2999,14 +2999,14 @@ function ql(e) {
2999
2999
  warnHtmlMessage: g,
3000
3000
  escapeParameter: p,
3001
3001
  messageResolver: e.messageResolver,
3002
- inheritLocale: I,
3002
+ inheritLocale: y,
3003
3003
  __i18n: S,
3004
3004
  __root: O,
3005
3005
  __injectWithOption: d
3006
3006
  };
3007
3007
  }
3008
3008
  function qa(e = {}) {
3009
- const t = pn(ql(e)), { __extender: a } = e, n = {
3009
+ const t = pn(zl(e)), { __extender: a } = e, n = {
3010
3010
  // id
3011
3011
  id: t.id,
3012
3012
  // locale
@@ -3168,16 +3168,16 @@ function qa(e = {}) {
3168
3168
  };
3169
3169
  return n.__extender = a, process.env.NODE_ENV !== "production" && (n.__enableEmitter = (s) => {
3170
3170
  const r = t;
3171
- r[Qe] && r[Qe](s);
3171
+ r[Xe] && r[Xe](s);
3172
3172
  }, n.__disableEmitter = () => {
3173
3173
  const s = t;
3174
- s[Lt] && s[Lt]();
3174
+ s[Ot] && s[Ot]();
3175
3175
  }), n;
3176
3176
  }
3177
- function zl(e, t, a) {
3177
+ function Zl(e, t, a) {
3178
3178
  return {
3179
3179
  beforeCreate() {
3180
- const n = st();
3180
+ const n = rt();
3181
3181
  if (!n)
3182
3182
  throw ue(Y.UNEXPECTED_ERROR);
3183
3183
  const s = this.$options;
@@ -3205,30 +3205,30 @@ function zl(e, t, a) {
3205
3205
  }
3206
3206
  else
3207
3207
  this.$i18n = e;
3208
- s.__i18nGlobal && $s(t, s, s), this.$t = (...r) => this.$i18n.t(...r), this.$rt = (...r) => this.$i18n.rt(...r), this.$te = (r, o) => this.$i18n.te(r, o), this.$d = (...r) => this.$i18n.d(...r), this.$n = (...r) => this.$i18n.n(...r), this.$tm = (r) => this.$i18n.tm(r), a.__setInstance(n, this.$i18n);
3208
+ s.__i18nGlobal && Hs(t, s, s), this.$t = (...r) => this.$i18n.t(...r), this.$rt = (...r) => this.$i18n.rt(...r), this.$te = (r, o) => this.$i18n.te(r, o), this.$d = (...r) => this.$i18n.d(...r), this.$n = (...r) => this.$i18n.n(...r), this.$tm = (r) => this.$i18n.tm(r), a.__setInstance(n, this.$i18n);
3209
3209
  },
3210
3210
  mounted() {
3211
3211
  if (process.env.NODE_ENV !== "production" && this.$i18n) {
3212
- const n = st();
3212
+ const n = rt();
3213
3213
  if (!n)
3214
3214
  return;
3215
3215
  const s = this.$i18n;
3216
3216
  n.__VUE_I18N__ = s.__composer;
3217
3217
  const r = this.__v_emitter = ln();
3218
- s.__enableEmitter && s.__enableEmitter(r), r.on("*", At);
3218
+ s.__enableEmitter && s.__enableEmitter(r), r.on("*", Pt);
3219
3219
  }
3220
3220
  },
3221
3221
  unmounted() {
3222
- const n = st();
3222
+ const n = rt();
3223
3223
  if (!n)
3224
3224
  throw ue(Y.UNEXPECTED_ERROR);
3225
3225
  const s = this.$i18n;
3226
- process.env.NODE_ENV !== "production" && n.__VUE_I18N__ && (this.__v_emitter && (this.__v_emitter.off("*", At), delete this.__v_emitter), this.$i18n && (s.__disableEmitter && s.__disableEmitter(), delete n.__VUE_I18N__)), delete this.$t, delete this.$rt, delete this.$te, delete this.$d, delete this.$n, delete this.$tm, s.__disposer && (s.__disposer(), delete s.__disposer, delete s.__extender), a.__deleteInstance(n), delete this.$i18n;
3226
+ process.env.NODE_ENV !== "production" && n.__VUE_I18N__ && (this.__v_emitter && (this.__v_emitter.off("*", Pt), delete this.__v_emitter), this.$i18n && (s.__disableEmitter && s.__disableEmitter(), delete n.__VUE_I18N__)), delete this.$t, delete this.$rt, delete this.$te, delete this.$d, delete this.$n, delete this.$tm, s.__disposer && (s.__disposer(), delete s.__disposer, delete s.__extender), a.__deleteInstance(n), delete this.$i18n;
3227
3227
  }
3228
3228
  };
3229
3229
  }
3230
3230
  function ts(e, t) {
3231
- 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[Us](t.pluralizationRules || e.pluralizationRules);
3231
+ 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[xs](t.pluralizationRules || e.pluralizationRules);
3232
3232
  const a = mn(e.locale, {
3233
3233
  messages: t.messages,
3234
3234
  __i18n: t.__i18n
@@ -3253,20 +3253,20 @@ const gn = {
3253
3253
  type: Object
3254
3254
  }
3255
3255
  };
3256
- function Zl({ slots: e }, t) {
3256
+ function ei({ slots: e }, t) {
3257
3257
  return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((n, s) => [
3258
3258
  ...n,
3259
3259
  // prettier-ignore
3260
- ...s.type === Ke ? s.children : [s]
3260
+ ...s.type === Ye ? s.children : [s]
3261
3261
  ], []) : t.reduce((a, n) => {
3262
3262
  const s = e[n];
3263
3263
  return s && (a[n] = s()), a;
3264
3264
  }, W());
3265
3265
  }
3266
- function Ks() {
3267
- return Ke;
3266
+ function Ys() {
3267
+ return Ye;
3268
3268
  }
3269
- const ei = /* @__PURE__ */ De({
3269
+ const ti = /* @__PURE__ */ De({
3270
3270
  /* eslint-disable */
3271
3271
  name: "i18n-t",
3272
3272
  props: te({
@@ -3289,31 +3289,31 @@ const ei = /* @__PURE__ */ De({
3289
3289
  return () => {
3290
3290
  const r = Object.keys(a).filter((g) => g[0] !== "_"), o = W();
3291
3291
  e.locale && (o.locale = e.locale), e.plural !== void 0 && (o.plural = A(e.plural) ? +e.plural : e.plural);
3292
- const l = Zl(t, r), i = s[Ba](e.keypath, l, o), c = te(W(), n), m = A(e.tag) || U(e.tag) ? e.tag : Ks();
3293
- return ye(m, c, i);
3292
+ const l = ei(t, r), i = s[Ba](e.keypath, l, o), c = te(W(), n), m = A(e.tag) || U(e.tag) ? e.tag : Ys();
3293
+ return Ie(m, c, i);
3294
3294
  };
3295
3295
  }
3296
- }), as = ei;
3297
- function ti(e) {
3296
+ }), as = ti;
3297
+ function ai(e) {
3298
3298
  return J(e) && !A(e[0]);
3299
3299
  }
3300
- function Ys(e, t, a, n) {
3300
+ function Bs(e, t, a, n) {
3301
3301
  const { slots: s, attrs: r } = t;
3302
3302
  return () => {
3303
3303
  const o = { part: !0 };
3304
3304
  let l = W();
3305
- e.locale && (o.locale = e.locale), A(e.format) ? o.key = e.format : U(e.format) && (A(e.format.key) && (o.key = e.format.key), l = Object.keys(e.format).reduce((p, I) => a.includes(I) ? te(W(), p, { [I]: e.format[I] }) : p, W()));
3305
+ e.locale && (o.locale = e.locale), A(e.format) ? o.key = e.format : U(e.format) && (A(e.format.key) && (o.key = e.format.key), l = Object.keys(e.format).reduce((p, y) => a.includes(y) ? te(W(), p, { [y]: e.format[y] }) : p, W()));
3306
3306
  const i = n(e.value, o, l);
3307
3307
  let c = [o.key];
3308
- J(i) ? c = i.map((p, I) => {
3309
- const R = s[p.type], S = R ? R({ [p.type]: p.value, index: I, parts: i }) : [p.value];
3310
- return ti(S) && (S[0].key = `${p.type}-${I}`), S;
3308
+ J(i) ? c = i.map((p, y) => {
3309
+ const R = s[p.type], S = R ? R({ [p.type]: p.value, index: y, parts: i }) : [p.value];
3310
+ return ai(S) && (S[0].key = `${p.type}-${y}`), S;
3311
3311
  }) : A(i) && (c = [i]);
3312
- const m = te(W(), r), g = A(e.tag) || U(e.tag) ? e.tag : Ks();
3313
- return ye(g, m, c);
3312
+ const m = te(W(), r), g = A(e.tag) || U(e.tag) ? e.tag : Ys();
3313
+ return Ie(g, m, c);
3314
3314
  };
3315
3315
  }
3316
- const ai = /* @__PURE__ */ De({
3316
+ const ni = /* @__PURE__ */ De({
3317
3317
  /* eslint-disable */
3318
3318
  name: "i18n-n",
3319
3319
  props: te({
@@ -3332,13 +3332,13 @@ const ai = /* @__PURE__ */ De({
3332
3332
  useScope: e.scope,
3333
3333
  __useComponent: !0
3334
3334
  });
3335
- return Ys(e, t, Ds, (...n) => (
3335
+ return Bs(e, t, Cs, (...n) => (
3336
3336
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3337
3337
  a[Ja](...n)
3338
3338
  ));
3339
3339
  }
3340
- }), ns = ai;
3341
- function ni(e, t) {
3340
+ }), ns = ni;
3341
+ function si(e, t) {
3342
3342
  const a = e;
3343
3343
  if (e.mode === "composition")
3344
3344
  return a.__getInstance(t) || e.global;
@@ -3347,13 +3347,13 @@ function ni(e, t) {
3347
3347
  return n != null ? n.__composer : e.global.__composer;
3348
3348
  }
3349
3349
  }
3350
- function si(e) {
3350
+ function ri(e) {
3351
3351
  const t = (o) => {
3352
- process.env.NODE_ENV !== "production" && sn(it(_e.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
3352
+ process.env.NODE_ENV !== "production" && sn(ct(_e.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
3353
3353
  const { instance: l, value: i } = o;
3354
3354
  if (!l || !l.$)
3355
3355
  throw ue(Y.UNEXPECTED_ERROR);
3356
- const c = ni(e, l.$), m = ss(i);
3356
+ const c = si(e, l.$), m = ss(i);
3357
3357
  return [
3358
3358
  Reflect.apply(c.t, c, [...rs(m)]),
3359
3359
  c
@@ -3397,15 +3397,15 @@ function rs(e) {
3397
3397
  const { path: t, locale: a, args: n, choice: s, plural: r } = e, o = {}, l = n || {};
3398
3398
  return A(a) && (o.locale = a), ee(s) && (o.plural = s), ee(r) && (o.plural = r), [t, l, o];
3399
3399
  }
3400
- function ri(e, t, ...a) {
3400
+ function oi(e, t, ...a) {
3401
3401
  const n = F(a[0]) ? a[0] : {};
3402
- (x(n.globalInstall) ? n.globalInstall : !0) && ([as.name, "I18nT"].forEach((r) => e.component(r, as)), [ns.name, "I18nN"].forEach((r) => e.component(r, ns)), [ls.name, "I18nD"].forEach((r) => e.component(r, ls))), e.directive("t", si(t));
3402
+ (x(n.globalInstall) ? n.globalInstall : !0) && ([as.name, "I18nT"].forEach((r) => e.component(r, as)), [ns.name, "I18nN"].forEach((r) => e.component(r, ns)), [ls.name, "I18nD"].forEach((r) => e.component(r, ls))), e.directive("t", ri(t));
3403
3403
  }
3404
- const oi = /* @__PURE__ */ Oe("global-vue-i18n");
3405
- function li(e = {}) {
3404
+ const li = /* @__PURE__ */ Oe("global-vue-i18n");
3405
+ function ii(e = {}) {
3406
3406
  const t = __VUE_I18N_LEGACY_API__ && x(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__;
3407
- process.env.NODE_ENV !== "production" && t && sn(it(_e.DEPRECATE_LEGACY_MODE));
3408
- const a = x(e.globalInjection) ? e.globalInjection : !0, n = /* @__PURE__ */ new Map(), [s, r] = ii(e, t), o = /* @__PURE__ */ Oe(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
3407
+ process.env.NODE_ENV !== "production" && t && sn(ct(_e.DEPRECATE_LEGACY_MODE));
3408
+ const a = x(e.globalInjection) ? e.globalInjection : !0, n = /* @__PURE__ */ new Map(), [s, r] = ci(e, t), o = /* @__PURE__ */ Oe(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
3409
3409
  function l(g) {
3410
3410
  return n.get(g) || null;
3411
3411
  }
@@ -3426,13 +3426,13 @@ function li(e = {}) {
3426
3426
  const S = p[0];
3427
3427
  m.__composerExtend = S.__composerExtend, m.__vueI18nExtend = S.__vueI18nExtend;
3428
3428
  }
3429
- let I = null;
3430
- !t && a && (I = gi(g, m.global)), __VUE_I18N_FULL_INSTALL__ && ri(g, m, ...p), __VUE_I18N_LEGACY_API__ && t && g.mixin(zl(r, r.__composer, m));
3429
+ let y = null;
3430
+ !t && a && (y = hi(g, m.global)), __VUE_I18N_FULL_INSTALL__ && oi(g, m, ...p), __VUE_I18N_LEGACY_API__ && t && g.mixin(Zl(r, r.__composer, m));
3431
3431
  const R = g.unmount;
3432
3432
  if (g.unmount = () => {
3433
- I && I(), m.dispose(), R();
3433
+ y && y(), m.dispose(), R();
3434
3434
  }, process.env.NODE_ENV !== "production") {
3435
- if (!await $l(g, m))
3435
+ if (!await Hl(g, m))
3436
3436
  throw ue(Y.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
3437
3437
  const O = ln();
3438
3438
  if (t) {
@@ -3440,9 +3440,9 @@ function li(e = {}) {
3440
3440
  d.__enableEmitter && d.__enableEmitter(O);
3441
3441
  } else {
3442
3442
  const d = r;
3443
- d[Qe] && d[Qe](O);
3443
+ d[Xe] && d[Xe](O);
3444
3444
  }
3445
- O.on("*", At);
3445
+ O.on("*", Pt);
3446
3446
  }
3447
3447
  },
3448
3448
  // global accessor
@@ -3464,56 +3464,56 @@ function li(e = {}) {
3464
3464
  return m;
3465
3465
  }
3466
3466
  function la(e = {}) {
3467
- const t = st();
3467
+ const t = rt();
3468
3468
  if (t == null)
3469
3469
  throw ue(Y.MUST_BE_CALL_SETUP_TOP);
3470
3470
  if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
3471
3471
  throw ue(Y.NOT_INSTALLED);
3472
- const a = ci(t), n = fi(a), s = Vs(t), r = ui(e, s);
3472
+ const a = ui(t), n = di(a), s = $s(t), r = fi(e, s);
3473
3473
  if (r === "global")
3474
- return $s(n, e, s), n;
3474
+ return Hs(n, e, s), n;
3475
3475
  if (r === "parent") {
3476
- let i = di(a, t, e.__useComponent);
3477
- return i == null && (process.env.NODE_ENV !== "production" && Le(it(_e.NOT_FOUND_PARENT_SCOPE)), i = n), i;
3476
+ let i = mi(a, t, e.__useComponent);
3477
+ return i == null && (process.env.NODE_ENV !== "production" && Le(ct(_e.NOT_FOUND_PARENT_SCOPE)), i = n), i;
3478
3478
  }
3479
3479
  const o = a;
3480
3480
  let l = o.__getInstance(t);
3481
3481
  if (l == null) {
3482
3482
  const i = te({}, e);
3483
- "__i18n" in s && (i.__i18n = s.__i18n), n && (i.__root = n), l = pn(i), o.__composerExtend && (l[Qa] = o.__composerExtend(l)), pi(o, t, l), o.__setInstance(t, l);
3483
+ "__i18n" in s && (i.__i18n = s.__i18n), n && (i.__root = n), l = pn(i), o.__composerExtend && (l[Qa] = o.__composerExtend(l)), _i(o, t, l), o.__setInstance(t, l);
3484
3484
  } else
3485
- process.env.NODE_ENV !== "production" && r === "local" && Le(it(_e.DUPLICATE_USE_I18N_CALLING));
3485
+ process.env.NODE_ENV !== "production" && r === "local" && Le(ct(_e.DUPLICATE_USE_I18N_CALLING));
3486
3486
  return l;
3487
3487
  }
3488
- function ii(e, t) {
3489
- const a = pr(), n = __VUE_I18N_LEGACY_API__ && t ? a.run(() => qa(e)) : a.run(() => pn(e));
3488
+ function ci(e, t) {
3489
+ const a = _r(), n = __VUE_I18N_LEGACY_API__ && t ? a.run(() => qa(e)) : a.run(() => pn(e));
3490
3490
  if (n == null)
3491
3491
  throw ue(Y.UNEXPECTED_ERROR);
3492
3492
  return [a, n];
3493
3493
  }
3494
- function ci(e) {
3495
- const t = at(e.isCE ? oi : e.appContext.app.__VUE_I18N_SYMBOL__);
3494
+ function ui(e) {
3495
+ const t = nt(e.isCE ? li : e.appContext.app.__VUE_I18N_SYMBOL__);
3496
3496
  if (!t)
3497
3497
  throw ue(e.isCE ? Y.NOT_INSTALLED_WITH_PROVIDE : Y.UNEXPECTED_ERROR);
3498
3498
  return t;
3499
3499
  }
3500
- function ui(e, t) {
3500
+ function fi(e, t) {
3501
3501
  return sa(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
3502
3502
  }
3503
- function fi(e) {
3503
+ function di(e) {
3504
3504
  return e.mode === "composition" ? e.global : e.global.__composer;
3505
3505
  }
3506
- function di(e, t, a = !1) {
3506
+ function mi(e, t, a = !1) {
3507
3507
  let n = null;
3508
3508
  const s = t.root;
3509
- let r = mi(t, a);
3509
+ let r = pi(t, a);
3510
3510
  for (; r != null; ) {
3511
3511
  const o = e;
3512
3512
  if (e.mode === "composition")
3513
3513
  n = o.__getInstance(r);
3514
3514
  else if (__VUE_I18N_LEGACY_API__) {
3515
3515
  const l = o.__getInstance(r);
3516
- l != null && (n = l.__composer, a && n && !n[xs] && (n = null));
3516
+ l != null && (n = l.__composer, a && n && !n[Vs] && (n = null));
3517
3517
  }
3518
3518
  if (n != null || s === r)
3519
3519
  break;
@@ -3521,36 +3521,36 @@ function di(e, t, a = !1) {
3521
3521
  }
3522
3522
  return n;
3523
3523
  }
3524
- function mi(e, t = !1) {
3524
+ function pi(e, t = !1) {
3525
3525
  return e == null ? null : t && e.vnode.ctx || e.parent;
3526
3526
  }
3527
- function pi(e, t, a) {
3527
+ function _i(e, t, a) {
3528
3528
  let n = null;
3529
- Rt(() => {
3529
+ wt(() => {
3530
3530
  if (process.env.NODE_ENV !== "production") {
3531
3531
  t.__VUE_I18N__ = a, n = ln();
3532
3532
  const s = a;
3533
- s[Qe] && s[Qe](n), n.on("*", At);
3533
+ s[Xe] && s[Xe](n), n.on("*", Pt);
3534
3534
  }
3535
- }, t), ft(() => {
3535
+ }, t), dt(() => {
3536
3536
  const s = a;
3537
- process.env.NODE_ENV !== "production" && (n && n.off("*", At), s[Lt] && s[Lt](), delete t.__VUE_I18N__), e.__deleteInstance(t);
3537
+ process.env.NODE_ENV !== "production" && (n && n.off("*", Pt), s[Ot] && s[Ot](), delete t.__VUE_I18N__), e.__deleteInstance(t);
3538
3538
  const r = s[Qa];
3539
3539
  r && (r(), delete s[Qa]);
3540
3540
  }, t);
3541
3541
  }
3542
- const _i = [
3542
+ const gi = [
3543
3543
  "locale",
3544
3544
  "fallbackLocale",
3545
3545
  "availableLocales"
3546
3546
  ], os = ["t", "rt", "d", "n", "tm", "te"];
3547
- function gi(e, t) {
3547
+ function hi(e, t) {
3548
3548
  const a = /* @__PURE__ */ Object.create(null);
3549
- return _i.forEach((s) => {
3549
+ return gi.forEach((s) => {
3550
3550
  const r = Object.getOwnPropertyDescriptor(t, s);
3551
3551
  if (!r)
3552
3552
  throw ue(Y.UNEXPECTED_ERROR);
3553
- const o = _r(r.value) ? {
3553
+ const o = gr(r.value) ? {
3554
3554
  get() {
3555
3555
  return r.value.value;
3556
3556
  },
@@ -3575,7 +3575,7 @@ function gi(e, t) {
3575
3575
  });
3576
3576
  };
3577
3577
  }
3578
- const hi = /* @__PURE__ */ De({
3578
+ const Ei = /* @__PURE__ */ De({
3579
3579
  /* eslint-disable */
3580
3580
  name: "i18n-d",
3581
3581
  props: te({
@@ -3594,22 +3594,22 @@ const hi = /* @__PURE__ */ De({
3594
3594
  useScope: e.scope,
3595
3595
  __useComponent: !0
3596
3596
  });
3597
- return Ys(e, t, ks, (...n) => (
3597
+ return Bs(e, t, Ds, (...n) => (
3598
3598
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3599
3599
  a[ja](...n)
3600
3600
  ));
3601
3601
  }
3602
- }), ls = hi;
3603
- Dl();
3604
- nl(Fo);
3605
- sl(zo);
3606
- rl(Ns);
3602
+ }), ls = Ei;
3603
+ Cl();
3604
+ sl(Mo);
3605
+ rl(Zo);
3606
+ ol(Ss);
3607
3607
  if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
3608
- const e = We();
3609
- e.__INTLIFY__ = !0, Mo(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
3608
+ const e = Ge();
3609
+ e.__INTLIFY__ = !0, Uo(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
3610
3610
  }
3611
3611
  process.env.NODE_ENV;
3612
- const Ei = {
3612
+ const vi = {
3613
3613
  webui: {
3614
3614
  // 通用
3615
3615
  common: {
@@ -3979,29 +3979,29 @@ const Ei = {
3979
3979
  }
3980
3980
  }
3981
3981
  };
3982
- function Pt(e, t) {
3982
+ function Rt(e, t) {
3983
3983
  const a = Array.isArray(e) ? [] : {};
3984
3984
  for (const n in e)
3985
- e.hasOwnProperty(n) && (typeof e[n] == "object" && e[n] !== null && !Array.isArray(e[n]) ? a[n] = Pt(e[n], {}) : a[n] = Array.isArray(e[n]) ? [...e[n]] : e[n]);
3985
+ e.hasOwnProperty(n) && (typeof e[n] == "object" && e[n] !== null && !Array.isArray(e[n]) ? a[n] = Rt(e[n], {}) : a[n] = Array.isArray(e[n]) ? [...e[n]] : e[n]);
3986
3986
  for (const n in t)
3987
- t.hasOwnProperty(n) && (typeof t[n] == "object" && t[n] !== null && !Array.isArray(t[n]) ? a[n] = Pt(a[n] || {}, t[n]) : a[n] = Array.isArray(t[n]) ? [...t[n]] : t[n]);
3987
+ t.hasOwnProperty(n) && (typeof t[n] == "object" && t[n] !== null && !Array.isArray(t[n]) ? a[n] = Rt(a[n] || {}, t[n]) : a[n] = Array.isArray(t[n]) ? [...t[n]] : t[n]);
3988
3988
  return a;
3989
3989
  }
3990
3990
  let za = "/", qt = {
3991
3991
  "zh-CN": "简体中文"
3992
3992
  };
3993
- const Bs = {};
3994
- function vi() {
3993
+ const js = {};
3994
+ function bi() {
3995
3995
  return localStorage.getItem("language") || "zh-CN";
3996
3996
  }
3997
- const me = li({
3997
+ const me = ii({
3998
3998
  legacy: !1,
3999
3999
  // 使用Composition API模式
4000
- locale: vi(),
4000
+ locale: bi(),
4001
4001
  // 从localStorage获取语言设置
4002
4002
  fallbackLocale: "en-US",
4003
4003
  // 回退语言
4004
- messages: Bs,
4004
+ messages: js,
4005
4005
  silentTranslationWarn: !0,
4006
4006
  // 禁用翻译警告
4007
4007
  fallbackWarn: !1,
@@ -4009,7 +4009,7 @@ const me = li({
4009
4009
  missingWarn: !1
4010
4010
  // 禁用缺失警告
4011
4011
  });
4012
- async function bi(e) {
4012
+ async function Ii(e) {
4013
4013
  try {
4014
4014
  const t = await fetch(`${za}locales/${e}.json`);
4015
4015
  if (!t.ok)
@@ -4019,7 +4019,7 @@ async function bi(e) {
4019
4019
  return t instanceof TypeError && console.error(`Error loading locale ${e}:`, t), {};
4020
4020
  }
4021
4021
  }
4022
- function js(e) {
4022
+ function Js(e) {
4023
4023
  try {
4024
4024
  const t = localStorage.getItem(`locale_cache_${e}`);
4025
4025
  if (t)
@@ -4029,7 +4029,7 @@ function js(e) {
4029
4029
  }
4030
4030
  return null;
4031
4031
  }
4032
- function Js(e, t) {
4032
+ function Qs(e, t) {
4033
4033
  try {
4034
4034
  const a = {
4035
4035
  messages: t,
@@ -4055,17 +4055,17 @@ function Za(e) {
4055
4055
  }
4056
4056
  return e;
4057
4057
  }
4058
- async function Qs(e) {
4059
- const t = Za(Ei), a = js(e);
4058
+ async function Xs(e) {
4059
+ const t = Za(vi), a = Js(e);
4060
4060
  let n = {};
4061
4061
  try {
4062
- n = await bi(e);
4062
+ n = await Ii(e);
4063
4063
  } catch {
4064
4064
  }
4065
4065
  let s = t;
4066
- a && Object.keys(a).length > 0 && (s = Pt(s, a)), n && Object.keys(n).length > 0 && (s = Pt(s, n)), Bs[e] = s, me.global.setLocaleMessage(e, s), Js(e, s);
4066
+ a && Object.keys(a).length > 0 && (s = Rt(s, a)), n && Object.keys(n).length > 0 && (s = Rt(s, n)), js[e] = s, me.global.setLocaleMessage(e, s), Qs(e, s);
4067
4067
  }
4068
- async function hc(e = "/", t) {
4068
+ async function Ec(e = "/", t) {
4069
4069
  za = e;
4070
4070
  try {
4071
4071
  const n = await fetch(`${za}locales/languages.json`);
@@ -4074,16 +4074,16 @@ async function hc(e = "/", t) {
4074
4074
  n instanceof TypeError && console.error("[Locale] Network error:", n);
4075
4075
  }
4076
4076
  const a = localStorage.getItem("language") || t || "zh-CN";
4077
- me.global.locale.value = a, localStorage.setItem("language", a), await Qs(a);
4077
+ me.global.locale.value = a, localStorage.setItem("language", a), await Xs(a);
4078
4078
  }
4079
- async function Ec(e) {
4080
- await Qs(e), me.global.locale.value = e, localStorage.setItem("language", e);
4079
+ async function vc(e) {
4080
+ await Xs(e), me.global.locale.value = e, localStorage.setItem("language", e);
4081
4081
  }
4082
- function vc(e = "code") {
4082
+ function bc(e = "code") {
4083
4083
  const t = me.global.locale.value;
4084
4084
  return e === "display" ? qt[t] : t;
4085
4085
  }
4086
- function bc() {
4086
+ function Ic() {
4087
4087
  return Object.keys(qt).map((e) => ({
4088
4088
  label: qt[e],
4089
4089
  key: e
@@ -4095,10 +4095,10 @@ function P(e, t) {
4095
4095
  if (a === e) {
4096
4096
  const n = me.global.getLocaleMessage(me.global.locale.value);
4097
4097
  if (!n || Object.keys(n).length === 0) {
4098
- const r = js(me.global.locale.value);
4098
+ const r = Js(me.global.locale.value);
4099
4099
  if (r) {
4100
- const o = Pt({}, r);
4101
- me.global.setLocaleMessage(me.global.locale.value, o), Js(me.global.locale.value, o);
4100
+ const o = Rt({}, r);
4101
+ me.global.setLocaleMessage(me.global.locale.value, o), Qs(me.global.locale.value, o);
4102
4102
  const l = me.global.t(e, t || {});
4103
4103
  return l === e ? e : l;
4104
4104
  }
@@ -4210,7 +4210,7 @@ ne($, "YesNo", []), /**
4210
4210
  * - 女 F
4211
4211
  */
4212
4212
  ne($, "MaleFemale", []);
4213
- let en = $, Xs = "";
4213
+ let en = $, qs = "";
4214
4214
  const ia = {
4215
4215
  login: {
4216
4216
  api: "PLATFORM_API",
@@ -4228,7 +4228,7 @@ const ia = {
4228
4228
  authorize: !0,
4229
4229
  url: "/api/LoginSrv/logout"
4230
4230
  }
4231
- }, qs = {
4231
+ }, zs = {
4232
4232
  host: {
4233
4233
  api: "SITEHOST_API",
4234
4234
  url: "/openapi/RCSiteHostSrv/get",
@@ -4241,9 +4241,9 @@ const ia = {
4241
4241
  }
4242
4242
  };
4243
4243
  function yc() {
4244
- Xs = P("webui.stores.userInfo.tokenParseFailed"), ia.logout.loadingText = P("webui.stores.userInfo.exiting"), qs.host.loadingText = P("webui.stores.hostInfo.loading");
4244
+ qs = P("webui.stores.userInfo.tokenParseFailed"), ia.logout.loadingText = P("webui.stores.userInfo.exiting"), zs.host.loadingText = P("webui.stores.hostInfo.loading");
4245
4245
  }
4246
- const Ct = {
4246
+ const Ft = {
4247
4247
  /**
4248
4248
  * 自动加载数据
4249
4249
  */
@@ -4314,27 +4314,29 @@ const Ct = {
4314
4314
  type: Object,
4315
4315
  required: !1
4316
4316
  }
4317
- }, ve = (e) => e == null || e === "" ? !0 : Array.isArray(e) ? e.length === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !1, is = "/login/", jt = [], yi = (e) => {
4317
+ }, ve = (e) => e == null || e === "" ? !0 : Array.isArray(e) ? e.length === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !1, is = "/login/", Jt = [], yi = (e) => {
4318
4318
  for (const t of e) {
4319
- const a = jt.findIndex((n) => n.path === t.path);
4320
- a !== -1 && jt.splice(a, 1), jt.push(t), ca.addRoute(t);
4319
+ const a = Jt.findIndex((n) => n.path === t.path);
4320
+ a !== -1 && Jt.splice(a, 1), Jt.push(t), ca.addRoute(t);
4321
4321
  }
4322
- }, zs = (e, t, a, n = "") => {
4322
+ }, Zs = (e, t, a, n = "") => {
4323
4323
  const s = n + (n ? "/" : "") + e.path;
4324
- t[s] = { ...e, parent: a }, e.children && e.children.forEach((r) => zs(r, t, e, s));
4325
- }, ca = Cr({
4326
- history: Fr("/"),
4327
- routes: jt
4328
- }), Ii = (e, t) => {
4324
+ t[s] = { ...e, parent: a }, e.children && e.children.forEach((r) => Zs(r, t, e, s));
4325
+ }, ca = Fr({
4326
+ history: Mr("/"),
4327
+ routes: Jt
4328
+ }), Ni = (e, t) => {
4329
4329
  var s, r;
4330
4330
  const a = ((s = e.meta) == null ? void 0 : s.roles) ?? [], n = (r = e.meta) == null ? void 0 : r.permission;
4331
4331
  if (!t)
4332
4332
  return a.length === 0 && !n;
4333
4333
  if (t) {
4334
- const o = Ie();
4335
- if (Jt.VITE_PERMISSION_MODE === "role")
4334
+ const o = ye();
4335
+ if (Fe.VITE_PERMISSION_MODE === "none")
4336
+ return !0;
4337
+ if (Fe.VITE_PERMISSION_MODE === "role")
4336
4338
  return a.length === 0 ? !0 : o.hasRole(a);
4337
- if (Jt.VITE_PERMISSION_MODE === "permit") {
4339
+ if (Fe.VITE_PERMISSION_MODE === "permit") {
4338
4340
  if (a.length === 0 && !n)
4339
4341
  return !0;
4340
4342
  let l = !1, i = !1;
@@ -4354,7 +4356,7 @@ ca.beforeEach((e, t, a) => {
4354
4356
  return a();
4355
4357
  const s = n.meta, o = ((s == null ? void 0 : s.roles) ?? []).length > 0 || ((l = s == null ? void 0 : s.permission) == null ? void 0 : l.length);
4356
4358
  if (e.path === "/") {
4357
- const i = Fe();
4359
+ const i = Me();
4358
4360
  if (!i.menuLoaded) {
4359
4361
  yt.value = {
4360
4362
  to: e,
@@ -4370,35 +4372,35 @@ ca.beforeEach((e, t, a) => {
4370
4372
  if (!o)
4371
4373
  a();
4372
4374
  else {
4373
- const i = Ie();
4375
+ const i = ye();
4374
4376
  if (!i.isLogin)
4375
4377
  a({ path: is });
4376
4378
  else {
4377
- if (!Fe().menuLoaded) {
4379
+ if (!Me().menuLoaded) {
4378
4380
  yt.value = {
4379
4381
  to: e,
4380
4382
  next: a
4381
4383
  };
4382
4384
  return;
4383
4385
  }
4384
- const m = Ii(n, i.isLogin);
4386
+ const m = Ni(n, i.isLogin);
4385
4387
  a();
4386
4388
  }
4387
4389
  }
4388
4390
  });
4389
- const Ni = (e) => {
4391
+ const Si = (e) => {
4390
4392
  if (yt.value) {
4391
4393
  const { to: t, next: a } = yt.value;
4392
4394
  yt.value = null, t.path === "/" ? a(e) : a(t.path);
4393
4395
  }
4394
- }, Si = (e) => {
4396
+ }, Ti = (e) => {
4395
4397
  const t = hn();
4396
4398
  if (t.TabEnabled) {
4397
- if (Ti(e.key, t.TabPanes))
4399
+ if (Li(e.key, t.TabPanes))
4398
4400
  return;
4399
4401
  t.TabPanes.push(e);
4400
4402
  }
4401
- }, Ti = (e, t) => t.find((a) => a.key === e), hn = kt("pageInfo", {
4403
+ }, Li = (e, t) => t.find((a) => a.key === e), hn = Dt("pageInfo", {
4402
4404
  state: () => ({
4403
4405
  TabActive: "",
4404
4406
  TabPanes: [],
@@ -4411,7 +4413,7 @@ const Ni = (e) => {
4411
4413
  */
4412
4414
  removeTabPane(e) {
4413
4415
  if (this.TabEnabled) {
4414
- Fe().excludeComponent(e);
4416
+ Me().excludeComponent(e);
4415
4417
  let a = 0, n = [...this.TabPanes];
4416
4418
  for (let s = 0; s < n.length; s++)
4417
4419
  if (n[s].key === e) {
@@ -4432,7 +4434,7 @@ const Ni = (e) => {
4432
4434
  * @returns
4433
4435
  */
4434
4436
  async setTabActive(e) {
4435
- let a = Fe().findRoute(e);
4437
+ let a = Me().findRoute(e);
4436
4438
  if (!a) return;
4437
4439
  const n = {
4438
4440
  key: e,
@@ -4443,7 +4445,7 @@ const Ni = (e) => {
4443
4445
  // 默认为true
4444
4446
  keepAlive: !(a.meta && !a.meta.keepAlive)
4445
4447
  };
4446
- Si(n), this.TabActive = e;
4448
+ Ti(n), this.TabActive = e;
4447
4449
  }
4448
4450
  },
4449
4451
  persist: !1
@@ -4545,7 +4547,7 @@ class ae {
4545
4547
  }
4546
4548
  ne(ae, "messageId", 0), ne(ae, "callbacks", /* @__PURE__ */ new Map()), ne(ae, "pendingRequests", /* @__PURE__ */ new Map());
4547
4549
  ae.init();
4548
- const It = {
4550
+ const Nt = {
4549
4551
  getAppInfo: ae.getAppInfo.bind(ae),
4550
4552
  getHostInfo: ae.getHostInfo.bind(ae),
4551
4553
  getUserInfo: ae.getUserInfo.bind(ae),
@@ -4553,40 +4555,40 @@ const It = {
4553
4555
  userLogout: ae.userLogout.bind(ae),
4554
4556
  mainAppPush: ae.mainAppPush.bind(ae),
4555
4557
  isInMicroApp: ae.isInMicroApp.bind(ae)
4556
- }, Li = {
4558
+ }, Oi = {
4557
4559
  appList: {
4558
4560
  api: "PLATFORM_API",
4559
4561
  authorize: !0,
4560
4562
  url: "/api/RCTenanetOpSrv/getApps",
4561
4563
  loadingText: !1
4562
4564
  }
4563
- }, xa = /* @__PURE__ */ new Map(), Oi = (e) => {
4564
- const t = Ie(), { roles: a, permission: n } = e.meta || {};
4565
- if (ve(a) && ve(n))
4565
+ }, xa = /* @__PURE__ */ new Map(), Ai = (e) => {
4566
+ const t = ye(), { roles: a, permission: n } = e.meta || {};
4567
+ if (ve(a) && ve(n) || Fe.VITE_PERMISSION_MODE === "none")
4566
4568
  return !0;
4567
- if (Jt.VITE_PERMISSION_MODE === "role")
4569
+ if (Fe.VITE_PERMISSION_MODE === "role")
4568
4570
  return ve(a) ? !0 : t.hasRole(a);
4569
- if (Jt.VITE_PERMISSION_MODE === "permit") {
4571
+ if (Fe.VITE_PERMISSION_MODE === "permit") {
4570
4572
  let s = !1, r = !1;
4571
4573
  return ve(a) || (s = t.hasRole(a)), t.isAdmin() ? s : (ve(n) || (r = t.hasPermit(e.path, n)), s || r);
4572
4574
  }
4573
4575
  return !1;
4574
- }, Zs = (e) => e.map((t) => {
4576
+ }, er = (e) => e.map((t) => {
4575
4577
  const a = { ...t };
4576
- return Oi(a) ? (a.children && (a.children = Zs(a.children)), a) : null;
4577
- }).filter(Boolean), er = (e, t = "") => {
4578
+ return Ai(a) ? (a.children && (a.children = er(a.children)), a) : null;
4579
+ }).filter(Boolean), tr = (e, t = "") => {
4578
4580
  for (const a of e) {
4579
4581
  if (!a.children && !a.redirect) {
4580
4582
  let n = t + a.path;
4581
4583
  return n.startsWith("/") || (n = "/" + n), n;
4582
4584
  }
4583
4585
  if (a.children && a.children.length > 0 && a.path !== "/error" && a.path !== "/login" && a.path !== "/:page(.*)") {
4584
- const n = er(a.children, t + a.path + "/");
4586
+ const n = tr(a.children, t + a.path + "/");
4585
4587
  if (n)
4586
4588
  return n;
4587
4589
  }
4588
4590
  }
4589
- }, Fe = kt("appInfo", {
4591
+ }, Me = Dt("appInfo", {
4590
4592
  state: () => ({
4591
4593
  appInfo: {
4592
4594
  Id: "",
@@ -4620,7 +4622,7 @@ const It = {
4620
4622
  });
4621
4623
  },
4622
4624
  async getRemoteAppList() {
4623
- return Xe(Li.appList, {
4625
+ return qe(Oi.appList, {
4624
4626
  Query: {
4625
4627
  AppCode: this.appInfo.AppCode,
4626
4628
  Enabled: 1
@@ -4629,7 +4631,7 @@ const It = {
4629
4631
  if ((e == null ? void 0 : e.status) === ie.SUCCESS && e.data)
4630
4632
  this.appList.length = 0, this.appList.push(...e.data);
4631
4633
  else if ((e == null ? void 0 : e.errno) == ua) {
4632
- Ie().logout(!1);
4634
+ ye().logout(!1);
4633
4635
  return;
4634
4636
  }
4635
4637
  });
@@ -4659,12 +4661,15 @@ const It = {
4659
4661
  async setActiveApp(e, t) {
4660
4662
  this.menuLoaded = !1;
4661
4663
  const a = this.appList.find((n) => n.AppCode === e);
4662
- a && (a.AppCode !== this.appInfo.AppCode && (this.appInfo = {
4664
+ if (a && (a.AppCode !== this.appInfo.AppCode && (this.appInfo = {
4663
4665
  ...a,
4664
4666
  flattenRoutes: {},
4665
4667
  Routes: t ?? [],
4666
4668
  defaultPage: ""
4667
- }), (!Ce() || !wr()) && (await Ie().getRolePermits(a.Id), this.appInfo.Routes.length && this.setAppRoutes(this.appInfo.Routes)));
4669
+ }), !Ce() || !kr())) {
4670
+ const n = ye();
4671
+ Fe.VITE_PERMISSION_MODE !== "none" && await n.getRolePermits(a.Id), this.appInfo.Routes.length && this.setAppRoutes(this.appInfo.Routes);
4672
+ }
4668
4673
  },
4669
4674
  /**
4670
4675
  * 设置当前应用路由信息
@@ -4679,18 +4684,18 @@ const It = {
4679
4684
  };
4680
4685
  const t = this.appInfo.flattenRoutes;
4681
4686
  for (const a of e)
4682
- zs(a, t, void 0);
4687
+ Zs(a, t, void 0);
4683
4688
  if (Object.keys(t).forEach((a) => {
4684
4689
  const n = t[a];
4685
4690
  n.children || !n.component || (n.meta && n.meta.keepAlive === !1 ? this.ExcludeComponents.push(a) : this.CachedComponents.push(a));
4686
- }), Ie().isLogin) {
4687
- const a = Zs(this.appInfo.Routes);
4688
- if (yi(a), this.appInfo.defaultPage = er(a) || "", this.appInfo.defaultPage) {
4691
+ }), ye().isLogin) {
4692
+ const a = er(this.appInfo.Routes);
4693
+ if (yi(a), this.appInfo.defaultPage = tr(a) || "", this.appInfo.defaultPage) {
4689
4694
  if (this.menuLoaded = !0, Ce()) {
4690
4695
  const n = this.formatRoute(this.appInfo.defaultPage);
4691
- It.mainAppPush(n);
4696
+ Nt.mainAppPush(n);
4692
4697
  }
4693
- Ni(this.appInfo.defaultPage);
4698
+ Si(this.appInfo.defaultPage);
4694
4699
  }
4695
4700
  }
4696
4701
  },
@@ -4708,10 +4713,10 @@ const It = {
4708
4713
  * @param path 路由地址
4709
4714
  */
4710
4715
  push(e) {
4711
- this.findRoute(e) && hn().setTabActive(e), hr(() => {
4716
+ this.findRoute(e) && hn().setTabActive(e), Er(() => {
4712
4717
  if (ca.push({ path: e }), Ce()) {
4713
4718
  const a = this.formatRoute(e);
4714
- It.mainAppPush(a);
4719
+ Nt.mainAppPush(a);
4715
4720
  }
4716
4721
  });
4717
4722
  },
@@ -4737,7 +4742,7 @@ const It = {
4737
4742
  // 设置组件包装器的名称为路由路径
4738
4743
  name: t.path,
4739
4744
  render() {
4740
- return ye(e);
4745
+ return Ie(e);
4741
4746
  }
4742
4747
  }, xa.set(t.path, a);
4743
4748
  else return e;
@@ -4779,47 +4784,47 @@ const It = {
4779
4784
  }, this.CachedComponents.splice(0, this.CachedComponents.length), this.ExcludeComponents.splice(0, this.ExcludeComponents.length), this.appList.splice(0, this.appList.length), this.menuLoaded = !1;
4780
4785
  },
4781
4786
  logout() {
4782
- this.clean(), Ce() ? It.mainAppPush("/") : window.location.assign("/");
4787
+ this.clean(), Ce() ? Nt.mainAppPush("/") : window.location.assign("/");
4783
4788
  }
4784
4789
  },
4785
4790
  persist: !1
4786
- }), ua = 1400, Ai = (e) => {
4791
+ }), ua = 1400, Pi = (e) => {
4787
4792
  let t = {
4788
4793
  Option: {
4789
4794
  Mode: "MicroApp"
4790
4795
  },
4791
4796
  Query: e
4792
4797
  };
4793
- return Xe(ia.login, t).then((a) => (a == null ? void 0 : a.status) === ie.SUCCESS ? a : null);
4794
- }, Pi = (e) => {
4798
+ return qe(ia.login, t).then((a) => (a == null ? void 0 : a.status) === ie.SUCCESS ? a : null);
4799
+ }, Ri = (e) => {
4795
4800
  let t = {
4796
4801
  Query: {
4797
4802
  AppId: e
4798
4803
  }
4799
4804
  };
4800
- return Xe(ia.auth, t).then((a) => {
4805
+ return qe(ia.auth, t).then((a) => {
4801
4806
  if ((a == null ? void 0 : a.status) === ie.SUCCESS)
4802
4807
  return a.data;
4803
4808
  if ((a == null ? void 0 : a.errno) == ua) {
4804
- Ie().logout(!1);
4809
+ ye().logout(!1);
4805
4810
  return;
4806
4811
  }
4807
4812
  return se.error(P("webui.stores.userInfo.authInfoFailed") + "," + (a == null ? void 0 : a.msg)), null;
4808
4813
  });
4809
- }, Ri = () => {
4814
+ }, wi = () => {
4810
4815
  let e = {
4811
4816
  Option: {},
4812
4817
  Query: {}
4813
4818
  };
4814
- return Xe(ia.logout, e).then((t) => (t == null ? void 0 : t.status) === ie.SUCCESS ? t.data : null);
4815
- }, wi = (e) => {
4819
+ return qe(ia.logout, e).then((t) => (t == null ? void 0 : t.status) === ie.SUCCESS ? t.data : null);
4820
+ }, ki = (e) => {
4816
4821
  try {
4817
4822
  const t = JSON.parse(atob(e.token.split(".")[1]));
4818
4823
  return t.user = JSON.parse(t.user), e.UserInfo = t.user, !0;
4819
4824
  } catch (t) {
4820
- return console.error(Xs, t), !1;
4825
+ return console.error(qs, t), !1;
4821
4826
  }
4822
- }, de = w(""), vt = w(null), Ie = kt("userInfo", {
4827
+ }, de = w(""), bt = w(null), ye = Dt("userInfo", {
4823
4828
  state: () => ({
4824
4829
  isLogin: !1,
4825
4830
  userInfo: {
@@ -4837,7 +4842,7 @@ const It = {
4837
4842
  * 启动时初始化用户信息
4838
4843
  */
4839
4844
  init() {
4840
- Ce() || (this.token ? (Ht(this.token), de.value = this.userInfo.UserLevel, this.isLogin = !0) : this.clean());
4845
+ Ce() || (this.token ? (Wt(this.token), de.value = this.userInfo.UserLevel, this.isLogin = !0) : this.clean());
4841
4846
  },
4842
4847
  /**
4843
4848
  * 登录操作
@@ -4845,14 +4850,14 @@ const It = {
4845
4850
  * @returns
4846
4851
  */
4847
4852
  async login(e, t) {
4848
- const a = await Ai(e);
4853
+ const a = await Pi(e);
4849
4854
  if (a) {
4850
4855
  const n = a;
4851
4856
  if (n.errno)
4852
4857
  return n;
4853
4858
  {
4854
4859
  const s = a.data;
4855
- if (this.token = s.token, Ht(this.token), this.isLogin = !0, wi(s))
4860
+ if (this.token = s.token, Wt(this.token), this.isLogin = !0, ki(s))
4856
4861
  this.userInfo = {
4857
4862
  ...this.userInfo,
4858
4863
  ...s.UserInfo
@@ -4861,7 +4866,7 @@ const It = {
4861
4866
  se.error(P("webui.stores.userInfo.userInfoParseFailed"));
4862
4867
  return;
4863
4868
  }
4864
- t && Fe().toDefaultApp();
4869
+ t && Me().toDefaultApp();
4865
4870
  }
4866
4871
  }
4867
4872
  },
@@ -4873,11 +4878,11 @@ const It = {
4873
4878
  async getRolePermits(e) {
4874
4879
  if (!this.isLogin || !this.token)
4875
4880
  return !1;
4876
- if (vt.value && vt.value.appId === e)
4881
+ if (Fe.VITE_PERMISSION_MODE === "none" || bt.value && bt.value.appId === e)
4877
4882
  return !0;
4878
4883
  try {
4879
- const t = await Pi(e);
4880
- return t ? (vt.value = {
4884
+ const t = await Ri(e);
4885
+ return t ? (bt.value = {
4881
4886
  appId: e,
4882
4887
  permits: t.permits || [],
4883
4888
  lastTime: t.lastTime
@@ -4902,7 +4907,7 @@ const It = {
4902
4907
  */
4903
4908
  hasPermit(e, t) {
4904
4909
  var n;
4905
- const a = vt.value;
4910
+ const a = bt.value;
4906
4911
  return !a || !a.permits ? !1 : ((n = a.permits[e]) == null ? void 0 : n.includes(t)) ?? !1;
4907
4912
  },
4908
4913
  /**
@@ -4922,7 +4927,7 @@ const It = {
4922
4927
  de.value || (de.value = e.UserLevel, this.userInfo = {
4923
4928
  ...this.userInfo,
4924
4929
  ...e
4925
- }, this.token = t, Ht(this.token), this.isLogin = !0);
4930
+ }, this.token = t, Wt(this.token), this.isLogin = !0);
4926
4931
  },
4927
4932
  /**
4928
4933
  * 获取用户Token
@@ -4960,7 +4965,7 @@ const It = {
4960
4965
  Code: "",
4961
4966
  TenantId: "",
4962
4967
  UserLevel: ""
4963
- }, this.token = "", Ht(this.token), this.isLogin = !1, vt.value = null, de.value = "", Fe().clean(), Promise.resolve();
4968
+ }, this.token = "", Wt(this.token), this.isLogin = !1, bt.value = null, de.value = "", Me().clean(), Promise.resolve();
4964
4969
  },
4965
4970
  /**
4966
4971
  * 登出操作
@@ -4969,16 +4974,16 @@ const It = {
4969
4974
  */
4970
4975
  async logout(e) {
4971
4976
  if (Ce())
4972
- return It.userLogout(), Promise.resolve();
4977
+ return Nt.userLogout(), Promise.resolve();
4973
4978
  try {
4974
- e && await Ri();
4979
+ e && await wi();
4975
4980
  } catch (t) {
4976
4981
  console.error("调用登出接口失败", t);
4977
4982
  } finally {
4978
4983
  await this.clean(), e && setTimeout(async () => {
4979
4984
  se.success(P("webui.stores.userInfo.logoutSuccess"));
4980
4985
  }, 1e3), setTimeout(async () => {
4981
- Fe().logout();
4986
+ Me().logout();
4982
4987
  }, 2e3);
4983
4988
  }
4984
4989
  return Promise.resolve();
@@ -5006,20 +5011,20 @@ const It = {
5006
5011
  }, da = (e, t) => {
5007
5012
  const a = e.page, n = t.url;
5008
5013
  if (!n || !n.url) {
5009
- const r = P("webui.utils.data.urlNotSet", { urlKey: t.urlKey });
5010
- return console.warn(r), Promise.reject(new Error(r));
5014
+ const o = P("webui.utils.data.urlNotSet", { urlKey: t.urlKey });
5015
+ return console.warn(o), Promise.reject(new Error(o));
5011
5016
  }
5012
5017
  n.api || (n.api = a.api), n.authorize === void 0 && (n.authorize = a.authorize);
5013
- let s = Dt(
5018
+ let s = Ct(
5014
5019
  JSON.parse(JSON.stringify(n.params ?? {})),
5015
5020
  JSON.parse(JSON.stringify(t.params ?? {}))
5016
5021
  );
5017
- return t.processParams && (s = t.processParams(s)), t.loadingState && (t.loadingState.value = !0), t.hideErrorToast && (n.hideErrorToast = !0), Xe(n, s).then((r) => (t.loadingState && (t.loadingState.value = !1), (r == null ? void 0 : r.errno) == ua ? (Ie().logout(!1), null) : r)).catch((r) => (t.loadingState && (t.loadingState.value = !1), null));
5022
+ return t.processParams && (s = t.processParams(s)), t.loadingState && (t.loadingState.value = !0), t.hideErrorToast && (n.hideErrorToast = !0), (n.method === "GET" ? ms : qe)(n, s).then((o) => (t.loadingState && (t.loadingState.value = !1), (o == null ? void 0 : o.errno) == ua ? (ye().logout(!1), null) : o)).catch((o) => (t.loadingState && (t.loadingState.value = !1), null));
5018
5023
  }, En = (e, t) => {
5019
5024
  t.params || (t.params = {}), t.params.Query || (t.params.Query = {});
5020
5025
  const a = fa(e, t);
5021
5026
  return t.url = a, da(e, t);
5022
- }, Ic = (e, t) => (t.params || (t.params = {}), t.params.Query || (t.params.Query = {}), t.loadingText = t.loadingText === !1 ? !1 : t.loadingText || P("webui.utils.data.startExecute"), t.url = fa(e, t), da(e, t).then((a) => ((a == null ? void 0 : a.status) === ie.SUCCESS && (t.hideErrorToast || se.success(P("webui.utils.data.executeSuccess"))), a))), tr = (e, t = {}) => {
5027
+ }, Nc = (e, t) => (t.params || (t.params = {}), t.params.Query || (t.params.Query = {}), t.loadingText = t.loadingText === !1 ? !1 : t.loadingText || P("webui.utils.data.startExecute"), t.url = fa(e, t), da(e, t).then((a) => ((a == null ? void 0 : a.status) === ie.SUCCESS && (t.hideErrorToast || se.success(P("webui.utils.data.executeSuccess"))), a))), ar = (e, t = {}) => {
5023
5028
  const a = t.primaryKey || "Id";
5024
5029
  if (t.params || (t.params = {}), t.params.Query || (t.params.Query = {}), !t.params.Data)
5025
5030
  return se.error(P("webui.utils.data.noSaveData")), Promise.resolve(null);
@@ -5031,7 +5036,7 @@ const It = {
5031
5036
  n.params.Query[a] = n.params.Data[a];
5032
5037
  const s = fa(e, n);
5033
5038
  return n.url = s, da(e, n).then((r) => ((r == null ? void 0 : r.status) === ie.SUCCESS && (t.hideErrorToast || se.success(P("webui.utils.data.saveSuccess"))), r));
5034
- }, ki = (e, t, a = {}) => {
5039
+ }, Di = (e, t, a = {}) => {
5035
5040
  const n = a.primaryKey || "Id";
5036
5041
  a.params || (a.params = {}), a.params.Query || (a.params.Query = {});
5037
5042
  const s = {
@@ -5043,22 +5048,22 @@ const It = {
5043
5048
  return se.error(P("webui.utils.data.forbidDeleteWithoutCondition")), Promise.resolve(null);
5044
5049
  const r = fa(e, s);
5045
5050
  return s.url = r, da(e, s).then((o) => ((o == null ? void 0 : o.status) === ie.SUCCESS && (a.hideErrorToast || se.success(P("webui.utils.data.deleteSuccess"))), o));
5046
- }, Di = (e, t) => En(e, {
5051
+ }, Ci = (e, t) => En(e, {
5047
5052
  urlKey: "tree",
5048
5053
  params: {},
5049
5054
  loadingState: e.isTreeLoading,
5050
5055
  loadingText: !1,
5051
- processParams: () => Dt(e.treeQuery, t)
5052
- }).then((a) => (a == null ? void 0 : a.status) === ie.SUCCESS ? (e.data.value = a.data || [], e.afterLoad && e.afterLoad(e.data.value), e.data.value) : (e.afterLoad && e.afterLoad((a == null ? void 0 : a.data) || []), [])), Ci = (e, t) => {
5056
+ processParams: () => Ct(e.treeQuery, t)
5057
+ }).then((a) => (a == null ? void 0 : a.status) === ie.SUCCESS ? (e.data.value = a.data || [], e.afterLoad && e.afterLoad(e.data.value), e.data.value) : (e.afterLoad && e.afterLoad((a == null ? void 0 : a.data) || []), [])), Fi = (e, t) => {
5053
5058
  for (const a of e) {
5054
5059
  if (a.key === t) return a;
5055
5060
  if (a.children) {
5056
- const n = Ci(a.children, t);
5061
+ const n = Fi(a.children, t);
5057
5062
  if (n) return n;
5058
5063
  }
5059
5064
  }
5060
5065
  return null;
5061
- }, Nc = kt("settingInfo", {
5066
+ }, Sc = Dt("settingInfo", {
5062
5067
  state: () => ({
5063
5068
  fullscreen: !1,
5064
5069
  menuCollapse: !1,
@@ -5101,9 +5106,9 @@ const It = {
5101
5106
  },
5102
5107
  persist: !1
5103
5108
  });
5104
- let ct;
5105
- const Sc = (e) => {
5106
- ct = new aa({}), ct.messages({
5109
+ let ut;
5110
+ const Tc = (e) => {
5111
+ ut = new aa({}), ut.messages({
5107
5112
  required: "${label}" + P("webui.utils.formValidate.required"),
5108
5113
  types: {
5109
5114
  number: "${label}" + P("webui.utils.formValidate.numberType")
@@ -5129,10 +5134,10 @@ const Sc = (e) => {
5129
5134
  },
5130
5135
  ...e
5131
5136
  });
5132
- }, Tc = (e) => {
5137
+ }, Lc = (e) => {
5133
5138
  if (!e || ve(e))
5134
5139
  return [];
5135
- const t = [], a = ct.messages(), n = (r, o, l) => {
5140
+ const t = [], a = ut.messages(), n = (r, o, l) => {
5136
5141
  const i = o.type;
5137
5142
  if (i && a.types && i in a.types) {
5138
5143
  const m = a.types[i];
@@ -5142,8 +5147,8 @@ const Sc = (e) => {
5142
5147
  for (const m of c)
5143
5148
  if (i === m && a[m]) {
5144
5149
  const g = a[m], p = ["len", "min", "max", "range"];
5145
- for (const I of p)
5146
- I === "range" && o.min != null && o.max != null && g.range ? s(g.range, r, { min: o.min, max: o.max }, l) : I !== "range" && o[I] != null && g[I] && s(g[I], r, { [I]: o[I] }, l);
5150
+ for (const y of p)
5151
+ y === "range" && o.min != null && o.max != null && g.range ? s(g.range, r, { min: o.min, max: o.max }, l) : y !== "range" && o[y] != null && g[y] && s(g[y], r, { [y]: o[y] }, l);
5147
5152
  }
5148
5153
  if (o.required && a.required && s(a.required, r, {}, l), o.pattern && a.pattern && s(o.message, r, {}, l), o.enum && Array.isArray(o.enum) && a.enum) {
5149
5154
  const m = o.enum.join(", ");
@@ -5183,25 +5188,25 @@ const Sc = (e) => {
5183
5188
  rules: i
5184
5189
  });
5185
5190
  }), t;
5186
- }, Lc = (e) => {
5191
+ }, Oc = (e) => {
5187
5192
  const t = new aa({});
5188
- return t.messages(ct.messages()), t.define(e), t;
5189
- }, Ft = async (e) => {
5193
+ return t.messages(ut.messages()), t.define(e), t;
5194
+ }, Mt = async (e) => {
5190
5195
  const t = e.formData.value, a = e.formRules.value;
5191
- ve(a) || (vn(e), e.ruleValidator || (e.ruleValidator = new aa({}), e.ruleValidator.messages(ct.messages()), e.ruleValidator.define(a)), e.ruleResults.value = await e.ruleValidator.validate(t).then(() => {
5196
+ ve(a) || (vn(e), e.ruleValidator || (e.ruleValidator = new aa({}), e.ruleValidator.messages(ut.messages()), e.ruleValidator.define(a)), e.ruleResults.value = await e.ruleValidator.validate(t).then(() => {
5192
5197
  }).catch(({ fields: n }) => n));
5193
- }, Oc = async (e, t, a) => (a || (a = new aa({}), a.messages(ct.messages()), a.define(t)), a.validate(e).then(() => {
5198
+ }, Ac = async (e, t, a) => (a || (a = new aa({}), a.messages(ut.messages()), a.define(t)), a.validate(e).then(() => {
5194
5199
  }).catch(({ fields: n }) => n)), vn = (e) => {
5195
5200
  e.ruleResults.value = void 0;
5196
- }, ut = () => {
5197
- const e = at(Re.EditorControl, void 0), t = w(at(Re.LabelText, "")), a = w(at(Re.RuleKey, "")), n = at(Re.ErrInfo, void 0);
5201
+ }, ft = () => {
5202
+ const e = nt(Re.EditorControl, void 0), t = w(nt(Re.LabelText, "")), a = w(nt(Re.RuleKey, "")), n = nt(Re.ErrInfo, void 0);
5198
5203
  return {
5199
5204
  editorCtrl: e,
5200
5205
  labelText: t,
5201
5206
  ruleKey: a,
5202
5207
  errInfo: n
5203
5208
  };
5204
- }, Fi = (e, t) => {
5209
+ }, Mi = (e, t) => {
5205
5210
  let a = w({
5206
5211
  msg: "",
5207
5212
  errClass: ""
@@ -5213,7 +5218,7 @@ const Sc = (e) => {
5213
5218
  () => n == null ? void 0 : n.value,
5214
5219
  (s) => {
5215
5220
  if (a.value.errClass = "", a.value.msg = "", !ve(s)) {
5216
- const r = Mi(
5221
+ const r = Ui(
5217
5222
  {
5218
5223
  label: e.label,
5219
5224
  rule: e.rule
@@ -5226,7 +5231,7 @@ const Sc = (e) => {
5226
5231
  },
5227
5232
  { deep: !0 }
5228
5233
  ), a;
5229
- }, Mi = (e, t, a) => {
5234
+ }, Ui = (e, t, a) => {
5230
5235
  const n = w([]), s = w(""), r = w("");
5231
5236
  if (!e.rule || !t || !a)
5232
5237
  return { msg: s, ruleErrors: n, errClass: r };
@@ -5253,34 +5258,34 @@ const Sc = (e) => {
5253
5258
  });
5254
5259
  }
5255
5260
  }), n.value.length > 0 && (r.value = "error"), { msg: s, ruleErrors: n, errClass: r };
5256
- }, Ac = (e, t) => {
5261
+ }, Pc = (e, t) => {
5257
5262
  ka(Re.LabelText, e.label || ""), ka(Re.RuleKey, e.rule || "");
5258
- const a = Fi(e, t);
5263
+ const a = Mi(e, t);
5259
5264
  return ka(Re.ErrInfo, a), a;
5260
- }, Ui = (e, t) => {
5265
+ }, xi = (e, t) => {
5261
5266
  if (!t)
5262
5267
  return;
5263
5268
  const [a, ...n] = e;
5264
5269
  if (e.length === 1)
5265
5270
  return t[a];
5266
5271
  if (t[a])
5267
- return Ui(n, t[a].fields);
5268
- }, Pc = (e) => {
5269
- ar(e);
5272
+ return xi(n, t[a].fields);
5270
5273
  }, Rc = (e) => {
5271
- const t = e.page, a = e.formData.value;
5272
- a[e.primaryKey ?? t.primaryKey] = null, ar(e);
5274
+ nr(e);
5273
5275
  }, wc = (e) => {
5276
+ const t = e.page, a = e.formData.value;
5277
+ a[e.primaryKey ?? t.primaryKey] = null, nr(e);
5278
+ }, kc = (e) => {
5274
5279
  bn(e), e.visible.value = !1;
5275
- }, ar = async (e) => {
5280
+ }, nr = async (e) => {
5276
5281
  var n;
5277
5282
  const t = e.page;
5278
5283
  if (e.isFormSaving.value = !0, vn(e), e.beforeSave && e.beforeSave() === !1)
5279
5284
  return e.isFormSaving.value = !1, Promise.resolve();
5280
- if (e.formRules.value && await Ft(e), e.ruleResults.value)
5285
+ if (e.formRules.value && await Mt(e), e.ruleResults.value)
5281
5286
  return se.error(P("webui.utils.form.submitValidationFailed")), console.error("表单验证失败!", e.ruleResults.value), e.isFormSaving.value = !1, Promise.resolve();
5282
5287
  const a = e.formData.value;
5283
- return tr(
5288
+ return ar(
5284
5289
  {
5285
5290
  page: t,
5286
5291
  // 转换为AnyControl接口
@@ -5323,26 +5328,26 @@ const Sc = (e) => {
5323
5328
  } else
5324
5329
  se.error((s == null ? void 0 : s.msg) ?? P("webui.utils.form.saveFailed")), e.afterSave && e.afterSave(s);
5325
5330
  });
5326
- }, kc = async (e) => {
5331
+ }, Dc = async (e) => {
5327
5332
  const t = e.page, a = e.grid;
5328
5333
  e.isFormLoading.value = !0;
5329
5334
  const n = e.formData.value, s = e.primaryKey ?? t.primaryKey;
5330
- return rr(a, { [s]: n[s] }, e.detailUrl).then((r) => {
5331
- e.isFormLoading.value = !1, r && nr(e, r);
5335
+ return or(a, { [s]: n[s] }, e.detailUrl).then((r) => {
5336
+ e.isFormLoading.value = !1, r && sr(e, r);
5332
5337
  });
5333
- }, Dc = (e) => {
5338
+ }, Cc = (e) => {
5334
5339
  const t = e.grid;
5335
5340
  t && (t.rowData.value = void 0), e && (bn(e), e.visible && (e.visible.value = !1), setTimeout(() => {
5336
5341
  e.visible.value = !0;
5337
5342
  }, 1));
5338
- }, nr = (e, t) => {
5343
+ }, sr = (e, t) => {
5339
5344
  bn(e);
5340
5345
  const a = { ...e.formData.value, ...t };
5341
5346
  e.formData.value = JSON.parse(JSON.stringify(a));
5342
5347
  }, bn = (e) => {
5343
5348
  e.formData.value = e.default ? JSON.parse(JSON.stringify(e.default)) : {}, vn(e);
5344
- }, Cc = (e, t) => {
5345
- const a = Ie();
5349
+ }, Fc = (e, t) => {
5350
+ const a = ye();
5346
5351
  return e.filter((s) => s.role && !a.hasRole(s.role) || s.permit && !a.hasPermit(ca.currentRoute.value.path, s.permit) || s.enabled === !1 ? !1 : typeof s.enabled == "function" ? s.enabled() : !0).filter((s) => {
5347
5352
  if (!t) {
5348
5353
  if (s.visible === !1)
@@ -5352,7 +5357,7 @@ const Sc = (e) => {
5352
5357
  }
5353
5358
  return !0;
5354
5359
  });
5355
- }, Fc = (e, t) => {
5360
+ }, Mc = (e, t) => {
5356
5361
  const a = t == null ? void 0 : t.filter((n) => {
5357
5362
  const s = e.find(
5358
5363
  (r) => r.dataIndex === n.dataIndex || r.key === n.key || r.title === n.title
@@ -5360,27 +5365,31 @@ const Sc = (e) => {
5360
5365
  return s ? { ...n, ...s } : !1;
5361
5366
  });
5362
5367
  return [...a || [], ...e.filter((n) => !(a != null && a.includes(n)))];
5363
- }, xi = (e) => sr(e).then((t) => t.rows), sr = (e) => {
5364
- var a, n;
5368
+ }, Vi = (e) => rr(e).then((t) => t.rows), rr = (e) => {
5369
+ var a, n, s, r;
5365
5370
  e.gridQuery || (e.gridQuery = {});
5366
5371
  const t = e.remotePage ? "find" : "list";
5367
5372
  return En(e, {
5368
5373
  urlKey: t,
5369
- url: e.gridUrl,
5374
+ url: {
5375
+ url: ((a = e.gridUrl) == null ? void 0 : a.url) || "",
5376
+ ...e.gridUrl,
5377
+ loadingText: ((n = e.gridUrl) == null ? void 0 : n.loadingText) || P("webui.common.dataLoading")
5378
+ },
5370
5379
  params: e.gridQuery,
5371
5380
  loadingState: e.isGridLoading,
5372
- loadingText: ((a = e.gridUrl) == null ? void 0 : a.loadingText) === !1 ? !1 : ((n = e.gridUrl) == null ? void 0 : n.loadingText) || P("webui.common.dataLoading"),
5373
- processParams: (s) => {
5374
- var o;
5375
- return e.remotePage && (s.Query.$limit = [(e.pageNo.value - 1) * e.pageSize.value, e.pageSize.value]), Dt((o = e.gridUrl) == null ? void 0 : o.params, s, e.gridQuery);
5381
+ loadingText: ((s = e.gridUrl) == null ? void 0 : s.loadingText) === !1 ? !1 : ((r = e.gridUrl) == null ? void 0 : r.loadingText) || P("webui.common.dataLoading"),
5382
+ processParams: (o) => {
5383
+ var i;
5384
+ return e.remotePage && (o.Query.$limit = [(e.pageNo.value - 1) * e.pageSize.value, e.pageSize.value]), Ct((i = e.gridUrl) == null ? void 0 : i.params, o, e.gridQuery);
5376
5385
  }
5377
- }).then((s) => {
5378
- if ((s == null ? void 0 : s.status) === ie.SUCCESS) {
5379
- let r = s.data;
5380
- return r.rows ? (e.tableData.value = r.rows, e.total.value = r.total) : (e.tableData.value = s.data, e.total.value = s.data.length, r = {
5386
+ }).then((o) => {
5387
+ if ((o == null ? void 0 : o.status) === ie.SUCCESS) {
5388
+ let l = o.data;
5389
+ return l.rows ? (e.tableData.value = l.rows, e.total.value = l.total) : (e.tableData.value = o.data, e.total.value = o.data.length, l = {
5381
5390
  total: e.total.value,
5382
- rows: s.data
5383
- }), e.afterLoad && e.afterLoad(r), r;
5391
+ rows: o.data
5392
+ }), e.afterLoad && e.afterLoad(l), l;
5384
5393
  }
5385
5394
  return e.tableData.value = [], e.total.value = 0, e.afterLoad && e.afterLoad({
5386
5395
  total: 0,
@@ -5390,7 +5399,7 @@ const Sc = (e) => {
5390
5399
  rows: []
5391
5400
  };
5392
5401
  });
5393
- }, Vi = (e, t, a = {}) => tr(e, {
5402
+ }, $i = (e, t, a = {}) => ar(e, {
5394
5403
  urlKey: "update",
5395
5404
  url: e.updateUrl,
5396
5405
  params: {
@@ -5401,31 +5410,31 @@ const Sc = (e) => {
5401
5410
  ...a
5402
5411
  }).then((n) => ((n == null ? void 0 : n.status) === ie.SUCCESS && setTimeout(() => {
5403
5412
  e.reload.value = !0, e.afterUpdate && e.afterUpdate(t);
5404
- }, 50), n)), Mc = (e, t) => {
5413
+ }, 50), n)), Uc = (e, t) => {
5405
5414
  const a = {};
5406
- return a[e.primaryKey] = t[e.primaryKey], a[e.statusKey] = t[e.statusKey], Vi(e, a, {
5415
+ return a[e.primaryKey] = t[e.primaryKey], a[e.statusKey] = t[e.statusKey], $i(e, a, {
5407
5416
  loadingText: !1,
5408
5417
  hideErrorToast: !0
5409
5418
  });
5410
- }, rr = async (e, t, a) => await En(e, {
5419
+ }, or = async (e, t, a) => await En(e, {
5411
5420
  urlKey: "detail",
5412
5421
  url: a,
5413
5422
  params: t,
5414
5423
  loadingState: e.isGridLoading
5415
- }), Uc = (e, t) => {
5424
+ }), xc = (e, t) => {
5416
5425
  const a = t;
5417
- return rr(e, { [e.primaryKey]: a[e.primaryKey] }).then((n) => ((n == null ? void 0 : n.status) === ie.SUCCESS && n.data && (e.expandRows.value[a[e.primaryKey]] = n), n));
5418
- }, xc = (e, t) => {
5426
+ return or(e, { [e.primaryKey]: a[e.primaryKey] }).then((n) => ((n == null ? void 0 : n.status) === ie.SUCCESS && n.data && (e.expandRows.value[a[e.primaryKey]] = n), n));
5427
+ }, Vc = (e, t) => {
5419
5428
  let a = e.editor;
5420
- e.rowData.value = t, a && (nr(a, t), a.visible.value = !0);
5421
- }, Vc = (e, t) => ki(e, t, {
5429
+ e.rowData.value = t, a && (sr(a, t), a.visible.value = !0);
5430
+ }, $c = (e, t) => Di(e, t, {
5422
5431
  url: e.deleteUrl,
5423
5432
  primaryKey: e.primaryKey
5424
5433
  }).then((a) => ((a == null ? void 0 : a.status) === ie.SUCCESS && setTimeout(() => {
5425
5434
  e.reload.value = !0, e.afterDelete && !Array.isArray(t) && e.afterDelete(t);
5426
5435
  }, 50), a));
5427
5436
  var tn = /* @__PURE__ */ ((e) => (e.SelectReload = "Select.Reload", e.RadioReload = "Radio.Reload", e.CheckboxReload = "Checkbox.Reload", e.TreeSelectReload = "TreeSelect.Reload", e.TreeCheckReload = "TreeCheck.Reload", e))(tn || {});
5428
- class $i {
5437
+ class Hi {
5429
5438
  constructor() {
5430
5439
  ne(this, "listeners", {});
5431
5440
  }
@@ -5471,51 +5480,51 @@ class $i {
5471
5480
  this.listeners[t] && this.listeners[t].forEach((n) => n(t, ...a));
5472
5481
  }
5473
5482
  }
5474
- const nt = new $i(), mt = (e, t, a) => {
5483
+ const st = new Hi(), pt = (e, t, a) => {
5475
5484
  if (t.inputFactory && (a != null && a.reloadEvent)) {
5476
5485
  const n = t.inputFactory.value;
5477
5486
  n.reloadHandler = (s, r) => {
5478
- Hi(t.url, t, r);
5479
- }, nt.on(a.reloadEvent, n.reloadHandler);
5487
+ Wi(t.url, t, r);
5488
+ }, st.on(a.reloadEvent, n.reloadHandler);
5480
5489
  }
5481
5490
  if (a != null && a.data)
5482
5491
  B(
5483
5492
  () => a.data,
5484
5493
  () => {
5485
- yn(t, a.data, !0);
5494
+ In(t, a.data, !0);
5486
5495
  },
5487
5496
  { deep: !0, immediate: !0 }
5488
5497
  );
5489
5498
  else if (t.url && t.url.url)
5490
- e && or(t.url, t, t.params ?? {});
5499
+ e && lr(t.url, t, t.params ?? {});
5491
5500
  else {
5492
- const n = w(at(Re.LabelText, ""));
5501
+ const n = w(nt(Re.LabelText, ""));
5493
5502
  se.error("`" + n.value + "` " + P("webui.utils.options.notConfigured"), {
5494
5503
  duration: 5e3
5495
5504
  });
5496
5505
  }
5497
- }, yn = (e, t, a) => {
5506
+ }, In = (e, t, a) => {
5498
5507
  if (a) {
5499
5508
  const n = {
5500
5509
  ...e.fieldMap
5501
5510
  };
5502
- t = kr(n, t);
5511
+ t = Dr(n, t);
5503
5512
  }
5504
5513
  t = JSON.parse(JSON.stringify(t ?? [])), e.all && t.unshift({
5505
5514
  label: P("webui.components.form.radio.all"),
5506
5515
  value: e.allValue ?? void 0
5507
5516
  }), e.options.value = t;
5508
- }, Hi = (e, t, a) => {
5509
- Array.isArray(a) ? yn(t, a, !0) : or(e, t, a);
5510
- }, Mt = (e, t) => {
5517
+ }, Wi = (e, t, a) => {
5518
+ Array.isArray(a) ? In(t, a, !0) : lr(e, t, a);
5519
+ }, Ut = (e, t) => {
5511
5520
  var a;
5512
- (a = e.inputFactory) != null && a.value && t.reloadEvent && e.inputFactory.value.reloadHandler && nt.off(t.reloadEvent, e.inputFactory.value.reloadHandler);
5513
- }, or = (e, t, a) => {
5514
- const n = JSON.parse(JSON.stringify(e.params ?? {})), s = JSON.parse(JSON.stringify(t.params ?? {})), r = Dt(n, s, a);
5515
- Wi(e, t, t.fieldMap, r).then((o) => {
5516
- yn(t, o, !1);
5521
+ (a = e.inputFactory) != null && a.value && t.reloadEvent && e.inputFactory.value.reloadHandler && st.off(t.reloadEvent, e.inputFactory.value.reloadHandler);
5522
+ }, lr = (e, t, a) => {
5523
+ const n = JSON.parse(JSON.stringify(e.params ?? {})), s = JSON.parse(JSON.stringify(t.params ?? {})), r = Ct(n, s, a);
5524
+ Gi(e, t, t.fieldMap, r).then((o) => {
5525
+ In(t, o, !1);
5517
5526
  });
5518
- }, Wi = (e, t, a, n) => {
5527
+ }, Gi = (e, t, a, n) => {
5519
5528
  const { fieldMap: s, ...r } = e, l = {
5520
5529
  ...{
5521
5530
  url: "",
@@ -5527,19 +5536,19 @@ const nt = new $i(), mt = (e, t, a) => {
5527
5536
  },
5528
5537
  ...r
5529
5538
  };
5530
- return l.loadingText = !1, n || (n = {}), n.Query || (n.Query = {}), t.optionQuery = n, t.isOptionLoading.value = !0, Xe(l, n).then((i) => {
5531
- if ((i == null ? void 0 : i.status) === ie.SUCCESS) {
5532
- if (i.data)
5533
- return i.data;
5534
- } else if ((i == null ? void 0 : i.errno) == ua) {
5535
- Ie().logout(!1);
5539
+ return l.loadingText = !1, n || (n = {}), n.Query || (n.Query = {}), t.optionQuery = n, t.isOptionLoading.value = !0, (l.method === "GET" ? ms : qe)(l, n).then((c) => {
5540
+ if ((c == null ? void 0 : c.status) === ie.SUCCESS) {
5541
+ if (c.data)
5542
+ return c.data;
5543
+ } else if ((c == null ? void 0 : c.errno) == ua) {
5544
+ ye().logout(!1);
5536
5545
  return;
5537
5546
  }
5538
5547
  return [];
5539
5548
  }).finally(() => {
5540
5549
  t.isOptionLoading.value = !1;
5541
5550
  });
5542
- }, Gi = (e, t, a) => {
5551
+ }, Ki = (e, t, a) => {
5543
5552
  if (e === void 0) return;
5544
5553
  const n = (r) => {
5545
5554
  const o = { ...r };
@@ -5559,7 +5568,7 @@ const nt = new $i(), mt = (e, t, a) => {
5559
5568
  const r = s([e], t);
5560
5569
  return r.length > 0 ? r[0] : void 0;
5561
5570
  }
5562
- }, ma = (e) => e === void 0 ? [] : Array.isArray(e) ? e.map((t) => t.label) : [e.label], bt = (e, t, a) => {
5571
+ }, ma = (e) => e === void 0 ? [] : Array.isArray(e) ? e.map((t) => t.label) : [e.label], It = (e, t, a) => {
5563
5572
  const n = t.split(".");
5564
5573
  let s = e;
5565
5574
  for (let r = 0; r < n.length - 1; r++) {
@@ -5567,10 +5576,10 @@ const nt = new $i(), mt = (e, t, a) => {
5567
5576
  s[o] || (s[o] = {}), s = s[o];
5568
5577
  }
5569
5578
  s[n[n.length - 1]] = a;
5570
- }, lr = (e, t, a) => {
5579
+ }, ir = (e, t, a) => {
5571
5580
  if (a == null) {
5572
5581
  Object.entries(t).forEach(([n]) => {
5573
- bt(e, n, a);
5582
+ It(e, n, a);
5574
5583
  });
5575
5584
  return;
5576
5585
  }
@@ -5581,9 +5590,9 @@ const nt = new $i(), mt = (e, t, a) => {
5581
5590
  const l = parseInt(((o = s.match(/\$\{(\d+)\}/)) == null ? void 0 : o[1]) ?? "0"), i = a[l], c = s.replace(/\$\{\d+\}\./, "");
5582
5591
  if (c && i) {
5583
5592
  const m = Qt(c, i);
5584
- bt(e, n, m);
5593
+ It(e, n, m);
5585
5594
  } else
5586
- bt(e, n, i);
5595
+ It(e, n, i);
5587
5596
  } catch {
5588
5597
  console.error("outFields 格式错误:" + s, "必须是 ${index} 或者 ${index}.${key}");
5589
5598
  }
@@ -5592,16 +5601,16 @@ const nt = new $i(), mt = (e, t, a) => {
5592
5601
  }) : Object.entries(t).forEach(([n, s]) => {
5593
5602
  if (s.includes("${")) {
5594
5603
  const r = Qt(s, a);
5595
- bt(e, n, r);
5604
+ It(e, n, r);
5596
5605
  } else
5597
- bt(e, n, a[s]);
5606
+ It(e, n, a[s]);
5598
5607
  });
5599
5608
  }, pa = (e, t, a) => {
5600
5609
  var r, o;
5601
5610
  const n = (r = e.inputFactory) == null ? void 0 : r.value;
5602
- n != null && n.editorCtrl && ((o = n.errInfo) != null && o.value.errClass) && Ft(n.editorCtrl), e.selected.value = a;
5603
- const s = Gi(a, e.options.value);
5604
- if (e.selectedOptions.value = s, t.formData && t.outFields && lr(t.formData, t.outFields, s), t.changeEvent) {
5611
+ n != null && n.editorCtrl && ((o = n.errInfo) != null && o.value.errClass) && Mt(n.editorCtrl), e.selected.value = a;
5612
+ const s = Ki(a, e.options.value);
5613
+ if (e.selectedOptions.value = s, t.formData && t.outFields && ir(t.formData, t.outFields, s), t.changeEvent) {
5605
5614
  const [l, i] = t.changeEvent;
5606
5615
  if (i)
5607
5616
  if (Array.isArray(l))
@@ -5609,7 +5618,7 @@ const nt = new $i(), mt = (e, t, a) => {
5609
5618
  const m = Qt(i, { selectedValues: a });
5610
5619
  try {
5611
5620
  const g = JSON.parse(m);
5612
- nt.emit(c, g, a, s);
5621
+ st.emit(c, g, a, s);
5613
5622
  } catch (g) {
5614
5623
  console.error("eventParamsValue: ", m, g);
5615
5624
  }
@@ -5618,15 +5627,15 @@ const nt = new $i(), mt = (e, t, a) => {
5618
5627
  const c = Qt(i, { selectedValues: a });
5619
5628
  try {
5620
5629
  const m = JSON.parse(c);
5621
- nt.emit(l, m, a, s);
5630
+ st.emit(l, m, a, s);
5622
5631
  } catch (m) {
5623
5632
  console.error("eventParamsValue: ", c, m);
5624
5633
  }
5625
5634
  }
5626
5635
  else
5627
5636
  Array.isArray(l) ? l.every((c) => {
5628
- nt.emit(c, s, a);
5629
- }) : nt.emit(l, s, a);
5637
+ st.emit(c, s, a);
5638
+ }) : st.emit(l, s, a);
5630
5639
  }
5631
5640
  return n != null && n.inputEmit && n.inputEmit("change", a, s), s;
5632
5641
  }, Z = {
@@ -5667,7 +5676,7 @@ const nt = new $i(), mt = (e, t, a) => {
5667
5676
  value: "Id"
5668
5677
  }
5669
5678
  }
5670
- }, $c = (e) => {
5679
+ }, Hc = (e) => {
5671
5680
  Z.PageOption = {
5672
5681
  ...Z.PageOption,
5673
5682
  ...e.pageOption
@@ -5684,7 +5693,7 @@ const nt = new $i(), mt = (e, t, a) => {
5684
5693
  }, _a = (e) => {
5685
5694
  for (let t in e.urls)
5686
5695
  e.urls[t].api || (e.urls[t].api = e.api), e.urls[t].authorize === void 0 && (e.urls[t].authorize = e.authorize);
5687
- }, Ki = (e, t, a, n) => (_a(e), {
5696
+ }, Yi = (e, t, a, n) => (_a(e), {
5688
5697
  editorCtrl: {
5689
5698
  ...Z.EditorOption,
5690
5699
  name: "",
@@ -5700,7 +5709,7 @@ const nt = new $i(), mt = (e, t, a) => {
5700
5709
  isFormSaving: w(!1),
5701
5710
  isFormLoading: w(!1)
5702
5711
  }
5703
- }), Yi = (e, t, a) => {
5712
+ }), Bi = (e, t, a) => {
5704
5713
  _a(e);
5705
5714
  const n = {
5706
5715
  ...Z.GridOption,
@@ -5734,12 +5743,12 @@ const nt = new $i(), mt = (e, t, a) => {
5734
5743
  (s) => {
5735
5744
  s && (setTimeout(() => {
5736
5745
  n.reload.value = !1;
5737
- }, 1), n.remotePage ? sr(n) : xi(n));
5746
+ }, 1), n.remotePage ? rr(n) : Vi(n));
5738
5747
  }
5739
5748
  ), {
5740
5749
  gridCtrl: n
5741
5750
  };
5742
- }, Hc = (e, t) => {
5751
+ }, Wc = (e, t) => {
5743
5752
  _a(e);
5744
5753
  const a = {
5745
5754
  ...Z.TreeOption,
@@ -5755,12 +5764,12 @@ const nt = new $i(), mt = (e, t, a) => {
5755
5764
  (n) => {
5756
5765
  n && (setTimeout(() => {
5757
5766
  a.reload.value = !1;
5758
- }, 1), Di(a));
5767
+ }, 1), Ci(a));
5759
5768
  }
5760
5769
  ), {
5761
5770
  treeCtrl: a
5762
5771
  };
5763
- }, Ut = (e, t) => {
5772
+ }, xt = (e, t) => {
5764
5773
  const a = {
5765
5774
  ...Z.OptionOption,
5766
5775
  url: e,
@@ -5777,29 +5786,29 @@ const nt = new $i(), mt = (e, t, a) => {
5777
5786
  (n) => {
5778
5787
  n && (setTimeout(() => {
5779
5788
  a.reload.value = !1;
5780
- }, 1), mt(!0, a, t));
5789
+ }, 1), pt(!0, a, t));
5781
5790
  }
5782
5791
  ), {
5783
5792
  optionCtrl: a
5784
5793
  };
5785
- }, Wc = (e, t, a) => {
5794
+ }, Gc = (e, t, a) => {
5786
5795
  _a(e);
5787
5796
  const n = {
5788
5797
  ...Z.PageOption,
5789
5798
  ...e
5790
- }, { editorCtrl: s } = Ki(e, n, t, a), { gridCtrl: r } = Yi(e, n);
5799
+ }, { editorCtrl: s } = Yi(e, n, t, a), { gridCtrl: r } = Bi(e, n);
5791
5800
  return n.editor = s, n.grid = r, r.editor = s, r.tools = ["Reload", "RowHeight", "TableHeadset", "Fullscreen"], s.grid = r, {
5792
5801
  pageCtrl: n,
5793
5802
  editorCtrl: s,
5794
5803
  gridCtrl: r
5795
5804
  };
5796
- }, Bi = 10080 * 60 * 1e3, Va = /* @__PURE__ */ new Map(), cs = /* @__PURE__ */ new Set(), Ge = w({}), Gc = Ge, Kc = (e) => {
5805
+ }, ji = 10080 * 60 * 1e3, Va = /* @__PURE__ */ new Map(), cs = /* @__PURE__ */ new Set(), Ke = w({}), Kc = Ke, Yc = (e) => {
5797
5806
  var s;
5798
5807
  if (!e.iconUrl) return an;
5799
5808
  const t = w(!0), a = w("");
5800
5809
  let n = !0;
5801
- return (s = e.icons) != null && s.length && (n = e.icons.every((r) => Ge.value[r] !== void 0)), (e.icon && !Ge.value[e.icon] || !n) && ji(e, t).then(() => {
5802
- Xi(e.iconUrl, e.monoColor || !1), t.value = !0;
5810
+ return (s = e.icons) != null && s.length && (n = e.icons.every((r) => Ke.value[r] !== void 0)), (e.icon && !Ke.value[e.icon] || !n) && Ji(e, t).then(() => {
5811
+ qi(e.iconUrl, e.monoColor || !1), t.value = !0;
5803
5812
  }), De({
5804
5813
  props: {
5805
5814
  icon: {
@@ -5839,21 +5848,21 @@ const nt = new $i(), mt = (e, t, a) => {
5839
5848
  ), B(
5840
5849
  () => i.value,
5841
5850
  (m) => {
5842
- r.icons && (m >= r.icons.length && (i.value = 0), l.value = r.icons[i.value], Yt(a, l, l.value), o("update:iconIndex", i.value));
5851
+ r.icons && (m >= r.icons.length && (i.value = 0), l.value = r.icons[i.value], Bt(a, l, l.value), o("update:iconIndex", i.value));
5843
5852
  },
5844
5853
  { immediate: !0 }
5845
5854
  ), B(
5846
- () => Ge.value,
5855
+ () => Ke.value,
5847
5856
  () => {
5848
- Yt(a, l, l.value);
5857
+ Bt(a, l, l.value);
5849
5858
  },
5850
5859
  { deep: !0 }
5851
5860
  ), B(
5852
5861
  () => r.icon,
5853
5862
  (m) => {
5854
- Yt(a, l, m);
5863
+ Bt(a, l, m);
5855
5864
  }
5856
- ), Yt(a, l, l.value), { isLoaded: t, Icon: a, handleClick: c };
5865
+ ), Bt(a, l, l.value), { isLoaded: t, Icon: a, handleClick: c };
5857
5866
  },
5858
5867
  render() {
5859
5868
  if (!t.value)
@@ -5861,32 +5870,32 @@ const nt = new $i(), mt = (e, t, a) => {
5861
5870
  let r = this.class, o = "";
5862
5871
  Array.isArray(r) ? o = r.join(" ") : typeof r == "string" && (o = r);
5863
5872
  let l = [o];
5864
- return !/\bw-/.test(o) && !/$w-/.test(o) && l.push("w-4"), !/\bh-/.test(o) && !/$h-/.test(o) && l.push("h-4"), a.value ? ye(fs(a.value), {
5873
+ return !/\bw-/.test(o) && !/$w-/.test(o) && l.push("w-4"), !/\bh-/.test(o) && !/$h-/.test(o) && l.push("h-4"), a.value ? Ie(fs(a.value), {
5865
5874
  onClick: this.$props.clickable ? this.handleClick : void 0,
5866
5875
  class: `${l.join(" ")}`,
5867
5876
  style: {
5868
5877
  fill: "currentColor",
5869
5878
  cursor: this.$props.clickable ? "pointer" : "default",
5870
- transform: zi(this.angle, this.flip)
5879
+ transform: Zi(this.angle, this.flip)
5871
5880
  }
5872
- }) : ye("div", { class: "w-[14px] h-[14px]" });
5881
+ }) : Ie("div", { class: "w-[14px] h-[14px]" });
5873
5882
  }
5874
5883
  });
5875
- }, ji = (e, t) => {
5884
+ }, Ji = (e, t) => {
5876
5885
  let a = e.iconUrl;
5877
5886
  if (!a)
5878
5887
  return console.error("图标库地址不能为空"), Promise.resolve();
5879
5888
  if (Va.has(a))
5880
5889
  return Promise.resolve();
5881
- const n = cr(a);
5890
+ const n = ur(a);
5882
5891
  if (n)
5883
- return new Promise(async (r) => (ir(n.scriptContent), r()));
5892
+ return new Promise(async (r) => (cr(n.scriptContent), r()));
5884
5893
  t.value = !1;
5885
5894
  const s = new Promise(async (r) => {
5886
- await Ji(a, e.monoColor || !1), r(), Va.delete(a);
5895
+ await Qi(a, e.monoColor || !1), r(), Va.delete(a);
5887
5896
  });
5888
5897
  return Va.set(a, s), s;
5889
- }, Ji = async (e, t) => {
5898
+ }, Qi = async (e, t) => {
5890
5899
  try {
5891
5900
  const a = await fetch(e);
5892
5901
  if (!a.ok) {
@@ -5899,27 +5908,27 @@ const nt = new $i(), mt = (e, t, a) => {
5899
5908
  const r = n.match(s);
5900
5909
  if (r && r.length > 1) {
5901
5910
  let o = r[1];
5902
- Qi(e, o, t, n);
5911
+ Xi(e, o, t, n);
5903
5912
  }
5904
- ir(n);
5913
+ cr(n);
5905
5914
  return;
5906
5915
  } catch (a) {
5907
5916
  return console.error(P("webui.utils.iconLoader.networkError") + ":", a), null;
5908
5917
  }
5909
- }, ir = (e) => {
5918
+ }, cr = (e) => {
5910
5919
  const t = document.createElement("script");
5911
5920
  t.textContent = e, document.head.appendChild(t);
5912
- }, Qi = (e, t, a, n) => {
5921
+ }, Xi = (e, t, a, n) => {
5913
5922
  let s = `icon_cache:${e}`;
5914
5923
  const r = {
5915
5924
  windowKey: t,
5916
5925
  monoColor: a,
5917
5926
  scriptContent: n,
5918
- expireTime: Date.now() + Bi
5927
+ expireTime: Date.now() + ji
5919
5928
  // 缓存时间:7天
5920
5929
  };
5921
5930
  localStorage.setItem(s, JSON.stringify(r));
5922
- }, cr = (e) => {
5931
+ }, ur = (e) => {
5923
5932
  let t = `icon_cache:${e}`;
5924
5933
  const a = localStorage.getItem(t);
5925
5934
  if (!a) return null;
@@ -5930,22 +5939,22 @@ const nt = new $i(), mt = (e, t, a) => {
5930
5939
  return console.error("解析缓存失败:", s), null;
5931
5940
  }
5932
5941
  return n.expireTime < Date.now() ? (localStorage.removeItem(e), null) : n;
5933
- }, Yc = () => {
5942
+ }, Bc = () => {
5934
5943
  const e = Date.now();
5935
5944
  for (const t in localStorage)
5936
5945
  if (t.startsWith("icon_cache:")) {
5937
5946
  const a = localStorage.getItem(t);
5938
5947
  a && JSON.parse(a).expireTime < e && localStorage.removeItem(t);
5939
5948
  }
5940
- }, Yt = (e, t, a) => {
5949
+ }, Bt = (e, t, a) => {
5941
5950
  setTimeout(() => {
5942
- t.value = a, t.value && (e.value = Ge.value[t.value]);
5951
+ t.value = a, t.value && (e.value = Ke.value[t.value]);
5943
5952
  }, 1);
5944
- }, an = ye(
5953
+ }, an = Ie(
5945
5954
  "svg",
5946
5955
  { class: "w-4 h-4", viewBox: "0 0 50 50", style: { animation: "rotate 2s linear infinite" } },
5947
5956
  [
5948
- ye("circle", {
5957
+ Ie("circle", {
5949
5958
  cx: "25",
5950
5959
  cy: "25",
5951
5960
  r: "20",
@@ -5954,53 +5963,53 @@ const nt = new $i(), mt = (e, t, a) => {
5954
5963
  style: { strokeWidth: "3 !important" }
5955
5964
  // 强制应用线宽
5956
5965
  }),
5957
- ye("circle", {
5966
+ Ie("circle", {
5958
5967
  cx: "25",
5959
5968
  cy: "6",
5960
5969
  r: "6",
5961
5970
  fill: "currentColor"
5962
5971
  })
5963
5972
  ]
5964
- ), Xi = (e, t) => {
5965
- const a = cr(e);
5973
+ ), qi = (e, t) => {
5974
+ const a = ur(e);
5966
5975
  Object.keys(window).forEach((n) => {
5967
- n.startsWith("_iconfont_svg_string_") && (a == null ? void 0 : a.windowKey) === n && !cs.has(n) && (cs.add(n), qi(n, t));
5976
+ n.startsWith("_iconfont_svg_string_") && (a == null ? void 0 : a.windowKey) === n && !cs.has(n) && (cs.add(n), zi(n, t));
5968
5977
  });
5969
- }, qi = (e, t) => {
5978
+ }, zi = (e, t) => {
5970
5979
  const a = window[e], r = new DOMParser().parseFromString(a, "image/svg+xml").getElementsByTagName("symbol"), o = document.querySelectorAll("symbol");
5971
5980
  for (const l of r) {
5972
5981
  const i = l.id, c = Array.from(o).find((m) => m.id === i);
5973
5982
  c && t && (c.innerHTML = l.innerHTML, c.querySelectorAll("*").forEach((m) => {
5974
5983
  m.hasAttribute("fill") && m.removeAttribute("fill");
5975
- })), Ge.value[i] || (Ge.value[i] = ye("svg", { fill: "currentColor" }, [ye("use", { "xlink:href": `#${i}` })]));
5984
+ })), Ke.value[i] || (Ke.value[i] = Ie("svg", { fill: "currentColor" }, [Ie("use", { "xlink:href": `#${i}` })]));
5976
5985
  }
5977
- }, zi = (e, t) => {
5986
+ }, Zi = (e, t) => {
5978
5987
  let a = "";
5979
5988
  return e && (a += `rotate(${e}deg)`), t && (a += " scaleX(-1)"), a;
5980
- }, Bc = (e, t, a, n) => {
5981
- ur(e, [], a, n).forEach((r) => t.push(r));
5982
- }, ur = (e, t, a, n) => {
5989
+ }, jc = (e, t, a, n) => {
5990
+ fr(e, [], a, n).forEach((r) => t.push(r));
5991
+ }, fr = (e, t, a, n) => {
5983
5992
  var o, l, i, c, m, g;
5984
- const s = [], r = Ie();
5993
+ const s = [], r = ye();
5985
5994
  for (const p of e) {
5986
5995
  if (p.redirect || (o = p.meta) != null && o.hidden || // 隐藏菜单
5987
5996
  p.path.includes("/login") || p.path.includes("/error") || p.path.includes("/:page(.*)") || (i = (l = p.meta) == null ? void 0 : l.roles) != null && i.length && !r.hasRole(p.meta.roles) && (c = p.meta) != null && c.permission && !r.hasPermit(p.meta.permission, ":page"))
5988
5997
  continue;
5989
- const I = p.path.split("/");
5990
- I.unshift(...t);
5991
- const R = ur(p.children || [], I, a, n), S = {
5992
- key: I.join("/"),
5998
+ const y = p.path.split("/");
5999
+ y.unshift(...t);
6000
+ const R = fr(p.children || [], y, a, n), S = {
6001
+ key: y.join("/"),
5993
6002
  label: ((m = p.name) == null ? void 0 : m.toString()) ?? "",
5994
6003
  title: ((g = p.name) == null ? void 0 : g.toString()) ?? "",
5995
- icon: p.icon ? ye(a, { ...n, icon: p.icon }) : void 0,
6004
+ icon: p.icon ? Ie(a, { ...n, icon: p.icon }) : void 0,
5996
6005
  children: R.length > 0 ? R : void 0
5997
6006
  };
5998
6007
  (R.length > 0 || !p.children) && s.push(S);
5999
6008
  }
6000
6009
  return s;
6001
- }, us = Er([]), jc = () => {
6010
+ }, us = vr([]), Jc = () => {
6002
6011
  us.length = 0;
6003
- const e = Fe();
6012
+ const e = Me();
6004
6013
  let a = hn().TabActive;
6005
6014
  e.matchedRoutes(a).forEach((s, r) => {
6006
6015
  var l;
@@ -6011,7 +6020,7 @@ const nt = new $i(), mt = (e, t, a) => {
6011
6020
  };
6012
6021
  us.push(o);
6013
6022
  });
6014
- }, Jc = kt("hostInfo", {
6023
+ }, Qc = Dt("hostInfo", {
6015
6024
  state: () => ({
6016
6025
  hostInfo: {
6017
6026
  Host: "",
@@ -6036,7 +6045,7 @@ const nt = new $i(), mt = (e, t, a) => {
6036
6045
  */
6037
6046
  async loadHostInfo(e, t) {
6038
6047
  if (Ce()) {
6039
- const n = await It.getHostInfo();
6048
+ const n = await Nt.getHostInfo();
6040
6049
  this._setHostInfo(n);
6041
6050
  return;
6042
6051
  }
@@ -6044,7 +6053,7 @@ const nt = new $i(), mt = (e, t, a) => {
6044
6053
  return (!a || a === "/") && (a = window.location.origin), a.endsWith("/") && (a = a.slice(0, -1)), new Promise((n) => {
6045
6054
  Da.SITEHOST_API || (Da.SITEHOST_API = a);
6046
6055
  const s = t || window.location.origin;
6047
- Xe(qs.host, {
6056
+ qe(zs.host, {
6048
6057
  Query: {
6049
6058
  Host: s
6050
6059
  }
@@ -6087,7 +6096,7 @@ const nt = new $i(), mt = (e, t, a) => {
6087
6096
  if (this.hostInfo.SERVER_HOST)
6088
6097
  for (const t in this.hostInfo.SERVER_HOST) {
6089
6098
  let a = this.hostInfo.SERVER_HOST[t];
6090
- a = a.startsWith("http://") || a.startsWith("https://") || a.startsWith("//") ? a : window.location.origin + a, a.endsWith("/") && (a = a.slice(0, -1)), this.hostInfo.SERVER_HOST[t] = a, Dr[t] = a;
6099
+ a = a.startsWith("http://") || a.startsWith("https://") || a.startsWith("//") ? a : window.location.origin + a, a.endsWith("/") && (a = a.slice(0, -1)), this.hostInfo.SERVER_HOST[t] = a, Cr[t] = a;
6091
6100
  }
6092
6101
  },
6093
6102
  getHostInfo() {
@@ -6101,10 +6110,10 @@ const nt = new $i(), mt = (e, t, a) => {
6101
6110
  // storage: localStorage,
6102
6111
  // pick: ['hostInfo'],
6103
6112
  // },
6104
- }), Qc = /* @__PURE__ */ De({
6113
+ }), Xc = /* @__PURE__ */ De({
6105
6114
  __name: "index",
6106
6115
  props: {
6107
- ...Ct,
6116
+ ...Ft,
6108
6117
  /**
6109
6118
  * 选择项数据
6110
6119
  */
@@ -6119,37 +6128,37 @@ const nt = new $i(), mt = (e, t, a) => {
6119
6128
  },
6120
6129
  emits: ["change"],
6121
6130
  setup(e, { emit: t }) {
6122
- const a = e, n = ut(), s = Ut(a.url, a), r = a.optionCtrl ?? s.optionCtrl;
6131
+ const a = e, n = ft(), s = xt(a.url, a), r = a.optionCtrl ?? s.optionCtrl;
6123
6132
  r.inputFactory = ke(n);
6124
6133
  const o = w([]);
6125
6134
  r && B(
6126
6135
  () => r.options.value,
6127
- (I) => {
6128
- o.value = I || [];
6136
+ (y) => {
6137
+ o.value = y || [];
6129
6138
  },
6130
6139
  { immediate: !0, deep: !0 }
6131
6140
  );
6132
- const l = t, { editorCtrl: i, errInfo: c } = ut(), { t: m } = la(), g = et(() => {
6141
+ const l = t, { editorCtrl: i, errInfo: c } = ft(), { t: m } = la(), g = tt(() => {
6133
6142
  switch (a.size) {
6134
6143
  case "small":
6135
6144
  return "w-[46px]";
6136
6145
  default:
6137
6146
  return "w-[58px]";
6138
6147
  }
6139
- }), p = (I) => {
6140
- c != null && c.value.errClass && i && Ft(i), l("change", I);
6148
+ }), p = (y) => {
6149
+ c != null && c.value.errClass && i && Mt(i), l("change", y);
6141
6150
  };
6142
- return Rt(() => {
6151
+ return wt(() => {
6143
6152
  if (!a.data || a.data.length != 2) {
6144
6153
  console.error("Switch组件: ", a.data), se.error(m("webui.components.form.switch.error"));
6145
6154
  return;
6146
6155
  }
6147
- r && mt(r.autoload, r, a);
6148
- }), ft(() => {
6149
- r && Mt(r, a);
6150
- }), (I, R) => {
6156
+ r && pt(r.autoload, r, a);
6157
+ }), dt(() => {
6158
+ r && Ut(r, a);
6159
+ }), (y, R) => {
6151
6160
  var S;
6152
- return o.value.length === 2 ? (le(), zt(X(br), wt({
6161
+ return o.value.length === 2 ? (le(), zt(X(Ir), kt({
6153
6162
  key: 0,
6154
6163
  size: e.size,
6155
6164
  class: [
@@ -6162,14 +6171,14 @@ const nt = new $i(), mt = (e, t, a) => {
6162
6171
  unCheckedChildren: o.value[1].label,
6163
6172
  unCheckedValue: o.value[1].value,
6164
6173
  onChange: p
6165
- }, I.$attrs), null, 16, ["size", "class", "checkedChildren", "checkedValue", "unCheckedChildren", "unCheckedValue"])) : rt("", !0);
6174
+ }, y.$attrs), null, 16, ["size", "class", "checkedChildren", "checkedValue", "unCheckedChildren", "unCheckedValue"])) : ot("", !0);
6166
6175
  };
6167
6176
  }
6168
- }), Xc = /* @__PURE__ */ De({
6177
+ }), qc = /* @__PURE__ */ De({
6169
6178
  inheritAttrs: !1,
6170
6179
  __name: "index",
6171
6180
  props: {
6172
- ...Ct,
6181
+ ...Ft,
6173
6182
  value: {
6174
6183
  type: [String, Number, Array, null],
6175
6184
  default: void 0
@@ -6186,7 +6195,7 @@ const nt = new $i(), mt = (e, t, a) => {
6186
6195
  },
6187
6196
  emits: ["update:value", "select", "change", "update:labels"],
6188
6197
  setup(e, { emit: t }) {
6189
- const a = e, n = Zt(), s = ut(), r = Ut(a.url, a), o = a.optionCtrl ?? r.optionCtrl;
6198
+ const a = e, n = Zt(), s = ft(), r = xt(a.url, a), o = a.optionCtrl ?? r.optionCtrl;
6190
6199
  o.inputFactory = ke(s), o.fieldMap = {
6191
6200
  label: "Name",
6192
6201
  value: "Id",
@@ -6202,7 +6211,7 @@ const nt = new $i(), mt = (e, t, a) => {
6202
6211
  ), B(
6203
6212
  () => l.value,
6204
6213
  (S) => {
6205
- a.autoClean && a.formData && a.outFields && S !== a.value && lr(a.formData, a.outFields, null);
6214
+ a.autoClean && a.formData && a.outFields && S !== a.value && ir(a.formData, a.outFields, null);
6206
6215
  }
6207
6216
  );
6208
6217
  const { editorCtrl: i, errInfo: c, labelText: m } = s, g = t;
@@ -6215,40 +6224,40 @@ const nt = new $i(), mt = (e, t, a) => {
6215
6224
  },
6216
6225
  { immediate: !0, deep: !0 }
6217
6226
  );
6218
- const I = (S) => {
6227
+ const y = (S) => {
6219
6228
  if (p.value = [], S === "") return;
6220
6229
  let d = {
6221
6230
  Query: {
6222
6231
  SearchField: "%" + S.trim() + "%"
6223
6232
  }
6224
6233
  };
6225
- o.params = Dt(o.params, d), o && mt(!0, o, a);
6234
+ o.params = Ct(o.params, d), o && pt(!0, o, a);
6226
6235
  }, R = (S) => {
6227
6236
  const O = pa(o, a, S);
6228
6237
  g("update:value", S), g("select", S);
6229
6238
  const d = ma(O);
6230
- g("update:labels", d), c != null && c.value.errClass && i && Ft(i);
6239
+ g("update:labels", d), c != null && c.value.errClass && i && Mt(i);
6231
6240
  };
6232
6241
  return ea(() => {
6233
6242
  o && o.autoload && (o.reload.value = !0);
6234
- }), ft(() => {
6235
- o && Mt(o, a);
6243
+ }), dt(() => {
6244
+ o && Ut(o, a);
6236
6245
  }), (S, O) => {
6237
6246
  var d;
6238
6247
  return le(), ge("div", null, [
6239
- Ye(X(yr), wt({
6248
+ Be(X(yr), kt({
6240
6249
  value: l.value,
6241
6250
  "onUpdate:value": O[0] || (O[0] = (_) => l.value = _),
6242
6251
  class: ["w-full", (d = X(c)) == null ? void 0 : d.errClass],
6243
6252
  options: p.value,
6244
- onSearch: I,
6253
+ onSearch: y,
6245
6254
  onSelect: R
6246
6255
  }, X(n), { "allow-clear": !1 }), {
6247
- option: Me(({ label: _ }) => [
6248
- ta(Be(_), 1)
6256
+ option: Ue(({ label: _ }) => [
6257
+ ta(je(_), 1)
6249
6258
  ]),
6250
- default: Me(() => [
6251
- Ye(X(Ir), {
6259
+ default: Ue(() => [
6260
+ Be(X(Nr), {
6252
6261
  "allow-clear": "",
6253
6262
  placeholder: "请输入并选择" + X(m)
6254
6263
  }, null, 8, ["placeholder"])
@@ -6258,14 +6267,14 @@ const nt = new $i(), mt = (e, t, a) => {
6258
6267
  ]);
6259
6268
  };
6260
6269
  }
6261
- }), Zi = { class: "min-h-[32px] pt-[5px]" }, ec = {
6270
+ }), ec = { class: "min-h-[32px] pt-[5px]" }, tc = {
6262
6271
  key: 1,
6263
6272
  class: "text-center text-gray-500"
6264
- }, qc = /* @__PURE__ */ De({
6273
+ }, zc = /* @__PURE__ */ De({
6265
6274
  inheritAttrs: !1,
6266
6275
  __name: "index",
6267
6276
  props: {
6268
- ...Ct,
6277
+ ...Ft,
6269
6278
  nodata: {
6270
6279
  type: String,
6271
6280
  default: ""
@@ -6282,13 +6291,13 @@ const nt = new $i(), mt = (e, t, a) => {
6282
6291
  },
6283
6292
  emits: ["change", "update:labels"],
6284
6293
  setup(e, { emit: t }) {
6285
- var p, I, R;
6286
- const a = e, n = Zt(), s = ut(), r = Ut(a.url, a), o = a.optionCtrl ?? r.optionCtrl;
6294
+ var p, y, R;
6295
+ const a = e, n = Zt(), s = ft(), r = xt(a.url, a), o = a.optionCtrl ?? r.optionCtrl;
6287
6296
  o.inputFactory = ke(s);
6288
6297
  const l = w({
6289
6298
  ...o == null ? void 0 : o.url,
6290
6299
  url: ((p = o == null ? void 0 : o.url) == null ? void 0 : p.url) || "",
6291
- fieldMap: (o == null ? void 0 : o.fieldMap) || ((I = o == null ? void 0 : o.url) == null ? void 0 : I.fieldMap),
6300
+ fieldMap: (o == null ? void 0 : o.fieldMap) || ((y = o == null ? void 0 : o.url) == null ? void 0 : y.fieldMap),
6292
6301
  params: (o == null ? void 0 : o.params) || ((R = o == null ? void 0 : o.url) == null ? void 0 : R.params),
6293
6302
  loadingText: !1
6294
6303
  }), { errInfo: i } = s, c = t;
@@ -6307,24 +6316,24 @@ const nt = new $i(), mt = (e, t, a) => {
6307
6316
  };
6308
6317
  return ea(() => {
6309
6318
  o && o.autoload && (o.reload.value = !0);
6310
- }), Rt(() => {
6319
+ }), wt(() => {
6311
6320
  l.value && !l.value.fieldMap && (l.value.fieldMap = {
6312
6321
  title: "Name",
6313
6322
  label: "Name",
6314
6323
  value: "Id",
6315
6324
  key: "Id"
6316
- }), o && mt(o.autoload, o, a);
6317
- }), ft(() => {
6318
- o && Mt(o, a);
6319
- }), (S, O) => (le(), ge("div", Zi, [
6320
- Ye(X(Nr), wt({
6325
+ }), o && pt(o.autoload, o, a);
6326
+ }), dt(() => {
6327
+ o && Ut(o, a);
6328
+ }), (S, O) => (le(), ge("div", ec, [
6329
+ Be(X(Sr), kt({
6321
6330
  onChange: g,
6322
6331
  class: "w-full mb-[-3px]"
6323
6332
  }, X(n)), {
6324
- default: Me(() => [
6325
- m.value.length > 0 ? (le(!0), ge(Ke, { key: 0 }, nn(m.value, (d) => {
6333
+ default: Ue(() => [
6334
+ m.value.length > 0 ? (le(!0), ge(Ye, { key: 0 }, nn(m.value, (d) => {
6326
6335
  var _;
6327
- return le(), zt(X(Sr), {
6336
+ return le(), zt(X(Tr), {
6328
6337
  key: d.value,
6329
6338
  value: d.value,
6330
6339
  disabled: d.disabled || d.value && e.disabledItems && e.disabledItems.indexOf(d.value.toString()) > -1,
@@ -6335,25 +6344,25 @@ const nt = new $i(), mt = (e, t, a) => {
6335
6344
  e.wrap ? `w-1/${a.wrap}` : ""
6336
6345
  ])
6337
6346
  }, {
6338
- default: Me(() => [
6339
- ta(Be(d.label), 1)
6347
+ default: Ue(() => [
6348
+ ta(je(d.label), 1)
6340
6349
  ]),
6341
6350
  _: 2
6342
6351
  }, 1032, ["value", "disabled", "class"]);
6343
- }), 128)) : e.nodata ? (le(), ge("div", ec, Be(e.nodata), 1)) : rt("", !0)
6352
+ }), 128)) : e.nodata ? (le(), ge("div", tc, je(e.nodata), 1)) : ot("", !0)
6344
6353
  ]),
6345
6354
  _: 1
6346
6355
  }, 16)
6347
6356
  ]));
6348
6357
  }
6349
- }), tc = { class: "min-h-[32px] pt-1" }, ac = {
6358
+ }), ac = { class: "min-h-[32px] pt-1" }, nc = {
6350
6359
  key: 1,
6351
6360
  class: "text-center text-gray-500"
6352
- }, zc = /* @__PURE__ */ De({
6361
+ }, Zc = /* @__PURE__ */ De({
6353
6362
  inheritAttrs: !1,
6354
6363
  __name: "index",
6355
6364
  props: {
6356
- ...Ct,
6365
+ ...Ft,
6357
6366
  value: {
6358
6367
  type: [String, Number, null, Array],
6359
6368
  default: void 0
@@ -6372,7 +6381,7 @@ const nt = new $i(), mt = (e, t, a) => {
6372
6381
  emits: ["change", "update:value", "update:labels"],
6373
6382
  setup(e, { emit: t }) {
6374
6383
  var R, S, O;
6375
- const a = e, n = Zt(), s = ut(), r = Ut(a.url, a), o = a.optionCtrl ?? r.optionCtrl;
6384
+ const a = e, n = Zt(), s = ft(), r = xt(a.url, a), o = a.optionCtrl ?? r.optionCtrl;
6376
6385
  o.inputFactory = ke(s);
6377
6386
  const l = w({
6378
6387
  ...o == null ? void 0 : o.url,
@@ -6400,42 +6409,42 @@ const nt = new $i(), mt = (e, t, a) => {
6400
6409
  );
6401
6410
  const p = (d, _) => {
6402
6411
  if (typeof d == "object" && typeof _ == "object") {
6403
- const y = JSON.stringify(d) === JSON.stringify(_);
6404
- return y && (i.value = d), y;
6412
+ const I = JSON.stringify(d) === JSON.stringify(_);
6413
+ return I && (i.value = d), I;
6405
6414
  }
6406
6415
  return d === _;
6407
- }, I = (d) => {
6408
- const _ = d.target.value, y = pa(o, a, _), E = ma(y);
6416
+ }, y = (d) => {
6417
+ const _ = d.target.value, I = pa(o, a, _), E = ma(I);
6409
6418
  g("update:labels", E);
6410
6419
  };
6411
6420
  return ea(() => {
6412
6421
  o && o.autoload && (o.reload.value = !0);
6413
- }), Rt(() => {
6422
+ }), wt(() => {
6414
6423
  l.value && !l.value.fieldMap && (l.value.fieldMap = {
6415
6424
  label: "Name",
6416
6425
  value: "Id",
6417
6426
  key: "Id"
6418
- }), o && mt(o.autoload, o, a);
6419
- }), ft(() => {
6420
- o && Mt(o, a);
6421
- }), (d, _) => (le(), ge("div", tc, [
6422
- Ye(X(Tr), wt({
6427
+ }), o && pt(o.autoload, o, a);
6428
+ }), dt(() => {
6429
+ o && Ut(o, a);
6430
+ }), (d, _) => (le(), ge("div", ac, [
6431
+ Be(X(Lr), kt({
6423
6432
  value: i.value,
6424
- "onUpdate:value": _[0] || (_[0] = (y) => i.value = y),
6433
+ "onUpdate:value": _[0] || (_[0] = (I) => i.value = I),
6425
6434
  autocheck: !1,
6426
- onChange: I,
6435
+ onChange: y,
6427
6436
  class: "w-full flex align-items flex-wrap mb-[-3px]"
6428
6437
  }, X(n)), {
6429
- default: Me(() => [
6430
- m.value.length > 0 ? (le(!0), ge(Ke, { key: 0 }, nn(m.value, (y) => {
6438
+ default: Ue(() => [
6439
+ m.value.length > 0 ? (le(!0), ge(Ye, { key: 0 }, nn(m.value, (I) => {
6431
6440
  var E;
6432
- return le(), ge(Ke, {
6433
- key: y.value
6441
+ return le(), ge(Ye, {
6442
+ key: I.value
6434
6443
  }, [
6435
- y.visible !== !1 ? (le(), zt(X(Lr), {
6444
+ I.visible !== !1 ? (le(), zt(X(Or), {
6436
6445
  key: 0,
6437
- checked: p(y.value, a.value),
6438
- value: y.value,
6446
+ checked: p(I.value, a.value),
6447
+ value: I.value,
6439
6448
  class: ds([
6440
6449
  ((E = X(c)) == null ? void 0 : E.errClass) === "error" ? "error !text-red-400" : "",
6441
6450
  "text-nowrap",
@@ -6443,26 +6452,26 @@ const nt = new $i(), mt = (e, t, a) => {
6443
6452
  e.wrap ? `w-1/${a.wrap}` : ""
6444
6453
  ])
6445
6454
  }, {
6446
- default: Me(() => [
6447
- ta(Be(y.label), 1)
6455
+ default: Ue(() => [
6456
+ ta(je(I.label), 1)
6448
6457
  ]),
6449
6458
  _: 2
6450
- }, 1032, ["checked", "value", "class"])) : rt("", !0)
6459
+ }, 1032, ["checked", "value", "class"])) : ot("", !0)
6451
6460
  ], 64);
6452
- }), 128)) : e.nodata ? (le(), ge("div", ac, Be(e.nodata), 1)) : rt("", !0)
6461
+ }), 128)) : e.nodata ? (le(), ge("div", nc, je(e.nodata), 1)) : ot("", !0)
6453
6462
  ]),
6454
6463
  _: 1
6455
6464
  }, 16, ["value"])
6456
6465
  ]));
6457
6466
  }
6458
- }), nc = {
6467
+ }), sc = {
6459
6468
  key: 0,
6460
6469
  class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
6461
- }, Zc = /* @__PURE__ */ De({
6470
+ }, eu = /* @__PURE__ */ De({
6462
6471
  inheritAttrs: !1,
6463
6472
  __name: "index",
6464
6473
  props: {
6465
- ...Ct,
6474
+ ...Ft,
6466
6475
  value: {
6467
6476
  type: [String, Number, Array, null],
6468
6477
  default: void 0
@@ -6493,33 +6502,33 @@ const nt = new $i(), mt = (e, t, a) => {
6493
6502
  },
6494
6503
  emits: ["change", "update:value", "update:label", "update:labels"],
6495
6504
  setup(e, { emit: t }) {
6496
- var _, y, E;
6497
- const a = e, n = a.value === void 0 ? !0 : a.undefValue, s = ut(), { editorCtrl: r, errInfo: o, labelText: l } = s, i = Ut(a.url, a), c = a.optionCtrl ?? i.optionCtrl;
6505
+ var _, I, E;
6506
+ const a = e, n = a.value === void 0 ? !0 : a.undefValue, s = ft(), { editorCtrl: r, errInfo: o, labelText: l } = s, i = xt(a.url, a), c = a.optionCtrl ?? i.optionCtrl;
6498
6507
  c.inputFactory = ke(s);
6499
6508
  const m = Zt();
6500
6509
  c.autoload = a.autoload ?? c.autoload;
6501
6510
  const g = w({
6502
6511
  ...c == null ? void 0 : c.url,
6503
6512
  url: ((_ = c == null ? void 0 : c.url) == null ? void 0 : _.url) || "",
6504
- fieldMap: (c == null ? void 0 : c.fieldMap) || ((y = c == null ? void 0 : c.url) == null ? void 0 : y.fieldMap),
6513
+ fieldMap: (c == null ? void 0 : c.fieldMap) || ((I = c == null ? void 0 : c.url) == null ? void 0 : I.fieldMap),
6505
6514
  params: (c == null ? void 0 : c.params) || ((E = c == null ? void 0 : c.url) == null ? void 0 : E.params),
6506
6515
  loadingText: !1
6507
- }), p = w(m.placeholder), I = w(c == null ? void 0 : c.selected.value), R = t;
6516
+ }), p = w(m.placeholder), y = w(c == null ? void 0 : c.selected.value), R = t;
6508
6517
  s.inputEmit = R;
6509
6518
  const S = (b) => {
6510
6519
  const L = pa(c, a, b), v = ma(L);
6511
- I.value = b, R("update:labels", v), R("update:label", v.join(";")), R("change", b, L), o != null && o.value.errClass && r && Ft(r);
6520
+ y.value = b, R("update:labels", v), R("update:label", v.join(";")), R("change", b, L), o != null && o.value.errClass && r && Mt(r);
6512
6521
  }, O = w((c == null ? void 0 : c.options.value) || []), d = (b) => {
6513
6522
  if (b.length > 0 && ve(a.value) && a.selectFirst)
6514
6523
  for (let L = 0; L < b.length; L++) {
6515
6524
  const v = b[L];
6516
6525
  if (v.disabled === void 0 || v.disabled === !1) {
6517
- I.value = v.value;
6526
+ y.value = v.value;
6518
6527
  break;
6519
6528
  }
6520
6529
  }
6521
- else b.length > 0 && (I.value = a.value === null ? void 0 : a.value);
6522
- b.length > 0 && I.value !== void 0 && S(I.value);
6530
+ else b.length > 0 && (y.value = a.value === null ? void 0 : a.value);
6531
+ b.length > 0 && y.value !== void 0 && S(y.value);
6523
6532
  };
6524
6533
  return c && (B(
6525
6534
  () => c.options.value,
@@ -6530,7 +6539,7 @@ const nt = new $i(), mt = (e, t, a) => {
6530
6539
  ), B(
6531
6540
  () => c.selected.value,
6532
6541
  (b) => {
6533
- I.value = b;
6542
+ y.value = b;
6534
6543
  }
6535
6544
  )), B(
6536
6545
  () => O.value,
@@ -6546,18 +6555,18 @@ const nt = new $i(), mt = (e, t, a) => {
6546
6555
  ), B(
6547
6556
  () => a.value,
6548
6557
  (b) => {
6549
- I.value = b;
6558
+ y.value = b;
6550
6559
  },
6551
6560
  { immediate: !0 }
6552
6561
  ), B(
6553
- () => I.value,
6562
+ () => y.value,
6554
6563
  (b) => {
6555
6564
  const L = b === void 0 ? n ? void 0 : null : b;
6556
6565
  c && (c.selected.value = L), R("update:value", L);
6557
6566
  }
6558
6567
  ), ea(() => {
6559
6568
  c && c.autoload && (c.reload.value = !0);
6560
- }), Rt(() => {
6569
+ }), wt(() => {
6561
6570
  if (g.value && !g.value.fieldMap && (g.value.fieldMap = {
6562
6571
  label: "Name",
6563
6572
  value: "Id",
@@ -6567,39 +6576,39 @@ const nt = new $i(), mt = (e, t, a) => {
6567
6576
  O.value = b, d(b);
6568
6577
  } else if (c) {
6569
6578
  const b = c.options.value || [];
6570
- b.length > 0 ? (O.value = b, d(b)) : mt(c.autoload, c, a);
6579
+ b.length > 0 ? (O.value = b, d(b)) : pt(c.autoload, c, a);
6571
6580
  }
6572
- }), ft(() => {
6573
- c && Mt(c, a);
6581
+ }), dt(() => {
6582
+ c && Ut(c, a);
6574
6583
  }), (b, L) => {
6575
6584
  var v, C, M;
6576
6585
  return le(), ge("div", null, [
6577
- (C = (v = X(c)) == null ? void 0 : v.url) != null && C.loading ? (le(), ge("div", nc, [
6578
- Ye(X(an), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
6579
- vr("span", null, Be(X(P)("webui.components.form.upload.dataLoading")), 1)
6580
- ])) : rt("", !0),
6581
- Ye(X(Or), wt({
6586
+ (C = (v = X(c)) == null ? void 0 : v.url) != null && C.loading ? (le(), ge("div", sc, [
6587
+ Be(X(an), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
6588
+ br("span", null, je(X(P)("webui.components.form.upload.dataLoading")), 1)
6589
+ ])) : ot("", !0),
6590
+ Be(X(Ar), kt({
6582
6591
  class: [(M = X(o)) == null ? void 0 : M.errClass, "w-full"],
6583
- value: I.value,
6584
- "onUpdate:value": L[0] || (L[0] = (K) => I.value = K),
6592
+ value: y.value,
6593
+ "onUpdate:value": L[0] || (L[0] = (K) => y.value = K),
6585
6594
  "allow-clear": !0,
6586
6595
  onChange: S,
6587
6596
  placeholder: p.value,
6588
6597
  "label-in-value": !1
6589
6598
  }, X(m)), {
6590
- default: Me(() => [
6591
- (le(!0), ge(Ke, null, nn(O.value, (K) => (le(), ge(Ke, {
6599
+ default: Ue(() => [
6600
+ (le(!0), ge(Ye, null, nn(O.value, (K) => (le(), ge(Ye, {
6592
6601
  key: K.value
6593
6602
  }, [
6594
- K.visible !== !1 ? (le(), zt(X(Ar), {
6603
+ K.visible !== !1 ? (le(), zt(X(Pr), {
6595
6604
  key: 0,
6596
6605
  value: K.value
6597
6606
  }, {
6598
- default: Me(() => [
6599
- ta(Be(K.label), 1)
6607
+ default: Ue(() => [
6608
+ ta(je(K.label), 1)
6600
6609
  ]),
6601
6610
  _: 2
6602
- }, 1032, ["value"])) : rt("", !0)
6611
+ }, 1032, ["value"])) : ot("", !0)
6603
6612
  ], 64))), 128))
6604
6613
  ]),
6605
6614
  _: 1
@@ -6607,100 +6616,100 @@ const nt = new $i(), mt = (e, t, a) => {
6607
6616
  ]);
6608
6617
  };
6609
6618
  }
6610
- }), sc = w(!1), eu = {
6619
+ }), rc = w(!1), tu = {
6611
6620
  label: P("webui.utils.tools.templateManagement"),
6612
6621
  key: "uploadTemp",
6613
6622
  type: "primary",
6614
6623
  icon: "icon-download",
6615
6624
  click: () => {
6616
- sc.value = !0;
6625
+ rc.value = !0;
6617
6626
  }
6618
6627
  };
6619
6628
  export {
6620
6629
  P as $,
6621
6630
  pa as A,
6622
6631
  ma as B,
6623
- Ft as C,
6624
- qc as D,
6632
+ Mt as C,
6633
+ zc as D,
6625
6634
  la as E,
6626
- zc as F,
6627
- Zc as G,
6635
+ Zc as F,
6636
+ eu as G,
6628
6637
  En as H,
6629
- Mr as I,
6638
+ Ur as I,
6630
6639
  yc as J,
6631
- $c as K,
6640
+ Hc as K,
6632
6641
  ua as L,
6633
- It as M,
6634
- Ki as N,
6642
+ Nt as M,
6643
+ Yi as N,
6635
6644
  en as O,
6636
6645
  Re as P,
6637
- Yi as Q,
6638
- Hc as R,
6639
- Wc as S,
6640
- Gi as T,
6641
- lr as U,
6642
- Gc as V,
6643
- Yc as W,
6644
- qi as X,
6645
- zi as Y,
6646
- Bc as Z,
6647
- Qc as _,
6648
- Nc as a,
6646
+ Bi as Q,
6647
+ Wc as R,
6648
+ Gc as S,
6649
+ Ki as T,
6650
+ ir as U,
6651
+ Kc as V,
6652
+ Bc as W,
6653
+ zi as X,
6654
+ Zi as Y,
6655
+ jc as Z,
6656
+ Xc as _,
6657
+ Sc as a,
6649
6658
  us as a0,
6650
- jc as a1,
6651
- ar as a2,
6652
- kc as a3,
6653
- nr as a4,
6654
- Sc as a5,
6655
- Oc as a6,
6659
+ Jc as a1,
6660
+ nr as a2,
6661
+ Dc as a3,
6662
+ sr as a4,
6663
+ Tc as a5,
6664
+ Ac as a6,
6656
6665
  vn as a7,
6657
- Tc as a8,
6658
- Lc as a9,
6659
- Fc as aa,
6660
- Vi as ab,
6661
- rr as ac,
6662
- Uc as ad,
6663
- Ic as ae,
6664
- tr as af,
6665
- ki as ag,
6666
+ Lc as a8,
6667
+ Oc as a9,
6668
+ Mc as aa,
6669
+ $i as ab,
6670
+ or as ac,
6671
+ xc as ad,
6672
+ Nc as ae,
6673
+ ar as af,
6674
+ Di as ag,
6666
6675
  tn as ah,
6667
- nt as ai,
6676
+ st as ai,
6668
6677
  yt as aj,
6669
- jt as ak,
6670
- Fe as al,
6671
- Jc as am,
6678
+ Jt as ak,
6679
+ Me as al,
6680
+ Qc as am,
6672
6681
  hn as an,
6673
- sc as ao,
6674
- eu as ap,
6682
+ rc as ao,
6683
+ tu as ap,
6675
6684
  me as aq,
6676
- hc as ar,
6677
- bc as as,
6678
- vc as at,
6679
- Ec as au,
6680
- ct as av,
6681
- Rc as b,
6682
- Kc as c,
6683
- wc as d,
6684
- Ac as e,
6685
- xc as f,
6686
- Ui as g,
6687
- Vc as h,
6685
+ Ec as ar,
6686
+ Ic as as,
6687
+ bc as at,
6688
+ vc as au,
6689
+ ut as av,
6690
+ wc as b,
6691
+ Yc as c,
6692
+ kc as d,
6693
+ Pc as e,
6694
+ Vc as f,
6695
+ xi as g,
6696
+ $c as h,
6688
6697
  ve as i,
6689
- Cc as j,
6690
- Dc as k,
6691
- sr as l,
6692
- xi as m,
6693
- Mc as n,
6694
- Pc as o,
6695
- Ci as p,
6696
- Di as q,
6698
+ Fc as j,
6699
+ Cc as k,
6700
+ rr as l,
6701
+ Vi as m,
6702
+ Uc as n,
6703
+ Rc as o,
6704
+ Fi as p,
6705
+ Ci as q,
6697
6706
  ca as r,
6698
- Xc as s,
6699
- Ct as t,
6700
- Ie as u,
6701
- ut as v,
6702
- Ut as w,
6703
- mt as x,
6704
- Mt as y,
6707
+ qc as s,
6708
+ Ft as t,
6709
+ ye as u,
6710
+ ft as v,
6711
+ xt as w,
6712
+ pt as x,
6713
+ Ut as y,
6705
6714
  an as z
6706
6715
  };