typerighter 0.48.1 → 0.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{cli-D9xuNQlK.js → cli-B8atPbzb.js} +5 -5
- package/dist/cli.js +1 -1
- package/dist/client/theme-default.js +384 -318
- package/dist/index.js +2 -2
- package/dist/{init-DW-ZnfKN.js → init-wSHpq5lP.js} +1 -1
- package/dist/node/lib/render/highlight/index.d.ts +1 -1
- package/dist/node/lib/render/highlight/index.d.ts.map +1 -1
- package/dist/node/lib/render/postprocess.d.ts.map +1 -1
- package/dist/typerighter.css +1 -1
- package/dist/{vite-Daafvzdq.js → vite-1F0Ui0Iu.js} +209 -137
- package/dist/vite.js +1 -1
- package/package.json +3 -3
|
@@ -3,8 +3,8 @@ import { t as T } from "../es-ClqUVRJn.js";
|
|
|
3
3
|
import { A as ee, C as te, D as ne, E, F as re, I as ie, L as D, M as ae, N as oe, O as se, P as ce, S as le, T as ue, _ as de, a as fe, b as pe, c as O, d as me, f as he, g as ge, h as _e, i as ve, j as ye, k as be, m as k, n as xe, o as Se, p as Ce, r as A, s as we, u as Te, v as Ee, w as De, x as Oe, y as ke } from "../app-n56VkC5b.js";
|
|
4
4
|
import { a as Ae, i as je, n as Me, t as Ne } from "../brand-CG1fQshq.js";
|
|
5
5
|
import { t as Pe } from "../inlineRe-Cn-J_E76.js";
|
|
6
|
-
import { Fragment as j, Teleport as Fe, computed as M, createBlock as N, createCommentVNode as P, createElementBlock as F, createElementVNode as I, createTextVNode as L, createVNode as R, defineComponent as z, getCurrentScope as Ie, markRaw as Le, mergeModels as Re, mergeProps as ze, nextTick as Be, normalizeClass as B, normalizeStyle as Ve, onBeforeUnmount as He, onMounted as Ue, onScopeDispose as We, onUnmounted as V, openBlock as H, readonly as Ge, ref as U, renderList as W, renderSlot as G, resolveComponent as Ke, resolveDynamicComponent as
|
|
7
|
-
var
|
|
6
|
+
import { Fragment as j, Teleport as Fe, computed as M, createBlock as N, createCommentVNode as P, createElementBlock as F, createElementVNode as I, createTextVNode as L, createVNode as R, defineComponent as z, getCurrentScope as Ie, markRaw as Le, mergeModels as Re, mergeProps as ze, nextTick as Be, normalizeClass as B, normalizeStyle as Ve, onBeforeUnmount as He, onMounted as Ue, onScopeDispose as We, onUnmounted as V, openBlock as H, readonly as Ge, ref as U, renderList as W, renderSlot as G, resolveComponent as Ke, resolveDynamicComponent as K, shallowReadonly as qe, shallowRef as Je, toDisplayString as q, toValue as Ye, unref as J, useModel as Xe, useTemplateRef as Ze, vModelText as Qe, watch as Y, watchEffect as $e, withCtx as et, withDirectives as tt, withKeys as nt, withModifiers as rt } from "vue";
|
|
7
|
+
var it = D({
|
|
8
8
|
name: "circle-dot",
|
|
9
9
|
size: 24,
|
|
10
10
|
node: [["circle", {
|
|
@@ -18,14 +18,14 @@ var at = D({
|
|
|
18
18
|
r: "10",
|
|
19
19
|
key: "1mglay"
|
|
20
20
|
}]]
|
|
21
|
-
}),
|
|
21
|
+
}), at = D({
|
|
22
22
|
name: "command",
|
|
23
23
|
size: 24,
|
|
24
24
|
node: [["path", {
|
|
25
25
|
d: "M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",
|
|
26
26
|
key: "11bfej"
|
|
27
27
|
}]]
|
|
28
|
-
}),
|
|
28
|
+
}), ot = D({
|
|
29
29
|
name: "corner-down-left",
|
|
30
30
|
size: 24,
|
|
31
31
|
node: [["path", {
|
|
@@ -35,7 +35,7 @@ var at = D({
|
|
|
35
35
|
d: "m9 10-5 5 5 5",
|
|
36
36
|
key: "1kshq7"
|
|
37
37
|
}]]
|
|
38
|
-
}),
|
|
38
|
+
}), st = D({
|
|
39
39
|
name: "delete",
|
|
40
40
|
size: 24,
|
|
41
41
|
node: [
|
|
@@ -52,14 +52,14 @@ var at = D({
|
|
|
52
52
|
key: "1fp51s"
|
|
53
53
|
}]
|
|
54
54
|
]
|
|
55
|
-
}),
|
|
55
|
+
}), ct = D({
|
|
56
56
|
name: "folder-open",
|
|
57
57
|
size: 24,
|
|
58
58
|
node: [["path", {
|
|
59
59
|
d: "m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",
|
|
60
60
|
key: "usdka0"
|
|
61
61
|
}]]
|
|
62
|
-
}),
|
|
62
|
+
}), lt = D({
|
|
63
63
|
name: "loader-circle",
|
|
64
64
|
size: 24,
|
|
65
65
|
node: [["path", {
|
|
@@ -67,7 +67,7 @@ var at = D({
|
|
|
67
67
|
key: "13zald"
|
|
68
68
|
}]],
|
|
69
69
|
aliases: ["loader-2"]
|
|
70
|
-
}),
|
|
70
|
+
}), ut = D({
|
|
71
71
|
name: "option",
|
|
72
72
|
size: 24,
|
|
73
73
|
node: [["path", {
|
|
@@ -77,14 +77,14 @@ var at = D({
|
|
|
77
77
|
d: "M3 3h5.28a1 1 0 0 1 .948.684l5.544 16.632a1 1 0 0 0 .949.684H21",
|
|
78
78
|
key: "1qf1im"
|
|
79
79
|
}]]
|
|
80
|
-
}),
|
|
80
|
+
}), dt = D({
|
|
81
81
|
name: "space",
|
|
82
82
|
size: 24,
|
|
83
83
|
node: [["path", {
|
|
84
84
|
d: "M22 17v1c0 .5-.5 1-1 1H3c-.5 0-1-.5-1-1v-1",
|
|
85
85
|
key: "lt2kga"
|
|
86
86
|
}]]
|
|
87
|
-
}),
|
|
87
|
+
}), ft = D({
|
|
88
88
|
name: "square-check-big",
|
|
89
89
|
size: 24,
|
|
90
90
|
node: [["path", {
|
|
@@ -95,7 +95,7 @@ var at = D({
|
|
|
95
95
|
key: "1pflzl"
|
|
96
96
|
}]],
|
|
97
97
|
aliases: ["check-square"]
|
|
98
|
-
}),
|
|
98
|
+
}), pt = D({
|
|
99
99
|
name: "tags",
|
|
100
100
|
size: 24,
|
|
101
101
|
node: [
|
|
@@ -115,7 +115,7 @@ var at = D({
|
|
|
115
115
|
key: "12ikhr"
|
|
116
116
|
}]
|
|
117
117
|
]
|
|
118
|
-
}),
|
|
118
|
+
}), mt = D({
|
|
119
119
|
name: "type",
|
|
120
120
|
size: 24,
|
|
121
121
|
node: [
|
|
@@ -132,11 +132,11 @@ var at = D({
|
|
|
132
132
|
key: "s66wpe"
|
|
133
133
|
}]
|
|
134
134
|
]
|
|
135
|
-
}),
|
|
135
|
+
}), ht = [
|
|
136
136
|
"height",
|
|
137
137
|
"width",
|
|
138
138
|
"viewBox"
|
|
139
|
-
],
|
|
139
|
+
], gt = ["d"], _t = ["d"], vt = ["d"], yt = /* @__PURE__ */ z({
|
|
140
140
|
__name: "TdBrandIcon",
|
|
141
141
|
props: { size: { default: 28 } },
|
|
142
142
|
setup(e) {
|
|
@@ -144,26 +144,26 @@ var at = D({
|
|
|
144
144
|
fill: "none",
|
|
145
145
|
height: e.size,
|
|
146
146
|
width: e.size * 208 / 128,
|
|
147
|
-
viewBox:
|
|
147
|
+
viewBox: J(Ae),
|
|
148
148
|
xmlns: "http://www.w3.org/2000/svg"
|
|
149
149
|
}, [
|
|
150
150
|
I("path", {
|
|
151
151
|
"clip-rule": "evenodd",
|
|
152
|
-
d:
|
|
152
|
+
d: J(Me),
|
|
153
153
|
"fill-rule": "evenodd",
|
|
154
154
|
fill: "currentColor"
|
|
155
|
-
}, null, 8,
|
|
155
|
+
}, null, 8, gt),
|
|
156
156
|
I("path", {
|
|
157
|
-
d:
|
|
157
|
+
d: J(je),
|
|
158
158
|
fill: "currentColor"
|
|
159
|
-
}, null, 8,
|
|
159
|
+
}, null, 8, _t),
|
|
160
160
|
I("path", {
|
|
161
|
-
d:
|
|
161
|
+
d: J(Ne),
|
|
162
162
|
fill: "currentColor"
|
|
163
|
-
}, null, 8,
|
|
164
|
-
], 8,
|
|
163
|
+
}, null, 8, vt)
|
|
164
|
+
], 8, ht));
|
|
165
165
|
}
|
|
166
|
-
}),
|
|
166
|
+
}), bt = ["title", "aria-label"], xt = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
167
167
|
__name: "TdButton",
|
|
168
168
|
props: { label: {} },
|
|
169
169
|
setup(e) {
|
|
@@ -172,9 +172,9 @@ var at = D({
|
|
|
172
172
|
class: "td-icon-btn",
|
|
173
173
|
title: e.label,
|
|
174
174
|
"aria-label": e.label
|
|
175
|
-
}, [G(t.$slots, "default", {}, void 0, !0)], 8,
|
|
175
|
+
}, [G(t.$slots, "default", {}, void 0, !0)], 8, bt));
|
|
176
176
|
}
|
|
177
|
-
}), [["__scopeId", "data-v-b1861a4a"]]),
|
|
177
|
+
}), [["__scopeId", "data-v-b1861a4a"]]), St = Math.min, Ct = Math.max, wt = Math.round, Tt = (e) => ({
|
|
178
178
|
x: e,
|
|
179
179
|
y: e
|
|
180
180
|
}), Et = {
|
|
@@ -184,7 +184,7 @@ var at = D({
|
|
|
184
184
|
top: "bottom"
|
|
185
185
|
};
|
|
186
186
|
function Dt(e, t, n) {
|
|
187
|
-
return
|
|
187
|
+
return Ct(e, St(t, n));
|
|
188
188
|
}
|
|
189
189
|
function Ot(e, t) {
|
|
190
190
|
return typeof e == "function" ? e(t) : e;
|
|
@@ -389,7 +389,7 @@ var Xt = 50, Zt = async (e, t, n) => {
|
|
|
389
389
|
y: r
|
|
390
390
|
}, p = Pt(i), m = Mt(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;
|
|
391
391
|
(!C || !await (o.isElement == null ? void 0 : o.isElement(S))) && (C = s.floating[y] || a.floating[m]);
|
|
392
|
-
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, ee =
|
|
392
|
+
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, ee = St(d[_], T), te = St(d[v], T), ne = C - h[m] - te, E = C / 2 - h[m] / 2 + w, re = Dt(ee, E, ne), ie = !c.arrow && At(i) != null && E !== re && a.reference[m] / 2 - (E < ee ? ee : te) - h[m] / 2 < 0, D = ie ? E < ee ? E - ee : E - ne : 0;
|
|
393
393
|
return {
|
|
394
394
|
[p]: f[p] + D,
|
|
395
395
|
data: {
|
|
@@ -618,7 +618,7 @@ function En(e) {
|
|
|
618
618
|
//#endregion
|
|
619
619
|
//#region ../../node_modules/.pnpm/@floating-ui+dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
620
620
|
function Dn(e) {
|
|
621
|
-
let t = Q(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = ln(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s =
|
|
621
|
+
let t = Q(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = ln(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = wt(n) !== a || wt(r) !== o;
|
|
622
622
|
return s && (n = a, r = o), {
|
|
623
623
|
width: n,
|
|
624
624
|
height: r,
|
|
@@ -630,14 +630,14 @@ function On(e) {
|
|
|
630
630
|
}
|
|
631
631
|
function kn(e) {
|
|
632
632
|
let t = On(e);
|
|
633
|
-
if (!ln(t)) return
|
|
634
|
-
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Dn(t), o = (a ?
|
|
633
|
+
if (!ln(t)) return Tt(1);
|
|
634
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Dn(t), o = (a ? wt(n.width) : n.width) / r, s = (a ? wt(n.height) : n.height) / i;
|
|
635
635
|
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
636
636
|
x: o,
|
|
637
637
|
y: s
|
|
638
638
|
};
|
|
639
639
|
}
|
|
640
|
-
var An = /*#__PURE__*/
|
|
640
|
+
var An = /*#__PURE__*/ Tt(0);
|
|
641
641
|
function jn(e) {
|
|
642
642
|
let t = X(e);
|
|
643
643
|
return !bn() || !t.visualViewport ? An : {
|
|
@@ -650,9 +650,9 @@ function Mn(e, t, n) {
|
|
|
650
650
|
}
|
|
651
651
|
function Nn(e, t, n, r) {
|
|
652
652
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
653
|
-
let i = e.getBoundingClientRect(), a = On(e), o =
|
|
653
|
+
let i = e.getBoundingClientRect(), a = On(e), o = Tt(1);
|
|
654
654
|
t && (r ? Z(r) && (o = kn(r)) : o = kn(e));
|
|
655
|
-
let s = Mn(a, n, r) ? jn(a) :
|
|
655
|
+
let s = Mn(a, n, r) ? jn(a) : Tt(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;
|
|
656
656
|
if (a && r) {
|
|
657
657
|
let e = X(a), t = Z(r) ? X(r) : r, n = e, i = En(n);
|
|
658
658
|
for (; i && t !== n;) {
|
|
@@ -684,12 +684,12 @@ function In(e) {
|
|
|
684
684
|
let c = {
|
|
685
685
|
scrollLeft: 0,
|
|
686
686
|
scrollTop: 0
|
|
687
|
-
}, l =
|
|
687
|
+
}, l = Tt(1), u = Tt(0), d = ln(r);
|
|
688
688
|
if ((d || !a) && ((on(r) !== "body" || dn(o)) && (c = Sn(r)), d)) {
|
|
689
689
|
let e = Nn(r);
|
|
690
690
|
l = kn(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
691
691
|
}
|
|
692
|
-
let f = o && !d && !a ? Fn(o, c) :
|
|
692
|
+
let f = o && !d && !a ? Fn(o, c) : Tt(0);
|
|
693
693
|
return {
|
|
694
694
|
width: n.width * l.x,
|
|
695
695
|
height: n.height * l.y,
|
|
@@ -701,8 +701,8 @@ function Ln(e) {
|
|
|
701
701
|
return e.getClientRects ? Array.from(e.getClientRects()) : [];
|
|
702
702
|
}
|
|
703
703
|
function Rn(e) {
|
|
704
|
-
let t = Sn(e), n = e.ownerDocument.body, r =
|
|
705
|
-
return Q(n).direction === "rtl" && (a +=
|
|
704
|
+
let t = Sn(e), n = e.ownerDocument.body, r = Ct(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = Ct(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft + Pn(e), o = -t.scrollTop;
|
|
705
|
+
return Q(n).direction === "rtl" && (a += Ct(e.clientWidth, n.clientWidth) - r), {
|
|
706
706
|
width: r,
|
|
707
707
|
height: i,
|
|
708
708
|
x: a,
|
|
@@ -767,7 +767,7 @@ function Wn(e) {
|
|
|
767
767
|
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? pn(t) ? [] : Un(t, this._c) : [].concat(n), r], o = Hn(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
|
|
768
768
|
for (let e = 1; e < a.length; e++) {
|
|
769
769
|
let n = Hn(t, a[e], i);
|
|
770
|
-
s =
|
|
770
|
+
s = Ct(n.top, s), c = St(n.right, c), l = St(n.bottom, l), u = Ct(n.left, u);
|
|
771
771
|
}
|
|
772
772
|
return {
|
|
773
773
|
width: c - u,
|
|
@@ -787,13 +787,13 @@ function Kn(e, t, n) {
|
|
|
787
787
|
let r = ln(t), i = sn(t), a = n === "fixed", o = Nn(e, !0, a, t), s = {
|
|
788
788
|
scrollLeft: 0,
|
|
789
789
|
scrollTop: 0
|
|
790
|
-
}, c =
|
|
790
|
+
}, c = Tt(0);
|
|
791
791
|
if ((r || !a) && ((on(t) !== "body" || dn(i)) && (s = Sn(t)), r)) {
|
|
792
792
|
let e = Nn(t, !0, a, t);
|
|
793
793
|
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
794
794
|
}
|
|
795
795
|
!r && i && (c.x = Pn(i));
|
|
796
|
-
let l = i && !r && !a ? Fn(i, s) :
|
|
796
|
+
let l = i && !r && !a ? Fn(i, s) : Tt(0);
|
|
797
797
|
return {
|
|
798
798
|
x: o.left + s.scrollLeft - c.x - l.x,
|
|
799
799
|
y: o.top + s.scrollTop - c.y - l.y,
|
|
@@ -879,7 +879,7 @@ function or(e) {
|
|
|
879
879
|
name: "arrow",
|
|
880
880
|
options: e,
|
|
881
881
|
fn(t) {
|
|
882
|
-
let n = ar(
|
|
882
|
+
let n = ar(Ye(e.element));
|
|
883
883
|
return n == null ? {} : nr({
|
|
884
884
|
element: n,
|
|
885
885
|
padding: e.padding
|
|
@@ -896,7 +896,7 @@ function cr(e, t) {
|
|
|
896
896
|
}
|
|
897
897
|
function lr(e, t, n) {
|
|
898
898
|
n === void 0 && (n = {});
|
|
899
|
-
let r = n.whileElementsMounted, i = M(() =>
|
|
899
|
+
let r = n.whileElementsMounted, i = M(() => Ye(n.open) ?? !0), a = M(() => Ye(n.middleware)), o = M(() => Ye(n.placement) ?? "bottom"), s = M(() => Ye(n.strategy) ?? "absolute"), c = M(() => Ye(n.transform) ?? !0), l = M(() => ar(e.value)), u = M(() => ar(t.value)), d = U(0), f = U(0), p = U(s.value), m = U(o.value), h = Je({}), g = U(!1), _ = M(() => {
|
|
900
900
|
let e = {
|
|
901
901
|
position: p.value,
|
|
902
902
|
left: "0",
|
|
@@ -934,18 +934,18 @@ function lr(e, t, n) {
|
|
|
934
934
|
function S() {
|
|
935
935
|
i.value || (g.value = !1);
|
|
936
936
|
}
|
|
937
|
-
return
|
|
937
|
+
return Y([
|
|
938
938
|
a,
|
|
939
939
|
o,
|
|
940
940
|
s,
|
|
941
941
|
i
|
|
942
|
-
], y, { flush: "sync" }),
|
|
943
|
-
x:
|
|
944
|
-
y:
|
|
945
|
-
strategy:
|
|
946
|
-
placement:
|
|
947
|
-
middlewareData:
|
|
948
|
-
isPositioned:
|
|
942
|
+
], y, { flush: "sync" }), Y([l, u], x, { flush: "sync" }), Y(i, S, { flush: "sync" }), Ie() && We(b), {
|
|
943
|
+
x: qe(d),
|
|
944
|
+
y: qe(f),
|
|
945
|
+
strategy: qe(p),
|
|
946
|
+
placement: qe(m),
|
|
947
|
+
middlewareData: qe(h),
|
|
948
|
+
isPositioned: qe(g),
|
|
949
949
|
floatingStyles: _,
|
|
950
950
|
update: y
|
|
951
951
|
};
|
|
@@ -963,7 +963,7 @@ var ur = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
|
963
963
|
}
|
|
964
964
|
},
|
|
965
965
|
setup(e) {
|
|
966
|
-
let t =
|
|
966
|
+
let t = Ze("trigger"), n = Ze("tooltip"), r = Ze("arrowEl"), i = U(!1), a, o, { floatingStyles: s, middlewareData: c, placement: l } = lr(t, n, {
|
|
967
967
|
placement: "right",
|
|
968
968
|
middleware: [
|
|
969
969
|
$n(8),
|
|
@@ -999,20 +999,20 @@ var ur = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
|
999
999
|
ref_key: "tooltip",
|
|
1000
1000
|
ref: n,
|
|
1001
1001
|
class: "td-tooltip",
|
|
1002
|
-
style: Ve(
|
|
1002
|
+
style: Ve(J(s)),
|
|
1003
1003
|
role: "tooltip",
|
|
1004
1004
|
onMouseenter: u,
|
|
1005
1005
|
onMouseleave: f
|
|
1006
|
-
}, [L(
|
|
1006
|
+
}, [L(q(e.text) + " ", 1), I("div", {
|
|
1007
1007
|
ref: "arrowEl",
|
|
1008
1008
|
class: "td-tooltip-arrow",
|
|
1009
1009
|
style: Ve({
|
|
1010
|
-
left:
|
|
1011
|
-
top:
|
|
1012
|
-
...
|
|
1013
|
-
...
|
|
1014
|
-
...
|
|
1015
|
-
...
|
|
1010
|
+
left: J(c).arrow?.x === void 0 ? "" : `${J(c).arrow.x}px`,
|
|
1011
|
+
top: J(c).arrow?.y === void 0 ? "" : `${J(c).arrow.y}px`,
|
|
1012
|
+
...J(l).startsWith("bottom") ? { top: "-4px" } : {},
|
|
1013
|
+
...J(l).startsWith("top") ? { bottom: "-4px" } : {},
|
|
1014
|
+
...J(l).startsWith("right") ? { left: "-4px" } : {},
|
|
1015
|
+
...J(l).startsWith("left") ? { right: "-4px" } : {}
|
|
1016
1016
|
})
|
|
1017
1017
|
}, null, 4)], 36)) : P("", !0)]))], 64));
|
|
1018
1018
|
}
|
|
@@ -1021,7 +1021,7 @@ var ur = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
|
1021
1021
|
//#region src/client/theme-default/utils/renderInlineMarkup.ts
|
|
1022
1022
|
function dr(e) {
|
|
1023
1023
|
let t = U(fr(e()));
|
|
1024
|
-
return
|
|
1024
|
+
return $e((n) => {
|
|
1025
1025
|
let r = e();
|
|
1026
1026
|
if (!r.includes("$")) {
|
|
1027
1027
|
t.value = fr(r);
|
|
@@ -1047,7 +1047,7 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
|
|
|
1047
1047
|
props: { text: {} },
|
|
1048
1048
|
setup(e) {
|
|
1049
1049
|
let t = dr(() => e.text);
|
|
1050
|
-
return (e, n) => (H(), F("span", { innerHTML:
|
|
1050
|
+
return (e, n) => (H(), F("span", { innerHTML: J(t) }, null, 8, pr));
|
|
1051
1051
|
}
|
|
1052
1052
|
}), hr = ["aria-expanded"], gr = { class: "td-tree-label-text" }, _r = ["href"], vr = { class: "td-tree-count" }, yr = ["href"], br = ["href"], xr = {
|
|
1053
1053
|
key: 2,
|
|
@@ -1070,7 +1070,7 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
|
|
|
1070
1070
|
let e = 0;
|
|
1071
1071
|
return h.value.filter((t) => t.kind === "dir" || ++e <= Sr);
|
|
1072
1072
|
});
|
|
1073
|
-
|
|
1073
|
+
Y(() => r.path, (e) => {
|
|
1074
1074
|
m(a.value, e) && (b.value = !1);
|
|
1075
1075
|
});
|
|
1076
1076
|
function ne() {
|
|
@@ -1099,32 +1099,32 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
|
|
|
1099
1099
|
onClick: ie,
|
|
1100
1100
|
onKeydown: re
|
|
1101
1101
|
}, [
|
|
1102
|
-
R(
|
|
1102
|
+
R(J(ee), {
|
|
1103
1103
|
size: 14,
|
|
1104
1104
|
class: B(["td-tree-caret", { "is-collapsed": b.value }])
|
|
1105
1105
|
}, null, 8, ["class"]),
|
|
1106
|
-
I("span", gr,
|
|
1106
|
+
I("span", gr, q(f.value), 1),
|
|
1107
1107
|
R(ur, {
|
|
1108
1108
|
text: "Open index page",
|
|
1109
1109
|
always: ""
|
|
1110
1110
|
}, {
|
|
1111
|
-
default:
|
|
1111
|
+
default: et(() => [I("a", {
|
|
1112
1112
|
href: d.value,
|
|
1113
1113
|
class: B(["td-tree-index-btn", { "is-active": E(s.value) }]),
|
|
1114
|
-
onClick: t[0] ||=
|
|
1115
|
-
}, [p.value ? (H(), N(
|
|
1114
|
+
onClick: t[0] ||= rt(() => {}, ["stop"])
|
|
1115
|
+
}, [p.value ? (H(), N(K(p.value), {
|
|
1116
1116
|
key: 0,
|
|
1117
1117
|
size: 12
|
|
1118
|
-
})) : E(s.value) ? (H(), N(
|
|
1118
|
+
})) : E(s.value) ? (H(), N(J(ct), {
|
|
1119
1119
|
key: 1,
|
|
1120
1120
|
size: 12
|
|
1121
|
-
})) : (H(), N(
|
|
1121
|
+
})) : (H(), N(J(De), {
|
|
1122
1122
|
key: 2,
|
|
1123
1123
|
size: 12
|
|
1124
1124
|
}))], 10, _r)]),
|
|
1125
1125
|
_: 1
|
|
1126
1126
|
}),
|
|
1127
|
-
I("span", vr,
|
|
1127
|
+
I("span", vr, q(_.value), 1)
|
|
1128
1128
|
], 32), I("div", {
|
|
1129
1129
|
class: B(["td-collapse td-tree-children", { "is-collapsed": b.value }]),
|
|
1130
1130
|
role: "group"
|
|
@@ -1133,7 +1133,7 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
|
|
|
1133
1133
|
key: 0,
|
|
1134
1134
|
href: d.value,
|
|
1135
1135
|
class: B(["td-tree-link td-tree-index-entry", { "is-active": E(s.value) }])
|
|
1136
|
-
}, [R(
|
|
1136
|
+
}, [R(J(ye), {
|
|
1137
1137
|
size: 14,
|
|
1138
1138
|
class: "td-tree-file-icon"
|
|
1139
1139
|
}), t[1] ||= I("span", { class: "td-tree-link-text" }, "Overview", -1)], 10, yr)) : P("", !0),
|
|
@@ -1143,33 +1143,33 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
|
|
|
1143
1143
|
"url-prefix": a.value
|
|
1144
1144
|
}, null, 8, ["node", "url-prefix"])) : (H(), F("a", {
|
|
1145
1145
|
key: 1,
|
|
1146
|
-
href:
|
|
1147
|
-
class: B(["td-tree-link", { "is-active": E(
|
|
1146
|
+
href: J(i)(J(n)(e.item.filepath)),
|
|
1147
|
+
class: B(["td-tree-link", { "is-active": E(J(n)(e.item.filepath)) }])
|
|
1148
1148
|
}, [
|
|
1149
|
-
e.item.icon &&
|
|
1149
|
+
e.item.icon && J(me)(e.item.icon.name) ? (H(), N(K(J(me)(e.item.icon.name)), {
|
|
1150
1150
|
key: 0,
|
|
1151
1151
|
size: 14,
|
|
1152
1152
|
class: "td-tree-file-icon"
|
|
1153
|
-
})) : (H(), N(
|
|
1153
|
+
})) : (H(), N(J(ue), {
|
|
1154
1154
|
key: 1,
|
|
1155
1155
|
size: 14,
|
|
1156
1156
|
class: "td-tree-file-icon"
|
|
1157
1157
|
})),
|
|
1158
1158
|
R(ur, {
|
|
1159
1159
|
class: "td-tree-link-text",
|
|
1160
|
-
text:
|
|
1160
|
+
text: J(w)(e.item.filepath, e.item.label)
|
|
1161
1161
|
}, {
|
|
1162
|
-
default:
|
|
1162
|
+
default: et(() => [R(mr, { text: J(w)(e.item.filepath, e.item.label) }, null, 8, ["text"])]),
|
|
1163
1163
|
_: 2
|
|
1164
1164
|
}, 1032, ["text"]),
|
|
1165
|
-
e.item.fileMetadata ? (H(), F("span", xr,
|
|
1165
|
+
e.item.fileMetadata ? (H(), F("span", xr, q(J(l)(e.item.fileMetadata.mtime)), 1)) : P("", !0)
|
|
1166
1166
|
], 10, br))], 64))), 128)),
|
|
1167
1167
|
T.value > 0 && !x.value ? (H(), F("button", {
|
|
1168
1168
|
key: 1,
|
|
1169
1169
|
class: "td-tree-more",
|
|
1170
1170
|
type: "button",
|
|
1171
1171
|
onClick: ne
|
|
1172
|
-
},
|
|
1172
|
+
}, q(T.value) + " more... ", 1)) : P("", !0)
|
|
1173
1173
|
])], 2)], 8, hr)) : P("", !0);
|
|
1174
1174
|
};
|
|
1175
1175
|
}
|
|
@@ -1191,36 +1191,36 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
|
|
|
1191
1191
|
return t.path === e;
|
|
1192
1192
|
}
|
|
1193
1193
|
return (e, t) => (H(), F("nav", wr, [I("div", Tr, [I("a", {
|
|
1194
|
-
href:
|
|
1195
|
-
class: B(["td-root-link", { "is-active": o(i.value ?
|
|
1194
|
+
href: J(r)(i.value ? J(n)(i.value.filepath) : J(C)("/")),
|
|
1195
|
+
class: B(["td-root-link", { "is-active": o(i.value ? J(n)(i.value.filepath) : J(C)("/")) }]),
|
|
1196
1196
|
role: "treeitem"
|
|
1197
1197
|
}, [
|
|
1198
|
-
R(
|
|
1198
|
+
R(J(te), {
|
|
1199
1199
|
size: 14,
|
|
1200
1200
|
class: "td-root-link-icon"
|
|
1201
1201
|
}),
|
|
1202
1202
|
t[0] ||= I("span", { class: "td-root-link-text" }, "Overview", -1),
|
|
1203
|
-
i.value ? (H(), F("span", Dr,
|
|
1203
|
+
i.value ? (H(), F("span", Dr, q(i.value.fileMetadata ? J(l)(i.value.fileMetadata.mtime) : ""), 1)) : P("", !0)
|
|
1204
1204
|
], 10, Er), (H(!0), F(j, null, W(a.value, (e) => (H(), F(j, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (H(), N(Cr, {
|
|
1205
1205
|
key: 0,
|
|
1206
1206
|
node: e.node
|
|
1207
1207
|
}, null, 8, ["node"])) : (H(), F("a", {
|
|
1208
1208
|
key: 1,
|
|
1209
|
-
href:
|
|
1210
|
-
class: B(["td-root-link", { "is-active": o(
|
|
1209
|
+
href: J(r)(J(n)(e.item.filepath)),
|
|
1210
|
+
class: B(["td-root-link", { "is-active": o(J(n)(e.item.filepath)) }]),
|
|
1211
1211
|
role: "treeitem"
|
|
1212
1212
|
}, [
|
|
1213
|
-
e.item.icon &&
|
|
1213
|
+
e.item.icon && J(me)(e.item.icon.name) ? (H(), N(K(J(me)(e.item.icon.name)), {
|
|
1214
1214
|
key: 0,
|
|
1215
1215
|
size: 14,
|
|
1216
1216
|
class: "td-root-link-icon"
|
|
1217
|
-
})) : (H(), N(
|
|
1217
|
+
})) : (H(), N(J(ue), {
|
|
1218
1218
|
key: 1,
|
|
1219
1219
|
size: 14,
|
|
1220
1220
|
class: "td-root-link-icon"
|
|
1221
1221
|
})),
|
|
1222
|
-
I("span", kr,
|
|
1223
|
-
e.item.fileMetadata ? (H(), F("span", Ar,
|
|
1222
|
+
I("span", kr, q(J(w)(e.item.filepath, e.item.label)), 1),
|
|
1223
|
+
e.item.fileMetadata ? (H(), F("span", Ar, q(J(l)(e.item.fileMetadata.mtime)), 1)) : P("", !0)
|
|
1224
1224
|
], 10, Or))], 64))), 128))])]));
|
|
1225
1225
|
}
|
|
1226
1226
|
}), [["__scopeId", "data-v-d02f24f2"]]), Mr = { class: "td-footer" }, Nr = { key: 0 }, Pr = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
@@ -1232,10 +1232,10 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
|
|
|
1232
1232
|
target: "_blank",
|
|
1233
1233
|
rel: "noopener noreferrer",
|
|
1234
1234
|
class: "td-footer-link"
|
|
1235
|
-
}, "Typerighter")], -1),
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1235
|
+
}, "Typerighter")], -1), J(t).author || J(t).license ? (H(), F("span", Nr, [
|
|
1236
|
+
J(t).license ? (H(), F(j, { key: 0 }, [L(q(J(t).license), 1)], 64)) : P("", !0),
|
|
1237
|
+
J(t).license && J(t).author ? (H(), F(j, { key: 1 }, [L(" · ")], 64)) : P("", !0),
|
|
1238
|
+
J(t).author ? (H(), F(j, { key: 2 }, [L("© " + q(J(n)) + " " + q(J(t).author), 1)], 64)) : P("", !0)
|
|
1239
1239
|
])) : P("", !0)]));
|
|
1240
1240
|
}
|
|
1241
1241
|
}), [["__scopeId", "data-v-50e2a5bc"]]), Fr = {
|
|
@@ -1253,14 +1253,14 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
|
|
|
1253
1253
|
},
|
|
1254
1254
|
emits: ["update:open"],
|
|
1255
1255
|
setup(e) {
|
|
1256
|
-
let t =
|
|
1256
|
+
let t = Xe(e, "open"), n = Ze("wrapper");
|
|
1257
1257
|
function r(e) {
|
|
1258
1258
|
n.value?.contains(e.target) || (t.value = !1);
|
|
1259
1259
|
}
|
|
1260
1260
|
function i() {
|
|
1261
1261
|
t.value = !t.value;
|
|
1262
1262
|
}
|
|
1263
|
-
return
|
|
1263
|
+
return Y(t, (e) => {
|
|
1264
1264
|
typeof document < "u" && (e ? document.addEventListener("click", r) : document.removeEventListener("click", r));
|
|
1265
1265
|
}), V(() => {
|
|
1266
1266
|
typeof document < "u" && document.removeEventListener("click", r);
|
|
@@ -1300,12 +1300,12 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
|
|
|
1300
1300
|
}
|
|
1301
1301
|
return i;
|
|
1302
1302
|
}), o = M(() => Gr < a.value.length), c = M(() => a.value.slice(1, -2));
|
|
1303
|
-
return
|
|
1303
|
+
return Y(() => t.path, () => {
|
|
1304
1304
|
i.value = !1;
|
|
1305
1305
|
}), (e, t) => (H(), F("nav", Lr, [I("a", {
|
|
1306
1306
|
href: a.value[0].href,
|
|
1307
1307
|
class: "td-breadcrumb-link td-breadcrumb-home"
|
|
1308
|
-
},
|
|
1308
|
+
}, q(a.value[0].name), 9, Rr), o.value ? (H(), F(j, { key: 0 }, [
|
|
1309
1309
|
t[2] ||= I("span", {
|
|
1310
1310
|
class: "td-breadcrumb-sep",
|
|
1311
1311
|
"aria-hidden": "true"
|
|
@@ -1314,22 +1314,22 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
|
|
|
1314
1314
|
open: i.value,
|
|
1315
1315
|
"onUpdate:open": t[0] ||= (e) => i.value = e
|
|
1316
1316
|
}, {
|
|
1317
|
-
trigger:
|
|
1318
|
-
default:
|
|
1317
|
+
trigger: et(() => [I("button", zr, [R(J(ne), { size: 14 })])]),
|
|
1318
|
+
default: et(() => [(H(!0), F(j, null, W(c.value, (e) => (H(), F("a", {
|
|
1319
1319
|
key: e.href,
|
|
1320
1320
|
href: e.href,
|
|
1321
1321
|
class: "td-breadcrumb-dropdown-item"
|
|
1322
|
-
},
|
|
1322
|
+
}, q(e.name), 9, Br))), 128))]),
|
|
1323
1323
|
_: 1
|
|
1324
1324
|
}, 8, ["open"]),
|
|
1325
1325
|
(H(!0), F(j, null, W(a.value.slice(-2), (e) => (H(), F(j, { key: e.href }, [t[1] ||= I("span", {
|
|
1326
1326
|
class: "td-breadcrumb-sep",
|
|
1327
1327
|
"aria-hidden": "true"
|
|
1328
|
-
}, "/", -1), e === a.value[a.value.length - 1] ? (H(), F("span", Hr,
|
|
1328
|
+
}, "/", -1), e === a.value[a.value.length - 1] ? (H(), F("span", Hr, q(e.name), 1)) : (H(), F("a", {
|
|
1329
1329
|
key: 0,
|
|
1330
1330
|
href: e.href,
|
|
1331
1331
|
class: "td-breadcrumb-link"
|
|
1332
|
-
},
|
|
1332
|
+
}, q(e.name), 9, Vr))], 64))), 128))
|
|
1333
1333
|
], 64)) : (H(!0), F(j, { key: 1 }, W(a.value.slice(1), (e, n) => (H(), F(j, { key: e.href }, [t[3] ||= I("span", {
|
|
1334
1334
|
class: "td-breadcrumb-sep",
|
|
1335
1335
|
"aria-hidden": "true"
|
|
@@ -1337,7 +1337,7 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
|
|
|
1337
1337
|
key: 0,
|
|
1338
1338
|
href: e.href,
|
|
1339
1339
|
class: "td-breadcrumb-link"
|
|
1340
|
-
},
|
|
1340
|
+
}, q(e.name), 9, Ur)) : (H(), F("span", Wr, q(e.name), 1))], 64))), 128))]));
|
|
1341
1341
|
}
|
|
1342
1342
|
}), [["__scopeId", "data-v-3400a7c6"]]), qr = {
|
|
1343
1343
|
key: 0,
|
|
@@ -1353,13 +1353,13 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
|
|
|
1353
1353
|
function a(t) {
|
|
1354
1354
|
return !e(t) && i.path.startsWith(r(t));
|
|
1355
1355
|
}
|
|
1356
|
-
return (t, i) =>
|
|
1356
|
+
return (t, i) => J(n).nav?.length ? (H(), F("nav", qr, [(H(!0), F(j, null, W(J(n).nav, (t) => (H(), F("a", {
|
|
1357
1357
|
key: t.link,
|
|
1358
|
-
href:
|
|
1359
|
-
target:
|
|
1360
|
-
rel:
|
|
1358
|
+
href: J(e)(t.link) ? t.link : J(r)(t.link),
|
|
1359
|
+
target: J(e)(t.link) ? "_blank" : void 0,
|
|
1360
|
+
rel: J(e)(t.link) ? "noopener noreferrer" : void 0,
|
|
1361
1361
|
class: B(["td-header-nav-link", { "is-active": a(t.link) }])
|
|
1362
|
-
}, [L(
|
|
1362
|
+
}, [L(q(t.title), 1), J(e)(t.link) ? (H(), N(J(oe), {
|
|
1363
1363
|
key: 0,
|
|
1364
1364
|
size: 14
|
|
1365
1365
|
})) : P("", !0)], 10, Jr))), 128))])) : P("", !0);
|
|
@@ -1378,11 +1378,11 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
|
|
|
1378
1378
|
function a(t) {
|
|
1379
1379
|
return !e(t) && i.path.startsWith(r(t));
|
|
1380
1380
|
}
|
|
1381
|
-
return (t, i) =>
|
|
1381
|
+
return (t, i) => J(n).nav?.length ? (H(), F("nav", Xr, [(H(!0), F(j, null, W(J(n).nav, (t) => (H(), F("a", {
|
|
1382
1382
|
key: t.link,
|
|
1383
|
-
href:
|
|
1384
|
-
target:
|
|
1385
|
-
rel:
|
|
1383
|
+
href: J(e)(t.link) ? t.link : J(r)(t.link),
|
|
1384
|
+
target: J(e)(t.link) ? "_blank" : void 0,
|
|
1385
|
+
rel: J(e)(t.link) ? "noopener noreferrer" : void 0,
|
|
1386
1386
|
class: B(["td-menu-nav-item", { "is-active": a(t.link) }])
|
|
1387
1387
|
}, [
|
|
1388
1388
|
t.icon ? (H(), N(Te, {
|
|
@@ -1390,8 +1390,8 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
|
|
|
1390
1390
|
name: t.icon,
|
|
1391
1391
|
size: 16
|
|
1392
1392
|
}, null, 8, ["name"])) : P("", !0),
|
|
1393
|
-
I("span", null,
|
|
1394
|
-
|
|
1393
|
+
I("span", null, q(t.title), 1),
|
|
1394
|
+
J(e)(t.link) ? (H(), N(J(oe), {
|
|
1395
1395
|
key: 1,
|
|
1396
1396
|
size: 14
|
|
1397
1397
|
})) : P("", !0)
|
|
@@ -1401,11 +1401,11 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
|
|
|
1401
1401
|
__name: "TdWidgetCheckbox",
|
|
1402
1402
|
props: { value: {} },
|
|
1403
1403
|
setup(e) {
|
|
1404
|
-
return (t, n) => (H(), F("span", $r, [e.value ? (H(), N(
|
|
1404
|
+
return (t, n) => (H(), F("span", $r, [e.value ? (H(), N(J(ft), {
|
|
1405
1405
|
key: 0,
|
|
1406
1406
|
size: 16,
|
|
1407
1407
|
class: "td-widget-checkbox-icon is-checked"
|
|
1408
|
-
})) : (H(), N(
|
|
1408
|
+
})) : (H(), N(J(Ee), {
|
|
1409
1409
|
key: 1,
|
|
1410
1410
|
size: 16,
|
|
1411
1411
|
class: "td-widget-checkbox-icon"
|
|
@@ -1472,40 +1472,40 @@ var ii = {
|
|
|
1472
1472
|
let { withBase: n } = A(), r = M(() => ni(t.value)), i = M(() => r.value?.icon ? me(r.value.icon.name) : void 0), a = M(() => r.value !== void 0 && e(r.value.url));
|
|
1473
1473
|
return (e, o) => r.value ? (H(), F("span", ii, [r.value.isImage ? (H(), F("a", {
|
|
1474
1474
|
key: 0,
|
|
1475
|
-
href:
|
|
1475
|
+
href: J(n)(r.value.url),
|
|
1476
1476
|
target: "_blank",
|
|
1477
1477
|
rel: "noopener noreferrer",
|
|
1478
1478
|
class: "td-widget-image-preview",
|
|
1479
1479
|
title: r.value.name
|
|
1480
1480
|
}, [I("img", {
|
|
1481
|
-
src:
|
|
1481
|
+
src: J(n)(r.value.url),
|
|
1482
1482
|
alt: r.value.name,
|
|
1483
1483
|
class: "td-widget-image-img",
|
|
1484
1484
|
loading: "lazy"
|
|
1485
1485
|
}, null, 8, oi)], 8, ai)) : r.value.format || r.value.url.includes(".") ? (H(), F("a", {
|
|
1486
1486
|
key: 1,
|
|
1487
|
-
href:
|
|
1487
|
+
href: J(n)(r.value.url),
|
|
1488
1488
|
target: "_blank",
|
|
1489
1489
|
rel: "noopener noreferrer",
|
|
1490
1490
|
class: "td-widget-file-link"
|
|
1491
|
-
}, [R(
|
|
1491
|
+
}, [R(J(E), { class: "td-widget-file-icon" }), I("span", ci, q(r.value.name), 1)], 8, si)) : a.value ? (H(), F("a", {
|
|
1492
1492
|
key: 2,
|
|
1493
1493
|
href: r.value.url,
|
|
1494
1494
|
target: "_blank",
|
|
1495
1495
|
rel: "noopener noreferrer",
|
|
1496
1496
|
class: "td-widget-ref td-widget-ref-external"
|
|
1497
|
-
}, [R(
|
|
1497
|
+
}, [R(J(oe), {
|
|
1498
1498
|
size: 12,
|
|
1499
1499
|
class: "td-widget-external-icon"
|
|
1500
1500
|
})], 8, li)) : (H(), F("a", {
|
|
1501
1501
|
key: 3,
|
|
1502
|
-
href:
|
|
1502
|
+
href: J(n)(r.value.url),
|
|
1503
1503
|
class: "td-widget-ref"
|
|
1504
|
-
}, [i.value && !t.hideIcon ? (H(), N(
|
|
1504
|
+
}, [i.value && !t.hideIcon ? (H(), N(K(i.value), {
|
|
1505
1505
|
key: 0,
|
|
1506
1506
|
size: 14,
|
|
1507
1507
|
class: "td-widget-ref-icon"
|
|
1508
|
-
})) : P("", !0), L(
|
|
1508
|
+
})) : P("", !0), L(q(r.value.name), 1)], 8, ui))])) : (H(), F("span", di, q(t.value), 1));
|
|
1509
1509
|
}
|
|
1510
1510
|
}), [["__scopeId", "data-v-e593af69"]]), pi = { key: 0 }, mi = { class: "td-widget-list td-widget-list-icons" }, hi = { key: 1 }, gi = { class: "td-widget-list" }, _i = 5, vi = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
1511
1511
|
__name: "TdWidgetList",
|
|
@@ -1521,7 +1521,7 @@ var ii = {
|
|
|
1521
1521
|
function s(e) {
|
|
1522
1522
|
return t.value ? e : e.slice(0, _i);
|
|
1523
1523
|
}
|
|
1524
|
-
return (e, c) => r.value ? (H(), F("div", pi, [I("ul", mi, [(H(!0), F(j, null, W(s(i.value), (e, t) => (H(), F("li", { key: t }, [(H(), N(
|
|
1524
|
+
return (e, c) => r.value ? (H(), F("div", pi, [I("ul", mi, [(H(!0), F(j, null, W(s(i.value), (e, t) => (H(), F("li", { key: t }, [(H(), N(K(e.icon ? J(me)(e.icon.name) ?? J(ue) : J(ue)), {
|
|
1525
1525
|
size: 14,
|
|
1526
1526
|
class: "td-widget-list-icon"
|
|
1527
1527
|
})), R(fi, {
|
|
@@ -1532,15 +1532,15 @@ var ii = {
|
|
|
1532
1532
|
class: "td-widget-more",
|
|
1533
1533
|
type: "button",
|
|
1534
1534
|
onClick: o
|
|
1535
|
-
},
|
|
1535
|
+
}, q(t.value ? "show less" : `+${a.value} more`), 1)) : P("", !0)])) : (H(), F("div", hi, [I("ul", gi, [(H(!0), F(j, null, W(s(n.value), (e, t) => (H(), F("li", { key: t }, [J(ni)(e) ? (H(), N(fi, {
|
|
1536
1536
|
key: 0,
|
|
1537
1537
|
value: e
|
|
1538
|
-
}, null, 8, ["value"])) : (H(), F(j, { key: 1 }, [L(
|
|
1538
|
+
}, null, 8, ["value"])) : (H(), F(j, { key: 1 }, [L(q(e), 1)], 64))]))), 128))]), a.value > 0 ? (H(), F("button", {
|
|
1539
1539
|
key: 0,
|
|
1540
1540
|
class: "td-widget-more",
|
|
1541
1541
|
type: "button",
|
|
1542
1542
|
onClick: o
|
|
1543
|
-
},
|
|
1543
|
+
}, q(t.value ? "show less" : `+${a.value} more`), 1)) : P("", !0)]));
|
|
1544
1544
|
}
|
|
1545
1545
|
}), [["__scopeId", "data-v-919aaa0d"]]), yi = [
|
|
1546
1546
|
{
|
|
@@ -1601,13 +1601,13 @@ var Si = 5, Ci = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
|
1601
1601
|
return (e, n) => (H(), F(j, null, [(H(!0), F(j, null, W(r.value, (e, t) => (H(), F("span", {
|
|
1602
1602
|
key: t,
|
|
1603
1603
|
class: "td-widget-pill",
|
|
1604
|
-
style: Ve(
|
|
1605
|
-
},
|
|
1604
|
+
style: Ve(J(bi)(e))
|
|
1605
|
+
}, q(e), 5))), 128)), i.value > 0 ? (H(), F("button", {
|
|
1606
1606
|
key: 0,
|
|
1607
1607
|
class: "td-widget-more",
|
|
1608
1608
|
type: "button",
|
|
1609
1609
|
onClick: a
|
|
1610
|
-
},
|
|
1610
|
+
}, q(t.value ? "show less" : `+${i.value} more`), 1)) : P("", !0)], 64));
|
|
1611
1611
|
}
|
|
1612
1612
|
}), [["__scopeId", "data-v-2f88152d"]]), wi = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
1613
1613
|
__name: "TdWidgetSelect",
|
|
@@ -1615,8 +1615,8 @@ var Si = 5, Ci = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
|
1615
1615
|
setup(e) {
|
|
1616
1616
|
return (t, n) => (H(), F("span", {
|
|
1617
1617
|
class: "td-widget-pill",
|
|
1618
|
-
style: Ve(
|
|
1619
|
-
},
|
|
1618
|
+
style: Ve(J(bi)(e.value))
|
|
1619
|
+
}, q(e.value), 5));
|
|
1620
1620
|
}
|
|
1621
1621
|
}), [["__scopeId", "data-v-b9e2b4fd"]]), Ti = ["href", "title"], Ei = ["src", "alt"], Di = ["href"], Oi = { class: "td-widget-file-name" }, ki = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
1622
1622
|
__name: "TdWidgetText",
|
|
@@ -1647,7 +1647,7 @@ var Si = 5, Ci = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
|
1647
1647
|
target: "_blank",
|
|
1648
1648
|
rel: "noopener noreferrer",
|
|
1649
1649
|
class: "td-widget-file-link"
|
|
1650
|
-
}, [R(
|
|
1650
|
+
}, [R(J(E), { class: "td-widget-file-icon" }), I("span", Oi, q(n.value.split("/").pop() ?? n.value), 1)], 8, Di)) : (H(), F(j, { key: 2 }, [L(q(c(e.value)), 1)], 64));
|
|
1651
1651
|
}
|
|
1652
1652
|
}), [["__scopeId", "data-v-37708635"]]), Ai = {
|
|
1653
1653
|
key: 0,
|
|
@@ -1668,7 +1668,7 @@ var Si = 5, Ci = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
|
1668
1668
|
}, null, 8, ["value"])) : e.definition.widget === "multiSelect" ? (H(), N(Ci, {
|
|
1669
1669
|
key: 3,
|
|
1670
1670
|
value: e.value
|
|
1671
|
-
}, null, 8, ["value"])) :
|
|
1671
|
+
}, null, 8, ["value"])) : J(ni)(e.value) || e.definition.widget === "relation" ? (H(), N(fi, {
|
|
1672
1672
|
key: 4,
|
|
1673
1673
|
value: e.value
|
|
1674
1674
|
}, null, 8, ["value"])) : Array.isArray(e.value) || e.definition.widget === "list" ? (H(), N(vi, {
|
|
@@ -1709,15 +1709,15 @@ var Si = 5, Ci = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
|
1709
1709
|
}
|
|
1710
1710
|
return r;
|
|
1711
1711
|
}), i = {
|
|
1712
|
-
text:
|
|
1713
|
-
checkbox:
|
|
1712
|
+
text: mt,
|
|
1713
|
+
checkbox: it,
|
|
1714
1714
|
select: ge,
|
|
1715
|
-
multiSelect:
|
|
1715
|
+
multiSelect: pt,
|
|
1716
1716
|
relation: oe,
|
|
1717
1717
|
list: le
|
|
1718
1718
|
};
|
|
1719
1719
|
function a(e) {
|
|
1720
|
-
return i[e] ??
|
|
1720
|
+
return i[e] ?? mt;
|
|
1721
1721
|
}
|
|
1722
1722
|
let o = U(!1), s = U(!1);
|
|
1723
1723
|
function c() {
|
|
@@ -1730,32 +1730,32 @@ var Si = 5, Ci = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
|
1730
1730
|
type: "button",
|
|
1731
1731
|
class: "td-fm-rail-header",
|
|
1732
1732
|
onClick: l
|
|
1733
|
-
}, [n[0] ||= I("span", { class: "td-fm-rail-label" }, "Properties", -1), R(
|
|
1733
|
+
}, [n[0] ||= I("span", { class: "td-fm-rail-label" }, "Properties", -1), R(J(ee), {
|
|
1734
1734
|
size: 14,
|
|
1735
1735
|
class: B(["td-fm-rail-caret", { "is-collapsed": s.value }])
|
|
1736
1736
|
}, null, 8, ["class"])]), I("div", { class: B(["td-collapse", { "is-collapsed": s.value }]) }, [I("div", null, [(H(!0), F(j, null, W(r.value, ([t, n]) => (H(), F("div", {
|
|
1737
1737
|
key: t,
|
|
1738
1738
|
class: "td-fm-rail-row"
|
|
1739
|
-
}, [I("span", Ni, [(H(), N(
|
|
1739
|
+
}, [I("span", Ni, [(H(), N(K(a(n.widget)), {
|
|
1740
1740
|
size: 12,
|
|
1741
1741
|
class: "td-fm-icon"
|
|
1742
|
-
})), L(" " +
|
|
1742
|
+
})), L(" " + q(J(v)(t)), 1)]), I("span", Pi, [R(ji, {
|
|
1743
1743
|
definition: n,
|
|
1744
1744
|
value: e.frontmatter[t]
|
|
1745
1745
|
}, null, 8, ["definition", "value"])])]))), 128))])], 2)])) : r.value.length > 0 ? (H(), F("div", Fi, [I("button", {
|
|
1746
1746
|
type: "button",
|
|
1747
1747
|
class: "td-fm-box-header",
|
|
1748
1748
|
onClick: c
|
|
1749
|
-
}, [I("span", Ii, [n[1] ||= L("Properties ", -1), I("span", Li,
|
|
1749
|
+
}, [I("span", Ii, [n[1] ||= L("Properties ", -1), I("span", Li, q(r.value.length), 1)]), I("span", Ri, [L(q(o.value ? "Show" : "Hide") + " ", 1), o.value ? (H(), N(J(se), {
|
|
1750
1750
|
key: 1,
|
|
1751
1751
|
size: 14
|
|
1752
|
-
})) : (H(), N(
|
|
1752
|
+
})) : (H(), N(J(ee), {
|
|
1753
1753
|
key: 0,
|
|
1754
1754
|
size: 14
|
|
1755
|
-
}))])]), I("div", { class: B(["td-collapse", { "is-collapsed": o.value }]) }, [I("div", zi, [(H(!0), F(j, null, W(r.value, ([t, n]) => (H(), F(j, { key: t }, [I("span", Bi, [(H(), N(
|
|
1755
|
+
}))])]), I("div", { class: B(["td-collapse", { "is-collapsed": o.value }]) }, [I("div", zi, [(H(!0), F(j, null, W(r.value, ([t, n]) => (H(), F(j, { key: t }, [I("span", Bi, [(H(), N(K(a(n.widget)), {
|
|
1756
1756
|
size: 12,
|
|
1757
1757
|
class: "td-fm-icon"
|
|
1758
|
-
})), L(" " +
|
|
1758
|
+
})), L(" " + q(J(v)(t)), 1)]), I("span", Vi, [R(ji, {
|
|
1759
1759
|
definition: n,
|
|
1760
1760
|
value: e.frontmatter[t]
|
|
1761
1761
|
}, null, 8, ["definition", "value"])])], 64))), 128))])], 2)])) : P("", !0);
|
|
@@ -1784,16 +1784,16 @@ var Gi = /* @__PURE__ */ z({
|
|
|
1784
1784
|
__name: "TdMenuButton",
|
|
1785
1785
|
setup(e) {
|
|
1786
1786
|
let { isOpen: t, toggle: n } = Wi();
|
|
1787
|
-
return (e, r) => (H(), N(
|
|
1787
|
+
return (e, r) => (H(), N(xt, {
|
|
1788
1788
|
class: "td-menu-button",
|
|
1789
|
-
label:
|
|
1790
|
-
"aria-expanded":
|
|
1791
|
-
onClick:
|
|
1789
|
+
label: J(t) ? "Close menu" : "Open menu",
|
|
1790
|
+
"aria-expanded": J(t),
|
|
1791
|
+
onClick: J(n)
|
|
1792
1792
|
}, {
|
|
1793
|
-
default:
|
|
1793
|
+
default: et(() => [J(t) ? (H(), N(J(_e), {
|
|
1794
1794
|
key: 0,
|
|
1795
1795
|
size: 20
|
|
1796
|
-
})) : (H(), N(
|
|
1796
|
+
})) : (H(), N(J(Oe), {
|
|
1797
1797
|
key: 1,
|
|
1798
1798
|
size: 20
|
|
1799
1799
|
}))]),
|
|
@@ -1895,21 +1895,21 @@ var Zi = {
|
|
|
1895
1895
|
__name: "TdPreviousNext",
|
|
1896
1896
|
setup(e) {
|
|
1897
1897
|
let { previous: t, next: n, groupName: r } = Ki();
|
|
1898
|
-
return (e, i) =>
|
|
1898
|
+
return (e, i) => J(t) || J(n) ? (H(), F("nav", Zi, [J(t) ? (H(), F("a", {
|
|
1899
1899
|
key: 0,
|
|
1900
|
-
href:
|
|
1900
|
+
href: J(t).url,
|
|
1901
1901
|
class: "td-prevnext-link is-previous"
|
|
1902
|
-
}, [I("span", $i, [R(
|
|
1902
|
+
}, [I("span", $i, [R(J(be), {
|
|
1903
1903
|
size: 14,
|
|
1904
1904
|
class: "td-prevnext-chevron"
|
|
1905
|
-
}), L(" " +
|
|
1905
|
+
}), L(" " + q(J(r) ? `Previous in ${J(r)}` : "Previous"), 1)]), I("span", ea, q(J(t).title), 1)], 8, Qi)) : (H(), F("span", ta)), J(n) ? (H(), F("a", {
|
|
1906
1906
|
key: 2,
|
|
1907
|
-
href:
|
|
1907
|
+
href: J(n).url,
|
|
1908
1908
|
class: "td-prevnext-link is-next"
|
|
1909
|
-
}, [I("span", ra, [L(
|
|
1909
|
+
}, [I("span", ra, [L(q(J(r) ? `Next in ${J(r)}` : "Next") + " ", 1), R(J(se), {
|
|
1910
1910
|
size: 14,
|
|
1911
1911
|
class: "td-prevnext-chevron"
|
|
1912
|
-
})]), I("span", ia,
|
|
1912
|
+
})]), I("span", ia, q(J(n).title), 1)], 8, na)) : (H(), F("span", aa))])) : P("", !0);
|
|
1913
1913
|
}
|
|
1914
1914
|
}), [["__scopeId", "data-v-8ea01cd7"]]), sa = 100;
|
|
1915
1915
|
function ca(e) {
|
|
@@ -1939,7 +1939,7 @@ function ca(e) {
|
|
|
1939
1939
|
window.addEventListener("scroll", a);
|
|
1940
1940
|
}), V(() => {
|
|
1941
1941
|
window.removeEventListener("scroll", a), r !== void 0 && cancelAnimationFrame(r);
|
|
1942
|
-
}),
|
|
1942
|
+
}), Y(e, (e) => {
|
|
1943
1943
|
typeof window < "u" && Be(() => o(e));
|
|
1944
1944
|
}, { immediate: !0 }), t;
|
|
1945
1945
|
}
|
|
@@ -1981,19 +1981,19 @@ var ua = {
|
|
|
1981
1981
|
})
|
|
1982
1982
|
}, [I("a", {
|
|
1983
1983
|
href: e.link,
|
|
1984
|
-
class: B(["td-toc-link", { "is-active":
|
|
1985
|
-
innerHTML:
|
|
1984
|
+
class: B(["td-toc-link", { "is-active": J(n) === e.slug }]),
|
|
1985
|
+
innerHTML: J(h)(e.titleHtml)
|
|
1986
1986
|
}, null, 10, fa)], 2))), 128))])])) : P("", !0);
|
|
1987
1987
|
}
|
|
1988
1988
|
}), [["__scopeId", "data-v-2b800578"]]), ma = { class: "td-rail" }, ha = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
1989
1989
|
__name: "TdRail",
|
|
1990
1990
|
setup(e) {
|
|
1991
1991
|
let { page: t } = fe();
|
|
1992
|
-
return (e, n) => (H(), F("aside", ma, [R(
|
|
1992
|
+
return (e, n) => (H(), F("aside", ma, [R(J(Hi), {
|
|
1993
1993
|
mode: "rail",
|
|
1994
|
-
schema:
|
|
1995
|
-
frontmatter:
|
|
1996
|
-
}, null, 8, ["schema", "frontmatter"]), R(pa, { headings:
|
|
1994
|
+
schema: J(t).schema,
|
|
1995
|
+
frontmatter: J(t).frontmatter
|
|
1996
|
+
}, null, 8, ["schema", "frontmatter"]), R(pa, { headings: J(t).headings }, null, 8, ["headings"])]));
|
|
1997
1997
|
}
|
|
1998
1998
|
}), [["__scopeId", "data-v-39bd5d5f"]]), ga = {
|
|
1999
1999
|
class: "td-skeleton",
|
|
@@ -2027,8 +2027,8 @@ var ua = {
|
|
|
2027
2027
|
ready: { type: Boolean }
|
|
2028
2028
|
},
|
|
2029
2029
|
setup(e) {
|
|
2030
|
-
let t = O(), n =
|
|
2031
|
-
return
|
|
2030
|
+
let t = O(), n = Ze("scrollElement");
|
|
2031
|
+
return Y(() => t.path, () => {
|
|
2032
2032
|
Be(() => {
|
|
2033
2033
|
n.value?.querySelector(".is-active")?.scrollIntoView({ block: "nearest" });
|
|
2034
2034
|
});
|
|
@@ -2052,11 +2052,11 @@ var ua = {
|
|
|
2052
2052
|
[$.ArrowUp]: ae,
|
|
2053
2053
|
[$.ArrowLeft]: re,
|
|
2054
2054
|
[$.ArrowRight]: ce,
|
|
2055
|
-
[$.Meta]:
|
|
2056
|
-
[$.Alt]:
|
|
2057
|
-
[$.Enter]:
|
|
2058
|
-
[$.Delete]:
|
|
2059
|
-
[$.Space]:
|
|
2055
|
+
[$.Meta]: at,
|
|
2056
|
+
[$.Alt]: ut,
|
|
2057
|
+
[$.Enter]: ot,
|
|
2058
|
+
[$.Delete]: st,
|
|
2059
|
+
[$.Space]: dt
|
|
2060
2060
|
}, n = {
|
|
2061
2061
|
[$.Control]: "⌃",
|
|
2062
2062
|
[$.Shift]: "⇧",
|
|
@@ -2069,15 +2069,15 @@ var ua = {
|
|
|
2069
2069
|
let i = n[e];
|
|
2070
2070
|
return i ? { label: i } : { label: e.toUpperCase() };
|
|
2071
2071
|
}));
|
|
2072
|
-
return (e, t) => (H(), F("span", ya, [(H(!0), F(j, null, W(r.value, (e, t) => (H(), F("kbd", { key: t }, [e.icon ? (H(), N(
|
|
2072
|
+
return (e, t) => (H(), F("span", ya, [(H(!0), F(j, null, W(r.value, (e, t) => (H(), F("kbd", { key: t }, [e.icon ? (H(), N(K(e.icon), {
|
|
2073
2073
|
key: 0,
|
|
2074
2074
|
size: 12
|
|
2075
|
-
})) : (H(), F(j, { key: 1 }, [L(
|
|
2075
|
+
})) : (H(), F(j, { key: 1 }, [L(q(e.label), 1)], 64))]))), 128))]));
|
|
2076
2076
|
}
|
|
2077
2077
|
}), [["__scopeId", "data-v-b61b97da"]]), xa = 120;
|
|
2078
2078
|
function Sa() {
|
|
2079
|
-
let e = xe(), t, n =
|
|
2080
|
-
|
|
2079
|
+
let e = xe(), t, n = Je([]), r = Je(!1);
|
|
2080
|
+
Y(e, () => {
|
|
2081
2081
|
t = void 0;
|
|
2082
2082
|
});
|
|
2083
2083
|
function i() {
|
|
@@ -2128,8 +2128,8 @@ function Sa() {
|
|
|
2128
2128
|
function l() {
|
|
2129
2129
|
r.value = !1;
|
|
2130
2130
|
}
|
|
2131
|
-
let u =
|
|
2132
|
-
return
|
|
2131
|
+
let u = Je(!1);
|
|
2132
|
+
return Y(e, (e) => {
|
|
2133
2133
|
e && (u.value = !0);
|
|
2134
2134
|
}, { immediate: !0 }), {
|
|
2135
2135
|
results: n,
|
|
@@ -2174,7 +2174,7 @@ var wa = { class: "td-search" }, Ta = { class: "td-search-input-wrap" }, Ea = {
|
|
|
2174
2174
|
},
|
|
2175
2175
|
emits: /*@__PURE__*/ Re(["select"], ["update:active", "update:query"]),
|
|
2176
2176
|
setup(e, { expose: t, emit: n }) {
|
|
2177
|
-
let r =
|
|
2177
|
+
let r = Xe(e, "active"), i = Xe(e, "query"), a = n, s = O(), { withBase: c } = A(), { results: l, searching: u, indexLoaded: d, search: f, cancel: p } = Sa(), m = U(-1), h = M(() => 0 < i.value.trim().length), g = M(() => {
|
|
2178
2178
|
let e = [], t = /* @__PURE__ */ new Map();
|
|
2179
2179
|
for (let n of l.value) {
|
|
2180
2180
|
let r = o(n.id), i = t.get(r);
|
|
@@ -2190,9 +2190,9 @@ var wa = { class: "td-search" }, Ta = { class: "td-search-input-wrap" }, Ea = {
|
|
|
2190
2190
|
}
|
|
2191
2191
|
return e;
|
|
2192
2192
|
});
|
|
2193
|
-
|
|
2193
|
+
Y(h, (e) => {
|
|
2194
2194
|
r.value = e;
|
|
2195
|
-
}),
|
|
2195
|
+
}), Y(i, (e, t, n) => {
|
|
2196
2196
|
n(() => p()), m.value = 0, f(e);
|
|
2197
2197
|
});
|
|
2198
2198
|
function _() {
|
|
@@ -2224,7 +2224,7 @@ var wa = { class: "td-search" }, Ta = { class: "td-search-input-wrap" }, Ea = {
|
|
|
2224
2224
|
document.querySelector(".td-search-result.is-selected")?.scrollIntoView({ block: "nearest" });
|
|
2225
2225
|
});
|
|
2226
2226
|
}
|
|
2227
|
-
let w =
|
|
2227
|
+
let w = Ze("searchInput");
|
|
2228
2228
|
return t({
|
|
2229
2229
|
focus() {
|
|
2230
2230
|
w.value?.focus();
|
|
@@ -2240,11 +2240,11 @@ var wa = { class: "td-search" }, Ta = { class: "td-search-input-wrap" }, Ea = {
|
|
|
2240
2240
|
}
|
|
2241
2241
|
}), (e, t) => (H(), F("div", wa, [
|
|
2242
2242
|
I("div", Ta, [
|
|
2243
|
-
R(
|
|
2243
|
+
R(J(ke), {
|
|
2244
2244
|
size: 14,
|
|
2245
2245
|
class: "td-search-icon"
|
|
2246
2246
|
}),
|
|
2247
|
-
|
|
2247
|
+
tt(I("input", {
|
|
2248
2248
|
ref_key: "searchInput",
|
|
2249
2249
|
ref: w,
|
|
2250
2250
|
"onUpdate:modelValue": t[0] ||= (e) => i.value = e,
|
|
@@ -2253,63 +2253,63 @@ var wa = { class: "td-search" }, Ta = { class: "td-search-input-wrap" }, Ea = {
|
|
|
2253
2253
|
size: "1",
|
|
2254
2254
|
placeholder: "Search...",
|
|
2255
2255
|
onKeydown: x
|
|
2256
|
-
}, null, 544), [[
|
|
2257
|
-
!h.value && !
|
|
2256
|
+
}, null, 544), [[Qe, i.value]]),
|
|
2257
|
+
!h.value && !J(u) ? (H(), N(ba, {
|
|
2258
2258
|
key: 0,
|
|
2259
|
-
keys: [
|
|
2259
|
+
keys: [J($).Meta, J($).k],
|
|
2260
2260
|
class: "td-search-kbd"
|
|
2261
2261
|
}, null, 8, ["keys"])) : P("", !0),
|
|
2262
|
-
|
|
2262
|
+
J(u) || !J(d) ? (H(), N(J(lt), {
|
|
2263
2263
|
key: 1,
|
|
2264
2264
|
size: 12,
|
|
2265
2265
|
class: "td-search-spinner"
|
|
2266
|
-
})) : h.value ? (H(), F("span", Ea,
|
|
2266
|
+
})) : h.value ? (H(), F("span", Ea, q(J(l).length), 1)) : P("", !0),
|
|
2267
2267
|
i.value ? (H(), F("button", {
|
|
2268
2268
|
key: 3,
|
|
2269
2269
|
class: "td-search-clear",
|
|
2270
2270
|
type: "button",
|
|
2271
2271
|
"aria-label": "Clear search",
|
|
2272
2272
|
onClick: _
|
|
2273
|
-
}, [R(
|
|
2273
|
+
}, [R(J(_e), { size: 12 })])) : P("", !0)
|
|
2274
2274
|
]),
|
|
2275
|
-
h.value &&
|
|
2275
|
+
h.value && J(l).length > 0 ? (H(), F("div", Da, [(H(!0), F(j, null, W(g.value, (e) => (H(), F("div", {
|
|
2276
2276
|
key: e.pageUrl,
|
|
2277
2277
|
class: "td-search-group"
|
|
2278
2278
|
}, [(H(!0), F(j, null, W(e.results, (e) => (H(), F("a", {
|
|
2279
2279
|
key: e.id,
|
|
2280
|
-
href:
|
|
2280
|
+
href: J(c)(e.id),
|
|
2281
2281
|
class: B(["td-search-result", {
|
|
2282
2282
|
"is-selected": b.value.get(e.id) === m.value,
|
|
2283
|
-
"is-current":
|
|
2283
|
+
"is-current": J(c)(e.id) === J(s).path
|
|
2284
2284
|
}]),
|
|
2285
2285
|
onClick: S
|
|
2286
2286
|
}, [
|
|
2287
2287
|
I("span", {
|
|
2288
2288
|
class: "td-search-result-title",
|
|
2289
|
-
innerHTML:
|
|
2289
|
+
innerHTML: J(Ca)(e.title, i.value)
|
|
2290
2290
|
}, null, 8, ka),
|
|
2291
|
-
I("span", Aa,
|
|
2291
|
+
I("span", Aa, q(e.id), 1),
|
|
2292
2292
|
e.excerpt ? (H(), F("span", {
|
|
2293
2293
|
key: 0,
|
|
2294
2294
|
class: "td-search-result-excerpt",
|
|
2295
|
-
innerHTML:
|
|
2295
|
+
innerHTML: J(Ca)(e.excerpt, i.value)
|
|
2296
2296
|
}, null, 8, ja)) : P("", !0)
|
|
2297
2297
|
], 10, Oa))), 128))]))), 128))])) : P("", !0),
|
|
2298
|
-
h.value &&
|
|
2298
|
+
h.value && J(l).length === 0 ? (H(), F("div", Ma, " No results for \"" + q(i.value) + "\" ", 1)) : P("", !0)
|
|
2299
2299
|
]));
|
|
2300
2300
|
}
|
|
2301
2301
|
}), [["__scopeId", "data-v-999e1838"]]), Pa = /* @__PURE__ */ z({
|
|
2302
2302
|
__name: "TdThemeToggle",
|
|
2303
2303
|
setup(e) {
|
|
2304
2304
|
let { isDark: t, toggle: n } = Se();
|
|
2305
|
-
return (e, r) => (H(), N(
|
|
2306
|
-
label:
|
|
2307
|
-
onClick:
|
|
2305
|
+
return (e, r) => (H(), N(xt, {
|
|
2306
|
+
label: J(t) ? "Switch to light mode" : "Switch to dark mode",
|
|
2307
|
+
onClick: J(n)
|
|
2308
2308
|
}, {
|
|
2309
|
-
default:
|
|
2309
|
+
default: et(() => [J(t) ? (H(), N(J(de), {
|
|
2310
2310
|
key: 0,
|
|
2311
2311
|
size: 18
|
|
2312
|
-
})) : (H(), N(
|
|
2312
|
+
})) : (H(), N(J(pe), {
|
|
2313
2313
|
key: 1,
|
|
2314
2314
|
size: 18
|
|
2315
2315
|
}))]),
|
|
@@ -2391,7 +2391,7 @@ function za(e) {
|
|
|
2391
2391
|
return;
|
|
2392
2392
|
}
|
|
2393
2393
|
}
|
|
2394
|
-
return
|
|
2394
|
+
return Y(e, (e, t) => {
|
|
2395
2395
|
t?.removeEventListener("keydown", r), e?.addEventListener("keydown", r);
|
|
2396
2396
|
}, { immediate: !0 }), V(() => {
|
|
2397
2397
|
e.value?.removeEventListener("keydown", r);
|
|
@@ -2446,40 +2446,46 @@ function Ua() {
|
|
|
2446
2446
|
//#region src/client/theme-default/composables/useMermaid.ts
|
|
2447
2447
|
var Wa = "https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.esm.min.mjs", Ga, Ka = 0;
|
|
2448
2448
|
function qa() {
|
|
2449
|
-
let e;
|
|
2450
|
-
|
|
2449
|
+
let e, t, n = /* @__PURE__ */ new WeakSet();
|
|
2450
|
+
function r() {
|
|
2451
2451
|
let e = document.getElementById("td-content");
|
|
2452
|
-
if (!e) return;
|
|
2453
|
-
let
|
|
2454
|
-
|
|
2452
|
+
if (!e || !t) return;
|
|
2453
|
+
let r = e.querySelectorAll(".td-mermaid-placeholder");
|
|
2454
|
+
for (let e of r) n.has(e) || (n.add(e), t.observe(e));
|
|
2455
|
+
}
|
|
2456
|
+
async function i(e) {
|
|
2457
|
+
let t = e.querySelector("code");
|
|
2458
|
+
if (!t) return;
|
|
2455
2459
|
let n = await Ja();
|
|
2456
|
-
if (n
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
let
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
let
|
|
2464
|
-
|
|
2465
|
-
let e = document.createElement("figcaption");
|
|
2466
|
-
e.textContent = i, o.appendChild(e);
|
|
2467
|
-
}
|
|
2468
|
-
e.replaceWith(o);
|
|
2469
|
-
} catch {
|
|
2470
|
-
e.classList.add("td-mermaid-error");
|
|
2460
|
+
if (n === void 0) return;
|
|
2461
|
+
let r = `td-mermaid-${Ka++}`, i = e.getAttribute("data-title");
|
|
2462
|
+
try {
|
|
2463
|
+
let { svg: a } = await n.default.render(r, t.textContent ?? ""), o = document.createElement("figure");
|
|
2464
|
+
o.className = "td-mermaid";
|
|
2465
|
+
let s = document.createElement("div");
|
|
2466
|
+
if (s.innerHTML = a, o.appendChild(s), i) {
|
|
2467
|
+
let e = document.createElement("figcaption");
|
|
2468
|
+
e.textContent = i, o.appendChild(e);
|
|
2471
2469
|
}
|
|
2470
|
+
e.replaceWith(o);
|
|
2471
|
+
} catch {
|
|
2472
|
+
e.classList.add("td-mermaid-error");
|
|
2472
2473
|
}
|
|
2473
2474
|
}
|
|
2474
2475
|
Ue(() => {
|
|
2475
|
-
t()
|
|
2476
|
+
if (t = new IntersectionObserver((e) => {
|
|
2477
|
+
for (let n of e) n.isIntersecting && (t?.unobserve(n.target), i(n.target));
|
|
2478
|
+
}, { rootMargin: "200px" }), r(), document.querySelector(".td-mermaid-placeholder")) {
|
|
2479
|
+
let e = document.createElement("link");
|
|
2480
|
+
e.rel = "modulepreload", e.href = Wa, document.head.appendChild(e);
|
|
2481
|
+
}
|
|
2476
2482
|
let n = document.getElementById("td-content");
|
|
2477
|
-
n && (e = new MutationObserver(
|
|
2483
|
+
n && (e = new MutationObserver(r), e.observe(n, {
|
|
2478
2484
|
childList: !0,
|
|
2479
2485
|
subtree: !0
|
|
2480
2486
|
}));
|
|
2481
2487
|
}), V(() => {
|
|
2482
|
-
e?.disconnect();
|
|
2488
|
+
e?.disconnect(), t?.disconnect();
|
|
2483
2489
|
});
|
|
2484
2490
|
}
|
|
2485
2491
|
async function Ja() {
|
|
@@ -2499,45 +2505,51 @@ async function Ja() {
|
|
|
2499
2505
|
}
|
|
2500
2506
|
//#endregion
|
|
2501
2507
|
//#region src/client/theme-default/composables/useD2.ts
|
|
2502
|
-
var Ya = "https://esm.sh/@terrastruct/d2", Xa, Za = 0;
|
|
2508
|
+
var Ya = "https://esm.sh/@terrastruct/d2@0.1.32", Xa, Za = 0;
|
|
2503
2509
|
function Qa() {
|
|
2504
|
-
let e;
|
|
2505
|
-
|
|
2510
|
+
let e, t, n = /* @__PURE__ */ new WeakSet();
|
|
2511
|
+
function r() {
|
|
2506
2512
|
let e = document.getElementById("td-content");
|
|
2507
|
-
if (!e) return;
|
|
2508
|
-
let
|
|
2509
|
-
|
|
2513
|
+
if (!e || !t) return;
|
|
2514
|
+
let r = e.querySelectorAll(".td-d2-placeholder");
|
|
2515
|
+
for (let e of r) n.has(e) || (n.add(e), t.observe(e));
|
|
2516
|
+
}
|
|
2517
|
+
async function i(e) {
|
|
2518
|
+
let t = e.querySelector("code");
|
|
2519
|
+
if (!t) return;
|
|
2510
2520
|
let n = await $a();
|
|
2511
|
-
if (n)
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
let
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
let
|
|
2522
|
-
|
|
2523
|
-
let e = document.createElement("figcaption");
|
|
2524
|
-
e.textContent = i, s.appendChild(e);
|
|
2525
|
-
}
|
|
2526
|
-
e.replaceWith(s);
|
|
2527
|
-
} catch {
|
|
2528
|
-
e.classList.add("td-d2-error");
|
|
2521
|
+
if (!n) return;
|
|
2522
|
+
let r = `td-d2-${Za++}`, i = e.getAttribute("data-title");
|
|
2523
|
+
try {
|
|
2524
|
+
let a = await n.compile(t.textContent ?? "", { layout: "dagre" }), o = await n.render(a.diagram, {
|
|
2525
|
+
...a.renderOptions,
|
|
2526
|
+
themeID: document.documentElement.classList.contains("dark") ? 200 : 0
|
|
2527
|
+
}), s = document.createElement("figure");
|
|
2528
|
+
s.className = "td-d2", s.id = r;
|
|
2529
|
+
let c = document.createElement("div");
|
|
2530
|
+
if (c.innerHTML = o, s.appendChild(c), i) {
|
|
2531
|
+
let e = document.createElement("figcaption");
|
|
2532
|
+
e.textContent = i, s.appendChild(e);
|
|
2529
2533
|
}
|
|
2534
|
+
e.replaceWith(s);
|
|
2535
|
+
} catch {
|
|
2536
|
+
e.classList.add("td-d2-error");
|
|
2530
2537
|
}
|
|
2531
2538
|
}
|
|
2532
2539
|
Ue(() => {
|
|
2533
|
-
t()
|
|
2540
|
+
if (t = new IntersectionObserver((e) => {
|
|
2541
|
+
for (let n of e) n.isIntersecting && (t?.unobserve(n.target), i(n.target));
|
|
2542
|
+
}, { rootMargin: "200px" }), r(), document.querySelector(".td-d2-placeholder")) {
|
|
2543
|
+
let e = document.createElement("link");
|
|
2544
|
+
e.rel = "modulepreload", e.href = Ya, document.head.appendChild(e);
|
|
2545
|
+
}
|
|
2534
2546
|
let n = document.getElementById("td-content");
|
|
2535
|
-
n && (e = new MutationObserver(
|
|
2547
|
+
n && (e = new MutationObserver(r), e.observe(n, {
|
|
2536
2548
|
childList: !0,
|
|
2537
2549
|
subtree: !0
|
|
2538
2550
|
}));
|
|
2539
2551
|
}), V(() => {
|
|
2540
|
-
e?.disconnect();
|
|
2552
|
+
e?.disconnect(), t?.disconnect();
|
|
2541
2553
|
});
|
|
2542
2554
|
}
|
|
2543
2555
|
async function $a() {
|
|
@@ -2554,33 +2566,87 @@ async function $a() {
|
|
|
2554
2566
|
return Xa;
|
|
2555
2567
|
}
|
|
2556
2568
|
//#endregion
|
|
2569
|
+
//#region src/client/theme-default/composables/useGithubEmbed.ts
|
|
2570
|
+
var eo = "https://emgithub.com/embed-v2.js";
|
|
2571
|
+
function to() {
|
|
2572
|
+
let e, t, n, r = /* @__PURE__ */ new WeakSet(), i = [];
|
|
2573
|
+
function a() {
|
|
2574
|
+
let e = document.getElementById("td-content");
|
|
2575
|
+
if (!e || !n) return;
|
|
2576
|
+
let t = e.querySelectorAll(".td-github-placeholder");
|
|
2577
|
+
for (let e of t) r.has(e) || (r.add(e), n.observe(e));
|
|
2578
|
+
}
|
|
2579
|
+
function o(e) {
|
|
2580
|
+
let t = e.getAttribute("data-url");
|
|
2581
|
+
if (!t) return;
|
|
2582
|
+
let n = document.documentElement.classList.contains("dark"), r = document.createElement("script");
|
|
2583
|
+
r.src = no(t, n);
|
|
2584
|
+
let a = document.createElement("div");
|
|
2585
|
+
a.className = "td-github-wrapper", a.dataset.url = t, a.appendChild(r), e.replaceWith(a), i.push({
|
|
2586
|
+
container: a,
|
|
2587
|
+
url: t
|
|
2588
|
+
});
|
|
2589
|
+
}
|
|
2590
|
+
function s() {
|
|
2591
|
+
let e = document.documentElement.classList.contains("dark");
|
|
2592
|
+
for (let t of i) {
|
|
2593
|
+
if (!t.container.isConnected) continue;
|
|
2594
|
+
let n = document.createElement("script");
|
|
2595
|
+
n.src = no(t.url, e), t.container.innerHTML = "", t.container.appendChild(n);
|
|
2596
|
+
}
|
|
2597
|
+
}
|
|
2598
|
+
Ue(() => {
|
|
2599
|
+
n = new IntersectionObserver((e) => {
|
|
2600
|
+
for (let t of e) t.isIntersecting && (n?.unobserve(t.target), o(t.target));
|
|
2601
|
+
}, { rootMargin: "200px" }), a();
|
|
2602
|
+
let r = document.getElementById("td-content");
|
|
2603
|
+
r && (e = new MutationObserver(a), e.observe(r, {
|
|
2604
|
+
childList: !0,
|
|
2605
|
+
subtree: !0
|
|
2606
|
+
}));
|
|
2607
|
+
let i = document.documentElement.classList.contains("dark");
|
|
2608
|
+
t = new MutationObserver(() => {
|
|
2609
|
+
let e = document.documentElement.classList.contains("dark");
|
|
2610
|
+
e !== i && (i = e, s());
|
|
2611
|
+
}), t.observe(document.documentElement, {
|
|
2612
|
+
attributes: !0,
|
|
2613
|
+
attributeFilter: ["class"]
|
|
2614
|
+
});
|
|
2615
|
+
}), V(() => {
|
|
2616
|
+
e?.disconnect(), t?.disconnect(), n?.disconnect(), i.length = 0;
|
|
2617
|
+
});
|
|
2618
|
+
}
|
|
2619
|
+
function no(e, t) {
|
|
2620
|
+
return `${eo}?target=${encodeURIComponent(e)}&style=${t ? "base16/gruvbox-dark-medium" : "grayscale"}&type=code&showBorder=on&showFileMeta=on&showFullPath=on&showCopy=on&showLineNumbers=on`;
|
|
2621
|
+
}
|
|
2622
|
+
//#endregion
|
|
2557
2623
|
//#region src/client/theme-default/TdLayout.vue?vue&type=script&setup=true&lang.ts
|
|
2558
|
-
var
|
|
2624
|
+
var ro = { class: "td-header" }, io = { class: "td-header-left" }, ao = ["href"], oo = { class: "td-brand-name" }, so = { class: "td-header-right" }, co = ["href"], lo = { class: "td-drawer-header" }, uo = ["href"], fo = { class: "td-brand-name" }, po = {
|
|
2559
2625
|
key: 0,
|
|
2560
2626
|
class: "pt-4",
|
|
2561
2627
|
"aria-label": "Site navigation"
|
|
2562
|
-
},
|
|
2628
|
+
}, mo = { class: "td-page" }, ho = ["onKeydown"], go = { class: "td-main-and-rail" }, _o = { class: "td-main" }, vo = {
|
|
2563
2629
|
id: "td-content",
|
|
2564
2630
|
class: "td-content",
|
|
2565
2631
|
"data-testid": "content"
|
|
2566
|
-
},
|
|
2632
|
+
}, yo = {
|
|
2567
2633
|
key: 0,
|
|
2568
2634
|
class: "td-page-eyebrow"
|
|
2569
|
-
},
|
|
2635
|
+
}, bo = {
|
|
2570
2636
|
key: 1,
|
|
2571
2637
|
class: "td-page-icon"
|
|
2572
|
-
},
|
|
2638
|
+
}, xo = ["innerHTML"], So = {
|
|
2573
2639
|
key: 3,
|
|
2574
2640
|
class: "td-page-meta"
|
|
2575
|
-
},
|
|
2641
|
+
}, Co = { key: 0 }, wo = { class: "td-content-body" }, To = ["href"], Eo = 200, Do = 500, Oo = 300, ko = "td-sidebar-width", Ao = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
2576
2642
|
__name: "TdLayout",
|
|
2577
2643
|
setup(e) {
|
|
2578
2644
|
let { title: t, page: n } = fe(), i = M(() => {
|
|
2579
2645
|
let e = n.value.icon;
|
|
2580
2646
|
return e ? me(e.name) : void 0;
|
|
2581
2647
|
}), a = A(), { withBase: o } = a, s = ve(), c = M(() => s.value.ready), { isOpen: l, open: u, close: d } = Wi(), f = U(""), p = U(!1), m = U(!1), h = O();
|
|
2582
|
-
|
|
2583
|
-
let g =
|
|
2648
|
+
Y(() => h.path, () => d()), Fa(), Ia(), qa(), Qa(), to();
|
|
2649
|
+
let g = Ze("sidebarSearch"), _ = Ze("menuSearch");
|
|
2584
2650
|
function v(e) {
|
|
2585
2651
|
let t = a.repo;
|
|
2586
2652
|
return `${r(t.url)}/edit/main/${[
|
|
@@ -2592,31 +2658,31 @@ var eo = { class: "td-header" }, to = { class: "td-header-left" }, no = ["href"]
|
|
|
2592
2658
|
function b() {
|
|
2593
2659
|
_.value?.isFocused || g.value?.isFocused ? (_.value?.blur(), g.value?.blur(), l.value && d()) : l.value ? _.value?.focus() : g.value?.isVisible ? g.value.focus() : (u(), Be(() => _.value?.focus()));
|
|
2594
2660
|
}
|
|
2595
|
-
Ra([$.Control, $.k], b), Ra([$.Meta, $.k], b),
|
|
2661
|
+
Ra([$.Control, $.k], b), Ra([$.Meta, $.k], b), $e(() => {
|
|
2596
2662
|
if (typeof document > "u") return;
|
|
2597
2663
|
let e = t.value, r = a.title;
|
|
2598
2664
|
document.title = e && e !== r ? `${e} - ${r}` : r;
|
|
2599
2665
|
let i = n.value.frontmatter?.description === void 0 ? a.description ?? "" : String(n.value.frontmatter.description), o = document.querySelector("meta[name=\"description\"]");
|
|
2600
2666
|
o && o.setAttribute("content", i);
|
|
2601
2667
|
}), Ua();
|
|
2602
|
-
let x = U(typeof localStorage < "u" && Number(localStorage.getItem(
|
|
2668
|
+
let x = U(typeof localStorage < "u" && Number(localStorage.getItem(ko)) || Oo);
|
|
2603
2669
|
function S() {
|
|
2604
|
-
x.value = Math.min(
|
|
2670
|
+
x.value = Math.min(Do, x.value + 20);
|
|
2605
2671
|
}
|
|
2606
2672
|
function w(e) {
|
|
2607
2673
|
let t = e.clientX, n = x.value, r = e.currentTarget;
|
|
2608
2674
|
r.setPointerCapture(e.pointerId);
|
|
2609
2675
|
function i(e) {
|
|
2610
|
-
let r = Math.min(
|
|
2676
|
+
let r = Math.min(Do, window.innerWidth * .85), i = Math.min(r, Math.max(Eo, n + e.clientX - t));
|
|
2611
2677
|
x.value = i;
|
|
2612
2678
|
}
|
|
2613
2679
|
function a() {
|
|
2614
|
-
document.body.style.cursor = "", r.removeEventListener("pointermove", i), r.removeEventListener("pointerup", a), localStorage.setItem(
|
|
2680
|
+
document.body.style.cursor = "", r.removeEventListener("pointermove", i), r.removeEventListener("pointerup", a), localStorage.setItem(ko, String(x.value));
|
|
2615
2681
|
}
|
|
2616
2682
|
document.body.style.cursor = "col-resize", r.addEventListener("pointermove", i), r.addEventListener("pointerup", a);
|
|
2617
2683
|
}
|
|
2618
2684
|
function T() {
|
|
2619
|
-
x.value = Math.max(
|
|
2685
|
+
x.value = Math.max(Eo, x.value - 20);
|
|
2620
2686
|
}
|
|
2621
2687
|
return (e, r) => (H(), F("div", null, [
|
|
2622
2688
|
G(e.$slots, "layout-top", {}, void 0, !0),
|
|
@@ -2624,20 +2690,20 @@ var eo = { class: "td-header" }, to = { class: "td-header-left" }, no = ["href"]
|
|
|
2624
2690
|
href: "#td-content",
|
|
2625
2691
|
class: "td-skip-link"
|
|
2626
2692
|
}, "Skip to content", -1),
|
|
2627
|
-
I("header",
|
|
2628
|
-
I("div",
|
|
2693
|
+
I("header", ro, [
|
|
2694
|
+
I("div", io, [
|
|
2629
2695
|
R(Gi, { onClick: b }),
|
|
2630
2696
|
I("a", {
|
|
2631
|
-
href:
|
|
2697
|
+
href: J(o)(J(C)("/")),
|
|
2632
2698
|
class: "td-brand"
|
|
2633
|
-
}, [R(
|
|
2699
|
+
}, [R(yt), I("span", oo, q(J(a).title || "Typedown"), 1)], 8, ao),
|
|
2634
2700
|
R(Kr, { class: "td-header-breadcrumb" })
|
|
2635
2701
|
]),
|
|
2636
|
-
R(
|
|
2702
|
+
R(J(Yr)),
|
|
2637
2703
|
G(e.$slots, "nav-bar-after", {}, void 0, !0),
|
|
2638
|
-
I("div",
|
|
2704
|
+
I("div", so, [R(Pa), J(a).repo ? (H(), F("a", {
|
|
2639
2705
|
key: 0,
|
|
2640
|
-
href:
|
|
2706
|
+
href: J(a).repo.url,
|
|
2641
2707
|
target: "_blank",
|
|
2642
2708
|
rel: "noopener noreferrer",
|
|
2643
2709
|
class: "td-header-icon-link",
|
|
@@ -2653,31 +2719,31 @@ var eo = { class: "td-header" }, to = { class: "td-header-left" }, no = ["href"]
|
|
|
2653
2719
|
"fill-rule": "evenodd",
|
|
2654
2720
|
"clip-rule": "evenodd",
|
|
2655
2721
|
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"
|
|
2656
|
-
})], -1)]], 8,
|
|
2722
|
+
})], -1)]], 8, co)) : P("", !0)])
|
|
2657
2723
|
]),
|
|
2658
2724
|
I("div", {
|
|
2659
|
-
class: B(["td-drawer-scrim", { "is-open":
|
|
2660
|
-
onClick: r[0] ||= (...e) =>
|
|
2725
|
+
class: B(["td-drawer-scrim", { "is-open": J(l) }]),
|
|
2726
|
+
onClick: r[0] ||= (...e) => J(d) && J(d)(...e)
|
|
2661
2727
|
}, null, 2),
|
|
2662
2728
|
I("aside", {
|
|
2663
|
-
class: B(["td-drawer", { "is-open":
|
|
2729
|
+
class: B(["td-drawer", { "is-open": J(l) }]),
|
|
2664
2730
|
style: Ve({ width: `${x.value}px` })
|
|
2665
2731
|
}, [
|
|
2666
2732
|
I("div", {
|
|
2667
2733
|
class: "td-resize-handle",
|
|
2668
|
-
onPointerdown:
|
|
2734
|
+
onPointerdown: rt(w, ["prevent"])
|
|
2669
2735
|
}, null, 32),
|
|
2670
|
-
I("header",
|
|
2671
|
-
href:
|
|
2736
|
+
I("header", lo, [I("a", {
|
|
2737
|
+
href: J(o)(J(C)("/")),
|
|
2672
2738
|
class: "td-brand"
|
|
2673
|
-
}, [R(
|
|
2739
|
+
}, [R(yt), I("span", fo, q(J(a).title || "Typedown"), 1)], 8, uo), R(xt, {
|
|
2674
2740
|
label: "Close menu",
|
|
2675
|
-
onClick:
|
|
2741
|
+
onClick: J(d)
|
|
2676
2742
|
}, {
|
|
2677
|
-
default:
|
|
2743
|
+
default: et(() => [R(J(_e), { size: 20 })]),
|
|
2678
2744
|
_: 1
|
|
2679
2745
|
}, 8, ["onClick"])]),
|
|
2680
|
-
R(
|
|
2746
|
+
R(J(Qr)),
|
|
2681
2747
|
R(Na, {
|
|
2682
2748
|
ref_key: "menuSearch",
|
|
2683
2749
|
ref: _,
|
|
@@ -2685,18 +2751,18 @@ var eo = { class: "td-header" }, to = { class: "td-header-left" }, no = ["href"]
|
|
|
2685
2751
|
"onUpdate:query": r[1] ||= (e) => f.value = e,
|
|
2686
2752
|
active: m.value,
|
|
2687
2753
|
"onUpdate:active": r[2] ||= (e) => m.value = e,
|
|
2688
|
-
onSelect:
|
|
2754
|
+
onSelect: J(d)
|
|
2689
2755
|
}, null, 8, [
|
|
2690
2756
|
"query",
|
|
2691
2757
|
"active",
|
|
2692
2758
|
"onSelect"
|
|
2693
2759
|
]),
|
|
2694
|
-
m.value ? P("", !0) : (H(), F("nav",
|
|
2760
|
+
m.value ? P("", !0) : (H(), F("nav", po, [c.value ? (H(), N(jr, {
|
|
2695
2761
|
key: 1,
|
|
2696
|
-
tree:
|
|
2762
|
+
tree: J(s).contentTree
|
|
2697
2763
|
}, null, 8, ["tree"])) : (H(), N(_a, { key: 0 }))]))
|
|
2698
2764
|
], 6),
|
|
2699
|
-
I("div",
|
|
2765
|
+
I("div", mo, [I("nav", {
|
|
2700
2766
|
class: "td-sidebar-left",
|
|
2701
2767
|
"data-testid": "sidebar",
|
|
2702
2768
|
"aria-label": "Site navigation",
|
|
@@ -2713,7 +2779,7 @@ var eo = { class: "td-header" }, to = { class: "td-header-left" }, no = ["href"]
|
|
|
2713
2779
|
class: "td-sidebar-search"
|
|
2714
2780
|
}, null, 8, ["query", "active"]),
|
|
2715
2781
|
R(va, {
|
|
2716
|
-
tree:
|
|
2782
|
+
tree: J(s).contentTree,
|
|
2717
2783
|
"search-active": p.value,
|
|
2718
2784
|
ready: c.value
|
|
2719
2785
|
}, null, 8, [
|
|
@@ -2728,64 +2794,64 @@ var eo = { class: "td-header" }, to = { class: "td-header-left" }, no = ["href"]
|
|
|
2728
2794
|
"aria-orientation": "vertical",
|
|
2729
2795
|
"aria-label": "Resize sidebar",
|
|
2730
2796
|
tabindex: "0",
|
|
2731
|
-
onPointerdown:
|
|
2732
|
-
onKeydown: [rt(
|
|
2733
|
-
}, null, 40,
|
|
2734
|
-
], 4), I("div",
|
|
2797
|
+
onPointerdown: rt(w, ["prevent"]),
|
|
2798
|
+
onKeydown: [nt(rt(T, ["prevent"]), ["left"]), nt(rt(S, ["prevent"]), ["right"])]
|
|
2799
|
+
}, null, 40, ho)
|
|
2800
|
+
], 4), I("div", go, [I("main", _o, [I("article", vo, [
|
|
2735
2801
|
G(e.$slots, "doc-before", {}, void 0, !0),
|
|
2736
|
-
|
|
2737
|
-
i.value ? (H(), F("div",
|
|
2738
|
-
|
|
2802
|
+
J(n).schema ? (H(), F("div", yo, q(J(n).schemaLabel ?? J(n).schema), 1)) : P("", !0),
|
|
2803
|
+
i.value ? (H(), F("div", bo, [(H(), N(K(i.value), { size: 32 }))])) : P("", !0),
|
|
2804
|
+
J(t) ? (H(), F("h1", {
|
|
2739
2805
|
key: 2,
|
|
2740
2806
|
class: "td-page-title",
|
|
2741
|
-
innerHTML:
|
|
2742
|
-
}, null, 8,
|
|
2743
|
-
|
|
2744
|
-
R(
|
|
2807
|
+
innerHTML: J(n).titleHtml
|
|
2808
|
+
}, null, 8, xo)) : P("", !0),
|
|
2809
|
+
J(n).fileMetadata ? (H(), F("div", So, [I("span", null, q(J(y)(J(n).fileMetadata.mtime, "Modified")), 1), J(n).fileMetadata.ctime === J(n).fileMetadata.mtime ? P("", !0) : (H(), F("span", Co, " · " + q(J(y)(J(n).fileMetadata.ctime, "Created")), 1))])) : P("", !0),
|
|
2810
|
+
R(J(Hi), {
|
|
2745
2811
|
class: "td-frontmatter-inline",
|
|
2746
|
-
schema:
|
|
2747
|
-
frontmatter:
|
|
2812
|
+
schema: J(n).schema,
|
|
2813
|
+
frontmatter: J(n).frontmatter
|
|
2748
2814
|
}, null, 8, ["schema", "frontmatter"]),
|
|
2749
|
-
|
|
2815
|
+
J(n).headings.length > 0 ? (H(), N(pa, {
|
|
2750
2816
|
key: 4,
|
|
2751
2817
|
class: "td-toc-inline",
|
|
2752
|
-
headings:
|
|
2818
|
+
headings: J(n).headings,
|
|
2753
2819
|
static: ""
|
|
2754
2820
|
}, null, 8, ["headings"])) : P("", !0),
|
|
2755
2821
|
G(e.$slots, "doc-content-before", {}, void 0, !0),
|
|
2756
|
-
I("div",
|
|
2822
|
+
I("div", wo, [R(J(we))]),
|
|
2757
2823
|
G(e.$slots, "doc-content-after", {}, void 0, !0),
|
|
2758
2824
|
R(oa),
|
|
2759
|
-
|
|
2825
|
+
J(a).repo && J(n).filepath ? (H(), F("a", {
|
|
2760
2826
|
key: 5,
|
|
2761
|
-
href: v(
|
|
2827
|
+
href: v(J(n).filepath),
|
|
2762
2828
|
target: "_blank",
|
|
2763
2829
|
rel: "noopener noreferrer",
|
|
2764
2830
|
class: "td-page-edit"
|
|
2765
|
-
}, "Edit this page", 8,
|
|
2831
|
+
}, "Edit this page", 8, To)) : P("", !0),
|
|
2766
2832
|
G(e.$slots, "doc-after", {}, void 0, !0)
|
|
2767
2833
|
])]), R(ha, { class: "td-rail" })])]),
|
|
2768
2834
|
R(Pr),
|
|
2769
2835
|
G(e.$slots, "layout-bottom", {}, void 0, !0)
|
|
2770
2836
|
]));
|
|
2771
2837
|
}
|
|
2772
|
-
}), [["__scopeId", "data-v-
|
|
2838
|
+
}), [["__scopeId", "data-v-48e7c849"]]), jo = { class: "pt-16 pb-24" }, Mo = ["href"], No = /* @__PURE__ */ z({
|
|
2773
2839
|
__name: "TdNotFound",
|
|
2774
2840
|
setup(e) {
|
|
2775
2841
|
let { withBase: t } = A();
|
|
2776
|
-
return (e, n) => (H(), F("div",
|
|
2842
|
+
return (e, n) => (H(), F("div", jo, [
|
|
2777
2843
|
n[0] ||= I("p", { class: "text-td-4xl font-extrabold leading-none tracking-td-tight text-td-fg-muted" }, " 404 ", -1),
|
|
2778
2844
|
n[1] ||= I("h1", { class: "text-td-xl font-extrabold leading-td-tight tracking-td-tight mt-4" }, " Page Not Found ", -1),
|
|
2779
2845
|
n[2] ||= I("p", { class: "text-td-fg-muted mt-2 text-td-base leading-td-relaxed" }, " The page you are looking for does not exist. ", -1),
|
|
2780
2846
|
I("a", {
|
|
2781
2847
|
class: "inline-flex items-center mt-6 text-td-accent text-td-sm font-extrabold tracking-td-tight hover:text-td-accent-hi",
|
|
2782
|
-
href:
|
|
2783
|
-
}, "Go Home", 8,
|
|
2848
|
+
href: J(t)(J(C)("/"))
|
|
2849
|
+
}, "Go Home", 8, Mo)
|
|
2784
2850
|
]));
|
|
2785
2851
|
}
|
|
2786
|
-
}),
|
|
2787
|
-
Layout:
|
|
2788
|
-
NotFound:
|
|
2852
|
+
}), Po = {
|
|
2853
|
+
Layout: Ao,
|
|
2854
|
+
NotFound: No
|
|
2789
2855
|
};
|
|
2790
2856
|
//#endregion
|
|
2791
|
-
export {
|
|
2857
|
+
export { yt as TdBrandIcon, jr as TdContentNav, Ce as TdDirectoryIndex, Pr as TdFooter, he as TdGlossaryIndex, ba as TdKbdShortcut, $ as TdKeyName, Ao as TdLayout, No as TdNotFound, oa as TdPreviousNext, ha as TdRail, Pa as TdThemeToggle, pa as TdToc, Po as default, Fa as useCopyCode, Ra as useGlobalHotkey, za as useLocalHotkeys };
|