react-docs-ui 0.5.1 → 0.5.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/dist/react-docs-ui.css +1 -1
- package/dist/react-docs-ui.es.js +751 -661
- package/package.json +2 -2
package/dist/react-docs-ui.es.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import * as b from "react";
|
|
2
|
-
import
|
|
3
|
-
import { ChevronRightIcon as
|
|
4
|
-
import { useNavigate as
|
|
5
|
-
import { Slot as
|
|
6
|
-
import { cva as
|
|
7
|
-
import { clsx as
|
|
8
|
-
import { twMerge as
|
|
2
|
+
import wt, { createContext as it, useState as E, useEffect as W, useContext as ct, useRef as Ne, useCallback as I, useMemo as ae } from "react";
|
|
3
|
+
import { ChevronRightIcon as lt, CheckIcon as dt, CircleIcon as ut, Globe as pt, Sun as jt, Moon as kt, Menu as Nt, Github as qe, MoreVertical as St, ChevronRight as Ue, X as $t, ChevronUp as Ct, ArrowLeft as Tt, ArrowRight as qt, Mail as Pt, Tv as Mt, MessageCircle as Ot, MessageSquare as Xe, Youtube as zt, Twitter as Rt, Send as Et, Video as Dt, Flame as It, BookOpen as Lt, XIcon as At, SearchIcon as Gt } from "lucide-react";
|
|
4
|
+
import { useNavigate as ze, useLocation as Y, Link as U, useParams as Re, createBrowserRouter as Bt, RouterProvider as Wt, Outlet as Ft } from "react-router-dom";
|
|
5
|
+
import { Slot as Zt } from "@radix-ui/react-slot";
|
|
6
|
+
import { cva as Ut } from "class-variance-authority";
|
|
7
|
+
import { clsx as Xt } from "clsx";
|
|
8
|
+
import { twMerge as Yt } from "tailwind-merge";
|
|
9
9
|
import * as k from "@radix-ui/react-dropdown-menu";
|
|
10
10
|
import * as ne from "@radix-ui/react-tooltip";
|
|
11
|
-
import * as
|
|
11
|
+
import * as Ee from "@radix-ui/react-collapsible";
|
|
12
12
|
import * as se from "@radix-ui/react-scroll-area";
|
|
13
|
-
import { Command as
|
|
13
|
+
import { Command as Q } from "cmdk";
|
|
14
14
|
import * as X from "@radix-ui/react-dialog";
|
|
15
15
|
import * as N from "@radix-ui/react-context-menu";
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
16
|
+
import Vt from "react-markdown";
|
|
17
|
+
import Ht from "rehype-autolink-headings";
|
|
18
|
+
import Jt from "rehype-slug";
|
|
19
|
+
import Qt from "remark-gfm";
|
|
20
20
|
import Kt from "rehype-raw";
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import { visit as
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
21
|
+
import en from "rehype-highlight";
|
|
22
|
+
import tn from "remark-math";
|
|
23
|
+
import nn from "rehype-katex";
|
|
24
|
+
import { visit as mt, SKIP as on } from "unist-util-visit";
|
|
25
|
+
import De from "katex";
|
|
26
|
+
import rn from "katex-physics";
|
|
27
|
+
import an from "js-yaml";
|
|
28
28
|
var le = { exports: {} }, oe = {};
|
|
29
29
|
/**
|
|
30
30
|
* @license React
|
|
@@ -35,14 +35,14 @@ var le = { exports: {} }, oe = {};
|
|
|
35
35
|
* This source code is licensed under the MIT license found in the
|
|
36
36
|
* LICENSE file in the root directory of this source tree.
|
|
37
37
|
*/
|
|
38
|
-
var
|
|
39
|
-
function
|
|
40
|
-
if (
|
|
41
|
-
|
|
38
|
+
var Ye;
|
|
39
|
+
function sn() {
|
|
40
|
+
if (Ye) return oe;
|
|
41
|
+
Ye = 1;
|
|
42
42
|
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
43
43
|
function o(r, a, i) {
|
|
44
|
-
var
|
|
45
|
-
if (i !== void 0 && (
|
|
44
|
+
var u = null;
|
|
45
|
+
if (i !== void 0 && (u = "" + i), a.key !== void 0 && (u = "" + a.key), "key" in a) {
|
|
46
46
|
i = {};
|
|
47
47
|
for (var s in a)
|
|
48
48
|
s !== "key" && (i[s] = a[s]);
|
|
@@ -50,7 +50,7 @@ function an() {
|
|
|
50
50
|
return a = i.ref, {
|
|
51
51
|
$$typeof: e,
|
|
52
52
|
type: r,
|
|
53
|
-
key:
|
|
53
|
+
key: u,
|
|
54
54
|
ref: a !== void 0 ? a : null,
|
|
55
55
|
props: i
|
|
56
56
|
};
|
|
@@ -67,24 +67,24 @@ var re = {};
|
|
|
67
67
|
* This source code is licensed under the MIT license found in the
|
|
68
68
|
* LICENSE file in the root directory of this source tree.
|
|
69
69
|
*/
|
|
70
|
-
var
|
|
71
|
-
function
|
|
72
|
-
return
|
|
70
|
+
var Ve;
|
|
71
|
+
function cn() {
|
|
72
|
+
return Ve || (Ve = 1, process.env.NODE_ENV !== "production" && function() {
|
|
73
73
|
function e(p) {
|
|
74
74
|
if (p == null) return null;
|
|
75
75
|
if (typeof p == "function")
|
|
76
76
|
return p.$$typeof === G ? null : p.displayName || p.name || null;
|
|
77
77
|
if (typeof p == "string") return p;
|
|
78
78
|
switch (p) {
|
|
79
|
-
case
|
|
79
|
+
case T:
|
|
80
80
|
return "Fragment";
|
|
81
81
|
case M:
|
|
82
82
|
return "Profiler";
|
|
83
|
-
case
|
|
83
|
+
case v:
|
|
84
84
|
return "StrictMode";
|
|
85
|
-
case
|
|
85
|
+
case L:
|
|
86
86
|
return "Suspense";
|
|
87
|
-
case
|
|
87
|
+
case C:
|
|
88
88
|
return "SuspenseList";
|
|
89
89
|
case F:
|
|
90
90
|
return "Activity";
|
|
@@ -93,7 +93,7 @@ function sn() {
|
|
|
93
93
|
switch (typeof p.tag == "number" && console.error(
|
|
94
94
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
95
95
|
), p.$$typeof) {
|
|
96
|
-
case
|
|
96
|
+
case m:
|
|
97
97
|
return "Portal";
|
|
98
98
|
case j:
|
|
99
99
|
return (p.displayName || "Context") + ".Provider";
|
|
@@ -104,7 +104,7 @@ function sn() {
|
|
|
104
104
|
return p = p.displayName, p || (p = _.displayName || _.name || "", p = p !== "" ? "ForwardRef(" + p + ")" : "ForwardRef"), p;
|
|
105
105
|
case J:
|
|
106
106
|
return _ = p.displayName || null, _ !== null ? _ : e(p.type) || "Memo";
|
|
107
|
-
case
|
|
107
|
+
case A:
|
|
108
108
|
_ = p._payload, p = p._init;
|
|
109
109
|
try {
|
|
110
110
|
return e(p(_));
|
|
@@ -134,8 +134,8 @@ function sn() {
|
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
function r(p) {
|
|
137
|
-
if (p ===
|
|
138
|
-
if (typeof p == "object" && p !== null && p.$$typeof ===
|
|
137
|
+
if (p === T) return "<>";
|
|
138
|
+
if (typeof p == "object" && p !== null && p.$$typeof === A)
|
|
139
139
|
return "<...>";
|
|
140
140
|
try {
|
|
141
141
|
var _ = e(p);
|
|
@@ -151,8 +151,8 @@ function sn() {
|
|
|
151
151
|
function i() {
|
|
152
152
|
return Error("react-stack-top-frame");
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
if (
|
|
154
|
+
function u(p) {
|
|
155
|
+
if (D.call(p, "key")) {
|
|
156
156
|
var _ = Object.getOwnPropertyDescriptor(p, "key").get;
|
|
157
157
|
if (_ && _.isReactWarning) return !1;
|
|
158
158
|
}
|
|
@@ -160,7 +160,7 @@ function sn() {
|
|
|
160
160
|
}
|
|
161
161
|
function s(p, _) {
|
|
162
162
|
function S() {
|
|
163
|
-
|
|
163
|
+
Ge || (Ge = !0, console.error(
|
|
164
164
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
165
165
|
_
|
|
166
166
|
));
|
|
@@ -172,13 +172,13 @@ function sn() {
|
|
|
172
172
|
}
|
|
173
173
|
function c() {
|
|
174
174
|
var p = e(this.type);
|
|
175
|
-
return
|
|
175
|
+
return Be[p] || (Be[p] = !0, console.error(
|
|
176
176
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
177
177
|
)), p = this.props.ref, p !== void 0 ? p : null;
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function d(p, _, S, z, V, B, we, je) {
|
|
180
180
|
return S = B.ref, p = {
|
|
181
|
-
$$typeof:
|
|
181
|
+
$$typeof: h,
|
|
182
182
|
type: p,
|
|
183
183
|
key: _,
|
|
184
184
|
props: B,
|
|
@@ -208,25 +208,25 @@ function sn() {
|
|
|
208
208
|
value: je
|
|
209
209
|
}), Object.freeze && (Object.freeze(p.props), Object.freeze(p)), p;
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function g(p, _, S, z, V, B, we, je) {
|
|
212
212
|
var R = _.children;
|
|
213
213
|
if (R !== void 0)
|
|
214
214
|
if (z)
|
|
215
215
|
if (q(R)) {
|
|
216
216
|
for (z = 0; z < R.length; z++)
|
|
217
|
-
|
|
217
|
+
y(R[z]);
|
|
218
218
|
Object.freeze && Object.freeze(R);
|
|
219
219
|
} else
|
|
220
220
|
console.error(
|
|
221
221
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
222
222
|
);
|
|
223
|
-
else
|
|
224
|
-
if (
|
|
223
|
+
else y(R);
|
|
224
|
+
if (D.call(_, "key")) {
|
|
225
225
|
R = e(p);
|
|
226
|
-
var
|
|
227
|
-
return
|
|
226
|
+
var K = Object.keys(_).filter(function(bt) {
|
|
227
|
+
return bt !== "key";
|
|
228
228
|
});
|
|
229
|
-
z = 0 <
|
|
229
|
+
z = 0 < K.length ? "{key: someKey, " + K.join(": ..., ") + ": ...}" : "{key: someKey}", Ze[R + z] || (K = 0 < K.length ? "{" + K.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
230
230
|
`A props object containing a "key" prop is being spread into JSX:
|
|
231
231
|
let props = %s;
|
|
232
232
|
<%s {...props} />
|
|
@@ -235,11 +235,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
235
235
|
<%s key={someKey} {...props} />`,
|
|
236
236
|
z,
|
|
237
237
|
R,
|
|
238
|
-
|
|
238
|
+
K,
|
|
239
239
|
R
|
|
240
|
-
),
|
|
240
|
+
), Ze[R + z] = !0);
|
|
241
241
|
}
|
|
242
|
-
if (R = null, S !== void 0 && (o(S), R = "" + S),
|
|
242
|
+
if (R = null, S !== void 0 && (o(S), R = "" + S), u(_) && (o(_.key), R = "" + _.key), "key" in _) {
|
|
243
243
|
S = {};
|
|
244
244
|
for (var ke in _)
|
|
245
245
|
ke !== "key" && (S[ke] = _[ke]);
|
|
@@ -247,7 +247,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
247
247
|
return R && s(
|
|
248
248
|
S,
|
|
249
249
|
typeof p == "function" ? p.displayName || p.name || "Unknown" : p
|
|
250
|
-
),
|
|
250
|
+
), d(
|
|
251
251
|
p,
|
|
252
252
|
R,
|
|
253
253
|
B,
|
|
@@ -258,58 +258,58 @@ React keys must be passed directly to JSX without using spread:
|
|
|
258
258
|
je
|
|
259
259
|
);
|
|
260
260
|
}
|
|
261
|
-
function
|
|
262
|
-
typeof p == "object" && p !== null && p.$$typeof ===
|
|
261
|
+
function y(p) {
|
|
262
|
+
typeof p == "object" && p !== null && p.$$typeof === h && p._store && (p._store.validated = 1);
|
|
263
263
|
}
|
|
264
|
-
var
|
|
264
|
+
var f = wt, h = Symbol.for("react.transitional.element"), m = Symbol.for("react.portal"), T = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), M = Symbol.for("react.profiler"), $ = Symbol.for("react.consumer"), j = Symbol.for("react.context"), O = Symbol.for("react.forward_ref"), L = Symbol.for("react.suspense"), C = Symbol.for("react.suspense_list"), J = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), F = Symbol.for("react.activity"), G = Symbol.for("react.client.reference"), Z = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, D = Object.prototype.hasOwnProperty, q = Array.isArray, be = console.createTask ? console.createTask : function() {
|
|
265
265
|
return null;
|
|
266
266
|
};
|
|
267
|
-
|
|
267
|
+
f = {
|
|
268
268
|
react_stack_bottom_frame: function(p) {
|
|
269
269
|
return p();
|
|
270
270
|
}
|
|
271
271
|
};
|
|
272
|
-
var
|
|
273
|
-
|
|
272
|
+
var Ge, Be = {}, We = f.react_stack_bottom_frame.bind(
|
|
273
|
+
f,
|
|
274
274
|
i
|
|
275
|
-
)(),
|
|
276
|
-
re.Fragment =
|
|
275
|
+
)(), Fe = be(r(i)), Ze = {};
|
|
276
|
+
re.Fragment = T, re.jsx = function(p, _, S, z, V) {
|
|
277
277
|
var B = 1e4 > Z.recentlyCreatedOwnerStacks++;
|
|
278
|
-
return
|
|
278
|
+
return g(
|
|
279
279
|
p,
|
|
280
280
|
_,
|
|
281
281
|
S,
|
|
282
282
|
!1,
|
|
283
283
|
z,
|
|
284
284
|
V,
|
|
285
|
-
B ? Error("react-stack-top-frame") :
|
|
286
|
-
B ? be(r(p)) :
|
|
285
|
+
B ? Error("react-stack-top-frame") : We,
|
|
286
|
+
B ? be(r(p)) : Fe
|
|
287
287
|
);
|
|
288
288
|
}, re.jsxs = function(p, _, S, z, V) {
|
|
289
289
|
var B = 1e4 > Z.recentlyCreatedOwnerStacks++;
|
|
290
|
-
return
|
|
290
|
+
return g(
|
|
291
291
|
p,
|
|
292
292
|
_,
|
|
293
293
|
S,
|
|
294
294
|
!0,
|
|
295
295
|
z,
|
|
296
296
|
V,
|
|
297
|
-
B ? Error("react-stack-top-frame") :
|
|
298
|
-
B ? be(r(p)) :
|
|
297
|
+
B ? Error("react-stack-top-frame") : We,
|
|
298
|
+
B ? be(r(p)) : Fe
|
|
299
299
|
);
|
|
300
300
|
};
|
|
301
301
|
}()), re;
|
|
302
302
|
}
|
|
303
|
-
var
|
|
304
|
-
function
|
|
305
|
-
return
|
|
303
|
+
var He;
|
|
304
|
+
function ln() {
|
|
305
|
+
return He || (He = 1, process.env.NODE_ENV === "production" ? le.exports = sn() : le.exports = cn()), le.exports;
|
|
306
306
|
}
|
|
307
|
-
var n =
|
|
308
|
-
const
|
|
307
|
+
var n = ln();
|
|
308
|
+
const dn = {
|
|
309
309
|
theme: "system",
|
|
310
310
|
setTheme: () => null
|
|
311
|
-
},
|
|
312
|
-
function
|
|
311
|
+
}, ht = it(dn);
|
|
312
|
+
function un({
|
|
313
313
|
children: e,
|
|
314
314
|
defaultTheme: t = "system",
|
|
315
315
|
storageKey: o = "vite-ui-theme",
|
|
@@ -327,24 +327,24 @@ function dn({
|
|
|
327
327
|
}
|
|
328
328
|
s.classList.add(a);
|
|
329
329
|
}, [a]);
|
|
330
|
-
const
|
|
330
|
+
const u = {
|
|
331
331
|
theme: a,
|
|
332
332
|
setTheme: (s) => {
|
|
333
333
|
localStorage.setItem(o, s), i(s);
|
|
334
334
|
}
|
|
335
335
|
};
|
|
336
|
-
return /* @__PURE__ */ n.jsx(
|
|
336
|
+
return /* @__PURE__ */ n.jsx(ht.Provider, { ...r, value: u, children: e });
|
|
337
337
|
}
|
|
338
338
|
const ve = () => {
|
|
339
|
-
const e =
|
|
339
|
+
const e = ct(ht);
|
|
340
340
|
if (e === void 0)
|
|
341
341
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
342
342
|
return e;
|
|
343
343
|
};
|
|
344
|
-
function
|
|
345
|
-
return Xt(
|
|
344
|
+
function x(...e) {
|
|
345
|
+
return Yt(Xt(e));
|
|
346
346
|
}
|
|
347
|
-
const ie =
|
|
347
|
+
const ie = Ut(
|
|
348
348
|
"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
|
|
349
349
|
{
|
|
350
350
|
variants: {
|
|
@@ -370,11 +370,11 @@ const ie = Zt(
|
|
|
370
370
|
}
|
|
371
371
|
), Ie = b.forwardRef(
|
|
372
372
|
({ className: e, variant: t, size: o, asChild: r = !1, ...a }, i) => {
|
|
373
|
-
const
|
|
373
|
+
const u = r ? Zt : "button";
|
|
374
374
|
return /* @__PURE__ */ n.jsx(
|
|
375
|
-
|
|
375
|
+
u,
|
|
376
376
|
{
|
|
377
|
-
className:
|
|
377
|
+
className: x(ie({ variant: t, size: o, className: e })),
|
|
378
378
|
ref: i,
|
|
379
379
|
...a
|
|
380
380
|
}
|
|
@@ -382,11 +382,11 @@ const ie = Zt(
|
|
|
382
382
|
}
|
|
383
383
|
);
|
|
384
384
|
Ie.displayName = "Button";
|
|
385
|
-
const
|
|
385
|
+
const Le = k.Root, Ae = k.Trigger, Bo = k.Group, Wo = k.Portal, Fo = k.Sub, Zo = k.RadioGroup, pn = b.forwardRef(({ className: e, inset: t, children: o, ...r }, a) => /* @__PURE__ */ n.jsxs(
|
|
386
386
|
k.SubTrigger,
|
|
387
387
|
{
|
|
388
388
|
ref: a,
|
|
389
|
-
className:
|
|
389
|
+
className: x(
|
|
390
390
|
"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
|
|
391
391
|
t && "pl-8",
|
|
392
392
|
e
|
|
@@ -394,29 +394,29 @@ const De = k.Root, Ae = k.Trigger, Io = k.Group, Do = k.Portal, Ao = k.Sub, Lo =
|
|
|
394
394
|
...r,
|
|
395
395
|
children: [
|
|
396
396
|
o,
|
|
397
|
-
/* @__PURE__ */ n.jsx(
|
|
397
|
+
/* @__PURE__ */ n.jsx(lt, { className: "ml-auto h-4 w-4" })
|
|
398
398
|
]
|
|
399
399
|
}
|
|
400
400
|
));
|
|
401
|
-
|
|
402
|
-
const
|
|
401
|
+
pn.displayName = k.SubTrigger.displayName;
|
|
402
|
+
const mn = b.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ n.jsx(
|
|
403
403
|
k.SubContent,
|
|
404
404
|
{
|
|
405
405
|
ref: o,
|
|
406
|
-
className:
|
|
406
|
+
className: x(
|
|
407
407
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
408
408
|
e
|
|
409
409
|
),
|
|
410
410
|
...t
|
|
411
411
|
}
|
|
412
412
|
));
|
|
413
|
-
|
|
413
|
+
mn.displayName = k.SubContent.displayName;
|
|
414
414
|
const _e = b.forwardRef(({ className: e, sideOffset: t = 4, ...o }, r) => /* @__PURE__ */ n.jsx(k.Portal, { children: /* @__PURE__ */ n.jsx(
|
|
415
415
|
k.Content,
|
|
416
416
|
{
|
|
417
417
|
ref: r,
|
|
418
418
|
sideOffset: t,
|
|
419
|
-
className:
|
|
419
|
+
className: x(
|
|
420
420
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
421
421
|
e
|
|
422
422
|
),
|
|
@@ -428,7 +428,7 @@ const H = b.forwardRef(({ className: e, inset: t, ...o }, r) => /* @__PURE__ */
|
|
|
428
428
|
k.Item,
|
|
429
429
|
{
|
|
430
430
|
ref: r,
|
|
431
|
-
className:
|
|
431
|
+
className: x(
|
|
432
432
|
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
433
433
|
t && "pl-8",
|
|
434
434
|
e
|
|
@@ -437,44 +437,44 @@ const H = b.forwardRef(({ className: e, inset: t, ...o }, r) => /* @__PURE__ */
|
|
|
437
437
|
}
|
|
438
438
|
));
|
|
439
439
|
H.displayName = k.Item.displayName;
|
|
440
|
-
const
|
|
440
|
+
const hn = b.forwardRef(({ className: e, children: t, checked: o, ...r }, a) => /* @__PURE__ */ n.jsxs(
|
|
441
441
|
k.CheckboxItem,
|
|
442
442
|
{
|
|
443
443
|
ref: a,
|
|
444
|
-
className:
|
|
444
|
+
className: x(
|
|
445
445
|
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
446
446
|
e
|
|
447
447
|
),
|
|
448
448
|
checked: o,
|
|
449
449
|
...r,
|
|
450
450
|
children: [
|
|
451
|
-
/* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(k.ItemIndicator, { children: /* @__PURE__ */ n.jsx(
|
|
451
|
+
/* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(k.ItemIndicator, { children: /* @__PURE__ */ n.jsx(dt, { className: "h-4 w-4" }) }) }),
|
|
452
452
|
t
|
|
453
453
|
]
|
|
454
454
|
}
|
|
455
455
|
));
|
|
456
|
-
|
|
457
|
-
const
|
|
456
|
+
hn.displayName = k.CheckboxItem.displayName;
|
|
457
|
+
const xn = b.forwardRef(({ className: e, children: t, ...o }, r) => /* @__PURE__ */ n.jsxs(
|
|
458
458
|
k.RadioItem,
|
|
459
459
|
{
|
|
460
460
|
ref: r,
|
|
461
|
-
className:
|
|
461
|
+
className: x(
|
|
462
462
|
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
463
463
|
e
|
|
464
464
|
),
|
|
465
465
|
...o,
|
|
466
466
|
children: [
|
|
467
|
-
/* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(k.ItemIndicator, { children: /* @__PURE__ */ n.jsx(
|
|
467
|
+
/* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(k.ItemIndicator, { children: /* @__PURE__ */ n.jsx(ut, { className: "h-2 w-2 fill-current" }) }) }),
|
|
468
468
|
t
|
|
469
469
|
]
|
|
470
470
|
}
|
|
471
471
|
));
|
|
472
|
-
|
|
473
|
-
const
|
|
472
|
+
xn.displayName = k.RadioItem.displayName;
|
|
473
|
+
const fn = b.forwardRef(({ className: e, inset: t, ...o }, r) => /* @__PURE__ */ n.jsx(
|
|
474
474
|
k.Label,
|
|
475
475
|
{
|
|
476
476
|
ref: r,
|
|
477
|
-
className:
|
|
477
|
+
className: x(
|
|
478
478
|
"px-2 py-1.5 text-sm font-semibold",
|
|
479
479
|
t && "pl-8",
|
|
480
480
|
e
|
|
@@ -482,28 +482,28 @@ const xn = b.forwardRef(({ className: e, inset: t, ...o }, r) => /* @__PURE__ */
|
|
|
482
482
|
...o
|
|
483
483
|
}
|
|
484
484
|
));
|
|
485
|
-
|
|
485
|
+
fn.displayName = k.Label.displayName;
|
|
486
486
|
const Pe = b.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ n.jsx(
|
|
487
487
|
k.Separator,
|
|
488
488
|
{
|
|
489
489
|
ref: o,
|
|
490
|
-
className:
|
|
490
|
+
className: x("-mx-1 my-1 h-px bg-muted", e),
|
|
491
491
|
...t
|
|
492
492
|
}
|
|
493
493
|
));
|
|
494
494
|
Pe.displayName = k.Separator.displayName;
|
|
495
|
-
const
|
|
495
|
+
const gn = ({
|
|
496
496
|
className: e,
|
|
497
497
|
...t
|
|
498
498
|
}) => /* @__PURE__ */ n.jsx(
|
|
499
499
|
"span",
|
|
500
500
|
{
|
|
501
|
-
className:
|
|
501
|
+
className: x("ml-auto text-xs tracking-widest opacity-60", e),
|
|
502
502
|
...t
|
|
503
503
|
}
|
|
504
504
|
);
|
|
505
|
-
|
|
506
|
-
const
|
|
505
|
+
gn.displayName = "DropdownMenuShortcut";
|
|
506
|
+
const vn = {
|
|
507
507
|
"zh-cn": {
|
|
508
508
|
switchLanguage: "切换语言"
|
|
509
509
|
},
|
|
@@ -511,32 +511,32 @@ const gn = {
|
|
|
511
511
|
switchLanguage: "Switch language"
|
|
512
512
|
}
|
|
513
513
|
};
|
|
514
|
-
function
|
|
515
|
-
const e =
|
|
514
|
+
function Je() {
|
|
515
|
+
const e = ze(), t = Y(), o = t.pathname.startsWith("/en") ? "en" : "zh-cn", r = vn[o], a = [
|
|
516
516
|
{ code: "en", name: "English" },
|
|
517
517
|
{ code: "zh-cn", name: "简体中文" }
|
|
518
|
-
], i = (
|
|
519
|
-
const s = t.pathname.split("/").filter((
|
|
520
|
-
s.length > 0 && (s[0] === "en" || s[0] === "zh-cn") ? s[0] =
|
|
518
|
+
], i = (u) => {
|
|
519
|
+
const s = t.pathname.split("/").filter((d) => d);
|
|
520
|
+
s.length > 0 && (s[0] === "en" || s[0] === "zh-cn") ? s[0] = u : s.unshift(u);
|
|
521
521
|
const c = `/${s.join("/")}`;
|
|
522
522
|
e(c);
|
|
523
523
|
};
|
|
524
|
-
return /* @__PURE__ */ n.jsxs(
|
|
524
|
+
return /* @__PURE__ */ n.jsxs(Le, { children: [
|
|
525
525
|
/* @__PURE__ */ n.jsx(Ae, { asChild: !0, children: /* @__PURE__ */ n.jsxs(Ie, { variant: "ghost", size: "icon", children: [
|
|
526
|
-
/* @__PURE__ */ n.jsx(
|
|
526
|
+
/* @__PURE__ */ n.jsx(pt, { className: "h-4 w-4" }),
|
|
527
527
|
/* @__PURE__ */ n.jsx("span", { className: "sr-only", children: r.switchLanguage })
|
|
528
528
|
] }) }),
|
|
529
|
-
/* @__PURE__ */ n.jsx(_e, { align: "end", children: a.map((
|
|
529
|
+
/* @__PURE__ */ n.jsx(_e, { align: "end", children: a.map((u) => /* @__PURE__ */ n.jsx(
|
|
530
530
|
H,
|
|
531
531
|
{
|
|
532
|
-
onClick: () => i(
|
|
533
|
-
children:
|
|
532
|
+
onClick: () => i(u.code),
|
|
533
|
+
children: u.name
|
|
534
534
|
},
|
|
535
|
-
|
|
535
|
+
u.code
|
|
536
536
|
)) })
|
|
537
537
|
] });
|
|
538
538
|
}
|
|
539
|
-
const
|
|
539
|
+
const _n = {
|
|
540
540
|
"zh-cn": {
|
|
541
541
|
toggleTheme: "切换主题",
|
|
542
542
|
light: "浅色",
|
|
@@ -550,12 +550,12 @@ const vn = {
|
|
|
550
550
|
system: "System"
|
|
551
551
|
}
|
|
552
552
|
};
|
|
553
|
-
function
|
|
554
|
-
const { setTheme: e } = ve(), o = Y().pathname.startsWith("/en") ? "en" : "zh-cn", r =
|
|
555
|
-
return /* @__PURE__ */ n.jsxs(
|
|
553
|
+
function Qe() {
|
|
554
|
+
const { setTheme: e } = ve(), o = Y().pathname.startsWith("/en") ? "en" : "zh-cn", r = _n[o];
|
|
555
|
+
return /* @__PURE__ */ n.jsxs(Le, { children: [
|
|
556
556
|
/* @__PURE__ */ n.jsx(Ae, { asChild: !0, children: /* @__PURE__ */ n.jsxs(Ie, { variant: "ghost", size: "icon", children: [
|
|
557
|
-
/* @__PURE__ */ n.jsx(
|
|
558
|
-
/* @__PURE__ */ n.jsx(
|
|
557
|
+
/* @__PURE__ */ n.jsx(jt, { className: "h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90" }),
|
|
558
|
+
/* @__PURE__ */ n.jsx(kt, { className: "absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0" }),
|
|
559
559
|
/* @__PURE__ */ n.jsx("span", { className: "sr-only", children: r.toggleTheme })
|
|
560
560
|
] }) }),
|
|
561
561
|
/* @__PURE__ */ n.jsxs(_e, { align: "end", children: [
|
|
@@ -570,7 +570,7 @@ const ue = ne.Provider, pe = ne.Root, me = ne.Trigger, ce = b.forwardRef(({ clas
|
|
|
570
570
|
{
|
|
571
571
|
ref: r,
|
|
572
572
|
sideOffset: t,
|
|
573
|
-
className:
|
|
573
|
+
className: x(
|
|
574
574
|
"z-50 overflow-hidden rounded-md bg-popover px-3 py-1.5 text-xs text-popover-foreground shadow-md border data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
575
575
|
e
|
|
576
576
|
),
|
|
@@ -578,8 +578,8 @@ const ue = ne.Provider, pe = ne.Root, me = ne.Trigger, ce = b.forwardRef(({ clas
|
|
|
578
578
|
}
|
|
579
579
|
) }));
|
|
580
580
|
ce.displayName = ne.Content.displayName;
|
|
581
|
-
function
|
|
582
|
-
const i = Y(),
|
|
581
|
+
function yn({ lang: e, site: t, navbar: o, themeConfig: r, onMenuClick: a }) {
|
|
582
|
+
const i = Y(), u = i.pathname, { theme: s } = ve(), [c, d] = E("light"), g = {
|
|
583
583
|
"zh-cn": {
|
|
584
584
|
switchLanguage: "切换语言",
|
|
585
585
|
switchTheme: "切换主题",
|
|
@@ -592,39 +592,39 @@ function _n({ lang: e, site: t, navbar: o, themeConfig: r, onMenuClick: a }) {
|
|
|
592
592
|
openMenu: "Open menu",
|
|
593
593
|
moreOptions: "More options"
|
|
594
594
|
}
|
|
595
|
-
},
|
|
595
|
+
}, y = i.pathname.startsWith("/en") ? "en" : "zh-cn", f = g[y];
|
|
596
596
|
W(() => {
|
|
597
597
|
if (s === "system") {
|
|
598
|
-
const
|
|
599
|
-
|
|
598
|
+
const v = window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
599
|
+
d(v ? "dark" : "light");
|
|
600
600
|
} else
|
|
601
|
-
|
|
601
|
+
d(s);
|
|
602
602
|
}, [s]);
|
|
603
|
-
const
|
|
604
|
-
light:
|
|
605
|
-
dark:
|
|
603
|
+
const h = (v) => v.startsWith("http") ? v : `/${v.replace(/^\//, "")}`, { light: m, dark: T } = typeof t.logo == "string" ? {
|
|
604
|
+
light: h(t.logo),
|
|
605
|
+
dark: h(t.logo)
|
|
606
606
|
} : {
|
|
607
|
-
light:
|
|
608
|
-
dark:
|
|
607
|
+
light: h(t.logo.light),
|
|
608
|
+
dark: h(t.logo.dark)
|
|
609
609
|
};
|
|
610
610
|
return /* @__PURE__ */ n.jsx("header", { className: "sticky top-0 z-50 w-full border-b border-border/40 bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60", children: /* @__PURE__ */ n.jsxs("div", { className: "container flex h-14 max-w-screen-2xl items-center px-4 md:px-8", children: [
|
|
611
611
|
/* @__PURE__ */ n.jsx(
|
|
612
612
|
"button",
|
|
613
613
|
{
|
|
614
614
|
onClick: a,
|
|
615
|
-
className:
|
|
615
|
+
className: x(
|
|
616
616
|
ie({ variant: "ghost" }),
|
|
617
617
|
"mr-2 px-0 flex-shrink-0 md:hidden"
|
|
618
618
|
),
|
|
619
|
-
"aria-label":
|
|
620
|
-
children: /* @__PURE__ */ n.jsx(
|
|
619
|
+
"aria-label": f.openMenu,
|
|
620
|
+
children: /* @__PURE__ */ n.jsx(Nt, { className: "h-5 w-5" })
|
|
621
621
|
}
|
|
622
622
|
),
|
|
623
623
|
((o.showLogo ?? !0) || (o.showTitle ?? !0)) && /* @__PURE__ */ n.jsxs("div", { className: "mr-6 flex items-center space-x-2 flex-shrink-0", children: [
|
|
624
624
|
(o.showLogo ?? !0) && /* @__PURE__ */ n.jsx(
|
|
625
625
|
"img",
|
|
626
626
|
{
|
|
627
|
-
src: c === "dark" ?
|
|
627
|
+
src: c === "dark" ? T : m,
|
|
628
628
|
alt: t.title,
|
|
629
629
|
width: 24,
|
|
630
630
|
height: 24
|
|
@@ -632,94 +632,94 @@ function _n({ lang: e, site: t, navbar: o, themeConfig: r, onMenuClick: a }) {
|
|
|
632
632
|
),
|
|
633
633
|
(o.showTitle ?? !0) && /* @__PURE__ */ n.jsx("span", { className: "font-bold sm:inline-block whitespace-nowrap", children: t.title })
|
|
634
634
|
] }),
|
|
635
|
-
/* @__PURE__ */ n.jsx("nav", { className: "ml-6 flex items-center space-x-6 text-sm font-medium hidden md:flex", children: o.items.filter((
|
|
636
|
-
(
|
|
635
|
+
/* @__PURE__ */ n.jsx("nav", { className: "ml-6 flex items-center space-x-6 text-sm font-medium hidden md:flex", children: o.items.filter((v) => v.visible !== !1).map(
|
|
636
|
+
(v) => !v.external && /* @__PURE__ */ n.jsx(
|
|
637
637
|
U,
|
|
638
638
|
{
|
|
639
|
-
to: `/${e}${
|
|
640
|
-
className:
|
|
639
|
+
to: `/${e}${v.link}`,
|
|
640
|
+
className: x(
|
|
641
641
|
"transition-colors hover:text-foreground/80",
|
|
642
|
-
|
|
642
|
+
u === `/${e}${v.link}` ? "text-foreground" : "text-foreground/60"
|
|
643
643
|
),
|
|
644
|
-
children:
|
|
644
|
+
children: v.title
|
|
645
645
|
},
|
|
646
|
-
|
|
646
|
+
v.link
|
|
647
647
|
)
|
|
648
648
|
) }),
|
|
649
649
|
/* @__PURE__ */ n.jsxs("div", { className: "flex flex-1 items-center justify-end", children: [
|
|
650
650
|
/* @__PURE__ */ n.jsxs("nav", { className: "flex items-center space-x-2 hidden md:flex", children: [
|
|
651
|
-
(o.actions || []).filter((
|
|
652
|
-
const $ =
|
|
651
|
+
(o.actions || []).filter((v) => v.enabled !== !1).map((v, M) => {
|
|
652
|
+
const $ = v.title || (v.type === "github" ? "GitHub" : "Action");
|
|
653
653
|
return /* @__PURE__ */ n.jsx(ue, { children: /* @__PURE__ */ n.jsxs(pe, { children: [
|
|
654
654
|
/* @__PURE__ */ n.jsx(me, { asChild: !0, children: /* @__PURE__ */ n.jsx(
|
|
655
655
|
"a",
|
|
656
656
|
{
|
|
657
|
-
href:
|
|
657
|
+
href: v.link,
|
|
658
658
|
target: "_blank",
|
|
659
659
|
rel: "noopener noreferrer",
|
|
660
660
|
"aria-label": $,
|
|
661
661
|
children: /* @__PURE__ */ n.jsx(
|
|
662
662
|
"div",
|
|
663
663
|
{
|
|
664
|
-
className:
|
|
664
|
+
className: x(
|
|
665
665
|
ie({ variant: "ghost" }),
|
|
666
666
|
"w-9 px-0"
|
|
667
667
|
),
|
|
668
|
-
children:
|
|
668
|
+
children: v.type === "github" ? /* @__PURE__ */ n.jsx(qe, { className: "h-4 w-4" }) : /* @__PURE__ */ n.jsx("span", { className: "text-sm", children: $ })
|
|
669
669
|
}
|
|
670
670
|
)
|
|
671
671
|
}
|
|
672
672
|
) }),
|
|
673
673
|
/* @__PURE__ */ n.jsx(ce, { align: "center", children: $ })
|
|
674
|
-
] }) },
|
|
674
|
+
] }) }, v.link || `${v.type || "action"}-${M}`);
|
|
675
675
|
}),
|
|
676
676
|
o.showLanguageSwitcher !== !1 && /* @__PURE__ */ n.jsx(ue, { children: /* @__PURE__ */ n.jsxs(pe, { children: [
|
|
677
|
-
/* @__PURE__ */ n.jsx(me, { asChild: !0, children: /* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsx(
|
|
678
|
-
/* @__PURE__ */ n.jsx(ce, { align: "center", children:
|
|
677
|
+
/* @__PURE__ */ n.jsx(me, { asChild: !0, children: /* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsx(Je, {}) }) }),
|
|
678
|
+
/* @__PURE__ */ n.jsx(ce, { align: "center", children: f.switchLanguage })
|
|
679
679
|
] }) }),
|
|
680
680
|
(r?.allowToggle ?? !0) && /* @__PURE__ */ n.jsx(ue, { children: /* @__PURE__ */ n.jsxs(pe, { children: [
|
|
681
|
-
/* @__PURE__ */ n.jsx(me, { asChild: !0, children: /* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsx(
|
|
682
|
-
/* @__PURE__ */ n.jsx(ce, { align: "center", children:
|
|
681
|
+
/* @__PURE__ */ n.jsx(me, { asChild: !0, children: /* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsx(Qe, {}) }) }),
|
|
682
|
+
/* @__PURE__ */ n.jsx(ce, { align: "center", children: f.switchTheme })
|
|
683
683
|
] }) })
|
|
684
684
|
] }),
|
|
685
|
-
/* @__PURE__ */ n.jsx("div", { className: "relative md:hidden", children: /* @__PURE__ */ n.jsxs(
|
|
685
|
+
/* @__PURE__ */ n.jsx("div", { className: "relative md:hidden", children: /* @__PURE__ */ n.jsxs(Le, { children: [
|
|
686
686
|
/* @__PURE__ */ n.jsx(Ae, { asChild: !0, children: /* @__PURE__ */ n.jsx(
|
|
687
687
|
"button",
|
|
688
688
|
{
|
|
689
|
-
className:
|
|
689
|
+
className: x(
|
|
690
690
|
ie({ variant: "ghost" }),
|
|
691
691
|
"w-9 px-0 flex-shrink-0"
|
|
692
692
|
),
|
|
693
|
-
"aria-label":
|
|
694
|
-
children: /* @__PURE__ */ n.jsx(
|
|
693
|
+
"aria-label": f.moreOptions,
|
|
694
|
+
children: /* @__PURE__ */ n.jsx(St, { className: "h-5 w-5" })
|
|
695
695
|
}
|
|
696
696
|
) }),
|
|
697
697
|
/* @__PURE__ */ n.jsxs(_e, { align: "end", className: "min-w-[40px]", children: [
|
|
698
|
-
(o.actions || []).filter((
|
|
698
|
+
(o.actions || []).filter((v) => v.enabled !== !1).map((v, M) => /* @__PURE__ */ n.jsx(H, { asChild: !0, children: /* @__PURE__ */ n.jsx(
|
|
699
699
|
"a",
|
|
700
700
|
{
|
|
701
|
-
href:
|
|
701
|
+
href: v.link,
|
|
702
702
|
target: "_blank",
|
|
703
703
|
rel: "noopener noreferrer",
|
|
704
704
|
className: "flex items-center justify-center gap-2 w-full h-9",
|
|
705
|
-
children:
|
|
705
|
+
children: v.type === "github" && /* @__PURE__ */ n.jsx(qe, { className: "h-4 w-4" })
|
|
706
706
|
}
|
|
707
|
-
) },
|
|
707
|
+
) }, v.link || `${v.type || "action"}-${M}`)),
|
|
708
708
|
o.showLanguageSwitcher !== !1 && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
709
709
|
/* @__PURE__ */ n.jsx(Pe, {}),
|
|
710
|
-
/* @__PURE__ */ n.jsx(H, { className: "flex items-center justify-center w-full h-9", children: /* @__PURE__ */ n.jsx(
|
|
710
|
+
/* @__PURE__ */ n.jsx(H, { className: "flex items-center justify-center w-full h-9", children: /* @__PURE__ */ n.jsx(Je, {}) })
|
|
711
711
|
] }),
|
|
712
712
|
(r?.allowToggle ?? !0) && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
713
713
|
/* @__PURE__ */ n.jsx(Pe, {}),
|
|
714
|
-
/* @__PURE__ */ n.jsx(H, { className: "flex items-center justify-center w-full h-9", children: /* @__PURE__ */ n.jsx(
|
|
714
|
+
/* @__PURE__ */ n.jsx(H, { className: "flex items-center justify-center w-full h-9", children: /* @__PURE__ */ n.jsx(Qe, {}) })
|
|
715
715
|
] })
|
|
716
716
|
] })
|
|
717
717
|
] }) })
|
|
718
718
|
] })
|
|
719
719
|
] }) });
|
|
720
720
|
}
|
|
721
|
-
const
|
|
722
|
-
function
|
|
721
|
+
const bn = Ee.Root, Ke = Ee.CollapsibleTrigger, wn = Ee.CollapsibleContent;
|
|
722
|
+
function xt({ lang: e, sidebar: t }) {
|
|
723
723
|
const r = Y().pathname, a = b.useMemo(() => {
|
|
724
724
|
const s = r.split("/").filter(Boolean);
|
|
725
725
|
return s.length >= 2 ? s[1] : "";
|
|
@@ -729,7 +729,7 @@ function ht({ lang: e, sidebar: t }) {
|
|
|
729
729
|
return s && s.length > 0 ? s : c;
|
|
730
730
|
}, [t, a]);
|
|
731
731
|
return !b.useMemo(() => t ? typeof t.enabled == "boolean" ? t.enabled : !!(i && i.length > 0) : !1, [t, i]) || !i ? null : /* @__PURE__ */ n.jsx("div", { className: "w-full", children: i.map((s) => /* @__PURE__ */ n.jsxs(
|
|
732
|
-
|
|
732
|
+
bn,
|
|
733
733
|
{
|
|
734
734
|
defaultOpen: s.path ? r.startsWith(`/${e}${s.path}`) : !1,
|
|
735
735
|
children: [
|
|
@@ -740,22 +740,22 @@ function ht({ lang: e, sidebar: t }) {
|
|
|
740
740
|
className: "flex w-full items-center justify-between rounded-md px-2 py-2 font-medium text-sm hover:bg-muted",
|
|
741
741
|
children: [
|
|
742
742
|
/* @__PURE__ */ n.jsx("span", { children: s.title }),
|
|
743
|
-
/* @__PURE__ */ n.jsx(
|
|
743
|
+
/* @__PURE__ */ n.jsx(Ue, { className: "h-4 w-4 transition-transform duration-200 [&[data-state=open]]:rotate-90" })
|
|
744
744
|
]
|
|
745
745
|
}
|
|
746
746
|
) }) : /* @__PURE__ */ n.jsxs(Ke, { className: "flex w-full items-center justify-between rounded-md px-2 py-2 font-medium text-sm hover:bg-muted", children: [
|
|
747
747
|
s.title,
|
|
748
|
-
/* @__PURE__ */ n.jsx(
|
|
748
|
+
/* @__PURE__ */ n.jsx(Ue, { className: "h-4 w-4 transition-transform duration-200 [&[data-state=open]]:rotate-90" })
|
|
749
749
|
] }),
|
|
750
|
-
/* @__PURE__ */ n.jsx(
|
|
751
|
-
const
|
|
750
|
+
/* @__PURE__ */ n.jsx(wn, { className: "py-1 pl-4", children: /* @__PURE__ */ n.jsx("div", { className: "grid grid-flow-row auto-rows-max text-sm", children: (s.children || []).map((c) => {
|
|
751
|
+
const d = `/${e}${c.path}`;
|
|
752
752
|
return /* @__PURE__ */ n.jsx(
|
|
753
753
|
U,
|
|
754
754
|
{
|
|
755
|
-
to:
|
|
756
|
-
className:
|
|
755
|
+
to: d,
|
|
756
|
+
className: x(
|
|
757
757
|
"group flex w-full items-center rounded-md border border-transparent px-3 py-2 hover:underline transition-colors",
|
|
758
|
-
r ===
|
|
758
|
+
r === d ? "font-medium text-foreground" : "text-muted-foreground"
|
|
759
759
|
),
|
|
760
760
|
children: c.title
|
|
761
761
|
},
|
|
@@ -776,7 +776,7 @@ function Me({
|
|
|
776
776
|
se.Root,
|
|
777
777
|
{
|
|
778
778
|
"data-slot": "scroll-area",
|
|
779
|
-
className:
|
|
779
|
+
className: x("relative", e),
|
|
780
780
|
...o,
|
|
781
781
|
children: [
|
|
782
782
|
/* @__PURE__ */ n.jsx(
|
|
@@ -787,13 +787,13 @@ function Me({
|
|
|
787
787
|
children: t
|
|
788
788
|
}
|
|
789
789
|
),
|
|
790
|
-
/* @__PURE__ */ n.jsx(
|
|
790
|
+
/* @__PURE__ */ n.jsx(jn, {}),
|
|
791
791
|
/* @__PURE__ */ n.jsx(se.Corner, {})
|
|
792
792
|
]
|
|
793
793
|
}
|
|
794
794
|
);
|
|
795
795
|
}
|
|
796
|
-
function
|
|
796
|
+
function jn({
|
|
797
797
|
className: e,
|
|
798
798
|
orientation: t = "vertical",
|
|
799
799
|
...o
|
|
@@ -803,7 +803,7 @@ function wn({
|
|
|
803
803
|
{
|
|
804
804
|
"data-slot": "scroll-area-scrollbar",
|
|
805
805
|
orientation: t,
|
|
806
|
-
className:
|
|
806
|
+
className: x(
|
|
807
807
|
"flex touch-none p-px transition-colors select-none",
|
|
808
808
|
t === "vertical" && "h-full w-2.5 border-l border-l-transparent",
|
|
809
809
|
t === "horizontal" && "h-2.5 flex-col border-t border-t-transparent",
|
|
@@ -820,7 +820,7 @@ function wn({
|
|
|
820
820
|
}
|
|
821
821
|
);
|
|
822
822
|
}
|
|
823
|
-
function
|
|
823
|
+
function kn({
|
|
824
824
|
lang: e,
|
|
825
825
|
sidebar: t,
|
|
826
826
|
open: o,
|
|
@@ -839,18 +839,18 @@ function jn({
|
|
|
839
839
|
/* @__PURE__ */ n.jsx(
|
|
840
840
|
"div",
|
|
841
841
|
{
|
|
842
|
-
className:
|
|
842
|
+
className: x(
|
|
843
843
|
"absolute left-0 top-0 h-full w-[240px] max-w-[85vw]",
|
|
844
844
|
"bg-background border-r border-border shadow-lg",
|
|
845
845
|
"transition-transform duration-300 ease-in-out",
|
|
846
846
|
o ? "translate-x-0" : "-translate-x-full"
|
|
847
847
|
),
|
|
848
|
-
children: /* @__PURE__ */ n.jsx(Me, { className: "h-full w-full px-4 py-4", children: /* @__PURE__ */ n.jsx(
|
|
848
|
+
children: /* @__PURE__ */ n.jsx(Me, { className: "h-full w-full px-4 py-4", children: /* @__PURE__ */ n.jsx(xt, { lang: e, sidebar: t }) })
|
|
849
849
|
}
|
|
850
850
|
)
|
|
851
851
|
] }) : null;
|
|
852
852
|
}
|
|
853
|
-
const
|
|
853
|
+
const Nn = {
|
|
854
854
|
"zh-cn": {
|
|
855
855
|
openNav: "打开导航",
|
|
856
856
|
closeNav: "关闭导航"
|
|
@@ -860,14 +860,14 @@ const kn = {
|
|
|
860
860
|
closeNav: "Close navigation"
|
|
861
861
|
}
|
|
862
862
|
};
|
|
863
|
-
function
|
|
864
|
-
const [o, r] = E(!1), a = Y(), i = a.pathname,
|
|
863
|
+
function Sn({ lang: e, items: t }) {
|
|
864
|
+
const [o, r] = E(!1), a = Y(), i = a.pathname, u = a.pathname.startsWith("/en") ? "en" : "zh-cn", s = Nn[u], c = t.filter((d) => d.visible !== !1 && !d.external);
|
|
865
865
|
return c.length === 0 ? null : /* @__PURE__ */ n.jsxs("div", { className: "fixed bottom-6 right-6 z-40 md:hidden", children: [
|
|
866
866
|
/* @__PURE__ */ n.jsx(
|
|
867
867
|
"button",
|
|
868
868
|
{
|
|
869
869
|
onClick: () => r(!o),
|
|
870
|
-
className:
|
|
870
|
+
className: x(
|
|
871
871
|
"h-10 w-10 rounded-full shadow-lg",
|
|
872
872
|
"flex items-center justify-center",
|
|
873
873
|
"transition-all duration-300 ease-in-out",
|
|
@@ -875,40 +875,40 @@ function Nn({ lang: e, items: t }) {
|
|
|
875
875
|
"bg-primary text-primary-foreground"
|
|
876
876
|
),
|
|
877
877
|
"aria-label": o ? s.closeNav : s.openNav,
|
|
878
|
-
children: o ? /* @__PURE__ */ n.jsx(
|
|
878
|
+
children: o ? /* @__PURE__ */ n.jsx($t, { className: "h-5 w-5" }) : /* @__PURE__ */ n.jsx(Ct, { className: "h-5 w-5" })
|
|
879
879
|
}
|
|
880
880
|
),
|
|
881
881
|
/* @__PURE__ */ n.jsx(
|
|
882
882
|
"div",
|
|
883
883
|
{
|
|
884
|
-
className:
|
|
884
|
+
className: x(
|
|
885
885
|
"absolute bottom-12 right-0 w-40",
|
|
886
886
|
"transition-all duration-300 ease-in-out",
|
|
887
887
|
"origin-bottom-right",
|
|
888
888
|
o ? "opacity-100 translate-y-0 pointer-events-auto" : "opacity-0 translate-y-4 pointer-events-none"
|
|
889
889
|
),
|
|
890
|
-
children: /* @__PURE__ */ n.jsx("div", { className: "rounded-lg bg-background border border-border shadow-xl overflow-hidden", children: c.map((
|
|
891
|
-
const
|
|
890
|
+
children: /* @__PURE__ */ n.jsx("div", { className: "rounded-lg bg-background border border-border shadow-xl overflow-hidden", children: c.map((d) => {
|
|
891
|
+
const g = i === `/${e}${d.link}`;
|
|
892
892
|
return /* @__PURE__ */ n.jsx(
|
|
893
893
|
U,
|
|
894
894
|
{
|
|
895
|
-
to: `/${e}${
|
|
895
|
+
to: `/${e}${d.link}`,
|
|
896
896
|
onClick: () => r(!1),
|
|
897
|
-
className:
|
|
897
|
+
className: x(
|
|
898
898
|
"block px-5 py-3 text-sm transition-colors",
|
|
899
899
|
"first:rounded-t-lg last:rounded-b-lg",
|
|
900
|
-
|
|
900
|
+
g ? "bg-primary text-primary-foreground font-medium" : "hover:bg-accent hover:text-accent-foreground"
|
|
901
901
|
),
|
|
902
|
-
children:
|
|
902
|
+
children: d.title
|
|
903
903
|
},
|
|
904
|
-
|
|
904
|
+
d.link
|
|
905
905
|
);
|
|
906
906
|
}) })
|
|
907
907
|
}
|
|
908
908
|
)
|
|
909
909
|
] });
|
|
910
910
|
}
|
|
911
|
-
const
|
|
911
|
+
const $n = {
|
|
912
912
|
"zh-cn": {
|
|
913
913
|
onThisPage: "本页目录"
|
|
914
914
|
},
|
|
@@ -916,40 +916,40 @@ const Sn = {
|
|
|
916
916
|
onThisPage: "On This Page"
|
|
917
917
|
}
|
|
918
918
|
};
|
|
919
|
-
function
|
|
920
|
-
const t = Y(), [o, r] = E(null), a = t.pathname.startsWith("/en") ? "en" : "zh-cn", i =
|
|
919
|
+
function Cn({ toc: e }) {
|
|
920
|
+
const t = Y(), [o, r] = E(null), a = t.pathname.startsWith("/en") ? "en" : "zh-cn", i = $n[a];
|
|
921
921
|
W(() => {
|
|
922
922
|
const s = new IntersectionObserver(
|
|
923
923
|
(c) => {
|
|
924
|
-
c.forEach((
|
|
925
|
-
|
|
924
|
+
c.forEach((d) => {
|
|
925
|
+
d.isIntersecting && r(d.target.id);
|
|
926
926
|
});
|
|
927
927
|
},
|
|
928
928
|
{ rootMargin: "0% 0% -80% 0%" }
|
|
929
929
|
);
|
|
930
930
|
return e.forEach((c) => {
|
|
931
|
-
const
|
|
932
|
-
|
|
931
|
+
const d = document.getElementById(c.url.slice(1));
|
|
932
|
+
d && s.observe(d);
|
|
933
933
|
}), () => {
|
|
934
934
|
e.forEach((c) => {
|
|
935
|
-
const
|
|
936
|
-
|
|
935
|
+
const d = document.getElementById(c.url.slice(1));
|
|
936
|
+
d && s.unobserve(d);
|
|
937
937
|
});
|
|
938
938
|
};
|
|
939
939
|
}, [e]);
|
|
940
|
-
const
|
|
940
|
+
const u = (s, c) => {
|
|
941
941
|
s.preventDefault();
|
|
942
|
-
const
|
|
943
|
-
|
|
942
|
+
const d = document.getElementById(c.slice(1));
|
|
943
|
+
d && (d.scrollIntoView({ behavior: "smooth" }), window.history.pushState(null, "", c));
|
|
944
944
|
};
|
|
945
945
|
return e.length === 0 ? null : /* @__PURE__ */ n.jsxs("div", { className: "space-y-2", children: [
|
|
946
946
|
/* @__PURE__ */ n.jsx("p", { className: "font-medium", children: i.onThisPage }),
|
|
947
|
-
/* @__PURE__ */ n.jsx("ul", { className: "m-0 list-none", children: e.map((s) => /* @__PURE__ */ n.jsx("li", { className:
|
|
947
|
+
/* @__PURE__ */ n.jsx("ul", { className: "m-0 list-none", children: e.map((s) => /* @__PURE__ */ n.jsx("li", { className: x("mt-0 pt-2"), children: /* @__PURE__ */ n.jsx(
|
|
948
948
|
"a",
|
|
949
949
|
{
|
|
950
950
|
href: s.url,
|
|
951
|
-
onClick: (c) =>
|
|
952
|
-
className:
|
|
951
|
+
onClick: (c) => u(c, s.url),
|
|
952
|
+
className: x(
|
|
953
953
|
"inline-block no-underline transition-colors hover:text-foreground",
|
|
954
954
|
s.url.slice(1) === o ? "text-foreground font-medium" : "text-muted-foreground",
|
|
955
955
|
s.depth > 2 ? "pl-4" : ""
|
|
@@ -959,7 +959,7 @@ function $n({ toc: e }) {
|
|
|
959
959
|
) }, s.url)) })
|
|
960
960
|
] });
|
|
961
961
|
}
|
|
962
|
-
const
|
|
962
|
+
const et = {
|
|
963
963
|
"zh-cn": {
|
|
964
964
|
prev: "上一节",
|
|
965
965
|
next: "下一节"
|
|
@@ -969,15 +969,15 @@ const Qe = {
|
|
|
969
969
|
next: "Next"
|
|
970
970
|
}
|
|
971
971
|
};
|
|
972
|
-
function
|
|
972
|
+
function tt(e, t) {
|
|
973
973
|
e.preventDefault();
|
|
974
974
|
try {
|
|
975
975
|
const r = sessionStorage.getItem("scroll-positions");
|
|
976
976
|
if (r) {
|
|
977
977
|
const a = JSON.parse(r), i = window.location.pathname + window.location.search;
|
|
978
978
|
delete a[i];
|
|
979
|
-
const
|
|
980
|
-
delete a[
|
|
979
|
+
const u = t + window.location.search;
|
|
980
|
+
delete a[u], sessionStorage.setItem("scroll-positions", JSON.stringify(a));
|
|
981
981
|
}
|
|
982
982
|
} catch {
|
|
983
983
|
}
|
|
@@ -987,13 +987,13 @@ function et(e, t) {
|
|
|
987
987
|
function Tn({ prev: e, next: t, lang: o }) {
|
|
988
988
|
if (!e && !t)
|
|
989
989
|
return null;
|
|
990
|
-
const r =
|
|
990
|
+
const r = et[o] || et["zh-cn"];
|
|
991
991
|
return /* @__PURE__ */ n.jsxs("div", { className: "flex flex-row gap-4 mt-8 pt-8 border-t", children: [
|
|
992
992
|
e && /* @__PURE__ */ n.jsxs(
|
|
993
993
|
U,
|
|
994
994
|
{
|
|
995
995
|
to: `/${o}${e.path}`,
|
|
996
|
-
onClick: (a) =>
|
|
996
|
+
onClick: (a) => tt(a, `/${o}${e.path}`),
|
|
997
997
|
className: "flex items-center flex-1 min-w-0 group hover:text-foreground transition-colors",
|
|
998
998
|
children: [
|
|
999
999
|
/* @__PURE__ */ n.jsx(Tt, { className: "mr-2 h-4 w-4 flex-shrink-0 text-muted-foreground group-hover:text-foreground" }),
|
|
@@ -1008,20 +1008,20 @@ function Tn({ prev: e, next: t, lang: o }) {
|
|
|
1008
1008
|
U,
|
|
1009
1009
|
{
|
|
1010
1010
|
to: `/${o}${t.path}`,
|
|
1011
|
-
onClick: (a) =>
|
|
1011
|
+
onClick: (a) => tt(a, `/${o}${t.path}`),
|
|
1012
1012
|
className: "flex items-center justify-end flex-1 min-w-0 text-right group hover:text-foreground transition-colors",
|
|
1013
1013
|
children: [
|
|
1014
1014
|
/* @__PURE__ */ n.jsxs("div", { className: "flex flex-col min-w-0", children: [
|
|
1015
1015
|
/* @__PURE__ */ n.jsx("div", { className: "text-xs text-muted-foreground mb-1", children: r.next }),
|
|
1016
1016
|
/* @__PURE__ */ n.jsx("div", { className: "font-medium text-sm truncate", children: t.title })
|
|
1017
1017
|
] }),
|
|
1018
|
-
/* @__PURE__ */ n.jsx(
|
|
1018
|
+
/* @__PURE__ */ n.jsx(qt, { className: "ml-2 h-4 w-4 flex-shrink-0 text-muted-foreground group-hover:text-foreground" })
|
|
1019
1019
|
]
|
|
1020
1020
|
}
|
|
1021
1021
|
)
|
|
1022
1022
|
] });
|
|
1023
1023
|
}
|
|
1024
|
-
function
|
|
1024
|
+
function qn({
|
|
1025
1025
|
className: e,
|
|
1026
1026
|
orientation: t = "horizontal",
|
|
1027
1027
|
decorative: o = !0,
|
|
@@ -1032,7 +1032,7 @@ function Cn({
|
|
|
1032
1032
|
{
|
|
1033
1033
|
role: o ? "none" : "separator",
|
|
1034
1034
|
"aria-orientation": t,
|
|
1035
|
-
className:
|
|
1035
|
+
className: x(
|
|
1036
1036
|
"shrink-0 bg-border",
|
|
1037
1037
|
t === "horizontal" ? "h-px w-full" : "h-full w-px",
|
|
1038
1038
|
e
|
|
@@ -1041,7 +1041,7 @@ function Cn({
|
|
|
1041
1041
|
}
|
|
1042
1042
|
);
|
|
1043
1043
|
}
|
|
1044
|
-
function
|
|
1044
|
+
function Pn({ className: e, variant: t = "default", ...o }) {
|
|
1045
1045
|
const r = "inline-flex items-center rounded-md border px-2 py-0.5 text-xs font-medium", a = {
|
|
1046
1046
|
default: "border-transparent bg-primary text-primary-foreground",
|
|
1047
1047
|
secondary: "border-transparent bg-secondary text-secondary-foreground",
|
|
@@ -1050,11 +1050,11 @@ function qn({ className: e, variant: t = "default", ...o }) {
|
|
|
1050
1050
|
destructive: "border-transparent bg-red-100 text-red-700",
|
|
1051
1051
|
warning: "border-transparent bg-orange-100 text-orange-700"
|
|
1052
1052
|
};
|
|
1053
|
-
return /* @__PURE__ */ n.jsx("span", { className:
|
|
1053
|
+
return /* @__PURE__ */ n.jsx("span", { className: x(r, a[t], e), ...o });
|
|
1054
1054
|
}
|
|
1055
|
-
function
|
|
1055
|
+
function Mn({ footer: e, lang: t }) {
|
|
1056
1056
|
if (!e || e.enabled === !1) return null;
|
|
1057
|
-
const o = e.links || [], r = e.social || [], a = e.groups || [], i = (s) => s.action === "scrollTop" || s.link === "#" || s.link?.startsWith("#"),
|
|
1057
|
+
const o = e.links || [], r = e.social || [], a = e.groups || [], i = (s) => s.action === "scrollTop" || s.link === "#" || s.link?.startsWith("#"), u = (s) => {
|
|
1058
1058
|
s.preventDefault(), window.scrollTo({ top: 0, behavior: "smooth" });
|
|
1059
1059
|
};
|
|
1060
1060
|
return /* @__PURE__ */ n.jsx("footer", { className: "mt-8", children: /* @__PURE__ */ n.jsxs("div", { className: "container max-w-screen-2xl px-4 md:px-8 py-8 rounded-md border", children: [
|
|
@@ -1079,7 +1079,7 @@ function Pn({ footer: e, lang: t }) {
|
|
|
1079
1079
|
"Last updated: ",
|
|
1080
1080
|
e.lastUpdated
|
|
1081
1081
|
] }),
|
|
1082
|
-
e.version && /* @__PURE__ */ n.jsx(
|
|
1082
|
+
e.version && /* @__PURE__ */ n.jsx(Pn, { variant: "warning", children: e.version })
|
|
1083
1083
|
] })
|
|
1084
1084
|
] }),
|
|
1085
1085
|
a.length > 0 && /* @__PURE__ */ n.jsx("div", { className: "lg:col-span-2 grid gap-6 sm:grid-cols-2 lg:grid-cols-3", children: a.map((s) => /* @__PURE__ */ n.jsxs("div", { children: [
|
|
@@ -1093,7 +1093,7 @@ function Pn({ footer: e, lang: t }) {
|
|
|
1093
1093
|
rel: "noopener noreferrer",
|
|
1094
1094
|
children: c.title
|
|
1095
1095
|
}
|
|
1096
|
-
) : i(c) ? /* @__PURE__ */ n.jsx("a", { href: "#", className: "hover:underline", onClick:
|
|
1096
|
+
) : i(c) ? /* @__PURE__ */ n.jsx("a", { href: "#", className: "hover:underline", onClick: u, children: c.title }) : /* @__PURE__ */ n.jsx(U, { className: "hover:underline", to: `/${t}${c.link}`, children: c.title }) }, `${c.title}-${c.link}`)) })
|
|
1097
1097
|
] }, s.title)) }),
|
|
1098
1098
|
a.length === 0 && o.length > 0 && /* @__PURE__ */ n.jsxs("div", { children: [
|
|
1099
1099
|
/* @__PURE__ */ n.jsx("div", { className: "font-medium mb-2", children: "Links" }),
|
|
@@ -1106,12 +1106,12 @@ function Pn({ footer: e, lang: t }) {
|
|
|
1106
1106
|
rel: "noopener noreferrer",
|
|
1107
1107
|
children: s.title
|
|
1108
1108
|
}
|
|
1109
|
-
) : i(s) ? /* @__PURE__ */ n.jsx("a", { href: "#", className: "hover:underline", onClick:
|
|
1109
|
+
) : i(s) ? /* @__PURE__ */ n.jsx("a", { href: "#", className: "hover:underline", onClick: u, children: s.title }) : /* @__PURE__ */ n.jsx(U, { className: "hover:underline", to: `/${t}${s.link}`, children: s.title }) }, `${s.title}-${s.link}`)) })
|
|
1110
1110
|
] }),
|
|
1111
1111
|
r.length > 0 && /* @__PURE__ */ n.jsxs("div", { children: [
|
|
1112
1112
|
/* @__PURE__ */ n.jsx("div", { className: "font-medium mb-2", children: "Social" }),
|
|
1113
1113
|
/* @__PURE__ */ n.jsx("div", { className: "flex flex-wrap gap-2", children: /* @__PURE__ */ n.jsx(ue, { children: r.map((s) => {
|
|
1114
|
-
const c = (s.icon || s.name || "").toLowerCase(),
|
|
1114
|
+
const c = (s.icon || s.name || "").toLowerCase(), d = c.includes("github") ? qe : c.includes("mail") || c.includes("email") ? Pt : c.includes("bilibili") ? Mt : c === "qq" ? Ot : c.includes("wechat") || c.includes("weixin") ? Xe : c.includes("youtube") ? zt : c.includes("twitter") || c === "x" ? Rt : c.includes("discord") ? Xe : c.includes("telegram") ? Et : c.includes("tiktok") || c.includes("douyin") ? Dt : c.includes("weibo") ? It : c.includes("zhihu") ? Lt : pt;
|
|
1115
1115
|
return /* @__PURE__ */ n.jsxs(pe, { children: [
|
|
1116
1116
|
/* @__PURE__ */ n.jsx(me, { asChild: !0, children: /* @__PURE__ */ n.jsx(
|
|
1117
1117
|
"a",
|
|
@@ -1120,8 +1120,8 @@ function Pn({ footer: e, lang: t }) {
|
|
|
1120
1120
|
target: "_blank",
|
|
1121
1121
|
rel: "noopener noreferrer",
|
|
1122
1122
|
"aria-label": s.name,
|
|
1123
|
-
className:
|
|
1124
|
-
children: /* @__PURE__ */ n.jsx(
|
|
1123
|
+
className: x(ie({ variant: "ghost" }), "w-9 h-9 p-0"),
|
|
1124
|
+
children: /* @__PURE__ */ n.jsx(d, { className: "h-4 w-4" })
|
|
1125
1125
|
}
|
|
1126
1126
|
) }),
|
|
1127
1127
|
/* @__PURE__ */ n.jsx(ce, { align: "center", children: s.name })
|
|
@@ -1129,28 +1129,28 @@ function Pn({ footer: e, lang: t }) {
|
|
|
1129
1129
|
}) }) })
|
|
1130
1130
|
] })
|
|
1131
1131
|
] }),
|
|
1132
|
-
/* @__PURE__ */ n.jsx(
|
|
1132
|
+
/* @__PURE__ */ n.jsx(qn, { className: "my-6" }),
|
|
1133
1133
|
/* @__PURE__ */ n.jsx("div", { className: "text-xs text-muted-foreground", children: "Built with React Docs UI" })
|
|
1134
1134
|
] }) });
|
|
1135
1135
|
}
|
|
1136
|
-
function
|
|
1136
|
+
function On() {
|
|
1137
1137
|
const e = Y(), t = Ne(/* @__PURE__ */ new Map()), o = Ne(!1), r = Ne(/* @__PURE__ */ new Set()), a = (c) => {
|
|
1138
|
-
let
|
|
1139
|
-
if (
|
|
1138
|
+
let d = t.current.get(c);
|
|
1139
|
+
if (d === void 0)
|
|
1140
1140
|
try {
|
|
1141
|
-
const
|
|
1142
|
-
|
|
1141
|
+
const g = sessionStorage.getItem("scroll-positions");
|
|
1142
|
+
g && (d = JSON.parse(g)[c], d !== void 0 && t.current.set(c, d));
|
|
1143
1143
|
} catch {
|
|
1144
1144
|
}
|
|
1145
|
-
return
|
|
1145
|
+
return d;
|
|
1146
1146
|
}, i = () => {
|
|
1147
1147
|
if (o.current) return;
|
|
1148
|
-
const c = window.scrollY,
|
|
1149
|
-
c > 0 && (t.current.set(
|
|
1150
|
-
},
|
|
1151
|
-
const c = e.pathname + e.search,
|
|
1152
|
-
|
|
1153
|
-
window.scrollTo(0,
|
|
1148
|
+
const c = window.scrollY, d = e.pathname + e.search;
|
|
1149
|
+
c > 0 && (t.current.set(d, c), r.current.add(d), sessionStorage.setItem("scroll-positions", JSON.stringify(Object.fromEntries(t.current))));
|
|
1150
|
+
}, u = () => {
|
|
1151
|
+
const c = e.pathname + e.search, d = a(c);
|
|
1152
|
+
d !== void 0 && d > 0 ? (o.current = !0, requestAnimationFrame(() => {
|
|
1153
|
+
window.scrollTo(0, d), setTimeout(() => {
|
|
1154
1154
|
o.current = !1;
|
|
1155
1155
|
}, 200);
|
|
1156
1156
|
})) : requestAnimationFrame(() => {
|
|
@@ -1159,42 +1159,42 @@ function Mn() {
|
|
|
1159
1159
|
};
|
|
1160
1160
|
return W(() => {
|
|
1161
1161
|
try {
|
|
1162
|
-
const
|
|
1163
|
-
if (
|
|
1164
|
-
const
|
|
1165
|
-
t.current = new Map(Object.entries(
|
|
1162
|
+
const f = sessionStorage.getItem("scroll-positions");
|
|
1163
|
+
if (f) {
|
|
1164
|
+
const h = JSON.parse(f);
|
|
1165
|
+
t.current = new Map(Object.entries(h));
|
|
1166
1166
|
}
|
|
1167
1167
|
} catch {
|
|
1168
1168
|
}
|
|
1169
1169
|
const c = () => {
|
|
1170
1170
|
i();
|
|
1171
1171
|
};
|
|
1172
|
-
let
|
|
1173
|
-
const
|
|
1174
|
-
|
|
1172
|
+
let d = null;
|
|
1173
|
+
const g = () => {
|
|
1174
|
+
d && clearTimeout(d), d = setTimeout(c, 100);
|
|
1175
1175
|
};
|
|
1176
|
-
window.addEventListener("scroll",
|
|
1177
|
-
const
|
|
1178
|
-
|
|
1176
|
+
window.addEventListener("scroll", g, { passive: !0 });
|
|
1177
|
+
const y = setTimeout(() => {
|
|
1178
|
+
u();
|
|
1179
1179
|
}, 50);
|
|
1180
1180
|
return () => {
|
|
1181
|
-
|
|
1181
|
+
d && clearTimeout(d), clearTimeout(y), window.removeEventListener("scroll", g), i();
|
|
1182
1182
|
};
|
|
1183
1183
|
}, [e.pathname, e.search]), {
|
|
1184
1184
|
saveScrollPosition: i,
|
|
1185
|
-
restoreScrollPosition:
|
|
1185
|
+
restoreScrollPosition: u,
|
|
1186
1186
|
clearScrollPosition: (c) => {
|
|
1187
|
-
const
|
|
1188
|
-
t.current.delete(
|
|
1187
|
+
const d = c + window.location.search;
|
|
1188
|
+
t.current.delete(d), r.current.delete(d);
|
|
1189
1189
|
try {
|
|
1190
|
-
const
|
|
1191
|
-
sessionStorage.setItem("scroll-positions", JSON.stringify(
|
|
1190
|
+
const g = Object.fromEntries(t.current);
|
|
1191
|
+
sessionStorage.setItem("scroll-positions", JSON.stringify(g));
|
|
1192
1192
|
} catch {
|
|
1193
1193
|
}
|
|
1194
1194
|
}
|
|
1195
1195
|
};
|
|
1196
1196
|
}
|
|
1197
|
-
function
|
|
1197
|
+
function nt({
|
|
1198
1198
|
lang: e,
|
|
1199
1199
|
config: t,
|
|
1200
1200
|
frontmatter: o,
|
|
@@ -1202,45 +1202,45 @@ function tt({
|
|
|
1202
1202
|
prev: a,
|
|
1203
1203
|
next: i
|
|
1204
1204
|
}) {
|
|
1205
|
-
const { site:
|
|
1206
|
-
return
|
|
1207
|
-
/* @__PURE__ */ n.jsx(
|
|
1205
|
+
const { site: u, navbar: s, sidebar: c, theme: d } = t, g = o?.toc, [y, f] = E(!1);
|
|
1206
|
+
return On(), /* @__PURE__ */ n.jsxs("div", { className: "relative flex min-h-screen flex-col", children: [
|
|
1207
|
+
/* @__PURE__ */ n.jsx(yn, { lang: e, site: u, navbar: s, themeConfig: d, onMenuClick: () => f(!0) }),
|
|
1208
1208
|
c && /* @__PURE__ */ n.jsx(
|
|
1209
|
-
|
|
1209
|
+
kn,
|
|
1210
1210
|
{
|
|
1211
1211
|
lang: e,
|
|
1212
1212
|
sidebar: c,
|
|
1213
|
-
open:
|
|
1214
|
-
onOpenChange:
|
|
1213
|
+
open: y,
|
|
1214
|
+
onOpenChange: f
|
|
1215
1215
|
}
|
|
1216
1216
|
),
|
|
1217
|
-
/* @__PURE__ */ n.jsx(
|
|
1217
|
+
/* @__PURE__ */ n.jsx(Sn, { lang: e, items: s.items || [] }),
|
|
1218
1218
|
/* @__PURE__ */ n.jsxs("div", { className: "container flex-1 items-start md:grid md:grid-cols-[220px_1fr] md:gap-6 lg:grid-cols-[240px_1fr] lg:gap-10 px-4 md:px-8", children: [
|
|
1219
|
-
c && /* @__PURE__ */ n.jsx("aside", { className: "fixed top-14 z-30 -ml-2 hidden h-[calc(100vh-3.5rem)] w-full shrink-0 md:sticky md:block", children: /* @__PURE__ */ n.jsx(Me, { className: "h-full py-6 pr-6 lg:py-8", children: /* @__PURE__ */ n.jsx(
|
|
1219
|
+
c && /* @__PURE__ */ n.jsx("aside", { className: "fixed top-14 z-30 -ml-2 hidden h-[calc(100vh-3.5rem)] w-full shrink-0 md:sticky md:block", children: /* @__PURE__ */ n.jsx(Me, { className: "h-full py-6 pr-6 lg:py-8", children: /* @__PURE__ */ n.jsx(xt, { lang: e, sidebar: c }) }) }),
|
|
1220
1220
|
/* @__PURE__ */ n.jsxs("div", { className: "relative flex md:col-start-2 min-w-0 overflow-hidden", children: [
|
|
1221
1221
|
/* @__PURE__ */ n.jsx("main", { className: "relative py-6 lg:py-8 flex-auto w-full", children: r }),
|
|
1222
|
-
|
|
1222
|
+
g && /* @__PURE__ */ n.jsx(
|
|
1223
1223
|
"aside",
|
|
1224
1224
|
{
|
|
1225
1225
|
className: "fixed top-14 z-30 hidden h-[calc(100vh-3.5rem)] w-full shrink-0 md:sticky md:block",
|
|
1226
1226
|
style: { right: "2rem", width: "200px" },
|
|
1227
|
-
children: /* @__PURE__ */ n.jsx(Me, { className: "h-full py-6 pr-6 lg:py-8", children: /* @__PURE__ */ n.jsx(
|
|
1227
|
+
children: /* @__PURE__ */ n.jsx(Me, { className: "h-full py-6 pr-6 lg:py-8", children: /* @__PURE__ */ n.jsx(Cn, { toc: g }) })
|
|
1228
1228
|
}
|
|
1229
1229
|
)
|
|
1230
1230
|
] }),
|
|
1231
1231
|
/* @__PURE__ */ n.jsxs("div", { className: "md:col-start-2", children: [
|
|
1232
1232
|
/* @__PURE__ */ n.jsx(Tn, { prev: a, next: i, lang: e }),
|
|
1233
|
-
t.footer?.enabled !== !1 && /* @__PURE__ */ n.jsx(
|
|
1233
|
+
t.footer?.enabled !== !1 && /* @__PURE__ */ n.jsx(Mn, { footer: t.footer, lang: e })
|
|
1234
1234
|
] })
|
|
1235
1235
|
] })
|
|
1236
1236
|
] });
|
|
1237
1237
|
}
|
|
1238
|
-
const
|
|
1238
|
+
const zn = b.forwardRef(
|
|
1239
1239
|
({ className: e, ...t }, o) => /* @__PURE__ */ n.jsx(
|
|
1240
1240
|
"label",
|
|
1241
1241
|
{
|
|
1242
1242
|
ref: o,
|
|
1243
|
-
className:
|
|
1243
|
+
className: x(
|
|
1244
1244
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
|
|
1245
1245
|
e
|
|
1246
1246
|
),
|
|
@@ -1248,28 +1248,28 @@ const On = b.forwardRef(
|
|
|
1248
1248
|
}
|
|
1249
1249
|
)
|
|
1250
1250
|
);
|
|
1251
|
-
|
|
1252
|
-
function
|
|
1251
|
+
zn.displayName = "Label";
|
|
1252
|
+
function Rn({
|
|
1253
1253
|
...e
|
|
1254
1254
|
}) {
|
|
1255
1255
|
return /* @__PURE__ */ n.jsx(X.Root, { "data-slot": "dialog", ...e });
|
|
1256
1256
|
}
|
|
1257
|
-
function
|
|
1257
|
+
function Uo({
|
|
1258
1258
|
...e
|
|
1259
1259
|
}) {
|
|
1260
1260
|
return /* @__PURE__ */ n.jsx(X.Trigger, { "data-slot": "dialog-trigger", ...e });
|
|
1261
1261
|
}
|
|
1262
|
-
function
|
|
1262
|
+
function En({
|
|
1263
1263
|
...e
|
|
1264
1264
|
}) {
|
|
1265
1265
|
return /* @__PURE__ */ n.jsx(X.Portal, { "data-slot": "dialog-portal", ...e });
|
|
1266
1266
|
}
|
|
1267
|
-
function
|
|
1267
|
+
function Xo({
|
|
1268
1268
|
...e
|
|
1269
1269
|
}) {
|
|
1270
1270
|
return /* @__PURE__ */ n.jsx(X.Close, { "data-slot": "dialog-close", ...e });
|
|
1271
1271
|
}
|
|
1272
|
-
function
|
|
1272
|
+
function Dn({
|
|
1273
1273
|
className: e,
|
|
1274
1274
|
...t
|
|
1275
1275
|
}) {
|
|
@@ -1277,7 +1277,7 @@ function En({
|
|
|
1277
1277
|
X.Overlay,
|
|
1278
1278
|
{
|
|
1279
1279
|
"data-slot": "dialog-overlay",
|
|
1280
|
-
className:
|
|
1280
|
+
className: x(
|
|
1281
1281
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
|
|
1282
1282
|
e
|
|
1283
1283
|
),
|
|
@@ -1291,13 +1291,13 @@ function In({
|
|
|
1291
1291
|
showCloseButton: o = !0,
|
|
1292
1292
|
...r
|
|
1293
1293
|
}) {
|
|
1294
|
-
return /* @__PURE__ */ n.jsxs(
|
|
1295
|
-
/* @__PURE__ */ n.jsx(
|
|
1294
|
+
return /* @__PURE__ */ n.jsxs(En, { "data-slot": "dialog-portal", children: [
|
|
1295
|
+
/* @__PURE__ */ n.jsx(Dn, {}),
|
|
1296
1296
|
/* @__PURE__ */ n.jsxs(
|
|
1297
1297
|
X.Content,
|
|
1298
1298
|
{
|
|
1299
1299
|
"data-slot": "dialog-content",
|
|
1300
|
-
className:
|
|
1300
|
+
className: x(
|
|
1301
1301
|
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
|
|
1302
1302
|
e
|
|
1303
1303
|
),
|
|
@@ -1320,22 +1320,22 @@ function In({
|
|
|
1320
1320
|
)
|
|
1321
1321
|
] });
|
|
1322
1322
|
}
|
|
1323
|
-
function
|
|
1323
|
+
function Ln({ className: e, ...t }) {
|
|
1324
1324
|
return /* @__PURE__ */ n.jsx(
|
|
1325
1325
|
"div",
|
|
1326
1326
|
{
|
|
1327
1327
|
"data-slot": "dialog-header",
|
|
1328
|
-
className:
|
|
1328
|
+
className: x("flex flex-col gap-2 text-center sm:text-left", e),
|
|
1329
1329
|
...t
|
|
1330
1330
|
}
|
|
1331
1331
|
);
|
|
1332
1332
|
}
|
|
1333
|
-
function
|
|
1333
|
+
function Yo({ className: e, ...t }) {
|
|
1334
1334
|
return /* @__PURE__ */ n.jsx(
|
|
1335
1335
|
"div",
|
|
1336
1336
|
{
|
|
1337
1337
|
"data-slot": "dialog-footer",
|
|
1338
|
-
className:
|
|
1338
|
+
className: x(
|
|
1339
1339
|
"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
|
|
1340
1340
|
e
|
|
1341
1341
|
),
|
|
@@ -1351,12 +1351,12 @@ function An({
|
|
|
1351
1351
|
X.Title,
|
|
1352
1352
|
{
|
|
1353
1353
|
"data-slot": "dialog-title",
|
|
1354
|
-
className:
|
|
1354
|
+
className: x("text-lg leading-none font-semibold", e),
|
|
1355
1355
|
...t
|
|
1356
1356
|
}
|
|
1357
1357
|
);
|
|
1358
1358
|
}
|
|
1359
|
-
function
|
|
1359
|
+
function Gn({
|
|
1360
1360
|
className: e,
|
|
1361
1361
|
...t
|
|
1362
1362
|
}) {
|
|
@@ -1364,20 +1364,20 @@ function Ln({
|
|
|
1364
1364
|
X.Description,
|
|
1365
1365
|
{
|
|
1366
1366
|
"data-slot": "dialog-description",
|
|
1367
|
-
className:
|
|
1367
|
+
className: x("text-muted-foreground text-sm", e),
|
|
1368
1368
|
...t
|
|
1369
1369
|
}
|
|
1370
1370
|
);
|
|
1371
1371
|
}
|
|
1372
|
-
function
|
|
1372
|
+
function ft({
|
|
1373
1373
|
className: e,
|
|
1374
1374
|
...t
|
|
1375
1375
|
}) {
|
|
1376
1376
|
return /* @__PURE__ */ n.jsx(
|
|
1377
|
-
|
|
1377
|
+
Q,
|
|
1378
1378
|
{
|
|
1379
1379
|
"data-slot": "command",
|
|
1380
|
-
className:
|
|
1380
|
+
className: x(
|
|
1381
1381
|
"bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
|
|
1382
1382
|
e
|
|
1383
1383
|
),
|
|
@@ -1385,7 +1385,7 @@ function xt({
|
|
|
1385
1385
|
}
|
|
1386
1386
|
);
|
|
1387
1387
|
}
|
|
1388
|
-
function
|
|
1388
|
+
function Bn({
|
|
1389
1389
|
title: e = "Command Palette",
|
|
1390
1390
|
description: t = "Search for a command to run...",
|
|
1391
1391
|
children: o,
|
|
@@ -1393,22 +1393,22 @@ function Gn({
|
|
|
1393
1393
|
showCloseButton: a = !0,
|
|
1394
1394
|
...i
|
|
1395
1395
|
}) {
|
|
1396
|
-
return /* @__PURE__ */ n.jsxs(
|
|
1397
|
-
/* @__PURE__ */ n.jsxs(
|
|
1396
|
+
return /* @__PURE__ */ n.jsxs(Rn, { ...i, children: [
|
|
1397
|
+
/* @__PURE__ */ n.jsxs(Ln, { className: "sr-only", children: [
|
|
1398
1398
|
/* @__PURE__ */ n.jsx(An, { children: e }),
|
|
1399
|
-
/* @__PURE__ */ n.jsx(
|
|
1399
|
+
/* @__PURE__ */ n.jsx(Gn, { children: t })
|
|
1400
1400
|
] }),
|
|
1401
1401
|
/* @__PURE__ */ n.jsx(
|
|
1402
1402
|
In,
|
|
1403
1403
|
{
|
|
1404
|
-
className:
|
|
1404
|
+
className: x("overflow-hidden p-0", r),
|
|
1405
1405
|
showCloseButton: a,
|
|
1406
|
-
children: /* @__PURE__ */ n.jsx(
|
|
1406
|
+
children: /* @__PURE__ */ n.jsx(ft, { className: "[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: o })
|
|
1407
1407
|
}
|
|
1408
1408
|
)
|
|
1409
1409
|
] });
|
|
1410
1410
|
}
|
|
1411
|
-
function
|
|
1411
|
+
function Wn({
|
|
1412
1412
|
className: e,
|
|
1413
1413
|
...t
|
|
1414
1414
|
}) {
|
|
@@ -1418,12 +1418,12 @@ function Bn({
|
|
|
1418
1418
|
"data-slot": "command-input-wrapper",
|
|
1419
1419
|
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
1420
1420
|
children: [
|
|
1421
|
-
/* @__PURE__ */ n.jsx(
|
|
1421
|
+
/* @__PURE__ */ n.jsx(Gt, { className: "size-4 shrink-0 opacity-50" }),
|
|
1422
1422
|
/* @__PURE__ */ n.jsx(
|
|
1423
|
-
|
|
1423
|
+
Q.Input,
|
|
1424
1424
|
{
|
|
1425
1425
|
"data-slot": "command-input",
|
|
1426
|
-
className:
|
|
1426
|
+
className: x(
|
|
1427
1427
|
"placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
|
|
1428
1428
|
e
|
|
1429
1429
|
),
|
|
@@ -1434,15 +1434,15 @@ function Bn({
|
|
|
1434
1434
|
}
|
|
1435
1435
|
);
|
|
1436
1436
|
}
|
|
1437
|
-
function
|
|
1437
|
+
function Fn({
|
|
1438
1438
|
className: e,
|
|
1439
1439
|
...t
|
|
1440
1440
|
}) {
|
|
1441
1441
|
return /* @__PURE__ */ n.jsx(
|
|
1442
|
-
|
|
1442
|
+
Q.List,
|
|
1443
1443
|
{
|
|
1444
1444
|
"data-slot": "command-list",
|
|
1445
|
-
className:
|
|
1445
|
+
className: x(
|
|
1446
1446
|
"max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",
|
|
1447
1447
|
e
|
|
1448
1448
|
),
|
|
@@ -1450,11 +1450,11 @@ function Wn({
|
|
|
1450
1450
|
}
|
|
1451
1451
|
);
|
|
1452
1452
|
}
|
|
1453
|
-
function
|
|
1453
|
+
function Zn({
|
|
1454
1454
|
...e
|
|
1455
1455
|
}) {
|
|
1456
1456
|
return /* @__PURE__ */ n.jsx(
|
|
1457
|
-
|
|
1457
|
+
Q.Empty,
|
|
1458
1458
|
{
|
|
1459
1459
|
"data-slot": "command-empty",
|
|
1460
1460
|
className: "py-6 text-center text-sm",
|
|
@@ -1467,10 +1467,10 @@ function Se({
|
|
|
1467
1467
|
...t
|
|
1468
1468
|
}) {
|
|
1469
1469
|
return /* @__PURE__ */ n.jsx(
|
|
1470
|
-
|
|
1470
|
+
Q.Group,
|
|
1471
1471
|
{
|
|
1472
1472
|
"data-slot": "command-group",
|
|
1473
|
-
className:
|
|
1473
|
+
className: x(
|
|
1474
1474
|
"text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",
|
|
1475
1475
|
e
|
|
1476
1476
|
),
|
|
@@ -1478,15 +1478,15 @@ function Se({
|
|
|
1478
1478
|
}
|
|
1479
1479
|
);
|
|
1480
1480
|
}
|
|
1481
|
-
function
|
|
1481
|
+
function ot({
|
|
1482
1482
|
className: e,
|
|
1483
1483
|
...t
|
|
1484
1484
|
}) {
|
|
1485
1485
|
return /* @__PURE__ */ n.jsx(
|
|
1486
|
-
|
|
1486
|
+
Q.Separator,
|
|
1487
1487
|
{
|
|
1488
1488
|
"data-slot": "command-separator",
|
|
1489
|
-
className:
|
|
1489
|
+
className: x("bg-border -mx-1 h-px", e),
|
|
1490
1490
|
...t
|
|
1491
1491
|
}
|
|
1492
1492
|
);
|
|
@@ -1496,10 +1496,10 @@ function ee({
|
|
|
1496
1496
|
...t
|
|
1497
1497
|
}) {
|
|
1498
1498
|
return /* @__PURE__ */ n.jsx(
|
|
1499
|
-
|
|
1499
|
+
Q.Item,
|
|
1500
1500
|
{
|
|
1501
1501
|
"data-slot": "command-item",
|
|
1502
|
-
className:
|
|
1502
|
+
className: x(
|
|
1503
1503
|
"data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
1504
1504
|
e
|
|
1505
1505
|
),
|
|
@@ -1507,7 +1507,7 @@ function ee({
|
|
|
1507
1507
|
}
|
|
1508
1508
|
);
|
|
1509
1509
|
}
|
|
1510
|
-
function
|
|
1510
|
+
function Un({
|
|
1511
1511
|
className: e,
|
|
1512
1512
|
...t
|
|
1513
1513
|
}) {
|
|
@@ -1515,7 +1515,7 @@ function Zn({
|
|
|
1515
1515
|
"span",
|
|
1516
1516
|
{
|
|
1517
1517
|
"data-slot": "command-shortcut",
|
|
1518
|
-
className:
|
|
1518
|
+
className: x(
|
|
1519
1519
|
"text-muted-foreground ml-auto text-xs tracking-widest",
|
|
1520
1520
|
e
|
|
1521
1521
|
),
|
|
@@ -1523,11 +1523,11 @@ function Zn({
|
|
|
1523
1523
|
}
|
|
1524
1524
|
);
|
|
1525
1525
|
}
|
|
1526
|
-
const
|
|
1526
|
+
const Xn = N.Root, Yn = N.Trigger, $e = N.Group, Ce = N.Sub, rt = N.RadioGroup, he = b.forwardRef(({ className: e, inset: t, children: o, ...r }, a) => /* @__PURE__ */ n.jsxs(
|
|
1527
1527
|
N.SubTrigger,
|
|
1528
1528
|
{
|
|
1529
1529
|
ref: a,
|
|
1530
|
-
className:
|
|
1530
|
+
className: x(
|
|
1531
1531
|
"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
|
|
1532
1532
|
t && "pl-8",
|
|
1533
1533
|
e
|
|
@@ -1535,7 +1535,7 @@ const Un = N.Root, Xn = N.Trigger, $e = N.Group, Te = N.Sub, ot = N.RadioGroup,
|
|
|
1535
1535
|
...r,
|
|
1536
1536
|
children: [
|
|
1537
1537
|
o,
|
|
1538
|
-
/* @__PURE__ */ n.jsx(
|
|
1538
|
+
/* @__PURE__ */ n.jsx(lt, { className: "ml-auto h-4 w-4" })
|
|
1539
1539
|
]
|
|
1540
1540
|
}
|
|
1541
1541
|
));
|
|
@@ -1544,7 +1544,7 @@ const xe = b.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ n.jsx(
|
|
|
1544
1544
|
N.SubContent,
|
|
1545
1545
|
{
|
|
1546
1546
|
ref: o,
|
|
1547
|
-
className:
|
|
1547
|
+
className: x(
|
|
1548
1548
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
1549
1549
|
e
|
|
1550
1550
|
),
|
|
@@ -1552,23 +1552,23 @@ const xe = b.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ n.jsx(
|
|
|
1552
1552
|
}
|
|
1553
1553
|
));
|
|
1554
1554
|
xe.displayName = N.SubContent.displayName;
|
|
1555
|
-
const
|
|
1555
|
+
const gt = b.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ n.jsx(N.Portal, { children: /* @__PURE__ */ n.jsx(
|
|
1556
1556
|
N.Content,
|
|
1557
1557
|
{
|
|
1558
1558
|
ref: o,
|
|
1559
|
-
className:
|
|
1559
|
+
className: x(
|
|
1560
1560
|
"z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
1561
1561
|
e
|
|
1562
1562
|
),
|
|
1563
1563
|
...t
|
|
1564
1564
|
}
|
|
1565
1565
|
) }));
|
|
1566
|
-
|
|
1566
|
+
gt.displayName = N.Content.displayName;
|
|
1567
1567
|
const P = b.forwardRef(({ className: e, inset: t, ...o }, r) => /* @__PURE__ */ n.jsx(
|
|
1568
1568
|
N.Item,
|
|
1569
1569
|
{
|
|
1570
1570
|
ref: r,
|
|
1571
|
-
className:
|
|
1571
|
+
className: x(
|
|
1572
1572
|
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1573
1573
|
t && "pl-8",
|
|
1574
1574
|
e
|
|
@@ -1577,34 +1577,34 @@ const P = b.forwardRef(({ className: e, inset: t, ...o }, r) => /* @__PURE__ */
|
|
|
1577
1577
|
}
|
|
1578
1578
|
));
|
|
1579
1579
|
P.displayName = N.Item.displayName;
|
|
1580
|
-
const
|
|
1580
|
+
const Vn = b.forwardRef(({ className: e, children: t, checked: o, ...r }, a) => /* @__PURE__ */ n.jsxs(
|
|
1581
1581
|
N.CheckboxItem,
|
|
1582
1582
|
{
|
|
1583
1583
|
ref: a,
|
|
1584
|
-
className:
|
|
1584
|
+
className: x(
|
|
1585
1585
|
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1586
1586
|
e
|
|
1587
1587
|
),
|
|
1588
1588
|
checked: o,
|
|
1589
1589
|
...r,
|
|
1590
1590
|
children: [
|
|
1591
|
-
/* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(N.ItemIndicator, { children: /* @__PURE__ */ n.jsx(
|
|
1591
|
+
/* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(N.ItemIndicator, { children: /* @__PURE__ */ n.jsx(dt, { className: "h-4 w-4" }) }) }),
|
|
1592
1592
|
t
|
|
1593
1593
|
]
|
|
1594
1594
|
}
|
|
1595
1595
|
));
|
|
1596
|
-
|
|
1596
|
+
Vn.displayName = N.CheckboxItem.displayName;
|
|
1597
1597
|
const te = b.forwardRef(({ className: e, children: t, ...o }, r) => /* @__PURE__ */ n.jsxs(
|
|
1598
1598
|
N.RadioItem,
|
|
1599
1599
|
{
|
|
1600
1600
|
ref: r,
|
|
1601
|
-
className:
|
|
1601
|
+
className: x(
|
|
1602
1602
|
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1603
1603
|
e
|
|
1604
1604
|
),
|
|
1605
1605
|
...o,
|
|
1606
1606
|
children: [
|
|
1607
|
-
/* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(N.ItemIndicator, { children: /* @__PURE__ */ n.jsx(
|
|
1607
|
+
/* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(N.ItemIndicator, { children: /* @__PURE__ */ n.jsx(ut, { className: "h-2 w-2 fill-current" }) }) }),
|
|
1608
1608
|
t
|
|
1609
1609
|
]
|
|
1610
1610
|
}
|
|
@@ -1614,7 +1614,7 @@ const fe = b.forwardRef(({ className: e, inset: t, ...o }, r) => /* @__PURE__ */
|
|
|
1614
1614
|
N.Label,
|
|
1615
1615
|
{
|
|
1616
1616
|
ref: r,
|
|
1617
|
-
className:
|
|
1617
|
+
className: x(
|
|
1618
1618
|
"px-2 py-1.5 text-xs font-semibold text-muted-foreground",
|
|
1619
1619
|
t && "pl-8",
|
|
1620
1620
|
e
|
|
@@ -1627,28 +1627,28 @@ const ge = b.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ n.jsx(
|
|
|
1627
1627
|
N.Separator,
|
|
1628
1628
|
{
|
|
1629
1629
|
ref: o,
|
|
1630
|
-
className:
|
|
1630
|
+
className: x("-mx-1 my-1 h-px bg-muted", e),
|
|
1631
1631
|
...t
|
|
1632
1632
|
}
|
|
1633
1633
|
));
|
|
1634
1634
|
ge.displayName = N.Separator.displayName;
|
|
1635
|
-
const
|
|
1635
|
+
const Hn = ({
|
|
1636
1636
|
className: e,
|
|
1637
1637
|
...t
|
|
1638
1638
|
}) => /* @__PURE__ */ n.jsx(
|
|
1639
1639
|
"span",
|
|
1640
1640
|
{
|
|
1641
|
-
className:
|
|
1641
|
+
className: x("ml-auto text-xs tracking-widest opacity-60", e),
|
|
1642
1642
|
...t
|
|
1643
1643
|
}
|
|
1644
1644
|
);
|
|
1645
|
-
|
|
1646
|
-
const
|
|
1647
|
-
function
|
|
1648
|
-
return /* @__PURE__ */ n.jsx(
|
|
1645
|
+
Hn.displayName = "ContextMenuShortcut";
|
|
1646
|
+
const vt = it(void 0);
|
|
1647
|
+
function Jn({ components: e, children: t }) {
|
|
1648
|
+
return /* @__PURE__ */ n.jsx(vt.Provider, { value: { components: e }, children: t });
|
|
1649
1649
|
}
|
|
1650
|
-
function
|
|
1651
|
-
const e =
|
|
1650
|
+
function Qn() {
|
|
1651
|
+
const e = ct(vt);
|
|
1652
1652
|
return e ? e.components : (console.warn("useComponents must be used within ComponentProvider"), {});
|
|
1653
1653
|
}
|
|
1654
1654
|
function Kn(e) {
|
|
@@ -1656,20 +1656,20 @@ function Kn(e) {
|
|
|
1656
1656
|
Object.entries(e).map(([o]) => [o.toLowerCase(), o])
|
|
1657
1657
|
);
|
|
1658
1658
|
return () => (o) => {
|
|
1659
|
-
|
|
1659
|
+
mt(o, "element", (r) => {
|
|
1660
1660
|
const a = r.tagName.toLowerCase(), i = t.get(a);
|
|
1661
1661
|
i && (r.tagName = i, r.properties = r.properties || {}, r.properties.isComponent = !0);
|
|
1662
1662
|
});
|
|
1663
1663
|
};
|
|
1664
1664
|
}
|
|
1665
|
-
|
|
1666
|
-
return
|
|
1665
|
+
De.__defineMacro("\\ce", function(e) {
|
|
1666
|
+
return _t(e.consumeArgs(1)[0], "ce");
|
|
1667
1667
|
});
|
|
1668
|
-
|
|
1669
|
-
return
|
|
1668
|
+
De.__defineMacro("\\pu", function(e) {
|
|
1669
|
+
return _t(e.consumeArgs(1)[0], "pu");
|
|
1670
1670
|
});
|
|
1671
|
-
|
|
1672
|
-
var
|
|
1671
|
+
De.__defineMacro("\\tripledash", "{\\vphantom{-}\\raisebox{2.56mu}{$\\mkern2mu\\tiny\\text{-}\\mkern1mu\\text{-}\\mkern1mu\\text{-}\\mkern2mu$}}");
|
|
1672
|
+
var _t = function(e, t) {
|
|
1673
1673
|
for (var o = "", r = e.length && e[e.length - 1].loc.start, a = e.length - 1; a >= 0; a--)
|
|
1674
1674
|
e[a].loc.start > r && (o += " ", r = e[a].loc.start), o += e[a].text, r += e[a].text.length;
|
|
1675
1675
|
var i = w.go(l.go(o, t));
|
|
@@ -1687,28 +1687,28 @@ var vt = function(e, t) {
|
|
|
1687
1687
|
t === void 0 && (t = "ce");
|
|
1688
1688
|
var o = "0", r = {};
|
|
1689
1689
|
r.parenthesisLevel = 0, e = e.replace(/\n/g, " "), e = e.replace(/[\u2212\u2013\u2014\u2010]/g, "-"), e = e.replace(/[\u2026]/g, "...");
|
|
1690
|
-
for (var a, i = 10,
|
|
1690
|
+
for (var a, i = 10, u = []; ; ) {
|
|
1691
1691
|
a !== e ? (i = 10, a = e) : i--;
|
|
1692
1692
|
var s = l.stateMachines[t], c = s.transitions[o] || s.transitions["*"];
|
|
1693
1693
|
e:
|
|
1694
|
-
for (var
|
|
1695
|
-
var
|
|
1696
|
-
if (
|
|
1697
|
-
for (var
|
|
1698
|
-
var
|
|
1699
|
-
if (s.actions[
|
|
1700
|
-
|
|
1701
|
-
else if (l.actions[
|
|
1702
|
-
|
|
1694
|
+
for (var d = 0; d < c.length; d++) {
|
|
1695
|
+
var g = l.patterns.match_(c[d].pattern, e);
|
|
1696
|
+
if (g) {
|
|
1697
|
+
for (var y = c[d].task, f = 0; f < y.action_.length; f++) {
|
|
1698
|
+
var h;
|
|
1699
|
+
if (s.actions[y.action_[f].type_])
|
|
1700
|
+
h = s.actions[y.action_[f].type_](r, g.match_, y.action_[f].option);
|
|
1701
|
+
else if (l.actions[y.action_[f].type_])
|
|
1702
|
+
h = l.actions[y.action_[f].type_](r, g.match_, y.action_[f].option);
|
|
1703
1703
|
else
|
|
1704
|
-
throw ["MhchemBugA", "mhchem bug A. Please report. (" +
|
|
1705
|
-
l.concatArray(
|
|
1704
|
+
throw ["MhchemBugA", "mhchem bug A. Please report. (" + y.action_[f].type_ + ")"];
|
|
1705
|
+
l.concatArray(u, h);
|
|
1706
1706
|
}
|
|
1707
|
-
if (o =
|
|
1708
|
-
if (
|
|
1707
|
+
if (o = y.nextState || o, e.length > 0) {
|
|
1708
|
+
if (y.revisit || (e = g.remainder), !y.toContinue)
|
|
1709
1709
|
break e;
|
|
1710
1710
|
} else
|
|
1711
|
-
return
|
|
1711
|
+
return u;
|
|
1712
1712
|
}
|
|
1713
1713
|
}
|
|
1714
1714
|
if (i <= 0)
|
|
@@ -1903,20 +1903,20 @@ var vt = function(e, t) {
|
|
|
1903
1903
|
"//": /^\s*(\/\/)\s*/,
|
|
1904
1904
|
"*": /^\s*[*.]\s*/
|
|
1905
1905
|
},
|
|
1906
|
-
findObserveGroups: function(e, t, o, r, a, i,
|
|
1907
|
-
var
|
|
1906
|
+
findObserveGroups: function(e, t, o, r, a, i, u, s, c, d) {
|
|
1907
|
+
var g = function(M, $) {
|
|
1908
1908
|
if (typeof $ == "string")
|
|
1909
1909
|
return M.indexOf($) !== 0 ? null : $;
|
|
1910
1910
|
var j = M.match($);
|
|
1911
1911
|
return j ? j[0] : null;
|
|
1912
|
-
},
|
|
1912
|
+
}, y = function(M, $, j) {
|
|
1913
1913
|
for (var O = 0; $ < M.length; ) {
|
|
1914
|
-
var
|
|
1915
|
-
if (
|
|
1916
|
-
return { endMatchBegin: $, endMatchEnd: $ +
|
|
1917
|
-
if (
|
|
1914
|
+
var L = M.charAt($), C = g(M.substr($), j);
|
|
1915
|
+
if (C !== null && O === 0)
|
|
1916
|
+
return { endMatchBegin: $, endMatchEnd: $ + C.length };
|
|
1917
|
+
if (L === "{")
|
|
1918
1918
|
O++;
|
|
1919
|
-
else if (
|
|
1919
|
+
else if (L === "}") {
|
|
1920
1920
|
if (O === 0)
|
|
1921
1921
|
throw ["ExtraCloseMissingOpen", "Extra close brace or missing open brace"];
|
|
1922
1922
|
O--;
|
|
@@ -1924,26 +1924,26 @@ var vt = function(e, t) {
|
|
|
1924
1924
|
$++;
|
|
1925
1925
|
}
|
|
1926
1926
|
return O > 0, null;
|
|
1927
|
-
},
|
|
1928
|
-
if (
|
|
1927
|
+
}, f = g(e, t);
|
|
1928
|
+
if (f === null || (e = e.substr(f.length), f = g(e, o), f === null))
|
|
1929
1929
|
return null;
|
|
1930
|
-
var
|
|
1931
|
-
if (
|
|
1930
|
+
var h = y(e, f.length, r || a);
|
|
1931
|
+
if (h === null)
|
|
1932
1932
|
return null;
|
|
1933
|
-
var
|
|
1934
|
-
if (i ||
|
|
1935
|
-
var
|
|
1936
|
-
if (
|
|
1933
|
+
var m = e.substring(0, r ? h.endMatchEnd : h.endMatchBegin);
|
|
1934
|
+
if (i || u) {
|
|
1935
|
+
var T = this.findObserveGroups(e.substr(h.endMatchEnd), i, u, s, c);
|
|
1936
|
+
if (T === null)
|
|
1937
1937
|
return null;
|
|
1938
|
-
var
|
|
1938
|
+
var v = [m, T.match_];
|
|
1939
1939
|
return {
|
|
1940
|
-
match_:
|
|
1941
|
-
remainder:
|
|
1940
|
+
match_: d ? v.join("") : v,
|
|
1941
|
+
remainder: T.remainder
|
|
1942
1942
|
};
|
|
1943
1943
|
} else
|
|
1944
1944
|
return {
|
|
1945
|
-
match_:
|
|
1946
|
-
remainder: e.substr(
|
|
1945
|
+
match_: m,
|
|
1946
|
+
remainder: e.substr(h.endMatchEnd)
|
|
1947
1947
|
};
|
|
1948
1948
|
},
|
|
1949
1949
|
//
|
|
@@ -2054,19 +2054,19 @@ var vt = function(e, t) {
|
|
|
2054
2054
|
for (t in e)
|
|
2055
2055
|
for (o in e[t])
|
|
2056
2056
|
for (r = e[t][o].stateArray || [], a = 0; a < r.length; a++) {
|
|
2057
|
-
var
|
|
2058
|
-
if (
|
|
2059
|
-
|
|
2060
|
-
for (var s = 0; s <
|
|
2061
|
-
typeof
|
|
2057
|
+
var u = e[t][o];
|
|
2058
|
+
if (u.action_) {
|
|
2059
|
+
u.action_ = [].concat(u.action_);
|
|
2060
|
+
for (var s = 0; s < u.action_.length; s++)
|
|
2061
|
+
typeof u.action_[s] == "string" && (u.action_[s] = { type_: u.action_[s] });
|
|
2062
2062
|
} else
|
|
2063
|
-
|
|
2064
|
-
for (var c = t.split("|"),
|
|
2063
|
+
u.action_ = [];
|
|
2064
|
+
for (var c = t.split("|"), d = 0; d < c.length; d++)
|
|
2065
2065
|
if (r[a] === "*")
|
|
2066
|
-
for (var
|
|
2067
|
-
i[
|
|
2066
|
+
for (var g in i)
|
|
2067
|
+
i[g].push({ pattern: c[d], task: u });
|
|
2068
2068
|
else
|
|
2069
|
-
i[r[a]].push({ pattern: c[
|
|
2069
|
+
i[r[a]].push({ pattern: c[d], task: u });
|
|
2070
2070
|
}
|
|
2071
2071
|
return i;
|
|
2072
2072
|
},
|
|
@@ -2316,7 +2316,7 @@ l.stateMachines = {
|
|
|
2316
2316
|
e.d = t;
|
|
2317
2317
|
},
|
|
2318
2318
|
"- after o/d": function(e, t, o) {
|
|
2319
|
-
var r = l.patterns.match_("orbital", e.o || ""), a = l.patterns.match_("one lowercase greek letter $", e.o || ""), i = l.patterns.match_("one lowercase latin letter $", e.o || ""),
|
|
2319
|
+
var r = l.patterns.match_("orbital", e.o || ""), a = l.patterns.match_("one lowercase greek letter $", e.o || ""), i = l.patterns.match_("one lowercase latin letter $", e.o || ""), u = l.patterns.match_("$one lowercase latin letter$ $", e.o || ""), s = t === "-" && (r && r.remainder === "" || a || i || u);
|
|
2320
2320
|
s && !e.a && !e.b && !e.p && !e.d && !e.q && !r && i && (e.o = "$" + e.o + "$");
|
|
2321
2321
|
var c = [];
|
|
2322
2322
|
return s ? (l.concatArray(c, this.output(e)), c.push({ type_: "hyphen" })) : (r = l.patterns.match_("digits", e.d || ""), o && r && r.remainder === "" ? (l.concatArray(c, l.actions["d="](e, t)), l.concatArray(c, this.output(e))) : (l.concatArray(c, this.output(e)), l.concatArray(c, l.actions.bond(e, t, "-")))), c;
|
|
@@ -2373,8 +2373,8 @@ l.stateMachines = {
|
|
|
2373
2373
|
rq: i
|
|
2374
2374
|
};
|
|
2375
2375
|
}
|
|
2376
|
-
for (var
|
|
2377
|
-
|
|
2376
|
+
for (var u in e)
|
|
2377
|
+
u !== "parenthesisLevel" && u !== "beginsWithBond" && delete e[u];
|
|
2378
2378
|
return r;
|
|
2379
2379
|
},
|
|
2380
2380
|
"oxidation-output": function(e, t) {
|
|
@@ -2980,8 +2980,8 @@ var w = {
|
|
|
2980
2980
|
var i = {
|
|
2981
2981
|
rd: w._goInner(e.rd),
|
|
2982
2982
|
rq: w._goInner(e.rq)
|
|
2983
|
-
},
|
|
2984
|
-
i.rq && (
|
|
2983
|
+
}, u = "\\x" + w._getArrow(e.r);
|
|
2984
|
+
i.rq && (u += "[{" + i.rq + "}]"), i.rd ? u += "{" + i.rd + "}" : u += "{}", t = u;
|
|
2985
2985
|
break;
|
|
2986
2986
|
case "operator":
|
|
2987
2987
|
t = w._getOperator(e.kind_);
|
|
@@ -3164,40 +3164,40 @@ var w = {
|
|
|
3164
3164
|
}
|
|
3165
3165
|
}
|
|
3166
3166
|
};
|
|
3167
|
-
function
|
|
3167
|
+
function eo() {
|
|
3168
3168
|
return (e) => {
|
|
3169
|
-
|
|
3169
|
+
mt(e, "element", (t, o, r) => {
|
|
3170
3170
|
if (t.tagName === "p" && r && typeof o == "number" && t.children.length === 1) {
|
|
3171
3171
|
const a = t.children[0];
|
|
3172
|
-
if (a.type === "element" &&
|
|
3173
|
-
return r.children[o] = a, [
|
|
3172
|
+
if (a.type === "element" && to(a))
|
|
3173
|
+
return r.children[o] = a, [on, o];
|
|
3174
3174
|
}
|
|
3175
3175
|
});
|
|
3176
3176
|
};
|
|
3177
3177
|
}
|
|
3178
|
-
function
|
|
3178
|
+
function to(e) {
|
|
3179
3179
|
return Object.keys(e.properties || {}).some((t) => t.startsWith("data-"));
|
|
3180
3180
|
}
|
|
3181
|
-
function
|
|
3181
|
+
function no(e) {
|
|
3182
3182
|
return e.replace(/<([A-Z][a-zA-Z0-9]*(?:\.[A-Z][a-zA-Z0-9]*)*)(\s+[^>]*)>([\s\S]*?)<\/\1>/g, (t, o, r, a) => {
|
|
3183
|
-
const i =
|
|
3184
|
-
return `<${
|
|
3183
|
+
const i = at(r), u = o.toLowerCase().replace(/\./g, "-");
|
|
3184
|
+
return `<${u}${i}>${a}</${u}>`;
|
|
3185
3185
|
}).replace(/<([A-Z][a-zA-Z0-9]*(?:\.[A-Z][a-zA-Z0-9]*)*)(\s+[^>]*?)\s*\/>/g, (t, o, r) => {
|
|
3186
|
-
const a =
|
|
3186
|
+
const a = at(r), i = o.toLowerCase().replace(/\./g, "-");
|
|
3187
3187
|
return `<${i}${a}></${i}>`;
|
|
3188
3188
|
});
|
|
3189
3189
|
}
|
|
3190
|
-
function
|
|
3190
|
+
function at(e) {
|
|
3191
3191
|
if (!e) return "";
|
|
3192
3192
|
const t = [], o = /(\w+)=(?:{([^}]+)}|"([^"]*)"|'([^']*)')/g;
|
|
3193
3193
|
let r;
|
|
3194
3194
|
for (; (r = o.exec(e)) !== null; ) {
|
|
3195
|
-
const [, a, i,
|
|
3195
|
+
const [, a, i, u, s] = r, c = i || u || s || "";
|
|
3196
3196
|
t.push(`data-${a}="${c}"`);
|
|
3197
3197
|
}
|
|
3198
3198
|
return t.length > 0 ? " " + t.join(" ") : "";
|
|
3199
3199
|
}
|
|
3200
|
-
function
|
|
3200
|
+
function oo(e) {
|
|
3201
3201
|
const t = {};
|
|
3202
3202
|
for (const [o, r] of Object.entries(e))
|
|
3203
3203
|
if (o.startsWith("data-")) {
|
|
@@ -3229,38 +3229,38 @@ function no(e) {
|
|
|
3229
3229
|
}
|
|
3230
3230
|
return t;
|
|
3231
3231
|
}
|
|
3232
|
-
function
|
|
3233
|
-
const o =
|
|
3232
|
+
function st({ source: e }) {
|
|
3233
|
+
const o = Re().lang || "zh-cn", r = Qn(), a = b.useMemo(() => no(e), [e]), i = b.useMemo(() => {
|
|
3234
3234
|
const s = /* @__PURE__ */ new Map();
|
|
3235
|
-
return r && Object.entries(r).forEach(([c,
|
|
3236
|
-
const
|
|
3237
|
-
const
|
|
3238
|
-
return b.createElement(
|
|
3235
|
+
return r && Object.entries(r).forEach(([c, d]) => {
|
|
3236
|
+
const g = c.toLowerCase(), y = b.memo(({ children: f, ...h }) => {
|
|
3237
|
+
const m = oo(h);
|
|
3238
|
+
return b.createElement(d, m, f);
|
|
3239
3239
|
});
|
|
3240
|
-
if (s.set(
|
|
3241
|
-
const [
|
|
3242
|
-
s.set(
|
|
3240
|
+
if (s.set(g, y), c.includes(".")) {
|
|
3241
|
+
const [f, h] = c.split("."), m = `${f.toLowerCase()}-${h.toLowerCase()}`;
|
|
3242
|
+
s.set(m, y);
|
|
3243
3243
|
}
|
|
3244
3244
|
}), s;
|
|
3245
|
-
}, [r]),
|
|
3245
|
+
}, [r]), u = b.useMemo(() => Object.fromEntries(i), [i]);
|
|
3246
3246
|
return /* @__PURE__ */ n.jsx("div", { className: "prose dark:prose-invert max-w-none", children: /* @__PURE__ */ n.jsx(
|
|
3247
|
-
|
|
3247
|
+
Vt,
|
|
3248
3248
|
{
|
|
3249
|
-
remarkPlugins: [
|
|
3249
|
+
remarkPlugins: [Qt, tn],
|
|
3250
3250
|
rehypePlugins: [
|
|
3251
|
-
|
|
3251
|
+
Jt,
|
|
3252
3252
|
// 允许在 Markdown 中渲染原生 HTML(需放在 autolink 之前)
|
|
3253
3253
|
Kt,
|
|
3254
3254
|
// 将自定义 HTML 标签转换为 React 组件(必须在 rehypeRaw 之后)
|
|
3255
|
-
Kn(
|
|
3255
|
+
Kn(u),
|
|
3256
3256
|
// 移除包裹自定义组件的 p 标签(必须在 rehypeRaw 之后)
|
|
3257
|
-
|
|
3257
|
+
eo,
|
|
3258
3258
|
// 代码高亮(同步)
|
|
3259
|
-
[
|
|
3259
|
+
[en, { ignoreMissing: !0 }],
|
|
3260
3260
|
// 避免将整个标题包裹在 <a> 中,防止与标题内部链接产生嵌套 <a>
|
|
3261
|
-
[
|
|
3261
|
+
[Ht, { behavior: "append" }],
|
|
3262
3262
|
// 数学公式渲染(启用全部功能)
|
|
3263
|
-
[
|
|
3263
|
+
[nn, {
|
|
3264
3264
|
strict: !1,
|
|
3265
3265
|
trust: !0,
|
|
3266
3266
|
macros: {
|
|
@@ -3269,46 +3269,46 @@ function at({ source: e }) {
|
|
|
3269
3269
|
"\\Z": "\\mathbb{Z}",
|
|
3270
3270
|
"\\Q": "\\mathbb{Q}",
|
|
3271
3271
|
"\\C": "\\mathbb{C}",
|
|
3272
|
-
...
|
|
3272
|
+
...rn
|
|
3273
3273
|
}
|
|
3274
3274
|
}]
|
|
3275
3275
|
],
|
|
3276
3276
|
components: {
|
|
3277
3277
|
// 使用动态生成的组件映射
|
|
3278
|
-
...
|
|
3278
|
+
...u,
|
|
3279
3279
|
// Markdown 元素组件
|
|
3280
3280
|
table({ children: s, ...c }) {
|
|
3281
3281
|
return /* @__PURE__ */ n.jsx("div", { className: "overflow-x-auto", children: /* @__PURE__ */ n.jsx("table", { ...c, children: s }) });
|
|
3282
3282
|
},
|
|
3283
|
-
a({ href: s, children: c, ...
|
|
3284
|
-
if (!s) return /* @__PURE__ */ n.jsx("a", { ...
|
|
3283
|
+
a({ href: s, children: c, ...d }) {
|
|
3284
|
+
if (!s) return /* @__PURE__ */ n.jsx("a", { ...d, children: c });
|
|
3285
3285
|
if (s.startsWith("#"))
|
|
3286
|
-
return /* @__PURE__ */ n.jsx("a", { href: s, ...
|
|
3286
|
+
return /* @__PURE__ */ n.jsx("a", { href: s, ...d, children: c });
|
|
3287
3287
|
if (/^(https?:)?\/\//i.test(s) || s.startsWith("mailto:") || s.startsWith("tel:"))
|
|
3288
|
-
return /* @__PURE__ */ n.jsx("a", { href: s, target: "_blank", rel: "noopener noreferrer", ...
|
|
3289
|
-
const
|
|
3290
|
-
return /* @__PURE__ */ n.jsx(U, { to:
|
|
3288
|
+
return /* @__PURE__ */ n.jsx("a", { href: s, target: "_blank", rel: "noopener noreferrer", ...d, children: c });
|
|
3289
|
+
const y = s.startsWith("/") ? s : `/${s}`, f = `/${o}${y}`;
|
|
3290
|
+
return /* @__PURE__ */ n.jsx(U, { to: f, ...d, children: c });
|
|
3291
3291
|
}
|
|
3292
3292
|
},
|
|
3293
3293
|
children: a
|
|
3294
3294
|
}
|
|
3295
3295
|
) });
|
|
3296
3296
|
}
|
|
3297
|
-
const
|
|
3298
|
-
e && /* @__PURE__ */ n.jsx("div", { className: "mb-2 font-semibold text-blue-900 dark:text-blue-
|
|
3297
|
+
const ro = b.memo(({ title: e, children: t }) => /* @__PURE__ */ n.jsxs("div", { className: "my-4 rounded-lg border border-blue-200 bg-blue-50 p-4 dark:border-blue-800/30 dark:bg-blue-950/40", children: [
|
|
3298
|
+
e && /* @__PURE__ */ n.jsx("div", { className: "mb-2 font-semibold text-blue-900 dark:text-blue-200", children: e }),
|
|
3299
3299
|
/* @__PURE__ */ n.jsx("div", { className: "text-blue-800 dark:text-blue-200", children: t })
|
|
3300
|
-
] })),
|
|
3301
|
-
e && /* @__PURE__ */ n.jsx("div", { className: "mb-2 font-semibold text-yellow-900 dark:text-yellow-
|
|
3300
|
+
] })), ao = b.memo(({ title: e, children: t }) => /* @__PURE__ */ n.jsxs("div", { className: "my-4 rounded-lg border border-yellow-200 bg-yellow-50 p-4 dark:border-yellow-800/30 dark:bg-yellow-950/40", children: [
|
|
3301
|
+
e && /* @__PURE__ */ n.jsx("div", { className: "mb-2 font-semibold text-yellow-900 dark:text-yellow-200", children: e }),
|
|
3302
3302
|
/* @__PURE__ */ n.jsx("div", { className: "text-yellow-800 dark:text-yellow-200", children: t })
|
|
3303
|
-
] })),
|
|
3304
|
-
e && /* @__PURE__ */ n.jsx("div", { className: "mb-2 font-semibold text-gray-900 dark:text-gray-
|
|
3305
|
-
/* @__PURE__ */ n.jsx("div", { className: "text-gray-700 dark:text-gray-
|
|
3306
|
-
] })),
|
|
3307
|
-
Tip:
|
|
3308
|
-
Warning:
|
|
3309
|
-
Card:
|
|
3303
|
+
] })), so = b.memo(({ title: e, children: t }) => /* @__PURE__ */ n.jsxs("div", { className: "my-4 rounded-lg border border-gray-200 bg-white p-4 shadow-sm dark:border-gray-600/30 dark:bg-gray-900/40", children: [
|
|
3304
|
+
e && /* @__PURE__ */ n.jsx("div", { className: "mb-2 font-semibold text-gray-900 dark:text-gray-200", children: e }),
|
|
3305
|
+
/* @__PURE__ */ n.jsx("div", { className: "text-gray-700 dark:text-gray-200", children: t })
|
|
3306
|
+
] })), yt = {
|
|
3307
|
+
Tip: ro,
|
|
3308
|
+
Warning: ao,
|
|
3309
|
+
Card: so
|
|
3310
3310
|
};
|
|
3311
|
-
async function
|
|
3311
|
+
async function io() {
|
|
3312
3312
|
try {
|
|
3313
3313
|
const t = await import("/src/generated/mdx-components.ts");
|
|
3314
3314
|
if (t && t.MDX_COMPONENTS)
|
|
@@ -3318,10 +3318,10 @@ async function so() {
|
|
|
3318
3318
|
}
|
|
3319
3319
|
return null;
|
|
3320
3320
|
}
|
|
3321
|
-
async function
|
|
3321
|
+
async function co(e = "/src/components") {
|
|
3322
3322
|
return [];
|
|
3323
3323
|
}
|
|
3324
|
-
async function
|
|
3324
|
+
async function lo(e) {
|
|
3325
3325
|
try {
|
|
3326
3326
|
const t = await import(
|
|
3327
3327
|
/* @vite-ignore */
|
|
@@ -3334,23 +3334,23 @@ async function co(e) {
|
|
|
3334
3334
|
return console.warn(`[MDX] 无法导入组件 ${e}:`, t), null;
|
|
3335
3335
|
}
|
|
3336
3336
|
}
|
|
3337
|
-
async function
|
|
3337
|
+
async function uo(e, t) {
|
|
3338
3338
|
const o = {};
|
|
3339
|
-
Object.assign(o,
|
|
3340
|
-
const r = await
|
|
3339
|
+
Object.assign(o, yt);
|
|
3340
|
+
const r = await io();
|
|
3341
3341
|
if (r && Object.assign(o, r), t && Object.keys(t).length > 0 && !r)
|
|
3342
3342
|
for (const [a, i] of Object.entries(t))
|
|
3343
3343
|
try {
|
|
3344
|
-
const
|
|
3345
|
-
|
|
3346
|
-
} catch (
|
|
3347
|
-
console.warn(`[MDX] 加载组件 ${a} 失败:`,
|
|
3344
|
+
const u = await lo(i);
|
|
3345
|
+
u && (o[a] = u);
|
|
3346
|
+
} catch (u) {
|
|
3347
|
+
console.warn(`[MDX] 加载组件 ${a} 失败:`, u);
|
|
3348
3348
|
}
|
|
3349
3349
|
return o;
|
|
3350
3350
|
}
|
|
3351
|
-
function
|
|
3351
|
+
function Vo(e = {}) {
|
|
3352
3352
|
return {
|
|
3353
|
-
...
|
|
3353
|
+
...yt,
|
|
3354
3354
|
...e
|
|
3355
3355
|
};
|
|
3356
3356
|
}
|
|
@@ -3363,33 +3363,33 @@ async function ye(e = "zh-cn") {
|
|
|
3363
3363
|
if (!a.ok)
|
|
3364
3364
|
throw new Error(`Failed to fetch ${r}`);
|
|
3365
3365
|
const i = await a.text();
|
|
3366
|
-
return
|
|
3366
|
+
return an.load(i);
|
|
3367
3367
|
} catch (a) {
|
|
3368
3368
|
return console.error(`Error loading config for lang "${e}":`, a), e !== t ? await ye(t) : null;
|
|
3369
3369
|
}
|
|
3370
3370
|
}
|
|
3371
|
-
function
|
|
3371
|
+
function po(e, t, o) {
|
|
3372
3372
|
if (!e)
|
|
3373
3373
|
return { prev: null, next: null };
|
|
3374
|
-
const r = [], a = e.collections?.[o]?.sections, i = e.sections,
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
title:
|
|
3378
|
-
path:
|
|
3379
|
-
}),
|
|
3374
|
+
const r = [], a = e.collections?.[o]?.sections, i = e.sections, u = a || i;
|
|
3375
|
+
u && u.forEach((d) => {
|
|
3376
|
+
d.path && r.push({
|
|
3377
|
+
title: d.title,
|
|
3378
|
+
path: d.path
|
|
3379
|
+
}), d.children && d.children.length > 0 && d.children.forEach((g) => {
|
|
3380
3380
|
r.push({
|
|
3381
|
-
title:
|
|
3382
|
-
path:
|
|
3381
|
+
title: g.title,
|
|
3382
|
+
path: g.path
|
|
3383
3383
|
});
|
|
3384
3384
|
});
|
|
3385
3385
|
});
|
|
3386
|
-
const s = t.replace(/^\/[a-z-]+/, ""), c = r.findIndex((
|
|
3386
|
+
const s = t.replace(/^\/[a-z-]+/, ""), c = r.findIndex((d) => s === d.path);
|
|
3387
3387
|
return c === -1 ? { prev: null, next: null } : {
|
|
3388
3388
|
prev: c > 0 ? r[c - 1] : null,
|
|
3389
3389
|
next: c < r.length - 1 ? r[c + 1] : null
|
|
3390
3390
|
};
|
|
3391
3391
|
}
|
|
3392
|
-
const
|
|
3392
|
+
const mo = {
|
|
3393
3393
|
"zh-cn": {
|
|
3394
3394
|
page: "页面",
|
|
3395
3395
|
copyUrl: "复制当前链接",
|
|
@@ -3469,181 +3469,271 @@ const po = {
|
|
|
3469
3469
|
resetThemePref: !0
|
|
3470
3470
|
}
|
|
3471
3471
|
};
|
|
3472
|
-
function
|
|
3472
|
+
function ho({
|
|
3473
3473
|
children: e,
|
|
3474
3474
|
config: t
|
|
3475
3475
|
}) {
|
|
3476
|
-
const o =
|
|
3476
|
+
const o = ze(), r = Y(), { theme: a, setTheme: i } = ve(), u = I(async () => {
|
|
3477
3477
|
try {
|
|
3478
3478
|
await navigator.clipboard.writeText(window.location.href);
|
|
3479
3479
|
} catch {
|
|
3480
3480
|
}
|
|
3481
|
-
}, []), s =
|
|
3481
|
+
}, []), s = I(async () => {
|
|
3482
3482
|
try {
|
|
3483
3483
|
await navigator.clipboard.writeText(document.title || "");
|
|
3484
3484
|
} catch {
|
|
3485
3485
|
}
|
|
3486
|
-
}, []), c =
|
|
3486
|
+
}, []), c = I(async () => {
|
|
3487
3487
|
try {
|
|
3488
|
-
const
|
|
3489
|
-
await navigator.clipboard.writeText(`[${
|
|
3488
|
+
const D = document.title || "Docs", q = window.location.href;
|
|
3489
|
+
await navigator.clipboard.writeText(`[${D}](${q})`);
|
|
3490
3490
|
} catch {
|
|
3491
3491
|
}
|
|
3492
|
-
}, []),
|
|
3492
|
+
}, []), d = I(async () => {
|
|
3493
3493
|
try {
|
|
3494
|
-
const
|
|
3495
|
-
|
|
3494
|
+
const D = window.getSelection()?.toString() || "";
|
|
3495
|
+
D && await navigator.clipboard.writeText(D);
|
|
3496
3496
|
} catch {
|
|
3497
3497
|
}
|
|
3498
|
-
}, []),
|
|
3498
|
+
}, []), g = I(() => {
|
|
3499
3499
|
window.open(window.location.href, "_blank");
|
|
3500
|
-
}, []),
|
|
3500
|
+
}, []), y = I(() => {
|
|
3501
3501
|
window.location.reload();
|
|
3502
|
-
}, []),
|
|
3503
|
-
(
|
|
3502
|
+
}, []), f = I(() => o("/"), [o]), h = r.pathname.startsWith("/en") ? "en" : "zh-cn", m = mo[h], T = I(
|
|
3503
|
+
(D) => {
|
|
3504
3504
|
const q = r.pathname.split("/").filter(Boolean);
|
|
3505
|
-
q.length > 0 && (q[0] === "en" || q[0] === "zh-cn") ? q[0] =
|
|
3505
|
+
q.length > 0 && (q[0] === "en" || q[0] === "zh-cn") ? q[0] = D : q.unshift(D), o("/" + q.join("/"));
|
|
3506
3506
|
},
|
|
3507
3507
|
[r.pathname, o]
|
|
3508
|
-
),
|
|
3508
|
+
), v = I(() => window.scrollTo({ top: 0, behavior: "smooth" }), []), M = I(
|
|
3509
3509
|
() => window.scrollTo({ top: document.documentElement.scrollHeight, behavior: "smooth" }),
|
|
3510
3510
|
[]
|
|
3511
|
-
), $ =
|
|
3511
|
+
), $ = I(() => window.print(), []), j = I((D) => o(`/${h}/${D}`), [o, h]), O = I(() => {
|
|
3512
3512
|
try {
|
|
3513
3513
|
localStorage.removeItem("vite-ui-theme");
|
|
3514
3514
|
} catch {
|
|
3515
3515
|
}
|
|
3516
|
-
}, []),
|
|
3517
|
-
if (!
|
|
3516
|
+
}, []), L = t?.enabled === !1 ? null : { ...de, ...t };
|
|
3517
|
+
if (!L)
|
|
3518
3518
|
return /* @__PURE__ */ n.jsx("div", { className: "min-h-screen", children: e });
|
|
3519
|
-
const
|
|
3520
|
-
return /* @__PURE__ */ n.jsxs(
|
|
3521
|
-
/* @__PURE__ */ n.jsx(
|
|
3522
|
-
/* @__PURE__ */ n.jsxs(
|
|
3519
|
+
const C = { ...de.page, ...L.page }, J = { ...de.site, ...L.site }, A = { ...de.appearance, ...L.appearance }, F = Object.values(C).some(Boolean), G = Object.values(J).some(Boolean), Z = Object.values(A).some(Boolean);
|
|
3520
|
+
return /* @__PURE__ */ n.jsxs(Xn, { children: [
|
|
3521
|
+
/* @__PURE__ */ n.jsx(Yn, { asChild: !0, children: /* @__PURE__ */ n.jsx("div", { className: "min-h-screen", children: e }) }),
|
|
3522
|
+
/* @__PURE__ */ n.jsxs(gt, { children: [
|
|
3523
3523
|
F && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
3524
|
-
/* @__PURE__ */ n.jsx(fe, { children:
|
|
3524
|
+
/* @__PURE__ */ n.jsx(fe, { children: m.page }),
|
|
3525
3525
|
/* @__PURE__ */ n.jsxs($e, { children: [
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
(
|
|
3526
|
+
C.copyUrl && /* @__PURE__ */ n.jsx(P, { onClick: u, children: m.copyUrl }),
|
|
3527
|
+
C.copyTitle && /* @__PURE__ */ n.jsx(P, { onClick: s, children: m.copyTitle }),
|
|
3528
|
+
C.copyMarkdownLink && /* @__PURE__ */ n.jsx(P, { onClick: c, children: m.copyMarkdownLink }),
|
|
3529
|
+
C.copySelectedText && /* @__PURE__ */ n.jsx(P, { onClick: d, children: m.copySelectedText }),
|
|
3530
|
+
C.openInNewTab && /* @__PURE__ */ n.jsx(P, { onClick: g, children: m.openInNewTab }),
|
|
3531
|
+
C.reload && /* @__PURE__ */ n.jsx(P, { onClick: y, children: m.reload }),
|
|
3532
|
+
C.printPage && /* @__PURE__ */ n.jsx(P, { onClick: $, children: m.printPage }),
|
|
3533
|
+
(C.scrollToTop || C.scrollToBottom) && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
3534
3534
|
/* @__PURE__ */ n.jsx(ge, {}),
|
|
3535
|
-
|
|
3536
|
-
|
|
3535
|
+
C.scrollToTop && /* @__PURE__ */ n.jsx(P, { onClick: v, children: m.scrollToTop }),
|
|
3536
|
+
C.scrollToBottom && /* @__PURE__ */ n.jsx(P, { onClick: M, children: m.scrollToBottom })
|
|
3537
3537
|
] })
|
|
3538
3538
|
] })
|
|
3539
3539
|
] }),
|
|
3540
3540
|
G && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
3541
3541
|
F && /* @__PURE__ */ n.jsx(ge, {}),
|
|
3542
|
-
/* @__PURE__ */ n.jsx(fe, { children:
|
|
3542
|
+
/* @__PURE__ */ n.jsx(fe, { children: m.site }),
|
|
3543
3543
|
/* @__PURE__ */ n.jsxs($e, { children: [
|
|
3544
|
-
J.goHome && /* @__PURE__ */ n.jsx(P, { onClick:
|
|
3545
|
-
J.quickNav && /* @__PURE__ */ n.jsxs(
|
|
3546
|
-
/* @__PURE__ */ n.jsx(he, { children:
|
|
3544
|
+
J.goHome && /* @__PURE__ */ n.jsx(P, { onClick: f, children: m.goHome }),
|
|
3545
|
+
J.quickNav && /* @__PURE__ */ n.jsxs(Ce, { children: [
|
|
3546
|
+
/* @__PURE__ */ n.jsx(he, { children: m.quickNav }),
|
|
3547
3547
|
/* @__PURE__ */ n.jsxs(xe, { children: [
|
|
3548
|
-
/* @__PURE__ */ n.jsx(P, { onClick: () => j("index"), children:
|
|
3549
|
-
/* @__PURE__ */ n.jsx(P, { onClick: () => j("guide"), children:
|
|
3550
|
-
/* @__PURE__ */ n.jsx(P, { onClick: () => j("guide/introduction"), children:
|
|
3551
|
-
/* @__PURE__ */ n.jsx(P, { onClick: () => j("guide/installation"), children:
|
|
3552
|
-
/* @__PURE__ */ n.jsx(P, { onClick: () => j("guide/quick-start"), children:
|
|
3553
|
-
/* @__PURE__ */ n.jsx(P, { onClick: () => j("guide/configuration"), children:
|
|
3548
|
+
/* @__PURE__ */ n.jsx(P, { onClick: () => j("index"), children: m.docsIndex }),
|
|
3549
|
+
/* @__PURE__ */ n.jsx(P, { onClick: () => j("guide"), children: m.guide }),
|
|
3550
|
+
/* @__PURE__ */ n.jsx(P, { onClick: () => j("guide/introduction"), children: m.introduction }),
|
|
3551
|
+
/* @__PURE__ */ n.jsx(P, { onClick: () => j("guide/installation"), children: m.installation }),
|
|
3552
|
+
/* @__PURE__ */ n.jsx(P, { onClick: () => j("guide/quick-start"), children: m.quickStart }),
|
|
3553
|
+
/* @__PURE__ */ n.jsx(P, { onClick: () => j("guide/configuration"), children: m.configuration })
|
|
3554
3554
|
] })
|
|
3555
3555
|
] }),
|
|
3556
|
-
J.language && /* @__PURE__ */ n.jsxs(
|
|
3557
|
-
/* @__PURE__ */ n.jsx(he, { children:
|
|
3558
|
-
/* @__PURE__ */ n.jsx(xe, { children: /* @__PURE__ */ n.jsxs(
|
|
3559
|
-
/* @__PURE__ */ n.jsx(te, { value: "en", onClick: () =>
|
|
3560
|
-
/* @__PURE__ */ n.jsx(te, { value: "zh-cn", onClick: () =>
|
|
3556
|
+
J.language && /* @__PURE__ */ n.jsxs(Ce, { children: [
|
|
3557
|
+
/* @__PURE__ */ n.jsx(he, { children: m.language }),
|
|
3558
|
+
/* @__PURE__ */ n.jsx(xe, { children: /* @__PURE__ */ n.jsxs(rt, { value: h, children: [
|
|
3559
|
+
/* @__PURE__ */ n.jsx(te, { value: "en", onClick: () => T("en"), children: "English" }),
|
|
3560
|
+
/* @__PURE__ */ n.jsx(te, { value: "zh-cn", onClick: () => T("zh-cn"), children: "简体中文" })
|
|
3561
3561
|
] }) })
|
|
3562
3562
|
] })
|
|
3563
3563
|
] })
|
|
3564
3564
|
] }),
|
|
3565
3565
|
Z && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
3566
3566
|
(F || G) && /* @__PURE__ */ n.jsx(ge, {}),
|
|
3567
|
-
/* @__PURE__ */ n.jsx(fe, { children:
|
|
3567
|
+
/* @__PURE__ */ n.jsx(fe, { children: m.appearance }),
|
|
3568
3568
|
/* @__PURE__ */ n.jsxs($e, { children: [
|
|
3569
|
-
|
|
3570
|
-
/* @__PURE__ */ n.jsx(he, { children:
|
|
3571
|
-
/* @__PURE__ */ n.jsx(xe, { children: /* @__PURE__ */ n.jsxs(
|
|
3572
|
-
/* @__PURE__ */ n.jsx(te, { value: "light", onClick: () => i("light"), children:
|
|
3573
|
-
/* @__PURE__ */ n.jsx(te, { value: "dark", onClick: () => i("dark"), children:
|
|
3574
|
-
/* @__PURE__ */ n.jsx(te, { value: "system", onClick: () => i("system"), children:
|
|
3569
|
+
A.theme && /* @__PURE__ */ n.jsxs(Ce, { children: [
|
|
3570
|
+
/* @__PURE__ */ n.jsx(he, { children: m.theme }),
|
|
3571
|
+
/* @__PURE__ */ n.jsx(xe, { children: /* @__PURE__ */ n.jsxs(rt, { value: a, children: [
|
|
3572
|
+
/* @__PURE__ */ n.jsx(te, { value: "light", onClick: () => i("light"), children: m.light }),
|
|
3573
|
+
/* @__PURE__ */ n.jsx(te, { value: "dark", onClick: () => i("dark"), children: m.dark }),
|
|
3574
|
+
/* @__PURE__ */ n.jsx(te, { value: "system", onClick: () => i("system"), children: m.system })
|
|
3575
3575
|
] }) })
|
|
3576
3576
|
] }),
|
|
3577
|
-
|
|
3577
|
+
A.resetThemePref && /* @__PURE__ */ n.jsx(P, { onClick: O, children: m.resetThemePref })
|
|
3578
3578
|
] })
|
|
3579
3579
|
] })
|
|
3580
3580
|
] })
|
|
3581
3581
|
] });
|
|
3582
3582
|
}
|
|
3583
|
-
function
|
|
3584
|
-
|
|
3583
|
+
function Oe(e, t, o = "", r = []) {
|
|
3584
|
+
return e.forEach((a, i) => {
|
|
3585
|
+
let u = o;
|
|
3586
|
+
a.path && (a.path.startsWith("/") ? u = `/${t}${a.path}` : u = `${o}${a.path}`, r.push({
|
|
3587
|
+
title: a.title,
|
|
3588
|
+
path: u,
|
|
3589
|
+
lang: t,
|
|
3590
|
+
order: a.order ?? i
|
|
3591
|
+
})), a.children && a.children.length > 0 && Oe(a.children, t, u, r);
|
|
3592
|
+
}), r;
|
|
3593
|
+
}
|
|
3594
|
+
async function xo(e = "zh-cn") {
|
|
3595
|
+
try {
|
|
3596
|
+
const t = await ye(e);
|
|
3597
|
+
if (!t || !t.sidebar)
|
|
3598
|
+
return [];
|
|
3599
|
+
const o = [], r = t.sidebar;
|
|
3600
|
+
return r.collections && Object.entries(r.collections).forEach(([a, i]) => {
|
|
3601
|
+
i.sections && i.sections.length > 0 && Oe(
|
|
3602
|
+
i.sections,
|
|
3603
|
+
e,
|
|
3604
|
+
`/${e}`,
|
|
3605
|
+
o
|
|
3606
|
+
).forEach((s) => {
|
|
3607
|
+
o.find((c) => c.path === s.path) || o.push(s);
|
|
3608
|
+
});
|
|
3609
|
+
}), r.sections && r.sections.length > 0 && Oe(
|
|
3610
|
+
r.sections,
|
|
3611
|
+
e,
|
|
3612
|
+
`/${e}`,
|
|
3613
|
+
o
|
|
3614
|
+
).forEach((i) => {
|
|
3615
|
+
o.find((u) => u.path === i.path) || o.push(i);
|
|
3616
|
+
}), o.sort((a, i) => (a.order ?? 0) - (i.order ?? 0)), o;
|
|
3617
|
+
} catch (t) {
|
|
3618
|
+
return console.error("Failed to scan documents:", t), [];
|
|
3619
|
+
}
|
|
3620
|
+
}
|
|
3621
|
+
function fo(e, t) {
|
|
3622
|
+
if (!t.trim())
|
|
3623
|
+
return e;
|
|
3624
|
+
const o = t.toLowerCase();
|
|
3625
|
+
return e.filter(
|
|
3626
|
+
(r) => r.title.toLowerCase().includes(o) || r.path.toLowerCase().includes(o) || r.description?.toLowerCase().includes(o) || r.tags?.some((a) => a.toLowerCase().includes(o))
|
|
3627
|
+
);
|
|
3628
|
+
}
|
|
3629
|
+
class go {
|
|
3630
|
+
cache = /* @__PURE__ */ new Map();
|
|
3631
|
+
ttl = 300 * 1e3;
|
|
3632
|
+
// 5分钟缓存
|
|
3633
|
+
/**
|
|
3634
|
+
* 获取文档索引(带缓存)
|
|
3635
|
+
*/
|
|
3636
|
+
async getDocuments(t) {
|
|
3637
|
+
const o = Date.now(), r = this.cache.get(t);
|
|
3638
|
+
if (r && o - r.timestamp < this.ttl)
|
|
3639
|
+
return r.docs;
|
|
3640
|
+
const a = await xo(t);
|
|
3641
|
+
return this.cache.set(t, { docs: a, timestamp: o }), a;
|
|
3642
|
+
}
|
|
3643
|
+
/**
|
|
3644
|
+
* 搜索文档(带缓存)
|
|
3645
|
+
*/
|
|
3646
|
+
async searchDocuments(t, o) {
|
|
3647
|
+
const r = await this.getDocuments(t);
|
|
3648
|
+
return fo(r, o);
|
|
3649
|
+
}
|
|
3650
|
+
/**
|
|
3651
|
+
* 使缓存失效
|
|
3652
|
+
*/
|
|
3653
|
+
invalidate(t) {
|
|
3654
|
+
t ? this.cache.delete(t) : this.cache.clear();
|
|
3655
|
+
}
|
|
3656
|
+
/**
|
|
3657
|
+
* 清空所有缓存
|
|
3658
|
+
*/
|
|
3659
|
+
clear() {
|
|
3660
|
+
this.cache.clear();
|
|
3661
|
+
}
|
|
3662
|
+
}
|
|
3663
|
+
const vo = new go();
|
|
3664
|
+
function _o() {
|
|
3665
|
+
const [e, t] = E(!1), [o, r] = E(""), [a, i] = E([]), u = Y(), s = ze(), d = Re().lang || (u.pathname.startsWith("/en") ? "en" : "zh-cn"), { setTheme: g } = ve();
|
|
3585
3666
|
W(() => {
|
|
3586
|
-
const
|
|
3587
|
-
m.key.toLowerCase() === "k" && (m.metaKey || m.ctrlKey) && (m.preventDefault(), t((
|
|
3667
|
+
const h = (m) => {
|
|
3668
|
+
m.key.toLowerCase() === "k" && (m.metaKey || m.ctrlKey) && (m.preventDefault(), t((T) => !T));
|
|
3588
3669
|
};
|
|
3589
|
-
return document.addEventListener("keydown",
|
|
3670
|
+
return document.addEventListener("keydown", h), () => document.removeEventListener("keydown", h);
|
|
3590
3671
|
}, []), W(() => {
|
|
3591
|
-
let
|
|
3672
|
+
let h = !1;
|
|
3592
3673
|
return (async () => {
|
|
3593
|
-
|
|
3594
|
-
|
|
3674
|
+
try {
|
|
3675
|
+
const m = await vo.getDocuments(d);
|
|
3676
|
+
h || i(m);
|
|
3677
|
+
} catch (m) {
|
|
3678
|
+
console.error("Failed to load document index:", m);
|
|
3679
|
+
}
|
|
3595
3680
|
})(), () => {
|
|
3596
|
-
|
|
3681
|
+
h = !0;
|
|
3597
3682
|
};
|
|
3598
|
-
}, [
|
|
3599
|
-
const
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
const
|
|
3603
|
-
return
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
}, [s, i]), v = (x) => {
|
|
3609
|
-
t(!1), r(x);
|
|
3683
|
+
}, [d]);
|
|
3684
|
+
const y = ae(() => {
|
|
3685
|
+
if (!o.trim())
|
|
3686
|
+
return a;
|
|
3687
|
+
const h = o.toLowerCase();
|
|
3688
|
+
return a.filter(
|
|
3689
|
+
(m) => m.title.toLowerCase().includes(h) || m.path.toLowerCase().includes(h) || m.description?.toLowerCase().includes(h) || m.tags?.some((T) => T.toLowerCase().includes(h))
|
|
3690
|
+
);
|
|
3691
|
+
}, [a, o]), f = (h) => {
|
|
3692
|
+
t(!1), s(h);
|
|
3610
3693
|
};
|
|
3611
|
-
return /* @__PURE__ */ n.jsx(
|
|
3612
|
-
/* @__PURE__ */ n.jsx(
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3694
|
+
return /* @__PURE__ */ n.jsx(Bn, { open: e, onOpenChange: t, children: /* @__PURE__ */ n.jsxs(ft, { children: [
|
|
3695
|
+
/* @__PURE__ */ n.jsx(
|
|
3696
|
+
Wn,
|
|
3697
|
+
{
|
|
3698
|
+
placeholder: d === "en" ? "Type a command or search..." : "输入命令或搜索...",
|
|
3699
|
+
value: o,
|
|
3700
|
+
onValueChange: r
|
|
3701
|
+
}
|
|
3702
|
+
),
|
|
3703
|
+
/* @__PURE__ */ n.jsxs(Fn, { children: [
|
|
3704
|
+
/* @__PURE__ */ n.jsx(Zn, { children: d === "en" ? "No results found." : "未找到结果" }),
|
|
3705
|
+
/* @__PURE__ */ n.jsx(Se, { heading: d === "en" ? "Pages" : "文档页面", children: y.map((h) => /* @__PURE__ */ n.jsxs(ee, { onSelect: () => f(h.path), children: [
|
|
3706
|
+
h.title,
|
|
3707
|
+
/* @__PURE__ */ n.jsx(Un, { children: h.path.startsWith(`/${d}/`) ? h.path.substring(`/${d}/`.length - 1) : h.path })
|
|
3708
|
+
] }, h.path)) }),
|
|
3709
|
+
/* @__PURE__ */ n.jsx(ot, {}),
|
|
3710
|
+
/* @__PURE__ */ n.jsxs(Se, { heading: d === "en" ? "Theme" : "主题", children: [
|
|
3711
|
+
/* @__PURE__ */ n.jsx(ee, { onSelect: () => g("light"), children: d === "en" ? "Light" : "浅色" }),
|
|
3712
|
+
/* @__PURE__ */ n.jsx(ee, { onSelect: () => g("dark"), children: d === "en" ? "Dark" : "深色" }),
|
|
3713
|
+
/* @__PURE__ */ n.jsx(ee, { onSelect: () => g("system"), children: d === "en" ? "System" : "跟随系统" })
|
|
3624
3714
|
] }),
|
|
3625
|
-
/* @__PURE__ */ n.jsx(
|
|
3626
|
-
/* @__PURE__ */ n.jsxs(Se, { heading:
|
|
3715
|
+
/* @__PURE__ */ n.jsx(ot, {}),
|
|
3716
|
+
/* @__PURE__ */ n.jsxs(Se, { heading: d === "en" ? "Actions" : "操作", children: [
|
|
3627
3717
|
/* @__PURE__ */ n.jsx(ee, { onSelect: () => {
|
|
3628
3718
|
t(!1), window.location.reload();
|
|
3629
|
-
}, children:
|
|
3719
|
+
}, children: d === "en" ? "Reload Page" : "刷新页面" }),
|
|
3630
3720
|
/* @__PURE__ */ n.jsx(ee, { onSelect: () => {
|
|
3631
3721
|
t(!1), navigator.clipboard.writeText(window.location.href);
|
|
3632
|
-
}, children:
|
|
3722
|
+
}, children: d === "en" ? "Copy URL" : "复制链接" })
|
|
3633
3723
|
] })
|
|
3634
3724
|
] })
|
|
3635
3725
|
] }) });
|
|
3636
3726
|
}
|
|
3637
|
-
function
|
|
3727
|
+
function yo(e) {
|
|
3638
3728
|
const t = e.split(`
|
|
3639
3729
|
`);
|
|
3640
3730
|
let o = {}, r = 0;
|
|
3641
3731
|
if (t[0]?.startsWith("---")) {
|
|
3642
3732
|
let a = 1;
|
|
3643
3733
|
for (; a < t.length && !t[a]?.startsWith("---"); ) {
|
|
3644
|
-
const i = t[a],
|
|
3645
|
-
if (
|
|
3646
|
-
const s = i.substring(0,
|
|
3734
|
+
const i = t[a], u = i.indexOf(":");
|
|
3735
|
+
if (u > 0) {
|
|
3736
|
+
const s = i.substring(0, u).trim(), c = i.substring(u + 1).trim();
|
|
3647
3737
|
c === "true" || c === "false" ? o[s] = c === "true" : isNaN(Number(c)) ? o[s] = c : o[s] = Number(c);
|
|
3648
3738
|
}
|
|
3649
3739
|
a++;
|
|
@@ -3656,7 +3746,7 @@ function xo(e) {
|
|
|
3656
3746
|
`)
|
|
3657
3747
|
};
|
|
3658
3748
|
}
|
|
3659
|
-
function
|
|
3749
|
+
function bo() {
|
|
3660
3750
|
const [e, t] = E(void 0), [o, r] = E({});
|
|
3661
3751
|
return W(() => {
|
|
3662
3752
|
let a = !1;
|
|
@@ -3665,11 +3755,11 @@ function fo() {
|
|
|
3665
3755
|
const i = await ye("zh-cn");
|
|
3666
3756
|
if (!a) {
|
|
3667
3757
|
t(i?.contextMenu);
|
|
3668
|
-
const
|
|
3758
|
+
const u = i?.mdx?.componentsPath || "/src/components", s = i?.mdx?.components;
|
|
3669
3759
|
if (i?.mdx?.enabled !== !1)
|
|
3670
3760
|
try {
|
|
3671
|
-
const c = await
|
|
3672
|
-
console.log("[MDX] 已加载的组件:", Object.keys(
|
|
3761
|
+
const c = await co(u), d = await uo(c, s);
|
|
3762
|
+
console.log("[MDX] 已加载的组件:", Object.keys(d)), r(d);
|
|
3673
3763
|
} catch (c) {
|
|
3674
3764
|
console.warn("[MDX] 加载组件失败:", c);
|
|
3675
3765
|
}
|
|
@@ -3680,19 +3770,19 @@ function fo() {
|
|
|
3680
3770
|
})(), () => {
|
|
3681
3771
|
a = !0;
|
|
3682
3772
|
};
|
|
3683
|
-
}, []), /* @__PURE__ */ n.jsx(
|
|
3684
|
-
/* @__PURE__ */ n.jsx(
|
|
3685
|
-
/* @__PURE__ */ n.jsx(
|
|
3773
|
+
}, []), /* @__PURE__ */ n.jsx(un, { defaultTheme: "system", storageKey: "vite-ui-theme", children: /* @__PURE__ */ n.jsx(Jn, { components: o, children: /* @__PURE__ */ n.jsxs(ho, { config: e, children: [
|
|
3774
|
+
/* @__PURE__ */ n.jsx(_o, {}),
|
|
3775
|
+
/* @__PURE__ */ n.jsx(Ft, {})
|
|
3686
3776
|
] }) }) });
|
|
3687
3777
|
}
|
|
3688
|
-
function
|
|
3689
|
-
const e =
|
|
3778
|
+
function Te() {
|
|
3779
|
+
const e = Re(), t = e.lang, o = e["*"], r = ae(() => t || "zh-cn", [t]), [a, i] = E(null), [u, s] = E(null), [c, d] = E({}), [g, y] = E(!1), [f, h] = E(!0), [m, T] = E(null), v = ae(() => {
|
|
3690
3780
|
const j = (o || "").split("/").filter(Boolean);
|
|
3691
3781
|
return j.length > 0 ? j[0] : "";
|
|
3692
3782
|
}, [o]), { prev: M, next: $ } = ae(() => {
|
|
3693
3783
|
const j = `/${r}/${o || ""}`;
|
|
3694
|
-
return
|
|
3695
|
-
}, [a?.sidebar, r, o,
|
|
3784
|
+
return po(a?.sidebar, j, v);
|
|
3785
|
+
}, [a?.sidebar, r, o, v]);
|
|
3696
3786
|
return W(() => {
|
|
3697
3787
|
let j = !1;
|
|
3698
3788
|
return (async () => {
|
|
@@ -3707,134 +3797,134 @@ function Ce() {
|
|
|
3707
3797
|
};
|
|
3708
3798
|
}, [r]), W(() => {
|
|
3709
3799
|
let j = !1;
|
|
3710
|
-
|
|
3711
|
-
const O = o || "index",
|
|
3800
|
+
h(!0);
|
|
3801
|
+
const O = o || "index", L = `/docs/${r}/${O}.md`, C = `/docs/${r}/${O}.mdx`;
|
|
3712
3802
|
return (async () => {
|
|
3713
3803
|
try {
|
|
3714
|
-
const [
|
|
3715
|
-
fetch(
|
|
3716
|
-
fetch(
|
|
3804
|
+
const [A, F] = await Promise.all([
|
|
3805
|
+
fetch(L),
|
|
3806
|
+
fetch(C)
|
|
3717
3807
|
]);
|
|
3718
3808
|
let G = null, Z = !1;
|
|
3719
3809
|
if (F.ok) {
|
|
3720
3810
|
const q = await F.text();
|
|
3721
3811
|
!q.trim().startsWith("<!DOCTYPE") && !q.includes("<html") && (G = q, Z = !0);
|
|
3722
3812
|
}
|
|
3723
|
-
if (!G &&
|
|
3724
|
-
const q = await
|
|
3813
|
+
if (!G && A.ok) {
|
|
3814
|
+
const q = await A.text();
|
|
3725
3815
|
!q.trim().startsWith("<!DOCTYPE") && !q.includes("<html") && (G = q, Z = !1);
|
|
3726
3816
|
}
|
|
3727
3817
|
if (!G)
|
|
3728
|
-
throw new Error(`Neither ${
|
|
3818
|
+
throw new Error(`Neither ${L} nor ${C} found`);
|
|
3729
3819
|
if (j) return;
|
|
3730
|
-
const { data:
|
|
3731
|
-
|
|
3732
|
-
} catch (
|
|
3820
|
+
const { data: D } = yo(G);
|
|
3821
|
+
d(D), s(G), y(Z);
|
|
3822
|
+
} catch (A) {
|
|
3733
3823
|
if (j) return;
|
|
3734
3824
|
s(`# 404 - Not Found
|
|
3735
3825
|
|
|
3736
|
-
The page you're looking for could not be found.`),
|
|
3826
|
+
The page you're looking for could not be found.`), d({ title: "Not Found" }), y(!1), T(A);
|
|
3737
3827
|
} finally {
|
|
3738
|
-
|
|
3828
|
+
h(!1);
|
|
3739
3829
|
}
|
|
3740
3830
|
})(), () => {
|
|
3741
3831
|
j = !0;
|
|
3742
3832
|
};
|
|
3743
|
-
}, [r, o]), a ?
|
|
3833
|
+
}, [r, o]), a ? m ? /* @__PURE__ */ n.jsx(nt, { lang: r, config: a, frontmatter: { title: "错误" }, prev: null, next: null, children: /* @__PURE__ */ n.jsxs("div", { className: "text-red-600", children: [
|
|
3744
3834
|
/* @__PURE__ */ n.jsx("h1", { children: "页面加载失败" }),
|
|
3745
|
-
/* @__PURE__ */ n.jsx("p", { children:
|
|
3746
|
-
] }) }) : /* @__PURE__ */ n.jsx(
|
|
3835
|
+
/* @__PURE__ */ n.jsx("p", { children: m.message })
|
|
3836
|
+
] }) }) : /* @__PURE__ */ n.jsx(nt, { lang: r, config: a, frontmatter: c, prev: M, next: $, children: f && !u ? /* @__PURE__ */ n.jsx("div", { children: "Loading..." }) : g ? /* @__PURE__ */ n.jsx(st, { source: u || "" }) : /* @__PURE__ */ n.jsx(st, { source: u || "" }) }) : /* @__PURE__ */ n.jsx("div", { children: "Loading..." });
|
|
3747
3837
|
}
|
|
3748
|
-
function
|
|
3838
|
+
function Ho() {
|
|
3749
3839
|
const e = ae(
|
|
3750
|
-
() =>
|
|
3840
|
+
() => Bt([
|
|
3751
3841
|
{
|
|
3752
3842
|
path: "/",
|
|
3753
|
-
element: /* @__PURE__ */ n.jsx(
|
|
3843
|
+
element: /* @__PURE__ */ n.jsx(bo, {}),
|
|
3754
3844
|
children: [
|
|
3755
|
-
{ index: !0, element: /* @__PURE__ */ n.jsx(
|
|
3756
|
-
{ path: ":lang", element: /* @__PURE__ */ n.jsx(
|
|
3757
|
-
{ path: ":lang/*", element: /* @__PURE__ */ n.jsx(
|
|
3845
|
+
{ index: !0, element: /* @__PURE__ */ n.jsx(Te, {}) },
|
|
3846
|
+
{ path: ":lang", element: /* @__PURE__ */ n.jsx(Te, {}) },
|
|
3847
|
+
{ path: ":lang/*", element: /* @__PURE__ */ n.jsx(Te, {}) }
|
|
3758
3848
|
]
|
|
3759
3849
|
}
|
|
3760
3850
|
]),
|
|
3761
3851
|
[]
|
|
3762
3852
|
);
|
|
3763
|
-
return /* @__PURE__ */ n.jsx(
|
|
3853
|
+
return /* @__PURE__ */ n.jsx(Wt, { router: e });
|
|
3764
3854
|
}
|
|
3765
3855
|
export {
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3856
|
+
Pn as Badge,
|
|
3857
|
+
so as Card,
|
|
3858
|
+
bn as Collapsible,
|
|
3859
|
+
wn as CollapsibleContent,
|
|
3770
3860
|
Ke as CollapsibleTrigger,
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3861
|
+
ft as Command,
|
|
3862
|
+
Bn as CommandDialog,
|
|
3863
|
+
Jn as ComponentProvider,
|
|
3864
|
+
Xn as ContextMenu,
|
|
3865
|
+
Vn as ContextMenuCheckboxItem,
|
|
3866
|
+
gt as ContextMenuContent,
|
|
3777
3867
|
P as ContextMenuItem,
|
|
3778
3868
|
fe as ContextMenuLabel,
|
|
3779
|
-
|
|
3869
|
+
rt as ContextMenuRadioGroup,
|
|
3780
3870
|
te as ContextMenuRadioItem,
|
|
3781
3871
|
ge as ContextMenuSeparator,
|
|
3782
|
-
|
|
3783
|
-
|
|
3872
|
+
Hn as ContextMenuShortcut,
|
|
3873
|
+
Ce as ContextMenuSub,
|
|
3784
3874
|
xe as ContextMenuSubContent,
|
|
3785
3875
|
he as ContextMenuSubTrigger,
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3876
|
+
Yn as ContextMenuTrigger,
|
|
3877
|
+
Rn as Dialog,
|
|
3878
|
+
Xo as DialogClose,
|
|
3789
3879
|
In as DialogContent,
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3880
|
+
Gn as DialogDescription,
|
|
3881
|
+
Yo as DialogFooter,
|
|
3882
|
+
Ln as DialogHeader,
|
|
3793
3883
|
An as DialogTitle,
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3884
|
+
Uo as DialogTrigger,
|
|
3885
|
+
Ho as DocsApp,
|
|
3886
|
+
nt as DocsLayout,
|
|
3887
|
+
Le as DropdownMenu,
|
|
3888
|
+
hn as DropdownMenuCheckboxItem,
|
|
3799
3889
|
_e as DropdownMenuContent,
|
|
3800
|
-
|
|
3890
|
+
Bo as DropdownMenuGroup,
|
|
3801
3891
|
H as DropdownMenuItem,
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3892
|
+
fn as DropdownMenuLabel,
|
|
3893
|
+
Wo as DropdownMenuPortal,
|
|
3894
|
+
Zo as DropdownMenuRadioGroup,
|
|
3895
|
+
xn as DropdownMenuRadioItem,
|
|
3806
3896
|
Pe as DropdownMenuSeparator,
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3897
|
+
gn as DropdownMenuShortcut,
|
|
3898
|
+
Fo as DropdownMenuSub,
|
|
3899
|
+
mn as DropdownMenuSubContent,
|
|
3900
|
+
pn as DropdownMenuSubTrigger,
|
|
3811
3901
|
Ae as DropdownMenuTrigger,
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3902
|
+
Mn as Footer,
|
|
3903
|
+
yn as HeaderNav,
|
|
3904
|
+
zn as Label,
|
|
3905
|
+
Je as LanguageSwitcher,
|
|
3906
|
+
st as MdxContent,
|
|
3907
|
+
Qe as ModeToggle,
|
|
3818
3908
|
Tn as PageNavigation,
|
|
3819
3909
|
Me as ScrollArea,
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3910
|
+
qn as Separator,
|
|
3911
|
+
xt as SidebarNav,
|
|
3912
|
+
Cn as TableOfContents,
|
|
3913
|
+
un as ThemeProvider,
|
|
3914
|
+
ro as Tip,
|
|
3825
3915
|
pe as Tooltip,
|
|
3826
3916
|
ce as TooltipContent,
|
|
3827
3917
|
ue as TooltipProvider,
|
|
3828
3918
|
me as TooltipTrigger,
|
|
3829
|
-
|
|
3919
|
+
ao as Warning,
|
|
3830
3920
|
ie as buttonVariants,
|
|
3831
|
-
|
|
3921
|
+
x as cn,
|
|
3832
3922
|
ye as getConfig,
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3923
|
+
po as getPrevNextPage,
|
|
3924
|
+
lo as importComponent,
|
|
3925
|
+
uo as loadComponents,
|
|
3926
|
+
Vo as mergeComponents,
|
|
3927
|
+
co as scanComponents,
|
|
3928
|
+
Qn as useComponents,
|
|
3839
3929
|
ve as useTheme
|
|
3840
3930
|
};
|