@x-wave/blog 1.0.11 → 1.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +262 -262
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { jsxs as d, jsx as e, Fragment as K } from "react/jsx-runtime";
2
2
  import { useTranslation as R } from "react-i18next";
3
3
  import { useLocation as U, useNavigate as G, useParams as ae, Link as de, Navigate as fe, Routes as Ce, Route as ue } from "react-router-dom";
4
- import { X as se, Tag as Te, User as Se, CalendarBlank as ye, MagnifyingGlass as he, List as Le, Sun as me, Moon as ge, Monitor as _e, CaretDown as oe, Globe as Pe, CaretRight as Be } from "@phosphor-icons/react";
5
- import { useState as L, useEffect as P, createContext as De, useContext as Me, useRef as q } from "react";
4
+ import { X as se, Tag as Te, User as ye, CalendarBlank as Se, MagnifyingGlass as he, List as Le, Sun as me, Moon as ge, Monitor as _e, CaretDown as oe, Globe as Pe, CaretRight as Be } from "@phosphor-icons/react";
5
+ import { useState as L, useEffect as P, createContext as Me, useContext as De, useRef as q } from "react";
6
6
  import Ee from "react-markdown";
7
7
  import Oe from "remark-gfm";
8
8
  import ne from "i18next";
@@ -12,20 +12,20 @@ const Re = "_tabContainer_zk6h4_1", je = "_tab_zk6h4_1", Ae = "_active_zk6h4_45"
12
12
  tab: je,
13
13
  active: Ae
14
14
  };
15
- function He({ hasAdvanced: t }) {
16
- const { t: n } = R(), s = U(), a = G();
15
+ function We({ hasAdvanced: t }) {
16
+ const { t: n } = R(), s = U(), o = G();
17
17
  if (!t) return null;
18
- const o = new URLSearchParams(s.search).has("advanced"), l = () => {
19
- if (o) {
18
+ const a = new URLSearchParams(s.search).has("advanced"), l = () => {
19
+ if (a) {
20
20
  const u = new URLSearchParams(s.search);
21
21
  u.delete("advanced");
22
22
  const p = u.toString(), w = p ? `?${p}` : "";
23
- a(`${s.pathname}${w}${s.hash}`);
23
+ o(`${s.pathname}${w}${s.hash}`);
24
24
  }
25
25
  }, g = () => {
26
- if (!o) {
26
+ if (!a) {
27
27
  const u = new URLSearchParams(s.search);
28
- u.set("advanced", ""), a(`${s.pathname}?${u.toString()}${s.hash}`);
28
+ u.set("advanced", ""), o(`${s.pathname}?${u.toString()}${s.hash}`);
29
29
  }
30
30
  };
31
31
  return /* @__PURE__ */ d("div", { className: Y.tabContainer, children: [
@@ -33,7 +33,7 @@ function He({ hasAdvanced: t }) {
33
33
  "button",
34
34
  {
35
35
  type: "button",
36
- className: `${Y.tab} ${o ? "" : Y.active}`,
36
+ className: `${Y.tab} ${a ? "" : Y.active}`,
37
37
  onClick: l,
38
38
  children: n("ui.simple")
39
39
  }
@@ -42,24 +42,24 @@ function He({ hasAdvanced: t }) {
42
42
  "button",
43
43
  {
44
44
  type: "button",
45
- className: `${Y.tab} ${o ? Y.active : ""}`,
45
+ className: `${Y.tab} ${a ? Y.active : ""}`,
46
46
  onClick: g,
47
47
  children: n("ui.advanced")
48
48
  }
49
49
  )
50
50
  ] });
51
51
  }
52
- function We({ children: t }) {
52
+ function He({ children: t }) {
53
53
  return /* @__PURE__ */ e("div", { className: "xw-blog-root", children: t });
54
54
  }
55
55
  function be(t) {
56
56
  function n(s) {
57
- const a = s.match(/^---\s*\n([\s\S]*?)\n---\s*\n/);
58
- if (!a) return { frontmatter: {}, content: s };
59
- const c = {}, o = a[1];
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
60
  let l = "", g = !1;
61
61
  const u = [];
62
- for (const w of o.split(`
62
+ for (const w of a.split(`
63
63
  `)) {
64
64
  const _ = w.trim();
65
65
  if (_.startsWith("-")) {
@@ -90,8 +90,8 @@ function be(t) {
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(s, a, c = !1) {
94
- const o = c ? `${a}-advanced.mdx` : `${a}.mdx`, l = `./docs/${s}/${o}`, g = t[l];
93
+ async loadMDXContent(s, o, c = !1) {
94
+ const a = c ? `${o}-advanced.mdx` : `${o}.mdx`, l = `./docs/${s}/${a}`, g = t[l];
95
95
  if (!g) throw new Error(`File not found: ${l}`);
96
96
  const u = await g(), { frontmatter: p, content: w } = n(u);
97
97
  return { content: w, frontmatter: p };
@@ -100,9 +100,9 @@ function be(t) {
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(s, a = !1) {
104
- const o = `./docs/en/${a ? `${s}-advanced.mdx` : `${s}.mdx`}`, l = t[o];
105
- if (!l) throw new Error(`File not found: ${o}`);
103
+ async loadEnglishContent(s, o = !1) {
104
+ const a = `./docs/en/${o ? `${s}-advanced.mdx` : `${s}.mdx`}`, l = t[a];
105
+ if (!l) throw new Error(`File not found: ${a}`);
106
106
  const g = await l(), { content: u } = n(g);
107
107
  return u;
108
108
  },
@@ -114,21 +114,21 @@ function be(t) {
114
114
  * @returns Promise resolving to tag index mapping tag names to document info
115
115
  */
116
116
  async buildTagIndex(s = "en") {
117
- const a = {}, c = `./docs/${s}/`, o = Object.keys(t).filter(
117
+ const o = {}, c = `./docs/${s}/`, a = Object.keys(t).filter(
118
118
  (l) => l.startsWith(c)
119
119
  );
120
- for (const l of o)
120
+ for (const l of a)
121
121
  try {
122
122
  const g = t[l], u = await g(), { frontmatter: p, content: w } = n(u), _ = l.split("/").pop() || "", v = _.replace(".mdx", "").replace("-advanced", ""), r = w.match(/^#\s+(.+)$/m), f = r ? r[1].trim() : v;
123
123
  if (_.includes("-advanced")) continue;
124
124
  const i = p.tags;
125
125
  if (i && Array.isArray(i))
126
126
  for (const b of i)
127
- a[b] || (a[b] = []), a[b].some((x) => x.slug === v) || a[b].push({ slug: v, title: f });
127
+ o[b] || (o[b] = []), o[b].some((I) => I.slug === v) || o[b].push({ slug: v, title: f });
128
128
  } catch (g) {
129
129
  console.warn(`Failed to process ${l}:`, g);
130
130
  }
131
- return a;
131
+ return o;
132
132
  }
133
133
  };
134
134
  }
@@ -143,29 +143,29 @@ function Ro(t) {
143
143
  const we = "app-theme", $e = () => typeof window > "u" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light", pe = (t) => t === "system" ? $e() : t, qe = () => typeof window > "u" ? "system" : localStorage.getItem(we) || "system", Ne = () => {
144
144
  const [t, n] = L(qe);
145
145
  return P(() => {
146
- const a = pe(t), c = document.querySelector(".xw-blog-root");
147
- if (c && (c.classList.remove("light", "dark"), c.classList.add(a)), t === "system") {
148
- const o = window.matchMedia("(prefers-color-scheme: dark)"), l = () => {
146
+ const o = pe(t), c = document.querySelector(".xw-blog-root");
147
+ if (c && (c.classList.remove("light", "dark"), c.classList.add(o)), t === "system") {
148
+ const a = window.matchMedia("(prefers-color-scheme: dark)"), l = () => {
149
149
  const g = $e(), u = document.querySelector(".xw-blog-root");
150
150
  u && (u.classList.remove("light", "dark"), u.classList.add(g));
151
151
  };
152
- return o.addEventListener("change", l), () => o.removeEventListener("change", l);
152
+ return a.addEventListener("change", l), () => a.removeEventListener("change", l);
153
153
  }
154
154
  }, [t]), {
155
155
  theme: t,
156
- setTheme: (a) => {
157
- localStorage.setItem(we, a), n(a);
156
+ setTheme: (o) => {
157
+ localStorage.setItem(we, o), n(o);
158
158
  },
159
159
  effectiveTheme: pe(t)
160
160
  };
161
161
  }, Fe = (t) => "items" in t, te = (t, n) => t.map((s) => Fe(s) ? {
162
162
  title: ne.getFixedT(n)(s.title),
163
- items: s.items.map((a) => ({
164
- title: ne.getFixedT(n)(a.title),
165
- slug: a.slug,
166
- ...a.hasAdvanced && { hasAdvanced: a.hasAdvanced },
167
- ...a.showTableOfContents !== void 0 && {
168
- showTableOfContents: a.showTableOfContents
163
+ items: s.items.map((o) => ({
164
+ title: ne.getFixedT(n)(o.title),
165
+ slug: o.slug,
166
+ ...o.hasAdvanced && { hasAdvanced: o.hasAdvanced },
167
+ ...o.showTableOfContents !== void 0 && {
168
+ showTableOfContents: o.showTableOfContents
169
169
  }
170
170
  }))
171
171
  } : {
@@ -175,15 +175,15 @@ const we = "app-theme", $e = () => typeof window > "u" ? "light" : window.matchM
175
175
  ...s.showTableOfContents !== void 0 && {
176
176
  showTableOfContents: s.showTableOfContents
177
177
  }
178
- }), Z = (t) => t.toString().toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/\s+/g, "-").replace(/-+/g, "-").replace(/^-+|-+$/g, ""), Ie = De(null);
178
+ }), Z = (t) => t.toString().toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/\s+/g, "-").replace(/-+/g, "-").replace(/^-+|-+$/g, ""), xe = Me(null);
179
179
  function jo({
180
180
  children: t,
181
181
  config: n,
182
182
  blog: s,
183
- navigationData: a = []
183
+ navigationData: o = []
184
184
  }) {
185
185
  Ne();
186
- const [c, o] = L({});
186
+ const [c, a] = L({});
187
187
  P(() => {
188
188
  const { buildTagIndex: g } = be(s.mdxFiles), u = n.supportedLanguages.map(async (p) => {
189
189
  try {
@@ -197,31 +197,31 @@ function jo({
197
197
  const w = {};
198
198
  for (const _ of p)
199
199
  w[_.language] = _.index;
200
- o(w);
200
+ a(w);
201
201
  }).catch((p) => {
202
202
  console.error("Failed to build tag indices:", p);
203
203
  });
204
204
  }, [s.mdxFiles, n.supportedLanguages]);
205
- const l = { ...n, navigationData: a, tagIndex: c };
205
+ const l = { ...n, navigationData: o, tagIndex: c };
206
206
  return /* @__PURE__ */ e(
207
- Ie.Provider,
207
+ xe.Provider,
208
208
  {
209
209
  value: {
210
210
  config: l,
211
211
  loadContent: s.loadContent,
212
212
  loadEnglishContent: s.loadEnglishContent
213
213
  },
214
- children: /* @__PURE__ */ e(We, { children: t })
214
+ children: /* @__PURE__ */ e(He, { children: t })
215
215
  }
216
216
  );
217
217
  }
218
218
  function j() {
219
- const t = Me(Ie);
219
+ const t = De(xe);
220
220
  if (!t)
221
221
  throw new Error("useBlogConfig must be used within a BlogProvider");
222
222
  return t;
223
223
  }
224
- const ze = "_tableOfContents_11q9u_1", Ke = "_header_11q9u_20", Ue = "_title_11q9u_24", Ge = "_nav_11q9u_33", Qe = "_list_11q9u_39", Xe = "_link_11q9u_46", Ye = "_active_11q9u_70", Ve = "_level1_11q9u_86", Je = "_level2_11q9u_92", Ze = "_level3_11q9u_97", et = "_level4_11q9u_103", tt = "_level5_11q9u_109", nt = "_level6_11q9u_115", H = {
224
+ const ze = "_tableOfContents_11q9u_1", Ke = "_header_11q9u_20", Ue = "_title_11q9u_24", Ge = "_nav_11q9u_33", Qe = "_list_11q9u_39", Xe = "_link_11q9u_46", Ye = "_active_11q9u_70", Ve = "_level1_11q9u_86", Je = "_level2_11q9u_92", Ze = "_level3_11q9u_97", et = "_level4_11q9u_103", tt = "_level5_11q9u_109", nt = "_level6_11q9u_115", W = {
225
225
  tableOfContents: ze,
226
226
  header: Ke,
227
227
  title: Ue,
@@ -240,7 +240,7 @@ function ot({
240
240
  content: t,
241
241
  englishContent: n
242
242
  }) {
243
- const { t: s } = R(), a = U(), c = G(), [o, l] = L([]), [g, u] = L(""), p = q(null);
243
+ const { t: s } = R(), o = U(), c = G(), [a, l] = L([]), [g, u] = L(""), p = q(null);
244
244
  P(() => {
245
245
  u(""), (() => {
246
246
  const v = /^(#{1,6})\s+(.+)$/gm, r = [];
@@ -251,37 +251,37 @@ function ot({
251
251
  i.push({ level: m, text: N }), f = v.exec(t);
252
252
  }
253
253
  const b = /^(#{1,6})\s+(.+)$/gm;
254
- let x = b.exec(n), T = 0;
255
- for (; x !== null && T < i.length; ) {
256
- const m = x[2].trim(), N = Z(m);
254
+ let I = b.exec(n), T = 0;
255
+ for (; I !== null && T < i.length; ) {
256
+ const m = I[2].trim(), N = Z(m);
257
257
  r.push({
258
258
  id: N,
259
259
  text: i[T].text,
260
260
  // Use localized text for display
261
261
  level: i[T].level
262
- }), T++, x = b.exec(n);
262
+ }), T++, I = b.exec(n);
263
263
  }
264
264
  l(r);
265
265
  })();
266
266
  }, [t, n]), P(() => {
267
- if (o.length === 0) return;
267
+ if (a.length === 0) return;
268
268
  const _ = setTimeout(() => {
269
- const v = o.filter(
269
+ const v = a.filter(
270
270
  (r) => !document.getElementById(r.id)
271
271
  );
272
272
  v.length > 0 && console.warn("Some heading elements not found:", v);
273
273
  }, 100);
274
274
  return () => clearTimeout(_);
275
- }, [o]), P(() => {
276
- if (o.length === 0) return;
275
+ }, [a]), P(() => {
276
+ if (a.length === 0) return;
277
277
  p.current && p.current.disconnect();
278
278
  const _ = setTimeout(() => {
279
- const v = o.map((r) => document.getElementById(r.id)).filter(Boolean);
279
+ const v = a.map((r) => document.getElementById(r.id)).filter(Boolean);
280
280
  v.length !== 0 && (p.current = new IntersectionObserver(
281
281
  (r) => {
282
282
  const f = r.filter((i) => i.isIntersecting);
283
283
  if (f.length > 0) {
284
- const i = f.reduce((b, x) => b.boundingClientRect.top < x.boundingClientRect.top ? b : x);
284
+ const i = f.reduce((b, I) => b.boundingClientRect.top < I.boundingClientRect.top ? b : I);
285
285
  u(i.target.id);
286
286
  }
287
287
  },
@@ -296,15 +296,15 @@ function ot({
296
296
  return () => {
297
297
  clearTimeout(_), p.current && p.current.disconnect();
298
298
  };
299
- }, [o]), P(() => () => {
299
+ }, [a]), P(() => () => {
300
300
  p.current && p.current.disconnect();
301
301
  }, []);
302
302
  const w = (_) => {
303
303
  const v = document.getElementById(_);
304
304
  if (v) {
305
- const r = new URLSearchParams(a.search);
305
+ const r = new URLSearchParams(o.search);
306
306
  r.set("a", _), c(
307
- `${a.pathname}?${r.toString()}${a.hash}`,
307
+ `${o.pathname}?${r.toString()}${o.hash}`,
308
308
  {
309
309
  replace: !0
310
310
  }
@@ -316,12 +316,12 @@ function ot({
316
316
  });
317
317
  }
318
318
  };
319
- return o.length === 0 ? null : /* @__PURE__ */ d("aside", { className: H.tableOfContents, children: [
320
- /* @__PURE__ */ e("div", { className: H.header, children: /* @__PURE__ */ e("span", { className: H.title, children: s("ui.onThisPage", "On this page") }) }),
321
- /* @__PURE__ */ e("nav", { className: H.nav, children: /* @__PURE__ */ e("ul", { className: H.list, children: o.map((_) => /* @__PURE__ */ e("li", { className: H.item, children: /* @__PURE__ */ e(
319
+ return a.length === 0 ? null : /* @__PURE__ */ d("aside", { className: W.tableOfContents, children: [
320
+ /* @__PURE__ */ e("div", { className: W.header, children: /* @__PURE__ */ e("span", { className: W.title, children: s("ui.onThisPage", "On this page") }) }),
321
+ /* @__PURE__ */ e("nav", { className: W.nav, children: /* @__PURE__ */ e("ul", { className: W.list, children: a.map((_) => /* @__PURE__ */ e("li", { className: W.item, children: /* @__PURE__ */ e(
322
322
  "button",
323
323
  {
324
- className: `${H.link} ${H[`level${_.level}`]} ${g === _.id ? H.active : ""}`,
324
+ className: `${W.link} ${W[`level${_.level}`]} ${g === _.id ? W.active : ""}`,
325
325
  onClick: () => w(_.id),
326
326
  type: "button",
327
327
  children: _.text
@@ -346,14 +346,14 @@ function _t({
346
346
  tag: t,
347
347
  results: n,
348
348
  language: s,
349
- onClose: a
349
+ onClose: o
350
350
  }) {
351
- const { t: c } = R(), { config: o } = j(), l = G(), g = (u) => {
352
- const p = o.basePath || "";
353
- l(`${p}/${s}/${u}`), a();
351
+ const { t: c } = R(), { config: a } = j(), l = G(), g = (u) => {
352
+ const p = a.basePath || "";
353
+ l(`${p}/${s}/${u}`), o();
354
354
  };
355
355
  return ve(
356
- /* @__PURE__ */ e("div", { className: O.overlay, onClick: a, children: /* @__PURE__ */ d("div", { className: O.modal, onClick: (u) => u.stopPropagation(), children: [
356
+ /* @__PURE__ */ e("div", { className: O.overlay, onClick: o, children: /* @__PURE__ */ d("div", { className: O.modal, onClick: (u) => u.stopPropagation(), children: [
357
357
  /* @__PURE__ */ d("div", { className: O.header, children: [
358
358
  /* @__PURE__ */ d("h2", { className: O.title, children: [
359
359
  c("ui.tagResults"),
@@ -365,7 +365,7 @@ function _t({
365
365
  {
366
366
  type: "button",
367
367
  className: O.closeButton,
368
- onClick: a,
368
+ onClick: o,
369
369
  "aria-label": "Close",
370
370
  children: /* @__PURE__ */ e(se, {})
371
371
  }
@@ -399,10 +399,10 @@ const pt = "_tags_11t8a_1", ft = "_compact_11t8a_9", vt = "_tagLabel_11t8a_15",
399
399
  tag: $t
400
400
  };
401
401
  function Nt({ tags: t, variant: n = "default", onTagClick: s }) {
402
- const { t: a } = R();
402
+ const { t: o } = R();
403
403
  if (!t || t.length === 0) return null;
404
- const c = (o) => {
405
- s && s(o);
404
+ const c = (a) => {
405
+ s && s(a);
406
406
  };
407
407
  return /* @__PURE__ */ d(
408
408
  "div",
@@ -412,44 +412,44 @@ function Nt({ tags: t, variant: n = "default", onTagClick: s }) {
412
412
  n === "default" && /* @__PURE__ */ d("div", { className: z.tagLabel, children: [
413
413
  /* @__PURE__ */ e(Te, { className: z.tagIcon, weight: "duotone" }),
414
414
  /* @__PURE__ */ d("span", { children: [
415
- a("ui.tags"),
415
+ o("ui.tags"),
416
416
  ":"
417
417
  ] })
418
418
  ] }),
419
- /* @__PURE__ */ e("div", { className: z.tagList, children: t.map((o) => /* @__PURE__ */ e(
419
+ /* @__PURE__ */ e("div", { className: z.tagList, children: t.map((a) => /* @__PURE__ */ e(
420
420
  "button",
421
421
  {
422
422
  type: "button",
423
423
  className: z.tag,
424
- onClick: () => c(o),
425
- "aria-label": `${a("ui.filterByTag")}: ${o}`,
426
- children: o
424
+ onClick: () => c(a),
425
+ "aria-label": `${o("ui.filterByTag")}: ${a}`,
426
+ children: a
427
427
  },
428
- o
428
+ a
429
429
  )) })
430
430
  ]
431
431
  }
432
432
  );
433
433
  }
434
- const It = "_contentPage_1nxj5_1", xt = "_metadata_1nxj5_20", kt = "_author_1nxj5_30", Ct = "_date_1nxj5_31", Tt = "_loadingContainer_1nxj5_48", St = "_errorContainer_1nxj5_49", yt = "_skeletonTitle_1nxj5_71", Lt = "_skeletonParagraph_1nxj5_80", Pt = "_skeletonParagraphShort_1nxj5_93", Bt = "_errorText_1nxj5_107", Dt = "_mdxContent_1nxj5_112", Mt = "_withMetadata_1nxj5_125", Et = "_codeBlock_1nxj5_300", Ot = "_codeLanguage_1nxj5_304", D = {
435
- contentPage: It,
436
- metadata: xt,
434
+ const xt = "_contentPage_1nxj5_1", It = "_metadata_1nxj5_20", kt = "_author_1nxj5_30", Ct = "_date_1nxj5_31", Tt = "_loadingContainer_1nxj5_48", yt = "_errorContainer_1nxj5_49", St = "_skeletonTitle_1nxj5_71", Lt = "_skeletonParagraph_1nxj5_80", Pt = "_skeletonParagraphShort_1nxj5_93", Bt = "_errorText_1nxj5_107", Mt = "_mdxContent_1nxj5_112", Dt = "_withMetadata_1nxj5_125", Et = "_codeBlock_1nxj5_300", Ot = "_codeLanguage_1nxj5_304", M = {
435
+ contentPage: xt,
436
+ metadata: It,
437
437
  author: kt,
438
438
  date: Ct,
439
439
  loadingContainer: Tt,
440
- errorContainer: St,
441
- skeletonTitle: yt,
440
+ errorContainer: yt,
441
+ skeletonTitle: St,
442
442
  skeletonParagraph: Lt,
443
443
  skeletonParagraphShort: Pt,
444
444
  errorText: Bt,
445
- mdxContent: Dt,
446
- withMetadata: Mt,
445
+ mdxContent: Mt,
446
+ withMetadata: Dt,
447
447
  codeBlock: Et,
448
448
  codeLanguage: Ot
449
449
  };
450
450
  function Rt({ language: t }) {
451
451
  var ie;
452
- const { slug: n } = ae(), s = U(), { t: a } = R(), { config: c, loadContent: o, loadEnglishContent: l } = j(), [g, u] = L(""), [p, w] = L(""), [_, v] = L({}), [r, f] = L(!0), [i, b] = L(null), [x, T] = L(!0), [m, N] = L(null), B = q(0), Q = q([]), ee = ((h) => {
452
+ const { slug: n } = ae(), s = U(), { t: o } = R(), { config: c, loadContent: a, loadEnglishContent: l } = j(), [g, u] = L(""), [p, w] = L(""), [_, v] = L({}), [r, f] = L(!0), [i, b] = L(null), [I, T] = L(!0), [m, N] = L(null), B = q(0), Q = q([]), ee = ((h) => {
453
453
  const k = {
454
454
  advanced: !1,
455
455
  anchor: ""
@@ -465,26 +465,26 @@ function Rt({ language: t }) {
465
465
  if (!n) return;
466
466
  f(!0), b(null), B.current = 0;
467
467
  const k = (c == null ? void 0 : c.navigationData) || [];
468
- let y = !0;
468
+ let S = !0;
469
469
  for (const $ of k)
470
470
  if ("items" in $) {
471
471
  const C = $.items.find((E) => E.slug === n);
472
472
  if (C) {
473
- y = C.showTableOfContents !== !1;
473
+ S = C.showTableOfContents !== !1;
474
474
  break;
475
475
  }
476
476
  } else if ($.slug === n) {
477
- y = $.showTableOfContents !== !1;
477
+ S = $.showTableOfContents !== !1;
478
478
  break;
479
479
  }
480
- T(y);
480
+ T(S);
481
481
  try {
482
482
  let $;
483
483
  try {
484
- $ = await o(t, n, A);
484
+ $ = await a(t, n, A);
485
485
  } catch {
486
486
  if (A)
487
- $ = await o(t, n, !1);
487
+ $ = await a(t, n, !1);
488
488
  else
489
489
  throw new Error("Content not found");
490
490
  }
@@ -512,7 +512,7 @@ function Rt({ language: t }) {
512
512
  t,
513
513
  A,
514
514
  c.navigationData,
515
- o,
515
+ a,
516
516
  l
517
517
  ]), P(() => {
518
518
  if (!r && ee.anchor) {
@@ -529,41 +529,41 @@ function Rt({ language: t }) {
529
529
  return () => clearTimeout(h);
530
530
  }
531
531
  }, [r, ee.anchor]), r)
532
- return /* @__PURE__ */ e("div", { className: D.contentPage, children: /* @__PURE__ */ d("div", { className: D.loadingContainer, children: [
533
- /* @__PURE__ */ e("div", { className: D.skeletonTitle }),
534
- /* @__PURE__ */ e("div", { className: D.skeletonParagraph }),
535
- /* @__PURE__ */ e("div", { className: D.skeletonParagraph }),
536
- /* @__PURE__ */ e("div", { className: D.skeletonParagraphShort })
532
+ return /* @__PURE__ */ e("div", { className: M.contentPage, children: /* @__PURE__ */ d("div", { className: M.loadingContainer, children: [
533
+ /* @__PURE__ */ e("div", { className: M.skeletonTitle }),
534
+ /* @__PURE__ */ e("div", { className: M.skeletonParagraph }),
535
+ /* @__PURE__ */ e("div", { className: M.skeletonParagraph }),
536
+ /* @__PURE__ */ e("div", { className: M.skeletonParagraphShort })
537
537
  ] }) });
538
538
  if (i)
539
- return /* @__PURE__ */ e("div", { className: D.contentPage, children: /* @__PURE__ */ e("div", { className: D.errorContainer, children: /* @__PURE__ */ d("div", { className: D.errorText, children: [
539
+ return /* @__PURE__ */ e("div", { className: M.contentPage, children: /* @__PURE__ */ e("div", { className: M.errorContainer, children: /* @__PURE__ */ d("div", { className: M.errorText, children: [
540
540
  "Error: ",
541
541
  i
542
542
  ] }) }) });
543
543
  B.current = 0;
544
544
  let le = !1;
545
- const xe = () => /* @__PURE__ */ d("div", { className: D.metadata, children: [
546
- _.author && /* @__PURE__ */ d("span", { className: D.author, children: [
547
- /* @__PURE__ */ e(Se, { size: 16, weight: "regular" }),
545
+ const Ie = () => /* @__PURE__ */ d("div", { className: M.metadata, children: [
546
+ _.author && /* @__PURE__ */ d("span", { className: M.author, children: [
547
+ /* @__PURE__ */ e(ye, { size: 16, weight: "regular" }),
548
548
  _.author
549
549
  ] }),
550
- _.date && /* @__PURE__ */ d("span", { className: D.date, children: [
551
- /* @__PURE__ */ e(ye, { size: 16, weight: "regular" }),
552
- a("ui.lastEdited"),
550
+ _.date && /* @__PURE__ */ d("span", { className: M.date, children: [
551
+ /* @__PURE__ */ e(Se, { size: 16, weight: "regular" }),
552
+ o("ui.lastEdited"),
553
553
  ": ",
554
554
  _.date
555
555
  ] })
556
556
  ] });
557
557
  return /* @__PURE__ */ d(K, { children: [
558
- /* @__PURE__ */ d("div", { className: D.contentPage, children: [
559
- /* @__PURE__ */ e(He, { hasAdvanced: _.hasAdvanced || !1 }),
560
- /* @__PURE__ */ e("div", { className: D.mdxContent, children: /* @__PURE__ */ e(
558
+ /* @__PURE__ */ d("div", { className: M.contentPage, children: [
559
+ /* @__PURE__ */ e(We, { hasAdvanced: _.hasAdvanced || !1 }),
560
+ /* @__PURE__ */ e("div", { className: M.mdxContent, children: /* @__PURE__ */ e(
561
561
  Ee,
562
562
  {
563
563
  remarkPlugins: [Oe],
564
564
  components: {
565
565
  h1: ({ children: h }) => {
566
- const k = B.current++, y = Q.current[k] || "", $ = Z(y), C = A ? `?advanced&a=${$}` : `?a=${$}`, E = `#/${t}/${n}${C}`, X = !le;
566
+ const k = B.current++, S = Q.current[k] || "", $ = Z(S), C = A ? `?advanced&a=${$}` : `?a=${$}`, E = `#/${t}/${n}${C}`, X = !le;
567
567
  le = !0;
568
568
  const F = _.date || _.author;
569
569
  return /* @__PURE__ */ d(K, { children: [
@@ -571,7 +571,7 @@ function Rt({ language: t }) {
571
571
  "h1",
572
572
  {
573
573
  id: $,
574
- className: X && F ? D.withMetadata : void 0,
574
+ className: X && F ? M.withMetadata : void 0,
575
575
  children: /* @__PURE__ */ e(
576
576
  "a",
577
577
  {
@@ -582,11 +582,11 @@ function Rt({ language: t }) {
582
582
  )
583
583
  }
584
584
  ),
585
- X && F && /* @__PURE__ */ e(xe, {})
585
+ X && F && /* @__PURE__ */ e(Ie, {})
586
586
  ] });
587
587
  },
588
588
  h2: ({ children: h }) => {
589
- const k = B.current++, y = Q.current[k] || "", $ = Z(y), C = A ? `?advanced&a=${$}` : `?a=${$}`, E = `#/${t}/${n}${C}`;
589
+ const k = B.current++, S = Q.current[k] || "", $ = Z(S), C = A ? `?advanced&a=${$}` : `?a=${$}`, E = `#/${t}/${n}${C}`;
590
590
  return /* @__PURE__ */ e("h2", { id: $, children: /* @__PURE__ */ e(
591
591
  "a",
592
592
  {
@@ -597,7 +597,7 @@ function Rt({ language: t }) {
597
597
  ) });
598
598
  },
599
599
  h3: ({ children: h }) => {
600
- const k = B.current++, y = Q.current[k] || "", $ = Z(y), C = A ? `?advanced&a=${$}` : `?a=${$}`, E = `#/${t}/${n}${C}`;
600
+ const k = B.current++, S = Q.current[k] || "", $ = Z(S), C = A ? `?advanced&a=${$}` : `?a=${$}`, E = `#/${t}/${n}${C}`;
601
601
  return /* @__PURE__ */ e("h3", { id: $, children: /* @__PURE__ */ e(
602
602
  "a",
603
603
  {
@@ -608,7 +608,7 @@ function Rt({ language: t }) {
608
608
  ) });
609
609
  },
610
610
  h4: ({ children: h }) => {
611
- const k = B.current++, y = Q.current[k] || "", $ = Z(y), C = A ? `?advanced&a=${$}` : `?a=${$}`, E = `#/${t}/${n}${C}`;
611
+ const k = B.current++, S = Q.current[k] || "", $ = Z(S), C = A ? `?advanced&a=${$}` : `?a=${$}`, E = `#/${t}/${n}${C}`;
612
612
  return /* @__PURE__ */ e("h4", { id: $, children: /* @__PURE__ */ e(
613
613
  "a",
614
614
  {
@@ -630,22 +630,22 @@ function Rt({ language: t }) {
630
630
  ul: ({ children: h }) => /* @__PURE__ */ e("ul", { children: h }),
631
631
  ol: ({ children: h }) => /* @__PURE__ */ e("ol", { children: h }),
632
632
  li: ({ children: h }) => /* @__PURE__ */ e("li", { children: h }),
633
- code: ({ className: h, children: k, ...y }) => {
633
+ code: ({ className: h, children: k, ...S }) => {
634
634
  if (!h)
635
- return /* @__PURE__ */ e("code", { ...y, children: k });
635
+ return /* @__PURE__ */ e("code", { ...S, children: k });
636
636
  const C = (h == null ? void 0 : h.replace("language-", "")) || "";
637
- return /* @__PURE__ */ d("div", { className: D.codeBlock, children: [
638
- C && /* @__PURE__ */ e("div", { className: D.codeLanguage, children: C }),
639
- /* @__PURE__ */ e("pre", { children: /* @__PURE__ */ e("code", { className: h, ...y, children: k }) })
637
+ return /* @__PURE__ */ d("div", { className: M.codeBlock, children: [
638
+ C && /* @__PURE__ */ e("div", { className: M.codeLanguage, children: C }),
639
+ /* @__PURE__ */ e("pre", { children: /* @__PURE__ */ e("code", { className: h, ...S, children: k }) })
640
640
  ] });
641
641
  },
642
642
  pre: ({ children: h }) => /* @__PURE__ */ e(K, { children: h }),
643
643
  // Let code component handle pre styling
644
644
  blockquote: ({ children: h }) => /* @__PURE__ */ e("blockquote", { children: h }),
645
- a: ({ href: h, children: k, ...y }) => {
645
+ a: ({ href: h, children: k, ...S }) => {
646
646
  if (h != null && h.startsWith("./")) {
647
647
  const $ = h.slice(2), C = `#/${t}/${$}`;
648
- return /* @__PURE__ */ e("a", { href: C, ...y, children: k });
648
+ return /* @__PURE__ */ e("a", { href: C, ...S, children: k });
649
649
  }
650
650
  return h != null && h.startsWith("http://") || h != null && h.startsWith("https://") ? /* @__PURE__ */ e(
651
651
  "a",
@@ -653,10 +653,10 @@ function Rt({ language: t }) {
653
653
  href: h,
654
654
  target: "_blank",
655
655
  rel: "noopener noreferrer",
656
- ...y,
656
+ ...S,
657
657
  children: k
658
658
  }
659
- ) : /* @__PURE__ */ e("a", { href: h, ...y, children: k });
659
+ ) : /* @__PURE__ */ e("a", { href: h, ...S, children: k });
660
660
  },
661
661
  strong: ({ children: h }) => /* @__PURE__ */ e("strong", { children: h }),
662
662
  em: ({ children: h }) => /* @__PURE__ */ e("em", { children: h })
@@ -673,7 +673,7 @@ function Rt({ language: t }) {
673
673
  }
674
674
  )
675
675
  ] }),
676
- x && /* @__PURE__ */ e(ot, { content: g, englishContent: p }),
676
+ I && /* @__PURE__ */ e(ot, { content: g, englishContent: p }),
677
677
  m && ((ie = c.tagIndex) == null ? void 0 : ie[t]) && /* @__PURE__ */ e(
678
678
  _t,
679
679
  {
@@ -685,11 +685,11 @@ function Rt({ language: t }) {
685
685
  )
686
686
  ] });
687
687
  }
688
- const jt = "_searchButton_1k9sl_1", At = "_searchIcon_1k9sl_17", Ht = "_searchHint_1k9sl_23", Wt = "_kbd_1k9sl_27", qt = "_searchOverlay_1k9sl_42", Ft = "_searchModal_1k9sl_67", zt = "_searchHeader_1k9sl_91", Kt = "_searchInput_1k9sl_105", Ut = "_closeButton_1k9sl_123", Gt = "_searchResults_1k9sl_144", Qt = "_resultsList_1k9sl_152", Xt = "_resultItem_1k9sl_158", Yt = "_selected_1k9sl_173", Vt = "_resultTitle_1k9sl_176", Jt = "_resultSlug_1k9sl_180", Zt = "_noResults_1k9sl_186", en = "_searchHints_1k9sl_193", tn = "_hint_1k9sl_210", S = {
688
+ const jt = "_searchButton_1k9sl_1", At = "_searchIcon_1k9sl_17", Wt = "_searchHint_1k9sl_23", Ht = "_kbd_1k9sl_27", qt = "_searchOverlay_1k9sl_42", Ft = "_searchModal_1k9sl_67", zt = "_searchHeader_1k9sl_91", Kt = "_searchInput_1k9sl_105", Ut = "_closeButton_1k9sl_123", Gt = "_searchResults_1k9sl_144", Qt = "_resultsList_1k9sl_152", Xt = "_resultItem_1k9sl_158", Yt = "_selected_1k9sl_173", Vt = "_resultTitle_1k9sl_176", Jt = "_resultSlug_1k9sl_180", Zt = "_noResults_1k9sl_186", en = "_searchHints_1k9sl_193", tn = "_hint_1k9sl_210", y = {
689
689
  searchButton: jt,
690
690
  searchIcon: At,
691
- searchHint: Ht,
692
- kbd: Wt,
691
+ searchHint: Wt,
692
+ kbd: Ht,
693
693
  searchOverlay: qt,
694
694
  searchModal: Ft,
695
695
  searchHeader: zt,
@@ -706,7 +706,7 @@ const jt = "_searchButton_1k9sl_1", At = "_searchIcon_1k9sl_17", Ht = "_searchHi
706
706
  hint: tn
707
707
  };
708
708
  function nn({ language: t }) {
709
- const { t: n } = R(), s = G(), { config: a } = j(), [c, o] = L(!1), [l, g] = L(""), [u, p] = L([]), [w, _] = L(0), v = q(null), r = q(null), i = typeof navigator < "u" && /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform) ? "⌘K" : "Ctrl+K", b = (a.navigationData ? te(a.navigationData, t) : []).flatMap((m) => "items" in m ? m.items.map((N) => ({
709
+ const { t: n } = R(), s = G(), { config: o } = j(), [c, a] = L(!1), [l, g] = L(""), [u, p] = L([]), [w, _] = L(0), v = q(null), r = q(null), i = typeof navigator < "u" && /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform) ? "⌘K" : "Ctrl+K", b = (o.navigationData ? te(o.navigationData, t) : []).flatMap((m) => "items" in m ? m.items.map((N) => ({
710
710
  title: N.title,
711
711
  slug: N.slug
712
712
  })) : [{ title: m.title, slug: m.slug }]);
@@ -721,55 +721,55 @@ function nn({ language: t }) {
721
721
  p(N), _(0);
722
722
  }, [l]), P(() => {
723
723
  const m = (N) => {
724
- (N.metaKey || N.ctrlKey) && N.key === "k" && (N.preventDefault(), o(!0), setTimeout(() => {
724
+ (N.metaKey || N.ctrlKey) && N.key === "k" && (N.preventDefault(), a(!0), setTimeout(() => {
725
725
  var B;
726
726
  return (B = v.current) == null ? void 0 : B.focus();
727
- }, 100)), N.key === "Escape" && c && (o(!1), g(""));
727
+ }, 100)), N.key === "Escape" && c && (a(!1), g(""));
728
728
  };
729
729
  return document.addEventListener("keydown", m), () => document.removeEventListener("keydown", m);
730
730
  }, [c]), P(() => {
731
731
  const m = () => {
732
- o(!0), setTimeout(() => {
732
+ a(!0), setTimeout(() => {
733
733
  var B;
734
734
  return (B = v.current) == null ? void 0 : B.focus();
735
735
  }, 100);
736
736
  }, N = () => {
737
- o(!1), g("");
737
+ a(!1), g("");
738
738
  };
739
739
  return window.addEventListener("blog:open-search", m), window.addEventListener("blog:close-search", N), () => {
740
740
  window.removeEventListener("blog:open-search", m), window.removeEventListener("blog:close-search", N);
741
741
  };
742
742
  }, []);
743
- const x = (m) => {
743
+ const I = (m) => {
744
744
  m.key === "ArrowDown" ? (m.preventDefault(), _((N) => Math.min(N + 1, u.length - 1))) : m.key === "ArrowUp" ? (m.preventDefault(), _((N) => Math.max(N - 1, 0))) : m.key === "Enter" && u[w] && (m.preventDefault(), T(u[w].slug));
745
745
  };
746
746
  P(() => {
747
747
  const m = (N) => {
748
- r.current && !r.current.contains(N.target) && (o(!1), g(""));
748
+ r.current && !r.current.contains(N.target) && (a(!1), g(""));
749
749
  };
750
750
  return c && document.addEventListener("mousedown", m), () => document.removeEventListener("mousedown", m);
751
751
  }, [c]);
752
752
  const T = (m) => {
753
- const N = a.basePath || "";
754
- s(`${N}/${t}/${m}`), o(!1), g("");
753
+ const N = o.basePath || "";
754
+ s(`${N}/${t}/${m}`), a(!1), g("");
755
755
  };
756
756
  return /* @__PURE__ */ d(K, { children: [
757
757
  /* @__PURE__ */ d(
758
758
  "button",
759
759
  {
760
760
  type: "button",
761
- className: S.searchButton,
761
+ className: y.searchButton,
762
762
  onClick: () => {
763
- o(!0), setTimeout(() => {
763
+ a(!0), setTimeout(() => {
764
764
  var m;
765
765
  return (m = v.current) == null ? void 0 : m.focus();
766
766
  }, 100);
767
767
  },
768
768
  "aria-label": n("ui.search"),
769
769
  children: [
770
- /* @__PURE__ */ e(he, { className: S.searchIcon }),
771
- /* @__PURE__ */ e("span", { className: S.searchHint, children: n("ui.search") }),
772
- /* @__PURE__ */ e("kbd", { className: S.kbd, children: i })
770
+ /* @__PURE__ */ e(he, { className: y.searchIcon }),
771
+ /* @__PURE__ */ e("span", { className: y.searchHint, children: n("ui.search") }),
772
+ /* @__PURE__ */ e("kbd", { className: y.kbd, children: i })
773
773
  ]
774
774
  }
775
775
  ),
@@ -777,71 +777,71 @@ function nn({ language: t }) {
777
777
  /* @__PURE__ */ e(
778
778
  "div",
779
779
  {
780
- className: S.searchOverlay,
780
+ className: y.searchOverlay,
781
781
  onClick: () => {
782
- o(!1), g("");
782
+ a(!1), g("");
783
783
  },
784
784
  children: /* @__PURE__ */ d(
785
785
  "div",
786
786
  {
787
- className: S.searchModal,
787
+ className: y.searchModal,
788
788
  ref: r,
789
789
  onClick: (m) => m.stopPropagation(),
790
790
  children: [
791
- /* @__PURE__ */ d("div", { className: S.searchHeader, children: [
792
- /* @__PURE__ */ e(he, { className: S.searchIcon }),
791
+ /* @__PURE__ */ d("div", { className: y.searchHeader, children: [
792
+ /* @__PURE__ */ e(he, { className: y.searchIcon }),
793
793
  /* @__PURE__ */ e(
794
794
  "input",
795
795
  {
796
796
  ref: v,
797
797
  type: "text",
798
- className: S.searchInput,
798
+ className: y.searchInput,
799
799
  placeholder: n("ui.searchPlaceholder"),
800
800
  value: l,
801
801
  onChange: (m) => g(m.target.value),
802
- onKeyDown: x
802
+ onKeyDown: I
803
803
  }
804
804
  ),
805
805
  /* @__PURE__ */ e(
806
806
  "button",
807
807
  {
808
808
  type: "button",
809
- className: S.closeButton,
809
+ className: y.closeButton,
810
810
  onClick: () => {
811
- o(!1), g("");
811
+ a(!1), g("");
812
812
  },
813
813
  "aria-label": "Close search",
814
814
  children: /* @__PURE__ */ e(se, {})
815
815
  }
816
816
  )
817
817
  ] }),
818
- l && /* @__PURE__ */ e("div", { className: S.searchResults, children: u.length === 0 ? /* @__PURE__ */ e("div", { className: S.noResults, children: n("ui.noSearchResults") }) : /* @__PURE__ */ e("ul", { className: S.resultsList, children: u.map((m, N) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ d(
818
+ l && /* @__PURE__ */ e("div", { className: y.searchResults, children: u.length === 0 ? /* @__PURE__ */ e("div", { className: y.noResults, children: n("ui.noSearchResults") }) : /* @__PURE__ */ e("ul", { className: y.resultsList, children: u.map((m, N) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ d(
819
819
  "button",
820
820
  {
821
821
  type: "button",
822
- className: `${S.resultItem} ${N === w ? S.selected : ""}`,
822
+ className: `${y.resultItem} ${N === w ? y.selected : ""}`,
823
823
  onClick: () => T(m.slug),
824
824
  onMouseEnter: () => _(N),
825
825
  children: [
826
- /* @__PURE__ */ e("div", { className: S.resultTitle, children: m.title }),
827
- /* @__PURE__ */ d("div", { className: S.resultSlug, children: [
826
+ /* @__PURE__ */ e("div", { className: y.resultTitle, children: m.title }),
827
+ /* @__PURE__ */ d("div", { className: y.resultSlug, children: [
828
828
  "/",
829
829
  m.slug
830
830
  ] })
831
831
  ]
832
832
  }
833
833
  ) }, m.slug)) }) }),
834
- !l && /* @__PURE__ */ d("div", { className: S.searchHints, children: [
835
- /* @__PURE__ */ d("div", { className: S.hint, children: [
834
+ !l && /* @__PURE__ */ d("div", { className: y.searchHints, children: [
835
+ /* @__PURE__ */ d("div", { className: y.hint, children: [
836
836
  /* @__PURE__ */ e("kbd", { children: "↑" }),
837
837
  /* @__PURE__ */ e("kbd", { children: "↓" }),
838
838
  /* @__PURE__ */ e("span", { children: n("ui.searchNavigate") })
839
839
  ] }),
840
- /* @__PURE__ */ d("div", { className: S.hint, children: [
840
+ /* @__PURE__ */ d("div", { className: y.hint, children: [
841
841
  /* @__PURE__ */ e("kbd", { children: "↵" }),
842
842
  /* @__PURE__ */ e("span", { children: n("ui.searchSelect") })
843
843
  ] }),
844
- /* @__PURE__ */ d("div", { className: S.hint, children: [
844
+ /* @__PURE__ */ d("div", { className: y.hint, children: [
845
845
  /* @__PURE__ */ e("kbd", { children: "esc" }),
846
846
  /* @__PURE__ */ e("span", { children: n("ui.searchClose") })
847
847
  ] })
@@ -855,7 +855,7 @@ function nn({ language: t }) {
855
855
  )
856
856
  ] });
857
857
  }
858
- const on = "_header_jrobc_1", an = "_container_jrobc_24", sn = "_content_jrobc_36", cn = "_leftSection_jrobc_43", rn = "_mobileMenuButton_jrobc_49", ln = "_burgerIcon_jrobc_87", dn = "_logo_jrobc_92", un = "_nav_jrobc_98", hn = "_navLink_jrobc_109", mn = "_externalIcon_jrobc_135", gn = "_supportDropdown_jrobc_141", _n = "_themeDropdown_jrobc_145", pn = "_themeButton_jrobc_149", fn = "_themeIcon_jrobc_171", vn = "_supportButton_jrobc_177", bn = "_caretIcon_jrobc_198", wn = "_dropdownMenu_jrobc_208", $n = "_dropdownItem_jrobc_221", Nn = "_dropdownIcon_jrobc_244", I = {
858
+ const on = "_header_jrobc_1", an = "_container_jrobc_24", sn = "_content_jrobc_36", cn = "_leftSection_jrobc_43", rn = "_mobileMenuButton_jrobc_49", ln = "_burgerIcon_jrobc_87", dn = "_logo_jrobc_92", un = "_nav_jrobc_98", hn = "_navLink_jrobc_109", mn = "_externalIcon_jrobc_135", gn = "_supportDropdown_jrobc_141", _n = "_themeDropdown_jrobc_145", pn = "_themeButton_jrobc_149", fn = "_themeIcon_jrobc_171", vn = "_supportButton_jrobc_177", bn = "_caretIcon_jrobc_198", wn = "_dropdownMenu_jrobc_208", $n = "_dropdownItem_jrobc_221", Nn = "_dropdownIcon_jrobc_244", x = {
859
859
  header: on,
860
860
  container: an,
861
861
  content: sn,
@@ -876,48 +876,48 @@ const on = "_header_jrobc_1", an = "_container_jrobc_24", sn = "_content_jrobc_3
876
876
  dropdownItem: $n,
877
877
  dropdownIcon: Nn
878
878
  };
879
- function In({ onMobileMenuToggle: t }) {
880
- const { t: n, i18n: s } = R(), { config: a } = j(), c = a.header ?? {}, o = c.navLinks ?? [], l = c.dropdownItems ?? [], [g, u] = L(!1), [p, w] = L(!1), { theme: _, setTheme: v } = Ne(), r = q(null), f = q(null);
879
+ function xn({ onMobileMenuToggle: t }) {
880
+ const { t: n, i18n: s } = R(), { config: o } = j(), c = o.header ?? {}, a = c.navLinks ?? [], l = c.dropdownItems ?? [], [g, u] = L(!1), [p, w] = L(!1), { theme: _, setTheme: v } = Ne(), r = q(null), f = q(null);
881
881
  return P(() => {
882
882
  const i = (b) => {
883
883
  r.current && !r.current.contains(b.target) && u(!1), f.current && !f.current.contains(b.target) && w(!1);
884
884
  };
885
885
  return document.addEventListener("mousedown", i), () => document.removeEventListener("mousedown", i);
886
- }, []), /* @__PURE__ */ e("header", { className: I.header, children: /* @__PURE__ */ e("div", { className: I.container, children: /* @__PURE__ */ d("div", { className: I.content, children: [
887
- /* @__PURE__ */ d("div", { className: I.leftSection, children: [
886
+ }, []), /* @__PURE__ */ e("header", { className: x.header, children: /* @__PURE__ */ e("div", { className: x.container, children: /* @__PURE__ */ d("div", { className: x.content, children: [
887
+ /* @__PURE__ */ d("div", { className: x.leftSection, children: [
888
888
  /* @__PURE__ */ e(
889
889
  "button",
890
890
  {
891
891
  type: "button",
892
- className: I.mobileMenuButton,
892
+ className: x.mobileMenuButton,
893
893
  onClick: t,
894
894
  "aria-label": "Open menu",
895
- children: /* @__PURE__ */ e(Le, { className: I.burgerIcon })
895
+ children: /* @__PURE__ */ e(Le, { className: x.burgerIcon })
896
896
  }
897
897
  ),
898
- /* @__PURE__ */ e("div", { className: I.logo })
898
+ /* @__PURE__ */ e("div", { className: x.logo })
899
899
  ] }),
900
- /* @__PURE__ */ d("nav", { className: I.nav, children: [
900
+ /* @__PURE__ */ d("nav", { className: x.nav, children: [
901
901
  /* @__PURE__ */ e(nn, { language: s.language }),
902
- /* @__PURE__ */ d("div", { className: I.themeDropdown, ref: f, children: [
902
+ /* @__PURE__ */ d("div", { className: x.themeDropdown, ref: f, children: [
903
903
  /* @__PURE__ */ d(
904
904
  "button",
905
905
  {
906
906
  type: "button",
907
- className: I.themeButton,
907
+ className: x.themeButton,
908
908
  onClick: () => w(!p),
909
909
  "aria-expanded": p,
910
910
  "aria-haspopup": "true",
911
911
  "aria-label": n("ui.theme"),
912
912
  children: [
913
- _ === "light" && /* @__PURE__ */ e(me, { className: I.themeIcon }),
914
- _ === "dark" && /* @__PURE__ */ e(ge, { className: I.themeIcon }),
915
- _ === "system" && /* @__PURE__ */ e(_e, { className: I.themeIcon }),
916
- /* @__PURE__ */ e(oe, { className: I.caretIcon })
913
+ _ === "light" && /* @__PURE__ */ e(me, { className: x.themeIcon }),
914
+ _ === "dark" && /* @__PURE__ */ e(ge, { className: x.themeIcon }),
915
+ _ === "system" && /* @__PURE__ */ e(_e, { className: x.themeIcon }),
916
+ /* @__PURE__ */ e(oe, { className: x.caretIcon })
917
917
  ]
918
918
  }
919
919
  ),
920
- p && /* @__PURE__ */ d("div", { className: I.dropdownMenu, children: [
920
+ p && /* @__PURE__ */ d("div", { className: x.dropdownMenu, children: [
921
921
  /* @__PURE__ */ d(
922
922
  "button",
923
923
  {
@@ -925,9 +925,9 @@ function In({ onMobileMenuToggle: t }) {
925
925
  onClick: () => {
926
926
  v("light"), w(!1);
927
927
  },
928
- className: I.dropdownItem,
928
+ className: x.dropdownItem,
929
929
  children: [
930
- /* @__PURE__ */ e(me, { className: I.dropdownIcon }),
930
+ /* @__PURE__ */ e(me, { className: x.dropdownIcon }),
931
931
  n("ui.light")
932
932
  ]
933
933
  }
@@ -939,9 +939,9 @@ function In({ onMobileMenuToggle: t }) {
939
939
  onClick: () => {
940
940
  v("dark"), w(!1);
941
941
  },
942
- className: I.dropdownItem,
942
+ className: x.dropdownItem,
943
943
  children: [
944
- /* @__PURE__ */ e(ge, { className: I.dropdownIcon }),
944
+ /* @__PURE__ */ e(ge, { className: x.dropdownIcon }),
945
945
  n("ui.dark")
946
946
  ]
947
947
  }
@@ -953,41 +953,41 @@ function In({ onMobileMenuToggle: t }) {
953
953
  onClick: () => {
954
954
  v("system"), w(!1);
955
955
  },
956
- className: I.dropdownItem,
956
+ className: x.dropdownItem,
957
957
  children: [
958
- /* @__PURE__ */ e(_e, { className: I.dropdownIcon }),
958
+ /* @__PURE__ */ e(_e, { className: x.dropdownIcon }),
959
959
  n("ui.system")
960
960
  ]
961
961
  }
962
962
  )
963
963
  ] })
964
964
  ] }),
965
- l.length > 0 && /* @__PURE__ */ d("div", { className: I.supportDropdown, ref: r, children: [
965
+ l.length > 0 && /* @__PURE__ */ d("div", { className: x.supportDropdown, ref: r, children: [
966
966
  /* @__PURE__ */ d(
967
967
  "button",
968
968
  {
969
969
  type: "button",
970
- className: I.supportButton,
970
+ className: x.supportButton,
971
971
  onClick: () => u(!g),
972
972
  "aria-expanded": g,
973
973
  "aria-haspopup": "true",
974
974
  children: [
975
975
  n("ui.support"),
976
- /* @__PURE__ */ e(oe, { className: I.caretIcon })
976
+ /* @__PURE__ */ e(oe, { className: x.caretIcon })
977
977
  ]
978
978
  }
979
979
  ),
980
- g && /* @__PURE__ */ e("div", { className: I.dropdownMenu, children: l.map((i, b) => {
981
- const x = i.target ?? (i.url.startsWith("http") ? "_blank" : "_self"), T = i.rel ?? (x === "_blank" ? "noopener noreferrer" : void 0), m = i.icon;
980
+ g && /* @__PURE__ */ e("div", { className: x.dropdownMenu, children: l.map((i, b) => {
981
+ const I = i.target ?? (i.url.startsWith("http") ? "_blank" : "_self"), T = i.rel ?? (I === "_blank" ? "noopener noreferrer" : void 0), m = i.icon;
982
982
  return /* @__PURE__ */ d(
983
983
  "a",
984
984
  {
985
985
  href: i.url,
986
- target: x,
986
+ target: I,
987
987
  rel: T,
988
- className: I.dropdownItem,
988
+ className: x.dropdownItem,
989
989
  children: [
990
- m && /* @__PURE__ */ e(m, { className: I.dropdownIcon }),
990
+ m && /* @__PURE__ */ e(m, { className: x.dropdownIcon }),
991
991
  i.label
992
992
  ]
993
993
  },
@@ -995,18 +995,18 @@ function In({ onMobileMenuToggle: t }) {
995
995
  );
996
996
  }) })
997
997
  ] }),
998
- o.map((i, b) => {
999
- const x = i.target ?? (typeof i.url == "string" && i.url.startsWith("http") ? "_blank" : "_self"), T = i.rel ?? (x === "_blank" ? "noopener noreferrer" : void 0), m = i.icon;
998
+ a.map((i, b) => {
999
+ const I = i.target ?? (typeof i.url == "string" && i.url.startsWith("http") ? "_blank" : "_self"), T = i.rel ?? (I === "_blank" ? "noopener noreferrer" : void 0), m = i.icon;
1000
1000
  return /* @__PURE__ */ d(
1001
1001
  "a",
1002
1002
  {
1003
1003
  href: i.url,
1004
- target: x,
1004
+ target: I,
1005
1005
  rel: T,
1006
- className: i.className ?? I.navLink,
1006
+ className: i.className ?? x.navLink,
1007
1007
  children: [
1008
1008
  i.label,
1009
- m && /* @__PURE__ */ e(m, { className: I.externalIcon })
1009
+ m && /* @__PURE__ */ e(m, { className: x.externalIcon })
1010
1010
  ]
1011
1011
  },
1012
1012
  b
@@ -1020,14 +1020,14 @@ function ce({
1020
1020
  styles: t,
1021
1021
  onLanguageChange: n
1022
1022
  }) {
1023
- const { i18n: s } = R(), a = U(), c = G(), { config: o } = j(), [l, g] = L(!1), u = q(null), p = s.language, w = (v) => {
1024
- const r = o.basePath || "";
1025
- let f = a.pathname;
1023
+ const { i18n: s } = R(), o = U(), c = G(), { config: a } = j(), [l, g] = L(!1), u = q(null), p = s.language, w = (v) => {
1024
+ const r = a.basePath || "";
1025
+ let f = o.pathname;
1026
1026
  r && f.startsWith(r) && (f = f.slice(r.length));
1027
1027
  const i = f.split("/").filter(Boolean), b = i[0];
1028
- let x = "";
1029
- o.supportedLanguages.includes(b) ? (i[0] = v, x = `${r}/${i.join("/")}`) : x = `${r}/${v}${f}`;
1030
- const T = x + a.search + a.hash;
1028
+ let I = "";
1029
+ a.supportedLanguages.includes(b) ? (i[0] = v, I = `${r}/${i.join("/")}`) : I = `${r}/${v}${f}`;
1030
+ const T = I + o.search + o.hash;
1031
1031
  s.changeLanguage(v), c(T), g(!1), n == null || n();
1032
1032
  };
1033
1033
  P(() => {
@@ -1053,7 +1053,7 @@ function ce({
1053
1053
  ]
1054
1054
  }
1055
1055
  ),
1056
- l && /* @__PURE__ */ e("div", { className: t.languageDropdown, role: "listbox", children: o.supportedLanguages.map((v) => /* @__PURE__ */ e(
1056
+ l && /* @__PURE__ */ e("div", { className: t.languageDropdown, role: "listbox", children: a.supportedLanguages.map((v) => /* @__PURE__ */ e(
1057
1057
  "button",
1058
1058
  {
1059
1059
  type: "button",
@@ -1068,13 +1068,13 @@ function ce({
1068
1068
  ] });
1069
1069
  }
1070
1070
  function re({ styles: t, onLinkClick: n }) {
1071
- const { i18n: s } = R(), a = U(), { config: c } = j(), [o, l] = L(() => {
1071
+ const { i18n: s } = R(), o = U(), { config: c } = j(), [a, l] = L(() => {
1072
1072
  if (!c.navigationData) return {};
1073
1073
  const r = s.language;
1074
1074
  return te(c.navigationData, r).reduce(
1075
- (i, b, x) => {
1075
+ (i, b, I) => {
1076
1076
  if (V(b)) {
1077
- const T = c.navigationData[x], m = V(T) && T.defaultOpen === !0;
1077
+ const T = c.navigationData[I], m = V(T) && T.defaultOpen === !0;
1078
1078
  i[b.title] = m;
1079
1079
  }
1080
1080
  return i;
@@ -1088,9 +1088,9 @@ function re({ styles: t, onLinkClick: n }) {
1088
1088
  c.navigationData,
1089
1089
  g
1090
1090
  ).reduce(
1091
- (i, b, x) => {
1091
+ (i, b, I) => {
1092
1092
  if (V(b)) {
1093
- const T = c.navigationData[x], m = V(T) && T.defaultOpen === !0;
1093
+ const T = c.navigationData[I], m = V(T) && T.defaultOpen === !0;
1094
1094
  i[b.title] = m;
1095
1095
  }
1096
1096
  return i;
@@ -1106,13 +1106,13 @@ function re({ styles: t, onLinkClick: n }) {
1106
1106
  }));
1107
1107
  }, w = (r) => {
1108
1108
  const f = c.basePath || "";
1109
- let i = a.pathname;
1109
+ let i = o.pathname;
1110
1110
  f && i.startsWith(f) && (i = i.slice(f.length));
1111
1111
  const b = i.split("/").filter(Boolean);
1112
1112
  return b[b.length - 1] === r;
1113
1113
  }, _ = (r) => {
1114
1114
  const f = c.basePath || "";
1115
- let i = a.pathname;
1115
+ let i = o.pathname;
1116
1116
  f && i.startsWith(f) && (i = i.slice(f.length));
1117
1117
  const b = i.split("/").filter(Boolean);
1118
1118
  return b[0] && c.supportedLanguages.includes(b[0]) ? `${f}/${b[0]}/${r}` : `${f}/${g}/${r}`;
@@ -1124,7 +1124,7 @@ function re({ styles: t, onLinkClick: n }) {
1124
1124
  "button",
1125
1125
  {
1126
1126
  type: "button",
1127
- className: `${t.sectionButton} ${o[r.title] ? t.expanded : ""}`,
1127
+ className: `${t.sectionButton} ${a[r.title] ? t.expanded : ""}`,
1128
1128
  onClick: () => p(r.title),
1129
1129
  children: [
1130
1130
  r.title,
@@ -1132,7 +1132,7 @@ function re({ styles: t, onLinkClick: n }) {
1132
1132
  ]
1133
1133
  }
1134
1134
  ),
1135
- o[r.title] && /* @__PURE__ */ e("div", { className: t.sectionItems, children: r.items.map((f) => /* @__PURE__ */ e(
1135
+ a[r.title] && /* @__PURE__ */ e("div", { className: t.sectionItems, children: r.items.map((f) => /* @__PURE__ */ e(
1136
1136
  de,
1137
1137
  {
1138
1138
  to: _(f.slug),
@@ -1163,25 +1163,25 @@ function Ao({
1163
1163
  /* @__PURE__ */ e(re, { styles: t, onLinkClick: n })
1164
1164
  ] });
1165
1165
  }
1166
- const xn = "_backdrop_1a7pu_1", kn = "_open_1a7pu_13", Cn = "_mobileMenu_1a7pu_18", Tn = "_header_1a7pu_37", Sn = "_brand_1a7pu_46", yn = "_cloudIcon_1a7pu_53", Ln = "_title_1a7pu_62", Pn = "_closeButton_1a7pu_69", Bn = "_closeIcon_1a7pu_101", Dn = "_languageSection_1a7pu_106", Mn = "_languageSelect_1a7pu_112", En = "_languageButton_1a7pu_117", On = "_icon_1a7pu_156", Rn = "_chevron_1a7pu_162", jn = "_languageDropdown_1a7pu_172", An = "_languageOption_1a7pu_185", Hn = "_selected_1a7pu_226", Wn = "_scrollArea_1a7pu_231", qn = "_navigation_1a7pu_237", Fn = "_section_1a7pu_241", zn = "_sectionButton_1a7pu_245", Kn = "_expanded_1a7pu_285", Un = "_sectionItems_1a7pu_289", Gn = "_navItem_1a7pu_297", Qn = "_active_1a7pu_310", Xn = "_navItemContent_1a7pu_316", Yn = "_navItemTitle_1a7pu_322", M = {
1167
- backdrop: xn,
1166
+ const In = "_backdrop_1a7pu_1", kn = "_open_1a7pu_13", Cn = "_mobileMenu_1a7pu_18", Tn = "_header_1a7pu_37", yn = "_brand_1a7pu_46", Sn = "_cloudIcon_1a7pu_53", Ln = "_title_1a7pu_62", Pn = "_closeButton_1a7pu_69", Bn = "_closeIcon_1a7pu_101", Mn = "_languageSection_1a7pu_106", Dn = "_languageSelect_1a7pu_112", En = "_languageButton_1a7pu_117", On = "_icon_1a7pu_156", Rn = "_chevron_1a7pu_162", jn = "_languageDropdown_1a7pu_172", An = "_languageOption_1a7pu_185", Wn = "_selected_1a7pu_226", Hn = "_scrollArea_1a7pu_231", qn = "_navigation_1a7pu_237", Fn = "_section_1a7pu_241", zn = "_sectionButton_1a7pu_245", Kn = "_expanded_1a7pu_285", Un = "_sectionItems_1a7pu_289", Gn = "_navItem_1a7pu_297", Qn = "_active_1a7pu_310", Xn = "_navItemContent_1a7pu_316", Yn = "_navItemTitle_1a7pu_322", D = {
1167
+ backdrop: In,
1168
1168
  open: kn,
1169
1169
  mobileMenu: Cn,
1170
1170
  header: Tn,
1171
- brand: Sn,
1172
- cloudIcon: yn,
1171
+ brand: yn,
1172
+ cloudIcon: Sn,
1173
1173
  title: Ln,
1174
1174
  closeButton: Pn,
1175
1175
  closeIcon: Bn,
1176
- languageSection: Dn,
1177
- languageSelect: Mn,
1176
+ languageSection: Mn,
1177
+ languageSelect: Dn,
1178
1178
  languageButton: En,
1179
1179
  icon: On,
1180
1180
  chevron: Rn,
1181
1181
  languageDropdown: jn,
1182
1182
  languageOption: An,
1183
- selected: Hn,
1184
- scrollArea: Wn,
1183
+ selected: Wn,
1184
+ scrollArea: Hn,
1185
1185
  navigation: qn,
1186
1186
  section: Fn,
1187
1187
  sectionButton: zn,
@@ -1193,45 +1193,45 @@ const xn = "_backdrop_1a7pu_1", kn = "_open_1a7pu_13", Cn = "_mobileMenu_1a7pu_1
1193
1193
  navItemTitle: Yn
1194
1194
  };
1195
1195
  function Vn({ isOpen: t, onClose: n }) {
1196
- const { config: s } = j(), a = s.logo;
1196
+ const { config: s } = j(), o = s.logo;
1197
1197
  return P(() => (t ? document.body.style.overflow = "hidden" : document.body.style.overflow = "unset", () => {
1198
1198
  document.body.style.overflow = "unset";
1199
1199
  }), [t]), P(() => {
1200
- const c = (o) => {
1201
- o.key === "Escape" && t && n();
1200
+ const c = (a) => {
1201
+ a.key === "Escape" && t && n();
1202
1202
  };
1203
1203
  return document.addEventListener("keydown", c), () => document.removeEventListener("keydown", c);
1204
1204
  }, [t, n]), /* @__PURE__ */ d(K, { children: [
1205
1205
  /* @__PURE__ */ e(
1206
1206
  "div",
1207
1207
  {
1208
- className: `${M.backdrop} ${t ? M.open : ""}`,
1208
+ className: `${D.backdrop} ${t ? D.open : ""}`,
1209
1209
  onClick: n
1210
1210
  }
1211
1211
  ),
1212
- /* @__PURE__ */ d("div", { className: `${M.mobileMenu} ${t ? M.open : ""}`, children: [
1213
- /* @__PURE__ */ d("div", { className: M.header, children: [
1214
- /* @__PURE__ */ d("div", { className: M.brand, children: [
1215
- a && /* @__PURE__ */ e(a, { className: M.cloudIcon }),
1216
- /* @__PURE__ */ e("h1", { className: M.title, children: s.title })
1212
+ /* @__PURE__ */ d("div", { className: `${D.mobileMenu} ${t ? D.open : ""}`, children: [
1213
+ /* @__PURE__ */ d("div", { className: D.header, children: [
1214
+ /* @__PURE__ */ d("div", { className: D.brand, children: [
1215
+ o && /* @__PURE__ */ e(o, { className: D.cloudIcon }),
1216
+ /* @__PURE__ */ e("h1", { className: D.title, children: s.title })
1217
1217
  ] }),
1218
1218
  /* @__PURE__ */ e(
1219
1219
  "button",
1220
1220
  {
1221
1221
  type: "button",
1222
- className: M.closeButton,
1222
+ className: D.closeButton,
1223
1223
  onClick: n,
1224
1224
  "aria-label": "Close menu",
1225
- children: /* @__PURE__ */ e(se, { className: M.closeIcon })
1225
+ children: /* @__PURE__ */ e(se, { className: D.closeIcon })
1226
1226
  }
1227
1227
  )
1228
1228
  ] }),
1229
- /* @__PURE__ */ e("div", { className: M.languageSection, children: /* @__PURE__ */ e(ce, { styles: M, onLanguageChange: n }) }),
1230
- /* @__PURE__ */ e("div", { className: M.scrollArea, children: /* @__PURE__ */ e(re, { styles: M, onLinkClick: n }) })
1229
+ /* @__PURE__ */ e("div", { className: D.languageSection, children: /* @__PURE__ */ e(ce, { styles: D, onLanguageChange: n }) }),
1230
+ /* @__PURE__ */ e("div", { className: D.scrollArea, children: /* @__PURE__ */ e(re, { styles: D, onLinkClick: n }) })
1231
1231
  ] })
1232
1232
  ] });
1233
1233
  }
1234
- const Jn = "_sidebar_1tdxt_1", Zn = "_header_1tdxt_17", eo = "_brand_1tdxt_29", to = "_cloudIcon_1tdxt_35", no = "_title_1tdxt_44", oo = "_languageSelect_1tdxt_55", ao = "_languageButton_1tdxt_61", so = "_icon_1tdxt_99", co = "_chevron_1tdxt_104", ro = "_languageDropdown_1tdxt_114", lo = "_languageOption_1tdxt_128", io = "_selected_1tdxt_147", uo = "_scrollArea_1tdxt_152", ho = "_navigation_1tdxt_158", mo = "_section_1tdxt_164", go = "_sectionButton_1tdxt_170", _o = "_expanded_1tdxt_213", po = "_sectionItems_1tdxt_217", fo = "_navItem_1tdxt_225", vo = "_active_1tdxt_238", bo = "_navItemContent_1tdxt_243", W = {
1234
+ const Jn = "_sidebar_1tdxt_1", Zn = "_header_1tdxt_17", eo = "_brand_1tdxt_29", to = "_cloudIcon_1tdxt_35", no = "_title_1tdxt_44", oo = "_languageSelect_1tdxt_55", ao = "_languageButton_1tdxt_61", so = "_icon_1tdxt_99", co = "_chevron_1tdxt_104", ro = "_languageDropdown_1tdxt_114", lo = "_languageOption_1tdxt_128", io = "_selected_1tdxt_147", uo = "_scrollArea_1tdxt_152", ho = "_navigation_1tdxt_158", mo = "_section_1tdxt_164", go = "_sectionButton_1tdxt_170", _o = "_expanded_1tdxt_213", po = "_sectionItems_1tdxt_217", fo = "_navItem_1tdxt_225", vo = "_active_1tdxt_238", bo = "_navItemContent_1tdxt_243", H = {
1235
1235
  sidebar: Jn,
1236
1236
  header: Zn,
1237
1237
  brand: eo,
@@ -1256,39 +1256,39 @@ const Jn = "_sidebar_1tdxt_1", Zn = "_header_1tdxt_17", eo = "_brand_1tdxt_29",
1256
1256
  };
1257
1257
  function wo() {
1258
1258
  const { config: t } = j(), n = t.logo, s = t.supportedLanguages.length > 1;
1259
- return /* @__PURE__ */ d("div", { className: W.sidebar, children: [
1260
- /* @__PURE__ */ d("div", { className: W.header, children: [
1261
- /* @__PURE__ */ d("div", { className: W.brand, children: [
1262
- n && /* @__PURE__ */ e(n, { className: W.cloudIcon }),
1263
- /* @__PURE__ */ e("div", { className: W.title, children: t.title })
1259
+ return /* @__PURE__ */ d("div", { className: H.sidebar, children: [
1260
+ /* @__PURE__ */ d("div", { className: H.header, children: [
1261
+ /* @__PURE__ */ d("div", { className: H.brand, children: [
1262
+ n && /* @__PURE__ */ e(n, { className: H.cloudIcon }),
1263
+ /* @__PURE__ */ e("div", { className: H.title, children: t.title })
1264
1264
  ] }),
1265
- s && /* @__PURE__ */ e(ce, { styles: W })
1265
+ s && /* @__PURE__ */ e(ce, { styles: H })
1266
1266
  ] }),
1267
- /* @__PURE__ */ e("div", { className: W.scrollArea, children: /* @__PURE__ */ e(re, { styles: W }) })
1267
+ /* @__PURE__ */ e("div", { className: H.scrollArea, children: /* @__PURE__ */ e(re, { styles: H }) })
1268
1268
  ] });
1269
1269
  }
1270
- const $o = "_app_szn27_1", No = "_layout_szn27_9", Io = "_main_szn27_15", xo = "_fullWidth_szn27_21", ko = "_contentWrapper_szn27_24", J = {
1270
+ const $o = "_app_szn27_1", No = "_layout_szn27_9", xo = "_main_szn27_15", Io = "_fullWidth_szn27_21", ko = "_contentWrapper_szn27_24", J = {
1271
1271
  app: $o,
1272
1272
  layout: No,
1273
- main: Io,
1274
- fullWidth: xo,
1273
+ main: xo,
1274
+ fullWidth: Io,
1275
1275
  contentWrapper: ko
1276
1276
  };
1277
1277
  function Co({ children: t }) {
1278
- const { language: n } = ae(), { i18n: s } = R(), { config: a } = j(), [c, o] = L(!1);
1278
+ const { language: n } = ae(), { i18n: s } = R(), { config: o } = j(), [c, a] = L(!1);
1279
1279
  P(() => {
1280
- n && a.supportedLanguages.includes(n) && s.changeLanguage(n);
1281
- }, [n, s, a.supportedLanguages]);
1280
+ n && o.supportedLanguages.includes(n) && s.changeLanguage(n);
1281
+ }, [n, s, o.supportedLanguages]);
1282
1282
  const l = () => {
1283
- o(!c);
1283
+ a(!c);
1284
1284
  }, g = () => {
1285
- o(!1);
1285
+ a(!1);
1286
1286
  };
1287
- if (!n || !a.supportedLanguages.includes(n))
1287
+ if (!n || !o.supportedLanguages.includes(n))
1288
1288
  return /* @__PURE__ */ e(fe, { to: "/en/welcome", replace: !0 });
1289
- const u = !!a.header, p = !!a.navigationData && a.navigationData.length > 0;
1289
+ const u = !!o.header, p = !!o.navigationData && o.navigationData.length > 0, w = o.contentMaxWidth ? { maxWidth: o.contentMaxWidth } : void 0;
1290
1290
  return /* @__PURE__ */ d("div", { className: J.app, children: [
1291
- u && /* @__PURE__ */ e(In, { onMobileMenuToggle: l }),
1291
+ u && /* @__PURE__ */ e(xn, { onMobileMenuToggle: l }),
1292
1292
  /* @__PURE__ */ e(Vn, { isOpen: c, onClose: g }),
1293
1293
  /* @__PURE__ */ d("div", { className: J.layout, children: [
1294
1294
  p && /* @__PURE__ */ e(wo, {}),
@@ -1296,20 +1296,20 @@ function Co({ children: t }) {
1296
1296
  "main",
1297
1297
  {
1298
1298
  className: `${J.main} ${p ? "" : J.fullWidth}`,
1299
- children: /* @__PURE__ */ e("div", { className: J.contentWrapper, children: t })
1299
+ children: /* @__PURE__ */ e("div", { className: J.contentWrapper, style: w, children: t })
1300
1300
  }
1301
1301
  )
1302
1302
  ] })
1303
1303
  ] });
1304
1304
  }
1305
- function Ho() {
1305
+ function Wo() {
1306
1306
  const { language: t } = ae();
1307
1307
  return /* @__PURE__ */ e(Co, { children: /* @__PURE__ */ d(Ce, { children: [
1308
1308
  /* @__PURE__ */ e(ue, { path: "/:slug", element: /* @__PURE__ */ e(Rt, { language: t }) }),
1309
1309
  /* @__PURE__ */ e(ue, { path: "/", element: /* @__PURE__ */ e(fe, { to: "welcome", replace: !0 }) })
1310
1310
  ] }) });
1311
1311
  }
1312
- function Wo() {
1312
+ function Ho() {
1313
1313
  return {
1314
1314
  openSearchModal: () => {
1315
1315
  window.dispatchEvent(new CustomEvent("blog:open-search"));
@@ -1320,26 +1320,26 @@ function Wo() {
1320
1320
  };
1321
1321
  }
1322
1322
  function qo() {
1323
- const { i18n: t } = R(), n = U(), s = G(), { config: a } = j();
1323
+ const { i18n: t } = R(), n = U(), s = G(), { config: o } = j();
1324
1324
  return (c) => {
1325
- const o = a.basePath || "";
1325
+ const a = o.basePath || "";
1326
1326
  let l = n.pathname;
1327
- o && l.startsWith(o) && (l = l.slice(o.length));
1327
+ a && l.startsWith(a) && (l = l.slice(a.length));
1328
1328
  const g = l.split("/").filter(Boolean), u = g[0];
1329
1329
  let p = "";
1330
- a.supportedLanguages.includes(u) ? (g[0] = c, p = `${o}/${g.join("/")}`) : p = `${o}/${c}${l}`;
1330
+ o.supportedLanguages.includes(u) ? (g[0] = c, p = `${a}/${g.join("/")}`) : p = `${a}/${c}${l}`;
1331
1331
  const w = p + n.search + n.hash;
1332
1332
  t.changeLanguage(c), s(w);
1333
1333
  };
1334
1334
  }
1335
1335
  export {
1336
- He as AdvancedModeToggle,
1336
+ We as AdvancedModeToggle,
1337
1337
  jo as BlogProvider,
1338
- We as BlogRoot,
1338
+ He as BlogRoot,
1339
1339
  Rt as ContentPage,
1340
1340
  Co as DocumentationLayout,
1341
- Ho as DocumentationRoutes,
1342
- In as Header,
1341
+ Wo as DocumentationRoutes,
1342
+ xn as Header,
1343
1343
  ce as LanguageSelector,
1344
1344
  Vn as MobileMenu,
1345
1345
  Ao as NavigationContent,
@@ -1355,6 +1355,6 @@ export {
1355
1355
  te as getNavigationData,
1356
1356
  j as useBlogConfig,
1357
1357
  qo as useLanguageChange,
1358
- Wo as useSearchModal,
1358
+ Ho as useSearchModal,
1359
1359
  Ne as useTheme
1360
1360
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@x-wave/blog",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {