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