@glodon-aiot/agent-cli-ui 3.9.0-beta.9 → 3.10.0-alpha.10

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.
Files changed (88) hide show
  1. package/dist/es/Dialog/AgentChat/HistoryItem/SessionRefer/index.mjs +8 -8
  2. package/dist/es/Dialog/AgentChat/HistoryItem/index.mjs +4 -4
  3. package/dist/es/ReactTextGenerationUI/components/TextSiders/index.mjs +51 -51
  4. package/dist/es/packages/agent-cli-ui/package.json.mjs +11 -11
  5. package/dist/es/packages/react-components/dist/es/components/Markdown/index.mjs +22 -23
  6. package/dist/es/packages/react-components/dist/es/index.mjs +1 -1
  7. package/dist/es/src/style11.css +1 -1
  8. package/dist/es/src/style13.css +1 -1
  9. package/dist/es/src/style14.css +1 -1
  10. package/dist/es/src/style15.css +1 -1
  11. package/dist/es/src/style16.css +1 -1
  12. package/dist/es/src/style17.css +1 -1
  13. package/dist/es/src/style18.css +1 -1
  14. package/dist/es/src/style19.css +1 -1
  15. package/dist/es/src/style20.css +1 -1
  16. package/dist/es/src/style26.css +1 -1
  17. package/dist/es/src/style27.css +1 -1
  18. package/dist/es/src/style29.css +1 -1
  19. package/dist/es/src/style30.css +1 -1
  20. package/dist/es/src/style31.css +1 -1
  21. package/dist/es/src/style32.css +1 -1
  22. package/dist/lib/index.js +69 -70
  23. package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/fetch.d.ts +44 -0
  24. package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/index.d.ts +1 -0
  25. package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/parse.d.ts +36 -0
  26. package/dist/src/utils/reactCompatibility.d.ts +27 -0
  27. package/dist/src/utils/testAntdPrefix.d.ts +3 -0
  28. package/package.json +3 -3
  29. package/dist/es/node_modules/hast-util-from-parse5/lib/index.mjs +0 -162
  30. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/index.mjs +0 -12
  31. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/aria.mjs +0 -61
  32. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/find.mjs +0 -33
  33. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/html.mjs +0 -368
  34. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/normalize.mjs +0 -6
  35. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/svg.mjs +0 -566
  36. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/case-insensitive-transform.mjs +0 -7
  37. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/case-sensitive-transform.mjs +0 -6
  38. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/create.mjs +0 -14
  39. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/defined-info.mjs +0 -36
  40. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/info.mjs +0 -28
  41. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/merge.mjs +0 -10
  42. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/schema.mjs +0 -21
  43. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/types.mjs +0 -15
  44. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/xlink.mjs +0 -19
  45. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/xml.mjs +0 -15
  46. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/xmlns.mjs +0 -16
  47. package/dist/es/node_modules/hast-util-from-parse5/node_modules/vfile-location/lib/index.mjs +0 -47
  48. package/dist/es/node_modules/hast-util-from-parse5/node_modules/web-namespaces/index.mjs +0 -11
  49. package/dist/es/node_modules/rehype-raw/lib/index.mjs +0 -26
  50. package/dist/es/node_modules/rehype-raw/node_modules/entities/dist/esm/decode-codepoint.mjs +0 -38
  51. package/dist/es/node_modules/rehype-raw/node_modules/entities/dist/esm/decode.mjs +0 -251
  52. package/dist/es/node_modules/rehype-raw/node_modules/entities/dist/esm/generated/decode-data-html.mjs +0 -7
  53. package/dist/es/node_modules/rehype-raw/node_modules/hast-util-raw/lib/index.mjs +0 -249
  54. package/dist/es/node_modules/rehype-raw/node_modules/hast-util-to-parse5/lib/index.mjs +0 -125
  55. package/dist/es/node_modules/rehype-raw/node_modules/html-void-elements/index.mjs +0 -4
  56. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/doctype.mjs +0 -34
  57. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/error-codes.mjs +0 -7
  58. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/foreign-content.mjs +0 -103
  59. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/html.mjs +0 -44
  60. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/token.mjs +0 -14
  61. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/unicode.mjs +0 -38
  62. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/parser/formatting-element-list.mjs +0 -91
  63. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/parser/index.mjs +0 -2308
  64. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/parser/open-element-stack.mjs +0 -220
  65. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/serializer/index.mjs +0 -2
  66. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/tokenizer/index.mjs +0 -1948
  67. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/tokenizer/preprocessor.mjs +0 -92
  68. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/tree-adapters/default.mjs +0 -173
  69. package/dist/es/node_modules/rehype-raw/node_modules/property-information/index.mjs +0 -12
  70. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/aria.mjs +0 -61
  71. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/find.mjs +0 -33
  72. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/html.mjs +0 -368
  73. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/normalize.mjs +0 -6
  74. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/svg.mjs +0 -566
  75. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/case-insensitive-transform.mjs +0 -7
  76. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/case-sensitive-transform.mjs +0 -6
  77. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/create.mjs +0 -17
  78. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/defined-info.mjs +0 -27
  79. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/info.mjs +0 -23
  80. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/merge.mjs +0 -11
  81. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/schema.mjs +0 -17
  82. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/types.mjs +0 -15
  83. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/xlink.mjs +0 -19
  84. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/xml.mjs +0 -15
  85. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/xmlns.mjs +0 -16
  86. package/dist/es/node_modules/rehype-raw/node_modules/unist-util-visit/lib/index.mjs +0 -16
  87. package/dist/es/node_modules/rehype-raw/node_modules/web-namespaces/index.mjs +0 -11
  88. package/dist/es/node_modules/zwitch/index.mjs +0 -18
@@ -1,249 +0,0 @@
1
- var S = Object.defineProperty, P = Object.defineProperties;
2
- var _ = Object.getOwnPropertyDescriptors;
3
- var z = Object.getOwnPropertySymbols;
4
- var D = Object.prototype.hasOwnProperty, R = Object.prototype.propertyIsEnumerable;
5
- var y = (r, e, n) => e in r ? S(r, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : r[e] = n, h = (r, e) => {
6
- for (var n in e || (e = {}))
7
- D.call(e, n) && y(r, n, e[n]);
8
- if (z)
9
- for (var n of z(e))
10
- R.call(e, n) && y(r, n, e[n]);
11
- return r;
12
- }, d = (r, e) => P(r, _(e));
13
- import C from "../../../../@ungap/structured-clone/esm/index.mjs";
14
- import { htmlVoidElements as b } from "../../html-void-elements/index.mjs";
15
- import { Parser as w } from "../../parse5/dist/parser/index.mjs";
16
- import { getTagID as E } from "../../parse5/dist/common/html.mjs";
17
- import "../../parse5/dist/serializer/index.mjs";
18
- import "../../parse5/dist/common/error-codes.mjs";
19
- import "../../parse5/dist/common/foreign-content.mjs";
20
- import { TokenType as p } from "../../parse5/dist/common/token.mjs";
21
- import { TokenizerMode as i } from "../../parse5/dist/tokenizer/index.mjs";
22
- import { webNamespaces as f } from "../../web-namespaces/index.mjs";
23
- import { zwitch as O } from "../../../../zwitch/index.mjs";
24
- import { pointStart as a, pointEnd as A } from "../../../../unist-util-position/lib/index.mjs";
25
- import { fromParse5 as M } from "../../../../hast-util-from-parse5/lib/index.mjs";
26
- import { visit as F } from "../../unist-util-visit/lib/index.mjs";
27
- import { toParse5 as X } from "../../hast-util-to-parse5/lib/index.mjs";
28
- const W = /<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi, G = /* @__PURE__ */ new Set(["mdxFlowExpression", "mdxJsxFlowElement", "mdxJsxTextElement", "mdxTextExpression", "mdxjsEsm"]), x = {
29
- sourceCodeLocationInfo: !0,
30
- scriptingEnabled: !1
31
- };
32
- function j(r, e) {
33
- const n = K(r), o = O("type", {
34
- handlers: {
35
- root: B,
36
- element: H,
37
- text: J,
38
- comment: N,
39
- doctype: U,
40
- raw: Q
41
- },
42
- unknown: V
43
- }), t = {
44
- parser: n ? new w(x) : w.getFragmentParser(void 0, x),
45
- handle(m) {
46
- o(m, t);
47
- },
48
- stitches: !1,
49
- options: e || {}
50
- };
51
- o(r, t), c(t, a());
52
- const u = n ? t.parser.document : t.parser.getFragment(), s = M(u, {
53
- // To do: support `space`?
54
- file: t.options.file
55
- });
56
- return t.stitches && F(s, "comment", function(m, k, T) {
57
- const g = (
58
- /** @type {Stitch} */
59
- /** @type {unknown} */
60
- m
61
- );
62
- if (g.value.stitch && T && k !== void 0) {
63
- const I = T.children;
64
- return I[k] = g.value.stitch, k;
65
- }
66
- }), s.type === "root" && s.children.length === 1 && s.children[0].type === r.type ? s.children[0] : s;
67
- }
68
- function L(r, e) {
69
- let n = -1;
70
- if (r)
71
- for (; ++n < r.length; )
72
- e.handle(r[n]);
73
- }
74
- function B(r, e) {
75
- L(r.children, e);
76
- }
77
- function H(r, e) {
78
- Y(r, e), L(r.children, e), q(r, e);
79
- }
80
- function J(r, e) {
81
- e.parser.tokenizer.state > 4 && (e.parser.tokenizer.state = 0);
82
- const n = {
83
- type: p.CHARACTER,
84
- chars: r.value,
85
- location: l(r)
86
- };
87
- c(e, a(r)), e.parser.currentToken = n, e.parser._processToken(e.parser.currentToken);
88
- }
89
- function U(r, e) {
90
- const n = {
91
- type: p.DOCTYPE,
92
- name: "html",
93
- forceQuirks: !1,
94
- publicId: "",
95
- systemId: "",
96
- location: l(r)
97
- };
98
- c(e, a(r)), e.parser.currentToken = n, e.parser._processToken(e.parser.currentToken);
99
- }
100
- function $(r, e) {
101
- e.stitches = !0;
102
- const n = Z(r);
103
- if ("children" in r && "children" in n) {
104
- const o = (
105
- /** @type {Root} */
106
- j({
107
- type: "root",
108
- children: r.children
109
- }, e.options)
110
- );
111
- n.children = o.children;
112
- }
113
- N({
114
- type: "comment",
115
- value: {
116
- stitch: n
117
- }
118
- }, e);
119
- }
120
- function N(r, e) {
121
- const n = r.value, o = {
122
- type: p.COMMENT,
123
- data: n,
124
- location: l(r)
125
- };
126
- c(e, a(r)), e.parser.currentToken = o, e.parser._processToken(e.parser.currentToken);
127
- }
128
- function Q(r, e) {
129
- if (e.parser.tokenizer.preprocessor.html = "", e.parser.tokenizer.preprocessor.pos = -1, e.parser.tokenizer.preprocessor.lastGapPos = -2, e.parser.tokenizer.preprocessor.gapStack = [], e.parser.tokenizer.preprocessor.skipNextNewLine = !1, e.parser.tokenizer.preprocessor.lastChunkWritten = !1, e.parser.tokenizer.preprocessor.endOfChunkHit = !1, e.parser.tokenizer.preprocessor.isEol = !1, v(e, a(r)), e.parser.tokenizer.write(e.options.tagfilter ? r.value.replace(W, "&lt;$1$2") : r.value, !1), e.parser.tokenizer._runParsingLoop(), e.parser.tokenizer.state === 72 || // @ts-expect-error: removed.
130
- e.parser.tokenizer.state === 78) {
131
- e.parser.tokenizer.preprocessor.lastChunkWritten = !0;
132
- const n = e.parser.tokenizer._consume();
133
- e.parser.tokenizer._callState(n);
134
- }
135
- }
136
- function V(r, e) {
137
- const n = (
138
- /** @type {Nodes} */
139
- r
140
- );
141
- if (e.options.passThrough && e.options.passThrough.includes(n.type))
142
- $(n, e);
143
- else {
144
- let o = "";
145
- throw G.has(n.type) && (o = ". 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" + o);
146
- }
147
- }
148
- function c(r, e) {
149
- v(r, e);
150
- const n = r.parser.tokenizer.currentCharacterToken;
151
- n && n.location && (n.location.endLine = r.parser.tokenizer.preprocessor.line, n.location.endCol = r.parser.tokenizer.preprocessor.col + 1, n.location.endOffset = r.parser.tokenizer.preprocessor.offset + 1, r.parser.currentToken = n, r.parser._processToken(r.parser.currentToken)), r.parser.tokenizer.paused = !1, r.parser.tokenizer.inLoop = !1, r.parser.tokenizer.active = !1, r.parser.tokenizer.returnState = i.DATA, r.parser.tokenizer.charRefCode = -1, r.parser.tokenizer.consumedAfterSnapshot = -1, r.parser.tokenizer.currentLocation = null, r.parser.tokenizer.currentCharacterToken = null, r.parser.tokenizer.currentToken = null, r.parser.tokenizer.currentAttr = {
152
- name: "",
153
- value: ""
154
- };
155
- }
156
- function v(r, e) {
157
- if (e && e.offset !== void 0) {
158
- const n = {
159
- startLine: e.line,
160
- startCol: e.column,
161
- startOffset: e.offset,
162
- endLine: -1,
163
- endCol: -1,
164
- endOffset: -1
165
- };
166
- r.parser.tokenizer.preprocessor.lineStartPos = -e.column + 1, r.parser.tokenizer.preprocessor.droppedBufferSize = e.offset, r.parser.tokenizer.preprocessor.line = e.line, r.parser.tokenizer.currentLocation = n;
167
- }
168
- }
169
- function Y(r, e) {
170
- const n = r.tagName.toLowerCase();
171
- if (e.parser.tokenizer.state === i.PLAINTEXT)
172
- return;
173
- c(e, a(r));
174
- const o = e.parser.openElements.current;
175
- let t = "namespaceURI" in o ? o.namespaceURI : f.html;
176
- t === f.html && n === "svg" && (t = f.svg);
177
- const u = X(
178
- // Shallow clone to not delve into `children`: we only need the attributes.
179
- d(h({}, r), {
180
- children: []
181
- }),
182
- {
183
- space: t === f.svg ? "svg" : "html"
184
- }
185
- ), s = {
186
- type: p.START_TAG,
187
- tagName: n,
188
- tagID: E(n),
189
- // We always send start and end tags.
190
- selfClosing: !1,
191
- ackSelfClosing: !1,
192
- // Always element.
193
- /* c8 ignore next */
194
- attrs: "attrs" in u ? u.attrs : [],
195
- location: l(r)
196
- };
197
- e.parser.currentToken = s, e.parser._processToken(e.parser.currentToken), e.parser.tokenizer.lastStartTagName = n;
198
- }
199
- function q(r, e) {
200
- const n = r.tagName.toLowerCase();
201
- if (!e.parser.tokenizer.inForeignNode && b.includes(n) || e.parser.tokenizer.state === i.PLAINTEXT)
202
- return;
203
- c(e, A(r));
204
- const o = {
205
- type: p.END_TAG,
206
- tagName: n,
207
- tagID: E(n),
208
- selfClosing: !1,
209
- ackSelfClosing: !1,
210
- attrs: [],
211
- location: l(r)
212
- };
213
- e.parser.currentToken = o, e.parser._processToken(e.parser.currentToken), // Current element is closed.
214
- n === e.parser.tokenizer.lastStartTagName && // `<textarea>` and `<title>`
215
- (e.parser.tokenizer.state === i.RCDATA || // `<iframe>`, `<noembed>`, `<noframes>`, `<style>`, `<xmp>`
216
- e.parser.tokenizer.state === i.RAWTEXT || // `<script>`
217
- e.parser.tokenizer.state === i.SCRIPT_DATA) && (e.parser.tokenizer.state = i.DATA);
218
- }
219
- function K(r) {
220
- const e = r.type === "root" ? r.children[0] : r;
221
- return !!(e && (e.type === "doctype" || e.type === "element" && e.tagName.toLowerCase() === "html"));
222
- }
223
- function l(r) {
224
- const e = a(r) || {
225
- line: void 0,
226
- column: void 0,
227
- offset: void 0
228
- }, n = A(r) || {
229
- line: void 0,
230
- column: void 0,
231
- offset: void 0
232
- };
233
- return {
234
- startLine: e.line,
235
- startCol: e.column,
236
- startOffset: e.offset,
237
- endLine: n.line,
238
- endCol: n.column,
239
- endOffset: n.offset
240
- };
241
- }
242
- function Z(r) {
243
- return "children" in r ? C(d(h({}, r), {
244
- children: []
245
- })) : C(r);
246
- }
247
- export {
248
- j as raw
249
- };
@@ -1,125 +0,0 @@
1
- import { stringify as N } from "../../../../comma-separated-tokens/index.mjs";
2
- import { ok as p } from "../../../../devlop/lib/default.mjs";
3
- import { svg as f, html as h } from "../../property-information/index.mjs";
4
- import { stringify as g } from "../../../../space-separated-tokens/index.mjs";
5
- import { webNamespaces as l } from "../../web-namespaces/index.mjs";
6
- import { zwitch as y } from "../../../../zwitch/index.mjs";
7
- import { find as b } from "../../property-information/lib/find.mjs";
8
- const x = {}, w = {}.hasOwnProperty, u = y("type", {
9
- handlers: {
10
- root: O,
11
- element: q,
12
- text: L,
13
- comment: S,
14
- doctype: C
15
- }
16
- });
17
- function $(e, n) {
18
- const r = (n || x).space;
19
- return u(e, r === "svg" ? f : h);
20
- }
21
- function O(e, n) {
22
- const t = {
23
- nodeName: "#document",
24
- // @ts-expect-error: `parse5` uses enums, which are actually strings.
25
- mode: (e.data || {}).quirksMode ? "quirks" : "no-quirks",
26
- childNodes: []
27
- };
28
- return t.childNodes = a(e.children, t, n), i(e, t), t;
29
- }
30
- function k(e, n) {
31
- const t = {
32
- nodeName: "#document-fragment",
33
- childNodes: []
34
- };
35
- return t.childNodes = a(e.children, t, n), i(e, t), t;
36
- }
37
- function C(e) {
38
- const n = {
39
- nodeName: "#documentType",
40
- name: "html",
41
- publicId: "",
42
- systemId: "",
43
- parentNode: null
44
- };
45
- return i(e, n), n;
46
- }
47
- function L(e) {
48
- const n = {
49
- nodeName: "#text",
50
- value: e.value,
51
- parentNode: null
52
- };
53
- return i(e, n), n;
54
- }
55
- function S(e) {
56
- const n = {
57
- nodeName: "#comment",
58
- data: e.value,
59
- parentNode: null
60
- };
61
- return i(e, n), n;
62
- }
63
- function q(e, n) {
64
- const t = n;
65
- let r = t;
66
- e.type === "element" && e.tagName.toLowerCase() === "svg" && t.space === "html" && (r = f);
67
- const s = [];
68
- let o;
69
- if (e.properties) {
70
- for (o in e.properties)
71
- if (o !== "children" && w.call(e.properties, o)) {
72
- const m = I(r, o, e.properties[o]);
73
- m && s.push(m);
74
- }
75
- }
76
- const d = r.space, c = {
77
- nodeName: e.tagName,
78
- tagName: e.tagName,
79
- attrs: s,
80
- // @ts-expect-error: `parse5` types are wrong.
81
- namespaceURI: l[d],
82
- childNodes: [],
83
- parentNode: null
84
- };
85
- return c.childNodes = a(e.children, c, r), i(e, c), e.tagName === "template" && e.content && (c.content = k(e.content, r)), c;
86
- }
87
- function I(e, n, t) {
88
- const r = b(e, n);
89
- if (t === !1 || t === null || t === void 0 || typeof t == "number" && Number.isNaN(t) || !t && r.boolean)
90
- return;
91
- Array.isArray(t) && (t = r.commaSeparated ? N(t) : g(t));
92
- const s = {
93
- name: r.attribute,
94
- value: t === !0 ? "" : String(t)
95
- };
96
- if (r.space && r.space !== "html" && r.space !== "svg") {
97
- const o = s.name.indexOf(":");
98
- o < 0 ? s.prefix = "" : (s.name = s.name.slice(o + 1), s.prefix = r.attribute.slice(0, o)), s.namespace = l[r.space];
99
- }
100
- return s;
101
- }
102
- function a(e, n, t) {
103
- let r = -1;
104
- const s = [];
105
- if (e)
106
- for (; ++r < e.length; ) {
107
- const o = u(e[r], t);
108
- o.parentNode = n, s.push(o);
109
- }
110
- return s;
111
- }
112
- function i(e, n) {
113
- const t = e.position;
114
- t && t.start && t.end && (p(typeof t.start.offset == "number"), p(typeof t.end.offset == "number"), n.sourceCodeLocation = {
115
- startLine: t.start.line,
116
- startCol: t.start.column,
117
- startOffset: t.start.offset,
118
- endLine: t.end.line,
119
- endCol: t.end.column,
120
- endOffset: t.end.offset
121
- });
122
- }
123
- export {
124
- $ as toParse5
125
- };
@@ -1,4 +0,0 @@
1
- const e = ["area", "base", "basefont", "bgsound", "br", "col", "command", "embed", "frame", "hr", "image", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"];
2
- export {
3
- e as htmlVoidElements
4
- };
@@ -1,34 +0,0 @@
1
- import { DOCUMENT_MODE as l } from "./html.mjs";
2
- const s = "html", n = "about:legacy-compat", h = "http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd", r = ["+//silmaril//dtd html pro v0r11 19970101//", "-//as//dtd html 3.0 aswedit + extensions//", "-//advasoft ltd//dtd html 3.0 aswedit + extensions//", "-//ietf//dtd html 2.0 level 1//", "-//ietf//dtd html 2.0 level 2//", "-//ietf//dtd html 2.0 strict level 1//", "-//ietf//dtd html 2.0 strict level 2//", "-//ietf//dtd html 2.0 strict//", "-//ietf//dtd html 2.0//", "-//ietf//dtd html 2.1e//", "-//ietf//dtd html 3.0//", "-//ietf//dtd html 3.2 final//", "-//ietf//dtd html 3.2//", "-//ietf//dtd html 3//", "-//ietf//dtd html level 0//", "-//ietf//dtd html level 1//", "-//ietf//dtd html level 2//", "-//ietf//dtd html level 3//", "-//ietf//dtd html strict level 0//", "-//ietf//dtd html strict level 1//", "-//ietf//dtd html strict level 2//", "-//ietf//dtd html strict level 3//", "-//ietf//dtd html strict//", "-//ietf//dtd html//", "-//metrius//dtd metrius presentational//", "-//microsoft//dtd internet explorer 2.0 html strict//", "-//microsoft//dtd internet explorer 2.0 html//", "-//microsoft//dtd internet explorer 2.0 tables//", "-//microsoft//dtd internet explorer 3.0 html strict//", "-//microsoft//dtd internet explorer 3.0 html//", "-//microsoft//dtd internet explorer 3.0 tables//", "-//netscape comm. corp.//dtd html//", "-//netscape comm. corp.//dtd strict html//", "-//o'reilly and associates//dtd html 2.0//", "-//o'reilly and associates//dtd html extended 1.0//", "-//o'reilly and associates//dtd html extended relaxed 1.0//", "-//sq//dtd html 2.0 hotmetal + extensions//", "-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//", "-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//", "-//spyglass//dtd html 2.0 extended//", "-//sun microsystems corp.//dtd hotjava html//", "-//sun microsystems corp.//dtd hotjava strict html//", "-//w3c//dtd html 3 1995-03-24//", "-//w3c//dtd html 3.2 draft//", "-//w3c//dtd html 3.2 final//", "-//w3c//dtd html 3.2//", "-//w3c//dtd html 3.2s draft//", "-//w3c//dtd html 4.0 frameset//", "-//w3c//dtd html 4.0 transitional//", "-//w3c//dtd html experimental 19960712//", "-//w3c//dtd html experimental 970421//", "-//w3c//dtd w3 html//", "-//w3o//dtd w3 html 3.0//", "-//webtechs//dtd mozilla html 2.0//", "-//webtechs//dtd mozilla html//"], a = [...r, "-//w3c//dtd html 4.01 frameset//", "-//w3c//dtd html 4.01 transitional//"], c = /* @__PURE__ */ new Set(["-//w3o//dtd w3 html strict 3.0//en//", "-/w3c/dtd html 4.0 transitional/en", "html"]), o = ["-//w3c//dtd xhtml 1.0 frameset//", "-//w3c//dtd xhtml 1.0 transitional//"], f = [...o, "-//w3c//dtd html 4.01 frameset//", "-//w3c//dtd html 4.01 transitional//"];
3
- function i(t, d) {
4
- return d.some((e) => t.startsWith(e));
5
- }
6
- function _(t) {
7
- return t.name === s && t.publicId === null && (t.systemId === null || t.systemId === n);
8
- }
9
- function w(t) {
10
- if (t.name !== s)
11
- return l.QUIRKS;
12
- const {
13
- systemId: d
14
- } = t;
15
- if (d && d.toLowerCase() === h)
16
- return l.QUIRKS;
17
- let {
18
- publicId: e
19
- } = t;
20
- if (e !== null) {
21
- if (e = e.toLowerCase(), c.has(e))
22
- return l.QUIRKS;
23
- let m = d === null ? a : r;
24
- if (i(e, m))
25
- return l.QUIRKS;
26
- if (m = d === null ? o : f, i(e, m))
27
- return l.LIMITED_QUIRKS;
28
- }
29
- return l.NO_QUIRKS;
30
- }
31
- export {
32
- w as getDocumentMode,
33
- _ as isConforming
34
- };
@@ -1,7 +0,0 @@
1
- var t;
2
- (function(e) {
3
- 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";
4
- })(t || (t = {}));
5
- export {
6
- t as ERR
7
- };
@@ -1,103 +0,0 @@
1
- import { NS as n, TAG_ID as e, ATTRS as s, getTagID as f } from "./html.mjs";
2
- const o = {
3
- TEXT_HTML: "text/html",
4
- APPLICATION_XML: "application/xhtml+xml"
5
- }, m = "definitionurl", p = "definitionURL", T = new Map(["attributeName", "attributeType", "baseFrequency", "baseProfile", "calcMode", "clipPathUnits", "diffuseConstant", "edgeMode", "filterUnits", "glyphRef", "gradientTransform", "gradientUnits", "kernelMatrix", "kernelUnitLength", "keyPoints", "keySplines", "keyTimes", "lengthAdjust", "limitingConeAngle", "markerHeight", "markerUnits", "markerWidth", "maskContentUnits", "maskUnits", "numOctaves", "pathLength", "patternContentUnits", "patternTransform", "patternUnits", "pointsAtX", "pointsAtY", "pointsAtZ", "preserveAlpha", "preserveAspectRatio", "primitiveUnits", "refX", "refY", "repeatCount", "repeatDur", "requiredExtensions", "requiredFeatures", "specularConstant", "specularExponent", "spreadMethod", "startOffset", "stdDeviation", "stitchTiles", "surfaceScale", "systemLanguage", "tableValues", "targetX", "targetY", "textLength", "viewBox", "viewTarget", "xChannelSelector", "yChannelSelector", "zoomAndPan"].map((t) => [t.toLowerCase(), t])), c = /* @__PURE__ */ new Map([["xlink:actuate", {
6
- prefix: "xlink",
7
- name: "actuate",
8
- namespace: n.XLINK
9
- }], ["xlink:arcrole", {
10
- prefix: "xlink",
11
- name: "arcrole",
12
- namespace: n.XLINK
13
- }], ["xlink:href", {
14
- prefix: "xlink",
15
- name: "href",
16
- namespace: n.XLINK
17
- }], ["xlink:role", {
18
- prefix: "xlink",
19
- name: "role",
20
- namespace: n.XLINK
21
- }], ["xlink:show", {
22
- prefix: "xlink",
23
- name: "show",
24
- namespace: n.XLINK
25
- }], ["xlink:title", {
26
- prefix: "xlink",
27
- name: "title",
28
- namespace: n.XLINK
29
- }], ["xlink:type", {
30
- prefix: "xlink",
31
- name: "type",
32
- namespace: n.XLINK
33
- }], ["xml:lang", {
34
- prefix: "xml",
35
- name: "lang",
36
- namespace: n.XML
37
- }], ["xml:space", {
38
- prefix: "xml",
39
- name: "space",
40
- namespace: n.XML
41
- }], ["xmlns", {
42
- prefix: "",
43
- name: "xmlns",
44
- namespace: n.XMLNS
45
- }], ["xmlns:xlink", {
46
- prefix: "xmlns",
47
- name: "xlink",
48
- namespace: n.XMLNS
49
- }]]), M = new Map(["altGlyph", "altGlyphDef", "altGlyphItem", "animateColor", "animateMotion", "animateTransform", "clipPath", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "foreignObject", "glyphRef", "linearGradient", "radialGradient", "textPath"].map((t) => [t.toLowerCase(), t])), u = /* @__PURE__ */ new Set([e.B, e.BIG, e.BLOCKQUOTE, e.BODY, e.BR, e.CENTER, e.CODE, e.DD, e.DIV, e.DL, e.DT, e.EM, e.EMBED, e.H1, e.H2, e.H3, e.H4, e.H5, e.H6, e.HEAD, e.HR, e.I, e.IMG, e.LI, e.LISTING, e.MENU, e.META, e.NOBR, e.OL, e.P, e.PRE, e.RUBY, e.S, e.SMALL, e.SPAN, e.STRONG, e.STRIKE, e.SUB, e.SUP, e.TABLE, e.TT, e.U, e.UL, e.VAR]);
50
- function g(t) {
51
- const a = t.tagID;
52
- return a === e.FONT && t.attrs.some(({
53
- name: r
54
- }) => r === s.COLOR || r === s.SIZE || r === s.FACE) || u.has(a);
55
- }
56
- function I(t) {
57
- for (let a = 0; a < t.attrs.length; a++)
58
- if (t.attrs[a].name === m) {
59
- t.attrs[a].name = p;
60
- break;
61
- }
62
- }
63
- function N(t) {
64
- for (let a = 0; a < t.attrs.length; a++) {
65
- const i = T.get(t.attrs[a].name);
66
- i != null && (t.attrs[a].name = i);
67
- }
68
- }
69
- function h(t) {
70
- for (let a = 0; a < t.attrs.length; a++) {
71
- const i = c.get(t.attrs[a].name);
72
- i && (t.attrs[a].prefix = i.prefix, t.attrs[a].name = i.name, t.attrs[a].namespace = i.namespace);
73
- }
74
- }
75
- function E(t) {
76
- const a = M.get(t.tagName);
77
- a != null && (t.tagName = a, t.tagID = f(t.tagName));
78
- }
79
- function x(t, a) {
80
- return a === n.MATHML && (t === e.MI || t === e.MO || t === e.MN || t === e.MS || t === e.MTEXT);
81
- }
82
- function L(t, a, i) {
83
- if (a === n.MATHML && t === e.ANNOTATION_XML) {
84
- for (let r = 0; r < i.length; r++)
85
- if (i[r].name === s.ENCODING) {
86
- const l = i[r].value.toLowerCase();
87
- return l === o.TEXT_HTML || l === o.APPLICATION_XML;
88
- }
89
- }
90
- return a === n.SVG && (t === e.FOREIGN_OBJECT || t === e.DESC || t === e.TITLE);
91
- }
92
- function S(t, a, i, r) {
93
- return (!r || r === n.HTML) && L(t, a, i) || (!r || r === n.MATHML) && x(t, a);
94
- }
95
- export {
96
- M as SVG_TAG_NAMES_ADJUSTMENT_MAP,
97
- I as adjustTokenMathMLAttrs,
98
- N as adjustTokenSVGAttrs,
99
- E as adjustTokenSVGTagName,
100
- h as adjustTokenXMLAttrs,
101
- g as causesExit,
102
- S as isIntegrationPoint
103
- };
@@ -1,44 +0,0 @@
1
- var P;
2
- (function(E) {
3
- E.HTML = "http://www.w3.org/1999/xhtml", E.MATHML = "http://www.w3.org/1998/Math/MathML", E.SVG = "http://www.w3.org/2000/svg", E.XLINK = "http://www.w3.org/1999/xlink", E.XML = "http://www.w3.org/XML/1998/namespace", E.XMLNS = "http://www.w3.org/2000/xmlns/";
4
- })(P || (P = {}));
5
- var C;
6
- (function(E) {
7
- E.TYPE = "type", E.ACTION = "action", E.ENCODING = "encoding", E.PROMPT = "prompt", E.NAME = "name", E.COLOR = "color", E.FACE = "face", E.SIZE = "size";
8
- })(C || (C = {}));
9
- var H;
10
- (function(E) {
11
- E.NO_QUIRKS = "no-quirks", E.QUIRKS = "quirks", E.LIMITED_QUIRKS = "limited-quirks";
12
- })(H || (H = {}));
13
- var R;
14
- (function(E) {
15
- 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";
16
- })(R || (R = {}));
17
- var O;
18
- (function(E) {
19
- E[E.UNKNOWN = 0] = "UNKNOWN", E[E.A = 1] = "A", E[E.ADDRESS = 2] = "ADDRESS", E[E.ANNOTATION_XML = 3] = "ANNOTATION_XML", E[E.APPLET = 4] = "APPLET", E[E.AREA = 5] = "AREA", E[E.ARTICLE = 6] = "ARTICLE", E[E.ASIDE = 7] = "ASIDE", E[E.B = 8] = "B", E[E.BASE = 9] = "BASE", E[E.BASEFONT = 10] = "BASEFONT", E[E.BGSOUND = 11] = "BGSOUND", E[E.BIG = 12] = "BIG", E[E.BLOCKQUOTE = 13] = "BLOCKQUOTE", E[E.BODY = 14] = "BODY", E[E.BR = 15] = "BR", E[E.BUTTON = 16] = "BUTTON", E[E.CAPTION = 17] = "CAPTION", E[E.CENTER = 18] = "CENTER", E[E.CODE = 19] = "CODE", E[E.COL = 20] = "COL", E[E.COLGROUP = 21] = "COLGROUP", E[E.DD = 22] = "DD", E[E.DESC = 23] = "DESC", E[E.DETAILS = 24] = "DETAILS", E[E.DIALOG = 25] = "DIALOG", E[E.DIR = 26] = "DIR", E[E.DIV = 27] = "DIV", E[E.DL = 28] = "DL", E[E.DT = 29] = "DT", E[E.EM = 30] = "EM", E[E.EMBED = 31] = "EMBED", E[E.FIELDSET = 32] = "FIELDSET", E[E.FIGCAPTION = 33] = "FIGCAPTION", E[E.FIGURE = 34] = "FIGURE", E[E.FONT = 35] = "FONT", E[E.FOOTER = 36] = "FOOTER", E[E.FOREIGN_OBJECT = 37] = "FOREIGN_OBJECT", E[E.FORM = 38] = "FORM", E[E.FRAME = 39] = "FRAME", E[E.FRAMESET = 40] = "FRAMESET", E[E.H1 = 41] = "H1", E[E.H2 = 42] = "H2", E[E.H3 = 43] = "H3", E[E.H4 = 44] = "H4", E[E.H5 = 45] = "H5", E[E.H6 = 46] = "H6", E[E.HEAD = 47] = "HEAD", E[E.HEADER = 48] = "HEADER", E[E.HGROUP = 49] = "HGROUP", E[E.HR = 50] = "HR", E[E.HTML = 51] = "HTML", E[E.I = 52] = "I", E[E.IMG = 53] = "IMG", E[E.IMAGE = 54] = "IMAGE", E[E.INPUT = 55] = "INPUT", E[E.IFRAME = 56] = "IFRAME", E[E.KEYGEN = 57] = "KEYGEN", E[E.LABEL = 58] = "LABEL", E[E.LI = 59] = "LI", E[E.LINK = 60] = "LINK", E[E.LISTING = 61] = "LISTING", E[E.MAIN = 62] = "MAIN", E[E.MALIGNMARK = 63] = "MALIGNMARK", E[E.MARQUEE = 64] = "MARQUEE", E[E.MATH = 65] = "MATH", E[E.MENU = 66] = "MENU", E[E.META = 67] = "META", E[E.MGLYPH = 68] = "MGLYPH", E[E.MI = 69] = "MI", E[E.MO = 70] = "MO", E[E.MN = 71] = "MN", E[E.MS = 72] = "MS", E[E.MTEXT = 73] = "MTEXT", E[E.NAV = 74] = "NAV", E[E.NOBR = 75] = "NOBR", E[E.NOFRAMES = 76] = "NOFRAMES", E[E.NOEMBED = 77] = "NOEMBED", E[E.NOSCRIPT = 78] = "NOSCRIPT", E[E.OBJECT = 79] = "OBJECT", E[E.OL = 80] = "OL", E[E.OPTGROUP = 81] = "OPTGROUP", E[E.OPTION = 82] = "OPTION", E[E.P = 83] = "P", E[E.PARAM = 84] = "PARAM", E[E.PLAINTEXT = 85] = "PLAINTEXT", E[E.PRE = 86] = "PRE", E[E.RB = 87] = "RB", E[E.RP = 88] = "RP", E[E.RT = 89] = "RT", E[E.RTC = 90] = "RTC", E[E.RUBY = 91] = "RUBY", E[E.S = 92] = "S", E[E.SCRIPT = 93] = "SCRIPT", E[E.SEARCH = 94] = "SEARCH", E[E.SECTION = 95] = "SECTION", E[E.SELECT = 96] = "SELECT", E[E.SOURCE = 97] = "SOURCE", E[E.SMALL = 98] = "SMALL", E[E.SPAN = 99] = "SPAN", E[E.STRIKE = 100] = "STRIKE", E[E.STRONG = 101] = "STRONG", E[E.STYLE = 102] = "STYLE", E[E.SUB = 103] = "SUB", E[E.SUMMARY = 104] = "SUMMARY", E[E.SUP = 105] = "SUP", E[E.TABLE = 106] = "TABLE", E[E.TBODY = 107] = "TBODY", E[E.TEMPLATE = 108] = "TEMPLATE", E[E.TEXTAREA = 109] = "TEXTAREA", E[E.TFOOT = 110] = "TFOOT", E[E.TD = 111] = "TD", E[E.TH = 112] = "TH", E[E.THEAD = 113] = "THEAD", E[E.TITLE = 114] = "TITLE", E[E.TR = 115] = "TR", E[E.TRACK = 116] = "TRACK", E[E.TT = 117] = "TT", E[E.U = 118] = "U", E[E.UL = 119] = "UL", E[E.SVG = 120] = "SVG", E[E.VAR = 121] = "VAR", E[E.WBR = 122] = "WBR", E[E.XMP = 123] = "XMP";
20
- })(O || (O = {}));
21
- const U = /* @__PURE__ */ new Map([[R.A, O.A], [R.ADDRESS, O.ADDRESS], [R.ANNOTATION_XML, O.ANNOTATION_XML], [R.APPLET, O.APPLET], [R.AREA, O.AREA], [R.ARTICLE, O.ARTICLE], [R.ASIDE, O.ASIDE], [R.B, O.B], [R.BASE, O.BASE], [R.BASEFONT, O.BASEFONT], [R.BGSOUND, O.BGSOUND], [R.BIG, O.BIG], [R.BLOCKQUOTE, O.BLOCKQUOTE], [R.BODY, O.BODY], [R.BR, O.BR], [R.BUTTON, O.BUTTON], [R.CAPTION, O.CAPTION], [R.CENTER, O.CENTER], [R.CODE, O.CODE], [R.COL, O.COL], [R.COLGROUP, O.COLGROUP], [R.DD, O.DD], [R.DESC, O.DESC], [R.DETAILS, O.DETAILS], [R.DIALOG, O.DIALOG], [R.DIR, O.DIR], [R.DIV, O.DIV], [R.DL, O.DL], [R.DT, O.DT], [R.EM, O.EM], [R.EMBED, O.EMBED], [R.FIELDSET, O.FIELDSET], [R.FIGCAPTION, O.FIGCAPTION], [R.FIGURE, O.FIGURE], [R.FONT, O.FONT], [R.FOOTER, O.FOOTER], [R.FOREIGN_OBJECT, O.FOREIGN_OBJECT], [R.FORM, O.FORM], [R.FRAME, O.FRAME], [R.FRAMESET, O.FRAMESET], [R.H1, O.H1], [R.H2, O.H2], [R.H3, O.H3], [R.H4, O.H4], [R.H5, O.H5], [R.H6, O.H6], [R.HEAD, O.HEAD], [R.HEADER, O.HEADER], [R.HGROUP, O.HGROUP], [R.HR, O.HR], [R.HTML, O.HTML], [R.I, O.I], [R.IMG, O.IMG], [R.IMAGE, O.IMAGE], [R.INPUT, O.INPUT], [R.IFRAME, O.IFRAME], [R.KEYGEN, O.KEYGEN], [R.LABEL, O.LABEL], [R.LI, O.LI], [R.LINK, O.LINK], [R.LISTING, O.LISTING], [R.MAIN, O.MAIN], [R.MALIGNMARK, O.MALIGNMARK], [R.MARQUEE, O.MARQUEE], [R.MATH, O.MATH], [R.MENU, O.MENU], [R.META, O.META], [R.MGLYPH, O.MGLYPH], [R.MI, O.MI], [R.MO, O.MO], [R.MN, O.MN], [R.MS, O.MS], [R.MTEXT, O.MTEXT], [R.NAV, O.NAV], [R.NOBR, O.NOBR], [R.NOFRAMES, O.NOFRAMES], [R.NOEMBED, O.NOEMBED], [R.NOSCRIPT, O.NOSCRIPT], [R.OBJECT, O.OBJECT], [R.OL, O.OL], [R.OPTGROUP, O.OPTGROUP], [R.OPTION, O.OPTION], [R.P, O.P], [R.PARAM, O.PARAM], [R.PLAINTEXT, O.PLAINTEXT], [R.PRE, O.PRE], [R.RB, O.RB], [R.RP, O.RP], [R.RT, O.RT], [R.RTC, O.RTC], [R.RUBY, O.RUBY], [R.S, O.S], [R.SCRIPT, O.SCRIPT], [R.SEARCH, O.SEARCH], [R.SECTION, O.SECTION], [R.SELECT, O.SELECT], [R.SOURCE, O.SOURCE], [R.SMALL, O.SMALL], [R.SPAN, O.SPAN], [R.STRIKE, O.STRIKE], [R.STRONG, O.STRONG], [R.STYLE, O.STYLE], [R.SUB, O.SUB], [R.SUMMARY, O.SUMMARY], [R.SUP, O.SUP], [R.TABLE, O.TABLE], [R.TBODY, O.TBODY], [R.TEMPLATE, O.TEMPLATE], [R.TEXTAREA, O.TEXTAREA], [R.TFOOT, O.TFOOT], [R.TD, O.TD], [R.TH, O.TH], [R.THEAD, O.THEAD], [R.TITLE, O.TITLE], [R.TR, O.TR], [R.TRACK, O.TRACK], [R.TT, O.TT], [R.U, O.U], [R.UL, O.UL], [R.SVG, O.SVG], [R.VAR, O.VAR], [R.WBR, O.WBR], [R.XMP, O.XMP]]);
22
- function t(E) {
23
- var B;
24
- return (B = U.get(E)) !== null && B !== void 0 ? B : O.UNKNOWN;
25
- }
26
- const L = O, e = {
27
- [P.HTML]: /* @__PURE__ */ new Set([L.ADDRESS, L.APPLET, L.AREA, L.ARTICLE, L.ASIDE, L.BASE, L.BASEFONT, L.BGSOUND, L.BLOCKQUOTE, L.BODY, L.BR, L.BUTTON, L.CAPTION, L.CENTER, L.COL, L.COLGROUP, L.DD, L.DETAILS, L.DIR, L.DIV, L.DL, L.DT, L.EMBED, L.FIELDSET, L.FIGCAPTION, L.FIGURE, L.FOOTER, L.FORM, L.FRAME, L.FRAMESET, L.H1, L.H2, L.H3, L.H4, L.H5, L.H6, L.HEAD, L.HEADER, L.HGROUP, L.HR, L.HTML, L.IFRAME, L.IMG, L.INPUT, L.LI, L.LINK, L.LISTING, L.MAIN, L.MARQUEE, L.MENU, L.META, L.NAV, L.NOEMBED, L.NOFRAMES, L.NOSCRIPT, L.OBJECT, L.OL, L.P, L.PARAM, L.PLAINTEXT, L.PRE, L.SCRIPT, L.SECTION, L.SELECT, L.SOURCE, L.STYLE, L.SUMMARY, L.TABLE, L.TBODY, L.TD, L.TEMPLATE, L.TEXTAREA, L.TFOOT, L.TH, L.THEAD, L.TITLE, L.TR, L.TRACK, L.UL, L.WBR, L.XMP]),
28
- [P.MATHML]: /* @__PURE__ */ new Set([L.MI, L.MO, L.MN, L.MS, L.MTEXT, L.ANNOTATION_XML]),
29
- [P.SVG]: /* @__PURE__ */ new Set([L.TITLE, L.FOREIGN_OBJECT, L.DESC]),
30
- [P.XLINK]: /* @__PURE__ */ new Set(),
31
- [P.XML]: /* @__PURE__ */ new Set(),
32
- [P.XMLNS]: /* @__PURE__ */ new Set()
33
- }, M = /* @__PURE__ */ new Set([L.H1, L.H2, L.H3, L.H4, L.H5, L.H6]);
34
- R.STYLE, R.SCRIPT, R.XMP, R.IFRAME, R.NOEMBED, R.NOFRAMES, R.PLAINTEXT;
35
- export {
36
- C as ATTRS,
37
- H as DOCUMENT_MODE,
38
- P as NS,
39
- M as NUMBERED_HEADERS,
40
- e as SPECIAL_ELEMENTS,
41
- O as TAG_ID,
42
- R as TAG_NAMES,
43
- t as getTagID
44
- };
@@ -1,14 +0,0 @@
1
- var C;
2
- (function(A) {
3
- A[A.CHARACTER = 0] = "CHARACTER", A[A.NULL_CHARACTER = 1] = "NULL_CHARACTER", A[A.WHITESPACE_CHARACTER = 2] = "WHITESPACE_CHARACTER", A[A.START_TAG = 3] = "START_TAG", A[A.END_TAG = 4] = "END_TAG", A[A.COMMENT = 5] = "COMMENT", A[A.DOCTYPE = 6] = "DOCTYPE", A[A.EOF = 7] = "EOF", A[A.HIBERNATION = 8] = "HIBERNATION";
4
- })(C || (C = {}));
5
- function t(A, R) {
6
- for (let E = A.attrs.length - 1; E >= 0; E--)
7
- if (A.attrs[E].name === R)
8
- return A.attrs[E].value;
9
- return null;
10
- }
11
- export {
12
- C as TokenType,
13
- t as getTokenAttr
14
- };
@@ -1,38 +0,0 @@
1
- const n = /* @__PURE__ */ new Set([65534, 65535, 131070, 131071, 196606, 196607, 262142, 262143, 327678, 327679, 393214, 393215, 458750, 458751, 524286, 524287, 589822, 589823, 655358, 655359, 720894, 720895, 786430, 786431, 851966, 851967, 917502, 917503, 983038, 983039, 1048574, 1048575, 1114110, 1114111]), t = "�";
2
- var L;
3
- (function(A) {
4
- A[A.EOF = -1] = "EOF", A[A.NULL = 0] = "NULL", A[A.TABULATION = 9] = "TABULATION", A[A.CARRIAGE_RETURN = 13] = "CARRIAGE_RETURN", A[A.LINE_FEED = 10] = "LINE_FEED", A[A.FORM_FEED = 12] = "FORM_FEED", A[A.SPACE = 32] = "SPACE", A[A.EXCLAMATION_MARK = 33] = "EXCLAMATION_MARK", A[A.QUOTATION_MARK = 34] = "QUOTATION_MARK", A[A.AMPERSAND = 38] = "AMPERSAND", A[A.APOSTROPHE = 39] = "APOSTROPHE", A[A.HYPHEN_MINUS = 45] = "HYPHEN_MINUS", A[A.SOLIDUS = 47] = "SOLIDUS", A[A.DIGIT_0 = 48] = "DIGIT_0", A[A.DIGIT_9 = 57] = "DIGIT_9", A[A.SEMICOLON = 59] = "SEMICOLON", A[A.LESS_THAN_SIGN = 60] = "LESS_THAN_SIGN", A[A.EQUALS_SIGN = 61] = "EQUALS_SIGN", A[A.GREATER_THAN_SIGN = 62] = "GREATER_THAN_SIGN", A[A.QUESTION_MARK = 63] = "QUESTION_MARK", A[A.LATIN_CAPITAL_A = 65] = "LATIN_CAPITAL_A", A[A.LATIN_CAPITAL_Z = 90] = "LATIN_CAPITAL_Z", A[A.RIGHT_SQUARE_BRACKET = 93] = "RIGHT_SQUARE_BRACKET", A[A.GRAVE_ACCENT = 96] = "GRAVE_ACCENT", A[A.LATIN_SMALL_A = 97] = "LATIN_SMALL_A", A[A.LATIN_SMALL_Z = 122] = "LATIN_SMALL_Z";
5
- })(L || (L = {}));
6
- const o = {
7
- DASH_DASH: "--",
8
- CDATA_START: "[CDATA[",
9
- DOCTYPE: "doctype",
10
- SCRIPT: "script",
11
- PUBLIC: "public",
12
- SYSTEM: "system"
13
- };
14
- function r(A) {
15
- return A >= 55296 && A <= 57343;
16
- }
17
- function M(A) {
18
- return A >= 56320 && A <= 57343;
19
- }
20
- function U(A, R) {
21
- return (A - 55296) * 1024 + 9216 + R;
22
- }
23
- function e(A) {
24
- return A !== 32 && A !== 10 && A !== 13 && A !== 9 && A !== 12 && A >= 1 && A <= 31 || A >= 127 && A <= 159;
25
- }
26
- function i(A) {
27
- return A >= 64976 && A <= 65007 || n.has(A);
28
- }
29
- export {
30
- L as CODE_POINTS,
31
- t as REPLACEMENT_CHARACTER,
32
- o as SEQUENCES,
33
- U as getSurrogatePairCodePoint,
34
- e as isControlCodePoint,
35
- r as isSurrogate,
36
- M as isSurrogatePair,
37
- i as isUndefinedCodePoint
38
- };