typerighter 0.30.8 → 0.32.0
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/app-CQK4JuN5.js +3866 -0
- package/dist/{cli-Dqblgogf.js → cli-Bpm-5dO2.js} +5 -5
- package/dist/cli.js +1 -1
- package/dist/client/theme-default.js +881 -837
- package/dist/client.js +1 -1
- package/dist/fonts.css +1 -1
- package/dist/index.js +2 -2
- package/dist/{init-BmRxS763.js → init-CXPxeWb3.js} +2 -2
- package/dist/node/lib/typedown-context.d.ts.map +1 -1
- package/dist/node/plugin/vite/index.d.ts.map +1 -1
- package/dist/node/plugin/vite/virtual/app.d.ts.map +1 -1
- package/dist/typerighter.css +1 -1
- package/dist/{vite-CdFJrVOC.js → vite-OiCh59kk.js} +242 -231
- package/dist/vite.js +1 -1
- package/package.json +6 -6
- package/dist/app-DZp-uDTw.js +0 -3092
|
@@ -1,218 +1,264 @@
|
|
|
1
|
-
import { B as e, D as t, E as n, G as r, K as i, M as a, N as o, O as s, P as c, S as l, _ as u, c as d, d as f, f as p,
|
|
1
|
+
import { B as e, D as t, E as n, G as r, K as i, M as a, N as o, O as s, P as c, S as l, _ as u, c as d, d as f, f as p, g as m, h, i as g, j as _, l as v, n as y, o as b, r as x, s as S, v as C, w, x as T, y as ee } from "../shared-B-n46X4N.js";
|
|
2
2
|
import { t as te } from "../temml-DZbhOfRE.js";
|
|
3
3
|
import { t as ne } from "../es-ClqUVRJn.js";
|
|
4
|
-
import { A as
|
|
4
|
+
import { A as E, C as re, D as ie, E as ae, F as oe, I as se, L as D, M as ce, N as le, O as ue, P as de, S as fe, T as pe, _ as me, a as he, b as ge, c as _e, d as ve, f as ye, g as be, h as O, i as k, j as xe, k as Se, l as A, m as Ce, n as we, o as Te, p as Ee, r as De, s as Oe, v as ke, w as Ae, x as je, y as Me } from "../app-CQK4JuN5.js";
|
|
5
5
|
import { a as Ne, i as Pe, n as Fe, t as Ie } from "../brand-CG1fQshq.js";
|
|
6
|
-
import { Fragment as
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}]]
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
["path", {
|
|
32
|
-
d: "
|
|
33
|
-
key: "
|
|
34
|
-
}],
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}]
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
["path", {
|
|
66
|
-
d: "
|
|
67
|
-
key: "
|
|
68
|
-
}],
|
|
69
|
-
["
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
]
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
6
|
+
import { Fragment as j, Teleport as Le, computed as M, createApp as Re, createBlock as N, createCommentVNode as P, createElementBlock as F, createElementVNode as I, createTextVNode as L, createVNode as R, defineComponent as z, getCurrentScope as ze, markRaw as Be, mergeModels as Ve, mergeProps as He, nextTick as Ue, normalizeClass as B, normalizeStyle as We, onBeforeUnmount as Ge, onMounted as Ke, onScopeDispose as qe, onUnmounted as Je, openBlock as V, readonly as Ye, ref as H, renderList as U, renderSlot as Xe, resolveComponent as Ze, resolveDynamicComponent as W, shallowReadonly as Qe, shallowRef as $e, toDisplayString as G, toValue as et, triggerRef as tt, unref as K, useModel as nt, useTemplateRef as rt, vModelText as it, watch as q, watchEffect as at, withCtx as ot, withDirectives as st, withKeys as ct, withModifiers as lt } from "vue";
|
|
7
|
+
var ut = D({
|
|
8
|
+
name: "circle-dot",
|
|
9
|
+
size: 24,
|
|
10
|
+
node: [["circle", {
|
|
11
|
+
cx: "12",
|
|
12
|
+
cy: "12",
|
|
13
|
+
r: "1",
|
|
14
|
+
key: "41hilf"
|
|
15
|
+
}], ["circle", {
|
|
16
|
+
cx: "12",
|
|
17
|
+
cy: "12",
|
|
18
|
+
r: "10",
|
|
19
|
+
key: "1mglay"
|
|
20
|
+
}]]
|
|
21
|
+
}), dt = D({
|
|
22
|
+
name: "command",
|
|
23
|
+
size: 24,
|
|
24
|
+
node: [["path", {
|
|
25
|
+
d: "M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",
|
|
26
|
+
key: "11bfej"
|
|
27
|
+
}]]
|
|
28
|
+
}), ft = D({
|
|
29
|
+
name: "corner-down-left",
|
|
30
|
+
size: 24,
|
|
31
|
+
node: [["path", {
|
|
32
|
+
d: "M20 4v7a4 4 0 0 1-4 4H4",
|
|
33
|
+
key: "6o5b7l"
|
|
34
|
+
}], ["path", {
|
|
35
|
+
d: "m9 10-5 5 5 5",
|
|
36
|
+
key: "1kshq7"
|
|
37
|
+
}]]
|
|
38
|
+
}), pt = D({
|
|
39
|
+
name: "delete",
|
|
40
|
+
size: 24,
|
|
41
|
+
node: [
|
|
42
|
+
["path", {
|
|
43
|
+
d: "M10 5a2 2 0 0 0-1.344.519l-6.328 5.74a1 1 0 0 0 0 1.481l6.328 5.741A2 2 0 0 0 10 19h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2z",
|
|
44
|
+
key: "1yo7s0"
|
|
45
|
+
}],
|
|
46
|
+
["path", {
|
|
47
|
+
d: "m12 9 6 6",
|
|
48
|
+
key: "anjzzh"
|
|
49
|
+
}],
|
|
50
|
+
["path", {
|
|
51
|
+
d: "m18 9-6 6",
|
|
52
|
+
key: "1fp51s"
|
|
53
|
+
}]
|
|
54
|
+
]
|
|
55
|
+
}), mt = D({
|
|
56
|
+
name: "folder-open",
|
|
57
|
+
size: 24,
|
|
58
|
+
node: [["path", {
|
|
59
|
+
d: "m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",
|
|
60
|
+
key: "usdka0"
|
|
61
|
+
}]]
|
|
62
|
+
}), ht = D({
|
|
63
|
+
name: "loader-circle",
|
|
64
|
+
size: 24,
|
|
65
|
+
node: [["path", {
|
|
66
|
+
d: "M21 12a9 9 0 1 1-6.219-8.56",
|
|
67
|
+
key: "13zald"
|
|
68
|
+
}]],
|
|
69
|
+
aliases: ["loader-2"]
|
|
70
|
+
}), gt = D({
|
|
71
|
+
name: "option",
|
|
72
|
+
size: 24,
|
|
73
|
+
node: [["path", {
|
|
74
|
+
d: "M14 3h7",
|
|
75
|
+
key: "16f0ms"
|
|
76
|
+
}], ["path", {
|
|
77
|
+
d: "M3 3h5.28a1 1 0 0 1 .948.684l5.544 16.632a1 1 0 0 0 .949.684H21",
|
|
78
|
+
key: "1qf1im"
|
|
79
|
+
}]]
|
|
80
|
+
}), _t = D({
|
|
81
|
+
name: "space",
|
|
82
|
+
size: 24,
|
|
83
|
+
node: [["path", {
|
|
84
|
+
d: "M22 17v1c0 .5-.5 1-1 1H3c-.5 0-1-.5-1-1v-1",
|
|
85
|
+
key: "lt2kga"
|
|
86
|
+
}]]
|
|
87
|
+
}), vt = D({
|
|
88
|
+
name: "square-check-big",
|
|
89
|
+
size: 24,
|
|
90
|
+
node: [["path", {
|
|
91
|
+
d: "M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",
|
|
92
|
+
key: "2acyp4"
|
|
93
|
+
}], ["path", {
|
|
94
|
+
d: "m9 11 3 3L22 4",
|
|
95
|
+
key: "1pflzl"
|
|
96
|
+
}]],
|
|
97
|
+
aliases: ["check-square"]
|
|
98
|
+
}), yt = D({
|
|
99
|
+
name: "tags",
|
|
100
|
+
size: 24,
|
|
101
|
+
node: [
|
|
102
|
+
["path", {
|
|
103
|
+
d: "M13.172 2a2 2 0 0 1 1.414.586l6.71 6.71a2.4 2.4 0 0 1 0 3.408l-4.592 4.592a2.4 2.4 0 0 1-3.408 0l-6.71-6.71A2 2 0 0 1 6 9.172V3a1 1 0 0 1 1-1z",
|
|
104
|
+
key: "16rjxf"
|
|
105
|
+
}],
|
|
106
|
+
["path", {
|
|
107
|
+
d: "M2 7v6.172a2 2 0 0 0 .586 1.414l6.71 6.71a2.4 2.4 0 0 0 3.191.193",
|
|
108
|
+
key: "178nd4"
|
|
109
|
+
}],
|
|
110
|
+
["circle", {
|
|
111
|
+
cx: "10.5",
|
|
112
|
+
cy: "6.5",
|
|
113
|
+
r: ".5",
|
|
114
|
+
fill: "currentColor",
|
|
115
|
+
key: "12ikhr"
|
|
116
|
+
}]
|
|
117
|
+
]
|
|
118
|
+
}), bt = D({
|
|
119
|
+
name: "type",
|
|
120
|
+
size: 24,
|
|
121
|
+
node: [
|
|
122
|
+
["path", {
|
|
123
|
+
d: "M12 4v16",
|
|
124
|
+
key: "1654pz"
|
|
125
|
+
}],
|
|
126
|
+
["path", {
|
|
127
|
+
d: "M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",
|
|
128
|
+
key: "e0r10z"
|
|
129
|
+
}],
|
|
130
|
+
["path", {
|
|
131
|
+
d: "M9 20h6",
|
|
132
|
+
key: "s66wpe"
|
|
133
|
+
}]
|
|
134
|
+
]
|
|
135
|
+
}), xt = [
|
|
90
136
|
"height",
|
|
91
137
|
"width",
|
|
92
138
|
"viewBox"
|
|
93
|
-
],
|
|
139
|
+
], St = ["d"], Ct = ["d"], wt = ["d"], Tt = /* @__PURE__ */ z({
|
|
94
140
|
__name: "TdBrandIcon",
|
|
95
141
|
props: { size: { default: 28 } },
|
|
96
142
|
setup(e) {
|
|
97
|
-
return (t, n) => (
|
|
143
|
+
return (t, n) => (V(), F("svg", {
|
|
98
144
|
fill: "none",
|
|
99
145
|
height: e.size,
|
|
100
146
|
width: e.size * 208 / 128,
|
|
101
|
-
viewBox:
|
|
147
|
+
viewBox: K(Ne),
|
|
102
148
|
xmlns: "http://www.w3.org/2000/svg"
|
|
103
149
|
}, [
|
|
104
|
-
|
|
150
|
+
I("path", {
|
|
105
151
|
"clip-rule": "evenodd",
|
|
106
|
-
d:
|
|
152
|
+
d: K(Fe),
|
|
107
153
|
"fill-rule": "evenodd",
|
|
108
154
|
fill: "currentColor"
|
|
109
|
-
}, null, 8,
|
|
110
|
-
|
|
111
|
-
d:
|
|
155
|
+
}, null, 8, St),
|
|
156
|
+
I("path", {
|
|
157
|
+
d: K(Pe),
|
|
112
158
|
fill: "currentColor"
|
|
113
|
-
}, null, 8,
|
|
114
|
-
|
|
115
|
-
d:
|
|
159
|
+
}, null, 8, Ct),
|
|
160
|
+
I("path", {
|
|
161
|
+
d: K(Ie),
|
|
116
162
|
fill: "currentColor"
|
|
117
|
-
}, null, 8,
|
|
118
|
-
], 8,
|
|
163
|
+
}, null, 8, wt)
|
|
164
|
+
], 8, xt));
|
|
119
165
|
}
|
|
120
|
-
}),
|
|
166
|
+
}), Et = ["title", "aria-label"], Dt = /*#__PURE__*/ O(/* @__PURE__ */ z({
|
|
121
167
|
__name: "TdButton",
|
|
122
168
|
props: { label: {} },
|
|
123
169
|
setup(e) {
|
|
124
|
-
return (t, n) => (
|
|
170
|
+
return (t, n) => (V(), F("button", {
|
|
125
171
|
type: "button",
|
|
126
|
-
class: "
|
|
172
|
+
class: "td-icon-btn",
|
|
127
173
|
title: e.label,
|
|
128
174
|
"aria-label": e.label
|
|
129
|
-
}, [Xe(t.$slots, "default")], 8,
|
|
175
|
+
}, [Xe(t.$slots, "default", {}, void 0, !0)], 8, Et));
|
|
130
176
|
}
|
|
131
|
-
}),
|
|
132
|
-
function
|
|
177
|
+
}), [["__scopeId", "data-v-b1861a4a"]]), Ot = /`([^`]+)`|\$([^$]+)\$/g;
|
|
178
|
+
function kt(e) {
|
|
133
179
|
let t = 0, n = "";
|
|
134
|
-
for (let r of e.matchAll(
|
|
135
|
-
if (n +=
|
|
180
|
+
for (let r of e.matchAll(Ot)) {
|
|
181
|
+
if (n += S(e.slice(t, r.index)), r[1] !== void 0) n += `<code>${S(r[1])}</code>`;
|
|
136
182
|
else if (r[2] !== void 0) try {
|
|
137
183
|
n += te.renderToString(r[2], { throwOnError: !1 });
|
|
138
184
|
} catch {
|
|
139
|
-
n +=
|
|
185
|
+
n += S(r[0]);
|
|
140
186
|
}
|
|
141
187
|
t = r.index + r[0].length;
|
|
142
188
|
}
|
|
143
|
-
return n +=
|
|
189
|
+
return n += S(e.slice(t)), n;
|
|
144
190
|
}
|
|
145
191
|
//#endregion
|
|
146
192
|
//#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
147
|
-
var
|
|
193
|
+
var At = Math.min, jt = Math.max, Mt = Math.round, J = (e) => ({
|
|
148
194
|
x: e,
|
|
149
195
|
y: e
|
|
150
|
-
}),
|
|
196
|
+
}), Nt = {
|
|
151
197
|
left: "right",
|
|
152
198
|
right: "left",
|
|
153
199
|
bottom: "top",
|
|
154
200
|
top: "bottom"
|
|
155
201
|
};
|
|
156
|
-
function
|
|
157
|
-
return
|
|
202
|
+
function Pt(e, t, n) {
|
|
203
|
+
return jt(e, At(t, n));
|
|
158
204
|
}
|
|
159
|
-
function
|
|
205
|
+
function Ft(e, t) {
|
|
160
206
|
return typeof e == "function" ? e(t) : e;
|
|
161
207
|
}
|
|
162
|
-
function
|
|
208
|
+
function It(e) {
|
|
163
209
|
return e.split("-")[0];
|
|
164
210
|
}
|
|
165
|
-
function
|
|
211
|
+
function Lt(e) {
|
|
166
212
|
return e.split("-")[1];
|
|
167
213
|
}
|
|
168
|
-
function
|
|
214
|
+
function Rt(e) {
|
|
169
215
|
return e === "x" ? "y" : "x";
|
|
170
216
|
}
|
|
171
|
-
function
|
|
217
|
+
function zt(e) {
|
|
172
218
|
return e === "y" ? "height" : "width";
|
|
173
219
|
}
|
|
174
|
-
function
|
|
220
|
+
function Y(e) {
|
|
175
221
|
let t = e[0];
|
|
176
222
|
return t === "t" || t === "b" ? "y" : "x";
|
|
177
223
|
}
|
|
178
|
-
function
|
|
179
|
-
return
|
|
224
|
+
function Bt(e) {
|
|
225
|
+
return Rt(Y(e));
|
|
180
226
|
}
|
|
181
|
-
function
|
|
227
|
+
function Vt(e, t, n) {
|
|
182
228
|
n === void 0 && (n = !1);
|
|
183
|
-
let r =
|
|
184
|
-
return t.reference[a] > t.floating[a] && (o =
|
|
229
|
+
let r = Lt(e), i = Bt(e), a = zt(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
230
|
+
return t.reference[a] > t.floating[a] && (o = Xt(o)), [o, Xt(o)];
|
|
185
231
|
}
|
|
186
|
-
function
|
|
187
|
-
let t =
|
|
232
|
+
function Ht(e) {
|
|
233
|
+
let t = Xt(e);
|
|
188
234
|
return [
|
|
189
|
-
|
|
235
|
+
Ut(e),
|
|
190
236
|
t,
|
|
191
|
-
|
|
237
|
+
Ut(t)
|
|
192
238
|
];
|
|
193
239
|
}
|
|
194
|
-
function
|
|
240
|
+
function Ut(e) {
|
|
195
241
|
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
196
242
|
}
|
|
197
|
-
var
|
|
198
|
-
function
|
|
243
|
+
var Wt = ["left", "right"], Gt = ["right", "left"], Kt = ["top", "bottom"], qt = ["bottom", "top"];
|
|
244
|
+
function Jt(e, t, n) {
|
|
199
245
|
switch (e) {
|
|
200
246
|
case "top":
|
|
201
|
-
case "bottom": return n ? t ?
|
|
247
|
+
case "bottom": return n ? t ? Gt : Wt : t ? Wt : Gt;
|
|
202
248
|
case "left":
|
|
203
|
-
case "right": return t ?
|
|
249
|
+
case "right": return t ? Kt : qt;
|
|
204
250
|
default: return [];
|
|
205
251
|
}
|
|
206
252
|
}
|
|
207
|
-
function
|
|
208
|
-
let i =
|
|
209
|
-
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(
|
|
253
|
+
function Yt(e, t, n, r) {
|
|
254
|
+
let i = Lt(e), a = Jt(It(e), n === "start", r);
|
|
255
|
+
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(Ut)))), a;
|
|
210
256
|
}
|
|
211
|
-
function
|
|
212
|
-
let t =
|
|
213
|
-
return
|
|
257
|
+
function Xt(e) {
|
|
258
|
+
let t = It(e);
|
|
259
|
+
return Nt[t] + e.slice(t.length);
|
|
214
260
|
}
|
|
215
|
-
function
|
|
261
|
+
function Zt(e) {
|
|
216
262
|
return {
|
|
217
263
|
top: e.top ?? 0,
|
|
218
264
|
right: e.right ?? 0,
|
|
@@ -220,15 +266,15 @@ function Qt(e) {
|
|
|
220
266
|
left: e.left ?? 0
|
|
221
267
|
};
|
|
222
268
|
}
|
|
223
|
-
function
|
|
269
|
+
function Qt(e) {
|
|
224
270
|
return typeof e == "number" ? {
|
|
225
271
|
top: e,
|
|
226
272
|
right: e,
|
|
227
273
|
bottom: e,
|
|
228
274
|
left: e
|
|
229
|
-
} :
|
|
275
|
+
} : Zt(e);
|
|
230
276
|
}
|
|
231
|
-
function
|
|
277
|
+
function $t(e) {
|
|
232
278
|
let { x: t, y: n, width: r, height: i } = e;
|
|
233
279
|
return {
|
|
234
280
|
width: r,
|
|
@@ -243,8 +289,8 @@ function en(e) {
|
|
|
243
289
|
}
|
|
244
290
|
//#endregion
|
|
245
291
|
//#region ../../node_modules/.pnpm/@floating-ui+core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
246
|
-
function
|
|
247
|
-
let { reference: r, floating: i } = e, a =
|
|
292
|
+
function en(e, t, n) {
|
|
293
|
+
let { reference: r, floating: i } = e, a = Y(t), o = Bt(t), s = zt(o), c = It(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
|
|
248
294
|
switch (c) {
|
|
249
295
|
case "top":
|
|
250
296
|
p = {
|
|
@@ -275,12 +321,12 @@ function tn(e, t, n) {
|
|
|
275
321
|
y: r.y
|
|
276
322
|
};
|
|
277
323
|
}
|
|
278
|
-
let m =
|
|
324
|
+
let m = Lt(t);
|
|
279
325
|
return m && (p[o] += f * (m === "end" ? 1 : -1) * (n && l ? -1 : 1)), p;
|
|
280
326
|
}
|
|
281
|
-
async function
|
|
327
|
+
async function tn(e, t) {
|
|
282
328
|
t === void 0 && (t = {});
|
|
283
|
-
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } =
|
|
329
|
+
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = Ft(t, e), p = Qt(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = $t(await i.getClippingRect({
|
|
284
330
|
element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
|
|
285
331
|
boundary: c,
|
|
286
332
|
rootBoundary: l,
|
|
@@ -293,7 +339,7 @@ async function nn(e, t) {
|
|
|
293
339
|
} : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
|
|
294
340
|
x: 1,
|
|
295
341
|
y: 1
|
|
296
|
-
}, y =
|
|
342
|
+
}, y = $t(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
297
343
|
elements: o,
|
|
298
344
|
rect: g,
|
|
299
345
|
offsetParent: _,
|
|
@@ -306,15 +352,15 @@ async function nn(e, t) {
|
|
|
306
352
|
right: (y.right - h.right + p.right) / v.x
|
|
307
353
|
};
|
|
308
354
|
}
|
|
309
|
-
var
|
|
355
|
+
var nn = 50, rn = async (e, t, n) => {
|
|
310
356
|
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
|
|
311
357
|
...o,
|
|
312
|
-
detectOverflow:
|
|
358
|
+
detectOverflow: tn
|
|
313
359
|
}, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
|
|
314
360
|
reference: e,
|
|
315
361
|
floating: t,
|
|
316
362
|
strategy: i
|
|
317
|
-
}), { x: u, y: d } =
|
|
363
|
+
}), { x: u, y: d } = en(l, r, c), f = r, p = 0, m = {};
|
|
318
364
|
for (let n = 0; n < a.length; n++) {
|
|
319
365
|
let h = a[n];
|
|
320
366
|
if (!h) continue;
|
|
@@ -335,11 +381,11 @@ var rn = 50, an = async (e, t, n) => {
|
|
|
335
381
|
u = v ?? u, d = y ?? d, m[g] = {
|
|
336
382
|
...m[g],
|
|
337
383
|
...b
|
|
338
|
-
}, x && p <
|
|
384
|
+
}, x && p < nn && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
|
|
339
385
|
reference: e,
|
|
340
386
|
floating: t,
|
|
341
387
|
strategy: i
|
|
342
|
-
}) : x.rects), {x: u, y: d} =
|
|
388
|
+
}) : x.rects), {x: u, y: d} = en(l, f, c)), n = -1);
|
|
343
389
|
}
|
|
344
390
|
return {
|
|
345
391
|
x: u,
|
|
@@ -348,61 +394,61 @@ var rn = 50, an = async (e, t, n) => {
|
|
|
348
394
|
strategy: i,
|
|
349
395
|
middlewareData: m
|
|
350
396
|
};
|
|
351
|
-
},
|
|
397
|
+
}, an = (e) => ({
|
|
352
398
|
name: "arrow",
|
|
353
399
|
options: e,
|
|
354
400
|
async fn(t) {
|
|
355
|
-
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } =
|
|
401
|
+
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = Ft(e, t) || {};
|
|
356
402
|
if (l == null) return {};
|
|
357
|
-
let d =
|
|
403
|
+
let d = Qt(u), f = {
|
|
358
404
|
x: n,
|
|
359
405
|
y: r
|
|
360
|
-
}, p =
|
|
406
|
+
}, p = Bt(i), m = zt(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
|
|
361
407
|
(!C || !await (o.isElement == null ? void 0 : o.isElement(S))) && (C = s.floating[y] || a.floating[m]);
|
|
362
|
-
let
|
|
408
|
+
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, ee = At(d[_], T), te = At(d[v], T), ne = C - h[m] - te, E = C / 2 - h[m] / 2 + w, re = Pt(ee, E, ne), ie = !c.arrow && Lt(i) != null && E !== re && a.reference[m] / 2 - (E < ee ? ee : te) - h[m] / 2 < 0, ae = ie ? E < ee ? E - ee : E - ne : 0;
|
|
363
409
|
return {
|
|
364
|
-
[p]: f[p] +
|
|
410
|
+
[p]: f[p] + ae,
|
|
365
411
|
data: {
|
|
366
|
-
[p]:
|
|
367
|
-
centerOffset:
|
|
368
|
-
...
|
|
412
|
+
[p]: re,
|
|
413
|
+
centerOffset: E - re - ae,
|
|
414
|
+
...ie && { alignmentOffset: ae }
|
|
369
415
|
},
|
|
370
|
-
reset:
|
|
416
|
+
reset: ie
|
|
371
417
|
};
|
|
372
418
|
}
|
|
373
|
-
}),
|
|
419
|
+
}), on = function(e) {
|
|
374
420
|
return e === void 0 && (e = {}), {
|
|
375
421
|
name: "flip",
|
|
376
422
|
options: e,
|
|
377
423
|
async fn(t) {
|
|
378
424
|
var n;
|
|
379
|
-
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } =
|
|
425
|
+
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = Ft(e, t);
|
|
380
426
|
if ((n = i.arrow) != null && n.alignmentOffset) return {};
|
|
381
|
-
let g =
|
|
382
|
-
!d && x && b.push(...
|
|
383
|
-
let S = [o, ...b], C = await s.detectOverflow(t, h),
|
|
384
|
-
if (l &&
|
|
385
|
-
let e =
|
|
386
|
-
|
|
427
|
+
let g = It(r), _ = Y(o), v = It(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [Xt(o)] : Ht(o)), x = p !== "none";
|
|
428
|
+
!d && x && b.push(...Yt(o, m, p, y));
|
|
429
|
+
let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
|
|
430
|
+
if (l && w.push(C[g]), u) {
|
|
431
|
+
let e = Vt(r, a, y);
|
|
432
|
+
w.push(C[e[0]], C[e[1]]);
|
|
387
433
|
}
|
|
388
|
-
if (
|
|
434
|
+
if (T = [...T, {
|
|
389
435
|
placement: r,
|
|
390
|
-
overflows:
|
|
391
|
-
}], !
|
|
436
|
+
overflows: w
|
|
437
|
+
}], !w.every((e) => e <= 0)) {
|
|
392
438
|
let e = (i.flip?.index || 0) + 1, t = S[e];
|
|
393
|
-
if (t && (u !== "alignment" || _ ===
|
|
439
|
+
if (t && (u !== "alignment" || _ === Y(t) || T.every((e) => Y(e.placement) !== _ || e.overflows[0] > 0))) return {
|
|
394
440
|
data: {
|
|
395
441
|
index: e,
|
|
396
|
-
overflows:
|
|
442
|
+
overflows: T
|
|
397
443
|
},
|
|
398
444
|
reset: { placement: t }
|
|
399
445
|
};
|
|
400
|
-
let n =
|
|
446
|
+
let n = T.filter((e) => e.overflows[0] <= 0).sort((e, t) => e.overflows[1] - t.overflows[1])[0]?.placement;
|
|
401
447
|
if (!n) switch (f) {
|
|
402
448
|
case "bestFit": {
|
|
403
|
-
let e =
|
|
449
|
+
let e = T.filter((e) => {
|
|
404
450
|
if (x) {
|
|
405
|
-
let t =
|
|
451
|
+
let t = Y(e.placement);
|
|
406
452
|
return t === _ || t === "y";
|
|
407
453
|
}
|
|
408
454
|
return !0;
|
|
@@ -417,9 +463,9 @@ var rn = 50, an = async (e, t, n) => {
|
|
|
417
463
|
return {};
|
|
418
464
|
}
|
|
419
465
|
};
|
|
420
|
-
},
|
|
421
|
-
async function
|
|
422
|
-
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o =
|
|
466
|
+
}, sn = /*#__PURE__*/ new Set(["left", "top"]);
|
|
467
|
+
async function cn(e, t) {
|
|
468
|
+
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = It(n), s = Lt(n), c = Y(n) === "y", l = sn.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = Ft(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
|
|
423
469
|
mainAxis: d,
|
|
424
470
|
crossAxis: 0,
|
|
425
471
|
alignmentAxis: null
|
|
@@ -436,13 +482,13 @@ async function ln(e, t) {
|
|
|
436
482
|
y: p * u
|
|
437
483
|
};
|
|
438
484
|
}
|
|
439
|
-
var
|
|
485
|
+
var ln = function(e) {
|
|
440
486
|
return e === void 0 && (e = 0), {
|
|
441
487
|
name: "offset",
|
|
442
488
|
options: e,
|
|
443
489
|
async fn(t) {
|
|
444
490
|
var n;
|
|
445
|
-
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await
|
|
491
|
+
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await cn(t, e);
|
|
446
492
|
return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
|
|
447
493
|
x: r + s.x,
|
|
448
494
|
y: i + s.y,
|
|
@@ -453,7 +499,7 @@ var un = function(e) {
|
|
|
453
499
|
};
|
|
454
500
|
}
|
|
455
501
|
};
|
|
456
|
-
},
|
|
502
|
+
}, un = function(e) {
|
|
457
503
|
return e === void 0 && (e = {}), {
|
|
458
504
|
name: "shift",
|
|
459
505
|
options: e,
|
|
@@ -464,10 +510,10 @@ var un = function(e) {
|
|
|
464
510
|
x: t,
|
|
465
511
|
y: n
|
|
466
512
|
};
|
|
467
|
-
} }, ...l } =
|
|
513
|
+
} }, ...l } = Ft(e, t), u = {
|
|
468
514
|
x: n,
|
|
469
515
|
y: r
|
|
470
|
-
}, d = await a.detectOverflow(t, l), f =
|
|
516
|
+
}, d = await a.detectOverflow(t, l), f = Y(i), p = Rt(f), m = u[p], h = u[f], g = (e, t) => Pt(t + d[e === "y" ? "top" : "left"], t, t - d[e === "y" ? "bottom" : "right"]);
|
|
471
517
|
o && (m = g(p, m)), s && (h = g(f, h));
|
|
472
518
|
let _ = c.fn({
|
|
473
519
|
...t,
|
|
@@ -490,39 +536,39 @@ var un = function(e) {
|
|
|
490
536
|
};
|
|
491
537
|
//#endregion
|
|
492
538
|
//#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
493
|
-
function
|
|
539
|
+
function dn() {
|
|
494
540
|
return typeof window < "u";
|
|
495
541
|
}
|
|
496
|
-
function
|
|
542
|
+
function fn(e) {
|
|
497
543
|
return mn(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
498
544
|
}
|
|
499
|
-
function
|
|
545
|
+
function X(e) {
|
|
500
546
|
var t;
|
|
501
547
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
502
548
|
}
|
|
503
|
-
function
|
|
549
|
+
function pn(e) {
|
|
504
550
|
return ((mn(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
505
551
|
}
|
|
506
552
|
function mn(e) {
|
|
507
|
-
return
|
|
508
|
-
}
|
|
509
|
-
function X(e) {
|
|
510
|
-
return fn() ? e instanceof Element || e instanceof J(e).Element : !1;
|
|
553
|
+
return dn() ? e instanceof Node || e instanceof X(e).Node : !1;
|
|
511
554
|
}
|
|
512
555
|
function Z(e) {
|
|
513
|
-
return
|
|
556
|
+
return dn() ? e instanceof Element || e instanceof X(e).Element : !1;
|
|
514
557
|
}
|
|
515
558
|
function hn(e) {
|
|
516
|
-
return
|
|
559
|
+
return dn() ? e instanceof HTMLElement || e instanceof X(e).HTMLElement : !1;
|
|
517
560
|
}
|
|
518
561
|
function gn(e) {
|
|
519
|
-
|
|
520
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
562
|
+
return !dn() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof X(e).ShadowRoot;
|
|
521
563
|
}
|
|
522
564
|
function _n(e) {
|
|
523
|
-
|
|
565
|
+
let { overflow: t, overflowX: n, overflowY: r, display: i } = Q(e);
|
|
566
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
524
567
|
}
|
|
525
568
|
function vn(e) {
|
|
569
|
+
return /^(table|td|th)$/.test(fn(e));
|
|
570
|
+
}
|
|
571
|
+
function yn(e) {
|
|
526
572
|
try {
|
|
527
573
|
if (e.matches(":popover-open")) return !0;
|
|
528
574
|
} catch {}
|
|
@@ -532,31 +578,31 @@ function vn(e) {
|
|
|
532
578
|
return !1;
|
|
533
579
|
}
|
|
534
580
|
}
|
|
535
|
-
var
|
|
536
|
-
function Cn(e) {
|
|
537
|
-
let t = X(e) ? Q(e) : e;
|
|
538
|
-
return xn(t.transform) || xn(t.translate) || xn(t.scale) || xn(t.rotate) || xn(t.perspective) || !Tn() && (xn(t.backdropFilter) || xn(t.filter)) || yn.test(t.willChange || "") || bn.test(t.contain || "");
|
|
539
|
-
}
|
|
581
|
+
var bn = /transform|translate|scale|rotate|perspective|filter/, xn = /paint|layout|strict|content/, Sn = (e) => !!e && e !== "none", Cn;
|
|
540
582
|
function wn(e) {
|
|
541
|
-
let t =
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
583
|
+
let t = Z(e) ? Q(e) : e;
|
|
584
|
+
return Sn(t.transform) || Sn(t.translate) || Sn(t.scale) || Sn(t.rotate) || Sn(t.perspective) || !En() && (Sn(t.backdropFilter) || Sn(t.filter)) || bn.test(t.willChange || "") || xn.test(t.contain || "");
|
|
585
|
+
}
|
|
586
|
+
function Tn(e) {
|
|
587
|
+
let t = kn(e);
|
|
588
|
+
for (; hn(t) && !Dn(t);) {
|
|
589
|
+
if (wn(t)) return t;
|
|
590
|
+
if (yn(t)) return null;
|
|
591
|
+
t = kn(t);
|
|
546
592
|
}
|
|
547
593
|
return null;
|
|
548
594
|
}
|
|
549
|
-
function
|
|
550
|
-
return
|
|
595
|
+
function En() {
|
|
596
|
+
return Cn ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), Cn;
|
|
551
597
|
}
|
|
552
|
-
function
|
|
553
|
-
return /^(html|body|#document)$/.test(
|
|
598
|
+
function Dn(e) {
|
|
599
|
+
return /^(html|body|#document)$/.test(fn(e));
|
|
554
600
|
}
|
|
555
601
|
function Q(e) {
|
|
556
|
-
return
|
|
602
|
+
return X(e).getComputedStyle(e);
|
|
557
603
|
}
|
|
558
|
-
function
|
|
559
|
-
return
|
|
604
|
+
function On(e) {
|
|
605
|
+
return Z(e) ? {
|
|
560
606
|
scrollLeft: e.scrollLeft,
|
|
561
607
|
scrollTop: e.scrollTop
|
|
562
608
|
} : {
|
|
@@ -564,102 +610,102 @@ function Dn(e) {
|
|
|
564
610
|
scrollTop: e.scrollY
|
|
565
611
|
};
|
|
566
612
|
}
|
|
567
|
-
function On(e) {
|
|
568
|
-
if (pn(e) === "html") return e;
|
|
569
|
-
let t = e.assignedSlot || e.parentNode || hn(e) && e.host || Y(e);
|
|
570
|
-
return hn(t) ? t.host : t;
|
|
571
|
-
}
|
|
572
613
|
function kn(e) {
|
|
573
|
-
|
|
574
|
-
|
|
614
|
+
if (fn(e) === "html") return e;
|
|
615
|
+
let t = e.assignedSlot || e.parentNode || gn(e) && e.host || pn(e);
|
|
616
|
+
return gn(t) ? t.host : t;
|
|
617
|
+
}
|
|
618
|
+
function An(e) {
|
|
619
|
+
let t = kn(e);
|
|
620
|
+
return Dn(t) ? (e.ownerDocument || e).body : hn(t) && _n(t) ? t : An(t);
|
|
575
621
|
}
|
|
576
|
-
function
|
|
622
|
+
function jn(e, t, n) {
|
|
577
623
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
578
|
-
let r =
|
|
624
|
+
let r = An(e), i = r === e.ownerDocument?.body, a = X(r);
|
|
579
625
|
if (i) {
|
|
580
|
-
let e =
|
|
581
|
-
return t.concat(a, a.visualViewport || [],
|
|
626
|
+
let e = Mn(a);
|
|
627
|
+
return t.concat(a, a.visualViewport || [], _n(r) ? r : [], e && n ? jn(e) : []);
|
|
582
628
|
}
|
|
583
|
-
return t.concat(r,
|
|
629
|
+
return t.concat(r, jn(r, [], n));
|
|
584
630
|
}
|
|
585
|
-
function
|
|
631
|
+
function Mn(e) {
|
|
586
632
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
587
633
|
}
|
|
588
634
|
//#endregion
|
|
589
635
|
//#region ../../node_modules/.pnpm/@floating-ui+dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
590
|
-
function
|
|
591
|
-
let t = Q(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i =
|
|
636
|
+
function Nn(e) {
|
|
637
|
+
let t = Q(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = hn(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = Mt(n) !== a || Mt(r) !== o;
|
|
592
638
|
return s && (n = a, r = o), {
|
|
593
639
|
width: n,
|
|
594
640
|
height: r,
|
|
595
641
|
$: s
|
|
596
642
|
};
|
|
597
643
|
}
|
|
598
|
-
function Nn(e) {
|
|
599
|
-
return X(e) ? e : e.contextElement;
|
|
600
|
-
}
|
|
601
644
|
function Pn(e) {
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
645
|
+
return Z(e) ? e : e.contextElement;
|
|
646
|
+
}
|
|
647
|
+
function Fn(e) {
|
|
648
|
+
let t = Pn(e);
|
|
649
|
+
if (!hn(t)) return J(1);
|
|
650
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Nn(t), o = (a ? Mt(n.width) : n.width) / r, s = (a ? Mt(n.height) : n.height) / i;
|
|
605
651
|
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
606
652
|
x: o,
|
|
607
653
|
y: s
|
|
608
654
|
};
|
|
609
655
|
}
|
|
610
|
-
var
|
|
611
|
-
function
|
|
612
|
-
let t =
|
|
613
|
-
return !
|
|
656
|
+
var In = /*#__PURE__*/ J(0);
|
|
657
|
+
function Ln(e) {
|
|
658
|
+
let t = X(e);
|
|
659
|
+
return !En() || !t.visualViewport ? In : {
|
|
614
660
|
x: t.visualViewport.offsetLeft,
|
|
615
661
|
y: t.visualViewport.offsetTop
|
|
616
662
|
};
|
|
617
663
|
}
|
|
618
|
-
function
|
|
619
|
-
return t === void 0 && (t = !1), !!n && t && n ===
|
|
664
|
+
function Rn(e, t, n) {
|
|
665
|
+
return t === void 0 && (t = !1), !!n && t && n === X(e);
|
|
620
666
|
}
|
|
621
|
-
function
|
|
667
|
+
function zn(e, t, n, r) {
|
|
622
668
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
623
|
-
let i = e.getBoundingClientRect(), a =
|
|
624
|
-
t && (r ?
|
|
625
|
-
let s =
|
|
669
|
+
let i = e.getBoundingClientRect(), a = Pn(e), o = J(1);
|
|
670
|
+
t && (r ? Z(r) && (o = Fn(r)) : o = Fn(e));
|
|
671
|
+
let s = Rn(a, n, r) ? Ln(a) : J(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
|
|
626
672
|
if (a && r) {
|
|
627
|
-
let e =
|
|
673
|
+
let e = X(a), t = Z(r) ? X(r) : r, n = e, i = Mn(n);
|
|
628
674
|
for (; i && t !== n;) {
|
|
629
|
-
let e =
|
|
630
|
-
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n =
|
|
675
|
+
let e = Fn(i), t = i.getBoundingClientRect(), r = Q(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
|
|
676
|
+
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = X(i), i = Mn(n);
|
|
631
677
|
}
|
|
632
678
|
}
|
|
633
|
-
return
|
|
679
|
+
return $t({
|
|
634
680
|
width: u,
|
|
635
681
|
height: d,
|
|
636
682
|
x: c,
|
|
637
683
|
y: l
|
|
638
684
|
});
|
|
639
685
|
}
|
|
640
|
-
function zn(e, t) {
|
|
641
|
-
let n = Dn(e).scrollLeft;
|
|
642
|
-
return t ? t.left + n : Rn(Y(e)).left + n;
|
|
643
|
-
}
|
|
644
686
|
function Bn(e, t) {
|
|
687
|
+
let n = On(e).scrollLeft;
|
|
688
|
+
return t ? t.left + n : zn(pn(e)).left + n;
|
|
689
|
+
}
|
|
690
|
+
function Vn(e, t) {
|
|
645
691
|
let n = e.getBoundingClientRect();
|
|
646
692
|
return {
|
|
647
|
-
x: n.left + t.scrollLeft -
|
|
693
|
+
x: n.left + t.scrollLeft - Bn(e, n),
|
|
648
694
|
y: n.top + t.scrollTop
|
|
649
695
|
};
|
|
650
696
|
}
|
|
651
|
-
function
|
|
652
|
-
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o =
|
|
697
|
+
function Hn(e) {
|
|
698
|
+
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = pn(r), s = t ? yn(t.floating) : !1;
|
|
653
699
|
if (r === o || s && a) return n;
|
|
654
700
|
let c = {
|
|
655
701
|
scrollLeft: 0,
|
|
656
702
|
scrollTop: 0
|
|
657
|
-
}, l =
|
|
658
|
-
if ((d || !a) && ((
|
|
659
|
-
let e =
|
|
660
|
-
l =
|
|
703
|
+
}, l = J(1), u = J(0), d = hn(r);
|
|
704
|
+
if ((d || !a) && ((fn(r) !== "body" || _n(o)) && (c = On(r)), d)) {
|
|
705
|
+
let e = zn(r);
|
|
706
|
+
l = Fn(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
661
707
|
}
|
|
662
|
-
let f = o && !d && !a ?
|
|
708
|
+
let f = o && !d && !a ? Vn(o, c) : J(0);
|
|
663
709
|
return {
|
|
664
710
|
width: n.width * l.x,
|
|
665
711
|
height: n.height * l.y,
|
|
@@ -667,29 +713,29 @@ function Vn(e) {
|
|
|
667
713
|
y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
|
|
668
714
|
};
|
|
669
715
|
}
|
|
670
|
-
function
|
|
716
|
+
function Un(e) {
|
|
671
717
|
return e.getClientRects ? Array.from(e.getClientRects()) : [];
|
|
672
718
|
}
|
|
673
|
-
function
|
|
674
|
-
let t =
|
|
675
|
-
return Q(n).direction === "rtl" && (a +=
|
|
719
|
+
function Wn(e) {
|
|
720
|
+
let t = On(e), n = e.ownerDocument.body, r = jt(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = jt(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft + Bn(e), o = -t.scrollTop;
|
|
721
|
+
return Q(n).direction === "rtl" && (a += jt(e.clientWidth, n.clientWidth) - r), {
|
|
676
722
|
width: r,
|
|
677
723
|
height: i,
|
|
678
724
|
x: a,
|
|
679
725
|
y: o
|
|
680
726
|
};
|
|
681
727
|
}
|
|
682
|
-
var
|
|
683
|
-
function
|
|
728
|
+
var Gn = 25;
|
|
729
|
+
function Kn(e, t, n) {
|
|
684
730
|
n === void 0 && (n = "viewport");
|
|
685
|
-
let r = n === "layoutViewport", i =
|
|
731
|
+
let r = n === "layoutViewport", i = X(e), a = pn(e), o = i.visualViewport, s = a.clientWidth, c = a.clientHeight, l = 0, u = 0;
|
|
686
732
|
if (o) {
|
|
687
|
-
let e = !
|
|
733
|
+
let e = !En() || t === "fixed";
|
|
688
734
|
r ? e || (l = -o.offsetLeft, u = -o.offsetTop) : (s = o.width, c = o.height, e && (l = o.offsetLeft, u = o.offsetTop));
|
|
689
735
|
}
|
|
690
|
-
if (
|
|
736
|
+
if (Bn(a) <= 0) {
|
|
691
737
|
let e = a.ownerDocument, t = e.body, n = getComputedStyle(t), r = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, i = Math.abs(a.clientWidth - t.clientWidth - r), o = getComputedStyle(a).scrollbarGutter === "stable both-edges" ? i / 2 : i;
|
|
692
|
-
o <=
|
|
738
|
+
o <= Gn && (s -= o);
|
|
693
739
|
}
|
|
694
740
|
return {
|
|
695
741
|
width: s,
|
|
@@ -698,8 +744,8 @@ function Gn(e, t, n) {
|
|
|
698
744
|
y: u
|
|
699
745
|
};
|
|
700
746
|
}
|
|
701
|
-
function
|
|
702
|
-
let n =
|
|
747
|
+
function qn(e, t) {
|
|
748
|
+
let n = zn(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = Fn(e);
|
|
703
749
|
return {
|
|
704
750
|
width: e.clientWidth * a.x,
|
|
705
751
|
height: e.clientHeight * a.y,
|
|
@@ -707,13 +753,13 @@ function Kn(e, t) {
|
|
|
707
753
|
y: r * a.y
|
|
708
754
|
};
|
|
709
755
|
}
|
|
710
|
-
function
|
|
756
|
+
function Jn(e, t, n) {
|
|
711
757
|
let r;
|
|
712
|
-
if (t === "viewport" || t === "layoutViewport") r =
|
|
713
|
-
else if (t === "document") r =
|
|
714
|
-
else if (
|
|
758
|
+
if (t === "viewport" || t === "layoutViewport") r = Kn(e, n, t);
|
|
759
|
+
else if (t === "document") r = Wn(pn(e));
|
|
760
|
+
else if (Z(t)) r = qn(t, n);
|
|
715
761
|
else {
|
|
716
|
-
let n =
|
|
762
|
+
let n = Ln(e);
|
|
717
763
|
r = {
|
|
718
764
|
x: t.x - n.x,
|
|
719
765
|
y: t.y - n.y,
|
|
@@ -721,23 +767,23 @@ function qn(e, t, n) {
|
|
|
721
767
|
height: t.height
|
|
722
768
|
};
|
|
723
769
|
}
|
|
724
|
-
return
|
|
770
|
+
return $t(r);
|
|
725
771
|
}
|
|
726
|
-
function
|
|
772
|
+
function Yn(e, t) {
|
|
727
773
|
let n = t.get(e);
|
|
728
774
|
if (n) return n;
|
|
729
|
-
let r =
|
|
730
|
-
for (;
|
|
731
|
-
let e = Q(o), t =
|
|
732
|
-
!t && (n === "fixed" || n === "absolute" && e.position === "static") ? r = r.filter((e) => e !== o) : i = e, o =
|
|
775
|
+
let r = jn(e, [], !1).filter((e) => Z(e) && fn(e) !== "body"), i = null, a = Q(e).position === "fixed", o = a ? kn(e) : e;
|
|
776
|
+
for (; Z(o) && !Dn(o);) {
|
|
777
|
+
let e = Q(o), t = wn(o), n = i ? i.position : a ? "fixed" : "";
|
|
778
|
+
!t && (n === "fixed" || n === "absolute" && e.position === "static") ? r = r.filter((e) => e !== o) : i = e, o = kn(o);
|
|
733
779
|
}
|
|
734
780
|
return t.set(e, r), r;
|
|
735
781
|
}
|
|
736
|
-
function
|
|
737
|
-
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ?
|
|
782
|
+
function Xn(e) {
|
|
783
|
+
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? yn(t) ? [] : Yn(t, this._c) : [].concat(n), r], o = Jn(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
|
|
738
784
|
for (let e = 1; e < a.length; e++) {
|
|
739
|
-
let n =
|
|
740
|
-
s =
|
|
785
|
+
let n = Jn(t, a[e], i);
|
|
786
|
+
s = jt(n.top, s), c = At(n.right, c), l = At(n.bottom, l), u = jt(n.left, u);
|
|
741
787
|
}
|
|
742
788
|
return {
|
|
743
789
|
width: c - u,
|
|
@@ -746,24 +792,24 @@ function Yn(e) {
|
|
|
746
792
|
y: s
|
|
747
793
|
};
|
|
748
794
|
}
|
|
749
|
-
function
|
|
750
|
-
let { width: t, height: n } =
|
|
795
|
+
function Zn(e) {
|
|
796
|
+
let { width: t, height: n } = Nn(e);
|
|
751
797
|
return {
|
|
752
798
|
width: t,
|
|
753
799
|
height: n
|
|
754
800
|
};
|
|
755
801
|
}
|
|
756
|
-
function
|
|
757
|
-
let r =
|
|
802
|
+
function Qn(e, t, n) {
|
|
803
|
+
let r = hn(t), i = pn(t), a = n === "fixed", o = zn(e, !0, a, t), s = {
|
|
758
804
|
scrollLeft: 0,
|
|
759
805
|
scrollTop: 0
|
|
760
|
-
}, c =
|
|
761
|
-
if ((r || !a) && ((
|
|
762
|
-
let e =
|
|
806
|
+
}, c = J(0);
|
|
807
|
+
if ((r || !a) && ((fn(t) !== "body" || _n(i)) && (s = On(t)), r)) {
|
|
808
|
+
let e = zn(t, !0, a, t);
|
|
763
809
|
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
764
810
|
}
|
|
765
|
-
!r && i && (c.x =
|
|
766
|
-
let l = i && !r && !a ?
|
|
811
|
+
!r && i && (c.x = Bn(i));
|
|
812
|
+
let l = i && !r && !a ? Vn(i, s) : J(0);
|
|
767
813
|
return {
|
|
768
814
|
x: o.left + s.scrollLeft - c.x - l.x,
|
|
769
815
|
y: o.top + s.scrollTop - c.y - l.y,
|
|
@@ -771,34 +817,34 @@ function Zn(e, t, n) {
|
|
|
771
817
|
height: o.height
|
|
772
818
|
};
|
|
773
819
|
}
|
|
774
|
-
function
|
|
820
|
+
function $n(e) {
|
|
775
821
|
return Q(e).position === "static";
|
|
776
822
|
}
|
|
777
|
-
function
|
|
778
|
-
if (!
|
|
823
|
+
function er(e, t) {
|
|
824
|
+
if (!hn(e) || Q(e).position === "fixed") return null;
|
|
779
825
|
if (t) return t(e);
|
|
780
826
|
let n = e.offsetParent;
|
|
781
|
-
return
|
|
782
|
-
}
|
|
783
|
-
function
|
|
784
|
-
let n =
|
|
785
|
-
if (
|
|
786
|
-
if (!
|
|
787
|
-
let t =
|
|
788
|
-
for (; t && !
|
|
789
|
-
if (
|
|
790
|
-
t =
|
|
827
|
+
return pn(e) === n && (n = n.ownerDocument.body), n;
|
|
828
|
+
}
|
|
829
|
+
function tr(e, t) {
|
|
830
|
+
let n = X(e);
|
|
831
|
+
if (yn(e)) return n;
|
|
832
|
+
if (!hn(e)) {
|
|
833
|
+
let t = kn(e);
|
|
834
|
+
for (; t && !Dn(t);) {
|
|
835
|
+
if (Z(t) && !$n(t)) return t;
|
|
836
|
+
t = kn(t);
|
|
791
837
|
}
|
|
792
838
|
return n;
|
|
793
839
|
}
|
|
794
|
-
let r =
|
|
795
|
-
for (; r &&
|
|
796
|
-
return r &&
|
|
840
|
+
let r = er(e, t);
|
|
841
|
+
for (; r && vn(r) && $n(r);) r = er(r, t);
|
|
842
|
+
return r && Dn(r) && $n(r) && !wn(r) ? n : r || Tn(e) || n;
|
|
797
843
|
}
|
|
798
|
-
var
|
|
799
|
-
let t = this.getOffsetParent ||
|
|
844
|
+
var nr = async function(e) {
|
|
845
|
+
let t = this.getOffsetParent || tr, n = this.getDimensions, r = await n(e.floating);
|
|
800
846
|
return {
|
|
801
|
-
reference:
|
|
847
|
+
reference: Qn(e.reference, await t(e.floating), e.strategy),
|
|
802
848
|
floating: {
|
|
803
849
|
x: 0,
|
|
804
850
|
y: 0,
|
|
@@ -807,77 +853,77 @@ var tr = async function(e) {
|
|
|
807
853
|
}
|
|
808
854
|
};
|
|
809
855
|
};
|
|
810
|
-
function
|
|
856
|
+
function rr(e) {
|
|
811
857
|
return Q(e).direction === "rtl";
|
|
812
858
|
}
|
|
813
|
-
var
|
|
814
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
815
|
-
getDocumentElement:
|
|
816
|
-
getClippingRect:
|
|
817
|
-
getOffsetParent:
|
|
818
|
-
getElementRects:
|
|
819
|
-
getClientRects:
|
|
820
|
-
getDimensions:
|
|
821
|
-
getScale:
|
|
822
|
-
isElement:
|
|
823
|
-
isRTL:
|
|
824
|
-
},
|
|
859
|
+
var ir = {
|
|
860
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Hn,
|
|
861
|
+
getDocumentElement: pn,
|
|
862
|
+
getClippingRect: Xn,
|
|
863
|
+
getOffsetParent: tr,
|
|
864
|
+
getElementRects: nr,
|
|
865
|
+
getClientRects: Un,
|
|
866
|
+
getDimensions: Zn,
|
|
867
|
+
getScale: Fn,
|
|
868
|
+
isElement: Z,
|
|
869
|
+
isRTL: rr
|
|
870
|
+
}, ar = ln, or = un, sr = on, cr = an, lr = (e, t, n) => {
|
|
825
871
|
let r = /* @__PURE__ */ new Map(), i = n ?? {}, a = {
|
|
826
|
-
...
|
|
872
|
+
...ir,
|
|
827
873
|
...i.platform,
|
|
828
874
|
_c: r
|
|
829
875
|
};
|
|
830
|
-
return
|
|
876
|
+
return rn(e, t, {
|
|
831
877
|
...i,
|
|
832
878
|
platform: a
|
|
833
879
|
});
|
|
834
880
|
};
|
|
835
881
|
//#endregion
|
|
836
882
|
//#region ../../node_modules/.pnpm/@floating-ui+vue@2.0.1_vue@3.5.42_typescript@6.0.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs
|
|
837
|
-
function
|
|
883
|
+
function ur(e) {
|
|
838
884
|
return typeof e == "object" && !!e && "$el" in e;
|
|
839
885
|
}
|
|
840
|
-
function
|
|
841
|
-
if (
|
|
886
|
+
function dr(e) {
|
|
887
|
+
if (ur(e)) {
|
|
842
888
|
let t = e.$el;
|
|
843
|
-
return mn(t) &&
|
|
889
|
+
return mn(t) && fn(t) === "#comment" ? null : t;
|
|
844
890
|
}
|
|
845
891
|
return e;
|
|
846
892
|
}
|
|
847
|
-
function
|
|
893
|
+
function fr(e) {
|
|
848
894
|
return {
|
|
849
895
|
name: "arrow",
|
|
850
896
|
options: e,
|
|
851
897
|
fn(t) {
|
|
852
|
-
let n =
|
|
853
|
-
return n == null ? {} :
|
|
898
|
+
let n = dr(et(e.element));
|
|
899
|
+
return n == null ? {} : cr({
|
|
854
900
|
element: n,
|
|
855
901
|
padding: e.padding
|
|
856
902
|
}).fn(t);
|
|
857
903
|
}
|
|
858
904
|
};
|
|
859
905
|
}
|
|
860
|
-
function
|
|
906
|
+
function pr(e) {
|
|
861
907
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
862
908
|
}
|
|
863
|
-
function
|
|
864
|
-
let n =
|
|
909
|
+
function mr(e, t) {
|
|
910
|
+
let n = pr(e);
|
|
865
911
|
return Math.round(t * n) / n;
|
|
866
912
|
}
|
|
867
|
-
function
|
|
913
|
+
function hr(e, t, n) {
|
|
868
914
|
n === void 0 && (n = {});
|
|
869
|
-
let r = n.whileElementsMounted, i =
|
|
915
|
+
let r = n.whileElementsMounted, i = M(() => et(n.open) ?? !0), a = M(() => et(n.middleware)), o = M(() => et(n.placement) ?? "bottom"), s = M(() => et(n.strategy) ?? "absolute"), c = M(() => et(n.transform) ?? !0), l = M(() => dr(e.value)), u = M(() => dr(t.value)), d = H(0), f = H(0), p = H(s.value), m = H(o.value), h = $e({}), g = H(!1), _ = M(() => {
|
|
870
916
|
let e = {
|
|
871
917
|
position: p.value,
|
|
872
918
|
left: "0",
|
|
873
919
|
top: "0"
|
|
874
920
|
};
|
|
875
921
|
if (!u.value) return e;
|
|
876
|
-
let t =
|
|
922
|
+
let t = mr(u.value, d.value), n = mr(u.value, f.value);
|
|
877
923
|
return c.value ? {
|
|
878
924
|
...e,
|
|
879
925
|
transform: "translate(" + t + "px, " + n + "px)",
|
|
880
|
-
...
|
|
926
|
+
...pr(u.value) >= 1.5 && { willChange: "transform" }
|
|
881
927
|
} : {
|
|
882
928
|
position: p.value,
|
|
883
929
|
left: t + "px",
|
|
@@ -887,7 +933,7 @@ function mr(e, t, n) {
|
|
|
887
933
|
function y() {
|
|
888
934
|
if (l.value == null || u.value == null) return;
|
|
889
935
|
let e = i.value;
|
|
890
|
-
|
|
936
|
+
lr(l.value, u.value, {
|
|
891
937
|
middleware: a.value,
|
|
892
938
|
placement: o.value,
|
|
893
939
|
strategy: s.value
|
|
@@ -911,36 +957,36 @@ function mr(e, t, n) {
|
|
|
911
957
|
function S() {
|
|
912
958
|
i.value || (g.value = !1);
|
|
913
959
|
}
|
|
914
|
-
return
|
|
960
|
+
return q([
|
|
915
961
|
a,
|
|
916
962
|
o,
|
|
917
963
|
s,
|
|
918
964
|
i
|
|
919
|
-
], y, { flush: "sync" }),
|
|
920
|
-
x:
|
|
921
|
-
y:
|
|
922
|
-
strategy:
|
|
923
|
-
placement:
|
|
924
|
-
middlewareData:
|
|
925
|
-
isPositioned:
|
|
965
|
+
], y, { flush: "sync" }), q([l, u], x, { flush: "sync" }), q(i, S, { flush: "sync" }), ze() && qe(b), {
|
|
966
|
+
x: Qe(d),
|
|
967
|
+
y: Qe(f),
|
|
968
|
+
strategy: Qe(p),
|
|
969
|
+
placement: Qe(m),
|
|
970
|
+
middlewareData: Qe(h),
|
|
971
|
+
isPositioned: Qe(g),
|
|
926
972
|
floatingStyles: _,
|
|
927
973
|
update: y
|
|
928
974
|
};
|
|
929
975
|
}
|
|
930
976
|
//#endregion
|
|
931
977
|
//#region src/client/theme-default/components/TdTooltip.vue
|
|
932
|
-
var
|
|
978
|
+
var gr = /*#__PURE__*/ O(/* @__PURE__ */ z({
|
|
933
979
|
inheritAttrs: !1,
|
|
934
980
|
__name: "TdTooltip",
|
|
935
981
|
props: { text: {} },
|
|
936
982
|
setup(e) {
|
|
937
|
-
let t =
|
|
983
|
+
let t = rt("trigger"), n = rt("tooltip"), r = rt("arrowEl"), i = H(!1), a, o, { floatingStyles: s, middlewareData: c, placement: l } = hr(t, n, {
|
|
938
984
|
placement: "right",
|
|
939
985
|
middleware: [
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
986
|
+
ar(8),
|
|
987
|
+
sr(),
|
|
988
|
+
or({ padding: 8 }),
|
|
989
|
+
fr({ element: r })
|
|
944
990
|
]
|
|
945
991
|
});
|
|
946
992
|
function u() {
|
|
@@ -958,193 +1004,195 @@ var hr = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
|
958
1004
|
i.value = !1;
|
|
959
1005
|
}, 100);
|
|
960
1006
|
}
|
|
961
|
-
return (r, a) => (
|
|
1007
|
+
return (r, a) => (V(), F(j, null, [I("span", He({
|
|
962
1008
|
ref_key: "trigger",
|
|
963
1009
|
ref: t
|
|
964
1010
|
}, r.$attrs, {
|
|
965
1011
|
class: "td-tooltip-trigger",
|
|
966
1012
|
onMouseenter: d,
|
|
967
1013
|
onMouseleave: f
|
|
968
|
-
}), [Xe(r.$slots, "default", {}, void 0, !0)], 16), (
|
|
1014
|
+
}), [Xe(r.$slots, "default", {}, void 0, !0)], 16), (V(), N(Le, { to: "body" }, [i.value ? (V(), F("div", {
|
|
969
1015
|
key: 0,
|
|
970
1016
|
ref_key: "tooltip",
|
|
971
1017
|
ref: n,
|
|
972
1018
|
class: "td-tooltip",
|
|
973
|
-
style: We(
|
|
1019
|
+
style: We(K(s)),
|
|
974
1020
|
role: "tooltip",
|
|
975
1021
|
onMouseenter: u,
|
|
976
1022
|
onMouseleave: f
|
|
977
|
-
}, [
|
|
1023
|
+
}, [L(G(e.text) + " ", 1), I("div", {
|
|
978
1024
|
ref: "arrowEl",
|
|
979
1025
|
class: "td-tooltip-arrow",
|
|
980
1026
|
style: We({
|
|
981
|
-
left:
|
|
982
|
-
top:
|
|
983
|
-
...
|
|
984
|
-
...
|
|
985
|
-
...
|
|
986
|
-
...
|
|
1027
|
+
left: K(c).arrow?.x === void 0 ? "" : `${K(c).arrow.x}px`,
|
|
1028
|
+
top: K(c).arrow?.y === void 0 ? "" : `${K(c).arrow.y}px`,
|
|
1029
|
+
...K(l).startsWith("bottom") ? { top: "-4px" } : {},
|
|
1030
|
+
...K(l).startsWith("top") ? { bottom: "-4px" } : {},
|
|
1031
|
+
...K(l).startsWith("right") ? { left: "-4px" } : {},
|
|
1032
|
+
...K(l).startsWith("left") ? { right: "-4px" } : {}
|
|
987
1033
|
})
|
|
988
|
-
}, null, 4)], 36)) :
|
|
1034
|
+
}, null, 4)], 36)) : P("", !0)]))], 64));
|
|
989
1035
|
}
|
|
990
|
-
}), [["__scopeId", "data-v-
|
|
1036
|
+
}), [["__scopeId", "data-v-fca9f648"]]), _r = {
|
|
991
1037
|
key: 0,
|
|
992
1038
|
class: "td-tree-node"
|
|
993
|
-
},
|
|
994
|
-
key: 0,
|
|
995
|
-
class: "td-tree-children"
|
|
996
|
-
}, Cr = ["href"], wr = ["innerHTML"], Tr = {
|
|
1039
|
+
}, vr = { class: "td-tree-label" }, yr = ["aria-expanded"], br = { class: "td-tree-label-text" }, xr = ["href"], Sr = { class: "td-tree-count" }, Cr = ["href"], wr = ["innerHTML"], Tr = {
|
|
997
1040
|
key: 2,
|
|
998
1041
|
class: "td-tree-time"
|
|
999
|
-
}, Er = 5, Dr = /*#__PURE__*/
|
|
1042
|
+
}, Er = 5, Dr = /*#__PURE__*/ O(/* @__PURE__ */ z({
|
|
1000
1043
|
__name: "TdTreeNode",
|
|
1001
1044
|
props: {
|
|
1002
1045
|
node: {},
|
|
1003
1046
|
urlPrefix: { default: "" }
|
|
1004
1047
|
},
|
|
1005
1048
|
setup(n) {
|
|
1006
|
-
let r =
|
|
1049
|
+
let r = A(), { withBase: i } = k(), a = M(() => T(n.urlPrefix, n.node.name)), o = M(() => h(n.node)), s = M(() => o.value ? w(o.value.filepath) : l(a.value)), c = M(() => i(s.value)), d = M(() => o.value?.label ?? e(n.node.name)), f = M(() => o.value?.icon ? ye(o.value.icon.name) : void 0), p = M(() => n.node.entries.filter((e) => e.kind === "dir" || !C(e.item.filepath))), m = M(() => 0 < n.node.entries.length), _ = M(() => v(n.node));
|
|
1007
1050
|
function v(e) {
|
|
1008
1051
|
let t = 0;
|
|
1009
1052
|
for (let n of e.entries) n.kind === "file" ? t++ : t += v(n.node);
|
|
1010
1053
|
return t;
|
|
1011
1054
|
}
|
|
1012
|
-
let y =
|
|
1055
|
+
let y = H(!t(a.value, r.path)), b = H(!1), x = M(() => p.value.filter((e) => e.kind === "file").length), S = M(() => b.value ? 0 : Math.max(0, x.value - Er)), ee = M(() => {
|
|
1013
1056
|
if (b.value) return p.value;
|
|
1014
1057
|
let e = 0;
|
|
1015
1058
|
return p.value.filter((t) => t.kind === "dir" || ++e <= Er);
|
|
1016
1059
|
});
|
|
1017
|
-
|
|
1060
|
+
q(() => r.path, (e) => {
|
|
1018
1061
|
t(a.value, e) && (y.value = !1);
|
|
1019
1062
|
});
|
|
1020
|
-
function
|
|
1063
|
+
function te() {
|
|
1021
1064
|
b.value = !0;
|
|
1022
1065
|
}
|
|
1023
|
-
function
|
|
1066
|
+
function ne(e) {
|
|
1024
1067
|
return r.path === e;
|
|
1025
1068
|
}
|
|
1026
|
-
function
|
|
1069
|
+
function E() {
|
|
1027
1070
|
y.value = !y.value;
|
|
1028
1071
|
}
|
|
1029
1072
|
return (e, t) => {
|
|
1030
1073
|
let n = Ze("TdTreeNode", !0);
|
|
1031
|
-
return
|
|
1032
|
-
|
|
1074
|
+
return m.value ? (V(), F("div", _r, [I("div", vr, [
|
|
1075
|
+
I("button", {
|
|
1033
1076
|
type: "button",
|
|
1034
1077
|
class: "td-tree-toggle",
|
|
1035
1078
|
"aria-expanded": !y.value,
|
|
1036
|
-
onClick:
|
|
1037
|
-
}, [
|
|
1079
|
+
onClick: E
|
|
1080
|
+
}, [R(K(xe), {
|
|
1038
1081
|
size: 14,
|
|
1039
|
-
class:
|
|
1040
|
-
}, null, 8, ["class"]),
|
|
1041
|
-
|
|
1082
|
+
class: B(["td-tree-caret", { "is-collapsed": y.value }])
|
|
1083
|
+
}, null, 8, ["class"]), I("span", br, G(d.value), 1)], 8, yr),
|
|
1084
|
+
I("a", {
|
|
1042
1085
|
href: c.value,
|
|
1043
|
-
class:
|
|
1044
|
-
}, [f.value ? (
|
|
1086
|
+
class: B(["td-tree-index-btn", { "is-active": ne(s.value) }])
|
|
1087
|
+
}, [f.value ? (V(), N(W(f.value), {
|
|
1045
1088
|
key: 0,
|
|
1046
1089
|
size: 12
|
|
1047
|
-
})) :
|
|
1090
|
+
})) : ne(s.value) ? (V(), N(K(mt), {
|
|
1048
1091
|
key: 1,
|
|
1049
1092
|
size: 12
|
|
1050
|
-
})) : (
|
|
1093
|
+
})) : (V(), N(K(pe), {
|
|
1051
1094
|
key: 2,
|
|
1052
1095
|
size: 12
|
|
1053
|
-
}))], 10,
|
|
1054
|
-
|
|
1055
|
-
]),
|
|
1096
|
+
}))], 10, xr),
|
|
1097
|
+
I("span", Sr, G(_.value), 1)
|
|
1098
|
+
]), I("div", { class: B(["td-collapse td-tree-children", { "is-collapsed": y.value }]) }, [I("div", null, [(V(!0), F(j, null, U(ee.value, (e) => (V(), F(j, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (V(), N(n, {
|
|
1056
1099
|
key: 0,
|
|
1057
1100
|
node: e.node,
|
|
1058
1101
|
"url-prefix": a.value
|
|
1059
|
-
}, null, 8, ["node", "url-prefix"])) : (
|
|
1102
|
+
}, null, 8, ["node", "url-prefix"])) : (V(), F("a", {
|
|
1060
1103
|
key: 1,
|
|
1061
|
-
href:
|
|
1062
|
-
class:
|
|
1104
|
+
href: K(i)(K(w)(e.item.filepath)),
|
|
1105
|
+
class: B(["td-tree-link", { "is-active": ne(K(w)(e.item.filepath)) }])
|
|
1063
1106
|
}, [
|
|
1064
|
-
e.item.icon &&
|
|
1107
|
+
e.item.icon && K(ye)(e.item.icon.name) ? (V(), N(W(K(ye)(e.item.icon.name)), {
|
|
1065
1108
|
key: 0,
|
|
1066
1109
|
size: 14,
|
|
1067
1110
|
class: "td-tree-file-icon"
|
|
1068
|
-
})) : (
|
|
1111
|
+
})) : (V(), N(K(ae), {
|
|
1069
1112
|
key: 1,
|
|
1070
1113
|
size: 14,
|
|
1071
1114
|
class: "td-tree-file-icon"
|
|
1072
1115
|
})),
|
|
1073
|
-
|
|
1116
|
+
R(gr, {
|
|
1074
1117
|
class: "td-tree-link-text",
|
|
1075
|
-
text:
|
|
1118
|
+
text: K(u)(e.item.filepath, e.item.label)
|
|
1076
1119
|
}, {
|
|
1077
|
-
default:
|
|
1120
|
+
default: ot(() => [I("span", { innerHTML: K(kt)(K(u)(e.item.filepath, e.item.label)) }, null, 8, wr)]),
|
|
1078
1121
|
_: 2
|
|
1079
1122
|
}, 1032, ["text"]),
|
|
1080
|
-
e.item.metadata ? (
|
|
1081
|
-
], 10, Cr))], 64))), 128)),
|
|
1123
|
+
e.item.metadata ? (V(), F("span", Tr, G(K(g)(e.item.metadata.mtime)), 1)) : P("", !0)
|
|
1124
|
+
], 10, Cr))], 64))), 128)), S.value > 0 && !b.value ? (V(), F("button", {
|
|
1082
1125
|
key: 0,
|
|
1083
1126
|
class: "td-tree-more",
|
|
1084
1127
|
type: "button",
|
|
1085
|
-
onClick:
|
|
1086
|
-
},
|
|
1128
|
+
onClick: te
|
|
1129
|
+
}, G(S.value) + " more... ", 1)) : P("", !0)])], 2)])) : P("", !0);
|
|
1087
1130
|
};
|
|
1088
1131
|
}
|
|
1089
|
-
}), [["__scopeId", "data-v-
|
|
1132
|
+
}), [["__scopeId", "data-v-d7e7ef3b"]]), Or = ["href"], kr = {
|
|
1090
1133
|
key: 0,
|
|
1091
1134
|
class: "td-root-link-time"
|
|
1092
1135
|
}, Ar = ["href"], jr = { class: "td-root-link-text" }, Mr = {
|
|
1093
|
-
key:
|
|
1136
|
+
key: 2,
|
|
1094
1137
|
class: "td-root-link-time"
|
|
1095
|
-
}, Nr = /*#__PURE__*/
|
|
1138
|
+
}, Nr = /*#__PURE__*/ O(/* @__PURE__ */ z({
|
|
1096
1139
|
__name: "TdContentNav",
|
|
1097
1140
|
props: { tree: {} },
|
|
1098
1141
|
setup(e) {
|
|
1099
|
-
let t =
|
|
1142
|
+
let t = A(), { withBase: n } = k(), r = M(() => e.tree.entries.find((e) => e.kind === "file" && C(e.item.filepath))?.item), i = M(() => e.tree.entries.filter((e) => e.kind === "dir" || !C(e.item.filepath)));
|
|
1100
1143
|
function a(e) {
|
|
1101
1144
|
return t.path === e;
|
|
1102
1145
|
}
|
|
1103
|
-
return (e, t) => (
|
|
1104
|
-
href:
|
|
1105
|
-
class:
|
|
1146
|
+
return (e, t) => (V(), F("nav", null, [I("a", {
|
|
1147
|
+
href: K(n)(r.value ? K(w)(r.value.filepath) : K(l)("/")),
|
|
1148
|
+
class: B(["td-root-link", { "is-active": a(r.value ? K(w)(r.value.filepath) : K(l)("/")) }])
|
|
1106
1149
|
}, [
|
|
1107
|
-
|
|
1150
|
+
R(K(Ae), {
|
|
1108
1151
|
size: 14,
|
|
1109
1152
|
class: "td-root-link-icon"
|
|
1110
1153
|
}),
|
|
1111
|
-
t[0] ||=
|
|
1112
|
-
r.value ? (
|
|
1113
|
-
], 10, Or), (
|
|
1154
|
+
t[0] ||= I("span", { class: "td-root-link-text" }, "Overview", -1),
|
|
1155
|
+
r.value ? (V(), F("span", kr, G(r.value.metadata ? K(g)(r.value.metadata.mtime) : ""), 1)) : P("", !0)
|
|
1156
|
+
], 10, Or), (V(!0), F(j, null, U(i.value, (e) => (V(), F(j, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (V(), N(Dr, {
|
|
1114
1157
|
key: 0,
|
|
1115
1158
|
node: e.node
|
|
1116
|
-
}, null, 8, ["node"])) : (
|
|
1159
|
+
}, null, 8, ["node"])) : (V(), F("a", {
|
|
1117
1160
|
key: 1,
|
|
1118
|
-
href:
|
|
1119
|
-
class:
|
|
1161
|
+
href: K(n)(K(w)(e.item.filepath)),
|
|
1162
|
+
class: B(["td-root-link", { "is-active": a(K(w)(e.item.filepath)) }])
|
|
1120
1163
|
}, [
|
|
1121
|
-
|
|
1164
|
+
e.item.icon && K(ye)(e.item.icon.name) ? (V(), N(W(K(ye)(e.item.icon.name)), {
|
|
1165
|
+
key: 0,
|
|
1122
1166
|
size: 14,
|
|
1123
1167
|
class: "td-root-link-icon"
|
|
1124
|
-
}),
|
|
1125
|
-
|
|
1126
|
-
|
|
1168
|
+
})) : (V(), N(K(ae), {
|
|
1169
|
+
key: 1,
|
|
1170
|
+
size: 14,
|
|
1171
|
+
class: "td-root-link-icon"
|
|
1172
|
+
})),
|
|
1173
|
+
I("span", jr, G(K(u)(e.item.filepath, e.item.label)), 1),
|
|
1174
|
+
e.item.metadata ? (V(), F("span", Mr, G(K(g)(e.item.metadata.mtime)), 1)) : P("", !0)
|
|
1127
1175
|
], 10, Ar))], 64))), 128))]));
|
|
1128
1176
|
}
|
|
1129
|
-
}), [["__scopeId", "data-v-
|
|
1177
|
+
}), [["__scopeId", "data-v-13f1dd79"]]), Pr = { class: "td-footer" }, Fr = { key: 0 }, Ir = /*#__PURE__*/ O(/* @__PURE__ */ z({
|
|
1130
1178
|
__name: "TdFooter",
|
|
1131
1179
|
setup(e) {
|
|
1132
|
-
let t =
|
|
1133
|
-
return (e, r) => (
|
|
1180
|
+
let t = k(), n = (/* @__PURE__ */ new Date()).getFullYear();
|
|
1181
|
+
return (e, r) => (V(), F("footer", Pr, [r[0] ||= I("span", null, [L(" Powered by "), I("a", {
|
|
1134
1182
|
href: "https://github.com/huydo862003/typerighter",
|
|
1135
1183
|
target: "_blank",
|
|
1136
1184
|
rel: "noopener noreferrer",
|
|
1137
1185
|
class: "td-footer-link"
|
|
1138
|
-
}, "Typerighter")], -1),
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
])) :
|
|
1186
|
+
}, "Typerighter")], -1), K(t).author || K(t).license ? (V(), F("span", Fr, [
|
|
1187
|
+
K(t).license ? (V(), F(j, { key: 0 }, [L(G(K(t).license), 1)], 64)) : P("", !0),
|
|
1188
|
+
K(t).license && K(t).author ? (V(), F(j, { key: 1 }, [L(" · ")], 64)) : P("", !0),
|
|
1189
|
+
K(t).author ? (V(), F(j, { key: 2 }, [L("© " + G(K(n)) + " " + G(K(t).author), 1)], 64)) : P("", !0)
|
|
1190
|
+
])) : P("", !0)]));
|
|
1143
1191
|
}
|
|
1144
|
-
}), [["__scopeId", "data-v-
|
|
1192
|
+
}), [["__scopeId", "data-v-50e2a5bc"]]), Lr = {
|
|
1145
1193
|
key: 0,
|
|
1146
1194
|
class: "td-dropdown-panel"
|
|
1147
|
-
}, Rr = /*#__PURE__*/
|
|
1195
|
+
}, Rr = /*#__PURE__*/ O(/* @__PURE__ */ z({
|
|
1148
1196
|
inheritAttrs: !1,
|
|
1149
1197
|
__name: "TdDropdown",
|
|
1150
1198
|
props: {
|
|
@@ -1156,23 +1204,23 @@ var hr = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
|
1156
1204
|
},
|
|
1157
1205
|
emits: ["update:open"],
|
|
1158
1206
|
setup(e) {
|
|
1159
|
-
let t =
|
|
1207
|
+
let t = nt(e, "open"), n = rt("wrapper");
|
|
1160
1208
|
function r(e) {
|
|
1161
1209
|
n.value?.contains(e.target) || (t.value = !1);
|
|
1162
1210
|
}
|
|
1163
1211
|
function i() {
|
|
1164
1212
|
t.value = !t.value;
|
|
1165
1213
|
}
|
|
1166
|
-
return
|
|
1214
|
+
return q(t, (e) => {
|
|
1167
1215
|
typeof document > "u" || (e ? document.addEventListener("click", r) : document.removeEventListener("click", r));
|
|
1168
1216
|
}), Je(() => {
|
|
1169
1217
|
typeof document > "u" || document.removeEventListener("click", r);
|
|
1170
|
-
}), (e, r) => (
|
|
1218
|
+
}), (e, r) => (V(), F("span", He({
|
|
1171
1219
|
ref_key: "wrapper",
|
|
1172
1220
|
ref: n
|
|
1173
|
-
}, e.$attrs, { class: "td-dropdown" }), [
|
|
1221
|
+
}, e.$attrs, { class: "td-dropdown" }), [I("span", { onClick: i }, [Xe(e.$slots, "trigger", {}, void 0, !0)]), t.value ? (V(), F("div", Lr, [Xe(e.$slots, "default", {}, void 0, !0)])) : P("", !0)], 16));
|
|
1174
1222
|
}
|
|
1175
|
-
}), [["__scopeId", "data-v-
|
|
1223
|
+
}), [["__scopeId", "data-v-80759150"]]), zr = {
|
|
1176
1224
|
class: "td-breadcrumb",
|
|
1177
1225
|
"aria-label": "Breadcrumb"
|
|
1178
1226
|
}, Br = ["href"], Vr = {
|
|
@@ -1184,10 +1232,10 @@ var hr = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
|
1184
1232
|
}, Gr = ["href"], Kr = {
|
|
1185
1233
|
key: 1,
|
|
1186
1234
|
class: "td-breadcrumb-current"
|
|
1187
|
-
}, qr = 3, Jr = /*#__PURE__*/
|
|
1235
|
+
}, qr = 3, Jr = /*#__PURE__*/ O(/* @__PURE__ */ z({
|
|
1188
1236
|
__name: "TdBreadcrumb",
|
|
1189
1237
|
setup(t) {
|
|
1190
|
-
let r =
|
|
1238
|
+
let r = A(), { withBase: i } = k(), o = H(!1), s = M(() => {
|
|
1191
1239
|
let t = a(r.path), o = [{
|
|
1192
1240
|
name: "Home",
|
|
1193
1241
|
href: i(l("/"))
|
|
@@ -1202,119 +1250,119 @@ var hr = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
|
1202
1250
|
});
|
|
1203
1251
|
}
|
|
1204
1252
|
return o;
|
|
1205
|
-
}), c =
|
|
1206
|
-
return
|
|
1253
|
+
}), c = M(() => qr < s.value.length), u = M(() => s.value.slice(1, -2));
|
|
1254
|
+
return q(() => r.path, () => {
|
|
1207
1255
|
o.value = !1;
|
|
1208
|
-
}), (e, t) => (
|
|
1256
|
+
}), (e, t) => (V(), F("nav", zr, [I("a", {
|
|
1209
1257
|
href: s.value[0].href,
|
|
1210
1258
|
class: "td-breadcrumb-link td-breadcrumb-home"
|
|
1211
|
-
},
|
|
1212
|
-
t[2] ||=
|
|
1259
|
+
}, G(s.value[0].name), 9, Br), c.value ? (V(), F(j, { key: 0 }, [
|
|
1260
|
+
t[2] ||= I("span", {
|
|
1213
1261
|
class: "td-breadcrumb-sep",
|
|
1214
1262
|
"aria-hidden": "true"
|
|
1215
1263
|
}, "/", -1),
|
|
1216
|
-
|
|
1264
|
+
R(Rr, {
|
|
1217
1265
|
open: o.value,
|
|
1218
1266
|
"onUpdate:open": t[0] ||= (e) => o.value = e
|
|
1219
1267
|
}, {
|
|
1220
|
-
trigger:
|
|
1221
|
-
default:
|
|
1268
|
+
trigger: ot(() => [I("button", Vr, [R(K(ue), { size: 14 })])]),
|
|
1269
|
+
default: ot(() => [(V(!0), F(j, null, U(u.value, (e) => (V(), F("a", {
|
|
1222
1270
|
key: e.href,
|
|
1223
1271
|
href: e.href,
|
|
1224
1272
|
class: "td-breadcrumb-dropdown-item"
|
|
1225
|
-
},
|
|
1273
|
+
}, G(e.name), 9, Hr))), 128))]),
|
|
1226
1274
|
_: 1
|
|
1227
1275
|
}, 8, ["open"]),
|
|
1228
|
-
(
|
|
1276
|
+
(V(!0), F(j, null, U(s.value.slice(-2), (e) => (V(), F(j, { key: e.href }, [t[1] ||= I("span", {
|
|
1229
1277
|
class: "td-breadcrumb-sep",
|
|
1230
1278
|
"aria-hidden": "true"
|
|
1231
|
-
}, "/", -1), e === s.value[s.value.length - 1] ? (
|
|
1279
|
+
}, "/", -1), e === s.value[s.value.length - 1] ? (V(), F("span", Wr, G(e.name), 1)) : (V(), F("a", {
|
|
1232
1280
|
key: 0,
|
|
1233
1281
|
href: e.href,
|
|
1234
1282
|
class: "td-breadcrumb-link"
|
|
1235
|
-
},
|
|
1236
|
-
], 64)) : (
|
|
1283
|
+
}, G(e.name), 9, Ur))], 64))), 128))
|
|
1284
|
+
], 64)) : (V(!0), F(j, { key: 1 }, U(s.value.slice(1), (e, n) => (V(), F(j, { key: e.href }, [t[3] ||= I("span", {
|
|
1237
1285
|
class: "td-breadcrumb-sep",
|
|
1238
1286
|
"aria-hidden": "true"
|
|
1239
|
-
}, "/", -1), n < s.value.length - 2 ? (
|
|
1287
|
+
}, "/", -1), n < s.value.length - 2 ? (V(), F("a", {
|
|
1240
1288
|
key: 0,
|
|
1241
1289
|
href: e.href,
|
|
1242
1290
|
class: "td-breadcrumb-link"
|
|
1243
|
-
},
|
|
1291
|
+
}, G(e.name), 9, Gr)) : (V(), F("span", Kr, G(e.name), 1))], 64))), 128))]));
|
|
1244
1292
|
}
|
|
1245
|
-
}), [["__scopeId", "data-v-
|
|
1293
|
+
}), [["__scopeId", "data-v-3400a7c6"]]), Yr = {
|
|
1246
1294
|
key: 0,
|
|
1247
1295
|
class: "td-header-nav"
|
|
1248
1296
|
}, Xr = [
|
|
1249
1297
|
"href",
|
|
1250
1298
|
"target",
|
|
1251
1299
|
"rel"
|
|
1252
|
-
], Zr = /*#__PURE__*/
|
|
1300
|
+
], Zr = /*#__PURE__*/ O(/* @__PURE__ */ z({
|
|
1253
1301
|
__name: "TdHeaderNavBar",
|
|
1254
1302
|
setup(e) {
|
|
1255
|
-
let t =
|
|
1303
|
+
let t = k(), { withBase: n } = t, r = A();
|
|
1256
1304
|
function i(e) {
|
|
1257
1305
|
return !s(e) && r.path.startsWith(n(e));
|
|
1258
1306
|
}
|
|
1259
|
-
return (e, r) =>
|
|
1307
|
+
return (e, r) => K(t).nav?.length ? (V(), F("nav", Yr, [(V(!0), F(j, null, U(K(t).nav, (e) => (V(), F("a", {
|
|
1260
1308
|
key: e.link,
|
|
1261
|
-
href:
|
|
1262
|
-
target:
|
|
1263
|
-
rel:
|
|
1264
|
-
class:
|
|
1265
|
-
}, [
|
|
1309
|
+
href: K(s)(e.link) ? e.link : K(n)(e.link),
|
|
1310
|
+
target: K(s)(e.link) ? "_blank" : void 0,
|
|
1311
|
+
rel: K(s)(e.link) ? "noopener noreferrer" : void 0,
|
|
1312
|
+
class: B(["td-header-nav-link", { "is-active": i(e.link) }])
|
|
1313
|
+
}, [L(G(e.title), 1), K(s)(e.link) ? (V(), N(K(le), {
|
|
1266
1314
|
key: 0,
|
|
1267
1315
|
size: 14
|
|
1268
|
-
})) :
|
|
1316
|
+
})) : P("", !0)], 10, Xr))), 128))])) : P("", !0);
|
|
1269
1317
|
}
|
|
1270
|
-
}), [["__scopeId", "data-v-
|
|
1318
|
+
}), [["__scopeId", "data-v-f416755c"]]), Qr = {
|
|
1271
1319
|
key: 0,
|
|
1272
1320
|
class: "td-menu-nav"
|
|
1273
1321
|
}, $r = [
|
|
1274
1322
|
"href",
|
|
1275
1323
|
"target",
|
|
1276
1324
|
"rel"
|
|
1277
|
-
], ei = /*#__PURE__*/
|
|
1325
|
+
], ei = /*#__PURE__*/ O(/* @__PURE__ */ z({
|
|
1278
1326
|
__name: "TdHeaderNavMenu",
|
|
1279
1327
|
setup(e) {
|
|
1280
|
-
let t =
|
|
1328
|
+
let t = k(), { withBase: n } = t, r = A();
|
|
1281
1329
|
function i(e) {
|
|
1282
1330
|
return !s(e) && r.path.startsWith(n(e));
|
|
1283
1331
|
}
|
|
1284
|
-
return (e, r) =>
|
|
1332
|
+
return (e, r) => K(t).nav?.length ? (V(), F("nav", Qr, [(V(!0), F(j, null, U(K(t).nav, (e) => (V(), F("a", {
|
|
1285
1333
|
key: e.link,
|
|
1286
|
-
href:
|
|
1287
|
-
target:
|
|
1288
|
-
rel:
|
|
1289
|
-
class:
|
|
1334
|
+
href: K(s)(e.link) ? e.link : K(n)(e.link),
|
|
1335
|
+
target: K(s)(e.link) ? "_blank" : void 0,
|
|
1336
|
+
rel: K(s)(e.link) ? "noopener noreferrer" : void 0,
|
|
1337
|
+
class: B(["td-menu-nav-item", { "is-active": i(e.link) }])
|
|
1290
1338
|
}, [
|
|
1291
|
-
e.icon ? (
|
|
1339
|
+
e.icon ? (V(), N(ve, {
|
|
1292
1340
|
key: 0,
|
|
1293
1341
|
name: e.icon,
|
|
1294
1342
|
size: 16
|
|
1295
|
-
}, null, 8, ["name"])) :
|
|
1296
|
-
|
|
1297
|
-
|
|
1343
|
+
}, null, 8, ["name"])) : P("", !0),
|
|
1344
|
+
I("span", null, G(e.title), 1),
|
|
1345
|
+
K(s)(e.link) ? (V(), N(K(le), {
|
|
1298
1346
|
key: 1,
|
|
1299
1347
|
size: 14
|
|
1300
|
-
})) :
|
|
1301
|
-
], 10, $r))), 128))])) :
|
|
1348
|
+
})) : P("", !0)
|
|
1349
|
+
], 10, $r))), 128))])) : P("", !0);
|
|
1302
1350
|
}
|
|
1303
|
-
}), [["__scopeId", "data-v-
|
|
1351
|
+
}), [["__scopeId", "data-v-f3c16d10"]]), ti = { class: "td-widget-checkbox" }, ni = /*#__PURE__*/ O(/* @__PURE__ */ z({
|
|
1304
1352
|
__name: "TdWidgetCheckbox",
|
|
1305
1353
|
props: { value: {} },
|
|
1306
1354
|
setup(e) {
|
|
1307
|
-
return (t, n) => (
|
|
1355
|
+
return (t, n) => (V(), F("span", ti, [e.value ? (V(), N(K(vt), {
|
|
1308
1356
|
key: 0,
|
|
1309
1357
|
size: 16,
|
|
1310
1358
|
class: "td-widget-checkbox-icon is-checked"
|
|
1311
|
-
})) : (
|
|
1359
|
+
})) : (V(), N(K(Me), {
|
|
1312
1360
|
key: 1,
|
|
1313
1361
|
size: 16,
|
|
1314
1362
|
class: "td-widget-checkbox-icon"
|
|
1315
1363
|
}))]));
|
|
1316
1364
|
}
|
|
1317
|
-
}), [["__scopeId", "data-v-
|
|
1365
|
+
}), [["__scopeId", "data-v-13241c06"]]), ri = /* @__PURE__ */ new Set([
|
|
1318
1366
|
"png",
|
|
1319
1367
|
"jpg",
|
|
1320
1368
|
"jpeg",
|
|
@@ -1362,7 +1410,7 @@ function ai(e) {
|
|
|
1362
1410
|
var oi = {
|
|
1363
1411
|
key: 0,
|
|
1364
1412
|
class: "td-widget-relation-wrapper"
|
|
1365
|
-
}, si = ["href", "title"], ci = ["src", "alt"], li = ["href"], ui = { class: "td-widget-file-name" }, di = ["href"], fi = ["href"], pi = { key: 1 }, mi = /*#__PURE__*/
|
|
1413
|
+
}, si = ["href", "title"], ci = ["src", "alt"], li = ["href"], ui = { class: "td-widget-file-name" }, di = ["href"], fi = ["href"], pi = { key: 1 }, mi = /*#__PURE__*/ O(/* @__PURE__ */ z({
|
|
1366
1414
|
__name: "TdWidgetRelation",
|
|
1367
1415
|
props: {
|
|
1368
1416
|
value: {},
|
|
@@ -1372,80 +1420,80 @@ var oi = {
|
|
|
1372
1420
|
}
|
|
1373
1421
|
},
|
|
1374
1422
|
setup(e) {
|
|
1375
|
-
let { withBase: t } =
|
|
1376
|
-
return (a, o) => n.value ? (
|
|
1423
|
+
let { withBase: t } = k(), n = M(() => ii(e.value)), r = M(() => n.value?.icon ? ye(n.value.icon.name) : void 0), i = M(() => n.value !== void 0 && s(n.value.url));
|
|
1424
|
+
return (a, o) => n.value ? (V(), F("span", oi, [n.value.isImage ? (V(), F("a", {
|
|
1377
1425
|
key: 0,
|
|
1378
|
-
href:
|
|
1426
|
+
href: K(t)(n.value.url),
|
|
1379
1427
|
target: "_blank",
|
|
1380
1428
|
rel: "noopener noreferrer",
|
|
1381
1429
|
class: "td-widget-image-preview",
|
|
1382
1430
|
title: n.value.name
|
|
1383
|
-
}, [
|
|
1384
|
-
src:
|
|
1431
|
+
}, [I("img", {
|
|
1432
|
+
src: K(t)(n.value.url),
|
|
1385
1433
|
alt: n.value.name,
|
|
1386
1434
|
class: "td-widget-image-img",
|
|
1387
1435
|
loading: "lazy"
|
|
1388
|
-
}, null, 8, ci)], 8, si)) : n.value.format || n.value.url.includes(".") ? (
|
|
1436
|
+
}, null, 8, ci)], 8, si)) : n.value.format || n.value.url.includes(".") ? (V(), F("a", {
|
|
1389
1437
|
key: 1,
|
|
1390
|
-
href:
|
|
1438
|
+
href: K(t)(n.value.url),
|
|
1391
1439
|
target: "_blank",
|
|
1392
1440
|
rel: "noopener noreferrer",
|
|
1393
1441
|
class: "td-widget-file-link"
|
|
1394
|
-
}, [
|
|
1442
|
+
}, [R(K(ie), { class: "td-widget-file-icon" }), I("span", ui, G(n.value.name), 1)], 8, li)) : i.value ? (V(), F("a", {
|
|
1395
1443
|
key: 2,
|
|
1396
1444
|
href: n.value.url,
|
|
1397
1445
|
target: "_blank",
|
|
1398
1446
|
rel: "noopener noreferrer",
|
|
1399
1447
|
class: "td-widget-ref td-widget-ref-external"
|
|
1400
|
-
}, [
|
|
1448
|
+
}, [R(K(le), {
|
|
1401
1449
|
size: 12,
|
|
1402
1450
|
class: "td-widget-external-icon"
|
|
1403
|
-
})], 8, di)) : (
|
|
1451
|
+
})], 8, di)) : (V(), F("a", {
|
|
1404
1452
|
key: 3,
|
|
1405
|
-
href:
|
|
1453
|
+
href: K(t)(n.value.url),
|
|
1406
1454
|
class: "td-widget-ref"
|
|
1407
|
-
}, [r.value && !e.hideIcon ? (
|
|
1455
|
+
}, [r.value && !e.hideIcon ? (V(), N(W(r.value), {
|
|
1408
1456
|
key: 0,
|
|
1409
1457
|
size: 14,
|
|
1410
1458
|
class: "td-widget-ref-icon"
|
|
1411
|
-
})) :
|
|
1459
|
+
})) : P("", !0), L(G(n.value.name), 1)], 8, fi))])) : (V(), F("span", pi, G(e.value), 1));
|
|
1412
1460
|
}
|
|
1413
|
-
}), [["__scopeId", "data-v-
|
|
1461
|
+
}), [["__scopeId", "data-v-9a4c3158"]]), hi = { key: 0 }, gi = { class: "td-widget-list td-widget-list-icons" }, _i = { key: 1 }, vi = { class: "td-widget-list" }, yi = 5, bi = /*#__PURE__*/ O(/* @__PURE__ */ z({
|
|
1414
1462
|
__name: "TdWidgetList",
|
|
1415
1463
|
props: {
|
|
1416
1464
|
definition: {},
|
|
1417
1465
|
value: {}
|
|
1418
1466
|
},
|
|
1419
1467
|
setup(e) {
|
|
1420
|
-
let t =
|
|
1468
|
+
let t = H(!1), n = M(() => Array.isArray(e.value) ? e.value : []), r = M(() => e.definition.items?.widget === "relation"), i = M(() => r.value ? n.value.map((e) => ii(e)).filter((e) => e !== void 0) : []), a = M(() => r.value ? Math.max(0, i.value.length - yi) : Math.max(0, n.value.length - yi));
|
|
1421
1469
|
function o() {
|
|
1422
1470
|
t.value = !t.value;
|
|
1423
1471
|
}
|
|
1424
1472
|
function s(e) {
|
|
1425
1473
|
return t.value ? e : e.slice(0, yi);
|
|
1426
1474
|
}
|
|
1427
|
-
return (e, c) => r.value ? (
|
|
1475
|
+
return (e, c) => r.value ? (V(), F("div", hi, [I("ul", gi, [(V(!0), F(j, null, U(s(i.value), (e, t) => (V(), F("li", { key: t }, [(V(), N(W(e.icon ? K(ye)(e.icon.name) ?? K(ae) : K(ae)), {
|
|
1428
1476
|
size: 14,
|
|
1429
1477
|
class: "td-widget-list-icon"
|
|
1430
|
-
})),
|
|
1478
|
+
})), R(mi, {
|
|
1431
1479
|
value: { $ref: e },
|
|
1432
1480
|
"hide-icon": ""
|
|
1433
|
-
}, null, 8, ["value"])]))), 128))]), a.value > 0 ? (
|
|
1481
|
+
}, null, 8, ["value"])]))), 128))]), a.value > 0 ? (V(), F("button", {
|
|
1434
1482
|
key: 0,
|
|
1435
1483
|
class: "td-widget-more",
|
|
1436
1484
|
type: "button",
|
|
1437
1485
|
onClick: o
|
|
1438
|
-
},
|
|
1486
|
+
}, G(t.value ? "show less" : `+${a.value} more`), 1)) : P("", !0)])) : (V(), F("div", _i, [I("ul", vi, [(V(!0), F(j, null, U(s(n.value), (e, t) => (V(), F("li", { key: t }, [K(ii)(e) ? (V(), N(mi, {
|
|
1439
1487
|
key: 0,
|
|
1440
1488
|
value: e
|
|
1441
|
-
}, null, 8, ["value"])) : (
|
|
1489
|
+
}, null, 8, ["value"])) : (V(), F(j, { key: 1 }, [L(G(e), 1)], 64))]))), 128))]), a.value > 0 ? (V(), F("button", {
|
|
1442
1490
|
key: 0,
|
|
1443
1491
|
class: "td-widget-more",
|
|
1444
1492
|
type: "button",
|
|
1445
1493
|
onClick: o
|
|
1446
|
-
},
|
|
1494
|
+
}, G(t.value ? "show less" : `+${a.value} more`), 1)) : P("", !0)]));
|
|
1447
1495
|
}
|
|
1448
|
-
}), [["__scopeId", "data-v-
|
|
1496
|
+
}), [["__scopeId", "data-v-e838ea77"]]), xi = [
|
|
1449
1497
|
{
|
|
1450
1498
|
fg: "#a0522d",
|
|
1451
1499
|
bg: "rgba(160, 82, 45, 0.1)"
|
|
@@ -1493,107 +1541,104 @@ function Ci(e) {
|
|
|
1493
1541
|
}
|
|
1494
1542
|
//#endregion
|
|
1495
1543
|
//#region src/client/theme-default/components/TdFrontmatter/widgets/TdWidgetMultiSelect.vue?vue&type=script&setup=true&lang.ts
|
|
1496
|
-
var wi = 5, Ti = /*#__PURE__*/
|
|
1544
|
+
var wi = 5, Ti = /*#__PURE__*/ O(/* @__PURE__ */ z({
|
|
1497
1545
|
__name: "TdWidgetMultiSelect",
|
|
1498
1546
|
props: { value: {} },
|
|
1499
1547
|
setup(e) {
|
|
1500
|
-
let t =
|
|
1548
|
+
let t = H(!1), n = M(() => Array.isArray(e.value) ? e.value : []), r = M(() => t.value ? n.value : n.value.slice(0, wi)), i = M(() => Math.max(0, n.value.length - wi));
|
|
1501
1549
|
function a() {
|
|
1502
1550
|
t.value = !t.value;
|
|
1503
1551
|
}
|
|
1504
|
-
return (e, n) => (
|
|
1552
|
+
return (e, n) => (V(), F(j, null, [(V(!0), F(j, null, U(r.value, (e, t) => (V(), F("span", {
|
|
1505
1553
|
key: t,
|
|
1506
1554
|
class: "td-widget-pill",
|
|
1507
|
-
style: We(
|
|
1508
|
-
},
|
|
1555
|
+
style: We(K(Si)(e))
|
|
1556
|
+
}, G(e), 5))), 128)), i.value > 0 ? (V(), F("button", {
|
|
1509
1557
|
key: 0,
|
|
1510
1558
|
class: "td-widget-more",
|
|
1511
1559
|
type: "button",
|
|
1512
1560
|
onClick: a
|
|
1513
|
-
},
|
|
1561
|
+
}, G(t.value ? "show less" : `+${i.value} more`), 1)) : P("", !0)], 64));
|
|
1514
1562
|
}
|
|
1515
|
-
}), [["__scopeId", "data-v-
|
|
1563
|
+
}), [["__scopeId", "data-v-2f88152d"]]), Ei = /*#__PURE__*/ O(/* @__PURE__ */ z({
|
|
1516
1564
|
__name: "TdWidgetSelect",
|
|
1517
1565
|
props: { value: {} },
|
|
1518
1566
|
setup(e) {
|
|
1519
|
-
return (t, n) => (
|
|
1567
|
+
return (t, n) => (V(), F("span", {
|
|
1520
1568
|
class: "td-widget-pill",
|
|
1521
|
-
style: We(
|
|
1522
|
-
},
|
|
1569
|
+
style: We(K(Si)(e.value))
|
|
1570
|
+
}, G(e.value), 5));
|
|
1523
1571
|
}
|
|
1524
|
-
}), [["__scopeId", "data-v-b9e2b4fd"]]), Di = ["href", "title"], Oi = ["src", "alt"], ki = ["href"], Ai = { class: "td-widget-file-name" }, ji = /*#__PURE__*/
|
|
1572
|
+
}), [["__scopeId", "data-v-b9e2b4fd"]]), Di = ["href", "title"], Oi = ["src", "alt"], ki = ["href"], Ai = { class: "td-widget-file-name" }, ji = /*#__PURE__*/ O(/* @__PURE__ */ z({
|
|
1525
1573
|
__name: "TdWidgetText",
|
|
1526
1574
|
props: {
|
|
1527
1575
|
definition: {},
|
|
1528
1576
|
value: {}
|
|
1529
1577
|
},
|
|
1530
1578
|
setup(e) {
|
|
1531
|
-
let { withBase: t } =
|
|
1579
|
+
let { withBase: t } = k(), n = M(() => typeof e.value == "string" ? e.value.trim() : ""), r = M(() => ii(e.value)), i = M(() => r.value ? r.value.isImage : 0 < n.value.length && ai({ url: n.value })), a = M(() => r.value ? r.value.url : n.value), o = M(() => t(a.value)), s = M(() => !n.value || !n.value.includes(".") || n.value.includes(" ") ? !1 : n.value.endsWith(".pdf") || n.value.endsWith(".zip") || n.value.endsWith(".doc") || n.value.endsWith(".docx"));
|
|
1532
1580
|
function c(t) {
|
|
1533
|
-
return t == null ? "" : e.definition.widget === "date" ?
|
|
1581
|
+
return t == null ? "" : e.definition.widget === "date" ? y(String(t)) : String(t);
|
|
1534
1582
|
}
|
|
1535
|
-
return (t, a) => i.value ? (
|
|
1583
|
+
return (t, a) => i.value ? (V(), F("a", {
|
|
1536
1584
|
key: 0,
|
|
1537
1585
|
href: o.value,
|
|
1538
1586
|
target: "_blank",
|
|
1539
1587
|
rel: "noopener noreferrer",
|
|
1540
1588
|
class: "td-widget-image-preview",
|
|
1541
1589
|
title: r.value ? r.value.name : n.value
|
|
1542
|
-
}, [
|
|
1590
|
+
}, [I("img", {
|
|
1543
1591
|
src: o.value,
|
|
1544
1592
|
alt: r.value ? r.value.name : n.value,
|
|
1545
1593
|
class: "td-widget-image-img",
|
|
1546
1594
|
loading: "lazy"
|
|
1547
|
-
}, null, 8, Oi)], 8, Di)) : s.value ? (
|
|
1595
|
+
}, null, 8, Oi)], 8, Di)) : s.value ? (V(), F("a", {
|
|
1548
1596
|
key: 1,
|
|
1549
1597
|
href: o.value,
|
|
1550
1598
|
target: "_blank",
|
|
1551
1599
|
rel: "noopener noreferrer",
|
|
1552
1600
|
class: "td-widget-file-link"
|
|
1553
|
-
}, [
|
|
1601
|
+
}, [R(K(ie), { class: "td-widget-file-icon" }), I("span", Ai, G(n.value.split("/").pop() ?? n.value), 1)], 8, ki)) : (V(), F(j, { key: 2 }, [L(G(c(e.value)), 1)], 64));
|
|
1554
1602
|
}
|
|
1555
|
-
}), [["__scopeId", "data-v-
|
|
1603
|
+
}), [["__scopeId", "data-v-37708635"]]), Mi = {
|
|
1556
1604
|
key: 0,
|
|
1557
1605
|
class: "td-frontmatter-empty"
|
|
1558
|
-
}, Ni = /*#__PURE__*/
|
|
1606
|
+
}, Ni = /*#__PURE__*/ O(/* @__PURE__ */ z({
|
|
1559
1607
|
__name: "TdFrontmatterValue",
|
|
1560
1608
|
props: {
|
|
1561
1609
|
definition: {},
|
|
1562
1610
|
value: {}
|
|
1563
1611
|
},
|
|
1564
1612
|
setup(e) {
|
|
1565
|
-
return (t, n) => e.value === void 0 || e.value === null ? (
|
|
1613
|
+
return (t, n) => e.value === void 0 || e.value === null ? (V(), F("span", Mi, "Empty")) : e.definition.widget === "checkbox" ? (V(), N(ni, {
|
|
1566
1614
|
key: 1,
|
|
1567
1615
|
value: e.value
|
|
1568
|
-
}, null, 8, ["value"])) : e.definition.widget === "select" ? (
|
|
1616
|
+
}, null, 8, ["value"])) : e.definition.widget === "select" ? (V(), N(Ei, {
|
|
1569
1617
|
key: 2,
|
|
1570
1618
|
value: e.value
|
|
1571
|
-
}, null, 8, ["value"])) : e.definition.widget === "multiSelect" ? (
|
|
1619
|
+
}, null, 8, ["value"])) : e.definition.widget === "multiSelect" ? (V(), N(Ti, {
|
|
1572
1620
|
key: 3,
|
|
1573
1621
|
value: e.value
|
|
1574
|
-
}, null, 8, ["value"])) :
|
|
1622
|
+
}, null, 8, ["value"])) : K(ii)(e.value) || e.definition.widget === "relation" ? (V(), N(mi, {
|
|
1575
1623
|
key: 4,
|
|
1576
1624
|
value: e.value
|
|
1577
|
-
}, null, 8, ["value"])) : Array.isArray(e.value) || e.definition.widget === "list" ? (
|
|
1625
|
+
}, null, 8, ["value"])) : Array.isArray(e.value) || e.definition.widget === "list" ? (V(), N(bi, {
|
|
1578
1626
|
key: 5,
|
|
1579
1627
|
definition: e.definition,
|
|
1580
1628
|
value: e.value
|
|
1581
|
-
}, null, 8, ["definition", "value"])) : (
|
|
1629
|
+
}, null, 8, ["definition", "value"])) : (V(), N(ji, {
|
|
1582
1630
|
key: 6,
|
|
1583
1631
|
definition: e.definition,
|
|
1584
1632
|
value: e.value
|
|
1585
1633
|
}, null, 8, ["definition", "value"]));
|
|
1586
1634
|
}
|
|
1587
|
-
}), [["__scopeId", "data-v-
|
|
1635
|
+
}), [["__scopeId", "data-v-1deedc98"]]), Pi = {
|
|
1588
1636
|
key: 0,
|
|
1589
1637
|
class: "td-fm-rail"
|
|
1590
|
-
}, Fi = {
|
|
1638
|
+
}, Fi = { class: "td-fm-rail-key" }, Ii = { class: "td-fm-rail-value" }, Li = {
|
|
1591
1639
|
key: 1,
|
|
1592
1640
|
class: "td-fm-box"
|
|
1593
|
-
},
|
|
1594
|
-
key: 0,
|
|
1595
|
-
class: "td-fm-box-body"
|
|
1596
|
-
}, Ui = { class: "td-fm-box-key" }, Wi = { class: "td-fm-box-value" }, Gi = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
1641
|
+
}, Ri = { class: "td-fm-box-label" }, zi = { class: "td-fm-box-count" }, Bi = { class: "td-fm-box-toggle" }, Vi = { class: "td-fm-box-body" }, Hi = { class: "td-fm-box-key" }, Ui = { class: "td-fm-box-value" }, Wi = /*#__PURE__*/ O(/* @__PURE__ */ z({
|
|
1597
1642
|
__name: "TdFrontmatter",
|
|
1598
1643
|
props: {
|
|
1599
1644
|
mode: { default: "inline" },
|
|
@@ -1601,9 +1646,9 @@ var wi = 5, Ti = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
|
1601
1646
|
frontmatter: {}
|
|
1602
1647
|
},
|
|
1603
1648
|
setup(t) {
|
|
1604
|
-
let n = he(), r =
|
|
1649
|
+
let n = he(), r = M(() => {
|
|
1605
1650
|
if (t.schema) return n.value.schemas[t.schema];
|
|
1606
|
-
}), i =
|
|
1651
|
+
}), i = M(() => {
|
|
1607
1652
|
let e = r.value, n = [], i = /* @__PURE__ */ new Set();
|
|
1608
1653
|
e && Object.keys(e).forEach((e) => i.add(e)), Object.keys(t.frontmatter).forEach((e) => i.add(e));
|
|
1609
1654
|
for (let r of i) {
|
|
@@ -1615,70 +1660,70 @@ var wi = 5, Ti = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
|
1615
1660
|
}
|
|
1616
1661
|
return n;
|
|
1617
1662
|
}), a = {
|
|
1618
|
-
text:
|
|
1619
|
-
checkbox:
|
|
1663
|
+
text: bt,
|
|
1664
|
+
checkbox: ut,
|
|
1620
1665
|
select: me,
|
|
1621
|
-
multiSelect:
|
|
1666
|
+
multiSelect: yt,
|
|
1622
1667
|
relation: le,
|
|
1623
|
-
list:
|
|
1668
|
+
list: re
|
|
1624
1669
|
};
|
|
1625
1670
|
function o(e) {
|
|
1626
|
-
return a[e] ??
|
|
1671
|
+
return a[e] ?? bt;
|
|
1627
1672
|
}
|
|
1628
|
-
let s =
|
|
1673
|
+
let s = H(!1), c = H(!1);
|
|
1629
1674
|
function l() {
|
|
1630
1675
|
s.value = !s.value;
|
|
1631
1676
|
}
|
|
1632
1677
|
function u() {
|
|
1633
1678
|
c.value = !c.value;
|
|
1634
1679
|
}
|
|
1635
|
-
return (n, r) => t.mode === "rail" && i.value.length > 0 ? (
|
|
1680
|
+
return (n, r) => t.mode === "rail" && i.value.length > 0 ? (V(), F("div", Pi, [I("button", {
|
|
1636
1681
|
type: "button",
|
|
1637
1682
|
class: "td-fm-rail-header",
|
|
1638
1683
|
onClick: u
|
|
1639
|
-
}, [r[0] ||=
|
|
1684
|
+
}, [r[0] ||= I("span", { class: "td-fm-rail-label" }, "Properties", -1), R(K(xe), {
|
|
1640
1685
|
size: 14,
|
|
1641
|
-
class:
|
|
1642
|
-
}, null, 8, ["class"])]),
|
|
1686
|
+
class: B(["td-fm-rail-caret", { "is-collapsed": c.value }])
|
|
1687
|
+
}, null, 8, ["class"])]), I("div", { class: B(["td-collapse", { "is-collapsed": c.value }]) }, [I("div", null, [(V(!0), F(j, null, U(i.value, ([n, r]) => (V(), F("div", {
|
|
1643
1688
|
key: n,
|
|
1644
1689
|
class: "td-fm-rail-row"
|
|
1645
|
-
}, [
|
|
1690
|
+
}, [I("span", Fi, [(V(), N(W(o(r.widget)), {
|
|
1646
1691
|
size: 12,
|
|
1647
1692
|
class: "td-fm-icon"
|
|
1648
|
-
})),
|
|
1693
|
+
})), L(" " + G(K(e)(n)), 1)]), I("span", Ii, [R(Ni, {
|
|
1649
1694
|
definition: r,
|
|
1650
1695
|
value: t.frontmatter[n]
|
|
1651
|
-
}, null, 8, ["definition", "value"])])]))), 128))]))])) : i.value.length > 0 ? (
|
|
1696
|
+
}, null, 8, ["definition", "value"])])]))), 128))])], 2)])) : i.value.length > 0 ? (V(), F("div", Li, [I("button", {
|
|
1652
1697
|
type: "button",
|
|
1653
1698
|
class: "td-fm-box-header",
|
|
1654
1699
|
onClick: l
|
|
1655
|
-
}, [
|
|
1700
|
+
}, [I("span", Ri, [r[1] ||= L("Properties ", -1), I("span", zi, G(i.value.length), 1)]), I("span", Bi, [L(G(s.value ? "Show" : "Hide") + " ", 1), s.value ? (V(), N(K(Se), {
|
|
1656
1701
|
key: 1,
|
|
1657
1702
|
size: 14
|
|
1658
|
-
})) : (
|
|
1703
|
+
})) : (V(), N(K(xe), {
|
|
1659
1704
|
key: 0,
|
|
1660
1705
|
size: 14
|
|
1661
|
-
}))])]),
|
|
1706
|
+
}))])]), I("div", { class: B(["td-collapse", { "is-collapsed": s.value }]) }, [I("div", Vi, [(V(!0), F(j, null, U(i.value, ([n, r]) => (V(), F(j, { key: n }, [I("span", Hi, [(V(), N(W(o(r.widget)), {
|
|
1662
1707
|
size: 12,
|
|
1663
1708
|
class: "td-fm-icon"
|
|
1664
|
-
})),
|
|
1709
|
+
})), L(" " + G(K(e)(n)), 1)]), I("span", Ui, [R(Ni, {
|
|
1665
1710
|
definition: r,
|
|
1666
1711
|
value: t.frontmatter[n]
|
|
1667
|
-
}, null, 8, ["definition", "value"])])], 64))), 128))]))])) :
|
|
1712
|
+
}, null, 8, ["definition", "value"])])], 64))), 128))])], 2)])) : P("", !0);
|
|
1668
1713
|
}
|
|
1669
|
-
}), [["__scopeId", "data-v-
|
|
1670
|
-
function
|
|
1714
|
+
}), [["__scopeId", "data-v-1b3924e7"]]), Gi = H(!1);
|
|
1715
|
+
function Ki() {
|
|
1671
1716
|
function e() {
|
|
1672
|
-
|
|
1717
|
+
Gi.value = !Gi.value;
|
|
1673
1718
|
}
|
|
1674
1719
|
function t() {
|
|
1675
|
-
|
|
1720
|
+
Gi.value = !0;
|
|
1676
1721
|
}
|
|
1677
1722
|
function n() {
|
|
1678
|
-
|
|
1723
|
+
Gi.value = !1;
|
|
1679
1724
|
}
|
|
1680
1725
|
return {
|
|
1681
|
-
isOpen: Ye(
|
|
1726
|
+
isOpen: Ye(Gi),
|
|
1682
1727
|
toggle: e,
|
|
1683
1728
|
open: t,
|
|
1684
1729
|
close: n
|
|
@@ -1686,24 +1731,22 @@ function qi() {
|
|
|
1686
1731
|
}
|
|
1687
1732
|
//#endregion
|
|
1688
1733
|
//#region src/client/theme-default/components/TdMenuButton.vue
|
|
1689
|
-
var
|
|
1734
|
+
var qi = /* @__PURE__ */ z({
|
|
1690
1735
|
__name: "TdMenuButton",
|
|
1691
1736
|
setup(e) {
|
|
1692
|
-
let { isOpen: t, toggle: n } =
|
|
1693
|
-
return (e, r) => (
|
|
1694
|
-
class: "td-menu-button
|
|
1695
|
-
label:
|
|
1696
|
-
"aria-expanded":
|
|
1697
|
-
onClick:
|
|
1737
|
+
let { isOpen: t, toggle: n } = Ki();
|
|
1738
|
+
return (e, r) => (V(), N(Dt, {
|
|
1739
|
+
class: "td-menu-button",
|
|
1740
|
+
label: K(t) ? "Close menu" : "Open menu",
|
|
1741
|
+
"aria-expanded": K(t),
|
|
1742
|
+
onClick: K(n)
|
|
1698
1743
|
}, {
|
|
1699
|
-
default:
|
|
1744
|
+
default: ot(() => [K(t) ? (V(), N(K(be), {
|
|
1700
1745
|
key: 0,
|
|
1701
|
-
size: 20
|
|
1702
|
-
|
|
1703
|
-
})) : (B(), M(W(fe), {
|
|
1746
|
+
size: 20
|
|
1747
|
+
})) : (V(), N(K(fe), {
|
|
1704
1748
|
key: 1,
|
|
1705
|
-
size: 20
|
|
1706
|
-
class: "group-hover:text-td-primary-solid transition-colors"
|
|
1749
|
+
size: 20
|
|
1707
1750
|
}))]),
|
|
1708
1751
|
_: 1
|
|
1709
1752
|
}, 8, [
|
|
@@ -1715,53 +1758,53 @@ var Ji = /* @__PURE__ */ R({
|
|
|
1715
1758
|
});
|
|
1716
1759
|
//#endregion
|
|
1717
1760
|
//#region src/client/theme-default/composables/usePreviousNext.ts
|
|
1718
|
-
function
|
|
1719
|
-
let e = he(), t =
|
|
1720
|
-
let
|
|
1721
|
-
if (
|
|
1722
|
-
let
|
|
1723
|
-
if (
|
|
1724
|
-
let
|
|
1761
|
+
function Ji() {
|
|
1762
|
+
let e = he(), t = A(), { withBase: n, title: r } = k(), i = M(() => {
|
|
1763
|
+
let i = Yi(e.value.contentTree, t.path, r);
|
|
1764
|
+
if (i === void 0) return {};
|
|
1765
|
+
let a = i.pages.findIndex((e) => e.url === t.path);
|
|
1766
|
+
if (a === -1) return { groupName: i.groupName };
|
|
1767
|
+
let o = 0 < a ? i.pages[a - 1] : void 0, s = a < i.pages.length - 1 ? i.pages[a + 1] : void 0;
|
|
1725
1768
|
return {
|
|
1726
|
-
previous:
|
|
1727
|
-
...a,
|
|
1728
|
-
url: n(a.url)
|
|
1729
|
-
} : void 0,
|
|
1730
|
-
next: o ? {
|
|
1769
|
+
previous: o ? {
|
|
1731
1770
|
...o,
|
|
1732
1771
|
url: n(o.url)
|
|
1733
1772
|
} : void 0,
|
|
1734
|
-
|
|
1773
|
+
next: s ? {
|
|
1774
|
+
...s,
|
|
1775
|
+
url: n(s.url)
|
|
1776
|
+
} : void 0,
|
|
1777
|
+
groupName: i.groupName
|
|
1735
1778
|
};
|
|
1736
1779
|
});
|
|
1737
1780
|
return {
|
|
1738
|
-
previous:
|
|
1739
|
-
next:
|
|
1740
|
-
groupName:
|
|
1781
|
+
previous: M(() => i.value.previous),
|
|
1782
|
+
next: M(() => i.value.next),
|
|
1783
|
+
groupName: M(() => i.value.groupName)
|
|
1741
1784
|
};
|
|
1742
1785
|
}
|
|
1743
|
-
function
|
|
1744
|
-
if (e.entries.some((e) => e.kind === "file" &&
|
|
1745
|
-
let t = [],
|
|
1746
|
-
|
|
1747
|
-
for (let n of e.entries) n.kind === "file" ?
|
|
1786
|
+
function Yi(e, t, n) {
|
|
1787
|
+
if (e.entries.some((e) => e.kind === "file" && w(e.item.filepath) === t)) {
|
|
1788
|
+
let t = [], r = e.entries.find((e) => e.kind === "file" && C(e.item.filepath));
|
|
1789
|
+
r && r.kind === "file" && t.push(Zi(r.item, n));
|
|
1790
|
+
for (let n of e.entries) n.kind === "file" ? C(n.item.filepath) || t.push(Zi(n.item)) : t.push(Qi(n.node, ""));
|
|
1748
1791
|
return {
|
|
1749
1792
|
pages: t,
|
|
1750
1793
|
groupName: ""
|
|
1751
1794
|
};
|
|
1752
1795
|
}
|
|
1753
|
-
for (let
|
|
1754
|
-
if (
|
|
1755
|
-
let e =
|
|
1796
|
+
for (let r of e.entries) {
|
|
1797
|
+
if (r.kind !== "dir") continue;
|
|
1798
|
+
let e = Xi(r.node, t, "", n);
|
|
1756
1799
|
if (e !== void 0) return e;
|
|
1757
1800
|
}
|
|
1758
1801
|
}
|
|
1759
|
-
function
|
|
1760
|
-
let
|
|
1761
|
-
if (t.entries.some((e) => e.kind === "file" &&
|
|
1762
|
-
let n = [], r =
|
|
1763
|
-
r && n.push(
|
|
1764
|
-
for (let e of t.entries) e.kind === "file" ?
|
|
1802
|
+
function Xi(t, n, r, i) {
|
|
1803
|
+
let a = T(r, t.name);
|
|
1804
|
+
if (t.entries.some((e) => e.kind === "file" && w(e.item.filepath) === n)) {
|
|
1805
|
+
let n = [], r = h(t);
|
|
1806
|
+
r && n.push(Zi(r));
|
|
1807
|
+
for (let e of t.entries) e.kind === "file" ? C(e.item.filepath) || n.push(Zi(e.item)) : n.push(Qi(e.node, a));
|
|
1765
1808
|
return {
|
|
1766
1809
|
pages: n,
|
|
1767
1810
|
groupName: e(t.name)
|
|
@@ -1769,58 +1812,59 @@ function Zi(t, n, r) {
|
|
|
1769
1812
|
}
|
|
1770
1813
|
for (let e of t.entries) {
|
|
1771
1814
|
if (e.kind !== "dir") continue;
|
|
1772
|
-
let t =
|
|
1815
|
+
let t = Xi(e.node, n, a, i);
|
|
1773
1816
|
if (t !== void 0) return t;
|
|
1774
1817
|
}
|
|
1775
1818
|
}
|
|
1776
|
-
function
|
|
1819
|
+
function Zi(e, t) {
|
|
1820
|
+
let n = e.label === void 0 ? t === void 0 ? u(e.filepath) : m(e.filepath, t) : e.label;
|
|
1777
1821
|
return {
|
|
1778
|
-
url:
|
|
1779
|
-
title:
|
|
1822
|
+
url: w(e.filepath),
|
|
1823
|
+
title: n
|
|
1780
1824
|
};
|
|
1781
1825
|
}
|
|
1782
|
-
function
|
|
1783
|
-
let r =
|
|
1826
|
+
function Qi(t, n) {
|
|
1827
|
+
let r = T(n, t.name), i = h(t);
|
|
1784
1828
|
return {
|
|
1785
|
-
url: i ?
|
|
1786
|
-
title: e(t.name)
|
|
1829
|
+
url: i ? w(i.filepath) : l(r),
|
|
1830
|
+
title: i ? u(i.filepath, i.label) : e(t.name)
|
|
1787
1831
|
};
|
|
1788
1832
|
}
|
|
1789
1833
|
//#endregion
|
|
1790
1834
|
//#region src/client/theme-default/components/TdPreviousNext.vue?vue&type=script&setup=true&lang.ts
|
|
1791
|
-
var
|
|
1835
|
+
var $i = {
|
|
1792
1836
|
key: 0,
|
|
1793
1837
|
class: "td-prevnext",
|
|
1794
1838
|
"aria-label": "Page navigation"
|
|
1795
|
-
},
|
|
1839
|
+
}, ea = ["href"], ta = { class: "td-prevnext-label" }, na = { class: "td-prevnext-title" }, ra = {
|
|
1796
1840
|
key: 1,
|
|
1797
1841
|
class: "td-prevnext-spacer"
|
|
1798
|
-
},
|
|
1842
|
+
}, ia = ["href"], aa = { class: "td-prevnext-label" }, oa = { class: "td-prevnext-title" }, sa = {
|
|
1799
1843
|
key: 3,
|
|
1800
1844
|
class: "td-prevnext-spacer"
|
|
1801
|
-
},
|
|
1845
|
+
}, ca = /*#__PURE__*/ O(/* @__PURE__ */ z({
|
|
1802
1846
|
__name: "TdPreviousNext",
|
|
1803
1847
|
setup(e) {
|
|
1804
|
-
let { previous: t, next: n, groupName: r } =
|
|
1805
|
-
return (e, i) =>
|
|
1848
|
+
let { previous: t, next: n, groupName: r } = Ji();
|
|
1849
|
+
return (e, i) => K(t) || K(n) ? (V(), F("nav", $i, [K(t) ? (V(), F("a", {
|
|
1806
1850
|
key: 0,
|
|
1807
|
-
href:
|
|
1851
|
+
href: K(t).url,
|
|
1808
1852
|
class: "td-prevnext-link is-previous"
|
|
1809
|
-
}, [
|
|
1810
|
-
size:
|
|
1853
|
+
}, [I("span", ta, [R(K(E), {
|
|
1854
|
+
size: 14,
|
|
1811
1855
|
class: "td-prevnext-chevron"
|
|
1812
|
-
}),
|
|
1856
|
+
}), L(" " + G(K(r) ? `Previous in ${K(r)}` : "Previous"), 1)]), I("span", na, G(K(t).title), 1)], 8, ea)) : (V(), F("span", ra)), K(n) ? (V(), F("a", {
|
|
1813
1857
|
key: 2,
|
|
1814
|
-
href:
|
|
1858
|
+
href: K(n).url,
|
|
1815
1859
|
class: "td-prevnext-link is-next"
|
|
1816
|
-
}, [
|
|
1817
|
-
size:
|
|
1860
|
+
}, [I("span", aa, [L(G(K(r) ? `Next in ${K(r)}` : "Next") + " ", 1), R(K(Se), {
|
|
1861
|
+
size: 14,
|
|
1818
1862
|
class: "td-prevnext-chevron"
|
|
1819
|
-
})]),
|
|
1863
|
+
})]), I("span", oa, G(K(n).title), 1)], 8, ia)) : (V(), F("span", sa))])) : P("", !0);
|
|
1820
1864
|
}
|
|
1821
|
-
}), [["__scopeId", "data-v-
|
|
1822
|
-
function
|
|
1823
|
-
let t =
|
|
1865
|
+
}), [["__scopeId", "data-v-8ea01cd7"]]), la = 100;
|
|
1866
|
+
function ua(e) {
|
|
1867
|
+
let t = H(void 0), n = [], r;
|
|
1824
1868
|
function i() {
|
|
1825
1869
|
if (n.length === 0) return;
|
|
1826
1870
|
let e = window.scrollY;
|
|
@@ -1829,7 +1873,7 @@ function fa(e) {
|
|
|
1829
1873
|
return;
|
|
1830
1874
|
}
|
|
1831
1875
|
let r;
|
|
1832
|
-
for (let t of n) if (
|
|
1876
|
+
for (let t of n) if (da(t) <= e + la) r = t.id;
|
|
1833
1877
|
else break;
|
|
1834
1878
|
t.value = r;
|
|
1835
1879
|
}
|
|
@@ -1846,21 +1890,21 @@ function fa(e) {
|
|
|
1846
1890
|
window.addEventListener("scroll", a);
|
|
1847
1891
|
}), Je(() => {
|
|
1848
1892
|
window.removeEventListener("scroll", a), r !== void 0 && cancelAnimationFrame(r);
|
|
1849
|
-
}),
|
|
1893
|
+
}), q(e, (e) => {
|
|
1850
1894
|
typeof window > "u" || Ue(() => o(e));
|
|
1851
1895
|
}, { immediate: !0 }), t;
|
|
1852
1896
|
}
|
|
1853
|
-
function
|
|
1897
|
+
function da(e) {
|
|
1854
1898
|
let t = 0, n = e;
|
|
1855
1899
|
for (; n;) t += n.offsetTop, n = n.offsetParent;
|
|
1856
1900
|
return t;
|
|
1857
1901
|
}
|
|
1858
1902
|
//#endregion
|
|
1859
1903
|
//#region src/client/theme-default/components/TdToc.vue?vue&type=script&setup=true&lang.ts
|
|
1860
|
-
var
|
|
1904
|
+
var fa = {
|
|
1861
1905
|
key: 0,
|
|
1862
1906
|
class: "td-toc"
|
|
1863
|
-
},
|
|
1907
|
+
}, pa = { class: "td-toc-list" }, ma = ["href", "innerHTML"], ha = /*#__PURE__*/ O(/* @__PURE__ */ z({
|
|
1864
1908
|
__name: "TdToc",
|
|
1865
1909
|
props: {
|
|
1866
1910
|
headings: {},
|
|
@@ -1870,35 +1914,35 @@ var ma = {
|
|
|
1870
1914
|
}
|
|
1871
1915
|
},
|
|
1872
1916
|
setup(e) {
|
|
1873
|
-
let t = e.static ?
|
|
1874
|
-
return (n, r) => e.headings.length ? (
|
|
1917
|
+
let t = e.static ? M(() => void 0) : ua(() => e.headings);
|
|
1918
|
+
return (n, r) => e.headings.length ? (V(), F("div", fa, [r[0] ||= I("div", { class: "td-toc-label" }, " On this page ", -1), I("ul", pa, [(V(!0), F(j, null, U(e.headings, (e) => (V(), F("li", {
|
|
1875
1919
|
key: e.slug,
|
|
1876
|
-
class:
|
|
1920
|
+
class: B({
|
|
1877
1921
|
"td-toc-indent-1": e.level === 3,
|
|
1878
1922
|
"td-toc-indent-2": e.level === 4,
|
|
1879
1923
|
"td-toc-indent-3": e.level === 5
|
|
1880
1924
|
})
|
|
1881
|
-
}, [
|
|
1925
|
+
}, [I("a", {
|
|
1882
1926
|
href: e.link,
|
|
1883
|
-
class:
|
|
1884
|
-
innerHTML:
|
|
1885
|
-
}, null, 10,
|
|
1927
|
+
class: B(["td-toc-link", { "is-active": K(t) === e.slug }]),
|
|
1928
|
+
innerHTML: K(d)(e.titleHtml)
|
|
1929
|
+
}, null, 10, ma)], 2))), 128))])])) : P("", !0);
|
|
1886
1930
|
}
|
|
1887
|
-
}), [["__scopeId", "data-v-
|
|
1931
|
+
}), [["__scopeId", "data-v-91e96e92"]]), ga = { class: "td-rail" }, _a = /*#__PURE__*/ O(/* @__PURE__ */ z({
|
|
1888
1932
|
__name: "TdRail",
|
|
1889
1933
|
setup(e) {
|
|
1890
1934
|
let { page: t } = Te();
|
|
1891
|
-
return (e, n) => (
|
|
1935
|
+
return (e, n) => (V(), F("aside", ga, [R(K(Wi), {
|
|
1892
1936
|
mode: "rail",
|
|
1893
|
-
schema:
|
|
1894
|
-
frontmatter:
|
|
1895
|
-
}, null, 8, ["schema", "frontmatter"]),
|
|
1937
|
+
schema: K(t).schema,
|
|
1938
|
+
frontmatter: K(t).frontmatter
|
|
1939
|
+
}, null, 8, ["schema", "frontmatter"]), R(ha, { headings: K(t).headings }, null, 8, ["headings"])]));
|
|
1896
1940
|
}
|
|
1897
|
-
}), [["__scopeId", "data-v-
|
|
1941
|
+
}), [["__scopeId", "data-v-22485c1b"]]), va = {
|
|
1898
1942
|
class: "td-skeleton",
|
|
1899
1943
|
role: "status",
|
|
1900
1944
|
"aria-label": "Loading"
|
|
1901
|
-
},
|
|
1945
|
+
}, ya = /*#__PURE__*/ O(/* @__PURE__ */ z({
|
|
1902
1946
|
__name: "TdSkeleton",
|
|
1903
1947
|
props: { lines: { default: 5 } },
|
|
1904
1948
|
setup(e) {
|
|
@@ -1912,15 +1956,15 @@ var ma = {
|
|
|
1912
1956
|
55,
|
|
1913
1957
|
72
|
|
1914
1958
|
];
|
|
1915
|
-
return (n, r) => (
|
|
1959
|
+
return (n, r) => (V(), F("div", va, [(V(!0), F(j, null, U(e.lines, (e) => (V(), F("div", {
|
|
1916
1960
|
key: e,
|
|
1917
1961
|
class: "td-skeleton-line",
|
|
1918
1962
|
style: We({ width: `${t[(e - 1) % t.length]}%` })
|
|
1919
1963
|
}, null, 4))), 128))]));
|
|
1920
1964
|
}
|
|
1921
|
-
}), [["__scopeId", "data-v-
|
|
1965
|
+
}), [["__scopeId", "data-v-312f021d"]]), $ = /* @__PURE__ */ function(e) {
|
|
1922
1966
|
return e.ArrowDown = "ArrowDown", e.ArrowUp = "ArrowUp", e.ArrowLeft = "ArrowLeft", e.ArrowRight = "ArrowRight", e.Enter = "Enter", e.Tab = "Tab", e.Space = " ", e.Escape = "Escape", e.Shift = "Shift", e.Control = "Control", e.Alt = "Alt", e.Meta = "Meta", e.Delete = "Delete", e.Backspace = "Backspace", e.F1 = "F1", e.F2 = "F2", e.F3 = "F3", e.F4 = "F4", e.F5 = "F5", e.F6 = "F6", e.F7 = "F7", e.F8 = "F8", e.F9 = "F9", e.F10 = "F10", e.F11 = "F11", e.F12 = "F12", e.a = "a", e.b = "b", e.c = "c", e.d = "d", e.e = "e", e.f = "f", e.g = "g", e.h = "h", e.i = "i", e.j = "j", e.k = "k", e.l = "l", e.m = "m", e.n = "n", e.o = "o", e.p = "p", e.q = "q", e.r = "r", e.s = "s", e.t = "t", e.u = "u", e.v = "v", e.w = "w", e.x = "x", e.y = "y", e.z = "z", e.FSlash = "/", e.Question = "?", e;
|
|
1923
|
-
}({}),
|
|
1967
|
+
}({}), ba = { class: "td-kbd-shortcut" }, xa = /*#__PURE__*/ O(/* @__PURE__ */ z({
|
|
1924
1968
|
__name: "TdKbdShortcut",
|
|
1925
1969
|
props: { keys: {} },
|
|
1926
1970
|
setup(e) {
|
|
@@ -1929,32 +1973,32 @@ var ma = {
|
|
|
1929
1973
|
[$.ArrowUp]: ce,
|
|
1930
1974
|
[$.ArrowLeft]: oe,
|
|
1931
1975
|
[$.ArrowRight]: de,
|
|
1932
|
-
[$.Meta]:
|
|
1933
|
-
[$.Alt]:
|
|
1934
|
-
[$.Enter]:
|
|
1935
|
-
[$.Delete]:
|
|
1936
|
-
[$.Space]:
|
|
1976
|
+
[$.Meta]: dt,
|
|
1977
|
+
[$.Alt]: gt,
|
|
1978
|
+
[$.Enter]: ft,
|
|
1979
|
+
[$.Delete]: pt,
|
|
1980
|
+
[$.Space]: _t
|
|
1937
1981
|
}, n = {
|
|
1938
1982
|
[$.Control]: "⌃",
|
|
1939
1983
|
[$.Shift]: "⇧",
|
|
1940
1984
|
[$.Escape]: "Esc",
|
|
1941
1985
|
[$.Tab]: "Tab",
|
|
1942
1986
|
[$.Backspace]: "⌫"
|
|
1943
|
-
}, r =
|
|
1987
|
+
}, r = M(() => e.keys.map((e) => {
|
|
1944
1988
|
let r = t[e];
|
|
1945
1989
|
if (r) return { icon: r };
|
|
1946
1990
|
let i = n[e];
|
|
1947
1991
|
return i ? { label: i } : { label: e.toUpperCase() };
|
|
1948
1992
|
}));
|
|
1949
|
-
return (e, t) => (
|
|
1993
|
+
return (e, t) => (V(), F("span", ba, [(V(!0), F(j, null, U(r.value, (e, t) => (V(), F("kbd", { key: t }, [e.icon ? (V(), N(W(e.icon), {
|
|
1950
1994
|
key: 0,
|
|
1951
1995
|
size: 12
|
|
1952
|
-
})) : (
|
|
1996
|
+
})) : (V(), F(j, { key: 1 }, [L(G(e.label), 1)], 64))]))), 128))]));
|
|
1953
1997
|
}
|
|
1954
|
-
}), [["__scopeId", "data-v-
|
|
1955
|
-
function
|
|
1956
|
-
let e = De(), t = we(), n, a = !1, o =
|
|
1957
|
-
|
|
1998
|
+
}), [["__scopeId", "data-v-b61b97da"]]), Sa = 120, Ca = /^h[1-6]$/i, wa = 16;
|
|
1999
|
+
function Ta() {
|
|
2000
|
+
let e = De(), t = we(), n, a = !1, o = $e([]), s = $e(!1), c = /* @__PURE__ */ new Map();
|
|
2001
|
+
q(e, () => {
|
|
1958
2002
|
n = void 0, c.clear();
|
|
1959
2003
|
});
|
|
1960
2004
|
function l() {
|
|
@@ -1972,10 +2016,10 @@ function Da() {
|
|
|
1972
2016
|
let e = r.querySelectorAll("h1, h2, h3, h4, h5, h6");
|
|
1973
2017
|
for (let n of e) {
|
|
1974
2018
|
let e = n.querySelector("a")?.getAttribute("href")?.slice(1) ?? "", r = "", i = n.nextElementSibling;
|
|
1975
|
-
for (; i && !
|
|
1976
|
-
t.set(e,
|
|
2019
|
+
for (; i && !Ca.test(i.tagName);) r += i.outerHTML, i = i.nextElementSibling;
|
|
2020
|
+
t.set(e, v(r));
|
|
1977
2021
|
}
|
|
1978
|
-
t.size === 0 ? t.set("",
|
|
2022
|
+
t.size === 0 ? t.set("", v(r.innerHTML)) : t.set("", [...t.values()].join(" "));
|
|
1979
2023
|
} finally {
|
|
1980
2024
|
n.unmount();
|
|
1981
2025
|
}
|
|
@@ -1983,11 +2027,11 @@ function Da() {
|
|
|
1983
2027
|
}
|
|
1984
2028
|
async function d(e) {
|
|
1985
2029
|
if (!t) return "";
|
|
1986
|
-
let n =
|
|
2030
|
+
let n = _(e), r = ee(e), i = c.get(n);
|
|
1987
2031
|
if (!i) try {
|
|
1988
2032
|
let e = (await t(n))?.default;
|
|
1989
2033
|
if (!e) return "";
|
|
1990
|
-
if (i = u(e),
|
|
2034
|
+
if (i = u(e), wa <= c.size) {
|
|
1991
2035
|
let e = c.keys().next().value;
|
|
1992
2036
|
e !== void 0 && c.delete(e);
|
|
1993
2037
|
}
|
|
@@ -2000,13 +2044,13 @@ function Da() {
|
|
|
2000
2044
|
function f(e, t) {
|
|
2001
2045
|
if (!e) return "";
|
|
2002
2046
|
let n = Object.keys(t);
|
|
2003
|
-
if (n.length === 0) return e.slice(0,
|
|
2047
|
+
if (n.length === 0) return e.slice(0, Sa);
|
|
2004
2048
|
let r = e.toLowerCase(), i = e.length;
|
|
2005
2049
|
for (let e of n) {
|
|
2006
2050
|
let t = r.indexOf(e.toLowerCase());
|
|
2007
2051
|
t !== -1 && t < i && (i = t);
|
|
2008
2052
|
}
|
|
2009
|
-
let a = Math.max(0, i - 30), o = Math.min(e.length, a +
|
|
2053
|
+
let a = Math.max(0, i - 30), o = Math.min(e.length, a + Sa), s = e.slice(a, o).trim();
|
|
2010
2054
|
return 0 < a && (s = "..." + s), o < e.length && (s += "..."), s;
|
|
2011
2055
|
}
|
|
2012
2056
|
async function m(e) {
|
|
@@ -2033,11 +2077,11 @@ function Da() {
|
|
|
2033
2077
|
if (a) return;
|
|
2034
2078
|
let n = f(await d(t.id), t.match);
|
|
2035
2079
|
if (a) return;
|
|
2036
|
-
o.value[e].excerpt = n,
|
|
2080
|
+
o.value[e].excerpt = n, tt(o);
|
|
2037
2081
|
}
|
|
2038
2082
|
}
|
|
2039
2083
|
let h = p((e) => m(e), 150);
|
|
2040
|
-
function
|
|
2084
|
+
function g(e) {
|
|
2041
2085
|
a = !1;
|
|
2042
2086
|
let t = e.trim();
|
|
2043
2087
|
if (!t) {
|
|
@@ -2051,35 +2095,35 @@ function Da() {
|
|
|
2051
2095
|
}
|
|
2052
2096
|
return {
|
|
2053
2097
|
results: o,
|
|
2054
|
-
searching:
|
|
2055
|
-
indexLoaded:
|
|
2056
|
-
search:
|
|
2098
|
+
searching: M(() => s.value),
|
|
2099
|
+
indexLoaded: M(() => e.value !== void 0),
|
|
2100
|
+
search: g,
|
|
2057
2101
|
cancel: y
|
|
2058
2102
|
};
|
|
2059
2103
|
}
|
|
2060
2104
|
//#endregion
|
|
2061
2105
|
//#region src/client/theme-default/components/TdSiteSearch/highlight.ts
|
|
2062
|
-
function
|
|
2063
|
-
if (!e || !t) return
|
|
2064
|
-
let n = t.trim().split(/\s+/).filter(Boolean), r =
|
|
2106
|
+
function Ea(e, t) {
|
|
2107
|
+
if (!e || !t) return S(e);
|
|
2108
|
+
let n = t.trim().split(/\s+/).filter(Boolean), r = S(e);
|
|
2065
2109
|
for (let e of n) {
|
|
2066
|
-
let t = RegExp(`(${
|
|
2110
|
+
let t = RegExp(`(${b(e)})`, "gi");
|
|
2067
2111
|
r = r.replace(t, "<mark>$1</mark>");
|
|
2068
2112
|
}
|
|
2069
2113
|
return r;
|
|
2070
2114
|
}
|
|
2071
2115
|
//#endregion
|
|
2072
2116
|
//#region src/client/theme-default/components/TdSiteSearch/TdSiteSearch.vue?vue&type=script&setup=true&lang.ts
|
|
2073
|
-
var
|
|
2117
|
+
var Da = { class: "td-search" }, Oa = { class: "td-search-input-wrap" }, ka = {
|
|
2074
2118
|
key: 2,
|
|
2075
2119
|
class: "td-search-count"
|
|
2076
|
-
},
|
|
2120
|
+
}, Aa = {
|
|
2077
2121
|
key: 0,
|
|
2078
2122
|
class: "td-search-results"
|
|
2079
|
-
},
|
|
2123
|
+
}, ja = { class: "td-search-group-label" }, Ma = ["href"], Na = ["innerHTML"], Pa = ["innerHTML"], Fa = {
|
|
2080
2124
|
key: 1,
|
|
2081
2125
|
class: "td-search-empty"
|
|
2082
|
-
},
|
|
2126
|
+
}, Ia = /*#__PURE__*/ O(/* @__PURE__ */ z({
|
|
2083
2127
|
__name: "TdSiteSearch",
|
|
2084
2128
|
props: {
|
|
2085
2129
|
active: {
|
|
@@ -2092,10 +2136,10 @@ var ka = { class: "td-search" }, Aa = { class: "td-search-input-wrap" }, ja = {
|
|
|
2092
2136
|
},
|
|
2093
2137
|
emits: /*@__PURE__*/ Ve(["select"], ["update:active", "update:query"]),
|
|
2094
2138
|
setup(t, { expose: n, emit: r }) {
|
|
2095
|
-
let i =
|
|
2139
|
+
let i = nt(t, "active"), a = nt(t, "query"), o = r, s = A(), { withBase: c } = k(), { results: l, searching: u, indexLoaded: d, search: f, cancel: p } = Ta(), m = H(-1), h = M(() => 0 < a.value.trim().length), g = M(() => {
|
|
2096
2140
|
let t = [], n = /* @__PURE__ */ new Map();
|
|
2097
2141
|
for (let r of l.value) {
|
|
2098
|
-
let i =
|
|
2142
|
+
let i = _(r.id), a = n.get(i);
|
|
2099
2143
|
if (!a) {
|
|
2100
2144
|
let r = i.split("/").pop() || "index";
|
|
2101
2145
|
a = {
|
|
@@ -2108,15 +2152,15 @@ var ka = { class: "td-search" }, Aa = { class: "td-search-input-wrap" }, ja = {
|
|
|
2108
2152
|
}
|
|
2109
2153
|
return t;
|
|
2110
2154
|
});
|
|
2111
|
-
|
|
2155
|
+
q(h, (e) => {
|
|
2112
2156
|
i.value = e;
|
|
2113
|
-
}),
|
|
2157
|
+
}), q(a, (e, t, n) => {
|
|
2114
2158
|
n(() => p()), m.value = -1, f(e);
|
|
2115
2159
|
});
|
|
2116
2160
|
function v() {
|
|
2117
2161
|
a.value = "";
|
|
2118
2162
|
}
|
|
2119
|
-
let y =
|
|
2163
|
+
let y = M(() => g.value.flatMap((e) => e.results)), b = M(() => {
|
|
2120
2164
|
let e = /* @__PURE__ */ new Map();
|
|
2121
2165
|
for (let t = 0; t < y.value.length; t++) e.set(y.value[t].id, t);
|
|
2122
2166
|
return e;
|
|
@@ -2137,7 +2181,7 @@ var ka = { class: "td-search" }, Aa = { class: "td-search-input-wrap" }, ja = {
|
|
|
2137
2181
|
function S() {
|
|
2138
2182
|
o("select");
|
|
2139
2183
|
}
|
|
2140
|
-
let C =
|
|
2184
|
+
let C = rt("searchInput");
|
|
2141
2185
|
return n({
|
|
2142
2186
|
focus() {
|
|
2143
2187
|
C.value?.focus();
|
|
@@ -2151,13 +2195,13 @@ var ka = { class: "td-search" }, Aa = { class: "td-search-input-wrap" }, ja = {
|
|
|
2151
2195
|
get isFocused() {
|
|
2152
2196
|
return document.activeElement === C.value;
|
|
2153
2197
|
}
|
|
2154
|
-
}), (e, t) => (
|
|
2155
|
-
|
|
2156
|
-
|
|
2198
|
+
}), (e, t) => (V(), F("div", Da, [
|
|
2199
|
+
I("div", Oa, [
|
|
2200
|
+
R(K(ge), {
|
|
2157
2201
|
size: 14,
|
|
2158
2202
|
class: "td-search-icon"
|
|
2159
2203
|
}),
|
|
2160
|
-
|
|
2204
|
+
st(I("input", {
|
|
2161
2205
|
ref_key: "searchInput",
|
|
2162
2206
|
ref: C,
|
|
2163
2207
|
"onUpdate:modelValue": t[0] ||= (e) => a.value = e,
|
|
@@ -2166,64 +2210,61 @@ var ka = { class: "td-search" }, Aa = { class: "td-search-input-wrap" }, ja = {
|
|
|
2166
2210
|
size: "1",
|
|
2167
2211
|
placeholder: "Search...",
|
|
2168
2212
|
onKeydown: x
|
|
2169
|
-
}, null, 544), [[
|
|
2170
|
-
!h.value && !
|
|
2213
|
+
}, null, 544), [[it, a.value]]),
|
|
2214
|
+
!h.value && !K(u) ? (V(), N(xa, {
|
|
2171
2215
|
key: 0,
|
|
2172
|
-
keys: [
|
|
2216
|
+
keys: [K($).Meta, K($).k],
|
|
2173
2217
|
class: "td-search-kbd"
|
|
2174
|
-
}, null, 8, ["keys"])) :
|
|
2175
|
-
|
|
2218
|
+
}, null, 8, ["keys"])) : P("", !0),
|
|
2219
|
+
K(u) || !K(d) ? (V(), N(K(ht), {
|
|
2176
2220
|
key: 1,
|
|
2177
2221
|
size: 12,
|
|
2178
2222
|
class: "td-search-spinner"
|
|
2179
|
-
})) : h.value ? (
|
|
2180
|
-
a.value ? (
|
|
2223
|
+
})) : h.value ? (V(), F("span", ka, G(K(l).length), 1)) : P("", !0),
|
|
2224
|
+
a.value ? (V(), F("button", {
|
|
2181
2225
|
key: 3,
|
|
2182
2226
|
class: "td-search-clear",
|
|
2183
2227
|
type: "button",
|
|
2184
2228
|
"aria-label": "Clear search",
|
|
2185
2229
|
onClick: v
|
|
2186
|
-
}, [
|
|
2230
|
+
}, [R(K(be), { size: 12 })])) : P("", !0)
|
|
2187
2231
|
]),
|
|
2188
|
-
h.value &&
|
|
2232
|
+
h.value && K(l).length > 0 ? (V(), F("div", Aa, [(V(!0), F(j, null, U(g.value, (e) => (V(), F("div", {
|
|
2189
2233
|
key: e.pageUrl,
|
|
2190
2234
|
class: "td-search-group"
|
|
2191
|
-
}, [
|
|
2235
|
+
}, [I("div", ja, G(e.pageTitle), 1), (V(!0), F(j, null, U(e.results, (e) => (V(), F("a", {
|
|
2192
2236
|
key: e.id,
|
|
2193
|
-
href:
|
|
2194
|
-
class:
|
|
2237
|
+
href: K(c)(e.id),
|
|
2238
|
+
class: B(["td-search-result", {
|
|
2195
2239
|
"is-selected": b.value.get(e.id) === m.value,
|
|
2196
|
-
"is-current":
|
|
2240
|
+
"is-current": K(c)(e.id) === K(s).path
|
|
2197
2241
|
}]),
|
|
2198
2242
|
onClick: S
|
|
2199
|
-
}, [
|
|
2243
|
+
}, [I("span", {
|
|
2200
2244
|
class: "td-search-result-title",
|
|
2201
|
-
innerHTML:
|
|
2202
|
-
}, null, 8,
|
|
2245
|
+
innerHTML: K(Ea)(e.title, a.value)
|
|
2246
|
+
}, null, 8, Na), e.excerpt ? (V(), F("span", {
|
|
2203
2247
|
key: 0,
|
|
2204
2248
|
class: "td-search-result-excerpt",
|
|
2205
|
-
innerHTML:
|
|
2206
|
-
}, null, 8,
|
|
2207
|
-
h.value &&
|
|
2249
|
+
innerHTML: K(Ea)(e.excerpt, a.value)
|
|
2250
|
+
}, null, 8, Pa)) : P("", !0)], 10, Ma))), 128))]))), 128))])) : P("", !0),
|
|
2251
|
+
h.value && K(l).length === 0 ? (V(), F("div", Fa, " No results for \"" + G(a.value) + "\" ", 1)) : P("", !0)
|
|
2208
2252
|
]));
|
|
2209
2253
|
}
|
|
2210
|
-
}), [["__scopeId", "data-v-
|
|
2254
|
+
}), [["__scopeId", "data-v-a2e33157"]]), La = /* @__PURE__ */ z({
|
|
2211
2255
|
__name: "TdThemeToggle",
|
|
2212
2256
|
setup(e) {
|
|
2213
2257
|
let { isDark: t, toggle: n } = Oe();
|
|
2214
|
-
return (e, r) => (
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
onClick: W(n)
|
|
2258
|
+
return (e, r) => (V(), N(Dt, {
|
|
2259
|
+
label: K(t) ? "Switch to light mode" : "Switch to dark mode",
|
|
2260
|
+
onClick: K(n)
|
|
2218
2261
|
}, {
|
|
2219
|
-
default:
|
|
2262
|
+
default: ot(() => [K(t) ? (V(), N(K(ke), {
|
|
2220
2263
|
key: 0,
|
|
2221
|
-
size: 18
|
|
2222
|
-
|
|
2223
|
-
})) : (B(), M(W(je), {
|
|
2264
|
+
size: 18
|
|
2265
|
+
})) : (V(), N(K(je), {
|
|
2224
2266
|
key: 1,
|
|
2225
|
-
size: 18
|
|
2226
|
-
class: "group-hover:text-td-primary-solid transition-colors"
|
|
2267
|
+
size: 18
|
|
2227
2268
|
}))]),
|
|
2228
2269
|
_: 1
|
|
2229
2270
|
}, 8, ["label", "onClick"]));
|
|
@@ -2231,7 +2272,7 @@ var ka = { class: "td-search" }, Aa = { class: "td-search-input-wrap" }, ja = {
|
|
|
2231
2272
|
});
|
|
2232
2273
|
//#endregion
|
|
2233
2274
|
//#region src/client/theme-default/composables/useCopyCode.ts
|
|
2234
|
-
function
|
|
2275
|
+
function Ra() {
|
|
2235
2276
|
function e(e) {
|
|
2236
2277
|
let t = e.target?.closest(".copy");
|
|
2237
2278
|
if (!t) return;
|
|
@@ -2251,19 +2292,19 @@ function Ba() {
|
|
|
2251
2292
|
}
|
|
2252
2293
|
//#endregion
|
|
2253
2294
|
//#region src/client/theme-default/composables/useHotkey.ts
|
|
2254
|
-
var
|
|
2295
|
+
var za = /* @__PURE__ */ new Map([
|
|
2255
2296
|
[$.Control, "ctrlKey"],
|
|
2256
2297
|
[$.Alt, "altKey"],
|
|
2257
2298
|
[$.Shift, "shiftKey"],
|
|
2258
2299
|
[$.Meta, "metaKey"]
|
|
2259
2300
|
]);
|
|
2260
|
-
function
|
|
2301
|
+
function Ba(e, t) {
|
|
2261
2302
|
function n(n) {
|
|
2262
|
-
n.defaultPrevented ||
|
|
2303
|
+
n.defaultPrevented || Ha(n, e) && (n.preventDefault(), t(n));
|
|
2263
2304
|
}
|
|
2264
2305
|
Ke(() => window.addEventListener("keydown", n)), Je(() => window.removeEventListener("keydown", n));
|
|
2265
2306
|
}
|
|
2266
|
-
function
|
|
2307
|
+
function Va(e) {
|
|
2267
2308
|
let t = [];
|
|
2268
2309
|
function n(e, n) {
|
|
2269
2310
|
t.push({
|
|
@@ -2272,30 +2313,30 @@ function Ua(e) {
|
|
|
2272
2313
|
});
|
|
2273
2314
|
}
|
|
2274
2315
|
function r(e) {
|
|
2275
|
-
for (let n of t) if (
|
|
2316
|
+
for (let n of t) if (Ha(e, n.keys)) {
|
|
2276
2317
|
e.preventDefault(), e.stopPropagation(), n.handler(e);
|
|
2277
2318
|
return;
|
|
2278
2319
|
}
|
|
2279
2320
|
}
|
|
2280
|
-
return
|
|
2321
|
+
return q(e, (e, t) => {
|
|
2281
2322
|
t?.removeEventListener("keydown", r), e?.addEventListener("keydown", r);
|
|
2282
2323
|
}, { immediate: !0 }), Je(() => {
|
|
2283
2324
|
e.value?.removeEventListener("keydown", r);
|
|
2284
2325
|
}), { register: n };
|
|
2285
2326
|
}
|
|
2286
|
-
function
|
|
2287
|
-
let n = t.filter((e) =>
|
|
2327
|
+
function Ha(e, t) {
|
|
2328
|
+
let n = t.filter((e) => za.has(e)), r = t.filter((e) => !za.has(e));
|
|
2288
2329
|
if (r.length !== 1 || e.key.toLowerCase() !== r[0].toLowerCase()) return !1;
|
|
2289
|
-
for (let t of n) if (!e[
|
|
2330
|
+
for (let t of n) if (!e[za.get(t)]) return !1;
|
|
2290
2331
|
return !(e.ctrlKey && !n.includes($.Control) || e.altKey && !n.includes($.Alt) || e.shiftKey && !n.includes($.Shift) || e.metaKey && !n.includes($.Meta));
|
|
2291
2332
|
}
|
|
2292
2333
|
//#endregion
|
|
2293
2334
|
//#region src/client/theme-default/composables/useResizableTable.ts
|
|
2294
|
-
var
|
|
2295
|
-
function
|
|
2335
|
+
var Ua = 6, Wa = 40;
|
|
2336
|
+
function Ga() {
|
|
2296
2337
|
let e, t = !1;
|
|
2297
2338
|
function n(e, t) {
|
|
2298
|
-
return e.getBoundingClientRect().right - t <
|
|
2339
|
+
return e.getBoundingClientRect().right - t < Ua;
|
|
2299
2340
|
}
|
|
2300
2341
|
function r(r) {
|
|
2301
2342
|
if (t) return;
|
|
@@ -2315,7 +2356,7 @@ function qa() {
|
|
|
2315
2356
|
r.classList.add("is-resizing"), document.body.style.cursor = "col-resize";
|
|
2316
2357
|
function o(e) {
|
|
2317
2358
|
let t = e.clientX - i;
|
|
2318
|
-
r && (r.style.width = `${Math.max(
|
|
2359
|
+
r && (r.style.width = `${Math.max(Wa, a + t)}px`);
|
|
2319
2360
|
}
|
|
2320
2361
|
function s() {
|
|
2321
2362
|
t = !1, r?.classList.remove("is-resizing"), document.body.style.cursor = "", document.removeEventListener("pointermove", o), document.removeEventListener("pointerup", s);
|
|
@@ -2330,31 +2371,31 @@ function qa() {
|
|
|
2330
2371
|
}
|
|
2331
2372
|
//#endregion
|
|
2332
2373
|
//#region src/client/theme-default/TdLayout.vue?vue&type=script&setup=true&lang.ts
|
|
2333
|
-
var
|
|
2374
|
+
var Ka = { class: "td-header" }, qa = { class: "td-header-left" }, Ja = ["href"], Ya = { class: "td-brand-name" }, Xa = { class: "td-header-right" }, Za = ["href"], Qa = { class: "td-drawer-header" }, $a = ["href"], eo = { class: "td-brand-name" }, to = {
|
|
2334
2375
|
key: 0,
|
|
2335
2376
|
class: "pt-4",
|
|
2336
2377
|
"aria-label": "Site navigation"
|
|
2337
|
-
},
|
|
2378
|
+
}, no = { class: "td-page" }, ro = { class: "td-sidebar-scroll" }, io = ["onKeydown"], ao = { class: "td-main-and-rail" }, oo = { class: "td-main" }, so = {
|
|
2338
2379
|
id: "td-content",
|
|
2339
2380
|
class: "td-content"
|
|
2340
|
-
},
|
|
2381
|
+
}, co = {
|
|
2341
2382
|
key: 0,
|
|
2342
2383
|
class: "td-page-eyebrow"
|
|
2343
|
-
},
|
|
2384
|
+
}, lo = {
|
|
2344
2385
|
key: 1,
|
|
2345
2386
|
class: "td-page-icon"
|
|
2346
|
-
},
|
|
2387
|
+
}, uo = ["innerHTML"], fo = {
|
|
2347
2388
|
key: 3,
|
|
2348
2389
|
class: "td-page-meta"
|
|
2349
|
-
},
|
|
2390
|
+
}, po = { key: 0 }, mo = { class: "td-content-body" }, ho = 200, go = 500, _o = 272, vo = "td-sidebar-width", yo = /*#__PURE__*/ O(/* @__PURE__ */ z({
|
|
2350
2391
|
__name: "TdLayout",
|
|
2351
2392
|
setup(e) {
|
|
2352
|
-
let { title: t, page: n } = Te(), r =
|
|
2393
|
+
let { title: t, page: n } = Te(), r = M(() => {
|
|
2353
2394
|
let e = n.value.icon;
|
|
2354
2395
|
return e ? ye(e.name) : void 0;
|
|
2355
|
-
}), i =
|
|
2356
|
-
|
|
2357
|
-
let g =
|
|
2396
|
+
}), i = k(), { withBase: a } = i, o = he(), s = M(() => o.value.ready), { isOpen: c, open: u, close: d } = Ki(), f = H(""), p = H(!1), m = H(!1), h = A();
|
|
2397
|
+
q(() => h.path, () => d()), Ra();
|
|
2398
|
+
let g = rt("sidebarSearch"), _ = rt("menuSearch");
|
|
2358
2399
|
function v() {
|
|
2359
2400
|
if (_.value?.isFocused || g.value?.isFocused) {
|
|
2360
2401
|
_.value?.blur(), g.value?.blur(), c.value && d();
|
|
@@ -2362,163 +2403,166 @@ var Ja = { class: "td-header" }, Ya = { class: "td-header-left" }, Xa = ["href"]
|
|
|
2362
2403
|
}
|
|
2363
2404
|
c.value ? _.value?.focus() : g.value?.isVisible ? g.value.focus() : (u(), Ue(() => _.value?.focus()));
|
|
2364
2405
|
}
|
|
2365
|
-
|
|
2406
|
+
Ba([$.Control, $.k], v), Ba([$.Meta, $.k], v), at(() => {
|
|
2366
2407
|
if (typeof document > "u") return;
|
|
2367
2408
|
let e = t.value, r = i.title;
|
|
2368
2409
|
document.title = e && e !== r ? `${e} - ${r}` : r;
|
|
2369
2410
|
let a = n.value.frontmatter?.description === void 0 ? i.description ?? "" : String(n.value.frontmatter.description), o = document.querySelector("meta[name=\"description\"]");
|
|
2370
2411
|
o && o.setAttribute("content", a);
|
|
2371
|
-
}),
|
|
2372
|
-
let y =
|
|
2373
|
-
function
|
|
2374
|
-
y.value = Math.min(
|
|
2412
|
+
}), Ga();
|
|
2413
|
+
let y = H(typeof localStorage < "u" && Number(localStorage.getItem(vo)) || _o);
|
|
2414
|
+
function b() {
|
|
2415
|
+
y.value = Math.min(go, y.value + 20);
|
|
2375
2416
|
}
|
|
2376
2417
|
function S(e) {
|
|
2377
2418
|
let t = e.clientX, n = y.value, r = e.currentTarget;
|
|
2378
2419
|
r.setPointerCapture(e.pointerId);
|
|
2379
2420
|
function i(e) {
|
|
2380
|
-
let r = Math.min(
|
|
2421
|
+
let r = Math.min(go, Math.max(ho, n + e.clientX - t));
|
|
2381
2422
|
y.value = r;
|
|
2382
2423
|
}
|
|
2383
2424
|
function a() {
|
|
2384
|
-
document.body.style.cursor = "", r.removeEventListener("pointermove", i), r.removeEventListener("pointerup", a), localStorage.setItem(
|
|
2425
|
+
document.body.style.cursor = "", r.removeEventListener("pointermove", i), r.removeEventListener("pointerup", a), localStorage.setItem(vo, String(y.value));
|
|
2385
2426
|
}
|
|
2386
2427
|
document.body.style.cursor = "col-resize", r.addEventListener("pointermove", i), r.addEventListener("pointerup", a);
|
|
2387
2428
|
}
|
|
2388
2429
|
function C() {
|
|
2389
|
-
y.value = Math.max(
|
|
2430
|
+
y.value = Math.max(ho, y.value - 20);
|
|
2390
2431
|
}
|
|
2391
|
-
return (e, u) => (
|
|
2392
|
-
u[
|
|
2432
|
+
return (e, u) => (V(), F("div", null, [
|
|
2433
|
+
u[6] ||= I("a", {
|
|
2393
2434
|
href: "#td-content",
|
|
2394
2435
|
class: "td-skip-link"
|
|
2395
2436
|
}, "Skip to content", -1),
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
href:
|
|
2437
|
+
I("header", Ka, [
|
|
2438
|
+
I("div", qa, [
|
|
2439
|
+
R(qi),
|
|
2440
|
+
I("a", {
|
|
2441
|
+
href: K(a)(K(l)("/")),
|
|
2401
2442
|
class: "td-brand"
|
|
2402
|
-
}, [
|
|
2403
|
-
|
|
2443
|
+
}, [R(Tt), I("span", Ya, G(K(i).title || "Typedown"), 1)], 8, Ja),
|
|
2444
|
+
R(Jr, { class: "td-header-breadcrumb" })
|
|
2404
2445
|
]),
|
|
2405
|
-
|
|
2406
|
-
|
|
2446
|
+
R(K(Zr)),
|
|
2447
|
+
I("div", Xa, [R(La), K(i).repo ? (V(), F("a", {
|
|
2407
2448
|
key: 0,
|
|
2408
|
-
href:
|
|
2449
|
+
href: K(i).repo,
|
|
2409
2450
|
target: "_blank",
|
|
2410
2451
|
rel: "noopener noreferrer",
|
|
2411
2452
|
class: "td-header-icon-link",
|
|
2412
2453
|
"aria-label": "GitHub repository"
|
|
2413
|
-
}, [...u[
|
|
2454
|
+
}, [...u[5] ||= [I("svg", {
|
|
2414
2455
|
width: "20",
|
|
2415
2456
|
height: "20",
|
|
2416
2457
|
viewBox: "0 0 98 96",
|
|
2417
2458
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2418
2459
|
"aria-hidden": "true",
|
|
2419
2460
|
fill: "currentColor"
|
|
2420
|
-
}, [
|
|
2461
|
+
}, [I("path", {
|
|
2421
2462
|
"fill-rule": "evenodd",
|
|
2422
2463
|
"clip-rule": "evenodd",
|
|
2423
2464
|
d: "M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59\n 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367\n 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778\n 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125\n 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2\n 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364\n 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z"
|
|
2424
|
-
})], -1)]], 8,
|
|
2465
|
+
})], -1)]], 8, Za)) : P("", !0)])
|
|
2425
2466
|
]),
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2467
|
+
I("div", {
|
|
2468
|
+
class: B(["td-drawer-scrim", { "is-open": K(c) }]),
|
|
2469
|
+
onClick: u[0] ||= (...e) => K(d) && K(d)(...e)
|
|
2470
|
+
}, null, 2),
|
|
2471
|
+
I("aside", { class: B(["td-drawer", { "is-open": K(c) }]) }, [
|
|
2472
|
+
I("header", Qa, [I("a", {
|
|
2473
|
+
href: K(a)(K(l)("/")),
|
|
2474
|
+
class: "td-brand"
|
|
2475
|
+
}, [R(Tt), I("span", eo, G(K(i).title || "Typedown"), 1)], 8, $a), R(Dt, {
|
|
2429
2476
|
label: "Close menu",
|
|
2430
|
-
onClick:
|
|
2477
|
+
onClick: K(d)
|
|
2431
2478
|
}, {
|
|
2432
|
-
default:
|
|
2479
|
+
default: ot(() => [R(K(be), { size: 20 })]),
|
|
2433
2480
|
_: 1
|
|
2434
|
-
}, 8, ["onClick"]),
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
}, [L(Et), F("span", ro, U(W(i).title || "Typedown"), 1)], 8, no)])]),
|
|
2438
|
-
L(W(ei)),
|
|
2439
|
-
L(Ra, {
|
|
2481
|
+
}, 8, ["onClick"])]),
|
|
2482
|
+
R(K(ei)),
|
|
2483
|
+
R(Ia, {
|
|
2440
2484
|
ref_key: "menuSearch",
|
|
2441
2485
|
ref: _,
|
|
2442
2486
|
query: f.value,
|
|
2443
|
-
"onUpdate:query": u[
|
|
2487
|
+
"onUpdate:query": u[1] ||= (e) => f.value = e,
|
|
2444
2488
|
active: m.value,
|
|
2445
|
-
"onUpdate:active": u[
|
|
2446
|
-
onSelect:
|
|
2489
|
+
"onUpdate:active": u[2] ||= (e) => m.value = e,
|
|
2490
|
+
onSelect: K(d)
|
|
2447
2491
|
}, null, 8, [
|
|
2448
2492
|
"query",
|
|
2449
2493
|
"active",
|
|
2450
2494
|
"onSelect"
|
|
2451
2495
|
]),
|
|
2452
|
-
m.value ?
|
|
2496
|
+
m.value ? P("", !0) : (V(), F("nav", to, [s.value ? (V(), N(Nr, {
|
|
2453
2497
|
key: 1,
|
|
2454
|
-
tree:
|
|
2455
|
-
}, null, 8, ["tree"])) : (
|
|
2498
|
+
tree: K(o).contentTree
|
|
2499
|
+
}, null, 8, ["tree"])) : (V(), N(ya, { key: 0 }))]))
|
|
2456
2500
|
], 2),
|
|
2457
|
-
|
|
2501
|
+
I("div", no, [I("nav", {
|
|
2458
2502
|
class: "td-sidebar-left",
|
|
2459
2503
|
"aria-label": "Site navigation",
|
|
2460
2504
|
style: We({ width: `${y.value}px` })
|
|
2461
|
-
}, [
|
|
2505
|
+
}, [I("div", ro, [R(Ia, {
|
|
2462
2506
|
ref_key: "sidebarSearch",
|
|
2463
2507
|
ref: g,
|
|
2464
2508
|
query: f.value,
|
|
2465
|
-
"onUpdate:query": u[
|
|
2509
|
+
"onUpdate:query": u[3] ||= (e) => f.value = e,
|
|
2466
2510
|
active: p.value,
|
|
2467
|
-
"onUpdate:active": u[
|
|
2468
|
-
}, null, 8, ["query", "active"]), !p.value && !s.value ? (
|
|
2511
|
+
"onUpdate:active": u[4] ||= (e) => p.value = e
|
|
2512
|
+
}, null, 8, ["query", "active"]), !p.value && !s.value ? (V(), N(ya, { key: 0 })) : p.value ? P("", !0) : (V(), N(Nr, {
|
|
2469
2513
|
key: 1,
|
|
2470
|
-
tree:
|
|
2471
|
-
}, null, 8, ["tree"]))]),
|
|
2514
|
+
tree: K(o).contentTree
|
|
2515
|
+
}, null, 8, ["tree"]))]), I("div", {
|
|
2472
2516
|
class: "td-sidebar-resize",
|
|
2473
2517
|
role: "separator",
|
|
2474
2518
|
"aria-orientation": "vertical",
|
|
2475
2519
|
"aria-label": "Resize sidebar",
|
|
2476
2520
|
tabindex: "0",
|
|
2477
|
-
onPointerdown:
|
|
2478
|
-
onKeydown: [lt(
|
|
2479
|
-
}, null, 40,
|
|
2480
|
-
|
|
2481
|
-
r.value ? (
|
|
2482
|
-
|
|
2521
|
+
onPointerdown: lt(S, ["prevent"]),
|
|
2522
|
+
onKeydown: [ct(lt(C, ["prevent"]), ["left"]), ct(lt(b, ["prevent"]), ["right"])]
|
|
2523
|
+
}, null, 40, io)], 4), I("div", ao, [I("main", oo, [I("article", so, [
|
|
2524
|
+
K(n).schema ? (V(), F("div", co, G(K(n).schemaLabel ?? K(n).schema), 1)) : P("", !0),
|
|
2525
|
+
r.value ? (V(), F("div", lo, [(V(), N(W(r.value), { size: 32 }))])) : P("", !0),
|
|
2526
|
+
K(t) ? (V(), F("h1", {
|
|
2483
2527
|
key: 2,
|
|
2484
2528
|
class: "td-page-title",
|
|
2485
|
-
innerHTML:
|
|
2486
|
-
}, null, 8,
|
|
2487
|
-
|
|
2488
|
-
|
|
2529
|
+
innerHTML: K(kt)(K(t))
|
|
2530
|
+
}, null, 8, uo)) : P("", !0),
|
|
2531
|
+
K(n).metadata ? (V(), F("div", fo, [I("span", null, G(K(x)(K(n).metadata.mtime, "Modified")), 1), K(n).metadata.ctime === K(n).metadata.mtime ? P("", !0) : (V(), F("span", po, " · " + G(K(x)(K(n).metadata.ctime, "Created")), 1))])) : P("", !0),
|
|
2532
|
+
R(K(Wi), {
|
|
2489
2533
|
class: "td-frontmatter-inline",
|
|
2490
|
-
schema:
|
|
2491
|
-
frontmatter:
|
|
2534
|
+
schema: K(n).schema,
|
|
2535
|
+
frontmatter: K(n).frontmatter
|
|
2492
2536
|
}, null, 8, ["schema", "frontmatter"]),
|
|
2493
|
-
|
|
2537
|
+
K(n).headings.length > 0 ? (V(), N(ha, {
|
|
2494
2538
|
key: 4,
|
|
2495
2539
|
class: "td-toc-inline",
|
|
2496
|
-
headings:
|
|
2540
|
+
headings: K(n).headings,
|
|
2497
2541
|
static: ""
|
|
2498
|
-
}, null, 8, ["headings"])) :
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
])]),
|
|
2502
|
-
|
|
2542
|
+
}, null, 8, ["headings"])) : P("", !0),
|
|
2543
|
+
I("div", mo, [R(K(_e))]),
|
|
2544
|
+
R(ca)
|
|
2545
|
+
])]), R(_a, { class: "td-rail" })])]),
|
|
2546
|
+
R(Ir)
|
|
2503
2547
|
]));
|
|
2504
2548
|
}
|
|
2505
|
-
}), [["__scopeId", "data-v-
|
|
2549
|
+
}), [["__scopeId", "data-v-b9155f4a"]]), bo = { class: "pt-16 pb-24" }, xo = ["href"], So = /* @__PURE__ */ z({
|
|
2506
2550
|
__name: "TdNotFound",
|
|
2507
2551
|
setup(e) {
|
|
2508
|
-
let { withBase: t } =
|
|
2509
|
-
return (e, n) => (
|
|
2510
|
-
n[0] ||=
|
|
2511
|
-
n[1] ||=
|
|
2512
|
-
n[2] ||=
|
|
2513
|
-
|
|
2514
|
-
class: "inline-flex items-center mt-6 text-td-
|
|
2515
|
-
href:
|
|
2516
|
-
}, "Go Home", 8,
|
|
2552
|
+
let { withBase: t } = k();
|
|
2553
|
+
return (e, n) => (V(), F("div", bo, [
|
|
2554
|
+
n[0] ||= I("p", { class: "text-td-4xl font-extrabold leading-none tracking-td-tight text-td-fg-muted" }, " 404 ", -1),
|
|
2555
|
+
n[1] ||= I("h1", { class: "text-td-xl font-extrabold leading-td-tight tracking-td-tight mt-4" }, " Page Not Found ", -1),
|
|
2556
|
+
n[2] ||= I("p", { class: "text-td-fg-muted mt-2 text-td-base leading-td-relaxed" }, " The page you are looking for does not exist. ", -1),
|
|
2557
|
+
I("a", {
|
|
2558
|
+
class: "inline-flex items-center mt-6 text-td-accent text-td-sm font-extrabold tracking-td-tight hover:text-td-accent-hi",
|
|
2559
|
+
href: K(t)(K(l)("/"))
|
|
2560
|
+
}, "Go Home", 8, xo)
|
|
2517
2561
|
]));
|
|
2518
2562
|
}
|
|
2519
|
-
}),
|
|
2520
|
-
Layout:
|
|
2521
|
-
NotFound:
|
|
2563
|
+
}), Co = {
|
|
2564
|
+
Layout: yo,
|
|
2565
|
+
NotFound: So
|
|
2522
2566
|
};
|
|
2523
2567
|
//#endregion
|
|
2524
|
-
export { Ce as TdDirectoryIndex, Ee as TdGlossaryIndex,
|
|
2568
|
+
export { Ce as TdDirectoryIndex, Ee as TdGlossaryIndex, xa as TdKbdShortcut, $ as TdKeyName, yo as TdLayout, So as TdNotFound, Co as default, Ra as useCopyCode, Ba as useGlobalHotkey, Va as useLocalHotkeys };
|