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