@karagoz/hayali 0.0.0-stage → 0.6.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/LICENSE +21 -0
- package/dist/karagoz-hayali.css +3 -0
- package/dist/karagoz-hayali.js +3869 -0
- package/dist/karagoz-hayali.umd.cjs +15 -0
- package/dist/karagoz-logo.svg +3 -0
- package/dist/parse.cjs +3 -0
- package/dist/parse.js +521 -0
- package/dist/src/App.vue.d.ts +3 -0
- package/dist/src/callouts.d.ts +28 -0
- package/dist/src/components/KrgzHayali.vue.d.ts +49 -0
- package/dist/src/components/LessonToolbar.vue.d.ts +17 -0
- package/dist/src/components/StepBody.vue.d.ts +7 -0
- package/dist/src/components/StepList.vue.d.ts +15 -0
- package/dist/src/components/StepLockAlert.vue.d.ts +8 -0
- package/dist/src/components/TocDropdown.vue.d.ts +14 -0
- package/dist/src/composables/useCounter.d.ts +4 -0
- package/dist/src/composables/useIsolationWarning.d.ts +5 -0
- package/dist/src/composables/useLessonPosition.d.ts +30 -0
- package/dist/src/composables/useLessonReset.d.ts +34 -0
- package/dist/src/composables/useStepEntry.d.ts +59 -0
- package/dist/src/composables/useStepLocks.d.ts +24 -0
- package/dist/src/examples/DefaultExample.vue.d.ts +3 -0
- package/dist/src/examples/ParserExample.vue.d.ts +3 -0
- package/dist/src/i18n.d.ts +1739 -0
- package/dist/src/index.d.ts +11 -0
- package/dist/src/layout/breakpoints.d.ts +16 -0
- package/dist/src/layout/layoutCss.d.ts +5 -0
- package/dist/src/lesson.d.ts +9 -0
- package/dist/src/locales/ar.d.ts +25 -0
- package/dist/src/locales/de.d.ts +25 -0
- package/dist/src/locales/en.d.ts +25 -0
- package/dist/src/locales/index.d.ts +1743 -0
- package/dist/src/main.d.ts +3 -0
- package/dist/src/parse/blocks.d.ts +31 -0
- package/dist/src/parse/body.d.ts +7 -0
- package/dist/src/parse/fenceInfo.d.ts +8 -0
- package/dist/src/parse/fileSource.d.ts +18 -0
- package/dist/src/parse/index.d.ts +2 -0
- package/dist/src/parse/parseLesson.d.ts +3 -0
- package/dist/src/parse/resolve.d.ts +37 -0
- package/dist/src/parse/tree.d.ts +11 -0
- package/dist/src/parse/types.d.ts +32 -0
- package/dist/src/typedoc-entry.d.ts +7 -0
- package/dist/src/types.d.ts +69 -0
- package/dist/src/validateLesson.d.ts +22 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types.d.ts +1943 -0
- package/package.json +87 -3
- package/src/layout.css +218 -0
- package/src/lib.css +50 -0
- package/README.md +0 -3
|
@@ -0,0 +1,3869 @@
|
|
|
1
|
+
import { Alert as e, AlertDescription as t, AlertTitle as n, Button as r, DropdownMenu as i, DropdownMenuContent as a, DropdownMenuTrigger as o, ResizableHandle as s, ResizablePanel as c, ResizablePanelGroup as l, Tabs as u, TabsList as d, TabsTrigger as f, alertDescriptionClass as p, alertTitleClass as m, alertVariants as h } from "@karagoz/shared";
|
|
2
|
+
import { Fragment as g, computed as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createTextVNode as S, createVNode as C, defineComponent as w, getCurrentInstance as ee, getCurrentScope as te, h as ne, mergeModels as re, mergeProps as T, nextTick as ie, normalizeClass as ae, onBeforeUnmount as oe, onMounted as se, onScopeDispose as ce, openBlock as E, ref as D, renderList as O, renderSlot as le, shallowRef as ue, toDisplayString as k, toValue as A, unref as j, useModel as de, useTemplateRef as fe, vShow as pe, watch as M, withCtx as N, withDirectives as me } from "vue";
|
|
3
|
+
import { KrgzSandbox as he, i18nMessages as ge, useSandbox as _e } from "@karagoz/sandbox";
|
|
4
|
+
import { AlertDialogAction as ve, AlertDialogCancel as ye, AlertDialogContent as be, AlertDialogDescription as xe, AlertDialogOverlay as Se, AlertDialogPortal as Ce, AlertDialogRoot as we, AlertDialogTitle as Te } from "radix-vue";
|
|
5
|
+
import { Translation as Ee, useI18n as De } from "vue-i18n";
|
|
6
|
+
//#region \0rolldown/runtime.js
|
|
7
|
+
var Oe = Object.create, ke = Object.defineProperty, Ae = Object.getOwnPropertyDescriptor, je = Object.getOwnPropertyNames, Me = Object.getPrototypeOf, Ne = Object.prototype.hasOwnProperty, Pe = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), Fe = (e, t) => {
|
|
8
|
+
let n = {};
|
|
9
|
+
for (var r in e) ke(n, r, {
|
|
10
|
+
get: e[r],
|
|
11
|
+
enumerable: !0
|
|
12
|
+
});
|
|
13
|
+
return t || ke(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
14
|
+
}, Ie = (e, t, n, r) => {
|
|
15
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = je(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !Ne.call(e, s) && s !== n && ke(e, s, {
|
|
16
|
+
get: ((e) => t[e]).bind(null, s),
|
|
17
|
+
enumerable: !(r = Ae(t, s)) || r.enumerable
|
|
18
|
+
});
|
|
19
|
+
return e;
|
|
20
|
+
}, Le = (e, t, n) => (n = e == null ? {} : Oe(Me(e)), Ie(t || !e || !e.__esModule ? ke(n, "default", {
|
|
21
|
+
value: e,
|
|
22
|
+
enumerable: !0
|
|
23
|
+
}) : n, e));
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region ../../node_modules/.pnpm/markdown-it-container@4.0.0/node_modules/markdown-it-container/index.mjs
|
|
26
|
+
function Re(e, t, n) {
|
|
27
|
+
function r(e) {
|
|
28
|
+
return e.trim().split(" ", 2)[0] === t;
|
|
29
|
+
}
|
|
30
|
+
function i(e, n, r, i, a) {
|
|
31
|
+
return e[n].nesting === 1 && e[n].attrJoin("class", t), a.renderToken(e, n, r, i, a);
|
|
32
|
+
}
|
|
33
|
+
n ||= {};
|
|
34
|
+
let a = n.marker || ":", o = a.charCodeAt(0), s = a.length, c = n.validate || r, l = n.render || i;
|
|
35
|
+
function u(e, n, r, i) {
|
|
36
|
+
let l, u = !1, d = e.bMarks[n] + e.tShift[n], f = e.eMarks[n];
|
|
37
|
+
if (o !== e.src.charCodeAt(d)) return !1;
|
|
38
|
+
for (l = d + 1; l <= f && a[(l - d) % s] === e.src[l]; l++);
|
|
39
|
+
let p = Math.floor((l - d) / s);
|
|
40
|
+
if (p < 3) return !1;
|
|
41
|
+
l -= (l - d) % s;
|
|
42
|
+
let m = e.src.slice(d, l), h = e.src.slice(l, f);
|
|
43
|
+
if (!c(h, m)) return !1;
|
|
44
|
+
if (i) return !0;
|
|
45
|
+
let g = n;
|
|
46
|
+
for (; g++, !(g >= r || (d = e.bMarks[g] + e.tShift[g], f = e.eMarks[g], d < f && e.sCount[g] < e.blkIndent));) if (o === e.src.charCodeAt(d) && !(e.sCount[g] - e.blkIndent >= 4)) {
|
|
47
|
+
for (l = d + 1; l <= f && a[(l - d) % s] === e.src[l]; l++);
|
|
48
|
+
if (!(Math.floor((l - d) / s) < p) && (l -= (l - d) % s, l = e.skipSpaces(l), !(l < f))) {
|
|
49
|
+
u = !0;
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
let _ = e.parentType, v = e.lineMax;
|
|
54
|
+
e.parentType = "container", e.lineMax = g;
|
|
55
|
+
let y = e.push("container_" + t + "_open", "div", 1);
|
|
56
|
+
y.markup = m, y.block = !0, y.info = h, y.map = [n, g], e.md.block.tokenize(e, n + 1, g);
|
|
57
|
+
let b = e.push("container_" + t + "_close", "div", -1);
|
|
58
|
+
return b.markup = e.src.slice(d, l), b.block = !0, e.parentType = _, e.lineMax = v, e.line = g + +!!u, !0;
|
|
59
|
+
}
|
|
60
|
+
e.block.ruler.before("fence", "container_" + t, u, { alt: [
|
|
61
|
+
"paragraph",
|
|
62
|
+
"reference",
|
|
63
|
+
"blockquote",
|
|
64
|
+
"list"
|
|
65
|
+
] }), e.renderer.rules["container_" + t + "_open"] = l, e.renderer.rules["container_" + t + "_close"] = l;
|
|
66
|
+
}
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region src/callouts.ts
|
|
69
|
+
var ze = {
|
|
70
|
+
tip: { variant: "tip" },
|
|
71
|
+
warning: { variant: "warning" },
|
|
72
|
+
note: { variant: "note" }
|
|
73
|
+
};
|
|
74
|
+
function Be(e = ze) {
|
|
75
|
+
let t = new Map(Object.entries(e));
|
|
76
|
+
return {
|
|
77
|
+
register: (e, n) => t.set(e, n),
|
|
78
|
+
get: (e) => t.get(e)
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
function Ve(e) {
|
|
82
|
+
let [t = "", ...n] = e.trim().split(/\s+/);
|
|
83
|
+
return {
|
|
84
|
+
kind: t,
|
|
85
|
+
title: n.join(" ")
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
function He(e, t, n) {
|
|
89
|
+
let { kind: r, title: i } = Ve(t), a = e.get(r);
|
|
90
|
+
if (!a) return;
|
|
91
|
+
let o = i ? `<h5 class="${m}">${n(i)}</h5>` : "";
|
|
92
|
+
return `<div class="${h({ variant: a.variant })}" role="alert" data-callout="${n(r)}">` + o + `<div class="${p}">`;
|
|
93
|
+
}
|
|
94
|
+
var Ue = "</div></div>";
|
|
95
|
+
function We(e) {
|
|
96
|
+
return (t) => {
|
|
97
|
+
t.use(Re, "callout", {
|
|
98
|
+
validate: (t) => e.get(Ve(t).kind) !== void 0,
|
|
99
|
+
render: (n, r) => {
|
|
100
|
+
let i = n[r];
|
|
101
|
+
return i.nesting === 1 ? He(e, i.info, t.utils.escapeHtml) ?? "" : Ue;
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
//#endregion
|
|
107
|
+
//#region ../../node_modules/.pnpm/@vueuse+shared@14.3.0_vue@3.5.39_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js
|
|
108
|
+
function Ge(e, t) {
|
|
109
|
+
return te() ? (ce(e, t), !0) : !1;
|
|
110
|
+
}
|
|
111
|
+
var Ke = typeof window < "u" && typeof document < "u";
|
|
112
|
+
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
113
|
+
function qe(e) {
|
|
114
|
+
return Array.isArray(e) ? e : [e];
|
|
115
|
+
}
|
|
116
|
+
function Je(e) {
|
|
117
|
+
return e || ee();
|
|
118
|
+
}
|
|
119
|
+
function Ye(e, t = !0, n) {
|
|
120
|
+
Je(n) ? se(e, n) : t ? e() : ie(e);
|
|
121
|
+
}
|
|
122
|
+
//#endregion
|
|
123
|
+
//#region ../../node_modules/.pnpm/@vueuse+core@14.3.0_vue@3.5.39_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js
|
|
124
|
+
var Xe = Ke ? window : void 0;
|
|
125
|
+
Ke && window.document, Ke && window.navigator, Ke && window.location;
|
|
126
|
+
function P(e) {
|
|
127
|
+
let t = A(e);
|
|
128
|
+
return t?.$el ?? t;
|
|
129
|
+
}
|
|
130
|
+
function Ze() {
|
|
131
|
+
let e = ue(!1), t = ee();
|
|
132
|
+
return t && se(() => {
|
|
133
|
+
e.value = !0;
|
|
134
|
+
}, t), e;
|
|
135
|
+
}
|
|
136
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
137
|
+
function Qe(e) {
|
|
138
|
+
let t = Ze();
|
|
139
|
+
return _(() => (t.value, !!e()));
|
|
140
|
+
}
|
|
141
|
+
function $e(e, t, n = {}) {
|
|
142
|
+
let { window: r = Xe, ...i } = n, a, o = /* @__PURE__ */ Qe(() => r && "ResizeObserver" in r), s = () => {
|
|
143
|
+
a &&= (a.disconnect(), void 0);
|
|
144
|
+
}, c = M(_(() => {
|
|
145
|
+
let t = A(e);
|
|
146
|
+
return Array.isArray(t) ? t.map((e) => P(e)) : [P(t)];
|
|
147
|
+
}), (e) => {
|
|
148
|
+
if (s(), o.value && r) {
|
|
149
|
+
a = new ResizeObserver(t);
|
|
150
|
+
for (let t of e) t && a.observe(t, i);
|
|
151
|
+
}
|
|
152
|
+
}, {
|
|
153
|
+
immediate: !0,
|
|
154
|
+
flush: "post"
|
|
155
|
+
}), l = () => {
|
|
156
|
+
s(), c();
|
|
157
|
+
};
|
|
158
|
+
return Ge(l), {
|
|
159
|
+
isSupported: o,
|
|
160
|
+
stop: l
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
function et(e, t = {
|
|
164
|
+
width: 0,
|
|
165
|
+
height: 0
|
|
166
|
+
}, n = {}) {
|
|
167
|
+
let { window: r = Xe, box: i = "content-box" } = n, a = _(() => {
|
|
168
|
+
var t;
|
|
169
|
+
return (t = P(e)) == null || (t = t.namespaceURI) == null ? void 0 : t.includes("svg");
|
|
170
|
+
}), o = ue(t.width), s = ue(t.height), { stop: c } = $e(e, ([t]) => {
|
|
171
|
+
let n = i === "border-box" ? t.borderBoxSize : i === "content-box" ? t.contentBoxSize : t.devicePixelContentBoxSize;
|
|
172
|
+
if (r && a.value) {
|
|
173
|
+
let t = P(e);
|
|
174
|
+
if (t) {
|
|
175
|
+
let e = t.getBoundingClientRect();
|
|
176
|
+
o.value = e.width, s.value = e.height;
|
|
177
|
+
}
|
|
178
|
+
} else if (n) {
|
|
179
|
+
let e = qe(n);
|
|
180
|
+
o.value = e.reduce((e, { inlineSize: t }) => e + t, 0), s.value = e.reduce((e, { blockSize: t }) => e + t, 0);
|
|
181
|
+
} else o.value = t.contentRect.width, s.value = t.contentRect.height;
|
|
182
|
+
}, n);
|
|
183
|
+
Ye(() => {
|
|
184
|
+
let n = P(e);
|
|
185
|
+
n && (o.value = "offsetWidth" in n ? n.offsetWidth : t.width, s.value = "offsetHeight" in n ? n.offsetHeight : t.height);
|
|
186
|
+
});
|
|
187
|
+
let l = M(() => P(e), (e) => {
|
|
188
|
+
o.value = e ? t.width : 0, s.value = e ? t.height : 0;
|
|
189
|
+
});
|
|
190
|
+
function u() {
|
|
191
|
+
c(), l();
|
|
192
|
+
}
|
|
193
|
+
return {
|
|
194
|
+
width: o,
|
|
195
|
+
height: s,
|
|
196
|
+
stop: u
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
//#endregion
|
|
200
|
+
//#region src/composables/useIsolationWarning.ts
|
|
201
|
+
var tt = (e) => {
|
|
202
|
+
let t = e.chapters.find((e) => e.steps.length > 0);
|
|
203
|
+
return {
|
|
204
|
+
chapterId: t?.id ?? "",
|
|
205
|
+
stepId: t?.steps[0]?.id ?? ""
|
|
206
|
+
};
|
|
207
|
+
}, nt = (e, t) => e.chapters.some((e) => e.id === t.chapterId && e.steps.some((e) => e.id === t.stepId)), rt = (e, t) => {
|
|
208
|
+
let n = _(() => A(e).chapters), r = _(() => n.value.flatMap((e) => e.steps.map((t) => ({
|
|
209
|
+
chapterId: e.id,
|
|
210
|
+
stepId: t.id
|
|
211
|
+
})))), i = _(() => n.value.find((e) => e.id === t.value.chapterId)), a = _(() => i.value?.steps.find((e) => e.id === t.value.stepId)), o = _(() => a.value ? r.value.findIndex((e) => e.chapterId === t.value.chapterId && e.stepId === t.value.stepId) : -1);
|
|
212
|
+
return {
|
|
213
|
+
chapter: i,
|
|
214
|
+
step: a,
|
|
215
|
+
prev: _(() => o.value > 0 ? r.value[o.value - 1] : void 0),
|
|
216
|
+
next: _(() => o.value >= 0 ? r.value[o.value + 1] : void 0),
|
|
217
|
+
groups: _(() => {
|
|
218
|
+
let e = n.value.length === 1;
|
|
219
|
+
return n.value.map((t) => ({
|
|
220
|
+
chapterId: t.id,
|
|
221
|
+
title: e ? void 0 : t.title,
|
|
222
|
+
steps: t.steps.map((e) => ({
|
|
223
|
+
position: {
|
|
224
|
+
chapterId: t.id,
|
|
225
|
+
stepId: e.id
|
|
226
|
+
},
|
|
227
|
+
title: e.title
|
|
228
|
+
}))
|
|
229
|
+
}));
|
|
230
|
+
}),
|
|
231
|
+
goTo: (e) => {
|
|
232
|
+
r.value.some((t) => t.chapterId === e.chapterId && t.stepId === e.stepId) && (t.value = {
|
|
233
|
+
chapterId: e.chapterId,
|
|
234
|
+
stepId: e.stepId
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
}, it = /* @__PURE__ */ Le((/* @__PURE__ */ Pe(((e, t) => {
|
|
239
|
+
function n(e) {
|
|
240
|
+
return Array.isArray(e) ? e : [e];
|
|
241
|
+
}
|
|
242
|
+
var r = "", i = " ", a = "\\", o = /^\s+$/, s = /(?:[^\\]|^)\\$/, c = /^\\!/, l = /^\\#/, u = /\r?\n/g, d = /^\.*\/|^\.+$/, f = "/", p = "node-ignore";
|
|
243
|
+
/* istanbul ignore else */
|
|
244
|
+
typeof Symbol < "u" && (p = Symbol.for("node-ignore"));
|
|
245
|
+
var m = p, h = (e, t, n) => Object.defineProperty(e, t, { value: n }), g = /([0-z])-([0-z])/g, _ = () => !1, v = (e) => e.replace(g, (e, t, n) => t.charCodeAt(0) <= n.charCodeAt(0) ? e : r), y = (e) => {
|
|
246
|
+
let { length: t } = e;
|
|
247
|
+
return e.slice(0, t - t % 2);
|
|
248
|
+
}, b = [
|
|
249
|
+
[/^\uFEFF/, () => r],
|
|
250
|
+
[/((?:\\\\)*?)(\\?\s+)$/, (e, t, n) => t + (n.indexOf("\\") === 0 ? i : r)],
|
|
251
|
+
[/(\\+?)\s/g, (e, t) => {
|
|
252
|
+
let { length: n } = t;
|
|
253
|
+
return t.slice(0, n - n % 2) + i;
|
|
254
|
+
}],
|
|
255
|
+
[/[\\$.|*+(){^]/g, (e) => `\\${e}`],
|
|
256
|
+
[/(?!\\)\?/g, () => "[^/]"],
|
|
257
|
+
[/^\//, () => "^"],
|
|
258
|
+
[/\//g, () => "\\/"],
|
|
259
|
+
[/^\^*\\\*\\\*\\\//, () => "^(?:.*\\/)?"],
|
|
260
|
+
[/^(?=[^^])/, function() {
|
|
261
|
+
return /\/(?!$)/.test(this) ? "^" : "(?:^|\\/)";
|
|
262
|
+
}],
|
|
263
|
+
[/\\\/\\\*\\\*(?=\\\/|$)/g, (e, t, n) => t + 6 < n.length ? "(?:\\/[^\\/]+)*" : "\\/.+"],
|
|
264
|
+
[/(^|[^\\]+)(\\\*)+(?=.+)/g, (e, t, n) => t + n.replace(/\\\*/g, "[^\\/]*")],
|
|
265
|
+
[/\\\\\\(?=[$.|*+(){^])/g, () => a],
|
|
266
|
+
[/\\\\/g, () => a],
|
|
267
|
+
[/(\\)?\[([^\]/]*?)(\\*)($|\])/g, (e, t, n, r, i) => t === a ? `\\[${n}${y(r)}${i}` : i === "]" && r.length % 2 == 0 ? `[${v(n)}${r}]` : "[]"],
|
|
268
|
+
[/(?:[^*])$/, (e) => /\/$/.test(e) ? `${e}$` : `${e}(?=$|\\/$)`],
|
|
269
|
+
[/(\^|\\\/)?\\\*$/, (e, t) => `${t ? `${t}[^/]+` : "[^/]*"}(?=$|\\/$)`]
|
|
270
|
+
], x = Object.create(null), S = (e, t) => {
|
|
271
|
+
let n = x[e];
|
|
272
|
+
return n || (n = b.reduce((t, [n, r]) => t.replace(n, r.bind(e)), e), x[e] = n), t ? new RegExp(n, "i") : new RegExp(n);
|
|
273
|
+
}, C = (e) => typeof e == "string", w = (e) => e && C(e) && !o.test(e) && !s.test(e) && e.indexOf("#") !== 0, ee = (e) => e.split(u), te = class {
|
|
274
|
+
constructor(e, t, n, r) {
|
|
275
|
+
this.origin = e, this.pattern = t, this.negative = n, this.regex = r;
|
|
276
|
+
}
|
|
277
|
+
}, ne = (e, t) => {
|
|
278
|
+
let n = e, r = !1;
|
|
279
|
+
e.indexOf("!") === 0 && (r = !0, e = e.substr(1)), e = e.replace(c, "!").replace(l, "#");
|
|
280
|
+
let i = S(e, t);
|
|
281
|
+
return new te(n, e, r, i);
|
|
282
|
+
}, re = (e, t) => {
|
|
283
|
+
throw new t(e);
|
|
284
|
+
}, T = (e, t, n) => C(e) ? e ? T.isNotRelative(e) ? n(`path should be a \`path.relative()\`d string, but got "${t}"`, RangeError) : !0 : n("path must not be empty", TypeError) : n(`path must be a string, but got \`${t}\``, TypeError), ie = (e) => d.test(e);
|
|
285
|
+
T.isNotRelative = ie, T.convert = (e) => e;
|
|
286
|
+
var ae = class {
|
|
287
|
+
constructor({ ignorecase: e = !0, ignoreCase: t = e, allowRelativePaths: n = !1 } = {}) {
|
|
288
|
+
h(this, m, !0), this._rules = [], this._ignoreCase = t, this._allowRelativePaths = n, this._initCache();
|
|
289
|
+
}
|
|
290
|
+
_initCache() {
|
|
291
|
+
this._ignoreCache = Object.create(null), this._testCache = Object.create(null);
|
|
292
|
+
}
|
|
293
|
+
_addPattern(e) {
|
|
294
|
+
if (e && e[m]) {
|
|
295
|
+
this._rules = this._rules.concat(e._rules), this._added = !0;
|
|
296
|
+
return;
|
|
297
|
+
}
|
|
298
|
+
if (w(e)) {
|
|
299
|
+
let t = ne(e, this._ignoreCase);
|
|
300
|
+
this._added = !0, this._rules.push(t);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
add(e) {
|
|
304
|
+
return this._added = !1, n(C(e) ? ee(e) : e).forEach(this._addPattern, this), this._added && this._initCache(), this;
|
|
305
|
+
}
|
|
306
|
+
addPattern(e) {
|
|
307
|
+
return this.add(e);
|
|
308
|
+
}
|
|
309
|
+
_testOne(e, t) {
|
|
310
|
+
let n = !1, r = !1;
|
|
311
|
+
return this._rules.forEach((i) => {
|
|
312
|
+
let { negative: a } = i;
|
|
313
|
+
r === a && n !== r || a && !n && !r && !t || i.regex.test(e) && (n = !a, r = a);
|
|
314
|
+
}), {
|
|
315
|
+
ignored: n,
|
|
316
|
+
unignored: r
|
|
317
|
+
};
|
|
318
|
+
}
|
|
319
|
+
_test(e, t, n, r) {
|
|
320
|
+
let i = e && T.convert(e);
|
|
321
|
+
return T(i, e, this._allowRelativePaths ? _ : re), this._t(i, t, n, r);
|
|
322
|
+
}
|
|
323
|
+
_t(e, t, n, r) {
|
|
324
|
+
if (e in t) return t[e];
|
|
325
|
+
if (r ||= e.split(f), r.pop(), !r.length) return t[e] = this._testOne(e, n);
|
|
326
|
+
let i = this._t(r.join(f) + f, t, n, r);
|
|
327
|
+
return t[e] = i.ignored ? i : this._testOne(e, n);
|
|
328
|
+
}
|
|
329
|
+
ignores(e) {
|
|
330
|
+
return this._test(e, this._ignoreCache, !1).ignored;
|
|
331
|
+
}
|
|
332
|
+
createFilter() {
|
|
333
|
+
return (e) => !this.ignores(e);
|
|
334
|
+
}
|
|
335
|
+
filter(e) {
|
|
336
|
+
return n(e).filter(this.createFilter());
|
|
337
|
+
}
|
|
338
|
+
test(e) {
|
|
339
|
+
return this._test(e, this._testCache, !0);
|
|
340
|
+
}
|
|
341
|
+
}, oe = (e) => new ae(e);
|
|
342
|
+
/* istanbul ignore if */
|
|
343
|
+
if (oe.isPathValid = (e) => T(e && T.convert(e), e, _), oe.default = oe, t.exports = oe, typeof process < "u" && (process.env && process.env.IGNORE_TEST_WIN32 || process.platform === "win32")) {
|
|
344
|
+
T.convert = (e) => /^\\\\\?\\/.test(e) || /["<>|\u0000-\u001F]+/u.test(e) ? e : e.replace(/\\/g, "/");
|
|
345
|
+
let e = /^[a-z]:\//i;
|
|
346
|
+
T.isNotRelative = (t) => e.test(t) || ie(t);
|
|
347
|
+
}
|
|
348
|
+
})))(), 1), F = (e) => e.replace(/^\.?\/+/, ""), at = (e, t) => e.chapters.find((e) => e.id === t.chapterId)?.steps.find((e) => e.id === t.stepId), ot = (e = {}, t = "") => {
|
|
349
|
+
let n = /* @__PURE__ */ new Map();
|
|
350
|
+
for (let [r, i] of Object.entries(e)) {
|
|
351
|
+
let e = `${t}${r}`;
|
|
352
|
+
if ("file" in i) n.set(e, i.file.contents);
|
|
353
|
+
else for (let [t, r] of ot(i.directory, `${e}/`)) n.set(t, r);
|
|
354
|
+
}
|
|
355
|
+
return n;
|
|
356
|
+
}, st = (e, t) => {
|
|
357
|
+
let n = new Map([...ot(e.files), ...ot(t?.adjustments)]);
|
|
358
|
+
for (let e of t?.removals ?? []) n.delete(F(e));
|
|
359
|
+
return n;
|
|
360
|
+
}, ct = [
|
|
361
|
+
"node_modules",
|
|
362
|
+
"package-lock.json",
|
|
363
|
+
"pnpm-lock.yaml",
|
|
364
|
+
"yarn.lock",
|
|
365
|
+
"bun.lock",
|
|
366
|
+
"bun.lockb"
|
|
367
|
+
], lt = (e) => {
|
|
368
|
+
let t = {};
|
|
369
|
+
for (let [n, r] of e) {
|
|
370
|
+
let e = n.split("/"), i = e.pop(), a = t;
|
|
371
|
+
for (let t of e) {
|
|
372
|
+
let e = a[t];
|
|
373
|
+
if (e && "directory" in e) a = e.directory;
|
|
374
|
+
else {
|
|
375
|
+
let e = {};
|
|
376
|
+
a[t] = { directory: e }, a = e;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
a[i] = { file: { contents: r } };
|
|
380
|
+
}
|
|
381
|
+
return t;
|
|
382
|
+
}, ut = (e) => {
|
|
383
|
+
let { fs: t } = e, n = () => A(e.lesson), r = _(() => (0, it.default)({ allowRelativePaths: !0 }).add(ct).add(n().immutable ?? [])), i = D(!1), a = D(), o = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set(), l = (e) => r.value.ignores(F(e)) ? "A" : "B", u = (e) => {
|
|
384
|
+
let t = /* @__PURE__ */ new Map(), r = [...ot(n().files), ...ot(e?.adjustments)];
|
|
385
|
+
for (let [e, n] of r) l(e) === "B" && t.set(e, n);
|
|
386
|
+
for (let n of e?.removals ?? []) t.delete(F(n));
|
|
387
|
+
return t;
|
|
388
|
+
}, d = (...e) => {
|
|
389
|
+
o.clear(), s.clear();
|
|
390
|
+
for (let t of e) for (let e of t) {
|
|
391
|
+
o.add(e);
|
|
392
|
+
let t = e.split("/");
|
|
393
|
+
for (let e = 1; e < t.length; e++) s.add(t.slice(0, e).join("/"));
|
|
394
|
+
}
|
|
395
|
+
}, f = (e, t) => {
|
|
396
|
+
if (typeof t != "string") return;
|
|
397
|
+
let n = F(t);
|
|
398
|
+
l(n) === "B" && (s.has(n) || o.delete(n) || (c.add(n), i.value = !0));
|
|
399
|
+
}, p, m = () => {
|
|
400
|
+
p ??= t.watch("/", { recursive: !0 }, f);
|
|
401
|
+
}, h = async (e) => {
|
|
402
|
+
m();
|
|
403
|
+
let r = u(at(n(), e)), o = new Map([...ot(n().files)].filter(([e]) => l(e) === "A"));
|
|
404
|
+
d(r.keys()), await t.mount(lt(new Map([...o, ...r]))), a.value = { ...e }, i.value = !1;
|
|
405
|
+
}, g = _(() => i.value), v = async (e, r) => {
|
|
406
|
+
let o = u(at(n(), r)), s = /* @__PURE__ */ new Set([...u(at(n(), e)).keys(), ...c]);
|
|
407
|
+
for (let e of o.keys()) s.delete(e);
|
|
408
|
+
d(s, o.keys());
|
|
409
|
+
for (let e of s) await t.rm(e, {
|
|
410
|
+
recursive: !0,
|
|
411
|
+
force: !0
|
|
412
|
+
});
|
|
413
|
+
await t.mount(lt(o)), c.clear(), a.value = { ...r }, i.value = !1;
|
|
414
|
+
};
|
|
415
|
+
return {
|
|
416
|
+
tierOf: l,
|
|
417
|
+
dirty: i,
|
|
418
|
+
requiresConfirm: g,
|
|
419
|
+
current: a,
|
|
420
|
+
boot: h,
|
|
421
|
+
reset: v,
|
|
422
|
+
navigate: async (e, t) => {
|
|
423
|
+
let n = a.value;
|
|
424
|
+
return !n || g.value && !await t() ? !1 : (await v(n, e), !0);
|
|
425
|
+
},
|
|
426
|
+
dispose: () => {
|
|
427
|
+
p?.close(), p = void 0;
|
|
428
|
+
}
|
|
429
|
+
};
|
|
430
|
+
}, dt = (e) => Array.isArray(e) ? e : [], ft = /[*?[\]{}]/, pt = (e) => Number.isInteger(e) && e >= 1, mt = (e) => Array.isArray(e) && e.length === 2 && pt(e[0]) && pt(e[1]) && e[0] <= e[1] ? [e[0], e[1]] : void 0, ht = (e) => {
|
|
431
|
+
if (pt(e)) return [[e, e]];
|
|
432
|
+
if (!Array.isArray(e) || e.length === 0) return;
|
|
433
|
+
let t = mt(e);
|
|
434
|
+
if (t) return [t];
|
|
435
|
+
let n = [];
|
|
436
|
+
for (let t of e) {
|
|
437
|
+
let e = pt(t) ? [t, t] : mt(t);
|
|
438
|
+
if (!e) return;
|
|
439
|
+
n.push(e);
|
|
440
|
+
}
|
|
441
|
+
return n;
|
|
442
|
+
}, gt = (e) => {
|
|
443
|
+
let t = [];
|
|
444
|
+
for (let n of e.chapters) for (let r of n.steps) {
|
|
445
|
+
let i = st(e, r), a = new Set((r.removals ?? []).map(F)), o = (e, i, a) => t.push({
|
|
446
|
+
rule: e,
|
|
447
|
+
chapterId: n.id,
|
|
448
|
+
stepId: r.id,
|
|
449
|
+
path: a,
|
|
450
|
+
message: i
|
|
451
|
+
}), s = (e) => {
|
|
452
|
+
if (typeof e != "string") {
|
|
453
|
+
o("invalid-path", `Path must be a literal string, got ${typeof e}`);
|
|
454
|
+
return;
|
|
455
|
+
}
|
|
456
|
+
let t = F(e), n = t.split("/"), r = t ? n.some((e) => e === "" || e === "." || e === "..") ? "has an empty, \".\" or \"..\" segment (directories are not allowed)" : ft.test(t) && !i.has(t) && !a.has(t) ? "contains glob characters" : [...i.keys()].some((e) => e.startsWith(`${t}/`)) ? "is a directory" : void 0 : "is empty";
|
|
457
|
+
if (r) {
|
|
458
|
+
o("invalid-path", `Path "${e}" ${r}`, t || void 0);
|
|
459
|
+
return;
|
|
460
|
+
}
|
|
461
|
+
return t;
|
|
462
|
+
}, c = (e) => {
|
|
463
|
+
let t = s(e);
|
|
464
|
+
if (t === void 0) return;
|
|
465
|
+
if (a.has(t)) {
|
|
466
|
+
o("removed-path", `"${t}" is removed by the same step`, t);
|
|
467
|
+
return;
|
|
468
|
+
}
|
|
469
|
+
let n = i.get(t);
|
|
470
|
+
if (n === void 0) {
|
|
471
|
+
o("missing-file", `"${t}" does not exist in this step`, t);
|
|
472
|
+
return;
|
|
473
|
+
}
|
|
474
|
+
return {
|
|
475
|
+
path: t,
|
|
476
|
+
contents: n
|
|
477
|
+
};
|
|
478
|
+
}, l = (e, t, n = !1) => {
|
|
479
|
+
let r = n && !pt(e) ? void 0 : ht(e);
|
|
480
|
+
if (!r) {
|
|
481
|
+
o("malformed-lines", `Invalid line spec ${String(JSON.stringify(e) ?? e)}`, t.path);
|
|
482
|
+
return;
|
|
483
|
+
}
|
|
484
|
+
let i = t.contents.split("\n").length, a = Math.max(...r.map(([, e]) => e));
|
|
485
|
+
a > i && o("line-out-of-range", `Line ${a} is beyond the end of "${t.path}" (${i} lines)`, t.path);
|
|
486
|
+
};
|
|
487
|
+
for (let e of dt(r.editor?.open)) {
|
|
488
|
+
let t = typeof e == "object" && !!e, n = c(t ? e.path : e);
|
|
489
|
+
n && t && e.line !== void 0 && l(e.line, n, !0);
|
|
490
|
+
}
|
|
491
|
+
let u = r.editor?.close;
|
|
492
|
+
if (u !== void 0 && u !== "all") if (Array.isArray(u)) for (let e of u) s(e);
|
|
493
|
+
else o("invalid-path", "editor.close must be a list of paths or \"all\"");
|
|
494
|
+
for (let e of dt(r.editor?.highlight)) {
|
|
495
|
+
let t = c(e?.path);
|
|
496
|
+
t && l(e.lines, t);
|
|
497
|
+
}
|
|
498
|
+
if (r.preview) {
|
|
499
|
+
let { url: e } = r.preview;
|
|
500
|
+
(typeof e != "string" || !/^\/(?![/\\])/.test(e)) && o("invalid-preview-url", `Preview url "${e}" must be root-relative (start with a single "/")`);
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
return t;
|
|
504
|
+
}, _t = (e) => `./${F(e)}`, vt = (e) => {
|
|
505
|
+
let { sandbox: t, reset: n } = e, r = e.viewTimeoutMs ?? 3e3, i = D(!1), a = 0, o, s, c = async (e, n) => {
|
|
506
|
+
let i, a = new Promise((e) => {
|
|
507
|
+
i = setTimeout(() => e("timeout"), r);
|
|
508
|
+
});
|
|
509
|
+
try {
|
|
510
|
+
await Promise.race([t.editorViews.goToLine(n, e, { focus: !1 }).then(() => "done"), a]) === "timeout" && `${e}${n}`;
|
|
511
|
+
} catch (t) {
|
|
512
|
+
`${n}${e}${String(t)}`;
|
|
513
|
+
} finally {
|
|
514
|
+
clearTimeout(i);
|
|
515
|
+
}
|
|
516
|
+
}, l = async (r, i, l) => {
|
|
517
|
+
let u = () => r === a, d = e.lesson(), f = at(d, i), p = st(d, f), m = !1;
|
|
518
|
+
if (l) {
|
|
519
|
+
t.editorViews.clearAllHighlightedLines();
|
|
520
|
+
let e = [...st(d, at(d, l)).keys()].filter((e) => !p.has(e));
|
|
521
|
+
m = e.length > 0;
|
|
522
|
+
for (let { id: n } of [...t.editorTabs.tabs.value]) e.includes(F(n)) && t.editorTabs.close(n);
|
|
523
|
+
}
|
|
524
|
+
let h = f?.editor, g = new Set((f?.removals ?? []).map(F)), _ = (e, t) => {
|
|
525
|
+
if (typeof e != "string") {
|
|
526
|
+
`${t}`;
|
|
527
|
+
return;
|
|
528
|
+
}
|
|
529
|
+
let n = F(e);
|
|
530
|
+
if (!p.has(n)) {
|
|
531
|
+
g.has(n), `${t}${n}`;
|
|
532
|
+
return;
|
|
533
|
+
}
|
|
534
|
+
return n;
|
|
535
|
+
};
|
|
536
|
+
if (h?.close === "all") t.editorTabs.closeAll();
|
|
537
|
+
else if (Array.isArray(h?.close)) for (let e of h.close) typeof e == "string" && t.editorTabs.close(_t(e));
|
|
538
|
+
let v;
|
|
539
|
+
if (Array.isArray(h?.open)) for (let e of h.open) {
|
|
540
|
+
let n = _(typeof e == "object" && e ? e.path : e, "open");
|
|
541
|
+
if (n === void 0) continue;
|
|
542
|
+
t.editorTabs.open(_t(n));
|
|
543
|
+
let r = typeof e == "object" && e ? e.line : void 0;
|
|
544
|
+
v = r === void 0 ? void 0 : {
|
|
545
|
+
path: _t(n),
|
|
546
|
+
line: r
|
|
547
|
+
};
|
|
548
|
+
}
|
|
549
|
+
if (Array.isArray(h?.highlight)) for (let e of h.highlight) {
|
|
550
|
+
let r = _(e?.path, "highlight");
|
|
551
|
+
if (r === void 0) continue;
|
|
552
|
+
if (n.dirty.value) break;
|
|
553
|
+
let i = ht(e.lines);
|
|
554
|
+
if (!i) {
|
|
555
|
+
`${r}`;
|
|
556
|
+
continue;
|
|
557
|
+
}
|
|
558
|
+
for (let e of i) if (await t.editorViews.highlightLines(e[0] === e[1] ? e[0] : e, _t(r), { open: !1 }), !u()) return;
|
|
559
|
+
}
|
|
560
|
+
if (v && !n.dirty.value) if (e.sandboxVisible.value) {
|
|
561
|
+
if (await c(v.path, v.line), !u()) return;
|
|
562
|
+
} else o = {
|
|
563
|
+
...v,
|
|
564
|
+
token: r
|
|
565
|
+
};
|
|
566
|
+
if (!u()) return;
|
|
567
|
+
let y = f?.preview?.url, b = !!t.preview.url.value;
|
|
568
|
+
y ? b ? l && y === t.preview.path.value ? await t.preview.reload() : t.preview.navigate(y) : s = {
|
|
569
|
+
url: y,
|
|
570
|
+
token: r
|
|
571
|
+
} : l && b && (m && t.preview.path.value !== "/" ? t.preview.navigate("/") : await t.preview.reload());
|
|
572
|
+
}, u = async (e, t) => {
|
|
573
|
+
let n = ++a;
|
|
574
|
+
o = void 0, s = void 0;
|
|
575
|
+
try {
|
|
576
|
+
await l(n, e, t);
|
|
577
|
+
} catch (e) {
|
|
578
|
+
`${String(e)}`;
|
|
579
|
+
}
|
|
580
|
+
};
|
|
581
|
+
return M(n.dirty, (e, n) => {
|
|
582
|
+
!e || n || (t.editorViews.clearAllHighlightedLines(), o = void 0);
|
|
583
|
+
}), M(e.sandboxVisible, (e) => {
|
|
584
|
+
if (!e || !o || o.token !== a) return;
|
|
585
|
+
let { path: t, line: n } = o;
|
|
586
|
+
o = void 0, c(t, n);
|
|
587
|
+
}), M(t.preview.url, (e) => {
|
|
588
|
+
if (!e || !s || s.token !== a) return;
|
|
589
|
+
let { url: n } = s;
|
|
590
|
+
s = void 0, t.preview.navigate(n);
|
|
591
|
+
}), {
|
|
592
|
+
navigating: i,
|
|
593
|
+
navigate: async (t) => {
|
|
594
|
+
if (!i.value) {
|
|
595
|
+
i.value = !0;
|
|
596
|
+
try {
|
|
597
|
+
let r = { ...e.position.value };
|
|
598
|
+
if (!await n.navigate(t, e.confirm)) return;
|
|
599
|
+
e.goTo(t), u(t, r);
|
|
600
|
+
} catch (e) {
|
|
601
|
+
`${String(e)}`;
|
|
602
|
+
} finally {
|
|
603
|
+
i.value = !1;
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
},
|
|
607
|
+
enterInitial: () => u({ ...e.position.value })
|
|
608
|
+
};
|
|
609
|
+
}, yt = (e) => {
|
|
610
|
+
let t = e.startsWith("!"), n = F(t ? e.slice(1) : e), r = n.replace(/\/$/, "").includes("/");
|
|
611
|
+
return `${t ? "!" : ""}${r ? "./" : "**/"}${n}`;
|
|
612
|
+
}, bt = (e) => {
|
|
613
|
+
let t = _(() => at(A(e.lesson), A(e.position))?.locks ?? []), n = _(() => [...A(e.lesson).immutable ?? [], ...t.value].map(yt)), r = [], i = (t) => {
|
|
614
|
+
e.setOption("explorer", (e) => ({
|
|
615
|
+
...e,
|
|
616
|
+
readonly: [...(e.readonly ?? []).filter((e) => !r.includes(e)), ...t]
|
|
617
|
+
})), r = t;
|
|
618
|
+
};
|
|
619
|
+
return M(n, i, { immediate: !0 }), ce(() => i([])), t;
|
|
620
|
+
}, xt = ["aria-label"], St = {
|
|
621
|
+
key: 0,
|
|
622
|
+
"data-testid": "toc-chapter",
|
|
623
|
+
class: "text-muted-foreground px-2 pb-1 pt-1.5 text-xs font-semibold uppercase tracking-wide"
|
|
624
|
+
}, Ct = ["aria-current", "onClick"], wt = /* @__PURE__ */ w({
|
|
625
|
+
__name: "TocDropdown",
|
|
626
|
+
props: {
|
|
627
|
+
groups: {},
|
|
628
|
+
current: {},
|
|
629
|
+
disabled: { type: Boolean }
|
|
630
|
+
},
|
|
631
|
+
emits: ["select"],
|
|
632
|
+
setup(e, { emit: t }) {
|
|
633
|
+
let n = e, s = t, { t: c } = De(), l = D(!1), u = fe("list"), d = () => [...u.value?.querySelectorAll("[data-toc-step]") ?? []], f = (e) => e.chapterId === n.current.chapterId && e.stepId === n.current.stepId, p = (e) => {
|
|
634
|
+
l.value = !1, f(e) || s("select", e);
|
|
635
|
+
};
|
|
636
|
+
M(l, async (e) => {
|
|
637
|
+
e && (await ie(), d().find((e) => e.hasAttribute("aria-current"))?.focus());
|
|
638
|
+
});
|
|
639
|
+
let m = (e) => {
|
|
640
|
+
let t = d(), n = t.indexOf(document.activeElement), r = {
|
|
641
|
+
ArrowDown: (n + 1) % t.length,
|
|
642
|
+
ArrowUp: (n - 1 + t.length) % t.length,
|
|
643
|
+
Home: 0,
|
|
644
|
+
End: t.length - 1
|
|
645
|
+
}[e.key];
|
|
646
|
+
r !== void 0 && (e.preventDefault(), e.stopPropagation(), t[r]?.focus());
|
|
647
|
+
};
|
|
648
|
+
return (t, n) => (E(), v(j(i), {
|
|
649
|
+
open: l.value,
|
|
650
|
+
"onUpdate:open": n[0] ||= (e) => l.value = e
|
|
651
|
+
}, {
|
|
652
|
+
default: N(() => [C(j(o), {
|
|
653
|
+
"as-child": "",
|
|
654
|
+
disabled: e.disabled
|
|
655
|
+
}, {
|
|
656
|
+
default: N(() => [C(j(r), {
|
|
657
|
+
"data-testid": "toc-trigger",
|
|
658
|
+
variant: "ghost",
|
|
659
|
+
size: "icon",
|
|
660
|
+
class: "size-7",
|
|
661
|
+
title: j(c)("krgz.hayali.toc"),
|
|
662
|
+
"aria-label": j(c)("krgz.hayali.toc")
|
|
663
|
+
}, {
|
|
664
|
+
default: N(() => [...n[1] ||= [x("svg", {
|
|
665
|
+
class: "size-[15px]",
|
|
666
|
+
viewBox: "0 0 24 24",
|
|
667
|
+
fill: "none",
|
|
668
|
+
stroke: "currentColor",
|
|
669
|
+
"stroke-width": "2",
|
|
670
|
+
"stroke-linecap": "round",
|
|
671
|
+
"stroke-linejoin": "round",
|
|
672
|
+
"aria-hidden": "true"
|
|
673
|
+
}, [
|
|
674
|
+
x("path", { d: "M3 12h.01" }),
|
|
675
|
+
x("path", { d: "M3 18h.01" }),
|
|
676
|
+
x("path", { d: "M3 6h.01" }),
|
|
677
|
+
x("path", { d: "M8 12h13" }),
|
|
678
|
+
x("path", { d: "M8 18h13" }),
|
|
679
|
+
x("path", { d: "M8 6h13" })
|
|
680
|
+
], -1)]]),
|
|
681
|
+
_: 1
|
|
682
|
+
}, 8, ["title", "aria-label"])]),
|
|
683
|
+
_: 1
|
|
684
|
+
}, 8, ["disabled"]), C(j(a), {
|
|
685
|
+
align: "start",
|
|
686
|
+
class: "max-h-[min(420px,var(--radix-dropdown-menu-content-available-height))] w-64 overflow-auto"
|
|
687
|
+
}, {
|
|
688
|
+
default: N(() => [x("nav", {
|
|
689
|
+
ref_key: "list",
|
|
690
|
+
ref: u,
|
|
691
|
+
"aria-label": j(c)("krgz.hayali.toc"),
|
|
692
|
+
onKeydown: m
|
|
693
|
+
}, [(E(!0), b(g, null, O(e.groups, (e) => (E(), b("section", {
|
|
694
|
+
key: e.chapterId,
|
|
695
|
+
class: "not-first:mt-1 not-first:border-t not-first:pt-1"
|
|
696
|
+
}, [e.title ? (E(), b("div", St, k(e.title), 1)) : y("", !0), x("ol", null, [(E(!0), b(g, null, O(e.steps, (e) => (E(), b("li", { key: e.position.stepId }, [x("button", {
|
|
697
|
+
type: "button",
|
|
698
|
+
"data-testid": "toc-step",
|
|
699
|
+
"data-toc-step": "",
|
|
700
|
+
class: ae(["hover:bg-accent hover:text-accent-foreground focus-visible:bg-accent w-full rounded-sm px-2 py-1.5 text-start text-sm outline-none", { "font-semibold": f(e.position) }]),
|
|
701
|
+
"aria-current": f(e.position) ? "step" : void 0,
|
|
702
|
+
onClick: (t) => p(e.position)
|
|
703
|
+
}, k(e.title), 11, Ct)]))), 128))])]))), 128))], 40, xt)]),
|
|
704
|
+
_: 1
|
|
705
|
+
})]),
|
|
706
|
+
_: 1
|
|
707
|
+
}, 8, ["open"]));
|
|
708
|
+
}
|
|
709
|
+
}), Tt = {
|
|
710
|
+
"data-testid": "toolbar",
|
|
711
|
+
class: "bg-background sticky bottom-0 z-10 flex h-14 min-h-14 items-center gap-1 border-solid px-[var(--hf-tb-px,0.75rem)] [border-width:var(--hf-tb-bw,1px_0_0_0)] [order:var(--hf-tb-order,1)]"
|
|
712
|
+
}, Et = { class: "flex min-w-0 items-center gap-1 [flex:var(--hf-toc-flex,1_1_0%)] [justify-content:var(--hf-toc-justify,center)]" }, Dt = {
|
|
713
|
+
key: 0,
|
|
714
|
+
"data-testid": "chapter-title",
|
|
715
|
+
class: "ms-2 truncate text-sm font-semibold"
|
|
716
|
+
}, Ot = /* @__PURE__ */ w({
|
|
717
|
+
__name: "LessonToolbar",
|
|
718
|
+
props: {
|
|
719
|
+
prev: {},
|
|
720
|
+
next: {},
|
|
721
|
+
groups: {},
|
|
722
|
+
current: {},
|
|
723
|
+
chapterTitle: {},
|
|
724
|
+
disabled: { type: Boolean }
|
|
725
|
+
},
|
|
726
|
+
emits: ["navigate"],
|
|
727
|
+
setup(e) {
|
|
728
|
+
let { t } = De();
|
|
729
|
+
return (n, i) => (E(), b("div", Tt, [
|
|
730
|
+
C(j(r), {
|
|
731
|
+
"data-testid": "prev",
|
|
732
|
+
variant: "ghost",
|
|
733
|
+
size: "icon",
|
|
734
|
+
class: "-ms-1.5 size-7",
|
|
735
|
+
title: j(t)("krgz.hayali.prev"),
|
|
736
|
+
"aria-label": j(t)("krgz.hayali.prev"),
|
|
737
|
+
disabled: e.disabled || !e.prev,
|
|
738
|
+
onClick: i[0] ||= (t) => e.prev && n.$emit("navigate", e.prev)
|
|
739
|
+
}, {
|
|
740
|
+
default: N(() => [...i[3] ||= [x("svg", {
|
|
741
|
+
class: "size-[15px] rtl:-scale-x-100",
|
|
742
|
+
viewBox: "0 0 24 24",
|
|
743
|
+
fill: "none",
|
|
744
|
+
stroke: "currentColor",
|
|
745
|
+
"stroke-width": "2",
|
|
746
|
+
"stroke-linecap": "round",
|
|
747
|
+
"stroke-linejoin": "round",
|
|
748
|
+
"aria-hidden": "true"
|
|
749
|
+
}, [x("path", { d: "m12 19-7-7 7-7" }), x("path", { d: "M19 12H5" })], -1)]]),
|
|
750
|
+
_: 1
|
|
751
|
+
}, 8, [
|
|
752
|
+
"title",
|
|
753
|
+
"aria-label",
|
|
754
|
+
"disabled"
|
|
755
|
+
]),
|
|
756
|
+
C(j(r), {
|
|
757
|
+
"data-testid": "next",
|
|
758
|
+
variant: "ghost",
|
|
759
|
+
size: "icon",
|
|
760
|
+
class: "size-7 [margin-inline-end:var(--hf-next-me,-0.375rem)] [order:var(--hf-next-order,9)]",
|
|
761
|
+
title: j(t)("krgz.hayali.next"),
|
|
762
|
+
"aria-label": j(t)("krgz.hayali.next"),
|
|
763
|
+
disabled: e.disabled || !e.next,
|
|
764
|
+
onClick: i[1] ||= (t) => e.next && n.$emit("navigate", e.next)
|
|
765
|
+
}, {
|
|
766
|
+
default: N(() => [...i[4] ||= [x("svg", {
|
|
767
|
+
class: "size-[15px] rtl:-scale-x-100",
|
|
768
|
+
viewBox: "0 0 24 24",
|
|
769
|
+
fill: "none",
|
|
770
|
+
stroke: "currentColor",
|
|
771
|
+
"stroke-width": "2",
|
|
772
|
+
"stroke-linecap": "round",
|
|
773
|
+
"stroke-linejoin": "round",
|
|
774
|
+
"aria-hidden": "true"
|
|
775
|
+
}, [x("path", { d: "M5 12h14" }), x("path", { d: "m12 5 7 7-7 7" })], -1)]]),
|
|
776
|
+
_: 1
|
|
777
|
+
}, 8, [
|
|
778
|
+
"title",
|
|
779
|
+
"aria-label",
|
|
780
|
+
"disabled"
|
|
781
|
+
]),
|
|
782
|
+
x("div", Et, [C(wt, {
|
|
783
|
+
groups: e.groups,
|
|
784
|
+
current: e.current,
|
|
785
|
+
disabled: e.disabled,
|
|
786
|
+
onSelect: i[2] ||= (e) => n.$emit("navigate", e)
|
|
787
|
+
}, null, 8, [
|
|
788
|
+
"groups",
|
|
789
|
+
"current",
|
|
790
|
+
"disabled"
|
|
791
|
+
]), e.chapterTitle ? (E(), b("span", Dt, k(e.chapterTitle), 1)) : y("", !0)])
|
|
792
|
+
]));
|
|
793
|
+
}
|
|
794
|
+
}), kt = {};
|
|
795
|
+
function At(e) {
|
|
796
|
+
let t = kt[e];
|
|
797
|
+
if (t) return t;
|
|
798
|
+
t = kt[e] = [];
|
|
799
|
+
for (let e = 0; e < 128; e++) {
|
|
800
|
+
let n = String.fromCharCode(e);
|
|
801
|
+
t.push(n);
|
|
802
|
+
}
|
|
803
|
+
for (let n = 0; n < e.length; n++) {
|
|
804
|
+
let r = e.charCodeAt(n);
|
|
805
|
+
t[r] = "%" + ("0" + r.toString(16).toUpperCase()).slice(-2);
|
|
806
|
+
}
|
|
807
|
+
return t;
|
|
808
|
+
}
|
|
809
|
+
function jt(e, t) {
|
|
810
|
+
typeof t != "string" && (t = jt.defaultChars);
|
|
811
|
+
let n = At(t);
|
|
812
|
+
return e.replace(/(%[a-f0-9]{2})+/gi, function(e) {
|
|
813
|
+
let t = "";
|
|
814
|
+
for (let r = 0, i = e.length; r < i; r += 3) {
|
|
815
|
+
let a = parseInt(e.slice(r + 1, r + 3), 16);
|
|
816
|
+
if (a < 128) {
|
|
817
|
+
t += n[a];
|
|
818
|
+
continue;
|
|
819
|
+
}
|
|
820
|
+
if ((a & 224) == 192 && r + 3 < i) {
|
|
821
|
+
let n = parseInt(e.slice(r + 4, r + 6), 16);
|
|
822
|
+
if ((n & 192) == 128) {
|
|
823
|
+
let e = a << 6 & 1984 | n & 63;
|
|
824
|
+
e < 128 ? t += "��" : t += String.fromCharCode(e), r += 3;
|
|
825
|
+
continue;
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
if ((a & 240) == 224 && r + 6 < i) {
|
|
829
|
+
let n = parseInt(e.slice(r + 4, r + 6), 16), i = parseInt(e.slice(r + 7, r + 9), 16);
|
|
830
|
+
if ((n & 192) == 128 && (i & 192) == 128) {
|
|
831
|
+
let e = a << 12 & 61440 | n << 6 & 4032 | i & 63;
|
|
832
|
+
e < 2048 || e >= 55296 && e <= 57343 ? t += "���" : t += String.fromCharCode(e), r += 6;
|
|
833
|
+
continue;
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
if ((a & 248) == 240 && r + 9 < i) {
|
|
837
|
+
let n = parseInt(e.slice(r + 4, r + 6), 16), i = parseInt(e.slice(r + 7, r + 9), 16), o = parseInt(e.slice(r + 10, r + 12), 16);
|
|
838
|
+
if ((n & 192) == 128 && (i & 192) == 128 && (o & 192) == 128) {
|
|
839
|
+
let e = a << 18 & 1835008 | n << 12 & 258048 | i << 6 & 4032 | o & 63;
|
|
840
|
+
e < 65536 || e > 1114111 ? t += "����" : (e -= 65536, t += String.fromCharCode(55296 + (e >> 10), 56320 + (e & 1023))), r += 9;
|
|
841
|
+
continue;
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
t += "�";
|
|
845
|
+
}
|
|
846
|
+
return t;
|
|
847
|
+
});
|
|
848
|
+
}
|
|
849
|
+
jt.defaultChars = ";/?:@&=+$,#", jt.componentChars = "";
|
|
850
|
+
//#endregion
|
|
851
|
+
//#region ../../node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.mjs
|
|
852
|
+
var Mt = {};
|
|
853
|
+
function Nt(e) {
|
|
854
|
+
let t = Mt[e];
|
|
855
|
+
if (t) return t;
|
|
856
|
+
t = Mt[e] = [];
|
|
857
|
+
for (let e = 0; e < 128; e++) {
|
|
858
|
+
let n = String.fromCharCode(e);
|
|
859
|
+
/^[0-9a-z]$/i.test(n) ? t.push(n) : t.push("%" + ("0" + e.toString(16).toUpperCase()).slice(-2));
|
|
860
|
+
}
|
|
861
|
+
for (let n = 0; n < e.length; n++) t[e.charCodeAt(n)] = e[n];
|
|
862
|
+
return t;
|
|
863
|
+
}
|
|
864
|
+
function Pt(e, t, n) {
|
|
865
|
+
typeof t != "string" && (n = t, t = Pt.defaultChars), n === void 0 && (n = !0);
|
|
866
|
+
let r = Nt(t), i = "";
|
|
867
|
+
for (let t = 0, a = e.length; t < a; t++) {
|
|
868
|
+
let o = e.charCodeAt(t);
|
|
869
|
+
if (n && o === 37 && t + 2 < a && /^[0-9a-f]{2}$/i.test(e.slice(t + 1, t + 3))) {
|
|
870
|
+
i += e.slice(t, t + 3), t += 2;
|
|
871
|
+
continue;
|
|
872
|
+
}
|
|
873
|
+
if (o < 128) {
|
|
874
|
+
i += r[o];
|
|
875
|
+
continue;
|
|
876
|
+
}
|
|
877
|
+
if (o >= 55296 && o <= 57343) {
|
|
878
|
+
if (o >= 55296 && o <= 56319 && t + 1 < a) {
|
|
879
|
+
let n = e.charCodeAt(t + 1);
|
|
880
|
+
if (n >= 56320 && n <= 57343) {
|
|
881
|
+
i += encodeURIComponent(e[t] + e[t + 1]), t++;
|
|
882
|
+
continue;
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
i += "%EF%BF%BD";
|
|
886
|
+
continue;
|
|
887
|
+
}
|
|
888
|
+
i += encodeURIComponent(e[t]);
|
|
889
|
+
}
|
|
890
|
+
return i;
|
|
891
|
+
}
|
|
892
|
+
Pt.defaultChars = ";/?:@&=+$,-_.!~*'()#", Pt.componentChars = "-_.!~*'()";
|
|
893
|
+
//#endregion
|
|
894
|
+
//#region ../../node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.mjs
|
|
895
|
+
function Ft(e) {
|
|
896
|
+
let t = "";
|
|
897
|
+
return t += e.protocol || "", t += e.slashes ? "//" : "", t += e.auth ? e.auth + "@" : "", e.hostname && e.hostname.indexOf(":") !== -1 ? t += "[" + e.hostname + "]" : t += e.hostname || "", t += e.port ? ":" + e.port : "", t += e.pathname || "", t += e.search || "", t += e.hash || "", t;
|
|
898
|
+
}
|
|
899
|
+
//#endregion
|
|
900
|
+
//#region ../../node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.mjs
|
|
901
|
+
function It() {
|
|
902
|
+
this.protocol = null, this.slashes = null, this.auth = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.pathname = null;
|
|
903
|
+
}
|
|
904
|
+
var Lt = /^([a-z0-9.+-]+:)/i, Rt = /:[0-9]*$/, zt = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, Bt = [
|
|
905
|
+
"%",
|
|
906
|
+
"/",
|
|
907
|
+
"?",
|
|
908
|
+
";",
|
|
909
|
+
"#",
|
|
910
|
+
"'",
|
|
911
|
+
"{",
|
|
912
|
+
"}",
|
|
913
|
+
"|",
|
|
914
|
+
"\\",
|
|
915
|
+
"^",
|
|
916
|
+
"`",
|
|
917
|
+
"<",
|
|
918
|
+
">",
|
|
919
|
+
"\"",
|
|
920
|
+
"`",
|
|
921
|
+
" ",
|
|
922
|
+
"\r",
|
|
923
|
+
"\n",
|
|
924
|
+
" "
|
|
925
|
+
], Vt = [
|
|
926
|
+
"/",
|
|
927
|
+
"?",
|
|
928
|
+
"#"
|
|
929
|
+
], Ht = 255, Ut = /^[+a-z0-9A-Z_-]{0,63}$/, Wt = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, Gt = {
|
|
930
|
+
javascript: !0,
|
|
931
|
+
"javascript:": !0
|
|
932
|
+
}, Kt = {
|
|
933
|
+
http: !0,
|
|
934
|
+
https: !0,
|
|
935
|
+
ftp: !0,
|
|
936
|
+
gopher: !0,
|
|
937
|
+
file: !0,
|
|
938
|
+
"http:": !0,
|
|
939
|
+
"https:": !0,
|
|
940
|
+
"ftp:": !0,
|
|
941
|
+
"gopher:": !0,
|
|
942
|
+
"file:": !0
|
|
943
|
+
};
|
|
944
|
+
function qt(e, t) {
|
|
945
|
+
if (e && e instanceof It) return e;
|
|
946
|
+
let n = new It();
|
|
947
|
+
return n.parse(e, t), n;
|
|
948
|
+
}
|
|
949
|
+
It.prototype.parse = function(e, t) {
|
|
950
|
+
let n, r, i, a = e;
|
|
951
|
+
if (a = a.trim(), !t && e.split("#").length === 1) {
|
|
952
|
+
let e = zt.exec(a);
|
|
953
|
+
if (e) return this.pathname = e[1], e[2] && (this.search = e[2]), this;
|
|
954
|
+
}
|
|
955
|
+
let o = Lt.exec(a);
|
|
956
|
+
if (o && (o = o[0], n = o.toLowerCase(), this.protocol = o, a = a.substr(o.length)), (t || o || a.match(/^\/\/[^@\/]+@[^@\/]+/)) && (i = a.substr(0, 2) === "//", i && !(o && Gt[o]) && (a = a.substr(2), this.slashes = !0)), !Gt[o] && (i || o && !Kt[o])) {
|
|
957
|
+
let e = -1;
|
|
958
|
+
for (let t = 0; t < Vt.length; t++) r = a.indexOf(Vt[t]), r !== -1 && (e === -1 || r < e) && (e = r);
|
|
959
|
+
let t, n;
|
|
960
|
+
n = e === -1 ? a.lastIndexOf("@") : a.lastIndexOf("@", e), n !== -1 && (t = a.slice(0, n), a = a.slice(n + 1), this.auth = t), e = -1;
|
|
961
|
+
for (let t = 0; t < Bt.length; t++) r = a.indexOf(Bt[t]), r !== -1 && (e === -1 || r < e) && (e = r);
|
|
962
|
+
e === -1 && (e = a.length), a[e - 1] === ":" && e--;
|
|
963
|
+
let i = a.slice(0, e);
|
|
964
|
+
a = a.slice(e), this.parseHost(i), this.hostname = this.hostname || "";
|
|
965
|
+
let o = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
|
|
966
|
+
if (!o) {
|
|
967
|
+
let e = this.hostname.split(/\./);
|
|
968
|
+
for (let t = 0, n = e.length; t < n; t++) {
|
|
969
|
+
let n = e[t];
|
|
970
|
+
if (n && !n.match(Ut)) {
|
|
971
|
+
let r = "";
|
|
972
|
+
for (let e = 0, t = n.length; e < t; e++) n.charCodeAt(e) > 127 ? r += "x" : r += n[e];
|
|
973
|
+
if (!r.match(Ut)) {
|
|
974
|
+
let r = e.slice(0, t), i = e.slice(t + 1), o = n.match(Wt);
|
|
975
|
+
o && (r.push(o[1]), i.unshift(o[2])), i.length && (a = i.join(".") + a), this.hostname = r.join(".");
|
|
976
|
+
break;
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
this.hostname.length > Ht && (this.hostname = ""), o && (this.hostname = this.hostname.substr(1, this.hostname.length - 2));
|
|
982
|
+
}
|
|
983
|
+
let s = a.indexOf("#");
|
|
984
|
+
s !== -1 && (this.hash = a.substr(s), a = a.slice(0, s));
|
|
985
|
+
let c = a.indexOf("?");
|
|
986
|
+
return c !== -1 && (this.search = a.substr(c), a = a.slice(0, c)), a && (this.pathname = a), Kt[n] && this.hostname && !this.pathname && (this.pathname = ""), this;
|
|
987
|
+
}, It.prototype.parseHost = function(e) {
|
|
988
|
+
let t = Rt.exec(e);
|
|
989
|
+
t && (t = t[0], t !== ":" && (this.port = t.substr(1)), e = e.substr(0, e.length - t.length)), e && (this.hostname = e);
|
|
990
|
+
};
|
|
991
|
+
//#endregion
|
|
992
|
+
//#region ../../node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.mjs
|
|
993
|
+
var Jt = /* @__PURE__ */ Fe({
|
|
994
|
+
decode: () => jt,
|
|
995
|
+
encode: () => Pt,
|
|
996
|
+
format: () => Ft,
|
|
997
|
+
parse: () => qt
|
|
998
|
+
}), Yt = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Xt = /[\0-\x1F\x7F-\x9F]/, Zt = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/, Qt = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/, $t = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/, en = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, tn = /* @__PURE__ */ Fe({
|
|
999
|
+
Any: () => Yt,
|
|
1000
|
+
Cc: () => Xt,
|
|
1001
|
+
Cf: () => Zt,
|
|
1002
|
+
P: () => Qt,
|
|
1003
|
+
S: () => $t,
|
|
1004
|
+
Z: () => en
|
|
1005
|
+
}), nn = new Uint16Array("ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻\"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xA0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌".split("").map((e) => e.charCodeAt(0))), rn = new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((e) => e.charCodeAt(0))), an = /* @__PURE__ */ new Map([
|
|
1006
|
+
[0, 65533],
|
|
1007
|
+
[128, 8364],
|
|
1008
|
+
[130, 8218],
|
|
1009
|
+
[131, 402],
|
|
1010
|
+
[132, 8222],
|
|
1011
|
+
[133, 8230],
|
|
1012
|
+
[134, 8224],
|
|
1013
|
+
[135, 8225],
|
|
1014
|
+
[136, 710],
|
|
1015
|
+
[137, 8240],
|
|
1016
|
+
[138, 352],
|
|
1017
|
+
[139, 8249],
|
|
1018
|
+
[140, 338],
|
|
1019
|
+
[142, 381],
|
|
1020
|
+
[145, 8216],
|
|
1021
|
+
[146, 8217],
|
|
1022
|
+
[147, 8220],
|
|
1023
|
+
[148, 8221],
|
|
1024
|
+
[149, 8226],
|
|
1025
|
+
[150, 8211],
|
|
1026
|
+
[151, 8212],
|
|
1027
|
+
[152, 732],
|
|
1028
|
+
[153, 8482],
|
|
1029
|
+
[154, 353],
|
|
1030
|
+
[155, 8250],
|
|
1031
|
+
[156, 339],
|
|
1032
|
+
[158, 382],
|
|
1033
|
+
[159, 376]
|
|
1034
|
+
]), on = String.fromCodePoint ?? function(e) {
|
|
1035
|
+
let t = "";
|
|
1036
|
+
return e > 65535 && (e -= 65536, t += String.fromCharCode(e >>> 10 & 1023 | 55296), e = 56320 | e & 1023), t += String.fromCharCode(e), t;
|
|
1037
|
+
};
|
|
1038
|
+
function sn(e) {
|
|
1039
|
+
return e >= 55296 && e <= 57343 || e > 1114111 ? 65533 : an.get(e) ?? e;
|
|
1040
|
+
}
|
|
1041
|
+
//#endregion
|
|
1042
|
+
//#region ../../node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.js
|
|
1043
|
+
var I;
|
|
1044
|
+
(function(e) {
|
|
1045
|
+
e[e.NUM = 35] = "NUM", e[e.SEMI = 59] = "SEMI", e[e.EQUALS = 61] = "EQUALS", e[e.ZERO = 48] = "ZERO", e[e.NINE = 57] = "NINE", e[e.LOWER_A = 97] = "LOWER_A", e[e.LOWER_F = 102] = "LOWER_F", e[e.LOWER_X = 120] = "LOWER_X", e[e.LOWER_Z = 122] = "LOWER_Z", e[e.UPPER_A = 65] = "UPPER_A", e[e.UPPER_F = 70] = "UPPER_F", e[e.UPPER_Z = 90] = "UPPER_Z";
|
|
1046
|
+
})(I ||= {});
|
|
1047
|
+
var cn = 32, L;
|
|
1048
|
+
(function(e) {
|
|
1049
|
+
e[e.VALUE_LENGTH = 49152] = "VALUE_LENGTH", e[e.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", e[e.JUMP_TABLE = 127] = "JUMP_TABLE";
|
|
1050
|
+
})(L ||= {});
|
|
1051
|
+
function ln(e) {
|
|
1052
|
+
return e >= I.ZERO && e <= I.NINE;
|
|
1053
|
+
}
|
|
1054
|
+
function un(e) {
|
|
1055
|
+
return e >= I.UPPER_A && e <= I.UPPER_F || e >= I.LOWER_A && e <= I.LOWER_F;
|
|
1056
|
+
}
|
|
1057
|
+
function dn(e) {
|
|
1058
|
+
return e >= I.UPPER_A && e <= I.UPPER_Z || e >= I.LOWER_A && e <= I.LOWER_Z || ln(e);
|
|
1059
|
+
}
|
|
1060
|
+
function fn(e) {
|
|
1061
|
+
return e === I.EQUALS || dn(e);
|
|
1062
|
+
}
|
|
1063
|
+
var R;
|
|
1064
|
+
(function(e) {
|
|
1065
|
+
e[e.EntityStart = 0] = "EntityStart", e[e.NumericStart = 1] = "NumericStart", e[e.NumericDecimal = 2] = "NumericDecimal", e[e.NumericHex = 3] = "NumericHex", e[e.NamedEntity = 4] = "NamedEntity";
|
|
1066
|
+
})(R ||= {});
|
|
1067
|
+
var z;
|
|
1068
|
+
(function(e) {
|
|
1069
|
+
e[e.Legacy = 0] = "Legacy", e[e.Strict = 1] = "Strict", e[e.Attribute = 2] = "Attribute";
|
|
1070
|
+
})(z ||= {});
|
|
1071
|
+
var pn = class {
|
|
1072
|
+
constructor(e, t, n) {
|
|
1073
|
+
this.decodeTree = e, this.emitCodePoint = t, this.errors = n, this.state = R.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = z.Strict;
|
|
1074
|
+
}
|
|
1075
|
+
startEntity(e) {
|
|
1076
|
+
this.decodeMode = e, this.state = R.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
|
|
1077
|
+
}
|
|
1078
|
+
write(e, t) {
|
|
1079
|
+
switch (this.state) {
|
|
1080
|
+
case R.EntityStart: return e.charCodeAt(t) === I.NUM ? (this.state = R.NumericStart, this.consumed += 1, this.stateNumericStart(e, t + 1)) : (this.state = R.NamedEntity, this.stateNamedEntity(e, t));
|
|
1081
|
+
case R.NumericStart: return this.stateNumericStart(e, t);
|
|
1082
|
+
case R.NumericDecimal: return this.stateNumericDecimal(e, t);
|
|
1083
|
+
case R.NumericHex: return this.stateNumericHex(e, t);
|
|
1084
|
+
case R.NamedEntity: return this.stateNamedEntity(e, t);
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
stateNumericStart(e, t) {
|
|
1088
|
+
return t >= e.length ? -1 : (e.charCodeAt(t) | cn) === I.LOWER_X ? (this.state = R.NumericHex, this.consumed += 1, this.stateNumericHex(e, t + 1)) : (this.state = R.NumericDecimal, this.stateNumericDecimal(e, t));
|
|
1089
|
+
}
|
|
1090
|
+
addToNumericResult(e, t, n, r) {
|
|
1091
|
+
if (t !== n) {
|
|
1092
|
+
let i = n - t;
|
|
1093
|
+
this.result = this.result * r ** +i + parseInt(e.substr(t, i), r), this.consumed += i;
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
stateNumericHex(e, t) {
|
|
1097
|
+
let n = t;
|
|
1098
|
+
for (; t < e.length;) {
|
|
1099
|
+
let r = e.charCodeAt(t);
|
|
1100
|
+
if (ln(r) || un(r)) t += 1;
|
|
1101
|
+
else return this.addToNumericResult(e, n, t, 16), this.emitNumericEntity(r, 3);
|
|
1102
|
+
}
|
|
1103
|
+
return this.addToNumericResult(e, n, t, 16), -1;
|
|
1104
|
+
}
|
|
1105
|
+
stateNumericDecimal(e, t) {
|
|
1106
|
+
let n = t;
|
|
1107
|
+
for (; t < e.length;) {
|
|
1108
|
+
let r = e.charCodeAt(t);
|
|
1109
|
+
if (ln(r)) t += 1;
|
|
1110
|
+
else return this.addToNumericResult(e, n, t, 10), this.emitNumericEntity(r, 2);
|
|
1111
|
+
}
|
|
1112
|
+
return this.addToNumericResult(e, n, t, 10), -1;
|
|
1113
|
+
}
|
|
1114
|
+
emitNumericEntity(e, t) {
|
|
1115
|
+
var n;
|
|
1116
|
+
if (this.consumed <= t) return (n = this.errors) == null || n.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
1117
|
+
if (e === I.SEMI) this.consumed += 1;
|
|
1118
|
+
else if (this.decodeMode === z.Strict) return 0;
|
|
1119
|
+
return this.emitCodePoint(sn(this.result), this.consumed), this.errors && (e !== I.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
|
|
1120
|
+
}
|
|
1121
|
+
stateNamedEntity(e, t) {
|
|
1122
|
+
let { decodeTree: n } = this, r = n[this.treeIndex], i = (r & L.VALUE_LENGTH) >> 14;
|
|
1123
|
+
for (; t < e.length; t++, this.excess++) {
|
|
1124
|
+
let a = e.charCodeAt(t);
|
|
1125
|
+
if (this.treeIndex = hn(n, r, this.treeIndex + Math.max(1, i), a), this.treeIndex < 0) return this.result === 0 || this.decodeMode === z.Attribute && (i === 0 || fn(a)) ? 0 : this.emitNotTerminatedNamedEntity();
|
|
1126
|
+
if (r = n[this.treeIndex], i = (r & L.VALUE_LENGTH) >> 14, i !== 0) {
|
|
1127
|
+
if (a === I.SEMI) return this.emitNamedEntityData(this.treeIndex, i, this.consumed + this.excess);
|
|
1128
|
+
this.decodeMode !== z.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
return -1;
|
|
1132
|
+
}
|
|
1133
|
+
emitNotTerminatedNamedEntity() {
|
|
1134
|
+
var e;
|
|
1135
|
+
let { result: t, decodeTree: n } = this, r = (n[t] & L.VALUE_LENGTH) >> 14;
|
|
1136
|
+
return this.emitNamedEntityData(t, r, this.consumed), (e = this.errors) == null || e.missingSemicolonAfterCharacterReference(), this.consumed;
|
|
1137
|
+
}
|
|
1138
|
+
emitNamedEntityData(e, t, n) {
|
|
1139
|
+
let { decodeTree: r } = this;
|
|
1140
|
+
return this.emitCodePoint(t === 1 ? r[e] & ~L.VALUE_LENGTH : r[e + 1], n), t === 3 && this.emitCodePoint(r[e + 2], n), n;
|
|
1141
|
+
}
|
|
1142
|
+
end() {
|
|
1143
|
+
var e;
|
|
1144
|
+
switch (this.state) {
|
|
1145
|
+
case R.NamedEntity: return this.result !== 0 && (this.decodeMode !== z.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
|
|
1146
|
+
case R.NumericDecimal: return this.emitNumericEntity(0, 2);
|
|
1147
|
+
case R.NumericHex: return this.emitNumericEntity(0, 3);
|
|
1148
|
+
case R.NumericStart: return (e = this.errors) == null || e.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
1149
|
+
case R.EntityStart: return 0;
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
};
|
|
1153
|
+
function mn(e) {
|
|
1154
|
+
let t = "", n = new pn(e, (e) => t += on(e));
|
|
1155
|
+
return function(e, r) {
|
|
1156
|
+
let i = 0, a = 0;
|
|
1157
|
+
for (; (a = e.indexOf("&", a)) >= 0;) {
|
|
1158
|
+
t += e.slice(i, a), n.startEntity(r);
|
|
1159
|
+
let o = n.write(e, a + 1);
|
|
1160
|
+
if (o < 0) {
|
|
1161
|
+
i = a + n.end();
|
|
1162
|
+
break;
|
|
1163
|
+
}
|
|
1164
|
+
i = a + o, a = o === 0 ? i + 1 : i;
|
|
1165
|
+
}
|
|
1166
|
+
let o = t + e.slice(i);
|
|
1167
|
+
return t = "", o;
|
|
1168
|
+
};
|
|
1169
|
+
}
|
|
1170
|
+
function hn(e, t, n, r) {
|
|
1171
|
+
let i = (t & L.BRANCH_LENGTH) >> 7, a = t & L.JUMP_TABLE;
|
|
1172
|
+
if (i === 0) return a !== 0 && r === a ? n : -1;
|
|
1173
|
+
if (a) {
|
|
1174
|
+
let t = r - a;
|
|
1175
|
+
return t < 0 || t >= i ? -1 : e[n + t] - 1;
|
|
1176
|
+
}
|
|
1177
|
+
let o = n, s = o + i - 1;
|
|
1178
|
+
for (; o <= s;) {
|
|
1179
|
+
let t = o + s >>> 1, n = e[t];
|
|
1180
|
+
if (n < r) o = t + 1;
|
|
1181
|
+
else if (n > r) s = t - 1;
|
|
1182
|
+
else return e[t + i];
|
|
1183
|
+
}
|
|
1184
|
+
return -1;
|
|
1185
|
+
}
|
|
1186
|
+
var gn = mn(nn);
|
|
1187
|
+
mn(rn);
|
|
1188
|
+
function _n(e, t = z.Legacy) {
|
|
1189
|
+
return gn(e, t);
|
|
1190
|
+
}
|
|
1191
|
+
function vn(e) {
|
|
1192
|
+
return gn(e, z.Strict);
|
|
1193
|
+
}
|
|
1194
|
+
//#endregion
|
|
1195
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/common/utils.mjs
|
|
1196
|
+
var yn = /* @__PURE__ */ Fe({
|
|
1197
|
+
arrayReplaceAt: () => Tn,
|
|
1198
|
+
asciiTrim: () => Kn,
|
|
1199
|
+
assign: () => wn,
|
|
1200
|
+
escapeHtml: () => B,
|
|
1201
|
+
escapeRE: () => zn,
|
|
1202
|
+
fromCodePoint: () => Dn,
|
|
1203
|
+
has: () => Cn,
|
|
1204
|
+
isMdAsciiPunct: () => Un,
|
|
1205
|
+
isPunctChar: () => Vn,
|
|
1206
|
+
isPunctCharCode: () => Hn,
|
|
1207
|
+
isSpace: () => V,
|
|
1208
|
+
isString: () => xn,
|
|
1209
|
+
isValidEntityCode: () => En,
|
|
1210
|
+
isWhiteSpace: () => Bn,
|
|
1211
|
+
lib: () => qn,
|
|
1212
|
+
normalizeReference: () => Wn,
|
|
1213
|
+
unescapeAll: () => Nn,
|
|
1214
|
+
unescapeMd: () => Mn
|
|
1215
|
+
});
|
|
1216
|
+
function bn(e) {
|
|
1217
|
+
return Object.prototype.toString.call(e);
|
|
1218
|
+
}
|
|
1219
|
+
function xn(e) {
|
|
1220
|
+
return bn(e) === "[object String]";
|
|
1221
|
+
}
|
|
1222
|
+
var Sn = Object.prototype.hasOwnProperty;
|
|
1223
|
+
function Cn(e, t) {
|
|
1224
|
+
return Sn.call(e, t);
|
|
1225
|
+
}
|
|
1226
|
+
function wn(e) {
|
|
1227
|
+
return Array.prototype.slice.call(arguments, 1).forEach(function(t) {
|
|
1228
|
+
if (t) {
|
|
1229
|
+
if (typeof t != "object") throw TypeError(t + "must be object");
|
|
1230
|
+
Object.keys(t).forEach(function(n) {
|
|
1231
|
+
e[n] = t[n];
|
|
1232
|
+
});
|
|
1233
|
+
}
|
|
1234
|
+
}), e;
|
|
1235
|
+
}
|
|
1236
|
+
function Tn(e, t, n) {
|
|
1237
|
+
return [].concat(e.slice(0, t), n, e.slice(t + 1));
|
|
1238
|
+
}
|
|
1239
|
+
function En(e) {
|
|
1240
|
+
return !(e >= 55296 && e <= 57343 || e >= 64976 && e <= 65007 || (e & 65535) == 65535 || (e & 65535) == 65534 || e >= 0 && e <= 8 || e === 11 || e >= 14 && e <= 31 || e >= 127 && e <= 159 || e > 1114111);
|
|
1241
|
+
}
|
|
1242
|
+
function Dn(e) {
|
|
1243
|
+
if (e > 65535) {
|
|
1244
|
+
e -= 65536;
|
|
1245
|
+
let t = 55296 + (e >> 10), n = 56320 + (e & 1023);
|
|
1246
|
+
return String.fromCharCode(t, n);
|
|
1247
|
+
}
|
|
1248
|
+
return String.fromCharCode(e);
|
|
1249
|
+
}
|
|
1250
|
+
var On = /\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g, kn = RegExp(On.source + "|&([a-z#][a-z0-9]{1,31});", "gi"), An = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;
|
|
1251
|
+
function jn(e, t) {
|
|
1252
|
+
if (t.charCodeAt(0) === 35 && An.test(t)) {
|
|
1253
|
+
let n = t[1].toLowerCase() === "x" ? parseInt(t.slice(2), 16) : parseInt(t.slice(1), 10);
|
|
1254
|
+
return En(n) ? Dn(n) : e;
|
|
1255
|
+
}
|
|
1256
|
+
let n = _n(e);
|
|
1257
|
+
return n === e ? e : n;
|
|
1258
|
+
}
|
|
1259
|
+
function Mn(e) {
|
|
1260
|
+
return e.indexOf("\\") < 0 ? e : e.replace(On, "$1");
|
|
1261
|
+
}
|
|
1262
|
+
function Nn(e) {
|
|
1263
|
+
return e.indexOf("\\") < 0 && e.indexOf("&") < 0 ? e : e.replace(kn, function(e, t, n) {
|
|
1264
|
+
return t || jn(e, n);
|
|
1265
|
+
});
|
|
1266
|
+
}
|
|
1267
|
+
var Pn = /[&<>"]/, Fn = /[&<>"]/g, In = {
|
|
1268
|
+
"&": "&",
|
|
1269
|
+
"<": "<",
|
|
1270
|
+
">": ">",
|
|
1271
|
+
"\"": """
|
|
1272
|
+
};
|
|
1273
|
+
function Ln(e) {
|
|
1274
|
+
return In[e];
|
|
1275
|
+
}
|
|
1276
|
+
function B(e) {
|
|
1277
|
+
return Pn.test(e) ? e.replace(Fn, Ln) : e;
|
|
1278
|
+
}
|
|
1279
|
+
var Rn = /[.?*+^$[\]\\(){}|-]/g;
|
|
1280
|
+
function zn(e) {
|
|
1281
|
+
return e.replace(Rn, "\\$&");
|
|
1282
|
+
}
|
|
1283
|
+
function V(e) {
|
|
1284
|
+
switch (e) {
|
|
1285
|
+
case 9:
|
|
1286
|
+
case 32: return !0;
|
|
1287
|
+
}
|
|
1288
|
+
return !1;
|
|
1289
|
+
}
|
|
1290
|
+
function Bn(e) {
|
|
1291
|
+
if (e >= 8192 && e <= 8202) return !0;
|
|
1292
|
+
switch (e) {
|
|
1293
|
+
case 9:
|
|
1294
|
+
case 10:
|
|
1295
|
+
case 11:
|
|
1296
|
+
case 12:
|
|
1297
|
+
case 13:
|
|
1298
|
+
case 32:
|
|
1299
|
+
case 160:
|
|
1300
|
+
case 5760:
|
|
1301
|
+
case 8239:
|
|
1302
|
+
case 8287:
|
|
1303
|
+
case 12288: return !0;
|
|
1304
|
+
}
|
|
1305
|
+
return !1;
|
|
1306
|
+
}
|
|
1307
|
+
function Vn(e) {
|
|
1308
|
+
return Qt.test(e) || $t.test(e);
|
|
1309
|
+
}
|
|
1310
|
+
function Hn(e) {
|
|
1311
|
+
return Vn(Dn(e));
|
|
1312
|
+
}
|
|
1313
|
+
function Un(e) {
|
|
1314
|
+
switch (e) {
|
|
1315
|
+
case 33:
|
|
1316
|
+
case 34:
|
|
1317
|
+
case 35:
|
|
1318
|
+
case 36:
|
|
1319
|
+
case 37:
|
|
1320
|
+
case 38:
|
|
1321
|
+
case 39:
|
|
1322
|
+
case 40:
|
|
1323
|
+
case 41:
|
|
1324
|
+
case 42:
|
|
1325
|
+
case 43:
|
|
1326
|
+
case 44:
|
|
1327
|
+
case 45:
|
|
1328
|
+
case 46:
|
|
1329
|
+
case 47:
|
|
1330
|
+
case 58:
|
|
1331
|
+
case 59:
|
|
1332
|
+
case 60:
|
|
1333
|
+
case 61:
|
|
1334
|
+
case 62:
|
|
1335
|
+
case 63:
|
|
1336
|
+
case 64:
|
|
1337
|
+
case 91:
|
|
1338
|
+
case 92:
|
|
1339
|
+
case 93:
|
|
1340
|
+
case 94:
|
|
1341
|
+
case 95:
|
|
1342
|
+
case 96:
|
|
1343
|
+
case 123:
|
|
1344
|
+
case 124:
|
|
1345
|
+
case 125:
|
|
1346
|
+
case 126: return !0;
|
|
1347
|
+
default: return !1;
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
function Wn(e) {
|
|
1351
|
+
return e = e.trim().replace(/\s+/g, " "), e.toLowerCase().toUpperCase();
|
|
1352
|
+
}
|
|
1353
|
+
function Gn(e) {
|
|
1354
|
+
return e === 32 || e === 9 || e === 10 || e === 13;
|
|
1355
|
+
}
|
|
1356
|
+
function Kn(e) {
|
|
1357
|
+
let t = 0;
|
|
1358
|
+
for (; t < e.length && Gn(e.charCodeAt(t)); t++);
|
|
1359
|
+
let n = e.length - 1;
|
|
1360
|
+
for (; n >= t && Gn(e.charCodeAt(n)); n--);
|
|
1361
|
+
return e.slice(t, n + 1);
|
|
1362
|
+
}
|
|
1363
|
+
var qn = {
|
|
1364
|
+
mdurl: Jt,
|
|
1365
|
+
ucmicro: tn
|
|
1366
|
+
};
|
|
1367
|
+
//#endregion
|
|
1368
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/helpers/parse_link_label.mjs
|
|
1369
|
+
function Jn(e, t, n) {
|
|
1370
|
+
let r, i, a, o, s = e.posMax, c = e.pos;
|
|
1371
|
+
for (e.pos = t + 1, r = 1; e.pos < s;) {
|
|
1372
|
+
if (a = e.src.charCodeAt(e.pos), a === 93 && (r--, r === 0)) {
|
|
1373
|
+
i = !0;
|
|
1374
|
+
break;
|
|
1375
|
+
}
|
|
1376
|
+
if (o = e.pos, e.md.inline.skipToken(e), a === 91) {
|
|
1377
|
+
if (o === e.pos - 1) r++;
|
|
1378
|
+
else if (n) return e.pos = c, -1;
|
|
1379
|
+
}
|
|
1380
|
+
}
|
|
1381
|
+
let l = -1;
|
|
1382
|
+
return i && (l = e.pos), e.pos = c, l;
|
|
1383
|
+
}
|
|
1384
|
+
//#endregion
|
|
1385
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs
|
|
1386
|
+
function Yn(e, t, n) {
|
|
1387
|
+
let r, i = t, a = {
|
|
1388
|
+
ok: !1,
|
|
1389
|
+
pos: 0,
|
|
1390
|
+
str: ""
|
|
1391
|
+
};
|
|
1392
|
+
if (e.charCodeAt(i) === 60) {
|
|
1393
|
+
for (i++; i < n;) {
|
|
1394
|
+
if (r = e.charCodeAt(i), r === 10 || r === 60) return a;
|
|
1395
|
+
if (r === 62) return a.pos = i + 1, a.str = Nn(e.slice(t + 1, i)), a.ok = !0, a;
|
|
1396
|
+
if (r === 92 && i + 1 < n) {
|
|
1397
|
+
i += 2;
|
|
1398
|
+
continue;
|
|
1399
|
+
}
|
|
1400
|
+
i++;
|
|
1401
|
+
}
|
|
1402
|
+
return a;
|
|
1403
|
+
}
|
|
1404
|
+
let o = 0;
|
|
1405
|
+
for (; i < n && (r = e.charCodeAt(i), !(r === 32 || r < 32 || r === 127));) {
|
|
1406
|
+
if (r === 92 && i + 1 < n) {
|
|
1407
|
+
if (e.charCodeAt(i + 1) === 32) break;
|
|
1408
|
+
i += 2;
|
|
1409
|
+
continue;
|
|
1410
|
+
}
|
|
1411
|
+
if (r === 40 && (o++, o > 32)) return a;
|
|
1412
|
+
if (r === 41) {
|
|
1413
|
+
if (o === 0) break;
|
|
1414
|
+
o--;
|
|
1415
|
+
}
|
|
1416
|
+
i++;
|
|
1417
|
+
}
|
|
1418
|
+
return t === i || o !== 0 ? a : (a.str = Nn(e.slice(t, i)), a.pos = i, a.ok = !0, a);
|
|
1419
|
+
}
|
|
1420
|
+
//#endregion
|
|
1421
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/helpers/parse_link_title.mjs
|
|
1422
|
+
function Xn(e, t, n, r) {
|
|
1423
|
+
let i, a = t, o = {
|
|
1424
|
+
ok: !1,
|
|
1425
|
+
can_continue: !1,
|
|
1426
|
+
pos: 0,
|
|
1427
|
+
str: "",
|
|
1428
|
+
marker: 0
|
|
1429
|
+
};
|
|
1430
|
+
if (r) o.str = r.str, o.marker = r.marker;
|
|
1431
|
+
else {
|
|
1432
|
+
if (a >= n) return o;
|
|
1433
|
+
let r = e.charCodeAt(a);
|
|
1434
|
+
if (r !== 34 && r !== 39 && r !== 40) return o;
|
|
1435
|
+
t++, a++, r === 40 && (r = 41), o.marker = r;
|
|
1436
|
+
}
|
|
1437
|
+
for (; a < n;) {
|
|
1438
|
+
if (i = e.charCodeAt(a), i === o.marker) return o.pos = a + 1, o.str += Nn(e.slice(t, a)), o.ok = !0, o;
|
|
1439
|
+
if (i === 40 && o.marker === 41) return o;
|
|
1440
|
+
i === 92 && a + 1 < n && a++, a++;
|
|
1441
|
+
}
|
|
1442
|
+
return o.can_continue = !0, o.str += Nn(e.slice(t, a)), o;
|
|
1443
|
+
}
|
|
1444
|
+
//#endregion
|
|
1445
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/helpers/index.mjs
|
|
1446
|
+
var Zn = /* @__PURE__ */ Fe({
|
|
1447
|
+
parseLinkDestination: () => Yn,
|
|
1448
|
+
parseLinkLabel: () => Jn,
|
|
1449
|
+
parseLinkTitle: () => Xn
|
|
1450
|
+
}), H = {};
|
|
1451
|
+
H.code_inline = function(e, t, n, r, i) {
|
|
1452
|
+
let a = e[t];
|
|
1453
|
+
return "<code" + i.renderAttrs(a) + ">" + B(a.content) + "</code>";
|
|
1454
|
+
}, H.code_block = function(e, t, n, r, i) {
|
|
1455
|
+
let a = e[t];
|
|
1456
|
+
return "<pre" + i.renderAttrs(a) + "><code>" + B(e[t].content) + "</code></pre>\n";
|
|
1457
|
+
}, H.fence = function(e, t, n, r, i) {
|
|
1458
|
+
let a = e[t], o = a.info ? Nn(a.info).trim() : "", s = "", c = "";
|
|
1459
|
+
if (o) {
|
|
1460
|
+
let e = o.split(/(\s+)/g);
|
|
1461
|
+
s = e[0], c = e.slice(2).join("");
|
|
1462
|
+
}
|
|
1463
|
+
let l;
|
|
1464
|
+
if (l = n.highlight && n.highlight(a.content, s, c) || B(a.content), l.indexOf("<pre") === 0) return l + "\n";
|
|
1465
|
+
if (o) {
|
|
1466
|
+
let e = a.attrIndex("class"), t = a.attrs ? a.attrs.slice() : [];
|
|
1467
|
+
e < 0 ? t.push(["class", n.langPrefix + s]) : (t[e] = t[e].slice(), t[e][1] += " " + n.langPrefix + s);
|
|
1468
|
+
let r = { attrs: t };
|
|
1469
|
+
return `<pre><code${i.renderAttrs(r)}>${l}</code></pre>\n`;
|
|
1470
|
+
}
|
|
1471
|
+
return `<pre><code${i.renderAttrs(a)}>${l}</code></pre>\n`;
|
|
1472
|
+
}, H.image = function(e, t, n, r, i) {
|
|
1473
|
+
let a = e[t];
|
|
1474
|
+
return a.attrs[a.attrIndex("alt")][1] = i.renderInlineAsText(a.children, n, r), i.renderToken(e, t, n);
|
|
1475
|
+
}, H.hardbreak = function(e, t, n) {
|
|
1476
|
+
return n.xhtmlOut ? "<br />\n" : "<br>\n";
|
|
1477
|
+
}, H.softbreak = function(e, t, n) {
|
|
1478
|
+
return n.breaks ? n.xhtmlOut ? "<br />\n" : "<br>\n" : "\n";
|
|
1479
|
+
}, H.text = function(e, t) {
|
|
1480
|
+
return B(e[t].content);
|
|
1481
|
+
}, H.html_block = function(e, t) {
|
|
1482
|
+
return e[t].content;
|
|
1483
|
+
}, H.html_inline = function(e, t) {
|
|
1484
|
+
return e[t].content;
|
|
1485
|
+
};
|
|
1486
|
+
function U() {
|
|
1487
|
+
this.rules = wn({}, H);
|
|
1488
|
+
}
|
|
1489
|
+
U.prototype.renderAttrs = function(e) {
|
|
1490
|
+
let t, n, r;
|
|
1491
|
+
if (!e.attrs) return "";
|
|
1492
|
+
for (r = "", t = 0, n = e.attrs.length; t < n; t++) r += " " + B(e.attrs[t][0]) + "=\"" + B(e.attrs[t][1]) + "\"";
|
|
1493
|
+
return r;
|
|
1494
|
+
}, U.prototype.renderToken = function(e, t, n) {
|
|
1495
|
+
let r = e[t], i = "";
|
|
1496
|
+
if (r.hidden) return "";
|
|
1497
|
+
r.block && r.nesting !== -1 && t && e[t - 1].hidden && (i += "\n"), i += (r.nesting === -1 ? "</" : "<") + r.tag, i += this.renderAttrs(r), r.nesting === 0 && n.xhtmlOut && (i += " /");
|
|
1498
|
+
let a = !1;
|
|
1499
|
+
if (r.block && (a = !0, r.nesting === 1 && t + 1 < e.length)) {
|
|
1500
|
+
let n = e[t + 1];
|
|
1501
|
+
(n.type === "inline" || n.hidden || n.nesting === -1 && n.tag === r.tag) && (a = !1);
|
|
1502
|
+
}
|
|
1503
|
+
return i += a ? ">\n" : ">", i;
|
|
1504
|
+
}, U.prototype.renderInline = function(e, t, n) {
|
|
1505
|
+
let r = "", i = this.rules;
|
|
1506
|
+
for (let a = 0, o = e.length; a < o; a++) {
|
|
1507
|
+
let o = e[a].type;
|
|
1508
|
+
i[o] === void 0 ? r += this.renderToken(e, a, t) : r += i[o](e, a, t, n, this);
|
|
1509
|
+
}
|
|
1510
|
+
return r;
|
|
1511
|
+
}, U.prototype.renderInlineAsText = function(e, t, n) {
|
|
1512
|
+
let r = "";
|
|
1513
|
+
for (let i = 0, a = e.length; i < a; i++) switch (e[i].type) {
|
|
1514
|
+
case "text":
|
|
1515
|
+
r += e[i].content;
|
|
1516
|
+
break;
|
|
1517
|
+
case "image":
|
|
1518
|
+
r += this.renderInlineAsText(e[i].children, t, n);
|
|
1519
|
+
break;
|
|
1520
|
+
case "html_inline":
|
|
1521
|
+
case "html_block":
|
|
1522
|
+
r += e[i].content;
|
|
1523
|
+
break;
|
|
1524
|
+
case "softbreak":
|
|
1525
|
+
case "hardbreak":
|
|
1526
|
+
r += "\n";
|
|
1527
|
+
break;
|
|
1528
|
+
default:
|
|
1529
|
+
}
|
|
1530
|
+
return r;
|
|
1531
|
+
}, U.prototype.render = function(e, t, n) {
|
|
1532
|
+
let r = "", i = this.rules;
|
|
1533
|
+
for (let a = 0, o = e.length; a < o; a++) {
|
|
1534
|
+
let o = e[a].type;
|
|
1535
|
+
o === "inline" ? r += this.renderInline(e[a].children, t, n) : i[o] === void 0 ? r += this.renderToken(e, a, t, n) : r += i[o](e, a, t, n, this);
|
|
1536
|
+
}
|
|
1537
|
+
return r;
|
|
1538
|
+
};
|
|
1539
|
+
//#endregion
|
|
1540
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/ruler.mjs
|
|
1541
|
+
function W() {
|
|
1542
|
+
this.__rules__ = [], this.__cache__ = null;
|
|
1543
|
+
}
|
|
1544
|
+
W.prototype.__find__ = function(e) {
|
|
1545
|
+
for (let t = 0; t < this.__rules__.length; t++) if (this.__rules__[t].name === e) return t;
|
|
1546
|
+
return -1;
|
|
1547
|
+
}, W.prototype.__compile__ = function() {
|
|
1548
|
+
let e = this, t = [""];
|
|
1549
|
+
e.__rules__.forEach(function(e) {
|
|
1550
|
+
e.enabled && e.alt.forEach(function(e) {
|
|
1551
|
+
t.indexOf(e) < 0 && t.push(e);
|
|
1552
|
+
});
|
|
1553
|
+
}), e.__cache__ = {}, t.forEach(function(t) {
|
|
1554
|
+
e.__cache__[t] = [], e.__rules__.forEach(function(n) {
|
|
1555
|
+
n.enabled && (t && n.alt.indexOf(t) < 0 || e.__cache__[t].push(n.fn));
|
|
1556
|
+
});
|
|
1557
|
+
});
|
|
1558
|
+
}, W.prototype.at = function(e, t, n) {
|
|
1559
|
+
let r = this.__find__(e), i = n || {};
|
|
1560
|
+
if (r === -1) throw Error("Parser rule not found: " + e);
|
|
1561
|
+
this.__rules__[r].fn = t, this.__rules__[r].alt = i.alt || [], this.__cache__ = null;
|
|
1562
|
+
}, W.prototype.before = function(e, t, n, r) {
|
|
1563
|
+
let i = this.__find__(e), a = r || {};
|
|
1564
|
+
if (i === -1) throw Error("Parser rule not found: " + e);
|
|
1565
|
+
this.__rules__.splice(i, 0, {
|
|
1566
|
+
name: t,
|
|
1567
|
+
enabled: !0,
|
|
1568
|
+
fn: n,
|
|
1569
|
+
alt: a.alt || []
|
|
1570
|
+
}), this.__cache__ = null;
|
|
1571
|
+
}, W.prototype.after = function(e, t, n, r) {
|
|
1572
|
+
let i = this.__find__(e), a = r || {};
|
|
1573
|
+
if (i === -1) throw Error("Parser rule not found: " + e);
|
|
1574
|
+
this.__rules__.splice(i + 1, 0, {
|
|
1575
|
+
name: t,
|
|
1576
|
+
enabled: !0,
|
|
1577
|
+
fn: n,
|
|
1578
|
+
alt: a.alt || []
|
|
1579
|
+
}), this.__cache__ = null;
|
|
1580
|
+
}, W.prototype.push = function(e, t, n) {
|
|
1581
|
+
let r = n || {};
|
|
1582
|
+
this.__rules__.push({
|
|
1583
|
+
name: e,
|
|
1584
|
+
enabled: !0,
|
|
1585
|
+
fn: t,
|
|
1586
|
+
alt: r.alt || []
|
|
1587
|
+
}), this.__cache__ = null;
|
|
1588
|
+
}, W.prototype.enable = function(e, t) {
|
|
1589
|
+
Array.isArray(e) || (e = [e]);
|
|
1590
|
+
let n = [];
|
|
1591
|
+
return e.forEach(function(e) {
|
|
1592
|
+
let r = this.__find__(e);
|
|
1593
|
+
if (r < 0) {
|
|
1594
|
+
if (t) return;
|
|
1595
|
+
throw Error("Rules manager: invalid rule name " + e);
|
|
1596
|
+
}
|
|
1597
|
+
this.__rules__[r].enabled = !0, n.push(e);
|
|
1598
|
+
}, this), this.__cache__ = null, n;
|
|
1599
|
+
}, W.prototype.enableOnly = function(e, t) {
|
|
1600
|
+
Array.isArray(e) || (e = [e]), this.__rules__.forEach(function(e) {
|
|
1601
|
+
e.enabled = !1;
|
|
1602
|
+
}), this.enable(e, t);
|
|
1603
|
+
}, W.prototype.disable = function(e, t) {
|
|
1604
|
+
Array.isArray(e) || (e = [e]);
|
|
1605
|
+
let n = [];
|
|
1606
|
+
return e.forEach(function(e) {
|
|
1607
|
+
let r = this.__find__(e);
|
|
1608
|
+
if (r < 0) {
|
|
1609
|
+
if (t) return;
|
|
1610
|
+
throw Error("Rules manager: invalid rule name " + e);
|
|
1611
|
+
}
|
|
1612
|
+
this.__rules__[r].enabled = !1, n.push(e);
|
|
1613
|
+
}, this), this.__cache__ = null, n;
|
|
1614
|
+
}, W.prototype.getRules = function(e) {
|
|
1615
|
+
return this.__cache__ === null && this.__compile__(), this.__cache__[e] || [];
|
|
1616
|
+
};
|
|
1617
|
+
//#endregion
|
|
1618
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/token.mjs
|
|
1619
|
+
function G(e, t, n) {
|
|
1620
|
+
this.type = e, this.tag = t, this.attrs = null, this.map = null, this.nesting = n, this.level = 0, this.children = null, this.content = "", this.markup = "", this.info = "", this.meta = null, this.block = !1, this.hidden = !1;
|
|
1621
|
+
}
|
|
1622
|
+
G.prototype.attrIndex = function(e) {
|
|
1623
|
+
if (!this.attrs) return -1;
|
|
1624
|
+
let t = this.attrs;
|
|
1625
|
+
for (let n = 0, r = t.length; n < r; n++) if (t[n][0] === e) return n;
|
|
1626
|
+
return -1;
|
|
1627
|
+
}, G.prototype.attrPush = function(e) {
|
|
1628
|
+
this.attrs ? this.attrs.push(e) : this.attrs = [e];
|
|
1629
|
+
}, G.prototype.attrSet = function(e, t) {
|
|
1630
|
+
let n = this.attrIndex(e), r = [e, t];
|
|
1631
|
+
n < 0 ? this.attrPush(r) : this.attrs[n] = r;
|
|
1632
|
+
}, G.prototype.attrGet = function(e) {
|
|
1633
|
+
let t = this.attrIndex(e), n = null;
|
|
1634
|
+
return t >= 0 && (n = this.attrs[t][1]), n;
|
|
1635
|
+
}, G.prototype.attrJoin = function(e, t) {
|
|
1636
|
+
let n = this.attrIndex(e);
|
|
1637
|
+
n < 0 ? this.attrPush([e, t]) : this.attrs[n][1] = this.attrs[n][1] + " " + t;
|
|
1638
|
+
};
|
|
1639
|
+
//#endregion
|
|
1640
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/rules_core/state_core.mjs
|
|
1641
|
+
function Qn(e, t, n) {
|
|
1642
|
+
this.src = e, this.env = n, this.tokens = [], this.inlineMode = !1, this.md = t;
|
|
1643
|
+
}
|
|
1644
|
+
Qn.prototype.Token = G;
|
|
1645
|
+
//#endregion
|
|
1646
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/rules_core/normalize.mjs
|
|
1647
|
+
var $n = /\r\n?|\n/g, er = /\0/g;
|
|
1648
|
+
function tr(e) {
|
|
1649
|
+
let t;
|
|
1650
|
+
t = e.src.replace($n, "\n"), t = t.replace(er, "�"), e.src = t;
|
|
1651
|
+
}
|
|
1652
|
+
//#endregion
|
|
1653
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/rules_core/block.mjs
|
|
1654
|
+
function nr(e) {
|
|
1655
|
+
let t;
|
|
1656
|
+
e.inlineMode ? (t = new e.Token("inline", "", 0), t.content = e.src, t.map = [0, 1], t.children = [], e.tokens.push(t)) : e.md.block.parse(e.src, e.md, e.env, e.tokens);
|
|
1657
|
+
}
|
|
1658
|
+
//#endregion
|
|
1659
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/rules_core/inline.mjs
|
|
1660
|
+
function rr(e) {
|
|
1661
|
+
let t = e.tokens;
|
|
1662
|
+
for (let n = 0, r = t.length; n < r; n++) {
|
|
1663
|
+
let r = t[n];
|
|
1664
|
+
r.type === "inline" && e.md.inline.parse(r.content, e.md, e.env, r.children);
|
|
1665
|
+
}
|
|
1666
|
+
}
|
|
1667
|
+
//#endregion
|
|
1668
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/rules_core/linkify.mjs
|
|
1669
|
+
function ir(e) {
|
|
1670
|
+
return /^<a[>\s]/i.test(e);
|
|
1671
|
+
}
|
|
1672
|
+
function ar(e) {
|
|
1673
|
+
return /^<\/a\s*>/i.test(e);
|
|
1674
|
+
}
|
|
1675
|
+
function or(e) {
|
|
1676
|
+
let t = e.tokens;
|
|
1677
|
+
if (e.md.options.linkify) for (let n = 0, r = t.length; n < r; n++) {
|
|
1678
|
+
if (t[n].type !== "inline" || !e.md.linkify.pretest(t[n].content)) continue;
|
|
1679
|
+
let r = t[n].children, i = 0;
|
|
1680
|
+
for (let a = r.length - 1; a >= 0; a--) {
|
|
1681
|
+
let o = r[a];
|
|
1682
|
+
if (o.type === "link_close") {
|
|
1683
|
+
for (a--; r[a].level !== o.level && r[a].type !== "link_open";) a--;
|
|
1684
|
+
continue;
|
|
1685
|
+
}
|
|
1686
|
+
if (o.type === "html_inline" && (ir(o.content) && i > 0 && i--, ar(o.content) && i++), !(i > 0) && o.type === "text" && e.md.linkify.test(o.content)) {
|
|
1687
|
+
let i = o.content, s = e.md.linkify.match(i), c = [], l = o.level, u = 0;
|
|
1688
|
+
s.length > 0 && s[0].index === 0 && a > 0 && r[a - 1].type === "text_special" && (s = s.slice(1));
|
|
1689
|
+
for (let t = 0; t < s.length; t++) {
|
|
1690
|
+
let n = s[t].url, r = e.md.normalizeLink(n);
|
|
1691
|
+
if (!e.md.validateLink(r)) continue;
|
|
1692
|
+
let a = s[t].text;
|
|
1693
|
+
a = s[t].schema ? s[t].schema === "mailto:" && !/^mailto:/i.test(a) ? e.md.normalizeLinkText("mailto:" + a).replace(/^mailto:/, "") : e.md.normalizeLinkText(a) : e.md.normalizeLinkText("http://" + a).replace(/^http:\/\//, "");
|
|
1694
|
+
let o = s[t].index;
|
|
1695
|
+
if (o > u) {
|
|
1696
|
+
let t = new e.Token("text", "", 0);
|
|
1697
|
+
t.content = i.slice(u, o), t.level = l, c.push(t);
|
|
1698
|
+
}
|
|
1699
|
+
let d = new e.Token("link_open", "a", 1);
|
|
1700
|
+
d.attrs = [["href", r]], d.level = l++, d.markup = "linkify", d.info = "auto", c.push(d);
|
|
1701
|
+
let f = new e.Token("text", "", 0);
|
|
1702
|
+
f.content = a, f.level = l, c.push(f);
|
|
1703
|
+
let p = new e.Token("link_close", "a", -1);
|
|
1704
|
+
p.level = --l, p.markup = "linkify", p.info = "auto", c.push(p), u = s[t].lastIndex;
|
|
1705
|
+
}
|
|
1706
|
+
if (u < i.length) {
|
|
1707
|
+
let t = new e.Token("text", "", 0);
|
|
1708
|
+
t.content = i.slice(u), t.level = l, c.push(t);
|
|
1709
|
+
}
|
|
1710
|
+
t[n].children = r = Tn(r, a, c);
|
|
1711
|
+
}
|
|
1712
|
+
}
|
|
1713
|
+
}
|
|
1714
|
+
}
|
|
1715
|
+
//#endregion
|
|
1716
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/rules_core/replacements.mjs
|
|
1717
|
+
var sr = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, cr = /\((c|tm|r)\)/i, lr = /\((c|tm|r)\)/gi, ur = {
|
|
1718
|
+
c: "©",
|
|
1719
|
+
r: "®",
|
|
1720
|
+
tm: "™"
|
|
1721
|
+
};
|
|
1722
|
+
function dr(e, t) {
|
|
1723
|
+
return ur[t.toLowerCase()];
|
|
1724
|
+
}
|
|
1725
|
+
function fr(e) {
|
|
1726
|
+
let t = 0;
|
|
1727
|
+
for (let n = e.length - 1; n >= 0; n--) {
|
|
1728
|
+
let r = e[n];
|
|
1729
|
+
r.type === "text" && !t && (r.content = r.content.replace(lr, dr)), r.type === "link_open" && r.info === "auto" && t--, r.type === "link_close" && r.info === "auto" && t++;
|
|
1730
|
+
}
|
|
1731
|
+
}
|
|
1732
|
+
function pr(e) {
|
|
1733
|
+
let t = 0;
|
|
1734
|
+
for (let n = e.length - 1; n >= 0; n--) {
|
|
1735
|
+
let r = e[n];
|
|
1736
|
+
r.type === "text" && !t && sr.test(r.content) && (r.content = r.content.replace(/\+-/g, "±").replace(/\.{2,}/g, "…").replace(/([?!])…/g, "$1..").replace(/([?!]){4,}/g, "$1$1$1").replace(/,{2,}/g, ",").replace(/(^|[^-])---(?=[^-]|$)/gm, "$1—").replace(/(^|\s)--(?=\s|$)/gm, "$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm, "$1–")), r.type === "link_open" && r.info === "auto" && t--, r.type === "link_close" && r.info === "auto" && t++;
|
|
1737
|
+
}
|
|
1738
|
+
}
|
|
1739
|
+
function mr(e) {
|
|
1740
|
+
let t;
|
|
1741
|
+
if (e.md.options.typographer) for (t = e.tokens.length - 1; t >= 0; t--) e.tokens[t].type === "inline" && (cr.test(e.tokens[t].content) && fr(e.tokens[t].children), sr.test(e.tokens[t].content) && pr(e.tokens[t].children));
|
|
1742
|
+
}
|
|
1743
|
+
//#endregion
|
|
1744
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/rules_core/smartquotes.mjs
|
|
1745
|
+
var hr = /['"]/, gr = /['"]/g, _r = "’";
|
|
1746
|
+
function vr(e, t, n, r) {
|
|
1747
|
+
e[t] || (e[t] = []), e[t].push({
|
|
1748
|
+
pos: n,
|
|
1749
|
+
ch: r
|
|
1750
|
+
});
|
|
1751
|
+
}
|
|
1752
|
+
function yr(e, t) {
|
|
1753
|
+
let n = "", r = 0;
|
|
1754
|
+
t.sort((e, t) => e.pos - t.pos);
|
|
1755
|
+
for (let i = 0; i < t.length; i++) {
|
|
1756
|
+
let a = t[i];
|
|
1757
|
+
n += e.slice(r, a.pos) + a.ch, r = a.pos + 1;
|
|
1758
|
+
}
|
|
1759
|
+
return n + e.slice(r);
|
|
1760
|
+
}
|
|
1761
|
+
function br(e, t) {
|
|
1762
|
+
let n, r = [], i = {};
|
|
1763
|
+
for (let a = 0; a < e.length; a++) {
|
|
1764
|
+
let o = e[a], s = e[a].level;
|
|
1765
|
+
for (n = r.length - 1; n >= 0 && !(r[n].level <= s); n--);
|
|
1766
|
+
if (r.length = n + 1, o.type !== "text") continue;
|
|
1767
|
+
let c = o.content, l = 0, u = c.length;
|
|
1768
|
+
OUTER: for (; l < u;) {
|
|
1769
|
+
gr.lastIndex = l;
|
|
1770
|
+
let o = gr.exec(c);
|
|
1771
|
+
if (!o) break;
|
|
1772
|
+
let d = !0, f = !0;
|
|
1773
|
+
l = o.index + 1;
|
|
1774
|
+
let p = o[0] === "'", m = 32;
|
|
1775
|
+
if (o.index - 1 >= 0) m = c.charCodeAt(o.index - 1);
|
|
1776
|
+
else for (n = a - 1; n >= 0 && !(e[n].type === "softbreak" || e[n].type === "hardbreak"); n--) if (e[n].content) {
|
|
1777
|
+
m = e[n].content.charCodeAt(e[n].content.length - 1);
|
|
1778
|
+
break;
|
|
1779
|
+
}
|
|
1780
|
+
let h = 32;
|
|
1781
|
+
if (l < u) h = c.charCodeAt(l);
|
|
1782
|
+
else for (n = a + 1; n < e.length && !(e[n].type === "softbreak" || e[n].type === "hardbreak"); n++) if (e[n].content) {
|
|
1783
|
+
h = e[n].content.charCodeAt(0);
|
|
1784
|
+
break;
|
|
1785
|
+
}
|
|
1786
|
+
let g = Un(m) || Hn(m), _ = Un(h) || Hn(h), v = Bn(m), y = Bn(h);
|
|
1787
|
+
if (y ? d = !1 : _ && (v || g || (d = !1)), v ? f = !1 : g && (y || _ || (f = !1)), h === 34 && o[0] === "\"" && m >= 48 && m <= 57 && (f = d = !1), d && f && (d = g, f = _), !d && !f) {
|
|
1788
|
+
p && vr(i, a, o.index, _r);
|
|
1789
|
+
continue;
|
|
1790
|
+
}
|
|
1791
|
+
if (f) for (n = r.length - 1; n >= 0; n--) {
|
|
1792
|
+
let e = r[n];
|
|
1793
|
+
if (r[n].level < s) break;
|
|
1794
|
+
if (e.single === p && r[n].level === s) {
|
|
1795
|
+
e = r[n];
|
|
1796
|
+
let s, c;
|
|
1797
|
+
p ? (s = t.md.options.quotes[2], c = t.md.options.quotes[3]) : (s = t.md.options.quotes[0], c = t.md.options.quotes[1]), vr(i, a, o.index, c), vr(i, e.token, e.pos, s), r.length = n;
|
|
1798
|
+
continue OUTER;
|
|
1799
|
+
}
|
|
1800
|
+
}
|
|
1801
|
+
d ? r.push({
|
|
1802
|
+
token: a,
|
|
1803
|
+
pos: o.index,
|
|
1804
|
+
single: p,
|
|
1805
|
+
level: s
|
|
1806
|
+
}) : f && p && vr(i, a, o.index, _r);
|
|
1807
|
+
}
|
|
1808
|
+
}
|
|
1809
|
+
Object.keys(i).forEach(function(t) {
|
|
1810
|
+
e[t].content = yr(e[t].content, i[t]);
|
|
1811
|
+
});
|
|
1812
|
+
}
|
|
1813
|
+
function xr(e) {
|
|
1814
|
+
if (e.md.options.typographer) for (let t = e.tokens.length - 1; t >= 0; t--) e.tokens[t].type !== "inline" || !hr.test(e.tokens[t].content) || br(e.tokens[t].children, e);
|
|
1815
|
+
}
|
|
1816
|
+
//#endregion
|
|
1817
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/rules_core/text_join.mjs
|
|
1818
|
+
function Sr(e) {
|
|
1819
|
+
let t, n, r = e.tokens, i = r.length;
|
|
1820
|
+
for (let e = 0; e < i; e++) {
|
|
1821
|
+
if (r[e].type !== "inline") continue;
|
|
1822
|
+
let i = r[e].children, a = i.length;
|
|
1823
|
+
for (t = 0; t < a; t++) i[t].type === "text_special" && (i[t].type = "text");
|
|
1824
|
+
for (t = n = 0; t < a; t++) i[t].type === "text" && t + 1 < a && i[t + 1].type === "text" ? i[t + 1].content = i[t].content + i[t + 1].content : (t !== n && (i[n] = i[t]), n++);
|
|
1825
|
+
t !== n && (i.length = n);
|
|
1826
|
+
}
|
|
1827
|
+
}
|
|
1828
|
+
//#endregion
|
|
1829
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/parser_core.mjs
|
|
1830
|
+
var Cr = [
|
|
1831
|
+
["normalize", tr],
|
|
1832
|
+
["block", nr],
|
|
1833
|
+
["inline", rr],
|
|
1834
|
+
["linkify", or],
|
|
1835
|
+
["replacements", mr],
|
|
1836
|
+
["smartquotes", xr],
|
|
1837
|
+
["text_join", Sr]
|
|
1838
|
+
];
|
|
1839
|
+
function wr() {
|
|
1840
|
+
this.ruler = new W();
|
|
1841
|
+
for (let e = 0; e < Cr.length; e++) this.ruler.push(Cr[e][0], Cr[e][1]);
|
|
1842
|
+
}
|
|
1843
|
+
wr.prototype.process = function(e) {
|
|
1844
|
+
let t = this.ruler.getRules("");
|
|
1845
|
+
for (let n = 0, r = t.length; n < r; n++) t[n](e);
|
|
1846
|
+
}, wr.prototype.State = Qn;
|
|
1847
|
+
//#endregion
|
|
1848
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/rules_block/state_block.mjs
|
|
1849
|
+
function K(e, t, n, r) {
|
|
1850
|
+
this.src = e, this.md = t, this.env = n, this.tokens = r, this.bMarks = [], this.eMarks = [], this.tShift = [], this.sCount = [], this.bsCount = [], this.blkIndent = 0, this.line = 0, this.lineMax = 0, this.tight = !1, this.ddIndent = -1, this.listIndent = -1, this.parentType = "root", this.level = 0;
|
|
1851
|
+
let i = this.src;
|
|
1852
|
+
for (let e = 0, t = 0, n = 0, r = 0, a = i.length, o = !1; t < a; t++) {
|
|
1853
|
+
let s = i.charCodeAt(t);
|
|
1854
|
+
if (!o) if (V(s)) {
|
|
1855
|
+
n++, s === 9 ? r += 4 - r % 4 : r++;
|
|
1856
|
+
continue;
|
|
1857
|
+
} else o = !0;
|
|
1858
|
+
(s === 10 || t === a - 1) && (s !== 10 && t++, this.bMarks.push(e), this.eMarks.push(t), this.tShift.push(n), this.sCount.push(r), this.bsCount.push(0), o = !1, n = 0, r = 0, e = t + 1);
|
|
1859
|
+
}
|
|
1860
|
+
this.bMarks.push(i.length), this.eMarks.push(i.length), this.tShift.push(0), this.sCount.push(0), this.bsCount.push(0), this.lineMax = this.bMarks.length - 1;
|
|
1861
|
+
}
|
|
1862
|
+
K.prototype.push = function(e, t, n) {
|
|
1863
|
+
let r = new G(e, t, n);
|
|
1864
|
+
return r.block = !0, n < 0 && this.level--, r.level = this.level, n > 0 && this.level++, this.tokens.push(r), r;
|
|
1865
|
+
}, K.prototype.isEmpty = function(e) {
|
|
1866
|
+
return this.bMarks[e] + this.tShift[e] >= this.eMarks[e];
|
|
1867
|
+
}, K.prototype.skipEmptyLines = function(e) {
|
|
1868
|
+
for (let t = this.lineMax; e < t && !(this.bMarks[e] + this.tShift[e] < this.eMarks[e]); e++);
|
|
1869
|
+
return e;
|
|
1870
|
+
}, K.prototype.skipSpaces = function(e) {
|
|
1871
|
+
for (let t = this.src.length; e < t && V(this.src.charCodeAt(e)); e++);
|
|
1872
|
+
return e;
|
|
1873
|
+
}, K.prototype.skipSpacesBack = function(e, t) {
|
|
1874
|
+
if (e <= t) return e;
|
|
1875
|
+
for (; e > t;) if (!V(this.src.charCodeAt(--e))) return e + 1;
|
|
1876
|
+
return e;
|
|
1877
|
+
}, K.prototype.skipChars = function(e, t) {
|
|
1878
|
+
for (let n = this.src.length; e < n && this.src.charCodeAt(e) === t; e++);
|
|
1879
|
+
return e;
|
|
1880
|
+
}, K.prototype.skipCharsBack = function(e, t, n) {
|
|
1881
|
+
if (e <= n) return e;
|
|
1882
|
+
for (; e > n;) if (t !== this.src.charCodeAt(--e)) return e + 1;
|
|
1883
|
+
return e;
|
|
1884
|
+
}, K.prototype.getLines = function(e, t, n, r) {
|
|
1885
|
+
if (e >= t) return "";
|
|
1886
|
+
let i = Array(t - e);
|
|
1887
|
+
for (let a = 0, o = e; o < t; o++, a++) {
|
|
1888
|
+
let e = 0, s = this.bMarks[o], c = s, l;
|
|
1889
|
+
for (l = o + 1 < t || r ? this.eMarks[o] + 1 : this.eMarks[o]; c < l && e < n;) {
|
|
1890
|
+
let t = this.src.charCodeAt(c);
|
|
1891
|
+
if (V(t)) t === 9 ? e += 4 - (e + this.bsCount[o]) % 4 : e++;
|
|
1892
|
+
else if (c - s < this.tShift[o]) e++;
|
|
1893
|
+
else break;
|
|
1894
|
+
c++;
|
|
1895
|
+
}
|
|
1896
|
+
e > n ? i[a] = Array(e - n + 1).join(" ") + this.src.slice(c, l) : i[a] = this.src.slice(c, l);
|
|
1897
|
+
}
|
|
1898
|
+
return i.join("");
|
|
1899
|
+
}, K.prototype.Token = G;
|
|
1900
|
+
//#endregion
|
|
1901
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/rules_block/table.mjs
|
|
1902
|
+
var Tr = 65536;
|
|
1903
|
+
function Er(e, t) {
|
|
1904
|
+
let n = e.bMarks[t] + e.tShift[t], r = e.eMarks[t];
|
|
1905
|
+
return e.src.slice(n, r);
|
|
1906
|
+
}
|
|
1907
|
+
function Dr(e) {
|
|
1908
|
+
let t = [], n = e.length, r = 0, i = e.charCodeAt(r), a = !1, o = 0, s = "";
|
|
1909
|
+
for (; r < n;) i === 124 && (a ? (s += e.substring(o, r - 1), o = r) : (t.push(s + e.substring(o, r)), s = "", o = r + 1)), a = i === 92, r++, i = e.charCodeAt(r);
|
|
1910
|
+
return t.push(s + e.substring(o)), t;
|
|
1911
|
+
}
|
|
1912
|
+
function Or(e, t, n, r) {
|
|
1913
|
+
if (t + 2 > n) return !1;
|
|
1914
|
+
let i = t + 1;
|
|
1915
|
+
if (e.sCount[i] < e.blkIndent || e.sCount[i] - e.blkIndent >= 4) return !1;
|
|
1916
|
+
let a = e.bMarks[i] + e.tShift[i];
|
|
1917
|
+
if (a >= e.eMarks[i]) return !1;
|
|
1918
|
+
let o = e.src.charCodeAt(a++);
|
|
1919
|
+
if (o !== 124 && o !== 45 && o !== 58 || a >= e.eMarks[i]) return !1;
|
|
1920
|
+
let s = e.src.charCodeAt(a++);
|
|
1921
|
+
if (s !== 124 && s !== 45 && s !== 58 && !V(s) || o === 45 && V(s)) return !1;
|
|
1922
|
+
for (; a < e.eMarks[i];) {
|
|
1923
|
+
let t = e.src.charCodeAt(a);
|
|
1924
|
+
if (t !== 124 && t !== 45 && t !== 58 && !V(t)) return !1;
|
|
1925
|
+
a++;
|
|
1926
|
+
}
|
|
1927
|
+
let c = Er(e, t + 1), l = c.split("|"), u = [];
|
|
1928
|
+
for (let e = 0; e < l.length; e++) {
|
|
1929
|
+
let t = l[e].trim();
|
|
1930
|
+
if (!t) {
|
|
1931
|
+
if (e === 0 || e === l.length - 1) continue;
|
|
1932
|
+
return !1;
|
|
1933
|
+
}
|
|
1934
|
+
if (!/^:?-+:?$/.test(t)) return !1;
|
|
1935
|
+
t.charCodeAt(t.length - 1) === 58 ? u.push(t.charCodeAt(0) === 58 ? "center" : "right") : t.charCodeAt(0) === 58 ? u.push("left") : u.push("");
|
|
1936
|
+
}
|
|
1937
|
+
if (c = Er(e, t).trim(), c.indexOf("|") === -1 || e.sCount[t] - e.blkIndent >= 4) return !1;
|
|
1938
|
+
l = Dr(c), l.length && l[0] === "" && l.shift(), l.length && l[l.length - 1] === "" && l.pop();
|
|
1939
|
+
let d = l.length;
|
|
1940
|
+
if (d === 0 || d !== u.length) return !1;
|
|
1941
|
+
if (r) return !0;
|
|
1942
|
+
let f = e.parentType;
|
|
1943
|
+
e.parentType = "table";
|
|
1944
|
+
let p = e.md.block.ruler.getRules("blockquote"), m = e.push("table_open", "table", 1), h = [t, 0];
|
|
1945
|
+
m.map = h;
|
|
1946
|
+
let g = e.push("thead_open", "thead", 1);
|
|
1947
|
+
g.map = [t, t + 1];
|
|
1948
|
+
let _ = e.push("tr_open", "tr", 1);
|
|
1949
|
+
_.map = [t, t + 1];
|
|
1950
|
+
for (let t = 0; t < l.length; t++) {
|
|
1951
|
+
let n = e.push("th_open", "th", 1);
|
|
1952
|
+
u[t] && (n.attrs = [["style", "text-align:" + u[t]]]);
|
|
1953
|
+
let r = e.push("inline", "", 0);
|
|
1954
|
+
r.content = l[t].trim(), r.children = [], e.push("th_close", "th", -1);
|
|
1955
|
+
}
|
|
1956
|
+
e.push("tr_close", "tr", -1), e.push("thead_close", "thead", -1);
|
|
1957
|
+
let v, y = 0;
|
|
1958
|
+
for (i = t + 2; i < n && !(e.sCount[i] < e.blkIndent); i++) {
|
|
1959
|
+
let r = !1;
|
|
1960
|
+
for (let t = 0, a = p.length; t < a; t++) if (p[t](e, i, n, !0)) {
|
|
1961
|
+
r = !0;
|
|
1962
|
+
break;
|
|
1963
|
+
}
|
|
1964
|
+
if (r || (c = Er(e, i).trim(), !c) || e.sCount[i] - e.blkIndent >= 4 || (l = Dr(c), l.length && l[0] === "" && l.shift(), l.length && l[l.length - 1] === "" && l.pop(), y += d - l.length, y > Tr)) break;
|
|
1965
|
+
if (i === t + 2) {
|
|
1966
|
+
let n = e.push("tbody_open", "tbody", 1);
|
|
1967
|
+
n.map = v = [t + 2, 0];
|
|
1968
|
+
}
|
|
1969
|
+
let a = e.push("tr_open", "tr", 1);
|
|
1970
|
+
a.map = [i, i + 1];
|
|
1971
|
+
for (let t = 0; t < d; t++) {
|
|
1972
|
+
let n = e.push("td_open", "td", 1);
|
|
1973
|
+
u[t] && (n.attrs = [["style", "text-align:" + u[t]]]);
|
|
1974
|
+
let r = e.push("inline", "", 0);
|
|
1975
|
+
r.content = l[t] ? l[t].trim() : "", r.children = [], e.push("td_close", "td", -1);
|
|
1976
|
+
}
|
|
1977
|
+
e.push("tr_close", "tr", -1);
|
|
1978
|
+
}
|
|
1979
|
+
return v && (e.push("tbody_close", "tbody", -1), v[1] = i), e.push("table_close", "table", -1), h[1] = i, e.parentType = f, e.line = i, !0;
|
|
1980
|
+
}
|
|
1981
|
+
//#endregion
|
|
1982
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/rules_block/code.mjs
|
|
1983
|
+
function kr(e, t, n) {
|
|
1984
|
+
if (e.sCount[t] - e.blkIndent < 4) return !1;
|
|
1985
|
+
let r = t + 1, i = r;
|
|
1986
|
+
for (; r < n;) {
|
|
1987
|
+
if (e.isEmpty(r)) {
|
|
1988
|
+
r++;
|
|
1989
|
+
continue;
|
|
1990
|
+
}
|
|
1991
|
+
if (e.sCount[r] - e.blkIndent >= 4) {
|
|
1992
|
+
r++, i = r;
|
|
1993
|
+
continue;
|
|
1994
|
+
}
|
|
1995
|
+
break;
|
|
1996
|
+
}
|
|
1997
|
+
e.line = i;
|
|
1998
|
+
let a = e.push("code_block", "code", 0);
|
|
1999
|
+
return a.content = e.getLines(t, i, 4 + e.blkIndent, !1) + "\n", a.map = [t, e.line], !0;
|
|
2000
|
+
}
|
|
2001
|
+
//#endregion
|
|
2002
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/rules_block/fence.mjs
|
|
2003
|
+
function Ar(e, t, n, r) {
|
|
2004
|
+
let i = e.bMarks[t] + e.tShift[t], a = e.eMarks[t];
|
|
2005
|
+
if (e.sCount[t] - e.blkIndent >= 4 || i + 3 > a) return !1;
|
|
2006
|
+
let o = e.src.charCodeAt(i);
|
|
2007
|
+
if (o !== 126 && o !== 96) return !1;
|
|
2008
|
+
let s = i;
|
|
2009
|
+
i = e.skipChars(i, o);
|
|
2010
|
+
let c = i - s;
|
|
2011
|
+
if (c < 3) return !1;
|
|
2012
|
+
let l = e.src.slice(s, i), u = e.src.slice(i, a);
|
|
2013
|
+
if (o === 96 && u.indexOf(String.fromCharCode(o)) >= 0) return !1;
|
|
2014
|
+
if (r) return !0;
|
|
2015
|
+
let d = t, f = !1;
|
|
2016
|
+
for (; d++, !(d >= n || (i = s = e.bMarks[d] + e.tShift[d], a = e.eMarks[d], i < a && e.sCount[d] < e.blkIndent));) if (e.src.charCodeAt(i) === o && !(e.sCount[d] - e.blkIndent >= 4) && (i = e.skipChars(i, o), !(i - s < c) && (i = e.skipSpaces(i), !(i < a)))) {
|
|
2017
|
+
f = !0;
|
|
2018
|
+
break;
|
|
2019
|
+
}
|
|
2020
|
+
c = e.sCount[t], e.line = d + +!!f;
|
|
2021
|
+
let p = e.push("fence", "code", 0);
|
|
2022
|
+
return p.info = u, p.content = e.getLines(t + 1, d, c, !0), p.markup = l, p.map = [t, e.line], !0;
|
|
2023
|
+
}
|
|
2024
|
+
//#endregion
|
|
2025
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/rules_block/blockquote.mjs
|
|
2026
|
+
function jr(e, t, n, r) {
|
|
2027
|
+
let i = e.bMarks[t] + e.tShift[t], a = e.eMarks[t], o = e.lineMax;
|
|
2028
|
+
if (e.sCount[t] - e.blkIndent >= 4 || e.src.charCodeAt(i) !== 62) return !1;
|
|
2029
|
+
if (r) return !0;
|
|
2030
|
+
let s = [], c = [], l = [], u = [], d = e.md.block.ruler.getRules("blockquote"), f = e.parentType;
|
|
2031
|
+
e.parentType = "blockquote";
|
|
2032
|
+
let p = !1, m;
|
|
2033
|
+
for (m = t; m < n; m++) {
|
|
2034
|
+
let t = e.sCount[m] < e.blkIndent;
|
|
2035
|
+
if (i = e.bMarks[m] + e.tShift[m], a = e.eMarks[m], i >= a) break;
|
|
2036
|
+
if (e.src.charCodeAt(i++) === 62 && !t) {
|
|
2037
|
+
let t = e.sCount[m] + 1, n, r;
|
|
2038
|
+
e.src.charCodeAt(i) === 32 ? (i++, t++, r = !1, n = !0) : e.src.charCodeAt(i) === 9 ? (n = !0, (e.bsCount[m] + t) % 4 == 3 ? (i++, t++, r = !1) : r = !0) : n = !1;
|
|
2039
|
+
let o = t;
|
|
2040
|
+
for (s.push(e.bMarks[m]), e.bMarks[m] = i; i < a;) {
|
|
2041
|
+
let t = e.src.charCodeAt(i);
|
|
2042
|
+
if (V(t)) t === 9 ? o += 4 - (o + e.bsCount[m] + +!!r) % 4 : o++;
|
|
2043
|
+
else break;
|
|
2044
|
+
i++;
|
|
2045
|
+
}
|
|
2046
|
+
p = i >= a, c.push(e.bsCount[m]), e.bsCount[m] = e.sCount[m] + 1 + +!!n, l.push(e.sCount[m]), e.sCount[m] = o - t, u.push(e.tShift[m]), e.tShift[m] = i - e.bMarks[m];
|
|
2047
|
+
continue;
|
|
2048
|
+
}
|
|
2049
|
+
if (p) break;
|
|
2050
|
+
let r = !1;
|
|
2051
|
+
for (let t = 0, i = d.length; t < i; t++) if (d[t](e, m, n, !0)) {
|
|
2052
|
+
r = !0;
|
|
2053
|
+
break;
|
|
2054
|
+
}
|
|
2055
|
+
if (r) {
|
|
2056
|
+
e.lineMax = m, e.blkIndent !== 0 && (s.push(e.bMarks[m]), c.push(e.bsCount[m]), u.push(e.tShift[m]), l.push(e.sCount[m]), e.sCount[m] -= e.blkIndent);
|
|
2057
|
+
break;
|
|
2058
|
+
}
|
|
2059
|
+
s.push(e.bMarks[m]), c.push(e.bsCount[m]), u.push(e.tShift[m]), l.push(e.sCount[m]), e.sCount[m] = -1;
|
|
2060
|
+
}
|
|
2061
|
+
let h = e.blkIndent;
|
|
2062
|
+
e.blkIndent = 0;
|
|
2063
|
+
let g = e.push("blockquote_open", "blockquote", 1);
|
|
2064
|
+
g.markup = ">";
|
|
2065
|
+
let _ = [t, 0];
|
|
2066
|
+
g.map = _, e.md.block.tokenize(e, t, m);
|
|
2067
|
+
let v = e.push("blockquote_close", "blockquote", -1);
|
|
2068
|
+
v.markup = ">", e.lineMax = o, e.parentType = f, _[1] = e.line;
|
|
2069
|
+
for (let n = 0; n < u.length; n++) e.bMarks[n + t] = s[n], e.tShift[n + t] = u[n], e.sCount[n + t] = l[n], e.bsCount[n + t] = c[n];
|
|
2070
|
+
return e.blkIndent = h, !0;
|
|
2071
|
+
}
|
|
2072
|
+
//#endregion
|
|
2073
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/rules_block/hr.mjs
|
|
2074
|
+
function Mr(e, t, n, r) {
|
|
2075
|
+
let i = e.eMarks[t];
|
|
2076
|
+
if (e.sCount[t] - e.blkIndent >= 4) return !1;
|
|
2077
|
+
let a = e.bMarks[t] + e.tShift[t], o = e.src.charCodeAt(a++);
|
|
2078
|
+
if (o !== 42 && o !== 45 && o !== 95) return !1;
|
|
2079
|
+
let s = 1;
|
|
2080
|
+
for (; a < i;) {
|
|
2081
|
+
let t = e.src.charCodeAt(a++);
|
|
2082
|
+
if (t !== o && !V(t)) return !1;
|
|
2083
|
+
t === o && s++;
|
|
2084
|
+
}
|
|
2085
|
+
if (s < 3) return !1;
|
|
2086
|
+
if (r) return !0;
|
|
2087
|
+
e.line = t + 1;
|
|
2088
|
+
let c = e.push("hr", "hr", 0);
|
|
2089
|
+
return c.map = [t, e.line], c.markup = Array(s + 1).join(String.fromCharCode(o)), !0;
|
|
2090
|
+
}
|
|
2091
|
+
//#endregion
|
|
2092
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/rules_block/list.mjs
|
|
2093
|
+
function Nr(e, t) {
|
|
2094
|
+
let n = e.eMarks[t], r = e.bMarks[t] + e.tShift[t], i = e.src.charCodeAt(r++);
|
|
2095
|
+
return i !== 42 && i !== 45 && i !== 43 || r < n && !V(e.src.charCodeAt(r)) ? -1 : r;
|
|
2096
|
+
}
|
|
2097
|
+
function Pr(e, t) {
|
|
2098
|
+
let n = e.bMarks[t] + e.tShift[t], r = e.eMarks[t], i = n;
|
|
2099
|
+
if (i + 1 >= r) return -1;
|
|
2100
|
+
let a = e.src.charCodeAt(i++);
|
|
2101
|
+
if (a < 48 || a > 57) return -1;
|
|
2102
|
+
for (;;) {
|
|
2103
|
+
if (i >= r) return -1;
|
|
2104
|
+
if (a = e.src.charCodeAt(i++), a >= 48 && a <= 57) {
|
|
2105
|
+
if (i - n >= 10) return -1;
|
|
2106
|
+
continue;
|
|
2107
|
+
}
|
|
2108
|
+
if (a === 41 || a === 46) break;
|
|
2109
|
+
return -1;
|
|
2110
|
+
}
|
|
2111
|
+
return i < r && (a = e.src.charCodeAt(i), !V(a)) ? -1 : i;
|
|
2112
|
+
}
|
|
2113
|
+
function Fr(e, t) {
|
|
2114
|
+
let n = e.level + 2;
|
|
2115
|
+
for (let r = t + 2, i = e.tokens.length - 2; r < i; r++) e.tokens[r].level === n && e.tokens[r].type === "paragraph_open" && (e.tokens[r + 2].hidden = !0, e.tokens[r].hidden = !0, r += 2);
|
|
2116
|
+
}
|
|
2117
|
+
function Ir(e, t, n, r) {
|
|
2118
|
+
let i, a, o, s, c = t, l = !0;
|
|
2119
|
+
if (e.sCount[c] - e.blkIndent >= 4 || e.listIndent >= 0 && e.sCount[c] - e.listIndent >= 4 && e.sCount[c] < e.blkIndent) return !1;
|
|
2120
|
+
let u = !1;
|
|
2121
|
+
r && e.parentType === "paragraph" && e.sCount[c] >= e.blkIndent && (u = !0);
|
|
2122
|
+
let d, f, p;
|
|
2123
|
+
if ((p = Pr(e, c)) >= 0) {
|
|
2124
|
+
if (d = !0, o = e.bMarks[c] + e.tShift[c], f = Number(e.src.slice(o, p - 1)), u && f !== 1) return !1;
|
|
2125
|
+
} else if ((p = Nr(e, c)) >= 0) d = !1;
|
|
2126
|
+
else return !1;
|
|
2127
|
+
if (u && e.skipSpaces(p) >= e.eMarks[c]) return !1;
|
|
2128
|
+
if (r) return !0;
|
|
2129
|
+
let m = e.src.charCodeAt(p - 1), h = e.tokens.length;
|
|
2130
|
+
d ? (s = e.push("ordered_list_open", "ol", 1), f !== 1 && (s.attrs = [["start", f]])) : s = e.push("bullet_list_open", "ul", 1);
|
|
2131
|
+
let g = [c, 0];
|
|
2132
|
+
s.map = g, s.markup = String.fromCharCode(m);
|
|
2133
|
+
let _ = !1, v = e.md.block.ruler.getRules("list"), y = e.parentType;
|
|
2134
|
+
for (e.parentType = "list"; c < n;) {
|
|
2135
|
+
a = p, i = e.eMarks[c];
|
|
2136
|
+
let t = e.sCount[c] + p - (e.bMarks[c] + e.tShift[c]), r = t;
|
|
2137
|
+
for (; a < i;) {
|
|
2138
|
+
let t = e.src.charCodeAt(a);
|
|
2139
|
+
if (t === 9) r += 4 - (r + e.bsCount[c]) % 4;
|
|
2140
|
+
else if (t === 32) r++;
|
|
2141
|
+
else break;
|
|
2142
|
+
a++;
|
|
2143
|
+
}
|
|
2144
|
+
let u = a, f;
|
|
2145
|
+
f = u >= i ? 1 : r - t, f > 4 && (f = 1);
|
|
2146
|
+
let h = t + f;
|
|
2147
|
+
s = e.push("list_item_open", "li", 1), s.markup = String.fromCharCode(m);
|
|
2148
|
+
let g = [c, 0];
|
|
2149
|
+
s.map = g, d && (s.info = e.src.slice(o, p - 1));
|
|
2150
|
+
let y = e.tight, b = e.tShift[c], x = e.sCount[c], S = e.listIndent;
|
|
2151
|
+
if (e.listIndent = e.blkIndent, e.blkIndent = h, e.tight = !0, e.tShift[c] = u - e.bMarks[c], e.sCount[c] = r, u >= i && e.isEmpty(c + 1) ? e.line = Math.min(e.line + 2, n) : e.md.block.tokenize(e, c, n, !0), (!e.tight || _) && (l = !1), _ = e.line - c > 1 && e.isEmpty(e.line - 1), e.blkIndent = e.listIndent, e.listIndent = S, e.tShift[c] = b, e.sCount[c] = x, e.tight = y, s = e.push("list_item_close", "li", -1), s.markup = String.fromCharCode(m), c = e.line, g[1] = c, c >= n || e.sCount[c] < e.blkIndent || e.sCount[c] - e.blkIndent >= 4) break;
|
|
2152
|
+
let C = !1;
|
|
2153
|
+
for (let t = 0, r = v.length; t < r; t++) if (v[t](e, c, n, !0)) {
|
|
2154
|
+
C = !0;
|
|
2155
|
+
break;
|
|
2156
|
+
}
|
|
2157
|
+
if (C) break;
|
|
2158
|
+
if (d) {
|
|
2159
|
+
if (p = Pr(e, c), p < 0) break;
|
|
2160
|
+
o = e.bMarks[c] + e.tShift[c];
|
|
2161
|
+
} else if (p = Nr(e, c), p < 0) break;
|
|
2162
|
+
if (m !== e.src.charCodeAt(p - 1)) break;
|
|
2163
|
+
}
|
|
2164
|
+
return s = d ? e.push("ordered_list_close", "ol", -1) : e.push("bullet_list_close", "ul", -1), s.markup = String.fromCharCode(m), g[1] = c, e.line = c, e.parentType = y, l && Fr(e, h), !0;
|
|
2165
|
+
}
|
|
2166
|
+
//#endregion
|
|
2167
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/rules_block/reference.mjs
|
|
2168
|
+
function Lr(e, t, n, r) {
|
|
2169
|
+
let i = e.bMarks[t] + e.tShift[t], a = e.eMarks[t], o = t + 1;
|
|
2170
|
+
if (e.sCount[t] - e.blkIndent >= 4 || e.src.charCodeAt(i) !== 91) return !1;
|
|
2171
|
+
function s(t) {
|
|
2172
|
+
let n = e.lineMax;
|
|
2173
|
+
if (t >= n || e.isEmpty(t)) return null;
|
|
2174
|
+
let r = !1;
|
|
2175
|
+
if (e.sCount[t] - e.blkIndent > 3 && (r = !0), e.sCount[t] < 0 && (r = !0), !r) {
|
|
2176
|
+
let r = e.md.block.ruler.getRules("reference"), i = e.parentType;
|
|
2177
|
+
e.parentType = "reference";
|
|
2178
|
+
let a = !1;
|
|
2179
|
+
for (let i = 0, o = r.length; i < o; i++) if (r[i](e, t, n, !0)) {
|
|
2180
|
+
a = !0;
|
|
2181
|
+
break;
|
|
2182
|
+
}
|
|
2183
|
+
if (e.parentType = i, a) return null;
|
|
2184
|
+
}
|
|
2185
|
+
let i = e.bMarks[t] + e.tShift[t], a = e.eMarks[t];
|
|
2186
|
+
return e.src.slice(i, a + 1);
|
|
2187
|
+
}
|
|
2188
|
+
let c = e.src.slice(i, a + 1);
|
|
2189
|
+
a = c.length;
|
|
2190
|
+
let l = -1;
|
|
2191
|
+
for (i = 1; i < a; i++) {
|
|
2192
|
+
let e = c.charCodeAt(i);
|
|
2193
|
+
if (e === 91) return !1;
|
|
2194
|
+
if (e === 93) {
|
|
2195
|
+
l = i;
|
|
2196
|
+
break;
|
|
2197
|
+
} else if (e === 10) {
|
|
2198
|
+
let e = s(o);
|
|
2199
|
+
e !== null && (c += e, a = c.length, o++);
|
|
2200
|
+
} else if (e === 92 && (i++, i < a && c.charCodeAt(i) === 10)) {
|
|
2201
|
+
let e = s(o);
|
|
2202
|
+
e !== null && (c += e, a = c.length, o++);
|
|
2203
|
+
}
|
|
2204
|
+
}
|
|
2205
|
+
if (l < 0 || c.charCodeAt(l + 1) !== 58) return !1;
|
|
2206
|
+
for (i = l + 2; i < a; i++) {
|
|
2207
|
+
let e = c.charCodeAt(i);
|
|
2208
|
+
if (e === 10) {
|
|
2209
|
+
let e = s(o);
|
|
2210
|
+
e !== null && (c += e, a = c.length, o++);
|
|
2211
|
+
} else if (!V(e)) break;
|
|
2212
|
+
}
|
|
2213
|
+
let u = e.md.helpers.parseLinkDestination(c, i, a);
|
|
2214
|
+
if (!u.ok) return !1;
|
|
2215
|
+
let d = e.md.normalizeLink(u.str);
|
|
2216
|
+
if (!e.md.validateLink(d)) return !1;
|
|
2217
|
+
i = u.pos;
|
|
2218
|
+
let f = i, p = o, m = i;
|
|
2219
|
+
for (; i < a; i++) {
|
|
2220
|
+
let e = c.charCodeAt(i);
|
|
2221
|
+
if (e === 10) {
|
|
2222
|
+
let e = s(o);
|
|
2223
|
+
e !== null && (c += e, a = c.length, o++);
|
|
2224
|
+
} else if (!V(e)) break;
|
|
2225
|
+
}
|
|
2226
|
+
let h = e.md.helpers.parseLinkTitle(c, i, a);
|
|
2227
|
+
for (; h.can_continue;) {
|
|
2228
|
+
let t = s(o);
|
|
2229
|
+
if (t === null) break;
|
|
2230
|
+
c += t, i = a, a = c.length, o++, h = e.md.helpers.parseLinkTitle(c, i, a, h);
|
|
2231
|
+
}
|
|
2232
|
+
let g;
|
|
2233
|
+
for (i < a && m !== i && h.ok ? (g = h.str, i = h.pos) : (g = "", i = f, o = p); i < a && V(c.charCodeAt(i));) i++;
|
|
2234
|
+
if (i < a && c.charCodeAt(i) !== 10 && g) for (g = "", i = f, o = p; i < a && V(c.charCodeAt(i));) i++;
|
|
2235
|
+
if (i < a && c.charCodeAt(i) !== 10) return !1;
|
|
2236
|
+
let _ = Wn(c.slice(1, l));
|
|
2237
|
+
return _ ? r ? !0 : (e.env.references === void 0 && (e.env.references = {}), e.env.references[_] === void 0 && (e.env.references[_] = {
|
|
2238
|
+
title: g,
|
|
2239
|
+
href: d
|
|
2240
|
+
}), e.line = o, !0) : !1;
|
|
2241
|
+
}
|
|
2242
|
+
//#endregion
|
|
2243
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/common/html_blocks.mjs
|
|
2244
|
+
var Rr = /* @__PURE__ */ "address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul".split("."), zr = /* @__PURE__ */ RegExp("^(?:<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"), Br = /* @__PURE__ */ RegExp("^(?:<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>)"), q = [
|
|
2245
|
+
[
|
|
2246
|
+
/^<(script|pre|style|textarea)(?=(\s|>|$))/i,
|
|
2247
|
+
/<\/(script|pre|style|textarea)>/i,
|
|
2248
|
+
!0
|
|
2249
|
+
],
|
|
2250
|
+
[
|
|
2251
|
+
/^<!--/,
|
|
2252
|
+
/-->/,
|
|
2253
|
+
!0
|
|
2254
|
+
],
|
|
2255
|
+
[
|
|
2256
|
+
/^<\?/,
|
|
2257
|
+
/\?>/,
|
|
2258
|
+
!0
|
|
2259
|
+
],
|
|
2260
|
+
[
|
|
2261
|
+
/^<![A-Z]/,
|
|
2262
|
+
/>/,
|
|
2263
|
+
!0
|
|
2264
|
+
],
|
|
2265
|
+
[
|
|
2266
|
+
/^<!\[CDATA\[/,
|
|
2267
|
+
/\]\]>/,
|
|
2268
|
+
!0
|
|
2269
|
+
],
|
|
2270
|
+
[
|
|
2271
|
+
RegExp("^</?(" + Rr.join("|") + ")(?=(\\s|/?>|$))", "i"),
|
|
2272
|
+
/^$/,
|
|
2273
|
+
!0
|
|
2274
|
+
],
|
|
2275
|
+
[
|
|
2276
|
+
RegExp(Br.source + "\\s*$"),
|
|
2277
|
+
/^$/,
|
|
2278
|
+
!1
|
|
2279
|
+
]
|
|
2280
|
+
];
|
|
2281
|
+
function Vr(e, t, n, r) {
|
|
2282
|
+
let i = e.bMarks[t] + e.tShift[t], a = e.eMarks[t];
|
|
2283
|
+
if (e.sCount[t] - e.blkIndent >= 4 || !e.md.options.html || e.src.charCodeAt(i) !== 60) return !1;
|
|
2284
|
+
let o = e.src.slice(i, a), s = 0;
|
|
2285
|
+
for (; s < q.length && !q[s][0].test(o); s++);
|
|
2286
|
+
if (s === q.length) return !1;
|
|
2287
|
+
if (r) return q[s][2];
|
|
2288
|
+
let c = t + 1, l = q[s][1].test("");
|
|
2289
|
+
if (!q[s][1].test(o)) {
|
|
2290
|
+
for (; c < n && !(e.sCount[c] < e.blkIndent && (l || !e.isEmpty(c))); c++) if (i = e.bMarks[c] + e.tShift[c], a = e.eMarks[c], o = e.src.slice(i, a), q[s][1].test(o)) {
|
|
2291
|
+
o.length !== 0 && c++;
|
|
2292
|
+
break;
|
|
2293
|
+
}
|
|
2294
|
+
}
|
|
2295
|
+
e.line = c;
|
|
2296
|
+
let u = e.push("html_block", "", 0);
|
|
2297
|
+
return u.map = [t, c], u.content = e.getLines(t, c, e.blkIndent, !0), !0;
|
|
2298
|
+
}
|
|
2299
|
+
//#endregion
|
|
2300
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/rules_block/heading.mjs
|
|
2301
|
+
function Hr(e, t, n, r) {
|
|
2302
|
+
let i = e.bMarks[t] + e.tShift[t], a = e.eMarks[t];
|
|
2303
|
+
if (e.sCount[t] - e.blkIndent >= 4) return !1;
|
|
2304
|
+
let o = e.src.charCodeAt(i);
|
|
2305
|
+
if (o !== 35 || i >= a) return !1;
|
|
2306
|
+
let s = 1;
|
|
2307
|
+
for (o = e.src.charCodeAt(++i); o === 35 && i < a && s <= 6;) s++, o = e.src.charCodeAt(++i);
|
|
2308
|
+
if (s > 6 || i < a && !V(o)) return !1;
|
|
2309
|
+
if (r) return !0;
|
|
2310
|
+
a = e.skipSpacesBack(a, i);
|
|
2311
|
+
let c = e.skipCharsBack(a, 35, i);
|
|
2312
|
+
c > i && V(e.src.charCodeAt(c - 1)) && (a = c), e.line = t + 1;
|
|
2313
|
+
let l = e.push("heading_open", "h" + String(s), 1);
|
|
2314
|
+
l.markup = "########".slice(0, s), l.map = [t, e.line];
|
|
2315
|
+
let u = e.push("inline", "", 0);
|
|
2316
|
+
u.content = Kn(e.src.slice(i, a)), u.map = [t, e.line], u.children = [];
|
|
2317
|
+
let d = e.push("heading_close", "h" + String(s), -1);
|
|
2318
|
+
return d.markup = "########".slice(0, s), !0;
|
|
2319
|
+
}
|
|
2320
|
+
//#endregion
|
|
2321
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/rules_block/lheading.mjs
|
|
2322
|
+
function Ur(e, t, n) {
|
|
2323
|
+
let r = e.md.block.ruler.getRules("paragraph");
|
|
2324
|
+
if (e.sCount[t] - e.blkIndent >= 4) return !1;
|
|
2325
|
+
let i = e.parentType;
|
|
2326
|
+
e.parentType = "paragraph";
|
|
2327
|
+
let a = 0, o, s = t + 1;
|
|
2328
|
+
for (; s < n && !e.isEmpty(s); s++) {
|
|
2329
|
+
if (e.sCount[s] - e.blkIndent > 3) continue;
|
|
2330
|
+
if (e.sCount[s] >= e.blkIndent) {
|
|
2331
|
+
let t = e.bMarks[s] + e.tShift[s], n = e.eMarks[s];
|
|
2332
|
+
if (t < n && (o = e.src.charCodeAt(t), (o === 45 || o === 61) && (t = e.skipChars(t, o), t = e.skipSpaces(t), t >= n))) {
|
|
2333
|
+
a = o === 61 ? 1 : 2;
|
|
2334
|
+
break;
|
|
2335
|
+
}
|
|
2336
|
+
}
|
|
2337
|
+
if (e.sCount[s] < 0) continue;
|
|
2338
|
+
let t = !1;
|
|
2339
|
+
for (let i = 0, a = r.length; i < a; i++) if (r[i](e, s, n, !0)) {
|
|
2340
|
+
t = !0;
|
|
2341
|
+
break;
|
|
2342
|
+
}
|
|
2343
|
+
if (t) break;
|
|
2344
|
+
}
|
|
2345
|
+
if (!a) return e.parentType = i, !1;
|
|
2346
|
+
let c = Kn(e.getLines(t, s, e.blkIndent, !1));
|
|
2347
|
+
e.line = s + 1;
|
|
2348
|
+
let l = e.push("heading_open", "h" + String(a), 1);
|
|
2349
|
+
l.markup = String.fromCharCode(o), l.map = [t, e.line];
|
|
2350
|
+
let u = e.push("inline", "", 0);
|
|
2351
|
+
u.content = c, u.map = [t, e.line - 1], u.children = [];
|
|
2352
|
+
let d = e.push("heading_close", "h" + String(a), -1);
|
|
2353
|
+
return d.markup = String.fromCharCode(o), e.parentType = i, !0;
|
|
2354
|
+
}
|
|
2355
|
+
//#endregion
|
|
2356
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/rules_block/paragraph.mjs
|
|
2357
|
+
function Wr(e, t, n) {
|
|
2358
|
+
let r = e.md.block.ruler.getRules("paragraph"), i = e.parentType, a = t + 1;
|
|
2359
|
+
for (e.parentType = "paragraph"; a < n && !e.isEmpty(a); a++) {
|
|
2360
|
+
if (e.sCount[a] - e.blkIndent > 3 || e.sCount[a] < 0) continue;
|
|
2361
|
+
let t = !1;
|
|
2362
|
+
for (let i = 0, o = r.length; i < o; i++) if (r[i](e, a, n, !0)) {
|
|
2363
|
+
t = !0;
|
|
2364
|
+
break;
|
|
2365
|
+
}
|
|
2366
|
+
if (t) break;
|
|
2367
|
+
}
|
|
2368
|
+
let o = Kn(e.getLines(t, a, e.blkIndent, !1));
|
|
2369
|
+
e.line = a;
|
|
2370
|
+
let s = e.push("paragraph_open", "p", 1);
|
|
2371
|
+
s.map = [t, e.line];
|
|
2372
|
+
let c = e.push("inline", "", 0);
|
|
2373
|
+
return c.content = o, c.map = [t, e.line], c.children = [], e.push("paragraph_close", "p", -1), e.parentType = i, !0;
|
|
2374
|
+
}
|
|
2375
|
+
//#endregion
|
|
2376
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/parser_block.mjs
|
|
2377
|
+
var Gr = [
|
|
2378
|
+
[
|
|
2379
|
+
"table",
|
|
2380
|
+
Or,
|
|
2381
|
+
["paragraph", "reference"]
|
|
2382
|
+
],
|
|
2383
|
+
["code", kr],
|
|
2384
|
+
[
|
|
2385
|
+
"fence",
|
|
2386
|
+
Ar,
|
|
2387
|
+
[
|
|
2388
|
+
"paragraph",
|
|
2389
|
+
"reference",
|
|
2390
|
+
"blockquote",
|
|
2391
|
+
"list"
|
|
2392
|
+
]
|
|
2393
|
+
],
|
|
2394
|
+
[
|
|
2395
|
+
"blockquote",
|
|
2396
|
+
jr,
|
|
2397
|
+
[
|
|
2398
|
+
"paragraph",
|
|
2399
|
+
"reference",
|
|
2400
|
+
"blockquote",
|
|
2401
|
+
"list"
|
|
2402
|
+
]
|
|
2403
|
+
],
|
|
2404
|
+
[
|
|
2405
|
+
"hr",
|
|
2406
|
+
Mr,
|
|
2407
|
+
[
|
|
2408
|
+
"paragraph",
|
|
2409
|
+
"reference",
|
|
2410
|
+
"blockquote",
|
|
2411
|
+
"list"
|
|
2412
|
+
]
|
|
2413
|
+
],
|
|
2414
|
+
[
|
|
2415
|
+
"list",
|
|
2416
|
+
Ir,
|
|
2417
|
+
[
|
|
2418
|
+
"paragraph",
|
|
2419
|
+
"reference",
|
|
2420
|
+
"blockquote"
|
|
2421
|
+
]
|
|
2422
|
+
],
|
|
2423
|
+
["reference", Lr],
|
|
2424
|
+
[
|
|
2425
|
+
"html_block",
|
|
2426
|
+
Vr,
|
|
2427
|
+
[
|
|
2428
|
+
"paragraph",
|
|
2429
|
+
"reference",
|
|
2430
|
+
"blockquote"
|
|
2431
|
+
]
|
|
2432
|
+
],
|
|
2433
|
+
[
|
|
2434
|
+
"heading",
|
|
2435
|
+
Hr,
|
|
2436
|
+
[
|
|
2437
|
+
"paragraph",
|
|
2438
|
+
"reference",
|
|
2439
|
+
"blockquote"
|
|
2440
|
+
]
|
|
2441
|
+
],
|
|
2442
|
+
["lheading", Ur],
|
|
2443
|
+
["paragraph", Wr]
|
|
2444
|
+
];
|
|
2445
|
+
function Kr() {
|
|
2446
|
+
this.ruler = new W();
|
|
2447
|
+
for (let e = 0; e < Gr.length; e++) this.ruler.push(Gr[e][0], Gr[e][1], { alt: (Gr[e][2] || []).slice() });
|
|
2448
|
+
}
|
|
2449
|
+
Kr.prototype.tokenize = function(e, t, n) {
|
|
2450
|
+
let r = this.ruler.getRules(""), i = r.length, a = e.md.options.maxNesting, o = t, s = !1;
|
|
2451
|
+
for (; o < n && (e.line = o = e.skipEmptyLines(o), !(o >= n || e.sCount[o] < e.blkIndent));) {
|
|
2452
|
+
if (e.level >= a) {
|
|
2453
|
+
e.line = n;
|
|
2454
|
+
break;
|
|
2455
|
+
}
|
|
2456
|
+
let t = e.line, c = !1;
|
|
2457
|
+
for (let a = 0; a < i; a++) if (c = r[a](e, o, n, !1), c) {
|
|
2458
|
+
if (t >= e.line) throw Error("block rule didn't increment state.line");
|
|
2459
|
+
break;
|
|
2460
|
+
}
|
|
2461
|
+
if (!c) throw Error("none of the block rules matched");
|
|
2462
|
+
e.tight = !s, e.isEmpty(e.line - 1) && (s = !0), o = e.line, o < n && e.isEmpty(o) && (s = !0, o++, e.line = o);
|
|
2463
|
+
}
|
|
2464
|
+
}, Kr.prototype.parse = function(e, t, n, r) {
|
|
2465
|
+
if (!e) return;
|
|
2466
|
+
let i = new this.State(e, t, n, r);
|
|
2467
|
+
this.tokenize(i, i.line, i.lineMax);
|
|
2468
|
+
}, Kr.prototype.State = K;
|
|
2469
|
+
//#endregion
|
|
2470
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/rules_inline/state_inline.mjs
|
|
2471
|
+
function qr(e, t, n, r) {
|
|
2472
|
+
this.src = e, this.env = n, this.md = t, this.tokens = r, this.tokens_meta = Array(r.length), this.pos = 0, this.posMax = this.src.length, this.level = 0, this.pending = "", this.pendingLevel = 0, this.cache = {}, this.delimiters = [], this._prev_delimiters = [], this.backticks = {}, this.backticksScanned = !1, this.linkLevel = 0;
|
|
2473
|
+
}
|
|
2474
|
+
qr.prototype.pushPending = function() {
|
|
2475
|
+
let e = new G("text", "", 0);
|
|
2476
|
+
return e.content = this.pending, e.level = this.pendingLevel, this.tokens.push(e), this.pending = "", e;
|
|
2477
|
+
}, qr.prototype.push = function(e, t, n) {
|
|
2478
|
+
this.pending && this.pushPending();
|
|
2479
|
+
let r = new G(e, t, n), i = null;
|
|
2480
|
+
return n < 0 && (this.level--, this.delimiters = this._prev_delimiters.pop()), r.level = this.level, n > 0 && (this.level++, this._prev_delimiters.push(this.delimiters), this.delimiters = [], i = { delimiters: this.delimiters }), this.pendingLevel = this.level, this.tokens.push(r), this.tokens_meta.push(i), r;
|
|
2481
|
+
}, qr.prototype.scanDelims = function(e, t) {
|
|
2482
|
+
let n = this.posMax, r = this.src.charCodeAt(e), i;
|
|
2483
|
+
if (e === 0) i = 32;
|
|
2484
|
+
else if (e === 1) i = this.src.charCodeAt(0), (i & 63488) == 55296 && (i = 65533);
|
|
2485
|
+
else if (i = this.src.charCodeAt(e - 1), (i & 64512) == 56320) {
|
|
2486
|
+
let t = this.src.charCodeAt(e - 2);
|
|
2487
|
+
i = (t & 64512) == 55296 ? 65536 + (t - 55296 << 10) + (i - 56320) : 65533;
|
|
2488
|
+
} else (i & 64512) == 55296 && (i = 65533);
|
|
2489
|
+
let a = e;
|
|
2490
|
+
for (; a < n && this.src.charCodeAt(a) === r;) a++;
|
|
2491
|
+
let o = a - e, s = a < n ? this.src.charCodeAt(a) : 32;
|
|
2492
|
+
if ((s & 64512) == 55296) {
|
|
2493
|
+
let e = this.src.charCodeAt(a + 1);
|
|
2494
|
+
s = (e & 64512) == 56320 ? 65536 + (s - 55296 << 10) + (e - 56320) : 65533;
|
|
2495
|
+
} else (s & 64512) == 56320 && (s = 65533);
|
|
2496
|
+
let c = Un(i) || Hn(i), l = Un(s) || Hn(s), u = Bn(i), d = Bn(s), f = !d && (!l || u || c), p = !u && (!c || d || l);
|
|
2497
|
+
return {
|
|
2498
|
+
can_open: f && (t || !p || c),
|
|
2499
|
+
can_close: p && (t || !f || l),
|
|
2500
|
+
length: o
|
|
2501
|
+
};
|
|
2502
|
+
}, qr.prototype.Token = G;
|
|
2503
|
+
//#endregion
|
|
2504
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/rules_inline/text.mjs
|
|
2505
|
+
function Jr(e) {
|
|
2506
|
+
switch (e) {
|
|
2507
|
+
case 10:
|
|
2508
|
+
case 33:
|
|
2509
|
+
case 35:
|
|
2510
|
+
case 36:
|
|
2511
|
+
case 37:
|
|
2512
|
+
case 38:
|
|
2513
|
+
case 42:
|
|
2514
|
+
case 43:
|
|
2515
|
+
case 45:
|
|
2516
|
+
case 58:
|
|
2517
|
+
case 60:
|
|
2518
|
+
case 61:
|
|
2519
|
+
case 62:
|
|
2520
|
+
case 64:
|
|
2521
|
+
case 91:
|
|
2522
|
+
case 92:
|
|
2523
|
+
case 93:
|
|
2524
|
+
case 94:
|
|
2525
|
+
case 95:
|
|
2526
|
+
case 96:
|
|
2527
|
+
case 123:
|
|
2528
|
+
case 125:
|
|
2529
|
+
case 126: return !0;
|
|
2530
|
+
default: return !1;
|
|
2531
|
+
}
|
|
2532
|
+
}
|
|
2533
|
+
function Yr(e, t) {
|
|
2534
|
+
let n = e.pos;
|
|
2535
|
+
for (; n < e.posMax && !Jr(e.src.charCodeAt(n));) n++;
|
|
2536
|
+
return n === e.pos ? !1 : (t || (e.pending += e.src.slice(e.pos, n)), e.pos = n, !0);
|
|
2537
|
+
}
|
|
2538
|
+
//#endregion
|
|
2539
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/rules_inline/linkify.mjs
|
|
2540
|
+
var Xr = /(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;
|
|
2541
|
+
function Zr(e, t) {
|
|
2542
|
+
if (!e.md.options.linkify || e.linkLevel > 0) return !1;
|
|
2543
|
+
let n = e.pos, r = e.posMax;
|
|
2544
|
+
if (n + 3 > r || e.src.charCodeAt(n) !== 58 || e.src.charCodeAt(n + 1) !== 47 || e.src.charCodeAt(n + 2) !== 47) return !1;
|
|
2545
|
+
let i = e.pending.match(Xr);
|
|
2546
|
+
if (!i) return !1;
|
|
2547
|
+
let a = i[1], o = e.md.linkify.matchAtStart(e.src.slice(n - a.length));
|
|
2548
|
+
if (!o) return !1;
|
|
2549
|
+
let s = o.url;
|
|
2550
|
+
if (s.length <= a.length) return !1;
|
|
2551
|
+
let c = s.length;
|
|
2552
|
+
for (; c > 0 && s.charCodeAt(c - 1) === 42;) c--;
|
|
2553
|
+
c !== s.length && (s = s.slice(0, c));
|
|
2554
|
+
let l = e.md.normalizeLink(s);
|
|
2555
|
+
if (!e.md.validateLink(l)) return !1;
|
|
2556
|
+
if (!t) {
|
|
2557
|
+
e.pending = e.pending.slice(0, -a.length);
|
|
2558
|
+
let t = e.push("link_open", "a", 1);
|
|
2559
|
+
t.attrs = [["href", l]], t.markup = "linkify", t.info = "auto";
|
|
2560
|
+
let n = e.push("text", "", 0);
|
|
2561
|
+
n.content = e.md.normalizeLinkText(s);
|
|
2562
|
+
let r = e.push("link_close", "a", -1);
|
|
2563
|
+
r.markup = "linkify", r.info = "auto";
|
|
2564
|
+
}
|
|
2565
|
+
return e.pos += s.length - a.length, !0;
|
|
2566
|
+
}
|
|
2567
|
+
//#endregion
|
|
2568
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/rules_inline/newline.mjs
|
|
2569
|
+
function Qr(e, t) {
|
|
2570
|
+
let n = e.pos;
|
|
2571
|
+
if (e.src.charCodeAt(n) !== 10) return !1;
|
|
2572
|
+
let r = e.pending.length - 1, i = e.posMax;
|
|
2573
|
+
if (!t) if (r >= 0 && e.pending.charCodeAt(r) === 32) if (r >= 1 && e.pending.charCodeAt(r - 1) === 32) {
|
|
2574
|
+
let t = r - 1;
|
|
2575
|
+
for (; t >= 1 && e.pending.charCodeAt(t - 1) === 32;) t--;
|
|
2576
|
+
e.pending = e.pending.slice(0, t), e.push("hardbreak", "br", 0);
|
|
2577
|
+
} else e.pending = e.pending.slice(0, -1), e.push("softbreak", "br", 0);
|
|
2578
|
+
else e.push("softbreak", "br", 0);
|
|
2579
|
+
for (n++; n < i && V(e.src.charCodeAt(n));) n++;
|
|
2580
|
+
return e.pos = n, !0;
|
|
2581
|
+
}
|
|
2582
|
+
//#endregion
|
|
2583
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/rules_inline/escape.mjs
|
|
2584
|
+
var $r = [];
|
|
2585
|
+
for (let e = 0; e < 256; e++) $r.push(0);
|
|
2586
|
+
"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e) {
|
|
2587
|
+
$r[e.charCodeAt(0)] = 1;
|
|
2588
|
+
});
|
|
2589
|
+
function ei(e, t) {
|
|
2590
|
+
let n = e.pos, r = e.posMax;
|
|
2591
|
+
if (e.src.charCodeAt(n) !== 92 || (n++, n >= r)) return !1;
|
|
2592
|
+
let i = e.src.charCodeAt(n);
|
|
2593
|
+
if (i === 10) {
|
|
2594
|
+
for (t || e.push("hardbreak", "br", 0), n++; n < r && (i = e.src.charCodeAt(n), V(i));) n++;
|
|
2595
|
+
return e.pos = n, !0;
|
|
2596
|
+
}
|
|
2597
|
+
let a = e.src[n];
|
|
2598
|
+
if (i >= 55296 && i <= 56319 && n + 1 < r) {
|
|
2599
|
+
let t = e.src.charCodeAt(n + 1);
|
|
2600
|
+
t >= 56320 && t <= 57343 && (a += e.src[n + 1], n++);
|
|
2601
|
+
}
|
|
2602
|
+
let o = "\\" + a;
|
|
2603
|
+
if (!t) {
|
|
2604
|
+
let t = e.push("text_special", "", 0);
|
|
2605
|
+
i < 256 && $r[i] !== 0 ? t.content = a : t.content = o, t.markup = o, t.info = "escape";
|
|
2606
|
+
}
|
|
2607
|
+
return e.pos = n + 1, !0;
|
|
2608
|
+
}
|
|
2609
|
+
//#endregion
|
|
2610
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/rules_inline/backticks.mjs
|
|
2611
|
+
function ti(e, t) {
|
|
2612
|
+
let n = e.pos;
|
|
2613
|
+
if (e.src.charCodeAt(n) !== 96) return !1;
|
|
2614
|
+
let r = n;
|
|
2615
|
+
n++;
|
|
2616
|
+
let i = e.posMax;
|
|
2617
|
+
for (; n < i && e.src.charCodeAt(n) === 96;) n++;
|
|
2618
|
+
let a = e.src.slice(r, n), o = a.length;
|
|
2619
|
+
if (e.backticksScanned && (e.backticks[o] || 0) <= r) return t || (e.pending += a), e.pos += o, !0;
|
|
2620
|
+
let s = n, c;
|
|
2621
|
+
for (; (c = e.src.indexOf("`", s)) !== -1;) {
|
|
2622
|
+
for (s = c + 1; s < i && e.src.charCodeAt(s) === 96;) s++;
|
|
2623
|
+
let r = s - c;
|
|
2624
|
+
if (r === o) {
|
|
2625
|
+
if (!t) {
|
|
2626
|
+
let t = e.push("code_inline", "code", 0);
|
|
2627
|
+
t.markup = a, t.content = e.src.slice(n, c).replace(/\n/g, " ").replace(/^ (.+) $/, "$1");
|
|
2628
|
+
}
|
|
2629
|
+
return e.pos = s, !0;
|
|
2630
|
+
}
|
|
2631
|
+
e.backticks[r] = c;
|
|
2632
|
+
}
|
|
2633
|
+
return e.backticksScanned = !0, t || (e.pending += a), e.pos += o, !0;
|
|
2634
|
+
}
|
|
2635
|
+
//#endregion
|
|
2636
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs
|
|
2637
|
+
function ni(e, t) {
|
|
2638
|
+
let n = e.pos, r = e.src.charCodeAt(n);
|
|
2639
|
+
if (t || r !== 126) return !1;
|
|
2640
|
+
let i = e.scanDelims(e.pos, !0), a = i.length, o = String.fromCharCode(r);
|
|
2641
|
+
if (a < 2) return !1;
|
|
2642
|
+
let s;
|
|
2643
|
+
a % 2 && (s = e.push("text", "", 0), s.content = o, a--);
|
|
2644
|
+
for (let t = 0; t < a; t += 2) s = e.push("text", "", 0), s.content = o + o, e.delimiters.push({
|
|
2645
|
+
marker: r,
|
|
2646
|
+
length: 0,
|
|
2647
|
+
token: e.tokens.length - 1,
|
|
2648
|
+
end: -1,
|
|
2649
|
+
open: i.can_open,
|
|
2650
|
+
close: i.can_close
|
|
2651
|
+
});
|
|
2652
|
+
return e.pos += i.length, !0;
|
|
2653
|
+
}
|
|
2654
|
+
function ri(e, t) {
|
|
2655
|
+
let n, r = [], i = t.length;
|
|
2656
|
+
for (let a = 0; a < i; a++) {
|
|
2657
|
+
let i = t[a];
|
|
2658
|
+
if (i.marker !== 126 || i.end === -1) continue;
|
|
2659
|
+
let o = t[i.end];
|
|
2660
|
+
n = e.tokens[i.token], n.type = "s_open", n.tag = "s", n.nesting = 1, n.markup = "~~", n.content = "", n = e.tokens[o.token], n.type = "s_close", n.tag = "s", n.nesting = -1, n.markup = "~~", n.content = "", e.tokens[o.token - 1].type === "text" && e.tokens[o.token - 1].content === "~" && r.push(o.token - 1);
|
|
2661
|
+
}
|
|
2662
|
+
for (; r.length;) {
|
|
2663
|
+
let t = r.pop(), i = t + 1;
|
|
2664
|
+
for (; i < e.tokens.length && e.tokens[i].type === "s_close";) i++;
|
|
2665
|
+
i--, t !== i && (n = e.tokens[i], e.tokens[i] = e.tokens[t], e.tokens[t] = n);
|
|
2666
|
+
}
|
|
2667
|
+
}
|
|
2668
|
+
function ii(e) {
|
|
2669
|
+
let t = e.tokens_meta, n = e.tokens_meta.length;
|
|
2670
|
+
ri(e, e.delimiters);
|
|
2671
|
+
for (let r = 0; r < n; r++) t[r] && t[r].delimiters && ri(e, t[r].delimiters);
|
|
2672
|
+
}
|
|
2673
|
+
var ai = {
|
|
2674
|
+
tokenize: ni,
|
|
2675
|
+
postProcess: ii
|
|
2676
|
+
};
|
|
2677
|
+
//#endregion
|
|
2678
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/rules_inline/emphasis.mjs
|
|
2679
|
+
function oi(e, t) {
|
|
2680
|
+
let n = e.pos, r = e.src.charCodeAt(n);
|
|
2681
|
+
if (t || r !== 95 && r !== 42) return !1;
|
|
2682
|
+
let i = e.scanDelims(e.pos, r === 42);
|
|
2683
|
+
for (let t = 0; t < i.length; t++) {
|
|
2684
|
+
let t = e.push("text", "", 0);
|
|
2685
|
+
t.content = String.fromCharCode(r), e.delimiters.push({
|
|
2686
|
+
marker: r,
|
|
2687
|
+
length: i.length,
|
|
2688
|
+
token: e.tokens.length - 1,
|
|
2689
|
+
end: -1,
|
|
2690
|
+
open: i.can_open,
|
|
2691
|
+
close: i.can_close
|
|
2692
|
+
});
|
|
2693
|
+
}
|
|
2694
|
+
return e.pos += i.length, !0;
|
|
2695
|
+
}
|
|
2696
|
+
function si(e, t) {
|
|
2697
|
+
let n = t.length;
|
|
2698
|
+
for (let r = n - 1; r >= 0; r--) {
|
|
2699
|
+
let n = t[r];
|
|
2700
|
+
if (n.marker !== 95 && n.marker !== 42 || n.end === -1) continue;
|
|
2701
|
+
let i = t[n.end], a = r > 0 && t[r - 1].end === n.end + 1 && t[r - 1].marker === n.marker && t[r - 1].token === n.token - 1 && t[n.end + 1].token === i.token + 1, o = String.fromCharCode(n.marker), s = e.tokens[n.token];
|
|
2702
|
+
s.type = a ? "strong_open" : "em_open", s.tag = a ? "strong" : "em", s.nesting = 1, s.markup = a ? o + o : o, s.content = "";
|
|
2703
|
+
let c = e.tokens[i.token];
|
|
2704
|
+
c.type = a ? "strong_close" : "em_close", c.tag = a ? "strong" : "em", c.nesting = -1, c.markup = a ? o + o : o, c.content = "", a && (e.tokens[t[r - 1].token].content = "", e.tokens[t[n.end + 1].token].content = "", r--);
|
|
2705
|
+
}
|
|
2706
|
+
}
|
|
2707
|
+
function ci(e) {
|
|
2708
|
+
let t = e.tokens_meta, n = e.tokens_meta.length;
|
|
2709
|
+
si(e, e.delimiters);
|
|
2710
|
+
for (let r = 0; r < n; r++) t[r] && t[r].delimiters && si(e, t[r].delimiters);
|
|
2711
|
+
}
|
|
2712
|
+
var li = {
|
|
2713
|
+
tokenize: oi,
|
|
2714
|
+
postProcess: ci
|
|
2715
|
+
};
|
|
2716
|
+
//#endregion
|
|
2717
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/rules_inline/link.mjs
|
|
2718
|
+
function ui(e, t) {
|
|
2719
|
+
let n, r, i, a, o = "", s = "", c = e.pos, l = !0;
|
|
2720
|
+
if (e.src.charCodeAt(e.pos) !== 91) return !1;
|
|
2721
|
+
let u = e.pos, d = e.posMax, f = e.pos + 1, p = e.md.helpers.parseLinkLabel(e, e.pos, !0);
|
|
2722
|
+
if (p < 0) return !1;
|
|
2723
|
+
let m = p + 1;
|
|
2724
|
+
if (m < d && e.src.charCodeAt(m) === 40) {
|
|
2725
|
+
for (l = !1, m++; m < d && (n = e.src.charCodeAt(m), !(!V(n) && n !== 10)); m++);
|
|
2726
|
+
if (m >= d) return !1;
|
|
2727
|
+
if (c = m, i = e.md.helpers.parseLinkDestination(e.src, m, e.posMax), i.ok) {
|
|
2728
|
+
for (o = e.md.normalizeLink(i.str), e.md.validateLink(o) ? m = i.pos : o = "", c = m; m < d && (n = e.src.charCodeAt(m), !(!V(n) && n !== 10)); m++);
|
|
2729
|
+
if (i = e.md.helpers.parseLinkTitle(e.src, m, e.posMax), m < d && c !== m && i.ok) for (s = i.str, m = i.pos; m < d && (n = e.src.charCodeAt(m), !(!V(n) && n !== 10)); m++);
|
|
2730
|
+
}
|
|
2731
|
+
(m >= d || e.src.charCodeAt(m) !== 41) && (l = !0), m++;
|
|
2732
|
+
}
|
|
2733
|
+
if (l) {
|
|
2734
|
+
if (e.env.references === void 0) return !1;
|
|
2735
|
+
if (m < d && e.src.charCodeAt(m) === 91 ? (c = m + 1, m = e.md.helpers.parseLinkLabel(e, m), m >= 0 ? r = e.src.slice(c, m++) : m = p + 1) : m = p + 1, r ||= e.src.slice(f, p), a = e.env.references[Wn(r)], !a) return e.pos = u, !1;
|
|
2736
|
+
o = a.href, s = a.title;
|
|
2737
|
+
}
|
|
2738
|
+
if (!t) {
|
|
2739
|
+
e.pos = f, e.posMax = p;
|
|
2740
|
+
let t = e.push("link_open", "a", 1), n = [["href", o]];
|
|
2741
|
+
t.attrs = n, s && n.push(["title", s]), e.linkLevel++, e.md.inline.tokenize(e), e.linkLevel--, e.push("link_close", "a", -1);
|
|
2742
|
+
}
|
|
2743
|
+
return e.pos = m, e.posMax = d, !0;
|
|
2744
|
+
}
|
|
2745
|
+
//#endregion
|
|
2746
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/rules_inline/image.mjs
|
|
2747
|
+
function di(e, t) {
|
|
2748
|
+
let n, r, i, a, o, s, c, l, u = "", d = e.pos, f = e.posMax;
|
|
2749
|
+
if (e.src.charCodeAt(e.pos) !== 33 || e.src.charCodeAt(e.pos + 1) !== 91) return !1;
|
|
2750
|
+
let p = e.pos + 2, m = e.md.helpers.parseLinkLabel(e, e.pos + 1, !1);
|
|
2751
|
+
if (m < 0) return !1;
|
|
2752
|
+
if (a = m + 1, a < f && e.src.charCodeAt(a) === 40) {
|
|
2753
|
+
for (a++; a < f && (n = e.src.charCodeAt(a), !(!V(n) && n !== 10)); a++);
|
|
2754
|
+
if (a >= f) return !1;
|
|
2755
|
+
for (l = a, s = e.md.helpers.parseLinkDestination(e.src, a, e.posMax), s.ok && (u = e.md.normalizeLink(s.str), e.md.validateLink(u) ? a = s.pos : u = ""), l = a; a < f && (n = e.src.charCodeAt(a), !(!V(n) && n !== 10)); a++);
|
|
2756
|
+
if (s = e.md.helpers.parseLinkTitle(e.src, a, e.posMax), a < f && l !== a && s.ok) for (c = s.str, a = s.pos; a < f && (n = e.src.charCodeAt(a), !(!V(n) && n !== 10)); a++);
|
|
2757
|
+
else c = "";
|
|
2758
|
+
if (a >= f || e.src.charCodeAt(a) !== 41) return e.pos = d, !1;
|
|
2759
|
+
a++;
|
|
2760
|
+
} else {
|
|
2761
|
+
if (e.env.references === void 0) return !1;
|
|
2762
|
+
if (a < f && e.src.charCodeAt(a) === 91 ? (l = a + 1, a = e.md.helpers.parseLinkLabel(e, a), a >= 0 ? i = e.src.slice(l, a++) : a = m + 1) : a = m + 1, i ||= e.src.slice(p, m), o = e.env.references[Wn(i)], !o) return e.pos = d, !1;
|
|
2763
|
+
u = o.href, c = o.title;
|
|
2764
|
+
}
|
|
2765
|
+
if (!t) {
|
|
2766
|
+
r = e.src.slice(p, m);
|
|
2767
|
+
let t = [];
|
|
2768
|
+
e.md.inline.parse(r, e.md, e.env, t);
|
|
2769
|
+
let n = e.push("image", "img", 0), i = [["src", u], ["alt", ""]];
|
|
2770
|
+
n.attrs = i, n.children = t, n.content = r, c && i.push(["title", c]);
|
|
2771
|
+
}
|
|
2772
|
+
return e.pos = a, e.posMax = f, !0;
|
|
2773
|
+
}
|
|
2774
|
+
//#endregion
|
|
2775
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/rules_inline/autolink.mjs
|
|
2776
|
+
var fi = /^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/, pi = /^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;
|
|
2777
|
+
function mi(e, t) {
|
|
2778
|
+
let n = e.pos;
|
|
2779
|
+
if (e.src.charCodeAt(n) !== 60) return !1;
|
|
2780
|
+
let r = e.pos, i = e.posMax;
|
|
2781
|
+
for (;;) {
|
|
2782
|
+
if (++n >= i) return !1;
|
|
2783
|
+
let t = e.src.charCodeAt(n);
|
|
2784
|
+
if (t === 60) return !1;
|
|
2785
|
+
if (t === 62) break;
|
|
2786
|
+
}
|
|
2787
|
+
let a = e.src.slice(r + 1, n);
|
|
2788
|
+
if (pi.test(a)) {
|
|
2789
|
+
let n = e.md.normalizeLink(a);
|
|
2790
|
+
if (!e.md.validateLink(n)) return !1;
|
|
2791
|
+
if (!t) {
|
|
2792
|
+
let t = e.push("link_open", "a", 1);
|
|
2793
|
+
t.attrs = [["href", n]], t.markup = "autolink", t.info = "auto";
|
|
2794
|
+
let r = e.push("text", "", 0);
|
|
2795
|
+
r.content = e.md.normalizeLinkText(a);
|
|
2796
|
+
let i = e.push("link_close", "a", -1);
|
|
2797
|
+
i.markup = "autolink", i.info = "auto";
|
|
2798
|
+
}
|
|
2799
|
+
return e.pos += a.length + 2, !0;
|
|
2800
|
+
}
|
|
2801
|
+
if (fi.test(a)) {
|
|
2802
|
+
let n = e.md.normalizeLink("mailto:" + a);
|
|
2803
|
+
if (!e.md.validateLink(n)) return !1;
|
|
2804
|
+
if (!t) {
|
|
2805
|
+
let t = e.push("link_open", "a", 1);
|
|
2806
|
+
t.attrs = [["href", n]], t.markup = "autolink", t.info = "auto";
|
|
2807
|
+
let r = e.push("text", "", 0);
|
|
2808
|
+
r.content = e.md.normalizeLinkText(a);
|
|
2809
|
+
let i = e.push("link_close", "a", -1);
|
|
2810
|
+
i.markup = "autolink", i.info = "auto";
|
|
2811
|
+
}
|
|
2812
|
+
return e.pos += a.length + 2, !0;
|
|
2813
|
+
}
|
|
2814
|
+
return !1;
|
|
2815
|
+
}
|
|
2816
|
+
//#endregion
|
|
2817
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/rules_inline/html_inline.mjs
|
|
2818
|
+
function hi(e) {
|
|
2819
|
+
return /^<a[>\s]/i.test(e);
|
|
2820
|
+
}
|
|
2821
|
+
function gi(e) {
|
|
2822
|
+
return /^<\/a\s*>/i.test(e);
|
|
2823
|
+
}
|
|
2824
|
+
function _i(e) {
|
|
2825
|
+
let t = e | 32;
|
|
2826
|
+
return t >= 97 && t <= 122;
|
|
2827
|
+
}
|
|
2828
|
+
function vi(e, t) {
|
|
2829
|
+
if (!e.md.options.html) return !1;
|
|
2830
|
+
let n = e.posMax, r = e.pos;
|
|
2831
|
+
if (e.src.charCodeAt(r) !== 60 || r + 2 >= n) return !1;
|
|
2832
|
+
let i = e.src.charCodeAt(r + 1);
|
|
2833
|
+
if (i !== 33 && i !== 63 && i !== 47 && !_i(i)) return !1;
|
|
2834
|
+
let a = e.src.slice(r).match(zr);
|
|
2835
|
+
if (!a) return !1;
|
|
2836
|
+
if (!t) {
|
|
2837
|
+
let t = e.push("html_inline", "", 0);
|
|
2838
|
+
t.content = a[0], hi(t.content) && e.linkLevel++, gi(t.content) && e.linkLevel--;
|
|
2839
|
+
}
|
|
2840
|
+
return e.pos += a[0].length, !0;
|
|
2841
|
+
}
|
|
2842
|
+
//#endregion
|
|
2843
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/rules_inline/entity.mjs
|
|
2844
|
+
var yi = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i, bi = /^&([a-z][a-z0-9]{1,31});/i;
|
|
2845
|
+
function xi(e, t) {
|
|
2846
|
+
let n = e.pos, r = e.posMax;
|
|
2847
|
+
if (e.src.charCodeAt(n) !== 38 || n + 1 >= r) return !1;
|
|
2848
|
+
if (e.src.charCodeAt(n + 1) === 35) {
|
|
2849
|
+
let r = e.src.slice(n).match(yi);
|
|
2850
|
+
if (r) {
|
|
2851
|
+
if (!t) {
|
|
2852
|
+
let t = r[1][0].toLowerCase() === "x" ? parseInt(r[1].slice(1), 16) : parseInt(r[1], 10), n = e.push("text_special", "", 0);
|
|
2853
|
+
n.content = En(t) ? Dn(t) : Dn(65533), n.markup = r[0], n.info = "entity";
|
|
2854
|
+
}
|
|
2855
|
+
return e.pos += r[0].length, !0;
|
|
2856
|
+
}
|
|
2857
|
+
} else {
|
|
2858
|
+
let r = e.src.slice(n).match(bi);
|
|
2859
|
+
if (r) {
|
|
2860
|
+
let n = vn(r[0]);
|
|
2861
|
+
if (n !== r[0]) {
|
|
2862
|
+
if (!t) {
|
|
2863
|
+
let t = e.push("text_special", "", 0);
|
|
2864
|
+
t.content = n, t.markup = r[0], t.info = "entity";
|
|
2865
|
+
}
|
|
2866
|
+
return e.pos += r[0].length, !0;
|
|
2867
|
+
}
|
|
2868
|
+
}
|
|
2869
|
+
}
|
|
2870
|
+
return !1;
|
|
2871
|
+
}
|
|
2872
|
+
//#endregion
|
|
2873
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs
|
|
2874
|
+
function Si(e) {
|
|
2875
|
+
let t = {}, n = e.length;
|
|
2876
|
+
if (!n) return;
|
|
2877
|
+
let r = 0, i = -2, a = [];
|
|
2878
|
+
for (let o = 0; o < n; o++) {
|
|
2879
|
+
let n = e[o];
|
|
2880
|
+
if (a.push(0), (e[r].marker !== n.marker || i !== n.token - 1) && (r = o), i = n.token, n.length = n.length || 0, !n.close) continue;
|
|
2881
|
+
t.hasOwnProperty(n.marker) || (t[n.marker] = [
|
|
2882
|
+
-1,
|
|
2883
|
+
-1,
|
|
2884
|
+
-1,
|
|
2885
|
+
-1,
|
|
2886
|
+
-1,
|
|
2887
|
+
-1
|
|
2888
|
+
]);
|
|
2889
|
+
let s = t[n.marker][(n.open ? 3 : 0) + n.length % 3], c = r - a[r] - 1, l = c;
|
|
2890
|
+
for (; c > s; c -= a[c] + 1) {
|
|
2891
|
+
let t = e[c];
|
|
2892
|
+
if (t.marker === n.marker && t.open && t.end < 0) {
|
|
2893
|
+
let r = !1;
|
|
2894
|
+
if ((t.close || n.open) && (t.length + n.length) % 3 == 0 && (t.length % 3 != 0 || n.length % 3 != 0) && (r = !0), !r) {
|
|
2895
|
+
let r = c > 0 && !e[c - 1].open ? a[c - 1] + 1 : 0;
|
|
2896
|
+
a[o] = o - c + r, a[c] = r, n.open = !1, t.end = o, t.close = !1, l = -1, i = -2;
|
|
2897
|
+
break;
|
|
2898
|
+
}
|
|
2899
|
+
}
|
|
2900
|
+
}
|
|
2901
|
+
l !== -1 && (t[n.marker][(n.open ? 3 : 0) + (n.length || 0) % 3] = l);
|
|
2902
|
+
}
|
|
2903
|
+
}
|
|
2904
|
+
function Ci(e) {
|
|
2905
|
+
let t = e.tokens_meta, n = e.tokens_meta.length;
|
|
2906
|
+
Si(e.delimiters);
|
|
2907
|
+
for (let e = 0; e < n; e++) t[e] && t[e].delimiters && Si(t[e].delimiters);
|
|
2908
|
+
}
|
|
2909
|
+
//#endregion
|
|
2910
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/rules_inline/fragments_join.mjs
|
|
2911
|
+
function wi(e) {
|
|
2912
|
+
let t, n, r = 0, i = e.tokens, a = e.tokens.length;
|
|
2913
|
+
for (t = n = 0; t < a; t++) i[t].nesting < 0 && r--, i[t].level = r, i[t].nesting > 0 && r++, i[t].type === "text" && t + 1 < a && i[t + 1].type === "text" ? i[t + 1].content = i[t].content + i[t + 1].content : (t !== n && (i[n] = i[t]), n++);
|
|
2914
|
+
t !== n && (i.length = n);
|
|
2915
|
+
}
|
|
2916
|
+
//#endregion
|
|
2917
|
+
//#region ../../node_modules/.pnpm/markdown-it@14.2.0/node_modules/markdown-it/lib/parser_inline.mjs
|
|
2918
|
+
var Ti = [
|
|
2919
|
+
["text", Yr],
|
|
2920
|
+
["linkify", Zr],
|
|
2921
|
+
["newline", Qr],
|
|
2922
|
+
["escape", ei],
|
|
2923
|
+
["backticks", ti],
|
|
2924
|
+
["strikethrough", ai.tokenize],
|
|
2925
|
+
["emphasis", li.tokenize],
|
|
2926
|
+
["link", ui],
|
|
2927
|
+
["image", di],
|
|
2928
|
+
["autolink", mi],
|
|
2929
|
+
["html_inline", vi],
|
|
2930
|
+
["entity", xi]
|
|
2931
|
+
], Ei = [
|
|
2932
|
+
["balance_pairs", Ci],
|
|
2933
|
+
["strikethrough", ai.postProcess],
|
|
2934
|
+
["emphasis", li.postProcess],
|
|
2935
|
+
["fragments_join", wi]
|
|
2936
|
+
];
|
|
2937
|
+
function Di() {
|
|
2938
|
+
this.ruler = new W();
|
|
2939
|
+
for (let e = 0; e < Ti.length; e++) this.ruler.push(Ti[e][0], Ti[e][1]);
|
|
2940
|
+
this.ruler2 = new W();
|
|
2941
|
+
for (let e = 0; e < Ei.length; e++) this.ruler2.push(Ei[e][0], Ei[e][1]);
|
|
2942
|
+
}
|
|
2943
|
+
Di.prototype.skipToken = function(e) {
|
|
2944
|
+
let t = e.pos, n = this.ruler.getRules(""), r = n.length, i = e.md.options.maxNesting, a = e.cache;
|
|
2945
|
+
if (a[t] !== void 0) {
|
|
2946
|
+
e.pos = a[t];
|
|
2947
|
+
return;
|
|
2948
|
+
}
|
|
2949
|
+
let o = !1;
|
|
2950
|
+
if (e.level < i) {
|
|
2951
|
+
for (let i = 0; i < r; i++) if (e.level++, o = n[i](e, !0), e.level--, o) {
|
|
2952
|
+
if (t >= e.pos) throw Error("inline rule didn't increment state.pos");
|
|
2953
|
+
break;
|
|
2954
|
+
}
|
|
2955
|
+
} else e.pos = e.posMax;
|
|
2956
|
+
o || e.pos++, a[t] = e.pos;
|
|
2957
|
+
}, Di.prototype.tokenize = function(e) {
|
|
2958
|
+
let t = this.ruler.getRules(""), n = t.length, r = e.posMax, i = e.md.options.maxNesting;
|
|
2959
|
+
for (; e.pos < r;) {
|
|
2960
|
+
let a = e.pos, o = !1;
|
|
2961
|
+
if (e.level < i) {
|
|
2962
|
+
for (let r = 0; r < n; r++) if (o = t[r](e, !1), o) {
|
|
2963
|
+
if (a >= e.pos) throw Error("inline rule didn't increment state.pos");
|
|
2964
|
+
break;
|
|
2965
|
+
}
|
|
2966
|
+
}
|
|
2967
|
+
if (o) {
|
|
2968
|
+
if (e.pos >= r) break;
|
|
2969
|
+
continue;
|
|
2970
|
+
}
|
|
2971
|
+
e.pending += e.src[e.pos++];
|
|
2972
|
+
}
|
|
2973
|
+
e.pending && e.pushPending();
|
|
2974
|
+
}, Di.prototype.parse = function(e, t, n, r) {
|
|
2975
|
+
let i = new this.State(e, t, n, r);
|
|
2976
|
+
this.tokenize(i);
|
|
2977
|
+
let a = this.ruler2.getRules(""), o = a.length;
|
|
2978
|
+
for (let e = 0; e < o; e++) a[e](i);
|
|
2979
|
+
}, Di.prototype.State = qr;
|
|
2980
|
+
//#endregion
|
|
2981
|
+
//#region ../../node_modules/.pnpm/linkify-it@5.0.2/node_modules/linkify-it/lib/re.mjs
|
|
2982
|
+
function Oi(e) {
|
|
2983
|
+
let t = {};
|
|
2984
|
+
e ||= {}, t.src_Any = Yt.source, t.src_Cc = Xt.source, t.src_Z = en.source, t.src_P = Qt.source, t.src_ZPCc = [
|
|
2985
|
+
t.src_Z,
|
|
2986
|
+
t.src_P,
|
|
2987
|
+
t.src_Cc
|
|
2988
|
+
].join("|"), t.src_ZCc = [t.src_Z, t.src_Cc].join("|");
|
|
2989
|
+
let n = "[><|]";
|
|
2990
|
+
return t.src_pseudo_letter = `(?:(?!${n}|${t.src_ZPCc})${t.src_Any})`, t.src_ip4 = "(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)", t.src_auth = `(?:(?:(?!${t.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`, t.src_port = "(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?", t.src_host_terminator = `(?=$|${n}|${t.src_ZPCc})(?!${e["---"] ? "-(?!--)|" : "-|"}_|:\\d|\\.-|\\.(?!$|${t.src_ZPCc}))`, t.src_path = `(?:[/?#](?:(?!${t.src_ZCc}|${n}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${t.src_ZCc}|\\]).)*\\]|\\((?:(?!${t.src_ZCc}|[)]).)*\\)|\\{(?:(?!${t.src_ZCc}|[}]).)*\\}|\\"(?:(?!${t.src_ZCc}|["]).)+\\"|\\'(?:(?!${t.src_ZCc}|[']).)+\\'|\\'(?=${t.src_pseudo_letter}|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!${t.src_ZCc}|[.]|$)|` + (e["---"] ? "\\-(?!--(?:[^-]|$))(?:-*)|" : "\\-+|") + `,(?!${t.src_ZCc}|$)|;(?!${t.src_ZCc}|$)|\\!+(?!${t.src_ZCc}|[!]|$)|\\?(?!${t.src_ZCc}|[?]|$))+|\\/)?`, t.src_email_name = "[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\\"\\.a-zA-Z0-9_]{0,63}", t.src_xn = "xn--[a-z0-9\\-]{1,59}", t.src_domain_root = "(?:" + t.src_xn + `|${t.src_pseudo_letter}{1,63})`, t.src_domain = "(?:" + t.src_xn + `|(?:${t.src_pseudo_letter})|(?:${t.src_pseudo_letter}(?:-|${t.src_pseudo_letter}){0,61}${t.src_pseudo_letter}))`, t.src_host = `(?:(?:(?:(?:${t.src_domain})\\.)*${t.src_domain}))`, t.tpl_host_fuzzy = "(?:" + t.src_ip4 + `|(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%)))`, t.tpl_host_no_ip_fuzzy = `(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%))`, t.src_host_strict = t.src_host + t.src_host_terminator, t.tpl_host_fuzzy_strict = t.tpl_host_fuzzy + t.src_host_terminator, t.src_host_port_strict = t.src_host + t.src_port + t.src_host_terminator, t.tpl_host_port_fuzzy_strict = t.tpl_host_fuzzy + t.src_port + t.src_host_terminator, t.tpl_host_port_no_ip_fuzzy_strict = t.tpl_host_no_ip_fuzzy + t.src_port + t.src_host_terminator, t.tpl_host_fuzzy_test = `localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:${t.src_ZPCc}|>|$))`, t.tpl_email_fuzzy = `(^|${n}|"|\\(|${t.src_ZCc})(${t.src_email_name}@${t.tpl_host_fuzzy_strict})`, t.tpl_link_fuzzy = `(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${t.src_ZPCc}))((?![$+<=>^\`|\uff5c])${t.tpl_host_port_fuzzy_strict}${t.src_path})`, t.tpl_link_no_ip_fuzzy = `(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${t.src_ZPCc}))((?![$+<=>^\`|\uff5c])${t.tpl_host_port_no_ip_fuzzy_strict}${t.src_path})`, t;
|
|
2991
|
+
}
|
|
2992
|
+
//#endregion
|
|
2993
|
+
//#region ../../node_modules/.pnpm/linkify-it@5.0.2/node_modules/linkify-it/index.mjs
|
|
2994
|
+
function ki(e) {
|
|
2995
|
+
return Array.prototype.slice.call(arguments, 1).forEach(function(t) {
|
|
2996
|
+
t && Object.keys(t).forEach(function(n) {
|
|
2997
|
+
e[n] = t[n];
|
|
2998
|
+
});
|
|
2999
|
+
}), e;
|
|
3000
|
+
}
|
|
3001
|
+
function Ai(e) {
|
|
3002
|
+
return Object.prototype.toString.call(e);
|
|
3003
|
+
}
|
|
3004
|
+
function ji(e) {
|
|
3005
|
+
return Ai(e) === "[object String]";
|
|
3006
|
+
}
|
|
3007
|
+
function Mi(e) {
|
|
3008
|
+
return Ai(e) === "[object Object]";
|
|
3009
|
+
}
|
|
3010
|
+
function Ni(e) {
|
|
3011
|
+
return Ai(e) === "[object RegExp]";
|
|
3012
|
+
}
|
|
3013
|
+
function Pi(e) {
|
|
3014
|
+
return Ai(e) === "[object Function]";
|
|
3015
|
+
}
|
|
3016
|
+
function Fi(e) {
|
|
3017
|
+
return e.replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&");
|
|
3018
|
+
}
|
|
3019
|
+
var Ii = {
|
|
3020
|
+
fuzzyLink: !0,
|
|
3021
|
+
fuzzyEmail: !0,
|
|
3022
|
+
fuzzyIP: !1
|
|
3023
|
+
};
|
|
3024
|
+
function Li(e) {
|
|
3025
|
+
return Object.keys(e || {}).reduce(function(e, t) {
|
|
3026
|
+
return e || Ii.hasOwnProperty(t);
|
|
3027
|
+
}, !1);
|
|
3028
|
+
}
|
|
3029
|
+
var Ri = {
|
|
3030
|
+
"http:": { validate: function(e, t, n) {
|
|
3031
|
+
let r = e.slice(t);
|
|
3032
|
+
return n.re.http || (n.re.http = RegExp(`^\\/\\/${n.re.src_auth}${n.re.src_host_port_strict}${n.re.src_path}`, "i")), n.re.http.test(r) ? r.match(n.re.http)[0].length : 0;
|
|
3033
|
+
} },
|
|
3034
|
+
"https:": "http:",
|
|
3035
|
+
"ftp:": "http:",
|
|
3036
|
+
"//": { validate: function(e, t, n) {
|
|
3037
|
+
let r = e.slice(t);
|
|
3038
|
+
return n.re.no_http || (n.re.no_http = RegExp("^" + n.re.src_auth + `(?:localhost|(?:(?:${n.re.src_domain})\\.)+${n.re.src_domain_root})` + n.re.src_port + n.re.src_host_terminator + n.re.src_path, "i")), n.re.no_http.test(r) ? t >= 3 && e[t - 3] === ":" || t >= 3 && e[t - 3] === "/" ? 0 : r.match(n.re.no_http)[0].length : 0;
|
|
3039
|
+
} },
|
|
3040
|
+
"mailto:": { validate: function(e, t, n) {
|
|
3041
|
+
let r = e.slice(t);
|
|
3042
|
+
return n.re.mailto || (n.re.mailto = RegExp(`^${n.re.src_email_name}@${n.re.src_host_strict}`, "i")), n.re.mailto.test(r) ? r.match(n.re.mailto)[0].length : 0;
|
|
3043
|
+
} }
|
|
3044
|
+
}, zi = "a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]", Bi = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");
|
|
3045
|
+
function Vi(e) {
|
|
3046
|
+
return function(t, n) {
|
|
3047
|
+
let r = t.slice(n);
|
|
3048
|
+
return e.test(r) ? r.match(e)[0].length : 0;
|
|
3049
|
+
};
|
|
3050
|
+
}
|
|
3051
|
+
function Hi() {
|
|
3052
|
+
return function(e, t) {
|
|
3053
|
+
t.normalize(e);
|
|
3054
|
+
};
|
|
3055
|
+
}
|
|
3056
|
+
function Ui(e) {
|
|
3057
|
+
let t = e.re = Oi(e.__opts__), n = e.__tlds__.slice();
|
|
3058
|
+
e.onCompile(), e.__tlds_replaced__ || n.push(zi), n.push(t.src_xn), t.src_tlds = n.join("|");
|
|
3059
|
+
function r(e) {
|
|
3060
|
+
return e.replace("%TLDS%", t.src_tlds);
|
|
3061
|
+
}
|
|
3062
|
+
t.email_fuzzy = RegExp(r(t.tpl_email_fuzzy), "i"), t.email_fuzzy_global = RegExp(r(t.tpl_email_fuzzy), "ig"), t.link_fuzzy = RegExp(r(t.tpl_link_fuzzy), "i"), t.link_fuzzy_global = RegExp(r(t.tpl_link_fuzzy), "ig"), t.link_no_ip_fuzzy = RegExp(r(t.tpl_link_no_ip_fuzzy), "i"), t.link_no_ip_fuzzy_global = RegExp(r(t.tpl_link_no_ip_fuzzy), "ig"), t.host_fuzzy_test = RegExp(r(t.tpl_host_fuzzy_test), "i");
|
|
3063
|
+
let i = [];
|
|
3064
|
+
e.__compiled__ = {};
|
|
3065
|
+
function a(e, t) {
|
|
3066
|
+
throw Error(`(LinkifyIt) Invalid schema "${e}": ${t}`);
|
|
3067
|
+
}
|
|
3068
|
+
Object.keys(e.__schemas__).forEach(function(t) {
|
|
3069
|
+
let n = e.__schemas__[t];
|
|
3070
|
+
if (n === null) return;
|
|
3071
|
+
let r = {
|
|
3072
|
+
validate: null,
|
|
3073
|
+
link: null
|
|
3074
|
+
};
|
|
3075
|
+
if (e.__compiled__[t] = r, Mi(n)) {
|
|
3076
|
+
Ni(n.validate) ? r.validate = Vi(n.validate) : Pi(n.validate) ? r.validate = n.validate : a(t, n), Pi(n.normalize) ? r.normalize = n.normalize : n.normalize ? a(t, n) : r.normalize = Hi();
|
|
3077
|
+
return;
|
|
3078
|
+
}
|
|
3079
|
+
if (ji(n)) {
|
|
3080
|
+
i.push(t);
|
|
3081
|
+
return;
|
|
3082
|
+
}
|
|
3083
|
+
a(t, n);
|
|
3084
|
+
}), i.forEach(function(t) {
|
|
3085
|
+
e.__compiled__[e.__schemas__[t]] && (e.__compiled__[t].validate = e.__compiled__[e.__schemas__[t]].validate, e.__compiled__[t].normalize = e.__compiled__[e.__schemas__[t]].normalize);
|
|
3086
|
+
}), e.__compiled__[""] = {
|
|
3087
|
+
validate: null,
|
|
3088
|
+
normalize: Hi()
|
|
3089
|
+
};
|
|
3090
|
+
let o = Object.keys(e.__compiled__).filter(function(t) {
|
|
3091
|
+
return t.length > 0 && e.__compiled__[t];
|
|
3092
|
+
}).map(Fi).join("|");
|
|
3093
|
+
e.re.schema_test = RegExp(`(^|(?!_)(?:[><\uff5c]|${t.src_ZPCc}))(${o})`, "i"), e.re.schema_search = RegExp(`(^|(?!_)(?:[><\uff5c]|${t.src_ZPCc}))(${o})`, "ig"), e.re.schema_at_start = RegExp(`^${e.re.schema_search.source}`, "i"), e.re.pretest = RegExp(`(${e.re.schema_test.source})|(${e.re.host_fuzzy_test.source})|@`, "i");
|
|
3094
|
+
}
|
|
3095
|
+
function Wi(e, t, n, r) {
|
|
3096
|
+
let i = e.slice(n, r);
|
|
3097
|
+
this.schema = t.toLowerCase(), this.index = n, this.lastIndex = r, this.raw = i, this.text = i, this.url = i;
|
|
3098
|
+
}
|
|
3099
|
+
function J(e, t) {
|
|
3100
|
+
if (!(this instanceof J)) return new J(e, t);
|
|
3101
|
+
t || Li(e) && (t = e, e = {}), this.__opts__ = ki({}, Ii, t), this.__schemas__ = ki({}, Ri, e), this.__compiled__ = {}, this.__tlds__ = Bi, this.__tlds_replaced__ = !1, this.re = {}, Ui(this);
|
|
3102
|
+
}
|
|
3103
|
+
J.prototype.add = function(e, t) {
|
|
3104
|
+
return this.__schemas__[e] = t, Ui(this), this;
|
|
3105
|
+
}, J.prototype.set = function(e) {
|
|
3106
|
+
return this.__opts__ = ki(this.__opts__, e), this;
|
|
3107
|
+
}, J.prototype.test = function(e) {
|
|
3108
|
+
if (!e.length) return !1;
|
|
3109
|
+
let t, n;
|
|
3110
|
+
if (this.re.schema_test.test(e)) {
|
|
3111
|
+
for (n = this.re.schema_search, n.lastIndex = 0; (t = n.exec(e)) !== null;) if (this.testSchemaAt(e, t[2], n.lastIndex)) return !0;
|
|
3112
|
+
}
|
|
3113
|
+
return !!(this.__opts__.fuzzyLink && this.__compiled__["http:"] && e.search(this.re.host_fuzzy_test) >= 0 && e.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy) !== null || this.__opts__.fuzzyEmail && this.__compiled__["mailto:"] && e.indexOf("@") >= 0 && e.match(this.re.email_fuzzy) !== null);
|
|
3114
|
+
}, J.prototype.pretest = function(e) {
|
|
3115
|
+
return this.re.pretest.test(e);
|
|
3116
|
+
}, J.prototype.testSchemaAt = function(e, t, n) {
|
|
3117
|
+
return this.__compiled__[t.toLowerCase()] ? this.__compiled__[t.toLowerCase()].validate(e, n, this) : 0;
|
|
3118
|
+
}, J.prototype.match = function(e) {
|
|
3119
|
+
let t = [], n = [], r = [], i = [], a, o, s;
|
|
3120
|
+
function c(e, t) {
|
|
3121
|
+
return e ? t ? e.index === t.index ? e.lastIndex >= t.lastIndex ? e : t : e.index < t.index ? e : t : e : t;
|
|
3122
|
+
}
|
|
3123
|
+
if (!e.length) return null;
|
|
3124
|
+
if (this.re.schema_test.test(e)) for (s = this.re.schema_search, s.lastIndex = 0; (a = s.exec(e)) !== null;) o = this.testSchemaAt(e, a[2], s.lastIndex), o && n.push({
|
|
3125
|
+
schema: a[2],
|
|
3126
|
+
index: a.index + a[1].length,
|
|
3127
|
+
lastIndex: a.index + a[0].length + o
|
|
3128
|
+
});
|
|
3129
|
+
if (this.__opts__.fuzzyLink && this.__compiled__["http:"]) for (s = this.__opts__.fuzzyIP ? this.re.link_fuzzy_global : this.re.link_no_ip_fuzzy_global, s.lastIndex = 0; (a = s.exec(e)) !== null;) r.push({
|
|
3130
|
+
schema: "",
|
|
3131
|
+
index: a.index + a[1].length,
|
|
3132
|
+
lastIndex: a.index + a[0].length
|
|
3133
|
+
});
|
|
3134
|
+
if (this.__opts__.fuzzyEmail && this.__compiled__["mailto:"]) for (s = this.re.email_fuzzy_global, s.lastIndex = 0; (a = s.exec(e)) !== null;) i.push({
|
|
3135
|
+
schema: "mailto:",
|
|
3136
|
+
index: a.index + a[1].length,
|
|
3137
|
+
lastIndex: a.index + a[0].length
|
|
3138
|
+
});
|
|
3139
|
+
let l = [
|
|
3140
|
+
0,
|
|
3141
|
+
0,
|
|
3142
|
+
0
|
|
3143
|
+
], u = 0;
|
|
3144
|
+
for (;;) {
|
|
3145
|
+
let a = [
|
|
3146
|
+
n[l[0]],
|
|
3147
|
+
i[l[1]],
|
|
3148
|
+
r[l[2]]
|
|
3149
|
+
], o = c(c(a[0], a[1]), a[2]);
|
|
3150
|
+
if (!o) break;
|
|
3151
|
+
if (o === a[0] ? l[0]++ : o === a[1] ? l[1]++ : l[2]++, o.index < u) continue;
|
|
3152
|
+
let s = new Wi(e, o.schema, o.index, o.lastIndex);
|
|
3153
|
+
this.__compiled__[s.schema].normalize(s, this), t.push(s), u = o.lastIndex;
|
|
3154
|
+
}
|
|
3155
|
+
return t.length ? t : null;
|
|
3156
|
+
}, J.prototype.matchAtStart = function(e) {
|
|
3157
|
+
if (!e.length) return null;
|
|
3158
|
+
let t = this.re.schema_at_start.exec(e);
|
|
3159
|
+
if (!t) return null;
|
|
3160
|
+
let n = this.testSchemaAt(e, t[2], t[0].length);
|
|
3161
|
+
if (!n) return null;
|
|
3162
|
+
let r = new Wi(e, t[2], t.index + t[1].length, t.index + t[0].length + n);
|
|
3163
|
+
return this.__compiled__[r.schema].normalize(r, this), r;
|
|
3164
|
+
}, J.prototype.tlds = function(e, t) {
|
|
3165
|
+
return e = Array.isArray(e) ? e : [e], t ? (this.__tlds__ = this.__tlds__.concat(e).sort().filter(function(e, t, n) {
|
|
3166
|
+
return e !== n[t - 1];
|
|
3167
|
+
}).reverse(), Ui(this), this) : (this.__tlds__ = e.slice(), this.__tlds_replaced__ = !0, Ui(this), this);
|
|
3168
|
+
}, J.prototype.normalize = function(e) {
|
|
3169
|
+
e.schema || (e.url = `http://${e.url}`), e.schema === "mailto:" && !/^mailto:/i.test(e.url) && (e.url = `mailto:${e.url}`);
|
|
3170
|
+
}, J.prototype.onCompile = function() {};
|
|
3171
|
+
//#endregion
|
|
3172
|
+
//#region ../../node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.es6.js
|
|
3173
|
+
var Y = 2147483647, X = 36, Gi = 1, Ki = 26, qi = 38, Ji = 700, Yi = 72, Xi = 128, Zi = "-", Qi = /^xn--/, $i = /[^\0-\x7F]/, ea = /[\x2E\u3002\uFF0E\uFF61]/g, ta = {
|
|
3174
|
+
overflow: "Overflow: input needs wider integers to process",
|
|
3175
|
+
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
3176
|
+
"invalid-input": "Invalid input"
|
|
3177
|
+
}, na = X - Gi, Z = Math.floor, ra = String.fromCharCode;
|
|
3178
|
+
function Q(e) {
|
|
3179
|
+
throw RangeError(ta[e]);
|
|
3180
|
+
}
|
|
3181
|
+
function ia(e, t) {
|
|
3182
|
+
let n = [], r = e.length;
|
|
3183
|
+
for (; r--;) n[r] = t(e[r]);
|
|
3184
|
+
return n;
|
|
3185
|
+
}
|
|
3186
|
+
function aa(e, t) {
|
|
3187
|
+
let n = e.split("@"), r = "";
|
|
3188
|
+
n.length > 1 && (r = n[0] + "@", e = n[1]), e = e.replace(ea, ".");
|
|
3189
|
+
let i = ia(e.split("."), t).join(".");
|
|
3190
|
+
return r + i;
|
|
3191
|
+
}
|
|
3192
|
+
function oa(e) {
|
|
3193
|
+
let t = [], n = 0, r = e.length;
|
|
3194
|
+
for (; n < r;) {
|
|
3195
|
+
let i = e.charCodeAt(n++);
|
|
3196
|
+
if (i >= 55296 && i <= 56319 && n < r) {
|
|
3197
|
+
let r = e.charCodeAt(n++);
|
|
3198
|
+
(r & 64512) == 56320 ? t.push(((i & 1023) << 10) + (r & 1023) + 65536) : (t.push(i), n--);
|
|
3199
|
+
} else t.push(i);
|
|
3200
|
+
}
|
|
3201
|
+
return t;
|
|
3202
|
+
}
|
|
3203
|
+
var sa = (e) => String.fromCodePoint(...e), ca = function(e) {
|
|
3204
|
+
return e >= 48 && e < 58 ? 26 + (e - 48) : e >= 65 && e < 91 ? e - 65 : e >= 97 && e < 123 ? e - 97 : X;
|
|
3205
|
+
}, la = function(e, t) {
|
|
3206
|
+
return e + 22 + 75 * (e < 26) - ((t != 0) << 5);
|
|
3207
|
+
}, ua = function(e, t, n) {
|
|
3208
|
+
let r = 0;
|
|
3209
|
+
for (e = n ? Z(e / Ji) : e >> 1, e += Z(e / t); e > 455; r += X) e = Z(e / na);
|
|
3210
|
+
return Z(r + 36 * e / (e + qi));
|
|
3211
|
+
}, da = function(e) {
|
|
3212
|
+
let t = [], n = e.length, r = 0, i = Xi, a = Yi, o = e.lastIndexOf(Zi);
|
|
3213
|
+
o < 0 && (o = 0);
|
|
3214
|
+
for (let n = 0; n < o; ++n) e.charCodeAt(n) >= 128 && Q("not-basic"), t.push(e.charCodeAt(n));
|
|
3215
|
+
for (let s = o > 0 ? o + 1 : 0; s < n;) {
|
|
3216
|
+
let o = r;
|
|
3217
|
+
for (let t = 1, i = X;; i += X) {
|
|
3218
|
+
s >= n && Q("invalid-input");
|
|
3219
|
+
let o = ca(e.charCodeAt(s++));
|
|
3220
|
+
o >= X && Q("invalid-input"), o > Z((Y - r) / t) && Q("overflow"), r += o * t;
|
|
3221
|
+
let c = i <= a ? Gi : i >= a + Ki ? Ki : i - a;
|
|
3222
|
+
if (o < c) break;
|
|
3223
|
+
let l = X - c;
|
|
3224
|
+
t > Z(Y / l) && Q("overflow"), t *= l;
|
|
3225
|
+
}
|
|
3226
|
+
let c = t.length + 1;
|
|
3227
|
+
a = ua(r - o, c, o == 0), Z(r / c) > Y - i && Q("overflow"), i += Z(r / c), r %= c, t.splice(r++, 0, i);
|
|
3228
|
+
}
|
|
3229
|
+
return String.fromCodePoint(...t);
|
|
3230
|
+
}, fa = function(e) {
|
|
3231
|
+
let t = [];
|
|
3232
|
+
e = oa(e);
|
|
3233
|
+
let n = e.length, r = Xi, i = 0, a = Yi;
|
|
3234
|
+
for (let n of e) n < 128 && t.push(ra(n));
|
|
3235
|
+
let o = t.length, s = o;
|
|
3236
|
+
for (o && t.push(Zi); s < n;) {
|
|
3237
|
+
let n = Y;
|
|
3238
|
+
for (let t of e) t >= r && t < n && (n = t);
|
|
3239
|
+
let c = s + 1;
|
|
3240
|
+
n - r > Z((Y - i) / c) && Q("overflow"), i += (n - r) * c, r = n;
|
|
3241
|
+
for (let n of e) if (n < r && ++i > Y && Q("overflow"), n === r) {
|
|
3242
|
+
let e = i;
|
|
3243
|
+
for (let n = X;; n += X) {
|
|
3244
|
+
let r = n <= a ? Gi : n >= a + Ki ? Ki : n - a;
|
|
3245
|
+
if (e < r) break;
|
|
3246
|
+
let i = e - r, o = X - r;
|
|
3247
|
+
t.push(ra(la(r + i % o, 0))), e = Z(i / o);
|
|
3248
|
+
}
|
|
3249
|
+
t.push(ra(la(e, 0))), a = ua(i, c, s === o), i = 0, ++s;
|
|
3250
|
+
}
|
|
3251
|
+
++i, ++r;
|
|
3252
|
+
}
|
|
3253
|
+
return t.join("");
|
|
3254
|
+
}, pa = {
|
|
3255
|
+
version: "2.3.1",
|
|
3256
|
+
ucs2: {
|
|
3257
|
+
decode: oa,
|
|
3258
|
+
encode: sa
|
|
3259
|
+
},
|
|
3260
|
+
decode: da,
|
|
3261
|
+
encode: fa,
|
|
3262
|
+
toASCII: function(e) {
|
|
3263
|
+
return aa(e, function(e) {
|
|
3264
|
+
return $i.test(e) ? "xn--" + fa(e) : e;
|
|
3265
|
+
});
|
|
3266
|
+
},
|
|
3267
|
+
toUnicode: function(e) {
|
|
3268
|
+
return aa(e, function(e) {
|
|
3269
|
+
return Qi.test(e) ? da(e.slice(4).toLowerCase()) : e;
|
|
3270
|
+
});
|
|
3271
|
+
}
|
|
3272
|
+
}, ma = {
|
|
3273
|
+
default: {
|
|
3274
|
+
options: {
|
|
3275
|
+
html: !1,
|
|
3276
|
+
xhtmlOut: !1,
|
|
3277
|
+
breaks: !1,
|
|
3278
|
+
langPrefix: "language-",
|
|
3279
|
+
linkify: !1,
|
|
3280
|
+
typographer: !1,
|
|
3281
|
+
quotes: "“”‘’",
|
|
3282
|
+
highlight: null,
|
|
3283
|
+
maxNesting: 100
|
|
3284
|
+
},
|
|
3285
|
+
components: {
|
|
3286
|
+
core: {},
|
|
3287
|
+
block: {},
|
|
3288
|
+
inline: {}
|
|
3289
|
+
}
|
|
3290
|
+
},
|
|
3291
|
+
zero: {
|
|
3292
|
+
options: {
|
|
3293
|
+
html: !1,
|
|
3294
|
+
xhtmlOut: !1,
|
|
3295
|
+
breaks: !1,
|
|
3296
|
+
langPrefix: "language-",
|
|
3297
|
+
linkify: !1,
|
|
3298
|
+
typographer: !1,
|
|
3299
|
+
quotes: "“”‘’",
|
|
3300
|
+
highlight: null,
|
|
3301
|
+
maxNesting: 20
|
|
3302
|
+
},
|
|
3303
|
+
components: {
|
|
3304
|
+
core: { rules: [
|
|
3305
|
+
"normalize",
|
|
3306
|
+
"block",
|
|
3307
|
+
"inline",
|
|
3308
|
+
"text_join"
|
|
3309
|
+
] },
|
|
3310
|
+
block: { rules: ["paragraph"] },
|
|
3311
|
+
inline: {
|
|
3312
|
+
rules: ["text"],
|
|
3313
|
+
rules2: ["balance_pairs", "fragments_join"]
|
|
3314
|
+
}
|
|
3315
|
+
}
|
|
3316
|
+
},
|
|
3317
|
+
commonmark: {
|
|
3318
|
+
options: {
|
|
3319
|
+
html: !0,
|
|
3320
|
+
xhtmlOut: !0,
|
|
3321
|
+
breaks: !1,
|
|
3322
|
+
langPrefix: "language-",
|
|
3323
|
+
linkify: !1,
|
|
3324
|
+
typographer: !1,
|
|
3325
|
+
quotes: "“”‘’",
|
|
3326
|
+
highlight: null,
|
|
3327
|
+
maxNesting: 20
|
|
3328
|
+
},
|
|
3329
|
+
components: {
|
|
3330
|
+
core: { rules: [
|
|
3331
|
+
"normalize",
|
|
3332
|
+
"block",
|
|
3333
|
+
"inline",
|
|
3334
|
+
"text_join"
|
|
3335
|
+
] },
|
|
3336
|
+
block: { rules: [
|
|
3337
|
+
"blockquote",
|
|
3338
|
+
"code",
|
|
3339
|
+
"fence",
|
|
3340
|
+
"heading",
|
|
3341
|
+
"hr",
|
|
3342
|
+
"html_block",
|
|
3343
|
+
"lheading",
|
|
3344
|
+
"list",
|
|
3345
|
+
"reference",
|
|
3346
|
+
"paragraph"
|
|
3347
|
+
] },
|
|
3348
|
+
inline: {
|
|
3349
|
+
rules: [
|
|
3350
|
+
"autolink",
|
|
3351
|
+
"backticks",
|
|
3352
|
+
"emphasis",
|
|
3353
|
+
"entity",
|
|
3354
|
+
"escape",
|
|
3355
|
+
"html_inline",
|
|
3356
|
+
"image",
|
|
3357
|
+
"link",
|
|
3358
|
+
"newline",
|
|
3359
|
+
"text"
|
|
3360
|
+
],
|
|
3361
|
+
rules2: [
|
|
3362
|
+
"balance_pairs",
|
|
3363
|
+
"emphasis",
|
|
3364
|
+
"fragments_join"
|
|
3365
|
+
]
|
|
3366
|
+
}
|
|
3367
|
+
}
|
|
3368
|
+
}
|
|
3369
|
+
}, ha = /^(vbscript|javascript|file|data):/, ga = /^data:image\/(gif|png|jpeg|webp);/;
|
|
3370
|
+
function _a(e) {
|
|
3371
|
+
let t = e.trim().toLowerCase();
|
|
3372
|
+
return ha.test(t) ? ga.test(t) : !0;
|
|
3373
|
+
}
|
|
3374
|
+
var va = [
|
|
3375
|
+
"http:",
|
|
3376
|
+
"https:",
|
|
3377
|
+
"mailto:"
|
|
3378
|
+
];
|
|
3379
|
+
function ya(e) {
|
|
3380
|
+
let t = qt(e, !0);
|
|
3381
|
+
if (t.hostname && (!t.protocol || va.indexOf(t.protocol) >= 0)) try {
|
|
3382
|
+
t.hostname = pa.toASCII(t.hostname);
|
|
3383
|
+
} catch {}
|
|
3384
|
+
return Pt(Ft(t));
|
|
3385
|
+
}
|
|
3386
|
+
function ba(e) {
|
|
3387
|
+
let t = qt(e, !0);
|
|
3388
|
+
if (t.hostname && (!t.protocol || va.indexOf(t.protocol) >= 0)) try {
|
|
3389
|
+
t.hostname = pa.toUnicode(t.hostname);
|
|
3390
|
+
} catch {}
|
|
3391
|
+
return jt(Ft(t), jt.defaultChars + "%");
|
|
3392
|
+
}
|
|
3393
|
+
function $(e, t) {
|
|
3394
|
+
if (!(this instanceof $)) return new $(e, t);
|
|
3395
|
+
t || xn(e) || (t = e || {}, e = "default"), this.inline = new Di(), this.block = new Kr(), this.core = new wr(), this.renderer = new U(), this.linkify = new J(), this.validateLink = _a, this.normalizeLink = ya, this.normalizeLinkText = ba, this.utils = yn, this.helpers = wn({}, Zn), this.options = {}, this.configure(e), t && this.set(t);
|
|
3396
|
+
}
|
|
3397
|
+
$.prototype.set = function(e) {
|
|
3398
|
+
return wn(this.options, e), this;
|
|
3399
|
+
}, $.prototype.configure = function(e) {
|
|
3400
|
+
let t = this;
|
|
3401
|
+
if (xn(e)) {
|
|
3402
|
+
let t = e;
|
|
3403
|
+
if (e = ma[t], !e) throw Error("Wrong `markdown-it` preset \"" + t + "\", check name");
|
|
3404
|
+
}
|
|
3405
|
+
if (!e) throw Error("Wrong `markdown-it` preset, can't be empty");
|
|
3406
|
+
return e.options && t.set(e.options), e.components && Object.keys(e.components).forEach(function(n) {
|
|
3407
|
+
e.components[n].rules && t[n].ruler.enableOnly(e.components[n].rules), e.components[n].rules2 && t[n].ruler2.enableOnly(e.components[n].rules2);
|
|
3408
|
+
}), this;
|
|
3409
|
+
}, $.prototype.enable = function(e, t) {
|
|
3410
|
+
let n = [];
|
|
3411
|
+
Array.isArray(e) || (e = [e]), [
|
|
3412
|
+
"core",
|
|
3413
|
+
"block",
|
|
3414
|
+
"inline"
|
|
3415
|
+
].forEach(function(t) {
|
|
3416
|
+
n = n.concat(this[t].ruler.enable(e, !0));
|
|
3417
|
+
}, this), n = n.concat(this.inline.ruler2.enable(e, !0));
|
|
3418
|
+
let r = e.filter(function(e) {
|
|
3419
|
+
return n.indexOf(e) < 0;
|
|
3420
|
+
});
|
|
3421
|
+
if (r.length && !t) throw Error("MarkdownIt. Failed to enable unknown rule(s): " + r);
|
|
3422
|
+
return this;
|
|
3423
|
+
}, $.prototype.disable = function(e, t) {
|
|
3424
|
+
let n = [];
|
|
3425
|
+
Array.isArray(e) || (e = [e]), [
|
|
3426
|
+
"core",
|
|
3427
|
+
"block",
|
|
3428
|
+
"inline"
|
|
3429
|
+
].forEach(function(t) {
|
|
3430
|
+
n = n.concat(this[t].ruler.disable(e, !0));
|
|
3431
|
+
}, this), n = n.concat(this.inline.ruler2.disable(e, !0));
|
|
3432
|
+
let r = e.filter(function(e) {
|
|
3433
|
+
return n.indexOf(e) < 0;
|
|
3434
|
+
});
|
|
3435
|
+
if (r.length && !t) throw Error("MarkdownIt. Failed to disable unknown rule(s): " + r);
|
|
3436
|
+
return this;
|
|
3437
|
+
}, $.prototype.use = function(e) {
|
|
3438
|
+
let t = [this].concat(Array.prototype.slice.call(arguments, 1));
|
|
3439
|
+
return e.apply(e, t), this;
|
|
3440
|
+
}, $.prototype.parse = function(e, t) {
|
|
3441
|
+
if (typeof e != "string") throw Error("Input data should be a String");
|
|
3442
|
+
let n = new this.core.State(e, this, t);
|
|
3443
|
+
return this.core.process(n), n.tokens;
|
|
3444
|
+
}, $.prototype.render = function(e, t) {
|
|
3445
|
+
return t ||= {}, this.renderer.render(this.parse(e, t), this.options, t);
|
|
3446
|
+
}, $.prototype.parseInline = function(e, t) {
|
|
3447
|
+
let n = new this.core.State(e, this, t);
|
|
3448
|
+
return n.inlineMode = !0, this.core.process(n), n.tokens;
|
|
3449
|
+
}, $.prototype.renderInline = function(e, t) {
|
|
3450
|
+
return t ||= {}, this.renderer.render(this.parseInline(e, t), this.options, t);
|
|
3451
|
+
};
|
|
3452
|
+
//#endregion
|
|
3453
|
+
//#region ../../node_modules/.pnpm/vue-markdown-render@2.3.1_vue@3.5.39_typescript@5.9.3_/node_modules/vue-markdown-render/dist/VueMarkdown.js
|
|
3454
|
+
var xa = w((e) => {
|
|
3455
|
+
let t = ue(new $(e.options ?? {}));
|
|
3456
|
+
for (let n of e.plugins ?? []) t.value.use(n);
|
|
3457
|
+
let n = _(() => t.value.render(e.source));
|
|
3458
|
+
return () => ne("div", { innerHTML: n.value });
|
|
3459
|
+
}, { props: [
|
|
3460
|
+
"source",
|
|
3461
|
+
"options",
|
|
3462
|
+
"plugins"
|
|
3463
|
+
] }), Sa = /* @__PURE__ */ w({
|
|
3464
|
+
__name: "StepBody",
|
|
3465
|
+
props: { body: {} },
|
|
3466
|
+
setup(e) {
|
|
3467
|
+
let t = [We(Be())];
|
|
3468
|
+
return (n, r) => (E(), v(j(xa), {
|
|
3469
|
+
class: "prose dark:prose-invert space-y-2.5",
|
|
3470
|
+
"data-testid": "step-body",
|
|
3471
|
+
plugins: t,
|
|
3472
|
+
source: e.body
|
|
3473
|
+
}, null, 8, ["source"]));
|
|
3474
|
+
}
|
|
3475
|
+
}), Ca = /* @__PURE__ */ w({
|
|
3476
|
+
__name: "StepLockAlert",
|
|
3477
|
+
props: { locks: {} },
|
|
3478
|
+
setup(r) {
|
|
3479
|
+
let i = r, { t: a } = De(), o = _(() => i.locks.filter((e) => !e.startsWith("!")));
|
|
3480
|
+
return (r, i) => o.value.length ? (E(), v(j(e), {
|
|
3481
|
+
key: 0,
|
|
3482
|
+
"data-testid": "step-locks",
|
|
3483
|
+
variant: "warning"
|
|
3484
|
+
}, {
|
|
3485
|
+
default: N(() => [
|
|
3486
|
+
i[0] ||= x("svg", {
|
|
3487
|
+
"aria-hidden": "true",
|
|
3488
|
+
class: "size-4",
|
|
3489
|
+
viewBox: "0 0 24 24",
|
|
3490
|
+
fill: "none",
|
|
3491
|
+
stroke: "currentColor",
|
|
3492
|
+
"stroke-width": "2",
|
|
3493
|
+
"stroke-linecap": "round",
|
|
3494
|
+
"stroke-linejoin": "round"
|
|
3495
|
+
}, [x("rect", {
|
|
3496
|
+
x: "3",
|
|
3497
|
+
y: "11",
|
|
3498
|
+
width: "18",
|
|
3499
|
+
height: "11",
|
|
3500
|
+
rx: "2"
|
|
3501
|
+
}), x("path", { d: "M7 11V7a5 5 0 0 1 10 0v4" })], -1),
|
|
3502
|
+
C(j(n), null, {
|
|
3503
|
+
default: N(() => [S(k(j(a)("krgz.hayali.locks.title")), 1)]),
|
|
3504
|
+
_: 1
|
|
3505
|
+
}),
|
|
3506
|
+
C(j(t), null, {
|
|
3507
|
+
default: N(() => [C(j(Ee), {
|
|
3508
|
+
keypath: "krgz.hayali.locks.description",
|
|
3509
|
+
plural: o.value.length,
|
|
3510
|
+
tag: "p"
|
|
3511
|
+
}, {
|
|
3512
|
+
files: N(() => [(E(!0), b(g, null, O(o.value, (e, t) => (E(), b(g, { key: e }, [t ? (E(), b(g, { key: 0 }, [S(", ")], 64)) : y("", !0), x("code", null, k(e), 1)], 64))), 128))]),
|
|
3513
|
+
_: 1
|
|
3514
|
+
}, 8, ["plural"])]),
|
|
3515
|
+
_: 1
|
|
3516
|
+
})
|
|
3517
|
+
]),
|
|
3518
|
+
_: 1
|
|
3519
|
+
})) : y("", !0);
|
|
3520
|
+
}
|
|
3521
|
+
}), wa = ["aria-label"], Ta = ["data-status", "aria-current"], Ea = {
|
|
3522
|
+
key: 0,
|
|
3523
|
+
"aria-hidden": "true",
|
|
3524
|
+
class: "bg-border absolute start-[11px] top-[26px] -bottom-3.5 w-px"
|
|
3525
|
+
}, Da = {
|
|
3526
|
+
key: 0,
|
|
3527
|
+
class: "size-[11px]",
|
|
3528
|
+
viewBox: "0 0 24 24",
|
|
3529
|
+
fill: "none",
|
|
3530
|
+
stroke: "currentColor",
|
|
3531
|
+
"stroke-width": "3",
|
|
3532
|
+
"stroke-linecap": "round",
|
|
3533
|
+
"stroke-linejoin": "round"
|
|
3534
|
+
}, Oa = {
|
|
3535
|
+
key: 1,
|
|
3536
|
+
class: "bg-foreground size-[7px] rounded-full"
|
|
3537
|
+
}, ka = { class: "min-w-0 flex-1 pb-5" }, Aa = {
|
|
3538
|
+
key: 0,
|
|
3539
|
+
class: "pt-0.5 text-[13.5px] font-semibold"
|
|
3540
|
+
}, ja = ["disabled", "onClick"], Ma = { class: "sr-only" }, Na = /* @__PURE__ */ w({
|
|
3541
|
+
__name: "StepList",
|
|
3542
|
+
props: {
|
|
3543
|
+
steps: {},
|
|
3544
|
+
currentStepId: {},
|
|
3545
|
+
locks: {},
|
|
3546
|
+
disabled: { type: Boolean }
|
|
3547
|
+
},
|
|
3548
|
+
emits: ["select"],
|
|
3549
|
+
setup(e) {
|
|
3550
|
+
let t = e, { t: n } = De(), r = _(() => t.steps.findIndex((e) => e.id === t.currentStepId)), i = (e) => e < r.value ? "done" : e === r.value ? "current" : "upcoming";
|
|
3551
|
+
return (t, r) => (E(), b("nav", {
|
|
3552
|
+
"aria-label": j(n)("krgz.hayali.steps"),
|
|
3553
|
+
class: "px-[22px] py-5"
|
|
3554
|
+
}, [x("ol", null, [(E(!0), b(g, null, O(e.steps, (a, o) => (E(), b("li", {
|
|
3555
|
+
key: a.id,
|
|
3556
|
+
"data-testid": "step-item",
|
|
3557
|
+
"data-status": i(o),
|
|
3558
|
+
"aria-current": i(o) === "current" ? "step" : void 0,
|
|
3559
|
+
class: "relative flex gap-3"
|
|
3560
|
+
}, [
|
|
3561
|
+
o < e.steps.length - 1 ? (E(), b("div", Ea)) : y("", !0),
|
|
3562
|
+
x("div", {
|
|
3563
|
+
"aria-hidden": "true",
|
|
3564
|
+
class: ae(["mt-px flex size-[23px] flex-none items-center justify-center rounded-full", {
|
|
3565
|
+
"bg-foreground text-background": i(o) === "done",
|
|
3566
|
+
"border-foreground bg-background border-2": i(o) === "current",
|
|
3567
|
+
"bg-muted border": i(o) === "upcoming"
|
|
3568
|
+
}])
|
|
3569
|
+
}, [i(o) === "done" ? (E(), b("svg", Da, [...r[0] ||= [x("polyline", { points: "20 6 9 17 4 12" }, null, -1)]])) : i(o) === "current" ? (E(), b("div", Oa)) : y("", !0)], 2),
|
|
3570
|
+
x("div", ka, [
|
|
3571
|
+
i(o) === "current" ? (E(), b("div", Aa, k(a.title), 1)) : (E(), b("button", {
|
|
3572
|
+
key: 1,
|
|
3573
|
+
type: "button",
|
|
3574
|
+
"data-testid": "step-link",
|
|
3575
|
+
class: ae(["text-muted-foreground block pt-0.5 text-start text-[13.5px] hover:text-foreground", i(o) === "done" ? "font-medium" : "font-semibold"]),
|
|
3576
|
+
disabled: e.disabled,
|
|
3577
|
+
onClick: (e) => t.$emit("select", a.id)
|
|
3578
|
+
}, k(a.title), 11, ja)),
|
|
3579
|
+
x("span", Ma, k(j(n)(`krgz.hayali.${i(o)}`)), 1),
|
|
3580
|
+
i(o) === "current" ? (E(), v(Ca, {
|
|
3581
|
+
key: 2,
|
|
3582
|
+
class: "mt-2.5",
|
|
3583
|
+
locks: e.locks
|
|
3584
|
+
}, null, 8, ["locks"])) : y("", !0),
|
|
3585
|
+
me(C(Sa, {
|
|
3586
|
+
class: "mt-2.5 text-[13.5px]",
|
|
3587
|
+
body: a.body
|
|
3588
|
+
}, null, 8, ["body"]), [[pe, i(o) === "current"]])
|
|
3589
|
+
])
|
|
3590
|
+
], 8, Ta))), 128))])], 8, wa));
|
|
3591
|
+
}
|
|
3592
|
+
}), Pa = ["data-panel"], Fa = ["data-from"], Ia = {
|
|
3593
|
+
"data-hf-toggle": "",
|
|
3594
|
+
class: "bg-background sticky top-0 z-10 border-b px-3 py-2"
|
|
3595
|
+
}, La = {
|
|
3596
|
+
key: 1,
|
|
3597
|
+
"data-testid": "sandbox-placeholder",
|
|
3598
|
+
class: "bg-muted h-full w-full"
|
|
3599
|
+
}, Ra = { class: "flex justify-end gap-2" }, za = /* @__PURE__ */ w({
|
|
3600
|
+
__name: "KrgzHayali",
|
|
3601
|
+
props: /*@__PURE__*/ re({
|
|
3602
|
+
lesson: {},
|
|
3603
|
+
fullLayoutFrom: { default: "3xl" },
|
|
3604
|
+
multiPanelFrom: { default: "3xl" }
|
|
3605
|
+
}, {
|
|
3606
|
+
position: {},
|
|
3607
|
+
positionModifiers: {}
|
|
3608
|
+
}),
|
|
3609
|
+
emits: ["update:position"],
|
|
3610
|
+
setup(e) {
|
|
3611
|
+
let t = e, n = de(e, "position"), i = _({
|
|
3612
|
+
get: () => n.value && nt(t.lesson, n.value) ? n.value : tt(t.lesson),
|
|
3613
|
+
set: (e) => n.value = e
|
|
3614
|
+
});
|
|
3615
|
+
M([n, () => t.lesson], ([e, t]) => {
|
|
3616
|
+
if (!e || nt(t, e)) return;
|
|
3617
|
+
let r = tt(t);
|
|
3618
|
+
nt(t, r) && (n.value = r);
|
|
3619
|
+
}, { immediate: !0 });
|
|
3620
|
+
let { t: a } = De(), o = _e(), { container: p, bootstrap: m, setOption: h } = o, g = D("lesson"), v = D(!1);
|
|
3621
|
+
se(() => {
|
|
3622
|
+
v.value = !0;
|
|
3623
|
+
});
|
|
3624
|
+
let y = fe("sandboxPane"), { width: w, height: ee } = et(y), te = _(() => w.value > 0 && ee.value > 0), { chapter: ne, prev: re, next: ie, groups: ae, goTo: ce } = rt(() => t.lesson, i), O = ut({
|
|
3625
|
+
fs: {
|
|
3626
|
+
watch: (...e) => p.value.fs.watch(...e),
|
|
3627
|
+
mount: (e) => p.value.mount(e),
|
|
3628
|
+
rm: (e, t) => p.value.fs.rm(e, t)
|
|
3629
|
+
},
|
|
3630
|
+
lesson: () => t.lesson
|
|
3631
|
+
});
|
|
3632
|
+
M(p, (e) => {
|
|
3633
|
+
e && O.boot(i.value).then(() => (Ae.enterInitial(), m()));
|
|
3634
|
+
}, { immediate: !0 }), oe(O.dispose);
|
|
3635
|
+
let ue = bt({
|
|
3636
|
+
lesson: () => t.lesson,
|
|
3637
|
+
position: i,
|
|
3638
|
+
setOption: h
|
|
3639
|
+
}), A = D(!1), pe, me = () => new Promise((e) => {
|
|
3640
|
+
pe = e, A.value = !0;
|
|
3641
|
+
}), ge = (e) => {
|
|
3642
|
+
A.value = !1, pe?.(e), pe = void 0;
|
|
3643
|
+
}, Ee = !1, Oe = () => {
|
|
3644
|
+
Ee = !0;
|
|
3645
|
+
}, ke = (e) => {
|
|
3646
|
+
e || queueMicrotask(() => {
|
|
3647
|
+
ge(Ee), Ee = !1;
|
|
3648
|
+
});
|
|
3649
|
+
}, Ae = vt({
|
|
3650
|
+
lesson: () => t.lesson,
|
|
3651
|
+
position: i,
|
|
3652
|
+
goTo: ce,
|
|
3653
|
+
reset: O,
|
|
3654
|
+
confirm: me,
|
|
3655
|
+
sandbox: o,
|
|
3656
|
+
sandboxVisible: te
|
|
3657
|
+
}), je = (e) => {
|
|
3658
|
+
e && Ae.navigate(e);
|
|
3659
|
+
}, Me = _(() => !!O.current.value), Ne = _(() => !Me.value || Ae.navigating.value), Pe = _(() => ne.value?.steps ?? []), Fe = (e) => ({
|
|
3660
|
+
chapterId: i.value.chapterId,
|
|
3661
|
+
stepId: e
|
|
3662
|
+
}), Ie = _(() => ({
|
|
3663
|
+
prev: re.value,
|
|
3664
|
+
next: ie.value,
|
|
3665
|
+
groups: ae.value,
|
|
3666
|
+
current: i.value,
|
|
3667
|
+
chapterTitle: ne.value?.title,
|
|
3668
|
+
disabled: Ne.value
|
|
3669
|
+
}));
|
|
3670
|
+
return (t, n) => (E(), b("div", {
|
|
3671
|
+
"data-testid": "krgz-hayali",
|
|
3672
|
+
class: "hf bg-background @container/hayali h-full w-full",
|
|
3673
|
+
"data-panel": g.value
|
|
3674
|
+
}, [x("div", {
|
|
3675
|
+
class: "hf-root flex h-full flex-col",
|
|
3676
|
+
"data-from": e.fullLayoutFrom
|
|
3677
|
+
}, [
|
|
3678
|
+
x("div", Ia, [C(j(u), {
|
|
3679
|
+
modelValue: g.value,
|
|
3680
|
+
"onUpdate:modelValue": n[0] ||= (e) => g.value = e,
|
|
3681
|
+
dir: j(a)("krgz.dir")
|
|
3682
|
+
}, {
|
|
3683
|
+
default: N(() => [C(j(d), {
|
|
3684
|
+
"data-testid": "layout-toggle",
|
|
3685
|
+
class: "grid h-9 w-full grid-cols-2 rounded-full"
|
|
3686
|
+
}, {
|
|
3687
|
+
default: N(() => [C(j(f), {
|
|
3688
|
+
value: "lesson",
|
|
3689
|
+
class: "rounded-full"
|
|
3690
|
+
}, {
|
|
3691
|
+
default: N(() => [S(k(j(a)("krgz.hayali.lesson")), 1)]),
|
|
3692
|
+
_: 1
|
|
3693
|
+
}), C(j(f), {
|
|
3694
|
+
value: "sandbox",
|
|
3695
|
+
class: "rounded-full"
|
|
3696
|
+
}, {
|
|
3697
|
+
default: N(() => [S(k(j(a)("krgz.hayali.sandbox")), 1)]),
|
|
3698
|
+
_: 1
|
|
3699
|
+
})]),
|
|
3700
|
+
_: 1
|
|
3701
|
+
})]),
|
|
3702
|
+
_: 1
|
|
3703
|
+
}, 8, ["modelValue", "dir"])]),
|
|
3704
|
+
C(j(l), {
|
|
3705
|
+
direction: "horizontal",
|
|
3706
|
+
class: "min-h-0 flex-1"
|
|
3707
|
+
}, {
|
|
3708
|
+
default: N(() => [
|
|
3709
|
+
C(j(c), {
|
|
3710
|
+
"default-size": 30,
|
|
3711
|
+
"data-hf-pane": "lesson"
|
|
3712
|
+
}, {
|
|
3713
|
+
default: N(() => [C(Na, {
|
|
3714
|
+
class: "h-full overflow-auto",
|
|
3715
|
+
steps: Pe.value,
|
|
3716
|
+
"current-step-id": i.value.stepId,
|
|
3717
|
+
locks: j(ue),
|
|
3718
|
+
disabled: Ne.value,
|
|
3719
|
+
onSelect: n[1] ||= (e) => je(Fe(e))
|
|
3720
|
+
}, null, 8, [
|
|
3721
|
+
"steps",
|
|
3722
|
+
"current-step-id",
|
|
3723
|
+
"locks",
|
|
3724
|
+
"disabled"
|
|
3725
|
+
])]),
|
|
3726
|
+
_: 1
|
|
3727
|
+
}),
|
|
3728
|
+
C(j(s), { "data-hf-handle": "" }),
|
|
3729
|
+
C(j(c), {
|
|
3730
|
+
"default-size": 70,
|
|
3731
|
+
"data-hf-pane": "sandbox"
|
|
3732
|
+
}, {
|
|
3733
|
+
default: N(() => [x("div", {
|
|
3734
|
+
ref_key: "sandboxPane",
|
|
3735
|
+
ref: y,
|
|
3736
|
+
class: "m-3 h-[calc(100%-1.5rem)] overflow-hidden rounded-lg border shadow-sm [margin-inline-end:var(--hf-sandbox-me,0.75rem)]"
|
|
3737
|
+
}, [v.value ? le(t.$slots, "sandbox", {
|
|
3738
|
+
key: 0,
|
|
3739
|
+
ready: Me.value,
|
|
3740
|
+
multiPanelFrom: e.multiPanelFrom
|
|
3741
|
+
}, () => [C(j(he), {
|
|
3742
|
+
booting: !Me.value,
|
|
3743
|
+
"multi-panel-from": e.multiPanelFrom
|
|
3744
|
+
}, null, 8, ["booting", "multi-panel-from"])]) : (E(), b("div", La))], 512)]),
|
|
3745
|
+
_: 3
|
|
3746
|
+
})
|
|
3747
|
+
]),
|
|
3748
|
+
_: 3
|
|
3749
|
+
}),
|
|
3750
|
+
C(Ot, T(Ie.value, { onNavigate: je }), null, 16)
|
|
3751
|
+
], 8, Fa), C(j(we), {
|
|
3752
|
+
open: A.value,
|
|
3753
|
+
"onUpdate:open": ke
|
|
3754
|
+
}, {
|
|
3755
|
+
default: N(() => [C(j(Ce), null, {
|
|
3756
|
+
default: N(() => [C(j(Se), { class: "bg-background/60 fixed inset-0 z-[100] backdrop-blur-[1px]" }), C(j(be), { class: "bg-background fixed start-1/2 top-1/2 z-[100] w-[340px] -translate-x-1/2 -translate-y-1/2 rounded-lg border p-5 shadow-md rtl:translate-x-1/2" }, {
|
|
3757
|
+
default: N(() => [
|
|
3758
|
+
C(j(Te), { class: "mb-2 text-[14.5px] font-semibold" }, {
|
|
3759
|
+
default: N(() => [S(k(j(a)("krgz.hayali.confirm.title")), 1)]),
|
|
3760
|
+
_: 1
|
|
3761
|
+
}),
|
|
3762
|
+
C(j(xe), { class: "text-muted-foreground mb-[18px] text-[13px]" }, {
|
|
3763
|
+
default: N(() => [S(k(j(a)("krgz.hayali.confirm.description")), 1)]),
|
|
3764
|
+
_: 1
|
|
3765
|
+
}),
|
|
3766
|
+
x("div", Ra, [C(j(ye), { "as-child": "" }, {
|
|
3767
|
+
default: N(() => [C(j(r), {
|
|
3768
|
+
"data-testid": "confirm-cancel",
|
|
3769
|
+
variant: "outline",
|
|
3770
|
+
class: "h-8 px-3.5 text-[12.5px]"
|
|
3771
|
+
}, {
|
|
3772
|
+
default: N(() => [S(k(j(a)("krgz.hayali.confirm.cancel")), 1)]),
|
|
3773
|
+
_: 1
|
|
3774
|
+
})]),
|
|
3775
|
+
_: 1
|
|
3776
|
+
}), C(j(ve), { "as-child": "" }, {
|
|
3777
|
+
default: N(() => [C(j(r), {
|
|
3778
|
+
"data-testid": "confirm-continue",
|
|
3779
|
+
variant: "destructive",
|
|
3780
|
+
class: "h-8 px-3.5 text-[12.5px]",
|
|
3781
|
+
onClick: Oe
|
|
3782
|
+
}, {
|
|
3783
|
+
default: N(() => [S(k(j(a)("krgz.hayali.confirm.continue")), 1)]),
|
|
3784
|
+
_: 1
|
|
3785
|
+
})]),
|
|
3786
|
+
_: 1
|
|
3787
|
+
})])
|
|
3788
|
+
]),
|
|
3789
|
+
_: 1
|
|
3790
|
+
})]),
|
|
3791
|
+
_: 1
|
|
3792
|
+
})]),
|
|
3793
|
+
_: 1
|
|
3794
|
+
}, 8, ["open"])], 8, Pa));
|
|
3795
|
+
}
|
|
3796
|
+
}), Ba = {
|
|
3797
|
+
ar: { krgz: { hayali: {
|
|
3798
|
+
prev: "السابق",
|
|
3799
|
+
next: "التالي",
|
|
3800
|
+
steps: "الخطوات",
|
|
3801
|
+
done: "مكتملة",
|
|
3802
|
+
current: "الحالية",
|
|
3803
|
+
upcoming: "القادمة",
|
|
3804
|
+
toc: "جدول المحتويات",
|
|
3805
|
+
lesson: "الدرس",
|
|
3806
|
+
sandbox: "بيئة التجربة",
|
|
3807
|
+
locks: {
|
|
3808
|
+
title: "تنبيه!",
|
|
3809
|
+
description: "{files} مقفل في هذه الخطوة. | {files} مقفلة في هذه الخطوة."
|
|
3810
|
+
},
|
|
3811
|
+
confirm: {
|
|
3812
|
+
title: "سيتم التراجع عن التغييرات",
|
|
3813
|
+
description: "الانتقال إلى خطوة أخرى يتراجع عن أي تعديلات أجريتها على ملفات هذه الخطوة. هل تريد المتابعة؟",
|
|
3814
|
+
cancel: "إلغاء",
|
|
3815
|
+
continue: "متابعة"
|
|
3816
|
+
}
|
|
3817
|
+
} } },
|
|
3818
|
+
de: { krgz: { hayali: {
|
|
3819
|
+
prev: "Zurück",
|
|
3820
|
+
next: "Weiter",
|
|
3821
|
+
steps: "Schritte",
|
|
3822
|
+
done: "Erledigt",
|
|
3823
|
+
current: "Aktuell",
|
|
3824
|
+
upcoming: "Ausstehend",
|
|
3825
|
+
toc: "Inhaltsverzeichnis",
|
|
3826
|
+
lesson: "Lektion",
|
|
3827
|
+
sandbox: "Sandbox",
|
|
3828
|
+
locks: {
|
|
3829
|
+
title: "Achtung!",
|
|
3830
|
+
description: "{files} ist in diesem Schritt gesperrt. | {files} sind in diesem Schritt gesperrt."
|
|
3831
|
+
},
|
|
3832
|
+
confirm: {
|
|
3833
|
+
title: "Änderungen werden zurückgesetzt",
|
|
3834
|
+
description: "Beim Wechsel zu einem anderen Schritt werden deine Änderungen an den Dateien dieses Schritts verworfen. Fortfahren?",
|
|
3835
|
+
cancel: "Abbrechen",
|
|
3836
|
+
continue: "Fortfahren"
|
|
3837
|
+
}
|
|
3838
|
+
} } },
|
|
3839
|
+
en: { krgz: { hayali: {
|
|
3840
|
+
prev: "Previous",
|
|
3841
|
+
next: "Next",
|
|
3842
|
+
steps: "Steps",
|
|
3843
|
+
done: "Done",
|
|
3844
|
+
current: "Current",
|
|
3845
|
+
upcoming: "Upcoming",
|
|
3846
|
+
toc: "Table of contents",
|
|
3847
|
+
lesson: "Lesson",
|
|
3848
|
+
sandbox: "Sandbox",
|
|
3849
|
+
locks: {
|
|
3850
|
+
title: "Heads up!",
|
|
3851
|
+
description: "{files} is locked for this step. | {files} are locked for this step."
|
|
3852
|
+
},
|
|
3853
|
+
confirm: {
|
|
3854
|
+
title: "Changes will be reset",
|
|
3855
|
+
description: "Moving to another step reverts any edits you've made to the files in this step. Continue?",
|
|
3856
|
+
cancel: "Cancel",
|
|
3857
|
+
continue: "Continue"
|
|
3858
|
+
}
|
|
3859
|
+
} } }
|
|
3860
|
+
}, Va = (e) => ({ krgz: {
|
|
3861
|
+
...ge[e].krgz,
|
|
3862
|
+
...Ba[e].krgz
|
|
3863
|
+
} }), Ha = {
|
|
3864
|
+
ar: Va("ar"),
|
|
3865
|
+
de: Va("de"),
|
|
3866
|
+
en: Va("en")
|
|
3867
|
+
};
|
|
3868
|
+
//#endregion
|
|
3869
|
+
export { za as KrgzHayali, Sa as StepBody, We as calloutPlugin, Be as createCalloutRegistry, Ha as i18nMessages, gt as validateLesson };
|