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