typerighter 0.56.2 → 0.56.3

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.
Files changed (26) hide show
  1. package/dist/{app-Dh1RgRtN.js → app-Dm08HnZG.js} +2 -2
  2. package/dist/{cli-DtmuEnwt.js → cli-D-sgJzkz.js} +5 -5
  3. package/dist/cli.js +1 -1
  4. package/dist/client/theme-default/composables/client-preferences/useSidebarConfig.d.ts +9 -5
  5. package/dist/client/theme-default/composables/client-preferences/useSidebarConfig.d.ts.map +1 -1
  6. package/dist/client/theme-default/composables/client-preferences/useTheme.d.ts +7 -1
  7. package/dist/client/theme-default/composables/client-preferences/useTheme.d.ts.map +1 -1
  8. package/dist/client/theme-default/composables/client-preferences/utils/buildHeadScript.d.ts +2 -2
  9. package/dist/client/theme-default/composables/client-preferences/utils/buildHeadScript.d.ts.map +1 -1
  10. package/dist/client/theme-default.js +893 -881
  11. package/dist/client.js +2 -2
  12. package/dist/index.js +2 -2
  13. package/dist/{init-Drks9yZs.js → init-CRbtpr2v.js} +1 -1
  14. package/dist/{page-RL9qA6-j.js → page-BreMA8X5.js} +3 -3
  15. package/dist/prerenderWorker.js +2 -2
  16. package/dist/{renderMath-CJKXI63h.js → renderMath-e3scuxfY.js} +1 -1
  17. package/dist/shared/utils/time.d.ts.map +1 -1
  18. package/dist/{shared-BK7uzYmy.js → shared-dB08amQA.js} +88 -88
  19. package/dist/shared.js +1 -1
  20. package/dist/typerighter.css +1 -1
  21. package/dist/{useSidebarConfig-n149FAq4.js → useSidebarConfig-DUcdHn0W.js} +13 -11
  22. package/dist/useTheme-BF8TNao6.js +65 -0
  23. package/dist/{vite-C2ruOX7H.js → vite-BeHH_un1.js} +2 -2
  24. package/dist/vite.js +1 -1
  25. package/package.json +4 -3
  26. package/dist/useTheme-B-j0bXCL.js +0 -62
@@ -1,19 +1,19 @@
1
- import { A as e, D as t, E as n, I as r, L as i, P as a, R as o, T as s, Y as c, _ as l, a as u, b as d, c as f, f as p, j as m, k as h, l as g, n as _, nt as v, p as y, r as b, rt as x, s as S, v as C, w, y as T } from "../shared-BK7uzYmy.js";
2
- import { n as E } from "../useTheme-B-j0bXCL.js";
3
- import { i as ee, n as te, o as D, r as ne, s as re, t as ie } from "../useSidebarConfig-n149FAq4.js";
1
+ import { A as e, D as t, E as n, I as r, L as i, P as a, R as o, T as s, Y as c, _ as l, a as u, b as d, c as f, f as p, j as m, k as h, l as g, n as _, nt as v, p as y, r as b, rt as x, s as S, v as C, w, y as T } from "../shared-dB08amQA.js";
2
+ import { n as E } from "../useTheme-BF8TNao6.js";
3
+ import { i as ee, n as te, o as D, r as ne, s as re, t as ie } from "../useSidebarConfig-DUcdHn0W.js";
4
4
  import { t as ae } from "../es-B_QJMowB.js";
5
- import { A as O, B as oe, C as se, D as ce, E as le, F as ue, H as k, I as de, L as fe, M as pe, N as me, O as he, P as ge, R as _e, S as ve, T as ye, V as be, _ as xe, a as Se, b as Ce, c as we, d as Te, f as Ee, g as De, h as Oe, i as ke, j as Ae, k as je, l as Me, m as Ne, n as Pe, o as Fe, p as A, r as j, s as Ie, u as Le, v as Re, w as ze, x as Be, y as Ve, z as He } from "../app-Dh1RgRtN.js";
6
- import { a as Ue, i as We, n as Ge, t as Ke } from "../brand-BSCRFcrY.js";
7
- import { t as qe } from "../inlineRe-CoUp2DgK.js";
8
- import { Fragment as M, Teleport as Je, Transition as Ye, computed as N, createBlock as P, createCommentVNode as F, createElementBlock as I, createElementVNode as L, createTextVNode as R, createVNode as z, defineComponent as B, getCurrentScope as Xe, h as Ze, markRaw as Qe, mergeModels as $e, mergeProps as et, nextTick as tt, normalizeClass as V, normalizeStyle as nt, onBeforeUnmount as rt, onMounted as it, onScopeDispose as at, onUnmounted as ot, openBlock as H, readonly as st, ref as U, render as ct, renderList as W, renderSlot as G, resolveComponent as lt, resolveDynamicComponent as ut, shallowReadonly as dt, shallowRef as ft, toDisplayString as K, toValue as pt, unref as q, useModel as mt, useTemplateRef as J, vModelText as ht, vShow as gt, watch as Y, watchEffect as _t, withCtx as X, withDirectives as vt, withKeys as yt, withModifiers as bt } from "vue";
9
- var xt = k({
5
+ import { A as oe, B as se, C as ce, D as le, E as ue, F as de, H as O, I as fe, L as pe, M as me, N as he, O as ge, P as _e, R as ve, S as ye, T as be, V as xe, _ as Se, a as Ce, b as we, c as Te, d as Ee, f as De, g as Oe, h as ke, i as Ae, j as je, k as Me, l as Ne, m as Pe, n as Fe, o as Ie, p as k, r as A, s as Le, u as Re, v as ze, w as Be, x as Ve, y as He, z as Ue } from "../app-Dm08HnZG.js";
6
+ import { a as We, i as Ge, n as Ke, t as qe } from "../brand-BSCRFcrY.js";
7
+ import { t as Je } from "../inlineRe-CoUp2DgK.js";
8
+ import { Fragment as j, Teleport as Ye, Transition as Xe, 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 Ze, h as Qe, markRaw as $e, mergeModels as et, mergeProps as tt, nextTick as nt, normalizeClass as B, normalizeStyle as V, onBeforeUnmount as rt, onMounted as it, onScopeDispose as at, onUnmounted as ot, openBlock as H, readonly as st, ref as U, render as ct, renderList as W, renderSlot as G, resolveComponent as lt, resolveDynamicComponent as ut, shallowReadonly as dt, shallowRef as ft, toDisplayString as K, toValue as pt, unref as q, useModel as mt, useTemplateRef as J, vModelText as ht, vShow as gt, watch as Y, watchEffect as _t, withCtx as X, withDirectives as vt, withKeys as yt, withModifiers as bt } from "vue";
9
+ var xt = O({
10
10
  name: "check",
11
11
  size: 24,
12
12
  node: [["path", {
13
13
  d: "M20 6 9 17l-5-5",
14
14
  key: "1gmf2c"
15
15
  }]]
16
- }), St = k({
16
+ }), St = O({
17
17
  name: "chevrons-left",
18
18
  size: 24,
19
19
  node: [["path", {
@@ -23,7 +23,7 @@ var xt = k({
23
23
  d: "m18 17-5-5 5-5",
24
24
  key: "h8a8et"
25
25
  }]]
26
- }), Ct = k({
26
+ }), Ct = O({
27
27
  name: "chevrons-right",
28
28
  size: 24,
29
29
  node: [["path", {
@@ -33,7 +33,7 @@ var xt = k({
33
33
  d: "m13 17 5-5-5-5",
34
34
  key: "17xmmf"
35
35
  }]]
36
- }), wt = k({
36
+ }), wt = O({
37
37
  name: "circle-dot",
38
38
  size: 24,
39
39
  node: [["circle", {
@@ -47,7 +47,7 @@ var xt = k({
47
47
  r: "10",
48
48
  key: "1mglay"
49
49
  }]]
50
- }), Tt = k({
50
+ }), Tt = O({
51
51
  name: "clipboard-copy",
52
52
  size: 24,
53
53
  node: [
@@ -77,14 +77,14 @@ var xt = k({
77
77
  key: "5dvupr"
78
78
  }]
79
79
  ]
80
- }), Et = k({
80
+ }), Et = O({
81
81
  name: "command",
82
82
  size: 24,
83
83
  node: [["path", {
84
84
  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",
85
85
  key: "11bfej"
86
86
  }]]
87
- }), Dt = k({
87
+ }), Dt = O({
88
88
  name: "corner-down-left",
89
89
  size: 24,
90
90
  node: [["path", {
@@ -94,7 +94,7 @@ var xt = k({
94
94
  d: "m9 10-5 5 5 5",
95
95
  key: "1kshq7"
96
96
  }]]
97
- }), Ot = k({
97
+ }), Ot = O({
98
98
  name: "delete",
99
99
  size: 24,
100
100
  node: [
@@ -111,14 +111,14 @@ var xt = k({
111
111
  key: "1fp51s"
112
112
  }]
113
113
  ]
114
- }), kt = k({
114
+ }), kt = O({
115
115
  name: "folder-open",
116
116
  size: 24,
117
117
  node: [["path", {
118
118
  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",
119
119
  key: "usdka0"
120
120
  }]]
121
- }), At = k({
121
+ }), At = O({
122
122
  name: "loader-circle",
123
123
  size: 24,
124
124
  node: [["path", {
@@ -126,7 +126,7 @@ var xt = k({
126
126
  key: "13zald"
127
127
  }]],
128
128
  aliases: ["loader-2"]
129
- }), jt = k({
129
+ }), jt = O({
130
130
  name: "maximize",
131
131
  size: 24,
132
132
  node: [
@@ -147,7 +147,7 @@ var xt = k({
147
147
  key: "18trek"
148
148
  }]
149
149
  ]
150
- }), Mt = k({
150
+ }), Mt = O({
151
151
  name: "option",
152
152
  size: 24,
153
153
  node: [["path", {
@@ -157,14 +157,14 @@ var xt = k({
157
157
  d: "M3 3h5.28a1 1 0 0 1 .948.684l5.544 16.632a1 1 0 0 0 .949.684H21",
158
158
  key: "1qf1im"
159
159
  }]]
160
- }), Nt = k({
160
+ }), Nt = O({
161
161
  name: "space",
162
162
  size: 24,
163
163
  node: [["path", {
164
164
  d: "M22 17v1c0 .5-.5 1-1 1H3c-.5 0-1-.5-1-1v-1",
165
165
  key: "lt2kga"
166
166
  }]]
167
- }), Pt = k({
167
+ }), Pt = O({
168
168
  name: "square-check-big",
169
169
  size: 24,
170
170
  node: [["path", {
@@ -175,7 +175,7 @@ var xt = k({
175
175
  key: "1pflzl"
176
176
  }]],
177
177
  aliases: ["check-square"]
178
- }), Ft = k({
178
+ }), Ft = O({
179
179
  name: "tags",
180
180
  size: 24,
181
181
  node: [
@@ -195,7 +195,7 @@ var xt = k({
195
195
  key: "12ikhr"
196
196
  }]
197
197
  ]
198
- }), It = k({
198
+ }), It = O({
199
199
  name: "type",
200
200
  size: 24,
201
201
  node: [
@@ -216,113 +216,102 @@ var xt = k({
216
216
  "height",
217
217
  "width",
218
218
  "viewBox"
219
- ], Rt = ["d"], zt = ["d"], Bt = ["d"], Vt = /* @__PURE__ */ B({
219
+ ], Rt = ["d"], zt = ["d"], Bt = ["d"], Vt = /* @__PURE__ */ z({
220
220
  __name: "TdBrandIcon",
221
221
  props: { size: { default: 28 } },
222
222
  setup(e) {
223
- return (t, n) => (H(), I("svg", {
223
+ return (t, n) => (H(), F("svg", {
224
224
  fill: "none",
225
225
  height: e.size,
226
226
  width: e.size * 208 / 128,
227
- viewBox: q(Ue),
227
+ viewBox: q(We),
228
228
  xmlns: "http://www.w3.org/2000/svg"
229
229
  }, [
230
- L("path", {
230
+ I("path", {
231
231
  "clip-rule": "evenodd",
232
- d: q(Ge),
232
+ d: q(Ke),
233
233
  "fill-rule": "evenodd",
234
234
  fill: "currentColor"
235
235
  }, null, 8, Rt),
236
- L("path", {
237
- d: q(We),
236
+ I("path", {
237
+ d: q(Ge),
238
238
  fill: "currentColor"
239
239
  }, null, 8, zt),
240
- L("path", {
241
- d: q(Ke),
240
+ I("path", {
241
+ d: q(qe),
242
242
  fill: "currentColor"
243
243
  }, null, 8, Bt)
244
244
  ], 8, Lt));
245
245
  }
246
- }), Ht = ["title", "aria-label"], Ut = /*#__PURE__*/ A(/* @__PURE__ */ B({
247
- __name: "TdButton",
248
- props: { label: {} },
249
- setup(e) {
250
- return (t, n) => (H(), I("button", {
251
- type: "button",
252
- class: "td-icon-btn",
253
- title: e.label,
254
- "aria-label": e.label
255
- }, [G(t.$slots, "default", {}, void 0, !0)], 8, Ht));
256
- }
257
- }), [["__scopeId", "data-v-b1861a4a"]]), Wt = Math.min, Gt = Math.max, Kt = Math.round, qt = (e) => ({
246
+ }), Ht = Math.min, Ut = Math.max, Wt = Math.round, Gt = (e) => ({
258
247
  x: e,
259
248
  y: e
260
- }), Jt = {
249
+ }), Kt = {
261
250
  left: "right",
262
251
  right: "left",
263
252
  bottom: "top",
264
253
  top: "bottom"
265
254
  };
266
- function Yt(e, t, n) {
267
- return Gt(e, Wt(t, n));
255
+ function qt(e, t, n) {
256
+ return Ut(e, Ht(t, n));
268
257
  }
269
- function Xt(e, t) {
258
+ function Jt(e, t) {
270
259
  return typeof e == "function" ? e(t) : e;
271
260
  }
272
- function Zt(e) {
261
+ function Yt(e) {
273
262
  return e.split("-")[0];
274
263
  }
275
- function Qt(e) {
264
+ function Xt(e) {
276
265
  return e.split("-")[1];
277
266
  }
278
- function $t(e) {
267
+ function Zt(e) {
279
268
  return e === "x" ? "y" : "x";
280
269
  }
281
- function en(e) {
270
+ function Qt(e) {
282
271
  return e === "y" ? "height" : "width";
283
272
  }
284
- function tn(e) {
273
+ function $t(e) {
285
274
  let t = e[0];
286
275
  return t === "t" || t === "b" ? "y" : "x";
287
276
  }
288
- function nn(e) {
289
- return $t(tn(e));
277
+ function en(e) {
278
+ return Zt($t(e));
290
279
  }
291
- function rn(e, t, n) {
280
+ function tn(e, t, n) {
292
281
  n === void 0 && (n = !1);
293
- let r = Qt(e), i = nn(e), a = en(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
294
- return t.reference[a] > t.floating[a] && (o = pn(o)), [o, pn(o)];
282
+ let r = Xt(e), i = en(e), a = Qt(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
283
+ return t.reference[a] > t.floating[a] && (o = dn(o)), [o, dn(o)];
295
284
  }
296
- function an(e) {
297
- let t = pn(e);
285
+ function nn(e) {
286
+ let t = dn(e);
298
287
  return [
299
- on(e),
288
+ rn(e),
300
289
  t,
301
- on(t)
290
+ rn(t)
302
291
  ];
303
292
  }
304
- function on(e) {
293
+ function rn(e) {
305
294
  return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
306
295
  }
307
- var sn = ["left", "right"], cn = ["right", "left"], ln = ["top", "bottom"], un = ["bottom", "top"];
308
- function dn(e, t, n) {
296
+ var an = ["left", "right"], on = ["right", "left"], sn = ["top", "bottom"], cn = ["bottom", "top"];
297
+ function ln(e, t, n) {
309
298
  switch (e) {
310
299
  case "top":
311
- case "bottom": return n ? t ? cn : sn : t ? sn : cn;
300
+ case "bottom": return n ? t ? on : an : t ? an : on;
312
301
  case "left":
313
- case "right": return t ? ln : un;
302
+ case "right": return t ? sn : cn;
314
303
  default: return [];
315
304
  }
316
305
  }
317
- function fn(e, t, n, r) {
318
- let i = Qt(e), a = dn(Zt(e), n === "start", r);
319
- return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(on)))), a;
306
+ function un(e, t, n, r) {
307
+ let i = Xt(e), a = ln(Yt(e), n === "start", r);
308
+ return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(rn)))), a;
320
309
  }
321
- function pn(e) {
322
- let t = Zt(e);
323
- return Jt[t] + e.slice(t.length);
310
+ function dn(e) {
311
+ let t = Yt(e);
312
+ return Kt[t] + e.slice(t.length);
324
313
  }
325
- function mn(e) {
314
+ function fn(e) {
326
315
  return {
327
316
  top: e.top ?? 0,
328
317
  right: e.right ?? 0,
@@ -330,15 +319,15 @@ function mn(e) {
330
319
  left: e.left ?? 0
331
320
  };
332
321
  }
333
- function hn(e) {
322
+ function pn(e) {
334
323
  return typeof e == "number" ? {
335
324
  top: e,
336
325
  right: e,
337
326
  bottom: e,
338
327
  left: e
339
- } : mn(e);
328
+ } : fn(e);
340
329
  }
341
- function gn(e) {
330
+ function mn(e) {
342
331
  let { x: t, y: n, width: r, height: i } = e;
343
332
  return {
344
333
  width: r,
@@ -352,8 +341,8 @@ function gn(e) {
352
341
  };
353
342
  }
354
343
  // ../../node_modules/.pnpm/@floating-ui+core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
355
- function _n(e, t, n) {
356
- let { reference: r, floating: i } = e, a = tn(t), o = nn(t), s = en(o), c = Zt(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
+ function hn(e, t, n) {
345
+ let { reference: r, floating: i } = e, a = $t(t), o = en(t), s = Qt(o), c = Yt(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;
357
346
  switch (c) {
358
347
  case "top":
359
348
  p = {
@@ -384,12 +373,12 @@ function _n(e, t, n) {
384
373
  y: r.y
385
374
  };
386
375
  }
387
- let m = Qt(t);
376
+ let m = Xt(t);
388
377
  return m && (p[o] += f * (m === "end" ? 1 : -1) * (n && l ? -1 : 1)), p;
389
378
  }
390
- async function vn(e, t) {
379
+ async function gn(e, t) {
391
380
  t === void 0 && (t = {});
392
- 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 } = Xt(t, e), p = hn(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = gn(await i.getClippingRect({
381
+ 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 } = Jt(t, e), p = pn(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = mn(await i.getClippingRect({
393
382
  element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
394
383
  boundary: c,
395
384
  rootBoundary: l,
@@ -402,7 +391,7 @@ async function vn(e, t) {
402
391
  } : 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(_)) || {
403
392
  x: 1,
404
393
  y: 1
405
- }, y = gn(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
394
+ }, y = mn(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
406
395
  elements: o,
407
396
  rect: g,
408
397
  offsetParent: _,
@@ -415,15 +404,15 @@ async function vn(e, t) {
415
404
  right: (y.right - h.right + p.right) / v.x
416
405
  };
417
406
  }
418
- var yn = 50, bn = async (e, t, n) => {
407
+ var _n = 50, vn = async (e, t, n) => {
419
408
  let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
420
409
  ...o,
421
- detectOverflow: vn
410
+ detectOverflow: gn
422
411
  }, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
423
412
  reference: e,
424
413
  floating: t,
425
414
  strategy: i
426
- }), { x: u, y: d } = _n(l, r, c), f = r, p = 0, m = {};
415
+ }), { x: u, y: d } = hn(l, r, c), f = r, p = 0, m = {};
427
416
  for (let n = 0; n < a.length; n++) {
428
417
  let h = a[n];
429
418
  if (!h) continue;
@@ -444,11 +433,11 @@ var yn = 50, bn = async (e, t, n) => {
444
433
  u = v ?? u, d = y ?? d, m[g] = {
445
434
  ...m[g],
446
435
  ...b
447
- }, x && p < yn && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
436
+ }, x && p < _n && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
448
437
  reference: e,
449
438
  floating: t,
450
439
  strategy: i
451
- }) : x.rects), {x: u, y: d} = _n(l, f, c)), n = -1);
440
+ }) : x.rects), {x: u, y: d} = hn(l, f, c)), n = -1);
452
441
  }
453
442
  return {
454
443
  x: u,
@@ -457,18 +446,18 @@ var yn = 50, bn = async (e, t, n) => {
457
446
  strategy: i,
458
447
  middlewareData: m
459
448
  };
460
- }, xn = (e) => ({
449
+ }, yn = (e) => ({
461
450
  name: "arrow",
462
451
  options: e,
463
452
  async fn(t) {
464
- let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = Xt(e, t) || {};
453
+ let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = Jt(e, t) || {};
465
454
  if (l == null) return {};
466
- let d = hn(u), f = {
455
+ let d = pn(u), f = {
467
456
  x: n,
468
457
  y: r
469
- }, p = nn(i), m = en(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;
458
+ }, p = en(i), m = Qt(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;
470
459
  C && await (o.isElement == null ? void 0 : o.isElement(S)) || (C = s.floating[y] || a.floating[m]);
471
- let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = Wt(d[_], T), ee = Wt(d[v], T), te = C - h[m] - ee, D = C / 2 - h[m] / 2 + w, ne = Yt(E, D, te), re = !c.arrow && Qt(i) != null && D !== ne && a.reference[m] / 2 - (D < E ? E : ee) - h[m] / 2 < 0, ie = re ? D < E ? D - E : D - te : 0;
460
+ let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = Ht(d[_], T), ee = Ht(d[v], T), te = C - h[m] - ee, D = C / 2 - h[m] / 2 + w, ne = qt(E, D, te), re = !c.arrow && Xt(i) != null && D !== ne && a.reference[m] / 2 - (D < E ? E : ee) - h[m] / 2 < 0, ie = re ? D < E ? D - E : D - te : 0;
472
461
  return {
473
462
  [p]: f[p] + ie,
474
463
  data: {
@@ -479,19 +468,19 @@ var yn = 50, bn = async (e, t, n) => {
479
468
  reset: re
480
469
  };
481
470
  }
482
- }), Sn = function(e) {
471
+ }), bn = function(e) {
483
472
  return e === void 0 && (e = {}), {
484
473
  name: "flip",
485
474
  options: e,
486
475
  async fn(t) {
487
476
  var n;
488
- 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 } = Xt(e, t);
477
+ 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 } = Jt(e, t);
489
478
  if ((n = i.arrow) != null && n.alignmentOffset) return {};
490
- let g = Zt(r), _ = tn(o), v = Zt(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [pn(o)] : an(o)), x = p !== "none";
491
- !d && x && b.push(...fn(o, m, p, y));
479
+ let g = Yt(r), _ = $t(o), v = Yt(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [dn(o)] : nn(o)), x = p !== "none";
480
+ !d && x && b.push(...un(o, m, p, y));
492
481
  let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
493
482
  if (l && w.push(C[g]), u) {
494
- let e = rn(r, a, y);
483
+ let e = tn(r, a, y);
495
484
  w.push(C[e[0]], C[e[1]]);
496
485
  }
497
486
  if (T = [...T, {
@@ -499,7 +488,7 @@ var yn = 50, bn = async (e, t, n) => {
499
488
  overflows: w
500
489
  }], !w.every((e) => e <= 0)) {
501
490
  let e = (i.flip?.index || 0) + 1, t = S[e];
502
- if (t && (u !== "alignment" || _ === tn(t) || T.every((e) => tn(e.placement) !== _ || e.overflows[0] > 0))) return {
491
+ if (t && (u !== "alignment" || _ === $t(t) || T.every((e) => $t(e.placement) !== _ || e.overflows[0] > 0))) return {
503
492
  data: {
504
493
  index: e,
505
494
  overflows: T
@@ -511,7 +500,7 @@ var yn = 50, bn = async (e, t, n) => {
511
500
  case "bestFit": {
512
501
  let e = T.filter((e) => {
513
502
  if (x) {
514
- let t = tn(e.placement);
503
+ let t = $t(e.placement);
515
504
  return t === _ || t === "y";
516
505
  }
517
506
  return !0;
@@ -526,9 +515,9 @@ var yn = 50, bn = async (e, t, n) => {
526
515
  return {};
527
516
  }
528
517
  };
529
- }, Cn = /*#__PURE__*/ new Set(["left", "top"]);
530
- async function wn(e, t) {
531
- let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = Zt(n), s = Qt(n), c = tn(n) === "y", l = Cn.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = Xt(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
518
+ }, xn = /*#__PURE__*/ new Set(["left", "top"]);
519
+ async function Sn(e, t) {
520
+ let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = Yt(n), s = Xt(n), c = $t(n) === "y", l = xn.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = Jt(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
532
521
  mainAxis: d,
533
522
  crossAxis: 0,
534
523
  alignmentAxis: null
@@ -545,13 +534,13 @@ async function wn(e, t) {
545
534
  y: p * u
546
535
  };
547
536
  }
548
- var Tn = function(e) {
537
+ var Cn = function(e) {
549
538
  return e === void 0 && (e = 0), {
550
539
  name: "offset",
551
540
  options: e,
552
541
  async fn(t) {
553
542
  var n;
554
- let { x: r, y: i, placement: a, middlewareData: o } = t, s = await wn(t, e);
543
+ let { x: r, y: i, placement: a, middlewareData: o } = t, s = await Sn(t, e);
555
544
  return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
556
545
  x: r + s.x,
557
546
  y: i + s.y,
@@ -562,7 +551,7 @@ var Tn = function(e) {
562
551
  };
563
552
  }
564
553
  };
565
- }, En = function(e) {
554
+ }, wn = function(e) {
566
555
  return e === void 0 && (e = {}), {
567
556
  name: "shift",
568
557
  options: e,
@@ -573,10 +562,10 @@ var Tn = function(e) {
573
562
  x: t,
574
563
  y: n
575
564
  };
576
- } }, ...l } = Xt(e, t), u = {
565
+ } }, ...l } = Jt(e, t), u = {
577
566
  x: n,
578
567
  y: r
579
- }, d = await a.detectOverflow(t, l), f = tn(i), p = $t(f), m = u[p], h = u[f], g = (e, t) => Yt(t + d[e === "y" ? "top" : "left"], t, t - d[e === "y" ? "bottom" : "right"]);
568
+ }, d = await a.detectOverflow(t, l), f = $t(i), p = Zt(f), m = u[p], h = u[f], g = (e, t) => qt(t + d[e === "y" ? "top" : "left"], t, t - d[e === "y" ? "bottom" : "right"]);
580
569
  o && (m = g(p, m)), s && (h = g(f, h));
581
570
  let _ = c.fn({
582
571
  ...t,
@@ -598,39 +587,39 @@ var Tn = function(e) {
598
587
  };
599
588
  };
600
589
  // ../../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
601
- function Dn() {
590
+ function Tn() {
602
591
  return typeof window < "u";
603
592
  }
604
- function On(e) {
605
- return An(e) ? (e.nodeName || "").toLowerCase() : "#document";
593
+ function En(e) {
594
+ return On(e) ? (e.nodeName || "").toLowerCase() : "#document";
606
595
  }
607
596
  function Z(e) {
608
597
  var t;
609
598
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
610
599
  }
600
+ function Dn(e) {
601
+ return ((On(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
602
+ }
603
+ function On(e) {
604
+ return Tn() ? e instanceof Node || e instanceof Z(e).Node : !1;
605
+ }
611
606
  function kn(e) {
612
- return ((An(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
607
+ return Tn() ? e instanceof Element || e instanceof Z(e).Element : !1;
613
608
  }
614
609
  function An(e) {
615
- return Dn() ? e instanceof Node || e instanceof Z(e).Node : !1;
610
+ return Tn() ? e instanceof HTMLElement || e instanceof Z(e).HTMLElement : !1;
616
611
  }
617
612
  function jn(e) {
618
- return Dn() ? e instanceof Element || e instanceof Z(e).Element : !1;
613
+ return !Tn() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Z(e).ShadowRoot;
619
614
  }
620
615
  function Mn(e) {
621
- return Dn() ? e instanceof HTMLElement || e instanceof Z(e).HTMLElement : !1;
616
+ let { overflow: t, overflowX: n, overflowY: r, display: i } = Un(e);
617
+ return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
622
618
  }
623
619
  function Nn(e) {
624
- return !Dn() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Z(e).ShadowRoot;
620
+ return /^(table|td|th)$/.test(En(e));
625
621
  }
626
622
  function Pn(e) {
627
- let { overflow: t, overflowX: n, overflowY: r, display: i } = Gn(e);
628
- return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
629
- }
630
- function Fn(e) {
631
- return /^(table|td|th)$/.test(On(e));
632
- }
633
- function In(e) {
634
623
  try {
635
624
  if (e.matches(":popover-open")) return !0;
636
625
  } catch {}
@@ -640,31 +629,31 @@ function In(e) {
640
629
  return !1;
641
630
  }
642
631
  }
643
- var Ln = /transform|translate|scale|rotate|perspective|filter/, Rn = /paint|layout|strict|content/, zn = (e) => !!e && e !== "none", Bn;
644
- function Vn(e) {
645
- let t = jn(e) ? Gn(e) : e;
646
- return zn(t.transform) || zn(t.translate) || zn(t.scale) || zn(t.rotate) || zn(t.perspective) || !Un() && (zn(t.backdropFilter) || zn(t.filter)) || Ln.test(t.willChange || "") || Rn.test(t.contain || "");
632
+ var Fn = /transform|translate|scale|rotate|perspective|filter/, In = /paint|layout|strict|content/, Ln = (e) => !!e && e !== "none", Rn;
633
+ function zn(e) {
634
+ let t = kn(e) ? Un(e) : e;
635
+ return Ln(t.transform) || Ln(t.translate) || Ln(t.scale) || Ln(t.rotate) || Ln(t.perspective) || !Vn() && (Ln(t.backdropFilter) || Ln(t.filter)) || Fn.test(t.willChange || "") || In.test(t.contain || "");
647
636
  }
648
- function Hn(e) {
649
- let t = qn(e);
650
- for (; Mn(t) && !Wn(t);) {
651
- if (Vn(t)) return t;
652
- if (In(t)) return null;
653
- t = qn(t);
637
+ function Bn(e) {
638
+ let t = Gn(e);
639
+ for (; An(t) && !Hn(t);) {
640
+ if (zn(t)) return t;
641
+ if (Pn(t)) return null;
642
+ t = Gn(t);
654
643
  }
655
644
  return null;
656
645
  }
657
- function Un() {
658
- return Bn ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), Bn;
646
+ function Vn() {
647
+ return Rn ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), Rn;
659
648
  }
660
- function Wn(e) {
661
- return /^(html|body|#document)$/.test(On(e));
649
+ function Hn(e) {
650
+ return /^(html|body|#document)$/.test(En(e));
662
651
  }
663
- function Gn(e) {
652
+ function Un(e) {
664
653
  return Z(e).getComputedStyle(e);
665
654
  }
666
- function Kn(e) {
667
- return jn(e) ? {
655
+ function Wn(e) {
656
+ return kn(e) ? {
668
657
  scrollLeft: e.scrollLeft,
669
658
  scrollTop: e.scrollTop
670
659
  } : {
@@ -672,101 +661,101 @@ function Kn(e) {
672
661
  scrollTop: e.scrollY
673
662
  };
674
663
  }
675
- function qn(e) {
676
- if (On(e) === "html") return e;
677
- let t = e.assignedSlot || e.parentNode || Nn(e) && e.host || kn(e);
678
- return Nn(t) ? t.host : t;
664
+ function Gn(e) {
665
+ if (En(e) === "html") return e;
666
+ let t = e.assignedSlot || e.parentNode || jn(e) && e.host || Dn(e);
667
+ return jn(t) ? t.host : t;
679
668
  }
680
- function Jn(e) {
681
- let t = qn(e);
682
- return Wn(t) ? (e.ownerDocument || e).body : Mn(t) && Pn(t) ? t : Jn(t);
669
+ function Kn(e) {
670
+ let t = Gn(e);
671
+ return Hn(t) ? (e.ownerDocument || e).body : An(t) && Mn(t) ? t : Kn(t);
683
672
  }
684
- function Yn(e, t, n) {
673
+ function qn(e, t, n) {
685
674
  t === void 0 && (t = []), n === void 0 && (n = !0);
686
- let r = Jn(e), i = r === e.ownerDocument?.body, a = Z(r);
675
+ let r = Kn(e), i = r === e.ownerDocument?.body, a = Z(r);
687
676
  if (i) {
688
- let e = Xn(a);
689
- return t.concat(a, a.visualViewport || [], Pn(r) ? r : [], e && n ? Yn(e) : []);
677
+ let e = Jn(a);
678
+ return t.concat(a, a.visualViewport || [], Mn(r) ? r : [], e && n ? qn(e) : []);
690
679
  }
691
- return t.concat(r, Yn(r, [], n));
680
+ return t.concat(r, qn(r, [], n));
692
681
  }
693
- function Xn(e) {
682
+ function Jn(e) {
694
683
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
695
684
  }
696
685
  // ../../node_modules/.pnpm/@floating-ui+dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
697
- function Zn(e) {
698
- let t = Gn(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = Mn(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = Kt(n) !== a || Kt(r) !== o;
686
+ function Yn(e) {
687
+ let t = Un(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = An(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = Wt(n) !== a || Wt(r) !== o;
699
688
  return s && (n = a, r = o), {
700
689
  width: n,
701
690
  height: r,
702
691
  $: s
703
692
  };
704
693
  }
705
- function Qn(e) {
706
- return jn(e) ? e : e.contextElement;
694
+ function Xn(e) {
695
+ return kn(e) ? e : e.contextElement;
707
696
  }
708
- function $n(e) {
709
- let t = Qn(e);
710
- if (!Mn(t)) return qt(1);
711
- let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Zn(t), o = (a ? Kt(n.width) : n.width) / r, s = (a ? Kt(n.height) : n.height) / i;
697
+ function Zn(e) {
698
+ let t = Xn(e);
699
+ if (!An(t)) return Gt(1);
700
+ let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Yn(t), o = (a ? Wt(n.width) : n.width) / r, s = (a ? Wt(n.height) : n.height) / i;
712
701
  return o && Number.isFinite(o) || (o = 1), s && Number.isFinite(s) || (s = 1), {
713
702
  x: o,
714
703
  y: s
715
704
  };
716
705
  }
717
- var er = /*#__PURE__*/ qt(0);
718
- function tr(e) {
706
+ var Qn = /*#__PURE__*/ Gt(0);
707
+ function $n(e) {
719
708
  let t = Z(e);
720
- return !Un() || !t.visualViewport ? er : {
709
+ return !Vn() || !t.visualViewport ? Qn : {
721
710
  x: t.visualViewport.offsetLeft,
722
711
  y: t.visualViewport.offsetTop
723
712
  };
724
713
  }
725
- function nr(e, t, n) {
714
+ function er(e, t, n) {
726
715
  return t === void 0 && (t = !1), !!n && t && n === Z(e);
727
716
  }
728
- function rr(e, t, n, r) {
717
+ function tr(e, t, n, r) {
729
718
  t === void 0 && (t = !1), n === void 0 && (n = !1);
730
- let i = e.getBoundingClientRect(), a = Qn(e), o = qt(1);
731
- t && (r ? jn(r) && (o = $n(r)) : o = $n(e));
732
- let s = nr(a, n, r) ? tr(a) : qt(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;
719
+ let i = e.getBoundingClientRect(), a = Xn(e), o = Gt(1);
720
+ t && (r ? kn(r) && (o = Zn(r)) : o = Zn(e));
721
+ let s = er(a, n, r) ? $n(a) : Gt(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;
733
722
  if (a && r) {
734
- let e = Z(a), t = jn(r) ? Z(r) : r, n = e, i = Xn(n);
723
+ let e = Z(a), t = kn(r) ? Z(r) : r, n = e, i = Jn(n);
735
724
  for (; i && t !== n;) {
736
- let e = $n(i), t = i.getBoundingClientRect(), r = Gn(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
737
- c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = Z(i), i = Xn(n);
725
+ let e = Zn(i), t = i.getBoundingClientRect(), r = Un(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 = Z(i), i = Jn(n);
738
727
  }
739
728
  }
740
- return gn({
729
+ return mn({
741
730
  width: u,
742
731
  height: d,
743
732
  x: c,
744
733
  y: l
745
734
  });
746
735
  }
747
- function ir(e, t) {
748
- let n = Kn(e).scrollLeft;
749
- return t ? t.left + n : rr(kn(e)).left + n;
736
+ function nr(e, t) {
737
+ let n = Wn(e).scrollLeft;
738
+ return t ? t.left + n : tr(Dn(e)).left + n;
750
739
  }
751
- function ar(e, t) {
740
+ function rr(e, t) {
752
741
  let n = e.getBoundingClientRect();
753
742
  return {
754
- x: n.left + t.scrollLeft - ir(e, n),
743
+ x: n.left + t.scrollLeft - nr(e, n),
755
744
  y: n.top + t.scrollTop
756
745
  };
757
746
  }
758
- function or(e) {
759
- let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = kn(r), s = t ? In(t.floating) : !1;
747
+ function ir(e) {
748
+ let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = Dn(r), s = t ? Pn(t.floating) : !1;
760
749
  if (r === o || s && a) return n;
761
750
  let c = {
762
751
  scrollLeft: 0,
763
752
  scrollTop: 0
764
- }, l = qt(1), u = qt(0), d = Mn(r);
765
- if ((d || !a) && ((On(r) !== "body" || Pn(o)) && (c = Kn(r)), d)) {
766
- let e = rr(r);
767
- l = $n(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
753
+ }, l = Gt(1), u = Gt(0), d = An(r);
754
+ if ((d || !a) && ((En(r) !== "body" || Mn(o)) && (c = Wn(r)), d)) {
755
+ let e = tr(r);
756
+ l = Zn(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
768
757
  }
769
- let f = o && !d && !a ? ar(o, c) : qt(0);
758
+ let f = o && !d && !a ? rr(o, c) : Gt(0);
770
759
  return {
771
760
  width: n.width * l.x,
772
761
  height: n.height * l.y,
@@ -774,29 +763,29 @@ function or(e) {
774
763
  y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
775
764
  };
776
765
  }
777
- function sr(e) {
766
+ function ar(e) {
778
767
  return e.getClientRects ? Array.from(e.getClientRects()) : [];
779
768
  }
780
- function cr(e) {
781
- let t = Kn(e), n = e.ownerDocument.body, r = Gt(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = Gt(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft + ir(e), o = -t.scrollTop;
782
- return Gn(n).direction === "rtl" && (a += Gt(e.clientWidth, n.clientWidth) - r), {
769
+ function or(e) {
770
+ let t = Wn(e), n = e.ownerDocument.body, r = Ut(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = Ut(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft + nr(e), o = -t.scrollTop;
771
+ return Un(n).direction === "rtl" && (a += Ut(e.clientWidth, n.clientWidth) - r), {
783
772
  width: r,
784
773
  height: i,
785
774
  x: a,
786
775
  y: o
787
776
  };
788
777
  }
789
- var lr = 25;
790
- function ur(e, t, n) {
778
+ var sr = 25;
779
+ function cr(e, t, n) {
791
780
  n === void 0 && (n = "viewport");
792
- let r = n === "layoutViewport", i = Z(e), a = kn(e), o = i.visualViewport, s = a.clientWidth, c = a.clientHeight, l = 0, u = 0;
781
+ let r = n === "layoutViewport", i = Z(e), a = Dn(e), o = i.visualViewport, s = a.clientWidth, c = a.clientHeight, l = 0, u = 0;
793
782
  if (o) {
794
- let e = !Un() || t === "fixed";
783
+ let e = !Vn() || t === "fixed";
795
784
  r ? e || (l = -o.offsetLeft, u = -o.offsetTop) : (s = o.width, c = o.height, e && (l = o.offsetLeft, u = o.offsetTop));
796
785
  }
797
- if (ir(a) <= 0) {
786
+ if (nr(a) <= 0) {
798
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;
799
- o <= lr && (s -= o);
788
+ o <= sr && (s -= o);
800
789
  }
801
790
  return {
802
791
  width: s,
@@ -805,8 +794,8 @@ function ur(e, t, n) {
805
794
  y: u
806
795
  };
807
796
  }
808
- function dr(e, t) {
809
- let n = rr(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = $n(e);
797
+ function lr(e, t) {
798
+ let n = tr(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = Zn(e);
810
799
  return {
811
800
  width: e.clientWidth * a.x,
812
801
  height: e.clientHeight * a.y,
@@ -814,13 +803,13 @@ function dr(e, t) {
814
803
  y: r * a.y
815
804
  };
816
805
  }
817
- function fr(e, t, n) {
806
+ function ur(e, t, n) {
818
807
  let r;
819
- if (t === "viewport" || t === "layoutViewport") r = ur(e, n, t);
820
- else if (t === "document") r = cr(kn(e));
821
- else if (jn(t)) r = dr(t, n);
808
+ if (t === "viewport" || t === "layoutViewport") r = cr(e, n, t);
809
+ else if (t === "document") r = or(Dn(e));
810
+ else if (kn(t)) r = lr(t, n);
822
811
  else {
823
- let n = tr(e);
812
+ let n = $n(e);
824
813
  r = {
825
814
  x: t.x - n.x,
826
815
  y: t.y - n.y,
@@ -828,23 +817,23 @@ function fr(e, t, n) {
828
817
  height: t.height
829
818
  };
830
819
  }
831
- return gn(r);
820
+ return mn(r);
832
821
  }
833
- function pr(e, t) {
822
+ function dr(e, t) {
834
823
  let n = t.get(e);
835
824
  if (n) return n;
836
- let r = Yn(e, [], !1).filter((e) => jn(e) && On(e) !== "body"), i = null, a = Gn(e).position === "fixed", o = a ? qn(e) : e;
837
- for (; jn(o) && !Wn(o);) {
838
- let e = Gn(o), t = Vn(o), n = i ? i.position : a ? "fixed" : "";
839
- !t && (n === "fixed" || n === "absolute" && e.position === "static") ? r = r.filter((e) => e !== o) : i = e, o = qn(o);
825
+ let r = qn(e, [], !1).filter((e) => kn(e) && En(e) !== "body"), i = null, a = Un(e).position === "fixed", o = a ? Gn(e) : e;
826
+ for (; kn(o) && !Hn(o);) {
827
+ let e = Un(o), t = zn(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 = Gn(o);
840
829
  }
841
830
  return t.set(e, r), r;
842
831
  }
843
- function mr(e) {
844
- let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? In(t) ? [] : pr(t, this._c) : [].concat(n), r], o = fr(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
832
+ function fr(e) {
833
+ let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? Pn(t) ? [] : dr(t, this._c) : [].concat(n), r], o = ur(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
845
834
  for (let e = 1; e < a.length; e++) {
846
- let n = fr(t, a[e], i);
847
- s = Gt(n.top, s), c = Wt(n.right, c), l = Wt(n.bottom, l), u = Gt(n.left, u);
835
+ let n = ur(t, a[e], i);
836
+ s = Ut(n.top, s), c = Ht(n.right, c), l = Ht(n.bottom, l), u = Ut(n.left, u);
848
837
  }
849
838
  return {
850
839
  width: c - u,
@@ -853,24 +842,24 @@ function mr(e) {
853
842
  y: s
854
843
  };
855
844
  }
856
- function hr(e) {
857
- let { width: t, height: n } = Zn(e);
845
+ function pr(e) {
846
+ let { width: t, height: n } = Yn(e);
858
847
  return {
859
848
  width: t,
860
849
  height: n
861
850
  };
862
851
  }
863
- function gr(e, t, n) {
864
- let r = Mn(t), i = kn(t), a = n === "fixed", o = rr(e, !0, a, t), s = {
852
+ function mr(e, t, n) {
853
+ let r = An(t), i = Dn(t), a = n === "fixed", o = tr(e, !0, a, t), s = {
865
854
  scrollLeft: 0,
866
855
  scrollTop: 0
867
- }, c = qt(0);
868
- if ((r || !a) && ((On(t) !== "body" || Pn(i)) && (s = Kn(t)), r)) {
869
- let e = rr(t, !0, a, t);
856
+ }, c = Gt(0);
857
+ if ((r || !a) && ((En(t) !== "body" || Mn(i)) && (s = Wn(t)), r)) {
858
+ let e = tr(t, !0, a, t);
870
859
  c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
871
860
  }
872
- !r && i && (c.x = ir(i));
873
- let l = i && !r && !a ? ar(i, s) : qt(0);
861
+ !r && i && (c.x = nr(i));
862
+ let l = i && !r && !a ? rr(i, s) : Gt(0);
874
863
  return {
875
864
  x: o.left + s.scrollLeft - c.x - l.x,
876
865
  y: o.top + s.scrollTop - c.y - l.y,
@@ -878,34 +867,34 @@ function gr(e, t, n) {
878
867
  height: o.height
879
868
  };
880
869
  }
881
- function _r(e) {
882
- return Gn(e).position === "static";
870
+ function hr(e) {
871
+ return Un(e).position === "static";
883
872
  }
884
- function vr(e, t) {
885
- if (!Mn(e) || Gn(e).position === "fixed") return null;
873
+ function gr(e, t) {
874
+ if (!An(e) || Un(e).position === "fixed") return null;
886
875
  if (t) return t(e);
887
876
  let n = e.offsetParent;
888
- return kn(e) === n && (n = n.ownerDocument.body), n;
877
+ return Dn(e) === n && (n = n.ownerDocument.body), n;
889
878
  }
890
- function yr(e, t) {
879
+ function _r(e, t) {
891
880
  let n = Z(e);
892
- if (In(e)) return n;
893
- if (!Mn(e)) {
894
- let t = qn(e);
895
- for (; t && !Wn(t);) {
896
- if (jn(t) && !_r(t)) return t;
897
- t = qn(t);
881
+ if (Pn(e)) return n;
882
+ if (!An(e)) {
883
+ let t = Gn(e);
884
+ for (; t && !Hn(t);) {
885
+ if (kn(t) && !hr(t)) return t;
886
+ t = Gn(t);
898
887
  }
899
888
  return n;
900
889
  }
901
- let r = vr(e, t);
902
- for (; r && Fn(r) && _r(r);) r = vr(r, t);
903
- return r && Wn(r) && _r(r) && !Vn(r) ? n : r || Hn(e) || n;
890
+ let r = gr(e, t);
891
+ for (; r && Nn(r) && hr(r);) r = gr(r, t);
892
+ return r && Hn(r) && hr(r) && !zn(r) ? n : r || Bn(e) || n;
904
893
  }
905
- var br = async function(e) {
906
- let t = this.getOffsetParent || yr, n = this.getDimensions, r = await n(e.floating);
894
+ var vr = async function(e) {
895
+ let t = this.getOffsetParent || _r, n = this.getDimensions, r = await n(e.floating);
907
896
  return {
908
- reference: gr(e.reference, await t(e.floating), e.strategy),
897
+ reference: mr(e.reference, await t(e.floating), e.strategy),
909
898
  floating: {
910
899
  x: 0,
911
900
  y: 0,
@@ -914,76 +903,76 @@ var br = async function(e) {
914
903
  }
915
904
  };
916
905
  };
917
- function xr(e) {
918
- return Gn(e).direction === "rtl";
919
- }
920
- var Sr = {
921
- convertOffsetParentRelativeRectToViewportRelativeRect: or,
922
- getDocumentElement: kn,
923
- getClippingRect: mr,
924
- getOffsetParent: yr,
925
- getElementRects: br,
926
- getClientRects: sr,
927
- getDimensions: hr,
928
- getScale: $n,
929
- isElement: jn,
930
- isRTL: xr
931
- }, Cr = Tn, wr = En, Tr = Sn, Er = xn, Dr = (e, t, n) => {
906
+ function yr(e) {
907
+ return Un(e).direction === "rtl";
908
+ }
909
+ var br = {
910
+ convertOffsetParentRelativeRectToViewportRelativeRect: ir,
911
+ getDocumentElement: Dn,
912
+ getClippingRect: fr,
913
+ getOffsetParent: _r,
914
+ getElementRects: vr,
915
+ getClientRects: ar,
916
+ getDimensions: pr,
917
+ getScale: Zn,
918
+ isElement: kn,
919
+ isRTL: yr
920
+ }, xr = Cn, Sr = wn, Cr = bn, wr = yn, Tr = (e, t, n) => {
932
921
  let r = /* @__PURE__ */ new Map(), i = n ?? {}, a = {
933
- ...Sr,
922
+ ...br,
934
923
  ...i.platform,
935
924
  _c: r
936
925
  };
937
- return bn(e, t, {
926
+ return vn(e, t, {
938
927
  ...i,
939
928
  platform: a
940
929
  });
941
930
  };
942
931
  // ../../node_modules/.pnpm/@floating-ui+vue@2.0.1_vue@3.5.44_typescript@6.0.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs
943
- function Or(e) {
932
+ function Er(e) {
944
933
  return typeof e == "object" && !!e && "$el" in e;
945
934
  }
946
- function kr(e) {
947
- if (Or(e)) {
935
+ function Dr(e) {
936
+ if (Er(e)) {
948
937
  let t = e.$el;
949
- return An(t) && On(t) === "#comment" ? null : t;
938
+ return On(t) && En(t) === "#comment" ? null : t;
950
939
  }
951
940
  return e;
952
941
  }
953
- function Ar(e) {
942
+ function Or(e) {
954
943
  return {
955
944
  name: "arrow",
956
945
  options: e,
957
946
  fn(t) {
958
- let n = kr(pt(e.element));
959
- return n == null ? {} : Er({
947
+ let n = Dr(pt(e.element));
948
+ return n == null ? {} : wr({
960
949
  element: n,
961
950
  padding: e.padding
962
951
  }).fn(t);
963
952
  }
964
953
  };
965
954
  }
966
- function jr(e) {
955
+ function kr(e) {
967
956
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
968
957
  }
969
- function Mr(e, t) {
970
- let n = jr(e);
958
+ function Ar(e, t) {
959
+ let n = kr(e);
971
960
  return Math.round(t * n) / n;
972
961
  }
973
- function Nr(e, t, n) {
962
+ function jr(e, t, n) {
974
963
  n === void 0 && (n = {});
975
- let r = n.whileElementsMounted, i = N(() => pt(n.open) ?? !0), a = N(() => pt(n.middleware)), o = N(() => pt(n.placement) ?? "bottom"), s = N(() => pt(n.strategy) ?? "absolute"), c = N(() => pt(n.transform) ?? !0), l = N(() => kr(e.value)), u = N(() => kr(t.value)), d = U(0), f = U(0), p = U(s.value), m = U(o.value), h = ft({}), g = U(!1), _ = N(() => {
964
+ let r = n.whileElementsMounted, i = M(() => pt(n.open) ?? !0), a = M(() => pt(n.middleware)), o = M(() => pt(n.placement) ?? "bottom"), s = M(() => pt(n.strategy) ?? "absolute"), c = M(() => pt(n.transform) ?? !0), l = M(() => Dr(e.value)), u = M(() => Dr(t.value)), d = U(0), f = U(0), p = U(s.value), m = U(o.value), h = ft({}), g = U(!1), _ = M(() => {
976
965
  let e = {
977
966
  position: p.value,
978
967
  left: "0",
979
968
  top: "0"
980
969
  };
981
970
  if (!u.value) return e;
982
- let t = Mr(u.value, d.value), n = Mr(u.value, f.value);
971
+ let t = Ar(u.value, d.value), n = Ar(u.value, f.value);
983
972
  return c.value ? {
984
973
  ...e,
985
974
  transform: "translate(" + t + "px, " + n + "px)",
986
- ...jr(u.value) >= 1.5 && { willChange: "transform" }
975
+ ...kr(u.value) >= 1.5 && { willChange: "transform" }
987
976
  } : {
988
977
  position: p.value,
989
978
  left: t + "px",
@@ -993,7 +982,7 @@ function Nr(e, t, n) {
993
982
  function y() {
994
983
  if (l.value == null || u.value == null) return;
995
984
  let e = i.value;
996
- Dr(l.value, u.value, {
985
+ Tr(l.value, u.value, {
997
986
  middleware: a.value,
998
987
  placement: o.value,
999
988
  strategy: s.value
@@ -1015,7 +1004,7 @@ function Nr(e, t, n) {
1015
1004
  o,
1016
1005
  s,
1017
1006
  i
1018
- ], y, { flush: "sync" }), Y([l, u], x, { flush: "sync" }), Y(i, S, { flush: "sync" }), Xe() && at(b), {
1007
+ ], y, { flush: "sync" }), Y([l, u], x, { flush: "sync" }), Y(i, S, { flush: "sync" }), Ze() && at(b), {
1019
1008
  x: dt(d),
1020
1009
  y: dt(f),
1021
1010
  strategy: dt(p),
@@ -1029,15 +1018,15 @@ function Nr(e, t, n) {
1029
1018
  // src/client/theme-default/utils/keys.ts
1030
1019
  var Q = /* @__PURE__ */ function(e) {
1031
1020
  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.Backslash = "\\", e;
1032
- }({}), Pr = { class: "td-kbd-shortcut" }, $ = /*#__PURE__*/ A(/* @__PURE__ */ B({
1021
+ }({}), Mr = { class: "td-kbd-shortcut" }, $ = /*#__PURE__*/ k(/* @__PURE__ */ z({
1033
1022
  __name: "TdKbdShortcut",
1034
1023
  props: { keys: {} },
1035
1024
  setup(e) {
1036
1025
  let t = {
1037
- [Q.ArrowDown]: be,
1038
- [Q.ArrowUp]: fe,
1039
- [Q.ArrowLeft]: oe,
1040
- [Q.ArrowRight]: He,
1026
+ [Q.ArrowDown]: xe,
1027
+ [Q.ArrowUp]: pe,
1028
+ [Q.ArrowLeft]: se,
1029
+ [Q.ArrowRight]: Ue,
1041
1030
  [Q.Control]: Et,
1042
1031
  [Q.Meta]: Et,
1043
1032
  [Q.Alt]: Mt,
@@ -1049,18 +1038,18 @@ var Q = /* @__PURE__ */ function(e) {
1049
1038
  [Q.Escape]: "Esc",
1050
1039
  [Q.Tab]: "Tab",
1051
1040
  [Q.Backspace]: "⌫"
1052
- }, r = N(() => e.keys.map((e) => {
1041
+ }, r = M(() => e.keys.map((e) => {
1053
1042
  let r = t[e];
1054
1043
  if (r) return { icon: r };
1055
1044
  let i = n[e];
1056
1045
  return i ? { label: i } : { label: e.toUpperCase() };
1057
1046
  }));
1058
- return (e, t) => (H(), I("span", Pr, [(H(!0), I(M, null, W(r.value, (e, t) => (H(), I("kbd", { key: t }, [e.icon ? (H(), P(ut(e.icon), {
1047
+ return (e, t) => (H(), F("span", Mr, [(H(!0), F(j, null, W(r.value, (e, t) => (H(), F("kbd", { key: t }, [e.icon ? (H(), N(ut(e.icon), {
1059
1048
  key: 0,
1060
1049
  size: 12
1061
- })) : (H(), I(M, { key: 1 }, [R(K(e.label), 1)], 64))]))), 128))]));
1050
+ })) : (H(), F(j, { key: 1 }, [L(K(e.label), 1)], 64))]))), 128))]));
1062
1051
  }
1063
- }), [["__scopeId", "data-v-ad94203e"]]), Fr = /*#__PURE__*/ A(/* @__PURE__ */ B({
1052
+ }), [["__scopeId", "data-v-ad94203e"]]), Nr = /*#__PURE__*/ k(/* @__PURE__ */ z({
1064
1053
  inheritAttrs: !1,
1065
1054
  __name: "TdTooltip",
1066
1055
  props: {
@@ -1073,13 +1062,13 @@ var Q = /* @__PURE__ */ function(e) {
1073
1062
  shortcut: { default: () => void 0 }
1074
1063
  },
1075
1064
  setup(e) {
1076
- let t = J("trigger"), n = J("tooltip"), r = J("arrowEl"), i = U(!1), a, o, { floatingStyles: s, middlewareData: c, placement: l } = Nr(t, n, {
1065
+ let t = J("trigger"), n = J("tooltip"), r = J("arrowEl"), i = U(!1), a, o, { floatingStyles: s, middlewareData: c, placement: l } = jr(t, n, {
1077
1066
  placement: e.placement,
1078
1067
  middleware: [
1079
- Cr(8),
1080
- Tr(),
1081
- wr({ padding: 8 }),
1082
- Ar({ element: r })
1068
+ xr(8),
1069
+ Cr(),
1070
+ Sr({ padding: 8 }),
1071
+ Or({ element: r })
1083
1072
  ]
1084
1073
  });
1085
1074
  function u() {
@@ -1097,33 +1086,33 @@ var Q = /* @__PURE__ */ function(e) {
1097
1086
  i.value = !1;
1098
1087
  }, 100);
1099
1088
  }
1100
- return (r, a) => (H(), I(M, null, [L("span", et({
1089
+ return (r, a) => (H(), F(j, null, [I("span", tt({
1101
1090
  ref_key: "trigger",
1102
1091
  ref: t
1103
1092
  }, r.$attrs, {
1104
1093
  class: "td-tooltip-trigger",
1105
1094
  onMouseenter: d,
1106
1095
  onMouseleave: f
1107
- }), [G(r.$slots, "default", {}, void 0, !0)], 16), (H(), P(Je, { to: "body" }, [i.value ? (H(), I("div", {
1096
+ }), [G(r.$slots, "default", {}, void 0, !0)], 16), (H(), N(Ye, { to: "body" }, [i.value ? (H(), F("div", {
1108
1097
  key: 0,
1109
1098
  ref_key: "tooltip",
1110
1099
  ref: n,
1111
1100
  class: "td-tooltip",
1112
- style: nt(q(s)),
1101
+ style: V(q(s)),
1113
1102
  role: "tooltip",
1114
1103
  onMouseenter: u,
1115
1104
  onMouseleave: f
1116
1105
  }, [
1117
- R(K(e.text) + " ", 1),
1118
- e.shortcut ? (H(), P($, {
1106
+ L(K(e.text) + " ", 1),
1107
+ e.shortcut ? (H(), N($, {
1119
1108
  key: 0,
1120
1109
  keys: e.shortcut,
1121
1110
  class: "td-tooltip-shortcut"
1122
- }, null, 8, ["keys"])) : F("", !0),
1123
- L("div", {
1111
+ }, null, 8, ["keys"])) : P("", !0),
1112
+ I("div", {
1124
1113
  ref: "arrowEl",
1125
1114
  class: "td-tooltip-arrow",
1126
- style: nt({
1115
+ style: V({
1127
1116
  left: q(c).arrow?.x === void 0 ? "" : `${q(c).arrow.x}px`,
1128
1117
  top: q(c).arrow?.y === void 0 ? "" : `${q(c).arrow.y}px`,
1129
1118
  ...q(l).startsWith("bottom") ? { top: "-4px" } : {},
@@ -1132,9 +1121,26 @@ var Q = /* @__PURE__ */ function(e) {
1132
1121
  ...q(l).startsWith("left") ? { right: "-4px" } : {}
1133
1122
  })
1134
1123
  }, null, 4)
1135
- ], 36)) : F("", !0)]))], 64));
1124
+ ], 36)) : P("", !0)]))], 64));
1136
1125
  }
1137
- }), [["__scopeId", "data-v-db48de27"]]);
1126
+ }), [["__scopeId", "data-v-db48de27"]]), Pr = ["aria-label"], Fr = /*#__PURE__*/ k(/* @__PURE__ */ z({
1127
+ __name: "TdButton",
1128
+ props: { label: {} },
1129
+ setup(e) {
1130
+ return (t, n) => (H(), N(Nr, {
1131
+ always: !!e.label,
1132
+ text: e.label,
1133
+ placement: "bottom"
1134
+ }, {
1135
+ default: X(() => [I("button", {
1136
+ type: "button",
1137
+ class: "td-icon-btn",
1138
+ "aria-label": e.label
1139
+ }, [G(t.$slots, "default", {}, void 0, !0)], 8, Pr)]),
1140
+ _: 3
1141
+ }, 8, ["always", "text"]));
1142
+ }
1143
+ }), [["__scopeId", "data-v-94181c7e"]]);
1138
1144
  // src/client/theme-default/utils/renderInlineMarkup.ts
1139
1145
  function Ir(e) {
1140
1146
  let t = U(Lr(e()));
@@ -1147,48 +1153,48 @@ function Ir(e) {
1147
1153
  let i = !0;
1148
1154
  n(() => {
1149
1155
  i = !1;
1150
- }), import("../renderMath-CJKXI63h.js").then(({ renderInlineMarkup: e }) => {
1156
+ }), import("../renderMath-e3scuxfY.js").then(({ renderInlineMarkup: e }) => {
1151
1157
  i && (t.value = e(r));
1152
1158
  });
1153
1159
  }), t;
1154
1160
  }
1155
1161
  function Lr(e) {
1156
1162
  let t = 0, n = "";
1157
- for (let r of e.matchAll(qe)) n += f(e.slice(t, r.index)), r[1] === void 0 ? n += f(r[0]) : n += `<code>${f(r[1])}</code>`, t = r.index + r[0].length;
1163
+ for (let r of e.matchAll(Je)) n += f(e.slice(t, r.index)), r[1] === void 0 ? n += f(r[0]) : n += `<code>${f(r[1])}</code>`, t = r.index + r[0].length;
1158
1164
  return n += f(e.slice(t)), n;
1159
1165
  }
1160
1166
  // src/client/theme-default/components/TdTree/TdTreeNodeLabel.vue?vue&type=script&setup=true&lang.ts
1161
- var Rr = ["innerHTML"], zr = /* @__PURE__ */ B({
1167
+ var Rr = ["innerHTML"], zr = /* @__PURE__ */ z({
1162
1168
  __name: "TdTreeNodeLabel",
1163
1169
  props: { text: {} },
1164
1170
  setup(e) {
1165
1171
  let t = Ir(() => e.text);
1166
- return (e, n) => (H(), I("span", { innerHTML: q(t) }, null, 8, Rr));
1172
+ return (e, n) => (H(), F("span", { innerHTML: q(t) }, null, 8, Rr));
1167
1173
  }
1168
1174
  }), Br = ["aria-expanded"], Vr = { class: "td-tree-label-text" }, Hr = ["href"], Ur = { class: "td-tree-count" }, Wr = ["href"], Gr = ["href"], Kr = {
1169
1175
  key: 2,
1170
1176
  class: "td-tree-time"
1171
- }, qr = 10, Jr = /*#__PURE__*/ A(/* @__PURE__ */ B({
1177
+ }, qr = 10, Jr = /*#__PURE__*/ k(/* @__PURE__ */ z({
1172
1178
  __name: "TdTreeNode",
1173
1179
  props: {
1174
1180
  node: {},
1175
1181
  urlPrefix: { default: "" }
1176
1182
  },
1177
1183
  setup(n) {
1178
- let r = Ie(), { withBase: i } = j(), a = N(() => w(n.urlPrefix, n.node.name)), o = N(() => l(n.node)), f = N(() => o.value ? t(o.value.filepath) : s(a.value)), p = N(() => i(f.value)), m = N(() => o.value?.label ?? c(n.node.name)), h = N(() => o.value?.icon ? Le(o.value.icon.name) : void 0), g = N(() => n.node.entries.filter((e) => e.kind === "dir" || !d(e.item.filepath))), _ = N(() => 0 < n.node.entries.length), v = N(() => y(n.node));
1184
+ let r = Le(), { withBase: i } = A(), a = M(() => w(n.urlPrefix, n.node.name)), o = M(() => l(n.node)), f = M(() => o.value ? t(o.value.filepath) : s(a.value)), p = M(() => i(f.value)), m = M(() => o.value?.label ?? c(n.node.name)), h = M(() => o.value?.icon ? Re(o.value.icon.name) : void 0), g = M(() => n.node.entries.filter((e) => e.kind === "dir" || !d(e.item.filepath))), _ = M(() => 0 < n.node.entries.length), v = M(() => y(n.node));
1179
1185
  function y(e) {
1180
1186
  let t = 0;
1181
1187
  for (let n of e.entries) n.kind === "file" ? t++ : t += y(n.node);
1182
1188
  return t;
1183
1189
  }
1184
- let b = U(!e(a.value, r.path)), x = U(!1), S = N(() => g.value.filter((e) => e.kind === "file")), C = N(() => S.value.length), E = N(() => {
1190
+ let b = U(!e(a.value, r.path)), x = U(!1), S = M(() => g.value.filter((e) => e.kind === "file")), C = M(() => S.value.length), E = M(() => {
1185
1191
  let e = 0;
1186
1192
  for (let n of g.value) if (n.kind === "file") {
1187
1193
  if (t(n.item.filepath) === r.path) return e;
1188
1194
  e++;
1189
1195
  }
1190
1196
  return -1;
1191
- }), ee = N(() => {
1197
+ }), ee = M(() => {
1192
1198
  if (C.value <= qr) return {
1193
1199
  start: 0,
1194
1200
  end: C.value
@@ -1203,7 +1209,7 @@ var Rr = ["innerHTML"], zr = /* @__PURE__ */ B({
1203
1209
  start: t,
1204
1210
  end: n
1205
1211
  };
1206
- }), te = N(() => x.value ? 0 : ee.value.start), D = N(() => x.value ? 0 : Math.max(0, C.value - ee.value.end)), ne = N(() => {
1212
+ }), te = M(() => x.value ? 0 : ee.value.start), D = M(() => x.value ? 0 : Math.max(0, C.value - ee.value.end)), ne = M(() => {
1207
1213
  if (x.value) return g.value;
1208
1214
  let { start: e, end: t } = ee.value, n = 0;
1209
1215
  return g.value.filter((r) => {
@@ -1224,101 +1230,101 @@ var Rr = ["innerHTML"], zr = /* @__PURE__ */ B({
1224
1230
  function ae(e) {
1225
1231
  e.key === "ArrowRight" && b.value ? (b.value = !1, e.preventDefault()) : e.key === "ArrowLeft" && !b.value && (b.value = !0, e.preventDefault());
1226
1232
  }
1227
- function O() {
1233
+ function oe() {
1228
1234
  b.value = !b.value;
1229
1235
  }
1230
1236
  return (e, n) => {
1231
1237
  let r = lt("TdTreeNode", !0);
1232
- return _.value ? (H(), I("div", {
1238
+ return _.value ? (H(), F("div", {
1233
1239
  key: 0,
1234
1240
  class: "td-tree-node",
1235
1241
  role: "treeitem",
1236
1242
  "aria-expanded": !b.value
1237
- }, [L("div", {
1243
+ }, [I("div", {
1238
1244
  class: "td-tree-label",
1239
1245
  role: "button",
1240
1246
  tabindex: "0",
1241
- onClick: O,
1247
+ onClick: oe,
1242
1248
  onKeydown: ae
1243
1249
  }, [
1244
- z(q(ue), {
1250
+ R(q(de), {
1245
1251
  size: 14,
1246
- class: V(["td-tree-caret", { "is-collapsed": b.value }])
1252
+ class: B(["td-tree-caret", { "is-collapsed": b.value }])
1247
1253
  }, null, 8, ["class"]),
1248
- L("span", Vr, K(m.value), 1),
1249
- z(Fr, {
1254
+ I("span", Vr, K(m.value), 1),
1255
+ R(Nr, {
1250
1256
  text: "Open index page",
1251
1257
  always: ""
1252
1258
  }, {
1253
- default: X(() => [L("a", {
1259
+ default: X(() => [I("a", {
1254
1260
  href: p.value,
1255
- class: V(["td-tree-index-btn", { "is-active": ie(f.value) }]),
1261
+ class: B(["td-tree-index-btn", { "is-active": ie(f.value) }]),
1256
1262
  onClick: n[0] ||= bt(() => {}, ["stop"])
1257
- }, [h.value ? (H(), P(ut(h.value), {
1263
+ }, [h.value ? (H(), N(ut(h.value), {
1258
1264
  key: 0,
1259
1265
  size: 12
1260
- })) : ie(f.value) ? (H(), P(q(kt), {
1266
+ })) : ie(f.value) ? (H(), N(q(kt), {
1261
1267
  key: 1,
1262
1268
  size: 12
1263
- })) : (H(), P(q(ce), {
1269
+ })) : (H(), N(q(le), {
1264
1270
  key: 2,
1265
1271
  size: 12
1266
1272
  }))], 10, Hr)]),
1267
1273
  _: 1
1268
1274
  }),
1269
- L("span", Ur, K(v.value), 1)
1270
- ], 32), L("div", {
1271
- class: V(["td-collapse td-tree-children", { "is-collapsed": b.value }]),
1275
+ I("span", Ur, K(v.value), 1)
1276
+ ], 32), I("div", {
1277
+ class: B(["td-collapse td-tree-children", { "is-collapsed": b.value }]),
1272
1278
  role: "group"
1273
- }, [L("div", null, [
1274
- o.value ? (H(), I("a", {
1279
+ }, [I("div", null, [
1280
+ o.value ? (H(), F("a", {
1275
1281
  key: 0,
1276
1282
  href: p.value,
1277
- class: V(["td-tree-link td-tree-index-entry", { "is-active": ie(f.value) }])
1278
- }, [z(q(de), {
1283
+ class: B(["td-tree-link td-tree-index-entry", { "is-active": ie(f.value) }])
1284
+ }, [R(q(fe), {
1279
1285
  size: 14,
1280
1286
  class: "td-tree-file-icon"
1281
- }), n[1] ||= L("span", { class: "td-tree-link-text" }, "Overview", -1)], 10, Wr)) : F("", !0),
1282
- te.value > 0 ? (H(), I("button", {
1287
+ }), n[1] ||= I("span", { class: "td-tree-link-text" }, "Overview", -1)], 10, Wr)) : P("", !0),
1288
+ te.value > 0 ? (H(), F("button", {
1283
1289
  key: 1,
1284
1290
  class: "td-tree-more",
1285
1291
  type: "button",
1286
1292
  onClick: re
1287
- }, K(te.value) + " more... ", 1)) : F("", !0),
1288
- (H(!0), I(M, null, W(ne.value, (e) => (H(), I(M, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (H(), P(r, {
1293
+ }, K(te.value) + " more... ", 1)) : P("", !0),
1294
+ (H(!0), F(j, null, W(ne.value, (e) => (H(), F(j, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (H(), N(r, {
1289
1295
  key: 0,
1290
1296
  node: e.node,
1291
1297
  "url-prefix": a.value
1292
- }, null, 8, ["node", "url-prefix"])) : (H(), I("a", {
1298
+ }, null, 8, ["node", "url-prefix"])) : (H(), F("a", {
1293
1299
  key: 1,
1294
1300
  href: q(i)(q(t)(e.item.filepath)),
1295
- class: V(["td-tree-link", { "is-active": ie(q(t)(e.item.filepath)) }])
1301
+ class: B(["td-tree-link", { "is-active": ie(q(t)(e.item.filepath)) }])
1296
1302
  }, [
1297
- e.item.icon && q(Le)(e.item.icon.name) ? (H(), P(ut(q(Le)(e.item.icon.name)), {
1303
+ e.item.icon && q(Re)(e.item.icon.name) ? (H(), N(ut(q(Re)(e.item.icon.name)), {
1298
1304
  key: 0,
1299
1305
  size: 14,
1300
1306
  class: "td-tree-file-icon"
1301
- })) : (H(), P(q(he), {
1307
+ })) : (H(), N(q(ge), {
1302
1308
  key: 1,
1303
1309
  size: 14,
1304
1310
  class: "td-tree-file-icon"
1305
1311
  })),
1306
- z(Fr, {
1312
+ R(Nr, {
1307
1313
  class: "td-tree-link-text",
1308
1314
  text: q(T)(e.item.filepath, e.item.label)
1309
1315
  }, {
1310
- default: X(() => [z(zr, { text: q(T)(e.item.filepath, e.item.label) }, null, 8, ["text"])]),
1316
+ default: X(() => [R(zr, { text: q(T)(e.item.filepath, e.item.label) }, null, 8, ["text"])]),
1311
1317
  _: 2
1312
1318
  }, 1032, ["text"]),
1313
- e.item.fileMetadata ? (H(), I("span", Kr, K(q(u)(e.item.fileMetadata.mtimeSecs)), 1)) : F("", !0)
1319
+ e.item.fileMetadata ? (H(), F("span", Kr, K(q(u)(e.item.fileMetadata.mtimeSecs)), 1)) : P("", !0)
1314
1320
  ], 10, Gr))], 64))), 128)),
1315
- D.value > 0 ? (H(), I("button", {
1321
+ D.value > 0 ? (H(), F("button", {
1316
1322
  key: 2,
1317
1323
  class: "td-tree-more",
1318
1324
  type: "button",
1319
1325
  onClick: re
1320
- }, K(D.value) + " more... ", 1)) : F("", !0)
1321
- ])], 2)], 8, Br)) : F("", !0);
1326
+ }, K(D.value) + " more... ", 1)) : P("", !0)
1327
+ ])], 2)], 8, Br)) : P("", !0);
1322
1328
  };
1323
1329
  }
1324
1330
  }), [["__scopeId", "data-v-f9c9c250"]]), Yr = {
@@ -1330,66 +1336,66 @@ var Rr = ["innerHTML"], zr = /* @__PURE__ */ B({
1330
1336
  }, $r = ["href"], ei = { class: "td-root-link-text" }, ti = {
1331
1337
  key: 2,
1332
1338
  class: "td-root-link-time"
1333
- }, ni = /*#__PURE__*/ A(/* @__PURE__ */ B({
1339
+ }, ni = /*#__PURE__*/ k(/* @__PURE__ */ z({
1334
1340
  __name: "TdContentNav",
1335
1341
  props: { tree: {} },
1336
1342
  setup(e) {
1337
- let n = Ie(), { withBase: r } = j(), i = N(() => e.tree.entries.find((e) => e.kind === "file" && d(e.item.filepath))?.item), a = N(() => e.tree.entries.filter((e) => e.kind === "dir" || !d(e.item.filepath)));
1343
+ let n = Le(), { withBase: r } = A(), i = M(() => e.tree.entries.find((e) => e.kind === "file" && d(e.item.filepath))?.item), a = M(() => e.tree.entries.filter((e) => e.kind === "dir" || !d(e.item.filepath)));
1338
1344
  function o(e) {
1339
1345
  return n.path === e;
1340
1346
  }
1341
- return (e, n) => (H(), I("nav", Yr, [L("div", Xr, [L("a", {
1347
+ return (e, n) => (H(), F("nav", Yr, [I("div", Xr, [I("a", {
1342
1348
  href: q(r)(i.value ? q(t)(i.value.filepath) : q(s)("/")),
1343
- class: V(["td-root-link", { "is-active": o(i.value ? q(t)(i.value.filepath) : q(s)("/")) }]),
1349
+ class: B(["td-root-link", { "is-active": o(i.value ? q(t)(i.value.filepath) : q(s)("/")) }]),
1344
1350
  role: "treeitem"
1345
1351
  }, [
1346
- z(q(le), {
1352
+ R(q(ue), {
1347
1353
  size: 14,
1348
1354
  class: "td-root-link-icon"
1349
1355
  }),
1350
- n[0] ||= L("span", { class: "td-root-link-text" }, "Overview", -1),
1351
- i.value ? (H(), I("span", Qr, K(i.value.fileMetadata ? q(u)(i.value.fileMetadata.mtimeSecs) : ""), 1)) : F("", !0)
1352
- ], 10, Zr), (H(!0), I(M, null, W(a.value, (e) => (H(), I(M, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (H(), P(Jr, {
1356
+ n[0] ||= I("span", { class: "td-root-link-text" }, "Overview", -1),
1357
+ i.value ? (H(), F("span", Qr, K(i.value.fileMetadata ? q(u)(i.value.fileMetadata.mtimeSecs) : ""), 1)) : P("", !0)
1358
+ ], 10, Zr), (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(Jr, {
1353
1359
  key: 0,
1354
1360
  node: e.node
1355
- }, null, 8, ["node"])) : (H(), I("a", {
1361
+ }, null, 8, ["node"])) : (H(), F("a", {
1356
1362
  key: 1,
1357
1363
  href: q(r)(q(t)(e.item.filepath)),
1358
- class: V(["td-root-link", { "is-active": o(q(t)(e.item.filepath)) }]),
1364
+ class: B(["td-root-link", { "is-active": o(q(t)(e.item.filepath)) }]),
1359
1365
  role: "treeitem"
1360
1366
  }, [
1361
- e.item.icon && q(Le)(e.item.icon.name) ? (H(), P(ut(q(Le)(e.item.icon.name)), {
1367
+ e.item.icon && q(Re)(e.item.icon.name) ? (H(), N(ut(q(Re)(e.item.icon.name)), {
1362
1368
  key: 0,
1363
1369
  size: 14,
1364
1370
  class: "td-root-link-icon"
1365
- })) : (H(), P(q(he), {
1371
+ })) : (H(), N(q(ge), {
1366
1372
  key: 1,
1367
1373
  size: 14,
1368
1374
  class: "td-root-link-icon"
1369
1375
  })),
1370
- L("span", ei, K(q(T)(e.item.filepath, e.item.label)), 1),
1371
- e.item.fileMetadata ? (H(), I("span", ti, K(q(u)(e.item.fileMetadata.mtimeSecs)), 1)) : F("", !0)
1376
+ I("span", ei, K(q(T)(e.item.filepath, e.item.label)), 1),
1377
+ e.item.fileMetadata ? (H(), F("span", ti, K(q(u)(e.item.fileMetadata.mtimeSecs)), 1)) : P("", !0)
1372
1378
  ], 10, $r))], 64))), 128))])]));
1373
1379
  }
1374
- }), [["__scopeId", "data-v-038de594"]]), ri = { class: "td-footer" }, ii = { key: 0 }, ai = /*#__PURE__*/ A(/* @__PURE__ */ B({
1380
+ }), [["__scopeId", "data-v-038de594"]]), ri = { class: "td-footer" }, ii = { key: 0 }, ai = /*#__PURE__*/ k(/* @__PURE__ */ z({
1375
1381
  __name: "TdFooter",
1376
1382
  setup(e) {
1377
- let t = j(), n = (/* @__PURE__ */ new Date()).getFullYear();
1378
- return (e, r) => (H(), I("footer", ri, [r[0] ||= L("span", null, [R(" Powered by "), L("a", {
1383
+ let t = A(), n = (/* @__PURE__ */ new Date()).getFullYear();
1384
+ return (e, r) => (H(), F("footer", ri, [r[0] ||= I("span", null, [L(" Powered by "), I("a", {
1379
1385
  href: "https://github.com/huydo862003/typerighter",
1380
1386
  target: "_blank",
1381
1387
  rel: "noopener noreferrer",
1382
1388
  class: "td-footer-link"
1383
- }, "Typerighter")], -1), q(t).author || q(t).license ? (H(), I("span", ii, [
1384
- q(t).license ? (H(), I(M, { key: 0 }, [R(K(q(t).license), 1)], 64)) : F("", !0),
1385
- q(t).license && q(t).author ? (H(), I(M, { key: 1 }, [R(" · ")], 64)) : F("", !0),
1386
- q(t).author ? (H(), I(M, { key: 2 }, [R("© " + K(q(n)) + " " + K(q(t).author), 1)], 64)) : F("", !0)
1387
- ])) : F("", !0)]));
1389
+ }, "Typerighter")], -1), q(t).author || q(t).license ? (H(), F("span", ii, [
1390
+ q(t).license ? (H(), F(j, { key: 0 }, [L(K(q(t).license), 1)], 64)) : P("", !0),
1391
+ q(t).license && q(t).author ? (H(), F(j, { key: 1 }, [L(" · ")], 64)) : P("", !0),
1392
+ q(t).author ? (H(), F(j, { key: 2 }, [L("© " + K(q(n)) + " " + K(q(t).author), 1)], 64)) : P("", !0)
1393
+ ])) : P("", !0)]));
1388
1394
  }
1389
1395
  }), [["__scopeId", "data-v-696804f8"]]), oi = {
1390
1396
  key: 0,
1391
1397
  class: "td-dropdown-panel"
1392
- }, si = /*#__PURE__*/ A(/* @__PURE__ */ B({
1398
+ }, si = /*#__PURE__*/ k(/* @__PURE__ */ z({
1393
1399
  inheritAttrs: !1,
1394
1400
  __name: "TdDropdown",
1395
1401
  props: {
@@ -1412,10 +1418,10 @@ var Rr = ["innerHTML"], zr = /* @__PURE__ */ B({
1412
1418
  typeof document < "u" && (e ? document.addEventListener("click", r) : document.removeEventListener("click", r));
1413
1419
  }), ot(() => {
1414
1420
  typeof document < "u" && document.removeEventListener("click", r);
1415
- }), (e, r) => (H(), I("span", et({
1421
+ }), (e, r) => (H(), F("span", tt({
1416
1422
  ref_key: "wrapper",
1417
1423
  ref: n
1418
- }, e.$attrs, { class: "td-dropdown" }), [L("span", { onClick: i }, [G(e.$slots, "trigger", {}, void 0, !0)]), t.value ? (H(), I("div", oi, [G(e.$slots, "default", {}, void 0, !0)])) : F("", !0)], 16));
1424
+ }, e.$attrs, { class: "td-dropdown" }), [I("span", { onClick: i }, [G(e.$slots, "trigger", {}, void 0, !0)]), t.value ? (H(), F("div", oi, [G(e.$slots, "default", {}, void 0, !0)])) : P("", !0)], 16));
1419
1425
  }
1420
1426
  }), [["__scopeId", "data-v-645fe3f0"]]), ci = {
1421
1427
  class: "td-breadcrumb",
@@ -1429,10 +1435,10 @@ var Rr = ["innerHTML"], zr = /* @__PURE__ */ B({
1429
1435
  }, mi = ["href"], hi = {
1430
1436
  key: 1,
1431
1437
  class: "td-breadcrumb-current"
1432
- }, gi = 3, _i = /*#__PURE__*/ A(/* @__PURE__ */ B({
1438
+ }, gi = 3, _i = /*#__PURE__*/ k(/* @__PURE__ */ z({
1433
1439
  __name: "TdBreadcrumb",
1434
1440
  setup(e) {
1435
- let t = Ie(), { withBase: n } = j(), i = U(!1), a = N(() => {
1441
+ let t = Le(), { withBase: n } = A(), i = U(!1), a = M(() => {
1436
1442
  let e = r(t.path), i = [{
1437
1443
  name: "Home",
1438
1444
  href: n(s("/"))
@@ -1447,45 +1453,45 @@ var Rr = ["innerHTML"], zr = /* @__PURE__ */ B({
1447
1453
  });
1448
1454
  }
1449
1455
  return i;
1450
- }), o = N(() => gi < a.value.length), l = N(() => a.value.slice(1, -2));
1456
+ }), o = M(() => gi < a.value.length), l = M(() => a.value.slice(1, -2));
1451
1457
  return Y(() => t.path, () => {
1452
1458
  i.value = !1;
1453
- }), (e, t) => (H(), I("nav", ci, [L("a", {
1459
+ }), (e, t) => (H(), F("nav", ci, [I("a", {
1454
1460
  href: a.value[0].href,
1455
1461
  class: "td-breadcrumb-link td-breadcrumb-home"
1456
- }, K(a.value[0].name), 9, li), o.value ? (H(), I(M, { key: 0 }, [
1457
- t[2] ||= L("span", {
1462
+ }, K(a.value[0].name), 9, li), o.value ? (H(), F(j, { key: 0 }, [
1463
+ t[2] ||= I("span", {
1458
1464
  class: "td-breadcrumb-sep",
1459
1465
  "aria-hidden": "true"
1460
1466
  }, "/", -1),
1461
- z(si, {
1467
+ R(si, {
1462
1468
  open: i.value,
1463
1469
  "onUpdate:open": t[0] ||= (e) => i.value = e
1464
1470
  }, {
1465
- trigger: X(() => [L("button", ui, [z(q(O), { size: 14 })])]),
1466
- default: X(() => [(H(!0), I(M, null, W(l.value, (e) => (H(), I("a", {
1471
+ trigger: X(() => [I("button", ui, [R(q(oe), { size: 14 })])]),
1472
+ default: X(() => [(H(!0), F(j, null, W(l.value, (e) => (H(), F("a", {
1467
1473
  key: e.href,
1468
1474
  href: e.href,
1469
1475
  class: "td-breadcrumb-dropdown-item"
1470
1476
  }, K(e.name), 9, di))), 128))]),
1471
1477
  _: 1
1472
1478
  }, 8, ["open"]),
1473
- (H(!0), I(M, null, W(a.value.slice(-2), (e) => (H(), I(M, { key: e.href }, [t[1] ||= L("span", {
1479
+ (H(!0), F(j, null, W(a.value.slice(-2), (e) => (H(), F(j, { key: e.href }, [t[1] ||= I("span", {
1474
1480
  class: "td-breadcrumb-sep",
1475
1481
  "aria-hidden": "true"
1476
- }, "/", -1), e === a.value[a.value.length - 1] ? (H(), I("span", pi, K(e.name), 1)) : (H(), I("a", {
1482
+ }, "/", -1), e === a.value[a.value.length - 1] ? (H(), F("span", pi, K(e.name), 1)) : (H(), F("a", {
1477
1483
  key: 0,
1478
1484
  href: e.href,
1479
1485
  class: "td-breadcrumb-link"
1480
1486
  }, K(e.name), 9, fi))], 64))), 128))
1481
- ], 64)) : (H(!0), I(M, { key: 1 }, W(a.value.slice(1), (e, n) => (H(), I(M, { key: e.href }, [t[3] ||= L("span", {
1487
+ ], 64)) : (H(!0), F(j, { key: 1 }, W(a.value.slice(1), (e, n) => (H(), F(j, { key: e.href }, [t[3] ||= I("span", {
1482
1488
  class: "td-breadcrumb-sep",
1483
1489
  "aria-hidden": "true"
1484
- }, "/", -1), n < a.value.length - 2 ? (H(), I("a", {
1490
+ }, "/", -1), n < a.value.length - 2 ? (H(), F("a", {
1485
1491
  key: 0,
1486
1492
  href: e.href,
1487
1493
  class: "td-breadcrumb-link"
1488
- }, K(e.name), 9, mi)) : (H(), I("span", hi, K(e.name), 1))], 64))), 128))]));
1494
+ }, K(e.name), 9, mi)) : (H(), F("span", hi, K(e.name), 1))], 64))), 128))]));
1489
1495
  }
1490
1496
  }), [["__scopeId", "data-v-89f87a49"]]), vi = {
1491
1497
  key: 0,
@@ -1494,31 +1500,31 @@ var Rr = ["innerHTML"], zr = /* @__PURE__ */ B({
1494
1500
  "href",
1495
1501
  "target",
1496
1502
  "rel"
1497
- ], bi = /*#__PURE__*/ A(/* @__PURE__ */ B({
1503
+ ], bi = /*#__PURE__*/ k(/* @__PURE__ */ z({
1498
1504
  __name: "TdHeaderNavBar",
1499
1505
  setup(e) {
1500
- let t = j(), { withBase: n } = t, r = Ie();
1506
+ let t = A(), { withBase: n } = t, r = Le();
1501
1507
  function i(e) {
1502
1508
  return !m(e) && r.path.startsWith(n(e));
1503
1509
  }
1504
- return (e, r) => q(t).nav?.length ? (H(), I("nav", vi, [(H(!0), I(M, null, W(q(t).nav, (e) => (H(), I("a", {
1510
+ return (e, r) => q(t).nav?.length ? (H(), F("nav", vi, [(H(!0), F(j, null, W(q(t).nav, (e) => (H(), F("a", {
1505
1511
  key: e.link,
1506
1512
  href: q(m)(e.link) ? e.link : q(n)(e.link),
1507
1513
  target: q(m)(e.link) ? "_blank" : void 0,
1508
1514
  rel: q(m)(e.link) ? "noopener noreferrer" : void 0,
1509
- class: V(["td-header-nav-link", { "is-active": i(e.link) }])
1515
+ class: B(["td-header-nav-link", { "is-active": i(e.link) }])
1510
1516
  }, [
1511
- e.icon && q(Le)(e.icon) ? (H(), P(ut(q(Le)(e.icon)), {
1517
+ e.icon && q(Re)(e.icon) ? (H(), N(ut(q(Re)(e.icon)), {
1512
1518
  key: 0,
1513
1519
  size: 14,
1514
1520
  class: "td-header-nav-icon"
1515
- })) : F("", !0),
1516
- R(" " + K(e.title) + " ", 1),
1517
- q(m)(e.link) ? (H(), P(q(_e), {
1521
+ })) : P("", !0),
1522
+ L(" " + K(e.title) + " ", 1),
1523
+ q(m)(e.link) ? (H(), N(q(ve), {
1518
1524
  key: 1,
1519
1525
  size: 14
1520
- })) : F("", !0)
1521
- ], 10, yi))), 128))])) : F("", !0);
1526
+ })) : P("", !0)
1527
+ ], 10, yi))), 128))])) : P("", !0);
1522
1528
  }
1523
1529
  }), [["__scopeId", "data-v-b7b3bb7c"]]), xi = {
1524
1530
  key: 0,
@@ -1527,41 +1533,41 @@ var Rr = ["innerHTML"], zr = /* @__PURE__ */ B({
1527
1533
  "href",
1528
1534
  "target",
1529
1535
  "rel"
1530
- ], Ci = /*#__PURE__*/ A(/* @__PURE__ */ B({
1536
+ ], Ci = /*#__PURE__*/ k(/* @__PURE__ */ z({
1531
1537
  __name: "TdHeaderNavMenu",
1532
1538
  setup(e) {
1533
- let t = j(), { withBase: n } = t, r = Ie();
1539
+ let t = A(), { withBase: n } = t, r = Le();
1534
1540
  function i(e) {
1535
1541
  return !m(e) && r.path.startsWith(n(e));
1536
1542
  }
1537
- return (e, r) => q(t).nav?.length ? (H(), I("nav", xi, [(H(!0), I(M, null, W(q(t).nav, (e) => (H(), I("a", {
1543
+ return (e, r) => q(t).nav?.length ? (H(), F("nav", xi, [(H(!0), F(j, null, W(q(t).nav, (e) => (H(), F("a", {
1538
1544
  key: e.link,
1539
1545
  href: q(m)(e.link) ? e.link : q(n)(e.link),
1540
1546
  target: q(m)(e.link) ? "_blank" : void 0,
1541
1547
  rel: q(m)(e.link) ? "noopener noreferrer" : void 0,
1542
- class: V(["td-menu-nav-item", { "is-active": i(e.link) }])
1548
+ class: B(["td-menu-nav-item", { "is-active": i(e.link) }])
1543
1549
  }, [
1544
- e.icon ? (H(), P(Me, {
1550
+ e.icon ? (H(), N(Ne, {
1545
1551
  key: 0,
1546
1552
  name: e.icon,
1547
1553
  size: 16
1548
- }, null, 8, ["name"])) : F("", !0),
1549
- L("span", null, K(e.title), 1),
1550
- q(m)(e.link) ? (H(), P(q(_e), {
1554
+ }, null, 8, ["name"])) : P("", !0),
1555
+ I("span", null, K(e.title), 1),
1556
+ q(m)(e.link) ? (H(), N(q(ve), {
1551
1557
  key: 1,
1552
1558
  size: 14
1553
- })) : F("", !0)
1554
- ], 10, Si))), 128))])) : F("", !0);
1559
+ })) : P("", !0)
1560
+ ], 10, Si))), 128))])) : P("", !0);
1555
1561
  }
1556
- }), [["__scopeId", "data-v-8b23de5a"]]), wi = { class: "td-widget-checkbox" }, Ti = /*#__PURE__*/ A(/* @__PURE__ */ B({
1562
+ }), [["__scopeId", "data-v-8b23de5a"]]), wi = { class: "td-widget-checkbox" }, Ti = /*#__PURE__*/ k(/* @__PURE__ */ z({
1557
1563
  __name: "TdWidgetCheckbox",
1558
1564
  props: { value: {} },
1559
1565
  setup(e) {
1560
- return (t, n) => (H(), I("span", wi, [e.value ? (H(), P(q(Pt), {
1566
+ return (t, n) => (H(), F("span", wi, [e.value ? (H(), N(q(Pt), {
1561
1567
  key: 0,
1562
1568
  size: 16,
1563
1569
  class: "td-widget-checkbox-icon is-checked"
1564
- })) : (H(), P(q(Re), {
1570
+ })) : (H(), N(q(ze), {
1565
1571
  key: 1,
1566
1572
  size: 16,
1567
1573
  class: "td-widget-checkbox-icon"
@@ -1616,7 +1622,7 @@ function Oi(e) {
1616
1622
  var ki = {
1617
1623
  key: 0,
1618
1624
  class: "td-widget-relation-wrapper"
1619
- }, Ai = ["href", "title"], ji = ["src", "alt"], Mi = ["href"], Ni = { class: "td-widget-file-name" }, Pi = ["href"], Fi = ["href"], Ii = { key: 1 }, Li = /*#__PURE__*/ A(/* @__PURE__ */ B({
1625
+ }, Ai = ["href", "title"], ji = ["src", "alt"], Mi = ["href"], Ni = { class: "td-widget-file-name" }, Pi = ["href"], Fi = ["href"], Ii = { key: 1 }, Li = /*#__PURE__*/ k(/* @__PURE__ */ z({
1620
1626
  __name: "TdWidgetRelation",
1621
1627
  props: {
1622
1628
  value: {},
@@ -1626,78 +1632,78 @@ var ki = {
1626
1632
  }
1627
1633
  },
1628
1634
  setup(e) {
1629
- let { withBase: t } = j(), n = N(() => Di(e.value)), r = N(() => n.value?.icon ? Le(n.value.icon.name) : void 0), i = N(() => n.value !== void 0 && m(n.value.url));
1630
- return (a, o) => n.value ? (H(), I("span", ki, [n.value.isImage ? (H(), I("a", {
1635
+ let { withBase: t } = A(), n = M(() => Di(e.value)), r = M(() => n.value?.icon ? Re(n.value.icon.name) : void 0), i = M(() => n.value !== void 0 && m(n.value.url));
1636
+ return (a, o) => n.value ? (H(), F("span", ki, [n.value.isImage ? (H(), F("a", {
1631
1637
  key: 0,
1632
1638
  href: q(t)(n.value.url),
1633
1639
  target: "_blank",
1634
1640
  rel: "noopener noreferrer",
1635
1641
  class: "td-widget-image-preview",
1636
1642
  title: n.value.name
1637
- }, [L("img", {
1643
+ }, [I("img", {
1638
1644
  src: q(t)(n.value.url),
1639
1645
  alt: n.value.name,
1640
1646
  class: "td-widget-image-img",
1641
1647
  loading: "lazy"
1642
- }, null, 8, ji)], 8, Ai)) : n.value.format || n.value.url.includes(".") ? (H(), I("a", {
1648
+ }, null, 8, ji)], 8, Ai)) : n.value.format || n.value.url.includes(".") ? (H(), F("a", {
1643
1649
  key: 1,
1644
1650
  href: q(t)(n.value.url),
1645
1651
  target: "_blank",
1646
1652
  rel: "noopener noreferrer",
1647
1653
  class: "td-widget-file-link"
1648
- }, [z(q(je), { class: "td-widget-file-icon" }), L("span", Ni, K(n.value.name), 1)], 8, Mi)) : i.value ? (H(), I("a", {
1654
+ }, [R(q(Me), { class: "td-widget-file-icon" }), I("span", Ni, K(n.value.name), 1)], 8, Mi)) : i.value ? (H(), F("a", {
1649
1655
  key: 2,
1650
1656
  href: n.value.url,
1651
1657
  target: "_blank",
1652
1658
  rel: "noopener noreferrer",
1653
1659
  class: "td-widget-ref td-widget-ref-external"
1654
- }, [z(q(_e), {
1660
+ }, [R(q(ve), {
1655
1661
  size: 12,
1656
1662
  class: "td-widget-external-icon"
1657
- })], 8, Pi)) : (H(), I("a", {
1663
+ })], 8, Pi)) : (H(), F("a", {
1658
1664
  key: 3,
1659
1665
  href: q(t)(n.value.url),
1660
1666
  class: "td-widget-ref"
1661
- }, [r.value && !e.hideIcon ? (H(), P(ut(r.value), {
1667
+ }, [r.value && !e.hideIcon ? (H(), N(ut(r.value), {
1662
1668
  key: 0,
1663
1669
  size: 14,
1664
1670
  class: "td-widget-ref-icon"
1665
- })) : F("", !0), R(K(n.value.name), 1)], 8, Fi))])) : (H(), I("span", Ii, K(e.value), 1));
1671
+ })) : P("", !0), L(K(n.value.name), 1)], 8, Fi))])) : (H(), F("span", Ii, K(e.value), 1));
1666
1672
  }
1667
- }), [["__scopeId", "data-v-20319819"]]), Ri = { key: 0 }, zi = { class: "td-widget-list td-widget-list-icons" }, Bi = { key: 1 }, Vi = { class: "td-widget-list" }, Hi = 5, Ui = /*#__PURE__*/ A(/* @__PURE__ */ B({
1673
+ }), [["__scopeId", "data-v-20319819"]]), Ri = { key: 0 }, zi = { class: "td-widget-list td-widget-list-icons" }, Bi = { key: 1 }, Vi = { class: "td-widget-list" }, Hi = 5, Ui = /*#__PURE__*/ k(/* @__PURE__ */ z({
1668
1674
  __name: "TdWidgetList",
1669
1675
  props: {
1670
1676
  definition: {},
1671
1677
  value: {}
1672
1678
  },
1673
1679
  setup(e) {
1674
- let t = U(!1), n = N(() => Array.isArray(e.value) ? e.value : []), r = N(() => e.definition.items?.widget === "relation"), i = N(() => r.value ? n.value.map((e) => Di(e)).filter((e) => e !== void 0) : []), a = N(() => r.value ? Math.max(0, i.value.length - Hi) : Math.max(0, n.value.length - Hi));
1680
+ let t = U(!1), n = M(() => Array.isArray(e.value) ? e.value : []), r = M(() => e.definition.items?.widget === "relation"), i = M(() => r.value ? n.value.map((e) => Di(e)).filter((e) => e !== void 0) : []), a = M(() => r.value ? Math.max(0, i.value.length - Hi) : Math.max(0, n.value.length - Hi));
1675
1681
  function o() {
1676
1682
  t.value = !t.value;
1677
1683
  }
1678
1684
  function s(e) {
1679
1685
  return t.value ? e : e.slice(0, Hi);
1680
1686
  }
1681
- return (e, c) => r.value ? (H(), I("div", Ri, [L("ul", zi, [(H(!0), I(M, null, W(s(i.value), (e, t) => (H(), I("li", { key: t }, [L("div", null, [(H(), P(ut(e.icon ? q(Le)(e.icon.name) ?? q(he) : q(he)), {
1687
+ return (e, c) => r.value ? (H(), F("div", Ri, [I("ul", zi, [(H(!0), F(j, null, W(s(i.value), (e, t) => (H(), F("li", { key: t }, [I("div", null, [(H(), N(ut(e.icon ? q(Re)(e.icon.name) ?? q(ge) : q(ge)), {
1682
1688
  size: 14,
1683
1689
  class: "td-widget-list-icon"
1684
- }))]), z(Li, {
1690
+ }))]), R(Li, {
1685
1691
  value: { $ref: e },
1686
1692
  "hide-icon": ""
1687
- }, null, 8, ["value"])]))), 128))]), a.value > 0 ? (H(), I("button", {
1693
+ }, null, 8, ["value"])]))), 128))]), a.value > 0 ? (H(), F("button", {
1688
1694
  key: 0,
1689
1695
  class: "td-widget-more",
1690
1696
  type: "button",
1691
1697
  onClick: o
1692
- }, K(t.value ? "show less" : `+${a.value} more`), 1)) : F("", !0)])) : (H(), I("div", Bi, [L("ul", Vi, [(H(!0), I(M, null, W(s(n.value), (e, t) => (H(), I("li", { key: t }, [q(Di)(e) ? (H(), P(Li, {
1698
+ }, K(t.value ? "show less" : `+${a.value} more`), 1)) : P("", !0)])) : (H(), F("div", Bi, [I("ul", Vi, [(H(!0), F(j, null, W(s(n.value), (e, t) => (H(), F("li", { key: t }, [q(Di)(e) ? (H(), N(Li, {
1693
1699
  key: 0,
1694
1700
  value: e
1695
- }, null, 8, ["value"])) : (H(), I(M, { key: 1 }, [R(K(e), 1)], 64))]))), 128))]), a.value > 0 ? (H(), I("button", {
1701
+ }, null, 8, ["value"])) : (H(), F(j, { key: 1 }, [L(K(e), 1)], 64))]))), 128))]), a.value > 0 ? (H(), F("button", {
1696
1702
  key: 0,
1697
1703
  class: "td-widget-more",
1698
1704
  type: "button",
1699
1705
  onClick: o
1700
- }, K(t.value ? "show less" : `+${a.value} more`), 1)) : F("", !0)]));
1706
+ }, K(t.value ? "show less" : `+${a.value} more`), 1)) : P("", !0)]));
1701
1707
  }
1702
1708
  }), [["__scopeId", "data-v-bc659020"]]), Wi = [
1703
1709
  {
@@ -1746,42 +1752,42 @@ function Ki(e) {
1746
1752
  return Math.abs(t);
1747
1753
  }
1748
1754
  // src/client/theme-default/components/TdFrontmatter/widgets/TdWidgetMultiSelect.vue?vue&type=script&setup=true&lang.ts
1749
- var qi = 5, Ji = /*#__PURE__*/ A(/* @__PURE__ */ B({
1755
+ var qi = 5, Ji = /*#__PURE__*/ k(/* @__PURE__ */ z({
1750
1756
  __name: "TdWidgetMultiSelect",
1751
1757
  props: { value: {} },
1752
1758
  setup(e) {
1753
- let t = U(!1), n = N(() => Array.isArray(e.value) ? e.value : []), r = N(() => t.value ? n.value : n.value.slice(0, qi)), i = N(() => Math.max(0, n.value.length - qi));
1759
+ let t = U(!1), n = M(() => Array.isArray(e.value) ? e.value : []), r = M(() => t.value ? n.value : n.value.slice(0, qi)), i = M(() => Math.max(0, n.value.length - qi));
1754
1760
  function a() {
1755
1761
  t.value = !t.value;
1756
1762
  }
1757
- return (e, n) => (H(), I(M, null, [(H(!0), I(M, null, W(r.value, (e, t) => (H(), I("span", {
1763
+ return (e, n) => (H(), F(j, null, [(H(!0), F(j, null, W(r.value, (e, t) => (H(), F("span", {
1758
1764
  key: t,
1759
1765
  class: "td-widget-pill",
1760
- style: nt(q(Gi)(e))
1761
- }, K(e), 5))), 128)), i.value > 0 ? (H(), I("button", {
1766
+ style: V(q(Gi)(e))
1767
+ }, K(e), 5))), 128)), i.value > 0 ? (H(), F("button", {
1762
1768
  key: 0,
1763
1769
  class: "td-widget-more",
1764
1770
  type: "button",
1765
1771
  onClick: a
1766
- }, K(t.value ? "show less" : `+${i.value} more`), 1)) : F("", !0)], 64));
1772
+ }, K(t.value ? "show less" : `+${i.value} more`), 1)) : P("", !0)], 64));
1767
1773
  }
1768
- }), [["__scopeId", "data-v-b3656329"]]), Yi = /*#__PURE__*/ A(/* @__PURE__ */ B({
1774
+ }), [["__scopeId", "data-v-b3656329"]]), Yi = /*#__PURE__*/ k(/* @__PURE__ */ z({
1769
1775
  __name: "TdWidgetSelect",
1770
1776
  props: { value: {} },
1771
1777
  setup(e) {
1772
- return (t, n) => (H(), I("span", {
1778
+ return (t, n) => (H(), F("span", {
1773
1779
  class: "td-widget-pill",
1774
- style: nt(q(Gi)(e.value))
1780
+ style: V(q(Gi)(e.value))
1775
1781
  }, K(e.value), 5));
1776
1782
  }
1777
- }), [["__scopeId", "data-v-b9e2b4fd"]]), Xi = ["href", "title"], Zi = ["src", "alt"], Qi = ["href"], $i = { class: "td-widget-file-name" }, ea = /*#__PURE__*/ A(/* @__PURE__ */ B({
1783
+ }), [["__scopeId", "data-v-b9e2b4fd"]]), Xi = ["href", "title"], Zi = ["src", "alt"], Qi = ["href"], $i = { class: "td-widget-file-name" }, ea = /*#__PURE__*/ k(/* @__PURE__ */ z({
1778
1784
  __name: "TdWidgetText",
1779
1785
  props: {
1780
1786
  definition: {},
1781
1787
  value: {}
1782
1788
  },
1783
1789
  setup(e) {
1784
- let { withBase: t } = j(), n = N(() => typeof e.value == "string" ? e.value.trim() : ""), r = N(() => Di(e.value)), i = N(() => r.value ? r.value.isImage : 0 < n.value.length && Oi({ url: n.value })), a = N(() => r.value ? r.value.url : n.value), o = N(() => t(a.value)), s = N(() => !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"));
1790
+ let { withBase: t } = A(), n = M(() => typeof e.value == "string" ? e.value.trim() : ""), r = M(() => Di(e.value)), i = M(() => r.value ? r.value.isImage : 0 < n.value.length && Oi({ url: n.value })), a = M(() => r.value ? r.value.url : n.value), o = M(() => t(a.value)), s = M(() => !n.value || !n.value.includes(".") || n.value.includes(" ") ? !1 : n.value.endsWith(".pdf") || n.value.endsWith(".zip") || n.value.endsWith(".doc") || n.value.endsWith(".docx"));
1785
1791
  function c(t) {
1786
1792
  if (t == null) return "";
1787
1793
  if (typeof t == "object" && !Array.isArray(t)) {
@@ -1794,53 +1800,53 @@ var qi = 5, Ji = /*#__PURE__*/ A(/* @__PURE__ */ B({
1794
1800
  }
1795
1801
  return e.definition.widget === "date" ? _(String(t)) : String(t);
1796
1802
  }
1797
- return (t, a) => i.value ? (H(), I("a", {
1803
+ return (t, a) => i.value ? (H(), F("a", {
1798
1804
  key: 0,
1799
1805
  href: o.value,
1800
1806
  target: "_blank",
1801
1807
  rel: "noopener noreferrer",
1802
1808
  class: "td-widget-image-preview",
1803
1809
  title: r.value ? r.value.name : n.value
1804
- }, [L("img", {
1810
+ }, [I("img", {
1805
1811
  src: o.value,
1806
1812
  alt: r.value ? r.value.name : n.value,
1807
1813
  class: "td-widget-image-img",
1808
1814
  loading: "lazy"
1809
- }, null, 8, Zi)], 8, Xi)) : s.value ? (H(), I("a", {
1815
+ }, null, 8, Zi)], 8, Xi)) : s.value ? (H(), F("a", {
1810
1816
  key: 1,
1811
1817
  href: o.value,
1812
1818
  target: "_blank",
1813
1819
  rel: "noopener noreferrer",
1814
1820
  class: "td-widget-file-link"
1815
- }, [z(q(je), { class: "td-widget-file-icon" }), L("span", $i, K(n.value.split("/").pop() ?? n.value), 1)], 8, Qi)) : (H(), I(M, { key: 2 }, [R(K(c(e.value)), 1)], 64));
1821
+ }, [R(q(Me), { class: "td-widget-file-icon" }), I("span", $i, K(n.value.split("/").pop() ?? n.value), 1)], 8, Qi)) : (H(), F(j, { key: 2 }, [L(K(c(e.value)), 1)], 64));
1816
1822
  }
1817
1823
  }), [["__scopeId", "data-v-2ea0f146"]]), ta = {
1818
1824
  key: 0,
1819
1825
  class: "td-frontmatter-empty"
1820
- }, na = /*#__PURE__*/ A(/* @__PURE__ */ B({
1826
+ }, na = /*#__PURE__*/ k(/* @__PURE__ */ z({
1821
1827
  __name: "TdFrontmatterValue",
1822
1828
  props: {
1823
1829
  definition: {},
1824
1830
  value: {}
1825
1831
  },
1826
1832
  setup(e) {
1827
- return (t, n) => e.value === void 0 || e.value === null ? (H(), I("span", ta, "Empty")) : e.definition.widget === "checkbox" ? (H(), P(Ti, {
1833
+ return (t, n) => e.value === void 0 || e.value === null ? (H(), F("span", ta, "Empty")) : e.definition.widget === "checkbox" ? (H(), N(Ti, {
1828
1834
  key: 1,
1829
1835
  value: e.value
1830
- }, null, 8, ["value"])) : e.definition.widget === "select" ? (H(), P(Yi, {
1836
+ }, null, 8, ["value"])) : e.definition.widget === "select" ? (H(), N(Yi, {
1831
1837
  key: 2,
1832
1838
  value: e.value
1833
- }, null, 8, ["value"])) : e.definition.widget === "multiSelect" ? (H(), P(Ji, {
1839
+ }, null, 8, ["value"])) : e.definition.widget === "multiSelect" ? (H(), N(Ji, {
1834
1840
  key: 3,
1835
1841
  value: e.value
1836
- }, null, 8, ["value"])) : q(Di)(e.value) || e.definition.widget === "relation" ? (H(), P(Li, {
1842
+ }, null, 8, ["value"])) : q(Di)(e.value) || e.definition.widget === "relation" ? (H(), N(Li, {
1837
1843
  key: 4,
1838
1844
  value: e.value
1839
- }, null, 8, ["value"])) : Array.isArray(e.value) || e.definition.widget === "list" ? (H(), P(Ui, {
1845
+ }, null, 8, ["value"])) : Array.isArray(e.value) || e.definition.widget === "list" ? (H(), N(Ui, {
1840
1846
  key: 5,
1841
1847
  definition: e.definition,
1842
1848
  value: e.value
1843
- }, null, 8, ["definition", "value"])) : (H(), P(ea, {
1849
+ }, null, 8, ["definition", "value"])) : (H(), N(ea, {
1844
1850
  key: 6,
1845
1851
  definition: e.definition,
1846
1852
  value: e.value
@@ -1852,7 +1858,7 @@ var qi = 5, Ji = /*#__PURE__*/ A(/* @__PURE__ */ B({
1852
1858
  }, ia = { class: "td-fm-rail-key" }, aa = { class: "td-fm-rail-value" }, oa = {
1853
1859
  key: 1,
1854
1860
  class: "td-fm-box"
1855
- }, sa = { class: "td-fm-box-label" }, ca = { class: "td-fm-box-count" }, la = { class: "td-fm-box-toggle" }, ua = { class: "td-fm-box-body" }, da = { class: "td-fm-box-key" }, fa = { class: "td-fm-box-value" }, pa = /*#__PURE__*/ A(/* @__PURE__ */ B({
1861
+ }, sa = { class: "td-fm-box-label" }, ca = { class: "td-fm-box-count" }, la = { class: "td-fm-box-toggle" }, ua = { class: "td-fm-box-body" }, da = { class: "td-fm-box-key" }, fa = { class: "td-fm-box-value" }, pa = /*#__PURE__*/ k(/* @__PURE__ */ z({
1856
1862
  __name: "TdFrontmatter",
1857
1863
  props: {
1858
1864
  mode: { default: "inline" },
@@ -1860,12 +1866,12 @@ var qi = 5, Ji = /*#__PURE__*/ A(/* @__PURE__ */ B({
1860
1866
  frontmatter: {}
1861
1867
  },
1862
1868
  setup(e) {
1863
- let t = ke(), n = N(() => {
1869
+ let t = Ae(), n = M(() => {
1864
1870
  if (e.schema) return t.value.schemas[e.schema];
1865
- }), r = N(() => {
1871
+ }), r = M(() => {
1866
1872
  let t = e.frontmatter;
1867
1873
  return t._type && t.fields && typeof t.fields == "object" && !Array.isArray(t.fields) ? t.fields : t;
1868
- }), i = N(() => {
1874
+ }), i = M(() => {
1869
1875
  let e = n.value, t = r.value, i = [], a = /* @__PURE__ */ new Set();
1870
1876
  e && Object.keys(e).forEach((e) => a.add(e)), Object.keys(t).forEach((e) => a.add(e));
1871
1877
  for (let n of a) {
@@ -1879,10 +1885,10 @@ var qi = 5, Ji = /*#__PURE__*/ A(/* @__PURE__ */ B({
1879
1885
  }), a = {
1880
1886
  text: It,
1881
1887
  checkbox: wt,
1882
- select: De,
1888
+ select: Oe,
1883
1889
  multiSelect: Ft,
1884
- relation: _e,
1885
- list: ye
1890
+ relation: ve,
1891
+ list: be
1886
1892
  };
1887
1893
  function o(e) {
1888
1894
  return a[e] ?? It;
@@ -1894,39 +1900,39 @@ var qi = 5, Ji = /*#__PURE__*/ A(/* @__PURE__ */ B({
1894
1900
  function d() {
1895
1901
  l.value = !l.value;
1896
1902
  }
1897
- return (t, n) => e.mode === "rail" && i.value.length > 0 ? (H(), I("div", ra, [L("button", {
1903
+ return (t, n) => e.mode === "rail" && i.value.length > 0 ? (H(), F("div", ra, [I("button", {
1898
1904
  type: "button",
1899
1905
  class: "td-fm-rail-header",
1900
1906
  onClick: d
1901
- }, [n[0] ||= L("span", { class: "td-fm-rail-label" }, "Properties", -1), z(q(ue), {
1907
+ }, [n[0] ||= I("span", { class: "td-fm-rail-label" }, "Properties", -1), R(q(de), {
1902
1908
  size: 14,
1903
- class: V(["td-fm-rail-caret", { "is-collapsed": l.value }])
1904
- }, null, 8, ["class"])]), L("div", { class: V(["td-collapse", { "is-collapsed": l.value }]) }, [L("div", null, [(H(!0), I(M, null, W(i.value, ([e, t]) => (H(), I("div", {
1909
+ class: B(["td-fm-rail-caret", { "is-collapsed": l.value }])
1910
+ }, null, 8, ["class"])]), I("div", { class: B(["td-collapse", { "is-collapsed": l.value }]) }, [I("div", null, [(H(!0), F(j, null, W(i.value, ([e, t]) => (H(), F("div", {
1905
1911
  key: e,
1906
1912
  class: "td-fm-rail-row"
1907
- }, [L("span", ia, [(H(), P(ut(o(t.widget)), {
1913
+ }, [I("span", ia, [(H(), N(ut(o(t.widget)), {
1908
1914
  size: 12,
1909
1915
  class: "td-fm-icon"
1910
- })), R(" " + K(q(c)(e)), 1)]), L("span", aa, [z(na, {
1916
+ })), L(" " + K(q(c)(e)), 1)]), I("span", aa, [R(na, {
1911
1917
  definition: t,
1912
1918
  value: r.value[e]
1913
- }, null, 8, ["definition", "value"])])]))), 128))])], 2)])) : i.value.length > 0 ? (H(), I("div", oa, [L("button", {
1919
+ }, null, 8, ["definition", "value"])])]))), 128))])], 2)])) : i.value.length > 0 ? (H(), F("div", oa, [I("button", {
1914
1920
  type: "button",
1915
1921
  class: "td-fm-box-header",
1916
1922
  onClick: u
1917
- }, [L("span", sa, [n[1] ||= R("Properties ", -1), L("span", ca, K(i.value.length), 1)]), L("span", la, [R(K(s.value ? "Show" : "Hide") + " ", 1), s.value ? (H(), P(q(me), {
1923
+ }, [I("span", sa, [n[1] ||= L("Properties ", -1), I("span", ca, K(i.value.length), 1)]), I("span", la, [L(K(s.value ? "Show" : "Hide") + " ", 1), s.value ? (H(), N(q(he), {
1918
1924
  key: 1,
1919
1925
  size: 14
1920
- })) : (H(), P(q(ue), {
1926
+ })) : (H(), N(q(de), {
1921
1927
  key: 0,
1922
1928
  size: 14
1923
- }))])]), L("div", { class: V(["td-collapse", { "is-collapsed": s.value }]) }, [L("div", ua, [(H(!0), I(M, null, W(i.value, ([e, t]) => (H(), I(M, { key: e }, [L("span", da, [(H(), P(ut(o(t.widget)), {
1929
+ }))])]), I("div", { class: B(["td-collapse", { "is-collapsed": s.value }]) }, [I("div", ua, [(H(!0), F(j, null, W(i.value, ([e, t]) => (H(), F(j, { key: e }, [I("span", da, [(H(), N(ut(o(t.widget)), {
1924
1930
  size: 12,
1925
1931
  class: "td-fm-icon"
1926
- })), R(" " + K(q(c)(e)), 1)]), L("span", fa, [z(na, {
1932
+ })), L(" " + K(q(c)(e)), 1)]), I("span", fa, [R(na, {
1927
1933
  definition: t,
1928
1934
  value: r.value[e]
1929
- }, null, 8, ["definition", "value"])])], 64))), 128))])], 2)])) : F("", !0);
1935
+ }, null, 8, ["definition", "value"])])], 64))), 128))])], 2)])) : P("", !0);
1930
1936
  }
1931
1937
  }), [["__scopeId", "data-v-88227032"]]);
1932
1938
  // src/client/theme-default/composables/useMediaQuery.ts
@@ -1994,7 +2000,7 @@ function ba(e, t) {
1994
2000
  // src/client/theme-default/composables/useMenu.ts
1995
2001
  var xa = U(!1);
1996
2002
  function Sa() {
1997
- let e = ma("(width >= 64rem)"), t = N(() => !e.value);
2003
+ let e = ma("(width >= 64rem)"), t = M(() => !e.value);
1998
2004
  function n() {
1999
2005
  xa.value = !xa.value;
2000
2006
  }
@@ -2017,20 +2023,20 @@ function Sa() {
2017
2023
  };
2018
2024
  }
2019
2025
  // src/client/theme-default/components/TdMenuButton.vue
2020
- var Ca = /* @__PURE__ */ B({
2026
+ var Ca = /* @__PURE__ */ z({
2021
2027
  __name: "TdMenuButton",
2022
2028
  setup(e) {
2023
2029
  let { isOpen: t, toggle: n } = Sa();
2024
- return (e, r) => (H(), P(Ut, {
2030
+ return (e, r) => (H(), N(Fr, {
2025
2031
  class: "td-menu-button",
2026
2032
  label: q(t) ? "Close menu" : "Open menu",
2027
2033
  "aria-expanded": q(t),
2028
2034
  onClick: q(n)
2029
2035
  }, {
2030
- default: X(() => [q(t) ? (H(), P(q(Ne), {
2036
+ default: X(() => [q(t) ? (H(), N(q(Pe), {
2031
2037
  key: 0,
2032
2038
  size: 20
2033
- })) : (H(), P(q(ze), {
2039
+ })) : (H(), N(q(Be), {
2034
2040
  key: 1,
2035
2041
  size: 20
2036
2042
  }))]),
@@ -2044,7 +2050,7 @@ var Ca = /* @__PURE__ */ B({
2044
2050
  });
2045
2051
  // src/client/theme-default/composables/usePreviousNext.ts
2046
2052
  function wa() {
2047
- let e = ke(), t = Ie(), { withBase: n, title: r } = j(), i = N(() => {
2053
+ let e = Ae(), t = Le(), { withBase: n, title: r } = A(), i = M(() => {
2048
2054
  let i = Ea(e.value.contentTree, r), a = i.findIndex((e) => e.url === t.path);
2049
2055
  if (a === -1) return {};
2050
2056
  let o = 0 < a ? i[a - 1] : void 0, s = a < i.length - 1 ? i[a + 1] : void 0;
@@ -2060,8 +2066,8 @@ function wa() {
2060
2066
  };
2061
2067
  });
2062
2068
  return {
2063
- previous: N(() => i.value.previous),
2064
- next: N(() => i.value.next)
2069
+ previous: M(() => i.value.previous),
2070
+ next: M(() => i.value.next)
2065
2071
  };
2066
2072
  }
2067
2073
  function Ta(e, t, n) {
@@ -2093,33 +2099,33 @@ var Oa = {
2093
2099
  }, Na = ["href"], Pa = { class: "td-prevnext-label" }, Fa = { class: "td-prevnext-title" }, Ia = {
2094
2100
  key: 3,
2095
2101
  class: "td-prevnext-spacer"
2096
- }, La = /*#__PURE__*/ A(/* @__PURE__ */ B({
2102
+ }, La = /*#__PURE__*/ k(/* @__PURE__ */ z({
2097
2103
  __name: "TdPreviousNext",
2098
2104
  setup(e) {
2099
2105
  let { previous: t, next: n } = wa();
2100
- return (e, r) => q(t) || q(n) ? (H(), I("nav", Oa, [q(t) ? (H(), I("a", {
2106
+ return (e, r) => q(t) || q(n) ? (H(), F("nav", Oa, [q(t) ? (H(), F("a", {
2101
2107
  key: 0,
2102
2108
  href: q(t).url,
2103
2109
  class: "td-prevnext-link is-previous"
2104
- }, [L("span", Aa, [
2105
- z(q(ge), {
2110
+ }, [I("span", Aa, [
2111
+ R(q(_e), {
2106
2112
  size: 14,
2107
2113
  class: "td-prevnext-chevron"
2108
2114
  }),
2109
- r[0] ||= R(" Previous ", -1),
2110
- z($, { keys: [q(Q).Control, q(Q).ArrowLeft] }, null, 8, ["keys"])
2111
- ]), L("span", ja, K(q(t).title), 1)], 8, ka)) : (H(), I("span", Ma)), q(n) ? (H(), I("a", {
2115
+ r[0] ||= L(" Previous ", -1),
2116
+ R($, { keys: [q(Q).Control, q(Q).ArrowLeft] }, null, 8, ["keys"])
2117
+ ]), I("span", ja, K(q(t).title), 1)], 8, ka)) : (H(), F("span", Ma)), q(n) ? (H(), F("a", {
2112
2118
  key: 2,
2113
2119
  href: q(n).url,
2114
2120
  class: "td-prevnext-link is-next"
2115
- }, [L("span", Pa, [
2116
- z($, { keys: [q(Q).Control, q(Q).ArrowRight] }, null, 8, ["keys"]),
2117
- r[1] ||= R(" Next ", -1),
2118
- z(q(me), {
2121
+ }, [I("span", Pa, [
2122
+ R($, { keys: [q(Q).Control, q(Q).ArrowRight] }, null, 8, ["keys"]),
2123
+ r[1] ||= L(" Next ", -1),
2124
+ R(q(he), {
2119
2125
  size: 14,
2120
2126
  class: "td-prevnext-chevron"
2121
2127
  })
2122
- ]), L("span", Fa, K(q(n).title), 1)], 8, Na)) : (H(), I("span", Ia))])) : F("", !0);
2128
+ ]), I("span", Fa, K(q(n).title), 1)], 8, Na)) : (H(), F("span", Ia))])) : P("", !0);
2123
2129
  }
2124
2130
  }), [["__scopeId", "data-v-b937f37a"]]), Ra = 100;
2125
2131
  function za(e) {
@@ -2149,7 +2155,7 @@ function za(e) {
2149
2155
  }), ot(() => {
2150
2156
  window.removeEventListener("scroll", a), r !== void 0 && cancelAnimationFrame(r);
2151
2157
  }), Y(e, (e) => {
2152
- typeof window < "u" && tt(() => o(e));
2158
+ typeof window < "u" && nt(() => o(e));
2153
2159
  }, { immediate: !0 }), t;
2154
2160
  }
2155
2161
  // src/client/theme-default/components/custom/TdToc.vue?vue&type=script&setup=true&lang.ts
@@ -2163,7 +2169,7 @@ var Ba = {
2163
2169
  key: 1,
2164
2170
  class: "td-toc",
2165
2171
  "data-testid": "toc"
2166
- }, Ka = { class: "td-toc-list" }, qa = ["href", "innerHTML"], Ja = /*#__PURE__*/ A(/* @__PURE__ */ B({
2172
+ }, Ka = { class: "td-toc-list" }, qa = ["href", "innerHTML"], Ja = /*#__PURE__*/ k(/* @__PURE__ */ z({
2167
2173
  __name: "TdToc",
2168
2174
  props: {
2169
2175
  headings: {},
@@ -2181,16 +2187,16 @@ var Ba = {
2181
2187
  }
2182
2188
  },
2183
2189
  setup(e) {
2184
- let t = N(() => {
2190
+ let t = M(() => {
2185
2191
  let t = [];
2186
2192
  for (let n of e.headings) {
2187
2193
  t.push(n);
2188
2194
  for (let e of n.children) t.push(e);
2189
2195
  }
2190
2196
  return t;
2191
- }), n = e.static || e.inline ? N(() => void 0) : za(() => t.value), r = J("list");
2197
+ }), n = e.static || e.inline ? M(() => void 0) : za(() => t.value), r = J("list");
2192
2198
  return Y(n, () => {
2193
- tt(() => {
2199
+ nt(() => {
2194
2200
  let e = r.value, t = e?.querySelector("a.is-active");
2195
2201
  if (!e || !t) return;
2196
2202
  let n = e.closest(".td-toc") ?? e;
@@ -2198,32 +2204,32 @@ var Ba = {
2198
2204
  let i = n.getBoundingClientRect(), a = t.getBoundingClientRect().top - i.top - n.clientHeight / 2 + t.clientHeight / 2;
2199
2205
  n.scrollTop += a;
2200
2206
  });
2201
- }), (r, i) => e.inline ? (H(), I("div", Ba, [i[0] ||= L("div", { class: "td-toc-inline-label" }, " On this page ", -1), L("ul", Va, [(H(!0), I(M, null, W(e.headings, (e) => (H(), I("li", {
2207
+ }), (r, i) => e.inline ? (H(), F("div", Ba, [i[0] ||= I("div", { class: "td-toc-inline-label" }, " On this page ", -1), I("ul", Va, [(H(!0), F(j, null, W(e.headings, (e) => (H(), F("li", {
2202
2208
  key: e.slug,
2203
2209
  class: "td-toc-inline-item"
2204
- }, [L("a", {
2210
+ }, [I("a", {
2205
2211
  href: e.link,
2206
2212
  class: "td-toc-inline-link is-h2",
2207
2213
  innerHTML: q(g)(e.titleHtml)
2208
- }, null, 8, Ha), e.children.length ? (H(), I("ul", Ua, [(H(!0), I(M, null, W(e.children, (e) => (H(), I("li", { key: e.slug }, [L("a", {
2214
+ }, null, 8, Ha), e.children.length ? (H(), F("ul", Ua, [(H(!0), F(j, null, W(e.children, (e) => (H(), F("li", { key: e.slug }, [I("a", {
2209
2215
  href: e.link,
2210
2216
  class: "td-toc-inline-link is-h3",
2211
2217
  innerHTML: q(g)(e.titleHtml)
2212
- }, null, 8, Wa)]))), 128))])) : F("", !0)]))), 128))])])) : e.headings.length ? (H(), I("div", Ga, [L("div", {
2218
+ }, null, 8, Wa)]))), 128))])) : P("", !0)]))), 128))])])) : e.headings.length ? (H(), F("div", Ga, [I("div", {
2213
2219
  ref: "list",
2214
- class: V(["td-toc-list-wrap", { "is-scrollable": e.scrollable }])
2215
- }, [L("ul", Ka, [(H(!0), I(M, null, W(t.value, (e) => (H(), I("li", {
2220
+ class: B(["td-toc-list-wrap", { "is-scrollable": e.scrollable }])
2221
+ }, [I("ul", Ka, [(H(!0), F(j, null, W(t.value, (e) => (H(), F("li", {
2216
2222
  key: e.slug,
2217
- class: V({
2223
+ class: B({
2218
2224
  "td-toc-indent-1": e.level === 3,
2219
2225
  "td-toc-indent-2": e.level === 4,
2220
2226
  "td-toc-indent-3": e.level === 5
2221
2227
  })
2222
- }, [L("a", {
2228
+ }, [I("a", {
2223
2229
  href: e.link,
2224
- class: V(["td-toc-link", { "is-active": q(n) === e.slug }]),
2230
+ class: B(["td-toc-link", { "is-active": q(n) === e.slug }]),
2225
2231
  innerHTML: q(g)(e.titleHtml)
2226
- }, null, 10, qa)], 2))), 128))])], 2)])) : F("", !0);
2232
+ }, null, 10, qa)], 2))), 128))])], 2)])) : P("", !0);
2227
2233
  }
2228
2234
  }), [["__scopeId", "data-v-f02336c5"]]), Ya = {
2229
2235
  key: 0,
@@ -2231,10 +2237,10 @@ var Ba = {
2231
2237
  }, Xa = { class: "td-rail-inner" }, Za = {
2232
2238
  class: "td-rail-indicators",
2233
2239
  "aria-hidden": "true"
2234
- }, Qa = { class: "td-rail-panel" }, $a = /*#__PURE__*/ A(/* @__PURE__ */ B({
2240
+ }, Qa = { class: "td-rail-panel" }, $a = /*#__PURE__*/ k(/* @__PURE__ */ z({
2235
2241
  __name: "TdRail",
2236
2242
  setup(e) {
2237
- let { page: t } = Se(), n = N(() => {
2243
+ let { page: t } = Ce(), n = M(() => {
2238
2244
  let e = [];
2239
2245
  for (let n of t.value.headings) {
2240
2246
  e.push(n);
@@ -2242,19 +2248,19 @@ var Ba = {
2242
2248
  }
2243
2249
  return e;
2244
2250
  }), r = za(() => n.value);
2245
- return (e, i) => q(t).headings.length > 1 ? (H(), I("aside", Ya, [L("div", Xa, [L("div", Za, [(H(!0), I(M, null, W(n.value, (e) => (H(), I("div", {
2251
+ return (e, i) => q(t).headings.length > 1 ? (H(), F("aside", Ya, [I("div", Xa, [I("div", Za, [(H(!0), F(j, null, W(n.value, (e) => (H(), F("div", {
2246
2252
  key: e.slug,
2247
- class: V(["td-rail-indicator", {
2253
+ class: B(["td-rail-indicator", {
2248
2254
  "is-h3": e.level === 3,
2249
2255
  "is-active": q(r) === e.slug
2250
2256
  }])
2251
- }, null, 2))), 128))]), L("div", Qa, [z(Ja, { headings: q(t).headings }, null, 8, ["headings"])])])])) : F("", !0);
2257
+ }, null, 2))), 128))]), I("div", Qa, [R(Ja, { headings: q(t).headings }, null, 8, ["headings"])])])])) : P("", !0);
2252
2258
  }
2253
2259
  }), [["__scopeId", "data-v-ebea8dba"]]), eo = {
2254
2260
  class: "td-skeleton",
2255
2261
  role: "status",
2256
2262
  "aria-label": "Loading"
2257
- }, to = /*#__PURE__*/ A(/* @__PURE__ */ B({
2263
+ }, to = /*#__PURE__*/ k(/* @__PURE__ */ z({
2258
2264
  __name: "TdSkeleton",
2259
2265
  props: { lines: { default: 5 } },
2260
2266
  setup(e) {
@@ -2268,13 +2274,13 @@ var Ba = {
2268
2274
  55,
2269
2275
  72
2270
2276
  ];
2271
- return (n, r) => (H(), I("div", eo, [(H(!0), I(M, null, W(e.lines, (e) => (H(), I("div", {
2277
+ return (n, r) => (H(), F("div", eo, [(H(!0), F(j, null, W(e.lines, (e) => (H(), F("div", {
2272
2278
  key: e,
2273
2279
  class: "td-skeleton-line",
2274
- style: nt({ width: `${t[(e - 1) % t.length]}%` })
2280
+ style: V({ width: `${t[(e - 1) % t.length]}%` })
2275
2281
  }, null, 4))), 128))]));
2276
2282
  }
2277
- }), [["__scopeId", "data-v-f78bb079"]]), no = /*#__PURE__*/ A(/* @__PURE__ */ B({
2283
+ }), [["__scopeId", "data-v-f78bb079"]]), no = /*#__PURE__*/ k(/* @__PURE__ */ z({
2278
2284
  __name: "TdSidebarNav",
2279
2285
  props: {
2280
2286
  tree: {},
@@ -2282,16 +2288,16 @@ var Ba = {
2282
2288
  ready: { type: Boolean }
2283
2289
  },
2284
2290
  setup(e) {
2285
- let t = Ie(), n = J("scrollElement");
2291
+ let t = Le(), n = J("scrollElement");
2286
2292
  return Y(() => t.path, () => {
2287
- tt(() => {
2293
+ nt(() => {
2288
2294
  n.value?.querySelector(".is-active")?.scrollIntoView({ block: "nearest" });
2289
2295
  });
2290
- }, { immediate: !0 }), (t, r) => (H(), I("div", {
2296
+ }, { immediate: !0 }), (t, r) => (H(), F("div", {
2291
2297
  ref_key: "scrollElement",
2292
2298
  ref: n,
2293
2299
  class: "td-sidebar-scroll"
2294
- }, [!e.searchActive && !e.ready ? (H(), P(to, { key: 0 })) : e.searchActive ? F("", !0) : (H(), P(ni, {
2300
+ }, [!e.searchActive && !e.ready ? (H(), N(to, { key: 0 })) : e.searchActive ? P("", !0) : (H(), N(ni, {
2295
2301
  key: 1,
2296
2302
  tree: e.tree
2297
2303
  }, null, 8, ["tree"]))], 512));
@@ -2299,16 +2305,16 @@ var Ba = {
2299
2305
  }), [["__scopeId", "data-v-ca83b6cd"]]), ro = { class: "td-sidebar-icons" }, io = ["href", "aria-label"], ao = {
2300
2306
  key: 1,
2301
2307
  class: "td-sidebar-icon-sep"
2302
- }, oo = ["href", "aria-label"], so = /*#__PURE__*/ A(/* @__PURE__ */ B({
2308
+ }, oo = ["href", "aria-label"], so = /*#__PURE__*/ k(/* @__PURE__ */ z({
2303
2309
  __name: "TdSidebarIcons",
2304
2310
  props: { tree: {} },
2305
2311
  emits: ["search"],
2306
2312
  setup(n, { emit: r }) {
2307
- let i = r, a = Ie(), { withBase: o } = j(), u = N(() => n.tree.entries.find((e) => e.kind === "file" && d(e.item.filepath))?.item), f = N(() => {
2313
+ let i = r, a = Le(), { withBase: o } = A(), u = M(() => n.tree.entries.find((e) => e.kind === "file" && d(e.item.filepath))?.item), f = M(() => {
2308
2314
  let e = [];
2309
2315
  for (let r of n.tree.entries) {
2310
2316
  if (r.kind !== "dir") continue;
2311
- let n = r.node, i = w("", n.name), a = l(n), u = a ? t(a.filepath) : s(i), d = a?.label ?? c(n.name), f = a?.icon ? Le(a.icon.name) : void 0;
2317
+ let n = r.node, i = w("", n.name), a = l(n), u = a ? t(a.filepath) : s(i), d = a?.label ?? c(n.name), f = a?.icon ? Re(a.icon.name) : void 0;
2312
2318
  e.push({
2313
2319
  label: d,
2314
2320
  href: o(u),
@@ -2325,45 +2331,45 @@ var Ba = {
2325
2331
  function m(t) {
2326
2332
  return a.path === t || e(t, a.path);
2327
2333
  }
2328
- return (e, n) => (H(), I("div", ro, [
2329
- z(Fr, {
2334
+ return (e, n) => (H(), F("div", ro, [
2335
+ R(Nr, {
2330
2336
  text: "Search",
2331
2337
  always: ""
2332
2338
  }, {
2333
- default: X(() => [L("button", {
2339
+ default: X(() => [I("button", {
2334
2340
  class: "td-sidebar-icon-btn",
2335
2341
  type: "button",
2336
2342
  "aria-label": "Search",
2337
2343
  onClick: p
2338
- }, [z(q(Ve), { size: 16 })])]),
2344
+ }, [R(q(He), { size: 16 })])]),
2339
2345
  _: 1
2340
2346
  }),
2341
- u.value ? (H(), P(Fr, {
2347
+ u.value ? (H(), N(Nr, {
2342
2348
  key: 0,
2343
2349
  text: u.value.label ?? "Home",
2344
2350
  always: ""
2345
2351
  }, {
2346
- default: X(() => [L("a", {
2352
+ default: X(() => [I("a", {
2347
2353
  href: q(o)(q(t)(u.value.filepath)),
2348
- class: V(["td-sidebar-icon-btn", { "is-active": m(q(t)(u.value.filepath)) }]),
2354
+ class: B(["td-sidebar-icon-btn", { "is-active": m(q(t)(u.value.filepath)) }]),
2349
2355
  "aria-label": u.value.label ?? "Home"
2350
- }, [z(q(le), { size: 16 })], 10, io)]),
2356
+ }, [R(q(ue), { size: 16 })], 10, io)]),
2351
2357
  _: 1
2352
- }, 8, ["text"])) : F("", !0),
2353
- f.value.length ? (H(), I("div", ao)) : F("", !0),
2354
- (H(!0), I(M, null, W(f.value, (e) => (H(), P(Fr, {
2358
+ }, 8, ["text"])) : P("", !0),
2359
+ f.value.length ? (H(), F("div", ao)) : P("", !0),
2360
+ (H(!0), F(j, null, W(f.value, (e) => (H(), N(Nr, {
2355
2361
  key: e.href,
2356
2362
  text: e.label,
2357
2363
  always: ""
2358
2364
  }, {
2359
- default: X(() => [L("a", {
2365
+ default: X(() => [I("a", {
2360
2366
  href: e.href,
2361
- class: V(["td-sidebar-icon-btn", { "is-active": m(e.path) }]),
2367
+ class: B(["td-sidebar-icon-btn", { "is-active": m(e.path) }]),
2362
2368
  "aria-label": e.label
2363
- }, [e.isFallback ? (H(), P(q(ce), {
2369
+ }, [e.isFallback ? (H(), N(q(le), {
2364
2370
  key: 1,
2365
2371
  size: 16
2366
- })) : (H(), P(ut(e.icon), {
2372
+ })) : (H(), N(ut(e.icon), {
2367
2373
  key: 0,
2368
2374
  size: 16
2369
2375
  }))], 10, oo)]),
@@ -2371,7 +2377,7 @@ var Ba = {
2371
2377
  }, 1032, ["text"]))), 128))
2372
2378
  ]));
2373
2379
  }
2374
- }), [["__scopeId", "data-v-a8248b04"]]);
2380
+ }), [["__scopeId", "data-v-48b69ea7"]]);
2375
2381
  // src/client/theme-default/components/TdSiteSearch/highlight.ts
2376
2382
  function co(e, t) {
2377
2383
  if (!e || !t) return f(e);
@@ -2385,13 +2391,13 @@ function co(e, t) {
2385
2391
  // src/client/theme-default/components/TdSiteSearch/useSiteSearch.ts
2386
2392
  var lo = 120;
2387
2393
  function uo() {
2388
- let e = Pe(), t, n = ft([]), r = ft(!1);
2394
+ let e = Fe(), t, n = ft([]), r = ft(!1);
2389
2395
  Y(e, () => {
2390
2396
  t = void 0;
2391
2397
  });
2392
2398
  function i() {
2393
2399
  if (t) return t;
2394
- if (e.value) return t = Qe(ae.loadJSON(e.value, {
2400
+ if (e.value) return t = $e(ae.loadJSON(e.value, {
2395
2401
  fields: v,
2396
2402
  storeFields: x
2397
2403
  })), t;
@@ -2464,16 +2470,16 @@ var fo = {
2464
2470
  ], go = ["innerHTML"], _o = { class: "td-palette-item-path" }, vo = { class: "td-palette-group-label" }, yo = { class: "td-palette-item-label" }, bo = {
2465
2471
  key: 1,
2466
2472
  class: "td-palette-empty"
2467
- }, xo = { class: "td-palette-footer" }, So = /*#__PURE__*/ A(/* @__PURE__ */ B({
2473
+ }, xo = { class: "td-palette-footer" }, So = /*#__PURE__*/ k(/* @__PURE__ */ z({
2468
2474
  __name: "TdCommandPalette",
2469
2475
  emits: ["toggle-sidebar", "show-shortcuts"],
2470
2476
  setup(e, { expose: t, emit: r }) {
2471
- let i = r, a = U(!1), o = U(""), s = U(0), c = J("input"), l = J("results"), u = Ie(), d = we(), { withBase: f } = j(), { previous: p, next: m } = wa(), { results: h, search: g, cancel: _ } = uo(), v = N(() => o.value.trim());
2477
+ let i = r, a = U(!1), o = U(""), s = U(0), c = J("input"), l = J("results"), u = Le(), d = Te(), { withBase: f } = A(), { previous: p, next: m } = wa(), { results: h, search: g, cancel: _ } = uo(), v = M(() => o.value.trim());
2472
2478
  function y() {
2473
2479
  a.value = !1, _();
2474
2480
  }
2475
2481
  function b() {
2476
- o.value = "", a.value = !0, s.value = 0, tt(() => c.value?.focus());
2482
+ o.value = "", a.value = !0, s.value = 0, nt(() => c.value?.focus());
2477
2483
  }
2478
2484
  t({
2479
2485
  open: b,
@@ -2481,10 +2487,10 @@ var fo = {
2481
2487
  }), Y(v, (e, t, n) => {
2482
2488
  n(() => _()), g(e), s.value = 0;
2483
2489
  });
2484
- let x = N(() => {
2490
+ let x = M(() => {
2485
2491
  let e = n(u.path);
2486
2492
  return e === "/" ? void 0 : e;
2487
- }), S = N(() => {
2493
+ }), S = M(() => {
2488
2494
  let e = [];
2489
2495
  return m.value && e.push({
2490
2496
  id: "nav-next",
@@ -2525,18 +2531,18 @@ var fo = {
2525
2531
  navigator.clipboard.writeText(window.location.href).catch(() => {}), y();
2526
2532
  }
2527
2533
  }), e;
2528
- }), C = N(() => {
2534
+ }), C = M(() => {
2529
2535
  if (!v.value) return S.value;
2530
2536
  let e = v.value.toLowerCase();
2531
2537
  return S.value.filter((t) => t.label.toLowerCase().includes(e) || t.group.toLowerCase().includes(e));
2532
- }), w = N(() => {
2538
+ }), w = M(() => {
2533
2539
  let e = /* @__PURE__ */ new Map();
2534
2540
  for (let t of C.value) e.has(t.group) || e.set(t.group, []), e.get(t.group).push(t);
2535
2541
  return [...e.entries()].map(([e, t]) => ({
2536
2542
  name: e,
2537
2543
  commands: t
2538
2544
  }));
2539
- }), T = N(() => h.value.length + C.value.length);
2545
+ }), T = M(() => h.value.length + C.value.length);
2540
2546
  function E(e) {
2541
2547
  return h.value.length + C.value.indexOf(e);
2542
2548
  }
@@ -2566,16 +2572,16 @@ var fo = {
2566
2572
  requestAnimationFrame(() => {
2567
2573
  l.value?.querySelector(".is-selected")?.scrollIntoView({ block: "nearest" });
2568
2574
  });
2569
- }), (e, t) => (H(), P(Je, { to: "body" }, [a.value ? (H(), I(M, { key: 0 }, [L("div", {
2575
+ }), (e, t) => (H(), N(Ye, { to: "body" }, [a.value ? (H(), F(j, { key: 0 }, [I("div", {
2570
2576
  class: "td-palette-scrim",
2571
2577
  onClick: y
2572
- }), L("div", fo, [
2573
- L("div", po, [
2574
- z(q(Ve), {
2578
+ }), I("div", fo, [
2579
+ I("div", po, [
2580
+ R(q(He), {
2575
2581
  size: 14,
2576
2582
  class: "td-palette-input-icon"
2577
2583
  }),
2578
- vt(L("input", {
2584
+ vt(I("input", {
2579
2585
  ref: "input",
2580
2586
  "onUpdate:modelValue": t[0] ||= (e) => o.value = e,
2581
2587
  class: "td-palette-input",
@@ -2585,54 +2591,53 @@ var fo = {
2585
2591
  spellcheck: "false",
2586
2592
  onKeydown: ee
2587
2593
  }, null, 544), [[ht, o.value]]),
2588
- L("button", {
2594
+ I("button", {
2589
2595
  class: "td-palette-esc",
2590
2596
  type: "button",
2591
2597
  "aria-label": "Close",
2592
2598
  onClick: y
2593
2599
  }, " esc ")
2594
2600
  ]),
2595
- L("div", mo, [
2596
- q(h).length > 0 ? (H(), I(M, { key: 0 }, [t[1] ||= L("div", { class: "td-palette-group-label" }, " Pages ", -1), (H(!0), I(M, null, W(q(h), (e, t) => (H(), I("a", {
2601
+ I("div", mo, [
2602
+ q(h).length > 0 ? (H(), F(j, { key: 0 }, [t[1] ||= I("div", { class: "td-palette-group-label" }, " Pages ", -1), (H(!0), F(j, null, W(q(h), (e, t) => (H(), F("a", {
2597
2603
  key: e.id,
2598
2604
  href: q(f)(e.id),
2599
- class: V(["td-palette-item", { "is-selected": t === s.value }]),
2605
+ class: B(["td-palette-item", { "is-selected": t === s.value }]),
2600
2606
  onClick: bt(() => ne(t), ["prevent"]),
2601
2607
  onMouseenter: () => s.value = t
2602
- }, [L("span", {
2608
+ }, [I("span", {
2603
2609
  class: "td-palette-item-label",
2604
2610
  innerHTML: q(co)(e.title, v.value)
2605
- }, null, 8, go), L("span", _o, K(e.id), 1)], 42, ho))), 128))], 64)) : F("", !0),
2606
- (H(!0), I(M, null, W(w.value, (e) => (H(), I(M, { key: e.name }, [L("div", vo, K(e.name), 1), (H(!0), I(M, null, W(e.commands, (e) => (H(), P(ut(e.href ? "a" : "button"), et({ key: e.id }, { ref_for: !0 }, e.href ? { href: e.href } : { type: "button" }, {
2611
+ }, null, 8, go), I("span", _o, K(e.id), 1)], 42, ho))), 128))], 64)) : P("", !0),
2612
+ (H(!0), F(j, null, W(w.value, (e) => (H(), F(j, { key: e.name }, [I("div", vo, K(e.name), 1), (H(!0), F(j, null, W(e.commands, (e) => (H(), N(ut(e.href ? "a" : "button"), tt({ key: e.id }, { ref_for: !0 }, e.href ? { href: e.href } : { type: "button" }, {
2607
2613
  class: ["td-palette-item", { "is-selected": E(e) === s.value }],
2608
2614
  onClick: () => te(e),
2609
2615
  onMouseenter: () => s.value = E(e)
2610
2616
  }), {
2611
- default: X(() => [L("span", yo, K(e.label), 1), e.keys ? (H(), P($, {
2617
+ default: X(() => [I("span", yo, K(e.label), 1), e.keys ? (H(), N($, {
2612
2618
  key: 0,
2613
2619
  keys: e.keys
2614
- }, null, 8, ["keys"])) : F("", !0)]),
2620
+ }, null, 8, ["keys"])) : P("", !0)]),
2615
2621
  _: 2
2616
2622
  }, 1040, [
2617
2623
  "class",
2618
2624
  "onClick",
2619
2625
  "onMouseenter"
2620
2626
  ]))), 128))], 64))), 128)),
2621
- T.value === 0 && v.value ? (H(), I("div", bo, " No results for \"" + K(v.value) + "\" ", 1)) : F("", !0)
2627
+ T.value === 0 && v.value ? (H(), F("div", bo, " No results for \"" + K(v.value) + "\" ", 1)) : P("", !0)
2622
2628
  ], 512),
2623
- L("div", xo, [
2624
- L("span", null, [
2625
- z($, { keys: [q(Q).ArrowUp] }, null, 8, ["keys"]),
2626
- t[2] ||= R(),
2627
- z($, { keys: [q(Q).ArrowDown] }, null, 8, ["keys"]),
2628
- t[3] ||= R(" navigate", -1)
2629
+ I("div", xo, [
2630
+ I("span", null, [
2631
+ R($, { keys: [q(Q).ArrowUp] }, null, 8, ["keys"]),
2632
+ R($, { keys: [q(Q).ArrowDown] }, null, 8, ["keys"]),
2633
+ t[2] ||= L(" navigate ", -1)
2629
2634
  ]),
2630
- L("span", null, [z($, { keys: [q(Q).Enter] }, null, 8, ["keys"]), t[4] ||= R(" select", -1)]),
2631
- L("span", null, [z($, { keys: [q(Q).Escape] }, null, 8, ["keys"]), t[5] ||= R(" close", -1)])
2635
+ I("span", null, [R($, { keys: [q(Q).Enter] }, null, 8, ["keys"]), t[3] ||= L(" select ", -1)]),
2636
+ I("span", null, [R($, { keys: [q(Q).Escape] }, null, 8, ["keys"]), t[4] ||= L(" close ", -1)])
2632
2637
  ])
2633
- ])], 64)) : F("", !0)]));
2638
+ ])], 64)) : P("", !0)]));
2634
2639
  }
2635
- }), [["__scopeId", "data-v-12ce6133"]]), Co = ["onKeydown"], wo = { class: "td-shortcuts-header" }, To = { class: "td-shortcuts-table" }, Eo = /*#__PURE__*/ A(/* @__PURE__ */ B({
2640
+ }), [["__scopeId", "data-v-a0789270"]]), Co = ["onKeydown"], wo = { class: "td-shortcuts-header" }, To = { class: "td-shortcuts-table" }, Eo = /*#__PURE__*/ k(/* @__PURE__ */ z({
2636
2641
  __name: "TdShortcutsDialog",
2637
2642
  props: { open: { type: Boolean } },
2638
2643
  emits: ["close"],
@@ -2642,11 +2647,11 @@ var fo = {
2642
2647
  n("close");
2643
2648
  }
2644
2649
  return Y(() => e.open, (e) => {
2645
- e && tt(() => r.value?.focus());
2646
- }), (t, n) => (H(), P(Je, { to: "body" }, [e.open ? (H(), I(M, { key: 0 }, [L("div", {
2650
+ e && nt(() => r.value?.focus());
2651
+ }), (t, n) => (H(), N(Ye, { to: "body" }, [e.open ? (H(), F(j, { key: 0 }, [I("div", {
2647
2652
  class: "td-shortcuts-scrim",
2648
2653
  onClick: i
2649
- }), L("div", {
2654
+ }), I("div", {
2650
2655
  ref: "dialog",
2651
2656
  class: "td-shortcuts-dialog",
2652
2657
  role: "dialog",
@@ -2654,19 +2659,19 @@ var fo = {
2654
2659
  "aria-label": "Keyboard shortcuts",
2655
2660
  tabindex: "-1",
2656
2661
  onKeydown: yt(bt(i, ["stop"]), ["esc"])
2657
- }, [L("div", wo, [n[0] ||= L("h2", { class: "td-shortcuts-title" }, " Keyboard shortcuts ", -1), L("button", {
2662
+ }, [I("div", wo, [n[0] ||= I("h2", { class: "td-shortcuts-title" }, " Keyboard shortcuts ", -1), I("button", {
2658
2663
  class: "td-shortcuts-close",
2659
2664
  type: "button",
2660
2665
  "aria-label": "Close",
2661
2666
  onClick: i
2662
- }, [z(q(Ne), { size: 16 })])]), L("table", To, [L("tbody", null, [
2663
- L("tr", null, [n[1] ||= L("td", null, "Search", -1), L("td", null, [z($, { keys: [q(Q).Meta, q(Q).k] }, null, 8, ["keys"])])]),
2664
- L("tr", null, [n[2] ||= L("td", null, "Commands", -1), L("td", null, [z($, { keys: [q(Q).Meta, q(Q).FSlash] }, null, 8, ["keys"])])]),
2665
- L("tr", null, [n[3] ||= L("td", null, "Next page", -1), L("td", null, [z($, { keys: [q(Q).Control, q(Q).ArrowRight] }, null, 8, ["keys"])])]),
2666
- L("tr", null, [n[4] ||= L("td", null, "Previous page", -1), L("td", null, [z($, { keys: [q(Q).Control, q(Q).ArrowLeft] }, null, 8, ["keys"])])]),
2667
- L("tr", null, [n[5] ||= L("td", null, "Toggle sidebar", -1), L("td", null, [z($, { keys: [q(Q).Meta, q(Q).Backslash] }, null, 8, ["keys"])])]),
2668
- L("tr", null, [n[6] ||= L("td", null, "Close", -1), L("td", null, [z($, { keys: [q(Q).Escape] }, null, 8, ["keys"])])])
2669
- ])])], 40, Co)], 64)) : F("", !0)]));
2667
+ }, [R(q(Pe), { size: 16 })])]), I("table", To, [I("tbody", null, [
2668
+ I("tr", null, [n[1] ||= I("td", null, "Search", -1), I("td", null, [R($, { keys: [q(Q).Meta, q(Q).k] }, null, 8, ["keys"])])]),
2669
+ I("tr", null, [n[2] ||= I("td", null, "Commands", -1), I("td", null, [R($, { keys: [q(Q).Meta, q(Q).FSlash] }, null, 8, ["keys"])])]),
2670
+ I("tr", null, [n[3] ||= I("td", null, "Next page", -1), I("td", null, [R($, { keys: [q(Q).Control, q(Q).ArrowRight] }, null, 8, ["keys"])])]),
2671
+ I("tr", null, [n[4] ||= I("td", null, "Previous page", -1), I("td", null, [R($, { keys: [q(Q).Control, q(Q).ArrowLeft] }, null, 8, ["keys"])])]),
2672
+ I("tr", null, [n[5] ||= I("td", null, "Toggle sidebar", -1), I("td", null, [R($, { keys: [q(Q).Meta, q(Q).Backslash] }, null, 8, ["keys"])])]),
2673
+ I("tr", null, [n[6] ||= I("td", null, "Close", -1), I("td", null, [R($, { keys: [q(Q).Escape] }, null, 8, ["keys"])])])
2674
+ ])])], 40, Co)], 64)) : P("", !0)]));
2670
2675
  }
2671
2676
  }), [["__scopeId", "data-v-09d6a93c"]]), Do = { class: "td-search" }, Oo = { class: "td-search-input-wrap" }, ko = {
2672
2677
  key: 2,
@@ -2677,7 +2682,7 @@ var fo = {
2677
2682
  }, jo = ["href"], Mo = ["innerHTML"], No = { class: "td-search-result-path" }, Po = ["innerHTML"], Fo = {
2678
2683
  key: 1,
2679
2684
  class: "td-search-empty"
2680
- }, Io = /*#__PURE__*/ A(/* @__PURE__ */ B({
2685
+ }, Io = /*#__PURE__*/ k(/* @__PURE__ */ z({
2681
2686
  __name: "TdSiteSearch",
2682
2687
  props: {
2683
2688
  active: {
@@ -2688,9 +2693,9 @@ var fo = {
2688
2693
  query: { default: "" },
2689
2694
  queryModifiers: {}
2690
2695
  },
2691
- emits: /*@__PURE__*/ $e(["select"], ["update:active", "update:query"]),
2696
+ emits: /*@__PURE__*/ et(["select"], ["update:active", "update:query"]),
2692
2697
  setup(e, { expose: t, emit: n }) {
2693
- let r = mt(e, "active"), i = mt(e, "query"), o = n, s = Ie(), { withBase: l } = j(), { results: u, searching: d, indexLoaded: f, search: p, cancel: m } = uo(), h = U(-1), g = N(() => 0 < i.value.trim().length), _ = N(() => {
2698
+ let r = mt(e, "active"), i = mt(e, "query"), o = n, s = Le(), { withBase: l } = A(), { results: u, searching: d, indexLoaded: f, search: p, cancel: m } = uo(), h = U(-1), g = M(() => 0 < i.value.trim().length), _ = M(() => {
2694
2699
  let e = [], t = /* @__PURE__ */ new Map();
2695
2700
  for (let n of u.value) {
2696
2701
  let r = a(n.id), i = t.get(r);
@@ -2714,7 +2719,7 @@ var fo = {
2714
2719
  function v() {
2715
2720
  i.value = "";
2716
2721
  }
2717
- let y = N(() => _.value.flatMap((e) => e.results)), b = N(() => {
2722
+ let y = M(() => _.value.flatMap((e) => e.results)), b = M(() => {
2718
2723
  let e = /* @__PURE__ */ new Map();
2719
2724
  for (let t = 0; t < y.value.length; t++) e.set(y.value[t].id, t);
2720
2725
  return e;
@@ -2754,13 +2759,13 @@ var fo = {
2754
2759
  get isFocused() {
2755
2760
  return document.activeElement === w.value;
2756
2761
  }
2757
- }), (e, t) => (H(), I("div", Do, [
2758
- L("div", Oo, [
2759
- z(q(Ve), {
2762
+ }), (e, t) => (H(), F("div", Do, [
2763
+ I("div", Oo, [
2764
+ R(q(He), {
2760
2765
  size: 14,
2761
2766
  class: "td-search-icon"
2762
2767
  }),
2763
- vt(L("input", {
2768
+ vt(I("input", {
2764
2769
  ref_key: "searchInput",
2765
2770
  ref: w,
2766
2771
  "onUpdate:modelValue": t[0] ||= (e) => i.value = e,
@@ -2770,65 +2775,65 @@ var fo = {
2770
2775
  placeholder: "Search...",
2771
2776
  onKeydown: x
2772
2777
  }, null, 544), [[ht, i.value]]),
2773
- !g.value && !q(d) ? (H(), P($, {
2778
+ !g.value && !q(d) ? (H(), N($, {
2774
2779
  key: 0,
2775
2780
  keys: [q(Q).Meta, q(Q).k],
2776
2781
  class: "td-search-kbd"
2777
- }, null, 8, ["keys"])) : F("", !0),
2778
- q(d) || !q(f) ? (H(), P(q(At), {
2782
+ }, null, 8, ["keys"])) : P("", !0),
2783
+ q(d) || !q(f) ? (H(), N(q(At), {
2779
2784
  key: 1,
2780
2785
  size: 12,
2781
2786
  class: "td-search-spinner"
2782
- })) : g.value ? (H(), I("span", ko, K(q(u).length), 1)) : F("", !0),
2783
- i.value ? (H(), I("button", {
2787
+ })) : g.value ? (H(), F("span", ko, K(q(u).length), 1)) : P("", !0),
2788
+ i.value ? (H(), F("button", {
2784
2789
  key: 3,
2785
2790
  class: "td-search-clear",
2786
2791
  type: "button",
2787
2792
  "aria-label": "Clear search",
2788
2793
  onClick: v
2789
- }, [z(q(Ne), { size: 12 })])) : F("", !0)
2794
+ }, [R(q(Pe), { size: 12 })])) : P("", !0)
2790
2795
  ]),
2791
- g.value && q(u).length > 0 ? (H(), I("div", Ao, [(H(!0), I(M, null, W(_.value, (e) => (H(), I("div", {
2796
+ g.value && q(u).length > 0 ? (H(), F("div", Ao, [(H(!0), F(j, null, W(_.value, (e) => (H(), F("div", {
2792
2797
  key: e.pageUrl,
2793
2798
  class: "td-search-group"
2794
- }, [(H(!0), I(M, null, W(e.results, (e) => (H(), I("a", {
2799
+ }, [(H(!0), F(j, null, W(e.results, (e) => (H(), F("a", {
2795
2800
  key: e.id,
2796
2801
  href: q(l)(e.id),
2797
- class: V(["td-search-result", {
2802
+ class: B(["td-search-result", {
2798
2803
  "is-selected": b.value.get(e.id) === h.value,
2799
2804
  "is-current": q(l)(e.id) === q(s).path
2800
2805
  }]),
2801
2806
  onClick: S
2802
2807
  }, [
2803
- L("span", {
2808
+ I("span", {
2804
2809
  class: "td-search-result-title",
2805
2810
  innerHTML: q(co)(e.title, i.value)
2806
2811
  }, null, 8, Mo),
2807
- L("span", No, K(e.id), 1),
2808
- e.excerpt ? (H(), I("span", {
2812
+ I("span", No, K(e.id), 1),
2813
+ e.excerpt ? (H(), F("span", {
2809
2814
  key: 0,
2810
2815
  class: "td-search-result-excerpt",
2811
2816
  innerHTML: q(co)(e.excerpt, i.value)
2812
- }, null, 8, Po)) : F("", !0)
2813
- ], 10, jo))), 128))]))), 128))])) : F("", !0),
2814
- g.value && q(u).length === 0 ? (H(), I("div", Fo, " No results for \"" + K(i.value) + "\" ", 1)) : F("", !0)
2817
+ }, null, 8, Po)) : P("", !0)
2818
+ ], 10, jo))), 128))]))), 128))])) : P("", !0),
2819
+ g.value && q(u).length === 0 ? (H(), F("div", Fo, " No results for \"" + K(i.value) + "\" ", 1)) : P("", !0)
2815
2820
  ]));
2816
2821
  }
2817
- }), [["__scopeId", "data-v-f42853f1"]]), Lo = /* @__PURE__ */ B({
2822
+ }), [["__scopeId", "data-v-f42853f1"]]), Lo = /* @__PURE__ */ z({
2818
2823
  __name: "TdThemeToggle",
2819
2824
  setup(e) {
2820
- let { isDark: t, toggle: n } = E();
2821
- return (e, r) => (H(), P(Ut, {
2825
+ let { isDark: t, toggle: n, lightToggleStyle: r, darkToggleStyle: i } = E();
2826
+ return (e, a) => (H(), N(Fr, {
2822
2827
  label: q(t) ? "Switch to light mode" : "Switch to dark mode",
2823
2828
  onClick: q(n)
2824
2829
  }, {
2825
- default: X(() => [q(t) ? (H(), P(q(xe), {
2826
- key: 0,
2830
+ default: X(() => [R(q(Se), {
2831
+ style: V(q(i)),
2827
2832
  size: 18
2828
- })) : (H(), P(q(Be), {
2829
- key: 1,
2833
+ }, null, 8, ["style"]), R(q(Ve), {
2834
+ style: V(q(r)),
2830
2835
  size: 18
2831
- }))]),
2836
+ }, null, 8, ["style"])]),
2832
2837
  _: 1
2833
2838
  }, 8, ["label", "onClick"]));
2834
2839
  }
@@ -2922,7 +2927,7 @@ var Uo = ["id"], Wo = { class: "td-diagram-frame" }, Go = ["innerHTML"], Ko = {
2922
2927
  }, es = ["aria-label"], ts = { class: "td-diagram-modal-header" }, ns = { class: "td-diagram-modal-header-left" }, rs = { class: "td-diagram-modal-title" }, is = { class: "td-diagram-modal-chip" }, as = { class: "td-diagram-modal-header-right" }, os = ["aria-pressed"], ss = { class: "td-diagram-button-label" }, cs = { class: "td-diagram-modal-body" }, ls = {
2923
2928
  key: 0,
2924
2929
  class: "td-diagram-modal-code-panel"
2925
- }, us = { class: "td-diagram-modal-code-panel-header" }, ds = { class: "td-diagram-modal-code-panel-body" }, fs = { class: "td-diagram-code td-diagram-code--modal" }, ps = { class: "td-diagram-code-number" }, ms = { class: "td-diagram-code-column" }, hs = ["innerHTML"], gs = { class: "td-diagram-modal-hint" }, _s = .15, vs = 5, ys = 4, bs = .9, xs = .82, Ss = 1.25, Cs = .8, ws = 1.6, Ts = 1400, Es = 20, Ds = /*#__PURE__*/ A(/* @__PURE__ */ B({
2930
+ }, us = { class: "td-diagram-modal-code-panel-header" }, ds = { class: "td-diagram-modal-code-panel-body" }, fs = { class: "td-diagram-code td-diagram-code--modal" }, ps = { class: "td-diagram-code-number" }, ms = { class: "td-diagram-code-column" }, hs = ["innerHTML"], gs = { class: "td-diagram-modal-hint" }, _s = .15, vs = 5, ys = 4, bs = .9, xs = .82, Ss = 1.25, Cs = .8, ws = 1.6, Ts = 1400, Es = 20, Ds = /*#__PURE__*/ k(/* @__PURE__ */ z({
2926
2931
  __name: "TdDiagram",
2927
2932
  props: {
2928
2933
  svg: {},
@@ -2940,7 +2945,7 @@ var Uo = ["id"], Wo = { class: "td-diagram-frame" }, Go = ["innerHTML"], Ko = {
2940
2945
  x: 0,
2941
2946
  y: 0,
2942
2947
  scale: 1
2943
- }), h = N(() => {
2948
+ }), h = M(() => {
2944
2949
  let t = e.svg.match(/viewBox=["']([^"']+)["']/);
2945
2950
  if (t) {
2946
2951
  let e = t[1].split(/[\s,]+/);
@@ -2957,22 +2962,22 @@ var Uo = ["id"], Wo = { class: "td-diagram-frame" }, Go = ["innerHTML"], Ko = {
2957
2962
  width: 400,
2958
2963
  height: 300
2959
2964
  };
2960
- }), g = N(() => e.source.split("\n")), _ = N(() => g.value.length), v = N(() => `${Math.round(p.value.scale * 100)}%`), y = N(() => `${Math.round(m.value.scale * 100)}%`), b = N(() => e.label === "Mermaid" ? "mmd" : e.label === "D2" ? "d2" : "txt"), x = N(() => ({
2965
+ }), g = M(() => e.source.split("\n")), _ = M(() => g.value.length), v = M(() => `${Math.round(p.value.scale * 100)}%`), y = M(() => `${Math.round(m.value.scale * 100)}%`), b = M(() => e.label === "Mermaid" ? "mmd" : e.label === "D2" ? "d2" : "txt"), x = M(() => ({
2961
2966
  width: `${h.value.width}px`,
2962
2967
  height: `${h.value.height}px`
2963
- })), S = N(() => {
2968
+ })), S = M(() => {
2964
2969
  let { x: e, y: t, scale: n } = p.value;
2965
2970
  return {
2966
2971
  ...x.value,
2967
2972
  transform: `translate(${e}px, ${t}px) scale(${n})`
2968
2973
  };
2969
- }), C = N(() => {
2974
+ }), C = M(() => {
2970
2975
  let { x: e, y: t, scale: n } = m.value;
2971
2976
  return {
2972
2977
  ...x.value,
2973
2978
  transform: `translate(${e}px, ${t}px) scale(${n})`
2974
2979
  };
2975
- }), w = N(() => {
2980
+ }), w = M(() => {
2976
2981
  let { x: e, y: t, scale: n } = m.value, r = Es * n;
2977
2982
  return {
2978
2983
  backgroundSize: `${r}px ${r}px`,
@@ -2983,7 +2988,7 @@ var Uo = ["id"], Wo = { class: "td-diagram-frame" }, Go = ["innerHTML"], Ko = {
2983
2988
  return Math.min(vs, Math.max(_s, e));
2984
2989
  }
2985
2990
  function E() {
2986
- l.value = !1, Re?.(), Re = void 0, s.value?.focus();
2991
+ l.value = !1, ze?.(), ze = void 0, s.value?.focus();
2987
2992
  }
2988
2993
  function ee(e, t, n, r, i) {
2989
2994
  if (n <= 0 || r <= 0) return {
@@ -3005,7 +3010,7 @@ var Uo = ["id"], Wo = { class: "td-diagram-frame" }, Go = ["innerHTML"], Ko = {
3005
3010
  ne(f);
3006
3011
  }
3007
3012
  function ne(t) {
3008
- navigator.clipboard.writeText(e.source).catch(() => {}), t.value = !0, clearTimeout(ze), ze = setTimeout(() => {
3013
+ navigator.clipboard.writeText(e.source).catch(() => {}), t.value = !0, clearTimeout(Be), Be = setTimeout(() => {
3009
3014
  t.value = !1;
3010
3015
  }, Ts);
3011
3016
  }
@@ -3018,66 +3023,66 @@ var Uo = ["id"], Wo = { class: "td-diagram-frame" }, Go = ["innerHTML"], Ko = {
3018
3023
  c.href = s, c.download = `${e.diagramId}.svg`, c.click(), URL.revokeObjectURL(s);
3019
3024
  }
3020
3025
  function ie() {
3021
- O(n.value ?? void 0, p, bs);
3026
+ oe(n.value ?? void 0, p, bs);
3022
3027
  }
3023
3028
  function ae() {
3024
- O(i.value ?? void 0, m, xs);
3029
+ oe(i.value ?? void 0, m, xs);
3025
3030
  }
3026
- function O(e, t, n) {
3031
+ function oe(e, t, n) {
3027
3032
  !e || e.offsetWidth <= 0 || (t.value = ee(e.offsetWidth, e.offsetHeight, h.value.width, h.value.height, n));
3028
3033
  }
3029
- function oe(e, t) {
3034
+ function se(e, t) {
3030
3035
  let n = t.getBoundingClientRect(), r = (t.offsetWidth ? n.width / t.offsetWidth : 1) || 1;
3031
3036
  return {
3032
3037
  x: (e.clientX - n.left) / r,
3033
3038
  y: (e.clientY - n.top) / r
3034
3039
  };
3035
3040
  }
3036
- function ce(e) {
3037
- e.target.classList.contains("td-diagram-modal-backdrop") && E();
3038
- }
3039
3041
  function le(e) {
3040
- e.key === "Escape" ? (e.stopPropagation(), E()) : e.key === "+" || e.key === "=" ? de() : e.key === "-" ? fe() : e.key === "0" && ae();
3041
- }
3042
- function ue() {
3043
- xe(n.value ?? void 0, p, Ss);
3042
+ e.target.classList.contains("td-diagram-modal-backdrop") && E();
3044
3043
  }
3045
- function k() {
3046
- xe(n.value ?? void 0, p, Cs);
3044
+ function ue(e) {
3045
+ e.key === "Escape" ? (e.stopPropagation(), E()) : e.key === "+" || e.key === "=" ? fe() : e.key === "-" ? pe() : e.key === "0" && ae();
3047
3046
  }
3048
3047
  function de() {
3049
- xe(i.value ?? void 0, m, Ss);
3048
+ Se(n.value ?? void 0, p, Ss);
3049
+ }
3050
+ function O() {
3051
+ Se(n.value ?? void 0, p, Cs);
3050
3052
  }
3051
3053
  function fe() {
3052
- xe(i.value ?? void 0, m, Cs);
3054
+ Se(i.value ?? void 0, m, Ss);
3053
3055
  }
3054
- function me() {
3056
+ function pe() {
3057
+ Se(i.value ?? void 0, m, Cs);
3058
+ }
3059
+ function he() {
3055
3060
  let e = i.value;
3056
3061
  if (!e) return;
3057
3062
  let t = T(1);
3058
- m.value = be(m.value, e.offsetWidth / 2, e.offsetHeight / 2, t / m.value.scale);
3063
+ m.value = xe(m.value, e.offsetWidth / 2, e.offsetHeight / 2, t / m.value.scale);
3059
3064
  }
3060
- function he() {
3065
+ function ge() {
3061
3066
  l.value = !0, u.value = c.value, m.value = {
3062
3067
  x: 0,
3063
3068
  y: 0,
3064
3069
  scale: 1
3065
- }, tt(() => {
3070
+ }, nt(() => {
3066
3071
  requestAnimationFrame(() => {
3067
- ae(), o.value?.focus({ preventScroll: !0 }), Ee();
3072
+ ae(), o.value?.focus({ preventScroll: !0 }), De();
3068
3073
  });
3069
3074
  });
3070
3075
  }
3071
- function ge() {
3076
+ function _e() {
3072
3077
  c.value = !0;
3073
3078
  }
3074
- function _e() {
3079
+ function ve() {
3075
3080
  c.value = !1;
3076
3081
  }
3077
- function ye() {
3082
+ function be() {
3078
3083
  u.value = !u.value;
3079
3084
  }
3080
- function be(e, t, n, r) {
3085
+ function xe(e, t, n, r) {
3081
3086
  let i = T(e.scale * r), a = i / e.scale;
3082
3087
  return {
3083
3088
  x: t - (t - e.x) * a,
@@ -3085,10 +3090,10 @@ var Uo = ["id"], Wo = { class: "td-diagram-frame" }, Go = ["innerHTML"], Ko = {
3085
3090
  scale: i
3086
3091
  };
3087
3092
  }
3088
- function xe(e, t, n) {
3089
- e && (t.value = be(t.value, e.offsetWidth / 2, e.offsetHeight / 2, n));
3093
+ function Se(e, t, n) {
3094
+ e && (t.value = xe(t.value, e.offsetWidth / 2, e.offsetHeight / 2, n));
3090
3095
  }
3091
- let Se = {
3096
+ let Ce = {
3092
3097
  active: !1,
3093
3098
  startClientX: 0,
3094
3099
  startClientY: 0,
@@ -3096,7 +3101,7 @@ var Uo = ["id"], Wo = { class: "td-diagram-frame" }, Go = ["innerHTML"], Ko = {
3096
3101
  startTransformY: 0,
3097
3102
  moved: !1,
3098
3103
  clientScale: 1
3099
- }, we = {
3104
+ }, Te = {
3100
3105
  active: !1,
3101
3106
  startClientX: 0,
3102
3107
  startClientY: 0,
@@ -3105,23 +3110,23 @@ var Uo = ["id"], Wo = { class: "td-diagram-frame" }, Go = ["innerHTML"], Ko = {
3105
3110
  moved: !1,
3106
3111
  clientScale: 1
3107
3112
  };
3108
- function Te(e) {
3113
+ function Ee(e) {
3109
3114
  function t(t) {
3110
3115
  if (!t.ctrlKey && !t.metaKey) return;
3111
3116
  t.preventDefault();
3112
- let n = oe(t, e), r = Math.exp(-t.deltaY * .01);
3113
- p.value = be(p.value, n.x, n.y, r);
3117
+ let n = se(t, e), r = Math.exp(-t.deltaY * .01);
3118
+ p.value = xe(p.value, n.x, n.y, r);
3114
3119
  }
3115
3120
  return e.addEventListener("wheel", t, { passive: !1 }), () => e.removeEventListener("wheel", t);
3116
3121
  }
3117
- function Ee() {
3122
+ function De() {
3118
3123
  let e = i.value;
3119
3124
  if (!e) return;
3120
3125
  function t(t) {
3121
3126
  if (e) {
3122
3127
  if (t.preventDefault(), t.ctrlKey || t.metaKey) {
3123
- let n = oe(t, e), r = Math.exp(-t.deltaY * .01);
3124
- m.value = be(m.value, n.x, n.y, r);
3128
+ let n = se(t, e), r = Math.exp(-t.deltaY * .01);
3129
+ m.value = xe(m.value, n.x, n.y, r);
3125
3130
  } else {
3126
3131
  let n = (e.offsetWidth ? e.getBoundingClientRect().width / e.offsetWidth : 1) || 1;
3127
3132
  m.value = {
@@ -3132,18 +3137,18 @@ var Uo = ["id"], Wo = { class: "td-diagram-frame" }, Go = ["innerHTML"], Ko = {
3132
3137
  }
3133
3138
  }
3134
3139
  }
3135
- e.addEventListener("wheel", t, { passive: !1 }), Re = () => e.removeEventListener("wheel", t);
3140
+ e.addEventListener("wheel", t, { passive: !1 }), ze = () => e.removeEventListener("wheel", t);
3136
3141
  }
3137
- function De(e, t, n, r) {
3142
+ function Oe(e, t, n, r) {
3138
3143
  if (e.button !== 0) return;
3139
3144
  t.active = !0, t.moved = !1;
3140
3145
  let i = n.getBoundingClientRect();
3141
3146
  t.clientScale = (n.offsetWidth ? i.width / n.offsetWidth : 1) || 1, t.startClientX = e.clientX, t.startClientY = e.clientY, t.startTransformX = r.value.x, t.startTransformY = r.value.y, n.setPointerCapture(e.pointerId), n.style.cursor = "grabbing";
3142
3147
  }
3143
- function Oe(e, t, n, r) {
3148
+ function ke(e, t, n, r) {
3144
3149
  t.active && (t.active = !1, n.releasePointerCapture(e.pointerId), n.style.cursor = "", !t.moved && r && r());
3145
3150
  }
3146
- function ke(e, t, n) {
3151
+ function Ae(e, t, n) {
3147
3152
  if (!t.active) return;
3148
3153
  let r = (e.clientX - t.startClientX) / t.clientScale, i = (e.clientY - t.startClientY) / t.clientScale;
3149
3154
  !t.moved && ys <= Math.hypot(r, i) && (t.moved = !0), t.moved && (n.value = {
@@ -3152,238 +3157,238 @@ var Uo = ["id"], Wo = { class: "td-diagram-frame" }, Go = ["innerHTML"], Ko = {
3152
3157
  scale: n.value.scale
3153
3158
  });
3154
3159
  }
3155
- function je(e) {
3156
- let t = n.value;
3157
- t && De(e, Se, t, p);
3158
- }
3159
3160
  function Me(e) {
3160
3161
  let t = n.value;
3161
- t && Oe(e, Se, t, he);
3162
+ t && Oe(e, Ce, t, p);
3162
3163
  }
3163
- function Pe(e) {
3164
- ke(e, Se, p);
3164
+ function Ne(e) {
3165
+ let t = n.value;
3166
+ t && ke(e, Ce, t, ge);
3165
3167
  }
3166
3168
  function Fe(e) {
3169
+ Ae(e, Ce, p);
3170
+ }
3171
+ function Ie(e) {
3167
3172
  let t = i.value;
3168
3173
  if (!t) return;
3169
- let n = oe(e, t);
3170
- m.value = be(m.value, n.x, n.y, ws);
3174
+ let n = se(e, t);
3175
+ m.value = xe(m.value, n.x, n.y, ws);
3171
3176
  }
3172
- function A(e) {
3177
+ function k(e) {
3173
3178
  let t = i.value;
3174
- t && De(e, we, t, m);
3179
+ t && Oe(e, Te, t, m);
3175
3180
  }
3176
- function j(e) {
3181
+ function A(e) {
3177
3182
  let t = i.value;
3178
- t && Oe(e, we, t);
3183
+ t && ke(e, Te, t);
3179
3184
  }
3180
- function Ie(e) {
3181
- ke(e, we, m);
3185
+ function Le(e) {
3186
+ Ae(e, Te, m);
3182
3187
  }
3183
3188
  Y(u, () => {
3184
- tt(() => ae());
3189
+ nt(() => ae());
3185
3190
  });
3186
- let Le, Re, ze;
3191
+ let Re, ze, Be;
3187
3192
  return it(() => {
3188
3193
  let e = n.value;
3189
3194
  if (!e) return;
3190
3195
  let t = new ResizeObserver(() => {
3191
3196
  0 < e.offsetWidth && 0 < e.offsetHeight && (ie(), t.disconnect());
3192
3197
  });
3193
- t.observe(e), Le = Te(e);
3198
+ t.observe(e), Re = Ee(e);
3194
3199
  }), rt(() => {
3195
- Le?.(), Re?.(), clearTimeout(ze);
3196
- }), (n, r) => (H(), I("figure", {
3200
+ Re?.(), ze?.(), clearTimeout(Be);
3201
+ }), (n, r) => (H(), F("figure", {
3197
3202
  id: e.diagramId,
3198
3203
  class: "td-diagram"
3199
3204
  }, [
3200
- L("div", Wo, [
3201
- vt(L("div", {
3205
+ I("div", Wo, [
3206
+ vt(I("div", {
3202
3207
  ref: "stage",
3203
3208
  class: "td-diagram-stage",
3204
- onPointerdown: je,
3205
- onPointermove: Pe,
3206
- onPointerup: Me,
3207
- onPointercancel: Me
3208
- }, [L("div", {
3209
+ onPointerdown: Me,
3210
+ onPointermove: Fe,
3211
+ onPointerup: Ne,
3212
+ onPointercancel: Ne
3213
+ }, [I("div", {
3209
3214
  ref: "canvas",
3210
3215
  class: "td-diagram-canvas",
3211
- style: nt(S.value),
3216
+ style: V(S.value),
3212
3217
  innerHTML: e.svg
3213
3218
  }, null, 12, Go)], 544), [[gt, !c.value]]),
3214
- vt(L("pre", Ko, [
3215
- r[3] ||= R(" ", -1),
3216
- (H(!0), I(M, null, W(g.value, (e, t) => (H(), I("div", {
3219
+ vt(I("pre", Ko, [
3220
+ r[3] ||= L(" ", -1),
3221
+ (H(!0), F(j, null, W(g.value, (e, t) => (H(), F("div", {
3217
3222
  key: t,
3218
3223
  class: "td-diagram-code-row"
3219
3224
  }, [
3220
- r[0] ||= R("\n ", -1),
3221
- L("span", qo, K(t + 1), 1),
3222
- r[1] ||= R("\n ", -1),
3223
- L("span", Jo, K(e || " "), 1),
3224
- r[2] ||= R("\n ", -1)
3225
+ r[0] ||= L("\n ", -1),
3226
+ I("span", qo, K(t + 1), 1),
3227
+ r[1] ||= L("\n ", -1),
3228
+ I("span", Jo, K(e || " "), 1),
3229
+ r[2] ||= L("\n ", -1)
3225
3230
  ]))), 128)),
3226
- r[4] ||= R("\n ", -1)
3231
+ r[4] ||= L("\n ", -1)
3227
3232
  ], 512), [[gt, c.value]]),
3228
- L("div", Yo, [
3229
- L("span", Xo, K(e.label), 1),
3230
- L("div", Zo, [L("button", {
3233
+ I("div", Yo, [
3234
+ I("span", Xo, K(e.label), 1),
3235
+ I("div", Zo, [I("button", {
3231
3236
  type: "button",
3232
- class: V(["td-diagram-segment-button", { "is-active": !c.value }]),
3233
- onClick: _e
3234
- }, " Preview ", 2), L("button", {
3237
+ class: B(["td-diagram-segment-button", { "is-active": !c.value }]),
3238
+ onClick: ve
3239
+ }, " Preview ", 2), I("button", {
3235
3240
  type: "button",
3236
- class: V(["td-diagram-segment-button", { "is-active": c.value }]),
3237
- onClick: ge
3241
+ class: B(["td-diagram-segment-button", { "is-active": c.value }]),
3242
+ onClick: _e
3238
3243
  }, " Code ", 2)]),
3239
- L("button", {
3244
+ I("button", {
3240
3245
  type: "button",
3241
- class: V(["td-diagram-button", { "is-copied": d.value }]),
3246
+ class: B(["td-diagram-button", { "is-copied": d.value }]),
3242
3247
  "aria-label": "Copy source",
3243
3248
  onClick: te
3244
- }, [d.value ? (H(), P(q(xt), {
3249
+ }, [d.value ? (H(), N(q(xt), {
3245
3250
  key: 0,
3246
3251
  size: 16
3247
- })) : (H(), P(q(Tt), {
3252
+ })) : (H(), N(q(Tt), {
3248
3253
  key: 1,
3249
3254
  size: 16
3250
3255
  }))], 2),
3251
- L("button", {
3256
+ I("button", {
3252
3257
  ref: "expandButton",
3253
3258
  type: "button",
3254
3259
  class: "td-diagram-button",
3255
3260
  "aria-label": "Open full-screen preview",
3256
- onClick: he
3257
- }, [z(q(jt), { size: 16 })], 512)
3261
+ onClick: ge
3262
+ }, [R(q(jt), { size: 16 })], 512)
3258
3263
  ]),
3259
- vt(L("div", Qo, [
3260
- L("button", {
3264
+ vt(I("div", Qo, [
3265
+ I("button", {
3261
3266
  type: "button",
3262
3267
  class: "td-diagram-button",
3263
3268
  "aria-label": "Zoom out",
3264
- onClick: k
3265
- }, [z(q(ve), { size: 16 })]),
3266
- L("button", {
3269
+ onClick: O
3270
+ }, [R(q(ye), { size: 16 })]),
3271
+ I("button", {
3267
3272
  type: "button",
3268
3273
  class: "td-diagram-button td-diagram-zoom-level",
3269
3274
  "aria-label": "Reset zoom",
3270
3275
  onClick: ie
3271
3276
  }, K(v.value), 1),
3272
- L("button", {
3277
+ I("button", {
3273
3278
  type: "button",
3274
3279
  class: "td-diagram-button",
3275
3280
  "aria-label": "Zoom in",
3276
- onClick: ue
3277
- }, [z(q(Ce), { size: 16 })])
3281
+ onClick: de
3282
+ }, [R(q(we), { size: 16 })])
3278
3283
  ], 512), [[gt, !c.value]]),
3279
- vt(L("div", { class: "td-diagram-hint" }, " Click to expand · Drag to pan · " + K(q(t)) + " + scroll to zoom ", 513), [[gt, !c.value]])
3284
+ vt(I("div", { class: "td-diagram-hint" }, " Click to expand · Drag to pan · " + K(q(t)) + " + scroll to zoom ", 513), [[gt, !c.value]])
3280
3285
  ]),
3281
- e.title ? (H(), I("figcaption", $o, K(e.title), 1)) : F("", !0),
3282
- (H(), P(Je, { to: "body" }, [l.value ? (H(), I("div", {
3286
+ e.title ? (H(), F("figcaption", $o, K(e.title), 1)) : P("", !0),
3287
+ (H(), N(Ye, { to: "body" }, [l.value ? (H(), F("div", {
3283
3288
  key: 0,
3284
3289
  class: "td-diagram-modal-backdrop",
3285
- onClick: ce
3286
- }, [L("div", {
3290
+ onClick: le
3291
+ }, [I("div", {
3287
3292
  ref: "modalDialog",
3288
3293
  class: "td-diagram-modal",
3289
3294
  role: "dialog",
3290
3295
  "aria-label": e.title || `${e.label} diagram`,
3291
3296
  tabindex: "-1",
3292
- onKeydown: le
3293
- }, [L("div", ts, [L("div", ns, [L("span", rs, K(e.title || "Diagram"), 1), L("span", is, K(e.label), 1)]), L("div", as, [
3294
- L("button", {
3297
+ onKeydown: ue
3298
+ }, [I("div", ts, [I("div", ns, [I("span", rs, K(e.title || "Diagram"), 1), I("span", is, K(e.label), 1)]), I("div", as, [
3299
+ I("button", {
3295
3300
  type: "button",
3296
- class: V(["td-diagram-modal-button", { "is-active": u.value }]),
3301
+ class: B(["td-diagram-modal-button", { "is-active": u.value }]),
3297
3302
  "aria-pressed": u.value,
3298
3303
  "aria-label": "Toggle code",
3299
- onClick: ye
3300
- }, [z(q(pe), { size: 16 }), r[5] ||= L("span", { class: "td-diagram-button-label" }, "Code", -1)], 10, os),
3301
- r[8] ||= L("span", { class: "td-diagram-modal-separator" }, null, -1),
3302
- L("button", {
3304
+ onClick: be
3305
+ }, [R(q(me), { size: 16 }), r[5] ||= I("span", { class: "td-diagram-button-label" }, "Code", -1)], 10, os),
3306
+ r[8] ||= I("span", { class: "td-diagram-modal-separator" }, null, -1),
3307
+ I("button", {
3303
3308
  type: "button",
3304
3309
  class: "td-diagram-modal-button",
3305
3310
  "aria-label": "Zoom out",
3306
- onClick: fe
3307
- }, [z(q(ve), { size: 16 })]),
3308
- L("button", {
3311
+ onClick: pe
3312
+ }, [R(q(ye), { size: 16 })]),
3313
+ I("button", {
3309
3314
  type: "button",
3310
3315
  class: "td-diagram-modal-button td-diagram-modal-zoom-level",
3311
3316
  "aria-label": "Zoom to 100%",
3312
- onClick: me
3317
+ onClick: he
3313
3318
  }, K(y.value), 1),
3314
- L("button", {
3319
+ I("button", {
3315
3320
  type: "button",
3316
3321
  class: "td-diagram-modal-button",
3317
3322
  "aria-label": "Zoom in",
3318
- onClick: de
3319
- }, [z(q(Ce), { size: 16 })]),
3320
- L("button", {
3323
+ onClick: fe
3324
+ }, [R(q(we), { size: 16 })]),
3325
+ I("button", {
3321
3326
  type: "button",
3322
3327
  class: "td-diagram-modal-button",
3323
3328
  "aria-label": "Fit to view",
3324
3329
  onClick: ae
3325
- }, [z(q(se), { size: 16 }), r[6] ||= L("span", { class: "td-diagram-button-label" }, "Fit", -1)]),
3326
- r[9] ||= L("span", { class: "td-diagram-modal-separator" }, null, -1),
3327
- L("button", {
3330
+ }, [R(q(ce), { size: 16 }), r[6] ||= I("span", { class: "td-diagram-button-label" }, "Fit", -1)]),
3331
+ r[9] ||= I("span", { class: "td-diagram-modal-separator" }, null, -1),
3332
+ I("button", {
3328
3333
  type: "button",
3329
- class: V(["td-diagram-modal-button", { "is-copied": f.value }]),
3334
+ class: B(["td-diagram-modal-button", { "is-copied": f.value }]),
3330
3335
  "aria-label": "Copy source",
3331
3336
  onClick: D
3332
- }, [f.value ? (H(), P(q(xt), {
3337
+ }, [f.value ? (H(), N(q(xt), {
3333
3338
  key: 0,
3334
3339
  size: 16
3335
- })) : (H(), P(q(Tt), {
3340
+ })) : (H(), N(q(Tt), {
3336
3341
  key: 1,
3337
3342
  size: 16
3338
- })), L("span", ss, K(f.value ? "Copied" : "Copy"), 1)], 2),
3339
- L("button", {
3343
+ })), I("span", ss, K(f.value ? "Copied" : "Copy"), 1)], 2),
3344
+ I("button", {
3340
3345
  type: "button",
3341
3346
  class: "td-diagram-modal-button",
3342
3347
  "aria-label": "Download SVG",
3343
3348
  onClick: re
3344
- }, [z(q(Ae), { size: 16 }), r[7] ||= L("span", { class: "td-diagram-button-label" }, "SVG", -1)]),
3345
- r[10] ||= L("span", { class: "td-diagram-modal-separator" }, null, -1),
3346
- L("button", {
3349
+ }, [R(q(je), { size: 16 }), r[7] ||= I("span", { class: "td-diagram-button-label" }, "SVG", -1)]),
3350
+ r[10] ||= I("span", { class: "td-diagram-modal-separator" }, null, -1),
3351
+ I("button", {
3347
3352
  type: "button",
3348
3353
  class: "td-diagram-modal-button",
3349
3354
  "aria-label": "Close preview",
3350
3355
  onClick: E
3351
- }, [z(q(Ne), { size: 16 })])
3352
- ])]), L("div", cs, [u.value ? (H(), I("div", ls, [L("div", us, " diagram." + K(b.value) + " · " + K(_.value) + " lines ", 1), L("div", ds, [L("pre", fs, [
3353
- r[14] ||= R(" ", -1),
3354
- (H(!0), I(M, null, W(g.value, (e, t) => (H(), I("div", {
3356
+ }, [R(q(Pe), { size: 16 })])
3357
+ ])]), I("div", cs, [u.value ? (H(), F("div", ls, [I("div", us, " diagram." + K(b.value) + " · " + K(_.value) + " lines ", 1), I("div", ds, [I("pre", fs, [
3358
+ r[14] ||= L(" ", -1),
3359
+ (H(!0), F(j, null, W(g.value, (e, t) => (H(), F("div", {
3355
3360
  key: t,
3356
3361
  class: "td-diagram-code-row"
3357
3362
  }, [
3358
- r[11] ||= R("\n ", -1),
3359
- L("span", ps, K(t + 1), 1),
3360
- r[12] ||= R("\n ", -1),
3361
- L("span", ms, K(e || " "), 1),
3362
- r[13] ||= R("\n ", -1)
3363
+ r[11] ||= L("\n ", -1),
3364
+ I("span", ps, K(t + 1), 1),
3365
+ r[12] ||= L("\n ", -1),
3366
+ I("span", ms, K(e || " "), 1),
3367
+ r[13] ||= L("\n ", -1)
3363
3368
  ]))), 128)),
3364
- r[15] ||= R("\n ", -1)
3365
- ])])])) : F("", !0), L("div", {
3369
+ r[15] ||= L("\n ", -1)
3370
+ ])])])) : P("", !0), I("div", {
3366
3371
  ref: "modalStage",
3367
3372
  class: "td-diagram-modal-stage",
3368
- style: nt(w.value),
3369
- onPointerdown: A,
3370
- onPointermove: Ie,
3371
- onPointerup: j,
3372
- onPointercancel: j,
3373
- onDblclick: Fe
3374
- }, [L("div", {
3373
+ style: V(w.value),
3374
+ onPointerdown: k,
3375
+ onPointermove: Le,
3376
+ onPointerup: A,
3377
+ onPointercancel: A,
3378
+ onDblclick: Ie
3379
+ }, [I("div", {
3375
3380
  ref: "modalCanvas",
3376
3381
  class: "td-diagram-modal-canvas",
3377
- style: nt(C.value),
3382
+ style: V(C.value),
3378
3383
  innerHTML: e.svg
3379
- }, null, 12, hs), L("div", gs, " Drag or scroll to pan · " + K(q(t)) + " + scroll or pinch to zoom · Double-click to zoom in · Esc to close ", 1)], 36)])], 40, es)])) : F("", !0)]))
3384
+ }, null, 12, hs), I("div", gs, " Drag or scroll to pan · " + K(q(t)) + " + scroll or pinch to zoom · Double-click to zoom in · Esc to close ", 1)], 36)])], 40, es)])) : P("", !0)]))
3380
3385
  ], 8, Uo));
3381
3386
  }
3382
3387
  }), [["__scopeId", "data-v-fb95bcf7"]]);
3383
3388
  // src/client/theme-default/composables/lazy-embed/mountDiagram.ts
3384
3389
  function Os(e, t) {
3385
3390
  let n = document.createElement("div");
3386
- n.style.display = "contents", e.replaceWith(n), ct(Ze(Ds, t), n);
3391
+ n.style.display = "contents", e.replaceWith(n), ct(Qe(Ds, t), n);
3387
3392
  }
3388
3393
  // src/client/theme-default/composables/lazy-embed/d2.ts
3389
3394
  var ks = "https://esm.sh/@terrastruct/d2@0.1.32", As, js = 0;
@@ -3564,29 +3569,26 @@ var Gs = { class: "td-header" }, Ks = { class: "td-header-left" }, qs = ["href"]
3564
3569
  key: 0,
3565
3570
  class: "pt-4",
3566
3571
  "aria-label": "Site navigation"
3567
- }, tc = { class: "td-page" }, nc = ["aria-label"], rc = {
3568
- key: 2,
3569
- class: "td-sidebar-collapse-label"
3570
- }, ic = ["onKeydown"], ac = { class: "td-main-and-rail" }, oc = { class: "td-main" }, sc = {
3572
+ }, tc = { class: "td-page" }, nc = ["aria-label"], rc = ["onKeydown"], ic = { class: "td-main-and-rail" }, ac = { class: "td-main" }, oc = {
3571
3573
  id: "td-content",
3572
3574
  class: "td-content",
3573
3575
  "data-testid": "content"
3574
- }, cc = {
3576
+ }, sc = {
3575
3577
  key: 0,
3576
3578
  class: "td-page-eyebrow"
3577
- }, lc = {
3579
+ }, cc = {
3578
3580
  key: 1,
3579
3581
  class: "td-page-icon"
3580
- }, uc = ["innerHTML"], dc = {
3582
+ }, lc = ["innerHTML"], uc = {
3581
3583
  key: 3,
3582
3584
  class: "td-page-meta"
3583
- }, fc = { key: 0 }, pc = { class: "td-content-body" }, mc = ["href"], hc = /*#__PURE__*/ A(/* @__PURE__ */ B({
3585
+ }, dc = { key: 0 }, fc = { class: "td-content-body" }, pc = ["href"], mc = /*#__PURE__*/ k(/* @__PURE__ */ z({
3584
3586
  __name: "TdLayout",
3585
3587
  setup(e) {
3586
- let { title: t, page: n } = Se(), i = N(() => {
3588
+ let { title: t, page: n } = Ce(), i = M(() => {
3587
3589
  let e = n.value.icon;
3588
- return e ? Le(e.name) : void 0;
3589
- }), a = j(), { withBase: o } = a, c = we(), l = ke(), u = N(() => l.value.ready), { isOpen: d, isDrawerMounted: f, open: p, close: m } = Sa(), h = U(""), g = U(!1), _ = U(!1), v = Ie(), y = U(!1);
3590
+ return e ? Re(e.name) : void 0;
3591
+ }), a = A(), { withBase: o } = a, c = Te(), l = Ae(), u = M(() => l.value.ready), { isOpen: d, isDrawerMounted: f, open: p, close: m } = Sa(), h = U(""), g = U(!1), _ = U(!1), v = Le(), y = U(!1);
3590
3592
  Y(() => v.path, () => m()), Ro(), zo(), Ws();
3591
3593
  let x = J("sidebarSearch"), S = J("menuSearch"), C = J("palette"), { previous: w, next: T } = wa();
3592
3594
  function E() {
@@ -3601,7 +3603,7 @@ var Gs = { class: "td-header" }, Ks = { class: "td-header-left" }, qs = ["href"]
3601
3603
  ].filter(Boolean).join("/")}`;
3602
3604
  }
3603
3605
  function te() {
3604
- O.value = !1, tt(() => x.value?.focus());
3606
+ oe.value = !1, nt(() => x.value?.focus());
3605
3607
  }
3606
3608
  function ne() {
3607
3609
  x.value?.isVisible ? x.value.focus() : (p(), S.value?.focus());
@@ -3623,111 +3625,114 @@ var Gs = { class: "td-header" }, Ks = { class: "td-header-left" }, qs = ["href"]
3623
3625
  let i = n.value.frontmatter?.description === void 0 ? a.description ?? "" : String(n.value.frontmatter.description), o = document.querySelector("meta[name=\"description\"]");
3624
3626
  o && o.setAttribute("content", i);
3625
3627
  }), Ho();
3626
- let { sidebarWidth: ae, sidebarCollapsed: O, sidebarStyle: oe } = D(), se = U(!1);
3627
- function ce() {
3628
- f.value ? d.value ? m() : p() : le();
3628
+ let { sidebarWidth: ae, isSidebarCollapsed: oe, sidebarWidthStyle: se, expandedSidebarVisibilityStyle: ce, collapsedSidebarVisibilityStyle: le } = D(), ue = U(!1);
3629
+ function de() {
3630
+ f.value ? d.value ? m() : p() : O();
3629
3631
  }
3630
- function le() {
3631
- O.value = !O.value;
3632
+ function O() {
3633
+ oe.value = !oe.value;
3632
3634
  }
3633
- _a([Q.Control, Q.Backslash], ce, { capture: !0 }), _a([Q.Meta, Q.Backslash], ce, { capture: !0 });
3634
- function ue() {
3635
+ _a([Q.Control, Q.Backslash], de, { capture: !0 }), _a([Q.Meta, Q.Backslash], de, { capture: !0 });
3636
+ function fe() {
3635
3637
  ae.value = Math.min(500, ae.value + 20);
3636
3638
  }
3637
- function k(e) {
3639
+ function pe(e) {
3638
3640
  let t = e.clientX, n = ae.value, r = e.currentTarget;
3639
- se.value = !0, r.setPointerCapture(e.pointerId);
3641
+ ue.value = !0, r.setPointerCapture(e.pointerId);
3640
3642
  function i(e) {
3641
3643
  let r = Math.min(500, window.innerWidth * .85), i = Math.min(r, Math.max(200, n + e.clientX - t));
3642
3644
  ae.value = i;
3643
3645
  }
3644
3646
  function a() {
3645
- se.value = !1, document.body.style.cursor = "", r.removeEventListener("pointermove", i), r.removeEventListener("pointerup", a);
3647
+ ue.value = !1, document.body.style.cursor = "", r.removeEventListener("pointermove", i), r.removeEventListener("pointerup", a);
3646
3648
  }
3647
3649
  document.body.style.cursor = "col-resize", r.addEventListener("pointermove", i), r.addEventListener("pointerup", a);
3648
3650
  }
3649
- function de() {
3651
+ function me() {
3650
3652
  ae.value = Math.max(200, ae.value - 20);
3651
3653
  }
3652
- return (e, r) => (H(), I("div", null, [
3654
+ return (e, r) => (H(), F("div", null, [
3653
3655
  G(e.$slots, "layout-top", {}, void 0, !0),
3654
- r[6] ||= L("a", {
3656
+ r[6] ||= I("a", {
3655
3657
  href: "#td-content",
3656
3658
  class: "td-skip-link"
3657
3659
  }, "Skip to content", -1),
3658
- L("header", Gs, [
3659
- L("div", Ks, [
3660
- z(Ca, { onClick: q(p) }, null, 8, ["onClick"]),
3661
- L("a", {
3660
+ I("header", Gs, [
3661
+ I("div", Ks, [
3662
+ R(Ca, {
3663
+ class: "lg:hidden",
3664
+ onClick: q(p)
3665
+ }, null, 8, ["onClick"]),
3666
+ I("a", {
3662
3667
  href: q(o)(q(s)("/")),
3663
3668
  class: "td-brand"
3664
- }, [z(Vt), L("span", Js, K(q(a).title || "Typedown"), 1)], 8, qs),
3665
- z(_i, { class: "td-header-breadcrumb" })
3669
+ }, [R(Vt), I("span", Js, K(q(a).title || "Typedown"), 1)], 8, qs),
3670
+ R(_i, { class: "td-header-breadcrumb" })
3666
3671
  ]),
3667
- z(q(bi)),
3672
+ R(q(bi)),
3668
3673
  G(e.$slots, "nav-bar-after", {}, void 0, !0),
3669
- L("div", Ys, [
3670
- z(Fr, {
3674
+ I("div", Ys, [
3675
+ R(Nr, {
3671
3676
  text: "Commands",
3672
3677
  placement: "bottom",
3673
3678
  shortcut: [q(Q).Meta, q(Q).FSlash],
3674
3679
  always: ""
3675
3680
  }, {
3676
- default: X(() => [L("button", {
3681
+ default: X(() => [I("button", {
3677
3682
  class: "td-header-commands-btn",
3678
3683
  type: "button",
3679
3684
  "aria-label": "Open command palette",
3680
3685
  onClick: re
3681
- }, [z(q(Oe), { size: 15 })])]),
3686
+ }, [R(q(ke), { size: 15 })])]),
3682
3687
  _: 1
3683
3688
  }, 8, ["shortcut"]),
3684
- z(Lo),
3685
- q(a).repo ? (H(), I("a", {
3689
+ R(Lo),
3690
+ q(a).repo ? (H(), F("a", {
3686
3691
  key: 0,
3687
3692
  href: q(a).repo.url,
3688
3693
  target: "_blank",
3689
3694
  rel: "noopener noreferrer",
3690
3695
  class: "td-header-icon-link",
3691
3696
  "aria-label": "GitHub repository"
3692
- }, [...r[5] ||= [L("svg", {
3697
+ }, [...r[5] ||= [I("svg", {
3693
3698
  width: "20",
3694
3699
  height: "20",
3695
3700
  viewBox: "0 0 98 96",
3696
3701
  xmlns: "http://www.w3.org/2000/svg",
3697
3702
  "aria-hidden": "true",
3698
3703
  fill: "currentColor"
3699
- }, [L("path", {
3704
+ }, [I("path", {
3700
3705
  "fill-rule": "evenodd",
3701
3706
  "clip-rule": "evenodd",
3702
3707
  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"
3703
- })], -1)]], 8, Xs)) : F("", !0)
3708
+ })], -1)]], 8, Xs)) : P("", !0)
3704
3709
  ])
3705
3710
  ]),
3706
- z(Ye, { name: "td-drawer-scrim" }, {
3707
- default: X(() => [q(f) ? (H(), I("div", {
3711
+ R(Xe, { name: "td-drawer-scrim" }, {
3712
+ default: X(() => [q(f) ? (H(), F("div", {
3708
3713
  key: 0,
3709
- class: V(["td-drawer-scrim", { "is-open": q(d) }]),
3714
+ class: B(["td-drawer-scrim", { "is-open": q(d) }]),
3710
3715
  onClick: r[0] ||= (...e) => q(m) && q(m)(...e)
3711
- }, null, 2)) : F("", !0)]),
3716
+ }, null, 2)) : P("", !0)]),
3712
3717
  _: 1
3713
3718
  }),
3714
- z(Ye, { name: "td-drawer-panel" }, {
3715
- default: X(() => [q(f) ? (H(), I("aside", {
3719
+ R(Xe, { name: "td-drawer-panel" }, {
3720
+ default: X(() => [q(f) ? (H(), F("aside", {
3716
3721
  key: 0,
3717
- class: V(["td-drawer", { "is-open": q(d) }])
3722
+ class: B(["td-drawer", { "is-open": q(d) }])
3718
3723
  }, [
3719
- L("header", Zs, [L("a", {
3724
+ I("header", Zs, [I("a", {
3720
3725
  href: q(o)(q(s)("/")),
3721
3726
  class: "td-brand"
3722
- }, [z(Vt), L("span", $s, K(q(a).title || "Typedown"), 1)], 8, Qs), z(Ut, {
3727
+ }, [R(Vt), I("span", $s, K(q(a).title || "Typedown"), 1)], 8, Qs), R(Fr, {
3723
3728
  label: "Close menu",
3724
3729
  onClick: q(m)
3725
3730
  }, {
3726
- default: X(() => [z(q(Ne), { size: 20 })]),
3731
+ default: X(() => [R(q(Pe), { size: 20 })]),
3727
3732
  _: 1
3728
3733
  }, 8, ["onClick"])]),
3729
- z(q(Ci)),
3730
- z(Io, {
3734
+ R(q(Ci)),
3735
+ R(Io, {
3731
3736
  ref_key: "menuSearch",
3732
3737
  ref: S,
3733
3738
  query: h.value,
@@ -3740,29 +3745,28 @@ var Gs = { class: "td-header" }, Ks = { class: "td-header-left" }, qs = ["href"]
3740
3745
  "active",
3741
3746
  "onSelect"
3742
3747
  ]),
3743
- _.value ? F("", !0) : (H(), I("nav", ec, [u.value ? (H(), P(ni, {
3748
+ _.value ? P("", !0) : (H(), F("nav", ec, [u.value ? (H(), N(ni, {
3744
3749
  key: 1,
3745
3750
  tree: q(l).contentTree
3746
- }, null, 8, ["tree"])) : (H(), P(to, { key: 0 }))]))
3747
- ], 2)) : F("", !0)]),
3751
+ }, null, 8, ["tree"])) : (H(), N(to, { key: 0 }))]))
3752
+ ], 2)) : P("", !0)]),
3748
3753
  _: 1
3749
3754
  }),
3750
- L("div", tc, [L("nav", {
3751
- class: V(["td-sidebar-left", {
3752
- "is-resizing": se.value,
3753
- "is-collapsed": q(O)
3755
+ I("div", tc, [I("nav", {
3756
+ class: B(["td-sidebar-left", {
3757
+ "is-resizing": ue.value,
3758
+ "is-collapsed": q(oe)
3754
3759
  }]),
3755
3760
  "data-testid": "sidebar",
3756
3761
  "aria-label": "Site navigation",
3757
- style: nt(q(oe))
3762
+ style: V(q(se))
3758
3763
  }, [
3759
- q(O) ? (H(), P(so, {
3760
- key: 1,
3761
- tree: q(l).contentTree,
3762
- onSearch: te
3763
- }, null, 8, ["tree"])) : (H(), I(M, { key: 0 }, [
3764
+ I("div", {
3765
+ class: "flex-col flex-1 overflow-y-auto",
3766
+ style: V(q(ce))
3767
+ }, [
3764
3768
  G(e.$slots, "sidebar-top", {}, void 0, !0),
3765
- z(Io, {
3769
+ R(Io, {
3766
3770
  ref_key: "sidebarSearch",
3767
3771
  ref: x,
3768
3772
  query: h.value,
@@ -3771,7 +3775,7 @@ var Gs = { class: "td-header" }, Ks = { class: "td-header-left" }, qs = ["href"]
3771
3775
  "onUpdate:active": r[4] ||= (e) => g.value = e,
3772
3776
  class: "td-sidebar-search"
3773
3777
  }, null, 8, ["query", "active"]),
3774
- z(no, {
3778
+ R(no, {
3775
3779
  tree: q(l).contentTree,
3776
3780
  "search-active": g.value,
3777
3781
  ready: u.value
@@ -3781,100 +3785,108 @@ var Gs = { class: "td-header" }, Ks = { class: "td-header-left" }, qs = ["href"]
3781
3785
  "ready"
3782
3786
  ]),
3783
3787
  G(e.$slots, "sidebar-bottom", {}, void 0, !0)
3784
- ], 64)),
3785
- L("button", {
3788
+ ], 4),
3789
+ I("div", {
3790
+ style: V(q(le)),
3791
+ class: "flex-1"
3792
+ }, [R(so, {
3793
+ tree: q(l).contentTree,
3794
+ onSearch: te
3795
+ }, null, 8, ["tree"])], 4),
3796
+ I("button", {
3786
3797
  class: "td-sidebar-collapse-btn",
3787
3798
  type: "button",
3788
- "aria-label": q(O) ? "Expand sidebar" : "Collapse sidebar",
3789
- onClick: le
3799
+ "aria-label": q(oe) ? "Expand sidebar" : "Collapse sidebar",
3800
+ onClick: O
3790
3801
  }, [
3791
- q(O) ? (H(), P(q(Ct), {
3792
- key: 1,
3802
+ R(q(St), {
3803
+ style: V(q(ce)),
3793
3804
  size: 14
3794
- })) : (H(), P(q(St), {
3795
- key: 0,
3805
+ }, null, 8, ["style"]),
3806
+ R(q(Ct), {
3807
+ style: V(q(le)),
3796
3808
  size: 14
3797
- })),
3798
- q(O) ? F("", !0) : (H(), I("span", rc, "Collapse sidebar")),
3799
- q(O) ? F("", !0) : (H(), P($, {
3800
- key: 3,
3801
- keys: [q(Q).Meta, q(Q).Backslash]
3802
- }, null, 8, ["keys"]))
3809
+ }, null, 8, ["style"]),
3810
+ I("span", {
3811
+ style: V(q(ce)),
3812
+ class: "td-sidebar-collapse-label"
3813
+ }, "Collapse sidebar", 4),
3814
+ I("div", { style: V(q(ce)) }, [R($, { keys: [q(Q).Meta, q(Q).Backslash] }, null, 8, ["keys"])], 4)
3803
3815
  ], 8, nc),
3804
- q(O) ? F("", !0) : (H(), I("div", {
3805
- key: 2,
3816
+ I("div", {
3817
+ style: V(q(ce)),
3806
3818
  class: "td-resize-handle",
3807
3819
  role: "separator",
3808
3820
  "aria-orientation": "vertical",
3809
3821
  "aria-label": "Resize sidebar",
3810
3822
  tabindex: "0",
3811
- onPointerdown: bt(k, ["prevent"]),
3812
- onKeydown: [yt(bt(de, ["prevent"]), ["left"]), yt(bt(ue, ["prevent"]), ["right"])]
3813
- }, null, 40, ic))
3814
- ], 6), L("div", ac, [L("main", oc, [L("article", sc, [
3823
+ onPointerdown: bt(pe, ["prevent"]),
3824
+ onKeydown: [yt(bt(me, ["prevent"]), ["left"]), yt(bt(fe, ["prevent"]), ["right"])]
3825
+ }, null, 44, rc)
3826
+ ], 6), I("div", ic, [I("main", ac, [I("article", oc, [
3815
3827
  G(e.$slots, "doc-before", {}, void 0, !0),
3816
- q(n).schema ? (H(), I("div", cc, K(q(n).schemaLabel ?? q(n).schema), 1)) : F("", !0),
3817
- i.value ? (H(), I("div", lc, [(H(), P(ut(i.value), { size: 32 }))])) : F("", !0),
3818
- q(t) ? (H(), I("h1", {
3828
+ q(n).schema ? (H(), F("div", sc, K(q(n).schemaLabel ?? q(n).schema), 1)) : P("", !0),
3829
+ i.value ? (H(), F("div", cc, [(H(), N(ut(i.value), { size: 32 }))])) : P("", !0),
3830
+ q(t) ? (H(), F("h1", {
3819
3831
  key: 2,
3820
3832
  class: "td-page-title",
3821
3833
  innerHTML: q(n).titleHtml
3822
- }, null, 8, uc)) : F("", !0),
3823
- q(n).fileMetadata ? (H(), I("div", dc, [L("span", null, K(q(b)(q(n).fileMetadata.mtimeSecs, "Modified")), 1), q(n).fileMetadata.ctimeSecs === q(n).fileMetadata.mtimeSecs ? F("", !0) : (H(), I("span", fc, " · " + K(q(b)(q(n).fileMetadata.ctimeSecs, "Created")), 1))])) : F("", !0),
3824
- z(q(pa), {
3834
+ }, null, 8, lc)) : P("", !0),
3835
+ q(n).fileMetadata ? (H(), F("div", uc, [I("span", null, K(q(b)(q(n).fileMetadata.mtimeSecs, "Modified")), 1), q(n).fileMetadata.ctimeSecs === q(n).fileMetadata.mtimeSecs ? P("", !0) : (H(), F("span", dc, " · " + K(q(b)(q(n).fileMetadata.ctimeSecs, "Created")), 1))])) : P("", !0),
3836
+ R(q(pa), {
3825
3837
  class: "td-frontmatter-inline",
3826
3838
  schema: q(n).schema,
3827
3839
  frontmatter: q(n).frontmatter
3828
3840
  }, null, 8, ["schema", "frontmatter"]),
3829
- q(n).headings.length > 1 ? (H(), P(Ja, {
3841
+ q(n).headings.length > 1 ? (H(), N(Ja, {
3830
3842
  key: 4,
3831
3843
  class: "td-toc-inline",
3832
3844
  headings: q(n).headings,
3833
3845
  inline: ""
3834
- }, null, 8, ["headings"])) : F("", !0),
3846
+ }, null, 8, ["headings"])) : P("", !0),
3835
3847
  G(e.$slots, "doc-content-before", {}, void 0, !0),
3836
- L("div", pc, [z(q(Fe))]),
3848
+ I("div", fc, [R(q(Ie))]),
3837
3849
  G(e.$slots, "doc-content-after", {}, void 0, !0),
3838
- z(La),
3839
- q(a).repo && q(n).filepath ? (H(), I("a", {
3850
+ R(La),
3851
+ q(a).repo && q(n).filepath ? (H(), F("a", {
3840
3852
  key: 5,
3841
3853
  href: ee(q(n).filepath),
3842
3854
  target: "_blank",
3843
3855
  rel: "noopener noreferrer",
3844
3856
  class: "td-page-edit"
3845
- }, "Edit this page", 8, mc)) : F("", !0),
3857
+ }, "Edit this page", 8, pc)) : P("", !0),
3846
3858
  G(e.$slots, "doc-after", {}, void 0, !0)
3847
- ])]), z($a, { class: "td-rail" })])]),
3848
- z(ai),
3859
+ ])]), R($a, { class: "td-rail" })])]),
3860
+ R(ai),
3849
3861
  G(e.$slots, "layout-bottom", {}, void 0, !0),
3850
- z(So, {
3862
+ R(So, {
3851
3863
  ref_key: "palette",
3852
3864
  ref: C,
3853
- onToggleSidebar: le,
3865
+ onToggleSidebar: O,
3854
3866
  onShowShortcuts: ie
3855
3867
  }, null, 512),
3856
- z(Eo, {
3868
+ R(Eo, {
3857
3869
  open: y.value,
3858
3870
  onClose: E
3859
3871
  }, null, 8, ["open"])
3860
3872
  ]));
3861
3873
  }
3862
- }), [["__scopeId", "data-v-e1cb586a"]]), gc = { class: "pt-16 pb-24" }, _c = ["href"], vc = /* @__PURE__ */ B({
3874
+ }), [["__scopeId", "data-v-21aaf8eb"]]), hc = { class: "pt-16 pb-24" }, gc = ["href"], _c = /* @__PURE__ */ z({
3863
3875
  __name: "TdNotFound",
3864
3876
  setup(e) {
3865
- let { withBase: t } = j();
3866
- return (e, n) => (H(), I("div", gc, [
3867
- n[0] ||= L("p", { class: "text-td-4xl font-extrabold leading-none tracking-td-tight text-td-fg-muted" }, " 404 ", -1),
3868
- n[1] ||= L("h1", { class: "text-td-xl font-extrabold leading-td-tight tracking-td-tight mt-4" }, " Page Not Found ", -1),
3869
- n[2] ||= L("p", { class: "text-td-fg-muted mt-2 text-td-base leading-td-relaxed" }, " The page you are looking for does not exist. ", -1),
3870
- L("a", {
3877
+ let { withBase: t } = A();
3878
+ return (e, n) => (H(), F("div", hc, [
3879
+ n[0] ||= I("p", { class: "text-td-4xl font-extrabold leading-none tracking-td-tight text-td-fg-muted" }, " 404 ", -1),
3880
+ n[1] ||= I("h1", { class: "text-td-xl font-extrabold leading-td-tight tracking-td-tight mt-4" }, " Page Not Found ", -1),
3881
+ 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),
3882
+ I("a", {
3871
3883
  class: "inline-flex items-center mt-6 text-td-accent text-td-sm font-extrabold tracking-td-tight hover:text-td-accent-hi",
3872
3884
  href: q(t)(q(s)("/"))
3873
- }, "Go Home", 8, _c)
3885
+ }, "Go Home", 8, gc)
3874
3886
  ]));
3875
3887
  }
3876
- }), yc = {
3877
- Layout: hc,
3878
- NotFound: vc
3888
+ }), vc = {
3889
+ Layout: mc,
3890
+ NotFound: _c
3879
3891
  };
3880
- export { ie as SIDEBAR_COLLAPSED_WIDTH, te as SIDEBAR_DEFAULT_WIDTH, ne as SIDEBAR_MAX_WIDTH, ee as SIDEBAR_MIN_WIDTH, Vt as TdBrandIcon, ni as TdContentNav, Ee as TdDirectoryIndex, ai as TdFooter, Te as TdGlossaryIndex, $ as TdKbdShortcut, Q as TdKeyName, hc as TdLayout, vc as TdNotFound, La as TdPreviousNext, $a as TdRail, Lo as TdThemeToggle, Ja as TdToc, yc as default, ga as isTypingTarget, re as useClientPreferences, Ro as useCopyCode, _a as useGlobalHotkey, va as useLocalHotkeys, D as useSidebarConfig, E as useTheme };
3892
+ export { ie as SIDEBAR_COLLAPSED_WIDTH, te as SIDEBAR_DEFAULT_WIDTH, ne as SIDEBAR_MAX_WIDTH, ee as SIDEBAR_MIN_WIDTH, Vt as TdBrandIcon, ni as TdContentNav, De as TdDirectoryIndex, ai as TdFooter, Ee as TdGlossaryIndex, $ as TdKbdShortcut, Q as TdKeyName, mc as TdLayout, _c as TdNotFound, La as TdPreviousNext, $a as TdRail, Lo as TdThemeToggle, Ja as TdToc, vc as default, ga as isTypingTarget, re as useClientPreferences, Ro as useCopyCode, _a as useGlobalHotkey, va as useLocalHotkeys, D as useSidebarConfig, E as useTheme };