xto-fronted 0.4.81 → 0.4.82

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,12 +1,12 @@
1
- import { ref as D, computed as j, watch as We, defineComponent as Ae, resolveComponent as Ut, openBlock as y, createBlock as me, unref as b, withCtx as Y, createElementBlock as N, Fragment as ve, renderList as ye, createElementVNode as n, toDisplayString as W, createCommentVNode as ie, normalizeClass as ge, withDirectives as at, vShow as Jt, createVNode as P, createTextVNode as Re, onMounted as gt, onUnmounted as _t, vModelText as wt, Transition as Ve, withModifiers as it, normalizeStyle as Xe, reactive as yt, createStaticVNode as tt, withKeys as Zt } from "vue";
1
+ import { ref as P, computed as j, watch as We, defineComponent as Ae, resolveComponent as Ut, openBlock as y, createBlock as me, unref as b, withCtx as Y, createElementBlock as N, Fragment as ve, renderList as ye, createElementVNode as n, toDisplayString as W, createCommentVNode as ie, normalizeClass as ge, withDirectives as at, vShow as Jt, createVNode as R, createTextVNode as De, onMounted as gt, onUnmounted as _t, vModelText as wt, Transition as Ve, withModifiers as it, normalizeStyle as Xe, reactive as yt, createStaticVNode as tt, withKeys as Zt } from "vue";
2
2
  import { defineStore as lt } from "pinia";
3
- import { useRoute as qe, useRouter as De, createRouter as bt, createWebHistory as kt } from "vue-router";
3
+ import { useRoute as qe, useRouter as Pe, createRouter as bt, createWebHistory as kt } from "vue-router";
4
4
  import { SubMenu as Bt, MenuItem as st, Menu as xt, Tabs as Qt, TabPane as es } from "@xto/navigation";
5
5
  import { Icon as Q, Button as je } from "@xto/base";
6
6
  import { Drawer as Ct, Message as Le } from "@xto/feedback";
7
7
  import { Form as ts, FormItem as mt, Input as At, Checkbox as ss } from "@xto/form";
8
8
  import ns from "axios";
9
- const nt = D(""), ot = D(""), rt = D("");
9
+ const nt = P(""), ot = P(""), rt = P("");
10
10
  function os(r) {
11
11
  r.appId && (nt.value = r.appId), r.clientId && (ot.value = r.clientId), r.apiBaseUrl && (rt.value = r.apiBaseUrl);
12
12
  }
@@ -19,7 +19,7 @@ function ct() {
19
19
  return "";
20
20
  }
21
21
  }
22
- function Dt() {
22
+ function Pt() {
23
23
  if (ot.value)
24
24
  return ot.value;
25
25
  try {
@@ -41,7 +41,7 @@ const Na = {
41
41
  appId: nt,
42
42
  clientId: ot,
43
43
  apiBaseUrl: rt
44
- }, Ke = "xto_", Pt = (r) => ({
44
+ }, Ke = "xto_", Rt = (r) => ({
45
45
  get(f) {
46
46
  const v = r.getItem(Ke + f);
47
47
  if (!v) return null;
@@ -67,7 +67,7 @@ const Na = {
67
67
  v.startsWith(Ke) && r.removeItem(v);
68
68
  });
69
69
  }
70
- }), Ze = Pt(window.localStorage), Qe = Pt(window.sessionStorage), H = {
70
+ }), Ze = Rt(window.localStorage), Qe = Rt(window.sessionStorage), H = {
71
71
  get: Ze.get,
72
72
  set: Ze.set,
73
73
  remove: Ze.remove,
@@ -77,31 +77,31 @@ const Na = {
77
77
  set: Qe.set,
78
78
  remove: Qe.remove,
79
79
  clear: Qe.clear
80
- }, Pe = lt("app", () => {
81
- const r = D(H.get("appName") || "XTO App"), f = D(H.get("indexPath") || "/dashboard"), v = D(H.get("isDark") || !1), p = D(H.get("theme") || "light"), h = D(H.get("layout") || "sidebar"), k = D(H.get("isCollapsed") || !1), T = D(H.get("showTabs") ?? !0), g = D(H.get("showFooter") ?? !0), I = D(H.get("showBreadcrumb") ?? !0), _ = D(H.get("primaryColor") || "#409eff"), x = D([]), S = D([]), E = j(() => v.value ? "dark" : "light"), q = (z) => {
80
+ }, Re = lt("app", () => {
81
+ const r = P(H.get("appName") || "XTO App"), f = P(H.get("indexPath") || "/dashboard"), v = P(H.get("isDark") || !1), p = P(H.get("theme") || "light"), h = P(H.get("layout") || "sidebar"), k = P(H.get("isCollapsed") || !1), T = P(H.get("showTabs") ?? !0), g = P(H.get("showFooter") ?? !0), I = P(H.get("showBreadcrumb") ?? !0), _ = P(H.get("primaryColor") || "#409eff"), x = P([]), M = P([]), E = j(() => v.value ? "dark" : "light"), q = (z) => {
82
82
  r.value = z, H.set("appName", z);
83
- }, Z = (z) => {
83
+ }, J = (z) => {
84
84
  f.value = z, H.set("indexPath", z);
85
85
  }, O = () => {
86
86
  v.value = !v.value, p.value = v.value ? "dark" : "light", V();
87
- }, L = (z) => {
87
+ }, A = (z) => {
88
88
  p.value = z, v.value = z === "dark", V();
89
89
  }, V = () => {
90
90
  const z = document.documentElement;
91
91
  v.value ? z.classList.add("dark") : z.classList.remove("dark"), H.set("isDark", v.value), H.set("theme", p.value);
92
- }, M = () => {
92
+ }, S = () => {
93
93
  k.value = !k.value, H.set("isCollapsed", k.value);
94
94
  }, K = (z) => {
95
95
  h.value = z, H.set("layout", z);
96
- }, J = () => {
96
+ }, X = () => {
97
97
  T.value = !T.value, H.set("showTabs", T.value);
98
98
  }, oe = () => {
99
99
  g.value = !g.value, H.set("showFooter", g.value);
100
100
  }, U = () => {
101
101
  I.value = !I.value, H.set("showBreadcrumb", I.value);
102
- }, A = (z) => {
102
+ }, L = (z) => {
103
103
  _.value = z, document.documentElement.style.setProperty("--color-primary", z), H.set("primaryColor", z);
104
- }, X = (z) => {
104
+ }, Z = (z) => {
105
105
  x.value.includes(z) || x.value.push(z);
106
106
  }, se = (z) => {
107
107
  const le = x.value.indexOf(z);
@@ -109,7 +109,7 @@ const Na = {
109
109
  }, $ = () => {
110
110
  x.value = [];
111
111
  }, re = (z) => {
112
- S.value = z;
112
+ M.value = z;
113
113
  }, ee = () => {
114
114
  V(), _.value !== "#409eff" && document.documentElement.style.setProperty("--color-primary", _.value);
115
115
  };
@@ -125,19 +125,19 @@ const Na = {
125
125
  showBreadcrumb: I,
126
126
  primaryColor: _,
127
127
  cachedViews: x,
128
- mixSubMenus: S,
128
+ mixSubMenus: M,
129
129
  themeClass: E,
130
130
  setAppName: q,
131
- setIndexPath: Z,
131
+ setIndexPath: J,
132
132
  toggleTheme: O,
133
- toggleCollapse: M,
134
- setTheme: L,
133
+ toggleCollapse: S,
134
+ setTheme: A,
135
135
  setLayout: K,
136
- toggleTabs: J,
136
+ toggleTabs: X,
137
137
  toggleFooter: oe,
138
138
  toggleBreadcrumb: U,
139
- setPrimaryColor: A,
140
- addCachedView: X,
139
+ setPrimaryColor: L,
140
+ addCachedView: Z,
141
141
  removeCachedView: se,
142
142
  clearCachedViews: $,
143
143
  setMixSubMenus: re,
@@ -152,7 +152,7 @@ const Na = {
152
152
  isDefault: !1,
153
153
  isOut: !1
154
154
  }, ze = lt("menu", () => {
155
- const r = D(H.get(ht) || []), f = j(() => r.value.length > 0);
155
+ const r = P(H.get(ht) || []), f = j(() => r.value.length > 0);
156
156
  return {
157
157
  menuList: r,
158
158
  hasMenu: f,
@@ -164,27 +164,27 @@ const Na = {
164
164
  }
165
165
  };
166
166
  }), Et = "/vite.svg", vt = "user_info", $e = lt("user", () => {
167
- const r = D(H.get(vt)), f = j(() => !!r.value), v = j(() => {
168
- var S;
169
- return ((S = r.value) == null ? void 0 : S.userId) || "";
167
+ const r = P(H.get(vt)), f = j(() => !!r.value), v = j(() => {
168
+ var M;
169
+ return ((M = r.value) == null ? void 0 : M.userId) || "";
170
170
  }), p = j(() => {
171
- var S;
172
- return ((S = r.value) == null ? void 0 : S.userName) || "";
171
+ var M;
172
+ return ((M = r.value) == null ? void 0 : M.userName) || "";
173
173
  }), h = j(() => {
174
- var S;
175
- return ((S = r.value) == null ? void 0 : S.departmentName) || "";
174
+ var M;
175
+ return ((M = r.value) == null ? void 0 : M.departmentName) || "";
176
176
  }), k = j(() => {
177
- var S;
178
- return ((S = r.value) == null ? void 0 : S.email) || "";
177
+ var M;
178
+ return ((M = r.value) == null ? void 0 : M.email) || "";
179
179
  }), T = j(() => {
180
- var S;
181
- return ((S = r.value) == null ? void 0 : S.mobilePhone) || "";
180
+ var M;
181
+ return ((M = r.value) == null ? void 0 : M.mobilePhone) || "";
182
182
  }), g = j(() => {
183
- var S;
184
- return ((S = r.value) == null ? void 0 : S.positionName) || "";
183
+ var M;
184
+ return ((M = r.value) == null ? void 0 : M.positionName) || "";
185
185
  }), I = j(() => {
186
- var S;
187
- return ((S = r.value) == null ? void 0 : S.avatar) || "";
186
+ var M;
187
+ return ((M = r.value) == null ? void 0 : M.avatar) || "";
188
188
  });
189
189
  return {
190
190
  userInfo: r,
@@ -196,8 +196,8 @@ const Na = {
196
196
  mobilePhone: T,
197
197
  positionName: g,
198
198
  avatar: I,
199
- setUserInfo: (S) => {
200
- r.value = S, H.set(vt, S);
199
+ setUserInfo: (M) => {
200
+ r.value = M, H.set(vt, M);
201
201
  },
202
202
  clearUserInfo: () => {
203
203
  r.value = null, H.remove(vt);
@@ -215,7 +215,7 @@ const Na = {
215
215
  H.set(It, r);
216
216
  }, Ia = () => H.get(Lt), ms = (r) => {
217
217
  H.set(Lt, r);
218
- }, Rt = (r) => {
218
+ }, Dt = (r) => {
219
219
  is(r.access_token), cs(r.token_type || "Bearer"), us(r.refresh_token), fs(r.expires_time), ps(r.refresh_time), r.code && ms(r.code);
220
220
  }, He = () => {
221
221
  H.remove(Nt), H.remove($t), H.remove(St), H.remove(Mt), H.remove(It), H.remove(Lt);
@@ -223,7 +223,7 @@ const Na = {
223
223
  const r = ds();
224
224
  return r ? Date.now() > r : !0;
225
225
  }, zt = () => !!ut() && !hs(), Ye = lt("auth", () => {
226
- const r = D(ut()), f = j(() => zt()), v = D(""), p = D(""), h = D(""), k = D("/login");
226
+ const r = P(ut()), f = j(() => zt()), v = P(""), p = P(""), h = P(""), k = P("/login");
227
227
  return {
228
228
  token: r,
229
229
  isLoggedIn: f,
@@ -232,7 +232,7 @@ const Na = {
232
232
  clientId: h,
233
233
  loginPath: k,
234
234
  login: (E) => {
235
- r.value = E.access_token, Rt(E);
235
+ r.value = E.access_token, Dt(E);
236
236
  },
237
237
  logout: () => {
238
238
  r.value = null, He();
@@ -469,31 +469,34 @@ const Na = {
469
469
  showUser: { type: Boolean, default: !0 }
470
470
  },
471
471
  setup(r) {
472
- const f = r, v = qe(), p = De(), h = ze(), k = $e(), T = Ye(), g = Pe(), I = j(() => f.menuList.length > 0 ? f.menuList : h.menuList), _ = j(() => g.isCollapsed), x = j(() => v.path), S = D(H.get(Tt) || []);
473
- We(S, (M) => {
474
- H.set(Tt, M);
472
+ const f = r, v = qe(), p = Pe(), h = ze(), k = $e(), T = Ye(), g = Re(), I = j(() => f.menuList.length > 0 ? f.menuList : h.menuList), _ = j(() => g.isCollapsed), x = j(() => v.path), M = P(H.get(Tt) || []);
473
+ We(M, (S) => {
474
+ H.set(Tt, S);
475
475
  }, { deep: !0 });
476
- const E = (M, K, J = []) => {
476
+ const E = (S, K, X = []) => {
477
477
  var oe;
478
- for (const U of M)
478
+ for (const U of S) {
479
+ if (K === U.menuUrl || K.startsWith(U.menuUrl + "/"))
480
+ return [...X, U.menuUrl];
479
481
  if ((oe = U.children) != null && oe.length) {
480
- if (U.children.some((X) => K === X.menuUrl || K.startsWith(X.menuUrl + "/"))) {
481
- for (const X of J)
482
- S.value.includes(X) || S.value.push(X);
483
- S.value.includes(U.menuUrl) || S.value.push(U.menuUrl);
484
- }
485
- E(U.children, K, [...J, U.menuUrl]);
482
+ const L = E(U.children, K, [...X, U.menuUrl]);
483
+ if (L) return L;
486
484
  }
485
+ }
486
+ return null;
487
487
  };
488
- We([() => v.path, I], ([M, K]) => {
489
- K.length > 0 && E(K, M);
488
+ We([() => v.path, I], ([S, K]) => {
489
+ if (K.length > 0) {
490
+ const X = E(K, S);
491
+ X ? M.value = X.slice(0, -1) : M.value = [];
492
+ }
490
493
  }, { immediate: !0 });
491
- const q = j(() => g.isDark ? "#1d1e1f" : "#fff"), Z = j(() => g.isDark ? "#cfd3dc" : "#303133"), O = j(() => "#409eff"), L = (M) => {
492
- M && M !== v.path && p.push(M);
494
+ const q = j(() => g.isDark ? "#1d1e1f" : "#fff"), J = j(() => g.isDark ? "#cfd3dc" : "#303133"), O = j(() => "#409eff"), A = (S) => {
495
+ S && S !== v.path && p.push(S);
493
496
  }, V = () => {
494
497
  T.logout(), k.clearUserInfo(), h.clearMenu(), p.push("/login");
495
498
  };
496
- return (M, K) => (y(), N("div", {
499
+ return (S, K) => (y(), N("div", {
497
500
  class: ge(["sidebar", { "sidebar--collapsed": _.value }])
498
501
  }, [
499
502
  f.showLogo ? (y(), N("div", Ns, [
@@ -506,24 +509,24 @@ const Na = {
506
509
  [Jt, !_.value]
507
510
  ])
508
511
  ])) : ie("", !0),
509
- P(b(xt), {
512
+ R(b(xt), {
510
513
  modelValue: x.value,
511
- "onUpdate:modelValue": K[0] || (K[0] = (J) => x.value = J),
512
- openeds: S.value,
513
- "onUpdate:openeds": K[1] || (K[1] = (J) => S.value = J),
514
+ "onUpdate:modelValue": K[0] || (K[0] = (X) => x.value = X),
515
+ openeds: M.value,
516
+ "onUpdate:openeds": K[1] || (K[1] = (X) => M.value = X),
514
517
  mode: "vertical",
515
518
  collapse: _.value,
516
519
  "collapse-transition": !1,
517
520
  "background-color": q.value,
518
- "text-color": Z.value,
521
+ "text-color": J.value,
519
522
  "active-text-color": O.value,
520
523
  class: "sidebar__menu",
521
- onSelect: L
524
+ onSelect: A
522
525
  }, {
523
526
  default: Y(() => [
524
- (y(!0), N(ve, null, ye(I.value, (J) => (y(), me(Es, {
525
- key: J.menuUrl,
526
- menu: J
527
+ (y(!0), N(ve, null, ye(I.value, (X) => (y(), me(Es, {
528
+ key: X.menuUrl,
529
+ menu: X
527
530
  }, null, 8, ["menu"]))), 128))
528
531
  ]),
529
532
  _: 1
@@ -533,32 +536,32 @@ const Na = {
533
536
  n("span", Ms, W(b(k).userName), 1),
534
537
  n("span", Is, W(b(k).departmentName), 1)
535
538
  ]),
536
- P(b(je), {
539
+ R(b(je), {
537
540
  type: "text",
538
541
  size: "small",
539
542
  onClick: V
540
543
  }, {
541
544
  default: Y(() => [...K[3] || (K[3] = [
542
- Re("退出", -1)
545
+ De("退出", -1)
543
546
  ])]),
544
547
  _: 1
545
548
  })
546
549
  ])) : ie("", !0)
547
550
  ], 2));
548
551
  }
549
- }), Ot = /* @__PURE__ */ Se(Ls, [["__scopeId", "data-v-7a84fcaa"]]), As = { class: "header" }, Ts = { class: "header__left" }, Os = {
552
+ }), Ot = /* @__PURE__ */ Se(Ls, [["__scopeId", "data-v-3c79a9c4"]]), As = { class: "header" }, Ts = { class: "header__left" }, Os = {
550
553
  key: 0,
551
554
  class: "header__breadcrumb"
552
555
  }, Us = {
553
556
  key: 0,
554
557
  class: "breadcrumb-separator"
555
- }, Bs = { class: "header__right" }, Ds = {
558
+ }, Bs = { class: "header__right" }, Ps = {
556
559
  key: 0,
557
560
  class: "header__search-dropdown"
558
- }, Ps = {
561
+ }, Rs = {
559
562
  key: 0,
560
563
  class: "header__search-results"
561
- }, Rs = ["onClick"], zs = {
564
+ }, Ds = ["onClick"], zs = {
562
565
  key: 0,
563
566
  class: "header__search-icon"
564
567
  }, Fs = {
@@ -585,11 +588,11 @@ const Na = {
585
588
  }, un = { class: "layout-option__label" }, dn = { class: "settings-section" }, fn = { class: "settings-color-options" }, pn = ["title", "onClick"], mn = { class: "settings-section" }, hn = { class: "settings-switch-list" }, vn = { class: "settings-switch-item" }, gn = { class: "settings-switch-item" }, _n = /* @__PURE__ */ Ae({
586
589
  __name: "Header",
587
590
  setup(r) {
588
- const f = qe(), v = De(), p = Pe(), h = $e(), k = Ye(), T = ze(), g = D(!1), I = D(!1), _ = D(null), x = D(!1), S = D(!1), E = D(""), q = D(null), Z = D(!1), O = [
591
+ const f = qe(), v = Pe(), p = Re(), h = $e(), k = Ye(), T = ze(), g = P(!1), I = P(!1), _ = P(null), x = P(!1), M = P(!1), E = P(""), q = P(null), J = P(!1), O = [
589
592
  { value: "sidebar", label: "左侧菜单", icon: "sidebar-left" },
590
593
  { value: "top", label: "顶部菜单", icon: "menu" },
591
594
  { value: "mix", label: "混合菜单", icon: "grid" }
592
- ], L = [
595
+ ], A = [
593
596
  { value: "#409eff", label: "默认蓝" },
594
597
  { value: "#1890ff", label: "科技蓝" },
595
598
  { value: "#52c41a", label: "极光绿" },
@@ -599,10 +602,10 @@ const Na = {
599
602
  ], V = j(() => f.matched.filter((B) => B.meta && B.meta.title).map((B) => ({
600
603
  title: B.meta.title,
601
604
  path: B.path
602
- }))), M = (G, B = "") => {
605
+ }))), S = (G, B = "") => {
603
606
  const t = [];
604
607
  return G.forEach((e) => {
605
- e.children && e.children.length > 0 ? t.push(...M(e.children, e.menuName)) : t.push({ ...e, parentTitle: B, title: e.menuName, path: e.menuUrl });
608
+ e.children && e.children.length > 0 ? t.push(...S(e.children, e.menuName)) : t.push({ ...e, parentTitle: B, title: e.menuName, path: e.menuUrl });
606
609
  }), t;
607
610
  }, K = /* @__PURE__ */ new Set([
608
611
  "arrow-up",
@@ -706,7 +709,7 @@ const Na = {
706
709
  "sun",
707
710
  "theme",
708
711
  "skin"
709
- ]), J = (G) => {
712
+ ]), X = (G) => {
710
713
  if (!G || G === "") return "";
711
714
  if (G.startsWith("tineco-icon-")) {
712
715
  const t = G.replace("tineco-icon-", "");
@@ -743,9 +746,9 @@ const Na = {
743
746
  list: "list",
744
747
  grid: "grid"
745
748
  }[G] || G;
746
- }, oe = (G) => G ? G.charAt(0) : "", U = (G) => K.has(G), A = j(() => E.value.trim() ? M(T.menuList).filter(
749
+ }, oe = (G) => G ? G.charAt(0) : "", U = (G) => K.has(G), L = j(() => E.value.trim() ? S(T.menuList).filter(
747
750
  (B) => B.title.toLowerCase().includes(E.value.toLowerCase())
748
- ) : []), X = j(() => p.layout), se = () => {
751
+ ) : []), Z = j(() => p.layout), se = () => {
749
752
  p.toggleCollapse();
750
753
  }, $ = () => {
751
754
  p.toggleTheme();
@@ -754,11 +757,11 @@ const Na = {
754
757
  }, ee = (G) => {
755
758
  p.setLayout(G), I.value = !1;
756
759
  }, z = (G) => {
757
- Z.value = G;
760
+ J.value = G;
758
761
  const B = document.documentElement;
759
762
  G ? B.classList.add("grey-mode") : B.classList.remove("grey-mode");
760
763
  }, le = () => {
761
- z(!Z.value), I.value = !1;
764
+ z(!J.value), I.value = !1;
762
765
  }, ue = () => {
763
766
  p.toggleTheme(), I.value = !1;
764
767
  }, Ce = () => {
@@ -770,7 +773,7 @@ const Na = {
770
773
  }, ke = () => {
771
774
  g.value = !1;
772
775
  }, _e = () => {
773
- S.value = !1, E.value = "";
776
+ M.value = !1, E.value = "";
774
777
  }, Te = (G) => {
775
778
  v.push(G), _e();
776
779
  }, Ee = (G) => {
@@ -787,7 +790,7 @@ const Na = {
787
790
  G.key === "Escape" && (_e(), ke());
788
791
  };
789
792
  return gt(() => {
790
- document.addEventListener("click", Be), document.addEventListener("fullscreenchange", de), document.addEventListener("keydown", Me), p.initTheme(), Z.value = document.documentElement.classList.contains("grey-mode");
793
+ document.addEventListener("click", Be), document.addEventListener("fullscreenchange", de), document.addEventListener("keydown", Me), p.initTheme(), J.value = document.documentElement.classList.contains("grey-mode");
791
794
  }), _t(() => {
792
795
  document.removeEventListener("click", Be), document.removeEventListener("fullscreenchange", de), document.removeEventListener("keydown", Me);
793
796
  }), (G, B) => {
@@ -798,7 +801,7 @@ const Na = {
798
801
  class: "header__collapse",
799
802
  onClick: se
800
803
  }, [
801
- P(b(Q), {
804
+ R(b(Q), {
802
805
  name: b(p).isCollapsed ? "menu-unfold" : "menu-fold",
803
806
  size: 18
804
807
  }, null, 8, ["name"])
@@ -820,7 +823,7 @@ const Na = {
820
823
  ref_key: "searchRef",
821
824
  ref: q
822
825
  }, [
823
- P(b(Q), {
826
+ R(b(Q), {
824
827
  name: "search",
825
828
  size: 14,
826
829
  class: "header__search-icon"
@@ -830,29 +833,29 @@ const Na = {
830
833
  type: "text",
831
834
  class: "header__search-input",
832
835
  placeholder: "搜索菜单...",
833
- onFocus: B[1] || (B[1] = (e) => S.value = !0)
836
+ onFocus: B[1] || (B[1] = (e) => M.value = !0)
834
837
  }, null, 544), [
835
838
  [wt, E.value]
836
839
  ]),
837
- P(Ve, { name: "search-dropdown" }, {
840
+ R(Ve, { name: "search-dropdown" }, {
838
841
  default: Y(() => [
839
- S.value && (A.value.length > 0 || E.value) ? (y(), N("div", Ds, [
840
- A.value.length > 0 ? (y(), N("div", Ps, [
841
- (y(!0), N(ve, null, ye(A.value, (e) => (y(), N("div", {
842
+ M.value && (L.value.length > 0 || E.value) ? (y(), N("div", Ps, [
843
+ L.value.length > 0 ? (y(), N("div", Rs, [
844
+ (y(!0), N(ve, null, ye(L.value, (e) => (y(), N("div", {
842
845
  key: e.path,
843
846
  class: "header__search-item",
844
847
  onClick: (o) => Te(e.path)
845
848
  }, [
846
849
  e.title !== "首页" ? (y(), N("span", zs, [
847
- U(J(e.icon)) ? (y(), me(b(Q), {
850
+ U(X(e.icon)) ? (y(), me(b(Q), {
848
851
  key: 0,
849
- name: J(e.icon),
852
+ name: X(e.icon),
850
853
  size: 16
851
854
  }, null, 8, ["name"])) : (y(), N("span", Fs, W(oe(e.title)), 1))
852
855
  ])) : ie("", !0),
853
856
  n("span", Vs, W(e.title), 1),
854
857
  e.parentTitle ? (y(), N("span", js, W(e.parentTitle), 1)) : ie("", !0)
855
- ], 8, Rs))), 128))
858
+ ], 8, Ds))), 128))
856
859
  ])) : (y(), N("div", qs, " 未找到匹配的菜单 "))
857
860
  ])) : ie("", !0)
858
861
  ]),
@@ -864,7 +867,7 @@ const Na = {
864
867
  onClick: Ce,
865
868
  title: x.value ? "退出全屏" : "全屏"
866
869
  }, [
867
- P(b(Q), {
870
+ R(b(Q), {
868
871
  name: x.value ? "fullscreen-exit" : "fullscreen",
869
872
  size: 16
870
873
  }, null, 8, ["name"])
@@ -874,7 +877,7 @@ const Na = {
874
877
  onClick: re,
875
878
  title: "换肤设置"
876
879
  }, [
877
- P(b(Q), {
880
+ R(b(Q), {
878
881
  name: "skin",
879
882
  size: 16
880
883
  })
@@ -884,7 +887,7 @@ const Na = {
884
887
  onClick: $,
885
888
  title: "切换主题"
886
889
  }, [
887
- P(b(Q), {
890
+ R(b(Q), {
888
891
  name: b(p).isDark ? "sun" : "moon",
889
892
  size: 16
890
893
  }, null, 8, ["name"])
@@ -906,7 +909,7 @@ const Na = {
906
909
  class: ge(["header__user-arrow", { "is-active": g.value }])
907
910
  }, "▼", 2)
908
911
  ]),
909
- P(Ve, { name: "dropdown" }, {
912
+ R(Ve, { name: "dropdown" }, {
910
913
  default: Y(() => {
911
914
  var e;
912
915
  return [
@@ -926,7 +929,7 @@ const Na = {
926
929
  class: "header__dropdown-item",
927
930
  onClick: Oe
928
931
  }, [
929
- P(b(Q), {
932
+ R(b(Q), {
930
933
  name: "user",
931
934
  size: 16
932
935
  }),
@@ -936,7 +939,7 @@ const Na = {
936
939
  class: "header__dropdown-item",
937
940
  onClick: C
938
941
  }, [
939
- P(b(Q), {
942
+ R(b(Q), {
940
943
  name: "lock",
941
944
  size: 16
942
945
  }),
@@ -947,7 +950,7 @@ const Na = {
947
950
  class: "header__dropdown-item header__dropdown-item--danger",
948
951
  onClick: Ue
949
952
  }, [
950
- P(b(Q), {
953
+ R(b(Q), {
951
954
  name: "logout",
952
955
  size: 16
953
956
  }),
@@ -961,7 +964,7 @@ const Na = {
961
964
  })
962
965
  ], 512)
963
966
  ]),
964
- P(b(Ct), {
967
+ R(b(Ct), {
965
968
  modelValue: I.value,
966
969
  "onUpdate:modelValue": B[2] || (B[2] = (e) => I.value = e),
967
970
  title: "换肤设置",
@@ -975,7 +978,7 @@ const Na = {
975
978
  n("div", nn, [
976
979
  (y(), N(ve, null, ye(O, (e) => n("div", {
977
980
  key: e.value,
978
- class: ge(["layout-option", { "is-active": X.value === e.value }]),
981
+ class: ge(["layout-option", { "is-active": Z.value === e.value }]),
979
982
  onClick: (o) => ee(e.value)
980
983
  }, [
981
984
  n("div", rn, [
@@ -1005,7 +1008,7 @@ const Na = {
1005
1008
  n("div", dn, [
1006
1009
  B[12] || (B[12] = n("div", { class: "settings-title" }, "主题色", -1)),
1007
1010
  n("div", fn, [
1008
- (y(), N(ve, null, ye(L, (e) => n("div", {
1011
+ (y(), N(ve, null, ye(A, (e) => n("div", {
1009
1012
  key: e.value,
1010
1013
  class: ge(["color-option", { "is-active": b(p).primaryColor === e.value }]),
1011
1014
  style: Xe({ backgroundColor: e.value }),
@@ -1027,7 +1030,7 @@ const Na = {
1027
1030
  n("div", vn, [
1028
1031
  B[14] || (B[14] = n("span", null, "灰色模式", -1)),
1029
1032
  n("div", {
1030
- class: ge(["switch-wrapper", { "is-checked": Z.value }]),
1033
+ class: ge(["switch-wrapper", { "is-checked": J.value }]),
1031
1034
  onClick: le
1032
1035
  }, [...B[13] || (B[13] = [
1033
1036
  n("span", { class: "switch-core" }, null, -1)
@@ -1069,10 +1072,10 @@ const Na = {
1069
1072
  }, On = { class: "top-menu__menu-text" }, Un = { class: "top-menu__actions" }, Bn = {
1070
1073
  key: 0,
1071
1074
  class: "top-menu__search-dropdown"
1072
- }, Dn = {
1075
+ }, Pn = {
1073
1076
  key: 0,
1074
1077
  class: "top-menu__search-results"
1075
- }, Pn = ["onClick"], Rn = {
1078
+ }, Rn = ["onClick"], Dn = {
1076
1079
  key: 0,
1077
1080
  class: "top-menu__search-icon-item"
1078
1081
  }, zn = {
@@ -1099,14 +1102,14 @@ const Na = {
1099
1102
  }, lo = { class: "layout-option__label" }, co = { class: "settings-section" }, uo = { class: "settings-color-options" }, fo = ["title", "onClick"], po = { class: "settings-section" }, mo = { class: "settings-switch-list" }, ho = { class: "settings-switch-item" }, vo = { class: "settings-switch-item" }, go = /* @__PURE__ */ Ae({
1100
1103
  __name: "TopMenu",
1101
1104
  setup(r) {
1102
- const f = qe(), v = De(), p = ze(), h = Pe(), k = $e(), T = Ye(), g = j(() => f.path), I = (e, o = "") => {
1105
+ const f = qe(), v = Pe(), p = ze(), h = Re(), k = $e(), T = Ye(), g = j(() => f.path), I = (e, o = "") => {
1103
1106
  const c = [];
1104
1107
  return e.forEach((s) => {
1105
1108
  s.children && s.children.length > 0 ? c.push(...I(s.children, s.menuName)) : c.push({ ...s, parentTitle: o, title: s.menuName, path: s.menuUrl });
1106
1109
  }), c;
1107
1110
  }, _ = j(() => K.value.trim() ? I(p.menuList).filter(
1108
1111
  (o) => o.title.toLowerCase().includes(K.value.toLowerCase())
1109
- ) : []), x = j(() => h.isDark ? "#1d1e1f" : "#fff"), S = j(() => h.isDark ? "#cfd3dc" : "#303133"), E = j(() => "#409eff"), q = D(!1), Z = D(null), O = D(!1), L = D(!1), V = D(!1), M = D(!1), K = D(""), J = D(null), oe = (e) => {
1112
+ ) : []), x = j(() => h.isDark ? "#1d1e1f" : "#fff"), M = j(() => h.isDark ? "#cfd3dc" : "#303133"), E = j(() => "#409eff"), q = P(!1), J = P(null), O = P(!1), A = P(!1), V = P(!1), S = P(!1), K = P(""), X = P(null), oe = (e) => {
1110
1113
  e && e !== f.path && v.push(e);
1111
1114
  }, U = /* @__PURE__ */ new Set([
1112
1115
  "arrow-up",
@@ -1210,7 +1213,7 @@ const Na = {
1210
1213
  "sun",
1211
1214
  "theme",
1212
1215
  "skin"
1213
- ]), A = (e) => {
1216
+ ]), L = (e) => {
1214
1217
  if (!e || e === "") return "";
1215
1218
  if (e.startsWith("tineco-icon-")) {
1216
1219
  const c = e.replace("tineco-icon-", "");
@@ -1247,8 +1250,8 @@ const Na = {
1247
1250
  list: "list",
1248
1251
  grid: "grid"
1249
1252
  }[e] || e;
1250
- }, X = (e) => e ? e.charAt(0) : "", se = (e) => U.has(e), $ = () => {
1251
- h.toggleTheme(), L.value = !1;
1253
+ }, Z = (e) => e ? e.charAt(0) : "", se = (e) => U.has(e), $ = () => {
1254
+ h.toggleTheme(), A.value = !1;
1252
1255
  }, re = () => {
1253
1256
  document.fullscreenElement ? document.exitFullscreen() : document.documentElement.requestFullscreen();
1254
1257
  }, ee = () => {
@@ -1258,25 +1261,25 @@ const Na = {
1258
1261
  }, le = () => {
1259
1262
  q.value = !1;
1260
1263
  }, ue = () => {
1261
- M.value = !1, K.value = "";
1264
+ S.value = !1, K.value = "";
1262
1265
  }, Ce = (e) => {
1263
1266
  v.push(e), ue();
1264
1267
  }, de = () => {
1265
- L.value = !0;
1268
+ A.value = !0;
1266
1269
  }, be = (e) => {
1267
1270
  V.value = e;
1268
1271
  const o = document.documentElement;
1269
1272
  e ? o.classList.add("grey-mode") : o.classList.remove("grey-mode");
1270
1273
  }, ke = () => {
1271
- be(!V.value), L.value = !1;
1274
+ be(!V.value), A.value = !1;
1272
1275
  }, _e = () => {
1273
- h.toggleTheme(), L.value = !1;
1276
+ h.toggleTheme(), A.value = !1;
1274
1277
  }, Te = [
1275
1278
  { value: "sidebar", label: "左侧菜单", icon: "sidebar-left" },
1276
1279
  { value: "top", label: "顶部菜单", icon: "menu" },
1277
1280
  { value: "mix", label: "混合菜单", icon: "grid" }
1278
1281
  ], Ee = j(() => h.layout), Oe = (e) => {
1279
- h.setLayout(e), L.value = !1;
1282
+ h.setLayout(e), A.value = !1;
1280
1283
  }, C = [
1281
1284
  { value: "#409eff", label: "默认蓝" },
1282
1285
  { value: "#1890ff", label: "科技蓝" },
@@ -1285,7 +1288,7 @@ const Na = {
1285
1288
  { value: "#f5222d", label: "薄暮红" },
1286
1289
  { value: "#722ed1", label: "酱紫" }
1287
1290
  ], Ue = (e) => {
1288
- h.setPrimaryColor(e), L.value = !1;
1291
+ h.setPrimaryColor(e), A.value = !1;
1289
1292
  }, Be = () => {
1290
1293
  le(), v.push("/profile");
1291
1294
  }, Me = () => {
@@ -1293,7 +1296,7 @@ const Na = {
1293
1296
  }, G = () => {
1294
1297
  le(), T.logout(), k.clearUserInfo(), p.clearMenu(), v.push("/login");
1295
1298
  }, B = (e) => {
1296
- Z.value && !Z.value.contains(e.target) && le(), J.value && !J.value.contains(e.target) && ue();
1299
+ J.value && !J.value.contains(e.target) && le(), X.value && !X.value.contains(e.target) && ue();
1297
1300
  }, t = (e) => {
1298
1301
  e.key === "Escape" && (ue(), le());
1299
1302
  };
@@ -1312,11 +1315,11 @@ const Na = {
1312
1315
  }, null, -1)),
1313
1316
  n("span", kn, W(b(h).appName), 1)
1314
1317
  ]),
1315
- P(b(xt), {
1318
+ R(b(xt), {
1316
1319
  "model-value": g.value,
1317
1320
  mode: "horizontal",
1318
1321
  "background-color": x.value,
1319
- "text-color": S.value,
1322
+ "text-color": M.value,
1320
1323
  "active-text-color": E.value,
1321
1324
  class: "top-menu__menu",
1322
1325
  onSelect: oe
@@ -1332,11 +1335,11 @@ const Na = {
1332
1335
  title: Y(() => [
1333
1336
  n("span", xn, [
1334
1337
  s.menuName !== "首页" ? (y(), N("span", Cn, [
1335
- se(A(s.icon)) ? (y(), me(b(Q), {
1338
+ se(L(s.icon)) ? (y(), me(b(Q), {
1336
1339
  key: 0,
1337
- name: A(s.icon),
1340
+ name: L(s.icon),
1338
1341
  size: 16
1339
- }, null, 8, ["name"])) : (y(), N("span", En, W(X(s.menuName)), 1))
1342
+ }, null, 8, ["name"])) : (y(), N("span", En, W(Z(s.menuName)), 1))
1340
1343
  ])) : ie("", !0),
1341
1344
  n("span", Nn, W(s.menuName), 1)
1342
1345
  ])
@@ -1349,11 +1352,11 @@ const Na = {
1349
1352
  default: Y(() => [
1350
1353
  n("span", $n, [
1351
1354
  n("span", Sn, [
1352
- se(A(i.icon)) ? (y(), me(b(Q), {
1355
+ se(L(i.icon)) ? (y(), me(b(Q), {
1353
1356
  key: 0,
1354
- name: A(i.icon),
1357
+ name: L(i.icon),
1355
1358
  size: 16
1356
- }, null, 8, ["name"])) : (y(), N("span", Mn, W(X(i.menuName)), 1))
1359
+ }, null, 8, ["name"])) : (y(), N("span", Mn, W(Z(i.menuName)), 1))
1357
1360
  ]),
1358
1361
  n("span", In, W(i.menuName), 1)
1359
1362
  ])
@@ -1369,11 +1372,11 @@ const Na = {
1369
1372
  default: Y(() => [
1370
1373
  n("span", Ln, [
1371
1374
  s.menuName !== "首页" ? (y(), N("span", An, [
1372
- se(A(s.icon)) ? (y(), me(b(Q), {
1375
+ se(L(s.icon)) ? (y(), me(b(Q), {
1373
1376
  key: 0,
1374
- name: A(s.icon),
1377
+ name: L(s.icon),
1375
1378
  size: 16
1376
- }, null, 8, ["name"])) : (y(), N("span", Tn, W(X(s.menuName)), 1))
1379
+ }, null, 8, ["name"])) : (y(), N("span", Tn, W(Z(s.menuName)), 1))
1377
1380
  ])) : ie("", !0),
1378
1381
  n("span", On, W(s.menuName), 1)
1379
1382
  ])
@@ -1388,9 +1391,9 @@ const Na = {
1388
1391
  n("div", {
1389
1392
  class: "top-menu__search",
1390
1393
  ref_key: "searchRef",
1391
- ref: J
1394
+ ref: X
1392
1395
  }, [
1393
- P(b(Q), {
1396
+ R(b(Q), {
1394
1397
  name: "search",
1395
1398
  size: 14,
1396
1399
  class: "top-menu__search-icon"
@@ -1400,29 +1403,29 @@ const Na = {
1400
1403
  type: "text",
1401
1404
  class: "top-menu__search-input",
1402
1405
  placeholder: "搜索菜单...",
1403
- onFocus: o[1] || (o[1] = (s) => M.value = !0)
1406
+ onFocus: o[1] || (o[1] = (s) => S.value = !0)
1404
1407
  }, null, 544), [
1405
1408
  [wt, K.value]
1406
1409
  ]),
1407
- P(Ve, { name: "search-dropdown" }, {
1410
+ R(Ve, { name: "search-dropdown" }, {
1408
1411
  default: Y(() => [
1409
- M.value && (_.value.length > 0 || K.value) ? (y(), N("div", Bn, [
1410
- _.value.length > 0 ? (y(), N("div", Dn, [
1412
+ S.value && (_.value.length > 0 || K.value) ? (y(), N("div", Bn, [
1413
+ _.value.length > 0 ? (y(), N("div", Pn, [
1411
1414
  (y(!0), N(ve, null, ye(_.value, (s) => (y(), N("div", {
1412
1415
  key: s.path,
1413
1416
  class: "top-menu__search-item",
1414
1417
  onClick: (i) => Ce(s.path)
1415
1418
  }, [
1416
- s.title !== "首页" ? (y(), N("span", Rn, [
1417
- se(A(s.icon)) ? (y(), me(b(Q), {
1419
+ s.title !== "首页" ? (y(), N("span", Dn, [
1420
+ se(L(s.icon)) ? (y(), me(b(Q), {
1418
1421
  key: 0,
1419
- name: A(s.icon),
1422
+ name: L(s.icon),
1420
1423
  size: 16
1421
- }, null, 8, ["name"])) : (y(), N("span", zn, W(X(s.title)), 1))
1424
+ }, null, 8, ["name"])) : (y(), N("span", zn, W(Z(s.title)), 1))
1422
1425
  ])) : ie("", !0),
1423
1426
  n("span", Fn, W(s.title), 1),
1424
1427
  s.parentTitle ? (y(), N("span", Vn, W(s.parentTitle), 1)) : ie("", !0)
1425
- ], 8, Pn))), 128))
1428
+ ], 8, Rn))), 128))
1426
1429
  ])) : (y(), N("div", jn, " 未找到匹配的菜单 "))
1427
1430
  ])) : ie("", !0)
1428
1431
  ]),
@@ -1434,7 +1437,7 @@ const Na = {
1434
1437
  onClick: re,
1435
1438
  title: O.value ? "退出全屏" : "全屏"
1436
1439
  }, [
1437
- P(b(Q), {
1440
+ R(b(Q), {
1438
1441
  name: O.value ? "fullscreen-exit" : "fullscreen",
1439
1442
  size: 16
1440
1443
  }, null, 8, ["name"])
@@ -1444,7 +1447,7 @@ const Na = {
1444
1447
  onClick: de,
1445
1448
  title: "换肤设置"
1446
1449
  }, [
1447
- P(b(Q), {
1450
+ R(b(Q), {
1448
1451
  name: "skin",
1449
1452
  size: 16
1450
1453
  })
@@ -1454,7 +1457,7 @@ const Na = {
1454
1457
  onClick: $,
1455
1458
  title: "切换主题"
1456
1459
  }, [
1457
- P(b(Q), {
1460
+ R(b(Q), {
1458
1461
  name: b(h).isDark ? "sun" : "moon",
1459
1462
  size: 16
1460
1463
  }, null, 8, ["name"])
@@ -1462,7 +1465,7 @@ const Na = {
1462
1465
  n("div", {
1463
1466
  class: "top-menu__user",
1464
1467
  ref_key: "dropdownRef",
1465
- ref: Z
1468
+ ref: J
1466
1469
  }, [
1467
1470
  n("div", {
1468
1471
  class: "top-menu__user-trigger",
@@ -1476,7 +1479,7 @@ const Na = {
1476
1479
  class: ge(["top-menu__user-arrow", { "is-active": q.value }])
1477
1480
  }, "▼", 2)
1478
1481
  ]),
1479
- P(Ve, { name: "dropdown" }, {
1482
+ R(Ve, { name: "dropdown" }, {
1480
1483
  default: Y(() => {
1481
1484
  var s;
1482
1485
  return [
@@ -1496,7 +1499,7 @@ const Na = {
1496
1499
  class: "top-menu__dropdown-item",
1497
1500
  onClick: Be
1498
1501
  }, [
1499
- P(b(Q), {
1502
+ R(b(Q), {
1500
1503
  name: "user",
1501
1504
  size: 16
1502
1505
  }),
@@ -1506,7 +1509,7 @@ const Na = {
1506
1509
  class: "top-menu__dropdown-item",
1507
1510
  onClick: Me
1508
1511
  }, [
1509
- P(b(Q), {
1512
+ R(b(Q), {
1510
1513
  name: "lock",
1511
1514
  size: 16
1512
1515
  }),
@@ -1517,7 +1520,7 @@ const Na = {
1517
1520
  class: "top-menu__dropdown-item top-menu__dropdown-item--danger",
1518
1521
  onClick: G
1519
1522
  }, [
1520
- P(b(Q), {
1523
+ R(b(Q), {
1521
1524
  name: "logout",
1522
1525
  size: 16
1523
1526
  }),
@@ -1531,9 +1534,9 @@ const Na = {
1531
1534
  })
1532
1535
  ], 512)
1533
1536
  ]),
1534
- P(b(Ct), {
1535
- modelValue: L.value,
1536
- "onUpdate:modelValue": o[2] || (o[2] = (s) => L.value = s),
1537
+ R(b(Ct), {
1538
+ modelValue: A.value,
1539
+ "onUpdate:modelValue": o[2] || (o[2] = (s) => A.value = s),
1537
1540
  title: "换肤设置",
1538
1541
  direction: "rtl",
1539
1542
  size: "320px"
@@ -1645,10 +1648,10 @@ const Na = {
1645
1648
  }, Oo = {
1646
1649
  key: 1,
1647
1650
  class: "mix-top-menu__search-empty"
1648
- }, Uo = ["title"], Bo = { class: "mix-top-menu__avatar" }, Do = { class: "mix-top-menu__user-name" }, Po = {
1651
+ }, Uo = ["title"], Bo = { class: "mix-top-menu__avatar" }, Po = { class: "mix-top-menu__user-name" }, Ro = {
1649
1652
  key: 0,
1650
1653
  class: "mix-top-menu__dropdown"
1651
- }, Ro = { class: "mix-top-menu__dropdown-header" }, zo = { class: "mix-top-menu__dropdown-avatar" }, Fo = { class: "mix-top-menu__dropdown-info" }, Vo = { class: "mix-top-menu__dropdown-name" }, jo = { class: "mix-top-menu__dropdown-role" }, qo = { class: "mix-top-menu__dropdown-menu" }, Go = { class: "settings-drawer" }, Ko = { class: "settings-section" }, Ho = { class: "settings-layout-options" }, Wo = ["onClick"], Xo = { class: "layout-option__preview" }, Yo = {
1654
+ }, Do = { class: "mix-top-menu__dropdown-header" }, zo = { class: "mix-top-menu__dropdown-avatar" }, Fo = { class: "mix-top-menu__dropdown-info" }, Vo = { class: "mix-top-menu__dropdown-name" }, jo = { class: "mix-top-menu__dropdown-role" }, qo = { class: "mix-top-menu__dropdown-menu" }, Go = { class: "settings-drawer" }, Ko = { class: "settings-section" }, Ho = { class: "settings-layout-options" }, Wo = ["onClick"], Xo = { class: "layout-option__preview" }, Yo = {
1652
1655
  key: 0,
1653
1656
  class: "layout-preview-sidebar"
1654
1657
  }, Jo = {
@@ -1660,18 +1663,18 @@ const Na = {
1660
1663
  }, Qo = { class: "layout-option__label" }, er = { class: "settings-section" }, tr = { class: "settings-color-options" }, sr = ["title", "onClick"], nr = { class: "settings-section" }, or = { class: "settings-switch-list" }, rr = { class: "settings-switch-item" }, ar = { class: "settings-switch-item" }, ir = /* @__PURE__ */ Ae({
1661
1664
  __name: "MixTopMenu",
1662
1665
  setup(r) {
1663
- const f = qe(), v = De(), p = ze(), h = Pe(), k = $e(), T = Ye(), g = D(""), I = (s, i = "") => {
1666
+ const f = qe(), v = Pe(), p = ze(), h = Re(), k = $e(), T = Ye(), g = P(""), I = (s, i = "") => {
1664
1667
  const u = [];
1665
1668
  return s.forEach((a) => {
1666
1669
  a.children && a.children.length > 0 ? u.push(...I(a.children, a.menuName)) : u.push({ ...a, parentTitle: i, title: a.menuName, path: a.menuUrl });
1667
1670
  }), u;
1668
- }, _ = j(() => A.value.trim() ? I(p.menuList).filter(
1669
- (i) => i.title.toLowerCase().includes(A.value.toLowerCase())
1671
+ }, _ = j(() => L.value.trim() ? I(p.menuList).filter(
1672
+ (i) => i.title.toLowerCase().includes(L.value.toLowerCase())
1670
1673
  ) : []), x = j(() => {
1671
1674
  const s = p.menuList.find((i) => i.menuUrl === g.value);
1672
1675
  return (s == null ? void 0 : s.children) || [];
1673
- }), S = j(() => p.menuList.find((s) => !!(f.path === s.menuUrl || s.children && s.children.some((i) => f.path.startsWith(i.menuUrl) || f.path === i.menuUrl)))), E = () => {
1674
- S.value ? g.value = S.value.menuUrl : p.menuList.length > 0 && (g.value = p.menuList[0].menuUrl);
1676
+ }), M = j(() => p.menuList.find((s) => !!(f.path === s.menuUrl || s.children && s.children.some((i) => f.path.startsWith(i.menuUrl) || f.path === i.menuUrl)))), E = () => {
1677
+ M.value ? g.value = M.value.menuUrl : p.menuList.length > 0 && (g.value = p.menuList[0].menuUrl);
1675
1678
  }, q = (s) => {
1676
1679
  g.value = s;
1677
1680
  const i = p.menuList.find((u) => u.menuUrl === s);
@@ -1681,7 +1684,7 @@ const Na = {
1681
1684
  f.path !== u && v.push(u);
1682
1685
  } else
1683
1686
  f.path !== s && v.push(s);
1684
- }, Z = j(() => h.isDark ? "#1d1e1f" : "#fff"), O = j(() => h.isDark ? "#cfd3dc" : "#303133"), L = j(() => "#409eff"), V = D(!1), M = D(null), K = D(!1), J = D(!1), oe = D(!1), U = D(!1), A = D(""), X = D(null);
1687
+ }, J = j(() => h.isDark ? "#1d1e1f" : "#fff"), O = j(() => h.isDark ? "#cfd3dc" : "#303133"), A = j(() => "#409eff"), V = P(!1), S = P(null), K = P(!1), X = P(!1), oe = P(!1), U = P(!1), L = P(""), Z = P(null);
1685
1688
  We(() => f.path, () => {
1686
1689
  E(), h.setMixSubMenus(x.value);
1687
1690
  }), We(() => p.menuList, (s) => {
@@ -1827,7 +1830,7 @@ const Na = {
1827
1830
  grid: "grid"
1828
1831
  }[s] || s;
1829
1832
  }, re = (s) => s ? s.charAt(0) : "", ee = (s) => se.has(s), z = () => {
1830
- h.toggleTheme(), J.value = !1;
1833
+ h.toggleTheme(), X.value = !1;
1831
1834
  }, le = () => {
1832
1835
  document.fullscreenElement ? document.exitFullscreen() : document.documentElement.requestFullscreen();
1833
1836
  }, ue = () => {
@@ -1837,25 +1840,25 @@ const Na = {
1837
1840
  }, de = () => {
1838
1841
  V.value = !1;
1839
1842
  }, be = () => {
1840
- U.value = !1, A.value = "";
1843
+ U.value = !1, L.value = "";
1841
1844
  }, ke = (s) => {
1842
1845
  v.push(s), be();
1843
1846
  }, _e = () => {
1844
- J.value = !0;
1847
+ X.value = !0;
1845
1848
  }, Te = (s) => {
1846
1849
  oe.value = s;
1847
1850
  const i = document.documentElement;
1848
1851
  s ? i.classList.add("grey-mode") : i.classList.remove("grey-mode");
1849
1852
  }, Ee = () => {
1850
- Te(!oe.value), J.value = !1;
1853
+ Te(!oe.value), X.value = !1;
1851
1854
  }, Oe = () => {
1852
- h.toggleTheme(), J.value = !1;
1855
+ h.toggleTheme(), X.value = !1;
1853
1856
  }, C = [
1854
1857
  { value: "sidebar", label: "左侧菜单", icon: "sidebar-left" },
1855
1858
  { value: "top", label: "顶部菜单", icon: "menu" },
1856
1859
  { value: "mix", label: "混合菜单", icon: "grid" }
1857
1860
  ], Ue = j(() => h.layout), Be = (s) => {
1858
- h.setLayout(s), J.value = !1;
1861
+ h.setLayout(s), X.value = !1;
1859
1862
  }, Me = [
1860
1863
  { value: "#409eff", label: "默认蓝" },
1861
1864
  { value: "#1890ff", label: "科技蓝" },
@@ -1864,7 +1867,7 @@ const Na = {
1864
1867
  { value: "#f5222d", label: "薄暮红" },
1865
1868
  { value: "#722ed1", label: "酱紫" }
1866
1869
  ], G = (s) => {
1867
- h.setPrimaryColor(s), J.value = !1;
1870
+ h.setPrimaryColor(s), X.value = !1;
1868
1871
  }, B = () => {
1869
1872
  de(), v.push("/profile");
1870
1873
  }, t = () => {
@@ -1872,7 +1875,7 @@ const Na = {
1872
1875
  }, e = () => {
1873
1876
  de(), T.logout(), k.clearUserInfo(), p.clearMenu(), v.push("/login");
1874
1877
  }, o = (s) => {
1875
- M.value && !M.value.contains(s.target) && de(), X.value && !X.value.contains(s.target) && be();
1878
+ S.value && !S.value.contains(s.target) && de(), Z.value && !Z.value.contains(s.target) && be();
1876
1879
  }, c = (s) => {
1877
1880
  s.key === "Escape" && (be(), de());
1878
1881
  };
@@ -1891,12 +1894,12 @@ const Na = {
1891
1894
  }, null, -1)),
1892
1895
  n("span", bo, W(b(h).appName), 1)
1893
1896
  ]),
1894
- P(b(xt), {
1897
+ R(b(xt), {
1895
1898
  "model-value": g.value,
1896
1899
  mode: "horizontal",
1897
- "background-color": Z.value,
1900
+ "background-color": J.value,
1898
1901
  "text-color": O.value,
1899
- "active-text-color": L.value,
1902
+ "active-text-color": A.value,
1900
1903
  class: "mix-top-menu__menu",
1901
1904
  onSelect: q
1902
1905
  }, {
@@ -1926,25 +1929,25 @@ const Na = {
1926
1929
  n("div", {
1927
1930
  class: "mix-top-menu__search",
1928
1931
  ref_key: "searchRef",
1929
- ref: X
1932
+ ref: Z
1930
1933
  }, [
1931
- P(b(Q), {
1934
+ R(b(Q), {
1932
1935
  name: "search",
1933
1936
  size: 14,
1934
1937
  class: "mix-top-menu__search-icon"
1935
1938
  }),
1936
1939
  at(n("input", {
1937
- "onUpdate:modelValue": i[0] || (i[0] = (a) => A.value = a),
1940
+ "onUpdate:modelValue": i[0] || (i[0] = (a) => L.value = a),
1938
1941
  type: "text",
1939
1942
  class: "mix-top-menu__search-input",
1940
1943
  placeholder: "搜索菜单...",
1941
1944
  onFocus: i[1] || (i[1] = (a) => U.value = !0)
1942
1945
  }, null, 544), [
1943
- [wt, A.value]
1946
+ [wt, L.value]
1944
1947
  ]),
1945
- P(Ve, { name: "search-dropdown" }, {
1948
+ R(Ve, { name: "search-dropdown" }, {
1946
1949
  default: Y(() => [
1947
- U.value && (_.value.length > 0 || A.value) ? (y(), N("div", $o, [
1950
+ U.value && (_.value.length > 0 || L.value) ? (y(), N("div", $o, [
1948
1951
  _.value.length > 0 ? (y(), N("div", So, [
1949
1952
  (y(!0), N(ve, null, ye(_.value, (a) => (y(), N("div", {
1950
1953
  key: a.path,
@@ -1972,7 +1975,7 @@ const Na = {
1972
1975
  onClick: le,
1973
1976
  title: K.value ? "退出全屏" : "全屏"
1974
1977
  }, [
1975
- P(b(Q), {
1978
+ R(b(Q), {
1976
1979
  name: K.value ? "fullscreen-exit" : "fullscreen",
1977
1980
  size: 16
1978
1981
  }, null, 8, ["name"])
@@ -1982,7 +1985,7 @@ const Na = {
1982
1985
  onClick: _e,
1983
1986
  title: "换肤设置"
1984
1987
  }, [
1985
- P(b(Q), {
1988
+ R(b(Q), {
1986
1989
  name: "skin",
1987
1990
  size: 16
1988
1991
  })
@@ -1992,7 +1995,7 @@ const Na = {
1992
1995
  onClick: z,
1993
1996
  title: "切换主题"
1994
1997
  }, [
1995
- P(b(Q), {
1998
+ R(b(Q), {
1996
1999
  name: b(h).isDark ? "sun" : "moon",
1997
2000
  size: 16
1998
2001
  }, null, 8, ["name"])
@@ -2000,7 +2003,7 @@ const Na = {
2000
2003
  n("div", {
2001
2004
  class: "mix-top-menu__user",
2002
2005
  ref_key: "dropdownRef",
2003
- ref: M
2006
+ ref: S
2004
2007
  }, [
2005
2008
  n("div", {
2006
2009
  class: "mix-top-menu__user-trigger",
@@ -2009,17 +2012,17 @@ const Na = {
2009
2012
  n("div", Bo, [
2010
2013
  n("span", null, W(((u = b(k).userName) == null ? void 0 : u.charAt(0)) || "U"), 1)
2011
2014
  ]),
2012
- n("span", Do, W(b(k).userName), 1),
2015
+ n("span", Po, W(b(k).userName), 1),
2013
2016
  n("span", {
2014
2017
  class: ge(["mix-top-menu__user-arrow", { "is-active": V.value }])
2015
2018
  }, "▼", 2)
2016
2019
  ]),
2017
- P(Ve, { name: "dropdown" }, {
2020
+ R(Ve, { name: "dropdown" }, {
2018
2021
  default: Y(() => {
2019
2022
  var a;
2020
2023
  return [
2021
- V.value ? (y(), N("div", Po, [
2022
- n("div", Ro, [
2024
+ V.value ? (y(), N("div", Ro, [
2025
+ n("div", Do, [
2023
2026
  n("div", zo, [
2024
2027
  n("span", null, W(((a = b(k).userName) == null ? void 0 : a.charAt(0)) || "U"), 1)
2025
2028
  ]),
@@ -2034,7 +2037,7 @@ const Na = {
2034
2037
  class: "mix-top-menu__dropdown-item",
2035
2038
  onClick: B
2036
2039
  }, [
2037
- P(b(Q), {
2040
+ R(b(Q), {
2038
2041
  name: "user",
2039
2042
  size: 16
2040
2043
  }),
@@ -2044,7 +2047,7 @@ const Na = {
2044
2047
  class: "mix-top-menu__dropdown-item",
2045
2048
  onClick: t
2046
2049
  }, [
2047
- P(b(Q), {
2050
+ R(b(Q), {
2048
2051
  name: "lock",
2049
2052
  size: 16
2050
2053
  }),
@@ -2055,7 +2058,7 @@ const Na = {
2055
2058
  class: "mix-top-menu__dropdown-item mix-top-menu__dropdown-item--danger",
2056
2059
  onClick: e
2057
2060
  }, [
2058
- P(b(Q), {
2061
+ R(b(Q), {
2059
2062
  name: "logout",
2060
2063
  size: 16
2061
2064
  }),
@@ -2069,9 +2072,9 @@ const Na = {
2069
2072
  })
2070
2073
  ], 512)
2071
2074
  ]),
2072
- P(b(Ct), {
2073
- modelValue: J.value,
2074
- "onUpdate:modelValue": i[2] || (i[2] = (a) => J.value = a),
2075
+ R(b(Ct), {
2076
+ modelValue: X.value,
2077
+ "onUpdate:modelValue": i[2] || (i[2] = (a) => X.value = a),
2075
2078
  title: "换肤设置",
2076
2079
  direction: "rtl",
2077
2080
  size: "320px"
@@ -2171,7 +2174,7 @@ const Na = {
2171
2174
  }, _r = { class: "layout__mix-top-menu" }, wr = { class: "layout__mix-body" }, yr = { class: "layout__content" }, br = /* @__PURE__ */ Ae({
2172
2175
  __name: "index",
2173
2176
  setup(r) {
2174
- const f = Pe(), v = ze(), p = j(
2177
+ const f = Re(), v = ze(), p = j(
2175
2178
  () => f.isCollapsed ? "64px" : "210px"
2176
2179
  ), h = j(() => f.layout), k = j(() => h.value === "mix"), T = j(() => h.value === "sidebar" ? v.menuList : h.value === "mix" ? f.mixSubMenus : []), g = j(() => k.value ? T.value.length > 0 : !1);
2177
2180
  return (I, _) => {
@@ -2182,7 +2185,7 @@ const Na = {
2182
2185
  class: "layout__aside",
2183
2186
  style: Xe({ width: p.value })
2184
2187
  }, [
2185
- P(Ot, {
2188
+ R(Ot, {
2186
2189
  "menu-list": T.value,
2187
2190
  "show-logo": !0,
2188
2191
  "show-user": !0
@@ -2190,26 +2193,26 @@ const Na = {
2190
2193
  ], 4),
2191
2194
  n("div", ur, [
2192
2195
  n("header", dr, [
2193
- P(wn)
2196
+ R(wn)
2194
2197
  ]),
2195
2198
  n("main", fr, [
2196
- P(x)
2199
+ R(x)
2197
2200
  ])
2198
2201
  ])
2199
2202
  ])) : ie("", !0),
2200
2203
  h.value === "top" ? (y(), N("div", pr, [
2201
2204
  n("div", mr, [
2202
- P(_o)
2205
+ R(_o)
2203
2206
  ]),
2204
2207
  n("div", hr, [
2205
2208
  n("main", vr, [
2206
- P(x)
2209
+ R(x)
2207
2210
  ])
2208
2211
  ])
2209
2212
  ])) : ie("", !0),
2210
2213
  h.value === "mix" ? (y(), N("div", gr, [
2211
2214
  n("div", _r, [
2212
- P(lr)
2215
+ R(lr)
2213
2216
  ]),
2214
2217
  n("div", wr, [
2215
2218
  g.value ? (y(), N("aside", {
@@ -2217,14 +2220,14 @@ const Na = {
2217
2220
  class: "layout__aside",
2218
2221
  style: Xe({ width: p.value })
2219
2222
  }, [
2220
- P(Ot, {
2223
+ R(Ot, {
2221
2224
  "menu-list": T.value,
2222
2225
  "show-logo": !1,
2223
2226
  "show-user": !1
2224
2227
  }, null, 8, ["menu-list"])
2225
2228
  ], 4)) : ie("", !0),
2226
2229
  n("main", yr, [
2227
- P(x)
2230
+ R(x)
2228
2231
  ])
2229
2232
  ])
2230
2233
  ])) : ie("", !0)
@@ -2237,7 +2240,7 @@ const Na = {
2237
2240
  }, Symbol.toStringTag, { value: "Module" })), xr = { class: "tabs-wrapper" }, Cr = { class: "tab-label" }, Er = ["onClick"], Nr = /* @__PURE__ */ Ae({
2238
2241
  __name: "Tabs",
2239
2242
  setup(r) {
2240
- const f = qe(), v = De(), p = j(() => {
2243
+ const f = qe(), v = Pe(), p = j(() => {
2241
2244
  const g = [];
2242
2245
  return f.matched.forEach((I) => {
2243
2246
  var _;
@@ -2253,12 +2256,12 @@ const Na = {
2253
2256
  }, T = (g) => {
2254
2257
  const I = p.value.find((_) => _.path === g);
2255
2258
  if (!(I != null && I.affix) && g === h.value) {
2256
- const _ = p.value.findIndex((S) => S.path === g), x = p.value[_ - 1] || p.value[_ + 1];
2259
+ const _ = p.value.findIndex((M) => M.path === g), x = p.value[_ - 1] || p.value[_ + 1];
2257
2260
  x && v.push(x.path);
2258
2261
  }
2259
2262
  };
2260
2263
  return (g, I) => (y(), N("div", xr, [
2261
- P(b(Qt), {
2264
+ R(b(Qt), {
2262
2265
  modelValue: h.value,
2263
2266
  "onUpdate:modelValue": I[0] || (I[0] = (_) => h.value = _),
2264
2267
  type: "card",
@@ -2273,7 +2276,7 @@ const Na = {
2273
2276
  }, {
2274
2277
  label: Y(() => [
2275
2278
  n("span", Cr, [
2276
- Re(W(_.title) + " ", 1),
2279
+ De(W(_.title) + " ", 1),
2277
2280
  _.affix ? ie("", !0) : (y(), N("span", {
2278
2281
  key: 0,
2279
2282
  class: "tab-close",
@@ -2302,9 +2305,9 @@ function Lr(r) {
2302
2305
  var dt = { exports: {} }, Vt = { exports: {} }, jt = { exports: {} };
2303
2306
  (function(r) {
2304
2307
  (function(f) {
2305
- var v, p = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, h = Math.ceil, k = Math.floor, T = "[BigNumber Error] ", g = T + "Number primitive has more than 15 significant digits: ", I = 1e14, _ = 14, x = 9007199254740991, S = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], E = 1e7, q = 1e9;
2306
- function Z(U) {
2307
- var A, X, se, $ = C.prototype = { constructor: C, toString: null, valueOf: null }, re = new C(1), ee = 20, z = 4, le = -7, ue = 21, Ce = -1e7, de = 1e7, be = !1, ke = 1, _e = 0, Te = {
2308
+ var v, p = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, h = Math.ceil, k = Math.floor, T = "[BigNumber Error] ", g = T + "Number primitive has more than 15 significant digits: ", I = 1e14, _ = 14, x = 9007199254740991, M = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], E = 1e7, q = 1e9;
2309
+ function J(U) {
2310
+ var L, Z, se, $ = C.prototype = { constructor: C, toString: null, valueOf: null }, re = new C(1), ee = 20, z = 4, le = -7, ue = 21, Ce = -1e7, de = 1e7, be = !1, ke = 1, _e = 0, Te = {
2308
2311
  prefix: "",
2309
2312
  groupSize: 3,
2310
2313
  secondaryGroupSize: 0,
@@ -2336,7 +2339,7 @@ var dt = { exports: {} }, Vt = { exports: {} }, jt = { exports: {} };
2336
2339
  }
2337
2340
  (i = m.indexOf(".")) > -1 && (m = m.replace(".", "")), (u = m.search(/e/i)) > 0 ? (i < 0 && (i = u), i += +m.slice(u + 1), m = m.substring(0, u)) : i < 0 && (i = m.length);
2338
2341
  } else {
2339
- if (M(e, 2, Ee.length, "Base"), e == 10 && Oe)
2342
+ if (S(e, 2, Ee.length, "Base"), e == 10 && Oe)
2340
2343
  return d = new C(t), G(d, ee + d.e + 1, z);
2341
2344
  if (m = String(t), a = typeof t == "number") {
2342
2345
  if (t * 0 != 0) return se(d, m, a, e);
@@ -2357,7 +2360,7 @@ var dt = { exports: {} }, Vt = { exports: {} }, jt = { exports: {} };
2357
2360
  }
2358
2361
  return se(d, String(t), a, e);
2359
2362
  }
2360
- a = !1, m = X(m, e, 10, d.s), (i = m.indexOf(".")) > -1 ? m = m.replace(".", "") : i = m.length;
2363
+ a = !1, m = Z(m, e, 10, d.s), (i = m.indexOf(".")) > -1 ? m = m.replace(".", "") : i = m.length;
2361
2364
  }
2362
2365
  for (u = 0; m.charCodeAt(u) === 48; u++) ;
2363
2366
  for (l = m.length; m.charCodeAt(--l) === 48; ) ;
@@ -2381,14 +2384,14 @@ var dt = { exports: {} }, Vt = { exports: {} }, jt = { exports: {} };
2381
2384
  } else
2382
2385
  d.c = [d.e = 0];
2383
2386
  }
2384
- C.clone = Z, C.ROUND_UP = 0, C.ROUND_DOWN = 1, C.ROUND_CEIL = 2, C.ROUND_FLOOR = 3, C.ROUND_HALF_UP = 4, C.ROUND_HALF_DOWN = 5, C.ROUND_HALF_EVEN = 6, C.ROUND_HALF_CEIL = 7, C.ROUND_HALF_FLOOR = 8, C.EUCLID = 9, C.config = C.set = function(t) {
2387
+ C.clone = J, C.ROUND_UP = 0, C.ROUND_DOWN = 1, C.ROUND_CEIL = 2, C.ROUND_FLOOR = 3, C.ROUND_HALF_UP = 4, C.ROUND_HALF_DOWN = 5, C.ROUND_HALF_EVEN = 6, C.ROUND_HALF_CEIL = 7, C.ROUND_HALF_FLOOR = 8, C.EUCLID = 9, C.config = C.set = function(t) {
2385
2388
  var e, o;
2386
2389
  if (t != null)
2387
2390
  if (typeof t == "object") {
2388
- if (t.hasOwnProperty(e = "DECIMAL_PLACES") && (o = t[e], M(o, 0, q, e), ee = o), t.hasOwnProperty(e = "ROUNDING_MODE") && (o = t[e], M(o, 0, 8, e), z = o), t.hasOwnProperty(e = "EXPONENTIAL_AT") && (o = t[e], o && o.pop ? (M(o[0], -q, 0, e), M(o[1], 0, q, e), le = o[0], ue = o[1]) : (M(o, -q, q, e), le = -(ue = o < 0 ? -o : o))), t.hasOwnProperty(e = "RANGE"))
2391
+ if (t.hasOwnProperty(e = "DECIMAL_PLACES") && (o = t[e], S(o, 0, q, e), ee = o), t.hasOwnProperty(e = "ROUNDING_MODE") && (o = t[e], S(o, 0, 8, e), z = o), t.hasOwnProperty(e = "EXPONENTIAL_AT") && (o = t[e], o && o.pop ? (S(o[0], -q, 0, e), S(o[1], 0, q, e), le = o[0], ue = o[1]) : (S(o, -q, q, e), le = -(ue = o < 0 ? -o : o))), t.hasOwnProperty(e = "RANGE"))
2389
2392
  if (o = t[e], o && o.pop)
2390
- M(o[0], -q, -1, e), M(o[1], 1, q, e), Ce = o[0], de = o[1];
2391
- else if (M(o, -q, q, e), o)
2393
+ S(o[0], -q, -1, e), S(o[1], 1, q, e), Ce = o[0], de = o[1];
2394
+ else if (S(o, -q, q, e), o)
2392
2395
  Ce = -(de = o < 0 ? -o : o);
2393
2396
  else
2394
2397
  throw Error(T + e + " cannot be zero: " + o);
@@ -2403,7 +2406,7 @@ var dt = { exports: {} }, Vt = { exports: {} }, jt = { exports: {} };
2403
2406
  be = o;
2404
2407
  else
2405
2408
  throw Error(T + e + " not true or false: " + o);
2406
- if (t.hasOwnProperty(e = "MODULO_MODE") && (o = t[e], M(o, 0, 9, e), ke = o), t.hasOwnProperty(e = "POW_PRECISION") && (o = t[e], M(o, 0, q, e), _e = o), t.hasOwnProperty(e = "FORMAT"))
2409
+ if (t.hasOwnProperty(e = "MODULO_MODE") && (o = t[e], S(o, 0, 9, e), ke = o), t.hasOwnProperty(e = "POW_PRECISION") && (o = t[e], S(o, 0, q, e), _e = o), t.hasOwnProperty(e = "FORMAT"))
2407
2410
  if (o = t[e], typeof o == "object") Te = o;
2408
2411
  else throw Error(T + e + " not an object: " + o);
2409
2412
  if (t.hasOwnProperty(e = "ALPHABET"))
@@ -2455,7 +2458,7 @@ var dt = { exports: {} }, Vt = { exports: {} }, jt = { exports: {} };
2455
2458
  };
2456
2459
  return function(o) {
2457
2460
  var c, s, i, u, a, l = 0, m = [], d = new C(re);
2458
- if (o == null ? o = ee : M(o, 0, q), u = h(o / _), be)
2461
+ if (o == null ? o = ee : S(o, 0, q), u = h(o / _), be)
2459
2462
  if (crypto.getRandomValues) {
2460
2463
  for (c = crypto.getRandomValues(new Uint32Array(u *= 2)); l < u; )
2461
2464
  a = c[l] * 131072 + (c[l + 1] >>> 11), a >= 9e15 ? (s = crypto.getRandomValues(new Uint32Array(2)), c[l] = s[0], c[l + 1] = s[1]) : (m.push(a % 1e14), l += 2);
@@ -2469,7 +2472,7 @@ var dt = { exports: {} }, Vt = { exports: {} }, jt = { exports: {} };
2469
2472
  if (!be)
2470
2473
  for (; l < u; )
2471
2474
  a = e(), a < 9e15 && (m[l++] = a % 1e14);
2472
- for (u = m[--l], o %= _, u && o && (a = S[_ - o], m[l] = k(u / a) * a); m[l] === 0; m.pop(), l--) ;
2475
+ for (u = m[--l], o %= _, u && o && (a = M[_ - o], m[l] = k(u / a) * a); m[l] === 0; m.pop(), l--) ;
2473
2476
  if (l < 0)
2474
2477
  m = [i = 0];
2475
2478
  else {
@@ -2482,7 +2485,7 @@ var dt = { exports: {} }, Vt = { exports: {} }, jt = { exports: {} };
2482
2485
  }(), C.sum = function() {
2483
2486
  for (var t = 1, e = arguments, o = new C(e[0]); t < e.length; ) o = o.plus(e[t++]);
2484
2487
  return o;
2485
- }, X = /* @__PURE__ */ function() {
2488
+ }, Z = /* @__PURE__ */ function() {
2486
2489
  var t = "0123456789";
2487
2490
  function e(o, c, s, i) {
2488
2491
  for (var u, a = [0], l, m = 0, d = o.length; m < d; ) {
@@ -2493,15 +2496,15 @@ var dt = { exports: {} }, Vt = { exports: {} }, jt = { exports: {} };
2493
2496
  return a.reverse();
2494
2497
  }
2495
2498
  return function(o, c, s, i, u) {
2496
- var a, l, m, d, w, R, F, ne, fe = o.indexOf("."), he = ee, te = z;
2497
- for (fe >= 0 && (d = _e, _e = 0, o = o.replace(".", ""), ne = new C(c), R = ne.pow(o.length - fe), _e = d, ne.c = e(
2498
- oe(L(R.c), R.e, "0"),
2499
+ var a, l, m, d, w, D, F, ne, fe = o.indexOf("."), he = ee, te = z;
2500
+ for (fe >= 0 && (d = _e, _e = 0, o = o.replace(".", ""), ne = new C(c), D = ne.pow(o.length - fe), _e = d, ne.c = e(
2501
+ oe(A(D.c), D.e, "0"),
2499
2502
  10,
2500
2503
  s,
2501
2504
  t
2502
2505
  ), ne.e = ne.c.length), F = e(o, c, s, u ? (a = Ee, t) : (a = t, Ee)), m = d = F.length; F[--d] == 0; F.pop()) ;
2503
2506
  if (!F[0]) return a.charAt(0);
2504
- if (fe < 0 ? --m : (R.c = F, R.e = m, R.s = i, R = A(R, ne, he, te, s), F = R.c, w = R.r, m = R.e), l = m + he + 1, fe = F[l], d = s / 2, w = w || l < 0 || F[l + 1] != null, w = te < 4 ? (fe != null || w) && (te == 0 || te == (R.s < 0 ? 3 : 2)) : fe > d || fe == d && (te == 4 || w || te == 6 && F[l - 1] & 1 || te == (R.s < 0 ? 8 : 7)), l < 1 || !F[0])
2507
+ if (fe < 0 ? --m : (D.c = F, D.e = m, D.s = i, D = L(D, ne, he, te, s), F = D.c, w = D.r, m = D.e), l = m + he + 1, fe = F[l], d = s / 2, w = w || l < 0 || F[l + 1] != null, w = te < 4 ? (fe != null || w) && (te == 0 || te == (D.s < 0 ? 3 : 2)) : fe > d || fe == d && (te == 4 || w || te == 6 && F[l - 1] & 1 || te == (D.s < 0 ? 8 : 7)), l < 1 || !F[0])
2505
2508
  o = w ? oe(a.charAt(1), -he, a.charAt(0)) : a.charAt(0);
2506
2509
  else {
2507
2510
  if (F.length = l, w)
@@ -2513,11 +2516,11 @@ var dt = { exports: {} }, Vt = { exports: {} }, jt = { exports: {} };
2513
2516
  }
2514
2517
  return o;
2515
2518
  };
2516
- }(), A = /* @__PURE__ */ function() {
2519
+ }(), L = /* @__PURE__ */ function() {
2517
2520
  function t(c, s, i) {
2518
- var u, a, l, m, d = 0, w = c.length, R = s % E, F = s / E | 0;
2521
+ var u, a, l, m, d = 0, w = c.length, D = s % E, F = s / E | 0;
2519
2522
  for (c = c.slice(); w--; )
2520
- l = c[w] % E, m = c[w] / E | 0, u = F * l + m * R, a = R * l + u % E * E + d, d = (a / i | 0) + (u / E | 0) + F * m, c[w] = a % i;
2523
+ l = c[w] % E, m = c[w] / E | 0, u = F * l + m * D, a = D * l + u % E * E + d, d = (a / i | 0) + (u / E | 0) + F * m, c[w] = a % i;
2521
2524
  return d && (c = [d].concat(c)), c;
2522
2525
  }
2523
2526
  function e(c, s, i, u) {
@@ -2538,7 +2541,7 @@ var dt = { exports: {} }, Vt = { exports: {} }, jt = { exports: {} };
2538
2541
  for (; !c[0] && c.length > 1; c.splice(0, 1)) ;
2539
2542
  }
2540
2543
  return function(c, s, i, u, a) {
2541
- var l, m, d, w, R, F, ne, fe, he, te, ae, we, Je, ft, pt, Ie, Ge, Ne = c.s == s.s ? 1 : -1, xe = c.c, pe = s.c;
2544
+ var l, m, d, w, D, F, ne, fe, he, te, ae, we, Je, ft, pt, Ie, Ge, Ne = c.s == s.s ? 1 : -1, xe = c.c, pe = s.c;
2542
2545
  if (!xe || !xe[0] || !pe || !pe[0])
2543
2546
  return new C(
2544
2547
  // Return NaN if either NaN, or both Infinity or 0.
@@ -2551,20 +2554,20 @@ var dt = { exports: {} }, Vt = { exports: {} }, jt = { exports: {} };
2551
2554
  if (pe[d] > (xe[d] || 0) && m--, Ne < 0)
2552
2555
  he.push(1), w = !0;
2553
2556
  else {
2554
- for (ft = xe.length, Ie = pe.length, d = 0, Ne += 2, R = k(a / (pe[0] + 1)), R > 1 && (pe = t(pe, R, a), xe = t(xe, R, a), Ie = pe.length, ft = xe.length), Je = Ie, te = xe.slice(0, Ie), ae = te.length; ae < Ie; te[ae++] = 0) ;
2557
+ for (ft = xe.length, Ie = pe.length, d = 0, Ne += 2, D = k(a / (pe[0] + 1)), D > 1 && (pe = t(pe, D, a), xe = t(xe, D, a), Ie = pe.length, ft = xe.length), Je = Ie, te = xe.slice(0, Ie), ae = te.length; ae < Ie; te[ae++] = 0) ;
2555
2558
  Ge = pe.slice(), Ge = [0].concat(Ge), pt = pe[0], pe[1] >= a / 2 && pt++;
2556
2559
  do {
2557
- if (R = 0, l = e(pe, te, Ie, ae), l < 0) {
2558
- if (we = te[0], Ie != ae && (we = we * a + (te[1] || 0)), R = k(we / pt), R > 1)
2559
- for (R >= a && (R = a - 1), F = t(pe, R, a), ne = F.length, ae = te.length; e(F, te, ne, ae) == 1; )
2560
- R--, o(F, Ie < ne ? Ge : pe, ne, a), ne = F.length, l = 1;
2560
+ if (D = 0, l = e(pe, te, Ie, ae), l < 0) {
2561
+ if (we = te[0], Ie != ae && (we = we * a + (te[1] || 0)), D = k(we / pt), D > 1)
2562
+ for (D >= a && (D = a - 1), F = t(pe, D, a), ne = F.length, ae = te.length; e(F, te, ne, ae) == 1; )
2563
+ D--, o(F, Ie < ne ? Ge : pe, ne, a), ne = F.length, l = 1;
2561
2564
  else
2562
- R == 0 && (l = R = 1), F = pe.slice(), ne = F.length;
2565
+ D == 0 && (l = D = 1), F = pe.slice(), ne = F.length;
2563
2566
  if (ne < ae && (F = [0].concat(F)), o(te, F, ae, a), ae = te.length, l == -1)
2564
2567
  for (; e(pe, te, Ie, ae) < 1; )
2565
- R++, o(te, Ie < ae ? Ge : pe, ae, a), ae = te.length;
2566
- } else l === 0 && (R++, te = [0]);
2567
- he[d++] = R, te[0] ? te[ae++] = xe[Je] || 0 : (te = [xe[Je]], ae = 1);
2568
+ D++, o(te, Ie < ae ? Ge : pe, ae, a), ae = te.length;
2569
+ } else l === 0 && (D++, te = [0]);
2570
+ he[d++] = D, te[0] ? te[ae++] = xe[Je] || 0 : (te = [xe[Je]], ae = 1);
2568
2571
  } while ((Je++ < ft || te[0] != null) && Ne--);
2569
2572
  w = te[0] != null, he[0] || he.splice(0, 1);
2570
2573
  }
@@ -2578,12 +2581,12 @@ var dt = { exports: {} }, Vt = { exports: {} }, jt = { exports: {} };
2578
2581
  }();
2579
2582
  function Ue(t, e, o, c) {
2580
2583
  var s, i, u, a, l;
2581
- if (o == null ? o = z : M(o, 0, 8), !t.c) return t.toString();
2584
+ if (o == null ? o = z : S(o, 0, 8), !t.c) return t.toString();
2582
2585
  if (s = t.c[0], u = t.e, e == null)
2583
- l = L(t.c), l = c == 1 || c == 2 && (u <= le || u >= ue) ? J(l, u) : oe(l, u, "0");
2584
- else if (t = G(new C(t), e, o), i = t.e, l = L(t.c), a = l.length, c == 1 || c == 2 && (e <= i || i <= le)) {
2586
+ l = A(t.c), l = c == 1 || c == 2 && (u <= le || u >= ue) ? X(l, u) : oe(l, u, "0");
2587
+ else if (t = G(new C(t), e, o), i = t.e, l = A(t.c), a = l.length, c == 1 || c == 2 && (e <= i || i <= le)) {
2585
2588
  for (; a < e; l += "0", a++) ;
2586
- l = J(l, i);
2589
+ l = X(l, i);
2587
2590
  } else if (e -= u + (c === 2 && i > u), l = oe(l, i, "0"), i + 1 > a) {
2588
2591
  if (--e > 0) for (l += "."; e--; l += "0") ;
2589
2592
  } else if (e += i - a, e > 0)
@@ -2607,8 +2610,8 @@ var dt = { exports: {} }, Vt = { exports: {} }, jt = { exports: {} };
2607
2610
  if (c.test(d))
2608
2611
  i.s = isNaN(d) ? null : d < 0 ? -1 : 1;
2609
2612
  else {
2610
- if (!a && (d = d.replace(t, function(w, R, F) {
2611
- return m = (F = F.toLowerCase()) == "x" ? 16 : F == "b" ? 2 : 8, !l || l == m ? R : w;
2613
+ if (!a && (d = d.replace(t, function(w, D, F) {
2614
+ return m = (F = F.toLowerCase()) == "x" ? 16 : F == "b" ? 2 : 8, !l || l == m ? D : w;
2612
2615
  }), l && (m = l, d = d.replace(e, "$1").replace(o, "0.$1")), u != d))
2613
2616
  return new C(d, m);
2614
2617
  if (C.DEBUG)
@@ -2619,12 +2622,12 @@ var dt = { exports: {} }, Vt = { exports: {} }, jt = { exports: {} };
2619
2622
  };
2620
2623
  }();
2621
2624
  function G(t, e, o, c) {
2622
- var s, i, u, a, l, m, d, w = t.c, R = S;
2625
+ var s, i, u, a, l, m, d, w = t.c, D = M;
2623
2626
  if (w) {
2624
2627
  e: {
2625
2628
  for (s = 1, a = w[0]; a >= 10; a /= 10, s++) ;
2626
2629
  if (i = e - s, i < 0)
2627
- i += _, u = e, l = w[m = 0], d = k(l / R[s - u - 1] % 10);
2630
+ i += _, u = e, l = w[m = 0], d = k(l / D[s - u - 1] % 10);
2628
2631
  else if (m = h((i + 1) / _), m >= w.length)
2629
2632
  if (c) {
2630
2633
  for (; w.length <= m; w.push(0)) ;
@@ -2633,15 +2636,15 @@ var dt = { exports: {} }, Vt = { exports: {} }, jt = { exports: {} };
2633
2636
  break e;
2634
2637
  else {
2635
2638
  for (l = a = w[m], s = 1; a >= 10; a /= 10, s++) ;
2636
- i %= _, u = i - _ + s, d = u < 0 ? 0 : k(l / R[s - u - 1] % 10);
2639
+ i %= _, u = i - _ + s, d = u < 0 ? 0 : k(l / D[s - u - 1] % 10);
2637
2640
  }
2638
2641
  if (c = c || e < 0 || // Are there any non-zero digits after the rounding digit?
2639
2642
  // The expression n % pows10[d - j - 1] returns all digits of n to the right
2640
2643
  // of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.
2641
- w[m + 1] != null || (u < 0 ? l : l % R[s - u - 1]), c = o < 4 ? (d || c) && (o == 0 || o == (t.s < 0 ? 3 : 2)) : d > 5 || d == 5 && (o == 4 || c || o == 6 && // Check whether the digit to the left of the rounding digit is odd.
2642
- (i > 0 ? u > 0 ? l / R[s - u] : 0 : w[m - 1]) % 10 & 1 || o == (t.s < 0 ? 8 : 7)), e < 1 || !w[0])
2643
- return w.length = 0, c ? (e -= t.e + 1, w[0] = R[(_ - e % _) % _], t.e = -e || 0) : w[0] = t.e = 0, t;
2644
- if (i == 0 ? (w.length = m, a = 1, m--) : (w.length = m + 1, a = R[_ - i], w[m] = u > 0 ? k(l / R[s - u] % R[u]) * a : 0), c)
2644
+ w[m + 1] != null || (u < 0 ? l : l % D[s - u - 1]), c = o < 4 ? (d || c) && (o == 0 || o == (t.s < 0 ? 3 : 2)) : d > 5 || d == 5 && (o == 4 || c || o == 6 && // Check whether the digit to the left of the rounding digit is odd.
2645
+ (i > 0 ? u > 0 ? l / D[s - u] : 0 : w[m - 1]) % 10 & 1 || o == (t.s < 0 ? 8 : 7)), e < 1 || !w[0])
2646
+ return w.length = 0, c ? (e -= t.e + 1, w[0] = D[(_ - e % _) % _], t.e = -e || 0) : w[0] = t.e = 0, t;
2647
+ if (i == 0 ? (w.length = m, a = 1, m--) : (w.length = m + 1, a = D[_ - i], w[m] = u > 0 ? k(l / D[s - u] % D[u]) * a : 0), c)
2645
2648
  for (; ; )
2646
2649
  if (m == 0) {
2647
2650
  for (i = 1, u = w[0]; u >= 10; u /= 10, i++) ;
@@ -2660,7 +2663,7 @@ var dt = { exports: {} }, Vt = { exports: {} }, jt = { exports: {} };
2660
2663
  }
2661
2664
  function B(t) {
2662
2665
  var e, o = t.e;
2663
- return o === null ? t.toString() : (e = L(t.c), e = o <= le || o >= ue ? J(e, o) : oe(e, o, "0"), t.s < 0 ? "-" + e : e);
2666
+ return o === null ? t.toString() : (e = A(t.c), e = o <= le || o >= ue ? X(e, o) : oe(e, o, "0"), t.s < 0 ? "-" + e : e);
2664
2667
  }
2665
2668
  return $.absoluteValue = $.abs = function() {
2666
2669
  var t = new C(this);
@@ -2670,14 +2673,14 @@ var dt = { exports: {} }, Vt = { exports: {} }, jt = { exports: {} };
2670
2673
  }, $.decimalPlaces = $.dp = function(t, e) {
2671
2674
  var o, c, s, i = this;
2672
2675
  if (t != null)
2673
- return M(t, 0, q), e == null ? e = z : M(e, 0, 8), G(new C(i), t + i.e + 1, e);
2676
+ return S(t, 0, q), e == null ? e = z : S(e, 0, 8), G(new C(i), t + i.e + 1, e);
2674
2677
  if (!(o = i.c)) return null;
2675
2678
  if (c = ((s = o.length - 1) - O(this.e / _)) * _, s = o[s]) for (; s % 10 == 0; s /= 10, c--) ;
2676
2679
  return c < 0 && (c = 0), c;
2677
2680
  }, $.dividedBy = $.div = function(t, e) {
2678
- return A(this, new C(t, e), ee, z);
2681
+ return L(this, new C(t, e), ee, z);
2679
2682
  }, $.dividedToIntegerBy = $.idiv = function(t, e) {
2680
- return A(this, new C(t, e), 0, 1);
2683
+ return L(this, new C(t, e), 0, 1);
2681
2684
  }, $.exponentiatedBy = $.pow = function(t, e) {
2682
2685
  var o, c, s, i, u, a, l, m, d, w = this;
2683
2686
  if (t = new C(t), t.c && !t.isInteger())
@@ -2711,7 +2714,7 @@ var dt = { exports: {} }, Vt = { exports: {} }, jt = { exports: {} };
2711
2714
  return c ? d : (l && (d = re.div(d)), e ? d.mod(e) : i ? G(d, _e, z, u) : d);
2712
2715
  }, $.integerValue = function(t) {
2713
2716
  var e = new C(this);
2714
- return t == null ? t = z : M(t, 0, 8), G(e, e.e + 1, t);
2717
+ return t == null ? t = z : S(t, 0, 8), G(e, e.e + 1, t);
2715
2718
  }, $.isEqualTo = $.eq = function(t, e) {
2716
2719
  return V(this, new C(t, e)) === 0;
2717
2720
  }, $.isFinite = function() {
@@ -2769,15 +2772,15 @@ var dt = { exports: {} }, Vt = { exports: {} }, jt = { exports: {} };
2769
2772
  return d[0] ? Me(t, d, m) : (t.s = z == 3 ? -1 : 1, t.c = [t.e = 0], t);
2770
2773
  }, $.modulo = $.mod = function(t, e) {
2771
2774
  var o, c, s = this;
2772
- return t = new C(t, e), !s.c || !t.s || t.c && !t.c[0] ? new C(NaN) : !t.c || s.c && !s.c[0] ? new C(s) : (ke == 9 ? (c = t.s, t.s = 1, o = A(s, t, 0, 3), t.s = c, o.s *= c) : o = A(s, t, 0, ke), t = s.minus(o.times(t)), !t.c[0] && ke == 1 && (t.s = s.s), t);
2775
+ return t = new C(t, e), !s.c || !t.s || t.c && !t.c[0] ? new C(NaN) : !t.c || s.c && !s.c[0] ? new C(s) : (ke == 9 ? (c = t.s, t.s = 1, o = L(s, t, 0, 3), t.s = c, o.s *= c) : o = L(s, t, 0, ke), t = s.minus(o.times(t)), !t.c[0] && ke == 1 && (t.s = s.s), t);
2773
2776
  }, $.multipliedBy = $.times = function(t, e) {
2774
- var o, c, s, i, u, a, l, m, d, w, R, F, ne, fe, he, te = this, ae = te.c, we = (t = new C(t, e)).c;
2777
+ var o, c, s, i, u, a, l, m, d, w, D, F, ne, fe, he, te = this, ae = te.c, we = (t = new C(t, e)).c;
2775
2778
  if (!ae || !we || !ae[0] || !we[0])
2776
2779
  return !te.s || !t.s || ae && !ae[0] && !we || we && !we[0] && !ae ? t.c = t.e = t.s = null : (t.s *= te.s, !ae || !we ? t.c = t.e = null : (t.c = [0], t.e = 0)), t;
2777
2780
  for (c = O(te.e / _) + O(t.e / _), t.s *= te.s, l = ae.length, w = we.length, l < w && (ne = ae, ae = we, we = ne, s = l, l = w, w = s), s = l + w, ne = []; s--; ne.push(0)) ;
2778
2781
  for (fe = I, he = E, s = w; --s >= 0; ) {
2779
- for (o = 0, R = we[s] % he, F = we[s] / he | 0, u = l, i = s + u; i > s; )
2780
- m = ae[--u] % he, d = ae[u] / he | 0, a = F * m + d * R, m = R * m + a % he * he + ne[i] + o, o = (m / fe | 0) + (a / he | 0) + F * d, ne[i--] = m % fe;
2782
+ for (o = 0, D = we[s] % he, F = we[s] / he | 0, u = l, i = s + u; i > s; )
2783
+ m = ae[--u] % he, d = ae[u] / he | 0, a = F * m + d * D, m = D * m + a % he * he + ne[i] + o, o = (m / fe | 0) + (a / he | 0) + F * d, ne[i--] = m % fe;
2781
2784
  ne[i] = o;
2782
2785
  }
2783
2786
  return o ? ++c : ne.splice(0, 1), Me(t, ne, c);
@@ -2804,7 +2807,7 @@ var dt = { exports: {} }, Vt = { exports: {} }, jt = { exports: {} };
2804
2807
  }, $.precision = $.sd = function(t, e) {
2805
2808
  var o, c, s, i = this;
2806
2809
  if (t != null && t !== !!t)
2807
- return M(t, 1, q), e == null ? e = z : M(e, 0, 8), G(new C(i), t, e);
2810
+ return S(t, 1, q), e == null ? e = z : S(e, 0, 8), G(new C(i), t, e);
2808
2811
  if (!(o = i.c)) return null;
2809
2812
  if (s = o.length - 1, c = s * _ + 1, s = o[s]) {
2810
2813
  for (; s % 10 == 0; s /= 10, c--) ;
@@ -2812,14 +2815,14 @@ var dt = { exports: {} }, Vt = { exports: {} }, jt = { exports: {} };
2812
2815
  }
2813
2816
  return t && i.e + 1 > c && (c = i.e + 1), c;
2814
2817
  }, $.shiftedBy = function(t) {
2815
- return M(t, -x, x), this.times("1e" + t);
2818
+ return S(t, -x, x), this.times("1e" + t);
2816
2819
  }, $.squareRoot = $.sqrt = function() {
2817
2820
  var t, e, o, c, s, i = this, u = i.c, a = i.s, l = i.e, m = ee + 4, d = new C("0.5");
2818
2821
  if (a !== 1 || !u || !u[0])
2819
2822
  return new C(!a || a < 0 && (!u || u[0]) ? NaN : u ? i : 1 / 0);
2820
- if (a = Math.sqrt(+B(i)), a == 0 || a == 1 / 0 ? (e = L(u), (e.length + l) % 2 == 0 && (e += "0"), a = Math.sqrt(+e), l = O((l + 1) / 2) - (l < 0 || l % 2), a == 1 / 0 ? e = "5e" + l : (e = a.toExponential(), e = e.slice(0, e.indexOf("e") + 1) + l), o = new C(e)) : o = new C(a + ""), o.c[0]) {
2823
+ if (a = Math.sqrt(+B(i)), a == 0 || a == 1 / 0 ? (e = A(u), (e.length + l) % 2 == 0 && (e += "0"), a = Math.sqrt(+e), l = O((l + 1) / 2) - (l < 0 || l % 2), a == 1 / 0 ? e = "5e" + l : (e = a.toExponential(), e = e.slice(0, e.indexOf("e") + 1) + l), o = new C(e)) : o = new C(a + ""), o.c[0]) {
2821
2824
  for (l = o.e, a = l + m, a < 3 && (a = 0); ; )
2822
- if (s = o, o = d.times(s.plus(A(i, s, m, 1))), L(s.c).slice(0, a) === (e = L(o.c)).slice(0, a))
2825
+ if (s = o, o = d.times(s.plus(L(i, s, m, 1))), A(s.c).slice(0, a) === (e = A(o.c)).slice(0, a))
2823
2826
  if (o.e < l && --a, e = e.slice(a - 3, a + 1), e == "9999" || !c && e == "4999") {
2824
2827
  if (!c && (G(s, s.e + ee + 2, 0), s.times(s).eq(i))) {
2825
2828
  o = s;
@@ -2833,9 +2836,9 @@ var dt = { exports: {} }, Vt = { exports: {} }, jt = { exports: {} };
2833
2836
  }
2834
2837
  return G(o, o.e + ee + 1, z, t);
2835
2838
  }, $.toExponential = function(t, e) {
2836
- return t != null && (M(t, 0, q), t++), Ue(this, t, e, 1);
2839
+ return t != null && (S(t, 0, q), t++), Ue(this, t, e, 1);
2837
2840
  }, $.toFixed = function(t, e) {
2838
- return t != null && (M(t, 0, q), t = t + this.e + 1), Ue(this, t, e);
2841
+ return t != null && (S(t, 0, q), t = t + this.e + 1), Ue(this, t, e);
2839
2842
  }, $.toFormat = function(t, e, o) {
2840
2843
  var c, s = this;
2841
2844
  if (o == null)
@@ -2843,10 +2846,10 @@ var dt = { exports: {} }, Vt = { exports: {} }, jt = { exports: {} };
2843
2846
  else if (typeof o != "object")
2844
2847
  throw Error(T + "Argument not an object: " + o);
2845
2848
  if (c = s.toFixed(t, e), s.c) {
2846
- var i, u = c.split("."), a = +o.groupSize, l = +o.secondaryGroupSize, m = o.groupSeparator || "", d = u[0], w = u[1], R = s.s < 0, F = R ? d.slice(1) : d, ne = F.length;
2849
+ var i, u = c.split("."), a = +o.groupSize, l = +o.secondaryGroupSize, m = o.groupSeparator || "", d = u[0], w = u[1], D = s.s < 0, F = D ? d.slice(1) : d, ne = F.length;
2847
2850
  if (l && (i = a, a = l, l = i, ne -= i), a > 0 && ne > 0) {
2848
2851
  for (i = ne % a || a, d = F.substr(0, i); i < ne; i += a) d += m + F.substr(i, a);
2849
- l > 0 && (d += m + F.slice(i)), R && (d = "-" + d);
2852
+ l > 0 && (d += m + F.slice(i)), D && (d = "-" + d);
2850
2853
  }
2851
2854
  c = w ? d + (o.decimalSeparator || "") + ((l = +o.fractionGroupSize) ? w.replace(
2852
2855
  new RegExp("\\d{" + l + "}\\B", "g"),
@@ -2855,71 +2858,71 @@ var dt = { exports: {} }, Vt = { exports: {} }, jt = { exports: {} };
2855
2858
  }
2856
2859
  return (o.prefix || "") + c + (o.suffix || "");
2857
2860
  }, $.toFraction = function(t) {
2858
- var e, o, c, s, i, u, a, l, m, d, w, R, F = this, ne = F.c;
2861
+ var e, o, c, s, i, u, a, l, m, d, w, D, F = this, ne = F.c;
2859
2862
  if (t != null && (a = new C(t), !a.isInteger() && (a.c || a.s !== 1) || a.lt(re)))
2860
2863
  throw Error(T + "Argument " + (a.isInteger() ? "out of range: " : "not an integer: ") + B(a));
2861
2864
  if (!ne) return new C(F);
2862
- for (e = new C(re), m = o = new C(re), c = l = new C(re), R = L(ne), i = e.e = R.length - F.e - 1, e.c[0] = S[(u = i % _) < 0 ? _ + u : u], t = !t || a.comparedTo(e) > 0 ? i > 0 ? e : m : a, u = de, de = 1 / 0, a = new C(R), l.c[0] = 0; d = A(a, e, 0, 1), s = o.plus(d.times(c)), s.comparedTo(t) != 1; )
2865
+ for (e = new C(re), m = o = new C(re), c = l = new C(re), D = A(ne), i = e.e = D.length - F.e - 1, e.c[0] = M[(u = i % _) < 0 ? _ + u : u], t = !t || a.comparedTo(e) > 0 ? i > 0 ? e : m : a, u = de, de = 1 / 0, a = new C(D), l.c[0] = 0; d = L(a, e, 0, 1), s = o.plus(d.times(c)), s.comparedTo(t) != 1; )
2863
2866
  o = c, c = s, m = l.plus(d.times(s = m)), l = s, e = a.minus(d.times(s = e)), a = s;
2864
- return s = A(t.minus(o), c, 0, 1), l = l.plus(s.times(m)), o = o.plus(s.times(c)), l.s = m.s = F.s, i = i * 2, w = A(m, c, i, z).minus(F).abs().comparedTo(
2865
- A(l, o, i, z).minus(F).abs()
2867
+ return s = L(t.minus(o), c, 0, 1), l = l.plus(s.times(m)), o = o.plus(s.times(c)), l.s = m.s = F.s, i = i * 2, w = L(m, c, i, z).minus(F).abs().comparedTo(
2868
+ L(l, o, i, z).minus(F).abs()
2866
2869
  ) < 1 ? [m, c] : [l, o], de = u, w;
2867
2870
  }, $.toNumber = function() {
2868
2871
  return +B(this);
2869
2872
  }, $.toPrecision = function(t, e) {
2870
- return t != null && M(t, 1, q), Ue(this, t, e, 2);
2873
+ return t != null && S(t, 1, q), Ue(this, t, e, 2);
2871
2874
  }, $.toString = function(t) {
2872
2875
  var e, o = this, c = o.s, s = o.e;
2873
- return s === null ? c ? (e = "Infinity", c < 0 && (e = "-" + e)) : e = "NaN" : (t == null ? e = s <= le || s >= ue ? J(L(o.c), s) : oe(L(o.c), s, "0") : t === 10 && Oe ? (o = G(new C(o), ee + s + 1, z), e = oe(L(o.c), o.e, "0")) : (M(t, 2, Ee.length, "Base"), e = X(oe(L(o.c), s, "0"), 10, t, c, !0)), c < 0 && o.c[0] && (e = "-" + e)), e;
2876
+ return s === null ? c ? (e = "Infinity", c < 0 && (e = "-" + e)) : e = "NaN" : (t == null ? e = s <= le || s >= ue ? X(A(o.c), s) : oe(A(o.c), s, "0") : t === 10 && Oe ? (o = G(new C(o), ee + s + 1, z), e = oe(A(o.c), o.e, "0")) : (S(t, 2, Ee.length, "Base"), e = Z(oe(A(o.c), s, "0"), 10, t, c, !0)), c < 0 && o.c[0] && (e = "-" + e)), e;
2874
2877
  }, $.valueOf = $.toJSON = function() {
2875
2878
  return B(this);
2876
2879
  }, $._isBigNumber = !0, U != null && C.set(U), C;
2877
2880
  }
2878
2881
  function O(U) {
2879
- var A = U | 0;
2880
- return U > 0 || U === A ? A : A - 1;
2882
+ var L = U | 0;
2883
+ return U > 0 || U === L ? L : L - 1;
2881
2884
  }
2882
- function L(U) {
2883
- for (var A, X, se = 1, $ = U.length, re = U[0] + ""; se < $; ) {
2884
- for (A = U[se++] + "", X = _ - A.length; X--; A = "0" + A) ;
2885
- re += A;
2885
+ function A(U) {
2886
+ for (var L, Z, se = 1, $ = U.length, re = U[0] + ""; se < $; ) {
2887
+ for (L = U[se++] + "", Z = _ - L.length; Z--; L = "0" + L) ;
2888
+ re += L;
2886
2889
  }
2887
2890
  for ($ = re.length; re.charCodeAt(--$) === 48; ) ;
2888
2891
  return re.slice(0, $ + 1 || 1);
2889
2892
  }
2890
- function V(U, A) {
2891
- var X, se, $ = U.c, re = A.c, ee = U.s, z = A.s, le = U.e, ue = A.e;
2893
+ function V(U, L) {
2894
+ var Z, se, $ = U.c, re = L.c, ee = U.s, z = L.s, le = U.e, ue = L.e;
2892
2895
  if (!ee || !z) return null;
2893
- if (X = $ && !$[0], se = re && !re[0], X || se) return X ? se ? 0 : -z : ee;
2896
+ if (Z = $ && !$[0], se = re && !re[0], Z || se) return Z ? se ? 0 : -z : ee;
2894
2897
  if (ee != z) return ee;
2895
- if (X = ee < 0, se = le == ue, !$ || !re) return se ? 0 : !$ ^ X ? 1 : -1;
2896
- if (!se) return le > ue ^ X ? 1 : -1;
2897
- for (z = (le = $.length) < (ue = re.length) ? le : ue, ee = 0; ee < z; ee++) if ($[ee] != re[ee]) return $[ee] > re[ee] ^ X ? 1 : -1;
2898
- return le == ue ? 0 : le > ue ^ X ? 1 : -1;
2898
+ if (Z = ee < 0, se = le == ue, !$ || !re) return se ? 0 : !$ ^ Z ? 1 : -1;
2899
+ if (!se) return le > ue ^ Z ? 1 : -1;
2900
+ for (z = (le = $.length) < (ue = re.length) ? le : ue, ee = 0; ee < z; ee++) if ($[ee] != re[ee]) return $[ee] > re[ee] ^ Z ? 1 : -1;
2901
+ return le == ue ? 0 : le > ue ^ Z ? 1 : -1;
2899
2902
  }
2900
- function M(U, A, X, se) {
2901
- if (U < A || U > X || U !== k(U))
2902
- throw Error(T + (se || "Argument") + (typeof U == "number" ? U < A || U > X ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(U));
2903
+ function S(U, L, Z, se) {
2904
+ if (U < L || U > Z || U !== k(U))
2905
+ throw Error(T + (se || "Argument") + (typeof U == "number" ? U < L || U > Z ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(U));
2903
2906
  }
2904
2907
  function K(U) {
2905
- var A = U.c.length - 1;
2906
- return O(U.e / _) == A && U.c[A] % 2 != 0;
2908
+ var L = U.c.length - 1;
2909
+ return O(U.e / _) == L && U.c[L] % 2 != 0;
2907
2910
  }
2908
- function J(U, A) {
2909
- return (U.length > 1 ? U.charAt(0) + "." + U.slice(1) : U) + (A < 0 ? "e" : "e+") + A;
2911
+ function X(U, L) {
2912
+ return (U.length > 1 ? U.charAt(0) + "." + U.slice(1) : U) + (L < 0 ? "e" : "e+") + L;
2910
2913
  }
2911
- function oe(U, A, X) {
2914
+ function oe(U, L, Z) {
2912
2915
  var se, $;
2913
- if (A < 0) {
2914
- for ($ = X + "."; ++A; $ += X) ;
2916
+ if (L < 0) {
2917
+ for ($ = Z + "."; ++L; $ += Z) ;
2915
2918
  U = $ + U;
2916
- } else if (se = U.length, ++A > se) {
2917
- for ($ = X, A -= se; --A; $ += X) ;
2919
+ } else if (se = U.length, ++L > se) {
2920
+ for ($ = Z, L -= se; --L; $ += Z) ;
2918
2921
  U += $;
2919
- } else A < se && (U = U.slice(0, A) + "." + U.slice(A));
2922
+ } else L < se && (U = U.slice(0, L) + "." + U.slice(L));
2920
2923
  return U;
2921
2924
  }
2922
- v = Z(), v.default = v.BigNumber = v, r.exports ? r.exports = v : (f || (f = typeof self < "u" && self ? self : window), f.BigNumber = v);
2925
+ v = J(), v.default = v.BigNumber = v, r.exports ? r.exports = v : (f || (f = typeof self < "u" && self ? self : window), f.BigNumber = v);
2923
2926
  })(Ir);
2924
2927
  })(jt);
2925
2928
  var qt = jt.exports;
@@ -2937,54 +2940,54 @@ var qt = jt.exports;
2937
2940
  "\\": "\\\\"
2938
2941
  }, g;
2939
2942
  function I(x) {
2940
- return p.lastIndex = 0, p.test(x) ? '"' + x.replace(p, function(S) {
2941
- var E = T[S];
2942
- return typeof E == "string" ? E : "\\u" + ("0000" + S.charCodeAt(0).toString(16)).slice(-4);
2943
+ return p.lastIndex = 0, p.test(x) ? '"' + x.replace(p, function(M) {
2944
+ var E = T[M];
2945
+ return typeof E == "string" ? E : "\\u" + ("0000" + M.charCodeAt(0).toString(16)).slice(-4);
2943
2946
  }) + '"' : '"' + x + '"';
2944
2947
  }
2945
- function _(x, S) {
2946
- var E, q, Z, O, L = h, V, M = S[x], K = M != null && (M instanceof f || f.isBigNumber(M));
2947
- switch (M && typeof M == "object" && typeof M.toJSON == "function" && (M = M.toJSON(x)), typeof g == "function" && (M = g.call(S, x, M)), typeof M) {
2948
+ function _(x, M) {
2949
+ var E, q, J, O, A = h, V, S = M[x], K = S != null && (S instanceof f || f.isBigNumber(S));
2950
+ switch (S && typeof S == "object" && typeof S.toJSON == "function" && (S = S.toJSON(x)), typeof g == "function" && (S = g.call(M, x, S)), typeof S) {
2948
2951
  case "string":
2949
- return K ? M : I(M);
2952
+ return K ? S : I(S);
2950
2953
  case "number":
2951
- return isFinite(M) ? String(M) : "null";
2954
+ return isFinite(S) ? String(S) : "null";
2952
2955
  case "boolean":
2953
2956
  case "null":
2954
2957
  case "bigint":
2955
- return String(M);
2958
+ return String(S);
2956
2959
  case "object":
2957
- if (!M)
2960
+ if (!S)
2958
2961
  return "null";
2959
- if (h += k, V = [], Object.prototype.toString.apply(M) === "[object Array]") {
2960
- for (O = M.length, E = 0; E < O; E += 1)
2961
- V[E] = _(E, M) || "null";
2962
- return Z = V.length === 0 ? "[]" : h ? `[
2962
+ if (h += k, V = [], Object.prototype.toString.apply(S) === "[object Array]") {
2963
+ for (O = S.length, E = 0; E < O; E += 1)
2964
+ V[E] = _(E, S) || "null";
2965
+ return J = V.length === 0 ? "[]" : h ? `[
2963
2966
  ` + h + V.join(`,
2964
2967
  ` + h) + `
2965
- ` + L + "]" : "[" + V.join(",") + "]", h = L, Z;
2968
+ ` + A + "]" : "[" + V.join(",") + "]", h = A, J;
2966
2969
  }
2967
2970
  if (g && typeof g == "object")
2968
2971
  for (O = g.length, E = 0; E < O; E += 1)
2969
- typeof g[E] == "string" && (q = g[E], Z = _(q, M), Z && V.push(I(q) + (h ? ": " : ":") + Z));
2972
+ typeof g[E] == "string" && (q = g[E], J = _(q, S), J && V.push(I(q) + (h ? ": " : ":") + J));
2970
2973
  else
2971
- Object.keys(M).forEach(function(J) {
2972
- var oe = _(J, M);
2973
- oe && V.push(I(J) + (h ? ": " : ":") + oe);
2974
+ Object.keys(S).forEach(function(X) {
2975
+ var oe = _(X, S);
2976
+ oe && V.push(I(X) + (h ? ": " : ":") + oe);
2974
2977
  });
2975
- return Z = V.length === 0 ? "{}" : h ? `{
2978
+ return J = V.length === 0 ? "{}" : h ? `{
2976
2979
  ` + h + V.join(`,
2977
2980
  ` + h) + `
2978
- ` + L + "}" : "{" + V.join(",") + "}", h = L, Z;
2981
+ ` + A + "}" : "{" + V.join(",") + "}", h = A, J;
2979
2982
  }
2980
2983
  }
2981
- typeof v.stringify != "function" && (v.stringify = function(x, S, E) {
2984
+ typeof v.stringify != "function" && (v.stringify = function(x, M, E) {
2982
2985
  var q;
2983
2986
  if (h = "", k = "", typeof E == "number")
2984
2987
  for (q = 0; q < E; q += 1)
2985
2988
  k += " ";
2986
2989
  else typeof E == "string" && (k = E);
2987
- if (g = S, S && typeof S != "function" && (typeof S != "object" || typeof S.length != "number"))
2990
+ if (g = M, M && typeof M != "function" && (typeof M != "object" || typeof M.length != "number"))
2988
2991
  throw new Error("JSON.stringify");
2989
2992
  return _("", { "": x });
2990
2993
  });
@@ -3041,30 +3044,30 @@ var Ur = function(r) {
3041
3044
  }, g = function(O) {
3042
3045
  return O && O !== p && T("Expected '" + O + "' instead of '" + p + "'"), p = k.charAt(v), v += 1, p;
3043
3046
  }, I = function() {
3044
- var O, L = "";
3045
- for (p === "-" && (L = "-", g("-")); p >= "0" && p <= "9"; )
3046
- L += p, g();
3047
+ var O, A = "";
3048
+ for (p === "-" && (A = "-", g("-")); p >= "0" && p <= "9"; )
3049
+ A += p, g();
3047
3050
  if (p === ".")
3048
- for (L += "."; g() && p >= "0" && p <= "9"; )
3049
- L += p;
3051
+ for (A += "."; g() && p >= "0" && p <= "9"; )
3052
+ A += p;
3050
3053
  if (p === "e" || p === "E")
3051
- for (L += p, g(), (p === "-" || p === "+") && (L += p, g()); p >= "0" && p <= "9"; )
3052
- L += p, g();
3053
- if (O = +L, !isFinite(O))
3054
+ for (A += p, g(), (p === "-" || p === "+") && (A += p, g()); p >= "0" && p <= "9"; )
3055
+ A += p, g();
3056
+ if (O = +A, !isFinite(O))
3054
3057
  T("Bad number");
3055
3058
  else
3056
- return et == null && (et = qt), L.length > 15 ? f.storeAsString ? L : f.useNativeBigInt ? BigInt(L) : new et(L) : f.alwaysParseAsBig ? f.useNativeBigInt ? BigInt(O) : new et(O) : O;
3059
+ return et == null && (et = qt), A.length > 15 ? f.storeAsString ? A : f.useNativeBigInt ? BigInt(A) : new et(A) : f.alwaysParseAsBig ? f.useNativeBigInt ? BigInt(O) : new et(O) : O;
3057
3060
  }, _ = function() {
3058
- var O, L, V = "", M;
3061
+ var O, A, V = "", S;
3059
3062
  if (p === '"')
3060
3063
  for (var K = v; g(); ) {
3061
3064
  if (p === '"')
3062
3065
  return v - 1 > K && (V += k.substring(K, v - 1)), g(), V;
3063
3066
  if (p === "\\") {
3064
3067
  if (v - 1 > K && (V += k.substring(K, v - 1)), g(), p === "u") {
3065
- for (M = 0, L = 0; L < 4 && (O = parseInt(g(), 16), !!isFinite(O)); L += 1)
3066
- M = M * 16 + O;
3067
- V += String.fromCharCode(M);
3068
+ for (S = 0, A = 0; A < 4 && (O = parseInt(g(), 16), !!isFinite(O)); A += 1)
3069
+ S = S * 16 + O;
3070
+ V += String.fromCharCode(S);
3068
3071
  } else if (typeof h[p] == "string")
3069
3072
  V += h[p];
3070
3073
  else
@@ -3076,7 +3079,7 @@ var Ur = function(r) {
3076
3079
  }, x = function() {
3077
3080
  for (; p && p <= " "; )
3078
3081
  g();
3079
- }, S = function() {
3082
+ }, M = function() {
3080
3083
  switch (p) {
3081
3084
  case "t":
3082
3085
  return g("t"), g("r"), g("u"), g("e"), !0;
@@ -3098,14 +3101,14 @@ var Ur = function(r) {
3098
3101
  }
3099
3102
  }
3100
3103
  T("Bad array");
3101
- }, Z = function() {
3102
- var O, L = /* @__PURE__ */ Object.create(null);
3104
+ }, J = function() {
3105
+ var O, A = /* @__PURE__ */ Object.create(null);
3103
3106
  if (p === "{") {
3104
3107
  if (g("{"), x(), p === "}")
3105
- return g("}"), L;
3108
+ return g("}"), A;
3106
3109
  for (; p; ) {
3107
- if (O = _(), x(), g(":"), f.strict === !0 && Object.hasOwnProperty.call(L, O) && T('Duplicate key "' + O + '"'), Tr.test(O) === !0 ? f.protoAction === "error" ? T("Object contains forbidden prototype property") : f.protoAction === "ignore" ? E() : L[O] = E() : Or.test(O) === !0 ? f.constructorAction === "error" ? T("Object contains forbidden constructor property") : f.constructorAction === "ignore" ? E() : L[O] = E() : L[O] = E(), x(), p === "}")
3108
- return g("}"), L;
3110
+ if (O = _(), x(), g(":"), f.strict === !0 && Object.hasOwnProperty.call(A, O) && T('Duplicate key "' + O + '"'), Tr.test(O) === !0 ? f.protoAction === "error" ? T("Object contains forbidden prototype property") : f.protoAction === "ignore" ? E() : A[O] = E() : Or.test(O) === !0 ? f.constructorAction === "error" ? T("Object contains forbidden constructor property") : f.constructorAction === "ignore" ? E() : A[O] = E() : A[O] = E(), x(), p === "}")
3111
+ return g("}"), A;
3109
3112
  g(","), x();
3110
3113
  }
3111
3114
  }
@@ -3114,7 +3117,7 @@ var Ur = function(r) {
3114
3117
  return E = function() {
3115
3118
  switch (x(), p) {
3116
3119
  case "{":
3117
- return Z();
3120
+ return J();
3118
3121
  case "[":
3119
3122
  return q();
3120
3123
  case '"':
@@ -3122,15 +3125,15 @@ var Ur = function(r) {
3122
3125
  case "-":
3123
3126
  return I();
3124
3127
  default:
3125
- return p >= "0" && p <= "9" ? I() : S();
3128
+ return p >= "0" && p <= "9" ? I() : M();
3126
3129
  }
3127
- }, function(O, L) {
3130
+ }, function(O, A) {
3128
3131
  var V;
3129
- return k = O + "", v = 0, p = " ", V = E(), x(), p && T("Syntax error"), typeof L == "function" ? function M(K, J) {
3130
- var oe, U = K[J];
3131
- return U && typeof U == "object" && Object.keys(U).forEach(function(A) {
3132
- oe = M(U, A), oe !== void 0 ? U[A] = oe : delete U[A];
3133
- }), L.call(K, J, U);
3132
+ return k = O + "", v = 0, p = " ", V = E(), x(), p && T("Syntax error"), typeof A == "function" ? function S(K, X) {
3133
+ var oe, U = K[X];
3134
+ return U && typeof U == "object" && Object.keys(U).forEach(function(L) {
3135
+ oe = S(U, L), oe !== void 0 ? U[L] = oe : delete U[L];
3136
+ }), A.call(K, X, U);
3134
3137
  }({ "": V }, "") : V;
3135
3138
  };
3136
3139
  }, Br = Ur, Gt = Ar.stringify, Kt = Br;
@@ -3142,8 +3145,8 @@ dt.exports = function(r) {
3142
3145
  };
3143
3146
  dt.exports.parse = Kt();
3144
3147
  dt.exports.stringify = Gt;
3145
- var Dr = dt.exports;
3146
- const Pr = /* @__PURE__ */ Lr(Dr), Rr = Pr({ storeAsString: !0 }), zr = () => {
3148
+ var Pr = dt.exports;
3149
+ const Rr = /* @__PURE__ */ Lr(Pr), Dr = Rr({ storeAsString: !0 }), zr = () => {
3147
3150
  const r = ns.create({
3148
3151
  baseURL: void 0,
3149
3152
  timeout: 3e4,
@@ -3155,7 +3158,7 @@ const Pr = /* @__PURE__ */ Lr(Dr), Rr = Pr({ storeAsString: !0 }), zr = () => {
3155
3158
  (f) => {
3156
3159
  if (typeof f == "string")
3157
3160
  try {
3158
- return Rr.parse(f);
3161
+ return Dr.parse(f);
3159
3162
  } catch {
3160
3163
  return f;
3161
3164
  }
@@ -3238,7 +3241,7 @@ function Oa(r) {
3238
3241
  const jr = { class: "login-page" }, qr = { class: "login-form-section" }, Gr = { class: "form-container" }, Kr = { class: "input-wrapper" }, Hr = { class: "input-wrapper" }, Wr = { class: "form-options" }, Xr = { key: 0 }, Yr = { key: 1 }, Jr = /* @__PURE__ */ Ae({
3239
3242
  __name: "index",
3240
3243
  setup(r) {
3241
- const f = De(), v = qe(), p = D(!1), h = D(!1), k = yt({
3244
+ const f = Pe(), v = qe(), p = P(!1), h = P(!1), k = yt({
3242
3245
  uid: "",
3243
3246
  password: ""
3244
3247
  }), T = {
@@ -3249,20 +3252,20 @@ const jr = { class: "login-page" }, qr = { class: "login-form-section" }, Gr = {
3249
3252
  { required: !0, message: "请输入密码", trigger: "blur" },
3250
3253
  { min: 6, message: "密码长度至少6位", trigger: "blur" }
3251
3254
  ]
3252
- }, g = D(), I = async () => {
3255
+ }, g = P(), I = async () => {
3253
3256
  var _;
3254
3257
  try {
3255
3258
  await ((_ = g.value) == null ? void 0 : _.validate()), p.value = !0;
3256
3259
  const x = await Fr({
3257
3260
  appId: ct(),
3258
- clientId: Dt(),
3261
+ clientId: Pt(),
3259
3262
  uid: k.uid,
3260
3263
  password: k.password,
3261
3264
  code: !0
3262
3265
  });
3263
- Rt(x), Le.success("登录成功");
3264
- const S = v.query.redirect || "/";
3265
- f.push(S);
3266
+ Dt(x), Le.success("登录成功");
3267
+ const M = v.query.redirect || "/";
3268
+ f.push(M);
3266
3269
  } catch (x) {
3267
3270
  console.error("登录失败:", x);
3268
3271
  } finally {
@@ -3277,7 +3280,7 @@ const jr = { class: "login-page" }, qr = { class: "login-form-section" }, Gr = {
3277
3280
  n("h2", null, "欢迎登录"),
3278
3281
  n("p", null, "请输入您的账户信息")
3279
3282
  ], -1)),
3280
- P(b(ts), {
3283
+ R(b(ts), {
3281
3284
  ref_key: "formRef",
3282
3285
  ref: g,
3283
3286
  model: k,
@@ -3286,18 +3289,18 @@ const jr = { class: "login-page" }, qr = { class: "login-form-section" }, Gr = {
3286
3289
  "label-width": "0"
3287
3290
  }, {
3288
3291
  default: Y(() => [
3289
- P(b(mt), { prop: "uid" }, {
3292
+ R(b(mt), { prop: "uid" }, {
3290
3293
  default: Y(() => [
3291
3294
  n("div", Kr, [
3292
3295
  x[3] || (x[3] = n("label", { class: "input-label" }, "用户名", -1)),
3293
- P(b(At), {
3296
+ R(b(At), {
3294
3297
  modelValue: k.uid,
3295
- "onUpdate:modelValue": x[0] || (x[0] = (S) => k.uid = S),
3298
+ "onUpdate:modelValue": x[0] || (x[0] = (M) => k.uid = M),
3296
3299
  placeholder: "请输入用户名",
3297
3300
  size: "large"
3298
3301
  }, {
3299
3302
  prefix: Y(() => [
3300
- P(b(Q), {
3303
+ R(b(Q), {
3301
3304
  name: "user",
3302
3305
  size: 18
3303
3306
  })
@@ -3308,13 +3311,13 @@ const jr = { class: "login-page" }, qr = { class: "login-form-section" }, Gr = {
3308
3311
  ]),
3309
3312
  _: 1
3310
3313
  }),
3311
- P(b(mt), { prop: "password" }, {
3314
+ R(b(mt), { prop: "password" }, {
3312
3315
  default: Y(() => [
3313
3316
  n("div", Hr, [
3314
3317
  x[4] || (x[4] = n("label", { class: "input-label" }, "密码", -1)),
3315
- P(b(At), {
3318
+ R(b(At), {
3316
3319
  modelValue: k.password,
3317
- "onUpdate:modelValue": x[1] || (x[1] = (S) => k.password = S),
3320
+ "onUpdate:modelValue": x[1] || (x[1] = (M) => k.password = M),
3318
3321
  type: "password",
3319
3322
  placeholder: "请输入密码",
3320
3323
  size: "large",
@@ -3322,7 +3325,7 @@ const jr = { class: "login-page" }, qr = { class: "login-form-section" }, Gr = {
3322
3325
  onKeyup: Zt(I, ["enter"])
3323
3326
  }, {
3324
3327
  prefix: Y(() => [
3325
- P(b(Q), {
3328
+ R(b(Q), {
3326
3329
  name: "lock",
3327
3330
  size: 18
3328
3331
  })
@@ -3334,12 +3337,12 @@ const jr = { class: "login-page" }, qr = { class: "login-form-section" }, Gr = {
3334
3337
  _: 1
3335
3338
  }),
3336
3339
  n("div", Wr, [
3337
- P(b(ss), {
3340
+ R(b(ss), {
3338
3341
  modelValue: h.value,
3339
- "onUpdate:modelValue": x[2] || (x[2] = (S) => h.value = S)
3342
+ "onUpdate:modelValue": x[2] || (x[2] = (M) => h.value = M)
3340
3343
  }, {
3341
3344
  default: Y(() => [...x[5] || (x[5] = [
3342
- Re("记住我", -1)
3345
+ De("记住我", -1)
3343
3346
  ])]),
3344
3347
  _: 1
3345
3348
  }, 8, ["modelValue"]),
@@ -3348,9 +3351,9 @@ const jr = { class: "login-page" }, qr = { class: "login-form-section" }, Gr = {
3348
3351
  class: "forgot-link"
3349
3352
  }, "忘记密码?", -1))
3350
3353
  ]),
3351
- P(b(mt), null, {
3354
+ R(b(mt), null, {
3352
3355
  default: Y(() => [
3353
- P(b(je), {
3356
+ R(b(je), {
3354
3357
  type: "primary",
3355
3358
  size: "large",
3356
3359
  loading: p.value,
@@ -3382,7 +3385,7 @@ const jr = { class: "login-page" }, qr = { class: "login-form-section" }, Gr = {
3382
3385
  }, Symbol.toStringTag, { value: "Module" })), ea = { class: "error-page" }, ta = { class: "error-container" }, sa = { class: "error-content" }, na = { class: "error-actions" }, oa = /* @__PURE__ */ Ae({
3383
3386
  __name: "404",
3384
3387
  setup(r) {
3385
- const f = De(), v = () => {
3388
+ const f = Pe(), v = () => {
3386
3389
  f.push("/");
3387
3390
  };
3388
3391
  return (p, h) => (y(), N("div", ea, [
@@ -3395,7 +3398,7 @@ const jr = { class: "login-page" }, qr = { class: "login-form-section" }, Gr = {
3395
3398
  n("div", sa, [
3396
3399
  h[5] || (h[5] = tt('<div class="error-code" data-v-1b083153><span class="code-digit" data-v-1b083153>4</span><span class="code-zero" data-v-1b083153><span class="zero-inner" data-v-1b083153>0</span></span><span class="code-digit" data-v-1b083153>4</span></div><div class="error-illustration" data-v-1b083153><svg viewBox="0 0 200 120" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-1b083153><rect x="40" y="20" width="120" height="80" rx="8" fill="var(--color-fill)" stroke="var(--color-border)" stroke-width="2" data-v-1b083153></rect><rect x="50" y="30" width="100" height="60" rx="4" fill="var(--bg-color)" data-v-1b083153></rect><line x1="60" y1="45" x2="140" y2="45" stroke="var(--color-border-light)" stroke-width="2" data-v-1b083153></line><line x1="60" y1="55" x2="120" y2="55" stroke="var(--color-border-light)" stroke-width="2" data-v-1b083153></line><line x1="60" y1="65" x2="100" y2="65" stroke="var(--color-border-light)" stroke-width="2" data-v-1b083153></line><text x="100" y="75" text-anchor="middle" fill="var(--color-primary)" font-size="24" font-weight="600" data-v-1b083153>?</text><circle cx="150" cy="35" r="12" stroke="var(--color-primary)" stroke-width="2" fill="none" data-v-1b083153></circle><line x1="158" y1="43" x2="168" y2="53" stroke="var(--color-primary)" stroke-width="2" stroke-linecap="round" data-v-1b083153></line></svg></div><h1 class="error-title" data-v-1b083153>页面不存在</h1><p class="error-desc" data-v-1b083153>抱歉,您访问的页面不存在或已被删除</p>', 4)),
3397
3400
  n("div", na, [
3398
- P(b(je), {
3401
+ R(b(je), {
3399
3402
  type: "primary",
3400
3403
  size: "large",
3401
3404
  onClick: v
@@ -3412,11 +3415,11 @@ const jr = { class: "login-page" }, qr = { class: "login-form-section" }, Gr = {
3412
3415
  ], -1)
3413
3416
  ])]),
3414
3417
  default: Y(() => [
3415
- h[2] || (h[2] = Re(" 返回首页 ", -1))
3418
+ h[2] || (h[2] = De(" 返回首页 ", -1))
3416
3419
  ]),
3417
3420
  _: 1
3418
3421
  }),
3419
- P(b(je), {
3422
+ R(b(je), {
3420
3423
  size: "large",
3421
3424
  onClick: h[0] || (h[0] = (k) => b(f).go(-1))
3422
3425
  }, {
@@ -3431,7 +3434,7 @@ const jr = { class: "login-page" }, qr = { class: "login-form-section" }, Gr = {
3431
3434
  ], -1)
3432
3435
  ])]),
3433
3436
  default: Y(() => [
3434
- h[4] || (h[4] = Re(" 返回上一页 ", -1))
3437
+ h[4] || (h[4] = De(" 返回上一页 ", -1))
3435
3438
  ]),
3436
3439
  _: 1
3437
3440
  })
@@ -3454,7 +3457,7 @@ const jr = { class: "login-page" }, qr = { class: "login-form-section" }, Gr = {
3454
3457
  }, Symbol.toStringTag, { value: "Module" })), aa = { class: "error-page" }, ia = { class: "error-container" }, la = { class: "error-content" }, ca = { class: "error-actions" }, ua = /* @__PURE__ */ Ae({
3455
3458
  __name: "403",
3456
3459
  setup(r) {
3457
- const f = De(), v = () => {
3460
+ const f = Pe(), v = () => {
3458
3461
  f.push("/");
3459
3462
  };
3460
3463
  return (p, h) => (y(), N("div", aa, [
@@ -3467,7 +3470,7 @@ const jr = { class: "login-page" }, qr = { class: "login-form-section" }, Gr = {
3467
3470
  n("div", la, [
3468
3471
  h[5] || (h[5] = tt('<div class="error-code" data-v-d167f981><span class="code-digit" data-v-d167f981>4</span><span class="code-zero warning" data-v-d167f981><span class="zero-inner" data-v-d167f981>0</span></span><span class="code-digit" data-v-d167f981>3</span></div><div class="error-illustration" data-v-d167f981><svg viewBox="0 0 200 120" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-d167f981><path d="M100 15 L150 35 L150 70 C150 95 100 110 100 110 C100 110 50 95 50 70 L50 35 Z" fill="var(--color-warning-lighter)" stroke="var(--color-warning)" stroke-width="2" data-v-d167f981></path><rect x="85" y="55" width="30" height="25" rx="4" fill="var(--color-warning)" data-v-d167f981></rect><path d="M92 55 V48 A8 8 0 0 1 108 48 V55" fill="none" stroke="var(--color-warning)" stroke-width="3" data-v-d167f981></path><circle cx="100" cy="67" r="6" fill="none" stroke="#fff" stroke-width="2" data-v-d167f981></circle><line x1="96" y1="63" x2="104" y2="71" stroke="#fff" stroke-width="2" data-v-d167f981></line></svg></div><h1 class="error-title" data-v-d167f981>无访问权限</h1><p class="error-desc" data-v-d167f981>抱歉,您没有权限访问此页面,请联系管理员获取权限</p>', 4)),
3469
3472
  n("div", ca, [
3470
- P(b(je), {
3473
+ R(b(je), {
3471
3474
  type: "primary",
3472
3475
  size: "large",
3473
3476
  onClick: v
@@ -3484,11 +3487,11 @@ const jr = { class: "login-page" }, qr = { class: "login-form-section" }, Gr = {
3484
3487
  ], -1)
3485
3488
  ])]),
3486
3489
  default: Y(() => [
3487
- h[2] || (h[2] = Re(" 返回首页 ", -1))
3490
+ h[2] || (h[2] = De(" 返回首页 ", -1))
3488
3491
  ]),
3489
3492
  _: 1
3490
3493
  }),
3491
- P(b(je), {
3494
+ R(b(je), {
3492
3495
  size: "large",
3493
3496
  onClick: h[0] || (h[0] = (k) => b(f).go(-1))
3494
3497
  }, {
@@ -3503,7 +3506,7 @@ const jr = { class: "login-page" }, qr = { class: "login-form-section" }, Gr = {
3503
3506
  ], -1)
3504
3507
  ])]),
3505
3508
  default: Y(() => [
3506
- h[4] || (h[4] = Re(" 返回上一页 ", -1))
3509
+ h[4] || (h[4] = De(" 返回上一页 ", -1))
3507
3510
  ]),
3508
3511
  _: 1
3509
3512
  })
@@ -3522,7 +3525,7 @@ const jr = { class: "login-page" }, qr = { class: "login-form-section" }, Gr = {
3522
3525
  }
3523
3526
  }), Ua = /* @__PURE__ */ Se(ua, [["__scopeId", "data-v-d167f981"]]);
3524
3527
  function Ba() {
3525
- const r = Pe(), f = $e(), v = Ye(), p = j(() => f.userName || ""), h = j(() => f.userInfo), k = j(() => r.appName), T = j(() => v.isLoggedIn), g = j(() => r.isDark), I = j(() => r.theme), _ = j(() => r.isCollapsed), x = j(() => r.layout);
3528
+ const r = Re(), f = $e(), v = Ye(), p = j(() => f.userName || ""), h = j(() => f.userInfo), k = j(() => r.appName), T = j(() => v.isLoggedIn), g = j(() => r.isDark), I = j(() => r.theme), _ = j(() => r.isCollapsed), x = j(() => r.layout);
3526
3529
  return {
3527
3530
  userName: p,
3528
3531
  userInfo: h,
@@ -3540,24 +3543,24 @@ function Ba() {
3540
3543
  }
3541
3544
  };
3542
3545
  }
3543
- function Da() {
3546
+ function Pa() {
3544
3547
  const r = $e();
3545
3548
  return {
3546
3549
  isLoggedIn: j(() => r.isLoggedIn)
3547
3550
  };
3548
3551
  }
3549
- function Pa(r, f = {}) {
3550
- const { rules: v, onSubmit: p } = f, h = D(), k = yt({ ...r }), T = D(!1), g = D(!1), I = D(!1), _ = () => {
3552
+ function Ra(r, f = {}) {
3553
+ const { rules: v, onSubmit: p } = f, h = P(), k = yt({ ...r }), T = P(!1), g = P(!1), I = P(!1), _ = () => {
3551
3554
  E(), I.value = !1, g.value = !0;
3552
- }, x = (Z) => {
3553
- Object.assign(k, Z), I.value = !0, g.value = !0;
3554
- }, S = () => {
3555
+ }, x = (J) => {
3556
+ Object.assign(k, J), I.value = !0, g.value = !0;
3557
+ }, M = () => {
3555
3558
  g.value = !1, E();
3556
3559
  }, E = () => {
3557
- var Z;
3560
+ var J;
3558
3561
  Object.keys(r).forEach((O) => {
3559
3562
  k[O] = r[O];
3560
- }), (Z = h.value) == null || Z.resetFields();
3563
+ }), (J = h.value) == null || J.resetFields();
3561
3564
  };
3562
3565
  return {
3563
3566
  formRef: h,
@@ -3568,12 +3571,12 @@ function Pa(r, f = {}) {
3568
3571
  isEdit: I,
3569
3572
  openAdd: _,
3570
3573
  openEdit: x,
3571
- close: S,
3574
+ close: M,
3572
3575
  resetForm: E,
3573
3576
  handleSubmit: async () => {
3574
- var Z;
3577
+ var J;
3575
3578
  try {
3576
- await ((Z = h.value) == null ? void 0 : Z.validate()), T.value = !0, await (p == null ? void 0 : p(k)), S();
3579
+ await ((J = h.value) == null ? void 0 : J.validate()), T.value = !0, await (p == null ? void 0 : p(k)), M();
3577
3580
  } catch (O) {
3578
3581
  console.error(O);
3579
3582
  } finally {
@@ -3582,32 +3585,32 @@ function Pa(r, f = {}) {
3582
3585
  }
3583
3586
  };
3584
3587
  }
3585
- function Ra(r) {
3586
- const { fetchData: f, defaultPageSize: v = 10 } = r, p = D(!1), h = D([]), k = D(0), T = D(1), g = D(v), I = yt({}), _ = async () => {
3588
+ function Da(r) {
3589
+ const { fetchData: f, defaultPageSize: v = 10 } = r, p = P(!1), h = P([]), k = P(0), T = P(1), g = P(v), I = yt({}), _ = async () => {
3587
3590
  p.value = !0;
3588
3591
  try {
3589
- const L = {
3592
+ const A = {
3590
3593
  ...I,
3591
3594
  page: T.value,
3592
3595
  pageSize: g.value
3593
- }, V = await f(L);
3596
+ }, V = await f(A);
3594
3597
  h.value = V.list, k.value = V.total;
3595
- } catch (L) {
3596
- console.error(L);
3598
+ } catch (A) {
3599
+ console.error(A);
3597
3600
  } finally {
3598
3601
  p.value = !1;
3599
3602
  }
3600
3603
  }, x = () => {
3601
3604
  T.value = 1, _();
3602
- }, S = () => {
3603
- Object.keys(I).forEach((L) => {
3604
- I[L] = void 0;
3605
+ }, M = () => {
3606
+ Object.keys(I).forEach((A) => {
3607
+ I[A] = void 0;
3605
3608
  }), T.value = 1, _();
3606
- }, E = (L) => {
3607
- T.value = L, _();
3608
- }, q = (L) => {
3609
- g.value = L, T.value = 1, _();
3610
- }, Z = () => {
3609
+ }, E = (A) => {
3610
+ T.value = A, _();
3611
+ }, q = (A) => {
3612
+ g.value = A, T.value = 1, _();
3613
+ }, J = () => {
3611
3614
  _();
3612
3615
  }, O = j(() => ({
3613
3616
  current: T.value,
@@ -3624,10 +3627,10 @@ function Ra(r) {
3624
3627
  pagination: O,
3625
3628
  getData: _,
3626
3629
  handleSearch: x,
3627
- handleReset: S,
3630
+ handleReset: M,
3628
3631
  handlePageChange: E,
3629
3632
  handleSizeChange: q,
3630
- refresh: Z
3633
+ refresh: J
3631
3634
  };
3632
3635
  }
3633
3636
  function za(r) {
@@ -3658,7 +3661,7 @@ const Wt = [
3658
3661
  {
3659
3662
  path: "/dashboard",
3660
3663
  name: "Dashboard",
3661
- component: () => import("./index-BIbDky4c.js"),
3664
+ component: () => import("./index-CAP6PwZY.js"),
3662
3665
  meta: {
3663
3666
  title: "仪表盘",
3664
3667
  icon: "dashboard",
@@ -3669,7 +3672,7 @@ const Wt = [
3669
3672
  {
3670
3673
  path: "/system/user",
3671
3674
  name: "SystemUser",
3672
- component: () => import("./index-Cm5czPiu.js"),
3675
+ component: () => import("./index-DFzwy0q2.js"),
3673
3676
  meta: {
3674
3677
  title: "用户管理",
3675
3678
  icon: "user",
@@ -3679,7 +3682,7 @@ const Wt = [
3679
3682
  {
3680
3683
  path: "/system/role",
3681
3684
  name: "SystemRole",
3682
- component: () => import("./index-BtIXVAVa.js"),
3685
+ component: () => import("./index-Bh-uiX8x.js"),
3683
3686
  meta: {
3684
3687
  title: "角色管理",
3685
3688
  icon: "role",
@@ -3689,7 +3692,7 @@ const Wt = [
3689
3692
  {
3690
3693
  path: "/system/menu",
3691
3694
  name: "SystemMenu",
3692
- component: () => import("./index-DynapQge.js"),
3695
+ component: () => import("./index-CxZil1E5.js"),
3693
3696
  meta: {
3694
3697
  title: "菜单管理",
3695
3698
  icon: "menu",
@@ -3711,7 +3714,7 @@ const Wt = [
3711
3714
  {
3712
3715
  path: "/dashboard",
3713
3716
  name: "Dashboard",
3714
- component: () => import("./index-BIbDky4c.js"),
3717
+ component: () => import("./index-CAP6PwZY.js"),
3715
3718
  meta: {
3716
3719
  title: "仪表盘",
3717
3720
  icon: "dashboard",
@@ -3731,7 +3734,7 @@ const Wt = [
3731
3734
  {
3732
3735
  path: "user",
3733
3736
  name: "SystemUser",
3734
- component: () => import("./index-Cm5czPiu.js"),
3737
+ component: () => import("./index-DFzwy0q2.js"),
3735
3738
  meta: {
3736
3739
  title: "用户管理",
3737
3740
  icon: "user",
@@ -3741,7 +3744,7 @@ const Wt = [
3741
3744
  {
3742
3745
  path: "role",
3743
3746
  name: "SystemRole",
3744
- component: () => import("./index-BtIXVAVa.js"),
3747
+ component: () => import("./index-Bh-uiX8x.js"),
3745
3748
  meta: {
3746
3749
  title: "角色管理",
3747
3750
  icon: "role",
@@ -3751,7 +3754,7 @@ const Wt = [
3751
3754
  {
3752
3755
  path: "menu",
3753
3756
  name: "SystemMenu",
3754
- component: () => import("./index-DynapQge.js"),
3757
+ component: () => import("./index-CxZil1E5.js"),
3755
3758
  meta: {
3756
3759
  title: "菜单管理",
3757
3760
  icon: "menu",
@@ -3814,7 +3817,7 @@ const Wt = [
3814
3817
  scrollBehavior: () => ({ left: 0, top: 0 })
3815
3818
  }), fa = ["/login"];
3816
3819
  Yt.beforeEach(async (r, f, v) => {
3817
- const p = Pe();
3820
+ const p = Re();
3818
3821
  if (p.initTheme(), zt())
3819
3822
  if (r.path === "/login")
3820
3823
  v({ path: "/" });
@@ -3903,7 +3906,7 @@ const ma = ["/login", "/404", "/403"];
3903
3906
  function ni(r, f = {}) {
3904
3907
  const v = f.whiteList || ma, p = f.loginPath || "/login", h = f.homePath || "/";
3905
3908
  r.beforeEach(async (k, T, g) => {
3906
- const I = Pe(), _ = $e(), x = ze();
3909
+ const I = Re(), _ = $e(), x = ze();
3907
3910
  if (I.initTheme(), ut())
3908
3911
  if (k.path === p)
3909
3912
  g({ path: h });
@@ -4028,7 +4031,7 @@ function wi(r) {
4028
4031
  config: {
4029
4032
  appName: r.appName || "XTO App",
4030
4033
  appId: ct(),
4031
- clientId: Dt(),
4034
+ clientId: Pt(),
4032
4035
  apiBaseUrl: rs(),
4033
4036
  indexPath: r.indexPath || "/dashboard",
4034
4037
  loginPath: r.loginPath || "/login"
@@ -4083,7 +4086,7 @@ export {
4083
4086
  us as af,
4084
4087
  is as ag,
4085
4088
  fs as ah,
4086
- Rt as ai,
4089
+ Dt as ai,
4087
4090
  cs as aj,
4088
4091
  ni as ak,
4089
4092
  Wt as al,
@@ -4093,12 +4096,12 @@ export {
4093
4096
  ii as ap,
4094
4097
  ui as aq,
4095
4098
  Ba as ar,
4096
- Pe as as,
4097
- Da as at,
4099
+ Re as as,
4100
+ Pa as at,
4098
4101
  Ye as au,
4099
- Pa as av,
4102
+ Ra as av,
4100
4103
  ze as aw,
4101
- Ra as ax,
4104
+ Da as ax,
4102
4105
  $e as ay,
4103
4106
  gi as b,
4104
4107
  Ua as c,
@@ -4124,5 +4127,5 @@ export {
4124
4127
  li as w,
4125
4128
  rs as x,
4126
4129
  ct as y,
4127
- Dt as z
4130
+ Pt as z
4128
4131
  };