-
Notifications
You must be signed in to change notification settings - Fork 0
/
vendors-7.57ac8a58.bundle.js
1 lines (1 loc) · 67.9 KB
/
vendors-7.57ac8a58.bundle.js
1
(self.webpackChunktypescript_tutorial_exercises=self.webpackChunktypescript_tutorial_exercises||[]).push([["955"],{22857:function(e,t,a){"use strict";e.exports=a.p+"7bbe8604eda090d7c4d6.ttf"},1450:function(e,t,a){"use strict";e.exports=a.p+"c51696092b6270423477.ttf"},10798:function(e,t,a){"use strict";e.exports=a.p+"d1d39a8408e1a67df3ba.woff"},38308:function(e,t,a){"use strict";e.exports=a.p+"9accfd6fb34592b6c6d0.ttf"},17521:function(e,t,a){"use strict";var r=a("79754"),s=a("57155");e.exports=function(e){return r(e)||s(e)}},71129:function(e,t,a){var r=a("59027"),s=a("37600"),i=a("63200"),n=a("26881"),_=a("57083"),E=a("31450"),c=r?r.prototype:void 0,o=c?c.valueOf:void 0;e.exports=function(e,t,a,r,c,T,A){switch(a){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!T(new s(e),new s(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=_;case"[object Set]":var u=1&r;if(h||(h=E),e.size!=t.size&&!u)break;var C=A.get(e);if(C)return C==t;r|=2,A.set(e,t);var S=n(h(e),h(t),r,c,T,A);return A.delete(e),S;case"[object Symbol]":if(o)return o.call(e)==o.call(t)}return!1}},18273:function(e){"use strict";function t(e){var t,a;(t=e).languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"],a=t.languages.extend("typescript",{}),delete a["class-name"],t.languages.typescript["class-name"].inside=a,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:a}}}}),t.languages.ts=t.languages.typescript}e.exports=t,t.displayName="typescript",t.aliases=["ts"]},19156:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});var r=a("16756");function s(e,t){if("object"!=(0,r.Z)(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var s=a.call(e,t||"default");if("object"!=(0,r.Z)(s))return s;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},46299:function(e,t,a){"use strict";a.d(t,{q:function(){return A}});var r=a("54792");function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=Array(t);a<t;a++)r[a]=e[a];return r}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a,r,s=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=s){var i=[],n=!0,_=!1;try{for(s=s.call(e);!(n=(a=s.next()).done)&&(i.push(a.value),!t||i.length!==t);n=!0);}catch(e){_=!0,r=e}finally{try{!n&&null!=s.return&&s.return()}finally{if(_)throw r}}return i}}(e,t)||n(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){if(e){if("string"==typeof e)return s(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if("Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a)return Array.from(a);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return s(e,t)}}var _={}.toString,E=Object.keys,c=function(e){var t,a=void 0===e?"undefined":(t=e)&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t;if("object"!==a||!e)return[r.uk,a];var s=_.call(e).slice(8,-1);switch(s){case"Array":return[r.tF,""];case"Object":return[r.$l,""];case"Date":return[r.Hu,""];case"RegExp":return[r.o1,""];case"Map":return[r.nN,""];case"Set":return[r.JH,""]}return s.includes("Array")?[r.tF,s]:s.includes("Error")?[r.pn,s]:[r.$l,s]},o=function(e){var t=i(e,2),a=t[0],s=t[1];return a===r.uk&&("function"===s||"symbol"===s)},T=function(e,t,a,_){var T=function(e,t){var r=_.push(e)-1;return a.set(t,r),r},A=function(_){if(a.has(_))return a.get(_);var h=i(c(_),2),u=h[0],C=h[1];switch(u){case r.uk:var S=_;switch(C){case"bigint":u=r.EA,S=_.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+C);S=null;break;case"undefined":return T([r.Zn],_)}return T([u,S],_);case r.tF:if(C){;return T([C,function(e){if(Array.isArray(e))return s(e)}(I=_)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(I)||n(I)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()],_)}var D=[],N=T([u,D],_),f=!0,l=!1,R=void 0;try{for(var I,g,m=_[Symbol.iterator]();!(f=(g=m.next()).done);f=!0){var p=g.value;D.push(A(p))}}catch(e){l=!0,R=e}finally{try{!f&&null!=m.return&&m.return()}finally{if(l)throw R}}return N;case r.$l:if(C)switch(C){case"BigInt":return T([C,_.toString()],_);case"Boolean":case"Number":case"String":return T([C,_.valueOf()],_)}if(t&&"toJSON"in _)return A(_.toJSON());var O=[],d=T([u,O],_),k=!0,H=!1,P=void 0;try{for(var y,b=E(_)[Symbol.iterator]();!(k=(y=b.next()).done);k=!0){var L=y.value;(e||!o(c(_[L])))&&O.push([A(L),A(_[L])])}}catch(e){H=!0,P=e}finally{try{!k&&null!=b.return&&b.return()}finally{if(H)throw P}}return d;case r.Hu:return T([u,_.toISOString()],_);case r.o1:return T([u,{source:_.source,flags:_.flags}],_);case r.nN:var U=[],F=T([u,U],_),M=!0,v=!1,B=void 0;try{for(var w,G=_[Symbol.iterator]();!(M=(w=G.next()).done);M=!0){var Y=i(w.value,2),Q=Y[0],x=Y[1];(e||!(o(c(Q))||o(c(x))))&&U.push([A(Q),A(x)])}}catch(e){v=!0,B=e}finally{try{!M&&null!=G.return&&G.return()}finally{if(v)throw B}}return F;case r.JH:var V=[],W=T([u,V],_),K=!0,j=!1,X=void 0;try{for(var $,z=_[Symbol.iterator]();!(K=($=z.next()).done);K=!0){var Z=$.value;(e||!o(c(Z)))&&V.push(A(Z))}}catch(e){j=!0,X=e}finally{try{!K&&null!=z.return&&z.return()}finally{if(j)throw X}}return W}return T([u,{name:C,message:_.message}],_)};return A},A=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t.json,r=t.lossy,s=[];return T(!(a||r),!!a,new Map,s)(e),s}},61260:function(){"use strict";var e=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);function t(e,t){return function(a){for(var r,s=0,i="";r=e.exec(a);)s!==r.index&&(i+=a.substring(s,r.index)),i+=t.get(r[0].charCodeAt(0)),s=r.index+1;return i+a.substring(s)}}String.prototype.codePointAt,t(/[&<>'"]/g,e),t(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),t(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))},33459:function(e,t,a){"use strict";a.d(t,{v:function(){return o}});var r=a("45870"),s=a("9424"),i=a("11756"),n=a("49780"),_=a("38531"),E=new Set(["menu","submit","reset","button"]),c={}.hasOwnProperty;function o(e,t,a){var s=a&&function(e){for(var t={},a=-1;++a<e.length;)t[e[a].toLowerCase()]=e[a];return t}(a);return function(a,o){for(var A,h,u=arguments.length,C=Array(u>2?u-2:0),S=2;S<u;S++)C[S-2]=arguments[S];var D=-1;if(null==a)A={type:"root",children:[]},C.unshift(o);else if((A=(0,i.r)(a,t)).tagName=A.tagName.toLowerCase(),s&&c.call(s,A.tagName)&&(A.tagName=s[A.tagName]),function(e,t){return!(null==e||"object"!=typeof e||Array.isArray(e))&&("input"===t||!e.type||"string"!=typeof e.type||!("children"in e&&Array.isArray(e.children))&&("button"===t?E.has(e.type.toLowerCase()):!("value"in e)))}(o,A.tagName))for(h in o)c.call(o,h)&&function(e,t,a,s){var i,E=(0,r.s)(e,a),o=-1;if(null!=s){if("number"==typeof s){if(Number.isNaN(s))return;i=s}else i="boolean"==typeof s?s:"string"==typeof s?E.spaceSeparated?(0,n.Q)(s):E.commaSeparated?(0,_.Q)(s):E.commaOrSpaceSeparated?(0,n.Q)((0,_.Q)(s).join(" ")):T(E,E.property,s):Array.isArray(s)?s.concat():"style"===E.property?function(e){var t,a=[];for(t in e)c.call(e,t)&&a.push([t,e[t]].join(": "));return a.join("; ")}(s):String(s);if(Array.isArray(i)){for(var A=[];++o<i.length;)A[o]=T(E,E.property,i[o]);i=A}"className"===E.property&&Array.isArray(t.className)&&(i=t.className.concat(i)),t[E.property]=i}}(e,A.properties,h,o[h]);else C.unshift(o);for(;++D<C.length;)(function e(t,a){var r=-1;if(null==a);else if("string"==typeof a||"number"==typeof a)t.push({type:"text",value:String(a)});else if(Array.isArray(a))for(;++r<a.length;)e(t,a[r]);else if("object"==typeof a&&"type"in a)"root"===a.type?e(t,a.children):t.push(a);else throw Error("Expected node, nodes, or string, got `"+a+"`")})(A.children,C[D]);return"element"===A.type&&"template"===A.tagName&&(A.content={type:"root",children:A.children},A.children=[]),A}}function T(e,t,a){if("string"==typeof a){if(e.number&&a&&!Number.isNaN(Number(a)))return Number(a);if((e.boolean||e.overloadedBoolean)&&(""===a||(0,s.F)(a)===(0,s.F)(t)))return!0}return a}},45568:function(e,t,a){"use strict";function r(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}a.d(t,{Z:function(){return r}})},57042:function(e,t,a){"use strict";a.d(t,{Y:function(){return s}});var r=a("68695");function s(e,t,a){for(var s=e.value||"",i="`",n=-1;RegExp("(^|[^`])"+i+"([^`]|$)").test(s);)i+="`";for(/[^ \r\n]/.test(s)&&(/^[ \r\n]/.test(s)&&/[ \r\n]$/.test(s)||/^`|`$/.test(s))&&(s=" "+s+" ");++n<a.unsafe.length;){var _=a.unsafe[n],E=(0,r.T)(_),c=void 0;if(!!_.atBreak)for(;c=E.exec(s);){var o=c.index;10===s.charCodeAt(o)&&13===s.charCodeAt(o-1)&&o--,s=s.slice(0,o)+" "+s.slice(c.index+1)}}return i+s+i}s.peek=function(){return"`"}},38619:function(e,t,a){"use strict";a.d(t,{AF:function(){return c},Av:function(){return _},B8:function(){return C},Ch:function(){return T},H$:function(){return i},Xh:function(){return u},jv:function(){return s},n9:function(){return n},pY:function(){return E},sR:function(){return o},xz:function(){return h},z3:function(){return A}});var r=a("22522"),s=S(/[A-Za-z]/),i=S(/[\dA-Za-z]/),n=S(/[#-'*+\--9=?A-Z^-~]/);function _(e){return null!==e&&(e<32||127===e)}var E=S(/\d/),c=S(/[\dA-Fa-f]/),o=S(/[!-/:-@[-`{-~]/);function T(e){return null!==e&&e<-2}function A(e){return null!==e&&(e<0||32===e)}function h(e){return -2===e||-1===e||32===e}var u=S(r.N),C=S(/\s/);function S(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}},80258:function(e,t,a){"use strict";function r(e,t,a){for(var r=[],s=-1;++s<e.length;){var i=e[s].resolveAll;i&&!r.includes(i)&&(t=i(t,a),r.push(i))}return t}a.d(t,{C:function(){return r}})},94923:function(e,t,a){"use strict";a.d(t,{P:function(){return h},d:function(){return g}});var r,s,i=a("52365"),n=a("14712"),_=a("53061"),E=a("33206"),c=a("15989"),o=a("24307");function T(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var A=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]]);(r=s||(s={}))[r.DATA=0]="DATA",r[r.RCDATA=1]="RCDATA",r[r.RAWTEXT=2]="RAWTEXT",r[r.SCRIPT_DATA=3]="SCRIPT_DATA",r[r.PLAINTEXT=4]="PLAINTEXT",r[r.TAG_OPEN=5]="TAG_OPEN",r[r.END_TAG_OPEN=6]="END_TAG_OPEN",r[r.TAG_NAME=7]="TAG_NAME",r[r.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",r[r.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",r[r.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",r[r.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",r[r.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",r[r.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",r[r.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",r[r.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",r[r.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",r[r.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",r[r.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",r[r.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",r[r.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",r[r.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",r[r.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",r[r.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",r[r.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",r[r.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",r[r.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",r[r.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",r[r.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",r[r.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",r[r.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",r[r.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",r[r.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",r[r.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",r[r.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",r[r.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",r[r.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",r[r.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",r[r.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",r[r.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",r[r.BOGUS_COMMENT=40]="BOGUS_COMMENT",r[r.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",r[r.COMMENT_START=42]="COMMENT_START",r[r.COMMENT_START_DASH=43]="COMMENT_START_DASH",r[r.COMMENT=44]="COMMENT",r[r.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",r[r.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",r[r.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",r[r.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",r[r.COMMENT_END_DASH=49]="COMMENT_END_DASH",r[r.COMMENT_END=50]="COMMENT_END",r[r.COMMENT_END_BANG=51]="COMMENT_END_BANG",r[r.DOCTYPE=52]="DOCTYPE",r[r.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",r[r.DOCTYPE_NAME=54]="DOCTYPE_NAME",r[r.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",r[r.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",r[r.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",r[r.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",r[r.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",r[r.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",r[r.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",r[r.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",r[r.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",r[r.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",r[r.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",r[r.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",r[r.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",r[r.CDATA_SECTION=68]="CDATA_SECTION",r[r.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",r[r.CDATA_SECTION_END=70]="CDATA_SECTION_END",r[r.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",r[r.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",r[r.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",r[r.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",r[r.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",r[r.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",r[r.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",r[r.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END";var h={DATA:s.DATA,RCDATA:s.RCDATA,RAWTEXT:s.RAWTEXT,SCRIPT_DATA:s.SCRIPT_DATA,PLAINTEXT:s.PLAINTEXT,CDATA_SECTION:s.CDATA_SECTION};function u(e){return e>=n.gH.DIGIT_0&&e<=n.gH.DIGIT_9}function C(e){return e>=n.gH.LATIN_CAPITAL_A&&e<=n.gH.LATIN_CAPITAL_Z}function S(e){var t;return(t=e)>=n.gH.LATIN_SMALL_A&&t<=n.gH.LATIN_SMALL_Z||C(e)}function D(e){return S(e)||u(e)}function N(e){return e>=n.gH.LATIN_CAPITAL_A&&e<=n.gH.LATIN_CAPITAL_F}function f(e){return e>=n.gH.LATIN_SMALL_A&&e<=n.gH.LATIN_SMALL_F}function l(e){return e+32}function R(e){return e===n.gH.SPACE||e===n.gH.LINE_FEED||e===n.gH.TABULATION||e===n.gH.FORM_FEED}function I(e){return R(e)||e===n.gH.SOLIDUS||e===n.gH.GREATER_THAN_SIGN}var g=function(){var e,t,a;function r(e,t){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,r),this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=s.DATA,this.returnState=s.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new i.A(t),this.currentLocation=this.getCurrentLocation(-1)}return e=r,t=[{key:"_err",value:function(e){var t,a;null===(a=(t=this.handler).onParseError)||void 0===a||a.call(t,this.preprocessor.getError(e))}},{key:"getCurrentLocation",value:function(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}},{key:"_runParsingLoop",value:function(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;var e=this._consume();!this._ensureHibernation()&&this._callState(e)}this.inLoop=!1}}},{key:"pause",value:function(){this.paused=!0}},{key:"resume",value:function(e){if(!this.paused)throw Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),!this.paused&&(null==e||e()))}},{key:"write",value:function(e,t,a){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),!this.paused&&(null==a||a())}},{key:"insertHtmlAtCurrentPos",value:function(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}},{key:"_ensureHibernation",value:function(){return!!this.preprocessor.endOfChunkHit&&(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0)}},{key:"_consume",value:function(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}},{key:"_unconsume",value:function(e){this.consumedAfterSnapshot-=e,this.preprocessor.retreat(e)}},{key:"_reconsumeInState",value:function(e,t){this.state=e,this._callState(t)}},{key:"_advanceBy",value:function(e){this.consumedAfterSnapshot+=e;for(var t=0;t<e;t++)this.preprocessor.advance()}},{key:"_consumeSequenceIfMatch",value:function(e,t){return!!this.preprocessor.startsWith(e,t)&&(this._advanceBy(e.length-1),!0)}},{key:"_createStartTagToken",value:function(){this.currentToken={type:_.i.START_TAG,tagName:"",tagID:o.LB.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}},{key:"_createEndTagToken",value:function(){this.currentToken={type:_.i.END_TAG,tagName:"",tagID:o.LB.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}},{key:"_createCommentToken",value:function(e){this.currentToken={type:_.i.COMMENT,data:"",location:this.getCurrentLocation(e)}}},{key:"_createDoctypeToken",value:function(e){this.currentToken={type:_.i.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}},{key:"_createCharacterToken",value:function(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}},{key:"_createAttr",value:function(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}},{key:"_leaveAttrName",value:function(){var e,t,a=this.currentToken;null===(0,_.F)(a,this.currentAttr.name)?(a.attrs.push(this.currentAttr),a.location&&this.currentLocation&&((null!==(e=(t=a.location).attrs)&&void 0!==e?e:t.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue())):this._err(c.w.duplicateAttribute)}},{key:"_leaveAttrValue",value:function(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}},{key:"prepareToken",value:function(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)}},{key:"emitCurrentTagToken",value:function(){var e=this.currentToken;this.prepareToken(e),e.tagID=(0,o.OL)(e.tagName),e.type===_.i.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(c.w.endTagWithAttributes),e.selfClosing&&this._err(c.w.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}},{key:"emitCurrentComment",value:function(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}},{key:"emitCurrentDoctype",value:function(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}},{key:"_emitCurrentCharacterToken",value:function(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 _.i.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case _.i.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case _.i.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}},{key:"_emitEOFToken",value:function(){var e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:_.i.EOF,location:e}),this.active=!1}},{key:"_appendCharToCurrentCharacterToken",value:function(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type!==e)this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();else{this.currentCharacterToken.chars+=t;return}}this._createCharacterToken(e,t)}},{key:"_emitCodePoint",value:function(e){var t=R(e)?_.i.WHITESPACE_CHARACTER:e===n.gH.NULL?_.i.NULL_CHARACTER:_.i.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}},{key:"_emitChars",value:function(e){this._appendCharToCurrentCharacterToken(_.i.CHARACTER,e)}},{key:"_matchNamedCharacterReference",value:function(e){for(var t=null,a=0,r=!1,s=0,i=E.HP["0"];s>=0&&!((s=(0,E.Go)(E.HP,i,s+1,e))<0);e=this._consume()){;a+=1;var _=(i=E.HP[s])&E.ge.VALUE_LENGTH;if(_){var o,T=(_>>14)-1;if(e!==n.gH.SEMICOLON&&this._isCharacterReferenceInAttribute()&&((o=this.preprocessor.peek(1))===n.gH.EQUALS_SIGN||D(o)))t=[n.gH.AMPERSAND],s+=T;else t=0===T?[E.HP[s]&~E.ge.VALUE_LENGTH]:1===T?[E.HP[++s]]:[E.HP[++s],E.HP[++s]],a=0,r=e!==n.gH.SEMICOLON;if(0===T){this._consume();break}}}return this._unconsume(a),r&&!this.preprocessor.endOfChunkHit&&this._err(c.w.missingSemicolonAfterCharacterReference),this._unconsume(1),t}},{key:"_isCharacterReferenceInAttribute",value:function(){return this.returnState===s.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===s.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===s.ATTRIBUTE_VALUE_UNQUOTED}},{key:"_flushCodePointConsumedAsCharacterReference",value:function(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}},{key:"_callState",value:function(e){switch(this.state){case s.DATA:this._stateData(e);break;case s.RCDATA:this._stateRcdata(e);break;case s.RAWTEXT:this._stateRawtext(e);break;case s.SCRIPT_DATA:this._stateScriptData(e);break;case s.PLAINTEXT:this._statePlaintext(e);break;case s.TAG_OPEN:this._stateTagOpen(e);break;case s.END_TAG_OPEN:this._stateEndTagOpen(e);break;case s.TAG_NAME:this._stateTagName(e);break;case s.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case s.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case s.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case s.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case s.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case s.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case s.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case s.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case s.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case s.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case s.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case s.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case s.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case s.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case s.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case s.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case s.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case s.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case s.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case s.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case s.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case s.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case s.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case s.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case s.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case s.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case s.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case s.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case s.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case s.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case s.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case s.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case s.BOGUS_COMMENT:this._stateBogusComment(e);break;case s.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case s.COMMENT_START:this._stateCommentStart(e);break;case s.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case s.COMMENT:this._stateComment(e);break;case s.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case s.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case s.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case s.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case s.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case s.COMMENT_END:this._stateCommentEnd(e);break;case s.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case s.DOCTYPE:this._stateDoctype(e);break;case s.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case s.DOCTYPE_NAME:this._stateDoctypeName(e);break;case s.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case s.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case s.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case s.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case s.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case s.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case s.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case s.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case s.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case s.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case s.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case s.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case s.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case s.CDATA_SECTION:this._stateCdataSection(e);break;case s.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case s.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case s.CHARACTER_REFERENCE:this._stateCharacterReference(e);break;case s.NAMED_CHARACTER_REFERENCE:this._stateNamedCharacterReference(e);break;case s.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;case s.NUMERIC_CHARACTER_REFERENCE:this._stateNumericCharacterReference(e);break;case s.HEXADEMICAL_CHARACTER_REFERENCE_START:this._stateHexademicalCharacterReferenceStart(e);break;case s.HEXADEMICAL_CHARACTER_REFERENCE:this._stateHexademicalCharacterReference(e);break;case s.DECIMAL_CHARACTER_REFERENCE:this._stateDecimalCharacterReference(e);break;case s.NUMERIC_CHARACTER_REFERENCE_END:this._stateNumericCharacterReferenceEnd(e);break;default:throw Error("Unknown state")}}},{key:"_stateData",value:function(e){switch(e){case n.gH.LESS_THAN_SIGN:this.state=s.TAG_OPEN;break;case n.gH.AMPERSAND:this.returnState=s.DATA,this.state=s.CHARACTER_REFERENCE;break;case n.gH.NULL:this._err(c.w.unexpectedNullCharacter),this._emitCodePoint(e);break;case n.gH.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}},{key:"_stateRcdata",value:function(e){switch(e){case n.gH.AMPERSAND:this.returnState=s.RCDATA,this.state=s.CHARACTER_REFERENCE;break;case n.gH.LESS_THAN_SIGN:this.state=s.RCDATA_LESS_THAN_SIGN;break;case n.gH.NULL:this._err(c.w.unexpectedNullCharacter),this._emitChars(n.wV);break;case n.gH.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}},{key:"_stateRawtext",value:function(e){switch(e){case n.gH.LESS_THAN_SIGN:this.state=s.RAWTEXT_LESS_THAN_SIGN;break;case n.gH.NULL:this._err(c.w.unexpectedNullCharacter),this._emitChars(n.wV);break;case n.gH.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}},{key:"_stateScriptData",value:function(e){switch(e){case n.gH.LESS_THAN_SIGN:this.state=s.SCRIPT_DATA_LESS_THAN_SIGN;break;case n.gH.NULL:this._err(c.w.unexpectedNullCharacter),this._emitChars(n.wV);break;case n.gH.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}},{key:"_statePlaintext",value:function(e){switch(e){case n.gH.NULL:this._err(c.w.unexpectedNullCharacter),this._emitChars(n.wV);break;case n.gH.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}},{key:"_stateTagOpen",value:function(e){if(S(e))this._createStartTagToken(),this.state=s.TAG_NAME,this._stateTagName(e);else switch(e){case n.gH.EXCLAMATION_MARK:this.state=s.MARKUP_DECLARATION_OPEN;break;case n.gH.SOLIDUS:this.state=s.END_TAG_OPEN;break;case n.gH.QUESTION_MARK:this._err(c.w.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=s.BOGUS_COMMENT,this._stateBogusComment(e);break;case n.gH.EOF:this._err(c.w.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(c.w.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=s.DATA,this._stateData(e)}}},{key:"_stateEndTagOpen",value:function(e){if(S(e))this._createEndTagToken(),this.state=s.TAG_NAME,this._stateTagName(e);else switch(e){case n.gH.GREATER_THAN_SIGN:this._err(c.w.missingEndTagName),this.state=s.DATA;break;case n.gH.EOF:this._err(c.w.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(c.w.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=s.BOGUS_COMMENT,this._stateBogusComment(e)}}},{key:"_stateTagName",value:function(e){var t=this.currentToken;switch(e){case n.gH.SPACE:case n.gH.LINE_FEED:case n.gH.TABULATION:case n.gH.FORM_FEED:this.state=s.BEFORE_ATTRIBUTE_NAME;break;case n.gH.SOLIDUS:this.state=s.SELF_CLOSING_START_TAG;break;case n.gH.GREATER_THAN_SIGN:this.state=s.DATA,this.emitCurrentTagToken();break;case n.gH.NULL:this._err(c.w.unexpectedNullCharacter),t.tagName+=n.wV;break;case n.gH.EOF:this._err(c.w.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(C(e)?e+32:e)}}},{key:"_stateRcdataLessThanSign",value:function(e){e===n.gH.SOLIDUS?this.state=s.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=s.RCDATA,this._stateRcdata(e))}},{key:"_stateRcdataEndTagOpen",value:function(e){S(e)?(this.state=s.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=s.RCDATA,this._stateRcdata(e))}},{key:"handleSpecialEndTag",value:function(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 n.gH.SPACE:case n.gH.LINE_FEED:case n.gH.TABULATION:case n.gH.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=s.BEFORE_ATTRIBUTE_NAME,!1;case n.gH.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=s.SELF_CLOSING_START_TAG,!1;case n.gH.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=s.DATA,!1;default:return!this._ensureHibernation()}}},{key:"_stateRcdataEndTagName",value:function(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=s.RCDATA,this._stateRcdata(e))}},{key:"_stateRawtextLessThanSign",value:function(e){e===n.gH.SOLIDUS?this.state=s.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=s.RAWTEXT,this._stateRawtext(e))}},{key:"_stateRawtextEndTagOpen",value:function(e){S(e)?(this.state=s.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=s.RAWTEXT,this._stateRawtext(e))}},{key:"_stateRawtextEndTagName",value:function(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=s.RAWTEXT,this._stateRawtext(e))}},{key:"_stateScriptDataLessThanSign",value:function(e){switch(e){case n.gH.SOLIDUS:this.state=s.SCRIPT_DATA_END_TAG_OPEN;break;case n.gH.EXCLAMATION_MARK:this.state=s.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=s.SCRIPT_DATA,this._stateScriptData(e)}}},{key:"_stateScriptDataEndTagOpen",value:function(e){S(e)?(this.state=s.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=s.SCRIPT_DATA,this._stateScriptData(e))}},{key:"_stateScriptDataEndTagName",value:function(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=s.SCRIPT_DATA,this._stateScriptData(e))}},{key:"_stateScriptDataEscapeStart",value:function(e){e===n.gH.HYPHEN_MINUS?(this.state=s.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=s.SCRIPT_DATA,this._stateScriptData(e))}},{key:"_stateScriptDataEscapeStartDash",value:function(e){e===n.gH.HYPHEN_MINUS?(this.state=s.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=s.SCRIPT_DATA,this._stateScriptData(e))}},{key:"_stateScriptDataEscaped",value:function(e){switch(e){case n.gH.HYPHEN_MINUS:this.state=s.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case n.gH.LESS_THAN_SIGN:this.state=s.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case n.gH.NULL:this._err(c.w.unexpectedNullCharacter),this._emitChars(n.wV);break;case n.gH.EOF:this._err(c.w.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}},{key:"_stateScriptDataEscapedDash",value:function(e){switch(e){case n.gH.HYPHEN_MINUS:this.state=s.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case n.gH.LESS_THAN_SIGN:this.state=s.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case n.gH.NULL:this._err(c.w.unexpectedNullCharacter),this.state=s.SCRIPT_DATA_ESCAPED,this._emitChars(n.wV);break;case n.gH.EOF:this._err(c.w.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=s.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}},{key:"_stateScriptDataEscapedDashDash",value:function(e){switch(e){case n.gH.HYPHEN_MINUS:this._emitChars("-");break;case n.gH.LESS_THAN_SIGN:this.state=s.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case n.gH.GREATER_THAN_SIGN:this.state=s.SCRIPT_DATA,this._emitChars(">");break;case n.gH.NULL:this._err(c.w.unexpectedNullCharacter),this.state=s.SCRIPT_DATA_ESCAPED,this._emitChars(n.wV);break;case n.gH.EOF:this._err(c.w.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=s.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}},{key:"_stateScriptDataEscapedLessThanSign",value:function(e){e===n.gH.SOLIDUS?this.state=s.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:S(e)?(this._emitChars("<"),this.state=s.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=s.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}},{key:"_stateScriptDataEscapedEndTagOpen",value:function(e){S(e)?(this.state=s.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=s.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}},{key:"_stateScriptDataEscapedEndTagName",value:function(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=s.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}},{key:"_stateScriptDataDoubleEscapeStart",value:function(e){if(this.preprocessor.startsWith(n.S8.SCRIPT,!1)&&I(this.preprocessor.peek(n.S8.SCRIPT.length))){this._emitCodePoint(e);for(var t=0;t<n.S8.SCRIPT.length;t++)this._emitCodePoint(this._consume());this.state=s.SCRIPT_DATA_DOUBLE_ESCAPED}else!this._ensureHibernation()&&(this.state=s.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}},{key:"_stateScriptDataDoubleEscaped",value:function(e){switch(e){case n.gH.HYPHEN_MINUS:this.state=s.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case n.gH.LESS_THAN_SIGN:this.state=s.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case n.gH.NULL:this._err(c.w.unexpectedNullCharacter),this._emitChars(n.wV);break;case n.gH.EOF:this._err(c.w.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}},{key:"_stateScriptDataDoubleEscapedDash",value:function(e){switch(e){case n.gH.HYPHEN_MINUS:this.state=s.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case n.gH.LESS_THAN_SIGN:this.state=s.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case n.gH.NULL:this._err(c.w.unexpectedNullCharacter),this.state=s.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(n.wV);break;case n.gH.EOF:this._err(c.w.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=s.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}},{key:"_stateScriptDataDoubleEscapedDashDash",value:function(e){switch(e){case n.gH.HYPHEN_MINUS:this._emitChars("-");break;case n.gH.LESS_THAN_SIGN:this.state=s.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case n.gH.GREATER_THAN_SIGN:this.state=s.SCRIPT_DATA,this._emitChars(">");break;case n.gH.NULL:this._err(c.w.unexpectedNullCharacter),this.state=s.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(n.wV);break;case n.gH.EOF:this._err(c.w.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=s.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}},{key:"_stateScriptDataDoubleEscapedLessThanSign",value:function(e){e===n.gH.SOLIDUS?(this.state=s.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=s.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}},{key:"_stateScriptDataDoubleEscapeEnd",value:function(e){if(this.preprocessor.startsWith(n.S8.SCRIPT,!1)&&I(this.preprocessor.peek(n.S8.SCRIPT.length))){this._emitCodePoint(e);for(var t=0;t<n.S8.SCRIPT.length;t++)this._emitCodePoint(this._consume());this.state=s.SCRIPT_DATA_ESCAPED}else!this._ensureHibernation()&&(this.state=s.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}},{key:"_stateBeforeAttributeName",value:function(e){switch(e){case n.gH.SPACE:case n.gH.LINE_FEED:case n.gH.TABULATION:case n.gH.FORM_FEED:break;case n.gH.SOLIDUS:case n.gH.GREATER_THAN_SIGN:case n.gH.EOF:this.state=s.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case n.gH.EQUALS_SIGN:this._err(c.w.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=s.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=s.ATTRIBUTE_NAME,this._stateAttributeName(e)}}},{key:"_stateAttributeName",value:function(e){switch(e){case n.gH.SPACE:case n.gH.LINE_FEED:case n.gH.TABULATION:case n.gH.FORM_FEED:case n.gH.SOLIDUS:case n.gH.GREATER_THAN_SIGN:case n.gH.EOF:this._leaveAttrName(),this.state=s.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case n.gH.EQUALS_SIGN:this._leaveAttrName(),this.state=s.BEFORE_ATTRIBUTE_VALUE;break;case n.gH.QUOTATION_MARK:case n.gH.APOSTROPHE:case n.gH.LESS_THAN_SIGN:this._err(c.w.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case n.gH.NULL:this._err(c.w.unexpectedNullCharacter),this.currentAttr.name+=n.wV;break;default:this.currentAttr.name+=String.fromCodePoint(C(e)?e+32:e)}}},{key:"_stateAfterAttributeName",value:function(e){switch(e){case n.gH.SPACE:case n.gH.LINE_FEED:case n.gH.TABULATION:case n.gH.FORM_FEED:break;case n.gH.SOLIDUS:this.state=s.SELF_CLOSING_START_TAG;break;case n.gH.EQUALS_SIGN:this.state=s.BEFORE_ATTRIBUTE_VALUE;break;case n.gH.GREATER_THAN_SIGN:this.state=s.DATA,this.emitCurrentTagToken();break;case n.gH.EOF:this._err(c.w.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=s.ATTRIBUTE_NAME,this._stateAttributeName(e)}}},{key:"_stateBeforeAttributeValue",value:function(e){switch(e){case n.gH.SPACE:case n.gH.LINE_FEED:case n.gH.TABULATION:case n.gH.FORM_FEED:break;case n.gH.QUOTATION_MARK:this.state=s.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case n.gH.APOSTROPHE:this.state=s.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case n.gH.GREATER_THAN_SIGN:this._err(c.w.missingAttributeValue),this.state=s.DATA,this.emitCurrentTagToken();break;default:this.state=s.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}},{key:"_stateAttributeValueDoubleQuoted",value:function(e){switch(e){case n.gH.QUOTATION_MARK:this.state=s.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case n.gH.AMPERSAND:this.returnState=s.ATTRIBUTE_VALUE_DOUBLE_QUOTED,this.state=s.CHARACTER_REFERENCE;break;case n.gH.NULL:this._err(c.w.unexpectedNullCharacter),this.currentAttr.value+=n.wV;break;case n.gH.EOF:this._err(c.w.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}},{key:"_stateAttributeValueSingleQuoted",value:function(e){switch(e){case n.gH.APOSTROPHE:this.state=s.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case n.gH.AMPERSAND:this.returnState=s.ATTRIBUTE_VALUE_SINGLE_QUOTED,this.state=s.CHARACTER_REFERENCE;break;case n.gH.NULL:this._err(c.w.unexpectedNullCharacter),this.currentAttr.value+=n.wV;break;case n.gH.EOF:this._err(c.w.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}},{key:"_stateAttributeValueUnquoted",value:function(e){switch(e){case n.gH.SPACE:case n.gH.LINE_FEED:case n.gH.TABULATION:case n.gH.FORM_FEED:this._leaveAttrValue(),this.state=s.BEFORE_ATTRIBUTE_NAME;break;case n.gH.AMPERSAND:this.returnState=s.ATTRIBUTE_VALUE_UNQUOTED,this.state=s.CHARACTER_REFERENCE;break;case n.gH.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=s.DATA,this.emitCurrentTagToken();break;case n.gH.NULL:this._err(c.w.unexpectedNullCharacter),this.currentAttr.value+=n.wV;break;case n.gH.QUOTATION_MARK:case n.gH.APOSTROPHE:case n.gH.LESS_THAN_SIGN:case n.gH.EQUALS_SIGN:case n.gH.GRAVE_ACCENT:this._err(c.w.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case n.gH.EOF:this._err(c.w.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}},{key:"_stateAfterAttributeValueQuoted",value:function(e){switch(e){case n.gH.SPACE:case n.gH.LINE_FEED:case n.gH.TABULATION:case n.gH.FORM_FEED:this._leaveAttrValue(),this.state=s.BEFORE_ATTRIBUTE_NAME;break;case n.gH.SOLIDUS:this._leaveAttrValue(),this.state=s.SELF_CLOSING_START_TAG;break;case n.gH.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=s.DATA,this.emitCurrentTagToken();break;case n.gH.EOF:this._err(c.w.eofInTag),this._emitEOFToken();break;default:this._err(c.w.missingWhitespaceBetweenAttributes),this.state=s.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}},{key:"_stateSelfClosingStartTag",value:function(e){switch(e){case n.gH.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=s.DATA,this.emitCurrentTagToken();break;case n.gH.EOF:this._err(c.w.eofInTag),this._emitEOFToken();break;default:this._err(c.w.unexpectedSolidusInTag),this.state=s.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}},{key:"_stateBogusComment",value:function(e){var t=this.currentToken;switch(e){case n.gH.GREATER_THAN_SIGN:this.state=s.DATA,this.emitCurrentComment(t);break;case n.gH.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case n.gH.NULL:this._err(c.w.unexpectedNullCharacter),t.data+=n.wV;break;default:t.data+=String.fromCodePoint(e)}}},{key:"_stateMarkupDeclarationOpen",value:function(e){this._consumeSequenceIfMatch(n.S8.DASH_DASH,!0)?(this._createCommentToken(n.S8.DASH_DASH.length+1),this.state=s.COMMENT_START):this._consumeSequenceIfMatch(n.S8.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(n.S8.DOCTYPE.length+1),this.state=s.DOCTYPE):this._consumeSequenceIfMatch(n.S8.CDATA_START,!0)?this.inForeignNode?this.state=s.CDATA_SECTION:(this._err(c.w.cdataInHtmlContent),this._createCommentToken(n.S8.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=s.BOGUS_COMMENT):!this._ensureHibernation()&&(this._err(c.w.incorrectlyOpenedComment),this._createCommentToken(2),this.state=s.BOGUS_COMMENT,this._stateBogusComment(e))}},{key:"_stateCommentStart",value:function(e){switch(e){case n.gH.HYPHEN_MINUS:this.state=s.COMMENT_START_DASH;break;case n.gH.GREATER_THAN_SIGN:this._err(c.w.abruptClosingOfEmptyComment),this.state=s.DATA;var t=this.currentToken;this.emitCurrentComment(t);break;default:this.state=s.COMMENT,this._stateComment(e)}}},{key:"_stateCommentStartDash",value:function(e){var t=this.currentToken;switch(e){case n.gH.HYPHEN_MINUS:this.state=s.COMMENT_END;break;case n.gH.GREATER_THAN_SIGN:this._err(c.w.abruptClosingOfEmptyComment),this.state=s.DATA,this.emitCurrentComment(t);break;case n.gH.EOF:this._err(c.w.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=s.COMMENT,this._stateComment(e)}}},{key:"_stateComment",value:function(e){var t=this.currentToken;switch(e){case n.gH.HYPHEN_MINUS:this.state=s.COMMENT_END_DASH;break;case n.gH.LESS_THAN_SIGN:t.data+="<",this.state=s.COMMENT_LESS_THAN_SIGN;break;case n.gH.NULL:this._err(c.w.unexpectedNullCharacter),t.data+=n.wV;break;case n.gH.EOF:this._err(c.w.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}},{key:"_stateCommentLessThanSign",value:function(e){var t=this.currentToken;switch(e){case n.gH.EXCLAMATION_MARK:t.data+="!",this.state=s.COMMENT_LESS_THAN_SIGN_BANG;break;case n.gH.LESS_THAN_SIGN:t.data+="<";break;default:this.state=s.COMMENT,this._stateComment(e)}}},{key:"_stateCommentLessThanSignBang",value:function(e){e===n.gH.HYPHEN_MINUS?this.state=s.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=s.COMMENT,this._stateComment(e))}},{key:"_stateCommentLessThanSignBangDash",value:function(e){e===n.gH.HYPHEN_MINUS?this.state=s.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=s.COMMENT_END_DASH,this._stateCommentEndDash(e))}},{key:"_stateCommentLessThanSignBangDashDash",value:function(e){e!==n.gH.GREATER_THAN_SIGN&&e!==n.gH.EOF&&this._err(c.w.nestedComment),this.state=s.COMMENT_END,this._stateCommentEnd(e)}},{key:"_stateCommentEndDash",value:function(e){var t=this.currentToken;switch(e){case n.gH.HYPHEN_MINUS:this.state=s.COMMENT_END;break;case n.gH.EOF:this._err(c.w.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=s.COMMENT,this._stateComment(e)}}},{key:"_stateCommentEnd",value:function(e){var t=this.currentToken;switch(e){case n.gH.GREATER_THAN_SIGN:this.state=s.DATA,this.emitCurrentComment(t);break;case n.gH.EXCLAMATION_MARK:this.state=s.COMMENT_END_BANG;break;case n.gH.HYPHEN_MINUS:t.data+="-";break;case n.gH.EOF:this._err(c.w.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=s.COMMENT,this._stateComment(e)}}},{key:"_stateCommentEndBang",value:function(e){var t=this.currentToken;switch(e){case n.gH.HYPHEN_MINUS:t.data+="--!",this.state=s.COMMENT_END_DASH;break;case n.gH.GREATER_THAN_SIGN:this._err(c.w.incorrectlyClosedComment),this.state=s.DATA,this.emitCurrentComment(t);break;case n.gH.EOF:this._err(c.w.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=s.COMMENT,this._stateComment(e)}}},{key:"_stateDoctype",value:function(e){switch(e){case n.gH.SPACE:case n.gH.LINE_FEED:case n.gH.TABULATION:case n.gH.FORM_FEED:this.state=s.BEFORE_DOCTYPE_NAME;break;case n.gH.GREATER_THAN_SIGN:this.state=s.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case n.gH.EOF:this._err(c.w.eofInDoctype),this._createDoctypeToken(null);var t=this.currentToken;t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(c.w.missingWhitespaceBeforeDoctypeName),this.state=s.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}},{key:"_stateBeforeDoctypeName",value:function(e){if(C(e))this._createDoctypeToken(String.fromCharCode(e+32)),this.state=s.DOCTYPE_NAME;else switch(e){case n.gH.SPACE:case n.gH.LINE_FEED:case n.gH.TABULATION:case n.gH.FORM_FEED:break;case n.gH.NULL:this._err(c.w.unexpectedNullCharacter),this._createDoctypeToken(n.wV),this.state=s.DOCTYPE_NAME;break;case n.gH.GREATER_THAN_SIGN:this._err(c.w.missingDoctypeName),this._createDoctypeToken(null);var t=this.currentToken;t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=s.DATA;break;case n.gH.EOF:this._err(c.w.eofInDoctype),this._createDoctypeToken(null);var a=this.currentToken;a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break;default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=s.DOCTYPE_NAME}}},{key:"_stateDoctypeName",value:function(e){var t=this.currentToken;switch(e){case n.gH.SPACE:case n.gH.LINE_FEED:case n.gH.TABULATION:case n.gH.FORM_FEED:this.state=s.AFTER_DOCTYPE_NAME;break;case n.gH.GREATER_THAN_SIGN:this.state=s.DATA,this.emitCurrentDoctype(t);break;case n.gH.NULL:this._err(c.w.unexpectedNullCharacter),t.name+=n.wV;break;case n.gH.EOF:this._err(c.w.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(C(e)?e+32:e)}}},{key:"_stateAfterDoctypeName",value:function(e){var t=this.currentToken;switch(e){case n.gH.SPACE:case n.gH.LINE_FEED:case n.gH.TABULATION:case n.gH.FORM_FEED:break;case n.gH.GREATER_THAN_SIGN:this.state=s.DATA,this.emitCurrentDoctype(t);break;case n.gH.EOF:this._err(c.w.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch(n.S8.PUBLIC,!1)?this.state=s.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(n.S8.SYSTEM,!1)?this.state=s.AFTER_DOCTYPE_SYSTEM_KEYWORD:!this._ensureHibernation()&&(this._err(c.w.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=s.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}},{key:"_stateAfterDoctypePublicKeyword",value:function(e){var t=this.currentToken;switch(e){case n.gH.SPACE:case n.gH.LINE_FEED:case n.gH.TABULATION:case n.gH.FORM_FEED:this.state=s.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case n.gH.QUOTATION_MARK:this._err(c.w.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=s.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case n.gH.APOSTROPHE:this._err(c.w.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=s.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case n.gH.GREATER_THAN_SIGN:this._err(c.w.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=s.DATA,this.emitCurrentDoctype(t);break;case n.gH.EOF:this._err(c.w.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(c.w.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=s.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}},{key:"_stateBeforeDoctypePublicIdentifier",value:function(e){var t=this.currentToken;switch(e){case n.gH.SPACE:case n.gH.LINE_FEED:case n.gH.TABULATION:case n.gH.FORM_FEED:break;case n.gH.QUOTATION_MARK:t.publicId="",this.state=s.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case n.gH.APOSTROPHE:t.publicId="",this.state=s.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case n.gH.GREATER_THAN_SIGN:this._err(c.w.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=s.DATA,this.emitCurrentDoctype(t);break;case n.gH.EOF:this._err(c.w.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(c.w.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=s.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}},{key:"_stateDoctypePublicIdentifierDoubleQuoted",value:function(e){var t=this.currentToken;switch(e){case n.gH.QUOTATION_MARK:this.state=s.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case n.gH.NULL:this._err(c.w.unexpectedNullCharacter),t.publicId+=n.wV;break;case n.gH.GREATER_THAN_SIGN:this._err(c.w.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=s.DATA;break;case n.gH.EOF:this._err(c.w.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}},{key:"_stateDoctypePublicIdentifierSingleQuoted",value:function(e){var t=this.currentToken;switch(e){case n.gH.APOSTROPHE:this.state=s.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case n.gH.NULL:this._err(c.w.unexpectedNullCharacter),t.publicId+=n.wV;break;case n.gH.GREATER_THAN_SIGN:this._err(c.w.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=s.DATA;break;case n.gH.EOF:this._err(c.w.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}},{key:"_stateAfterDoctypePublicIdentifier",value:function(e){var t=this.currentToken;switch(e){case n.gH.SPACE:case n.gH.LINE_FEED:case n.gH.TABULATION:case n.gH.FORM_FEED:this.state=s.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case n.gH.GREATER_THAN_SIGN:this.state=s.DATA,this.emitCurrentDoctype(t);break;case n.gH.QUOTATION_MARK:this._err(c.w.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=s.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case n.gH.APOSTROPHE:this._err(c.w.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=s.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case n.gH.EOF:this._err(c.w.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(c.w.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=s.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}},{key:"_stateBetweenDoctypePublicAndSystemIdentifiers",value:function(e){var t=this.currentToken;switch(e){case n.gH.SPACE:case n.gH.LINE_FEED:case n.gH.TABULATION:case n.gH.FORM_FEED:break;case n.gH.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=s.DATA;break;case n.gH.QUOTATION_MARK:t.systemId="",this.state=s.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case n.gH.APOSTROPHE:t.systemId="",this.state=s.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case n.gH.EOF:this._err(c.w.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(c.w.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=s.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}},{key:"_stateAfterDoctypeSystemKeyword",value:function(e){var t=this.currentToken;switch(e){case n.gH.SPACE:case n.gH.LINE_FEED:case n.gH.TABULATION:case n.gH.FORM_FEED:this.state=s.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case n.gH.QUOTATION_MARK:this._err(c.w.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=s.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case n.gH.APOSTROPHE:this._err(c.w.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=s.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case n.gH.GREATER_THAN_SIGN:this._err(c.w.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=s.DATA,this.emitCurrentDoctype(t);break;case n.gH.EOF:this._err(c.w.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(c.w.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=s.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}},{key:"_stateBeforeDoctypeSystemIdentifier",value:function(e){var t=this.currentToken;switch(e){case n.gH.SPACE:case n.gH.LINE_FEED:case n.gH.TABULATION:case n.gH.FORM_FEED:break;case n.gH.QUOTATION_MARK:t.systemId="",this.state=s.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case n.gH.APOSTROPHE:t.systemId="",this.state=s.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case n.gH.GREATER_THAN_SIGN:this._err(c.w.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=s.DATA,this.emitCurrentDoctype(t);break;case n.gH.EOF:this._err(c.w.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(c.w.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=s.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}},{key:"_stateDoctypeSystemIdentifierDoubleQuoted",value:function(e){var t=this.currentToken;switch(e){case n.gH.QUOTATION_MARK:this.state=s.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case n.gH.NULL:this._err(c.w.unexpectedNullCharacter),t.systemId+=n.wV;break;case n.gH.GREATER_THAN_SIGN:this._err(c.w.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=s.DATA;break;case n.gH.EOF:this._err(c.w.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}},{key:"_stateDoctypeSystemIdentifierSingleQuoted",value:function(e){var t=this.currentToken;switch(e){case n.gH.APOSTROPHE:this.state=s.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case n.gH.NULL:this._err(c.w.unexpectedNullCharacter),t.systemId+=n.wV;break;case n.gH.GREATER_THAN_SIGN:this._err(c.w.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=s.DATA;break;case n.gH.EOF:this._err(c.w.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}},{key:"_stateAfterDoctypeSystemIdentifier",value:function(e){var t=this.currentToken;switch(e){case n.gH.SPACE:case n.gH.LINE_FEED:case n.gH.TABULATION:case n.gH.FORM_FEED:break;case n.gH.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=s.DATA;break;case n.gH.EOF:this._err(c.w.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(c.w.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=s.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}},{key:"_stateBogusDoctype",value:function(e){var t=this.currentToken;switch(e){case n.gH.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=s.DATA;break;case n.gH.NULL:this._err(c.w.unexpectedNullCharacter);break;case n.gH.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}},{key:"_stateCdataSection",value:function(e){switch(e){case n.gH.RIGHT_SQUARE_BRACKET:this.state=s.CDATA_SECTION_BRACKET;break;case n.gH.EOF:this._err(c.w.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}},{key:"_stateCdataSectionBracket",value:function(e){e===n.gH.RIGHT_SQUARE_BRACKET?this.state=s.CDATA_SECTION_END:(this._emitChars("]"),this.state=s.CDATA_SECTION,this._stateCdataSection(e))}},{key:"_stateCdataSectionEnd",value:function(e){switch(e){case n.gH.GREATER_THAN_SIGN:this.state=s.DATA;break;case n.gH.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=s.CDATA_SECTION,this._stateCdataSection(e)}}},{key:"_stateCharacterReference",value:function(e){e===n.gH.NUMBER_SIGN?this.state=s.NUMERIC_CHARACTER_REFERENCE:D(e)?(this.state=s.NAMED_CHARACTER_REFERENCE,this._stateNamedCharacterReference(e)):(this._flushCodePointConsumedAsCharacterReference(n.gH.AMPERSAND),this._reconsumeInState(this.returnState,e))}},{key:"_stateNamedCharacterReference",value:function(e){var t=this._matchNamedCharacterReference(e);if(this._ensureHibernation());else if(t){for(var a=0;a<t.length;a++)this._flushCodePointConsumedAsCharacterReference(t[a]);this.state=this.returnState}else this._flushCodePointConsumedAsCharacterReference(n.gH.AMPERSAND),this.state=s.AMBIGUOUS_AMPERSAND}},{key:"_stateAmbiguousAmpersand",value:function(e){D(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===n.gH.SEMICOLON&&this._err(c.w.unknownNamedCharacterReference),this._reconsumeInState(this.returnState,e))}},{key:"_stateNumericCharacterReference",value:function(e){this.charRefCode=0,e===n.gH.LATIN_SMALL_X||e===n.gH.LATIN_CAPITAL_X?this.state=s.HEXADEMICAL_CHARACTER_REFERENCE_START:u(e)?(this.state=s.DECIMAL_CHARACTER_REFERENCE,this._stateDecimalCharacterReference(e)):(this._err(c.w.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(n.gH.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(n.gH.NUMBER_SIGN),this._reconsumeInState(this.returnState,e))}},{key:"_stateHexademicalCharacterReferenceStart",value:function(e){var t;if(u(t=e)||N(t)||f(t))this.state=s.HEXADEMICAL_CHARACTER_REFERENCE,this._stateHexademicalCharacterReference(e);else this._err(c.w.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(n.gH.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(n.gH.NUMBER_SIGN),this._unconsume(2),this.state=this.returnState}},{key:"_stateHexademicalCharacterReference",value:function(e){N(e)?this.charRefCode=16*this.charRefCode+e-55:f(e)?this.charRefCode=16*this.charRefCode+e-87:u(e)?this.charRefCode=16*this.charRefCode+e-48:e===n.gH.SEMICOLON?this.state=s.NUMERIC_CHARACTER_REFERENCE_END:(this._err(c.w.missingSemicolonAfterCharacterReference),this.state=s.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(e))}},{key:"_stateDecimalCharacterReference",value:function(e){u(e)?this.charRefCode=10*this.charRefCode+e-48:e===n.gH.SEMICOLON?this.state=s.NUMERIC_CHARACTER_REFERENCE_END:(this._err(c.w.missingSemicolonAfterCharacterReference),this.state=s.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(e))}},{key:"_stateNumericCharacterReferenceEnd",value:function(e){if(this.charRefCode===n.gH.NULL)this._err(c.w.nullCharacterReference),this.charRefCode=n.gH.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(c.w.characterReferenceOutsideUnicodeRange),this.charRefCode=n.gH.REPLACEMENT_CHARACTER;else if((0,n.ij)(this.charRefCode))this._err(c.w.surrogateCharacterReference),this.charRefCode=n.gH.REPLACEMENT_CHARACTER;else if((0,n.SG)(this.charRefCode))this._err(c.w.noncharacterCharacterReference);else if((0,n.b_)(this.charRefCode)||this.charRefCode===n.gH.CARRIAGE_RETURN){this._err(c.w.controlCharacterReference);var t=A.get(this.charRefCode);void 0!==t&&(this.charRefCode=t)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,e)}}],T(e.prototype,t),r}()},68945:function(e,t,a){"use strict";function r(e,t){return t in e?e[t]:t}a.d(t,{C:function(){return r}})},74064:function(e,t,a){"use strict";a.d(t,{l:function(){return u}});var r=a("41757"),s=a("18482"),i=a("60634"),n=a("31506"),_=a("8311"),E=a("9970");function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=Array(t);a<t;a++)r[a]=e[a];return r}function o(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function T(e){return function(e){if(Array.isArray(e))return e}(e)||o(e)||h(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e){return function(e){if(Array.isArray(e))return c(e)}(e)||o(e)||h(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){if(e){if("string"==typeof e)return c(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if("Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a)return Array.from(a);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return c(e,t)}}var u=(function e(){var t,a=(0,_.r)(),E=[],c={},o=-1;return h.data=function(e,a){if("string"==typeof e)return 2==arguments.length?(f("data",t),c[e]=a,h):C.call(c,e)&&c[e]||null;return e?(f("data",t),c=e,h):c},h.Parser=void 0,h.Compiler=void 0,h.freeze=function(){if(t)return h;for(;++o<E.length;){var e=T(E[o]),r=e[0],s=e.slice(1);if(!1!==s[0]){!0===s[0]&&(s[0]=void 0);var i=r.call.apply(r,[h].concat(A(s)));"function"==typeof i&&a.use(i)}}return t=!0,o=Number.POSITIVE_INFINITY,h},h.attachers=E,h.use=function(e){for(var a,r=arguments.length,s=Array(r>1?r-1:0),_=1;_<r;_++)s[_-1]=arguments[_];if(f("use",t),null==e);else if("function"==typeof e)C.apply(void 0,[e].concat(A(s)));else if("object"==typeof e)Array.isArray(e)?u(e):o(e);else throw TypeError("Expected usable value, not `"+e+"`");return a&&(c.settings=Object.assign(c.settings||{},a)),h;function o(e){u(e.plugins),e.settings&&(a=Object.assign(a||{},e.settings))}function u(e){var t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;)!function(e){if("function"==typeof e)C(e);else if("object"==typeof e){if(Array.isArray(e)){var t=T(e);C.apply(void 0,[t[0]].concat(A(t.slice(1))))}else o(e)}else throw TypeError("Expected usable value, not `"+e+"`")}(e[t]);else throw TypeError("Expected a list of plugins, not `"+e+"`")}function C(e,t){for(var a,r=-1;++r<E.length;)if(E[r][0]===e){a=E[r];break}a?((0,n.Z)(a[1])&&(0,n.Z)(t)&&(t=i(!0,a[1],t)),a[1]=t):E.push(Array.prototype.slice.call(arguments))}},h.parse=function(e){h.freeze();var t=I(e),a=h.Parser;return(D("parse",a),S(a,"parse"))?new a(String(t),t).parse():a(String(t),t)},h.stringify=function(e,t){h.freeze();var a=I(t),r=h.Compiler;return(N("stringify",r),l(e),S(r,"compile"))?new r(e,a).compile():r(e,a)},h.run=function(e,t,r){if(l(e),h.freeze(),!r&&"function"==typeof t&&(r=t,t=void 0),!r)return new Promise(s);function s(s,i){a.run(e,I(t),function(t,a,n){a=a||e,t?i(t):s?s(a):r(null,a,n)})}s(null,r)},h.runSync=function(e,t){var a,s;return h.run(e,t,function(e,t){(0,r.N)(e),a=t,s=!0}),R("runSync","run",s),a},h.process=function(e,t){if(h.freeze(),D("process",h.Parser),N("process",h.Compiler),!t)return new Promise(a);function a(a,r){var i=I(e);function n(e,s){e||!s?r(e):a?a(s):t(null,s)}h.run(h.parse(i),i,function(e,t,a){if(!e&&t&&a){var r=h.stringify(t,a);null==r||(function(e){return"string"==typeof e||s(e)}(r)?a.value=r:a.result=r),n(e,a)}else n(e)})}a(null,t)},h.processSync=function(e){h.freeze(),D("processSync",h.Parser),N("processSync",h.Compiler);var t,a=I(e);return h.process(a,function(e){t=!0,(0,r.N)(e)}),R("processSync","process",t),a},h;function h(){for(var t=e(),a=-1;++a<E.length;)t.use.apply(t,A(E[a]));return t.data(i(!0,{},c)),t}})().freeze(),C={}.hasOwnProperty;function S(e,t){return"function"==typeof e&&e.prototype&&(function(e){var t;for(t in e)if(C.call(e,t))return!0;return!1}(e.prototype)||t in e.prototype)}function D(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `Parser`")}function N(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `Compiler`")}function f(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function l(e){if(!(0,n.Z)(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function R(e,t,a){if(!a)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function I(e){return function(e){return!!(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new E.k(e)}}}]);