@deot/docs-client 1.1.5 → 1.1.6
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/chunks/{compile-BHD98Ttf-BJaenUUQ.js → compile-CM_OyqYN-Bd7bk_OB.js} +634 -1734
- package/dist/chunks/{compiler-sfc.esm-browser-B4_kBkG5.js → compiler-sfc.esm-browser-5dA1IWMJ.js} +185 -305
- package/dist/chunks/{script-DjUf9uWK-Cu5Kla_E.js → css-DleINdoA-FdeEznDX.js} +2716 -2641
- package/dist/chunks/{dist-COjpr4FU.js → dist-DHJhaOSs.js} +2 -2
- package/dist/chunks/{dist-C8z9l0mA.js → dist-DSypl37f.js} +1 -1
- package/dist/chunks/{dist-BQyOK8Qy.js → dist-Wm6vE6kM.js} +2 -2
- package/dist/chunks/{echarts-Dk-pu7GM.js → echarts-BBzcOaek.js} +1075 -1290
- package/dist/chunks/{html2canvas-Deo0mM5K.js → html2canvas-DoKTvaOT.js} +3 -13
- package/dist/chunks/{index.es-UlJ0gfdF.js → index.es-wVPQxEPP.js} +32 -37
- package/dist/chunks/{jspdf.es.min-CJc40v7q.js → jspdf.es.min-Zm27YeAg.js} +1080 -1053
- package/dist/chunks/{jsx-CwMPlI4_-CAiik-V7.js → jsx-CwMPlI4_-CBhlIHLh.js} +8002 -8541
- package/dist/chunks/{jszip.min-BbVwZKYP.js → jszip.min-Da8UgalE.js} +5 -5
- package/dist/chunks/{lodash-Cxf6dD_I.js → lodash-CYyW02I7.js} +10 -14
- package/dist/chunks/{photoswipe.esm-B0V-xGTB.js → photoswipe.esm-D52MAtDT.js} +11 -38
- package/dist/chunks/{purify.es-BiqY1C6m.js → purify.es-DhHsvqCe.js} +1 -23
- package/dist/chunks/{vue-router-C0mj8Ot5.js → vue-router-DZ-KfC9f.js} +373 -361
- package/dist/chunks/{vue.runtime.esm-bundler-XxHGOLq2.js → vue.runtime.esm-bundler-zZTAiuf6.js} +10 -38
- package/dist/eval/chunks/browser-Cmwcvs-d.js +4 -0
- package/dist/eval/chunks/chunk-rhk8Qtmk-CUgXtmq_.js +4 -0
- package/dist/eval/chunks/compile-CM_OyqYN-Bd7bk_OB.js +7 -0
- package/dist/eval/chunks/compiler-sfc.esm-browser-5dA1IWMJ.js +4 -0
- package/dist/eval/chunks/css-DleINdoA-FdeEznDX.js +8 -0
- package/dist/eval/chunks/dayjs.min-B3g34Qcz.js +4 -0
- package/dist/eval/chunks/dist-0ySyXNpo.js +4 -0
- package/dist/eval/chunks/dist-B44jICwZ.js +5 -0
- package/dist/eval/chunks/dist-BUw25nXJ.js +6 -0
- package/dist/eval/chunks/dist-BeOE8qTX.js +4 -0
- package/dist/eval/chunks/dist-C3V7reR4.js +4 -0
- package/dist/eval/chunks/dist-CI9Lp9Cj.js +4 -0
- package/dist/eval/chunks/dist-CQir6D4y.js +5 -0
- package/dist/eval/chunks/dist-Cxf7_ocf.js +4 -0
- package/dist/eval/chunks/dist-DF4kisl2.js +5 -0
- package/dist/eval/chunks/dist-DHJhaOSs.js +5 -0
- package/dist/eval/chunks/dist-DLj8yJdm.js +4 -0
- package/dist/eval/chunks/dist-DSypl37f.js +5 -0
- package/dist/eval/chunks/dist-DWn6r6un.js +4 -0
- package/dist/eval/chunks/dist-DWqBe2Ah.js +6 -0
- package/dist/eval/chunks/dist-D_Uqh6m9.js +4 -0
- package/dist/eval/chunks/dist-DcIU51zW.js +4 -0
- package/dist/eval/chunks/dist-Wm6vE6kM.js +1 -0
- package/dist/eval/chunks/dist-kiZUqqzR.js +4 -0
- package/dist/eval/chunks/dist-oZ12SGqg.js +4 -0
- package/dist/eval/chunks/dist-va7FmnW4.js +4 -0
- package/dist/eval/chunks/echarts-BBzcOaek.js +4 -0
- package/dist/eval/chunks/eval-runtime-e7f6eb9af5d4.js +1 -0
- package/dist/eval/chunks/html2canvas-DoKTvaOT.js +4 -0
- package/dist/eval/chunks/index.es-wVPQxEPP.js +5 -0
- package/dist/eval/chunks/jspdf.es.min-Zm27YeAg.js +78 -0
- package/dist/eval/chunks/jsx-CwMPlI4_-CBhlIHLh.js +4 -0
- package/dist/eval/chunks/jszip.min-Da8UgalE.js +4 -0
- package/dist/eval/chunks/lodash-CYyW02I7.js +4 -0
- package/dist/eval/chunks/photoswipe.esm-D52MAtDT.js +4 -0
- package/dist/eval/chunks/purify.es-DhHsvqCe.js +4 -0
- package/dist/eval/chunks/rolldown-runtime-Ce3zPWPd.js +4 -0
- package/dist/eval/chunks/vue-router-DZ-KfC9f.js +5 -0
- package/dist/eval/chunks/vue.runtime.esm-bundler-zZTAiuf6.js +4 -0
- package/dist/eval/index.js +24 -0
- package/dist/eval/index.style.css +21 -0
- package/dist/index.cjs +7 -3
- package/dist/index.js +79026 -36843
- package/dist/index.style.css +3 -3
- package/package.json +11 -11
- package/dist/chunks/cdn-DQoETju_-DS-873Vi.js +0 -38
- package/dist/chunks/dist-9UPCn_ag.js +0 -24601
- package/dist/chunks/dist-uXnwGrO3.js +0 -76
- package/dist/chunks/files-BqucFldk-B-hTQ-ip.js +0 -148
- package/dist/chunks/linker-xqjVl0X0-CWWI367H.js +0 -118
- package/dist/chunks/local-sandbox-DvcgaBOa-CzJxrdVx.js +0 -298
- package/dist/chunks/modules-BGzPcoRR-C9BWX8hC.js +0 -154
- package/dist/chunks/pinia-pDJilYOg.js +0 -326
- package/dist/chunks/remote-mq4zvrI1-Bib9tTkb.js +0 -104
- package/dist/chunks/store-BOyC8F2y-CbodPye0.js +0 -17037
- package/dist/chunks/vc-components-C7ruefOT.js +0 -6
- package/dist/chunks/vc-components-m3l_xrd8.js +0 -6
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
globalThis.process;
|
|
2
2
|
import { n as e } from "./rolldown-runtime-Ce3zPWPd.js";
|
|
3
|
-
import { A as t,
|
|
4
|
-
//#region node_modules/.pnpm/vue-router@5.
|
|
3
|
+
import { A as t, C as n, E as r, I as i, N as a, S as o, at as s, dt as c, f as l, k as u, ot as d, q as f, rt as p, st as m, w as ee, z as h } from "./vue.runtime.esm-bundler-zZTAiuf6.js";
|
|
4
|
+
//#region node_modules/.pnpm/vue-router@5.4.0_@vue+compiler-sfc@3.5.43_esbuild@0.28.2_pinia@4.0.3_@vue+devtools-api@_b7a56666e9b50cf7fc57e11846542a2a/node_modules/vue-router/dist/useApi-CUWMwLLw.js
|
|
5
5
|
var g = (e) => e.startsWith("/");
|
|
6
6
|
function _(e) {
|
|
7
7
|
return typeof e == "object" || "displayName" in e || "props" in e || "__vccOpts" in e;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function v(e) {
|
|
10
10
|
return e.__esModule || e[Symbol.toStringTag] === "Module" || e.default && _(e.default);
|
|
11
11
|
}
|
|
12
|
-
var
|
|
13
|
-
function
|
|
12
|
+
var y = Object.assign;
|
|
13
|
+
function b(e, t) {
|
|
14
14
|
let n = {};
|
|
15
15
|
for (let r in t) {
|
|
16
16
|
let i = t[r];
|
|
17
|
-
n[r] =
|
|
17
|
+
n[r] = S(i) ? i.map(e) : e(i);
|
|
18
18
|
}
|
|
19
19
|
return n;
|
|
20
20
|
}
|
|
21
|
-
var
|
|
21
|
+
var x = () => {}, S = Array.isArray;
|
|
22
22
|
function te(e, t) {
|
|
23
23
|
let n = {};
|
|
24
24
|
for (let r in e) n[r] = r in t ? t[r] : e[r];
|
|
@@ -27,86 +27,86 @@ function te(e, t) {
|
|
|
27
27
|
var ne = Symbol(""), re = /* @__PURE__ */ function(e) {
|
|
28
28
|
return e[e.aborted = 4] = "aborted", e[e.cancelled = 8] = "cancelled", e[e.duplicated = 16] = "duplicated", e;
|
|
29
29
|
}({});
|
|
30
|
-
function
|
|
31
|
-
return
|
|
30
|
+
function C(e, t) {
|
|
31
|
+
return y(/* @__PURE__ */ Error(), {
|
|
32
32
|
type: e,
|
|
33
33
|
[ne]: !0
|
|
34
34
|
}, t);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function w(e, t) {
|
|
37
37
|
return e instanceof Error && ne in e && (t == null || !!(e.type & t));
|
|
38
38
|
}
|
|
39
|
-
var
|
|
40
|
-
function
|
|
41
|
-
return
|
|
39
|
+
var T = Symbol(""), E = Symbol(""), D = Symbol(""), O = Symbol(""), k = Symbol(""), ie = Symbol("");
|
|
40
|
+
function A() {
|
|
41
|
+
return r(D);
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
return
|
|
43
|
+
function ae(e) {
|
|
44
|
+
return r(O);
|
|
45
45
|
}
|
|
46
46
|
//#endregion
|
|
47
|
-
//#region node_modules/.pnpm/vue-router@5.
|
|
48
|
-
var j = typeof document < "u", M = /#/g,
|
|
49
|
-
function B(e) {
|
|
50
|
-
return e == null ? "" : encodeURI("" + e).replace(L, "|").replace(se, "[").replace(ce, "]");
|
|
51
|
-
}
|
|
52
|
-
function ue(e) {
|
|
53
|
-
return B(e).replace(le, "{").replace(R, "}").replace(F, "^");
|
|
54
|
-
}
|
|
47
|
+
//#region node_modules/.pnpm/vue-router@5.4.0_@vue+compiler-sfc@3.5.43_esbuild@0.28.2_pinia@4.0.3_@vue+devtools-api@_b7a56666e9b50cf7fc57e11846542a2a/node_modules/vue-router/dist/devtools-CxgSYwGp.js
|
|
48
|
+
var j = typeof document < "u", M = /#/g, N = /&/g, oe = /\//g, P = /=/g, se = /\?/g, F = /\+/g, ce = /%5B/g, I = /%5D/g, le = /%5E/g, L = /%60/g, R = /%7B/g, z = /%7C/g, B = /%7D/g, ue = /%20/g;
|
|
55
49
|
function V(e) {
|
|
56
|
-
return
|
|
50
|
+
return e == null ? "" : encodeURI("" + e).replace(z, "|").replace(ce, "[").replace(I, "]");
|
|
51
|
+
}
|
|
52
|
+
function de(e) {
|
|
53
|
+
return V(e).replace(R, "{").replace(B, "}").replace(le, "^");
|
|
57
54
|
}
|
|
58
55
|
function H(e) {
|
|
59
|
-
return V(e).replace(N, "%
|
|
56
|
+
return V(e).replace(F, "%2B").replace(ue, "+").replace(M, "%23").replace(N, "%26").replace(L, "`").replace(R, "{").replace(B, "}").replace(le, "^");
|
|
60
57
|
}
|
|
61
|
-
function
|
|
62
|
-
return
|
|
58
|
+
function U(e) {
|
|
59
|
+
return H(e).replace(P, "%3D");
|
|
60
|
+
}
|
|
61
|
+
function W(e) {
|
|
62
|
+
return V(e).replace(M, "%23").replace(se, "%3F");
|
|
63
63
|
}
|
|
64
64
|
function fe(e) {
|
|
65
|
-
return
|
|
65
|
+
return W(e).replace(oe, "%2F");
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function G(e) {
|
|
68
68
|
if (e == null) return null;
|
|
69
69
|
try {
|
|
70
70
|
return decodeURIComponent("" + e);
|
|
71
71
|
} catch {}
|
|
72
72
|
return "" + e;
|
|
73
73
|
}
|
|
74
|
-
var
|
|
75
|
-
function
|
|
74
|
+
var K = /\/$/, q = (e) => e.replace(K, "");
|
|
75
|
+
function pe(e, t, n = "/") {
|
|
76
76
|
let r, i = {}, a = "", o = "", s = t.indexOf("#"), c = t.indexOf("?");
|
|
77
|
-
return c = s >= 0 && c > s ? -1 : c, c >= 0 && (r = t.slice(0, c), a = t.slice(c, s > 0 ? s : t.length), i = e(a.slice(1))), s >= 0 && (r ||= t.slice(0, s), o = t.slice(s, t.length)), r =
|
|
77
|
+
return c = s >= 0 && c > s ? -1 : c, c >= 0 && (r = t.slice(0, c), a = t.slice(c, s > 0 ? s : t.length), i = e(a.slice(1))), s >= 0 && (r ||= t.slice(0, s), o = t.slice(s, t.length)), r = ye(r ?? t, n), {
|
|
78
78
|
fullPath: r + a + o,
|
|
79
79
|
path: r,
|
|
80
80
|
query: i,
|
|
81
|
-
hash:
|
|
81
|
+
hash: G(o)
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function me(e, t) {
|
|
85
85
|
let n = t.query ? e(t.query) : "";
|
|
86
86
|
return t.path + (n && "?") + n + (t.hash || "");
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function J(e, t) {
|
|
89
89
|
return !t || !e.toLowerCase().startsWith(t.toLowerCase()) ? e : e.slice(t.length) || "/";
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function he(e, t, n) {
|
|
92
92
|
let r = t.matched.length - 1, i = n.matched.length - 1;
|
|
93
|
-
return r > -1 && r === i &&
|
|
93
|
+
return r > -1 && r === i && Y(t.matched[r], n.matched[i]) && ge(t.params, n.params) && e(t.query) === e(n.query) && t.hash === n.hash;
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function Y(e, t) {
|
|
96
96
|
return (e.aliasOf || e) === (t.aliasOf || t);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function ge(e, t) {
|
|
99
99
|
if (Object.keys(e).length !== Object.keys(t).length) return !1;
|
|
100
|
-
for (var n in e) if (!
|
|
100
|
+
for (var n in e) if (!_e(e[n], t[n])) return !1;
|
|
101
101
|
return !0;
|
|
102
102
|
}
|
|
103
|
-
function
|
|
104
|
-
return
|
|
103
|
+
function _e(e, t) {
|
|
104
|
+
return S(e) ? ve(e, t) : S(t) ? ve(t, e) : (e && e.valueOf()) === (t && t.valueOf());
|
|
105
105
|
}
|
|
106
|
-
function
|
|
107
|
-
return
|
|
106
|
+
function ve(e, t) {
|
|
107
|
+
return S(t) ? e.length === t.length && e.every((e, n) => e === t[n]) : e.length === 1 && e[0] === t;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function ye(e, t) {
|
|
110
110
|
if (g(e)) return e;
|
|
111
111
|
if (!e) return t;
|
|
112
112
|
let n = t.split("/"), r = e.split("/"), i = r[r.length - 1];
|
|
@@ -129,20 +129,20 @@ var X = {
|
|
|
129
129
|
meta: {},
|
|
130
130
|
redirectedFrom: void 0
|
|
131
131
|
};
|
|
132
|
-
function
|
|
132
|
+
function be(e) {
|
|
133
133
|
if (!e) {
|
|
134
134
|
if (j) {
|
|
135
135
|
let t = document.querySelector("base");
|
|
136
136
|
e = t && t.getAttribute("href") || "/", e = e.replace(/^\w+:\/\/[^/]+/, "");
|
|
137
137
|
} else e = "/";
|
|
138
138
|
}
|
|
139
|
-
return e[0] !== "/" && e[0] !== "#" && (e = "/" + e),
|
|
139
|
+
return e[0] !== "/" && e[0] !== "#" && (e = "/" + e), q(e);
|
|
140
140
|
}
|
|
141
|
-
var
|
|
142
|
-
function
|
|
143
|
-
return e.replace(
|
|
141
|
+
var xe = /^[^#]+#/;
|
|
142
|
+
function Se(e, t) {
|
|
143
|
+
return e.replace(xe, "#") + t;
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function Ce(e, t) {
|
|
146
146
|
let n = document.documentElement.getBoundingClientRect(), r = e.getBoundingClientRect();
|
|
147
147
|
return {
|
|
148
148
|
behavior: t.behavior,
|
|
@@ -150,72 +150,74 @@ function xe(e, t) {
|
|
|
150
150
|
top: r.top - n.top - (t.top || 0)
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
|
-
var
|
|
153
|
+
var we = () => history.scrollRestoration === "manual" ? {
|
|
154
154
|
left: window.scrollX,
|
|
155
155
|
top: window.scrollY
|
|
156
156
|
} : null;
|
|
157
|
-
function
|
|
157
|
+
function Te(e) {
|
|
158
158
|
let t;
|
|
159
159
|
if ("el" in e) {
|
|
160
160
|
let n = e.el, r = typeof n == "string" && n.startsWith("#"), i = typeof n == "string" ? r ? document.getElementById(n.slice(1)) : document.querySelector(n) : n;
|
|
161
161
|
if (!i) return;
|
|
162
|
-
t =
|
|
162
|
+
t = Ce(i, e);
|
|
163
163
|
} else t = e;
|
|
164
164
|
"scrollBehavior" in document.documentElement.style ? window.scrollTo(t) : window.scrollTo(t.left == null ? window.scrollX : t.left, t.top == null ? window.scrollY : t.top);
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function Ee(e, t) {
|
|
167
167
|
return (history.state ? history.state.position - t : -1) + e;
|
|
168
168
|
}
|
|
169
|
-
var
|
|
170
|
-
function Ee(e) {
|
|
171
|
-
Te.set(e, Se());
|
|
172
|
-
}
|
|
169
|
+
var Z = /* @__PURE__ */ new Map();
|
|
173
170
|
function De(e) {
|
|
174
|
-
|
|
175
|
-
return Te.delete(e), t;
|
|
171
|
+
Z.set(e, we());
|
|
176
172
|
}
|
|
177
173
|
function Oe(e) {
|
|
174
|
+
let t = Z.get(e);
|
|
175
|
+
return Z.delete(e), t;
|
|
176
|
+
}
|
|
177
|
+
function ke(e, t = !1) {
|
|
178
|
+
for (let n of Z.keys()) {
|
|
179
|
+
let r = parseInt(n, 10);
|
|
180
|
+
(r === e || !t && r > e) && Z.delete(n);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
function Ae(e) {
|
|
178
184
|
return typeof e == "string" || e && typeof e == "object";
|
|
179
185
|
}
|
|
180
|
-
function
|
|
186
|
+
function je(e) {
|
|
181
187
|
return typeof e == "string" || typeof e == "symbol";
|
|
182
188
|
}
|
|
183
|
-
function
|
|
189
|
+
function Me(e) {
|
|
184
190
|
let t = {};
|
|
185
191
|
if (e === "" || e === "?") return t;
|
|
186
192
|
let n = (e[0] === "?" ? e.slice(1) : e).split("&");
|
|
187
193
|
for (let e = 0; e < n.length; ++e) {
|
|
188
|
-
let r = n[e].replace(
|
|
194
|
+
let r = n[e].replace(F, " "), i = r.indexOf("="), a = G(i < 0 ? r : r.slice(0, i)), o = i < 0 ? null : G(r.slice(i + 1));
|
|
189
195
|
if (a in t) {
|
|
190
196
|
let e = t[a];
|
|
191
|
-
|
|
197
|
+
S(e) || (e = t[a] = [e]), e.push(o);
|
|
192
198
|
} else t[a] = o;
|
|
193
199
|
}
|
|
194
200
|
return t;
|
|
195
201
|
}
|
|
196
|
-
function
|
|
202
|
+
function Ne(e) {
|
|
197
203
|
let t = "";
|
|
198
204
|
for (let n in e) {
|
|
199
205
|
let r = e[n];
|
|
200
|
-
|
|
201
|
-
r !== void 0 && (t += (t.length ? "&" : "") + n);
|
|
202
|
-
continue;
|
|
203
|
-
}
|
|
204
|
-
(x(r) ? r.map((e) => e && V(e)) : [r && V(r)]).forEach((e) => {
|
|
206
|
+
n = U(n), r == null ? r !== void 0 && (t += (t.length ? "&" : "") + n) : (S(r) ? r.map((e) => e && H(e)) : [r && H(r)]).forEach((e) => {
|
|
205
207
|
e !== void 0 && (t += (t.length ? "&" : "") + n, e != null && (t += "=" + e));
|
|
206
208
|
});
|
|
207
209
|
}
|
|
208
210
|
return t;
|
|
209
211
|
}
|
|
210
|
-
function
|
|
212
|
+
function Pe(e) {
|
|
211
213
|
let t = {};
|
|
212
214
|
for (let n in e) {
|
|
213
215
|
let r = e[n];
|
|
214
|
-
r !== void 0 && (t[n] =
|
|
216
|
+
r !== void 0 && (t[n] = S(r) ? r.map((e) => e == null ? null : "" + e) : r == null ? r : "" + r);
|
|
215
217
|
}
|
|
216
218
|
return t;
|
|
217
219
|
}
|
|
218
|
-
function
|
|
220
|
+
function Q() {
|
|
219
221
|
let e = [];
|
|
220
222
|
function t(t) {
|
|
221
223
|
return e.push(t), () => {
|
|
@@ -232,31 +234,31 @@ function Z() {
|
|
|
232
234
|
reset: n
|
|
233
235
|
};
|
|
234
236
|
}
|
|
235
|
-
function
|
|
237
|
+
function Fe(e, n, r) {
|
|
236
238
|
let o = e.value;
|
|
237
239
|
if (!o) return;
|
|
238
240
|
let s = o, c = () => {
|
|
239
|
-
s[n].delete(
|
|
241
|
+
s[n].delete(r);
|
|
240
242
|
};
|
|
241
|
-
|
|
243
|
+
i(c), a(c), t(() => {
|
|
242
244
|
let t = e.value;
|
|
243
|
-
t && (s = t), s[n].add(
|
|
244
|
-
}), s[n].add(
|
|
245
|
+
t && (s = t), s[n].add(r);
|
|
246
|
+
}), s[n].add(r);
|
|
245
247
|
}
|
|
246
|
-
function
|
|
247
|
-
|
|
248
|
+
function Ie(e) {
|
|
249
|
+
Fe(r(T, {}), "leaveGuards", e);
|
|
248
250
|
}
|
|
249
|
-
function
|
|
250
|
-
|
|
251
|
+
function Le(e) {
|
|
252
|
+
Fe(r(T, {}), "updateGuards", e);
|
|
251
253
|
}
|
|
252
|
-
function
|
|
254
|
+
function $(e, t, n, r, i, a = (e) => e()) {
|
|
253
255
|
let o = r && (r.enterCallbacks[i] = r.enterCallbacks[i] || []);
|
|
254
256
|
return () => new Promise((s, c) => {
|
|
255
257
|
let l = (e) => {
|
|
256
|
-
e === !1 ? c(
|
|
258
|
+
e === !1 ? c(C(4, {
|
|
257
259
|
from: n,
|
|
258
260
|
to: t
|
|
259
|
-
})) : e instanceof Error ? c(e) :
|
|
261
|
+
})) : e instanceof Error ? c(e) : Ae(e) ? c(C(2, {
|
|
260
262
|
from: t,
|
|
261
263
|
to: e
|
|
262
264
|
})) : (o && r.enterCallbacks[i] === o && typeof e == "function" && o.push(e), s());
|
|
@@ -264,45 +266,45 @@ function Q(e, t, n, r, i, a = (e) => e()) {
|
|
|
264
266
|
e.length < 3 && (d = d.then(l)), d.catch((e) => c(e));
|
|
265
267
|
});
|
|
266
268
|
}
|
|
267
|
-
function
|
|
269
|
+
function Re(e, t, n, r, i = (e) => e()) {
|
|
268
270
|
let a = [];
|
|
269
271
|
for (let o of e) for (let e in o.components) {
|
|
270
272
|
let s = o.components[e];
|
|
271
273
|
if (t === "beforeRouteEnter" || o.instances[e]) {
|
|
272
274
|
if (_(s)) {
|
|
273
275
|
let c = (s.__vccOpts || s)[t];
|
|
274
|
-
c && a.push(
|
|
276
|
+
c && a.push($(c, n, r, o, e, i));
|
|
275
277
|
} else {
|
|
276
278
|
let c = s();
|
|
277
279
|
a.push(() => c.then((a) => {
|
|
278
280
|
if (!a) throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);
|
|
279
|
-
let s =
|
|
281
|
+
let s = v(a) ? a.default : a;
|
|
280
282
|
o.mods[e] = a, o.components[e] = s;
|
|
281
283
|
let c = (s.__vccOpts || s)[t];
|
|
282
|
-
return c &&
|
|
284
|
+
return c && $(c, n, r, o, e, i)();
|
|
283
285
|
}));
|
|
284
286
|
}
|
|
285
287
|
}
|
|
286
288
|
}
|
|
287
289
|
return a;
|
|
288
290
|
}
|
|
289
|
-
function
|
|
291
|
+
function ze(e) {
|
|
290
292
|
return e.matched.every((e) => e.redirect) ? Promise.reject(/* @__PURE__ */ Error("Cannot load a route that redirects.")) : Promise.all(e.matched.map((e) => e.components && Promise.all(Object.keys(e.components).reduce((t, n) => {
|
|
291
293
|
let r = e.components[n];
|
|
292
294
|
return typeof r == "function" && !("displayName" in r) && t.push(r().then((t) => {
|
|
293
295
|
if (!t) return Promise.reject(/* @__PURE__ */ Error(`Couldn't resolve component "${n}" at "${e.path}". Ensure you passed a function that returns a promise.`));
|
|
294
|
-
let r =
|
|
296
|
+
let r = v(t) ? t.default : t;
|
|
295
297
|
e.mods[n] = t, e.components[n] = r;
|
|
296
298
|
})), t;
|
|
297
299
|
}, [])))).then(() => e);
|
|
298
300
|
}
|
|
299
|
-
function
|
|
301
|
+
function Be(e, t) {
|
|
300
302
|
let n = [], r = [], i = [], a = Math.max(t.matched.length, e.matched.length);
|
|
301
303
|
for (let o = 0; o < a; o++) {
|
|
302
304
|
let a = t.matched[o];
|
|
303
|
-
a && (e.matched.find((e) =>
|
|
305
|
+
a && (e.matched.find((e) => Y(e, a)) ? r.push(a) : n.push(a));
|
|
304
306
|
let s = e.matched[o];
|
|
305
|
-
s && (t.matched.find((e) =>
|
|
307
|
+
s && (t.matched.find((e) => Y(e, s)) || i.push(s));
|
|
306
308
|
}
|
|
307
309
|
return [
|
|
308
310
|
n,
|
|
@@ -311,43 +313,43 @@ function Re(e, t) {
|
|
|
311
313
|
];
|
|
312
314
|
}
|
|
313
315
|
//#endregion
|
|
314
|
-
//#region node_modules/.pnpm/vue-router@5.
|
|
315
|
-
var
|
|
316
|
+
//#region node_modules/.pnpm/vue-router@5.4.0_@vue+compiler-sfc@3.5.43_esbuild@0.28.2_pinia@4.0.3_@vue+devtools-api@_b7a56666e9b50cf7fc57e11846542a2a/node_modules/vue-router/dist/vue-router.js
|
|
317
|
+
var Ve = /* @__PURE__ */ e({
|
|
316
318
|
NavigationFailureType: () => re,
|
|
317
|
-
RouterLink: () =>
|
|
318
|
-
RouterView: () =>
|
|
319
|
+
RouterLink: () => yt,
|
|
320
|
+
RouterView: () => Et,
|
|
319
321
|
START_LOCATION: () => X,
|
|
320
|
-
createMemoryHistory: () =>
|
|
321
|
-
createRouter: () =>
|
|
322
|
-
createRouterMatcher: () =>
|
|
323
|
-
createWebHashHistory: () =>
|
|
324
|
-
createWebHistory: () =>
|
|
325
|
-
isNavigationFailure: () =>
|
|
326
|
-
loadRouteLocation: () =>
|
|
327
|
-
matchedRouteKey: () =>
|
|
328
|
-
onBeforeRouteLeave: () =>
|
|
329
|
-
onBeforeRouteUpdate: () =>
|
|
330
|
-
parseQuery: () =>
|
|
331
|
-
routeLocationKey: () =>
|
|
332
|
-
routerKey: () =>
|
|
333
|
-
routerViewLocationKey: () =>
|
|
334
|
-
stringifyQuery: () =>
|
|
335
|
-
useLink: () =>
|
|
336
|
-
useRoute: () =>
|
|
337
|
-
useRouter: () =>
|
|
338
|
-
viewDepthKey: () =>
|
|
339
|
-
}),
|
|
340
|
-
function
|
|
322
|
+
createMemoryHistory: () => Ye,
|
|
323
|
+
createRouter: () => Dt,
|
|
324
|
+
createRouterMatcher: () => ct,
|
|
325
|
+
createWebHashHistory: () => Je,
|
|
326
|
+
createWebHistory: () => qe,
|
|
327
|
+
isNavigationFailure: () => w,
|
|
328
|
+
loadRouteLocation: () => ze,
|
|
329
|
+
matchedRouteKey: () => T,
|
|
330
|
+
onBeforeRouteLeave: () => Ie,
|
|
331
|
+
onBeforeRouteUpdate: () => Le,
|
|
332
|
+
parseQuery: () => Me,
|
|
333
|
+
routeLocationKey: () => O,
|
|
334
|
+
routerKey: () => D,
|
|
335
|
+
routerViewLocationKey: () => k,
|
|
336
|
+
stringifyQuery: () => Ne,
|
|
337
|
+
useLink: () => _t,
|
|
338
|
+
useRoute: () => ae,
|
|
339
|
+
useRouter: () => A,
|
|
340
|
+
viewDepthKey: () => E
|
|
341
|
+
}), He = () => location.protocol + "//" + location.host;
|
|
342
|
+
function Ue(e, t) {
|
|
341
343
|
let { pathname: n, search: r, hash: i } = t, a = e.indexOf("#");
|
|
342
344
|
if (a > -1) {
|
|
343
345
|
let t = i.includes(e.slice(a)) ? e.slice(a).length : 1, n = i.slice(t);
|
|
344
|
-
return n[0] !== "/" && (n = "/" + n),
|
|
346
|
+
return n[0] !== "/" && (n = "/" + n), J(n, "");
|
|
345
347
|
}
|
|
346
|
-
return
|
|
348
|
+
return J(n, e) + r + i;
|
|
347
349
|
}
|
|
348
|
-
function
|
|
350
|
+
function We(e, t, n, r) {
|
|
349
351
|
let i = [], a = [], o = null, s = ({ state: a }) => {
|
|
350
|
-
let s =
|
|
352
|
+
let s = Ue(e, location), c = n.value, l = t.value, u = 0;
|
|
351
353
|
if (a) {
|
|
352
354
|
if (n.value = s, t.value = a, o && o === c) {
|
|
353
355
|
o = null;
|
|
@@ -376,7 +378,7 @@ function He(e, t, n, r) {
|
|
|
376
378
|
}
|
|
377
379
|
function u() {
|
|
378
380
|
let { history: e } = window;
|
|
379
|
-
e.state && e.replaceState(
|
|
381
|
+
e.state && e.replaceState(y({}, e.state, { scroll: we() }), "");
|
|
380
382
|
}
|
|
381
383
|
function d() {
|
|
382
384
|
for (let e of a) e();
|
|
@@ -388,7 +390,7 @@ function He(e, t, n, r) {
|
|
|
388
390
|
destroy: d
|
|
389
391
|
};
|
|
390
392
|
}
|
|
391
|
-
function
|
|
393
|
+
function Ge(e, t, n, r = !1) {
|
|
392
394
|
return {
|
|
393
395
|
back: e,
|
|
394
396
|
current: t,
|
|
@@ -398,8 +400,8 @@ function Ue(e, t, n, r = !1) {
|
|
|
398
400
|
scroll: null
|
|
399
401
|
};
|
|
400
402
|
}
|
|
401
|
-
function
|
|
402
|
-
let { history: t, location: n } = window, r = { value:
|
|
403
|
+
function Ke(e) {
|
|
404
|
+
let { history: t, location: n } = window, r = { value: Ue(e, n) }, i = { value: t.state };
|
|
403
405
|
i.value || a(r.value, {
|
|
404
406
|
back: null,
|
|
405
407
|
current: r.value,
|
|
@@ -409,7 +411,7 @@ function We(e) {
|
|
|
409
411
|
scroll: null
|
|
410
412
|
}, !0);
|
|
411
413
|
function a(r, a, o) {
|
|
412
|
-
let s = e.indexOf("#"), c = s > -1 ? (n.host && document.querySelector("base") ? e : e.slice(s)) + r :
|
|
414
|
+
let s = e.indexOf("#"), c = s > -1 ? (n.host && document.querySelector("base") ? e : e.slice(s)) + r : He() + e + r;
|
|
413
415
|
try {
|
|
414
416
|
t[o ? "replaceState" : "pushState"](a, "", c), i.value = a;
|
|
415
417
|
} catch (e) {
|
|
@@ -417,14 +419,15 @@ function We(e) {
|
|
|
417
419
|
}
|
|
418
420
|
}
|
|
419
421
|
function o(e, n) {
|
|
420
|
-
|
|
422
|
+
let o = y({}, t.state, Ge(i.value.back, e, i.value.forward, !0), n, { position: i.value.position });
|
|
423
|
+
a(e, o, !0), ke(o.position, !0), r.value = e;
|
|
421
424
|
}
|
|
422
425
|
function s(e, n) {
|
|
423
|
-
let o =
|
|
426
|
+
let o = y({}, i.value, t.state, {
|
|
424
427
|
forward: e,
|
|
425
|
-
scroll:
|
|
428
|
+
scroll: we()
|
|
426
429
|
});
|
|
427
|
-
a(o.current, o, !0), a(e,
|
|
430
|
+
a(o.current, o, !0), a(e, y({}, Ge(r.value, e, null), { position: o.position + 1 }, n), !1), ke(o.position), r.value = e;
|
|
428
431
|
}
|
|
429
432
|
return {
|
|
430
433
|
location: r,
|
|
@@ -433,17 +436,17 @@ function We(e) {
|
|
|
433
436
|
replace: o
|
|
434
437
|
};
|
|
435
438
|
}
|
|
436
|
-
function
|
|
437
|
-
e =
|
|
438
|
-
let t =
|
|
439
|
+
function qe(e) {
|
|
440
|
+
e = be(e);
|
|
441
|
+
let t = Ke(e), n = We(e, t.state, t.location, t.replace);
|
|
439
442
|
function r(e, t = !0) {
|
|
440
443
|
t || n.pauseListeners(), history.go(e);
|
|
441
444
|
}
|
|
442
|
-
let i =
|
|
445
|
+
let i = y({
|
|
443
446
|
location: "",
|
|
444
447
|
base: e,
|
|
445
448
|
go: r,
|
|
446
|
-
createHref:
|
|
449
|
+
createHref: Se.bind(null, e)
|
|
447
450
|
}, t, n);
|
|
448
451
|
return Object.defineProperty(i, "location", {
|
|
449
452
|
enumerable: !0,
|
|
@@ -453,12 +456,12 @@ function Ge(e) {
|
|
|
453
456
|
get: () => t.state.value
|
|
454
457
|
}), i;
|
|
455
458
|
}
|
|
456
|
-
function
|
|
457
|
-
return e = location.host ? e || location.pathname + location.search : "", e.includes("#") || (e += "#"),
|
|
459
|
+
function Je(e) {
|
|
460
|
+
return e = location.host ? e || location.pathname + location.search : "", e.includes("#") || (e += "#"), qe(e);
|
|
458
461
|
}
|
|
459
|
-
function
|
|
462
|
+
function Ye(e = "") {
|
|
460
463
|
let t = [], n = [["", {}]], r = 0;
|
|
461
|
-
e =
|
|
464
|
+
e = be(e);
|
|
462
465
|
function i(e, t = {}) {
|
|
463
466
|
r++, r !== n.length && n.splice(r), n.push([e, t]);
|
|
464
467
|
}
|
|
@@ -474,7 +477,7 @@ function qe(e = "") {
|
|
|
474
477
|
location: "",
|
|
475
478
|
state: {},
|
|
476
479
|
base: e,
|
|
477
|
-
createHref:
|
|
480
|
+
createHref: Se.bind(null, e),
|
|
478
481
|
replace(e, t) {
|
|
479
482
|
n.splice(r--, 1), i(e, t);
|
|
480
483
|
},
|
|
@@ -506,13 +509,13 @@ function qe(e = "") {
|
|
|
506
509
|
get: () => n[r][1]
|
|
507
510
|
}), o;
|
|
508
511
|
}
|
|
509
|
-
var
|
|
512
|
+
var Xe = {
|
|
510
513
|
type: 0,
|
|
511
514
|
value: ""
|
|
512
|
-
},
|
|
513
|
-
function
|
|
515
|
+
}, Ze = /[a-zA-Z0-9_]/;
|
|
516
|
+
function Qe(e) {
|
|
514
517
|
if (!e) return [[]];
|
|
515
|
-
if (e === "/") return [[
|
|
518
|
+
if (e === "/") return [[Xe]];
|
|
516
519
|
if (!g(e)) throw Error(`Invalid path "${e}"`);
|
|
517
520
|
function t(e) {
|
|
518
521
|
throw Error(`ERR (${n})/"${l}": ${e}`);
|
|
@@ -545,7 +548,7 @@ function Xe(e) {
|
|
|
545
548
|
f(), n = r;
|
|
546
549
|
break;
|
|
547
550
|
case 1:
|
|
548
|
-
c === "(" ? n = 2 :
|
|
551
|
+
c === "(" ? n = 2 : Ze.test(c) ? f() : (d(), n = 0, c !== "*" && c !== "?" && c !== "+" && s--);
|
|
549
552
|
break;
|
|
550
553
|
case 2:
|
|
551
554
|
c === ")" ? u[u.length - 1] == "\\" ? u = u.slice(0, -1) + c : n = 3 : u += c;
|
|
@@ -557,20 +560,20 @@ function Xe(e) {
|
|
|
557
560
|
}
|
|
558
561
|
return n === 2 && t(`Unfinished custom RegExp for param "${l}"`), d(), o(), i;
|
|
559
562
|
}
|
|
560
|
-
var
|
|
563
|
+
var $e = "[^/]+?", et = {
|
|
561
564
|
sensitive: !1,
|
|
562
565
|
strict: !1,
|
|
563
566
|
start: !0,
|
|
564
567
|
end: !0
|
|
565
|
-
},
|
|
566
|
-
function
|
|
567
|
-
let n =
|
|
568
|
+
}, tt = /[.+*?^${}()[\]/\\]/g;
|
|
569
|
+
function nt(e, t) {
|
|
570
|
+
let n = y({}, et, t), r = [], i = n.start ? "^" : "", a = [];
|
|
568
571
|
for (let t of e) {
|
|
569
572
|
let e = t.length ? [] : [90];
|
|
570
573
|
n.strict && !t.length && (i += "/");
|
|
571
574
|
for (let r = 0; r < t.length; r++) {
|
|
572
575
|
let o = t[r], s = 40 + (n.sensitive ? .25 : 0);
|
|
573
|
-
if (o.type === 0) r || (i += "/"), i += o.value.replace(
|
|
576
|
+
if (o.type === 0) r || (i += "/"), i += o.value.replace(tt, "\\$&"), s += 40;
|
|
574
577
|
else if (o.type === 1) {
|
|
575
578
|
let { value: e, repeatable: n, optional: c, regexp: l } = o;
|
|
576
579
|
a.push({
|
|
@@ -578,8 +581,8 @@ function et(e, t) {
|
|
|
578
581
|
repeatable: n,
|
|
579
582
|
optional: c
|
|
580
583
|
});
|
|
581
|
-
let u = l ||
|
|
582
|
-
if (u !==
|
|
584
|
+
let u = l || $e;
|
|
585
|
+
if (u !== $e) {
|
|
583
586
|
s += 10;
|
|
584
587
|
try {
|
|
585
588
|
RegExp(`(${u})`);
|
|
@@ -616,8 +619,8 @@ function et(e, t) {
|
|
|
616
619
|
for (let e of i) if (e.type === 0) n += e.value;
|
|
617
620
|
else if (e.type === 1) {
|
|
618
621
|
let { value: a, repeatable: o, optional: s } = e, c = a in t ? t[a] : "";
|
|
619
|
-
if (
|
|
620
|
-
let l =
|
|
622
|
+
if (S(c) && !o) throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);
|
|
623
|
+
let l = S(c) ? c.join("/") : c;
|
|
621
624
|
if (!l) {
|
|
622
625
|
if (s) i.length < 2 && (n.endsWith("/") ? n = n.slice(0, -1) : r = !0);
|
|
623
626
|
else throw Error(`Missing required param "${a}"`);
|
|
@@ -635,7 +638,7 @@ function et(e, t) {
|
|
|
635
638
|
stringify: c
|
|
636
639
|
};
|
|
637
640
|
}
|
|
638
|
-
function
|
|
641
|
+
function rt(e, t) {
|
|
639
642
|
let n = 0;
|
|
640
643
|
for (; n < e.length && n < t.length;) {
|
|
641
644
|
let r = t[n] - e[n];
|
|
@@ -644,30 +647,30 @@ function tt(e, t) {
|
|
|
644
647
|
}
|
|
645
648
|
return e.length < t.length ? e.length === 1 && e[0] === 80 ? -1 : 1 : e.length > t.length ? t.length === 1 && t[0] === 80 ? 1 : -1 : 0;
|
|
646
649
|
}
|
|
647
|
-
function
|
|
650
|
+
function it(e, t) {
|
|
648
651
|
let n = 0, r = e.score, i = t.score;
|
|
649
652
|
for (; n < r.length && n < i.length;) {
|
|
650
|
-
let e =
|
|
653
|
+
let e = rt(r[n], i[n]);
|
|
651
654
|
if (e) return e;
|
|
652
655
|
n++;
|
|
653
656
|
}
|
|
654
657
|
if (Math.abs(i.length - r.length) === 1) {
|
|
655
|
-
if (
|
|
656
|
-
if (
|
|
658
|
+
if (at(r)) return 1;
|
|
659
|
+
if (at(i)) return -1;
|
|
657
660
|
}
|
|
658
661
|
return i.length - r.length;
|
|
659
662
|
}
|
|
660
|
-
function
|
|
663
|
+
function at(e) {
|
|
661
664
|
let t = e[e.length - 1];
|
|
662
665
|
return e.length > 0 && t[t.length - 1] < 0;
|
|
663
666
|
}
|
|
664
|
-
var
|
|
667
|
+
var ot = {
|
|
665
668
|
strict: !1,
|
|
666
669
|
end: !0,
|
|
667
670
|
sensitive: !1
|
|
668
671
|
};
|
|
669
|
-
function
|
|
670
|
-
let r =
|
|
672
|
+
function st(e, t, n) {
|
|
673
|
+
let r = y(nt(Qe(e.path), n), {
|
|
671
674
|
record: e,
|
|
672
675
|
parent: t,
|
|
673
676
|
children: [],
|
|
@@ -675,19 +678,19 @@ function at(e, t, n) {
|
|
|
675
678
|
});
|
|
676
679
|
return t && !r.record.aliasOf == !t.record.aliasOf && t.children.push(r), r;
|
|
677
680
|
}
|
|
678
|
-
function
|
|
681
|
+
function ct(e, t) {
|
|
679
682
|
let n = [], r = /* @__PURE__ */ new Map();
|
|
680
|
-
t = te(
|
|
683
|
+
t = te(ot, t);
|
|
681
684
|
function i(e) {
|
|
682
685
|
return r.get(e);
|
|
683
686
|
}
|
|
684
687
|
function a(e, n, r) {
|
|
685
|
-
let i = !r, s =
|
|
688
|
+
let i = !r, s = ut(e);
|
|
686
689
|
s.aliasOf = r && r.record;
|
|
687
690
|
let l = te(t, e), u = [s];
|
|
688
691
|
if ("alias" in e) {
|
|
689
692
|
let t = typeof e.alias == "string" ? [e.alias] : e.alias;
|
|
690
|
-
for (let e of t) u.push(
|
|
693
|
+
for (let e of t) u.push(ut(y({}, s, {
|
|
691
694
|
components: r ? r.record.components : s.components,
|
|
692
695
|
path: e,
|
|
693
696
|
aliasOf: r ? r.record : s
|
|
@@ -700,7 +703,7 @@ function $(e, t) {
|
|
|
700
703
|
let e = n.record.path, r = e[e.length - 1] === "/" ? "" : "/";
|
|
701
704
|
t.path = n.record.path + (u && r + u);
|
|
702
705
|
}
|
|
703
|
-
if (d =
|
|
706
|
+
if (d = st(t, n, l), r ? r.alias.push(d) : (f ||= d, f !== d && f.alias.push(d), i && e.name && !ft(d) && o(e.name)), gt(d) && c(d), s.children) {
|
|
704
707
|
let e = s.children;
|
|
705
708
|
for (let t = 0; t < e.length; t++) a(e[t], d, r && r.children[t]);
|
|
706
709
|
}
|
|
@@ -708,10 +711,10 @@ function $(e, t) {
|
|
|
708
711
|
}
|
|
709
712
|
return f ? () => {
|
|
710
713
|
o(f);
|
|
711
|
-
} :
|
|
714
|
+
} : x;
|
|
712
715
|
}
|
|
713
716
|
function o(e) {
|
|
714
|
-
if (
|
|
717
|
+
if (je(e)) {
|
|
715
718
|
let t = r.get(e);
|
|
716
719
|
t && (r.delete(e), n.splice(n.indexOf(t), 1), t.children.forEach(o), t.alias.forEach(o));
|
|
717
720
|
} else {
|
|
@@ -723,23 +726,23 @@ function $(e, t) {
|
|
|
723
726
|
return n;
|
|
724
727
|
}
|
|
725
728
|
function c(e) {
|
|
726
|
-
let t =
|
|
727
|
-
n.splice(t, 0, e), e.record.name && !
|
|
729
|
+
let t = mt(e, n);
|
|
730
|
+
n.splice(t, 0, e), e.record.name && !ft(e) && r.set(e.record.name, e);
|
|
728
731
|
}
|
|
729
732
|
function l(e, t) {
|
|
730
733
|
let i, a = {}, o, s;
|
|
731
734
|
if ("name" in e && e.name) {
|
|
732
|
-
if (i = r.get(e.name), !i) throw
|
|
733
|
-
s = i.record.name, a =
|
|
735
|
+
if (i = r.get(e.name), !i) throw C(1, { location: e });
|
|
736
|
+
s = i.record.name, a = y(lt(t.params, i.keys.filter((e) => !e.optional).concat(i.parent ? i.parent.keys.filter((e) => e.optional) : []).map((e) => e.name)), e.params && lt(e.params, i.keys.map((e) => e.name))), o = i.stringify(a);
|
|
734
737
|
} else if (e.path != null) o = e.path, i = n.find((e) => e.re.test(o)), i && (a = i.parse(o), s = i.record.name, i.keys.forEach((e) => {
|
|
735
738
|
e.optional && !a[e.name] && delete a[e.name];
|
|
736
739
|
}));
|
|
737
740
|
else {
|
|
738
|
-
if (i = t.name ? r.get(t.name) : n.find((e) => e.re.test(t.path)), !i) throw
|
|
741
|
+
if (i = t.name ? r.get(t.name) : n.find((e) => e.re.test(t.path)), !i) throw C(1, {
|
|
739
742
|
location: e,
|
|
740
743
|
currentLocation: t
|
|
741
744
|
});
|
|
742
|
-
s = i.record.name, a =
|
|
745
|
+
s = i.record.name, a = y({}, t.params, e.params), o = i.stringify(a);
|
|
743
746
|
}
|
|
744
747
|
let c = [], l = i;
|
|
745
748
|
for (; l;) c.unshift(l.record), l = l.parent;
|
|
@@ -748,7 +751,7 @@ function $(e, t) {
|
|
|
748
751
|
path: o,
|
|
749
752
|
params: a,
|
|
750
753
|
matched: c,
|
|
751
|
-
meta:
|
|
754
|
+
meta: pt(c)
|
|
752
755
|
};
|
|
753
756
|
}
|
|
754
757
|
e.forEach((e) => a(e));
|
|
@@ -764,12 +767,12 @@ function $(e, t) {
|
|
|
764
767
|
getRecordMatcher: i
|
|
765
768
|
};
|
|
766
769
|
}
|
|
767
|
-
function
|
|
770
|
+
function lt(e, t) {
|
|
768
771
|
let n = {};
|
|
769
772
|
for (let r of t) r in e && (n[r] = e[r]);
|
|
770
773
|
return n;
|
|
771
774
|
}
|
|
772
|
-
function
|
|
775
|
+
function ut(e) {
|
|
773
776
|
let t = {
|
|
774
777
|
path: e.path,
|
|
775
778
|
redirect: e.redirect,
|
|
@@ -777,7 +780,7 @@ function st(e) {
|
|
|
777
780
|
meta: e.meta || {},
|
|
778
781
|
aliasOf: e.aliasOf,
|
|
779
782
|
beforeEnter: e.beforeEnter,
|
|
780
|
-
props:
|
|
783
|
+
props: dt(e),
|
|
781
784
|
children: e.children || [],
|
|
782
785
|
instances: {},
|
|
783
786
|
leaveGuards: /* @__PURE__ */ new Set(),
|
|
@@ -787,69 +790,69 @@ function st(e) {
|
|
|
787
790
|
};
|
|
788
791
|
return Object.defineProperty(t, "mods", { value: {} }), t;
|
|
789
792
|
}
|
|
790
|
-
function
|
|
793
|
+
function dt(e) {
|
|
791
794
|
let t = {}, n = e.props || !1;
|
|
792
795
|
if ("component" in e) t.default = n;
|
|
793
796
|
else for (let r in e.components) t[r] = typeof n == "object" ? n[r] : n;
|
|
794
797
|
return t;
|
|
795
798
|
}
|
|
796
|
-
function
|
|
799
|
+
function ft(e) {
|
|
797
800
|
for (; e;) {
|
|
798
801
|
if (e.record.aliasOf) return !0;
|
|
799
802
|
e = e.parent;
|
|
800
803
|
}
|
|
801
804
|
return !1;
|
|
802
805
|
}
|
|
803
|
-
function
|
|
804
|
-
return e.reduce((e, t) =>
|
|
806
|
+
function pt(e) {
|
|
807
|
+
return e.reduce((e, t) => y(e, t.meta), {});
|
|
805
808
|
}
|
|
806
|
-
function
|
|
809
|
+
function mt(e, t) {
|
|
807
810
|
let n = 0, r = t.length;
|
|
808
811
|
for (; n !== r;) {
|
|
809
812
|
let i = n + r >> 1;
|
|
810
|
-
|
|
813
|
+
it(e, t[i]) < 0 ? r = i : n = i + 1;
|
|
811
814
|
}
|
|
812
|
-
let i =
|
|
815
|
+
let i = ht(e);
|
|
813
816
|
return i && (r = t.lastIndexOf(i, r - 1)), r;
|
|
814
817
|
}
|
|
815
|
-
function
|
|
818
|
+
function ht(e) {
|
|
816
819
|
let t = e;
|
|
817
|
-
for (; t = t.parent;) if (
|
|
820
|
+
for (; t = t.parent;) if (gt(t) && it(e, t) === 0) return t;
|
|
818
821
|
}
|
|
819
|
-
function
|
|
822
|
+
function gt({ record: e }) {
|
|
820
823
|
return !!(e.name || e.components && Object.keys(e.components).length || e.redirect);
|
|
821
824
|
}
|
|
822
|
-
function
|
|
823
|
-
let t =
|
|
824
|
-
let n =
|
|
825
|
+
function _t(e) {
|
|
826
|
+
let t = r(D), n = r(O), i = l(() => {
|
|
827
|
+
let n = c(e.to);
|
|
825
828
|
return t.resolve(n);
|
|
826
|
-
}), a =
|
|
827
|
-
let { matched: e } = i.value, { length: t } = e,
|
|
828
|
-
if (!
|
|
829
|
-
let o = a.findIndex(
|
|
829
|
+
}), a = l(() => {
|
|
830
|
+
let { matched: e } = i.value, { length: t } = e, r = e[t - 1], a = n.matched;
|
|
831
|
+
if (!r || !a.length) return -1;
|
|
832
|
+
let o = a.findIndex(Y.bind(null, r));
|
|
830
833
|
if (o > -1) return o;
|
|
831
|
-
let s =
|
|
832
|
-
return t > 1 &&
|
|
833
|
-
}), o =
|
|
834
|
+
let s = St(e[t - 2]);
|
|
835
|
+
return t > 1 && St(r) === s && a[a.length - 1].path !== s ? a.findIndex(Y.bind(null, e[t - 2])) : o;
|
|
836
|
+
}), o = l(() => a.value > -1 && xt(n.params, i.value.params)), s = l(() => a.value > -1 && a.value === n.matched.length - 1 && ge(n.params, i.value.params));
|
|
834
837
|
function u(n = {}) {
|
|
835
|
-
if (
|
|
836
|
-
let n = t[
|
|
838
|
+
if (bt(n)) {
|
|
839
|
+
let n = t[c(e.replace) ? "replace" : "push"](c(e.to)).catch(x);
|
|
837
840
|
return e.viewTransition && typeof document < "u" && "startViewTransition" in document && document.startViewTransition(() => n), n;
|
|
838
841
|
}
|
|
839
842
|
return Promise.resolve();
|
|
840
843
|
}
|
|
841
844
|
return {
|
|
842
845
|
route: i,
|
|
843
|
-
href:
|
|
846
|
+
href: l(() => i.value.href),
|
|
844
847
|
isActive: o,
|
|
845
|
-
isExactActive:
|
|
848
|
+
isExactActive: s,
|
|
846
849
|
navigate: u
|
|
847
850
|
};
|
|
848
851
|
}
|
|
849
|
-
function
|
|
852
|
+
function vt(e) {
|
|
850
853
|
return e.length === 1 ? e[0] : e;
|
|
851
854
|
}
|
|
852
|
-
var
|
|
855
|
+
var yt = /* @__PURE__ */ o({
|
|
853
856
|
name: "RouterLink",
|
|
854
857
|
compatConfig: { MODE: 3 },
|
|
855
858
|
props: {
|
|
@@ -867,24 +870,24 @@ var gt = /* @__PURE__ */ a({
|
|
|
867
870
|
},
|
|
868
871
|
viewTransition: Boolean
|
|
869
872
|
},
|
|
870
|
-
useLink:
|
|
873
|
+
useLink: _t,
|
|
871
874
|
setup(e, { slots: t }) {
|
|
872
|
-
let
|
|
873
|
-
[
|
|
874
|
-
[
|
|
875
|
+
let n = p(_t(e)), { options: i } = r(D), a = l(() => ({
|
|
876
|
+
[Ct(e.activeClass, i.linkActiveClass, "router-link-active")]: n.isActive,
|
|
877
|
+
[Ct(e.exactActiveClass, i.linkExactActiveClass, "router-link-exact-active")]: n.isExactActive
|
|
875
878
|
}));
|
|
876
879
|
return () => {
|
|
877
|
-
let
|
|
878
|
-
return e.custom ?
|
|
879
|
-
"aria-current":
|
|
880
|
-
href:
|
|
881
|
-
onClick:
|
|
880
|
+
let r = t.default && vt(t.default(n));
|
|
881
|
+
return e.custom ? r : ee("a", {
|
|
882
|
+
"aria-current": n.isExactActive ? e.ariaCurrentValue : null,
|
|
883
|
+
href: n.href,
|
|
884
|
+
onClick: n.navigate,
|
|
882
885
|
class: a.value
|
|
883
|
-
},
|
|
886
|
+
}, r);
|
|
884
887
|
};
|
|
885
888
|
}
|
|
886
889
|
});
|
|
887
|
-
function
|
|
890
|
+
function bt(e) {
|
|
888
891
|
if (!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) && !e.defaultPrevented && (e.button === void 0 || e.button === 0)) {
|
|
889
892
|
if (e.currentTarget && e.currentTarget.getAttribute) {
|
|
890
893
|
let t = e.currentTarget.getAttribute("target");
|
|
@@ -893,19 +896,19 @@ function _t(e) {
|
|
|
893
896
|
return e.preventDefault && e.preventDefault(), !0;
|
|
894
897
|
}
|
|
895
898
|
}
|
|
896
|
-
function
|
|
899
|
+
function xt(e, t) {
|
|
897
900
|
for (let n in t) {
|
|
898
901
|
let r = t[n], i = e[n];
|
|
899
|
-
if (
|
|
900
|
-
if (!
|
|
902
|
+
if (S(r)) {
|
|
903
|
+
if (!S(i) || i.length !== r.length || r.some((e, t) => e.valueOf() !== i[t].valueOf())) return !1;
|
|
901
904
|
} else if (r !== i) return !1;
|
|
902
905
|
}
|
|
903
906
|
return !0;
|
|
904
907
|
}
|
|
905
|
-
function
|
|
908
|
+
function St(e) {
|
|
906
909
|
return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
|
|
907
910
|
}
|
|
908
|
-
var
|
|
911
|
+
var Ct = (e, t, n) => e ?? t ?? n, wt = /*#__PURE__*/ o({
|
|
909
912
|
name: "RouterView",
|
|
910
913
|
inheritAttrs: !1,
|
|
911
914
|
props: {
|
|
@@ -916,123 +919,132 @@ var bt = (e, t, n) => e ?? t ?? n, xt = /*#__PURE__*/ a({
|
|
|
916
919
|
route: Object
|
|
917
920
|
},
|
|
918
921
|
compatConfig: { MODE: 3 },
|
|
919
|
-
setup(e, { attrs: t, slots:
|
|
920
|
-
let
|
|
921
|
-
let e =
|
|
922
|
+
setup(e, { attrs: t, slots: i }) {
|
|
923
|
+
let a = r(k), o = l(() => e.route || a.value), d = r(E, 0), p = l(() => {
|
|
924
|
+
let e = c(d), { matched: t } = o.value, n;
|
|
922
925
|
for (; (n = t[e]) && !n.components;) e++;
|
|
923
926
|
return e;
|
|
924
|
-
}),
|
|
925
|
-
h(
|
|
926
|
-
let
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
927
|
+
}), m = l(() => o.value.matched[p.value]);
|
|
928
|
+
h(E, l(() => p.value + 1)), h(T, m), h(k, o);
|
|
929
|
+
let g = /* @__PURE__ */ new Set();
|
|
930
|
+
h(ie, g);
|
|
931
|
+
let _ = s(), v = X, { app: b } = n().appContext;
|
|
932
|
+
return f(() => [
|
|
933
|
+
_.value,
|
|
934
|
+
m.value,
|
|
930
935
|
e.name
|
|
931
936
|
], ([e, t, n], [r, i, a]) => {
|
|
932
|
-
t && (t.instances[n] = e, i && i !== t && e && e === r && (t.leaveGuards.size || (t.leaveGuards = i.leaveGuards), t.updateGuards.size || (t.updateGuards = i.updateGuards))), e && t && (!i || !
|
|
937
|
+
t && (t.instances[n] = e, i && i !== t && e && e === r && (t.leaveGuards.size || (t.leaveGuards = i.leaveGuards), t.updateGuards.size || (t.updateGuards = i.updateGuards))), e && t && (!i || !Y(t, i) || !r) && (t.enterCallbacks[n] || []).forEach((t) => t(e));
|
|
933
938
|
}, { flush: "post" }), () => {
|
|
934
|
-
let n =
|
|
935
|
-
if (!s) return
|
|
939
|
+
let n = o.value, r = e.name, a = m.value, s = a && a.components[r];
|
|
940
|
+
if (!s) return Tt(i.default, {
|
|
936
941
|
Component: s,
|
|
937
942
|
route: n
|
|
938
943
|
});
|
|
939
|
-
let c =
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
+
let c = a.props[r], l = c ? c === !0 ? n.params : typeof c == "function" ? c(n) : c : null, d = (e) => {
|
|
945
|
+
e.component.isUnmounted && (a.instances[r] = null);
|
|
946
|
+
}, f = (e) => u(() => {
|
|
947
|
+
if (v === n || o.value !== n || e.el.getRootNode() !== b._container.getRootNode()) return;
|
|
948
|
+
let t = v;
|
|
949
|
+
v = n;
|
|
950
|
+
for (let e of g) e(n, t);
|
|
951
|
+
}), p = ee(s, y({}, l, t, {
|
|
952
|
+
onVnodeUnmounted: d,
|
|
953
|
+
onVnodeMounted: f,
|
|
954
|
+
onVnodeUpdated: f,
|
|
955
|
+
ref: _
|
|
944
956
|
}));
|
|
945
|
-
return
|
|
946
|
-
Component:
|
|
957
|
+
return Tt(i.default, {
|
|
958
|
+
Component: p,
|
|
947
959
|
route: n
|
|
948
|
-
}) ||
|
|
960
|
+
}) || p;
|
|
949
961
|
};
|
|
950
962
|
}
|
|
951
963
|
});
|
|
952
|
-
function
|
|
964
|
+
function Tt(e, t) {
|
|
953
965
|
if (!e) return null;
|
|
954
966
|
let n = e(t);
|
|
955
967
|
return n.length === 1 ? n[0] : n;
|
|
956
968
|
}
|
|
957
|
-
var
|
|
958
|
-
function
|
|
959
|
-
let t =
|
|
969
|
+
var Et = wt;
|
|
970
|
+
function Dt(e) {
|
|
971
|
+
let t = e.matcher || ct(e.routes, e), n = e.parseQuery || Me, r = e.stringifyQuery || Ne, i = e.history, a = Q(), o = Q(), s = Q(), l = m(X), f = m(0), p = X;
|
|
960
972
|
j && e.scrollBehavior && "scrollRestoration" in history && (history.scrollRestoration = "manual");
|
|
961
|
-
let
|
|
962
|
-
function
|
|
973
|
+
let ee = b.bind(null, (e) => "" + e), h = b.bind(null, fe), g = b.bind(null, G);
|
|
974
|
+
function _(e, n) {
|
|
963
975
|
let r, i;
|
|
964
|
-
|
|
976
|
+
je(e) ? (r = t.getRecordMatcher(e), i = n) : i = e;
|
|
965
977
|
let a = t.addRoute(i, r);
|
|
966
978
|
return f.value++, () => {
|
|
967
979
|
a(), f.value++;
|
|
968
980
|
};
|
|
969
981
|
}
|
|
970
|
-
function
|
|
982
|
+
function v(e) {
|
|
971
983
|
let n = t.getRecordMatcher(e);
|
|
972
984
|
n && (t.removeRoute(n), f.value++);
|
|
973
985
|
}
|
|
974
|
-
function
|
|
986
|
+
function te() {
|
|
975
987
|
t.clearRoutes(), f.value++;
|
|
976
988
|
}
|
|
977
|
-
function
|
|
989
|
+
function ne() {
|
|
978
990
|
return t.getRoutes().map((e) => e.record);
|
|
979
991
|
}
|
|
980
|
-
function
|
|
992
|
+
function re(e) {
|
|
981
993
|
return !!t.getRecordMatcher(e);
|
|
982
994
|
}
|
|
983
995
|
function T(e, a) {
|
|
984
996
|
if (f.value, typeof e == "string") {
|
|
985
|
-
a ||= e.startsWith("/") ? X :
|
|
986
|
-
let r =
|
|
987
|
-
return
|
|
988
|
-
params:
|
|
997
|
+
a ||= e.startsWith("/") ? X : l.value;
|
|
998
|
+
let r = pe(n, e, a.path), o = t.resolve({ path: r.path }, a), s = i.createHref(r.fullPath);
|
|
999
|
+
return y(r, o, {
|
|
1000
|
+
params: g(o.params),
|
|
989
1001
|
redirectedFrom: void 0,
|
|
990
1002
|
href: s
|
|
991
1003
|
});
|
|
992
1004
|
}
|
|
993
|
-
a =
|
|
1005
|
+
a = y({}, a || (e.path != null && e.path.startsWith("/") && !("name" in e && e.name) ? X : l.value));
|
|
994
1006
|
let o;
|
|
995
|
-
if (e.path != null) o =
|
|
1007
|
+
if (e.path != null) o = y({}, e, { path: pe(n, e.path, a.path).path });
|
|
996
1008
|
else {
|
|
997
|
-
let t =
|
|
1009
|
+
let t = y({}, e.params);
|
|
998
1010
|
for (let e in t) t[e] ?? delete t[e];
|
|
999
|
-
o =
|
|
1011
|
+
o = y({}, e, { params: h(t) }), a.params = h(a.params);
|
|
1000
1012
|
}
|
|
1001
1013
|
let s = t.resolve(o, a), c = e.hash || "";
|
|
1002
|
-
s.params =
|
|
1003
|
-
let
|
|
1004
|
-
hash:
|
|
1014
|
+
s.params = ee(g(s.params));
|
|
1015
|
+
let u = me(r, y({}, e, {
|
|
1016
|
+
hash: de(c),
|
|
1005
1017
|
path: s.path
|
|
1006
|
-
})),
|
|
1007
|
-
return
|
|
1008
|
-
fullPath:
|
|
1018
|
+
})), d = i.createHref(u);
|
|
1019
|
+
return y({
|
|
1020
|
+
fullPath: u,
|
|
1009
1021
|
hash: c,
|
|
1010
|
-
query: r ===
|
|
1022
|
+
query: r === Ne ? Pe(e.query) : e.query || {}
|
|
1011
1023
|
}, s, {
|
|
1012
1024
|
redirectedFrom: void 0,
|
|
1013
|
-
href:
|
|
1025
|
+
href: d
|
|
1014
1026
|
});
|
|
1015
1027
|
}
|
|
1016
|
-
function
|
|
1017
|
-
return typeof e == "string" ?
|
|
1028
|
+
function E(e) {
|
|
1029
|
+
return typeof e == "string" ? pe(n, e, l.value.path) : y({}, e);
|
|
1018
1030
|
}
|
|
1019
|
-
function
|
|
1020
|
-
if (
|
|
1031
|
+
function ie(e, t) {
|
|
1032
|
+
if (p !== e) return C(8, {
|
|
1021
1033
|
from: t,
|
|
1022
1034
|
to: e
|
|
1023
1035
|
});
|
|
1024
1036
|
}
|
|
1025
|
-
function
|
|
1037
|
+
function A(e) {
|
|
1026
1038
|
return N(e);
|
|
1027
1039
|
}
|
|
1028
|
-
function
|
|
1029
|
-
return
|
|
1040
|
+
function ae(e) {
|
|
1041
|
+
return A(y(E(e), { replace: !0 }));
|
|
1030
1042
|
}
|
|
1031
|
-
function
|
|
1043
|
+
function M(e, t) {
|
|
1032
1044
|
let n = e.matched[e.matched.length - 1];
|
|
1033
1045
|
if (n && n.redirect) {
|
|
1034
1046
|
let { redirect: r } = n, i = typeof r == "function" ? r(e, t) : r;
|
|
1035
|
-
return typeof i == "string" && (i = i.includes("?") || i.includes("#") ? i =
|
|
1047
|
+
return typeof i == "string" && (i = i.includes("?") || i.includes("#") ? i = E(i) : { path: i }, i.params = {}), y({
|
|
1036
1048
|
query: e.query,
|
|
1037
1049
|
hash: e.hash,
|
|
1038
1050
|
params: i.path == null ? e.params : {}
|
|
@@ -1040,157 +1052,157 @@ function wt(e) {
|
|
|
1040
1052
|
}
|
|
1041
1053
|
}
|
|
1042
1054
|
function N(e, t) {
|
|
1043
|
-
let n =
|
|
1044
|
-
if (c) return N(
|
|
1045
|
-
state: typeof c == "object" ?
|
|
1055
|
+
let n = p = T(e), i = l.value, a = e.state, o = e.force, s = e.replace === !0, c = M(n, i);
|
|
1056
|
+
if (c) return N(y(E(c), {
|
|
1057
|
+
state: typeof c == "object" ? y({}, a, c.state) : a,
|
|
1046
1058
|
force: o,
|
|
1047
1059
|
replace: s
|
|
1048
1060
|
}), t || n);
|
|
1049
|
-
let
|
|
1050
|
-
|
|
1051
|
-
let
|
|
1052
|
-
return !o &&
|
|
1053
|
-
to:
|
|
1061
|
+
let u = n;
|
|
1062
|
+
u.redirectedFrom = t;
|
|
1063
|
+
let d;
|
|
1064
|
+
return !o && he(r, i, n) && (d = C(16, {
|
|
1065
|
+
to: u,
|
|
1054
1066
|
from: i
|
|
1055
|
-
}),
|
|
1067
|
+
}), H(i, i, !0, !1)), (d ? Promise.resolve(d) : se(u, i)).catch((e) => w(e) ? w(e, 2) ? e : V(e) : B(e, u, i)).then((e) => {
|
|
1056
1068
|
if (e) {
|
|
1057
|
-
if (
|
|
1058
|
-
state: typeof e.to == "object" ?
|
|
1069
|
+
if (w(e, 2)) return N(y({ replace: s }, E(e.to), {
|
|
1070
|
+
state: typeof e.to == "object" ? y({}, a, e.to.state) : a,
|
|
1059
1071
|
force: o
|
|
1060
|
-
}), t ||
|
|
1061
|
-
} else e =
|
|
1062
|
-
return
|
|
1072
|
+
}), t || u);
|
|
1073
|
+
} else e = ce(u, i, !0, s, a);
|
|
1074
|
+
return F(u, i, e), e;
|
|
1063
1075
|
});
|
|
1064
1076
|
}
|
|
1065
1077
|
function oe(e, t) {
|
|
1066
|
-
let n =
|
|
1078
|
+
let n = ie(e, t);
|
|
1067
1079
|
return n ? Promise.reject(n) : Promise.resolve();
|
|
1068
1080
|
}
|
|
1069
1081
|
function P(e) {
|
|
1070
|
-
let t =
|
|
1082
|
+
let t = K.values().next().value;
|
|
1071
1083
|
return t && typeof t.runWithContext == "function" ? t.runWithContext(e) : e();
|
|
1072
1084
|
}
|
|
1073
1085
|
function se(e, t) {
|
|
1074
|
-
let n, [r, i, s] =
|
|
1075
|
-
n =
|
|
1086
|
+
let n, [r, i, s] = Be(e, t);
|
|
1087
|
+
n = Re(r.reverse(), "beforeRouteLeave", e, t);
|
|
1076
1088
|
for (let i of r) i.leaveGuards.forEach((r) => {
|
|
1077
|
-
n.push(
|
|
1089
|
+
n.push($(r, e, t));
|
|
1078
1090
|
});
|
|
1079
1091
|
let c = oe.bind(null, e, t);
|
|
1080
|
-
return n.push(c),
|
|
1092
|
+
return n.push(c), J(n).then(() => {
|
|
1081
1093
|
n = [];
|
|
1082
|
-
for (let r of a.list()) n.push(
|
|
1083
|
-
return n.push(c),
|
|
1094
|
+
for (let r of a.list()) n.push($(r, e, t));
|
|
1095
|
+
return n.push(c), J(n);
|
|
1084
1096
|
}).then(() => {
|
|
1085
|
-
n =
|
|
1097
|
+
n = Re(i, "beforeRouteUpdate", e, t);
|
|
1086
1098
|
for (let r of i) r.updateGuards.forEach((r) => {
|
|
1087
|
-
n.push(
|
|
1099
|
+
n.push($(r, e, t));
|
|
1088
1100
|
});
|
|
1089
|
-
return n.push(c),
|
|
1101
|
+
return n.push(c), J(n);
|
|
1090
1102
|
}).then(() => {
|
|
1091
1103
|
n = [];
|
|
1092
1104
|
for (let r of s) if (r.beforeEnter) {
|
|
1093
|
-
if (
|
|
1094
|
-
else n.push(
|
|
1105
|
+
if (S(r.beforeEnter)) for (let i of r.beforeEnter) n.push($(i, e, t));
|
|
1106
|
+
else n.push($(r.beforeEnter, e, t));
|
|
1095
1107
|
}
|
|
1096
|
-
return n.push(c),
|
|
1097
|
-
}).then(() => (e.matched.forEach((e) => e.enterCallbacks = {}), n =
|
|
1108
|
+
return n.push(c), J(n);
|
|
1109
|
+
}).then(() => (e.matched.forEach((e) => e.enterCallbacks = {}), n = Re(s, "beforeRouteEnter", e, t, P), n.push(c), J(n))).then(() => {
|
|
1098
1110
|
n = [];
|
|
1099
|
-
for (let r of o.list()) n.push(
|
|
1100
|
-
return n.push(c),
|
|
1101
|
-
}).catch((e) =>
|
|
1111
|
+
for (let r of o.list()) n.push($(r, e, t));
|
|
1112
|
+
return n.push(c), J(n);
|
|
1113
|
+
}).catch((e) => w(e, 8) ? e : Promise.reject(e));
|
|
1102
1114
|
}
|
|
1103
|
-
function
|
|
1104
|
-
|
|
1115
|
+
function F(e, t, n) {
|
|
1116
|
+
s.list().forEach((r) => P(() => r(e, t, n)));
|
|
1105
1117
|
}
|
|
1106
|
-
function
|
|
1107
|
-
let o =
|
|
1118
|
+
function ce(e, t, n, r, a) {
|
|
1119
|
+
let o = ie(e, t);
|
|
1108
1120
|
if (o) return o;
|
|
1109
1121
|
let s = t === X, c = j ? history.state : {};
|
|
1110
|
-
n && (r || s ? i.replace(e.fullPath,
|
|
1122
|
+
n && (r || s ? i.replace(e.fullPath, y({ scroll: s && c && c.scroll }, a)) : i.push(e.fullPath, a)), l.value = e, H(e, t, n, s), V();
|
|
1111
1123
|
}
|
|
1112
1124
|
let I;
|
|
1113
1125
|
function le() {
|
|
1114
1126
|
I ||= i.listen((e, t, n) => {
|
|
1115
|
-
if (!
|
|
1116
|
-
let r = T(e), a =
|
|
1127
|
+
if (!q.listening) return;
|
|
1128
|
+
let r = T(e), a = M(r, q.currentRoute.value);
|
|
1117
1129
|
if (a) {
|
|
1118
|
-
N(
|
|
1130
|
+
N(y(a, {
|
|
1119
1131
|
replace: !0,
|
|
1120
1132
|
force: !0
|
|
1121
|
-
}), r).catch(
|
|
1133
|
+
}), r).catch(x);
|
|
1122
1134
|
return;
|
|
1123
1135
|
}
|
|
1124
|
-
|
|
1125
|
-
let o =
|
|
1126
|
-
j && n.delta && Ee(
|
|
1127
|
-
|
|
1128
|
-
}).catch(
|
|
1129
|
-
e ||=
|
|
1130
|
-
}).catch(
|
|
1136
|
+
p = r;
|
|
1137
|
+
let o = l.value;
|
|
1138
|
+
j && n.delta && De(Ee(o.fullPath, n.delta)), se(r, o).catch((e) => w(e, 12) ? e : w(e, 2) ? (N(y(E(e.to), { force: !0 }), r).then((e) => {
|
|
1139
|
+
w(e, 20) && !n.delta && n.type === "pop" && i.go(-1, !1);
|
|
1140
|
+
}).catch(x), Promise.reject()) : (n.delta && i.go(-n.delta, !1), B(e, r, o))).then((e) => {
|
|
1141
|
+
e ||= ce(r, o, !1), e && (n.delta && !w(e, 8) ? i.go(-n.delta, !1) : n.type === "pop" && w(e, 20) && i.go(-1, !1)), F(r, o, e);
|
|
1142
|
+
}).catch(x);
|
|
1131
1143
|
});
|
|
1132
1144
|
}
|
|
1133
|
-
let L =
|
|
1145
|
+
let L = Q(), R = Q(), z;
|
|
1134
1146
|
function B(e, t, n) {
|
|
1135
|
-
|
|
1147
|
+
V(e);
|
|
1136
1148
|
let r = R.list();
|
|
1137
1149
|
return r.length ? r.forEach((r) => r(e, t, n)) : console.error(e), Promise.reject(e);
|
|
1138
1150
|
}
|
|
1139
|
-
function
|
|
1140
|
-
return z &&
|
|
1151
|
+
function ue() {
|
|
1152
|
+
return z && l.value !== X ? Promise.resolve() : new Promise((e, t) => {
|
|
1141
1153
|
L.add([e, t]);
|
|
1142
1154
|
});
|
|
1143
1155
|
}
|
|
1144
|
-
function
|
|
1156
|
+
function V(e) {
|
|
1145
1157
|
return z || (z = !e, le(), L.list().forEach(([t, n]) => e ? n(e) : t()), L.reset()), e;
|
|
1146
1158
|
}
|
|
1147
|
-
function
|
|
1159
|
+
function H(t, n, r, i) {
|
|
1148
1160
|
let { scrollBehavior: a } = e;
|
|
1149
1161
|
if (!j || !a) return Promise.resolve();
|
|
1150
|
-
let o = !r &&
|
|
1151
|
-
return
|
|
1162
|
+
let o = !r && Oe(Ee(t.fullPath, 0)) || (i || !r) && history.state && history.state.scroll || null;
|
|
1163
|
+
return u().then(() => a(t, n, o)).then((e) => t === l.value && e && Te(e)).catch((e) => t === l.value && B(e, t, n));
|
|
1152
1164
|
}
|
|
1153
|
-
let
|
|
1154
|
-
currentRoute:
|
|
1165
|
+
let U = (e) => i.go(e), W, K = /* @__PURE__ */ new Set(), q = {
|
|
1166
|
+
currentRoute: l,
|
|
1155
1167
|
listening: !0,
|
|
1156
|
-
addRoute:
|
|
1157
|
-
removeRoute:
|
|
1158
|
-
clearRoutes:
|
|
1159
|
-
hasRoute:
|
|
1160
|
-
getRoutes:
|
|
1168
|
+
addRoute: _,
|
|
1169
|
+
removeRoute: v,
|
|
1170
|
+
clearRoutes: te,
|
|
1171
|
+
hasRoute: re,
|
|
1172
|
+
getRoutes: ne,
|
|
1161
1173
|
resolve: T,
|
|
1162
1174
|
options: e,
|
|
1163
|
-
push:
|
|
1164
|
-
replace:
|
|
1165
|
-
go:
|
|
1166
|
-
back: () =>
|
|
1167
|
-
forward: () =>
|
|
1175
|
+
push: A,
|
|
1176
|
+
replace: ae,
|
|
1177
|
+
go: U,
|
|
1178
|
+
back: () => U(-1),
|
|
1179
|
+
forward: () => U(1),
|
|
1168
1180
|
beforeEach: a.add,
|
|
1169
1181
|
beforeResolve: o.add,
|
|
1170
|
-
afterEach:
|
|
1182
|
+
afterEach: s.add,
|
|
1171
1183
|
onError: R.add,
|
|
1172
|
-
isReady:
|
|
1184
|
+
isReady: ue,
|
|
1173
1185
|
install(e) {
|
|
1174
|
-
e.component("RouterLink",
|
|
1186
|
+
e.component("RouterLink", yt), e.component("RouterView", Et), e.config.globalProperties.$router = q, Object.defineProperty(e.config.globalProperties, "$route", {
|
|
1175
1187
|
enumerable: !0,
|
|
1176
|
-
get: () =>
|
|
1177
|
-
}), j && !
|
|
1188
|
+
get: () => c(l)
|
|
1189
|
+
}), j && !W && l.value === X && (W = !0, A(i.location).catch((e) => {}));
|
|
1178
1190
|
let t = {};
|
|
1179
1191
|
for (let e in X) Object.defineProperty(t, e, {
|
|
1180
|
-
get: () =>
|
|
1192
|
+
get: () => l.value[e],
|
|
1181
1193
|
enumerable: !0
|
|
1182
1194
|
});
|
|
1183
|
-
e.provide(
|
|
1195
|
+
e.provide(D, q), e.provide(O, d(t)), e.provide(k, l);
|
|
1184
1196
|
let n = e.unmount;
|
|
1185
|
-
|
|
1186
|
-
|
|
1197
|
+
K.add(e), e.unmount = function() {
|
|
1198
|
+
K.delete(e), K.size < 1 && (p = X, I && I(), I = null, l.value = X, W = !1, z = !1), n();
|
|
1187
1199
|
};
|
|
1188
1200
|
}
|
|
1189
1201
|
};
|
|
1190
|
-
function
|
|
1202
|
+
function J(e) {
|
|
1191
1203
|
return e.reduce((e, t) => e.then(() => P(t)), Promise.resolve());
|
|
1192
1204
|
}
|
|
1193
|
-
return
|
|
1205
|
+
return q;
|
|
1194
1206
|
}
|
|
1195
1207
|
//#endregion
|
|
1196
|
-
export {
|
|
1208
|
+
export { qe as a, A as c, ct as i, Et as n, Ve as o, Dt as r, ae as s, yt as t };
|