xto-fronted 0.4.92 → 0.4.93
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.
- package/dist/{index-DjkSMw-x.js → index-B4U8Dy2W.js} +1 -1
- package/dist/{index-CvYIvRSW.js → index-Cp8kqjtv.js} +1 -1
- package/dist/{index-CsjBlLrl.js → index-D59X6HmM.js} +1 -1
- package/dist/{index-DAPLMrmP.js → index-lJrh5CFc.js} +1 -1
- package/dist/{index--qRfsJ32.js → index-me_Uu2lk.js} +138 -135
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Layout/Sidebar.vue +6 -6
|
@@ -83,7 +83,7 @@ const qa = {
|
|
|
83
83
|
o.value = D, q.set("appName", D);
|
|
84
84
|
}, Q = (D) => {
|
|
85
85
|
i.value = D, q.set("indexPath", D);
|
|
86
|
-
},
|
|
86
|
+
}, U = () => {
|
|
87
87
|
v.value = !v.value, m.value = v.value ? "dark" : "light", V();
|
|
88
88
|
}, T = (D) => {
|
|
89
89
|
m.value = D, v.value = D === "dark", V();
|
|
@@ -96,9 +96,9 @@ const qa = {
|
|
|
96
96
|
f.value = D, q.set("layout", D);
|
|
97
97
|
}, Y = () => {
|
|
98
98
|
S.value = !S.value, q.set("showTabs", S.value);
|
|
99
|
-
},
|
|
99
|
+
}, ne = () => {
|
|
100
100
|
g.value = !g.value, q.set("showFooter", g.value);
|
|
101
|
-
},
|
|
101
|
+
}, O = () => {
|
|
102
102
|
M.value = !M.value, q.set("showBreadcrumb", M.value);
|
|
103
103
|
}, A = (D) => {
|
|
104
104
|
_.value = D, document.documentElement.style.setProperty("--color-primary", D), q.set("primaryColor", D);
|
|
@@ -130,13 +130,13 @@ const qa = {
|
|
|
130
130
|
themeClass: C,
|
|
131
131
|
setAppName: K,
|
|
132
132
|
setIndexPath: Q,
|
|
133
|
-
toggleTheme:
|
|
133
|
+
toggleTheme: U,
|
|
134
134
|
toggleCollapse: I,
|
|
135
135
|
setTheme: T,
|
|
136
136
|
setLayout: W,
|
|
137
137
|
toggleTabs: Y,
|
|
138
|
-
toggleFooter:
|
|
139
|
-
toggleBreadcrumb:
|
|
138
|
+
toggleFooter: ne,
|
|
139
|
+
toggleBreadcrumb: O,
|
|
140
140
|
setPrimaryColor: A,
|
|
141
141
|
addCachedView: J,
|
|
142
142
|
removeCachedView: ee,
|
|
@@ -495,12 +495,12 @@ const Pe = Je("menu", () => {
|
|
|
495
495
|
q.set(Bt, I);
|
|
496
496
|
}, { deep: !0 });
|
|
497
497
|
const C = (I, W, Y = []) => {
|
|
498
|
-
var
|
|
499
|
-
for (const
|
|
500
|
-
if (W ===
|
|
501
|
-
return [...Y,
|
|
502
|
-
if ((
|
|
503
|
-
const A = C(
|
|
498
|
+
var ne;
|
|
499
|
+
for (const O of I) {
|
|
500
|
+
if (W === O.menuUrl || W.startsWith(O.menuUrl + "/"))
|
|
501
|
+
return [...Y, O.menuUrl];
|
|
502
|
+
if ((ne = O.children) != null && ne.length) {
|
|
503
|
+
const A = C(O.children, W, [...Y, O.menuUrl]);
|
|
504
504
|
if (A) return A;
|
|
505
505
|
}
|
|
506
506
|
}
|
|
@@ -509,10 +509,13 @@ const Pe = Je("menu", () => {
|
|
|
509
509
|
Xe([() => v.path, M], ([I, W]) => {
|
|
510
510
|
if (W.length > 0) {
|
|
511
511
|
const Y = C(W, I);
|
|
512
|
-
|
|
512
|
+
if (Y) {
|
|
513
|
+
const ne = Y.slice(0, -1), O = /* @__PURE__ */ new Set([...L.value, ...ne]);
|
|
514
|
+
L.value = Array.from(O);
|
|
515
|
+
}
|
|
513
516
|
}
|
|
514
517
|
}, { immediate: !0 });
|
|
515
|
-
const K = j(() => g.isDark ? "#1d1e1f" : "#fff"), Q = j(() => g.isDark ? "#cfd3dc" : "#303133"),
|
|
518
|
+
const K = j(() => g.isDark ? "#1d1e1f" : "#fff"), Q = j(() => g.isDark ? "#cfd3dc" : "#303133"), U = j(() => "#409eff"), T = (I) => {
|
|
516
519
|
I && I !== v.path && m.push(I);
|
|
517
520
|
}, V = () => {
|
|
518
521
|
S.logout(), k.clearUserInfo(), f.clearMenu(), m.push("/login");
|
|
@@ -540,7 +543,7 @@ const Pe = Je("menu", () => {
|
|
|
540
543
|
"collapse-transition": !1,
|
|
541
544
|
"background-color": K.value,
|
|
542
545
|
"text-color": Q.value,
|
|
543
|
-
"active-text-color":
|
|
546
|
+
"active-text-color": U.value,
|
|
544
547
|
class: "sidebar__menu",
|
|
545
548
|
onSelect: T
|
|
546
549
|
}, {
|
|
@@ -570,7 +573,7 @@ const Pe = Je("menu", () => {
|
|
|
570
573
|
])) : le("", !0)
|
|
571
574
|
], 2));
|
|
572
575
|
}
|
|
573
|
-
}), Pt = /* @__PURE__ */ $e(zs, [["__scopeId", "data-v-
|
|
576
|
+
}), Pt = /* @__PURE__ */ $e(zs, [["__scopeId", "data-v-4138a8d5"]]), Ds = { class: "header" }, Fs = { class: "header__left" }, Vs = {
|
|
574
577
|
key: 0,
|
|
575
578
|
class: "header__breadcrumb"
|
|
576
579
|
}, js = {
|
|
@@ -609,7 +612,7 @@ const Pe = Je("menu", () => {
|
|
|
609
612
|
}, _n = { class: "layout-option__label" }, wn = { class: "settings-section" }, yn = { class: "settings-color-options" }, bn = ["title", "onClick"], kn = { class: "settings-section" }, xn = { class: "settings-switch-list" }, Cn = { class: "settings-switch-item" }, Nn = { class: "settings-switch-item" }, En = /* @__PURE__ */ Ae({
|
|
610
613
|
__name: "Header",
|
|
611
614
|
setup(o) {
|
|
612
|
-
const i = qe(), v = ze(), m = De(), f = Se(), k = Ze(), S = Pe(), g = P(!1), M = P(!1), _ = P(null), x = P(!1), L = P(!1), C = P(""), K = P(null), Q = P(!1),
|
|
615
|
+
const i = qe(), v = ze(), m = De(), f = Se(), k = Ze(), S = Pe(), g = P(!1), M = P(!1), _ = P(null), x = P(!1), L = P(!1), C = P(""), K = P(null), Q = P(!1), U = [
|
|
613
616
|
{ value: "sidebar", label: "左侧菜单", icon: "sidebar-left" },
|
|
614
617
|
{ value: "top", label: "顶部菜单", icon: "menu" },
|
|
615
618
|
{ value: "mix", label: "混合菜单", icon: "grid" }
|
|
@@ -767,7 +770,7 @@ const Pe = Je("menu", () => {
|
|
|
767
770
|
list: "list",
|
|
768
771
|
grid: "grid"
|
|
769
772
|
}[H] || H;
|
|
770
|
-
},
|
|
773
|
+
}, ne = (H) => H ? H.charAt(0) : "", O = (H) => W.has(H), A = j(() => C.value.trim() ? I(S.menuList).filter(
|
|
771
774
|
(B) => B.title.toLowerCase().includes(C.value.toLowerCase())
|
|
772
775
|
) : []), J = j(() => m.layout), ee = () => {
|
|
773
776
|
m.toggleCollapse();
|
|
@@ -868,11 +871,11 @@ const Pe = Je("menu", () => {
|
|
|
868
871
|
onClick: (r) => Te(e.path)
|
|
869
872
|
}, [
|
|
870
873
|
e.title !== "首页" ? (w(), E("span", Ws, [
|
|
871
|
-
|
|
874
|
+
O(Y(e.icon)) ? (w(), ce(y(Z), {
|
|
872
875
|
key: 0,
|
|
873
876
|
name: Y(e.icon),
|
|
874
877
|
size: 16
|
|
875
|
-
}, null, 8, ["name"])) : (w(), E("span", Xs, G(
|
|
878
|
+
}, null, 8, ["name"])) : (w(), E("span", Xs, G(ne(e.title)), 1))
|
|
876
879
|
])) : le("", !0),
|
|
877
880
|
s("span", Ys, G(e.title), 1),
|
|
878
881
|
e.parentTitle ? (w(), E("span", Js, G(e.parentTitle), 1)) : le("", !0)
|
|
@@ -997,7 +1000,7 @@ const Pe = Je("menu", () => {
|
|
|
997
1000
|
s("div", dn, [
|
|
998
1001
|
B[11] || (B[11] = s("div", { class: "settings-title" }, "布局模式", -1)),
|
|
999
1002
|
s("div", fn, [
|
|
1000
|
-
(w(), E(he, null, ge(
|
|
1003
|
+
(w(), E(he, null, ge(U, (e) => s("div", {
|
|
1001
1004
|
key: e.value,
|
|
1002
1005
|
class: _e(["layout-option", { "is-active": J.value === e.value }]),
|
|
1003
1006
|
onClick: (r) => te(e.value)
|
|
@@ -1136,9 +1139,9 @@ const Pe = Je("menu", () => {
|
|
|
1136
1139
|
}), u;
|
|
1137
1140
|
}, _ = j(() => W.value.trim() ? M(m.menuList).filter(
|
|
1138
1141
|
(r) => r.title.toLowerCase().includes(W.value.toLowerCase())
|
|
1139
|
-
) : []), x = j(() => f.isDark ? "#1d1e1f" : "#fff"), L = j(() => f.isDark ? "#cfd3dc" : "#303133"), C = j(() => "#409eff"), K = P(!1), Q = P(null),
|
|
1142
|
+
) : []), x = j(() => f.isDark ? "#1d1e1f" : "#fff"), L = j(() => f.isDark ? "#cfd3dc" : "#303133"), C = j(() => "#409eff"), K = P(!1), Q = P(null), U = P(!1), T = P(!1), V = P(!1), I = P(!1), W = P(""), Y = P(null), ne = (e) => {
|
|
1140
1143
|
e && e !== i.path && v.push(e);
|
|
1141
|
-
},
|
|
1144
|
+
}, O = /* @__PURE__ */ new Set([
|
|
1142
1145
|
"arrow-up",
|
|
1143
1146
|
"arrow-down",
|
|
1144
1147
|
"arrow-left",
|
|
@@ -1277,12 +1280,12 @@ const Pe = Je("menu", () => {
|
|
|
1277
1280
|
list: "list",
|
|
1278
1281
|
grid: "grid"
|
|
1279
1282
|
}[e] || e;
|
|
1280
|
-
}, J = (e) => e ? e.charAt(0) : "", ee = (e) =>
|
|
1283
|
+
}, J = (e) => e ? e.charAt(0) : "", ee = (e) => O.has(e), $ = () => {
|
|
1281
1284
|
f.toggleTheme(), T.value = !1;
|
|
1282
1285
|
}, re = () => {
|
|
1283
1286
|
document.fullscreenElement ? document.exitFullscreen() : document.documentElement.requestFullscreen();
|
|
1284
1287
|
}, te = () => {
|
|
1285
|
-
|
|
1288
|
+
U.value = !!document.fullscreenElement;
|
|
1286
1289
|
}, D = () => {
|
|
1287
1290
|
K.value = !K.value;
|
|
1288
1291
|
}, ie = () => {
|
|
@@ -1349,7 +1352,7 @@ const Pe = Je("menu", () => {
|
|
|
1349
1352
|
"text-color": L.value,
|
|
1350
1353
|
"active-text-color": C.value,
|
|
1351
1354
|
class: "top-menu__menu",
|
|
1352
|
-
onSelect:
|
|
1355
|
+
onSelect: ne
|
|
1353
1356
|
}, {
|
|
1354
1357
|
default: X(() => [
|
|
1355
1358
|
(w(!0), E(he, null, ge(y(m).menuList, (n) => (w(), E(he, {
|
|
@@ -1503,10 +1506,10 @@ const Pe = Je("menu", () => {
|
|
|
1503
1506
|
s("div", {
|
|
1504
1507
|
class: "top-menu__action",
|
|
1505
1508
|
onClick: re,
|
|
1506
|
-
title:
|
|
1509
|
+
title: U.value ? "退出全屏" : "全屏"
|
|
1507
1510
|
}, [
|
|
1508
1511
|
R(y(Z), {
|
|
1509
|
-
name:
|
|
1512
|
+
name: U.value ? "fullscreen-exit" : "fullscreen",
|
|
1510
1513
|
size: 16
|
|
1511
1514
|
}, null, 8, ["name"])
|
|
1512
1515
|
], 8, ao),
|
|
@@ -1752,7 +1755,7 @@ const Pe = Je("menu", () => {
|
|
|
1752
1755
|
i.path !== d && v.push(d);
|
|
1753
1756
|
} else
|
|
1754
1757
|
i.path !== n && v.push(n);
|
|
1755
|
-
}, Q = j(() => f.isDark ? "#1d1e1f" : "#fff"),
|
|
1758
|
+
}, Q = j(() => f.isDark ? "#1d1e1f" : "#fff"), U = j(() => f.isDark ? "#cfd3dc" : "#303133"), T = j(() => "#409eff"), V = P(!1), I = P(null), W = P(!1), Y = P(!1), ne = P(!1), O = P(!1), A = P(""), J = P(null);
|
|
1756
1759
|
Xe(() => i.path, () => {
|
|
1757
1760
|
C(), f.setMixSubMenus(x.value);
|
|
1758
1761
|
}), Xe(() => m.menuList, (n) => {
|
|
@@ -1908,17 +1911,17 @@ const Pe = Je("menu", () => {
|
|
|
1908
1911
|
}, fe = () => {
|
|
1909
1912
|
V.value = !1;
|
|
1910
1913
|
}, be = () => {
|
|
1911
|
-
|
|
1914
|
+
O.value = !1, A.value = "";
|
|
1912
1915
|
}, ke = (n) => {
|
|
1913
1916
|
v.push(n), be();
|
|
1914
1917
|
}, we = () => {
|
|
1915
1918
|
Y.value = !0;
|
|
1916
1919
|
}, Te = (n) => {
|
|
1917
|
-
|
|
1920
|
+
ne.value = n;
|
|
1918
1921
|
const a = document.documentElement;
|
|
1919
1922
|
n ? a.classList.add("grey-mode") : a.classList.remove("grey-mode");
|
|
1920
1923
|
}, Ne = () => {
|
|
1921
|
-
Te(!
|
|
1924
|
+
Te(!ne.value), Y.value = !1;
|
|
1922
1925
|
}, Oe = () => {
|
|
1923
1926
|
f.toggleTheme(), Y.value = !1;
|
|
1924
1927
|
}, N = [
|
|
@@ -1948,7 +1951,7 @@ const Pe = Je("menu", () => {
|
|
|
1948
1951
|
n.key === "Escape" && (be(), fe());
|
|
1949
1952
|
};
|
|
1950
1953
|
return wt(() => {
|
|
1951
|
-
document.addEventListener("click", r), document.addEventListener("fullscreenchange", de), document.addEventListener("keydown", u),
|
|
1954
|
+
document.addEventListener("click", r), document.addEventListener("fullscreenchange", de), document.addEventListener("keydown", u), ne.value = document.documentElement.classList.contains("grey-mode"), C();
|
|
1952
1955
|
}), yt(() => {
|
|
1953
1956
|
document.removeEventListener("click", r), document.removeEventListener("fullscreenchange", de), document.removeEventListener("keydown", u);
|
|
1954
1957
|
}), (n, a) => {
|
|
@@ -1966,7 +1969,7 @@ const Pe = Je("menu", () => {
|
|
|
1966
1969
|
"model-value": g.value,
|
|
1967
1970
|
mode: "horizontal",
|
|
1968
1971
|
"background-color": Q.value,
|
|
1969
|
-
"text-color":
|
|
1972
|
+
"text-color": U.value,
|
|
1970
1973
|
"active-text-color": T.value,
|
|
1971
1974
|
class: "mix-top-menu__menu",
|
|
1972
1975
|
onSelect: K
|
|
@@ -2009,13 +2012,13 @@ const Pe = Je("menu", () => {
|
|
|
2009
2012
|
type: "text",
|
|
2010
2013
|
class: "mix-top-menu__search-input",
|
|
2011
2014
|
placeholder: "搜索菜单...",
|
|
2012
|
-
onFocus: a[1] || (a[1] = (l) =>
|
|
2015
|
+
onFocus: a[1] || (a[1] = (l) => O.value = !0)
|
|
2013
2016
|
}, null, 544), [
|
|
2014
2017
|
[bt, A.value]
|
|
2015
2018
|
]),
|
|
2016
2019
|
R(Ve, { name: "search-dropdown" }, {
|
|
2017
2020
|
default: X(() => [
|
|
2018
|
-
|
|
2021
|
+
O.value && (_.value.length > 0 || A.value) ? (w(), E("div", jo, [
|
|
2019
2022
|
_.value.length > 0 ? (w(), E("div", qo, [
|
|
2020
2023
|
(w(!0), E(he, null, ge(_.value, (l) => (w(), E("div", {
|
|
2021
2024
|
key: l.path,
|
|
@@ -2206,7 +2209,7 @@ const Pe = Je("menu", () => {
|
|
|
2206
2209
|
s("div", br, [
|
|
2207
2210
|
a[15] || (a[15] = s("span", null, "灰色模式", -1)),
|
|
2208
2211
|
s("div", {
|
|
2209
|
-
class: _e(["switch-wrapper", { "is-checked":
|
|
2212
|
+
class: _e(["switch-wrapper", { "is-checked": ne.value }]),
|
|
2210
2213
|
onClick: Ne
|
|
2211
2214
|
}, [...a[14] || (a[14] = [
|
|
2212
2215
|
s("span", { class: "switch-core" }, null, -1)
|
|
@@ -2374,7 +2377,7 @@ var dt = { exports: {} }, Gt = { exports: {} }, Kt = { exports: {} };
|
|
|
2374
2377
|
(function(o) {
|
|
2375
2378
|
(function(i) {
|
|
2376
2379
|
var v, m = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, f = Math.ceil, k = Math.floor, S = "[BigNumber Error] ", g = S + "Number primitive has more than 15 significant digits: ", M = 1e14, _ = 14, x = 9007199254740991, L = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], C = 1e7, K = 1e9;
|
|
2377
|
-
function Q(
|
|
2380
|
+
function Q(O) {
|
|
2378
2381
|
var A, J, ee, $ = N.prototype = { constructor: N, toString: null, valueOf: null }, re = new N(1), te = 20, D = 4, ie = -7, de = 21, Ce = -1e7, fe = 1e7, be = !1, ke = 1, we = 0, Te = {
|
|
2379
2382
|
prefix: "",
|
|
2380
2383
|
groupSize: 3,
|
|
@@ -2564,23 +2567,23 @@ var dt = { exports: {} }, Gt = { exports: {} }, Kt = { exports: {} };
|
|
|
2564
2567
|
return l.reverse();
|
|
2565
2568
|
}
|
|
2566
2569
|
return function(r, u, n, a, d) {
|
|
2567
|
-
var l, c, h, p, b, z, F,
|
|
2568
|
-
for (pe >= 0 && (p = we, we = 0, r = r.replace(".", ""),
|
|
2569
|
-
|
|
2570
|
+
var l, c, h, p, b, z, F, oe, pe = r.indexOf("."), ve = te, se = D;
|
|
2571
|
+
for (pe >= 0 && (p = we, we = 0, r = r.replace(".", ""), oe = new N(u), z = oe.pow(r.length - pe), we = p, oe.c = e(
|
|
2572
|
+
ne(T(z.c), z.e, "0"),
|
|
2570
2573
|
10,
|
|
2571
2574
|
n,
|
|
2572
2575
|
t
|
|
2573
|
-
),
|
|
2576
|
+
), oe.e = oe.c.length), F = e(r, u, n, d ? (l = Ne, t) : (l = t, Ne)), h = p = F.length; F[--p] == 0; F.pop()) ;
|
|
2574
2577
|
if (!F[0]) return l.charAt(0);
|
|
2575
|
-
if (pe < 0 ? --h : (z.c = F, z.e = h, z.s = a, z = A(z,
|
|
2576
|
-
r = b ?
|
|
2578
|
+
if (pe < 0 ? --h : (z.c = F, z.e = h, z.s = a, z = A(z, oe, ve, se, n), F = z.c, b = z.r, h = z.e), c = h + ve + 1, pe = F[c], p = n / 2, b = b || c < 0 || F[c + 1] != null, b = se < 4 ? (pe != null || b) && (se == 0 || se == (z.s < 0 ? 3 : 2)) : pe > p || pe == p && (se == 4 || b || se == 6 && F[c - 1] & 1 || se == (z.s < 0 ? 8 : 7)), c < 1 || !F[0])
|
|
2579
|
+
r = b ? ne(l.charAt(1), -ve, l.charAt(0)) : l.charAt(0);
|
|
2577
2580
|
else {
|
|
2578
2581
|
if (F.length = c, b)
|
|
2579
2582
|
for (--n; ++F[--c] > n; )
|
|
2580
2583
|
F[c] = 0, c || (++h, F = [1].concat(F));
|
|
2581
2584
|
for (p = F.length; !F[--p]; ) ;
|
|
2582
2585
|
for (pe = 0, r = ""; pe <= p; r += l.charAt(F[pe++])) ;
|
|
2583
|
-
r =
|
|
2586
|
+
r = ne(r, h, l.charAt(0));
|
|
2584
2587
|
}
|
|
2585
2588
|
return r;
|
|
2586
2589
|
};
|
|
@@ -2609,7 +2612,7 @@ var dt = { exports: {} }, Gt = { exports: {} }, Kt = { exports: {} };
|
|
|
2609
2612
|
for (; !u[0] && u.length > 1; u.splice(0, 1)) ;
|
|
2610
2613
|
}
|
|
2611
2614
|
return function(u, n, a, d, l) {
|
|
2612
|
-
var c, h, p, b, z, F,
|
|
2615
|
+
var c, h, p, b, z, F, oe, pe, ve, se, ae, ye, Qe, ft, pt, Le, Ge, Ee = u.s == n.s ? 1 : -1, xe = u.c, me = n.c;
|
|
2613
2616
|
if (!xe || !xe[0] || !me || !me[0])
|
|
2614
2617
|
return new N(
|
|
2615
2618
|
// Return NaN if either NaN, or both Infinity or 0.
|
|
@@ -2618,7 +2621,7 @@ var dt = { exports: {} }, Gt = { exports: {} }, Kt = { exports: {} };
|
|
|
2618
2621
|
xe && xe[0] == 0 || !me ? Ee * 0 : Ee / 0
|
|
2619
2622
|
)
|
|
2620
2623
|
);
|
|
2621
|
-
for (pe = new N(Ee), ve = pe.c = [], h = u.e - n.e, Ee = a + h + 1, l || (l = M, h =
|
|
2624
|
+
for (pe = new N(Ee), ve = pe.c = [], h = u.e - n.e, Ee = a + h + 1, l || (l = M, h = U(u.e / _) - U(n.e / _), Ee = Ee / _ | 0), p = 0; me[p] == (xe[p] || 0); p++) ;
|
|
2622
2625
|
if (me[p] > (xe[p] || 0) && h--, Ee < 0)
|
|
2623
2626
|
ve.push(1), b = !0;
|
|
2624
2627
|
else {
|
|
@@ -2627,11 +2630,11 @@ var dt = { exports: {} }, Gt = { exports: {} }, Kt = { exports: {} };
|
|
|
2627
2630
|
do {
|
|
2628
2631
|
if (z = 0, c = e(me, se, Le, ae), c < 0) {
|
|
2629
2632
|
if (ye = se[0], Le != ae && (ye = ye * l + (se[1] || 0)), z = k(ye / pt), z > 1)
|
|
2630
|
-
for (z >= l && (z = l - 1), F = t(me, z, l),
|
|
2631
|
-
z--, r(F, Le <
|
|
2633
|
+
for (z >= l && (z = l - 1), F = t(me, z, l), oe = F.length, ae = se.length; e(F, se, oe, ae) == 1; )
|
|
2634
|
+
z--, r(F, Le < oe ? Ge : me, oe, l), oe = F.length, c = 1;
|
|
2632
2635
|
else
|
|
2633
|
-
z == 0 && (c = z = 1), F = me.slice(),
|
|
2634
|
-
if (
|
|
2636
|
+
z == 0 && (c = z = 1), F = me.slice(), oe = F.length;
|
|
2637
|
+
if (oe < ae && (F = [0].concat(F)), r(se, F, ae, l), ae = se.length, c == -1)
|
|
2635
2638
|
for (; e(me, se, Le, ae) < 1; )
|
|
2636
2639
|
z++, r(se, Le < ae ? Ge : me, ae, l), ae = se.length;
|
|
2637
2640
|
} else c === 0 && (z++, se = [0]);
|
|
@@ -2651,11 +2654,11 @@ var dt = { exports: {} }, Gt = { exports: {} }, Kt = { exports: {} };
|
|
|
2651
2654
|
var n, a, d, l, c;
|
|
2652
2655
|
if (r == null ? r = D : I(r, 0, 8), !t.c) return t.toString();
|
|
2653
2656
|
if (n = t.c[0], d = t.e, e == null)
|
|
2654
|
-
c = T(t.c), c = u == 1 || u == 2 && (d <= ie || d >= de) ? Y(c, d) :
|
|
2657
|
+
c = T(t.c), c = u == 1 || u == 2 && (d <= ie || d >= de) ? Y(c, d) : ne(c, d, "0");
|
|
2655
2658
|
else if (t = H(new N(t), e, r), a = t.e, c = T(t.c), l = c.length, u == 1 || u == 2 && (e <= a || a <= ie)) {
|
|
2656
2659
|
for (; l < e; c += "0", l++) ;
|
|
2657
2660
|
c = Y(c, a);
|
|
2658
|
-
} else if (e -= d + (u === 2 && a > d), c =
|
|
2661
|
+
} else if (e -= d + (u === 2 && a > d), c = ne(c, a, "0"), a + 1 > l) {
|
|
2659
2662
|
if (--e > 0) for (c += "."; e--; c += "0") ;
|
|
2660
2663
|
} else if (e += a - l, e > 0)
|
|
2661
2664
|
for (a + 1 == l && (c += "."); e--; c += "0") ;
|
|
@@ -2731,7 +2734,7 @@ var dt = { exports: {} }, Gt = { exports: {} }, Kt = { exports: {} };
|
|
|
2731
2734
|
}
|
|
2732
2735
|
function B(t) {
|
|
2733
2736
|
var e, r = t.e;
|
|
2734
|
-
return r === null ? t.toString() : (e = T(t.c), e = r <= ie || r >= de ? Y(e, r) :
|
|
2737
|
+
return r === null ? t.toString() : (e = T(t.c), e = r <= ie || r >= de ? Y(e, r) : ne(e, r, "0"), t.s < 0 ? "-" + e : e);
|
|
2735
2738
|
}
|
|
2736
2739
|
return $.absoluteValue = $.abs = function() {
|
|
2737
2740
|
var t = new N(this);
|
|
@@ -2743,7 +2746,7 @@ var dt = { exports: {} }, Gt = { exports: {} }, Kt = { exports: {} };
|
|
|
2743
2746
|
if (t != null)
|
|
2744
2747
|
return I(t, 0, K), e == null ? e = D : I(e, 0, 8), H(new N(a), t + a.e + 1, e);
|
|
2745
2748
|
if (!(r = a.c)) return null;
|
|
2746
|
-
if (u = ((n = r.length - 1) -
|
|
2749
|
+
if (u = ((n = r.length - 1) - U(this.e / _)) * _, n = r[n]) for (; n % 10 == 0; n /= 10, u--) ;
|
|
2747
2750
|
return u < 0 && (u = 0), u;
|
|
2748
2751
|
}, $.dividedBy = $.div = function(t, e) {
|
|
2749
2752
|
return A(this, new N(t, e), te, D);
|
|
@@ -2792,7 +2795,7 @@ var dt = { exports: {} }, Gt = { exports: {} }, Kt = { exports: {} };
|
|
|
2792
2795
|
}, $.isGreaterThanOrEqualTo = $.gte = function(t, e) {
|
|
2793
2796
|
return (e = V(this, new N(t, e))) === 1 || e === 0;
|
|
2794
2797
|
}, $.isInteger = function() {
|
|
2795
|
-
return !!this.c &&
|
|
2798
|
+
return !!this.c && U(this.e / _) > this.c.length - 2;
|
|
2796
2799
|
}, $.isLessThan = $.lt = function(t, e) {
|
|
2797
2800
|
return V(this, new N(t, e)) < 0;
|
|
2798
2801
|
}, $.isLessThanOrEqualTo = $.lte = function(t, e) {
|
|
@@ -2819,7 +2822,7 @@ var dt = { exports: {} }, Gt = { exports: {} }, Kt = { exports: {} };
|
|
|
2819
2822
|
D == 3 ? -0 : 0
|
|
2820
2823
|
));
|
|
2821
2824
|
}
|
|
2822
|
-
if (c =
|
|
2825
|
+
if (c = U(c), h = U(h), p = p.slice(), l = c - h) {
|
|
2823
2826
|
for ((a = l < 0) ? (l = -l, n = p) : (h = c, n = b), n.reverse(), e = l; e--; n.push(0)) ;
|
|
2824
2827
|
n.reverse();
|
|
2825
2828
|
} else
|
|
@@ -2842,16 +2845,16 @@ var dt = { exports: {} }, Gt = { exports: {} }, Kt = { exports: {} };
|
|
|
2842
2845
|
var r, u, n = this;
|
|
2843
2846
|
return t = new N(t, e), !n.c || !t.s || t.c && !t.c[0] ? new N(NaN) : !t.c || n.c && !n.c[0] ? new N(n) : (ke == 9 ? (u = t.s, t.s = 1, r = A(n, t, 0, 3), t.s = u, r.s *= u) : r = A(n, t, 0, ke), t = n.minus(r.times(t)), !t.c[0] && ke == 1 && (t.s = n.s), t);
|
|
2844
2847
|
}, $.multipliedBy = $.times = function(t, e) {
|
|
2845
|
-
var r, u, n, a, d, l, c, h, p, b, z, F,
|
|
2848
|
+
var r, u, n, a, d, l, c, h, p, b, z, F, oe, pe, ve, se = this, ae = se.c, ye = (t = new N(t, e)).c;
|
|
2846
2849
|
if (!ae || !ye || !ae[0] || !ye[0])
|
|
2847
2850
|
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;
|
|
2848
|
-
for (u =
|
|
2851
|
+
for (u = U(se.e / _) + U(t.e / _), t.s *= se.s, c = ae.length, b = ye.length, c < b && (oe = ae, ae = ye, ye = oe, n = c, c = b, b = n), n = c + b, oe = []; n--; oe.push(0)) ;
|
|
2849
2852
|
for (pe = M, ve = C, n = b; --n >= 0; ) {
|
|
2850
2853
|
for (r = 0, z = ye[n] % ve, F = ye[n] / ve | 0, d = c, a = n + d; a > n; )
|
|
2851
|
-
h = ae[--d] % ve, p = ae[d] / ve | 0, l = F * h + p * z, h = z * h + l % ve * ve +
|
|
2852
|
-
|
|
2854
|
+
h = ae[--d] % ve, p = ae[d] / ve | 0, l = F * h + p * z, h = z * h + l % ve * ve + oe[a] + r, r = (h / pe | 0) + (l / ve | 0) + F * p, oe[a--] = h % pe;
|
|
2855
|
+
oe[a] = r;
|
|
2853
2856
|
}
|
|
2854
|
-
return r ? ++u :
|
|
2857
|
+
return r ? ++u : oe.splice(0, 1), Me(t, oe, u);
|
|
2855
2858
|
}, $.negated = function() {
|
|
2856
2859
|
var t = new N(this);
|
|
2857
2860
|
return t.s = -t.s || null, t;
|
|
@@ -2865,7 +2868,7 @@ var dt = { exports: {} }, Gt = { exports: {} }, Kt = { exports: {} };
|
|
|
2865
2868
|
if (!l || !c) return new N(n / 0);
|
|
2866
2869
|
if (!l[0] || !c[0]) return c[0] ? t : new N(l[0] ? u : n * 0);
|
|
2867
2870
|
}
|
|
2868
|
-
if (a =
|
|
2871
|
+
if (a = U(a), d = U(d), l = l.slice(), n = a - d) {
|
|
2869
2872
|
for (n > 0 ? (d = a, r = c) : (n = -n, r = l), r.reverse(); n--; r.push(0)) ;
|
|
2870
2873
|
r.reverse();
|
|
2871
2874
|
}
|
|
@@ -2888,7 +2891,7 @@ var dt = { exports: {} }, Gt = { exports: {} }, Kt = { exports: {} };
|
|
|
2888
2891
|
var t, e, r, u, n, a = this, d = a.c, l = a.s, c = a.e, h = te + 4, p = new N("0.5");
|
|
2889
2892
|
if (l !== 1 || !d || !d[0])
|
|
2890
2893
|
return new N(!l || l < 0 && (!d || d[0]) ? NaN : d ? a : 1 / 0);
|
|
2891
|
-
if (l = Math.sqrt(+B(a)), l == 0 || l == 1 / 0 ? (e = T(d), (e.length + c) % 2 == 0 && (e += "0"), l = Math.sqrt(+e), c =
|
|
2894
|
+
if (l = Math.sqrt(+B(a)), l == 0 || l == 1 / 0 ? (e = T(d), (e.length + c) % 2 == 0 && (e += "0"), l = Math.sqrt(+e), c = U((c + 1) / 2) - (c < 0 || c % 2), l == 1 / 0 ? e = "5e" + c : (e = l.toExponential(), e = e.slice(0, e.indexOf("e") + 1) + c), r = new N(e)) : r = new N(l + ""), r.c[0]) {
|
|
2892
2895
|
for (c = r.e, l = c + h, l < 3 && (l = 0); ; )
|
|
2893
2896
|
if (n = r, r = p.times(n.plus(A(a, n, h, 1))), T(n.c).slice(0, l) === (e = T(r.c)).slice(0, l))
|
|
2894
2897
|
if (r.e < c && --l, e = e.slice(l - 3, l + 1), e == "9999" || !u && e == "4999") {
|
|
@@ -2914,9 +2917,9 @@ var dt = { exports: {} }, Gt = { exports: {} }, Kt = { exports: {} };
|
|
|
2914
2917
|
else if (typeof r != "object")
|
|
2915
2918
|
throw Error(S + "Argument not an object: " + r);
|
|
2916
2919
|
if (u = n.toFixed(t, e), n.c) {
|
|
2917
|
-
var a, d = u.split("."), l = +r.groupSize, c = +r.secondaryGroupSize, h = r.groupSeparator || "", p = d[0], b = d[1], z = n.s < 0, F = z ? p.slice(1) : p,
|
|
2918
|
-
if (c && (a = l, l = c, c = a,
|
|
2919
|
-
for (a =
|
|
2920
|
+
var a, d = u.split("."), l = +r.groupSize, c = +r.secondaryGroupSize, h = r.groupSeparator || "", p = d[0], b = d[1], z = n.s < 0, F = z ? p.slice(1) : p, oe = F.length;
|
|
2921
|
+
if (c && (a = l, l = c, c = a, oe -= a), l > 0 && oe > 0) {
|
|
2922
|
+
for (a = oe % l || l, p = F.substr(0, a); a < oe; a += l) p += h + F.substr(a, l);
|
|
2920
2923
|
c > 0 && (p += h + F.slice(a)), z && (p = "-" + p);
|
|
2921
2924
|
}
|
|
2922
2925
|
u = b ? p + (r.decimalSeparator || "") + ((c = +r.fractionGroupSize) ? b.replace(
|
|
@@ -2926,11 +2929,11 @@ var dt = { exports: {} }, Gt = { exports: {} }, Kt = { exports: {} };
|
|
|
2926
2929
|
}
|
|
2927
2930
|
return (r.prefix || "") + u + (r.suffix || "");
|
|
2928
2931
|
}, $.toFraction = function(t) {
|
|
2929
|
-
var e, r, u, n, a, d, l, c, h, p, b, z, F = this,
|
|
2932
|
+
var e, r, u, n, a, d, l, c, h, p, b, z, F = this, oe = F.c;
|
|
2930
2933
|
if (t != null && (l = new N(t), !l.isInteger() && (l.c || l.s !== 1) || l.lt(re)))
|
|
2931
2934
|
throw Error(S + "Argument " + (l.isInteger() ? "out of range: " : "not an integer: ") + B(l));
|
|
2932
|
-
if (!
|
|
2933
|
-
for (e = new N(re), h = r = new N(re), u = c = new N(re), z = T(
|
|
2935
|
+
if (!oe) return new N(F);
|
|
2936
|
+
for (e = new N(re), h = r = new N(re), u = c = new N(re), z = T(oe), a = e.e = z.length - F.e - 1, e.c[0] = L[(d = a % _) < 0 ? _ + d : d], t = !t || l.comparedTo(e) > 0 ? a > 0 ? e : h : l, d = fe, fe = 1 / 0, l = new N(z), c.c[0] = 0; p = A(l, e, 0, 1), n = r.plus(p.times(u)), n.comparedTo(t) != 1; )
|
|
2934
2937
|
r = u, u = n, h = c.plus(p.times(n = h)), c = n, e = l.minus(p.times(n = e)), l = n;
|
|
2935
2938
|
return n = A(t.minus(r), u, 0, 1), c = c.plus(n.times(h)), r = r.plus(n.times(u)), c.s = h.s = F.s, a = a * 2, b = A(h, u, a, D).minus(F).abs().comparedTo(
|
|
2936
2939
|
A(c, r, a, D).minus(F).abs()
|
|
@@ -2941,25 +2944,25 @@ var dt = { exports: {} }, Gt = { exports: {} }, Kt = { exports: {} };
|
|
|
2941
2944
|
return t != null && I(t, 1, K), Ue(this, t, e, 2);
|
|
2942
2945
|
}, $.toString = function(t) {
|
|
2943
2946
|
var e, r = this, u = r.s, n = r.e;
|
|
2944
|
-
return n === null ? u ? (e = "Infinity", u < 0 && (e = "-" + e)) : e = "NaN" : (t == null ? e = n <= ie || n >= de ? Y(T(r.c), n) :
|
|
2947
|
+
return n === null ? u ? (e = "Infinity", u < 0 && (e = "-" + e)) : e = "NaN" : (t == null ? e = n <= ie || n >= de ? Y(T(r.c), n) : ne(T(r.c), n, "0") : t === 10 && Oe ? (r = H(new N(r), te + n + 1, D), e = ne(T(r.c), r.e, "0")) : (I(t, 2, Ne.length, "Base"), e = J(ne(T(r.c), n, "0"), 10, t, u, !0)), u < 0 && r.c[0] && (e = "-" + e)), e;
|
|
2945
2948
|
}, $.valueOf = $.toJSON = function() {
|
|
2946
2949
|
return B(this);
|
|
2947
|
-
}, $._isBigNumber = !0,
|
|
2950
|
+
}, $._isBigNumber = !0, O != null && N.set(O), N;
|
|
2948
2951
|
}
|
|
2949
|
-
function O
|
|
2950
|
-
var A =
|
|
2951
|
-
return
|
|
2952
|
+
function U(O) {
|
|
2953
|
+
var A = O | 0;
|
|
2954
|
+
return O > 0 || O === A ? A : A - 1;
|
|
2952
2955
|
}
|
|
2953
|
-
function T(
|
|
2954
|
-
for (var A, J, ee = 1, $ =
|
|
2955
|
-
for (A =
|
|
2956
|
+
function T(O) {
|
|
2957
|
+
for (var A, J, ee = 1, $ = O.length, re = O[0] + ""; ee < $; ) {
|
|
2958
|
+
for (A = O[ee++] + "", J = _ - A.length; J--; A = "0" + A) ;
|
|
2956
2959
|
re += A;
|
|
2957
2960
|
}
|
|
2958
2961
|
for ($ = re.length; re.charCodeAt(--$) === 48; ) ;
|
|
2959
2962
|
return re.slice(0, $ + 1 || 1);
|
|
2960
2963
|
}
|
|
2961
|
-
function V(
|
|
2962
|
-
var J, ee, $ =
|
|
2964
|
+
function V(O, A) {
|
|
2965
|
+
var J, ee, $ = O.c, re = A.c, te = O.s, D = A.s, ie = O.e, de = A.e;
|
|
2963
2966
|
if (!te || !D) return null;
|
|
2964
2967
|
if (J = $ && !$[0], ee = re && !re[0], J || ee) return J ? ee ? 0 : -D : te;
|
|
2965
2968
|
if (te != D) return te;
|
|
@@ -2968,27 +2971,27 @@ var dt = { exports: {} }, Gt = { exports: {} }, Kt = { exports: {} };
|
|
|
2968
2971
|
for (D = (ie = $.length) < (de = re.length) ? ie : de, te = 0; te < D; te++) if ($[te] != re[te]) return $[te] > re[te] ^ J ? 1 : -1;
|
|
2969
2972
|
return ie == de ? 0 : ie > de ^ J ? 1 : -1;
|
|
2970
2973
|
}
|
|
2971
|
-
function I(
|
|
2972
|
-
if (
|
|
2973
|
-
throw Error(S + (ee || "Argument") + (typeof
|
|
2974
|
+
function I(O, A, J, ee) {
|
|
2975
|
+
if (O < A || O > J || O !== k(O))
|
|
2976
|
+
throw Error(S + (ee || "Argument") + (typeof O == "number" ? O < A || O > J ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(O));
|
|
2974
2977
|
}
|
|
2975
|
-
function W(
|
|
2976
|
-
var A =
|
|
2977
|
-
return O
|
|
2978
|
+
function W(O) {
|
|
2979
|
+
var A = O.c.length - 1;
|
|
2980
|
+
return U(O.e / _) == A && O.c[A] % 2 != 0;
|
|
2978
2981
|
}
|
|
2979
|
-
function Y(
|
|
2980
|
-
return (
|
|
2982
|
+
function Y(O, A) {
|
|
2983
|
+
return (O.length > 1 ? O.charAt(0) + "." + O.slice(1) : O) + (A < 0 ? "e" : "e+") + A;
|
|
2981
2984
|
}
|
|
2982
|
-
function
|
|
2985
|
+
function ne(O, A, J) {
|
|
2983
2986
|
var ee, $;
|
|
2984
2987
|
if (A < 0) {
|
|
2985
2988
|
for ($ = J + "."; ++A; $ += J) ;
|
|
2986
|
-
|
|
2987
|
-
} else if (ee =
|
|
2989
|
+
O = $ + O;
|
|
2990
|
+
} else if (ee = O.length, ++A > ee) {
|
|
2988
2991
|
for ($ = J, A -= ee; --A; $ += J) ;
|
|
2989
|
-
|
|
2990
|
-
} else A < ee && (
|
|
2991
|
-
return
|
|
2992
|
+
O += $;
|
|
2993
|
+
} else A < ee && (O = O.slice(0, A) + "." + O.slice(A));
|
|
2994
|
+
return O;
|
|
2992
2995
|
}
|
|
2993
2996
|
v = Q(), v.default = v.BigNumber = v, o.exports ? o.exports = v : (i || (i = typeof self < "u" && self ? self : window), i.BigNumber = v);
|
|
2994
2997
|
})(Kr);
|
|
@@ -3014,7 +3017,7 @@ var Ht = Kt.exports;
|
|
|
3014
3017
|
}) + '"' : '"' + x + '"';
|
|
3015
3018
|
}
|
|
3016
3019
|
function _(x, L) {
|
|
3017
|
-
var C, K, Q,
|
|
3020
|
+
var C, K, Q, U, T = f, V, I = L[x], W = I != null && (I instanceof i || i.isBigNumber(I));
|
|
3018
3021
|
switch (I && typeof I == "object" && typeof I.toJSON == "function" && (I = I.toJSON(x)), typeof g == "function" && (I = g.call(L, x, I)), typeof I) {
|
|
3019
3022
|
case "string":
|
|
3020
3023
|
return W ? I : M(I);
|
|
@@ -3028,7 +3031,7 @@ var Ht = Kt.exports;
|
|
|
3028
3031
|
if (!I)
|
|
3029
3032
|
return "null";
|
|
3030
3033
|
if (f += k, V = [], Object.prototype.toString.apply(I) === "[object Array]") {
|
|
3031
|
-
for (
|
|
3034
|
+
for (U = I.length, C = 0; C < U; C += 1)
|
|
3032
3035
|
V[C] = _(C, I) || "null";
|
|
3033
3036
|
return Q = V.length === 0 ? "[]" : f ? `[
|
|
3034
3037
|
` + f + V.join(`,
|
|
@@ -3036,12 +3039,12 @@ var Ht = Kt.exports;
|
|
|
3036
3039
|
` + T + "]" : "[" + V.join(",") + "]", f = T, Q;
|
|
3037
3040
|
}
|
|
3038
3041
|
if (g && typeof g == "object")
|
|
3039
|
-
for (
|
|
3042
|
+
for (U = g.length, C = 0; C < U; C += 1)
|
|
3040
3043
|
typeof g[C] == "string" && (K = g[C], Q = _(K, I), Q && V.push(M(K) + (f ? ": " : ":") + Q));
|
|
3041
3044
|
else
|
|
3042
3045
|
Object.keys(I).forEach(function(Y) {
|
|
3043
|
-
var
|
|
3044
|
-
|
|
3046
|
+
var ne = _(Y, I);
|
|
3047
|
+
ne && V.push(M(Y) + (f ? ": " : ":") + ne);
|
|
3045
3048
|
});
|
|
3046
3049
|
return Q = V.length === 0 ? "{}" : f ? `{
|
|
3047
3050
|
` + f + V.join(`,
|
|
@@ -3102,17 +3105,17 @@ var Jr = function(o) {
|
|
|
3102
3105
|
`,
|
|
3103
3106
|
r: "\r",
|
|
3104
3107
|
t: " "
|
|
3105
|
-
}, k, S = function(
|
|
3108
|
+
}, k, S = function(U) {
|
|
3106
3109
|
throw {
|
|
3107
3110
|
name: "SyntaxError",
|
|
3108
|
-
message:
|
|
3111
|
+
message: U,
|
|
3109
3112
|
at: v,
|
|
3110
3113
|
text: k
|
|
3111
3114
|
};
|
|
3112
|
-
}, g = function(
|
|
3113
|
-
return
|
|
3115
|
+
}, g = function(U) {
|
|
3116
|
+
return U && U !== m && S("Expected '" + U + "' instead of '" + m + "'"), m = k.charAt(v), v += 1, m;
|
|
3114
3117
|
}, M = function() {
|
|
3115
|
-
var
|
|
3118
|
+
var U, T = "";
|
|
3116
3119
|
for (m === "-" && (T = "-", g("-")); m >= "0" && m <= "9"; )
|
|
3117
3120
|
T += m, g();
|
|
3118
3121
|
if (m === ".")
|
|
@@ -3121,20 +3124,20 @@ var Jr = function(o) {
|
|
|
3121
3124
|
if (m === "e" || m === "E")
|
|
3122
3125
|
for (T += m, g(), (m === "-" || m === "+") && (T += m, g()); m >= "0" && m <= "9"; )
|
|
3123
3126
|
T += m, g();
|
|
3124
|
-
if (
|
|
3127
|
+
if (U = +T, !isFinite(U))
|
|
3125
3128
|
S("Bad number");
|
|
3126
3129
|
else
|
|
3127
|
-
return st == null && (st = Ht), T.length > 15 ? i.storeAsString ? T : i.useNativeBigInt ? BigInt(T) : new st(T) : i.alwaysParseAsBig ? i.useNativeBigInt ? BigInt(
|
|
3130
|
+
return st == null && (st = Ht), T.length > 15 ? i.storeAsString ? T : i.useNativeBigInt ? BigInt(T) : new st(T) : i.alwaysParseAsBig ? i.useNativeBigInt ? BigInt(U) : new st(U) : U;
|
|
3128
3131
|
}, _ = function() {
|
|
3129
|
-
var
|
|
3132
|
+
var U, T, V = "", I;
|
|
3130
3133
|
if (m === '"')
|
|
3131
3134
|
for (var W = v; g(); ) {
|
|
3132
3135
|
if (m === '"')
|
|
3133
3136
|
return v - 1 > W && (V += k.substring(W, v - 1)), g(), V;
|
|
3134
3137
|
if (m === "\\") {
|
|
3135
3138
|
if (v - 1 > W && (V += k.substring(W, v - 1)), g(), m === "u") {
|
|
3136
|
-
for (I = 0, T = 0; T < 4 && (
|
|
3137
|
-
I = I * 16 +
|
|
3139
|
+
for (I = 0, T = 0; T < 4 && (U = parseInt(g(), 16), !!isFinite(U)); T += 1)
|
|
3140
|
+
I = I * 16 + U;
|
|
3138
3141
|
V += String.fromCharCode(I);
|
|
3139
3142
|
} else if (typeof f[m] == "string")
|
|
3140
3143
|
V += f[m];
|
|
@@ -3158,24 +3161,24 @@ var Jr = function(o) {
|
|
|
3158
3161
|
}
|
|
3159
3162
|
S("Unexpected '" + m + "'");
|
|
3160
3163
|
}, C, K = function() {
|
|
3161
|
-
var
|
|
3164
|
+
var U = [];
|
|
3162
3165
|
if (m === "[") {
|
|
3163
3166
|
if (g("["), x(), m === "]")
|
|
3164
|
-
return g("]"),
|
|
3167
|
+
return g("]"), U;
|
|
3165
3168
|
for (; m; ) {
|
|
3166
|
-
if (
|
|
3167
|
-
return g("]"),
|
|
3169
|
+
if (U.push(C()), x(), m === "]")
|
|
3170
|
+
return g("]"), U;
|
|
3168
3171
|
g(","), x();
|
|
3169
3172
|
}
|
|
3170
3173
|
}
|
|
3171
3174
|
S("Bad array");
|
|
3172
3175
|
}, Q = function() {
|
|
3173
|
-
var
|
|
3176
|
+
var U, T = /* @__PURE__ */ Object.create(null);
|
|
3174
3177
|
if (m === "{") {
|
|
3175
3178
|
if (g("{"), x(), m === "}")
|
|
3176
3179
|
return g("}"), T;
|
|
3177
3180
|
for (; m; ) {
|
|
3178
|
-
if (
|
|
3181
|
+
if (U = _(), x(), g(":"), i.strict === !0 && Object.hasOwnProperty.call(T, U) && S('Duplicate key "' + U + '"'), Xr.test(U) === !0 ? i.protoAction === "error" ? S("Object contains forbidden prototype property") : i.protoAction === "ignore" ? C() : T[U] = C() : Yr.test(U) === !0 ? i.constructorAction === "error" ? S("Object contains forbidden constructor property") : i.constructorAction === "ignore" ? C() : T[U] = C() : T[U] = C(), x(), m === "}")
|
|
3179
3182
|
return g("}"), T;
|
|
3180
3183
|
g(","), x();
|
|
3181
3184
|
}
|
|
@@ -3195,13 +3198,13 @@ var Jr = function(o) {
|
|
|
3195
3198
|
default:
|
|
3196
3199
|
return m >= "0" && m <= "9" ? M() : L();
|
|
3197
3200
|
}
|
|
3198
|
-
}, function(
|
|
3201
|
+
}, function(U, T) {
|
|
3199
3202
|
var V;
|
|
3200
|
-
return k =
|
|
3201
|
-
var
|
|
3202
|
-
return
|
|
3203
|
-
|
|
3204
|
-
}), T.call(W, Y,
|
|
3203
|
+
return k = U + "", v = 0, m = " ", V = C(), x(), m && S("Syntax error"), typeof T == "function" ? function I(W, Y) {
|
|
3204
|
+
var ne, O = W[Y];
|
|
3205
|
+
return O && typeof O == "object" && Object.keys(O).forEach(function(A) {
|
|
3206
|
+
ne = I(O, A), ne !== void 0 ? O[A] = ne : delete O[A];
|
|
3207
|
+
}), T.call(W, Y, O);
|
|
3205
3208
|
}({ "": V }, "") : V;
|
|
3206
3209
|
};
|
|
3207
3210
|
}, Zr = Jr, Wt = Wr.stringify, Xt = Zr;
|
|
@@ -3632,8 +3635,8 @@ function nl(o, i = {}) {
|
|
|
3632
3635
|
g.value = !1, C();
|
|
3633
3636
|
}, C = () => {
|
|
3634
3637
|
var Q;
|
|
3635
|
-
Object.keys(o).forEach((
|
|
3636
|
-
k[
|
|
3638
|
+
Object.keys(o).forEach((U) => {
|
|
3639
|
+
k[U] = o[U];
|
|
3637
3640
|
}), (Q = f.value) == null || Q.resetFields();
|
|
3638
3641
|
};
|
|
3639
3642
|
return {
|
|
@@ -3651,8 +3654,8 @@ function nl(o, i = {}) {
|
|
|
3651
3654
|
var Q;
|
|
3652
3655
|
try {
|
|
3653
3656
|
await ((Q = f.value) == null ? void 0 : Q.validate()), S.value = !0, await (m == null ? void 0 : m(k)), L();
|
|
3654
|
-
} catch (
|
|
3655
|
-
console.error(
|
|
3657
|
+
} catch (U) {
|
|
3658
|
+
console.error(U);
|
|
3656
3659
|
} finally {
|
|
3657
3660
|
S.value = !1;
|
|
3658
3661
|
}
|
|
@@ -3686,7 +3689,7 @@ function ol(o) {
|
|
|
3686
3689
|
g.value = T, S.value = 1, _();
|
|
3687
3690
|
}, Q = () => {
|
|
3688
3691
|
_();
|
|
3689
|
-
},
|
|
3692
|
+
}, U = j(() => ({
|
|
3690
3693
|
current: S.value,
|
|
3691
3694
|
pageSize: g.value,
|
|
3692
3695
|
total: k.value
|
|
@@ -3698,7 +3701,7 @@ function ol(o) {
|
|
|
3698
3701
|
currentPage: S,
|
|
3699
3702
|
pageSize: g,
|
|
3700
3703
|
searchParams: M,
|
|
3701
|
-
pagination:
|
|
3704
|
+
pagination: U,
|
|
3702
3705
|
getData: _,
|
|
3703
3706
|
handleSearch: x,
|
|
3704
3707
|
handleReset: L,
|
|
@@ -3784,7 +3787,7 @@ const Zt = [
|
|
|
3784
3787
|
{
|
|
3785
3788
|
path: "/dashboard",
|
|
3786
3789
|
name: "Dashboard",
|
|
3787
|
-
component: () => import("./index-
|
|
3790
|
+
component: () => import("./index-lJrh5CFc.js"),
|
|
3788
3791
|
meta: {
|
|
3789
3792
|
title: "仪表盘",
|
|
3790
3793
|
icon: "dashboard",
|
|
@@ -3795,7 +3798,7 @@ const Zt = [
|
|
|
3795
3798
|
{
|
|
3796
3799
|
path: "/system/user",
|
|
3797
3800
|
name: "SystemUser",
|
|
3798
|
-
component: () => import("./index-
|
|
3801
|
+
component: () => import("./index-Cp8kqjtv.js"),
|
|
3799
3802
|
meta: {
|
|
3800
3803
|
title: "用户管理",
|
|
3801
3804
|
icon: "user",
|
|
@@ -3805,7 +3808,7 @@ const Zt = [
|
|
|
3805
3808
|
{
|
|
3806
3809
|
path: "/system/role",
|
|
3807
3810
|
name: "SystemRole",
|
|
3808
|
-
component: () => import("./index-
|
|
3811
|
+
component: () => import("./index-D59X6HmM.js"),
|
|
3809
3812
|
meta: {
|
|
3810
3813
|
title: "角色管理",
|
|
3811
3814
|
icon: "role",
|
|
@@ -3815,7 +3818,7 @@ const Zt = [
|
|
|
3815
3818
|
{
|
|
3816
3819
|
path: "/system/menu",
|
|
3817
3820
|
name: "SystemMenu",
|
|
3818
|
-
component: () => import("./index-
|
|
3821
|
+
component: () => import("./index-B4U8Dy2W.js"),
|
|
3819
3822
|
meta: {
|
|
3820
3823
|
title: "菜单管理",
|
|
3821
3824
|
icon: "menu",
|
|
@@ -3837,7 +3840,7 @@ const Zt = [
|
|
|
3837
3840
|
{
|
|
3838
3841
|
path: "/dashboard",
|
|
3839
3842
|
name: "Dashboard",
|
|
3840
|
-
component: () => import("./index-
|
|
3843
|
+
component: () => import("./index-lJrh5CFc.js"),
|
|
3841
3844
|
meta: {
|
|
3842
3845
|
title: "仪表盘",
|
|
3843
3846
|
icon: "dashboard",
|
|
@@ -3857,7 +3860,7 @@ const Zt = [
|
|
|
3857
3860
|
{
|
|
3858
3861
|
path: "user",
|
|
3859
3862
|
name: "SystemUser",
|
|
3860
|
-
component: () => import("./index-
|
|
3863
|
+
component: () => import("./index-Cp8kqjtv.js"),
|
|
3861
3864
|
meta: {
|
|
3862
3865
|
title: "用户管理",
|
|
3863
3866
|
icon: "user",
|
|
@@ -3867,7 +3870,7 @@ const Zt = [
|
|
|
3867
3870
|
{
|
|
3868
3871
|
path: "role",
|
|
3869
3872
|
name: "SystemRole",
|
|
3870
|
-
component: () => import("./index-
|
|
3873
|
+
component: () => import("./index-D59X6HmM.js"),
|
|
3871
3874
|
meta: {
|
|
3872
3875
|
title: "角色管理",
|
|
3873
3876
|
icon: "role",
|
|
@@ -3877,7 +3880,7 @@ const Zt = [
|
|
|
3877
3880
|
{
|
|
3878
3881
|
path: "menu",
|
|
3879
3882
|
name: "SystemMenu",
|
|
3880
|
-
component: () => import("./index-
|
|
3883
|
+
component: () => import("./index-B4U8Dy2W.js"),
|
|
3881
3884
|
meta: {
|
|
3882
3885
|
title: "菜单管理",
|
|
3883
3886
|
icon: "menu",
|