@skyfox2000/webui 1.5.3 → 1.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,20 +1,20 @@
1
- var ss = Object.defineProperty;
2
- var os = (e, t, n) => t in e ? ss(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var oe = (e, t, n) => os(e, typeof t != "symbol" ? t + "" : t, n);
1
+ var os = Object.defineProperty;
2
+ var ls = (e, t, n) => t in e ? os(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var oe = (e, t, n) => ls(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import * as Pn from "vue";
5
- import { ref as R, h as ve, nextTick as ls, inject as et, provide as Rn, watch as K, toRaw as cr, shallowRef as ke, defineComponent as De, reactive as is, computed as Ze, onMounted as Rt, onUnmounted as ft, createBlock as Zt, createCommentVNode as rt, openBlock as se, unref as q, mergeProps as kt, useAttrs as zt, onActivated as en, createElementBlock as pe, createVNode as Ge, withCtx as Me, createTextVNode as tn, toDisplayString as st, Fragment as Ke, renderList as Zn, normalizeClass as ur, createElementVNode as cs, effectScope as us, isRef as fs, Text as ds } from "vue";
6
- import { Switch as ms, AutoComplete as ps, Input as _s, CheckboxGroup as gs, Checkbox as hs, RadioGroup as Es, Radio as vs, Select as bs, SelectOption as Is } from "ant-design-vue";
7
- import { createPinia as ys, defineStore as Dt } from "pinia";
8
- import Ns from "pinia-plugin-persistedstate";
9
- import { EnvConfig as Qt, AppAction as ya, AppSource as Na, isMicroApp as Ce, isBaseMicroApp as Ts, combineParams as Ct } from "@skyfox2000/microbase";
10
- import { httpPost as Qe, ResStatus as le, setToken as Ht, fieldMapping as Ls, parseFieldTemplate as Jt, API_HOST as kn, SERVER_HOST as Os } from "@skyfox2000/fapi";
5
+ import { ref as R, h as ve, nextTick as is, inject as et, provide as Rn, watch as K, toRaw as ur, shallowRef as ke, defineComponent as De, reactive as cs, computed as Ze, onMounted as Rt, onUnmounted as ft, createBlock as Zt, createCommentVNode as rt, openBlock as se, unref as q, mergeProps as kt, useAttrs as zt, onActivated as en, createElementBlock as pe, createVNode as Ge, withCtx as Me, createTextVNode as tn, toDisplayString as st, Fragment as Ke, renderList as zn, normalizeClass as fr, createElementVNode as us, effectScope as fs, isRef as ds, Text as ms } from "vue";
6
+ import { Switch as ps, AutoComplete as _s, Input as gs, CheckboxGroup as hs, Checkbox as Es, RadioGroup as vs, Radio as bs, Select as Is, SelectOption as ys } from "ant-design-vue";
7
+ import { createPinia as Ns, defineStore as Dt } from "pinia";
8
+ import Ts from "pinia-plugin-persistedstate";
9
+ import { EnvConfig as Qt, AppAction as Na, AppSource as Ta, isMicroApp as Ce, isBaseMicroApp as Ls, combineParams as Ct } from "@skyfox2000/microbase";
10
+ import { httpPost as Qe, ResStatus as le, setToken as Ht, fieldMapping as Os, parseFieldTemplate as Jt, API_HOST as kn, SERVER_HOST as Ss } from "@skyfox2000/fapi";
11
11
  import te from "vue-m-message";
12
- import { createRouter as Ss, createWebHashHistory as As } from "vue-router";
13
- import zn from "async-validator";
12
+ import { createRouter as As, createWebHashHistory as Ps } from "vue-router";
13
+ import ea from "async-validator";
14
14
  import "dayjs";
15
15
  import "vue-draggable-next";
16
- const Ps = ys();
17
- Ps.use(Ns);
16
+ const Rs = Ns();
17
+ Rs.use(Ts);
18
18
  var Pe = /* @__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))(Pe || {});
19
19
  const ne = class ne {
20
20
  };
@@ -179,18 +179,18 @@ const wt = {
179
179
  type: Object,
180
180
  required: !1
181
181
  }
182
- }, he = (e) => e == null || e === "" ? !0 : Array.isArray(e) ? e.length === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !1, Ta = "/login/", jt = [], Rs = (e) => {
182
+ }, he = (e) => e == null || e === "" ? !0 : Array.isArray(e) ? e.length === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !1, La = "/login/", jt = [], ks = (e) => {
183
183
  for (const t of e) {
184
184
  const n = jt.findIndex((a) => a.path === t.path);
185
185
  n !== -1 && jt.splice(n, 1), jt.push(t), nn.addRoute(t);
186
186
  }
187
- }, fr = (e, t, n, a = "") => {
187
+ }, dr = (e, t, n, a = "") => {
188
188
  const r = a + (a ? "/" : "") + e.path;
189
- t[r] = { ...e, parent: n }, e.children && e.children.forEach((s) => fr(s, t, e, r));
190
- }, nn = Ss({
191
- history: As("/"),
189
+ t[r] = { ...e, parent: n }, e.children && e.children.forEach((s) => dr(s, t, e, r));
190
+ }, nn = As({
191
+ history: Ps("/"),
192
192
  routes: jt
193
- }), ks = (e, t) => {
193
+ }), Ds = (e, t) => {
194
194
  var r, s;
195
195
  const n = ((r = e.meta) == null ? void 0 : r.roles) ?? [], a = (s = e.meta) == null ? void 0 : s.permission;
196
196
  if (!t)
@@ -215,7 +215,7 @@ const wt = {
215
215
  nn.beforeEach((e, t, n) => {
216
216
  var l;
217
217
  const a = e;
218
- if (e.path.startsWith("/error/") || e.path.startsWith(Ta))
218
+ if (e.path.startsWith("/error/") || e.path.startsWith(La))
219
219
  return n();
220
220
  const r = a.meta, o = ((r == null ? void 0 : r.roles) ?? []).length > 0 || ((l = r == null ? void 0 : r.permission) == null ? void 0 : l.length);
221
221
  if (e.path === "/") {
@@ -237,7 +237,7 @@ nn.beforeEach((e, t, n) => {
237
237
  else {
238
238
  const i = be();
239
239
  if (!i.isLogin)
240
- n({ path: Ta });
240
+ n({ path: La });
241
241
  else {
242
242
  if (!we().menuLoaded) {
243
243
  It.value = {
@@ -246,24 +246,24 @@ nn.beforeEach((e, t, n) => {
246
246
  };
247
247
  return;
248
248
  }
249
- const m = ks(a, i.isLogin);
249
+ const m = Ds(a, i.isLogin);
250
250
  n();
251
251
  }
252
252
  }
253
253
  });
254
- const Ds = (e) => {
254
+ const Cs = (e) => {
255
255
  if (It.value) {
256
256
  const { to: t, next: n } = It.value;
257
257
  It.value = null, t.path === "/" ? n(e) : n(t.path);
258
258
  }
259
- }, Cs = (e) => {
260
- const t = ea();
259
+ }, ws = (e) => {
260
+ const t = ta();
261
261
  if (t.TabEnabled) {
262
- if (ws(e.key, t.TabPanes))
262
+ if (Ms(e.key, t.TabPanes))
263
263
  return;
264
264
  t.TabPanes.push(e);
265
265
  }
266
- }, ws = (e, t) => t.find((n) => n.key === e), ea = Dt("pageInfo", {
266
+ }, Ms = (e, t) => t.find((n) => n.key === e), ta = Dt("pageInfo", {
267
267
  state: () => ({
268
268
  TabActive: "",
269
269
  TabPanes: [],
@@ -308,7 +308,7 @@ const Ds = (e) => {
308
308
  // 默认为true
309
309
  keepAlive: !(n.meta && !n.meta.keepAlive)
310
310
  };
311
- Cs(a), this.TabActive = e;
311
+ ws(a), this.TabActive = e;
312
312
  }
313
313
  },
314
314
  persist: !1
@@ -418,14 +418,14 @@ const yt = {
418
418
  userLogout: ee.userLogout.bind(ee),
419
419
  mainAppPush: ee.mainAppPush.bind(ee),
420
420
  isInMicroApp: ee.isInMicroApp.bind(ee)
421
- }, Ms = {
421
+ }, Fs = {
422
422
  appList: {
423
423
  api: "PLATFORM_API",
424
424
  authorize: !0,
425
425
  url: "/api/RCTenanetOpSrv/getApps",
426
426
  loadingText: !1
427
427
  }
428
- }, Dn = /* @__PURE__ */ new Map(), Fs = (e) => {
428
+ }, Dn = /* @__PURE__ */ new Map(), Us = (e) => {
429
429
  const t = be(), { roles: n, permission: a } = e.meta || {};
430
430
  if (he(n) && he(a))
431
431
  return !0;
@@ -436,17 +436,17 @@ const yt = {
436
436
  return he(n) || (r = t.hasRole(n)), t.isAdmin() ? r : (he(a) || (s = t.hasPermit(e.path, a)), r || s);
437
437
  }
438
438
  return !1;
439
- }, dr = (e) => e.map((t) => {
439
+ }, mr = (e) => e.map((t) => {
440
440
  const n = { ...t };
441
- return Fs(n) ? (n.children && (n.children = dr(n.children)), n) : null;
442
- }).filter(Boolean), mr = (e, t = "") => {
441
+ return Us(n) ? (n.children && (n.children = mr(n.children)), n) : null;
442
+ }).filter(Boolean), pr = (e, t = "") => {
443
443
  for (const n of e) {
444
444
  if (!n.children && !n.redirect) {
445
445
  let a = t + n.path;
446
446
  return a.startsWith("/") || (a = "/" + a), a;
447
447
  }
448
448
  if (n.children && n.children.length > 0 && n.path !== "/error" && n.path !== "/login" && n.path !== "/:page(.*)") {
449
- const a = mr(n.children, t + n.path + "/");
449
+ const a = pr(n.children, t + n.path + "/");
450
450
  if (a)
451
451
  return a;
452
452
  }
@@ -459,8 +459,8 @@ const yt = {
459
459
  AppCode: "",
460
460
  Version: "",
461
461
  Host: "",
462
- Source: Na.Manual,
463
- Action: ya.App,
462
+ Source: Ta.Manual,
463
+ Action: Na.App,
464
464
  Path: "",
465
465
  Icon: "",
466
466
  Routes: [],
@@ -485,7 +485,7 @@ const yt = {
485
485
  });
486
486
  },
487
487
  async getRemoteAppList() {
488
- return Qe(Ms.appList, {
488
+ return Qe(Fs.appList, {
489
489
  Query: {
490
490
  AppCode: this.appInfo.AppCode,
491
491
  Enabled: 1
@@ -529,7 +529,7 @@ const yt = {
529
529
  flattenRoutes: {},
530
530
  Routes: t ?? [],
531
531
  defaultPage: ""
532
- }), (!Ce() || !Ts()) && (await be().getRolePermits(n.Id), this.appInfo.Routes.length && this.setAppRoutes(this.appInfo.Routes)));
532
+ }), (!Ce() || !Ls()) && (await be().getRolePermits(n.Id), this.appInfo.Routes.length && this.setAppRoutes(this.appInfo.Routes)));
533
533
  },
534
534
  /**
535
535
  * 设置当前应用路由信息
@@ -544,18 +544,18 @@ const yt = {
544
544
  };
545
545
  const t = this.appInfo.flattenRoutes;
546
546
  for (const n of e)
547
- fr(n, t, void 0);
547
+ dr(n, t, void 0);
548
548
  if (Object.keys(t).forEach((n) => {
549
549
  const a = t[n];
550
550
  a.children || !a.component || (a.meta && a.meta.keepAlive === !1 ? this.ExcludeComponents.push(n) : this.CachedComponents.push(n));
551
551
  }), be().isLogin) {
552
- const n = dr(this.appInfo.Routes);
553
- if (Rs(n), this.appInfo.defaultPage = mr(n) || "", this.appInfo.defaultPage) {
552
+ const n = mr(this.appInfo.Routes);
553
+ if (ks(n), this.appInfo.defaultPage = pr(n) || "", this.appInfo.defaultPage) {
554
554
  if (this.menuLoaded = !0, Ce()) {
555
555
  const a = this.formatRoute(this.appInfo.defaultPage);
556
556
  yt.mainAppPush(a);
557
557
  }
558
- Ds(this.appInfo.defaultPage);
558
+ Cs(this.appInfo.defaultPage);
559
559
  }
560
560
  }
561
561
  },
@@ -573,7 +573,7 @@ const yt = {
573
573
  * @param path 路由地址
574
574
  */
575
575
  push(e) {
576
- this.findRoute(e) && ea().setTabActive(e), ls(() => {
576
+ this.findRoute(e) && ta().setTabActive(e), is(() => {
577
577
  if (nn.push({ path: e }), Ce()) {
578
578
  const n = this.formatRoute(e);
579
579
  yt.mainAppPush(n);
@@ -633,8 +633,8 @@ const yt = {
633
633
  AppCode: "",
634
634
  Version: "",
635
635
  Host: "",
636
- Source: Na.Manual,
637
- Action: ya.App,
636
+ Source: Ta.Manual,
637
+ Action: Na.App,
638
638
  Path: "",
639
639
  Icon: "",
640
640
  Routes: [],
@@ -648,7 +648,7 @@ const yt = {
648
648
  }
649
649
  },
650
650
  persist: !1
651
- }), Us = "Token解析失败", an = 1400, ta = {
651
+ }), xs = "Token解析失败", an = 1400, na = {
652
652
  login: {
653
653
  api: "PLATFORM_API",
654
654
  url: "/openapi/LoginSrv/login",
@@ -666,21 +666,21 @@ const yt = {
666
666
  url: "/api/LoginSrv/logout",
667
667
  loadingText: "正在退出..."
668
668
  }
669
- }, xs = (e) => {
669
+ }, Vs = (e) => {
670
670
  let t = {
671
671
  Option: {
672
672
  Mode: "MicroApp"
673
673
  },
674
674
  Query: e
675
675
  };
676
- return Qe(ta.login, t).then((n) => (n == null ? void 0 : n.status) === le.SUCCESS ? n : null);
677
- }, Vs = (e) => {
676
+ return Qe(na.login, t).then((n) => (n == null ? void 0 : n.status) === le.SUCCESS ? n : null);
677
+ }, $s = (e) => {
678
678
  let t = {
679
679
  Query: {
680
680
  AppId: e
681
681
  }
682
682
  };
683
- return Qe(ta.auth, t).then((n) => {
683
+ return Qe(na.auth, t).then((n) => {
684
684
  if ((n == null ? void 0 : n.status) === le.SUCCESS)
685
685
  return n.data;
686
686
  if ((n == null ? void 0 : n.errno) == an) {
@@ -689,18 +689,18 @@ const yt = {
689
689
  }
690
690
  return te.error("获取授权信息失败," + (n == null ? void 0 : n.msg)), null;
691
691
  });
692
- }, $s = () => {
692
+ }, Hs = () => {
693
693
  let e = {
694
694
  Option: {},
695
695
  Query: {}
696
696
  };
697
- return Qe(ta.logout, e).then((t) => (t == null ? void 0 : t.status) === le.SUCCESS ? t.data : null);
698
- }, Hs = (e) => {
697
+ return Qe(na.logout, e).then((t) => (t == null ? void 0 : t.status) === le.SUCCESS ? t.data : null);
698
+ }, Ws = (e) => {
699
699
  try {
700
700
  const t = JSON.parse(atob(e.token.split(".")[1]));
701
701
  return t.user = JSON.parse(t.user), e.UserInfo = t.user, !0;
702
702
  } catch (t) {
703
- return console.error(Us, t), !1;
703
+ return console.error(xs, t), !1;
704
704
  }
705
705
  }, fe = R(""), Et = R(null), be = Dt("userInfo", {
706
706
  state: () => ({
@@ -728,14 +728,14 @@ const yt = {
728
728
  * @returns
729
729
  */
730
730
  async login(e, t) {
731
- const n = await xs(e);
731
+ const n = await Vs(e);
732
732
  if (n) {
733
733
  const a = n;
734
734
  if (a.errno)
735
735
  return a;
736
736
  {
737
737
  const r = n.data;
738
- if (this.token = r.token, Ht(this.token), this.isLogin = !0, Hs(r))
738
+ if (this.token = r.token, Ht(this.token), this.isLogin = !0, Ws(r))
739
739
  this.userInfo = {
740
740
  ...this.userInfo,
741
741
  ...r.UserInfo
@@ -759,7 +759,7 @@ const yt = {
759
759
  if (Et.value && Et.value.appId === e)
760
760
  return !0;
761
761
  try {
762
- const t = await Vs(e);
762
+ const t = await $s(e);
763
763
  return t ? (Et.value = {
764
764
  appId: e,
765
765
  permits: t.permits || [],
@@ -854,7 +854,7 @@ const yt = {
854
854
  if (Ce())
855
855
  return yt.userLogout(), Promise.resolve();
856
856
  try {
857
- e && await $s();
857
+ e && await Hs();
858
858
  } catch (t) {
859
859
  console.error("调用登出接口失败", t);
860
860
  } finally {
@@ -898,11 +898,11 @@ const yt = {
898
898
  JSON.parse(JSON.stringify(t.params ?? {}))
899
899
  );
900
900
  return t.processParams && (r = t.processParams(r)), t.loadingState && (t.loadingState.value = !0), t.hideErrorToast && (a.hideErrorToast = !0), Qe(a, r).then((s) => (t.loadingState && (t.loadingState.value = !1), (s == null ? void 0 : s.errno) == an ? (be().logout(!1), null) : s)).catch((s) => (t.loadingState && (t.loadingState.value = !1), null));
901
- }, na = (e, t) => {
901
+ }, aa = (e, t) => {
902
902
  t.params || (t.params = {}), t.params.Query || (t.params.Query = {});
903
903
  const n = rn(e, t);
904
904
  return t.url = n, sn(e, t);
905
- }, mc = (e, t) => (t.params || (t.params = {}), t.params.Query || (t.params.Query = {}), t.loadingText = t.loadingText === !1 ? !1 : t.loadingText || "开始执行...", t.url = rn(e, t), sn(e, t).then((n) => ((n == null ? void 0 : n.status) === le.SUCCESS && (t.hideErrorToast || te.success("执行成功!")), n))), pr = (e, t = {}) => {
905
+ }, pc = (e, t) => (t.params || (t.params = {}), t.params.Query || (t.params.Query = {}), t.loadingText = t.loadingText === !1 ? !1 : t.loadingText || "开始执行...", t.url = rn(e, t), sn(e, t).then((n) => ((n == null ? void 0 : n.status) === le.SUCCESS && (t.hideErrorToast || te.success("执行成功!")), n))), _r = (e, t = {}) => {
906
906
  const n = t.primaryKey || "Id";
907
907
  if (t.params || (t.params = {}), t.params.Query || (t.params.Query = {}), !t.params.Data)
908
908
  return te.error("错误!无保存数据!"), Promise.resolve(null);
@@ -914,7 +914,7 @@ const yt = {
914
914
  a.params.Query[n] = a.params.Data[n];
915
915
  const r = rn(e, a);
916
916
  return a.url = r, sn(e, a).then((s) => ((s == null ? void 0 : s.status) === le.SUCCESS && (t.hideErrorToast || te.success("保存成功!")), s));
917
- }, Ws = (e, t, n = {}) => {
917
+ }, Gs = (e, t, n = {}) => {
918
918
  const a = n.primaryKey || "Id";
919
919
  n.params || (n.params = {}), n.params.Query || (n.params.Query = {});
920
920
  const r = {
@@ -926,25 +926,25 @@ const yt = {
926
926
  return te.error("错误!禁止无条件删除数据!"), Promise.resolve(null);
927
927
  const s = rn(e, r);
928
928
  return r.url = s, sn(e, r).then((o) => ((o == null ? void 0 : o.status) === le.SUCCESS && (n.hideErrorToast || te.success("删除成功!")), o));
929
- }, Gs = (e, t) => na(e, {
929
+ }, Ks = (e, t) => aa(e, {
930
930
  urlKey: "tree",
931
931
  params: {},
932
932
  loadingState: e.isTreeLoading,
933
933
  loadingText: !1,
934
934
  processParams: () => Ct(e.treeQuery, t)
935
- }).then((n) => (n == null ? void 0 : n.status) === le.SUCCESS ? (e.data.value = n.data || [], e.afterLoad && e.afterLoad(e.data.value), e.data.value) : (e.afterLoad && e.afterLoad((n == null ? void 0 : n.data) || []), [])), Ks = (e, t) => {
935
+ }).then((n) => (n == null ? void 0 : n.status) === le.SUCCESS ? (e.data.value = n.data || [], e.afterLoad && e.afterLoad(e.data.value), e.data.value) : (e.afterLoad && e.afterLoad((n == null ? void 0 : n.data) || []), [])), Ys = (e, t) => {
936
936
  for (const n of e) {
937
937
  if (n.key === t) return n;
938
938
  if (n.children) {
939
- const a = Ks(n.children, t);
939
+ const a = Ys(n.children, t);
940
940
  if (a) return a;
941
941
  }
942
942
  }
943
943
  return null;
944
944
  };
945
945
  let Nt;
946
- const pc = (e) => {
947
- Nt = new zn({}), Nt.messages({
946
+ const _c = (e) => {
947
+ Nt = new ea({}), Nt.messages({
948
948
  required: "${label}不能为空",
949
949
  types: {
950
950
  number: "${label}必须是数字"
@@ -970,7 +970,7 @@ const pc = (e) => {
970
970
  },
971
971
  ...e
972
972
  });
973
- }, _c = (e) => {
973
+ }, gc = (e) => {
974
974
  if (!e || he(e))
975
975
  return [];
976
976
  const t = [], n = Nt.messages(), a = (s, o, l) => {
@@ -1026,10 +1026,10 @@ const pc = (e) => {
1026
1026
  }), t;
1027
1027
  }, Mt = async (e) => {
1028
1028
  const t = e.formData.value, n = e.formRules.value;
1029
- he(n) || (aa(e), e.ruleValidator || (e.ruleValidator = new zn({}), e.ruleValidator.messages(Nt.messages()), e.ruleValidator.define(n)), e.ruleResults.value = await e.ruleValidator.validate(t).then(() => {
1029
+ he(n) || (ra(e), e.ruleValidator || (e.ruleValidator = new ea({}), e.ruleValidator.messages(Nt.messages()), e.ruleValidator.define(n)), e.ruleResults.value = await e.ruleValidator.validate(t).then(() => {
1030
1030
  }).catch(({ fields: a }) => a));
1031
- }, gc = async (e, t, n) => (n || (n = new zn({}), n.messages(Nt.messages()), n.define(t)), n.validate(e).then(() => {
1032
- }).catch(({ fields: a }) => a)), aa = (e) => {
1031
+ }, hc = async (e, t, n) => (n || (n = new ea({}), n.messages(Nt.messages()), n.define(t)), n.validate(e).then(() => {
1032
+ }).catch(({ fields: a }) => a)), ra = (e) => {
1033
1033
  e.ruleResults.value = void 0;
1034
1034
  }, ot = () => {
1035
1035
  const e = et(Pe.EditorControl, void 0), t = R(et(Pe.LabelText, "")), n = R(et(Pe.RuleKey, "")), a = et(Pe.ErrInfo, void 0);
@@ -1039,7 +1039,7 @@ const pc = (e) => {
1039
1039
  ruleKey: n,
1040
1040
  errInfo: a
1041
1041
  };
1042
- }, Ys = (e, t) => {
1042
+ }, js = (e, t) => {
1043
1043
  let n = R({
1044
1044
  msg: "",
1045
1045
  errClass: ""
@@ -1051,20 +1051,20 @@ const pc = (e) => {
1051
1051
  () => a == null ? void 0 : a.value,
1052
1052
  (r) => {
1053
1053
  if (n.value.errClass = "", n.value.msg = "", !he(r)) {
1054
- const s = js(
1054
+ const s = Bs(
1055
1055
  {
1056
1056
  label: e.label,
1057
1057
  rule: e.rule
1058
1058
  },
1059
1059
  t == null ? void 0 : t.formRules.value,
1060
- cr(r)
1060
+ ur(r)
1061
1061
  );
1062
1062
  n.value.errClass = s.errClass.value, n.value.msg = s.msg.value;
1063
1063
  }
1064
1064
  },
1065
1065
  { deep: !0 }
1066
1066
  ), n;
1067
- }, js = (e, t, n) => {
1067
+ }, Bs = (e, t, n) => {
1068
1068
  const a = R([]), r = R(""), s = R("");
1069
1069
  if (!e.rule || !t || !n)
1070
1070
  return { msg: r, ruleErrors: a, errClass: s };
@@ -1091,34 +1091,34 @@ const pc = (e) => {
1091
1091
  });
1092
1092
  }
1093
1093
  }), a.value.length > 0 && (s.value = "error"), { msg: r, ruleErrors: a, errClass: s };
1094
- }, hc = (e, t) => {
1094
+ }, Ec = (e, t) => {
1095
1095
  Rn(Pe.LabelText, e.label || ""), Rn(Pe.RuleKey, e.rule || "");
1096
- const n = Ys(e, t);
1096
+ const n = js(e, t);
1097
1097
  return Rn(Pe.ErrInfo, n), n;
1098
- }, Bs = (e, t) => {
1098
+ }, Qs = (e, t) => {
1099
1099
  if (!t)
1100
1100
  return;
1101
1101
  const [n, ...a] = e;
1102
1102
  if (e.length === 1)
1103
1103
  return t[n];
1104
1104
  if (t[n])
1105
- return Bs(a, t[n].fields);
1106
- }, Ec = (e) => {
1107
- _r(e);
1105
+ return Qs(a, t[n].fields);
1108
1106
  }, vc = (e) => {
1109
- const t = e.page, n = e.formData.value;
1110
- n[e.primaryKey ?? t.primaryKey] = null, _r(e);
1107
+ gr(e);
1111
1108
  }, bc = (e) => {
1112
- ra(e), e.visible.value = !1;
1113
- }, _r = async (e) => {
1109
+ const t = e.page, n = e.formData.value;
1110
+ n[e.primaryKey ?? t.primaryKey] = null, gr(e);
1111
+ }, Ic = (e) => {
1112
+ sa(e), e.visible.value = !1;
1113
+ }, gr = async (e) => {
1114
1114
  var a;
1115
1115
  const t = e.page;
1116
- if (e.isFormSaving.value = !0, aa(e), e.beforeSave && e.beforeSave() === !1)
1116
+ if (e.isFormSaving.value = !0, ra(e), e.beforeSave && e.beforeSave() === !1)
1117
1117
  return e.isFormSaving.value = !1, Promise.resolve();
1118
1118
  if (e.formRules.value && await Mt(e), e.ruleResults.value)
1119
1119
  return te.error("提交表单时,验证失败!"), console.error("表单验证失败!", e.ruleResults.value), e.isFormSaving.value = !1, Promise.resolve();
1120
1120
  const n = e.formData.value;
1121
- return pr(
1121
+ return _r(
1122
1122
  {
1123
1123
  page: t,
1124
1124
  // 转换为AnyControl接口
@@ -1161,25 +1161,25 @@ const pc = (e) => {
1161
1161
  } else
1162
1162
  te.error((r == null ? void 0 : r.msg) ?? "保存失败!"), e.afterSave && e.afterSave(r);
1163
1163
  });
1164
- }, Ic = async (e) => {
1164
+ }, yc = async (e) => {
1165
1165
  const t = e.page, n = e.grid;
1166
1166
  e.isFormLoading.value = !0;
1167
1167
  const a = e.formData.value, r = e.primaryKey ?? t.primaryKey;
1168
- return Er(n, { [r]: a[r] }, e.detailUrl).then((s) => {
1169
- e.isFormLoading.value = !1, s && gr(e, s);
1168
+ return vr(n, { [r]: a[r] }, e.detailUrl).then((s) => {
1169
+ e.isFormLoading.value = !1, s && hr(e, s);
1170
1170
  });
1171
- }, yc = (e) => {
1171
+ }, Nc = (e) => {
1172
1172
  const t = e.grid;
1173
- t && (t.rowData.value = void 0), e && (ra(e), e.visible && (e.visible.value = !1), setTimeout(() => {
1173
+ t && (t.rowData.value = void 0), e && (sa(e), e.visible && (e.visible.value = !1), setTimeout(() => {
1174
1174
  e.visible.value = !0;
1175
1175
  }, 1));
1176
- }, gr = (e, t) => {
1177
- ra(e);
1176
+ }, hr = (e, t) => {
1177
+ sa(e);
1178
1178
  const n = { ...e.formData.value, ...t };
1179
1179
  e.formData.value = JSON.parse(JSON.stringify(n));
1180
- }, ra = (e) => {
1181
- e.formData.value = e.default ? JSON.parse(JSON.stringify(e.default)) : {}, aa(e);
1182
- }, Nc = (e, t) => {
1180
+ }, sa = (e) => {
1181
+ e.formData.value = e.default ? JSON.parse(JSON.stringify(e.default)) : {}, ra(e);
1182
+ }, Tc = (e, t) => {
1183
1183
  const n = be();
1184
1184
  return e.filter((r) => r.role && !n.hasRole(r.role) || r.permit && !n.hasPermit(nn.currentRoute.value.path, r.permit) || r.enabled === !1 ? !1 : typeof r.enabled == "function" ? r.enabled() : !0).filter((r) => {
1185
1185
  if (!t) {
@@ -1190,7 +1190,7 @@ const pc = (e) => {
1190
1190
  }
1191
1191
  return !0;
1192
1192
  });
1193
- }, Tc = (e, t) => {
1193
+ }, Lc = (e, t) => {
1194
1194
  const n = t == null ? void 0 : t.filter((a) => {
1195
1195
  const r = e.find(
1196
1196
  (s) => s.dataIndex === a.dataIndex || s.key === a.key || s.title === a.title
@@ -1198,10 +1198,10 @@ const pc = (e) => {
1198
1198
  return r ? { ...a, ...r } : !1;
1199
1199
  });
1200
1200
  return [...n || [], ...e.filter((a) => !(n != null && n.includes(a)))];
1201
- }, Qs = (e) => hr(e).then((t) => t.rows), hr = (e) => {
1201
+ }, Js = (e) => Er(e).then((t) => t.rows), Er = (e) => {
1202
1202
  e.gridQuery || (e.gridQuery = {});
1203
1203
  const t = e.remotePage ? "find" : "list";
1204
- return na(e, {
1204
+ return aa(e, {
1205
1205
  urlKey: t,
1206
1206
  url: e.gridUrl,
1207
1207
  params: e.gridQuery,
@@ -1226,7 +1226,7 @@ const pc = (e) => {
1226
1226
  rows: []
1227
1227
  };
1228
1228
  });
1229
- }, Js = (e, t, n = {}) => pr(e, {
1229
+ }, Xs = (e, t, n = {}) => _r(e, {
1230
1230
  urlKey: "update",
1231
1231
  url: e.updateUrl,
1232
1232
  params: {
@@ -1237,31 +1237,31 @@ const pc = (e) => {
1237
1237
  ...n
1238
1238
  }).then((a) => ((a == null ? void 0 : a.status) === le.SUCCESS && setTimeout(() => {
1239
1239
  e.reload.value = !0, e.afterUpdate && e.afterUpdate(t);
1240
- }, 50), a)), Lc = (e, t) => {
1240
+ }, 50), a)), Oc = (e, t) => {
1241
1241
  const n = {};
1242
- return n[e.primaryKey] = t[e.primaryKey], n[e.statusKey] = t[e.statusKey], Js(e, n, {
1242
+ return n[e.primaryKey] = t[e.primaryKey], n[e.statusKey] = t[e.statusKey], Xs(e, n, {
1243
1243
  loadingText: !1,
1244
1244
  hideErrorToast: !0
1245
1245
  });
1246
- }, Er = async (e, t, n) => await na(e, {
1246
+ }, vr = async (e, t, n) => await aa(e, {
1247
1247
  urlKey: "detail",
1248
1248
  url: n,
1249
1249
  params: t,
1250
1250
  loadingState: e.isGridLoading
1251
- }), Oc = (e, t) => {
1251
+ }), Sc = (e, t) => {
1252
1252
  const n = t;
1253
- return Er(e, { [e.primaryKey]: n[e.primaryKey] }).then((a) => ((a == null ? void 0 : a.status) === le.SUCCESS && a.data && (e.expandRows.value[n[e.primaryKey]] = a), a));
1254
- }, Sc = (e, t) => {
1253
+ return vr(e, { [e.primaryKey]: n[e.primaryKey] }).then((a) => ((a == null ? void 0 : a.status) === le.SUCCESS && a.data && (e.expandRows.value[n[e.primaryKey]] = a), a));
1254
+ }, Ac = (e, t) => {
1255
1255
  let n = e.editor;
1256
- e.rowData.value = t, n && (gr(n, t), n.visible.value = !0);
1257
- }, Ac = (e, t) => Ws(e, t, {
1256
+ e.rowData.value = t, n && (hr(n, t), n.visible.value = !0);
1257
+ }, Pc = (e, t) => Gs(e, t, {
1258
1258
  url: e.deleteUrl,
1259
1259
  primaryKey: e.primaryKey
1260
1260
  }).then((n) => ((n == null ? void 0 : n.status) === le.SUCCESS && setTimeout(() => {
1261
1261
  e.reload.value = !0, e.afterDelete && !Array.isArray(t) && e.afterDelete(t);
1262
1262
  }, 50), n));
1263
1263
  var xn = /* @__PURE__ */ ((e) => (e.SelectReload = "Select.Reload", e.RadioReload = "Radio.Reload", e.CheckboxReload = "Checkbox.Reload", e.TreeSelectReload = "TreeSelect.Reload", e.TreeCheckReload = "TreeCheck.Reload", e))(xn || {});
1264
- class Xs {
1264
+ class qs {
1265
1265
  constructor() {
1266
1266
  oe(this, "listeners", {});
1267
1267
  }
@@ -1307,51 +1307,51 @@ class Xs {
1307
1307
  this.listeners[t] && this.listeners[t].forEach((a) => a(t, ...n));
1308
1308
  }
1309
1309
  }
1310
- const tt = new Xs(), dt = (e, t, n) => {
1310
+ const tt = new qs(), dt = (e, t, n) => {
1311
1311
  if (t.inputFactory && (n != null && n.reloadEvent)) {
1312
1312
  const a = t.inputFactory.value;
1313
1313
  a.reloadHandler = (r, s) => {
1314
- qs(t.url, t, s);
1314
+ Zs(t.url, t, s);
1315
1315
  }, tt.on(n.reloadEvent, a.reloadHandler);
1316
1316
  }
1317
1317
  if (n != null && n.data)
1318
1318
  K(
1319
1319
  () => n.data,
1320
1320
  () => {
1321
- sa(t, n.data, !0);
1321
+ oa(t, n.data, !0);
1322
1322
  },
1323
1323
  { deep: !0, immediate: !0 }
1324
1324
  );
1325
1325
  else if (t.url && t.url.url)
1326
- e && vr(t.url, t, t.params ?? {});
1326
+ e && br(t.url, t, t.params ?? {});
1327
1327
  else {
1328
1328
  const a = R(et(Pe.LabelText, ""));
1329
1329
  te.error("`" + a.value + "` 未配置选项数据!", {
1330
1330
  duration: 5e3
1331
1331
  });
1332
1332
  }
1333
- }, sa = (e, t, n) => {
1333
+ }, oa = (e, t, n) => {
1334
1334
  if (n) {
1335
1335
  const a = {
1336
1336
  ...e.fieldMap
1337
1337
  };
1338
- t = Ls(a, t);
1338
+ t = Os(a, t);
1339
1339
  }
1340
1340
  t = JSON.parse(JSON.stringify(t ?? [])), e.all && t.unshift({
1341
1341
  label: "全部",
1342
1342
  value: e.allValue ?? void 0
1343
1343
  }), e.options.value = t;
1344
- }, qs = (e, t, n) => {
1345
- Array.isArray(n) ? sa(t, n, !0) : vr(e, t, n);
1344
+ }, Zs = (e, t, n) => {
1345
+ Array.isArray(n) ? oa(t, n, !0) : br(e, t, n);
1346
1346
  }, Ft = (e, t) => {
1347
1347
  var n;
1348
1348
  (n = e.inputFactory) != null && n.value && t.reloadEvent && e.inputFactory.value.reloadHandler && tt.off(t.reloadEvent, e.inputFactory.value.reloadHandler);
1349
- }, vr = (e, t, n) => {
1349
+ }, br = (e, t, n) => {
1350
1350
  const a = JSON.parse(JSON.stringify(e.params ?? {})), r = JSON.parse(JSON.stringify(t.params ?? {})), s = Ct(a, r, n);
1351
- Zs(e, t, t.fieldMap, s).then((o) => {
1352
- sa(t, o, !1);
1351
+ zs(e, t, t.fieldMap, s).then((o) => {
1352
+ oa(t, o, !1);
1353
1353
  });
1354
- }, Zs = (e, t, n, a) => {
1354
+ }, zs = (e, t, n, a) => {
1355
1355
  const { fieldMap: r, ...s } = e, l = {
1356
1356
  ...{
1357
1357
  url: "",
@@ -1375,7 +1375,7 @@ const tt = new Xs(), dt = (e, t, n) => {
1375
1375
  }).finally(() => {
1376
1376
  t.isOptionLoading.value = !1;
1377
1377
  });
1378
- }, zs = (e, t, n) => {
1378
+ }, eo = (e, t, n) => {
1379
1379
  if (e === void 0) return;
1380
1380
  const a = (s) => {
1381
1381
  const o = { ...s };
@@ -1403,7 +1403,7 @@ const tt = new Xs(), dt = (e, t, n) => {
1403
1403
  r[o] || (r[o] = {}), r = r[o];
1404
1404
  }
1405
1405
  r[a[a.length - 1]] = n;
1406
- }, br = (e, t, n) => {
1406
+ }, Ir = (e, t, n) => {
1407
1407
  if (n == null) {
1408
1408
  Object.entries(t).forEach(([a]) => {
1409
1409
  vt(e, a, n);
@@ -1436,8 +1436,8 @@ const tt = new Xs(), dt = (e, t, n) => {
1436
1436
  var s, o;
1437
1437
  const a = (s = e.inputFactory) == null ? void 0 : s.value;
1438
1438
  a != null && a.editorCtrl && ((o = a.errInfo) != null && o.value.errClass) && Mt(a.editorCtrl), e.selected.value = n;
1439
- const r = zs(n, e.options.value);
1440
- if (e.selectedOptions.value = r, t.formData && t.outFields && br(t.formData, t.outFields, r), t.changeEvent) {
1439
+ const r = eo(n, e.options.value);
1440
+ if (e.selectedOptions.value = r, t.formData && t.outFields && Ir(t.formData, t.outFields, r), t.changeEvent) {
1441
1441
  const [l, i] = t.changeEvent;
1442
1442
  if (i)
1443
1443
  if (Array.isArray(l))
@@ -1503,7 +1503,7 @@ const tt = new Xs(), dt = (e, t, n) => {
1503
1503
  value: "Id"
1504
1504
  }
1505
1505
  }
1506
- }, Pc = (e) => {
1506
+ }, Rc = (e) => {
1507
1507
  X.PageOption = {
1508
1508
  ...X.PageOption,
1509
1509
  ...e.pageOption
@@ -1520,7 +1520,7 @@ const tt = new Xs(), dt = (e, t, n) => {
1520
1520
  }, cn = (e) => {
1521
1521
  for (let t in e.urls)
1522
1522
  e.urls[t].api || (e.urls[t].api = e.api), e.urls[t].authorize === void 0 && (e.urls[t].authorize = e.authorize);
1523
- }, eo = (e, t, n, a) => (cn(e), {
1523
+ }, to = (e, t, n, a) => (cn(e), {
1524
1524
  editorCtrl: {
1525
1525
  ...X.EditorOption,
1526
1526
  name: "",
@@ -1536,7 +1536,7 @@ const tt = new Xs(), dt = (e, t, n) => {
1536
1536
  isFormSaving: R(!1),
1537
1537
  isFormLoading: R(!1)
1538
1538
  }
1539
- }), to = (e, t, n) => {
1539
+ }), no = (e, t, n) => {
1540
1540
  cn(e);
1541
1541
  const a = {
1542
1542
  ...X.GridOption,
@@ -1570,12 +1570,12 @@ const tt = new Xs(), dt = (e, t, n) => {
1570
1570
  (r) => {
1571
1571
  r && (setTimeout(() => {
1572
1572
  a.reload.value = !1;
1573
- }, 1), a.remotePage ? hr(a) : Qs(a));
1573
+ }, 1), a.remotePage ? Er(a) : Js(a));
1574
1574
  }
1575
1575
  ), {
1576
1576
  gridCtrl: a
1577
1577
  };
1578
- }, Rc = (e, t) => {
1578
+ }, kc = (e, t) => {
1579
1579
  cn(e);
1580
1580
  const n = {
1581
1581
  ...X.TreeOption,
@@ -1591,7 +1591,7 @@ const tt = new Xs(), dt = (e, t, n) => {
1591
1591
  (a) => {
1592
1592
  a && (setTimeout(() => {
1593
1593
  n.reload.value = !1;
1594
- }, 1), Gs(n));
1594
+ }, 1), Ks(n));
1595
1595
  }
1596
1596
  ), {
1597
1597
  treeCtrl: n
@@ -1618,24 +1618,24 @@ const tt = new Xs(), dt = (e, t, n) => {
1618
1618
  ), {
1619
1619
  optionCtrl: n
1620
1620
  };
1621
- }, kc = (e, t, n) => {
1621
+ }, Dc = (e, t, n) => {
1622
1622
  cn(e);
1623
1623
  const a = {
1624
1624
  ...X.PageOption,
1625
1625
  ...e
1626
- }, { editorCtrl: r } = eo(e, a, t, n), { gridCtrl: s } = to(e, a);
1626
+ }, { editorCtrl: r } = to(e, a, t, n), { gridCtrl: s } = no(e, a);
1627
1627
  return a.editor = r, a.grid = s, s.editor = r, s.tools = ["Reload", "RowHeight", "TableHeadset", "Fullscreen"], r.grid = s, {
1628
1628
  pageCtrl: a,
1629
1629
  editorCtrl: r,
1630
1630
  gridCtrl: s
1631
1631
  };
1632
- }, no = 7 * 24 * 60 * 60 * 1e3, Cn = /* @__PURE__ */ new Map(), La = /* @__PURE__ */ new Set(), We = R({}), Dc = We, Cc = (e) => {
1632
+ }, ao = 7 * 24 * 60 * 60 * 1e3, Cn = /* @__PURE__ */ new Map(), Oa = /* @__PURE__ */ new Set(), We = R({}), Cc = We, wc = (e) => {
1633
1633
  var r;
1634
1634
  if (!e.iconUrl) return Vn;
1635
1635
  const t = R(!0), n = R("");
1636
1636
  let a = !0;
1637
- return (r = e.icons) != null && r.length && (a = e.icons.every((s) => We.value[s] !== void 0)), (e.icon && !We.value[e.icon] || !a) && ao(e, t).then(() => {
1638
- oo(e.iconUrl, e.monoColor || !1), t.value = !0;
1637
+ return (r = e.icons) != null && r.length && (a = e.icons.every((s) => We.value[s] !== void 0)), (e.icon && !We.value[e.icon] || !a) && ro(e, t).then(() => {
1638
+ lo(e.iconUrl, e.monoColor || !1), t.value = !0;
1639
1639
  }), De({
1640
1640
  props: {
1641
1641
  icon: {
@@ -1697,32 +1697,32 @@ const tt = new Xs(), dt = (e, t, n) => {
1697
1697
  let s = this.class, o = "";
1698
1698
  Array.isArray(s) ? o = s.join(" ") : typeof s == "string" && (o = s);
1699
1699
  let l = [o];
1700
- return !/\bw-/.test(o) && !/$w-/.test(o) && l.push("w-4"), !/\bh-/.test(o) && !/$h-/.test(o) && l.push("h-4"), n.value ? ve(cr(n.value), {
1700
+ return !/\bw-/.test(o) && !/$w-/.test(o) && l.push("w-4"), !/\bh-/.test(o) && !/$h-/.test(o) && l.push("h-4"), n.value ? ve(ur(n.value), {
1701
1701
  onClick: this.$props.clickable ? this.handleClick : void 0,
1702
1702
  class: `${l.join(" ")}`,
1703
1703
  style: {
1704
1704
  fill: "currentColor",
1705
1705
  cursor: this.$props.clickable ? "pointer" : "default",
1706
- transform: io(this.angle, this.flip)
1706
+ transform: co(this.angle, this.flip)
1707
1707
  }
1708
1708
  }) : ve("div", { class: "w-[14px] h-[14px]" });
1709
1709
  }
1710
1710
  });
1711
- }, ao = (e, t) => {
1711
+ }, ro = (e, t) => {
1712
1712
  let n = e.iconUrl;
1713
1713
  if (!n)
1714
1714
  return console.error("图标库地址不能为空"), Promise.resolve();
1715
1715
  if (Cn.has(n))
1716
1716
  return Promise.resolve();
1717
- const a = yr(n);
1717
+ const a = Nr(n);
1718
1718
  if (a)
1719
- return new Promise(async (s) => (Ir(a.scriptContent), s()));
1719
+ return new Promise(async (s) => (yr(a.scriptContent), s()));
1720
1720
  t.value = !1;
1721
1721
  const r = new Promise(async (s) => {
1722
- await ro(n, e.monoColor || !1), s(), Cn.delete(n);
1722
+ await so(n, e.monoColor || !1), s(), Cn.delete(n);
1723
1723
  });
1724
1724
  return Cn.set(n, r), r;
1725
- }, ro = async (e, t) => {
1725
+ }, so = async (e, t) => {
1726
1726
  try {
1727
1727
  const n = await fetch(e);
1728
1728
  if (!n.ok) {
@@ -1735,27 +1735,27 @@ const tt = new Xs(), dt = (e, t, n) => {
1735
1735
  const s = a.match(r);
1736
1736
  if (s && s.length > 1) {
1737
1737
  let o = s[1];
1738
- so(e, o, t, a);
1738
+ oo(e, o, t, a);
1739
1739
  }
1740
- Ir(a);
1740
+ yr(a);
1741
1741
  return;
1742
1742
  } catch (n) {
1743
1743
  return console.error("网络异常,无法加载图标库:", n), null;
1744
1744
  }
1745
- }, Ir = (e) => {
1745
+ }, yr = (e) => {
1746
1746
  const t = document.createElement("script");
1747
1747
  t.textContent = e, document.head.appendChild(t);
1748
- }, so = (e, t, n, a) => {
1748
+ }, oo = (e, t, n, a) => {
1749
1749
  let r = `icon_cache:${e}`;
1750
1750
  const s = {
1751
1751
  windowKey: t,
1752
1752
  monoColor: n,
1753
1753
  scriptContent: a,
1754
- expireTime: Date.now() + no
1754
+ expireTime: Date.now() + ao
1755
1755
  // 缓存时间:7天
1756
1756
  };
1757
1757
  localStorage.setItem(r, JSON.stringify(s));
1758
- }, yr = (e) => {
1758
+ }, Nr = (e) => {
1759
1759
  let t = `icon_cache:${e}`;
1760
1760
  const n = localStorage.getItem(t);
1761
1761
  if (!n) return null;
@@ -1766,7 +1766,7 @@ const tt = new Xs(), dt = (e, t, n) => {
1766
1766
  return console.error("解析缓存失败:", r), null;
1767
1767
  }
1768
1768
  return a.expireTime < Date.now() ? (localStorage.removeItem(e), null) : a;
1769
- }, wc = () => {
1769
+ }, Mc = () => {
1770
1770
  const e = Date.now();
1771
1771
  for (const t in localStorage)
1772
1772
  if (t.startsWith("icon_cache:")) {
@@ -1797,12 +1797,12 @@ const tt = new Xs(), dt = (e, t, n) => {
1797
1797
  fill: "currentColor"
1798
1798
  })
1799
1799
  ]
1800
- ), oo = (e, t) => {
1801
- const n = yr(e);
1800
+ ), lo = (e, t) => {
1801
+ const n = Nr(e);
1802
1802
  Object.keys(window).forEach((a) => {
1803
- a.startsWith("_iconfont_svg_string_") && (n == null ? void 0 : n.windowKey) === a && !La.has(a) && (La.add(a), lo(a, t));
1803
+ a.startsWith("_iconfont_svg_string_") && (n == null ? void 0 : n.windowKey) === a && !Oa.has(a) && (Oa.add(a), io(a, t));
1804
1804
  });
1805
- }, lo = (e, t) => {
1805
+ }, io = (e, t) => {
1806
1806
  const n = window[e], s = new DOMParser().parseFromString(n, "image/svg+xml").getElementsByTagName("symbol"), o = document.querySelectorAll("symbol");
1807
1807
  for (const l of s) {
1808
1808
  const i = l.id, c = Array.from(o).find((m) => m.id === i);
@@ -1810,12 +1810,12 @@ const tt = new Xs(), dt = (e, t, n) => {
1810
1810
  m.hasAttribute("fill") && m.removeAttribute("fill");
1811
1811
  })), We.value[i] || (We.value[i] = ve("svg", { fill: "currentColor" }, [ve("use", { "xlink:href": `#${i}` })]));
1812
1812
  }
1813
- }, io = (e, t) => {
1813
+ }, co = (e, t) => {
1814
1814
  let n = "";
1815
1815
  return e && (n += `rotate(${e}deg)`), t && (n += " scaleX(-1)"), n;
1816
- }, Mc = (e, t, n, a) => {
1817
- Nr(e, [], n, a).forEach((s) => t.push(s));
1818
- }, Nr = (e, t, n, a) => {
1816
+ }, Fc = (e, t, n, a) => {
1817
+ Tr(e, [], n, a).forEach((s) => t.push(s));
1818
+ }, Tr = (e, t, n, a) => {
1819
1819
  var o, l, i, c, m, g;
1820
1820
  const r = [], s = be();
1821
1821
  for (const p of e) {
@@ -1824,7 +1824,7 @@ const tt = new Xs(), dt = (e, t, n) => {
1824
1824
  continue;
1825
1825
  const N = p.path.split("/");
1826
1826
  N.unshift(...t);
1827
- const P = Nr(p.children || [], N, n, a), T = {
1827
+ const P = Tr(p.children || [], N, n, a), T = {
1828
1828
  key: N.join("/"),
1829
1829
  label: ((m = p.name) == null ? void 0 : m.toString()) ?? "",
1830
1830
  title: ((g = p.name) == null ? void 0 : g.toString()) ?? "",
@@ -1834,10 +1834,10 @@ const tt = new Xs(), dt = (e, t, n) => {
1834
1834
  (P.length > 0 || !p.children) && r.push(T);
1835
1835
  }
1836
1836
  return r;
1837
- }, Oa = is([]), Fc = () => {
1838
- Oa.length = 0;
1837
+ }, Sa = cs([]), Uc = () => {
1838
+ Sa.length = 0;
1839
1839
  const e = we();
1840
- let n = ea().TabActive;
1840
+ let n = ta().TabActive;
1841
1841
  e.matchedRoutes(n).forEach((r, s) => {
1842
1842
  var l;
1843
1843
  const o = {
@@ -1845,9 +1845,9 @@ const tt = new Xs(), dt = (e, t, n) => {
1845
1845
  path: r.path,
1846
1846
  breadcrumbName: ((l = r.name) == null ? void 0 : l.toString()) ?? ""
1847
1847
  };
1848
- Oa.push(o);
1848
+ Sa.push(o);
1849
1849
  });
1850
- }, co = {
1850
+ }, uo = {
1851
1851
  host: {
1852
1852
  api: "SITEHOST_API",
1853
1853
  url: "/openapi/RCSiteHostSrv/get",
@@ -1859,7 +1859,7 @@ const tt = new Xs(), dt = (e, t, n) => {
1859
1859
  // 不显示错误
1860
1860
  hideErrorToast: !0
1861
1861
  }
1862
- }, Uc = Dt("hostInfo", {
1862
+ }, xc = Dt("hostInfo", {
1863
1863
  state: () => ({
1864
1864
  hostInfo: {
1865
1865
  Host: "",
@@ -1892,7 +1892,7 @@ const tt = new Xs(), dt = (e, t, n) => {
1892
1892
  return (!n || n === "/") && (n = window.location.origin), n.endsWith("/") && (n = n.slice(0, -1)), new Promise((a) => {
1893
1893
  kn.SITEHOST_API || (kn.SITEHOST_API = n);
1894
1894
  const r = t || window.location.origin;
1895
- Qe(co.host, {
1895
+ Qe(uo.host, {
1896
1896
  Query: {
1897
1897
  Host: r
1898
1898
  }
@@ -1935,7 +1935,7 @@ const tt = new Xs(), dt = (e, t, n) => {
1935
1935
  if (this.hostInfo.SERVER_HOST)
1936
1936
  for (const t in this.hostInfo.SERVER_HOST) {
1937
1937
  let n = this.hostInfo.SERVER_HOST[t];
1938
- n = n.startsWith("http://") || n.startsWith("https://") || n.startsWith("//") ? n : window.location.origin + n, n.endsWith("/") && (n = n.slice(0, -1)), this.hostInfo.SERVER_HOST[t] = n, Os[t] = n;
1938
+ n = n.startsWith("http://") || n.startsWith("https://") || n.startsWith("//") ? n : window.location.origin + n, n.endsWith("/") && (n = n.slice(0, -1)), this.hostInfo.SERVER_HOST[t] = n, Ss[t] = n;
1939
1939
  }
1940
1940
  },
1941
1941
  getHostInfo() {
@@ -1949,7 +1949,7 @@ const tt = new Xs(), dt = (e, t, n) => {
1949
1949
  // storage: localStorage,
1950
1950
  // pick: ['hostInfo'],
1951
1951
  // },
1952
- }), xc = Dt("settingInfo", {
1952
+ }), Vc = Dt("settingInfo", {
1953
1953
  state: () => ({
1954
1954
  fullscreen: !1,
1955
1955
  menuCollapse: !1,
@@ -1991,7 +1991,7 @@ const tt = new Xs(), dt = (e, t, n) => {
1991
1991
  }
1992
1992
  },
1993
1993
  persist: !1
1994
- }), Vc = /* @__PURE__ */ De({
1994
+ }), $c = /* @__PURE__ */ De({
1995
1995
  __name: "index",
1996
1996
  props: {
1997
1997
  ...wt,
@@ -2039,7 +2039,7 @@ const tt = new Xs(), dt = (e, t, n) => {
2039
2039
  s && Ft(s, n);
2040
2040
  }), (p, N) => {
2041
2041
  var P;
2042
- return o.value.length === 2 ? (se(), Zt(q(ms), kt({
2042
+ return o.value.length === 2 ? (se(), Zt(q(ps), kt({
2043
2043
  key: 0,
2044
2044
  size: e.size,
2045
2045
  class: [
@@ -2055,7 +2055,7 @@ const tt = new Xs(), dt = (e, t, n) => {
2055
2055
  }, p.$attrs), null, 16, ["size", "class", "checkedChildren", "checkedValue", "unCheckedChildren", "unCheckedValue"])) : rt("", !0);
2056
2056
  };
2057
2057
  }
2058
- }), $c = /* @__PURE__ */ De({
2058
+ }), Hc = /* @__PURE__ */ De({
2059
2059
  inheritAttrs: !1,
2060
2060
  __name: "index",
2061
2061
  props: {
@@ -2092,7 +2092,7 @@ const tt = new Xs(), dt = (e, t, n) => {
2092
2092
  ), K(
2093
2093
  () => l.value,
2094
2094
  (T) => {
2095
- n.autoClean && n.formData && n.outFields && T !== n.value && br(n.formData, n.outFields, null);
2095
+ n.autoClean && n.formData && n.outFields && T !== n.value && Ir(n.formData, n.outFields, null);
2096
2096
  }
2097
2097
  );
2098
2098
  const { editorCtrl: i, errInfo: c, labelText: m } = r, g = t;
@@ -2126,7 +2126,7 @@ const tt = new Xs(), dt = (e, t, n) => {
2126
2126
  }), (T, S) => {
2127
2127
  var d;
2128
2128
  return se(), pe("div", null, [
2129
- Ge(q(ps), kt({
2129
+ Ge(q(_s), kt({
2130
2130
  value: l.value,
2131
2131
  "onUpdate:value": S[0] || (S[0] = (_) => l.value = _),
2132
2132
  class: ["w-full", (d = q(c)) == null ? void 0 : d.errClass],
@@ -2138,7 +2138,7 @@ const tt = new Xs(), dt = (e, t, n) => {
2138
2138
  tn(st(_), 1)
2139
2139
  ]),
2140
2140
  default: Me(() => [
2141
- Ge(q(_s), {
2141
+ Ge(q(gs), {
2142
2142
  "allow-clear": "",
2143
2143
  placeholder: "请输入并选择" + q(m)
2144
2144
  }, null, 8, ["placeholder"])
@@ -2148,10 +2148,10 @@ const tt = new Xs(), dt = (e, t, n) => {
2148
2148
  ]);
2149
2149
  };
2150
2150
  }
2151
- }), uo = { class: "min-h-[32px] pt-[5px]" }, fo = {
2151
+ }), fo = { class: "min-h-[32px] pt-[5px]" }, mo = {
2152
2152
  key: 1,
2153
2153
  class: "text-center text-gray-500"
2154
- }, Hc = /* @__PURE__ */ De({
2154
+ }, Wc = /* @__PURE__ */ De({
2155
2155
  inheritAttrs: !1,
2156
2156
  __name: "index",
2157
2157
  props: {
@@ -2206,19 +2206,19 @@ const tt = new Xs(), dt = (e, t, n) => {
2206
2206
  }), o && dt(o.autoload, o, n);
2207
2207
  }), ft(() => {
2208
2208
  o && Ft(o, n);
2209
- }), (T, S) => (se(), pe("div", uo, [
2210
- Ge(q(gs), kt({
2209
+ }), (T, S) => (se(), pe("div", fo, [
2210
+ Ge(q(hs), kt({
2211
2211
  onChange: g,
2212
2212
  class: "w-full mb-[-3px]"
2213
2213
  }, q(a)), {
2214
2214
  default: Me(() => [
2215
- m.value.length > 0 ? (se(!0), pe(Ke, { key: 0 }, Zn(m.value, (d) => {
2215
+ m.value.length > 0 ? (se(!0), pe(Ke, { key: 0 }, zn(m.value, (d) => {
2216
2216
  var _;
2217
- return se(), Zt(q(hs), {
2217
+ return se(), Zt(q(Es), {
2218
2218
  key: d.value,
2219
2219
  value: d.value,
2220
2220
  disabled: d.disabled || d.value && e.disabledItems && e.disabledItems.indexOf(d.value.toString()) > -1,
2221
- class: ur([
2221
+ class: fr([
2222
2222
  ((_ = q(i)) == null ? void 0 : _.errClass) === "error" ? "error !text-red-400" : "",
2223
2223
  "text-nowrap",
2224
2224
  "pb-1",
@@ -2230,16 +2230,16 @@ const tt = new Xs(), dt = (e, t, n) => {
2230
2230
  ]),
2231
2231
  _: 2
2232
2232
  }, 1032, ["value", "disabled", "class"]);
2233
- }), 128)) : e.nodata ? (se(), pe("div", fo, st(e.nodata), 1)) : rt("", !0)
2233
+ }), 128)) : e.nodata ? (se(), pe("div", mo, st(e.nodata), 1)) : rt("", !0)
2234
2234
  ]),
2235
2235
  _: 1
2236
2236
  }, 16)
2237
2237
  ]));
2238
2238
  }
2239
- }), mo = { class: "min-h-[32px] pt-1" }, po = {
2239
+ }), po = { class: "min-h-[32px] pt-1" }, _o = {
2240
2240
  key: 1,
2241
2241
  class: "text-center text-gray-500"
2242
- }, Wc = /* @__PURE__ */ De({
2242
+ }, Gc = /* @__PURE__ */ De({
2243
2243
  inheritAttrs: !1,
2244
2244
  __name: "index",
2245
2245
  props: {
@@ -2308,8 +2308,8 @@ const tt = new Xs(), dt = (e, t, n) => {
2308
2308
  }), o && dt(o.autoload, o, n);
2309
2309
  }), ft(() => {
2310
2310
  o && Ft(o, n);
2311
- }), (d, _) => (se(), pe("div", mo, [
2312
- Ge(q(Es), kt({
2311
+ }), (d, _) => (se(), pe("div", po, [
2312
+ Ge(q(vs), kt({
2313
2313
  value: i.value,
2314
2314
  "onUpdate:value": _[0] || (_[0] = (I) => i.value = I),
2315
2315
  autocheck: !1,
@@ -2317,16 +2317,16 @@ const tt = new Xs(), dt = (e, t, n) => {
2317
2317
  class: "w-full flex align-items flex-wrap mb-[-3px]"
2318
2318
  }, q(a)), {
2319
2319
  default: Me(() => [
2320
- m.value.length > 0 ? (se(!0), pe(Ke, { key: 0 }, Zn(m.value, (I) => {
2320
+ m.value.length > 0 ? (se(!0), pe(Ke, { key: 0 }, zn(m.value, (I) => {
2321
2321
  var E;
2322
2322
  return se(), pe(Ke, {
2323
2323
  key: I.value
2324
2324
  }, [
2325
- I.visible !== !1 ? (se(), Zt(q(vs), {
2325
+ I.visible !== !1 ? (se(), Zt(q(bs), {
2326
2326
  key: 0,
2327
2327
  checked: p(I.value, n.value),
2328
2328
  value: I.value,
2329
- class: ur([
2329
+ class: fr([
2330
2330
  ((E = q(c)) == null ? void 0 : E.errClass) === "error" ? "error !text-red-400" : "",
2331
2331
  "text-nowrap",
2332
2332
  "pb-1",
@@ -2339,16 +2339,16 @@ const tt = new Xs(), dt = (e, t, n) => {
2339
2339
  _: 2
2340
2340
  }, 1032, ["checked", "value", "class"])) : rt("", !0)
2341
2341
  ], 64);
2342
- }), 128)) : e.nodata ? (se(), pe("div", po, st(e.nodata), 1)) : rt("", !0)
2342
+ }), 128)) : e.nodata ? (se(), pe("div", _o, st(e.nodata), 1)) : rt("", !0)
2343
2343
  ]),
2344
2344
  _: 1
2345
2345
  }, 16, ["value"])
2346
2346
  ]));
2347
2347
  }
2348
- }), _o = {
2348
+ }), go = {
2349
2349
  key: 0,
2350
2350
  class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
2351
- }, Gc = /* @__PURE__ */ De({
2351
+ }, Kc = /* @__PURE__ */ De({
2352
2352
  inheritAttrs: !1,
2353
2353
  __name: "index",
2354
2354
  props: {
@@ -2462,11 +2462,11 @@ const tt = new Xs(), dt = (e, t, n) => {
2462
2462
  }), (b, O) => {
2463
2463
  var v, C, M;
2464
2464
  return se(), pe("div", null, [
2465
- (C = (v = q(c)) == null ? void 0 : v.url) != null && C.loading ? (se(), pe("div", _o, [
2465
+ (C = (v = q(c)) == null ? void 0 : v.url) != null && C.loading ? (se(), pe("div", go, [
2466
2466
  Ge(q(Vn), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
2467
- O[1] || (O[1] = cs("span", null, "数据加载中...", -1))
2467
+ O[1] || (O[1] = us("span", null, "数据加载中...", -1))
2468
2468
  ])) : rt("", !0),
2469
- Ge(q(bs), kt({
2469
+ Ge(q(Is), kt({
2470
2470
  class: [(M = q(o)) == null ? void 0 : M.errClass, "w-full"],
2471
2471
  value: N.value,
2472
2472
  "onUpdate:value": O[0] || (O[0] = (W) => N.value = W),
@@ -2476,10 +2476,10 @@ const tt = new Xs(), dt = (e, t, n) => {
2476
2476
  "label-in-value": !1
2477
2477
  }, q(m)), {
2478
2478
  default: Me(() => [
2479
- (se(!0), pe(Ke, null, Zn(S.value, (W) => (se(), pe(Ke, {
2479
+ (se(!0), pe(Ke, null, zn(S.value, (W) => (se(), pe(Ke, {
2480
2480
  key: W.value
2481
2481
  }, [
2482
- W.visible !== !1 ? (se(), Zt(q(Is), {
2482
+ W.visible !== !1 ? (se(), Zt(q(ys), {
2483
2483
  key: 0,
2484
2484
  value: W.value
2485
2485
  }, {
@@ -2504,9 +2504,9 @@ const tt = new Xs(), dt = (e, t, n) => {
2504
2504
  function Le(e, t) {
2505
2505
  typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
2506
2506
  }
2507
- const Sa = {};
2508
- function oa(e) {
2509
- Sa[e] || (Sa[e] = !0, Le(e));
2507
+ const Aa = {};
2508
+ function la(e) {
2509
+ Aa[e] || (Aa[e] = !0, Le(e));
2510
2510
  }
2511
2511
  const ye = typeof window < "u";
2512
2512
  let ue, Ye;
@@ -2519,21 +2519,21 @@ if (process.env.NODE_ENV !== "production") {
2519
2519
  e.measure(t, n, a), e.clearMarks(n), e.clearMarks(a);
2520
2520
  });
2521
2521
  }
2522
- const go = /\{([0-9a-zA-Z]+)\}/g;
2522
+ const ho = /\{([0-9a-zA-Z]+)\}/g;
2523
2523
  function un(e, ...t) {
2524
- return t.length === 1 && F(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(go, (n, a) => t.hasOwnProperty(a) ? t[a] : "");
2524
+ return t.length === 1 && F(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(ho, (n, a) => t.hasOwnProperty(a) ? t[a] : "");
2525
2525
  }
2526
- const Oe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), ho = (e, t, n) => Eo({ l: e, k: t, s: n }), Eo = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), Z = (e) => typeof e == "number" && isFinite(e), vo = (e) => la(e) === "[object Date]", lt = (e) => la(e) === "[object RegExp]", fn = (e) => w(e) && Object.keys(e).length === 0, z = Object.assign, bo = Object.create, $ = (e = null) => bo(e);
2527
- let Aa;
2528
- const He = () => Aa || (Aa = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : $());
2529
- function Pa(e) {
2526
+ const Oe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Eo = (e, t, n) => vo({ l: e, k: t, s: n }), vo = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), Z = (e) => typeof e == "number" && isFinite(e), bo = (e) => ia(e) === "[object Date]", lt = (e) => ia(e) === "[object RegExp]", fn = (e) => w(e) && Object.keys(e).length === 0, z = Object.assign, Io = Object.create, $ = (e = null) => Io(e);
2527
+ let Pa;
2528
+ const He = () => Pa || (Pa = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : $());
2529
+ function Ra(e) {
2530
2530
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/\//g, "&#x2F;").replace(/=/g, "&#x3D;");
2531
2531
  }
2532
- function Ra(e) {
2532
+ function ka(e) {
2533
2533
  return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&amp;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
2534
2534
  }
2535
- function Io(e) {
2536
- return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (a, r, s) => `${r}="${Ra(s)}"`), e = e.replace(/(\w+)\s*=\s*'([^']*)'/g, (a, r, s) => `${r}='${Ra(s)}'`), /\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")), [
2535
+ function yo(e) {
2536
+ return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (a, r, s) => `${r}="${ka(s)}"`), e = e.replace(/(\w+)\s*=\s*'([^']*)'/g, (a, r, s) => `${r}='${ka(s)}'`), /\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")), [
2537
2537
  // In href, src, action, formaction attributes
2538
2538
  /(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,
2539
2539
  // In style attributes within url()
@@ -2542,22 +2542,22 @@ function Io(e) {
2542
2542
  e = e.replace(a, "$1javascript&#58;");
2543
2543
  }), e;
2544
2544
  }
2545
- const yo = Object.prototype.hasOwnProperty;
2545
+ const No = Object.prototype.hasOwnProperty;
2546
2546
  function Ee(e, t) {
2547
- return yo.call(e, t);
2547
+ return No.call(e, t);
2548
2548
  }
2549
- const j = Array.isArray, H = (e) => typeof e == "function", A = (e) => typeof e == "string", U = (e) => typeof e == "boolean", F = (e) => e !== null && typeof e == "object", No = (e) => F(e) && H(e.then) && H(e.catch), Tr = Object.prototype.toString, la = (e) => Tr.call(e), w = (e) => la(e) === "[object Object]", To = (e) => e == null ? "" : j(e) || w(e) && e.toString === Tr ? JSON.stringify(e, null, 2) : String(e);
2550
- function ia(e, t = "") {
2549
+ const j = Array.isArray, H = (e) => typeof e == "function", A = (e) => typeof e == "string", U = (e) => typeof e == "boolean", F = (e) => e !== null && typeof e == "object", To = (e) => F(e) && H(e.then) && H(e.catch), Lr = Object.prototype.toString, ia = (e) => Lr.call(e), w = (e) => ia(e) === "[object Object]", Lo = (e) => e == null ? "" : j(e) || w(e) && e.toString === Lr ? JSON.stringify(e, null, 2) : String(e);
2550
+ function ca(e, t = "") {
2551
2551
  return e.reduce((n, a, r) => r === 0 ? n + a : n + t + a, "");
2552
2552
  }
2553
- const ka = 2;
2554
- function Lo(e, t = 0, n = e.length) {
2553
+ const Da = 2;
2554
+ function Oo(e, t = 0, n = e.length) {
2555
2555
  const a = e.split(/\r?\n/);
2556
2556
  let r = 0;
2557
2557
  const s = [];
2558
2558
  for (let o = 0; o < a.length; o++)
2559
2559
  if (r += a[o].length + 1, r >= t) {
2560
- for (let l = o - ka; l <= o + ka || n > r; l++) {
2560
+ for (let l = o - Da; l <= o + Da || n > r; l++) {
2561
2561
  if (l < 0 || l >= a.length)
2562
2562
  continue;
2563
2563
  const i = l + 1;
@@ -2579,7 +2579,7 @@ function Lo(e, t = 0, n = e.length) {
2579
2579
  return s.join(`
2580
2580
  `);
2581
2581
  }
2582
- function ca() {
2582
+ function ua() {
2583
2583
  const e = /* @__PURE__ */ new Map();
2584
2584
  return {
2585
2585
  events: e,
@@ -2613,7 +2613,7 @@ function Bt(e, t) {
2613
2613
  * (c) 2025 kazuya kawaguchi
2614
2614
  * Released under the MIT License.
2615
2615
  */
2616
- function Oo(e, t, n) {
2616
+ function So(e, t, n) {
2617
2617
  return { line: e, column: t, offset: n };
2618
2618
  }
2619
2619
  function $n(e, t, n) {
@@ -2640,7 +2640,7 @@ const D = {
2640
2640
  UNHANDLED_CODEGEN_NODE_TYPE: 15,
2641
2641
  // minifier error codes
2642
2642
  UNHANDLED_MINIFIER_NODE_TYPE: 16
2643
- }, So = 17, Ao = {
2643
+ }, Ao = 17, Po = {
2644
2644
  // tokenizer error messages
2645
2645
  [D.EXPECTED_TOKEN]: "Expected token: '{0}'",
2646
2646
  [D.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
@@ -2663,18 +2663,18 @@ const D = {
2663
2663
  [D.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
2664
2664
  };
2665
2665
  function mt(e, t, n = {}) {
2666
- const { domain: a, messages: r, args: s } = n, o = process.env.NODE_ENV !== "production" ? un((r || Ao)[e] || "", ...s || []) : e, l = new SyntaxError(String(o));
2666
+ const { domain: a, messages: r, args: s } = n, o = process.env.NODE_ENV !== "production" ? un((r || Po)[e] || "", ...s || []) : e, l = new SyntaxError(String(o));
2667
2667
  return l.code = e, t && (l.location = t), l.domain = a, l;
2668
2668
  }
2669
- function Po(e) {
2669
+ function Ro(e) {
2670
2670
  throw e;
2671
2671
  }
2672
- const Ro = /<\/?[\w\s="/.':;#-\/]+>/, ko = (e) => Ro.test(e), Ne = " ", Do = "\r", ae = `
2673
- `, Co = "\u2028", wo = "\u2029";
2674
- function Mo(e) {
2672
+ const ko = /<\/?[\w\s="/.':;#-\/]+>/, Do = (e) => ko.test(e), Ne = " ", Co = "\r", ae = `
2673
+ `, wo = "\u2028", Mo = "\u2029";
2674
+ function Fo(e) {
2675
2675
  const t = e;
2676
2676
  let n = 0, a = 1, r = 1, s = 0;
2677
- const o = (v) => t[v] === Do && t[v + 1] === ae, l = (v) => t[v] === ae, i = (v) => t[v] === wo, c = (v) => t[v] === Co, m = (v) => o(v) || l(v) || i(v) || c(v), g = () => n, p = () => a, N = () => r, P = () => s, T = (v) => o(v) || i(v) || c(v) ? ae : t[v], S = () => T(n), d = () => T(n + s);
2677
+ const o = (v) => t[v] === Co && t[v + 1] === ae, l = (v) => t[v] === ae, i = (v) => t[v] === Mo, c = (v) => t[v] === wo, m = (v) => o(v) || l(v) || i(v) || c(v), g = () => n, p = () => a, N = () => r, P = () => s, T = (v) => o(v) || i(v) || c(v) ? ae : t[v], S = () => T(n), d = () => T(n + s);
2678
2678
  function _() {
2679
2679
  return s = 0, m(n) && (a++, r = 0), o(n) && n++, n++, r++, t[n];
2680
2680
  }
@@ -2708,9 +2708,9 @@ function Mo(e) {
2708
2708
  skipToPeek: O
2709
2709
  };
2710
2710
  }
2711
- const Ae = void 0, Fo = ".", Da = "'", Uo = "tokenizer";
2712
- function xo(e, t = {}) {
2713
- const n = t.location !== !1, a = Mo(e), r = () => a.index(), s = () => Oo(a.line(), a.column(), a.index()), o = s(), l = r(), i = {
2711
+ const Ae = void 0, Uo = ".", Ca = "'", xo = "tokenizer";
2712
+ function Vo(e, t = {}) {
2713
+ const n = t.location !== !1, a = Fo(e), r = () => a.index(), s = () => So(a.line(), a.column(), a.index()), o = s(), l = r(), i = {
2714
2714
  currentType: 13,
2715
2715
  offset: l,
2716
2716
  startLoc: o,
@@ -2727,7 +2727,7 @@ function xo(e, t = {}) {
2727
2727
  const Y = c();
2728
2728
  if (f.column += y, f.offset += y, m) {
2729
2729
  const Q = n ? $n(Y.startLoc, f) : null, x = mt(u, Q, {
2730
- domain: Uo,
2730
+ domain: xo,
2731
2731
  args: k
2732
2732
  });
2733
2733
  m(x);
@@ -2791,7 +2791,7 @@ function xo(e, t = {}) {
2791
2791
  if (y !== 2)
2792
2792
  return !1;
2793
2793
  T(u);
2794
- const k = u.currentPeek() === Da;
2794
+ const k = u.currentPeek() === Ca;
2795
2795
  return u.resetPeek(), k;
2796
2796
  }
2797
2797
  function O(u, f) {
@@ -2926,9 +2926,9 @@ function xo(e, t = {}) {
2926
2926
  return u.currentChar() === "-" ? (u.next(), f += `-${pt(u)}`) : f += pt(u), u.currentChar() === Ae && g(D.UNTERMINATED_CLOSING_BRACE, s(), 0), f;
2927
2927
  }
2928
2928
  function Nn(u) {
2929
- return u !== Da && u !== ae;
2929
+ return u !== Ca && u !== ae;
2930
2930
  }
2931
- function ba(u) {
2931
+ function Ia(u) {
2932
2932
  S(u), P(u, "'");
2933
2933
  let f = "", y = "";
2934
2934
  for (; f = B(u, Nn); )
@@ -3025,7 +3025,7 @@ function xo(e, t = {}) {
3025
3025
  if (Q = E(u, f))
3026
3026
  return y = p(f, 5, yn(u)), S(u), y;
3027
3027
  if (x = b(u, f))
3028
- return y = p(f, 6, ba(u)), S(u), y;
3028
+ return y = p(f, 6, Ia(u)), S(u), y;
3029
3029
  if (!Y && !Q && !x)
3030
3030
  return y = p(f, 12, Vt(u)), g(D.INVALID_TOKEN_IN_PLACEHOLDER, s(), 0, y.value), S(u), y;
3031
3031
  break;
@@ -3109,8 +3109,8 @@ function xo(e, t = {}) {
3109
3109
  context: c
3110
3110
  };
3111
3111
  }
3112
- const Vo = "parser", $o = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
3113
- function Ho(e, t, n) {
3112
+ const $o = "parser", Ho = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
3113
+ function Wo(e, t, n) {
3114
3114
  switch (e) {
3115
3115
  case "\\\\":
3116
3116
  return "\\";
@@ -3123,13 +3123,13 @@ function Ho(e, t, n) {
3123
3123
  }
3124
3124
  }
3125
3125
  }
3126
- function Wo(e = {}) {
3126
+ function Go(e = {}) {
3127
3127
  const t = e.location !== !1, { onError: n } = e;
3128
3128
  function a(d, _, I, E, ...b) {
3129
3129
  const O = d.currentPosition();
3130
3130
  if (O.offset += E, O.column += E, n) {
3131
3131
  const v = t ? $n(I, O) : null, C = mt(_, v, {
3132
- domain: Vo,
3132
+ domain: $o,
3133
3133
  args: b
3134
3134
  });
3135
3135
  n(C);
@@ -3156,7 +3156,7 @@ function Wo(e = {}) {
3156
3156
  }
3157
3157
  function c(d, _) {
3158
3158
  const I = d.context(), { lastOffset: E, lastStartLoc: b } = I, O = r(9, E, b);
3159
- return O.value = _.replace($o, Ho), d.nextToken(), s(O, d.currentOffset(), d.currentPosition()), O;
3159
+ return O.value = _.replace(Ho, Wo), d.nextToken(), s(O, d.currentOffset(), d.currentPosition()), O;
3160
3160
  }
3161
3161
  function m(d) {
3162
3162
  const _ = d.nextToken(), I = d.context(), { lastOffset: E, lastStartLoc: b } = I, O = r(8, E, b);
@@ -3249,7 +3249,7 @@ function Wo(e = {}) {
3249
3249
  return _.currentType === 13 ? b : P(d, I, E, b);
3250
3250
  }
3251
3251
  function S(d) {
3252
- const _ = xo(d, z({}, e)), I = _.context(), E = r(0, I.offset, I.startLoc);
3252
+ const _ = Vo(d, z({}, e)), I = _.context(), E = r(0, I.offset, I.startLoc);
3253
3253
  return t && E.loc && (E.loc.source = d), E.body = T(_), e.onCacheKey && (E.cacheKey = e.onCacheKey(d)), I.currentType !== 13 && a(_, D.UNEXPECTED_LEXICAL_ANALYSIS, I.lastStartLoc, 0, d[I.offset] || ""), s(E, _.currentOffset(), _.currentPosition()), E;
3254
3254
  }
3255
3255
  return { parse: S };
@@ -3260,30 +3260,30 @@ function Te(e) {
3260
3260
  const t = (e.value || "").replace(/\r?\n/gu, "\\n");
3261
3261
  return t.length > 10 ? t.slice(0, 9) + "…" : t;
3262
3262
  }
3263
- function Go(e, t = {}) {
3263
+ function Ko(e, t = {}) {
3264
3264
  const n = {
3265
3265
  ast: e,
3266
3266
  helpers: /* @__PURE__ */ new Set()
3267
3267
  };
3268
3268
  return { context: () => n, helper: (s) => (n.helpers.add(s), s) };
3269
3269
  }
3270
- function Ca(e, t) {
3270
+ function wa(e, t) {
3271
3271
  for (let n = 0; n < e.length; n++)
3272
- ua(e[n], t);
3272
+ fa(e[n], t);
3273
3273
  }
3274
- function ua(e, t) {
3274
+ function fa(e, t) {
3275
3275
  switch (e.type) {
3276
3276
  case 1:
3277
- Ca(e.cases, t), t.helper(
3277
+ wa(e.cases, t), t.helper(
3278
3278
  "plural"
3279
3279
  /* HelperNameMap.PLURAL */
3280
3280
  );
3281
3281
  break;
3282
3282
  case 2:
3283
- Ca(e.items, t);
3283
+ wa(e.items, t);
3284
3284
  break;
3285
3285
  case 6: {
3286
- ua(e.key, t), t.helper(
3286
+ fa(e.key, t), t.helper(
3287
3287
  "linked"
3288
3288
  /* HelperNameMap.LINKED */
3289
3289
  ), t.helper(
@@ -3312,20 +3312,20 @@ function ua(e, t) {
3312
3312
  break;
3313
3313
  }
3314
3314
  }
3315
- function Ko(e, t = {}) {
3316
- const n = Go(e);
3315
+ function Yo(e, t = {}) {
3316
+ const n = Ko(e);
3317
3317
  n.helper(
3318
3318
  "normalize"
3319
3319
  /* HelperNameMap.NORMALIZE */
3320
- ), e.body && ua(e.body, n);
3320
+ ), e.body && fa(e.body, n);
3321
3321
  const a = n.context();
3322
3322
  e.helpers = Array.from(a.helpers);
3323
3323
  }
3324
- function Yo(e) {
3324
+ function jo(e) {
3325
3325
  const t = e.body;
3326
- return t.type === 2 ? wa(t) : t.cases.forEach((n) => wa(n)), e;
3326
+ return t.type === 2 ? Ma(t) : t.cases.forEach((n) => Ma(n)), e;
3327
3327
  }
3328
- function wa(e) {
3328
+ function Ma(e) {
3329
3329
  if (e.items.length === 1) {
3330
3330
  const t = e.items[0];
3331
3331
  (t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
@@ -3338,7 +3338,7 @@ function wa(e) {
3338
3338
  t.push(a.value);
3339
3339
  }
3340
3340
  if (t.length === e.items.length) {
3341
- e.static = ia(t);
3341
+ e.static = ca(t);
3342
3342
  for (let n = 0; n < e.items.length; n++) {
3343
3343
  const a = e.items[n];
3344
3344
  (a.type === 3 || a.type === 9) && delete a.value;
@@ -3346,7 +3346,7 @@ function wa(e) {
3346
3346
  }
3347
3347
  }
3348
3348
  }
3349
- const jo = "minifier";
3349
+ const Bo = "minifier";
3350
3350
  function ze(e) {
3351
3351
  switch (e.t = e.type, e.type) {
3352
3352
  case 0: {
@@ -3394,14 +3394,14 @@ function ze(e) {
3394
3394
  default:
3395
3395
  if (process.env.NODE_ENV !== "production")
3396
3396
  throw mt(D.UNHANDLED_MINIFIER_NODE_TYPE, null, {
3397
- domain: jo,
3397
+ domain: Bo,
3398
3398
  args: [e.type]
3399
3399
  });
3400
3400
  }
3401
3401
  delete e.type;
3402
3402
  }
3403
- const Bo = "parser";
3404
- function Qo(e, t) {
3403
+ const Qo = "parser";
3404
+ function Jo(e, t) {
3405
3405
  const { filename: n, breakLineCode: a, needIndent: r } = t, s = t.location !== !1, o = {
3406
3406
  filename: n,
3407
3407
  code: "",
@@ -3443,14 +3443,14 @@ function Qo(e, t) {
3443
3443
  needIndent: () => o.needIndent
3444
3444
  };
3445
3445
  }
3446
- function Jo(e, t) {
3446
+ function Xo(e, t) {
3447
3447
  const { helper: n } = e;
3448
3448
  e.push(`${n(
3449
3449
  "linked"
3450
3450
  /* HelperNameMap.LINKED */
3451
3451
  )}(`), it(e, t.key), t.modifier ? (e.push(", "), it(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
3452
3452
  }
3453
- function Xo(e, t) {
3453
+ function qo(e, t) {
3454
3454
  const { helper: n, needIndent: a } = e;
3455
3455
  e.push(`${n(
3456
3456
  "normalize"
@@ -3461,7 +3461,7 @@ function Xo(e, t) {
3461
3461
  e.push(", ");
3462
3462
  e.deindent(a()), e.push("])");
3463
3463
  }
3464
- function qo(e, t) {
3464
+ function Zo(e, t) {
3465
3465
  const { helper: n, needIndent: a } = e;
3466
3466
  if (t.cases.length > 1) {
3467
3467
  e.push(`${n(
@@ -3474,23 +3474,23 @@ function qo(e, t) {
3474
3474
  e.deindent(a()), e.push("])");
3475
3475
  }
3476
3476
  }
3477
- function Zo(e, t) {
3477
+ function zo(e, t) {
3478
3478
  t.body ? it(e, t.body) : e.push("null");
3479
3479
  }
3480
3480
  function it(e, t) {
3481
3481
  const { helper: n } = e;
3482
3482
  switch (t.type) {
3483
3483
  case 0:
3484
- Zo(e, t);
3484
+ zo(e, t);
3485
3485
  break;
3486
3486
  case 1:
3487
- qo(e, t);
3487
+ Zo(e, t);
3488
3488
  break;
3489
3489
  case 2:
3490
- Xo(e, t);
3490
+ qo(e, t);
3491
3491
  break;
3492
3492
  case 6:
3493
- Jo(e, t);
3493
+ Xo(e, t);
3494
3494
  break;
3495
3495
  case 8:
3496
3496
  e.push(JSON.stringify(t.value), t);
@@ -3525,21 +3525,21 @@ function it(e, t) {
3525
3525
  default:
3526
3526
  if (process.env.NODE_ENV !== "production")
3527
3527
  throw mt(D.UNHANDLED_CODEGEN_NODE_TYPE, null, {
3528
- domain: Bo,
3528
+ domain: Qo,
3529
3529
  args: [t.type]
3530
3530
  });
3531
3531
  }
3532
3532
  }
3533
- const zo = (e, t = {}) => {
3533
+ const el = (e, t = {}) => {
3534
3534
  const n = A(t.mode) ? t.mode : "normal", a = A(t.filename) ? t.filename : "message.intl";
3535
3535
  t.sourceMap;
3536
3536
  const r = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
3537
- `, s = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], l = Qo(e, {
3537
+ `, s = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], l = Jo(e, {
3538
3538
  filename: a,
3539
3539
  breakLineCode: r,
3540
3540
  needIndent: s
3541
3541
  });
3542
- l.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), l.indent(s), o.length > 0 && (l.push(`const { ${ia(o.map((m) => `${m}: _${m}`), ", ")} } = ctx`), l.newline()), l.push("return "), it(l, e), l.deindent(s), l.push("}"), delete e.helpers;
3542
+ l.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), l.indent(s), o.length > 0 && (l.push(`const { ${ca(o.map((m) => `${m}: _${m}`), ", ")} } = ctx`), l.newline()), l.push("return "), it(l, e), l.deindent(s), l.push("}"), delete e.helpers;
3543
3543
  const { code: i, map: c } = l.context();
3544
3544
  return {
3545
3545
  ast: e,
@@ -3548,55 +3548,55 @@ const zo = (e, t = {}) => {
3548
3548
  // eslint-disable-line @typescript-eslint/no-explicit-any
3549
3549
  };
3550
3550
  };
3551
- function el(e, t = {}) {
3552
- const n = z({}, t), a = !!n.jit, r = !!n.minify, s = n.optimize == null ? !0 : n.optimize, l = Wo(n).parse(e);
3553
- return a ? (s && Yo(l), r && ze(l), { ast: l, code: "" }) : (Ko(l, n), zo(l, n));
3551
+ function tl(e, t = {}) {
3552
+ const n = z({}, t), a = !!n.jit, r = !!n.minify, s = n.optimize == null ? !0 : n.optimize, l = Go(n).parse(e);
3553
+ return a ? (s && jo(l), r && ze(l), { ast: l, code: "" }) : (Yo(l, n), el(l, n));
3554
3554
  }
3555
3555
  /*!
3556
3556
  * core-base v11.2.2
3557
3557
  * (c) 2025 kazuya kawaguchi
3558
3558
  * Released under the MIT License.
3559
3559
  */
3560
- function tl() {
3560
+ function nl() {
3561
3561
  typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (He().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (He().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
3562
3562
  }
3563
3563
  function _e(e) {
3564
- return F(e) && fa(e) === 0 && (Ee(e, "b") || Ee(e, "body"));
3565
- }
3566
- const Lr = ["b", "body"];
3567
- function nl(e) {
3568
- return Fe(e, Lr);
3564
+ return F(e) && da(e) === 0 && (Ee(e, "b") || Ee(e, "body"));
3569
3565
  }
3570
- const Or = ["c", "cases"];
3566
+ const Or = ["b", "body"];
3571
3567
  function al(e) {
3572
- return Fe(e, Or, []);
3568
+ return Fe(e, Or);
3573
3569
  }
3574
- const Sr = ["s", "static"];
3570
+ const Sr = ["c", "cases"];
3575
3571
  function rl(e) {
3576
- return Fe(e, Sr);
3572
+ return Fe(e, Sr, []);
3577
3573
  }
3578
- const Ar = ["i", "items"];
3574
+ const Ar = ["s", "static"];
3579
3575
  function sl(e) {
3580
- return Fe(e, Ar, []);
3576
+ return Fe(e, Ar);
3581
3577
  }
3582
- const Pr = ["t", "type"];
3583
- function fa(e) {
3584
- return Fe(e, Pr);
3578
+ const Pr = ["i", "items"];
3579
+ function ol(e) {
3580
+ return Fe(e, Pr, []);
3585
3581
  }
3586
- const Rr = ["v", "value"];
3582
+ const Rr = ["t", "type"];
3583
+ function da(e) {
3584
+ return Fe(e, Rr);
3585
+ }
3586
+ const kr = ["v", "value"];
3587
3587
  function Kt(e, t) {
3588
- const n = Fe(e, Rr);
3588
+ const n = Fe(e, kr);
3589
3589
  if (n != null)
3590
3590
  return n;
3591
3591
  throw Tt(t);
3592
3592
  }
3593
- const kr = ["m", "modifier"];
3594
- function ol(e) {
3595
- return Fe(e, kr);
3596
- }
3597
- const Dr = ["k", "key"];
3593
+ const Dr = ["m", "modifier"];
3598
3594
  function ll(e) {
3599
- const t = Fe(e, Dr);
3595
+ return Fe(e, Dr);
3596
+ }
3597
+ const Cr = ["k", "key"];
3598
+ function il(e) {
3599
+ const t = Fe(e, Cr);
3600
3600
  if (t)
3601
3601
  return t;
3602
3602
  throw Tt(
@@ -3612,49 +3612,49 @@ function Fe(e, t, n) {
3612
3612
  }
3613
3613
  return n;
3614
3614
  }
3615
- const Cr = [
3616
- ...Lr,
3615
+ const wr = [
3617
3616
  ...Or,
3618
3617
  ...Sr,
3619
3618
  ...Ar,
3619
+ ...Pr,
3620
+ ...Cr,
3620
3621
  ...Dr,
3621
3622
  ...kr,
3622
- ...Rr,
3623
- ...Pr
3623
+ ...Rr
3624
3624
  ];
3625
3625
  function Tt(e) {
3626
3626
  return new Error(`unhandled node type: ${e}`);
3627
3627
  }
3628
3628
  function wn(e) {
3629
- return (n) => il(n, e);
3629
+ return (n) => cl(n, e);
3630
3630
  }
3631
- function il(e, t) {
3632
- const n = nl(t);
3631
+ function cl(e, t) {
3632
+ const n = al(t);
3633
3633
  if (n == null)
3634
3634
  throw Tt(
3635
3635
  0
3636
3636
  /* NodeTypes.Resource */
3637
3637
  );
3638
- if (fa(n) === 1) {
3639
- const s = al(n);
3638
+ if (da(n) === 1) {
3639
+ const s = rl(n);
3640
3640
  return e.plural(s.reduce((o, l) => [
3641
3641
  ...o,
3642
- Ma(e, l)
3642
+ Fa(e, l)
3643
3643
  ], []));
3644
3644
  } else
3645
- return Ma(e, n);
3645
+ return Fa(e, n);
3646
3646
  }
3647
- function Ma(e, t) {
3648
- const n = rl(t);
3647
+ function Fa(e, t) {
3648
+ const n = sl(t);
3649
3649
  if (n != null)
3650
3650
  return e.type === "text" ? n : e.normalize([n]);
3651
3651
  {
3652
- const a = sl(t).reduce((r, s) => [...r, Hn(e, s)], []);
3652
+ const a = ol(t).reduce((r, s) => [...r, Hn(e, s)], []);
3653
3653
  return e.normalize(a);
3654
3654
  }
3655
3655
  }
3656
3656
  function Hn(e, t) {
3657
- const n = fa(t);
3657
+ const n = da(t);
3658
3658
  switch (n) {
3659
3659
  case 3:
3660
3660
  return Kt(t, n);
@@ -3677,7 +3677,7 @@ function Hn(e, t) {
3677
3677
  throw Tt(n);
3678
3678
  }
3679
3679
  case 6: {
3680
- const a = t, r = ol(a), s = ll(a);
3680
+ const a = t, r = ll(a), s = il(a);
3681
3681
  return e.linked(Hn(e, s), r ? Hn(e, r) : void 0, e.type);
3682
3682
  }
3683
3683
  case 7:
@@ -3688,28 +3688,28 @@ function Hn(e, t) {
3688
3688
  throw new Error(`unhandled node on format message part: ${n}`);
3689
3689
  }
3690
3690
  }
3691
- const cl = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
3692
- function ul(e, t) {
3693
- t && ko(e) && Le(un(cl, { source: e }));
3691
+ const ul = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
3692
+ function fl(e, t) {
3693
+ t && Do(e) && Le(un(ul, { source: e }));
3694
3694
  }
3695
- const fl = (e) => e;
3695
+ const dl = (e) => e;
3696
3696
  let Yt = $();
3697
- function dl(e, t = {}) {
3697
+ function ml(e, t = {}) {
3698
3698
  let n = !1;
3699
- const a = t.onError || Po;
3699
+ const a = t.onError || Ro;
3700
3700
  return t.onError = (r) => {
3701
3701
  n = !0, a(r);
3702
- }, { ...el(e, t), detectError: n };
3702
+ }, { ...tl(e, t), detectError: n };
3703
3703
  }
3704
3704
  // @__NO_SIDE_EFFECTS__
3705
- function ml(e, t) {
3705
+ function pl(e, t) {
3706
3706
  if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && A(e)) {
3707
3707
  const n = U(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
3708
- process.env.NODE_ENV !== "production" && ul(e, n);
3709
- const r = (t.onCacheKey || fl)(e), s = Yt[r];
3708
+ process.env.NODE_ENV !== "production" && fl(e, n);
3709
+ const r = (t.onCacheKey || dl)(e), s = Yt[r];
3710
3710
  if (s)
3711
3711
  return s;
3712
- const { ast: o, detectError: l } = dl(e, {
3712
+ const { ast: o, detectError: l } = ml(e, {
3713
3713
  ...t,
3714
3714
  location: process.env.NODE_ENV !== "production",
3715
3715
  jit: !0
@@ -3727,10 +3727,10 @@ function ml(e, t) {
3727
3727
  }
3728
3728
  }
3729
3729
  let Lt = null;
3730
- function pl(e) {
3730
+ function _l(e) {
3731
3731
  Lt = e;
3732
3732
  }
3733
- function _l(e, t, n) {
3733
+ function gl(e, t, n) {
3734
3734
  Lt && Lt.emit("i18n:init", {
3735
3735
  timestamp: Date.now(),
3736
3736
  i18n: e,
@@ -3738,12 +3738,12 @@ function _l(e, t, n) {
3738
3738
  meta: n
3739
3739
  });
3740
3740
  }
3741
- const gl = /* @__PURE__ */ hl("function:translate");
3742
- function hl(e) {
3741
+ const hl = /* @__PURE__ */ El("function:translate");
3742
+ function El(e) {
3743
3743
  return (t) => Lt && Lt.emit(e, t);
3744
3744
  }
3745
3745
  const re = {
3746
- INVALID_ARGUMENT: So,
3746
+ INVALID_ARGUMENT: Ao,
3747
3747
  // 17
3748
3748
  INVALID_DATE_ARGUMENT: 18,
3749
3749
  INVALID_ISO_DATE_ARGUMENT: 19,
@@ -3751,11 +3751,11 @@ const re = {
3751
3751
  NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
3752
3752
  NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
3753
3753
  NOT_SUPPORT_LOCALE_TYPE: 23
3754
- }, El = 24;
3754
+ }, vl = 24;
3755
3755
  function Re(e) {
3756
- return mt(e, null, process.env.NODE_ENV !== "production" ? { messages: vl } : void 0);
3756
+ return mt(e, null, process.env.NODE_ENV !== "production" ? { messages: bl } : void 0);
3757
3757
  }
3758
- const vl = {
3758
+ const bl = {
3759
3759
  [re.INVALID_ARGUMENT]: "Invalid arguments",
3760
3760
  [re.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
3761
3761
  [re.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
@@ -3764,11 +3764,11 @@ const vl = {
3764
3764
  [re.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
3765
3765
  [re.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
3766
3766
  };
3767
- function da(e, t) {
3768
- return t.locale != null ? Fa(t.locale) : Fa(e.locale);
3767
+ function ma(e, t) {
3768
+ return t.locale != null ? Ua(t.locale) : Ua(e.locale);
3769
3769
  }
3770
3770
  let Mn;
3771
- function Fa(e) {
3771
+ function Ua(e) {
3772
3772
  if (A(e))
3773
3773
  return e;
3774
3774
  if (H(e)) {
@@ -3776,7 +3776,7 @@ function Fa(e) {
3776
3776
  return Mn;
3777
3777
  if (e.constructor.name === "Function") {
3778
3778
  const t = e();
3779
- if (No(t))
3779
+ if (To(t))
3780
3780
  throw Re(re.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
3781
3781
  return Mn = t;
3782
3782
  } else
@@ -3784,13 +3784,13 @@ function Fa(e) {
3784
3784
  } else
3785
3785
  throw Re(re.NOT_SUPPORT_LOCALE_TYPE);
3786
3786
  }
3787
- function bl(e, t, n) {
3787
+ function Il(e, t, n) {
3788
3788
  return [.../* @__PURE__ */ new Set([
3789
3789
  n,
3790
3790
  ...j(t) ? t : F(t) ? Object.keys(t) : A(t) ? [t] : [n]
3791
3791
  ])];
3792
3792
  }
3793
- function wr(e, t, n) {
3793
+ function Mr(e, t, n) {
3794
3794
  const a = A(n) ? n : Ot, r = e;
3795
3795
  r.__localeChainCache || (r.__localeChainCache = /* @__PURE__ */ new Map());
3796
3796
  let s = r.__localeChainCache.get(a);
@@ -3798,30 +3798,30 @@ function wr(e, t, n) {
3798
3798
  s = [];
3799
3799
  let o = [n];
3800
3800
  for (; j(o); )
3801
- o = Ua(s, o, t);
3801
+ o = xa(s, o, t);
3802
3802
  const l = j(t) || !w(t) ? t : t.default ? t.default : null;
3803
- o = A(l) ? [l] : l, j(o) && Ua(s, o, !1), r.__localeChainCache.set(a, s);
3803
+ o = A(l) ? [l] : l, j(o) && xa(s, o, !1), r.__localeChainCache.set(a, s);
3804
3804
  }
3805
3805
  return s;
3806
3806
  }
3807
- function Ua(e, t, n) {
3807
+ function xa(e, t, n) {
3808
3808
  let a = !0;
3809
3809
  for (let r = 0; r < t.length && U(a); r++) {
3810
3810
  const s = t[r];
3811
- A(s) && (a = Il(e, t[r], n));
3811
+ A(s) && (a = yl(e, t[r], n));
3812
3812
  }
3813
3813
  return a;
3814
3814
  }
3815
- function Il(e, t, n) {
3815
+ function yl(e, t, n) {
3816
3816
  let a;
3817
3817
  const r = t.split("-");
3818
3818
  do {
3819
3819
  const s = r.join("-");
3820
- a = yl(e, s, n), r.splice(-1, 1);
3820
+ a = Nl(e, s, n), r.splice(-1, 1);
3821
3821
  } while (r.length && a === !0);
3822
3822
  return a;
3823
3823
  }
3824
- function yl(e, t, n) {
3824
+ function Nl(e, t, n) {
3825
3825
  let a = !1;
3826
3826
  if (!e.includes(t) && (a = !0, t)) {
3827
3827
  a = t[t.length - 1] !== "!";
@@ -3991,15 +3991,15 @@ Ue[
3991
3991
  /* Actions.APPEND */
3992
3992
  ]
3993
3993
  };
3994
- const Nl = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
3995
- function Tl(e) {
3996
- return Nl.test(e);
3997
- }
3994
+ const Tl = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
3998
3995
  function Ll(e) {
3996
+ return Tl.test(e);
3997
+ }
3998
+ function Ol(e) {
3999
3999
  const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
4000
4000
  return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
4001
4001
  }
4002
- function Ol(e) {
4002
+ function Sl(e) {
4003
4003
  if (e == null)
4004
4004
  return "o";
4005
4005
  switch (e.charCodeAt(0)) {
@@ -4036,11 +4036,11 @@ function Ol(e) {
4036
4036
  }
4037
4037
  return "i";
4038
4038
  }
4039
- function Sl(e) {
4039
+ function Al(e) {
4040
4040
  const t = e.trim();
4041
- return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Tl(t) ? Ll(t) : "*" + t;
4041
+ return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Ll(t) ? Ol(t) : "*" + t;
4042
4042
  }
4043
- function Al(e) {
4043
+ function Pl(e) {
4044
4044
  const t = [];
4045
4045
  let n = -1, a = 0, r = 0, s, o, l, i, c, m, g;
4046
4046
  const p = [];
@@ -4072,7 +4072,7 @@ function Al(e) {
4072
4072
  /* Actions.APPEND */
4073
4073
  ]();
4074
4074
  else {
4075
- if (r = 0, o === void 0 || (o = Sl(o), o === !1))
4075
+ if (r = 0, o === void 0 || (o = Al(o), o === !1))
4076
4076
  return !1;
4077
4077
  p[
4078
4078
  1
@@ -4090,27 +4090,27 @@ function Al(e) {
4090
4090
  }
4091
4091
  for (; a !== null; )
4092
4092
  if (n++, s = e[n], !(s === "\\" && N())) {
4093
- if (i = Ol(s), g = Ue[a], c = g[i] || g.l || 8, c === 8 || (a = c[0], c[1] !== void 0 && (m = p[c[1]], m && (l = s, m() === !1))))
4093
+ if (i = Sl(s), g = Ue[a], c = g[i] || g.l || 8, c === 8 || (a = c[0], c[1] !== void 0 && (m = p[c[1]], m && (l = s, m() === !1))))
4094
4094
  return;
4095
4095
  if (a === 7)
4096
4096
  return t;
4097
4097
  }
4098
4098
  }
4099
- const xa = /* @__PURE__ */ new Map();
4100
- function Pl(e, t) {
4099
+ const Va = /* @__PURE__ */ new Map();
4100
+ function Rl(e, t) {
4101
4101
  return F(e) ? e[t] : null;
4102
4102
  }
4103
- function Rl(e, t) {
4103
+ function kl(e, t) {
4104
4104
  if (!F(e))
4105
4105
  return null;
4106
- let n = xa.get(t);
4107
- if (n || (n = Al(t), n && xa.set(t, n)), !n)
4106
+ let n = Va.get(t);
4107
+ if (n || (n = Pl(t), n && Va.set(t, n)), !n)
4108
4108
  return null;
4109
4109
  const a = n.length;
4110
4110
  let r = e, s = 0;
4111
4111
  for (; s < a; ) {
4112
4112
  const o = n[s];
4113
- if (Cr.includes(o) && _e(r))
4113
+ if (wr.includes(o) && _e(r))
4114
4114
  return null;
4115
4115
  const l = r[o];
4116
4116
  if (l === void 0 || H(r))
@@ -4127,7 +4127,7 @@ const ie = {
4127
4127
  CANNOT_FORMAT_DATE: 5,
4128
4128
  FALLBACK_TO_DATE_FORMAT: 6,
4129
4129
  EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7
4130
- }, kl = 8, Dl = {
4130
+ }, Dl = 8, Cl = {
4131
4131
  [ie.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
4132
4132
  [ie.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
4133
4133
  [ie.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
@@ -4137,20 +4137,16 @@ const ie = {
4137
4137
  [ie.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."
4138
4138
  };
4139
4139
  function je(e, ...t) {
4140
- return un(Dl[e], ...t);
4140
+ return un(Cl[e], ...t);
4141
4141
  }
4142
- const Cl = "11.2.2", dn = -1, Ot = "en-US", Xt = "", Va = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
4143
- function wl() {
4142
+ const wl = "11.2.2", dn = -1, Ot = "en-US", Xt = "", $a = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
4143
+ function Ml() {
4144
4144
  return {
4145
4145
  upper: (e, t) => t === "text" && A(e) ? e.toUpperCase() : t === "vnode" && F(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
4146
4146
  lower: (e, t) => t === "text" && A(e) ? e.toLowerCase() : t === "vnode" && F(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
4147
- capitalize: (e, t) => t === "text" && A(e) ? Va(e) : t === "vnode" && F(e) && "__v_isVNode" in e ? Va(e.children) : e
4147
+ capitalize: (e, t) => t === "text" && A(e) ? $a(e) : t === "vnode" && F(e) && "__v_isVNode" in e ? $a(e.children) : e
4148
4148
  };
4149
4149
  }
4150
- let Mr;
4151
- function Ml(e) {
4152
- Mr = e;
4153
- }
4154
4150
  let Fr;
4155
4151
  function Fl(e) {
4156
4152
  Fr = e;
@@ -4159,23 +4155,27 @@ let Ur;
4159
4155
  function Ul(e) {
4160
4156
  Ur = e;
4161
4157
  }
4162
- let xr = null;
4163
- const xl = /* @__NO_SIDE_EFFECTS__ */ (e) => {
4158
+ let xr;
4159
+ function xl(e) {
4164
4160
  xr = e;
4165
- }, Vl = /* @__NO_SIDE_EFFECTS__ */ () => xr;
4161
+ }
4166
4162
  let Vr = null;
4167
- const $a = (e) => {
4163
+ const Vl = /* @__NO_SIDE_EFFECTS__ */ (e) => {
4168
4164
  Vr = e;
4169
- }, $l = () => Vr;
4170
- let Ha = 0;
4171
- function Hl(e = {}) {
4172
- const t = H(e.onWarn) ? e.onWarn : Le, n = A(e.version) ? e.version : Cl, a = A(e.locale) || H(e.locale) ? e.locale : Ot, r = H(a) ? Ot : a, s = j(e.fallbackLocale) || w(e.fallbackLocale) || A(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : r, o = w(e.messages) ? e.messages : Fn(r), l = w(e.datetimeFormats) ? e.datetimeFormats : Fn(r), i = w(e.numberFormats) ? e.numberFormats : Fn(r), c = z($(), e.modifiers, wl()), m = e.pluralRules || $(), g = H(e.missing) ? e.missing : null, p = U(e.missingWarn) || lt(e.missingWarn) ? e.missingWarn : !0, N = U(e.fallbackWarn) || lt(e.fallbackWarn) ? e.fallbackWarn : !0, P = !!e.fallbackFormat, T = !!e.unresolving, S = H(e.postTranslation) ? e.postTranslation : null, d = w(e.processor) ? e.processor : null, _ = U(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, I = !!e.escapeParameter, E = H(e.messageCompiler) ? e.messageCompiler : Mr;
4173
- process.env.NODE_ENV !== "production" && H(e.messageCompiler) && oa(je(ie.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
4174
- const b = H(e.messageResolver) ? e.messageResolver : Fr || Pl, O = H(e.localeFallbacker) ? e.localeFallbacker : Ur || bl, v = F(e.fallbackContext) ? e.fallbackContext : void 0, C = e, M = F(C.__datetimeFormatters) ? C.__datetimeFormatters : /* @__PURE__ */ new Map(), W = F(C.__numberFormatters) ? C.__numberFormatters : /* @__PURE__ */ new Map(), ge = F(C.__meta) ? C.__meta : {};
4175
- Ha++;
4165
+ }, $l = /* @__NO_SIDE_EFFECTS__ */ () => Vr;
4166
+ let $r = null;
4167
+ const Ha = (e) => {
4168
+ $r = e;
4169
+ }, Hl = () => $r;
4170
+ let Wa = 0;
4171
+ function Wl(e = {}) {
4172
+ const t = H(e.onWarn) ? e.onWarn : Le, n = A(e.version) ? e.version : wl, a = A(e.locale) || H(e.locale) ? e.locale : Ot, r = H(a) ? Ot : a, s = j(e.fallbackLocale) || w(e.fallbackLocale) || A(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : r, o = w(e.messages) ? e.messages : Fn(r), l = w(e.datetimeFormats) ? e.datetimeFormats : Fn(r), i = w(e.numberFormats) ? e.numberFormats : Fn(r), c = z($(), e.modifiers, Ml()), m = e.pluralRules || $(), g = H(e.missing) ? e.missing : null, p = U(e.missingWarn) || lt(e.missingWarn) ? e.missingWarn : !0, N = U(e.fallbackWarn) || lt(e.fallbackWarn) ? e.fallbackWarn : !0, P = !!e.fallbackFormat, T = !!e.unresolving, S = H(e.postTranslation) ? e.postTranslation : null, d = w(e.processor) ? e.processor : null, _ = U(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, I = !!e.escapeParameter, E = H(e.messageCompiler) ? e.messageCompiler : Fr;
4173
+ process.env.NODE_ENV !== "production" && H(e.messageCompiler) && la(je(ie.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
4174
+ const b = H(e.messageResolver) ? e.messageResolver : Ur || Rl, O = H(e.localeFallbacker) ? e.localeFallbacker : xr || Il, v = F(e.fallbackContext) ? e.fallbackContext : void 0, C = e, M = F(C.__datetimeFormatters) ? C.__datetimeFormatters : /* @__PURE__ */ new Map(), W = F(C.__numberFormatters) ? C.__numberFormatters : /* @__PURE__ */ new Map(), ge = F(C.__meta) ? C.__meta : {};
4175
+ Wa++;
4176
4176
  const B = {
4177
4177
  version: n,
4178
- cid: Ha,
4178
+ cid: Wa,
4179
4179
  locale: a,
4180
4180
  fallbackLocale: s,
4181
4181
  messages: o,
@@ -4197,16 +4197,16 @@ function Hl(e = {}) {
4197
4197
  onWarn: t,
4198
4198
  __meta: ge
4199
4199
  };
4200
- return B.datetimeFormats = l, B.numberFormats = i, B.__datetimeFormatters = M, B.__numberFormatters = W, process.env.NODE_ENV !== "production" && (B.__v_emitter = C.__v_emitter != null ? C.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && _l(B, n, ge), B;
4200
+ return B.datetimeFormats = l, B.numberFormats = i, B.__datetimeFormatters = M, B.__numberFormatters = W, process.env.NODE_ENV !== "production" && (B.__v_emitter = C.__v_emitter != null ? C.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && gl(B, n, ge), B;
4201
4201
  }
4202
4202
  const Fn = (e) => ({ [e]: $() });
4203
4203
  function mn(e, t) {
4204
4204
  return e instanceof RegExp ? e.test(t) : e;
4205
4205
  }
4206
- function $r(e, t) {
4206
+ function Hr(e, t) {
4207
4207
  return e instanceof RegExp ? e.test(t) : e;
4208
4208
  }
4209
- function ma(e, t, n, a, r) {
4209
+ function pa(e, t, n, a, r) {
4210
4210
  const { missing: s, onWarn: o } = e;
4211
4211
  if (process.env.NODE_ENV !== "production") {
4212
4212
  const l = e.__v_emitter;
@@ -4221,33 +4221,33 @@ function ma(e, t, n, a, r) {
4221
4221
  const l = s(e, n, t, r);
4222
4222
  return A(l) ? l : t;
4223
4223
  } else
4224
- return process.env.NODE_ENV !== "production" && $r(a, t) && o(je(ie.NOT_FOUND_KEY, { key: t, locale: n })), t;
4224
+ return process.env.NODE_ENV !== "production" && Hr(a, t) && o(je(ie.NOT_FOUND_KEY, { key: t, locale: n })), t;
4225
4225
  }
4226
4226
  function bt(e, t, n) {
4227
4227
  const a = e;
4228
4228
  a.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
4229
4229
  }
4230
- function Hr(e, t) {
4230
+ function Wr(e, t) {
4231
4231
  return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
4232
4232
  }
4233
- function Wl(e, t) {
4233
+ function Gl(e, t) {
4234
4234
  const n = t.indexOf(e);
4235
4235
  if (n === -1)
4236
4236
  return !1;
4237
4237
  for (let a = n + 1; a < t.length; a++)
4238
- if (Hr(e, t[a]))
4238
+ if (Wr(e, t[a]))
4239
4239
  return !0;
4240
4240
  return !1;
4241
4241
  }
4242
- const Wa = typeof Intl < "u", Wr = {
4243
- dateTimeFormat: Wa && typeof Intl.DateTimeFormat < "u",
4244
- numberFormat: Wa && typeof Intl.NumberFormat < "u"
4242
+ const Ga = typeof Intl < "u", Gr = {
4243
+ dateTimeFormat: Ga && typeof Intl.DateTimeFormat < "u",
4244
+ numberFormat: Ga && typeof Intl.NumberFormat < "u"
4245
4245
  };
4246
- function Ga(e, ...t) {
4246
+ function Ka(e, ...t) {
4247
4247
  const { datetimeFormats: n, unresolving: a, fallbackLocale: r, onWarn: s, localeFallbacker: o } = e, { __datetimeFormatters: l } = e;
4248
- if (process.env.NODE_ENV !== "production" && !Wr.dateTimeFormat)
4248
+ if (process.env.NODE_ENV !== "production" && !Gr.dateTimeFormat)
4249
4249
  return s(je(ie.CANNOT_FORMAT_DATE)), Xt;
4250
- const [i, c, m, g] = Wn(...t), p = U(m.missingWarn) ? m.missingWarn : e.missingWarn, N = U(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, P = !!m.part, T = da(e, m), S = o(
4250
+ const [i, c, m, g] = Wn(...t), p = U(m.missingWarn) ? m.missingWarn : e.missingWarn, N = U(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, P = !!m.part, T = ma(e, m), S = o(
4251
4251
  e,
4252
4252
  // eslint-disable-line @typescript-eslint/no-explicit-any
4253
4253
  r,
@@ -4273,7 +4273,7 @@ function Ga(e, ...t) {
4273
4273
  }
4274
4274
  if (d = n[_] || {}, I = d[i], w(I))
4275
4275
  break;
4276
- ma(e, i, _, p, O), E = b;
4276
+ pa(e, i, _, p, O), E = b;
4277
4277
  }
4278
4278
  if (!w(I) || !A(_))
4279
4279
  return a ? dn : i;
@@ -4282,7 +4282,7 @@ function Ga(e, ...t) {
4282
4282
  let C = l.get(v);
4283
4283
  return C || (C = new Intl.DateTimeFormat(_, z({}, I, g)), l.set(v, C)), P ? C.formatToParts(c) : C.format(c);
4284
4284
  }
4285
- const Gr = [
4285
+ const Kr = [
4286
4286
  "localeMatcher",
4287
4287
  "weekday",
4288
4288
  "era",
@@ -4318,7 +4318,7 @@ function Wn(...e) {
4318
4318
  } catch {
4319
4319
  throw Re(re.INVALID_ISO_DATE_ARGUMENT);
4320
4320
  }
4321
- } else if (vo(t)) {
4321
+ } else if (bo(t)) {
4322
4322
  if (isNaN(t.getTime()))
4323
4323
  throw Re(re.INVALID_DATE_ARGUMENT);
4324
4324
  l = t;
@@ -4327,21 +4327,21 @@ function Wn(...e) {
4327
4327
  else
4328
4328
  throw Re(re.INVALID_ARGUMENT);
4329
4329
  return A(n) ? s.key = n : w(n) && Object.keys(n).forEach((i) => {
4330
- Gr.includes(i) ? o[i] = n[i] : s[i] = n[i];
4330
+ Kr.includes(i) ? o[i] = n[i] : s[i] = n[i];
4331
4331
  }), A(a) ? s.locale = a : w(a) && (o = a), w(r) && (o = r), [s.key || "", l, s, o];
4332
4332
  }
4333
- function Ka(e, t, n) {
4333
+ function Ya(e, t, n) {
4334
4334
  const a = e;
4335
4335
  for (const r in n) {
4336
4336
  const s = `${t}__${r}`;
4337
4337
  a.__datetimeFormatters.has(s) && a.__datetimeFormatters.delete(s);
4338
4338
  }
4339
4339
  }
4340
- function Ya(e, ...t) {
4340
+ function ja(e, ...t) {
4341
4341
  const { numberFormats: n, unresolving: a, fallbackLocale: r, onWarn: s, localeFallbacker: o } = e, { __numberFormatters: l } = e;
4342
- if (process.env.NODE_ENV !== "production" && !Wr.numberFormat)
4342
+ if (process.env.NODE_ENV !== "production" && !Gr.numberFormat)
4343
4343
  return s(je(ie.CANNOT_FORMAT_NUMBER)), Xt;
4344
- const [i, c, m, g] = Gn(...t), p = U(m.missingWarn) ? m.missingWarn : e.missingWarn, N = U(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, P = !!m.part, T = da(e, m), S = o(
4344
+ const [i, c, m, g] = Gn(...t), p = U(m.missingWarn) ? m.missingWarn : e.missingWarn, N = U(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, P = !!m.part, T = ma(e, m), S = o(
4345
4345
  e,
4346
4346
  // eslint-disable-line @typescript-eslint/no-explicit-any
4347
4347
  r,
@@ -4367,7 +4367,7 @@ function Ya(e, ...t) {
4367
4367
  }
4368
4368
  if (d = n[_] || {}, I = d[i], w(I))
4369
4369
  break;
4370
- ma(e, i, _, p, O), E = b;
4370
+ pa(e, i, _, p, O), E = b;
4371
4371
  }
4372
4372
  if (!w(I) || !A(_))
4373
4373
  return a ? dn : i;
@@ -4376,7 +4376,7 @@ function Ya(e, ...t) {
4376
4376
  let C = l.get(v);
4377
4377
  return C || (C = new Intl.NumberFormat(_, z({}, I, g)), l.set(v, C)), P ? C.formatToParts(c) : C.format(c);
4378
4378
  }
4379
- const Kr = [
4379
+ const Yr = [
4380
4380
  "localeMatcher",
4381
4381
  "style",
4382
4382
  "currency",
@@ -4405,36 +4405,36 @@ function Gn(...e) {
4405
4405
  throw Re(re.INVALID_ARGUMENT);
4406
4406
  const l = t;
4407
4407
  return A(n) ? s.key = n : w(n) && Object.keys(n).forEach((i) => {
4408
- Kr.includes(i) ? o[i] = n[i] : s[i] = n[i];
4408
+ Yr.includes(i) ? o[i] = n[i] : s[i] = n[i];
4409
4409
  }), A(a) ? s.locale = a : w(a) && (o = a), w(r) && (o = r), [s.key || "", l, s, o];
4410
4410
  }
4411
- function ja(e, t, n) {
4411
+ function Ba(e, t, n) {
4412
4412
  const a = e;
4413
4413
  for (const r in n) {
4414
4414
  const s = `${t}__${r}`;
4415
4415
  a.__numberFormatters.has(s) && a.__numberFormatters.delete(s);
4416
4416
  }
4417
4417
  }
4418
- const Gl = (e) => e, Kl = (e) => "", Yl = "text", jl = (e) => e.length === 0 ? "" : ia(e), Bl = To;
4419
- function Ba(e, t) {
4418
+ const Kl = (e) => e, Yl = (e) => "", jl = "text", Bl = (e) => e.length === 0 ? "" : ca(e), Ql = Lo;
4419
+ function Qa(e, t) {
4420
4420
  return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
4421
4421
  }
4422
- function Ql(e) {
4422
+ function Jl(e) {
4423
4423
  const t = Z(e.pluralIndex) ? e.pluralIndex : -1;
4424
4424
  return e.named && (Z(e.named.count) || Z(e.named.n)) ? Z(e.named.count) ? e.named.count : Z(e.named.n) ? e.named.n : t : t;
4425
4425
  }
4426
- function Jl(e, t) {
4426
+ function Xl(e, t) {
4427
4427
  t.count || (t.count = e), t.n || (t.n = e);
4428
4428
  }
4429
- function Xl(e = {}) {
4430
- const t = e.locale, n = Ql(e), a = F(e.pluralRules) && A(t) && H(e.pluralRules[t]) ? e.pluralRules[t] : Ba, r = F(e.pluralRules) && A(t) && H(e.pluralRules[t]) ? Ba : void 0, s = (d) => d[a(n, d.length, r)], o = e.list || [], l = (d) => o[d], i = e.named || $();
4431
- Z(e.pluralIndex) && Jl(n, i);
4429
+ function ql(e = {}) {
4430
+ const t = e.locale, n = Jl(e), a = F(e.pluralRules) && A(t) && H(e.pluralRules[t]) ? e.pluralRules[t] : Qa, r = F(e.pluralRules) && A(t) && H(e.pluralRules[t]) ? Qa : void 0, s = (d) => d[a(n, d.length, r)], o = e.list || [], l = (d) => o[d], i = e.named || $();
4431
+ Z(e.pluralIndex) && Xl(n, i);
4432
4432
  const c = (d) => i[d];
4433
4433
  function m(d, _) {
4434
4434
  const I = H(e.messages) ? e.messages(d, !!_) : F(e.messages) ? e.messages[d] : !1;
4435
- return I || (e.parent ? e.parent.message(d) : Kl);
4435
+ return I || (e.parent ? e.parent.message(d) : Yl);
4436
4436
  }
4437
- const g = (d) => e.modifiers ? e.modifiers[d] : Gl, p = w(e.processor) && H(e.processor.normalize) ? e.processor.normalize : jl, N = w(e.processor) && H(e.processor.interpolate) ? e.processor.interpolate : Bl, P = w(e.processor) && A(e.processor.type) ? e.processor.type : Yl, S = {
4437
+ const g = (d) => e.modifiers ? e.modifiers[d] : Kl, p = w(e.processor) && H(e.processor.normalize) ? e.processor.normalize : Bl, N = w(e.processor) && H(e.processor.interpolate) ? e.processor.interpolate : Ql, P = w(e.processor) && A(e.processor.type) ? e.processor.type : jl, S = {
4438
4438
  list: l,
4439
4439
  named: c,
4440
4440
  plural: s,
@@ -4456,15 +4456,15 @@ function Xl(e = {}) {
4456
4456
  };
4457
4457
  return S;
4458
4458
  }
4459
- const Qa = () => "", de = (e) => H(e);
4460
- function Ja(e, ...t) {
4461
- const { fallbackFormat: n, postTranslation: a, unresolving: r, messageCompiler: s, fallbackLocale: o, messages: l } = e, [i, c] = Kn(...t), m = U(c.missingWarn) ? c.missingWarn : e.missingWarn, g = U(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, p = U(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, N = !!c.resolvedMessage, P = A(c.default) || U(c.default) ? U(c.default) ? s ? i : () => i : c.default : n ? s ? i : () => i : null, T = n || P != null && (A(P) || H(P)), S = da(e, c);
4462
- p && ql(c);
4459
+ const Ja = () => "", de = (e) => H(e);
4460
+ function Xa(e, ...t) {
4461
+ const { fallbackFormat: n, postTranslation: a, unresolving: r, messageCompiler: s, fallbackLocale: o, messages: l } = e, [i, c] = Kn(...t), m = U(c.missingWarn) ? c.missingWarn : e.missingWarn, g = U(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, p = U(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, N = !!c.resolvedMessage, P = A(c.default) || U(c.default) ? U(c.default) ? s ? i : () => i : c.default : n ? s ? i : () => i : null, T = n || P != null && (A(P) || H(P)), S = ma(e, c);
4462
+ p && Zl(c);
4463
4463
  let [d, _, I] = N ? [
4464
4464
  i,
4465
4465
  S,
4466
4466
  l[S] || $()
4467
- ] : Yr(e, i, S, o, g, m), E = d, b = i;
4467
+ ] : jr(e, i, S, o, g, m), E = d, b = i;
4468
4468
  if (!N && !(A(E) || _e(E) || de(E)) && T && (E = P, b = E), !N && (!(A(E) || _e(E) || de(E)) || !A(_)))
4469
4469
  return r ? dn : i;
4470
4470
  if (process.env.NODE_ENV !== "production" && A(E) && e.messageCompiler == null)
@@ -4472,12 +4472,12 @@ function Ja(e, ...t) {
4472
4472
  let O = !1;
4473
4473
  const v = () => {
4474
4474
  O = !0;
4475
- }, C = de(E) ? E : jr(e, i, _, E, b, v);
4475
+ }, C = de(E) ? E : Br(e, i, _, E, b, v);
4476
4476
  if (O)
4477
4477
  return E;
4478
- const M = ti(e, _, I, c), W = Xl(M), ge = Zl(e, C, W);
4478
+ const M = ni(e, _, I, c), W = ql(M), ge = zl(e, C, W);
4479
4479
  let B = a ? a(ge, i) : ge;
4480
- if (p && A(B) && (B = Io(B)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
4480
+ if (p && A(B) && (B = yo(B)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
4481
4481
  const Je = {
4482
4482
  timestamp: Date.now(),
4483
4483
  key: A(i) ? i : de(E) ? E.key : "",
@@ -4485,21 +4485,21 @@ function Ja(e, ...t) {
4485
4485
  format: A(E) ? E : de(E) ? E.source : "",
4486
4486
  message: B
4487
4487
  };
4488
- Je.meta = z({}, e.__meta, /* @__PURE__ */ Vl() || {}), gl(Je);
4488
+ Je.meta = z({}, e.__meta, /* @__PURE__ */ $l() || {}), hl(Je);
4489
4489
  }
4490
4490
  return B;
4491
4491
  }
4492
- function ql(e) {
4493
- j(e.list) ? e.list = e.list.map((t) => A(t) ? Pa(t) : t) : F(e.named) && Object.keys(e.named).forEach((t) => {
4494
- A(e.named[t]) && (e.named[t] = Pa(e.named[t]));
4492
+ function Zl(e) {
4493
+ j(e.list) ? e.list = e.list.map((t) => A(t) ? Ra(t) : t) : F(e.named) && Object.keys(e.named).forEach((t) => {
4494
+ A(e.named[t]) && (e.named[t] = Ra(e.named[t]));
4495
4495
  });
4496
4496
  }
4497
- function Yr(e, t, n, a, r, s) {
4497
+ function jr(e, t, n, a, r, s) {
4498
4498
  const { messages: o, onWarn: l, messageResolver: i, localeFallbacker: c } = e, m = c(e, a, n);
4499
4499
  let g = $(), p, N = null, P = n, T = null;
4500
4500
  const S = "translate";
4501
4501
  for (let d = 0; d < m.length; d++) {
4502
- if (p = T = m[d], process.env.NODE_ENV !== "production" && n !== p && !Hr(n, p) && mn(r, t) && l(je(ie.FALLBACK_TO_TRANSLATE, {
4502
+ if (p = T = m[d], process.env.NODE_ENV !== "production" && n !== p && !Wr(n, p) && mn(r, t) && l(je(ie.FALLBACK_TO_TRANSLATE, {
4503
4503
  key: t,
4504
4504
  target: p
4505
4505
  })), process.env.NODE_ENV !== "production" && n !== p) {
@@ -4526,8 +4526,8 @@ function Yr(e, t, n, a, r, s) {
4526
4526
  }
4527
4527
  if (A(N) || _e(N) || de(N))
4528
4528
  break;
4529
- if (!Wl(p, m)) {
4530
- const b = ma(
4529
+ if (!Gl(p, m)) {
4530
+ const b = pa(
4531
4531
  e,
4532
4532
  // eslint-disable-line @typescript-eslint/no-explicit-any
4533
4533
  t,
@@ -4541,7 +4541,7 @@ function Yr(e, t, n, a, r, s) {
4541
4541
  }
4542
4542
  return [N, p, g];
4543
4543
  }
4544
- function jr(e, t, n, a, r, s) {
4544
+ function Br(e, t, n, a, r, s) {
4545
4545
  const { messageCompiler: o, warnHtmlMessage: l } = e;
4546
4546
  if (de(a)) {
4547
4547
  const p = a;
@@ -4553,7 +4553,7 @@ function jr(e, t, n, a, r, s) {
4553
4553
  }
4554
4554
  let i = null, c, m;
4555
4555
  process.env.NODE_ENV !== "production" && ye && (i = window.performance.now(), c = "intlify-message-compilation-start", m = "intlify-message-compilation-end", ue && ue(c));
4556
- const g = o(a, zl(e, n, r, a, l, s));
4556
+ const g = o(a, ei(e, n, r, a, l, s));
4557
4557
  if (process.env.NODE_ENV !== "production" && ye) {
4558
4558
  const p = window.performance.now(), N = e.__v_emitter;
4559
4559
  N && i && N.emit("message-compilation", {
@@ -4565,7 +4565,7 @@ function jr(e, t, n, a, r, s) {
4565
4565
  }
4566
4566
  return g.locale = n, g.key = t, g.source = a, g;
4567
4567
  }
4568
- function Zl(e, t, n) {
4568
+ function zl(e, t, n) {
4569
4569
  let a = null, r, s;
4570
4570
  process.env.NODE_ENV !== "production" && ye && (a = window.performance.now(), r = "intlify-message-evaluation-start", s = "intlify-message-evaluation-end", ue && ue(r));
4571
4571
  const o = t(n);
@@ -4587,14 +4587,14 @@ function Kn(...e) {
4587
4587
  const s = Z(t) ? String(t) : (de(t), t);
4588
4588
  return Z(n) ? r.plural = n : A(n) ? r.default = n : w(n) && !fn(n) ? r.named = n : j(n) && (r.list = n), Z(a) ? r.plural = a : A(a) ? r.default = a : w(a) && z(r, a), [s, r];
4589
4589
  }
4590
- function zl(e, t, n, a, r, s) {
4590
+ function ei(e, t, n, a, r, s) {
4591
4591
  return {
4592
4592
  locale: t,
4593
4593
  key: n,
4594
4594
  warnHtmlMessage: r,
4595
4595
  onError: (o) => {
4596
4596
  if (s && s(o), process.env.NODE_ENV !== "production") {
4597
- const l = ei(a), i = `Message compilation error: ${o.message}`, c = o.location && l && Lo(l, o.location.start.offset, o.location.end.offset), m = e.__v_emitter;
4597
+ const l = ti(a), i = `Message compilation error: ${o.message}`, c = o.location && l && Oo(l, o.location.start.offset, o.location.end.offset), m = e.__v_emitter;
4598
4598
  m && l && m.emit("compile-error", {
4599
4599
  message: l,
4600
4600
  error: o.message,
@@ -4606,16 +4606,16 @@ ${c}` : i);
4606
4606
  } else
4607
4607
  throw o;
4608
4608
  },
4609
- onCacheKey: (o) => ho(t, n, o)
4609
+ onCacheKey: (o) => Eo(t, n, o)
4610
4610
  };
4611
4611
  }
4612
- function ei(e) {
4612
+ function ti(e) {
4613
4613
  if (A(e))
4614
4614
  return e;
4615
4615
  if (e.loc && e.loc.source)
4616
4616
  return e.loc.source;
4617
4617
  }
4618
- function ti(e, t, n, a) {
4618
+ function ni(e, t, n, a) {
4619
4619
  const { modifiers: r, pluralRules: s, messageResolver: o, fallbackLocale: l, fallbackWarn: i, missingWarn: c, fallbackContext: m } = e, p = {
4620
4620
  locale: t,
4621
4621
  modifiers: r,
@@ -4623,7 +4623,7 @@ function ti(e, t, n, a) {
4623
4623
  messages: (N, P) => {
4624
4624
  let T = o(n, N);
4625
4625
  if (T == null && (m || P)) {
4626
- const [, , S] = Yr(
4626
+ const [, , S] = jr(
4627
4627
  m || e,
4628
4628
  // NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
4629
4629
  N,
@@ -4636,32 +4636,32 @@ function ti(e, t, n, a) {
4636
4636
  }
4637
4637
  if (A(T) || _e(T)) {
4638
4638
  let S = !1;
4639
- const _ = jr(e, N, t, T, N, () => {
4639
+ const _ = Br(e, N, t, T, N, () => {
4640
4640
  S = !0;
4641
4641
  });
4642
- return S ? Qa : _;
4643
- } else return de(T) ? T : Qa;
4642
+ return S ? Ja : _;
4643
+ } else return de(T) ? T : Ja;
4644
4644
  }
4645
4645
  };
4646
4646
  return e.processor && (p.processor = e.processor), a.list && (p.list = a.list), a.named && (p.named = a.named), Z(a.plural) && (p.pluralIndex = a.plural), p;
4647
4647
  }
4648
- tl();
4649
- function ni() {
4650
- return Br().__VUE_DEVTOOLS_GLOBAL_HOOK__;
4648
+ nl();
4649
+ function ai() {
4650
+ return Qr().__VUE_DEVTOOLS_GLOBAL_HOOK__;
4651
4651
  }
4652
- function Br() {
4652
+ function Qr() {
4653
4653
  return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
4654
4654
  }
4655
- const ai = typeof Proxy == "function", ri = "devtools-plugin:setup", si = "plugin:settings:set";
4655
+ const ri = typeof Proxy == "function", si = "devtools-plugin:setup", oi = "plugin:settings:set";
4656
4656
  let qe, Yn;
4657
- function oi() {
4657
+ function li() {
4658
4658
  var e;
4659
4659
  return qe !== void 0 || (typeof window < "u" && window.performance ? (qe = !0, Yn = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (qe = !0, Yn = globalThis.perf_hooks.performance) : qe = !1), qe;
4660
4660
  }
4661
- function li() {
4662
- return oi() ? Yn.now() : Date.now();
4661
+ function ii() {
4662
+ return li() ? Yn.now() : Date.now();
4663
4663
  }
4664
- class ii {
4664
+ class ci {
4665
4665
  constructor(t, n) {
4666
4666
  this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
4667
4667
  const a = {};
@@ -4689,9 +4689,9 @@ class ii {
4689
4689
  s = o;
4690
4690
  },
4691
4691
  now() {
4692
- return li();
4692
+ return ii();
4693
4693
  }
4694
- }, n && n.on(si, (o, l) => {
4694
+ }, n && n.on(oi, (o, l) => {
4695
4695
  o === this.plugin.id && this.fallbacks.setSettings(l);
4696
4696
  }), this.proxiedOn = new Proxy({}, {
4697
4697
  get: (o, l) => this.target ? this.target.on[l] : (...i) => {
@@ -4723,12 +4723,12 @@ class ii {
4723
4723
  n.resolve(await this.target[n.method](...n.args));
4724
4724
  }
4725
4725
  }
4726
- function ci(e, t) {
4727
- const n = e, a = Br(), r = ni(), s = ai && n.enableEarlyProxy;
4726
+ function ui(e, t) {
4727
+ const n = e, a = Qr(), r = ai(), s = ri && n.enableEarlyProxy;
4728
4728
  if (r && (a.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !s))
4729
- r.emit(ri, e, t);
4729
+ r.emit(si, e, t);
4730
4730
  else {
4731
- const o = s ? new ii(n, r) : null;
4731
+ const o = s ? new ci(n, r) : null;
4732
4732
  (a.__VUE_DEVTOOLS_PLUGINS__ = a.__VUE_DEVTOOLS_PLUGINS__ || []).push({
4733
4733
  pluginDescriptor: n,
4734
4734
  setupFn: t,
@@ -4741,13 +4741,13 @@ function ci(e, t) {
4741
4741
  * (c) 2025 kazuya kawaguchi
4742
4742
  * Released under the MIT License.
4743
4743
  */
4744
- const ui = "11.2.2";
4745
- function fi() {
4744
+ const fi = "11.2.2";
4745
+ function di() {
4746
4746
  typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (He().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (He().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (He().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (He().__INTLIFY_PROD_DEVTOOLS__ = !1);
4747
4747
  }
4748
4748
  const G = {
4749
4749
  // composer module errors
4750
- UNEXPECTED_RETURN_TYPE: El,
4750
+ UNEXPECTED_RETURN_TYPE: vl,
4751
4751
  // 24
4752
4752
  // legacy module errors
4753
4753
  INVALID_ARGUMENT: 25,
@@ -4768,9 +4768,9 @@ const G = {
4768
4768
  NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
4769
4769
  };
4770
4770
  function ce(e, ...t) {
4771
- return mt(e, null, process.env.NODE_ENV !== "production" ? { messages: di, args: t } : void 0);
4771
+ return mt(e, null, process.env.NODE_ENV !== "production" ? { messages: mi, args: t } : void 0);
4772
4772
  }
4773
- const di = {
4773
+ const mi = {
4774
4774
  [G.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
4775
4775
  [G.INVALID_ARGUMENT]: "Invalid argument",
4776
4776
  [G.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
@@ -4782,8 +4782,8 @@ const di = {
4782
4782
  [G.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
4783
4783
  [G.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
4784
4784
  [G.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
4785
- }, jn = /* @__PURE__ */ Oe("__translateVNode"), Bn = /* @__PURE__ */ Oe("__datetimeParts"), Qn = /* @__PURE__ */ Oe("__numberParts"), Be = /* @__PURE__ */ Oe("__enableEmitter"), St = /* @__PURE__ */ Oe("__disableEmitter"), Qr = Oe("__setPluralRules"), Jr = /* @__PURE__ */ Oe("__injectWithOption"), Jn = /* @__PURE__ */ Oe("__dispose"), me = {
4786
- FALLBACK_TO_ROOT: kl,
4785
+ }, jn = /* @__PURE__ */ Oe("__translateVNode"), Bn = /* @__PURE__ */ Oe("__datetimeParts"), Qn = /* @__PURE__ */ Oe("__numberParts"), Be = /* @__PURE__ */ Oe("__enableEmitter"), St = /* @__PURE__ */ Oe("__disableEmitter"), Jr = Oe("__setPluralRules"), Xr = /* @__PURE__ */ Oe("__injectWithOption"), Jn = /* @__PURE__ */ Oe("__dispose"), me = {
4786
+ FALLBACK_TO_ROOT: Dl,
4787
4787
  // 8
4788
4788
  NOT_FOUND_PARENT_SCOPE: 9,
4789
4789
  IGNORE_OBJ_FLATTEN: 10,
@@ -4797,7 +4797,7 @@ const di = {
4797
4797
  DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 12,
4798
4798
  // duplicate `useI18n` calling
4799
4799
  DUPLICATE_USE_I18N_CALLING: 13
4800
- }, mi = {
4800
+ }, pi = {
4801
4801
  [me.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
4802
4802
  [me.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
4803
4803
  [me.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
@@ -4813,7 +4813,7 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
4813
4813
  [me.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."
4814
4814
  };
4815
4815
  function ct(e, ...t) {
4816
- return un(mi[e], ...t);
4816
+ return un(pi[e], ...t);
4817
4817
  }
4818
4818
  function At(e) {
4819
4819
  if (!F(e) || _e(e))
@@ -4836,14 +4836,14 @@ function At(e) {
4836
4836
  }
4837
4837
  r = r[n[o]];
4838
4838
  }
4839
- if (s || (_e(r) ? Cr.includes(n[a]) || delete e[t] : (r[n[a]] = e[t], delete e[t])), !_e(r)) {
4839
+ if (s || (_e(r) ? wr.includes(n[a]) || delete e[t] : (r[n[a]] = e[t], delete e[t])), !_e(r)) {
4840
4840
  const o = r[n[a]];
4841
4841
  F(o) && At(o);
4842
4842
  }
4843
4843
  }
4844
4844
  return e;
4845
4845
  }
4846
- function pa(e, t) {
4846
+ function _a(e, t) {
4847
4847
  const { messages: n, __i18n: a, messageResolver: r, flatJson: s } = t, o = w(n) ? n : j(a) ? $() : { [e]: $() };
4848
4848
  if (j(a) && a.forEach((l) => {
4849
4849
  if ("locale" in l && "resource" in l) {
@@ -4856,12 +4856,12 @@ function pa(e, t) {
4856
4856
  Ee(o, l) && At(o[l]);
4857
4857
  return o;
4858
4858
  }
4859
- function Xr(e) {
4859
+ function qr(e) {
4860
4860
  return e.type;
4861
4861
  }
4862
- function qr(e, t, n) {
4862
+ function Zr(e, t, n) {
4863
4863
  let a = F(t.messages) ? t.messages : $();
4864
- "__i18nGlobal" in n && (a = pa(e.locale.value, {
4864
+ "__i18nGlobal" in n && (a = _a(e.locale.value, {
4865
4865
  messages: a,
4866
4866
  __i18n: n.__i18nGlobal
4867
4867
  }));
@@ -4884,23 +4884,23 @@ function qr(e, t, n) {
4884
4884
  }
4885
4885
  }
4886
4886
  }
4887
- function Xa(e) {
4888
- return Ge(ds, null, e, 0);
4887
+ function qa(e) {
4888
+ return Ge(ms, null, e, 0);
4889
4889
  }
4890
4890
  function nt() {
4891
4891
  return "currentInstance" in Pn ? Pn["currentInstance"] : Pn.getCurrentInstance();
4892
4892
  }
4893
- const qa = "__INTLIFY_META__", Za = () => [], pi = () => !1;
4894
- let za = 0;
4895
- function er(e) {
4893
+ const Za = "__INTLIFY_META__", za = () => [], _i = () => !1;
4894
+ let er = 0;
4895
+ function tr(e) {
4896
4896
  return (t, n, a, r) => e(n, a, nt() || void 0, r);
4897
4897
  }
4898
- const _i = /* @__NO_SIDE_EFFECTS__ */ () => {
4898
+ const gi = /* @__NO_SIDE_EFFECTS__ */ () => {
4899
4899
  const e = nt();
4900
4900
  let t = null;
4901
- return e && (t = Xr(e)[qa]) ? { [qa]: t } : null;
4901
+ return e && (t = qr(e)[Za]) ? { [Za]: t } : null;
4902
4902
  };
4903
- function _a(e = {}) {
4903
+ function ga(e = {}) {
4904
4904
  const { __root: t, __injectWithOption: n } = e, a = t === void 0, r = e.flatJson, s = ye ? R : ke;
4905
4905
  let o = U(e.inheritLocale) ? e.inheritLocale : !0;
4906
4906
  const l = s(
@@ -4909,14 +4909,14 @@ function _a(e = {}) {
4909
4909
  ), i = s(
4910
4910
  // prettier-ignore
4911
4911
  t && o ? t.fallbackLocale.value : A(e.fallbackLocale) || j(e.fallbackLocale) || w(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l.value
4912
- ), c = s(pa(l.value, e)), m = s(w(e.datetimeFormats) ? e.datetimeFormats : { [l.value]: {} }), g = s(w(e.numberFormats) ? e.numberFormats : { [l.value]: {} });
4913
- let p = t ? t.missingWarn : U(e.missingWarn) || lt(e.missingWarn) ? e.missingWarn : !0, N = t ? t.fallbackWarn : U(e.fallbackWarn) || lt(e.fallbackWarn) ? e.fallbackWarn : !0, P = t ? t.fallbackRoot : U(e.fallbackRoot) ? e.fallbackRoot : !0, T = !!e.fallbackFormat, S = H(e.missing) ? e.missing : null, d = H(e.missing) ? er(e.missing) : null, _ = H(e.postTranslation) ? e.postTranslation : null, I = t ? t.warnHtmlMessage : U(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, E = !!e.escapeParameter;
4912
+ ), c = s(_a(l.value, e)), m = s(w(e.datetimeFormats) ? e.datetimeFormats : { [l.value]: {} }), g = s(w(e.numberFormats) ? e.numberFormats : { [l.value]: {} });
4913
+ let p = t ? t.missingWarn : U(e.missingWarn) || lt(e.missingWarn) ? e.missingWarn : !0, N = t ? t.fallbackWarn : U(e.fallbackWarn) || lt(e.fallbackWarn) ? e.fallbackWarn : !0, P = t ? t.fallbackRoot : U(e.fallbackRoot) ? e.fallbackRoot : !0, T = !!e.fallbackFormat, S = H(e.missing) ? e.missing : null, d = H(e.missing) ? tr(e.missing) : null, _ = H(e.postTranslation) ? e.postTranslation : null, I = t ? t.warnHtmlMessage : U(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, E = !!e.escapeParameter;
4914
4914
  const b = t ? t.modifiers : w(e.modifiers) ? e.modifiers : {};
4915
4915
  let O = e.pluralRules || t && t.pluralRules, v;
4916
4916
  v = (() => {
4917
- a && $a(null);
4917
+ a && Ha(null);
4918
4918
  const h = {
4919
- version: ui,
4919
+ version: fi,
4920
4920
  locale: l.value,
4921
4921
  fallbackLocale: i.value,
4922
4922
  messages: c.value,
@@ -4935,8 +4935,8 @@ function _a(e = {}) {
4935
4935
  __meta: { framework: "vue" }
4936
4936
  };
4937
4937
  h.datetimeFormats = m.value, h.numberFormats = g.value, h.__datetimeFormatters = w(v) ? v.__datetimeFormatters : void 0, h.__numberFormatters = w(v) ? v.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (h.__v_emitter = w(v) ? v.__v_emitter : void 0);
4938
- const L = Hl(h);
4939
- return a && $a(L), L;
4938
+ const L = Wl(h);
4939
+ return a && Ha(L), L;
4940
4940
  })(), bt(v, l.value, i.value);
4941
4941
  function M() {
4942
4942
  return [
@@ -4968,7 +4968,7 @@ function _a(e = {}) {
4968
4968
  return S;
4969
4969
  }
4970
4970
  function En(h) {
4971
- h !== null && (d = er(h)), S = h, v.missing = d;
4971
+ h !== null && (d = tr(h)), S = h, v.missing = d;
4972
4972
  }
4973
4973
  function vn(h, L) {
4974
4974
  return h !== "translate" || !L.resolvedMessage;
@@ -4977,19 +4977,19 @@ function _a(e = {}) {
4977
4977
  M();
4978
4978
  let Xe;
4979
4979
  try {
4980
- process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, a || (v.fallbackContext = t ? $l() : void 0), Xe = h(v);
4980
+ process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, a || (v.fallbackContext = t ? Hl() : void 0), Xe = h(v);
4981
4981
  } finally {
4982
4982
  process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, a || (v.fallbackContext = void 0);
4983
4983
  }
4984
4984
  if (V !== "translate exists" && // for not `te` (e.g `t`)
4985
4985
  Z(Xe) && Xe === dn || V === "translate exists" && !Xe) {
4986
- const [$e, rs] = L();
4987
- if (process.env.NODE_ENV !== "production" && t && A($e) && vn(V, rs) && (P && (mn(N, $e) || $r(p, $e)) && Le(ct(me.FALLBACK_TO_ROOT, {
4986
+ const [$e, ss] = L();
4987
+ if (process.env.NODE_ENV !== "production" && t && A($e) && vn(V, ss) && (P && (mn(N, $e) || Hr(p, $e)) && Le(ct(me.FALLBACK_TO_ROOT, {
4988
4988
  key: $e,
4989
4989
  type: V
4990
4990
  })), process.env.NODE_ENV !== "production")) {
4991
- const { __v_emitter: Ia } = v;
4992
- Ia && P && Ia.emit("fallback", {
4991
+ const { __v_emitter: ya } = v;
4992
+ ya && P && ya.emit("fallback", {
4993
4993
  type: V,
4994
4994
  key: $e,
4995
4995
  to: "global",
@@ -5004,7 +5004,7 @@ function _a(e = {}) {
5004
5004
  }
5005
5005
  };
5006
5006
  function pt(...h) {
5007
- return Se((L) => Reflect.apply(Ja, null, [L, ...h]), () => Kn(...h), "translate", (L) => Reflect.apply(L.t, L, [...h]), (L) => L, (L) => A(L));
5007
+ return Se((L) => Reflect.apply(Xa, null, [L, ...h]), () => Kn(...h), "translate", (L) => Reflect.apply(L.t, L, [...h]), (L) => L, (L) => A(L));
5008
5008
  }
5009
5009
  function bn(...h) {
5010
5010
  const [L, V, J] = h;
@@ -5013,13 +5013,13 @@ function _a(e = {}) {
5013
5013
  return pt(L, V, z({ resolvedMessage: !0 }, J || {}));
5014
5014
  }
5015
5015
  function In(...h) {
5016
- return Se((L) => Reflect.apply(Ga, null, [L, ...h]), () => Wn(...h), "datetime format", (L) => Reflect.apply(L.d, L, [...h]), () => Xt, (L) => A(L) || j(L));
5016
+ return Se((L) => Reflect.apply(Ka, null, [L, ...h]), () => Wn(...h), "datetime format", (L) => Reflect.apply(L.d, L, [...h]), () => Xt, (L) => A(L) || j(L));
5017
5017
  }
5018
5018
  function yn(...h) {
5019
- return Se((L) => Reflect.apply(Ya, null, [L, ...h]), () => Gn(...h), "number format", (L) => Reflect.apply(L.n, L, [...h]), () => Xt, (L) => A(L) || j(L));
5019
+ return Se((L) => Reflect.apply(ja, null, [L, ...h]), () => Gn(...h), "number format", (L) => Reflect.apply(L.n, L, [...h]), () => Xt, (L) => A(L) || j(L));
5020
5020
  }
5021
5021
  function Nn(h) {
5022
- return h.map((L) => A(L) || Z(L) || U(L) ? Xa(String(L)) : L);
5022
+ return h.map((L) => A(L) || Z(L) || U(L) ? qa(String(L)) : L);
5023
5023
  }
5024
5024
  const Tn = {
5025
5025
  normalize: Nn,
@@ -5031,18 +5031,18 @@ function _a(e = {}) {
5031
5031
  let V;
5032
5032
  const J = L;
5033
5033
  try {
5034
- J.processor = Tn, V = Reflect.apply(Ja, null, [J, ...h]);
5034
+ J.processor = Tn, V = Reflect.apply(Xa, null, [J, ...h]);
5035
5035
  } finally {
5036
5036
  J.processor = null;
5037
5037
  }
5038
5038
  return V;
5039
- }, () => Kn(...h), "translate", (L) => L[jn](...h), (L) => [Xa(L)], (L) => j(L));
5039
+ }, () => Kn(...h), "translate", (L) => L[jn](...h), (L) => [qa(L)], (L) => j(L));
5040
5040
  }
5041
5041
  function Ln(...h) {
5042
- return Se((L) => Reflect.apply(Ya, null, [L, ...h]), () => Gn(...h), "number format", (L) => L[Qn](...h), Za, (L) => A(L) || j(L));
5042
+ return Se((L) => Reflect.apply(ja, null, [L, ...h]), () => Gn(...h), "number format", (L) => L[Qn](...h), za, (L) => A(L) || j(L));
5043
5043
  }
5044
5044
  function Vt(...h) {
5045
- return Se((L) => Reflect.apply(Ga, null, [L, ...h]), () => Wn(...h), "datetime format", (L) => L[Bn](...h), Za, (L) => A(L) || j(L));
5045
+ return Se((L) => Reflect.apply(Ka, null, [L, ...h]), () => Wn(...h), "datetime format", (L) => L[Bn](...h), za, (L) => A(L) || j(L));
5046
5046
  }
5047
5047
  function On(h) {
5048
5048
  O = h, v.pluralRules = O;
@@ -5053,11 +5053,11 @@ function _a(e = {}) {
5053
5053
  return !1;
5054
5054
  const V = A(L) ? L : l.value, J = xe(V), Ve = v.messageResolver(J, h);
5055
5055
  return _e(Ve) || de(Ve) || A(Ve);
5056
- }, () => [h], "translate exists", (V) => Reflect.apply(V.te, V, [h, L]), pi, (V) => U(V));
5056
+ }, () => [h], "translate exists", (V) => Reflect.apply(V.te, V, [h, L]), _i, (V) => U(V));
5057
5057
  }
5058
5058
  function _t(h) {
5059
5059
  let L = null;
5060
- const V = wr(v, i.value, l.value);
5060
+ const V = Mr(v, i.value, l.value);
5061
5061
  for (let J = 0; J < V.length; J++) {
5062
5062
  const Ve = c.value[V[J]] || {}, $t = v.messageResolver(Ve, h);
5063
5063
  if ($t != null) {
@@ -5095,27 +5095,27 @@ function _a(e = {}) {
5095
5095
  return m.value[h] || {};
5096
5096
  }
5097
5097
  function f(h, L) {
5098
- m.value[h] = L, v.datetimeFormats = m.value, Ka(v, h, L);
5098
+ m.value[h] = L, v.datetimeFormats = m.value, Ya(v, h, L);
5099
5099
  }
5100
5100
  function y(h, L) {
5101
- m.value[h] = z(m.value[h] || {}, L), v.datetimeFormats = m.value, Ka(v, h, L);
5101
+ m.value[h] = z(m.value[h] || {}, L), v.datetimeFormats = m.value, Ya(v, h, L);
5102
5102
  }
5103
5103
  function k(h) {
5104
5104
  return g.value[h] || {};
5105
5105
  }
5106
5106
  function Y(h, L) {
5107
- g.value[h] = L, v.numberFormats = g.value, ja(v, h, L);
5107
+ g.value[h] = L, v.numberFormats = g.value, Ba(v, h, L);
5108
5108
  }
5109
5109
  function Q(h, L) {
5110
- g.value[h] = z(g.value[h] || {}, L), v.numberFormats = g.value, ja(v, h, L);
5110
+ g.value[h] = z(g.value[h] || {}, L), v.numberFormats = g.value, Ba(v, h, L);
5111
5111
  }
5112
- za++, t && ye && (K(t.locale, (h) => {
5112
+ er++, t && ye && (K(t.locale, (h) => {
5113
5113
  o && (l.value = h, v.locale = h, bt(v, l.value, i.value));
5114
5114
  }), K(t.fallbackLocale, (h) => {
5115
5115
  o && (i.value = h, v.fallbackLocale = h, bt(v, l.value, i.value));
5116
5116
  }));
5117
5117
  const x = {
5118
- id: za,
5118
+ id: er,
5119
5119
  locale: W,
5120
5120
  fallbackLocale: ge,
5121
5121
  get inheritLocale() {
@@ -5181,68 +5181,68 @@ function _a(e = {}) {
5181
5181
  setPostTranslationHandler: gn,
5182
5182
  getMissingHandler: hn,
5183
5183
  setMissingHandler: En,
5184
- [Qr]: On
5184
+ [Jr]: On
5185
5185
  };
5186
- return x.datetimeFormats = Je, x.numberFormats = pn, x.rt = bn, x.te = Sn, x.tm = gt, x.d = In, x.n = yn, x.getDateTimeFormat = u, x.setDateTimeFormat = f, x.mergeDateTimeFormat = y, x.getNumberFormat = k, x.setNumberFormat = Y, x.mergeNumberFormat = Q, x[Jr] = n, x[jn] = xt, x[Bn] = Vt, x[Qn] = Ln, process.env.NODE_ENV !== "production" && (x[Be] = (h) => {
5186
+ return x.datetimeFormats = Je, x.numberFormats = pn, x.rt = bn, x.te = Sn, x.tm = gt, x.d = In, x.n = yn, x.getDateTimeFormat = u, x.setDateTimeFormat = f, x.mergeDateTimeFormat = y, x.getNumberFormat = k, x.setNumberFormat = Y, x.mergeNumberFormat = Q, x[Xr] = n, x[jn] = xt, x[Bn] = Vt, x[Qn] = Ln, process.env.NODE_ENV !== "production" && (x[Be] = (h) => {
5187
5187
  v.__v_emitter = h;
5188
5188
  }, x[St] = () => {
5189
5189
  v.__v_emitter = void 0;
5190
5190
  }), x;
5191
5191
  }
5192
- const Zr = "vue-i18n: composer properties", Un = {
5192
+ const zr = "vue-i18n: composer properties", Un = {
5193
5193
  "vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
5194
5194
  "vue-i18n-resource-inspector": "Vue I18n DevTools",
5195
5195
  "vue-i18n-timeline": "Vue I18n"
5196
- }, gi = {
5197
- "vue-i18n-resource-inspector": "Search for scopes ..."
5198
5196
  }, hi = {
5197
+ "vue-i18n-resource-inspector": "Search for scopes ..."
5198
+ }, Ei = {
5199
5199
  "vue-i18n-timeline": 16764185
5200
5200
  };
5201
5201
  let Xn;
5202
- async function Ei(e, t) {
5202
+ async function vi(e, t) {
5203
5203
  return new Promise((n, a) => {
5204
5204
  try {
5205
- ci({
5205
+ ui({
5206
5206
  id: "vue-devtools-plugin-vue-i18n",
5207
5207
  label: Un["vue-devtools-plugin-vue-i18n"],
5208
5208
  packageName: "vue-i18n",
5209
5209
  homepage: "https://vue-i18n.intlify.dev",
5210
5210
  logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
5211
- componentStateTypes: [Zr],
5211
+ componentStateTypes: [zr],
5212
5212
  app: e
5213
5213
  // eslint-disable-line @typescript-eslint/no-explicit-any
5214
5214
  }, (r) => {
5215
5215
  Xn = r, r.on.visitComponentTree(({ componentInstance: o, treeNode: l }) => {
5216
- vi(o, l, t);
5216
+ bi(o, l, t);
5217
5217
  }), r.on.inspectComponent(({ componentInstance: o, instanceData: l }) => {
5218
- o.__VUE_I18N__ && l && (t.mode === "legacy" ? o.__VUE_I18N__ !== t.global.__composer && tr(l, o.__VUE_I18N__) : tr(l, o.__VUE_I18N__));
5218
+ o.__VUE_I18N__ && l && (t.mode === "legacy" ? o.__VUE_I18N__ !== t.global.__composer && nr(l, o.__VUE_I18N__) : nr(l, o.__VUE_I18N__));
5219
5219
  }), r.addInspector({
5220
5220
  id: "vue-i18n-resource-inspector",
5221
5221
  label: Un["vue-i18n-resource-inspector"],
5222
5222
  icon: "language",
5223
- treeFilterPlaceholder: gi["vue-i18n-resource-inspector"]
5223
+ treeFilterPlaceholder: hi["vue-i18n-resource-inspector"]
5224
5224
  }), r.on.getInspectorTree((o) => {
5225
- o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && Ti(o, t);
5225
+ o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && Li(o, t);
5226
5226
  });
5227
5227
  const s = /* @__PURE__ */ new Map();
5228
5228
  r.on.getInspectorState(async (o) => {
5229
5229
  if (o.app === e && o.inspectorId === "vue-i18n-resource-inspector")
5230
- if (r.unhighlightElement(), Oi(o, t), o.nodeId === "global") {
5230
+ if (r.unhighlightElement(), Si(o, t), o.nodeId === "global") {
5231
5231
  if (!s.has(o.app)) {
5232
5232
  const [l] = await r.getComponentInstances(o.app);
5233
5233
  s.set(o.app, l);
5234
5234
  }
5235
5235
  r.highlightElement(s.get(o.app));
5236
5236
  } else {
5237
- const l = Li(o.nodeId, t);
5237
+ const l = Oi(o.nodeId, t);
5238
5238
  l && r.highlightElement(l);
5239
5239
  }
5240
5240
  }), r.on.editInspectorState((o) => {
5241
- o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && Ai(o, t);
5241
+ o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && Pi(o, t);
5242
5242
  }), r.addTimelineLayer({
5243
5243
  id: "vue-i18n-timeline",
5244
5244
  label: Un["vue-i18n-timeline"],
5245
- color: hi["vue-i18n-timeline"]
5245
+ color: Ei["vue-i18n-timeline"]
5246
5246
  }), n(!0);
5247
5247
  });
5248
5248
  } catch (r) {
@@ -5250,22 +5250,22 @@ async function Ei(e, t) {
5250
5250
  }
5251
5251
  });
5252
5252
  }
5253
- function zr(e) {
5253
+ function es(e) {
5254
5254
  return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
5255
5255
  }
5256
- function vi(e, t, n) {
5256
+ function bi(e, t, n) {
5257
5257
  const a = n.mode === "composition" ? n.global : n.global.__composer;
5258
5258
  if (e && e.__VUE_I18N__ && e.__VUE_I18N__ !== a) {
5259
5259
  const r = {
5260
- label: `i18n (${zr(e)} Scope)`,
5260
+ label: `i18n (${es(e)} Scope)`,
5261
5261
  textColor: 0,
5262
5262
  backgroundColor: 16764185
5263
5263
  };
5264
5264
  t.tags.push(r);
5265
5265
  }
5266
5266
  }
5267
- function tr(e, t) {
5268
- const n = Zr;
5267
+ function nr(e, t) {
5268
+ const n = zr;
5269
5269
  e.state.push({
5270
5270
  type: n,
5271
5271
  key: "locale",
@@ -5290,7 +5290,7 @@ function tr(e, t) {
5290
5290
  type: n,
5291
5291
  key: "messages",
5292
5292
  editable: !1,
5293
- value: ga(t.messages.value)
5293
+ value: ha(t.messages.value)
5294
5294
  }), e.state.push({
5295
5295
  type: n,
5296
5296
  key: "datetimeFormats",
@@ -5303,34 +5303,34 @@ function tr(e, t) {
5303
5303
  value: t.numberFormats.value
5304
5304
  });
5305
5305
  }
5306
- function ga(e) {
5306
+ function ha(e) {
5307
5307
  const t = {};
5308
5308
  return Object.keys(e).forEach((n) => {
5309
5309
  const a = e[n];
5310
- H(a) && "source" in a ? t[n] = Ni(a) : _e(a) && a.loc && a.loc.source ? t[n] = a.loc.source : F(a) ? t[n] = ga(a) : t[n] = a;
5310
+ H(a) && "source" in a ? t[n] = Ti(a) : _e(a) && a.loc && a.loc.source ? t[n] = a.loc.source : F(a) ? t[n] = ha(a) : t[n] = a;
5311
5311
  }), t;
5312
5312
  }
5313
- const bi = {
5313
+ const Ii = {
5314
5314
  "<": "&lt;",
5315
5315
  ">": "&gt;",
5316
5316
  '"': "&quot;",
5317
5317
  "&": "&amp;"
5318
5318
  };
5319
- function Ii(e) {
5320
- return e.replace(/[<>"&]/g, yi);
5321
- }
5322
5319
  function yi(e) {
5323
- return bi[e] || e;
5320
+ return e.replace(/[<>"&]/g, Ni);
5324
5321
  }
5325
5322
  function Ni(e) {
5323
+ return Ii[e] || e;
5324
+ }
5325
+ function Ti(e) {
5326
5326
  return {
5327
5327
  _custom: {
5328
5328
  type: "function",
5329
- display: `<span>ƒ</span> ${e.source ? `("${Ii(e.source)}")` : "(?)"}`
5329
+ display: `<span>ƒ</span> ${e.source ? `("${yi(e.source)}")` : "(?)"}`
5330
5330
  }
5331
5331
  };
5332
5332
  }
5333
- function Ti(e, t) {
5333
+ function Li(e, t) {
5334
5334
  e.rootNodes.push({
5335
5335
  id: "global",
5336
5336
  label: "Global Scope"
@@ -5340,11 +5340,11 @@ function Ti(e, t) {
5340
5340
  const s = t.mode === "composition" ? r : r.__composer;
5341
5341
  n !== s && e.rootNodes.push({
5342
5342
  id: s.id.toString(),
5343
- label: `${zr(a)} Scope`
5343
+ label: `${es(a)} Scope`
5344
5344
  });
5345
5345
  }
5346
5346
  }
5347
- function Li(e, t) {
5347
+ function Oi(e, t) {
5348
5348
  let n = null;
5349
5349
  if (e !== "global") {
5350
5350
  for (const [a, r] of t.__instances.entries())
@@ -5355,7 +5355,7 @@ function Li(e, t) {
5355
5355
  }
5356
5356
  return n;
5357
5357
  }
5358
- function es(e, t) {
5358
+ function ts(e, t) {
5359
5359
  if (e === "global")
5360
5360
  return t.mode === "composition" ? t.global : t.global.__composer;
5361
5361
  {
@@ -5363,11 +5363,11 @@ function es(e, t) {
5363
5363
  return n ? t.mode === "composition" ? n : n.__composer : null;
5364
5364
  }
5365
5365
  }
5366
- function Oi(e, t) {
5367
- const n = es(e.nodeId, t);
5368
- return n && (e.state = Si(n)), null;
5366
+ function Si(e, t) {
5367
+ const n = ts(e.nodeId, t);
5368
+ return n && (e.state = Ai(n)), null;
5369
5369
  }
5370
- function Si(e) {
5370
+ function Ai(e) {
5371
5371
  const t = {}, n = "Locale related info", a = [
5372
5372
  {
5373
5373
  type: n,
@@ -5400,7 +5400,7 @@ function Si(e) {
5400
5400
  type: r,
5401
5401
  key: "messages",
5402
5402
  editable: !1,
5403
- value: ga(e.messages.value)
5403
+ value: ha(e.messages.value)
5404
5404
  }
5405
5405
  ];
5406
5406
  t[r] = s;
@@ -5442,14 +5442,14 @@ function Pt(e, t) {
5442
5442
  });
5443
5443
  }
5444
5444
  }
5445
- function Ai(e, t) {
5446
- const n = es(e.nodeId, t);
5445
+ function Pi(e, t) {
5446
+ const n = ts(e.nodeId, t);
5447
5447
  if (n) {
5448
5448
  const [a] = e.path;
5449
5449
  a === "locale" && A(e.state.value) ? n.locale.value = e.state.value : a === "fallbackLocale" && (A(e.state.value) || j(e.state.value) || F(e.state.value)) ? n.fallbackLocale.value = e.state.value : a === "inheritLocale" && U(e.state.value) && (n.inheritLocale = e.state.value);
5450
5450
  }
5451
5451
  }
5452
- function Pi(e) {
5452
+ function Ri(e) {
5453
5453
  const t = A(e.locale) ? e.locale : Ot, n = A(e.fallbackLocale) || j(e.fallbackLocale) || w(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, a = H(e.missing) ? e.missing : void 0, r = U(e.silentTranslationWarn) || lt(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, s = U(e.silentFallbackWarn) || lt(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = U(e.fallbackRoot) ? e.fallbackRoot : !0, l = !!e.formatFallbackMessages, i = w(e.modifiers) ? e.modifiers : {}, c = e.pluralizationRules, m = H(e.postTranslation) ? e.postTranslation : void 0, g = A(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, p = !!e.escapeParameterHtml, N = U(e.sync) ? e.sync : !0;
5454
5454
  let P = e.messages;
5455
5455
  if (w(e.sharedMessages)) {
@@ -5485,7 +5485,7 @@ function Pi(e) {
5485
5485
  };
5486
5486
  }
5487
5487
  function qn(e = {}) {
5488
- const t = _a(Pi(e)), { __extender: n } = e, a = {
5488
+ const t = ga(Ri(e)), { __extender: n } = e, a = {
5489
5489
  // id
5490
5490
  id: t.id,
5491
5491
  // locale
@@ -5653,7 +5653,7 @@ function qn(e = {}) {
5653
5653
  r[St] && r[St]();
5654
5654
  }), a;
5655
5655
  }
5656
- function Ri(e, t, n) {
5656
+ function ki(e, t, n) {
5657
5657
  return {
5658
5658
  beforeCreate() {
5659
5659
  const a = nt();
@@ -5663,7 +5663,7 @@ function Ri(e, t, n) {
5663
5663
  if (r.i18n) {
5664
5664
  const s = r.i18n;
5665
5665
  if (r.__i18n && (s.__i18n = r.__i18n), s.__root = t, this === this.$root)
5666
- this.$i18n = nr(e, s);
5666
+ this.$i18n = ar(e, s);
5667
5667
  else {
5668
5668
  s.__injectWithOption = !0, s.__extender = n.__vueI18nExtend, this.$i18n = qn(s);
5669
5669
  const o = this.$i18n;
@@ -5671,7 +5671,7 @@ function Ri(e, t, n) {
5671
5671
  }
5672
5672
  } else if (r.__i18n)
5673
5673
  if (this === this.$root)
5674
- this.$i18n = nr(e, r);
5674
+ this.$i18n = ar(e, r);
5675
5675
  else {
5676
5676
  this.$i18n = qn({
5677
5677
  __i18n: r.__i18n,
@@ -5684,7 +5684,7 @@ function Ri(e, t, n) {
5684
5684
  }
5685
5685
  else
5686
5686
  this.$i18n = e;
5687
- r.__i18nGlobal && qr(t, r, r), this.$t = (...s) => this.$i18n.t(...s), this.$rt = (...s) => this.$i18n.rt(...s), this.$te = (s, o) => this.$i18n.te(s, o), this.$d = (...s) => this.$i18n.d(...s), this.$n = (...s) => this.$i18n.n(...s), this.$tm = (s) => this.$i18n.tm(s), n.__setInstance(a, this.$i18n);
5687
+ r.__i18nGlobal && Zr(t, r, r), this.$t = (...s) => this.$i18n.t(...s), this.$rt = (...s) => this.$i18n.rt(...s), this.$te = (s, o) => this.$i18n.te(s, o), this.$d = (...s) => this.$i18n.d(...s), this.$n = (...s) => this.$i18n.n(...s), this.$tm = (s) => this.$i18n.tm(s), n.__setInstance(a, this.$i18n);
5688
5688
  },
5689
5689
  mounted() {
5690
5690
  if (process.env.NODE_ENV !== "production" && this.$i18n) {
@@ -5693,7 +5693,7 @@ function Ri(e, t, n) {
5693
5693
  return;
5694
5694
  const r = this.$i18n;
5695
5695
  a.__VUE_I18N__ = r.__composer;
5696
- const s = this.__v_emitter = ca();
5696
+ const s = this.__v_emitter = ua();
5697
5697
  r.__enableEmitter && r.__enableEmitter(s), s.on("*", Pt);
5698
5698
  }
5699
5699
  },
@@ -5706,15 +5706,15 @@ function Ri(e, t, n) {
5706
5706
  }
5707
5707
  };
5708
5708
  }
5709
- function nr(e, t) {
5710
- 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[Qr](t.pluralizationRules || e.pluralizationRules);
5711
- const n = pa(e.locale, {
5709
+ function ar(e, t) {
5710
+ 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[Jr](t.pluralizationRules || e.pluralizationRules);
5711
+ const n = _a(e.locale, {
5712
5712
  messages: t.messages,
5713
5713
  __i18n: t.__i18n
5714
5714
  });
5715
5715
  return Object.keys(n).forEach((a) => e.mergeLocaleMessage(a, n[a])), t.datetimeFormats && Object.keys(t.datetimeFormats).forEach((a) => e.mergeDateTimeFormat(a, t.datetimeFormats[a])), t.numberFormats && Object.keys(t.numberFormats).forEach((a) => e.mergeNumberFormat(a, t.numberFormats[a])), e;
5716
5716
  }
5717
- const ha = {
5717
+ const Ea = {
5718
5718
  tag: {
5719
5719
  type: [String, Object]
5720
5720
  },
@@ -5732,7 +5732,7 @@ const ha = {
5732
5732
  type: Object
5733
5733
  }
5734
5734
  };
5735
- function ki({ slots: e }, t) {
5735
+ function Di({ slots: e }, t) {
5736
5736
  return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((a, r) => [
5737
5737
  ...a,
5738
5738
  // prettier-ignore
@@ -5742,10 +5742,10 @@ function ki({ slots: e }, t) {
5742
5742
  return r && (n[a] = r()), n;
5743
5743
  }, $());
5744
5744
  }
5745
- function ts() {
5745
+ function ns() {
5746
5746
  return Ke;
5747
5747
  }
5748
- const Di = /* @__PURE__ */ De({
5748
+ const Ci = /* @__PURE__ */ De({
5749
5749
  /* eslint-disable */
5750
5750
  name: "i18n-t",
5751
5751
  props: z({
@@ -5757,26 +5757,26 @@ const Di = /* @__PURE__ */ De({
5757
5757
  type: [Number, String],
5758
5758
  validator: (e) => Z(e) || !isNaN(e)
5759
5759
  }
5760
- }, ha),
5760
+ }, Ea),
5761
5761
  /* eslint-enable */
5762
5762
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
5763
5763
  setup(e, t) {
5764
- const { slots: n, attrs: a } = t, r = e.i18n || Ea({
5764
+ const { slots: n, attrs: a } = t, r = e.i18n || va({
5765
5765
  useScope: e.scope,
5766
5766
  __useComponent: !0
5767
5767
  });
5768
5768
  return () => {
5769
5769
  const s = Object.keys(n).filter((g) => g[0] !== "_"), o = $();
5770
5770
  e.locale && (o.locale = e.locale), e.plural !== void 0 && (o.plural = A(e.plural) ? +e.plural : e.plural);
5771
- const l = ki(t, s), i = r[jn](e.keypath, l, o), c = z($(), a), m = A(e.tag) || F(e.tag) ? e.tag : ts();
5771
+ const l = Di(t, s), i = r[jn](e.keypath, l, o), c = z($(), a), m = A(e.tag) || F(e.tag) ? e.tag : ns();
5772
5772
  return ve(m, c, i);
5773
5773
  };
5774
5774
  }
5775
- }), ar = Di;
5776
- function Ci(e) {
5775
+ }), rr = Ci;
5776
+ function wi(e) {
5777
5777
  return j(e) && !A(e[0]);
5778
5778
  }
5779
- function ns(e, t, n, a) {
5779
+ function as(e, t, n, a) {
5780
5780
  const { slots: r, attrs: s } = t;
5781
5781
  return () => {
5782
5782
  const o = { part: !0 };
@@ -5786,13 +5786,13 @@ function ns(e, t, n, a) {
5786
5786
  let c = [o.key];
5787
5787
  j(i) ? c = i.map((p, N) => {
5788
5788
  const P = r[p.type], T = P ? P({ [p.type]: p.value, index: N, parts: i }) : [p.value];
5789
- return Ci(T) && (T[0].key = `${p.type}-${N}`), T;
5789
+ return wi(T) && (T[0].key = `${p.type}-${N}`), T;
5790
5790
  }) : A(i) && (c = [i]);
5791
- const m = z($(), s), g = A(e.tag) || F(e.tag) ? e.tag : ts();
5791
+ const m = z($(), s), g = A(e.tag) || F(e.tag) ? e.tag : ns();
5792
5792
  return ve(g, m, c);
5793
5793
  };
5794
5794
  }
5795
- const wi = /* @__PURE__ */ De({
5795
+ const Mi = /* @__PURE__ */ De({
5796
5796
  /* eslint-disable */
5797
5797
  name: "i18n-n",
5798
5798
  props: z({
@@ -5803,21 +5803,21 @@ const wi = /* @__PURE__ */ De({
5803
5803
  format: {
5804
5804
  type: [String, Object]
5805
5805
  }
5806
- }, ha),
5806
+ }, Ea),
5807
5807
  /* eslint-enable */
5808
5808
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
5809
5809
  setup(e, t) {
5810
- const n = e.i18n || Ea({
5810
+ const n = e.i18n || va({
5811
5811
  useScope: e.scope,
5812
5812
  __useComponent: !0
5813
5813
  });
5814
- return ns(e, t, Kr, (...a) => (
5814
+ return as(e, t, Yr, (...a) => (
5815
5815
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
5816
5816
  n[Qn](...a)
5817
5817
  ));
5818
5818
  }
5819
- }), rr = wi;
5820
- function Mi(e, t) {
5819
+ }), sr = Mi;
5820
+ function Fi(e, t) {
5821
5821
  const n = e;
5822
5822
  if (e.mode === "composition")
5823
5823
  return n.__getInstance(t) || e.global;
@@ -5826,15 +5826,15 @@ function Mi(e, t) {
5826
5826
  return a != null ? a.__composer : e.global.__composer;
5827
5827
  }
5828
5828
  }
5829
- function Fi(e) {
5829
+ function Ui(e) {
5830
5830
  const t = (o) => {
5831
- process.env.NODE_ENV !== "production" && oa(ct(me.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
5831
+ process.env.NODE_ENV !== "production" && la(ct(me.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
5832
5832
  const { instance: l, value: i } = o;
5833
5833
  if (!l || !l.$)
5834
5834
  throw ce(G.UNEXPECTED_ERROR);
5835
- const c = Mi(e, l.$), m = sr(i);
5835
+ const c = Fi(e, l.$), m = or(i);
5836
5836
  return [
5837
- Reflect.apply(c.t, c, [...or(m)]),
5837
+ Reflect.apply(c.t, c, [...lr(m)]),
5838
5838
  c
5839
5839
  ];
5840
5840
  };
@@ -5850,9 +5850,9 @@ function Fi(e) {
5850
5850
  },
5851
5851
  beforeUpdate: (o, { value: l }) => {
5852
5852
  if (o.__composer) {
5853
- const i = o.__composer, c = sr(l);
5853
+ const i = o.__composer, c = or(l);
5854
5854
  o.textContent = Reflect.apply(i.t, i, [
5855
- ...or(c)
5855
+ ...lr(c)
5856
5856
  ]);
5857
5857
  }
5858
5858
  },
@@ -5862,7 +5862,7 @@ function Fi(e) {
5862
5862
  }
5863
5863
  };
5864
5864
  }
5865
- function sr(e) {
5865
+ function or(e) {
5866
5866
  if (A(e))
5867
5867
  return { path: e };
5868
5868
  if (w(e)) {
@@ -5872,19 +5872,19 @@ function sr(e) {
5872
5872
  } else
5873
5873
  throw ce(G.INVALID_VALUE);
5874
5874
  }
5875
- function or(e) {
5875
+ function lr(e) {
5876
5876
  const { path: t, locale: n, args: a, choice: r, plural: s } = e, o = {}, l = a || {};
5877
5877
  return A(n) && (o.locale = n), Z(r) && (o.plural = r), Z(s) && (o.plural = s), [t, l, o];
5878
5878
  }
5879
- function Ui(e, t, ...n) {
5879
+ function xi(e, t, ...n) {
5880
5880
  const a = w(n[0]) ? n[0] : {};
5881
- (U(a.globalInstall) ? a.globalInstall : !0) && ([ar.name, "I18nT"].forEach((s) => e.component(s, ar)), [rr.name, "I18nN"].forEach((s) => e.component(s, rr)), [ir.name, "I18nD"].forEach((s) => e.component(s, ir))), e.directive("t", Fi(t));
5881
+ (U(a.globalInstall) ? a.globalInstall : !0) && ([rr.name, "I18nT"].forEach((s) => e.component(s, rr)), [sr.name, "I18nN"].forEach((s) => e.component(s, sr)), [cr.name, "I18nD"].forEach((s) => e.component(s, cr))), e.directive("t", Ui(t));
5882
5882
  }
5883
- const xi = /* @__PURE__ */ Oe("global-vue-i18n");
5884
- function Vi(e = {}) {
5883
+ const Vi = /* @__PURE__ */ Oe("global-vue-i18n");
5884
+ function $i(e = {}) {
5885
5885
  const t = __VUE_I18N_LEGACY_API__ && U(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__;
5886
- process.env.NODE_ENV !== "production" && t && oa(ct(me.DEPRECATE_LEGACY_MODE));
5887
- const n = U(e.globalInjection) ? e.globalInjection : !0, a = /* @__PURE__ */ new Map(), [r, s] = $i(e, t), o = /* @__PURE__ */ Oe(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
5886
+ process.env.NODE_ENV !== "production" && t && la(ct(me.DEPRECATE_LEGACY_MODE));
5887
+ const n = U(e.globalInjection) ? e.globalInjection : !0, a = /* @__PURE__ */ new Map(), [r, s] = Hi(e, t), o = /* @__PURE__ */ Oe(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
5888
5888
  function l(g) {
5889
5889
  return a.get(g) || null;
5890
5890
  }
@@ -5906,14 +5906,14 @@ function Vi(e = {}) {
5906
5906
  m.__composerExtend = T.__composerExtend, m.__vueI18nExtend = T.__vueI18nExtend;
5907
5907
  }
5908
5908
  let N = null;
5909
- !t && n && (N = Qi(g, m.global)), __VUE_I18N_FULL_INSTALL__ && Ui(g, m, ...p), __VUE_I18N_LEGACY_API__ && t && g.mixin(Ri(s, s.__composer, m));
5909
+ !t && n && (N = Ji(g, m.global)), __VUE_I18N_FULL_INSTALL__ && xi(g, m, ...p), __VUE_I18N_LEGACY_API__ && t && g.mixin(ki(s, s.__composer, m));
5910
5910
  const P = g.unmount;
5911
5911
  if (g.unmount = () => {
5912
5912
  N && N(), m.dispose(), P();
5913
5913
  }, process.env.NODE_ENV !== "production") {
5914
- if (!await Ei(g, m))
5914
+ if (!await vi(g, m))
5915
5915
  throw ce(G.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
5916
- const S = ca();
5916
+ const S = ua();
5917
5917
  if (t) {
5918
5918
  const d = s;
5919
5919
  d.__enableEmitter && d.__enableEmitter(S);
@@ -5942,57 +5942,57 @@ function Vi(e = {}) {
5942
5942
  };
5943
5943
  return m;
5944
5944
  }
5945
- function Ea(e = {}) {
5945
+ function va(e = {}) {
5946
5946
  const t = nt();
5947
5947
  if (t == null)
5948
5948
  throw ce(G.MUST_BE_CALL_SETUP_TOP);
5949
5949
  if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
5950
5950
  throw ce(G.NOT_INSTALLED);
5951
- const n = Hi(t), a = Gi(n), r = Xr(t), s = Wi(e, r);
5951
+ const n = Wi(t), a = Ki(n), r = qr(t), s = Gi(e, r);
5952
5952
  if (s === "global")
5953
- return qr(a, e, r), a;
5953
+ return Zr(a, e, r), a;
5954
5954
  if (s === "parent") {
5955
- let i = Ki(n, t, e.__useComponent);
5955
+ let i = Yi(n, t, e.__useComponent);
5956
5956
  return i == null && (process.env.NODE_ENV !== "production" && Le(ct(me.NOT_FOUND_PARENT_SCOPE)), i = a), i;
5957
5957
  }
5958
5958
  const o = n;
5959
5959
  let l = o.__getInstance(t);
5960
5960
  if (l == null) {
5961
5961
  const i = z({}, e);
5962
- "__i18n" in r && (i.__i18n = r.__i18n), a && (i.__root = a), l = _a(i), o.__composerExtend && (l[Jn] = o.__composerExtend(l)), ji(o, t, l), o.__setInstance(t, l);
5962
+ "__i18n" in r && (i.__i18n = r.__i18n), a && (i.__root = a), l = ga(i), o.__composerExtend && (l[Jn] = o.__composerExtend(l)), Bi(o, t, l), o.__setInstance(t, l);
5963
5963
  } else
5964
5964
  process.env.NODE_ENV !== "production" && s === "local" && Le(ct(me.DUPLICATE_USE_I18N_CALLING));
5965
5965
  return l;
5966
5966
  }
5967
- function $i(e, t) {
5968
- const n = us(), a = __VUE_I18N_LEGACY_API__ && t ? n.run(() => qn(e)) : n.run(() => _a(e));
5967
+ function Hi(e, t) {
5968
+ const n = fs(), a = __VUE_I18N_LEGACY_API__ && t ? n.run(() => qn(e)) : n.run(() => ga(e));
5969
5969
  if (a == null)
5970
5970
  throw ce(G.UNEXPECTED_ERROR);
5971
5971
  return [n, a];
5972
5972
  }
5973
- function Hi(e) {
5974
- const t = et(e.isCE ? xi : e.appContext.app.__VUE_I18N_SYMBOL__);
5973
+ function Wi(e) {
5974
+ const t = et(e.isCE ? Vi : e.appContext.app.__VUE_I18N_SYMBOL__);
5975
5975
  if (!t)
5976
5976
  throw ce(e.isCE ? G.NOT_INSTALLED_WITH_PROVIDE : G.UNEXPECTED_ERROR);
5977
5977
  return t;
5978
5978
  }
5979
- function Wi(e, t) {
5979
+ function Gi(e, t) {
5980
5980
  return fn(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
5981
5981
  }
5982
- function Gi(e) {
5982
+ function Ki(e) {
5983
5983
  return e.mode === "composition" ? e.global : e.global.__composer;
5984
5984
  }
5985
- function Ki(e, t, n = !1) {
5985
+ function Yi(e, t, n = !1) {
5986
5986
  let a = null;
5987
5987
  const r = t.root;
5988
- let s = Yi(t, n);
5988
+ let s = ji(t, n);
5989
5989
  for (; s != null; ) {
5990
5990
  const o = e;
5991
5991
  if (e.mode === "composition")
5992
5992
  a = o.__getInstance(s);
5993
5993
  else if (__VUE_I18N_LEGACY_API__) {
5994
5994
  const l = o.__getInstance(s);
5995
- l != null && (a = l.__composer, n && a && !a[Jr] && (a = null));
5995
+ l != null && (a = l.__composer, n && a && !a[Xr] && (a = null));
5996
5996
  }
5997
5997
  if (a != null || r === s)
5998
5998
  break;
@@ -6000,14 +6000,14 @@ function Ki(e, t, n = !1) {
6000
6000
  }
6001
6001
  return a;
6002
6002
  }
6003
- function Yi(e, t = !1) {
6003
+ function ji(e, t = !1) {
6004
6004
  return e == null ? null : t && e.vnode.ctx || e.parent;
6005
6005
  }
6006
- function ji(e, t, n) {
6006
+ function Bi(e, t, n) {
6007
6007
  let a = null;
6008
6008
  Rt(() => {
6009
6009
  if (process.env.NODE_ENV !== "production") {
6010
- t.__VUE_I18N__ = n, a = ca();
6010
+ t.__VUE_I18N__ = n, a = ua();
6011
6011
  const r = n;
6012
6012
  r[Be] && r[Be](a), a.on("*", Pt);
6013
6013
  }
@@ -6018,18 +6018,18 @@ function ji(e, t, n) {
6018
6018
  s && (s(), delete r[Jn]);
6019
6019
  }, t);
6020
6020
  }
6021
- const Bi = [
6021
+ const Qi = [
6022
6022
  "locale",
6023
6023
  "fallbackLocale",
6024
6024
  "availableLocales"
6025
- ], lr = ["t", "rt", "d", "n", "tm", "te"];
6026
- function Qi(e, t) {
6025
+ ], ir = ["t", "rt", "d", "n", "tm", "te"];
6026
+ function Ji(e, t) {
6027
6027
  const n = /* @__PURE__ */ Object.create(null);
6028
- return Bi.forEach((r) => {
6028
+ return Qi.forEach((r) => {
6029
6029
  const s = Object.getOwnPropertyDescriptor(t, r);
6030
6030
  if (!s)
6031
6031
  throw ce(G.UNEXPECTED_ERROR);
6032
- const o = fs(s.value) ? {
6032
+ const o = ds(s.value) ? {
6033
6033
  get() {
6034
6034
  return s.value.value;
6035
6035
  },
@@ -6043,18 +6043,18 @@ function Qi(e, t) {
6043
6043
  }
6044
6044
  };
6045
6045
  Object.defineProperty(n, r, o);
6046
- }), e.config.globalProperties.$i18n = n, lr.forEach((r) => {
6046
+ }), e.config.globalProperties.$i18n = n, ir.forEach((r) => {
6047
6047
  const s = Object.getOwnPropertyDescriptor(t, r);
6048
6048
  if (!s || !s.value)
6049
6049
  throw ce(G.UNEXPECTED_ERROR);
6050
6050
  Object.defineProperty(e.config.globalProperties, `$${r}`, s);
6051
6051
  }), () => {
6052
- delete e.config.globalProperties.$i18n, lr.forEach((r) => {
6052
+ delete e.config.globalProperties.$i18n, ir.forEach((r) => {
6053
6053
  delete e.config.globalProperties[`$${r}`];
6054
6054
  });
6055
6055
  };
6056
6056
  }
6057
- const Ji = /* @__PURE__ */ De({
6057
+ const Xi = /* @__PURE__ */ De({
6058
6058
  /* eslint-disable */
6059
6059
  name: "i18n-d",
6060
6060
  props: z({
@@ -6065,30 +6065,30 @@ const Ji = /* @__PURE__ */ De({
6065
6065
  format: {
6066
6066
  type: [String, Object]
6067
6067
  }
6068
- }, ha),
6068
+ }, Ea),
6069
6069
  /* eslint-enable */
6070
6070
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6071
6071
  setup(e, t) {
6072
- const n = e.i18n || Ea({
6072
+ const n = e.i18n || va({
6073
6073
  useScope: e.scope,
6074
6074
  __useComponent: !0
6075
6075
  });
6076
- return ns(e, t, Gr, (...a) => (
6076
+ return as(e, t, Kr, (...a) => (
6077
6077
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6078
6078
  n[Bn](...a)
6079
6079
  ));
6080
6080
  }
6081
- }), ir = Ji;
6082
- fi();
6083
- Ml(ml);
6084
- Fl(Rl);
6085
- Ul(wr);
6081
+ }), cr = Xi;
6082
+ di();
6083
+ Fl(pl);
6084
+ Ul(kl);
6085
+ xl(Mr);
6086
6086
  if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
6087
6087
  const e = He();
6088
- e.__INTLIFY__ = !0, pl(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
6088
+ e.__INTLIFY__ = !0, _l(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
6089
6089
  }
6090
6090
  process.env.NODE_ENV;
6091
- const Xi = {
6091
+ const qi = {
6092
6092
  webui: {
6093
6093
  // 通用
6094
6094
  common: {
@@ -6269,16 +6269,18 @@ const Xi = {
6269
6269
  }
6270
6270
  }
6271
6271
  };
6272
- function va(e, t) {
6272
+ function ba(e, t) {
6273
6273
  const n = { ...e };
6274
6274
  for (const a in t)
6275
- t.hasOwnProperty(a) && (typeof t[a] == "object" && t[a] !== null && !Array.isArray(t[a]) ? n[a] = va(n[a] || {}, t[a]) : n[a] = t[a]);
6275
+ t.hasOwnProperty(a) && (typeof t[a] == "object" && t[a] !== null && !Array.isArray(t[a]) ? n[a] = ba(n[a] || {}, t[a]) : n[a] = t[a]);
6276
6276
  return n;
6277
6277
  }
6278
- let qt = {};
6278
+ let Zn = "/", qt = {
6279
+ "zh-CN": "简体中文"
6280
+ };
6279
6281
  const at = {
6280
- "zh-CN": va({}, Xi)
6281
- }, ut = Vi({
6282
+ "zh-CN": ba({}, qi)
6283
+ }, ut = $i({
6282
6284
  legacy: !1,
6283
6285
  // 使用Composition API模式
6284
6286
  locale: "zh-CN",
@@ -6293,18 +6295,18 @@ const at = {
6293
6295
  missingWarn: !1
6294
6296
  // 禁用缺失警告
6295
6297
  });
6296
- async function qi(e) {
6298
+ async function Zi(e) {
6297
6299
  try {
6298
- const t = await fetch(`/locales/${e}.json`);
6300
+ const t = await fetch(`${Zn}locales/${e}.json`);
6299
6301
  if (!t.ok)
6300
6302
  throw new Error(`Failed to load locale ${e}`);
6301
6303
  const n = await t.json();
6302
- return at[e] ? va(at[e], n) : n;
6304
+ return at[e] ? ba(at[e], n) : n;
6303
6305
  } catch (t) {
6304
6306
  return console.error(`Error loading locale ${e}:`, t), at[e] || {};
6305
6307
  }
6306
6308
  }
6307
- function Zi(e) {
6309
+ function zi(e) {
6308
6310
  try {
6309
6311
  const t = localStorage.getItem(`locale_cache_${e}`);
6310
6312
  if (t)
@@ -6314,7 +6316,7 @@ function Zi(e) {
6314
6316
  }
6315
6317
  return null;
6316
6318
  }
6317
- function zi(e, t) {
6319
+ function ec(e, t) {
6318
6320
  try {
6319
6321
  const n = {
6320
6322
  messages: t,
@@ -6325,133 +6327,134 @@ function zi(e, t) {
6325
6327
  console.error(`Error caching locale ${e}:`, n);
6326
6328
  }
6327
6329
  }
6328
- async function as(e) {
6329
- const t = Zi(e);
6330
+ async function rs(e) {
6331
+ const t = zi(e);
6330
6332
  t && (at[e] = t, ut.global.setLocaleMessage(e, t)), setTimeout(async () => {
6331
6333
  try {
6332
- const n = await qi(e);
6333
- at[e] = n, ut.global.setLocaleMessage(e, n), zi(e, n);
6334
+ const n = await Zi(e);
6335
+ at[e] = n, ut.global.setLocaleMessage(e, n), ec(e, n);
6334
6336
  } catch (n) {
6335
6337
  console.error("[Locale] Background update failed:", n);
6336
6338
  }
6337
6339
  }, 0);
6338
6340
  }
6339
- async function Kc(e = "/", t = "zh-CN") {
6341
+ async function Yc(e = "/", t = "zh-CN") {
6342
+ Zn = e;
6340
6343
  try {
6341
- const a = await fetch(`${e}locales/languages.json`);
6344
+ const a = await fetch(`${Zn}locales/languages.json`);
6342
6345
  a.ok && (qt = await a.json());
6343
6346
  } catch (a) {
6344
6347
  a instanceof TypeError && console.error("Network error during language initialization:", a);
6345
6348
  }
6346
6349
  const n = localStorage.getItem("language") || t;
6347
- ut.global.locale.value = n, localStorage.setItem("language", n), await as(n);
6350
+ ut.global.locale.value = n, localStorage.setItem("language", n), await rs(n);
6348
6351
  }
6349
- async function Yc(e) {
6350
- await as(e), ut.global.locale.value = e, localStorage.setItem("language", e);
6352
+ async function jc(e) {
6353
+ await rs(e), ut.global.locale.value = e, localStorage.setItem("language", e);
6351
6354
  }
6352
- function jc(e = "code") {
6355
+ function Bc(e = "code") {
6353
6356
  const t = ut.global.locale.value;
6354
6357
  return e === "display" ? qt[t] : t;
6355
6358
  }
6356
- function Bc() {
6359
+ function Qc() {
6357
6360
  return Object.keys(qt).map((e) => ({
6358
6361
  label: qt[e],
6359
6362
  key: e
6360
6363
  }));
6361
6364
  }
6362
- function Qc(e, t) {
6365
+ function Jc(e, t) {
6363
6366
  try {
6364
6367
  return ut.global.t(e, t);
6365
6368
  } catch {
6366
6369
  return e;
6367
6370
  }
6368
6371
  }
6369
- const ec = R(!1), Jc = {
6372
+ const tc = R(!1), Xc = {
6370
6373
  label: "模板管理",
6371
6374
  key: "uploadTemp",
6372
6375
  type: "primary",
6373
6376
  icon: "icon-download",
6374
6377
  click: () => {
6375
- ec.value = !0;
6378
+ tc.value = !0;
6376
6379
  }
6377
6380
  };
6378
6381
  export {
6379
- _r as $,
6382
+ gr as $,
6380
6383
  ln as A,
6381
6384
  on as B,
6382
6385
  Mt as C,
6383
- Hc as D,
6384
- Wc as E,
6385
- Gc as F,
6386
- na as G,
6387
- Ps as H,
6388
- Pc as I,
6389
- eo as J,
6390
- to as K,
6386
+ Wc as D,
6387
+ Gc as E,
6388
+ Kc as F,
6389
+ aa as G,
6390
+ Rs as H,
6391
+ Rc as I,
6392
+ to as J,
6393
+ no as K,
6391
6394
  an as L,
6392
6395
  yt as M,
6393
- Rc as N,
6396
+ kc as N,
6394
6397
  Ie as O,
6395
6398
  Pe as P,
6396
- kc as Q,
6397
- zs as R,
6398
- br as S,
6399
- Dc as T,
6400
- wc as U,
6401
- lo as V,
6402
- io as W,
6403
- Mc as X,
6404
- Oa as Y,
6405
- Fc as Z,
6406
- Vc as _,
6407
- xc as a,
6408
- Ic as a0,
6409
- gr as a1,
6410
- pc as a2,
6411
- gc as a3,
6412
- aa as a4,
6413
- _c as a5,
6414
- Tc as a6,
6415
- Js as a7,
6416
- Er as a8,
6417
- Oc as a9,
6418
- mc as aa,
6419
- pr as ab,
6420
- Ws as ac,
6399
+ Dc as Q,
6400
+ eo as R,
6401
+ Ir as S,
6402
+ Cc as T,
6403
+ Mc as U,
6404
+ io as V,
6405
+ co as W,
6406
+ Fc as X,
6407
+ Sa as Y,
6408
+ Uc as Z,
6409
+ $c as _,
6410
+ Vc as a,
6411
+ yc as a0,
6412
+ hr as a1,
6413
+ _c as a2,
6414
+ hc as a3,
6415
+ ra as a4,
6416
+ gc as a5,
6417
+ Lc as a6,
6418
+ Xs as a7,
6419
+ vr as a8,
6420
+ Sc as a9,
6421
+ pc as aa,
6422
+ _r as ab,
6423
+ Gs as ac,
6421
6424
  xn as ad,
6422
6425
  tt as ae,
6423
6426
  It as af,
6424
6427
  jt as ag,
6425
6428
  we as ah,
6426
- Uc as ai,
6427
- ea as aj,
6428
- ec as ak,
6429
- Jc as al,
6429
+ xc as ai,
6430
+ ta as aj,
6431
+ tc as ak,
6432
+ Xc as al,
6430
6433
  ut as am,
6431
- Kc as an,
6432
- Qc as ao,
6433
- Bc as ap,
6434
- jc as aq,
6435
- Yc as ar,
6434
+ Yc as an,
6435
+ Jc as ao,
6436
+ Qc as ap,
6437
+ Bc as aq,
6438
+ jc as ar,
6436
6439
  Nt as as,
6437
- vc as b,
6438
- Cc as c,
6439
- bc as d,
6440
- hc as e,
6441
- Sc as f,
6442
- Bs as g,
6443
- Ac as h,
6440
+ bc as b,
6441
+ wc as c,
6442
+ Ic as d,
6443
+ Ec as e,
6444
+ Ac as f,
6445
+ Qs as g,
6446
+ Pc as h,
6444
6447
  he as i,
6445
- Nc as j,
6446
- yc as k,
6447
- hr as l,
6448
- Qs as m,
6449
- Lc as n,
6450
- Ec as o,
6451
- Ks as p,
6452
- Gs as q,
6448
+ Tc as j,
6449
+ Nc as k,
6450
+ Er as l,
6451
+ Js as m,
6452
+ Oc as n,
6453
+ vc as o,
6454
+ Ys as p,
6455
+ Ks as q,
6453
6456
  nn as r,
6454
- $c as s,
6457
+ Hc as s,
6455
6458
  wt as t,
6456
6459
  be as u,
6457
6460
  ot as v,