typerighter 0.55.2 → 0.56.1

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