@quietmind/mdx-docs 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +277 -0
- package/dist/404.html +21 -0
- package/dist/index.css +1 -0
- package/dist/index.js +1265 -0
- package/dist/vite.svg +1 -0
- package/package.json +80 -0
- package/src/vite.config.helper.js +38 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,1265 @@
|
|
|
1
|
+
import { jsx as r, jsxs as p, Fragment as z } from "react/jsx-runtime";
|
|
2
|
+
import X, { createContext as F, useContext as K, useState as T, Suspense as j, useEffect as b, useLayoutEffect as Y, useMemo as V, StrictMode as q } from "react";
|
|
3
|
+
import { createRoot as Z } from "react-dom/client";
|
|
4
|
+
import { AppBar as J, Toolbar as N, IconButton as v, Typography as Q, Box as c, useTheme as D, Tooltip as ee, CircularProgress as te, List as re, ListItem as oe, ListItemButton as ne, ListItemText as ae, Drawer as _, createTheme as ie, ThemeProvider as se, CssBaseline as de } from "@mui/material";
|
|
5
|
+
import { Link as L, Routes as le, Route as P, useLocation as M, BrowserRouter as ce, useNavigate as pe } from "react-router-dom";
|
|
6
|
+
import ue from "@mui/icons-material/DarkMode";
|
|
7
|
+
import fe from "@mui/icons-material/LightMode";
|
|
8
|
+
import me from "@mui/icons-material/Menu";
|
|
9
|
+
import { MDXProvider as he } from "@mdx-js/react";
|
|
10
|
+
import ge from "@mui/icons-material/Check";
|
|
11
|
+
import be from "@mui/icons-material/ContentCopy";
|
|
12
|
+
import { Highlight as $ } from "prism-react-renderer";
|
|
13
|
+
import Se from "prismjs";
|
|
14
|
+
const B = F(null), ye = ({ pages: e, site: t, children: o }) => /* @__PURE__ */ r(B.Provider, { value: { pages: e, site: t }, children: o }), A = () => {
|
|
15
|
+
const e = K(B);
|
|
16
|
+
if (!e)
|
|
17
|
+
throw new Error("useDocsContext must be used within a DocsProvider");
|
|
18
|
+
return e;
|
|
19
|
+
};
|
|
20
|
+
function ke({ darkMode: e, setDarkMode: t, handleDrawerToggle: o }) {
|
|
21
|
+
const { site: n } = A();
|
|
22
|
+
return /* @__PURE__ */ r(
|
|
23
|
+
J,
|
|
24
|
+
{
|
|
25
|
+
position: "fixed",
|
|
26
|
+
sx: { zIndex: (i) => i.zIndex.drawer + 1 },
|
|
27
|
+
children: /* @__PURE__ */ p(N, { children: [
|
|
28
|
+
/* @__PURE__ */ r(
|
|
29
|
+
v,
|
|
30
|
+
{
|
|
31
|
+
color: "inherit",
|
|
32
|
+
edge: "start",
|
|
33
|
+
onClick: o,
|
|
34
|
+
"aria-label": "Toggle navigation menu",
|
|
35
|
+
sx: { mr: 2, display: { sm: "none" } },
|
|
36
|
+
children: /* @__PURE__ */ r(me, {})
|
|
37
|
+
}
|
|
38
|
+
),
|
|
39
|
+
/* @__PURE__ */ r(
|
|
40
|
+
Q,
|
|
41
|
+
{
|
|
42
|
+
variant: "h6",
|
|
43
|
+
noWrap: !0,
|
|
44
|
+
component: L,
|
|
45
|
+
to: "/",
|
|
46
|
+
sx: {
|
|
47
|
+
textDecoration: "none",
|
|
48
|
+
color: "inherit",
|
|
49
|
+
"&:hover": {
|
|
50
|
+
color: "inherit"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
children: n.name
|
|
54
|
+
}
|
|
55
|
+
),
|
|
56
|
+
/* @__PURE__ */ r(c, { sx: { flexGrow: 1 } }),
|
|
57
|
+
/* @__PURE__ */ r(
|
|
58
|
+
v,
|
|
59
|
+
{
|
|
60
|
+
onClick: () => t(!e),
|
|
61
|
+
color: "inherit",
|
|
62
|
+
"aria-label": e ? "Switch to light mode" : "Switch to dark mode",
|
|
63
|
+
sx: {
|
|
64
|
+
ml: 1,
|
|
65
|
+
"&:focus": {
|
|
66
|
+
outline: "none"
|
|
67
|
+
},
|
|
68
|
+
"&:focus-visible": {
|
|
69
|
+
outline: "none"
|
|
70
|
+
},
|
|
71
|
+
"&:focus-within": {
|
|
72
|
+
outline: "none"
|
|
73
|
+
},
|
|
74
|
+
// Remove webkit focus ring
|
|
75
|
+
"&::-webkit-focus-inner": {
|
|
76
|
+
border: 0
|
|
77
|
+
},
|
|
78
|
+
"&::-webkit-focus-ring-color": {
|
|
79
|
+
outline: "none"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
children: e ? /* @__PURE__ */ r(fe, {}) : /* @__PURE__ */ r(ue, {})
|
|
83
|
+
}
|
|
84
|
+
)
|
|
85
|
+
] })
|
|
86
|
+
}
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
(function(e) {
|
|
90
|
+
var t = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", o = {
|
|
91
|
+
pattern: /(^(["']?)\w+\2)[ \t]+\S.*/,
|
|
92
|
+
lookbehind: !0,
|
|
93
|
+
alias: "punctuation",
|
|
94
|
+
// this looks reasonably well in all themes
|
|
95
|
+
inside: null
|
|
96
|
+
// see below
|
|
97
|
+
}, n = {
|
|
98
|
+
bash: o,
|
|
99
|
+
environment: {
|
|
100
|
+
pattern: RegExp("\\$" + t),
|
|
101
|
+
alias: "constant"
|
|
102
|
+
},
|
|
103
|
+
variable: [
|
|
104
|
+
// [0]: Arithmetic Environment
|
|
105
|
+
{
|
|
106
|
+
pattern: /\$?\(\([\s\S]+?\)\)/,
|
|
107
|
+
greedy: !0,
|
|
108
|
+
inside: {
|
|
109
|
+
// If there is a $ sign at the beginning highlight $(( and )) as variable
|
|
110
|
+
variable: [
|
|
111
|
+
{
|
|
112
|
+
pattern: /(^\$\(\([\s\S]+)\)\)/,
|
|
113
|
+
lookbehind: !0
|
|
114
|
+
},
|
|
115
|
+
/^\$\(\(/
|
|
116
|
+
],
|
|
117
|
+
number: /\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,
|
|
118
|
+
// Operators according to https://www.gnu.org/software/bash/manual/bashref.html#Shell-Arithmetic
|
|
119
|
+
operator: /--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,
|
|
120
|
+
// If there is no $ sign at the beginning highlight (( and )) as punctuation
|
|
121
|
+
punctuation: /\(\(?|\)\)?|,|;/
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
// [1]: Command Substitution
|
|
125
|
+
{
|
|
126
|
+
pattern: /\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,
|
|
127
|
+
greedy: !0,
|
|
128
|
+
inside: {
|
|
129
|
+
variable: /^\$\(|^`|\)$|`$/
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
// [2]: Brace expansion
|
|
133
|
+
{
|
|
134
|
+
pattern: /\$\{[^}]+\}/,
|
|
135
|
+
greedy: !0,
|
|
136
|
+
inside: {
|
|
137
|
+
operator: /:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,
|
|
138
|
+
punctuation: /[\[\]]/,
|
|
139
|
+
environment: {
|
|
140
|
+
pattern: RegExp("(\\{)" + t),
|
|
141
|
+
lookbehind: !0,
|
|
142
|
+
alias: "constant"
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
/\$(?:\w+|[#?*!@$])/
|
|
147
|
+
],
|
|
148
|
+
// Escape sequences from echo and printf's manuals, and escaped quotes.
|
|
149
|
+
entity: /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/
|
|
150
|
+
};
|
|
151
|
+
e.languages.bash = {
|
|
152
|
+
shebang: {
|
|
153
|
+
pattern: /^#!\s*\/.*/,
|
|
154
|
+
alias: "important"
|
|
155
|
+
},
|
|
156
|
+
comment: {
|
|
157
|
+
pattern: /(^|[^"{\\$])#.*/,
|
|
158
|
+
lookbehind: !0
|
|
159
|
+
},
|
|
160
|
+
"function-name": [
|
|
161
|
+
// a) function foo {
|
|
162
|
+
// b) foo() {
|
|
163
|
+
// c) function foo() {
|
|
164
|
+
// but not “foo {”
|
|
165
|
+
{
|
|
166
|
+
// a) and c)
|
|
167
|
+
pattern: /(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,
|
|
168
|
+
lookbehind: !0,
|
|
169
|
+
alias: "function"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
// b)
|
|
173
|
+
pattern: /\b[\w-]+(?=\s*\(\s*\)\s*\{)/,
|
|
174
|
+
alias: "function"
|
|
175
|
+
}
|
|
176
|
+
],
|
|
177
|
+
// Highlight variable names as variables in for and select beginnings.
|
|
178
|
+
"for-or-select": {
|
|
179
|
+
pattern: /(\b(?:for|select)\s+)\w+(?=\s+in\s)/,
|
|
180
|
+
alias: "variable",
|
|
181
|
+
lookbehind: !0
|
|
182
|
+
},
|
|
183
|
+
// Highlight variable names as variables in the left-hand part
|
|
184
|
+
// of assignments (“=” and “+=”).
|
|
185
|
+
"assign-left": {
|
|
186
|
+
pattern: /(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,
|
|
187
|
+
inside: {
|
|
188
|
+
environment: {
|
|
189
|
+
pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + t),
|
|
190
|
+
lookbehind: !0,
|
|
191
|
+
alias: "constant"
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
alias: "variable",
|
|
195
|
+
lookbehind: !0
|
|
196
|
+
},
|
|
197
|
+
// Highlight parameter names as variables
|
|
198
|
+
parameter: {
|
|
199
|
+
pattern: /(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,
|
|
200
|
+
alias: "variable",
|
|
201
|
+
lookbehind: !0
|
|
202
|
+
},
|
|
203
|
+
string: [
|
|
204
|
+
// Support for Here-documents https://en.wikipedia.org/wiki/Here_document
|
|
205
|
+
{
|
|
206
|
+
pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
|
|
207
|
+
lookbehind: !0,
|
|
208
|
+
greedy: !0,
|
|
209
|
+
inside: n
|
|
210
|
+
},
|
|
211
|
+
// Here-document with quotes around the tag
|
|
212
|
+
// → No expansion (so no “inside”).
|
|
213
|
+
{
|
|
214
|
+
pattern: /((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,
|
|
215
|
+
lookbehind: !0,
|
|
216
|
+
greedy: !0,
|
|
217
|
+
inside: {
|
|
218
|
+
bash: o
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
// “Normal” string
|
|
222
|
+
{
|
|
223
|
+
// https://www.gnu.org/software/bash/manual/html_node/Double-Quotes.html
|
|
224
|
+
pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
|
|
225
|
+
lookbehind: !0,
|
|
226
|
+
greedy: !0,
|
|
227
|
+
inside: n
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
// https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html
|
|
231
|
+
pattern: /(^|[^$\\])'[^']*'/,
|
|
232
|
+
lookbehind: !0,
|
|
233
|
+
greedy: !0
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
// https://www.gnu.org/software/bash/manual/html_node/ANSI_002dC-Quoting.html
|
|
237
|
+
pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
|
|
238
|
+
greedy: !0,
|
|
239
|
+
inside: {
|
|
240
|
+
entity: n.entity
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
],
|
|
244
|
+
environment: {
|
|
245
|
+
pattern: RegExp("\\$?" + t),
|
|
246
|
+
alias: "constant"
|
|
247
|
+
},
|
|
248
|
+
variable: n.variable,
|
|
249
|
+
function: {
|
|
250
|
+
pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,
|
|
251
|
+
lookbehind: !0
|
|
252
|
+
},
|
|
253
|
+
keyword: {
|
|
254
|
+
pattern: /(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,
|
|
255
|
+
lookbehind: !0
|
|
256
|
+
},
|
|
257
|
+
// https://www.gnu.org/software/bash/manual/html_node/Shell-Builtin-Commands.html
|
|
258
|
+
builtin: {
|
|
259
|
+
pattern: /(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,
|
|
260
|
+
lookbehind: !0,
|
|
261
|
+
// Alias added to make those easier to distinguish from strings.
|
|
262
|
+
alias: "class-name"
|
|
263
|
+
},
|
|
264
|
+
boolean: {
|
|
265
|
+
pattern: /(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,
|
|
266
|
+
lookbehind: !0
|
|
267
|
+
},
|
|
268
|
+
"file-descriptor": {
|
|
269
|
+
pattern: /\B&\d\b/,
|
|
270
|
+
alias: "important"
|
|
271
|
+
},
|
|
272
|
+
operator: {
|
|
273
|
+
// Lots of redirections here, but not just that.
|
|
274
|
+
pattern: /\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,
|
|
275
|
+
inside: {
|
|
276
|
+
"file-descriptor": {
|
|
277
|
+
pattern: /^\d/,
|
|
278
|
+
alias: "important"
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
punctuation: /\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,
|
|
283
|
+
number: {
|
|
284
|
+
pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,
|
|
285
|
+
lookbehind: !0
|
|
286
|
+
}
|
|
287
|
+
}, o.inside = e.languages.bash;
|
|
288
|
+
for (var i = [
|
|
289
|
+
"comment",
|
|
290
|
+
"function-name",
|
|
291
|
+
"for-or-select",
|
|
292
|
+
"assign-left",
|
|
293
|
+
"parameter",
|
|
294
|
+
"string",
|
|
295
|
+
"environment",
|
|
296
|
+
"function",
|
|
297
|
+
"keyword",
|
|
298
|
+
"builtin",
|
|
299
|
+
"boolean",
|
|
300
|
+
"file-descriptor",
|
|
301
|
+
"operator",
|
|
302
|
+
"punctuation",
|
|
303
|
+
"number"
|
|
304
|
+
], a = n.variable[1].inside, s = 0; s < i.length; s++)
|
|
305
|
+
a[i[s]] = e.languages.bash[i[s]];
|
|
306
|
+
e.languages.sh = e.languages.bash, e.languages.shell = e.languages.bash;
|
|
307
|
+
})(Prism);
|
|
308
|
+
var R = {}, C;
|
|
309
|
+
function we() {
|
|
310
|
+
return C || (C = 1, function(e) {
|
|
311
|
+
var t = [
|
|
312
|
+
// normal string
|
|
313
|
+
/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,
|
|
314
|
+
/'[^']*'/.source,
|
|
315
|
+
/\$'(?:[^'\\]|\\[\s\S])*'/.source,
|
|
316
|
+
// here doc
|
|
317
|
+
// 2 capturing groups
|
|
318
|
+
/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source
|
|
319
|
+
].join("|");
|
|
320
|
+
e.languages["shell-session"] = {
|
|
321
|
+
command: {
|
|
322
|
+
pattern: RegExp(
|
|
323
|
+
// user info
|
|
324
|
+
/^/.source + "(?:" + // <user> ":" ( <path> )?
|
|
325
|
+
(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source + "|" + // <path>
|
|
326
|
+
// Since the path pattern is quite general, we will require it to start with a special character to
|
|
327
|
+
// prevent false positives.
|
|
328
|
+
/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source) + ")?" + // shell symbol
|
|
329
|
+
/[$#%](?=\s)/.source + // bash command
|
|
330
|
+
/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<<str>>)+/.source.replace(/<<str>>/g, function() {
|
|
331
|
+
return t;
|
|
332
|
+
}),
|
|
333
|
+
"m"
|
|
334
|
+
),
|
|
335
|
+
greedy: !0,
|
|
336
|
+
inside: {
|
|
337
|
+
info: {
|
|
338
|
+
// foo@bar:~/files$ exit
|
|
339
|
+
// foo@bar$ exit
|
|
340
|
+
// ~/files$ exit
|
|
341
|
+
pattern: /^[^#$%]+/,
|
|
342
|
+
alias: "punctuation",
|
|
343
|
+
inside: {
|
|
344
|
+
user: /^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,
|
|
345
|
+
punctuation: /:/,
|
|
346
|
+
path: /[\s\S]+/
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
bash: {
|
|
350
|
+
pattern: /(^[$#%]\s*)\S[\s\S]*/,
|
|
351
|
+
lookbehind: !0,
|
|
352
|
+
alias: "language-bash",
|
|
353
|
+
inside: e.languages.bash
|
|
354
|
+
},
|
|
355
|
+
"shell-symbol": {
|
|
356
|
+
pattern: /^[$#%]/,
|
|
357
|
+
alias: "important"
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
output: /.(?:.*(?:[\r\n]|.$))*/
|
|
362
|
+
}, e.languages["sh-session"] = e.languages.shellsession = e.languages["shell-session"];
|
|
363
|
+
}(Prism)), R;
|
|
364
|
+
}
|
|
365
|
+
we();
|
|
366
|
+
(function(e) {
|
|
367
|
+
var t = /\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source, o = /(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g, function() {
|
|
368
|
+
return t;
|
|
369
|
+
}), n = /"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source, i = /--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g, function() {
|
|
370
|
+
return n;
|
|
371
|
+
}), a = {
|
|
372
|
+
pattern: RegExp(n),
|
|
373
|
+
greedy: !0
|
|
374
|
+
}, s = {
|
|
375
|
+
pattern: /(^[ \t]*)#.*/m,
|
|
376
|
+
lookbehind: !0,
|
|
377
|
+
greedy: !0
|
|
378
|
+
};
|
|
379
|
+
function d(l, u) {
|
|
380
|
+
return l = l.replace(/<OPT>/g, function() {
|
|
381
|
+
return i;
|
|
382
|
+
}).replace(/<SP>/g, function() {
|
|
383
|
+
return o;
|
|
384
|
+
}), RegExp(l, u);
|
|
385
|
+
}
|
|
386
|
+
e.languages.docker = {
|
|
387
|
+
instruction: {
|
|
388
|
+
pattern: /(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,
|
|
389
|
+
lookbehind: !0,
|
|
390
|
+
greedy: !0,
|
|
391
|
+
inside: {
|
|
392
|
+
options: {
|
|
393
|
+
pattern: d(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source, "i"),
|
|
394
|
+
lookbehind: !0,
|
|
395
|
+
greedy: !0,
|
|
396
|
+
inside: {
|
|
397
|
+
property: {
|
|
398
|
+
pattern: /(^|\s)--[\w-]+/,
|
|
399
|
+
lookbehind: !0
|
|
400
|
+
},
|
|
401
|
+
string: [
|
|
402
|
+
a,
|
|
403
|
+
{
|
|
404
|
+
pattern: /(=)(?!["'])(?:[^\s\\]|\\.)+/,
|
|
405
|
+
lookbehind: !0
|
|
406
|
+
}
|
|
407
|
+
],
|
|
408
|
+
operator: /\\$/m,
|
|
409
|
+
punctuation: /=/
|
|
410
|
+
}
|
|
411
|
+
},
|
|
412
|
+
keyword: [
|
|
413
|
+
{
|
|
414
|
+
// https://docs.docker.com/engine/reference/builder/#healthcheck
|
|
415
|
+
pattern: d(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source, "i"),
|
|
416
|
+
lookbehind: !0,
|
|
417
|
+
greedy: !0
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
// https://docs.docker.com/engine/reference/builder/#from
|
|
421
|
+
pattern: d(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source, "i"),
|
|
422
|
+
lookbehind: !0,
|
|
423
|
+
greedy: !0
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
// https://docs.docker.com/engine/reference/builder/#onbuild
|
|
427
|
+
pattern: d(/(^ONBUILD<SP>)\w+/.source, "i"),
|
|
428
|
+
lookbehind: !0,
|
|
429
|
+
greedy: !0
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
pattern: /^\w+/,
|
|
433
|
+
greedy: !0
|
|
434
|
+
}
|
|
435
|
+
],
|
|
436
|
+
comment: s,
|
|
437
|
+
string: a,
|
|
438
|
+
variable: /\$(?:\w+|\{[^{}"'\\]*\})/,
|
|
439
|
+
operator: /\\$/m
|
|
440
|
+
}
|
|
441
|
+
},
|
|
442
|
+
comment: s
|
|
443
|
+
}, e.languages.dockerfile = e.languages.docker;
|
|
444
|
+
})(Prism);
|
|
445
|
+
(function(e) {
|
|
446
|
+
var t = /[*&][^\s[\]{},]+/, o = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, n = "(?:" + o.source + "(?:[ ]+" + t.source + ")?|" + t.source + "(?:[ ]+" + o.source + ")?)", i = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g, function() {
|
|
447
|
+
return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source;
|
|
448
|
+
}), a = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
|
|
449
|
+
function s(d, l) {
|
|
450
|
+
l = (l || "").replace(/m/g, "") + "m";
|
|
451
|
+
var u = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g, function() {
|
|
452
|
+
return n;
|
|
453
|
+
}).replace(/<<value>>/g, function() {
|
|
454
|
+
return d;
|
|
455
|
+
});
|
|
456
|
+
return RegExp(u, l);
|
|
457
|
+
}
|
|
458
|
+
e.languages.yaml = {
|
|
459
|
+
scalar: {
|
|
460
|
+
pattern: RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g, function() {
|
|
461
|
+
return n;
|
|
462
|
+
})),
|
|
463
|
+
lookbehind: !0,
|
|
464
|
+
alias: "string"
|
|
465
|
+
},
|
|
466
|
+
comment: /#.*/,
|
|
467
|
+
key: {
|
|
468
|
+
pattern: RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g, function() {
|
|
469
|
+
return n;
|
|
470
|
+
}).replace(/<<key>>/g, function() {
|
|
471
|
+
return "(?:" + i + "|" + a + ")";
|
|
472
|
+
})),
|
|
473
|
+
lookbehind: !0,
|
|
474
|
+
greedy: !0,
|
|
475
|
+
alias: "atrule"
|
|
476
|
+
},
|
|
477
|
+
directive: {
|
|
478
|
+
pattern: /(^[ \t]*)%.+/m,
|
|
479
|
+
lookbehind: !0,
|
|
480
|
+
alias: "important"
|
|
481
|
+
},
|
|
482
|
+
datetime: {
|
|
483
|
+
pattern: s(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),
|
|
484
|
+
lookbehind: !0,
|
|
485
|
+
alias: "number"
|
|
486
|
+
},
|
|
487
|
+
boolean: {
|
|
488
|
+
pattern: s(/false|true/.source, "i"),
|
|
489
|
+
lookbehind: !0,
|
|
490
|
+
alias: "important"
|
|
491
|
+
},
|
|
492
|
+
null: {
|
|
493
|
+
pattern: s(/null|~/.source, "i"),
|
|
494
|
+
lookbehind: !0,
|
|
495
|
+
alias: "important"
|
|
496
|
+
},
|
|
497
|
+
string: {
|
|
498
|
+
pattern: s(a),
|
|
499
|
+
lookbehind: !0,
|
|
500
|
+
greedy: !0
|
|
501
|
+
},
|
|
502
|
+
number: {
|
|
503
|
+
pattern: s(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source, "i"),
|
|
504
|
+
lookbehind: !0
|
|
505
|
+
},
|
|
506
|
+
tag: o,
|
|
507
|
+
important: t,
|
|
508
|
+
punctuation: /---|[:[\]{}\-,|>?]|\.\.\./
|
|
509
|
+
}, e.languages.yml = e.languages.yaml;
|
|
510
|
+
})(Prism);
|
|
511
|
+
(function(e) {
|
|
512
|
+
var t = /(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;
|
|
513
|
+
function o(n) {
|
|
514
|
+
return n.replace(/__/g, function() {
|
|
515
|
+
return t;
|
|
516
|
+
});
|
|
517
|
+
}
|
|
518
|
+
e.languages.toml = {
|
|
519
|
+
comment: {
|
|
520
|
+
pattern: /#.*/,
|
|
521
|
+
greedy: !0
|
|
522
|
+
},
|
|
523
|
+
table: {
|
|
524
|
+
pattern: RegExp(o(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source), "m"),
|
|
525
|
+
lookbehind: !0,
|
|
526
|
+
greedy: !0,
|
|
527
|
+
alias: "class-name"
|
|
528
|
+
},
|
|
529
|
+
key: {
|
|
530
|
+
pattern: RegExp(o(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source), "m"),
|
|
531
|
+
lookbehind: !0,
|
|
532
|
+
greedy: !0,
|
|
533
|
+
alias: "property"
|
|
534
|
+
},
|
|
535
|
+
string: {
|
|
536
|
+
pattern: /"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,
|
|
537
|
+
greedy: !0
|
|
538
|
+
},
|
|
539
|
+
date: [
|
|
540
|
+
{
|
|
541
|
+
// Offset Date-Time, Local Date-Time, Local Date
|
|
542
|
+
pattern: /\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,
|
|
543
|
+
alias: "number"
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
// Local Time
|
|
547
|
+
pattern: /\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,
|
|
548
|
+
alias: "number"
|
|
549
|
+
}
|
|
550
|
+
],
|
|
551
|
+
number: /(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,
|
|
552
|
+
boolean: /\b(?:false|true)\b/,
|
|
553
|
+
punctuation: /[.,=[\]{}]/
|
|
554
|
+
};
|
|
555
|
+
})(Prism);
|
|
556
|
+
const xe = {
|
|
557
|
+
sh: "bash",
|
|
558
|
+
shell: "bash",
|
|
559
|
+
zsh: "bash",
|
|
560
|
+
console: "bash"
|
|
561
|
+
}, Ee = ({ children: e, className: t = "", ...o }) => {
|
|
562
|
+
const [n, i] = T(!1), a = D(), s = t.replace("language-", "") || "jsx", d = xe[s] ?? s;
|
|
563
|
+
let l = "";
|
|
564
|
+
typeof e == "string" ? l = e.trim() : e && typeof e == "object" && e.props && (typeof e.props.children == "string" ? l = e.props.children.trim() : Array.isArray(e.props.children) && (l = e.props.children.join("").trim()));
|
|
565
|
+
const u = {
|
|
566
|
+
plain: {
|
|
567
|
+
color: a.palette.text.primary,
|
|
568
|
+
backgroundColor: a.palette.background.paper
|
|
569
|
+
},
|
|
570
|
+
styles: [
|
|
571
|
+
{
|
|
572
|
+
types: ["comment", "prolog", "doctype", "cdata"],
|
|
573
|
+
style: {
|
|
574
|
+
color: a.palette.mode === "dark" ? "#6a737d" : "#6a7781"
|
|
575
|
+
}
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
types: ["punctuation"],
|
|
579
|
+
style: {
|
|
580
|
+
color: a.palette.mode === "dark" ? "#e1e4e8" : "#24292e"
|
|
581
|
+
}
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
types: ["property", "tag", "boolean", "number", "constant", "symbol"],
|
|
585
|
+
style: {
|
|
586
|
+
color: a.palette.mode === "dark" ? "#79b8ff" : "#005cc5"
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
types: ["selector", "attr-name", "string", "char", "builtin"],
|
|
591
|
+
style: {
|
|
592
|
+
color: a.palette.mode === "dark" ? "#a5d6ff" : "#032f62"
|
|
593
|
+
}
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
types: ["operator", "entity", "url"],
|
|
597
|
+
style: {
|
|
598
|
+
color: (a.palette.mode === "dark", "#d73a49")
|
|
599
|
+
}
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
types: ["atrule", "attr-value", "keyword"],
|
|
603
|
+
style: {
|
|
604
|
+
color: a.palette.mode === "dark" ? "#f97583" : "#d73a49"
|
|
605
|
+
}
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
types: ["function"],
|
|
609
|
+
style: {
|
|
610
|
+
color: a.palette.mode === "dark" ? "#b392f0" : "#6f42c1"
|
|
611
|
+
}
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
types: ["class-name"],
|
|
615
|
+
style: {
|
|
616
|
+
color: a.palette.mode === "dark" ? "#ffab70" : "#e36209"
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
]
|
|
620
|
+
};
|
|
621
|
+
return /* @__PURE__ */ p(c, { sx: { position: "relative", my: 2 }, children: [
|
|
622
|
+
/* @__PURE__ */ r(c, { sx: { position: "absolute", top: 4, right: 4, zIndex: 1 }, children: /* @__PURE__ */ r(ee, { title: n ? "Copied!" : "Copy", children: /* @__PURE__ */ r(
|
|
623
|
+
v,
|
|
624
|
+
{
|
|
625
|
+
size: "small",
|
|
626
|
+
onClick: async () => {
|
|
627
|
+
try {
|
|
628
|
+
await navigator.clipboard.writeText(l), i(!0), setTimeout(() => i(!1), 1500);
|
|
629
|
+
} catch {
|
|
630
|
+
}
|
|
631
|
+
},
|
|
632
|
+
color: "inherit",
|
|
633
|
+
"aria-label": n ? "Code copied to clipboard" : "Copy code to clipboard",
|
|
634
|
+
sx: { width: 24, height: 24 },
|
|
635
|
+
children: n ? /* @__PURE__ */ r(ge, { sx: { fontSize: 16 } }) : /* @__PURE__ */ r(be, { sx: { fontSize: 16 } })
|
|
636
|
+
}
|
|
637
|
+
) }) }),
|
|
638
|
+
/* @__PURE__ */ r($, { prism: Se, code: l, language: d, theme: u, children: ({ className: h, style: y, tokens: k, getLineProps: w, getTokenProps: x }) => /* @__PURE__ */ p(
|
|
639
|
+
c,
|
|
640
|
+
{
|
|
641
|
+
sx: {
|
|
642
|
+
border: 1,
|
|
643
|
+
borderColor: "divider",
|
|
644
|
+
borderRadius: 2,
|
|
645
|
+
overflow: "hidden",
|
|
646
|
+
backgroundColor: a.palette.background.paper,
|
|
647
|
+
boxShadow: 1
|
|
648
|
+
},
|
|
649
|
+
children: [
|
|
650
|
+
/* @__PURE__ */ r(
|
|
651
|
+
c,
|
|
652
|
+
{
|
|
653
|
+
sx: {
|
|
654
|
+
px: 2,
|
|
655
|
+
py: 1,
|
|
656
|
+
backgroundColor: a.palette.mode === "dark" ? "rgba(255,255,255,0.08)" : "rgba(0,0,0,0.04)",
|
|
657
|
+
borderBottom: 1,
|
|
658
|
+
borderColor: "divider",
|
|
659
|
+
fontSize: "0.75rem",
|
|
660
|
+
color: a.palette.text.secondary,
|
|
661
|
+
fontFamily: "monospace",
|
|
662
|
+
textTransform: "uppercase",
|
|
663
|
+
letterSpacing: 0.5
|
|
664
|
+
},
|
|
665
|
+
children: d
|
|
666
|
+
}
|
|
667
|
+
),
|
|
668
|
+
/* @__PURE__ */ r(
|
|
669
|
+
"pre",
|
|
670
|
+
{
|
|
671
|
+
className: h,
|
|
672
|
+
style: {
|
|
673
|
+
...y,
|
|
674
|
+
margin: 0,
|
|
675
|
+
padding: 16,
|
|
676
|
+
overflowX: "auto",
|
|
677
|
+
backgroundColor: "transparent",
|
|
678
|
+
wordWrap: "break-word",
|
|
679
|
+
overflowWrap: "break-word",
|
|
680
|
+
whiteSpace: "pre-wrap"
|
|
681
|
+
},
|
|
682
|
+
...o,
|
|
683
|
+
children: k.map((f, g) => {
|
|
684
|
+
const I = w({ line: f, key: g }), { key: E, ...H } = I;
|
|
685
|
+
return /* @__PURE__ */ r("div", { ...H, children: f.map((G, O) => {
|
|
686
|
+
const W = x({ token: G, key: O }), { key: He, ...U } = W;
|
|
687
|
+
return /* @__PURE__ */ r("span", { ...U }, `${g}-${O}`);
|
|
688
|
+
}) }, E);
|
|
689
|
+
})
|
|
690
|
+
}
|
|
691
|
+
)
|
|
692
|
+
]
|
|
693
|
+
}
|
|
694
|
+
) })
|
|
695
|
+
] });
|
|
696
|
+
}, ve = ({ children: e, ...t }) => {
|
|
697
|
+
const o = D(), n = typeof e == "string" ? e.trim() : "", i = {
|
|
698
|
+
plain: {
|
|
699
|
+
color: o.palette.text.primary,
|
|
700
|
+
backgroundColor: o.palette.mode === "dark" ? "rgba(255,255,255,0.08)" : "rgba(0,0,0,0.08)"
|
|
701
|
+
},
|
|
702
|
+
styles: [
|
|
703
|
+
{
|
|
704
|
+
types: ["comment", "prolog", "doctype", "cdata"],
|
|
705
|
+
style: {
|
|
706
|
+
color: o.palette.mode === "dark" ? "#6a737d" : "#6a7781"
|
|
707
|
+
}
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
types: ["punctuation"],
|
|
711
|
+
style: {
|
|
712
|
+
color: o.palette.mode === "dark" ? "#e1e4e8" : "#24292e"
|
|
713
|
+
}
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
types: ["property", "tag", "boolean", "number", "constant", "symbol"],
|
|
717
|
+
style: {
|
|
718
|
+
color: o.palette.mode === "dark" ? "#79b8ff" : "#005cc5"
|
|
719
|
+
}
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
types: ["selector", "attr-name", "string", "char", "builtin"],
|
|
723
|
+
style: {
|
|
724
|
+
color: o.palette.mode === "dark" ? "#a5d6ff" : "#032f62"
|
|
725
|
+
}
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
types: ["operator", "entity", "url"],
|
|
729
|
+
style: {
|
|
730
|
+
color: (o.palette.mode === "dark", "#d73a49")
|
|
731
|
+
}
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
types: ["atrule", "attr-value", "keyword"],
|
|
735
|
+
style: {
|
|
736
|
+
color: o.palette.mode === "dark" ? "#f97583" : "#d73a49"
|
|
737
|
+
}
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
types: ["function"],
|
|
741
|
+
style: {
|
|
742
|
+
color: o.palette.mode === "dark" ? "#b392f0" : "#6f42c1"
|
|
743
|
+
}
|
|
744
|
+
},
|
|
745
|
+
{
|
|
746
|
+
types: ["class-name"],
|
|
747
|
+
style: {
|
|
748
|
+
color: o.palette.mode === "dark" ? "#ffab70" : "#e36209"
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
]
|
|
752
|
+
};
|
|
753
|
+
return /* @__PURE__ */ r($, { code: n, language: "jsx", theme: i, children: ({ className: a, style: s, tokens: d, getLineProps: l, getTokenProps: u }) => /* @__PURE__ */ r(
|
|
754
|
+
"code",
|
|
755
|
+
{
|
|
756
|
+
className: a,
|
|
757
|
+
style: {
|
|
758
|
+
...s,
|
|
759
|
+
padding: "2px 4px",
|
|
760
|
+
borderRadius: "3px",
|
|
761
|
+
fontSize: "0.875em",
|
|
762
|
+
fontFamily: "monospace",
|
|
763
|
+
display: "inline-block",
|
|
764
|
+
wordWrap: "break-word",
|
|
765
|
+
overflowWrap: "break-word",
|
|
766
|
+
maxWidth: "100%"
|
|
767
|
+
},
|
|
768
|
+
...t,
|
|
769
|
+
children: d.map((S, h) => {
|
|
770
|
+
const y = l({ line: S, key: h }), { key: k, ...w } = y;
|
|
771
|
+
return /* @__PURE__ */ r("div", { ...w, children: S.map((x, f) => {
|
|
772
|
+
const g = u({ token: x, key: f }), { key: I, ...E } = g;
|
|
773
|
+
return /* @__PURE__ */ r("span", { ...E }, `${h}-${f}`);
|
|
774
|
+
}) }, k);
|
|
775
|
+
})
|
|
776
|
+
}
|
|
777
|
+
) });
|
|
778
|
+
}, Te = (e) => e.filter((t) => !t.isDefault), Ae = (e) => e.find((t) => t.isDefault), Ie = (e) => e ? !!(e.startsWith("http://") || e.startsWith("https://") || e.startsWith("mailto:") || e.startsWith("tel:")) : !1, Oe = () => {
|
|
779
|
+
const { pages: e } = A();
|
|
780
|
+
return /* @__PURE__ */ r(
|
|
781
|
+
c,
|
|
782
|
+
{
|
|
783
|
+
sx: {
|
|
784
|
+
width: "100%",
|
|
785
|
+
maxWidth: 960,
|
|
786
|
+
mx: "auto",
|
|
787
|
+
pb: 4,
|
|
788
|
+
// Add mobile-specific styles to prevent text overflow
|
|
789
|
+
"& .MuiTypography-root": {
|
|
790
|
+
wordWrap: "break-word",
|
|
791
|
+
overflowWrap: "break-word"
|
|
792
|
+
},
|
|
793
|
+
"& pre": {
|
|
794
|
+
wordWrap: "break-word",
|
|
795
|
+
overflowWrap: "break-word",
|
|
796
|
+
whiteSpace: "pre-wrap"
|
|
797
|
+
},
|
|
798
|
+
"& code": {
|
|
799
|
+
wordWrap: "break-word",
|
|
800
|
+
overflowWrap: "break-word"
|
|
801
|
+
},
|
|
802
|
+
"& p": {
|
|
803
|
+
wordWrap: "break-word",
|
|
804
|
+
overflowWrap: "break-word"
|
|
805
|
+
},
|
|
806
|
+
"& h1, & h2, & h3, & h4, & h5, & h6": {
|
|
807
|
+
wordWrap: "break-word",
|
|
808
|
+
overflowWrap: "break-word"
|
|
809
|
+
},
|
|
810
|
+
// Mobile-specific overrides
|
|
811
|
+
"@media (max-width: 600px)": {
|
|
812
|
+
maxWidth: "100%",
|
|
813
|
+
px: 1,
|
|
814
|
+
"& *": {
|
|
815
|
+
wordWrap: "break-word",
|
|
816
|
+
overflowWrap: "break-word"
|
|
817
|
+
}
|
|
818
|
+
},
|
|
819
|
+
// Very small screen overrides
|
|
820
|
+
"@media (max-width: 378px)": {
|
|
821
|
+
maxWidth: "100%",
|
|
822
|
+
px: 0.5,
|
|
823
|
+
"& *": {
|
|
824
|
+
wordWrap: "break-word",
|
|
825
|
+
overflowWrap: "break-word"
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
},
|
|
829
|
+
children: /* @__PURE__ */ r(
|
|
830
|
+
he,
|
|
831
|
+
{
|
|
832
|
+
components: {
|
|
833
|
+
// pre: CodeBlock,
|
|
834
|
+
code: (t) => t.className ? /* @__PURE__ */ r(Ee, { ...t }) : /* @__PURE__ */ r(ve, { ...t }),
|
|
835
|
+
a: (t) => {
|
|
836
|
+
const o = Ie(t.href);
|
|
837
|
+
return /* @__PURE__ */ r(
|
|
838
|
+
"a",
|
|
839
|
+
{
|
|
840
|
+
...t,
|
|
841
|
+
target: o ? "_blank" : void 0,
|
|
842
|
+
rel: o ? "noopener noreferrer" : void 0
|
|
843
|
+
}
|
|
844
|
+
);
|
|
845
|
+
},
|
|
846
|
+
p: (t) => {
|
|
847
|
+
const o = t.children && (Array.isArray(t.children) ? t.children.some(
|
|
848
|
+
(s) => typeof s == "object" && s.type
|
|
849
|
+
) : typeof t.children == "object" && t.children.type), n = t.children && typeof t.children == "string" && t.children.length < 20, i = t.children && typeof t.children == "string" && (t.children.includes("Color Text") || t.children.includes("Text")), a = o || n || i;
|
|
850
|
+
return o ? /* @__PURE__ */ r(z, { children: t.children }) : i ? /* @__PURE__ */ r("span", { style: { margin: 0, padding: 0 }, children: t.children }) : /* @__PURE__ */ r(
|
|
851
|
+
"p",
|
|
852
|
+
{
|
|
853
|
+
...t,
|
|
854
|
+
style: {
|
|
855
|
+
margin: a ? 0 : void 0,
|
|
856
|
+
padding: a ? 0 : void 0
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
);
|
|
860
|
+
}
|
|
861
|
+
},
|
|
862
|
+
children: /* @__PURE__ */ r(
|
|
863
|
+
j,
|
|
864
|
+
{
|
|
865
|
+
fallback: /* @__PURE__ */ r(
|
|
866
|
+
c,
|
|
867
|
+
{
|
|
868
|
+
sx: {
|
|
869
|
+
display: "flex",
|
|
870
|
+
justifyContent: "center",
|
|
871
|
+
alignItems: "center",
|
|
872
|
+
minHeight: "200px"
|
|
873
|
+
},
|
|
874
|
+
children: /* @__PURE__ */ r(te, {})
|
|
875
|
+
}
|
|
876
|
+
),
|
|
877
|
+
children: /* @__PURE__ */ p(le, { children: [
|
|
878
|
+
e.map((t) => {
|
|
879
|
+
const o = t.component;
|
|
880
|
+
return /* @__PURE__ */ r(
|
|
881
|
+
P,
|
|
882
|
+
{
|
|
883
|
+
path: t.route,
|
|
884
|
+
element: /* @__PURE__ */ r(o, {})
|
|
885
|
+
},
|
|
886
|
+
t.route
|
|
887
|
+
);
|
|
888
|
+
}),
|
|
889
|
+
/* @__PURE__ */ r(
|
|
890
|
+
P,
|
|
891
|
+
{
|
|
892
|
+
path: "*",
|
|
893
|
+
element: X.createElement(Ae(e).component)
|
|
894
|
+
}
|
|
895
|
+
)
|
|
896
|
+
] })
|
|
897
|
+
}
|
|
898
|
+
)
|
|
899
|
+
}
|
|
900
|
+
)
|
|
901
|
+
}
|
|
902
|
+
);
|
|
903
|
+
}, m = 240, _e = ({ mobileOpen: e, handleDrawerToggle: t }) => {
|
|
904
|
+
const o = M(), { pages: n } = A(), i = Te(n);
|
|
905
|
+
b(() => {
|
|
906
|
+
const d = setTimeout(() => {
|
|
907
|
+
document.body.style.overflow = "";
|
|
908
|
+
}, 100);
|
|
909
|
+
return () => clearTimeout(d);
|
|
910
|
+
}, [o.pathname]);
|
|
911
|
+
const a = () => {
|
|
912
|
+
t();
|
|
913
|
+
}, s = /* @__PURE__ */ p("div", { children: [
|
|
914
|
+
/* @__PURE__ */ r(N, {}),
|
|
915
|
+
/* @__PURE__ */ r(re, { children: i.map((d) => /* @__PURE__ */ r(oe, { disablePadding: !0, children: /* @__PURE__ */ r(
|
|
916
|
+
ne,
|
|
917
|
+
{
|
|
918
|
+
component: L,
|
|
919
|
+
to: d.route,
|
|
920
|
+
onClick: () => a(),
|
|
921
|
+
sx: {
|
|
922
|
+
"&:hover": {
|
|
923
|
+
color: "inherit"
|
|
924
|
+
}
|
|
925
|
+
},
|
|
926
|
+
children: /* @__PURE__ */ r(ae, { primary: d.name })
|
|
927
|
+
}
|
|
928
|
+
) }, d.route)) })
|
|
929
|
+
] });
|
|
930
|
+
return /* @__PURE__ */ p(
|
|
931
|
+
c,
|
|
932
|
+
{
|
|
933
|
+
component: "nav",
|
|
934
|
+
sx: { width: { sm: m }, flexShrink: { sm: 0 } },
|
|
935
|
+
"aria-label": "sidebar navigation",
|
|
936
|
+
children: [
|
|
937
|
+
/* @__PURE__ */ r(
|
|
938
|
+
_,
|
|
939
|
+
{
|
|
940
|
+
variant: "temporary",
|
|
941
|
+
open: e,
|
|
942
|
+
onClose: t,
|
|
943
|
+
ModalProps: {
|
|
944
|
+
keepMounted: !1,
|
|
945
|
+
disableScrollLock: !0
|
|
946
|
+
},
|
|
947
|
+
sx: {
|
|
948
|
+
display: { xs: "block", sm: "none" },
|
|
949
|
+
"& .MuiDrawer-paper": {
|
|
950
|
+
boxSizing: "border-box",
|
|
951
|
+
width: { xs: "85vw", sm: m },
|
|
952
|
+
maxWidth: m
|
|
953
|
+
}
|
|
954
|
+
},
|
|
955
|
+
children: s
|
|
956
|
+
}
|
|
957
|
+
),
|
|
958
|
+
/* @__PURE__ */ r(
|
|
959
|
+
_,
|
|
960
|
+
{
|
|
961
|
+
variant: "permanent",
|
|
962
|
+
sx: {
|
|
963
|
+
display: { xs: "none", sm: "block" },
|
|
964
|
+
"& .MuiDrawer-paper": {
|
|
965
|
+
boxSizing: "border-box",
|
|
966
|
+
width: m
|
|
967
|
+
}
|
|
968
|
+
},
|
|
969
|
+
open: !0,
|
|
970
|
+
children: s
|
|
971
|
+
}
|
|
972
|
+
)
|
|
973
|
+
]
|
|
974
|
+
}
|
|
975
|
+
);
|
|
976
|
+
}, Pe = () => typeof window < "u" && window.matchMedia ? window.matchMedia("(prefers-color-scheme: dark)").matches : !0, Re = () => {
|
|
977
|
+
if (typeof window < "u") {
|
|
978
|
+
const e = localStorage.getItem("darkMode");
|
|
979
|
+
if (e !== null)
|
|
980
|
+
return JSON.parse(e);
|
|
981
|
+
}
|
|
982
|
+
return Pe();
|
|
983
|
+
}, Ce = () => {
|
|
984
|
+
const [e, t] = T(Re);
|
|
985
|
+
return b(() => {
|
|
986
|
+
typeof window < "u" && localStorage.setItem("darkMode", JSON.stringify(e));
|
|
987
|
+
}, [e]), b(() => {
|
|
988
|
+
if (typeof window < "u" && window.matchMedia) {
|
|
989
|
+
const o = window.matchMedia("(prefers-color-scheme: dark)"), n = (i) => {
|
|
990
|
+
localStorage.getItem("darkMode") === null && t(i.matches);
|
|
991
|
+
};
|
|
992
|
+
return o.addEventListener("change", n), () => o.removeEventListener("change", n);
|
|
993
|
+
}
|
|
994
|
+
}, []), { darkMode: e, setDarkMode: t };
|
|
995
|
+
}, Ne = {
|
|
996
|
+
palette: {
|
|
997
|
+
primary: {
|
|
998
|
+
main: "#90caf9",
|
|
999
|
+
light: "rgb(166, 212, 250)",
|
|
1000
|
+
dark: "rgb(100, 141, 174)",
|
|
1001
|
+
contrastText: "rgba(0, 0, 0, 0.87)"
|
|
1002
|
+
},
|
|
1003
|
+
secondary: {
|
|
1004
|
+
main: "#f48fb1",
|
|
1005
|
+
light: "rgb(246, 165, 192)",
|
|
1006
|
+
dark: "rgb(170, 100, 123)",
|
|
1007
|
+
contrastText: "rgba(0, 0, 0, 0.87)"
|
|
1008
|
+
},
|
|
1009
|
+
background: {
|
|
1010
|
+
default: "#121212",
|
|
1011
|
+
paper: "#141414"
|
|
1012
|
+
},
|
|
1013
|
+
text: {
|
|
1014
|
+
primary: "#ffffff",
|
|
1015
|
+
secondary: "#b3b3b3",
|
|
1016
|
+
disabled: "rgba(255, 255, 255, 0.5)",
|
|
1017
|
+
icon: "rgba(255, 255, 255, 0.5)"
|
|
1018
|
+
},
|
|
1019
|
+
common: {
|
|
1020
|
+
black: "#000",
|
|
1021
|
+
white: "#fff"
|
|
1022
|
+
},
|
|
1023
|
+
error: {
|
|
1024
|
+
main: "#f44336",
|
|
1025
|
+
light: "#e57373",
|
|
1026
|
+
dark: "#d32f2f",
|
|
1027
|
+
contrastText: "#fff"
|
|
1028
|
+
},
|
|
1029
|
+
warning: {
|
|
1030
|
+
main: "#ffa726",
|
|
1031
|
+
light: "#ffb74d",
|
|
1032
|
+
dark: "#f57c00",
|
|
1033
|
+
contrastText: "rgba(0, 0, 0, 0.87)"
|
|
1034
|
+
},
|
|
1035
|
+
info: {
|
|
1036
|
+
main: "#29b6f6",
|
|
1037
|
+
light: "#4fc3f7",
|
|
1038
|
+
dark: "#0288d1",
|
|
1039
|
+
contrastText: "rgba(0, 0, 0, 0.87)"
|
|
1040
|
+
},
|
|
1041
|
+
success: {
|
|
1042
|
+
main: "#66bb6a",
|
|
1043
|
+
light: "#81c784",
|
|
1044
|
+
dark: "#388e3c",
|
|
1045
|
+
contrastText: "rgba(0, 0, 0, 0.87)"
|
|
1046
|
+
},
|
|
1047
|
+
grey: {
|
|
1048
|
+
50: "#fafafa",
|
|
1049
|
+
100: "#f5f5f5",
|
|
1050
|
+
200: "#eeeeee",
|
|
1051
|
+
300: "#e0e0e0",
|
|
1052
|
+
400: "#bdbdbd",
|
|
1053
|
+
500: "#9e9e9e",
|
|
1054
|
+
600: "#757575",
|
|
1055
|
+
700: "#616161",
|
|
1056
|
+
800: "#424242",
|
|
1057
|
+
900: "#212121",
|
|
1058
|
+
A100: "#f5f5f5",
|
|
1059
|
+
A200: "#eeeeee",
|
|
1060
|
+
A400: "#bdbdbd",
|
|
1061
|
+
A700: "#616161"
|
|
1062
|
+
},
|
|
1063
|
+
contrastThreshold: 3,
|
|
1064
|
+
tonalOffset: 0.2,
|
|
1065
|
+
divider: "rgba(255, 255, 255, 0.12)",
|
|
1066
|
+
action: {
|
|
1067
|
+
active: "#fff",
|
|
1068
|
+
hover: "rgba(255, 255, 255, 0.08)",
|
|
1069
|
+
hoverOpacity: 0.08,
|
|
1070
|
+
selected: "rgba(255, 255, 255, 0.16)",
|
|
1071
|
+
selectedOpacity: 0.16,
|
|
1072
|
+
disabled: "rgba(255, 255, 255, 0.3)",
|
|
1073
|
+
disabledBackground: "rgba(255, 255, 255, 0.12)",
|
|
1074
|
+
disabledOpacity: 0.38,
|
|
1075
|
+
focus: "rgba(255, 255, 255, 0.12)",
|
|
1076
|
+
focusOpacity: 0.12,
|
|
1077
|
+
activatedOpacity: 0.24
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
}, De = {
|
|
1081
|
+
palette: {
|
|
1082
|
+
primary: {
|
|
1083
|
+
main: "#1976d2",
|
|
1084
|
+
light: "rgb(71, 145, 219)",
|
|
1085
|
+
dark: "rgb(17, 82, 147)",
|
|
1086
|
+
contrastText: "#fff"
|
|
1087
|
+
},
|
|
1088
|
+
secondary: {
|
|
1089
|
+
main: "#dc004e",
|
|
1090
|
+
light: "rgb(227, 51, 113)",
|
|
1091
|
+
dark: "rgb(154, 0, 54)",
|
|
1092
|
+
contrastText: "#fff"
|
|
1093
|
+
},
|
|
1094
|
+
background: {
|
|
1095
|
+
default: "#fefefe",
|
|
1096
|
+
paper: "#f5f5f5"
|
|
1097
|
+
},
|
|
1098
|
+
text: {
|
|
1099
|
+
primary: "#212121",
|
|
1100
|
+
secondary: "#757575",
|
|
1101
|
+
disabled: "rgba(0, 0, 0, 0.38)"
|
|
1102
|
+
},
|
|
1103
|
+
common: {
|
|
1104
|
+
black: "#000",
|
|
1105
|
+
white: "#fff"
|
|
1106
|
+
},
|
|
1107
|
+
error: {
|
|
1108
|
+
main: "#d32f2f",
|
|
1109
|
+
light: "#ef5350",
|
|
1110
|
+
dark: "#c62828",
|
|
1111
|
+
contrastText: "#fff"
|
|
1112
|
+
},
|
|
1113
|
+
warning: {
|
|
1114
|
+
main: "#ed6c02",
|
|
1115
|
+
light: "#ff9800",
|
|
1116
|
+
dark: "#e65100",
|
|
1117
|
+
contrastText: "#fff"
|
|
1118
|
+
},
|
|
1119
|
+
info: {
|
|
1120
|
+
main: "#0288d1",
|
|
1121
|
+
light: "#03a9f4",
|
|
1122
|
+
dark: "#01579b",
|
|
1123
|
+
contrastText: "#fff"
|
|
1124
|
+
},
|
|
1125
|
+
success: {
|
|
1126
|
+
main: "#2e7d32",
|
|
1127
|
+
light: "#4caf50",
|
|
1128
|
+
dark: "#1b5e20",
|
|
1129
|
+
contrastText: "#fff"
|
|
1130
|
+
},
|
|
1131
|
+
grey: {
|
|
1132
|
+
50: "#fafafa",
|
|
1133
|
+
100: "#f5f5f5",
|
|
1134
|
+
200: "#eeeeee",
|
|
1135
|
+
300: "#e0e0e0",
|
|
1136
|
+
400: "#bdbdbd",
|
|
1137
|
+
500: "#9e9e9e",
|
|
1138
|
+
600: "#757575",
|
|
1139
|
+
700: "#616161",
|
|
1140
|
+
800: "#424242",
|
|
1141
|
+
900: "#212121",
|
|
1142
|
+
A100: "#f5f5f5",
|
|
1143
|
+
A200: "#eeeeee",
|
|
1144
|
+
A400: "#bdbdbd",
|
|
1145
|
+
A700: "#616161"
|
|
1146
|
+
},
|
|
1147
|
+
contrastThreshold: 3,
|
|
1148
|
+
tonalOffset: 0.2,
|
|
1149
|
+
divider: "rgba(0, 0, 0, 0.12)",
|
|
1150
|
+
action: {
|
|
1151
|
+
active: "rgba(0, 0, 0, 0.54)",
|
|
1152
|
+
hover: "rgba(0, 0, 0, 0.04)",
|
|
1153
|
+
hoverOpacity: 0.04,
|
|
1154
|
+
selected: "rgba(0, 0, 0, 0.08)",
|
|
1155
|
+
selectedOpacity: 0.08,
|
|
1156
|
+
disabled: "rgba(0, 0, 0, 0.26)",
|
|
1157
|
+
disabledBackground: "rgba(0, 0, 0, 0.12)",
|
|
1158
|
+
disabledOpacity: 0.38,
|
|
1159
|
+
focus: "rgba(0, 0, 0, 0.12)",
|
|
1160
|
+
focusOpacity: 0.12,
|
|
1161
|
+
activatedOpacity: 0.12
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
}, Le = (e = "light") => {
|
|
1165
|
+
const t = e === "dark" ? Ne : De;
|
|
1166
|
+
return ie({
|
|
1167
|
+
...t,
|
|
1168
|
+
palette: {
|
|
1169
|
+
...t.palette,
|
|
1170
|
+
mode: e
|
|
1171
|
+
},
|
|
1172
|
+
components: {
|
|
1173
|
+
MuiIconButton: {
|
|
1174
|
+
styleOverrides: {
|
|
1175
|
+
root: {
|
|
1176
|
+
"&:focus": {
|
|
1177
|
+
outline: "none"
|
|
1178
|
+
},
|
|
1179
|
+
"&:focus-visible": {
|
|
1180
|
+
outline: "none"
|
|
1181
|
+
},
|
|
1182
|
+
"&:focus-within": {
|
|
1183
|
+
outline: "none"
|
|
1184
|
+
},
|
|
1185
|
+
// Remove webkit focus ring
|
|
1186
|
+
"&::-webkit-focus-inner": {
|
|
1187
|
+
border: 0
|
|
1188
|
+
},
|
|
1189
|
+
"&::-webkit-focus-ring-color": {
|
|
1190
|
+
outline: "none"
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
}
|
|
1196
|
+
});
|
|
1197
|
+
}, Me = ({ children: e }) => {
|
|
1198
|
+
const t = M(), o = pe();
|
|
1199
|
+
return b(() => {
|
|
1200
|
+
const n = new URLSearchParams(window.location.search), i = n.get("redirect");
|
|
1201
|
+
if (i) {
|
|
1202
|
+
n.delete("redirect");
|
|
1203
|
+
const a = window.location.pathname + (n.toString() ? "?" + n.toString() : "");
|
|
1204
|
+
window.history.replaceState({}, "", a), o(i);
|
|
1205
|
+
}
|
|
1206
|
+
}, [o]), Y(() => {
|
|
1207
|
+
window.scrollTo({ top: 0, left: 0, behavior: "instant" });
|
|
1208
|
+
}, [t.pathname]), e;
|
|
1209
|
+
};
|
|
1210
|
+
function $e() {
|
|
1211
|
+
const { darkMode: e, setDarkMode: t } = Ce(), [o, n] = T(!1), i = V(
|
|
1212
|
+
() => Le(e ? "dark" : "light"),
|
|
1213
|
+
[e]
|
|
1214
|
+
), a = () => {
|
|
1215
|
+
n(!o);
|
|
1216
|
+
};
|
|
1217
|
+
return /* @__PURE__ */ p(se, { theme: i, children: [
|
|
1218
|
+
/* @__PURE__ */ r(de, {}),
|
|
1219
|
+
/* @__PURE__ */ p(c, { sx: { display: "flex" }, children: [
|
|
1220
|
+
/* @__PURE__ */ r(
|
|
1221
|
+
ke,
|
|
1222
|
+
{
|
|
1223
|
+
darkMode: e,
|
|
1224
|
+
setDarkMode: t,
|
|
1225
|
+
handleDrawerToggle: a
|
|
1226
|
+
}
|
|
1227
|
+
),
|
|
1228
|
+
/* @__PURE__ */ r(
|
|
1229
|
+
_e,
|
|
1230
|
+
{
|
|
1231
|
+
mobileOpen: o,
|
|
1232
|
+
handleDrawerToggle: a
|
|
1233
|
+
}
|
|
1234
|
+
),
|
|
1235
|
+
/* @__PURE__ */ r(
|
|
1236
|
+
c,
|
|
1237
|
+
{
|
|
1238
|
+
component: "main",
|
|
1239
|
+
sx: {
|
|
1240
|
+
flexGrow: 1,
|
|
1241
|
+
pt: 8,
|
|
1242
|
+
// Add top padding to account for AppBar
|
|
1243
|
+
px: { xs: 0.5, sm: 3 },
|
|
1244
|
+
// Reduce padding even more on very small screens
|
|
1245
|
+
width: { sm: `calc(100% - ${m}px)` },
|
|
1246
|
+
// Prevent horizontal overflow on very small screens
|
|
1247
|
+
overflowX: "hidden"
|
|
1248
|
+
},
|
|
1249
|
+
children: /* @__PURE__ */ r(Oe, {})
|
|
1250
|
+
}
|
|
1251
|
+
)
|
|
1252
|
+
] })
|
|
1253
|
+
] });
|
|
1254
|
+
}
|
|
1255
|
+
function Be({ pages: e, site: t }) {
|
|
1256
|
+
return /* @__PURE__ */ r(ye, { pages: e, site: t, children: /* @__PURE__ */ r(ce, { basename: "/", children: /* @__PURE__ */ r(Me, { children: /* @__PURE__ */ r($e, {}) }) }) });
|
|
1257
|
+
}
|
|
1258
|
+
function Qe({ pages: e, site: t }) {
|
|
1259
|
+
Z(document.getElementById("root")).render(
|
|
1260
|
+
/* @__PURE__ */ r(q, { children: /* @__PURE__ */ r(Be, { pages: e, site: t }) })
|
|
1261
|
+
);
|
|
1262
|
+
}
|
|
1263
|
+
export {
|
|
1264
|
+
Qe as createApp
|
|
1265
|
+
};
|