@limetech/lime-elements 40.19.0 → 40.20.1
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/CHANGELOG.md +28 -0
- package/dist/cjs/keyboard-navigation-VyqkMDKy.js +152 -0
- package/dist/cjs/lime-elements.cjs.js +1 -1
- package/dist/cjs/{limel-breadcrumbs_6.cjs.entry.js → limel-badge_7.cjs.entry.js} +33 -0
- package/dist/cjs/limel-chart.cjs.entry.js +51371 -268
- package/dist/cjs/limel-markdown.cjs.entry.js +2 -2
- package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +1 -1
- package/dist/cjs/limel-tab-bar.cjs.entry.js +6 -149
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{markdown-exporter-BWS2EBxq.js → markdown-exporter-CGNfjGr9.js} +80 -897
- package/dist/cjs/{markdown-parser-toAp9-Eq.js → markdown-parser-C14XF_G3.js} +994 -38
- package/dist/collection/components/chart/chart.css +75 -924
- package/dist/collection/components/chart/chart.js +332 -287
- package/dist/collection/components/chart/options.js +568 -0
- package/dist/collection/components/chart/scale.js +193 -0
- package/dist/collection/components/chart/theme.js +145 -0
- package/dist/collection/components/scroller/scroller.js +1 -1
- package/dist/esm/keyboard-navigation-BF7IKmnG.js +147 -0
- package/dist/esm/{keycodes-Bu6-QXrA.js → keycodes-DQ5DmW_Y.js} +1 -1
- package/dist/esm/lime-elements.js +1 -1
- package/dist/esm/{limel-breadcrumbs_6.entry.js → limel-badge_7.entry.js} +36 -4
- package/dist/esm/limel-chart.entry.js +51372 -269
- package/dist/esm/limel-chip-set.entry.js +1 -1
- package/dist/esm/limel-chip_2.entry.js +1 -1
- package/dist/esm/limel-markdown.entry.js +2 -2
- package/dist/esm/limel-pagination-jump.entry.js +1 -1
- package/dist/esm/limel-picker.entry.js +2 -2
- package/dist/esm/limel-popover_2.entry.js +1 -1
- package/dist/esm/limel-prosemirror-adapter.entry.js +1 -1
- package/dist/esm/limel-resize-handle.entry.js +1 -1
- package/dist/esm/limel-select.entry.js +2 -2
- package/dist/esm/limel-side-panel.entry.js +1 -1
- package/dist/esm/limel-tab-bar.entry.js +2 -145
- package/dist/esm/limel-text-editor-link-menu.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{markdown-exporter-B2vFxSLw.js → markdown-exporter-DcFcD699.js} +80 -897
- package/dist/esm/{markdown-parser-Cw8iW5R9.js → markdown-parser-8aHA9IYo.js} +991 -33
- package/dist/esm/{typeahead-DOlnT3wh.js → typeahead-B4PwrlM3.js} +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-d4702653.entry.js → p-07f3565b.entry.js} +1 -1
- package/dist/lime-elements/p-0887e0df.entry.js +56 -0
- package/dist/lime-elements/{p-0910aefc.entry.js → p-22e9e327.entry.js} +1 -1
- package/dist/lime-elements/{p-7bf3bf8a.entry.js → p-23067836.entry.js} +1 -1
- package/dist/lime-elements/{p-7f0743d6.entry.js → p-56e2fa48.entry.js} +1 -1
- package/dist/lime-elements/{p-af7d07fd.entry.js → p-5e408c27.entry.js} +1 -1
- package/dist/lime-elements/{p-843886fe.entry.js → p-7fcd48c6.entry.js} +1 -1
- package/dist/lime-elements/{p-1d9bc526.entry.js → p-9edd79a8.entry.js} +1 -1
- package/dist/lime-elements/p-C9gctvIB.js +1 -0
- package/dist/lime-elements/{p-fYs7n6yY.js → p-DNYOwOWu.js} +1 -1
- package/dist/lime-elements/{p-Bu6-QXrA.js → p-DQ5DmW_Y.js} +1 -1
- package/dist/lime-elements/p-_1yBt1pG.js +1 -0
- package/dist/lime-elements/p-a807a45f.entry.js +159 -0
- package/dist/lime-elements/{p-c2f993cc.entry.js → p-a891f3e8.entry.js} +1 -1
- package/dist/lime-elements/{p-45572e9d.entry.js → p-c8a34cef.entry.js} +1 -1
- package/dist/lime-elements/{p-4834e7c1.entry.js → p-cd479c23.entry.js} +1 -1
- package/dist/lime-elements/p-cf2d43c7.entry.js +1 -0
- package/dist/lime-elements/{p-94ae27e2.entry.js → p-f3b93ce8.entry.js} +2 -2
- package/dist/lime-elements/p-kiQd8Ntf.js +7 -0
- package/dist/types/components/chart/chart.d.ts +51 -52
- package/dist/types/components/chart/chart.types.d.ts +5 -0
- package/dist/types/components/chart/options.d.ts +88 -0
- package/dist/types/components/chart/scale.d.ts +101 -0
- package/dist/types/components/chart/theme.d.ts +52 -0
- package/dist/types/components.d.ts +7 -38
- package/package.json +4 -3
- package/dist/cjs/limel-badge.cjs.entry.js +0 -37
- package/dist/esm/limel-badge.entry.js +0 -35
- package/dist/lime-elements/p-02aac2c0.entry.js +0 -1
- package/dist/lime-elements/p-38ab193f.entry.js +0 -1
- package/dist/lime-elements/p-3ca188f6.entry.js +0 -159
- package/dist/lime-elements/p-Bd37Vplf.js +0 -7
- package/dist/lime-elements/p-CvHpvp0f.js +0 -1
- package/dist/lime-elements/p-f7a90228.entry.js +0 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import{g as e}from"./p-B85MJLTf.js";import{s as t,p as n,f as r,g as i,v as o,h as s,i as a,j as l,k as c,E as u,l as h,m as f,n as d,w as p,z as g,o as m,q as b,t as k,x as y,B as v,u as w,a as E,b as S,r as T,d as x}from"./p-CbPYnlF-.js";function C(e,t){return function(e){try{let t;return t=function(e){return e.startsWith("//")}(e)?new URL(window.location.protocol+e):new URL(e,window.location.origin),t.protocol.startsWith("http")&&t.hostname!==window.location.hostname}catch(e){return!1}}(e)?{href:e,title:t,target:"_blank",rel:"noopener noreferrer",referrerpolicy:"noreferrer"}:{href:e,title:t,target:null,rel:null,referrerpolicy:null}}const A={};function D(e){return R(e,"boolean"!=typeof A.includeImageAlt||A.includeImageAlt,"boolean"!=typeof A.includeHtml||A.includeHtml)}function R(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return _(e.children,t,n)}return Array.isArray(e)?_(e,t,n):""}function _(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=R(e[i],t,n);return r.join("")}const L={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"",InvisibleTimes:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""},N={}.hasOwnProperty;function I(e){return!!N.call(L,e)&&L[e]}function O(e,t,n,r){const i=e.length;let o,s=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);s<r.length;)o=r.slice(s,s+1e4),o.unshift(t,0),e.splice(...o),s+=1e4,t+=1e4}function M(e,t){return e.length>0?(O(e,e.length,0,t),e):t}const P={}.hasOwnProperty;function q(e){const t={};let n=-1;for(;++n<e.length;)F(t,e[n]);return t}function F(e,t){let n;for(n in t){const r=(P.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){P.call(r,o)||(r[o]=[]);const e=i[o];B(r[o],Array.isArray(e)?e:e?[e]:[])}}}function B(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);O(e,0,0,r)}function U(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCharCode(n)}function H(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const z=te(/\p{P}/u),j=te(/[A-Za-z]/),V=te(/[\dA-Za-z]/),G=te(/[#-'*+\--9=?A-Z^-~]/);function $(e){return null!==e&&(e<32||127===e)}const Y=te(/\d/),W=te(/[\dA-Fa-f]/),Q=te(/[!-/:-@[-`{-~]/);function K(e){return null!==e&&e<-2}function X(e){return null!==e&&(e<0||32===e)}function Z(e){return-2===e||-1===e||32===e}function J(e){return Q(e)||z(e)}const ee=te(/\s/);function te(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function ne(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let s="";if(37===o&&V(e.charCodeAt(n+1))&&V(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){const t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(s=String.fromCharCode(o,t),i=1):s="�"}else s=String.fromCharCode(o);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function re(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){return Z(r)?(e.enter(n),s(r)):t(r)};function s(r){return Z(r)&&o++<i?(e.consume(r),s):(e.exit(n),t(r))}}const ie={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),re(e,t,"linePrefix");e.consume(n)}),(function(t){return e.enter("paragraph"),r(t)}));let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,i(t)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):K(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),i)}}},oe={tokenize:function(e){const t=this,n=[];let r,i,o,s=0;return a;function a(r){if(s<n.length){const i=n[s];return t.containerState=i[1],e.attempt(i[0].continuation,l,c)(r)}return c(r)}function l(e){if(s++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&k();const n=t.events.length;let i,o=n;for(;o--;)if("exit"===t.events[o][0]&&"chunkFlow"===t.events[o][1].type){i=t.events[o][1].end;break}b(s);let a=n;for(;a<t.events.length;)t.events[a][1].end=Object.assign({},i),a++;return O(t.events,o+1,0,t.events.slice(n)),t.events.length=a,c(e)}return a(e)}function c(i){if(s===n.length){if(!r)return f(i);if(r.currentConstruct&&r.currentConstruct.concrete)return p(i);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(se,u,h)(i)}function u(e){return r&&k(),b(s),f(e)}function h(e){return t.parser.lazy[t.now().line]=s!==n.length,o=t.now().offset,p(e)}function f(n){return t.containerState={},e.attempt(se,d,p)(n)}function d(e){return s++,n.push([t.currentConstruct,t.containerState]),f(e)}function p(n){return null===n?(r&&k(),b(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:r}),g(n))}function g(n){return null===n?(m(e.exit("chunkFlow"),!0),b(0),void e.consume(n)):K(n)?(e.consume(n),m(e.exit("chunkFlow")),s=0,t.interrupt=void 0,a):(e.consume(n),g)}function m(e,n){const a=t.sliceStream(e);if(n&&a.push(null),e.previous=i,i&&(i.next=e),i=e,r.defineSkip(e.start),r.write(a),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<o&&(!r.events[e][1].end||r.events[e][1].end.offset>o))return;const n=t.events.length;let i,a,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(i){a=t.events[l][1].end;break}i=!0}for(b(s),e=n;e<t.events.length;)t.events[e][1].end=Object.assign({},a),e++;O(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function b(r){let i=n.length;for(;i-- >r;){const r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function k(){r.write([null]),i=void 0,r=void 0,t.containerState._closeFlow=void 0}}},se={tokenize:function(e,t,n){return re(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function ae(e){return null===e||X(e)||ee(e)?1:J(e)?2:void 0}function le(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const ce={name:"attention",tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=ae(r);let o;return function(t){return o=t,e.enter("attentionSequence"),s(t)};function s(a){if(a===o)return e.consume(a),s;const l=e.exit("attentionSequence"),c=ae(a),u=!c||2===c&&i||n.includes(a),h=!i||2===i&&c||n.includes(r);return l._open=Boolean(42===o?u:u&&(i||!h)),l._close=Boolean(42===o?h:h&&(c||!u)),t(a)}},resolveAll:function(e,t){let n,r,i,o,s,a,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;a=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const h=Object.assign({},e[n][1].end),f=Object.assign({},e[u][1].start);ue(h,-a),ue(f,a),o={type:a>1?"strongSequence":"emphasisSequence",start:h,end:Object.assign({},e[n][1].end)},s={type:a>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[u][1].start),end:f},i={type:a>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[u][1].start)},r={type:a>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[n][1].end=Object.assign({},o.start),e[u][1].start=Object.assign({},s.end),l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=M(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=M(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),l=M(l,le(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=M(l,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=M(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,O(e,n-1,u-n+3,l),u=n+l.length-c-2;break}for(u=-1;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e}};function ue(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const he={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return j(t)?(e.consume(t),o):l(t)}function o(e){return 43===e||45===e||46===e||V(e)?(r=1,s(e)):l(e)}function s(t){return 58===t?(e.consume(t),r=0,a):(43===t||45===t||46===t||V(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function a(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||$(r)?n(r):(e.consume(r),a)}function l(t){return 64===t?(e.consume(t),c):G(t)?(e.consume(t),l):n(t)}function c(e){return V(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):h(n)}function h(t){if((45===t||V(t))&&r++<63){const n=45===t?h:u;return e.consume(t),n}return n(t)}}},fe={tokenize:function(e,t,n){return function(t){return Z(t)?re(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||K(e)?t(e):n(e)}},partial:!0},de={name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return Z(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){const r=this;return function(t){return Z(t)?re(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(de,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}},pe={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return Q(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},ge={name:"characterReference",tokenize:function(e,t,n){const r=this;let i,o,s=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),i=31,o=V,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=W,c):(e.enter("characterReferenceValue"),i=7,o=Y,c(t))}function c(a){if(59===a&&s){const i=e.exit("characterReferenceValue");return o!==V||I(r.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return o(a)&&s++<i?(e.consume(a),c):n(a)}}},me={tokenize:function(e,t,n){const r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},be={name:"codeFenced",tokenize:function(e,t,n){const r=this,i={tokenize:function(e,t,n){let i=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s};function s(t){return e.enter("codeFencedFence"),Z(t)?re(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===o?(e.enter("codeFencedFenceSequence"),c(t)):n(t)}function c(t){return t===o?(i++,e.consume(t),c):i>=a?(e.exit("codeFencedFenceSequence"),Z(t)?re(e,u,"whitespace")(t):u(t)):n(t)}function u(r){return null===r||K(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0};let o,s=0,a=0;return function(t){return function(t){const n=r.events[r.events.length-1];return s=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,o=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===o?(a++,e.consume(t),l):a<3?n(t):(e.exit("codeFencedFenceSequence"),Z(t)?re(e,c,"whitespace")(t):c(t))}function c(n){return null===n||K(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(me,d,k)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||K(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):Z(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),re(e,h,"whitespace")(t)):96===t&&t===o?n(t):(e.consume(t),u)}function h(t){return null===t||K(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return null===t||K(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===o?n(t):(e.consume(t),f)}function d(t){return e.attempt(i,k,p)(t)}function p(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),g}function g(t){return s>0&&Z(t)?re(e,m,"linePrefix",s+1)(t):m(t)}function m(t){return null===t||K(t)?e.check(me,d,k)(t):(e.enter("codeFlowValue"),b(t))}function b(t){return null===t||K(t)?(e.exit("codeFlowValue"),m(t)):(e.consume(t),b)}function k(n){return e.exit("codeFenced"),t(n)}},concrete:!0},ke={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),re(e,i,"linePrefix",5)(t)};function i(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return null===t?a(t):K(t)?e.attempt(ye,o,a)(t):(e.enter("codeFlowValue"),s(t))}function s(t){return null===t||K(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),s)}function a(n){return e.exit("codeIndented"),t(n)}}},ye={tokenize:function(e,t,n){const r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):K(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):re(e,o,"linePrefix",5)(t)}function o(e){const o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):K(e)?i(e):n(e)}},partial:!0},ve={name:"codeText",tokenize:function(e,t,n){let r,i,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),s(t)};function s(t){return 96===t?(e.consume(t),o++,s):(e.exit("codeTextSequence"),a(t))}function a(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),a):96===t?(i=e.enter("codeTextSequence"),r=0,c(t)):K(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||K(t)?(e.exit("codeTextData"),a(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),r++,c):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(i.type="codeTextData",l(n))}},resolve:function(e){let t,n,r=e.length-4,i=3;if(!("lineEnding"!==e[i][1].type&&"space"!==e[i][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}};function we(e){const t={};let n,r,i,o,s,a,l,c=-1;for(;++c<e.length;){for(;c in t;)c=t[c];if(n=e[c],c&&"chunkFlow"===n[1].type&&"listItemPrefix"===e[c-1][1].type&&(a=n[1]._tokenizer.events,i=0,i<a.length&&"lineEndingBlank"===a[i][1].type&&(i+=2),i<a.length&&"content"===a[i][1].type))for(;++i<a.length&&"content"!==a[i][1].type;)"chunkText"===a[i][1].type&&(a[i][1]._isInFirstContentOfListItem=!0,i++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,Ee(e,c)),c=t[c],l=!0);else if(n[1]._container){for(i=c,r=void 0;i--&&(o=e[i],"lineEnding"===o[1].type||"lineEndingBlank"===o[1].type);)"enter"===o[0]&&(r&&(e[r][1].type="lineEndingBlank"),o[1].type="lineEnding",r=i);r&&(n[1].end=Object.assign({},e[r][1].start),s=e.slice(r,c),s.unshift(n),O(e,r,c-r+1,s))}}return!l}function Ee(e,t){const n=e[t][1],r=e[t][2];let i=t-1;const o=[],s=n._tokenizer||r.parser[n.contentType](n.start),a=s.events,l=[],c={};let u,h,f=-1,d=n,p=0,g=0;const m=[g];for(;d;){for(;e[++i][1]!==d;);o.push(i),d._tokenizer||(u=r.sliceStream(d),d.next||u.push(null),h&&s.defineSkip(d.start),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(u),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),h=d,d=d.next}for(d=n;++f<a.length;)"exit"===a[f][0]&&"enter"===a[f-1][0]&&a[f][1].type===a[f-1][1].type&&a[f][1].start.line!==a[f][1].end.line&&(g=f+1,m.push(g),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(s.events=[],d?(d._tokenizer=void 0,d.previous=void 0):m.pop(),f=m.length;f--;){const t=a.slice(m[f],m[f+1]),n=o.pop();l.unshift([n,n+t.length-1]),O(e,n,2,t)}for(f=-1;++f<l.length;)c[p+l[f][0]]=p+l[f][1],p+=l[f][1]-l[f][0]-1;return c}const Se={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):K(t)?e.check(Te,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return we(e),e}},Te={tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),re(e,i,"linePrefix")};function i(i){if(null===i||K(i))return n(i);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}},partial:!0};function xe(e,t,n,r,i,o,s,a,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),h):null===t||32===t||41===t||$(t)?n(t):(e.enter(r),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),p(t))};function h(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(a),h(t)):null===t||60===t||K(t)?n(t):(e.consume(t),92===t?d:f)}function d(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function p(i){return u||null!==i&&41!==i&&!X(i)?u<c&&40===i?(e.consume(i),u++,p):41===i?(e.consume(i),u--,p):null===i||32===i||40===i||$(i)?n(i):(e.consume(i),92===i?g:p):(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(r),t(i))}function g(t){return 40===t||41===t||92===t?(e.consume(t),p):p(t)}}function Ce(e,t,n,r,i,o){const s=this;let a,l=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(o),c};function c(h){return l>999||null===h||91===h||93===h&&!a||94===h&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(h):93===h?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):K(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(h))}function u(t){return null===t||91===t||93===t||K(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),a||(a=!Z(t)),92===t?h:u)}function h(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function Ae(e,t,n,r,i,o){let s;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),s=40===t?41:t,a):n(t)};function a(n){return n===s?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),l(n))}function l(t){return t===s?(e.exit(o),a(s)):null===t?n(t):K(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),re(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===s||null===t||K(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===s||92===t?(e.consume(t),c):c(t)}}function De(e,t){let n;return function r(i){return K(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Z(i)?re(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Re={name:"definition",tokenize:function(e,t,n){const r=this;let i;return function(t){return e.enter("definition"),function(t){return Ce.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return i=H(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s):n(t)}function s(t){return X(t)?De(e,a)(t):a(t)}function a(t){return xe(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(_e,c,c)(t)}function c(t){return Z(t)?re(e,u,"whitespace")(t):u(t)}function u(o){return null===o||K(o)?(e.exit("definition"),r.parser.defined.push(i),t(o)):n(o)}}},_e={tokenize:function(e,t,n){return function(t){return X(t)?De(e,r)(t):n(t)};function r(t){return Ae(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return Z(t)?re(e,o,"whitespace")(t):o(t)}function o(e){return null===e||K(e)?t(e):n(e)}},partial:!0},Le={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return K(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},Ne={name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),i(t)}(t)};function i(t){return 35===t&&r++<6?(e.consume(t),i):null===t||X(t)?(e.exit("atxHeadingSequence"),o(t)):n(t)}function o(n){return 35===n?(e.enter("atxHeadingSequence"),s(n)):null===n||K(n)?(e.exit("atxHeading"),t(n)):Z(n)?re(e,o,"whitespace")(n):(e.enter("atxHeadingText"),a(n))}function s(t){return 35===t?(e.consume(t),s):(e.exit("atxHeadingSequence"),o(t))}function a(t){return null===t||35===t||X(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),a)}},resolve:function(e,t){let n,r,i=e.length-2,o=3;return"whitespace"===e[o][1].type&&(o+=2),i-2>o&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4),i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},O(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}},Ie=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Oe=["pre","script","style","textarea"],Me={name:"htmlFlow",tokenize:function(e,t,n){const r=this;let i,o,s,a,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(a){return 33===a?(e.consume(a),u):47===a?(e.consume(a),o=!0,d):63===a?(e.consume(a),i=3,r.interrupt?t:O):j(a)?(e.consume(a),s=String.fromCharCode(a),p):n(a)}function u(o){return 45===o?(e.consume(o),i=2,h):91===o?(e.consume(o),i=5,a=0,f):j(o)?(e.consume(o),i=4,r.interrupt?t:O):n(o)}function h(i){return 45===i?(e.consume(i),r.interrupt?t:O):n(i)}function f(i){return i==="CDATA[".charCodeAt(a++)?(e.consume(i),6===a?r.interrupt?t:C:f):n(i)}function d(t){return j(t)?(e.consume(t),s=String.fromCharCode(t),p):n(t)}function p(a){if(null===a||47===a||62===a||X(a)){const l=47===a,c=s.toLowerCase();return l||o||!Oe.includes(c)?Ie.includes(s.toLowerCase())?(i=6,l?(e.consume(a),g):r.interrupt?t(a):C(a)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(a):o?m(a):b(a)):(i=1,r.interrupt?t(a):C(a))}return 45===a||V(a)?(e.consume(a),s+=String.fromCharCode(a),p):n(a)}function g(i){return 62===i?(e.consume(i),r.interrupt?t:C):n(i)}function m(t){return Z(t)?(e.consume(t),m):T(t)}function b(t){return 47===t?(e.consume(t),T):58===t||95===t||j(t)?(e.consume(t),k):Z(t)?(e.consume(t),b):T(t)}function k(t){return 45===t||46===t||58===t||95===t||V(t)?(e.consume(t),k):y(t)}function y(t){return 61===t?(e.consume(t),v):Z(t)?(e.consume(t),y):b(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,w):Z(t)?(e.consume(t),v):E(t)}function w(t){return t===l?(e.consume(t),l=null,S):null===t||K(t)?n(t):(e.consume(t),w)}function E(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||X(t)?y(t):(e.consume(t),E)}function S(e){return 47===e||62===e||Z(e)?b(e):n(e)}function T(t){return 62===t?(e.consume(t),x):n(t)}function x(t){return null===t||K(t)?C(t):Z(t)?(e.consume(t),x):n(t)}function C(t){return 45===t&&2===i?(e.consume(t),_):60===t&&1===i?(e.consume(t),L):62===t&&4===i?(e.consume(t),M):63===t&&3===i?(e.consume(t),O):93===t&&5===i?(e.consume(t),I):!K(t)||6!==i&&7!==i?null===t||K(t)?(e.exit("htmlFlowData"),A(t)):(e.consume(t),C):(e.exit("htmlFlowData"),e.check(Pe,P,A)(t))}function A(t){return e.check(qe,D,P)(t)}function D(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),R}function R(t){return null===t||K(t)?A(t):(e.enter("htmlFlowData"),C(t))}function _(t){return 45===t?(e.consume(t),O):C(t)}function L(t){return 47===t?(e.consume(t),s="",N):C(t)}function N(t){if(62===t){const n=s.toLowerCase();return Oe.includes(n)?(e.consume(t),M):C(t)}return j(t)&&s.length<8?(e.consume(t),s+=String.fromCharCode(t),N):C(t)}function I(t){return 93===t?(e.consume(t),O):C(t)}function O(t){return 62===t?(e.consume(t),M):45===t&&2===i?(e.consume(t),O):C(t)}function M(t){return null===t||K(t)?(e.exit("htmlFlowData"),P(t)):(e.consume(t),M)}function P(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},concrete:!0},Pe={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(fe,t,n)}},partial:!0},qe={tokenize:function(e,t,n){const r=this;return function(t){return K(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},Fe={name:"htmlText",tokenize:function(e,t,n){const r=this;let i,o,s;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),a};function a(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),v):63===t?(e.consume(t),k):j(t)?(e.consume(t),S):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),o=0,d):j(t)?(e.consume(t),b):n(t)}function c(t){return 45===t?(e.consume(t),f):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),h):K(t)?(s=u,N(t)):(e.consume(t),u)}function h(t){return 45===t?(e.consume(t),f):u(t)}function f(e){return 62===e?L(e):45===e?h(e):u(e)}function d(t){return t==="CDATA[".charCodeAt(o++)?(e.consume(t),6===o?p:d):n(t)}function p(t){return null===t?n(t):93===t?(e.consume(t),g):K(t)?(s=p,N(t)):(e.consume(t),p)}function g(t){return 93===t?(e.consume(t),m):p(t)}function m(t){return 62===t?L(t):93===t?(e.consume(t),m):p(t)}function b(t){return null===t||62===t?L(t):K(t)?(s=b,N(t)):(e.consume(t),b)}function k(t){return null===t?n(t):63===t?(e.consume(t),y):K(t)?(s=k,N(t)):(e.consume(t),k)}function y(e){return 62===e?L(e):k(e)}function v(t){return j(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||V(t)?(e.consume(t),w):E(t)}function E(t){return K(t)?(s=E,N(t)):Z(t)?(e.consume(t),E):L(t)}function S(t){return 45===t||V(t)?(e.consume(t),S):47===t||62===t||X(t)?T(t):n(t)}function T(t){return 47===t?(e.consume(t),L):58===t||95===t||j(t)?(e.consume(t),x):K(t)?(s=T,N(t)):Z(t)?(e.consume(t),T):L(t)}function x(t){return 45===t||46===t||58===t||95===t||V(t)?(e.consume(t),x):C(t)}function C(t){return 61===t?(e.consume(t),A):K(t)?(s=C,N(t)):Z(t)?(e.consume(t),C):T(t)}function A(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),i=t,D):K(t)?(s=A,N(t)):Z(t)?(e.consume(t),A):(e.consume(t),R)}function D(t){return t===i?(e.consume(t),i=void 0,_):null===t?n(t):K(t)?(s=D,N(t)):(e.consume(t),D)}function R(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||X(t)?T(t):(e.consume(t),R)}function _(e){return 47===e||62===e||X(e)?T(e):n(e)}function L(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function N(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return Z(t)?re(e,O,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):O(t)}function O(t){return e.enter("htmlTextData"),s(t)}}},Be={name:"labelEnd",tokenize:function(e,t,n){const r=this;let i,o,s=r.events.length;for(;s--;)if(("labelImage"===r.events[s][1].type||"labelLink"===r.events[s][1].type)&&!r.events[s][1]._balanced){i=r.events[s][1];break}return function(t){return i?i._inactive?u(t):(o=r.parser.defined.includes(H(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),a):n(t)};function a(t){return 40===t?e.attempt(Ue,c,o?c:u)(t):91===t?e.attempt(He,c,o?l:u)(t):o?c(t):u(t)}function l(t){return e.attempt(ze,c,u)(t)}function c(e){return t(e)}function u(e){return i._balanced=!0,n(e)}},resolveTo:function(e,t){let n,r,i,o,s=e.length,a=0;for(;s--;)if(n=e[s][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[s][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[s][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=s,"labelLink"!==n.type)){a=2;break}}else"labelEnd"===n.type&&(i=s);const l={type:"labelLink"===e[r][1].type?"link":"image",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[r][1].start),end:Object.assign({},e[i][1].end)},u={type:"labelText",start:Object.assign({},e[r+a+2][1].end),end:Object.assign({},e[i-2][1].start)};return o=[["enter",l,t],["enter",c,t]],o=M(o,e.slice(r+1,r+a+3)),o=M(o,[["enter",u,t]]),o=M(o,le(t.parser.constructs.insideSpan.null,e.slice(r+a+4,i-3),t)),o=M(o,[["exit",u,t],e[i-2],e[i-1],["exit",c,t]]),o=M(o,e.slice(i+1)),o=M(o,[["exit",l,t]]),O(e,r,e.length,o),e},resolveAll:function(e){let t=-1;for(;++t<e.length;){const n=e[t][1];"labelImage"!==n.type&&"labelLink"!==n.type&&"labelEnd"!==n.type||(e.splice(t+1,"labelImage"===n.type?4:2),n.type="data",t++)}return e}},Ue={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return X(t)?De(e,i)(t):i(t)}function i(t){return 41===t?c(t):xe(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return X(t)?De(e,a)(t):c(t)}function s(e){return n(e)}function a(t){return 34===t||39===t||40===t?Ae(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return X(t)?De(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},He={tokenize:function(e,t,n){const r=this;return function(t){return Ce.call(r,e,i,o,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(H(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},ze={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},je={name:"labelStartImage",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:Be.resolveAll},Ve={name:"labelStartLink",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:Be.resolveAll},Ge={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),re(e,t,"linePrefix")}}},$e={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,o(e)}(t)};function o(o){return o===r?(e.enter("thematicBreakSequence"),s(o)):i>=3&&(null===o||K(o))?(e.exit("thematicBreak"),t(o)):n(o)}function s(t){return t===r?(e.consume(t),i++,s):(e.exit("thematicBreakSequence"),Z(t)?re(e,o,"whitespace")(t):o(t))}}},Ye={name:"list",tokenize:function(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,s=0;return function(t){const i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:Y(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check($e,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(t)}return n(t)};function a(t){return Y(t)&&++s<10?(e.consume(t),a):(!r.interrupt||s<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(fe,r.interrupt?n:c,e.attempt(We,h,u))}function c(e){return r.containerState.initialBlankLine=!0,o++,h(e)}function u(t){return Z(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),h):n(t)}function h(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(fe,(function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,re(e,t,"listItemIndent",r.containerState.size+1)(n)}),(function(n){return r.containerState.furtherBlankLines||!Z(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Qe,t,i)(n))}));function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,re(e,e.attempt(Ye,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},We={tokenize:function(e,t,n){const r=this;return re(e,(function(e){const i=r.events[r.events.length-1];return!Z(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},Qe={tokenize:function(e,t,n){const r=this;return re(e,(function(e){const i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0},Ke={name:"setextUnderline",tokenize:function(e,t,n){const r=this;let i;return function(t){let s,a=r.events.length;for(;a--;)if("lineEnding"!==r.events[a][1].type&&"linePrefix"!==r.events[a][1].type&&"content"!==r.events[a][1].type){s="paragraph"===r.events[a][1].type;break}return r.parser.lazy[r.now().line]||!r.interrupt&&!s?n(t):(e.enter("setextHeadingLine"),i=t,function(t){return e.enter("setextHeadingLineSequence"),o(t)}(t))};function o(t){return t===i?(e.consume(t),o):(e.exit("setextHeadingLineSequence"),Z(t)?re(e,s,"lineSuffix")(t):s(t))}function s(r){return null===r||K(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);const s={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",s,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[i][1].end)):e[n][1]=s,e.push(["exit",s,t]),e}},Xe={tokenize:function(e){const t=this,n=e.attempt(fe,(function(r){if(null!==r)return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n;e.consume(r)}),e.attempt(this.parser.constructs.flowInitial,r,re(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Se,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}},Ze={resolveAll:nt()},Je=tt("string"),et=tt("text");function tt(e){return{tokenize:function(t){const n=this,r=this.parser.constructs[e],i=t.attempt(r,o,s);return o;function o(e){return l(e)?i(e):s(e)}function s(e){if(null!==e)return t.enter("data"),t.consume(e),a;t.consume(e)}function a(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),a)}function l(e){if(null===e)return!0;const t=r[e];let i=-1;if(t)for(;++i<t.length;){const e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}},resolveAll:nt("text"===e?rt:void 0)}}function nt(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function rt(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],i=t.sliceStream(r);let o,s=i.length,a=-1,l=0;for(;s--;){const e=i[s];if("string"==typeof e){for(a=e.length;32===e.charCodeAt(a-1);)l++,a--;if(a)break;a=-1}else if(-2===e)o=!0,l++;else if(-1!==e){s++;break}}if(l){const i={type:n===e.length||o||l<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-l,offset:r.end.offset-l,_index:r.start._index+s,_bufferIndex:s?a:r.start._bufferIndex+a},end:Object.assign({},r.end)};r.end=Object.assign({},i.start),r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,["enter",i,t],["exit",i,t]),n+=2)}n++}return e}function it(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},o=[];let s=[],a=[];const l={consume:function(e){K(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,b()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=f(),c.events.push(["enter",n,c]),a.push(n),n},exit:function(){const e=a.pop();return e.end=f(),c.events.push(["exit",e,c]),e},attempt:g((function(e,t){m(e,t.from)})),check:g(p),interrupt:g(p,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:h,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let s;if("string"==typeof o)s=o;else switch(o){case-5:s="\r";break;case-4:s="\n";break;case-3:s="\r\n";break;case-2:s=t?" ":"\t";break;case-1:if(!t&&i)continue;s=" ";break;default:s=String.fromCharCode(o)}i=-2===o,r.push(s)}return r.join("")}(h(e),t)},now:f,defineSkip:function(e){i[e.line]=e.column,b()},write:function(e){return s=M(s,e),function(){let e;for(;r._index<s.length;){const t=s[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)d(t.charCodeAt(r._bufferIndex));else d(t)}}(),null!==s[s.length-1]?[]:(m(t,0),c.events=le(o,c.events,c),c.events)}};let u=t.tokenize.call(c,l);return t.resolveAll&&o.push(t),c;function h(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let s;if(n===i)s=[e[n].slice(r,o)];else{if(s=e.slice(n,i),r>-1){const e=s[0];"string"==typeof e?s[0]=e.slice(r):s.shift()}o>0&&s.push(e[i].slice(0,o))}return s}(s,e)}function f(){const{line:e,column:t,offset:n,_index:i,_bufferIndex:o}=r;return{line:e,column:t,offset:n,_index:i,_bufferIndex:o}}function d(e){u=u(e)}function p(e,t){t.restore()}function g(e,t){return function(n,i,o){let s,u,h,d;return Array.isArray(n)?p(n):"tokenize"in n?p([n]):function(e){return function(t){const n=null!==t&&e[t],r=null!==t&&e.null;return p([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function p(e){return s=e,u=0,0===e.length?o:g(e[u])}function g(e){return function(n){return d=function(){const e=f(),t=c.previous,n=c.currentConstruct,i=c.events.length,o=Array.from(a);return{restore:function(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=i,a=o,b()},from:i}}(),h=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name)?k():e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,m,k)(n)}}function m(){return e(h,d),i}function k(){return d.restore(),++u<s.length?g(s[u]):o}}}function m(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&O(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function b(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}var ot=Object.freeze({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Re},disable:{null:[]},document:{42:Ye,43:Ye,45:Ye,48:Ye,49:Ye,50:Ye,51:Ye,52:Ye,53:Ye,54:Ye,55:Ye,56:Ye,57:Ye,62:de},flow:{35:Ne,42:$e,45:[Ke,$e],60:Me,61:Ke,95:$e,96:be,126:be},flowInitial:{[-2]:ke,[-1]:ke,32:ke},insideSpan:{null:[ce,Ze]},string:{38:ge,92:pe},text:{[-5]:Ge,[-4]:Ge,[-3]:Ge,33:je,38:ge,42:ce,60:[he,Fe],91:Ve,92:[Le,pe],93:Be,95:ce,96:ve}});const st=/[\0\t\n\r]/g,at=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function lt(e){return e.replace(at,ct)}function ct(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return U(n.slice(t?2:1),t?16:10)}return I(n)||e}const ut={}.hasOwnProperty;function ht(e,n,r){return"string"!=typeof n&&(r=n,n=void 0),function(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(y),autolinkProtocol:h,autolinkEmail:h,atxHeading:o(m),blockQuote:o((function(){return{type:"blockquote",children:[]}})),characterEscape:h,characterReference:h,codeFenced:o(g),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(g,s),codeText:o((function(){return{type:"inlineCode",value:""}}),s),codeTextData:h,data:h,codeFlowValue:h,definition:o((function(){return{type:"definition",identifier:"",label:null,title:null,url:""}})),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o((function(){return{type:"emphasis",children:[]}})),hardBreakEscape:o(b),hardBreakTrailing:o(b),htmlFlow:o(k,s),htmlFlowData:h,htmlText:o(k,s),htmlTextData:h,image:o((function(){return{type:"image",title:null,url:"",alt:null}})),label:s,link:o(y),listItem:o((function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}})),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:o(v,(function(){this.data.expectingFirstListItemValue=!0})),listUnordered:o(v),paragraph:o((function(){return{type:"paragraph",children:[]}})),reference:function(){this.data.referenceType="collapsed"},referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(m),strong:o((function(){return{type:"strong",children:[]}})),thematicBreak:o((function(){return{type:"thematicBreak"}}))},exit:{atxHeading:l(),atxHeadingSequence:function(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}},autolink:l(),autolinkEmail:function(e){f.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){f.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:l(),characterEscapeValue:f,characterReferenceMarkerHexadecimal:p,characterReferenceMarkerNumeric:p,characterReferenceValue:function(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;n?(r=U(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0):r=I(t);const i=this.stack.pop();i.value+=r,i.position.end=ft(e.end)},codeFenced:l((function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0})),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){const e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){const e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:f,codeIndented:l((function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")})),codeText:l((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),codeTextData:f,data:f,definition:l(),definitionDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=H(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:l(),hardBreakEscape:l(d),hardBreakTrailing:l(d),htmlFlow:l((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),htmlFlowData:f,htmlText:l((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),htmlTextData:f,image:l((function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0})),label:function(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=lt(t),n.identifier=H(t).toLowerCase()},lineEnding:function(e){const t=this.stack[this.stack.length-1];if(this.data.atHardBreak)return t.children[t.children.length-1].position.end=ft(e.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(t.type)&&(h.call(this,e),f.call(this,e))},link:l((function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0})),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=H(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:l((function(){this.data.setextHeadingSlurpLineEnding=void 0})),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:l(),thematicBreak:l()}};dt(n,(e||{}).mdastExtensions||[]);const r={};return function(e){let t={type:"root",children:[]};const o={stack:[t],tokenStack:[],config:n,enter:a,exit:c,buffer:s,resume:u,data:r},l=[];let h=-1;for(;++h<e.length;)"listOrdered"!==e[h][1].type&&"listUnordered"!==e[h][1].type||("enter"===e[h][0]?l.push(h):h=i(e,l.pop(),h));for(h=-1;++h<e.length;){const t=n[e[h][0]];ut.call(t,e[h][1].type)&&t[e[h][1].type].call(Object.assign({sliceSerialize:e[h][2].sliceSerialize},o),e[h][1])}if(o.tokenStack.length>0){const e=o.tokenStack[o.tokenStack.length-1];(e[1]||gt).call(o,void 0,e[0])}for(t.position={start:ft(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:ft(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},h=-1;++h<n.transforms.length;)t=n.transforms[h](t)||t;return t};function i(e,t,n){let r,i,o,s,a=t-1,l=-1,c=!1;for(;++a<=n;){const t=e[a];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,s=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||s||l||o||(o=a),s=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:s=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let s=a;for(i=void 0;s--;){const t=e[s];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",i=s}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}o&&(!i||o<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||a,0,["exit",r,t[2]]),a++,n++}if("listItemPrefix"===t[1].type){const i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(a,0,["enter",i,t[2]]),a++,n++,o=void 0,s=!0}}}return e[t][1]._spread=c,n}function o(e,t){return function(n){a.call(this,e(n),n),t&&t.call(this,n)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n]),e.position={start:ft(t.start),end:void 0}}function l(e){return function(t){e&&e.call(this,t),c.call(this,t)}}function c(e,n){const r=this.stack.pop(),i=this.tokenStack.pop();if(!i)throw new Error("Cannot close `"+e.type+"` ("+t({start:e.start,end:e.end})+"): it’s not open");i[0].type!==e.type&&(n?n.call(this,e,i[0]):(i[1]||gt).call(this,e,i[0])),r.position.end=ft(e.end)}function u(){return D(this.stack.pop())}function h(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n={type:"text",value:""},n.position={start:ft(e.start),end:void 0},t.push(n)),this.stack.push(n)}function f(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=ft(e.end)}function d(){this.data.atHardBreak=!0}function p(e){this.data.characterReferenceType=e.type}function g(){return{type:"code",lang:null,meta:null,value:""}}function m(){return{type:"heading",depth:0,children:[]}}function b(){return{type:"break"}}function k(){return{type:"html",value:""}}function y(){return{type:"link",title:null,url:"",children:[]}}function v(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}}(r)(function(e){for(;!we(e););return e}(function(e){const t={defined:[],lazy:{},constructs:q([ot,...(e||{}).extensions||[]]),content:n(ie),document:n(oe),flow:n(Xe),string:n(Je),text:n(et)};return t;function n(e){return function(n){return it(t,e,n)}}}(r).document().write(function(){let e,t=1,n="",r=!0;return function(i,o,s){const a=[];let l,c,u,h,f;for(i=n+("string"==typeof i?i.toString():new TextDecoder(o||void 0).decode(i)),u=0,n="",r&&(65279===i.charCodeAt(0)&&u++,r=void 0);u<i.length;){if(st.lastIndex=u,l=st.exec(i),h=l&&void 0!==l.index?l.index:i.length,f=i.charCodeAt(h),!l){n=i.slice(u);break}if(10===f&&u===h&&e)a.push(-3),e=void 0;else switch(e&&(a.push(-5),e=void 0),u<h&&(a.push(i.slice(u,h)),t+=h-u),f){case 0:a.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),a.push(-2);t++<c;)a.push(-1);break;case 10:a.push(-4),t=1;break;default:e=!0,t=1}u=h+1}return s&&(e&&a.push(-5),n&&a.push(n),a.push(null)),a}}()(e,n,!0))))}function ft(e){return{line:e.line,column:e.column,offset:e.offset}}function dt(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?dt(e,r):pt(e,r)}}function pt(e,t){let n;for(n in t)if(ut.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function gt(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+t({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+t({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+t({start:n.start,end:n.end})+") is still open")}function mt(e){const t=this;t.parser=function(n){return ht(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function bt(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&"text"===s.type?s.value+=r:i.push({type:"text",value:r}),i}function kt(e){const t=e.spread;return null==t?e.children.length>1:t}function yt(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(vt(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(vt(t.slice(i),i>0,!1)),o.join("")}function vt(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}const wt={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=ne(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let s,a=e.footnoteCounts.get(r);void 0===a?(a=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=o+1,a+=1,e.footnoteCounts.set(r,a);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return bt(e,t);const i={src:ne(r.url||""),alt:t.alt};null!=r.title&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){const n={src:ne(t.url)};null!=t.alt&&(n.alt=t.alt),null!=t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return bt(e,t);const i={href:ne(r.url||"")};null!=r.title&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){const n={href:ne(t.url)};null!=t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=kt(n[r])}return t}(n):kt(t),o={},s=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const e=r[a];(i||0!==a||"element"!==e.type||"p"!==e.tagName)&&s.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?s.push(e):s.push(...e.children)}const l=r[r.length-1];l&&(i||"element"!==l.type||"p"!==l.tagName)&&s.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:o,children:s};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){const e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const i=e.all(t),o=i.shift(),s=[];if(o){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([o],!0)};e.patch(t.children[0],n),s.push(n)}if(i.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(i,!0)},a=n(t.children[1]),l=r(t.children[t.children.length-1]);a&&l&&(o.position={start:a,end:l}),s.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(t,a),e.applyData(t,a)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,s=o?o.length:t.children.length;let a=-1;const l=[];for(;++a<s;){const n=t.children[a],r={},s=o?o[a]:void 0;s&&(r.align=s);let c={type:"element",tagName:i,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:yt(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:Et,yaml:Et,definition:Et,footnoteDefinition:Et};function Et(){}function St(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Tt(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const xt={}.hasOwnProperty,Ct={};function At(e,t){e.position&&(t.position=s(e))}function Dt(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&o&&Object.assign(n.properties,i(o)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function Rt(e,t){const n=t.data||{},r=!("value"in t)||xt.call(n,"hProperties")||xt.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function _t(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function Lt(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function Nt(e,t){const n=function(e,t){const n=t||Ct,r=new Map,s=new Map,a=new Map,l={...wt,...n.handlers},c={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const i=c.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=Lt(i.value)),!Array.isArray(i)&&"element"===i.type)){const e=i.children[0];e&&"text"===e.type&&(e.value=Lt(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:Dt,definitionById:r,footnoteById:s,footnoteCounts:a,footnoteOrder:[],handlers:l,one:function(e,t){const n=e.type,r=c.handlers[n];if(xt.call(c.handlers,n)&&r)return r(c,e,t);if(c.options.passThrough&&c.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=i(n);return r.children=c.all(e),r}return i(e)}return(c.options.unknownHandler||Rt)(c,e,t)},options:n,patch:At,wrap:_t};return o(e,(function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:s,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}})),c}(e,t),r=n.one(e,void 0),s=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||St,r=e.options.footnoteBackLabel||Tt,o=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let c=-1;for(;++c<e.footnoteOrder.length;){const i=e.footnoteById.get(e.footnoteOrder[c]);if(!i)continue;const o=e.all(i),s=String(i.identifier).toUpperCase(),a=ne(s.toLowerCase());let u=0;const h=[],f=e.footnoteCounts.get(s);for(;void 0!==f&&++u<=f;){h.length>0&&h.push({type:"text",value:" "});let e="string"==typeof n?n:n(c,u);"string"==typeof e&&(e={type:"text",value:e}),h.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+a+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(c,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const d=o[o.length-1];if(d&&"element"===d.type&&"p"===d.tagName){const e=d.children[d.children.length-1];e&&"text"===e.type?e.value+=" ":d.children.push({type:"text",value:" "}),d.children.push(...h)}else o.push(...h);const p={type:"element",tagName:"li",properties:{id:t+"fn-"+a},children:e.wrap(o,!0)};e.patch(i,p),l.push(p)}if(0!==l.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...i(a),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:"\n"}]}}(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return s&&a.children.push({type:"text",value:"\n"},s),a}function It(e,t){return e&&"run"in e?async function(n,r){const i=Nt(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Nt(n,{file:r,...e||t})}}function Ot(e,t,n){const r=a((n||{}).ignore||[]),i=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([(i=e[0],"string"==typeof i?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(i),"g"):i),Mt(e[1])])}var i;return t}(t);let o=-1;for(;++o<i.length;)l(e,"text",s);function s(e,t){let n,s=-1;for(;++s<t.length;){const e=t[s],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=i[o][0],s=i[o][1];let a=0;const l=n.children.indexOf(e);let c=!1,u=[];r.lastIndex=0;let h=r.exec(e.value);for(;h;){const n=h.index,i={index:h.index,input:h.input,stack:[...t,e]};let o=s(...h,i);if("string"==typeof o&&(o=o.length>0?{type:"text",value:o}:void 0),!1===o?r.lastIndex=n+1:(a!==n&&u.push({type:"text",value:e.value.slice(a,n)}),Array.isArray(o)?u.push(...o):o&&u.push(o),a=n+h[0].length,c=!0),!r.global)break;h=r.exec(e.value)}return c?(a<e.value.length&&u.push({type:"text",value:e.value.slice(a)}),n.children.splice(l,1,...u)):u=[e],l+u.length}(e,t)}}function Mt(e){return"function"==typeof e?e:function(){return e}}const Pt="phrasing",qt=["autolink","link","image","label"];function Ft(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Bt(e){this.config.enter.autolinkProtocol.call(this,e)}function Ut(e){this.config.exit.autolinkProtocol.call(this,e)}function Ht(e){this.config.exit.data.call(this,e),this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}function zt(e){this.config.exit.autolinkEmail.call(this,e)}function jt(e){this.exit(e)}function Vt(e){Ot(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Gt],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,$t]],{ignore:["link","linkReference"]})}function Gt(e,t,n,r,i){let o="";if(!Yt(i))return!1;if(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!function(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(n))return!1;const s=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=c(e,"(");let o=c(e,")");for(;-1!==r&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}(n+r);if(!s[0])return!1;const a={type:"link",title:null,url:o+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[a,{type:"text",value:s[1]}]:a}function $t(e,t,n,r){return!(!Yt(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Yt(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||ee(n)||J(n))&&(!t||47!==n)}function Wt(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Qt(){this.buffer()}function Kt(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=H(this.sliceSerialize(e)).toLowerCase()}function Xt(e){this.exit(e)}function Zt(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Jt(){this.buffer()}function en(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=H(this.sliceSerialize(e)).toLowerCase()}function tn(e){this.exit(e)}function nn(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const s=n.enter("footnoteReference"),a=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),a(),s(),o+=i.move("]"),o}function rn(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const s=n.enter("footnoteDefinition"),a=n.enter("label");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),a(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(n.indentLines(n.containerFlow(e,i.current()),on)),s(),o}function on(e,t,n){return 0===t?e:(n?"":" ")+e}nn.peek=function(){return"["};const sn=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function an(e){this.enter({type:"delete",children:[]},e)}function ln(e){this.exit(e)}function cn(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),o(),s}function un(e){return e.length}function hn(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}cn.peek=function(){return"~"};const fn=a(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);function dn(e,t,n){return">"+(n?"":" ")+e}function pn(e,t){return gn(e,t.inConstruct,!0)&&!gn(e,t.notInConstruct,!1)}function gn(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function mn(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;){const e=n.unsafe[i];if("\n"===e.character&&!e.before&&!e.after&&pn(n.stack,e))return/[\t ]/.test(r.before)?"":" "}return"\\\n"}function bn(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^\n\r ]/.test(e.value)&&!/^[\t ]*(?:[\n\r]|$)|(?:^|[\n\r])[\t ]*$/.test(e.value))}function kn(e,t,n){return(n?"":" ")+e}function yn(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function vn(e){const t=e.codePointAt(0);return void 0===t?"":String.fromCodePoint(t)}function wn(e){const t=e.codePointAt(e.length-2);return e.slice(void 0!==t&&t>65535?-2:-1)}function En(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Sn(e,t,n){const r=ae(e),i=ae(t);return void 0===r?void 0===i?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function Tn(e){if(60!==e.charCodeAt(0))return;const t=e.charCodeAt(1);if(33===t){const t=e.charCodeAt(2);return 45===t?2:91===t?5:j(t)?4:void 0}if(63===t)return 3;const n=47===t,r=n?2:1;let i=r,o=e.charCodeAt(i);if(!j(o))return;for(;45===o||V(o);)o=e.charCodeAt(++i);const s=e.slice(r,i).toLowerCase();return!n&&47!==o&&Oe.includes(s)?1:Ie.includes(s)?6:7}const xn=new Map([["*",!1],["_",!0]]);function Cn(e,t,n){const r=new Set;for(const i of e){const e=n.get(i);if(e&&i.attention&&t.some((e=>e.attention===i.attention)))for(const t of e.tokens)r.add(t.attention)}const i=[];for(const t of e)t.attention&&r.delete(t.attention)&&i.push(t.attention);return i.reverse(),i}function An(e,t,n){const r=[],i=new Map,o=new Map;let s=0;for(;s<e.length;){if(!e[s].attention){s++;continue}const a=e[s].value.charAt(0),l=xn.get(a);let c=s+1;for(;c<e.length&&e[c].attention&&e[c].value.charAt(0)===a;)c++;const u=s?e[s-1].value:t,h=ae(u.charCodeAt(u.length-1)),f=ae((c<e.length?e[c].value:n).charCodeAt(0)),d=!f||2===f&&Boolean(h),p=!h||2===h&&Boolean(f),g={tokens:e.slice(s,c),markers:[],start:0,end:0,open:l?d&&(Boolean(h)||!p):d,close:l?p&&(Boolean(f)||!d):p,split:void 0!==l};for(const e of g.tokens){i.set(e,[...g.tokens]),o.set(e,g);let t=e.value.length;for(;t--;)g.markers.push(e)}g.end=g.markers.length,r.push(g),s=c}for(function(e,t){const n=new Map;for(const r of e){const e=r.tokens[0].value.charAt(0);let i=n.get(e);i||(i=[],n.set(e,i));let o=r.close?i.length:0;for(;o--&&r.start<r.end;){const e=i[o],n=e.end-e.start,s=r.end-r.start;if(r.split?(e.close||r.open)&&s%3&&!((n+s)%3):n!==e.markers.length||n!==s)continue;const a=r.split?n>1&&s>1?2:1:s,l=e.markers.slice(e.end-a,e.end),c=r.markers.slice(r.start,r.start+a),u=l[0],h=c[0];if(u===l[a-1]&&u.value.length===a&&h===c[a-1]&&h.value.length===a&&u.attention===h.attention)t.delete(u),t.delete(h);else{const e=[...new Set([...l,...c])];for(const n of e){const r=t.get(n);r&&r.push(...e)}}e.end-=a,r.start+=a,e.start===e.end&&i.splice(o,1),o=i.length}r.open&&r.start<r.end&&i.push(r)}}(r,i),s=-1;++s<e.length;){const t=i.get(e[s]);if(t)return{attention:Cn(e,t,o),index:s}}}function Dn(e,t,n){return On(Ln(e,t,n),n.before,n.after)}function Rn(e,t){const n=e[t?0:e.length-1];if(!n||n.attention)return;const r=t?vn(n.value):wn(n.value),i=En(r.codePointAt(0));if(t)n.value=i+n.value.slice(r.length);else{let e=n.value.slice(0,n.value.length-r.length),t=0;for(;92===e.charCodeAt(e.length-1-t);)t++;t%2&&(e+="\\"),n.value=e+i}}function _n(e,t,n,r,i){for(const o of n.attention){const s=t.get(o)||o.sequences[0];for(const a of o.sequences){if(a===s)continue;const l=new Map(t);l.set(o,a);const c=In(e,l,r,i),u=An(c,r,i);if(!u||u.index>n.index)return{chosen:l,mistake:u,tokens:c}}}}function Ln(e,t,n){const r=t.indexStack,i=e.children||[],o=[];let s=-1,a=n.before;r.push(-1);let l=t.createTracker(n);for(;++s<i.length;){const c=i[s];let u;if(r[r.length-1]=s,s+1<i.length){let n=t.handle.handlers[i[s+1].type];n&&n.peek&&(n=n.peek),u=n?vn(n(i[s+1],e,t,{before:"",after:"",...l.current()})):""}else u=n.after;const h=o[o.length-1];"string"!=typeof h||"\r"!==a&&"\n"!==a||"html"!==c.type||7===Tn(c.value)||(o[o.length-1]=h.replace(/(\r?\n|\r)$/," "),a=" ",l=t.createTracker(n),l.move(On(o,n.before,n.after)));const f=t.handle.handlers[c.type];if(f&&f.attention){const e=Nn(c,f.attention,t,l);o.push(e),a=wn(e.sequences[0])}else{const n=t.handle(c,e,t,{...l.current(),after:u,before:a});if(!n)continue;l.move(n),o.push(n),a=wn(n)}}return r.pop(),o}function Nn(e,t,n,r){const{construct:i,markers:o,sizes:s}=t(e,n),a=function(e,t,n){if(0===t.length)throw new Error("Cannot serialize `"+e+"` as attention without markers, expected one or more markers");if(0===n.length)throw new Error("Cannot serialize `"+e+"` as attention without sizes, expected one or more sizes");for(const t of n)if(!Number.isSafeInteger(t)||t<1)throw new Error("Cannot serialize `"+e+"` as attention with `"+t+"` as size, expected positive integer");const r=[];for(const i of t){if(1!==i.length)throw new Error("Cannot serialize `"+e+"` as attention with `"+i+"` as marker, expected a single ascii character");if(!Q(i.charCodeAt(0)))throw new Error("Cannot serialize `"+e+"` as attention with `"+i+"` as marker, expected ascii punctuation");for(const e of n)r.push(i.repeat(e))}return r}(e.type,o,s),l=a[0],c=n.enter(i);r.move(l);const u=Ln(e,n,{...r.current(),before:l,after:l});return r.move(On(u,l,l)),r.move(l),c(),{children:u,sequences:a}}function In(e,t,n,r){const i=[];let o,s=wn(n),a=-1;for(;++a<e.length;){const n=e[a];if("string"==typeof n){const e={value:n,attention:void 0};o&&o===vn(n)&&Rn([e],!0),o=void 0,i.push(e),e.value&&(s=wn(e.value));continue}const l=t.get(n)||n.sequences[0],c=l.charAt(0),u=e[a+1],h=s,f=vn(void 0===u?r:"string"==typeof u?u:t.get(u)||u.sequences[0]),d=In(n.children,t,l,l),p=d.length>0?d[0].value:"",g=Sn(h.charCodeAt(h.length-1),p.charCodeAt(0),c);g.inside&&Rn(d,!0);const m=d.length>0?wn(d[d.length-1].value):"",b=Sn(f.charCodeAt(0),m.charCodeAt(m.length-1),c);b.inside&&Rn(d,!1),g.outside&&"\n"!==h&&"\r"!==h&&Rn(i,!1),b.outside&&(o=f),i.push({value:l,attention:n},...d,{value:l,attention:n}),s=l.charAt(l.length-1)}return i}function On(e,t,n){let r=new Map;const i=In(e,r,t,n);let o=i,s=An(o,t,n);for(;s;){const a=_n(e,r,s,t,n);if(!a){o=i;break}r=a.chosen,o=a.tokens,s=a.mistake}let a="";for(const e of o)a+=e.value;return a}function Mn(e,t,n,r){const i=n.enter("phrasing"),o=On([Nn(e,Pn,n,n.createTracker(r))],r.before,r.after);return i(),o}function Pn(e,t){const n=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(t);return{construct:"emphasis",markers:"*"===n?["*","_"]:["_","*"],sizes:[1]}}function qn(e,t){let n=!1;return o(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,u})),Boolean((!e.depth||e.depth<3)&&D(e)&&(t.options.setext||n))}function Fn(e){return e.value||""}function Bn(e,t,n,r){const i=yn(n),o='"'===i?"Quote":"Apostrophe",s=n.enter("image");let a=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(a=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),a()),c+=l.move(")"),s(),c}function Un(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let s=n.enter("label");const a=n.createTracker(r);let l=a.move("![");const c=n.safe(e.alt,{before:l,after:"]",...a.current()});l+=a.move(c+"]["),s();const u=n.stack;n.stack=u.filter((function(e){return"phrasing"!==e})),s=n.enter("reference");const h=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return s(),n.stack=u,o(),"full"!==i&&c&&c===h?"shortcut"===i?l=l.slice(0,-1):l+=a.move("]"):l+=a.move(h+"]"),l}function Hn(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^\n\r ]/.test(r)&&(/^[\n\r ]/.test(r)&&/[\n\r ]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const e=n.unsafe[o],t=n.compilePattern(e);if(!e.atBreak)continue;let i;for(;i=t.exec(r);){let e=i.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(i.index+1)}}return i+r+i}function zn(e,t){const n=D(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][+\-.a-z]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function jn(e,t,n,r){const i=yn(n),o='"'===i?"Quote":"Apostrophe",s=n.createTracker(r);if(zn(e,n)){const t=n.stack;n.stack=t.filter((function(e){return"phrasing"!==e}));const r=n.enter("autolink");let i=s.move("<");return i+=s.move(n.containerPhrasing(e,{before:i,after:">",...s.current()})),i+=s.move(">"),r(),n.stack=t,i}const a=n.enter("link");let l=n.enter("label"),c=s.move("[");const u=n.containerPhrasing(e,{before:c,after:"](",...s.current()});c+=s.move(u),l(),c+=s.move("](");const h=/[\0- \u007F]/.test(e.url),f=r.before.charAt(r.before.length-1);let d=e.title||void 0;if(!(d||h||"\n"!==f&&"\r"!==f)){let e=0;for(;e<u.length&&93!==u.charCodeAt(e);)e+=92===u.charCodeAt(e)?2:1;58===u.charCodeAt(e+1)&&(d="")}return!e.url&&"string"==typeof d||h?(l=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(l=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:"string"==typeof d?" ":")",...s.current()}))),l(),"string"==typeof d&&(l=n.enter(`title${o}`),c+=s.move(" "+i),c+=s.move(n.safe(d,{before:c,after:i,...s.current()})),c+=s.move(i),l()),c+=s.move(")"),a(),c}function Vn(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let s=n.enter("label");const a=n.createTracker(r);let l=a.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...a.current()});l+=a.move(c+"]["),s();const u=n.stack;n.stack=u.filter((function(e){return"phrasing"!==e})),s=n.enter("reference");const h=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return s(),n.stack=u,o(),"full"!==i&&c&&c===h?"shortcut"===i?l=l.slice(0,-1):l+=a.move("]"):l+=a.move(h+"]"),l}function Gn(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function $n(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Yn(e,t,n,r){const i=n.enter("phrasing"),o=On([Nn(e,Wn,n,n.createTracker(r))],r.before,r.after);return i(),o}function Wn(e,t){const n=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(t);return{construct:"strong",markers:"*"===n?["*","_"]:["_","*"],sizes:[2]}}Mn.attention=Pn,Mn.peek=function(e,t,n){return n.options.emphasis||"*"},Fn.peek=function(){return"<"},Bn.peek=function(){return"!"},Un.peek=function(){return"!"},Hn.peek=function(){return"`"},jn.peek=function(e,t,n){return zn(e,n)?"<":"["},Vn.peek=function(){return"["},Yn.attention=Wn,Yn.peek=function(e,t,n){return n.options.strong||"*"};const Qn={blockquote:function(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const s=n.indentLines(n.containerFlow(e,o.current()),dn);return i(),s},break:mn,code:function(e,t,n,r){const i=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),o=e.value||"";if(bn(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(o,kn);return e(),t}const s=n.createTracker(r),a=i.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,s=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===i?++o>s&&(s=o):o=1,i=r+t.length,r=n.indexOf(t,i);return s}(o,i)+1,3)),l=n.enter("codeFenced"),c="`"===i?"GraveAccent":"Tilde";let u=s.move(a);if(e.lang){const t=n.enter(`codeFencedLang${c}`);u+=s.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${c}`);u+=s.move(" "),u+=s.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...s.current()})),t()}return u+=s.move("\n"),o&&(u+=s.move(o+"\n")),u+=s.move(a),l(),u},definition:function(e,t,n,r){const i=yn(n),o='"'===i?"Quote":"Apostrophe",s=n.enter("definition");let a=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(a=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),a(),e.title&&(a=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),a()),s(),c},emphasis:Mn,hardBreak:mn,heading:function(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(qn(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),s=n.containerPhrasing(e,{...o.current(),before:"\n",after:"\n"});return r(),t(),s+"\n"+(1===i?"=":"-").repeat(s.length-(Math.max(s.lastIndexOf("\r"),s.lastIndexOf("\n"))+1))}const s="#".repeat(i),a=n.enter("headingAtx"),l=n.enter("phrasing");o.move(s+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...o.current()});const u=c.charCodeAt(0);return 9!==u&&32!==u||(c=En(u)+c.slice(1)),c=c?s+" "+c:s,n.options.closeAtx&&(c+=" "+s),l(),a(),c},html:Fn,image:Bn,imageReference:Un,inlineCode:Hn,link:jn,linkReference:Vn,list:function(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let s=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):Gn(n);const a=e.ordered?"."===s?")":".":function(e){const t=Gn(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let l=!(!t||!n.bulletLastUsed)&&s===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==s&&"-"!==s||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),$n(n)===s&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){l=!0;break}}}}l&&(s=a),n.bulletCurrent=s;const c=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=o,i(),c},listItem:function(e,t,n,r){const i=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let o=n.bulletCurrent||Gn(n);t&&"list"===t.type&&t.ordered&&(o=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let s=o.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(s=4*Math.ceil(s/4));const a=n.createTracker(r);a.move(o+" ".repeat(s-o.length)),a.shift(s);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,a.current()),(function(e,t,n){return t?(n?"":" ".repeat(s))+e:(n?o:o+" ".repeat(s-o.length))+e}));return l(),c},paragraph:function(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),s=n.containerPhrasing(e,r);return o(),i(),s},root:function(e,t,n,r){if(!e.children.some((function(e){return fn(e)})))return n.containerFlow(e,r);const i=n.enter("phrasing"),o=n.containerPhrasing(e,r);return i(),o},strong:Yn,text:function(e,t,n,r){const i=t?t.children:[],o=n.indexStack[n.indexStack.length-1];return n.safe(e.value,{...r,afterNode:i[o+1],beforeNode:i[o-1]})},thematicBreak:function(e,t,n){const r=($n(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function Kn(e){this.enter({type:"table",align:e._align.map((function(e){return"none"===e?null:e})),children:[]},e),this.data.inTable=!0}function Xn(e){this.exit(e),this.data.inTable=void 0}function Zn(e){this.enter({type:"tableRow",children:[]},e)}function Jn(e){this.exit(e)}function er(e){this.enter({type:"tableCell",children:[]},e)}function tr(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,nr)),this.stack[this.stack.length-1].value=t,this.exit(e)}function nr(e,t){return"|"===t?t:e}function rr(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=Qn.inlineCode(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return a(function(e,t,n){const r=e.children;let i=-1;const o=[],s=t.enter("table");for(;++i<r.length;)o[i]=l(r[i],t,n);return s(),o}(e,n,r),e.align)},tableCell:s,tableRow:function(e,t,n,r){const i=a([l(e,n,r)]);return i.slice(0,i.indexOf("\n"))}}};function s(e,t,n,r){const i=n.enter("tableCell"),s=n.enter("phrasing"),a=n.containerPhrasing(e,{...r,before:o,after:o});return s(),i(),a}function a(e,t){return function(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||un,i=[],o=[],s=[],a=[];let l=0,c=-1;for(;++c<e.length;){const n=[],i=[];let h=-1;for(e[c].length>l&&(l=e[c].length);++h<e[c].length;){const o=null==(u=e[c][h])?"":String(u);if(!1!==t.alignDelimiters){const e=r(o);i[h]=e,(void 0===a[h]||e>a[h])&&(a[h]=e)}n.push(o)}o[c]=n,s[c]=i}var u;let h=-1;if("object"==typeof n&&"length"in n)for(;++h<l;)i[h]=hn(n[h]);else{const e=hn(n);for(;++h<l;)i[h]=e}h=-1;const f=[],d=[];for(;++h<l;){const e=i[h];let n="",r="";99===e?(n=":",r=":"):108===e?n=":":114===e&&(r=":");let o=!1===t.alignDelimiters?1:Math.max(1,a[h]-n.length-r.length);const s=n+"-".repeat(o)+r;!1!==t.alignDelimiters&&(o=n.length+o+r.length,o>a[h]&&(a[h]=o),d[h]=o),f[h]=s}o.splice(1,0,f),s.splice(1,0,d),c=-1;const p=[];for(;++c<o.length;){const e=o[c],n=s[c];h=-1;const r=[];for(;++h<l;){const o=e[h]||"";let s="",c="";if(!1!==t.alignDelimiters){const e=a[h]-(n[h]||0),t=i[h];114===t?s=" ".repeat(e):99===t?e%2?(s=" ".repeat(e/2+.5),c=" ".repeat(e/2-.5)):(s=" ".repeat(e/2),c=s):c=" ".repeat(e)}!1===t.delimiterStart||h||r.push("|"),!1===t.padding||!1===t.alignDelimiters&&""===o||!1===t.delimiterStart&&!h||r.push(" "),!1!==t.alignDelimiters&&r.push(s),r.push(o),!1!==t.alignDelimiters&&r.push(c),!1!==t.padding&&r.push(" "),!1===t.delimiterEnd&&h===l-1||r.push("|")}p.push(!1===t.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return p.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function l(e,t,n){const r=e.children;let i=-1;const o=[],a=t.enter("tableRow");for(;++i<r.length;)o[i]=s(r[i],0,t,n);return a(),o}}function ir(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}function or(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1],n=e.children[0];if(n&&"text"===n.type){const r=t.children;let i,o=-1;for(;++o<r.length;){const e=r[o];if("paragraph"===e.type){i=e;break}}i===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function sr(e,t,n,r){const i=e.children[0],o="boolean"==typeof e.checked&&i&&"paragraph"===i.type,s="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);o&&a.move(s);let l=Qn.listItem(e,t,n,{...r,...a.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+s}))),l}const ar={tokenize:function(e,t,n){let r=0;return function t(o){return(87===o||119===o)&&r<3?(r++,e.consume(o),t):46===o&&3===r?(e.consume(o),i):n(o)};function i(e){return null===e?n(e):t(e)}},partial:!0},lr={tokenize:function(e,t,n){let r,i,o;return s;function s(t){return 46===t||95===t?e.check(ur,l,a)(t):null===t||X(t)||ee(t)||45!==t&&J(t)?l(t):(o=!0,e.consume(t),s)}function a(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),s}function l(e){return i||r||!o?n(e):t(e)}},partial:!0},cr={tokenize:function(e,t){let n=0,r=0;return i;function i(s){return 40===s?(n++,e.consume(s),i):41===s&&r<n?o(s):33===s||34===s||38===s||39===s||41===s||42===s||44===s||46===s||58===s||59===s||60===s||63===s||93===s||95===s||126===s?e.check(ur,t,o)(s):null===s||X(s)||ee(s)?t(s):(e.consume(s),i)}function o(t){return 41===t&&r++,e.consume(t),i}},partial:!0},ur={tokenize:function(e,t,n){return r;function r(s){return 33===s||34===s||39===s||41===s||42===s||44===s||46===s||58===s||59===s||63===s||95===s||126===s?(e.consume(s),r):38===s?(e.consume(s),o):93===s?(e.consume(s),i):60===s||null===s||X(s)||ee(s)?t(s):n(s)}function i(e){return null===e||40===e||91===e||X(e)||ee(e)?t(e):r(e)}function o(e){return j(e)?s(e):n(e)}function s(t){return 59===t?(e.consume(t),r):j(t)?(e.consume(t),s):n(t)}},partial:!0},hr={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return V(e)?n(e):t(e)}},partial:!0},fr={tokenize:function(e,t,n){const r=this;return function(t){return 87!==t&&119!==t||!br.call(r,r.previous)||wr(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(ar,e.attempt(lr,e.attempt(cr,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:br},dr={tokenize:function(e,t,n){const r=this;let i="",o=!1;return function(t){return 72!==t&&104!==t||!kr.call(r,r.previous)||wr(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),s)};function s(t){if(j(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(58===t){const n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),a}return n(t)}function a(t){return 47===t?(e.consume(t),o?l:(o=!0,a)):n(t)}function l(t){return null===t||$(t)||X(t)||ee(t)||J(t)?n(t):e.attempt(lr,e.attempt(cr,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:kr},pr={tokenize:function(e,t,n){const r=this;let i,o;return function(t){return vr(t)&&yr.call(r,r.previous)&&!wr(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(t)):n(t)};function s(t){return vr(t)?(e.consume(t),s):64===t?(e.consume(t),a):n(t)}function a(t){return 46===t?e.check(hr,c,l)(t):45===t||95===t||V(t)?(o=!0,e.consume(t),a):c(t)}function l(t){return e.consume(t),i=!0,a}function c(s){return o&&i&&j(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(s)):n(s)}},previous:yr},gr={};let mr=48;for(;mr<123;)gr[mr]=pr,mr++,58===mr?mr=65:91===mr&&(mr=97);function br(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||X(e)}function kr(e){return!j(e)}function yr(e){return!(47===e||vr(e))}function vr(e){return 43===e||45===e||46===e||95===e||V(e)}function wr(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}gr[43]=pr,gr[45]=pr,gr[46]=pr,gr[95]=pr,gr[72]=[pr,dr],gr[104]=[pr,dr],gr[87]=[pr,fr],gr[119]=[pr,fr];const Er={tokenize:function(e,t,n){const r=this;return re(e,(function(e){const i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function Sr(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const e=r.events[i][1];if("labelImage"===e.type){s=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!s||!s._balanced)return n(i);const a=H(r.sliceSerialize({start:s.end,end:r.now()}));return 94===a.codePointAt(0)&&o.includes(a.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)):n(i)}}function Tr(e,t){let n=e.length;for(;n--&&("labelImage"!==e[n][1].type||"enter"!==e[n][0]););e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)};return e.splice(n,e.length-n+1,e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",s,t],["exit",s,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]),e}function xr(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,s=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),a};function a(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(a){if(s>999||93===a&&!o||null===a||91===a||X(a))return n(a);if(93===a){e.exit("chunkString");const o=e.exit("gfmFootnoteCallString");return i.includes(H(r.sliceSerialize(o)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(a)}return X(a)||(o=!0),s++,e.consume(a),92===a?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),s++,l):l(t)}}function Cr(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,s,a=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(a>999||93===t&&!s||null===t||91===t||X(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return o=H(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return X(t)||(s=!0),a++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),a++,c):c(t)}function h(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i.includes(o)||i.push(o),re(e,f,"gfmFootnoteDefinitionWhitespace")):n(t)}function f(e){return t(e)}}function Ar(e,t,n){return e.check(fe,t,e.attempt(Er,t,n))}function Dr(e){e.exit("gfmFootnoteDefinition")}function Rr(e){let t=(e||{}).singleTilde;const n={tokenize:function(e,n,r){const i=this.previous,o=this.events;let s=0;return function(t){return 126===i&&"characterEscape"!==o[o.length-1][1].type?r(t):(e.enter("strikethroughSequenceTemporary"),a(t))};function a(o){const l=ae(i);if(126===o)return s>1?r(o):(e.consume(o),s++,a);if(s<2&&!t)return r(o);const c=e.exit("strikethroughSequenceTemporary"),u=ae(o);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),n(o)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},o={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},s=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",o,t]],a=t.parser.constructs.insideSpan.null;a&&O(s,s.length,0,le(a,e.slice(r+1,n),t)),O(s,s.length,0,[["exit",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),O(e,r-1,n-r+3,s),n=r+s.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class _r{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0!==n||0!==r.length){for(;i<e.map.length;){if(e.map[i][0]===t)return e.map[i][1]+=n,void e.map[i][2].push(...r);i+=1}e.map.push([t,n,r])}}(this,e,t,n)}consume(e){if(this.map.sort((function(e,t){return e[0]-t[0]})),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push([...e]),e.length=0;let r=n.pop();for(;r;)e.push(...r),r=n.pop();this.map.length=0}}function Lr(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}function Nr(e,t,n){const r=this;let i,o=0,s=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const i=t>-1?r.events[t][1].type:null,o="tableHead"===i||"tableRow"===i?v:a;return o===v&&r.parser.lazy[r.now().line]?n(e):o(e)};function a(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){return 124===e||(i=!0,s+=1),l(e)}(t)}function l(t){return null===t?n(t):K(t)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h):n(t):Z(t)?re(e,l,"whitespace")(t):(s+=1,i&&(i=!1,o+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),i=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||X(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function h(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),i=!1,Z(t)?re(e,f,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):f(t))}function f(t){return 45===t||58===t?p(t):124===t?(i=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),d):y(t)}function d(t){return Z(t)?re(e,p,"whitespace")(t):p(t)}function p(t){return 58===t?(s+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),g):45===t?(s+=1,g(t)):null===t||K(t)?k(t):y(t)}function g(t){return 45===t?(e.enter("tableDelimiterFiller"),m(t)):y(t)}function m(t){return 45===t?(e.consume(t),m):58===t?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),b):(e.exit("tableDelimiterFiller"),b(t))}function b(t){return Z(t)?re(e,k,"whitespace")(t):k(t)}function k(n){return 124===n?f(n):(null===n||K(n))&&i&&o===s?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):y(n)}function y(e){return n(e)}function v(t){return e.enter("tableRow"),w(t)}function w(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),w):null===n||K(n)?(e.exit("tableRow"),t(n)):Z(n)?re(e,w,"whitespace")(n):(e.enter("data"),E(n))}function E(t){return null===t||124===t||X(t)?(e.exit("data"),w(t)):(e.consume(t),92===t?S:E)}function S(t){return 92===t||124===t?(e.consume(t),E):E(t)}}function Ir(e,t){let n,r,i,o=-1,s=!0,a=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,h=0;const f=new _r;for(;++o<e.length;){const d=e[o],p=d[1];"enter"===d[0]?"tableHead"===p.type?(u=!1,0!==h&&(Mr(f,t,h,n,r),r=void 0,h=0),n={type:"table",start:Object.assign({},p.start),end:Object.assign({},p.end)},f.add(o,0,[["enter",n,t]])):"tableRow"===p.type||"tableDelimiterRow"===p.type?(s=!0,i=void 0,l=[0,0,0,0],c=[0,o+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},p.start),end:Object.assign({},p.end)},f.add(o,0,[["enter",r,t]])),a="tableDelimiterRow"===p.type?2:r?3:1):!a||"data"!==p.type&&"tableDelimiterMarker"!==p.type&&"tableDelimiterFiller"!==p.type?"tableCellDivider"===p.type&&(s?s=!1:(0!==l[1]&&(c[0]=c[1],i=Or(f,t,l,a,void 0,i)),l=c,c=[l[1],o,0,0])):(s=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],i=Or(f,t,l,a,void 0,i),l=[0,0,0,0]),c[2]=o)):"tableHead"===p.type?(u=!0,h=o):"tableRow"===p.type||"tableDelimiterRow"===p.type?(h=o,0!==l[1]?(c[0]=c[1],i=Or(f,t,l,a,o,i)):0!==c[1]&&(i=Or(f,t,c,a,o,i)),a=0):!a||"data"!==p.type&&"tableDelimiterMarker"!==p.type&&"tableDelimiterFiller"!==p.type||(c[3]=o)}for(0!==h&&Mr(f,t,h,n,r),f.consume(t.events),o=-1;++o<t.events.length;){const e=t.events[o];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=Lr(t.events,o))}return e}function Or(e,t,n,r,i,o){const s=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(o.end=Object.assign({},Pr(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const a=Pr(t.events,n[1]);if(o={type:s,start:Object.assign({},a),end:Object.assign({},a)},e.add(n[1],0,[["enter",o,t]]),0!==n[2]){const i=Pr(t.events,n[2]),o=Pr(t.events,n[3]),s={type:"tableContent",start:Object.assign({},i),end:Object.assign({},o)};if(e.add(n[2],0,[["enter",s,t]]),2!==r){const r=t.events[n[2]];r[1].end=Object.assign({},t.events[n[3]][1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1&&e.add(n[2]+1,n[3]-n[2]-1,[])}e.add(n[3]+1,0,[["exit",s,t]])}return void 0!==i&&(o.end=Object.assign({},Pr(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function Mr(e,t,n,r,i){const o=[],s=Pr(t.events,n);i&&(i.end=Object.assign({},s),o.push(["exit",i,t])),r.end=Object.assign({},s),o.push(["exit",r,t]),e.add(n+1,0,o)}function Pr(e,t){const n=e[t];return n[1]["enter"===n[0]?"start":"end"]}const qr={tokenize:function(e,t,n){const r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return X(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(t)}function s(r){return K(r)?t(r):Z(r)?e.check({tokenize:Fr},t,n)(r):n(r)}}};function Fr(e,t,n){return re(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}const Br={};function Ur(e){const t=e||Br,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return q([{text:gr},{document:{91:{tokenize:Cr,continuation:{tokenize:Ar},exit:Dr}},text:{91:{tokenize:xr},93:{add:"after",tokenize:Sr,resolveTo:Tr}}},Rr(e),{flow:{null:{tokenize:Nr,resolveAll:Ir}}},{text:{91:qr}}])}(t)),i.push([{transforms:[Vt],enter:{literalAutolink:Ft,literalAutolinkEmail:Bt,literalAutolinkHttp:Bt,literalAutolinkWww:Bt},exit:{literalAutolink:jt,literalAutolinkEmail:zt,literalAutolinkHttp:Ut,literalAutolinkWww:Ht}},{enter:{gfmFootnoteDefinition:Wt,gfmFootnoteDefinitionLabelString:Qt,gfmFootnoteCall:Zt,gfmFootnoteCallString:Jt},exit:{gfmFootnoteDefinition:Xt,gfmFootnoteDefinitionLabelString:Kt,gfmFootnoteCall:tn,gfmFootnoteCallString:en}},{canContainEols:["delete"],enter:{strikethrough:an},exit:{strikethrough:ln}},{enter:{table:Kn,tableData:er,tableHeader:er,tableRow:Zn},exit:{codeText:tr,table:Xn,tableData:Jn,tableHeader:Jn,tableRow:Jn}},{exit:{taskListCheckValueChecked:ir,taskListCheckValueUnchecked:ir,paragraph:or}}]),o.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Pt,notInConstruct:qt},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Pt,notInConstruct:qt},{character:":",before:"[ps]",after:"\\/",inConstruct:Pt,notInConstruct:qt}]},{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:rn,footnoteReference:nn}},{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:sn}],handlers:{delete:cn}},rr(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:sr}}]}}(t))}function Hr(){return{type:"break"}}function zr(){return function(e){!function(e){Ot(e,[/\r?\n|\r/g,Hr])}(e)}}let jr=class{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}};function Vr(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new jr(n,r,t)}function Gr(e){return e.toLowerCase()}jr.prototype.property={},jr.prototype.normal={},jr.prototype.space=null;let $r=class{constructor(e,t){this.property=e,this.attribute=t}};$r.prototype.space=null,$r.prototype.boolean=!1,$r.prototype.booleanish=!1,$r.prototype.overloadedBoolean=!1,$r.prototype.number=!1,$r.prototype.commaSeparated=!1,$r.prototype.spaceSeparated=!1,$r.prototype.commaOrSpaceSeparated=!1,$r.prototype.mustUseProperty=!1,$r.prototype.defined=!1;let Yr=0;const Wr=ti(),Qr=ti(),Kr=ti(),Xr=ti(),Zr=ti(),Jr=ti(),ei=ti();function ti(){return 2**++Yr}var ni=Object.freeze({__proto__:null,boolean:Wr,booleanish:Qr,commaOrSpaceSeparated:ei,commaSeparated:Jr,number:Xr,overloadedBoolean:Kr,spaceSeparated:Zr});const ri=Object.keys(ni);let ii=class extends $r{constructor(e,t,n,r){let i=-1;if(super(e,t),oi(this,"space",r),"number"==typeof n)for(;++i<ri.length;){const e=ri[i];oi(this,ri[i],(n&ni[e])===ni[e])}}};function oi(e,t,n){n&&(e[t]=n)}ii.prototype.defined=!0;const si={}.hasOwnProperty;function ai(e){const t={},n={};let r;for(r in e.properties)if(si.call(e.properties,r)){const i=e.properties[r],o=new ii(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Gr(r)]=r,n[Gr(o.attribute)]=r}return new jr(t,n,e.space)}const li=ai({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),ci=ai({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function ui(e,t){return t in e?e[t]:t}function hi(e,t){return ui(e,t.toLowerCase())}const fi=ai({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:hi,properties:{xmlns:null,xmlnsXLink:null}}),di=ai({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Qr,ariaAutoComplete:null,ariaBusy:Qr,ariaChecked:Qr,ariaColCount:Xr,ariaColIndex:Xr,ariaColSpan:Xr,ariaControls:Zr,ariaCurrent:null,ariaDescribedBy:Zr,ariaDetails:null,ariaDisabled:Qr,ariaDropEffect:Zr,ariaErrorMessage:null,ariaExpanded:Qr,ariaFlowTo:Zr,ariaGrabbed:Qr,ariaHasPopup:null,ariaHidden:Qr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Zr,ariaLevel:Xr,ariaLive:null,ariaModal:Qr,ariaMultiLine:Qr,ariaMultiSelectable:Qr,ariaOrientation:null,ariaOwns:Zr,ariaPlaceholder:null,ariaPosInSet:Xr,ariaPressed:Qr,ariaReadOnly:Qr,ariaRelevant:null,ariaRequired:Qr,ariaRoleDescription:Zr,ariaRowCount:Xr,ariaRowIndex:Xr,ariaRowSpan:Xr,ariaSelected:Qr,ariaSetSize:Xr,ariaSort:null,ariaValueMax:Xr,ariaValueMin:Xr,ariaValueNow:Xr,ariaValueText:null,role:null}}),pi=ai({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:hi,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Jr,acceptCharset:Zr,accessKey:Zr,action:null,allow:null,allowFullScreen:Wr,allowPaymentRequest:Wr,allowUserMedia:Wr,alt:null,as:null,async:Wr,autoCapitalize:null,autoComplete:Zr,autoFocus:Wr,autoPlay:Wr,blocking:Zr,capture:Wr,charSet:null,checked:Wr,cite:null,className:Zr,cols:Xr,colSpan:null,content:null,contentEditable:Qr,controls:Wr,controlsList:Zr,coords:Xr|Jr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Wr,defer:Wr,dir:null,dirName:null,disabled:Wr,download:Kr,draggable:Qr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Wr,formTarget:null,headers:Zr,height:Xr,hidden:Wr,high:Xr,href:null,hrefLang:null,htmlFor:Zr,httpEquiv:Zr,id:null,imageSizes:null,imageSrcSet:null,inert:Wr,inputMode:null,integrity:null,is:null,isMap:Wr,itemId:null,itemProp:Zr,itemRef:Zr,itemScope:Wr,itemType:Zr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Wr,low:Xr,manifest:null,max:null,maxLength:Xr,media:null,method:null,min:null,minLength:Xr,multiple:Wr,muted:Wr,name:null,nonce:null,noModule:Wr,noValidate:Wr,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Wr,optimum:Xr,pattern:null,ping:Zr,placeholder:null,playsInline:Wr,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Wr,referrerPolicy:null,rel:Zr,required:Wr,reversed:Wr,rows:Xr,rowSpan:Xr,sandbox:Zr,scope:null,scoped:Wr,seamless:Wr,selected:Wr,shape:null,size:Xr,sizes:null,slot:null,span:Xr,spellCheck:Qr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Xr,step:null,style:null,tabIndex:Xr,target:null,title:null,translate:null,type:null,typeMustMatch:Wr,useMap:null,value:Qr,width:Xr,wrap:null,align:null,aLink:null,archive:Zr,axis:null,background:null,bgColor:null,border:Xr,borderColor:null,bottomMargin:Xr,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Wr,declare:Wr,event:null,face:null,frame:null,frameBorder:null,hSpace:Xr,leftMargin:Xr,link:null,longDesc:null,lowSrc:null,marginHeight:Xr,marginWidth:Xr,noResize:Wr,noHref:Wr,noShade:Wr,noWrap:Wr,object:null,profile:null,prompt:null,rev:null,rightMargin:Xr,rules:null,scheme:null,scrolling:Qr,standby:null,summary:null,text:null,topMargin:Xr,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Xr,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Wr,disableRemotePlayback:Wr,prefix:null,property:null,results:Xr,security:null,unselectable:null}}),gi=ai({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:ui,properties:{about:ei,accentHeight:Xr,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Xr,amplitude:Xr,arabicForm:null,ascent:Xr,attributeName:null,attributeType:null,azimuth:Xr,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Xr,by:null,calcMode:null,capHeight:Xr,className:Zr,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Xr,diffuseConstant:Xr,direction:null,display:null,dur:null,divisor:Xr,dominantBaseline:null,download:Wr,dx:null,dy:null,edgeMode:null,editable:null,elevation:Xr,enableBackground:null,end:null,event:null,exponent:Xr,externalResourcesRequired:null,fill:null,fillOpacity:Xr,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Jr,g2:Jr,glyphName:Jr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Xr,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Xr,horizOriginX:Xr,horizOriginY:Xr,id:null,ideographic:Xr,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Xr,k:Xr,k1:Xr,k2:Xr,k3:Xr,k4:Xr,kernelMatrix:ei,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Xr,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Xr,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Xr,overlineThickness:Xr,paintOrder:null,panose1:null,path:null,pathLength:Xr,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Zr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Xr,pointsAtY:Xr,pointsAtZ:Xr,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ei,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ei,rev:ei,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ei,requiredFeatures:ei,requiredFonts:ei,requiredFormats:ei,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Xr,specularExponent:Xr,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Xr,strikethroughThickness:Xr,string:null,stroke:null,strokeDashArray:ei,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Xr,strokeOpacity:Xr,strokeWidth:null,style:null,surfaceScale:Xr,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ei,tabIndex:Xr,tableValues:null,target:null,targetX:Xr,targetY:Xr,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ei,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Xr,underlineThickness:Xr,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Xr,values:null,vAlphabetic:Xr,vMathematical:Xr,vectorEffect:null,vHanging:Xr,vIdeographic:Xr,version:null,vertAdvY:Xr,vertOriginX:Xr,vertOriginY:Xr,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Xr,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),mi=/^data[-\w.:]+$/i,bi=/-[a-z]/g,ki=/[A-Z]/g;function yi(e,t){const n=Gr(t);let r=t,i=$r;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&mi.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(bi,wi);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!bi.test(e)){let n=e.replace(ki,vi);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=ii}return new i(r,t)}function vi(e){return"-"+e.toLowerCase()}function wi(e){return e.charAt(1).toUpperCase()}const Ei=Vr([ci,li,fi,di,pi],"html"),Si=Vr([ci,li,fi,di,gi],"svg"),Ti=new Set(["button","menu","reset","submit"]),xi={}.hasOwnProperty;function Ci(e,t,n){const r=n&&function(e){const t={};let n=-1;for(;++n<e.length;)t[e[n].toLowerCase()]=e[n];return t}(n);return function(n,i,...o){let s,a=-1;if(null==n)s={type:"root",children:[]},o.unshift(i);else if(s=h(n,t),s.tagName=s.tagName.toLowerCase(),r&&xi.call(r,s.tagName)&&(s.tagName=r[s.tagName]),c=s.tagName,null==(l=i)||"object"!=typeof l||Array.isArray(l)||"input"!==c&&l.type&&"string"==typeof l.type&&("children"in l&&Array.isArray(l.children)||("button"===c?!Ti.has(l.type.toLowerCase()):"value"in l)))o.unshift(i);else{let t;for(t in i)xi.call(i,t)&&Ai(e,s.properties,t,i[t])}for(var l,c;++a<o.length;)Di(s.children,o[a]);return"element"===s.type&&"template"===s.tagName&&(s.content={type:"root",children:s.children},s.children=[]),s}}function Ai(e,t,n,r){const i=yi(e,n);let o,s=-1;if(null!=r){if("number"==typeof r){if(Number.isNaN(r))return;o=r}else o="boolean"==typeof r?r:"string"==typeof r?i.spaceSeparated?f(r):i.commaSeparated?d(r):i.commaOrSpaceSeparated?f(d(r).join(" ")):Ri(i,i.property,r):Array.isArray(r)?r.concat():"style"===i.property?function(e){const t=[];let n;for(n in e)xi.call(e,n)&&t.push([n,e[n]].join(": "));return t.join("; ")}(r):String(r);if(Array.isArray(o)){const e=[];for(;++s<o.length;){const t=Ri(i,i.property,o[s]);e[s]=t}o=e}"className"===i.property&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[i.property]=o}}function Di(e,t){let n=-1;if(null==t);else if("string"==typeof t||"number"==typeof t)e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++n<t.length;)Di(e,t[n]);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");"root"===t.type?Di(e,t.children):e.push(t)}}function Ri(e,t,n){if("string"==typeof n){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(""===n||Gr(n)===Gr(t)))return!0}return n}const _i=Ci(Ei,"div"),Li=Ci(Si,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]),Ni=/\r?\n|\r/g,Ii={}.hasOwnProperty,Oi=Object.prototype;function Mi(e,t){let n;switch(t.nodeName){case"#comment":return n={type:"comment",value:t.data},qi(e,t,n),n;case"#document":case"#document-fragment":{const r="mode"in t&&("quirks"===t.mode||"limited-quirks"===t.mode);if(n={type:"root",children:Pi(e,t.childNodes),data:{quirksMode:r}},e.file&&e.location){const t=String(e.file),r=function(e){const t=String(e),n=[];for(Ni.lastIndex=0;Ni.test(t);)n.push(Ni.lastIndex);return n.push(t.length+1),{toPoint:function(e){let t=-1;if("number"==typeof e&&e>-1&&e<n[n.length-1])for(;++t<n.length;)if(n[t]>e)return{line:t+1,column:e-(t>0?n[t-1]:0)+1,offset:e}},toOffset:function(e){const t=e&&e.line,r=e&&e.column;if("number"==typeof t&&"number"==typeof r&&!Number.isNaN(t)&&!Number.isNaN(r)&&t-1 in n){const e=(n[t-2]||0)+r-1||0;if(e>-1&&e<n[n.length-1])return e}}}}(t),i=r.toPoint(0),o=r.toPoint(t.length);n.position={start:i,end:o}}return n}case"#documentType":return n={type:"doctype"},qi(e,t,n),n;case"#text":return n={type:"text",value:t.value},qi(e,t,n),n;default:return n=function(e,t){const n=e.schema;e.schema=t.namespaceURI===p.svg?Si:Ei;let r=-1;const i={};for(;++r<t.attrs.length;){const e=t.attrs[r],n=(e.prefix?e.prefix+":":"")+e.name;Ii.call(Oi,n)||(i[n]=e.value)}const o=("svg"===e.schema.space?Li:_i)(t.tagName,i,Pi(e,t.childNodes));if(qi(e,t,o),"template"===o.tagName){const n=t,r=n.sourceCodeLocation,i=r&&r.startTag&&Bi(r.startTag),s=r&&r.endTag&&Bi(r.endTag),a=Mi(e,n.content);i&&s&&e.file&&(a.position={start:i.end,end:s.start}),o.content=a}return e.schema=n,o}(e,t),n}}function Pi(e,t){let n=-1;const r=[];for(;++n<t.length;){const i=Mi(e,t[n]);r.push(i)}return r}function qi(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=Fi(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function Fi(e,t,n){const r=Bi(n);if("element"===t.type){const i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){const r={};let i;if(n.attrs)for(i in n.attrs)Ii.call(n.attrs,i)&&(r[yi(e.schema,i).property]=Bi(n.attrs[i]));const o=Bi(n.startTag),s=n.endTag?Bi(n.endTag):void 0,a={opening:o};s&&(a.closing=s),a.properties=r,t.data={position:a}}}return r}function Bi(e){const t=Ui({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Ui({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function Ui(e){return e.line&&e.column?e:void 0}class Hi{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function zi(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new Hi(n,r,t)}function ji(e){return e.toLowerCase()}Hi.prototype.property={},Hi.prototype.normal={},Hi.prototype.space=null;class Vi{constructor(e,t){this.property=e,this.attribute=t}}Vi.prototype.space=null,Vi.prototype.boolean=!1,Vi.prototype.booleanish=!1,Vi.prototype.overloadedBoolean=!1,Vi.prototype.number=!1,Vi.prototype.commaSeparated=!1,Vi.prototype.spaceSeparated=!1,Vi.prototype.commaOrSpaceSeparated=!1,Vi.prototype.mustUseProperty=!1,Vi.prototype.defined=!1;let Gi=0;const $i=Ji(),Yi=Ji(),Wi=Ji(),Qi=Ji(),Ki=Ji(),Xi=Ji(),Zi=Ji();function Ji(){return 2**++Gi}var eo=Object.freeze({__proto__:null,boolean:$i,booleanish:Yi,commaOrSpaceSeparated:Zi,commaSeparated:Xi,number:Qi,overloadedBoolean:Wi,spaceSeparated:Ki});const to=Object.keys(eo);class no extends Vi{constructor(e,t,n,r){let i=-1;if(super(e,t),ro(this,"space",r),"number"==typeof n)for(;++i<to.length;){const e=to[i];ro(this,to[i],(n&eo[e])===eo[e])}}}function ro(e,t,n){n&&(e[t]=n)}no.prototype.defined=!0;const io={}.hasOwnProperty;function oo(e){const t={},n={};let r;for(r in e.properties)if(io.call(e.properties,r)){const i=e.properties[r],o=new no(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[ji(r)]=r,n[ji(o.attribute)]=r}return new Hi(t,n,e.space)}const so=oo({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),ao=oo({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function lo(e,t){return t in e?e[t]:t}function co(e,t){return lo(e,t.toLowerCase())}const uo=oo({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:co,properties:{xmlns:null,xmlnsXLink:null}}),ho=oo({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Yi,ariaAutoComplete:null,ariaBusy:Yi,ariaChecked:Yi,ariaColCount:Qi,ariaColIndex:Qi,ariaColSpan:Qi,ariaControls:Ki,ariaCurrent:null,ariaDescribedBy:Ki,ariaDetails:null,ariaDisabled:Yi,ariaDropEffect:Ki,ariaErrorMessage:null,ariaExpanded:Yi,ariaFlowTo:Ki,ariaGrabbed:Yi,ariaHasPopup:null,ariaHidden:Yi,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ki,ariaLevel:Qi,ariaLive:null,ariaModal:Yi,ariaMultiLine:Yi,ariaMultiSelectable:Yi,ariaOrientation:null,ariaOwns:Ki,ariaPlaceholder:null,ariaPosInSet:Qi,ariaPressed:Yi,ariaReadOnly:Yi,ariaRelevant:null,ariaRequired:Yi,ariaRoleDescription:Ki,ariaRowCount:Qi,ariaRowIndex:Qi,ariaRowSpan:Qi,ariaSelected:Yi,ariaSetSize:Qi,ariaSort:null,ariaValueMax:Qi,ariaValueMin:Qi,ariaValueNow:Qi,ariaValueText:null,role:null}}),fo=oo({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:co,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Xi,acceptCharset:Ki,accessKey:Ki,action:null,allow:null,allowFullScreen:$i,allowPaymentRequest:$i,allowUserMedia:$i,alt:null,as:null,async:$i,autoCapitalize:null,autoComplete:Ki,autoFocus:$i,autoPlay:$i,blocking:Ki,capture:$i,charSet:null,checked:$i,cite:null,className:Ki,cols:Qi,colSpan:null,content:null,contentEditable:Yi,controls:$i,controlsList:Ki,coords:Qi|Xi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:$i,defer:$i,dir:null,dirName:null,disabled:$i,download:Wi,draggable:Yi,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:$i,formTarget:null,headers:Ki,height:Qi,hidden:$i,high:Qi,href:null,hrefLang:null,htmlFor:Ki,httpEquiv:Ki,id:null,imageSizes:null,imageSrcSet:null,inert:$i,inputMode:null,integrity:null,is:null,isMap:$i,itemId:null,itemProp:Ki,itemRef:Ki,itemScope:$i,itemType:Ki,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:$i,low:Qi,manifest:null,max:null,maxLength:Qi,media:null,method:null,min:null,minLength:Qi,multiple:$i,muted:$i,name:null,nonce:null,noModule:$i,noValidate:$i,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:$i,optimum:Qi,pattern:null,ping:Ki,placeholder:null,playsInline:$i,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:$i,referrerPolicy:null,rel:Ki,required:$i,reversed:$i,rows:Qi,rowSpan:Qi,sandbox:Ki,scope:null,scoped:$i,seamless:$i,selected:$i,shape:null,size:Qi,sizes:null,slot:null,span:Qi,spellCheck:Yi,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Qi,step:null,style:null,tabIndex:Qi,target:null,title:null,translate:null,type:null,typeMustMatch:$i,useMap:null,value:Yi,width:Qi,wrap:null,align:null,aLink:null,archive:Ki,axis:null,background:null,bgColor:null,border:Qi,borderColor:null,bottomMargin:Qi,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:$i,declare:$i,event:null,face:null,frame:null,frameBorder:null,hSpace:Qi,leftMargin:Qi,link:null,longDesc:null,lowSrc:null,marginHeight:Qi,marginWidth:Qi,noResize:$i,noHref:$i,noShade:$i,noWrap:$i,object:null,profile:null,prompt:null,rev:null,rightMargin:Qi,rules:null,scheme:null,scrolling:Yi,standby:null,summary:null,text:null,topMargin:Qi,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Qi,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:$i,disableRemotePlayback:$i,prefix:null,property:null,results:Qi,security:null,unselectable:null}}),po=oo({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:lo,properties:{about:Zi,accentHeight:Qi,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Qi,amplitude:Qi,arabicForm:null,ascent:Qi,attributeName:null,attributeType:null,azimuth:Qi,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Qi,by:null,calcMode:null,capHeight:Qi,className:Ki,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Qi,diffuseConstant:Qi,direction:null,display:null,dur:null,divisor:Qi,dominantBaseline:null,download:$i,dx:null,dy:null,edgeMode:null,editable:null,elevation:Qi,enableBackground:null,end:null,event:null,exponent:Qi,externalResourcesRequired:null,fill:null,fillOpacity:Qi,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Xi,g2:Xi,glyphName:Xi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Qi,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Qi,horizOriginX:Qi,horizOriginY:Qi,id:null,ideographic:Qi,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Qi,k:Qi,k1:Qi,k2:Qi,k3:Qi,k4:Qi,kernelMatrix:Zi,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Qi,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Qi,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Qi,overlineThickness:Qi,paintOrder:null,panose1:null,path:null,pathLength:Qi,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ki,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Qi,pointsAtY:Qi,pointsAtZ:Qi,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Zi,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Zi,rev:Zi,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Zi,requiredFeatures:Zi,requiredFonts:Zi,requiredFormats:Zi,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Qi,specularExponent:Qi,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Qi,strikethroughThickness:Qi,string:null,stroke:null,strokeDashArray:Zi,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Qi,strokeOpacity:Qi,strokeWidth:null,style:null,surfaceScale:Qi,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Zi,tabIndex:Qi,tableValues:null,target:null,targetX:Qi,targetY:Qi,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Zi,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Qi,underlineThickness:Qi,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Qi,values:null,vAlphabetic:Qi,vMathematical:Qi,vectorEffect:null,vHanging:Qi,vIdeographic:Qi,version:null,vertAdvY:Qi,vertOriginX:Qi,vertOriginY:Qi,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Qi,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),go=/^data[-\w.:]+$/i,mo=/-[a-z]/g,bo=/[A-Z]/g;function ko(e){return"-"+e.toLowerCase()}function yo(e){return e.charAt(1).toUpperCase()}const vo=zi([ao,so,uo,ho,fo],"html"),wo=zi([ao,so,uo,ho,po],"svg"),Eo={},So={}.hasOwnProperty,To=g("type",{handlers:{root:function(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Co(e.children,n,t),Ao(e,n),n},element:function(e,t){const n=t;let r=n;"element"===e.type&&"svg"===e.tagName.toLowerCase()&&"html"===n.space&&(r=wo);const i=[];let o;if(e.properties)for(o in e.properties)if("children"!==o&&So.call(e.properties,o)){const t=xo(r,o,e.properties[o]);t&&i.push(t)}const s={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:p[r.space],childNodes:[],parentNode:null};return s.childNodes=Co(e.children,s,r),Ao(e,s),"template"===e.tagName&&e.content&&(s.content=function(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Co(e.children,n,t),Ao(e,n),n}(e.content,r)),s},text:function(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Ao(e,t),t},comment:function(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Ao(e,t),t},doctype:function(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Ao(e,t),t}}});function xo(e,t,n){const r=function(e,t){const n=ji(t);let r=t,i=Vi;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&go.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(mo,yo);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!mo.test(e)){let n=e.replace(bo,ko);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=no}return new i(r,t)}(e,t);if(!1===n||null==n||"number"==typeof n&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?m(n):b(n));const i={name:r.attribute,value:!0===n?"":String(n)};if(r.space&&"html"!==r.space&&"svg"!==r.space){const e=i.name.indexOf(":");e<0?i.prefix="":(i.name=i.name.slice(e+1),i.prefix=r.attribute.slice(0,e)),i.namespace=p[r.space]}return i}function Co(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const o=To(e[r],n);o.parentNode=t,i.push(o)}return i}function Ao(e,t){const n=e.position;n&&n.start&&n.end&&(t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const Do=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Ro=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]),_o="�";var Lo;!function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.NUMBER_SIGN=35]="NUMBER_SIGN",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_F=70]="LATIN_CAPITAL_F",e[e.LATIN_CAPITAL_X=88]="LATIN_CAPITAL_X",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_F=102]="LATIN_SMALL_F",e[e.LATIN_SMALL_X=120]="LATIN_SMALL_X",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z",e[e.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"}(Lo=Lo||(Lo={}));const No="[CDATA[",Io="doctype",Oo="script";function Mo(e){return e>=55296&&e<=57343}function Po(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function qo(e){return e>=64976&&e<=65007||Ro.has(e)}var Fo,Bo,Uo,Ho,zo,jo,Vo;!function(e){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"}(Fo=Fo||(Fo={}));class Go{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e){const{line:t,col:n,offset:r}=this;return{code:e,startLine:t,endLine:t,startCol:n,endCol:n,startOffset:r,endOffset:r}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const t=this.html.charCodeAt(this.pos+1);if(function(e){return e>=56320&&e<=57343}(t))return this.pos++,this._addGap(),1024*(e-55296)+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Lo.EOF;return this._err(Fo.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let t=0;t<e.length;t++)if((32|this.html.charCodeAt(this.pos+t))!==e.charCodeAt(t))return!1;return!0}peek(e){const t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,Lo.EOF;const n=this.html.charCodeAt(t);return n===Lo.CARRIAGE_RETURN?Lo.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,Lo.EOF;let e=this.html.charCodeAt(this.pos);return e===Lo.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,Lo.LINE_FEED):e===Lo.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Mo(e)&&(e=this._processSurrogate(e)),null===this.handler.onParseError||e>31&&e<127||e===Lo.LINE_FEED||e===Lo.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){Po(e)?this._err(Fo.controlCharacterInInputStream):qo(e)&&this._err(Fo.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}function $o(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}!function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"}(Bo=Bo||(Bo={})),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/"}(Uo=Uo||(Uo={})),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"}(Ho=Ho||(Ho={})),function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"}(zo=zo||(zo={})),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.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"}(jo=jo||(jo={})),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.SECTION=94]="SECTION",e[e.SELECT=95]="SELECT",e[e.SOURCE=96]="SOURCE",e[e.SMALL=97]="SMALL",e[e.SPAN=98]="SPAN",e[e.STRIKE=99]="STRIKE",e[e.STRONG=100]="STRONG",e[e.STYLE=101]="STYLE",e[e.SUB=102]="SUB",e[e.SUMMARY=103]="SUMMARY",e[e.SUP=104]="SUP",e[e.TABLE=105]="TABLE",e[e.TBODY=106]="TBODY",e[e.TEMPLATE=107]="TEMPLATE",e[e.TEXTAREA=108]="TEXTAREA",e[e.TFOOT=109]="TFOOT",e[e.TD=110]="TD",e[e.TH=111]="TH",e[e.THEAD=112]="THEAD",e[e.TITLE=113]="TITLE",e[e.TR=114]="TR",e[e.TRACK=115]="TRACK",e[e.TT=116]="TT",e[e.U=117]="U",e[e.UL=118]="UL",e[e.SVG=119]="SVG",e[e.VAR=120]="VAR",e[e.WBR=121]="WBR",e[e.XMP=122]="XMP"}(Vo=Vo||(Vo={}));const Yo=new Map([[jo.A,Vo.A],[jo.ADDRESS,Vo.ADDRESS],[jo.ANNOTATION_XML,Vo.ANNOTATION_XML],[jo.APPLET,Vo.APPLET],[jo.AREA,Vo.AREA],[jo.ARTICLE,Vo.ARTICLE],[jo.ASIDE,Vo.ASIDE],[jo.B,Vo.B],[jo.BASE,Vo.BASE],[jo.BASEFONT,Vo.BASEFONT],[jo.BGSOUND,Vo.BGSOUND],[jo.BIG,Vo.BIG],[jo.BLOCKQUOTE,Vo.BLOCKQUOTE],[jo.BODY,Vo.BODY],[jo.BR,Vo.BR],[jo.BUTTON,Vo.BUTTON],[jo.CAPTION,Vo.CAPTION],[jo.CENTER,Vo.CENTER],[jo.CODE,Vo.CODE],[jo.COL,Vo.COL],[jo.COLGROUP,Vo.COLGROUP],[jo.DD,Vo.DD],[jo.DESC,Vo.DESC],[jo.DETAILS,Vo.DETAILS],[jo.DIALOG,Vo.DIALOG],[jo.DIR,Vo.DIR],[jo.DIV,Vo.DIV],[jo.DL,Vo.DL],[jo.DT,Vo.DT],[jo.EM,Vo.EM],[jo.EMBED,Vo.EMBED],[jo.FIELDSET,Vo.FIELDSET],[jo.FIGCAPTION,Vo.FIGCAPTION],[jo.FIGURE,Vo.FIGURE],[jo.FONT,Vo.FONT],[jo.FOOTER,Vo.FOOTER],[jo.FOREIGN_OBJECT,Vo.FOREIGN_OBJECT],[jo.FORM,Vo.FORM],[jo.FRAME,Vo.FRAME],[jo.FRAMESET,Vo.FRAMESET],[jo.H1,Vo.H1],[jo.H2,Vo.H2],[jo.H3,Vo.H3],[jo.H4,Vo.H4],[jo.H5,Vo.H5],[jo.H6,Vo.H6],[jo.HEAD,Vo.HEAD],[jo.HEADER,Vo.HEADER],[jo.HGROUP,Vo.HGROUP],[jo.HR,Vo.HR],[jo.HTML,Vo.HTML],[jo.I,Vo.I],[jo.IMG,Vo.IMG],[jo.IMAGE,Vo.IMAGE],[jo.INPUT,Vo.INPUT],[jo.IFRAME,Vo.IFRAME],[jo.KEYGEN,Vo.KEYGEN],[jo.LABEL,Vo.LABEL],[jo.LI,Vo.LI],[jo.LINK,Vo.LINK],[jo.LISTING,Vo.LISTING],[jo.MAIN,Vo.MAIN],[jo.MALIGNMARK,Vo.MALIGNMARK],[jo.MARQUEE,Vo.MARQUEE],[jo.MATH,Vo.MATH],[jo.MENU,Vo.MENU],[jo.META,Vo.META],[jo.MGLYPH,Vo.MGLYPH],[jo.MI,Vo.MI],[jo.MO,Vo.MO],[jo.MN,Vo.MN],[jo.MS,Vo.MS],[jo.MTEXT,Vo.MTEXT],[jo.NAV,Vo.NAV],[jo.NOBR,Vo.NOBR],[jo.NOFRAMES,Vo.NOFRAMES],[jo.NOEMBED,Vo.NOEMBED],[jo.NOSCRIPT,Vo.NOSCRIPT],[jo.OBJECT,Vo.OBJECT],[jo.OL,Vo.OL],[jo.OPTGROUP,Vo.OPTGROUP],[jo.OPTION,Vo.OPTION],[jo.P,Vo.P],[jo.PARAM,Vo.PARAM],[jo.PLAINTEXT,Vo.PLAINTEXT],[jo.PRE,Vo.PRE],[jo.RB,Vo.RB],[jo.RP,Vo.RP],[jo.RT,Vo.RT],[jo.RTC,Vo.RTC],[jo.RUBY,Vo.RUBY],[jo.S,Vo.S],[jo.SCRIPT,Vo.SCRIPT],[jo.SECTION,Vo.SECTION],[jo.SELECT,Vo.SELECT],[jo.SOURCE,Vo.SOURCE],[jo.SMALL,Vo.SMALL],[jo.SPAN,Vo.SPAN],[jo.STRIKE,Vo.STRIKE],[jo.STRONG,Vo.STRONG],[jo.STYLE,Vo.STYLE],[jo.SUB,Vo.SUB],[jo.SUMMARY,Vo.SUMMARY],[jo.SUP,Vo.SUP],[jo.TABLE,Vo.TABLE],[jo.TBODY,Vo.TBODY],[jo.TEMPLATE,Vo.TEMPLATE],[jo.TEXTAREA,Vo.TEXTAREA],[jo.TFOOT,Vo.TFOOT],[jo.TD,Vo.TD],[jo.TH,Vo.TH],[jo.THEAD,Vo.THEAD],[jo.TITLE,Vo.TITLE],[jo.TR,Vo.TR],[jo.TRACK,Vo.TRACK],[jo.TT,Vo.TT],[jo.U,Vo.U],[jo.UL,Vo.UL],[jo.SVG,Vo.SVG],[jo.VAR,Vo.VAR],[jo.WBR,Vo.WBR],[jo.XMP,Vo.XMP]]);function Wo(e){var t;return null!==(t=Yo.get(e))&&void 0!==t?t:Vo.UNKNOWN}const Qo=Vo,Ko={[Uo.HTML]:new Set([Qo.ADDRESS,Qo.APPLET,Qo.AREA,Qo.ARTICLE,Qo.ASIDE,Qo.BASE,Qo.BASEFONT,Qo.BGSOUND,Qo.BLOCKQUOTE,Qo.BODY,Qo.BR,Qo.BUTTON,Qo.CAPTION,Qo.CENTER,Qo.COL,Qo.COLGROUP,Qo.DD,Qo.DETAILS,Qo.DIR,Qo.DIV,Qo.DL,Qo.DT,Qo.EMBED,Qo.FIELDSET,Qo.FIGCAPTION,Qo.FIGURE,Qo.FOOTER,Qo.FORM,Qo.FRAME,Qo.FRAMESET,Qo.H1,Qo.H2,Qo.H3,Qo.H4,Qo.H5,Qo.H6,Qo.HEAD,Qo.HEADER,Qo.HGROUP,Qo.HR,Qo.HTML,Qo.IFRAME,Qo.IMG,Qo.INPUT,Qo.LI,Qo.LINK,Qo.LISTING,Qo.MAIN,Qo.MARQUEE,Qo.MENU,Qo.META,Qo.NAV,Qo.NOEMBED,Qo.NOFRAMES,Qo.NOSCRIPT,Qo.OBJECT,Qo.OL,Qo.P,Qo.PARAM,Qo.PLAINTEXT,Qo.PRE,Qo.SCRIPT,Qo.SECTION,Qo.SELECT,Qo.SOURCE,Qo.STYLE,Qo.SUMMARY,Qo.TABLE,Qo.TBODY,Qo.TD,Qo.TEMPLATE,Qo.TEXTAREA,Qo.TFOOT,Qo.TH,Qo.THEAD,Qo.TITLE,Qo.TR,Qo.TRACK,Qo.UL,Qo.WBR,Qo.XMP]),[Uo.MATHML]:new Set([Qo.MI,Qo.MO,Qo.MN,Qo.MS,Qo.MTEXT,Qo.ANNOTATION_XML]),[Uo.SVG]:new Set([Qo.TITLE,Qo.FOREIGN_OBJECT,Qo.DESC]),[Uo.XLINK]:new Set,[Uo.XML]:new Set,[Uo.XMLNS]:new Set};function Xo(e){return e===Qo.H1||e===Qo.H2||e===Qo.H3||e===Qo.H4||e===Qo.H5||e===Qo.H6}const Zo=new Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);var Jo;!function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",e[e.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",e[e.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",e[e.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",e[e.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",e[e.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"}(Jo||(Jo={}));const es={DATA:Jo.DATA,RCDATA:Jo.RCDATA,RAWTEXT:Jo.RAWTEXT,SCRIPT_DATA:Jo.SCRIPT_DATA,PLAINTEXT:Jo.PLAINTEXT};function ts(e){return e>=Lo.DIGIT_0&&e<=Lo.DIGIT_9}function ns(e){return e>=Lo.LATIN_CAPITAL_A&&e<=Lo.LATIN_CAPITAL_Z}function rs(e){return function(e){return e>=Lo.LATIN_SMALL_A&&e<=Lo.LATIN_SMALL_Z}(e)||ns(e)}function is(e){return rs(e)||ts(e)}function os(e){return e>=Lo.LATIN_CAPITAL_A&&e<=Lo.LATIN_CAPITAL_F}function ss(e){return e>=Lo.LATIN_SMALL_A&&e<=Lo.LATIN_SMALL_F}function as(e){return e+32}function ls(e){return e===Lo.SPACE||e===Lo.LINE_FEED||e===Lo.TABULATION||e===Lo.FORM_FEED}function cs(e){return ls(e)||e===Lo.SOLIDUS||e===Lo.GREATER_THAN_SIGN}class us{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=Jo.DATA,this.returnState=Jo.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Go(t),this.currentLocation=this.getCurrentLocation(-1)}_err(e){var t,n;null===(n=(t=this.handler).onParseError)||void 0===n||n.call(t,this.preprocessor.getError(e))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||null==e||e())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null==n||n()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(e){this.consumedAfterSnapshot-=e,this.preprocessor.retreat(e)}_reconsumeInState(e,t){this.state=e,this._callState(t)}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return!!this.preprocessor.startsWith(e,t)&&(this._advanceBy(e.length-1),!0)}_createStartTagToken(){this.currentToken={type:Bo.START_TAG,tagName:"",tagID:Vo.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Bo.END_TAG,tagName:"",tagID:Vo.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:Bo.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:Bo.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;const n=this.currentToken;null===$o(n,this.currentAttr.name)?(n.attrs.push(this.currentAttr),n.location&&this.currentLocation&&((null!==(e=(t=n.location).attrs)&&void 0!==e?e:t.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue())):this._err(Fo.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const e=this.currentToken;this.prepareToken(e),e.tagID=Wo(e.tagName),e.type===Bo.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(Fo.endTagWithAttributes),e.selfClosing&&this._err(Fo.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case Bo.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case Bo.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case Bo.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:Bo.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type===e)return void(this.currentCharacterToken.chars+=t);this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk()}this._createCharacterToken(e,t)}_emitCodePoint(e){const t=ls(e)?Bo.WHITESPACE_CHARACTER:e===Lo.NULL?Bo.NULL_CHARACTER:Bo.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(Bo.CHARACTER,e)}_matchNamedCharacterReference(e){let t=null,n=0,r=!1;for(let o=0,s=y[0];o>=0&&(o=k(y,s,o+1,e),!(o<0));e=this._consume()){n+=1,s=y[o];const a=s&v.VALUE_LENGTH;if(a){const s=(a>>14)-1;if(e!==Lo.SEMICOLON&&this._isCharacterReferenceInAttribute()&&((i=this.preprocessor.peek(1))===Lo.EQUALS_SIGN||is(i))?(t=[Lo.AMPERSAND],o+=s):(t=0===s?[y[o]&~v.VALUE_LENGTH]:1===s?[y[++o]]:[y[++o],y[++o]],n=0,r=e!==Lo.SEMICOLON),0===s){this._consume();break}}}var i;return this._unconsume(n),r&&!this.preprocessor.endOfChunkHit&&this._err(Fo.missingSemicolonAfterCharacterReference),this._unconsume(1),t}_isCharacterReferenceInAttribute(){return this.returnState===Jo.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===Jo.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===Jo.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case Jo.DATA:this._stateData(e);break;case Jo.RCDATA:this._stateRcdata(e);break;case Jo.RAWTEXT:this._stateRawtext(e);break;case Jo.SCRIPT_DATA:this._stateScriptData(e);break;case Jo.PLAINTEXT:this._statePlaintext(e);break;case Jo.TAG_OPEN:this._stateTagOpen(e);break;case Jo.END_TAG_OPEN:this._stateEndTagOpen(e);break;case Jo.TAG_NAME:this._stateTagName(e);break;case Jo.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case Jo.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case Jo.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case Jo.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case Jo.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case Jo.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case Jo.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case Jo.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case Jo.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case Jo.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case Jo.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case Jo.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case Jo.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case Jo.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case Jo.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case Jo.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case Jo.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case Jo.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case Jo.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case Jo.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case Jo.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case Jo.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case Jo.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case Jo.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case Jo.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case Jo.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case Jo.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case Jo.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case Jo.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case Jo.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case Jo.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case Jo.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case Jo.BOGUS_COMMENT:this._stateBogusComment(e);break;case Jo.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case Jo.COMMENT_START:this._stateCommentStart(e);break;case Jo.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case Jo.COMMENT:this._stateComment(e);break;case Jo.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case Jo.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case Jo.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case Jo.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case Jo.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case Jo.COMMENT_END:this._stateCommentEnd(e);break;case Jo.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case Jo.DOCTYPE:this._stateDoctype(e);break;case Jo.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case Jo.DOCTYPE_NAME:this._stateDoctypeName(e);break;case Jo.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case Jo.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case Jo.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case Jo.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case Jo.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case Jo.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case Jo.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case Jo.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case Jo.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case Jo.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case Jo.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case Jo.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case Jo.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case Jo.CDATA_SECTION:this._stateCdataSection(e);break;case Jo.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case Jo.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case Jo.CHARACTER_REFERENCE:this._stateCharacterReference(e);break;case Jo.NAMED_CHARACTER_REFERENCE:this._stateNamedCharacterReference(e);break;case Jo.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;case Jo.NUMERIC_CHARACTER_REFERENCE:this._stateNumericCharacterReference(e);break;case Jo.HEXADEMICAL_CHARACTER_REFERENCE_START:this._stateHexademicalCharacterReferenceStart(e);break;case Jo.HEXADEMICAL_CHARACTER_REFERENCE:this._stateHexademicalCharacterReference(e);break;case Jo.DECIMAL_CHARACTER_REFERENCE:this._stateDecimalCharacterReference(e);break;case Jo.NUMERIC_CHARACTER_REFERENCE_END:this._stateNumericCharacterReferenceEnd(e);break;default:throw new Error("Unknown state")}}_stateData(e){switch(e){case Lo.LESS_THAN_SIGN:this.state=Jo.TAG_OPEN;break;case Lo.AMPERSAND:this.returnState=Jo.DATA,this.state=Jo.CHARACTER_REFERENCE;break;case Lo.NULL:this._err(Fo.unexpectedNullCharacter),this._emitCodePoint(e);break;case Lo.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case Lo.AMPERSAND:this.returnState=Jo.RCDATA,this.state=Jo.CHARACTER_REFERENCE;break;case Lo.LESS_THAN_SIGN:this.state=Jo.RCDATA_LESS_THAN_SIGN;break;case Lo.NULL:this._err(Fo.unexpectedNullCharacter),this._emitChars(_o);break;case Lo.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case Lo.LESS_THAN_SIGN:this.state=Jo.RAWTEXT_LESS_THAN_SIGN;break;case Lo.NULL:this._err(Fo.unexpectedNullCharacter),this._emitChars(_o);break;case Lo.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case Lo.LESS_THAN_SIGN:this.state=Jo.SCRIPT_DATA_LESS_THAN_SIGN;break;case Lo.NULL:this._err(Fo.unexpectedNullCharacter),this._emitChars(_o);break;case Lo.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case Lo.NULL:this._err(Fo.unexpectedNullCharacter),this._emitChars(_o);break;case Lo.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(rs(e))this._createStartTagToken(),this.state=Jo.TAG_NAME,this._stateTagName(e);else switch(e){case Lo.EXCLAMATION_MARK:this.state=Jo.MARKUP_DECLARATION_OPEN;break;case Lo.SOLIDUS:this.state=Jo.END_TAG_OPEN;break;case Lo.QUESTION_MARK:this._err(Fo.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=Jo.BOGUS_COMMENT,this._stateBogusComment(e);break;case Lo.EOF:this._err(Fo.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(Fo.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=Jo.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(rs(e))this._createEndTagToken(),this.state=Jo.TAG_NAME,this._stateTagName(e);else switch(e){case Lo.GREATER_THAN_SIGN:this._err(Fo.missingEndTagName),this.state=Jo.DATA;break;case Lo.EOF:this._err(Fo.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(Fo.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=Jo.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){const t=this.currentToken;switch(e){case Lo.SPACE:case Lo.LINE_FEED:case Lo.TABULATION:case Lo.FORM_FEED:this.state=Jo.BEFORE_ATTRIBUTE_NAME;break;case Lo.SOLIDUS:this.state=Jo.SELF_CLOSING_START_TAG;break;case Lo.GREATER_THAN_SIGN:this.state=Jo.DATA,this.emitCurrentTagToken();break;case Lo.NULL:this._err(Fo.unexpectedNullCharacter),t.tagName+=_o;break;case Lo.EOF:this._err(Fo.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(ns(e)?as(e):e)}}_stateRcdataLessThanSign(e){e===Lo.SOLIDUS?this.state=Jo.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=Jo.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){rs(e)?(this.state=Jo.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=Jo.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();switch(this._createEndTagToken(),this.currentToken.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case Lo.SPACE:case Lo.LINE_FEED:case Lo.TABULATION:case Lo.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=Jo.BEFORE_ATTRIBUTE_NAME,!1;case Lo.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=Jo.SELF_CLOSING_START_TAG,!1;case Lo.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=Jo.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=Jo.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===Lo.SOLIDUS?this.state=Jo.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=Jo.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){rs(e)?(this.state=Jo.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=Jo.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=Jo.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case Lo.SOLIDUS:this.state=Jo.SCRIPT_DATA_END_TAG_OPEN;break;case Lo.EXCLAMATION_MARK:this.state=Jo.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=Jo.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){rs(e)?(this.state=Jo.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=Jo.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=Jo.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===Lo.HYPHEN_MINUS?(this.state=Jo.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=Jo.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===Lo.HYPHEN_MINUS?(this.state=Jo.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=Jo.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case Lo.HYPHEN_MINUS:this.state=Jo.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case Lo.LESS_THAN_SIGN:this.state=Jo.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case Lo.NULL:this._err(Fo.unexpectedNullCharacter),this._emitChars(_o);break;case Lo.EOF:this._err(Fo.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case Lo.HYPHEN_MINUS:this.state=Jo.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case Lo.LESS_THAN_SIGN:this.state=Jo.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case Lo.NULL:this._err(Fo.unexpectedNullCharacter),this.state=Jo.SCRIPT_DATA_ESCAPED,this._emitChars(_o);break;case Lo.EOF:this._err(Fo.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Jo.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case Lo.HYPHEN_MINUS:this._emitChars("-");break;case Lo.LESS_THAN_SIGN:this.state=Jo.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case Lo.GREATER_THAN_SIGN:this.state=Jo.SCRIPT_DATA,this._emitChars(">");break;case Lo.NULL:this._err(Fo.unexpectedNullCharacter),this.state=Jo.SCRIPT_DATA_ESCAPED,this._emitChars(_o);break;case Lo.EOF:this._err(Fo.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Jo.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===Lo.SOLIDUS?this.state=Jo.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:rs(e)?(this._emitChars("<"),this.state=Jo.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=Jo.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){rs(e)?(this.state=Jo.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=Jo.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=Jo.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(Oo,!1)&&cs(this.preprocessor.peek(6))){this._emitCodePoint(e);for(let e=0;e<6;e++)this._emitCodePoint(this._consume());this.state=Jo.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=Jo.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case Lo.HYPHEN_MINUS:this.state=Jo.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case Lo.LESS_THAN_SIGN:this.state=Jo.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case Lo.NULL:this._err(Fo.unexpectedNullCharacter),this._emitChars(_o);break;case Lo.EOF:this._err(Fo.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case Lo.HYPHEN_MINUS:this.state=Jo.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case Lo.LESS_THAN_SIGN:this.state=Jo.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case Lo.NULL:this._err(Fo.unexpectedNullCharacter),this.state=Jo.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(_o);break;case Lo.EOF:this._err(Fo.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Jo.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case Lo.HYPHEN_MINUS:this._emitChars("-");break;case Lo.LESS_THAN_SIGN:this.state=Jo.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case Lo.GREATER_THAN_SIGN:this.state=Jo.SCRIPT_DATA,this._emitChars(">");break;case Lo.NULL:this._err(Fo.unexpectedNullCharacter),this.state=Jo.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(_o);break;case Lo.EOF:this._err(Fo.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Jo.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===Lo.SOLIDUS?(this.state=Jo.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=Jo.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(Oo,!1)&&cs(this.preprocessor.peek(6))){this._emitCodePoint(e);for(let e=0;e<6;e++)this._emitCodePoint(this._consume());this.state=Jo.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=Jo.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case Lo.SPACE:case Lo.LINE_FEED:case Lo.TABULATION:case Lo.FORM_FEED:break;case Lo.SOLIDUS:case Lo.GREATER_THAN_SIGN:case Lo.EOF:this.state=Jo.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case Lo.EQUALS_SIGN:this._err(Fo.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=Jo.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=Jo.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case Lo.SPACE:case Lo.LINE_FEED:case Lo.TABULATION:case Lo.FORM_FEED:case Lo.SOLIDUS:case Lo.GREATER_THAN_SIGN:case Lo.EOF:this._leaveAttrName(),this.state=Jo.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case Lo.EQUALS_SIGN:this._leaveAttrName(),this.state=Jo.BEFORE_ATTRIBUTE_VALUE;break;case Lo.QUOTATION_MARK:case Lo.APOSTROPHE:case Lo.LESS_THAN_SIGN:this._err(Fo.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case Lo.NULL:this._err(Fo.unexpectedNullCharacter),this.currentAttr.name+=_o;break;default:this.currentAttr.name+=String.fromCodePoint(ns(e)?as(e):e)}}_stateAfterAttributeName(e){switch(e){case Lo.SPACE:case Lo.LINE_FEED:case Lo.TABULATION:case Lo.FORM_FEED:break;case Lo.SOLIDUS:this.state=Jo.SELF_CLOSING_START_TAG;break;case Lo.EQUALS_SIGN:this.state=Jo.BEFORE_ATTRIBUTE_VALUE;break;case Lo.GREATER_THAN_SIGN:this.state=Jo.DATA,this.emitCurrentTagToken();break;case Lo.EOF:this._err(Fo.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=Jo.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case Lo.SPACE:case Lo.LINE_FEED:case Lo.TABULATION:case Lo.FORM_FEED:break;case Lo.QUOTATION_MARK:this.state=Jo.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case Lo.APOSTROPHE:this.state=Jo.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case Lo.GREATER_THAN_SIGN:this._err(Fo.missingAttributeValue),this.state=Jo.DATA,this.emitCurrentTagToken();break;default:this.state=Jo.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case Lo.QUOTATION_MARK:this.state=Jo.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case Lo.AMPERSAND:this.returnState=Jo.ATTRIBUTE_VALUE_DOUBLE_QUOTED,this.state=Jo.CHARACTER_REFERENCE;break;case Lo.NULL:this._err(Fo.unexpectedNullCharacter),this.currentAttr.value+=_o;break;case Lo.EOF:this._err(Fo.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case Lo.APOSTROPHE:this.state=Jo.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case Lo.AMPERSAND:this.returnState=Jo.ATTRIBUTE_VALUE_SINGLE_QUOTED,this.state=Jo.CHARACTER_REFERENCE;break;case Lo.NULL:this._err(Fo.unexpectedNullCharacter),this.currentAttr.value+=_o;break;case Lo.EOF:this._err(Fo.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case Lo.SPACE:case Lo.LINE_FEED:case Lo.TABULATION:case Lo.FORM_FEED:this._leaveAttrValue(),this.state=Jo.BEFORE_ATTRIBUTE_NAME;break;case Lo.AMPERSAND:this.returnState=Jo.ATTRIBUTE_VALUE_UNQUOTED,this.state=Jo.CHARACTER_REFERENCE;break;case Lo.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=Jo.DATA,this.emitCurrentTagToken();break;case Lo.NULL:this._err(Fo.unexpectedNullCharacter),this.currentAttr.value+=_o;break;case Lo.QUOTATION_MARK:case Lo.APOSTROPHE:case Lo.LESS_THAN_SIGN:case Lo.EQUALS_SIGN:case Lo.GRAVE_ACCENT:this._err(Fo.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case Lo.EOF:this._err(Fo.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case Lo.SPACE:case Lo.LINE_FEED:case Lo.TABULATION:case Lo.FORM_FEED:this._leaveAttrValue(),this.state=Jo.BEFORE_ATTRIBUTE_NAME;break;case Lo.SOLIDUS:this._leaveAttrValue(),this.state=Jo.SELF_CLOSING_START_TAG;break;case Lo.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=Jo.DATA,this.emitCurrentTagToken();break;case Lo.EOF:this._err(Fo.eofInTag),this._emitEOFToken();break;default:this._err(Fo.missingWhitespaceBetweenAttributes),this.state=Jo.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case Lo.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=Jo.DATA,this.emitCurrentTagToken();break;case Lo.EOF:this._err(Fo.eofInTag),this._emitEOFToken();break;default:this._err(Fo.unexpectedSolidusInTag),this.state=Jo.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){const t=this.currentToken;switch(e){case Lo.GREATER_THAN_SIGN:this.state=Jo.DATA,this.emitCurrentComment(t);break;case Lo.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case Lo.NULL:this._err(Fo.unexpectedNullCharacter),t.data+=_o;break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch("--",!0)?(this._createCommentToken(3),this.state=Jo.COMMENT_START):this._consumeSequenceIfMatch(Io,!1)?(this.currentLocation=this.getCurrentLocation(8),this.state=Jo.DOCTYPE):this._consumeSequenceIfMatch(No,!0)?this.inForeignNode?this.state=Jo.CDATA_SECTION:(this._err(Fo.cdataInHtmlContent),this._createCommentToken(8),this.currentToken.data="[CDATA[",this.state=Jo.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Fo.incorrectlyOpenedComment),this._createCommentToken(2),this.state=Jo.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case Lo.HYPHEN_MINUS:this.state=Jo.COMMENT_START_DASH;break;case Lo.GREATER_THAN_SIGN:this._err(Fo.abruptClosingOfEmptyComment),this.state=Jo.DATA,this.emitCurrentComment(this.currentToken);break;default:this.state=Jo.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){const t=this.currentToken;switch(e){case Lo.HYPHEN_MINUS:this.state=Jo.COMMENT_END;break;case Lo.GREATER_THAN_SIGN:this._err(Fo.abruptClosingOfEmptyComment),this.state=Jo.DATA,this.emitCurrentComment(t);break;case Lo.EOF:this._err(Fo.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=Jo.COMMENT,this._stateComment(e)}}_stateComment(e){const t=this.currentToken;switch(e){case Lo.HYPHEN_MINUS:this.state=Jo.COMMENT_END_DASH;break;case Lo.LESS_THAN_SIGN:t.data+="<",this.state=Jo.COMMENT_LESS_THAN_SIGN;break;case Lo.NULL:this._err(Fo.unexpectedNullCharacter),t.data+=_o;break;case Lo.EOF:this._err(Fo.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){const t=this.currentToken;switch(e){case Lo.EXCLAMATION_MARK:t.data+="!",this.state=Jo.COMMENT_LESS_THAN_SIGN_BANG;break;case Lo.LESS_THAN_SIGN:t.data+="<";break;default:this.state=Jo.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===Lo.HYPHEN_MINUS?this.state=Jo.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=Jo.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===Lo.HYPHEN_MINUS?this.state=Jo.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=Jo.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==Lo.GREATER_THAN_SIGN&&e!==Lo.EOF&&this._err(Fo.nestedComment),this.state=Jo.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){const t=this.currentToken;switch(e){case Lo.HYPHEN_MINUS:this.state=Jo.COMMENT_END;break;case Lo.EOF:this._err(Fo.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=Jo.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){const t=this.currentToken;switch(e){case Lo.GREATER_THAN_SIGN:this.state=Jo.DATA,this.emitCurrentComment(t);break;case Lo.EXCLAMATION_MARK:this.state=Jo.COMMENT_END_BANG;break;case Lo.HYPHEN_MINUS:t.data+="-";break;case Lo.EOF:this._err(Fo.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=Jo.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){const t=this.currentToken;switch(e){case Lo.HYPHEN_MINUS:t.data+="--!",this.state=Jo.COMMENT_END_DASH;break;case Lo.GREATER_THAN_SIGN:this._err(Fo.incorrectlyClosedComment),this.state=Jo.DATA,this.emitCurrentComment(t);break;case Lo.EOF:this._err(Fo.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=Jo.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case Lo.SPACE:case Lo.LINE_FEED:case Lo.TABULATION:case Lo.FORM_FEED:this.state=Jo.BEFORE_DOCTYPE_NAME;break;case Lo.GREATER_THAN_SIGN:this.state=Jo.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case Lo.EOF:{this._err(Fo.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(Fo.missingWhitespaceBeforeDoctypeName),this.state=Jo.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(ns(e))this._createDoctypeToken(String.fromCharCode(as(e))),this.state=Jo.DOCTYPE_NAME;else switch(e){case Lo.SPACE:case Lo.LINE_FEED:case Lo.TABULATION:case Lo.FORM_FEED:break;case Lo.NULL:this._err(Fo.unexpectedNullCharacter),this._createDoctypeToken(_o),this.state=Jo.DOCTYPE_NAME;break;case Lo.GREATER_THAN_SIGN:{this._err(Fo.missingDoctypeName),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=Jo.DATA;break}case Lo.EOF:{this._err(Fo.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=Jo.DOCTYPE_NAME}}_stateDoctypeName(e){const t=this.currentToken;switch(e){case Lo.SPACE:case Lo.LINE_FEED:case Lo.TABULATION:case Lo.FORM_FEED:this.state=Jo.AFTER_DOCTYPE_NAME;break;case Lo.GREATER_THAN_SIGN:this.state=Jo.DATA,this.emitCurrentDoctype(t);break;case Lo.NULL:this._err(Fo.unexpectedNullCharacter),t.name+=_o;break;case Lo.EOF:this._err(Fo.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(ns(e)?as(e):e)}}_stateAfterDoctypeName(e){const t=this.currentToken;switch(e){case Lo.SPACE:case Lo.LINE_FEED:case Lo.TABULATION:case Lo.FORM_FEED:break;case Lo.GREATER_THAN_SIGN:this.state=Jo.DATA,this.emitCurrentDoctype(t);break;case Lo.EOF:this._err(Fo.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch("public",!1)?this.state=Jo.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch("system",!1)?this.state=Jo.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(Fo.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=Jo.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){const t=this.currentToken;switch(e){case Lo.SPACE:case Lo.LINE_FEED:case Lo.TABULATION:case Lo.FORM_FEED:this.state=Jo.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case Lo.QUOTATION_MARK:this._err(Fo.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=Jo.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case Lo.APOSTROPHE:this._err(Fo.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=Jo.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case Lo.GREATER_THAN_SIGN:this._err(Fo.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Jo.DATA,this.emitCurrentDoctype(t);break;case Lo.EOF:this._err(Fo.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Fo.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Jo.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case Lo.SPACE:case Lo.LINE_FEED:case Lo.TABULATION:case Lo.FORM_FEED:break;case Lo.QUOTATION_MARK:t.publicId="",this.state=Jo.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case Lo.APOSTROPHE:t.publicId="",this.state=Jo.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case Lo.GREATER_THAN_SIGN:this._err(Fo.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Jo.DATA,this.emitCurrentDoctype(t);break;case Lo.EOF:this._err(Fo.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Fo.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Jo.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case Lo.QUOTATION_MARK:this.state=Jo.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case Lo.NULL:this._err(Fo.unexpectedNullCharacter),t.publicId+=_o;break;case Lo.GREATER_THAN_SIGN:this._err(Fo.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Jo.DATA;break;case Lo.EOF:this._err(Fo.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case Lo.APOSTROPHE:this.state=Jo.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case Lo.NULL:this._err(Fo.unexpectedNullCharacter),t.publicId+=_o;break;case Lo.GREATER_THAN_SIGN:this._err(Fo.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Jo.DATA;break;case Lo.EOF:this._err(Fo.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case Lo.SPACE:case Lo.LINE_FEED:case Lo.TABULATION:case Lo.FORM_FEED:this.state=Jo.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case Lo.GREATER_THAN_SIGN:this.state=Jo.DATA,this.emitCurrentDoctype(t);break;case Lo.QUOTATION_MARK:this._err(Fo.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=Jo.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Lo.APOSTROPHE:this._err(Fo.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=Jo.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Lo.EOF:this._err(Fo.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Fo.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Jo.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const t=this.currentToken;switch(e){case Lo.SPACE:case Lo.LINE_FEED:case Lo.TABULATION:case Lo.FORM_FEED:break;case Lo.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Jo.DATA;break;case Lo.QUOTATION_MARK:t.systemId="",this.state=Jo.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Lo.APOSTROPHE:t.systemId="",this.state=Jo.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Lo.EOF:this._err(Fo.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Fo.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Jo.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){const t=this.currentToken;switch(e){case Lo.SPACE:case Lo.LINE_FEED:case Lo.TABULATION:case Lo.FORM_FEED:this.state=Jo.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case Lo.QUOTATION_MARK:this._err(Fo.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=Jo.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Lo.APOSTROPHE:this._err(Fo.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=Jo.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Lo.GREATER_THAN_SIGN:this._err(Fo.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Jo.DATA,this.emitCurrentDoctype(t);break;case Lo.EOF:this._err(Fo.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Fo.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Jo.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case Lo.SPACE:case Lo.LINE_FEED:case Lo.TABULATION:case Lo.FORM_FEED:break;case Lo.QUOTATION_MARK:t.systemId="",this.state=Jo.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Lo.APOSTROPHE:t.systemId="",this.state=Jo.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Lo.GREATER_THAN_SIGN:this._err(Fo.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Jo.DATA,this.emitCurrentDoctype(t);break;case Lo.EOF:this._err(Fo.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Fo.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Jo.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case Lo.QUOTATION_MARK:this.state=Jo.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case Lo.NULL:this._err(Fo.unexpectedNullCharacter),t.systemId+=_o;break;case Lo.GREATER_THAN_SIGN:this._err(Fo.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Jo.DATA;break;case Lo.EOF:this._err(Fo.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case Lo.APOSTROPHE:this.state=Jo.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case Lo.NULL:this._err(Fo.unexpectedNullCharacter),t.systemId+=_o;break;case Lo.GREATER_THAN_SIGN:this._err(Fo.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Jo.DATA;break;case Lo.EOF:this._err(Fo.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case Lo.SPACE:case Lo.LINE_FEED:case Lo.TABULATION:case Lo.FORM_FEED:break;case Lo.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Jo.DATA;break;case Lo.EOF:this._err(Fo.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Fo.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=Jo.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){const t=this.currentToken;switch(e){case Lo.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Jo.DATA;break;case Lo.NULL:this._err(Fo.unexpectedNullCharacter);break;case Lo.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case Lo.RIGHT_SQUARE_BRACKET:this.state=Jo.CDATA_SECTION_BRACKET;break;case Lo.EOF:this._err(Fo.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===Lo.RIGHT_SQUARE_BRACKET?this.state=Jo.CDATA_SECTION_END:(this._emitChars("]"),this.state=Jo.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case Lo.GREATER_THAN_SIGN:this.state=Jo.DATA;break;case Lo.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=Jo.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(e){e===Lo.NUMBER_SIGN?this.state=Jo.NUMERIC_CHARACTER_REFERENCE:is(e)?(this.state=Jo.NAMED_CHARACTER_REFERENCE,this._stateNamedCharacterReference(e)):(this._flushCodePointConsumedAsCharacterReference(Lo.AMPERSAND),this._reconsumeInState(this.returnState,e))}_stateNamedCharacterReference(e){const t=this._matchNamedCharacterReference(e);if(this._ensureHibernation());else if(t){for(let e=0;e<t.length;e++)this._flushCodePointConsumedAsCharacterReference(t[e]);this.state=this.returnState}else this._flushCodePointConsumedAsCharacterReference(Lo.AMPERSAND),this.state=Jo.AMBIGUOUS_AMPERSAND}_stateAmbiguousAmpersand(e){is(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===Lo.SEMICOLON&&this._err(Fo.unknownNamedCharacterReference),this._reconsumeInState(this.returnState,e))}_stateNumericCharacterReference(e){this.charRefCode=0,e===Lo.LATIN_SMALL_X||e===Lo.LATIN_CAPITAL_X?this.state=Jo.HEXADEMICAL_CHARACTER_REFERENCE_START:ts(e)?(this.state=Jo.DECIMAL_CHARACTER_REFERENCE,this._stateDecimalCharacterReference(e)):(this._err(Fo.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(Lo.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(Lo.NUMBER_SIGN),this._reconsumeInState(this.returnState,e))}_stateHexademicalCharacterReferenceStart(e){!function(e){return ts(e)||os(e)||ss(e)}(e)?(this._err(Fo.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(Lo.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(Lo.NUMBER_SIGN),this._unconsume(2),this.state=this.returnState):(this.state=Jo.HEXADEMICAL_CHARACTER_REFERENCE,this._stateHexademicalCharacterReference(e))}_stateHexademicalCharacterReference(e){os(e)?this.charRefCode=16*this.charRefCode+e-55:ss(e)?this.charRefCode=16*this.charRefCode+e-87:ts(e)?this.charRefCode=16*this.charRefCode+e-48:e===Lo.SEMICOLON?this.state=Jo.NUMERIC_CHARACTER_REFERENCE_END:(this._err(Fo.missingSemicolonAfterCharacterReference),this.state=Jo.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(e))}_stateDecimalCharacterReference(e){ts(e)?this.charRefCode=10*this.charRefCode+e-48:e===Lo.SEMICOLON?this.state=Jo.NUMERIC_CHARACTER_REFERENCE_END:(this._err(Fo.missingSemicolonAfterCharacterReference),this.state=Jo.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(e))}_stateNumericCharacterReferenceEnd(e){if(this.charRefCode===Lo.NULL)this._err(Fo.nullCharacterReference),this.charRefCode=Lo.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(Fo.characterReferenceOutsideUnicodeRange),this.charRefCode=Lo.REPLACEMENT_CHARACTER;else if(Mo(this.charRefCode))this._err(Fo.surrogateCharacterReference),this.charRefCode=Lo.REPLACEMENT_CHARACTER;else if(qo(this.charRefCode))this._err(Fo.noncharacterCharacterReference);else if(Po(this.charRefCode)||this.charRefCode===Lo.CARRIAGE_RETURN){this._err(Fo.controlCharacterReference);const e=Zo.get(this.charRefCode);void 0!==e&&(this.charRefCode=e)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,e)}}const hs=new Set([Vo.DD,Vo.DT,Vo.LI,Vo.OPTGROUP,Vo.OPTION,Vo.P,Vo.RB,Vo.RP,Vo.RT,Vo.RTC]),fs=new Set([...hs,Vo.CAPTION,Vo.COLGROUP,Vo.TBODY,Vo.TD,Vo.TFOOT,Vo.TH,Vo.THEAD,Vo.TR]),ds=new Map([[Vo.APPLET,Uo.HTML],[Vo.CAPTION,Uo.HTML],[Vo.HTML,Uo.HTML],[Vo.MARQUEE,Uo.HTML],[Vo.OBJECT,Uo.HTML],[Vo.TABLE,Uo.HTML],[Vo.TD,Uo.HTML],[Vo.TEMPLATE,Uo.HTML],[Vo.TH,Uo.HTML],[Vo.ANNOTATION_XML,Uo.MATHML],[Vo.MI,Uo.MATHML],[Vo.MN,Uo.MATHML],[Vo.MO,Uo.MATHML],[Vo.MS,Uo.MATHML],[Vo.MTEXT,Uo.MATHML],[Vo.DESC,Uo.SVG],[Vo.FOREIGN_OBJECT,Uo.SVG],[Vo.TITLE,Uo.SVG]]),ps=[Vo.H1,Vo.H2,Vo.H3,Vo.H4,Vo.H5,Vo.H6],gs=[Vo.TR,Vo.TEMPLATE,Vo.HTML],ms=[Vo.TBODY,Vo.TFOOT,Vo.THEAD,Vo.TEMPLATE,Vo.HTML],bs=[Vo.TABLE,Vo.TEMPLATE,Vo.HTML],ks=[Vo.TD,Vo.TH];class ys{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=Vo.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===Vo.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Uo.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){const e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){const n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){const r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do{t=this.tagIDs.lastIndexOf(e,t-1)}while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==Uo.HTML);this.shortenToLength(t<0?0:t)}shortenToLength(e){for(;this.stackTop>=e;){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){const t=this._indexOf(e);this.shortenToLength(t<0?0:t)}popUntilPopped(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(n<0?0:n)}popUntilNumberedHeaderPopped(){this.popUntilPopped(ps,Uo.HTML)}popUntilTableCellPopped(){this.popUntilPopped(ks,Uo.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let n=this.stackTop;n>=0;n--)if(e.includes(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return-1}clearBackTo(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(bs,Uo.HTML)}clearBackToTableBodyContext(){this.clearBackTo(ms,Uo.HTML)}clearBackToTableRowContext(){this.clearBackTo(gs,Uo.HTML)}remove(e){const t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===Vo.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===Vo.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===Uo.HTML)return!0;if(ds.get(n)===r)return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e],n=this.treeAdapter.getNamespaceURI(this.items[e]);if(Xo(t)&&n===Uo.HTML)return!0;if(ds.get(t)===n)return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===Uo.HTML)return!0;if((n===Vo.UL||n===Vo.OL)&&r===Uo.HTML||ds.get(n)===r)return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===Uo.HTML)return!0;if(n===Vo.BUTTON&&r===Uo.HTML||ds.get(n)===r)return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===Uo.HTML){if(n===e)return!0;if(n===Vo.TABLE||n===Vo.TEMPLATE||n===Vo.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e];if(this.treeAdapter.getNamespaceURI(this.items[e])===Uo.HTML){if(t===Vo.TBODY||t===Vo.THEAD||t===Vo.TFOOT)return!0;if(t===Vo.TABLE||t===Vo.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===Uo.HTML){if(n===e)return!0;if(n!==Vo.OPTION&&n!==Vo.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;hs.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;fs.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==e&&fs.has(this.currentTagId);)this.pop()}}var vs;!function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"}(vs=vs||(vs={}));const ws={type:vs.Marker};class Es{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){const n=[],r=t.length,i=this.treeAdapter.getTagName(e),o=this.treeAdapter.getNamespaceURI(e);for(let e=0;e<this.entries.length;e++){const t=this.entries[e];if(t.type===vs.Marker)break;const{element:s}=t;if(this.treeAdapter.getTagName(s)===i&&this.treeAdapter.getNamespaceURI(s)===o){const t=this.treeAdapter.getAttrList(s);t.length===r&&n.push({idx:e,attrs:t})}}return n}_ensureNoahArkCondition(e){if(this.entries.length<3)return;const t=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,t);if(n.length<3)return;const r=new Map(t.map((e=>[e.name,e.value])));let i=0;for(let e=0;e<n.length;e++){const t=n[e];t.attrs.every((e=>r.get(e.name)===e.value))&&(i+=1,i>=3&&this.entries.splice(t.idx,1))}}insertMarker(){this.entries.unshift(ws)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:vs.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:vs.Element,element:e,token:t})}removeEntry(e){const t=this.entries.indexOf(e);t>=0&&this.entries.splice(t,1)}clearToLastMarker(){const e=this.entries.indexOf(ws);e>=0?this.entries.splice(0,e+1):this.entries.length=0}getElementEntryInScopeWithTagName(e){const t=this.entries.find((t=>t.type===vs.Marker||this.treeAdapter.getTagName(t.element)===e));return t&&t.type===vs.Element?t:null}getElementEntry(e){return this.entries.find((t=>t.type===vs.Element&&t.element===e))}}function Ss(e){return{nodeName:"#text",value:e,parentNode:null}}const Ts={createDocument:()=>({nodeName:"#document",mode:zo.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,n)=>({nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,n,r){const i=e.childNodes.find((e=>"#documentType"===e.nodeName));i?(i.name=t,i.publicId=n,i.systemId=r):Ts.appendChild(e,{nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null})},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Ts.isTextNode(n))return void(n.value+=t)}Ts.appendChild(e,Ss(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Ts.isTextNode(r)?r.value+=t:Ts.insertBefore(e,Ss(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map((e=>e.name)));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild:e=>e.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},xs="html",Cs=["+//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//"],As=[...Cs,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Ds=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Rs=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],_s=[...Rs,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Ls(e,t){return t.some((t=>e.startsWith(t)))}const Ns=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((e=>[e.toLowerCase(),e]))),Is=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Uo.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Uo.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Uo.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Uo.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Uo.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Uo.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Uo.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:Uo.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:Uo.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Uo.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Uo.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Uo.XMLNS}]]),Os=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((e=>[e.toLowerCase(),e]))),Ms=new Set([Vo.B,Vo.BIG,Vo.BLOCKQUOTE,Vo.BODY,Vo.BR,Vo.CENTER,Vo.CODE,Vo.DD,Vo.DIV,Vo.DL,Vo.DT,Vo.EM,Vo.EMBED,Vo.H1,Vo.H2,Vo.H3,Vo.H4,Vo.H5,Vo.H6,Vo.HEAD,Vo.HR,Vo.I,Vo.IMG,Vo.LI,Vo.LISTING,Vo.MENU,Vo.META,Vo.NOBR,Vo.OL,Vo.P,Vo.PRE,Vo.RUBY,Vo.S,Vo.SMALL,Vo.SPAN,Vo.STRONG,Vo.STRIKE,Vo.SUB,Vo.SUP,Vo.TABLE,Vo.TT,Vo.U,Vo.UL,Vo.VAR]);function Ps(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}}function qs(e){for(let t=0;t<e.attrs.length;t++){const n=Ns.get(e.attrs[t].name);null!=n&&(e.attrs[t].name=n)}}function Fs(e){for(let t=0;t<e.attrs.length;t++){const n=Is.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}var Bs;!function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"}(Bs||(Bs={}));const Us={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Hs=new Set([Vo.TABLE,Vo.TBODY,Vo.TFOOT,Vo.THEAD,Vo.TR]),zs={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Ts,onParseError:null};class js{constructor(e,t,n=null,r=null){this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=Bs.INITIAL,this.originalInsertionMode=Bs.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={...zs,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!=t?t:this.treeAdapter.createDocument(),this.tokenizer=new us(this.options,this),this.activeFormattingElements=new Es(this.treeAdapter),this.fragmentContextID=n?Wo(this.treeAdapter.getTagName(n)):Vo.UNKNOWN,this._setContextModes(null!=n?n:this.document,this.fragmentContextID),this.openElements=new ys(this.document,this.treeAdapter,this)}static parse(e,t){const n=new this(t);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,t){const n={...zs,...t};null!=e||(e=n.treeAdapter.createElement(jo.TEMPLATE,Uo.HTML,[]));const r=n.treeAdapter.createElement("documentmock",Uo.HTML,[]),i=new this(n,r,e);return i.fragmentContextID===Vo.TEMPLATE&&i.tmplInsertionModeStack.unshift(Bs.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,n){var r;if(!this.onParseError)return;const i=null!==(r=e.location)&&void 0!==r?r:Us;this.onParseError({code:t,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:n?i.startLine:i.endLine,endCol:n?i.startCol:i.endCol,endOffset:n?i.startOffset:i.endOffset})}onItemPush(e,t,n){var r,i;null===(i=(r=this.treeAdapter).onItemPush)||void 0===i||i.call(r,e),n&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null===(r=(n=this.treeAdapter).onItemPop)||void 0===r||r.call(n,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):({current:e,currentTagId:t}=this.openElements),this._setContextModes(e,t)}}_setContextModes(e,t){const n=e===this.document||this.treeAdapter.getNamespaceURI(e)===Uo.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,Uo.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=Bs.TEXT}switchToPlaintextParsing(){this.insertionMode=Bs.TEXT,this.originalInsertionMode=Bs.IN_BODY,this.tokenizer.state=es.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===jo.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===Uo.HTML)switch(this.fragmentContextID){case Vo.TITLE:case Vo.TEXTAREA:this.tokenizer.state=es.RCDATA;break;case Vo.STYLE:case Vo.XMP:case Vo.IFRAME:case Vo.NOEMBED:case Vo.NOFRAMES:case Vo.NOSCRIPT:this.tokenizer.state=es.RAWTEXT;break;case Vo.SCRIPT:this.tokenizer.state=es.SCRIPT_DATA;break;case Vo.PLAINTEXT:this.tokenizer.state=es.PLAINTEXT}}_setDocumentType(e){if(this.treeAdapter.setDocumentType(this.document,e.name||"",e.publicId||"",e.systemId||""),e.location){const t=this.treeAdapter.getChildNodes(this.document).find((e=>this.treeAdapter.isDocumentTypeNode(e)));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){const n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}this._shouldFosterParentOnInsertion()?this._fosterParentElement(e):this.treeAdapter.appendChild(this.openElements.currentTmplContentOrNode,e)}_appendElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){const n=this.treeAdapter.createElement(e,Uo.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,Uo.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(jo.HTML,Uo.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,Vo.HTML)}_appendCommentNode(e,t){const n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?(({parent:t,beforeElement:n}=this._findFosterParentingLocation()),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;const r=this.treeAdapter.getChildNodes(t),i=n?r.lastIndexOf(n):r.length,o=r[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(o)){const{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:t,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const n=t.location,r=this.treeAdapter.getTagName(e),i=t.type===Bo.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,n;return 0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):({current:t,currentTagId:n}=this.openElements),(e.tagID!==Vo.SVG||this.treeAdapter.getTagName(t)!==jo.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==Uo.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===Vo.MGLYPH||e.tagID===Vo.MALIGNMARK)&&!this._isIntegrationPoint(n,t,Uo.HTML))}_processToken(e){switch(e.type){case Bo.CHARACTER:this.onCharacter(e);break;case Bo.NULL_CHARACTER:this.onNullCharacter(e);break;case Bo.COMMENT:this.onComment(e);break;case Bo.DOCTYPE:this.onDoctype(e);break;case Bo.START_TAG:this._processStartTag(e);break;case Bo.END_TAG:this.onEndTag(e);break;case Bo.EOF:this.onEof(e);break;case Bo.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){return function(e,t,n,r){return(!r||r===Uo.HTML)&&function(e,t,n){if(t===Uo.MATHML&&e===Vo.ANNOTATION_XML)for(let e=0;e<n.length;e++)if(n[e].name===Ho.ENCODING){const t=n[e].value.toLowerCase();return"text/html"===t||"application/xhtml+xml"===t}return t===Uo.SVG&&(e===Vo.FOREIGN_OBJECT||e===Vo.DESC||e===Vo.TITLE)}(e,t,n)||(!r||r===Uo.MATHML)&&function(e,t){return t===Uo.MATHML&&(e===Vo.MI||e===Vo.MO||e===Vo.MN||e===Vo.MS||e===Vo.MTEXT)}(e,t)}(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),n)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const t=this.activeFormattingElements.entries.findIndex((e=>e.type===vs.Marker||this.openElements.contains(e.element)));for(let n=t<0?e-1:t-1;n>=0;n--){const e=this.activeFormattingElements.entries[n];this._insertElement(e.token,this.treeAdapter.getNamespaceURI(e.element)),e.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Bs.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(Vo.P),this.openElements.popUntilTagNamePopped(Vo.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case Vo.TR:return void(this.insertionMode=Bs.IN_ROW);case Vo.TBODY:case Vo.THEAD:case Vo.TFOOT:return void(this.insertionMode=Bs.IN_TABLE_BODY);case Vo.CAPTION:return void(this.insertionMode=Bs.IN_CAPTION);case Vo.COLGROUP:return void(this.insertionMode=Bs.IN_COLUMN_GROUP);case Vo.TABLE:return void(this.insertionMode=Bs.IN_TABLE);case Vo.BODY:return void(this.insertionMode=Bs.IN_BODY);case Vo.FRAMESET:return void(this.insertionMode=Bs.IN_FRAMESET);case Vo.SELECT:return void this._resetInsertionModeForSelect(e);case Vo.TEMPLATE:return void(this.insertionMode=this.tmplInsertionModeStack[0]);case Vo.HTML:return void(this.insertionMode=this.headElement?Bs.AFTER_HEAD:Bs.BEFORE_HEAD);case Vo.TD:case Vo.TH:if(e>0)return void(this.insertionMode=Bs.IN_CELL);break;case Vo.HEAD:if(e>0)return void(this.insertionMode=Bs.IN_HEAD)}this.insertionMode=Bs.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.tagIDs[t];if(e===Vo.TEMPLATE)break;if(e===Vo.TABLE)return void(this.insertionMode=Bs.IN_SELECT_IN_TABLE)}this.insertionMode=Bs.IN_SELECT}_isElementCausesFosterParenting(e){return Hs.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case Vo.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===Uo.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case Vo.TABLE:{const n=this.treeAdapter.getParentNode(t);return n?{parent:n,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){const n=this.treeAdapter.getNamespaceURI(e);return Ko[n].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e);else switch(this.insertionMode){case Bs.INITIAL:Js(this,e);break;case Bs.BEFORE_HTML:ea(this,e);break;case Bs.BEFORE_HEAD:ta(this,e);break;case Bs.IN_HEAD:ia(this,e);break;case Bs.IN_HEAD_NO_SCRIPT:oa(this,e);break;case Bs.AFTER_HEAD:sa(this,e);break;case Bs.IN_BODY:case Bs.IN_CAPTION:case Bs.IN_CELL:case Bs.IN_TEMPLATE:ca(this,e);break;case Bs.TEXT:case Bs.IN_SELECT:case Bs.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case Bs.IN_TABLE:case Bs.IN_TABLE_BODY:case Bs.IN_ROW:ka(this,e);break;case Bs.IN_TABLE_TEXT:Sa(this,e);break;case Bs.IN_COLUMN_GROUP:Aa(this,e);break;case Bs.AFTER_BODY:Pa(this,e);break;case Bs.AFTER_AFTER_BODY:qa(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){t.chars=_o,e._insertCharacters(t)}(this,e);else switch(this.insertionMode){case Bs.INITIAL:Js(this,e);break;case Bs.BEFORE_HTML:ea(this,e);break;case Bs.BEFORE_HEAD:ta(this,e);break;case Bs.IN_HEAD:ia(this,e);break;case Bs.IN_HEAD_NO_SCRIPT:oa(this,e);break;case Bs.AFTER_HEAD:sa(this,e);break;case Bs.TEXT:this._insertCharacters(e);break;case Bs.IN_TABLE:case Bs.IN_TABLE_BODY:case Bs.IN_ROW:ka(this,e);break;case Bs.IN_COLUMN_GROUP:Aa(this,e);break;case Bs.AFTER_BODY:Pa(this,e);break;case Bs.AFTER_AFTER_BODY:qa(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML)Xs(this,e);else switch(this.insertionMode){case Bs.INITIAL:case Bs.BEFORE_HTML:case Bs.BEFORE_HEAD:case Bs.IN_HEAD:case Bs.IN_HEAD_NO_SCRIPT:case Bs.AFTER_HEAD:case Bs.IN_BODY:case Bs.IN_TABLE:case Bs.IN_CAPTION:case Bs.IN_COLUMN_GROUP:case Bs.IN_TABLE_BODY:case Bs.IN_ROW:case Bs.IN_CELL:case Bs.IN_SELECT:case Bs.IN_SELECT_IN_TABLE:case Bs.IN_TEMPLATE:case Bs.IN_FRAMESET:case Bs.AFTER_FRAMESET:Xs(this,e);break;case Bs.IN_TABLE_TEXT:Ta(this,e);break;case Bs.AFTER_BODY:!function(e,t){e._appendCommentNode(t,e.openElements.items[0])}(this,e);break;case Bs.AFTER_AFTER_BODY:case Bs.AFTER_AFTER_FRAMESET:!function(e,t){e._appendCommentNode(t,e.document)}(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case Bs.INITIAL:!function(e,t){e._setDocumentType(t);const n=t.forceQuirks?zo.QUIRKS:function(e){if(e.name!==xs)return zo.QUIRKS;const{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return zo.QUIRKS;let{publicId:n}=e;if(null!==n){if(n=n.toLowerCase(),Ds.has(n))return zo.QUIRKS;let e=null===t?As:Cs;if(Ls(n,e))return zo.QUIRKS;if(e=null===t?Rs:_s,Ls(n,e))return zo.LIMITED_QUIRKS}return zo.NO_QUIRKS}(t);(function(e){return e.name===xs&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)})(t)||e._err(t,Fo.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=Bs.BEFORE_HTML}(this,e);break;case Bs.BEFORE_HEAD:case Bs.IN_HEAD:case Bs.IN_HEAD_NO_SCRIPT:case Bs.AFTER_HEAD:this._err(e,Fo.misplacedDoctype);break;case Bs.IN_TABLE_TEXT:Ta(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,Fo.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(function(e){const t=e.tagID;return t===Vo.FONT&&e.attrs.some((({name:e})=>e===Ho.COLOR||e===Ho.SIZE||e===Ho.FACE))||Ms.has(t)}(t))Fa(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Uo.MATHML?Ps(t):r===Uo.SVG&&(function(e){const t=Os.get(e.tagName);null!=t&&(e.tagName=t,e.tagID=Wo(e.tagName))}(t),qs(t)),Fs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case Bs.INITIAL:Js(this,e);break;case Bs.BEFORE_HTML:!function(e,t){t.tagID===Vo.HTML?(e._insertElement(t,Uo.HTML),e.insertionMode=Bs.BEFORE_HEAD):ea(e,t)}(this,e);break;case Bs.BEFORE_HEAD:!function(e,t){switch(t.tagID){case Vo.HTML:pa(e,t);break;case Vo.HEAD:e._insertElement(t,Uo.HTML),e.headElement=e.openElements.current,e.insertionMode=Bs.IN_HEAD;break;default:ta(e,t)}}(this,e);break;case Bs.IN_HEAD:na(this,e);break;case Bs.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case Vo.HTML:pa(e,t);break;case Vo.BASEFONT:case Vo.BGSOUND:case Vo.HEAD:case Vo.LINK:case Vo.META:case Vo.NOFRAMES:case Vo.STYLE:na(e,t);break;case Vo.NOSCRIPT:e._err(t,Fo.nestedNoscriptInHead);break;default:oa(e,t)}}(this,e);break;case Bs.AFTER_HEAD:!function(e,t){switch(t.tagID){case Vo.HTML:pa(e,t);break;case Vo.BODY:e._insertElement(t,Uo.HTML),e.framesetOk=!1,e.insertionMode=Bs.IN_BODY;break;case Vo.FRAMESET:e._insertElement(t,Uo.HTML),e.insertionMode=Bs.IN_FRAMESET;break;case Vo.BASE:case Vo.BASEFONT:case Vo.BGSOUND:case Vo.LINK:case Vo.META:case Vo.NOFRAMES:case Vo.SCRIPT:case Vo.STYLE:case Vo.TEMPLATE:case Vo.TITLE:e._err(t,Fo.abandonedHeadElementChild),e.openElements.push(e.headElement,Vo.HEAD),na(e,t),e.openElements.remove(e.headElement);break;case Vo.HEAD:e._err(t,Fo.misplacedStartTagForHeadElement);break;default:sa(e,t)}}(this,e);break;case Bs.IN_BODY:pa(this,e);break;case Bs.IN_TABLE:ya(this,e);break;case Bs.IN_TABLE_TEXT:Ta(this,e);break;case Bs.IN_CAPTION:!function(e,t){xa.has(t.tagID)?e.openElements.hasInTableScope(Vo.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Vo.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Bs.IN_TABLE,ya(e,t)):pa(e,t)}(this,e);break;case Bs.IN_COLUMN_GROUP:Ca(this,e);break;case Bs.IN_TABLE_BODY:Da(this,e);break;case Bs.IN_ROW:_a(this,e);break;case Bs.IN_CELL:!function(e,t){xa.has(t.tagID)?(e.openElements.hasInTableScope(Vo.TD)||e.openElements.hasInTableScope(Vo.TH))&&(e._closeTableCell(),_a(e,t)):pa(e,t)}(this,e);break;case Bs.IN_SELECT:Na(this,e);break;case Bs.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===Vo.CAPTION||n===Vo.TABLE||n===Vo.TBODY||n===Vo.TFOOT||n===Vo.THEAD||n===Vo.TR||n===Vo.TD||n===Vo.TH?(e.openElements.popUntilTagNamePopped(Vo.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Na(e,t)}(this,e);break;case Bs.IN_TEMPLATE:!function(e,t){switch(t.tagID){case Vo.BASE:case Vo.BASEFONT:case Vo.BGSOUND:case Vo.LINK:case Vo.META:case Vo.NOFRAMES:case Vo.SCRIPT:case Vo.STYLE:case Vo.TEMPLATE:case Vo.TITLE:na(e,t);break;case Vo.CAPTION:case Vo.COLGROUP:case Vo.TBODY:case Vo.TFOOT:case Vo.THEAD:e.tmplInsertionModeStack[0]=Bs.IN_TABLE,e.insertionMode=Bs.IN_TABLE,ya(e,t);break;case Vo.COL:e.tmplInsertionModeStack[0]=Bs.IN_COLUMN_GROUP,e.insertionMode=Bs.IN_COLUMN_GROUP,Ca(e,t);break;case Vo.TR:e.tmplInsertionModeStack[0]=Bs.IN_TABLE_BODY,e.insertionMode=Bs.IN_TABLE_BODY,Da(e,t);break;case Vo.TD:case Vo.TH:e.tmplInsertionModeStack[0]=Bs.IN_ROW,e.insertionMode=Bs.IN_ROW,_a(e,t);break;default:e.tmplInsertionModeStack[0]=Bs.IN_BODY,e.insertionMode=Bs.IN_BODY,pa(e,t)}}(this,e);break;case Bs.AFTER_BODY:!function(e,t){t.tagID===Vo.HTML?pa(e,t):Pa(e,t)}(this,e);break;case Bs.IN_FRAMESET:!function(e,t){switch(t.tagID){case Vo.HTML:pa(e,t);break;case Vo.FRAMESET:e._insertElement(t,Uo.HTML);break;case Vo.FRAME:e._appendElement(t,Uo.HTML),t.ackSelfClosing=!0;break;case Vo.NOFRAMES:na(e,t)}}(this,e);break;case Bs.AFTER_FRAMESET:!function(e,t){switch(t.tagID){case Vo.HTML:pa(e,t);break;case Vo.NOFRAMES:na(e,t)}}(this,e);break;case Bs.AFTER_AFTER_BODY:!function(e,t){t.tagID===Vo.HTML?pa(e,t):qa(e,t)}(this,e);break;case Bs.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){case Vo.HTML:pa(e,t);break;case Vo.NOFRAMES:na(e,t)}}(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===Vo.P||t.tagID===Vo.BR)return Fa(e),void e._endTagOutsideForeignContent(t);for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===Uo.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case Bs.INITIAL:Js(this,e);break;case Bs.BEFORE_HTML:!function(e,t){const n=t.tagID;n!==Vo.HTML&&n!==Vo.HEAD&&n!==Vo.BODY&&n!==Vo.BR||ea(e,t)}(this,e);break;case Bs.BEFORE_HEAD:!function(e,t){const n=t.tagID;n===Vo.HEAD||n===Vo.BODY||n===Vo.HTML||n===Vo.BR?ta(e,t):e._err(t,Fo.endTagWithoutMatchingOpenElement)}(this,e);break;case Bs.IN_HEAD:!function(e,t){switch(t.tagID){case Vo.HEAD:e.openElements.pop(),e.insertionMode=Bs.AFTER_HEAD;break;case Vo.BODY:case Vo.BR:case Vo.HTML:ia(e,t);break;case Vo.TEMPLATE:ra(e,t);break;default:e._err(t,Fo.endTagWithoutMatchingOpenElement)}}(this,e);break;case Bs.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case Vo.NOSCRIPT:e.openElements.pop(),e.insertionMode=Bs.IN_HEAD;break;case Vo.BR:oa(e,t);break;default:e._err(t,Fo.endTagWithoutMatchingOpenElement)}}(this,e);break;case Bs.AFTER_HEAD:!function(e,t){switch(t.tagID){case Vo.BODY:case Vo.HTML:case Vo.BR:sa(e,t);break;case Vo.TEMPLATE:ra(e,t);break;default:e._err(t,Fo.endTagWithoutMatchingOpenElement)}}(this,e);break;case Bs.IN_BODY:ma(this,e);break;case Bs.TEXT:!function(e,t){var n;t.tagID===Vo.SCRIPT&&(null===(n=e.scriptHandler)||void 0===n||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}(this,e);break;case Bs.IN_TABLE:va(this,e);break;case Bs.IN_TABLE_TEXT:Ta(this,e);break;case Bs.IN_CAPTION:!function(e,t){const n=t.tagID;switch(n){case Vo.CAPTION:case Vo.TABLE:e.openElements.hasInTableScope(Vo.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Vo.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Bs.IN_TABLE,n===Vo.TABLE&&va(e,t));break;case Vo.BODY:case Vo.COL:case Vo.COLGROUP:case Vo.HTML:case Vo.TBODY:case Vo.TD:case Vo.TFOOT:case Vo.TH:case Vo.THEAD:case Vo.TR:break;default:ma(e,t)}}(this,e);break;case Bs.IN_COLUMN_GROUP:!function(e,t){switch(t.tagID){case Vo.COLGROUP:e.openElements.currentTagId===Vo.COLGROUP&&(e.openElements.pop(),e.insertionMode=Bs.IN_TABLE);break;case Vo.TEMPLATE:ra(e,t);break;case Vo.COL:break;default:Aa(e,t)}}(this,e);break;case Bs.IN_TABLE_BODY:Ra(this,e);break;case Bs.IN_ROW:La(this,e);break;case Bs.IN_CELL:!function(e,t){const n=t.tagID;switch(n){case Vo.TD:case Vo.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Bs.IN_ROW);break;case Vo.TABLE:case Vo.TBODY:case Vo.TFOOT:case Vo.THEAD:case Vo.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),La(e,t));break;case Vo.BODY:case Vo.CAPTION:case Vo.COL:case Vo.COLGROUP:case Vo.HTML:break;default:ma(e,t)}}(this,e);break;case Bs.IN_SELECT:Ia(this,e);break;case Bs.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===Vo.CAPTION||n===Vo.TABLE||n===Vo.TBODY||n===Vo.TFOOT||n===Vo.THEAD||n===Vo.TR||n===Vo.TD||n===Vo.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(Vo.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Ia(e,t)}(this,e);break;case Bs.IN_TEMPLATE:!function(e,t){t.tagID===Vo.TEMPLATE&&ra(e,t)}(this,e);break;case Bs.AFTER_BODY:Ma(this,e);break;case Bs.IN_FRAMESET:!function(e,t){t.tagID!==Vo.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagId===Vo.FRAMESET||(e.insertionMode=Bs.AFTER_FRAMESET))}(this,e);break;case Bs.AFTER_FRAMESET:!function(e,t){t.tagID===Vo.HTML&&(e.insertionMode=Bs.AFTER_AFTER_FRAMESET)}(this,e);break;case Bs.AFTER_AFTER_BODY:qa(this,e)}}onEof(e){switch(this.insertionMode){case Bs.INITIAL:Js(this,e);break;case Bs.BEFORE_HTML:ea(this,e);break;case Bs.BEFORE_HEAD:ta(this,e);break;case Bs.IN_HEAD:ia(this,e);break;case Bs.IN_HEAD_NO_SCRIPT:oa(this,e);break;case Bs.AFTER_HEAD:sa(this,e);break;case Bs.IN_BODY:case Bs.IN_TABLE:case Bs.IN_CAPTION:case Bs.IN_COLUMN_GROUP:case Bs.IN_TABLE_BODY:case Bs.IN_ROW:case Bs.IN_CELL:case Bs.IN_SELECT:case Bs.IN_SELECT_IN_TABLE:ba(this,e);break;case Bs.TEXT:!function(e,t){e._err(t,Fo.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}(this,e);break;case Bs.IN_TABLE_TEXT:Ta(this,e);break;case Bs.IN_TEMPLATE:Oa(this,e);break;case Bs.AFTER_BODY:case Bs.IN_FRAMESET:case Bs.AFTER_FRAMESET:case Bs.AFTER_AFTER_BODY:case Bs.AFTER_AFTER_FRAMESET:Zs(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===Lo.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)this._insertCharacters(e);else switch(this.insertionMode){case Bs.IN_HEAD:case Bs.IN_HEAD_NO_SCRIPT:case Bs.AFTER_HEAD:case Bs.TEXT:case Bs.IN_COLUMN_GROUP:case Bs.IN_SELECT:case Bs.IN_SELECT_IN_TABLE:case Bs.IN_FRAMESET:case Bs.AFTER_FRAMESET:this._insertCharacters(e);break;case Bs.IN_BODY:case Bs.IN_CAPTION:case Bs.IN_CELL:case Bs.IN_TEMPLATE:case Bs.AFTER_BODY:case Bs.AFTER_AFTER_BODY:case Bs.AFTER_AFTER_FRAMESET:la(this,e);break;case Bs.IN_TABLE:case Bs.IN_TABLE_BODY:case Bs.IN_ROW:ka(this,e);break;case Bs.IN_TABLE_TEXT:Ea(this,e)}}}function Vs(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):ga(e,t),n}function Gs(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function $s(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let o=0,s=i;s!==n;o++,s=i){i=e.openElements.getCommonAncestor(s);const n=e.activeFormattingElements.getElementEntry(s),a=n&&o>=3;!n||a?(a&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(s)):(s=Ys(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function Ys(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function Ws(e,t,n){const r=Wo(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(t);r===Vo.TEMPLATE&&i===Uo.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Qs(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,o=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o,i.tagID)}function Ks(e,t){for(let n=0;n<8;n++){const n=Vs(e,t);if(!n)break;const r=Gs(e,n);if(!r)break;e.activeFormattingElements.bookmark=n;const i=$s(e,r,n.element),o=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(i),o&&Ws(e,o,i),Qs(e,r,n)}}function Xs(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Zs(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){const n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&e._setEndLocation(n,t)}}}}function Js(e,t){e._err(t,Fo.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,zo.QUIRKS),e.insertionMode=Bs.BEFORE_HTML,e._processToken(t)}function ea(e,t){e._insertFakeRootElement(),e.insertionMode=Bs.BEFORE_HEAD,e._processToken(t)}function ta(e,t){e._insertFakeElement(jo.HEAD,Vo.HEAD),e.headElement=e.openElements.current,e.insertionMode=Bs.IN_HEAD,e._processToken(t)}function na(e,t){switch(t.tagID){case Vo.HTML:pa(e,t);break;case Vo.BASE:case Vo.BASEFONT:case Vo.BGSOUND:case Vo.LINK:case Vo.META:e._appendElement(t,Uo.HTML),t.ackSelfClosing=!0;break;case Vo.TITLE:e._switchToTextParsing(t,es.RCDATA);break;case Vo.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,es.RAWTEXT):(e._insertElement(t,Uo.HTML),e.insertionMode=Bs.IN_HEAD_NO_SCRIPT);break;case Vo.NOFRAMES:case Vo.STYLE:e._switchToTextParsing(t,es.RAWTEXT);break;case Vo.SCRIPT:e._switchToTextParsing(t,es.SCRIPT_DATA);break;case Vo.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Bs.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(Bs.IN_TEMPLATE);break;case Vo.HEAD:e._err(t,Fo.misplacedStartTagForHeadElement);break;default:ia(e,t)}}function ra(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==Vo.TEMPLATE&&e._err(t,Fo.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(Vo.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,Fo.endTagWithoutMatchingOpenElement)}function ia(e,t){e.openElements.pop(),e.insertionMode=Bs.AFTER_HEAD,e._processToken(t)}function oa(e,t){e._err(t,t.type===Bo.EOF?Fo.openElementsLeftAfterEof:Fo.disallowedContentInNoscriptInHead),e.openElements.pop(),e.insertionMode=Bs.IN_HEAD,e._processToken(t)}function sa(e,t){e._insertFakeElement(jo.BODY,Vo.BODY),e.insertionMode=Bs.IN_BODY,aa(e,t)}function aa(e,t){switch(t.type){case Bo.CHARACTER:ca(e,t);break;case Bo.WHITESPACE_CHARACTER:la(e,t);break;case Bo.COMMENT:Xs(e,t);break;case Bo.START_TAG:pa(e,t);break;case Bo.END_TAG:ma(e,t);break;case Bo.EOF:ba(e,t)}}function la(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function ca(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function ua(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Uo.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function ha(e){const t=$o(e,Ho.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function fa(e,t){e._switchToTextParsing(t,es.RAWTEXT)}function da(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Uo.HTML)}function pa(e,t){switch(t.tagID){case Vo.I:case Vo.S:case Vo.B:case Vo.U:case Vo.EM:case Vo.TT:case Vo.BIG:case Vo.CODE:case Vo.FONT:case Vo.SMALL:case Vo.STRIKE:case Vo.STRONG:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Uo.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case Vo.A:!function(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(jo.A);n&&(Ks(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Uo.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case Vo.H1:case Vo.H2:case Vo.H3:case Vo.H4:case Vo.H5:case Vo.H6:!function(e,t){e.openElements.hasInButtonScope(Vo.P)&&e._closePElement(),Xo(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Uo.HTML)}(e,t);break;case Vo.P:case Vo.DL:case Vo.OL:case Vo.UL:case Vo.DIV:case Vo.DIR:case Vo.NAV:case Vo.MAIN:case Vo.MENU:case Vo.ASIDE:case Vo.CENTER:case Vo.FIGURE:case Vo.FOOTER:case Vo.HEADER:case Vo.HGROUP:case Vo.DIALOG:case Vo.DETAILS:case Vo.ADDRESS:case Vo.ARTICLE:case Vo.SECTION:case Vo.SUMMARY:case Vo.FIELDSET:case Vo.BLOCKQUOTE:case Vo.FIGCAPTION:!function(e,t){e.openElements.hasInButtonScope(Vo.P)&&e._closePElement(),e._insertElement(t,Uo.HTML)}(e,t);break;case Vo.LI:case Vo.DD:case Vo.DT:!function(e,t){e.framesetOk=!1;const n=t.tagID;for(let t=e.openElements.stackTop;t>=0;t--){const r=e.openElements.tagIDs[t];if(n===Vo.LI&&r===Vo.LI||(n===Vo.DD||n===Vo.DT)&&(r===Vo.DD||r===Vo.DT)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r);break}if(r!==Vo.ADDRESS&&r!==Vo.DIV&&r!==Vo.P&&e._isSpecialElement(e.openElements.items[t],r))break}e.openElements.hasInButtonScope(Vo.P)&&e._closePElement(),e._insertElement(t,Uo.HTML)}(e,t);break;case Vo.BR:case Vo.IMG:case Vo.WBR:case Vo.AREA:case Vo.EMBED:case Vo.KEYGEN:ua(e,t);break;case Vo.HR:!function(e,t){e.openElements.hasInButtonScope(Vo.P)&&e._closePElement(),e._appendElement(t,Uo.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t);break;case Vo.RB:case Vo.RTC:!function(e,t){e.openElements.hasInScope(Vo.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Uo.HTML)}(e,t);break;case Vo.RT:case Vo.RP:!function(e,t){e.openElements.hasInScope(Vo.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(Vo.RTC),e._insertElement(t,Uo.HTML)}(e,t);break;case Vo.PRE:case Vo.LISTING:!function(e,t){e.openElements.hasInButtonScope(Vo.P)&&e._closePElement(),e._insertElement(t,Uo.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}(e,t);break;case Vo.XMP:!function(e,t){e.openElements.hasInButtonScope(Vo.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,es.RAWTEXT)}(e,t);break;case Vo.SVG:!function(e,t){e._reconstructActiveFormattingElements(),qs(t),Fs(t),t.selfClosing?e._appendElement(t,Uo.SVG):e._insertElement(t,Uo.SVG),t.ackSelfClosing=!0}(e,t);break;case Vo.HTML:!function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t);break;case Vo.BASE:case Vo.LINK:case Vo.META:case Vo.STYLE:case Vo.TITLE:case Vo.SCRIPT:case Vo.BGSOUND:case Vo.BASEFONT:case Vo.TEMPLATE:na(e,t);break;case Vo.BODY:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t);break;case Vo.FORM:!function(e,t){const n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(Vo.P)&&e._closePElement(),e._insertElement(t,Uo.HTML),n||(e.formElement=e.openElements.current))}(e,t);break;case Vo.NOBR:!function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(Vo.NOBR)&&(Ks(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Uo.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case Vo.MATH:!function(e,t){e._reconstructActiveFormattingElements(),Ps(t),Fs(t),t.selfClosing?e._appendElement(t,Uo.MATHML):e._insertElement(t,Uo.MATHML),t.ackSelfClosing=!0}(e,t);break;case Vo.TABLE:!function(e,t){e.treeAdapter.getDocumentMode(e.document)!==zo.QUIRKS&&e.openElements.hasInButtonScope(Vo.P)&&e._closePElement(),e._insertElement(t,Uo.HTML),e.framesetOk=!1,e.insertionMode=Bs.IN_TABLE}(e,t);break;case Vo.INPUT:!function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Uo.HTML),ha(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t);break;case Vo.PARAM:case Vo.TRACK:case Vo.SOURCE:!function(e,t){e._appendElement(t,Uo.HTML),t.ackSelfClosing=!0}(e,t);break;case Vo.IMAGE:!function(e,t){t.tagName=jo.IMG,t.tagID=Vo.IMG,ua(e,t)}(e,t);break;case Vo.BUTTON:!function(e,t){e.openElements.hasInScope(Vo.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Vo.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Uo.HTML),e.framesetOk=!1}(e,t);break;case Vo.APPLET:case Vo.OBJECT:case Vo.MARQUEE:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Uo.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}(e,t);break;case Vo.IFRAME:!function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,es.RAWTEXT)}(e,t);break;case Vo.SELECT:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Uo.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===Bs.IN_TABLE||e.insertionMode===Bs.IN_CAPTION||e.insertionMode===Bs.IN_TABLE_BODY||e.insertionMode===Bs.IN_ROW||e.insertionMode===Bs.IN_CELL?Bs.IN_SELECT_IN_TABLE:Bs.IN_SELECT}(e,t);break;case Vo.OPTION:case Vo.OPTGROUP:!function(e,t){e.openElements.currentTagId===Vo.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Uo.HTML)}(e,t);break;case Vo.NOEMBED:fa(e,t);break;case Vo.FRAMESET:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Uo.HTML),e.insertionMode=Bs.IN_FRAMESET)}(e,t);break;case Vo.TEXTAREA:!function(e,t){e._insertElement(t,Uo.HTML),e.skipNextNewLine=!0,e.tokenizer.state=es.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Bs.TEXT}(e,t);break;case Vo.NOSCRIPT:e.options.scriptingEnabled?fa(e,t):da(e,t);break;case Vo.PLAINTEXT:!function(e,t){e.openElements.hasInButtonScope(Vo.P)&&e._closePElement(),e._insertElement(t,Uo.HTML),e.tokenizer.state=es.PLAINTEXT}(e,t);break;case Vo.COL:case Vo.TH:case Vo.TD:case Vo.TR:case Vo.HEAD:case Vo.FRAME:case Vo.TBODY:case Vo.TFOOT:case Vo.THEAD:case Vo.CAPTION:case Vo.COLGROUP:break;default:da(e,t)}}function ga(e,t){const n=t.tagName,r=t.tagID;for(let t=e.openElements.stackTop;t>0;t--){const i=e.openElements.items[t],o=e.openElements.tagIDs[t];if(r===o&&(r!==Vo.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=t&&e.openElements.shortenToLength(t);break}if(e._isSpecialElement(i,o))break}}function ma(e,t){switch(t.tagID){case Vo.A:case Vo.B:case Vo.I:case Vo.S:case Vo.U:case Vo.EM:case Vo.TT:case Vo.BIG:case Vo.CODE:case Vo.FONT:case Vo.NOBR:case Vo.SMALL:case Vo.STRIKE:case Vo.STRONG:Ks(e,t);break;case Vo.P:!function(e){e.openElements.hasInButtonScope(Vo.P)||e._insertFakeElement(jo.P,Vo.P),e._closePElement()}(e);break;case Vo.DL:case Vo.UL:case Vo.OL:case Vo.DIR:case Vo.DIV:case Vo.NAV:case Vo.PRE:case Vo.MAIN:case Vo.MENU:case Vo.ASIDE:case Vo.BUTTON:case Vo.CENTER:case Vo.FIGURE:case Vo.FOOTER:case Vo.HEADER:case Vo.HGROUP:case Vo.DIALOG:case Vo.ADDRESS:case Vo.ARTICLE:case Vo.DETAILS:case Vo.SECTION:case Vo.SUMMARY:case Vo.LISTING:case Vo.FIELDSET:case Vo.BLOCKQUOTE:case Vo.FIGCAPTION:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case Vo.LI:!function(e){e.openElements.hasInListItemScope(Vo.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(Vo.LI),e.openElements.popUntilTagNamePopped(Vo.LI))}(e);break;case Vo.DD:case Vo.DT:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case Vo.H1:case Vo.H2:case Vo.H3:case Vo.H4:case Vo.H5:case Vo.H6:!function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e);break;case Vo.BR:!function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(jo.BR,Vo.BR),e.openElements.pop(),e.framesetOk=!1}(e);break;case Vo.BODY:!function(e,t){if(e.openElements.hasInScope(Vo.BODY)&&(e.insertionMode=Bs.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}(e,t);break;case Vo.HTML:!function(e,t){e.openElements.hasInScope(Vo.BODY)&&(e.insertionMode=Bs.AFTER_BODY,Ma(e,t))}(e,t);break;case Vo.FORM:!function(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(Vo.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(Vo.FORM):n&&e.openElements.remove(n))}(e);break;case Vo.APPLET:case Vo.OBJECT:case Vo.MARQUEE:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}(e,t);break;case Vo.TEMPLATE:ra(e,t);break;default:ga(e,t)}}function ba(e,t){e.tmplInsertionModeStack.length>0?Oa(e,t):Zs(e,t)}function ka(e,t){if(Hs.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Bs.IN_TABLE_TEXT,t.type){case Bo.CHARACTER:Sa(e,t);break;case Bo.WHITESPACE_CHARACTER:Ea(e,t)}else wa(e,t)}function ya(e,t){switch(t.tagID){case Vo.TD:case Vo.TH:case Vo.TR:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(jo.TBODY,Vo.TBODY),e.insertionMode=Bs.IN_TABLE_BODY,Da(e,t)}(e,t);break;case Vo.STYLE:case Vo.SCRIPT:case Vo.TEMPLATE:na(e,t);break;case Vo.COL:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(jo.COLGROUP,Vo.COLGROUP),e.insertionMode=Bs.IN_COLUMN_GROUP,Ca(e,t)}(e,t);break;case Vo.FORM:!function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,Uo.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t);break;case Vo.TABLE:!function(e,t){e.openElements.hasInTableScope(Vo.TABLE)&&(e.openElements.popUntilTagNamePopped(Vo.TABLE),e._resetInsertionMode(),e._processStartTag(t))}(e,t);break;case Vo.TBODY:case Vo.TFOOT:case Vo.THEAD:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Uo.HTML),e.insertionMode=Bs.IN_TABLE_BODY}(e,t);break;case Vo.INPUT:!function(e,t){ha(t)?e._appendElement(t,Uo.HTML):wa(e,t),t.ackSelfClosing=!0}(e,t);break;case Vo.CAPTION:!function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Uo.HTML),e.insertionMode=Bs.IN_CAPTION}(e,t);break;case Vo.COLGROUP:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Uo.HTML),e.insertionMode=Bs.IN_COLUMN_GROUP}(e,t);break;default:wa(e,t)}}function va(e,t){switch(t.tagID){case Vo.TABLE:e.openElements.hasInTableScope(Vo.TABLE)&&(e.openElements.popUntilTagNamePopped(Vo.TABLE),e._resetInsertionMode());break;case Vo.TEMPLATE:ra(e,t);break;case Vo.BODY:case Vo.CAPTION:case Vo.COL:case Vo.COLGROUP:case Vo.HTML:case Vo.TBODY:case Vo.TD:case Vo.TFOOT:case Vo.TH:case Vo.THEAD:case Vo.TR:break;default:wa(e,t)}}function wa(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,aa(e,t),e.fosterParentingEnabled=n}function Ea(e,t){e.pendingCharacterTokens.push(t)}function Sa(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Ta(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)wa(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const xa=new Set([Vo.CAPTION,Vo.COL,Vo.COLGROUP,Vo.TBODY,Vo.TD,Vo.TFOOT,Vo.TH,Vo.THEAD,Vo.TR]);function Ca(e,t){switch(t.tagID){case Vo.HTML:pa(e,t);break;case Vo.COL:e._appendElement(t,Uo.HTML),t.ackSelfClosing=!0;break;case Vo.TEMPLATE:na(e,t);break;default:Aa(e,t)}}function Aa(e,t){e.openElements.currentTagId===Vo.COLGROUP&&(e.openElements.pop(),e.insertionMode=Bs.IN_TABLE,e._processToken(t))}function Da(e,t){switch(t.tagID){case Vo.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Uo.HTML),e.insertionMode=Bs.IN_ROW;break;case Vo.TH:case Vo.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(jo.TR,Vo.TR),e.insertionMode=Bs.IN_ROW,_a(e,t);break;case Vo.CAPTION:case Vo.COL:case Vo.COLGROUP:case Vo.TBODY:case Vo.TFOOT:case Vo.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Bs.IN_TABLE,ya(e,t));break;default:ya(e,t)}}function Ra(e,t){const n=t.tagID;switch(t.tagID){case Vo.TBODY:case Vo.TFOOT:case Vo.THEAD:e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Bs.IN_TABLE);break;case Vo.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Bs.IN_TABLE,va(e,t));break;case Vo.BODY:case Vo.CAPTION:case Vo.COL:case Vo.COLGROUP:case Vo.HTML:case Vo.TD:case Vo.TH:case Vo.TR:break;default:va(e,t)}}function _a(e,t){switch(t.tagID){case Vo.TH:case Vo.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,Uo.HTML),e.insertionMode=Bs.IN_CELL,e.activeFormattingElements.insertMarker();break;case Vo.CAPTION:case Vo.COL:case Vo.COLGROUP:case Vo.TBODY:case Vo.TFOOT:case Vo.THEAD:case Vo.TR:e.openElements.hasInTableScope(Vo.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Bs.IN_TABLE_BODY,Da(e,t));break;default:ya(e,t)}}function La(e,t){switch(t.tagID){case Vo.TR:e.openElements.hasInTableScope(Vo.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Bs.IN_TABLE_BODY);break;case Vo.TABLE:e.openElements.hasInTableScope(Vo.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Bs.IN_TABLE_BODY,Ra(e,t));break;case Vo.TBODY:case Vo.TFOOT:case Vo.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(Vo.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Bs.IN_TABLE_BODY,Ra(e,t));break;case Vo.BODY:case Vo.CAPTION:case Vo.COL:case Vo.COLGROUP:case Vo.HTML:case Vo.TD:case Vo.TH:break;default:va(e,t)}}function Na(e,t){switch(t.tagID){case Vo.HTML:pa(e,t);break;case Vo.OPTION:e.openElements.currentTagId===Vo.OPTION&&e.openElements.pop(),e._insertElement(t,Uo.HTML);break;case Vo.OPTGROUP:e.openElements.currentTagId===Vo.OPTION&&e.openElements.pop(),e.openElements.currentTagId===Vo.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Uo.HTML);break;case Vo.INPUT:case Vo.KEYGEN:case Vo.TEXTAREA:case Vo.SELECT:e.openElements.hasInSelectScope(Vo.SELECT)&&(e.openElements.popUntilTagNamePopped(Vo.SELECT),e._resetInsertionMode(),t.tagID!==Vo.SELECT&&e._processStartTag(t));break;case Vo.SCRIPT:case Vo.TEMPLATE:na(e,t)}}function Ia(e,t){switch(t.tagID){case Vo.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===Vo.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===Vo.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===Vo.OPTGROUP&&e.openElements.pop();break;case Vo.OPTION:e.openElements.currentTagId===Vo.OPTION&&e.openElements.pop();break;case Vo.SELECT:e.openElements.hasInSelectScope(Vo.SELECT)&&(e.openElements.popUntilTagNamePopped(Vo.SELECT),e._resetInsertionMode());break;case Vo.TEMPLATE:ra(e,t)}}function Oa(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(Vo.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Zs(e,t)}function Ma(e,t){var n;if(t.tagID===Vo.HTML){if(e.fragmentContext||(e.insertionMode=Bs.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===Vo.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(null===(n=e.treeAdapter.getNodeSourceCodeLocation(r))||void 0===n?void 0:n.endTag)&&e._setEndLocation(r,t)}}else Pa(e,t)}function Pa(e,t){e.insertionMode=Bs.IN_BODY,aa(e,t)}function qa(e,t){e.insertionMode=Bs.IN_BODY,aa(e,t)}function Fa(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Uo.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}const Ba=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Ua={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Ha(e,t){const r=function(e){const t="root"===e.type?e.children[0]:e;return Boolean(t&&("doctype"===t.type||"element"===t.type&&"html"===t.tagName.toLowerCase()))}(e),i=g("type",{handlers:{root:ja,element:Va,text:Ga,comment:Ya,doctype:$a,raw:Wa},unknown:Qa}),s={parser:r?new js(Ua):js.getFragmentParser(void 0,Ua),handle(e){i(e,s)},stitches:!1,options:t||{}};i(e,s),Ka(s,n());const a=function(e,t){const n=t||{};return Mi({file:n.file||void 0,location:!1,schema:"svg"===n.space?Si:Ei,verbose:n.verbose||!1},e)}(r?s.parser.document:s.parser.getFragment(),{file:s.options.file});return s.stitches&&o(a,"comment",(function(e,t,n){if(e.value.stitch&&n&&void 0!==t)return n.children[t]=e.value.stitch,t})),"root"===a.type&&1===a.children.length&&a.children[0].type===e.type?a.children[0]:a}function za(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function ja(e,t){za(e.children,t)}function Va(e,t){!function(e,t){const r=e.tagName.toLowerCase();if(t.parser.tokenizer.state===es.PLAINTEXT)return;Ka(t,n(e));const i=t.parser.openElements.current;let o="namespaceURI"in i?i.namespaceURI:p.html;o===p.html&&"svg"===r&&(o=p.svg);const s=(l={...e,children:[]},To(l,"svg"===({space:o===p.svg?"svg":"html"}||Eo).space?wo:vo)),a={type:Bo.START_TAG,tagName:r,tagID:Wo(r),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in s?s.attrs:[],location:Za(e)};var l;t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=r}(e,t),za(e.children,t),function(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Do.includes(n))return;if(t.parser.tokenizer.state===es.PLAINTEXT)return;Ka(t,r(e));const i={type:Bo.END_TAG,tagName:n,tagID:Wo(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Za(e)};t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),n!==t.parser.tokenizer.lastStartTagName||t.parser.tokenizer.state!==es.RCDATA&&t.parser.tokenizer.state!==es.RAWTEXT&&t.parser.tokenizer.state!==es.SCRIPT_DATA||(t.parser.tokenizer.state=es.DATA)}(e,t)}function Ga(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const r={type:Bo.CHARACTER,chars:e.value,location:Za(e)};Ka(t,n(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function $a(e,t){const r={type:Bo.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Za(e)};Ka(t,n(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function Ya(e,t){const r={type:Bo.COMMENT,data:e.value,location:Za(e)};Ka(t,n(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function Wa(e,t){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,Xa(t,n(e)),t.parser.tokenizer.write(e.value,!1),t.parser.tokenizer._runParsingLoop(),72===t.parser.tokenizer.state||78===t.parser.tokenizer.state){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function Qa(e,t){const n=e;if(!t.options.passThrough||!t.options.passThrough.includes(n.type)){let e="";throw Ba.has(n.type)&&(e=". 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"+e)}!function(e,t){t.stitches=!0;const n=function(e){return i("children"in e?{...e,children:[]}:e)}(e);if("children"in e&&"children"in n){const r=Ha({type:"root",children:e.children},t.options);n.children=r.children}Ya({type:"comment",value:{stitch:n}},t)}(n,t)}function Ka(e,t){Xa(e,t);const n=e.parser.tokenizer.currentCharacterToken;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=es.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:""}}function Xa(e,t){if(t&&void 0!==t.offset){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=1-t.column,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function Za(e){const t=n(e)||{line:void 0,column:void 0,offset:void 0},i=r(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:i.line,endCol:i.column,endOffset:i.offset}}function Ja(e){return function(t,n){return Ha(t,{...e,file:n})}}var el,tl,nl=/\/\*(?:[^*]|\*(?!\/))*\*\//g,rl=/\n/g,il=/^\s*/,ol=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,sl=/^:\s*/,al=/^((?:'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|url\((?:'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|[^)]*)\)|[^};])+)/,ll=/^[;\s]*/;var cl,ul,hl=e(tl?el:(tl=1,el={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]})),fl=function(){if(ul)return cl;ul=1;const e="a-f\\d",t=`#?[${e}]{3}[${e}]?`,n=`#?[${e}]{6}([${e}]{2})?`,r=new RegExp(`[^#${e}]`,"gi"),i=new RegExp(`^${t}$|^${n}$`,"i");return cl=(e,t={})=>{if("string"!=typeof e||r.test(e)||!i.test(e))throw new TypeError("Expected a valid hex string");let n=1;8===(e=e.replace(/^#/,"")).length&&(n=Number.parseInt(e.slice(6,8),16)/255,e=e.slice(0,6)),4===e.length&&(n=Number.parseInt(e.slice(3,4).repeat(2),16)/255,e=e.slice(0,3)),3===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const o=Number.parseInt(e,16),s=o>>16,a=o>>8&255,l=255&o,c="number"==typeof t.alpha?t.alpha:n;return"array"===t.format?[s,a,l,c]:"css"===t.format?`rgb(${s} ${a} ${l}${1===c?"":` / ${Number((100*c).toFixed(2))}%`})`:{red:s,green:a,blue:l,alpha:c}},cl}(),dl=e(fl),pl=new RegExp(/^#([a-f0-9]{3,4}|[a-f0-9]{4}(?:[a-f0-9]{2}){1,2})\b$/,"i");const gl="-?\\d*(?:\\.\\d+)",ml=`(${gl}?)`,bl=`(${gl}?%)`,kl=`(${gl}?%?)`,yl=`^\n hsla?\\(\n \\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*,\n \\s*${bl}\\s*,\n \\s*${bl}\\s*\n (?:,\\s*${kl}\\s*)?\n \\)\n $\n`.replace(/\n|\s/g,"");var vl=new RegExp(yl);const wl=`^\n hsla?\\(\n \\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*\n \\s+${bl}\n \\s+${bl}\n \\s*(?:\\s*\\/\\s*${kl}\\s*)?\n \\)\n $\n`.replace(/\n|\s/g,"");var El=new RegExp(wl);const Sl=`^\n rgba?\\(\n \\s*${ml}\\s*,\n \\s*${ml}\\s*,\n \\s*${ml}\\s*\n (?:,\\s*${kl}\\s*)?\n \\)\n $\n`.replace(/\n|\s/g,"");var Tl=new RegExp(Sl);const xl=`^\n rgba?\\(\n \\s*${bl}\\s*,\n \\s*${bl}\\s*,\n \\s*${bl}\\s*\n (?:,\\s*${kl}\\s*)?\n \\)\n $\n`.replace(/\n|\s/g,"");var Cl=new RegExp(xl);const Al=`^\n rgba?\\(\n \\s*${ml}\n \\s+${ml}\n \\s+${ml}\n \\s*(?:\\s*\\/\\s*${kl}\\s*)?\n \\)\n$\n`.replace(/\n|\s/g,"");var Dl=new RegExp(Al);const Rl=`^\n rgba?\\(\n \\s*${bl}\n \\s+${bl}\n \\s+${bl}\n \\s*(?:\\s*\\/\\s*${kl}\\s*)?\n \\)\n$\n`.replace(/\n|\s/g,"");var _l=new RegExp(Rl),Ll=new RegExp(/^transparent$/,"i");const Nl=(e,t,n)=>Math.min(Math.max(t,e),n),Il=e=>{let t=e;return"number"!=typeof t&&(t=t.endsWith("%")?255*parseFloat(t)/100:parseFloat(t)),Nl(Math.round(t),0,255)},Ol=e=>Nl(parseFloat(e),0,100);function Ml(e){let t=e;return"number"!=typeof t&&(t=t.endsWith("%")?parseFloat(t)/100:parseFloat(t)),Nl(t,0,1)}function Pl([,e,t,n,r=1]){return{type:"rgb",values:[e,t,n].map(Il),alpha:Ml(null===r?1:r)}}
|
|
2
|
+
/**
|
|
3
|
+
* parse-css-color
|
|
4
|
+
* @version v0.2.1
|
|
5
|
+
* @link http://github.com/noeldelgado/parse-css-color/
|
|
6
|
+
* @license MIT
|
|
7
|
+
*/const ql=["background-color","color","font-style","font-weight","text-decoration-color","text-decoration-line","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-decoration","width","height","min-width","min-height"];function Fl(e){var t;e.tagName&&(null===(t=e.properties)||void 0===t?void 0:t.style)&&(e.properties.style=function(e,t){try{const n=function(e){const t=Object.assign({},e);return delete t.background,"background"in e&&null!==(e=>{if("string"!=typeof e)return null;const t=pl.exec(e);if(t)return function(e){const[t,n,r,i]=dl(e,{format:"array"});return Pl([null,t,n,r,i])}(t[0]);const n=El.exec(e)||vl.exec(e);if(n)return function([,e,t,n,r=1]){let i=e;return i=i.endsWith("turn")?360*parseFloat(i)/1:i.endsWith("rad")?Math.round(180*parseFloat(i)/Math.PI):parseFloat(i),{type:"hsl",values:[i,Ol(t),Ol(n)],alpha:Ml(null===r?1:r)}}(n);const r=Dl.exec(e)||_l.exec(e)||Tl.exec(e)||Cl.exec(e);if(r)return Pl(r);if(Ll.exec(e))return Pl([null,0,0,0,0]);const i=hl[e.toLowerCase()];return i?Pl([null,i[0],i[1],i[2],1]):null})(e.background)&&(t["background-color"]=e.background),t}(function(e){let t=null;if(!e||"string"!=typeof e)return t;const n=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(e){var t=e.match(rl);t&&(n+=t.length);var i=e.lastIndexOf("\n");r=~i?e.length-i:r+e.length}function o(){var e={line:n,column:r};return function(t){return t.position=new s(e),c(),t}}function s(e){this.start=e,this.end={line:n,column:r},this.source=t.source}function a(i){var o=new Error(t.source+":"+n+":"+r+": "+i);if(o.reason=i,o.filename=t.source,o.line=n,o.column=r,o.source=e,!t.silent)throw o}function l(t){var n=t.exec(e);if(n){var r=n[0];return i(r),e=e.slice(r.length),n}}function c(){l(il)}function u(e){for(var t;t=h();)e.push(t);return e}function h(){var t=o();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(""===e.charAt((n+=2)-1))return a("End of comment missing");var s=e.slice(2,n-2);return r+=2,i(s),e=e.slice(n),r+=2,t({type:"comment",comment:s})}}function f(){var e=o(),t=l(ol);if(t){if(h(),!l(sl))return a("property missing ':'");var n=l(al),r=e({type:"declaration",property:t[0].replace(nl,"").trim(),value:n?n[0].replace(nl,"").trim():""});return l(ll),r}}return s.prototype.content=e,c(),function(){var e,t=[];for(u(t);e=f();)t.push(e),u(t);return t}()}(e);return n.forEach((e=>{if("declaration"!==e.type)return;const{property:n,value:r}=e;r&&(t=t??{},t[n]=r)})),t}(e));return Object.entries(n).filter((([e])=>ql.includes(e))).filter((([e,n])=>!function(e,t,n){return"table"===e&&"width"===t&&function(e){return 0===Number.parseFloat(e)}(n)}(t,e,n))).map((([e,t])=>`${e}: ${t}`)).join("; ")}catch(t){return console.error("Failed to parse style value",e,t),""}}(e.properties.style,e.tagName))}const Bl=/\u{A0}/gu,Ul=["200B","200C","200D","FEFF"],Hl=new Set(["audio","canvas","embed","iframe","img","input","object","svg","video"]),zl=new Set(["br"]),jl=(e,t)=>{if(e&&"object"==typeof e){if("element"===e.type&&"p"===e.tagName&&t&&Vl(e)&&Array.isArray(t.children)){const n=t.children.indexOf(e);if(-1!==n)return void t.children.splice(n,1)}if(Array.isArray(e.children)&&0!==e.children.length)for(let t=e.children.length-1;t>=0;t--)jl(e.children[t],e)}},Vl=e=>!Array.isArray(e.children)||0===e.children.length||e.children.every((e=>Gl(e))),Gl=e=>{if(!e)return!0;if("text"===e.type)return Yl("string"==typeof e.value?e.value:"");if("comment"===e.type)return!0;if("element"===e.type){const t=e,n=t.tagName;return"string"!=typeof n||!$l(n)&&(!(!zl.has(n)&&Array.isArray(t.children)&&0!==t.children.length)||t.children.every((e=>Gl(e))))}return!0},$l=e=>Hl.has(e)||(e=>e.includes("-"))(e),Yl=e=>{if(!e)return!0;const t=(e=>{let t=e;for(const e of Ul){const n=String.fromCodePoint(Number.parseInt(e,16));t=t.split(n).join("")}return t})(e.replaceAll(Bl," "));return""===t.trim()};async function Wl(e,t){var n;return(await w().use(mt).use(Ur).use((null==t?void 0:t.forceHardLineBreaks)?[zr]:[]).use(It,{allowDangerousHtml:!0}).use(Ja).use((()=>e=>(o(e,"element",(e=>{var t,n;if("a"!==e.tagName)return;const r=null===(t=e.properties)||void 0===t?void 0:t.href;if(!r)return;const i=C(r,null===(n=e.properties)||void 0===n?void 0:n.title);e.properties.target=i.target,e.properties.rel=i.rel,e.properties.referrerpolicy=i.referrerpolicy})),e))).use(E,Kl(null!==(n=null==t?void 0:t.whitelist)&&void 0!==n?n:[])).use((()=>e=>{o(e,"element",Fl)})).use(((e=!1)=>()=>e?e=>(jl(e,null),e):e=>e)(null==t?void 0:t.removeEmptyParagraphs)).use(function(e=!1){return()=>e?e=>(o(e,"element",(e=>{"img"===e.tagName&&(e.properties||(e.properties={}),e.properties.loading="lazy",e.properties.src&&(e.properties["data-src"]=e.properties.src,e.properties.src=void 0))})),e):e=>e}(null==t?void 0:t.lazyLoadImages)).use(S).process(e)).toString()}async function Ql(e,t){return(await w().use(T).use(E,Kl(null!=t?t:[])).use((()=>e=>{o(e,"element",Fl)})).use(S).process(e)).toString()}function Kl(e){var t,n,r,i;const o=[...null!==(t=x.attributes["*"])&&void 0!==t?t:[]].filter((e=>"height"!==e));o.push("style");const s=Object.assign(Object.assign({},x),{clobberPrefix:"",strip:[...null!==(n=x.strip)&&void 0!==n?n:[],"style"],tagNames:[...x.tagNames||[],"colgroup","col",...e.map((e=>e.tagName))],attributes:Object.assign(Object.assign({},x.attributes),{p:[...null!==(r=x.attributes.p)&&void 0!==r?r:[],["className","MsoNormal"]],a:[...null!==(i=x.attributes.a)&&void 0!==i?i:[],"referrerpolicy"],"*":o})});for(const t of e)s.attributes[t.tagName]=t.attributes;return s}export{qn as a,ae as b,$n as c,lt as d,En as e,bn as f,C as g,Tn as h,Qn as i,fn as j,Dn as k,mt as l,Wl as m,pn as p,Ur as r,Ql as s,D as t}
|