@x-wave/blog 1.0.28 → 1.0.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1,110 +1,110 @@
1
- import { jsxs as h, jsx as e, Fragment as z } from "react/jsx-runtime";
2
- import { useTranslation as E } from "react-i18next";
3
- import { useLocation as G, useNavigate as U, useParams as ce, Link as he, Navigate as Ne, Routes as Se, Route as ge } from "react-router-dom";
4
- import { useState as L, useEffect as S, createContext as Pe, useContext as De, useRef as H } from "react";
5
- import Be from "react-markdown";
6
- import Me from "remark-gfm";
7
- import ae from "i18next";
8
- import { User as Ee, CalendarBlank as Re, X as re, Tag as Oe, MagnifyingGlass as me, List as je, Sun as _e, Moon as pe, Monitor as fe, CaretDown as se, Globe as Ae, CaretRight as We } from "@phosphor-icons/react";
9
- import { createPortal as $e } from "react-dom";
10
- const He = "_tabContainer_zk6h4_1", Fe = "_tab_zk6h4_1", Ue = "_active_zk6h4_45", Q = {
11
- tabContainer: He,
12
- tab: Fe,
13
- active: Ue
1
+ import { jsxs as m, jsx as t, Fragment as G } from "react/jsx-runtime";
2
+ import { useTranslation as R } from "react-i18next";
3
+ import { useLocation as V, useNavigate as Q, useParams as ut, Link as $t, Navigate as Mt, Routes as At, Route as kt } from "react-router-dom";
4
+ import { useState as C, useEffect as T, createContext as Ht, useContext as Ft, useRef as K } from "react";
5
+ import zt from "react-markdown";
6
+ import Ut from "remark-gfm";
7
+ import Kt from "i18next";
8
+ import { User as qt, CalendarBlank as Gt, X as ht, Tag as Qt, MagnifyingGlass as xt, List as Xt, Sun as It, Moon as Ct, Monitor as yt, CaretDown as it, Globe as Yt, CaretRight as Vt } from "@phosphor-icons/react";
9
+ import { createPortal as Bt } from "react-dom";
10
+ const Jt = "_tabContainer_zk6h4_1", Zt = "_tab_zk6h4_1", te = "_active_zk6h4_45", Z = {
11
+ tabContainer: Jt,
12
+ tab: Zt,
13
+ active: te
14
14
  };
15
- function Ke({ hasAdvanced: t }) {
16
- const { t: n } = E(), a = G(), o = U();
17
- if (!t) return null;
18
- const s = new URLSearchParams(a.search).has("advanced"), i = () => {
19
- if (s) {
20
- const g = new URLSearchParams(a.search);
21
- g.delete("advanced");
22
- const _ = g.toString(), u = _ ? `?${_}` : "";
23
- o(`${a.pathname}${u}${a.hash}`);
15
+ function ee({ hasAdvanced: e }) {
16
+ const { t: n } = R(), s = V(), o = Q();
17
+ if (!e) return null;
18
+ const a = new URLSearchParams(s.search).has("advanced"), r = () => {
19
+ if (a) {
20
+ const u = new URLSearchParams(s.search);
21
+ u.delete("advanced");
22
+ const h = u.toString(), l = h ? `?${h}` : "";
23
+ o(`${s.pathname}${l}${s.hash}`);
24
24
  }
25
- }, m = () => {
26
- if (!s) {
27
- const g = new URLSearchParams(a.search);
28
- g.set("advanced", ""), o(`${a.pathname}?${g.toString()}${a.hash}`);
25
+ }, g = () => {
26
+ if (!a) {
27
+ const u = new URLSearchParams(s.search);
28
+ u.set("advanced", ""), o(`${s.pathname}?${u.toString()}${s.hash}`);
29
29
  }
30
30
  };
31
- return /* @__PURE__ */ h("div", { className: Q.tabContainer, children: [
32
- /* @__PURE__ */ e(
31
+ return /* @__PURE__ */ m("div", { className: Z.tabContainer, children: [
32
+ /* @__PURE__ */ t(
33
33
  "button",
34
34
  {
35
35
  type: "button",
36
- className: `${Q.tab} ${s ? "" : Q.active}`,
37
- onClick: i,
36
+ className: `${Z.tab} ${a ? "" : Z.active}`,
37
+ onClick: r,
38
38
  children: n("ui.simple")
39
39
  }
40
40
  ),
41
- /* @__PURE__ */ e(
41
+ /* @__PURE__ */ t(
42
42
  "button",
43
43
  {
44
44
  type: "button",
45
- className: `${Q.tab} ${s ? Q.active : ""}`,
46
- onClick: m,
45
+ className: `${Z.tab} ${a ? Z.active : ""}`,
46
+ onClick: g,
47
47
  children: n("ui.advanced")
48
48
  }
49
49
  )
50
50
  ] });
51
51
  }
52
- function qe({ children: t }) {
53
- return /* @__PURE__ */ e("div", { className: "xw-blog-root", children: t });
52
+ function ne({ children: e }) {
53
+ return /* @__PURE__ */ t("div", { className: "xw-blog-root", children: e });
54
54
  }
55
- function ke(t) {
56
- function n(a) {
57
- const o = a.match(/^---\s*\n([\s\S]*?)\n---\s*\n/);
58
- if (!o) return { frontmatter: {}, content: a };
59
- const c = {}, s = o[1];
60
- let i = "", m = !1;
61
- const g = [];
62
- for (const u of s.split(`
55
+ function Et(e) {
56
+ function n(s) {
57
+ const o = s.match(/^---\s*\n([\s\S]*?)\n---\s*\n/);
58
+ if (!o) return { frontmatter: {}, content: s };
59
+ const c = {}, a = o[1];
60
+ let r = "", g = !1;
61
+ const u = [];
62
+ for (const l of a.split(`
63
63
  `)) {
64
- const b = u.trim();
65
- if (b.startsWith("-")) {
66
- if (m) {
67
- const p = b.substring(1).trim();
68
- g.push(p);
64
+ const f = l.trim();
65
+ if (f.startsWith("-")) {
66
+ if (g) {
67
+ const p = f.substring(1).trim();
68
+ u.push(p);
69
69
  }
70
70
  continue;
71
71
  }
72
- if (m && !b.startsWith("-") && (c[i] = g.slice(), g.length = 0, m = !1), b != null && b.includes(":")) {
73
- const [p, ...d] = b.split(":"), l = d.join(":").trim();
74
- if (i = p.trim(), !l) {
75
- m = !0;
72
+ if (g && !f.startsWith("-") && (c[r] = u.slice(), u.length = 0, g = !1), f != null && f.includes(":")) {
73
+ const [p, ...b] = f.split(":"), w = b.join(":").trim();
74
+ if (r = p.trim(), !w) {
75
+ g = !0;
76
76
  continue;
77
77
  }
78
- l === "true" ? c[i] = !0 : l === "false" ? c[i] = !1 : c[i] = l;
78
+ w === "true" ? c[r] = !0 : w === "false" ? c[r] = !1 : c[r] = w;
79
79
  }
80
80
  }
81
- m && g.length > 0 && (c[i] = g);
82
- const _ = a.replace(
81
+ g && u.length > 0 && (c[r] = u);
82
+ const h = s.replace(
83
83
  /^---\s*\n[\s\S]*?\n---\s*\n/,
84
84
  ""
85
85
  );
86
- return { frontmatter: c, content: _ };
86
+ return { frontmatter: c, content: h };
87
87
  }
88
88
  return {
89
89
  /**
90
90
  * Load MDX content for a given language and slug.
91
91
  * Automatically loads the advanced variant if `advanced` is true.
92
92
  */
93
- async loadMDXContent(a, o, c = !1) {
94
- const s = c ? `${o}-advanced.mdx` : `${o}.mdx`, i = `./docs/${a}/${s}`, m = t[i];
95
- if (!m) throw new Error(`File not found: ${i}`);
96
- const g = await m(), { frontmatter: _, content: u } = n(g);
97
- return { content: u, frontmatter: _ };
93
+ async loadMDXContent(s, o, c = !1) {
94
+ const a = c ? `${o}-advanced.mdx` : `${o}.mdx`, r = `./docs/${s}/${a}`, g = e[r];
95
+ if (!g) throw new Error(`File not found: ${r}`);
96
+ const u = await g(), { frontmatter: h, content: l } = n(u);
97
+ return { content: l, frontmatter: h };
98
98
  },
99
99
  /**
100
100
  * Load English content for generating consistent heading IDs.
101
101
  * All heading anchors are derived from English content for stability across translations.
102
102
  */
103
- async loadEnglishContent(a, o = !1) {
104
- const s = `./docs/en/${o ? `${a}-advanced.mdx` : `${a}.mdx`}`, i = t[s];
105
- if (!i) throw new Error(`File not found: ${s}`);
106
- const m = await i(), { content: g } = n(m);
107
- return g;
103
+ async loadEnglishContent(s, o = !1) {
104
+ const a = `./docs/en/${o ? `${s}-advanced.mdx` : `${s}.mdx`}`, r = e[a];
105
+ if (!r) throw new Error(`File not found: ${a}`);
106
+ const g = await r(), { content: u } = n(g);
107
+ return u;
108
108
  },
109
109
  /**
110
110
  * Build a tag index from all MDX files.
@@ -113,783 +113,860 @@ function ke(t) {
113
113
  * @param language - Language code to scan (defaults to 'en')
114
114
  * @returns Promise resolving to tag index mapping tag names to document info
115
115
  */
116
- async buildTagIndex(a = "en") {
117
- const o = {}, c = `./docs/${a}/`, s = Object.keys(t).filter(
118
- (i) => i.startsWith(c)
116
+ async buildTagIndex(s = "en") {
117
+ const o = {}, c = `./docs/${s}/`, a = Object.keys(e).filter(
118
+ (r) => r.startsWith(c)
119
119
  );
120
- for (const i of s)
120
+ for (const r of a)
121
121
  try {
122
- const m = t[i], g = await m(), { frontmatter: _, content: u } = n(g), b = i.split("/").pop() || "", p = b.replace(".mdx", "").replace("-advanced", ""), d = u.match(/^#\s+(.+)$/m), l = d ? d[1].trim() : p;
123
- if (b.includes("-advanced")) continue;
124
- const r = _.tags;
125
- if (r && Array.isArray(r))
126
- for (const w of r)
127
- o[w] || (o[w] = []), o[w].some((x) => x.slug === p) || o[w].push({ slug: p, title: l });
128
- } catch (m) {
129
- console.warn(`Failed to process ${i}:`, m);
122
+ const g = e[r], u = await g(), { frontmatter: h, content: l } = n(u), f = r.split("/").pop() || "", p = f.replace(".mdx", "").replace("-advanced", ""), b = typeof h.title == "string" ? h.title : void 0, w = l.match(/^#\s+(.+)$/m), i = b || (w ? w[1].trim() : p);
123
+ if (f.includes("-advanced")) continue;
124
+ const d = h.tags;
125
+ if (d && Array.isArray(d))
126
+ for (const v of d)
127
+ o[v] || (o[v] = []), o[v].some((I) => I.slug === p) || o[v].push({ slug: p, title: i });
128
+ } catch (g) {
129
+ console.warn(`Failed to process ${r}:`, g);
130
130
  }
131
131
  return o;
132
132
  }
133
133
  };
134
134
  }
135
- function Va(t) {
136
- const n = ke(t);
135
+ function da(e) {
136
+ const n = Et(e);
137
137
  return {
138
- mdxFiles: t,
138
+ mdxFiles: e,
139
139
  loadContent: n.loadMDXContent,
140
140
  loadEnglishContent: n.loadEnglishContent
141
141
  };
142
142
  }
143
- const ve = "app-theme", xe = () => typeof window > "u" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light", be = (t) => t === "system" ? xe() : t, Ce = (t) => {
144
- const n = () => t || (typeof window > "u" ? "system" : localStorage.getItem(ve) || "system"), [a, o] = L(n);
145
- return S(() => {
146
- const s = be(a), i = document.querySelector(".xw-blog-root");
147
- if (i && (i.classList.remove("light", "dark"), i.classList.add(s)), a === "system") {
148
- const m = window.matchMedia("(prefers-color-scheme: dark)"), g = () => {
149
- const _ = xe(), u = document.querySelector(".xw-blog-root");
150
- u && (u.classList.remove("light", "dark"), u.classList.add(_));
143
+ const St = "app-theme", Rt = () => typeof window > "u" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light", Lt = (e) => e === "system" ? Rt() : e, mt = (e) => {
144
+ const n = () => e || (typeof window > "u" ? "system" : localStorage.getItem(St) || "system"), [s, o] = C(n);
145
+ return T(() => {
146
+ const a = Lt(s), r = document.querySelector(".xw-blog-root");
147
+ if (r && (r.classList.remove("light", "dark"), r.classList.add(a)), s === "system") {
148
+ const g = window.matchMedia("(prefers-color-scheme: dark)"), u = () => {
149
+ const h = Rt(), l = document.querySelector(".xw-blog-root");
150
+ l && (l.classList.remove("light", "dark"), l.classList.add(h));
151
151
  };
152
- return m.addEventListener("change", g), () => m.removeEventListener("change", g);
152
+ return g.addEventListener("change", u), () => g.removeEventListener("change", u);
153
153
  }
154
- }, [a]), {
155
- theme: a,
156
- setTheme: (s) => {
157
- localStorage.setItem(ve, s), o(s);
154
+ }, [s]), {
155
+ theme: s,
156
+ setTheme: (a) => {
157
+ localStorage.setItem(St, a), o(a);
158
158
  },
159
- effectiveTheme: be(a)
159
+ effectiveTheme: Lt(s)
160
160
  };
161
- }, ze = (t) => "items" in t, te = (t, n) => t.map((a) => ze(a) ? {
162
- title: ae.getFixedT(n)(a.title),
163
- items: a.items.map((o) => ({
164
- title: ae.getFixedT(n)(o.title),
165
- slug: o.slug,
166
- ...o.hasAdvanced && { hasAdvanced: o.hasAdvanced },
167
- ...o.showTableOfContents !== void 0 && {
168
- showTableOfContents: o.showTableOfContents
169
- }
170
- }))
171
- } : {
172
- title: ae.getFixedT(n)(a.title),
173
- slug: a.slug,
174
- ...a.hasAdvanced && { hasAdvanced: a.hasAdvanced },
175
- ...a.showTableOfContents !== void 0 && {
176
- showTableOfContents: a.showTableOfContents
177
- }
178
- }), V = (t) => t.toString().toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/\s+/g, "-").replace(/-+/g, "-").replace(/^-+|-+$/g, ""), Ie = Pe(null);
179
- function Ja({
180
- children: t,
161
+ }, oe = (e) => "items" in e, gt = async (e, n, s) => {
162
+ const o = [];
163
+ for (const c of e)
164
+ if (oe(c)) {
165
+ const a = [];
166
+ for (const g of c.items)
167
+ try {
168
+ const u = await s(n, g.slug, !1), h = typeof u.frontmatter.title == "string" ? u.frontmatter.title : g.slug;
169
+ a.push({
170
+ ...g,
171
+ title: h
172
+ });
173
+ } catch {
174
+ a.push({
175
+ ...g,
176
+ title: g.slug
177
+ });
178
+ }
179
+ const r = Kt.getFixedT(n)(c.title);
180
+ o.push({
181
+ title: r,
182
+ items: a,
183
+ ...c.defaultOpen !== void 0 && {
184
+ defaultOpen: c.defaultOpen
185
+ }
186
+ });
187
+ } else
188
+ try {
189
+ const a = await s(n, c.slug, !1), r = typeof a.frontmatter.title == "string" ? a.frontmatter.title : c.slug;
190
+ o.push({
191
+ ...c,
192
+ title: r
193
+ });
194
+ } catch {
195
+ o.push({
196
+ ...c,
197
+ title: c.slug
198
+ });
199
+ }
200
+ return o;
201
+ }, q = (e) => e.toString().toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/\s+/g, "-").replace(/-+/g, "-").replace(/^-+|-+$/g, ""), ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
202
+ __proto__: null,
203
+ generateHeadingId: q,
204
+ getNavigationData: gt,
205
+ useTheme: mt
206
+ }, Symbol.toStringTag, { value: "Module" })), Ot = Ht(null);
207
+ function ua({
208
+ children: e,
181
209
  config: n,
182
- blog: a,
210
+ blog: s,
183
211
  navigationData: o = []
184
212
  }) {
185
- Ce(n.defaultTheme);
186
- const [c, s] = L({});
187
- S(() => {
188
- const { buildTagIndex: m } = ke(a.mdxFiles), g = n.supportedLanguages.map(async (_) => {
213
+ mt(n.defaultTheme);
214
+ const [c, a] = C({});
215
+ T(() => {
216
+ const { buildTagIndex: g } = Et(s.mdxFiles), u = n.supportedLanguages.map(async (h) => {
189
217
  try {
190
- const u = await m(_);
191
- return { language: _, index: u };
192
- } catch (u) {
193
- return console.error(`Failed to build tag index for ${_}:`, u), { language: _, index: {} };
218
+ const l = await g(h);
219
+ return { language: h, index: l };
220
+ } catch (l) {
221
+ return console.error(`Failed to build tag index for ${h}:`, l), { language: h, index: {} };
194
222
  }
195
223
  });
196
- Promise.all(g).then((_) => {
197
- const u = {};
198
- for (const b of _)
199
- u[b.language] = b.index;
200
- s(u);
201
- }).catch((_) => {
202
- console.error("Failed to build tag indices:", _);
224
+ Promise.all(u).then((h) => {
225
+ const l = {};
226
+ for (const f of h)
227
+ l[f.language] = f.index;
228
+ a(l);
229
+ }).catch((h) => {
230
+ console.error("Failed to build tag indices:", h);
203
231
  });
204
- }, [a.mdxFiles, n.supportedLanguages]);
205
- const i = { ...n, navigationData: o, tagIndex: c };
206
- return /* @__PURE__ */ e(
207
- Ie.Provider,
232
+ }, [s.mdxFiles, n.supportedLanguages]);
233
+ const r = { ...n, navigationData: o, tagIndex: c };
234
+ return /* @__PURE__ */ t(
235
+ Ot.Provider,
208
236
  {
209
237
  value: {
210
- config: i,
211
- loadContent: a.loadContent,
212
- loadEnglishContent: a.loadEnglishContent
238
+ config: r,
239
+ loadContent: s.loadContent,
240
+ loadEnglishContent: s.loadEnglishContent
213
241
  },
214
- children: /* @__PURE__ */ e(qe, { children: t })
242
+ children: /* @__PURE__ */ t(ne, { children: e })
215
243
  }
216
244
  );
217
245
  }
218
- function R() {
219
- const t = De(Ie);
220
- if (!t)
246
+ function O() {
247
+ const e = Ft(Ot);
248
+ if (!e)
221
249
  throw new Error("useBlogConfig must be used within a BlogProvider");
222
- return t;
250
+ return e;
223
251
  }
224
- function ye() {
252
+ function jt() {
225
253
  return !!new URL(window.location.href).hash;
226
254
  }
227
- function Ge(t, n, a) {
228
- const o = a ? `${a}/` : "";
229
- return ye() ? `#${o}${n}/${t}` : `/${o}${n}/${t}`;
255
+ function se(e, n, s) {
256
+ const o = s ? `${s}/` : "";
257
+ return jt() ? `#${o}${n}/${e}` : `/${o}${n}/${e}`;
230
258
  }
231
- function Qe(t) {
259
+ function ce(e) {
232
260
  const n = {
233
261
  advanced: !1,
234
262
  anchor: ""
235
263
  };
236
- if (!t) return n;
237
- const o = (t.startsWith("?") ? t.substring(1) : t).split("&");
264
+ if (!e) return n;
265
+ const o = (e.startsWith("?") ? e.substring(1) : e).split("&");
238
266
  for (const c of o)
239
267
  c === "advanced" ? n.advanced = !0 : c.startsWith("a=") && (n.anchor = c.substring(2));
240
268
  return n;
241
269
  }
242
- function we(t, n = 80) {
243
- const a = document.getElementById(t);
244
- if (a) {
245
- const c = a.getBoundingClientRect().top + window.pageYOffset - n;
270
+ function Tt(e, n = 80) {
271
+ const s = document.getElementById(e);
272
+ if (s) {
273
+ const c = s.getBoundingClientRect().top + window.pageYOffset - n;
246
274
  window.scrollTo({
247
275
  top: c,
248
276
  behavior: "smooth"
249
277
  });
250
278
  }
251
279
  }
252
- function Xe(t, n = !1) {
253
- const a = new URL(window.location.href);
254
- if (ye()) {
255
- const o = a.hash.split("?"), c = o[0], s = new URLSearchParams(o[1] || "");
256
- s.set("a", t), n && s.set("advanced", "");
257
- const i = s.toString();
258
- a.hash = i ? `${c}?${i}` : c;
280
+ function re(e, n = !1) {
281
+ const s = new URL(window.location.href);
282
+ if (jt()) {
283
+ const o = s.hash.split("?"), c = o[0], a = new URLSearchParams(o[1] || "");
284
+ a.set("a", e), n && a.set("advanced", "");
285
+ const r = a.toString();
286
+ s.hash = r ? `${c}?${r}` : c;
259
287
  } else {
260
- const o = new URLSearchParams(a.search);
261
- o.set("a", t), n && o.set("advanced", ""), a.search = `?${o.toString()}`;
288
+ const o = new URLSearchParams(s.search);
289
+ o.set("a", e), n && o.set("advanced", ""), s.search = `?${o.toString()}`;
262
290
  }
263
- window.history.pushState(null, "", a.toString());
291
+ window.history.pushState(null, "", s.toString());
264
292
  }
265
- const Ye = "_metadata_bsge0_1", Ve = "_author_bsge0_9", Je = "_date_bsge0_10", oe = {
266
- metadata: Ye,
267
- author: Ve,
268
- date: Je
293
+ const le = "_metadata_bsge0_1", ie = "_author_bsge0_9", de = "_date_bsge0_10", lt = {
294
+ metadata: le,
295
+ author: ie,
296
+ date: de
269
297
  };
270
- function Le({ date: t, author: n }) {
271
- const { t: a } = E();
272
- return !t && !n ? null : /* @__PURE__ */ h("div", { className: oe.metadata, children: [
273
- n && /* @__PURE__ */ h("span", { className: oe.author, children: [
274
- /* @__PURE__ */ e(Ee, { size: 16, weight: "regular" }),
298
+ function dt({ date: e, author: n }) {
299
+ const { t: s } = R();
300
+ return !e && !n ? null : /* @__PURE__ */ m("div", { className: lt.metadata, children: [
301
+ n && /* @__PURE__ */ m("span", { className: lt.author, children: [
302
+ /* @__PURE__ */ t(qt, { size: 16, weight: "regular" }),
275
303
  n
276
304
  ] }),
277
- t && /* @__PURE__ */ h("span", { className: oe.date, children: [
278
- /* @__PURE__ */ e(Re, { size: 16, weight: "regular" }),
279
- a("ui.lastEdited"),
305
+ e && /* @__PURE__ */ m("span", { className: lt.date, children: [
306
+ /* @__PURE__ */ t(Gt, { size: 16, weight: "regular" }),
307
+ s("ui.lastEdited"),
280
308
  ": ",
281
- t
309
+ e
282
310
  ] })
283
311
  ] });
284
312
  }
285
- const Ze = "_tableOfContents_9ofak_1", et = "_header_9ofak_21", tt = "_title_9ofak_25", nt = "_nav_9ofak_34", at = "_list_9ofak_40", ot = "_link_9ofak_47", st = "_active_9ofak_71", ct = "_level1_9ofak_87", rt = "_level2_9ofak_93", lt = "_level3_9ofak_98", it = "_level4_9ofak_104", dt = "_level5_9ofak_110", ut = "_level6_9ofak_116", j = {
286
- tableOfContents: Ze,
287
- header: et,
288
- title: tt,
289
- nav: nt,
290
- list: at,
291
- link: ot,
292
- active: st,
293
- level1: ct,
294
- level2: rt,
295
- level3: lt,
296
- level4: it,
297
- level5: dt,
298
- level6: ut
313
+ const ue = "_tableOfContents_9ofak_1", he = "_header_9ofak_21", me = "_title_9ofak_25", ge = "_nav_9ofak_34", _e = "_list_9ofak_40", pe = "_link_9ofak_47", fe = "_active_9ofak_71", ve = "_level1_9ofak_87", be = "_level2_9ofak_93", we = "_level3_9ofak_98", Ne = "_level4_9ofak_104", $e = "_level5_9ofak_110", ke = "_level6_9ofak_116", F = {
314
+ tableOfContents: ue,
315
+ header: he,
316
+ title: me,
317
+ nav: ge,
318
+ list: _e,
319
+ link: pe,
320
+ active: fe,
321
+ level1: ve,
322
+ level2: be,
323
+ level3: we,
324
+ level4: Ne,
325
+ level5: $e,
326
+ level6: ke
299
327
  };
300
- function ht({
301
- content: t,
328
+ function xe({
329
+ content: e,
302
330
  englishContent: n
303
331
  }) {
304
- const { t: a } = E(), o = G(), c = U(), [s, i] = L([]), [m, g] = L(""), _ = H(null);
305
- S(() => {
306
- g(""), (() => {
307
- const p = /^(#{1,6})\s+(.+)$/gm, d = [];
308
- let l = p.exec(t);
309
- const r = [];
310
- for (; l !== null; ) {
311
- const f = l[1].length, N = l[2].trim();
312
- r.push({ level: f, text: N }), l = p.exec(t);
332
+ const { t: s } = R(), o = V(), c = Q(), [a, r] = C([]), [g, u] = C(""), h = K(null);
333
+ T(() => {
334
+ u(""), (() => {
335
+ const p = /^(#{1,6})\s+(.+)$/gm, b = [];
336
+ let w = p.exec(e);
337
+ const i = [];
338
+ for (; w !== null; ) {
339
+ const P = w[1].length, W = w[2].trim();
340
+ i.push({ level: P, text: W }), w = p.exec(e);
313
341
  }
314
- const w = /^(#{1,6})\s+(.+)$/gm;
315
- let x = w.exec(n), C = 0;
316
- for (; x !== null && C < r.length; ) {
317
- const f = x[2].trim(), N = V(f);
318
- d.push({
319
- id: N,
320
- text: r[C].text,
342
+ const d = /^(#{1,6})\s+(.+)$/gm;
343
+ let v = d.exec(n), I = 0;
344
+ for (; v !== null && I < i.length; ) {
345
+ const P = v[2].trim(), W = q(P);
346
+ b.push({
347
+ id: W,
348
+ text: i[I].text,
321
349
  // Use localized text for display
322
- level: r[C].level
323
- }), C++, x = w.exec(n);
350
+ level: i[I].level
351
+ }), I++, v = d.exec(n);
324
352
  }
325
- i(d);
353
+ r(b);
326
354
  })();
327
- }, [t, n]), S(() => {
328
- if (s.length === 0) return;
329
- const b = setTimeout(() => {
330
- const p = s.filter(
331
- (d) => !document.getElementById(d.id)
355
+ }, [e, n]), T(() => {
356
+ if (a.length === 0) return;
357
+ const f = setTimeout(() => {
358
+ const p = a.filter(
359
+ (b) => !document.getElementById(b.id)
332
360
  );
333
361
  p.length > 0 && console.warn("Some heading elements not found:", p);
334
362
  }, 100);
335
- return () => clearTimeout(b);
336
- }, [s]), S(() => {
337
- if (s.length === 0) return;
338
- _.current && _.current.disconnect();
339
- const b = setTimeout(() => {
340
- const p = s.map((d) => document.getElementById(d.id)).filter(Boolean);
341
- p.length !== 0 && (_.current = new IntersectionObserver(
342
- (d) => {
343
- const l = d.filter((r) => r.isIntersecting);
344
- if (l.length > 0) {
345
- const r = l.reduce((w, x) => w.boundingClientRect.top < x.boundingClientRect.top ? w : x);
346
- g(r.target.id);
363
+ return () => clearTimeout(f);
364
+ }, [a]), T(() => {
365
+ if (a.length === 0) return;
366
+ h.current && h.current.disconnect();
367
+ const f = setTimeout(() => {
368
+ const p = a.map((b) => document.getElementById(b.id)).filter(Boolean);
369
+ p.length !== 0 && (h.current = new IntersectionObserver(
370
+ (b) => {
371
+ const w = b.filter((i) => i.isIntersecting);
372
+ if (w.length > 0) {
373
+ const i = w.reduce((d, v) => d.boundingClientRect.top < v.boundingClientRect.top ? d : v);
374
+ u(i.target.id);
347
375
  }
348
376
  },
349
377
  {
350
378
  rootMargin: "-80px 0% -80% 0%",
351
379
  threshold: 0
352
380
  }
353
- ), p.forEach((d) => {
354
- _.current && _.current.observe(d);
381
+ ), p.forEach((b) => {
382
+ h.current && h.current.observe(b);
355
383
  }));
356
384
  }, 150);
357
385
  return () => {
358
- clearTimeout(b), _.current && _.current.disconnect();
386
+ clearTimeout(f), h.current && h.current.disconnect();
359
387
  };
360
- }, [s]), S(() => () => {
361
- _.current && _.current.disconnect();
388
+ }, [a]), T(() => () => {
389
+ h.current && h.current.disconnect();
362
390
  }, []);
363
- const u = (b) => {
364
- const p = document.getElementById(b);
391
+ const l = (f) => {
392
+ const p = document.getElementById(f);
365
393
  if (p) {
366
- const d = new URLSearchParams(o.search);
367
- d.set("a", b), c(
368
- `${o.pathname}?${d.toString()}${o.hash}`,
394
+ const b = new URLSearchParams(o.search);
395
+ b.set("a", f), c(
396
+ `${o.pathname}?${b.toString()}${o.hash}`,
369
397
  {
370
398
  replace: !0
371
399
  }
372
400
  );
373
- const w = p.getBoundingClientRect().top + window.pageYOffset - 80;
401
+ const d = p.getBoundingClientRect().top + window.pageYOffset - 80;
374
402
  window.scrollTo({
375
- top: w,
403
+ top: d,
376
404
  behavior: "smooth"
377
405
  });
378
406
  }
379
407
  };
380
- return s.length === 0 ? null : /* @__PURE__ */ h("aside", { className: j.tableOfContents, children: [
381
- /* @__PURE__ */ e("div", { className: j.header, children: /* @__PURE__ */ e("span", { className: j.title, children: a("ui.onThisPage", "On this page") }) }),
382
- /* @__PURE__ */ e("nav", { className: j.nav, children: /* @__PURE__ */ e("ul", { className: j.list, children: s.map((b) => /* @__PURE__ */ e("li", { className: j.item, children: /* @__PURE__ */ e(
408
+ return a.length === 0 ? null : /* @__PURE__ */ m("aside", { className: F.tableOfContents, children: [
409
+ /* @__PURE__ */ t("div", { className: F.header, children: /* @__PURE__ */ t("span", { className: F.title, children: s("ui.onThisPage", "On this page") }) }),
410
+ /* @__PURE__ */ t("nav", { className: F.nav, children: /* @__PURE__ */ t("ul", { className: F.list, children: a.map((f) => /* @__PURE__ */ t("li", { className: F.item, children: /* @__PURE__ */ t(
383
411
  "button",
384
412
  {
385
- className: `${j.link} ${j[`level${b.level}`]} ${m === b.id ? j.active : ""}`,
386
- onClick: () => u(b.id),
413
+ className: `${F.link} ${F[`level${f.level}`]} ${g === f.id ? F.active : ""}`,
414
+ onClick: () => l(f.id),
387
415
  type: "button",
388
- children: b.text
416
+ children: f.text
389
417
  }
390
- ) }, b.id)) }) })
418
+ ) }, f.id)) }) })
391
419
  ] });
392
420
  }
393
- const gt = "_overlay_1e1d4_1", mt = "_modal_1e1d4_26", _t = "_header_1e1d4_50", pt = "_title_1e1d4_58", ft = "_closeButton_1e1d4_65", vt = "_results_1e1d4_86", bt = "_resultsList_1e1d4_94", wt = "_resultItem_1e1d4_100", Nt = "_resultTitle_1e1d4_119", $t = "_resultSlug_1e1d4_124", kt = "_noResults_1e1d4_130", O = {
394
- overlay: gt,
395
- modal: mt,
396
- header: _t,
397
- title: pt,
398
- closeButton: ft,
399
- results: vt,
400
- resultsList: bt,
401
- resultItem: wt,
402
- resultTitle: Nt,
403
- resultSlug: $t,
404
- noResults: kt
421
+ const Ie = "_overlay_1e1d4_1", Ce = "_modal_1e1d4_26", ye = "_header_1e1d4_50", Se = "_title_1e1d4_58", Le = "_closeButton_1e1d4_65", Te = "_results_1e1d4_86", Pe = "_resultsList_1e1d4_94", De = "_resultItem_1e1d4_100", Me = "_resultTitle_1e1d4_119", Be = "_resultSlug_1e1d4_124", Ee = "_noResults_1e1d4_130", j = {
422
+ overlay: Ie,
423
+ modal: Ce,
424
+ header: ye,
425
+ title: Se,
426
+ closeButton: Le,
427
+ results: Te,
428
+ resultsList: Pe,
429
+ resultItem: De,
430
+ resultTitle: Me,
431
+ resultSlug: Be,
432
+ noResults: Ee
405
433
  };
406
- function xt({
407
- tag: t,
434
+ function Re({
435
+ tag: e,
408
436
  results: n,
409
- language: a,
437
+ language: s,
410
438
  onClose: o
411
439
  }) {
412
- const { t: c } = E(), { config: s } = R(), i = U(), m = (g) => {
413
- const _ = s.basePath || "";
414
- i(`${_}/${a}/${g}`), o();
440
+ const { t: c } = R(), { config: a } = O(), r = Q(), g = (u) => {
441
+ const h = a.basePath || "";
442
+ r(`${h}/${s}/${u}`), o();
415
443
  };
416
- return $e(
417
- /* @__PURE__ */ e("div", { className: O.overlay, onClick: o, children: /* @__PURE__ */ h("div", { className: O.modal, onClick: (g) => g.stopPropagation(), children: [
418
- /* @__PURE__ */ h("div", { className: O.header, children: [
419
- /* @__PURE__ */ h("h2", { className: O.title, children: [
444
+ return Bt(
445
+ /* @__PURE__ */ t("div", { className: j.overlay, onClick: o, children: /* @__PURE__ */ m("div", { className: j.modal, onClick: (u) => u.stopPropagation(), children: [
446
+ /* @__PURE__ */ m("div", { className: j.header, children: [
447
+ /* @__PURE__ */ m("h2", { className: j.title, children: [
420
448
  c("ui.tagResults"),
421
449
  ": ",
422
- t
450
+ e
423
451
  ] }),
424
- /* @__PURE__ */ e(
452
+ /* @__PURE__ */ t(
425
453
  "button",
426
454
  {
427
455
  type: "button",
428
- className: O.closeButton,
456
+ className: j.closeButton,
429
457
  onClick: o,
430
458
  "aria-label": "Close",
431
- children: /* @__PURE__ */ e(re, {})
459
+ children: /* @__PURE__ */ t(ht, {})
432
460
  }
433
461
  )
434
462
  ] }),
435
- /* @__PURE__ */ e("div", { className: O.results, children: n.length === 0 ? /* @__PURE__ */ e("div", { className: O.noResults, children: c("ui.noTagResults") }) : /* @__PURE__ */ e("ul", { className: O.resultsList, children: n.map((g) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ h(
463
+ /* @__PURE__ */ t("div", { className: j.results, children: n.length === 0 ? /* @__PURE__ */ t("div", { className: j.noResults, children: c("ui.noTagResults") }) : /* @__PURE__ */ t("ul", { className: j.resultsList, children: n.map((u) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ m(
436
464
  "button",
437
465
  {
438
466
  type: "button",
439
- className: O.resultItem,
440
- onClick: () => m(g.slug),
467
+ className: j.resultItem,
468
+ onClick: () => g(u.slug),
441
469
  children: [
442
- /* @__PURE__ */ e("div", { className: O.resultTitle, children: g.title }),
443
- /* @__PURE__ */ h("div", { className: O.resultSlug, children: [
470
+ /* @__PURE__ */ t("div", { className: j.resultTitle, children: u.title }),
471
+ /* @__PURE__ */ m("div", { className: j.resultSlug, children: [
444
472
  "/",
445
- g.slug
473
+ u.slug
446
474
  ] })
447
475
  ]
448
476
  }
449
- ) }, g.slug)) }) })
477
+ ) }, u.slug)) }) })
450
478
  ] }) }),
451
479
  document.body
452
480
  );
453
481
  }
454
- const Ct = "_tags_11t8a_1", It = "_compact_11t8a_9", yt = "_tagLabel_11t8a_15", Lt = "_tagIcon_11t8a_25", Tt = "_tagList_11t8a_30", St = "_tag_11t8a_1", q = {
455
- tags: Ct,
456
- compact: It,
457
- tagLabel: yt,
458
- tagIcon: Lt,
459
- tagList: Tt,
460
- tag: St
482
+ const Oe = "_tags_11t8a_1", je = "_compact_11t8a_9", We = "_tagLabel_11t8a_15", Ae = "_tagIcon_11t8a_25", He = "_tagList_11t8a_30", Fe = "_tag_11t8a_1", Y = {
483
+ tags: Oe,
484
+ compact: je,
485
+ tagLabel: We,
486
+ tagIcon: Ae,
487
+ tagList: He,
488
+ tag: Fe
461
489
  };
462
- function Pt({ tags: t, variant: n = "default", onTagClick: a }) {
463
- const { t: o } = E();
464
- if (!t || t.length === 0) return null;
465
- const c = (s) => {
466
- a && a(s);
490
+ function ze({ tags: e, variant: n = "default", onTagClick: s }) {
491
+ const { t: o } = R();
492
+ if (!e || e.length === 0) return null;
493
+ const c = (a) => {
494
+ s && s(a);
467
495
  };
468
- return /* @__PURE__ */ h(
496
+ return /* @__PURE__ */ m(
469
497
  "div",
470
498
  {
471
- className: `${q.tags} ${n === "compact" ? q.compact : ""}`,
499
+ className: `${Y.tags} ${n === "compact" ? Y.compact : ""}`,
472
500
  children: [
473
- n === "default" && /* @__PURE__ */ h("div", { className: q.tagLabel, children: [
474
- /* @__PURE__ */ e(Oe, { className: q.tagIcon, weight: "duotone" }),
475
- /* @__PURE__ */ h("span", { children: [
501
+ n === "default" && /* @__PURE__ */ m("div", { className: Y.tagLabel, children: [
502
+ /* @__PURE__ */ t(Qt, { className: Y.tagIcon, weight: "duotone" }),
503
+ /* @__PURE__ */ m("span", { children: [
476
504
  o("ui.tags"),
477
505
  ":"
478
506
  ] })
479
507
  ] }),
480
- /* @__PURE__ */ e("div", { className: q.tagList, children: t.map((s) => /* @__PURE__ */ e(
508
+ /* @__PURE__ */ t("div", { className: Y.tagList, children: e.map((a) => /* @__PURE__ */ t(
481
509
  "button",
482
510
  {
483
511
  type: "button",
484
- className: q.tag,
485
- onClick: () => c(s),
486
- "aria-label": `${o("ui.filterByTag")}: ${s}`,
487
- children: s
512
+ className: Y.tag,
513
+ onClick: () => c(a),
514
+ "aria-label": `${o("ui.filterByTag")}: ${a}`,
515
+ children: a
488
516
  },
489
- s
517
+ a
490
518
  )) })
491
519
  ]
492
520
  }
493
521
  );
494
522
  }
495
- const Dt = "_contentPage_1nxj5_1", Bt = "_loadingContainer_1nxj5_48", Mt = "_errorContainer_1nxj5_49", Et = "_skeletonTitle_1nxj5_71", Rt = "_skeletonParagraph_1nxj5_80", Ot = "_skeletonParagraphShort_1nxj5_93", jt = "_errorText_1nxj5_107", At = "_mdxContent_1nxj5_112", Wt = "_withMetadata_1nxj5_125", Ht = "_codeBlock_1nxj5_300", Ft = "_codeLanguage_1nxj5_304", B = {
496
- contentPage: Dt,
497
- loadingContainer: Bt,
498
- errorContainer: Mt,
499
- skeletonTitle: Et,
500
- skeletonParagraph: Rt,
501
- skeletonParagraphShort: Ot,
502
- errorText: jt,
503
- mdxContent: At,
504
- withMetadata: Wt,
505
- codeBlock: Ht,
506
- codeLanguage: Ft
523
+ const Ue = "_contentPage_1nxj5_1", Ke = "_loadingContainer_1nxj5_48", qe = "_errorContainer_1nxj5_49", Ge = "_skeletonTitle_1nxj5_71", Qe = "_skeletonParagraph_1nxj5_80", Xe = "_skeletonParagraphShort_1nxj5_93", Ye = "_errorText_1nxj5_107", Ve = "_mdxContent_1nxj5_112", Je = "_withMetadata_1nxj5_125", Ze = "_codeBlock_1nxj5_300", tn = "_codeLanguage_1nxj5_304", B = {
524
+ contentPage: Ue,
525
+ loadingContainer: Ke,
526
+ errorContainer: qe,
527
+ skeletonTitle: Ge,
528
+ skeletonParagraph: Qe,
529
+ skeletonParagraphShort: Xe,
530
+ errorText: Ye,
531
+ mdxContent: Ve,
532
+ withMetadata: Je,
533
+ codeBlock: Ze,
534
+ codeLanguage: tn
535
+ }, Pt = (e) => {
536
+ const n = e.match(/^\s*#\s+(.+)\s*(?:\n+|$)/);
537
+ return n ? {
538
+ title: n[1].trim(),
539
+ content: e.replace(/^\s*#\s+.+\s*(?:\n+|$)/, "")
540
+ } : { title: void 0, content: e };
507
541
  };
508
- function Ut({ language: t }) {
509
- var ue;
510
- const { slug: n } = ce(), a = G(), { config: o, loadContent: c, loadEnglishContent: s } = R(), [i, m] = L(""), [g, _] = L(""), [u, b] = L({}), [p, d] = L(!0), [l, r] = L(null), [w, x] = L(!0), [C, f] = L(null), N = H(0), D = H([]), J = Qe(a.search), K = J.advanced;
511
- if (S(() => {
542
+ function en({ language: e }) {
543
+ var bt;
544
+ const { slug: n } = ut(), s = V(), { config: o, loadContent: c, loadEnglishContent: a } = O(), [r, g] = C(""), [u, h] = C(""), [l, f] = C({}), [p, b] = C(!0), [w, i] = C(null), [d, v] = C(!0), [I, P] = C(null), [W, N] = C(""), $ = K(0), M = K([]), A = ce(s.search), H = A.advanced;
545
+ if (T(() => {
512
546
  (async () => {
513
547
  if (!n) return;
514
- d(!0), r(null), N.current = 0;
515
- const I = (o == null ? void 0 : o.navigationData) || [];
516
- let P = !0;
517
- for (const $ of I)
518
- if ("items" in $) {
519
- const y = $.items.find((F) => F.slug === n);
520
- if (y) {
521
- P = y.showTableOfContents !== !1;
548
+ b(!0), i(null), $.current = 0;
549
+ const y = (o == null ? void 0 : o.navigationData) || [];
550
+ let D = !0;
551
+ for (const k of y)
552
+ if ("items" in k) {
553
+ const S = k.items.find((X) => X.slug === n);
554
+ if (S) {
555
+ D = S.showTableOfContents !== !1;
522
556
  break;
523
557
  }
524
- } else if ($.slug === n) {
525
- P = $.showTableOfContents !== !1;
558
+ } else if (k.slug === n) {
559
+ D = k.showTableOfContents !== !1;
526
560
  break;
527
561
  }
528
- x(P);
562
+ v(D);
529
563
  try {
530
- let $;
564
+ let k;
531
565
  try {
532
- $ = await c(t, n, K);
566
+ k = await c(e, n, H);
533
567
  } catch {
534
- if (K)
535
- $ = await c(t, n, !1);
568
+ if (H)
569
+ k = await c(e, n, !1);
536
570
  else
537
571
  throw new Error("Content not found");
538
572
  }
539
- let y = "";
573
+ let S = "";
540
574
  try {
541
- y = await s(n, K);
575
+ S = await a(n, H);
542
576
  } catch {
543
- K && (y = await s(n, !1));
577
+ H && (S = await a(n, !1));
544
578
  }
545
- const F = /^(#{1,6})\s+(.+)$/gm, ee = [];
546
- let ne = F.exec(y);
547
- for (; ne !== null; ) {
548
- const Te = ne[2].trim();
549
- ee.push(Te), ne = F.exec(y);
579
+ const X = typeof k.frontmatter.title == "string" ? k.frontmatter.title : void 0;
580
+ let nt = k.content, ot = S, ct = "";
581
+ if (X) {
582
+ const at = Pt(S), Wt = Pt(k.content);
583
+ ct = at.title || "", ot = at.content, nt = Wt.content;
584
+ } else
585
+ ct = "";
586
+ const wt = /^(#{1,6})\s+(.+)$/gm, Nt = [];
587
+ let rt = wt.exec(
588
+ ot
589
+ );
590
+ for (; rt !== null; ) {
591
+ const at = rt[2].trim();
592
+ Nt.push(at), rt = wt.exec(ot);
550
593
  }
551
- D.current = ee, _(y), m($.content), b($.frontmatter);
552
- } catch ($) {
553
- r($ instanceof Error ? $.message : "Failed to load content");
594
+ M.current = Nt, N(ct), h(ot), g(nt), f(k.frontmatter);
595
+ } catch (k) {
596
+ i(k instanceof Error ? k.message : "Failed to load content");
554
597
  } finally {
555
- d(!1);
598
+ b(!1);
556
599
  }
557
600
  })();
558
601
  }, [
559
602
  n,
560
- t,
561
- K,
603
+ e,
604
+ H,
562
605
  o.navigationData,
563
606
  c,
564
- s
565
- ]), S(() => {
566
- if (!p && J.anchor) {
567
- const v = setTimeout(() => {
568
- we(J.anchor);
607
+ a
608
+ ]), T(() => {
609
+ if (!p && A.anchor) {
610
+ const _ = setTimeout(() => {
611
+ Tt(A.anchor);
569
612
  }, 150);
570
- return () => clearTimeout(v);
613
+ return () => clearTimeout(_);
571
614
  }
572
- }, [p, J.anchor]), p)
573
- return /* @__PURE__ */ e("div", { className: B.contentPage, children: /* @__PURE__ */ h("div", { className: B.loadingContainer, children: [
574
- /* @__PURE__ */ e("div", { className: B.skeletonTitle }),
575
- /* @__PURE__ */ e("div", { className: B.skeletonParagraph }),
576
- /* @__PURE__ */ e("div", { className: B.skeletonParagraph }),
577
- /* @__PURE__ */ e("div", { className: B.skeletonParagraphShort })
615
+ }, [p, A.anchor]), p)
616
+ return /* @__PURE__ */ t("div", { className: B.contentPage, children: /* @__PURE__ */ m("div", { className: B.loadingContainer, children: [
617
+ /* @__PURE__ */ t("div", { className: B.skeletonTitle }),
618
+ /* @__PURE__ */ t("div", { className: B.skeletonParagraph }),
619
+ /* @__PURE__ */ t("div", { className: B.skeletonParagraph }),
620
+ /* @__PURE__ */ t("div", { className: B.skeletonParagraphShort })
578
621
  ] }) });
579
- if (l)
580
- return /* @__PURE__ */ e("div", { className: B.contentPage, children: /* @__PURE__ */ e("div", { className: B.errorContainer, children: /* @__PURE__ */ h("div", { className: B.errorText, children: [
622
+ if (w)
623
+ return /* @__PURE__ */ t("div", { className: B.contentPage, children: /* @__PURE__ */ t("div", { className: B.errorContainer, children: /* @__PURE__ */ m("div", { className: B.errorText, children: [
581
624
  "Error: ",
582
- l
625
+ w
583
626
  ] }) }) });
584
- N.current = 0;
585
- let de = !1;
586
- const Z = (v, I) => {
587
- v.preventDefault(), we(I), Xe(I, K);
627
+ const et = typeof l.title == "string" && l.title.trim().length > 0, st = et ? q(W || l.title) : "", ft = !!(l.date || l.author);
628
+ $.current = 0;
629
+ let vt = !1;
630
+ const J = (_, y) => {
631
+ _.preventDefault(), Tt(y), re(y, H);
588
632
  };
589
- return /* @__PURE__ */ h(z, { children: [
590
- /* @__PURE__ */ h("div", { className: B.contentPage, children: [
591
- /* @__PURE__ */ e(Ke, { hasAdvanced: u.hasAdvanced || !1 }),
592
- /* @__PURE__ */ e("div", { className: B.mdxContent, children: /* @__PURE__ */ e(
593
- Be,
633
+ return /* @__PURE__ */ m(G, { children: [
634
+ /* @__PURE__ */ m("div", { className: B.contentPage, children: [
635
+ /* @__PURE__ */ t(ee, { hasAdvanced: l.hasAdvanced || !1 }),
636
+ et && /* @__PURE__ */ m(G, { children: [
637
+ /* @__PURE__ */ t(
638
+ "h1",
639
+ {
640
+ id: st,
641
+ className: ft ? B.withMetadata : void 0,
642
+ children: /* @__PURE__ */ t(
643
+ "a",
644
+ {
645
+ href: `#${st}`,
646
+ onClick: (_) => J(_, st),
647
+ style: { color: "inherit", textDecoration: "none" },
648
+ children: l.title
649
+ }
650
+ )
651
+ }
652
+ ),
653
+ ft && /* @__PURE__ */ t(dt, { date: l.date, author: l.author })
654
+ ] }),
655
+ /* @__PURE__ */ t("div", { className: B.mdxContent, children: /* @__PURE__ */ t(
656
+ zt,
594
657
  {
595
- remarkPlugins: [Me],
658
+ remarkPlugins: [Ut],
596
659
  components: {
597
- h1: ({ children: v }) => {
598
- const I = N.current++, P = D.current[I] || "", $ = V(P), y = !de;
599
- de = !0;
600
- const F = u.date || u.author;
601
- return /* @__PURE__ */ h(z, { children: [
602
- /* @__PURE__ */ e(
660
+ h1: ({ children: _ }) => {
661
+ const y = $.current++, D = M.current[y] || "", k = q(D), S = !vt;
662
+ vt = !0;
663
+ const X = l.date || l.author;
664
+ return /* @__PURE__ */ m(G, { children: [
665
+ /* @__PURE__ */ t(
603
666
  "h1",
604
667
  {
605
- id: $,
606
- className: y && F ? B.withMetadata : void 0,
607
- children: /* @__PURE__ */ e(
668
+ id: k,
669
+ className: S && X && !et ? B.withMetadata : void 0,
670
+ children: /* @__PURE__ */ t(
608
671
  "a",
609
672
  {
610
- href: `#${$}`,
611
- onClick: (ee) => Z(ee, $),
673
+ href: `#${k}`,
674
+ onClick: (nt) => J(nt, k),
612
675
  style: { color: "inherit", textDecoration: "none" },
613
- children: v
676
+ children: _
614
677
  }
615
678
  )
616
679
  }
617
680
  ),
618
- y && F && /* @__PURE__ */ e(
619
- Le,
681
+ S && X && !et && /* @__PURE__ */ t(
682
+ dt,
620
683
  {
621
- date: u.date,
622
- author: u.author
684
+ date: l.date,
685
+ author: l.author
623
686
  }
624
687
  )
625
688
  ] });
626
689
  },
627
- h2: ({ children: v }) => {
628
- const I = N.current++, P = D.current[I] || "", $ = V(P);
629
- return /* @__PURE__ */ e("h2", { id: $, children: /* @__PURE__ */ e(
690
+ h2: ({ children: _ }) => {
691
+ const y = $.current++, D = M.current[y] || "", k = q(D);
692
+ return /* @__PURE__ */ t("h2", { id: k, children: /* @__PURE__ */ t(
630
693
  "a",
631
694
  {
632
- href: `#${$}`,
633
- onClick: (y) => Z(y, $),
695
+ href: `#${k}`,
696
+ onClick: (S) => J(S, k),
634
697
  style: { color: "inherit", textDecoration: "none" },
635
- children: v
698
+ children: _
636
699
  }
637
700
  ) });
638
701
  },
639
- h3: ({ children: v }) => {
640
- const I = N.current++, P = D.current[I] || "", $ = V(P);
641
- return /* @__PURE__ */ e("h3", { id: $, children: /* @__PURE__ */ e(
702
+ h3: ({ children: _ }) => {
703
+ const y = $.current++, D = M.current[y] || "", k = q(D);
704
+ return /* @__PURE__ */ t("h3", { id: k, children: /* @__PURE__ */ t(
642
705
  "a",
643
706
  {
644
- href: `#${$}`,
645
- onClick: (y) => Z(y, $),
707
+ href: `#${k}`,
708
+ onClick: (S) => J(S, k),
646
709
  style: { color: "inherit", textDecoration: "none" },
647
- children: v
710
+ children: _
648
711
  }
649
712
  ) });
650
713
  },
651
- h4: ({ children: v }) => {
652
- const I = N.current++, P = D.current[I] || "", $ = V(P);
653
- return /* @__PURE__ */ e("h4", { id: $, children: /* @__PURE__ */ e(
714
+ h4: ({ children: _ }) => {
715
+ const y = $.current++, D = M.current[y] || "", k = q(D);
716
+ return /* @__PURE__ */ t("h4", { id: k, children: /* @__PURE__ */ t(
654
717
  "a",
655
718
  {
656
- href: `#${$}`,
657
- onClick: (y) => Z(y, $),
719
+ href: `#${k}`,
720
+ onClick: (S) => J(S, k),
658
721
  style: { color: "inherit", textDecoration: "none" },
659
- children: v
722
+ children: _
660
723
  }
661
724
  ) });
662
725
  },
663
- h5: ({ children: v }) => {
664
- const I = `h5-${N.current++}`;
665
- return /* @__PURE__ */ e("h5", { id: I, children: v });
726
+ h5: ({ children: _ }) => {
727
+ const y = `h5-${$.current++}`;
728
+ return /* @__PURE__ */ t("h5", { id: y, children: _ });
666
729
  },
667
- h6: ({ children: v }) => {
668
- const I = `h6-${N.current++}`;
669
- return /* @__PURE__ */ e("h6", { id: I, children: v });
730
+ h6: ({ children: _ }) => {
731
+ const y = `h6-${$.current++}`;
732
+ return /* @__PURE__ */ t("h6", { id: y, children: _ });
670
733
  },
671
- p: ({ children: v }) => /* @__PURE__ */ e("p", { children: v }),
672
- ul: ({ children: v }) => /* @__PURE__ */ e("ul", { children: v }),
673
- ol: ({ children: v }) => /* @__PURE__ */ e("ol", { children: v }),
674
- li: ({ children: v }) => /* @__PURE__ */ e("li", { children: v }),
675
- code: ({ className: v, children: I, ...P }) => {
676
- if (!v)
677
- return /* @__PURE__ */ e("code", { ...P, children: I });
678
- const y = (v == null ? void 0 : v.replace("language-", "")) || "";
679
- return /* @__PURE__ */ h("div", { className: B.codeBlock, children: [
680
- y && /* @__PURE__ */ e("div", { className: B.codeLanguage, children: y }),
681
- /* @__PURE__ */ e("pre", { children: /* @__PURE__ */ e("code", { className: v, ...P, children: I }) })
734
+ p: ({ children: _ }) => /* @__PURE__ */ t("p", { children: _ }),
735
+ ul: ({ children: _ }) => /* @__PURE__ */ t("ul", { children: _ }),
736
+ ol: ({ children: _ }) => /* @__PURE__ */ t("ol", { children: _ }),
737
+ li: ({ children: _ }) => /* @__PURE__ */ t("li", { children: _ }),
738
+ code: ({ className: _, children: y, ...D }) => {
739
+ if (!_)
740
+ return /* @__PURE__ */ t("code", { ...D, children: y });
741
+ const S = (_ == null ? void 0 : _.replace("language-", "")) || "";
742
+ return /* @__PURE__ */ m("div", { className: B.codeBlock, children: [
743
+ S && /* @__PURE__ */ t("div", { className: B.codeLanguage, children: S }),
744
+ /* @__PURE__ */ t("pre", { children: /* @__PURE__ */ t("code", { className: _, ...D, children: y }) })
682
745
  ] });
683
746
  },
684
- pre: ({ children: v }) => /* @__PURE__ */ e(z, { children: v }),
747
+ pre: ({ children: _ }) => /* @__PURE__ */ t(G, { children: _ }),
685
748
  // Let code component handle pre styling
686
- blockquote: ({ children: v }) => /* @__PURE__ */ e("blockquote", { children: v }),
687
- a: ({ href: v, children: I, ...P }) => {
688
- if (v != null && v.startsWith("./")) {
689
- const $ = v.slice(2), y = Ge(
690
- $,
691
- t,
749
+ blockquote: ({ children: _ }) => /* @__PURE__ */ t("blockquote", { children: _ }),
750
+ a: ({ href: _, children: y, ...D }) => {
751
+ if (_ != null && _.startsWith("./")) {
752
+ const k = _.slice(2), S = se(
753
+ k,
754
+ e,
692
755
  o.basePath
693
756
  );
694
- return /* @__PURE__ */ e("a", { href: y, ...P, children: I });
757
+ return /* @__PURE__ */ t("a", { href: S, ...D, children: y });
695
758
  }
696
- return v != null && v.startsWith("http://") || v != null && v.startsWith("https://") ? /* @__PURE__ */ e(
759
+ return _ != null && _.startsWith("http://") || _ != null && _.startsWith("https://") ? /* @__PURE__ */ t(
697
760
  "a",
698
761
  {
699
- href: v,
762
+ href: _,
700
763
  target: "_blank",
701
764
  rel: "noopener noreferrer",
702
- ...P,
703
- children: I
765
+ ...D,
766
+ children: y
704
767
  }
705
- ) : /* @__PURE__ */ e("a", { href: v, ...P, children: I });
768
+ ) : /* @__PURE__ */ t("a", { href: _, ...D, children: y });
706
769
  },
707
- strong: ({ children: v }) => /* @__PURE__ */ e("strong", { children: v }),
708
- em: ({ children: v }) => /* @__PURE__ */ e("em", { children: v })
770
+ strong: ({ children: _ }) => /* @__PURE__ */ t("strong", { children: _ }),
771
+ em: ({ children: _ }) => /* @__PURE__ */ t("em", { children: _ })
709
772
  },
710
- children: i
773
+ children: r
711
774
  }
712
775
  ) }),
713
- u.tags && u.tags.length > 0 && /* @__PURE__ */ e(
714
- Pt,
776
+ l.tags && l.tags.length > 0 && /* @__PURE__ */ t(
777
+ ze,
715
778
  {
716
- tags: u.tags,
779
+ tags: l.tags,
717
780
  variant: "compact",
718
- onTagClick: (v) => f(v)
781
+ onTagClick: (_) => P(_)
719
782
  }
720
783
  )
721
784
  ] }),
722
- w && /* @__PURE__ */ e(ht, { content: i, englishContent: g }),
723
- C && ((ue = o.tagIndex) == null ? void 0 : ue[t]) && /* @__PURE__ */ e(
724
- xt,
785
+ d && /* @__PURE__ */ t(xe, { content: r, englishContent: u }),
786
+ I && ((bt = o.tagIndex) == null ? void 0 : bt[e]) && /* @__PURE__ */ t(
787
+ Re,
725
788
  {
726
- tag: C,
727
- results: o.tagIndex[t][C] || [],
728
- language: t,
729
- onClose: () => f(null)
789
+ tag: I,
790
+ results: o.tagIndex[e][I] || [],
791
+ language: e,
792
+ onClose: () => P(null)
730
793
  }
731
794
  )
732
795
  ] });
733
796
  }
734
- const Kt = "_searchButton_1k9sl_1", qt = "_searchIcon_1k9sl_17", zt = "_searchHint_1k9sl_23", Gt = "_kbd_1k9sl_27", Qt = "_searchOverlay_1k9sl_42", Xt = "_searchModal_1k9sl_67", Yt = "_searchHeader_1k9sl_91", Vt = "_searchInput_1k9sl_105", Jt = "_closeButton_1k9sl_123", Zt = "_searchResults_1k9sl_144", en = "_resultsList_1k9sl_152", tn = "_resultItem_1k9sl_158", nn = "_selected_1k9sl_173", an = "_resultTitle_1k9sl_176", on = "_resultSlug_1k9sl_180", sn = "_noResults_1k9sl_186", cn = "_searchHints_1k9sl_193", rn = "_hint_1k9sl_210", T = {
735
- searchButton: Kt,
736
- searchIcon: qt,
737
- searchHint: zt,
738
- kbd: Gt,
739
- searchOverlay: Qt,
740
- searchModal: Xt,
741
- searchHeader: Yt,
742
- searchInput: Vt,
743
- closeButton: Jt,
744
- searchResults: Zt,
745
- resultsList: en,
746
- resultItem: tn,
747
- selected: nn,
748
- resultTitle: an,
749
- resultSlug: on,
750
- noResults: sn,
751
- searchHints: cn,
752
- hint: rn
797
+ const nn = "_searchButton_1k9sl_1", on = "_searchIcon_1k9sl_17", an = "_searchHint_1k9sl_23", sn = "_kbd_1k9sl_27", cn = "_searchOverlay_1k9sl_42", rn = "_searchModal_1k9sl_67", ln = "_searchHeader_1k9sl_91", dn = "_searchInput_1k9sl_105", un = "_closeButton_1k9sl_123", hn = "_searchResults_1k9sl_144", mn = "_resultsList_1k9sl_152", gn = "_resultItem_1k9sl_158", _n = "_selected_1k9sl_173", pn = "_resultTitle_1k9sl_176", fn = "_resultSlug_1k9sl_180", vn = "_noResults_1k9sl_186", bn = "_searchHints_1k9sl_193", wn = "_hint_1k9sl_210", L = {
798
+ searchButton: nn,
799
+ searchIcon: on,
800
+ searchHint: an,
801
+ kbd: sn,
802
+ searchOverlay: cn,
803
+ searchModal: rn,
804
+ searchHeader: ln,
805
+ searchInput: dn,
806
+ closeButton: un,
807
+ searchResults: hn,
808
+ resultsList: mn,
809
+ resultItem: gn,
810
+ selected: _n,
811
+ resultTitle: pn,
812
+ resultSlug: fn,
813
+ noResults: vn,
814
+ searchHints: bn,
815
+ hint: wn
753
816
  };
754
- function ln({ language: t }) {
755
- const { t: n } = E(), a = U(), { config: o } = R(), [c, s] = L(!1), [i, m] = L(""), [g, _] = L([]), [u, b] = L(0), p = H(null), d = H(null), r = typeof navigator < "u" && /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform) ? "⌘K" : "Ctrl+K", w = (o.navigationData ? te(o.navigationData, t) : []).flatMap((f) => "items" in f ? f.items.map((N) => ({
756
- title: N.title,
757
- slug: N.slug
758
- })) : [{ title: f.title, slug: f.slug }]);
759
- S(() => {
760
- if (!i.trim()) {
761
- _([]), b(0);
817
+ function Nn({ language: e }) {
818
+ const { t: n } = R(), s = Q(), { config: o, loadContent: c } = O(), [a, r] = C(!1), [g, u] = C(""), [h, l] = C([]), [f, p] = C(0), [b, w] = C([]), i = K(null), d = K(null), I = typeof navigator < "u" && /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform) ? "⌘K" : "Ctrl+K";
819
+ T(() => {
820
+ (async () => {
821
+ if (o.navigationData)
822
+ try {
823
+ const M = (await gt(
824
+ o.navigationData,
825
+ e,
826
+ c
827
+ )).flatMap((A) => "items" in A ? A.items.map((H) => ({
828
+ title: H.title,
829
+ slug: H.slug
830
+ })) : [{ title: A.title, slug: A.slug }]);
831
+ w(M);
832
+ } catch ($) {
833
+ console.error("Failed to build search index:", $);
834
+ }
835
+ })();
836
+ }, [o.navigationData, e, c]), T(() => {
837
+ if (!g.trim()) {
838
+ l([]), p(0);
762
839
  return;
763
840
  }
764
- const f = i.toLowerCase(), N = w.filter(
765
- (D) => D.title.toLowerCase().includes(f) || D.slug.toLowerCase().includes(f)
841
+ const N = g.toLowerCase(), $ = b.filter(
842
+ (M) => M.title.toLowerCase().includes(N) || M.slug.toLowerCase().includes(N)
766
843
  );
767
- _(N), b(0);
768
- }, [i]), S(() => {
769
- const f = (N) => {
770
- (N.metaKey || N.ctrlKey) && N.key === "k" && (N.preventDefault(), s(!0), setTimeout(() => {
771
- var D;
772
- return (D = p.current) == null ? void 0 : D.focus();
773
- }, 100)), N.key === "Escape" && c && (s(!1), m(""));
844
+ l($), p(0);
845
+ }, [g]), T(() => {
846
+ const N = ($) => {
847
+ ($.metaKey || $.ctrlKey) && $.key === "k" && ($.preventDefault(), r(!0), setTimeout(() => {
848
+ var M;
849
+ return (M = i.current) == null ? void 0 : M.focus();
850
+ }, 100)), $.key === "Escape" && a && (r(!1), u(""));
774
851
  };
775
- return document.addEventListener("keydown", f), () => document.removeEventListener("keydown", f);
776
- }, [c]), S(() => {
777
- const f = () => {
778
- s(!0), setTimeout(() => {
779
- var D;
780
- return (D = p.current) == null ? void 0 : D.focus();
852
+ return document.addEventListener("keydown", N), () => document.removeEventListener("keydown", N);
853
+ }, [a]), T(() => {
854
+ const N = () => {
855
+ r(!0), setTimeout(() => {
856
+ var M;
857
+ return (M = i.current) == null ? void 0 : M.focus();
781
858
  }, 100);
782
- }, N = () => {
783
- s(!1), m("");
859
+ }, $ = () => {
860
+ r(!1), u("");
784
861
  };
785
- return window.addEventListener("blog:open-search", f), window.addEventListener("blog:close-search", N), () => {
786
- window.removeEventListener("blog:open-search", f), window.removeEventListener("blog:close-search", N);
862
+ return window.addEventListener("blog:open-search", N), window.addEventListener("blog:close-search", $), () => {
863
+ window.removeEventListener("blog:open-search", N), window.removeEventListener("blog:close-search", $);
787
864
  };
788
865
  }, []);
789
- const x = (f) => {
790
- f.key === "ArrowDown" ? (f.preventDefault(), b((N) => Math.min(N + 1, g.length - 1))) : f.key === "ArrowUp" ? (f.preventDefault(), b((N) => Math.max(N - 1, 0))) : f.key === "Enter" && g[u] && (f.preventDefault(), C(g[u].slug));
866
+ const P = (N) => {
867
+ N.key === "ArrowDown" ? (N.preventDefault(), p(($) => Math.min($ + 1, h.length - 1))) : N.key === "ArrowUp" ? (N.preventDefault(), p(($) => Math.max($ - 1, 0))) : N.key === "Enter" && h[f] && (N.preventDefault(), W(h[f].slug));
791
868
  };
792
- S(() => {
793
- const f = (N) => {
794
- d.current && !d.current.contains(N.target) && (s(!1), m(""));
869
+ T(() => {
870
+ const N = ($) => {
871
+ d.current && !d.current.contains($.target) && (r(!1), u(""));
795
872
  };
796
- return c && document.addEventListener("mousedown", f), () => document.removeEventListener("mousedown", f);
797
- }, [c]);
798
- const C = (f) => {
799
- const N = o.basePath || "";
800
- a(`${N}/${t}/${f}`), s(!1), m("");
873
+ return a && document.addEventListener("mousedown", N), () => document.removeEventListener("mousedown", N);
874
+ }, [a]);
875
+ const W = (N) => {
876
+ const $ = o.basePath || "";
877
+ s(`${$}/${e}/${N}`), r(!1), u("");
801
878
  };
802
- return /* @__PURE__ */ h(z, { children: [
803
- /* @__PURE__ */ h(
879
+ return /* @__PURE__ */ m(G, { children: [
880
+ /* @__PURE__ */ m(
804
881
  "button",
805
882
  {
806
883
  type: "button",
807
- className: T.searchButton,
884
+ className: L.searchButton,
808
885
  onClick: () => {
809
- s(!0), setTimeout(() => {
810
- var f;
811
- return (f = p.current) == null ? void 0 : f.focus();
886
+ r(!0), setTimeout(() => {
887
+ var N;
888
+ return (N = i.current) == null ? void 0 : N.focus();
812
889
  }, 100);
813
890
  },
814
891
  "aria-label": n("ui.search"),
815
892
  children: [
816
- /* @__PURE__ */ e(me, { className: T.searchIcon }),
817
- /* @__PURE__ */ e("span", { className: T.searchHint, children: n("ui.search") }),
818
- /* @__PURE__ */ e("kbd", { className: T.kbd, children: r })
893
+ /* @__PURE__ */ t(xt, { className: L.searchIcon }),
894
+ /* @__PURE__ */ t("span", { className: L.searchHint, children: n("ui.search") }),
895
+ /* @__PURE__ */ t("kbd", { className: L.kbd, children: I })
819
896
  ]
820
897
  }
821
898
  ),
822
- c && $e(
823
- /* @__PURE__ */ e(
899
+ a && Bt(
900
+ /* @__PURE__ */ t(
824
901
  "div",
825
902
  {
826
- className: T.searchOverlay,
903
+ className: L.searchOverlay,
827
904
  onClick: () => {
828
- s(!1), m("");
905
+ r(!1), u("");
829
906
  },
830
- children: /* @__PURE__ */ h(
907
+ children: /* @__PURE__ */ m(
831
908
  "div",
832
909
  {
833
- className: T.searchModal,
910
+ className: L.searchModal,
834
911
  ref: d,
835
- onClick: (f) => f.stopPropagation(),
912
+ onClick: (N) => N.stopPropagation(),
836
913
  children: [
837
- /* @__PURE__ */ h("div", { className: T.searchHeader, children: [
838
- /* @__PURE__ */ e(me, { className: T.searchIcon }),
839
- /* @__PURE__ */ e(
914
+ /* @__PURE__ */ m("div", { className: L.searchHeader, children: [
915
+ /* @__PURE__ */ t(xt, { className: L.searchIcon }),
916
+ /* @__PURE__ */ t(
840
917
  "input",
841
918
  {
842
- ref: p,
919
+ ref: i,
843
920
  type: "text",
844
- className: T.searchInput,
921
+ className: L.searchInput,
845
922
  placeholder: n("ui.searchPlaceholder"),
846
- value: i,
847
- onChange: (f) => m(f.target.value),
848
- onKeyDown: x
923
+ value: g,
924
+ onChange: (N) => u(N.target.value),
925
+ onKeyDown: P
849
926
  }
850
927
  ),
851
- /* @__PURE__ */ e(
928
+ /* @__PURE__ */ t(
852
929
  "button",
853
930
  {
854
931
  type: "button",
855
- className: T.closeButton,
932
+ className: L.closeButton,
856
933
  onClick: () => {
857
- s(!1), m("");
934
+ r(!1), u("");
858
935
  },
859
936
  "aria-label": "Close search",
860
- children: /* @__PURE__ */ e(re, {})
937
+ children: /* @__PURE__ */ t(ht, {})
861
938
  }
862
939
  )
863
940
  ] }),
864
- i && /* @__PURE__ */ e("div", { className: T.searchResults, children: g.length === 0 ? /* @__PURE__ */ e("div", { className: T.noResults, children: n("ui.noSearchResults") }) : /* @__PURE__ */ e("ul", { className: T.resultsList, children: g.map((f, N) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ h(
941
+ g && /* @__PURE__ */ t("div", { className: L.searchResults, children: h.length === 0 ? /* @__PURE__ */ t("div", { className: L.noResults, children: n("ui.noSearchResults") }) : /* @__PURE__ */ t("ul", { className: L.resultsList, children: h.map((N, $) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ m(
865
942
  "button",
866
943
  {
867
944
  type: "button",
868
- className: `${T.resultItem} ${N === u ? T.selected : ""}`,
869
- onClick: () => C(f.slug),
870
- onMouseEnter: () => b(N),
945
+ className: `${L.resultItem} ${$ === f ? L.selected : ""}`,
946
+ onClick: () => W(N.slug),
947
+ onMouseEnter: () => p($),
871
948
  children: [
872
- /* @__PURE__ */ e("div", { className: T.resultTitle, children: f.title }),
873
- /* @__PURE__ */ h("div", { className: T.resultSlug, children: [
949
+ /* @__PURE__ */ t("div", { className: L.resultTitle, children: N.title }),
950
+ /* @__PURE__ */ m("div", { className: L.resultSlug, children: [
874
951
  "/",
875
- f.slug
952
+ N.slug
876
953
  ] })
877
954
  ]
878
955
  }
879
- ) }, f.slug)) }) }),
880
- !i && /* @__PURE__ */ h("div", { className: T.searchHints, children: [
881
- /* @__PURE__ */ h("div", { className: T.hint, children: [
882
- /* @__PURE__ */ e("kbd", { children: "↑" }),
883
- /* @__PURE__ */ e("kbd", { children: "↓" }),
884
- /* @__PURE__ */ e("span", { children: n("ui.searchNavigate") })
956
+ ) }, N.slug)) }) }),
957
+ !g && /* @__PURE__ */ m("div", { className: L.searchHints, children: [
958
+ /* @__PURE__ */ m("div", { className: L.hint, children: [
959
+ /* @__PURE__ */ t("kbd", { children: "↑" }),
960
+ /* @__PURE__ */ t("kbd", { children: "↓" }),
961
+ /* @__PURE__ */ t("span", { children: n("ui.searchNavigate") })
885
962
  ] }),
886
- /* @__PURE__ */ h("div", { className: T.hint, children: [
887
- /* @__PURE__ */ e("kbd", { children: "↵" }),
888
- /* @__PURE__ */ e("span", { children: n("ui.searchSelect") })
963
+ /* @__PURE__ */ m("div", { className: L.hint, children: [
964
+ /* @__PURE__ */ t("kbd", { children: "↵" }),
965
+ /* @__PURE__ */ t("span", { children: n("ui.searchSelect") })
889
966
  ] }),
890
- /* @__PURE__ */ h("div", { className: T.hint, children: [
891
- /* @__PURE__ */ e("kbd", { children: "esc" }),
892
- /* @__PURE__ */ e("span", { children: n("ui.searchClose") })
967
+ /* @__PURE__ */ m("div", { className: L.hint, children: [
968
+ /* @__PURE__ */ t("kbd", { children: "esc" }),
969
+ /* @__PURE__ */ t("span", { children: n("ui.searchClose") })
893
970
  ] })
894
971
  ] })
895
972
  ]
@@ -901,542 +978,544 @@ function ln({ language: t }) {
901
978
  )
902
979
  ] });
903
980
  }
904
- const dn = "_header_jrobc_1", un = "_container_jrobc_24", hn = "_content_jrobc_36", gn = "_leftSection_jrobc_43", mn = "_mobileMenuButton_jrobc_49", _n = "_burgerIcon_jrobc_87", pn = "_logo_jrobc_92", fn = "_nav_jrobc_98", vn = "_navLink_jrobc_109", bn = "_externalIcon_jrobc_135", wn = "_supportDropdown_jrobc_141", Nn = "_themeDropdown_jrobc_145", $n = "_themeButton_jrobc_149", kn = "_themeIcon_jrobc_171", xn = "_supportButton_jrobc_177", Cn = "_caretIcon_jrobc_198", In = "_dropdownMenu_jrobc_208", yn = "_dropdownItem_jrobc_221", Ln = "_dropdownIcon_jrobc_244", k = {
905
- header: dn,
906
- container: un,
907
- content: hn,
908
- leftSection: gn,
909
- mobileMenuButton: mn,
910
- burgerIcon: _n,
911
- logo: pn,
912
- nav: fn,
913
- navLink: vn,
914
- externalIcon: bn,
915
- supportDropdown: wn,
916
- themeDropdown: Nn,
917
- themeButton: $n,
918
- themeIcon: kn,
919
- supportButton: xn,
920
- caretIcon: Cn,
921
- dropdownMenu: In,
922
- dropdownItem: yn,
923
- dropdownIcon: Ln
981
+ const $n = "_header_jrobc_1", kn = "_container_jrobc_24", xn = "_content_jrobc_36", In = "_leftSection_jrobc_43", Cn = "_mobileMenuButton_jrobc_49", yn = "_burgerIcon_jrobc_87", Sn = "_logo_jrobc_92", Ln = "_nav_jrobc_98", Tn = "_navLink_jrobc_109", Pn = "_externalIcon_jrobc_135", Dn = "_supportDropdown_jrobc_141", Mn = "_themeDropdown_jrobc_145", Bn = "_themeButton_jrobc_149", En = "_themeIcon_jrobc_171", Rn = "_supportButton_jrobc_177", On = "_caretIcon_jrobc_198", jn = "_dropdownMenu_jrobc_208", Wn = "_dropdownItem_jrobc_221", An = "_dropdownIcon_jrobc_244", x = {
982
+ header: $n,
983
+ container: kn,
984
+ content: xn,
985
+ leftSection: In,
986
+ mobileMenuButton: Cn,
987
+ burgerIcon: yn,
988
+ logo: Sn,
989
+ nav: Ln,
990
+ navLink: Tn,
991
+ externalIcon: Pn,
992
+ supportDropdown: Dn,
993
+ themeDropdown: Mn,
994
+ themeButton: Bn,
995
+ themeIcon: En,
996
+ supportButton: Rn,
997
+ caretIcon: On,
998
+ dropdownMenu: jn,
999
+ dropdownItem: Wn,
1000
+ dropdownIcon: An
924
1001
  };
925
- function Tn({ onMobileMenuToggle: t }) {
926
- const { t: n, i18n: a } = E(), { config: o } = R(), c = o.header ?? {}, s = c.navLinks ?? [], i = c.dropdownItems ?? [], [m, g] = L(!1), [_, u] = L(!1), { theme: b, setTheme: p } = Ce(), d = H(null), l = H(null);
927
- return S(() => {
928
- const r = (w) => {
929
- d.current && !d.current.contains(w.target) && g(!1), l.current && !l.current.contains(w.target) && u(!1);
1002
+ function Hn({ onMobileMenuToggle: e }) {
1003
+ const { t: n, i18n: s } = R(), { config: o } = O(), c = o.header ?? {}, a = c.navLinks ?? [], r = c.dropdownItems ?? [], [g, u] = C(!1), [h, l] = C(!1), { theme: f, setTheme: p } = mt(), b = K(null), w = K(null);
1004
+ return T(() => {
1005
+ const i = (d) => {
1006
+ b.current && !b.current.contains(d.target) && u(!1), w.current && !w.current.contains(d.target) && l(!1);
930
1007
  };
931
- return document.addEventListener("mousedown", r), () => document.removeEventListener("mousedown", r);
932
- }, []), /* @__PURE__ */ e("header", { className: k.header, children: /* @__PURE__ */ e("div", { className: k.container, children: /* @__PURE__ */ h("div", { className: k.content, children: [
933
- /* @__PURE__ */ h("div", { className: k.leftSection, children: [
934
- /* @__PURE__ */ e(
1008
+ return document.addEventListener("mousedown", i), () => document.removeEventListener("mousedown", i);
1009
+ }, []), /* @__PURE__ */ t("header", { className: x.header, children: /* @__PURE__ */ t("div", { className: x.container, children: /* @__PURE__ */ m("div", { className: x.content, children: [
1010
+ /* @__PURE__ */ m("div", { className: x.leftSection, children: [
1011
+ /* @__PURE__ */ t(
935
1012
  "button",
936
1013
  {
937
1014
  type: "button",
938
- className: k.mobileMenuButton,
939
- onClick: t,
1015
+ className: x.mobileMenuButton,
1016
+ onClick: e,
940
1017
  "aria-label": "Open menu",
941
- children: /* @__PURE__ */ e(je, { className: k.burgerIcon })
1018
+ children: /* @__PURE__ */ t(Xt, { className: x.burgerIcon })
942
1019
  }
943
1020
  ),
944
- /* @__PURE__ */ e("div", { className: k.logo })
1021
+ /* @__PURE__ */ t("div", { className: x.logo })
945
1022
  ] }),
946
- /* @__PURE__ */ h("nav", { className: k.nav, children: [
947
- /* @__PURE__ */ e(ln, { language: a.language }),
948
- /* @__PURE__ */ h("div", { className: k.themeDropdown, ref: l, children: [
949
- /* @__PURE__ */ h(
1023
+ /* @__PURE__ */ m("nav", { className: x.nav, children: [
1024
+ /* @__PURE__ */ t(Nn, { language: s.language }),
1025
+ /* @__PURE__ */ m("div", { className: x.themeDropdown, ref: w, children: [
1026
+ /* @__PURE__ */ m(
950
1027
  "button",
951
1028
  {
952
1029
  type: "button",
953
- className: k.themeButton,
954
- onClick: () => u(!_),
955
- "aria-expanded": _,
1030
+ className: x.themeButton,
1031
+ onClick: () => l(!h),
1032
+ "aria-expanded": h,
956
1033
  "aria-haspopup": "true",
957
1034
  "aria-label": n("ui.theme"),
958
1035
  children: [
959
- b === "light" && /* @__PURE__ */ e(_e, { className: k.themeIcon }),
960
- b === "dark" && /* @__PURE__ */ e(pe, { className: k.themeIcon }),
961
- b === "system" && /* @__PURE__ */ e(fe, { className: k.themeIcon }),
962
- /* @__PURE__ */ e(se, { className: k.caretIcon })
1036
+ f === "light" && /* @__PURE__ */ t(It, { className: x.themeIcon }),
1037
+ f === "dark" && /* @__PURE__ */ t(Ct, { className: x.themeIcon }),
1038
+ f === "system" && /* @__PURE__ */ t(yt, { className: x.themeIcon }),
1039
+ /* @__PURE__ */ t(it, { className: x.caretIcon })
963
1040
  ]
964
1041
  }
965
1042
  ),
966
- _ && /* @__PURE__ */ h("div", { className: k.dropdownMenu, children: [
967
- /* @__PURE__ */ h(
1043
+ h && /* @__PURE__ */ m("div", { className: x.dropdownMenu, children: [
1044
+ /* @__PURE__ */ m(
968
1045
  "button",
969
1046
  {
970
1047
  type: "button",
971
1048
  onClick: () => {
972
- p("light"), u(!1);
1049
+ p("light"), l(!1);
973
1050
  },
974
- className: k.dropdownItem,
1051
+ className: x.dropdownItem,
975
1052
  children: [
976
- /* @__PURE__ */ e(_e, { className: k.dropdownIcon }),
1053
+ /* @__PURE__ */ t(It, { className: x.dropdownIcon }),
977
1054
  n("ui.light")
978
1055
  ]
979
1056
  }
980
1057
  ),
981
- /* @__PURE__ */ h(
1058
+ /* @__PURE__ */ m(
982
1059
  "button",
983
1060
  {
984
1061
  type: "button",
985
1062
  onClick: () => {
986
- p("dark"), u(!1);
1063
+ p("dark"), l(!1);
987
1064
  },
988
- className: k.dropdownItem,
1065
+ className: x.dropdownItem,
989
1066
  children: [
990
- /* @__PURE__ */ e(pe, { className: k.dropdownIcon }),
1067
+ /* @__PURE__ */ t(Ct, { className: x.dropdownIcon }),
991
1068
  n("ui.dark")
992
1069
  ]
993
1070
  }
994
1071
  ),
995
- /* @__PURE__ */ h(
1072
+ /* @__PURE__ */ m(
996
1073
  "button",
997
1074
  {
998
1075
  type: "button",
999
1076
  onClick: () => {
1000
- p("system"), u(!1);
1077
+ p("system"), l(!1);
1001
1078
  },
1002
- className: k.dropdownItem,
1079
+ className: x.dropdownItem,
1003
1080
  children: [
1004
- /* @__PURE__ */ e(fe, { className: k.dropdownIcon }),
1081
+ /* @__PURE__ */ t(yt, { className: x.dropdownIcon }),
1005
1082
  n("ui.system")
1006
1083
  ]
1007
1084
  }
1008
1085
  )
1009
1086
  ] })
1010
1087
  ] }),
1011
- i.length > 0 && /* @__PURE__ */ h("div", { className: k.supportDropdown, ref: d, children: [
1012
- /* @__PURE__ */ h(
1088
+ r.length > 0 && /* @__PURE__ */ m("div", { className: x.supportDropdown, ref: b, children: [
1089
+ /* @__PURE__ */ m(
1013
1090
  "button",
1014
1091
  {
1015
1092
  type: "button",
1016
- className: k.supportButton,
1017
- onClick: () => g(!m),
1018
- "aria-expanded": m,
1093
+ className: x.supportButton,
1094
+ onClick: () => u(!g),
1095
+ "aria-expanded": g,
1019
1096
  "aria-haspopup": "true",
1020
1097
  children: [
1021
1098
  n("ui.support"),
1022
- /* @__PURE__ */ e(se, { className: k.caretIcon })
1099
+ /* @__PURE__ */ t(it, { className: x.caretIcon })
1023
1100
  ]
1024
1101
  }
1025
1102
  ),
1026
- m && /* @__PURE__ */ e("div", { className: k.dropdownMenu, children: i.map((r, w) => {
1027
- const x = r.target ?? (r.url.startsWith("http") ? "_blank" : "_self"), C = r.rel ?? (x === "_blank" ? "noopener noreferrer" : void 0), f = r.icon;
1028
- return /* @__PURE__ */ h(
1103
+ g && /* @__PURE__ */ t("div", { className: x.dropdownMenu, children: r.map((i, d) => {
1104
+ const v = i.target ?? (i.url.startsWith("http") ? "_blank" : "_self"), I = i.rel ?? (v === "_blank" ? "noopener noreferrer" : void 0), P = i.icon;
1105
+ return /* @__PURE__ */ m(
1029
1106
  "a",
1030
1107
  {
1031
- href: r.url,
1032
- target: x,
1033
- rel: C,
1034
- className: k.dropdownItem,
1108
+ href: i.url,
1109
+ target: v,
1110
+ rel: I,
1111
+ className: x.dropdownItem,
1035
1112
  children: [
1036
- f && /* @__PURE__ */ e(f, { className: k.dropdownIcon }),
1037
- r.label
1113
+ P && /* @__PURE__ */ t(P, { className: x.dropdownIcon }),
1114
+ i.label
1038
1115
  ]
1039
1116
  },
1040
- w
1117
+ d
1041
1118
  );
1042
1119
  }) })
1043
1120
  ] }),
1044
- s.map((r, w) => {
1045
- const x = r.target ?? (typeof r.url == "string" && r.url.startsWith("http") ? "_blank" : "_self"), C = r.rel ?? (x === "_blank" ? "noopener noreferrer" : void 0), f = r.icon;
1046
- return /* @__PURE__ */ h(
1121
+ a.map((i, d) => {
1122
+ const v = i.target ?? (typeof i.url == "string" && i.url.startsWith("http") ? "_blank" : "_self"), I = i.rel ?? (v === "_blank" ? "noopener noreferrer" : void 0), P = i.icon;
1123
+ return /* @__PURE__ */ m(
1047
1124
  "a",
1048
1125
  {
1049
- href: r.url,
1050
- target: x,
1051
- rel: C,
1052
- className: r.className ?? k.navLink,
1126
+ href: i.url,
1127
+ target: v,
1128
+ rel: I,
1129
+ className: i.className ?? x.navLink,
1053
1130
  children: [
1054
- r.label,
1055
- f && /* @__PURE__ */ e(f, { className: k.externalIcon })
1131
+ i.label,
1132
+ P && /* @__PURE__ */ t(P, { className: x.externalIcon })
1056
1133
  ]
1057
1134
  },
1058
- w
1135
+ d
1059
1136
  );
1060
1137
  })
1061
1138
  ] })
1062
1139
  ] }) }) });
1063
1140
  }
1064
- const X = (t) => "items" in t;
1065
- function le({
1066
- styles: t,
1141
+ const Dt = (e) => "items" in e;
1142
+ function _t({
1143
+ styles: e,
1067
1144
  onLanguageChange: n
1068
1145
  }) {
1069
- const { i18n: a } = E(), o = G(), c = U(), { config: s } = R(), [i, m] = L(!1), g = H(null), _ = a.language, u = (p) => {
1070
- const d = s.basePath || "";
1071
- let l = o.pathname;
1072
- d && l.startsWith(d) && (l = l.slice(d.length));
1073
- const r = l.split("/").filter(Boolean), w = r[0];
1074
- let x = "";
1075
- s.supportedLanguages.includes(w) ? (r[0] = p, x = `${d}/${r.join("/")}`) : x = `${d}/${p}${l}`;
1076
- const C = x + o.search + o.hash;
1077
- a.changeLanguage(p), c(C), m(!1), n == null || n();
1146
+ const { i18n: s } = R(), o = V(), c = Q(), { config: a } = O(), [r, g] = C(!1), u = K(null), h = s.language, l = (p) => {
1147
+ const b = a.basePath || "";
1148
+ let w = o.pathname;
1149
+ b && w.startsWith(b) && (w = w.slice(b.length));
1150
+ const i = w.split("/").filter(Boolean), d = i[0];
1151
+ let v = "";
1152
+ a.supportedLanguages.includes(d) ? (i[0] = p, v = `${b}/${i.join("/")}`) : v = `${b}/${p}${w}`;
1153
+ const I = v + o.search + o.hash;
1154
+ s.changeLanguage(p), c(I), g(!1), n == null || n();
1078
1155
  };
1079
- S(() => {
1080
- const p = (d) => {
1081
- g.current && !g.current.contains(d.target) && m(!1);
1156
+ T(() => {
1157
+ const p = (b) => {
1158
+ u.current && !u.current.contains(b.target) && g(!1);
1082
1159
  };
1083
1160
  return document.addEventListener("mousedown", p), () => document.removeEventListener("mousedown", p);
1084
1161
  }, []);
1085
- const b = (p) => a.getFixedT(p)("language") || p;
1086
- return /* @__PURE__ */ h("div", { className: t.languageSelect, ref: g, children: [
1087
- /* @__PURE__ */ h(
1162
+ const f = (p) => s.getFixedT(p)("language") || p;
1163
+ return /* @__PURE__ */ m("div", { className: e.languageSelect, ref: u, children: [
1164
+ /* @__PURE__ */ m(
1088
1165
  "button",
1089
1166
  {
1090
1167
  type: "button",
1091
- className: t.languageButton,
1092
- onClick: () => m(!i),
1093
- "aria-expanded": i,
1168
+ className: e.languageButton,
1169
+ onClick: () => g(!r),
1170
+ "aria-expanded": r,
1094
1171
  "aria-haspopup": "listbox",
1095
1172
  children: [
1096
- /* @__PURE__ */ e(Ae, { className: t.icon }),
1097
- b(_),
1098
- /* @__PURE__ */ e(se, { className: t.chevron })
1173
+ /* @__PURE__ */ t(Yt, { className: e.icon }),
1174
+ f(h),
1175
+ /* @__PURE__ */ t(it, { className: e.chevron })
1099
1176
  ]
1100
1177
  }
1101
1178
  ),
1102
- i && /* @__PURE__ */ e("div", { className: t.languageDropdown, role: "listbox", children: s.supportedLanguages.map((p) => /* @__PURE__ */ e(
1179
+ r && /* @__PURE__ */ t("div", { className: e.languageDropdown, role: "listbox", children: a.supportedLanguages.map((p) => /* @__PURE__ */ t(
1103
1180
  "button",
1104
1181
  {
1105
1182
  type: "button",
1106
- className: `${t.languageOption} ${p === _ ? t.selected : ""}`,
1107
- onClick: () => u(p),
1183
+ className: `${e.languageOption} ${p === h ? e.selected : ""}`,
1184
+ onClick: () => l(p),
1108
1185
  role: "option",
1109
- "aria-selected": p === _,
1110
- children: b(p)
1186
+ "aria-selected": p === h,
1187
+ children: f(p)
1111
1188
  },
1112
1189
  p
1113
1190
  )) })
1114
1191
  ] });
1115
1192
  }
1116
- function ie({ styles: t, onLinkClick: n }) {
1117
- const { i18n: a } = E(), o = G(), { config: c } = R(), [s, i] = L(() => {
1118
- if (!c.navigationData) return {};
1119
- const d = a.language;
1120
- return te(c.navigationData, d).reduce(
1121
- (r, w, x) => {
1122
- if (X(w)) {
1123
- const C = c.navigationData[x], f = X(C) && C.defaultOpen === !0;
1124
- r[w.title] = f;
1125
- }
1126
- return r;
1127
- },
1128
- {}
1129
- );
1130
- }), m = a.language, g = c.navigationData ? te(c.navigationData, m) : [];
1131
- S(() => {
1132
- if (!c.navigationData) return;
1133
- const l = te(
1134
- c.navigationData,
1135
- m
1136
- ).reduce(
1137
- (r, w, x) => {
1138
- if (X(w)) {
1139
- const C = c.navigationData[x], f = X(C) && C.defaultOpen === !0;
1140
- r[w.title] = f;
1193
+ function pt({ styles: e, onLinkClick: n }) {
1194
+ const { i18n: s } = R(), o = V(), { config: c, loadContent: a } = O(), [r, g] = C([]), [u, h] = C({}), l = s.language;
1195
+ T(() => {
1196
+ (async () => {
1197
+ if (c.navigationData)
1198
+ try {
1199
+ const d = await gt(
1200
+ c.navigationData,
1201
+ l,
1202
+ a
1203
+ );
1204
+ g(d);
1205
+ const v = d.reduce(
1206
+ (I, P, W) => {
1207
+ if (Dt(P)) {
1208
+ const N = c.navigationData[W], $ = "items" in N && N.defaultOpen === !0;
1209
+ I[P.title] = $;
1210
+ }
1211
+ return I;
1212
+ },
1213
+ {}
1214
+ );
1215
+ h(v);
1216
+ } catch (d) {
1217
+ console.error("Failed to load navigation data:", d);
1141
1218
  }
1142
- return r;
1143
- },
1144
- {}
1145
- );
1146
- i(l);
1147
- }, [m, c.navigationData]);
1148
- const _ = (d) => {
1149
- i((l) => ({
1150
- ...l,
1151
- [d]: !l[d]
1219
+ })();
1220
+ }, [l, c.navigationData, a]);
1221
+ const f = (i) => {
1222
+ h((d) => ({
1223
+ ...d,
1224
+ [i]: !d[i]
1152
1225
  }));
1153
- }, u = (d) => {
1154
- const l = c.basePath || "";
1155
- let r = o.pathname;
1156
- l && r.startsWith(l) && (r = r.slice(l.length));
1157
- const w = r.split("/").filter(Boolean);
1158
- return w[w.length - 1] === d;
1159
- }, b = (d) => {
1160
- const l = c.basePath || "";
1161
- let r = o.pathname;
1162
- l && r.startsWith(l) && (r = r.slice(l.length));
1163
- const w = r.split("/").filter(Boolean);
1164
- return w[0] && c.supportedLanguages.includes(w[0]) ? `${l}/${w[0]}/${d}` : `${l}/${m}/${d}`;
1165
- }, p = () => {
1226
+ }, p = (i) => {
1227
+ const d = c.basePath || "";
1228
+ let v = o.pathname;
1229
+ d && v.startsWith(d) && (v = v.slice(d.length));
1230
+ const I = v.split("/").filter(Boolean);
1231
+ return I[I.length - 1] === i;
1232
+ }, b = (i) => {
1233
+ const d = c.basePath || "";
1234
+ let v = o.pathname;
1235
+ d && v.startsWith(d) && (v = v.slice(d.length));
1236
+ const I = v.split("/").filter(Boolean);
1237
+ return I[0] && c.supportedLanguages.includes(I[0]) ? `${d}/${I[0]}/${i}` : `${d}/${l}/${i}`;
1238
+ }, w = () => {
1166
1239
  n == null || n();
1167
1240
  };
1168
- return /* @__PURE__ */ e("div", { className: t.navigation, children: g.map((d) => X(d) ? /* @__PURE__ */ h("div", { className: t.section, children: [
1169
- /* @__PURE__ */ h(
1241
+ return /* @__PURE__ */ t("div", { className: e.navigation, children: r.map((i) => Dt(i) ? /* @__PURE__ */ m("div", { className: e.section, children: [
1242
+ /* @__PURE__ */ m(
1170
1243
  "button",
1171
1244
  {
1172
1245
  type: "button",
1173
- className: `${t.sectionButton} ${s[d.title] ? t.expanded : ""}`,
1174
- onClick: () => _(d.title),
1246
+ className: `${e.sectionButton} ${u[i.title] ? e.expanded : ""}`,
1247
+ onClick: () => f(i.title),
1175
1248
  children: [
1176
- d.title,
1177
- /* @__PURE__ */ e(We, { className: t.icon })
1249
+ i.title,
1250
+ /* @__PURE__ */ t(Vt, { className: e.icon })
1178
1251
  ]
1179
1252
  }
1180
1253
  ),
1181
- s[d.title] && /* @__PURE__ */ e("div", { className: t.sectionItems, children: d.items.map((l) => /* @__PURE__ */ e(
1182
- he,
1254
+ u[i.title] && /* @__PURE__ */ t("div", { className: e.sectionItems, children: i.items.map((d) => /* @__PURE__ */ t(
1255
+ $t,
1183
1256
  {
1184
- to: b(l.slug),
1185
- className: `${t.navItem} ${u(l.slug) ? t.active : ""}`,
1186
- onClick: p,
1187
- children: /* @__PURE__ */ e("div", { className: t.navItemContent, children: /* @__PURE__ */ e("span", { className: t.navItemTitle, children: l.title }) })
1257
+ to: b(d.slug),
1258
+ className: `${e.navItem} ${p(d.slug) ? e.active : ""}`,
1259
+ onClick: w,
1260
+ children: /* @__PURE__ */ t("div", { className: e.navItemContent, children: /* @__PURE__ */ t("span", { className: e.navItemTitle, children: d.title }) })
1188
1261
  },
1189
- l.slug
1262
+ d.slug
1190
1263
  )) })
1191
- ] }, d.title) : /* @__PURE__ */ e(
1192
- he,
1264
+ ] }, i.title) : /* @__PURE__ */ t(
1265
+ $t,
1193
1266
  {
1194
- to: b(d.slug),
1195
- className: `${t.navItem} ${u(d.slug) ? t.active : ""}`,
1196
- onClick: p,
1197
- children: /* @__PURE__ */ e("div", { className: t.navItemContent, children: /* @__PURE__ */ e("span", { className: t.navItemTitle, children: d.title }) })
1267
+ to: b(i.slug),
1268
+ className: `${e.navItem} ${p(i.slug) ? e.active : ""}`,
1269
+ onClick: w,
1270
+ children: /* @__PURE__ */ t("div", { className: e.navItemContent, children: /* @__PURE__ */ t("span", { className: e.navItemTitle, children: i.title }) })
1198
1271
  },
1199
- d.slug
1272
+ i.slug
1200
1273
  )) });
1201
1274
  }
1202
- function Za({
1203
- styles: t,
1275
+ function ha({
1276
+ styles: e,
1204
1277
  onLinkClick: n,
1205
- onLanguageChange: a
1278
+ onLanguageChange: s
1206
1279
  }) {
1207
- return /* @__PURE__ */ h(z, { children: [
1208
- /* @__PURE__ */ e(le, { styles: t, onLanguageChange: a }),
1209
- /* @__PURE__ */ e(ie, { styles: t, onLinkClick: n })
1280
+ return /* @__PURE__ */ m(G, { children: [
1281
+ /* @__PURE__ */ t(_t, { styles: e, onLanguageChange: s }),
1282
+ /* @__PURE__ */ t(pt, { styles: e, onLinkClick: n })
1210
1283
  ] });
1211
1284
  }
1212
- const Sn = "_backdrop_1a7pu_1", Pn = "_open_1a7pu_13", Dn = "_mobileMenu_1a7pu_18", Bn = "_header_1a7pu_37", Mn = "_brand_1a7pu_46", En = "_cloudIcon_1a7pu_53", Rn = "_title_1a7pu_62", On = "_closeButton_1a7pu_69", jn = "_closeIcon_1a7pu_101", An = "_languageSection_1a7pu_106", Wn = "_languageSelect_1a7pu_112", Hn = "_languageButton_1a7pu_117", Fn = "_icon_1a7pu_156", Un = "_chevron_1a7pu_162", Kn = "_languageDropdown_1a7pu_172", qn = "_languageOption_1a7pu_185", zn = "_selected_1a7pu_226", Gn = "_scrollArea_1a7pu_231", Qn = "_navigation_1a7pu_237", Xn = "_section_1a7pu_241", Yn = "_sectionButton_1a7pu_245", Vn = "_expanded_1a7pu_285", Jn = "_sectionItems_1a7pu_289", Zn = "_navItem_1a7pu_297", ea = "_active_1a7pu_310", ta = "_navItemContent_1a7pu_316", na = "_navItemTitle_1a7pu_322", M = {
1213
- backdrop: Sn,
1214
- open: Pn,
1215
- mobileMenu: Dn,
1216
- header: Bn,
1217
- brand: Mn,
1218
- cloudIcon: En,
1219
- title: Rn,
1220
- closeButton: On,
1221
- closeIcon: jn,
1222
- languageSection: An,
1223
- languageSelect: Wn,
1224
- languageButton: Hn,
1225
- icon: Fn,
1226
- chevron: Un,
1227
- languageDropdown: Kn,
1228
- languageOption: qn,
1229
- selected: zn,
1230
- scrollArea: Gn,
1231
- navigation: Qn,
1232
- section: Xn,
1233
- sectionButton: Yn,
1234
- expanded: Vn,
1235
- sectionItems: Jn,
1236
- navItem: Zn,
1237
- active: ea,
1238
- navItemContent: ta,
1239
- navItemTitle: na
1285
+ const Fn = "_backdrop_1a7pu_1", zn = "_open_1a7pu_13", Un = "_mobileMenu_1a7pu_18", Kn = "_header_1a7pu_37", qn = "_brand_1a7pu_46", Gn = "_cloudIcon_1a7pu_53", Qn = "_title_1a7pu_62", Xn = "_closeButton_1a7pu_69", Yn = "_closeIcon_1a7pu_101", Vn = "_languageSection_1a7pu_106", Jn = "_languageSelect_1a7pu_112", Zn = "_languageButton_1a7pu_117", to = "_icon_1a7pu_156", eo = "_chevron_1a7pu_162", no = "_languageDropdown_1a7pu_172", oo = "_languageOption_1a7pu_185", ao = "_selected_1a7pu_226", so = "_scrollArea_1a7pu_231", co = "_navigation_1a7pu_237", ro = "_section_1a7pu_241", lo = "_sectionButton_1a7pu_245", io = "_expanded_1a7pu_285", uo = "_sectionItems_1a7pu_289", ho = "_navItem_1a7pu_297", mo = "_active_1a7pu_310", go = "_navItemContent_1a7pu_316", _o = "_navItemTitle_1a7pu_322", E = {
1286
+ backdrop: Fn,
1287
+ open: zn,
1288
+ mobileMenu: Un,
1289
+ header: Kn,
1290
+ brand: qn,
1291
+ cloudIcon: Gn,
1292
+ title: Qn,
1293
+ closeButton: Xn,
1294
+ closeIcon: Yn,
1295
+ languageSection: Vn,
1296
+ languageSelect: Jn,
1297
+ languageButton: Zn,
1298
+ icon: to,
1299
+ chevron: eo,
1300
+ languageDropdown: no,
1301
+ languageOption: oo,
1302
+ selected: ao,
1303
+ scrollArea: so,
1304
+ navigation: co,
1305
+ section: ro,
1306
+ sectionButton: lo,
1307
+ expanded: io,
1308
+ sectionItems: uo,
1309
+ navItem: ho,
1310
+ active: mo,
1311
+ navItemContent: go,
1312
+ navItemTitle: _o
1240
1313
  };
1241
- function aa({ isOpen: t, onClose: n }) {
1242
- const { config: a } = R(), o = a.logo;
1243
- return S(() => (t ? document.body.style.overflow = "hidden" : document.body.style.overflow = "unset", () => {
1314
+ function po({ isOpen: e, onClose: n }) {
1315
+ const { config: s } = O(), o = s.logo;
1316
+ return T(() => (e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "unset", () => {
1244
1317
  document.body.style.overflow = "unset";
1245
- }), [t]), S(() => {
1246
- const c = (s) => {
1247
- s.key === "Escape" && t && n();
1318
+ }), [e]), T(() => {
1319
+ const c = (a) => {
1320
+ a.key === "Escape" && e && n();
1248
1321
  };
1249
1322
  return document.addEventListener("keydown", c), () => document.removeEventListener("keydown", c);
1250
- }, [t, n]), /* @__PURE__ */ h(z, { children: [
1251
- /* @__PURE__ */ e(
1323
+ }, [e, n]), /* @__PURE__ */ m(G, { children: [
1324
+ /* @__PURE__ */ t(
1252
1325
  "div",
1253
1326
  {
1254
- className: `${M.backdrop} ${t ? M.open : ""}`,
1327
+ className: `${E.backdrop} ${e ? E.open : ""}`,
1255
1328
  onClick: n
1256
1329
  }
1257
1330
  ),
1258
- /* @__PURE__ */ h("div", { className: `${M.mobileMenu} ${t ? M.open : ""}`, children: [
1259
- /* @__PURE__ */ h("div", { className: M.header, children: [
1260
- /* @__PURE__ */ h("div", { className: M.brand, children: [
1261
- o && /* @__PURE__ */ e(o, { className: M.cloudIcon }),
1262
- /* @__PURE__ */ e("h1", { className: M.title, children: a.title })
1331
+ /* @__PURE__ */ m("div", { className: `${E.mobileMenu} ${e ? E.open : ""}`, children: [
1332
+ /* @__PURE__ */ m("div", { className: E.header, children: [
1333
+ /* @__PURE__ */ m("div", { className: E.brand, children: [
1334
+ o && /* @__PURE__ */ t(o, { className: E.cloudIcon }),
1335
+ /* @__PURE__ */ t("h1", { className: E.title, children: s.title })
1263
1336
  ] }),
1264
- /* @__PURE__ */ e(
1337
+ /* @__PURE__ */ t(
1265
1338
  "button",
1266
1339
  {
1267
1340
  type: "button",
1268
- className: M.closeButton,
1341
+ className: E.closeButton,
1269
1342
  onClick: n,
1270
1343
  "aria-label": "Close menu",
1271
- children: /* @__PURE__ */ e(re, { className: M.closeIcon })
1344
+ children: /* @__PURE__ */ t(ht, { className: E.closeIcon })
1272
1345
  }
1273
1346
  )
1274
1347
  ] }),
1275
- /* @__PURE__ */ e("div", { className: M.languageSection, children: /* @__PURE__ */ e(le, { styles: M, onLanguageChange: n }) }),
1276
- /* @__PURE__ */ e("div", { className: M.scrollArea, children: /* @__PURE__ */ e(ie, { styles: M, onLinkClick: n }) })
1348
+ /* @__PURE__ */ t("div", { className: E.languageSection, children: /* @__PURE__ */ t(_t, { styles: E, onLanguageChange: n }) }),
1349
+ /* @__PURE__ */ t("div", { className: E.scrollArea, children: /* @__PURE__ */ t(pt, { styles: E, onLinkClick: n }) })
1277
1350
  ] })
1278
1351
  ] });
1279
1352
  }
1280
- const oa = "_sidebar_1tdxt_1", sa = "_header_1tdxt_17", ca = "_brand_1tdxt_29", ra = "_cloudIcon_1tdxt_35", la = "_title_1tdxt_44", ia = "_languageSelect_1tdxt_55", da = "_languageButton_1tdxt_61", ua = "_icon_1tdxt_99", ha = "_chevron_1tdxt_104", ga = "_languageDropdown_1tdxt_114", ma = "_languageOption_1tdxt_128", _a = "_selected_1tdxt_147", pa = "_scrollArea_1tdxt_152", fa = "_navigation_1tdxt_158", va = "_section_1tdxt_164", ba = "_sectionButton_1tdxt_170", wa = "_expanded_1tdxt_213", Na = "_sectionItems_1tdxt_217", $a = "_navItem_1tdxt_225", ka = "_active_1tdxt_238", xa = "_navItemContent_1tdxt_243", W = {
1281
- sidebar: oa,
1282
- header: sa,
1283
- brand: ca,
1284
- cloudIcon: ra,
1285
- title: la,
1286
- languageSelect: ia,
1287
- languageButton: da,
1288
- icon: ua,
1289
- chevron: ha,
1290
- languageDropdown: ga,
1291
- languageOption: ma,
1292
- selected: _a,
1293
- scrollArea: pa,
1294
- navigation: fa,
1295
- section: va,
1296
- sectionButton: ba,
1297
- expanded: wa,
1298
- sectionItems: Na,
1299
- navItem: $a,
1300
- active: ka,
1301
- navItemContent: xa
1353
+ const fo = "_sidebar_1tdxt_1", vo = "_header_1tdxt_17", bo = "_brand_1tdxt_29", wo = "_cloudIcon_1tdxt_35", No = "_title_1tdxt_44", $o = "_languageSelect_1tdxt_55", ko = "_languageButton_1tdxt_61", xo = "_icon_1tdxt_99", Io = "_chevron_1tdxt_104", Co = "_languageDropdown_1tdxt_114", yo = "_languageOption_1tdxt_128", So = "_selected_1tdxt_147", Lo = "_scrollArea_1tdxt_152", To = "_navigation_1tdxt_158", Po = "_section_1tdxt_164", Do = "_sectionButton_1tdxt_170", Mo = "_expanded_1tdxt_213", Bo = "_sectionItems_1tdxt_217", Eo = "_navItem_1tdxt_225", Ro = "_active_1tdxt_238", Oo = "_navItemContent_1tdxt_243", U = {
1354
+ sidebar: fo,
1355
+ header: vo,
1356
+ brand: bo,
1357
+ cloudIcon: wo,
1358
+ title: No,
1359
+ languageSelect: $o,
1360
+ languageButton: ko,
1361
+ icon: xo,
1362
+ chevron: Io,
1363
+ languageDropdown: Co,
1364
+ languageOption: yo,
1365
+ selected: So,
1366
+ scrollArea: Lo,
1367
+ navigation: To,
1368
+ section: Po,
1369
+ sectionButton: Do,
1370
+ expanded: Mo,
1371
+ sectionItems: Bo,
1372
+ navItem: Eo,
1373
+ active: Ro,
1374
+ navItemContent: Oo
1302
1375
  };
1303
- function Ca() {
1304
- const { config: t } = R(), n = t.logo, a = t.supportedLanguages.length > 1;
1305
- return /* @__PURE__ */ h("div", { className: W.sidebar, children: [
1306
- /* @__PURE__ */ h("div", { className: W.header, children: [
1307
- /* @__PURE__ */ h("div", { className: W.brand, children: [
1308
- n && /* @__PURE__ */ e(n, { className: W.cloudIcon }),
1309
- /* @__PURE__ */ e("div", { className: W.title, children: t.title })
1376
+ function jo() {
1377
+ const { config: e } = O(), n = e.logo, s = e.supportedLanguages.length > 1;
1378
+ return /* @__PURE__ */ m("div", { className: U.sidebar, children: [
1379
+ /* @__PURE__ */ m("div", { className: U.header, children: [
1380
+ /* @__PURE__ */ m("div", { className: U.brand, children: [
1381
+ n && /* @__PURE__ */ t(n, { className: U.cloudIcon }),
1382
+ /* @__PURE__ */ t("div", { className: U.title, children: e.title })
1310
1383
  ] }),
1311
- a && /* @__PURE__ */ e(le, { styles: W })
1384
+ s && /* @__PURE__ */ t(_t, { styles: U })
1312
1385
  ] }),
1313
- /* @__PURE__ */ e("div", { className: W.scrollArea, children: /* @__PURE__ */ e(ie, { styles: W }) })
1386
+ /* @__PURE__ */ t("div", { className: U.scrollArea, children: /* @__PURE__ */ t(pt, { styles: U }) })
1314
1387
  ] });
1315
1388
  }
1316
- const Ia = "_app_wf6ni_1", ya = "_layout_wf6ni_9", La = "_main_wf6ni_15", Ta = "_fullWidth_wf6ni_21", Sa = "_contentWrapper_wf6ni_30", Y = {
1317
- app: Ia,
1318
- layout: ya,
1319
- main: La,
1320
- fullWidth: Ta,
1321
- contentWrapper: Sa
1389
+ const Wo = "_app_wf6ni_1", Ao = "_layout_wf6ni_9", Ho = "_main_wf6ni_15", Fo = "_fullWidth_wf6ni_21", zo = "_contentWrapper_wf6ni_30", tt = {
1390
+ app: Wo,
1391
+ layout: Ao,
1392
+ main: Ho,
1393
+ fullWidth: Fo,
1394
+ contentWrapper: zo
1322
1395
  };
1323
- function Pa({ children: t }) {
1324
- const { language: n } = ce(), { i18n: a } = E(), { config: o } = R(), [c, s] = L(!1);
1325
- S(() => {
1326
- n && o.supportedLanguages.includes(n) && a.changeLanguage(n);
1327
- }, [n, a, o.supportedLanguages]);
1328
- const i = () => {
1329
- s(!c);
1330
- }, m = () => {
1331
- s(!1);
1396
+ function Uo({ children: e }) {
1397
+ const { language: n } = ut(), { i18n: s } = R(), { config: o } = O(), [c, a] = C(!1);
1398
+ T(() => {
1399
+ n && o.supportedLanguages.includes(n) && s.changeLanguage(n);
1400
+ }, [n, s, o.supportedLanguages]);
1401
+ const r = () => {
1402
+ a(!c);
1403
+ }, g = () => {
1404
+ a(!1);
1332
1405
  };
1333
1406
  if (!n || !o.supportedLanguages.includes(n))
1334
- return /* @__PURE__ */ e(Ne, { to: "/en/welcome", replace: !0 });
1335
- const g = !!o.header, _ = o.showSideMenu !== !1, u = o.contentMaxWidth ? { width: "100%", maxWidth: o.contentMaxWidth } : void 0;
1336
- return /* @__PURE__ */ h("div", { className: Y.app, children: [
1337
- g && /* @__PURE__ */ e(Tn, { onMobileMenuToggle: i }),
1338
- /* @__PURE__ */ e(aa, { isOpen: c, onClose: m }),
1339
- /* @__PURE__ */ h("div", { className: Y.layout, children: [
1340
- _ && /* @__PURE__ */ e(Ca, {}),
1341
- /* @__PURE__ */ e(
1407
+ return /* @__PURE__ */ t(Mt, { to: "/en/welcome", replace: !0 });
1408
+ const u = !!o.header, h = o.showSideMenu !== !1, l = o.contentMaxWidth ? { width: "100%", maxWidth: o.contentMaxWidth } : void 0;
1409
+ return /* @__PURE__ */ m("div", { className: tt.app, children: [
1410
+ u && /* @__PURE__ */ t(Hn, { onMobileMenuToggle: r }),
1411
+ /* @__PURE__ */ t(po, { isOpen: c, onClose: g }),
1412
+ /* @__PURE__ */ m("div", { className: tt.layout, children: [
1413
+ h && /* @__PURE__ */ t(jo, {}),
1414
+ /* @__PURE__ */ t(
1342
1415
  "main",
1343
1416
  {
1344
- className: `${Y.main} ${_ ? "" : Y.fullWidth}`,
1345
- children: /* @__PURE__ */ e("div", { className: Y.contentWrapper, style: u, children: t })
1417
+ className: `${tt.main} ${h ? "" : tt.fullWidth}`,
1418
+ children: /* @__PURE__ */ t("div", { className: tt.contentWrapper, style: l, children: e })
1346
1419
  }
1347
1420
  )
1348
1421
  ] })
1349
1422
  ] });
1350
1423
  }
1351
- const Da = "_homePage_1lc5u_1", Ba = "_header_1lc5u_20", Ma = "_title_1lc5u_24", Ea = "_articlesList_1lc5u_31", Ra = "_articleCard_1lc5u_37", Oa = "_articleTitle_1lc5u_56", ja = "_articleDescription_1lc5u_63", Aa = "_loading_1lc5u_70", Wa = "_empty_1lc5u_71", A = {
1352
- homePage: Da,
1353
- header: Ba,
1354
- title: Ma,
1355
- articlesList: Ea,
1356
- articleCard: Ra,
1357
- articleTitle: Oa,
1358
- articleDescription: ja,
1359
- loading: Aa,
1360
- empty: Wa
1424
+ const Ko = "_homePage_1lc5u_1", qo = "_header_1lc5u_20", Go = "_title_1lc5u_24", Qo = "_articlesList_1lc5u_31", Xo = "_articleCard_1lc5u_37", Yo = "_articleTitle_1lc5u_56", Vo = "_articleDescription_1lc5u_63", Jo = "_loading_1lc5u_70", Zo = "_empty_1lc5u_71", z = {
1425
+ homePage: Ko,
1426
+ header: qo,
1427
+ title: Go,
1428
+ articlesList: Qo,
1429
+ articleCard: Xo,
1430
+ articleTitle: Yo,
1431
+ articleDescription: Vo,
1432
+ loading: Jo,
1433
+ empty: Zo
1361
1434
  };
1362
- function Ha() {
1363
- const { i18n: t, t: n } = E(), { config: a, loadContent: o } = R(), c = U(), [s, i] = L([]), [m, g] = L(!0);
1364
- S(() => {
1435
+ function ta() {
1436
+ const { i18n: e, t: n } = R(), { config: s, loadContent: o } = O(), c = Q(), [a, r] = C([]), [g, u] = C(!0);
1437
+ T(() => {
1365
1438
  (async () => {
1366
1439
  try {
1367
- const b = a.navigationData || [], p = [];
1368
- for (const l of b)
1369
- if ("items" in l)
1370
- for (const r of l.items)
1371
- p.push({
1372
- slug: r.slug,
1373
- title: r.title
1440
+ const f = s.navigationData || [];
1441
+ if (f.length === 0) return;
1442
+ const { getNavigationData: p } = await Promise.resolve().then(() => ae), b = await p(
1443
+ f,
1444
+ e.language,
1445
+ o
1446
+ ), w = [];
1447
+ for (const d of b)
1448
+ if ("items" in d)
1449
+ for (const v of d.items)
1450
+ w.push({
1451
+ slug: v.slug,
1452
+ title: v.title
1374
1453
  });
1375
1454
  else
1376
- p.push({
1377
- slug: l.slug,
1378
- title: l.title
1455
+ w.push({
1456
+ slug: d.slug,
1457
+ title: d.title
1379
1458
  });
1380
- const d = await Promise.all(
1381
- p.map(async (l) => {
1459
+ const i = await Promise.all(
1460
+ w.map(async (d) => {
1382
1461
  try {
1383
- const r = await o(t.language, l.slug);
1462
+ const v = await o(e.language, d.slug);
1384
1463
  return {
1385
- ...l,
1386
- title: r.frontmatter.title || l.title,
1387
- date: r.frontmatter.date,
1388
- author: r.frontmatter.author,
1389
- description: r.frontmatter.description
1464
+ ...d,
1465
+ title: v.frontmatter.title || d.title,
1466
+ date: v.frontmatter.date,
1467
+ author: v.frontmatter.author,
1468
+ description: v.frontmatter.description
1390
1469
  };
1391
1470
  } catch {
1392
- return l;
1471
+ return d;
1393
1472
  }
1394
1473
  })
1395
1474
  );
1396
- d.sort((l, r) => l.date && r.date ? new Date(r.date).getTime() - new Date(l.date).getTime() : l.date ? -1 : r.date ? 1 : l.title.localeCompare(r.title)), i(d.slice(0, 50));
1397
- } catch (b) {
1398
- console.error("Failed to load articles:", b);
1475
+ i.sort((d, v) => d.date && v.date ? new Date(v.date).getTime() - new Date(d.date).getTime() : d.date ? -1 : v.date ? 1 : d.title.localeCompare(v.title)), r(i.slice(0, 50));
1476
+ } catch (f) {
1477
+ console.error("Failed to load articles:", f);
1399
1478
  } finally {
1400
- g(!1);
1479
+ u(!1);
1401
1480
  }
1402
1481
  })();
1403
- }, [t.language, a.navigationData, o]);
1404
- const _ = (u) => {
1405
- const b = a.basePath || "";
1406
- c(`${b}/${t.language}/${u}`);
1482
+ }, [e.language, s.navigationData, o]);
1483
+ const h = (l) => {
1484
+ const f = s.basePath || "";
1485
+ window.scrollTo({ top: 0, left: 0, behavior: "auto" }), c(`${f}/${e.language}/${l}`);
1407
1486
  };
1408
- return m ? /* @__PURE__ */ e("div", { className: A.loading, children: n("ui.loadingArticles") }) : s.length === 0 ? /* @__PURE__ */ e("div", { className: A.empty, children: n("ui.noArticlesFound") }) : /* @__PURE__ */ h("div", { className: A.homePage, children: [
1409
- /* @__PURE__ */ e("div", { className: A.header, children: /* @__PURE__ */ e("h1", { className: A.title, children: n("ui.latestPosts") }) }),
1410
- /* @__PURE__ */ e("div", { className: A.articlesList, children: s.map((u) => /* @__PURE__ */ h(
1487
+ return g ? /* @__PURE__ */ t("div", { className: z.loading, children: n("ui.loadingArticles") }) : a.length === 0 ? /* @__PURE__ */ t("div", { className: z.empty, children: n("ui.noArticlesFound") }) : /* @__PURE__ */ m("div", { className: z.homePage, children: [
1488
+ /* @__PURE__ */ t("div", { className: z.header, children: /* @__PURE__ */ t("h1", { className: z.title, children: n("ui.latestPosts") }) }),
1489
+ /* @__PURE__ */ t("div", { className: z.articlesList, children: a.map((l) => /* @__PURE__ */ m(
1411
1490
  "button",
1412
1491
  {
1413
- className: A.articleCard,
1414
- onClick: () => _(u.slug),
1492
+ className: z.articleCard,
1493
+ onClick: () => h(l.slug),
1415
1494
  type: "button",
1416
1495
  children: [
1417
- /* @__PURE__ */ e("h2", { className: A.articleTitle, children: u.title }),
1418
- u.description && /* @__PURE__ */ e("p", { className: A.articleDescription, children: u.description }),
1419
- /* @__PURE__ */ e(Le, { date: u.date, author: u.author })
1496
+ /* @__PURE__ */ t("h2", { className: z.articleTitle, children: l.title }),
1497
+ l.description && /* @__PURE__ */ t("p", { className: z.articleDescription, children: l.description }),
1498
+ /* @__PURE__ */ t(dt, { date: l.date, author: l.author })
1420
1499
  ]
1421
1500
  },
1422
- u.slug
1501
+ l.slug
1423
1502
  )) })
1424
1503
  ] });
1425
1504
  }
1426
- function eo() {
1427
- const { language: t } = ce(), { config: n } = R();
1428
- return /* @__PURE__ */ e(Pa, { children: /* @__PURE__ */ h(Se, { children: [
1429
- /* @__PURE__ */ e(ge, { path: "/:slug", element: /* @__PURE__ */ e(Ut, { language: t }) }),
1430
- /* @__PURE__ */ e(
1431
- ge,
1505
+ function ma() {
1506
+ const { language: e } = ut(), { config: n } = O();
1507
+ return /* @__PURE__ */ t(Uo, { children: /* @__PURE__ */ m(At, { children: [
1508
+ /* @__PURE__ */ t(kt, { path: "/:slug", element: /* @__PURE__ */ t(en, { language: e }) }),
1509
+ /* @__PURE__ */ t(
1510
+ kt,
1432
1511
  {
1433
1512
  index: !0,
1434
- element: (n.defaultRoute || "latest") === "latest" ? /* @__PURE__ */ e(Ha, {}) : /* @__PURE__ */ e(Ne, { to: `./${n.defaultRoute}`, replace: !0 })
1513
+ element: (n.defaultRoute || "latest") === "latest" ? /* @__PURE__ */ t(ta, {}) : /* @__PURE__ */ t(Mt, { to: `./${n.defaultRoute}`, replace: !0 })
1435
1514
  }
1436
1515
  )
1437
1516
  ] }) });
1438
1517
  }
1439
- function to() {
1518
+ function ga() {
1440
1519
  return {
1441
1520
  openSearchModal: () => {
1442
1521
  window.dispatchEvent(new CustomEvent("blog:open-search"));
@@ -1446,44 +1525,44 @@ function to() {
1446
1525
  }
1447
1526
  };
1448
1527
  }
1449
- function no() {
1450
- const { i18n: t } = E(), n = G(), a = U(), { config: o } = R();
1528
+ function _a() {
1529
+ const { i18n: e } = R(), n = V(), s = Q(), { config: o } = O();
1451
1530
  return (c) => {
1452
- const s = o.basePath || "";
1453
- let i = n.pathname;
1454
- s && i.startsWith(s) && (i = i.slice(s.length));
1455
- const m = i.split("/").filter(Boolean), g = m[0];
1456
- let _ = "";
1457
- o.supportedLanguages.includes(g) ? (m[0] = c, _ = `${s}/${m.join("/")}`) : _ = `${s}/${c}${i}`;
1458
- const u = _ + n.search + n.hash;
1459
- t.changeLanguage(c), a(u);
1531
+ const a = o.basePath || "";
1532
+ let r = n.pathname;
1533
+ a && r.startsWith(a) && (r = r.slice(a.length));
1534
+ const g = r.split("/").filter(Boolean), u = g[0];
1535
+ let h = "";
1536
+ o.supportedLanguages.includes(u) ? (g[0] = c, h = `${a}/${g.join("/")}`) : h = `${a}/${c}${r}`;
1537
+ const l = h + n.search + n.hash;
1538
+ e.changeLanguage(c), s(l);
1460
1539
  };
1461
1540
  }
1462
1541
  export {
1463
- Ke as AdvancedModeToggle,
1464
- Ja as BlogProvider,
1465
- qe as BlogRoot,
1466
- Ut as ContentPage,
1467
- Pa as DocumentationLayout,
1468
- eo as DocumentationRoutes,
1469
- Tn as Header,
1470
- Ha as HomePage,
1471
- le as LanguageSelector,
1472
- Le as Metadata,
1473
- aa as MobileMenu,
1474
- Za as NavigationContent,
1475
- ie as NavigationMenu,
1476
- ln as SearchBar,
1477
- Ca as Sidebar,
1478
- ht as TableOfContents,
1479
- xt as TagResultsModal,
1480
- Pt as Tags,
1481
- Va as createBlogUtils,
1482
- ke as createContentLoaders,
1483
- V as generateHeadingId,
1484
- te as getNavigationData,
1485
- R as useBlogConfig,
1486
- no as useLanguageChange,
1487
- to as useSearchModal,
1488
- Ce as useTheme
1542
+ ee as AdvancedModeToggle,
1543
+ ua as BlogProvider,
1544
+ ne as BlogRoot,
1545
+ en as ContentPage,
1546
+ Uo as DocumentationLayout,
1547
+ ma as DocumentationRoutes,
1548
+ Hn as Header,
1549
+ ta as HomePage,
1550
+ _t as LanguageSelector,
1551
+ dt as Metadata,
1552
+ po as MobileMenu,
1553
+ ha as NavigationContent,
1554
+ pt as NavigationMenu,
1555
+ Nn as SearchBar,
1556
+ jo as Sidebar,
1557
+ xe as TableOfContents,
1558
+ Re as TagResultsModal,
1559
+ ze as Tags,
1560
+ da as createBlogUtils,
1561
+ Et as createContentLoaders,
1562
+ q as generateHeadingId,
1563
+ gt as getNavigationData,
1564
+ O as useBlogConfig,
1565
+ _a as useLanguageChange,
1566
+ ga as useSearchModal,
1567
+ mt as useTheme
1489
1568
  };