typerighter 0.40.3 → 0.40.6

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.
@@ -1,7 +1,7 @@
1
- import { C as e, D as t, F as n, I as r, J as i, M as a, O as o, P as s, S as c, T as l, U as u, Y as d, _ as f, a as p, c as m, f as h, g, k as _, l as v, n as y, p as b, r as x, s as S, v as C, y as w } from "../shared-LPNgvigl.js";
1
+ import { A as e, C as t, E as n, F as r, I as i, L as a, N as o, O as s, W as c, X as l, Y as u, _ as d, a as f, b as p, c as m, f as h, k as g, l as _, n as v, p as y, r as b, s as x, v as S, w as C, y as w } from "../shared-DMNZD2i1.js";
2
2
  import { t as T } from "../temml-DZbhOfRE.js";
3
3
  import { t as ee } from "../es-ClqUVRJn.js";
4
- import { A as te, C as ne, D as E, E as re, F as ie, I as D, M as ae, N as oe, O as se, P as ce, S as le, T as ue, _ as de, a as fe, b as pe, c as O, d as k, f as me, g as he, h as ge, i as _e, j as ve, k as ye, m as A, n as be, o as xe, p as Se, r as j, s as Ce, u as we, v as Te, w as Ee, x as De, y as Oe } from "../app-GI_8rzn8.js";
4
+ import { A as te, C as ne, D as E, E as re, F as ie, I as D, M as ae, N as oe, O as se, P as ce, S as le, T as ue, _ as de, a as fe, b as pe, c as O, d as k, f as me, g as he, h as ge, i as _e, j as ve, k as ye, m as A, n as be, o as xe, p as Se, r as j, s as Ce, u as we, v as Te, w as Ee, x as De, y as Oe } from "../app-OdN7kiy-.js";
5
5
  import { a as ke, i as Ae, n as je, t as Me } from "../brand-CG1fQshq.js";
6
6
  import { Fragment as M, Teleport as Ne, 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 Pe, markRaw as Fe, mergeModels as Ie, mergeProps as Le, nextTick as Re, normalizeClass as V, normalizeStyle as ze, onBeforeUnmount as Be, onMounted as Ve, onScopeDispose as He, onUnmounted as Ue, openBlock as H, readonly as We, ref as U, renderList as W, renderSlot as Ge, resolveComponent as Ke, resolveDynamicComponent as G, shallowReadonly as qe, shallowRef as Je, toDisplayString as K, toValue as Ye, unref as q, useModel as Xe, useTemplateRef as Ze, vModelText as Qe, watch as J, watchEffect as $e, withCtx as et, withDirectives as tt, withKeys as nt, withModifiers as rt } from "vue";
7
7
  var it = D({
@@ -1045,32 +1045,32 @@ var dr = /*#__PURE__*/ A(/* @__PURE__ */ B({
1045
1045
  node: {},
1046
1046
  urlPrefix: { default: "" }
1047
1047
  },
1048
- setup(t) {
1049
- let n = O(), { withBase: r } = j(), i = N(() => c(t.urlPrefix, t.node.name)), a = N(() => g(t.node)), s = N(() => a.value ? l(a.value.filepath) : e(i.value)), d = N(() => r(s.value)), f = N(() => a.value?.label ?? u(t.node.name)), m = N(() => a.value?.icon ? k(a.value.icon.name) : void 0), h = N(() => t.node.entries.filter((e) => e.kind === "dir" || !w(e.item.filepath))), _ = N(() => 0 < t.node.entries.length), v = N(() => y(t.node));
1048
+ setup(e) {
1049
+ let r = O(), { withBase: i } = j(), a = N(() => t(e.urlPrefix, e.node.name)), o = N(() => d(e.node)), s = N(() => o.value ? n(o.value.filepath) : C(a.value)), l = N(() => i(s.value)), u = N(() => o.value?.label ?? c(e.node.name)), m = N(() => o.value?.icon ? k(o.value.icon.name) : void 0), h = N(() => e.node.entries.filter((e) => e.kind === "dir" || !p(e.item.filepath))), _ = N(() => 0 < e.node.entries.length), v = N(() => y(e.node));
1050
1050
  function y(e) {
1051
1051
  let t = 0;
1052
1052
  for (let n of e.entries) n.kind === "file" ? t++ : t += y(n.node);
1053
1053
  return t;
1054
1054
  }
1055
- let b = U(!o(i.value, n.path)), x = U(!1), S = N(() => h.value.filter((e) => e.kind === "file").length), T = N(() => x.value ? 0 : Math.max(0, S.value - xr)), ee = N(() => {
1055
+ let b = U(!g(a.value, r.path)), x = U(!1), S = N(() => h.value.filter((e) => e.kind === "file").length), T = N(() => x.value ? 0 : Math.max(0, S.value - xr)), ee = N(() => {
1056
1056
  if (x.value) return h.value;
1057
1057
  let e = 0;
1058
1058
  return h.value.filter((t) => t.kind === "dir" || ++e <= xr);
1059
1059
  });
1060
- J(() => n.path, (e) => {
1061
- o(i.value, e) && (b.value = !1);
1060
+ J(() => r.path, (e) => {
1061
+ g(a.value, e) && (b.value = !1);
1062
1062
  });
1063
1063
  function ne() {
1064
1064
  x.value = !0;
1065
1065
  }
1066
1066
  function E(e) {
1067
- return n.path === e;
1067
+ return r.path === e;
1068
1068
  }
1069
1069
  function re() {
1070
1070
  b.value = !b.value;
1071
1071
  }
1072
1072
  return (e, t) => {
1073
- let n = Ke("TdTreeNode", !0);
1073
+ let r = Ke("TdTreeNode", !0);
1074
1074
  return _.value ? (H(), I("div", fr, [L("div", pr, [
1075
1075
  L("button", {
1076
1076
  type: "button",
@@ -1080,9 +1080,9 @@ var dr = /*#__PURE__*/ A(/* @__PURE__ */ B({
1080
1080
  }, [z(q(te), {
1081
1081
  size: 14,
1082
1082
  class: V(["td-tree-caret", { "is-collapsed": b.value }])
1083
- }, null, 8, ["class"]), L("span", hr, K(f.value), 1)], 8, mr),
1083
+ }, null, 8, ["class"]), L("span", hr, K(u.value), 1)], 8, mr),
1084
1084
  L("a", {
1085
- href: d.value,
1085
+ href: l.value,
1086
1086
  class: V(["td-tree-index-btn", { "is-active": E(s.value) }])
1087
1087
  }, [m.value ? (H(), P(G(m.value), {
1088
1088
  key: 0,
@@ -1095,14 +1095,14 @@ var dr = /*#__PURE__*/ A(/* @__PURE__ */ B({
1095
1095
  size: 12
1096
1096
  }))], 10, gr),
1097
1097
  L("span", _r, K(v.value), 1)
1098
- ]), L("div", { class: V(["td-collapse td-tree-children", { "is-collapsed": b.value }]) }, [L("div", null, [(H(!0), I(M, null, W(ee.value, (e) => (H(), I(M, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (H(), P(n, {
1098
+ ]), L("div", { class: V(["td-collapse td-tree-children", { "is-collapsed": b.value }]) }, [L("div", null, [(H(!0), I(M, null, W(ee.value, (e) => (H(), I(M, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (H(), P(r, {
1099
1099
  key: 0,
1100
1100
  node: e.node,
1101
- "url-prefix": i.value
1101
+ "url-prefix": a.value
1102
1102
  }, null, 8, ["node", "url-prefix"])) : (H(), I("a", {
1103
1103
  key: 1,
1104
- href: q(r)(q(l)(e.item.filepath)),
1105
- class: V(["td-tree-link", { "is-active": E(q(l)(e.item.filepath)) }])
1104
+ href: q(i)(q(n)(e.item.filepath)),
1105
+ class: V(["td-tree-link", { "is-active": E(q(n)(e.item.filepath)) }])
1106
1106
  }, [
1107
1107
  e.item.icon && q(k)(e.item.icon.name) ? (H(), P(G(q(k)(e.item.icon.name)), {
1108
1108
  key: 0,
@@ -1115,12 +1115,12 @@ var dr = /*#__PURE__*/ A(/* @__PURE__ */ B({
1115
1115
  })),
1116
1116
  z(dr, {
1117
1117
  class: "td-tree-link-text",
1118
- text: q(C)(e.item.filepath, e.item.label)
1118
+ text: q(w)(e.item.filepath, e.item.label)
1119
1119
  }, {
1120
- default: et(() => [L("span", { innerHTML: q(Ct)(q(C)(e.item.filepath, e.item.label)) }, null, 8, yr)]),
1120
+ default: et(() => [L("span", { innerHTML: q(Ct)(q(w)(e.item.filepath, e.item.label)) }, null, 8, yr)]),
1121
1121
  _: 2
1122
1122
  }, 1032, ["text"]),
1123
- e.item.metadata ? (H(), I("span", br, K(q(p)(e.item.metadata.mtime)), 1)) : F("", !0)
1123
+ e.item.fileMetadata ? (H(), I("span", br, K(q(f)(e.item.fileMetadata.mtime)), 1)) : F("", !0)
1124
1124
  ], 10, vr))], 64))), 128)), T.value > 0 && !x.value ? (H(), I("button", {
1125
1125
  key: 0,
1126
1126
  class: "td-tree-more",
@@ -1129,7 +1129,7 @@ var dr = /*#__PURE__*/ A(/* @__PURE__ */ B({
1129
1129
  }, K(T.value) + " more... ", 1)) : F("", !0)])], 2)])) : F("", !0);
1130
1130
  };
1131
1131
  }
1132
- }), [["__scopeId", "data-v-8638a605"]]), Cr = { class: "td-nav" }, wr = ["href"], Tr = {
1132
+ }), [["__scopeId", "data-v-cf42a4b9"]]), Cr = { class: "td-nav" }, wr = ["href"], Tr = {
1133
1133
  key: 0,
1134
1134
  class: "td-root-link-time"
1135
1135
  }, Er = ["href"], Dr = { class: "td-root-link-text" }, Or = {
@@ -1138,28 +1138,28 @@ var dr = /*#__PURE__*/ A(/* @__PURE__ */ B({
1138
1138
  }, kr = /*#__PURE__*/ A(/* @__PURE__ */ B({
1139
1139
  __name: "TdContentNav",
1140
1140
  props: { tree: {} },
1141
- setup(t) {
1142
- let n = O(), { withBase: r } = j(), i = N(() => t.tree.entries.find((e) => e.kind === "file" && w(e.item.filepath))?.item), a = N(() => t.tree.entries.filter((e) => e.kind === "dir" || !w(e.item.filepath)));
1141
+ setup(e) {
1142
+ let t = O(), { withBase: r } = j(), i = N(() => e.tree.entries.find((e) => e.kind === "file" && p(e.item.filepath))?.item), a = N(() => e.tree.entries.filter((e) => e.kind === "dir" || !p(e.item.filepath)));
1143
1143
  function o(e) {
1144
- return n.path === e;
1144
+ return t.path === e;
1145
1145
  }
1146
- return (t, n) => (H(), I("nav", Cr, [L("a", {
1147
- href: q(r)(i.value ? q(l)(i.value.filepath) : q(e)("/")),
1148
- class: V(["td-root-link", { "is-active": o(i.value ? q(l)(i.value.filepath) : q(e)("/")) }])
1146
+ return (e, t) => (H(), I("nav", Cr, [L("a", {
1147
+ href: q(r)(i.value ? q(n)(i.value.filepath) : q(C)("/")),
1148
+ class: V(["td-root-link", { "is-active": o(i.value ? q(n)(i.value.filepath) : q(C)("/")) }])
1149
1149
  }, [
1150
1150
  z(q(ne), {
1151
1151
  size: 14,
1152
1152
  class: "td-root-link-icon"
1153
1153
  }),
1154
- n[0] ||= L("span", { class: "td-root-link-text" }, "Overview", -1),
1155
- i.value ? (H(), I("span", Tr, K(i.value.metadata ? q(p)(i.value.metadata.mtime) : ""), 1)) : F("", !0)
1154
+ t[0] ||= L("span", { class: "td-root-link-text" }, "Overview", -1),
1155
+ i.value ? (H(), I("span", Tr, K(i.value.fileMetadata ? q(f)(i.value.fileMetadata.mtime) : ""), 1)) : F("", !0)
1156
1156
  ], 10, wr), (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(Sr, {
1157
1157
  key: 0,
1158
1158
  node: e.node
1159
1159
  }, null, 8, ["node"])) : (H(), I("a", {
1160
1160
  key: 1,
1161
- href: q(r)(q(l)(e.item.filepath)),
1162
- class: V(["td-root-link", { "is-active": o(q(l)(e.item.filepath)) }])
1161
+ href: q(r)(q(n)(e.item.filepath)),
1162
+ class: V(["td-root-link", { "is-active": o(q(n)(e.item.filepath)) }])
1163
1163
  }, [
1164
1164
  e.item.icon && q(k)(e.item.icon.name) ? (H(), P(G(q(k)(e.item.icon.name)), {
1165
1165
  key: 0,
@@ -1170,11 +1170,11 @@ var dr = /*#__PURE__*/ A(/* @__PURE__ */ B({
1170
1170
  size: 14,
1171
1171
  class: "td-root-link-icon"
1172
1172
  })),
1173
- L("span", Dr, K(q(C)(e.item.filepath, e.item.label)), 1),
1174
- e.item.metadata ? (H(), I("span", Or, K(q(p)(e.item.metadata.mtime)), 1)) : F("", !0)
1173
+ L("span", Dr, K(q(w)(e.item.filepath, e.item.label)), 1),
1174
+ e.item.fileMetadata ? (H(), I("span", Or, K(q(f)(e.item.fileMetadata.mtime)), 1)) : F("", !0)
1175
1175
  ], 10, Er))], 64))), 128))]));
1176
1176
  }
1177
- }), [["__scopeId", "data-v-c78d7204"]]), Ar = { class: "td-footer" }, jr = { key: 0 }, Mr = /*#__PURE__*/ A(/* @__PURE__ */ B({
1177
+ }), [["__scopeId", "data-v-02694810"]]), Ar = { class: "td-footer" }, jr = { key: 0 }, Mr = /*#__PURE__*/ A(/* @__PURE__ */ B({
1178
1178
  __name: "TdFooter",
1179
1179
  setup(e) {
1180
1180
  let t = j(), n = (/* @__PURE__ */ new Date()).getFullYear();
@@ -1234,36 +1234,36 @@ var dr = /*#__PURE__*/ A(/* @__PURE__ */ B({
1234
1234
  class: "td-breadcrumb-current"
1235
1235
  }, Ur = 3, Wr = /*#__PURE__*/ A(/* @__PURE__ */ B({
1236
1236
  __name: "TdBreadcrumb",
1237
- setup(n) {
1238
- let r = O(), { withBase: i } = j(), a = U(!1), o = N(() => {
1239
- let n = s(r.path), a = [{
1237
+ setup(e) {
1238
+ let t = O(), { withBase: n } = j(), i = U(!1), a = N(() => {
1239
+ let e = r(t.path), i = [{
1240
1240
  name: "Home",
1241
- href: i(e("/"))
1241
+ href: n(C("/"))
1242
1242
  }];
1243
- if (n === "/") return a;
1244
- let o = n.replace(/^\//, "").split("/"), c = t(n) ? o.slice(0, -1) : o;
1245
- for (let t = 0; t < c.length; t++) {
1246
- let n = "/" + c.slice(0, t + 1).join("/"), r = t === c.length - 1;
1247
- a.push({
1248
- name: u(c[t]),
1249
- href: i(r ? n : e(n))
1243
+ if (e === "/") return i;
1244
+ let a = e.replace(/^\//, "").split("/"), o = s(e) ? a.slice(0, -1) : a;
1245
+ for (let e = 0; e < o.length; e++) {
1246
+ let t = "/" + o.slice(0, e + 1).join("/"), r = e === o.length - 1;
1247
+ i.push({
1248
+ name: c(o[e]),
1249
+ href: n(r ? t : C(t))
1250
1250
  });
1251
1251
  }
1252
- return a;
1253
- }), c = N(() => Ur < o.value.length), l = N(() => o.value.slice(1, -2));
1254
- return J(() => r.path, () => {
1255
- a.value = !1;
1252
+ return i;
1253
+ }), o = N(() => Ur < a.value.length), l = N(() => a.value.slice(1, -2));
1254
+ return J(() => t.path, () => {
1255
+ i.value = !1;
1256
1256
  }), (e, t) => (H(), I("nav", Fr, [L("a", {
1257
- href: o.value[0].href,
1257
+ href: a.value[0].href,
1258
1258
  class: "td-breadcrumb-link td-breadcrumb-home"
1259
- }, K(o.value[0].name), 9, Ir), c.value ? (H(), I(M, { key: 0 }, [
1259
+ }, K(a.value[0].name), 9, Ir), o.value ? (H(), I(M, { key: 0 }, [
1260
1260
  t[2] ||= L("span", {
1261
1261
  class: "td-breadcrumb-sep",
1262
1262
  "aria-hidden": "true"
1263
1263
  }, "/", -1),
1264
1264
  z(Pr, {
1265
- open: a.value,
1266
- "onUpdate:open": t[0] ||= (e) => a.value = e
1265
+ open: i.value,
1266
+ "onUpdate:open": t[0] ||= (e) => i.value = e
1267
1267
  }, {
1268
1268
  trigger: et(() => [L("button", Lr, [z(q(E), { size: 14 })])]),
1269
1269
  default: et(() => [(H(!0), I(M, null, W(l.value, (e) => (H(), I("a", {
@@ -1273,18 +1273,18 @@ var dr = /*#__PURE__*/ A(/* @__PURE__ */ B({
1273
1273
  }, K(e.name), 9, Rr))), 128))]),
1274
1274
  _: 1
1275
1275
  }, 8, ["open"]),
1276
- (H(!0), I(M, null, W(o.value.slice(-2), (e) => (H(), I(M, { key: e.href }, [t[1] ||= L("span", {
1276
+ (H(!0), I(M, null, W(a.value.slice(-2), (e) => (H(), I(M, { key: e.href }, [t[1] ||= L("span", {
1277
1277
  class: "td-breadcrumb-sep",
1278
1278
  "aria-hidden": "true"
1279
- }, "/", -1), e === o.value[o.value.length - 1] ? (H(), I("span", Br, K(e.name), 1)) : (H(), I("a", {
1279
+ }, "/", -1), e === a.value[a.value.length - 1] ? (H(), I("span", Br, K(e.name), 1)) : (H(), I("a", {
1280
1280
  key: 0,
1281
1281
  href: e.href,
1282
1282
  class: "td-breadcrumb-link"
1283
1283
  }, K(e.name), 9, zr))], 64))), 128))
1284
- ], 64)) : (H(!0), I(M, { key: 1 }, W(o.value.slice(1), (e, n) => (H(), I(M, { key: e.href }, [t[3] ||= L("span", {
1284
+ ], 64)) : (H(!0), I(M, { key: 1 }, W(a.value.slice(1), (e, n) => (H(), I(M, { key: e.href }, [t[3] ||= L("span", {
1285
1285
  class: "td-breadcrumb-sep",
1286
1286
  "aria-hidden": "true"
1287
- }, "/", -1), n < o.value.length - 2 ? (H(), I("a", {
1287
+ }, "/", -1), n < a.value.length - 2 ? (H(), I("a", {
1288
1288
  key: 0,
1289
1289
  href: e.href,
1290
1290
  class: "td-breadcrumb-link"
@@ -1299,18 +1299,18 @@ var dr = /*#__PURE__*/ A(/* @__PURE__ */ B({
1299
1299
  "rel"
1300
1300
  ], qr = /*#__PURE__*/ A(/* @__PURE__ */ B({
1301
1301
  __name: "TdHeaderNavBar",
1302
- setup(e) {
1303
- let t = j(), { withBase: n } = t, r = O();
1304
- function i(e) {
1305
- return !_(e) && r.path.startsWith(n(e));
1302
+ setup(t) {
1303
+ let n = j(), { withBase: r } = n, i = O();
1304
+ function a(t) {
1305
+ return !e(t) && i.path.startsWith(r(t));
1306
1306
  }
1307
- return (e, r) => q(t).nav?.length ? (H(), I("nav", Gr, [(H(!0), I(M, null, W(q(t).nav, (e) => (H(), I("a", {
1308
- key: e.link,
1309
- href: q(_)(e.link) ? e.link : q(n)(e.link),
1310
- target: q(_)(e.link) ? "_blank" : void 0,
1311
- rel: q(_)(e.link) ? "noopener noreferrer" : void 0,
1312
- class: V(["td-header-nav-link", { "is-active": i(e.link) }])
1313
- }, [R(K(e.title), 1), q(_)(e.link) ? (H(), P(q(ae), {
1307
+ return (t, i) => q(n).nav?.length ? (H(), I("nav", Gr, [(H(!0), I(M, null, W(q(n).nav, (t) => (H(), I("a", {
1308
+ key: t.link,
1309
+ href: q(e)(t.link) ? t.link : q(r)(t.link),
1310
+ target: q(e)(t.link) ? "_blank" : void 0,
1311
+ rel: q(e)(t.link) ? "noopener noreferrer" : void 0,
1312
+ class: V(["td-header-nav-link", { "is-active": a(t.link) }])
1313
+ }, [R(K(t.title), 1), q(e)(t.link) ? (H(), P(q(ae), {
1314
1314
  key: 0,
1315
1315
  size: 14
1316
1316
  })) : F("", !0)], 10, Kr))), 128))])) : F("", !0);
@@ -1324,25 +1324,25 @@ var dr = /*#__PURE__*/ A(/* @__PURE__ */ B({
1324
1324
  "rel"
1325
1325
  ], Xr = /*#__PURE__*/ A(/* @__PURE__ */ B({
1326
1326
  __name: "TdHeaderNavMenu",
1327
- setup(e) {
1328
- let t = j(), { withBase: n } = t, r = O();
1329
- function i(e) {
1330
- return !_(e) && r.path.startsWith(n(e));
1327
+ setup(t) {
1328
+ let n = j(), { withBase: r } = n, i = O();
1329
+ function a(t) {
1330
+ return !e(t) && i.path.startsWith(r(t));
1331
1331
  }
1332
- return (e, r) => q(t).nav?.length ? (H(), I("nav", Jr, [(H(!0), I(M, null, W(q(t).nav, (e) => (H(), I("a", {
1333
- key: e.link,
1334
- href: q(_)(e.link) ? e.link : q(n)(e.link),
1335
- target: q(_)(e.link) ? "_blank" : void 0,
1336
- rel: q(_)(e.link) ? "noopener noreferrer" : void 0,
1337
- class: V(["td-menu-nav-item", { "is-active": i(e.link) }])
1332
+ return (t, i) => q(n).nav?.length ? (H(), I("nav", Jr, [(H(!0), I(M, null, W(q(n).nav, (t) => (H(), I("a", {
1333
+ key: t.link,
1334
+ href: q(e)(t.link) ? t.link : q(r)(t.link),
1335
+ target: q(e)(t.link) ? "_blank" : void 0,
1336
+ rel: q(e)(t.link) ? "noopener noreferrer" : void 0,
1337
+ class: V(["td-menu-nav-item", { "is-active": a(t.link) }])
1338
1338
  }, [
1339
- e.icon ? (H(), P(we, {
1339
+ t.icon ? (H(), P(we, {
1340
1340
  key: 0,
1341
- name: e.icon,
1341
+ name: t.icon,
1342
1342
  size: 16
1343
1343
  }, null, 8, ["name"])) : F("", !0),
1344
- L("span", null, K(e.title), 1),
1345
- q(_)(e.link) ? (H(), P(q(ae), {
1344
+ L("span", null, K(t.title), 1),
1345
+ q(e)(t.link) ? (H(), P(q(ae), {
1346
1346
  key: 1,
1347
1347
  size: 14
1348
1348
  })) : F("", !0)
@@ -1380,21 +1380,21 @@ function ei(e) {
1380
1380
  let t = e.trim();
1381
1381
  return !t || !ti({ url: t }) ? void 0 : {
1382
1382
  url: t,
1383
- name: n(t),
1383
+ name: i(t),
1384
1384
  isImage: !0
1385
1385
  };
1386
1386
  }
1387
1387
  if (typeof e != "object") return;
1388
- let t = e, r = t.$ref ?? t;
1389
- if (typeof r.url != "string") return;
1390
- let i = r.url, a = r.name ?? n(i), o = r.format ?? t.format;
1388
+ let t = e, n = t.$ref ?? t;
1389
+ if (typeof n.url != "string") return;
1390
+ let r = n.url, a = n.name ?? i(r), o = n.format ?? t.format;
1391
1391
  return {
1392
- url: i,
1392
+ url: r,
1393
1393
  name: a,
1394
1394
  format: o,
1395
- icon: r.icon,
1395
+ icon: n.icon,
1396
1396
  isImage: ti({
1397
- url: i,
1397
+ url: r,
1398
1398
  name: a,
1399
1399
  format: o
1400
1400
  })
@@ -1402,7 +1402,7 @@ function ei(e) {
1402
1402
  }
1403
1403
  function ti(e) {
1404
1404
  if (e.format && $r.has(e.format.toLowerCase())) return !0;
1405
- let t = r(e.name || e.url).slice(1);
1405
+ let t = a(e.name || e.url).slice(1);
1406
1406
  return t ? $r.has(t.toLowerCase()) : !1;
1407
1407
  }
1408
1408
  //#endregion
@@ -1419,29 +1419,29 @@ var ni = {
1419
1419
  default: !1
1420
1420
  }
1421
1421
  },
1422
- setup(e) {
1423
- let { withBase: t } = j(), n = N(() => ei(e.value)), r = N(() => n.value?.icon ? k(n.value.icon.name) : void 0), i = N(() => n.value !== void 0 && _(n.value.url));
1424
- return (a, o) => n.value ? (H(), I("span", ni, [n.value.isImage ? (H(), I("a", {
1422
+ setup(t) {
1423
+ let { withBase: n } = j(), r = N(() => ei(t.value)), i = N(() => r.value?.icon ? k(r.value.icon.name) : void 0), a = N(() => r.value !== void 0 && e(r.value.url));
1424
+ return (e, o) => r.value ? (H(), I("span", ni, [r.value.isImage ? (H(), I("a", {
1425
1425
  key: 0,
1426
- href: q(t)(n.value.url),
1426
+ href: q(n)(r.value.url),
1427
1427
  target: "_blank",
1428
1428
  rel: "noopener noreferrer",
1429
1429
  class: "td-widget-image-preview",
1430
- title: n.value.name
1430
+ title: r.value.name
1431
1431
  }, [L("img", {
1432
- src: q(t)(n.value.url),
1433
- alt: n.value.name,
1432
+ src: q(n)(r.value.url),
1433
+ alt: r.value.name,
1434
1434
  class: "td-widget-image-img",
1435
1435
  loading: "lazy"
1436
- }, null, 8, ii)], 8, ri)) : n.value.format || n.value.url.includes(".") ? (H(), I("a", {
1436
+ }, null, 8, ii)], 8, ri)) : r.value.format || r.value.url.includes(".") ? (H(), I("a", {
1437
1437
  key: 1,
1438
- href: q(t)(n.value.url),
1438
+ href: q(n)(r.value.url),
1439
1439
  target: "_blank",
1440
1440
  rel: "noopener noreferrer",
1441
1441
  class: "td-widget-file-link"
1442
- }, [z(q(re), { class: "td-widget-file-icon" }), L("span", oi, K(n.value.name), 1)], 8, ai)) : i.value ? (H(), I("a", {
1442
+ }, [z(q(re), { class: "td-widget-file-icon" }), L("span", oi, K(r.value.name), 1)], 8, ai)) : a.value ? (H(), I("a", {
1443
1443
  key: 2,
1444
- href: n.value.url,
1444
+ href: r.value.url,
1445
1445
  target: "_blank",
1446
1446
  rel: "noopener noreferrer",
1447
1447
  class: "td-widget-ref td-widget-ref-external"
@@ -1450,13 +1450,13 @@ var ni = {
1450
1450
  class: "td-widget-external-icon"
1451
1451
  })], 8, si)) : (H(), I("a", {
1452
1452
  key: 3,
1453
- href: q(t)(n.value.url),
1453
+ href: q(n)(r.value.url),
1454
1454
  class: "td-widget-ref"
1455
- }, [r.value && !e.hideIcon ? (H(), P(G(r.value), {
1455
+ }, [i.value && !t.hideIcon ? (H(), P(G(i.value), {
1456
1456
  key: 0,
1457
1457
  size: 14,
1458
1458
  class: "td-widget-ref-icon"
1459
- })) : F("", !0), R(K(n.value.name), 1)], 8, ci))])) : (H(), I("span", li, K(e.value), 1));
1459
+ })) : F("", !0), R(K(r.value.name), 1)], 8, ci))])) : (H(), I("span", li, K(t.value), 1));
1460
1460
  }
1461
1461
  }), [["__scopeId", "data-v-e593af69"]]), di = { key: 0 }, fi = { class: "td-widget-list td-widget-list-icons" }, pi = { key: 1 }, mi = { class: "td-widget-list" }, hi = 5, gi = /*#__PURE__*/ A(/* @__PURE__ */ B({
1462
1462
  __name: "TdWidgetList",
@@ -1578,7 +1578,7 @@ var bi = 5, xi = /*#__PURE__*/ A(/* @__PURE__ */ B({
1578
1578
  setup(e) {
1579
1579
  let { withBase: t } = j(), n = N(() => typeof e.value == "string" ? e.value.trim() : ""), r = N(() => ei(e.value)), i = N(() => r.value ? r.value.isImage : 0 < n.value.length && ti({ 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"));
1580
1580
  function c(t) {
1581
- return t == null ? "" : e.definition.widget === "date" ? y(String(t)) : String(t);
1581
+ return t == null ? "" : e.definition.widget === "date" ? v(String(t)) : String(t);
1582
1582
  }
1583
1583
  return (t, a) => i.value ? (H(), I("a", {
1584
1584
  key: 0,
@@ -1671,16 +1671,16 @@ var bi = 5, xi = /*#__PURE__*/ A(/* @__PURE__ */ B({
1671
1671
  return i[e] ?? mt;
1672
1672
  }
1673
1673
  let o = U(!1), s = U(!1);
1674
- function c() {
1674
+ function l() {
1675
1675
  o.value = !o.value;
1676
1676
  }
1677
- function l() {
1677
+ function u() {
1678
1678
  s.value = !s.value;
1679
1679
  }
1680
1680
  return (t, n) => e.mode === "rail" && r.value.length > 0 ? (H(), I("div", Ai, [L("button", {
1681
1681
  type: "button",
1682
1682
  class: "td-fm-rail-header",
1683
- onClick: l
1683
+ onClick: u
1684
1684
  }, [n[0] ||= L("span", { class: "td-fm-rail-label" }, "Properties", -1), z(q(te), {
1685
1685
  size: 14,
1686
1686
  class: V(["td-fm-rail-caret", { "is-collapsed": s.value }])
@@ -1690,13 +1690,13 @@ var bi = 5, xi = /*#__PURE__*/ A(/* @__PURE__ */ B({
1690
1690
  }, [L("span", ji, [(H(), P(G(a(n.widget)), {
1691
1691
  size: 12,
1692
1692
  class: "td-fm-icon"
1693
- })), R(" " + K(q(u)(t)), 1)]), L("span", Mi, [z(ki, {
1693
+ })), R(" " + K(q(c)(t)), 1)]), L("span", Mi, [z(ki, {
1694
1694
  definition: n,
1695
1695
  value: e.frontmatter[t]
1696
1696
  }, null, 8, ["definition", "value"])])]))), 128))])], 2)])) : r.value.length > 0 ? (H(), I("div", Ni, [L("button", {
1697
1697
  type: "button",
1698
1698
  class: "td-fm-box-header",
1699
- onClick: c
1699
+ onClick: l
1700
1700
  }, [L("span", Pi, [n[1] ||= R("Properties ", -1), L("span", Fi, K(r.value.length), 1)]), L("span", Ii, [R(K(o.value ? "Show" : "Hide") + " ", 1), o.value ? (H(), P(q(se), {
1701
1701
  key: 1,
1702
1702
  size: 14
@@ -1706,7 +1706,7 @@ var bi = 5, xi = /*#__PURE__*/ A(/* @__PURE__ */ B({
1706
1706
  }))])]), L("div", { class: V(["td-collapse", { "is-collapsed": o.value }]) }, [L("div", Li, [(H(!0), I(M, null, W(r.value, ([t, n]) => (H(), I(M, { key: t }, [L("span", Ri, [(H(), P(G(a(n.widget)), {
1707
1707
  size: 12,
1708
1708
  class: "td-fm-icon"
1709
- })), R(" " + K(q(u)(t)), 1)]), L("span", zi, [z(ki, {
1709
+ })), R(" " + K(q(c)(t)), 1)]), L("span", zi, [z(ki, {
1710
1710
  definition: n,
1711
1711
  value: e.frontmatter[t]
1712
1712
  }, null, 8, ["definition", "value"])])], 64))), 128))])], 2)])) : F("", !0);
@@ -1783,51 +1783,51 @@ function Wi() {
1783
1783
  groupName: N(() => i.value.groupName)
1784
1784
  };
1785
1785
  }
1786
- function Gi(e, t, n) {
1787
- if (e.entries.some((e) => e.kind === "file" && l(e.item.filepath) === t)) {
1788
- let t = [], r = e.entries.find((e) => e.kind === "file" && w(e.item.filepath));
1789
- r && r.kind === "file" && t.push(qi(r.item, n));
1790
- for (let n of e.entries) n.kind === "file" ? w(n.item.filepath) || t.push(qi(n.item)) : t.push(Ji(n.node, ""));
1786
+ function Gi(e, t, r) {
1787
+ if (e.entries.some((e) => e.kind === "file" && n(e.item.filepath) === t)) {
1788
+ let t = [], n = e.entries.find((e) => e.kind === "file" && p(e.item.filepath));
1789
+ n && n.kind === "file" && t.push(qi(n.item, r));
1790
+ for (let n of e.entries) n.kind === "file" ? p(n.item.filepath) || t.push(qi(n.item)) : t.push(Ji(n.node, ""));
1791
1791
  return {
1792
1792
  pages: t,
1793
1793
  groupName: ""
1794
1794
  };
1795
1795
  }
1796
- for (let r of e.entries) {
1797
- if (r.kind !== "dir") continue;
1798
- let e = Ki(r.node, t, "", n);
1796
+ for (let n of e.entries) {
1797
+ if (n.kind !== "dir") continue;
1798
+ let e = Ki(n.node, t, "", r);
1799
1799
  if (e !== void 0) return e;
1800
1800
  }
1801
1801
  }
1802
- function Ki(e, t, n, r) {
1803
- let i = c(n, e.name);
1804
- if (e.entries.some((e) => e.kind === "file" && l(e.item.filepath) === t)) {
1805
- let t = [], n = g(e);
1802
+ function Ki(e, r, i, a) {
1803
+ let o = t(i, e.name);
1804
+ if (e.entries.some((e) => e.kind === "file" && n(e.item.filepath) === r)) {
1805
+ let t = [], n = d(e);
1806
1806
  n && t.push(qi(n));
1807
- for (let n of e.entries) n.kind === "file" ? w(n.item.filepath) || t.push(qi(n.item)) : t.push(Ji(n.node, i));
1807
+ for (let n of e.entries) n.kind === "file" ? p(n.item.filepath) || t.push(qi(n.item)) : t.push(Ji(n.node, o));
1808
1808
  return {
1809
1809
  pages: t,
1810
- groupName: u(e.name)
1810
+ groupName: c(e.name)
1811
1811
  };
1812
1812
  }
1813
- for (let n of e.entries) {
1814
- if (n.kind !== "dir") continue;
1815
- let e = Ki(n.node, t, i, r);
1813
+ for (let t of e.entries) {
1814
+ if (t.kind !== "dir") continue;
1815
+ let e = Ki(t.node, r, o, a);
1816
1816
  if (e !== void 0) return e;
1817
1817
  }
1818
1818
  }
1819
1819
  function qi(e, t) {
1820
- let n = e.label === void 0 ? t === void 0 ? C(e.filepath) : f(e.filepath, t) : e.label;
1820
+ let r = e.label === void 0 ? t === void 0 ? w(e.filepath) : S(e.filepath, t) : e.label;
1821
1821
  return {
1822
- url: l(e.filepath),
1823
- title: n
1822
+ url: n(e.filepath),
1823
+ title: r
1824
1824
  };
1825
1825
  }
1826
- function Ji(t, n) {
1827
- let r = c(n, t.name), i = g(t);
1826
+ function Ji(e, r) {
1827
+ let i = t(r, e.name), a = d(e);
1828
1828
  return {
1829
- url: i ? l(i.filepath) : e(r),
1830
- title: i ? C(i.filepath, i.label) : u(t.name)
1829
+ url: a ? n(a.filepath) : C(i),
1830
+ title: a ? w(a.filepath, a.label) : c(e.name)
1831
1831
  };
1832
1832
  }
1833
1833
  //#endregion
@@ -1925,7 +1925,7 @@ var ca = {
1925
1925
  }, [L("a", {
1926
1926
  href: e.link,
1927
1927
  class: V(["td-toc-link", { "is-active": q(t) === e.slug }]),
1928
- innerHTML: q(v)(e.titleHtml)
1928
+ innerHTML: q(_)(e.titleHtml)
1929
1929
  }, null, 10, ua)], 2))), 128))])])) : F("", !0);
1930
1930
  }
1931
1931
  }), [["__scopeId", "data-v-91e96e92"]]), fa = { class: "td-rail" }, pa = /*#__PURE__*/ A(/* @__PURE__ */ B({
@@ -2001,14 +2001,14 @@ function ya() {
2001
2001
  J(e, () => {
2002
2002
  t = void 0;
2003
2003
  });
2004
- function a() {
2004
+ function i() {
2005
2005
  if (t) return t;
2006
2006
  if (e.value) return t = Fe(ee.loadJSON(e.value, {
2007
- fields: i,
2008
- storeFields: d
2007
+ fields: u,
2008
+ storeFields: l
2009
2009
  })), t;
2010
2010
  }
2011
- function o(e, t) {
2011
+ function a(e, t) {
2012
2012
  if (!e) return "";
2013
2013
  let n = Object.keys(t);
2014
2014
  if (n.length === 0) return e.slice(0, va);
@@ -2020,13 +2020,13 @@ function ya() {
2020
2020
  let a = Math.max(0, i - 30), o = Math.min(e.length, a + va), s = e.slice(a, o).trim();
2021
2021
  return 0 < a && (s = "..." + s), o < e.length && (s += "..."), s;
2022
2022
  }
2023
- async function s(e) {
2024
- let t = a();
2023
+ async function o(e) {
2024
+ let t = i();
2025
2025
  if (!t) {
2026
2026
  r.value = !1;
2027
2027
  return;
2028
2028
  }
2029
- let i = t.search(e, {
2029
+ let o = t.search(e, {
2030
2030
  prefix: !0,
2031
2031
  fuzzy: (e) => 3 < e.length && .2,
2032
2032
  boost: {
@@ -2034,23 +2034,23 @@ function ya() {
2034
2034
  text: 2
2035
2035
  }
2036
2036
  }).slice(0, 20);
2037
- n.value = i.map((e) => ({
2037
+ n.value = o.map((e) => ({
2038
2038
  id: e.id,
2039
2039
  title: e.title,
2040
- excerpt: o(e.text ?? "", e.match),
2040
+ excerpt: a(e.text ?? "", e.match),
2041
2041
  score: e.score
2042
2042
  })), r.value = !1;
2043
2043
  }
2044
- let c = b(s, 150);
2045
- function l(e) {
2044
+ let s = y(o, 150);
2045
+ function c(e) {
2046
2046
  let t = e.trim();
2047
2047
  if (t.length === 0) {
2048
2048
  n.value = [], r.value = !1;
2049
2049
  return;
2050
2050
  }
2051
- r.value = !0, c(t);
2051
+ r.value = !0, s(t);
2052
2052
  }
2053
- function u() {
2053
+ function d() {
2054
2054
  r.value = !1;
2055
2055
  }
2056
2056
  let f = Je(!1);
@@ -2060,8 +2060,8 @@ function ya() {
2060
2060
  results: n,
2061
2061
  searching: r,
2062
2062
  indexLoaded: f,
2063
- search: l,
2064
- cancel: u
2063
+ search: c,
2064
+ cancel: d
2065
2065
  };
2066
2066
  }
2067
2067
  //#endregion
@@ -2070,7 +2070,7 @@ function ba(e, t) {
2070
2070
  if (!e || !t) return m(e);
2071
2071
  let n = t.trim().split(/\s+/).filter(Boolean), r = m(e);
2072
2072
  for (let e of n) {
2073
- let t = RegExp(`(${S(e)})`, "gi");
2073
+ let t = RegExp(`(${x(e)})`, "gi");
2074
2074
  r = r.replace(t, "<mark>$1</mark>");
2075
2075
  }
2076
2076
  return r;
@@ -2099,15 +2099,15 @@ var xa = { class: "td-search" }, Sa = { class: "td-search-input-wrap" }, Ca = {
2099
2099
  },
2100
2100
  emits: /*@__PURE__*/ Ie(["select"], ["update:active", "update:query"]),
2101
2101
  setup(e, { expose: t, emit: n }) {
2102
- let r = Xe(e, "active"), i = Xe(e, "query"), o = n, s = O(), { withBase: c } = j(), { results: l, searching: d, indexLoaded: f, search: p, cancel: m } = ya(), h = U(-1), g = N(() => 0 < i.value.trim().length), _ = N(() => {
2102
+ let r = Xe(e, "active"), i = Xe(e, "query"), a = n, s = O(), { withBase: l } = j(), { results: u, searching: d, indexLoaded: f, search: p, cancel: m } = ya(), h = U(-1), g = N(() => 0 < i.value.trim().length), _ = N(() => {
2103
2103
  let e = [], t = /* @__PURE__ */ new Map();
2104
- for (let n of l.value) {
2105
- let r = a(n.id), i = t.get(r);
2104
+ for (let n of u.value) {
2105
+ let r = o(n.id), i = t.get(r);
2106
2106
  if (!i) {
2107
2107
  let n = r.split("/").pop() || "index";
2108
2108
  i = {
2109
2109
  pageUrl: r,
2110
- pageTitle: u(n),
2110
+ pageTitle: c(n),
2111
2111
  results: []
2112
2112
  }, t.set(r, i), e.push(i);
2113
2113
  }
@@ -2137,12 +2137,12 @@ var xa = { class: "td-search" }, Sa = { class: "td-search-input-wrap" }, Ca = {
2137
2137
  e.preventDefault();
2138
2138
  let t = y.value[h.value];
2139
2139
  if (!t) return;
2140
- document.querySelector(`.td-search-result[href="${CSS.escape(c(t.id))}"]`)?.click();
2140
+ document.querySelector(`.td-search-result[href="${CSS.escape(l(t.id))}"]`)?.click();
2141
2141
  }
2142
2142
  }
2143
2143
  }
2144
2144
  function S() {
2145
- o("select");
2145
+ a("select");
2146
2146
  }
2147
2147
  function C() {
2148
2148
  requestAnimationFrame(() => {
@@ -2188,7 +2188,7 @@ var xa = { class: "td-search" }, Sa = { class: "td-search-input-wrap" }, Ca = {
2188
2188
  key: 1,
2189
2189
  size: 12,
2190
2190
  class: "td-search-spinner"
2191
- })) : g.value ? (H(), I("span", Ca, K(q(l).length), 1)) : F("", !0),
2191
+ })) : g.value ? (H(), I("span", Ca, K(q(u).length), 1)) : F("", !0),
2192
2192
  i.value ? (H(), I("button", {
2193
2193
  key: 3,
2194
2194
  class: "td-search-clear",
@@ -2197,15 +2197,15 @@ var xa = { class: "td-search" }, Sa = { class: "td-search-input-wrap" }, Ca = {
2197
2197
  onClick: v
2198
2198
  }, [z(q(ge), { size: 12 })])) : F("", !0)
2199
2199
  ]),
2200
- g.value && q(l).length > 0 ? (H(), I("div", wa, [(H(!0), I(M, null, W(_.value, (e) => (H(), I("div", {
2200
+ g.value && q(u).length > 0 ? (H(), I("div", wa, [(H(!0), I(M, null, W(_.value, (e) => (H(), I("div", {
2201
2201
  key: e.pageUrl,
2202
2202
  class: "td-search-group"
2203
2203
  }, [(H(!0), I(M, null, W(e.results, (e) => (H(), I("a", {
2204
2204
  key: e.id,
2205
- href: q(c)(e.id),
2205
+ href: q(l)(e.id),
2206
2206
  class: V(["td-search-result", {
2207
2207
  "is-selected": b.value.get(e.id) === h.value,
2208
- "is-current": q(c)(e.id) === q(s).path
2208
+ "is-current": q(l)(e.id) === q(s).path
2209
2209
  }]),
2210
2210
  onClick: S
2211
2211
  }, [
@@ -2220,7 +2220,7 @@ var xa = { class: "td-search" }, Sa = { class: "td-search-input-wrap" }, Ca = {
2220
2220
  innerHTML: q(ba)(e.excerpt, i.value)
2221
2221
  }, null, 8, Oa)) : F("", !0)
2222
2222
  ], 10, Ta))), 128))]))), 128))])) : F("", !0),
2223
- g.value && q(l).length === 0 ? (H(), I("div", ka, " No results for \"" + K(i.value) + "\" ", 1)) : F("", !0)
2223
+ g.value && q(u).length === 0 ? (H(), I("div", ka, " No results for \"" + K(i.value) + "\" ", 1)) : F("", !0)
2224
2224
  ]));
2225
2225
  }
2226
2226
  }), [["__scopeId", "data-v-06d05932"]]), ja = /* @__PURE__ */ B({
@@ -2411,69 +2411,69 @@ var Ga = { class: "td-header" }, Ka = { class: "td-header-left" }, qa = ["href"]
2411
2411
  class: "td-page-meta"
2412
2412
  }, fo = { key: 0 }, po = { class: "td-content-body" }, mo = 200, ho = 500, go = 300, _o = "td-sidebar-width", vo = /*#__PURE__*/ A(/* @__PURE__ */ B({
2413
2413
  __name: "TdLayout",
2414
- setup(t) {
2415
- let { title: n, page: r } = fe(), i = N(() => {
2416
- let e = r.value.icon;
2414
+ setup(e) {
2415
+ let { title: t, page: n } = fe(), r = N(() => {
2416
+ let e = n.value.icon;
2417
2417
  return e ? k(e.name) : void 0;
2418
- }), a = j(), { withBase: o } = a, s = _e(), c = N(() => s.value.ready), { isOpen: l, open: u, close: d } = Hi(), f = U(""), p = U(!1), m = U(!1), h = O();
2419
- J(() => h.path, () => d()), Ma(), Ua();
2420
- let g = Ze("sidebarSearch"), _ = Ze("menuSearch");
2421
- function v() {
2422
- if (_.value?.isFocused || g.value?.isFocused) {
2423
- _.value?.blur(), g.value?.blur(), l.value && d();
2418
+ }), i = j(), { withBase: a } = i, o = _e(), s = N(() => o.value.ready), { isOpen: c, open: l, close: u } = Hi(), d = U(""), f = U(!1), p = U(!1), m = O();
2419
+ J(() => m.path, () => u()), Ma(), Ua();
2420
+ let h = Ze("sidebarSearch"), g = Ze("menuSearch");
2421
+ function _() {
2422
+ if (g.value?.isFocused || h.value?.isFocused) {
2423
+ g.value?.blur(), h.value?.blur(), c.value && u();
2424
2424
  return;
2425
2425
  }
2426
- l.value ? _.value?.focus() : g.value?.isVisible ? g.value.focus() : (u(), Re(() => _.value?.focus()));
2426
+ c.value ? g.value?.focus() : h.value?.isVisible ? h.value.focus() : (l(), Re(() => g.value?.focus()));
2427
2427
  }
2428
- Pa([$.Control, $.k], v), Pa([$.Meta, $.k], v), $e(() => {
2428
+ Pa([$.Control, $.k], _), Pa([$.Meta, $.k], _), $e(() => {
2429
2429
  if (typeof document > "u") return;
2430
- let e = n.value, t = a.title;
2431
- document.title = e && e !== t ? `${e} - ${t}` : t;
2432
- let i = r.value.frontmatter?.description === void 0 ? a.description ?? "" : String(r.value.frontmatter.description), o = document.querySelector("meta[name=\"description\"]");
2433
- o && o.setAttribute("content", i);
2430
+ let e = t.value, r = i.title;
2431
+ document.title = e && e !== r ? `${e} - ${r}` : r;
2432
+ let a = n.value.frontmatter?.description === void 0 ? i.description ?? "" : String(n.value.frontmatter.description), o = document.querySelector("meta[name=\"description\"]");
2433
+ o && o.setAttribute("content", a);
2434
2434
  }), za();
2435
- let y = U(typeof localStorage < "u" && Number(localStorage.getItem(_o)) || go);
2436
- function b() {
2437
- y.value = Math.min(ho, y.value + 20);
2435
+ let v = U(typeof localStorage < "u" && Number(localStorage.getItem(_o)) || go);
2436
+ function y() {
2437
+ v.value = Math.min(ho, v.value + 20);
2438
2438
  }
2439
- function S(e) {
2440
- let t = e.clientX, n = y.value, r = e.currentTarget;
2439
+ function x(e) {
2440
+ let t = e.clientX, n = v.value, r = e.currentTarget;
2441
2441
  r.setPointerCapture(e.pointerId);
2442
2442
  function i(e) {
2443
2443
  let r = Math.min(ho, window.innerWidth * .85), i = Math.min(r, Math.max(mo, n + e.clientX - t));
2444
- y.value = i;
2444
+ v.value = i;
2445
2445
  }
2446
2446
  function a() {
2447
- document.body.style.cursor = "", r.removeEventListener("pointermove", i), r.removeEventListener("pointerup", a), localStorage.setItem(_o, String(y.value));
2447
+ document.body.style.cursor = "", r.removeEventListener("pointermove", i), r.removeEventListener("pointerup", a), localStorage.setItem(_o, String(v.value));
2448
2448
  }
2449
2449
  document.body.style.cursor = "col-resize", r.addEventListener("pointermove", i), r.addEventListener("pointerup", a);
2450
2450
  }
2451
- function C() {
2452
- y.value = Math.max(mo, y.value - 20);
2451
+ function S() {
2452
+ v.value = Math.max(mo, v.value - 20);
2453
2453
  }
2454
- return (t, u) => (H(), I("div", null, [
2455
- u[6] ||= L("a", {
2454
+ return (e, l) => (H(), I("div", null, [
2455
+ l[6] ||= L("a", {
2456
2456
  href: "#td-content",
2457
2457
  class: "td-skip-link"
2458
2458
  }, "Skip to content", -1),
2459
2459
  L("header", Ga, [
2460
2460
  L("div", Ka, [
2461
- z(Ui, { onClick: v }),
2461
+ z(Ui, { onClick: _ }),
2462
2462
  L("a", {
2463
- href: q(o)(q(e)("/")),
2463
+ href: q(a)(q(C)("/")),
2464
2464
  class: "td-brand"
2465
- }, [z(yt), L("span", Ja, K(q(a).title || "Typedown"), 1)], 8, qa),
2465
+ }, [z(yt), L("span", Ja, K(q(i).title || "Typedown"), 1)], 8, qa),
2466
2466
  z(Wr, { class: "td-header-breadcrumb" })
2467
2467
  ]),
2468
2468
  z(q(qr)),
2469
- L("div", Ya, [z(ja), q(a).repo ? (H(), I("a", {
2469
+ L("div", Ya, [z(ja), q(i).repo ? (H(), I("a", {
2470
2470
  key: 0,
2471
- href: q(a).repo,
2471
+ href: q(i).repo,
2472
2472
  target: "_blank",
2473
2473
  rel: "noopener noreferrer",
2474
2474
  class: "td-header-icon-link",
2475
2475
  "aria-label": "GitHub repository"
2476
- }, [...u[5] ||= [L("svg", {
2476
+ }, [...l[5] ||= [L("svg", {
2477
2477
  width: "20",
2478
2478
  height: "20",
2479
2479
  viewBox: "0 0 98 96",
@@ -2487,23 +2487,23 @@ var Ga = { class: "td-header" }, Ka = { class: "td-header-left" }, qa = ["href"]
2487
2487
  })], -1)]], 8, Xa)) : F("", !0)])
2488
2488
  ]),
2489
2489
  L("div", {
2490
- class: V(["td-drawer-scrim", { "is-open": q(l) }]),
2491
- onClick: u[0] ||= (...e) => q(d) && q(d)(...e)
2490
+ class: V(["td-drawer-scrim", { "is-open": q(c) }]),
2491
+ onClick: l[0] ||= (...e) => q(u) && q(u)(...e)
2492
2492
  }, null, 2),
2493
2493
  L("aside", {
2494
- class: V(["td-drawer", { "is-open": q(l) }]),
2495
- style: ze({ width: `${y.value}px` })
2494
+ class: V(["td-drawer", { "is-open": q(c) }]),
2495
+ style: ze({ width: `${v.value}px` })
2496
2496
  }, [
2497
2497
  L("div", {
2498
2498
  class: "td-resize-handle",
2499
- onPointerdown: rt(S, ["prevent"])
2499
+ onPointerdown: rt(x, ["prevent"])
2500
2500
  }, null, 32),
2501
2501
  L("header", Za, [L("a", {
2502
- href: q(o)(q(e)("/")),
2502
+ href: q(a)(q(C)("/")),
2503
2503
  class: "td-brand"
2504
- }, [z(yt), L("span", $a, K(q(a).title || "Typedown"), 1)], 8, Qa), z(xt, {
2504
+ }, [z(yt), L("span", $a, K(q(i).title || "Typedown"), 1)], 8, Qa), z(xt, {
2505
2505
  label: "Close menu",
2506
- onClick: q(d)
2506
+ onClick: q(u)
2507
2507
  }, {
2508
2508
  default: et(() => [z(q(ge), { size: 20 })]),
2509
2509
  _: 1
@@ -2511,40 +2511,40 @@ var Ga = { class: "td-header" }, Ka = { class: "td-header-left" }, qa = ["href"]
2511
2511
  z(q(Xr)),
2512
2512
  z(Aa, {
2513
2513
  ref_key: "menuSearch",
2514
- ref: _,
2515
- query: f.value,
2516
- "onUpdate:query": u[1] ||= (e) => f.value = e,
2517
- active: m.value,
2518
- "onUpdate:active": u[2] ||= (e) => m.value = e,
2519
- onSelect: q(d)
2514
+ ref: g,
2515
+ query: d.value,
2516
+ "onUpdate:query": l[1] ||= (e) => d.value = e,
2517
+ active: p.value,
2518
+ "onUpdate:active": l[2] ||= (e) => p.value = e,
2519
+ onSelect: q(u)
2520
2520
  }, null, 8, [
2521
2521
  "query",
2522
2522
  "active",
2523
2523
  "onSelect"
2524
2524
  ]),
2525
- m.value ? F("", !0) : (H(), I("nav", eo, [c.value ? (H(), P(kr, {
2525
+ p.value ? F("", !0) : (H(), I("nav", eo, [s.value ? (H(), P(kr, {
2526
2526
  key: 1,
2527
- tree: q(s).contentTree
2527
+ tree: q(o).contentTree
2528
2528
  }, null, 8, ["tree"])) : (H(), P(ha, { key: 0 }))]))
2529
2529
  ], 6),
2530
2530
  L("div", to, [L("nav", {
2531
2531
  class: "td-sidebar-left",
2532
2532
  "data-testid": "sidebar",
2533
2533
  "aria-label": "Site navigation",
2534
- style: ze({ width: `${y.value}px` })
2534
+ style: ze({ width: `${v.value}px` })
2535
2535
  }, [
2536
2536
  z(Aa, {
2537
2537
  ref_key: "sidebarSearch",
2538
- ref: g,
2539
- query: f.value,
2540
- "onUpdate:query": u[3] ||= (e) => f.value = e,
2541
- active: p.value,
2542
- "onUpdate:active": u[4] ||= (e) => p.value = e,
2538
+ ref: h,
2539
+ query: d.value,
2540
+ "onUpdate:query": l[3] ||= (e) => d.value = e,
2541
+ active: f.value,
2542
+ "onUpdate:active": l[4] ||= (e) => f.value = e,
2543
2543
  class: "td-sidebar-search"
2544
2544
  }, null, 8, ["query", "active"]),
2545
- L("div", no, [!p.value && !c.value ? (H(), P(ha, { key: 0 })) : p.value ? F("", !0) : (H(), P(kr, {
2545
+ L("div", no, [!f.value && !s.value ? (H(), P(ha, { key: 0 })) : f.value ? F("", !0) : (H(), P(kr, {
2546
2546
  key: 1,
2547
- tree: q(s).contentTree
2547
+ tree: q(o).contentTree
2548
2548
  }, null, 8, ["tree"]))]),
2549
2549
  L("div", {
2550
2550
  class: "td-resize-handle",
@@ -2552,27 +2552,27 @@ var Ga = { class: "td-header" }, Ka = { class: "td-header-left" }, qa = ["href"]
2552
2552
  "aria-orientation": "vertical",
2553
2553
  "aria-label": "Resize sidebar",
2554
2554
  tabindex: "0",
2555
- onPointerdown: rt(S, ["prevent"]),
2556
- onKeydown: [nt(rt(C, ["prevent"]), ["left"]), nt(rt(b, ["prevent"]), ["right"])]
2555
+ onPointerdown: rt(x, ["prevent"]),
2556
+ onKeydown: [nt(rt(S, ["prevent"]), ["left"]), nt(rt(y, ["prevent"]), ["right"])]
2557
2557
  }, null, 40, ro)
2558
2558
  ], 4), L("div", io, [L("main", ao, [L("article", oo, [
2559
- q(r).schema ? (H(), I("div", so, K(q(r).schemaLabel ?? q(r).schema), 1)) : F("", !0),
2560
- i.value ? (H(), I("div", co, [(H(), P(G(i.value), { size: 32 }))])) : F("", !0),
2561
- q(n) ? (H(), I("h1", {
2559
+ q(n).schema ? (H(), I("div", so, K(q(n).schemaLabel ?? q(n).schema), 1)) : F("", !0),
2560
+ r.value ? (H(), I("div", co, [(H(), P(G(r.value), { size: 32 }))])) : F("", !0),
2561
+ q(t) ? (H(), I("h1", {
2562
2562
  key: 2,
2563
2563
  class: "td-page-title",
2564
- innerHTML: q(Ct)(q(n))
2564
+ innerHTML: q(Ct)(q(t))
2565
2565
  }, null, 8, lo)) : F("", !0),
2566
- q(r).metadata ? (H(), I("div", uo, [L("span", null, K(q(x)(q(r).metadata.mtime, "Modified")), 1), q(r).metadata.ctime === q(r).metadata.mtime ? F("", !0) : (H(), I("span", fo, " · " + K(q(x)(q(r).metadata.ctime, "Created")), 1))])) : F("", !0),
2566
+ q(n).fileMetadata ? (H(), I("div", uo, [L("span", null, K(q(b)(q(n).fileMetadata.mtime, "Modified")), 1), q(n).fileMetadata.ctime === q(n).fileMetadata.mtime ? F("", !0) : (H(), I("span", fo, " · " + K(q(b)(q(n).fileMetadata.ctime, "Created")), 1))])) : F("", !0),
2567
2567
  z(q(Bi), {
2568
2568
  class: "td-frontmatter-inline",
2569
- schema: q(r).schema,
2570
- frontmatter: q(r).frontmatter
2569
+ schema: q(n).schema,
2570
+ frontmatter: q(n).frontmatter
2571
2571
  }, null, 8, ["schema", "frontmatter"]),
2572
- q(r).headings.length > 0 ? (H(), P(da, {
2572
+ q(n).headings.length > 0 ? (H(), P(da, {
2573
2573
  key: 4,
2574
2574
  class: "td-toc-inline",
2575
- headings: q(r).headings,
2575
+ headings: q(n).headings,
2576
2576
  static: ""
2577
2577
  }, null, 8, ["headings"])) : F("", !0),
2578
2578
  L("div", po, [z(q(Ce))]),
@@ -2581,17 +2581,17 @@ var Ga = { class: "td-header" }, Ka = { class: "td-header-left" }, qa = ["href"]
2581
2581
  z(Mr)
2582
2582
  ]));
2583
2583
  }
2584
- }), [["__scopeId", "data-v-5b2a8a69"]]), yo = { class: "pt-16 pb-24" }, bo = ["href"], xo = /* @__PURE__ */ B({
2584
+ }), [["__scopeId", "data-v-0acfae50"]]), yo = { class: "pt-16 pb-24" }, bo = ["href"], xo = /* @__PURE__ */ B({
2585
2585
  __name: "TdNotFound",
2586
- setup(t) {
2587
- let { withBase: n } = j();
2588
- return (t, r) => (H(), I("div", yo, [
2589
- r[0] ||= L("p", { class: "text-td-4xl font-extrabold leading-none tracking-td-tight text-td-fg-muted" }, " 404 ", -1),
2590
- r[1] ||= L("h1", { class: "text-td-xl font-extrabold leading-td-tight tracking-td-tight mt-4" }, " Page Not Found ", -1),
2591
- r[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),
2586
+ setup(e) {
2587
+ let { withBase: t } = j();
2588
+ return (e, n) => (H(), I("div", yo, [
2589
+ n[0] ||= L("p", { class: "text-td-4xl font-extrabold leading-none tracking-td-tight text-td-fg-muted" }, " 404 ", -1),
2590
+ n[1] ||= L("h1", { class: "text-td-xl font-extrabold leading-td-tight tracking-td-tight mt-4" }, " Page Not Found ", -1),
2591
+ 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),
2592
2592
  L("a", {
2593
2593
  class: "inline-flex items-center mt-6 text-td-accent text-td-sm font-extrabold tracking-td-tight hover:text-td-accent-hi",
2594
- href: q(n)(q(e)("/"))
2594
+ href: q(t)(q(C)("/"))
2595
2595
  }, "Go Home", 8, bo)
2596
2596
  ]));
2597
2597
  }