import{aE as Z,a8 as ga,a9 as pa,an as Na,P as It,V as Ju}from"./entry.3193a679.js";import{a as St,b as Ca,c as Ia}from"./api.804dcc26.js";const Sa="https://pic3.zhimg.com/aadd7b895_l.jpg",La=[{name:"首页",href:"/"},{name:"认识我们",href:"/notification"},{name:"下载应用",href:"/app"},{name:"提交文章",href:"/submit"}],Ra=[{name:"关于我们",href:"https://zh.greatfire.org/"}],Oa={page:1,pagesize:30,last_data:"",q:"",isonlycensored:0,resulttype:"all",sortby:{index:[{name:"censored_time_or_answer_censored_updated",text:"被封时间"},{name:"score",text:"人气"},{name:"updated_time",text:"更新时间"},{name:"created",text:"创建时间"},{name:"answer_censored_count",text:"被封答案数"},{name:"answer_total_count",text:"答案数"}],search:[{name:"censored_time_or_answer_censored_updated",text:"被封时间"},{name:"updated_time",text:"更新时间"},{name:"created",text:"创建时间"}],"question-id":[{name:"censored",text:"被封时间"},{name:"voteup_count",text:"点赞数量"},{name:"updated_time",text:"更新时间"},{name:"created_time",text:"创建时间"}],"user-id":[{name:"created_at",text:"创建时间"},{name:"updated_at",text:"更新时间"}]},sortorder:[{name:"desc",text:"时间排序由新到旧"},{name:"asc",text:"时间排序由旧到新"}]},U0={defaultAvatarURL:Sa,navigation:La,externalNavigation:Ra,queryParams:Oa},H0=()=>Z("loading",()=>!1),w0=()=>Z("isLoginModalOpen",()=>!1),v0=()=>Z("isAdminLoginModalOpen",()=>!1),Y0=()=>Z("isProfileImageUploadModalOpen",()=>!1),q0=()=>Z("isWaitingForLogin",()=>!1),Q0=()=>Z("isCommentTextreaOpen",()=>!1),V0=()=>Z("dragActive",()=>!1),G0=()=>Z("droppedFile",()=>null),W0=()=>Z("searchText",()=>""),X0=()=>Z("isHotSearch",()=>0),K0=ga("homeQuery",{state:()=>({globalQuery:{},token:"",currentUser:{},isLoggedIn:!1}),actions:{addOrUpdateQueryByRouteName(e){this.globalQuery[e.routeName]=e.queryParams},updateQueryKeyValueByRouteName(e){let t=this.globalQuery[e.routeName]||{};t[e.key]=e.value,this.globalQuery[e.routeName]=t},updateQueryMultiKeyValueByRouteName(e){let t=this.globalQuery[e.routeName]||{};for(let[u,s]of Object.entries(e.maps))t[u]=s,this.globalQuery[e.routeName]=t},userLoginSuccess(e){const{token:t,currentUser:u}=e;this.token=t,this.currentUser=u,this.isLoggedIn=!0},userLogoutSuccess(){this.token="",this.currentUser={},this.isLoggedIn=!1},updateCurrentUser(e){this.currentUser=e}},persist:{storage:pa.localStorage,mergeOptions:{globalQuery:(e,t)=>t}}}),jt={xml:!1,decodeEntities:!0},_u={_useHtmlParser2:!0,xmlMode:!0};function Ut(e){return e!=null&&e.xml?typeof e.xml=="boolean"?_u:{..._u,...e.xml}:e??void 0}var D;(function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"})(D||(D={}));function Da(e){return e.type===D.Tag||e.type===D.Script||e.type===D.Style}const xa=D.Root,Pa=D.Text,Ma=D.Directive,ya=D.Comment,Ba=D.Script,ka=D.Style,Fa=D.Tag,Ua=D.CDATA,Ha=D.Doctype;class es{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(t){this.parent=t}get previousSibling(){return this.prev}set previousSibling(t){this.prev=t}get nextSibling(){return this.next}set nextSibling(t){this.next=t}cloneNode(t=!1){return tt(this,t)}}class zt extends es{constructor(t){super(),this.data=t}get nodeValue(){return this.data}set nodeValue(t){this.data=t}}class we extends zt{constructor(){super(...arguments),this.type=D.Text}get nodeType(){return 3}}class Zt extends zt{constructor(){super(...arguments),this.type=D.Comment}get nodeType(){return 8}}class Jt extends zt{constructor(t,u){super(u),this.name=t,this.type=D.Directive}get nodeType(){return 1}}class eu extends es{constructor(t){super(),this.children=t}get firstChild(){var t;return(t=this.children[0])!==null&&t!==void 0?t:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(t){this.children=t}}class ts extends eu{constructor(){super(...arguments),this.type=D.CDATA}get nodeType(){return 4}}class le extends eu{constructor(){super(...arguments),this.type=D.Root}get nodeType(){return 9}}class tu extends eu{constructor(t,u,s=[],n=t==="script"?D.Script:t==="style"?D.Style:D.Tag){super(s),this.name=t,this.attribs=u,this.type=n}get nodeType(){return 1}get tagName(){return this.name}set tagName(t){this.name=t}get attributes(){return Object.keys(this.attribs).map(t=>{var u,s;return{name:t,value:this.attribs[t],namespace:(u=this["x-attribsNamespace"])===null||u===void 0?void 0:u[t],prefix:(s=this["x-attribsPrefix"])===null||s===void 0?void 0:s[t]}})}}function L(e){return Da(e)}function ht(e){return e.type===D.CDATA}function j(e){return e.type===D.Text}function ft(e){return e.type===D.Comment}function Ht(e){return e.type===D.Directive}function he(e){return e.type===D.Root}function H(e){return Object.prototype.hasOwnProperty.call(e,"children")}function tt(e,t=!1){let u;if(j(e))u=new we(e.data);else if(ft(e))u=new Zt(e.data);else if(L(e)){const s=t?Lt(e.children):[],n=new tu(e.name,{...e.attribs},s);s.forEach(i=>i.parent=n),e.namespace!=null&&(n.namespace=e.namespace),e["x-attribsNamespace"]&&(n["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(n["x-attribsPrefix"]={...e["x-attribsPrefix"]}),u=n}else if(ht(e)){const s=t?Lt(e.children):[],n=new ts(s);s.forEach(i=>i.parent=n),u=n}else if(he(e)){const s=t?Lt(e.children):[],n=new le(s);s.forEach(i=>i.parent=n),e["x-mode"]&&(n["x-mode"]=e["x-mode"]),u=n}else if(Ht(e)){const s=new Jt(e.name,e.data);e["x-name"]!=null&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),u=s}else throw new Error(`Not implemented yet: ${e.type}`);return u.startIndex=e.startIndex,u.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(u.sourceCodeLocation=e.sourceCodeLocation),u}function Lt(e){const t=e.map(u=>tt(u,!0));for(let u=1;u<t.length;u++)t[u].prev=t[u-1],t[u-1].next=t[u];return t}const gu={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class wa{constructor(t,u,s){this.dom=[],this.root=new le(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof u=="function"&&(s=u,u=gu),typeof t=="object"&&(u=t,t=void 0),this.callback=t??null,this.options=u??gu,this.elementCB=s??null}onparserinit(t){this.parser=t}onreset(){this.dom=[],this.root=new le(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(t){this.handleCallback(t)}onclosetag(){this.lastNode=null;const t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)}onopentag(t,u){const s=this.options.xmlMode?D.Tag:void 0,n=new tu(t,u,void 0,s);this.addNode(n),this.tagStack.push(n)}ontext(t){const{lastNode:u}=this;if(u&&u.type===D.Text)u.data+=t,this.options.withEndIndices&&(u.endIndex=this.parser.endIndex);else{const s=new we(t);this.addNode(s),this.lastNode=s}}oncomment(t){if(this.lastNode&&this.lastNode.type===D.Comment){this.lastNode.data+=t;return}const u=new Zt(t);this.addNode(u),this.lastNode=u}oncommentend(){this.lastNode=null}oncdatastart(){const t=new we(""),u=new ts([t]);this.addNode(u),t.parent=u,this.lastNode=t}oncdataend(){this.lastNode=null}onprocessinginstruction(t,u){const s=new Jt(t,u);this.addNode(s)}handleCallback(t){if(typeof this.callback=="function")this.callback(t,this.dom);else if(t)throw t}addNode(t){const u=this.tagStack[this.tagStack.length-1],s=u.children[u.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),u.children.push(t),s&&(t.prev=s,s.next=t),t.parent=u,this.lastNode=null}}const ee=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTǇǋǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉ǲኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻ǲᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤĳạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ﬃɩᾹ\0\0᾽g;耀ﬀig;耀ﬄ;쀀𝔣lig;耀ﬁlig;쀀fjƀaltῙ῜ῡt;晭ig;耀ﬂns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒α‚‰‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସǳ⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗǈⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼ǲ㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),us=new Uint16Array("Ȁaglq	\x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Rt;const va=new Map([[0,65533],[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]]),wt=(Rt=String.fromCodePoint)!==null&&Rt!==void 0?Rt:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function ss(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=va.get(e))!==null&&t!==void 0?t:e}var U;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(U||(U={}));const Ya=32;var G;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(G||(G={}));function vt(e){return e>=U.ZERO&&e<=U.NINE}function qa(e){return e>=U.UPPER_A&&e<=U.UPPER_F||e>=U.LOWER_A&&e<=U.LOWER_F}function Qa(e){return e>=U.UPPER_A&&e<=U.UPPER_Z||e>=U.LOWER_A&&e<=U.LOWER_Z||vt(e)}function Va(e){return e===U.EQUALS||Qa(e)}var F;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(F||(F={}));var re;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(re||(re={}));class Ga{constructor(t,u,s){this.decodeTree=t,this.emitCodePoint=u,this.errors=s,this.state=F.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=re.Strict}startEntity(t){this.decodeMode=t,this.state=F.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,u){switch(this.state){case F.EntityStart:return t.charCodeAt(u)===U.NUM?(this.state=F.NumericStart,this.consumed+=1,this.stateNumericStart(t,u+1)):(this.state=F.NamedEntity,this.stateNamedEntity(t,u));case F.NumericStart:return this.stateNumericStart(t,u);case F.NumericDecimal:return this.stateNumericDecimal(t,u);case F.NumericHex:return this.stateNumericHex(t,u);case F.NamedEntity:return this.stateNamedEntity(t,u)}}stateNumericStart(t,u){return u>=t.length?-1:(t.charCodeAt(u)|Ya)===U.LOWER_X?(this.state=F.NumericHex,this.consumed+=1,this.stateNumericHex(t,u+1)):(this.state=F.NumericDecimal,this.stateNumericDecimal(t,u))}addToNumericResult(t,u,s,n){if(u!==s){const i=s-u;this.result=this.result*Math.pow(n,i)+parseInt(t.substr(u,i),n),this.consumed+=i}}stateNumericHex(t,u){const s=u;for(;u<t.length;){const n=t.charCodeAt(u);if(vt(n)||qa(n))u+=1;else return this.addToNumericResult(t,s,u,16),this.emitNumericEntity(n,3)}return this.addToNumericResult(t,s,u,16),-1}stateNumericDecimal(t,u){const s=u;for(;u<t.length;){const n=t.charCodeAt(u);if(vt(n))u+=1;else return this.addToNumericResult(t,s,u,10),this.emitNumericEntity(n,2)}return this.addToNumericResult(t,s,u,10),-1}emitNumericEntity(t,u){var s;if(this.consumed<=u)return(s=this.errors)===null||s===void 0||s.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===U.SEMI)this.consumed+=1;else if(this.decodeMode===re.Strict)return 0;return this.emitCodePoint(ss(this.result),this.consumed),this.errors&&(t!==U.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,u){const{decodeTree:s}=this;let n=s[this.treeIndex],i=(n&G.VALUE_LENGTH)>>14;for(;u<t.length;u++,this.excess++){const c=t.charCodeAt(u);if(this.treeIndex=uu(s,n,this.treeIndex+Math.max(1,i),c),this.treeIndex<0)return this.result===0||this.decodeMode===re.Attribute&&(i===0||Va(c))?0:this.emitNotTerminatedNamedEntity();if(n=s[this.treeIndex],i=(n&G.VALUE_LENGTH)>>14,i!==0){if(c===U.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==re.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:u,decodeTree:s}=this,n=(s[u]&G.VALUE_LENGTH)>>14;return this.emitNamedEntityData(u,n,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,u,s){const{decodeTree:n}=this;return this.emitCodePoint(u===1?n[t]&~G.VALUE_LENGTH:n[t+1],s),u===3&&this.emitCodePoint(n[t+2],s),s}end(){var t;switch(this.state){case F.NamedEntity:return this.result!==0&&(this.decodeMode!==re.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case F.NumericDecimal:return this.emitNumericEntity(0,2);case F.NumericHex:return this.emitNumericEntity(0,3);case F.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case F.EntityStart:return 0}}}function as(e){let t="";const u=new Ga(e,s=>t+=wt(s));return function(n,i){let c=0,d=0;for(;(d=n.indexOf("&",d))>=0;){t+=n.slice(c,d),u.startEntity(i);const E=u.write(n,d+1);if(E<0){c=d+u.end();break}c=d+E,d=E===0?c+1:c}const h=t+n.slice(c);return t="",h}}function uu(e,t,u,s){const n=(t&G.BRANCH_LENGTH)>>7,i=t&G.JUMP_TABLE;if(n===0)return i!==0&&s===i?u:-1;if(i){const h=s-i;return h<0||h>=n?-1:e[u+h]-1}let c=u,d=c+n-1;for(;c<=d;){const h=c+d>>>1,E=e[h];if(E<s)c=h+1;else if(E>s)d=h-1;else return e[h+n]}return-1}as(ee);as(us);const pu=/["&'<>$\x80-\uFFFF]/g,Wa=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),Xa=String.prototype.codePointAt!=null?(e,t)=>e.codePointAt(t):(e,t)=>(e.charCodeAt(t)&64512)===55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t);function ns(e){let t="",u=0,s;for(;(s=pu.exec(e))!==null;){const n=s.index,i=e.charCodeAt(n),c=Wa.get(i);c!==void 0?(t+=e.substring(u,n)+c,u=n+1):(t+=`${e.substring(u,n)}&#x${Xa(e,n).toString(16)};`,u=pu.lastIndex+=+((i&64512)===55296))}return t+e.substr(u)}function is(e,t){return function(s){let n,i=0,c="";for(;n=e.exec(s);)i!==n.index&&(c+=s.substring(i,n.index)),c+=t.get(n[0].charCodeAt(0)),i=n.index+1;return c+s.substring(i)}}const rs=is(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),cs=is(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]])),Ka=new Map(["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","textPath"].map(e=>[e.toLowerCase(),e])),$a=new Map(["definitionURL","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])),ja=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function za(e){return e.replace(/"/g,"&quot;")}function Za(e,t){var u;if(!e)return;const s=((u=t.encodeEntities)!==null&&u!==void 0?u:t.decodeEntities)===!1?za:t.xmlMode||t.encodeEntities!=="utf8"?ns:rs;return Object.keys(e).map(n=>{var i,c;const d=(i=e[n])!==null&&i!==void 0?i:"";return t.xmlMode==="foreign"&&(n=(c=$a.get(n))!==null&&c!==void 0?c:n),!t.emptyAttrs&&!t.xmlMode&&d===""?n:`${n}="${s(d)}"`}).join(" ")}const Nu=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function Et(e,t={}){const u="length"in e?e:[e];let s="";for(let n=0;n<u.length;n++)s+=Ja(u[n],t);return s}function Ja(e,t){switch(e.type){case xa:return Et(e.children,t);case Ha:case Ma:return sn(e);case ya:return rn(e);case Ua:return nn(e);case Ba:case ka:case Fa:return un(e,t);case Pa:return an(e,t)}}const en=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),tn=new Set(["svg","math"]);function un(e,t){var u;t.xmlMode==="foreign"&&(e.name=(u=Ka.get(e.name))!==null&&u!==void 0?u:e.name,e.parent&&en.has(e.parent.name)&&(t={...t,xmlMode:!1})),!t.xmlMode&&tn.has(e.name)&&(t={...t,xmlMode:"foreign"});let s=`<${e.name}`;const n=Za(e.attribs,t);return n&&(s+=` ${n}`),e.children.length===0&&(t.xmlMode?t.selfClosingTags!==!1:t.selfClosingTags&&Nu.has(e.name))?(t.xmlMode||(s+=" "),s+="/>"):(s+=">",e.children.length>0&&(s+=Et(e.children,t)),(t.xmlMode||!Nu.has(e.name))&&(s+=`</${e.name}>`)),s}function sn(e){return`<${e.data}>`}function an(e,t){var u;let s=e.data||"";return((u=t.encodeEntities)!==null&&u!==void 0?u:t.decodeEntities)!==!1&&!(!t.xmlMode&&e.parent&&ja.has(e.parent.name))&&(s=t.xmlMode||t.encodeEntities!=="utf8"?ns(s):cs(s)),s}function nn(e){return`<![CDATA[${e.children[0].data}]]>`}function rn(e){return`<!--${e.data}-->`}function os(e,t){return Et(e,t)}function cn(e,t){return H(e)?e.children.map(u=>os(u,t)).join(""):""}function Je(e){return Array.isArray(e)?e.map(Je).join(""):L(e)?e.name==="br"?`
`:Je(e.children):ht(e)?Je(e.children):j(e)?e.data:""}function pe(e){return Array.isArray(e)?e.map(pe).join(""):H(e)&&!ft(e)?pe(e.children):j(e)?e.data:""}function ut(e){return Array.isArray(e)?e.map(ut).join(""):H(e)&&(e.type===D.Tag||ht(e))?ut(e.children):j(e)?e.data:""}function Tt(e){return H(e)?e.children:[]}function ls(e){return e.parent||null}function ds(e){const t=ls(e);if(t!=null)return Tt(t);const u=[e];let{prev:s,next:n}=e;for(;s!=null;)u.unshift(s),{prev:s}=s;for(;n!=null;)u.push(n),{next:n}=n;return u}function on(e,t){var u;return(u=e.attribs)===null||u===void 0?void 0:u[t]}function ln(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}function dn(e){return e.name}function su(e){let{next:t}=e;for(;t!==null&&!L(t);)({next:t}=t);return t}function au(e){let{prev:t}=e;for(;t!==null&&!L(t);)({prev:t}=t);return t}function fe(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){const t=e.parent.children,u=t.lastIndexOf(e);u>=0&&t.splice(u,1)}e.next=null,e.prev=null,e.parent=null}function hn(e,t){const u=t.prev=e.prev;u&&(u.next=t);const s=t.next=e.next;s&&(s.prev=t);const n=t.parent=e.parent;if(n){const i=n.children;i[i.lastIndexOf(e)]=t,e.parent=null}}function fn(e,t){if(fe(t),t.next=null,t.parent=e,e.children.push(t)>1){const u=e.children[e.children.length-2];u.next=t,t.prev=u}else t.prev=null}function En(e,t){fe(t);const{parent:u}=e,s=e.next;if(t.next=s,t.prev=e,e.next=t,t.parent=u,s){if(s.prev=t,u){const n=u.children;n.splice(n.lastIndexOf(s),0,t)}}else u&&u.children.push(t)}function Tn(e,t){if(fe(t),t.parent=e,t.prev=null,e.children.unshift(t)!==1){const u=e.children[1];u.prev=t,t.next=u}else t.next=null}function mn(e,t){fe(t);const{parent:u}=e;if(u){const s=u.children;s.splice(s.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=u,t.prev=e.prev,t.next=e,e.prev=t}function mt(e,t,u=!0,s=1/0){return nu(e,Array.isArray(t)?t:[t],u,s)}function nu(e,t,u,s){const n=[],i=[t],c=[0];for(;;){if(c[0]>=i[0].length){if(c.length===1)return n;i.shift(),c.shift();continue}const d=i[0][c[0]++];if(e(d)&&(n.push(d),--s<=0))return n;u&&H(d)&&d.children.length>0&&(c.unshift(0),i.unshift(d.children))}}function bn(e,t){return t.find(e)}function iu(e,t,u=!0){let s=null;for(let n=0;n<t.length&&!s;n++){const i=t[n];if(L(i))e(i)?s=i:u&&i.children.length>0&&(s=iu(e,i.children,!0));else continue}return s}function hs(e,t){return t.some(u=>L(u)&&(e(u)||hs(e,u.children)))}function An(e,t){const u=[],s=[t],n=[0];for(;;){if(n[0]>=s[0].length){if(s.length===1)return u;s.shift(),n.shift();continue}const i=s[0][n[0]++];L(i)&&(e(i)&&u.push(i),i.children.length>0&&(n.unshift(0),s.unshift(i.children)))}}const st={tag_name(e){return typeof e=="function"?t=>L(t)&&e(t.name):e==="*"?L:t=>L(t)&&t.name===e},tag_type(e){return typeof e=="function"?t=>e(t.type):t=>t.type===e},tag_contains(e){return typeof e=="function"?t=>j(t)&&e(t.data):t=>j(t)&&t.data===e}};function fs(e,t){return typeof t=="function"?u=>L(u)&&t(u.attribs[e]):u=>L(u)&&u.attribs[e]===t}function _n(e,t){return u=>e(u)||t(u)}function Es(e){const t=Object.keys(e).map(u=>{const s=e[u];return Object.prototype.hasOwnProperty.call(st,u)?st[u](s):fs(u,s)});return t.length===0?null:t.reduce(_n)}function gn(e,t){const u=Es(e);return u?u(t):!0}function pn(e,t,u,s=1/0){const n=Es(e);return n?mt(n,t,u,s):[]}function Nn(e,t,u=!0){return Array.isArray(t)||(t=[t]),iu(fs("id",e),t,u)}function Ce(e,t,u=!0,s=1/0){return mt(st.tag_name(e),t,u,s)}function Cn(e,t,u=!0,s=1/0){return mt(st.tag_type(e),t,u,s)}function In(e){let t=e.length;for(;--t>=0;){const u=e[t];if(t>0&&e.lastIndexOf(u,t-1)>=0){e.splice(t,1);continue}for(let s=u.parent;s;s=s.parent)if(e.includes(s)){e.splice(t,1);break}}return e}var W;(function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"})(W||(W={}));function Ts(e,t){const u=[],s=[];if(e===t)return 0;let n=H(e)?e:e.parent;for(;n;)u.unshift(n),n=n.parent;for(n=H(t)?t:t.parent;n;)s.unshift(n),n=n.parent;const i=Math.min(u.length,s.length);let c=0;for(;c<i&&u[c]===s[c];)c++;if(c===0)return W.DISCONNECTED;const d=u[c-1],h=d.children,E=u[c],A=s[c];return h.indexOf(E)>h.indexOf(A)?d===t?W.FOLLOWING|W.CONTAINED_BY:W.FOLLOWING:d===e?W.PRECEDING|W.CONTAINS:W.PRECEDING}function Ie(e){return e=e.filter((t,u,s)=>!s.includes(t,u+1)),e.sort((t,u)=>{const s=Ts(t,u);return s&W.PRECEDING?-1:s&W.FOLLOWING?1:0}),e}function Sn(e){const t=at(xn,e);return t?t.name==="feed"?Ln(t):Rn(t):null}function Ln(e){var t;const u=e.children,s={type:"atom",items:Ce("entry",u).map(c=>{var d;const{children:h}=c,E={media:ms(h)};q(E,"id","id",h),q(E,"title","title",h);const A=(d=at("link",h))===null||d===void 0?void 0:d.attribs.href;A&&(E.link=A);const p=ue("summary",h)||ue("content",h);p&&(E.description=p);const N=ue("updated",h);return N&&(E.pubDate=new Date(N)),E})};q(s,"id","id",u),q(s,"title","title",u);const n=(t=at("link",u))===null||t===void 0?void 0:t.attribs.href;n&&(s.link=n),q(s,"description","subtitle",u);const i=ue("updated",u);return i&&(s.updated=new Date(i)),q(s,"author","email",u,!0),s}function Rn(e){var t,u;const s=(u=(t=at("channel",e.children))===null||t===void 0?void 0:t.children)!==null&&u!==void 0?u:[],n={type:e.name.substr(0,3),id:"",items:Ce("item",e.children).map(c=>{const{children:d}=c,h={media:ms(d)};q(h,"id","guid",d),q(h,"title","title",d),q(h,"link","link",d),q(h,"description","description",d);const E=ue("pubDate",d)||ue("dc:date",d);return E&&(h.pubDate=new Date(E)),h})};q(n,"title","title",s),q(n,"link","link",s),q(n,"description","description",s);const i=ue("lastBuildDate",s);return i&&(n.updated=new Date(i)),q(n,"author","managingEditor",s,!0),n}const On=["url","type","lang"],Dn=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function ms(e){return Ce("media:content",e).map(t=>{const{attribs:u}=t,s={medium:u.medium,isDefault:!!u.isDefault};for(const n of On)u[n]&&(s[n]=u[n]);for(const n of Dn)u[n]&&(s[n]=parseInt(u[n],10));return u.expression&&(s.expression=u.expression),s})}function at(e,t){return Ce(e,t,!0,1)[0]}function ue(e,t,u=!1){return pe(Ce(e,t,u,1)).trim()}function q(e,t,u,s,n=!1){const i=ue(u,s,n);i&&(e[t]=i)}function xn(e){return e==="rss"||e==="feed"||e==="rdf:RDF"}const bt=Object.freeze(Object.defineProperty({__proto__:null,get DocumentPosition(){return W},append:En,appendChild:fn,compareDocumentPosition:Ts,existsOne:hs,filter:mt,find:nu,findAll:An,findOne:iu,findOneChild:bn,getAttributeValue:on,getChildren:Tt,getElementById:Nn,getElements:pn,getElementsByTagName:Ce,getElementsByTagType:Cn,getFeed:Sn,getInnerHTML:cn,getName:dn,getOuterHTML:os,getParent:ls,getSiblings:ds,getText:Je,hasAttrib:ln,hasChildren:H,innerText:ut,isCDATA:ht,isComment:ft,isDocument:he,isTag:L,isText:j,nextElementSibling:su,prepend:mn,prependChild:Tn,prevElementSibling:au,removeElement:fe,removeSubsets:In,replaceElement:hn,testElement:gn,textContent:pe,uniqueSort:Ie},Symbol.toStringTag,{value:"Module"}));function bs(e,t,u){return e?e(t??e._root.children,null,void 0,u).toString():""}function Pn(e,t){return!t&&typeof e=="object"&&e!=null&&!("length"in e)&&!("type"in e)}function Mn(e,t){const u=Pn(e)?(t=e,void 0):e,s={...jt,...this===null||this===void 0?void 0:this._options,...Ut(t??{})};return bs(this,u,s)}function yn(e){const t={...this._options,xmlMode:!0};return bs(this,e,t)}function ve(e){const t=e||(this?this.root():[]);let u="";for(let s=0;s<t.length;s++)u+=pe(t[s]);return u}function Bn(e,t,u=typeof t=="boolean"?t:!1){if(!e||typeof e!="string")return null;typeof t=="boolean"&&(u=t);const s=this.load(e,jt,!1);return u||s("script").remove(),s.root()[0].children.slice()}function kn(){return this(this._root)}function As(e,t){if(t===e)return!1;let u=t;for(;u&&u!==u.parent;)if(u=u.parent,u===e)return!0;return!1}function Fn(e,t){if(!Cu(e)||!Cu(t))return;let u=e.length;const s=+t.length;for(let n=0;n<s;n++)e[u++]=t[n];return e.length=u,e}function Cu(e){if(Array.isArray(e))return!0;if(typeof e!="object"||!Object.prototype.hasOwnProperty.call(e,"length")||typeof e.length!="number"||e.length<0)return!1;for(let t=0;t<e.length;t++)if(!(t in e))return!1;return!0}const Un=Object.freeze(Object.defineProperty({__proto__:null,contains:As,html:Mn,merge:Fn,parseHTML:Bn,root:kn,text:ve,xml:yn},Symbol.toStringTag,{value:"Module"}));function z(e){return e.cheerio!=null}function Hn(e){return e.replace(/[_.-](\w|$)/g,(t,u)=>u.toUpperCase())}function wn(e){return e.replace(/[A-Z]/g,"-$&").toLowerCase()}function y(e,t){const u=e.length;for(let s=0;s<u;s++)t(e[s],s);return e}function Yt(e){const t="length"in e?Array.prototype.map.call(e,s=>tt(s,!0)):[tt(e,!0)],u=new le(t);return t.forEach(s=>{s.parent=u}),t}var ce;(function(e){e[e.LowerA=97]="LowerA",e[e.LowerZ=122]="LowerZ",e[e.UpperA=65]="UpperA",e[e.UpperZ=90]="UpperZ",e[e.Exclamation=33]="Exclamation"})(ce||(ce={}));function qt(e){const t=e.indexOf("<");if(t<0||t>e.length-3)return!1;const u=e.charCodeAt(t+1);return(u>=ce.LowerA&&u<=ce.LowerZ||u>=ce.UpperA&&u<=ce.UpperZ||u===ce.Exclamation)&&e.includes(">",t+2)}const _e=Object.prototype.hasOwnProperty,Ye=/\s+/,Ot="data-",Iu={null:null,true:!0,false:!1},ru=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,vn=/^{[^]*}$|^\[[^]*]$/;function nt(e,t,u){var s;if(!(!e||!L(e))){if((s=e.attribs)!==null&&s!==void 0||(e.attribs={}),!t)return e.attribs;if(_e.call(e.attribs,t))return!u&&ru.test(t)?t:e.attribs[t];if(e.name==="option"&&t==="value")return ve(e.children);if(e.name==="input"&&(e.attribs.type==="radio"||e.attribs.type==="checkbox")&&t==="value")return"on"}}function ge(e,t,u){u===null?_s(e,t):e.attribs[t]=`${u}`}function Yn(e,t){if(typeof e=="object"||t!==void 0){if(typeof t=="function"){if(typeof e!="string")throw new Error("Bad combination of arguments.");return y(this,(u,s)=>{L(u)&&ge(u,e,t.call(u,s,u.attribs[e]))})}return y(this,u=>{L(u)&&(typeof e=="object"?Object.keys(e).forEach(s=>{const n=e[s];ge(u,s,n)}):ge(u,e,t))})}return arguments.length>1?this:nt(this[0],e,this.options.xmlMode)}function Su(e,t,u){return t in e?e[t]:!u&&ru.test(t)?nt(e,t,!1)!==void 0:nt(e,t,u)}function Dt(e,t,u,s){t in e?e[t]=u:ge(e,t,!s&&ru.test(t)?u?"":null:`${u}`)}function qn(e,t){var u;if(typeof e=="string"&&t===void 0){const s=this[0];if(!s||!L(s))return;switch(e){case"style":{const n=this.css(),i=Object.keys(n);return i.forEach((c,d)=>{n[d]=c}),n.length=i.length,n}case"tagName":case"nodeName":return s.name.toUpperCase();case"href":case"src":{const n=(u=s.attribs)===null||u===void 0?void 0:u[e];return typeof URL<"u"&&(e==="href"&&(s.tagName==="a"||s.name==="link")||e==="src"&&(s.tagName==="img"||s.tagName==="iframe"||s.tagName==="audio"||s.tagName==="video"||s.tagName==="source"))&&n!==void 0&&this.options.baseURI?new URL(n,this.options.baseURI).href:n}case"innerText":return ut(s);case"textContent":return pe(s);case"outerHTML":return this.clone().wrap("<container />").parent().html();case"innerHTML":return this.html();default:return Su(s,e,this.options.xmlMode)}}if(typeof e=="object"||t!==void 0){if(typeof t=="function"){if(typeof e=="object")throw new Error("Bad combination of arguments.");return y(this,(s,n)=>{L(s)&&Dt(s,e,t.call(s,n,Su(s,e,this.options.xmlMode)),this.options.xmlMode)})}return y(this,s=>{L(s)&&(typeof e=="object"?Object.keys(e).forEach(n=>{const i=e[n];Dt(s,n,i,this.options.xmlMode)}):Dt(s,e,t,this.options.xmlMode))})}}function Lu(e,t,u){var s;const n=e;(s=n.data)!==null&&s!==void 0||(n.data={}),typeof t=="object"?Object.assign(n.data,t):typeof t=="string"&&u!==void 0&&(n.data[t]=u)}function Ru(e,t){let u,s,n;t==null?(u=Object.keys(e.attribs).filter(i=>i.startsWith(Ot)),s=u.map(i=>Hn(i.slice(Ot.length)))):(u=[Ot+wn(t)],s=[t]);for(let i=0;i<u.length;++i){const c=u[i],d=s[i];if(_e.call(e.attribs,c)&&!_e.call(e.data,d)){if(n=e.attribs[c],_e.call(Iu,n))n=Iu[n];else if(n===String(Number(n)))n=Number(n);else if(vn.test(n))try{n=JSON.parse(n)}catch{}e.data[d]=n}}return t==null?e.data:n}function Qn(e,t){var u;const s=this[0];if(!s||!L(s))return;const n=s;return(u=n.data)!==null&&u!==void 0||(n.data={}),e?typeof e=="object"||t!==void 0?(y(this,i=>{L(i)&&(typeof e=="object"?Lu(i,e):Lu(i,e,t))}),this):_e.call(n.data,e)?n.data[e]:Ru(n,e):Ru(n)}function Vn(e){const t=arguments.length===0,u=this[0];if(!u||!L(u))return t?void 0:this;switch(u.name){case"textarea":return this.text(e);case"select":{const s=this.find("option:selected");if(!t){if(this.attr("multiple")==null&&typeof e=="object")return this;this.find("option").removeAttr("selected");const n=typeof e!="object"?[e]:e;for(let i=0;i<n.length;i++)this.find(`option[value="${n[i]}"]`).attr("selected","");return this}return this.attr("multiple")?s.toArray().map(n=>ve(n.children)):s.attr("value")}case"input":case"option":return t?this.attr("value"):this.attr("value",e)}}function _s(e,t){!e.attribs||!_e.call(e.attribs,t)||delete e.attribs[t]}function it(e){return e?e.trim().split(Ye):[]}function Gn(e){const t=it(e);for(let u=0;u<t.length;u++)y(this,s=>{L(s)&&_s(s,t[u])});return this}function Wn(e){return this.toArray().some(t=>{const u=L(t)&&t.attribs.class;let s=-1;if(u&&e.length)for(;(s=u.indexOf(e,s+1))>-1;){const n=s+e.length;if((s===0||Ye.test(u[s-1]))&&(n===u.length||Ye.test(u[n])))return!0}return!1})}function gs(e){if(typeof e=="function")return y(this,(s,n)=>{if(L(s)){const i=s.attribs.class||"";gs.call([s],e.call(s,n,i))}});if(!e||typeof e!="string")return this;const t=e.split(Ye),u=this.length;for(let s=0;s<u;s++){const n=this[s];if(!L(n))continue;const i=nt(n,"class",!1);if(!i)ge(n,"class",t.join(" ").trim());else{let c=` ${i} `;for(let d=0;d<t.length;d++){const h=`${t[d]} `;c.includes(` ${h}`)||(c+=h)}ge(n,"class",c.trim())}}return this}function ps(e){if(typeof e=="function")return y(this,(n,i)=>{L(n)&&ps.call([n],e.call(n,i,n.attribs.class||""))});const t=it(e),u=t.length,s=arguments.length===0;return y(this,n=>{if(L(n))if(s)n.attribs.class="";else{const i=it(n.attribs.class);let c=!1;for(let d=0;d<u;d++){const h=i.indexOf(t[d]);h>=0&&(i.splice(h,1),c=!0,d--)}c&&(n.attribs.class=i.join(" "))}})}function Ns(e,t){if(typeof e=="function")return y(this,(c,d)=>{L(c)&&Ns.call([c],e.call(c,d,c.attribs.class||"",t),t)});if(!e||typeof e!="string")return this;const u=e.split(Ye),s=u.length,n=typeof t=="boolean"?t?1:-1:0,i=this.length;for(let c=0;c<i;c++){const d=this[c];if(!L(d))continue;const h=it(d.attribs.class);for(let E=0;E<s;E++){const A=h.indexOf(u[E]);n>=0&&A<0?h.push(u[E]):n<=0&&A>=0&&h.splice(A,1)}d.attribs.class=h.join(" ")}return this}const Xn=Object.freeze(Object.defineProperty({__proto__:null,addClass:gs,attr:Yn,data:Qn,hasClass:Wn,prop:qn,removeAttr:Gn,removeClass:ps,toggleClass:Ns,val:Vn},Symbol.toStringTag,{value:"Module"}));var I;(function(e){e.Attribute="attribute",e.Pseudo="pseudo",e.PseudoElement="pseudo-element",e.Tag="tag",e.Universal="universal",e.Adjacent="adjacent",e.Child="child",e.Descendant="descendant",e.Parent="parent",e.Sibling="sibling",e.ColumnCombinator="column-combinator"})(I||(I={}));var k;(function(e){e.Any="any",e.Element="element",e.End="end",e.Equals="equals",e.Exists="exists",e.Hyphen="hyphen",e.Not="not",e.Start="start"})(k||(k={}));const Ou=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,Kn=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,$n=new Map([[126,k.Element],[94,k.Start],[36,k.End],[42,k.Any],[33,k.Not],[124,k.Hyphen]]),jn=new Set(["has","not","matches","is","where","host","host-context"]);function Me(e){switch(e.type){case I.Adjacent:case I.Child:case I.Descendant:case I.Parent:case I.Sibling:case I.ColumnCombinator:return!0;default:return!1}}const zn=new Set(["contains","icontains"]);function Zn(e,t,u){const s=parseInt(t,16)-65536;return s!==s||u?t:s<0?String.fromCharCode(s+65536):String.fromCharCode(s>>10|55296,s&1023|56320)}function Oe(e){return e.replace(Kn,Zn)}function xt(e){return e===39||e===34}function Du(e){return e===32||e===9||e===10||e===12||e===13}function At(e){const t=[],u=Cs(t,`${e}`,0);if(u<e.length)throw new Error(`Unmatched selector: ${e.slice(u)}`);return t}function Cs(e,t,u){let s=[];function n(N){const C=t.slice(u+N).match(Ou);if(!C)throw new Error(`Expected name, found ${t.slice(u)}`);const[S]=C;return u+=N+S.length,Oe(S)}function i(N){for(u+=N;u<t.length&&Du(t.charCodeAt(u));)u++}function c(){u+=1;const N=u;let C=1;for(;C>0&&u<t.length;u++)t.charCodeAt(u)===40&&!d(u)?C++:t.charCodeAt(u)===41&&!d(u)&&C--;if(C)throw new Error("Parenthesis not matched");return Oe(t.slice(N,u-1))}function d(N){let C=0;for(;t.charCodeAt(--N)===92;)C++;return(C&1)===1}function h(){if(s.length>0&&Me(s[s.length-1]))throw new Error("Did not expect successive traversals.")}function E(N){if(s.length>0&&s[s.length-1].type===I.Descendant){s[s.length-1].type=N;return}h(),s.push({type:N})}function A(N,C){s.push({type:I.Attribute,name:N,action:C,value:n(1),namespace:null,ignoreCase:"quirks"})}function p(){if(s.length&&s[s.length-1].type===I.Descendant&&s.pop(),s.length===0)throw new Error("Empty sub-selector");e.push(s)}if(i(0),t.length===u)return u;e:for(;u<t.length;){const N=t.charCodeAt(u);switch(N){case 32:case 9:case 10:case 12:case 13:{(s.length===0||s[0].type!==I.Descendant)&&(h(),s.push({type:I.Descendant})),i(1);break}case 62:{E(I.Child),i(1);break}case 60:{E(I.Parent),i(1);break}case 126:{E(I.Sibling),i(1);break}case 43:{E(I.Adjacent),i(1);break}case 46:{A("class",k.Element);break}case 35:{A("id",k.Equals);break}case 91:{i(1);let C,S=null;t.charCodeAt(u)===124?C=n(1):t.startsWith("*|",u)?(S="*",C=n(2)):(C=n(0),t.charCodeAt(u)===124&&t.charCodeAt(u+1)!==61&&(S=C,C=n(1))),i(0);let B=k.Exists;const P=$n.get(t.charCodeAt(u));if(P){if(B=P,t.charCodeAt(u+1)!==61)throw new Error("Expected `=`");i(2)}else t.charCodeAt(u)===61&&(B=k.Equals,i(1));let Te="",me=null;if(B!=="exists"){if(xt(t.charCodeAt(u))){const Xe=t.charCodeAt(u);let ne=u+1;for(;ne<t.length&&(t.charCodeAt(ne)!==Xe||d(ne));)ne+=1;if(t.charCodeAt(ne)!==Xe)throw new Error("Attribute value didn't end");Te=Oe(t.slice(u+1,ne)),u=ne+1}else{const Xe=u;for(;u<t.length&&(!Du(t.charCodeAt(u))&&t.charCodeAt(u)!==93||d(u));)u+=1;Te=Oe(t.slice(Xe,u))}i(0);const Re=t.charCodeAt(u)|32;Re===115?(me=!1,i(1)):Re===105&&(me=!0,i(1))}if(t.charCodeAt(u)!==93)throw new Error("Attribute selector didn't terminate");u+=1;const Le={type:I.Attribute,name:C,action:B,value:Te,namespace:S,ignoreCase:me};s.push(Le);break}case 58:{if(t.charCodeAt(u+1)===58){s.push({type:I.PseudoElement,name:n(2).toLowerCase(),data:t.charCodeAt(u)===40?c():null});continue}const C=n(1).toLowerCase();let S=null;if(t.charCodeAt(u)===40)if(jn.has(C)){if(xt(t.charCodeAt(u+1)))throw new Error(`Pseudo-selector ${C} cannot be quoted`);if(S=[],u=Cs(S,t,u+1),t.charCodeAt(u)!==41)throw new Error(`Missing closing parenthesis in :${C} (${t})`);u+=1}else{if(S=c(),zn.has(C)){const B=S.charCodeAt(0);B===S.charCodeAt(S.length-1)&&xt(B)&&(S=S.slice(1,-1))}S=Oe(S)}s.push({type:I.Pseudo,name:C,data:S});break}case 44:{p(),s=[],i(1);break}default:{if(t.startsWith("/*",u)){const B=t.indexOf("*/",u+2);if(B<0)throw new Error("Comment was not terminated");u=B+2,s.length===0&&i(0);break}let C=null,S;if(N===42)u+=1,S="*";else if(N===124){if(S="",t.charCodeAt(u+1)===124){E(I.ColumnCombinator),i(2);break}}else if(Ou.test(t.slice(u)))S=n(0);else break e;t.charCodeAt(u)===124&&t.charCodeAt(u+1)!==124&&(C=S,t.charCodeAt(u+1)===42?(S="*",u+=2):S=n(1)),s.push(S==="*"?{type:I.Universal,namespace:C}:{type:I.Tag,name:S,namespace:C})}}}return p(),u}var rt={trueFunc:function(){return!0},falseFunc:function(){return!1}};const R=Na(rt),Is=new Map([[I.Universal,50],[I.Tag,30],[I.Attribute,1],[I.Pseudo,0]]);function cu(e){return!Is.has(e.type)}const Jn=new Map([[k.Exists,10],[k.Equals,8],[k.Not,7],[k.Start,6],[k.End,6],[k.Any,5]]);function ei(e){const t=e.map(Ss);for(let u=1;u<e.length;u++){const s=t[u];if(!(s<0))for(let n=u-1;n>=0&&s<t[n];n--){const i=e[n+1];e[n+1]=e[n],e[n]=i,t[n+1]=t[n],t[n]=s}}}function Ss(e){var t,u;let s=(t=Is.get(e.type))!==null&&t!==void 0?t:-1;return e.type===I.Attribute?(s=(u=Jn.get(e.action))!==null&&u!==void 0?u:4,e.action===k.Equals&&e.name==="id"&&(s=9),e.ignoreCase&&(s>>=1)):e.type===I.Pseudo&&(e.data?e.name==="has"||e.name==="contains"?s=0:Array.isArray(e.data)?(s=Math.min(...e.data.map(n=>Math.min(...n.map(Ss)))),s<0&&(s=0)):s=2:s=3),s}const ti=/[-[\]{}()*+?.,\\^$|#\s]/g;function xu(e){return e.replace(ti,"\\$&")}const ui=new Set(["accept","accept-charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","color","compact","declare","defer","dir","direction","disabled","enctype","face","frame","hreflang","http-equiv","lang","language","link","media","method","multiple","nohref","noresize","noshade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shape","target","text","type","valign","valuetype","vlink"]);function ie(e,t){return typeof e.ignoreCase=="boolean"?e.ignoreCase:e.ignoreCase==="quirks"?!!t.quirksMode:!t.xmlMode&&ui.has(e.name)}const si={equals(e,t,u){const{adapter:s}=u,{name:n}=t;let{value:i}=t;return ie(t,u)?(i=i.toLowerCase(),c=>{const d=s.getAttributeValue(c,n);return d!=null&&d.length===i.length&&d.toLowerCase()===i&&e(c)}):c=>s.getAttributeValue(c,n)===i&&e(c)},hyphen(e,t,u){const{adapter:s}=u,{name:n}=t;let{value:i}=t;const c=i.length;return ie(t,u)?(i=i.toLowerCase(),function(h){const E=s.getAttributeValue(h,n);return E!=null&&(E.length===c||E.charAt(c)==="-")&&E.substr(0,c).toLowerCase()===i&&e(h)}):function(h){const E=s.getAttributeValue(h,n);return E!=null&&(E.length===c||E.charAt(c)==="-")&&E.substr(0,c)===i&&e(h)}},element(e,t,u){const{adapter:s}=u,{name:n,value:i}=t;if(/\s/.test(i))return R.falseFunc;const c=new RegExp(`(?:^|\\s)${xu(i)}(?:$|\\s)`,ie(t,u)?"i":"");return function(h){const E=s.getAttributeValue(h,n);return E!=null&&E.length>=i.length&&c.test(E)&&e(h)}},exists(e,{name:t},{adapter:u}){return s=>u.hasAttrib(s,t)&&e(s)},start(e,t,u){const{adapter:s}=u,{name:n}=t;let{value:i}=t;const c=i.length;return c===0?R.falseFunc:ie(t,u)?(i=i.toLowerCase(),d=>{const h=s.getAttributeValue(d,n);return h!=null&&h.length>=c&&h.substr(0,c).toLowerCase()===i&&e(d)}):d=>{var h;return!!(!((h=s.getAttributeValue(d,n))===null||h===void 0)&&h.startsWith(i))&&e(d)}},end(e,t,u){const{adapter:s}=u,{name:n}=t;let{value:i}=t;const c=-i.length;return c===0?R.falseFunc:ie(t,u)?(i=i.toLowerCase(),d=>{var h;return((h=s.getAttributeValue(d,n))===null||h===void 0?void 0:h.substr(c).toLowerCase())===i&&e(d)}):d=>{var h;return!!(!((h=s.getAttributeValue(d,n))===null||h===void 0)&&h.endsWith(i))&&e(d)}},any(e,t,u){const{adapter:s}=u,{name:n,value:i}=t;if(i==="")return R.falseFunc;if(ie(t,u)){const c=new RegExp(xu(i),"i");return function(h){const E=s.getAttributeValue(h,n);return E!=null&&E.length>=i.length&&c.test(E)&&e(h)}}return c=>{var d;return!!(!((d=s.getAttributeValue(c,n))===null||d===void 0)&&d.includes(i))&&e(c)}},not(e,t,u){const{adapter:s}=u,{name:n}=t;let{value:i}=t;return i===""?c=>!!s.getAttributeValue(c,n)&&e(c):ie(t,u)?(i=i.toLowerCase(),c=>{const d=s.getAttributeValue(c,n);return(d==null||d.length!==i.length||d.toLowerCase()!==i)&&e(c)}):c=>s.getAttributeValue(c,n)!==i&&e(c)}},ai=new Set([9,10,12,13,32]),Pu="0".charCodeAt(0),ni="9".charCodeAt(0);function ii(e){if(e=e.trim().toLowerCase(),e==="even")return[2,0];if(e==="odd")return[2,1];let t=0,u=0,s=i(),n=c();if(t<e.length&&e.charAt(t)==="n"&&(t++,u=s*(n??1),d(),t<e.length?(s=i(),d(),n=c()):s=n=0),n===null||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[u,s*n];function i(){return e.charAt(t)==="-"?(t++,-1):(e.charAt(t)==="+"&&t++,1)}function c(){const h=t;let E=0;for(;t<e.length&&e.charCodeAt(t)>=Pu&&e.charCodeAt(t)<=ni;)E=E*10+(e.charCodeAt(t)-Pu),t++;return t===h?null:E}function d(){for(;t<e.length&&ai.has(e.charCodeAt(t));)t++}}function ri(e){const t=e[0],u=e[1]-1;if(u<0&&t<=0)return R.falseFunc;if(t===-1)return i=>i<=u;if(t===0)return i=>i===u;if(t===1)return u<0?R.trueFunc:i=>i>=u;const s=Math.abs(t),n=(u%s+s)%s;return t>1?i=>i>=u&&i%s===n:i=>i<=u&&i%s===n}function Ke(e){return ri(ii(e))}function $e(e,t){return u=>{const s=t.getParent(u);return s!=null&&t.isTag(s)&&e(u)}}const Qt={contains(e,t,{adapter:u}){return function(n){return e(n)&&u.getText(n).includes(t)}},icontains(e,t,{adapter:u}){const s=t.toLowerCase();return function(i){return e(i)&&u.getText(i).toLowerCase().includes(s)}},"nth-child"(e,t,{adapter:u,equals:s}){const n=Ke(t);return n===R.falseFunc?R.falseFunc:n===R.trueFunc?$e(e,u):function(c){const d=u.getSiblings(c);let h=0;for(let E=0;E<d.length&&!s(c,d[E]);E++)u.isTag(d[E])&&h++;return n(h)&&e(c)}},"nth-last-child"(e,t,{adapter:u,equals:s}){const n=Ke(t);return n===R.falseFunc?R.falseFunc:n===R.trueFunc?$e(e,u):function(c){const d=u.getSiblings(c);let h=0;for(let E=d.length-1;E>=0&&!s(c,d[E]);E--)u.isTag(d[E])&&h++;return n(h)&&e(c)}},"nth-of-type"(e,t,{adapter:u,equals:s}){const n=Ke(t);return n===R.falseFunc?R.falseFunc:n===R.trueFunc?$e(e,u):function(c){const d=u.getSiblings(c);let h=0;for(let E=0;E<d.length;E++){const A=d[E];if(s(c,A))break;u.isTag(A)&&u.getName(A)===u.getName(c)&&h++}return n(h)&&e(c)}},"nth-last-of-type"(e,t,{adapter:u,equals:s}){const n=Ke(t);return n===R.falseFunc?R.falseFunc:n===R.trueFunc?$e(e,u):function(c){const d=u.getSiblings(c);let h=0;for(let E=d.length-1;E>=0;E--){const A=d[E];if(s(c,A))break;u.isTag(A)&&u.getName(A)===u.getName(c)&&h++}return n(h)&&e(c)}},root(e,t,{adapter:u}){return s=>{const n=u.getParent(s);return(n==null||!u.isTag(n))&&e(s)}},scope(e,t,u,s){const{equals:n}=u;return!s||s.length===0?Qt.root(e,t,u):s.length===1?i=>n(s[0],i)&&e(i):i=>s.includes(i)&&e(i)},hover:Pt("isHovered"),visited:Pt("isVisited"),active:Pt("isActive")};function Pt(e){return function(u,s,{adapter:n}){const i=n[e];return typeof i!="function"?R.falseFunc:function(d){return i(d)&&u(d)}}}const Mu={empty(e,{adapter:t}){return!t.getChildren(e).some(u=>t.isTag(u)||t.getText(u)!=="")},"first-child"(e,{adapter:t,equals:u}){if(t.prevElementSibling)return t.prevElementSibling(e)==null;const s=t.getSiblings(e).find(n=>t.isTag(n));return s!=null&&u(e,s)},"last-child"(e,{adapter:t,equals:u}){const s=t.getSiblings(e);for(let n=s.length-1;n>=0;n--){if(u(e,s[n]))return!0;if(t.isTag(s[n]))break}return!1},"first-of-type"(e,{adapter:t,equals:u}){const s=t.getSiblings(e),n=t.getName(e);for(let i=0;i<s.length;i++){const c=s[i];if(u(e,c))return!0;if(t.isTag(c)&&t.getName(c)===n)break}return!1},"last-of-type"(e,{adapter:t,equals:u}){const s=t.getSiblings(e),n=t.getName(e);for(let i=s.length-1;i>=0;i--){const c=s[i];if(u(e,c))return!0;if(t.isTag(c)&&t.getName(c)===n)break}return!1},"only-of-type"(e,{adapter:t,equals:u}){const s=t.getName(e);return t.getSiblings(e).every(n=>u(e,n)||!t.isTag(n)||t.getName(n)!==s)},"only-child"(e,{adapter:t,equals:u}){return t.getSiblings(e).every(s=>u(e,s)||!t.isTag(s))}};function yu(e,t,u,s){if(u===null){if(e.length>s)throw new Error(`Pseudo-class :${t} requires an argument`)}else if(e.length===s)throw new Error(`Pseudo-class :${t} doesn't have any arguments`)}const ci={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:`:is(
        :is(button, input, select, textarea, optgroup, option)[disabled],
        optgroup[disabled] > option,
        fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
    )`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"},Ls={};function oi(e,t){return e===R.falseFunc?R.falseFunc:u=>t.isTag(u)&&e(u)}function Rs(e,t){const u=t.getSiblings(e);if(u.length<=1)return[];const s=u.indexOf(e);return s<0||s===u.length-1?[]:u.slice(s+1).filter(t.isTag)}function Vt(e){return{xmlMode:!!e.xmlMode,lowerCaseAttributeNames:!!e.lowerCaseAttributeNames,lowerCaseTags:!!e.lowerCaseTags,quirksMode:!!e.quirksMode,cacheResults:!!e.cacheResults,pseudos:e.pseudos,adapter:e.adapter,equals:e.equals}}const Mt=(e,t,u,s,n)=>{const i=n(t,Vt(u),s);return i===R.trueFunc?e:i===R.falseFunc?R.falseFunc:c=>i(c)&&e(c)},yt={is:Mt,matches:Mt,where:Mt,not(e,t,u,s,n){const i=n(t,Vt(u),s);return i===R.falseFunc?e:i===R.trueFunc?R.falseFunc:c=>!i(c)&&e(c)},has(e,t,u,s,n){const{adapter:i}=u,c=Vt(u);c.relativeSelector=!0;const d=t.some(A=>A.some(cu))?[Ls]:void 0,h=n(t,c,d);if(h===R.falseFunc)return R.falseFunc;const E=oi(h,i);if(d&&h!==R.trueFunc){const{shouldTestNextSiblings:A=!1}=h;return p=>{if(!e(p))return!1;d[0]=p;const N=i.getChildren(p),C=A?[...N,...Rs(p,i)]:N;return i.existsOne(E,C)}}return A=>e(A)&&i.existsOne(E,i.getChildren(A))}};function li(e,t,u,s,n){var i;const{name:c,data:d}=t;if(Array.isArray(d)){if(!(c in yt))throw new Error(`Unknown pseudo-class :${c}(${d})`);return yt[c](e,d,u,s,n)}const h=(i=u.pseudos)===null||i===void 0?void 0:i[c],E=typeof h=="string"?h:ci[c];if(typeof E=="string"){if(d!=null)throw new Error(`Pseudo ${c} doesn't have any arguments`);const A=At(E);return yt.is(e,A,u,s,n)}if(typeof h=="function")return yu(h,c,d,1),A=>h(A,d)&&e(A);if(c in Qt)return Qt[c](e,d,u,s);if(c in Mu){const A=Mu[c];return yu(A,c,d,2),p=>A(p,u,d)&&e(p)}throw new Error(`Unknown pseudo-class :${c}`)}function Bt(e,t){const u=t.getParent(e);return u&&t.isTag(u)?u:null}function di(e,t,u,s,n){const{adapter:i,equals:c}=u;switch(t.type){case I.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case I.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case I.Attribute:{if(t.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!u.xmlMode||u.lowerCaseAttributeNames)&&(t.name=t.name.toLowerCase()),si[t.action](e,t,u)}case I.Pseudo:return li(e,t,u,s,n);case I.Tag:{if(t.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:d}=t;return(!u.xmlMode||u.lowerCaseTags)&&(d=d.toLowerCase()),function(E){return i.getName(E)===d&&e(E)}}case I.Descendant:{if(u.cacheResults===!1||typeof WeakSet>"u")return function(E){let A=E;for(;A=Bt(A,i);)if(e(A))return!0;return!1};const d=new WeakSet;return function(E){let A=E;for(;A=Bt(A,i);)if(!d.has(A)){if(i.isTag(A)&&e(A))return!0;d.add(A)}return!1}}case"_flexibleDescendant":return function(h){let E=h;do if(e(E))return!0;while(E=Bt(E,i));return!1};case I.Parent:return function(h){return i.getChildren(h).some(E=>i.isTag(E)&&e(E))};case I.Child:return function(h){const E=i.getParent(h);return E!=null&&i.isTag(E)&&e(E)};case I.Sibling:return function(h){const E=i.getSiblings(h);for(let A=0;A<E.length;A++){const p=E[A];if(c(h,p))break;if(i.isTag(p)&&e(p))return!0}return!1};case I.Adjacent:return i.prevElementSibling?function(h){const E=i.prevElementSibling(h);return E!=null&&e(E)}:function(h){const E=i.getSiblings(h);let A;for(let p=0;p<E.length;p++){const N=E[p];if(c(h,N))break;i.isTag(N)&&(A=N)}return!!A&&e(A)};case I.Universal:{if(t.namespace!=null&&t.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return e}}}function Os(e){return e.type===I.Pseudo&&(e.name==="scope"||Array.isArray(e.data)&&e.data.some(t=>t.some(Os)))}const hi={type:I.Descendant},fi={type:"_flexibleDescendant"},Ei={type:I.Pseudo,name:"scope",data:null};function Ti(e,{adapter:t},u){const s=!!(u!=null&&u.every(n=>{const i=t.isTag(n)&&t.getParent(n);return n===Ls||i&&t.isTag(i)}));for(const n of e){if(!(n.length>0&&cu(n[0])&&n[0].type!==I.Descendant))if(s&&!n.some(Os))n.unshift(hi);else continue;n.unshift(Ei)}}function Ds(e,t,u){var s;e.forEach(ei),u=(s=t.context)!==null&&s!==void 0?s:u;const n=Array.isArray(u),i=u&&(Array.isArray(u)?u:[u]);if(t.relativeSelector!==!1)Ti(e,t,i);else if(e.some(h=>h.length>0&&cu(h[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let c=!1;const d=e.map(h=>{if(h.length>=2){const[E,A]=h;E.type!==I.Pseudo||E.name!=="scope"||(n&&A.type===I.Descendant?h[1]=fi:(A.type===I.Adjacent||A.type===I.Sibling)&&(c=!0))}return mi(h,t,i)}).reduce(bi,R.falseFunc);return d.shouldTestNextSiblings=c,d}function mi(e,t,u){var s;return e.reduce((n,i)=>n===R.falseFunc?R.falseFunc:di(n,i,t,u,Ds),(s=t.rootFunc)!==null&&s!==void 0?s:R.trueFunc)}function bi(e,t){return t===R.falseFunc||e===R.trueFunc?e:e===R.falseFunc||t===R.trueFunc?t:function(s){return e(s)||t(s)}}const xs=(e,t)=>e===t,Ai={adapter:bt,equals:xs};function _i(e){var t,u,s,n;const i=e??Ai;return(t=i.adapter)!==null&&t!==void 0||(i.adapter=bt),(u=i.equals)!==null&&u!==void 0||(i.equals=(n=(s=i.adapter)===null||s===void 0?void 0:s.equals)!==null&&n!==void 0?n:xs),i}function gi(e){return function(u,s,n){const i=_i(s);return e(u,i,n)}}const ou=gi(Ds);function Ps(e,t,u=!1){return u&&(e=pi(e,t)),Array.isArray(e)?t.removeSubsets(e):t.getChildren(e)}function pi(e,t){const u=Array.isArray(e)?e.slice(0):[e],s=u.length;for(let n=0;n<s;n++){const i=Rs(u[n],t);u.push(...i)}return u}const Ni=new Set(["first","last","eq","gt","nth","lt","even","odd"]);function ct(e){return e.type!=="pseudo"?!1:Ni.has(e.name)?!0:e.name==="not"&&Array.isArray(e.data)?e.data.some(t=>t.some(ct)):!1}function Ci(e,t,u){const s=t!=null?parseInt(t,10):NaN;switch(e){case"first":return 1;case"nth":case"eq":return isFinite(s)?s>=0?s+1:1/0:0;case"lt":return isFinite(s)?s>=0?Math.min(s,u):1/0:0;case"gt":return isFinite(s)?1/0:0;case"odd":return 2*u;case"even":return 2*u-1;case"last":case"not":return 1/0}}function Ii(e){for(;e.parent;)e=e.parent;return e}function lu(e){const t=[],u=[];for(const s of e)s.some(ct)?t.push(s):u.push(s);return[u,t]}const Si={type:I.Universal,namespace:null},Li={type:I.Pseudo,name:"scope",data:null};function Ms(e,t,u={}){return ys([e],t,u)}function ys(e,t,u={}){if(typeof t=="function")return e.some(t);const[s,n]=lu(At(t));return s.length>0&&e.some(ou(s,u))||n.some(i=>Fs(i,e,u).length>0)}function Ri(e,t,u,s){const n=typeof u=="string"?parseInt(u,10):NaN;switch(e){case"first":case"lt":return t;case"last":return t.length>0?[t[t.length-1]]:t;case"nth":case"eq":return isFinite(n)&&Math.abs(n)<t.length?[n<0?t[t.length+n]:t[n]]:[];case"gt":return isFinite(n)?t.slice(n+1):[];case"even":return t.filter((i,c)=>c%2===0);case"odd":return t.filter((i,c)=>c%2===1);case"not":{const i=new Set(ks(u,t,s));return t.filter(c=>!i.has(c))}}}function Bs(e,t,u={}){return ks(At(e),t,u)}function ks(e,t,u){if(t.length===0)return[];const[s,n]=lu(e);let i;if(s.length){const c=Wt(t,s,u);if(n.length===0)return c;c.length&&(i=new Set(c))}for(let c=0;c<n.length&&(i==null?void 0:i.size)!==t.length;c++){const d=n[c];if((i?t.filter(A=>L(A)&&!i.has(A)):t).length===0)break;const E=Fs(d,t,u);if(E.length)if(i)E.forEach(A=>i.add(A));else{if(c===n.length-1)return E;i=new Set(E)}}return typeof i<"u"?i.size===t.length?t:t.filter(c=>i.has(c)):[]}function Fs(e,t,u){var s;if(e.some(Me)){const n=(s=u.root)!==null&&s!==void 0?s:Ii(t[0]),i={...u,context:t,relativeSelector:!1};return e.push(Li),ot(n,e,i,!0,t.length)}return ot(t,e,u,!1,t.length)}function Oi(e,t,u={},s=1/0){if(typeof e=="function")return Us(t,e);const[n,i]=lu(At(e)),c=i.map(d=>ot(t,d,u,!0,s));return n.length&&c.push(Gt(t,n,u,s)),c.length===0?[]:c.length===1?c[0]:Ie(c.reduce((d,h)=>[...d,...h]))}function ot(e,t,u,s,n){const i=t.findIndex(ct),c=t.slice(0,i),d=t[i],h=t.length-1===i?n:1/0,E=Ci(d.name,d.data,h);if(E===0)return[];const p=(c.length===0&&!Array.isArray(e)?Tt(e).filter(L):c.length===0?(Array.isArray(e)?e:[e]).filter(L):s||c.some(Me)?Gt(e,[c],u,E):Wt(e,[c],u)).slice(0,E);let N=Ri(d.name,p,d.data,u);if(N.length===0||t.length===i+1)return N;const C=t.slice(i+1),S=C.some(Me);if(S){if(Me(C[0])){const{type:B}=C[0];(B===I.Sibling||B===I.Adjacent)&&(N=Ps(N,bt,!0)),C.unshift(Si)}u={...u,relativeSelector:!1,rootFunc:B=>N.includes(B)}}else u.rootFunc&&u.rootFunc!==rt.trueFunc&&(u={...u,rootFunc:rt.trueFunc});return C.some(ct)?ot(N,C,u,!1,n):S?Gt(N,[C],u,n):Wt(N,[C],u)}function Gt(e,t,u,s){const n=ou(t,u,e);return Us(e,n,s)}function Us(e,t,u=1/0){const s=Ps(e,bt,t.shouldTestNextSiblings);return nu(n=>L(n)&&t(n),s,!0,u)}function Wt(e,t,u){const s=(Array.isArray(e)?e:[e]).filter(L);if(s.length===0)return s;const n=ou(t,u);return n===rt.trueFunc?s:s.filter(n)}const Di=/^\s*[~+]/;function xi(e){var t;if(!e)return this._make([]);const u=this.toArray();if(typeof e!="string"){const i=z(e)?e.toArray():[e];return this._make(i.filter(c=>u.some(d=>As(d,c))))}const s=Di.test(e)?u:this.children().toArray(),n={context:u,root:(t=this._root)===null||t===void 0?void 0:t[0],xmlMode:this.options.xmlMode,lowerCaseTags:this.options.lowerCaseTags,lowerCaseAttributeNames:this.options.lowerCaseAttributeNames,pseudos:this.options.pseudos,quirksMode:this.options.quirksMode};return this._make(Oi(e,s,n))}function du(e){return function(t,...u){return function(s){var n;let i=e(t,this);return s&&(i=Eu(i,s,this.options.xmlMode,(n=this._root)===null||n===void 0?void 0:n[0])),this._make(this.length>1&&i.length>1?u.reduce((c,d)=>d(c),i):i)}}}const Qe=du((e,t)=>{const u=[];for(let s=0;s<t.length;s++){const n=e(t[s]);u.push(n)}return new Array().concat(...u)}),hu=du((e,t)=>{const u=[];for(let s=0;s<t.length;s++){const n=e(t[s]);n!==null&&u.push(n)}return u});function fu(e,...t){let u=null;const s=du((n,i)=>{const c=[];return y(i,d=>{for(let h;(h=n(d))&&!(u!=null&&u(h,c.length));d=h)c.push(h)}),c})(e,...t);return function(n,i){u=typeof n=="string"?d=>Ms(d,n,this.options):n?Ve(n):null;const c=s.call(this,i);return u=null,c}}function Se(e){return Array.from(new Set(e))}const Pi=hu(({parent:e})=>e&&!he(e)?e:null,Se),Mi=Qe(e=>{const t=[];for(;e.parent&&!he(e.parent);)t.push(e.parent),e=e.parent;return t},Ie,e=>e.reverse()),yi=fu(({parent:e})=>e&&!he(e)?e:null,Ie,e=>e.reverse());function Bi(e){var t;const u=[];if(!e)return this._make(u);const s={xmlMode:this.options.xmlMode,root:(t=this._root)===null||t===void 0?void 0:t[0]},n=typeof e=="string"?i=>Ms(i,e,s):Ve(e);return y(this,i=>{for(;i&&L(i);){if(n(i,0)){u.includes(i)||u.push(i);break}i=i.parent}}),this._make(u)}const ki=hu(e=>su(e)),Fi=Qe(e=>{const t=[];for(;e.next;)e=e.next,L(e)&&t.push(e);return t},Se),Ui=fu(e=>su(e),Se),Hi=hu(e=>au(e)),wi=Qe(e=>{const t=[];for(;e.prev;)e=e.prev,L(e)&&t.push(e);return t},Se),vi=fu(e=>au(e),Se),Yi=Qe(e=>ds(e).filter(t=>L(t)&&t!==e),Ie),qi=Qe(e=>Tt(e).filter(L),Se);function Qi(){const e=this.toArray().reduce((t,u)=>H(u)?t.concat(u.children):t,[]);return this._make(e)}function Vi(e){let t=0;const u=this.length;for(;t<u&&e.call(this[t],t,this[t])!==!1;)++t;return this}function Gi(e){let t=[];for(let u=0;u<this.length;u++){const s=this[u],n=e.call(s,u,s);n!=null&&(t=t.concat(n))}return this._make(t)}function Ve(e){return typeof e=="function"?(t,u)=>e.call(t,u,t):z(e)?t=>Array.prototype.includes.call(e,t):function(t){return e===t}}function Wi(e){var t;return this._make(Eu(this.toArray(),e,this.options.xmlMode,(t=this._root)===null||t===void 0?void 0:t[0]))}function Eu(e,t,u,s){return typeof t=="string"?Bs(t,e,{xmlMode:u,root:s}):e.filter(Ve(t))}function Xi(e){const t=this.toArray();return typeof e=="string"?ys(t.filter(L),e,this.options):e?t.some(Ve(e)):!1}function Ki(e){let t=this.toArray();if(typeof e=="string"){const u=new Set(Bs(e,t,this.options));t=t.filter(s=>!u.has(s))}else{const u=Ve(e);t=t.filter((s,n)=>!u(s,n))}return this._make(t)}function $i(e){return this.filter(typeof e=="string"?`:has(${e})`:(t,u)=>this._make(u).find(e).length>0)}function ji(){return this.length>1?this._make(this[0]):this}function zi(){return this.length>0?this._make(this[this.length-1]):this}function Zi(e){var t;return e=+e,e===0&&this.length<=1?this:(e<0&&(e=this.length+e),this._make((t=this[e])!==null&&t!==void 0?t:[]))}function Ji(e){return e==null?this.toArray():this[e<0?this.length+e:e]}function er(){return Array.prototype.slice.call(this)}function tr(e){let t,u;return e==null?(t=this.parent().children(),u=this[0]):typeof e=="string"?(t=this._make(e),u=this[0]):(t=this,u=z(e)?e[0]:e),Array.prototype.indexOf.call(t,u)}function ur(e,t){return this._make(Array.prototype.slice.call(this,e,t))}function sr(){var e;return(e=this.prevObject)!==null&&e!==void 0?e:this._make([])}function ar(e,t){const u=this._make(e,t),s=Ie([...this.get(),...u.get()]);return this._make(s)}function nr(e){return this.prevObject?this.add(e?this.prevObject.filter(e):this.prevObject):this}const ir=Object.freeze(Object.defineProperty({__proto__:null,add:ar,addBack:nr,children:qi,closest:Bi,contents:Qi,each:Vi,end:sr,eq:Zi,filter:Wi,filterArray:Eu,find:xi,first:ji,get:Ji,has:$i,index:tr,is:Xi,last:zi,map:Gi,next:ki,nextAll:Fi,nextUntil:Ui,not:Ki,parent:Pi,parents:Mi,parentsUntil:yi,prev:Hi,prevAll:wi,prevUntil:vi,siblings:Yi,slice:ur,toArray:er},Symbol.toStringTag,{value:"Module"}));function rr(e){return function(u,s,n,i){if(typeof Buffer<"u"&&Buffer.isBuffer(u)&&(u=u.toString()),typeof u=="string")return e(u,s,n,i);const c=u;if(!Array.isArray(c)&&he(c))return c;const d=new le([]);return de(c,d),d}}function de(e,t){const u=Array.isArray(e)?e:[e];t?t.children=u:t=null;for(let s=0;s<u.length;s++){const n=u[s];n.parent&&n.parent.children!==u&&fe(n),t?(n.prev=u[s-1]||null,n.next=u[s+1]||null):n.prev=n.next=null,n.parent=t}return t}function cr(e,t){return e==null?[]:z(e)?t?Yt(e.get()):e.get():Array.isArray(e)?e.reduce((u,s)=>u.concat(this._makeDomArray(s,t)),[]):typeof e=="string"?this._parse(e,this.options,!1,null).children:t?Yt([e]):[e]}function Hs(e){return function(...t){const u=this.length-1;return y(this,(s,n)=>{if(!H(s))return;const i=typeof t[0]=="function"?t[0].call(s,n,this._render(s.children)):t,c=this._makeDomArray(i,n<u);e(c,s.children,s)})}}function ae(e,t,u,s,n){var i,c;const d=[t,u,...s],h=t===0?null:e[t-1],E=t+u>=e.length?null:e[t+u];for(let A=0;A<s.length;++A){const p=s[A],N=p.parent;if(N){const S=N.children.indexOf(p);S>-1&&(N.children.splice(S,1),n===N&&t>S&&d[0]--)}p.parent=n,p.prev&&(p.prev.next=(i=p.next)!==null&&i!==void 0?i:null),p.next&&(p.next.prev=(c=p.prev)!==null&&c!==void 0?c:null),p.prev=A===0?h:s[A-1],p.next=A===s.length-1?E:s[A+1]}return h&&(h.next=s[0]),E&&(E.prev=s[s.length-1]),e.splice(...d)}function or(e){return(z(e)?e:this._make(e)).append(this),this}function lr(e){return(z(e)?e:this._make(e)).prepend(this),this}const dr=Hs((e,t,u)=>{ae(t,t.length,0,e,u)}),hr=Hs((e,t,u)=>{ae(t,0,0,e,u)});function ws(e){return function(t){const u=this.length-1,s=this.parents().last();for(let n=0;n<this.length;n++){const i=this[n],c=typeof t=="function"?t.call(i,n,i):typeof t=="string"&&!qt(t)?s.find(t).clone():t,[d]=this._makeDomArray(c,n<u);if(!d||!H(d))continue;let h=d,E=0;for(;E<h.children.length;){const A=h.children[E];L(A)?(h=A,E=0):E++}e(i,h,[d])}return this}}const fr=ws((e,t,u)=>{const{parent:s}=e;if(!s)return;const n=s.children,i=n.indexOf(e);de([e],t),ae(n,i,0,u,s)}),Er=ws((e,t,u)=>{H(e)&&(de(e.children,t),de(u,e))});function Tr(e){return this.parent(e).not("body").each((t,u)=>{this._make(u).replaceWith(u.children)}),this}function mr(e){const t=this[0];if(t){const u=this._make(typeof e=="function"?e.call(t,0,t):e).insertBefore(t);let s;for(let i=0;i<u.length;i++)u[i].type==="tag"&&(s=u[i]);let n=0;for(;s&&n<s.children.length;){const i=s.children[n];i.type==="tag"?(s=i,n=0):n++}s&&this._make(s).append(this)}return this}function br(...e){const t=this.length-1;return y(this,(u,s)=>{const{parent:n}=u;if(!H(u)||!n)return;const i=n.children,c=i.indexOf(u);if(c<0)return;const d=typeof e[0]=="function"?e[0].call(u,s,this._render(u.children)):e,h=this._makeDomArray(d,s<t);ae(i,c+1,0,h,n)})}function Ar(e){typeof e=="string"&&(e=this._make(e)),this.remove();const t=[];return this._makeDomArray(e).forEach(u=>{const s=this.clone().toArray(),{parent:n}=u;if(!n)return;const i=n.children,c=i.indexOf(u);c<0||(ae(i,c+1,0,s,n),t.push(...s))}),this._make(t)}function _r(...e){const t=this.length-1;return y(this,(u,s)=>{const{parent:n}=u;if(!H(u)||!n)return;const i=n.children,c=i.indexOf(u);if(c<0)return;const d=typeof e[0]=="function"?e[0].call(u,s,this._render(u.children)):e,h=this._makeDomArray(d,s<t);ae(i,c,0,h,n)})}function gr(e){const t=this._make(e);this.remove();const u=[];return y(t,s=>{const n=this.clone().toArray(),{parent:i}=s;if(!i)return;const c=i.children,d=c.indexOf(s);d<0||(ae(c,d,0,n,i),u.push(...n))}),this._make(u)}function pr(e){const t=e?this.filter(e):this;return y(t,u=>{fe(u),u.prev=u.next=u.parent=null}),this}function Nr(e){return y(this,(t,u)=>{const{parent:s}=t;if(!s)return;const n=s.children,i=typeof e=="function"?e.call(t,u,t):e,c=this._makeDomArray(i);de(c,null);const d=n.indexOf(t);ae(n,d,1,c,s),c.includes(t)||(t.parent=t.prev=t.next=null)})}function Cr(){return y(this,e=>{H(e)&&(e.children.forEach(t=>{t.next=t.prev=t.parent=null}),e.children.length=0)})}function Ir(e){if(e===void 0){const t=this[0];return!t||!H(t)?null:this._render(t.children)}return y(this,t=>{if(!H(t))return;t.children.forEach(s=>{s.next=s.prev=s.parent=null});const u=z(e)?e.toArray():this._parse(`${e}`,this.options,!1,t).children;de(u,t)})}function Sr(){return this._render(this)}function Lr(e){return e===void 0?ve(this):typeof e=="function"?y(this,(t,u)=>this._make(t).text(e.call(t,u,ve([t])))):y(this,t=>{if(!H(t))return;t.children.forEach(s=>{s.next=s.prev=s.parent=null});const u=new we(`${e}`);de(u,t)})}function Rr(){return this._make(Yt(this.get()))}const Or=Object.freeze(Object.defineProperty({__proto__:null,_makeDomArray:cr,after:br,append:dr,appendTo:or,before:_r,clone:Rr,empty:Cr,html:Ir,insertAfter:Ar,insertBefore:gr,prepend:hr,prependTo:lr,remove:pr,replaceWith:Nr,text:Lr,toString:Sr,unwrap:Tr,wrap:fr,wrapAll:mr,wrapInner:Er},Symbol.toStringTag,{value:"Module"}));function Dr(e,t){if(e!=null&&t!=null||typeof e=="object"&&!Array.isArray(e))return y(this,(u,s)=>{L(u)&&vs(u,e,t,s)});if(this.length!==0)return Ys(this[0],e)}function vs(e,t,u,s){if(typeof t=="string"){const n=Ys(e),i=typeof u=="function"?u.call(e,s,n[t]):u;i===""?delete n[t]:i!=null&&(n[t]=i),e.attribs.style=xr(n)}else typeof t=="object"&&Object.keys(t).forEach((n,i)=>{vs(e,n,t[n],i)})}function Ys(e,t){if(!e||!L(e))return;const u=Pr(e.attribs.style);if(typeof t=="string")return u[t];if(Array.isArray(t)){const s={};return t.forEach(n=>{u[n]!=null&&(s[n]=u[n])}),s}return u}function xr(e){return Object.keys(e).reduce((t,u)=>`${t}${t?" ":""}${u}: ${e[u]};`,"")}function Pr(e){if(e=(e||"").trim(),!e)return{};const t={};let u;for(const s of e.split(";")){const n=s.indexOf(":");if(n<1||n===s.length-1){const i=s.trimEnd();i.length>0&&u!==void 0&&(t[u]+=`;${i}`)}else u=s.slice(0,n).trim(),t[u]=s.slice(n+1).trim()}return t}const Mr=Object.freeze(Object.defineProperty({__proto__:null,css:Dr},Symbol.toStringTag,{value:"Module"})),Bu="input,select,textarea,keygen",yr=/%20/g,ku=/\r?\n/g;function Br(){return this.serializeArray().map(u=>`${encodeURIComponent(u.name)}=${encodeURIComponent(u.value)}`).join("&").replace(yr,"+")}function kr(){return this.map((e,t)=>{const u=this._make(t);return L(t)&&t.name==="form"?u.find(Bu).toArray():u.filter(Bu).toArray()}).filter('[name!=""]:enabled:not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map((e,t)=>{var u;const s=this._make(t),n=s.attr("name"),i=(u=s.val())!==null&&u!==void 0?u:"";return Array.isArray(i)?i.map(c=>({name:n,value:c.replace(ku,`\r
`)})):{name:n,value:i.replace(ku,`\r
`)}}).toArray()}const Fr=Object.freeze(Object.defineProperty({__proto__:null,serialize:Br,serializeArray:kr},Symbol.toStringTag,{value:"Module"}));class Ge{constructor(t,u,s){if(this.length=0,this.options=s,this._root=u,t){for(let n=0;n<t.length;n++)this[n]=t[n];this.length=t.length}}}Ge.prototype.cheerio="[cheerio object]";Ge.prototype.splice=Array.prototype.splice;Ge.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Ge.prototype,Xn,ir,Or,Mr,Fr);function Ur(e,t){return function u(s,n,i=!0){if(s==null)throw new Error("cheerio.load() expects a string");const c={...jt,...Ut(n)},d=e(s,c,i,null);class h extends Ge{_make(p,N){const C=E(p,N);return C.prevObject=this,C}_parse(p,N,C,S){return e(p,N,C,S)}_render(p){return t(p,this.options)}}function E(A,p,N=d,C){if(A&&z(A))return A;const S={...c,...Ut(C)},B=typeof N=="string"?[e(N,S,!1,null)]:"length"in N?N:[N],P=z(B)?B:new h(B,null,S);if(P._root=P,!A)return new h(void 0,P,S);const Te=typeof A=="string"&&qt(A)?e(A,S,!1,null).children:Hr(A)?[A]:Array.isArray(A)?A:void 0,me=new h(Te,P,S);if(Te)return me;if(typeof A!="string")throw new Error("Unexpected type of selector");let Le=A;const Re=p?typeof p=="string"?qt(p)?new h([e(p,S,!1,null)],P,S):(Le=`${p} ${Le}`,P):z(p)?p:new h(Array.isArray(p)?p:[p],P,S):P;return Re?Re.find(Le):me}return Object.assign(E,Un,{load:u,_root:d,_options:c,fn:h.prototype,prototype:h.prototype}),E}}function Hr(e){return!!e.name||e.type==="root"||e.type==="text"||e.type==="comment"}const wr=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]),M="�";var r;(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"})(r=r||(r={}));const v={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function qs(e){return e>=55296&&e<=57343}function vr(e){return e>=56320&&e<=57343}function Yr(e,t){return(e-55296)*1024+9216+t}function Qs(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Vs(e){return e>=64976&&e<=65007||wr.has(e)}var T;(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"})(T=T||(T={}));const qr=65536;class Qr{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=qr,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t){const{line:u,col:s,offset:n}=this;return{code:t,startLine:u,endLine:u,startCol:s,endCol:s,startOffset:n,endOffset:n}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const u=this.html.charCodeAt(this.pos+1);if(vr(u))return this.pos++,this._addGap(),Yr(t,u)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,r.EOF;return this._err(T.surrogateInInputStream),t}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(t,u){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=u}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,u){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(u)return this.html.startsWith(t,this.pos);for(let s=0;s<t.length;s++)if((this.html.charCodeAt(this.pos+s)|32)!==t.charCodeAt(s))return!1;return!0}peek(t){const u=this.pos+t;if(u>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,r.EOF;const s=this.html.charCodeAt(u);return s===r.CARRIAGE_RETURN?r.LINE_FEED:s}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,r.EOF;let t=this.html.charCodeAt(this.pos);return t===r.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,r.LINE_FEED):t===r.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,qs(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===r.LINE_FEED||t===r.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Qs(t)?this._err(T.controlCharacterInInputStream):Vs(t)&&this._err(T.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var O;(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"})(O=O||(O={}));function Gs(e,t){for(let u=e.attrs.length-1;u>=0;u--)if(e.attrs[u].name===t)return e.attrs[u].value;return null}var m;(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/"})(m=m||(m={}));var se;(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"})(se=se||(se={}));var Q;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Q=Q||(Q={}));var f;(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"})(f=f||(f={}));var a;(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"})(a=a||(a={}));const Vr=new Map([[f.A,a.A],[f.ADDRESS,a.ADDRESS],[f.ANNOTATION_XML,a.ANNOTATION_XML],[f.APPLET,a.APPLET],[f.AREA,a.AREA],[f.ARTICLE,a.ARTICLE],[f.ASIDE,a.ASIDE],[f.B,a.B],[f.BASE,a.BASE],[f.BASEFONT,a.BASEFONT],[f.BGSOUND,a.BGSOUND],[f.BIG,a.BIG],[f.BLOCKQUOTE,a.BLOCKQUOTE],[f.BODY,a.BODY],[f.BR,a.BR],[f.BUTTON,a.BUTTON],[f.CAPTION,a.CAPTION],[f.CENTER,a.CENTER],[f.CODE,a.CODE],[f.COL,a.COL],[f.COLGROUP,a.COLGROUP],[f.DD,a.DD],[f.DESC,a.DESC],[f.DETAILS,a.DETAILS],[f.DIALOG,a.DIALOG],[f.DIR,a.DIR],[f.DIV,a.DIV],[f.DL,a.DL],[f.DT,a.DT],[f.EM,a.EM],[f.EMBED,a.EMBED],[f.FIELDSET,a.FIELDSET],[f.FIGCAPTION,a.FIGCAPTION],[f.FIGURE,a.FIGURE],[f.FONT,a.FONT],[f.FOOTER,a.FOOTER],[f.FOREIGN_OBJECT,a.FOREIGN_OBJECT],[f.FORM,a.FORM],[f.FRAME,a.FRAME],[f.FRAMESET,a.FRAMESET],[f.H1,a.H1],[f.H2,a.H2],[f.H3,a.H3],[f.H4,a.H4],[f.H5,a.H5],[f.H6,a.H6],[f.HEAD,a.HEAD],[f.HEADER,a.HEADER],[f.HGROUP,a.HGROUP],[f.HR,a.HR],[f.HTML,a.HTML],[f.I,a.I],[f.IMG,a.IMG],[f.IMAGE,a.IMAGE],[f.INPUT,a.INPUT],[f.IFRAME,a.IFRAME],[f.KEYGEN,a.KEYGEN],[f.LABEL,a.LABEL],[f.LI,a.LI],[f.LINK,a.LINK],[f.LISTING,a.LISTING],[f.MAIN,a.MAIN],[f.MALIGNMARK,a.MALIGNMARK],[f.MARQUEE,a.MARQUEE],[f.MATH,a.MATH],[f.MENU,a.MENU],[f.META,a.META],[f.MGLYPH,a.MGLYPH],[f.MI,a.MI],[f.MO,a.MO],[f.MN,a.MN],[f.MS,a.MS],[f.MTEXT,a.MTEXT],[f.NAV,a.NAV],[f.NOBR,a.NOBR],[f.NOFRAMES,a.NOFRAMES],[f.NOEMBED,a.NOEMBED],[f.NOSCRIPT,a.NOSCRIPT],[f.OBJECT,a.OBJECT],[f.OL,a.OL],[f.OPTGROUP,a.OPTGROUP],[f.OPTION,a.OPTION],[f.P,a.P],[f.PARAM,a.PARAM],[f.PLAINTEXT,a.PLAINTEXT],[f.PRE,a.PRE],[f.RB,a.RB],[f.RP,a.RP],[f.RT,a.RT],[f.RTC,a.RTC],[f.RUBY,a.RUBY],[f.S,a.S],[f.SCRIPT,a.SCRIPT],[f.SECTION,a.SECTION],[f.SELECT,a.SELECT],[f.SOURCE,a.SOURCE],[f.SMALL,a.SMALL],[f.SPAN,a.SPAN],[f.STRIKE,a.STRIKE],[f.STRONG,a.STRONG],[f.STYLE,a.STYLE],[f.SUB,a.SUB],[f.SUMMARY,a.SUMMARY],[f.SUP,a.SUP],[f.TABLE,a.TABLE],[f.TBODY,a.TBODY],[f.TEMPLATE,a.TEMPLATE],[f.TEXTAREA,a.TEXTAREA],[f.TFOOT,a.TFOOT],[f.TD,a.TD],[f.TH,a.TH],[f.THEAD,a.THEAD],[f.TITLE,a.TITLE],[f.TR,a.TR],[f.TRACK,a.TRACK],[f.TT,a.TT],[f.U,a.U],[f.UL,a.UL],[f.SVG,a.SVG],[f.VAR,a.VAR],[f.WBR,a.WBR],[f.XMP,a.XMP]]);function _t(e){var t;return(t=Vr.get(e))!==null&&t!==void 0?t:a.UNKNOWN}const _=a,Gr={[m.HTML]:new Set([_.ADDRESS,_.APPLET,_.AREA,_.ARTICLE,_.ASIDE,_.BASE,_.BASEFONT,_.BGSOUND,_.BLOCKQUOTE,_.BODY,_.BR,_.BUTTON,_.CAPTION,_.CENTER,_.COL,_.COLGROUP,_.DD,_.DETAILS,_.DIR,_.DIV,_.DL,_.DT,_.EMBED,_.FIELDSET,_.FIGCAPTION,_.FIGURE,_.FOOTER,_.FORM,_.FRAME,_.FRAMESET,_.H1,_.H2,_.H3,_.H4,_.H5,_.H6,_.HEAD,_.HEADER,_.HGROUP,_.HR,_.HTML,_.IFRAME,_.IMG,_.INPUT,_.LI,_.LINK,_.LISTING,_.MAIN,_.MARQUEE,_.MENU,_.META,_.NAV,_.NOEMBED,_.NOFRAMES,_.NOSCRIPT,_.OBJECT,_.OL,_.P,_.PARAM,_.PLAINTEXT,_.PRE,_.SCRIPT,_.SECTION,_.SELECT,_.SOURCE,_.STYLE,_.SUMMARY,_.TABLE,_.TBODY,_.TD,_.TEMPLATE,_.TEXTAREA,_.TFOOT,_.TH,_.THEAD,_.TITLE,_.TR,_.TRACK,_.UL,_.WBR,_.XMP]),[m.MATHML]:new Set([_.MI,_.MO,_.MN,_.MS,_.MTEXT,_.ANNOTATION_XML]),[m.SVG]:new Set([_.TITLE,_.FOREIGN_OBJECT,_.DESC]),[m.XLINK]:new Set,[m.XML]:new Set,[m.XMLNS]:new Set};function Ws(e){return e===_.H1||e===_.H2||e===_.H3||e===_.H4||e===_.H5||e===_.H6}const Wr=new Set([f.STYLE,f.SCRIPT,f.XMP,f.IFRAME,f.NOEMBED,f.NOFRAMES,f.PLAINTEXT]);function Xr(e,t){return Wr.has(e)||t&&e===f.NOSCRIPT}const Kr=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 o;(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"})(o||(o={}));const V={DATA:o.DATA,RCDATA:o.RCDATA,RAWTEXT:o.RAWTEXT,SCRIPT_DATA:o.SCRIPT_DATA,PLAINTEXT:o.PLAINTEXT,CDATA_SECTION:o.CDATA_SECTION};function ye(e){return e>=r.DIGIT_0&&e<=r.DIGIT_9}function Pe(e){return e>=r.LATIN_CAPITAL_A&&e<=r.LATIN_CAPITAL_Z}function $r(e){return e>=r.LATIN_SMALL_A&&e<=r.LATIN_SMALL_Z}function te(e){return $r(e)||Pe(e)}function Xt(e){return te(e)||ye(e)}function Xs(e){return e>=r.LATIN_CAPITAL_A&&e<=r.LATIN_CAPITAL_F}function Ks(e){return e>=r.LATIN_SMALL_A&&e<=r.LATIN_SMALL_F}function jr(e){return ye(e)||Xs(e)||Ks(e)}function je(e){return e+32}function $s(e){return e===r.SPACE||e===r.LINE_FEED||e===r.TABULATION||e===r.FORM_FEED}function zr(e){return e===r.EQUALS_SIGN||Xt(e)}function Fu(e){return $s(e)||e===r.SOLIDUS||e===r.GREATER_THAN_SIGN}let Zr=class{constructor(t,u){this.options=t,this.handler=u,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=o.DATA,this.returnState=o.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Qr(u),this.currentLocation=this.getCurrentLocation(-1)}_err(t){var u,s;(s=(u=this.handler).onParseError)===null||s===void 0||s.call(u,this.preprocessor.getError(t))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,u,s){this.active=!0,this.preprocessor.write(t,u),this._runParsingLoop(),this.paused||s==null||s()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(t){this.consumedAfterSnapshot-=t,this.preprocessor.retreat(t)}_reconsumeInState(t,u){this.state=t,this._callState(u)}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let u=0;u<t;u++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,u){return this.preprocessor.startsWith(t,u)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:O.START_TAG,tagName:"",tagID:a.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:O.END_TAG,tagName:"",tagID:a.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:O.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:O.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,u){this.currentCharacterToken={type:t,chars:u,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,u;const s=this.currentToken;if(Gs(s,this.currentAttr.name)===null){if(s.attrs.push(this.currentAttr),s.location&&this.currentLocation){const n=(t=(u=s.location).attrs)!==null&&t!==void 0?t:u.attrs=Object.create(null);n[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(T.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=_t(t.tagName),t.type===O.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(T.endTagWithAttributes),t.selfClosing&&this._err(T.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case O.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case O.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case O.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:O.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,u){if(this.currentCharacterToken)if(this.currentCharacterToken.type!==t)this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();else{this.currentCharacterToken.chars+=u;return}this._createCharacterToken(t,u)}_emitCodePoint(t){const u=$s(t)?O.WHITESPACE_CHARACTER:t===r.NULL?O.NULL_CHARACTER:O.CHARACTER;this._appendCharToCurrentCharacterToken(u,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(O.CHARACTER,t)}_matchNamedCharacterReference(t){let u=null,s=0,n=!1;for(let i=0,c=ee[0];i>=0&&(i=uu(ee,c,i+1,t),!(i<0));t=this._consume()){s+=1,c=ee[i];const d=c&G.VALUE_LENGTH;if(d){const h=(d>>14)-1;if(t!==r.SEMICOLON&&this._isCharacterReferenceInAttribute()&&zr(this.preprocessor.peek(1))?(u=[r.AMPERSAND],i+=h):(u=h===0?[ee[i]&~G.VALUE_LENGTH]:h===1?[ee[++i]]:[ee[++i],ee[++i]],s=0,n=t!==r.SEMICOLON),h===0){this._consume();break}}}return this._unconsume(s),n&&!this.preprocessor.endOfChunkHit&&this._err(T.missingSemicolonAfterCharacterReference),this._unconsume(1),u}_isCharacterReferenceInAttribute(){return this.returnState===o.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===o.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===o.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case o.DATA:{this._stateData(t);break}case o.RCDATA:{this._stateRcdata(t);break}case o.RAWTEXT:{this._stateRawtext(t);break}case o.SCRIPT_DATA:{this._stateScriptData(t);break}case o.PLAINTEXT:{this._statePlaintext(t);break}case o.TAG_OPEN:{this._stateTagOpen(t);break}case o.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case o.TAG_NAME:{this._stateTagName(t);break}case o.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case o.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case o.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case o.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case o.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case o.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case o.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case o.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case o.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case o.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case o.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case o.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case o.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case o.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case o.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case o.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case o.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case o.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case o.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case o.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case o.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case o.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case o.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case o.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case o.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case o.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case o.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case o.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case o.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case o.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case o.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case o.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case o.BOGUS_COMMENT:{this._stateBogusComment(t);break}case o.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case o.COMMENT_START:{this._stateCommentStart(t);break}case o.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case o.COMMENT:{this._stateComment(t);break}case o.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case o.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case o.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case o.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case o.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case o.COMMENT_END:{this._stateCommentEnd(t);break}case o.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case o.DOCTYPE:{this._stateDoctype(t);break}case o.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case o.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case o.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case o.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case o.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case o.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case o.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case o.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case o.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case o.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case o.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case o.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case o.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case o.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case o.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case o.CDATA_SECTION:{this._stateCdataSection(t);break}case o.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case o.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case o.CHARACTER_REFERENCE:{this._stateCharacterReference(t);break}case o.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(t);break}case o.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}case o.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(t);break}case o.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(t);break}case o.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(t);break}case o.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(t);break}case o.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case r.LESS_THAN_SIGN:{this.state=o.TAG_OPEN;break}case r.AMPERSAND:{this.returnState=o.DATA,this.state=o.CHARACTER_REFERENCE;break}case r.NULL:{this._err(T.unexpectedNullCharacter),this._emitCodePoint(t);break}case r.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case r.AMPERSAND:{this.returnState=o.RCDATA,this.state=o.CHARACTER_REFERENCE;break}case r.LESS_THAN_SIGN:{this.state=o.RCDATA_LESS_THAN_SIGN;break}case r.NULL:{this._err(T.unexpectedNullCharacter),this._emitChars(M);break}case r.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case r.LESS_THAN_SIGN:{this.state=o.RAWTEXT_LESS_THAN_SIGN;break}case r.NULL:{this._err(T.unexpectedNullCharacter),this._emitChars(M);break}case r.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case r.LESS_THAN_SIGN:{this.state=o.SCRIPT_DATA_LESS_THAN_SIGN;break}case r.NULL:{this._err(T.unexpectedNullCharacter),this._emitChars(M);break}case r.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case r.NULL:{this._err(T.unexpectedNullCharacter),this._emitChars(M);break}case r.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(te(t))this._createStartTagToken(),this.state=o.TAG_NAME,this._stateTagName(t);else switch(t){case r.EXCLAMATION_MARK:{this.state=o.MARKUP_DECLARATION_OPEN;break}case r.SOLIDUS:{this.state=o.END_TAG_OPEN;break}case r.QUESTION_MARK:{this._err(T.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=o.BOGUS_COMMENT,this._stateBogusComment(t);break}case r.EOF:{this._err(T.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(T.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=o.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(te(t))this._createEndTagToken(),this.state=o.TAG_NAME,this._stateTagName(t);else switch(t){case r.GREATER_THAN_SIGN:{this._err(T.missingEndTagName),this.state=o.DATA;break}case r.EOF:{this._err(T.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(T.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=o.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const u=this.currentToken;switch(t){case r.SPACE:case r.LINE_FEED:case r.TABULATION:case r.FORM_FEED:{this.state=o.BEFORE_ATTRIBUTE_NAME;break}case r.SOLIDUS:{this.state=o.SELF_CLOSING_START_TAG;break}case r.GREATER_THAN_SIGN:{this.state=o.DATA,this.emitCurrentTagToken();break}case r.NULL:{this._err(T.unexpectedNullCharacter),u.tagName+=M;break}case r.EOF:{this._err(T.eofInTag),this._emitEOFToken();break}default:u.tagName+=String.fromCodePoint(Pe(t)?je(t):t)}}_stateRcdataLessThanSign(t){t===r.SOLIDUS?this.state=o.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=o.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){te(t)?(this.state=o.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=o.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const u=this.currentToken;switch(u.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case r.SPACE:case r.LINE_FEED:case r.TABULATION:case r.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=o.BEFORE_ATTRIBUTE_NAME,!1;case r.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=o.SELF_CLOSING_START_TAG,!1;case r.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=o.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=o.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===r.SOLIDUS?this.state=o.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=o.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){te(t)?(this.state=o.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=o.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=o.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case r.SOLIDUS:{this.state=o.SCRIPT_DATA_END_TAG_OPEN;break}case r.EXCLAMATION_MARK:{this.state=o.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=o.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){te(t)?(this.state=o.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=o.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=o.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===r.HYPHEN_MINUS?(this.state=o.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=o.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===r.HYPHEN_MINUS?(this.state=o.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=o.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case r.HYPHEN_MINUS:{this.state=o.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case r.LESS_THAN_SIGN:{this.state=o.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case r.NULL:{this._err(T.unexpectedNullCharacter),this._emitChars(M);break}case r.EOF:{this._err(T.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case r.HYPHEN_MINUS:{this.state=o.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case r.LESS_THAN_SIGN:{this.state=o.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case r.NULL:{this._err(T.unexpectedNullCharacter),this.state=o.SCRIPT_DATA_ESCAPED,this._emitChars(M);break}case r.EOF:{this._err(T.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=o.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case r.HYPHEN_MINUS:{this._emitChars("-");break}case r.LESS_THAN_SIGN:{this.state=o.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case r.GREATER_THAN_SIGN:{this.state=o.SCRIPT_DATA,this._emitChars(">");break}case r.NULL:{this._err(T.unexpectedNullCharacter),this.state=o.SCRIPT_DATA_ESCAPED,this._emitChars(M);break}case r.EOF:{this._err(T.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=o.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===r.SOLIDUS?this.state=o.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:te(t)?(this._emitChars("<"),this.state=o.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=o.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){te(t)?(this.state=o.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=o.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=o.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(v.SCRIPT,!1)&&Fu(this.preprocessor.peek(v.SCRIPT.length))){this._emitCodePoint(t);for(let u=0;u<v.SCRIPT.length;u++)this._emitCodePoint(this._consume());this.state=o.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=o.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case r.HYPHEN_MINUS:{this.state=o.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case r.LESS_THAN_SIGN:{this.state=o.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case r.NULL:{this._err(T.unexpectedNullCharacter),this._emitChars(M);break}case r.EOF:{this._err(T.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case r.HYPHEN_MINUS:{this.state=o.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case r.LESS_THAN_SIGN:{this.state=o.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case r.NULL:{this._err(T.unexpectedNullCharacter),this.state=o.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(M);break}case r.EOF:{this._err(T.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=o.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case r.HYPHEN_MINUS:{this._emitChars("-");break}case r.LESS_THAN_SIGN:{this.state=o.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case r.GREATER_THAN_SIGN:{this.state=o.SCRIPT_DATA,this._emitChars(">");break}case r.NULL:{this._err(T.unexpectedNullCharacter),this.state=o.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(M);break}case r.EOF:{this._err(T.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=o.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===r.SOLIDUS?(this.state=o.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=o.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(v.SCRIPT,!1)&&Fu(this.preprocessor.peek(v.SCRIPT.length))){this._emitCodePoint(t);for(let u=0;u<v.SCRIPT.length;u++)this._emitCodePoint(this._consume());this.state=o.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=o.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case r.SPACE:case r.LINE_FEED:case r.TABULATION:case r.FORM_FEED:break;case r.SOLIDUS:case r.GREATER_THAN_SIGN:case r.EOF:{this.state=o.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case r.EQUALS_SIGN:{this._err(T.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=o.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=o.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case r.SPACE:case r.LINE_FEED:case r.TABULATION:case r.FORM_FEED:case r.SOLIDUS:case r.GREATER_THAN_SIGN:case r.EOF:{this._leaveAttrName(),this.state=o.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case r.EQUALS_SIGN:{this._leaveAttrName(),this.state=o.BEFORE_ATTRIBUTE_VALUE;break}case r.QUOTATION_MARK:case r.APOSTROPHE:case r.LESS_THAN_SIGN:{this._err(T.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case r.NULL:{this._err(T.unexpectedNullCharacter),this.currentAttr.name+=M;break}default:this.currentAttr.name+=String.fromCodePoint(Pe(t)?je(t):t)}}_stateAfterAttributeName(t){switch(t){case r.SPACE:case r.LINE_FEED:case r.TABULATION:case r.FORM_FEED:break;case r.SOLIDUS:{this.state=o.SELF_CLOSING_START_TAG;break}case r.EQUALS_SIGN:{this.state=o.BEFORE_ATTRIBUTE_VALUE;break}case r.GREATER_THAN_SIGN:{this.state=o.DATA,this.emitCurrentTagToken();break}case r.EOF:{this._err(T.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=o.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case r.SPACE:case r.LINE_FEED:case r.TABULATION:case r.FORM_FEED:break;case r.QUOTATION_MARK:{this.state=o.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case r.APOSTROPHE:{this.state=o.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case r.GREATER_THAN_SIGN:{this._err(T.missingAttributeValue),this.state=o.DATA,this.emitCurrentTagToken();break}default:this.state=o.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case r.QUOTATION_MARK:{this.state=o.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case r.AMPERSAND:{this.returnState=o.ATTRIBUTE_VALUE_DOUBLE_QUOTED,this.state=o.CHARACTER_REFERENCE;break}case r.NULL:{this._err(T.unexpectedNullCharacter),this.currentAttr.value+=M;break}case r.EOF:{this._err(T.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case r.APOSTROPHE:{this.state=o.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case r.AMPERSAND:{this.returnState=o.ATTRIBUTE_VALUE_SINGLE_QUOTED,this.state=o.CHARACTER_REFERENCE;break}case r.NULL:{this._err(T.unexpectedNullCharacter),this.currentAttr.value+=M;break}case r.EOF:{this._err(T.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case r.SPACE:case r.LINE_FEED:case r.TABULATION:case r.FORM_FEED:{this._leaveAttrValue(),this.state=o.BEFORE_ATTRIBUTE_NAME;break}case r.AMPERSAND:{this.returnState=o.ATTRIBUTE_VALUE_UNQUOTED,this.state=o.CHARACTER_REFERENCE;break}case r.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=o.DATA,this.emitCurrentTagToken();break}case r.NULL:{this._err(T.unexpectedNullCharacter),this.currentAttr.value+=M;break}case r.QUOTATION_MARK:case r.APOSTROPHE:case r.LESS_THAN_SIGN:case r.EQUALS_SIGN:case r.GRAVE_ACCENT:{this._err(T.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case r.EOF:{this._err(T.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case r.SPACE:case r.LINE_FEED:case r.TABULATION:case r.FORM_FEED:{this._leaveAttrValue(),this.state=o.BEFORE_ATTRIBUTE_NAME;break}case r.SOLIDUS:{this._leaveAttrValue(),this.state=o.SELF_CLOSING_START_TAG;break}case r.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=o.DATA,this.emitCurrentTagToken();break}case r.EOF:{this._err(T.eofInTag),this._emitEOFToken();break}default:this._err(T.missingWhitespaceBetweenAttributes),this.state=o.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case r.GREATER_THAN_SIGN:{const u=this.currentToken;u.selfClosing=!0,this.state=o.DATA,this.emitCurrentTagToken();break}case r.EOF:{this._err(T.eofInTag),this._emitEOFToken();break}default:this._err(T.unexpectedSolidusInTag),this.state=o.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const u=this.currentToken;switch(t){case r.GREATER_THAN_SIGN:{this.state=o.DATA,this.emitCurrentComment(u);break}case r.EOF:{this.emitCurrentComment(u),this._emitEOFToken();break}case r.NULL:{this._err(T.unexpectedNullCharacter),u.data+=M;break}default:u.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(v.DASH_DASH,!0)?(this._createCommentToken(v.DASH_DASH.length+1),this.state=o.COMMENT_START):this._consumeSequenceIfMatch(v.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(v.DOCTYPE.length+1),this.state=o.DOCTYPE):this._consumeSequenceIfMatch(v.CDATA_START,!0)?this.inForeignNode?this.state=o.CDATA_SECTION:(this._err(T.cdataInHtmlContent),this._createCommentToken(v.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=o.BOGUS_COMMENT):this._ensureHibernation()||(this._err(T.incorrectlyOpenedComment),this._createCommentToken(2),this.state=o.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case r.HYPHEN_MINUS:{this.state=o.COMMENT_START_DASH;break}case r.GREATER_THAN_SIGN:{this._err(T.abruptClosingOfEmptyComment),this.state=o.DATA;const u=this.currentToken;this.emitCurrentComment(u);break}default:this.state=o.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const u=this.currentToken;switch(t){case r.HYPHEN_MINUS:{this.state=o.COMMENT_END;break}case r.GREATER_THAN_SIGN:{this._err(T.abruptClosingOfEmptyComment),this.state=o.DATA,this.emitCurrentComment(u);break}case r.EOF:{this._err(T.eofInComment),this.emitCurrentComment(u),this._emitEOFToken();break}default:u.data+="-",this.state=o.COMMENT,this._stateComment(t)}}_stateComment(t){const u=this.currentToken;switch(t){case r.HYPHEN_MINUS:{this.state=o.COMMENT_END_DASH;break}case r.LESS_THAN_SIGN:{u.data+="<",this.state=o.COMMENT_LESS_THAN_SIGN;break}case r.NULL:{this._err(T.unexpectedNullCharacter),u.data+=M;break}case r.EOF:{this._err(T.eofInComment),this.emitCurrentComment(u),this._emitEOFToken();break}default:u.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const u=this.currentToken;switch(t){case r.EXCLAMATION_MARK:{u.data+="!",this.state=o.COMMENT_LESS_THAN_SIGN_BANG;break}case r.LESS_THAN_SIGN:{u.data+="<";break}default:this.state=o.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===r.HYPHEN_MINUS?this.state=o.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=o.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===r.HYPHEN_MINUS?this.state=o.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=o.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==r.GREATER_THAN_SIGN&&t!==r.EOF&&this._err(T.nestedComment),this.state=o.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const u=this.currentToken;switch(t){case r.HYPHEN_MINUS:{this.state=o.COMMENT_END;break}case r.EOF:{this._err(T.eofInComment),this.emitCurrentComment(u),this._emitEOFToken();break}default:u.data+="-",this.state=o.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const u=this.currentToken;switch(t){case r.GREATER_THAN_SIGN:{this.state=o.DATA,this.emitCurrentComment(u);break}case r.EXCLAMATION_MARK:{this.state=o.COMMENT_END_BANG;break}case r.HYPHEN_MINUS:{u.data+="-";break}case r.EOF:{this._err(T.eofInComment),this.emitCurrentComment(u),this._emitEOFToken();break}default:u.data+="--",this.state=o.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const u=this.currentToken;switch(t){case r.HYPHEN_MINUS:{u.data+="--!",this.state=o.COMMENT_END_DASH;break}case r.GREATER_THAN_SIGN:{this._err(T.incorrectlyClosedComment),this.state=o.DATA,this.emitCurrentComment(u);break}case r.EOF:{this._err(T.eofInComment),this.emitCurrentComment(u),this._emitEOFToken();break}default:u.data+="--!",this.state=o.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case r.SPACE:case r.LINE_FEED:case r.TABULATION:case r.FORM_FEED:{this.state=o.BEFORE_DOCTYPE_NAME;break}case r.GREATER_THAN_SIGN:{this.state=o.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case r.EOF:{this._err(T.eofInDoctype),this._createDoctypeToken(null);const u=this.currentToken;u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:this._err(T.missingWhitespaceBeforeDoctypeName),this.state=o.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Pe(t))this._createDoctypeToken(String.fromCharCode(je(t))),this.state=o.DOCTYPE_NAME;else switch(t){case r.SPACE:case r.LINE_FEED:case r.TABULATION:case r.FORM_FEED:break;case r.NULL:{this._err(T.unexpectedNullCharacter),this._createDoctypeToken(M),this.state=o.DOCTYPE_NAME;break}case r.GREATER_THAN_SIGN:{this._err(T.missingDoctypeName),this._createDoctypeToken(null);const u=this.currentToken;u.forceQuirks=!0,this.emitCurrentDoctype(u),this.state=o.DATA;break}case r.EOF:{this._err(T.eofInDoctype),this._createDoctypeToken(null);const u=this.currentToken;u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=o.DOCTYPE_NAME}}_stateDoctypeName(t){const u=this.currentToken;switch(t){case r.SPACE:case r.LINE_FEED:case r.TABULATION:case r.FORM_FEED:{this.state=o.AFTER_DOCTYPE_NAME;break}case r.GREATER_THAN_SIGN:{this.state=o.DATA,this.emitCurrentDoctype(u);break}case r.NULL:{this._err(T.unexpectedNullCharacter),u.name+=M;break}case r.EOF:{this._err(T.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:u.name+=String.fromCodePoint(Pe(t)?je(t):t)}}_stateAfterDoctypeName(t){const u=this.currentToken;switch(t){case r.SPACE:case r.LINE_FEED:case r.TABULATION:case r.FORM_FEED:break;case r.GREATER_THAN_SIGN:{this.state=o.DATA,this.emitCurrentDoctype(u);break}case r.EOF:{this._err(T.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(v.PUBLIC,!1)?this.state=o.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(v.SYSTEM,!1)?this.state=o.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(T.invalidCharacterSequenceAfterDoctypeName),u.forceQuirks=!0,this.state=o.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const u=this.currentToken;switch(t){case r.SPACE:case r.LINE_FEED:case r.TABULATION:case r.FORM_FEED:{this.state=o.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case r.QUOTATION_MARK:{this._err(T.missingWhitespaceAfterDoctypePublicKeyword),u.publicId="",this.state=o.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case r.APOSTROPHE:{this._err(T.missingWhitespaceAfterDoctypePublicKeyword),u.publicId="",this.state=o.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case r.GREATER_THAN_SIGN:{this._err(T.missingDoctypePublicIdentifier),u.forceQuirks=!0,this.state=o.DATA,this.emitCurrentDoctype(u);break}case r.EOF:{this._err(T.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:this._err(T.missingQuoteBeforeDoctypePublicIdentifier),u.forceQuirks=!0,this.state=o.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const u=this.currentToken;switch(t){case r.SPACE:case r.LINE_FEED:case r.TABULATION:case r.FORM_FEED:break;case r.QUOTATION_MARK:{u.publicId="",this.state=o.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case r.APOSTROPHE:{u.publicId="",this.state=o.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case r.GREATER_THAN_SIGN:{this._err(T.missingDoctypePublicIdentifier),u.forceQuirks=!0,this.state=o.DATA,this.emitCurrentDoctype(u);break}case r.EOF:{this._err(T.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:this._err(T.missingQuoteBeforeDoctypePublicIdentifier),u.forceQuirks=!0,this.state=o.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const u=this.currentToken;switch(t){case r.QUOTATION_MARK:{this.state=o.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case r.NULL:{this._err(T.unexpectedNullCharacter),u.publicId+=M;break}case r.GREATER_THAN_SIGN:{this._err(T.abruptDoctypePublicIdentifier),u.forceQuirks=!0,this.emitCurrentDoctype(u),this.state=o.DATA;break}case r.EOF:{this._err(T.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:u.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const u=this.currentToken;switch(t){case r.APOSTROPHE:{this.state=o.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case r.NULL:{this._err(T.unexpectedNullCharacter),u.publicId+=M;break}case r.GREATER_THAN_SIGN:{this._err(T.abruptDoctypePublicIdentifier),u.forceQuirks=!0,this.emitCurrentDoctype(u),this.state=o.DATA;break}case r.EOF:{this._err(T.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:u.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const u=this.currentToken;switch(t){case r.SPACE:case r.LINE_FEED:case r.TABULATION:case r.FORM_FEED:{this.state=o.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case r.GREATER_THAN_SIGN:{this.state=o.DATA,this.emitCurrentDoctype(u);break}case r.QUOTATION_MARK:{this._err(T.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),u.systemId="",this.state=o.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case r.APOSTROPHE:{this._err(T.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),u.systemId="",this.state=o.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case r.EOF:{this._err(T.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:this._err(T.missingQuoteBeforeDoctypeSystemIdentifier),u.forceQuirks=!0,this.state=o.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const u=this.currentToken;switch(t){case r.SPACE:case r.LINE_FEED:case r.TABULATION:case r.FORM_FEED:break;case r.GREATER_THAN_SIGN:{this.emitCurrentDoctype(u),this.state=o.DATA;break}case r.QUOTATION_MARK:{u.systemId="",this.state=o.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case r.APOSTROPHE:{u.systemId="",this.state=o.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case r.EOF:{this._err(T.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:this._err(T.missingQuoteBeforeDoctypeSystemIdentifier),u.forceQuirks=!0,this.state=o.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const u=this.currentToken;switch(t){case r.SPACE:case r.LINE_FEED:case r.TABULATION:case r.FORM_FEED:{this.state=o.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case r.QUOTATION_MARK:{this._err(T.missingWhitespaceAfterDoctypeSystemKeyword),u.systemId="",this.state=o.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case r.APOSTROPHE:{this._err(T.missingWhitespaceAfterDoctypeSystemKeyword),u.systemId="",this.state=o.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case r.GREATER_THAN_SIGN:{this._err(T.missingDoctypeSystemIdentifier),u.forceQuirks=!0,this.state=o.DATA,this.emitCurrentDoctype(u);break}case r.EOF:{this._err(T.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:this._err(T.missingQuoteBeforeDoctypeSystemIdentifier),u.forceQuirks=!0,this.state=o.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const u=this.currentToken;switch(t){case r.SPACE:case r.LINE_FEED:case r.TABULATION:case r.FORM_FEED:break;case r.QUOTATION_MARK:{u.systemId="",this.state=o.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case r.APOSTROPHE:{u.systemId="",this.state=o.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case r.GREATER_THAN_SIGN:{this._err(T.missingDoctypeSystemIdentifier),u.forceQuirks=!0,this.state=o.DATA,this.emitCurrentDoctype(u);break}case r.EOF:{this._err(T.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:this._err(T.missingQuoteBeforeDoctypeSystemIdentifier),u.forceQuirks=!0,this.state=o.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const u=this.currentToken;switch(t){case r.QUOTATION_MARK:{this.state=o.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case r.NULL:{this._err(T.unexpectedNullCharacter),u.systemId+=M;break}case r.GREATER_THAN_SIGN:{this._err(T.abruptDoctypeSystemIdentifier),u.forceQuirks=!0,this.emitCurrentDoctype(u),this.state=o.DATA;break}case r.EOF:{this._err(T.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:u.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const u=this.currentToken;switch(t){case r.APOSTROPHE:{this.state=o.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case r.NULL:{this._err(T.unexpectedNullCharacter),u.systemId+=M;break}case r.GREATER_THAN_SIGN:{this._err(T.abruptDoctypeSystemIdentifier),u.forceQuirks=!0,this.emitCurrentDoctype(u),this.state=o.DATA;break}case r.EOF:{this._err(T.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:u.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const u=this.currentToken;switch(t){case r.SPACE:case r.LINE_FEED:case r.TABULATION:case r.FORM_FEED:break;case r.GREATER_THAN_SIGN:{this.emitCurrentDoctype(u),this.state=o.DATA;break}case r.EOF:{this._err(T.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:this._err(T.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=o.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const u=this.currentToken;switch(t){case r.GREATER_THAN_SIGN:{this.emitCurrentDoctype(u),this.state=o.DATA;break}case r.NULL:{this._err(T.unexpectedNullCharacter);break}case r.EOF:{this.emitCurrentDoctype(u),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case r.RIGHT_SQUARE_BRACKET:{this.state=o.CDATA_SECTION_BRACKET;break}case r.EOF:{this._err(T.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===r.RIGHT_SQUARE_BRACKET?this.state=o.CDATA_SECTION_END:(this._emitChars("]"),this.state=o.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case r.GREATER_THAN_SIGN:{this.state=o.DATA;break}case r.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=o.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(t){t===r.NUMBER_SIGN?this.state=o.NUMERIC_CHARACTER_REFERENCE:Xt(t)?(this.state=o.NAMED_CHARACTER_REFERENCE,this._stateNamedCharacterReference(t)):(this._flushCodePointConsumedAsCharacterReference(r.AMPERSAND),this._reconsumeInState(this.returnState,t))}_stateNamedCharacterReference(t){const u=this._matchNamedCharacterReference(t);if(!this._ensureHibernation())if(u){for(let s=0;s<u.length;s++)this._flushCodePointConsumedAsCharacterReference(u[s]);this.state=this.returnState}else this._flushCodePointConsumedAsCharacterReference(r.AMPERSAND),this.state=o.AMBIGUOUS_AMPERSAND}_stateAmbiguousAmpersand(t){Xt(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===r.SEMICOLON&&this._err(T.unknownNamedCharacterReference),this._reconsumeInState(this.returnState,t))}_stateNumericCharacterReference(t){this.charRefCode=0,t===r.LATIN_SMALL_X||t===r.LATIN_CAPITAL_X?this.state=o.HEXADEMICAL_CHARACTER_REFERENCE_START:ye(t)?(this.state=o.DECIMAL_CHARACTER_REFERENCE,this._stateDecimalCharacterReference(t)):(this._err(T.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(r.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(r.NUMBER_SIGN),this._reconsumeInState(this.returnState,t))}_stateHexademicalCharacterReferenceStart(t){jr(t)?(this.state=o.HEXADEMICAL_CHARACTER_REFERENCE,this._stateHexademicalCharacterReference(t)):(this._err(T.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(r.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(r.NUMBER_SIGN),this._unconsume(2),this.state=this.returnState)}_stateHexademicalCharacterReference(t){Xs(t)?this.charRefCode=this.charRefCode*16+t-55:Ks(t)?this.charRefCode=this.charRefCode*16+t-87:ye(t)?this.charRefCode=this.charRefCode*16+t-48:t===r.SEMICOLON?this.state=o.NUMERIC_CHARACTER_REFERENCE_END:(this._err(T.missingSemicolonAfterCharacterReference),this.state=o.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(t))}_stateDecimalCharacterReference(t){ye(t)?this.charRefCode=this.charRefCode*10+t-48:t===r.SEMICOLON?this.state=o.NUMERIC_CHARACTER_REFERENCE_END:(this._err(T.missingSemicolonAfterCharacterReference),this.state=o.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(t))}_stateNumericCharacterReferenceEnd(t){if(this.charRefCode===r.NULL)this._err(T.nullCharacterReference),this.charRefCode=r.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(T.characterReferenceOutsideUnicodeRange),this.charRefCode=r.REPLACEMENT_CHARACTER;else if(qs(this.charRefCode))this._err(T.surrogateCharacterReference),this.charRefCode=r.REPLACEMENT_CHARACTER;else if(Vs(this.charRefCode))this._err(T.noncharacterCharacterReference);else if(Qs(this.charRefCode)||this.charRefCode===r.CARRIAGE_RETURN){this._err(T.controlCharacterReference);const u=Kr.get(this.charRefCode);u!==void 0&&(this.charRefCode=u)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,t)}};const js=new Set([a.DD,a.DT,a.LI,a.OPTGROUP,a.OPTION,a.P,a.RB,a.RP,a.RT,a.RTC]),Uu=new Set([...js,a.CAPTION,a.COLGROUP,a.TBODY,a.TD,a.TFOOT,a.TH,a.THEAD,a.TR]),ze=new Map([[a.APPLET,m.HTML],[a.CAPTION,m.HTML],[a.HTML,m.HTML],[a.MARQUEE,m.HTML],[a.OBJECT,m.HTML],[a.TABLE,m.HTML],[a.TD,m.HTML],[a.TEMPLATE,m.HTML],[a.TH,m.HTML],[a.ANNOTATION_XML,m.MATHML],[a.MI,m.MATHML],[a.MN,m.MATHML],[a.MO,m.MATHML],[a.MS,m.MATHML],[a.MTEXT,m.MATHML],[a.DESC,m.SVG],[a.FOREIGN_OBJECT,m.SVG],[a.TITLE,m.SVG]]),Jr=[a.H1,a.H2,a.H3,a.H4,a.H5,a.H6],ec=[a.TR,a.TEMPLATE,a.HTML],tc=[a.TBODY,a.TFOOT,a.THEAD,a.TEMPLATE,a.HTML],uc=[a.TABLE,a.TEMPLATE,a.HTML],sc=[a.TD,a.TH];class ac{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,u,s){this.treeAdapter=u,this.handler=s,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=a.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===a.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===m.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,u){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=u,this.currentTagId=u,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,u,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,u){const s=this._indexOf(t);this.items[s]=u,s===this.stackTop&&(this.current=u)}insertAfter(t,u,s){const n=this._indexOf(t)+1;this.items.splice(n,0,u),this.tagIDs.splice(n,0,s),this.stackTop++,n===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,n===this.stackTop)}popUntilTagNamePopped(t){let u=this.stackTop+1;do u=this.tagIDs.lastIndexOf(t,u-1);while(u>0&&this.treeAdapter.getNamespaceURI(this.items[u])!==m.HTML);this.shortenToLength(u<0?0:u)}shortenToLength(t){for(;this.stackTop>=t;){const u=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(u,this.stackTop<t)}}popUntilElementPopped(t){const u=this._indexOf(t);this.shortenToLength(u<0?0:u)}popUntilPopped(t,u){const s=this._indexOfTagNames(t,u);this.shortenToLength(s<0?0:s)}popUntilNumberedHeaderPopped(){this.popUntilPopped(Jr,m.HTML)}popUntilTableCellPopped(){this.popUntilPopped(sc,m.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,u){for(let s=this.stackTop;s>=0;s--)if(t.includes(this.tagIDs[s])&&this.treeAdapter.getNamespaceURI(this.items[s])===u)return s;return-1}clearBackTo(t,u){const s=this._indexOfTagNames(t,u);this.shortenToLength(s+1)}clearBackToTableContext(){this.clearBackTo(uc,m.HTML)}clearBackToTableBodyContext(){this.clearBackTo(tc,m.HTML)}clearBackToTableRowContext(){this.clearBackTo(ec,m.HTML)}remove(t){const u=this._indexOf(t);u>=0&&(u===this.stackTop?this.pop():(this.items.splice(u,1),this.tagIDs.splice(u,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===a.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const u=this._indexOf(t)-1;return u>=0?this.items[u]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===a.HTML}hasInScope(t){for(let u=this.stackTop;u>=0;u--){const s=this.tagIDs[u],n=this.treeAdapter.getNamespaceURI(this.items[u]);if(s===t&&n===m.HTML)return!0;if(ze.get(s)===n)return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const u=this.tagIDs[t],s=this.treeAdapter.getNamespaceURI(this.items[t]);if(Ws(u)&&s===m.HTML)return!0;if(ze.get(u)===s)return!1}return!0}hasInListItemScope(t){for(let u=this.stackTop;u>=0;u--){const s=this.tagIDs[u],n=this.treeAdapter.getNamespaceURI(this.items[u]);if(s===t&&n===m.HTML)return!0;if((s===a.UL||s===a.OL)&&n===m.HTML||ze.get(s)===n)return!1}return!0}hasInButtonScope(t){for(let u=this.stackTop;u>=0;u--){const s=this.tagIDs[u],n=this.treeAdapter.getNamespaceURI(this.items[u]);if(s===t&&n===m.HTML)return!0;if(s===a.BUTTON&&n===m.HTML||ze.get(s)===n)return!1}return!0}hasInTableScope(t){for(let u=this.stackTop;u>=0;u--){const s=this.tagIDs[u];if(this.treeAdapter.getNamespaceURI(this.items[u])===m.HTML){if(s===t)return!0;if(s===a.TABLE||s===a.TEMPLATE||s===a.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const u=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===m.HTML){if(u===a.TBODY||u===a.THEAD||u===a.TFOOT)return!0;if(u===a.TABLE||u===a.HTML)return!1}}return!0}hasInSelectScope(t){for(let u=this.stackTop;u>=0;u--){const s=this.tagIDs[u];if(this.treeAdapter.getNamespaceURI(this.items[u])===m.HTML){if(s===t)return!0;if(s!==a.OPTION&&s!==a.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;js.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Uu.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&Uu.has(this.currentTagId);)this.pop()}}const kt=3;var X;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(X=X||(X={}));const Hu={type:X.Marker};class nc{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,u){const s=[],n=u.length,i=this.treeAdapter.getTagName(t),c=this.treeAdapter.getNamespaceURI(t);for(let d=0;d<this.entries.length;d++){const h=this.entries[d];if(h.type===X.Marker)break;const{element:E}=h;if(this.treeAdapter.getTagName(E)===i&&this.treeAdapter.getNamespaceURI(E)===c){const A=this.treeAdapter.getAttrList(E);A.length===n&&s.push({idx:d,attrs:A})}}return s}_ensureNoahArkCondition(t){if(this.entries.length<kt)return;const u=this.treeAdapter.getAttrList(t),s=this._getNoahArkConditionCandidates(t,u);if(s.length<kt)return;const n=new Map(u.map(c=>[c.name,c.value]));let i=0;for(let c=0;c<s.length;c++){const d=s[c];d.attrs.every(h=>n.get(h.name)===h.value)&&(i+=1,i>=kt&&this.entries.splice(d.idx,1))}}insertMarker(){this.entries.unshift(Hu)}pushElement(t,u){this._ensureNoahArkCondition(t),this.entries.unshift({type:X.Element,element:t,token:u})}insertElementAfterBookmark(t,u){const s=this.entries.indexOf(this.bookmark);this.entries.splice(s,0,{type:X.Element,element:t,token:u})}removeEntry(t){const u=this.entries.indexOf(t);u>=0&&this.entries.splice(u,1)}clearToLastMarker(){const t=this.entries.indexOf(Hu);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const u=this.entries.find(s=>s.type===X.Marker||this.treeAdapter.getTagName(s.element)===t);return u&&u.type===X.Element?u:null}getElementEntry(t){return this.entries.find(u=>u.type===X.Element&&u.element===t)}}function wu(e){return{nodeName:"#text",value:e,parentNode:null}}const oe={createDocument(){return{nodeName:"#document",mode:Q.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,u){return{nodeName:e,tagName:e,attrs:u,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,u){const s=e.childNodes.indexOf(u);e.childNodes.splice(s,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,u,s){const n=e.childNodes.find(i=>i.nodeName==="#documentType");if(n)n.name=t,n.publicId=u,n.systemId=s;else{const i={nodeName:"#documentType",name:t,publicId:u,systemId:s,parentNode:null};oe.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return 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 u=e.childNodes[e.childNodes.length-1];if(oe.isTextNode(u)){u.value+=t;return}}oe.appendChild(e,wu(t))},insertTextBefore(e,t,u){const s=e.childNodes[e.childNodes.indexOf(u)-1];s&&oe.isTextNode(s)?s.value+=t:oe.insertBefore(e,wu(t),u)},adoptAttributes(e,t){const u=new Set(e.attrs.map(s=>s.name));for(let s=0;s<t.length;s++)u.has(t[s].name)||e.attrs.push(t[s])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},zs="html",ic="about:legacy-compat",rc="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Zs=["+//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//"],cc=[...Zs,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],oc=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Js=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],lc=[...Js,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function vu(e,t){return t.some(u=>e.startsWith(u))}function dc(e){return e.name===zs&&e.publicId===null&&(e.systemId===null||e.systemId===ic)}function hc(e){if(e.name!==zs)return Q.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===rc)return Q.QUIRKS;let{publicId:u}=e;if(u!==null){if(u=u.toLowerCase(),oc.has(u))return Q.QUIRKS;let s=t===null?cc:Zs;if(vu(u,s))return Q.QUIRKS;if(s=t===null?Js:lc,vu(u,s))return Q.LIMITED_QUIRKS}return Q.NO_QUIRKS}const Yu={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},fc="definitionurl",Ec="definitionURL",Tc=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])),mc=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:m.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:m.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:m.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:m.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:m.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:m.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:m.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:m.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:m.XML}],["xml:space",{prefix:"xml",name:"space",namespace:m.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:m.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:m.XMLNS}]]),bc=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])),Ac=new Set([a.B,a.BIG,a.BLOCKQUOTE,a.BODY,a.BR,a.CENTER,a.CODE,a.DD,a.DIV,a.DL,a.DT,a.EM,a.EMBED,a.H1,a.H2,a.H3,a.H4,a.H5,a.H6,a.HEAD,a.HR,a.I,a.IMG,a.LI,a.LISTING,a.MENU,a.META,a.NOBR,a.OL,a.P,a.PRE,a.RUBY,a.S,a.SMALL,a.SPAN,a.STRONG,a.STRIKE,a.SUB,a.SUP,a.TABLE,a.TT,a.U,a.UL,a.VAR]);function _c(e){const t=e.tagID;return t===a.FONT&&e.attrs.some(({name:s})=>s===se.COLOR||s===se.SIZE||s===se.FACE)||Ac.has(t)}function ea(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===fc){e.attrs[t].name=Ec;break}}function ta(e){for(let t=0;t<e.attrs.length;t++){const u=Tc.get(e.attrs[t].name);u!=null&&(e.attrs[t].name=u)}}function Tu(e){for(let t=0;t<e.attrs.length;t++){const u=mc.get(e.attrs[t].name);u&&(e.attrs[t].prefix=u.prefix,e.attrs[t].name=u.name,e.attrs[t].namespace=u.namespace)}}function gc(e){const t=bc.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=_t(e.tagName))}function pc(e,t){return t===m.MATHML&&(e===a.MI||e===a.MO||e===a.MN||e===a.MS||e===a.MTEXT)}function Nc(e,t,u){if(t===m.MATHML&&e===a.ANNOTATION_XML){for(let s=0;s<u.length;s++)if(u[s].name===se.ENCODING){const n=u[s].value.toLowerCase();return n===Yu.TEXT_HTML||n===Yu.APPLICATION_XML}}return t===m.SVG&&(e===a.FOREIGN_OBJECT||e===a.DESC||e===a.TITLE)}function Cc(e,t,u,s){return(!s||s===m.HTML)&&Nc(e,t,u)||(!s||s===m.MATHML)&&pc(e,t)}const Ic="hidden",Sc=8,Lc=3;var l;(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"})(l||(l={}));const Rc={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},ua=new Set([a.TABLE,a.TBODY,a.TFOOT,a.THEAD,a.TR]),qu={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:oe,onParseError:null};let sa=class{constructor(t,u,s=null,n=null){this.fragmentContext=s,this.scriptHandler=n,this.currentToken=null,this.stopped=!1,this.insertionMode=l.INITIAL,this.originalInsertionMode=l.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={...qu,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=u??this.treeAdapter.createDocument(),this.tokenizer=new Zr(this.options,this),this.activeFormattingElements=new nc(this.treeAdapter),this.fragmentContextID=s?_t(this.treeAdapter.getTagName(s)):a.UNKNOWN,this._setContextModes(s??this.document,this.fragmentContextID),this.openElements=new ac(this.document,this.treeAdapter,this)}static parse(t,u){const s=new this(u);return s.tokenizer.write(t,!0),s.document}static getFragmentParser(t,u){const s={...qu,...u};t??(t=s.treeAdapter.createElement(f.TEMPLATE,m.HTML,[]));const n=s.treeAdapter.createElement("documentmock",m.HTML,[]),i=new this(s,n,t);return i.fragmentContextID===a.TEMPLATE&&i.tmplInsertionModeStack.unshift(l.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),u=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,u),u}_err(t,u,s){var n;if(!this.onParseError)return;const i=(n=t.location)!==null&&n!==void 0?n:Rc,c={code:u,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:s?i.startLine:i.endLine,endCol:s?i.startCol:i.endCol,endOffset:s?i.startOffset:i.endOffset};this.onParseError(c)}onItemPush(t,u,s){var n,i;(i=(n=this.treeAdapter).onItemPush)===null||i===void 0||i.call(n,t),s&&this.openElements.stackTop>0&&this._setContextModes(t,u)}onItemPop(t,u){var s,n;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(n=(s=this.treeAdapter).onItemPop)===null||n===void 0||n.call(s,t,this.openElements.current),u){let i,c;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,c=this.fragmentContextID):{current:i,currentTagId:c}=this.openElements,this._setContextModes(i,c)}}_setContextModes(t,u){const s=t===this.document||this.treeAdapter.getNamespaceURI(t)===m.HTML;this.currentNotInHTML=!s,this.tokenizer.inForeignNode=!s&&!this._isIntegrationPoint(u,t)}_switchToTextParsing(t,u){this._insertElement(t,m.HTML),this.tokenizer.state=u,this.originalInsertionMode=this.insertionMode,this.insertionMode=l.TEXT}switchToPlaintextParsing(){this.insertionMode=l.TEXT,this.originalInsertionMode=l.IN_BODY,this.tokenizer.state=V.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===f.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==m.HTML))switch(this.fragmentContextID){case a.TITLE:case a.TEXTAREA:{this.tokenizer.state=V.RCDATA;break}case a.STYLE:case a.XMP:case a.IFRAME:case a.NOEMBED:case a.NOFRAMES:case a.NOSCRIPT:{this.tokenizer.state=V.RAWTEXT;break}case a.SCRIPT:{this.tokenizer.state=V.SCRIPT_DATA;break}case a.PLAINTEXT:{this.tokenizer.state=V.PLAINTEXT;break}}}_setDocumentType(t){const u=t.name||"",s=t.publicId||"",n=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,u,s,n),t.location){const c=this.treeAdapter.getChildNodes(this.document).find(d=>this.treeAdapter.isDocumentTypeNode(d));c&&this.treeAdapter.setNodeSourceCodeLocation(c,t.location)}}_attachElementToTree(t,u){if(this.options.sourceCodeLocationInfo){const s=u&&{...u,startTag:u};this.treeAdapter.setNodeSourceCodeLocation(t,s)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const s=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(s,t)}}_appendElement(t,u){const s=this.treeAdapter.createElement(t.tagName,u,t.attrs);this._attachElementToTree(s,t.location)}_insertElement(t,u){const s=this.treeAdapter.createElement(t.tagName,u,t.attrs);this._attachElementToTree(s,t.location),this.openElements.push(s,t.tagID)}_insertFakeElement(t,u){const s=this.treeAdapter.createElement(t,m.HTML,[]);this._attachElementToTree(s,null),this.openElements.push(s,u)}_insertTemplate(t){const u=this.treeAdapter.createElement(t.tagName,m.HTML,t.attrs),s=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(u,s),this._attachElementToTree(u,t.location),this.openElements.push(u,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(f.HTML,m.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,a.HTML)}_appendCommentNode(t,u){const s=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(u,s),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_insertCharacters(t){let u,s;if(this._shouldFosterParentOnInsertion()?({parent:u,beforeElement:s}=this._findFosterParentingLocation(),s?this.treeAdapter.insertTextBefore(u,t.chars,s):this.treeAdapter.insertText(u,t.chars)):(u=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(u,t.chars)),!t.location)return;const n=this.treeAdapter.getChildNodes(u),i=s?n.lastIndexOf(s):n.length,c=n[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(c)){const{endLine:h,endCol:E,endOffset:A}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(c,{endLine:h,endCol:E,endOffset:A})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(c,t.location)}_adoptNodes(t,u){for(let s=this.treeAdapter.getFirstChild(t);s;s=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(s),this.treeAdapter.appendChild(u,s)}_setEndLocation(t,u){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&u.location){const s=u.location,n=this.treeAdapter.getTagName(t),i=u.type===O.END_TAG&&n===u.tagName?{endTag:{...s},endLine:s.endLine,endCol:s.endCol,endOffset:s.endOffset}:{endLine:s.startLine,endCol:s.startCol,endOffset:s.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,i)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let u,s;return this.openElements.stackTop===0&&this.fragmentContext?(u=this.fragmentContext,s=this.fragmentContextID):{current:u,currentTagId:s}=this.openElements,t.tagID===a.SVG&&this.treeAdapter.getTagName(u)===f.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(u)===m.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===a.MGLYPH||t.tagID===a.MALIGNMARK)&&!this._isIntegrationPoint(s,u,m.HTML)}_processToken(t){switch(t.type){case O.CHARACTER:{this.onCharacter(t);break}case O.NULL_CHARACTER:{this.onNullCharacter(t);break}case O.COMMENT:{this.onComment(t);break}case O.DOCTYPE:{this.onDoctype(t);break}case O.START_TAG:{this._processStartTag(t);break}case O.END_TAG:{this.onEndTag(t);break}case O.EOF:{this.onEof(t);break}case O.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,u,s){const n=this.treeAdapter.getNamespaceURI(u),i=this.treeAdapter.getAttrList(u);return Cc(t,n,i,s)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const u=this.activeFormattingElements.entries.findIndex(n=>n.type===X.Marker||this.openElements.contains(n.element)),s=u<0?t-1:u-1;for(let n=s;n>=0;n--){const i=this.activeFormattingElements.entries[n];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=l.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(a.P),this.openElements.popUntilTagNamePopped(a.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case a.TR:{this.insertionMode=l.IN_ROW;return}case a.TBODY:case a.THEAD:case a.TFOOT:{this.insertionMode=l.IN_TABLE_BODY;return}case a.CAPTION:{this.insertionMode=l.IN_CAPTION;return}case a.COLGROUP:{this.insertionMode=l.IN_COLUMN_GROUP;return}case a.TABLE:{this.insertionMode=l.IN_TABLE;return}case a.BODY:{this.insertionMode=l.IN_BODY;return}case a.FRAMESET:{this.insertionMode=l.IN_FRAMESET;return}case a.SELECT:{this._resetInsertionModeForSelect(t);return}case a.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case a.HTML:{this.insertionMode=this.headElement?l.AFTER_HEAD:l.BEFORE_HEAD;return}case a.TD:case a.TH:{if(t>0){this.insertionMode=l.IN_CELL;return}break}case a.HEAD:{if(t>0){this.insertionMode=l.IN_HEAD;return}break}}this.insertionMode=l.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let u=t-1;u>0;u--){const s=this.openElements.tagIDs[u];if(s===a.TEMPLATE)break;if(s===a.TABLE){this.insertionMode=l.IN_SELECT_IN_TABLE;return}}this.insertionMode=l.IN_SELECT}_isElementCausesFosterParenting(t){return ua.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const u=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case a.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(u)===m.HTML)return{parent:this.treeAdapter.getTemplateContent(u),beforeElement:null};break}case a.TABLE:{const s=this.treeAdapter.getParentNode(u);return s?{parent:s,beforeElement:u}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const u=this._findFosterParentingLocation();u.beforeElement?this.treeAdapter.insertBefore(u.parent,t,u.beforeElement):this.treeAdapter.appendChild(u.parent,t)}_isSpecialElement(t,u){const s=this.treeAdapter.getNamespaceURI(t);return Gr[s].has(u)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){a0(this,t);return}switch(this.insertionMode){case l.INITIAL:{De(this,t);break}case l.BEFORE_HTML:{Be(this,t);break}case l.BEFORE_HEAD:{ke(this,t);break}case l.IN_HEAD:{Fe(this,t);break}case l.IN_HEAD_NO_SCRIPT:{Ue(this,t);break}case l.AFTER_HEAD:{He(this,t);break}case l.IN_BODY:case l.IN_CAPTION:case l.IN_CELL:case l.IN_TEMPLATE:{na(this,t);break}case l.TEXT:case l.IN_SELECT:case l.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case l.IN_TABLE:case l.IN_TABLE_BODY:case l.IN_ROW:{Ft(this,t);break}case l.IN_TABLE_TEXT:{da(this,t);break}case l.IN_COLUMN_GROUP:{lt(this,t);break}case l.AFTER_BODY:{dt(this,t);break}case l.AFTER_AFTER_BODY:{et(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){s0(this,t);return}switch(this.insertionMode){case l.INITIAL:{De(this,t);break}case l.BEFORE_HTML:{Be(this,t);break}case l.BEFORE_HEAD:{ke(this,t);break}case l.IN_HEAD:{Fe(this,t);break}case l.IN_HEAD_NO_SCRIPT:{Ue(this,t);break}case l.AFTER_HEAD:{He(this,t);break}case l.TEXT:{this._insertCharacters(t);break}case l.IN_TABLE:case l.IN_TABLE_BODY:case l.IN_ROW:{Ft(this,t);break}case l.IN_COLUMN_GROUP:{lt(this,t);break}case l.AFTER_BODY:{dt(this,t);break}case l.AFTER_AFTER_BODY:{et(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Kt(this,t);return}switch(this.insertionMode){case l.INITIAL:case l.BEFORE_HTML:case l.BEFORE_HEAD:case l.IN_HEAD:case l.IN_HEAD_NO_SCRIPT:case l.AFTER_HEAD:case l.IN_BODY:case l.IN_TABLE:case l.IN_CAPTION:case l.IN_COLUMN_GROUP:case l.IN_TABLE_BODY:case l.IN_ROW:case l.IN_CELL:case l.IN_SELECT:case l.IN_SELECT_IN_TABLE:case l.IN_TEMPLATE:case l.IN_FRAMESET:case l.AFTER_FRAMESET:{Kt(this,t);break}case l.IN_TABLE_TEXT:{xe(this,t);break}case l.AFTER_BODY:{Bc(this,t);break}case l.AFTER_AFTER_BODY:case l.AFTER_AFTER_FRAMESET:{kc(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case l.INITIAL:{Fc(this,t);break}case l.BEFORE_HEAD:case l.IN_HEAD:case l.IN_HEAD_NO_SCRIPT:case l.AFTER_HEAD:{this._err(t,T.misplacedDoctype);break}case l.IN_TABLE_TEXT:{xe(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,T.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?n0(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case l.INITIAL:{De(this,t);break}case l.BEFORE_HTML:{Uc(this,t);break}case l.BEFORE_HEAD:{wc(this,t);break}case l.IN_HEAD:{K(this,t);break}case l.IN_HEAD_NO_SCRIPT:{qc(this,t);break}case l.AFTER_HEAD:{Vc(this,t);break}case l.IN_BODY:{w(this,t);break}case l.IN_TABLE:{Ne(this,t);break}case l.IN_TABLE_TEXT:{xe(this,t);break}case l.IN_CAPTION:{Yo(this,t);break}case l.IN_COLUMN_GROUP:{Au(this,t);break}case l.IN_TABLE_BODY:{Nt(this,t);break}case l.IN_ROW:{Ct(this,t);break}case l.IN_CELL:{Vo(this,t);break}case l.IN_SELECT:{Ea(this,t);break}case l.IN_SELECT_IN_TABLE:{Wo(this,t);break}case l.IN_TEMPLATE:{Ko(this,t);break}case l.AFTER_BODY:{jo(this,t);break}case l.IN_FRAMESET:{zo(this,t);break}case l.AFTER_FRAMESET:{Jo(this,t);break}case l.AFTER_AFTER_BODY:{t0(this,t);break}case l.AFTER_AFTER_FRAMESET:{u0(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?i0(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case l.INITIAL:{De(this,t);break}case l.BEFORE_HTML:{Hc(this,t);break}case l.BEFORE_HEAD:{vc(this,t);break}case l.IN_HEAD:{Yc(this,t);break}case l.IN_HEAD_NO_SCRIPT:{Qc(this,t);break}case l.AFTER_HEAD:{Gc(this,t);break}case l.IN_BODY:{pt(this,t);break}case l.TEXT:{Po(this,t);break}case l.IN_TABLE:{qe(this,t);break}case l.IN_TABLE_TEXT:{xe(this,t);break}case l.IN_CAPTION:{qo(this,t);break}case l.IN_COLUMN_GROUP:{Qo(this,t);break}case l.IN_TABLE_BODY:{$t(this,t);break}case l.IN_ROW:{fa(this,t);break}case l.IN_CELL:{Go(this,t);break}case l.IN_SELECT:{Ta(this,t);break}case l.IN_SELECT_IN_TABLE:{Xo(this,t);break}case l.IN_TEMPLATE:{$o(this,t);break}case l.AFTER_BODY:{ba(this,t);break}case l.IN_FRAMESET:{Zo(this,t);break}case l.AFTER_FRAMESET:{e0(this,t);break}case l.AFTER_AFTER_BODY:{et(this,t);break}}}onEof(t){switch(this.insertionMode){case l.INITIAL:{De(this,t);break}case l.BEFORE_HTML:{Be(this,t);break}case l.BEFORE_HEAD:{ke(this,t);break}case l.IN_HEAD:{Fe(this,t);break}case l.IN_HEAD_NO_SCRIPT:{Ue(this,t);break}case l.AFTER_HEAD:{He(this,t);break}case l.IN_BODY:case l.IN_TABLE:case l.IN_CAPTION:case l.IN_COLUMN_GROUP:case l.IN_TABLE_BODY:case l.IN_ROW:case l.IN_CELL:case l.IN_SELECT:case l.IN_SELECT_IN_TABLE:{oa(this,t);break}case l.TEXT:{Mo(this,t);break}case l.IN_TABLE_TEXT:{xe(this,t);break}case l.IN_TEMPLATE:{ma(this,t);break}case l.AFTER_BODY:case l.IN_FRAMESET:case l.AFTER_FRAMESET:case l.AFTER_AFTER_BODY:case l.AFTER_AFTER_FRAMESET:{bu(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===r.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case l.IN_HEAD:case l.IN_HEAD_NO_SCRIPT:case l.AFTER_HEAD:case l.TEXT:case l.IN_COLUMN_GROUP:case l.IN_SELECT:case l.IN_SELECT_IN_TABLE:case l.IN_FRAMESET:case l.AFTER_FRAMESET:{this._insertCharacters(t);break}case l.IN_BODY:case l.IN_CAPTION:case l.IN_CELL:case l.IN_TEMPLATE:case l.AFTER_BODY:case l.AFTER_AFTER_BODY:case l.AFTER_AFTER_FRAMESET:{aa(this,t);break}case l.IN_TABLE:case l.IN_TABLE_BODY:case l.IN_ROW:{Ft(this,t);break}case l.IN_TABLE_TEXT:{la(this,t);break}}}};function Oc(e,t){let u=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return u?e.openElements.contains(u.element)?e.openElements.hasInScope(t.tagID)||(u=null):(e.activeFormattingElements.removeEntry(u),u=null):ca(e,t),u}function Dc(e,t){let u=null,s=e.openElements.stackTop;for(;s>=0;s--){const n=e.openElements.items[s];if(n===t.element)break;e._isSpecialElement(n,e.openElements.tagIDs[s])&&(u=n)}return u||(e.openElements.shortenToLength(s<0?0:s),e.activeFormattingElements.removeEntry(t)),u}function xc(e,t,u){let s=t,n=e.openElements.getCommonAncestor(t);for(let i=0,c=n;c!==u;i++,c=n){n=e.openElements.getCommonAncestor(c);const d=e.activeFormattingElements.getElementEntry(c),h=d&&i>=Lc;!d||h?(h&&e.activeFormattingElements.removeEntry(d),e.openElements.remove(c)):(c=Pc(e,d),s===t&&(e.activeFormattingElements.bookmark=d),e.treeAdapter.detachNode(s),e.treeAdapter.appendChild(c,s),s=c)}return s}function Pc(e,t){const u=e.treeAdapter.getNamespaceURI(t.element),s=e.treeAdapter.createElement(t.token.tagName,u,t.token.attrs);return e.openElements.replace(t.element,s),t.element=s,s}function Mc(e,t,u){const s=e.treeAdapter.getTagName(t),n=_t(s);if(e._isElementCausesFosterParenting(n))e._fosterParentElement(u);else{const i=e.treeAdapter.getNamespaceURI(t);n===a.TEMPLATE&&i===m.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,u)}}function yc(e,t,u){const s=e.treeAdapter.getNamespaceURI(u.element),{token:n}=u,i=e.treeAdapter.createElement(n.tagName,s,n.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,n),e.activeFormattingElements.removeEntry(u),e.openElements.remove(u.element),e.openElements.insertAfter(t,i,n.tagID)}function mu(e,t){for(let u=0;u<Sc;u++){const s=Oc(e,t);if(!s)break;const n=Dc(e,s);if(!n)break;e.activeFormattingElements.bookmark=s;const i=xc(e,n,s.element),c=e.openElements.getCommonAncestor(s.element);e.treeAdapter.detachNode(i),c&&Mc(e,c,i),yc(e,n,s)}}function Kt(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Bc(e,t){e._appendCommentNode(t,e.openElements.items[0])}function kc(e,t){e._appendCommentNode(t,e.document)}function bu(e,t){if(e.stopped=!0,t.location){const u=e.fragmentContext?0:2;for(let s=e.openElements.stackTop;s>=u;s--)e._setEndLocation(e.openElements.items[s],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const s=e.openElements.items[0],n=e.treeAdapter.getNodeSourceCodeLocation(s);if(n&&!n.endTag&&(e._setEndLocation(s,t),e.openElements.stackTop>=1)){const i=e.openElements.items[1],c=e.treeAdapter.getNodeSourceCodeLocation(i);c&&!c.endTag&&e._setEndLocation(i,t)}}}}function Fc(e,t){e._setDocumentType(t);const u=t.forceQuirks?Q.QUIRKS:hc(t);dc(t)||e._err(t,T.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,u),e.insertionMode=l.BEFORE_HTML}function De(e,t){e._err(t,T.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Q.QUIRKS),e.insertionMode=l.BEFORE_HTML,e._processToken(t)}function Uc(e,t){t.tagID===a.HTML?(e._insertElement(t,m.HTML),e.insertionMode=l.BEFORE_HEAD):Be(e,t)}function Hc(e,t){const u=t.tagID;(u===a.HTML||u===a.HEAD||u===a.BODY||u===a.BR)&&Be(e,t)}function Be(e,t){e._insertFakeRootElement(),e.insertionMode=l.BEFORE_HEAD,e._processToken(t)}function wc(e,t){switch(t.tagID){case a.HTML:{w(e,t);break}case a.HEAD:{e._insertElement(t,m.HTML),e.headElement=e.openElements.current,e.insertionMode=l.IN_HEAD;break}default:ke(e,t)}}function vc(e,t){const u=t.tagID;u===a.HEAD||u===a.BODY||u===a.HTML||u===a.BR?ke(e,t):e._err(t,T.endTagWithoutMatchingOpenElement)}function ke(e,t){e._insertFakeElement(f.HEAD,a.HEAD),e.headElement=e.openElements.current,e.insertionMode=l.IN_HEAD,e._processToken(t)}function K(e,t){switch(t.tagID){case a.HTML:{w(e,t);break}case a.BASE:case a.BASEFONT:case a.BGSOUND:case a.LINK:case a.META:{e._appendElement(t,m.HTML),t.ackSelfClosing=!0;break}case a.TITLE:{e._switchToTextParsing(t,V.RCDATA);break}case a.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,V.RAWTEXT):(e._insertElement(t,m.HTML),e.insertionMode=l.IN_HEAD_NO_SCRIPT);break}case a.NOFRAMES:case a.STYLE:{e._switchToTextParsing(t,V.RAWTEXT);break}case a.SCRIPT:{e._switchToTextParsing(t,V.SCRIPT_DATA);break}case a.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=l.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(l.IN_TEMPLATE);break}case a.HEAD:{e._err(t,T.misplacedStartTagForHeadElement);break}default:Fe(e,t)}}function Yc(e,t){switch(t.tagID){case a.HEAD:{e.openElements.pop(),e.insertionMode=l.AFTER_HEAD;break}case a.BODY:case a.BR:case a.HTML:{Fe(e,t);break}case a.TEMPLATE:{Ee(e,t);break}default:e._err(t,T.endTagWithoutMatchingOpenElement)}}function Ee(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==a.TEMPLATE&&e._err(t,T.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(a.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,T.endTagWithoutMatchingOpenElement)}function Fe(e,t){e.openElements.pop(),e.insertionMode=l.AFTER_HEAD,e._processToken(t)}function qc(e,t){switch(t.tagID){case a.HTML:{w(e,t);break}case a.BASEFONT:case a.BGSOUND:case a.HEAD:case a.LINK:case a.META:case a.NOFRAMES:case a.STYLE:{K(e,t);break}case a.NOSCRIPT:{e._err(t,T.nestedNoscriptInHead);break}default:Ue(e,t)}}function Qc(e,t){switch(t.tagID){case a.NOSCRIPT:{e.openElements.pop(),e.insertionMode=l.IN_HEAD;break}case a.BR:{Ue(e,t);break}default:e._err(t,T.endTagWithoutMatchingOpenElement)}}function Ue(e,t){const u=t.type===O.EOF?T.openElementsLeftAfterEof:T.disallowedContentInNoscriptInHead;e._err(t,u),e.openElements.pop(),e.insertionMode=l.IN_HEAD,e._processToken(t)}function Vc(e,t){switch(t.tagID){case a.HTML:{w(e,t);break}case a.BODY:{e._insertElement(t,m.HTML),e.framesetOk=!1,e.insertionMode=l.IN_BODY;break}case a.FRAMESET:{e._insertElement(t,m.HTML),e.insertionMode=l.IN_FRAMESET;break}case a.BASE:case a.BASEFONT:case a.BGSOUND:case a.LINK:case a.META:case a.NOFRAMES:case a.SCRIPT:case a.STYLE:case a.TEMPLATE:case a.TITLE:{e._err(t,T.abandonedHeadElementChild),e.openElements.push(e.headElement,a.HEAD),K(e,t),e.openElements.remove(e.headElement);break}case a.HEAD:{e._err(t,T.misplacedStartTagForHeadElement);break}default:He(e,t)}}function Gc(e,t){switch(t.tagID){case a.BODY:case a.HTML:case a.BR:{He(e,t);break}case a.TEMPLATE:{Ee(e,t);break}default:e._err(t,T.endTagWithoutMatchingOpenElement)}}function He(e,t){e._insertFakeElement(f.BODY,a.BODY),e.insertionMode=l.IN_BODY,gt(e,t)}function gt(e,t){switch(t.type){case O.CHARACTER:{na(e,t);break}case O.WHITESPACE_CHARACTER:{aa(e,t);break}case O.COMMENT:{Kt(e,t);break}case O.START_TAG:{w(e,t);break}case O.END_TAG:{pt(e,t);break}case O.EOF:{oa(e,t);break}}}function aa(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function na(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Wc(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Xc(e,t){const u=e.openElements.tryPeekProperlyNestedBodyElement();u&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(u,t.attrs))}function Kc(e,t){const u=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&u&&(e.treeAdapter.detachNode(u),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,m.HTML),e.insertionMode=l.IN_FRAMESET)}function $c(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,m.HTML)}function jc(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),Ws(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,m.HTML)}function zc(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,m.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Zc(e,t){const u=e.openElements.tmplCount>0;(!e.formElement||u)&&(e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,m.HTML),u||(e.formElement=e.openElements.current))}function Jc(e,t){e.framesetOk=!1;const u=t.tagID;for(let s=e.openElements.stackTop;s>=0;s--){const n=e.openElements.tagIDs[s];if(u===a.LI&&n===a.LI||(u===a.DD||u===a.DT)&&(n===a.DD||n===a.DT)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n);break}if(n!==a.ADDRESS&&n!==a.DIV&&n!==a.P&&e._isSpecialElement(e.openElements.items[s],n))break}e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,m.HTML)}function eo(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,m.HTML),e.tokenizer.state=V.PLAINTEXT}function to(e,t){e.openElements.hasInScope(a.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,m.HTML),e.framesetOk=!1}function uo(e,t){const u=e.activeFormattingElements.getElementEntryInScopeWithTagName(f.A);u&&(mu(e,t),e.openElements.remove(u.element),e.activeFormattingElements.removeEntry(u)),e._reconstructActiveFormattingElements(),e._insertElement(t,m.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function so(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,m.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function ao(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(a.NOBR)&&(mu(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,m.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function no(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,m.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function io(e,t){e.treeAdapter.getDocumentMode(e.document)!==Q.QUIRKS&&e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,m.HTML),e.framesetOk=!1,e.insertionMode=l.IN_TABLE}function ia(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,m.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function ra(e){const t=Gs(e,se.TYPE);return t!=null&&t.toLowerCase()===Ic}function ro(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,m.HTML),ra(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function co(e,t){e._appendElement(t,m.HTML),t.ackSelfClosing=!0}function oo(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._appendElement(t,m.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function lo(e,t){t.tagName=f.IMG,t.tagID=a.IMG,ia(e,t)}function ho(e,t){e._insertElement(t,m.HTML),e.skipNextNewLine=!0,e.tokenizer.state=V.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=l.TEXT}function fo(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,V.RAWTEXT)}function Eo(e,t){e.framesetOk=!1,e._switchToTextParsing(t,V.RAWTEXT)}function Qu(e,t){e._switchToTextParsing(t,V.RAWTEXT)}function To(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,m.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===l.IN_TABLE||e.insertionMode===l.IN_CAPTION||e.insertionMode===l.IN_TABLE_BODY||e.insertionMode===l.IN_ROW||e.insertionMode===l.IN_CELL?l.IN_SELECT_IN_TABLE:l.IN_SELECT}function mo(e,t){e.openElements.currentTagId===a.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,m.HTML)}function bo(e,t){e.openElements.hasInScope(a.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,m.HTML)}function Ao(e,t){e.openElements.hasInScope(a.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(a.RTC),e._insertElement(t,m.HTML)}function _o(e,t){e._reconstructActiveFormattingElements(),ea(t),Tu(t),t.selfClosing?e._appendElement(t,m.MATHML):e._insertElement(t,m.MATHML),t.ackSelfClosing=!0}function go(e,t){e._reconstructActiveFormattingElements(),ta(t),Tu(t),t.selfClosing?e._appendElement(t,m.SVG):e._insertElement(t,m.SVG),t.ackSelfClosing=!0}function Vu(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,m.HTML)}function w(e,t){switch(t.tagID){case a.I:case a.S:case a.B:case a.U:case a.EM:case a.TT:case a.BIG:case a.CODE:case a.FONT:case a.SMALL:case a.STRIKE:case a.STRONG:{so(e,t);break}case a.A:{uo(e,t);break}case a.H1:case a.H2:case a.H3:case a.H4:case a.H5:case a.H6:{jc(e,t);break}case a.P:case a.DL:case a.OL:case a.UL:case a.DIV:case a.DIR:case a.NAV:case a.MAIN:case a.MENU:case a.ASIDE:case a.CENTER:case a.FIGURE:case a.FOOTER:case a.HEADER:case a.HGROUP:case a.DIALOG:case a.DETAILS:case a.ADDRESS:case a.ARTICLE:case a.SECTION:case a.SUMMARY:case a.FIELDSET:case a.BLOCKQUOTE:case a.FIGCAPTION:{$c(e,t);break}case a.LI:case a.DD:case a.DT:{Jc(e,t);break}case a.BR:case a.IMG:case a.WBR:case a.AREA:case a.EMBED:case a.KEYGEN:{ia(e,t);break}case a.HR:{oo(e,t);break}case a.RB:case a.RTC:{bo(e,t);break}case a.RT:case a.RP:{Ao(e,t);break}case a.PRE:case a.LISTING:{zc(e,t);break}case a.XMP:{fo(e,t);break}case a.SVG:{go(e,t);break}case a.HTML:{Wc(e,t);break}case a.BASE:case a.LINK:case a.META:case a.STYLE:case a.TITLE:case a.SCRIPT:case a.BGSOUND:case a.BASEFONT:case a.TEMPLATE:{K(e,t);break}case a.BODY:{Xc(e,t);break}case a.FORM:{Zc(e,t);break}case a.NOBR:{ao(e,t);break}case a.MATH:{_o(e,t);break}case a.TABLE:{io(e,t);break}case a.INPUT:{ro(e,t);break}case a.PARAM:case a.TRACK:case a.SOURCE:{co(e,t);break}case a.IMAGE:{lo(e,t);break}case a.BUTTON:{to(e,t);break}case a.APPLET:case a.OBJECT:case a.MARQUEE:{no(e,t);break}case a.IFRAME:{Eo(e,t);break}case a.SELECT:{To(e,t);break}case a.OPTION:case a.OPTGROUP:{mo(e,t);break}case a.NOEMBED:{Qu(e,t);break}case a.FRAMESET:{Kc(e,t);break}case a.TEXTAREA:{ho(e,t);break}case a.NOSCRIPT:{e.options.scriptingEnabled?Qu(e,t):Vu(e,t);break}case a.PLAINTEXT:{eo(e,t);break}case a.COL:case a.TH:case a.TD:case a.TR:case a.HEAD:case a.FRAME:case a.TBODY:case a.TFOOT:case a.THEAD:case a.CAPTION:case a.COLGROUP:break;default:Vu(e,t)}}function po(e,t){if(e.openElements.hasInScope(a.BODY)&&(e.insertionMode=l.AFTER_BODY,e.options.sourceCodeLocationInfo)){const u=e.openElements.tryPeekProperlyNestedBodyElement();u&&e._setEndLocation(u,t)}}function No(e,t){e.openElements.hasInScope(a.BODY)&&(e.insertionMode=l.AFTER_BODY,ba(e,t))}function Co(e,t){const u=t.tagID;e.openElements.hasInScope(u)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(u))}function Io(e){const t=e.openElements.tmplCount>0,{formElement:u}=e;t||(e.formElement=null),(u||t)&&e.openElements.hasInScope(a.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(a.FORM):u&&e.openElements.remove(u))}function So(e){e.openElements.hasInButtonScope(a.P)||e._insertFakeElement(f.P,a.P),e._closePElement()}function Lo(e){e.openElements.hasInListItemScope(a.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(a.LI),e.openElements.popUntilTagNamePopped(a.LI))}function Ro(e,t){const u=t.tagID;e.openElements.hasInScope(u)&&(e.openElements.generateImpliedEndTagsWithExclusion(u),e.openElements.popUntilTagNamePopped(u))}function Oo(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Do(e,t){const u=t.tagID;e.openElements.hasInScope(u)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(u),e.activeFormattingElements.clearToLastMarker())}function xo(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(f.BR,a.BR),e.openElements.pop(),e.framesetOk=!1}function ca(e,t){const u=t.tagName,s=t.tagID;for(let n=e.openElements.stackTop;n>0;n--){const i=e.openElements.items[n],c=e.openElements.tagIDs[n];if(s===c&&(s!==a.UNKNOWN||e.treeAdapter.getTagName(i)===u)){e.openElements.generateImpliedEndTagsWithExclusion(s),e.openElements.stackTop>=n&&e.openElements.shortenToLength(n);break}if(e._isSpecialElement(i,c))break}}function pt(e,t){switch(t.tagID){case a.A:case a.B:case a.I:case a.S:case a.U:case a.EM:case a.TT:case a.BIG:case a.CODE:case a.FONT:case a.NOBR:case a.SMALL:case a.STRIKE:case a.STRONG:{mu(e,t);break}case a.P:{So(e);break}case a.DL:case a.UL:case a.OL:case a.DIR:case a.DIV:case a.NAV:case a.PRE:case a.MAIN:case a.MENU:case a.ASIDE:case a.BUTTON:case a.CENTER:case a.FIGURE:case a.FOOTER:case a.HEADER:case a.HGROUP:case a.DIALOG:case a.ADDRESS:case a.ARTICLE:case a.DETAILS:case a.SECTION:case a.SUMMARY:case a.LISTING:case a.FIELDSET:case a.BLOCKQUOTE:case a.FIGCAPTION:{Co(e,t);break}case a.LI:{Lo(e);break}case a.DD:case a.DT:{Ro(e,t);break}case a.H1:case a.H2:case a.H3:case a.H4:case a.H5:case a.H6:{Oo(e);break}case a.BR:{xo(e);break}case a.BODY:{po(e,t);break}case a.HTML:{No(e,t);break}case a.FORM:{Io(e);break}case a.APPLET:case a.OBJECT:case a.MARQUEE:{Do(e,t);break}case a.TEMPLATE:{Ee(e,t);break}default:ca(e,t)}}function oa(e,t){e.tmplInsertionModeStack.length>0?ma(e,t):bu(e,t)}function Po(e,t){var u;t.tagID===a.SCRIPT&&((u=e.scriptHandler)===null||u===void 0||u.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Mo(e,t){e._err(t,T.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Ft(e,t){if(ua.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=l.IN_TABLE_TEXT,t.type){case O.CHARACTER:{da(e,t);break}case O.WHITESPACE_CHARACTER:{la(e,t);break}}else We(e,t)}function yo(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,m.HTML),e.insertionMode=l.IN_CAPTION}function Bo(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,m.HTML),e.insertionMode=l.IN_COLUMN_GROUP}function ko(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(f.COLGROUP,a.COLGROUP),e.insertionMode=l.IN_COLUMN_GROUP,Au(e,t)}function Fo(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,m.HTML),e.insertionMode=l.IN_TABLE_BODY}function Uo(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(f.TBODY,a.TBODY),e.insertionMode=l.IN_TABLE_BODY,Nt(e,t)}function Ho(e,t){e.openElements.hasInTableScope(a.TABLE)&&(e.openElements.popUntilTagNamePopped(a.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function wo(e,t){ra(t)?e._appendElement(t,m.HTML):We(e,t),t.ackSelfClosing=!0}function vo(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,m.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Ne(e,t){switch(t.tagID){case a.TD:case a.TH:case a.TR:{Uo(e,t);break}case a.STYLE:case a.SCRIPT:case a.TEMPLATE:{K(e,t);break}case a.COL:{ko(e,t);break}case a.FORM:{vo(e,t);break}case a.TABLE:{Ho(e,t);break}case a.TBODY:case a.TFOOT:case a.THEAD:{Fo(e,t);break}case a.INPUT:{wo(e,t);break}case a.CAPTION:{yo(e,t);break}case a.COLGROUP:{Bo(e,t);break}default:We(e,t)}}function qe(e,t){switch(t.tagID){case a.TABLE:{e.openElements.hasInTableScope(a.TABLE)&&(e.openElements.popUntilTagNamePopped(a.TABLE),e._resetInsertionMode());break}case a.TEMPLATE:{Ee(e,t);break}case a.BODY:case a.CAPTION:case a.COL:case a.COLGROUP:case a.HTML:case a.TBODY:case a.TD:case a.TFOOT:case a.TH:case a.THEAD:case a.TR:break;default:We(e,t)}}function We(e,t){const u=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,gt(e,t),e.fosterParentingEnabled=u}function la(e,t){e.pendingCharacterTokens.push(t)}function da(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function xe(e,t){let u=0;if(e.hasNonWhitespacePendingCharacterToken)for(;u<e.pendingCharacterTokens.length;u++)We(e,e.pendingCharacterTokens[u]);else for(;u<e.pendingCharacterTokens.length;u++)e._insertCharacters(e.pendingCharacterTokens[u]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const ha=new Set([a.CAPTION,a.COL,a.COLGROUP,a.TBODY,a.TD,a.TFOOT,a.TH,a.THEAD,a.TR]);function Yo(e,t){const u=t.tagID;ha.has(u)?e.openElements.hasInTableScope(a.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=l.IN_TABLE,Ne(e,t)):w(e,t)}function qo(e,t){const u=t.tagID;switch(u){case a.CAPTION:case a.TABLE:{e.openElements.hasInTableScope(a.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=l.IN_TABLE,u===a.TABLE&&qe(e,t));break}case a.BODY:case a.COL:case a.COLGROUP:case a.HTML:case a.TBODY:case a.TD:case a.TFOOT:case a.TH:case a.THEAD:case a.TR:break;default:pt(e,t)}}function Au(e,t){switch(t.tagID){case a.HTML:{w(e,t);break}case a.COL:{e._appendElement(t,m.HTML),t.ackSelfClosing=!0;break}case a.TEMPLATE:{K(e,t);break}default:lt(e,t)}}function Qo(e,t){switch(t.tagID){case a.COLGROUP:{e.openElements.currentTagId===a.COLGROUP&&(e.openElements.pop(),e.insertionMode=l.IN_TABLE);break}case a.TEMPLATE:{Ee(e,t);break}case a.COL:break;default:lt(e,t)}}function lt(e,t){e.openElements.currentTagId===a.COLGROUP&&(e.openElements.pop(),e.insertionMode=l.IN_TABLE,e._processToken(t))}function Nt(e,t){switch(t.tagID){case a.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,m.HTML),e.insertionMode=l.IN_ROW;break}case a.TH:case a.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(f.TR,a.TR),e.insertionMode=l.IN_ROW,Ct(e,t);break}case a.CAPTION:case a.COL:case a.COLGROUP:case a.TBODY:case a.TFOOT:case a.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=l.IN_TABLE,Ne(e,t));break}default:Ne(e,t)}}function $t(e,t){const u=t.tagID;switch(t.tagID){case a.TBODY:case a.TFOOT:case a.THEAD:{e.openElements.hasInTableScope(u)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=l.IN_TABLE);break}case a.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=l.IN_TABLE,qe(e,t));break}case a.BODY:case a.CAPTION:case a.COL:case a.COLGROUP:case a.HTML:case a.TD:case a.TH:case a.TR:break;default:qe(e,t)}}function Ct(e,t){switch(t.tagID){case a.TH:case a.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,m.HTML),e.insertionMode=l.IN_CELL,e.activeFormattingElements.insertMarker();break}case a.CAPTION:case a.COL:case a.COLGROUP:case a.TBODY:case a.TFOOT:case a.THEAD:case a.TR:{e.openElements.hasInTableScope(a.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=l.IN_TABLE_BODY,Nt(e,t));break}default:Ne(e,t)}}function fa(e,t){switch(t.tagID){case a.TR:{e.openElements.hasInTableScope(a.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=l.IN_TABLE_BODY);break}case a.TABLE:{e.openElements.hasInTableScope(a.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=l.IN_TABLE_BODY,$t(e,t));break}case a.TBODY:case a.TFOOT:case a.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(a.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=l.IN_TABLE_BODY,$t(e,t));break}case a.BODY:case a.CAPTION:case a.COL:case a.COLGROUP:case a.HTML:case a.TD:case a.TH:break;default:qe(e,t)}}function Vo(e,t){const u=t.tagID;ha.has(u)?(e.openElements.hasInTableScope(a.TD)||e.openElements.hasInTableScope(a.TH))&&(e._closeTableCell(),Ct(e,t)):w(e,t)}function Go(e,t){const u=t.tagID;switch(u){case a.TD:case a.TH:{e.openElements.hasInTableScope(u)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(u),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=l.IN_ROW);break}case a.TABLE:case a.TBODY:case a.TFOOT:case a.THEAD:case a.TR:{e.openElements.hasInTableScope(u)&&(e._closeTableCell(),fa(e,t));break}case a.BODY:case a.CAPTION:case a.COL:case a.COLGROUP:case a.HTML:break;default:pt(e,t)}}function Ea(e,t){switch(t.tagID){case a.HTML:{w(e,t);break}case a.OPTION:{e.openElements.currentTagId===a.OPTION&&e.openElements.pop(),e._insertElement(t,m.HTML);break}case a.OPTGROUP:{e.openElements.currentTagId===a.OPTION&&e.openElements.pop(),e.openElements.currentTagId===a.OPTGROUP&&e.openElements.pop(),e._insertElement(t,m.HTML);break}case a.INPUT:case a.KEYGEN:case a.TEXTAREA:case a.SELECT:{e.openElements.hasInSelectScope(a.SELECT)&&(e.openElements.popUntilTagNamePopped(a.SELECT),e._resetInsertionMode(),t.tagID!==a.SELECT&&e._processStartTag(t));break}case a.SCRIPT:case a.TEMPLATE:{K(e,t);break}}}function Ta(e,t){switch(t.tagID){case a.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===a.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===a.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===a.OPTGROUP&&e.openElements.pop();break}case a.OPTION:{e.openElements.currentTagId===a.OPTION&&e.openElements.pop();break}case a.SELECT:{e.openElements.hasInSelectScope(a.SELECT)&&(e.openElements.popUntilTagNamePopped(a.SELECT),e._resetInsertionMode());break}case a.TEMPLATE:{Ee(e,t);break}}}function Wo(e,t){const u=t.tagID;u===a.CAPTION||u===a.TABLE||u===a.TBODY||u===a.TFOOT||u===a.THEAD||u===a.TR||u===a.TD||u===a.TH?(e.openElements.popUntilTagNamePopped(a.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Ea(e,t)}function Xo(e,t){const u=t.tagID;u===a.CAPTION||u===a.TABLE||u===a.TBODY||u===a.TFOOT||u===a.THEAD||u===a.TR||u===a.TD||u===a.TH?e.openElements.hasInTableScope(u)&&(e.openElements.popUntilTagNamePopped(a.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Ta(e,t)}function Ko(e,t){switch(t.tagID){case a.BASE:case a.BASEFONT:case a.BGSOUND:case a.LINK:case a.META:case a.NOFRAMES:case a.SCRIPT:case a.STYLE:case a.TEMPLATE:case a.TITLE:{K(e,t);break}case a.CAPTION:case a.COLGROUP:case a.TBODY:case a.TFOOT:case a.THEAD:{e.tmplInsertionModeStack[0]=l.IN_TABLE,e.insertionMode=l.IN_TABLE,Ne(e,t);break}case a.COL:{e.tmplInsertionModeStack[0]=l.IN_COLUMN_GROUP,e.insertionMode=l.IN_COLUMN_GROUP,Au(e,t);break}case a.TR:{e.tmplInsertionModeStack[0]=l.IN_TABLE_BODY,e.insertionMode=l.IN_TABLE_BODY,Nt(e,t);break}case a.TD:case a.TH:{e.tmplInsertionModeStack[0]=l.IN_ROW,e.insertionMode=l.IN_ROW,Ct(e,t);break}default:e.tmplInsertionModeStack[0]=l.IN_BODY,e.insertionMode=l.IN_BODY,w(e,t)}}function $o(e,t){t.tagID===a.TEMPLATE&&Ee(e,t)}function ma(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(a.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):bu(e,t)}function jo(e,t){t.tagID===a.HTML?w(e,t):dt(e,t)}function ba(e,t){var u;if(t.tagID===a.HTML){if(e.fragmentContext||(e.insertionMode=l.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===a.HTML){e._setEndLocation(e.openElements.items[0],t);const s=e.openElements.items[1];s&&!(!((u=e.treeAdapter.getNodeSourceCodeLocation(s))===null||u===void 0)&&u.endTag)&&e._setEndLocation(s,t)}}else dt(e,t)}function dt(e,t){e.insertionMode=l.IN_BODY,gt(e,t)}function zo(e,t){switch(t.tagID){case a.HTML:{w(e,t);break}case a.FRAMESET:{e._insertElement(t,m.HTML);break}case a.FRAME:{e._appendElement(t,m.HTML),t.ackSelfClosing=!0;break}case a.NOFRAMES:{K(e,t);break}}}function Zo(e,t){t.tagID===a.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==a.FRAMESET&&(e.insertionMode=l.AFTER_FRAMESET))}function Jo(e,t){switch(t.tagID){case a.HTML:{w(e,t);break}case a.NOFRAMES:{K(e,t);break}}}function e0(e,t){t.tagID===a.HTML&&(e.insertionMode=l.AFTER_AFTER_FRAMESET)}function t0(e,t){t.tagID===a.HTML?w(e,t):et(e,t)}function et(e,t){e.insertionMode=l.IN_BODY,gt(e,t)}function u0(e,t){switch(t.tagID){case a.HTML:{w(e,t);break}case a.NOFRAMES:{K(e,t);break}}}function s0(e,t){t.chars=M,e._insertCharacters(t)}function a0(e,t){e._insertCharacters(t),e.framesetOk=!1}function Aa(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==m.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function n0(e,t){if(_c(t))Aa(e),e._startTagOutsideForeignContent(t);else{const u=e._getAdjustedCurrentElement(),s=e.treeAdapter.getNamespaceURI(u);s===m.MATHML?ea(t):s===m.SVG&&(gc(t),ta(t)),Tu(t),t.selfClosing?e._appendElement(t,s):e._insertElement(t,s),t.ackSelfClosing=!0}}function i0(e,t){if(t.tagID===a.P||t.tagID===a.BR){Aa(e),e._endTagOutsideForeignContent(t);return}for(let u=e.openElements.stackTop;u>0;u--){const s=e.openElements.items[u];if(e.treeAdapter.getNamespaceURI(s)===m.HTML){e._endTagOutsideForeignContent(t);break}const n=e.treeAdapter.getTagName(s);if(n.toLowerCase()===t.tagName){t.tagName=n,e.openElements.shortenToLength(u);break}}}const r0=new Set([f.AREA,f.BASE,f.BASEFONT,f.BGSOUND,f.BR,f.COL,f.EMBED,f.FRAME,f.HR,f.IMG,f.INPUT,f.KEYGEN,f.LINK,f.META,f.PARAM,f.SOURCE,f.TRACK,f.WBR]);function c0(e,t){return t.treeAdapter.isElementNode(e)&&t.treeAdapter.getNamespaceURI(e)===m.HTML&&r0.has(t.treeAdapter.getTagName(e))}const o0={treeAdapter:oe,scriptingEnabled:!0};function l0(e,t){const u={...o0,...t};return _a(e,u)}function d0(e,t){let u="";const s=t.treeAdapter.isElementNode(e)&&t.treeAdapter.getTagName(e)===f.TEMPLATE&&t.treeAdapter.getNamespaceURI(e)===m.HTML?t.treeAdapter.getTemplateContent(e):e,n=t.treeAdapter.getChildNodes(s);if(n)for(const i of n)u+=_a(i,t);return u}function _a(e,t){return t.treeAdapter.isElementNode(e)?h0(e,t):t.treeAdapter.isTextNode(e)?E0(e,t):t.treeAdapter.isCommentNode(e)?T0(e,t):t.treeAdapter.isDocumentTypeNode(e)?m0(e,t):""}function h0(e,t){const u=t.treeAdapter.getTagName(e);return`<${u}${f0(e,t)}>${c0(e,t)?"":`${d0(e,t)}</${u}>`}`}function f0(e,{treeAdapter:t}){let u="";for(const s of t.getAttrList(e)){if(u+=" ",!s.namespace)u+=s.name;else switch(s.namespace){case m.XML:{u+=`xml:${s.name}`;break}case m.XMLNS:{s.name!=="xmlns"&&(u+="xmlns:"),u+=s.name;break}case m.XLINK:{u+=`xlink:${s.name}`;break}default:u+=`${s.prefix}:${s.name}`}u+=`="${rs(s.value)}"`}return u}function E0(e,t){const{treeAdapter:u}=t,s=u.getTextNodeContent(e),n=u.getParentNode(e),i=n&&u.isElementNode(n)&&u.getTagName(n);return i&&u.getNamespaceURI(n)===m.HTML&&Xr(i,t.scriptingEnabled)?s:cs(s)}function T0(e,{treeAdapter:t}){return`<!--${t.getCommentNodeContent(e)}-->`}function m0(e,{treeAdapter:t}){return`<!DOCTYPE ${t.getDocumentTypeNodeName(e)}>`}function b0(e,t){return sa.parse(e,t)}function A0(e,t,u){typeof e=="string"&&(u=t,t=e,e=null);const s=sa.getFragmentParser(e,u);return s.tokenizer.write(t,!0),s.getFragment()}function Gu(e){return new we(e)}function Wu(e){const t=e.includes('"')?"'":'"';return t+e+t}function _0(e,t,u){let s="!DOCTYPE ";return e&&(s+=e),t?s+=` PUBLIC ${Wu(t)}`:u&&(s+=" SYSTEM"),u&&(s+=` ${Wu(u)}`),s}const Ae={isCommentNode:ft,isElementNode:L,isTextNode:j,createDocument(){const e=new le([]);return e["x-mode"]=Q.NO_QUIRKS,e},createDocumentFragment(){return new le([])},createElement(e,t,u){const s=Object.create(null),n=Object.create(null),i=Object.create(null);for(let d=0;d<u.length;d++){const h=u[d].name;s[h]=u[d].value,n[h]=u[d].namespace,i[h]=u[d].prefix}const c=new tu(e,s,[]);return c.namespace=t,c["x-attribsNamespace"]=n,c["x-attribsPrefix"]=i,c},createCommentNode(e){return new Zt(e)},appendChild(e,t){const u=e.children[e.children.length-1];u&&(u.next=t,t.prev=u),e.children.push(t),t.parent=e},insertBefore(e,t,u){const s=e.children.indexOf(u),{prev:n}=u;n&&(n.next=t,t.prev=n),u.prev=t,t.next=u,e.children.splice(s,0,t),t.parent=e},setTemplateContent(e,t){Ae.appendChild(e,t)},getTemplateContent(e){return e.children[0]},setDocumentType(e,t,u,s){const n=_0(t,u,s);let i=e.children.find(c=>Ht(c)&&c.name==="!doctype");i?i.data=n??null:(i=new Jt("!doctype",n),Ae.appendChild(e,i)),i["x-name"]=t??void 0,i["x-publicId"]=u??void 0,i["x-systemId"]=s??void 0},setDocumentMode(e,t){e["x-mode"]=t},getDocumentMode(e){return e["x-mode"]},detachNode(e){if(e.parent){const t=e.parent.children.indexOf(e),{prev:u,next:s}=e;e.prev=null,e.next=null,u&&(u.next=s),s&&(s.prev=u),e.parent.children.splice(t,1),e.parent=null}},insertText(e,t){const u=e.children[e.children.length-1];u&&j(u)?u.data+=t:Ae.appendChild(e,Gu(t))},insertTextBefore(e,t,u){const s=e.children[e.children.indexOf(u)-1];s&&j(s)?s.data+=t:Ae.insertBefore(e,Gu(t),u)},adoptAttributes(e,t){for(let u=0;u<t.length;u++){const s=t[u].name;typeof e.attribs[s]>"u"&&(e.attribs[s]=t[u].value,e["x-attribsNamespace"][s]=t[u].namespace,e["x-attribsPrefix"][s]=t[u].prefix)}},getFirstChild(e){return e.children[0]},getChildNodes(e){return e.children},getParentNode(e){return e.parent},getAttrList(e){return e.attributes},getTagName(e){return e.name},getNamespaceURI(e){return e.namespace},getTextNodeContent(e){return e.data},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){var t;return(t=e["x-name"])!==null&&t!==void 0?t:""},getDocumentTypeNodePublicId(e){var t;return(t=e["x-publicId"])!==null&&t!==void 0?t:""},getDocumentTypeNodeSystemId(e){var t;return(t=e["x-systemId"])!==null&&t!==void 0?t:""},isDocumentTypeNode(e){return Ht(e)&&e.name==="!doctype"},setNodeSourceCodeLocation(e,t){t&&(e.startIndex=t.startOffset,e.endIndex=t.endOffset),e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){t.endOffset!=null&&(e.endIndex=t.endOffset),e.sourceCodeLocation={...e.sourceCodeLocation,...t}}};function g0(e,t,u,s){const n={scriptingEnabled:typeof t.scriptingEnabled=="boolean"?t.scriptingEnabled:!0,treeAdapter:Ae,sourceCodeLocationInfo:t.sourceCodeLocationInfo};return u?b0(e,n):A0(s,e,n)}const p0={treeAdapter:Ae};function N0(e){const t="length"in e?e:[e];for(let s=0;s<t.length;s+=1){const n=t[s];he(n)&&Array.prototype.splice.call(t,s,1,...n.children)}let u="";for(let s=0;s<t.length;s+=1){const n=t[s];u+=l0(n,p0)}return u}var g;(function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Number=35]="Number",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"})(g||(g={}));var b;(function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.SpecialStartSequence=23]="SpecialStartSequence",e[e.InSpecialTag=24]="InSpecialTag",e[e.BeforeEntity=25]="BeforeEntity",e[e.BeforeNumericEntity=26]="BeforeNumericEntity",e[e.InNamedEntity=27]="InNamedEntity",e[e.InNumericEntity=28]="InNumericEntity",e[e.InHexEntity=29]="InHexEntity"})(b||(b={}));function J(e){return e===g.Space||e===g.NewLine||e===g.Tab||e===g.FormFeed||e===g.CarriageReturn}function Ze(e){return e===g.Slash||e===g.Gt||J(e)}function Xu(e){return e>=g.Zero&&e<=g.Nine}function C0(e){return e>=g.LowerA&&e<=g.LowerZ||e>=g.UpperA&&e<=g.UpperZ}function I0(e){return e>=g.UpperA&&e<=g.UpperF||e>=g.LowerA&&e<=g.LowerF}var $;(function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"})($||($={}));const Y={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])};class S0{constructor({xmlMode:t=!1,decodeEntities:u=!0},s){this.cbs=s,this.state=b.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=b.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=t,this.decodeEntities=u,this.entityTrie=t?us:ee}reset(){this.state=b.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=b.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(t){this.offset+=this.buffer.length,this.buffer=t,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}getIndex(){return this.index}getSectionStart(){return this.sectionStart}stateText(t){t===g.Lt||!this.decodeEntities&&this.fastForwardTo(g.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=b.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&t===g.Amp&&(this.state=b.BeforeEntity)}stateSpecialStartSequence(t){const u=this.sequenceIndex===this.currentSequence.length;if(!(u?Ze(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!u){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=b.InTagName,this.stateInTagName(t)}stateInSpecialTag(t){if(this.sequenceIndex===this.currentSequence.length){if(t===g.Gt||J(t)){const u=this.index-this.currentSequence.length;if(this.sectionStart<u){const s=this.index;this.index=u,this.cbs.ontext(this.sectionStart,u),this.index=s}this.isSpecial=!1,this.sectionStart=u+2,this.stateInClosingTagName(t);return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===Y.TitleEnd?this.decodeEntities&&t===g.Amp&&(this.state=b.BeforeEntity):this.fastForwardTo(g.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===g.Lt)}stateCDATASequence(t){t===Y.Cdata[this.sequenceIndex]?++this.sequenceIndex===Y.Cdata.length&&(this.state=b.InCommentLike,this.currentSequence=Y.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=b.InDeclaration,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===t)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Y.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=b.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(t){return this.xmlMode?!Ze(t):C0(t)}startSpecial(t,u){this.isSpecial=!0,this.currentSequence=t,this.sequenceIndex=u,this.state=b.SpecialStartSequence}stateBeforeTagName(t){if(t===g.ExclamationMark)this.state=b.BeforeDeclaration,this.sectionStart=this.index+1;else if(t===g.Questionmark)this.state=b.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(t)){const u=t|32;this.sectionStart=this.index,!this.xmlMode&&u===Y.TitleEnd[2]?this.startSpecial(Y.TitleEnd,3):this.state=!this.xmlMode&&u===Y.ScriptEnd[2]?b.BeforeSpecialS:b.InTagName}else t===g.Slash?this.state=b.BeforeClosingTagName:(this.state=b.Text,this.stateText(t))}stateInTagName(t){Ze(t)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=b.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateBeforeClosingTagName(t){J(t)||(t===g.Gt?this.state=b.Text:(this.state=this.isTagStartChar(t)?b.InClosingTagName:b.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(t){(t===g.Gt||J(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=b.AfterClosingTagName,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){(t===g.Gt||this.fastForwardTo(g.Gt))&&(this.state=b.Text,this.baseState=b.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(t){t===g.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=b.InSpecialTag,this.sequenceIndex=0):this.state=b.Text,this.baseState=this.state,this.sectionStart=this.index+1):t===g.Slash?this.state=b.InSelfClosingTag:J(t)||(this.state=b.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===g.Gt?(this.cbs.onselfclosingtag(this.index),this.state=b.Text,this.baseState=b.Text,this.sectionStart=this.index+1,this.isSpecial=!1):J(t)||(this.state=b.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateInAttributeName(t){(t===g.Eq||Ze(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=b.AfterAttributeName,this.stateAfterAttributeName(t))}stateAfterAttributeName(t){t===g.Eq?this.state=b.BeforeAttributeValue:t===g.Slash||t===g.Gt?(this.cbs.onattribend($.NoValue,this.index),this.state=b.BeforeAttributeName,this.stateBeforeAttributeName(t)):J(t)||(this.cbs.onattribend($.NoValue,this.index),this.state=b.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(t){t===g.DoubleQuote?(this.state=b.InAttributeValueDq,this.sectionStart=this.index+1):t===g.SingleQuote?(this.state=b.InAttributeValueSq,this.sectionStart=this.index+1):J(t)||(this.sectionStart=this.index,this.state=b.InAttributeValueNq,this.stateInAttributeValueNoQuotes(t))}handleInAttributeValue(t,u){t===u||!this.decodeEntities&&this.fastForwardTo(u)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(u===g.DoubleQuote?$.Double:$.Single,this.index),this.state=b.BeforeAttributeName):this.decodeEntities&&t===g.Amp&&(this.baseState=this.state,this.state=b.BeforeEntity)}stateInAttributeValueDoubleQuotes(t){this.handleInAttributeValue(t,g.DoubleQuote)}stateInAttributeValueSingleQuotes(t){this.handleInAttributeValue(t,g.SingleQuote)}stateInAttributeValueNoQuotes(t){J(t)||t===g.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend($.Unquoted,this.index),this.state=b.BeforeAttributeName,this.stateBeforeAttributeName(t)):this.decodeEntities&&t===g.Amp&&(this.baseState=this.state,this.state=b.BeforeEntity)}stateBeforeDeclaration(t){t===g.OpeningSquareBracket?(this.state=b.CDATASequence,this.sequenceIndex=0):this.state=t===g.Dash?b.BeforeComment:b.InDeclaration}stateInDeclaration(t){(t===g.Gt||this.fastForwardTo(g.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=b.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===g.Gt||this.fastForwardTo(g.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=b.Text,this.sectionStart=this.index+1)}stateBeforeComment(t){t===g.Dash?(this.state=b.InCommentLike,this.currentSequence=Y.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=b.InDeclaration}stateInSpecialComment(t){(t===g.Gt||this.fastForwardTo(g.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=b.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){const u=t|32;u===Y.ScriptEnd[3]?this.startSpecial(Y.ScriptEnd,4):u===Y.StyleEnd[3]?this.startSpecial(Y.StyleEnd,4):(this.state=b.InTagName,this.stateInTagName(t))}stateBeforeEntity(t){this.entityExcess=1,this.entityResult=0,t===g.Number?this.state=b.BeforeNumericEntity:t===g.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=b.InNamedEntity,this.stateInNamedEntity(t))}stateInNamedEntity(t){if(this.entityExcess+=1,this.trieIndex=uu(this.entityTrie,this.trieCurrent,this.trieIndex+1,t),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];const u=this.trieCurrent&G.VALUE_LENGTH;if(u){const s=(u>>14)-1;if(!this.allowLegacyEntity()&&t!==g.Semi)this.trieIndex+=s;else{const n=this.index-this.entityExcess+1;n>this.sectionStart&&this.emitPartial(this.sectionStart,n),this.entityResult=this.trieIndex,this.trieIndex+=s,this.entityExcess=0,this.sectionStart=this.index+1,s===0&&this.emitNamedEntity()}}}emitNamedEntity(){if(this.state=this.baseState,this.entityResult===0)return;switch((this.entityTrie[this.entityResult]&G.VALUE_LENGTH)>>14){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~G.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}stateBeforeNumericEntity(t){(t|32)===g.LowerX?(this.entityExcess++,this.state=b.InHexEntity):(this.state=b.InNumericEntity,this.stateInNumericEntity(t))}emitNumericEntity(t){const u=this.index-this.entityExcess-1;u+2+ +(this.state===b.InHexEntity)!==this.index&&(u>this.sectionStart&&this.emitPartial(this.sectionStart,u),this.sectionStart=this.index+Number(t),this.emitCodePoint(ss(this.entityResult))),this.state=this.baseState}stateInNumericEntity(t){t===g.Semi?this.emitNumericEntity(!0):Xu(t)?(this.entityResult=this.entityResult*10+(t-g.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}stateInHexEntity(t){t===g.Semi?this.emitNumericEntity(!0):Xu(t)?(this.entityResult=this.entityResult*16+(t-g.Zero),this.entityExcess++):I0(t)?(this.entityResult=this.entityResult*16+((t|32)-g.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}allowLegacyEntity(){return!this.xmlMode&&(this.baseState===b.Text||this.baseState===b.InSpecialTag)}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===b.Text||this.state===b.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===b.InAttributeValueDq||this.state===b.InAttributeValueSq||this.state===b.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){const t=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case b.Text:{this.stateText(t);break}case b.SpecialStartSequence:{this.stateSpecialStartSequence(t);break}case b.InSpecialTag:{this.stateInSpecialTag(t);break}case b.CDATASequence:{this.stateCDATASequence(t);break}case b.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(t);break}case b.InAttributeName:{this.stateInAttributeName(t);break}case b.InCommentLike:{this.stateInCommentLike(t);break}case b.InSpecialComment:{this.stateInSpecialComment(t);break}case b.BeforeAttributeName:{this.stateBeforeAttributeName(t);break}case b.InTagName:{this.stateInTagName(t);break}case b.InClosingTagName:{this.stateInClosingTagName(t);break}case b.BeforeTagName:{this.stateBeforeTagName(t);break}case b.AfterAttributeName:{this.stateAfterAttributeName(t);break}case b.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(t);break}case b.BeforeAttributeValue:{this.stateBeforeAttributeValue(t);break}case b.BeforeClosingTagName:{this.stateBeforeClosingTagName(t);break}case b.AfterClosingTagName:{this.stateAfterClosingTagName(t);break}case b.BeforeSpecialS:{this.stateBeforeSpecialS(t);break}case b.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(t);break}case b.InSelfClosingTag:{this.stateInSelfClosingTag(t);break}case b.InDeclaration:{this.stateInDeclaration(t);break}case b.BeforeDeclaration:{this.stateBeforeDeclaration(t);break}case b.BeforeComment:{this.stateBeforeComment(t);break}case b.InProcessingInstruction:{this.stateInProcessingInstruction(t);break}case b.InNamedEntity:{this.stateInNamedEntity(t);break}case b.BeforeEntity:{this.stateBeforeEntity(t);break}case b.InHexEntity:{this.stateInHexEntity(t);break}case b.InNumericEntity:{this.stateInNumericEntity(t);break}default:this.stateBeforeNumericEntity(t)}this.index++}this.cleanup()}finish(){this.state===b.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length+this.offset;this.state===b.InCommentLike?this.currentSequence===Y.CdataEnd?this.cbs.oncdata(this.sectionStart,t,0):this.cbs.oncomment(this.sectionStart,t,0):this.state===b.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===b.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===b.InTagName||this.state===b.BeforeAttributeName||this.state===b.BeforeAttributeValue||this.state===b.AfterAttributeName||this.state===b.InAttributeName||this.state===b.InAttributeValueSq||this.state===b.InAttributeValueDq||this.state===b.InAttributeValueNq||this.state===b.InClosingTagName||this.cbs.ontext(this.sectionStart,t)}emitPartial(t,u){this.baseState!==b.Text&&this.baseState!==b.InSpecialTag?this.cbs.onattribdata(t,u):this.cbs.ontext(t,u)}emitCodePoint(t){this.baseState!==b.Text&&this.baseState!==b.InSpecialTag?this.cbs.onattribentity(t):this.cbs.ontextentity(t)}}const be=new Set(["input","option","optgroup","select","button","datalist","textarea"]),x=new Set(["p"]),Ku=new Set(["thead","tbody"]),$u=new Set(["dd","dt"]),ju=new Set(["rt","rp"]),L0=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",x],["h1",x],["h2",x],["h3",x],["h4",x],["h5",x],["h6",x],["select",be],["input",be],["output",be],["button",be],["datalist",be],["textarea",be],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",$u],["dt",$u],["address",x],["article",x],["aside",x],["blockquote",x],["details",x],["div",x],["dl",x],["fieldset",x],["figcaption",x],["figure",x],["footer",x],["form",x],["header",x],["hr",x],["main",x],["nav",x],["ol",x],["pre",x],["section",x],["table",x],["ul",x],["rt",ju],["rp",ju],["tbody",Ku],["tfoot",Ku]]),R0=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),zu=new Set(["math","svg"]),Zu=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),O0=/\s|\//;class D0{constructor(t,u={}){var s,n,i,c,d;this.options=u,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=t??{},this.lowerCaseTagNames=(s=u.lowerCaseTags)!==null&&s!==void 0?s:!u.xmlMode,this.lowerCaseAttributeNames=(n=u.lowerCaseAttributeNames)!==null&&n!==void 0?n:!u.xmlMode,this.tokenizer=new((i=u.Tokenizer)!==null&&i!==void 0?i:S0)(this.options,this),(d=(c=this.cbs).onparserinit)===null||d===void 0||d.call(c,this)}ontext(t,u){var s,n;const i=this.getSlice(t,u);this.endIndex=u-1,(n=(s=this.cbs).ontext)===null||n===void 0||n.call(s,i),this.startIndex=u}ontextentity(t){var u,s;const n=this.tokenizer.getSectionStart();this.endIndex=n-1,(s=(u=this.cbs).ontext)===null||s===void 0||s.call(u,wt(t)),this.startIndex=n}isVoidElement(t){return!this.options.xmlMode&&R0.has(t)}onopentagname(t,u){this.endIndex=u;let s=this.getSlice(t,u);this.lowerCaseTagNames&&(s=s.toLowerCase()),this.emitOpenTag(s)}emitOpenTag(t){var u,s,n,i;this.openTagStart=this.startIndex,this.tagname=t;const c=!this.options.xmlMode&&L0.get(t);if(c)for(;this.stack.length>0&&c.has(this.stack[this.stack.length-1]);){const d=this.stack.pop();(s=(u=this.cbs).onclosetag)===null||s===void 0||s.call(u,d,!0)}this.isVoidElement(t)||(this.stack.push(t),zu.has(t)?this.foreignContext.push(!0):Zu.has(t)&&this.foreignContext.push(!1)),(i=(n=this.cbs).onopentagname)===null||i===void 0||i.call(n,t),this.cbs.onopentag&&(this.attribs={})}endOpenTag(t){var u,s;this.startIndex=this.openTagStart,this.attribs&&((s=(u=this.cbs).onopentag)===null||s===void 0||s.call(u,this.tagname,this.attribs,t),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(t){this.endIndex=t,this.endOpenTag(!1),this.startIndex=t+1}onclosetag(t,u){var s,n,i,c,d,h;this.endIndex=u;let E=this.getSlice(t,u);if(this.lowerCaseTagNames&&(E=E.toLowerCase()),(zu.has(E)||Zu.has(E))&&this.foreignContext.pop(),this.isVoidElement(E))!this.options.xmlMode&&E==="br"&&((n=(s=this.cbs).onopentagname)===null||n===void 0||n.call(s,"br"),(c=(i=this.cbs).onopentag)===null||c===void 0||c.call(i,"br",{},!0),(h=(d=this.cbs).onclosetag)===null||h===void 0||h.call(d,"br",!1));else{const A=this.stack.lastIndexOf(E);if(A!==-1)if(this.cbs.onclosetag){let p=this.stack.length-A;for(;p--;)this.cbs.onclosetag(this.stack.pop(),p!==0)}else this.stack.length=A;else!this.options.xmlMode&&E==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=u+1}onselfclosingtag(t){this.endIndex=t,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=t+1):this.onopentagend(t)}closeCurrentTag(t){var u,s;const n=this.tagname;this.endOpenTag(t),this.stack[this.stack.length-1]===n&&((s=(u=this.cbs).onclosetag)===null||s===void 0||s.call(u,n,!t),this.stack.pop())}onattribname(t,u){this.startIndex=t;const s=this.getSlice(t,u);this.attribname=this.lowerCaseAttributeNames?s.toLowerCase():s}onattribdata(t,u){this.attribvalue+=this.getSlice(t,u)}onattribentity(t){this.attribvalue+=wt(t)}onattribend(t,u){var s,n;this.endIndex=u,(n=(s=this.cbs).onattribute)===null||n===void 0||n.call(s,this.attribname,this.attribvalue,t===$.Double?'"':t===$.Single?"'":t===$.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(t){const u=t.search(O0);let s=u<0?t:t.substr(0,u);return this.lowerCaseTagNames&&(s=s.toLowerCase()),s}ondeclaration(t,u){this.endIndex=u;const s=this.getSlice(t,u);if(this.cbs.onprocessinginstruction){const n=this.getInstructionName(s);this.cbs.onprocessinginstruction(`!${n}`,`!${s}`)}this.startIndex=u+1}onprocessinginstruction(t,u){this.endIndex=u;const s=this.getSlice(t,u);if(this.cbs.onprocessinginstruction){const n=this.getInstructionName(s);this.cbs.onprocessinginstruction(`?${n}`,`?${s}`)}this.startIndex=u+1}oncomment(t,u,s){var n,i,c,d;this.endIndex=u,(i=(n=this.cbs).oncomment)===null||i===void 0||i.call(n,this.getSlice(t,u-s)),(d=(c=this.cbs).oncommentend)===null||d===void 0||d.call(c),this.startIndex=u+1}oncdata(t,u,s){var n,i,c,d,h,E,A,p,N,C;this.endIndex=u;const S=this.getSlice(t,u-s);this.options.xmlMode||this.options.recognizeCDATA?((i=(n=this.cbs).oncdatastart)===null||i===void 0||i.call(n),(d=(c=this.cbs).ontext)===null||d===void 0||d.call(c,S),(E=(h=this.cbs).oncdataend)===null||E===void 0||E.call(h)):((p=(A=this.cbs).oncomment)===null||p===void 0||p.call(A,`[CDATA[${S}]]`),(C=(N=this.cbs).oncommentend)===null||C===void 0||C.call(N)),this.startIndex=u+1}onend(){var t,u;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let s=this.stack.length;s>0;this.cbs.onclosetag(this.stack[--s],!0));}(u=(t=this.cbs).onend)===null||u===void 0||u.call(t)}reset(){var t,u,s,n;(u=(t=this.cbs).onreset)===null||u===void 0||u.call(t),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(n=(s=this.cbs).onparserinit)===null||n===void 0||n.call(s,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(t){this.reset(),this.end(t)}getSlice(t,u){for(;t-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let s=this.buffers[0].slice(t-this.bufferOffset,u-this.bufferOffset);for(;u-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),s+=this.buffers[0].slice(0,u-this.bufferOffset);return s}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(t){var u,s;if(this.ended){(s=(u=this.cbs).onerror)===null||s===void 0||s.call(u,new Error(".write() after done!"));return}this.buffers.push(t),this.tokenizer.running&&(this.tokenizer.write(t),this.writeIndex++)}end(t){var u,s;if(this.ended){(s=(u=this.cbs).onerror)===null||s===void 0||s.call(u,new Error(".end() after done!"));return}t&&this.write(t),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(t){this.write(t)}done(t){this.end(t)}}function x0(e,t){const u=new wa(void 0,t);return new D0(u,t).end(e),u.root}const P0=rr((e,t,u,s)=>t.xmlMode||t._useHtmlParser2?x0(e,t):g0(e,t,u,s)),M0=Ur(P0,(e,t)=>t.xmlMode||t._useHtmlParser2?Et(e,t):N0(e)),y0=M0([]),z0=e=>{Ju().$toast.error(e,{autoClose:5e3,dangerouslyHTMLString:!0})},Z0=e=>{Ju().$toast.success(e,{autoClose:5e3,dangerouslyHTMLString:!0})},J0=e=>{const t=new Date().getTime(),u=new Date(e).getTime();let s="";const n=t-u;return n<1e3*60?s="刚刚":n<1e3*60*60?s=Math.floor(n/1e3/60)+"分钟前":n<1e3*60*60*24?s=Math.floor(n/1e3/60/60)+"小时前":n<1e3*60*60*24*31?s=Math.floor(n/1e3/60/60/24)+"日前":n<1e3*60*60*24*366?s=Math.floor(n/1e3/60/60/24/30)+"个月前":s=Math.floor(n/1e3/60/60/24/365)+"年前",s},el=(e,t)=>e.length<t?e:`${e.substring(0,t)}...`,tl=e=>{let t=e.split("/");return t.length==2?t[1].startsWith("search")?"search":"index":t.length==3?"question":t.length==5?"answer":"index"},ul=async(e,t,u=0)=>{var i,c,d,h,E;let s,n;switch(e){case It.INDEX:s=await St.getAllQuestions(t);const p=s.data.data.map(P=>P.id).map(P=>`/question/${P}`);return n=Math.ceil(s.value.total/t.pagesize),{dataList:p,totalPageCount:n};case It.QUESTION:s=await St.getOneQuestion(u,t);const C=((c=(i=s==null?void 0:s.data)==null?void 0:i.data)==null?void 0:c.answers.map(P=>P.id)).map(P=>`/question/${u}/answer/${P}`),S=Math.ceil(((E=(h=(d=s==null?void 0:s.data)==null?void 0:d.data)==null?void 0:h.questionAgg)==null?void 0:E.answerTotalCount)/t.pagesize);return{dataList:C,totalPageCount:S};case It.SEARCH:s=await St.search(parentPageQueryData);const B=s.data.data.map(P=>P.type=="answer"?`/question/${P.questionId}/answer/${P.id}`:`/question/${P.id}`);return n=Math.ceil(s.data.total/t.pagesize),{dataList:B,totalPageCount:n}}return{dataList:[],totalPageCount:0}},sl=e=>y0.load(e).text();class B0{constructor(){this.client=Ca.create({timeout:30*1e3,baseURL:"/comments-api/",headers:{"Content-type":"application/json"}}),Ia(this.client,{retries:2,shouldResetTimeout:!0,retryDelay:()=>500})}async login(t){return this.client.post("/user/login",t)}async register(t){return this.client.post("/user/register",t)}async logout(t,u){return this.client.post("/user/logout",t,{headers:{Authorization:"Bearer "+u}})}async createComment(t,u){return this.client.post("/comment/create",t,{headers:{Authorization:"Bearer "+u}})}async uploadImage(t,u,s){return this.client.post(`/user/uploadImage/${t}`,u,{headers:{Authorization:"Bearer "+s,"Content-Type":"multipart/form-data"}})}async getCommentList(t){return this.client.get("/comment/list",{params:t})}async getOneUserById(t){return this.client.get(`/user/${t}`)}async getCommentCountList(t){return this.client.post("/comment/getCountList",t)}async getCommentCountListByQuestion(t){return this.client.post("/comment/getCountListByQuestion",t)}async createUserAction(t,u){return this.client.post("/useraction",t,{headers:{Authorization:"Bearer "+u}})}async recordVisitComment(t,u){return this.client.post("/useraction/recordVisitComment",t,{headers:{Authorization:"Bearer "+u}})}async voteup(t,u){return this.client.post("/voteup",t,{headers:{Authorization:"Bearer "+u}})}async getTopList(t){return this.client.get("/comment/getTopRankListF",t)}async getRecentList(t){return this.client.get("/comment/getRecentList")}}const al=new B0;export{H0 as a,y0 as b,al as c,w0 as d,sl as e,q0 as f,Q0 as g,ul as h,X0 as i,W0 as j,tl as k,J0 as l,U0 as m,v0 as n,z0 as o,Z0 as p,V0 as q,G0 as r,Y0 as s,el as t,K0 as u,La as v,Ra as w};
