typerighter 0.56.1 → 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-Be64NWBp.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 +982 -971
  11. package/dist/client.js +2 -2
  12. package/dist/index.js +2 -2
  13. package/dist/{init-BmrfQCbP.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,48 +2099,47 @@ 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) {
2126
2132
  let t = U(void 0), n = [], r;
2127
2133
  function i() {
2128
2134
  if (n.length === 0) return;
2129
- let e = window.scrollY;
2130
- if (document.body.offsetHeight <= e + window.innerHeight) {
2135
+ if (document.body.offsetHeight <= window.scrollY + window.innerHeight) {
2131
2136
  t.value = n.at(-1).id;
2132
2137
  return;
2133
2138
  }
2134
- let r;
2135
- for (let t of n) if (Ba(t) <= e + Ra) r = t.id;
2139
+ let e;
2140
+ for (let t of n) if (t.getBoundingClientRect().top <= Ra) e = t.id;
2136
2141
  else break;
2137
- t.value = r;
2142
+ t.value = e;
2138
2143
  }
2139
2144
  function a() {
2140
2145
  r !== void 0 && cancelAnimationFrame(r), r = requestAnimationFrame(i);
@@ -2150,26 +2155,21 @@ function za(e) {
2150
2155
  }), ot(() => {
2151
2156
  window.removeEventListener("scroll", a), r !== void 0 && cancelAnimationFrame(r);
2152
2157
  }), Y(e, (e) => {
2153
- typeof window < "u" && tt(() => o(e));
2158
+ typeof window < "u" && nt(() => o(e));
2154
2159
  }, { immediate: !0 }), t;
2155
2160
  }
2156
- function Ba(e) {
2157
- let t = 0, n = e;
2158
- for (; n;) t += n.offsetTop, n = n.offsetParent;
2159
- return t;
2160
- }
2161
2161
  // src/client/theme-default/components/custom/TdToc.vue?vue&type=script&setup=true&lang.ts
2162
- var Va = {
2162
+ var Ba = {
2163
2163
  key: 0,
2164
2164
  class: "td-toc-inline-wrap"
2165
- }, Ha = { class: "td-toc-inline-list" }, Ua = ["href", "innerHTML"], Wa = {
2165
+ }, Va = { class: "td-toc-inline-list" }, Ha = ["href", "innerHTML"], Ua = {
2166
2166
  key: 0,
2167
2167
  class: "td-toc-inline-children"
2168
- }, Ga = ["href", "innerHTML"], Ka = {
2168
+ }, Wa = ["href", "innerHTML"], Ga = {
2169
2169
  key: 1,
2170
2170
  class: "td-toc",
2171
2171
  "data-testid": "toc"
2172
- }, qa = { class: "td-toc-list" }, Ja = ["href", "innerHTML"], Ya = /*#__PURE__*/ A(/* @__PURE__ */ B({
2172
+ }, Ka = { class: "td-toc-list" }, qa = ["href", "innerHTML"], Ja = /*#__PURE__*/ k(/* @__PURE__ */ z({
2173
2173
  __name: "TdToc",
2174
2174
  props: {
2175
2175
  headings: {},
@@ -2187,55 +2187,60 @@ var Va = {
2187
2187
  }
2188
2188
  },
2189
2189
  setup(e) {
2190
- let t = N(() => {
2190
+ let t = M(() => {
2191
2191
  let t = [];
2192
2192
  for (let n of e.headings) {
2193
2193
  t.push(n);
2194
2194
  for (let e of n.children) t.push(e);
2195
2195
  }
2196
2196
  return t;
2197
- }), 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");
2198
2198
  return Y(n, () => {
2199
- tt(() => {
2200
- r.value?.querySelector("a.is-active")?.scrollIntoView({ block: "center" });
2199
+ nt(() => {
2200
+ let e = r.value, t = e?.querySelector("a.is-active");
2201
+ if (!e || !t) return;
2202
+ let n = e.closest(".td-toc") ?? e;
2203
+ if (n.scrollHeight <= n.clientHeight) return;
2204
+ let i = n.getBoundingClientRect(), a = t.getBoundingClientRect().top - i.top - n.clientHeight / 2 + t.clientHeight / 2;
2205
+ n.scrollTop += a;
2201
2206
  });
2202
- }), (r, i) => e.inline ? (H(), I("div", Va, [i[0] ||= L("div", { class: "td-toc-inline-label" }, " On this page ", -1), L("ul", Ha, [(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", {
2203
2208
  key: e.slug,
2204
2209
  class: "td-toc-inline-item"
2205
- }, [L("a", {
2210
+ }, [I("a", {
2206
2211
  href: e.link,
2207
2212
  class: "td-toc-inline-link is-h2",
2208
2213
  innerHTML: q(g)(e.titleHtml)
2209
- }, null, 8, Ua), e.children.length ? (H(), I("ul", Wa, [(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", {
2210
2215
  href: e.link,
2211
2216
  class: "td-toc-inline-link is-h3",
2212
2217
  innerHTML: q(g)(e.titleHtml)
2213
- }, null, 8, Ga)]))), 128))])) : F("", !0)]))), 128))])])) : e.headings.length ? (H(), I("div", Ka, [L("div", {
2218
+ }, null, 8, Wa)]))), 128))])) : P("", !0)]))), 128))])])) : e.headings.length ? (H(), F("div", Ga, [I("div", {
2214
2219
  ref: "list",
2215
- class: V(["td-toc-list-wrap", { "is-scrollable": e.scrollable }])
2216
- }, [L("ul", qa, [(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", {
2217
2222
  key: e.slug,
2218
- class: V({
2223
+ class: B({
2219
2224
  "td-toc-indent-1": e.level === 3,
2220
2225
  "td-toc-indent-2": e.level === 4,
2221
2226
  "td-toc-indent-3": e.level === 5
2222
2227
  })
2223
- }, [L("a", {
2228
+ }, [I("a", {
2224
2229
  href: e.link,
2225
- class: V(["td-toc-link", { "is-active": q(n) === e.slug }]),
2230
+ class: B(["td-toc-link", { "is-active": q(n) === e.slug }]),
2226
2231
  innerHTML: q(g)(e.titleHtml)
2227
- }, null, 10, Ja)], 2))), 128))])], 2)])) : F("", !0);
2232
+ }, null, 10, qa)], 2))), 128))])], 2)])) : P("", !0);
2228
2233
  }
2229
- }), [["__scopeId", "data-v-35b9f0c3"]]), Xa = {
2234
+ }), [["__scopeId", "data-v-f02336c5"]]), Ya = {
2230
2235
  key: 0,
2231
2236
  class: "td-rail"
2232
- }, Za = { class: "td-rail-inner" }, Qa = {
2237
+ }, Xa = { class: "td-rail-inner" }, Za = {
2233
2238
  class: "td-rail-indicators",
2234
2239
  "aria-hidden": "true"
2235
- }, $a = { class: "td-rail-panel" }, eo = /*#__PURE__*/ A(/* @__PURE__ */ B({
2240
+ }, Qa = { class: "td-rail-panel" }, $a = /*#__PURE__*/ k(/* @__PURE__ */ z({
2236
2241
  __name: "TdRail",
2237
2242
  setup(e) {
2238
- let { page: t } = Se(), n = N(() => {
2243
+ let { page: t } = Ce(), n = M(() => {
2239
2244
  let e = [];
2240
2245
  for (let n of t.value.headings) {
2241
2246
  e.push(n);
@@ -2243,19 +2248,19 @@ var Va = {
2243
2248
  }
2244
2249
  return e;
2245
2250
  }), r = za(() => n.value);
2246
- return (e, i) => q(t).headings.length > 1 ? (H(), I("aside", Xa, [L("div", Za, [L("div", Qa, [(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", {
2247
2252
  key: e.slug,
2248
- class: V(["td-rail-indicator", {
2253
+ class: B(["td-rail-indicator", {
2249
2254
  "is-h3": e.level === 3,
2250
2255
  "is-active": q(r) === e.slug
2251
2256
  }])
2252
- }, null, 2))), 128))]), L("div", $a, [z(Ya, { 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);
2253
2258
  }
2254
- }), [["__scopeId", "data-v-ebea8dba"]]), to = {
2259
+ }), [["__scopeId", "data-v-ebea8dba"]]), eo = {
2255
2260
  class: "td-skeleton",
2256
2261
  role: "status",
2257
2262
  "aria-label": "Loading"
2258
- }, no = /*#__PURE__*/ A(/* @__PURE__ */ B({
2263
+ }, to = /*#__PURE__*/ k(/* @__PURE__ */ z({
2259
2264
  __name: "TdSkeleton",
2260
2265
  props: { lines: { default: 5 } },
2261
2266
  setup(e) {
@@ -2269,13 +2274,13 @@ var Va = {
2269
2274
  55,
2270
2275
  72
2271
2276
  ];
2272
- return (n, r) => (H(), I("div", to, [(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", {
2273
2278
  key: e,
2274
2279
  class: "td-skeleton-line",
2275
- style: nt({ width: `${t[(e - 1) % t.length]}%` })
2280
+ style: V({ width: `${t[(e - 1) % t.length]}%` })
2276
2281
  }, null, 4))), 128))]));
2277
2282
  }
2278
- }), [["__scopeId", "data-v-f78bb079"]]), ro = /*#__PURE__*/ A(/* @__PURE__ */ B({
2283
+ }), [["__scopeId", "data-v-f78bb079"]]), no = /*#__PURE__*/ k(/* @__PURE__ */ z({
2279
2284
  __name: "TdSidebarNav",
2280
2285
  props: {
2281
2286
  tree: {},
@@ -2283,33 +2288,33 @@ var Va = {
2283
2288
  ready: { type: Boolean }
2284
2289
  },
2285
2290
  setup(e) {
2286
- let t = Ie(), n = J("scrollElement");
2291
+ let t = Le(), n = J("scrollElement");
2287
2292
  return Y(() => t.path, () => {
2288
- tt(() => {
2293
+ nt(() => {
2289
2294
  n.value?.querySelector(".is-active")?.scrollIntoView({ block: "nearest" });
2290
2295
  });
2291
- }, { immediate: !0 }), (t, r) => (H(), I("div", {
2296
+ }, { immediate: !0 }), (t, r) => (H(), F("div", {
2292
2297
  ref_key: "scrollElement",
2293
2298
  ref: n,
2294
2299
  class: "td-sidebar-scroll"
2295
- }, [!e.searchActive && !e.ready ? (H(), P(no, { 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, {
2296
2301
  key: 1,
2297
2302
  tree: e.tree
2298
2303
  }, null, 8, ["tree"]))], 512));
2299
2304
  }
2300
- }), [["__scopeId", "data-v-ca83b6cd"]]), io = { class: "td-sidebar-icons" }, ao = ["href", "aria-label"], oo = {
2305
+ }), [["__scopeId", "data-v-ca83b6cd"]]), ro = { class: "td-sidebar-icons" }, io = ["href", "aria-label"], ao = {
2301
2306
  key: 1,
2302
2307
  class: "td-sidebar-icon-sep"
2303
- }, so = ["href", "aria-label"], co = /*#__PURE__*/ A(/* @__PURE__ */ B({
2308
+ }, oo = ["href", "aria-label"], so = /*#__PURE__*/ k(/* @__PURE__ */ z({
2304
2309
  __name: "TdSidebarIcons",
2305
2310
  props: { tree: {} },
2306
2311
  emits: ["search"],
2307
2312
  setup(n, { emit: r }) {
2308
- 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(() => {
2309
2314
  let e = [];
2310
2315
  for (let r of n.tree.entries) {
2311
2316
  if (r.kind !== "dir") continue;
2312
- 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;
2313
2318
  e.push({
2314
2319
  label: d,
2315
2320
  href: o(u),
@@ -2326,55 +2331,55 @@ var Va = {
2326
2331
  function m(t) {
2327
2332
  return a.path === t || e(t, a.path);
2328
2333
  }
2329
- return (e, n) => (H(), I("div", io, [
2330
- z(Fr, {
2334
+ return (e, n) => (H(), F("div", ro, [
2335
+ R(Nr, {
2331
2336
  text: "Search",
2332
2337
  always: ""
2333
2338
  }, {
2334
- default: X(() => [L("button", {
2339
+ default: X(() => [I("button", {
2335
2340
  class: "td-sidebar-icon-btn",
2336
2341
  type: "button",
2337
2342
  "aria-label": "Search",
2338
2343
  onClick: p
2339
- }, [z(q(Ve), { size: 16 })])]),
2344
+ }, [R(q(He), { size: 16 })])]),
2340
2345
  _: 1
2341
2346
  }),
2342
- u.value ? (H(), P(Fr, {
2347
+ u.value ? (H(), N(Nr, {
2343
2348
  key: 0,
2344
2349
  text: u.value.label ?? "Home",
2345
2350
  always: ""
2346
2351
  }, {
2347
- default: X(() => [L("a", {
2352
+ default: X(() => [I("a", {
2348
2353
  href: q(o)(q(t)(u.value.filepath)),
2349
- 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)) }]),
2350
2355
  "aria-label": u.value.label ?? "Home"
2351
- }, [z(q(le), { size: 16 })], 10, ao)]),
2356
+ }, [R(q(ue), { size: 16 })], 10, io)]),
2352
2357
  _: 1
2353
- }, 8, ["text"])) : F("", !0),
2354
- f.value.length ? (H(), I("div", oo)) : F("", !0),
2355
- (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, {
2356
2361
  key: e.href,
2357
2362
  text: e.label,
2358
2363
  always: ""
2359
2364
  }, {
2360
- default: X(() => [L("a", {
2365
+ default: X(() => [I("a", {
2361
2366
  href: e.href,
2362
- class: V(["td-sidebar-icon-btn", { "is-active": m(e.path) }]),
2367
+ class: B(["td-sidebar-icon-btn", { "is-active": m(e.path) }]),
2363
2368
  "aria-label": e.label
2364
- }, [e.isFallback ? (H(), P(q(ce), {
2369
+ }, [e.isFallback ? (H(), N(q(le), {
2365
2370
  key: 1,
2366
2371
  size: 16
2367
- })) : (H(), P(ut(e.icon), {
2372
+ })) : (H(), N(ut(e.icon), {
2368
2373
  key: 0,
2369
2374
  size: 16
2370
- }))], 10, so)]),
2375
+ }))], 10, oo)]),
2371
2376
  _: 2
2372
2377
  }, 1032, ["text"]))), 128))
2373
2378
  ]));
2374
2379
  }
2375
- }), [["__scopeId", "data-v-a8248b04"]]);
2380
+ }), [["__scopeId", "data-v-48b69ea7"]]);
2376
2381
  // src/client/theme-default/components/TdSiteSearch/highlight.ts
2377
- function lo(e, t) {
2382
+ function co(e, t) {
2378
2383
  if (!e || !t) return f(e);
2379
2384
  let n = t.trim().split(/\s+/).filter(Boolean), r = f(e);
2380
2385
  for (let e of n) {
@@ -2384,15 +2389,15 @@ function lo(e, t) {
2384
2389
  return r;
2385
2390
  }
2386
2391
  // src/client/theme-default/components/TdSiteSearch/useSiteSearch.ts
2387
- var uo = 120;
2388
- function fo() {
2389
- let e = Pe(), t, n = ft([]), r = ft(!1);
2392
+ var lo = 120;
2393
+ function uo() {
2394
+ let e = Fe(), t, n = ft([]), r = ft(!1);
2390
2395
  Y(e, () => {
2391
2396
  t = void 0;
2392
2397
  });
2393
2398
  function i() {
2394
2399
  if (t) return t;
2395
- if (e.value) return t = Qe(ae.loadJSON(e.value, {
2400
+ if (e.value) return t = $e(ae.loadJSON(e.value, {
2396
2401
  fields: v,
2397
2402
  storeFields: x
2398
2403
  })), t;
@@ -2400,13 +2405,13 @@ function fo() {
2400
2405
  function a(e, t) {
2401
2406
  if (!e) return "";
2402
2407
  let n = Object.keys(t);
2403
- if (n.length === 0) return e.slice(0, uo);
2408
+ if (n.length === 0) return e.slice(0, lo);
2404
2409
  let r = e.toLowerCase(), i = e.length;
2405
2410
  for (let e of n) {
2406
2411
  let t = r.indexOf(e.toLowerCase());
2407
2412
  t !== -1 && t < i && (i = t);
2408
2413
  }
2409
- let a = Math.max(0, i - 30), o = Math.min(e.length, a + uo), s = e.slice(a, o).trim();
2414
+ let a = Math.max(0, i - 30), o = Math.min(e.length, a + lo), s = e.slice(a, o).trim();
2410
2415
  return 0 < a && (s = "..." + s), o < e.length && (s += "..."), s;
2411
2416
  }
2412
2417
  async function o(e) {
@@ -2450,31 +2455,31 @@ function fo() {
2450
2455
  };
2451
2456
  }
2452
2457
  // src/client/theme-default/components/TdCommandPalette.vue?vue&type=script&setup=true&lang.ts
2453
- var po = {
2458
+ var fo = {
2454
2459
  class: "td-palette",
2455
2460
  role: "dialog",
2456
2461
  "aria-modal": "true",
2457
2462
  "aria-label": "Command palette"
2458
- }, mo = { class: "td-palette-input-row" }, ho = {
2463
+ }, po = { class: "td-palette-input-row" }, mo = {
2459
2464
  ref: "results",
2460
2465
  class: "td-palette-results"
2461
- }, go = [
2466
+ }, ho = [
2462
2467
  "href",
2463
2468
  "onClick",
2464
2469
  "onMouseenter"
2465
- ], _o = ["innerHTML"], vo = { class: "td-palette-item-path" }, yo = { class: "td-palette-group-label" }, bo = { class: "td-palette-item-label" }, xo = {
2470
+ ], go = ["innerHTML"], _o = { class: "td-palette-item-path" }, vo = { class: "td-palette-group-label" }, yo = { class: "td-palette-item-label" }, bo = {
2466
2471
  key: 1,
2467
2472
  class: "td-palette-empty"
2468
- }, So = { class: "td-palette-footer" }, Co = /*#__PURE__*/ A(/* @__PURE__ */ B({
2473
+ }, xo = { class: "td-palette-footer" }, So = /*#__PURE__*/ k(/* @__PURE__ */ z({
2469
2474
  __name: "TdCommandPalette",
2470
2475
  emits: ["toggle-sidebar", "show-shortcuts"],
2471
2476
  setup(e, { expose: t, emit: r }) {
2472
- 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: _ } = fo(), 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());
2473
2478
  function y() {
2474
2479
  a.value = !1, _();
2475
2480
  }
2476
2481
  function b() {
2477
- 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());
2478
2483
  }
2479
2484
  t({
2480
2485
  open: b,
@@ -2482,10 +2487,10 @@ var po = {
2482
2487
  }), Y(v, (e, t, n) => {
2483
2488
  n(() => _()), g(e), s.value = 0;
2484
2489
  });
2485
- let x = N(() => {
2490
+ let x = M(() => {
2486
2491
  let e = n(u.path);
2487
2492
  return e === "/" ? void 0 : e;
2488
- }), S = N(() => {
2493
+ }), S = M(() => {
2489
2494
  let e = [];
2490
2495
  return m.value && e.push({
2491
2496
  id: "nav-next",
@@ -2526,18 +2531,18 @@ var po = {
2526
2531
  navigator.clipboard.writeText(window.location.href).catch(() => {}), y();
2527
2532
  }
2528
2533
  }), e;
2529
- }), C = N(() => {
2534
+ }), C = M(() => {
2530
2535
  if (!v.value) return S.value;
2531
2536
  let e = v.value.toLowerCase();
2532
2537
  return S.value.filter((t) => t.label.toLowerCase().includes(e) || t.group.toLowerCase().includes(e));
2533
- }), w = N(() => {
2538
+ }), w = M(() => {
2534
2539
  let e = /* @__PURE__ */ new Map();
2535
2540
  for (let t of C.value) e.has(t.group) || e.set(t.group, []), e.get(t.group).push(t);
2536
2541
  return [...e.entries()].map(([e, t]) => ({
2537
2542
  name: e,
2538
2543
  commands: t
2539
2544
  }));
2540
- }), T = N(() => h.value.length + C.value.length);
2545
+ }), T = M(() => h.value.length + C.value.length);
2541
2546
  function E(e) {
2542
2547
  return h.value.length + C.value.indexOf(e);
2543
2548
  }
@@ -2567,16 +2572,16 @@ var po = {
2567
2572
  requestAnimationFrame(() => {
2568
2573
  l.value?.querySelector(".is-selected")?.scrollIntoView({ block: "nearest" });
2569
2574
  });
2570
- }), (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", {
2571
2576
  class: "td-palette-scrim",
2572
2577
  onClick: y
2573
- }), L("div", po, [
2574
- L("div", mo, [
2575
- z(q(Ve), {
2578
+ }), I("div", fo, [
2579
+ I("div", po, [
2580
+ R(q(He), {
2576
2581
  size: 14,
2577
2582
  class: "td-palette-input-icon"
2578
2583
  }),
2579
- vt(L("input", {
2584
+ vt(I("input", {
2580
2585
  ref: "input",
2581
2586
  "onUpdate:modelValue": t[0] ||= (e) => o.value = e,
2582
2587
  class: "td-palette-input",
@@ -2586,54 +2591,53 @@ var po = {
2586
2591
  spellcheck: "false",
2587
2592
  onKeydown: ee
2588
2593
  }, null, 544), [[ht, o.value]]),
2589
- L("button", {
2594
+ I("button", {
2590
2595
  class: "td-palette-esc",
2591
2596
  type: "button",
2592
2597
  "aria-label": "Close",
2593
2598
  onClick: y
2594
2599
  }, " esc ")
2595
2600
  ]),
2596
- L("div", ho, [
2597
- 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", {
2598
2603
  key: e.id,
2599
2604
  href: q(f)(e.id),
2600
- class: V(["td-palette-item", { "is-selected": t === s.value }]),
2605
+ class: B(["td-palette-item", { "is-selected": t === s.value }]),
2601
2606
  onClick: bt(() => ne(t), ["prevent"]),
2602
2607
  onMouseenter: () => s.value = t
2603
- }, [L("span", {
2608
+ }, [I("span", {
2604
2609
  class: "td-palette-item-label",
2605
- innerHTML: q(lo)(e.title, v.value)
2606
- }, null, 8, _o), L("span", vo, K(e.id), 1)], 42, go))), 128))], 64)) : F("", !0),
2607
- (H(!0), I(M, null, W(w.value, (e) => (H(), I(M, { key: e.name }, [L("div", yo, 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" }, {
2610
+ innerHTML: q(co)(e.title, v.value)
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" }, {
2608
2613
  class: ["td-palette-item", { "is-selected": E(e) === s.value }],
2609
2614
  onClick: () => te(e),
2610
2615
  onMouseenter: () => s.value = E(e)
2611
2616
  }), {
2612
- default: X(() => [L("span", bo, K(e.label), 1), e.keys ? (H(), P($, {
2617
+ default: X(() => [I("span", yo, K(e.label), 1), e.keys ? (H(), N($, {
2613
2618
  key: 0,
2614
2619
  keys: e.keys
2615
- }, null, 8, ["keys"])) : F("", !0)]),
2620
+ }, null, 8, ["keys"])) : P("", !0)]),
2616
2621
  _: 2
2617
2622
  }, 1040, [
2618
2623
  "class",
2619
2624
  "onClick",
2620
2625
  "onMouseenter"
2621
2626
  ]))), 128))], 64))), 128)),
2622
- T.value === 0 && v.value ? (H(), I("div", xo, " 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)
2623
2628
  ], 512),
2624
- L("div", So, [
2625
- L("span", null, [
2626
- z($, { keys: [q(Q).ArrowUp] }, null, 8, ["keys"]),
2627
- t[2] ||= R(),
2628
- z($, { keys: [q(Q).ArrowDown] }, null, 8, ["keys"]),
2629
- 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)
2630
2634
  ]),
2631
- L("span", null, [z($, { keys: [q(Q).Enter] }, null, 8, ["keys"]), t[4] ||= R(" select", -1)]),
2632
- 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)])
2633
2637
  ])
2634
- ])], 64)) : F("", !0)]));
2638
+ ])], 64)) : P("", !0)]));
2635
2639
  }
2636
- }), [["__scopeId", "data-v-12ce6133"]]), wo = ["onKeydown"], To = { class: "td-shortcuts-header" }, Eo = { class: "td-shortcuts-table" }, Do = /*#__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({
2637
2641
  __name: "TdShortcutsDialog",
2638
2642
  props: { open: { type: Boolean } },
2639
2643
  emits: ["close"],
@@ -2643,11 +2647,11 @@ var po = {
2643
2647
  n("close");
2644
2648
  }
2645
2649
  return Y(() => e.open, (e) => {
2646
- e && tt(() => r.value?.focus());
2647
- }), (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", {
2648
2652
  class: "td-shortcuts-scrim",
2649
2653
  onClick: i
2650
- }), L("div", {
2654
+ }), I("div", {
2651
2655
  ref: "dialog",
2652
2656
  class: "td-shortcuts-dialog",
2653
2657
  role: "dialog",
@@ -2655,30 +2659,30 @@ var po = {
2655
2659
  "aria-label": "Keyboard shortcuts",
2656
2660
  tabindex: "-1",
2657
2661
  onKeydown: yt(bt(i, ["stop"]), ["esc"])
2658
- }, [L("div", To, [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", {
2659
2663
  class: "td-shortcuts-close",
2660
2664
  type: "button",
2661
2665
  "aria-label": "Close",
2662
2666
  onClick: i
2663
- }, [z(q(Ne), { size: 16 })])]), L("table", Eo, [L("tbody", null, [
2664
- L("tr", null, [n[1] ||= L("td", null, "Search", -1), L("td", null, [z($, { keys: [q(Q).Meta, q(Q).k] }, null, 8, ["keys"])])]),
2665
- L("tr", null, [n[2] ||= L("td", null, "Commands", -1), L("td", null, [z($, { keys: [q(Q).Meta, q(Q).FSlash] }, null, 8, ["keys"])])]),
2666
- 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"])])]),
2667
- 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"])])]),
2668
- 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"])])]),
2669
- L("tr", null, [n[6] ||= L("td", null, "Close", -1), L("td", null, [z($, { keys: [q(Q).Escape] }, null, 8, ["keys"])])])
2670
- ])])], 40, wo)], 64)) : F("", !0)]));
2671
- }
2672
- }), [["__scopeId", "data-v-09d6a93c"]]), Oo = { class: "td-search" }, ko = { class: "td-search-input-wrap" }, Ao = {
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)]));
2675
+ }
2676
+ }), [["__scopeId", "data-v-09d6a93c"]]), Do = { class: "td-search" }, Oo = { class: "td-search-input-wrap" }, ko = {
2673
2677
  key: 2,
2674
2678
  class: "td-search-count"
2675
- }, jo = {
2679
+ }, Ao = {
2676
2680
  key: 0,
2677
2681
  class: "td-search-results"
2678
- }, Mo = ["href"], No = ["innerHTML"], Po = { class: "td-search-result-path" }, Fo = ["innerHTML"], Io = {
2682
+ }, jo = ["href"], Mo = ["innerHTML"], No = { class: "td-search-result-path" }, Po = ["innerHTML"], Fo = {
2679
2683
  key: 1,
2680
2684
  class: "td-search-empty"
2681
- }, Lo = /*#__PURE__*/ A(/* @__PURE__ */ B({
2685
+ }, Io = /*#__PURE__*/ k(/* @__PURE__ */ z({
2682
2686
  __name: "TdSiteSearch",
2683
2687
  props: {
2684
2688
  active: {
@@ -2689,9 +2693,9 @@ var po = {
2689
2693
  query: { default: "" },
2690
2694
  queryModifiers: {}
2691
2695
  },
2692
- emits: /*@__PURE__*/ $e(["select"], ["update:active", "update:query"]),
2696
+ emits: /*@__PURE__*/ et(["select"], ["update:active", "update:query"]),
2693
2697
  setup(e, { expose: t, emit: n }) {
2694
- 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 } = fo(), 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(() => {
2695
2699
  let e = [], t = /* @__PURE__ */ new Map();
2696
2700
  for (let n of u.value) {
2697
2701
  let r = a(n.id), i = t.get(r);
@@ -2715,7 +2719,7 @@ var po = {
2715
2719
  function v() {
2716
2720
  i.value = "";
2717
2721
  }
2718
- let y = N(() => _.value.flatMap((e) => e.results)), b = N(() => {
2722
+ let y = M(() => _.value.flatMap((e) => e.results)), b = M(() => {
2719
2723
  let e = /* @__PURE__ */ new Map();
2720
2724
  for (let t = 0; t < y.value.length; t++) e.set(y.value[t].id, t);
2721
2725
  return e;
@@ -2755,13 +2759,13 @@ var po = {
2755
2759
  get isFocused() {
2756
2760
  return document.activeElement === w.value;
2757
2761
  }
2758
- }), (e, t) => (H(), I("div", Oo, [
2759
- L("div", ko, [
2760
- z(q(Ve), {
2762
+ }), (e, t) => (H(), F("div", Do, [
2763
+ I("div", Oo, [
2764
+ R(q(He), {
2761
2765
  size: 14,
2762
2766
  class: "td-search-icon"
2763
2767
  }),
2764
- vt(L("input", {
2768
+ vt(I("input", {
2765
2769
  ref_key: "searchInput",
2766
2770
  ref: w,
2767
2771
  "onUpdate:modelValue": t[0] ||= (e) => i.value = e,
@@ -2771,71 +2775,71 @@ var po = {
2771
2775
  placeholder: "Search...",
2772
2776
  onKeydown: x
2773
2777
  }, null, 544), [[ht, i.value]]),
2774
- !g.value && !q(d) ? (H(), P($, {
2778
+ !g.value && !q(d) ? (H(), N($, {
2775
2779
  key: 0,
2776
2780
  keys: [q(Q).Meta, q(Q).k],
2777
2781
  class: "td-search-kbd"
2778
- }, null, 8, ["keys"])) : F("", !0),
2779
- q(d) || !q(f) ? (H(), P(q(At), {
2782
+ }, null, 8, ["keys"])) : P("", !0),
2783
+ q(d) || !q(f) ? (H(), N(q(At), {
2780
2784
  key: 1,
2781
2785
  size: 12,
2782
2786
  class: "td-search-spinner"
2783
- })) : g.value ? (H(), I("span", Ao, K(q(u).length), 1)) : F("", !0),
2784
- 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", {
2785
2789
  key: 3,
2786
2790
  class: "td-search-clear",
2787
2791
  type: "button",
2788
2792
  "aria-label": "Clear search",
2789
2793
  onClick: v
2790
- }, [z(q(Ne), { size: 12 })])) : F("", !0)
2794
+ }, [R(q(Pe), { size: 12 })])) : P("", !0)
2791
2795
  ]),
2792
- g.value && q(u).length > 0 ? (H(), I("div", jo, [(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", {
2793
2797
  key: e.pageUrl,
2794
2798
  class: "td-search-group"
2795
- }, [(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", {
2796
2800
  key: e.id,
2797
2801
  href: q(l)(e.id),
2798
- class: V(["td-search-result", {
2802
+ class: B(["td-search-result", {
2799
2803
  "is-selected": b.value.get(e.id) === h.value,
2800
2804
  "is-current": q(l)(e.id) === q(s).path
2801
2805
  }]),
2802
2806
  onClick: S
2803
2807
  }, [
2804
- L("span", {
2808
+ I("span", {
2805
2809
  class: "td-search-result-title",
2806
- innerHTML: q(lo)(e.title, i.value)
2807
- }, null, 8, No),
2808
- L("span", Po, K(e.id), 1),
2809
- e.excerpt ? (H(), I("span", {
2810
+ innerHTML: q(co)(e.title, i.value)
2811
+ }, null, 8, Mo),
2812
+ I("span", No, K(e.id), 1),
2813
+ e.excerpt ? (H(), F("span", {
2810
2814
  key: 0,
2811
2815
  class: "td-search-result-excerpt",
2812
- innerHTML: q(lo)(e.excerpt, i.value)
2813
- }, null, 8, Fo)) : F("", !0)
2814
- ], 10, Mo))), 128))]))), 128))])) : F("", !0),
2815
- g.value && q(u).length === 0 ? (H(), I("div", Io, " No results for \"" + K(i.value) + "\" ", 1)) : F("", !0)
2816
+ innerHTML: q(co)(e.excerpt, i.value)
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)
2816
2820
  ]));
2817
2821
  }
2818
- }), [["__scopeId", "data-v-f42853f1"]]), Ro = /* @__PURE__ */ B({
2822
+ }), [["__scopeId", "data-v-f42853f1"]]), Lo = /* @__PURE__ */ z({
2819
2823
  __name: "TdThemeToggle",
2820
2824
  setup(e) {
2821
- let { isDark: t, toggle: n } = E();
2822
- return (e, r) => (H(), P(Ut, {
2825
+ let { isDark: t, toggle: n, lightToggleStyle: r, darkToggleStyle: i } = E();
2826
+ return (e, a) => (H(), N(Fr, {
2823
2827
  label: q(t) ? "Switch to light mode" : "Switch to dark mode",
2824
2828
  onClick: q(n)
2825
2829
  }, {
2826
- default: X(() => [q(t) ? (H(), P(q(xe), {
2827
- key: 0,
2830
+ default: X(() => [R(q(Se), {
2831
+ style: V(q(i)),
2828
2832
  size: 18
2829
- })) : (H(), P(q(Be), {
2830
- key: 1,
2833
+ }, null, 8, ["style"]), R(q(Ve), {
2834
+ style: V(q(r)),
2831
2835
  size: 18
2832
- }))]),
2836
+ }, null, 8, ["style"])]),
2833
2837
  _: 1
2834
2838
  }, 8, ["label", "onClick"]));
2835
2839
  }
2836
2840
  });
2837
2841
  // src/client/theme-default/composables/useCopyCode.ts
2838
- function zo() {
2842
+ function Ro() {
2839
2843
  function e(e) {
2840
2844
  let t = e.target?.closest(".td-code-copy, .copy");
2841
2845
  if (!t) return;
@@ -2862,7 +2866,7 @@ function zo() {
2862
2866
  });
2863
2867
  }
2864
2868
  // src/client/theme-default/composables/useCopyHeadingAnchor.ts
2865
- function Bo() {
2869
+ function zo() {
2866
2870
  function e(e) {
2867
2871
  let t = e.target?.closest(".td-header-anchor");
2868
2872
  if (!t) return;
@@ -2879,11 +2883,11 @@ function Bo() {
2879
2883
  });
2880
2884
  }
2881
2885
  // src/client/theme-default/composables/useResizableTable.ts
2882
- var Vo = 6, Ho = 40;
2883
- function Uo() {
2886
+ var Bo = 6, Vo = 40;
2887
+ function Ho() {
2884
2888
  let e, t = !1;
2885
2889
  function n(e, t) {
2886
- return e.getBoundingClientRect().right - t < Vo;
2890
+ return e.getBoundingClientRect().right - t < Bo;
2887
2891
  }
2888
2892
  function r(r) {
2889
2893
  if (t) return;
@@ -2903,7 +2907,7 @@ function Uo() {
2903
2907
  r.classList.add("is-resizing"), document.body.style.cursor = "col-resize";
2904
2908
  function o(e) {
2905
2909
  let t = e.clientX - i;
2906
- r && (r.style.width = `${Math.max(Ho, a + t)}px`);
2910
+ r && (r.style.width = `${Math.max(Vo, a + t)}px`);
2907
2911
  }
2908
2912
  function s() {
2909
2913
  t = !1, r?.classList.remove("is-resizing"), document.body.style.cursor = "", document.removeEventListener("pointermove", o), document.removeEventListener("pointerup", s);
@@ -2917,13 +2921,13 @@ function Uo() {
2917
2921
  });
2918
2922
  }
2919
2923
  // src/client/theme-default/components/TdDiagram.vue?vue&type=script&setup=true&lang.ts
2920
- var Wo = ["id"], Go = { class: "td-diagram-frame" }, Ko = ["innerHTML"], qo = { class: "td-diagram-code" }, Jo = { class: "td-diagram-code-number" }, Yo = { class: "td-diagram-code-column" }, Xo = { class: "td-diagram-toolbar" }, Zo = { class: "td-diagram-toolbar-label" }, Qo = { class: "td-diagram-segment" }, $o = { class: "td-diagram-zoom" }, es = {
2924
+ var Uo = ["id"], Wo = { class: "td-diagram-frame" }, Go = ["innerHTML"], Ko = { class: "td-diagram-code" }, qo = { class: "td-diagram-code-number" }, Jo = { class: "td-diagram-code-column" }, Yo = { class: "td-diagram-toolbar" }, Xo = { class: "td-diagram-toolbar-label" }, Zo = { class: "td-diagram-segment" }, Qo = { class: "td-diagram-zoom" }, $o = {
2921
2925
  key: 0,
2922
2926
  class: "td-diagram-caption"
2923
- }, ts = ["aria-label"], ns = { class: "td-diagram-modal-header" }, rs = { class: "td-diagram-modal-header-left" }, is = { class: "td-diagram-modal-title" }, as = { class: "td-diagram-modal-chip" }, os = { class: "td-diagram-modal-header-right" }, ss = ["aria-pressed"], cs = { class: "td-diagram-button-label" }, ls = { class: "td-diagram-modal-body" }, us = {
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 = {
2924
2928
  key: 0,
2925
2929
  class: "td-diagram-modal-code-panel"
2926
- }, ds = { class: "td-diagram-modal-code-panel-header" }, fs = { class: "td-diagram-modal-code-panel-body" }, ps = { class: "td-diagram-code td-diagram-code--modal" }, ms = { class: "td-diagram-code-number" }, hs = { class: "td-diagram-code-column" }, gs = ["innerHTML"], _s = { class: "td-diagram-modal-hint" }, vs = .15, ys = 5, bs = 4, xs = .9, Ss = .82, Cs = 1.25, ws = .8, Ts = 1.6, Es = 1400, Ds = 20, Os = /*#__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({
2927
2931
  __name: "TdDiagram",
2928
2932
  props: {
2929
2933
  svg: {},
@@ -2941,7 +2945,7 @@ var Wo = ["id"], Go = { class: "td-diagram-frame" }, Ko = ["innerHTML"], qo = {
2941
2945
  x: 0,
2942
2946
  y: 0,
2943
2947
  scale: 1
2944
- }), h = N(() => {
2948
+ }), h = M(() => {
2945
2949
  let t = e.svg.match(/viewBox=["']([^"']+)["']/);
2946
2950
  if (t) {
2947
2951
  let e = t[1].split(/[\s,]+/);
@@ -2958,33 +2962,33 @@ var Wo = ["id"], Go = { class: "td-diagram-frame" }, Ko = ["innerHTML"], qo = {
2958
2962
  width: 400,
2959
2963
  height: 300
2960
2964
  };
2961
- }), 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(() => ({
2962
2966
  width: `${h.value.width}px`,
2963
2967
  height: `${h.value.height}px`
2964
- })), S = N(() => {
2968
+ })), S = M(() => {
2965
2969
  let { x: e, y: t, scale: n } = p.value;
2966
2970
  return {
2967
2971
  ...x.value,
2968
2972
  transform: `translate(${e}px, ${t}px) scale(${n})`
2969
2973
  };
2970
- }), C = N(() => {
2974
+ }), C = M(() => {
2971
2975
  let { x: e, y: t, scale: n } = m.value;
2972
2976
  return {
2973
2977
  ...x.value,
2974
2978
  transform: `translate(${e}px, ${t}px) scale(${n})`
2975
2979
  };
2976
- }), w = N(() => {
2977
- let { x: e, y: t, scale: n } = m.value, r = Ds * n;
2980
+ }), w = M(() => {
2981
+ let { x: e, y: t, scale: n } = m.value, r = Es * n;
2978
2982
  return {
2979
2983
  backgroundSize: `${r}px ${r}px`,
2980
2984
  backgroundPosition: `${e % r}px ${t % r}px`
2981
2985
  };
2982
2986
  });
2983
2987
  function T(e) {
2984
- return Math.min(ys, Math.max(vs, e));
2988
+ return Math.min(vs, Math.max(_s, e));
2985
2989
  }
2986
2990
  function E() {
2987
- l.value = !1, Re?.(), Re = void 0, s.value?.focus();
2991
+ l.value = !1, ze?.(), ze = void 0, s.value?.focus();
2988
2992
  }
2989
2993
  function ee(e, t, n, r, i) {
2990
2994
  if (n <= 0 || r <= 0) return {
@@ -3006,9 +3010,9 @@ var Wo = ["id"], Go = { class: "td-diagram-frame" }, Ko = ["innerHTML"], qo = {
3006
3010
  ne(f);
3007
3011
  }
3008
3012
  function ne(t) {
3009
- 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(() => {
3010
3014
  t.value = !1;
3011
- }, Es);
3015
+ }, Ts);
3012
3016
  }
3013
3017
  function re() {
3014
3018
  let t = (a.value ?? r.value)?.querySelector("svg");
@@ -3019,66 +3023,66 @@ var Wo = ["id"], Go = { class: "td-diagram-frame" }, Ko = ["innerHTML"], qo = {
3019
3023
  c.href = s, c.download = `${e.diagramId}.svg`, c.click(), URL.revokeObjectURL(s);
3020
3024
  }
3021
3025
  function ie() {
3022
- O(n.value ?? void 0, p, xs);
3026
+ oe(n.value ?? void 0, p, bs);
3023
3027
  }
3024
3028
  function ae() {
3025
- O(i.value ?? void 0, m, Ss);
3029
+ oe(i.value ?? void 0, m, xs);
3026
3030
  }
3027
- function O(e, t, n) {
3031
+ function oe(e, t, n) {
3028
3032
  !e || e.offsetWidth <= 0 || (t.value = ee(e.offsetWidth, e.offsetHeight, h.value.width, h.value.height, n));
3029
3033
  }
3030
- function oe(e, t) {
3034
+ function se(e, t) {
3031
3035
  let n = t.getBoundingClientRect(), r = (t.offsetWidth ? n.width / t.offsetWidth : 1) || 1;
3032
3036
  return {
3033
3037
  x: (e.clientX - n.left) / r,
3034
3038
  y: (e.clientY - n.top) / r
3035
3039
  };
3036
3040
  }
3037
- function ce(e) {
3038
- e.target.classList.contains("td-diagram-modal-backdrop") && E();
3039
- }
3040
3041
  function le(e) {
3041
- e.key === "Escape" ? (e.stopPropagation(), E()) : e.key === "+" || e.key === "=" ? de() : e.key === "-" ? fe() : e.key === "0" && ae();
3042
- }
3043
- function ue() {
3044
- xe(n.value ?? void 0, p, Cs);
3042
+ e.target.classList.contains("td-diagram-modal-backdrop") && E();
3045
3043
  }
3046
- function k() {
3047
- xe(n.value ?? void 0, p, ws);
3044
+ function ue(e) {
3045
+ e.key === "Escape" ? (e.stopPropagation(), E()) : e.key === "+" || e.key === "=" ? fe() : e.key === "-" ? pe() : e.key === "0" && ae();
3048
3046
  }
3049
3047
  function de() {
3050
- xe(i.value ?? void 0, m, Cs);
3048
+ Se(n.value ?? void 0, p, Ss);
3049
+ }
3050
+ function O() {
3051
+ Se(n.value ?? void 0, p, Cs);
3051
3052
  }
3052
3053
  function fe() {
3053
- xe(i.value ?? void 0, m, ws);
3054
+ Se(i.value ?? void 0, m, Ss);
3054
3055
  }
3055
- function me() {
3056
+ function pe() {
3057
+ Se(i.value ?? void 0, m, Cs);
3058
+ }
3059
+ function he() {
3056
3060
  let e = i.value;
3057
3061
  if (!e) return;
3058
3062
  let t = T(1);
3059
- 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);
3060
3064
  }
3061
- function he() {
3065
+ function ge() {
3062
3066
  l.value = !0, u.value = c.value, m.value = {
3063
3067
  x: 0,
3064
3068
  y: 0,
3065
3069
  scale: 1
3066
- }, tt(() => {
3070
+ }, nt(() => {
3067
3071
  requestAnimationFrame(() => {
3068
- ae(), o.value?.focus({ preventScroll: !0 }), Ee();
3072
+ ae(), o.value?.focus({ preventScroll: !0 }), De();
3069
3073
  });
3070
3074
  });
3071
3075
  }
3072
- function ge() {
3076
+ function _e() {
3073
3077
  c.value = !0;
3074
3078
  }
3075
- function _e() {
3079
+ function ve() {
3076
3080
  c.value = !1;
3077
3081
  }
3078
- function ye() {
3082
+ function be() {
3079
3083
  u.value = !u.value;
3080
3084
  }
3081
- function be(e, t, n, r) {
3085
+ function xe(e, t, n, r) {
3082
3086
  let i = T(e.scale * r), a = i / e.scale;
3083
3087
  return {
3084
3088
  x: t - (t - e.x) * a,
@@ -3086,10 +3090,10 @@ var Wo = ["id"], Go = { class: "td-diagram-frame" }, Ko = ["innerHTML"], qo = {
3086
3090
  scale: i
3087
3091
  };
3088
3092
  }
3089
- function xe(e, t, n) {
3090
- 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));
3091
3095
  }
3092
- let Se = {
3096
+ let Ce = {
3093
3097
  active: !1,
3094
3098
  startClientX: 0,
3095
3099
  startClientY: 0,
@@ -3097,7 +3101,7 @@ var Wo = ["id"], Go = { class: "td-diagram-frame" }, Ko = ["innerHTML"], qo = {
3097
3101
  startTransformY: 0,
3098
3102
  moved: !1,
3099
3103
  clientScale: 1
3100
- }, we = {
3104
+ }, Te = {
3101
3105
  active: !1,
3102
3106
  startClientX: 0,
3103
3107
  startClientY: 0,
@@ -3106,23 +3110,23 @@ var Wo = ["id"], Go = { class: "td-diagram-frame" }, Ko = ["innerHTML"], qo = {
3106
3110
  moved: !1,
3107
3111
  clientScale: 1
3108
3112
  };
3109
- function Te(e) {
3113
+ function Ee(e) {
3110
3114
  function t(t) {
3111
3115
  if (!t.ctrlKey && !t.metaKey) return;
3112
3116
  t.preventDefault();
3113
- let n = oe(t, e), r = Math.exp(-t.deltaY * .01);
3114
- 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);
3115
3119
  }
3116
3120
  return e.addEventListener("wheel", t, { passive: !1 }), () => e.removeEventListener("wheel", t);
3117
3121
  }
3118
- function Ee() {
3122
+ function De() {
3119
3123
  let e = i.value;
3120
3124
  if (!e) return;
3121
3125
  function t(t) {
3122
3126
  if (e) {
3123
3127
  if (t.preventDefault(), t.ctrlKey || t.metaKey) {
3124
- let n = oe(t, e), r = Math.exp(-t.deltaY * .01);
3125
- 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);
3126
3130
  } else {
3127
3131
  let n = (e.offsetWidth ? e.getBoundingClientRect().width / e.offsetWidth : 1) || 1;
3128
3132
  m.value = {
@@ -3133,294 +3137,294 @@ var Wo = ["id"], Go = { class: "td-diagram-frame" }, Ko = ["innerHTML"], qo = {
3133
3137
  }
3134
3138
  }
3135
3139
  }
3136
- e.addEventListener("wheel", t, { passive: !1 }), Re = () => e.removeEventListener("wheel", t);
3140
+ e.addEventListener("wheel", t, { passive: !1 }), ze = () => e.removeEventListener("wheel", t);
3137
3141
  }
3138
- function De(e, t, n, r) {
3142
+ function Oe(e, t, n, r) {
3139
3143
  if (e.button !== 0) return;
3140
3144
  t.active = !0, t.moved = !1;
3141
3145
  let i = n.getBoundingClientRect();
3142
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";
3143
3147
  }
3144
- function Oe(e, t, n, r) {
3148
+ function ke(e, t, n, r) {
3145
3149
  t.active && (t.active = !1, n.releasePointerCapture(e.pointerId), n.style.cursor = "", !t.moved && r && r());
3146
3150
  }
3147
- function ke(e, t, n) {
3151
+ function Ae(e, t, n) {
3148
3152
  if (!t.active) return;
3149
3153
  let r = (e.clientX - t.startClientX) / t.clientScale, i = (e.clientY - t.startClientY) / t.clientScale;
3150
- !t.moved && bs <= Math.hypot(r, i) && (t.moved = !0), t.moved && (n.value = {
3154
+ !t.moved && ys <= Math.hypot(r, i) && (t.moved = !0), t.moved && (n.value = {
3151
3155
  x: t.startTransformX + r,
3152
3156
  y: t.startTransformY + i,
3153
3157
  scale: n.value.scale
3154
3158
  });
3155
3159
  }
3156
- function je(e) {
3157
- let t = n.value;
3158
- t && De(e, Se, t, p);
3159
- }
3160
3160
  function Me(e) {
3161
3161
  let t = n.value;
3162
- t && Oe(e, Se, t, he);
3162
+ t && Oe(e, Ce, t, p);
3163
3163
  }
3164
- function Pe(e) {
3165
- ke(e, Se, p);
3164
+ function Ne(e) {
3165
+ let t = n.value;
3166
+ t && ke(e, Ce, t, ge);
3166
3167
  }
3167
3168
  function Fe(e) {
3169
+ Ae(e, Ce, p);
3170
+ }
3171
+ function Ie(e) {
3168
3172
  let t = i.value;
3169
3173
  if (!t) return;
3170
- let n = oe(e, t);
3171
- m.value = be(m.value, n.x, n.y, Ts);
3174
+ let n = se(e, t);
3175
+ m.value = xe(m.value, n.x, n.y, ws);
3172
3176
  }
3173
- function A(e) {
3177
+ function k(e) {
3174
3178
  let t = i.value;
3175
- t && De(e, we, t, m);
3179
+ t && Oe(e, Te, t, m);
3176
3180
  }
3177
- function j(e) {
3181
+ function A(e) {
3178
3182
  let t = i.value;
3179
- t && Oe(e, we, t);
3183
+ t && ke(e, Te, t);
3180
3184
  }
3181
- function Ie(e) {
3182
- ke(e, we, m);
3185
+ function Le(e) {
3186
+ Ae(e, Te, m);
3183
3187
  }
3184
3188
  Y(u, () => {
3185
- tt(() => ae());
3189
+ nt(() => ae());
3186
3190
  });
3187
- let Le, Re, ze;
3191
+ let Re, ze, Be;
3188
3192
  return it(() => {
3189
3193
  let e = n.value;
3190
3194
  if (!e) return;
3191
3195
  let t = new ResizeObserver(() => {
3192
3196
  0 < e.offsetWidth && 0 < e.offsetHeight && (ie(), t.disconnect());
3193
3197
  });
3194
- t.observe(e), Le = Te(e);
3198
+ t.observe(e), Re = Ee(e);
3195
3199
  }), rt(() => {
3196
- Le?.(), Re?.(), clearTimeout(ze);
3197
- }), (n, r) => (H(), I("figure", {
3200
+ Re?.(), ze?.(), clearTimeout(Be);
3201
+ }), (n, r) => (H(), F("figure", {
3198
3202
  id: e.diagramId,
3199
3203
  class: "td-diagram"
3200
3204
  }, [
3201
- L("div", Go, [
3202
- vt(L("div", {
3205
+ I("div", Wo, [
3206
+ vt(I("div", {
3203
3207
  ref: "stage",
3204
3208
  class: "td-diagram-stage",
3205
- onPointerdown: je,
3206
- onPointermove: Pe,
3207
- onPointerup: Me,
3208
- onPointercancel: Me
3209
- }, [L("div", {
3209
+ onPointerdown: Me,
3210
+ onPointermove: Fe,
3211
+ onPointerup: Ne,
3212
+ onPointercancel: Ne
3213
+ }, [I("div", {
3210
3214
  ref: "canvas",
3211
3215
  class: "td-diagram-canvas",
3212
- style: nt(S.value),
3216
+ style: V(S.value),
3213
3217
  innerHTML: e.svg
3214
- }, null, 12, Ko)], 544), [[gt, !c.value]]),
3215
- vt(L("pre", qo, [
3216
- r[3] ||= R(" ", -1),
3217
- (H(!0), I(M, null, W(g.value, (e, t) => (H(), I("div", {
3218
+ }, null, 12, Go)], 544), [[gt, !c.value]]),
3219
+ vt(I("pre", Ko, [
3220
+ r[3] ||= L(" ", -1),
3221
+ (H(!0), F(j, null, W(g.value, (e, t) => (H(), F("div", {
3218
3222
  key: t,
3219
3223
  class: "td-diagram-code-row"
3220
3224
  }, [
3221
- r[0] ||= R("\n ", -1),
3222
- L("span", Jo, K(t + 1), 1),
3223
- r[1] ||= R("\n ", -1),
3224
- L("span", Yo, K(e || " "), 1),
3225
- 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)
3226
3230
  ]))), 128)),
3227
- r[4] ||= R("\n ", -1)
3231
+ r[4] ||= L("\n ", -1)
3228
3232
  ], 512), [[gt, c.value]]),
3229
- L("div", Xo, [
3230
- L("span", Zo, K(e.label), 1),
3231
- L("div", Qo, [L("button", {
3233
+ I("div", Yo, [
3234
+ I("span", Xo, K(e.label), 1),
3235
+ I("div", Zo, [I("button", {
3232
3236
  type: "button",
3233
- class: V(["td-diagram-segment-button", { "is-active": !c.value }]),
3234
- onClick: _e
3235
- }, " Preview ", 2), L("button", {
3237
+ class: B(["td-diagram-segment-button", { "is-active": !c.value }]),
3238
+ onClick: ve
3239
+ }, " Preview ", 2), I("button", {
3236
3240
  type: "button",
3237
- class: V(["td-diagram-segment-button", { "is-active": c.value }]),
3238
- onClick: ge
3241
+ class: B(["td-diagram-segment-button", { "is-active": c.value }]),
3242
+ onClick: _e
3239
3243
  }, " Code ", 2)]),
3240
- L("button", {
3244
+ I("button", {
3241
3245
  type: "button",
3242
- class: V(["td-diagram-button", { "is-copied": d.value }]),
3246
+ class: B(["td-diagram-button", { "is-copied": d.value }]),
3243
3247
  "aria-label": "Copy source",
3244
3248
  onClick: te
3245
- }, [d.value ? (H(), P(q(xt), {
3249
+ }, [d.value ? (H(), N(q(xt), {
3246
3250
  key: 0,
3247
3251
  size: 16
3248
- })) : (H(), P(q(Tt), {
3252
+ })) : (H(), N(q(Tt), {
3249
3253
  key: 1,
3250
3254
  size: 16
3251
3255
  }))], 2),
3252
- L("button", {
3256
+ I("button", {
3253
3257
  ref: "expandButton",
3254
3258
  type: "button",
3255
3259
  class: "td-diagram-button",
3256
3260
  "aria-label": "Open full-screen preview",
3257
- onClick: he
3258
- }, [z(q(jt), { size: 16 })], 512)
3261
+ onClick: ge
3262
+ }, [R(q(jt), { size: 16 })], 512)
3259
3263
  ]),
3260
- vt(L("div", $o, [
3261
- L("button", {
3264
+ vt(I("div", Qo, [
3265
+ I("button", {
3262
3266
  type: "button",
3263
3267
  class: "td-diagram-button",
3264
3268
  "aria-label": "Zoom out",
3265
- onClick: k
3266
- }, [z(q(ve), { size: 16 })]),
3267
- L("button", {
3269
+ onClick: O
3270
+ }, [R(q(ye), { size: 16 })]),
3271
+ I("button", {
3268
3272
  type: "button",
3269
3273
  class: "td-diagram-button td-diagram-zoom-level",
3270
3274
  "aria-label": "Reset zoom",
3271
3275
  onClick: ie
3272
3276
  }, K(v.value), 1),
3273
- L("button", {
3277
+ I("button", {
3274
3278
  type: "button",
3275
3279
  class: "td-diagram-button",
3276
3280
  "aria-label": "Zoom in",
3277
- onClick: ue
3278
- }, [z(q(Ce), { size: 16 })])
3281
+ onClick: de
3282
+ }, [R(q(we), { size: 16 })])
3279
3283
  ], 512), [[gt, !c.value]]),
3280
- 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]])
3281
3285
  ]),
3282
- e.title ? (H(), I("figcaption", es, K(e.title), 1)) : F("", !0),
3283
- (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", {
3284
3288
  key: 0,
3285
3289
  class: "td-diagram-modal-backdrop",
3286
- onClick: ce
3287
- }, [L("div", {
3290
+ onClick: le
3291
+ }, [I("div", {
3288
3292
  ref: "modalDialog",
3289
3293
  class: "td-diagram-modal",
3290
3294
  role: "dialog",
3291
3295
  "aria-label": e.title || `${e.label} diagram`,
3292
3296
  tabindex: "-1",
3293
- onKeydown: le
3294
- }, [L("div", ns, [L("div", rs, [L("span", is, K(e.title || "Diagram"), 1), L("span", as, K(e.label), 1)]), L("div", os, [
3295
- 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", {
3296
3300
  type: "button",
3297
- class: V(["td-diagram-modal-button", { "is-active": u.value }]),
3301
+ class: B(["td-diagram-modal-button", { "is-active": u.value }]),
3298
3302
  "aria-pressed": u.value,
3299
3303
  "aria-label": "Toggle code",
3300
- onClick: ye
3301
- }, [z(q(pe), { size: 16 }), r[5] ||= L("span", { class: "td-diagram-button-label" }, "Code", -1)], 10, ss),
3302
- r[8] ||= L("span", { class: "td-diagram-modal-separator" }, null, -1),
3303
- 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", {
3304
3308
  type: "button",
3305
3309
  class: "td-diagram-modal-button",
3306
3310
  "aria-label": "Zoom out",
3307
- onClick: fe
3308
- }, [z(q(ve), { size: 16 })]),
3309
- L("button", {
3311
+ onClick: pe
3312
+ }, [R(q(ye), { size: 16 })]),
3313
+ I("button", {
3310
3314
  type: "button",
3311
3315
  class: "td-diagram-modal-button td-diagram-modal-zoom-level",
3312
3316
  "aria-label": "Zoom to 100%",
3313
- onClick: me
3317
+ onClick: he
3314
3318
  }, K(y.value), 1),
3315
- L("button", {
3319
+ I("button", {
3316
3320
  type: "button",
3317
3321
  class: "td-diagram-modal-button",
3318
3322
  "aria-label": "Zoom in",
3319
- onClick: de
3320
- }, [z(q(Ce), { size: 16 })]),
3321
- L("button", {
3323
+ onClick: fe
3324
+ }, [R(q(we), { size: 16 })]),
3325
+ I("button", {
3322
3326
  type: "button",
3323
3327
  class: "td-diagram-modal-button",
3324
3328
  "aria-label": "Fit to view",
3325
3329
  onClick: ae
3326
- }, [z(q(se), { size: 16 }), r[6] ||= L("span", { class: "td-diagram-button-label" }, "Fit", -1)]),
3327
- r[9] ||= L("span", { class: "td-diagram-modal-separator" }, null, -1),
3328
- 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", {
3329
3333
  type: "button",
3330
- class: V(["td-diagram-modal-button", { "is-copied": f.value }]),
3334
+ class: B(["td-diagram-modal-button", { "is-copied": f.value }]),
3331
3335
  "aria-label": "Copy source",
3332
3336
  onClick: D
3333
- }, [f.value ? (H(), P(q(xt), {
3337
+ }, [f.value ? (H(), N(q(xt), {
3334
3338
  key: 0,
3335
3339
  size: 16
3336
- })) : (H(), P(q(Tt), {
3340
+ })) : (H(), N(q(Tt), {
3337
3341
  key: 1,
3338
3342
  size: 16
3339
- })), L("span", cs, K(f.value ? "Copied" : "Copy"), 1)], 2),
3340
- L("button", {
3343
+ })), I("span", ss, K(f.value ? "Copied" : "Copy"), 1)], 2),
3344
+ I("button", {
3341
3345
  type: "button",
3342
3346
  class: "td-diagram-modal-button",
3343
3347
  "aria-label": "Download SVG",
3344
3348
  onClick: re
3345
- }, [z(q(Ae), { size: 16 }), r[7] ||= L("span", { class: "td-diagram-button-label" }, "SVG", -1)]),
3346
- r[10] ||= L("span", { class: "td-diagram-modal-separator" }, null, -1),
3347
- 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", {
3348
3352
  type: "button",
3349
3353
  class: "td-diagram-modal-button",
3350
3354
  "aria-label": "Close preview",
3351
3355
  onClick: E
3352
- }, [z(q(Ne), { size: 16 })])
3353
- ])]), L("div", ls, [u.value ? (H(), I("div", us, [L("div", ds, " diagram." + K(b.value) + " · " + K(_.value) + " lines ", 1), L("div", fs, [L("pre", ps, [
3354
- r[14] ||= R(" ", -1),
3355
- (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", {
3356
3360
  key: t,
3357
3361
  class: "td-diagram-code-row"
3358
3362
  }, [
3359
- r[11] ||= R("\n ", -1),
3360
- L("span", ms, K(t + 1), 1),
3361
- r[12] ||= R("\n ", -1),
3362
- L("span", hs, K(e || " "), 1),
3363
- 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)
3364
3368
  ]))), 128)),
3365
- r[15] ||= R("\n ", -1)
3366
- ])])])) : F("", !0), L("div", {
3369
+ r[15] ||= L("\n ", -1)
3370
+ ])])])) : P("", !0), I("div", {
3367
3371
  ref: "modalStage",
3368
3372
  class: "td-diagram-modal-stage",
3369
- style: nt(w.value),
3370
- onPointerdown: A,
3371
- onPointermove: Ie,
3372
- onPointerup: j,
3373
- onPointercancel: j,
3374
- onDblclick: Fe
3375
- }, [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", {
3376
3380
  ref: "modalCanvas",
3377
3381
  class: "td-diagram-modal-canvas",
3378
- style: nt(C.value),
3382
+ style: V(C.value),
3379
3383
  innerHTML: e.svg
3380
- }, null, 12, gs), L("div", _s, " Drag or scroll to pan · " + K(q(t)) + " + scroll or pinch to zoom · Double-click to zoom in · Esc to close ", 1)], 36)])], 40, ts)])) : F("", !0)]))
3381
- ], 8, Wo));
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)]))
3385
+ ], 8, Uo));
3382
3386
  }
3383
3387
  }), [["__scopeId", "data-v-fb95bcf7"]]);
3384
3388
  // src/client/theme-default/composables/lazy-embed/mountDiagram.ts
3385
- function ks(e, t) {
3389
+ function Os(e, t) {
3386
3390
  let n = document.createElement("div");
3387
- n.style.display = "contents", e.replaceWith(n), ct(Ze(Os, t), n);
3391
+ n.style.display = "contents", e.replaceWith(n), ct(Qe(Ds, t), n);
3388
3392
  }
3389
3393
  // src/client/theme-default/composables/lazy-embed/d2.ts
3390
- var As = "https://esm.sh/@terrastruct/d2@0.1.32", js, Ms = 0;
3391
- function Ns(e) {
3394
+ var ks = "https://esm.sh/@terrastruct/d2@0.1.32", As, js = 0;
3395
+ function Ms(e) {
3392
3396
  let t = {
3393
3397
  selector: ".td-d2-placeholder",
3394
- onRender: Fs,
3398
+ onRender: Ps,
3395
3399
  onVisible() {
3396
3400
  let e = document.createElement("link");
3397
- e.rel = "modulepreload", e.href = As, document.head.appendChild(e);
3401
+ e.rel = "modulepreload", e.href = ks, document.head.appendChild(e);
3398
3402
  }
3399
3403
  };
3400
3404
  it(() => e.register(t)), ot(() => e.unregister(t));
3401
3405
  }
3402
- async function Ps() {
3403
- if (js) return js;
3406
+ async function Ns() {
3407
+ if (As) return As;
3404
3408
  try {
3405
3409
  let e = await import(
3406
3410
  /* @vite-ignore */
3407
- As
3411
+ ks
3408
3412
  );
3409
- js = new (e.D2 || (e.default?.D2) || e.default)();
3413
+ As = new (e.D2 || (e.default?.D2) || e.default)();
3410
3414
  } catch {
3411
3415
  return;
3412
3416
  }
3413
- return js;
3417
+ return As;
3414
3418
  }
3415
- async function Fs(e) {
3419
+ async function Ps(e) {
3416
3420
  let t = e, n = t.querySelector("code");
3417
3421
  if (!n) return;
3418
- let r = n.textContent ?? "", i = await Ps();
3422
+ let r = n.textContent ?? "", i = await Ns();
3419
3423
  if (!i) return;
3420
- let a = `td-d2-${Ms++}`, o = t.getAttribute("data-title");
3424
+ let a = `td-d2-${js++}`, o = t.getAttribute("data-title");
3421
3425
  try {
3422
3426
  let e = await i.compile(r, { layout: "dagre" });
3423
- ks(t, {
3427
+ Os(t, {
3424
3428
  svg: await i.render(e.diagram, {
3425
3429
  ...e.renderOptions,
3426
3430
  themeID: document.documentElement.classList.contains("dark") ? 200 : 0
@@ -3435,42 +3439,42 @@ async function Fs(e) {
3435
3439
  }
3436
3440
  }
3437
3441
  // src/client/theme-default/composables/lazy-embed/mermaid.ts
3438
- var Is = "https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.esm.min.mjs", Ls, Rs = 0;
3439
- function zs(e) {
3442
+ var Fs = "https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.esm.min.mjs", Is, Ls = 0;
3443
+ function Rs(e) {
3440
3444
  let t = {
3441
3445
  selector: ".td-mermaid-placeholder",
3442
- onRender: Vs,
3446
+ onRender: Bs,
3443
3447
  onVisible() {
3444
3448
  let e = document.createElement("link");
3445
- e.rel = "modulepreload", e.href = Is, document.head.appendChild(e);
3449
+ e.rel = "modulepreload", e.href = Fs, document.head.appendChild(e);
3446
3450
  }
3447
3451
  };
3448
3452
  it(() => e.register(t)), ot(() => e.unregister(t));
3449
3453
  }
3450
- async function Bs() {
3451
- if (Ls !== void 0) return Ls;
3454
+ async function zs() {
3455
+ if (Is !== void 0) return Is;
3452
3456
  try {
3453
- Ls = await import(
3457
+ Is = await import(
3454
3458
  /* @vite-ignore */
3455
- Is
3459
+ Fs
3456
3460
  );
3457
3461
  } catch {
3458
3462
  return;
3459
3463
  }
3460
- return Ls.default.initialize({
3464
+ return Is.default.initialize({
3461
3465
  startOnLoad: !1,
3462
3466
  theme: document.documentElement.classList.contains("dark") ? "dark" : "default"
3463
- }), Ls;
3467
+ }), Is;
3464
3468
  }
3465
- async function Vs(e) {
3469
+ async function Bs(e) {
3466
3470
  let t = e, n = t.querySelector("code");
3467
3471
  if (!n) return;
3468
- let r = n.textContent ?? "", i = await Bs();
3472
+ let r = n.textContent ?? "", i = await zs();
3469
3473
  if (i === void 0) return;
3470
- let a = `td-mermaid-${Rs++}`, o = t.getAttribute("data-title");
3474
+ let a = `td-mermaid-${Ls++}`, o = t.getAttribute("data-title");
3471
3475
  try {
3472
3476
  let { svg: e } = await i.default.render(a, r);
3473
- ks(t, {
3477
+ Os(t, {
3474
3478
  svg: e,
3475
3479
  source: r,
3476
3480
  title: o ?? void 0,
@@ -3482,15 +3486,15 @@ async function Vs(e) {
3482
3486
  }
3483
3487
  }
3484
3488
  // src/client/theme-default/composables/lazy-embed/github.ts
3485
- var Hs = "https://emgithub.com/embed-v2.js";
3486
- function Us(e) {
3489
+ var Vs = "https://emgithub.com/embed-v2.js";
3490
+ function Hs(e) {
3487
3491
  let t, n = [], r = {
3488
3492
  selector: ".td-github-placeholder",
3489
3493
  onRender(e) {
3490
3494
  let t = e, r = t.getAttribute("data-url");
3491
3495
  if (!r) return;
3492
3496
  let i = document.documentElement.classList.contains("dark"), a = document.createElement("script");
3493
- a.src = Ws(r, i);
3497
+ a.src = Us(r, i);
3494
3498
  let o = document.createElement("div");
3495
3499
  o.className = "td-github-wrapper", o.dataset.url = r, o.appendChild(a), t.replaceWith(o), n.push({
3496
3500
  container: o,
@@ -3503,7 +3507,7 @@ function Us(e) {
3503
3507
  for (let e = n.length - 1; 0 <= e; e--) n[e].container.isConnected || n.splice(e, 1);
3504
3508
  for (let t of n) {
3505
3509
  let n = document.createElement("script");
3506
- n.src = Ws(t.url, e), t.container.innerHTML = "", t.container.appendChild(n);
3510
+ n.src = Us(t.url, e), t.container.innerHTML = "", t.container.appendChild(n);
3507
3511
  }
3508
3512
  }
3509
3513
  it(() => {
@@ -3520,11 +3524,11 @@ function Us(e) {
3520
3524
  e.unregister(r), t?.disconnect(), n.length = 0;
3521
3525
  });
3522
3526
  }
3523
- function Ws(e, t) {
3524
- return `${Hs}?target=${encodeURIComponent(e)}&style=${t ? "base16/gruvbox-dark-medium" : "grayscale"}&type=code&showBorder=on&showFileMeta=on&showFullPath=on&showCopy=on&showLineNumbers=on`;
3527
+ function Us(e, t) {
3528
+ return `${Vs}?target=${encodeURIComponent(e)}&style=${t ? "base16/gruvbox-dark-medium" : "grayscale"}&type=code&showBorder=on&showFileMeta=on&showFullPath=on&showCopy=on&showLineNumbers=on`;
3525
3529
  }
3526
3530
  // src/client/theme-default/composables/lazy-embed/index.ts
3527
- function Gs() {
3531
+ function Ws() {
3528
3532
  let e = [], t = /* @__PURE__ */ new WeakSet(), n = /* @__PURE__ */ new WeakMap(), r, i;
3529
3533
  function a() {
3530
3534
  let i = document.getElementById("td-content");
@@ -3558,37 +3562,34 @@ function Gs() {
3558
3562
  n !== -1 && e.splice(n, 1);
3559
3563
  }
3560
3564
  };
3561
- zs(o), Ns(o), Us(o);
3565
+ Rs(o), Ms(o), Hs(o);
3562
3566
  }
3563
3567
  // src/client/theme-default/TdLayout.vue?vue&type=script&setup=true&lang.ts
3564
- var Ks = { class: "td-header" }, qs = { class: "td-header-left" }, Js = ["href"], Ys = { class: "td-brand-name" }, Xs = { class: "td-header-right" }, Zs = ["href"], Qs = { class: "td-drawer-header" }, $s = ["href"], ec = { class: "td-brand-name" }, tc = {
3568
+ var Gs = { class: "td-header" }, Ks = { class: "td-header-left" }, qs = ["href"], Js = { class: "td-brand-name" }, Ys = { class: "td-header-right" }, Xs = ["href"], Zs = { class: "td-drawer-header" }, Qs = ["href"], $s = { class: "td-brand-name" }, ec = {
3565
3569
  key: 0,
3566
3570
  class: "pt-4",
3567
3571
  "aria-label": "Site navigation"
3568
- }, nc = { class: "td-page" }, rc = ["aria-label"], ic = {
3569
- key: 2,
3570
- class: "td-sidebar-collapse-label"
3571
- }, ac = ["onKeydown"], oc = { class: "td-main-and-rail" }, sc = { class: "td-main" }, cc = {
3572
+ }, tc = { class: "td-page" }, nc = ["aria-label"], rc = ["onKeydown"], ic = { class: "td-main-and-rail" }, ac = { class: "td-main" }, oc = {
3572
3573
  id: "td-content",
3573
3574
  class: "td-content",
3574
3575
  "data-testid": "content"
3575
- }, lc = {
3576
+ }, sc = {
3576
3577
  key: 0,
3577
3578
  class: "td-page-eyebrow"
3578
- }, uc = {
3579
+ }, cc = {
3579
3580
  key: 1,
3580
3581
  class: "td-page-icon"
3581
- }, dc = ["innerHTML"], fc = {
3582
+ }, lc = ["innerHTML"], uc = {
3582
3583
  key: 3,
3583
3584
  class: "td-page-meta"
3584
- }, pc = { key: 0 }, mc = { class: "td-content-body" }, hc = ["href"], gc = /*#__PURE__*/ A(/* @__PURE__ */ B({
3585
+ }, dc = { key: 0 }, fc = { class: "td-content-body" }, pc = ["href"], mc = /*#__PURE__*/ k(/* @__PURE__ */ z({
3585
3586
  __name: "TdLayout",
3586
3587
  setup(e) {
3587
- let { title: t, page: n } = Se(), i = N(() => {
3588
+ let { title: t, page: n } = Ce(), i = M(() => {
3588
3589
  let e = n.value.icon;
3589
- return e ? Le(e.name) : void 0;
3590
- }), 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);
3591
- Y(() => v.path, () => m()), zo(), Bo(), Gs();
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);
3592
+ Y(() => v.path, () => m()), Ro(), zo(), Ws();
3592
3593
  let x = J("sidebarSearch"), S = J("menuSearch"), C = J("palette"), { previous: w, next: T } = wa();
3593
3594
  function E() {
3594
3595
  y.value = !1;
@@ -3602,7 +3603,7 @@ var Ks = { class: "td-header" }, qs = { class: "td-header-left" }, Js = ["href"]
3602
3603
  ].filter(Boolean).join("/")}`;
3603
3604
  }
3604
3605
  function te() {
3605
- O.value = !1, tt(() => x.value?.focus());
3606
+ oe.value = !1, nt(() => x.value?.focus());
3606
3607
  }
3607
3608
  function ne() {
3608
3609
  x.value?.isVisible ? x.value.focus() : (p(), S.value?.focus());
@@ -3623,112 +3624,115 @@ var Ks = { class: "td-header" }, qs = { class: "td-header-left" }, Js = ["href"]
3623
3624
  document.title = e && e !== r ? `${e} - ${r}` : r;
3624
3625
  let i = n.value.frontmatter?.description === void 0 ? a.description ?? "" : String(n.value.frontmatter.description), o = document.querySelector("meta[name=\"description\"]");
3625
3626
  o && o.setAttribute("content", i);
3626
- }), Uo();
3627
- let { sidebarWidth: ae, sidebarCollapsed: O, sidebarStyle: oe } = D(), se = U(!1);
3628
- function ce() {
3629
- f.value ? d.value ? m() : p() : le();
3627
+ }), Ho();
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();
3630
3631
  }
3631
- function le() {
3632
- O.value = !O.value;
3632
+ function O() {
3633
+ oe.value = !oe.value;
3633
3634
  }
3634
- _a([Q.Control, Q.Backslash], ce, { capture: !0 }), _a([Q.Meta, Q.Backslash], ce, { capture: !0 });
3635
- function ue() {
3635
+ _a([Q.Control, Q.Backslash], de, { capture: !0 }), _a([Q.Meta, Q.Backslash], de, { capture: !0 });
3636
+ function fe() {
3636
3637
  ae.value = Math.min(500, ae.value + 20);
3637
3638
  }
3638
- function k(e) {
3639
+ function pe(e) {
3639
3640
  let t = e.clientX, n = ae.value, r = e.currentTarget;
3640
- se.value = !0, r.setPointerCapture(e.pointerId);
3641
+ ue.value = !0, r.setPointerCapture(e.pointerId);
3641
3642
  function i(e) {
3642
3643
  let r = Math.min(500, window.innerWidth * .85), i = Math.min(r, Math.max(200, n + e.clientX - t));
3643
3644
  ae.value = i;
3644
3645
  }
3645
3646
  function a() {
3646
- 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);
3647
3648
  }
3648
3649
  document.body.style.cursor = "col-resize", r.addEventListener("pointermove", i), r.addEventListener("pointerup", a);
3649
3650
  }
3650
- function de() {
3651
+ function me() {
3651
3652
  ae.value = Math.max(200, ae.value - 20);
3652
3653
  }
3653
- return (e, r) => (H(), I("div", null, [
3654
+ return (e, r) => (H(), F("div", null, [
3654
3655
  G(e.$slots, "layout-top", {}, void 0, !0),
3655
- r[6] ||= L("a", {
3656
+ r[6] ||= I("a", {
3656
3657
  href: "#td-content",
3657
3658
  class: "td-skip-link"
3658
3659
  }, "Skip to content", -1),
3659
- L("header", Ks, [
3660
- L("div", qs, [
3661
- z(Ca, { onClick: q(p) }, null, 8, ["onClick"]),
3662
- 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", {
3663
3667
  href: q(o)(q(s)("/")),
3664
3668
  class: "td-brand"
3665
- }, [z(Vt), L("span", Ys, K(q(a).title || "Typedown"), 1)], 8, Js),
3666
- 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" })
3667
3671
  ]),
3668
- z(q(bi)),
3672
+ R(q(bi)),
3669
3673
  G(e.$slots, "nav-bar-after", {}, void 0, !0),
3670
- L("div", Xs, [
3671
- z(Fr, {
3674
+ I("div", Ys, [
3675
+ R(Nr, {
3672
3676
  text: "Commands",
3673
3677
  placement: "bottom",
3674
3678
  shortcut: [q(Q).Meta, q(Q).FSlash],
3675
3679
  always: ""
3676
3680
  }, {
3677
- default: X(() => [L("button", {
3681
+ default: X(() => [I("button", {
3678
3682
  class: "td-header-commands-btn",
3679
3683
  type: "button",
3680
3684
  "aria-label": "Open command palette",
3681
3685
  onClick: re
3682
- }, [z(q(Oe), { size: 15 })])]),
3686
+ }, [R(q(ke), { size: 15 })])]),
3683
3687
  _: 1
3684
3688
  }, 8, ["shortcut"]),
3685
- z(Ro),
3686
- q(a).repo ? (H(), I("a", {
3689
+ R(Lo),
3690
+ q(a).repo ? (H(), F("a", {
3687
3691
  key: 0,
3688
3692
  href: q(a).repo.url,
3689
3693
  target: "_blank",
3690
3694
  rel: "noopener noreferrer",
3691
3695
  class: "td-header-icon-link",
3692
3696
  "aria-label": "GitHub repository"
3693
- }, [...r[5] ||= [L("svg", {
3697
+ }, [...r[5] ||= [I("svg", {
3694
3698
  width: "20",
3695
3699
  height: "20",
3696
3700
  viewBox: "0 0 98 96",
3697
3701
  xmlns: "http://www.w3.org/2000/svg",
3698
3702
  "aria-hidden": "true",
3699
3703
  fill: "currentColor"
3700
- }, [L("path", {
3704
+ }, [I("path", {
3701
3705
  "fill-rule": "evenodd",
3702
3706
  "clip-rule": "evenodd",
3703
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"
3704
- })], -1)]], 8, Zs)) : F("", !0)
3708
+ })], -1)]], 8, Xs)) : P("", !0)
3705
3709
  ])
3706
3710
  ]),
3707
- z(Ye, { name: "td-drawer-scrim" }, {
3708
- default: X(() => [q(f) ? (H(), I("div", {
3711
+ R(Xe, { name: "td-drawer-scrim" }, {
3712
+ default: X(() => [q(f) ? (H(), F("div", {
3709
3713
  key: 0,
3710
- class: V(["td-drawer-scrim", { "is-open": q(d) }]),
3714
+ class: B(["td-drawer-scrim", { "is-open": q(d) }]),
3711
3715
  onClick: r[0] ||= (...e) => q(m) && q(m)(...e)
3712
- }, null, 2)) : F("", !0)]),
3716
+ }, null, 2)) : P("", !0)]),
3713
3717
  _: 1
3714
3718
  }),
3715
- z(Ye, { name: "td-drawer-panel" }, {
3716
- default: X(() => [q(f) ? (H(), I("aside", {
3719
+ R(Xe, { name: "td-drawer-panel" }, {
3720
+ default: X(() => [q(f) ? (H(), F("aside", {
3717
3721
  key: 0,
3718
- class: V(["td-drawer", { "is-open": q(d) }])
3722
+ class: B(["td-drawer", { "is-open": q(d) }])
3719
3723
  }, [
3720
- L("header", Qs, [L("a", {
3724
+ I("header", Zs, [I("a", {
3721
3725
  href: q(o)(q(s)("/")),
3722
3726
  class: "td-brand"
3723
- }, [z(Vt), L("span", ec, K(q(a).title || "Typedown"), 1)], 8, $s), z(Ut, {
3727
+ }, [R(Vt), I("span", $s, K(q(a).title || "Typedown"), 1)], 8, Qs), R(Fr, {
3724
3728
  label: "Close menu",
3725
3729
  onClick: q(m)
3726
3730
  }, {
3727
- default: X(() => [z(q(Ne), { size: 20 })]),
3731
+ default: X(() => [R(q(Pe), { size: 20 })]),
3728
3732
  _: 1
3729
3733
  }, 8, ["onClick"])]),
3730
- z(q(Ci)),
3731
- z(Lo, {
3734
+ R(q(Ci)),
3735
+ R(Io, {
3732
3736
  ref_key: "menuSearch",
3733
3737
  ref: S,
3734
3738
  query: h.value,
@@ -3741,29 +3745,28 @@ var Ks = { class: "td-header" }, qs = { class: "td-header-left" }, Js = ["href"]
3741
3745
  "active",
3742
3746
  "onSelect"
3743
3747
  ]),
3744
- _.value ? F("", !0) : (H(), I("nav", tc, [u.value ? (H(), P(ni, {
3748
+ _.value ? P("", !0) : (H(), F("nav", ec, [u.value ? (H(), N(ni, {
3745
3749
  key: 1,
3746
3750
  tree: q(l).contentTree
3747
- }, null, 8, ["tree"])) : (H(), P(no, { key: 0 }))]))
3748
- ], 2)) : F("", !0)]),
3751
+ }, null, 8, ["tree"])) : (H(), N(to, { key: 0 }))]))
3752
+ ], 2)) : P("", !0)]),
3749
3753
  _: 1
3750
3754
  }),
3751
- L("div", nc, [L("nav", {
3752
- class: V(["td-sidebar-left", {
3753
- "is-resizing": se.value,
3754
- "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)
3755
3759
  }]),
3756
3760
  "data-testid": "sidebar",
3757
3761
  "aria-label": "Site navigation",
3758
- style: nt(q(oe))
3762
+ style: V(q(se))
3759
3763
  }, [
3760
- q(O) ? (H(), P(co, {
3761
- key: 1,
3762
- tree: q(l).contentTree,
3763
- onSearch: te
3764
- }, 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
+ }, [
3765
3768
  G(e.$slots, "sidebar-top", {}, void 0, !0),
3766
- z(Lo, {
3769
+ R(Io, {
3767
3770
  ref_key: "sidebarSearch",
3768
3771
  ref: x,
3769
3772
  query: h.value,
@@ -3772,7 +3775,7 @@ var Ks = { class: "td-header" }, qs = { class: "td-header-left" }, Js = ["href"]
3772
3775
  "onUpdate:active": r[4] ||= (e) => g.value = e,
3773
3776
  class: "td-sidebar-search"
3774
3777
  }, null, 8, ["query", "active"]),
3775
- z(ro, {
3778
+ R(no, {
3776
3779
  tree: q(l).contentTree,
3777
3780
  "search-active": g.value,
3778
3781
  ready: u.value
@@ -3782,100 +3785,108 @@ var Ks = { class: "td-header" }, qs = { class: "td-header-left" }, Js = ["href"]
3782
3785
  "ready"
3783
3786
  ]),
3784
3787
  G(e.$slots, "sidebar-bottom", {}, void 0, !0)
3785
- ], 64)),
3786
- 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", {
3787
3797
  class: "td-sidebar-collapse-btn",
3788
3798
  type: "button",
3789
- "aria-label": q(O) ? "Expand sidebar" : "Collapse sidebar",
3790
- onClick: le
3799
+ "aria-label": q(oe) ? "Expand sidebar" : "Collapse sidebar",
3800
+ onClick: O
3791
3801
  }, [
3792
- q(O) ? (H(), P(q(Ct), {
3793
- key: 1,
3802
+ R(q(St), {
3803
+ style: V(q(ce)),
3794
3804
  size: 14
3795
- })) : (H(), P(q(St), {
3796
- key: 0,
3805
+ }, null, 8, ["style"]),
3806
+ R(q(Ct), {
3807
+ style: V(q(le)),
3797
3808
  size: 14
3798
- })),
3799
- q(O) ? F("", !0) : (H(), I("span", ic, "Collapse sidebar")),
3800
- q(O) ? F("", !0) : (H(), P($, {
3801
- key: 3,
3802
- keys: [q(Q).Meta, q(Q).Backslash]
3803
- }, null, 8, ["keys"]))
3804
- ], 8, rc),
3805
- q(O) ? F("", !0) : (H(), I("div", {
3806
- key: 2,
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)
3815
+ ], 8, nc),
3816
+ I("div", {
3817
+ style: V(q(ce)),
3807
3818
  class: "td-resize-handle",
3808
3819
  role: "separator",
3809
3820
  "aria-orientation": "vertical",
3810
3821
  "aria-label": "Resize sidebar",
3811
3822
  tabindex: "0",
3812
- onPointerdown: bt(k, ["prevent"]),
3813
- onKeydown: [yt(bt(de, ["prevent"]), ["left"]), yt(bt(ue, ["prevent"]), ["right"])]
3814
- }, null, 40, ac))
3815
- ], 6), L("div", oc, [L("main", sc, [L("article", cc, [
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, [
3816
3827
  G(e.$slots, "doc-before", {}, void 0, !0),
3817
- q(n).schema ? (H(), I("div", lc, K(q(n).schemaLabel ?? q(n).schema), 1)) : F("", !0),
3818
- i.value ? (H(), I("div", uc, [(H(), P(ut(i.value), { size: 32 }))])) : F("", !0),
3819
- 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", {
3820
3831
  key: 2,
3821
3832
  class: "td-page-title",
3822
3833
  innerHTML: q(n).titleHtml
3823
- }, null, 8, dc)) : F("", !0),
3824
- q(n).fileMetadata ? (H(), I("div", fc, [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", pc, " · " + K(q(b)(q(n).fileMetadata.ctimeSecs, "Created")), 1))])) : F("", !0),
3825
- 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), {
3826
3837
  class: "td-frontmatter-inline",
3827
3838
  schema: q(n).schema,
3828
3839
  frontmatter: q(n).frontmatter
3829
3840
  }, null, 8, ["schema", "frontmatter"]),
3830
- q(n).headings.length > 1 ? (H(), P(Ya, {
3841
+ q(n).headings.length > 1 ? (H(), N(Ja, {
3831
3842
  key: 4,
3832
3843
  class: "td-toc-inline",
3833
3844
  headings: q(n).headings,
3834
3845
  inline: ""
3835
- }, null, 8, ["headings"])) : F("", !0),
3846
+ }, null, 8, ["headings"])) : P("", !0),
3836
3847
  G(e.$slots, "doc-content-before", {}, void 0, !0),
3837
- L("div", mc, [z(q(Fe))]),
3848
+ I("div", fc, [R(q(Ie))]),
3838
3849
  G(e.$slots, "doc-content-after", {}, void 0, !0),
3839
- z(La),
3840
- q(a).repo && q(n).filepath ? (H(), I("a", {
3850
+ R(La),
3851
+ q(a).repo && q(n).filepath ? (H(), F("a", {
3841
3852
  key: 5,
3842
3853
  href: ee(q(n).filepath),
3843
3854
  target: "_blank",
3844
3855
  rel: "noopener noreferrer",
3845
3856
  class: "td-page-edit"
3846
- }, "Edit this page", 8, hc)) : F("", !0),
3857
+ }, "Edit this page", 8, pc)) : P("", !0),
3847
3858
  G(e.$slots, "doc-after", {}, void 0, !0)
3848
- ])]), z(eo, { class: "td-rail" })])]),
3849
- z(ai),
3859
+ ])]), R($a, { class: "td-rail" })])]),
3860
+ R(ai),
3850
3861
  G(e.$slots, "layout-bottom", {}, void 0, !0),
3851
- z(Co, {
3862
+ R(So, {
3852
3863
  ref_key: "palette",
3853
3864
  ref: C,
3854
- onToggleSidebar: le,
3865
+ onToggleSidebar: O,
3855
3866
  onShowShortcuts: ie
3856
3867
  }, null, 512),
3857
- z(Do, {
3868
+ R(Eo, {
3858
3869
  open: y.value,
3859
3870
  onClose: E
3860
3871
  }, null, 8, ["open"])
3861
3872
  ]));
3862
3873
  }
3863
- }), [["__scopeId", "data-v-e1cb586a"]]), _c = { class: "pt-16 pb-24" }, vc = ["href"], yc = /* @__PURE__ */ B({
3874
+ }), [["__scopeId", "data-v-21aaf8eb"]]), hc = { class: "pt-16 pb-24" }, gc = ["href"], _c = /* @__PURE__ */ z({
3864
3875
  __name: "TdNotFound",
3865
3876
  setup(e) {
3866
- let { withBase: t } = j();
3867
- return (e, n) => (H(), I("div", _c, [
3868
- n[0] ||= L("p", { class: "text-td-4xl font-extrabold leading-none tracking-td-tight text-td-fg-muted" }, " 404 ", -1),
3869
- n[1] ||= L("h1", { class: "text-td-xl font-extrabold leading-td-tight tracking-td-tight mt-4" }, " Page Not Found ", -1),
3870
- 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),
3871
- 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", {
3872
3883
  class: "inline-flex items-center mt-6 text-td-accent text-td-sm font-extrabold tracking-td-tight hover:text-td-accent-hi",
3873
3884
  href: q(t)(q(s)("/"))
3874
- }, "Go Home", 8, vc)
3885
+ }, "Go Home", 8, gc)
3875
3886
  ]));
3876
3887
  }
3877
- }), bc = {
3878
- Layout: gc,
3879
- NotFound: yc
3888
+ }), vc = {
3889
+ Layout: mc,
3890
+ NotFound: _c
3880
3891
  };
3881
- 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, gc as TdLayout, yc as TdNotFound, La as TdPreviousNext, eo as TdRail, Ro as TdThemeToggle, Ya as TdToc, bc as default, ga as isTypingTarget, re as useClientPreferences, zo 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 };