zudoku 0.40.0 → 0.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/main.js +7 -4
- package/dist/app/main.js.map +1 -1
- package/dist/cli/cli.js +12 -1
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/common/machine-id/lib.js +1 -0
- package/dist/cli/common/machine-id/lib.js.map +1 -1
- package/dist/config/ZuploBuildConfig.d.ts +155 -0
- package/dist/config/ZuploBuildConfig.js +29 -0
- package/dist/config/ZuploBuildConfig.js.map +1 -0
- package/dist/config/loader.js +0 -3
- package/dist/config/loader.js.map +1 -1
- package/dist/config/validators/BuildSchema.d.ts +1 -0
- package/dist/config/validators/BuildSchema.js.map +1 -1
- package/dist/config/validators/common.d.ts +17 -11
- package/dist/config/validators/common.js +1 -1
- package/dist/config/validators/common.js.map +1 -1
- package/dist/config/validators/validate.d.ts +7 -5
- package/dist/lib/authentication/providers/openid.d.ts +3 -1
- package/dist/lib/authentication/providers/openid.js +17 -11
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/components/BuildCheck.d.ts +4 -0
- package/dist/lib/components/BuildCheck.js +22 -0
- package/dist/lib/components/BuildCheck.js.map +1 -0
- package/dist/lib/components/Zudoku.js +1 -3
- package/dist/lib/components/Zudoku.js.map +1 -1
- package/dist/lib/components/context/ViewportAnchorContext.js +8 -9
- package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
- package/dist/lib/components/index.d.ts +4 -0
- package/dist/lib/components/index.js +2 -0
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/PoweredByZudoku.js +2 -1
- package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -1
- package/dist/lib/components/navigation/ZuploLogo.d.ts +3 -0
- package/dist/lib/components/navigation/ZuploLogo.js +4 -0
- package/dist/lib/components/navigation/ZuploLogo.js.map +1 -0
- package/dist/lib/oas/parser/index.d.ts +1 -1
- package/dist/lib/oas/parser/index.js +3 -2
- package/dist/lib/oas/parser/index.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.d.ts +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +6 -4
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +3 -2
- package/dist/lib/plugins/openapi/processors/removeExtensions.js +1 -1
- package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -1
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +26 -6
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -1
- package/dist/lib/plugins/openapi/processors/removeParameters.d.ts +3 -1
- package/dist/lib/plugins/openapi/processors/removeParameters.js +1 -1
- package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -1
- package/dist/lib/plugins/openapi/processors/removeParameters.test.js +53 -25
- package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -1
- package/dist/lib/plugins/openapi/processors/removePaths.d.ts +3 -1
- package/dist/lib/plugins/openapi/processors/removePaths.js +1 -1
- package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -1
- package/dist/lib/plugins/openapi/processors/removePaths.test.js +75 -35
- package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -1
- package/dist/lib/plugins/openapi/util/getRoutes.js +20 -13
- package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
- package/dist/lib/util/ensureArray.d.ts +1 -0
- package/dist/lib/util/ensureArray.js +2 -0
- package/dist/lib/util/ensureArray.js.map +1 -0
- package/dist/vite/api/SchemaManager.d.ts +36 -0
- package/dist/vite/api/SchemaManager.js +120 -0
- package/dist/vite/api/SchemaManager.js.map +1 -0
- package/dist/vite/api/SchemaManager.test.d.ts +1 -0
- package/dist/vite/api/SchemaManager.test.js +106 -0
- package/dist/vite/api/SchemaManager.test.js.map +1 -0
- package/dist/vite/config.js +5 -1
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/plugin-api.js +39 -117
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-sidebar.d.ts +3 -1
- package/dist/vite/plugin-sidebar.js +8 -2
- package/dist/vite/plugin-sidebar.js.map +1 -1
- package/dist/zuplo/enrich-with-zuplo.d.ts +3 -3
- package/dist/zuplo/enrich-with-zuplo.js +18 -17
- package/dist/zuplo/enrich-with-zuplo.js.map +1 -1
- package/dist/zuplo/env.d.ts +26 -0
- package/dist/zuplo/env.js +17 -0
- package/dist/zuplo/env.js.map +1 -1
- package/dist/zuplo/with-zuplo-processors.d.ts +2 -2
- package/dist/zuplo/with-zuplo-processors.js +3 -3
- package/dist/zuplo/with-zuplo-processors.js.map +1 -1
- package/dist/zuplo/with-zuplo.d.ts +3 -0
- package/dist/zuplo/with-zuplo.js +6 -9
- package/dist/zuplo/with-zuplo.js.map +1 -1
- package/lib/{Markdown-C5h6bxbE.js → Markdown-DqDbGCj2.js} +314 -315
- package/lib/{Markdown-C5h6bxbE.js.map → Markdown-DqDbGCj2.js.map} +1 -1
- package/lib/{MdxPage-B66ht0D_.js → MdxPage-DGVqOhzg.js} +5 -5
- package/lib/{MdxPage-B66ht0D_.js.map → MdxPage-DGVqOhzg.js.map} +1 -1
- package/lib/{OasProvider-BKPF0Pbt.js → OasProvider-qeJNCq-h.js} +2 -2
- package/lib/{OasProvider-BKPF0Pbt.js.map → OasProvider-qeJNCq-h.js.map} +1 -1
- package/lib/{OperationList-0bhBU7ME.js → OperationList-CBpQALZd.js} +798 -794
- package/lib/{OperationList-0bhBU7ME.js.map → OperationList-CBpQALZd.js.map} +1 -1
- package/lib/{Pagination-Bt1czAiJ.js → Pagination-PfYTF0cF.js} +2 -2
- package/lib/{Pagination-Bt1czAiJ.js.map → Pagination-PfYTF0cF.js.map} +1 -1
- package/lib/{SchemaList-CsTIT1pi.js → SchemaList-BIzyXPnY.js} +5 -5
- package/lib/{SchemaList-CsTIT1pi.js.map → SchemaList-BIzyXPnY.js.map} +1 -1
- package/lib/{SchemaView-DCSWtnYr.js → SchemaView-DwlVvFfp.js} +2 -2
- package/lib/{SchemaView-DCSWtnYr.js.map → SchemaView-DwlVvFfp.js.map} +1 -1
- package/lib/{SlotletProvider-VUmTNmLZ.js → SlotletProvider-p4XaFFOh.js} +2 -2
- package/lib/{SlotletProvider-VUmTNmLZ.js.map → SlotletProvider-p4XaFFOh.js.map} +1 -1
- package/lib/{Toc-BK39DQvI.js → Toc-BVdRaIC0.js} +2 -2
- package/lib/{Toc-BK39DQvI.js.map → Toc-BVdRaIC0.js.map} +1 -1
- package/lib/{createServer-DLN7APz_.js → createServer-D_5UkLtY.js} +1459 -1485
- package/lib/createServer-D_5UkLtY.js.map +1 -0
- package/lib/{index-tpbiZmWp.js → index-B7lRu87v.js} +686 -648
- package/lib/index-B7lRu87v.js.map +1 -0
- package/lib/index-BpThvE5R.js +66 -0
- package/lib/index-BpThvE5R.js.map +1 -0
- package/lib/{index-Ba_X7EnR.js → index-CxdJ8TBB.js} +255 -249
- package/lib/{index-Ba_X7EnR.js.map → index-CxdJ8TBB.js.map} +1 -1
- package/lib/index-ueM1dihS.js +247 -0
- package/lib/index-ueM1dihS.js.map +1 -0
- package/lib/processors/removeExtensions.js +1 -1
- package/lib/processors/removeExtensions.js.map +1 -1
- package/lib/processors/removeParameters.js +1 -1
- package/lib/processors/removeParameters.js.map +1 -1
- package/lib/processors/removePaths.js +1 -1
- package/lib/processors/removePaths.js.map +1 -1
- package/lib/{index-DcHeSvkE.js → public-api-CrAQFYc4.js} +651 -684
- package/lib/public-api-CrAQFYc4.js.map +1 -0
- package/lib/zudoku.auth-openid.js +144 -138
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +23 -22
- package/lib/zudoku.plugin-api-catalog.js +2 -2
- package/lib/zudoku.plugin-api-keys.js +1 -1
- package/lib/zudoku.plugin-custom-pages.js +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +1 -1
- package/package.json +3 -3
- package/src/app/main.tsx +12 -1
- package/src/lib/authentication/providers/openid.tsx +23 -12
- package/src/lib/components/BuildCheck.tsx +60 -0
- package/src/lib/components/Zudoku.tsx +1 -3
- package/src/lib/components/context/ViewportAnchorContext.tsx +8 -15
- package/src/lib/components/index.ts +2 -0
- package/src/lib/components/navigation/PoweredByZudoku.tsx +8 -3
- package/src/lib/components/navigation/ZuploLogo.tsx +14 -0
- package/src/lib/oas/parser/index.ts +4 -2
- package/src/lib/plugins/openapi/OperationList.tsx +15 -3
- package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +29 -9
- package/src/lib/plugins/openapi/processors/removeExtensions.ts +5 -3
- package/src/lib/plugins/openapi/processors/removeParameters.test.ts +67 -33
- package/src/lib/plugins/openapi/processors/removeParameters.ts +5 -3
- package/src/lib/plugins/openapi/processors/removePaths.test.ts +85 -44
- package/src/lib/plugins/openapi/processors/removePaths.ts +5 -3
- package/src/lib/plugins/openapi/util/getRoutes.tsx +21 -13
- package/src/lib/util/ensureArray.ts +3 -0
- package/client.d.ts +0 -8
- package/dist/lib/oas/parser/upgrade/index.d.ts +0 -9
- package/dist/lib/oas/parser/upgrade/index.js +0 -90
- package/dist/lib/oas/parser/upgrade/index.js.map +0 -1
- package/lib/createServer-DLN7APz_.js.map +0 -1
- package/lib/index-DcHeSvkE.js.map +0 -1
- package/lib/index-tpbiZmWp.js.map +0 -1
- package/src/lib/oas/parser/upgrade/index.ts +0 -103
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as B } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { createContext as ro,
|
|
2
|
+
import { createContext as ro, use as uo, useRef as Ut, useEffect as bt, useCallback as Hi, useState as cr, useMemo as fu, memo as Ui } from "react";
|
|
3
3
|
import { d as io, g as Nr, u as Or, b as ao, h as so } from "./chunk-KNED5TY2-BUPjb3LQ.js";
|
|
4
4
|
import { c as vi } from "./index-CPNSgwSb.js";
|
|
5
5
|
import { ChevronRightIcon as oo, ExternalLinkIcon as lo } from "lucide-react";
|
|
@@ -246,12 +246,12 @@ wr.prototype.defined = !0;
|
|
|
246
246
|
function gu(e, t, n) {
|
|
247
247
|
n && (e[t] = n);
|
|
248
248
|
}
|
|
249
|
-
const
|
|
249
|
+
const Io = {}.hasOwnProperty;
|
|
250
250
|
function Ct(e) {
|
|
251
251
|
const t = {}, n = {};
|
|
252
252
|
let r;
|
|
253
253
|
for (r in e.properties)
|
|
254
|
-
if (
|
|
254
|
+
if (Io.call(e.properties, r)) {
|
|
255
255
|
const u = e.properties[r], a = new wr(
|
|
256
256
|
r,
|
|
257
257
|
e.transform(e.attributes || {}, r),
|
|
@@ -349,7 +349,7 @@ const Ki = Ct({
|
|
|
349
349
|
ariaValueText: null,
|
|
350
350
|
role: null
|
|
351
351
|
}
|
|
352
|
-
}),
|
|
352
|
+
}), xo = Ct({
|
|
353
353
|
space: "html",
|
|
354
354
|
attributes: {
|
|
355
355
|
acceptcharset: "accept-charset",
|
|
@@ -1296,7 +1296,7 @@ function Oo(e) {
|
|
|
1296
1296
|
function Lo(e) {
|
|
1297
1297
|
return e.charAt(1).toUpperCase();
|
|
1298
1298
|
}
|
|
1299
|
-
const Ln = Vi([Qi, Gi, Ki, Ji,
|
|
1299
|
+
const Ln = Vi([Qi, Gi, Ki, Ji, xo], "html"), en = Vi([Qi, Gi, Ki, Ji, ko], "svg");
|
|
1300
1300
|
function bu(e) {
|
|
1301
1301
|
const t = [], n = String(e || "");
|
|
1302
1302
|
let r = n.indexOf(","), u = 0, a = !1;
|
|
@@ -1658,29 +1658,29 @@ function qo(e, t, n) {
|
|
|
1658
1658
|
return r;
|
|
1659
1659
|
}
|
|
1660
1660
|
function pt(e) {
|
|
1661
|
-
const t =
|
|
1661
|
+
const t = Iu({
|
|
1662
1662
|
line: e.startLine,
|
|
1663
1663
|
column: e.startCol,
|
|
1664
1664
|
offset: e.startOffset
|
|
1665
|
-
}), n =
|
|
1665
|
+
}), n = Iu({
|
|
1666
1666
|
line: e.endLine,
|
|
1667
1667
|
column: e.endCol,
|
|
1668
1668
|
offset: e.endOffset
|
|
1669
1669
|
});
|
|
1670
1670
|
return t || n ? { start: t, end: n } : void 0;
|
|
1671
1671
|
}
|
|
1672
|
-
function
|
|
1672
|
+
function Iu(e) {
|
|
1673
1673
|
return e.line && e.column ? e : void 0;
|
|
1674
1674
|
}
|
|
1675
|
-
const
|
|
1675
|
+
const xu = {}.hasOwnProperty;
|
|
1676
1676
|
function ua(e, t) {
|
|
1677
1677
|
const n = t || {};
|
|
1678
1678
|
function r(u, ...a) {
|
|
1679
1679
|
let i = r.invalid;
|
|
1680
1680
|
const o = r.handlers;
|
|
1681
|
-
if (u &&
|
|
1681
|
+
if (u && xu.call(u, e)) {
|
|
1682
1682
|
const l = String(u[e]);
|
|
1683
|
-
i =
|
|
1683
|
+
i = xu.call(o, l) ? o[l] : r.unknown;
|
|
1684
1684
|
}
|
|
1685
1685
|
if (i)
|
|
1686
1686
|
return i.call(this, u, ...a);
|
|
@@ -1879,10 +1879,10 @@ function sa(e) {
|
|
|
1879
1879
|
function oa(e) {
|
|
1880
1880
|
return e >= 64976 && e <= 65007 || tl.has(e);
|
|
1881
1881
|
}
|
|
1882
|
-
var
|
|
1882
|
+
var I;
|
|
1883
1883
|
(function(e) {
|
|
1884
1884
|
e.controlCharacterInInputStream = "control-character-in-input-stream", e.noncharacterInInputStream = "noncharacter-in-input-stream", e.surrogateInInputStream = "surrogate-in-input-stream", e.nonVoidHtmlElementStartTagWithTrailingSolidus = "non-void-html-element-start-tag-with-trailing-solidus", e.endTagWithAttributes = "end-tag-with-attributes", e.endTagWithTrailingSolidus = "end-tag-with-trailing-solidus", e.unexpectedSolidusInTag = "unexpected-solidus-in-tag", e.unexpectedNullCharacter = "unexpected-null-character", e.unexpectedQuestionMarkInsteadOfTagName = "unexpected-question-mark-instead-of-tag-name", e.invalidFirstCharacterOfTagName = "invalid-first-character-of-tag-name", e.unexpectedEqualsSignBeforeAttributeName = "unexpected-equals-sign-before-attribute-name", e.missingEndTagName = "missing-end-tag-name", e.unexpectedCharacterInAttributeName = "unexpected-character-in-attribute-name", e.unknownNamedCharacterReference = "unknown-named-character-reference", e.missingSemicolonAfterCharacterReference = "missing-semicolon-after-character-reference", e.unexpectedCharacterAfterDoctypeSystemIdentifier = "unexpected-character-after-doctype-system-identifier", e.unexpectedCharacterInUnquotedAttributeValue = "unexpected-character-in-unquoted-attribute-value", e.eofBeforeTagName = "eof-before-tag-name", e.eofInTag = "eof-in-tag", e.missingAttributeValue = "missing-attribute-value", e.missingWhitespaceBetweenAttributes = "missing-whitespace-between-attributes", e.missingWhitespaceAfterDoctypePublicKeyword = "missing-whitespace-after-doctype-public-keyword", e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers = "missing-whitespace-between-doctype-public-and-system-identifiers", e.missingWhitespaceAfterDoctypeSystemKeyword = "missing-whitespace-after-doctype-system-keyword", e.missingQuoteBeforeDoctypePublicIdentifier = "missing-quote-before-doctype-public-identifier", e.missingQuoteBeforeDoctypeSystemIdentifier = "missing-quote-before-doctype-system-identifier", e.missingDoctypePublicIdentifier = "missing-doctype-public-identifier", e.missingDoctypeSystemIdentifier = "missing-doctype-system-identifier", e.abruptDoctypePublicIdentifier = "abrupt-doctype-public-identifier", e.abruptDoctypeSystemIdentifier = "abrupt-doctype-system-identifier", e.cdataInHtmlContent = "cdata-in-html-content", e.incorrectlyOpenedComment = "incorrectly-opened-comment", e.eofInScriptHtmlCommentLikeText = "eof-in-script-html-comment-like-text", e.eofInDoctype = "eof-in-doctype", e.nestedComment = "nested-comment", e.abruptClosingOfEmptyComment = "abrupt-closing-of-empty-comment", e.eofInComment = "eof-in-comment", e.incorrectlyClosedComment = "incorrectly-closed-comment", e.eofInCdata = "eof-in-cdata", e.absenceOfDigitsInNumericCharacterReference = "absence-of-digits-in-numeric-character-reference", e.nullCharacterReference = "null-character-reference", e.surrogateCharacterReference = "surrogate-character-reference", e.characterReferenceOutsideUnicodeRange = "character-reference-outside-unicode-range", e.controlCharacterReference = "control-character-reference", e.noncharacterCharacterReference = "noncharacter-character-reference", e.missingWhitespaceBeforeDoctypeName = "missing-whitespace-before-doctype-name", e.missingDoctypeName = "missing-doctype-name", e.invalidCharacterSequenceAfterDoctypeName = "invalid-character-sequence-after-doctype-name", e.duplicateAttribute = "duplicate-attribute", e.nonConformingDoctype = "non-conforming-doctype", e.missingDoctype = "missing-doctype", e.misplacedDoctype = "misplaced-doctype", e.endTagWithoutMatchingOpenElement = "end-tag-without-matching-open-element", e.closingOfElementWithOpenChildElements = "closing-of-element-with-open-child-elements", e.disallowedContentInNoscriptInHead = "disallowed-content-in-noscript-in-head", e.openElementsLeftAfterEof = "open-elements-left-after-eof", e.abandonedHeadElementChild = "abandoned-head-element-child", e.misplacedStartTagForHeadElement = "misplaced-start-tag-for-head-element", e.nestedNoscriptInHead = "nested-noscript-in-head", e.eofInElementThatCanContainOnlyText = "eof-in-element-that-can-contain-only-text";
|
|
1885
|
-
})(
|
|
1885
|
+
})(I || (I = {}));
|
|
1886
1886
|
const ul = 65536;
|
|
1887
1887
|
class il {
|
|
1888
1888
|
constructor(t) {
|
|
@@ -1920,7 +1920,7 @@ class il {
|
|
|
1920
1920
|
return this.pos++, this._addGap(), rl(t, n);
|
|
1921
1921
|
} else if (!this.lastChunkWritten)
|
|
1922
1922
|
return this.endOfChunkHit = !0, m.EOF;
|
|
1923
|
-
return this._err(
|
|
1923
|
+
return this._err(I.surrogateInInputStream), t;
|
|
1924
1924
|
}
|
|
1925
1925
|
willDropParsedChunk() {
|
|
1926
1926
|
return this.pos > this.bufferWaterline;
|
|
@@ -1958,7 +1958,7 @@ class il {
|
|
|
1958
1958
|
return t === m.CARRIAGE_RETURN ? (this.isEol = !0, this.skipNextNewLine = !0, m.LINE_FEED) : t === m.LINE_FEED && (this.isEol = !0, this.skipNextNewLine) ? (this.line--, this.skipNextNewLine = !1, this._addGap(), this.advance()) : (this.skipNextNewLine = !1, aa(t) && (t = this._processSurrogate(t)), this.handler.onParseError === null || t > 31 && t < 127 || t === m.LINE_FEED || t === m.CARRIAGE_RETURN || t > 159 && t < 64976 || this._checkForProblematicCharacters(t), t);
|
|
1959
1959
|
}
|
|
1960
1960
|
_checkForProblematicCharacters(t) {
|
|
1961
|
-
sa(t) ? this._err(
|
|
1961
|
+
sa(t) ? this._err(I.controlCharacterInInputStream) : oa(t) && this._err(I.noncharacterInInputStream);
|
|
1962
1962
|
}
|
|
1963
1963
|
retreat(t) {
|
|
1964
1964
|
for (this.pos -= t; this.pos < this.lastGapPos; )
|
|
@@ -2294,10 +2294,10 @@ var nt;
|
|
|
2294
2294
|
(function(e) {
|
|
2295
2295
|
e.TYPE = "type", e.ACTION = "action", e.ENCODING = "encoding", e.PROMPT = "prompt", e.NAME = "name", e.COLOR = "color", e.FACE = "face", e.SIZE = "size";
|
|
2296
2296
|
})(nt || (nt = {}));
|
|
2297
|
-
var
|
|
2297
|
+
var Ie;
|
|
2298
2298
|
(function(e) {
|
|
2299
2299
|
e.NO_QUIRKS = "no-quirks", e.QUIRKS = "quirks", e.LIMITED_QUIRKS = "limited-quirks";
|
|
2300
|
-
})(
|
|
2300
|
+
})(Ie || (Ie = {}));
|
|
2301
2301
|
var _;
|
|
2302
2302
|
(function(e) {
|
|
2303
2303
|
e.A = "a", e.ADDRESS = "address", e.ANNOTATION_XML = "annotation-xml", e.APPLET = "applet", e.AREA = "area", e.ARTICLE = "article", e.ASIDE = "aside", e.B = "b", e.BASE = "base", e.BASEFONT = "basefont", e.BGSOUND = "bgsound", e.BIG = "big", e.BLOCKQUOTE = "blockquote", e.BODY = "body", e.BR = "br", e.BUTTON = "button", e.CAPTION = "caption", e.CENTER = "center", e.CODE = "code", e.COL = "col", e.COLGROUP = "colgroup", e.DD = "dd", e.DESC = "desc", e.DETAILS = "details", e.DIALOG = "dialog", e.DIR = "dir", e.DIV = "div", e.DL = "dl", e.DT = "dt", e.EM = "em", e.EMBED = "embed", e.FIELDSET = "fieldset", e.FIGCAPTION = "figcaption", e.FIGURE = "figure", e.FONT = "font", e.FOOTER = "footer", e.FOREIGN_OBJECT = "foreignObject", e.FORM = "form", e.FRAME = "frame", e.FRAMESET = "frameset", e.H1 = "h1", e.H2 = "h2", e.H3 = "h3", e.H4 = "h4", e.H5 = "h5", e.H6 = "h6", e.HEAD = "head", e.HEADER = "header", e.HGROUP = "hgroup", e.HR = "hr", e.HTML = "html", e.I = "i", e.IMG = "img", e.IMAGE = "image", e.INPUT = "input", e.IFRAME = "iframe", e.KEYGEN = "keygen", e.LABEL = "label", e.LI = "li", e.LINK = "link", e.LISTING = "listing", e.MAIN = "main", e.MALIGNMARK = "malignmark", e.MARQUEE = "marquee", e.MATH = "math", e.MENU = "menu", e.META = "meta", e.MGLYPH = "mglyph", e.MI = "mi", e.MO = "mo", e.MN = "mn", e.MS = "ms", e.MTEXT = "mtext", e.NAV = "nav", e.NOBR = "nobr", e.NOFRAMES = "noframes", e.NOEMBED = "noembed", e.NOSCRIPT = "noscript", e.OBJECT = "object", e.OL = "ol", e.OPTGROUP = "optgroup", e.OPTION = "option", e.P = "p", e.PARAM = "param", e.PLAINTEXT = "plaintext", e.PRE = "pre", e.RB = "rb", e.RP = "rp", e.RT = "rt", e.RTC = "rtc", e.RUBY = "ruby", e.S = "s", e.SCRIPT = "script", e.SEARCH = "search", e.SECTION = "section", e.SELECT = "select", e.SOURCE = "source", e.SMALL = "small", e.SPAN = "span", e.STRIKE = "strike", e.STRONG = "strong", e.STYLE = "style", e.SUB = "sub", e.SUMMARY = "summary", e.SUP = "sup", e.TABLE = "table", e.TBODY = "tbody", e.TEMPLATE = "template", e.TEXTAREA = "textarea", e.TFOOT = "tfoot", e.TD = "td", e.TH = "th", e.THEAD = "thead", e.TITLE = "title", e.TR = "tr", e.TRACK = "track", e.TT = "tt", e.U = "u", e.UL = "ul", e.SVG = "svg", e.VAR = "var", e.WBR = "wbr", e.XMP = "xmp";
|
|
@@ -2431,7 +2431,7 @@ const pl = /* @__PURE__ */ new Map([
|
|
|
2431
2431
|
[_.WBR, s.WBR],
|
|
2432
2432
|
[_.XMP, s.XMP]
|
|
2433
2433
|
]);
|
|
2434
|
-
function
|
|
2434
|
+
function It(e) {
|
|
2435
2435
|
var t;
|
|
2436
2436
|
return (t = pl.get(e)) !== null && t !== void 0 ? t : s.UNKNOWN;
|
|
2437
2437
|
}
|
|
@@ -2563,7 +2563,7 @@ function yu(e) {
|
|
|
2563
2563
|
return da(e) || e === m.SOLIDUS || e === m.GREATER_THAN_SIGN;
|
|
2564
2564
|
}
|
|
2565
2565
|
function bl(e) {
|
|
2566
|
-
return e === m.NULL ?
|
|
2566
|
+
return e === m.NULL ? I.nullCharacterReference : e > 1114111 ? I.characterReferenceOutsideUnicodeRange : aa(e) ? I.surrogateCharacterReference : oa(e) ? I.noncharacterCharacterReference : sa(e) || e === m.CARRIAGE_RETURN ? I.controlCharacterReference : null;
|
|
2567
2567
|
}
|
|
2568
2568
|
class Al {
|
|
2569
2569
|
constructor(t, n) {
|
|
@@ -2571,10 +2571,10 @@ class Al {
|
|
|
2571
2571
|
this.preprocessor.pos = this.entityStartPos + u - 1, this._flushCodePointConsumedAsCharacterReference(r);
|
|
2572
2572
|
}, n.onParseError ? {
|
|
2573
2573
|
missingSemicolonAfterCharacterReference: () => {
|
|
2574
|
-
this._err(
|
|
2574
|
+
this._err(I.missingSemicolonAfterCharacterReference, 1);
|
|
2575
2575
|
},
|
|
2576
2576
|
absenceOfDigitsInNumericCharacterReference: (r) => {
|
|
2577
|
-
this._err(
|
|
2577
|
+
this._err(I.absenceOfDigitsInNumericCharacterReference, this.entityStartPos - this.preprocessor.pos + r);
|
|
2578
2578
|
},
|
|
2579
2579
|
validateNumericCharacterReference: (r) => {
|
|
2580
2580
|
const u = bl(r);
|
|
@@ -2702,7 +2702,7 @@ class Al {
|
|
|
2702
2702
|
u[this.currentAttr.name] = this.currentLocation, this._leaveAttrValue();
|
|
2703
2703
|
}
|
|
2704
2704
|
} else
|
|
2705
|
-
this._err(
|
|
2705
|
+
this._err(I.duplicateAttribute);
|
|
2706
2706
|
}
|
|
2707
2707
|
_leaveAttrValue() {
|
|
2708
2708
|
this.currentLocation && (this.currentLocation.endLine = this.preprocessor.line, this.currentLocation.endCol = this.preprocessor.col, this.currentLocation.endOffset = this.preprocessor.offset);
|
|
@@ -2713,7 +2713,7 @@ class Al {
|
|
|
2713
2713
|
}
|
|
2714
2714
|
emitCurrentTagToken() {
|
|
2715
2715
|
const t = this.currentToken;
|
|
2716
|
-
this.prepareToken(t), t.tagID =
|
|
2716
|
+
this.prepareToken(t), t.tagID = It(t.tagName), t.type === $.START_TAG ? (this.lastStartTagName = t.tagName, this.handler.onStartTag(t)) : (t.attrs.length > 0 && this._err(I.endTagWithAttributes), t.selfClosing && this._err(I.endTagWithTrailingSolidus), this.handler.onEndTag(t)), this.preprocessor.dropParsedChunk();
|
|
2717
2717
|
}
|
|
2718
2718
|
emitCurrentComment(t) {
|
|
2719
2719
|
this.prepareToken(t), this.handler.onComment(t), this.preprocessor.dropParsedChunk();
|
|
@@ -3094,7 +3094,7 @@ class Al {
|
|
|
3094
3094
|
break;
|
|
3095
3095
|
}
|
|
3096
3096
|
case m.NULL: {
|
|
3097
|
-
this._err(
|
|
3097
|
+
this._err(I.unexpectedNullCharacter), this._emitCodePoint(t);
|
|
3098
3098
|
break;
|
|
3099
3099
|
}
|
|
3100
3100
|
case m.EOF: {
|
|
@@ -3118,7 +3118,7 @@ class Al {
|
|
|
3118
3118
|
break;
|
|
3119
3119
|
}
|
|
3120
3120
|
case m.NULL: {
|
|
3121
|
-
this._err(
|
|
3121
|
+
this._err(I.unexpectedNullCharacter), this._emitChars(ie);
|
|
3122
3122
|
break;
|
|
3123
3123
|
}
|
|
3124
3124
|
case m.EOF: {
|
|
@@ -3138,7 +3138,7 @@ class Al {
|
|
|
3138
3138
|
break;
|
|
3139
3139
|
}
|
|
3140
3140
|
case m.NULL: {
|
|
3141
|
-
this._err(
|
|
3141
|
+
this._err(I.unexpectedNullCharacter), this._emitChars(ie);
|
|
3142
3142
|
break;
|
|
3143
3143
|
}
|
|
3144
3144
|
case m.EOF: {
|
|
@@ -3158,7 +3158,7 @@ class Al {
|
|
|
3158
3158
|
break;
|
|
3159
3159
|
}
|
|
3160
3160
|
case m.NULL: {
|
|
3161
|
-
this._err(
|
|
3161
|
+
this._err(I.unexpectedNullCharacter), this._emitChars(ie);
|
|
3162
3162
|
break;
|
|
3163
3163
|
}
|
|
3164
3164
|
case m.EOF: {
|
|
@@ -3174,7 +3174,7 @@ class Al {
|
|
|
3174
3174
|
_statePlaintext(t) {
|
|
3175
3175
|
switch (t) {
|
|
3176
3176
|
case m.NULL: {
|
|
3177
|
-
this._err(
|
|
3177
|
+
this._err(I.unexpectedNullCharacter), this._emitChars(ie);
|
|
3178
3178
|
break;
|
|
3179
3179
|
}
|
|
3180
3180
|
case m.EOF: {
|
|
@@ -3201,15 +3201,15 @@ class Al {
|
|
|
3201
3201
|
break;
|
|
3202
3202
|
}
|
|
3203
3203
|
case m.QUESTION_MARK: {
|
|
3204
|
-
this._err(
|
|
3204
|
+
this._err(I.unexpectedQuestionMarkInsteadOfTagName), this._createCommentToken(1), this.state = E.BOGUS_COMMENT, this._stateBogusComment(t);
|
|
3205
3205
|
break;
|
|
3206
3206
|
}
|
|
3207
3207
|
case m.EOF: {
|
|
3208
|
-
this._err(
|
|
3208
|
+
this._err(I.eofBeforeTagName), this._emitChars("<"), this._emitEOFToken();
|
|
3209
3209
|
break;
|
|
3210
3210
|
}
|
|
3211
3211
|
default:
|
|
3212
|
-
this._err(
|
|
3212
|
+
this._err(I.invalidFirstCharacterOfTagName), this._emitChars("<"), this.state = E.DATA, this._stateData(t);
|
|
3213
3213
|
}
|
|
3214
3214
|
}
|
|
3215
3215
|
// End tag open state
|
|
@@ -3220,15 +3220,15 @@ class Al {
|
|
|
3220
3220
|
else
|
|
3221
3221
|
switch (t) {
|
|
3222
3222
|
case m.GREATER_THAN_SIGN: {
|
|
3223
|
-
this._err(
|
|
3223
|
+
this._err(I.missingEndTagName), this.state = E.DATA;
|
|
3224
3224
|
break;
|
|
3225
3225
|
}
|
|
3226
3226
|
case m.EOF: {
|
|
3227
|
-
this._err(
|
|
3227
|
+
this._err(I.eofBeforeTagName), this._emitChars("</"), this._emitEOFToken();
|
|
3228
3228
|
break;
|
|
3229
3229
|
}
|
|
3230
3230
|
default:
|
|
3231
|
-
this._err(
|
|
3231
|
+
this._err(I.invalidFirstCharacterOfTagName), this._createCommentToken(2), this.state = E.BOGUS_COMMENT, this._stateBogusComment(t);
|
|
3232
3232
|
}
|
|
3233
3233
|
}
|
|
3234
3234
|
// Tag name state
|
|
@@ -3252,11 +3252,11 @@ class Al {
|
|
|
3252
3252
|
break;
|
|
3253
3253
|
}
|
|
3254
3254
|
case m.NULL: {
|
|
3255
|
-
this._err(
|
|
3255
|
+
this._err(I.unexpectedNullCharacter), n.tagName += ie;
|
|
3256
3256
|
break;
|
|
3257
3257
|
}
|
|
3258
3258
|
case m.EOF: {
|
|
3259
|
-
this._err(
|
|
3259
|
+
this._err(I.eofInTag), this._emitEOFToken();
|
|
3260
3260
|
break;
|
|
3261
3261
|
}
|
|
3262
3262
|
default:
|
|
@@ -3361,11 +3361,11 @@ class Al {
|
|
|
3361
3361
|
break;
|
|
3362
3362
|
}
|
|
3363
3363
|
case m.NULL: {
|
|
3364
|
-
this._err(
|
|
3364
|
+
this._err(I.unexpectedNullCharacter), this._emitChars(ie);
|
|
3365
3365
|
break;
|
|
3366
3366
|
}
|
|
3367
3367
|
case m.EOF: {
|
|
3368
|
-
this._err(
|
|
3368
|
+
this._err(I.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
|
|
3369
3369
|
break;
|
|
3370
3370
|
}
|
|
3371
3371
|
default:
|
|
@@ -3385,11 +3385,11 @@ class Al {
|
|
|
3385
3385
|
break;
|
|
3386
3386
|
}
|
|
3387
3387
|
case m.NULL: {
|
|
3388
|
-
this._err(
|
|
3388
|
+
this._err(I.unexpectedNullCharacter), this.state = E.SCRIPT_DATA_ESCAPED, this._emitChars(ie);
|
|
3389
3389
|
break;
|
|
3390
3390
|
}
|
|
3391
3391
|
case m.EOF: {
|
|
3392
|
-
this._err(
|
|
3392
|
+
this._err(I.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
|
|
3393
3393
|
break;
|
|
3394
3394
|
}
|
|
3395
3395
|
default:
|
|
@@ -3413,11 +3413,11 @@ class Al {
|
|
|
3413
3413
|
break;
|
|
3414
3414
|
}
|
|
3415
3415
|
case m.NULL: {
|
|
3416
|
-
this._err(
|
|
3416
|
+
this._err(I.unexpectedNullCharacter), this.state = E.SCRIPT_DATA_ESCAPED, this._emitChars(ie);
|
|
3417
3417
|
break;
|
|
3418
3418
|
}
|
|
3419
3419
|
case m.EOF: {
|
|
3420
|
-
this._err(
|
|
3420
|
+
this._err(I.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
|
|
3421
3421
|
break;
|
|
3422
3422
|
}
|
|
3423
3423
|
default:
|
|
@@ -3462,11 +3462,11 @@ class Al {
|
|
|
3462
3462
|
break;
|
|
3463
3463
|
}
|
|
3464
3464
|
case m.NULL: {
|
|
3465
|
-
this._err(
|
|
3465
|
+
this._err(I.unexpectedNullCharacter), this._emitChars(ie);
|
|
3466
3466
|
break;
|
|
3467
3467
|
}
|
|
3468
3468
|
case m.EOF: {
|
|
3469
|
-
this._err(
|
|
3469
|
+
this._err(I.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
|
|
3470
3470
|
break;
|
|
3471
3471
|
}
|
|
3472
3472
|
default:
|
|
@@ -3486,11 +3486,11 @@ class Al {
|
|
|
3486
3486
|
break;
|
|
3487
3487
|
}
|
|
3488
3488
|
case m.NULL: {
|
|
3489
|
-
this._err(
|
|
3489
|
+
this._err(I.unexpectedNullCharacter), this.state = E.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(ie);
|
|
3490
3490
|
break;
|
|
3491
3491
|
}
|
|
3492
3492
|
case m.EOF: {
|
|
3493
|
-
this._err(
|
|
3493
|
+
this._err(I.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
|
|
3494
3494
|
break;
|
|
3495
3495
|
}
|
|
3496
3496
|
default:
|
|
@@ -3514,11 +3514,11 @@ class Al {
|
|
|
3514
3514
|
break;
|
|
3515
3515
|
}
|
|
3516
3516
|
case m.NULL: {
|
|
3517
|
-
this._err(
|
|
3517
|
+
this._err(I.unexpectedNullCharacter), this.state = E.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(ie);
|
|
3518
3518
|
break;
|
|
3519
3519
|
}
|
|
3520
3520
|
case m.EOF: {
|
|
3521
|
-
this._err(
|
|
3521
|
+
this._err(I.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
|
|
3522
3522
|
break;
|
|
3523
3523
|
}
|
|
3524
3524
|
default:
|
|
@@ -3556,7 +3556,7 @@ class Al {
|
|
|
3556
3556
|
break;
|
|
3557
3557
|
}
|
|
3558
3558
|
case m.EQUALS_SIGN: {
|
|
3559
|
-
this._err(
|
|
3559
|
+
this._err(I.unexpectedEqualsSignBeforeAttributeName), this._createAttr("="), this.state = E.ATTRIBUTE_NAME;
|
|
3560
3560
|
break;
|
|
3561
3561
|
}
|
|
3562
3562
|
default:
|
|
@@ -3584,11 +3584,11 @@ class Al {
|
|
|
3584
3584
|
case m.QUOTATION_MARK:
|
|
3585
3585
|
case m.APOSTROPHE:
|
|
3586
3586
|
case m.LESS_THAN_SIGN: {
|
|
3587
|
-
this._err(
|
|
3587
|
+
this._err(I.unexpectedCharacterInAttributeName), this.currentAttr.name += String.fromCodePoint(t);
|
|
3588
3588
|
break;
|
|
3589
3589
|
}
|
|
3590
3590
|
case m.NULL: {
|
|
3591
|
-
this._err(
|
|
3591
|
+
this._err(I.unexpectedNullCharacter), this.currentAttr.name += ie;
|
|
3592
3592
|
break;
|
|
3593
3593
|
}
|
|
3594
3594
|
default:
|
|
@@ -3617,7 +3617,7 @@ class Al {
|
|
|
3617
3617
|
break;
|
|
3618
3618
|
}
|
|
3619
3619
|
case m.EOF: {
|
|
3620
|
-
this._err(
|
|
3620
|
+
this._err(I.eofInTag), this._emitEOFToken();
|
|
3621
3621
|
break;
|
|
3622
3622
|
}
|
|
3623
3623
|
default:
|
|
@@ -3642,7 +3642,7 @@ class Al {
|
|
|
3642
3642
|
break;
|
|
3643
3643
|
}
|
|
3644
3644
|
case m.GREATER_THAN_SIGN: {
|
|
3645
|
-
this._err(
|
|
3645
|
+
this._err(I.missingAttributeValue), this.state = E.DATA, this.emitCurrentTagToken();
|
|
3646
3646
|
break;
|
|
3647
3647
|
}
|
|
3648
3648
|
default:
|
|
@@ -3662,11 +3662,11 @@ class Al {
|
|
|
3662
3662
|
break;
|
|
3663
3663
|
}
|
|
3664
3664
|
case m.NULL: {
|
|
3665
|
-
this._err(
|
|
3665
|
+
this._err(I.unexpectedNullCharacter), this.currentAttr.value += ie;
|
|
3666
3666
|
break;
|
|
3667
3667
|
}
|
|
3668
3668
|
case m.EOF: {
|
|
3669
|
-
this._err(
|
|
3669
|
+
this._err(I.eofInTag), this._emitEOFToken();
|
|
3670
3670
|
break;
|
|
3671
3671
|
}
|
|
3672
3672
|
default:
|
|
@@ -3686,11 +3686,11 @@ class Al {
|
|
|
3686
3686
|
break;
|
|
3687
3687
|
}
|
|
3688
3688
|
case m.NULL: {
|
|
3689
|
-
this._err(
|
|
3689
|
+
this._err(I.unexpectedNullCharacter), this.currentAttr.value += ie;
|
|
3690
3690
|
break;
|
|
3691
3691
|
}
|
|
3692
3692
|
case m.EOF: {
|
|
3693
|
-
this._err(
|
|
3693
|
+
this._err(I.eofInTag), this._emitEOFToken();
|
|
3694
3694
|
break;
|
|
3695
3695
|
}
|
|
3696
3696
|
default:
|
|
@@ -3717,7 +3717,7 @@ class Al {
|
|
|
3717
3717
|
break;
|
|
3718
3718
|
}
|
|
3719
3719
|
case m.NULL: {
|
|
3720
|
-
this._err(
|
|
3720
|
+
this._err(I.unexpectedNullCharacter), this.currentAttr.value += ie;
|
|
3721
3721
|
break;
|
|
3722
3722
|
}
|
|
3723
3723
|
case m.QUOTATION_MARK:
|
|
@@ -3725,11 +3725,11 @@ class Al {
|
|
|
3725
3725
|
case m.LESS_THAN_SIGN:
|
|
3726
3726
|
case m.EQUALS_SIGN:
|
|
3727
3727
|
case m.GRAVE_ACCENT: {
|
|
3728
|
-
this._err(
|
|
3728
|
+
this._err(I.unexpectedCharacterInUnquotedAttributeValue), this.currentAttr.value += String.fromCodePoint(t);
|
|
3729
3729
|
break;
|
|
3730
3730
|
}
|
|
3731
3731
|
case m.EOF: {
|
|
3732
|
-
this._err(
|
|
3732
|
+
this._err(I.eofInTag), this._emitEOFToken();
|
|
3733
3733
|
break;
|
|
3734
3734
|
}
|
|
3735
3735
|
default:
|
|
@@ -3756,11 +3756,11 @@ class Al {
|
|
|
3756
3756
|
break;
|
|
3757
3757
|
}
|
|
3758
3758
|
case m.EOF: {
|
|
3759
|
-
this._err(
|
|
3759
|
+
this._err(I.eofInTag), this._emitEOFToken();
|
|
3760
3760
|
break;
|
|
3761
3761
|
}
|
|
3762
3762
|
default:
|
|
3763
|
-
this._err(
|
|
3763
|
+
this._err(I.missingWhitespaceBetweenAttributes), this.state = E.BEFORE_ATTRIBUTE_NAME, this._stateBeforeAttributeName(t);
|
|
3764
3764
|
}
|
|
3765
3765
|
}
|
|
3766
3766
|
// Self-closing start tag state
|
|
@@ -3773,11 +3773,11 @@ class Al {
|
|
|
3773
3773
|
break;
|
|
3774
3774
|
}
|
|
3775
3775
|
case m.EOF: {
|
|
3776
|
-
this._err(
|
|
3776
|
+
this._err(I.eofInTag), this._emitEOFToken();
|
|
3777
3777
|
break;
|
|
3778
3778
|
}
|
|
3779
3779
|
default:
|
|
3780
|
-
this._err(
|
|
3780
|
+
this._err(I.unexpectedSolidusInTag), this.state = E.BEFORE_ATTRIBUTE_NAME, this._stateBeforeAttributeName(t);
|
|
3781
3781
|
}
|
|
3782
3782
|
}
|
|
3783
3783
|
// Bogus comment state
|
|
@@ -3794,7 +3794,7 @@ class Al {
|
|
|
3794
3794
|
break;
|
|
3795
3795
|
}
|
|
3796
3796
|
case m.NULL: {
|
|
3797
|
-
this._err(
|
|
3797
|
+
this._err(I.unexpectedNullCharacter), n.data += ie;
|
|
3798
3798
|
break;
|
|
3799
3799
|
}
|
|
3800
3800
|
default:
|
|
@@ -3804,7 +3804,7 @@ class Al {
|
|
|
3804
3804
|
// Markup declaration open state
|
|
3805
3805
|
//------------------------------------------------------------------
|
|
3806
3806
|
_stateMarkupDeclarationOpen(t) {
|
|
3807
|
-
this._consumeSequenceIfMatch(Te.DASH_DASH, !0) ? (this._createCommentToken(Te.DASH_DASH.length + 1), this.state = E.COMMENT_START) : this._consumeSequenceIfMatch(Te.DOCTYPE, !1) ? (this.currentLocation = this.getCurrentLocation(Te.DOCTYPE.length + 1), this.state = E.DOCTYPE) : this._consumeSequenceIfMatch(Te.CDATA_START, !0) ? this.inForeignNode ? this.state = E.CDATA_SECTION : (this._err(
|
|
3807
|
+
this._consumeSequenceIfMatch(Te.DASH_DASH, !0) ? (this._createCommentToken(Te.DASH_DASH.length + 1), this.state = E.COMMENT_START) : this._consumeSequenceIfMatch(Te.DOCTYPE, !1) ? (this.currentLocation = this.getCurrentLocation(Te.DOCTYPE.length + 1), this.state = E.DOCTYPE) : this._consumeSequenceIfMatch(Te.CDATA_START, !0) ? this.inForeignNode ? this.state = E.CDATA_SECTION : (this._err(I.cdataInHtmlContent), this._createCommentToken(Te.CDATA_START.length + 1), this.currentToken.data = "[CDATA[", this.state = E.BOGUS_COMMENT) : this._ensureHibernation() || (this._err(I.incorrectlyOpenedComment), this._createCommentToken(2), this.state = E.BOGUS_COMMENT, this._stateBogusComment(t));
|
|
3808
3808
|
}
|
|
3809
3809
|
// Comment start state
|
|
3810
3810
|
//------------------------------------------------------------------
|
|
@@ -3815,7 +3815,7 @@ class Al {
|
|
|
3815
3815
|
break;
|
|
3816
3816
|
}
|
|
3817
3817
|
case m.GREATER_THAN_SIGN: {
|
|
3818
|
-
this._err(
|
|
3818
|
+
this._err(I.abruptClosingOfEmptyComment), this.state = E.DATA;
|
|
3819
3819
|
const n = this.currentToken;
|
|
3820
3820
|
this.emitCurrentComment(n);
|
|
3821
3821
|
break;
|
|
@@ -3834,11 +3834,11 @@ class Al {
|
|
|
3834
3834
|
break;
|
|
3835
3835
|
}
|
|
3836
3836
|
case m.GREATER_THAN_SIGN: {
|
|
3837
|
-
this._err(
|
|
3837
|
+
this._err(I.abruptClosingOfEmptyComment), this.state = E.DATA, this.emitCurrentComment(n);
|
|
3838
3838
|
break;
|
|
3839
3839
|
}
|
|
3840
3840
|
case m.EOF: {
|
|
3841
|
-
this._err(
|
|
3841
|
+
this._err(I.eofInComment), this.emitCurrentComment(n), this._emitEOFToken();
|
|
3842
3842
|
break;
|
|
3843
3843
|
}
|
|
3844
3844
|
default:
|
|
@@ -3859,11 +3859,11 @@ class Al {
|
|
|
3859
3859
|
break;
|
|
3860
3860
|
}
|
|
3861
3861
|
case m.NULL: {
|
|
3862
|
-
this._err(
|
|
3862
|
+
this._err(I.unexpectedNullCharacter), n.data += ie;
|
|
3863
3863
|
break;
|
|
3864
3864
|
}
|
|
3865
3865
|
case m.EOF: {
|
|
3866
|
-
this._err(
|
|
3866
|
+
this._err(I.eofInComment), this.emitCurrentComment(n), this._emitEOFToken();
|
|
3867
3867
|
break;
|
|
3868
3868
|
}
|
|
3869
3869
|
default:
|
|
@@ -3900,7 +3900,7 @@ class Al {
|
|
|
3900
3900
|
// Comment less-than sign bang dash dash state
|
|
3901
3901
|
//------------------------------------------------------------------
|
|
3902
3902
|
_stateCommentLessThanSignBangDashDash(t) {
|
|
3903
|
-
t !== m.GREATER_THAN_SIGN && t !== m.EOF && this._err(
|
|
3903
|
+
t !== m.GREATER_THAN_SIGN && t !== m.EOF && this._err(I.nestedComment), this.state = E.COMMENT_END, this._stateCommentEnd(t);
|
|
3904
3904
|
}
|
|
3905
3905
|
// Comment end dash state
|
|
3906
3906
|
//------------------------------------------------------------------
|
|
@@ -3912,7 +3912,7 @@ class Al {
|
|
|
3912
3912
|
break;
|
|
3913
3913
|
}
|
|
3914
3914
|
case m.EOF: {
|
|
3915
|
-
this._err(
|
|
3915
|
+
this._err(I.eofInComment), this.emitCurrentComment(n), this._emitEOFToken();
|
|
3916
3916
|
break;
|
|
3917
3917
|
}
|
|
3918
3918
|
default:
|
|
@@ -3937,7 +3937,7 @@ class Al {
|
|
|
3937
3937
|
break;
|
|
3938
3938
|
}
|
|
3939
3939
|
case m.EOF: {
|
|
3940
|
-
this._err(
|
|
3940
|
+
this._err(I.eofInComment), this.emitCurrentComment(n), this._emitEOFToken();
|
|
3941
3941
|
break;
|
|
3942
3942
|
}
|
|
3943
3943
|
default:
|
|
@@ -3954,11 +3954,11 @@ class Al {
|
|
|
3954
3954
|
break;
|
|
3955
3955
|
}
|
|
3956
3956
|
case m.GREATER_THAN_SIGN: {
|
|
3957
|
-
this._err(
|
|
3957
|
+
this._err(I.incorrectlyClosedComment), this.state = E.DATA, this.emitCurrentComment(n);
|
|
3958
3958
|
break;
|
|
3959
3959
|
}
|
|
3960
3960
|
case m.EOF: {
|
|
3961
|
-
this._err(
|
|
3961
|
+
this._err(I.eofInComment), this.emitCurrentComment(n), this._emitEOFToken();
|
|
3962
3962
|
break;
|
|
3963
3963
|
}
|
|
3964
3964
|
default:
|
|
@@ -3981,13 +3981,13 @@ class Al {
|
|
|
3981
3981
|
break;
|
|
3982
3982
|
}
|
|
3983
3983
|
case m.EOF: {
|
|
3984
|
-
this._err(
|
|
3984
|
+
this._err(I.eofInDoctype), this._createDoctypeToken(null);
|
|
3985
3985
|
const n = this.currentToken;
|
|
3986
3986
|
n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
|
|
3987
3987
|
break;
|
|
3988
3988
|
}
|
|
3989
3989
|
default:
|
|
3990
|
-
this._err(
|
|
3990
|
+
this._err(I.missingWhitespaceBeforeDoctypeName), this.state = E.BEFORE_DOCTYPE_NAME, this._stateBeforeDoctypeName(t);
|
|
3991
3991
|
}
|
|
3992
3992
|
}
|
|
3993
3993
|
// Before DOCTYPE name state
|
|
@@ -4003,17 +4003,17 @@ class Al {
|
|
|
4003
4003
|
case m.FORM_FEED:
|
|
4004
4004
|
break;
|
|
4005
4005
|
case m.NULL: {
|
|
4006
|
-
this._err(
|
|
4006
|
+
this._err(I.unexpectedNullCharacter), this._createDoctypeToken(ie), this.state = E.DOCTYPE_NAME;
|
|
4007
4007
|
break;
|
|
4008
4008
|
}
|
|
4009
4009
|
case m.GREATER_THAN_SIGN: {
|
|
4010
|
-
this._err(
|
|
4010
|
+
this._err(I.missingDoctypeName), this._createDoctypeToken(null);
|
|
4011
4011
|
const n = this.currentToken;
|
|
4012
4012
|
n.forceQuirks = !0, this.emitCurrentDoctype(n), this.state = E.DATA;
|
|
4013
4013
|
break;
|
|
4014
4014
|
}
|
|
4015
4015
|
case m.EOF: {
|
|
4016
|
-
this._err(
|
|
4016
|
+
this._err(I.eofInDoctype), this._createDoctypeToken(null);
|
|
4017
4017
|
const n = this.currentToken;
|
|
4018
4018
|
n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
|
|
4019
4019
|
break;
|
|
@@ -4039,11 +4039,11 @@ class Al {
|
|
|
4039
4039
|
break;
|
|
4040
4040
|
}
|
|
4041
4041
|
case m.NULL: {
|
|
4042
|
-
this._err(
|
|
4042
|
+
this._err(I.unexpectedNullCharacter), n.name += ie;
|
|
4043
4043
|
break;
|
|
4044
4044
|
}
|
|
4045
4045
|
case m.EOF: {
|
|
4046
|
-
this._err(
|
|
4046
|
+
this._err(I.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
|
|
4047
4047
|
break;
|
|
4048
4048
|
}
|
|
4049
4049
|
default:
|
|
@@ -4065,11 +4065,11 @@ class Al {
|
|
|
4065
4065
|
break;
|
|
4066
4066
|
}
|
|
4067
4067
|
case m.EOF: {
|
|
4068
|
-
this._err(
|
|
4068
|
+
this._err(I.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
|
|
4069
4069
|
break;
|
|
4070
4070
|
}
|
|
4071
4071
|
default:
|
|
4072
|
-
this._consumeSequenceIfMatch(Te.PUBLIC, !1) ? this.state = E.AFTER_DOCTYPE_PUBLIC_KEYWORD : this._consumeSequenceIfMatch(Te.SYSTEM, !1) ? this.state = E.AFTER_DOCTYPE_SYSTEM_KEYWORD : this._ensureHibernation() || (this._err(
|
|
4072
|
+
this._consumeSequenceIfMatch(Te.PUBLIC, !1) ? this.state = E.AFTER_DOCTYPE_PUBLIC_KEYWORD : this._consumeSequenceIfMatch(Te.SYSTEM, !1) ? this.state = E.AFTER_DOCTYPE_SYSTEM_KEYWORD : this._ensureHibernation() || (this._err(I.invalidCharacterSequenceAfterDoctypeName), n.forceQuirks = !0, this.state = E.BOGUS_DOCTYPE, this._stateBogusDoctype(t));
|
|
4073
4073
|
}
|
|
4074
4074
|
}
|
|
4075
4075
|
// After DOCTYPE public keyword state
|
|
@@ -4085,23 +4085,23 @@ class Al {
|
|
|
4085
4085
|
break;
|
|
4086
4086
|
}
|
|
4087
4087
|
case m.QUOTATION_MARK: {
|
|
4088
|
-
this._err(
|
|
4088
|
+
this._err(I.missingWhitespaceAfterDoctypePublicKeyword), n.publicId = "", this.state = E.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;
|
|
4089
4089
|
break;
|
|
4090
4090
|
}
|
|
4091
4091
|
case m.APOSTROPHE: {
|
|
4092
|
-
this._err(
|
|
4092
|
+
this._err(I.missingWhitespaceAfterDoctypePublicKeyword), n.publicId = "", this.state = E.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;
|
|
4093
4093
|
break;
|
|
4094
4094
|
}
|
|
4095
4095
|
case m.GREATER_THAN_SIGN: {
|
|
4096
|
-
this._err(
|
|
4096
|
+
this._err(I.missingDoctypePublicIdentifier), n.forceQuirks = !0, this.state = E.DATA, this.emitCurrentDoctype(n);
|
|
4097
4097
|
break;
|
|
4098
4098
|
}
|
|
4099
4099
|
case m.EOF: {
|
|
4100
|
-
this._err(
|
|
4100
|
+
this._err(I.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
|
|
4101
4101
|
break;
|
|
4102
4102
|
}
|
|
4103
4103
|
default:
|
|
4104
|
-
this._err(
|
|
4104
|
+
this._err(I.missingQuoteBeforeDoctypePublicIdentifier), n.forceQuirks = !0, this.state = E.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
|
|
4105
4105
|
}
|
|
4106
4106
|
}
|
|
4107
4107
|
// Before DOCTYPE public identifier state
|
|
@@ -4123,15 +4123,15 @@ class Al {
|
|
|
4123
4123
|
break;
|
|
4124
4124
|
}
|
|
4125
4125
|
case m.GREATER_THAN_SIGN: {
|
|
4126
|
-
this._err(
|
|
4126
|
+
this._err(I.missingDoctypePublicIdentifier), n.forceQuirks = !0, this.state = E.DATA, this.emitCurrentDoctype(n);
|
|
4127
4127
|
break;
|
|
4128
4128
|
}
|
|
4129
4129
|
case m.EOF: {
|
|
4130
|
-
this._err(
|
|
4130
|
+
this._err(I.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
|
|
4131
4131
|
break;
|
|
4132
4132
|
}
|
|
4133
4133
|
default:
|
|
4134
|
-
this._err(
|
|
4134
|
+
this._err(I.missingQuoteBeforeDoctypePublicIdentifier), n.forceQuirks = !0, this.state = E.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
|
|
4135
4135
|
}
|
|
4136
4136
|
}
|
|
4137
4137
|
// DOCTYPE public identifier (double-quoted) state
|
|
@@ -4144,15 +4144,15 @@ class Al {
|
|
|
4144
4144
|
break;
|
|
4145
4145
|
}
|
|
4146
4146
|
case m.NULL: {
|
|
4147
|
-
this._err(
|
|
4147
|
+
this._err(I.unexpectedNullCharacter), n.publicId += ie;
|
|
4148
4148
|
break;
|
|
4149
4149
|
}
|
|
4150
4150
|
case m.GREATER_THAN_SIGN: {
|
|
4151
|
-
this._err(
|
|
4151
|
+
this._err(I.abruptDoctypePublicIdentifier), n.forceQuirks = !0, this.emitCurrentDoctype(n), this.state = E.DATA;
|
|
4152
4152
|
break;
|
|
4153
4153
|
}
|
|
4154
4154
|
case m.EOF: {
|
|
4155
|
-
this._err(
|
|
4155
|
+
this._err(I.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
|
|
4156
4156
|
break;
|
|
4157
4157
|
}
|
|
4158
4158
|
default:
|
|
@@ -4169,15 +4169,15 @@ class Al {
|
|
|
4169
4169
|
break;
|
|
4170
4170
|
}
|
|
4171
4171
|
case m.NULL: {
|
|
4172
|
-
this._err(
|
|
4172
|
+
this._err(I.unexpectedNullCharacter), n.publicId += ie;
|
|
4173
4173
|
break;
|
|
4174
4174
|
}
|
|
4175
4175
|
case m.GREATER_THAN_SIGN: {
|
|
4176
|
-
this._err(
|
|
4176
|
+
this._err(I.abruptDoctypePublicIdentifier), n.forceQuirks = !0, this.emitCurrentDoctype(n), this.state = E.DATA;
|
|
4177
4177
|
break;
|
|
4178
4178
|
}
|
|
4179
4179
|
case m.EOF: {
|
|
4180
|
-
this._err(
|
|
4180
|
+
this._err(I.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
|
|
4181
4181
|
break;
|
|
4182
4182
|
}
|
|
4183
4183
|
default:
|
|
@@ -4201,19 +4201,19 @@ class Al {
|
|
|
4201
4201
|
break;
|
|
4202
4202
|
}
|
|
4203
4203
|
case m.QUOTATION_MARK: {
|
|
4204
|
-
this._err(
|
|
4204
|
+
this._err(I.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers), n.systemId = "", this.state = E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
|
|
4205
4205
|
break;
|
|
4206
4206
|
}
|
|
4207
4207
|
case m.APOSTROPHE: {
|
|
4208
|
-
this._err(
|
|
4208
|
+
this._err(I.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers), n.systemId = "", this.state = E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
|
|
4209
4209
|
break;
|
|
4210
4210
|
}
|
|
4211
4211
|
case m.EOF: {
|
|
4212
|
-
this._err(
|
|
4212
|
+
this._err(I.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
|
|
4213
4213
|
break;
|
|
4214
4214
|
}
|
|
4215
4215
|
default:
|
|
4216
|
-
this._err(
|
|
4216
|
+
this._err(I.missingQuoteBeforeDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = E.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
|
|
4217
4217
|
}
|
|
4218
4218
|
}
|
|
4219
4219
|
// Between DOCTYPE public and system identifiers state
|
|
@@ -4239,11 +4239,11 @@ class Al {
|
|
|
4239
4239
|
break;
|
|
4240
4240
|
}
|
|
4241
4241
|
case m.EOF: {
|
|
4242
|
-
this._err(
|
|
4242
|
+
this._err(I.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
|
|
4243
4243
|
break;
|
|
4244
4244
|
}
|
|
4245
4245
|
default:
|
|
4246
|
-
this._err(
|
|
4246
|
+
this._err(I.missingQuoteBeforeDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = E.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
|
|
4247
4247
|
}
|
|
4248
4248
|
}
|
|
4249
4249
|
// After DOCTYPE system keyword state
|
|
@@ -4259,23 +4259,23 @@ class Al {
|
|
|
4259
4259
|
break;
|
|
4260
4260
|
}
|
|
4261
4261
|
case m.QUOTATION_MARK: {
|
|
4262
|
-
this._err(
|
|
4262
|
+
this._err(I.missingWhitespaceAfterDoctypeSystemKeyword), n.systemId = "", this.state = E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
|
|
4263
4263
|
break;
|
|
4264
4264
|
}
|
|
4265
4265
|
case m.APOSTROPHE: {
|
|
4266
|
-
this._err(
|
|
4266
|
+
this._err(I.missingWhitespaceAfterDoctypeSystemKeyword), n.systemId = "", this.state = E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
|
|
4267
4267
|
break;
|
|
4268
4268
|
}
|
|
4269
4269
|
case m.GREATER_THAN_SIGN: {
|
|
4270
|
-
this._err(
|
|
4270
|
+
this._err(I.missingDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = E.DATA, this.emitCurrentDoctype(n);
|
|
4271
4271
|
break;
|
|
4272
4272
|
}
|
|
4273
4273
|
case m.EOF: {
|
|
4274
|
-
this._err(
|
|
4274
|
+
this._err(I.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
|
|
4275
4275
|
break;
|
|
4276
4276
|
}
|
|
4277
4277
|
default:
|
|
4278
|
-
this._err(
|
|
4278
|
+
this._err(I.missingQuoteBeforeDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = E.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
|
|
4279
4279
|
}
|
|
4280
4280
|
}
|
|
4281
4281
|
// Before DOCTYPE system identifier state
|
|
@@ -4297,15 +4297,15 @@ class Al {
|
|
|
4297
4297
|
break;
|
|
4298
4298
|
}
|
|
4299
4299
|
case m.GREATER_THAN_SIGN: {
|
|
4300
|
-
this._err(
|
|
4300
|
+
this._err(I.missingDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = E.DATA, this.emitCurrentDoctype(n);
|
|
4301
4301
|
break;
|
|
4302
4302
|
}
|
|
4303
4303
|
case m.EOF: {
|
|
4304
|
-
this._err(
|
|
4304
|
+
this._err(I.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
|
|
4305
4305
|
break;
|
|
4306
4306
|
}
|
|
4307
4307
|
default:
|
|
4308
|
-
this._err(
|
|
4308
|
+
this._err(I.missingQuoteBeforeDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = E.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
|
|
4309
4309
|
}
|
|
4310
4310
|
}
|
|
4311
4311
|
// DOCTYPE system identifier (double-quoted) state
|
|
@@ -4318,15 +4318,15 @@ class Al {
|
|
|
4318
4318
|
break;
|
|
4319
4319
|
}
|
|
4320
4320
|
case m.NULL: {
|
|
4321
|
-
this._err(
|
|
4321
|
+
this._err(I.unexpectedNullCharacter), n.systemId += ie;
|
|
4322
4322
|
break;
|
|
4323
4323
|
}
|
|
4324
4324
|
case m.GREATER_THAN_SIGN: {
|
|
4325
|
-
this._err(
|
|
4325
|
+
this._err(I.abruptDoctypeSystemIdentifier), n.forceQuirks = !0, this.emitCurrentDoctype(n), this.state = E.DATA;
|
|
4326
4326
|
break;
|
|
4327
4327
|
}
|
|
4328
4328
|
case m.EOF: {
|
|
4329
|
-
this._err(
|
|
4329
|
+
this._err(I.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
|
|
4330
4330
|
break;
|
|
4331
4331
|
}
|
|
4332
4332
|
default:
|
|
@@ -4343,15 +4343,15 @@ class Al {
|
|
|
4343
4343
|
break;
|
|
4344
4344
|
}
|
|
4345
4345
|
case m.NULL: {
|
|
4346
|
-
this._err(
|
|
4346
|
+
this._err(I.unexpectedNullCharacter), n.systemId += ie;
|
|
4347
4347
|
break;
|
|
4348
4348
|
}
|
|
4349
4349
|
case m.GREATER_THAN_SIGN: {
|
|
4350
|
-
this._err(
|
|
4350
|
+
this._err(I.abruptDoctypeSystemIdentifier), n.forceQuirks = !0, this.emitCurrentDoctype(n), this.state = E.DATA;
|
|
4351
4351
|
break;
|
|
4352
4352
|
}
|
|
4353
4353
|
case m.EOF: {
|
|
4354
|
-
this._err(
|
|
4354
|
+
this._err(I.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
|
|
4355
4355
|
break;
|
|
4356
4356
|
}
|
|
4357
4357
|
default:
|
|
@@ -4373,11 +4373,11 @@ class Al {
|
|
|
4373
4373
|
break;
|
|
4374
4374
|
}
|
|
4375
4375
|
case m.EOF: {
|
|
4376
|
-
this._err(
|
|
4376
|
+
this._err(I.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
|
|
4377
4377
|
break;
|
|
4378
4378
|
}
|
|
4379
4379
|
default:
|
|
4380
|
-
this._err(
|
|
4380
|
+
this._err(I.unexpectedCharacterAfterDoctypeSystemIdentifier), this.state = E.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
|
|
4381
4381
|
}
|
|
4382
4382
|
}
|
|
4383
4383
|
// Bogus DOCTYPE state
|
|
@@ -4390,7 +4390,7 @@ class Al {
|
|
|
4390
4390
|
break;
|
|
4391
4391
|
}
|
|
4392
4392
|
case m.NULL: {
|
|
4393
|
-
this._err(
|
|
4393
|
+
this._err(I.unexpectedNullCharacter);
|
|
4394
4394
|
break;
|
|
4395
4395
|
}
|
|
4396
4396
|
case m.EOF: {
|
|
@@ -4408,7 +4408,7 @@ class Al {
|
|
|
4408
4408
|
break;
|
|
4409
4409
|
}
|
|
4410
4410
|
case m.EOF: {
|
|
4411
|
-
this._err(
|
|
4411
|
+
this._err(I.eofInCdata), this._emitEOFToken();
|
|
4412
4412
|
break;
|
|
4413
4413
|
}
|
|
4414
4414
|
default:
|
|
@@ -4452,7 +4452,7 @@ class Al {
|
|
|
4452
4452
|
// Ambiguos ampersand state
|
|
4453
4453
|
//------------------------------------------------------------------
|
|
4454
4454
|
_stateAmbiguousAmpersand(t) {
|
|
4455
|
-
ku(t) ? this._flushCodePointConsumedAsCharacterReference(t) : (t === m.SEMICOLON && this._err(
|
|
4455
|
+
ku(t) ? this._flushCodePointConsumedAsCharacterReference(t) : (t === m.SEMICOLON && this._err(I.unknownNamedCharacterReference), this.state = this.returnState, this._callState(t));
|
|
4456
4456
|
}
|
|
4457
4457
|
}
|
|
4458
4458
|
const ma = /* @__PURE__ */ new Set([s.DD, s.DT, s.LI, s.OPTGROUP, s.OPTION, s.P, s.RB, s.RP, s.RT, s.RTC]), Nu = /* @__PURE__ */ new Set([
|
|
@@ -4475,7 +4475,7 @@ const ma = /* @__PURE__ */ new Set([s.DD, s.DT, s.LI, s.OPTGROUP, s.OPTION, s.P,
|
|
|
4475
4475
|
s.TD,
|
|
4476
4476
|
s.TEMPLATE,
|
|
4477
4477
|
s.TH
|
|
4478
|
-
]), _l = /* @__PURE__ */ new Set([...Cn, s.OL, s.UL]), Cl = /* @__PURE__ */ new Set([...Cn, s.BUTTON]), Ou = /* @__PURE__ */ new Set([s.ANNOTATION_XML, s.MI, s.MN, s.MO, s.MS, s.MTEXT]), Lu = /* @__PURE__ */ new Set([s.DESC, s.FOREIGN_OBJECT, s.TITLE]), Sl = /* @__PURE__ */ new Set([s.TR, s.TEMPLATE, s.HTML]),
|
|
4478
|
+
]), _l = /* @__PURE__ */ new Set([...Cn, s.OL, s.UL]), Cl = /* @__PURE__ */ new Set([...Cn, s.BUTTON]), Ou = /* @__PURE__ */ new Set([s.ANNOTATION_XML, s.MI, s.MN, s.MO, s.MS, s.MTEXT]), Lu = /* @__PURE__ */ new Set([s.DESC, s.FOREIGN_OBJECT, s.TITLE]), Sl = /* @__PURE__ */ new Set([s.TR, s.TEMPLATE, s.HTML]), Il = /* @__PURE__ */ new Set([s.TBODY, s.TFOOT, s.THEAD, s.TEMPLATE, s.HTML]), xl = /* @__PURE__ */ new Set([s.TABLE, s.TEMPLATE, s.HTML]), kl = /* @__PURE__ */ new Set([s.TD, s.TH]);
|
|
4479
4479
|
class yl {
|
|
4480
4480
|
get currentTmplContentOrNode() {
|
|
4481
4481
|
return this._isInTemplate() ? this.treeAdapter.getTemplateContent(this.current) : this.current;
|
|
@@ -4551,10 +4551,10 @@ class yl {
|
|
|
4551
4551
|
this.shortenToLength(r + 1);
|
|
4552
4552
|
}
|
|
4553
4553
|
clearBackToTableContext() {
|
|
4554
|
-
this.clearBackTo(
|
|
4554
|
+
this.clearBackTo(xl, R.HTML);
|
|
4555
4555
|
}
|
|
4556
4556
|
clearBackToTableBodyContext() {
|
|
4557
|
-
this.clearBackTo(
|
|
4557
|
+
this.clearBackTo(Il, R.HTML);
|
|
4558
4558
|
}
|
|
4559
4559
|
clearBackToTableRowContext() {
|
|
4560
4560
|
this.clearBackTo(Sl, R.HTML);
|
|
@@ -4777,7 +4777,7 @@ const We = {
|
|
|
4777
4777
|
createDocument() {
|
|
4778
4778
|
return {
|
|
4779
4779
|
nodeName: "#document",
|
|
4780
|
-
mode:
|
|
4780
|
+
mode: Ie.NO_QUIRKS,
|
|
4781
4781
|
childNodes: []
|
|
4782
4782
|
};
|
|
4783
4783
|
},
|
|
@@ -5006,21 +5006,21 @@ function wl(e) {
|
|
|
5006
5006
|
}
|
|
5007
5007
|
function Ml(e) {
|
|
5008
5008
|
if (e.name !== pa)
|
|
5009
|
-
return
|
|
5009
|
+
return Ie.QUIRKS;
|
|
5010
5010
|
const { systemId: t } = e;
|
|
5011
5011
|
if (t && t.toLowerCase() === Ll)
|
|
5012
|
-
return
|
|
5012
|
+
return Ie.QUIRKS;
|
|
5013
5013
|
let { publicId: n } = e;
|
|
5014
5014
|
if (n !== null) {
|
|
5015
5015
|
if (n = n.toLowerCase(), Dl.has(n))
|
|
5016
|
-
return
|
|
5016
|
+
return Ie.QUIRKS;
|
|
5017
5017
|
let r = t === null ? Rl : Ea;
|
|
5018
5018
|
if (Du(n, r))
|
|
5019
|
-
return
|
|
5019
|
+
return Ie.QUIRKS;
|
|
5020
5020
|
if (r = t === null ? ga : Pl, Du(n, r))
|
|
5021
|
-
return
|
|
5021
|
+
return Ie.LIMITED_QUIRKS;
|
|
5022
5022
|
}
|
|
5023
|
-
return
|
|
5023
|
+
return Ie.NO_QUIRKS;
|
|
5024
5024
|
}
|
|
5025
5025
|
const Pu = {
|
|
5026
5026
|
TEXT_HTML: "text/html",
|
|
@@ -5204,7 +5204,7 @@ function Hr(e) {
|
|
|
5204
5204
|
}
|
|
5205
5205
|
function ql(e) {
|
|
5206
5206
|
const t = vl.get(e.tagName);
|
|
5207
|
-
t != null && (e.tagName = t, e.tagID =
|
|
5207
|
+
t != null && (e.tagName = t, e.tagID = It(e.tagName));
|
|
5208
5208
|
}
|
|
5209
5209
|
function jl(e, t) {
|
|
5210
5210
|
return t === R.MATHML && (e === s.MI || e === s.MO || e === s.MN || e === s.MS || e === s.MTEXT);
|
|
@@ -5245,7 +5245,7 @@ class Mu {
|
|
|
5245
5245
|
this.fragmentContext = r, this.scriptHandler = u, this.currentToken = null, this.stopped = !1, this.insertionMode = g.INITIAL, this.originalInsertionMode = g.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 = {
|
|
5246
5246
|
...wu,
|
|
5247
5247
|
...t
|
|
5248
|
-
}, 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 Al(this.options, this), this.activeFormattingElements = new Nl(this.treeAdapter), this.fragmentContextID = r ?
|
|
5248
|
+
}, 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 Al(this.options, this), this.activeFormattingElements = new Nl(this.treeAdapter), this.fragmentContextID = r ? It(this.treeAdapter.getTagName(r)) : s.UNKNOWN, this._setContextModes(r ?? this.document, this.fragmentContextID), this.openElements = new yl(this.document, this.treeAdapter, this);
|
|
5249
5249
|
}
|
|
5250
5250
|
// API
|
|
5251
5251
|
static parse(t, n) {
|
|
@@ -5697,7 +5697,7 @@ class Mu {
|
|
|
5697
5697
|
break;
|
|
5698
5698
|
}
|
|
5699
5699
|
case g.AFTER_BODY: {
|
|
5700
|
-
|
|
5700
|
+
In(this, t);
|
|
5701
5701
|
break;
|
|
5702
5702
|
}
|
|
5703
5703
|
case g.AFTER_AFTER_BODY: {
|
|
@@ -5709,7 +5709,7 @@ class Mu {
|
|
|
5709
5709
|
/** @internal */
|
|
5710
5710
|
onNullCharacter(t) {
|
|
5711
5711
|
if (this.skipNextNewLine = !1, this.tokenizer.inForeignNode) {
|
|
5712
|
-
|
|
5712
|
+
x0(this, t);
|
|
5713
5713
|
return;
|
|
5714
5714
|
}
|
|
5715
5715
|
switch (this.insertionMode) {
|
|
@@ -5752,7 +5752,7 @@ class Mu {
|
|
|
5752
5752
|
break;
|
|
5753
5753
|
}
|
|
5754
5754
|
case g.AFTER_BODY: {
|
|
5755
|
-
|
|
5755
|
+
In(this, t);
|
|
5756
5756
|
break;
|
|
5757
5757
|
}
|
|
5758
5758
|
case g.AFTER_AFTER_BODY: {
|
|
@@ -5815,7 +5815,7 @@ class Mu {
|
|
|
5815
5815
|
case g.IN_HEAD:
|
|
5816
5816
|
case g.IN_HEAD_NO_SCRIPT:
|
|
5817
5817
|
case g.AFTER_HEAD: {
|
|
5818
|
-
this._err(t,
|
|
5818
|
+
this._err(t, I.misplacedDoctype);
|
|
5819
5819
|
break;
|
|
5820
5820
|
}
|
|
5821
5821
|
case g.IN_TABLE_TEXT: {
|
|
@@ -5826,7 +5826,7 @@ class Mu {
|
|
|
5826
5826
|
}
|
|
5827
5827
|
/** @internal */
|
|
5828
5828
|
onStartTag(t) {
|
|
5829
|
-
this.skipNextNewLine = !1, this.currentToken = t, this._processStartTag(t), t.selfClosing && !t.ackSelfClosing && this._err(t,
|
|
5829
|
+
this.skipNextNewLine = !1, this.currentToken = t, this._processStartTag(t), t.selfClosing && !t.ackSelfClosing && this._err(t, I.nonVoidHtmlElementStartTagWithTrailingSolidus);
|
|
5830
5830
|
}
|
|
5831
5831
|
/**
|
|
5832
5832
|
* Processes a given start tag.
|
|
@@ -5930,7 +5930,7 @@ class Mu {
|
|
|
5930
5930
|
break;
|
|
5931
5931
|
}
|
|
5932
5932
|
case g.AFTER_AFTER_FRAMESET: {
|
|
5933
|
-
|
|
5933
|
+
I0(this, t);
|
|
5934
5934
|
break;
|
|
5935
5935
|
}
|
|
5936
5936
|
}
|
|
@@ -6142,7 +6142,7 @@ class Mu {
|
|
|
6142
6142
|
}
|
|
6143
6143
|
function Kl(e, t) {
|
|
6144
6144
|
let n = e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);
|
|
6145
|
-
return n ? e.openElements.contains(n.element) ? e.openElements.hasInScope(t.tagID) || (n = null) : (e.activeFormattingElements.removeEntry(n), n = null) :
|
|
6145
|
+
return n ? e.openElements.contains(n.element) ? e.openElements.hasInScope(t.tagID) || (n = null) : (e.activeFormattingElements.removeEntry(n), n = null) : xa(e, t), n;
|
|
6146
6146
|
}
|
|
6147
6147
|
function Jl(e, t) {
|
|
6148
6148
|
let n = null, r = e.openElements.stackTop;
|
|
@@ -6168,7 +6168,7 @@ function ec(e, t) {
|
|
|
6168
6168
|
return e.openElements.replace(t.element, r), t.element = r, r;
|
|
6169
6169
|
}
|
|
6170
6170
|
function tc(e, t, n) {
|
|
6171
|
-
const r = e.treeAdapter.getTagName(t), u =
|
|
6171
|
+
const r = e.treeAdapter.getTagName(t), u = It(r);
|
|
6172
6172
|
if (e._isElementCausesFosterParenting(u))
|
|
6173
6173
|
e._fosterParentElement(n);
|
|
6174
6174
|
else {
|
|
@@ -6218,11 +6218,11 @@ function vr(e, t) {
|
|
|
6218
6218
|
}
|
|
6219
6219
|
function ic(e, t) {
|
|
6220
6220
|
e._setDocumentType(t);
|
|
6221
|
-
const n = t.forceQuirks ?
|
|
6222
|
-
wl(t) || e._err(t,
|
|
6221
|
+
const n = t.forceQuirks ? Ie.QUIRKS : Ml(t);
|
|
6222
|
+
wl(t) || e._err(t, I.nonConformingDoctype), e.treeAdapter.setDocumentMode(e.document, n), e.insertionMode = g.BEFORE_HTML;
|
|
6223
6223
|
}
|
|
6224
6224
|
function Dt(e, t) {
|
|
6225
|
-
e._err(t,
|
|
6225
|
+
e._err(t, I.missingDoctype, !0), e.treeAdapter.setDocumentMode(e.document, Ie.QUIRKS), e.insertionMode = g.BEFORE_HTML, e._processToken(t);
|
|
6226
6226
|
}
|
|
6227
6227
|
function ac(e, t) {
|
|
6228
6228
|
t.tagID === s.HTML ? (e._insertElement(t, R.HTML), e.insertionMode = g.BEFORE_HEAD) : zt(e, t);
|
|
@@ -6250,7 +6250,7 @@ function oc(e, t) {
|
|
|
6250
6250
|
}
|
|
6251
6251
|
function lc(e, t) {
|
|
6252
6252
|
const n = t.tagID;
|
|
6253
|
-
n === s.HEAD || n === s.BODY || n === s.HTML || n === s.BR ? Yt(e, t) : e._err(t,
|
|
6253
|
+
n === s.HEAD || n === s.BODY || n === s.HTML || n === s.BR ? Yt(e, t) : e._err(t, I.endTagWithoutMatchingOpenElement);
|
|
6254
6254
|
}
|
|
6255
6255
|
function Yt(e, t) {
|
|
6256
6256
|
e._insertFakeElement(_.HEAD, s.HEAD), e.headElement = e.openElements.current, e.insertionMode = g.IN_HEAD, e._processToken(t);
|
|
@@ -6291,7 +6291,7 @@ function Re(e, t) {
|
|
|
6291
6291
|
break;
|
|
6292
6292
|
}
|
|
6293
6293
|
case s.HEAD: {
|
|
6294
|
-
e._err(t,
|
|
6294
|
+
e._err(t, I.misplacedStartTagForHeadElement);
|
|
6295
6295
|
break;
|
|
6296
6296
|
}
|
|
6297
6297
|
default:
|
|
@@ -6315,11 +6315,11 @@ function cc(e, t) {
|
|
|
6315
6315
|
break;
|
|
6316
6316
|
}
|
|
6317
6317
|
default:
|
|
6318
|
-
e._err(t,
|
|
6318
|
+
e._err(t, I.endTagWithoutMatchingOpenElement);
|
|
6319
6319
|
}
|
|
6320
6320
|
}
|
|
6321
6321
|
function it(e, t) {
|
|
6322
|
-
e.openElements.tmplCount > 0 ? (e.openElements.generateImpliedEndTagsThoroughly(), e.openElements.currentTagId !== s.TEMPLATE && e._err(t,
|
|
6322
|
+
e.openElements.tmplCount > 0 ? (e.openElements.generateImpliedEndTagsThoroughly(), e.openElements.currentTagId !== s.TEMPLATE && e._err(t, I.closingOfElementWithOpenChildElements), e.openElements.popUntilTagNamePopped(s.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode()) : e._err(t, I.endTagWithoutMatchingOpenElement);
|
|
6323
6323
|
}
|
|
6324
6324
|
function qt(e, t) {
|
|
6325
6325
|
e.openElements.pop(), e.insertionMode = g.AFTER_HEAD, e._processToken(t);
|
|
@@ -6341,7 +6341,7 @@ function fc(e, t) {
|
|
|
6341
6341
|
break;
|
|
6342
6342
|
}
|
|
6343
6343
|
case s.NOSCRIPT: {
|
|
6344
|
-
e._err(t,
|
|
6344
|
+
e._err(t, I.nestedNoscriptInHead);
|
|
6345
6345
|
break;
|
|
6346
6346
|
}
|
|
6347
6347
|
default:
|
|
@@ -6359,11 +6359,11 @@ function hc(e, t) {
|
|
|
6359
6359
|
break;
|
|
6360
6360
|
}
|
|
6361
6361
|
default:
|
|
6362
|
-
e._err(t,
|
|
6362
|
+
e._err(t, I.endTagWithoutMatchingOpenElement);
|
|
6363
6363
|
}
|
|
6364
6364
|
}
|
|
6365
6365
|
function jt(e, t) {
|
|
6366
|
-
const n = t.type === $.EOF ?
|
|
6366
|
+
const n = t.type === $.EOF ? I.openElementsLeftAfterEof : I.disallowedContentInNoscriptInHead;
|
|
6367
6367
|
e._err(t, n), e.openElements.pop(), e.insertionMode = g.IN_HEAD, e._processToken(t);
|
|
6368
6368
|
}
|
|
6369
6369
|
function dc(e, t) {
|
|
@@ -6390,11 +6390,11 @@ function dc(e, t) {
|
|
|
6390
6390
|
case s.STYLE:
|
|
6391
6391
|
case s.TEMPLATE:
|
|
6392
6392
|
case s.TITLE: {
|
|
6393
|
-
e._err(t,
|
|
6393
|
+
e._err(t, I.abandonedHeadElementChild), e.openElements.push(e.headElement, s.HEAD), Re(e, t), e.openElements.remove(e.headElement);
|
|
6394
6394
|
break;
|
|
6395
6395
|
}
|
|
6396
6396
|
case s.HEAD: {
|
|
6397
|
-
e._err(t,
|
|
6397
|
+
e._err(t, I.misplacedStartTagForHeadElement);
|
|
6398
6398
|
break;
|
|
6399
6399
|
}
|
|
6400
6400
|
default:
|
|
@@ -6414,7 +6414,7 @@ function mc(e, t) {
|
|
|
6414
6414
|
break;
|
|
6415
6415
|
}
|
|
6416
6416
|
default:
|
|
6417
|
-
e._err(t,
|
|
6417
|
+
e._err(t, I.endTagWithoutMatchingOpenElement);
|
|
6418
6418
|
}
|
|
6419
6419
|
}
|
|
6420
6420
|
function Vt(e, t) {
|
|
@@ -6495,10 +6495,10 @@ function Cc(e, t) {
|
|
|
6495
6495
|
function Sc(e, t) {
|
|
6496
6496
|
e.openElements.hasInButtonScope(s.P) && e._closePElement(), e._insertElement(t, R.HTML), e.tokenizer.state = ae.PLAINTEXT;
|
|
6497
6497
|
}
|
|
6498
|
-
function
|
|
6498
|
+
function Ic(e, t) {
|
|
6499
6499
|
e.openElements.hasInScope(s.BUTTON) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(s.BUTTON)), e._reconstructActiveFormattingElements(), e._insertElement(t, R.HTML), e.framesetOk = !1;
|
|
6500
6500
|
}
|
|
6501
|
-
function
|
|
6501
|
+
function xc(e, t) {
|
|
6502
6502
|
const n = e.activeFormattingElements.getElementEntryInScopeWithTagName(_.A);
|
|
6503
6503
|
n && (Ur(e, t), e.openElements.remove(n.element), e.activeFormattingElements.removeEntry(n)), e._reconstructActiveFormattingElements(), e._insertElement(t, R.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
|
|
6504
6504
|
}
|
|
@@ -6512,17 +6512,17 @@ function Nc(e, t) {
|
|
|
6512
6512
|
e._reconstructActiveFormattingElements(), e._insertElement(t, R.HTML), e.activeFormattingElements.insertMarker(), e.framesetOk = !1;
|
|
6513
6513
|
}
|
|
6514
6514
|
function Oc(e, t) {
|
|
6515
|
-
e.treeAdapter.getDocumentMode(e.document) !==
|
|
6515
|
+
e.treeAdapter.getDocumentMode(e.document) !== Ie.QUIRKS && e.openElements.hasInButtonScope(s.P) && e._closePElement(), e._insertElement(t, R.HTML), e.framesetOk = !1, e.insertionMode = g.IN_TABLE;
|
|
6516
6516
|
}
|
|
6517
6517
|
function Sa(e, t) {
|
|
6518
6518
|
e._reconstructActiveFormattingElements(), e._appendElement(t, R.HTML), e.framesetOk = !1, t.ackSelfClosing = !0;
|
|
6519
6519
|
}
|
|
6520
|
-
function
|
|
6520
|
+
function Ia(e) {
|
|
6521
6521
|
const t = la(e, nt.TYPE);
|
|
6522
6522
|
return t != null && t.toLowerCase() === Gl;
|
|
6523
6523
|
}
|
|
6524
6524
|
function Lc(e, t) {
|
|
6525
|
-
e._reconstructActiveFormattingElements(), e._appendElement(t, R.HTML),
|
|
6525
|
+
e._reconstructActiveFormattingElements(), e._appendElement(t, R.HTML), Ia(t) || (e.framesetOk = !1), t.ackSelfClosing = !0;
|
|
6526
6526
|
}
|
|
6527
6527
|
function Rc(e, t) {
|
|
6528
6528
|
e._appendElement(t, R.HTML), t.ackSelfClosing = !0;
|
|
@@ -6584,7 +6584,7 @@ function pe(e, t) {
|
|
|
6584
6584
|
break;
|
|
6585
6585
|
}
|
|
6586
6586
|
case s.A: {
|
|
6587
|
-
|
|
6587
|
+
xc(e, t);
|
|
6588
6588
|
break;
|
|
6589
6589
|
}
|
|
6590
6590
|
case s.H1:
|
|
@@ -6717,7 +6717,7 @@ function pe(e, t) {
|
|
|
6717
6717
|
break;
|
|
6718
6718
|
}
|
|
6719
6719
|
case s.BUTTON: {
|
|
6720
|
-
|
|
6720
|
+
Ic(e, t);
|
|
6721
6721
|
break;
|
|
6722
6722
|
}
|
|
6723
6723
|
case s.APPLET:
|
|
@@ -6813,7 +6813,7 @@ function Kc(e, t) {
|
|
|
6813
6813
|
function Jc(e) {
|
|
6814
6814
|
e._reconstructActiveFormattingElements(), e._insertFakeElement(_.BR, s.BR), e.openElements.pop(), e.framesetOk = !1;
|
|
6815
6815
|
}
|
|
6816
|
-
function
|
|
6816
|
+
function xa(e, t) {
|
|
6817
6817
|
const n = t.tagName, r = t.tagID;
|
|
6818
6818
|
for (let u = e.openElements.stackTop; u > 0; u--) {
|
|
6819
6819
|
const a = e.openElements.items[u], i = e.openElements.tagIDs[u];
|
|
@@ -6923,7 +6923,7 @@ function Dn(e, t) {
|
|
|
6923
6923
|
break;
|
|
6924
6924
|
}
|
|
6925
6925
|
default:
|
|
6926
|
-
|
|
6926
|
+
xa(e, t);
|
|
6927
6927
|
}
|
|
6928
6928
|
}
|
|
6929
6929
|
function ka(e, t) {
|
|
@@ -6934,7 +6934,7 @@ function Zc(e, t) {
|
|
|
6934
6934
|
t.tagID === s.SCRIPT && ((n = e.scriptHandler) === null || n === void 0 || n.call(e, e.openElements.current)), e.openElements.pop(), e.insertionMode = e.originalInsertionMode;
|
|
6935
6935
|
}
|
|
6936
6936
|
function e0(e, t) {
|
|
6937
|
-
e._err(t,
|
|
6937
|
+
e._err(t, I.eofInElementThatCanContainOnlyText), e.openElements.pop(), e.insertionMode = e.originalInsertionMode, e.onEof(t);
|
|
6938
6938
|
}
|
|
6939
6939
|
function Wn(e, t) {
|
|
6940
6940
|
if (Aa.has(e.openElements.currentTagId))
|
|
@@ -6970,7 +6970,7 @@ function a0(e, t) {
|
|
|
6970
6970
|
e.openElements.hasInTableScope(s.TABLE) && (e.openElements.popUntilTagNamePopped(s.TABLE), e._resetInsertionMode(), e._processStartTag(t));
|
|
6971
6971
|
}
|
|
6972
6972
|
function s0(e, t) {
|
|
6973
|
-
|
|
6973
|
+
Ia(t) ? e._appendElement(t, R.HTML) : tn(e, t), t.ackSelfClosing = !0;
|
|
6974
6974
|
}
|
|
6975
6975
|
function o0(e, t) {
|
|
6976
6976
|
!e.formElement && e.openElements.tmplCount === 0 && (e._insertElement(t, R.HTML), e.formElement = e.openElements.current, e.openElements.pop());
|
|
@@ -7372,7 +7372,7 @@ function Pa(e, t) {
|
|
|
7372
7372
|
e.openElements.tmplCount > 0 ? (e.openElements.popUntilTagNamePopped(s.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode(), e.onEof(t)) : vr(e, t);
|
|
7373
7373
|
}
|
|
7374
7374
|
function T0(e, t) {
|
|
7375
|
-
t.tagID === s.HTML ? pe(e, t) :
|
|
7375
|
+
t.tagID === s.HTML ? pe(e, t) : In(e, t);
|
|
7376
7376
|
}
|
|
7377
7377
|
function wa(e, t) {
|
|
7378
7378
|
var n;
|
|
@@ -7383,9 +7383,9 @@ function wa(e, t) {
|
|
|
7383
7383
|
r && !(!((n = e.treeAdapter.getNodeSourceCodeLocation(r)) === null || n === void 0) && n.endTag) && e._setEndLocation(r, t);
|
|
7384
7384
|
}
|
|
7385
7385
|
} else
|
|
7386
|
-
|
|
7386
|
+
In(e, t);
|
|
7387
7387
|
}
|
|
7388
|
-
function
|
|
7388
|
+
function In(e, t) {
|
|
7389
7389
|
e.insertionMode = g.IN_BODY, Rn(e, t);
|
|
7390
7390
|
}
|
|
7391
7391
|
function b0(e, t) {
|
|
@@ -7432,7 +7432,7 @@ function S0(e, t) {
|
|
|
7432
7432
|
function En(e, t) {
|
|
7433
7433
|
e.insertionMode = g.IN_BODY, Rn(e, t);
|
|
7434
7434
|
}
|
|
7435
|
-
function
|
|
7435
|
+
function I0(e, t) {
|
|
7436
7436
|
switch (t.tagID) {
|
|
7437
7437
|
case s.HTML: {
|
|
7438
7438
|
pe(e, t);
|
|
@@ -7444,7 +7444,7 @@ function x0(e, t) {
|
|
|
7444
7444
|
}
|
|
7445
7445
|
}
|
|
7446
7446
|
}
|
|
7447
|
-
function
|
|
7447
|
+
function x0(e, t) {
|
|
7448
7448
|
t.chars = ie, e._insertCharacters(t);
|
|
7449
7449
|
}
|
|
7450
7450
|
function k0(e, t) {
|
|
@@ -7655,7 +7655,7 @@ function Ua(e, t) {
|
|
|
7655
7655
|
stitches: !1,
|
|
7656
7656
|
options: t || {}
|
|
7657
7657
|
};
|
|
7658
|
-
r(e, u),
|
|
7658
|
+
r(e, u), xt(u, Me());
|
|
7659
7659
|
const a = n ? u.parser.document : u.parser.getFragment(), i = zo(a, {
|
|
7660
7660
|
// To do: support `space`?
|
|
7661
7661
|
file: u.options.file
|
|
@@ -7691,7 +7691,7 @@ function Y0(e, t) {
|
|
|
7691
7691
|
chars: e.value,
|
|
7692
7692
|
location: rn(e)
|
|
7693
7693
|
};
|
|
7694
|
-
|
|
7694
|
+
xt(t, Me(e)), t.parser.currentToken = n, t.parser._processToken(t.parser.currentToken);
|
|
7695
7695
|
}
|
|
7696
7696
|
function q0(e, t) {
|
|
7697
7697
|
const n = {
|
|
@@ -7702,7 +7702,7 @@ function q0(e, t) {
|
|
|
7702
7702
|
systemId: "",
|
|
7703
7703
|
location: rn(e)
|
|
7704
7704
|
};
|
|
7705
|
-
|
|
7705
|
+
xt(t, Me(e)), t.parser.currentToken = n, t.parser._processToken(t.parser.currentToken);
|
|
7706
7706
|
}
|
|
7707
7707
|
function j0(e, t) {
|
|
7708
7708
|
t.stitches = !0;
|
|
@@ -7722,7 +7722,7 @@ function za(e, t) {
|
|
|
7722
7722
|
data: n,
|
|
7723
7723
|
location: rn(e)
|
|
7724
7724
|
};
|
|
7725
|
-
|
|
7725
|
+
xt(t, Me(e)), t.parser.currentToken = r, t.parser._processToken(t.parser.currentToken);
|
|
7726
7726
|
}
|
|
7727
7727
|
function V0(e, t) {
|
|
7728
7728
|
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, Ya(t, Me(e)), t.parser.tokenizer.write(
|
|
@@ -7747,7 +7747,7 @@ function W0(e, t) {
|
|
|
7747
7747
|
throw U0.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);
|
|
7748
7748
|
}
|
|
7749
7749
|
}
|
|
7750
|
-
function
|
|
7750
|
+
function xt(e, t) {
|
|
7751
7751
|
Ya(e, t);
|
|
7752
7752
|
const n = e.parser.tokenizer.currentCharacterToken;
|
|
7753
7753
|
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 = ae.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: "" };
|
|
@@ -7768,7 +7768,7 @@ function Ya(e, t) {
|
|
|
7768
7768
|
function G0(e, t) {
|
|
7769
7769
|
const n = e.tagName.toLowerCase();
|
|
7770
7770
|
if (t.parser.tokenizer.state === ae.PLAINTEXT) return;
|
|
7771
|
-
|
|
7771
|
+
xt(t, Me(e));
|
|
7772
7772
|
const r = t.parser.openElements.current;
|
|
7773
7773
|
let u = "namespaceURI" in r ? r.namespaceURI : tt.html;
|
|
7774
7774
|
u === tt.html && n === "svg" && (u = tt.svg);
|
|
@@ -7779,7 +7779,7 @@ function G0(e, t) {
|
|
|
7779
7779
|
), i = {
|
|
7780
7780
|
type: $.START_TAG,
|
|
7781
7781
|
tagName: n,
|
|
7782
|
-
tagID:
|
|
7782
|
+
tagID: It(n),
|
|
7783
7783
|
// We always send start and end tags.
|
|
7784
7784
|
selfClosing: !1,
|
|
7785
7785
|
ackSelfClosing: !1,
|
|
@@ -7793,11 +7793,11 @@ function G0(e, t) {
|
|
|
7793
7793
|
function Q0(e, t) {
|
|
7794
7794
|
const n = e.tagName.toLowerCase();
|
|
7795
7795
|
if (!t.parser.tokenizer.inForeignNode && el.includes(n) || t.parser.tokenizer.state === ae.PLAINTEXT) return;
|
|
7796
|
-
|
|
7796
|
+
xt(t, Mn(e));
|
|
7797
7797
|
const r = {
|
|
7798
7798
|
type: $.END_TAG,
|
|
7799
7799
|
tagName: n,
|
|
7800
|
-
tagID:
|
|
7800
|
+
tagID: It(n),
|
|
7801
7801
|
selfClosing: !1,
|
|
7802
7802
|
ackSelfClosing: !1,
|
|
7803
7803
|
attrs: [],
|
|
@@ -7853,7 +7853,7 @@ function Uu(e, t) {
|
|
|
7853
7853
|
return r;
|
|
7854
7854
|
}
|
|
7855
7855
|
const ge = Qe(/[A-Za-z]/), me = Qe(/[\dA-Za-z]/), J0 = Qe(/[#-'*+\--9=?A-Z^-~]/);
|
|
7856
|
-
function
|
|
7856
|
+
function xn(e) {
|
|
7857
7857
|
return (
|
|
7858
7858
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
7859
7859
|
// character DEL
|
|
@@ -8091,13 +8091,13 @@ function Cf(e) {
|
|
|
8091
8091
|
function Sf(e) {
|
|
8092
8092
|
this.exit(e);
|
|
8093
8093
|
}
|
|
8094
|
-
function
|
|
8094
|
+
function If(e) {
|
|
8095
8095
|
const t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
8096
8096
|
n.type, n.identifier = un(
|
|
8097
8097
|
this.sliceSerialize(e)
|
|
8098
8098
|
).toLowerCase(), n.label = t;
|
|
8099
8099
|
}
|
|
8100
|
-
function
|
|
8100
|
+
function xf(e) {
|
|
8101
8101
|
this.exit(e);
|
|
8102
8102
|
}
|
|
8103
8103
|
function kf() {
|
|
@@ -8122,8 +8122,8 @@ function yf() {
|
|
|
8122
8122
|
exit: {
|
|
8123
8123
|
gfmFootnoteCallString: Cf,
|
|
8124
8124
|
gfmFootnoteCall: Sf,
|
|
8125
|
-
gfmFootnoteDefinitionLabelString:
|
|
8126
|
-
gfmFootnoteDefinition:
|
|
8125
|
+
gfmFootnoteDefinitionLabelString: If,
|
|
8126
|
+
gfmFootnoteDefinition: xf
|
|
8127
8127
|
}
|
|
8128
8128
|
};
|
|
8129
8129
|
}
|
|
@@ -8945,14 +8945,14 @@ function ju(e) {
|
|
|
8945
8945
|
}
|
|
8946
8946
|
function Sh(e) {
|
|
8947
8947
|
let t = this.resume();
|
|
8948
|
-
this.data.inTable && (t = t.replace(/\\([\\|])/g,
|
|
8948
|
+
this.data.inTable && (t = t.replace(/\\([\\|])/g, Ih));
|
|
8949
8949
|
const n = this.stack[this.stack.length - 1];
|
|
8950
8950
|
n.type, n.value = t, this.exit(e);
|
|
8951
8951
|
}
|
|
8952
|
-
function
|
|
8952
|
+
function Ih(e, t) {
|
|
8953
8953
|
return t === "|" ? t : e;
|
|
8954
8954
|
}
|
|
8955
|
-
function
|
|
8955
|
+
function xh(e) {
|
|
8956
8956
|
const t = e || {}, n = t.tableCellPadding, r = t.tablePipeAlign, u = t.stringLength, a = n ? " " : "|";
|
|
8957
8957
|
return {
|
|
8958
8958
|
unsafe: [
|
|
@@ -9096,7 +9096,7 @@ function Rh(e) {
|
|
|
9096
9096
|
sf(),
|
|
9097
9097
|
Nf(e),
|
|
9098
9098
|
Df(),
|
|
9099
|
-
|
|
9099
|
+
xh(e),
|
|
9100
9100
|
yh()
|
|
9101
9101
|
]
|
|
9102
9102
|
};
|
|
@@ -9237,7 +9237,7 @@ function vh(e, t, n) {
|
|
|
9237
9237
|
return f === 47 ? (e.consume(f), a ? c : (a = !0, l)) : n(f);
|
|
9238
9238
|
}
|
|
9239
9239
|
function c(f) {
|
|
9240
|
-
return f === null ||
|
|
9240
|
+
return f === null || xn(f) || ne(f) || rt(f) || Hn(f) ? n(f) : e.attempt(is, e.attempt(as, h), n)(f);
|
|
9241
9241
|
}
|
|
9242
9242
|
function h(f) {
|
|
9243
9243
|
return e.exit("literalAutolinkHttp"), e.exit("literalAutolink"), t(f);
|
|
@@ -9739,7 +9739,7 @@ function ld(e, t, n) {
|
|
|
9739
9739
|
const r = this;
|
|
9740
9740
|
let u = 0, a = 0, i;
|
|
9741
9741
|
return o;
|
|
9742
|
-
function o(
|
|
9742
|
+
function o(x) {
|
|
9743
9743
|
let H = r.events.length - 1;
|
|
9744
9744
|
for (; H > -1; ) {
|
|
9745
9745
|
const F = r.events[H][1].type;
|
|
@@ -9748,61 +9748,61 @@ function ld(e, t, n) {
|
|
|
9748
9748
|
else break;
|
|
9749
9749
|
}
|
|
9750
9750
|
const U = H > -1 ? r.events[H][1].type : null, v = U === "tableHead" || U === "tableRow" ? k : l;
|
|
9751
|
-
return v === k && r.parser.lazy[r.now().line] ? n(
|
|
9751
|
+
return v === k && r.parser.lazy[r.now().line] ? n(x) : v(x);
|
|
9752
9752
|
}
|
|
9753
|
-
function l(
|
|
9754
|
-
return e.enter("tableHead"), e.enter("tableRow"), c(
|
|
9753
|
+
function l(x) {
|
|
9754
|
+
return e.enter("tableHead"), e.enter("tableRow"), c(x);
|
|
9755
9755
|
}
|
|
9756
|
-
function c(
|
|
9757
|
-
return
|
|
9756
|
+
function c(x) {
|
|
9757
|
+
return x === 124 || (i = !0, a += 1), h(x);
|
|
9758
9758
|
}
|
|
9759
|
-
function h(
|
|
9760
|
-
return
|
|
9759
|
+
function h(x) {
|
|
9760
|
+
return x === null ? n(x) : z(x) ? a > 1 ? (a = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(x), e.exit("lineEnding"), d) : n(x) : X(x) ? J(e, h, "whitespace")(x) : (a += 1, i && (i = !1, u += 1), x === 124 ? (e.enter("tableCellDivider"), e.consume(x), e.exit("tableCellDivider"), i = !0, h) : (e.enter("data"), f(x)));
|
|
9761
9761
|
}
|
|
9762
|
-
function f(
|
|
9763
|
-
return
|
|
9762
|
+
function f(x) {
|
|
9763
|
+
return x === null || x === 124 || ne(x) ? (e.exit("data"), h(x)) : (e.consume(x), x === 92 ? p : f);
|
|
9764
9764
|
}
|
|
9765
|
-
function p(
|
|
9766
|
-
return
|
|
9765
|
+
function p(x) {
|
|
9766
|
+
return x === 92 || x === 124 ? (e.consume(x), f) : f(x);
|
|
9767
9767
|
}
|
|
9768
|
-
function d(
|
|
9769
|
-
return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(
|
|
9768
|
+
function d(x) {
|
|
9769
|
+
return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(x) : (e.enter("tableDelimiterRow"), i = !1, X(x) ? J(e, A, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(x) : A(x));
|
|
9770
9770
|
}
|
|
9771
|
-
function A(
|
|
9772
|
-
return
|
|
9771
|
+
function A(x) {
|
|
9772
|
+
return x === 45 || x === 58 ? y(x) : x === 124 ? (i = !0, e.enter("tableCellDivider"), e.consume(x), e.exit("tableCellDivider"), C) : q(x);
|
|
9773
9773
|
}
|
|
9774
|
-
function C(
|
|
9775
|
-
return X(
|
|
9774
|
+
function C(x) {
|
|
9775
|
+
return X(x) ? J(e, y, "whitespace")(x) : y(x);
|
|
9776
9776
|
}
|
|
9777
|
-
function y(
|
|
9778
|
-
return
|
|
9777
|
+
function y(x) {
|
|
9778
|
+
return x === 58 ? (a += 1, i = !0, e.enter("tableDelimiterMarker"), e.consume(x), e.exit("tableDelimiterMarker"), S) : x === 45 ? (a += 1, S(x)) : x === null || z(x) ? Y(x) : q(x);
|
|
9779
9779
|
}
|
|
9780
|
-
function S(
|
|
9781
|
-
return
|
|
9780
|
+
function S(x) {
|
|
9781
|
+
return x === 45 ? (e.enter("tableDelimiterFiller"), O(x)) : q(x);
|
|
9782
9782
|
}
|
|
9783
|
-
function O(
|
|
9784
|
-
return
|
|
9783
|
+
function O(x) {
|
|
9784
|
+
return x === 45 ? (e.consume(x), O) : x === 58 ? (i = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(x), e.exit("tableDelimiterMarker"), L) : (e.exit("tableDelimiterFiller"), L(x));
|
|
9785
9785
|
}
|
|
9786
|
-
function L(
|
|
9787
|
-
return X(
|
|
9786
|
+
function L(x) {
|
|
9787
|
+
return X(x) ? J(e, Y, "whitespace")(x) : Y(x);
|
|
9788
9788
|
}
|
|
9789
|
-
function Y(
|
|
9790
|
-
return
|
|
9789
|
+
function Y(x) {
|
|
9790
|
+
return x === 124 ? A(x) : x === null || z(x) ? !i || u !== a ? q(x) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(x)) : q(x);
|
|
9791
9791
|
}
|
|
9792
|
-
function q(
|
|
9793
|
-
return n(
|
|
9792
|
+
function q(x) {
|
|
9793
|
+
return n(x);
|
|
9794
9794
|
}
|
|
9795
|
-
function k(
|
|
9796
|
-
return e.enter("tableRow"), Q(
|
|
9795
|
+
function k(x) {
|
|
9796
|
+
return e.enter("tableRow"), Q(x);
|
|
9797
9797
|
}
|
|
9798
|
-
function Q(
|
|
9799
|
-
return
|
|
9798
|
+
function Q(x) {
|
|
9799
|
+
return x === 124 ? (e.enter("tableCellDivider"), e.consume(x), e.exit("tableCellDivider"), Q) : x === null || z(x) ? (e.exit("tableRow"), t(x)) : X(x) ? J(e, Q, "whitespace")(x) : (e.enter("data"), Z(x));
|
|
9800
9800
|
}
|
|
9801
|
-
function Z(
|
|
9802
|
-
return
|
|
9801
|
+
function Z(x) {
|
|
9802
|
+
return x === null || x === 124 || ne(x) ? (e.exit("data"), Q(x)) : (e.consume(x), x === 92 ? ee : Z);
|
|
9803
9803
|
}
|
|
9804
|
-
function ee(
|
|
9805
|
-
return
|
|
9804
|
+
function ee(x) {
|
|
9805
|
+
return x === 92 || x === 124 ? (e.consume(x), Z) : Z(x);
|
|
9806
9806
|
}
|
|
9807
9807
|
}
|
|
9808
9808
|
function cd(e, t) {
|
|
@@ -9919,16 +9919,15 @@ function gd(e) {
|
|
|
9919
9919
|
), n = e || Ed, r = t.data(), u = r.micromarkExtensions || (r.micromarkExtensions = []), a = r.fromMarkdownExtensions || (r.fromMarkdownExtensions = []), i = r.toMarkdownExtensions || (r.toMarkdownExtensions = []);
|
|
9920
9920
|
u.push(pd(n)), a.push(Lh()), i.push(Rh(n));
|
|
9921
9921
|
}
|
|
9922
|
-
const ds = ro(
|
|
9923
|
-
|
|
9924
|
-
|
|
9925
|
-
|
|
9926
|
-
|
|
9927
|
-
|
|
9928
|
-
|
|
9929
|
-
|
|
9930
|
-
|
|
9931
|
-
}, Td = () => {
|
|
9922
|
+
const ds = ro({
|
|
9923
|
+
activeAnchor: "",
|
|
9924
|
+
setActiveAnchor: () => {
|
|
9925
|
+
},
|
|
9926
|
+
observe: () => {
|
|
9927
|
+
},
|
|
9928
|
+
unobserve: () => {
|
|
9929
|
+
}
|
|
9930
|
+
}), Wr = () => uo(ds), Td = () => {
|
|
9932
9931
|
const e = Ut(null), { observe: t, unobserve: n } = Wr();
|
|
9933
9932
|
return bt(() => {
|
|
9934
9933
|
const u = e.current;
|
|
@@ -10043,13 +10042,13 @@ function fn(e) {
|
|
|
10043
10042
|
function Xu(e) {
|
|
10044
10043
|
return _d(e).concat(Cd(e));
|
|
10045
10044
|
}
|
|
10046
|
-
var
|
|
10045
|
+
var Id = Object.hasOwn || function(e, t) {
|
|
10047
10046
|
return Sd.call(e, t);
|
|
10048
10047
|
};
|
|
10049
10048
|
function at(e, t) {
|
|
10050
10049
|
return e === t || !e && !t && e !== e && t !== t;
|
|
10051
10050
|
}
|
|
10052
|
-
var
|
|
10051
|
+
var xd = "__v", kd = "__o", yd = "_owner", Ku = Object.getOwnPropertyDescriptor, Ju = Object.keys;
|
|
10053
10052
|
function Nd(e, t, n) {
|
|
10054
10053
|
var r = e.length;
|
|
10055
10054
|
if (t.length !== r)
|
|
@@ -10150,7 +10149,7 @@ function Fd(e, t) {
|
|
|
10150
10149
|
return e.hostname === t.hostname && e.pathname === t.pathname && e.protocol === t.protocol && e.port === t.port && e.hash === t.hash && e.username === t.username && e.password === t.password;
|
|
10151
10150
|
}
|
|
10152
10151
|
function ms(e, t, n, r) {
|
|
10153
|
-
return (r === yd || r === kd || r ===
|
|
10152
|
+
return (r === yd || r === kd || r === xd) && (e.$$typeof || t.$$typeof) ? !0 : Id(t, r) && n.equals(e[r], t[r], r, r, e, t, n);
|
|
10154
10153
|
}
|
|
10155
10154
|
var Hd = "[object Arguments]", Ud = "[object Boolean]", vd = "[object Date]", zd = "[object Error]", Yd = "[object Map]", qd = "[object Number]", jd = "[object Object]", Vd = "[object RegExp]", Wd = "[object Set]", Gd = "[object String]", Qd = "[object URL]", $d = Array.isArray, ti = typeof ArrayBuffer == "function" && ArrayBuffer.isView ? ArrayBuffer.isView : null, ni = Object.assign, Xd = Object.prototype.toString.call.bind(Object.prototype.toString);
|
|
10156
10155
|
function Kd(e) {
|
|
@@ -11731,7 +11730,7 @@ const Em = yt({
|
|
|
11731
11730
|
},
|
|
11732
11731
|
space: "svg",
|
|
11733
11732
|
transform: Cs
|
|
11734
|
-
}),
|
|
11733
|
+
}), Is = yt({
|
|
11735
11734
|
properties: {
|
|
11736
11735
|
xLinkActuate: null,
|
|
11737
11736
|
xLinkArcRole: null,
|
|
@@ -11745,7 +11744,7 @@ const Em = yt({
|
|
|
11745
11744
|
transform(e, t) {
|
|
11746
11745
|
return "xlink:" + t.slice(5).toLowerCase();
|
|
11747
11746
|
}
|
|
11748
|
-
}),
|
|
11747
|
+
}), xs = yt({
|
|
11749
11748
|
attributes: { xmlnsxlink: "xmlns:xlink" },
|
|
11750
11749
|
properties: { xmlnsXLink: null, xmlns: null },
|
|
11751
11750
|
space: "xmlns",
|
|
@@ -11801,9 +11800,9 @@ function Cm(e) {
|
|
|
11801
11800
|
function Sm(e) {
|
|
11802
11801
|
return e.charAt(1).toUpperCase();
|
|
11803
11802
|
}
|
|
11804
|
-
const
|
|
11803
|
+
const Im = bs([_s, Em, Is, xs, ks], "html"), Qr = bs([_s, gm, Is, xs, ks], "svg");
|
|
11805
11804
|
var ht = {}, Jn, si;
|
|
11806
|
-
function
|
|
11805
|
+
function xm() {
|
|
11807
11806
|
if (si) return Jn;
|
|
11808
11807
|
si = 1;
|
|
11809
11808
|
var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, t = /\n/g, n = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, u = /^:\s*/, a = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, i = /^[;\s]*/, o = /^\s+|\s+$/g, l = `
|
|
@@ -11848,11 +11847,11 @@ function Im() {
|
|
|
11848
11847
|
}
|
|
11849
11848
|
function ee(v) {
|
|
11850
11849
|
var F;
|
|
11851
|
-
for (v = v || []; F =
|
|
11850
|
+
for (v = v || []; F = x(); )
|
|
11852
11851
|
F !== !1 && v.push(F);
|
|
11853
11852
|
return v;
|
|
11854
11853
|
}
|
|
11855
|
-
function
|
|
11854
|
+
function x() {
|
|
11856
11855
|
var v = Y();
|
|
11857
11856
|
if (!(c != C.charAt(0) || h != C.charAt(1))) {
|
|
11858
11857
|
for (var F = 2; f != C.charAt(F) && (h != C.charAt(F) || c != C.charAt(F + 1)); )
|
|
@@ -11869,7 +11868,7 @@ function Im() {
|
|
|
11869
11868
|
function H() {
|
|
11870
11869
|
var v = Y(), F = Q(r);
|
|
11871
11870
|
if (F) {
|
|
11872
|
-
if (
|
|
11871
|
+
if (x(), !Q(u)) return k("property missing ':'");
|
|
11873
11872
|
var j = Q(a), le = v({
|
|
11874
11873
|
type: d,
|
|
11875
11874
|
property: A(F[0].replace(e, f)),
|
|
@@ -11900,7 +11899,7 @@ function km() {
|
|
|
11900
11899
|
return r && r.__esModule ? r : { default: r };
|
|
11901
11900
|
};
|
|
11902
11901
|
Object.defineProperty(ht, "__esModule", { value: !0 }), ht.default = n;
|
|
11903
|
-
var t = e(
|
|
11902
|
+
var t = e(xm());
|
|
11904
11903
|
function n(r, u) {
|
|
11905
11904
|
var a = null;
|
|
11906
11905
|
if (!r || typeof r != "string")
|
|
@@ -12076,7 +12075,7 @@ function Mm(e, t) {
|
|
|
12076
12075
|
ignoreInvalidStyle: t.ignoreInvalidStyle || !1,
|
|
12077
12076
|
passKeys: t.passKeys !== !1,
|
|
12078
12077
|
passNode: t.passNode || !1,
|
|
12079
|
-
schema: t.space === "svg" ? Qr :
|
|
12078
|
+
schema: t.space === "svg" ? Qr : Im,
|
|
12080
12079
|
stylePropertyNameCase: t.stylePropertyNameCase || "dom",
|
|
12081
12080
|
tableCellAlignToStyle: t.tableCellAlignToStyle !== !1
|
|
12082
12081
|
}, a = Ns(u, e, void 0);
|
|
@@ -12372,7 +12371,7 @@ function we(e, t, n, r) {
|
|
|
12372
12371
|
for (n && e.splice(t, n); a < r.length; )
|
|
12373
12372
|
i = r.slice(a, a + 1e4), i.unshift(t, 0), e.splice(...i), a += 1e4, t += 1e4;
|
|
12374
12373
|
}
|
|
12375
|
-
function
|
|
12374
|
+
function xe(e, t) {
|
|
12376
12375
|
return e.length > 0 ? (we(e, e.length, 0, t), e) : t;
|
|
12377
12376
|
}
|
|
12378
12377
|
const mi = {}.hasOwnProperty;
|
|
@@ -12563,17 +12562,17 @@ function rp(e) {
|
|
|
12563
12562
|
)
|
|
12564
12563
|
return;
|
|
12565
12564
|
const Q = t.events.length;
|
|
12566
|
-
let Z = Q, ee,
|
|
12565
|
+
let Z = Q, ee, x;
|
|
12567
12566
|
for (; Z--; )
|
|
12568
12567
|
if (t.events[Z][0] === "exit" && t.events[Z][1].type === "chunkFlow") {
|
|
12569
12568
|
if (ee) {
|
|
12570
|
-
|
|
12569
|
+
x = t.events[Z][1].end;
|
|
12571
12570
|
break;
|
|
12572
12571
|
}
|
|
12573
12572
|
ee = !0;
|
|
12574
12573
|
}
|
|
12575
12574
|
for (S(r), k = Q; k < t.events.length; )
|
|
12576
|
-
t.events[k][1].end = Object.assign({},
|
|
12575
|
+
t.events[k][1].end = Object.assign({}, x), k++;
|
|
12577
12576
|
we(
|
|
12578
12577
|
t.events,
|
|
12579
12578
|
Z + 1,
|
|
@@ -12611,7 +12610,7 @@ function Zr(e, t, n) {
|
|
|
12611
12610
|
}
|
|
12612
12611
|
return t;
|
|
12613
12612
|
}
|
|
12614
|
-
const
|
|
12613
|
+
const Ir = {
|
|
12615
12614
|
name: "attention",
|
|
12616
12615
|
tokenize: ap,
|
|
12617
12616
|
resolveAll: ip
|
|
@@ -12643,27 +12642,27 @@ function ip(e, t) {
|
|
|
12643
12642
|
type: l > 1 ? "strong" : "emphasis",
|
|
12644
12643
|
start: Object.assign({}, i.start),
|
|
12645
12644
|
end: Object.assign({}, o.end)
|
|
12646
|
-
}, e[r][1].end = Object.assign({}, i.start), e[n][1].start = Object.assign({}, o.end), c = [], e[r][1].end.offset - e[r][1].start.offset && (c =
|
|
12645
|
+
}, e[r][1].end = Object.assign({}, i.start), e[n][1].start = Object.assign({}, o.end), c = [], e[r][1].end.offset - e[r][1].start.offset && (c = xe(c, [
|
|
12647
12646
|
["enter", e[r][1], t],
|
|
12648
12647
|
["exit", e[r][1], t]
|
|
12649
|
-
])), c =
|
|
12648
|
+
])), c = xe(c, [
|
|
12650
12649
|
["enter", u, t],
|
|
12651
12650
|
["enter", i, t],
|
|
12652
12651
|
["exit", i, t],
|
|
12653
12652
|
["enter", a, t]
|
|
12654
|
-
]), c =
|
|
12653
|
+
]), c = xe(
|
|
12655
12654
|
c,
|
|
12656
12655
|
Zr(
|
|
12657
12656
|
t.parser.constructs.insideSpan.null,
|
|
12658
12657
|
e.slice(r + 1, n),
|
|
12659
12658
|
t
|
|
12660
12659
|
)
|
|
12661
|
-
), c =
|
|
12660
|
+
), c = xe(c, [
|
|
12662
12661
|
["exit", a, t],
|
|
12663
12662
|
["enter", o, t],
|
|
12664
12663
|
["exit", o, t],
|
|
12665
12664
|
["exit", u, t]
|
|
12666
|
-
]), e[n][1].end.offset - e[n][1].start.offset ? (h = 2, c =
|
|
12665
|
+
]), e[n][1].end.offset - e[n][1].start.offset ? (h = 2, c = xe(c, [
|
|
12667
12666
|
["enter", e[n][1], t],
|
|
12668
12667
|
["exit", e[n][1], t]
|
|
12669
12668
|
])) : h = 0, we(e, r - 1, n - r + 3, c), n = r + c.length - h - 2;
|
|
@@ -12711,7 +12710,7 @@ function op(e, t, n) {
|
|
|
12711
12710
|
return d === 58 ? (e.consume(d), r = 0, l) : (d === 43 || d === 45 || d === 46 || me(d)) && r++ < 32 ? (e.consume(d), o) : (r = 0, c(d));
|
|
12712
12711
|
}
|
|
12713
12712
|
function l(d) {
|
|
12714
|
-
return d === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(d), e.exit("autolinkMarker"), e.exit("autolink"), t) : d === null || d === 32 || d === 60 ||
|
|
12713
|
+
return d === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(d), e.exit("autolinkMarker"), e.exit("autolink"), t) : d === null || d === 32 || d === 60 || xn(d) ? n(d) : (e.consume(d), l);
|
|
12715
12714
|
}
|
|
12716
12715
|
function c(d) {
|
|
12717
12716
|
return d === 64 ? (e.consume(d), h) : J0(d) ? (e.consume(d), c) : n(d);
|
|
@@ -12889,8 +12888,8 @@ function pp(e, t, n) {
|
|
|
12889
12888
|
}
|
|
12890
12889
|
function q(k, Q, Z) {
|
|
12891
12890
|
let ee = 0;
|
|
12892
|
-
return
|
|
12893
|
-
function
|
|
12891
|
+
return x;
|
|
12892
|
+
function x(j) {
|
|
12894
12893
|
return k.enter("lineEnding"), k.consume(j), k.exit("lineEnding"), H;
|
|
12895
12894
|
}
|
|
12896
12895
|
function H(j) {
|
|
@@ -13011,7 +13010,7 @@ function Ms(e) {
|
|
|
13011
13010
|
for (; ++a < l.length && l[a][1].type !== "content"; )
|
|
13012
13011
|
l[a][1].type === "chunkText" && (l[a][1]._isInFirstContentOfListItem = !0, a++);
|
|
13013
13012
|
if (r[0] === "enter")
|
|
13014
|
-
r[1].contentType && (Object.assign(t,
|
|
13013
|
+
r[1].contentType && (Object.assign(t, Ip(e, n)), n = t[n], c = !0);
|
|
13015
13014
|
else if (r[1]._container) {
|
|
13016
13015
|
for (a = n, u = void 0; a-- && (i = e[a], i[1].type === "lineEnding" || i[1].type === "lineEndingBlank"); )
|
|
13017
13016
|
i[0] === "enter" && (u && (e[u][1].type = "lineEndingBlank"), i[1].type = "lineEnding", u = a);
|
|
@@ -13020,7 +13019,7 @@ function Ms(e) {
|
|
|
13020
13019
|
}
|
|
13021
13020
|
return !c;
|
|
13022
13021
|
}
|
|
13023
|
-
function
|
|
13022
|
+
function Ip(e, t) {
|
|
13024
13023
|
const n = e[t][1], r = e[t][2];
|
|
13025
13024
|
let u = t - 1;
|
|
13026
13025
|
const a = [], i = n._tokenizer || r.parser[n.contentType](n.start), o = i.events, l = [], c = {};
|
|
@@ -13042,7 +13041,7 @@ function xp(e, t) {
|
|
|
13042
13041
|
c[A + l[p][0]] = A + l[p][1], A += l[p][1] - l[p][0] - 1;
|
|
13043
13042
|
return c;
|
|
13044
13043
|
}
|
|
13045
|
-
const
|
|
13044
|
+
const xp = {
|
|
13046
13045
|
tokenize: Np,
|
|
13047
13046
|
resolve: yp
|
|
13048
13047
|
}, kp = {
|
|
@@ -13095,7 +13094,7 @@ function Bs(e, t, n, r, u, a, i, o, l) {
|
|
|
13095
13094
|
let h = 0;
|
|
13096
13095
|
return f;
|
|
13097
13096
|
function f(S) {
|
|
13098
|
-
return S === 60 ? (e.enter(r), e.enter(u), e.enter(a), e.consume(S), e.exit(a), p) : S === null || S === 32 || S === 41 ||
|
|
13097
|
+
return S === 60 ? (e.enter(r), e.enter(u), e.enter(a), e.consume(S), e.exit(a), p) : S === null || S === 32 || S === 41 || xn(S) ? n(S) : (e.enter(r), e.enter(i), e.enter(o), e.enter("chunkString", {
|
|
13099
13098
|
contentType: "string"
|
|
13100
13099
|
}), C(S));
|
|
13101
13100
|
}
|
|
@@ -13111,7 +13110,7 @@ function Bs(e, t, n, r, u, a, i, o, l) {
|
|
|
13111
13110
|
return S === 60 || S === 62 || S === 92 ? (e.consume(S), d) : d(S);
|
|
13112
13111
|
}
|
|
13113
13112
|
function C(S) {
|
|
13114
|
-
return !h && (S === null || S === 41 || ne(S)) ? (e.exit("chunkString"), e.exit(o), e.exit(i), e.exit(r), t(S)) : h < c && S === 40 ? (e.consume(S), h++, C) : S === 41 ? (e.consume(S), h--, C) : S === null || S === 32 || S === 40 ||
|
|
13113
|
+
return !h && (S === null || S === 41 || ne(S)) ? (e.exit("chunkString"), e.exit(o), e.exit(i), e.exit(r), t(S)) : h < c && S === 40 ? (e.consume(S), h++, C) : S === 41 ? (e.consume(S), h--, C) : S === null || S === 32 || S === 40 || xn(S) ? n(S) : (e.consume(S), S === 92 ? y : C);
|
|
13115
13114
|
}
|
|
13116
13115
|
function y(S) {
|
|
13117
13116
|
return S === 40 || S === 41 || S === 92 ? (e.consume(S), C) : C(S);
|
|
@@ -13417,10 +13416,10 @@ function jp(e, t, n) {
|
|
|
13417
13416
|
return b === 62 ? (e.consume(b), r.interrupt ? t : U) : n(b);
|
|
13418
13417
|
}
|
|
13419
13418
|
function O(b) {
|
|
13420
|
-
return X(b) ? (e.consume(b), O) :
|
|
13419
|
+
return X(b) ? (e.consume(b), O) : x(b);
|
|
13421
13420
|
}
|
|
13422
13421
|
function L(b) {
|
|
13423
|
-
return b === 47 ? (e.consume(b),
|
|
13422
|
+
return b === 47 ? (e.consume(b), x) : b === 58 || b === 95 || ge(b) ? (e.consume(b), Y) : X(b) ? (e.consume(b), L) : x(b);
|
|
13424
13423
|
}
|
|
13425
13424
|
function Y(b) {
|
|
13426
13425
|
return b === 45 || b === 46 || b === 58 || b === 95 || me(b) ? (e.consume(b), Y) : q(b);
|
|
@@ -13440,7 +13439,7 @@ function jp(e, t, n) {
|
|
|
13440
13439
|
function ee(b) {
|
|
13441
13440
|
return b === 47 || b === 62 || X(b) ? L(b) : n(b);
|
|
13442
13441
|
}
|
|
13443
|
-
function
|
|
13442
|
+
function x(b) {
|
|
13444
13443
|
return b === 62 ? (e.consume(b), H) : n(b);
|
|
13445
13444
|
}
|
|
13446
13445
|
function H(b) {
|
|
@@ -13572,10 +13571,10 @@ function Qp(e, t, n) {
|
|
|
13572
13571
|
return T === 45 || me(T) ? (e.consume(T), Z) : T === 47 || T === 62 || ne(T) ? ee(T) : n(T);
|
|
13573
13572
|
}
|
|
13574
13573
|
function ee(T) {
|
|
13575
|
-
return T === 47 ? (e.consume(T), le) : T === 58 || T === 95 || ge(T) ? (e.consume(T),
|
|
13574
|
+
return T === 47 ? (e.consume(T), le) : T === 58 || T === 95 || ge(T) ? (e.consume(T), x) : z(T) ? (i = ee, he(T)) : X(T) ? (e.consume(T), ee) : le(T);
|
|
13576
13575
|
}
|
|
13577
|
-
function
|
|
13578
|
-
return T === 45 || T === 46 || T === 58 || T === 95 || me(T) ? (e.consume(T),
|
|
13576
|
+
function x(T) {
|
|
13577
|
+
return T === 45 || T === 46 || T === 58 || T === 95 || me(T) ? (e.consume(T), x) : H(T);
|
|
13579
13578
|
}
|
|
13580
13579
|
function H(T) {
|
|
13581
13580
|
return T === 61 ? (e.consume(T), U) : z(T) ? (i = H, he(T)) : X(T) ? (e.consume(T), H) : ee(T);
|
|
@@ -13659,19 +13658,19 @@ function Zp(e, t) {
|
|
|
13659
13658
|
return o = [
|
|
13660
13659
|
["enter", l, t],
|
|
13661
13660
|
["enter", c, t]
|
|
13662
|
-
], o =
|
|
13661
|
+
], o = xe(o, e.slice(a + 1, a + r + 3)), o = xe(o, [["enter", h, t]]), o = xe(
|
|
13663
13662
|
o,
|
|
13664
13663
|
Zr(
|
|
13665
13664
|
t.parser.constructs.insideSpan.null,
|
|
13666
13665
|
e.slice(a + r + 4, i - 3),
|
|
13667
13666
|
t
|
|
13668
13667
|
)
|
|
13669
|
-
), o =
|
|
13668
|
+
), o = xe(o, [
|
|
13670
13669
|
["exit", h, t],
|
|
13671
13670
|
e[i - 2],
|
|
13672
13671
|
e[i - 1],
|
|
13673
13672
|
["exit", c, t]
|
|
13674
|
-
]), o =
|
|
13673
|
+
]), o = xe(o, e.slice(i + 1)), o = xe(o, [["exit", l, t]]), we(e, a, e.length, o), e;
|
|
13675
13674
|
}
|
|
13676
13675
|
function e1(e, t, n) {
|
|
13677
13676
|
const r = this;
|
|
@@ -14028,7 +14027,7 @@ function A1(e) {
|
|
|
14028
14027
|
e.attempt(
|
|
14029
14028
|
this.parser.constructs.flow,
|
|
14030
14029
|
u,
|
|
14031
|
-
e.attempt(
|
|
14030
|
+
e.attempt(xp, u)
|
|
14032
14031
|
),
|
|
14033
14032
|
"linePrefix"
|
|
14034
14033
|
)
|
|
@@ -14057,7 +14056,7 @@ function Us(e) {
|
|
|
14057
14056
|
return {
|
|
14058
14057
|
tokenize: t,
|
|
14059
14058
|
resolveAll: vs(
|
|
14060
|
-
e === "text" ?
|
|
14059
|
+
e === "text" ? I1 : void 0
|
|
14061
14060
|
)
|
|
14062
14061
|
};
|
|
14063
14062
|
function t(n) {
|
|
@@ -14100,7 +14099,7 @@ function vs(e) {
|
|
|
14100
14099
|
return e ? e(n, r) : n;
|
|
14101
14100
|
}
|
|
14102
14101
|
}
|
|
14103
|
-
function
|
|
14102
|
+
function I1(e, t) {
|
|
14104
14103
|
let n = 0;
|
|
14105
14104
|
for (; ++n <= e.length; )
|
|
14106
14105
|
if ((n === e.length || e[n][1].type === "lineEnding") && e[n - 1][1].type === "data") {
|
|
@@ -14143,7 +14142,7 @@ function x1(e, t) {
|
|
|
14143
14142
|
}
|
|
14144
14143
|
return e;
|
|
14145
14144
|
}
|
|
14146
|
-
function
|
|
14145
|
+
function x1(e, t, n) {
|
|
14147
14146
|
let r = Object.assign(
|
|
14148
14147
|
n ? Object.assign({}, n) : {
|
|
14149
14148
|
line: 1,
|
|
@@ -14181,7 +14180,7 @@ function I1(e, t, n) {
|
|
|
14181
14180
|
let h = t.tokenize.call(c, l);
|
|
14182
14181
|
return t.resolveAll && a.push(t), c;
|
|
14183
14182
|
function f(H) {
|
|
14184
|
-
return i =
|
|
14183
|
+
return i = xe(i, H), y(), i[i.length - 1] !== null ? [] : (Z(t, 0), c.events = Zr(a, c.events, c), c.events);
|
|
14185
14184
|
}
|
|
14186
14185
|
function p(H, U) {
|
|
14187
14186
|
return y1(d(H), U);
|
|
@@ -14200,7 +14199,7 @@ function I1(e, t, n) {
|
|
|
14200
14199
|
};
|
|
14201
14200
|
}
|
|
14202
14201
|
function C(H) {
|
|
14203
|
-
u[H.line] = H.column,
|
|
14202
|
+
u[H.line] = H.column, x();
|
|
14204
14203
|
}
|
|
14205
14204
|
function y() {
|
|
14206
14205
|
let H;
|
|
@@ -14217,7 +14216,7 @@ function I1(e, t, n) {
|
|
|
14217
14216
|
h = h(H);
|
|
14218
14217
|
}
|
|
14219
14218
|
function O(H) {
|
|
14220
|
-
z(H) ? (r.line++, r.column = 1, r.offset += H === -3 ? 2 : 1,
|
|
14219
|
+
z(H) ? (r.line++, r.column = 1, r.offset += H === -3 ? 2 : 1, x()) : H !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === i[r._index].length && (r._bufferIndex = -1, r._index++)), c.previous = H;
|
|
14221
14220
|
}
|
|
14222
14221
|
function L(H, U) {
|
|
14223
14222
|
const v = U || {};
|
|
@@ -14293,10 +14292,10 @@ function I1(e, t, n) {
|
|
|
14293
14292
|
from: F
|
|
14294
14293
|
};
|
|
14295
14294
|
function le() {
|
|
14296
|
-
r = H, c.previous = U, c.currentConstruct = v, c.events.length = F, o = j,
|
|
14295
|
+
r = H, c.previous = U, c.currentConstruct = v, c.events.length = F, o = j, x();
|
|
14297
14296
|
}
|
|
14298
14297
|
}
|
|
14299
|
-
function
|
|
14298
|
+
function x() {
|
|
14300
14299
|
r.line in u && r.column < 2 && (r.column = u[r.line], r.offset += u[r.line] - 1);
|
|
14301
14300
|
}
|
|
14302
14301
|
}
|
|
@@ -14394,15 +14393,15 @@ const N1 = {
|
|
|
14394
14393
|
[-3]: tr,
|
|
14395
14394
|
33: u1,
|
|
14396
14395
|
38: ws,
|
|
14397
|
-
42:
|
|
14396
|
+
42: Ir,
|
|
14398
14397
|
60: [sp, Gp],
|
|
14399
14398
|
91: a1,
|
|
14400
14399
|
92: [wp, Ps],
|
|
14401
14400
|
93: eu,
|
|
14402
|
-
95:
|
|
14401
|
+
95: Ir,
|
|
14403
14402
|
96: Ap
|
|
14404
14403
|
}, w1 = {
|
|
14405
|
-
null: [
|
|
14404
|
+
null: [Ir, _1]
|
|
14406
14405
|
}, M1 = {
|
|
14407
14406
|
null: [42, 95]
|
|
14408
14407
|
}, B1 = {
|
|
@@ -14437,7 +14436,7 @@ function H1(e) {
|
|
|
14437
14436
|
function u(a) {
|
|
14438
14437
|
return i;
|
|
14439
14438
|
function i(o) {
|
|
14440
|
-
return
|
|
14439
|
+
return x1(r, a, o);
|
|
14441
14440
|
}
|
|
14442
14441
|
}
|
|
14443
14442
|
}
|
|
@@ -14557,7 +14556,7 @@ function V1(e) {
|
|
|
14557
14556
|
autolinkEmail: qe,
|
|
14558
14557
|
autolinkProtocol: Nt,
|
|
14559
14558
|
blockQuote: l(),
|
|
14560
|
-
characterEscapeValue:
|
|
14559
|
+
characterEscapeValue: x,
|
|
14561
14560
|
characterReferenceMarkerHexadecimal: Xe,
|
|
14562
14561
|
characterReferenceMarkerNumeric: Xe,
|
|
14563
14562
|
characterReferenceValue: de,
|
|
@@ -14565,11 +14564,11 @@ function V1(e) {
|
|
|
14565
14564
|
codeFencedFence: C,
|
|
14566
14565
|
codeFencedFenceInfo: d,
|
|
14567
14566
|
codeFencedFenceMeta: A,
|
|
14568
|
-
codeFlowValue:
|
|
14567
|
+
codeFlowValue: x,
|
|
14569
14568
|
codeIndented: l(S),
|
|
14570
14569
|
codeText: l(j),
|
|
14571
|
-
codeTextData:
|
|
14572
|
-
data:
|
|
14570
|
+
codeTextData: x,
|
|
14571
|
+
data: x,
|
|
14573
14572
|
definition: l(),
|
|
14574
14573
|
definitionDestinationString: Y,
|
|
14575
14574
|
definitionLabelString: O,
|
|
@@ -14578,9 +14577,9 @@ function V1(e) {
|
|
|
14578
14577
|
hardBreakEscape: l(U),
|
|
14579
14578
|
hardBreakTrailing: l(U),
|
|
14580
14579
|
htmlFlow: l(v),
|
|
14581
|
-
htmlFlowData:
|
|
14580
|
+
htmlFlowData: x,
|
|
14582
14581
|
htmlText: l(F),
|
|
14583
|
-
htmlTextData:
|
|
14582
|
+
htmlTextData: x,
|
|
14584
14583
|
image: l(he),
|
|
14585
14584
|
label: Fe,
|
|
14586
14585
|
labelText: ye,
|
|
@@ -14824,7 +14823,7 @@ function V1(e) {
|
|
|
14824
14823
|
end: void 0
|
|
14825
14824
|
}, V.push(K)), this.stack.push(K);
|
|
14826
14825
|
}
|
|
14827
|
-
function
|
|
14826
|
+
function x(N) {
|
|
14828
14827
|
const M = this.stack.pop();
|
|
14829
14828
|
M.value += this.sliceSerialize(N), M.position.end = je(N.end);
|
|
14830
14829
|
}
|
|
@@ -14835,7 +14834,7 @@ function V1(e) {
|
|
|
14835
14834
|
V.position.end = je(N.end), this.data.atHardBreak = void 0;
|
|
14836
14835
|
return;
|
|
14837
14836
|
}
|
|
14838
|
-
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(M.type) && (ee.call(this, N),
|
|
14837
|
+
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(M.type) && (ee.call(this, N), x.call(this, N));
|
|
14839
14838
|
}
|
|
14840
14839
|
function U() {
|
|
14841
14840
|
this.data.atHardBreak = !0;
|
|
@@ -14916,12 +14915,12 @@ function V1(e) {
|
|
|
14916
14915
|
te.value += K, te.position.end = je(N.end);
|
|
14917
14916
|
}
|
|
14918
14917
|
function Nt(N) {
|
|
14919
|
-
|
|
14918
|
+
x.call(this, N);
|
|
14920
14919
|
const M = this.stack[this.stack.length - 1];
|
|
14921
14920
|
M.url = this.sliceSerialize(N);
|
|
14922
14921
|
}
|
|
14923
14922
|
function qe(N) {
|
|
14924
|
-
|
|
14923
|
+
x.call(this, N);
|
|
14925
14924
|
const M = this.stack[this.stack.length - 1];
|
|
14926
14925
|
M.url = "mailto:" + this.sliceSerialize(N);
|
|
14927
14926
|
}
|
|
@@ -15383,28 +15382,28 @@ function pE(e, t) {
|
|
|
15383
15382
|
};
|
|
15384
15383
|
return e.patch(t, n), e.applyData(t, n);
|
|
15385
15384
|
}
|
|
15386
|
-
const Si = 9,
|
|
15385
|
+
const Si = 9, Ii = 32;
|
|
15387
15386
|
function EE(e) {
|
|
15388
15387
|
const t = String(e), n = /\r?\n|\r/g;
|
|
15389
15388
|
let r = n.exec(t), u = 0;
|
|
15390
15389
|
const a = [];
|
|
15391
15390
|
for (; r; )
|
|
15392
15391
|
a.push(
|
|
15393
|
-
|
|
15392
|
+
xi(t.slice(u, r.index), u > 0, !0),
|
|
15394
15393
|
r[0]
|
|
15395
15394
|
), u = r.index + r[0].length, r = n.exec(t);
|
|
15396
|
-
return a.push(
|
|
15395
|
+
return a.push(xi(t.slice(u), u > 0, !1)), a.join("");
|
|
15397
15396
|
}
|
|
15398
|
-
function
|
|
15397
|
+
function xi(e, t, n) {
|
|
15399
15398
|
let r = 0, u = e.length;
|
|
15400
15399
|
if (t) {
|
|
15401
15400
|
let a = e.codePointAt(r);
|
|
15402
|
-
for (; a === Si || a ===
|
|
15401
|
+
for (; a === Si || a === Ii; )
|
|
15403
15402
|
r++, a = e.codePointAt(r);
|
|
15404
15403
|
}
|
|
15405
15404
|
if (n) {
|
|
15406
15405
|
let a = e.codePointAt(u - 1);
|
|
15407
|
-
for (; a === Si || a ===
|
|
15406
|
+
for (; a === Si || a === Ii; )
|
|
15408
15407
|
u--, a = e.codePointAt(u - 1);
|
|
15409
15408
|
}
|
|
15410
15409
|
return u > r ? e.slice(r, u) : "";
|
|
@@ -15616,7 +15615,7 @@ const Vs = -1, vn = 0, Qt = 1, yn = 2, tu = 3, nu = 4, ru = 5, uu = 6, Ws = 7, G
|
|
|
15616
15615
|
/* c8 ignore start */
|
|
15617
15616
|
(e, t) => t && ("json" in t || "lossy" in t) ? yi(Ni(e, t)) : structuredClone(e)
|
|
15618
15617
|
) : (e, t) => yi(Ni(e, t));
|
|
15619
|
-
function
|
|
15618
|
+
function IE(e, t) {
|
|
15620
15619
|
const n = [{ type: "text", value: "↩" }];
|
|
15621
15620
|
return t > 1 && n.push({
|
|
15622
15621
|
type: "element",
|
|
@@ -15625,11 +15624,11 @@ function xE(e, t) {
|
|
|
15625
15624
|
children: [{ type: "text", value: String(t) }]
|
|
15626
15625
|
}), n;
|
|
15627
15626
|
}
|
|
15628
|
-
function
|
|
15627
|
+
function xE(e, t) {
|
|
15629
15628
|
return "Back to reference " + (e + 1) + (t > 1 ? "-" + t : "");
|
|
15630
15629
|
}
|
|
15631
15630
|
function kE(e) {
|
|
15632
|
-
const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", n = e.options.footnoteBackContent ||
|
|
15631
|
+
const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", n = e.options.footnoteBackContent || IE, r = e.options.footnoteBackLabel || xE, u = e.options.footnoteLabel || "Footnotes", a = e.options.footnoteLabelTagName || "h2", i = e.options.footnoteLabelProperties || {
|
|
15633
15632
|
className: ["sr-only"]
|
|
15634
15633
|
}, o = [];
|
|
15635
15634
|
let l = -1;
|
|
@@ -15699,7 +15698,7 @@ function kE(e) {
|
|
|
15699
15698
|
]
|
|
15700
15699
|
};
|
|
15701
15700
|
}
|
|
15702
|
-
const
|
|
15701
|
+
const xr = {}.hasOwnProperty, yE = {};
|
|
15703
15702
|
function NE(e, t) {
|
|
15704
15703
|
const n = t || yE, r = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), i = { ...bE, ...n.handlers }, o = {
|
|
15705
15704
|
all: c,
|
|
@@ -15722,7 +15721,7 @@ function NE(e, t) {
|
|
|
15722
15721
|
}), o;
|
|
15723
15722
|
function l(h, f) {
|
|
15724
15723
|
const p = h.type, d = o.handlers[p];
|
|
15725
|
-
if (
|
|
15724
|
+
if (xr.call(o.handlers, p) && d)
|
|
15726
15725
|
return d(o, h, f);
|
|
15727
15726
|
if (o.options.passThrough && o.options.passThrough.includes(p)) {
|
|
15728
15727
|
if ("children" in h) {
|
|
@@ -15771,7 +15770,7 @@ function LE(e, t) {
|
|
|
15771
15770
|
return n;
|
|
15772
15771
|
}
|
|
15773
15772
|
function RE(e, t) {
|
|
15774
|
-
const n = t.data || {}, r = "value" in t && !(
|
|
15773
|
+
const n = t.data || {}, r = "value" in t && !(xr.call(n, "hProperties") || xr.call(n, "hChildren")) ? { type: "text", value: t.value } : {
|
|
15775
15774
|
type: "element",
|
|
15776
15775
|
tagName: "div",
|
|
15777
15776
|
properties: {},
|
|
@@ -17123,4 +17122,4 @@ export {
|
|
|
17123
17122
|
um as s,
|
|
17124
17123
|
Wr as u
|
|
17125
17124
|
};
|
|
17126
|
-
//# sourceMappingURL=Markdown-
|
|
17125
|
+
//# sourceMappingURL=Markdown-DqDbGCj2.js.map
|