//#region ../../node_modules/hast-util-raw/node_modules/parse5/dist/common/html.js
var e;
(function(e) {
	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/";
})(e ||= {});
var t;
(function(e) {
	e.TYPE = "type", e.ACTION = "action", e.ENCODING = "encoding", e.PROMPT = "prompt", e.NAME = "name", e.COLOR = "color", e.FACE = "face", e.SIZE = "size";
})(t ||= {});
var n;
(function(e) {
	e.NO_QUIRKS = "no-quirks", e.QUIRKS = "quirks", e.LIMITED_QUIRKS = "limited-quirks";
})(n ||= {});
var r;
(function(e) {
	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";
})(r ||= {});
var i;
(function(e) {
	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";
})(i ||= {});
var a = new Map([
	[r.A, i.A],
	[r.ADDRESS, i.ADDRESS],
	[r.ANNOTATION_XML, i.ANNOTATION_XML],
	[r.APPLET, i.APPLET],
	[r.AREA, i.AREA],
	[r.ARTICLE, i.ARTICLE],
	[r.ASIDE, i.ASIDE],
	[r.B, i.B],
	[r.BASE, i.BASE],
	[r.BASEFONT, i.BASEFONT],
	[r.BGSOUND, i.BGSOUND],
	[r.BIG, i.BIG],
	[r.BLOCKQUOTE, i.BLOCKQUOTE],
	[r.BODY, i.BODY],
	[r.BR, i.BR],
	[r.BUTTON, i.BUTTON],
	[r.CAPTION, i.CAPTION],
	[r.CENTER, i.CENTER],
	[r.CODE, i.CODE],
	[r.COL, i.COL],
	[r.COLGROUP, i.COLGROUP],
	[r.DD, i.DD],
	[r.DESC, i.DESC],
	[r.DETAILS, i.DETAILS],
	[r.DIALOG, i.DIALOG],
	[r.DIR, i.DIR],
	[r.DIV, i.DIV],
	[r.DL, i.DL],
	[r.DT, i.DT],
	[r.EM, i.EM],
	[r.EMBED, i.EMBED],
	[r.FIELDSET, i.FIELDSET],
	[r.FIGCAPTION, i.FIGCAPTION],
	[r.FIGURE, i.FIGURE],
	[r.FONT, i.FONT],
	[r.FOOTER, i.FOOTER],
	[r.FOREIGN_OBJECT, i.FOREIGN_OBJECT],
	[r.FORM, i.FORM],
	[r.FRAME, i.FRAME],
	[r.FRAMESET, i.FRAMESET],
	[r.H1, i.H1],
	[r.H2, i.H2],
	[r.H3, i.H3],
	[r.H4, i.H4],
	[r.H5, i.H5],
	[r.H6, i.H6],
	[r.HEAD, i.HEAD],
	[r.HEADER, i.HEADER],
	[r.HGROUP, i.HGROUP],
	[r.HR, i.HR],
	[r.HTML, i.HTML],
	[r.I, i.I],
	[r.IMG, i.IMG],
	[r.IMAGE, i.IMAGE],
	[r.INPUT, i.INPUT],
	[r.IFRAME, i.IFRAME],
	[r.KEYGEN, i.KEYGEN],
	[r.LABEL, i.LABEL],
	[r.LI, i.LI],
	[r.LINK, i.LINK],
	[r.LISTING, i.LISTING],
	[r.MAIN, i.MAIN],
	[r.MALIGNMARK, i.MALIGNMARK],
	[r.MARQUEE, i.MARQUEE],
	[r.MATH, i.MATH],
	[r.MENU, i.MENU],
	[r.META, i.META],
	[r.MGLYPH, i.MGLYPH],
	[r.MI, i.MI],
	[r.MO, i.MO],
	[r.MN, i.MN],
	[r.MS, i.MS],
	[r.MTEXT, i.MTEXT],
	[r.NAV, i.NAV],
	[r.NOBR, i.NOBR],
	[r.NOFRAMES, i.NOFRAMES],
	[r.NOEMBED, i.NOEMBED],
	[r.NOSCRIPT, i.NOSCRIPT],
	[r.OBJECT, i.OBJECT],
	[r.OL, i.OL],
	[r.OPTGROUP, i.OPTGROUP],
	[r.OPTION, i.OPTION],
	[r.P, i.P],
	[r.PARAM, i.PARAM],
	[r.PLAINTEXT, i.PLAINTEXT],
	[r.PRE, i.PRE],
	[r.RB, i.RB],
	[r.RP, i.RP],
	[r.RT, i.RT],
	[r.RTC, i.RTC],
	[r.RUBY, i.RUBY],
	[r.S, i.S],
	[r.SCRIPT, i.SCRIPT],
	[r.SEARCH, i.SEARCH],
	[r.SECTION, i.SECTION],
	[r.SELECT, i.SELECT],
	[r.SOURCE, i.SOURCE],
	[r.SMALL, i.SMALL],
	[r.SPAN, i.SPAN],
	[r.STRIKE, i.STRIKE],
	[r.STRONG, i.STRONG],
	[r.STYLE, i.STYLE],
	[r.SUB, i.SUB],
	[r.SUMMARY, i.SUMMARY],
	[r.SUP, i.SUP],
	[r.TABLE, i.TABLE],
	[r.TBODY, i.TBODY],
	[r.TEMPLATE, i.TEMPLATE],
	[r.TEXTAREA, i.TEXTAREA],
	[r.TFOOT, i.TFOOT],
	[r.TD, i.TD],
	[r.TH, i.TH],
	[r.THEAD, i.THEAD],
	[r.TITLE, i.TITLE],
	[r.TR, i.TR],
	[r.TRACK, i.TRACK],
	[r.TT, i.TT],
	[r.U, i.U],
	[r.UL, i.UL],
	[r.SVG, i.SVG],
	[r.VAR, i.VAR],
	[r.WBR, i.WBR],
	[r.XMP, i.XMP]
]);
function o(e) {
	return a.get(e) ?? i.UNKNOWN;
}
var s = i, c = {
	[e.HTML]: new Set([
		s.ADDRESS,
		s.APPLET,
		s.AREA,
		s.ARTICLE,
		s.ASIDE,
		s.BASE,
		s.BASEFONT,
		s.BGSOUND,
		s.BLOCKQUOTE,
		s.BODY,
		s.BR,
		s.BUTTON,
		s.CAPTION,
		s.CENTER,
		s.COL,
		s.COLGROUP,
		s.DD,
		s.DETAILS,
		s.DIR,
		s.DIV,
		s.DL,
		s.DT,
		s.EMBED,
		s.FIELDSET,
		s.FIGCAPTION,
		s.FIGURE,
		s.FOOTER,
		s.FORM,
		s.FRAME,
		s.FRAMESET,
		s.H1,
		s.H2,
		s.H3,
		s.H4,
		s.H5,
		s.H6,
		s.HEAD,
		s.HEADER,
		s.HGROUP,
		s.HR,
		s.HTML,
		s.IFRAME,
		s.IMG,
		s.INPUT,
		s.LI,
		s.LINK,
		s.LISTING,
		s.MAIN,
		s.MARQUEE,
		s.MENU,
		s.META,
		s.NAV,
		s.NOEMBED,
		s.NOFRAMES,
		s.NOSCRIPT,
		s.OBJECT,
		s.OL,
		s.P,
		s.PARAM,
		s.PLAINTEXT,
		s.PRE,
		s.SCRIPT,
		s.SECTION,
		s.SELECT,
		s.SOURCE,
		s.STYLE,
		s.SUMMARY,
		s.TABLE,
		s.TBODY,
		s.TD,
		s.TEMPLATE,
		s.TEXTAREA,
		s.TFOOT,
		s.TH,
		s.THEAD,
		s.TITLE,
		s.TR,
		s.TRACK,
		s.UL,
		s.WBR,
		s.XMP
	]),
	[e.MATHML]: new Set([
		s.MI,
		s.MO,
		s.MN,
		s.MS,
		s.MTEXT,
		s.ANNOTATION_XML
	]),
	[e.SVG]: new Set([
		s.TITLE,
		s.FOREIGN_OBJECT,
		s.DESC
	]),
	[e.XLINK]: /* @__PURE__ */ new Set(),
	[e.XML]: /* @__PURE__ */ new Set(),
	[e.XMLNS]: /* @__PURE__ */ new Set()
}, l = new Set([
	s.H1,
	s.H2,
	s.H3,
	s.H4,
	s.H5,
	s.H6
]);
new Set([
	r.STYLE,
	r.SCRIPT,
	r.XMP,
	r.IFRAME,
	r.NOEMBED,
	r.NOFRAMES,
	r.PLAINTEXT
]);
//#endregion
export { t as ATTRS, n as DOCUMENT_MODE, e as NS, l as NUMBERED_HEADERS, c as SPECIAL_ELEMENTS, i as TAG_ID, r as TAG_NAMES, o as getTagID };
