xto-fronted 0.4.82 → 0.4.84

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,10 +1,10 @@
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";
1
+ import { ref as P, computed as j, watch as Xe, defineComponent as Ae, resolveComponent as Bt, openBlock as w, createBlock as ce, unref as y, withCtx as X, createElementBlock as N, Fragment as he, renderList as ge, createElementVNode as s, toDisplayString as q, createCommentVNode as ie, normalizeClass as _e, withDirectives as at, vShow as Jt, createVNode as R, createTextVNode as De, onMounted as _t, onUnmounted as wt, vModelText as yt, Transition as Ve, withModifiers as it, normalizeStyle as Ye, reactive as kt, createStaticVNode as st, withKeys as Zt } from "vue";
2
2
  import { defineStore as lt } from "pinia";
3
- import { useRoute as qe, useRouter as Pe, createRouter as bt, createWebHistory as kt } from "vue-router";
4
- import { SubMenu as Bt, MenuItem as st, Menu as xt, Tabs as Qt, TabPane as es } from "@xto/navigation";
5
- import { Icon as Q, Button as je } from "@xto/base";
6
- import { Drawer as Ct, Message as Le } from "@xto/feedback";
7
- import { Form as ts, FormItem as mt, Input as At, Checkbox as ss } from "@xto/form";
3
+ import { useRoute as qe, useRouter as Pe, createRouter as bt, createWebHistory as xt } from "vue-router";
4
+ import { SubMenu as gt, MenuItem as He, Menu as Ct, Tabs as Qt, TabPane as es } from "@xto/navigation";
5
+ import { Icon as Z, Button as je } from "@xto/base";
6
+ import { Drawer as Nt, Message as Le } from "@xto/feedback";
7
+ import { Form as ts, FormItem as mt, Input as Tt, Checkbox as ss } from "@xto/form";
8
8
  import ns from "axios";
9
9
  const nt = P(""), ot = P(""), rt = P("");
10
10
  function os(r) {
@@ -37,7 +37,7 @@ function rs() {
37
37
  return "";
38
38
  }
39
39
  }
40
- const Na = {
40
+ const Oa = {
41
41
  appId: nt,
42
42
  clientId: ot,
43
43
  apiBaseUrl: rt
@@ -67,59 +67,59 @@ const Na = {
67
67
  v.startsWith(Ke) && r.removeItem(v);
68
68
  });
69
69
  }
70
- }), Ze = Rt(window.localStorage), Qe = Rt(window.sessionStorage), H = {
71
- get: Ze.get,
72
- set: Ze.set,
73
- remove: Ze.remove,
74
- clear: Ze.clear
75
- }, $a = {
70
+ }), Qe = Rt(window.localStorage), et = Rt(window.sessionStorage), W = {
76
71
  get: Qe.get,
77
72
  set: Qe.set,
78
73
  remove: Qe.remove,
79
74
  clear: Qe.clear
75
+ }, Ua = {
76
+ get: et.get,
77
+ set: et.set,
78
+ remove: et.remove,
79
+ clear: et.clear
80
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
- r.value = z, H.set("appName", z);
83
- }, J = (z) => {
84
- f.value = z, H.set("indexPath", z);
81
+ const r = P(W.get("appName") || "XTO App"), f = P(W.get("indexPath") || "/dashboard"), v = P(W.get("isDark") || !1), p = P(W.get("theme") || "light"), h = P(W.get("layout") || "sidebar"), b = P(W.get("isCollapsed") || !1), T = P(W.get("showTabs") ?? !0), g = P(W.get("showFooter") ?? !0), I = P(W.get("showBreadcrumb") ?? !0), _ = P(W.get("primaryColor") || "#409eff"), x = P([]), M = P([]), E = j(() => v.value ? "dark" : "light"), G = (z) => {
82
+ r.value = z, W.set("appName", z);
83
+ }, Q = (z) => {
84
+ f.value = z, W.set("indexPath", z);
85
85
  }, O = () => {
86
86
  v.value = !v.value, p.value = v.value ? "dark" : "light", V();
87
87
  }, A = (z) => {
88
88
  p.value = z, v.value = z === "dark", V();
89
89
  }, V = () => {
90
90
  const z = document.documentElement;
91
- v.value ? z.classList.add("dark") : z.classList.remove("dark"), H.set("isDark", v.value), H.set("theme", p.value);
91
+ v.value ? z.classList.add("dark") : z.classList.remove("dark"), W.set("isDark", v.value), W.set("theme", p.value);
92
92
  }, S = () => {
93
- k.value = !k.value, H.set("isCollapsed", k.value);
94
- }, K = (z) => {
95
- h.value = z, H.set("layout", z);
96
- }, X = () => {
97
- T.value = !T.value, H.set("showTabs", T.value);
93
+ b.value = !b.value, W.set("isCollapsed", b.value);
94
+ }, H = (z) => {
95
+ h.value = z, W.set("layout", z);
96
+ }, Y = () => {
97
+ T.value = !T.value, W.set("showTabs", T.value);
98
98
  }, oe = () => {
99
- g.value = !g.value, H.set("showFooter", g.value);
99
+ g.value = !g.value, W.set("showFooter", g.value);
100
100
  }, U = () => {
101
- I.value = !I.value, H.set("showBreadcrumb", I.value);
101
+ I.value = !I.value, W.set("showBreadcrumb", I.value);
102
102
  }, L = (z) => {
103
- _.value = z, document.documentElement.style.setProperty("--color-primary", z), H.set("primaryColor", z);
104
- }, Z = (z) => {
103
+ _.value = z, document.documentElement.style.setProperty("--color-primary", z), W.set("primaryColor", z);
104
+ }, J = (z) => {
105
105
  x.value.includes(z) || x.value.push(z);
106
- }, se = (z) => {
106
+ }, ee = (z) => {
107
107
  const le = x.value.indexOf(z);
108
108
  le > -1 && x.value.splice(le, 1);
109
109
  }, $ = () => {
110
110
  x.value = [];
111
111
  }, re = (z) => {
112
112
  M.value = z;
113
- }, ee = () => {
113
+ }, te = () => {
114
114
  V(), _.value !== "#409eff" && document.documentElement.style.setProperty("--color-primary", _.value);
115
115
  };
116
- return We(v, V), {
116
+ return Xe(v, V), {
117
117
  appName: r,
118
118
  indexPath: f,
119
119
  isDark: v,
120
120
  theme: p,
121
121
  layout: h,
122
- isCollapsed: k,
122
+ isCollapsed: b,
123
123
  showTabs: T,
124
124
  showFooter: g,
125
125
  showBreadcrumb: I,
@@ -127,21 +127,21 @@ const Na = {
127
127
  cachedViews: x,
128
128
  mixSubMenus: M,
129
129
  themeClass: E,
130
- setAppName: q,
131
- setIndexPath: J,
130
+ setAppName: G,
131
+ setIndexPath: Q,
132
132
  toggleTheme: O,
133
133
  toggleCollapse: S,
134
134
  setTheme: A,
135
- setLayout: K,
136
- toggleTabs: X,
135
+ setLayout: H,
136
+ toggleTabs: Y,
137
137
  toggleFooter: oe,
138
138
  toggleBreadcrumb: U,
139
139
  setPrimaryColor: L,
140
- addCachedView: Z,
141
- removeCachedView: se,
140
+ addCachedView: J,
141
+ removeCachedView: ee,
142
142
  clearCachedViews: $,
143
143
  setMixSubMenus: re,
144
- initTheme: ee
144
+ initTheme: te
145
145
  };
146
146
  }), ht = "menu_list", as = {
147
147
  menuCode: "home",
@@ -152,19 +152,19 @@ const Na = {
152
152
  isDefault: !1,
153
153
  isOut: !1
154
154
  }, ze = lt("menu", () => {
155
- const r = P(H.get(ht) || []), f = j(() => r.value.length > 0);
155
+ const r = P(W.get(ht) || []), f = j(() => r.value.length > 0);
156
156
  return {
157
157
  menuList: r,
158
158
  hasMenu: f,
159
159
  setMenuList: (h) => {
160
- r.value = [as, ...h], H.set(ht, r.value);
160
+ r.value = [as, ...h], W.set(ht, r.value);
161
161
  },
162
162
  clearMenu: () => {
163
- r.value = [], H.remove(ht);
163
+ r.value = [], W.remove(ht);
164
164
  }
165
165
  };
166
166
  }), Et = "/vite.svg", vt = "user_info", $e = lt("user", () => {
167
- const r = P(H.get(vt)), f = j(() => !!r.value), v = j(() => {
167
+ const r = P(W.get(vt)), f = j(() => !!r.value), v = j(() => {
168
168
  var M;
169
169
  return ((M = r.value) == null ? void 0 : M.userId) || "";
170
170
  }), p = j(() => {
@@ -173,7 +173,7 @@ const Na = {
173
173
  }), h = j(() => {
174
174
  var M;
175
175
  return ((M = r.value) == null ? void 0 : M.departmentName) || "";
176
- }), k = j(() => {
176
+ }), b = j(() => {
177
177
  var M;
178
178
  return ((M = r.value) == null ? void 0 : M.email) || "";
179
179
  }), T = j(() => {
@@ -192,50 +192,50 @@ const Na = {
192
192
  userId: v,
193
193
  userName: p,
194
194
  departmentName: h,
195
- email: k,
195
+ email: b,
196
196
  mobilePhone: T,
197
197
  positionName: g,
198
198
  avatar: I,
199
199
  setUserInfo: (M) => {
200
- r.value = M, H.set(vt, M);
200
+ r.value = M, W.set(vt, M);
201
201
  },
202
202
  clearUserInfo: () => {
203
- r.value = null, H.remove(vt);
203
+ r.value = null, W.remove(vt);
204
204
  }
205
205
  };
206
- }), Nt = "token", $t = "token_type", St = "refresh_token", Mt = "expires_time", It = "refresh_time", Lt = "code", ut = () => H.get(Nt), is = (r) => {
207
- H.set(Nt, r);
208
- }, ls = () => H.get($t), cs = (r) => {
209
- H.set($t, r);
210
- }, Sa = () => H.get(St), us = (r) => {
211
- H.set(St, r);
212
- }, ds = () => H.get(Mt), fs = (r) => {
213
- H.set(Mt, r);
214
- }, Ma = () => H.get(It), ps = (r) => {
215
- H.set(It, r);
216
- }, Ia = () => H.get(Lt), ms = (r) => {
217
- H.set(Lt, r);
206
+ }), $t = "token", St = "token_type", Mt = "refresh_token", It = "expires_time", Lt = "refresh_time", At = "code", ut = () => W.get($t), is = (r) => {
207
+ W.set($t, r);
208
+ }, ls = () => W.get(St), cs = (r) => {
209
+ W.set(St, r);
210
+ }, Ba = () => W.get(Mt), us = (r) => {
211
+ W.set(Mt, r);
212
+ }, ds = () => W.get(It), fs = (r) => {
213
+ W.set(It, r);
214
+ }, Pa = () => W.get(Lt), ps = (r) => {
215
+ W.set(Lt, r);
216
+ }, Ra = () => W.get(At), ms = (r) => {
217
+ W.set(At, r);
218
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
- }, He = () => {
221
- H.remove(Nt), H.remove($t), H.remove(St), H.remove(Mt), H.remove(It), H.remove(Lt);
220
+ }, We = () => {
221
+ W.remove($t), W.remove(St), W.remove(Mt), W.remove(It), W.remove(Lt), W.remove(At);
222
222
  }, hs = () => {
223
223
  const r = ds();
224
224
  return r ? Date.now() > r : !0;
225
- }, zt = () => !!ut() && !hs(), Ye = lt("auth", () => {
226
- const r = P(ut()), f = j(() => zt()), v = P(""), p = P(""), h = P(""), k = P("/login");
225
+ }, zt = () => !!ut() && !hs(), Je = lt("auth", () => {
226
+ const r = P(ut()), f = j(() => zt()), v = P(""), p = P(""), h = P(""), b = P("/login");
227
227
  return {
228
228
  token: r,
229
229
  isLoggedIn: f,
230
230
  baseUrl: v,
231
231
  appId: p,
232
232
  clientId: h,
233
- loginPath: k,
233
+ loginPath: b,
234
234
  login: (E) => {
235
235
  r.value = E.access_token, Dt(E);
236
236
  },
237
237
  logout: () => {
238
- r.value = null, He();
238
+ r.value = null, We();
239
239
  },
240
240
  setBaseUrl: (E) => {
241
241
  v.value = E;
@@ -247,16 +247,16 @@ const Na = {
247
247
  h.value = E;
248
248
  },
249
249
  setLoginPath: (E) => {
250
- k.value = E;
250
+ b.value = E;
251
251
  }
252
252
  };
253
253
  }), vs = { class: "menu-item__content" }, gs = { class: "menu-item__icon" }, _s = {
254
254
  key: 1,
255
255
  class: "menu-item__char"
256
- }, ws = { class: "menu-item__text" }, ys = { class: "menu-item__content" }, bs = {
256
+ }, ws = { class: "menu-item__text" }, ys = { class: "menu-item__content" }, ks = {
257
257
  key: 0,
258
258
  class: "menu-item__icon"
259
- }, ks = {
259
+ }, bs = {
260
260
  key: 1,
261
261
  class: "menu-item__char"
262
262
  }, xs = { class: "menu-item__text" }, Cs = /* @__PURE__ */ Ae({
@@ -404,46 +404,46 @@ const Na = {
404
404
  list: "list",
405
405
  grid: "grid"
406
406
  }[g] || g;
407
- }, h = (g) => g ? g.charAt(0) : "", k = (g) => v.has(g), T = j(() => f.menu.children && f.menu.children.length > 0);
407
+ }, h = (g) => g ? g.charAt(0) : "", b = (g) => v.has(g), T = j(() => f.menu.children && f.menu.children.length > 0);
408
408
  return (g, I) => {
409
- const _ = Ut("SidebarMenuItem", !0);
410
- return T.value ? (y(), me(b(Bt), {
409
+ const _ = Bt("SidebarMenuItem", !0);
410
+ return T.value ? (w(), ce(y(gt), {
411
411
  key: 0,
412
412
  index: r.menu.menuUrl
413
413
  }, {
414
- title: Y(() => [
415
- n("span", vs, [
416
- n("span", gs, [
417
- k(p(r.menu.icon)) ? (y(), me(b(Q), {
414
+ title: X(() => [
415
+ s("span", vs, [
416
+ s("span", gs, [
417
+ b(p(r.menu.icon)) ? (w(), ce(y(Z), {
418
418
  key: 0,
419
419
  name: p(r.menu.icon),
420
420
  size: 16
421
- }, null, 8, ["name"])) : (y(), N("span", _s, W(h(r.menu.menuName)), 1))
421
+ }, null, 8, ["name"])) : (w(), N("span", _s, q(h(r.menu.menuName)), 1))
422
422
  ]),
423
- n("span", ws, W(r.menu.menuName), 1)
423
+ s("span", ws, q(r.menu.menuName), 1)
424
424
  ])
425
425
  ]),
426
- default: Y(() => [
427
- (y(!0), N(ve, null, ye(r.menu.children, (x) => (y(), me(_, {
426
+ default: X(() => [
427
+ (w(!0), N(he, null, ge(r.menu.children, (x) => (w(), ce(_, {
428
428
  key: x.menuUrl,
429
429
  menu: x
430
430
  }, null, 8, ["menu"]))), 128))
431
431
  ]),
432
432
  _: 1
433
- }, 8, ["index"])) : (y(), me(b(st), {
433
+ }, 8, ["index"])) : (w(), ce(y(He), {
434
434
  key: 1,
435
435
  index: r.menu.menuUrl
436
436
  }, {
437
- default: Y(() => [
438
- n("span", ys, [
439
- r.menu.menuName !== "首页" ? (y(), N("span", bs, [
440
- k(p(r.menu.icon)) ? (y(), me(b(Q), {
437
+ default: X(() => [
438
+ s("span", ys, [
439
+ r.menu.menuName !== "首页" ? (w(), N("span", ks, [
440
+ b(p(r.menu.icon)) ? (w(), ce(y(Z), {
441
441
  key: 0,
442
442
  name: p(r.menu.icon),
443
443
  size: 16
444
- }, null, 8, ["name"])) : (y(), N("span", ks, W(h(r.menu.menuName)), 1))
444
+ }, null, 8, ["name"])) : (w(), N("span", bs, q(h(r.menu.menuName)), 1))
445
445
  ])) : ie("", !0),
446
- n("span", xs, W(r.menu.menuName), 1)
446
+ s("span", xs, q(r.menu.menuName), 1)
447
447
  ])
448
448
  ]),
449
449
  _: 1
@@ -455,13 +455,13 @@ const Na = {
455
455
  for (const [p, h] of f)
456
456
  v[p] = h;
457
457
  return v;
458
- }, Es = /* @__PURE__ */ Se(Cs, [["__scopeId", "data-v-d160ae6a"]]), Ns = {
458
+ }, Ns = /* @__PURE__ */ Se(Cs, [["__scopeId", "data-v-d160ae6a"]]), Es = {
459
459
  key: 0,
460
460
  class: "sidebar__logo"
461
461
  }, $s = {
462
462
  key: 1,
463
463
  class: "sidebar__user"
464
- }, Ss = { class: "sidebar__user-info" }, Ms = { class: "sidebar__user-name" }, Is = { class: "sidebar__user-role" }, Tt = "sidebar_opened_menus", Ls = /* @__PURE__ */ Ae({
464
+ }, Ss = { class: "sidebar__user-info" }, Ms = { class: "sidebar__user-name" }, Is = { class: "sidebar__user-role" }, Ot = "sidebar_opened_menus", Ls = /* @__PURE__ */ Ae({
465
465
  __name: "Sidebar",
466
466
  props: {
467
467
  menuList: { default: () => [] },
@@ -469,79 +469,79 @@ const Na = {
469
469
  showUser: { type: Boolean, default: !0 }
470
470
  },
471
471
  setup(r) {
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);
472
+ const f = r, v = qe(), p = Pe(), h = ze(), b = $e(), T = Je(), g = Re(), I = j(() => f.menuList.length > 0 ? f.menuList : h.menuList), _ = j(() => g.isCollapsed), x = j(() => v.path), M = P(W.get(Ot) || []);
473
+ Xe(M, (S) => {
474
+ W.set(Ot, S);
475
475
  }, { deep: !0 });
476
- const E = (S, K, X = []) => {
476
+ const E = (S, H, Y = []) => {
477
477
  var oe;
478
478
  for (const U of S) {
479
- if (K === U.menuUrl || K.startsWith(U.menuUrl + "/"))
480
- return [...X, U.menuUrl];
479
+ if (H === U.menuUrl || H.startsWith(U.menuUrl + "/"))
480
+ return [...Y, U.menuUrl];
481
481
  if ((oe = U.children) != null && oe.length) {
482
- const L = E(U.children, K, [...X, U.menuUrl]);
482
+ const L = E(U.children, H, [...Y, U.menuUrl]);
483
483
  if (L) return L;
484
484
  }
485
485
  }
486
486
  return null;
487
487
  };
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 = [];
488
+ Xe([() => v.path, I], ([S, H]) => {
489
+ if (H.length > 0) {
490
+ const Y = E(H, S);
491
+ Y ? M.value = Y.slice(0, -1) : M.value = [];
492
492
  }
493
493
  }, { immediate: !0 });
494
- const q = j(() => g.isDark ? "#1d1e1f" : "#fff"), J = j(() => g.isDark ? "#cfd3dc" : "#303133"), O = j(() => "#409eff"), A = (S) => {
494
+ const G = j(() => g.isDark ? "#1d1e1f" : "#fff"), Q = j(() => g.isDark ? "#cfd3dc" : "#303133"), O = j(() => "#409eff"), A = (S) => {
495
495
  S && S !== v.path && p.push(S);
496
496
  }, V = () => {
497
- T.logout(), k.clearUserInfo(), h.clearMenu(), p.push("/login");
497
+ T.logout(), b.clearUserInfo(), h.clearMenu(), p.push("/login");
498
498
  };
499
- return (S, K) => (y(), N("div", {
500
- class: ge(["sidebar", { "sidebar--collapsed": _.value }])
499
+ return (S, H) => (w(), N("div", {
500
+ class: _e(["sidebar", { "sidebar--collapsed": _.value }])
501
501
  }, [
502
- f.showLogo ? (y(), N("div", Ns, [
503
- K[2] || (K[2] = n("img", {
502
+ f.showLogo ? (w(), N("div", Es, [
503
+ H[2] || (H[2] = s("img", {
504
504
  src: Et,
505
505
  alt: "Logo",
506
506
  class: "sidebar__logo-img"
507
507
  }, null, -1)),
508
- at(n("span", { class: "sidebar__logo-text" }, W(b(g).appName), 513), [
508
+ at(s("span", { class: "sidebar__logo-text" }, q(y(g).appName), 513), [
509
509
  [Jt, !_.value]
510
510
  ])
511
511
  ])) : ie("", !0),
512
- R(b(xt), {
512
+ R(y(Ct), {
513
513
  modelValue: x.value,
514
- "onUpdate:modelValue": K[0] || (K[0] = (X) => x.value = X),
514
+ "onUpdate:modelValue": H[0] || (H[0] = (Y) => x.value = Y),
515
515
  openeds: M.value,
516
- "onUpdate:openeds": K[1] || (K[1] = (X) => M.value = X),
516
+ "onUpdate:openeds": H[1] || (H[1] = (Y) => M.value = Y),
517
517
  mode: "vertical",
518
518
  collapse: _.value,
519
519
  "collapse-transition": !1,
520
- "background-color": q.value,
521
- "text-color": J.value,
520
+ "background-color": G.value,
521
+ "text-color": Q.value,
522
522
  "active-text-color": O.value,
523
523
  class: "sidebar__menu",
524
524
  onSelect: A
525
525
  }, {
526
- default: Y(() => [
527
- (y(!0), N(ve, null, ye(I.value, (X) => (y(), me(Es, {
528
- key: X.menuUrl,
529
- menu: X
526
+ default: X(() => [
527
+ (w(!0), N(he, null, ge(I.value, (Y) => (w(), ce(Ns, {
528
+ key: Y.menuUrl,
529
+ menu: Y
530
530
  }, null, 8, ["menu"]))), 128))
531
531
  ]),
532
532
  _: 1
533
533
  }, 8, ["modelValue", "openeds", "collapse", "background-color", "text-color", "active-text-color"]),
534
- f.showUser && !_.value ? (y(), N("div", $s, [
535
- n("div", Ss, [
536
- n("span", Ms, W(b(k).userName), 1),
537
- n("span", Is, W(b(k).departmentName), 1)
534
+ f.showUser && !_.value ? (w(), N("div", $s, [
535
+ s("div", Ss, [
536
+ s("span", Ms, q(y(b).userName), 1),
537
+ s("span", Is, q(y(b).departmentName), 1)
538
538
  ]),
539
- R(b(je), {
539
+ R(y(je), {
540
540
  type: "text",
541
541
  size: "small",
542
542
  onClick: V
543
543
  }, {
544
- default: Y(() => [...K[3] || (K[3] = [
544
+ default: X(() => [...H[3] || (H[3] = [
545
545
  De("退出", -1)
546
546
  ])]),
547
547
  _: 1
@@ -549,7 +549,7 @@ const Na = {
549
549
  ])) : ie("", !0)
550
550
  ], 2));
551
551
  }
552
- }), Ot = /* @__PURE__ */ Se(Ls, [["__scopeId", "data-v-3c79a9c4"]]), As = { class: "header" }, Ts = { class: "header__left" }, Os = {
552
+ }), Ut = /* @__PURE__ */ Se(Ls, [["__scopeId", "data-v-3c79a9c4"]]), As = { class: "header" }, Ts = { class: "header__left" }, Os = {
553
553
  key: 0,
554
554
  class: "header__breadcrumb"
555
555
  }, Us = {
@@ -588,7 +588,7 @@ const Na = {
588
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({
589
589
  __name: "Header",
590
590
  setup(r) {
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 = [
591
+ const f = qe(), v = Pe(), p = Re(), h = $e(), b = Je(), T = ze(), g = P(!1), I = P(!1), _ = P(null), x = P(!1), M = P(!1), E = P(""), G = P(null), Q = P(!1), O = [
592
592
  { value: "sidebar", label: "左侧菜单", icon: "sidebar-left" },
593
593
  { value: "top", label: "顶部菜单", icon: "menu" },
594
594
  { value: "mix", label: "混合菜单", icon: "grid" }
@@ -602,12 +602,12 @@ const Na = {
602
602
  ], V = j(() => f.matched.filter((B) => B.meta && B.meta.title).map((B) => ({
603
603
  title: B.meta.title,
604
604
  path: B.path
605
- }))), S = (G, B = "") => {
605
+ }))), S = (K, B = "") => {
606
606
  const t = [];
607
- return G.forEach((e) => {
607
+ return K.forEach((e) => {
608
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 });
609
609
  }), t;
610
- }, K = /* @__PURE__ */ new Set([
610
+ }, H = /* @__PURE__ */ new Set([
611
611
  "arrow-up",
612
612
  "arrow-down",
613
613
  "arrow-left",
@@ -709,10 +709,10 @@ const Na = {
709
709
  "sun",
710
710
  "theme",
711
711
  "skin"
712
- ]), X = (G) => {
713
- if (!G || G === "") return "";
714
- if (G.startsWith("tineco-icon-")) {
715
- const t = G.replace("tineco-icon-", "");
712
+ ]), Y = (K) => {
713
+ if (!K || K === "") return "";
714
+ if (K.startsWith("tineco-icon-")) {
715
+ const t = K.replace("tineco-icon-", "");
716
716
  return {
717
717
  home: "home",
718
718
  dashboard: "dashboard",
@@ -745,216 +745,216 @@ const Na = {
745
745
  app: "app",
746
746
  list: "list",
747
747
  grid: "grid"
748
- }[G] || G;
749
- }, oe = (G) => G ? G.charAt(0) : "", U = (G) => K.has(G), L = j(() => E.value.trim() ? S(T.menuList).filter(
748
+ }[K] || K;
749
+ }, oe = (K) => K ? K.charAt(0) : "", U = (K) => H.has(K), L = j(() => E.value.trim() ? S(T.menuList).filter(
750
750
  (B) => B.title.toLowerCase().includes(E.value.toLowerCase())
751
- ) : []), Z = j(() => p.layout), se = () => {
751
+ ) : []), J = j(() => p.layout), ee = () => {
752
752
  p.toggleCollapse();
753
753
  }, $ = () => {
754
754
  p.toggleTheme();
755
755
  }, re = () => {
756
756
  I.value = !0;
757
- }, ee = (G) => {
758
- p.setLayout(G), I.value = !1;
759
- }, z = (G) => {
760
- J.value = G;
757
+ }, te = (K) => {
758
+ p.setLayout(K), I.value = !1;
759
+ }, z = (K) => {
760
+ Q.value = K;
761
761
  const B = document.documentElement;
762
- G ? B.classList.add("grey-mode") : B.classList.remove("grey-mode");
762
+ K ? B.classList.add("grey-mode") : B.classList.remove("grey-mode");
763
763
  }, le = () => {
764
- z(!J.value), I.value = !1;
765
- }, ue = () => {
764
+ z(!Q.value), I.value = !1;
765
+ }, de = () => {
766
766
  p.toggleTheme(), I.value = !1;
767
767
  }, Ce = () => {
768
768
  document.fullscreenElement ? document.exitFullscreen() : document.documentElement.requestFullscreen();
769
- }, de = () => {
769
+ }, fe = () => {
770
770
  x.value = !!document.fullscreenElement;
771
- }, be = () => {
772
- g.value = !g.value;
773
771
  }, ke = () => {
772
+ g.value = !g.value;
773
+ }, be = () => {
774
774
  g.value = !1;
775
- }, _e = () => {
775
+ }, we = () => {
776
776
  M.value = !1, E.value = "";
777
- }, Te = (G) => {
778
- v.push(G), _e();
779
- }, Ee = (G) => {
780
- p.setPrimaryColor(G), I.value = !1;
777
+ }, Te = (K) => {
778
+ v.push(K), we();
779
+ }, Ne = (K) => {
780
+ p.setPrimaryColor(K), I.value = !1;
781
781
  }, Oe = () => {
782
- ke(), v.push("/profile");
782
+ be(), v.push("/profile");
783
783
  }, C = () => {
784
- ke(), v.push("/change-password");
784
+ be(), v.push("/change-password");
785
785
  }, Ue = () => {
786
- ke(), k.logout(), h.clearUserInfo(), T.clearMenu(), v.push("/login");
787
- }, Be = (G) => {
788
- _.value && !_.value.contains(G.target) && ke(), q.value && !q.value.contains(G.target) && _e();
789
- }, Me = (G) => {
790
- G.key === "Escape" && (_e(), ke());
786
+ be(), b.logout(), h.clearUserInfo(), T.clearMenu(), v.push("/login");
787
+ }, Be = (K) => {
788
+ _.value && !_.value.contains(K.target) && be(), G.value && !G.value.contains(K.target) && we();
789
+ }, Me = (K) => {
790
+ K.key === "Escape" && (we(), be());
791
791
  };
792
- return gt(() => {
793
- document.addEventListener("click", Be), document.addEventListener("fullscreenchange", de), document.addEventListener("keydown", Me), p.initTheme(), J.value = document.documentElement.classList.contains("grey-mode");
794
- }), _t(() => {
795
- document.removeEventListener("click", Be), document.removeEventListener("fullscreenchange", de), document.removeEventListener("keydown", Me);
796
- }), (G, B) => {
792
+ return _t(() => {
793
+ document.addEventListener("click", Be), document.addEventListener("fullscreenchange", fe), document.addEventListener("keydown", Me), p.initTheme(), Q.value = document.documentElement.classList.contains("grey-mode");
794
+ }), wt(() => {
795
+ document.removeEventListener("click", Be), document.removeEventListener("fullscreenchange", fe), document.removeEventListener("keydown", Me);
796
+ }), (K, B) => {
797
797
  var t;
798
- return y(), N("div", As, [
799
- n("div", Ts, [
800
- n("div", {
798
+ return w(), N("div", As, [
799
+ s("div", Ts, [
800
+ s("div", {
801
801
  class: "header__collapse",
802
- onClick: se
802
+ onClick: ee
803
803
  }, [
804
- R(b(Q), {
805
- name: b(p).isCollapsed ? "menu-unfold" : "menu-fold",
804
+ R(y(Z), {
805
+ name: y(p).isCollapsed ? "menu-unfold" : "menu-fold",
806
806
  size: 18
807
807
  }, null, 8, ["name"])
808
808
  ]),
809
- b(p).showBreadcrumb ? (y(), N("div", Os, [
810
- (y(!0), N(ve, null, ye(V.value, (e, o) => (y(), N("span", {
809
+ y(p).showBreadcrumb ? (w(), N("div", Os, [
810
+ (w(!0), N(he, null, ge(V.value, (e, o) => (w(), N("span", {
811
811
  key: e.path
812
812
  }, [
813
- o > 0 ? (y(), N("span", Us, "/")) : ie("", !0),
814
- n("span", {
815
- class: ge({ "is-current": o === V.value.length - 1 })
816
- }, W(e.title), 3)
813
+ o > 0 ? (w(), N("span", Us, "/")) : ie("", !0),
814
+ s("span", {
815
+ class: _e({ "is-current": o === V.value.length - 1 })
816
+ }, q(e.title), 3)
817
817
  ]))), 128))
818
818
  ])) : ie("", !0)
819
819
  ]),
820
- n("div", Bs, [
821
- n("div", {
820
+ s("div", Bs, [
821
+ s("div", {
822
822
  class: "header__search",
823
823
  ref_key: "searchRef",
824
- ref: q
824
+ ref: G
825
825
  }, [
826
- R(b(Q), {
826
+ R(y(Z), {
827
827
  name: "search",
828
828
  size: 14,
829
829
  class: "header__search-icon"
830
830
  }),
831
- at(n("input", {
831
+ at(s("input", {
832
832
  "onUpdate:modelValue": B[0] || (B[0] = (e) => E.value = e),
833
833
  type: "text",
834
834
  class: "header__search-input",
835
835
  placeholder: "搜索菜单...",
836
836
  onFocus: B[1] || (B[1] = (e) => M.value = !0)
837
837
  }, null, 544), [
838
- [wt, E.value]
838
+ [yt, E.value]
839
839
  ]),
840
840
  R(Ve, { name: "search-dropdown" }, {
841
- default: Y(() => [
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", {
841
+ default: X(() => [
842
+ M.value && (L.value.length > 0 || E.value) ? (w(), N("div", Ps, [
843
+ L.value.length > 0 ? (w(), N("div", Rs, [
844
+ (w(!0), N(he, null, ge(L.value, (e) => (w(), N("div", {
845
845
  key: e.path,
846
846
  class: "header__search-item",
847
847
  onClick: (o) => Te(e.path)
848
848
  }, [
849
- e.title !== "首页" ? (y(), N("span", zs, [
850
- U(X(e.icon)) ? (y(), me(b(Q), {
849
+ e.title !== "首页" ? (w(), N("span", zs, [
850
+ U(Y(e.icon)) ? (w(), ce(y(Z), {
851
851
  key: 0,
852
- name: X(e.icon),
852
+ name: Y(e.icon),
853
853
  size: 16
854
- }, null, 8, ["name"])) : (y(), N("span", Fs, W(oe(e.title)), 1))
854
+ }, null, 8, ["name"])) : (w(), N("span", Fs, q(oe(e.title)), 1))
855
855
  ])) : ie("", !0),
856
- n("span", Vs, W(e.title), 1),
857
- e.parentTitle ? (y(), N("span", js, W(e.parentTitle), 1)) : ie("", !0)
856
+ s("span", Vs, q(e.title), 1),
857
+ e.parentTitle ? (w(), N("span", js, q(e.parentTitle), 1)) : ie("", !0)
858
858
  ], 8, Ds))), 128))
859
- ])) : (y(), N("div", qs, " 未找到匹配的菜单 "))
859
+ ])) : (w(), N("div", qs, " 未找到匹配的菜单 "))
860
860
  ])) : ie("", !0)
861
861
  ]),
862
862
  _: 1
863
863
  })
864
864
  ], 512),
865
- n("div", {
865
+ s("div", {
866
866
  class: "header__action",
867
867
  onClick: Ce,
868
868
  title: x.value ? "退出全屏" : "全屏"
869
869
  }, [
870
- R(b(Q), {
870
+ R(y(Z), {
871
871
  name: x.value ? "fullscreen-exit" : "fullscreen",
872
872
  size: 16
873
873
  }, null, 8, ["name"])
874
874
  ], 8, Gs),
875
- n("div", {
875
+ s("div", {
876
876
  class: "header__action",
877
877
  onClick: re,
878
878
  title: "换肤设置"
879
879
  }, [
880
- R(b(Q), {
880
+ R(y(Z), {
881
881
  name: "skin",
882
882
  size: 16
883
883
  })
884
884
  ]),
885
- n("div", {
885
+ s("div", {
886
886
  class: "header__action",
887
887
  onClick: $,
888
888
  title: "切换主题"
889
889
  }, [
890
- R(b(Q), {
891
- name: b(p).isDark ? "sun" : "moon",
890
+ R(y(Z), {
891
+ name: y(p).isDark ? "sun" : "moon",
892
892
  size: 16
893
893
  }, null, 8, ["name"])
894
894
  ]),
895
- n("div", {
895
+ s("div", {
896
896
  class: "header__user",
897
897
  ref_key: "dropdownRef",
898
898
  ref: _
899
899
  }, [
900
- n("div", {
900
+ s("div", {
901
901
  class: "header__user-trigger",
902
- onClick: it(be, ["stop"])
902
+ onClick: it(ke, ["stop"])
903
903
  }, [
904
- n("div", Ks, [
905
- n("span", null, W(((t = b(h).userName) == null ? void 0 : t.charAt(0)) || "U"), 1)
904
+ s("div", Ks, [
905
+ s("span", null, q(((t = y(h).userName) == null ? void 0 : t.charAt(0)) || "U"), 1)
906
906
  ]),
907
- n("span", Hs, W(b(h).userName), 1),
908
- n("span", {
909
- class: ge(["header__user-arrow", { "is-active": g.value }])
907
+ s("span", Hs, q(y(h).userName), 1),
908
+ s("span", {
909
+ class: _e(["header__user-arrow", { "is-active": g.value }])
910
910
  }, "▼", 2)
911
911
  ]),
912
912
  R(Ve, { name: "dropdown" }, {
913
- default: Y(() => {
913
+ default: X(() => {
914
914
  var e;
915
915
  return [
916
- g.value ? (y(), N("div", Ws, [
917
- n("div", Xs, [
918
- n("div", Ys, [
919
- n("span", null, W(((e = b(h).userName) == null ? void 0 : e.charAt(0)) || "U"), 1)
916
+ g.value ? (w(), N("div", Ws, [
917
+ s("div", Xs, [
918
+ s("div", Ys, [
919
+ s("span", null, q(((e = y(h).userName) == null ? void 0 : e.charAt(0)) || "U"), 1)
920
920
  ]),
921
- n("div", Js, [
922
- n("div", Zs, W(b(h).userName), 1),
923
- n("div", Qs, W(b(h).departmentName), 1)
921
+ s("div", Js, [
922
+ s("div", Zs, q(y(h).userName), 1),
923
+ s("div", Qs, q(y(h).departmentName), 1)
924
924
  ])
925
925
  ]),
926
- B[7] || (B[7] = n("div", { class: "header__dropdown-divider" }, null, -1)),
927
- n("div", en, [
928
- n("div", {
926
+ B[7] || (B[7] = s("div", { class: "header__dropdown-divider" }, null, -1)),
927
+ s("div", en, [
928
+ s("div", {
929
929
  class: "header__dropdown-item",
930
930
  onClick: Oe
931
931
  }, [
932
- R(b(Q), {
932
+ R(y(Z), {
933
933
  name: "user",
934
934
  size: 16
935
935
  }),
936
- B[3] || (B[3] = n("span", null, "个人信息", -1))
936
+ B[3] || (B[3] = s("span", null, "个人信息", -1))
937
937
  ]),
938
- n("div", {
938
+ s("div", {
939
939
  class: "header__dropdown-item",
940
940
  onClick: C
941
941
  }, [
942
- R(b(Q), {
942
+ R(y(Z), {
943
943
  name: "lock",
944
944
  size: 16
945
945
  }),
946
- B[4] || (B[4] = n("span", null, "修改密码", -1))
946
+ B[4] || (B[4] = s("span", null, "修改密码", -1))
947
947
  ]),
948
- B[6] || (B[6] = n("div", { class: "header__dropdown-divider" }, null, -1)),
949
- n("div", {
948
+ B[6] || (B[6] = s("div", { class: "header__dropdown-divider" }, null, -1)),
949
+ s("div", {
950
950
  class: "header__dropdown-item header__dropdown-item--danger",
951
951
  onClick: Ue
952
952
  }, [
953
- R(b(Q), {
953
+ R(y(Z), {
954
954
  name: "logout",
955
955
  size: 16
956
956
  }),
957
- B[5] || (B[5] = n("span", null, "退出登录", -1))
957
+ B[5] || (B[5] = s("span", null, "退出登录", -1))
958
958
  ])
959
959
  ])
960
960
  ])) : ie("", !0)
@@ -964,58 +964,58 @@ const Na = {
964
964
  })
965
965
  ], 512)
966
966
  ]),
967
- R(b(Ct), {
967
+ R(y(Nt), {
968
968
  modelValue: I.value,
969
969
  "onUpdate:modelValue": B[2] || (B[2] = (e) => I.value = e),
970
970
  title: "换肤设置",
971
971
  direction: "rtl",
972
972
  size: "320px"
973
973
  }, {
974
- default: Y(() => [
975
- n("div", tn, [
976
- n("div", sn, [
977
- B[11] || (B[11] = n("div", { class: "settings-title" }, "布局模式", -1)),
978
- n("div", nn, [
979
- (y(), N(ve, null, ye(O, (e) => n("div", {
974
+ default: X(() => [
975
+ s("div", tn, [
976
+ s("div", sn, [
977
+ B[11] || (B[11] = s("div", { class: "settings-title" }, "布局模式", -1)),
978
+ s("div", nn, [
979
+ (w(), N(he, null, ge(O, (e) => s("div", {
980
980
  key: e.value,
981
- class: ge(["layout-option", { "is-active": Z.value === e.value }]),
982
- onClick: (o) => ee(e.value)
981
+ class: _e(["layout-option", { "is-active": J.value === e.value }]),
982
+ onClick: (o) => te(e.value)
983
983
  }, [
984
- n("div", rn, [
985
- e.value === "sidebar" ? (y(), N("div", an, [...B[8] || (B[8] = [
986
- n("div", { class: "preview-aside" }, null, -1),
987
- n("div", { class: "preview-main" }, [
988
- n("div", { class: "preview-header" }),
989
- n("div", { class: "preview-content" })
984
+ s("div", rn, [
985
+ e.value === "sidebar" ? (w(), N("div", an, [...B[8] || (B[8] = [
986
+ s("div", { class: "preview-aside" }, null, -1),
987
+ s("div", { class: "preview-main" }, [
988
+ s("div", { class: "preview-header" }),
989
+ s("div", { class: "preview-content" })
990
990
  ], -1)
991
- ])])) : e.value === "top" ? (y(), N("div", ln, [...B[9] || (B[9] = [
992
- n("div", { class: "preview-header-full" }, null, -1),
993
- n("div", { class: "preview-content-full" }, null, -1)
994
- ])])) : (y(), N("div", cn, [...B[10] || (B[10] = [
995
- n("div", { class: "preview-header-mix" }, [
996
- n("div", { class: "preview-mix-left" })
991
+ ])])) : e.value === "top" ? (w(), N("div", ln, [...B[9] || (B[9] = [
992
+ s("div", { class: "preview-header-full" }, null, -1),
993
+ s("div", { class: "preview-content-full" }, null, -1)
994
+ ])])) : (w(), N("div", cn, [...B[10] || (B[10] = [
995
+ s("div", { class: "preview-header-mix" }, [
996
+ s("div", { class: "preview-mix-left" })
997
997
  ], -1),
998
- n("div", { class: "preview-mix-body" }, [
999
- n("div", { class: "preview-mix-aside" }),
1000
- n("div", { class: "preview-mix-content" })
998
+ s("div", { class: "preview-mix-body" }, [
999
+ s("div", { class: "preview-mix-aside" }),
1000
+ s("div", { class: "preview-mix-content" })
1001
1001
  ], -1)
1002
1002
  ])]))
1003
1003
  ]),
1004
- n("span", un, W(e.label), 1)
1004
+ s("span", un, q(e.label), 1)
1005
1005
  ], 10, on)), 64))
1006
1006
  ])
1007
1007
  ]),
1008
- n("div", dn, [
1009
- B[12] || (B[12] = n("div", { class: "settings-title" }, "主题色", -1)),
1010
- n("div", fn, [
1011
- (y(), N(ve, null, ye(A, (e) => n("div", {
1008
+ s("div", dn, [
1009
+ B[12] || (B[12] = s("div", { class: "settings-title" }, "主题色", -1)),
1010
+ s("div", fn, [
1011
+ (w(), N(he, null, ge(A, (e) => s("div", {
1012
1012
  key: e.value,
1013
- class: ge(["color-option", { "is-active": b(p).primaryColor === e.value }]),
1014
- style: Xe({ backgroundColor: e.value }),
1013
+ class: _e(["color-option", { "is-active": y(p).primaryColor === e.value }]),
1014
+ style: Ye({ backgroundColor: e.value }),
1015
1015
  title: e.label,
1016
- onClick: (o) => Ee(e.value)
1016
+ onClick: (o) => Ne(e.value)
1017
1017
  }, [
1018
- b(p).primaryColor === e.value ? (y(), me(b(Q), {
1018
+ y(p).primaryColor === e.value ? (w(), ce(y(Z), {
1019
1019
  key: 0,
1020
1020
  name: "check",
1021
1021
  size: 12,
@@ -1024,25 +1024,25 @@ const Na = {
1024
1024
  ], 14, pn)), 64))
1025
1025
  ])
1026
1026
  ]),
1027
- n("div", mn, [
1028
- B[17] || (B[17] = n("div", { class: "settings-title" }, "功能设置", -1)),
1029
- n("div", hn, [
1030
- n("div", vn, [
1031
- B[14] || (B[14] = n("span", null, "灰色模式", -1)),
1032
- n("div", {
1033
- class: ge(["switch-wrapper", { "is-checked": J.value }]),
1027
+ s("div", mn, [
1028
+ B[17] || (B[17] = s("div", { class: "settings-title" }, "功能设置", -1)),
1029
+ s("div", hn, [
1030
+ s("div", vn, [
1031
+ B[14] || (B[14] = s("span", null, "灰色模式", -1)),
1032
+ s("div", {
1033
+ class: _e(["switch-wrapper", { "is-checked": Q.value }]),
1034
1034
  onClick: le
1035
1035
  }, [...B[13] || (B[13] = [
1036
- n("span", { class: "switch-core" }, null, -1)
1036
+ s("span", { class: "switch-core" }, null, -1)
1037
1037
  ])], 2)
1038
1038
  ]),
1039
- n("div", gn, [
1040
- B[16] || (B[16] = n("span", null, "暗黑模式", -1)),
1041
- n("div", {
1042
- class: ge(["switch-wrapper", { "is-checked": b(p).isDark }]),
1043
- onClick: ue
1039
+ s("div", gn, [
1040
+ B[16] || (B[16] = s("span", null, "暗黑模式", -1)),
1041
+ s("div", {
1042
+ class: _e(["switch-wrapper", { "is-checked": y(p).isDark }]),
1043
+ onClick: de
1044
1044
  }, [...B[15] || (B[15] = [
1045
- n("span", { class: "switch-core" }, null, -1)
1045
+ s("span", { class: "switch-core" }, null, -1)
1046
1046
  ])], 2)
1047
1047
  ])
1048
1048
  ])
@@ -1054,62 +1054,68 @@ const Na = {
1054
1054
  ]);
1055
1055
  };
1056
1056
  }
1057
- }), wn = /* @__PURE__ */ Se(_n, [["__scopeId", "data-v-89179947"]]), yn = { class: "top-menu" }, bn = { class: "top-menu__logo" }, kn = { class: "top-menu__logo-text" }, xn = { class: "top-menu__menu-content" }, Cn = {
1057
+ }), wn = /* @__PURE__ */ Se(_n, [["__scopeId", "data-v-89179947"]]), yn = { class: "top-menu" }, kn = { class: "top-menu__logo" }, bn = { class: "top-menu__logo-text" }, xn = { class: "top-menu__menu-content" }, Cn = {
1058
1058
  key: 0,
1059
1059
  class: "top-menu__menu-icon"
1060
- }, En = {
1060
+ }, Nn = {
1061
+ key: 1,
1062
+ class: "top-menu__menu-char"
1063
+ }, En = { class: "top-menu__menu-text" }, $n = { class: "top-menu__menu-content" }, Sn = { class: "top-menu__menu-icon" }, Mn = {
1061
1064
  key: 1,
1062
1065
  class: "top-menu__menu-char"
1063
- }, Nn = { class: "top-menu__menu-text" }, $n = { class: "top-menu__menu-content" }, Sn = { class: "top-menu__menu-icon" }, Mn = {
1066
+ }, In = { class: "top-menu__menu-text" }, Ln = { class: "top-menu__menu-content" }, An = { class: "top-menu__menu-icon" }, Tn = {
1064
1067
  key: 1,
1065
1068
  class: "top-menu__menu-char"
1066
- }, In = { class: "top-menu__menu-text" }, Ln = { class: "top-menu__menu-content" }, An = {
1069
+ }, On = { class: "top-menu__menu-text" }, Un = { class: "top-menu__menu-content" }, Bn = { class: "top-menu__menu-icon" }, Pn = {
1070
+ key: 1,
1071
+ class: "top-menu__menu-char"
1072
+ }, Rn = { class: "top-menu__menu-text" }, Dn = { class: "top-menu__menu-content" }, zn = {
1067
1073
  key: 0,
1068
1074
  class: "top-menu__menu-icon"
1069
- }, Tn = {
1075
+ }, Fn = {
1070
1076
  key: 1,
1071
1077
  class: "top-menu__menu-char"
1072
- }, On = { class: "top-menu__menu-text" }, Un = { class: "top-menu__actions" }, Bn = {
1078
+ }, Vn = { class: "top-menu__menu-text" }, jn = { class: "top-menu__actions" }, qn = {
1073
1079
  key: 0,
1074
1080
  class: "top-menu__search-dropdown"
1075
- }, Pn = {
1081
+ }, Gn = {
1076
1082
  key: 0,
1077
1083
  class: "top-menu__search-results"
1078
- }, Rn = ["onClick"], Dn = {
1084
+ }, Kn = ["onClick"], Hn = {
1079
1085
  key: 0,
1080
1086
  class: "top-menu__search-icon-item"
1081
- }, zn = {
1087
+ }, Wn = {
1082
1088
  key: 1,
1083
1089
  class: "top-menu__search-char"
1084
- }, Fn = { class: "top-menu__search-item-title" }, Vn = {
1090
+ }, Xn = { class: "top-menu__search-item-title" }, Yn = {
1085
1091
  key: 1,
1086
1092
  class: "top-menu__search-item-parent"
1087
- }, jn = {
1093
+ }, Jn = {
1088
1094
  key: 1,
1089
1095
  class: "top-menu__search-empty"
1090
- }, qn = ["title"], Gn = { class: "top-menu__avatar" }, Kn = { class: "top-menu__user-name" }, Hn = {
1096
+ }, Zn = ["title"], Qn = { class: "top-menu__avatar" }, eo = { class: "top-menu__user-name" }, to = {
1091
1097
  key: 0,
1092
1098
  class: "top-menu__dropdown"
1093
- }, Wn = { class: "top-menu__dropdown-header" }, Xn = { class: "top-menu__dropdown-avatar" }, Yn = { class: "top-menu__dropdown-info" }, Jn = { class: "top-menu__dropdown-name" }, Zn = { class: "top-menu__dropdown-role" }, Qn = { class: "top-menu__dropdown-menu" }, eo = { class: "settings-drawer" }, to = { class: "settings-section" }, so = { class: "settings-layout-options" }, no = ["onClick"], oo = { class: "layout-option__preview" }, ro = {
1099
+ }, so = { class: "top-menu__dropdown-header" }, no = { class: "top-menu__dropdown-avatar" }, oo = { class: "top-menu__dropdown-info" }, ro = { class: "top-menu__dropdown-name" }, ao = { class: "top-menu__dropdown-role" }, io = { class: "top-menu__dropdown-menu" }, lo = { class: "settings-drawer" }, co = { class: "settings-section" }, uo = { class: "settings-layout-options" }, fo = ["onClick"], po = { class: "layout-option__preview" }, mo = {
1094
1100
  key: 0,
1095
1101
  class: "layout-preview-sidebar"
1096
- }, ao = {
1102
+ }, ho = {
1097
1103
  key: 1,
1098
1104
  class: "layout-preview-top"
1099
- }, io = {
1105
+ }, vo = {
1100
1106
  key: 2,
1101
1107
  class: "layout-preview-mix"
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({
1108
+ }, go = { class: "layout-option__label" }, _o = { class: "settings-section" }, wo = { class: "settings-color-options" }, yo = ["title", "onClick"], ko = { class: "settings-section" }, bo = { class: "settings-switch-list" }, xo = { class: "settings-switch-item" }, Co = { class: "settings-switch-item" }, No = /* @__PURE__ */ Ae({
1103
1109
  __name: "TopMenu",
1104
1110
  setup(r) {
1105
- const f = qe(), v = Pe(), p = ze(), h = Re(), k = $e(), T = Ye(), g = j(() => f.path), I = (e, o = "") => {
1111
+ const f = qe(), v = Pe(), p = ze(), h = Re(), b = $e(), T = Je(), g = j(() => f.path), I = (e, o = "") => {
1106
1112
  const c = [];
1107
- return e.forEach((s) => {
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 });
1113
+ return e.forEach((n) => {
1114
+ n.children && n.children.length > 0 ? c.push(...I(n.children, n.menuName)) : c.push({ ...n, parentTitle: o, title: n.menuName, path: n.menuUrl });
1109
1115
  }), c;
1110
- }, _ = j(() => K.value.trim() ? I(p.menuList).filter(
1111
- (o) => o.title.toLowerCase().includes(K.value.toLowerCase())
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) => {
1116
+ }, _ = j(() => H.value.trim() ? I(p.menuList).filter(
1117
+ (o) => o.title.toLowerCase().includes(H.value.toLowerCase())
1118
+ ) : []), x = j(() => h.isDark ? "#1d1e1f" : "#fff"), M = j(() => h.isDark ? "#cfd3dc" : "#303133"), E = j(() => "#409eff"), G = P(!1), Q = P(null), O = P(!1), A = P(!1), V = P(!1), S = P(!1), H = P(""), Y = P(null), oe = (e) => {
1113
1119
  e && e !== f.path && v.push(e);
1114
1120
  }, U = /* @__PURE__ */ new Set([
1115
1121
  "arrow-up",
@@ -1250,35 +1256,35 @@ const Na = {
1250
1256
  list: "list",
1251
1257
  grid: "grid"
1252
1258
  }[e] || e;
1253
- }, Z = (e) => e ? e.charAt(0) : "", se = (e) => U.has(e), $ = () => {
1259
+ }, J = (e) => e ? e.charAt(0) : "", ee = (e) => U.has(e), $ = () => {
1254
1260
  h.toggleTheme(), A.value = !1;
1255
1261
  }, re = () => {
1256
1262
  document.fullscreenElement ? document.exitFullscreen() : document.documentElement.requestFullscreen();
1257
- }, ee = () => {
1263
+ }, te = () => {
1258
1264
  O.value = !!document.fullscreenElement;
1259
1265
  }, z = () => {
1260
- q.value = !q.value;
1266
+ G.value = !G.value;
1261
1267
  }, le = () => {
1262
- q.value = !1;
1263
- }, ue = () => {
1264
- S.value = !1, K.value = "";
1265
- }, Ce = (e) => {
1266
- v.push(e), ue();
1268
+ G.value = !1;
1267
1269
  }, de = () => {
1270
+ S.value = !1, H.value = "";
1271
+ }, Ce = (e) => {
1272
+ v.push(e), de();
1273
+ }, fe = () => {
1268
1274
  A.value = !0;
1269
- }, be = (e) => {
1275
+ }, ke = (e) => {
1270
1276
  V.value = e;
1271
1277
  const o = document.documentElement;
1272
1278
  e ? o.classList.add("grey-mode") : o.classList.remove("grey-mode");
1273
- }, ke = () => {
1274
- be(!V.value), A.value = !1;
1275
- }, _e = () => {
1279
+ }, be = () => {
1280
+ ke(!V.value), A.value = !1;
1281
+ }, we = () => {
1276
1282
  h.toggleTheme(), A.value = !1;
1277
1283
  }, Te = [
1278
1284
  { value: "sidebar", label: "左侧菜单", icon: "sidebar-left" },
1279
1285
  { value: "top", label: "顶部菜单", icon: "menu" },
1280
1286
  { value: "mix", label: "混合菜单", icon: "grid" }
1281
- ], Ee = j(() => h.layout), Oe = (e) => {
1287
+ ], Ne = j(() => h.layout), Oe = (e) => {
1282
1288
  h.setLayout(e), A.value = !1;
1283
1289
  }, C = [
1284
1290
  { value: "#409eff", label: "默认蓝" },
@@ -1293,29 +1299,29 @@ const Na = {
1293
1299
  le(), v.push("/profile");
1294
1300
  }, Me = () => {
1295
1301
  le(), v.push("/change-password");
1296
- }, G = () => {
1297
- le(), T.logout(), k.clearUserInfo(), p.clearMenu(), v.push("/login");
1302
+ }, K = () => {
1303
+ le(), T.logout(), b.clearUserInfo(), p.clearMenu(), v.push("/login");
1298
1304
  }, B = (e) => {
1299
- J.value && !J.value.contains(e.target) && le(), X.value && !X.value.contains(e.target) && ue();
1305
+ Q.value && !Q.value.contains(e.target) && le(), Y.value && !Y.value.contains(e.target) && de();
1300
1306
  }, t = (e) => {
1301
- e.key === "Escape" && (ue(), le());
1307
+ e.key === "Escape" && (de(), le());
1302
1308
  };
1303
- return gt(() => {
1304
- document.addEventListener("click", B), document.addEventListener("fullscreenchange", ee), document.addEventListener("keydown", t), V.value = document.documentElement.classList.contains("grey-mode");
1305
- }), _t(() => {
1306
- document.removeEventListener("click", B), document.removeEventListener("fullscreenchange", ee), document.removeEventListener("keydown", t);
1309
+ return _t(() => {
1310
+ document.addEventListener("click", B), document.addEventListener("fullscreenchange", te), document.addEventListener("keydown", t), V.value = document.documentElement.classList.contains("grey-mode");
1311
+ }), wt(() => {
1312
+ document.removeEventListener("click", B), document.removeEventListener("fullscreenchange", te), document.removeEventListener("keydown", t);
1307
1313
  }), (e, o) => {
1308
1314
  var c;
1309
- return y(), N("div", yn, [
1310
- n("div", bn, [
1311
- o[3] || (o[3] = n("img", {
1315
+ return w(), N("div", yn, [
1316
+ s("div", kn, [
1317
+ o[3] || (o[3] = s("img", {
1312
1318
  src: Et,
1313
1319
  alt: "Logo",
1314
1320
  class: "top-menu__logo-img"
1315
1321
  }, null, -1)),
1316
- n("span", kn, W(b(h).appName), 1)
1322
+ s("span", bn, q(y(h).appName), 1)
1317
1323
  ]),
1318
- R(b(xt), {
1324
+ R(y(Ct), {
1319
1325
  "model-value": g.value,
1320
1326
  mode: "horizontal",
1321
1327
  "background-color": x.value,
@@ -1324,61 +1330,102 @@ const Na = {
1324
1330
  class: "top-menu__menu",
1325
1331
  onSelect: oe
1326
1332
  }, {
1327
- default: Y(() => [
1328
- (y(!0), N(ve, null, ye(b(p).menuList, (s) => (y(), N(ve, {
1329
- key: s.menuUrl
1333
+ default: X(() => [
1334
+ (w(!0), N(he, null, ge(y(p).menuList, (n) => (w(), N(he, {
1335
+ key: n.menuUrl
1330
1336
  }, [
1331
- s.children && s.children.length > 0 ? (y(), me(b(Bt), {
1337
+ n.children && n.children.length > 0 ? (w(), ce(y(gt), {
1332
1338
  key: 0,
1333
- index: s.menuUrl
1339
+ index: n.menuUrl
1334
1340
  }, {
1335
- title: Y(() => [
1336
- n("span", xn, [
1337
- s.menuName !== "首页" ? (y(), N("span", Cn, [
1338
- se(L(s.icon)) ? (y(), me(b(Q), {
1341
+ title: X(() => [
1342
+ s("span", xn, [
1343
+ n.menuName !== "首页" ? (w(), N("span", Cn, [
1344
+ ee(L(n.icon)) ? (w(), ce(y(Z), {
1339
1345
  key: 0,
1340
- name: L(s.icon),
1346
+ name: L(n.icon),
1341
1347
  size: 16
1342
- }, null, 8, ["name"])) : (y(), N("span", En, W(Z(s.menuName)), 1))
1348
+ }, null, 8, ["name"])) : (w(), N("span", Nn, q(J(n.menuName)), 1))
1343
1349
  ])) : ie("", !0),
1344
- n("span", Nn, W(s.menuName), 1)
1350
+ s("span", En, q(n.menuName), 1)
1345
1351
  ])
1346
1352
  ]),
1347
- default: Y(() => [
1348
- (y(!0), N(ve, null, ye(s.children, (i) => (y(), me(b(st), {
1349
- key: i.menuUrl,
1350
- index: i.menuUrl
1351
- }, {
1352
- default: Y(() => [
1353
- n("span", $n, [
1354
- n("span", Sn, [
1355
- se(L(i.icon)) ? (y(), me(b(Q), {
1356
- key: 0,
1357
- name: L(i.icon),
1358
- size: 16
1359
- }, null, 8, ["name"])) : (y(), N("span", Mn, W(Z(i.menuName)), 1))
1360
- ]),
1361
- n("span", In, W(i.menuName), 1)
1362
- ])
1363
- ]),
1364
- _: 2
1365
- }, 1032, ["index"]))), 128))
1353
+ default: X(() => [
1354
+ (w(!0), N(he, null, ge(n.children, (a) => (w(), N(he, {
1355
+ key: a.menuUrl
1356
+ }, [
1357
+ a.children && a.children.length > 0 ? (w(), ce(y(gt), {
1358
+ key: 0,
1359
+ index: a.menuUrl
1360
+ }, {
1361
+ title: X(() => [
1362
+ s("span", $n, [
1363
+ s("span", Sn, [
1364
+ ee(L(a.icon)) ? (w(), ce(y(Z), {
1365
+ key: 0,
1366
+ name: L(a.icon),
1367
+ size: 16
1368
+ }, null, 8, ["name"])) : (w(), N("span", Mn, q(J(a.menuName)), 1))
1369
+ ]),
1370
+ s("span", In, q(a.menuName), 1)
1371
+ ])
1372
+ ]),
1373
+ default: X(() => [
1374
+ (w(!0), N(he, null, ge(a.children, (u) => (w(), ce(y(He), {
1375
+ key: u.menuUrl,
1376
+ index: u.menuUrl
1377
+ }, {
1378
+ default: X(() => [
1379
+ s("span", Ln, [
1380
+ s("span", An, [
1381
+ ee(L(u.icon)) ? (w(), ce(y(Z), {
1382
+ key: 0,
1383
+ name: L(u.icon),
1384
+ size: 16
1385
+ }, null, 8, ["name"])) : (w(), N("span", Tn, q(J(u.menuName)), 1))
1386
+ ]),
1387
+ s("span", On, q(u.menuName), 1)
1388
+ ])
1389
+ ]),
1390
+ _: 2
1391
+ }, 1032, ["index"]))), 128))
1392
+ ]),
1393
+ _: 2
1394
+ }, 1032, ["index"])) : (w(), ce(y(He), {
1395
+ key: 1,
1396
+ index: a.menuUrl
1397
+ }, {
1398
+ default: X(() => [
1399
+ s("span", Un, [
1400
+ s("span", Bn, [
1401
+ ee(L(a.icon)) ? (w(), ce(y(Z), {
1402
+ key: 0,
1403
+ name: L(a.icon),
1404
+ size: 16
1405
+ }, null, 8, ["name"])) : (w(), N("span", Pn, q(J(a.menuName)), 1))
1406
+ ]),
1407
+ s("span", Rn, q(a.menuName), 1)
1408
+ ])
1409
+ ]),
1410
+ _: 2
1411
+ }, 1032, ["index"]))
1412
+ ], 64))), 128))
1366
1413
  ]),
1367
1414
  _: 2
1368
- }, 1032, ["index"])) : (y(), me(b(st), {
1415
+ }, 1032, ["index"])) : (w(), ce(y(He), {
1369
1416
  key: 1,
1370
- index: s.menuUrl
1417
+ index: n.menuUrl
1371
1418
  }, {
1372
- default: Y(() => [
1373
- n("span", Ln, [
1374
- s.menuName !== "首页" ? (y(), N("span", An, [
1375
- se(L(s.icon)) ? (y(), me(b(Q), {
1419
+ default: X(() => [
1420
+ s("span", Dn, [
1421
+ n.menuName !== "首页" ? (w(), N("span", zn, [
1422
+ ee(L(n.icon)) ? (w(), ce(y(Z), {
1376
1423
  key: 0,
1377
- name: L(s.icon),
1424
+ name: L(n.icon),
1378
1425
  size: 16
1379
- }, null, 8, ["name"])) : (y(), N("span", Tn, W(Z(s.menuName)), 1))
1426
+ }, null, 8, ["name"])) : (w(), N("span", Fn, q(J(n.menuName)), 1))
1380
1427
  ])) : ie("", !0),
1381
- n("span", On, W(s.menuName), 1)
1428
+ s("span", Vn, q(n.menuName), 1)
1382
1429
  ])
1383
1430
  ]),
1384
1431
  _: 2
@@ -1387,144 +1434,144 @@ const Na = {
1387
1434
  ]),
1388
1435
  _: 1
1389
1436
  }, 8, ["model-value", "background-color", "text-color", "active-text-color"]),
1390
- n("div", Un, [
1391
- n("div", {
1437
+ s("div", jn, [
1438
+ s("div", {
1392
1439
  class: "top-menu__search",
1393
1440
  ref_key: "searchRef",
1394
- ref: X
1441
+ ref: Y
1395
1442
  }, [
1396
- R(b(Q), {
1443
+ R(y(Z), {
1397
1444
  name: "search",
1398
1445
  size: 14,
1399
1446
  class: "top-menu__search-icon"
1400
1447
  }),
1401
- at(n("input", {
1402
- "onUpdate:modelValue": o[0] || (o[0] = (s) => K.value = s),
1448
+ at(s("input", {
1449
+ "onUpdate:modelValue": o[0] || (o[0] = (n) => H.value = n),
1403
1450
  type: "text",
1404
1451
  class: "top-menu__search-input",
1405
1452
  placeholder: "搜索菜单...",
1406
- onFocus: o[1] || (o[1] = (s) => S.value = !0)
1453
+ onFocus: o[1] || (o[1] = (n) => S.value = !0)
1407
1454
  }, null, 544), [
1408
- [wt, K.value]
1455
+ [yt, H.value]
1409
1456
  ]),
1410
1457
  R(Ve, { name: "search-dropdown" }, {
1411
- default: Y(() => [
1412
- S.value && (_.value.length > 0 || K.value) ? (y(), N("div", Bn, [
1413
- _.value.length > 0 ? (y(), N("div", Pn, [
1414
- (y(!0), N(ve, null, ye(_.value, (s) => (y(), N("div", {
1415
- key: s.path,
1458
+ default: X(() => [
1459
+ S.value && (_.value.length > 0 || H.value) ? (w(), N("div", qn, [
1460
+ _.value.length > 0 ? (w(), N("div", Gn, [
1461
+ (w(!0), N(he, null, ge(_.value, (n) => (w(), N("div", {
1462
+ key: n.path,
1416
1463
  class: "top-menu__search-item",
1417
- onClick: (i) => Ce(s.path)
1464
+ onClick: (a) => Ce(n.path)
1418
1465
  }, [
1419
- s.title !== "首页" ? (y(), N("span", Dn, [
1420
- se(L(s.icon)) ? (y(), me(b(Q), {
1466
+ n.title !== "首页" ? (w(), N("span", Hn, [
1467
+ ee(L(n.icon)) ? (w(), ce(y(Z), {
1421
1468
  key: 0,
1422
- name: L(s.icon),
1469
+ name: L(n.icon),
1423
1470
  size: 16
1424
- }, null, 8, ["name"])) : (y(), N("span", zn, W(Z(s.title)), 1))
1471
+ }, null, 8, ["name"])) : (w(), N("span", Wn, q(J(n.title)), 1))
1425
1472
  ])) : ie("", !0),
1426
- n("span", Fn, W(s.title), 1),
1427
- s.parentTitle ? (y(), N("span", Vn, W(s.parentTitle), 1)) : ie("", !0)
1428
- ], 8, Rn))), 128))
1429
- ])) : (y(), N("div", jn, " 未找到匹配的菜单 "))
1473
+ s("span", Xn, q(n.title), 1),
1474
+ n.parentTitle ? (w(), N("span", Yn, q(n.parentTitle), 1)) : ie("", !0)
1475
+ ], 8, Kn))), 128))
1476
+ ])) : (w(), N("div", Jn, " 未找到匹配的菜单 "))
1430
1477
  ])) : ie("", !0)
1431
1478
  ]),
1432
1479
  _: 1
1433
1480
  })
1434
1481
  ], 512),
1435
- n("div", {
1482
+ s("div", {
1436
1483
  class: "top-menu__action",
1437
1484
  onClick: re,
1438
1485
  title: O.value ? "退出全屏" : "全屏"
1439
1486
  }, [
1440
- R(b(Q), {
1487
+ R(y(Z), {
1441
1488
  name: O.value ? "fullscreen-exit" : "fullscreen",
1442
1489
  size: 16
1443
1490
  }, null, 8, ["name"])
1444
- ], 8, qn),
1445
- n("div", {
1491
+ ], 8, Zn),
1492
+ s("div", {
1446
1493
  class: "top-menu__action",
1447
- onClick: de,
1494
+ onClick: fe,
1448
1495
  title: "换肤设置"
1449
1496
  }, [
1450
- R(b(Q), {
1497
+ R(y(Z), {
1451
1498
  name: "skin",
1452
1499
  size: 16
1453
1500
  })
1454
1501
  ]),
1455
- n("div", {
1502
+ s("div", {
1456
1503
  class: "top-menu__action",
1457
1504
  onClick: $,
1458
1505
  title: "切换主题"
1459
1506
  }, [
1460
- R(b(Q), {
1461
- name: b(h).isDark ? "sun" : "moon",
1507
+ R(y(Z), {
1508
+ name: y(h).isDark ? "sun" : "moon",
1462
1509
  size: 16
1463
1510
  }, null, 8, ["name"])
1464
1511
  ]),
1465
- n("div", {
1512
+ s("div", {
1466
1513
  class: "top-menu__user",
1467
1514
  ref_key: "dropdownRef",
1468
- ref: J
1515
+ ref: Q
1469
1516
  }, [
1470
- n("div", {
1517
+ s("div", {
1471
1518
  class: "top-menu__user-trigger",
1472
1519
  onClick: it(z, ["stop"])
1473
1520
  }, [
1474
- n("div", Gn, [
1475
- n("span", null, W(((c = b(k).userName) == null ? void 0 : c.charAt(0)) || "U"), 1)
1521
+ s("div", Qn, [
1522
+ s("span", null, q(((c = y(b).userName) == null ? void 0 : c.charAt(0)) || "U"), 1)
1476
1523
  ]),
1477
- n("span", Kn, W(b(k).userName), 1),
1478
- n("span", {
1479
- class: ge(["top-menu__user-arrow", { "is-active": q.value }])
1524
+ s("span", eo, q(y(b).userName), 1),
1525
+ s("span", {
1526
+ class: _e(["top-menu__user-arrow", { "is-active": G.value }])
1480
1527
  }, "▼", 2)
1481
1528
  ]),
1482
1529
  R(Ve, { name: "dropdown" }, {
1483
- default: Y(() => {
1484
- var s;
1530
+ default: X(() => {
1531
+ var n;
1485
1532
  return [
1486
- q.value ? (y(), N("div", Hn, [
1487
- n("div", Wn, [
1488
- n("div", Xn, [
1489
- n("span", null, W(((s = b(k).userName) == null ? void 0 : s.charAt(0)) || "U"), 1)
1533
+ G.value ? (w(), N("div", to, [
1534
+ s("div", so, [
1535
+ s("div", no, [
1536
+ s("span", null, q(((n = y(b).userName) == null ? void 0 : n.charAt(0)) || "U"), 1)
1490
1537
  ]),
1491
- n("div", Yn, [
1492
- n("div", Jn, W(b(k).userName), 1),
1493
- n("div", Zn, W(b(k).departmentName), 1)
1538
+ s("div", oo, [
1539
+ s("div", ro, q(y(b).userName), 1),
1540
+ s("div", ao, q(y(b).departmentName), 1)
1494
1541
  ])
1495
1542
  ]),
1496
- o[8] || (o[8] = n("div", { class: "top-menu__dropdown-divider" }, null, -1)),
1497
- n("div", Qn, [
1498
- n("div", {
1543
+ o[8] || (o[8] = s("div", { class: "top-menu__dropdown-divider" }, null, -1)),
1544
+ s("div", io, [
1545
+ s("div", {
1499
1546
  class: "top-menu__dropdown-item",
1500
1547
  onClick: Be
1501
1548
  }, [
1502
- R(b(Q), {
1549
+ R(y(Z), {
1503
1550
  name: "user",
1504
1551
  size: 16
1505
1552
  }),
1506
- o[4] || (o[4] = n("span", null, "个人信息", -1))
1553
+ o[4] || (o[4] = s("span", null, "个人信息", -1))
1507
1554
  ]),
1508
- n("div", {
1555
+ s("div", {
1509
1556
  class: "top-menu__dropdown-item",
1510
1557
  onClick: Me
1511
1558
  }, [
1512
- R(b(Q), {
1559
+ R(y(Z), {
1513
1560
  name: "lock",
1514
1561
  size: 16
1515
1562
  }),
1516
- o[5] || (o[5] = n("span", null, "修改密码", -1))
1563
+ o[5] || (o[5] = s("span", null, "修改密码", -1))
1517
1564
  ]),
1518
- o[7] || (o[7] = n("div", { class: "top-menu__dropdown-divider" }, null, -1)),
1519
- n("div", {
1565
+ o[7] || (o[7] = s("div", { class: "top-menu__dropdown-divider" }, null, -1)),
1566
+ s("div", {
1520
1567
  class: "top-menu__dropdown-item top-menu__dropdown-item--danger",
1521
- onClick: G
1568
+ onClick: K
1522
1569
  }, [
1523
- R(b(Q), {
1570
+ R(y(Z), {
1524
1571
  name: "logout",
1525
1572
  size: 16
1526
1573
  }),
1527
- o[6] || (o[6] = n("span", null, "退出登录", -1))
1574
+ o[6] || (o[6] = s("span", null, "退出登录", -1))
1528
1575
  ])
1529
1576
  ])
1530
1577
  ])) : ie("", !0)
@@ -1534,85 +1581,85 @@ const Na = {
1534
1581
  })
1535
1582
  ], 512)
1536
1583
  ]),
1537
- R(b(Ct), {
1584
+ R(y(Nt), {
1538
1585
  modelValue: A.value,
1539
- "onUpdate:modelValue": o[2] || (o[2] = (s) => A.value = s),
1586
+ "onUpdate:modelValue": o[2] || (o[2] = (n) => A.value = n),
1540
1587
  title: "换肤设置",
1541
1588
  direction: "rtl",
1542
1589
  size: "320px"
1543
1590
  }, {
1544
- default: Y(() => [
1545
- n("div", eo, [
1546
- n("div", to, [
1547
- o[12] || (o[12] = n("div", { class: "settings-title" }, "布局模式", -1)),
1548
- n("div", so, [
1549
- (y(), N(ve, null, ye(Te, (s) => n("div", {
1550
- key: s.value,
1551
- class: ge(["layout-option", { "is-active": Ee.value === s.value }]),
1552
- onClick: (i) => Oe(s.value)
1591
+ default: X(() => [
1592
+ s("div", lo, [
1593
+ s("div", co, [
1594
+ o[12] || (o[12] = s("div", { class: "settings-title" }, "布局模式", -1)),
1595
+ s("div", uo, [
1596
+ (w(), N(he, null, ge(Te, (n) => s("div", {
1597
+ key: n.value,
1598
+ class: _e(["layout-option", { "is-active": Ne.value === n.value }]),
1599
+ onClick: (a) => Oe(n.value)
1553
1600
  }, [
1554
- n("div", oo, [
1555
- s.value === "sidebar" ? (y(), N("div", ro, [...o[9] || (o[9] = [
1556
- n("div", { class: "preview-aside" }, null, -1),
1557
- n("div", { class: "preview-main" }, [
1558
- n("div", { class: "preview-header" }),
1559
- n("div", { class: "preview-content" })
1601
+ s("div", po, [
1602
+ n.value === "sidebar" ? (w(), N("div", mo, [...o[9] || (o[9] = [
1603
+ s("div", { class: "preview-aside" }, null, -1),
1604
+ s("div", { class: "preview-main" }, [
1605
+ s("div", { class: "preview-header" }),
1606
+ s("div", { class: "preview-content" })
1560
1607
  ], -1)
1561
- ])])) : s.value === "top" ? (y(), N("div", ao, [...o[10] || (o[10] = [
1562
- n("div", { class: "preview-header-full" }, null, -1),
1563
- n("div", { class: "preview-content-full" }, null, -1)
1564
- ])])) : (y(), N("div", io, [...o[11] || (o[11] = [
1565
- n("div", { class: "preview-header-mix" }, [
1566
- n("div", { class: "preview-mix-left" })
1608
+ ])])) : n.value === "top" ? (w(), N("div", ho, [...o[10] || (o[10] = [
1609
+ s("div", { class: "preview-header-full" }, null, -1),
1610
+ s("div", { class: "preview-content-full" }, null, -1)
1611
+ ])])) : (w(), N("div", vo, [...o[11] || (o[11] = [
1612
+ s("div", { class: "preview-header-mix" }, [
1613
+ s("div", { class: "preview-mix-left" })
1567
1614
  ], -1),
1568
- n("div", { class: "preview-mix-body" }, [
1569
- n("div", { class: "preview-mix-aside" }),
1570
- n("div", { class: "preview-mix-content" })
1615
+ s("div", { class: "preview-mix-body" }, [
1616
+ s("div", { class: "preview-mix-aside" }),
1617
+ s("div", { class: "preview-mix-content" })
1571
1618
  ], -1)
1572
1619
  ])]))
1573
1620
  ]),
1574
- n("span", lo, W(s.label), 1)
1575
- ], 10, no)), 64))
1621
+ s("span", go, q(n.label), 1)
1622
+ ], 10, fo)), 64))
1576
1623
  ])
1577
1624
  ]),
1578
- n("div", co, [
1579
- o[13] || (o[13] = n("div", { class: "settings-title" }, "主题色", -1)),
1580
- n("div", uo, [
1581
- (y(), N(ve, null, ye(C, (s) => n("div", {
1582
- key: s.value,
1583
- class: ge(["color-option", { "is-active": b(h).primaryColor === s.value }]),
1584
- style: Xe({ backgroundColor: s.value }),
1585
- title: s.label,
1586
- onClick: (i) => Ue(s.value)
1625
+ s("div", _o, [
1626
+ o[13] || (o[13] = s("div", { class: "settings-title" }, "主题色", -1)),
1627
+ s("div", wo, [
1628
+ (w(), N(he, null, ge(C, (n) => s("div", {
1629
+ key: n.value,
1630
+ class: _e(["color-option", { "is-active": y(h).primaryColor === n.value }]),
1631
+ style: Ye({ backgroundColor: n.value }),
1632
+ title: n.label,
1633
+ onClick: (a) => Ue(n.value)
1587
1634
  }, [
1588
- b(h).primaryColor === s.value ? (y(), me(b(Q), {
1635
+ y(h).primaryColor === n.value ? (w(), ce(y(Z), {
1589
1636
  key: 0,
1590
1637
  name: "check",
1591
1638
  size: 12,
1592
1639
  color: "#fff"
1593
1640
  })) : ie("", !0)
1594
- ], 14, fo)), 64))
1641
+ ], 14, yo)), 64))
1595
1642
  ])
1596
1643
  ]),
1597
- n("div", po, [
1598
- o[18] || (o[18] = n("div", { class: "settings-title" }, "功能设置", -1)),
1599
- n("div", mo, [
1600
- n("div", ho, [
1601
- o[15] || (o[15] = n("span", null, "灰色模式", -1)),
1602
- n("div", {
1603
- class: ge(["switch-wrapper", { "is-checked": V.value }]),
1604
- onClick: ke
1644
+ s("div", ko, [
1645
+ o[18] || (o[18] = s("div", { class: "settings-title" }, "功能设置", -1)),
1646
+ s("div", bo, [
1647
+ s("div", xo, [
1648
+ o[15] || (o[15] = s("span", null, "灰色模式", -1)),
1649
+ s("div", {
1650
+ class: _e(["switch-wrapper", { "is-checked": V.value }]),
1651
+ onClick: be
1605
1652
  }, [...o[14] || (o[14] = [
1606
- n("span", { class: "switch-core" }, null, -1)
1653
+ s("span", { class: "switch-core" }, null, -1)
1607
1654
  ])], 2)
1608
1655
  ]),
1609
- n("div", vo, [
1610
- o[17] || (o[17] = n("span", null, "暗黑模式", -1)),
1611
- n("div", {
1612
- class: ge(["switch-wrapper", { "is-checked": b(h).isDark }]),
1613
- onClick: _e
1656
+ s("div", Co, [
1657
+ o[17] || (o[17] = s("span", null, "暗黑模式", -1)),
1658
+ s("div", {
1659
+ class: _e(["switch-wrapper", { "is-checked": y(h).isDark }]),
1660
+ onClick: we
1614
1661
  }, [...o[16] || (o[16] = [
1615
- n("span", { class: "switch-core" }, null, -1)
1662
+ s("span", { class: "switch-core" }, null, -1)
1616
1663
  ])], 2)
1617
1664
  ])
1618
1665
  ])
@@ -1624,73 +1671,73 @@ const Na = {
1624
1671
  ]);
1625
1672
  };
1626
1673
  }
1627
- }), _o = /* @__PURE__ */ Se(go, [["__scopeId", "data-v-ff5f8764"]]), wo = { class: "mix-top-menu" }, yo = { class: "mix-top-menu__logo" }, bo = { class: "mix-top-menu__logo-text" }, ko = { class: "mix-top-menu__menu-content" }, xo = {
1674
+ }), Eo = /* @__PURE__ */ Se(No, [["__scopeId", "data-v-5b8c9d39"]]), $o = { class: "mix-top-menu" }, So = { class: "mix-top-menu__logo" }, Mo = { class: "mix-top-menu__logo-text" }, Io = { class: "mix-top-menu__menu-content" }, Lo = {
1628
1675
  key: 0,
1629
1676
  class: "mix-top-menu__menu-icon"
1630
- }, Co = {
1677
+ }, Ao = {
1631
1678
  key: 1,
1632
1679
  class: "mix-top-menu__menu-char"
1633
- }, Eo = { class: "mix-top-menu__menu-text" }, No = { class: "mix-top-menu__actions" }, $o = {
1680
+ }, To = { class: "mix-top-menu__menu-text" }, Oo = { class: "mix-top-menu__actions" }, Uo = {
1634
1681
  key: 0,
1635
1682
  class: "mix-top-menu__search-dropdown"
1636
- }, So = {
1683
+ }, Bo = {
1637
1684
  key: 0,
1638
1685
  class: "mix-top-menu__search-results"
1639
- }, Mo = ["onClick"], Io = {
1686
+ }, Po = ["onClick"], Ro = {
1640
1687
  key: 0,
1641
1688
  class: "mix-top-menu__search-icon-item"
1642
- }, Lo = {
1689
+ }, Do = {
1643
1690
  key: 1,
1644
1691
  class: "mix-top-menu__search-char"
1645
- }, Ao = { class: "mix-top-menu__search-item-title" }, To = {
1692
+ }, zo = { class: "mix-top-menu__search-item-title" }, Fo = {
1646
1693
  key: 1,
1647
1694
  class: "mix-top-menu__search-item-parent"
1648
- }, Oo = {
1695
+ }, Vo = {
1649
1696
  key: 1,
1650
1697
  class: "mix-top-menu__search-empty"
1651
- }, Uo = ["title"], Bo = { class: "mix-top-menu__avatar" }, Po = { class: "mix-top-menu__user-name" }, Ro = {
1698
+ }, jo = ["title"], qo = { class: "mix-top-menu__avatar" }, Go = { class: "mix-top-menu__user-name" }, Ko = {
1652
1699
  key: 0,
1653
1700
  class: "mix-top-menu__dropdown"
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 = {
1701
+ }, Ho = { class: "mix-top-menu__dropdown-header" }, Wo = { class: "mix-top-menu__dropdown-avatar" }, Xo = { class: "mix-top-menu__dropdown-info" }, Yo = { class: "mix-top-menu__dropdown-name" }, Jo = { class: "mix-top-menu__dropdown-role" }, Zo = { class: "mix-top-menu__dropdown-menu" }, Qo = { class: "settings-drawer" }, er = { class: "settings-section" }, tr = { class: "settings-layout-options" }, sr = ["onClick"], nr = { class: "layout-option__preview" }, or = {
1655
1702
  key: 0,
1656
1703
  class: "layout-preview-sidebar"
1657
- }, Jo = {
1704
+ }, rr = {
1658
1705
  key: 1,
1659
1706
  class: "layout-preview-top"
1660
- }, Zo = {
1707
+ }, ar = {
1661
1708
  key: 2,
1662
1709
  class: "layout-preview-mix"
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({
1710
+ }, ir = { class: "layout-option__label" }, lr = { class: "settings-section" }, cr = { class: "settings-color-options" }, ur = ["title", "onClick"], dr = { class: "settings-section" }, fr = { class: "settings-switch-list" }, pr = { class: "settings-switch-item" }, mr = { class: "settings-switch-item" }, hr = /* @__PURE__ */ Ae({
1664
1711
  __name: "MixTopMenu",
1665
1712
  setup(r) {
1666
- const f = qe(), v = Pe(), p = ze(), h = Re(), k = $e(), T = Ye(), g = P(""), I = (s, i = "") => {
1713
+ const f = qe(), v = Pe(), p = ze(), h = Re(), b = $e(), T = Je(), g = P(""), I = (n, a = "") => {
1667
1714
  const u = [];
1668
- return s.forEach((a) => {
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 });
1715
+ return n.forEach((i) => {
1716
+ i.children && i.children.length > 0 ? u.push(...I(i.children, i.menuName)) : u.push({ ...i, parentTitle: a, title: i.menuName, path: i.menuUrl });
1670
1717
  }), u;
1671
1718
  }, _ = j(() => L.value.trim() ? I(p.menuList).filter(
1672
- (i) => i.title.toLowerCase().includes(L.value.toLowerCase())
1719
+ (a) => a.title.toLowerCase().includes(L.value.toLowerCase())
1673
1720
  ) : []), x = j(() => {
1674
- const s = p.menuList.find((i) => i.menuUrl === g.value);
1675
- return (s == null ? void 0 : s.children) || [];
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 = () => {
1721
+ const n = p.menuList.find((a) => a.menuUrl === g.value);
1722
+ return (n == null ? void 0 : n.children) || [];
1723
+ }), M = j(() => p.menuList.find((n) => !!(f.path === n.menuUrl || n.children && n.children.some((a) => f.path.startsWith(a.menuUrl) || f.path === a.menuUrl)))), E = () => {
1677
1724
  M.value ? g.value = M.value.menuUrl : p.menuList.length > 0 && (g.value = p.menuList[0].menuUrl);
1678
- }, q = (s) => {
1679
- g.value = s;
1680
- const i = p.menuList.find((u) => u.menuUrl === s);
1681
- if (i)
1682
- if (i.children && i.children.length > 0) {
1683
- const u = i.children[0].menuUrl;
1725
+ }, G = (n) => {
1726
+ g.value = n;
1727
+ const a = p.menuList.find((u) => u.menuUrl === n);
1728
+ if (a)
1729
+ if (a.children && a.children.length > 0) {
1730
+ const u = a.children[0].menuUrl;
1684
1731
  f.path !== u && v.push(u);
1685
1732
  } else
1686
- f.path !== s && v.push(s);
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);
1688
- We(() => f.path, () => {
1733
+ f.path !== n && v.push(n);
1734
+ }, Q = j(() => h.isDark ? "#1d1e1f" : "#fff"), O = j(() => h.isDark ? "#cfd3dc" : "#303133"), A = j(() => "#409eff"), V = P(!1), S = P(null), H = P(!1), Y = P(!1), oe = P(!1), U = P(!1), L = P(""), J = P(null);
1735
+ Xe(() => f.path, () => {
1689
1736
  E(), h.setMixSubMenus(x.value);
1690
- }), We(() => p.menuList, (s) => {
1691
- s && s.length > 0 && (E(), h.setMixSubMenus(x.value));
1737
+ }), Xe(() => p.menuList, (n) => {
1738
+ n && n.length > 0 && (E(), h.setMixSubMenus(x.value));
1692
1739
  }, { immediate: !0 });
1693
- const se = /* @__PURE__ */ new Set([
1740
+ const ee = /* @__PURE__ */ new Set([
1694
1741
  "arrow-up",
1695
1742
  "arrow-down",
1696
1743
  "arrow-left",
@@ -1792,10 +1839,10 @@ const Na = {
1792
1839
  "sun",
1793
1840
  "theme",
1794
1841
  "skin"
1795
- ]), $ = (s) => {
1796
- if (!s || s === "") return "";
1797
- if (s.startsWith("tineco-icon-")) {
1798
- const u = s.replace("tineco-icon-", "");
1842
+ ]), $ = (n) => {
1843
+ if (!n || n === "") return "";
1844
+ if (n.startsWith("tineco-icon-")) {
1845
+ const u = n.replace("tineco-icon-", "");
1799
1846
  return {
1800
1847
  home: "home",
1801
1848
  dashboard: "dashboard",
@@ -1828,37 +1875,37 @@ const Na = {
1828
1875
  app: "app",
1829
1876
  list: "list",
1830
1877
  grid: "grid"
1831
- }[s] || s;
1832
- }, re = (s) => s ? s.charAt(0) : "", ee = (s) => se.has(s), z = () => {
1833
- h.toggleTheme(), X.value = !1;
1878
+ }[n] || n;
1879
+ }, re = (n) => n ? n.charAt(0) : "", te = (n) => ee.has(n), z = () => {
1880
+ h.toggleTheme(), Y.value = !1;
1834
1881
  }, le = () => {
1835
1882
  document.fullscreenElement ? document.exitFullscreen() : document.documentElement.requestFullscreen();
1836
- }, ue = () => {
1837
- K.value = !!document.fullscreenElement;
1883
+ }, de = () => {
1884
+ H.value = !!document.fullscreenElement;
1838
1885
  }, Ce = () => {
1839
1886
  V.value = !V.value;
1840
- }, de = () => {
1887
+ }, fe = () => {
1841
1888
  V.value = !1;
1842
- }, be = () => {
1889
+ }, ke = () => {
1843
1890
  U.value = !1, L.value = "";
1844
- }, ke = (s) => {
1845
- v.push(s), be();
1846
- }, _e = () => {
1847
- X.value = !0;
1848
- }, Te = (s) => {
1849
- oe.value = s;
1850
- const i = document.documentElement;
1851
- s ? i.classList.add("grey-mode") : i.classList.remove("grey-mode");
1852
- }, Ee = () => {
1853
- Te(!oe.value), X.value = !1;
1891
+ }, be = (n) => {
1892
+ v.push(n), ke();
1893
+ }, we = () => {
1894
+ Y.value = !0;
1895
+ }, Te = (n) => {
1896
+ oe.value = n;
1897
+ const a = document.documentElement;
1898
+ n ? a.classList.add("grey-mode") : a.classList.remove("grey-mode");
1899
+ }, Ne = () => {
1900
+ Te(!oe.value), Y.value = !1;
1854
1901
  }, Oe = () => {
1855
- h.toggleTheme(), X.value = !1;
1902
+ h.toggleTheme(), Y.value = !1;
1856
1903
  }, C = [
1857
1904
  { value: "sidebar", label: "左侧菜单", icon: "sidebar-left" },
1858
1905
  { value: "top", label: "顶部菜单", icon: "menu" },
1859
1906
  { value: "mix", label: "混合菜单", icon: "grid" }
1860
- ], Ue = j(() => h.layout), Be = (s) => {
1861
- h.setLayout(s), X.value = !1;
1907
+ ], Ue = j(() => h.layout), Be = (n) => {
1908
+ h.setLayout(n), Y.value = !1;
1862
1909
  }, Me = [
1863
1910
  { value: "#409eff", label: "默认蓝" },
1864
1911
  { value: "#1890ff", label: "科技蓝" },
@@ -1866,58 +1913,58 @@ const Na = {
1866
1913
  { value: "#faad14", label: "日落橙" },
1867
1914
  { value: "#f5222d", label: "薄暮红" },
1868
1915
  { value: "#722ed1", label: "酱紫" }
1869
- ], G = (s) => {
1870
- h.setPrimaryColor(s), X.value = !1;
1916
+ ], K = (n) => {
1917
+ h.setPrimaryColor(n), Y.value = !1;
1871
1918
  }, B = () => {
1872
- de(), v.push("/profile");
1919
+ fe(), v.push("/profile");
1873
1920
  }, t = () => {
1874
- de(), v.push("/change-password");
1921
+ fe(), v.push("/change-password");
1875
1922
  }, e = () => {
1876
- de(), T.logout(), k.clearUserInfo(), p.clearMenu(), v.push("/login");
1877
- }, o = (s) => {
1878
- S.value && !S.value.contains(s.target) && de(), Z.value && !Z.value.contains(s.target) && be();
1879
- }, c = (s) => {
1880
- s.key === "Escape" && (be(), de());
1923
+ fe(), T.logout(), b.clearUserInfo(), p.clearMenu(), v.push("/login");
1924
+ }, o = (n) => {
1925
+ S.value && !S.value.contains(n.target) && fe(), J.value && !J.value.contains(n.target) && ke();
1926
+ }, c = (n) => {
1927
+ n.key === "Escape" && (ke(), fe());
1881
1928
  };
1882
- return gt(() => {
1883
- document.addEventListener("click", o), document.addEventListener("fullscreenchange", ue), document.addEventListener("keydown", c), oe.value = document.documentElement.classList.contains("grey-mode"), E();
1884
- }), _t(() => {
1885
- document.removeEventListener("click", o), document.removeEventListener("fullscreenchange", ue), document.removeEventListener("keydown", c);
1886
- }), (s, i) => {
1929
+ return _t(() => {
1930
+ document.addEventListener("click", o), document.addEventListener("fullscreenchange", de), document.addEventListener("keydown", c), oe.value = document.documentElement.classList.contains("grey-mode"), E();
1931
+ }), wt(() => {
1932
+ document.removeEventListener("click", o), document.removeEventListener("fullscreenchange", de), document.removeEventListener("keydown", c);
1933
+ }), (n, a) => {
1887
1934
  var u;
1888
- return y(), N("div", wo, [
1889
- n("div", yo, [
1890
- i[3] || (i[3] = n("img", {
1935
+ return w(), N("div", $o, [
1936
+ s("div", So, [
1937
+ a[3] || (a[3] = s("img", {
1891
1938
  src: Et,
1892
1939
  alt: "Logo",
1893
1940
  class: "mix-top-menu__logo-img"
1894
1941
  }, null, -1)),
1895
- n("span", bo, W(b(h).appName), 1)
1942
+ s("span", Mo, q(y(h).appName), 1)
1896
1943
  ]),
1897
- R(b(xt), {
1944
+ R(y(Ct), {
1898
1945
  "model-value": g.value,
1899
1946
  mode: "horizontal",
1900
- "background-color": J.value,
1947
+ "background-color": Q.value,
1901
1948
  "text-color": O.value,
1902
1949
  "active-text-color": A.value,
1903
1950
  class: "mix-top-menu__menu",
1904
- onSelect: q
1951
+ onSelect: G
1905
1952
  }, {
1906
- default: Y(() => [
1907
- (y(!0), N(ve, null, ye(b(p).menuList, (a) => (y(), me(b(st), {
1908
- key: a.menuUrl,
1909
- index: a.menuUrl
1953
+ default: X(() => [
1954
+ (w(!0), N(he, null, ge(y(p).menuList, (i) => (w(), ce(y(He), {
1955
+ key: i.menuUrl,
1956
+ index: i.menuUrl
1910
1957
  }, {
1911
- default: Y(() => [
1912
- n("span", ko, [
1913
- a.menuName !== "首页" ? (y(), N("span", xo, [
1914
- ee($(a.icon)) ? (y(), me(b(Q), {
1958
+ default: X(() => [
1959
+ s("span", Io, [
1960
+ i.menuName !== "首页" ? (w(), N("span", Lo, [
1961
+ te($(i.icon)) ? (w(), ce(y(Z), {
1915
1962
  key: 0,
1916
- name: $(a.icon),
1963
+ name: $(i.icon),
1917
1964
  size: 16
1918
- }, null, 8, ["name"])) : (y(), N("span", Co, W(re(a.menuName)), 1))
1965
+ }, null, 8, ["name"])) : (w(), N("span", Ao, q(re(i.menuName)), 1))
1919
1966
  ])) : ie("", !0),
1920
- n("span", Eo, W(a.menuName), 1)
1967
+ s("span", To, q(i.menuName), 1)
1921
1968
  ])
1922
1969
  ]),
1923
1970
  _: 2
@@ -1925,144 +1972,144 @@ const Na = {
1925
1972
  ]),
1926
1973
  _: 1
1927
1974
  }, 8, ["model-value", "background-color", "text-color", "active-text-color"]),
1928
- n("div", No, [
1929
- n("div", {
1975
+ s("div", Oo, [
1976
+ s("div", {
1930
1977
  class: "mix-top-menu__search",
1931
1978
  ref_key: "searchRef",
1932
- ref: Z
1979
+ ref: J
1933
1980
  }, [
1934
- R(b(Q), {
1981
+ R(y(Z), {
1935
1982
  name: "search",
1936
1983
  size: 14,
1937
1984
  class: "mix-top-menu__search-icon"
1938
1985
  }),
1939
- at(n("input", {
1940
- "onUpdate:modelValue": i[0] || (i[0] = (a) => L.value = a),
1986
+ at(s("input", {
1987
+ "onUpdate:modelValue": a[0] || (a[0] = (i) => L.value = i),
1941
1988
  type: "text",
1942
1989
  class: "mix-top-menu__search-input",
1943
1990
  placeholder: "搜索菜单...",
1944
- onFocus: i[1] || (i[1] = (a) => U.value = !0)
1991
+ onFocus: a[1] || (a[1] = (i) => U.value = !0)
1945
1992
  }, null, 544), [
1946
- [wt, L.value]
1993
+ [yt, L.value]
1947
1994
  ]),
1948
1995
  R(Ve, { name: "search-dropdown" }, {
1949
- default: Y(() => [
1950
- U.value && (_.value.length > 0 || L.value) ? (y(), N("div", $o, [
1951
- _.value.length > 0 ? (y(), N("div", So, [
1952
- (y(!0), N(ve, null, ye(_.value, (a) => (y(), N("div", {
1953
- key: a.path,
1996
+ default: X(() => [
1997
+ U.value && (_.value.length > 0 || L.value) ? (w(), N("div", Uo, [
1998
+ _.value.length > 0 ? (w(), N("div", Bo, [
1999
+ (w(!0), N(he, null, ge(_.value, (i) => (w(), N("div", {
2000
+ key: i.path,
1954
2001
  class: "mix-top-menu__search-item",
1955
- onClick: (l) => ke(a.path)
2002
+ onClick: (l) => be(i.path)
1956
2003
  }, [
1957
- a.title !== "首页" ? (y(), N("span", Io, [
1958
- ee($(a.icon)) ? (y(), me(b(Q), {
2004
+ i.title !== "首页" ? (w(), N("span", Ro, [
2005
+ te($(i.icon)) ? (w(), ce(y(Z), {
1959
2006
  key: 0,
1960
- name: $(a.icon),
2007
+ name: $(i.icon),
1961
2008
  size: 16
1962
- }, null, 8, ["name"])) : (y(), N("span", Lo, W(re(a.title)), 1))
2009
+ }, null, 8, ["name"])) : (w(), N("span", Do, q(re(i.title)), 1))
1963
2010
  ])) : ie("", !0),
1964
- n("span", Ao, W(a.title), 1),
1965
- a.parentTitle ? (y(), N("span", To, W(a.parentTitle), 1)) : ie("", !0)
1966
- ], 8, Mo))), 128))
1967
- ])) : (y(), N("div", Oo, " 未找到匹配的菜单 "))
2011
+ s("span", zo, q(i.title), 1),
2012
+ i.parentTitle ? (w(), N("span", Fo, q(i.parentTitle), 1)) : ie("", !0)
2013
+ ], 8, Po))), 128))
2014
+ ])) : (w(), N("div", Vo, " 未找到匹配的菜单 "))
1968
2015
  ])) : ie("", !0)
1969
2016
  ]),
1970
2017
  _: 1
1971
2018
  })
1972
2019
  ], 512),
1973
- n("div", {
2020
+ s("div", {
1974
2021
  class: "mix-top-menu__action",
1975
2022
  onClick: le,
1976
- title: K.value ? "退出全屏" : "全屏"
2023
+ title: H.value ? "退出全屏" : "全屏"
1977
2024
  }, [
1978
- R(b(Q), {
1979
- name: K.value ? "fullscreen-exit" : "fullscreen",
2025
+ R(y(Z), {
2026
+ name: H.value ? "fullscreen-exit" : "fullscreen",
1980
2027
  size: 16
1981
2028
  }, null, 8, ["name"])
1982
- ], 8, Uo),
1983
- n("div", {
2029
+ ], 8, jo),
2030
+ s("div", {
1984
2031
  class: "mix-top-menu__action",
1985
- onClick: _e,
2032
+ onClick: we,
1986
2033
  title: "换肤设置"
1987
2034
  }, [
1988
- R(b(Q), {
2035
+ R(y(Z), {
1989
2036
  name: "skin",
1990
2037
  size: 16
1991
2038
  })
1992
2039
  ]),
1993
- n("div", {
2040
+ s("div", {
1994
2041
  class: "mix-top-menu__action",
1995
2042
  onClick: z,
1996
2043
  title: "切换主题"
1997
2044
  }, [
1998
- R(b(Q), {
1999
- name: b(h).isDark ? "sun" : "moon",
2045
+ R(y(Z), {
2046
+ name: y(h).isDark ? "sun" : "moon",
2000
2047
  size: 16
2001
2048
  }, null, 8, ["name"])
2002
2049
  ]),
2003
- n("div", {
2050
+ s("div", {
2004
2051
  class: "mix-top-menu__user",
2005
2052
  ref_key: "dropdownRef",
2006
2053
  ref: S
2007
2054
  }, [
2008
- n("div", {
2055
+ s("div", {
2009
2056
  class: "mix-top-menu__user-trigger",
2010
2057
  onClick: it(Ce, ["stop"])
2011
2058
  }, [
2012
- n("div", Bo, [
2013
- n("span", null, W(((u = b(k).userName) == null ? void 0 : u.charAt(0)) || "U"), 1)
2059
+ s("div", qo, [
2060
+ s("span", null, q(((u = y(b).userName) == null ? void 0 : u.charAt(0)) || "U"), 1)
2014
2061
  ]),
2015
- n("span", Po, W(b(k).userName), 1),
2016
- n("span", {
2017
- class: ge(["mix-top-menu__user-arrow", { "is-active": V.value }])
2062
+ s("span", Go, q(y(b).userName), 1),
2063
+ s("span", {
2064
+ class: _e(["mix-top-menu__user-arrow", { "is-active": V.value }])
2018
2065
  }, "▼", 2)
2019
2066
  ]),
2020
2067
  R(Ve, { name: "dropdown" }, {
2021
- default: Y(() => {
2022
- var a;
2068
+ default: X(() => {
2069
+ var i;
2023
2070
  return [
2024
- V.value ? (y(), N("div", Ro, [
2025
- n("div", Do, [
2026
- n("div", zo, [
2027
- n("span", null, W(((a = b(k).userName) == null ? void 0 : a.charAt(0)) || "U"), 1)
2071
+ V.value ? (w(), N("div", Ko, [
2072
+ s("div", Ho, [
2073
+ s("div", Wo, [
2074
+ s("span", null, q(((i = y(b).userName) == null ? void 0 : i.charAt(0)) || "U"), 1)
2028
2075
  ]),
2029
- n("div", Fo, [
2030
- n("div", Vo, W(b(k).userName), 1),
2031
- n("div", jo, W(b(k).departmentName), 1)
2076
+ s("div", Xo, [
2077
+ s("div", Yo, q(y(b).userName), 1),
2078
+ s("div", Jo, q(y(b).departmentName), 1)
2032
2079
  ])
2033
2080
  ]),
2034
- i[8] || (i[8] = n("div", { class: "mix-top-menu__dropdown-divider" }, null, -1)),
2035
- n("div", qo, [
2036
- n("div", {
2081
+ a[8] || (a[8] = s("div", { class: "mix-top-menu__dropdown-divider" }, null, -1)),
2082
+ s("div", Zo, [
2083
+ s("div", {
2037
2084
  class: "mix-top-menu__dropdown-item",
2038
2085
  onClick: B
2039
2086
  }, [
2040
- R(b(Q), {
2087
+ R(y(Z), {
2041
2088
  name: "user",
2042
2089
  size: 16
2043
2090
  }),
2044
- i[4] || (i[4] = n("span", null, "个人信息", -1))
2091
+ a[4] || (a[4] = s("span", null, "个人信息", -1))
2045
2092
  ]),
2046
- n("div", {
2093
+ s("div", {
2047
2094
  class: "mix-top-menu__dropdown-item",
2048
2095
  onClick: t
2049
2096
  }, [
2050
- R(b(Q), {
2097
+ R(y(Z), {
2051
2098
  name: "lock",
2052
2099
  size: 16
2053
2100
  }),
2054
- i[5] || (i[5] = n("span", null, "修改密码", -1))
2101
+ a[5] || (a[5] = s("span", null, "修改密码", -1))
2055
2102
  ]),
2056
- i[7] || (i[7] = n("div", { class: "mix-top-menu__dropdown-divider" }, null, -1)),
2057
- n("div", {
2103
+ a[7] || (a[7] = s("div", { class: "mix-top-menu__dropdown-divider" }, null, -1)),
2104
+ s("div", {
2058
2105
  class: "mix-top-menu__dropdown-item mix-top-menu__dropdown-item--danger",
2059
2106
  onClick: e
2060
2107
  }, [
2061
- R(b(Q), {
2108
+ R(y(Z), {
2062
2109
  name: "logout",
2063
2110
  size: 16
2064
2111
  }),
2065
- i[6] || (i[6] = n("span", null, "退出登录", -1))
2112
+ a[6] || (a[6] = s("span", null, "退出登录", -1))
2066
2113
  ])
2067
2114
  ])
2068
2115
  ])) : ie("", !0)
@@ -2072,85 +2119,85 @@ const Na = {
2072
2119
  })
2073
2120
  ], 512)
2074
2121
  ]),
2075
- R(b(Ct), {
2076
- modelValue: X.value,
2077
- "onUpdate:modelValue": i[2] || (i[2] = (a) => X.value = a),
2122
+ R(y(Nt), {
2123
+ modelValue: Y.value,
2124
+ "onUpdate:modelValue": a[2] || (a[2] = (i) => Y.value = i),
2078
2125
  title: "换肤设置",
2079
2126
  direction: "rtl",
2080
2127
  size: "320px"
2081
2128
  }, {
2082
- default: Y(() => [
2083
- n("div", Go, [
2084
- n("div", Ko, [
2085
- i[12] || (i[12] = n("div", { class: "settings-title" }, "布局模式", -1)),
2086
- n("div", Ho, [
2087
- (y(), N(ve, null, ye(C, (a) => n("div", {
2088
- key: a.value,
2089
- class: ge(["layout-option", { "is-active": Ue.value === a.value }]),
2090
- onClick: (l) => Be(a.value)
2129
+ default: X(() => [
2130
+ s("div", Qo, [
2131
+ s("div", er, [
2132
+ a[12] || (a[12] = s("div", { class: "settings-title" }, "布局模式", -1)),
2133
+ s("div", tr, [
2134
+ (w(), N(he, null, ge(C, (i) => s("div", {
2135
+ key: i.value,
2136
+ class: _e(["layout-option", { "is-active": Ue.value === i.value }]),
2137
+ onClick: (l) => Be(i.value)
2091
2138
  }, [
2092
- n("div", Xo, [
2093
- a.value === "sidebar" ? (y(), N("div", Yo, [...i[9] || (i[9] = [
2094
- n("div", { class: "preview-aside" }, null, -1),
2095
- n("div", { class: "preview-main" }, [
2096
- n("div", { class: "preview-header" }),
2097
- n("div", { class: "preview-content" })
2139
+ s("div", nr, [
2140
+ i.value === "sidebar" ? (w(), N("div", or, [...a[9] || (a[9] = [
2141
+ s("div", { class: "preview-aside" }, null, -1),
2142
+ s("div", { class: "preview-main" }, [
2143
+ s("div", { class: "preview-header" }),
2144
+ s("div", { class: "preview-content" })
2098
2145
  ], -1)
2099
- ])])) : a.value === "top" ? (y(), N("div", Jo, [...i[10] || (i[10] = [
2100
- n("div", { class: "preview-header-full" }, null, -1),
2101
- n("div", { class: "preview-content-full" }, null, -1)
2102
- ])])) : (y(), N("div", Zo, [...i[11] || (i[11] = [
2103
- n("div", { class: "preview-header-mix" }, [
2104
- n("div", { class: "preview-mix-left" })
2146
+ ])])) : i.value === "top" ? (w(), N("div", rr, [...a[10] || (a[10] = [
2147
+ s("div", { class: "preview-header-full" }, null, -1),
2148
+ s("div", { class: "preview-content-full" }, null, -1)
2149
+ ])])) : (w(), N("div", ar, [...a[11] || (a[11] = [
2150
+ s("div", { class: "preview-header-mix" }, [
2151
+ s("div", { class: "preview-mix-left" })
2105
2152
  ], -1),
2106
- n("div", { class: "preview-mix-body" }, [
2107
- n("div", { class: "preview-mix-aside" }),
2108
- n("div", { class: "preview-mix-content" })
2153
+ s("div", { class: "preview-mix-body" }, [
2154
+ s("div", { class: "preview-mix-aside" }),
2155
+ s("div", { class: "preview-mix-content" })
2109
2156
  ], -1)
2110
2157
  ])]))
2111
2158
  ]),
2112
- n("span", Qo, W(a.label), 1)
2113
- ], 10, Wo)), 64))
2159
+ s("span", ir, q(i.label), 1)
2160
+ ], 10, sr)), 64))
2114
2161
  ])
2115
2162
  ]),
2116
- n("div", er, [
2117
- i[13] || (i[13] = n("div", { class: "settings-title" }, "主题色", -1)),
2118
- n("div", tr, [
2119
- (y(), N(ve, null, ye(Me, (a) => n("div", {
2120
- key: a.value,
2121
- class: ge(["color-option", { "is-active": b(h).primaryColor === a.value }]),
2122
- style: Xe({ backgroundColor: a.value }),
2123
- title: a.label,
2124
- onClick: (l) => G(a.value)
2163
+ s("div", lr, [
2164
+ a[13] || (a[13] = s("div", { class: "settings-title" }, "主题色", -1)),
2165
+ s("div", cr, [
2166
+ (w(), N(he, null, ge(Me, (i) => s("div", {
2167
+ key: i.value,
2168
+ class: _e(["color-option", { "is-active": y(h).primaryColor === i.value }]),
2169
+ style: Ye({ backgroundColor: i.value }),
2170
+ title: i.label,
2171
+ onClick: (l) => K(i.value)
2125
2172
  }, [
2126
- b(h).primaryColor === a.value ? (y(), me(b(Q), {
2173
+ y(h).primaryColor === i.value ? (w(), ce(y(Z), {
2127
2174
  key: 0,
2128
2175
  name: "check",
2129
2176
  size: 12,
2130
2177
  color: "#fff"
2131
2178
  })) : ie("", !0)
2132
- ], 14, sr)), 64))
2179
+ ], 14, ur)), 64))
2133
2180
  ])
2134
2181
  ]),
2135
- n("div", nr, [
2136
- i[18] || (i[18] = n("div", { class: "settings-title" }, "功能设置", -1)),
2137
- n("div", or, [
2138
- n("div", rr, [
2139
- i[15] || (i[15] = n("span", null, "灰色模式", -1)),
2140
- n("div", {
2141
- class: ge(["switch-wrapper", { "is-checked": oe.value }]),
2142
- onClick: Ee
2143
- }, [...i[14] || (i[14] = [
2144
- n("span", { class: "switch-core" }, null, -1)
2182
+ s("div", dr, [
2183
+ a[18] || (a[18] = s("div", { class: "settings-title" }, "功能设置", -1)),
2184
+ s("div", fr, [
2185
+ s("div", pr, [
2186
+ a[15] || (a[15] = s("span", null, "灰色模式", -1)),
2187
+ s("div", {
2188
+ class: _e(["switch-wrapper", { "is-checked": oe.value }]),
2189
+ onClick: Ne
2190
+ }, [...a[14] || (a[14] = [
2191
+ s("span", { class: "switch-core" }, null, -1)
2145
2192
  ])], 2)
2146
2193
  ]),
2147
- n("div", ar, [
2148
- i[17] || (i[17] = n("span", null, "暗黑模式", -1)),
2149
- n("div", {
2150
- class: ge(["switch-wrapper", { "is-checked": b(h).isDark }]),
2194
+ s("div", mr, [
2195
+ a[17] || (a[17] = s("span", null, "暗黑模式", -1)),
2196
+ s("div", {
2197
+ class: _e(["switch-wrapper", { "is-checked": y(h).isDark }]),
2151
2198
  onClick: Oe
2152
- }, [...i[16] || (i[16] = [
2153
- n("span", { class: "switch-core" }, null, -1)
2199
+ }, [...a[16] || (a[16] = [
2200
+ s("span", { class: "switch-core" }, null, -1)
2154
2201
  ])], 2)
2155
2202
  ])
2156
2203
  ])
@@ -2162,71 +2209,71 @@ const Na = {
2162
2209
  ]);
2163
2210
  };
2164
2211
  }
2165
- }), lr = /* @__PURE__ */ Se(ir, [["__scopeId", "data-v-25806305"]]), cr = {
2212
+ }), vr = /* @__PURE__ */ Se(hr, [["__scopeId", "data-v-25806305"]]), gr = {
2166
2213
  key: 0,
2167
2214
  class: "layout layout--sidebar"
2168
- }, ur = { class: "layout__main" }, dr = { class: "layout__header" }, fr = { class: "layout__content" }, pr = {
2215
+ }, _r = { class: "layout__main" }, wr = { class: "layout__header" }, yr = { class: "layout__content" }, kr = {
2169
2216
  key: 1,
2170
2217
  class: "layout layout--top"
2171
- }, mr = { class: "layout__top-menu" }, hr = { class: "layout__main" }, vr = { class: "layout__content" }, gr = {
2218
+ }, br = { class: "layout__top-menu" }, xr = { class: "layout__main" }, Cr = { class: "layout__content" }, Nr = {
2172
2219
  key: 2,
2173
2220
  class: "layout layout--mix"
2174
- }, _r = { class: "layout__mix-top-menu" }, wr = { class: "layout__mix-body" }, yr = { class: "layout__content" }, br = /* @__PURE__ */ Ae({
2221
+ }, Er = { class: "layout__mix-top-menu" }, $r = { class: "layout__mix-body" }, Sr = { class: "layout__content" }, Mr = /* @__PURE__ */ Ae({
2175
2222
  __name: "index",
2176
2223
  setup(r) {
2177
2224
  const f = Re(), v = ze(), p = j(
2178
2225
  () => f.isCollapsed ? "64px" : "210px"
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);
2226
+ ), h = j(() => f.layout), b = j(() => h.value === "mix"), T = j(() => h.value === "sidebar" ? v.menuList : h.value === "mix" ? f.mixSubMenus : []), g = j(() => b.value ? T.value.length > 0 : !1);
2180
2227
  return (I, _) => {
2181
- const x = Ut("router-view");
2182
- return y(), N(ve, null, [
2183
- h.value === "sidebar" ? (y(), N("div", cr, [
2184
- n("aside", {
2228
+ const x = Bt("router-view");
2229
+ return w(), N(he, null, [
2230
+ h.value === "sidebar" ? (w(), N("div", gr, [
2231
+ s("aside", {
2185
2232
  class: "layout__aside",
2186
- style: Xe({ width: p.value })
2233
+ style: Ye({ width: p.value })
2187
2234
  }, [
2188
- R(Ot, {
2235
+ R(Ut, {
2189
2236
  "menu-list": T.value,
2190
2237
  "show-logo": !0,
2191
2238
  "show-user": !0
2192
2239
  }, null, 8, ["menu-list"])
2193
2240
  ], 4),
2194
- n("div", ur, [
2195
- n("header", dr, [
2241
+ s("div", _r, [
2242
+ s("header", wr, [
2196
2243
  R(wn)
2197
2244
  ]),
2198
- n("main", fr, [
2245
+ s("main", yr, [
2199
2246
  R(x)
2200
2247
  ])
2201
2248
  ])
2202
2249
  ])) : ie("", !0),
2203
- h.value === "top" ? (y(), N("div", pr, [
2204
- n("div", mr, [
2205
- R(_o)
2250
+ h.value === "top" ? (w(), N("div", kr, [
2251
+ s("div", br, [
2252
+ R(Eo)
2206
2253
  ]),
2207
- n("div", hr, [
2208
- n("main", vr, [
2254
+ s("div", xr, [
2255
+ s("main", Cr, [
2209
2256
  R(x)
2210
2257
  ])
2211
2258
  ])
2212
2259
  ])) : ie("", !0),
2213
- h.value === "mix" ? (y(), N("div", gr, [
2214
- n("div", _r, [
2215
- R(lr)
2260
+ h.value === "mix" ? (w(), N("div", Nr, [
2261
+ s("div", Er, [
2262
+ R(vr)
2216
2263
  ]),
2217
- n("div", wr, [
2218
- g.value ? (y(), N("aside", {
2264
+ s("div", $r, [
2265
+ g.value ? (w(), N("aside", {
2219
2266
  key: 0,
2220
2267
  class: "layout__aside",
2221
- style: Xe({ width: p.value })
2268
+ style: Ye({ width: p.value })
2222
2269
  }, [
2223
- R(Ot, {
2270
+ R(Ut, {
2224
2271
  "menu-list": T.value,
2225
2272
  "show-logo": !1,
2226
2273
  "show-user": !1
2227
2274
  }, null, 8, ["menu-list"])
2228
2275
  ], 4)) : ie("", !0),
2229
- n("main", yr, [
2276
+ s("main", Sr, [
2230
2277
  R(x)
2231
2278
  ])
2232
2279
  ])
@@ -2234,10 +2281,10 @@ const Na = {
2234
2281
  ], 64);
2235
2282
  };
2236
2283
  }
2237
- }), Ft = /* @__PURE__ */ Se(br, [["__scopeId", "data-v-fb6a0b14"]]), kr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2284
+ }), Ft = /* @__PURE__ */ Se(Mr, [["__scopeId", "data-v-fb6a0b14"]]), Ir = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2238
2285
  __proto__: null,
2239
2286
  default: Ft
2240
- }, Symbol.toStringTag, { value: "Module" })), xr = { class: "tabs-wrapper" }, Cr = { class: "tab-label" }, Er = ["onClick"], Nr = /* @__PURE__ */ Ae({
2287
+ }, Symbol.toStringTag, { value: "Module" })), Lr = { class: "tabs-wrapper" }, Ar = { class: "tab-label" }, Tr = ["onClick"], Or = /* @__PURE__ */ Ae({
2241
2288
  __name: "Tabs",
2242
2289
  setup(r) {
2243
2290
  const f = qe(), v = Pe(), p = j(() => {
@@ -2251,7 +2298,7 @@ const Na = {
2251
2298
  affix: !0
2252
2299
  });
2253
2300
  }), g;
2254
- }), h = j(() => f.path), k = (g) => {
2301
+ }), h = j(() => f.path), b = (g) => {
2255
2302
  v.push(g);
2256
2303
  }, T = (g) => {
2257
2304
  const I = p.value.find((_) => _.path === g);
@@ -2260,28 +2307,28 @@ const Na = {
2260
2307
  x && v.push(x.path);
2261
2308
  }
2262
2309
  };
2263
- return (g, I) => (y(), N("div", xr, [
2264
- R(b(Qt), {
2310
+ return (g, I) => (w(), N("div", Lr, [
2311
+ R(y(Qt), {
2265
2312
  modelValue: h.value,
2266
2313
  "onUpdate:modelValue": I[0] || (I[0] = (_) => h.value = _),
2267
2314
  type: "card",
2268
- onTabClick: k
2315
+ onTabClick: b
2269
2316
  }, {
2270
- default: Y(() => [
2271
- (y(!0), N(ve, null, ye(p.value, (_) => (y(), me(b(es), {
2317
+ default: X(() => [
2318
+ (w(!0), N(he, null, ge(p.value, (_) => (w(), ce(y(es), {
2272
2319
  key: _.path,
2273
2320
  name: _.path,
2274
2321
  label: _.title,
2275
2322
  closable: !_.affix
2276
2323
  }, {
2277
- label: Y(() => [
2278
- n("span", Cr, [
2279
- De(W(_.title) + " ", 1),
2280
- _.affix ? ie("", !0) : (y(), N("span", {
2324
+ label: X(() => [
2325
+ s("span", Ar, [
2326
+ De(q(_.title) + " ", 1),
2327
+ _.affix ? ie("", !0) : (w(), N("span", {
2281
2328
  key: 0,
2282
2329
  class: "tab-close",
2283
2330
  onClick: it((x) => T(_.path), ["stop"])
2284
- }, " ✕ ", 8, Er))
2331
+ }, " ✕ ", 8, Tr))
2285
2332
  ])
2286
2333
  ]),
2287
2334
  _: 2
@@ -2291,23 +2338,23 @@ const Na = {
2291
2338
  }, 8, ["modelValue"])
2292
2339
  ]));
2293
2340
  }
2294
- }), La = /* @__PURE__ */ Se(Nr, [["__scopeId", "data-v-9156d8cd"]]), $r = {}, Sr = { class: "footer" };
2295
- function Mr(r, f) {
2296
- return y(), N("div", Sr, [...f[0] || (f[0] = [
2297
- n("span", null, "Copyright © 2024 Xto Demo. All Rights Reserved.", -1)
2341
+ }), Da = /* @__PURE__ */ Se(Or, [["__scopeId", "data-v-9156d8cd"]]), Ur = {}, Br = { class: "footer" };
2342
+ function Pr(r, f) {
2343
+ return w(), N("div", Br, [...f[0] || (f[0] = [
2344
+ s("span", null, "Copyright © 2024 Xto Demo. All Rights Reserved.", -1)
2298
2345
  ])]);
2299
2346
  }
2300
- const Aa = /* @__PURE__ */ Se($r, [["render", Mr], ["__scopeId", "data-v-4852826a"]]);
2301
- var Ir = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2302
- function Lr(r) {
2347
+ const za = /* @__PURE__ */ Se(Ur, [["render", Pr], ["__scopeId", "data-v-4852826a"]]);
2348
+ var Rr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2349
+ function Dr(r) {
2303
2350
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
2304
2351
  }
2305
2352
  var dt = { exports: {} }, Vt = { exports: {} }, jt = { exports: {} };
2306
2353
  (function(r) {
2307
2354
  (function(f) {
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 = {
2355
+ var v, p = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, h = Math.ceil, b = 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, G = 1e9;
2356
+ function Q(U) {
2357
+ var L, J, ee, $ = C.prototype = { constructor: C, toString: null, valueOf: null }, re = new C(1), te = 20, z = 4, le = -7, de = 21, Ce = -1e7, fe = 1e7, ke = !1, be = 1, we = 0, Te = {
2311
2358
  prefix: "",
2312
2359
  groupSize: 3,
2313
2360
  secondaryGroupSize: 0,
@@ -2317,62 +2364,62 @@ var dt = { exports: {} }, Vt = { exports: {} }, jt = { exports: {} };
2317
2364
  fractionGroupSeparator: " ",
2318
2365
  // non-breaking space
2319
2366
  suffix: ""
2320
- }, Ee = "0123456789abcdefghijklmnopqrstuvwxyz", Oe = !0;
2367
+ }, Ne = "0123456789abcdefghijklmnopqrstuvwxyz", Oe = !0;
2321
2368
  function C(t, e) {
2322
- var o, c, s, i, u, a, l, m, d = this;
2369
+ var o, c, n, a, u, i, l, m, d = this;
2323
2370
  if (!(d instanceof C)) return new C(t, e);
2324
2371
  if (e == null) {
2325
2372
  if (t && t._isBigNumber === !0) {
2326
- d.s = t.s, !t.c || t.e > de ? d.c = d.e = null : t.e < Ce ? d.c = [d.e = 0] : (d.e = t.e, d.c = t.c.slice());
2373
+ d.s = t.s, !t.c || t.e > fe ? d.c = d.e = null : t.e < Ce ? d.c = [d.e = 0] : (d.e = t.e, d.c = t.c.slice());
2327
2374
  return;
2328
2375
  }
2329
- if ((a = typeof t == "number") && t * 0 == 0) {
2376
+ if ((i = typeof t == "number") && t * 0 == 0) {
2330
2377
  if (d.s = 1 / t < 0 ? (t = -t, -1) : 1, t === ~~t) {
2331
- for (i = 0, u = t; u >= 10; u /= 10, i++) ;
2332
- i > de ? d.c = d.e = null : (d.e = i, d.c = [t]);
2378
+ for (a = 0, u = t; u >= 10; u /= 10, a++) ;
2379
+ a > fe ? d.c = d.e = null : (d.e = a, d.c = [t]);
2333
2380
  return;
2334
2381
  }
2335
2382
  m = String(t);
2336
2383
  } else {
2337
- if (!p.test(m = String(t))) return se(d, m, a);
2384
+ if (!p.test(m = String(t))) return ee(d, m, i);
2338
2385
  d.s = m.charCodeAt(0) == 45 ? (m = m.slice(1), -1) : 1;
2339
2386
  }
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);
2387
+ (a = m.indexOf(".")) > -1 && (m = m.replace(".", "")), (u = m.search(/e/i)) > 0 ? (a < 0 && (a = u), a += +m.slice(u + 1), m = m.substring(0, u)) : a < 0 && (a = m.length);
2341
2388
  } else {
2342
- if (S(e, 2, Ee.length, "Base"), e == 10 && Oe)
2343
- return d = new C(t), G(d, ee + d.e + 1, z);
2344
- if (m = String(t), a = typeof t == "number") {
2345
- if (t * 0 != 0) return se(d, m, a, e);
2389
+ if (S(e, 2, Ne.length, "Base"), e == 10 && Oe)
2390
+ return d = new C(t), K(d, te + d.e + 1, z);
2391
+ if (m = String(t), i = typeof t == "number") {
2392
+ if (t * 0 != 0) return ee(d, m, i, e);
2346
2393
  if (d.s = 1 / t < 0 ? (m = m.slice(1), -1) : 1, C.DEBUG && m.replace(/^0\.0*|\./, "").length > 15)
2347
2394
  throw Error(g + t);
2348
2395
  } else
2349
2396
  d.s = m.charCodeAt(0) === 45 ? (m = m.slice(1), -1) : 1;
2350
- for (o = Ee.slice(0, e), i = u = 0, l = m.length; u < l; u++)
2397
+ for (o = Ne.slice(0, e), a = u = 0, l = m.length; u < l; u++)
2351
2398
  if (o.indexOf(c = m.charAt(u)) < 0) {
2352
2399
  if (c == ".") {
2353
- if (u > i) {
2354
- i = l;
2400
+ if (u > a) {
2401
+ a = l;
2355
2402
  continue;
2356
2403
  }
2357
- } else if (!s && (m == m.toUpperCase() && (m = m.toLowerCase()) || m == m.toLowerCase() && (m = m.toUpperCase()))) {
2358
- s = !0, u = -1, i = 0;
2404
+ } else if (!n && (m == m.toUpperCase() && (m = m.toLowerCase()) || m == m.toLowerCase() && (m = m.toUpperCase()))) {
2405
+ n = !0, u = -1, a = 0;
2359
2406
  continue;
2360
2407
  }
2361
- return se(d, String(t), a, e);
2408
+ return ee(d, String(t), i, e);
2362
2409
  }
2363
- a = !1, m = Z(m, e, 10, d.s), (i = m.indexOf(".")) > -1 ? m = m.replace(".", "") : i = m.length;
2410
+ i = !1, m = J(m, e, 10, d.s), (a = m.indexOf(".")) > -1 ? m = m.replace(".", "") : a = m.length;
2364
2411
  }
2365
2412
  for (u = 0; m.charCodeAt(u) === 48; u++) ;
2366
2413
  for (l = m.length; m.charCodeAt(--l) === 48; ) ;
2367
2414
  if (m = m.slice(u, ++l)) {
2368
- if (l -= u, a && C.DEBUG && l > 15 && (t > x || t !== k(t)))
2415
+ if (l -= u, i && C.DEBUG && l > 15 && (t > x || t !== b(t)))
2369
2416
  throw Error(g + d.s * t);
2370
- if ((i = i - u - 1) > de)
2417
+ if ((a = a - u - 1) > fe)
2371
2418
  d.c = d.e = null;
2372
- else if (i < Ce)
2419
+ else if (a < Ce)
2373
2420
  d.c = [d.e = 0];
2374
2421
  else {
2375
- if (d.e = i, d.c = [], u = (i + 1) % _, i < 0 && (u += _), u < l) {
2422
+ if (d.e = a, d.c = [], u = (a + 1) % _, a < 0 && (u += _), u < l) {
2376
2423
  for (u && d.c.push(+m.slice(0, u)), l -= _; u < l; )
2377
2424
  d.c.push(+m.slice(u, u += _));
2378
2425
  u = _ - (m = m.slice(u)).length;
@@ -2384,66 +2431,66 @@ var dt = { exports: {} }, Vt = { exports: {} }, jt = { exports: {} };
2384
2431
  } else
2385
2432
  d.c = [d.e = 0];
2386
2433
  }
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) {
2434
+ C.clone = Q, 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) {
2388
2435
  var e, o;
2389
2436
  if (t != null)
2390
2437
  if (typeof t == "object") {
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"))
2438
+ if (t.hasOwnProperty(e = "DECIMAL_PLACES") && (o = t[e], S(o, 0, G, e), te = 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], -G, 0, e), S(o[1], 0, G, e), le = o[0], de = o[1]) : (S(o, -G, G, e), le = -(de = o < 0 ? -o : o))), t.hasOwnProperty(e = "RANGE"))
2392
2439
  if (o = t[e], o && o.pop)
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)
2395
- Ce = -(de = o < 0 ? -o : o);
2440
+ S(o[0], -G, -1, e), S(o[1], 1, G, e), Ce = o[0], fe = o[1];
2441
+ else if (S(o, -G, G, e), o)
2442
+ Ce = -(fe = o < 0 ? -o : o);
2396
2443
  else
2397
2444
  throw Error(T + e + " cannot be zero: " + o);
2398
2445
  if (t.hasOwnProperty(e = "CRYPTO"))
2399
2446
  if (o = t[e], o === !!o)
2400
2447
  if (o)
2401
2448
  if (typeof crypto < "u" && crypto && (crypto.getRandomValues || crypto.randomBytes))
2402
- be = o;
2449
+ ke = o;
2403
2450
  else
2404
- throw be = !o, Error(T + "crypto unavailable");
2451
+ throw ke = !o, Error(T + "crypto unavailable");
2405
2452
  else
2406
- be = o;
2453
+ ke = o;
2407
2454
  else
2408
2455
  throw Error(T + e + " not true or false: " + o);
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"))
2456
+ if (t.hasOwnProperty(e = "MODULO_MODE") && (o = t[e], S(o, 0, 9, e), be = o), t.hasOwnProperty(e = "POW_PRECISION") && (o = t[e], S(o, 0, G, e), we = o), t.hasOwnProperty(e = "FORMAT"))
2410
2457
  if (o = t[e], typeof o == "object") Te = o;
2411
2458
  else throw Error(T + e + " not an object: " + o);
2412
2459
  if (t.hasOwnProperty(e = "ALPHABET"))
2413
2460
  if (o = t[e], typeof o == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(o))
2414
- Oe = o.slice(0, 10) == "0123456789", Ee = o;
2461
+ Oe = o.slice(0, 10) == "0123456789", Ne = o;
2415
2462
  else
2416
2463
  throw Error(T + e + " invalid: " + o);
2417
2464
  } else
2418
2465
  throw Error(T + "Object expected: " + t);
2419
2466
  return {
2420
- DECIMAL_PLACES: ee,
2467
+ DECIMAL_PLACES: te,
2421
2468
  ROUNDING_MODE: z,
2422
- EXPONENTIAL_AT: [le, ue],
2423
- RANGE: [Ce, de],
2424
- CRYPTO: be,
2425
- MODULO_MODE: ke,
2426
- POW_PRECISION: _e,
2469
+ EXPONENTIAL_AT: [le, de],
2470
+ RANGE: [Ce, fe],
2471
+ CRYPTO: ke,
2472
+ MODULO_MODE: be,
2473
+ POW_PRECISION: we,
2427
2474
  FORMAT: Te,
2428
- ALPHABET: Ee
2475
+ ALPHABET: Ne
2429
2476
  };
2430
2477
  }, C.isBigNumber = function(t) {
2431
2478
  if (!t || t._isBigNumber !== !0) return !1;
2432
2479
  if (!C.DEBUG) return !0;
2433
- var e, o, c = t.c, s = t.e, i = t.s;
2480
+ var e, o, c = t.c, n = t.e, a = t.s;
2434
2481
  e: if ({}.toString.call(c) == "[object Array]") {
2435
- if ((i === 1 || i === -1) && s >= -q && s <= q && s === k(s)) {
2482
+ if ((a === 1 || a === -1) && n >= -G && n <= G && n === b(n)) {
2436
2483
  if (c[0] === 0) {
2437
- if (s === 0 && c.length === 1) return !0;
2484
+ if (n === 0 && c.length === 1) return !0;
2438
2485
  break e;
2439
2486
  }
2440
- if (e = (s + 1) % _, e < 1 && (e += _), String(c[0]).length == e) {
2487
+ if (e = (n + 1) % _, e < 1 && (e += _), String(c[0]).length == e) {
2441
2488
  for (e = 0; e < c.length; e++)
2442
- if (o = c[e], o < 0 || o >= I || o !== k(o)) break e;
2489
+ if (o = c[e], o < 0 || o >= I || o !== b(o)) break e;
2443
2490
  if (o !== 0) return !0;
2444
2491
  }
2445
2492
  }
2446
- } else if (c === null && s === null && (i === null || i === 1 || i === -1))
2493
+ } else if (c === null && n === null && (a === null || a === 1 || a === -1))
2447
2494
  return !0;
2448
2495
  throw Error(T + "Invalid BigNumber: " + t);
2449
2496
  }, C.maximum = C.max = function() {
@@ -2452,218 +2499,218 @@ var dt = { exports: {} }, Vt = { exports: {} }, jt = { exports: {} };
2452
2499
  return Be(arguments, 1);
2453
2500
  }, C.random = function() {
2454
2501
  var t = 9007199254740992, e = Math.random() * t & 2097151 ? function() {
2455
- return k(Math.random() * t);
2502
+ return b(Math.random() * t);
2456
2503
  } : function() {
2457
2504
  return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
2458
2505
  };
2459
2506
  return function(o) {
2460
- var c, s, i, u, a, l = 0, m = [], d = new C(re);
2461
- if (o == null ? o = ee : S(o, 0, q), u = h(o / _), be)
2507
+ var c, n, a, u, i, l = 0, m = [], d = new C(re);
2508
+ if (o == null ? o = te : S(o, 0, G), u = h(o / _), ke)
2462
2509
  if (crypto.getRandomValues) {
2463
2510
  for (c = crypto.getRandomValues(new Uint32Array(u *= 2)); l < u; )
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);
2511
+ i = c[l] * 131072 + (c[l + 1] >>> 11), i >= 9e15 ? (n = crypto.getRandomValues(new Uint32Array(2)), c[l] = n[0], c[l + 1] = n[1]) : (m.push(i % 1e14), l += 2);
2465
2512
  l = u / 2;
2466
2513
  } else if (crypto.randomBytes) {
2467
2514
  for (c = crypto.randomBytes(u *= 7); l < u; )
2468
- a = (c[l] & 31) * 281474976710656 + c[l + 1] * 1099511627776 + c[l + 2] * 4294967296 + c[l + 3] * 16777216 + (c[l + 4] << 16) + (c[l + 5] << 8) + c[l + 6], a >= 9e15 ? crypto.randomBytes(7).copy(c, l) : (m.push(a % 1e14), l += 7);
2515
+ i = (c[l] & 31) * 281474976710656 + c[l + 1] * 1099511627776 + c[l + 2] * 4294967296 + c[l + 3] * 16777216 + (c[l + 4] << 16) + (c[l + 5] << 8) + c[l + 6], i >= 9e15 ? crypto.randomBytes(7).copy(c, l) : (m.push(i % 1e14), l += 7);
2469
2516
  l = u / 7;
2470
2517
  } else
2471
- throw be = !1, Error(T + "crypto unavailable");
2472
- if (!be)
2518
+ throw ke = !1, Error(T + "crypto unavailable");
2519
+ if (!ke)
2473
2520
  for (; l < u; )
2474
- a = e(), a < 9e15 && (m[l++] = a % 1e14);
2475
- for (u = m[--l], o %= _, u && o && (a = M[_ - o], m[l] = k(u / a) * a); m[l] === 0; m.pop(), l--) ;
2521
+ i = e(), i < 9e15 && (m[l++] = i % 1e14);
2522
+ for (u = m[--l], o %= _, u && o && (i = M[_ - o], m[l] = b(u / i) * i); m[l] === 0; m.pop(), l--) ;
2476
2523
  if (l < 0)
2477
- m = [i = 0];
2524
+ m = [a = 0];
2478
2525
  else {
2479
- for (i = -1; m[0] === 0; m.splice(0, 1), i -= _) ;
2480
- for (l = 1, a = m[0]; a >= 10; a /= 10, l++) ;
2481
- l < _ && (i -= _ - l);
2526
+ for (a = -1; m[0] === 0; m.splice(0, 1), a -= _) ;
2527
+ for (l = 1, i = m[0]; i >= 10; i /= 10, l++) ;
2528
+ l < _ && (a -= _ - l);
2482
2529
  }
2483
- return d.e = i, d.c = m, d;
2530
+ return d.e = a, d.c = m, d;
2484
2531
  };
2485
2532
  }(), C.sum = function() {
2486
2533
  for (var t = 1, e = arguments, o = new C(e[0]); t < e.length; ) o = o.plus(e[t++]);
2487
2534
  return o;
2488
- }, Z = /* @__PURE__ */ function() {
2535
+ }, J = /* @__PURE__ */ function() {
2489
2536
  var t = "0123456789";
2490
- function e(o, c, s, i) {
2491
- for (var u, a = [0], l, m = 0, d = o.length; m < d; ) {
2492
- for (l = a.length; l--; a[l] *= c) ;
2493
- for (a[0] += i.indexOf(o.charAt(m++)), u = 0; u < a.length; u++)
2494
- a[u] > s - 1 && (a[u + 1] == null && (a[u + 1] = 0), a[u + 1] += a[u] / s | 0, a[u] %= s);
2537
+ function e(o, c, n, a) {
2538
+ for (var u, i = [0], l, m = 0, d = o.length; m < d; ) {
2539
+ for (l = i.length; l--; i[l] *= c) ;
2540
+ for (i[0] += a.indexOf(o.charAt(m++)), u = 0; u < i.length; u++)
2541
+ i[u] > n - 1 && (i[u + 1] == null && (i[u + 1] = 0), i[u + 1] += i[u] / n | 0, i[u] %= n);
2495
2542
  }
2496
- return a.reverse();
2543
+ return i.reverse();
2497
2544
  }
2498
- return function(o, c, s, i, u) {
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(
2545
+ return function(o, c, n, a, u) {
2546
+ var i, l, m, d, k, D, F, ne, pe = o.indexOf("."), ve = te, se = z;
2547
+ for (pe >= 0 && (d = we, we = 0, o = o.replace(".", ""), ne = new C(c), D = ne.pow(o.length - pe), we = d, ne.c = e(
2501
2548
  oe(A(D.c), D.e, "0"),
2502
2549
  10,
2503
- s,
2550
+ n,
2504
2551
  t
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()) ;
2506
- if (!F[0]) return a.charAt(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])
2508
- o = w ? oe(a.charAt(1), -he, a.charAt(0)) : a.charAt(0);
2552
+ ), ne.e = ne.c.length), F = e(o, c, n, u ? (i = Ne, t) : (i = t, Ne)), m = d = F.length; F[--d] == 0; F.pop()) ;
2553
+ if (!F[0]) return i.charAt(0);
2554
+ if (pe < 0 ? --m : (D.c = F, D.e = m, D.s = a, D = L(D, ne, ve, se, n), F = D.c, k = D.r, m = D.e), l = m + ve + 1, pe = F[l], d = n / 2, k = k || l < 0 || F[l + 1] != null, k = se < 4 ? (pe != null || k) && (se == 0 || se == (D.s < 0 ? 3 : 2)) : pe > d || pe == d && (se == 4 || k || se == 6 && F[l - 1] & 1 || se == (D.s < 0 ? 8 : 7)), l < 1 || !F[0])
2555
+ o = k ? oe(i.charAt(1), -ve, i.charAt(0)) : i.charAt(0);
2509
2556
  else {
2510
- if (F.length = l, w)
2511
- for (--s; ++F[--l] > s; )
2557
+ if (F.length = l, k)
2558
+ for (--n; ++F[--l] > n; )
2512
2559
  F[l] = 0, l || (++m, F = [1].concat(F));
2513
2560
  for (d = F.length; !F[--d]; ) ;
2514
- for (fe = 0, o = ""; fe <= d; o += a.charAt(F[fe++])) ;
2515
- o = oe(o, m, a.charAt(0));
2561
+ for (pe = 0, o = ""; pe <= d; o += i.charAt(F[pe++])) ;
2562
+ o = oe(o, m, i.charAt(0));
2516
2563
  }
2517
2564
  return o;
2518
2565
  };
2519
2566
  }(), L = /* @__PURE__ */ function() {
2520
- function t(c, s, i) {
2521
- var u, a, l, m, d = 0, w = c.length, D = s % E, F = s / E | 0;
2522
- for (c = c.slice(); w--; )
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;
2567
+ function t(c, n, a) {
2568
+ var u, i, l, m, d = 0, k = c.length, D = n % E, F = n / E | 0;
2569
+ for (c = c.slice(); k--; )
2570
+ l = c[k] % E, m = c[k] / E | 0, u = F * l + m * D, i = D * l + u % E * E + d, d = (i / a | 0) + (u / E | 0) + F * m, c[k] = i % a;
2524
2571
  return d && (c = [d].concat(c)), c;
2525
2572
  }
2526
- function e(c, s, i, u) {
2527
- var a, l;
2528
- if (i != u)
2529
- l = i > u ? 1 : -1;
2573
+ function e(c, n, a, u) {
2574
+ var i, l;
2575
+ if (a != u)
2576
+ l = a > u ? 1 : -1;
2530
2577
  else
2531
- for (a = l = 0; a < i; a++)
2532
- if (c[a] != s[a]) {
2533
- l = c[a] > s[a] ? 1 : -1;
2578
+ for (i = l = 0; i < a; i++)
2579
+ if (c[i] != n[i]) {
2580
+ l = c[i] > n[i] ? 1 : -1;
2534
2581
  break;
2535
2582
  }
2536
2583
  return l;
2537
2584
  }
2538
- function o(c, s, i, u) {
2539
- for (var a = 0; i--; )
2540
- c[i] -= a, a = c[i] < s[i] ? 1 : 0, c[i] = a * u + c[i] - s[i];
2585
+ function o(c, n, a, u) {
2586
+ for (var i = 0; a--; )
2587
+ c[a] -= i, i = c[a] < n[a] ? 1 : 0, c[a] = i * u + c[a] - n[a];
2541
2588
  for (; !c[0] && c.length > 1; c.splice(0, 1)) ;
2542
2589
  }
2543
- return function(c, s, i, u, a) {
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;
2545
- if (!xe || !xe[0] || !pe || !pe[0])
2590
+ return function(c, n, a, u, i) {
2591
+ var l, m, d, k, D, F, ne, pe, ve, se, ae, ye, Ze, ft, pt, Ie, Ge, Ee = c.s == n.s ? 1 : -1, xe = c.c, me = n.c;
2592
+ if (!xe || !xe[0] || !me || !me[0])
2546
2593
  return new C(
2547
2594
  // Return NaN if either NaN, or both Infinity or 0.
2548
- !c.s || !s.s || (xe ? pe && xe[0] == pe[0] : !pe) ? NaN : (
2595
+ !c.s || !n.s || (xe ? me && xe[0] == me[0] : !me) ? NaN : (
2549
2596
  // Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0.
2550
- xe && xe[0] == 0 || !pe ? Ne * 0 : Ne / 0
2597
+ xe && xe[0] == 0 || !me ? Ee * 0 : Ee / 0
2551
2598
  )
2552
2599
  );
2553
- for (fe = new C(Ne), he = fe.c = [], m = c.e - s.e, Ne = i + m + 1, a || (a = I, m = O(c.e / _) - O(s.e / _), Ne = Ne / _ | 0), d = 0; pe[d] == (xe[d] || 0); d++) ;
2554
- if (pe[d] > (xe[d] || 0) && m--, Ne < 0)
2555
- he.push(1), w = !0;
2600
+ for (pe = new C(Ee), ve = pe.c = [], m = c.e - n.e, Ee = a + m + 1, i || (i = I, m = O(c.e / _) - O(n.e / _), Ee = Ee / _ | 0), d = 0; me[d] == (xe[d] || 0); d++) ;
2601
+ if (me[d] > (xe[d] || 0) && m--, Ee < 0)
2602
+ ve.push(1), k = !0;
2556
2603
  else {
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) ;
2558
- Ge = pe.slice(), Ge = [0].concat(Ge), pt = pe[0], pe[1] >= a / 2 && pt++;
2604
+ for (ft = xe.length, Ie = me.length, d = 0, Ee += 2, D = b(i / (me[0] + 1)), D > 1 && (me = t(me, D, i), xe = t(xe, D, i), Ie = me.length, ft = xe.length), Ze = Ie, se = xe.slice(0, Ie), ae = se.length; ae < Ie; se[ae++] = 0) ;
2605
+ Ge = me.slice(), Ge = [0].concat(Ge), pt = me[0], me[1] >= i / 2 && pt++;
2559
2606
  do {
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;
2607
+ if (D = 0, l = e(me, se, Ie, ae), l < 0) {
2608
+ if (ye = se[0], Ie != ae && (ye = ye * i + (se[1] || 0)), D = b(ye / pt), D > 1)
2609
+ for (D >= i && (D = i - 1), F = t(me, D, i), ne = F.length, ae = se.length; e(F, se, ne, ae) == 1; )
2610
+ D--, o(F, Ie < ne ? Ge : me, ne, i), ne = F.length, l = 1;
2564
2611
  else
2565
- D == 0 && (l = D = 1), F = pe.slice(), ne = F.length;
2566
- if (ne < ae && (F = [0].concat(F)), o(te, F, ae, a), ae = te.length, l == -1)
2567
- for (; e(pe, te, Ie, 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);
2571
- } while ((Je++ < ft || te[0] != null) && Ne--);
2572
- w = te[0] != null, he[0] || he.splice(0, 1);
2612
+ D == 0 && (l = D = 1), F = me.slice(), ne = F.length;
2613
+ if (ne < ae && (F = [0].concat(F)), o(se, F, ae, i), ae = se.length, l == -1)
2614
+ for (; e(me, se, Ie, ae) < 1; )
2615
+ D++, o(se, Ie < ae ? Ge : me, ae, i), ae = se.length;
2616
+ } else l === 0 && (D++, se = [0]);
2617
+ ve[d++] = D, se[0] ? se[ae++] = xe[Ze] || 0 : (se = [xe[Ze]], ae = 1);
2618
+ } while ((Ze++ < ft || se[0] != null) && Ee--);
2619
+ k = se[0] != null, ve[0] || ve.splice(0, 1);
2573
2620
  }
2574
- if (a == I) {
2575
- for (d = 1, Ne = he[0]; Ne >= 10; Ne /= 10, d++) ;
2576
- G(fe, i + (fe.e = d + m * _ - 1) + 1, u, w);
2621
+ if (i == I) {
2622
+ for (d = 1, Ee = ve[0]; Ee >= 10; Ee /= 10, d++) ;
2623
+ K(pe, a + (pe.e = d + m * _ - 1) + 1, u, k);
2577
2624
  } else
2578
- fe.e = m, fe.r = +w;
2579
- return fe;
2625
+ pe.e = m, pe.r = +k;
2626
+ return pe;
2580
2627
  };
2581
2628
  }();
2582
2629
  function Ue(t, e, o, c) {
2583
- var s, i, u, a, l;
2630
+ var n, a, u, i, l;
2584
2631
  if (o == null ? o = z : S(o, 0, 8), !t.c) return t.toString();
2585
- if (s = t.c[0], u = t.e, e == null)
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)) {
2588
- for (; a < e; l += "0", a++) ;
2589
- l = X(l, i);
2590
- } else if (e -= u + (c === 2 && i > u), l = oe(l, i, "0"), i + 1 > a) {
2632
+ if (n = t.c[0], u = t.e, e == null)
2633
+ l = A(t.c), l = c == 1 || c == 2 && (u <= le || u >= de) ? Y(l, u) : oe(l, u, "0");
2634
+ else if (t = K(new C(t), e, o), a = t.e, l = A(t.c), i = l.length, c == 1 || c == 2 && (e <= a || a <= le)) {
2635
+ for (; i < e; l += "0", i++) ;
2636
+ l = Y(l, a);
2637
+ } else if (e -= u + (c === 2 && a > u), l = oe(l, a, "0"), a + 1 > i) {
2591
2638
  if (--e > 0) for (l += "."; e--; l += "0") ;
2592
- } else if (e += i - a, e > 0)
2593
- for (i + 1 == a && (l += "."); e--; l += "0") ;
2594
- return t.s < 0 && s ? "-" + l : l;
2639
+ } else if (e += a - i, e > 0)
2640
+ for (a + 1 == i && (l += "."); e--; l += "0") ;
2641
+ return t.s < 0 && n ? "-" + l : l;
2595
2642
  }
2596
2643
  function Be(t, e) {
2597
- for (var o, c, s = 1, i = new C(t[0]); s < t.length; s++)
2598
- c = new C(t[s]), (!c.s || (o = V(i, c)) === e || o === 0 && i.s === e) && (i = c);
2599
- return i;
2644
+ for (var o, c, n = 1, a = new C(t[0]); n < t.length; n++)
2645
+ c = new C(t[n]), (!c.s || (o = V(a, c)) === e || o === 0 && a.s === e) && (a = c);
2646
+ return a;
2600
2647
  }
2601
2648
  function Me(t, e, o) {
2602
- for (var c = 1, s = e.length; !e[--s]; e.pop()) ;
2603
- for (s = e[0]; s >= 10; s /= 10, c++) ;
2604
- return (o = c + o * _ - 1) > de ? t.c = t.e = null : o < Ce ? t.c = [t.e = 0] : (t.e = o, t.c = e), t;
2649
+ for (var c = 1, n = e.length; !e[--n]; e.pop()) ;
2650
+ for (n = e[0]; n >= 10; n /= 10, c++) ;
2651
+ return (o = c + o * _ - 1) > fe ? t.c = t.e = null : o < Ce ? t.c = [t.e = 0] : (t.e = o, t.c = e), t;
2605
2652
  }
2606
- se = /* @__PURE__ */ function() {
2607
- var t = /^(-?)0([xbo])(?=\w[\w.]*$)/i, e = /^([^.]+)\.$/, o = /^\.([^.]+)$/, c = /^-?(Infinity|NaN)$/, s = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
2608
- return function(i, u, a, l) {
2609
- var m, d = a ? u : u.replace(s, "");
2653
+ ee = /* @__PURE__ */ function() {
2654
+ var t = /^(-?)0([xbo])(?=\w[\w.]*$)/i, e = /^([^.]+)\.$/, o = /^\.([^.]+)$/, c = /^-?(Infinity|NaN)$/, n = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
2655
+ return function(a, u, i, l) {
2656
+ var m, d = i ? u : u.replace(n, "");
2610
2657
  if (c.test(d))
2611
- i.s = isNaN(d) ? null : d < 0 ? -1 : 1;
2658
+ a.s = isNaN(d) ? null : d < 0 ? -1 : 1;
2612
2659
  else {
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;
2660
+ if (!i && (d = d.replace(t, function(k, D, F) {
2661
+ return m = (F = F.toLowerCase()) == "x" ? 16 : F == "b" ? 2 : 8, !l || l == m ? D : k;
2615
2662
  }), l && (m = l, d = d.replace(e, "$1").replace(o, "0.$1")), u != d))
2616
2663
  return new C(d, m);
2617
2664
  if (C.DEBUG)
2618
2665
  throw Error(T + "Not a" + (l ? " base " + l : "") + " number: " + u);
2619
- i.s = null;
2666
+ a.s = null;
2620
2667
  }
2621
- i.c = i.e = null;
2668
+ a.c = a.e = null;
2622
2669
  };
2623
2670
  }();
2624
- function G(t, e, o, c) {
2625
- var s, i, u, a, l, m, d, w = t.c, D = M;
2626
- if (w) {
2671
+ function K(t, e, o, c) {
2672
+ var n, a, u, i, l, m, d, k = t.c, D = M;
2673
+ if (k) {
2627
2674
  e: {
2628
- for (s = 1, a = w[0]; a >= 10; a /= 10, s++) ;
2629
- if (i = e - s, i < 0)
2630
- i += _, u = e, l = w[m = 0], d = k(l / D[s - u - 1] % 10);
2631
- else if (m = h((i + 1) / _), m >= w.length)
2675
+ for (n = 1, i = k[0]; i >= 10; i /= 10, n++) ;
2676
+ if (a = e - n, a < 0)
2677
+ a += _, u = e, l = k[m = 0], d = b(l / D[n - u - 1] % 10);
2678
+ else if (m = h((a + 1) / _), m >= k.length)
2632
2679
  if (c) {
2633
- for (; w.length <= m; w.push(0)) ;
2634
- l = d = 0, s = 1, i %= _, u = i - _ + 1;
2680
+ for (; k.length <= m; k.push(0)) ;
2681
+ l = d = 0, n = 1, a %= _, u = a - _ + 1;
2635
2682
  } else
2636
2683
  break e;
2637
2684
  else {
2638
- for (l = a = w[m], s = 1; a >= 10; a /= 10, s++) ;
2639
- i %= _, u = i - _ + s, d = u < 0 ? 0 : k(l / D[s - u - 1] % 10);
2685
+ for (l = i = k[m], n = 1; i >= 10; i /= 10, n++) ;
2686
+ a %= _, u = a - _ + n, d = u < 0 ? 0 : b(l / D[n - u - 1] % 10);
2640
2687
  }
2641
2688
  if (c = c || e < 0 || // Are there any non-zero digits after the rounding digit?
2642
2689
  // The expression n % pows10[d - j - 1] returns all digits of n to the right
2643
2690
  // of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.
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)
2691
+ k[m + 1] != null || (u < 0 ? l : l % D[n - 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.
2692
+ (a > 0 ? u > 0 ? l / D[n - u] : 0 : k[m - 1]) % 10 & 1 || o == (t.s < 0 ? 8 : 7)), e < 1 || !k[0])
2693
+ return k.length = 0, c ? (e -= t.e + 1, k[0] = D[(_ - e % _) % _], t.e = -e || 0) : k[0] = t.e = 0, t;
2694
+ if (a == 0 ? (k.length = m, i = 1, m--) : (k.length = m + 1, i = D[_ - a], k[m] = u > 0 ? b(l / D[n - u] % D[u]) * i : 0), c)
2648
2695
  for (; ; )
2649
2696
  if (m == 0) {
2650
- for (i = 1, u = w[0]; u >= 10; u /= 10, i++) ;
2651
- for (u = w[0] += a, a = 1; u >= 10; u /= 10, a++) ;
2652
- i != a && (t.e++, w[0] == I && (w[0] = 1));
2697
+ for (a = 1, u = k[0]; u >= 10; u /= 10, a++) ;
2698
+ for (u = k[0] += i, i = 1; u >= 10; u /= 10, i++) ;
2699
+ a != i && (t.e++, k[0] == I && (k[0] = 1));
2653
2700
  break;
2654
2701
  } else {
2655
- if (w[m] += a, w[m] != I) break;
2656
- w[m--] = 0, a = 1;
2702
+ if (k[m] += i, k[m] != I) break;
2703
+ k[m--] = 0, i = 1;
2657
2704
  }
2658
- for (i = w.length; w[--i] === 0; w.pop()) ;
2705
+ for (a = k.length; k[--a] === 0; k.pop()) ;
2659
2706
  }
2660
- t.e > de ? t.c = t.e = null : t.e < Ce && (t.c = [t.e = 0]);
2707
+ t.e > fe ? t.c = t.e = null : t.e < Ce && (t.c = [t.e = 0]);
2661
2708
  }
2662
2709
  return t;
2663
2710
  }
2664
2711
  function B(t) {
2665
2712
  var e, o = t.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);
2713
+ return o === null ? t.toString() : (e = A(t.c), e = o <= le || o >= de ? Y(e, o) : oe(e, o, "0"), t.s < 0 ? "-" + e : e);
2667
2714
  }
2668
2715
  return $.absoluteValue = $.abs = function() {
2669
2716
  var t = new C(this);
@@ -2671,50 +2718,50 @@ var dt = { exports: {} }, Vt = { exports: {} }, jt = { exports: {} };
2671
2718
  }, $.comparedTo = function(t, e) {
2672
2719
  return V(this, new C(t, e));
2673
2720
  }, $.decimalPlaces = $.dp = function(t, e) {
2674
- var o, c, s, i = this;
2721
+ var o, c, n, a = this;
2675
2722
  if (t != null)
2676
- return S(t, 0, q), e == null ? e = z : S(e, 0, 8), G(new C(i), t + i.e + 1, e);
2677
- if (!(o = i.c)) return null;
2678
- if (c = ((s = o.length - 1) - O(this.e / _)) * _, s = o[s]) for (; s % 10 == 0; s /= 10, c--) ;
2723
+ return S(t, 0, G), e == null ? e = z : S(e, 0, 8), K(new C(a), t + a.e + 1, e);
2724
+ if (!(o = a.c)) return null;
2725
+ if (c = ((n = o.length - 1) - O(this.e / _)) * _, n = o[n]) for (; n % 10 == 0; n /= 10, c--) ;
2679
2726
  return c < 0 && (c = 0), c;
2680
2727
  }, $.dividedBy = $.div = function(t, e) {
2681
- return L(this, new C(t, e), ee, z);
2728
+ return L(this, new C(t, e), te, z);
2682
2729
  }, $.dividedToIntegerBy = $.idiv = function(t, e) {
2683
2730
  return L(this, new C(t, e), 0, 1);
2684
2731
  }, $.exponentiatedBy = $.pow = function(t, e) {
2685
- var o, c, s, i, u, a, l, m, d, w = this;
2732
+ var o, c, n, a, u, i, l, m, d, k = this;
2686
2733
  if (t = new C(t), t.c && !t.isInteger())
2687
2734
  throw Error(T + "Exponent not an integer: " + B(t));
2688
- if (e != null && (e = new C(e)), a = t.e > 14, !w.c || !w.c[0] || w.c[0] == 1 && !w.e && w.c.length == 1 || !t.c || !t.c[0])
2689
- return d = new C(Math.pow(+B(w), a ? t.s * (2 - K(t)) : +B(t))), e ? d.mod(e) : d;
2735
+ if (e != null && (e = new C(e)), i = t.e > 14, !k.c || !k.c[0] || k.c[0] == 1 && !k.e && k.c.length == 1 || !t.c || !t.c[0])
2736
+ return d = new C(Math.pow(+B(k), i ? t.s * (2 - H(t)) : +B(t))), e ? d.mod(e) : d;
2690
2737
  if (l = t.s < 0, e) {
2691
2738
  if (e.c ? !e.c[0] : !e.s) return new C(NaN);
2692
- c = !l && w.isInteger() && e.isInteger(), c && (w = w.mod(e));
2739
+ c = !l && k.isInteger() && e.isInteger(), c && (k = k.mod(e));
2693
2740
  } else {
2694
- if (t.e > 9 && (w.e > 0 || w.e < -1 || (w.e == 0 ? w.c[0] > 1 || a && w.c[1] >= 24e7 : w.c[0] < 8e13 || a && w.c[0] <= 9999975e7)))
2695
- return i = w.s < 0 && K(t) ? -0 : 0, w.e > -1 && (i = 1 / i), new C(l ? 1 / i : i);
2696
- _e && (i = h(_e / _ + 2));
2741
+ if (t.e > 9 && (k.e > 0 || k.e < -1 || (k.e == 0 ? k.c[0] > 1 || i && k.c[1] >= 24e7 : k.c[0] < 8e13 || i && k.c[0] <= 9999975e7)))
2742
+ return a = k.s < 0 && H(t) ? -0 : 0, k.e > -1 && (a = 1 / a), new C(l ? 1 / a : a);
2743
+ we && (a = h(we / _ + 2));
2697
2744
  }
2698
- for (a ? (o = new C(0.5), l && (t.s = 1), m = K(t)) : (s = Math.abs(+B(t)), m = s % 2), d = new C(re); ; ) {
2745
+ for (i ? (o = new C(0.5), l && (t.s = 1), m = H(t)) : (n = Math.abs(+B(t)), m = n % 2), d = new C(re); ; ) {
2699
2746
  if (m) {
2700
- if (d = d.times(w), !d.c) break;
2701
- i ? d.c.length > i && (d.c.length = i) : c && (d = d.mod(e));
2747
+ if (d = d.times(k), !d.c) break;
2748
+ a ? d.c.length > a && (d.c.length = a) : c && (d = d.mod(e));
2702
2749
  }
2703
- if (s) {
2704
- if (s = k(s / 2), s === 0) break;
2705
- m = s % 2;
2706
- } else if (t = t.times(o), G(t, t.e + 1, 1), t.e > 14)
2707
- m = K(t);
2750
+ if (n) {
2751
+ if (n = b(n / 2), n === 0) break;
2752
+ m = n % 2;
2753
+ } else if (t = t.times(o), K(t, t.e + 1, 1), t.e > 14)
2754
+ m = H(t);
2708
2755
  else {
2709
- if (s = +B(t), s === 0) break;
2710
- m = s % 2;
2756
+ if (n = +B(t), n === 0) break;
2757
+ m = n % 2;
2711
2758
  }
2712
- w = w.times(w), i ? w.c && w.c.length > i && (w.c.length = i) : c && (w = w.mod(e));
2759
+ k = k.times(k), a ? k.c && k.c.length > a && (k.c.length = a) : c && (k = k.mod(e));
2713
2760
  }
2714
- return c ? d : (l && (d = re.div(d)), e ? d.mod(e) : i ? G(d, _e, z, u) : d);
2761
+ return c ? d : (l && (d = re.div(d)), e ? d.mod(e) : a ? K(d, we, z, u) : d);
2715
2762
  }, $.integerValue = function(t) {
2716
2763
  var e = new C(this);
2717
- return t == null ? t = z : S(t, 0, 8), G(e, e.e + 1, t);
2764
+ return t == null ? t = z : S(t, 0, 8), K(e, e.e + 1, t);
2718
2765
  }, $.isEqualTo = $.eq = function(t, e) {
2719
2766
  return V(this, new C(t, e)) === 0;
2720
2767
  }, $.isFinite = function() {
@@ -2738,142 +2785,142 @@ var dt = { exports: {} }, Vt = { exports: {} }, jt = { exports: {} };
2738
2785
  }, $.isZero = function() {
2739
2786
  return !!this.c && this.c[0] == 0;
2740
2787
  }, $.minus = function(t, e) {
2741
- var o, c, s, i, u = this, a = u.s;
2742
- if (t = new C(t, e), e = t.s, !a || !e) return new C(NaN);
2743
- if (a != e)
2788
+ var o, c, n, a, u = this, i = u.s;
2789
+ if (t = new C(t, e), e = t.s, !i || !e) return new C(NaN);
2790
+ if (i != e)
2744
2791
  return t.s = -e, u.plus(t);
2745
- var l = u.e / _, m = t.e / _, d = u.c, w = t.c;
2792
+ var l = u.e / _, m = t.e / _, d = u.c, k = t.c;
2746
2793
  if (!l || !m) {
2747
- if (!d || !w) return d ? (t.s = -e, t) : new C(w ? u : NaN);
2748
- if (!d[0] || !w[0])
2749
- return w[0] ? (t.s = -e, t) : new C(d[0] ? u : (
2794
+ if (!d || !k) return d ? (t.s = -e, t) : new C(k ? u : NaN);
2795
+ if (!d[0] || !k[0])
2796
+ return k[0] ? (t.s = -e, t) : new C(d[0] ? u : (
2750
2797
  // IEEE 754 (2008) 6.3: n - n = -0 when rounding to -Infinity
2751
2798
  z == 3 ? -0 : 0
2752
2799
  ));
2753
2800
  }
2754
- if (l = O(l), m = O(m), d = d.slice(), a = l - m) {
2755
- for ((i = a < 0) ? (a = -a, s = d) : (m = l, s = w), s.reverse(), e = a; e--; s.push(0)) ;
2756
- s.reverse();
2801
+ if (l = O(l), m = O(m), d = d.slice(), i = l - m) {
2802
+ for ((a = i < 0) ? (i = -i, n = d) : (m = l, n = k), n.reverse(), e = i; e--; n.push(0)) ;
2803
+ n.reverse();
2757
2804
  } else
2758
- for (c = (i = (a = d.length) < (e = w.length)) ? a : e, a = e = 0; e < c; e++)
2759
- if (d[e] != w[e]) {
2760
- i = d[e] < w[e];
2805
+ for (c = (a = (i = d.length) < (e = k.length)) ? i : e, i = e = 0; e < c; e++)
2806
+ if (d[e] != k[e]) {
2807
+ a = d[e] < k[e];
2761
2808
  break;
2762
2809
  }
2763
- if (i && (s = d, d = w, w = s, t.s = -t.s), e = (c = w.length) - (o = d.length), e > 0) for (; e--; d[o++] = 0) ;
2764
- for (e = I - 1; c > a; ) {
2765
- if (d[--c] < w[c]) {
2810
+ if (a && (n = d, d = k, k = n, t.s = -t.s), e = (c = k.length) - (o = d.length), e > 0) for (; e--; d[o++] = 0) ;
2811
+ for (e = I - 1; c > i; ) {
2812
+ if (d[--c] < k[c]) {
2766
2813
  for (o = c; o && !d[--o]; d[o] = e) ;
2767
2814
  --d[o], d[c] += I;
2768
2815
  }
2769
- d[c] -= w[c];
2816
+ d[c] -= k[c];
2770
2817
  }
2771
2818
  for (; d[0] == 0; d.splice(0, 1), --m) ;
2772
2819
  return d[0] ? Me(t, d, m) : (t.s = z == 3 ? -1 : 1, t.c = [t.e = 0], t);
2773
2820
  }, $.modulo = $.mod = function(t, e) {
2774
- var o, c, s = this;
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);
2821
+ var o, c, n = this;
2822
+ return t = new C(t, e), !n.c || !t.s || t.c && !t.c[0] ? new C(NaN) : !t.c || n.c && !n.c[0] ? new C(n) : (be == 9 ? (c = t.s, t.s = 1, o = L(n, t, 0, 3), t.s = c, o.s *= c) : o = L(n, t, 0, be), t = n.minus(o.times(t)), !t.c[0] && be == 1 && (t.s = n.s), t);
2776
2823
  }, $.multipliedBy = $.times = function(t, e) {
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;
2778
- if (!ae || !we || !ae[0] || !we[0])
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;
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)) ;
2781
- for (fe = I, he = E, s = w; --s >= 0; ) {
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;
2784
- ne[i] = o;
2824
+ var o, c, n, a, u, i, l, m, d, k, D, F, ne, pe, ve, se = this, ae = se.c, ye = (t = new C(t, e)).c;
2825
+ if (!ae || !ye || !ae[0] || !ye[0])
2826
+ return !se.s || !t.s || ae && !ae[0] && !ye || ye && !ye[0] && !ae ? t.c = t.e = t.s = null : (t.s *= se.s, !ae || !ye ? t.c = t.e = null : (t.c = [0], t.e = 0)), t;
2827
+ for (c = O(se.e / _) + O(t.e / _), t.s *= se.s, l = ae.length, k = ye.length, l < k && (ne = ae, ae = ye, ye = ne, n = l, l = k, k = n), n = l + k, ne = []; n--; ne.push(0)) ;
2828
+ for (pe = I, ve = E, n = k; --n >= 0; ) {
2829
+ for (o = 0, D = ye[n] % ve, F = ye[n] / ve | 0, u = l, a = n + u; a > n; )
2830
+ m = ae[--u] % ve, d = ae[u] / ve | 0, i = F * m + d * D, m = D * m + i % ve * ve + ne[a] + o, o = (m / pe | 0) + (i / ve | 0) + F * d, ne[a--] = m % pe;
2831
+ ne[a] = o;
2785
2832
  }
2786
2833
  return o ? ++c : ne.splice(0, 1), Me(t, ne, c);
2787
2834
  }, $.negated = function() {
2788
2835
  var t = new C(this);
2789
2836
  return t.s = -t.s || null, t;
2790
2837
  }, $.plus = function(t, e) {
2791
- var o, c = this, s = c.s;
2792
- if (t = new C(t, e), e = t.s, !s || !e) return new C(NaN);
2793
- if (s != e)
2838
+ var o, c = this, n = c.s;
2839
+ if (t = new C(t, e), e = t.s, !n || !e) return new C(NaN);
2840
+ if (n != e)
2794
2841
  return t.s = -e, c.minus(t);
2795
- var i = c.e / _, u = t.e / _, a = c.c, l = t.c;
2796
- if (!i || !u) {
2797
- if (!a || !l) return new C(s / 0);
2798
- if (!a[0] || !l[0]) return l[0] ? t : new C(a[0] ? c : s * 0);
2842
+ var a = c.e / _, u = t.e / _, i = c.c, l = t.c;
2843
+ if (!a || !u) {
2844
+ if (!i || !l) return new C(n / 0);
2845
+ if (!i[0] || !l[0]) return l[0] ? t : new C(i[0] ? c : n * 0);
2799
2846
  }
2800
- if (i = O(i), u = O(u), a = a.slice(), s = i - u) {
2801
- for (s > 0 ? (u = i, o = l) : (s = -s, o = a), o.reverse(); s--; o.push(0)) ;
2847
+ if (a = O(a), u = O(u), i = i.slice(), n = a - u) {
2848
+ for (n > 0 ? (u = a, o = l) : (n = -n, o = i), o.reverse(); n--; o.push(0)) ;
2802
2849
  o.reverse();
2803
2850
  }
2804
- for (s = a.length, e = l.length, s - e < 0 && (o = l, l = a, a = o, e = s), s = 0; e; )
2805
- s = (a[--e] = a[e] + l[e] + s) / I | 0, a[e] = I === a[e] ? 0 : a[e] % I;
2806
- return s && (a = [s].concat(a), ++u), Me(t, a, u);
2851
+ for (n = i.length, e = l.length, n - e < 0 && (o = l, l = i, i = o, e = n), n = 0; e; )
2852
+ n = (i[--e] = i[e] + l[e] + n) / I | 0, i[e] = I === i[e] ? 0 : i[e] % I;
2853
+ return n && (i = [n].concat(i), ++u), Me(t, i, u);
2807
2854
  }, $.precision = $.sd = function(t, e) {
2808
- var o, c, s, i = this;
2855
+ var o, c, n, a = this;
2809
2856
  if (t != null && t !== !!t)
2810
- return S(t, 1, q), e == null ? e = z : S(e, 0, 8), G(new C(i), t, e);
2811
- if (!(o = i.c)) return null;
2812
- if (s = o.length - 1, c = s * _ + 1, s = o[s]) {
2813
- for (; s % 10 == 0; s /= 10, c--) ;
2814
- for (s = o[0]; s >= 10; s /= 10, c++) ;
2857
+ return S(t, 1, G), e == null ? e = z : S(e, 0, 8), K(new C(a), t, e);
2858
+ if (!(o = a.c)) return null;
2859
+ if (n = o.length - 1, c = n * _ + 1, n = o[n]) {
2860
+ for (; n % 10 == 0; n /= 10, c--) ;
2861
+ for (n = o[0]; n >= 10; n /= 10, c++) ;
2815
2862
  }
2816
- return t && i.e + 1 > c && (c = i.e + 1), c;
2863
+ return t && a.e + 1 > c && (c = a.e + 1), c;
2817
2864
  }, $.shiftedBy = function(t) {
2818
2865
  return S(t, -x, x), this.times("1e" + t);
2819
2866
  }, $.squareRoot = $.sqrt = function() {
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");
2821
- if (a !== 1 || !u || !u[0])
2822
- return new C(!a || a < 0 && (!u || u[0]) ? NaN : u ? i : 1 / 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]) {
2824
- for (l = o.e, a = l + m, a < 3 && (a = 0); ; )
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))
2826
- if (o.e < l && --a, e = e.slice(a - 3, a + 1), e == "9999" || !c && e == "4999") {
2827
- if (!c && (G(s, s.e + ee + 2, 0), s.times(s).eq(i))) {
2828
- o = s;
2867
+ var t, e, o, c, n, a = this, u = a.c, i = a.s, l = a.e, m = te + 4, d = new C("0.5");
2868
+ if (i !== 1 || !u || !u[0])
2869
+ return new C(!i || i < 0 && (!u || u[0]) ? NaN : u ? a : 1 / 0);
2870
+ if (i = Math.sqrt(+B(a)), i == 0 || i == 1 / 0 ? (e = A(u), (e.length + l) % 2 == 0 && (e += "0"), i = Math.sqrt(+e), l = O((l + 1) / 2) - (l < 0 || l % 2), i == 1 / 0 ? e = "5e" + l : (e = i.toExponential(), e = e.slice(0, e.indexOf("e") + 1) + l), o = new C(e)) : o = new C(i + ""), o.c[0]) {
2871
+ for (l = o.e, i = l + m, i < 3 && (i = 0); ; )
2872
+ if (n = o, o = d.times(n.plus(L(a, n, m, 1))), A(n.c).slice(0, i) === (e = A(o.c)).slice(0, i))
2873
+ if (o.e < l && --i, e = e.slice(i - 3, i + 1), e == "9999" || !c && e == "4999") {
2874
+ if (!c && (K(n, n.e + te + 2, 0), n.times(n).eq(a))) {
2875
+ o = n;
2829
2876
  break;
2830
2877
  }
2831
- m += 4, a += 4, c = 1;
2878
+ m += 4, i += 4, c = 1;
2832
2879
  } else {
2833
- (!+e || !+e.slice(1) && e.charAt(0) == "5") && (G(o, o.e + ee + 2, 1), t = !o.times(o).eq(i));
2880
+ (!+e || !+e.slice(1) && e.charAt(0) == "5") && (K(o, o.e + te + 2, 1), t = !o.times(o).eq(a));
2834
2881
  break;
2835
2882
  }
2836
2883
  }
2837
- return G(o, o.e + ee + 1, z, t);
2884
+ return K(o, o.e + te + 1, z, t);
2838
2885
  }, $.toExponential = function(t, e) {
2839
- return t != null && (S(t, 0, q), t++), Ue(this, t, e, 1);
2886
+ return t != null && (S(t, 0, G), t++), Ue(this, t, e, 1);
2840
2887
  }, $.toFixed = function(t, e) {
2841
- return t != null && (S(t, 0, q), t = t + this.e + 1), Ue(this, t, e);
2888
+ return t != null && (S(t, 0, G), t = t + this.e + 1), Ue(this, t, e);
2842
2889
  }, $.toFormat = function(t, e, o) {
2843
- var c, s = this;
2890
+ var c, n = this;
2844
2891
  if (o == null)
2845
2892
  t != null && e && typeof e == "object" ? (o = e, e = null) : t && typeof t == "object" ? (o = t, t = e = null) : o = Te;
2846
2893
  else if (typeof o != "object")
2847
2894
  throw Error(T + "Argument not an object: " + o);
2848
- if (c = s.toFixed(t, e), s.c) {
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;
2850
- if (l && (i = a, a = l, l = i, ne -= i), a > 0 && ne > 0) {
2851
- for (i = ne % a || a, d = F.substr(0, i); i < ne; i += a) d += m + F.substr(i, a);
2852
- l > 0 && (d += m + F.slice(i)), D && (d = "-" + d);
2895
+ if (c = n.toFixed(t, e), n.c) {
2896
+ var a, u = c.split("."), i = +o.groupSize, l = +o.secondaryGroupSize, m = o.groupSeparator || "", d = u[0], k = u[1], D = n.s < 0, F = D ? d.slice(1) : d, ne = F.length;
2897
+ if (l && (a = i, i = l, l = a, ne -= a), i > 0 && ne > 0) {
2898
+ for (a = ne % i || i, d = F.substr(0, a); a < ne; a += i) d += m + F.substr(a, i);
2899
+ l > 0 && (d += m + F.slice(a)), D && (d = "-" + d);
2853
2900
  }
2854
- c = w ? d + (o.decimalSeparator || "") + ((l = +o.fractionGroupSize) ? w.replace(
2901
+ c = k ? d + (o.decimalSeparator || "") + ((l = +o.fractionGroupSize) ? k.replace(
2855
2902
  new RegExp("\\d{" + l + "}\\B", "g"),
2856
2903
  "$&" + (o.fractionGroupSeparator || "")
2857
- ) : w) : d;
2904
+ ) : k) : d;
2858
2905
  }
2859
2906
  return (o.prefix || "") + c + (o.suffix || "");
2860
2907
  }, $.toFraction = function(t) {
2861
- var e, o, c, s, i, u, a, l, m, d, w, D, F = this, ne = F.c;
2862
- if (t != null && (a = new C(t), !a.isInteger() && (a.c || a.s !== 1) || a.lt(re)))
2863
- throw Error(T + "Argument " + (a.isInteger() ? "out of range: " : "not an integer: ") + B(a));
2908
+ var e, o, c, n, a, u, i, l, m, d, k, D, F = this, ne = F.c;
2909
+ if (t != null && (i = new C(t), !i.isInteger() && (i.c || i.s !== 1) || i.lt(re)))
2910
+ throw Error(T + "Argument " + (i.isInteger() ? "out of range: " : "not an integer: ") + B(i));
2864
2911
  if (!ne) return new C(F);
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; )
2866
- o = c, c = s, m = l.plus(d.times(s = m)), l = s, e = a.minus(d.times(s = e)), a = s;
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()
2869
- ) < 1 ? [m, c] : [l, o], de = u, w;
2912
+ for (e = new C(re), m = o = new C(re), c = l = new C(re), D = A(ne), a = e.e = D.length - F.e - 1, e.c[0] = M[(u = a % _) < 0 ? _ + u : u], t = !t || i.comparedTo(e) > 0 ? a > 0 ? e : m : i, u = fe, fe = 1 / 0, i = new C(D), l.c[0] = 0; d = L(i, e, 0, 1), n = o.plus(d.times(c)), n.comparedTo(t) != 1; )
2913
+ o = c, c = n, m = l.plus(d.times(n = m)), l = n, e = i.minus(d.times(n = e)), i = n;
2914
+ return n = L(t.minus(o), c, 0, 1), l = l.plus(n.times(m)), o = o.plus(n.times(c)), l.s = m.s = F.s, a = a * 2, k = L(m, c, a, z).minus(F).abs().comparedTo(
2915
+ L(l, o, a, z).minus(F).abs()
2916
+ ) < 1 ? [m, c] : [l, o], fe = u, k;
2870
2917
  }, $.toNumber = function() {
2871
2918
  return +B(this);
2872
2919
  }, $.toPrecision = function(t, e) {
2873
- return t != null && S(t, 1, q), Ue(this, t, e, 2);
2920
+ return t != null && S(t, 1, G), Ue(this, t, e, 2);
2874
2921
  }, $.toString = function(t) {
2875
- var e, o = this, c = o.s, s = o.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;
2922
+ var e, o = this, c = o.s, n = o.e;
2923
+ return n === null ? c ? (e = "Infinity", c < 0 && (e = "-" + e)) : e = "NaN" : (t == null ? e = n <= le || n >= de ? Y(A(o.c), n) : oe(A(o.c), n, "0") : t === 10 && Oe ? (o = K(new C(o), te + n + 1, z), e = oe(A(o.c), o.e, "0")) : (S(t, 2, Ne.length, "Base"), e = J(oe(A(o.c), n, "0"), 10, t, c, !0)), c < 0 && o.c[0] && (e = "-" + e)), e;
2877
2924
  }, $.valueOf = $.toJSON = function() {
2878
2925
  return B(this);
2879
2926
  }, $._isBigNumber = !0, U != null && C.set(U), C;
@@ -2883,53 +2930,53 @@ var dt = { exports: {} }, Vt = { exports: {} }, jt = { exports: {} };
2883
2930
  return U > 0 || U === L ? L : L - 1;
2884
2931
  }
2885
2932
  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) ;
2933
+ for (var L, J, ee = 1, $ = U.length, re = U[0] + ""; ee < $; ) {
2934
+ for (L = U[ee++] + "", J = _ - L.length; J--; L = "0" + L) ;
2888
2935
  re += L;
2889
2936
  }
2890
2937
  for ($ = re.length; re.charCodeAt(--$) === 48; ) ;
2891
2938
  return re.slice(0, $ + 1 || 1);
2892
2939
  }
2893
2940
  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;
2895
- if (!ee || !z) return null;
2896
- if (Z = $ && !$[0], se = re && !re[0], Z || se) return Z ? se ? 0 : -z : ee;
2897
- if (ee != z) return ee;
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;
2941
+ var J, ee, $ = U.c, re = L.c, te = U.s, z = L.s, le = U.e, de = L.e;
2942
+ if (!te || !z) return null;
2943
+ if (J = $ && !$[0], ee = re && !re[0], J || ee) return J ? ee ? 0 : -z : te;
2944
+ if (te != z) return te;
2945
+ if (J = te < 0, ee = le == de, !$ || !re) return ee ? 0 : !$ ^ J ? 1 : -1;
2946
+ if (!ee) return le > de ^ J ? 1 : -1;
2947
+ for (z = (le = $.length) < (de = re.length) ? le : de, te = 0; te < z; te++) if ($[te] != re[te]) return $[te] > re[te] ^ J ? 1 : -1;
2948
+ return le == de ? 0 : le > de ^ J ? 1 : -1;
2902
2949
  }
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));
2950
+ function S(U, L, J, ee) {
2951
+ if (U < L || U > J || U !== b(U))
2952
+ throw Error(T + (ee || "Argument") + (typeof U == "number" ? U < L || U > J ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(U));
2906
2953
  }
2907
- function K(U) {
2954
+ function H(U) {
2908
2955
  var L = U.c.length - 1;
2909
2956
  return O(U.e / _) == L && U.c[L] % 2 != 0;
2910
2957
  }
2911
- function X(U, L) {
2958
+ function Y(U, L) {
2912
2959
  return (U.length > 1 ? U.charAt(0) + "." + U.slice(1) : U) + (L < 0 ? "e" : "e+") + L;
2913
2960
  }
2914
- function oe(U, L, Z) {
2915
- var se, $;
2961
+ function oe(U, L, J) {
2962
+ var ee, $;
2916
2963
  if (L < 0) {
2917
- for ($ = Z + "."; ++L; $ += Z) ;
2964
+ for ($ = J + "."; ++L; $ += J) ;
2918
2965
  U = $ + U;
2919
- } else if (se = U.length, ++L > se) {
2920
- for ($ = Z, L -= se; --L; $ += Z) ;
2966
+ } else if (ee = U.length, ++L > ee) {
2967
+ for ($ = J, L -= ee; --L; $ += J) ;
2921
2968
  U += $;
2922
- } else L < se && (U = U.slice(0, L) + "." + U.slice(L));
2969
+ } else L < ee && (U = U.slice(0, L) + "." + U.slice(L));
2923
2970
  return U;
2924
2971
  }
2925
- v = J(), v.default = v.BigNumber = v, r.exports ? r.exports = v : (f || (f = typeof self < "u" && self ? self : window), f.BigNumber = v);
2926
- })(Ir);
2972
+ v = Q(), v.default = v.BigNumber = v, r.exports ? r.exports = v : (f || (f = typeof self < "u" && self ? self : window), f.BigNumber = v);
2973
+ })(Rr);
2927
2974
  })(jt);
2928
2975
  var qt = jt.exports;
2929
2976
  (function(r) {
2930
2977
  var f = qt, v = r.exports;
2931
2978
  (function() {
2932
- var p = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, h, k, T = {
2979
+ var p = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, h, b, T = {
2933
2980
  // table of character substitutions
2934
2981
  "\b": "\\b",
2935
2982
  " ": "\\t",
@@ -2946,10 +2993,10 @@ var qt = jt.exports;
2946
2993
  }) + '"' : '"' + x + '"';
2947
2994
  }
2948
2995
  function _(x, M) {
2949
- var E, q, J, O, A = h, V, S = M[x], K = S != null && (S instanceof f || f.isBigNumber(S));
2996
+ var E, G, Q, O, A = h, V, S = M[x], H = S != null && (S instanceof f || f.isBigNumber(S));
2950
2997
  switch (S && typeof S == "object" && typeof S.toJSON == "function" && (S = S.toJSON(x)), typeof g == "function" && (S = g.call(M, x, S)), typeof S) {
2951
2998
  case "string":
2952
- return K ? S : I(S);
2999
+ return H ? S : I(S);
2953
3000
  case "number":
2954
3001
  return isFinite(S) ? String(S) : "null";
2955
3002
  case "boolean":
@@ -2959,43 +3006,43 @@ var qt = jt.exports;
2959
3006
  case "object":
2960
3007
  if (!S)
2961
3008
  return "null";
2962
- if (h += k, V = [], Object.prototype.toString.apply(S) === "[object Array]") {
3009
+ if (h += b, V = [], Object.prototype.toString.apply(S) === "[object Array]") {
2963
3010
  for (O = S.length, E = 0; E < O; E += 1)
2964
3011
  V[E] = _(E, S) || "null";
2965
- return J = V.length === 0 ? "[]" : h ? `[
3012
+ return Q = V.length === 0 ? "[]" : h ? `[
2966
3013
  ` + h + V.join(`,
2967
3014
  ` + h) + `
2968
- ` + A + "]" : "[" + V.join(",") + "]", h = A, J;
3015
+ ` + A + "]" : "[" + V.join(",") + "]", h = A, Q;
2969
3016
  }
2970
3017
  if (g && typeof g == "object")
2971
3018
  for (O = g.length, E = 0; E < O; E += 1)
2972
- typeof g[E] == "string" && (q = g[E], J = _(q, S), J && V.push(I(q) + (h ? ": " : ":") + J));
3019
+ typeof g[E] == "string" && (G = g[E], Q = _(G, S), Q && V.push(I(G) + (h ? ": " : ":") + Q));
2973
3020
  else
2974
- Object.keys(S).forEach(function(X) {
2975
- var oe = _(X, S);
2976
- oe && V.push(I(X) + (h ? ": " : ":") + oe);
3021
+ Object.keys(S).forEach(function(Y) {
3022
+ var oe = _(Y, S);
3023
+ oe && V.push(I(Y) + (h ? ": " : ":") + oe);
2977
3024
  });
2978
- return J = V.length === 0 ? "{}" : h ? `{
3025
+ return Q = V.length === 0 ? "{}" : h ? `{
2979
3026
  ` + h + V.join(`,
2980
3027
  ` + h) + `
2981
- ` + A + "}" : "{" + V.join(",") + "}", h = A, J;
3028
+ ` + A + "}" : "{" + V.join(",") + "}", h = A, Q;
2982
3029
  }
2983
3030
  }
2984
3031
  typeof v.stringify != "function" && (v.stringify = function(x, M, E) {
2985
- var q;
2986
- if (h = "", k = "", typeof E == "number")
2987
- for (q = 0; q < E; q += 1)
2988
- k += " ";
2989
- else typeof E == "string" && (k = E);
3032
+ var G;
3033
+ if (h = "", b = "", typeof E == "number")
3034
+ for (G = 0; G < E; G += 1)
3035
+ b += " ";
3036
+ else typeof E == "string" && (b = E);
2990
3037
  if (g = M, M && typeof M != "function" && (typeof M != "object" || typeof M.length != "number"))
2991
3038
  throw new Error("JSON.stringify");
2992
3039
  return _("", { "": x });
2993
3040
  });
2994
3041
  })();
2995
3042
  })(Vt);
2996
- var Ar = Vt.exports, et = null;
2997
- const Tr = /(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/, Or = /(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)/;
2998
- var Ur = function(r) {
3043
+ var zr = Vt.exports, tt = null;
3044
+ const Fr = /(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/, Vr = /(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)/;
3045
+ var jr = function(r) {
2999
3046
  var f = {
3000
3047
  strict: !1,
3001
3048
  // not being strict means do not generate syntax errors for "duplicate key"
@@ -3034,15 +3081,15 @@ var Ur = function(r) {
3034
3081
  `,
3035
3082
  r: "\r",
3036
3083
  t: " "
3037
- }, k, T = function(O) {
3084
+ }, b, T = function(O) {
3038
3085
  throw {
3039
3086
  name: "SyntaxError",
3040
3087
  message: O,
3041
3088
  at: v,
3042
- text: k
3089
+ text: b
3043
3090
  };
3044
3091
  }, g = function(O) {
3045
- return O && O !== p && T("Expected '" + O + "' instead of '" + p + "'"), p = k.charAt(v), v += 1, p;
3092
+ return O && O !== p && T("Expected '" + O + "' instead of '" + p + "'"), p = b.charAt(v), v += 1, p;
3046
3093
  }, I = function() {
3047
3094
  var O, A = "";
3048
3095
  for (p === "-" && (A = "-", g("-")); p >= "0" && p <= "9"; )
@@ -3056,15 +3103,15 @@ var Ur = function(r) {
3056
3103
  if (O = +A, !isFinite(O))
3057
3104
  T("Bad number");
3058
3105
  else
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;
3106
+ return tt == null && (tt = qt), A.length > 15 ? f.storeAsString ? A : f.useNativeBigInt ? BigInt(A) : new tt(A) : f.alwaysParseAsBig ? f.useNativeBigInt ? BigInt(O) : new tt(O) : O;
3060
3107
  }, _ = function() {
3061
3108
  var O, A, V = "", S;
3062
3109
  if (p === '"')
3063
- for (var K = v; g(); ) {
3110
+ for (var H = v; g(); ) {
3064
3111
  if (p === '"')
3065
- return v - 1 > K && (V += k.substring(K, v - 1)), g(), V;
3112
+ return v - 1 > H && (V += b.substring(H, v - 1)), g(), V;
3066
3113
  if (p === "\\") {
3067
- if (v - 1 > K && (V += k.substring(K, v - 1)), g(), p === "u") {
3114
+ if (v - 1 > H && (V += b.substring(H, v - 1)), g(), p === "u") {
3068
3115
  for (S = 0, A = 0; A < 4 && (O = parseInt(g(), 16), !!isFinite(O)); A += 1)
3069
3116
  S = S * 16 + O;
3070
3117
  V += String.fromCharCode(S);
@@ -3072,7 +3119,7 @@ var Ur = function(r) {
3072
3119
  V += h[p];
3073
3120
  else
3074
3121
  break;
3075
- K = v;
3122
+ H = v;
3076
3123
  }
3077
3124
  }
3078
3125
  T("Bad string");
@@ -3089,7 +3136,7 @@ var Ur = function(r) {
3089
3136
  return g("n"), g("u"), g("l"), g("l"), null;
3090
3137
  }
3091
3138
  T("Unexpected '" + p + "'");
3092
- }, E, q = function() {
3139
+ }, E, G = function() {
3093
3140
  var O = [];
3094
3141
  if (p === "[") {
3095
3142
  if (g("["), x(), p === "]")
@@ -3101,13 +3148,13 @@ var Ur = function(r) {
3101
3148
  }
3102
3149
  }
3103
3150
  T("Bad array");
3104
- }, J = function() {
3151
+ }, Q = function() {
3105
3152
  var O, A = /* @__PURE__ */ Object.create(null);
3106
3153
  if (p === "{") {
3107
3154
  if (g("{"), x(), p === "}")
3108
3155
  return g("}"), A;
3109
3156
  for (; p; ) {
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 === "}")
3157
+ if (O = _(), x(), g(":"), f.strict === !0 && Object.hasOwnProperty.call(A, O) && T('Duplicate key "' + O + '"'), Fr.test(O) === !0 ? f.protoAction === "error" ? T("Object contains forbidden prototype property") : f.protoAction === "ignore" ? E() : A[O] = E() : Vr.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
3158
  return g("}"), A;
3112
3159
  g(","), x();
3113
3160
  }
@@ -3117,9 +3164,9 @@ var Ur = function(r) {
3117
3164
  return E = function() {
3118
3165
  switch (x(), p) {
3119
3166
  case "{":
3120
- return J();
3167
+ return Q();
3121
3168
  case "[":
3122
- return q();
3169
+ return G();
3123
3170
  case '"':
3124
3171
  return _();
3125
3172
  case "-":
@@ -3129,14 +3176,14 @@ var Ur = function(r) {
3129
3176
  }
3130
3177
  }, function(O, A) {
3131
3178
  var V;
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];
3179
+ return b = O + "", v = 0, p = " ", V = E(), x(), p && T("Syntax error"), typeof A == "function" ? function S(H, Y) {
3180
+ var oe, U = H[Y];
3134
3181
  return U && typeof U == "object" && Object.keys(U).forEach(function(L) {
3135
3182
  oe = S(U, L), oe !== void 0 ? U[L] = oe : delete U[L];
3136
- }), A.call(K, X, U);
3183
+ }), A.call(H, Y, U);
3137
3184
  }({ "": V }, "") : V;
3138
3185
  };
3139
- }, Br = Ur, Gt = Ar.stringify, Kt = Br;
3186
+ }, qr = jr, Gt = zr.stringify, Kt = qr;
3140
3187
  dt.exports = function(r) {
3141
3188
  return {
3142
3189
  parse: Kt(r),
@@ -3145,8 +3192,8 @@ dt.exports = function(r) {
3145
3192
  };
3146
3193
  dt.exports.parse = Kt();
3147
3194
  dt.exports.stringify = Gt;
3148
- var Pr = dt.exports;
3149
- const Rr = /* @__PURE__ */ Lr(Pr), Dr = Rr({ storeAsString: !0 }), zr = () => {
3195
+ var Gr = dt.exports;
3196
+ const Kr = /* @__PURE__ */ Dr(Gr), Hr = Kr({ storeAsString: !0 }), Wr = () => {
3150
3197
  const r = ns.create({
3151
3198
  baseURL: void 0,
3152
3199
  timeout: 3e4,
@@ -3158,7 +3205,7 @@ const Rr = /* @__PURE__ */ Lr(Pr), Dr = Rr({ storeAsString: !0 }), zr = () => {
3158
3205
  (f) => {
3159
3206
  if (typeof f == "string")
3160
3207
  try {
3161
- return Dr.parse(f);
3208
+ return Hr.parse(f);
3162
3209
  } catch {
3163
3210
  return f;
3164
3211
  }
@@ -3175,7 +3222,7 @@ const Rr = /* @__PURE__ */ Lr(Pr), Dr = Rr({ storeAsString: !0 }), zr = () => {
3175
3222
  ), r.interceptors.response.use(
3176
3223
  (f) => {
3177
3224
  const { data: v } = f;
3178
- return v.code === 200 || v.code === 0 ? v.data : v.code === 9121 ? (Le.error("登录已过期,请重新登录"), He(), window.location.href = "/login", Promise.reject(new Error(v.message || "EXPIRED OR INVALID TOKEN"))) : (Le.error(v.message || "请求失败"), Promise.reject(new Error(v.message || "请求失败")));
3225
+ return v.code === 200 || v.code === 0 ? v.data : v.code === 9121 ? (Le.error("登录已过期,请重新登录"), We(), window.location.href = "/login", Promise.reject(new Error(v.message || "EXPIRED OR INVALID TOKEN"))) : (Le.error(v.message || "请求失败"), Promise.reject(new Error(v.message || "请求失败")));
3179
3226
  },
3180
3227
  (f) => {
3181
3228
  var p;
@@ -3183,10 +3230,10 @@ const Rr = /* @__PURE__ */ Lr(Pr), Dr = Rr({ storeAsString: !0 }), zr = () => {
3183
3230
  if (v) {
3184
3231
  const { data: h } = v;
3185
3232
  if ((h == null ? void 0 : h.code) === 9121)
3186
- return Le.error("登录已过期,请重新登录"), He(), window.location.href = "/login", Promise.reject(f);
3233
+ return Le.error("登录已过期,请重新登录"), We(), window.location.href = "/login", Promise.reject(f);
3187
3234
  switch (v.status) {
3188
3235
  case 401:
3189
- Le.error("登录已过期,请重新登录"), He(), window.location.href = "/login";
3236
+ Le.error("登录已过期,请重新登录"), We(), window.location.href = "/login";
3190
3237
  break;
3191
3238
  case 403:
3192
3239
  Le.error("没有权限访问");
@@ -3205,7 +3252,7 @@ const Rr = /* @__PURE__ */ Lr(Pr), Dr = Rr({ storeAsString: !0 }), zr = () => {
3205
3252
  return Promise.reject(f);
3206
3253
  }
3207
3254
  ), r;
3208
- }, Fe = zr(), ce = {
3255
+ }, Fe = Wr(), ue = {
3209
3256
  get(r, f) {
3210
3257
  return Fe.get(r, f);
3211
3258
  },
@@ -3226,22 +3273,22 @@ const Rr = /* @__PURE__ */ Lr(Pr), Dr = Rr({ storeAsString: !0 }), zr = () => {
3226
3273
  return Fe.get(r, { ...f, responseType: "blob" });
3227
3274
  }
3228
3275
  };
3229
- function Fr(r) {
3230
- return ce.post("/user/v1.0/login/by-domain", r);
3276
+ function Xr(r) {
3277
+ return ue.post("/user/v1.0/login/by-domain", r);
3231
3278
  }
3232
- function Ta() {
3233
- return ce.put("/user/v1.0/user/logout");
3279
+ function Fa() {
3280
+ return ue.put("/user/v1.0/user/logout");
3234
3281
  }
3235
- function Vr() {
3236
- return ce.get("/user/v1.0/user/get-me");
3282
+ function Yr() {
3283
+ return ue.get("/user/v1.0/user/get-me");
3237
3284
  }
3238
- function Oa(r) {
3239
- return ce.post("/user/v1.0/refresh", { refreshToken: r });
3285
+ function Va(r) {
3286
+ return ue.post("/user/v1.0/refresh", { refreshToken: r });
3240
3287
  }
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({
3288
+ const Jr = { class: "login-page" }, Zr = { class: "login-form-section" }, Qr = { class: "form-container" }, ea = { class: "input-wrapper" }, ta = { class: "input-wrapper" }, sa = { class: "form-options" }, na = { key: 0 }, oa = { key: 1 }, ra = /* @__PURE__ */ Ae({
3242
3289
  __name: "index",
3243
3290
  setup(r) {
3244
- const f = Pe(), v = qe(), p = P(!1), h = P(!1), k = yt({
3291
+ const f = Pe(), v = qe(), p = P(!1), h = P(!1), b = kt({
3245
3292
  uid: "",
3246
3293
  password: ""
3247
3294
  }), T = {
@@ -3256,11 +3303,11 @@ const jr = { class: "login-page" }, qr = { class: "login-form-section" }, Gr = {
3256
3303
  var _;
3257
3304
  try {
3258
3305
  await ((_ = g.value) == null ? void 0 : _.validate()), p.value = !0;
3259
- const x = await Fr({
3306
+ const x = await Xr({
3260
3307
  appId: ct(),
3261
3308
  clientId: Pt(),
3262
- uid: k.uid,
3263
- password: k.password,
3309
+ uid: b.uid,
3310
+ password: b.password,
3264
3311
  code: !0
3265
3312
  });
3266
3313
  Dt(x), Le.success("登录成功");
@@ -3272,35 +3319,35 @@ const jr = { class: "login-page" }, qr = { class: "login-form-section" }, Gr = {
3272
3319
  p.value = !1;
3273
3320
  }
3274
3321
  };
3275
- return (_, x) => (y(), N("div", jr, [
3276
- x[10] || (x[10] = tt('<div class="login-brand" data-v-102cb5d3><div class="brand-content" data-v-102cb5d3><div class="brand-logo" data-v-102cb5d3><div class="logo-icon" data-v-102cb5d3><svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-102cb5d3><rect width="48" height="48" rx="12" fill="currentColor" data-v-102cb5d3></rect><path d="M14 24L20 30L34 16" stroke="white" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" data-v-102cb5d3></path></svg></div><span class="logo-text" data-v-102cb5d3>XTO</span></div><div class="brand-slogan" data-v-102cb5d3><h1 data-v-102cb5d3>企业级后台管理解决方案</h1><p data-v-102cb5d3>开箱即用的中后台前端/设计解决方案</p></div><div class="brand-features" data-v-102cb5d3><div class="feature-item" data-v-102cb5d3><div class="feature-icon" data-v-102cb5d3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-102cb5d3><path d="M13 2L3 14h9l-1 8 10-12h-9l1-8z" data-v-102cb5d3></path></svg></div><div class="feature-text" data-v-102cb5d3><h4 data-v-102cb5d3>高性能</h4><p data-v-102cb5d3>极致的渲染性能与响应速度</p></div></div><div class="feature-item" data-v-102cb5d3><div class="feature-icon" data-v-102cb5d3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-102cb5d3><rect x="3" y="3" width="18" height="18" rx="2" data-v-102cb5d3></rect><path d="M9 9h6M9 12h6M9 15h4" data-v-102cb5d3></path></svg></div><div class="feature-text" data-v-102cb5d3><h4 data-v-102cb5d3>丰富组件</h4><p data-v-102cb5d3>60+ 高质量业务组件</p></div></div><div class="feature-item" data-v-102cb5d3><div class="feature-icon" data-v-102cb5d3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-102cb5d3><circle cx="12" cy="12" r="10" data-v-102cb5d3></circle><path d="M12 6v6l4 2" data-v-102cb5d3></path></svg></div><div class="feature-text" data-v-102cb5d3><h4 data-v-102cb5d3>持续更新</h4><p data-v-102cb5d3>活跃的社区与快速迭代</p></div></div></div><div class="brand-decoration" data-v-102cb5d3><div class="decoration-line" data-v-102cb5d3></div><div class="decoration-dots" data-v-102cb5d3><span data-v-102cb5d3></span><span data-v-102cb5d3></span><span data-v-102cb5d3></span></div></div></div><div class="brand-bg" data-v-102cb5d3><div class="bg-grid" data-v-102cb5d3></div><div class="bg-glow" data-v-102cb5d3></div><div class="bg-pattern" data-v-102cb5d3></div></div></div>', 1)),
3277
- n("div", qr, [
3278
- n("div", Gr, [
3279
- x[7] || (x[7] = n("div", { class: "form-header" }, [
3280
- n("h2", null, "欢迎登录"),
3281
- n("p", null, "请输入您的账户信息")
3322
+ return (_, x) => (w(), N("div", Jr, [
3323
+ x[10] || (x[10] = st('<div class="login-brand" data-v-102cb5d3><div class="brand-content" data-v-102cb5d3><div class="brand-logo" data-v-102cb5d3><div class="logo-icon" data-v-102cb5d3><svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-102cb5d3><rect width="48" height="48" rx="12" fill="currentColor" data-v-102cb5d3></rect><path d="M14 24L20 30L34 16" stroke="white" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" data-v-102cb5d3></path></svg></div><span class="logo-text" data-v-102cb5d3>XTO</span></div><div class="brand-slogan" data-v-102cb5d3><h1 data-v-102cb5d3>企业级后台管理解决方案</h1><p data-v-102cb5d3>开箱即用的中后台前端/设计解决方案</p></div><div class="brand-features" data-v-102cb5d3><div class="feature-item" data-v-102cb5d3><div class="feature-icon" data-v-102cb5d3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-102cb5d3><path d="M13 2L3 14h9l-1 8 10-12h-9l1-8z" data-v-102cb5d3></path></svg></div><div class="feature-text" data-v-102cb5d3><h4 data-v-102cb5d3>高性能</h4><p data-v-102cb5d3>极致的渲染性能与响应速度</p></div></div><div class="feature-item" data-v-102cb5d3><div class="feature-icon" data-v-102cb5d3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-102cb5d3><rect x="3" y="3" width="18" height="18" rx="2" data-v-102cb5d3></rect><path d="M9 9h6M9 12h6M9 15h4" data-v-102cb5d3></path></svg></div><div class="feature-text" data-v-102cb5d3><h4 data-v-102cb5d3>丰富组件</h4><p data-v-102cb5d3>60+ 高质量业务组件</p></div></div><div class="feature-item" data-v-102cb5d3><div class="feature-icon" data-v-102cb5d3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-102cb5d3><circle cx="12" cy="12" r="10" data-v-102cb5d3></circle><path d="M12 6v6l4 2" data-v-102cb5d3></path></svg></div><div class="feature-text" data-v-102cb5d3><h4 data-v-102cb5d3>持续更新</h4><p data-v-102cb5d3>活跃的社区与快速迭代</p></div></div></div><div class="brand-decoration" data-v-102cb5d3><div class="decoration-line" data-v-102cb5d3></div><div class="decoration-dots" data-v-102cb5d3><span data-v-102cb5d3></span><span data-v-102cb5d3></span><span data-v-102cb5d3></span></div></div></div><div class="brand-bg" data-v-102cb5d3><div class="bg-grid" data-v-102cb5d3></div><div class="bg-glow" data-v-102cb5d3></div><div class="bg-pattern" data-v-102cb5d3></div></div></div>', 1)),
3324
+ s("div", Zr, [
3325
+ s("div", Qr, [
3326
+ x[7] || (x[7] = s("div", { class: "form-header" }, [
3327
+ s("h2", null, "欢迎登录"),
3328
+ s("p", null, "请输入您的账户信息")
3282
3329
  ], -1)),
3283
- R(b(ts), {
3330
+ R(y(ts), {
3284
3331
  ref_key: "formRef",
3285
3332
  ref: g,
3286
- model: k,
3333
+ model: b,
3287
3334
  rules: T,
3288
3335
  class: "login-form",
3289
3336
  "label-width": "0"
3290
3337
  }, {
3291
- default: Y(() => [
3292
- R(b(mt), { prop: "uid" }, {
3293
- default: Y(() => [
3294
- n("div", Kr, [
3295
- x[3] || (x[3] = n("label", { class: "input-label" }, "用户名", -1)),
3296
- R(b(At), {
3297
- modelValue: k.uid,
3298
- "onUpdate:modelValue": x[0] || (x[0] = (M) => k.uid = M),
3338
+ default: X(() => [
3339
+ R(y(mt), { prop: "uid" }, {
3340
+ default: X(() => [
3341
+ s("div", ea, [
3342
+ x[3] || (x[3] = s("label", { class: "input-label" }, "用户名", -1)),
3343
+ R(y(Tt), {
3344
+ modelValue: b.uid,
3345
+ "onUpdate:modelValue": x[0] || (x[0] = (M) => b.uid = M),
3299
3346
  placeholder: "请输入用户名",
3300
3347
  size: "large"
3301
3348
  }, {
3302
- prefix: Y(() => [
3303
- R(b(Q), {
3349
+ prefix: X(() => [
3350
+ R(y(Z), {
3304
3351
  name: "user",
3305
3352
  size: 18
3306
3353
  })
@@ -3311,21 +3358,21 @@ const jr = { class: "login-page" }, qr = { class: "login-form-section" }, Gr = {
3311
3358
  ]),
3312
3359
  _: 1
3313
3360
  }),
3314
- R(b(mt), { prop: "password" }, {
3315
- default: Y(() => [
3316
- n("div", Hr, [
3317
- x[4] || (x[4] = n("label", { class: "input-label" }, "密码", -1)),
3318
- R(b(At), {
3319
- modelValue: k.password,
3320
- "onUpdate:modelValue": x[1] || (x[1] = (M) => k.password = M),
3361
+ R(y(mt), { prop: "password" }, {
3362
+ default: X(() => [
3363
+ s("div", ta, [
3364
+ x[4] || (x[4] = s("label", { class: "input-label" }, "密码", -1)),
3365
+ R(y(Tt), {
3366
+ modelValue: b.password,
3367
+ "onUpdate:modelValue": x[1] || (x[1] = (M) => b.password = M),
3321
3368
  type: "password",
3322
3369
  placeholder: "请输入密码",
3323
3370
  size: "large",
3324
3371
  "show-password": "",
3325
3372
  onKeyup: Zt(I, ["enter"])
3326
3373
  }, {
3327
- prefix: Y(() => [
3328
- R(b(Q), {
3374
+ prefix: X(() => [
3375
+ R(y(Z), {
3329
3376
  name: "lock",
3330
3377
  size: 18
3331
3378
  })
@@ -3336,32 +3383,32 @@ const jr = { class: "login-page" }, qr = { class: "login-form-section" }, Gr = {
3336
3383
  ]),
3337
3384
  _: 1
3338
3385
  }),
3339
- n("div", Wr, [
3340
- R(b(ss), {
3386
+ s("div", sa, [
3387
+ R(y(ss), {
3341
3388
  modelValue: h.value,
3342
3389
  "onUpdate:modelValue": x[2] || (x[2] = (M) => h.value = M)
3343
3390
  }, {
3344
- default: Y(() => [...x[5] || (x[5] = [
3391
+ default: X(() => [...x[5] || (x[5] = [
3345
3392
  De("记住我", -1)
3346
3393
  ])]),
3347
3394
  _: 1
3348
3395
  }, 8, ["modelValue"]),
3349
- x[6] || (x[6] = n("a", {
3396
+ x[6] || (x[6] = s("a", {
3350
3397
  href: "#",
3351
3398
  class: "forgot-link"
3352
3399
  }, "忘记密码?", -1))
3353
3400
  ]),
3354
- R(b(mt), null, {
3355
- default: Y(() => [
3356
- R(b(je), {
3401
+ R(y(mt), null, {
3402
+ default: X(() => [
3403
+ R(y(je), {
3357
3404
  type: "primary",
3358
3405
  size: "large",
3359
3406
  loading: p.value,
3360
3407
  class: "login-btn",
3361
3408
  onClick: I
3362
3409
  }, {
3363
- default: Y(() => [
3364
- p.value ? (y(), N("span", Yr, "登录中...")) : (y(), N("span", Xr, "登 录"))
3410
+ default: X(() => [
3411
+ p.value ? (w(), N("span", oa, "登录中...")) : (w(), N("span", na, "登 录"))
3365
3412
  ]),
3366
3413
  _: 1
3367
3414
  }, 8, ["loading"])
@@ -3371,165 +3418,165 @@ const jr = { class: "login-page" }, qr = { class: "login-form-section" }, Gr = {
3371
3418
  ]),
3372
3419
  _: 1
3373
3420
  }, 8, ["model"]),
3374
- x[8] || (x[8] = tt('<div class="form-footer" data-v-102cb5d3><p data-v-102cb5d3>其他登录方式</p><div class="social-login" data-v-102cb5d3><button class="social-btn" title="企业微信" data-v-102cb5d3><svg viewBox="0 0 24 24" fill="currentColor" data-v-102cb5d3><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z" data-v-102cb5d3></path></svg></button><button class="social-btn" title="钉钉" data-v-102cb5d3><svg viewBox="0 0 24 24" fill="currentColor" data-v-102cb5d3><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4.64 6.8c-.15 1.58-.8 5.42-1.13 7.19-.14.75-.42 1-.68 1.03-.58.05-1.02-.38-1.58-.75-.88-.58-1.38-.94-2.23-1.5-.99-.65-.35-1.01.22-1.59.15-.15 2.71-2.48 2.76-2.69a.2.2 0 00-.05-.18c-.06-.05-.14-.03-.21-.02-.09.02-1.49.95-4.22 2.79-.4.27-.76.41-1.08.4-.36-.01-1.04-.2-1.55-.37-.63-.2-1.12-.31-1.08-.66.02-.18.27-.36.74-.55 2.92-1.27 4.86-2.11 5.83-2.51 2.78-1.16 3.35-1.36 3.73-1.36.08 0 .27.02.39.12.1.08.13.19.14.27-.01.06.01.24 0 .38z" data-v-102cb5d3></path></svg></button><button class="social-btn" title="飞书" data-v-102cb5d3><svg viewBox="0 0 24 24" fill="currentColor" data-v-102cb5d3><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z" data-v-102cb5d3></path></svg></button></div></div>', 1))
3421
+ x[8] || (x[8] = st('<div class="form-footer" data-v-102cb5d3><p data-v-102cb5d3>其他登录方式</p><div class="social-login" data-v-102cb5d3><button class="social-btn" title="企业微信" data-v-102cb5d3><svg viewBox="0 0 24 24" fill="currentColor" data-v-102cb5d3><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z" data-v-102cb5d3></path></svg></button><button class="social-btn" title="钉钉" data-v-102cb5d3><svg viewBox="0 0 24 24" fill="currentColor" data-v-102cb5d3><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4.64 6.8c-.15 1.58-.8 5.42-1.13 7.19-.14.75-.42 1-.68 1.03-.58.05-1.02-.38-1.58-.75-.88-.58-1.38-.94-2.23-1.5-.99-.65-.35-1.01.22-1.59.15-.15 2.71-2.48 2.76-2.69a.2.2 0 00-.05-.18c-.06-.05-.14-.03-.21-.02-.09.02-1.49.95-4.22 2.79-.4.27-.76.41-1.08.4-.36-.01-1.04-.2-1.55-.37-.63-.2-1.12-.31-1.08-.66.02-.18.27-.36.74-.55 2.92-1.27 4.86-2.11 5.83-2.51 2.78-1.16 3.35-1.36 3.73-1.36.08 0 .27.02.39.12.1.08.13.19.14.27-.01.06.01.24 0 .38z" data-v-102cb5d3></path></svg></button><button class="social-btn" title="飞书" data-v-102cb5d3><svg viewBox="0 0 24 24" fill="currentColor" data-v-102cb5d3><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z" data-v-102cb5d3></path></svg></button></div></div>', 1))
3375
3422
  ]),
3376
- x[9] || (x[9] = n("div", { class: "copyright" }, [
3377
- n("p", null, "© 2024 XTO Team. All rights reserved.")
3423
+ x[9] || (x[9] = s("div", { class: "copyright" }, [
3424
+ s("p", null, "© 2024 XTO Team. All rights reserved.")
3378
3425
  ], -1))
3379
3426
  ])
3380
3427
  ]));
3381
3428
  }
3382
- }), Zr = /* @__PURE__ */ Se(Jr, [["__scopeId", "data-v-102cb5d3"]]), Qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3429
+ }), aa = /* @__PURE__ */ Se(ra, [["__scopeId", "data-v-102cb5d3"]]), ia = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3383
3430
  __proto__: null,
3384
- default: Zr
3385
- }, Symbol.toStringTag, { value: "Module" })), ea = { class: "error-page" }, ta = { class: "error-container" }, sa = { class: "error-content" }, na = { class: "error-actions" }, oa = /* @__PURE__ */ Ae({
3431
+ default: aa
3432
+ }, Symbol.toStringTag, { value: "Module" })), la = { class: "error-page" }, ca = { class: "error-container" }, ua = { class: "error-content" }, da = { class: "error-actions" }, fa = /* @__PURE__ */ Ae({
3386
3433
  __name: "404",
3387
3434
  setup(r) {
3388
3435
  const f = Pe(), v = () => {
3389
3436
  f.push("/");
3390
3437
  };
3391
- return (p, h) => (y(), N("div", ea, [
3392
- n("div", ta, [
3393
- h[7] || (h[7] = n("div", { class: "error-bg" }, [
3394
- n("div", { class: "bg-circle circle-1" }),
3395
- n("div", { class: "bg-circle circle-2" }),
3396
- n("div", { class: "bg-circle circle-3" })
3438
+ return (p, h) => (w(), N("div", la, [
3439
+ s("div", ca, [
3440
+ h[7] || (h[7] = s("div", { class: "error-bg" }, [
3441
+ s("div", { class: "bg-circle circle-1" }),
3442
+ s("div", { class: "bg-circle circle-2" }),
3443
+ s("div", { class: "bg-circle circle-3" })
3397
3444
  ], -1)),
3398
- n("div", sa, [
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)),
3400
- n("div", na, [
3401
- R(b(je), {
3445
+ s("div", ua, [
3446
+ h[5] || (h[5] = st('<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)),
3447
+ s("div", da, [
3448
+ R(y(je), {
3402
3449
  type: "primary",
3403
3450
  size: "large",
3404
3451
  onClick: v
3405
3452
  }, {
3406
- icon: Y(() => [...h[1] || (h[1] = [
3407
- n("svg", {
3453
+ icon: X(() => [...h[1] || (h[1] = [
3454
+ s("svg", {
3408
3455
  viewBox: "0 0 24 24",
3409
3456
  fill: "none",
3410
3457
  stroke: "currentColor",
3411
3458
  "stroke-width": "2"
3412
3459
  }, [
3413
- n("path", { d: "M3 9l9-7 9 7v11a2 2 0 01-2 2H5a2 2 0 01-2-2V9z" }),
3414
- n("polyline", { points: "9,22 9,12 15,12 15,22" })
3460
+ s("path", { d: "M3 9l9-7 9 7v11a2 2 0 01-2 2H5a2 2 0 01-2-2V9z" }),
3461
+ s("polyline", { points: "9,22 9,12 15,12 15,22" })
3415
3462
  ], -1)
3416
3463
  ])]),
3417
- default: Y(() => [
3464
+ default: X(() => [
3418
3465
  h[2] || (h[2] = De(" 返回首页 ", -1))
3419
3466
  ]),
3420
3467
  _: 1
3421
3468
  }),
3422
- R(b(je), {
3469
+ R(y(je), {
3423
3470
  size: "large",
3424
- onClick: h[0] || (h[0] = (k) => b(f).go(-1))
3471
+ onClick: h[0] || (h[0] = (b) => y(f).go(-1))
3425
3472
  }, {
3426
- icon: Y(() => [...h[3] || (h[3] = [
3427
- n("svg", {
3473
+ icon: X(() => [...h[3] || (h[3] = [
3474
+ s("svg", {
3428
3475
  viewBox: "0 0 24 24",
3429
3476
  fill: "none",
3430
3477
  stroke: "currentColor",
3431
3478
  "stroke-width": "2"
3432
3479
  }, [
3433
- n("path", { d: "M19 12H5M12 19l-7-7 7-7" })
3480
+ s("path", { d: "M19 12H5M12 19l-7-7 7-7" })
3434
3481
  ], -1)
3435
3482
  ])]),
3436
- default: Y(() => [
3483
+ default: X(() => [
3437
3484
  h[4] || (h[4] = De(" 返回上一页 ", -1))
3438
3485
  ]),
3439
3486
  _: 1
3440
3487
  })
3441
3488
  ]),
3442
- h[6] || (h[6] = n("div", { class: "error-tip" }, [
3443
- n("p", null, "您可以尝试:"),
3444
- n("ul", null, [
3445
- n("li", null, "检查您输入的网址是否正确"),
3446
- n("li", null, "返回首页重新浏览"),
3447
- n("li", null, "联系管理员反馈问题")
3489
+ h[6] || (h[6] = s("div", { class: "error-tip" }, [
3490
+ s("p", null, "您可以尝试:"),
3491
+ s("ul", null, [
3492
+ s("li", null, "检查您输入的网址是否正确"),
3493
+ s("li", null, "返回首页重新浏览"),
3494
+ s("li", null, "联系管理员反馈问题")
3448
3495
  ])
3449
3496
  ], -1))
3450
3497
  ])
3451
3498
  ])
3452
3499
  ]));
3453
3500
  }
3454
- }), ra = /* @__PURE__ */ Se(oa, [["__scopeId", "data-v-1b083153"]]), Ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3501
+ }), pa = /* @__PURE__ */ Se(fa, [["__scopeId", "data-v-1b083153"]]), Ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3455
3502
  __proto__: null,
3456
- default: ra
3457
- }, Symbol.toStringTag, { value: "Module" })), aa = { class: "error-page" }, ia = { class: "error-container" }, la = { class: "error-content" }, ca = { class: "error-actions" }, ua = /* @__PURE__ */ Ae({
3503
+ default: pa
3504
+ }, Symbol.toStringTag, { value: "Module" })), ma = { class: "error-page" }, ha = { class: "error-container" }, va = { class: "error-content" }, ga = { class: "error-actions" }, _a = /* @__PURE__ */ Ae({
3458
3505
  __name: "403",
3459
3506
  setup(r) {
3460
3507
  const f = Pe(), v = () => {
3461
3508
  f.push("/");
3462
3509
  };
3463
- return (p, h) => (y(), N("div", aa, [
3464
- n("div", ia, [
3465
- h[7] || (h[7] = n("div", { class: "error-bg" }, [
3466
- n("div", { class: "bg-circle circle-1" }),
3467
- n("div", { class: "bg-circle circle-2" }),
3468
- n("div", { class: "bg-circle circle-3" })
3510
+ return (p, h) => (w(), N("div", ma, [
3511
+ s("div", ha, [
3512
+ h[7] || (h[7] = s("div", { class: "error-bg" }, [
3513
+ s("div", { class: "bg-circle circle-1" }),
3514
+ s("div", { class: "bg-circle circle-2" }),
3515
+ s("div", { class: "bg-circle circle-3" })
3469
3516
  ], -1)),
3470
- n("div", la, [
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)),
3472
- n("div", ca, [
3473
- R(b(je), {
3517
+ s("div", va, [
3518
+ h[5] || (h[5] = st('<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)),
3519
+ s("div", ga, [
3520
+ R(y(je), {
3474
3521
  type: "primary",
3475
3522
  size: "large",
3476
3523
  onClick: v
3477
3524
  }, {
3478
- icon: Y(() => [...h[1] || (h[1] = [
3479
- n("svg", {
3525
+ icon: X(() => [...h[1] || (h[1] = [
3526
+ s("svg", {
3480
3527
  viewBox: "0 0 24 24",
3481
3528
  fill: "none",
3482
3529
  stroke: "currentColor",
3483
3530
  "stroke-width": "2"
3484
3531
  }, [
3485
- n("path", { d: "M3 9l9-7 9 7v11a2 2 0 01-2 2H5a2 2 0 01-2-2V9z" }),
3486
- n("polyline", { points: "9,22 9,12 15,12 15,22" })
3532
+ s("path", { d: "M3 9l9-7 9 7v11a2 2 0 01-2 2H5a2 2 0 01-2-2V9z" }),
3533
+ s("polyline", { points: "9,22 9,12 15,12 15,22" })
3487
3534
  ], -1)
3488
3535
  ])]),
3489
- default: Y(() => [
3536
+ default: X(() => [
3490
3537
  h[2] || (h[2] = De(" 返回首页 ", -1))
3491
3538
  ]),
3492
3539
  _: 1
3493
3540
  }),
3494
- R(b(je), {
3541
+ R(y(je), {
3495
3542
  size: "large",
3496
- onClick: h[0] || (h[0] = (k) => b(f).go(-1))
3543
+ onClick: h[0] || (h[0] = (b) => y(f).go(-1))
3497
3544
  }, {
3498
- icon: Y(() => [...h[3] || (h[3] = [
3499
- n("svg", {
3545
+ icon: X(() => [...h[3] || (h[3] = [
3546
+ s("svg", {
3500
3547
  viewBox: "0 0 24 24",
3501
3548
  fill: "none",
3502
3549
  stroke: "currentColor",
3503
3550
  "stroke-width": "2"
3504
3551
  }, [
3505
- n("path", { d: "M19 12H5M12 19l-7-7 7-7" })
3552
+ s("path", { d: "M19 12H5M12 19l-7-7 7-7" })
3506
3553
  ], -1)
3507
3554
  ])]),
3508
- default: Y(() => [
3555
+ default: X(() => [
3509
3556
  h[4] || (h[4] = De(" 返回上一页 ", -1))
3510
3557
  ]),
3511
3558
  _: 1
3512
3559
  })
3513
3560
  ]),
3514
- h[6] || (h[6] = n("div", { class: "error-tip" }, [
3515
- n("p", null, "可能的原因:"),
3516
- n("ul", null, [
3517
- n("li", null, "您的账号权限不足"),
3518
- n("li", null, "该页面需要特定角色才能访问"),
3519
- n("li", null, "您的登录状态已过期")
3561
+ h[6] || (h[6] = s("div", { class: "error-tip" }, [
3562
+ s("p", null, "可能的原因:"),
3563
+ s("ul", null, [
3564
+ s("li", null, "您的账号权限不足"),
3565
+ s("li", null, "该页面需要特定角色才能访问"),
3566
+ s("li", null, "您的登录状态已过期")
3520
3567
  ])
3521
3568
  ], -1))
3522
3569
  ])
3523
3570
  ])
3524
3571
  ]));
3525
3572
  }
3526
- }), Ua = /* @__PURE__ */ Se(ua, [["__scopeId", "data-v-d167f981"]]);
3527
- function Ba() {
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);
3573
+ }), ja = /* @__PURE__ */ Se(_a, [["__scopeId", "data-v-d167f981"]]);
3574
+ function qa() {
3575
+ const r = Re(), f = $e(), v = Je(), p = j(() => f.userName || ""), h = j(() => f.userInfo), b = j(() => r.appName), T = j(() => v.isLoggedIn), g = j(() => r.isDark), I = j(() => r.theme), _ = j(() => r.isCollapsed), x = j(() => r.layout);
3529
3576
  return {
3530
3577
  userName: p,
3531
3578
  userInfo: h,
3532
- appName: k,
3579
+ appName: b,
3533
3580
  isLoggedIn: T,
3534
3581
  isDark: g,
3535
3582
  theme: I,
@@ -3543,28 +3590,28 @@ function Ba() {
3543
3590
  }
3544
3591
  };
3545
3592
  }
3546
- function Pa() {
3593
+ function Ga() {
3547
3594
  const r = $e();
3548
3595
  return {
3549
3596
  isLoggedIn: j(() => r.isLoggedIn)
3550
3597
  };
3551
3598
  }
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), _ = () => {
3599
+ function Ka(r, f = {}) {
3600
+ const { rules: v, onSubmit: p } = f, h = P(), b = kt({ ...r }), T = P(!1), g = P(!1), I = P(!1), _ = () => {
3554
3601
  E(), I.value = !1, g.value = !0;
3555
- }, x = (J) => {
3556
- Object.assign(k, J), I.value = !0, g.value = !0;
3602
+ }, x = (Q) => {
3603
+ Object.assign(b, Q), I.value = !0, g.value = !0;
3557
3604
  }, M = () => {
3558
3605
  g.value = !1, E();
3559
3606
  }, E = () => {
3560
- var J;
3607
+ var Q;
3561
3608
  Object.keys(r).forEach((O) => {
3562
- k[O] = r[O];
3563
- }), (J = h.value) == null || J.resetFields();
3609
+ b[O] = r[O];
3610
+ }), (Q = h.value) == null || Q.resetFields();
3564
3611
  };
3565
3612
  return {
3566
3613
  formRef: h,
3567
- formData: k,
3614
+ formData: b,
3568
3615
  rules: v,
3569
3616
  loading: T,
3570
3617
  visible: g,
@@ -3574,9 +3621,9 @@ function Ra(r, f = {}) {
3574
3621
  close: M,
3575
3622
  resetForm: E,
3576
3623
  handleSubmit: async () => {
3577
- var J;
3624
+ var Q;
3578
3625
  try {
3579
- await ((J = h.value) == null ? void 0 : J.validate()), T.value = !0, await (p == null ? void 0 : p(k)), M();
3626
+ await ((Q = h.value) == null ? void 0 : Q.validate()), T.value = !0, await (p == null ? void 0 : p(b)), M();
3580
3627
  } catch (O) {
3581
3628
  console.error(O);
3582
3629
  } finally {
@@ -3585,8 +3632,8 @@ function Ra(r, f = {}) {
3585
3632
  }
3586
3633
  };
3587
3634
  }
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 () => {
3635
+ function Ha(r) {
3636
+ const { fetchData: f, defaultPageSize: v = 10 } = r, p = P(!1), h = P([]), b = P(0), T = P(1), g = P(v), I = kt({}), _ = async () => {
3590
3637
  p.value = !0;
3591
3638
  try {
3592
3639
  const A = {
@@ -3594,7 +3641,7 @@ function Da(r) {
3594
3641
  page: T.value,
3595
3642
  pageSize: g.value
3596
3643
  }, V = await f(A);
3597
- h.value = V.list, k.value = V.total;
3644
+ h.value = V.list, b.value = V.total;
3598
3645
  } catch (A) {
3599
3646
  console.error(A);
3600
3647
  } finally {
@@ -3608,19 +3655,19 @@ function Da(r) {
3608
3655
  }), T.value = 1, _();
3609
3656
  }, E = (A) => {
3610
3657
  T.value = A, _();
3611
- }, q = (A) => {
3658
+ }, G = (A) => {
3612
3659
  g.value = A, T.value = 1, _();
3613
- }, J = () => {
3660
+ }, Q = () => {
3614
3661
  _();
3615
3662
  }, O = j(() => ({
3616
3663
  current: T.value,
3617
3664
  pageSize: g.value,
3618
- total: k.value
3665
+ total: b.value
3619
3666
  }));
3620
3667
  return {
3621
3668
  loading: p,
3622
3669
  data: h,
3623
- total: k,
3670
+ total: b,
3624
3671
  currentPage: T,
3625
3672
  pageSize: g,
3626
3673
  searchParams: I,
@@ -3629,24 +3676,24 @@ function Da(r) {
3629
3676
  handleSearch: x,
3630
3677
  handleReset: M,
3631
3678
  handlePageChange: E,
3632
- handleSizeChange: q,
3633
- refresh: J
3679
+ handleSizeChange: G,
3680
+ refresh: Q
3634
3681
  };
3635
3682
  }
3636
- function za(r) {
3683
+ function Wa(r) {
3637
3684
  return $e().isLoggedIn;
3638
3685
  }
3639
- function Fa(r) {
3686
+ function Xa(r) {
3640
3687
  return $e().isLoggedIn;
3641
3688
  }
3642
- function Va() {
3689
+ function Ya() {
3643
3690
  return !0;
3644
3691
  }
3645
3692
  const Wt = [
3646
3693
  {
3647
3694
  path: "/login",
3648
3695
  name: "Login",
3649
- component: () => Promise.resolve().then(() => Qr),
3696
+ component: () => Promise.resolve().then(() => ia),
3650
3697
  meta: {
3651
3698
  title: "登录",
3652
3699
  hidden: !0
@@ -3655,13 +3702,13 @@ const Wt = [
3655
3702
  ], Xt = {
3656
3703
  path: "/",
3657
3704
  name: "Layout",
3658
- component: () => Promise.resolve().then(() => kr),
3705
+ component: () => Promise.resolve().then(() => Ir),
3659
3706
  redirect: "/dashboard",
3660
3707
  children: [
3661
3708
  {
3662
3709
  path: "/dashboard",
3663
3710
  name: "Dashboard",
3664
- component: () => import("./index-CAP6PwZY.js"),
3711
+ component: () => import("./index-Jynxhhda.js"),
3665
3712
  meta: {
3666
3713
  title: "仪表盘",
3667
3714
  icon: "dashboard",
@@ -3672,7 +3719,7 @@ const Wt = [
3672
3719
  {
3673
3720
  path: "/system/user",
3674
3721
  name: "SystemUser",
3675
- component: () => import("./index-DFzwy0q2.js"),
3722
+ component: () => import("./index-XgzSS-fV.js"),
3676
3723
  meta: {
3677
3724
  title: "用户管理",
3678
3725
  icon: "user",
@@ -3682,7 +3729,7 @@ const Wt = [
3682
3729
  {
3683
3730
  path: "/system/role",
3684
3731
  name: "SystemRole",
3685
- component: () => import("./index-Bh-uiX8x.js"),
3732
+ component: () => import("./index-BZaqYObA.js"),
3686
3733
  meta: {
3687
3734
  title: "角色管理",
3688
3735
  icon: "role",
@@ -3692,7 +3739,7 @@ const Wt = [
3692
3739
  {
3693
3740
  path: "/system/menu",
3694
3741
  name: "SystemMenu",
3695
- component: () => import("./index-CxZil1E5.js"),
3742
+ component: () => import("./index-CbwOysFI.js"),
3696
3743
  meta: {
3697
3744
  title: "菜单管理",
3698
3745
  icon: "menu",
@@ -3710,11 +3757,11 @@ const Wt = [
3710
3757
  }
3711
3758
  }
3712
3759
  ]
3713
- }, ja = [
3760
+ }, Ja = [
3714
3761
  {
3715
3762
  path: "/dashboard",
3716
3763
  name: "Dashboard",
3717
- component: () => import("./index-CAP6PwZY.js"),
3764
+ component: () => import("./index-Jynxhhda.js"),
3718
3765
  meta: {
3719
3766
  title: "仪表盘",
3720
3767
  icon: "dashboard",
@@ -3734,7 +3781,7 @@ const Wt = [
3734
3781
  {
3735
3782
  path: "user",
3736
3783
  name: "SystemUser",
3737
- component: () => import("./index-DFzwy0q2.js"),
3784
+ component: () => import("./index-XgzSS-fV.js"),
3738
3785
  meta: {
3739
3786
  title: "用户管理",
3740
3787
  icon: "user",
@@ -3744,7 +3791,7 @@ const Wt = [
3744
3791
  {
3745
3792
  path: "role",
3746
3793
  name: "SystemRole",
3747
- component: () => import("./index-Bh-uiX8x.js"),
3794
+ component: () => import("./index-BZaqYObA.js"),
3748
3795
  meta: {
3749
3796
  title: "角色管理",
3750
3797
  icon: "role",
@@ -3754,7 +3801,7 @@ const Wt = [
3754
3801
  {
3755
3802
  path: "menu",
3756
3803
  name: "SystemMenu",
3757
- component: () => import("./index-CxZil1E5.js"),
3804
+ component: () => import("./index-CbwOysFI.js"),
3758
3805
  meta: {
3759
3806
  title: "菜单管理",
3760
3807
  icon: "menu",
@@ -3763,7 +3810,7 @@ const Wt = [
3763
3810
  }
3764
3811
  ]
3765
3812
  }
3766
- ], da = [
3813
+ ], wa = [
3767
3814
  {
3768
3815
  menuCode: "dashboard",
3769
3816
  menuName: "仪表盘",
@@ -3812,10 +3859,10 @@ const Wt = [
3812
3859
  ]
3813
3860
  }
3814
3861
  ], Yt = bt({
3815
- history: kt(),
3862
+ history: xt(),
3816
3863
  routes: [...Wt, Xt],
3817
3864
  scrollBehavior: () => ({ left: 0, top: 0 })
3818
- }), fa = ["/login"];
3865
+ }), ya = ["/login"];
3819
3866
  Yt.beforeEach(async (r, f, v) => {
3820
3867
  const p = Re();
3821
3868
  if (p.initTheme(), zt())
@@ -3832,19 +3879,19 @@ Yt.beforeEach(async (r, f, v) => {
3832
3879
  mobilePhone: "13800138000",
3833
3880
  positionName: "管理员",
3834
3881
  avatar: ""
3835
- }), ze().setMenuList(da)), r.name && r.meta.keepAlive && p.addCachedView(r.name), v();
3882
+ }), ze().setMenuList(wa)), r.name && r.meta.keepAlive && p.addCachedView(r.name), v();
3836
3883
  }
3837
3884
  else
3838
- fa.includes(r.path) ? v() : v("/login");
3885
+ ya.includes(r.path) ? v() : v("/login");
3839
3886
  });
3840
- function qa() {
3887
+ function Za() {
3841
3888
  const r = bt({
3842
- history: kt(),
3889
+ history: xt(),
3843
3890
  routes: [...Wt, Xt]
3844
3891
  });
3845
3892
  Yt.matcher = r.matcher;
3846
3893
  }
3847
- function Ga(r, f = {}) {
3894
+ function Qa(r, f = {}) {
3848
3895
  const v = f.indexPath || "/dashboard", p = {
3849
3896
  path: "/:pathMatch(.*)*",
3850
3897
  name: "CatchAll",
@@ -3861,119 +3908,119 @@ function Ga(r, f = {}) {
3861
3908
  children: [...r, p]
3862
3909
  };
3863
3910
  }
3864
- function Ka(r) {
3911
+ function ei(r) {
3865
3912
  return bt({
3866
- history: kt(),
3913
+ history: xt(),
3867
3914
  routes: r,
3868
3915
  scrollBehavior: () => ({ left: 0, top: 0 })
3869
3916
  });
3870
3917
  }
3871
- function Ha(r) {
3872
- return ce.get("/role/list", { params: r });
3918
+ function ti(r) {
3919
+ return ue.get("/role/list", { params: r });
3873
3920
  }
3874
- function Wa(r) {
3875
- return ce.get(`/role/${r}`);
3921
+ function si(r) {
3922
+ return ue.get(`/role/${r}`);
3876
3923
  }
3877
- function Xa(r) {
3878
- return ce.post("/role", r);
3924
+ function ni(r) {
3925
+ return ue.post("/role", r);
3879
3926
  }
3880
- function Ya(r, f) {
3881
- return ce.put(`/role/${r}`, f);
3927
+ function oi(r, f) {
3928
+ return ue.put(`/role/${r}`, f);
3882
3929
  }
3883
- function Ja(r) {
3884
- return ce.delete(`/role/${r}`);
3930
+ function ri(r) {
3931
+ return ue.delete(`/role/${r}`);
3885
3932
  }
3886
- function Za(r, f) {
3887
- return ce.patch(`/role/${r}/status`, { status: f });
3933
+ function ai(r, f) {
3934
+ return ue.patch(`/role/${r}/status`, { status: f });
3888
3935
  }
3889
- function Qa() {
3890
- return ce.get("/user/v1.0/menu/list");
3936
+ function ii() {
3937
+ return ue.get("/user/v1.0/menu/list");
3891
3938
  }
3892
- function pa(r) {
3939
+ function ka(r) {
3893
3940
  const f = r || ct();
3894
- return ce.get(`/user/v1.0/menu/get-menu?appId=${f}`);
3941
+ return ue.get(`/user/v1.0/menu/get-menu?appId=${f}`);
3895
3942
  }
3896
- function ei(r) {
3897
- return ce.post("/menu", r);
3943
+ function li(r) {
3944
+ return ue.post("/menu", r);
3898
3945
  }
3899
- function ti(r, f) {
3900
- return ce.put(`/menu/${r}`, f);
3946
+ function ci(r, f) {
3947
+ return ue.put(`/menu/${r}`, f);
3901
3948
  }
3902
- function si(r) {
3903
- return ce.delete(`/menu/${r}`);
3949
+ function ui(r) {
3950
+ return ue.delete(`/menu/${r}`);
3904
3951
  }
3905
- const ma = ["/login", "/404", "/403"];
3906
- function ni(r, f = {}) {
3907
- const v = f.whiteList || ma, p = f.loginPath || "/login", h = f.homePath || "/";
3908
- r.beforeEach(async (k, T, g) => {
3952
+ const ba = ["/login", "/404", "/403"];
3953
+ function di(r, f = {}) {
3954
+ const v = f.whiteList || ba, p = f.loginPath || "/login", h = f.homePath || "/";
3955
+ r.beforeEach(async (b, T, g) => {
3909
3956
  const I = Re(), _ = $e(), x = ze();
3910
3957
  if (I.initTheme(), ut())
3911
- if (k.path === p)
3958
+ if (b.path === p)
3912
3959
  g({ path: h });
3913
3960
  else if (_.isLoggedIn)
3914
- k.name && k.meta.keepAlive && I.addCachedView(k.name), g();
3961
+ b.name && b.meta.keepAlive && I.addCachedView(b.name), g();
3915
3962
  else
3916
3963
  try {
3917
3964
  if (f.fetchUserInfo) {
3918
3965
  const E = await f.fetchUserInfo();
3919
3966
  _.setUserInfo(E);
3920
3967
  } else {
3921
- const E = await Vr();
3968
+ const E = await Yr();
3922
3969
  _.setUserInfo(E);
3923
3970
  }
3924
3971
  if (f.fetchMenu) {
3925
3972
  const E = await f.fetchMenu();
3926
3973
  x.setMenuList(E);
3927
3974
  } else {
3928
- const E = await pa(f.appId);
3975
+ const E = await ka(f.appId);
3929
3976
  x.setMenuList(E);
3930
3977
  }
3931
- f.onLoginSuccess && f.onLoginSuccess(), k.name && k.meta.keepAlive && I.addCachedView(k.name), g({ ...k, replace: !0 });
3978
+ f.onLoginSuccess && f.onLoginSuccess(), b.name && b.meta.keepAlive && I.addCachedView(b.name), g({ ...b, replace: !0 });
3932
3979
  } catch (E) {
3933
- console.error("获取用户信息失败:", E), _.clearUserInfo(), x.clearMenu(), He(), g({ path: p, query: { redirect: k.fullPath } });
3980
+ console.error("获取用户信息失败:", E), _.clearUserInfo(), x.clearMenu(), We(), g({ path: p, query: { redirect: b.fullPath } });
3934
3981
  }
3935
3982
  else
3936
- v.includes(k.path) ? g() : g({ path: p, query: { redirect: k.fullPath } });
3983
+ v.includes(b.path) ? g() : g({ path: p, query: { redirect: b.fullPath } });
3937
3984
  }), r.afterEach(() => {
3938
3985
  });
3939
3986
  }
3940
- function oi(r) {
3941
- return ce.get("/user/list", { params: r });
3987
+ function fi(r) {
3988
+ return ue.get("/user/list", { params: r });
3942
3989
  }
3943
- function ri(r) {
3944
- return ce.get(`/user/${r}`);
3990
+ function pi(r) {
3991
+ return ue.get(`/user/${r}`);
3945
3992
  }
3946
- function ai(r) {
3947
- return ce.post("/user", r);
3993
+ function mi(r) {
3994
+ return ue.post("/user", r);
3948
3995
  }
3949
- function ii(r, f) {
3950
- return ce.put(`/user/${r}`, f);
3996
+ function hi(r, f) {
3997
+ return ue.put(`/user/${r}`, f);
3951
3998
  }
3952
- function li(r) {
3953
- return ce.delete(`/user/${r}`);
3999
+ function vi(r) {
4000
+ return ue.delete(`/user/${r}`);
3954
4001
  }
3955
- function ci(r) {
3956
- return ce.post("/user/batch-delete", { ids: r });
4002
+ function gi(r) {
4003
+ return ue.post("/user/batch-delete", { ids: r });
3957
4004
  }
3958
- function ui(r, f) {
3959
- return ce.patch(`/user/${r}/status`, { status: f });
4005
+ function _i(r, f) {
4006
+ return ue.patch(`/user/${r}/status`, { status: f });
3960
4007
  }
3961
- function di(r) {
3962
- return ce.post(`/user/${r}/reset-password`);
4008
+ function wi(r) {
4009
+ return ue.post(`/user/${r}/reset-password`);
3963
4010
  }
3964
- var ha = /* @__PURE__ */ ((r) => (r[r.ENABLED = 1] = "ENABLED", r[r.DISABLED = 0] = "DISABLED", r))(ha || {}), va = /* @__PURE__ */ ((r) => (r[r.UNKNOWN = 0] = "UNKNOWN", r[r.MALE = 1] = "MALE", r[r.FEMALE = 2] = "FEMALE", r))(va || {}), ga = /* @__PURE__ */ ((r) => (r[r.DIRECTORY = 0] = "DIRECTORY", r[r.MENU = 1] = "MENU", r[r.BUTTON = 2] = "BUTTON", r))(ga || {});
3965
- const fi = {
4011
+ var xa = /* @__PURE__ */ ((r) => (r[r.ENABLED = 1] = "ENABLED", r[r.DISABLED = 0] = "DISABLED", r))(xa || {}), Ca = /* @__PURE__ */ ((r) => (r[r.UNKNOWN = 0] = "UNKNOWN", r[r.MALE = 1] = "MALE", r[r.FEMALE = 2] = "FEMALE", r))(Ca || {}), Na = /* @__PURE__ */ ((r) => (r[r.DIRECTORY = 0] = "DIRECTORY", r[r.MENU = 1] = "MENU", r[r.BUTTON = 2] = "BUTTON", r))(Na || {});
4012
+ const yi = {
3966
4013
  1: "启用",
3967
4014
  0: "禁用"
3968
- }, pi = {
4015
+ }, ki = {
3969
4016
  0: "未知",
3970
4017
  1: "男",
3971
4018
  2: "女"
3972
- }, mi = {
4019
+ }, bi = {
3973
4020
  0: "目录",
3974
4021
  1: "菜单",
3975
4022
  2: "按钮"
3976
- }, hi = [
4023
+ }, xi = [
3977
4024
  {
3978
4025
  label: "启用",
3979
4026
  value: 1
@@ -3984,7 +4031,7 @@ const fi = {
3984
4031
  value: 0
3985
4032
  /* DISABLED */
3986
4033
  }
3987
- ], vi = [
4034
+ ], Ci = [
3988
4035
  {
3989
4036
  label: "未知",
3990
4037
  value: 0
@@ -4000,7 +4047,7 @@ const fi = {
4000
4047
  value: 2
4001
4048
  /* FEMALE */
4002
4049
  }
4003
- ], gi = [
4050
+ ], Ni = [
4004
4051
  {
4005
4052
  label: "目录",
4006
4053
  value: 0
@@ -4016,13 +4063,13 @@ const fi = {
4016
4063
  value: 2
4017
4064
  /* BUTTON */
4018
4065
  }
4019
- ], _i = {
4066
+ ], Ei = {
4020
4067
  mounted(r, f) {
4021
4068
  var p;
4022
4069
  $e().isLoggedIn || (p = r.parentNode) == null || p.removeChild(r);
4023
4070
  }
4024
4071
  };
4025
- function wi(r) {
4072
+ function $i(r) {
4026
4073
  return os({
4027
4074
  appId: r.appId,
4028
4075
  clientId: r.clientId,
@@ -4040,47 +4087,47 @@ function wi(r) {
4040
4087
  }
4041
4088
  export {
4042
4089
  hs as $,
4043
- Ia as A,
4044
- Qa as B,
4045
- pa as C,
4046
- Ma as D,
4047
- Sa as E,
4048
- Aa as F,
4049
- va as G,
4090
+ Ra as A,
4091
+ ii as B,
4092
+ ka as C,
4093
+ Pa as D,
4094
+ Ba as E,
4095
+ za as F,
4096
+ Ca as G,
4050
4097
  wn as H,
4051
- Wa as I,
4052
- Ha as J,
4098
+ si as I,
4099
+ ti as J,
4053
4100
  ut as K,
4054
4101
  Ft as L,
4055
- ga as M,
4102
+ Na as M,
4056
4103
  ds as N,
4057
4104
  ls as O,
4058
- ri as P,
4059
- Vr as Q,
4060
- oi as R,
4061
- ha as S,
4062
- La as T,
4063
- za as U,
4064
- Fa as V,
4105
+ pi as P,
4106
+ Yr as Q,
4107
+ fi as R,
4108
+ xa as S,
4109
+ Da as T,
4110
+ Wa as U,
4111
+ Xa as V,
4065
4112
  zt as W,
4066
- ce as X,
4113
+ ue as X,
4067
4114
  os as Y,
4068
- Va as Z,
4115
+ Ya as Z,
4069
4116
  Se as _,
4070
- hi as a,
4117
+ xi as a,
4071
4118
  Xt as a0,
4072
- H as a1,
4073
- Ze as a2,
4074
- Fr as a3,
4075
- Ta as a4,
4076
- da as a5,
4077
- _i as a6,
4078
- Oa as a7,
4079
- di as a8,
4080
- qa as a9,
4119
+ W as a1,
4120
+ Qe as a2,
4121
+ Xr as a3,
4122
+ Fa as a4,
4123
+ wa as a5,
4124
+ Ei as a6,
4125
+ Va as a7,
4126
+ wi as a8,
4127
+ Za as a9,
4081
4128
  Yt as aa,
4082
- $a as ab,
4083
- Qe as ac,
4129
+ Ua as ab,
4130
+ et as ac,
4084
4131
  ms as ad,
4085
4132
  ps as ae,
4086
4133
  us as af,
@@ -4088,43 +4135,43 @@ export {
4088
4135
  fs as ah,
4089
4136
  Dt as ai,
4090
4137
  cs as aj,
4091
- ni as ak,
4138
+ di as ak,
4092
4139
  Wt as al,
4093
- ti as am,
4094
- Ya as an,
4095
- Za as ao,
4096
- ii as ap,
4097
- ui as aq,
4098
- Ba as ar,
4140
+ ci as am,
4141
+ oi as an,
4142
+ ai as ao,
4143
+ hi as ap,
4144
+ _i as aq,
4145
+ qa as ar,
4099
4146
  Re as as,
4100
- Pa as at,
4101
- Ye as au,
4102
- Ra as av,
4147
+ Ga as at,
4148
+ Je as au,
4149
+ Ka as av,
4103
4150
  ze as aw,
4104
- Da as ax,
4151
+ Ha as ax,
4105
4152
  $e as ay,
4106
- gi as b,
4107
- Ua as c,
4108
- vi as d,
4109
- pi as e,
4110
- mi as f,
4111
- ra as g,
4112
- Ot as h,
4113
- Zr as i,
4114
- fi as j,
4115
- Na as k,
4116
- ci as l,
4117
- He as m,
4118
- Ga as n,
4119
- ei as o,
4120
- Xa as p,
4121
- Ka as q,
4122
- ai as r,
4123
- wi as s,
4124
- ja as t,
4125
- si as u,
4126
- Ja as v,
4127
- li as w,
4153
+ Ni as b,
4154
+ ja as c,
4155
+ Ci as d,
4156
+ ki as e,
4157
+ bi as f,
4158
+ pa as g,
4159
+ Ut as h,
4160
+ aa as i,
4161
+ yi as j,
4162
+ Oa as k,
4163
+ gi as l,
4164
+ We as m,
4165
+ Qa as n,
4166
+ li as o,
4167
+ ni as p,
4168
+ ei as q,
4169
+ mi as r,
4170
+ $i as s,
4171
+ Ja as t,
4172
+ ui as u,
4173
+ ri as v,
4174
+ vi as w,
4128
4175
  rs as x,
4129
4176
  ct as y,
4130
4177
  Pt as z