zudoku 0.53.4 → 0.53.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/validators/InputNavigationSchema.d.ts +64 -5
- package/dist/config/validators/InputNavigationSchema.js +0 -3
- package/dist/config/validators/InputNavigationSchema.js.map +1 -1
- package/dist/config/validators/InputNavigationSchema.test-d.js +0 -1
- package/dist/config/validators/InputNavigationSchema.test-d.js.map +1 -1
- package/dist/config/validators/NavigationSchema.js +3 -2
- package/dist/config/validators/NavigationSchema.js.map +1 -1
- package/dist/config/validators/icon-types.d.ts +1 -1
- package/dist/config/validators/icon-types.js +16 -0
- package/dist/config/validators/icon-types.js.map +1 -1
- package/dist/config/validators/validate.d.ts +3 -0
- package/dist/config/validators/validate.js +1 -0
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/flat-config.d.ts +2 -4
- package/dist/lib/components/Header.js +1 -1
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Markdown.js +2 -2
- package/dist/lib/components/Markdown.js.map +1 -1
- package/dist/lib/components/NotFoundPage.js +1 -1
- package/dist/lib/components/NotFoundPage.js.map +1 -1
- package/dist/lib/components/Typography.d.ts +1 -1
- package/dist/lib/components/Typography.js +1 -1
- package/dist/lib/components/Typography.js.map +1 -1
- package/dist/lib/core/ZudokuContext.d.ts +1 -0
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/errors/ErrorAlert.js +1 -1
- package/dist/lib/errors/ErrorAlert.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/SidecarExamples.js +1 -1
- package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PathParams.js +1 -1
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.js +4 -2
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/ui/CodeBlock.js +1 -1
- package/dist/lib/ui/CodeBlock.js.map +1 -1
- package/dist/lib/ui/EmbeddedCodeBlock.js +1 -1
- package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -1
- package/dist/vite/dev-server.js +9 -1
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/plugin-docs.js +20 -13
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-theme.js +88 -49
- package/dist/vite/plugin-theme.js.map +1 -1
- package/dist/vite/plugin-theme.test.js +25 -4
- package/dist/vite/plugin-theme.test.js.map +1 -1
- package/lib/{Alert-SijAp9LN.js → Alert-CWApD0CL.js} +3 -3
- package/lib/{Alert-SijAp9LN.js.map → Alert-CWApD0CL.js.map} +1 -1
- package/lib/{Button-BE9IVkWV.js → Button-B3o-2Xdf.js} +2 -2
- package/lib/{Button-BE9IVkWV.js.map → Button-B3o-2Xdf.js.map} +1 -1
- package/lib/CallbackHandler-Dr5Lva9x.js +38 -0
- package/lib/CallbackHandler-Dr5Lva9x.js.map +1 -0
- package/lib/{Card-DPhGbYUM.js → Card-CMDQUPM4.js} +2 -2
- package/lib/{Card-DPhGbYUM.js.map → Card-CMDQUPM4.js.map} +1 -1
- package/lib/ClientOnly-E7hGysn1.js.map +1 -1
- package/lib/{CodeBlock-DAKxs_Tu.js → CodeBlock-B-G0eKtw.js} +3 -3
- package/lib/{CodeBlock-DAKxs_Tu.js.map → CodeBlock-B-G0eKtw.js.map} +1 -1
- package/lib/{Command-xsbs2uhf.js → Command-C9AC5cf-.js} +3 -3
- package/lib/{Command-xsbs2uhf.js.map → Command-C9AC5cf-.js.map} +1 -1
- package/lib/{Dialog-CiIdyz6a.js → Dialog-DMWw1doX.js} +2 -2
- package/lib/{Dialog-CiIdyz6a.js.map → Dialog-DMWw1doX.js.map} +1 -1
- package/lib/{Drawer-BzkOKwgC.js → Drawer-DJ05s2pH.js} +86 -86
- package/lib/{Drawer-BzkOKwgC.js.map → Drawer-DJ05s2pH.js.map} +1 -1
- package/lib/{MdxPage-BFKqQsmK.js → MdxPage-DVI4iYgW.js} +7 -7
- package/lib/{MdxPage-BFKqQsmK.js.map → MdxPage-DVI4iYgW.js.map} +1 -1
- package/lib/{OasProvider-Bdyvd6Ic.js → OasProvider-CbwsKPNc.js} +2 -2
- package/lib/{OasProvider-Bdyvd6Ic.js.map → OasProvider-CbwsKPNc.js.map} +1 -1
- package/lib/{OperationList-YZ7k-Rkt.js → OperationList-Bn9ggxw8.js} +12 -12
- package/lib/OperationList-Bn9ggxw8.js.map +1 -0
- package/lib/{Pagination-EViy7EHt.js → Pagination-bavPec-z.js} +3 -3
- package/lib/{Pagination-EViy7EHt.js.map → Pagination-bavPec-z.js.map} +1 -1
- package/lib/{RouteGuard-CX6A77iy.js → RouteGuard-Vnlz_t51.js} +2 -2
- package/lib/{RouteGuard-CX6A77iy.js.map → RouteGuard-Vnlz_t51.js.map} +1 -1
- package/lib/{SchemaList--_f8Azv0.js → SchemaList-DETyCVqu.js} +8 -8
- package/lib/{SchemaList--_f8Azv0.js.map → SchemaList-DETyCVqu.js.map} +1 -1
- package/lib/{SchemaView-7XWvSrbX.js → SchemaView-Dvxo2RNe.js} +6 -6
- package/lib/{SchemaView-7XWvSrbX.js.map → SchemaView-Dvxo2RNe.js.map} +1 -1
- package/lib/{SignUp-CXCezG-m.js → SignUp-ClYhZq9H.js} +3 -3
- package/lib/{SignUp-CXCezG-m.js.map → SignUp-ClYhZq9H.js.map} +1 -1
- package/lib/{Slot-tFjhrd8V.js → Slot-B31yZlfB.js} +316 -336
- package/lib/{Slot-tFjhrd8V.js.map → Slot-B31yZlfB.js.map} +1 -1
- package/lib/Spinner-mNLZ6awP.js.map +1 -1
- package/lib/{SyntaxHighlight-Bp_UsIXG.js → SyntaxHighlight-bm761HDo.js} +3 -3
- package/lib/{SyntaxHighlight-Bp_UsIXG.js.map → SyntaxHighlight-bm761HDo.js.map} +1 -1
- package/lib/{Toc-Ck0YQtmd.js → Toc-D4oBWE8D.js} +3 -3
- package/lib/{Toc-Ck0YQtmd.js.map → Toc-D4oBWE8D.js.map} +1 -1
- package/lib/chunk-DQRVZFIR-DHK7_Ilc.js.map +1 -1
- package/lib/{circular-BtKlhs07.js → circular-CRbFI6Zl.js} +2 -2
- package/lib/{circular-BtKlhs07.js.map → circular-CRbFI6Zl.js.map} +1 -1
- package/lib/{cn-wvCW-ho6.js → cn-dYga0KKN.js} +2 -2
- package/lib/cn-dYga0KKN.js.map +1 -0
- package/lib/{createServer-Di2U1Dg0.js → createServer-DNyGJJNX.js} +3398 -3552
- package/lib/createServer-DNyGJJNX.js.map +1 -0
- package/lib/errors-C1GlNcV3.js +44 -0
- package/lib/errors-C1GlNcV3.js.map +1 -0
- package/lib/hook-CZjW2buS.js.map +1 -1
- package/lib/index-Bm35Tkgf.js.map +1 -1
- package/lib/{index-CeQqiMIG.js → index-CZTEgYDd.js} +2 -2
- package/lib/{index-CeQqiMIG.js.map → index-CZTEgYDd.js.map} +1 -1
- package/lib/{index-BTqwnlI5.js → index-C_PXQ8Bx.js} +612 -610
- package/lib/{index-BTqwnlI5.js.map → index-C_PXQ8Bx.js.map} +1 -1
- package/lib/index-CrcNWbel.js.map +1 -1
- package/lib/{index-DKCEJ4Kd.js → index-D09PbNex.js} +911 -911
- package/lib/index-D09PbNex.js.map +1 -0
- package/lib/index-DI5SPFK9.js.map +1 -1
- package/lib/index-DmNq2fbN.js.map +1 -1
- package/lib/index.esm-Cp4wkyud.js.map +1 -1
- package/lib/invariant-DAFpPywt.js.map +1 -1
- package/lib/jsx-runtime-C5mzlN2N.js.map +1 -1
- package/lib/processors/removeExtensions.js.map +1 -1
- package/lib/processors/removeParameters.js.map +1 -1
- package/lib/processors/removePaths.js.map +1 -1
- package/lib/processors/traverse.js.map +1 -1
- package/lib/ui/Accordion.js +1 -1
- package/lib/ui/Accordion.js.map +1 -1
- package/lib/ui/ActionButton.js +2 -2
- package/lib/ui/ActionButton.js.map +1 -1
- package/lib/ui/Alert.js +1 -1
- package/lib/ui/Alert.js.map +1 -1
- package/lib/ui/AlertDialog.js +1 -1
- package/lib/ui/AlertDialog.js.map +1 -1
- package/lib/ui/Badge.js +1 -1
- package/lib/ui/Badge.js.map +1 -1
- package/lib/ui/Breadcrumb.js +1 -1
- package/lib/ui/Breadcrumb.js.map +1 -1
- package/lib/ui/Button.js +1 -1
- package/lib/ui/Button.js.map +1 -1
- package/lib/ui/Callout.js +1 -1
- package/lib/ui/Callout.js.map +1 -1
- package/lib/ui/Card.js +1 -1
- package/lib/ui/Card.js.map +1 -1
- package/lib/ui/Carousel.js +1 -1
- package/lib/ui/Carousel.js.map +1 -1
- package/lib/ui/Checkbox.js +1 -1
- package/lib/ui/Checkbox.js.map +1 -1
- package/lib/ui/CodeBlock.js +2 -2
- package/lib/ui/Command.js +2 -2
- package/lib/ui/Command.js.map +1 -1
- package/lib/ui/Dialog.js +1 -1
- package/lib/ui/Dialog.js.map +1 -1
- package/lib/ui/Drawer.js +2 -2
- package/lib/ui/DropdownMenu.js +1 -1
- package/lib/ui/DropdownMenu.js.map +1 -1
- package/lib/ui/EmbeddedCodeBlock.js +2 -2
- package/lib/ui/EmbeddedCodeBlock.js.map +1 -1
- package/lib/ui/Form.js +1 -1
- package/lib/ui/Form.js.map +1 -1
- package/lib/ui/HoverCard.js +1 -1
- package/lib/ui/HoverCard.js.map +1 -1
- package/lib/ui/Input.js +1 -1
- package/lib/ui/Input.js.map +1 -1
- package/lib/ui/Label.js +1 -1
- package/lib/ui/Label.js.map +1 -1
- package/lib/ui/Pagination.js +1 -1
- package/lib/ui/Pagination.js.map +1 -1
- package/lib/ui/Popover.js +1 -1
- package/lib/ui/Popover.js.map +1 -1
- package/lib/ui/Progress.js +1 -1
- package/lib/ui/Progress.js.map +1 -1
- package/lib/ui/RadioGroup.js +1 -1
- package/lib/ui/RadioGroup.js.map +1 -1
- package/lib/ui/ScrollArea.js +1 -1
- package/lib/ui/ScrollArea.js.map +1 -1
- package/lib/ui/Select.js +1 -1
- package/lib/ui/Select.js.map +1 -1
- package/lib/ui/Skeleton.js +1 -1
- package/lib/ui/Skeleton.js.map +1 -1
- package/lib/ui/Slider.js +1 -1
- package/lib/ui/Slider.js.map +1 -1
- package/lib/ui/Stepper.js.map +1 -1
- package/lib/ui/Switch.js +1 -1
- package/lib/ui/Switch.js.map +1 -1
- package/lib/ui/SyntaxHighlight.js +2 -2
- package/lib/ui/Tabs.js +1 -1
- package/lib/ui/Tabs.js.map +1 -1
- package/lib/ui/Textarea.js +1 -1
- package/lib/ui/Textarea.js.map +1 -1
- package/lib/ui/Toggle.js +1 -1
- package/lib/ui/Toggle.js.map +1 -1
- package/lib/ui/ToggleGroup.js +1 -1
- package/lib/ui/ToggleGroup.js.map +1 -1
- package/lib/ui/Tooltip.js +1 -1
- package/lib/ui/Tooltip.js.map +1 -1
- package/lib/ui/util.js +1 -1
- package/lib/useExposedProps-BIYjecPD.js.map +1 -1
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-azureb2c.js +40 -9882
- package/lib/zudoku.auth-azureb2c.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +20 -19
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.auth-supabase.js +97 -0
- package/lib/zudoku.auth-supabase.js.map +1 -0
- package/lib/zudoku.components.js +3 -3
- package/lib/zudoku.hooks.js.map +1 -1
- package/lib/zudoku.icons.js.map +1 -1
- package/lib/zudoku.plugin-api-catalog.js +4 -4
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +266 -263
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +1 -1
- package/lib/zudoku.plugin-redirect.js.map +1 -1
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +5 -5
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
- package/lib/zudoku.plugins.js.map +1 -1
- package/package.json +18 -18
- package/src/app/main.css +26 -5
- package/src/lib/components/Header.tsx +1 -1
- package/src/lib/components/Markdown.tsx +3 -3
- package/src/lib/components/NotFoundPage.tsx +3 -2
- package/src/lib/components/Typography.tsx +1 -1
- package/src/lib/core/ZudokuContext.ts +1 -0
- package/src/lib/errors/ErrorAlert.tsx +5 -7
- package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
- package/src/lib/plugins/openapi/SidecarExamples.tsx +1 -1
- package/src/lib/plugins/openapi/playground/PathParams.tsx +1 -1
- package/src/lib/plugins/openapi/playground/Playground.tsx +8 -2
- package/src/lib/ui/CodeBlock.tsx +1 -1
- package/src/lib/ui/EmbeddedCodeBlock.tsx +1 -1
- package/lib/OperationList-YZ7k-Rkt.js.map +0 -1
- package/lib/clerk-BDZ31hjU.js +0 -25190
- package/lib/clerk-BDZ31hjU.js.map +0 -1
- package/lib/cn-wvCW-ho6.js.map +0 -1
- package/lib/createServer-Di2U1Dg0.js.map +0 -1
- package/lib/errors-Dv_yAK6M.js +0 -78
- package/lib/errors-Dv_yAK6M.js.map +0 -1
- package/lib/index-DKCEJ4Kd.js.map +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { R as Es, O as Ts, n as gs, P as bs, T as
|
|
1
|
+
import { R as Es, O as Ts, n as gs, P as bs, T as en, j as ii, d as ai, U as As, V as _s } from "./hook-CZjW2buS.js";
|
|
2
2
|
import { j as k } from "./jsx-runtime-C5mzlN2N.js";
|
|
3
3
|
import { u as Tn, d as Cs, f as or, h as Is, c as xs, L as Ns, i as Ss, j as ks } from "./chunk-DQRVZFIR-DHK7_Ilc.js";
|
|
4
4
|
import { CheckIcon as Os, CopyIcon as ys, ChevronRightIcon as Ls, ExternalLinkIcon as Rs, LinkIcon as Ds, UnlinkIcon as Ps } from "lucide-react";
|
|
5
5
|
import { a as ws, c as si } from "./index-DI5SPFK9.js";
|
|
6
6
|
import { Callout as Ue } from "./ui/Callout.js";
|
|
7
7
|
import * as Ms from "react";
|
|
8
|
-
import {
|
|
9
|
-
import { s as
|
|
10
|
-
import { c as ie } from "./cn-
|
|
11
|
-
import { u as Xs, C as Ks } from "./CodeBlock-
|
|
12
|
-
import * as
|
|
8
|
+
import { useRef as je, createContext as oi, use as li, useEffect as et, useCallback as ci, useState as sn, useMemo as Ft, memo as lr, Fragment as Bs } from "react";
|
|
9
|
+
import { s as tn, p as Ve, a as cr, v as gn, b as Fs, V as Hs, u as Us, t as vs, c as Yr, d as qr, o as Me, z as fi, e as zs, f as Ys, g as qs, i as hi, j as js, k as jr, E as Vs, S as Ws, l as Qs, h as Gs } from "./SyntaxHighlight-bm761HDo.js";
|
|
10
|
+
import { c as ie } from "./cn-dYga0KKN.js";
|
|
11
|
+
import { u as Xs, C as Ks } from "./CodeBlock-B-G0eKtw.js";
|
|
12
|
+
import * as pt from "@radix-ui/react-tooltip";
|
|
13
13
|
import * as yn from "@radix-ui/react-collapsible";
|
|
14
|
-
import { B as $s } from "./Button-
|
|
14
|
+
import { B as $s } from "./Button-B3o-2Xdf.js";
|
|
15
15
|
import { Slot as Js } from "@radix-ui/react-slot";
|
|
16
16
|
import { Button as Zs } from "./ui/Button.js";
|
|
17
17
|
import { Stepper as eo } from "./ui/Stepper.js";
|
|
@@ -333,7 +333,7 @@ function mi(e, t) {
|
|
|
333
333
|
function ft(e) {
|
|
334
334
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
335
335
|
}
|
|
336
|
-
const de =
|
|
336
|
+
const de = We(/[A-Za-z]/), fe = We(/[\dA-Za-z]/), ho = We(/[#-'*+\--9=?A-Z^-~]/);
|
|
337
337
|
function on(e) {
|
|
338
338
|
return (
|
|
339
339
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
@@ -341,7 +341,7 @@ function on(e) {
|
|
|
341
341
|
e !== null && (e < 32 || e === 127)
|
|
342
342
|
);
|
|
343
343
|
}
|
|
344
|
-
const Xn =
|
|
344
|
+
const Xn = We(/\d/), mo = We(/[\dA-Fa-f]/), po = We(/[!-/:-@[-`{-~]/);
|
|
345
345
|
function H(e) {
|
|
346
346
|
return e !== null && e < -2;
|
|
347
347
|
}
|
|
@@ -351,8 +351,8 @@ function J(e) {
|
|
|
351
351
|
function j(e) {
|
|
352
352
|
return e === -2 || e === -1 || e === 32;
|
|
353
353
|
}
|
|
354
|
-
const bn =
|
|
355
|
-
function
|
|
354
|
+
const bn = We(/\p{P}|\p{S}/u), tt = We(/\s/);
|
|
355
|
+
function We(e) {
|
|
356
356
|
return t;
|
|
357
357
|
function t(n) {
|
|
358
358
|
return n !== null && n > -1 && e.test(String.fromCharCode(n));
|
|
@@ -548,7 +548,7 @@ function Ao(e, t, n) {
|
|
|
548
548
|
this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
|
|
549
549
|
);
|
|
550
550
|
}
|
|
551
|
-
function
|
|
551
|
+
function dt(e) {
|
|
552
552
|
if (e === null || J(e) || tt(e))
|
|
553
553
|
return 1;
|
|
554
554
|
if (bn(e))
|
|
@@ -627,7 +627,7 @@ function _o(e, t) {
|
|
|
627
627
|
return e;
|
|
628
628
|
}
|
|
629
629
|
function Co(e, t) {
|
|
630
|
-
const n = this.parser.constructs.attentionMarkers.null, r = this.previous, u =
|
|
630
|
+
const n = this.parser.constructs.attentionMarkers.null, r = this.previous, u = dt(r);
|
|
631
631
|
let a;
|
|
632
632
|
return i;
|
|
633
633
|
function i(l) {
|
|
@@ -636,7 +636,7 @@ function Co(e, t) {
|
|
|
636
636
|
function o(l) {
|
|
637
637
|
if (l === a)
|
|
638
638
|
return e.consume(l), o;
|
|
639
|
-
const c = e.exit("attentionSequence"), h =
|
|
639
|
+
const c = e.exit("attentionSequence"), h = dt(l), f = !h || h === 2 && u || n.includes(l), p = !u || u === 2 && h || n.includes(r);
|
|
640
640
|
return c._open = !!(a === 42 ? f : f && (u || !p)), c._close = !!(a === 42 ? p : p && (h || !f)), t(l);
|
|
641
641
|
}
|
|
642
642
|
}
|
|
@@ -1114,7 +1114,7 @@ function _i(e, t, n, r, u, a) {
|
|
|
1114
1114
|
return p === i || p === 92 ? (e.consume(p), h) : h(p);
|
|
1115
1115
|
}
|
|
1116
1116
|
}
|
|
1117
|
-
function
|
|
1117
|
+
function Lt(e, t) {
|
|
1118
1118
|
let n;
|
|
1119
1119
|
return r;
|
|
1120
1120
|
function r(u) {
|
|
@@ -1153,7 +1153,7 @@ function Go(e, t, n) {
|
|
|
1153
1153
|
), d === 58 ? (e.enter("definitionMarker"), e.consume(d), e.exit("definitionMarker"), l) : n(d);
|
|
1154
1154
|
}
|
|
1155
1155
|
function l(d) {
|
|
1156
|
-
return J(d) ?
|
|
1156
|
+
return J(d) ? Lt(e, c)(d) : c(d);
|
|
1157
1157
|
}
|
|
1158
1158
|
function c(d) {
|
|
1159
1159
|
return bi(
|
|
@@ -1181,7 +1181,7 @@ function Go(e, t, n) {
|
|
|
1181
1181
|
function Xo(e, t, n) {
|
|
1182
1182
|
return r;
|
|
1183
1183
|
function r(o) {
|
|
1184
|
-
return J(o) ?
|
|
1184
|
+
return J(o) ? Lt(e, u)(o) : n(o);
|
|
1185
1185
|
}
|
|
1186
1186
|
function u(o) {
|
|
1187
1187
|
return _i(
|
|
@@ -1367,8 +1367,8 @@ function al(e, t, n) {
|
|
|
1367
1367
|
}
|
|
1368
1368
|
function L(b) {
|
|
1369
1369
|
if (b === null || b === 47 || b === 62 || J(b)) {
|
|
1370
|
-
const Ie = b === 47,
|
|
1371
|
-
return !Ie && !a && Zr.includes(
|
|
1370
|
+
const Ie = b === 47, Ge = i.toLowerCase();
|
|
1371
|
+
return !Ie && !a && Zr.includes(Ge) ? (u = 1, r.interrupt ? t(b) : F(b)) : tl.includes(i.toLowerCase()) ? (u = 6, Ie ? (e.consume(b), x) : r.interrupt ? t(b) : F(b)) : (u = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(b) : a ? w(b) : D(b));
|
|
1372
1372
|
}
|
|
1373
1373
|
return b === 45 || fe(b) ? (e.consume(b), i += String.fromCharCode(b), L) : n(b);
|
|
1374
1374
|
}
|
|
@@ -1682,7 +1682,7 @@ function Tl(e, t, n) {
|
|
|
1682
1682
|
return e.enter("resource"), e.enter("resourceMarker"), e.consume(f), e.exit("resourceMarker"), u;
|
|
1683
1683
|
}
|
|
1684
1684
|
function u(f) {
|
|
1685
|
-
return J(f) ?
|
|
1685
|
+
return J(f) ? Lt(e, a)(f) : a(f);
|
|
1686
1686
|
}
|
|
1687
1687
|
function a(f) {
|
|
1688
1688
|
return f === 41 ? h(f) : bi(
|
|
@@ -1698,7 +1698,7 @@ function Tl(e, t, n) {
|
|
|
1698
1698
|
)(f);
|
|
1699
1699
|
}
|
|
1700
1700
|
function i(f) {
|
|
1701
|
-
return J(f) ?
|
|
1701
|
+
return J(f) ? Lt(e, l)(f) : h(f);
|
|
1702
1702
|
}
|
|
1703
1703
|
function o(f) {
|
|
1704
1704
|
return n(f);
|
|
@@ -1714,7 +1714,7 @@ function Tl(e, t, n) {
|
|
|
1714
1714
|
)(f) : h(f);
|
|
1715
1715
|
}
|
|
1716
1716
|
function c(f) {
|
|
1717
|
-
return J(f) ?
|
|
1717
|
+
return J(f) ? Lt(e, h)(f) : h(f);
|
|
1718
1718
|
}
|
|
1719
1719
|
function h(f) {
|
|
1720
1720
|
return f === 41 ? (e.enter("resourceMarker"), e.consume(f), e.exit("resourceMarker"), e.exit("resource"), t) : n(f);
|
|
@@ -1797,7 +1797,7 @@ function xl(e, t) {
|
|
|
1797
1797
|
return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), W(e, t, "linePrefix");
|
|
1798
1798
|
}
|
|
1799
1799
|
}
|
|
1800
|
-
const
|
|
1800
|
+
const nn = {
|
|
1801
1801
|
name: "thematicBreak",
|
|
1802
1802
|
tokenize: Nl
|
|
1803
1803
|
};
|
|
@@ -1841,7 +1841,7 @@ function Ol(e, t, n) {
|
|
|
1841
1841
|
if (r.containerState.type || (r.containerState.type = A, e.enter(A, {
|
|
1842
1842
|
_container: !0
|
|
1843
1843
|
})), A === "listUnordered")
|
|
1844
|
-
return e.enter("listItemPrefix"), d === 42 || d === 45 ? e.check(
|
|
1844
|
+
return e.enter("listItemPrefix"), d === 42 || d === 45 ? e.check(nn, n, c)(d) : c(d);
|
|
1845
1845
|
if (!r.interrupt || d === 49)
|
|
1846
1846
|
return e.enter("listItemPrefix"), e.enter("listItemValue"), l(d);
|
|
1847
1847
|
}
|
|
@@ -2201,13 +2201,13 @@ function zl(e, t, n) {
|
|
|
2201
2201
|
Re([ne])
|
|
2202
2202
|
) : Ce(ne);
|
|
2203
2203
|
function Ce(le) {
|
|
2204
|
-
return
|
|
2205
|
-
function
|
|
2206
|
-
const it = Fe !== null && le[Fe],
|
|
2204
|
+
return _t;
|
|
2205
|
+
function _t(Fe) {
|
|
2206
|
+
const it = Fe !== null && le[Fe], Xe = Fe !== null && le.null, On = [
|
|
2207
2207
|
// To do: add more extension tests.
|
|
2208
2208
|
/* c8 ignore next 2 */
|
|
2209
2209
|
...Array.isArray(it) ? it : it ? [it] : [],
|
|
2210
|
-
...Array.isArray(
|
|
2210
|
+
...Array.isArray(Xe) ? Xe : Xe ? [Xe] : []
|
|
2211
2211
|
];
|
|
2212
2212
|
return Re(On)(Fe);
|
|
2213
2213
|
}
|
|
@@ -2216,23 +2216,23 @@ function zl(e, t, n) {
|
|
|
2216
2216
|
return oe = le, _e = 0, le.length === 0 ? ce : b(le[_e]);
|
|
2217
2217
|
}
|
|
2218
2218
|
function b(le) {
|
|
2219
|
-
return
|
|
2220
|
-
function
|
|
2221
|
-
return g = X(), Le = le, le.partial || (c.currentConstruct = le), le.name && c.parser.constructs.disable.null.includes(le.name) ?
|
|
2219
|
+
return _t;
|
|
2220
|
+
function _t(Fe) {
|
|
2221
|
+
return g = X(), Le = le, le.partial || (c.currentConstruct = le), le.name && c.parser.constructs.disable.null.includes(le.name) ? Ge() : le.tokenize.call(
|
|
2222
2222
|
// If we do have fields, create an object w/ `context` as its
|
|
2223
2223
|
// prototype.
|
|
2224
2224
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
2225
2225
|
F ? Object.assign(Object.create(c), F) : c,
|
|
2226
2226
|
l,
|
|
2227
2227
|
Ie,
|
|
2228
|
-
|
|
2228
|
+
Ge
|
|
2229
2229
|
)(Fe);
|
|
2230
2230
|
}
|
|
2231
2231
|
}
|
|
2232
2232
|
function Ie(le) {
|
|
2233
2233
|
return B(Le, g), G;
|
|
2234
2234
|
}
|
|
2235
|
-
function
|
|
2235
|
+
function Ge(le) {
|
|
2236
2236
|
return g.restore(), ++_e < oe.length ? b(oe[_e]) : ce;
|
|
2237
2237
|
}
|
|
2238
2238
|
}
|
|
@@ -2337,11 +2337,11 @@ const jl = {
|
|
|
2337
2337
|
32: Rn
|
|
2338
2338
|
}, Ql = {
|
|
2339
2339
|
35: Jo,
|
|
2340
|
-
42:
|
|
2341
|
-
45: [eu,
|
|
2340
|
+
42: nn,
|
|
2341
|
+
45: [eu, nn],
|
|
2342
2342
|
60: nl,
|
|
2343
2343
|
61: eu,
|
|
2344
|
-
95:
|
|
2344
|
+
95: nn,
|
|
2345
2345
|
96: Jr,
|
|
2346
2346
|
126: Jr
|
|
2347
2347
|
}, Gl = {
|
|
@@ -2474,10 +2474,10 @@ function sc(e) {
|
|
|
2474
2474
|
blockQuote: a(it),
|
|
2475
2475
|
characterEscape: X,
|
|
2476
2476
|
characterReference: X,
|
|
2477
|
-
codeFenced: a(
|
|
2477
|
+
codeFenced: a(Xe),
|
|
2478
2478
|
codeFencedFenceInfo: i,
|
|
2479
2479
|
codeFencedFenceMeta: i,
|
|
2480
|
-
codeIndented: a(
|
|
2480
|
+
codeIndented: a(Xe, i),
|
|
2481
2481
|
codeText: a(On, i),
|
|
2482
2482
|
codeTextData: X,
|
|
2483
2483
|
data: X,
|
|
@@ -2514,11 +2514,11 @@ function sc(e) {
|
|
|
2514
2514
|
atxHeadingSequence: Y,
|
|
2515
2515
|
autolink: l(),
|
|
2516
2516
|
autolinkEmail: Fe,
|
|
2517
|
-
autolinkProtocol:
|
|
2517
|
+
autolinkProtocol: _t,
|
|
2518
2518
|
blockQuote: l(),
|
|
2519
2519
|
characterEscapeValue: N,
|
|
2520
|
-
characterReferenceMarkerHexadecimal:
|
|
2521
|
-
characterReferenceMarkerNumeric:
|
|
2520
|
+
characterReferenceMarkerHexadecimal: Ge,
|
|
2521
|
+
characterReferenceMarkerNumeric: Ge,
|
|
2522
2522
|
characterReferenceValue: le,
|
|
2523
2523
|
codeFenced: l(L),
|
|
2524
2524
|
codeFencedFence: I,
|
|
@@ -2623,18 +2623,18 @@ function sc(e) {
|
|
|
2623
2623
|
return M;
|
|
2624
2624
|
}
|
|
2625
2625
|
function u(S, M, U) {
|
|
2626
|
-
let V = M - 1, K = -1, xe = !1,
|
|
2626
|
+
let V = M - 1, K = -1, xe = !1, Ke, De, Ct, It;
|
|
2627
2627
|
for (; ++V <= U; ) {
|
|
2628
2628
|
const Ee = S[V];
|
|
2629
2629
|
switch (Ee[1].type) {
|
|
2630
2630
|
case "listUnordered":
|
|
2631
2631
|
case "listOrdered":
|
|
2632
2632
|
case "blockQuote": {
|
|
2633
|
-
Ee[0] === "enter" ? K++ : K--,
|
|
2633
|
+
Ee[0] === "enter" ? K++ : K--, It = void 0;
|
|
2634
2634
|
break;
|
|
2635
2635
|
}
|
|
2636
2636
|
case "lineEndingBlank": {
|
|
2637
|
-
Ee[0] === "enter" && (
|
|
2637
|
+
Ee[0] === "enter" && (Ke && !It && !K && !Ct && (Ct = V), It = void 0);
|
|
2638
2638
|
break;
|
|
2639
2639
|
}
|
|
2640
2640
|
case "linePrefix":
|
|
@@ -2644,10 +2644,10 @@ function sc(e) {
|
|
|
2644
2644
|
case "listItemPrefixWhitespace":
|
|
2645
2645
|
break;
|
|
2646
2646
|
default:
|
|
2647
|
-
|
|
2647
|
+
It = void 0;
|
|
2648
2648
|
}
|
|
2649
2649
|
if (!K && Ee[0] === "enter" && Ee[1].type === "listItemPrefix" || K === -1 && Ee[0] === "exit" && (Ee[1].type === "listUnordered" || Ee[1].type === "listOrdered")) {
|
|
2650
|
-
if (
|
|
2650
|
+
if (Ke) {
|
|
2651
2651
|
let at = V;
|
|
2652
2652
|
for (De = void 0; at--; ) {
|
|
2653
2653
|
const Pe = S[at];
|
|
@@ -2656,10 +2656,10 @@ function sc(e) {
|
|
|
2656
2656
|
De && (S[De][1].type = "lineEndingBlank", xe = !0), Pe[1].type = "lineEnding", De = at;
|
|
2657
2657
|
} else if (!(Pe[1].type === "linePrefix" || Pe[1].type === "blockQuotePrefix" || Pe[1].type === "blockQuotePrefixWhitespace" || Pe[1].type === "blockQuoteMarker" || Pe[1].type === "listItemIndent")) break;
|
|
2658
2658
|
}
|
|
2659
|
-
|
|
2659
|
+
Ct && (!De || Ct < De) && (Ke._spread = !0), Ke.end = Object.assign(
|
|
2660
2660
|
{},
|
|
2661
2661
|
De ? S[De][1].start : Ee[1].end
|
|
2662
|
-
), S.splice(De || V, 0, ["exit",
|
|
2662
|
+
), S.splice(De || V, 0, ["exit", Ke, Ee[2]]), V++, U++;
|
|
2663
2663
|
}
|
|
2664
2664
|
if (Ee[1].type === "listItemPrefix") {
|
|
2665
2665
|
const at = {
|
|
@@ -2669,7 +2669,7 @@ function sc(e) {
|
|
|
2669
2669
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
2670
2670
|
end: void 0
|
|
2671
2671
|
};
|
|
2672
|
-
|
|
2672
|
+
Ke = at, S.splice(V, 0, ["enter", at, Ee[2]]), V++, U++, Ct = void 0, It = !0;
|
|
2673
2673
|
}
|
|
2674
2674
|
}
|
|
2675
2675
|
}
|
|
@@ -2705,7 +2705,7 @@ function sc(e) {
|
|
|
2705
2705
|
if (V)
|
|
2706
2706
|
V[0].type !== S.type && (M ? M.call(this, S, V[0]) : (V[1] || nu).call(this, S, V[0]));
|
|
2707
2707
|
else throw new Error(
|
|
2708
|
-
"Cannot close `" + S.type + "` (" +
|
|
2708
|
+
"Cannot close `" + S.type + "` (" + tn({
|
|
2709
2709
|
start: S.start,
|
|
2710
2710
|
end: S.end
|
|
2711
2711
|
}) + "): it’s not open"
|
|
@@ -2861,7 +2861,7 @@ function sc(e) {
|
|
|
2861
2861
|
this.sliceSerialize(S)
|
|
2862
2862
|
).toLowerCase(), this.data.referenceType = "full";
|
|
2863
2863
|
}
|
|
2864
|
-
function
|
|
2864
|
+
function Ge(S) {
|
|
2865
2865
|
this.data.characterReferenceType = S.type;
|
|
2866
2866
|
}
|
|
2867
2867
|
function le(S) {
|
|
@@ -2874,7 +2874,7 @@ function sc(e) {
|
|
|
2874
2874
|
const K = this.stack.pop();
|
|
2875
2875
|
K.value += V, K.position.end = He(S.end);
|
|
2876
2876
|
}
|
|
2877
|
-
function
|
|
2877
|
+
function _t(S) {
|
|
2878
2878
|
N.call(this, S);
|
|
2879
2879
|
const M = this.stack[this.stack.length - 1];
|
|
2880
2880
|
M.url = this.sliceSerialize(S);
|
|
@@ -2890,7 +2890,7 @@ function sc(e) {
|
|
|
2890
2890
|
children: []
|
|
2891
2891
|
};
|
|
2892
2892
|
}
|
|
2893
|
-
function
|
|
2893
|
+
function Xe() {
|
|
2894
2894
|
return {
|
|
2895
2895
|
type: "code",
|
|
2896
2896
|
lang: null,
|
|
@@ -3034,15 +3034,15 @@ function oc(e, t) {
|
|
|
3034
3034
|
}
|
|
3035
3035
|
function nu(e, t) {
|
|
3036
3036
|
throw e ? new Error(
|
|
3037
|
-
"Cannot close `" + e.type + "` (" +
|
|
3037
|
+
"Cannot close `" + e.type + "` (" + tn({
|
|
3038
3038
|
start: e.start,
|
|
3039
3039
|
end: e.end
|
|
3040
|
-
}) + "): a different token (`" + t.type + "`, " +
|
|
3040
|
+
}) + "): a different token (`" + t.type + "`, " + tn({
|
|
3041
3041
|
start: t.start,
|
|
3042
3042
|
end: t.end
|
|
3043
3043
|
}) + ") is open"
|
|
3044
3044
|
) : new Error(
|
|
3045
|
-
"Cannot close document, a token (`" + t.type + "`, " +
|
|
3045
|
+
"Cannot close document, a token (`" + t.type + "`, " + tn({
|
|
3046
3046
|
start: t.start,
|
|
3047
3047
|
end: t.end
|
|
3048
3048
|
}) + ") is still open"
|
|
@@ -3107,7 +3107,7 @@ function mc(e, t) {
|
|
|
3107
3107
|
};
|
|
3108
3108
|
return e.patch(t, n), e.applyData(t, n);
|
|
3109
3109
|
}
|
|
3110
|
-
function
|
|
3110
|
+
function Et(e) {
|
|
3111
3111
|
const t = [];
|
|
3112
3112
|
let n = -1, r = 0, u = 0;
|
|
3113
3113
|
for (; ++n < e.length; ) {
|
|
@@ -3127,7 +3127,7 @@ function Tt(e) {
|
|
|
3127
3127
|
return t.join("") + e.slice(r);
|
|
3128
3128
|
}
|
|
3129
3129
|
function pc(e, t) {
|
|
3130
|
-
const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(t.identifier).toUpperCase(), u =
|
|
3130
|
+
const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(t.identifier).toUpperCase(), u = Et(r.toLowerCase()), a = e.footnoteOrder.indexOf(r);
|
|
3131
3131
|
let i, o = e.footnoteCounts.get(r);
|
|
3132
3132
|
o === void 0 ? (o = 0, e.footnoteOrder.push(r), i = e.footnoteOrder.length) : i = a + 1, o += 1, e.footnoteCounts.set(r, o);
|
|
3133
3133
|
const l = {
|
|
@@ -3179,13 +3179,13 @@ function gc(e, t) {
|
|
|
3179
3179
|
const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
|
|
3180
3180
|
if (!r)
|
|
3181
3181
|
return Si(e, t);
|
|
3182
|
-
const u = { src:
|
|
3182
|
+
const u = { src: Et(r.url || ""), alt: t.alt };
|
|
3183
3183
|
r.title !== null && r.title !== void 0 && (u.title = r.title);
|
|
3184
3184
|
const a = { type: "element", tagName: "img", properties: u, children: [] };
|
|
3185
3185
|
return e.patch(t, a), e.applyData(t, a);
|
|
3186
3186
|
}
|
|
3187
3187
|
function bc(e, t) {
|
|
3188
|
-
const n = { src:
|
|
3188
|
+
const n = { src: Et(t.url) };
|
|
3189
3189
|
t.alt !== null && t.alt !== void 0 && (n.alt = t.alt), t.title !== null && t.title !== void 0 && (n.title = t.title);
|
|
3190
3190
|
const r = { type: "element", tagName: "img", properties: n, children: [] };
|
|
3191
3191
|
return e.patch(t, r), e.applyData(t, r);
|
|
@@ -3205,7 +3205,7 @@ function _c(e, t) {
|
|
|
3205
3205
|
const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
|
|
3206
3206
|
if (!r)
|
|
3207
3207
|
return Si(e, t);
|
|
3208
|
-
const u = { href:
|
|
3208
|
+
const u = { href: Et(r.url || "") };
|
|
3209
3209
|
r.title !== null && r.title !== void 0 && (u.title = r.title);
|
|
3210
3210
|
const a = {
|
|
3211
3211
|
type: "element",
|
|
@@ -3216,7 +3216,7 @@ function _c(e, t) {
|
|
|
3216
3216
|
return e.patch(t, a), e.applyData(t, a);
|
|
3217
3217
|
}
|
|
3218
3218
|
function Cc(e, t) {
|
|
3219
|
-
const n = { href:
|
|
3219
|
+
const n = { href: Et(t.url) };
|
|
3220
3220
|
t.title !== null && t.title !== void 0 && (n.title = t.title);
|
|
3221
3221
|
const r = {
|
|
3222
3222
|
type: "element",
|
|
@@ -3322,7 +3322,7 @@ function yc(e, t) {
|
|
|
3322
3322
|
tagName: "tbody",
|
|
3323
3323
|
properties: {},
|
|
3324
3324
|
children: e.wrap(n, !0)
|
|
3325
|
-
}, o =
|
|
3325
|
+
}, o = Ve(t.children[1]), l = cr(t.children[t.children.length - 1]);
|
|
3326
3326
|
o && l && (i.position = { start: o, end: l }), u.push(i);
|
|
3327
3327
|
}
|
|
3328
3328
|
const a = {
|
|
@@ -3425,14 +3425,14 @@ const Mc = {
|
|
|
3425
3425
|
tableRow: Lc,
|
|
3426
3426
|
text: Pc,
|
|
3427
3427
|
thematicBreak: wc,
|
|
3428
|
-
toml:
|
|
3429
|
-
yaml:
|
|
3430
|
-
definition:
|
|
3431
|
-
footnoteDefinition:
|
|
3428
|
+
toml: Qt,
|
|
3429
|
+
yaml: Qt,
|
|
3430
|
+
definition: Qt,
|
|
3431
|
+
footnoteDefinition: Qt
|
|
3432
3432
|
};
|
|
3433
|
-
function
|
|
3433
|
+
function Qt() {
|
|
3434
3434
|
}
|
|
3435
|
-
const Oi = -1, _n = 0,
|
|
3435
|
+
const Oi = -1, _n = 0, Rt = 1, ln = 2, pr = 3, Er = 4, Tr = 5, gr = 6, yi = 7, Li = 8, au = typeof self == "object" ? self : globalThis, Bc = (e, t) => {
|
|
3436
3436
|
const n = (u, a) => (e.set(a, u), u), r = (u) => {
|
|
3437
3437
|
if (e.has(u))
|
|
3438
3438
|
return e.get(u);
|
|
@@ -3441,7 +3441,7 @@ const Oi = -1, _n = 0, Dt = 1, ln = 2, pr = 3, Er = 4, Tr = 5, gr = 6, yi = 7, L
|
|
|
3441
3441
|
case _n:
|
|
3442
3442
|
case Oi:
|
|
3443
3443
|
return n(i, u);
|
|
3444
|
-
case
|
|
3444
|
+
case Rt: {
|
|
3445
3445
|
const o = n([], u);
|
|
3446
3446
|
for (const l of i)
|
|
3447
3447
|
o.push(r(l));
|
|
@@ -3489,14 +3489,14 @@ const Oi = -1, _n = 0, Dt = 1, ln = 2, pr = 3, Er = 4, Tr = 5, gr = 6, yi = 7, L
|
|
|
3489
3489
|
return n(new au[a](i), u);
|
|
3490
3490
|
};
|
|
3491
3491
|
return r;
|
|
3492
|
-
}, su = (e) => Bc(/* @__PURE__ */ new Map(), e)(0), st = "", { toString: Fc } = {}, { keys: Hc } = Object,
|
|
3492
|
+
}, su = (e) => Bc(/* @__PURE__ */ new Map(), e)(0), st = "", { toString: Fc } = {}, { keys: Hc } = Object, xt = (e) => {
|
|
3493
3493
|
const t = typeof e;
|
|
3494
3494
|
if (t !== "object" || !e)
|
|
3495
3495
|
return [_n, t];
|
|
3496
3496
|
const n = Fc.call(e).slice(8, -1);
|
|
3497
3497
|
switch (n) {
|
|
3498
3498
|
case "Array":
|
|
3499
|
-
return [
|
|
3499
|
+
return [Rt, st];
|
|
3500
3500
|
case "Object":
|
|
3501
3501
|
return [ln, st];
|
|
3502
3502
|
case "Date":
|
|
@@ -3508,17 +3508,17 @@ const Oi = -1, _n = 0, Dt = 1, ln = 2, pr = 3, Er = 4, Tr = 5, gr = 6, yi = 7, L
|
|
|
3508
3508
|
case "Set":
|
|
3509
3509
|
return [gr, st];
|
|
3510
3510
|
case "DataView":
|
|
3511
|
-
return [
|
|
3511
|
+
return [Rt, n];
|
|
3512
3512
|
}
|
|
3513
|
-
return n.includes("Array") ? [
|
|
3514
|
-
},
|
|
3513
|
+
return n.includes("Array") ? [Rt, n] : n.includes("Error") ? [yi, n] : [ln, n];
|
|
3514
|
+
}, Gt = ([e, t]) => e === _n && (t === "function" || t === "symbol"), Uc = (e, t, n, r) => {
|
|
3515
3515
|
const u = (i, o) => {
|
|
3516
3516
|
const l = r.push(i) - 1;
|
|
3517
3517
|
return n.set(o, l), l;
|
|
3518
3518
|
}, a = (i) => {
|
|
3519
3519
|
if (n.has(i))
|
|
3520
3520
|
return n.get(i);
|
|
3521
|
-
let [o, l] =
|
|
3521
|
+
let [o, l] = xt(i);
|
|
3522
3522
|
switch (o) {
|
|
3523
3523
|
case _n: {
|
|
3524
3524
|
let h = i;
|
|
@@ -3537,7 +3537,7 @@ const Oi = -1, _n = 0, Dt = 1, ln = 2, pr = 3, Er = 4, Tr = 5, gr = 6, yi = 7, L
|
|
|
3537
3537
|
}
|
|
3538
3538
|
return u([o, h], i);
|
|
3539
3539
|
}
|
|
3540
|
-
case
|
|
3540
|
+
case Rt: {
|
|
3541
3541
|
if (l) {
|
|
3542
3542
|
let p = i;
|
|
3543
3543
|
return l === "DataView" ? p = new Uint8Array(i.buffer) : l === "ArrayBuffer" && (p = new Uint8Array(i)), u([l, [...p]], i);
|
|
@@ -3561,7 +3561,7 @@ const Oi = -1, _n = 0, Dt = 1, ln = 2, pr = 3, Er = 4, Tr = 5, gr = 6, yi = 7, L
|
|
|
3561
3561
|
return a(i.toJSON());
|
|
3562
3562
|
const h = [], f = u([o, h], i);
|
|
3563
3563
|
for (const p of Hc(i))
|
|
3564
|
-
(e || !
|
|
3564
|
+
(e || !Gt(xt(i[p]))) && h.push([a(p), a(i[p])]);
|
|
3565
3565
|
return f;
|
|
3566
3566
|
}
|
|
3567
3567
|
case pr:
|
|
@@ -3573,13 +3573,13 @@ const Oi = -1, _n = 0, Dt = 1, ln = 2, pr = 3, Er = 4, Tr = 5, gr = 6, yi = 7, L
|
|
|
3573
3573
|
case Tr: {
|
|
3574
3574
|
const h = [], f = u([o, h], i);
|
|
3575
3575
|
for (const [p, d] of i)
|
|
3576
|
-
(e || !(
|
|
3576
|
+
(e || !(Gt(xt(p)) || Gt(xt(d)))) && h.push([a(p), a(d)]);
|
|
3577
3577
|
return f;
|
|
3578
3578
|
}
|
|
3579
3579
|
case gr: {
|
|
3580
3580
|
const h = [], f = u([o, h], i);
|
|
3581
3581
|
for (const p of i)
|
|
3582
|
-
(e || !
|
|
3582
|
+
(e || !Gt(xt(p))) && h.push(a(p));
|
|
3583
3583
|
return f;
|
|
3584
3584
|
}
|
|
3585
3585
|
}
|
|
@@ -3617,7 +3617,7 @@ function Yc(e) {
|
|
|
3617
3617
|
);
|
|
3618
3618
|
if (!c)
|
|
3619
3619
|
continue;
|
|
3620
|
-
const h = e.all(c), f = String(c.identifier).toUpperCase(), p =
|
|
3620
|
+
const h = e.all(c), f = String(c.identifier).toUpperCase(), p = Et(f.toLowerCase());
|
|
3621
3621
|
let d = 0;
|
|
3622
3622
|
const A = [], I = e.footnoteCounts.get(f);
|
|
3623
3623
|
for (; I !== void 0 && ++d <= I; ) {
|
|
@@ -3904,7 +3904,7 @@ const Se = { basename: e0, dirname: t0, extname: n0, join: r0, sep: "/" };
|
|
|
3904
3904
|
function e0(e, t) {
|
|
3905
3905
|
if (t !== void 0 && typeof t != "string")
|
|
3906
3906
|
throw new TypeError('"ext" argument must be a string');
|
|
3907
|
-
|
|
3907
|
+
zt(e);
|
|
3908
3908
|
let n = 0, r = -1, u = e.length, a;
|
|
3909
3909
|
if (t === void 0 || t.length === 0 || t.length > e.length) {
|
|
3910
3910
|
for (; u--; )
|
|
@@ -3930,7 +3930,7 @@ function e0(e, t) {
|
|
|
3930
3930
|
return n === r ? r = i : r < 0 && (r = e.length), e.slice(n, r);
|
|
3931
3931
|
}
|
|
3932
3932
|
function t0(e) {
|
|
3933
|
-
if (
|
|
3933
|
+
if (zt(e), e.length === 0)
|
|
3934
3934
|
return ".";
|
|
3935
3935
|
let t = -1, n = e.length, r;
|
|
3936
3936
|
for (; --n; )
|
|
@@ -3943,7 +3943,7 @@ function t0(e) {
|
|
|
3943
3943
|
return t < 0 ? e.codePointAt(0) === 47 ? "/" : "." : t === 1 && e.codePointAt(0) === 47 ? "//" : e.slice(0, t);
|
|
3944
3944
|
}
|
|
3945
3945
|
function n0(e) {
|
|
3946
|
-
|
|
3946
|
+
zt(e);
|
|
3947
3947
|
let t = e.length, n = -1, r = 0, u = -1, a = 0, i;
|
|
3948
3948
|
for (; t--; ) {
|
|
3949
3949
|
const o = e.codePointAt(t);
|
|
@@ -3963,11 +3963,11 @@ function n0(e) {
|
|
|
3963
3963
|
function r0(...e) {
|
|
3964
3964
|
let t = -1, n;
|
|
3965
3965
|
for (; ++t < e.length; )
|
|
3966
|
-
|
|
3966
|
+
zt(e[t]), e[t] && (n = n === void 0 ? e[t] : n + "/" + e[t]);
|
|
3967
3967
|
return n === void 0 ? "." : u0(n);
|
|
3968
3968
|
}
|
|
3969
3969
|
function u0(e) {
|
|
3970
|
-
|
|
3970
|
+
zt(e);
|
|
3971
3971
|
const t = e.codePointAt(0) === 47;
|
|
3972
3972
|
let n = i0(e, !t);
|
|
3973
3973
|
return n.length === 0 && !t && (n = "."), n.length > 0 && e.codePointAt(e.length - 1) === 47 && (n += "/"), t ? "/" + n : n;
|
|
@@ -4003,7 +4003,7 @@ function i0(e, t) {
|
|
|
4003
4003
|
}
|
|
4004
4004
|
return n;
|
|
4005
4005
|
}
|
|
4006
|
-
function
|
|
4006
|
+
function zt(e) {
|
|
4007
4007
|
if (typeof e != "string")
|
|
4008
4008
|
throw new TypeError(
|
|
4009
4009
|
"Path must be a string. Received " + JSON.stringify(e)
|
|
@@ -4616,7 +4616,7 @@ class br extends f0 {
|
|
|
4616
4616
|
*/
|
|
4617
4617
|
parse(t) {
|
|
4618
4618
|
this.freeze();
|
|
4619
|
-
const n =
|
|
4619
|
+
const n = Xt(t), r = this.parser || this.Parser;
|
|
4620
4620
|
return Hn("parse", r), r(String(n), n);
|
|
4621
4621
|
}
|
|
4622
4622
|
/**
|
|
@@ -4665,7 +4665,7 @@ class br extends f0 {
|
|
|
4665
4665
|
const r = this;
|
|
4666
4666
|
return this.freeze(), Hn("process", this.parser || this.Parser), Un("process", this.compiler || this.Compiler), n ? u(void 0, n) : new Promise(u);
|
|
4667
4667
|
function u(a, i) {
|
|
4668
|
-
const o =
|
|
4668
|
+
const o = Xt(t), l = (
|
|
4669
4669
|
/** @type {HeadTree extends undefined ? Node : HeadTree} */
|
|
4670
4670
|
/** @type {unknown} */
|
|
4671
4671
|
r.parse(o)
|
|
@@ -4770,7 +4770,7 @@ class br extends f0 {
|
|
|
4770
4770
|
const u = this.transformers;
|
|
4771
4771
|
return !r && typeof n == "function" && (r = n, n = void 0), r ? a(void 0, r) : new Promise(a);
|
|
4772
4772
|
function a(i, o) {
|
|
4773
|
-
const l =
|
|
4773
|
+
const l = Xt(n);
|
|
4774
4774
|
u.run(t, l, c);
|
|
4775
4775
|
function c(h, f, p) {
|
|
4776
4776
|
const d = (
|
|
@@ -4836,7 +4836,7 @@ class br extends f0 {
|
|
|
4836
4836
|
*/
|
|
4837
4837
|
stringify(t, n) {
|
|
4838
4838
|
this.freeze();
|
|
4839
|
-
const r =
|
|
4839
|
+
const r = Xt(n), u = this.compiler || this.Compiler;
|
|
4840
4840
|
return Un("stringify", u), mu(t), u(t, r);
|
|
4841
4841
|
}
|
|
4842
4842
|
/**
|
|
@@ -4979,7 +4979,7 @@ function pu(e, t, n) {
|
|
|
4979
4979
|
"`" + e + "` finished async. Use `" + t + "` instead"
|
|
4980
4980
|
);
|
|
4981
4981
|
}
|
|
4982
|
-
function
|
|
4982
|
+
function Xt(e) {
|
|
4983
4983
|
return m0(e) ? e : new Ri(e);
|
|
4984
4984
|
}
|
|
4985
4985
|
function m0(e) {
|
|
@@ -5026,31 +5026,8 @@ const T0 = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md",
|
|
|
5026
5026
|
{ from: "transformLinkUri", id: "#add-urltransform", to: "urlTransform" }
|
|
5027
5027
|
];
|
|
5028
5028
|
function A0(e) {
|
|
5029
|
-
const t = _0(e),
|
|
5030
|
-
|
|
5031
|
-
void 0
|
|
5032
|
-
), [u, a] = dt(
|
|
5033
|
-
/** @type {Root | undefined} */
|
|
5034
|
-
void 0
|
|
5035
|
-
);
|
|
5036
|
-
if (Ve(
|
|
5037
|
-
function() {
|
|
5038
|
-
let i = !1;
|
|
5039
|
-
const o = C0(e);
|
|
5040
|
-
return t.run(t.parse(o), o, function(l, c) {
|
|
5041
|
-
i || (r(l), a(c));
|
|
5042
|
-
}), function() {
|
|
5043
|
-
i = !0;
|
|
5044
|
-
};
|
|
5045
|
-
},
|
|
5046
|
-
[
|
|
5047
|
-
e.children,
|
|
5048
|
-
e.rehypePlugins,
|
|
5049
|
-
e.remarkPlugins,
|
|
5050
|
-
e.remarkRehypeOptions
|
|
5051
|
-
]
|
|
5052
|
-
), n) throw n;
|
|
5053
|
-
return u ? I0(u, e) : e.fallback;
|
|
5029
|
+
const t = _0(e), n = C0(e);
|
|
5030
|
+
return I0(t.runSync(t.parse(n), n), e);
|
|
5054
5031
|
}
|
|
5055
5032
|
function _0(e) {
|
|
5056
5033
|
const t = e.rehypePlugins || Eu, n = e.remarkPlugins || Eu, r = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...Tu } : Tu;
|
|
@@ -5153,7 +5130,7 @@ const Di = -1, Cn = 0, fn = 1, hn = 2, Ar = 3, _r = 4, Cr = 5, Ir = 6, Pi = 7, w
|
|
|
5153
5130
|
return n(new gu[a](i), u);
|
|
5154
5131
|
};
|
|
5155
5132
|
return r;
|
|
5156
|
-
}, bu = (e) => N0(/* @__PURE__ */ new Map(), e)(0), ot = "", { toString: S0 } = {}, { keys: k0 } = Object,
|
|
5133
|
+
}, bu = (e) => N0(/* @__PURE__ */ new Map(), e)(0), ot = "", { toString: S0 } = {}, { keys: k0 } = Object, Nt = (e) => {
|
|
5157
5134
|
const t = typeof e;
|
|
5158
5135
|
if (t !== "object" || !e)
|
|
5159
5136
|
return [Cn, t];
|
|
@@ -5173,14 +5150,14 @@ const Di = -1, Cn = 0, fn = 1, hn = 2, Ar = 3, _r = 4, Cr = 5, Ir = 6, Pi = 7, w
|
|
|
5173
5150
|
return [Ir, ot];
|
|
5174
5151
|
}
|
|
5175
5152
|
return n.includes("Array") ? [fn, n] : n.includes("Error") ? [Pi, n] : [hn, n];
|
|
5176
|
-
},
|
|
5153
|
+
}, Kt = ([e, t]) => e === Cn && (t === "function" || t === "symbol"), O0 = (e, t, n, r) => {
|
|
5177
5154
|
const u = (i, o) => {
|
|
5178
5155
|
const l = r.push(i) - 1;
|
|
5179
5156
|
return n.set(o, l), l;
|
|
5180
5157
|
}, a = (i) => {
|
|
5181
5158
|
if (n.has(i))
|
|
5182
5159
|
return n.get(i);
|
|
5183
|
-
let [o, l] =
|
|
5160
|
+
let [o, l] = Nt(i);
|
|
5184
5161
|
switch (o) {
|
|
5185
5162
|
case Cn: {
|
|
5186
5163
|
let h = i;
|
|
@@ -5221,7 +5198,7 @@ const Di = -1, Cn = 0, fn = 1, hn = 2, Ar = 3, _r = 4, Cr = 5, Ir = 6, Pi = 7, w
|
|
|
5221
5198
|
return a(i.toJSON());
|
|
5222
5199
|
const h = [], f = u([o, h], i);
|
|
5223
5200
|
for (const p of k0(i))
|
|
5224
|
-
(e ||
|
|
5201
|
+
(e || !Kt(Nt(i[p]))) && h.push([a(p), a(i[p])]);
|
|
5225
5202
|
return f;
|
|
5226
5203
|
}
|
|
5227
5204
|
case Ar:
|
|
@@ -5233,13 +5210,13 @@ const Di = -1, Cn = 0, fn = 1, hn = 2, Ar = 3, _r = 4, Cr = 5, Ir = 6, Pi = 7, w
|
|
|
5233
5210
|
case Cr: {
|
|
5234
5211
|
const h = [], f = u([o, h], i);
|
|
5235
5212
|
for (const [p, d] of i)
|
|
5236
|
-
(e || !(
|
|
5213
|
+
(e || !(Kt(Nt(p)) || Kt(Nt(d)))) && h.push([a(p), a(d)]);
|
|
5237
5214
|
return f;
|
|
5238
5215
|
}
|
|
5239
5216
|
case Ir: {
|
|
5240
5217
|
const h = [], f = u([o, h], i);
|
|
5241
5218
|
for (const p of i)
|
|
5242
|
-
(e ||
|
|
5219
|
+
(e || !Kt(Nt(p))) && h.push(a(p));
|
|
5243
5220
|
return f;
|
|
5244
5221
|
}
|
|
5245
5222
|
}
|
|
@@ -5254,7 +5231,7 @@ const Di = -1, Cn = 0, fn = 1, hn = 2, Ar = 3, _r = 4, Cr = 5, Ir = 6, Pi = 7, w
|
|
|
5254
5231
|
/* c8 ignore start */
|
|
5255
5232
|
(e, t) => t && ("json" in t || "lossy" in t) ? bu(Au(e, t)) : structuredClone(e)
|
|
5256
5233
|
) : (e, t) => bu(Au(e, t));
|
|
5257
|
-
class
|
|
5234
|
+
class Yt {
|
|
5258
5235
|
/**
|
|
5259
5236
|
* @constructor
|
|
5260
5237
|
* @param {Properties} property
|
|
@@ -5265,17 +5242,17 @@ class qt {
|
|
|
5265
5242
|
this.property = t, this.normal = n, r && (this.space = r);
|
|
5266
5243
|
}
|
|
5267
5244
|
}
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5245
|
+
Yt.prototype.property = {};
|
|
5246
|
+
Yt.prototype.normal = {};
|
|
5247
|
+
Yt.prototype.space = null;
|
|
5271
5248
|
function Mi(e, t) {
|
|
5272
5249
|
const n = {}, r = {};
|
|
5273
5250
|
let u = -1;
|
|
5274
5251
|
for (; ++u < e.length; )
|
|
5275
5252
|
Object.assign(n, e[u].property), Object.assign(r, e[u].normal);
|
|
5276
|
-
return new
|
|
5253
|
+
return new Yt(n, r, t);
|
|
5277
5254
|
}
|
|
5278
|
-
function
|
|
5255
|
+
function Ht(e) {
|
|
5279
5256
|
return e.toLowerCase();
|
|
5280
5257
|
}
|
|
5281
5258
|
class Ae {
|
|
@@ -5335,7 +5312,7 @@ function Cu(e, t, n) {
|
|
|
5335
5312
|
n && (e[t] = n);
|
|
5336
5313
|
}
|
|
5337
5314
|
const L0 = {}.hasOwnProperty;
|
|
5338
|
-
function
|
|
5315
|
+
function Tt(e) {
|
|
5339
5316
|
const t = {}, n = {};
|
|
5340
5317
|
let r;
|
|
5341
5318
|
for (r in e.properties)
|
|
@@ -5346,11 +5323,11 @@ function gt(e) {
|
|
|
5346
5323
|
u,
|
|
5347
5324
|
e.space
|
|
5348
5325
|
);
|
|
5349
|
-
e.mustUseProperty && e.mustUseProperty.includes(r) && (a.mustUseProperty = !0), t[r] = a, n[
|
|
5326
|
+
e.mustUseProperty && e.mustUseProperty.includes(r) && (a.mustUseProperty = !0), t[r] = a, n[Ht(r)] = r, n[Ht(a.attribute)] = r;
|
|
5350
5327
|
}
|
|
5351
|
-
return new
|
|
5328
|
+
return new Yt(t, n, e.space);
|
|
5352
5329
|
}
|
|
5353
|
-
const Fi =
|
|
5330
|
+
const Fi = Tt({
|
|
5354
5331
|
space: "xlink",
|
|
5355
5332
|
transform(e, t) {
|
|
5356
5333
|
return "xlink:" + t.slice(5).toLowerCase();
|
|
@@ -5364,7 +5341,7 @@ const Fi = gt({
|
|
|
5364
5341
|
xLinkTitle: null,
|
|
5365
5342
|
xLinkType: null
|
|
5366
5343
|
}
|
|
5367
|
-
}), Hi =
|
|
5344
|
+
}), Hi = Tt({
|
|
5368
5345
|
space: "xml",
|
|
5369
5346
|
transform(e, t) {
|
|
5370
5347
|
return "xml:" + t.slice(3).toLowerCase();
|
|
@@ -5377,12 +5354,12 @@ function Ui(e, t) {
|
|
|
5377
5354
|
function vi(e, t) {
|
|
5378
5355
|
return Ui(e, t.toLowerCase());
|
|
5379
5356
|
}
|
|
5380
|
-
const zi =
|
|
5357
|
+
const zi = Tt({
|
|
5381
5358
|
space: "xmlns",
|
|
5382
5359
|
attributes: { xmlnsxlink: "xmlns:xlink" },
|
|
5383
5360
|
transform: vi,
|
|
5384
5361
|
properties: { xmlns: null, xmlnsXLink: null }
|
|
5385
|
-
}), Yi =
|
|
5362
|
+
}), Yi = Tt({
|
|
5386
5363
|
transform(e, t) {
|
|
5387
5364
|
return t === "role" ? t : "aria-" + t.slice(4).toLowerCase();
|
|
5388
5365
|
},
|
|
@@ -5437,7 +5414,7 @@ const zi = gt({
|
|
|
5437
5414
|
ariaValueText: null,
|
|
5438
5415
|
role: null
|
|
5439
5416
|
}
|
|
5440
|
-
}), R0 =
|
|
5417
|
+
}), R0 = Tt({
|
|
5441
5418
|
space: "html",
|
|
5442
5419
|
attributes: {
|
|
5443
5420
|
acceptcharset: "accept-charset",
|
|
@@ -5798,7 +5775,7 @@ const zi = gt({
|
|
|
5798
5775
|
security: null,
|
|
5799
5776
|
unselectable: null
|
|
5800
5777
|
}
|
|
5801
|
-
}), D0 =
|
|
5778
|
+
}), D0 = Tt({
|
|
5802
5779
|
space: "svg",
|
|
5803
5780
|
attributes: {
|
|
5804
5781
|
accentHeight: "accent-height",
|
|
@@ -6359,7 +6336,7 @@ const zi = gt({
|
|
|
6359
6336
|
}
|
|
6360
6337
|
}), P0 = /^data[-\w.:]+$/i, Iu = /-[a-z]/g, w0 = /[A-Z]/g;
|
|
6361
6338
|
function Nr(e, t) {
|
|
6362
|
-
const n =
|
|
6339
|
+
const n = Ht(t);
|
|
6363
6340
|
let r = t, u = Ae;
|
|
6364
6341
|
if (n in e.normal)
|
|
6365
6342
|
return e.property[e.normal[n]];
|
|
@@ -6384,7 +6361,7 @@ function M0(e) {
|
|
|
6384
6361
|
function B0(e) {
|
|
6385
6362
|
return e.charAt(1).toUpperCase();
|
|
6386
6363
|
}
|
|
6387
|
-
const In = Mi([Hi, Fi, zi, Yi, R0], "html"),
|
|
6364
|
+
const In = Mi([Hi, Fi, zi, Yi, R0], "html"), qt = Mi([Hi, Fi, zi, Yi, D0], "svg"), xu = /[#.]/g;
|
|
6388
6365
|
function F0(e, t) {
|
|
6389
6366
|
const n = e || "", r = {};
|
|
6390
6367
|
let u = 0, a, i;
|
|
@@ -6494,7 +6471,7 @@ function Nu(e, t, n) {
|
|
|
6494
6471
|
if (typeof n == "string") {
|
|
6495
6472
|
if (e.number && n && !Number.isNaN(Number(n)))
|
|
6496
6473
|
return Number(n);
|
|
6497
|
-
if ((e.boolean || e.overloadedBoolean) && (n === "" ||
|
|
6474
|
+
if ((e.boolean || e.overloadedBoolean) && (n === "" || Ht(n) === Ht(t)))
|
|
6498
6475
|
return !0;
|
|
6499
6476
|
}
|
|
6500
6477
|
return n;
|
|
@@ -6553,7 +6530,7 @@ const Y0 = [
|
|
|
6553
6530
|
"solidColor",
|
|
6554
6531
|
"textArea",
|
|
6555
6532
|
"textPath"
|
|
6556
|
-
], q0 = qi(In, "div"), j0 = qi(
|
|
6533
|
+
], q0 = qi(In, "div"), j0 = qi(qt, "g", Y0);
|
|
6557
6534
|
function V0(e) {
|
|
6558
6535
|
const t = String(e), n = [];
|
|
6559
6536
|
return { toOffset: u, toPoint: r };
|
|
@@ -6593,7 +6570,7 @@ function Su(e, t) {
|
|
|
6593
6570
|
`, t);
|
|
6594
6571
|
return r === -1 ? n : n === -1 || n + 1 === r ? r : n < r ? n : r;
|
|
6595
6572
|
}
|
|
6596
|
-
const
|
|
6573
|
+
const Je = {
|
|
6597
6574
|
html: "http://www.w3.org/1999/xhtml",
|
|
6598
6575
|
mathml: "http://www.w3.org/1998/Math/MathML",
|
|
6599
6576
|
svg: "http://www.w3.org/2000/svg",
|
|
@@ -6607,7 +6584,7 @@ function Q0(e, t) {
|
|
|
6607
6584
|
{
|
|
6608
6585
|
file: n.file || void 0,
|
|
6609
6586
|
location: !1,
|
|
6610
|
-
schema: n.space === "svg" ?
|
|
6587
|
+
schema: n.space === "svg" ? qt : In,
|
|
6611
6588
|
verbose: n.verbose || !1
|
|
6612
6589
|
},
|
|
6613
6590
|
e
|
|
@@ -6621,7 +6598,7 @@ function Sr(e, t) {
|
|
|
6621
6598
|
/** @type {DefaultTreeAdapterMap['commentNode']} */
|
|
6622
6599
|
t
|
|
6623
6600
|
);
|
|
6624
|
-
return n = { type: "comment", value: r.data },
|
|
6601
|
+
return n = { type: "comment", value: r.data }, rn(e, r, n), n;
|
|
6625
6602
|
}
|
|
6626
6603
|
case "#document":
|
|
6627
6604
|
case "#document-fragment": {
|
|
@@ -6644,14 +6621,14 @@ function Sr(e, t) {
|
|
|
6644
6621
|
/** @type {DefaultTreeAdapterMap['documentType']} */
|
|
6645
6622
|
t
|
|
6646
6623
|
);
|
|
6647
|
-
return n = { type: "doctype" },
|
|
6624
|
+
return n = { type: "doctype" }, rn(e, r, n), n;
|
|
6648
6625
|
}
|
|
6649
6626
|
case "#text": {
|
|
6650
6627
|
const r = (
|
|
6651
6628
|
/** @type {DefaultTreeAdapterMap['textNode']} */
|
|
6652
6629
|
t
|
|
6653
6630
|
);
|
|
6654
|
-
return n = { type: "text", value: r.value },
|
|
6631
|
+
return n = { type: "text", value: r.value }, rn(e, r, n), n;
|
|
6655
6632
|
}
|
|
6656
6633
|
// Element.
|
|
6657
6634
|
default:
|
|
@@ -6676,7 +6653,7 @@ function Vi(e, t) {
|
|
|
6676
6653
|
}
|
|
6677
6654
|
function G0(e, t) {
|
|
6678
6655
|
const n = e.schema;
|
|
6679
|
-
e.schema = t.namespaceURI ===
|
|
6656
|
+
e.schema = t.namespaceURI === Je.svg ? qt : In;
|
|
6680
6657
|
let r = -1;
|
|
6681
6658
|
const u = {};
|
|
6682
6659
|
for (; ++r < t.attrs.length; ) {
|
|
@@ -6684,7 +6661,7 @@ function G0(e, t) {
|
|
|
6684
6661
|
ji.call(W0, l) || (u[l] = o.value);
|
|
6685
6662
|
}
|
|
6686
6663
|
const i = (e.schema.space === "svg" ? j0 : q0)(t.tagName, u, Vi(e, t.childNodes));
|
|
6687
|
-
if (
|
|
6664
|
+
if (rn(e, t, i), i.tagName === "template") {
|
|
6688
6665
|
const o = (
|
|
6689
6666
|
/** @type {DefaultTreeAdapterMap['template']} */
|
|
6690
6667
|
t
|
|
@@ -6696,7 +6673,7 @@ function G0(e, t) {
|
|
|
6696
6673
|
}
|
|
6697
6674
|
return e.schema = n, i;
|
|
6698
6675
|
}
|
|
6699
|
-
function
|
|
6676
|
+
function rn(e, t, n) {
|
|
6700
6677
|
if ("sourceCodeLocation" in t && t.sourceCodeLocation && e.file) {
|
|
6701
6678
|
const r = X0(e, n, t.sourceCodeLocation);
|
|
6702
6679
|
r && (e.location = !0, n.position = r);
|
|
@@ -6739,7 +6716,7 @@ function ku(e) {
|
|
|
6739
6716
|
const K0 = {}, $0 = {}.hasOwnProperty, Wi = fi("type", { handlers: { root: Z0, element: uf, text: nf, comment: rf, doctype: tf } });
|
|
6740
6717
|
function J0(e, t) {
|
|
6741
6718
|
const r = (t || K0).space;
|
|
6742
|
-
return Wi(e, r === "svg" ?
|
|
6719
|
+
return Wi(e, r === "svg" ? qt : In);
|
|
6743
6720
|
}
|
|
6744
6721
|
function Z0(e, t) {
|
|
6745
6722
|
const n = {
|
|
@@ -6748,11 +6725,11 @@ function Z0(e, t) {
|
|
|
6748
6725
|
mode: (e.data || {}).quirksMode ? "quirks" : "no-quirks",
|
|
6749
6726
|
childNodes: []
|
|
6750
6727
|
};
|
|
6751
|
-
return n.childNodes = kr(e.children, n, t),
|
|
6728
|
+
return n.childNodes = kr(e.children, n, t), gt(e, n), n;
|
|
6752
6729
|
}
|
|
6753
6730
|
function ef(e, t) {
|
|
6754
6731
|
const n = { nodeName: "#document-fragment", childNodes: [] };
|
|
6755
|
-
return n.childNodes = kr(e.children, n, t),
|
|
6732
|
+
return n.childNodes = kr(e.children, n, t), gt(e, n), n;
|
|
6756
6733
|
}
|
|
6757
6734
|
function tf(e) {
|
|
6758
6735
|
const t = {
|
|
@@ -6762,7 +6739,7 @@ function tf(e) {
|
|
|
6762
6739
|
systemId: "",
|
|
6763
6740
|
parentNode: null
|
|
6764
6741
|
};
|
|
6765
|
-
return
|
|
6742
|
+
return gt(e, t), t;
|
|
6766
6743
|
}
|
|
6767
6744
|
function nf(e) {
|
|
6768
6745
|
const t = {
|
|
@@ -6770,7 +6747,7 @@ function nf(e) {
|
|
|
6770
6747
|
value: e.value,
|
|
6771
6748
|
parentNode: null
|
|
6772
6749
|
};
|
|
6773
|
-
return
|
|
6750
|
+
return gt(e, t), t;
|
|
6774
6751
|
}
|
|
6775
6752
|
function rf(e) {
|
|
6776
6753
|
const t = {
|
|
@@ -6778,12 +6755,12 @@ function rf(e) {
|
|
|
6778
6755
|
data: e.value,
|
|
6779
6756
|
parentNode: null
|
|
6780
6757
|
};
|
|
6781
|
-
return
|
|
6758
|
+
return gt(e, t), t;
|
|
6782
6759
|
}
|
|
6783
6760
|
function uf(e, t) {
|
|
6784
6761
|
const n = t;
|
|
6785
6762
|
let r = n;
|
|
6786
|
-
e.type === "element" && e.tagName.toLowerCase() === "svg" && n.space === "html" && (r =
|
|
6763
|
+
e.type === "element" && e.tagName.toLowerCase() === "svg" && n.space === "html" && (r = qt);
|
|
6787
6764
|
const u = [];
|
|
6788
6765
|
let a;
|
|
6789
6766
|
if (e.properties) {
|
|
@@ -6802,11 +6779,11 @@ function uf(e, t) {
|
|
|
6802
6779
|
tagName: e.tagName,
|
|
6803
6780
|
attrs: u,
|
|
6804
6781
|
// @ts-expect-error: `parse5` types are wrong.
|
|
6805
|
-
namespaceURI:
|
|
6782
|
+
namespaceURI: Je[i],
|
|
6806
6783
|
childNodes: [],
|
|
6807
6784
|
parentNode: null
|
|
6808
6785
|
};
|
|
6809
|
-
return o.childNodes = kr(e.children, o, r),
|
|
6786
|
+
return o.childNodes = kr(e.children, o, r), gt(e, o), e.tagName === "template" && e.content && (o.content = ef(e.content, r)), o;
|
|
6810
6787
|
}
|
|
6811
6788
|
function af(e, t, n) {
|
|
6812
6789
|
const r = Nr(e, t);
|
|
@@ -6819,7 +6796,7 @@ function af(e, t, n) {
|
|
|
6819
6796
|
};
|
|
6820
6797
|
if (r.space && r.space !== "html" && r.space !== "svg") {
|
|
6821
6798
|
const a = u.name.indexOf(":");
|
|
6822
|
-
a < 0 ? u.prefix = "" : (u.name = u.name.slice(a + 1), u.prefix = r.attribute.slice(0, a)), u.namespace =
|
|
6799
|
+
a < 0 ? u.prefix = "" : (u.name = u.name.slice(a + 1), u.prefix = r.attribute.slice(0, a)), u.namespace = Je[r.space];
|
|
6823
6800
|
}
|
|
6824
6801
|
return u;
|
|
6825
6802
|
}
|
|
@@ -6833,7 +6810,7 @@ function kr(e, t, n) {
|
|
|
6833
6810
|
}
|
|
6834
6811
|
return u;
|
|
6835
6812
|
}
|
|
6836
|
-
function
|
|
6813
|
+
function gt(e, t) {
|
|
6837
6814
|
const n = e.position;
|
|
6838
6815
|
n && n.start && n.end && (Me(typeof n.start.offset == "number"), Me(typeof n.end.offset == "number"), t.sourceCodeLocation = {
|
|
6839
6816
|
startLine: n.start.line,
|
|
@@ -7318,10 +7295,10 @@ var y;
|
|
|
7318
7295
|
(function(e) {
|
|
7319
7296
|
e.HTML = "http://www.w3.org/1999/xhtml", e.MATHML = "http://www.w3.org/1998/Math/MathML", e.SVG = "http://www.w3.org/2000/svg", e.XLINK = "http://www.w3.org/1999/xlink", e.XML = "http://www.w3.org/XML/1998/namespace", e.XMLNS = "http://www.w3.org/2000/xmlns/";
|
|
7320
7297
|
})(y || (y = {}));
|
|
7321
|
-
var
|
|
7298
|
+
var Ze;
|
|
7322
7299
|
(function(e) {
|
|
7323
7300
|
e.TYPE = "type", e.ACTION = "action", e.ENCODING = "encoding", e.PROMPT = "prompt", e.NAME = "name", e.COLOR = "color", e.FACE = "face", e.SIZE = "size";
|
|
7324
|
-
})(
|
|
7301
|
+
})(Ze || (Ze = {}));
|
|
7325
7302
|
var be;
|
|
7326
7303
|
(function(e) {
|
|
7327
7304
|
e.NO_QUIRKS = "no-quirks", e.QUIRKS = "quirks", e.LIMITED_QUIRKS = "limited-quirks";
|
|
@@ -7459,7 +7436,7 @@ const _f = /* @__PURE__ */ new Map([
|
|
|
7459
7436
|
[_.WBR, s.WBR],
|
|
7460
7437
|
[_.XMP, s.XMP]
|
|
7461
7438
|
]);
|
|
7462
|
-
function
|
|
7439
|
+
function bt(e) {
|
|
7463
7440
|
var t;
|
|
7464
7441
|
return (t = _f.get(e)) !== null && t !== void 0 ? t : s.UNKNOWN;
|
|
7465
7442
|
}
|
|
@@ -7569,19 +7546,19 @@ const re = {
|
|
|
7569
7546
|
function If(e) {
|
|
7570
7547
|
return e >= m.DIGIT_0 && e <= m.DIGIT_9;
|
|
7571
7548
|
}
|
|
7572
|
-
function
|
|
7549
|
+
function yt(e) {
|
|
7573
7550
|
return e >= m.LATIN_CAPITAL_A && e <= m.LATIN_CAPITAL_Z;
|
|
7574
7551
|
}
|
|
7575
7552
|
function xf(e) {
|
|
7576
7553
|
return e >= m.LATIN_SMALL_A && e <= m.LATIN_SMALL_Z;
|
|
7577
7554
|
}
|
|
7578
7555
|
function ve(e) {
|
|
7579
|
-
return xf(e) ||
|
|
7556
|
+
return xf(e) || yt(e);
|
|
7580
7557
|
}
|
|
7581
7558
|
function Ou(e) {
|
|
7582
7559
|
return ve(e) || If(e);
|
|
7583
7560
|
}
|
|
7584
|
-
function
|
|
7561
|
+
function $t(e) {
|
|
7585
7562
|
return e + 32;
|
|
7586
7563
|
}
|
|
7587
7564
|
function ea(e) {
|
|
@@ -7741,7 +7718,7 @@ class Sf {
|
|
|
7741
7718
|
}
|
|
7742
7719
|
emitCurrentTagToken() {
|
|
7743
7720
|
const t = this.currentToken;
|
|
7744
|
-
this.prepareToken(t), t.tagID =
|
|
7721
|
+
this.prepareToken(t), t.tagID = bt(t.tagName), t.type === q.START_TAG ? (this.lastStartTagName = t.tagName, this.handler.onStartTag(t)) : (t.attrs.length > 0 && this._err(C.endTagWithAttributes), t.selfClosing && this._err(C.endTagWithTrailingSolidus), this.handler.onEndTag(t)), this.preprocessor.dropParsedChunk();
|
|
7745
7722
|
}
|
|
7746
7723
|
emitCurrentComment(t) {
|
|
7747
7724
|
this.prepareToken(t), this.handler.onComment(t), this.preprocessor.dropParsedChunk();
|
|
@@ -8288,7 +8265,7 @@ class Sf {
|
|
|
8288
8265
|
break;
|
|
8289
8266
|
}
|
|
8290
8267
|
default:
|
|
8291
|
-
n.tagName += String.fromCodePoint(
|
|
8268
|
+
n.tagName += String.fromCodePoint(yt(t) ? $t(t) : t);
|
|
8292
8269
|
}
|
|
8293
8270
|
}
|
|
8294
8271
|
// RCDATA less-than sign state
|
|
@@ -8620,7 +8597,7 @@ class Sf {
|
|
|
8620
8597
|
break;
|
|
8621
8598
|
}
|
|
8622
8599
|
default:
|
|
8623
|
-
this.currentAttr.name += String.fromCodePoint(
|
|
8600
|
+
this.currentAttr.name += String.fromCodePoint(yt(t) ? $t(t) : t);
|
|
8624
8601
|
}
|
|
8625
8602
|
}
|
|
8626
8603
|
// After attribute name state
|
|
@@ -9021,8 +8998,8 @@ class Sf {
|
|
|
9021
8998
|
// Before DOCTYPE name state
|
|
9022
8999
|
//------------------------------------------------------------------
|
|
9023
9000
|
_stateBeforeDoctypeName(t) {
|
|
9024
|
-
if (
|
|
9025
|
-
this._createDoctypeToken(String.fromCharCode(
|
|
9001
|
+
if (yt(t))
|
|
9002
|
+
this._createDoctypeToken(String.fromCharCode($t(t))), this.state = E.DOCTYPE_NAME;
|
|
9026
9003
|
else
|
|
9027
9004
|
switch (t) {
|
|
9028
9005
|
case m.SPACE:
|
|
@@ -9075,7 +9052,7 @@ class Sf {
|
|
|
9075
9052
|
break;
|
|
9076
9053
|
}
|
|
9077
9054
|
default:
|
|
9078
|
-
n.name += String.fromCodePoint(
|
|
9055
|
+
n.name += String.fromCodePoint(yt(t) ? $t(t) : t);
|
|
9079
9056
|
}
|
|
9080
9057
|
}
|
|
9081
9058
|
// After DOCTYPE name state
|
|
@@ -10209,7 +10186,7 @@ const Mu = {
|
|
|
10209
10186
|
]);
|
|
10210
10187
|
function Gf(e) {
|
|
10211
10188
|
const t = e.tagID;
|
|
10212
|
-
return t === s.FONT && e.attrs.some(({ name: r }) => r ===
|
|
10189
|
+
return t === s.FONT && e.attrs.some(({ name: r }) => r === Ze.COLOR || r === Ze.SIZE || r === Ze.FACE) || Qf.has(t);
|
|
10213
10190
|
}
|
|
10214
10191
|
function ia(e) {
|
|
10215
10192
|
for (let t = 0; t < e.attrs.length; t++)
|
|
@@ -10232,7 +10209,7 @@ function Or(e) {
|
|
|
10232
10209
|
}
|
|
10233
10210
|
function Xf(e) {
|
|
10234
10211
|
const t = Wf.get(e.tagName);
|
|
10235
|
-
t != null && (e.tagName = t, e.tagID =
|
|
10212
|
+
t != null && (e.tagName = t, e.tagID = bt(e.tagName));
|
|
10236
10213
|
}
|
|
10237
10214
|
function Kf(e, t) {
|
|
10238
10215
|
return t === y.MATHML && (e === s.MI || e === s.MO || e === s.MN || e === s.MS || e === s.MTEXT);
|
|
@@ -10240,7 +10217,7 @@ function Kf(e, t) {
|
|
|
10240
10217
|
function $f(e, t, n) {
|
|
10241
10218
|
if (t === y.MATHML && e === s.ANNOTATION_XML) {
|
|
10242
10219
|
for (let r = 0; r < n.length; r++)
|
|
10243
|
-
if (n[r].name ===
|
|
10220
|
+
if (n[r].name === Ze.ENCODING) {
|
|
10244
10221
|
const u = n[r].value.toLowerCase();
|
|
10245
10222
|
return u === Mu.TEXT_HTML || u === Mu.APPLICATION_XML;
|
|
10246
10223
|
}
|
|
@@ -10273,7 +10250,7 @@ class Fu {
|
|
|
10273
10250
|
this.fragmentContext = r, this.scriptHandler = u, this.currentToken = null, this.stopped = !1, this.insertionMode = T.INITIAL, this.originalInsertionMode = T.INITIAL, this.headElement = null, this.formElement = null, this.currentNotInHTML = !1, this.tmplInsertionModeStack = [], this.pendingCharacterTokens = [], this.hasNonWhitespacePendingCharacterToken = !1, this.framesetOk = !0, this.skipNextNewLine = !1, this.fosterParentingEnabled = !1, this.options = {
|
|
10274
10251
|
...Bu,
|
|
10275
10252
|
...t
|
|
10276
|
-
}, this.treeAdapter = this.options.treeAdapter, this.onParseError = this.options.onParseError, this.onParseError && (this.options.sourceCodeLocationInfo = !0), this.document = n ?? this.treeAdapter.createDocument(), this.tokenizer = new Sf(this.options, this), this.activeFormattingElements = new wf(this.treeAdapter), this.fragmentContextID = r ?
|
|
10253
|
+
}, this.treeAdapter = this.options.treeAdapter, this.onParseError = this.options.onParseError, this.onParseError && (this.options.sourceCodeLocationInfo = !0), this.document = n ?? this.treeAdapter.createDocument(), this.tokenizer = new Sf(this.options, this), this.activeFormattingElements = new wf(this.treeAdapter), this.fragmentContextID = r ? bt(this.treeAdapter.getTagName(r)) : s.UNKNOWN, this._setContextModes(r ?? this.document, this.fragmentContextID), this.openElements = new Pf(this.document, this.treeAdapter, this);
|
|
10277
10254
|
}
|
|
10278
10255
|
// API
|
|
10279
10256
|
static parse(t, n) {
|
|
@@ -10674,27 +10651,27 @@ class Fu {
|
|
|
10674
10651
|
}
|
|
10675
10652
|
switch (this.insertionMode) {
|
|
10676
10653
|
case T.INITIAL: {
|
|
10677
|
-
|
|
10654
|
+
St(this, t);
|
|
10678
10655
|
break;
|
|
10679
10656
|
}
|
|
10680
10657
|
case T.BEFORE_HTML: {
|
|
10681
|
-
|
|
10658
|
+
Dt(this, t);
|
|
10682
10659
|
break;
|
|
10683
10660
|
}
|
|
10684
10661
|
case T.BEFORE_HEAD: {
|
|
10685
|
-
|
|
10662
|
+
Pt(this, t);
|
|
10686
10663
|
break;
|
|
10687
10664
|
}
|
|
10688
10665
|
case T.IN_HEAD: {
|
|
10689
|
-
|
|
10666
|
+
wt(this, t);
|
|
10690
10667
|
break;
|
|
10691
10668
|
}
|
|
10692
10669
|
case T.IN_HEAD_NO_SCRIPT: {
|
|
10693
|
-
|
|
10670
|
+
Mt(this, t);
|
|
10694
10671
|
break;
|
|
10695
10672
|
}
|
|
10696
10673
|
case T.AFTER_HEAD: {
|
|
10697
|
-
|
|
10674
|
+
Bt(this, t);
|
|
10698
10675
|
break;
|
|
10699
10676
|
}
|
|
10700
10677
|
case T.IN_BODY:
|
|
@@ -10729,7 +10706,7 @@ class Fu {
|
|
|
10729
10706
|
break;
|
|
10730
10707
|
}
|
|
10731
10708
|
case T.AFTER_AFTER_BODY: {
|
|
10732
|
-
|
|
10709
|
+
un(this, t);
|
|
10733
10710
|
break;
|
|
10734
10711
|
}
|
|
10735
10712
|
}
|
|
@@ -10742,27 +10719,27 @@ class Fu {
|
|
|
10742
10719
|
}
|
|
10743
10720
|
switch (this.insertionMode) {
|
|
10744
10721
|
case T.INITIAL: {
|
|
10745
|
-
|
|
10722
|
+
St(this, t);
|
|
10746
10723
|
break;
|
|
10747
10724
|
}
|
|
10748
10725
|
case T.BEFORE_HTML: {
|
|
10749
|
-
|
|
10726
|
+
Dt(this, t);
|
|
10750
10727
|
break;
|
|
10751
10728
|
}
|
|
10752
10729
|
case T.BEFORE_HEAD: {
|
|
10753
|
-
|
|
10730
|
+
Pt(this, t);
|
|
10754
10731
|
break;
|
|
10755
10732
|
}
|
|
10756
10733
|
case T.IN_HEAD: {
|
|
10757
|
-
|
|
10734
|
+
wt(this, t);
|
|
10758
10735
|
break;
|
|
10759
10736
|
}
|
|
10760
10737
|
case T.IN_HEAD_NO_SCRIPT: {
|
|
10761
|
-
|
|
10738
|
+
Mt(this, t);
|
|
10762
10739
|
break;
|
|
10763
10740
|
}
|
|
10764
10741
|
case T.AFTER_HEAD: {
|
|
10765
|
-
|
|
10742
|
+
Bt(this, t);
|
|
10766
10743
|
break;
|
|
10767
10744
|
}
|
|
10768
10745
|
case T.TEXT: {
|
|
@@ -10784,7 +10761,7 @@ class Fu {
|
|
|
10784
10761
|
break;
|
|
10785
10762
|
}
|
|
10786
10763
|
case T.AFTER_AFTER_BODY: {
|
|
10787
|
-
|
|
10764
|
+
un(this, t);
|
|
10788
10765
|
break;
|
|
10789
10766
|
}
|
|
10790
10767
|
}
|
|
@@ -10818,7 +10795,7 @@ class Fu {
|
|
|
10818
10795
|
break;
|
|
10819
10796
|
}
|
|
10820
10797
|
case T.IN_TABLE_TEXT: {
|
|
10821
|
-
|
|
10798
|
+
kt(this, t);
|
|
10822
10799
|
break;
|
|
10823
10800
|
}
|
|
10824
10801
|
case T.AFTER_BODY: {
|
|
@@ -10847,7 +10824,7 @@ class Fu {
|
|
|
10847
10824
|
break;
|
|
10848
10825
|
}
|
|
10849
10826
|
case T.IN_TABLE_TEXT: {
|
|
10850
|
-
|
|
10827
|
+
kt(this, t);
|
|
10851
10828
|
break;
|
|
10852
10829
|
}
|
|
10853
10830
|
}
|
|
@@ -10874,7 +10851,7 @@ class Fu {
|
|
|
10874
10851
|
_startTagOutsideForeignContent(t) {
|
|
10875
10852
|
switch (this.insertionMode) {
|
|
10876
10853
|
case T.INITIAL: {
|
|
10877
|
-
|
|
10854
|
+
St(this, t);
|
|
10878
10855
|
break;
|
|
10879
10856
|
}
|
|
10880
10857
|
case T.BEFORE_HTML: {
|
|
@@ -10902,11 +10879,11 @@ class Fu {
|
|
|
10902
10879
|
break;
|
|
10903
10880
|
}
|
|
10904
10881
|
case T.IN_TABLE: {
|
|
10905
|
-
|
|
10882
|
+
mt(this, t);
|
|
10906
10883
|
break;
|
|
10907
10884
|
}
|
|
10908
10885
|
case T.IN_TABLE_TEXT: {
|
|
10909
|
-
|
|
10886
|
+
kt(this, t);
|
|
10910
10887
|
break;
|
|
10911
10888
|
}
|
|
10912
10889
|
case T.IN_CAPTION: {
|
|
@@ -10971,7 +10948,7 @@ class Fu {
|
|
|
10971
10948
|
_endTagOutsideForeignContent(t) {
|
|
10972
10949
|
switch (this.insertionMode) {
|
|
10973
10950
|
case T.INITIAL: {
|
|
10974
|
-
|
|
10951
|
+
St(this, t);
|
|
10975
10952
|
break;
|
|
10976
10953
|
}
|
|
10977
10954
|
case T.BEFORE_HTML: {
|
|
@@ -11003,11 +10980,11 @@ class Fu {
|
|
|
11003
10980
|
break;
|
|
11004
10981
|
}
|
|
11005
10982
|
case T.IN_TABLE: {
|
|
11006
|
-
|
|
10983
|
+
Ut(this, t);
|
|
11007
10984
|
break;
|
|
11008
10985
|
}
|
|
11009
10986
|
case T.IN_TABLE_TEXT: {
|
|
11010
|
-
|
|
10987
|
+
kt(this, t);
|
|
11011
10988
|
break;
|
|
11012
10989
|
}
|
|
11013
10990
|
case T.IN_CAPTION: {
|
|
@@ -11055,7 +11032,7 @@ class Fu {
|
|
|
11055
11032
|
break;
|
|
11056
11033
|
}
|
|
11057
11034
|
case T.AFTER_AFTER_BODY: {
|
|
11058
|
-
|
|
11035
|
+
un(this, t);
|
|
11059
11036
|
break;
|
|
11060
11037
|
}
|
|
11061
11038
|
}
|
|
@@ -11064,27 +11041,27 @@ class Fu {
|
|
|
11064
11041
|
onEof(t) {
|
|
11065
11042
|
switch (this.insertionMode) {
|
|
11066
11043
|
case T.INITIAL: {
|
|
11067
|
-
|
|
11044
|
+
St(this, t);
|
|
11068
11045
|
break;
|
|
11069
11046
|
}
|
|
11070
11047
|
case T.BEFORE_HTML: {
|
|
11071
|
-
|
|
11048
|
+
Dt(this, t);
|
|
11072
11049
|
break;
|
|
11073
11050
|
}
|
|
11074
11051
|
case T.BEFORE_HEAD: {
|
|
11075
|
-
|
|
11052
|
+
Pt(this, t);
|
|
11076
11053
|
break;
|
|
11077
11054
|
}
|
|
11078
11055
|
case T.IN_HEAD: {
|
|
11079
|
-
|
|
11056
|
+
wt(this, t);
|
|
11080
11057
|
break;
|
|
11081
11058
|
}
|
|
11082
11059
|
case T.IN_HEAD_NO_SCRIPT: {
|
|
11083
|
-
|
|
11060
|
+
Mt(this, t);
|
|
11084
11061
|
break;
|
|
11085
11062
|
}
|
|
11086
11063
|
case T.AFTER_HEAD: {
|
|
11087
|
-
|
|
11064
|
+
Bt(this, t);
|
|
11088
11065
|
break;
|
|
11089
11066
|
}
|
|
11090
11067
|
case T.IN_BODY:
|
|
@@ -11104,7 +11081,7 @@ class Fu {
|
|
|
11104
11081
|
break;
|
|
11105
11082
|
}
|
|
11106
11083
|
case T.IN_TABLE_TEXT: {
|
|
11107
|
-
|
|
11084
|
+
kt(this, t);
|
|
11108
11085
|
break;
|
|
11109
11086
|
}
|
|
11110
11087
|
case T.IN_TEMPLATE: {
|
|
@@ -11196,7 +11173,7 @@ function ah(e, t) {
|
|
|
11196
11173
|
return e.openElements.replace(t.element, r), t.element = r, r;
|
|
11197
11174
|
}
|
|
11198
11175
|
function sh(e, t, n) {
|
|
11199
|
-
const r = e.treeAdapter.getTagName(t), u =
|
|
11176
|
+
const r = e.treeAdapter.getTagName(t), u = bt(r);
|
|
11200
11177
|
if (e._isElementCausesFosterParenting(u))
|
|
11201
11178
|
e._fosterParentElement(n);
|
|
11202
11179
|
else {
|
|
@@ -11249,17 +11226,17 @@ function fh(e, t) {
|
|
|
11249
11226
|
const n = t.forceQuirks ? be.QUIRKS : zf(t);
|
|
11250
11227
|
vf(t) || e._err(t, C.nonConformingDoctype), e.treeAdapter.setDocumentMode(e.document, n), e.insertionMode = T.BEFORE_HTML;
|
|
11251
11228
|
}
|
|
11252
|
-
function
|
|
11229
|
+
function St(e, t) {
|
|
11253
11230
|
e._err(t, C.missingDoctype, !0), e.treeAdapter.setDocumentMode(e.document, be.QUIRKS), e.insertionMode = T.BEFORE_HTML, e._processToken(t);
|
|
11254
11231
|
}
|
|
11255
11232
|
function hh(e, t) {
|
|
11256
|
-
t.tagID === s.HTML ? (e._insertElement(t, y.HTML), e.insertionMode = T.BEFORE_HEAD) :
|
|
11233
|
+
t.tagID === s.HTML ? (e._insertElement(t, y.HTML), e.insertionMode = T.BEFORE_HEAD) : Dt(e, t);
|
|
11257
11234
|
}
|
|
11258
11235
|
function dh(e, t) {
|
|
11259
11236
|
const n = t.tagID;
|
|
11260
|
-
(n === s.HTML || n === s.HEAD || n === s.BODY || n === s.BR) &&
|
|
11237
|
+
(n === s.HTML || n === s.HEAD || n === s.BODY || n === s.BR) && Dt(e, t);
|
|
11261
11238
|
}
|
|
11262
|
-
function
|
|
11239
|
+
function Dt(e, t) {
|
|
11263
11240
|
e._insertFakeRootElement(), e.insertionMode = T.BEFORE_HEAD, e._processToken(t);
|
|
11264
11241
|
}
|
|
11265
11242
|
function mh(e, t) {
|
|
@@ -11273,14 +11250,14 @@ function mh(e, t) {
|
|
|
11273
11250
|
break;
|
|
11274
11251
|
}
|
|
11275
11252
|
default:
|
|
11276
|
-
|
|
11253
|
+
Pt(e, t);
|
|
11277
11254
|
}
|
|
11278
11255
|
}
|
|
11279
11256
|
function ph(e, t) {
|
|
11280
11257
|
const n = t.tagID;
|
|
11281
|
-
n === s.HEAD || n === s.BODY || n === s.HTML || n === s.BR ?
|
|
11258
|
+
n === s.HEAD || n === s.BODY || n === s.HTML || n === s.BR ? Pt(e, t) : e._err(t, C.endTagWithoutMatchingOpenElement);
|
|
11282
11259
|
}
|
|
11283
|
-
function
|
|
11260
|
+
function Pt(e, t) {
|
|
11284
11261
|
e._insertFakeElement(_.HEAD, s.HEAD), e.headElement = e.openElements.current, e.insertionMode = T.IN_HEAD, e._processToken(t);
|
|
11285
11262
|
}
|
|
11286
11263
|
function Ne(e, t) {
|
|
@@ -11323,7 +11300,7 @@ function Ne(e, t) {
|
|
|
11323
11300
|
break;
|
|
11324
11301
|
}
|
|
11325
11302
|
default:
|
|
11326
|
-
|
|
11303
|
+
wt(e, t);
|
|
11327
11304
|
}
|
|
11328
11305
|
}
|
|
11329
11306
|
function Eh(e, t) {
|
|
@@ -11335,7 +11312,7 @@ function Eh(e, t) {
|
|
|
11335
11312
|
case s.BODY:
|
|
11336
11313
|
case s.BR:
|
|
11337
11314
|
case s.HTML: {
|
|
11338
|
-
|
|
11315
|
+
wt(e, t);
|
|
11339
11316
|
break;
|
|
11340
11317
|
}
|
|
11341
11318
|
case s.TEMPLATE: {
|
|
@@ -11349,7 +11326,7 @@ function Eh(e, t) {
|
|
|
11349
11326
|
function rt(e, t) {
|
|
11350
11327
|
e.openElements.tmplCount > 0 ? (e.openElements.generateImpliedEndTagsThoroughly(), e.openElements.currentTagId !== s.TEMPLATE && e._err(t, C.closingOfElementWithOpenChildElements), e.openElements.popUntilTagNamePopped(s.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode()) : e._err(t, C.endTagWithoutMatchingOpenElement);
|
|
11351
11328
|
}
|
|
11352
|
-
function
|
|
11329
|
+
function wt(e, t) {
|
|
11353
11330
|
e.openElements.pop(), e.insertionMode = T.AFTER_HEAD, e._processToken(t);
|
|
11354
11331
|
}
|
|
11355
11332
|
function Th(e, t) {
|
|
@@ -11373,7 +11350,7 @@ function Th(e, t) {
|
|
|
11373
11350
|
break;
|
|
11374
11351
|
}
|
|
11375
11352
|
default:
|
|
11376
|
-
|
|
11353
|
+
Mt(e, t);
|
|
11377
11354
|
}
|
|
11378
11355
|
}
|
|
11379
11356
|
function gh(e, t) {
|
|
@@ -11383,14 +11360,14 @@ function gh(e, t) {
|
|
|
11383
11360
|
break;
|
|
11384
11361
|
}
|
|
11385
11362
|
case s.BR: {
|
|
11386
|
-
|
|
11363
|
+
Mt(e, t);
|
|
11387
11364
|
break;
|
|
11388
11365
|
}
|
|
11389
11366
|
default:
|
|
11390
11367
|
e._err(t, C.endTagWithoutMatchingOpenElement);
|
|
11391
11368
|
}
|
|
11392
11369
|
}
|
|
11393
|
-
function
|
|
11370
|
+
function Mt(e, t) {
|
|
11394
11371
|
const n = t.type === q.EOF ? C.openElementsLeftAfterEof : C.disallowedContentInNoscriptInHead;
|
|
11395
11372
|
e._err(t, n), e.openElements.pop(), e.insertionMode = T.IN_HEAD, e._processToken(t);
|
|
11396
11373
|
}
|
|
@@ -11426,7 +11403,7 @@ function bh(e, t) {
|
|
|
11426
11403
|
break;
|
|
11427
11404
|
}
|
|
11428
11405
|
default:
|
|
11429
|
-
|
|
11406
|
+
Bt(e, t);
|
|
11430
11407
|
}
|
|
11431
11408
|
}
|
|
11432
11409
|
function Ah(e, t) {
|
|
@@ -11434,7 +11411,7 @@ function Ah(e, t) {
|
|
|
11434
11411
|
case s.BODY:
|
|
11435
11412
|
case s.HTML:
|
|
11436
11413
|
case s.BR: {
|
|
11437
|
-
|
|
11414
|
+
Bt(e, t);
|
|
11438
11415
|
break;
|
|
11439
11416
|
}
|
|
11440
11417
|
case s.TEMPLATE: {
|
|
@@ -11445,7 +11422,7 @@ function Ah(e, t) {
|
|
|
11445
11422
|
e._err(t, C.endTagWithoutMatchingOpenElement);
|
|
11446
11423
|
}
|
|
11447
11424
|
}
|
|
11448
|
-
function
|
|
11425
|
+
function Bt(e, t) {
|
|
11449
11426
|
e._insertFakeElement(_.BODY, s.BODY), e.insertionMode = T.IN_BODY, xn(e, t);
|
|
11450
11427
|
}
|
|
11451
11428
|
function xn(e, t) {
|
|
@@ -11546,7 +11523,7 @@ function ca(e, t) {
|
|
|
11546
11523
|
e._reconstructActiveFormattingElements(), e._appendElement(t, y.HTML), e.framesetOk = !1, t.ackSelfClosing = !0;
|
|
11547
11524
|
}
|
|
11548
11525
|
function fa(e) {
|
|
11549
|
-
const t = Ki(e,
|
|
11526
|
+
const t = Ki(e, Ze.TYPE);
|
|
11550
11527
|
return t != null && t.toLowerCase() === Zf;
|
|
11551
11528
|
}
|
|
11552
11529
|
function Bh(e, t) {
|
|
@@ -11977,7 +11954,7 @@ function jn(e, t) {
|
|
|
11977
11954
|
}
|
|
11978
11955
|
}
|
|
11979
11956
|
else
|
|
11980
|
-
|
|
11957
|
+
jt(e, t);
|
|
11981
11958
|
}
|
|
11982
11959
|
function sd(e, t) {
|
|
11983
11960
|
e.openElements.clearBackToTableContext(), e.activeFormattingElements.insertMarker(), e._insertElement(t, y.HTML), e.insertionMode = T.IN_CAPTION;
|
|
@@ -11998,12 +11975,12 @@ function hd(e, t) {
|
|
|
11998
11975
|
e.openElements.hasInTableScope(s.TABLE) && (e.openElements.popUntilTagNamePopped(s.TABLE), e._resetInsertionMode(), e._processStartTag(t));
|
|
11999
11976
|
}
|
|
12000
11977
|
function dd(e, t) {
|
|
12001
|
-
fa(t) ? e._appendElement(t, y.HTML) :
|
|
11978
|
+
fa(t) ? e._appendElement(t, y.HTML) : jt(e, t), t.ackSelfClosing = !0;
|
|
12002
11979
|
}
|
|
12003
11980
|
function md(e, t) {
|
|
12004
11981
|
!e.formElement && e.openElements.tmplCount === 0 && (e._insertElement(t, y.HTML), e.formElement = e.openElements.current, e.openElements.pop());
|
|
12005
11982
|
}
|
|
12006
|
-
function
|
|
11983
|
+
function mt(e, t) {
|
|
12007
11984
|
switch (t.tagID) {
|
|
12008
11985
|
case s.TD:
|
|
12009
11986
|
case s.TH:
|
|
@@ -12048,10 +12025,10 @@ function pt(e, t) {
|
|
|
12048
12025
|
break;
|
|
12049
12026
|
}
|
|
12050
12027
|
default:
|
|
12051
|
-
|
|
12028
|
+
jt(e, t);
|
|
12052
12029
|
}
|
|
12053
12030
|
}
|
|
12054
|
-
function
|
|
12031
|
+
function Ut(e, t) {
|
|
12055
12032
|
switch (t.tagID) {
|
|
12056
12033
|
case s.TABLE: {
|
|
12057
12034
|
e.openElements.hasInTableScope(s.TABLE) && (e.openElements.popUntilTagNamePopped(s.TABLE), e._resetInsertionMode());
|
|
@@ -12074,10 +12051,10 @@ function vt(e, t) {
|
|
|
12074
12051
|
case s.TR:
|
|
12075
12052
|
break;
|
|
12076
12053
|
default:
|
|
12077
|
-
|
|
12054
|
+
jt(e, t);
|
|
12078
12055
|
}
|
|
12079
12056
|
}
|
|
12080
|
-
function
|
|
12057
|
+
function jt(e, t) {
|
|
12081
12058
|
const n = e.fosterParentingEnabled;
|
|
12082
12059
|
e.fosterParentingEnabled = !0, xn(e, t), e.fosterParentingEnabled = n;
|
|
12083
12060
|
}
|
|
@@ -12087,11 +12064,11 @@ function ma(e, t) {
|
|
|
12087
12064
|
function pa(e, t) {
|
|
12088
12065
|
e.pendingCharacterTokens.push(t), e.hasNonWhitespacePendingCharacterToken = !0;
|
|
12089
12066
|
}
|
|
12090
|
-
function
|
|
12067
|
+
function kt(e, t) {
|
|
12091
12068
|
let n = 0;
|
|
12092
12069
|
if (e.hasNonWhitespacePendingCharacterToken)
|
|
12093
12070
|
for (; n < e.pendingCharacterTokens.length; n++)
|
|
12094
|
-
|
|
12071
|
+
jt(e, e.pendingCharacterTokens[n]);
|
|
12095
12072
|
else
|
|
12096
12073
|
for (; n < e.pendingCharacterTokens.length; n++)
|
|
12097
12074
|
e._insertCharacters(e.pendingCharacterTokens[n]);
|
|
@@ -12100,14 +12077,14 @@ function Ot(e, t) {
|
|
|
12100
12077
|
const Ea = /* @__PURE__ */ new Set([s.CAPTION, s.COL, s.COLGROUP, s.TBODY, s.TD, s.TFOOT, s.TH, s.THEAD, s.TR]);
|
|
12101
12078
|
function pd(e, t) {
|
|
12102
12079
|
const n = t.tagID;
|
|
12103
|
-
Ea.has(n) ? e.openElements.hasInTableScope(s.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(s.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = T.IN_TABLE,
|
|
12080
|
+
Ea.has(n) ? e.openElements.hasInTableScope(s.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(s.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = T.IN_TABLE, mt(e, t)) : he(e, t);
|
|
12104
12081
|
}
|
|
12105
12082
|
function Ed(e, t) {
|
|
12106
12083
|
const n = t.tagID;
|
|
12107
12084
|
switch (n) {
|
|
12108
12085
|
case s.CAPTION:
|
|
12109
12086
|
case s.TABLE: {
|
|
12110
|
-
e.openElements.hasInTableScope(s.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(s.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = T.IN_TABLE, n === s.TABLE &&
|
|
12087
|
+
e.openElements.hasInTableScope(s.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(s.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = T.IN_TABLE, n === s.TABLE && Ut(e, t));
|
|
12111
12088
|
break;
|
|
12112
12089
|
}
|
|
12113
12090
|
case s.BODY:
|
|
@@ -12179,11 +12156,11 @@ function Sn(e, t) {
|
|
|
12179
12156
|
case s.TBODY:
|
|
12180
12157
|
case s.TFOOT:
|
|
12181
12158
|
case s.THEAD: {
|
|
12182
|
-
e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = T.IN_TABLE,
|
|
12159
|
+
e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = T.IN_TABLE, mt(e, t));
|
|
12183
12160
|
break;
|
|
12184
12161
|
}
|
|
12185
12162
|
default:
|
|
12186
|
-
|
|
12163
|
+
mt(e, t);
|
|
12187
12164
|
}
|
|
12188
12165
|
}
|
|
12189
12166
|
function ar(e, t) {
|
|
@@ -12196,7 +12173,7 @@ function ar(e, t) {
|
|
|
12196
12173
|
break;
|
|
12197
12174
|
}
|
|
12198
12175
|
case s.TABLE: {
|
|
12199
|
-
e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = T.IN_TABLE,
|
|
12176
|
+
e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = T.IN_TABLE, Ut(e, t));
|
|
12200
12177
|
break;
|
|
12201
12178
|
}
|
|
12202
12179
|
case s.BODY:
|
|
@@ -12209,7 +12186,7 @@ function ar(e, t) {
|
|
|
12209
12186
|
case s.TR:
|
|
12210
12187
|
break;
|
|
12211
12188
|
default:
|
|
12212
|
-
|
|
12189
|
+
Ut(e, t);
|
|
12213
12190
|
}
|
|
12214
12191
|
}
|
|
12215
12192
|
function kn(e, t) {
|
|
@@ -12230,7 +12207,7 @@ function kn(e, t) {
|
|
|
12230
12207
|
break;
|
|
12231
12208
|
}
|
|
12232
12209
|
default:
|
|
12233
|
-
|
|
12210
|
+
mt(e, t);
|
|
12234
12211
|
}
|
|
12235
12212
|
}
|
|
12236
12213
|
function Ta(e, t) {
|
|
@@ -12258,7 +12235,7 @@ function Ta(e, t) {
|
|
|
12258
12235
|
case s.TH:
|
|
12259
12236
|
break;
|
|
12260
12237
|
default:
|
|
12261
|
-
|
|
12238
|
+
Ut(e, t);
|
|
12262
12239
|
}
|
|
12263
12240
|
}
|
|
12264
12241
|
function gd(e, t) {
|
|
@@ -12373,7 +12350,7 @@ function Cd(e, t) {
|
|
|
12373
12350
|
case s.TBODY:
|
|
12374
12351
|
case s.TFOOT:
|
|
12375
12352
|
case s.THEAD: {
|
|
12376
|
-
e.tmplInsertionModeStack[0] = T.IN_TABLE, e.insertionMode = T.IN_TABLE,
|
|
12353
|
+
e.tmplInsertionModeStack[0] = T.IN_TABLE, e.insertionMode = T.IN_TABLE, mt(e, t);
|
|
12377
12354
|
break;
|
|
12378
12355
|
}
|
|
12379
12356
|
case s.COL: {
|
|
@@ -12455,9 +12432,9 @@ function Od(e, t) {
|
|
|
12455
12432
|
t.tagID === s.HTML && (e.insertionMode = T.AFTER_AFTER_FRAMESET);
|
|
12456
12433
|
}
|
|
12457
12434
|
function yd(e, t) {
|
|
12458
|
-
t.tagID === s.HTML ? he(e, t) :
|
|
12435
|
+
t.tagID === s.HTML ? he(e, t) : un(e, t);
|
|
12459
12436
|
}
|
|
12460
|
-
function
|
|
12437
|
+
function un(e, t) {
|
|
12461
12438
|
e.insertionMode = T.IN_BODY, xn(e, t);
|
|
12462
12439
|
}
|
|
12463
12440
|
function Ld(e, t) {
|
|
@@ -12528,7 +12505,7 @@ function Ia(e, t) {
|
|
|
12528
12505
|
stitches: !1,
|
|
12529
12506
|
options: t || {}
|
|
12530
12507
|
};
|
|
12531
|
-
r(e, u),
|
|
12508
|
+
r(e, u), At(u, Ve());
|
|
12532
12509
|
const a = n ? u.parser.document : u.parser.getFragment(), i = Q0(a, {
|
|
12533
12510
|
// To do: support `space`?
|
|
12534
12511
|
file: u.options.file
|
|
@@ -12562,9 +12539,9 @@ function Ud(e, t) {
|
|
|
12562
12539
|
const n = {
|
|
12563
12540
|
type: q.CHARACTER,
|
|
12564
12541
|
chars: e.value,
|
|
12565
|
-
location:
|
|
12542
|
+
location: Vt(e)
|
|
12566
12543
|
};
|
|
12567
|
-
|
|
12544
|
+
At(t, Ve(e)), t.parser.currentToken = n, t.parser._processToken(t.parser.currentToken);
|
|
12568
12545
|
}
|
|
12569
12546
|
function vd(e, t) {
|
|
12570
12547
|
const n = {
|
|
@@ -12573,9 +12550,9 @@ function vd(e, t) {
|
|
|
12573
12550
|
forceQuirks: !1,
|
|
12574
12551
|
publicId: "",
|
|
12575
12552
|
systemId: "",
|
|
12576
|
-
location:
|
|
12553
|
+
location: Vt(e)
|
|
12577
12554
|
};
|
|
12578
|
-
|
|
12555
|
+
At(t, Ve(e)), t.parser.currentToken = n, t.parser._processToken(t.parser.currentToken);
|
|
12579
12556
|
}
|
|
12580
12557
|
function zd(e, t) {
|
|
12581
12558
|
t.stitches = !0;
|
|
@@ -12593,12 +12570,12 @@ function Na(e, t) {
|
|
|
12593
12570
|
const n = e.value, r = {
|
|
12594
12571
|
type: q.COMMENT,
|
|
12595
12572
|
data: n,
|
|
12596
|
-
location:
|
|
12573
|
+
location: Vt(e)
|
|
12597
12574
|
};
|
|
12598
|
-
|
|
12575
|
+
At(t, Ve(e)), t.parser.currentToken = r, t.parser._processToken(t.parser.currentToken);
|
|
12599
12576
|
}
|
|
12600
12577
|
function Yd(e, t) {
|
|
12601
|
-
if (t.parser.tokenizer.preprocessor.html = "", t.parser.tokenizer.preprocessor.pos = -1, t.parser.tokenizer.preprocessor.lastGapPos = -2, t.parser.tokenizer.preprocessor.gapStack = [], t.parser.tokenizer.preprocessor.skipNextNewLine = !1, t.parser.tokenizer.preprocessor.lastChunkWritten = !1, t.parser.tokenizer.preprocessor.endOfChunkHit = !1, t.parser.tokenizer.preprocessor.isEol = !1, Sa(t,
|
|
12578
|
+
if (t.parser.tokenizer.preprocessor.html = "", t.parser.tokenizer.preprocessor.pos = -1, t.parser.tokenizer.preprocessor.lastGapPos = -2, t.parser.tokenizer.preprocessor.gapStack = [], t.parser.tokenizer.preprocessor.skipNextNewLine = !1, t.parser.tokenizer.preprocessor.lastChunkWritten = !1, t.parser.tokenizer.preprocessor.endOfChunkHit = !1, t.parser.tokenizer.preprocessor.isEol = !1, Sa(t, Ve(e)), t.parser.tokenizer.write(
|
|
12602
12579
|
t.options.tagfilter ? e.value.replace(Md, "<$1$2") : e.value,
|
|
12603
12580
|
!1
|
|
12604
12581
|
), t.parser.tokenizer._runParsingLoop(), t.parser.tokenizer.state === 72 || // @ts-expect-error: removed.
|
|
@@ -12620,7 +12597,7 @@ function qd(e, t) {
|
|
|
12620
12597
|
throw Bd.has(n.type) && (r = ". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"), new Error("Cannot compile `" + n.type + "` node" + r);
|
|
12621
12598
|
}
|
|
12622
12599
|
}
|
|
12623
|
-
function
|
|
12600
|
+
function At(e, t) {
|
|
12624
12601
|
Sa(e, t);
|
|
12625
12602
|
const n = e.parser.tokenizer.currentCharacterToken;
|
|
12626
12603
|
n && n.location && (n.location.endLine = e.parser.tokenizer.preprocessor.line, n.location.endCol = e.parser.tokenizer.preprocessor.col + 1, n.location.endOffset = e.parser.tokenizer.preprocessor.offset + 1, e.parser.currentToken = n, e.parser._processToken(e.parser.currentToken)), e.parser.tokenizer.paused = !1, e.parser.tokenizer.inLoop = !1, e.parser.tokenizer.active = !1, e.parser.tokenizer.returnState = re.DATA, e.parser.tokenizer.charRefCode = -1, e.parser.tokenizer.consumedAfterSnapshot = -1, e.parser.tokenizer.currentLocation = null, e.parser.tokenizer.currentCharacterToken = null, e.parser.tokenizer.currentToken = null, e.parser.tokenizer.currentAttr = { name: "", value: "" };
|
|
@@ -12641,40 +12618,40 @@ function Sa(e, t) {
|
|
|
12641
12618
|
function jd(e, t) {
|
|
12642
12619
|
const n = e.tagName.toLowerCase();
|
|
12643
12620
|
if (t.parser.tokenizer.state === re.PLAINTEXT) return;
|
|
12644
|
-
|
|
12621
|
+
At(t, Ve(e));
|
|
12645
12622
|
const r = t.parser.openElements.current;
|
|
12646
|
-
let u = "namespaceURI" in r ? r.namespaceURI :
|
|
12647
|
-
u ===
|
|
12623
|
+
let u = "namespaceURI" in r ? r.namespaceURI : Je.html;
|
|
12624
|
+
u === Je.html && n === "svg" && (u = Je.svg);
|
|
12648
12625
|
const a = J0(
|
|
12649
12626
|
// Shallow clone to not delve into `children`: we only need the attributes.
|
|
12650
12627
|
{ ...e, children: [] },
|
|
12651
|
-
{ space: u ===
|
|
12628
|
+
{ space: u === Je.svg ? "svg" : "html" }
|
|
12652
12629
|
), i = {
|
|
12653
12630
|
type: q.START_TAG,
|
|
12654
12631
|
tagName: n,
|
|
12655
|
-
tagID:
|
|
12632
|
+
tagID: bt(n),
|
|
12656
12633
|
// We always send start and end tags.
|
|
12657
12634
|
selfClosing: !1,
|
|
12658
12635
|
ackSelfClosing: !1,
|
|
12659
12636
|
// Always element.
|
|
12660
12637
|
/* c8 ignore next */
|
|
12661
12638
|
attrs: "attrs" in a ? a.attrs : [],
|
|
12662
|
-
location:
|
|
12639
|
+
location: Vt(e)
|
|
12663
12640
|
};
|
|
12664
12641
|
t.parser.currentToken = i, t.parser._processToken(t.parser.currentToken), t.parser.tokenizer.lastStartTagName = n;
|
|
12665
12642
|
}
|
|
12666
12643
|
function Vd(e, t) {
|
|
12667
12644
|
const n = e.tagName.toLowerCase();
|
|
12668
12645
|
if (!t.parser.tokenizer.inForeignNode && qs.includes(n) || t.parser.tokenizer.state === re.PLAINTEXT) return;
|
|
12669
|
-
|
|
12646
|
+
At(t, cr(e));
|
|
12670
12647
|
const r = {
|
|
12671
12648
|
type: q.END_TAG,
|
|
12672
12649
|
tagName: n,
|
|
12673
|
-
tagID:
|
|
12650
|
+
tagID: bt(n),
|
|
12674
12651
|
selfClosing: !1,
|
|
12675
12652
|
ackSelfClosing: !1,
|
|
12676
12653
|
attrs: [],
|
|
12677
|
-
location:
|
|
12654
|
+
location: Vt(e)
|
|
12678
12655
|
};
|
|
12679
12656
|
t.parser.currentToken = r, t.parser._processToken(t.parser.currentToken), // Current element is closed.
|
|
12680
12657
|
n === t.parser.tokenizer.lastStartTagName && // `<textarea>` and `<title>`
|
|
@@ -12686,8 +12663,8 @@ function Wd(e) {
|
|
|
12686
12663
|
const t = e.type === "root" ? e.children[0] : e;
|
|
12687
12664
|
return !!(t && (t.type === "doctype" || t.type === "element" && t.tagName.toLowerCase() === "html"));
|
|
12688
12665
|
}
|
|
12689
|
-
function
|
|
12690
|
-
const t =
|
|
12666
|
+
function Vt(e) {
|
|
12667
|
+
const t = Ve(e) || {
|
|
12691
12668
|
line: void 0,
|
|
12692
12669
|
column: void 0,
|
|
12693
12670
|
offset: void 0
|
|
@@ -12907,7 +12884,7 @@ function ka(e, t) {
|
|
|
12907
12884
|
return (e.index === 0 || tt(n) || bn(n)) && // If it’s an email, the previous character should not be a slash.
|
|
12908
12885
|
(!t || n !== 47);
|
|
12909
12886
|
}
|
|
12910
|
-
function
|
|
12887
|
+
function Wt(e) {
|
|
12911
12888
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
12912
12889
|
}
|
|
12913
12890
|
Oa.peek = Am;
|
|
@@ -12928,7 +12905,7 @@ function pm(e) {
|
|
|
12928
12905
|
}
|
|
12929
12906
|
function Em(e) {
|
|
12930
12907
|
const t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
12931
|
-
Me(n.type === "footnoteReference"), n.identifier =
|
|
12908
|
+
Me(n.type === "footnoteReference"), n.identifier = Wt(
|
|
12932
12909
|
this.sliceSerialize(e)
|
|
12933
12910
|
).toLowerCase(), n.label = t;
|
|
12934
12911
|
}
|
|
@@ -12937,7 +12914,7 @@ function Tm(e) {
|
|
|
12937
12914
|
}
|
|
12938
12915
|
function gm(e) {
|
|
12939
12916
|
const t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
12940
|
-
Me(n.type === "footnoteDefinition"), n.identifier =
|
|
12917
|
+
Me(n.type === "footnoteDefinition"), n.identifier = Wt(
|
|
12941
12918
|
this.sliceSerialize(e)
|
|
12942
12919
|
).toLowerCase(), n.label = t;
|
|
12943
12920
|
}
|
|
@@ -13257,11 +13234,11 @@ function Ym(e) {
|
|
|
13257
13234
|
);
|
|
13258
13235
|
return t;
|
|
13259
13236
|
}
|
|
13260
|
-
function
|
|
13237
|
+
function vt(e) {
|
|
13261
13238
|
return "&#x" + e.toString(16).toUpperCase() + ";";
|
|
13262
13239
|
}
|
|
13263
13240
|
function En(e, t, n) {
|
|
13264
|
-
const r =
|
|
13241
|
+
const r = dt(e), u = dt(t);
|
|
13265
13242
|
return r === void 0 ? u === void 0 ? (
|
|
13266
13243
|
// Letter inside:
|
|
13267
13244
|
// we have to encode *both* letters for `_` as it is looser.
|
|
@@ -13308,9 +13285,9 @@ function Ra(e, t, n, r) {
|
|
|
13308
13285
|
c,
|
|
13309
13286
|
u
|
|
13310
13287
|
);
|
|
13311
|
-
h.inside && (l =
|
|
13288
|
+
h.inside && (l = vt(c) + l.slice(1));
|
|
13312
13289
|
const f = l.charCodeAt(l.length - 1), p = En(r.after.charCodeAt(0), f, u);
|
|
13313
|
-
p.inside && (l = l.slice(0, -1) +
|
|
13290
|
+
p.inside && (l = l.slice(0, -1) + vt(f));
|
|
13314
13291
|
const d = i.move(u);
|
|
13315
13292
|
return a(), n.attentionEncodeSurroundingInfo = {
|
|
13316
13293
|
after: p.outside,
|
|
@@ -13354,7 +13331,7 @@ function Vm(e, t, n, r) {
|
|
|
13354
13331
|
`,
|
|
13355
13332
|
...a.current()
|
|
13356
13333
|
});
|
|
13357
|
-
return /^[\t ]/.test(c) && (c =
|
|
13334
|
+
return /^[\t ]/.test(c) && (c = vt(c.charCodeAt(0)) + c.slice(1)), c = c ? i + " " + c : i, n.options.closeAtx && (c += " " + i), l(), o(), c;
|
|
13358
13335
|
}
|
|
13359
13336
|
Da.peek = Wm;
|
|
13360
13337
|
function Da(e) {
|
|
@@ -13664,9 +13641,9 @@ function va(e, t, n, r) {
|
|
|
13664
13641
|
c,
|
|
13665
13642
|
u
|
|
13666
13643
|
);
|
|
13667
|
-
h.inside && (l =
|
|
13644
|
+
h.inside && (l = vt(c) + l.slice(1));
|
|
13668
13645
|
const f = l.charCodeAt(l.length - 1), p = En(r.after.charCodeAt(0), f, u);
|
|
13669
|
-
p.inside && (l = l.slice(0, -1) +
|
|
13646
|
+
p.inside && (l = l.slice(0, -1) + vt(f));
|
|
13670
13647
|
const d = i.move(u + u);
|
|
13671
13648
|
return a(), n.attentionEncodeSurroundingInfo = {
|
|
13672
13649
|
after: p.outside,
|
|
@@ -13913,7 +13890,7 @@ function I1(e) {
|
|
|
13913
13890
|
]
|
|
13914
13891
|
};
|
|
13915
13892
|
}
|
|
13916
|
-
function
|
|
13893
|
+
function an(e, t, n, r) {
|
|
13917
13894
|
const u = e.length;
|
|
13918
13895
|
let a = 0, i;
|
|
13919
13896
|
if (t < 0 ? t = -t > u ? 0 : u + t : t = t > u ? u : t, n = n > 0 ? n : 0, r.length < 1e4)
|
|
@@ -13952,7 +13929,7 @@ function S1(e, t) {
|
|
|
13952
13929
|
const r = [];
|
|
13953
13930
|
for (; ++n < t.length; )
|
|
13954
13931
|
(t[n].add === "after" ? e : r).push(t[n]);
|
|
13955
|
-
|
|
13932
|
+
an(e, 0, 0, r);
|
|
13956
13933
|
}
|
|
13957
13934
|
const k1 = {
|
|
13958
13935
|
tokenize: P1,
|
|
@@ -13987,9 +13964,9 @@ function y1() {
|
|
|
13987
13964
|
text: ye
|
|
13988
13965
|
};
|
|
13989
13966
|
}
|
|
13990
|
-
let
|
|
13991
|
-
for (;
|
|
13992
|
-
ye[
|
|
13967
|
+
let $e = 48;
|
|
13968
|
+
for (; $e < 123; )
|
|
13969
|
+
ye[$e] = Be, $e++, $e === 58 ? $e = 65 : $e === 91 && ($e = 97);
|
|
13993
13970
|
ye[43] = Be;
|
|
13994
13971
|
ye[45] = Be;
|
|
13995
13972
|
ye[46] = Be;
|
|
@@ -14213,7 +14190,7 @@ function q1(e, t, n) {
|
|
|
14213
14190
|
function o(l) {
|
|
14214
14191
|
if (!i || !i._balanced)
|
|
14215
14192
|
return n(l);
|
|
14216
|
-
const c =
|
|
14193
|
+
const c = Wt(r.sliceSerialize({
|
|
14217
14194
|
start: i.end,
|
|
14218
14195
|
end: r.now()
|
|
14219
14196
|
}));
|
|
@@ -14292,7 +14269,7 @@ function V1(e, t, n) {
|
|
|
14292
14269
|
if (f === 93) {
|
|
14293
14270
|
e.exit("chunkString");
|
|
14294
14271
|
const p = e.exit("gfmFootnoteCallString");
|
|
14295
|
-
return u.includes(
|
|
14272
|
+
return u.includes(Wt(r.sliceSerialize(p))) ? (e.enter("gfmFootnoteCallLabelMarker"), e.consume(f), e.exit("gfmFootnoteCallLabelMarker"), e.exit("gfmFootnoteCall"), t) : n(f);
|
|
14296
14273
|
}
|
|
14297
14274
|
return J(f) || (i = !0), a++, e.consume(f), f === 92 ? h : c;
|
|
14298
14275
|
}
|
|
@@ -14322,7 +14299,7 @@ function W1(e, t, n) {
|
|
|
14322
14299
|
if (A === 93) {
|
|
14323
14300
|
e.exit("chunkString");
|
|
14324
14301
|
const I = e.exit("gfmFootnoteDefinitionLabelString");
|
|
14325
|
-
return a =
|
|
14302
|
+
return a = Wt(r.sliceSerialize(I)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(A), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), p;
|
|
14326
14303
|
}
|
|
14327
14304
|
return J(A) || (o = !0), i++, e.consume(A), A === 92 ? f : h;
|
|
14328
14305
|
}
|
|
@@ -14386,7 +14363,7 @@ function K1(e) {
|
|
|
14386
14363
|
start: Object.assign({}, i[c][1].end),
|
|
14387
14364
|
end: Object.assign({}, i[l][1].start)
|
|
14388
14365
|
}, p = [["enter", h, o], ["enter", i[c][1], o], ["exit", i[c][1], o], ["enter", f, o]], d = o.parser.constructs.insideSpan.null;
|
|
14389
|
-
d &&
|
|
14366
|
+
d && an(p, p.length, 0, H1(d, i.slice(c + 1, l), o)), an(p, p.length, 0, [["exit", f, o], ["enter", i[l][1], o], ["exit", i[l][1], o], ["exit", h, o]]), an(i, c - 1, l - c + 3, p), l = c + p.length - 2;
|
|
14390
14367
|
break;
|
|
14391
14368
|
}
|
|
14392
14369
|
}
|
|
@@ -14402,11 +14379,11 @@ function K1(e) {
|
|
|
14402
14379
|
return c === 126 && h[h.length - 1][1].type !== "characterEscape" ? l(A) : (i.enter("strikethroughSequenceTemporary"), d(A));
|
|
14403
14380
|
}
|
|
14404
14381
|
function d(A) {
|
|
14405
|
-
const I =
|
|
14382
|
+
const I = dt(c);
|
|
14406
14383
|
if (A === 126)
|
|
14407
14384
|
return f > 1 ? l(A) : (i.consume(A), f++, d);
|
|
14408
14385
|
if (f < 2 && !n) return l(A);
|
|
14409
|
-
const L = i.exit("strikethroughSequenceTemporary"), x =
|
|
14386
|
+
const L = i.exit("strikethroughSequenceTemporary"), x = dt(A);
|
|
14410
14387
|
return L._open = !x || x === 2 && !!I, L._close = !I || I === 2 && !!x, o(A);
|
|
14411
14388
|
}
|
|
14412
14389
|
}
|
|
@@ -14595,7 +14572,7 @@ function np(e, t) {
|
|
|
14595
14572
|
start: Object.assign({}, A.start),
|
|
14596
14573
|
// Note: correct end is set later.
|
|
14597
14574
|
end: Object.assign({}, A.end)
|
|
14598
|
-
}, p.add(n, 0, [["enter", h, t]])), u = A.type === "tableDelimiterRow" ? 2 : h ? 3 : 1) : u && (A.type === "data" || A.type === "tableDelimiterMarker" || A.type === "tableDelimiterFiller") ? (r = !1, i[2] === 0 && (a[1] !== 0 && (i[0] = i[1], f =
|
|
14575
|
+
}, p.add(n, 0, [["enter", h, t]])), u = A.type === "tableDelimiterRow" ? 2 : h ? 3 : 1) : u && (A.type === "data" || A.type === "tableDelimiterMarker" || A.type === "tableDelimiterFiller") ? (r = !1, i[2] === 0 && (a[1] !== 0 && (i[0] = i[1], f = Jt(p, t, a, u, void 0, f), a = [0, 0, 0, 0]), i[2] = n)) : A.type === "tableCellDivider" && (r ? r = !1 : (a[1] !== 0 && (i[0] = i[1], f = Jt(p, t, a, u, void 0, f)), a = i, i = [a[1], n, 0, 0])) : A.type === "tableHead" ? (o = !0, l = n) : A.type === "tableRow" || A.type === "tableDelimiterRow" ? (l = n, a[1] !== 0 ? (i[0] = i[1], f = Jt(p, t, a, u, n, f)) : i[1] !== 0 && (f = Jt(p, t, i, u, n, f)), u = 0) : u && (A.type === "data" || A.type === "tableDelimiterMarker" || A.type === "tableDelimiterFiller") && (i[3] = n);
|
|
14599
14576
|
}
|
|
14600
14577
|
for (l !== 0 && Qu(p, t, l, c, h), p.consume(t.events), n = -1; ++n < t.events.length; ) {
|
|
14601
14578
|
const d = t.events[n];
|
|
@@ -14603,7 +14580,7 @@ function np(e, t) {
|
|
|
14603
14580
|
}
|
|
14604
14581
|
return e;
|
|
14605
14582
|
}
|
|
14606
|
-
function
|
|
14583
|
+
function Jt(e, t, n, r, u, a) {
|
|
14607
14584
|
const i = r === 1 ? "tableHeader" : r === 2 ? "tableDelimiter" : "tableData", o = "tableContent";
|
|
14608
14585
|
n[0] !== 0 && (a.end = Object.assign({}, lt(t.events, n[0])), e.add(n[0], 0, [["exit", a, t]]));
|
|
14609
14586
|
const l = lt(t.events, n[1]);
|
|
@@ -14751,7 +14728,7 @@ const cp = ({
|
|
|
14751
14728
|
"div",
|
|
14752
14729
|
{
|
|
14753
14730
|
className: ie(
|
|
14754
|
-
"code-block text-sm not-prose scrollbar overflow-x-auto scrollbar p-4",
|
|
14731
|
+
"code-block text-sm not-prose scrollbar overflow-x-auto scrollbar [&>code]:p-4",
|
|
14755
14732
|
i.className
|
|
14756
14733
|
),
|
|
14757
14734
|
ref: c,
|
|
@@ -14771,7 +14748,7 @@ const cp = ({
|
|
|
14771
14748
|
}
|
|
14772
14749
|
}), Mr = () => li(Ka), fp = () => {
|
|
14773
14750
|
const e = je(null), { observe: t, unobserve: n } = Mr();
|
|
14774
|
-
return
|
|
14751
|
+
return et(() => {
|
|
14775
14752
|
const u = e.current;
|
|
14776
14753
|
if (u)
|
|
14777
14754
|
return t(u), () => n(u);
|
|
@@ -14779,8 +14756,8 @@ const cp = ({
|
|
|
14779
14756
|
u && (e.current = u);
|
|
14780
14757
|
}, []) };
|
|
14781
14758
|
}, PE = ({ children: e }) => {
|
|
14782
|
-
const [t, n] =
|
|
14783
|
-
|
|
14759
|
+
const [t, n] = sn(""), r = je(null), u = je(/* @__PURE__ */ new Set()), a = je(/* @__PURE__ */ new Set());
|
|
14760
|
+
et(() => (r.current = new IntersectionObserver(
|
|
14784
14761
|
(l) => {
|
|
14785
14762
|
for (const c of l)
|
|
14786
14763
|
c.isIntersecting && c.target.id && n(c.target.id);
|
|
@@ -14791,7 +14768,7 @@ const cp = ({
|
|
|
14791
14768
|
}
|
|
14792
14769
|
), a.current.forEach((l) => {
|
|
14793
14770
|
u.current.add(l), r.current?.observe(l);
|
|
14794
|
-
}), a.current.clear(), () => r.current?.disconnect()), []),
|
|
14771
|
+
}), a.current.clear(), () => r.current?.disconnect()), []), et(() => {
|
|
14795
14772
|
const l = u.current, c = () => {
|
|
14796
14773
|
const h = window.scrollY === 0, f = window.innerHeight + window.scrollY >= document.body.scrollHeight;
|
|
14797
14774
|
if (h)
|
|
@@ -14805,7 +14782,7 @@ const cp = ({
|
|
|
14805
14782
|
l.clear(), document.removeEventListener("scroll", c);
|
|
14806
14783
|
};
|
|
14807
14784
|
}, []);
|
|
14808
|
-
const i =
|
|
14785
|
+
const i = Ft(() => ({
|
|
14809
14786
|
observe: (l) => {
|
|
14810
14787
|
if (l) {
|
|
14811
14788
|
if (!r.current) {
|
|
@@ -14818,19 +14795,19 @@ const cp = ({
|
|
|
14818
14795
|
unobserve: (l) => {
|
|
14819
14796
|
l && (a.current.delete(l), u.current.delete(l), r.current?.unobserve(l));
|
|
14820
14797
|
}
|
|
14821
|
-
}), []), o =
|
|
14798
|
+
}), []), o = Ft(
|
|
14822
14799
|
() => ({ activeAnchor: t, setActiveAnchor: n, ...i }),
|
|
14823
14800
|
[t, n, i]
|
|
14824
14801
|
);
|
|
14825
14802
|
return /* @__PURE__ */ k.jsx(Ka, { value: o, children: e });
|
|
14826
|
-
}, hp =
|
|
14827
|
-
|
|
14803
|
+
}, hp = pt.Provider, dp = pt.Root, mp = pt.Trigger, pp = (e) => /* @__PURE__ */ k.jsx(
|
|
14804
|
+
pt.Arrow,
|
|
14828
14805
|
{
|
|
14829
14806
|
...e,
|
|
14830
14807
|
className: ie(e.className, "fill-border")
|
|
14831
14808
|
}
|
|
14832
14809
|
), $a = Ms.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ k.jsx(
|
|
14833
|
-
|
|
14810
|
+
pt.Content,
|
|
14834
14811
|
{
|
|
14835
14812
|
ref: r,
|
|
14836
14813
|
sideOffset: t,
|
|
@@ -14841,7 +14818,7 @@ const cp = ({
|
|
|
14841
14818
|
...n
|
|
14842
14819
|
}
|
|
14843
14820
|
));
|
|
14844
|
-
$a.displayName =
|
|
14821
|
+
$a.displayName = pt.Content.displayName;
|
|
14845
14822
|
const Ep = {
|
|
14846
14823
|
green: "bg-green-400 dark:bg-green-800",
|
|
14847
14824
|
blue: "bg-sky-400 dark:bg-sky-800",
|
|
@@ -14883,7 +14860,7 @@ function Xu(e, t) {
|
|
|
14883
14860
|
return e(r, u, a) && t(r, u, a);
|
|
14884
14861
|
};
|
|
14885
14862
|
}
|
|
14886
|
-
function
|
|
14863
|
+
function Zt(e) {
|
|
14887
14864
|
return function(n, r, u) {
|
|
14888
14865
|
if (!n || !r || typeof n != "object" || typeof r != "object")
|
|
14889
14866
|
return e(n, r, u);
|
|
@@ -14958,7 +14935,7 @@ function Lp(e, t, n) {
|
|
|
14958
14935
|
return !1;
|
|
14959
14936
|
return !0;
|
|
14960
14937
|
}
|
|
14961
|
-
function
|
|
14938
|
+
function Ot(e, t, n) {
|
|
14962
14939
|
var r = Ku(e), u = r.length;
|
|
14963
14940
|
if (Ku(t).length !== u)
|
|
14964
14941
|
return !1;
|
|
@@ -15043,21 +15020,21 @@ function Gp(e) {
|
|
|
15043
15020
|
}
|
|
15044
15021
|
function Xp(e) {
|
|
15045
15022
|
var t = e.circular, n = e.createCustomConfig, r = e.strict, u = {
|
|
15046
|
-
areArraysEqual: r ?
|
|
15023
|
+
areArraysEqual: r ? Ot : Np,
|
|
15047
15024
|
areDatesEqual: Sp,
|
|
15048
15025
|
areErrorsEqual: kp,
|
|
15049
15026
|
areFunctionsEqual: Op,
|
|
15050
|
-
areMapsEqual: r ? Xu(Zu,
|
|
15027
|
+
areMapsEqual: r ? Xu(Zu, Ot) : Zu,
|
|
15051
15028
|
areNumbersEqual: yp,
|
|
15052
|
-
areObjectsEqual: r ?
|
|
15029
|
+
areObjectsEqual: r ? Ot : Lp,
|
|
15053
15030
|
arePrimitiveWrappersEqual: Rp,
|
|
15054
15031
|
areRegExpsEqual: Dp,
|
|
15055
|
-
areSetsEqual: r ? Xu(ei,
|
|
15056
|
-
areTypedArraysEqual: r ?
|
|
15032
|
+
areSetsEqual: r ? Xu(ei, Ot) : ei,
|
|
15033
|
+
areTypedArraysEqual: r ? Ot : Pp,
|
|
15057
15034
|
areUrlsEqual: wp
|
|
15058
15035
|
};
|
|
15059
15036
|
if (n && (u = ni({}, u, n(u))), t) {
|
|
15060
|
-
var a =
|
|
15037
|
+
var a = Zt(u.areArraysEqual), i = Zt(u.areMapsEqual), o = Zt(u.areObjectsEqual), l = Zt(u.areSetsEqual);
|
|
15061
15038
|
u = ni({}, u, {
|
|
15062
15039
|
areArraysEqual: a,
|
|
15063
15040
|
areMapsEqual: i,
|
|
@@ -15103,38 +15080,38 @@ function $p(e) {
|
|
|
15103
15080
|
return n(l, c, i);
|
|
15104
15081
|
};
|
|
15105
15082
|
}
|
|
15106
|
-
var Jp =
|
|
15107
|
-
|
|
15108
|
-
|
|
15109
|
-
|
|
15083
|
+
var Jp = Qe();
|
|
15084
|
+
Qe({ strict: !0 });
|
|
15085
|
+
Qe({ circular: !0 });
|
|
15086
|
+
Qe({
|
|
15110
15087
|
circular: !0,
|
|
15111
15088
|
strict: !0
|
|
15112
15089
|
});
|
|
15113
|
-
|
|
15090
|
+
Qe({
|
|
15114
15091
|
createInternalComparator: function() {
|
|
15115
15092
|
return ut;
|
|
15116
15093
|
}
|
|
15117
15094
|
});
|
|
15118
|
-
|
|
15095
|
+
Qe({
|
|
15119
15096
|
strict: !0,
|
|
15120
15097
|
createInternalComparator: function() {
|
|
15121
15098
|
return ut;
|
|
15122
15099
|
}
|
|
15123
15100
|
});
|
|
15124
|
-
|
|
15101
|
+
Qe({
|
|
15125
15102
|
circular: !0,
|
|
15126
15103
|
createInternalComparator: function() {
|
|
15127
15104
|
return ut;
|
|
15128
15105
|
}
|
|
15129
15106
|
});
|
|
15130
|
-
|
|
15107
|
+
Qe({
|
|
15131
15108
|
circular: !0,
|
|
15132
15109
|
createInternalComparator: function() {
|
|
15133
15110
|
return ut;
|
|
15134
15111
|
},
|
|
15135
15112
|
strict: !0
|
|
15136
15113
|
});
|
|
15137
|
-
function
|
|
15114
|
+
function Qe(e) {
|
|
15138
15115
|
e === void 0 && (e = {});
|
|
15139
15116
|
var t = e.circular, n = t === void 0 ? !1 : t, r = e.createInternalComparator, u = e.createState, a = e.strict, i = a === void 0 ? !1 : a, o = Xp(e), l = Gp(o), c = r ? r(l) : Kp(l);
|
|
15140
15117
|
return $p({ circular: n, comparator: l, createState: u, equals: c, strict: i });
|
|
@@ -15143,8 +15120,8 @@ const Zp = ({
|
|
|
15143
15120
|
category: e,
|
|
15144
15121
|
onRequestClose: t
|
|
15145
15122
|
}) => {
|
|
15146
|
-
const n = bs(e), [r, u] =
|
|
15147
|
-
|
|
15123
|
+
const n = bs(e), [r, u] = sn(!1), a = Tn(), i = e.collapsible ?? !0, o = e.collapsed ?? !0, l = !!(!i || !o || n), [c, h] = sn(l), f = Cs(e.link?.path ?? "");
|
|
15124
|
+
et(() => {
|
|
15148
15125
|
n && h(!0);
|
|
15149
15126
|
}, [n]);
|
|
15150
15127
|
const p = i && /* @__PURE__ */ k.jsx(
|
|
@@ -15173,7 +15150,7 @@ const Zp = ({
|
|
|
15173
15150
|
size: 16,
|
|
15174
15151
|
className: ie("align-[-0.125em] ", f && "text-primary")
|
|
15175
15152
|
}
|
|
15176
|
-
), A =
|
|
15153
|
+
), A = en({
|
|
15177
15154
|
className: [
|
|
15178
15155
|
"group text-start font-medium",
|
|
15179
15156
|
i || typeof e.link < "u" ? "cursor-pointer" : "cursor-default hover:bg-transparent"
|
|
@@ -15241,8 +15218,8 @@ const ri = ({
|
|
|
15241
15218
|
label: e,
|
|
15242
15219
|
className: t
|
|
15243
15220
|
}) => {
|
|
15244
|
-
const n = je(null), [r, u] =
|
|
15245
|
-
return
|
|
15221
|
+
const n = je(null), [r, u] = sn(!1);
|
|
15222
|
+
return et(() => {
|
|
15246
15223
|
n.current && n.current.offsetWidth < n.current.scrollWidth && u(!0);
|
|
15247
15224
|
}, []), /* @__PURE__ */ k.jsxs(k.Fragment, { children: [
|
|
15248
15225
|
/* @__PURE__ */ k.jsx(
|
|
@@ -15283,7 +15260,7 @@ const ri = ({
|
|
|
15283
15260
|
or,
|
|
15284
15261
|
{
|
|
15285
15262
|
viewTransition: !0,
|
|
15286
|
-
className: ({ isActive: u, isPending: a }) =>
|
|
15263
|
+
className: ({ isActive: u, isPending: a }) => en({ isActive: u, isPending: a }),
|
|
15287
15264
|
to: ii(e.path),
|
|
15288
15265
|
onClick: t,
|
|
15289
15266
|
end: !0,
|
|
@@ -15302,7 +15279,7 @@ const ri = ({
|
|
|
15302
15279
|
return u.startsWith("http") ? /* @__PURE__ */ k.jsxs(
|
|
15303
15280
|
"a",
|
|
15304
15281
|
{
|
|
15305
|
-
className:
|
|
15282
|
+
className: en(),
|
|
15306
15283
|
href: u,
|
|
15307
15284
|
target: "_blank",
|
|
15308
15285
|
rel: "noopener noreferrer",
|
|
@@ -15322,7 +15299,7 @@ const ri = ({
|
|
|
15322
15299
|
search: n.search
|
|
15323
15300
|
},
|
|
15324
15301
|
[es]: u.split("#")[1],
|
|
15325
|
-
className:
|
|
15302
|
+
className: en({
|
|
15326
15303
|
isActive: u === [n.pathname, r].join("#")
|
|
15327
15304
|
}),
|
|
15328
15305
|
onClick: t,
|
|
@@ -15354,9 +15331,9 @@ const ri = ({
|
|
|
15354
15331
|
);
|
|
15355
15332
|
}, wE = () => {
|
|
15356
15333
|
const e = Tn(), t = ts(), n = je(!1);
|
|
15357
|
-
|
|
15334
|
+
et(() => {
|
|
15358
15335
|
!e.hash || !n.current || t(e.hash);
|
|
15359
|
-
}, [e.hash, t]),
|
|
15336
|
+
}, [e.hash, t]), et(() => {
|
|
15360
15337
|
if (!e.hash) {
|
|
15361
15338
|
n.current = !0;
|
|
15362
15339
|
return;
|
|
@@ -15550,7 +15527,7 @@ const ri = ({
|
|
|
15550
15527
|
}
|
|
15551
15528
|
);
|
|
15552
15529
|
}
|
|
15553
|
-
}, lE = "prose dark:prose-invert prose-neutral", Br = ({
|
|
15530
|
+
}, lE = "prose dark:prose-invert prose-neutral typography", Br = ({
|
|
15554
15531
|
children: e,
|
|
15555
15532
|
className: t
|
|
15556
15533
|
}) => /* @__PURE__ */ k.jsx("div", { className: ie(lE, t), children: e }), cE = [lp], rs = lr(
|
|
@@ -15559,13 +15536,13 @@ const ri = ({
|
|
|
15559
15536
|
className: t,
|
|
15560
15537
|
components: n
|
|
15561
15538
|
}) => {
|
|
15562
|
-
const { syntaxHighlighting: r } = ai().options, u =
|
|
15539
|
+
const { syntaxHighlighting: r } = ai().options, u = Ft(
|
|
15563
15540
|
() => [
|
|
15564
15541
|
Gd,
|
|
15565
15542
|
...Qs(r?.themes)
|
|
15566
15543
|
],
|
|
15567
15544
|
[r?.themes]
|
|
15568
|
-
), a =
|
|
15545
|
+
), a = Ft(
|
|
15569
15546
|
() => ({ ...oE, ...n }),
|
|
15570
15547
|
[n]
|
|
15571
15548
|
);
|
|
@@ -15602,13 +15579,16 @@ const us = ({
|
|
|
15602
15579
|
"Start by adding a file at",
|
|
15603
15580
|
" ",
|
|
15604
15581
|
/* @__PURE__ */ k.jsxs("code", { children: [
|
|
15605
|
-
"{
|
|
15582
|
+
"{DOCUMENT_ROOT}",
|
|
15606
15583
|
"/",
|
|
15607
15584
|
e["*"],
|
|
15608
15585
|
".mdx"
|
|
15609
15586
|
] }),
|
|
15610
15587
|
" ",
|
|
15611
|
-
"and add some content to make this error go away."
|
|
15588
|
+
"and add some content to make this error go away. By default",
|
|
15589
|
+
" ",
|
|
15590
|
+
/* @__PURE__ */ k.jsx("code", { children: "DOCUMENT_ROOT" }),
|
|
15591
|
+
" is the `pages` directory."
|
|
15612
15592
|
] }),
|
|
15613
15593
|
/* @__PURE__ */ k.jsx("p", { children: "It seems that the page you are looking for does not exist or may have been moved. Please check the URL for any typos or use the navigation menu to find the correct page." }),
|
|
15614
15594
|
/* @__PURE__ */ k.jsx(Ns, { to: "/", children: "Go back home" })
|
|
@@ -15634,14 +15614,14 @@ function hE({ error: e }) {
|
|
|
15634
15614
|
"Error: ",
|
|
15635
15615
|
t,
|
|
15636
15616
|
n && /* @__PURE__ */ k.jsx(us, { className: "mb-4", children: n }),
|
|
15637
|
-
i && /* @__PURE__ */ k.jsx(
|
|
15617
|
+
i && /* @__PURE__ */ k.jsx(
|
|
15638
15618
|
is,
|
|
15639
15619
|
{
|
|
15640
|
-
className: "max-h-[400px]
|
|
15620
|
+
className: "max-h-[400px] [&>pre]:p-4",
|
|
15641
15621
|
language: "js",
|
|
15642
15622
|
code: i
|
|
15643
15623
|
}
|
|
15644
|
-
)
|
|
15624
|
+
)
|
|
15645
15625
|
] });
|
|
15646
15626
|
}
|
|
15647
15627
|
function ME() {
|
|
@@ -15699,7 +15679,7 @@ function dE(e) {
|
|
|
15699
15679
|
}
|
|
15700
15680
|
const ui = ["prepend", "replace", "append"], mE = (e) => {
|
|
15701
15681
|
const t = uo(), n = dE((r) => r.getItems(e));
|
|
15702
|
-
return
|
|
15682
|
+
return Ft(() => n.length === 0 ? [] : n.toSorted((r, u) => {
|
|
15703
15683
|
const a = ui.indexOf(r.type) - ui.indexOf(u.type);
|
|
15704
15684
|
return a !== 0 ? a : r.sequence - u.sequence;
|
|
15705
15685
|
}).map(
|
|
@@ -15740,4 +15720,4 @@ export {
|
|
|
15740
15720
|
tE as s,
|
|
15741
15721
|
Mr as u
|
|
15742
15722
|
};
|
|
15743
|
-
//# sourceMappingURL=Slot-
|
|
15723
|
+
//# sourceMappingURL=Slot-B31yZlfB.js.map
|