@limetech/lime-elements 38.13.2-dev.1 → 38.13.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -2
- package/dist/cjs/limel-ai-avatar.cjs.entry.js +1 -1
- package/dist/cjs/limel-ai-avatar.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-markdown.cjs.entry.js +1 -1
- package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +169 -62
- package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js.map +1 -1
- package/dist/cjs/{markdown-parser-564adb69.js → markdown-parser-563c73db.js} +144 -386
- package/dist/cjs/{markdown-parser-564adb69.js.map → markdown-parser-563c73db.js.map} +1 -1
- package/dist/collection/components/ai-avatar/ai-avatar.css +9 -14
- package/dist/collection/components/markdown/link-markdown-plugin.js +30 -0
- package/dist/collection/components/markdown/link-markdown-plugin.js.map +1 -0
- package/dist/collection/components/markdown/markdown-parser.js +4 -4
- package/dist/collection/components/markdown/markdown-parser.js.map +1 -1
- package/dist/collection/components/text-editor/prosemirror-adapter/menu/menu-commands.js +3 -42
- package/dist/collection/components/text-editor/prosemirror-adapter/menu/menu-commands.js.map +1 -1
- package/dist/collection/components/text-editor/prosemirror-adapter/plugins/link/link-mark-spec.js +33 -0
- package/dist/collection/components/text-editor/prosemirror-adapter/plugins/link/link-mark-spec.js.map +1 -0
- package/dist/collection/components/text-editor/prosemirror-adapter/plugins/{link-plugin.js → link/link-plugin.js} +135 -22
- package/dist/collection/components/text-editor/prosemirror-adapter/plugins/link/link-plugin.js.map +1 -0
- package/dist/collection/components/text-editor/prosemirror-adapter/plugins/link/utils.js +39 -0
- package/dist/collection/components/text-editor/prosemirror-adapter/plugins/link/utils.js.map +1 -0
- package/dist/collection/components/text-editor/prosemirror-adapter/prosemirror-adapter.js +3 -1
- package/dist/collection/components/text-editor/prosemirror-adapter/prosemirror-adapter.js.map +1 -1
- package/dist/esm/limel-ai-avatar.entry.js +1 -1
- package/dist/esm/limel-ai-avatar.entry.js.map +1 -1
- package/dist/esm/limel-markdown.entry.js +1 -1
- package/dist/esm/limel-prosemirror-adapter.entry.js +169 -62
- package/dist/esm/limel-prosemirror-adapter.entry.js.map +1 -1
- package/dist/esm/{markdown-parser-1c1fdedc.js → markdown-parser-41d15994.js} +144 -387
- package/dist/esm/markdown-parser-41d15994.js.map +1 -0
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/p-6b5d588e.entry.js +2 -0
- package/dist/lime-elements/p-6b5d588e.entry.js.map +1 -0
- package/dist/lime-elements/{p-ce152b39.entry.js → p-895ae176.entry.js} +2 -2
- package/dist/lime-elements/p-95a71e89.js +8 -0
- package/dist/lime-elements/p-95a71e89.js.map +1 -0
- package/dist/lime-elements/p-f15163c0.entry.js +2 -0
- package/dist/lime-elements/p-f15163c0.entry.js.map +1 -0
- package/dist/types/components/markdown/link-markdown-plugin.d.ts +9 -0
- package/dist/types/components/text-editor/prosemirror-adapter/menu/menu-commands.d.ts +0 -2
- package/dist/types/components/text-editor/prosemirror-adapter/plugins/link/link-mark-spec.d.ts +10 -0
- package/dist/types/components/text-editor/prosemirror-adapter/plugins/link/utils.d.ts +3 -0
- package/package.json +1 -2
- package/dist/collection/components/text-editor/prosemirror-adapter/plugins/link-plugin.js.map +0 -1
- package/dist/esm/markdown-parser-1c1fdedc.js.map +0 -1
- package/dist/lime-elements/p-98478c6d.entry.js +0 -2
- package/dist/lime-elements/p-98478c6d.entry.js.map +0 -1
- package/dist/lime-elements/p-cf87519f.js +0 -8
- package/dist/lime-elements/p-cf87519f.js.map +0 -1
- package/dist/lime-elements/p-d5ac8f59.entry.js +0 -2
- package/dist/lime-elements/p-d5ac8f59.entry.js.map +0 -1
- /package/dist/lime-elements/{p-ce152b39.entry.js.map → p-895ae176.entry.js.map} +0 -0
- /package/dist/types/components/text-editor/prosemirror-adapter/plugins/{link-plugin.d.ts → link/link-plugin.d.ts} +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{c as e,a as t,d as n}from"./p-4e9b4087.js";function i(e,t){if(r(e)){return{href:e,title:t,target:"_blank",rel:"noopener noreferrer",referrerpolicy:"noreferrer"}}return{href:e,title:t,target:null,rel:null,referrerpolicy:null}}function r(e){try{let t;if(s(e)){t=new URL(window.location.protocol+e)}else{t=new URL(e,window.location.origin)}return t.protocol.startsWith("http")&&t.hostname!==window.location.hostname}catch(e){return false}}function s(e){return e.startsWith("//")}const o=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ȀDMPTLJNjǑǖ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;扐blè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;戥ǹ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୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢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;怳Ādpuct;戏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ቻDzኀ\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ǣጓ\0y;䐎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;䅻Dzᕔ\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Ā;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀ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Ā;elƀ;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\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»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ƀ;oș᳔ndĀ;ș᳑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;ẝẤijạả;怄;怅怃Ā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;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱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ↄⅪ←ٖ↛ǰ↉\0proø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⧓ସdz⧟\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᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\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\0m;櫳;櫽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㚆㚝㚵㚼Dz㚋\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))));new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((e=>e.charCodeAt(0))));var a;const l=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]]);const c=(a=String.fromCodePoint)!==null&&a!==void 0?a:function(e){let t="";if(e>65535){e-=65536;t+=String.fromCharCode(e>>>10&1023|55296);e=56320|e&1023}t+=String.fromCharCode(e);return t};function u(e){var t;if(e>=55296&&e<=57343||e>1114111){return 65533}return(t=l.get(e))!==null&&t!==void 0?t:e}var f;(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"})(f||(f={}));const h=32;var d;(function(e){e[e["VALUE_LENGTH"]=49152]="VALUE_LENGTH";e[e["BRANCH_LENGTH"]=16256]="BRANCH_LENGTH";e[e["JUMP_TABLE"]=127]="JUMP_TABLE"})(d||(d={}));function p(e){return e>=f.ZERO&&e<=f.NINE}function m(e){return e>=f.UPPER_A&&e<=f.UPPER_F||e>=f.LOWER_A&&e<=f.LOWER_F}function g(e){return e>=f.UPPER_A&&e<=f.UPPER_Z||e>=f.LOWER_A&&e<=f.LOWER_Z||p(e)}function b(e){return e===f.EQUALS||g(e)}var k;(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"})(k||(k={}));var y;(function(e){e[e["Legacy"]=0]="Legacy";e[e["Strict"]=1]="Strict";e[e["Attribute"]=2]="Attribute"})(y||(y={}));class w{constructor(e,t,n){this.decodeTree=e;this.emitCodePoint=t;this.errors=n;this.state=k.EntityStart;this.consumed=1;this.result=0;this.treeIndex=0;this.excess=1;this.decodeMode=y.Strict}startEntity(e){this.decodeMode=e;this.state=k.EntityStart;this.result=0;this.treeIndex=0;this.excess=1;this.consumed=1}write(e,t){switch(this.state){case k.EntityStart:{if(e.charCodeAt(t)===f.NUM){this.state=k.NumericStart;this.consumed+=1;return this.stateNumericStart(e,t+1)}this.state=k.NamedEntity;return this.stateNamedEntity(e,t)}case k.NumericStart:{return this.stateNumericStart(e,t)}case k.NumericDecimal:{return this.stateNumericDecimal(e,t)}case k.NumericHex:{return this.stateNumericHex(e,t)}case k.NamedEntity:{return this.stateNamedEntity(e,t)}}}stateNumericStart(e,t){if(t>=e.length){return-1}if((e.charCodeAt(t)|h)===f.LOWER_X){this.state=k.NumericHex;this.consumed+=1;return this.stateNumericHex(e,t+1)}this.state=k.NumericDecimal;return this.stateNumericDecimal(e,t)}addToNumericResult(e,t,n,i){if(t!==n){const r=n-t;this.result=this.result*Math.pow(i,r)+parseInt(e.substr(t,r),i);this.consumed+=r}}stateNumericHex(e,t){const n=t;while(t<e.length){const i=e.charCodeAt(t);if(p(i)||m(i)){t+=1}else{this.addToNumericResult(e,n,t,16);return this.emitNumericEntity(i,3)}}this.addToNumericResult(e,n,t,16);return-1}stateNumericDecimal(e,t){const n=t;while(t<e.length){const i=e.charCodeAt(t);if(p(i)){t+=1}else{this.addToNumericResult(e,n,t,10);return this.emitNumericEntity(i,2)}}this.addToNumericResult(e,n,t,10);return-1}emitNumericEntity(e,t){var n;if(this.consumed<=t){(n=this.errors)===null||n===void 0?void 0:n.absenceOfDigitsInNumericCharacterReference(this.consumed);return 0}if(e===f.SEMI){this.consumed+=1}else if(this.decodeMode===y.Strict){return 0}this.emitCodePoint(u(this.result),this.consumed);if(this.errors){if(e!==f.SEMI){this.errors.missingSemicolonAfterCharacterReference()}this.errors.validateNumericCharacterReference(this.result)}return this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let i=n[this.treeIndex];let r=(i&d.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const s=e.charCodeAt(t);this.treeIndex=T(n,i,this.treeIndex+Math.max(1,r),s);if(this.treeIndex<0){return this.result===0||this.decodeMode===y.Attribute&&(r===0||b(s))?0:this.emitNotTerminatedNamedEntity()}i=n[this.treeIndex];r=(i&d.VALUE_LENGTH)>>14;if(r!==0){if(s===f.SEMI){return this.emitNamedEntityData(this.treeIndex,r,this.consumed+this.excess)}if(this.decodeMode!==y.Strict){this.result=this.treeIndex;this.consumed+=this.excess;this.excess=0}}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this;const i=(n[t]&d.VALUE_LENGTH)>>14;this.emitNamedEntityData(t,i,this.consumed);(e=this.errors)===null||e===void 0?void 0:e.missingSemicolonAfterCharacterReference();return this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:i}=this;this.emitCodePoint(t===1?i[e]&~d.VALUE_LENGTH:i[e+1],n);if(t===3){this.emitCodePoint(i[e+2],n)}return n}end(){var e;switch(this.state){case k.NamedEntity:{return this.result!==0&&(this.decodeMode!==y.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0}case k.NumericDecimal:{return this.emitNumericEntity(0,2)}case k.NumericHex:{return this.emitNumericEntity(0,3)}case k.NumericStart:{(e=this.errors)===null||e===void 0?void 0:e.absenceOfDigitsInNumericCharacterReference(this.consumed);return 0}case k.EntityStart:{return 0}}}}function E(e){let t="";const n=new w(e,(e=>t+=c(e)));return function e(i,r){let s=0;let o=0;while((o=i.indexOf("&",o))>=0){t+=i.slice(s,o);n.startEntity(r);const e=n.write(i,o+1);if(e<0){s=o+n.end();break}s=o+e;o=e===0?s+1:s}const a=t+i.slice(s);t="";return a}}function T(e,t,n,i){const r=(t&d.BRANCH_LENGTH)>>7;const s=t&d.JUMP_TABLE;if(r===0){return s!==0&&i===s?n:-1}if(s){const t=i-s;return t<0||t>=r?-1:e[n+t]-1}let o=n;let a=o+r-1;while(o<=a){const t=o+a>>>1;const n=e[t];if(n<i){o=t+1}else if(n>i){a=t-1}else{return e[t+r]}}return-1}const v=E(o);function S(e,t=y.Legacy){return v(e,t)}function x(e){if(e){throw e}}var A=Object.prototype.hasOwnProperty;var C=Object.prototype.toString;var D=Object.defineProperty;var _=Object.getOwnPropertyDescriptor;var R=function e(t){if(typeof Array.isArray==="function"){return Array.isArray(t)}return C.call(t)==="[object Array]"};var L=function e(t){if(!t||C.call(t)!=="[object Object]"){return false}var n=A.call(t,"constructor");var i=t.constructor&&t.constructor.prototype&&A.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!i){return false}var r;for(r in t){}return typeof r==="undefined"||A.call(t,r)};var I=function e(t,n){if(D&&n.name==="__proto__"){D(t,n.name,{enumerable:true,configurable:true,value:n.newValue,writable:true})}else{t[n.name]=n.newValue}};var O=function e(t,n){if(n==="__proto__"){if(!A.call(t,n)){return void 0}else if(_){return _(t,n).value}}return t[n]};var N=function e(){var t,n,i,r,s,o;var a=arguments[0];var l=1;var c=arguments.length;var u=false;if(typeof a==="boolean"){u=a;a=arguments[1]||{};l=2}if(a==null||typeof a!=="object"&&typeof a!=="function"){a={}}for(;l<c;++l){t=arguments[l];if(t!=null){for(n in t){i=O(a,n);r=O(t,n);if(a!==r){if(u&&r&&(L(r)||(s=R(r)))){if(s){s=false;o=i&&R(i)?i:[]}else{o=i&&L(i)?i:{}}I(a,{name:n,newValue:e(u,o,r)})}else if(typeof r!=="undefined"){I(a,{name:n,newValue:r})}}}}}return a};function P(e){if(typeof e!=="object"||e===null){return false}const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function M(){const e=[];const t={run:n,use:i};return t;function n(...t){let n=-1;const i=t.pop();if(typeof i!=="function"){throw new TypeError("Expected function as last argument, not "+i)}r(null,...t);function r(s,...o){const a=e[++n];let l=-1;if(s){i(s);return}while(++l<t.length){if(o[l]===null||o[l]===undefined){o[l]=t[l]}}t=o;if(a){U(a,r)(...o)}else{i(null,...o)}}}function i(n){if(typeof n!=="function"){throw new TypeError("Expected `middelware` to be a function, not "+n)}e.push(n);return t}}function U(e,t){let n;return i;function i(...t){const i=e.length>t.length;let o;if(i){t.push(r)}try{o=e.apply(this,t)}catch(e){const t=e;if(i&&n){throw t}return r(t)}if(!i){if(o instanceof Promise){o.then(s,r)}else if(o instanceof Error){r(o)}else{s(o)}}}function r(e,...i){if(!n){n=true;t(e,...i)}}function s(e){r(null,e)}}function q(e){if(!e||typeof e!=="object"){return""}if("position"in e||"type"in e){return F(e.position)}if("start"in e||"end"in e){return F(e)}if("line"in e||"column"in e){return B(e)}return""}function B(e){return H(e&&e.line)+":"+H(e&&e.column)}function F(e){return B(e&&e.start)+"-"+B(e&&e.end)}function H(e){return e&&typeof e==="number"?e:1}class z extends Error{constructor(e,t,n){super();if(typeof t==="string"){n=t;t=undefined}let i="";let r={};let s=false;if(t){if("line"in t&&"column"in t){r={place:t}}else if("start"in t&&"end"in t){r={place:t}}else if("type"in t){r={ancestors:[t],place:t.position}}else{r={...t}}}if(typeof e==="string"){i=e}else if(!r.cause&&e){s=true;i=e.message;r.cause=e}if(!r.ruleId&&!r.source&&typeof n==="string"){const e=n.indexOf(":");if(e===-1){r.ruleId=n}else{r.source=n.slice(0,e);r.ruleId=n.slice(e+1)}}if(!r.place&&r.ancestors&&r.ancestors){const e=r.ancestors[r.ancestors.length-1];if(e){r.place=e.position}}const o=r.place&&"start"in r.place?r.place.start:r.place;this.ancestors=r.ancestors||undefined;this.cause=r.cause||undefined;this.column=o?o.column:undefined;this.fatal=undefined;this.message=i;this.line=o?o.line:undefined;this.name=q(r.place)||"1:1";this.place=r.place||undefined;this.reason=this.message;this.ruleId=r.ruleId||undefined;this.source=r.source||undefined;this.stack=s&&r.cause&&typeof r.cause.stack==="string"?r.cause.stack:""}}z.prototype.file="";z.prototype.name="";z.prototype.reason="";z.prototype.message="";z.prototype.stack="";z.prototype.column=undefined;z.prototype.line=undefined;z.prototype.ancestors=undefined;z.prototype.cause=undefined;z.prototype.fatal=undefined;z.prototype.place=undefined;z.prototype.ruleId=undefined;z.prototype.source=undefined;const j={basename:G,dirname:V,extname:Y,join:W,sep:"/"};function G(e,t){if(t!==undefined&&typeof t!=="string"){throw new TypeError('"ext" argument must be a string')}$(e);let n=0;let i=-1;let r=e.length;let s;if(t===undefined||t.length===0||t.length>e.length){while(r--){if(e.codePointAt(r)===47){if(s){n=r+1;break}}else if(i<0){s=true;i=r+1}}return i<0?"":e.slice(n,i)}if(t===e){return""}let o=-1;let a=t.length-1;while(r--){if(e.codePointAt(r)===47){if(s){n=r+1;break}}else{if(o<0){s=true;o=r+1}if(a>-1){if(e.codePointAt(r)===t.codePointAt(a--)){if(a<0){i=r}}else{a=-1;i=o}}}}if(n===i){i=o}else if(i<0){i=e.length}return e.slice(n,i)}function V(e){$(e);if(e.length===0){return"."}let t=-1;let n=e.length;let i;while(--n){if(e.codePointAt(n)===47){if(i){t=n;break}}else if(!i){i=true}}return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Y(e){$(e);let t=e.length;let n=-1;let i=0;let r=-1;let s=0;let o;while(t--){const a=e.codePointAt(t);if(a===47){if(o){i=t+1;break}continue}if(n<0){o=true;n=t+1}if(a===46){if(r<0){r=t}else if(s!==1){s=1}}else if(r>-1){s=-1}}if(r<0||n<0||s===0||s===1&&r===n-1&&r===i+1){return""}return e.slice(r,n)}function W(...e){let t=-1;let n;while(++t<e.length){$(e[t]);if(e[t]){n=n===undefined?e[t]:n+"/"+e[t]}}return n===undefined?".":X(n)}function X(e){$(e);const t=e.codePointAt(0)===47;let n=K(e,!t);if(n.length===0&&!t){n="."}if(n.length>0&&e.codePointAt(e.length-1)===47){n+="/"}return t?"/"+n:n}function K(e,t){let n="";let i=0;let r=-1;let s=0;let o=-1;let a;let l;while(++o<=e.length){if(o<e.length){a=e.codePointAt(o)}else if(a===47){break}else{a=47}if(a===47){if(r===o-1||s===1);else if(r!==o-1&&s===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){l=n.lastIndexOf("/");if(l!==n.length-1){if(l<0){n="";i=0}else{n=n.slice(0,l);i=n.length-1-n.lastIndexOf("/")}r=o;s=0;continue}}else if(n.length>0){n="";i=0;r=o;s=0;continue}}if(t){n=n.length>0?n+"/..":"..";i=2}}else{if(n.length>0){n+="/"+e.slice(r+1,o)}else{n=e.slice(r+1,o)}i=o-r-1}r=o;s=0}else if(a===46&&s>-1){s++}else{s=-1}}return n}function $(e){if(typeof e!=="string"){throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}}const Q={cwd:Z};function Z(){return"/"}function J(e){return Boolean(e!==null&&typeof e==="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===undefined)}function ee(e){if(typeof e==="string"){e=new URL(e)}else if(!J(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");t.code="ERR_INVALID_ARG_TYPE";throw t}if(e.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");e.code="ERR_INVALID_URL_SCHEME";throw e}return te(e)}function te(e){if(e.hostname!==""){const e=new TypeError('File URL host must be "localhost" or empty on darwin');e.code="ERR_INVALID_FILE_URL_HOST";throw e}const t=e.pathname;let n=-1;while(++n<t.length){if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const e=t.codePointAt(n+2);if(e===70||e===102){const e=new TypeError("File URL path must not include encoded / characters");e.code="ERR_INVALID_FILE_URL_PATH";throw e}}}return decodeURIComponent(t)}const ne=["history","path","basename","stem","extname","dirname"];class ie{constructor(e){let t;if(!e){t={}}else if(J(e)){t={path:e}}else if(typeof e==="string"||ae(e)){t={value:e}}else{t=e}this.cwd=Q.cwd();this.data={};this.history=[];this.messages=[];let n=-1;while(++n<ne.length){const e=ne[n];if(e in t&&t[e]!==undefined&&t[e]!==null){this[e]=e==="history"?[...t[e]]:t[e]}}let i;for(i in t){if(!ne.includes(i)){this[i]=t[i]}}}get basename(){return typeof this.path==="string"?j.basename(this.path):undefined}set basename(e){se(e,"basename");re(e,"basename");this.path=j.join(this.dirname||"",e)}get dirname(){return typeof this.path==="string"?j.dirname(this.path):undefined}set dirname(e){oe(this.basename,"dirname");this.path=j.join(e||"",this.basename)}get extname(){return typeof this.path==="string"?j.extname(this.path):undefined}set extname(e){re(e,"extname");oe(this.dirname,"extname");if(e){if(e.codePointAt(0)!==46){throw new Error("`extname` must start with `.`")}if(e.includes(".",1)){throw new Error("`extname` cannot contain multiple dots")}}this.path=j.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){if(J(e)){e=ee(e)}se(e,"path");if(this.path!==e){this.history.push(e)}}get stem(){return typeof this.path==="string"?j.basename(this.path,this.extname):undefined}set stem(e){se(e,"stem");re(e,"stem");this.path=j.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const i=this.message(e,t,n);i.fatal=true;throw i}info(e,t,n){const i=this.message(e,t,n);i.fatal=undefined;return i}message(e,t,n){const i=new z(e,t,n);if(this.path){i.name=this.path+":"+i.name;i.file=this.path}i.fatal=false;this.messages.push(i);return i}toString(e){if(this.value===undefined){return""}if(typeof this.value==="string"){return this.value}const t=new TextDecoder(e||undefined);return t.decode(this.value)}}function re(e,t){if(e&&e.includes(j.sep)){throw new Error("`"+t+"` cannot be a path: did not expect `"+j.sep+"`")}}function se(e,t){if(!e){throw new Error("`"+t+"` cannot be empty")}}function oe(e,t){if(!e){throw new Error("Setting `"+t+"` requires `path` to be set too")}}function ae(e){return Boolean(e&&typeof e==="object"&&"byteLength"in e&&"byteOffset"in e)}const le=function(e){const t=this;const n=t.constructor;const i=n.prototype;const r=i[e];const s=function(){return r.apply(s,arguments)};Object.setPrototypeOf(s,i);return s};const ce={}.hasOwnProperty;class ue extends le{constructor(){super("copy");this.Compiler=undefined;this.Parser=undefined;this.attachers=[];this.compiler=undefined;this.freezeIndex=-1;this.frozen=undefined;this.namespace={};this.parser=undefined;this.transformers=M()}copy(){const e=new ue;let t=-1;while(++t<this.attachers.length){const n=this.attachers[t];e.use(...n)}e.data(N(true,{},this.namespace));return e}data(e,t){if(typeof e==="string"){if(arguments.length===2){pe("data",this.frozen);this.namespace[e]=t;return this}return ce.call(this.namespace,e)&&this.namespace[e]||undefined}if(e){pe("data",this.frozen);this.namespace=e;return this}return this.namespace}freeze(){if(this.frozen){return this}const e=this;while(++this.freezeIndex<this.attachers.length){const[t,...n]=this.attachers[this.freezeIndex];if(n[0]===false){continue}if(n[0]===true){n[0]=undefined}const i=t.call(e,...n);if(typeof i==="function"){this.transformers.use(i)}}this.frozen=true;this.freezeIndex=Number.POSITIVE_INFINITY;return this}parse(e){this.freeze();const t=be(e);const n=this.parser||this.Parser;he("parse",n);return n(String(t),t)}process(e,t){const n=this;this.freeze();he("process",this.parser||this.Parser);de("process",this.compiler||this.Compiler);return t?i(undefined,t):new Promise(i);function i(i,r){const s=be(e);const o=n.parse(s);n.run(o,s,(function(e,t,i){if(e||!t||!i){return a(e)}const r=t;const s=n.stringify(r,i);if(ye(s)){i.value=s}else{i.result=s}a(e,i)}));function a(e,n){if(e||!n){r(e)}else if(i){i(n)}else{t(undefined,n)}}}}processSync(e){let t=false;let n;this.freeze();he("processSync",this.parser||this.Parser);de("processSync",this.compiler||this.Compiler);this.process(e,i);ge("processSync","process",t);return n;function i(e,i){t=true;x(e);n=i}}run(e,t,n){me(e);this.freeze();const i=this.transformers;if(!n&&typeof t==="function"){n=t;t=undefined}return n?r(undefined,n):new Promise(r);function r(r,s){const o=be(t);i.run(e,o,a);function a(t,i,o){const a=i||e;if(t){s(t)}else if(r){r(a)}else{n(undefined,a,o)}}}}runSync(e,t){let n=false;let i;this.run(e,t,r);ge("runSync","run",n);return i;function r(e,t){x(e);i=t;n=true}}stringify(e,t){this.freeze();const n=be(t);const i=this.compiler||this.Compiler;de("stringify",i);me(e);return i(e,n)}use(e,...t){const n=this.attachers;const i=this.namespace;pe("use",this.frozen);if(e===null||e===undefined);else if(typeof e==="function"){a(e,t)}else if(typeof e==="object"){if(Array.isArray(e)){o(e)}else{s(e)}}else{throw new TypeError("Expected usable value, not `"+e+"`")}return this;function r(e){if(typeof e==="function"){a(e,[])}else if(typeof e==="object"){if(Array.isArray(e)){const[t,...n]=e;a(t,n)}else{s(e)}}else{throw new TypeError("Expected usable value, not `"+e+"`")}}function s(e){if(!("plugins"in e)&&!("settings"in e)){throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither")}o(e.plugins);if(e.settings){i.settings=N(true,i.settings,e.settings)}}function o(e){let t=-1;if(e===null||e===undefined);else if(Array.isArray(e)){while(++t<e.length){const n=e[t];r(n)}}else{throw new TypeError("Expected a list of plugins, not `"+e+"`")}}function a(e,t){let i=-1;let r=-1;while(++i<n.length){if(n[i][0]===e){r=i;break}}if(r===-1){n.push([e,...t])}else if(t.length>0){let[i,...s]=t;const o=n[r][1];if(P(o)&&P(i)){i=N(true,o,i)}n[r]=[e,i,...s]}}}}const fe=(new ue).freeze();function he(e,t){if(typeof t!=="function"){throw new TypeError("Cannot `"+e+"` without `parser`")}}function de(e,t){if(typeof t!=="function"){throw new TypeError("Cannot `"+e+"` without `compiler`")}}function pe(e,t){if(t){throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}}function me(e){if(!P(e)||typeof e.type!=="string"){throw new TypeError("Expected node, got `"+e+"`")}}function ge(e,t,n){if(!n){throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}}function be(e){return ke(e)?e:new ie(e)}function ke(e){return Boolean(e&&typeof e==="object"&&"message"in e&&"messages"in e)}function ye(e){return typeof e==="string"||we(e)}function we(e){return Boolean(e&&typeof e==="object"&&"byteLength"in e&&"byteOffset"in e)}const Ee={};function Te(e,t){const n=t||Ee;const i=typeof n.includeImageAlt==="boolean"?n.includeImageAlt:true;const r=typeof n.includeHtml==="boolean"?n.includeHtml:true;return ve(e,i,r)}function ve(e,t,n){if(xe(e)){if("value"in e){return e.type==="html"&&!n?"":e.value}if(t&&"alt"in e&&e.alt){return e.alt}if("children"in e){return Se(e.children,t,n)}}if(Array.isArray(e)){return Se(e,t,n)}return""}function Se(e,t,n){const i=[];let r=-1;while(++r<e.length){i[r]=ve(e[r],t,n)}return i.join("")}function xe(e){return Boolean(e&&typeof e==="object")}const Ae={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"",InvisibleTimes:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""};const Ce={}.hasOwnProperty;function De(e){return Ce.call(Ae,e)?Ae[e]:false}function _e(e,t,n,i){const r=e.length;let s=0;let o;if(t<0){t=-t>r?0:r+t}else{t=t>r?r:t}n=n>0?n:0;if(i.length<1e4){o=Array.from(i);o.unshift(t,n);e.splice(...o)}else{if(n)e.splice(t,n);while(s<i.length){o=i.slice(s,s+1e4);o.unshift(t,0);e.splice(...o);s+=1e4;t+=1e4}}}function Re(e,t){if(e.length>0){_e(e,e.length,0,t);return e}return t}const Le={}.hasOwnProperty;function Ie(e){const t={};let n=-1;while(++n<e.length){Oe(t,e[n])}return t}function Oe(e,t){let n;for(n in t){const i=Le.call(e,n)?e[n]:undefined;const r=i||(e[n]={});const s=t[n];let o;if(s){for(o in s){if(!Le.call(r,o))r[o]=[];const e=s[o];Ne(r[o],Array.isArray(e)?e:e?[e]:[])}}}}function Ne(e,t){let n=-1;const i=[];while(++n<t.length){(t[n].add==="after"?e:i).push(t[n])}_e(e,0,0,i)}function Pe(e,t){const n=Number.parseInt(e,t);if(n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111){return"�"}return String.fromCharCode(n)}function Me(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ue=$e(/\p{P}/u);const qe=$e(/[A-Za-z]/);const Be=$e(/[\dA-Za-z]/);const Fe=$e(/[#-'*+\--9=?A-Z^-~]/);function He(e){return e!==null&&(e<32||e===127)}const ze=$e(/\d/);const je=$e(/[\dA-Fa-f]/);const Ge=$e(/[!-/:-@[-`{-~]/);function Ve(e){return e!==null&&e<-2}function Ye(e){return e!==null&&(e<0||e===32)}function We(e){return e===-2||e===-1||e===32}function Xe(e){return Ge(e)||Ue(e)}const Ke=$e(/\s/);function $e(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Qe(e){const t=[];let n=-1;let i=0;let r=0;while(++n<e.length){const s=e.charCodeAt(n);let o="";if(s===37&&Be(e.charCodeAt(n+1))&&Be(e.charCodeAt(n+2))){r=2}else if(s<128){if(!/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))){o=String.fromCharCode(s)}}else if(s>55295&&s<57344){const t=e.charCodeAt(n+1);if(s<56320&&t>56319&&t<57344){o=String.fromCharCode(s,t);r=1}else{o="�"}}else{o=String.fromCharCode(s)}if(o){t.push(e.slice(i,n),encodeURIComponent(o));i=n+r+1;o=""}if(r){n+=r;r=0}}return t.join("")+e.slice(i)}function Ze(e,t,n,i){const r=i?i-1:Number.POSITIVE_INFINITY;let s=0;return o;function o(i){if(We(i)){e.enter(n);return a(i)}return t(i)}function a(i){if(We(i)&&s++<r){e.consume(i);return a}e.exit(n);return t(i)}}const Je={tokenize:et};function et(e){const t=e.attempt(this.parser.constructs.contentInitial,i,r);let n;return t;function i(n){if(n===null){e.consume(n);return}e.enter("lineEnding");e.consume(n);e.exit("lineEnding");return Ze(e,t,"linePrefix")}function r(t){e.enter("paragraph");return s(t)}function s(t){const i=e.enter("chunkText",{contentType:"text",previous:n});if(n){n.next=i}n=i;return o(t)}function o(t){if(t===null){e.exit("chunkText");e.exit("paragraph");e.consume(t);return}if(Ve(t)){e.consume(t);e.exit("chunkText");return s}e.consume(t);return o}}const tt={tokenize:it};const nt={tokenize:rt};function it(e){const t=this;const n=[];let i=0;let r;let s;let o;return a;function a(r){if(i<n.length){const s=n[i];t.containerState=s[1];return e.attempt(s[0].continuation,l,c)(r)}return c(r)}function l(e){i++;if(t.containerState._closeFlow){t.containerState._closeFlow=undefined;if(r){k()}const n=t.events.length;let s=n;let o;while(s--){if(t.events[s][0]==="exit"&&t.events[s][1].type==="chunkFlow"){o=t.events[s][1].end;break}}b(i);let a=n;while(a<t.events.length){t.events[a][1].end=Object.assign({},o);a++}_e(t.events,s+1,0,t.events.slice(n));t.events.length=a;return c(e)}return a(e)}function c(s){if(i===n.length){if(!r){return h(s)}if(r.currentConstruct&&r.currentConstruct.concrete){return p(s)}t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}t.containerState={};return e.check(nt,u,f)(s)}function u(e){if(r)k();b(i);return h(e)}function f(e){t.parser.lazy[t.now().line]=i!==n.length;o=t.now().offset;return p(e)}function h(n){t.containerState={};return e.attempt(nt,d,p)(n)}function d(e){i++;n.push([t.currentConstruct,t.containerState]);return h(e)}function p(n){if(n===null){if(r)k();b(0);e.consume(n);return}r=r||t.parser.flow(t.now());e.enter("chunkFlow",{contentType:"flow",previous:s,_tokenizer:r});return m(n)}function m(n){if(n===null){g(e.exit("chunkFlow"),true);b(0);e.consume(n);return}if(Ve(n)){e.consume(n);g(e.exit("chunkFlow"));i=0;t.interrupt=undefined;return a}e.consume(n);return m}function g(e,n){const a=t.sliceStream(e);if(n)a.push(null);e.previous=s;if(s)s.next=e;s=e;r.defineSkip(e.start);r.write(a);if(t.parser.lazy[e.start.line]){let e=r.events.length;while(e--){if(r.events[e][1].start.offset<o&&(!r.events[e][1].end||r.events[e][1].end.offset>o)){return}}const n=t.events.length;let s=n;let a;let l;while(s--){if(t.events[s][0]==="exit"&&t.events[s][1].type==="chunkFlow"){if(a){l=t.events[s][1].end;break}a=true}}b(i);e=n;while(e<t.events.length){t.events[e][1].end=Object.assign({},l);e++}_e(t.events,s+1,0,t.events.slice(n));t.events.length=e}}function b(i){let r=n.length;while(r-- >i){const i=n[r];t.containerState=i[1];i[0].exit.call(t,e)}n.length=i}function k(){r.write([null]);s=undefined;r=undefined;t.containerState._closeFlow=undefined}}function rt(e,t,n){return Ze(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?undefined:4)}function st(e){if(e===null||Ye(e)||Ke(e)){return 1}if(Xe(e)){return 2}}function ot(e,t,n){const i=[];let r=-1;while(++r<e.length){const s=e[r].resolveAll;if(s&&!i.includes(s)){t=s(t,n);i.push(s)}}return t}const at={name:"attention",tokenize:ct,resolveAll:lt};function lt(e,t){let n=-1;let i;let r;let s;let o;let a;let l;let c;let u;while(++n<e.length){if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){i=n;while(i--){if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3)){continue}l=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f=Object.assign({},e[i][1].end);const h=Object.assign({},e[n][1].start);ut(f,-l);ut(h,l);o={type:l>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[i][1].end)};a={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:h};s={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[i][1].end),end:Object.assign({},e[n][1].start)};r={type:l>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)};e[i][1].end=Object.assign({},o.start);e[n][1].start=Object.assign({},a.end);c=[];if(e[i][1].end.offset-e[i][1].start.offset){c=Re(c,[["enter",e[i][1],t],["exit",e[i][1],t]])}c=Re(c,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",s,t]]);c=Re(c,ot(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t));c=Re(c,[["exit",s,t],["enter",a,t],["exit",a,t],["exit",r,t]]);if(e[n][1].end.offset-e[n][1].start.offset){u=2;c=Re(c,[["enter",e[n][1],t],["exit",e[n][1],t]])}else{u=0}_e(e,i-1,n-i+3,c);n=i+c.length-u-2;break}}}}n=-1;while(++n<e.length){if(e[n][1].type==="attentionSequence"){e[n][1].type="data"}}return e}function ct(e,t){const n=this.parser.constructs.attentionMarkers.null;const i=this.previous;const r=st(i);let s;return o;function o(t){s=t;e.enter("attentionSequence");return a(t)}function a(o){if(o===s){e.consume(o);return a}const l=e.exit("attentionSequence");const c=st(o);const u=!c||c===2&&r||n.includes(o);const f=!r||r===2&&c||n.includes(i);l._open=Boolean(s===42?u:u&&(r||!f));l._close=Boolean(s===42?f:f&&(c||!u));return t(o)}}function ut(e,t){e.column+=t;e.offset+=t;e._bufferIndex+=t}const ft={name:"autolink",tokenize:ht};function ht(e,t,n){let i=0;return r;function r(t){e.enter("autolink");e.enter("autolinkMarker");e.consume(t);e.exit("autolinkMarker");e.enter("autolinkProtocol");return s}function s(t){if(qe(t)){e.consume(t);return o}return c(t)}function o(e){if(e===43||e===45||e===46||Be(e)){i=1;return a(e)}return c(e)}function a(t){if(t===58){e.consume(t);i=0;return l}if((t===43||t===45||t===46||Be(t))&&i++<32){e.consume(t);return a}i=0;return c(t)}function l(i){if(i===62){e.exit("autolinkProtocol");e.enter("autolinkMarker");e.consume(i);e.exit("autolinkMarker");e.exit("autolink");return t}if(i===null||i===32||i===60||He(i)){return n(i)}e.consume(i);return l}function c(t){if(t===64){e.consume(t);return u}if(Fe(t)){e.consume(t);return c}return n(t)}function u(e){return Be(e)?f(e):n(e)}function f(n){if(n===46){e.consume(n);i=0;return u}if(n===62){e.exit("autolinkProtocol").type="autolinkEmail";e.enter("autolinkMarker");e.consume(n);e.exit("autolinkMarker");e.exit("autolink");return t}return h(n)}function h(t){if((t===45||Be(t))&&i++<63){const n=t===45?h:f;e.consume(t);return n}return n(t)}}const dt={tokenize:pt,partial:true};function pt(e,t,n){return i;function i(t){return We(t)?Ze(e,r,"linePrefix")(t):r(t)}function r(e){return e===null||Ve(e)?t(e):n(e)}}const mt={name:"blockQuote",tokenize:gt,continuation:{tokenize:bt},exit:kt};function gt(e,t,n){const i=this;return r;function r(t){if(t===62){const n=i.containerState;if(!n.open){e.enter("blockQuote",{_container:true});n.open=true}e.enter("blockQuotePrefix");e.enter("blockQuoteMarker");e.consume(t);e.exit("blockQuoteMarker");return s}return n(t)}function s(n){if(We(n)){e.enter("blockQuotePrefixWhitespace");e.consume(n);e.exit("blockQuotePrefixWhitespace");e.exit("blockQuotePrefix");return t}e.exit("blockQuotePrefix");return t(n)}}function bt(e,t,n){const i=this;return r;function r(t){if(We(t)){return Ze(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?undefined:4)(t)}return s(t)}function s(i){return e.attempt(mt,t,n)(i)}}function kt(e){e.exit("blockQuote")}const yt={name:"characterEscape",tokenize:wt};function wt(e,t,n){return i;function i(t){e.enter("characterEscape");e.enter("escapeMarker");e.consume(t);e.exit("escapeMarker");return r}function r(i){if(Ge(i)){e.enter("characterEscapeValue");e.consume(i);e.exit("characterEscapeValue");e.exit("characterEscape");return t}return n(i)}}const Et={name:"characterReference",tokenize:Tt};function Tt(e,t,n){const i=this;let r=0;let s;let o;return a;function a(t){e.enter("characterReference");e.enter("characterReferenceMarker");e.consume(t);e.exit("characterReferenceMarker");return l}function l(t){if(t===35){e.enter("characterReferenceMarkerNumeric");e.consume(t);e.exit("characterReferenceMarkerNumeric");return c}e.enter("characterReferenceValue");s=31;o=Be;return u(t)}function c(t){if(t===88||t===120){e.enter("characterReferenceMarkerHexadecimal");e.consume(t);e.exit("characterReferenceMarkerHexadecimal");e.enter("characterReferenceValue");s=6;o=je;return u}e.enter("characterReferenceValue");s=7;o=ze;return u(t)}function u(a){if(a===59&&r){const r=e.exit("characterReferenceValue");if(o===Be&&!De(i.sliceSerialize(r))){return n(a)}e.enter("characterReferenceMarker");e.consume(a);e.exit("characterReferenceMarker");e.exit("characterReference");return t}if(o(a)&&r++<s){e.consume(a);return u}return n(a)}}const vt={tokenize:At,partial:true};const St={name:"codeFenced",tokenize:xt,concrete:true};function xt(e,t,n){const i=this;const r={tokenize:E,partial:true};let s=0;let o=0;let a;return l;function l(e){return c(e)}function c(t){const n=i.events[i.events.length-1];s=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],true).length:0;a=t;e.enter("codeFenced");e.enter("codeFencedFence");e.enter("codeFencedFenceSequence");return u(t)}function u(t){if(t===a){o++;e.consume(t);return u}if(o<3){return n(t)}e.exit("codeFencedFenceSequence");return We(t)?Ze(e,f,"whitespace")(t):f(t)}function f(n){if(n===null||Ve(n)){e.exit("codeFencedFence");return i.interrupt?t(n):e.check(vt,m,w)(n)}e.enter("codeFencedFenceInfo");e.enter("chunkString",{contentType:"string"});return h(n)}function h(t){if(t===null||Ve(t)){e.exit("chunkString");e.exit("codeFencedFenceInfo");return f(t)}if(We(t)){e.exit("chunkString");e.exit("codeFencedFenceInfo");return Ze(e,d,"whitespace")(t)}if(t===96&&t===a){return n(t)}e.consume(t);return h}function d(t){if(t===null||Ve(t)){return f(t)}e.enter("codeFencedFenceMeta");e.enter("chunkString",{contentType:"string"});return p(t)}function p(t){if(t===null||Ve(t)){e.exit("chunkString");e.exit("codeFencedFenceMeta");return f(t)}if(t===96&&t===a){return n(t)}e.consume(t);return p}function m(t){return e.attempt(r,w,g)(t)}function g(t){e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return b}function b(t){return s>0&&We(t)?Ze(e,k,"linePrefix",s+1)(t):k(t)}function k(t){if(t===null||Ve(t)){return e.check(vt,m,w)(t)}e.enter("codeFlowValue");return y(t)}function y(t){if(t===null||Ve(t)){e.exit("codeFlowValue");return k(t)}e.consume(t);return y}function w(n){e.exit("codeFenced");return t(n)}function E(e,t,n){let r=0;return s;function s(t){e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return l}function l(t){e.enter("codeFencedFence");return We(t)?Ze(e,c,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?undefined:4)(t):c(t)}function c(t){if(t===a){e.enter("codeFencedFenceSequence");return u(t)}return n(t)}function u(t){if(t===a){r++;e.consume(t);return u}if(r>=o){e.exit("codeFencedFenceSequence");return We(t)?Ze(e,f,"whitespace")(t):f(t)}return n(t)}function f(i){if(i===null||Ve(i)){e.exit("codeFencedFence");return t(i)}return n(i)}}}function At(e,t,n){const i=this;return r;function r(t){if(t===null){return n(t)}e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return s}function s(e){return i.parser.lazy[i.now().line]?n(e):t(e)}}const Ct={name:"codeIndented",tokenize:_t};const Dt={tokenize:Rt,partial:true};function _t(e,t,n){const i=this;return r;function r(t){e.enter("codeIndented");return Ze(e,s,"linePrefix",4+1)(t)}function s(e){const t=i.events[i.events.length-1];return t&&t[1].type==="linePrefix"&&t[2].sliceSerialize(t[1],true).length>=4?o(e):n(e)}function o(t){if(t===null){return l(t)}if(Ve(t)){return e.attempt(Dt,o,l)(t)}e.enter("codeFlowValue");return a(t)}function a(t){if(t===null||Ve(t)){e.exit("codeFlowValue");return o(t)}e.consume(t);return a}function l(n){e.exit("codeIndented");return t(n)}}function Rt(e,t,n){const i=this;return r;function r(t){if(i.parser.lazy[i.now().line]){return n(t)}if(Ve(t)){e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return r}return Ze(e,s,"linePrefix",4+1)(t)}function s(e){const s=i.events[i.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],true).length>=4?t(e):Ve(e)?r(e):n(e)}}const Lt={name:"codeText",tokenize:Nt,resolve:It,previous:Ot};function It(e){let t=e.length-4;let n=3;let i;let r;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){i=n;while(++i<t){if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding";e[t][1].type="codeTextPadding";n+=2;t-=2;break}}}i=n-1;t++;while(++i<=t){if(r===undefined){if(i!==t&&e[i][1].type!=="lineEnding"){r=i}}else if(i===t||e[i][1].type==="lineEnding"){e[r][1].type="codeTextData";if(i!==r+2){e[r][1].end=e[i-1][1].end;e.splice(r+2,i-r-2);t-=i-r-2;i=r+2}r=undefined}}return e}function Ot(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Nt(e,t,n){let i=0;let r;let s;return o;function o(t){e.enter("codeText");e.enter("codeTextSequence");return a(t)}function a(t){if(t===96){e.consume(t);i++;return a}e.exit("codeTextSequence");return l(t)}function l(t){if(t===null){return n(t)}if(t===32){e.enter("space");e.consume(t);e.exit("space");return l}if(t===96){s=e.enter("codeTextSequence");r=0;return u(t)}if(Ve(t)){e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return l}e.enter("codeTextData");return c(t)}function c(t){if(t===null||t===32||t===96||Ve(t)){e.exit("codeTextData");return l(t)}e.consume(t);return c}function u(n){if(n===96){e.consume(n);r++;return u}if(r===i){e.exit("codeTextSequence");e.exit("codeText");return t(n)}s.type="codeTextData";return c(n)}}function Pt(e){const t={};let n=-1;let i;let r;let s;let o;let a;let l;let c;while(++n<e.length){while(n in t){n=t[n]}i=e[n];if(n&&i[1].type==="chunkFlow"&&e[n-1][1].type==="listItemPrefix"){l=i[1]._tokenizer.events;s=0;if(s<l.length&&l[s][1].type==="lineEndingBlank"){s+=2}if(s<l.length&&l[s][1].type==="content"){while(++s<l.length){if(l[s][1].type==="content"){break}if(l[s][1].type==="chunkText"){l[s][1]._isInFirstContentOfListItem=true;s++}}}}if(i[0]==="enter"){if(i[1].contentType){Object.assign(t,Mt(e,n));n=t[n];c=true}}else if(i[1]._container){s=n;r=undefined;while(s--){o=e[s];if(o[1].type==="lineEnding"||o[1].type==="lineEndingBlank"){if(o[0]==="enter"){if(r){e[r][1].type="lineEndingBlank"}o[1].type="lineEnding";r=s}}else{break}}if(r){i[1].end=Object.assign({},e[r][1].start);a=e.slice(r,n);a.unshift(i);_e(e,r,n-r+1,a)}}}return!c}function Mt(e,t){const n=e[t][1];const i=e[t][2];let r=t-1;const s=[];const o=n._tokenizer||i.parser[n.contentType](n.start);const a=o.events;const l=[];const c={};let u;let f;let h=-1;let d=n;let p=0;let m=0;const g=[m];while(d){while(e[++r][1]!==d){}s.push(r);if(!d._tokenizer){u=i.sliceStream(d);if(!d.next){u.push(null)}if(f){o.defineSkip(d.start)}if(d._isInFirstContentOfListItem){o._gfmTasklistFirstContentOfListItem=true}o.write(u);if(d._isInFirstContentOfListItem){o._gfmTasklistFirstContentOfListItem=undefined}}f=d;d=d.next}d=n;while(++h<a.length){if(a[h][0]==="exit"&&a[h-1][0]==="enter"&&a[h][1].type===a[h-1][1].type&&a[h][1].start.line!==a[h][1].end.line){m=h+1;g.push(m);d._tokenizer=undefined;d.previous=undefined;d=d.next}}o.events=[];if(d){d._tokenizer=undefined;d.previous=undefined}else{g.pop()}h=g.length;while(h--){const t=a.slice(g[h],g[h+1]);const n=s.pop();l.unshift([n,n+t.length-1]);_e(e,n,2,t)}h=-1;while(++h<l.length){c[p+l[h][0]]=p+l[h][1];p+=l[h][1]-l[h][0]-1}return c}const Ut={tokenize:Ft,resolve:Bt};const qt={tokenize:Ht,partial:true};function Bt(e){Pt(e);return e}function Ft(e,t){let n;return i;function i(t){e.enter("content");n=e.enter("chunkContent",{contentType:"content"});return r(t)}function r(t){if(t===null){return s(t)}if(Ve(t)){return e.check(qt,o,s)(t)}e.consume(t);return r}function s(n){e.exit("chunkContent");e.exit("content");return t(n)}function o(t){e.consume(t);e.exit("chunkContent");n.next=e.enter("chunkContent",{contentType:"content",previous:n});n=n.next;return r}}function Ht(e,t,n){const i=this;return r;function r(t){e.exit("chunkContent");e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return Ze(e,s,"linePrefix")}function s(r){if(r===null||Ve(r)){return n(r)}const s=i.events[i.events.length-1];if(!i.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],true).length>=4){return t(r)}return e.interrupt(i.parser.constructs.flow,n,t)(r)}}function zt(e,t,n,i,r,s,o,a,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return f;function f(t){if(t===60){e.enter(i);e.enter(r);e.enter(s);e.consume(t);e.exit(s);return h}if(t===null||t===32||t===41||He(t)){return n(t)}e.enter(i);e.enter(o);e.enter(a);e.enter("chunkString",{contentType:"string"});return m(t)}function h(n){if(n===62){e.enter(s);e.consume(n);e.exit(s);e.exit(r);e.exit(i);return t}e.enter(a);e.enter("chunkString",{contentType:"string"});return d(n)}function d(t){if(t===62){e.exit("chunkString");e.exit(a);return h(t)}if(t===null||t===60||Ve(t)){return n(t)}e.consume(t);return t===92?p:d}function p(t){if(t===60||t===62||t===92){e.consume(t);return d}return d(t)}function m(r){if(!u&&(r===null||r===41||Ye(r))){e.exit("chunkString");e.exit(a);e.exit(o);e.exit(i);return t(r)}if(u<c&&r===40){e.consume(r);u++;return m}if(r===41){e.consume(r);u--;return m}if(r===null||r===32||r===40||He(r)){return n(r)}e.consume(r);return r===92?g:m}function g(t){if(t===40||t===41||t===92){e.consume(t);return m}return m(t)}}function jt(e,t,n,i,r,s){const o=this;let a=0;let l;return c;function c(t){e.enter(i);e.enter(r);e.consume(t);e.exit(r);e.enter(s);return u}function u(c){if(a>999||c===null||c===91||c===93&&!l||c===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs){return n(c)}if(c===93){e.exit(s);e.enter(r);e.consume(c);e.exit(r);e.exit(i);return t}if(Ve(c)){e.enter("lineEnding");e.consume(c);e.exit("lineEnding");return u}e.enter("chunkString",{contentType:"string"});return f(c)}function f(t){if(t===null||t===91||t===93||Ve(t)||a++>999){e.exit("chunkString");return u(t)}e.consume(t);if(!l)l=!We(t);return t===92?h:f}function h(t){if(t===91||t===92||t===93){e.consume(t);a++;return f}return f(t)}}function Gt(e,t,n,i,r,s){let o;return a;function a(t){if(t===34||t===39||t===40){e.enter(i);e.enter(r);e.consume(t);e.exit(r);o=t===40?41:t;return l}return n(t)}function l(n){if(n===o){e.enter(r);e.consume(n);e.exit(r);e.exit(i);return t}e.enter(s);return c(n)}function c(t){if(t===o){e.exit(s);return l(o)}if(t===null){return n(t)}if(Ve(t)){e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return Ze(e,c,"linePrefix")}e.enter("chunkString",{contentType:"string"});return u(t)}function u(t){if(t===o||t===null||Ve(t)){e.exit("chunkString");return c(t)}e.consume(t);return t===92?f:u}function f(t){if(t===o||t===92){e.consume(t);return u}return u(t)}}function Vt(e,t){let n;return i;function i(r){if(Ve(r)){e.enter("lineEnding");e.consume(r);e.exit("lineEnding");n=true;return i}if(We(r)){return Ze(e,i,n?"linePrefix":"lineSuffix")(r)}return t(r)}}const Yt={name:"definition",tokenize:Xt};const Wt={tokenize:Kt,partial:true};function Xt(e,t,n){const i=this;let r;return s;function s(t){e.enter("definition");return o(t)}function o(t){return jt.call(i,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}function a(t){r=Me(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1));if(t===58){e.enter("definitionMarker");e.consume(t);e.exit("definitionMarker");return l}return n(t)}function l(t){return Ye(t)?Vt(e,c)(t):c(t)}function c(t){return zt(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function u(t){return e.attempt(Wt,f,f)(t)}function f(t){return We(t)?Ze(e,h,"whitespace")(t):h(t)}function h(s){if(s===null||Ve(s)){e.exit("definition");i.parser.defined.push(r);return t(s)}return n(s)}}function Kt(e,t,n){return i;function i(t){return Ye(t)?Vt(e,r)(t):n(t)}function r(t){return Gt(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function s(t){return We(t)?Ze(e,o,"whitespace")(t):o(t)}function o(e){return e===null||Ve(e)?t(e):n(e)}}const $t={name:"hardBreakEscape",tokenize:Qt};function Qt(e,t,n){return i;function i(t){e.enter("hardBreakEscape");e.consume(t);return r}function r(i){if(Ve(i)){e.exit("hardBreakEscape");return t(i)}return n(i)}}const Zt={name:"headingAtx",tokenize:en,resolve:Jt};function Jt(e,t){let n=e.length-2;let i=3;let r;let s;if(e[i][1].type==="whitespace"){i+=2}if(n-2>i&&e[n][1].type==="whitespace"){n-=2}if(e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")){n-=i+1===n?2:4}if(n>i){r={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end};s={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"};_e(e,i,n-i+1,[["enter",r,t],["enter",s,t],["exit",s,t],["exit",r,t]])}return e}function en(e,t,n){let i=0;return r;function r(t){e.enter("atxHeading");return s(t)}function s(t){e.enter("atxHeadingSequence");return o(t)}function o(t){if(t===35&&i++<6){e.consume(t);return o}if(t===null||Ye(t)){e.exit("atxHeadingSequence");return a(t)}return n(t)}function a(n){if(n===35){e.enter("atxHeadingSequence");return l(n)}if(n===null||Ve(n)){e.exit("atxHeading");return t(n)}if(We(n)){return Ze(e,a,"whitespace")(n)}e.enter("atxHeadingText");return c(n)}function l(t){if(t===35){e.consume(t);return l}e.exit("atxHeadingSequence");return a(t)}function c(t){if(t===null||t===35||Ye(t)){e.exit("atxHeadingText");return a(t)}e.consume(t);return c}}const tn=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"];const nn=["pre","script","style","textarea"];const rn={name:"htmlFlow",tokenize:ln,resolveTo:an,concrete:true};const sn={tokenize:un,partial:true};const on={tokenize:cn,partial:true};function an(e){let t=e.length;while(t--){if(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"){break}}if(t>1&&e[t-2][1].type==="linePrefix"){e[t][1].start=e[t-2][1].start;e[t+1][1].start=e[t-2][1].start;e.splice(t-2,2)}return e}function ln(e,t,n){const i=this;let r;let s;let o;let a;let l;return c;function c(e){return u(e)}function u(t){e.enter("htmlFlow");e.enter("htmlFlowData");e.consume(t);return f}function f(a){if(a===33){e.consume(a);return h}if(a===47){e.consume(a);s=true;return m}if(a===63){e.consume(a);r=3;return i.interrupt?t:M}if(qe(a)){e.consume(a);o=String.fromCharCode(a);return g}return n(a)}function h(s){if(s===45){e.consume(s);r=2;return d}if(s===91){e.consume(s);r=5;a=0;return p}if(qe(s)){e.consume(s);r=4;return i.interrupt?t:M}return n(s)}function d(r){if(r===45){e.consume(r);return i.interrupt?t:M}return n(r)}function p(r){const s="CDATA[";if(r===s.charCodeAt(a++)){e.consume(r);if(a===s.length){return i.interrupt?t:D}return p}return n(r)}function m(t){if(qe(t)){e.consume(t);o=String.fromCharCode(t);return g}return n(t)}function g(a){if(a===null||a===47||a===62||Ye(a)){const l=a===47;const c=o.toLowerCase();if(!l&&!s&&nn.includes(c)){r=1;return i.interrupt?t(a):D(a)}if(tn.includes(o.toLowerCase())){r=6;if(l){e.consume(a);return b}return i.interrupt?t(a):D(a)}r=7;return i.interrupt&&!i.parser.lazy[i.now().line]?n(a):s?k(a):y(a)}if(a===45||Be(a)){e.consume(a);o+=String.fromCharCode(a);return g}return n(a)}function b(r){if(r===62){e.consume(r);return i.interrupt?t:D}return n(r)}function k(t){if(We(t)){e.consume(t);return k}return A(t)}function y(t){if(t===47){e.consume(t);return A}if(t===58||t===95||qe(t)){e.consume(t);return w}if(We(t)){e.consume(t);return y}return A(t)}function w(t){if(t===45||t===46||t===58||t===95||Be(t)){e.consume(t);return w}return E(t)}function E(t){if(t===61){e.consume(t);return T}if(We(t)){e.consume(t);return E}return y(t)}function T(t){if(t===null||t===60||t===61||t===62||t===96){return n(t)}if(t===34||t===39){e.consume(t);l=t;return v}if(We(t)){e.consume(t);return T}return S(t)}function v(t){if(t===l){e.consume(t);l=null;return x}if(t===null||Ve(t)){return n(t)}e.consume(t);return v}function S(t){if(t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||Ye(t)){return E(t)}e.consume(t);return S}function x(e){if(e===47||e===62||We(e)){return y(e)}return n(e)}function A(t){if(t===62){e.consume(t);return C}return n(t)}function C(t){if(t===null||Ve(t)){return D(t)}if(We(t)){e.consume(t);return C}return n(t)}function D(t){if(t===45&&r===2){e.consume(t);return I}if(t===60&&r===1){e.consume(t);return O}if(t===62&&r===4){e.consume(t);return U}if(t===63&&r===3){e.consume(t);return M}if(t===93&&r===5){e.consume(t);return P}if(Ve(t)&&(r===6||r===7)){e.exit("htmlFlowData");return e.check(sn,q,_)(t)}if(t===null||Ve(t)){e.exit("htmlFlowData");return _(t)}e.consume(t);return D}function _(t){return e.check(on,R,q)(t)}function R(t){e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return L}function L(t){if(t===null||Ve(t)){return _(t)}e.enter("htmlFlowData");return D(t)}function I(t){if(t===45){e.consume(t);return M}return D(t)}function O(t){if(t===47){e.consume(t);o="";return N}return D(t)}function N(t){if(t===62){const n=o.toLowerCase();if(nn.includes(n)){e.consume(t);return U}return D(t)}if(qe(t)&&o.length<8){e.consume(t);o+=String.fromCharCode(t);return N}return D(t)}function P(t){if(t===93){e.consume(t);return M}return D(t)}function M(t){if(t===62){e.consume(t);return U}if(t===45&&r===2){e.consume(t);return M}return D(t)}function U(t){if(t===null||Ve(t)){e.exit("htmlFlowData");return q(t)}e.consume(t);return U}function q(n){e.exit("htmlFlow");return t(n)}}function cn(e,t,n){const i=this;return r;function r(t){if(Ve(t)){e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return s}return n(t)}function s(e){return i.parser.lazy[i.now().line]?n(e):t(e)}}function un(e,t,n){return i;function i(i){e.enter("lineEnding");e.consume(i);e.exit("lineEnding");return e.attempt(dt,t,n)}}const fn={name:"htmlText",tokenize:hn};function hn(e,t,n){const i=this;let r;let s;let o;return a;function a(t){e.enter("htmlText");e.enter("htmlTextData");e.consume(t);return l}function l(t){if(t===33){e.consume(t);return c}if(t===47){e.consume(t);return E}if(t===63){e.consume(t);return y}if(qe(t)){e.consume(t);return S}return n(t)}function c(t){if(t===45){e.consume(t);return u}if(t===91){e.consume(t);s=0;return p}if(qe(t)){e.consume(t);return k}return n(t)}function u(t){if(t===45){e.consume(t);return d}return n(t)}function f(t){if(t===null){return n(t)}if(t===45){e.consume(t);return h}if(Ve(t)){o=f;return O(t)}e.consume(t);return f}function h(t){if(t===45){e.consume(t);return d}return f(t)}function d(e){return e===62?I(e):e===45?h(e):f(e)}function p(t){const i="CDATA[";if(t===i.charCodeAt(s++)){e.consume(t);return s===i.length?m:p}return n(t)}function m(t){if(t===null){return n(t)}if(t===93){e.consume(t);return g}if(Ve(t)){o=m;return O(t)}e.consume(t);return m}function g(t){if(t===93){e.consume(t);return b}return m(t)}function b(t){if(t===62){return I(t)}if(t===93){e.consume(t);return b}return m(t)}function k(t){if(t===null||t===62){return I(t)}if(Ve(t)){o=k;return O(t)}e.consume(t);return k}function y(t){if(t===null){return n(t)}if(t===63){e.consume(t);return w}if(Ve(t)){o=y;return O(t)}e.consume(t);return y}function w(e){return e===62?I(e):y(e)}function E(t){if(qe(t)){e.consume(t);return T}return n(t)}function T(t){if(t===45||Be(t)){e.consume(t);return T}return v(t)}function v(t){if(Ve(t)){o=v;return O(t)}if(We(t)){e.consume(t);return v}return I(t)}function S(t){if(t===45||Be(t)){e.consume(t);return S}if(t===47||t===62||Ye(t)){return x(t)}return n(t)}function x(t){if(t===47){e.consume(t);return I}if(t===58||t===95||qe(t)){e.consume(t);return A}if(Ve(t)){o=x;return O(t)}if(We(t)){e.consume(t);return x}return I(t)}function A(t){if(t===45||t===46||t===58||t===95||Be(t)){e.consume(t);return A}return C(t)}function C(t){if(t===61){e.consume(t);return D}if(Ve(t)){o=C;return O(t)}if(We(t)){e.consume(t);return C}return x(t)}function D(t){if(t===null||t===60||t===61||t===62||t===96){return n(t)}if(t===34||t===39){e.consume(t);r=t;return _}if(Ve(t)){o=D;return O(t)}if(We(t)){e.consume(t);return D}e.consume(t);return R}function _(t){if(t===r){e.consume(t);r=undefined;return L}if(t===null){return n(t)}if(Ve(t)){o=_;return O(t)}e.consume(t);return _}function R(t){if(t===null||t===34||t===39||t===60||t===61||t===96){return n(t)}if(t===47||t===62||Ye(t)){return x(t)}e.consume(t);return R}function L(e){if(e===47||e===62||Ye(e)){return x(e)}return n(e)}function I(i){if(i===62){e.consume(i);e.exit("htmlTextData");e.exit("htmlText");return t}return n(i)}function O(t){e.exit("htmlTextData");e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return N}function N(t){return We(t)?Ze(e,P,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?undefined:4)(t):P(t)}function P(t){e.enter("htmlTextData");return o(t)}}const dn={name:"labelEnd",tokenize:yn,resolveTo:kn,resolveAll:bn};const pn={tokenize:wn};const mn={tokenize:En};const gn={tokenize:Tn};function bn(e){let t=-1;while(++t<e.length){const n=e[t][1];if(n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){e.splice(t+1,n.type==="labelImage"?4:2);n.type="data";t++}}return e}function kn(e,t){let n=e.length;let i=0;let r;let s;let o;let a;while(n--){r=e[n][1];if(s){if(r.type==="link"||r.type==="labelLink"&&r._inactive){break}if(e[n][0]==="enter"&&r.type==="labelLink"){r._inactive=true}}else if(o){if(e[n][0]==="enter"&&(r.type==="labelImage"||r.type==="labelLink")&&!r._balanced){s=n;if(r.type!=="labelLink"){i=2;break}}}else if(r.type==="labelEnd"){o=n}}const l={type:e[s][1].type==="labelLink"?"link":"image",start:Object.assign({},e[s][1].start),end:Object.assign({},e[e.length-1][1].end)};const c={type:"label",start:Object.assign({},e[s][1].start),end:Object.assign({},e[o][1].end)};const u={type:"labelText",start:Object.assign({},e[s+i+2][1].end),end:Object.assign({},e[o-2][1].start)};a=[["enter",l,t],["enter",c,t]];a=Re(a,e.slice(s+1,s+i+3));a=Re(a,[["enter",u,t]]);a=Re(a,ot(t.parser.constructs.insideSpan.null,e.slice(s+i+4,o-3),t));a=Re(a,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]);a=Re(a,e.slice(o+1));a=Re(a,[["exit",l,t]]);_e(e,s,e.length,a);return e}function yn(e,t,n){const i=this;let r=i.events.length;let s;let o;while(r--){if((i.events[r][1].type==="labelImage"||i.events[r][1].type==="labelLink")&&!i.events[r][1]._balanced){s=i.events[r][1];break}}return a;function a(t){if(!s){return n(t)}if(s._inactive){return f(t)}o=i.parser.defined.includes(Me(i.sliceSerialize({start:s.end,end:i.now()})));e.enter("labelEnd");e.enter("labelMarker");e.consume(t);e.exit("labelMarker");e.exit("labelEnd");return l}function l(t){if(t===40){return e.attempt(pn,u,o?u:f)(t)}if(t===91){return e.attempt(mn,u,o?c:f)(t)}return o?u(t):f(t)}function c(t){return e.attempt(gn,u,f)(t)}function u(e){return t(e)}function f(e){s._balanced=true;return n(e)}}function wn(e,t,n){return i;function i(t){e.enter("resource");e.enter("resourceMarker");e.consume(t);e.exit("resourceMarker");return r}function r(t){return Ye(t)?Vt(e,s)(t):s(t)}function s(t){if(t===41){return u(t)}return zt(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return Ye(t)?Vt(e,l)(t):u(t)}function a(e){return n(e)}function l(t){if(t===34||t===39||t===40){return Gt(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t)}return u(t)}function c(t){return Ye(t)?Vt(e,u)(t):u(t)}function u(i){if(i===41){e.enter("resourceMarker");e.consume(i);e.exit("resourceMarker");e.exit("resource");return t}return n(i)}}function En(e,t,n){const i=this;return r;function r(t){return jt.call(i,e,s,o,"reference","referenceMarker","referenceString")(t)}function s(e){return i.parser.defined.includes(Me(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function Tn(e,t,n){return i;function i(t){e.enter("reference");e.enter("referenceMarker");e.consume(t);e.exit("referenceMarker");return r}function r(i){if(i===93){e.enter("referenceMarker");e.consume(i);e.exit("referenceMarker");e.exit("reference");return t}return n(i)}}const vn={name:"labelStartImage",tokenize:Sn,resolveAll:dn.resolveAll};function Sn(e,t,n){const i=this;return r;function r(t){e.enter("labelImage");e.enter("labelImageMarker");e.consume(t);e.exit("labelImageMarker");return s}function s(t){if(t===91){e.enter("labelMarker");e.consume(t);e.exit("labelMarker");e.exit("labelImage");return o}return n(t)}function o(e){return e===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(e):t(e)}}const xn={name:"labelStartLink",tokenize:An,resolveAll:dn.resolveAll};function An(e,t,n){const i=this;return r;function r(t){e.enter("labelLink");e.enter("labelMarker");e.consume(t);e.exit("labelMarker");e.exit("labelLink");return s}function s(e){return e===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(e):t(e)}}const Cn={name:"lineEnding",tokenize:Dn};function Dn(e,t){return n;function n(n){e.enter("lineEnding");e.consume(n);e.exit("lineEnding");return Ze(e,t,"linePrefix")}}const _n={name:"thematicBreak",tokenize:Rn};function Rn(e,t,n){let i=0;let r;return s;function s(t){e.enter("thematicBreak");return o(t)}function o(e){r=e;return a(e)}function a(s){if(s===r){e.enter("thematicBreakSequence");return l(s)}if(i>=3&&(s===null||Ve(s))){e.exit("thematicBreak");return t(s)}return n(s)}function l(t){if(t===r){e.consume(t);i++;return l}e.exit("thematicBreakSequence");return We(t)?Ze(e,a,"whitespace")(t):a(t)}}const Ln={name:"list",tokenize:Nn,continuation:{tokenize:Pn},exit:Un};const In={tokenize:qn,partial:true};const On={tokenize:Mn,partial:true};function Nn(e,t,n){const i=this;const r=i.events[i.events.length-1];let s=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],true).length:0;let o=0;return a;function a(t){const r=i.containerState.type||(t===42||t===43||t===45?"listUnordered":"listOrdered");if(r==="listUnordered"?!i.containerState.marker||t===i.containerState.marker:ze(t)){if(!i.containerState.type){i.containerState.type=r;e.enter(r,{_container:true})}if(r==="listUnordered"){e.enter("listItemPrefix");return t===42||t===45?e.check(_n,n,c)(t):c(t)}if(!i.interrupt||t===49){e.enter("listItemPrefix");e.enter("listItemValue");return l(t)}}return n(t)}function l(t){if(ze(t)&&++o<10){e.consume(t);return l}if((!i.interrupt||o<2)&&(i.containerState.marker?t===i.containerState.marker:t===41||t===46)){e.exit("listItemValue");return c(t)}return n(t)}function c(t){e.enter("listItemMarker");e.consume(t);e.exit("listItemMarker");i.containerState.marker=i.containerState.marker||t;return e.check(dt,i.interrupt?n:u,e.attempt(In,h,f))}function u(e){i.containerState.initialBlankLine=true;s++;return h(e)}function f(t){if(We(t)){e.enter("listItemPrefixWhitespace");e.consume(t);e.exit("listItemPrefixWhitespace");return h}return n(t)}function h(n){i.containerState.size=s+i.sliceSerialize(e.exit("listItemPrefix"),true).length;return t(n)}}function Pn(e,t,n){const i=this;i.containerState._closeFlow=undefined;return e.check(dt,r,s);function r(n){i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine;return Ze(e,t,"listItemIndent",i.containerState.size+1)(n)}function s(n){if(i.containerState.furtherBlankLines||!We(n)){i.containerState.furtherBlankLines=undefined;i.containerState.initialBlankLine=undefined;return o(n)}i.containerState.furtherBlankLines=undefined;i.containerState.initialBlankLine=undefined;return e.attempt(On,t,o)(n)}function o(r){i.containerState._closeFlow=true;i.interrupt=undefined;return Ze(e,e.attempt(Ln,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?undefined:4)(r)}}function Mn(e,t,n){const i=this;return Ze(e,r,"listItemIndent",i.containerState.size+1);function r(e){const r=i.events[i.events.length-1];return r&&r[1].type==="listItemIndent"&&r[2].sliceSerialize(r[1],true).length===i.containerState.size?t(e):n(e)}}function Un(e){e.exit(this.containerState.type)}function qn(e,t,n){const i=this;return Ze(e,r,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?undefined:4+1);function r(e){const r=i.events[i.events.length-1];return!We(e)&&r&&r[1].type==="listItemPrefixWhitespace"?t(e):n(e)}}const Bn={name:"setextUnderline",tokenize:Hn,resolveTo:Fn};function Fn(e,t){let n=e.length;let i;let r;let s;while(n--){if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}if(e[n][1].type==="paragraph"){r=n}}else{if(e[n][1].type==="content"){e.splice(n,1)}if(!s&&e[n][1].type==="definition"){s=n}}}const o={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText";if(s){e.splice(r,0,["enter",o,t]);e.splice(s+1,0,["exit",e[i][1],t]);e[i][1].end=Object.assign({},e[s][1].end)}else{e[i][1]=o}e.push(["exit",o,t]);return e}function Hn(e,t,n){const i=this;let r;return s;function s(t){let s=i.events.length;let a;while(s--){if(i.events[s][1].type!=="lineEnding"&&i.events[s][1].type!=="linePrefix"&&i.events[s][1].type!=="content"){a=i.events[s][1].type==="paragraph";break}}if(!i.parser.lazy[i.now().line]&&(i.interrupt||a)){e.enter("setextHeadingLine");r=t;return o(t)}return n(t)}function o(t){e.enter("setextHeadingLineSequence");return a(t)}function a(t){if(t===r){e.consume(t);return a}e.exit("setextHeadingLineSequence");return We(t)?Ze(e,l,"lineSuffix")(t):l(t)}function l(i){if(i===null||Ve(i)){e.exit("setextHeadingLine");return t(i)}return n(i)}}const zn={tokenize:jn};function jn(e){const t=this;const n=e.attempt(dt,i,e.attempt(this.parser.constructs.flowInitial,r,Ze(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Ut,r)),"linePrefix")));return n;function i(i){if(i===null){e.consume(i);return}e.enter("lineEndingBlank");e.consume(i);e.exit("lineEndingBlank");t.currentConstruct=undefined;return n}function r(i){if(i===null){e.consume(i);return}e.enter("lineEnding");e.consume(i);e.exit("lineEnding");t.currentConstruct=undefined;return n}}const Gn={resolveAll:Xn()};const Vn=Wn("string");const Yn=Wn("text");function Wn(e){return{tokenize:t,resolveAll:Xn(e==="text"?Kn:undefined)};function t(t){const n=this;const i=this.parser.constructs[e];const r=t.attempt(i,s,o);return s;function s(e){return l(e)?r(e):o(e)}function o(e){if(e===null){t.consume(e);return}t.enter("data");t.consume(e);return a}function a(e){if(l(e)){t.exit("data");return r(e)}t.consume(e);return a}function l(e){if(e===null){return true}const t=i[e];let r=-1;if(t){while(++r<t.length){const e=t[r];if(!e.previous||e.previous.call(n,n.previous)){return true}}}return false}}}function Xn(e){return t;function t(t,n){let i=-1;let r;while(++i<=t.length){if(r===undefined){if(t[i]&&t[i][1].type==="data"){r=i;i++}}else if(!t[i]||t[i][1].type!=="data"){if(i!==r+2){t[r][1].end=t[i-1][1].end;t.splice(r+2,i-r-2);i=r+2}r=undefined}}return e?e(t,n):t}}function Kn(e,t){let n=0;while(++n<=e.length){if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const i=e[n-1][1];const r=t.sliceStream(i);let s=r.length;let o=-1;let a=0;let l;while(s--){const e=r[s];if(typeof e==="string"){o=e.length;while(e.charCodeAt(o-1)===32){a++;o--}if(o)break;o=-1}else if(e===-2){l=true;a++}else if(e===-1);else{s++;break}}if(a){const r={type:n===e.length||l||a<2?"lineSuffix":"hardBreakTrailing",start:{line:i.end.line,column:i.end.column-a,offset:i.end.offset-a,_index:i.start._index+s,_bufferIndex:s?o:i.start._bufferIndex+o},end:Object.assign({},i.end)};i.end=Object.assign({},r.start);if(i.start.offset===i.end.offset){Object.assign(i,r)}else{e.splice(n,0,["enter",r,t],["exit",r,t]);n+=2}}n++}}return e}function $n(e,t,n){let i=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const r={};const s=[];let o=[];let a=[];const l={consume:k,enter:y,exit:w,attempt:v(E),check:v(T),interrupt:v(T,{interrupt:true})};const c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:d,sliceSerialize:h,now:p,defineSkip:m,write:f};let u=t.tokenize.call(c,l);if(t.resolveAll){s.push(t)}return c;function f(e){o=Re(o,e);g();if(o[o.length-1]!==null){return[]}S(t,0);c.events=ot(s,c.events,c);return c.events}function h(e,t){return Zn(d(e),t)}function d(e){return Qn(o,e)}function p(){const{line:e,column:t,offset:n,_index:r,_bufferIndex:s}=i;return{line:e,column:t,offset:n,_index:r,_bufferIndex:s}}function m(e){r[e.line]=e.column;A()}function g(){let e;while(i._index<o.length){const t=o[i._index];if(typeof t==="string"){e=i._index;if(i._bufferIndex<0){i._bufferIndex=0}while(i._index===e&&i._bufferIndex<t.length){b(t.charCodeAt(i._bufferIndex))}}else{b(t)}}}function b(e){u=u(e)}function k(e){if(Ve(e)){i.line++;i.column=1;i.offset+=e===-3?2:1;A()}else if(e!==-1){i.column++;i.offset++}if(i._bufferIndex<0){i._index++}else{i._bufferIndex++;if(i._bufferIndex===o[i._index].length){i._bufferIndex=-1;i._index++}}c.previous=e}function y(e,t){const n=t||{};n.type=e;n.start=p();c.events.push(["enter",n,c]);a.push(n);return n}function w(e){const t=a.pop();t.end=p();c.events.push(["exit",t,c]);return t}function E(e,t){S(e,t.from)}function T(e,t){t.restore()}function v(e,t){return n;function n(n,i,r){let s;let o;let a;let u;return Array.isArray(n)?h(n):"tokenize"in n?h([n]):f(n);function f(e){return t;function t(t){const n=t!==null&&e[t];const i=t!==null&&e.null;const r=[...Array.isArray(n)?n:n?[n]:[],...Array.isArray(i)?i:i?[i]:[]];return h(r)(t)}}function h(e){s=e;o=0;if(e.length===0){return r}return d(e[o])}function d(e){return n;function n(n){u=x();a=e;if(!e.partial){c.currentConstruct=e}if(e.name&&c.parser.constructs.disable.null.includes(e.name)){return m()}return e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,p,m)(n)}}function p(t){e(a,u);return i}function m(e){u.restore();if(++o<s.length){return d(s[o])}return r}}}function S(e,t){if(e.resolveAll&&!s.includes(e)){s.push(e)}if(e.resolve){_e(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c))}if(e.resolveTo){c.events=e.resolveTo(c.events,c)}}function x(){const e=p();const t=c.previous;const n=c.currentConstruct;const r=c.events.length;const s=Array.from(a);return{restore:o,from:r};function o(){i=e;c.previous=t;c.currentConstruct=n;c.events.length=r;a=s;A()}}function A(){if(i.line in r&&i.column<2){i.column=r[i.line];i.offset+=r[i.line]-1}}}function Qn(e,t){const n=t.start._index;const i=t.start._bufferIndex;const r=t.end._index;const s=t.end._bufferIndex;let o;if(n===r){o=[e[n].slice(i,s)]}else{o=e.slice(n,r);if(i>-1){const e=o[0];if(typeof e==="string"){o[0]=e.slice(i)}else{o.shift()}}if(s>0){o.push(e[r].slice(0,s))}}return o}function Zn(e,t){let n=-1;const i=[];let r;while(++n<e.length){const s=e[n];let o;if(typeof s==="string"){o=s}else switch(s){case-5:{o="\r";break}case-4:{o="\n";break}case-3:{o="\r"+"\n";break}case-2:{o=t?" ":"\t";break}case-1:{if(!t&&r)continue;o=" ";break}default:{o=String.fromCharCode(s)}}r=s===-2;i.push(o)}return i.join("")}const Jn={[42]:Ln,[43]:Ln,[45]:Ln,[48]:Ln,[49]:Ln,[50]:Ln,[51]:Ln,[52]:Ln,[53]:Ln,[54]:Ln,[55]:Ln,[56]:Ln,[57]:Ln,[62]:mt};const ei={[91]:Yt};const ti={[-2]:Ct,[-1]:Ct,[32]:Ct};const ni={[35]:Zt,[42]:_n,[45]:[Bn,_n],[60]:rn,[61]:Bn,[95]:_n,[96]:St,[126]:St};const ii={[38]:Et,[92]:yt};const ri={[-5]:Cn,[-4]:Cn,[-3]:Cn,[33]:vn,[38]:Et,[42]:at,[60]:[ft,fn],[91]:xn,[92]:[$t,yt],[93]:dn,[95]:at,[96]:Lt};const si={null:[at,Gn]};const oi={null:[42,95]};const ai={null:[]};const li=Object.freeze({__proto__:null,document:Jn,contentInitial:ei,flowInitial:ti,flow:ni,string:ii,text:ri,insideSpan:si,attentionMarkers:oi,disable:ai});function ci(e){const t=e||{};const n=Ie([li,...t.extensions||[]]);const i={defined:[],lazy:{},constructs:n,content:r(Je),document:r(tt),flow:r(zn),string:r(Vn),text:r(Yn)};return i;function r(e){return t;function t(t){return $n(i,e,t)}}}function ui(e){while(!Pt(e)){}return e}const fi=/[\0\t\n\r]/g;function hi(){let e=1;let t="";let n=true;let i;return r;function r(r,s,o){const a=[];let l;let c;let u;let f;let h;r=t+(typeof r==="string"?r.toString():new TextDecoder(s||undefined).decode(r));u=0;t="";if(n){if(r.charCodeAt(0)===65279){u++}n=undefined}while(u<r.length){fi.lastIndex=u;l=fi.exec(r);f=l&&l.index!==undefined?l.index:r.length;h=r.charCodeAt(f);if(!l){t=r.slice(u);break}if(h===10&&u===f&&i){a.push(-3);i=undefined}else{if(i){a.push(-5);i=undefined}if(u<f){a.push(r.slice(u,f));e+=f-u}switch(h){case 0:{a.push(65533);e++;break}case 9:{c=Math.ceil(e/4)*4;a.push(-2);while(e++<c)a.push(-1);break}case 10:{a.push(-4);e=1;break}default:{i=true;e=1}}}u=f+1}if(o){if(i)a.push(-5);if(t)a.push(t);a.push(null)}return a}}const di=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function pi(e){return e.replace(di,mi)}function mi(e,t,n){if(t){return t}const i=n.charCodeAt(0);if(i===35){const e=n.charCodeAt(1);const t=e===120||e===88;return Pe(n.slice(t?2:1),t?16:10)}return De(n)||e}function gi(e){if(!e||typeof e!=="object"){return""}if("position"in e||"type"in e){return ki(e.position)}if("start"in e||"end"in e){return ki(e)}if("line"in e||"column"in e){return bi(e)}return""}function bi(e){return yi(e&&e.line)+":"+yi(e&&e.column)}function ki(e){return bi(e&&e.start)+"-"+bi(e&&e.end)}function yi(e){return e&&typeof e==="number"?e:1}const wi={}.hasOwnProperty;function Ei(e,t,n){if(typeof t!=="string"){n=t;t=undefined}return Ti(n)(ui(ci(n).document().write(hi()(e,t,true))))}function Ti(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(ee),autolinkProtocol:x,autolinkEmail:x,atxHeading:s($),blockQuote:s(V),characterEscape:x,characterReference:x,codeFenced:s(Y),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:s(Y,o),codeText:s(W,o),codeTextData:x,data:x,codeFlowValue:x,definition:s(X),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:s(K),hardBreakEscape:s(Q),hardBreakTrailing:s(Q),htmlFlow:s(Z,o),htmlFlowData:x,htmlText:s(Z,o),htmlTextData:x,image:s(J),label:o,link:s(ee),listItem:s(ne),listItemValue:h,listOrdered:s(te,f),listUnordered:s(te),paragraph:s(ie),reference:B,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:s($),strong:s(re),thematicBreak:s(oe)},exit:{atxHeading:l(),atxHeadingSequence:E,autolink:l(),autolinkEmail:G,autolinkProtocol:j,blockQuote:l(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:H,characterReferenceMarkerNumeric:H,characterReferenceValue:z,codeFenced:l(g),codeFencedFence:m,codeFencedFenceInfo:d,codeFencedFenceMeta:p,codeFlowValue:A,codeIndented:l(b),codeText:l(L),codeTextData:A,data:A,definition:l(),definitionDestinationString:w,definitionLabelString:k,definitionTitleString:y,emphasis:l(),hardBreakEscape:l(D),hardBreakTrailing:l(D),htmlFlow:l(_),htmlFlowData:A,htmlText:l(R),htmlTextData:A,image:l(O),label:P,labelText:N,lineEnding:C,link:l(I),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:F,resourceDestinationString:M,resourceTitleString:U,resource:q,setextHeading:l(S),setextHeadingLineSequence:v,setextHeadingText:T,strong:l(),thematicBreak:l()}};Si(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(e){let i={type:"root",children:[]};const s={stack:[i],tokenStack:[],config:t,enter:a,exit:c,buffer:o,resume:u,data:n};const l=[];let f=-1;while(++f<e.length){if(e[f][1].type==="listOrdered"||e[f][1].type==="listUnordered"){if(e[f][0]==="enter"){l.push(f)}else{const t=l.pop();f=r(e,t,f)}}}f=-1;while(++f<e.length){const n=t[e[f][0]];if(wi.call(n,e[f][1].type)){n[e[f][1].type].call(Object.assign({sliceSerialize:e[f][2].sliceSerialize},s),e[f][1])}}if(s.tokenStack.length>0){const e=s.tokenStack[s.tokenStack.length-1];const t=e[1]||Ai;t.call(s,undefined,e[0])}i.position={start:vi(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:vi(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})};f=-1;while(++f<t.transforms.length){i=t.transforms[f](i)||i}return i}function r(e,t,n){let i=t-1;let r=-1;let s=false;let o;let a;let l;let c;while(++i<=n){const t=e[i];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{if(t[0]==="enter"){r++}else{r--}c=undefined;break}case"lineEndingBlank":{if(t[0]==="enter"){if(o&&!c&&!r&&!l){l=i}c=undefined}break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":{break}default:{c=undefined}}if(!r&&t[0]==="enter"&&t[1].type==="listItemPrefix"||r===-1&&t[0]==="exit"&&(t[1].type==="listUnordered"||t[1].type==="listOrdered")){if(o){let r=i;a=undefined;while(r--){const t=e[r];if(t[1].type==="lineEnding"||t[1].type==="lineEndingBlank"){if(t[0]==="exit")continue;if(a){e[a][1].type="lineEndingBlank";s=true}t[1].type="lineEnding";a=r}else if(t[1].type==="linePrefix"||t[1].type==="blockQuotePrefix"||t[1].type==="blockQuotePrefixWhitespace"||t[1].type==="blockQuoteMarker"||t[1].type==="listItemIndent");else{break}}if(l&&(!a||l<a)){o._spread=true}o.end=Object.assign({},a?e[a][1].start:t[1].end);e.splice(a||i,0,["exit",o,t[2]]);i++;n++}if(t[1].type==="listItemPrefix"){const r={type:"listItem",_spread:false,start:Object.assign({},t[1].start),end:undefined};o=r;e.splice(i,0,["enter",r,t[2]]);i++;n++;l=undefined;c=true}}}e[t][1]._spread=s;return n}function s(e,t){return n;function n(n){a.call(this,e(n),n);if(t)t.call(this,n)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(e,t,n){const i=this.stack[this.stack.length-1];const r=i.children;r.push(e);this.stack.push(e);this.tokenStack.push([t,n]);e.position={start:vi(t.start),end:undefined}}function l(e){return t;function t(t){if(e)e.call(this,t);c.call(this,t)}}function c(e,t){const n=this.stack.pop();const i=this.tokenStack.pop();if(!i){throw new Error("Cannot close `"+e.type+"` ("+gi({start:e.start,end:e.end})+"): it’s not open")}else if(i[0].type!==e.type){if(t){t.call(this,e,i[0])}else{const t=i[1]||Ai;t.call(this,e,i[0])}}n.position.end=vi(e.end)}function u(){return Te(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=true}function h(e){if(this.data.expectingFirstListItemValue){const t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10);this.data.expectingFirstListItemValue=undefined}}function d(){const e=this.resume();const t=this.stack[this.stack.length-1];t.lang=e}function p(){const e=this.resume();const t=this.stack[this.stack.length-1];t.meta=e}function m(){if(this.data.flowCodeInside)return;this.buffer();this.data.flowCodeInside=true}function g(){const e=this.resume();const t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"");this.data.flowCodeInside=undefined}function b(){const e=this.resume();const t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,"")}function k(e){const t=this.resume();const n=this.stack[this.stack.length-1];n.label=t;n.identifier=Me(this.sliceSerialize(e)).toLowerCase()}function y(){const e=this.resume();const t=this.stack[this.stack.length-1];t.title=e}function w(){const e=this.resume();const t=this.stack[this.stack.length-1];t.url=e}function E(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function T(){this.data.setextHeadingSlurpLineEnding=true}function v(e){const t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function S(){this.data.setextHeadingSlurpLineEnding=undefined}function x(e){const t=this.stack[this.stack.length-1];const n=t.children;let i=n[n.length-1];if(!i||i.type!=="text"){i=se();i.position={start:vi(e.start),end:undefined};n.push(i)}this.stack.push(i)}function A(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e);t.position.end=vi(e.end)}function C(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){const t=n.children[n.children.length-1];t.position.end=vi(e.end);this.data.atHardBreak=undefined;return}if(!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)){x.call(this,e);A.call(this,e)}}function D(){this.data.atHardBreak=true}function _(){const e=this.resume();const t=this.stack[this.stack.length-1];t.value=e}function R(){const e=this.resume();const t=this.stack[this.stack.length-1];t.value=e}function L(){const e=this.resume();const t=this.stack[this.stack.length-1];t.value=e}function I(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference";e.referenceType=t;delete e.url;delete e.title}else{delete e.identifier;delete e.label}this.data.referenceType=undefined}function O(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference";e.referenceType=t;delete e.url;delete e.title}else{delete e.identifier;delete e.label}this.data.referenceType=undefined}function N(e){const t=this.sliceSerialize(e);const n=this.stack[this.stack.length-2];n.label=pi(t);n.identifier=Me(t).toLowerCase()}function P(){const e=this.stack[this.stack.length-1];const t=this.resume();const n=this.stack[this.stack.length-1];this.data.inReference=true;if(n.type==="link"){const t=e.children;n.children=t}else{n.alt=t}}function M(){const e=this.resume();const t=this.stack[this.stack.length-1];t.url=e}function U(){const e=this.resume();const t=this.stack[this.stack.length-1];t.title=e}function q(){this.data.inReference=undefined}function B(){this.data.referenceType="collapsed"}function F(e){const t=this.resume();const n=this.stack[this.stack.length-1];n.label=t;n.identifier=Me(this.sliceSerialize(e)).toLowerCase();this.data.referenceType="full"}function H(e){this.data.characterReferenceType=e.type}function z(e){const t=this.sliceSerialize(e);const n=this.data.characterReferenceType;let i;if(n){i=Pe(t,n==="characterReferenceMarkerNumeric"?10:16);this.data.characterReferenceType=undefined}else{const e=De(t);i=e}const r=this.stack.pop();r.value+=i;r.position.end=vi(e.end)}function j(e){A.call(this,e);const t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function G(e){A.call(this,e);const t=this.stack[this.stack.length-1];t.url="mailto:"+this.sliceSerialize(e)}function V(){return{type:"blockquote",children:[]}}function Y(){return{type:"code",lang:null,meta:null,value:""}}function W(){return{type:"inlineCode",value:""}}function X(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function K(){return{type:"emphasis",children:[]}}function $(){return{type:"heading",depth:0,children:[]}}function Q(){return{type:"break"}}function Z(){return{type:"html",value:""}}function J(){return{type:"image",title:null,url:"",alt:null}}function ee(){return{type:"link",title:null,url:"",children:[]}}function te(e){return{type:"list",ordered:e.type==="listOrdered",start:null,spread:e._spread,children:[]}}function ne(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function ie(){return{type:"paragraph",children:[]}}function re(){return{type:"strong",children:[]}}function se(){return{type:"text",value:""}}function oe(){return{type:"thematicBreak"}}}function vi(e){return{line:e.line,column:e.column,offset:e.offset}}function Si(e,t){let n=-1;while(++n<t.length){const i=t[n];if(Array.isArray(i)){Si(e,i)}else{xi(e,i)}}}function xi(e,t){let n;for(n in t){if(wi.call(t,n)){switch(n){case"canContainEols":{const i=t[n];if(i){e[n].push(...i)}break}case"transforms":{const i=t[n];if(i){e[n].push(...i)}break}case"enter":case"exit":{const i=t[n];if(i){Object.assign(e[n],i)}break}}}}}function Ai(e,t){if(e){throw new Error("Cannot close `"+e.type+"` ("+gi({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+gi({start:t.start,end:t.end})+") is open")}else{throw new Error("Cannot close document, a token (`"+t.type+"`, "+gi({start:t.start,end:t.end})+") is still open")}}function Ci(e){const t=this;t.parser=n;function n(n){return Ei(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Di(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),true)};e.patch(t,n);return e.applyData(t,n)}function _i(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};e.patch(t,n);return[e.applyData(t,n),{type:"text",value:"\n"}]}function Ri(e,t){const n=t.value?t.value+"\n":"";const i={};if(t.lang){i.className=["language-"+t.lang]}let r={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};if(t.meta){r.data={meta:t.meta}}e.patch(t,r);r=e.applyData(t,r);r={type:"element",tagName:"pre",properties:{},children:[r]};e.patch(t,r);return r}function Li(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};e.patch(t,n);return e.applyData(t,n)}function Ii(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};e.patch(t,n);return e.applyData(t,n)}function Oi(e,t){const n=typeof e.options.clobberPrefix==="string"?e.options.clobberPrefix:"user-content-";const i=String(t.identifier).toUpperCase();const r=Qe(i.toLowerCase());const s=e.footnoteOrder.indexOf(i);let o;let a=e.footnoteCounts.get(i);if(a===undefined){a=0;e.footnoteOrder.push(i);o=e.footnoteOrder.length}else{o=s+1}a+=1;e.footnoteCounts.set(i,a);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+r,id:n+"fnref-"+r+(a>1?"-"+a:""),dataFootnoteRef:true,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};e.patch(t,c);return e.applyData(t,c)}function Ni(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};e.patch(t,n);return e.applyData(t,n)}function Pi(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};e.patch(t,n);return e.applyData(t,n)}return undefined}function Mi(e,t){const n=t.referenceType;let i="]";if(n==="collapsed"){i+="[]"}else if(n==="full"){i+="["+(t.label||t.identifier)+"]"}if(t.type==="imageReference"){return[{type:"text",value:"!["+t.alt+i}]}const r=e.all(t);const s=r[0];if(s&&s.type==="text"){s.value="["+s.value}else{r.unshift({type:"text",value:"["})}const o=r[r.length-1];if(o&&o.type==="text"){o.value+=i}else{r.push({type:"text",value:i})}return r}function Ui(e,t){const n=String(t.identifier).toUpperCase();const i=e.definitionById.get(n);if(!i){return Mi(e,t)}const r={src:Qe(i.url||""),alt:t.alt};if(i.title!==null&&i.title!==undefined){r.title=i.title}const s={type:"element",tagName:"img",properties:r,children:[]};e.patch(t,s);return e.applyData(t,s)}function qi(e,t){const n={src:Qe(t.url)};if(t.alt!==null&&t.alt!==undefined){n.alt=t.alt}if(t.title!==null&&t.title!==undefined){n.title=t.title}const i={type:"element",tagName:"img",properties:n,children:[]};e.patch(t,i);return e.applyData(t,i)}function Bi(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const i={type:"element",tagName:"code",properties:{},children:[n]};e.patch(t,i);return e.applyData(t,i)}function Fi(e,t){const n=String(t.identifier).toUpperCase();const i=e.definitionById.get(n);if(!i){return Mi(e,t)}const r={href:Qe(i.url||"")};if(i.title!==null&&i.title!==undefined){r.title=i.title}const s={type:"element",tagName:"a",properties:r,children:e.all(t)};e.patch(t,s);return e.applyData(t,s)}function Hi(e,t){const n={href:Qe(t.url)};if(t.title!==null&&t.title!==undefined){n.title=t.title}const i={type:"element",tagName:"a",properties:n,children:e.all(t)};e.patch(t,i);return e.applyData(t,i)}function zi(e,t,n){const i=e.all(t);const r=n?ji(n):Gi(t);const s={};const o=[];if(typeof t.checked==="boolean"){const e=i[0];let n;if(e&&e.type==="element"&&e.tagName==="p"){n=e}else{n={type:"element",tagName:"p",properties:{},children:[]};i.unshift(n)}if(n.children.length>0){n.children.unshift({type:"text",value:" "})}n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:true},children:[]});s.className=["task-list-item"]}let a=-1;while(++a<i.length){const e=i[a];if(r||a!==0||e.type!=="element"||e.tagName!=="p"){o.push({type:"text",value:"\n"})}if(e.type==="element"&&e.tagName==="p"&&!r){o.push(...e.children)}else{o.push(e)}}const l=i[i.length-1];if(l&&(r||l.type!=="element"||l.tagName!=="p")){o.push({type:"text",value:"\n"})}const c={type:"element",tagName:"li",properties:s,children:o};e.patch(t,c);return e.applyData(t,c)}function ji(e){let t=false;if(e.type==="list"){t=e.spread||false;const n=e.children;let i=-1;while(!t&&++i<n.length){t=Gi(n[i])}}return t}function Gi(e){const t=e.spread;return t===null||t===undefined?e.children.length>1:t}function Vi(e,t){const n={};const i=e.all(t);let r=-1;if(typeof t.start==="number"&&t.start!==1){n.start=t.start}while(++r<i.length){const e=i[r];if(e.type==="element"&&e.tagName==="li"&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(i,true)};e.patch(t,s);return e.applyData(t,s)}function Yi(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};e.patch(t,n);return e.applyData(t,n)}function Wi(e,t){const n={type:"root",children:e.wrap(e.all(t))};e.patch(t,n);return e.applyData(t,n)}function Xi(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};e.patch(t,n);return e.applyData(t,n)}const Ki=Qi("end");const $i=Qi("start");function Qi(e){return t;function t(t){const n=t&&t.position&&t.position[e]||{};if(typeof n.line==="number"&&n.line>0&&typeof n.column==="number"&&n.column>0){return{line:n.line,column:n.column,offset:typeof n.offset==="number"&&n.offset>-1?n.offset:undefined}}}}function Zi(e){const t=$i(e);const n=Ki(e);if(t&&n){return{start:t,end:n}}}function Ji(e,t){const n=e.all(t);const i=n.shift();const r=[];if(i){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([i],true)};e.patch(t.children[0],n);r.push(n)}if(n.length>0){const i={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,true)};const s=$i(t.children[1]);const o=Ki(t.children[t.children.length-1]);if(s&&o)i.position={start:s,end:o};r.push(i)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(r,true)};e.patch(t,s);return e.applyData(t,s)}function er(e,t,n){const i=n?n.children:undefined;const r=i?i.indexOf(t):1;const s=r===0?"th":"td";const o=n&&n.type==="table"?n.align:undefined;const a=o?o.length:t.children.length;let l=-1;const c=[];while(++l<a){const n=t.children[l];const i={};const r=o?o[l]:undefined;if(r){i.align=r}let a={type:"element",tagName:s,properties:i,children:[]};if(n){a.children=e.all(n);e.patch(n,a);a=e.applyData(n,a)}c.push(a)}const u={type:"element",tagName:"tr",properties:{},children:e.wrap(c,true)};e.patch(t,u);return e.applyData(t,u)}function tr(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};e.patch(t,n);return e.applyData(t,n)}const nr=9;const ir=32;function rr(e){const t=String(e);const n=/\r?\n|\r/g;let i=n.exec(t);let r=0;const s=[];while(i){s.push(sr(t.slice(r,i.index),r>0,true),i[0]);r=i.index+i[0].length;i=n.exec(t)}s.push(sr(t.slice(r),r>0,false));return s.join("")}function sr(e,t,n){let i=0;let r=e.length;if(t){let t=e.codePointAt(i);while(t===nr||t===ir){i++;t=e.codePointAt(i)}}if(n){let t=e.codePointAt(r-1);while(t===nr||t===ir){r--;t=e.codePointAt(r-1)}}return r>i?e.slice(i,r):""}function or(e,t){const n={type:"text",value:rr(String(t.value))};e.patch(t,n);return e.applyData(t,n)}function ar(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};e.patch(t,n);return e.applyData(t,n)}const lr={blockquote:Di,break:_i,code:Ri,delete:Li,emphasis:Ii,footnoteReference:Oi,heading:Ni,html:Pi,imageReference:Ui,image:qi,inlineCode:Bi,linkReference:Fi,link:Hi,listItem:zi,list:Vi,paragraph:Yi,root:Wi,strong:Xi,table:Ji,tableCell:tr,tableRow:er,text:or,thematicBreak:ar,toml:cr,yaml:cr,definition:cr,footnoteDefinition:cr};function cr(){return undefined}const ur=-1;const fr=0;const hr=1;const dr=2;const pr=3;const mr=4;const gr=5;const br=6;const kr=7;const yr=8;const wr=typeof self==="object"?self:globalThis;const Er=(e,t)=>{const n=(t,n)=>{e.set(n,t);return t};const i=r=>{if(e.has(r))return e.get(r);const[s,o]=t[r];switch(s){case fr:case ur:return n(o,r);case hr:{const e=n([],r);for(const t of o)e.push(i(t));return e}case dr:{const e=n({},r);for(const[t,n]of o)e[i(t)]=i(n);return e}case pr:return n(new Date(o),r);case mr:{const{source:e,flags:t}=o;return n(new RegExp(e,t),r)}case gr:{const e=n(new Map,r);for(const[t,n]of o)e.set(i(t),i(n));return e}case br:{const e=n(new Set,r);for(const t of o)e.add(i(t));return e}case kr:{const{name:e,message:t}=o;return n(new wr[e](t),r)}case yr:return n(BigInt(o),r);case"BigInt":return n(Object(BigInt(o)),r)}return n(new wr[s](o),r)};return i};const Tr=e=>Er(new Map,e)(0);const vr="";const{toString:Sr}={};const{keys:xr}=Object;const Ar=e=>{const t=typeof e;if(t!=="object"||!e)return[fr,t];const n=Sr.call(e).slice(8,-1);switch(n){case"Array":return[hr,vr];case"Object":return[dr,vr];case"Date":return[pr,vr];case"RegExp":return[mr,vr];case"Map":return[gr,vr];case"Set":return[br,vr]}if(n.includes("Array"))return[hr,n];if(n.includes("Error"))return[kr,n];return[dr,n]};const Cr=([e,t])=>e===fr&&(t==="function"||t==="symbol");const Dr=(e,t,n,i)=>{const r=(e,t)=>{const r=i.push(e)-1;n.set(t,r);return r};const s=i=>{if(n.has(i))return n.get(i);let[o,a]=Ar(i);switch(o){case fr:{let t=i;switch(a){case"bigint":o=yr;t=i.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);t=null;break;case"undefined":return r([ur],i)}return r([o,t],i)}case hr:{if(a)return r([a,[...i]],i);const e=[];const t=r([o,e],i);for(const t of i)e.push(s(t));return t}case dr:{if(a){switch(a){case"BigInt":return r([a,i.toString()],i);case"Boolean":case"Number":case"String":return r([a,i.valueOf()],i)}}if(t&&"toJSON"in i)return s(i.toJSON());const n=[];const l=r([o,n],i);for(const t of xr(i)){if(e||!Cr(Ar(i[t])))n.push([s(t),s(i[t])])}return l}case pr:return r([o,i.toISOString()],i);case mr:{const{source:e,flags:t}=i;return r([o,{source:e,flags:t}],i)}case gr:{const t=[];const n=r([o,t],i);for(const[n,r]of i){if(e||!(Cr(Ar(n))||Cr(Ar(r))))t.push([s(n),s(r)])}return n}case br:{const t=[];const n=r([o,t],i);for(const n of i){if(e||!Cr(Ar(n)))t.push(s(n))}return n}}const{message:l}=i;return r([o,{name:a,message:l}],i)};return s};const _r=(e,{json:t,lossy:n}={})=>{const i=[];return Dr(!(t||n),!!t,new Map,i)(e),i};const Rr=typeof structuredClone==="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Tr(_r(e,t)):structuredClone(e):(e,t)=>Tr(_r(e,t));function Lr(e,t){const n=[{type:"text",value:"↩"}];if(t>1){n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]})}return n}function Ir(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Or(e){const t=typeof e.options.clobberPrefix==="string"?e.options.clobberPrefix:"user-content-";const n=e.options.footnoteBackContent||Lr;const i=e.options.footnoteBackLabel||Ir;const r=e.options.footnoteLabel||"Footnotes";const s=e.options.footnoteLabelTagName||"h2";const o=e.options.footnoteLabelProperties||{className:["sr-only"]};const a=[];let l=-1;while(++l<e.footnoteOrder.length){const r=e.footnoteById.get(e.footnoteOrder[l]);if(!r){continue}const s=e.all(r);const o=String(r.identifier).toUpperCase();const c=Qe(o.toLowerCase());let u=0;const f=[];const h=e.footnoteCounts.get(o);while(h!==undefined&&++u<=h){if(f.length>0){f.push({type:"text",value:" "})}let e=typeof n==="string"?n:n(l,u);if(typeof e==="string"){e={type:"text",value:e}}f.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:typeof i==="string"?i:i(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const d=s[s.length-1];if(d&&d.type==="element"&&d.tagName==="p"){const e=d.children[d.children.length-1];if(e&&e.type==="text"){e.value+=" "}else{d.children.push({type:"text",value:" "})}d.children.push(...f)}else{s.push(...f)}const p={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(s,true)};e.patch(r,p);a.push(p)}if(a.length===0){return}return{type:"element",tagName:"section",properties:{dataFootnotes:true,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...Rr(o),id:"footnote-label"},children:[{type:"text",value:r}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,true)},{type:"text",value:"\n"}]}}const Nr=function(e){if(e===null||e===undefined){return Br}if(typeof e==="function"){return qr(e)}if(typeof e==="object"){return Array.isArray(e)?Pr(e):Mr(e)}if(typeof e==="string"){return Ur(e)}throw new Error("Expected function, string, or object as test")};function Pr(e){const t=[];let n=-1;while(++n<e.length){t[n]=Nr(e[n])}return qr(i);function i(...e){let n=-1;while(++n<t.length){if(t[n].apply(this,e))return true}return false}}function Mr(e){const t=e;return qr(n);function n(n){const i=n;let r;for(r in e){if(i[r]!==t[r])return false}return true}}function Ur(e){return qr(t);function t(t){return t&&t.type===e}}function qr(e){return t;function t(t,n,i){return Boolean(Fr(t)&&e.call(this,t,typeof n==="number"?n:undefined,i||undefined))}}function Br(){return true}function Fr(e){return e!==null&&typeof e==="object"&&"type"in e}function Hr(e){return e}const zr=[];const jr=true;const Gr=false;const Vr="skip";function Yr(e,t,n,i){let r;if(typeof t==="function"&&typeof n!=="function"){i=n;n=t}else{r=t}const s=Nr(r);const o=i?-1:1;a(e,undefined,[])();function a(e,r,l){const c=e&&typeof e==="object"?e:{};if(typeof c.type==="string"){const t=typeof c.tagName==="string"?c.tagName:typeof c.name==="string"?c.name:undefined;Object.defineProperty(u,"name",{value:"node ("+Hr(e.type+(t?"<"+t+">":""))+")"})}return u;function u(){let c=zr;let u;let f;let h;if(!t||s(e,r,l[l.length-1]||undefined)){c=Wr(n(e,l));if(c[0]===Gr){return c}}if("children"in e&&e.children){const t=e;if(t.children&&c[0]!==Vr){f=(i?t.children.length:-1)+o;h=l.concat(t);while(f>-1&&f<t.children.length){const e=t.children[f];u=a(e,f,h)();if(u[0]===Gr){return u}f=typeof u[1]==="number"?u[1]:f+o}}}return c}}}function Wr(e){if(Array.isArray(e)){return e}if(typeof e==="number"){return[jr,e]}return e===null||e===undefined?zr:[e]}function Xr(e,t,n,i){let r;let s;let o;if(typeof t==="function"&&typeof n!=="function"){s=undefined;o=t;r=n}else{s=t;o=n;r=i}Yr(e,s,a,r);function a(e,t){const n=t[t.length-1];const i=n?n.children.indexOf(e):undefined;return o(e,i,n)}}const Kr={}.hasOwnProperty;const $r={};function Qr(e,t){const n=t||$r;const i=new Map;const r=new Map;const s=new Map;const o={...lr,...n.handlers};const a={all:c,applyData:Jr,definitionById:i,footnoteById:r,footnoteCounts:s,footnoteOrder:[],handlers:o,one:l,options:n,patch:Zr,wrap:ts};Xr(e,(function(e){if(e.type==="definition"||e.type==="footnoteDefinition"){const t=e.type==="definition"?i:r;const n=String(e.identifier).toUpperCase();if(!t.has(n)){t.set(n,e)}}}));return a;function l(e,t){const n=e.type;const i=a.handlers[n];if(Kr.call(a.handlers,n)&&i){return i(a,e,t)}if(a.options.passThrough&&a.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e;const i=Rr(n);i.children=a.all(e);return i}return Rr(e)}const r=a.options.unknownHandler||es;return r(a,e,t)}function c(e){const t=[];if("children"in e){const n=e.children;let i=-1;while(++i<n.length){const r=a.one(n[i],e);if(r){if(i&&n[i-1].type==="break"){if(!Array.isArray(r)&&r.type==="text"){r.value=ns(r.value)}if(!Array.isArray(r)&&r.type==="element"){const e=r.children[0];if(e&&e.type==="text"){e.value=ns(e.value)}}}if(Array.isArray(r)){t.push(...r)}else{t.push(r)}}}}return t}}function Zr(e,t){if(e.position)t.position=Zi(e)}function Jr(e,t){let n=t;if(e&&e.data){const t=e.data.hName;const i=e.data.hChildren;const r=e.data.hProperties;if(typeof t==="string"){if(n.type==="element"){n.tagName=t}else{const e="children"in n?n.children:[n];n={type:"element",tagName:t,properties:{},children:e}}}if(n.type==="element"&&r){Object.assign(n.properties,Rr(r))}if("children"in n&&n.children&&i!==null&&i!==undefined){n.children=i}}return n}function es(e,t){const n=t.data||{};const i="value"in t&&!(Kr.call(n,"hProperties")||Kr.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};e.patch(t,i);return e.applyData(t,i)}function ts(e,t){const n=[];let i=-1;if(t){n.push({type:"text",value:"\n"})}while(++i<e.length){if(i)n.push({type:"text",value:"\n"});n.push(e[i])}if(t&&e.length>0){n.push({type:"text",value:"\n"})}return n}function ns(e){let t=0;let n=e.charCodeAt(t);while(n===9||n===32){t++;n=e.charCodeAt(t)}return e.slice(t)}function is(e,t){const n=Qr(e,t);const i=n.one(e,undefined);const r=Or(n);const s=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};if(r){s.children.push({type:"text",value:"\n"},r)}return s}function rs(e,t){if(e&&"run"in e){return async function(n,i){const r=is(n,{file:i,...t});await e.run(r,i)}}return function(n,i){return is(n,{file:i,...e||t})}}function ss(e,t){const n=String(e);if(typeof t!=="string"){throw new TypeError("Expected character")}let i=0;let r=n.indexOf(t);while(r!==-1){i++;r=n.indexOf(t,r+t.length)}return i}function os(e){if(typeof e!=="string"){throw new TypeError("Expected a string")}return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function as(e,t,n){const i=n||{};const r=Nr(i.ignore||[]);const s=ls(t);let o=-1;while(++o<s.length){Yr(e,"text",a)}function a(e,t){let n=-1;let i;while(++n<t.length){const e=t[n];const s=i?i.children:undefined;if(r(e,s?s.indexOf(e):undefined,i)){return}i=e}if(i){return l(e,t)}}function l(e,t){const n=t[t.length-1];const i=s[o][0];const r=s[o][1];let a=0;const l=n.children;const c=l.indexOf(e);let u=false;let f=[];i.lastIndex=0;let h=i.exec(e.value);while(h){const n=h.index;const s={index:h.index,input:h.input,stack:[...t,e]};let o=r(...h,s);if(typeof o==="string"){o=o.length>0?{type:"text",value:o}:undefined}if(o===false){i.lastIndex=n+1}else{if(a!==n){f.push({type:"text",value:e.value.slice(a,n)})}if(Array.isArray(o)){f.push(...o)}else if(o){f.push(o)}a=n+h[0].length;u=true}if(!i.global){break}h=i.exec(e.value)}if(u){if(a<e.value.length){f.push({type:"text",value:e.value.slice(a)})}n.children.splice(c,1,...f)}else{f=[e]}return c+f.length}}function ls(e){const t=[];if(!Array.isArray(e)){throw new TypeError("Expected find and replace tuple or list of tuples")}const n=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;while(++i<n.length){const e=n[i];t.push([cs(e[0]),us(e[1])])}return t}function cs(e){return typeof e==="string"?new RegExp(os(e),"g"):e}function us(e){return typeof e==="function"?e:function(){return e}}const fs="phrasing";const hs=["autolink","link","image","label"];function ds(){return{transforms:[Es],enter:{literalAutolink:ms,literalAutolinkEmail:gs,literalAutolinkHttp:gs,literalAutolinkWww:gs},exit:{literalAutolink:ws,literalAutolinkEmail:ys,literalAutolinkHttp:bs,literalAutolinkWww:ks}}}function ps(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:fs,notInConstruct:hs},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:fs,notInConstruct:hs},{character:":",before:"[ps]",after:"\\/",inConstruct:fs,notInConstruct:hs}]}}function ms(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function gs(e){this.config.enter.autolinkProtocol.call(this,e)}function bs(e){this.config.exit.autolinkProtocol.call(this,e)}function ks(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function ys(e){this.config.exit.autolinkEmail.call(this,e)}function ws(e){this.exit(e)}function Es(e){as(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Ts],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,vs]],{ignore:["link","linkReference"]})}function Ts(e,t,n,i,r){let s="";if(!As(r)){return false}if(/^w/i.test(t)){n=t+n;t="";s="http://"}if(!Ss(n)){return false}const o=xs(n+i);if(!o[0])return false;const a={type:"link",title:null,url:s+t+o[0],children:[{type:"text",value:t+o[0]}]};if(o[1]){return[a,{type:"text",value:o[1]}]}return a}function vs(e,t,n,i){if(!As(i,true)||/[-\d_]$/.test(n)){return false}return{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Ss(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2]))){return false}return true}function xs(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t){return[e,undefined]}e=e.slice(0,t.index);let n=t[0];let i=n.indexOf(")");const r=ss(e,"(");let s=ss(e,")");while(i!==-1&&r>s){e+=n.slice(0,i+1);n=n.slice(i+1);i=n.indexOf(")");s++}return[e,n]}function As(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Ke(n)||Xe(n))&&(!t||n!==47)}Us.peek=qs;function Cs(){return{enter:{gfmFootnoteDefinition:_s,gfmFootnoteDefinitionLabelString:Rs,gfmFootnoteCall:Os,gfmFootnoteCallString:Ns},exit:{gfmFootnoteDefinition:Is,gfmFootnoteDefinitionLabelString:Ls,gfmFootnoteCall:Ms,gfmFootnoteCallString:Ps}}}function Ds(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:Bs,footnoteReference:Us}}}function _s(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Rs(){this.buffer()}function Ls(e){const t=this.resume();const n=this.stack[this.stack.length-1];n.label=t;n.identifier=Me(this.sliceSerialize(e)).toLowerCase()}function Is(e){this.exit(e)}function Os(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Ns(){this.buffer()}function Ps(e){const t=this.resume();const n=this.stack[this.stack.length-1];n.label=t;n.identifier=Me(this.sliceSerialize(e)).toLowerCase()}function Ms(e){this.exit(e)}function Us(e,t,n,i){const r=n.createTracker(i);let s=r.move("[^");const o=n.enter("footnoteReference");const a=n.enter("reference");s+=r.move(n.safe(n.associationId(e),{...r.current(),before:s,after:"]"}));a();o();s+=r.move("]");return s}function qs(){return"["}function Bs(e,t,n,i){const r=n.createTracker(i);let s=r.move("[^");const o=n.enter("footnoteDefinition");const a=n.enter("label");s+=r.move(n.safe(n.associationId(e),{...r.current(),before:s,after:"]"}));a();s+=r.move("]:"+(e.children&&e.children.length>0?" ":""));r.shift(4);s+=r.move(n.indentLines(n.containerFlow(e,r.current()),Fs));o();return s}function Fs(e,t,n){if(t===0){return e}return(n?"":" ")+e}const Hs=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Ys.peek=Ws;function zs(){return{canContainEols:["delete"],enter:{strikethrough:Gs},exit:{strikethrough:Vs}}}function js(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Hs}],handlers:{delete:Ys}}}function Gs(e){this.enter({type:"delete",children:[]},e)}function Vs(e){this.exit(e)}function Ys(e,t,n,i){const r=n.createTracker(i);const s=n.enter("strikethrough");let o=r.move("~~");o+=n.containerPhrasing(e,{...r.current(),before:o,after:"~"});o+=r.move("~~");s();return o}function Ws(){return"~"}function Xs(e,t={}){const n=(t.align||[]).concat();const i=t.stringLength||$s;const r=[];const s=[];const o=[];const a=[];let l=0;let c=-1;while(++c<e.length){const n=[];const r=[];let u=-1;if(e[c].length>l){l=e[c].length}while(++u<e[c].length){const s=Ks(e[c][u]);if(t.alignDelimiters!==false){const e=i(s);r[u]=e;if(a[u]===undefined||e>a[u]){a[u]=e}}n.push(s)}s[c]=n;o[c]=r}let u=-1;if(typeof n==="object"&&"length"in n){while(++u<l){r[u]=Qs(n[u])}}else{const e=Qs(n);while(++u<l){r[u]=e}}u=-1;const f=[];const h=[];while(++u<l){const e=r[u];let n="";let i="";if(e===99){n=":";i=":"}else if(e===108){n=":"}else if(e===114){i=":"}let s=t.alignDelimiters===false?1:Math.max(1,a[u]-n.length-i.length);const o=n+"-".repeat(s)+i;if(t.alignDelimiters!==false){s=n.length+s+i.length;if(s>a[u]){a[u]=s}h[u]=s}f[u]=o}s.splice(1,0,f);o.splice(1,0,h);c=-1;const d=[];while(++c<s.length){const e=s[c];const n=o[c];u=-1;const i=[];while(++u<l){const s=e[u]||"";let o="";let c="";if(t.alignDelimiters!==false){const e=a[u]-(n[u]||0);const t=r[u];if(t===114){o=" ".repeat(e)}else if(t===99){if(e%2){o=" ".repeat(e/2+.5);c=" ".repeat(e/2-.5)}else{o=" ".repeat(e/2);c=o}}else{c=" ".repeat(e)}}if(t.delimiterStart!==false&&!u){i.push("|")}if(t.padding!==false&&!(t.alignDelimiters===false&&s==="")&&(t.delimiterStart!==false||u)){i.push(" ")}if(t.alignDelimiters!==false){i.push(o)}i.push(s);if(t.alignDelimiters!==false){i.push(c)}if(t.padding!==false){i.push(" ")}if(t.delimiterEnd!==false||u!==l-1){i.push("|")}}d.push(t.delimiterEnd===false?i.join("").replace(/ +$/,""):i.join(""))}return d.join("\n")}function Ks(e){return e===null||e===undefined?"":String(e)}function $s(e){return e.length}function Qs(e){const t=typeof e==="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function Zs(e,t,n,i){const r=n.enter("blockquote");const s=n.createTracker(i);s.move("> ");s.shift(2);const o=n.indentLines(n.containerFlow(e,s.current()),Js);r();return o}function Js(e,t,n){return">"+(n?"":" ")+e}function eo(e,t){return to(e,t.inConstruct,true)&&!to(e,t.notInConstruct,false)}function to(e,t,n){if(typeof t==="string"){t=[t]}if(!t||t.length===0){return n}let i=-1;while(++i<t.length){if(e.includes(t[i])){return true}}return false}function no(e,t,n,i){let r=-1;while(++r<n.unsafe.length){if(n.unsafe[r].character==="\n"&&eo(n.stack,n.unsafe[r])){return/[ \t]/.test(i.before)?"":" "}}return"\\\n"}function io(e,t){const n=String(e);let i=n.indexOf(t);let r=i;let s=0;let o=0;if(typeof t!=="string"){throw new TypeError("Expected substring")}while(i!==-1){if(i===r){if(++s>o){o=s}}else{s=1}r=i+t.length;i=n.indexOf(t,r)}return o}function ro(e,t){return Boolean(t.options.fences===false&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function so(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~"){throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`")}return t}function oo(e,t,n,i){const r=so(n);const s=e.value||"";const o=r==="`"?"GraveAccent":"Tilde";if(ro(e,n)){const e=n.enter("codeIndented");const t=n.indentLines(s,ao);e();return t}const a=n.createTracker(i);const l=r.repeat(Math.max(io(s,r)+1,3));const c=n.enter("codeFenced");let u=a.move(l);if(e.lang){const t=n.enter(`codeFencedLang${o}`);u+=a.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...a.current()}));t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${o}`);u+=a.move(" ");u+=a.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...a.current()}));t()}u+=a.move("\n");if(s){u+=a.move(s+"\n")}u+=a.move(l);c();return u}function ao(e,t,n){return(n?"":" ")+e}function lo(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'"){throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`")}return t}function co(e,t,n,i){const r=lo(n);const s=r==='"'?"Quote":"Apostrophe";const o=n.enter("definition");let a=n.enter("label");const l=n.createTracker(i);let c=l.move("[");c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()}));c+=l.move("]: ");a();if(!e.url||/[\0- \u007F]/.test(e.url)){a=n.enter("destinationLiteral");c+=l.move("<");c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()}));c+=l.move(">")}else{a=n.enter("destinationRaw");c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))}a();if(e.title){a=n.enter(`title${s}`);c+=l.move(" "+r);c+=l.move(n.safe(e.title,{before:c,after:r,...l.current()}));c+=l.move(r);a()}o();return c}function uo(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_"){throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`")}return t}fo.peek=ho;function fo(e,t,n,i){const r=uo(n);const s=n.enter("emphasis");const o=n.createTracker(i);let a=o.move(r);a+=o.move(n.containerPhrasing(e,{before:a,after:r,...o.current()}));a+=o.move(r);s();return a}function ho(e,t,n){return n.options.emphasis||"*"}const po={};function mo(e,t){const n=t||po;const i=typeof n.includeImageAlt==="boolean"?n.includeImageAlt:true;const r=typeof n.includeHtml==="boolean"?n.includeHtml:true;return go(e,i,r)}function go(e,t,n){if(ko(e)){if("value"in e){return e.type==="html"&&!n?"":e.value}if(t&&"alt"in e&&e.alt){return e.alt}if("children"in e){return bo(e.children,t,n)}}if(Array.isArray(e)){return bo(e,t,n)}return""}function bo(e,t,n){const i=[];let r=-1;while(++r<e.length){i[r]=go(e[r],t,n)}return i.join("")}function ko(e){return Boolean(e&&typeof e==="object")}function yo(e,t){let n=false;Xr(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||e.type==="break"){n=true;return Gr}}));return Boolean((!e.depth||e.depth<3)&&mo(e)&&(t.options.setext||n))}function wo(e,t,n,i){const r=Math.max(Math.min(6,e.depth||1),1);const s=n.createTracker(i);if(yo(e,n)){const t=n.enter("headingSetext");const i=n.enter("phrasing");const o=n.containerPhrasing(e,{...s.current(),before:"\n",after:"\n"});i();t();return o+"\n"+(r===1?"=":"-").repeat(o.length-(Math.max(o.lastIndexOf("\r"),o.lastIndexOf("\n"))+1))}const o="#".repeat(r);const a=n.enter("headingAtx");const l=n.enter("phrasing");s.move(o+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...s.current()});if(/^[\t ]/.test(c)){c="&#x"+c.charCodeAt(0).toString(16).toUpperCase()+";"+c.slice(1)}c=c?o+" "+c:o;if(n.options.closeAtx){c+=" "+o}l();a();return c}Eo.peek=To;function Eo(e){return e.value||""}function To(){return"<"}vo.peek=So;function vo(e,t,n,i){const r=lo(n);const s=r==='"'?"Quote":"Apostrophe";const o=n.enter("image");let a=n.enter("label");const l=n.createTracker(i);let c=l.move("![");c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()}));c+=l.move("](");a();if(!e.url&&e.title||/[\0- \u007F]/.test(e.url)){a=n.enter("destinationLiteral");c+=l.move("<");c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()}));c+=l.move(">")}else{a=n.enter("destinationRaw");c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))}a();if(e.title){a=n.enter(`title${s}`);c+=l.move(" "+r);c+=l.move(n.safe(e.title,{before:c,after:r,...l.current()}));c+=l.move(r);a()}c+=l.move(")");o();return c}function So(){return"!"}xo.peek=Ao;function xo(e,t,n,i){const r=e.referenceType;const s=n.enter("imageReference");let o=n.enter("label");const a=n.createTracker(i);let l=a.move("![");const c=n.safe(e.alt,{before:l,after:"]",...a.current()});l+=a.move(c+"][");o();const u=n.stack;n.stack=[];o=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});o();n.stack=u;s();if(r==="full"||!c||c!==f){l+=a.move(f+"]")}else if(r==="shortcut"){l=l.slice(0,-1)}else{l+=a.move("]")}return l}function Ao(){return"!"}Co.peek=Do;function Co(e,t,n){let i=e.value||"";let r="`";let s=-1;while(new RegExp("(^|[^`])"+r+"([^`]|$)").test(i)){r+="`"}if(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))){i=" "+i+" "}while(++s<n.unsafe.length){const e=n.unsafe[s];const t=n.compilePattern(e);let r;if(!e.atBreak)continue;while(r=t.exec(i)){let e=r.index;if(i.charCodeAt(e)===10&&i.charCodeAt(e-1)===13){e--}i=i.slice(0,e)+" "+i.slice(r.index+1)}}return r+i+r}function Do(){return"`"}function _o(e,t){const n=mo(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Ro.peek=Lo;function Ro(e,t,n,i){const r=lo(n);const s=r==='"'?"Quote":"Apostrophe";const o=n.createTracker(i);let a;let l;if(_o(e,n)){const t=n.stack;n.stack=[];a=n.enter("autolink");let i=o.move("<");i+=o.move(n.containerPhrasing(e,{before:i,after:">",...o.current()}));i+=o.move(">");a();n.stack=t;return i}a=n.enter("link");l=n.enter("label");let c=o.move("[");c+=o.move(n.containerPhrasing(e,{before:c,after:"](",...o.current()}));c+=o.move("](");l();if(!e.url&&e.title||/[\0- \u007F]/.test(e.url)){l=n.enter("destinationLiteral");c+=o.move("<");c+=o.move(n.safe(e.url,{before:c,after:">",...o.current()}));c+=o.move(">")}else{l=n.enter("destinationRaw");c+=o.move(n.safe(e.url,{before:c,after:e.title?" ":")",...o.current()}))}l();if(e.title){l=n.enter(`title${s}`);c+=o.move(" "+r);c+=o.move(n.safe(e.title,{before:c,after:r,...o.current()}));c+=o.move(r);l()}c+=o.move(")");a();return c}function Lo(e,t,n){return _o(e,n)?"<":"["}Io.peek=Oo;function Io(e,t,n,i){const r=e.referenceType;const s=n.enter("linkReference");let o=n.enter("label");const a=n.createTracker(i);let l=a.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...a.current()});l+=a.move(c+"][");o();const u=n.stack;n.stack=[];o=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});o();n.stack=u;s();if(r==="full"||!c||c!==f){l+=a.move(f+"]")}else if(r==="shortcut"){l=l.slice(0,-1)}else{l+=a.move("]")}return l}function Oo(){return"["}function No(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-"){throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`")}return t}function Po(e){const t=No(e);const n=e.options.bulletOther;if(!n){return t==="*"?"-":"*"}if(n!=="*"&&n!=="+"&&n!=="-"){throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`")}if(n===t){throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different")}return n}function Mo(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")"){throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`")}return t}function Uo(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_"){throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`")}return t}function qo(e,t,n,i){const r=n.enter("list");const s=n.bulletCurrent;let o=e.ordered?Mo(n):No(n);const a=e.ordered?o==="."?")":".":Po(n);let l=t&&n.bulletLastUsed?o===n.bulletLastUsed:false;if(!e.ordered){const t=e.children?e.children[0]:undefined;if((o==="*"||o==="-")&&t&&(!t.children||!t.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0){l=true}if(Uo(n)===o&&t){let t=-1;while(++t<e.children.length){const n=e.children[t];if(n&&n.type==="listItem"&&n.children&&n.children[0]&&n.children[0].type==="thematicBreak"){l=true;break}}}}if(l){o=a}n.bulletCurrent=o;const c=n.containerFlow(e,i);n.bulletLastUsed=o;n.bulletCurrent=s;r();return c}function Bo(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed"){throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`")}return t}function Fo(e,t,n,i){const r=Bo(n);let s=n.bulletCurrent||No(n);if(t&&t.type==="list"&&t.ordered){s=(typeof t.start==="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===false?0:t.children.indexOf(e))+s}let o=s.length+1;if(r==="tab"||r==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread)){o=Math.ceil(o/4)*4}const a=n.createTracker(i);a.move(s+" ".repeat(o-s.length));a.shift(o);const l=n.enter("listItem");const c=n.indentLines(n.containerFlow(e,a.current()),u);l();return c;function u(e,t,n){if(t){return(n?"":" ".repeat(o))+e}return(n?s:s+" ".repeat(o-s.length))+e}}function Ho(e,t,n,i){const r=n.enter("paragraph");const s=n.enter("phrasing");const o=n.containerPhrasing(e,i);s();r();return o}const zo=Nr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);function jo(e,t,n,i){const r=e.children.some((function(e){return zo(e)}));const s=r?n.containerPhrasing:n.containerFlow;return s.call(n,e,i)}function Go(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_"){throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`")}return t}Vo.peek=Yo;function Vo(e,t,n,i){const r=Go(n);const s=n.enter("strong");const o=n.createTracker(i);let a=o.move(r+r);a+=o.move(n.containerPhrasing(e,{before:a,after:r,...o.current()}));a+=o.move(r+r);s();return a}function Yo(e,t,n){return n.options.strong||"*"}function Wo(e,t,n,i){return n.safe(e.value,i)}function Xo(e){const t=e.options.ruleRepetition||3;if(t<3){throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more")}return t}function Ko(e,t,n){const i=(Uo(n)+(n.options.ruleSpaces?" ":"")).repeat(Xo(n));return n.options.ruleSpaces?i.slice(0,-1):i}const $o={blockquote:Zs,break:no,code:oo,definition:co,emphasis:fo,hardBreak:no,heading:wo,html:Eo,image:vo,imageReference:xo,inlineCode:Co,link:Ro,linkReference:Io,list:qo,listItem:Fo,paragraph:Ho,root:jo,strong:Vo,text:Wo,thematicBreak:Ko};function Qo(){return{enter:{table:Zo,tableData:na,tableHeader:na,tableRow:ea},exit:{codeText:ia,table:Jo,tableData:ta,tableHeader:ta,tableRow:ta}}}function Zo(e){const t=e._align;this.enter({type:"table",align:t.map((function(e){return e==="none"?null:e})),children:[]},e);this.data.inTable=true}function Jo(e){this.exit(e);this.data.inTable=undefined}function ea(e){this.enter({type:"tableRow",children:[]},e)}function ta(e){this.exit(e)}function na(e){this.enter({type:"tableCell",children:[]},e)}function ia(e){let t=this.resume();if(this.data.inTable){t=t.replace(/\\([\\|])/g,ra)}const n=this.stack[this.stack.length-1];n.value=t;this.exit(e)}function ra(e,t){return t==="|"?t:e}function sa(e){const t=e||{};const n=t.tableCellPadding;const i=t.tablePipeAlign;const r=t.stringLength;const s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:true,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:true,character:":",after:"-"},{atBreak:true,character:"-",after:"[:|-]"}],handlers:{inlineCode:h,table:o,tableCell:l,tableRow:a}};function o(e,t,n,i){return c(u(e,n,i),e.align)}function a(e,t,n,i){const r=f(e,n,i);const s=c([r]);return s.slice(0,s.indexOf("\n"))}function l(e,t,n,i){const r=n.enter("tableCell");const o=n.enter("phrasing");const a=n.containerPhrasing(e,{...i,before:s,after:s});o();r();return a}function c(e,t){return Xs(e,{align:t,alignDelimiters:i,padding:n,stringLength:r})}function u(e,t,n){const i=e.children;let r=-1;const s=[];const o=t.enter("table");while(++r<i.length){s[r]=f(i[r],t,n)}o();return s}function f(e,t,n){const i=e.children;let r=-1;const s=[];const o=t.enter("tableRow");while(++r<i.length){s[r]=l(i[r],e,t,n)}o();return s}function h(e,t,n){let i=$o.inlineCode(e,t,n);if(n.stack.includes("tableCell")){i=i.replace(/\|/g,"\\$&")}return i}}function oa(e,t,n,i){const r=n.enter("blockquote");const s=n.createTracker(i);s.move("> ");s.shift(2);const o=n.indentLines(n.containerFlow(e,s.current()),aa);r();return o}function aa(e,t,n){return">"+(n?"":" ")+e}function la(e,t){return ca(e,t.inConstruct,true)&&!ca(e,t.notInConstruct,false)}function ca(e,t,n){if(typeof t==="string"){t=[t]}if(!t||t.length===0){return n}let i=-1;while(++i<t.length){if(e.includes(t[i])){return true}}return false}function ua(e,t,n,i){let r=-1;while(++r<n.unsafe.length){if(n.unsafe[r].character==="\n"&&la(n.stack,n.unsafe[r])){return/[ \t]/.test(i.before)?"":" "}}return"\\\n"}function fa(e,t){return Boolean(t.options.fences===false&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function ha(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~"){throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`")}return t}function da(e,t,n,i){const r=ha(n);const s=e.value||"";const o=r==="`"?"GraveAccent":"Tilde";if(fa(e,n)){const e=n.enter("codeIndented");const t=n.indentLines(s,pa);e();return t}const a=n.createTracker(i);const l=r.repeat(Math.max(io(s,r)+1,3));const c=n.enter("codeFenced");let u=a.move(l);if(e.lang){const t=n.enter(`codeFencedLang${o}`);u+=a.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...a.current()}));t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${o}`);u+=a.move(" ");u+=a.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...a.current()}));t()}u+=a.move("\n");if(s){u+=a.move(s+"\n")}u+=a.move(l);c();return u}function pa(e,t,n){return(n?"":" ")+e}function ma(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'"){throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`")}return t}function ga(e,t,n,i){const r=ma(n);const s=r==='"'?"Quote":"Apostrophe";const o=n.enter("definition");let a=n.enter("label");const l=n.createTracker(i);let c=l.move("[");c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()}));c+=l.move("]: ");a();if(!e.url||/[\0- \u007F]/.test(e.url)){a=n.enter("destinationLiteral");c+=l.move("<");c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()}));c+=l.move(">")}else{a=n.enter("destinationRaw");c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))}a();if(e.title){a=n.enter(`title${s}`);c+=l.move(" "+r);c+=l.move(n.safe(e.title,{before:c,after:r,...l.current()}));c+=l.move(r);a()}o();return c}function ba(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_"){throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`")}return t}ka.peek=ya;function ka(e,t,n,i){const r=ba(n);const s=n.enter("emphasis");const o=n.createTracker(i);let a=o.move(r);a+=o.move(n.containerPhrasing(e,{before:a,after:r,...o.current()}));a+=o.move(r);s();return a}function ya(e,t,n){return n.options.emphasis||"*"}const wa={};function Ea(e,t){const n=t||wa;const i=typeof n.includeImageAlt==="boolean"?n.includeImageAlt:true;const r=typeof n.includeHtml==="boolean"?n.includeHtml:true;return Ta(e,i,r)}function Ta(e,t,n){if(Sa(e)){if("value"in e){return e.type==="html"&&!n?"":e.value}if(t&&"alt"in e&&e.alt){return e.alt}if("children"in e){return va(e.children,t,n)}}if(Array.isArray(e)){return va(e,t,n)}return""}function va(e,t,n){const i=[];let r=-1;while(++r<e.length){i[r]=Ta(e[r],t,n)}return i.join("")}function Sa(e){return Boolean(e&&typeof e==="object")}function xa(e,t){let n=false;Xr(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||e.type==="break"){n=true;return Gr}}));return Boolean((!e.depth||e.depth<3)&&Ea(e)&&(t.options.setext||n))}function Aa(e,t,n,i){const r=Math.max(Math.min(6,e.depth||1),1);const s=n.createTracker(i);if(xa(e,n)){const t=n.enter("headingSetext");const i=n.enter("phrasing");const o=n.containerPhrasing(e,{...s.current(),before:"\n",after:"\n"});i();t();return o+"\n"+(r===1?"=":"-").repeat(o.length-(Math.max(o.lastIndexOf("\r"),o.lastIndexOf("\n"))+1))}const o="#".repeat(r);const a=n.enter("headingAtx");const l=n.enter("phrasing");s.move(o+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...s.current()});if(/^[\t ]/.test(c)){c="&#x"+c.charCodeAt(0).toString(16).toUpperCase()+";"+c.slice(1)}c=c?o+" "+c:o;if(n.options.closeAtx){c+=" "+o}l();a();return c}Ca.peek=Da;function Ca(e){return e.value||""}function Da(){return"<"}_a.peek=Ra;function _a(e,t,n,i){const r=ma(n);const s=r==='"'?"Quote":"Apostrophe";const o=n.enter("image");let a=n.enter("label");const l=n.createTracker(i);let c=l.move("![");c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()}));c+=l.move("](");a();if(!e.url&&e.title||/[\0- \u007F]/.test(e.url)){a=n.enter("destinationLiteral");c+=l.move("<");c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()}));c+=l.move(">")}else{a=n.enter("destinationRaw");c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))}a();if(e.title){a=n.enter(`title${s}`);c+=l.move(" "+r);c+=l.move(n.safe(e.title,{before:c,after:r,...l.current()}));c+=l.move(r);a()}c+=l.move(")");o();return c}function Ra(){return"!"}La.peek=Ia;function La(e,t,n,i){const r=e.referenceType;const s=n.enter("imageReference");let o=n.enter("label");const a=n.createTracker(i);let l=a.move("![");const c=n.safe(e.alt,{before:l,after:"]",...a.current()});l+=a.move(c+"][");o();const u=n.stack;n.stack=[];o=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});o();n.stack=u;s();if(r==="full"||!c||c!==f){l+=a.move(f+"]")}else if(r==="shortcut"){l=l.slice(0,-1)}else{l+=a.move("]")}return l}function Ia(){return"!"}Oa.peek=Na;function Oa(e,t,n){let i=e.value||"";let r="`";let s=-1;while(new RegExp("(^|[^`])"+r+"([^`]|$)").test(i)){r+="`"}if(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))){i=" "+i+" "}while(++s<n.unsafe.length){const e=n.unsafe[s];const t=n.compilePattern(e);let r;if(!e.atBreak)continue;while(r=t.exec(i)){let e=r.index;if(i.charCodeAt(e)===10&&i.charCodeAt(e-1)===13){e--}i=i.slice(0,e)+" "+i.slice(r.index+1)}}return r+i+r}function Na(){return"`"}function Pa(e,t){const n=Ea(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Ma.peek=Ua;function Ma(e,t,n,i){const r=ma(n);const s=r==='"'?"Quote":"Apostrophe";const o=n.createTracker(i);let a;let l;if(Pa(e,n)){const t=n.stack;n.stack=[];a=n.enter("autolink");let i=o.move("<");i+=o.move(n.containerPhrasing(e,{before:i,after:">",...o.current()}));i+=o.move(">");a();n.stack=t;return i}a=n.enter("link");l=n.enter("label");let c=o.move("[");c+=o.move(n.containerPhrasing(e,{before:c,after:"](",...o.current()}));c+=o.move("](");l();if(!e.url&&e.title||/[\0- \u007F]/.test(e.url)){l=n.enter("destinationLiteral");c+=o.move("<");c+=o.move(n.safe(e.url,{before:c,after:">",...o.current()}));c+=o.move(">")}else{l=n.enter("destinationRaw");c+=o.move(n.safe(e.url,{before:c,after:e.title?" ":")",...o.current()}))}l();if(e.title){l=n.enter(`title${s}`);c+=o.move(" "+r);c+=o.move(n.safe(e.title,{before:c,after:r,...o.current()}));c+=o.move(r);l()}c+=o.move(")");a();return c}function Ua(e,t,n){return Pa(e,n)?"<":"["}qa.peek=Ba;function qa(e,t,n,i){const r=e.referenceType;const s=n.enter("linkReference");let o=n.enter("label");const a=n.createTracker(i);let l=a.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...a.current()});l+=a.move(c+"][");o();const u=n.stack;n.stack=[];o=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});o();n.stack=u;s();if(r==="full"||!c||c!==f){l+=a.move(f+"]")}else if(r==="shortcut"){l=l.slice(0,-1)}else{l+=a.move("]")}return l}function Ba(){return"["}function Fa(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-"){throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`")}return t}function Ha(e){const t=Fa(e);const n=e.options.bulletOther;if(!n){return t==="*"?"-":"*"}if(n!=="*"&&n!=="+"&&n!=="-"){throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`")}if(n===t){throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different")}return n}function za(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")"){throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`")}return t}function ja(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_"){throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`")}return t}function Ga(e,t,n,i){const r=n.enter("list");const s=n.bulletCurrent;let o=e.ordered?za(n):Fa(n);const a=e.ordered?o==="."?")":".":Ha(n);let l=t&&n.bulletLastUsed?o===n.bulletLastUsed:false;if(!e.ordered){const t=e.children?e.children[0]:undefined;if((o==="*"||o==="-")&&t&&(!t.children||!t.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0){l=true}if(ja(n)===o&&t){let t=-1;while(++t<e.children.length){const n=e.children[t];if(n&&n.type==="listItem"&&n.children&&n.children[0]&&n.children[0].type==="thematicBreak"){l=true;break}}}}if(l){o=a}n.bulletCurrent=o;const c=n.containerFlow(e,i);n.bulletLastUsed=o;n.bulletCurrent=s;r();return c}function Va(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed"){throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`")}return t}function Ya(e,t,n,i){const r=Va(n);let s=n.bulletCurrent||Fa(n);if(t&&t.type==="list"&&t.ordered){s=(typeof t.start==="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===false?0:t.children.indexOf(e))+s}let o=s.length+1;if(r==="tab"||r==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread)){o=Math.ceil(o/4)*4}const a=n.createTracker(i);a.move(s+" ".repeat(o-s.length));a.shift(o);const l=n.enter("listItem");const c=n.indentLines(n.containerFlow(e,a.current()),u);l();return c;function u(e,t,n){if(t){return(n?"":" ".repeat(o))+e}return(n?s:s+" ".repeat(o-s.length))+e}}function Wa(e,t,n,i){const r=n.enter("paragraph");const s=n.enter("phrasing");const o=n.containerPhrasing(e,i);s();r();return o}function Xa(e,t,n,i){const r=e.children.some((function(e){return zo(e)}));const s=r?n.containerPhrasing:n.containerFlow;return s.call(n,e,i)}function Ka(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_"){throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`")}return t}$a.peek=Qa;function $a(e,t,n,i){const r=Ka(n);const s=n.enter("strong");const o=n.createTracker(i);let a=o.move(r+r);a+=o.move(n.containerPhrasing(e,{before:a,after:r,...o.current()}));a+=o.move(r+r);s();return a}function Qa(e,t,n){return n.options.strong||"*"}function Za(e,t,n,i){return n.safe(e.value,i)}function Ja(e){const t=e.options.ruleRepetition||3;if(t<3){throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more")}return t}function el(e,t,n){const i=(ja(n)+(n.options.ruleSpaces?" ":"")).repeat(Ja(n));return n.options.ruleSpaces?i.slice(0,-1):i}const tl={blockquote:oa,break:ua,code:da,definition:ga,emphasis:ka,hardBreak:ua,heading:Aa,html:Ca,image:_a,imageReference:La,inlineCode:Oa,link:Ma,linkReference:qa,list:Ga,listItem:Ya,paragraph:Wa,root:Xa,strong:$a,text:Za,thematicBreak:el};function nl(){return{exit:{taskListCheckValueChecked:rl,taskListCheckValueUnchecked:rl,paragraph:sl}}}function il(){return{unsafe:[{atBreak:true,character:"-",after:"[:|-]"}],handlers:{listItem:ol}}}function rl(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function sl(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked==="boolean"){const e=this.stack[this.stack.length-1];const n=e.children[0];if(n&&n.type==="text"){const i=t.children;let r=-1;let s;while(++r<i.length){const e=i[r];if(e.type==="paragraph"){s=e;break}}if(s===e){n.value=n.value.slice(1);if(n.value.length===0){e.children.shift()}else if(e.position&&n.position&&typeof n.position.start.offset==="number"){n.position.start.column++;n.position.start.offset++;e.position.start=Object.assign({},n.position.start)}}}}this.exit(e)}function ol(e,t,n,i){const r=e.children[0];const s=typeof e.checked==="boolean"&&r&&r.type==="paragraph";const o="["+(e.checked?"x":" ")+"] ";const a=n.createTracker(i);if(s){a.move(o)}let l=tl.listItem(e,t,n,{...i,...a.current()});if(s){l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)}return l;function c(e){return e+o}}function al(){return[ds(),Cs(),zs(),Qo(),nl()]}function ll(e){return{extensions:[ps(),Ds(),js(),sa(e),il()]}}const cl={tokenize:vl,partial:true};const ul={tokenize:Sl,partial:true};const fl={tokenize:xl,partial:true};const hl={tokenize:Al,partial:true};const dl={tokenize:Cl,partial:true};const pl={tokenize:El,previous:Dl};const ml={tokenize:Tl,previous:_l};const gl={tokenize:wl,previous:Rl};const bl={};function kl(){return{text:bl}}let yl=48;while(yl<123){bl[yl]=gl;yl++;if(yl===58)yl=65;else if(yl===91)yl=97}bl[43]=gl;bl[45]=gl;bl[46]=gl;bl[95]=gl;bl[72]=[gl,ml];bl[104]=[gl,ml];bl[87]=[gl,pl];bl[119]=[gl,pl];function wl(e,t,n){const i=this;let r;let s;return o;function o(t){if(!Ll(t)||!Rl.call(i,i.previous)||Il(i.events)){return n(t)}e.enter("literalAutolink");e.enter("literalAutolinkEmail");return a(t)}function a(t){if(Ll(t)){e.consume(t);return a}if(t===64){e.consume(t);return l}return n(t)}function l(t){if(t===46){return e.check(dl,u,c)(t)}if(t===45||t===95||Be(t)){s=true;e.consume(t);return l}return u(t)}function c(t){e.consume(t);r=true;return l}function u(o){if(s&&r&&qe(i.previous)){e.exit("literalAutolinkEmail");e.exit("literalAutolink");return t(o)}return n(o)}}function El(e,t,n){const i=this;return r;function r(t){if(t!==87&&t!==119||!Dl.call(i,i.previous)||Il(i.events)){return n(t)}e.enter("literalAutolink");e.enter("literalAutolinkWww");return e.check(cl,e.attempt(ul,e.attempt(fl,s),n),n)(t)}function s(n){e.exit("literalAutolinkWww");e.exit("literalAutolink");return t(n)}}function Tl(e,t,n){const i=this;let r="";let s=false;return o;function o(t){if((t===72||t===104)&&_l.call(i,i.previous)&&!Il(i.events)){e.enter("literalAutolink");e.enter("literalAutolinkHttp");r+=String.fromCodePoint(t);e.consume(t);return a}return n(t)}function a(t){if(qe(t)&&r.length<5){r+=String.fromCodePoint(t);e.consume(t);return a}if(t===58){const n=r.toLowerCase();if(n==="http"||n==="https"){e.consume(t);return l}}return n(t)}function l(t){if(t===47){e.consume(t);if(s){return c}s=true;return l}return n(t)}function c(t){return t===null||He(t)||Ye(t)||Ke(t)||Xe(t)?n(t):e.attempt(ul,e.attempt(fl,u),n)(t)}function u(n){e.exit("literalAutolinkHttp");e.exit("literalAutolink");return t(n)}}function vl(e,t,n){let i=0;return r;function r(t){if((t===87||t===119)&&i<3){i++;e.consume(t);return r}if(t===46&&i===3){e.consume(t);return s}return n(t)}function s(e){return e===null?n(e):t(e)}}function Sl(e,t,n){let i;let r;let s;return o;function o(t){if(t===46||t===95){return e.check(hl,l,a)(t)}if(t===null||Ye(t)||Ke(t)||t!==45&&Xe(t)){return l(t)}s=true;e.consume(t);return o}function a(t){if(t===95){i=true}else{r=i;i=undefined}e.consume(t);return o}function l(e){if(r||i||!s){return n(e)}return t(e)}}function xl(e,t){let n=0;let i=0;return r;function r(o){if(o===40){n++;e.consume(o);return r}if(o===41&&i<n){return s(o)}if(o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126){return e.check(hl,t,s)(o)}if(o===null||Ye(o)||Ke(o)){return t(o)}e.consume(o);return r}function s(t){if(t===41){i++}e.consume(t);return r}}function Al(e,t,n){return i;function i(o){if(o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126){e.consume(o);return i}if(o===38){e.consume(o);return s}if(o===93){e.consume(o);return r}if(o===60||o===null||Ye(o)||Ke(o)){return t(o)}return n(o)}function r(e){if(e===null||e===40||e===91||Ye(e)||Ke(e)){return t(e)}return i(e)}function s(e){return qe(e)?o(e):n(e)}function o(t){if(t===59){e.consume(t);return i}if(qe(t)){e.consume(t);return o}return n(t)}}function Cl(e,t,n){return i;function i(t){e.consume(t);return r}function r(e){return Be(e)?n(e):t(e)}}function Dl(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Ye(e)}function _l(e){return!qe(e)}function Rl(e){return!(e===47||Ll(e))}function Ll(e){return e===43||e===45||e===46||e===95||Be(e)}function Il(e){let t=e.length;let n=false;while(t--){const i=e[t][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){n=true;break}if(i._gfmAutolinkLiteralWalkedInto){n=false;break}}if(e.length>0&&!n){e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=true}return n}const Ol={tokenize:Hl,partial:true};function Nl(){return{document:{[91]:{tokenize:ql,continuation:{tokenize:Bl},exit:Fl}},text:{[91]:{tokenize:Ul},[93]:{add:"after",tokenize:Pl,resolveTo:Ml}}}}function Pl(e,t,n){const i=this;let r=i.events.length;const s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o;while(r--){const e=i.events[r][1];if(e.type==="labelImage"){o=e;break}if(e.type==="gfmFootnoteCall"||e.type==="labelLink"||e.type==="label"||e.type==="image"||e.type==="link"){break}}return a;function a(r){if(!o||!o._balanced){return n(r)}const a=Me(i.sliceSerialize({start:o.end,end:i.now()}));if(a.codePointAt(0)!==94||!s.includes(a.slice(1))){return n(r)}e.enter("gfmFootnoteCallLabelMarker");e.consume(r);e.exit("gfmFootnoteCallLabelMarker");return t(r)}}function Ml(e,t){let n=e.length;while(n--){if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){break}}e[n+1][1].type="data";e[n+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)};const r={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};r.end.column++;r.end.offset++;r.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},r.end),end:Object.assign({},e[e.length-1][1].start)};const o={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)};const a=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",r,t],["exit",r,t],["enter",s,t],["enter",o,t],["exit",o,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",i,t]];e.splice(n,e.length-n+1,...a);return e}function Ul(e,t,n){const i=this;const r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s=0;let o;return a;function a(t){e.enter("gfmFootnoteCall");e.enter("gfmFootnoteCallLabelMarker");e.consume(t);e.exit("gfmFootnoteCallLabelMarker");return l}function l(t){if(t!==94)return n(t);e.enter("gfmFootnoteCallMarker");e.consume(t);e.exit("gfmFootnoteCallMarker");e.enter("gfmFootnoteCallString");e.enter("chunkString").contentType="string";return c}function c(a){if(s>999||a===93&&!o||a===null||a===91||Ye(a)){return n(a)}if(a===93){e.exit("chunkString");const s=e.exit("gfmFootnoteCallString");if(!r.includes(Me(i.sliceSerialize(s)))){return n(a)}e.enter("gfmFootnoteCallLabelMarker");e.consume(a);e.exit("gfmFootnoteCallLabelMarker");e.exit("gfmFootnoteCall");return t}if(!Ye(a)){o=true}s++;e.consume(a);return a===92?u:c}function u(t){if(t===91||t===92||t===93){e.consume(t);s++;return c}return c(t)}}function ql(e,t,n){const i=this;const r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s;let o=0;let a;return l;function l(t){e.enter("gfmFootnoteDefinition")._container=true;e.enter("gfmFootnoteDefinitionLabel");e.enter("gfmFootnoteDefinitionLabelMarker");e.consume(t);e.exit("gfmFootnoteDefinitionLabelMarker");return c}function c(t){if(t===94){e.enter("gfmFootnoteDefinitionMarker");e.consume(t);e.exit("gfmFootnoteDefinitionMarker");e.enter("gfmFootnoteDefinitionLabelString");e.enter("chunkString").contentType="string";return u}return n(t)}function u(t){if(o>999||t===93&&!a||t===null||t===91||Ye(t)){return n(t)}if(t===93){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");s=Me(i.sliceSerialize(n));e.enter("gfmFootnoteDefinitionLabelMarker");e.consume(t);e.exit("gfmFootnoteDefinitionLabelMarker");e.exit("gfmFootnoteDefinitionLabel");return h}if(!Ye(t)){a=true}o++;e.consume(t);return t===92?f:u}function f(t){if(t===91||t===92||t===93){e.consume(t);o++;return u}return u(t)}function h(t){if(t===58){e.enter("definitionMarker");e.consume(t);e.exit("definitionMarker");if(!r.includes(s)){r.push(s)}return Ze(e,d,"gfmFootnoteDefinitionWhitespace")}return n(t)}function d(e){return t(e)}}function Bl(e,t,n){return e.check(dt,t,e.attempt(Ol,t,n))}function Fl(e){e.exit("gfmFootnoteDefinition")}function Hl(e,t,n){const i=this;return Ze(e,r,"gfmFootnoteDefinitionIndent",4+1);function r(e){const r=i.events[i.events.length-1];return r&&r[1].type==="gfmFootnoteDefinitionIndent"&&r[2].sliceSerialize(r[1],true).length===4?t(e):n(e)}}function zl(e){const t=e||{};let n=t.singleTilde;const i={tokenize:s,resolveAll:r};if(n===null||n===undefined){n=true}return{text:{[126]:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;while(++n<e.length){if(e[n][0]==="enter"&&e[n][1].type==="strikethroughSequenceTemporary"&&e[n][1]._close){let i=n;while(i--){if(e[i][0]==="exit"&&e[i][1].type==="strikethroughSequenceTemporary"&&e[i][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[i][1].end.offset-e[i][1].start.offset){e[n][1].type="strikethroughSequence";e[i][1].type="strikethroughSequence";const r={type:"strikethrough",start:Object.assign({},e[i][1].start),end:Object.assign({},e[n][1].end)};const s={type:"strikethroughText",start:Object.assign({},e[i][1].end),end:Object.assign({},e[n][1].start)};const o=[["enter",r,t],["enter",e[i][1],t],["exit",e[i][1],t],["enter",s,t]];const a=t.parser.constructs.insideSpan.null;if(a){_e(o,o.length,0,ot(a,e.slice(i+1,n),t))}_e(o,o.length,0,[["exit",s,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",r,t]]);_e(e,i-1,n-i+3,o);n=i+o.length-2;break}}}}n=-1;while(++n<e.length){if(e[n][1].type==="strikethroughSequenceTemporary"){e[n][1].type="data"}}return e}function s(e,t,i){const r=this.previous;const s=this.events;let o=0;return a;function a(t){if(r===126&&s[s.length-1][1].type!=="characterEscape"){return i(t)}e.enter("strikethroughSequenceTemporary");return l(t)}function l(s){const a=st(r);if(s===126){if(o>1)return i(s);e.consume(s);o++;return l}if(o<2&&!n)return i(s);const c=e.exit("strikethroughSequenceTemporary");const u=st(s);c._open=!u||u===2&&Boolean(a);c._close=!a||a===2&&Boolean(u);return t(s)}}}class jl{constructor(){this.map=[]}add(e,t,n){Gl(this,e,t,n)}consume(e){this.map.sort((function(e,t){return e[0]-t[0]}));if(this.map.length===0){return}let t=this.map.length;const n=[];while(t>0){t-=1;n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]);e.length=this.map[t][0]}n.push([...e]);e.length=0;let i=n.pop();while(i){e.push(...i);i=n.pop()}this.map.length=0}}function Gl(e,t,n,i){let r=0;if(n===0&&i.length===0){return}while(r<e.map.length){if(e.map[r][0]===t){e.map[r][1]+=n;e.map[r][2].push(...i);return}r+=1}e.map.push([t,n,i])}function Vl(e,t){let n=false;const i=[];while(t<e.length){const r=e[t];if(n){if(r[0]==="enter"){if(r[1].type==="tableContent"){i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none")}}else if(r[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const e=i.length-1;i[e]=i[e]==="left"?"center":"right"}}else if(r[1].type==="tableDelimiterRow"){break}}else if(r[0]==="enter"&&r[1].type==="tableDelimiterRow"){n=true}t+=1}return i}function Yl(){return{flow:{null:{tokenize:Wl,resolveAll:Xl}}}}function Wl(e,t,n){const i=this;let r=0;let s=0;let o;return a;function a(e){let t=i.events.length-1;while(t>-1){const e=i.events[t][1].type;if(e==="lineEnding"||e==="linePrefix")t--;else break}const r=t>-1?i.events[t][1].type:null;const s=r==="tableHead"||r==="tableRow"?T:l;if(s===T&&i.parser.lazy[i.now().line]){return n(e)}return s(e)}function l(t){e.enter("tableHead");e.enter("tableRow");return c(t)}function c(e){if(e===124){return u(e)}o=true;s+=1;return u(e)}function u(t){if(t===null){return n(t)}if(Ve(t)){if(s>1){s=0;i.interrupt=true;e.exit("tableRow");e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return d}return n(t)}if(We(t)){return Ze(e,u,"whitespace")(t)}s+=1;if(o){o=false;r+=1}if(t===124){e.enter("tableCellDivider");e.consume(t);e.exit("tableCellDivider");o=true;return u}e.enter("data");return f(t)}function f(t){if(t===null||t===124||Ye(t)){e.exit("data");return u(t)}e.consume(t);return t===92?h:f}function h(t){if(t===92||t===124){e.consume(t);return f}return f(t)}function d(t){i.interrupt=false;if(i.parser.lazy[i.now().line]){return n(t)}e.enter("tableDelimiterRow");o=false;if(We(t)){return Ze(e,p,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?undefined:4)(t)}return p(t)}function p(t){if(t===45||t===58){return g(t)}if(t===124){o=true;e.enter("tableCellDivider");e.consume(t);e.exit("tableCellDivider");return m}return E(t)}function m(t){if(We(t)){return Ze(e,g,"whitespace")(t)}return g(t)}function g(t){if(t===58){s+=1;o=true;e.enter("tableDelimiterMarker");e.consume(t);e.exit("tableDelimiterMarker");return b}if(t===45){s+=1;return b(t)}if(t===null||Ve(t)){return w(t)}return E(t)}function b(t){if(t===45){e.enter("tableDelimiterFiller");return k(t)}return E(t)}function k(t){if(t===45){e.consume(t);return k}if(t===58){o=true;e.exit("tableDelimiterFiller");e.enter("tableDelimiterMarker");e.consume(t);e.exit("tableDelimiterMarker");return y}e.exit("tableDelimiterFiller");return y(t)}function y(t){if(We(t)){return Ze(e,w,"whitespace")(t)}return w(t)}function w(n){if(n===124){return p(n)}if(n===null||Ve(n)){if(!o||r!==s){return E(n)}e.exit("tableDelimiterRow");e.exit("tableHead");return t(n)}return E(n)}function E(e){return n(e)}function T(t){e.enter("tableRow");return v(t)}function v(n){if(n===124){e.enter("tableCellDivider");e.consume(n);e.exit("tableCellDivider");return v}if(n===null||Ve(n)){e.exit("tableRow");return t(n)}if(We(n)){return Ze(e,v,"whitespace")(n)}e.enter("data");return S(n)}function S(t){if(t===null||t===124||Ye(t)){e.exit("data");return v(t)}e.consume(t);return t===92?x:S}function x(t){if(t===92||t===124){e.consume(t);return S}return S(t)}}function Xl(e,t){let n=-1;let i=true;let r=0;let s=[0,0,0,0];let o=[0,0,0,0];let a=false;let l=0;let c;let u;let f;const h=new jl;while(++n<e.length){const d=e[n];const p=d[1];if(d[0]==="enter"){if(p.type==="tableHead"){a=false;if(l!==0){$l(h,t,l,c,u);u=undefined;l=0}c={type:"table",start:Object.assign({},p.start),end:Object.assign({},p.end)};h.add(n,0,[["enter",c,t]])}else if(p.type==="tableRow"||p.type==="tableDelimiterRow"){i=true;f=undefined;s=[0,0,0,0];o=[0,n+1,0,0];if(a){a=false;u={type:"tableBody",start:Object.assign({},p.start),end:Object.assign({},p.end)};h.add(n,0,[["enter",u,t]])}r=p.type==="tableDelimiterRow"?2:u?3:1}else if(r&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.type==="tableDelimiterFiller")){i=false;if(o[2]===0){if(s[1]!==0){o[0]=o[1];f=Kl(h,t,s,r,undefined,f);s=[0,0,0,0]}o[2]=n}}else if(p.type==="tableCellDivider"){if(i){i=false}else{if(s[1]!==0){o[0]=o[1];f=Kl(h,t,s,r,undefined,f)}s=o;o=[s[1],n,0,0]}}}else if(p.type==="tableHead"){a=true;l=n}else if(p.type==="tableRow"||p.type==="tableDelimiterRow"){l=n;if(s[1]!==0){o[0]=o[1];f=Kl(h,t,s,r,n,f)}else if(o[1]!==0){f=Kl(h,t,o,r,n,f)}r=0}else if(r&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.type==="tableDelimiterFiller")){o[3]=n}}if(l!==0){$l(h,t,l,c,u)}h.consume(t.events);n=-1;while(++n<t.events.length){const e=t.events[n];if(e[0]==="enter"&&e[1].type==="table"){e[1]._align=Vl(t.events,n)}}return e}function Kl(e,t,n,i,r,s){const o=i===1?"tableHeader":i===2?"tableDelimiter":"tableData";const a="tableContent";if(n[0]!==0){s.end=Object.assign({},Ql(t.events,n[0]));e.add(n[0],0,[["exit",s,t]])}const l=Ql(t.events,n[1]);s={type:o,start:Object.assign({},l),end:Object.assign({},l)};e.add(n[1],0,[["enter",s,t]]);if(n[2]!==0){const r=Ql(t.events,n[2]);const s=Ql(t.events,n[3]);const o={type:a,start:Object.assign({},r),end:Object.assign({},s)};e.add(n[2],0,[["enter",o,t]]);if(i!==2){const i=t.events[n[2]];const r=t.events[n[3]];i[1].end=Object.assign({},r[1].end);i[1].type="chunkText";i[1].contentType="text";if(n[3]>n[2]+1){const t=n[2]+1;const i=n[3]-n[2]-1;e.add(t,i,[])}}e.add(n[3]+1,0,[["exit",o,t]])}if(r!==undefined){s.end=Object.assign({},Ql(t.events,r));e.add(r,0,[["exit",s,t]]);s=undefined}return s}function $l(e,t,n,i,r){const s=[];const o=Ql(t.events,n);if(r){r.end=Object.assign({},o);s.push(["exit",r,t])}i.end=Object.assign({},o);s.push(["exit",i,t]);e.add(n+1,0,s)}function Ql(e,t){const n=e[t];const i=n[0]==="enter"?"start":"end";return n[1][i]}const Zl={tokenize:ec};function Jl(){return{text:{[91]:Zl}}}function ec(e,t,n){const i=this;return r;function r(t){if(i.previous!==null||!i._gfmTasklistFirstContentOfListItem){return n(t)}e.enter("taskListCheck");e.enter("taskListCheckMarker");e.consume(t);e.exit("taskListCheckMarker");return s}function s(t){if(Ye(t)){e.enter("taskListCheckValueUnchecked");e.consume(t);e.exit("taskListCheckValueUnchecked");return o}if(t===88||t===120){e.enter("taskListCheckValueChecked");e.consume(t);e.exit("taskListCheckValueChecked");return o}return n(t)}function o(t){if(t===93){e.enter("taskListCheckMarker");e.consume(t);e.exit("taskListCheckMarker");e.exit("taskListCheck");return a}return n(t)}function a(i){if(Ve(i)){return t(i)}if(We(i)){return e.check({tokenize:tc},t,n)(i)}return n(i)}}function tc(e,t,n){return Ze(e,i,"whitespace");function i(e){return e===null?n(e):t(e)}}function nc(e){return Ie([kl(),Nl(),zl(e),Yl(),Jl()])}const ic={};function rc(e){const t=this;const n=e||ic;const i=t.data();const r=i.micromarkExtensions||(i.micromarkExtensions=[]);const s=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]);const o=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);r.push(nc(n));s.push(al());o.push(ll(n))}class sc{constructor(e,t,n){this.property=e;this.normal=t;if(n){this.space=n}}}sc.prototype.property={};sc.prototype.normal={};sc.prototype.space=null;function oc(e,t){const n={};const i={};let r=-1;while(++r<e.length){Object.assign(n,e[r].property);Object.assign(i,e[r].normal)}return new sc(n,i,t)}function ac(e){return e.toLowerCase()}class lc{constructor(e,t){this.property=e;this.attribute=t}}lc.prototype.space=null;lc.prototype.boolean=false;lc.prototype.booleanish=false;lc.prototype.overloadedBoolean=false;lc.prototype.number=false;lc.prototype.commaSeparated=false;lc.prototype.spaceSeparated=false;lc.prototype.commaOrSpaceSeparated=false;lc.prototype.mustUseProperty=false;lc.prototype.defined=false;let cc=0;const uc=bc();const fc=bc();const hc=bc();const dc=bc();const pc=bc();const mc=bc();const gc=bc();function bc(){return 2**++cc}const kc=Object.freeze({__proto__:null,boolean:uc,booleanish:fc,overloadedBoolean:hc,number:dc,spaceSeparated:pc,commaSeparated:mc,commaOrSpaceSeparated:gc});const yc=Object.keys(kc);class wc extends lc{constructor(e,t,n,i){let r=-1;super(e,t);Ec(this,"space",i);if(typeof n==="number"){while(++r<yc.length){const e=yc[r];Ec(this,yc[r],(n&kc[e])===kc[e])}}}}wc.prototype.defined=true;function Ec(e,t,n){if(n){e[t]=n}}const Tc={}.hasOwnProperty;function vc(e){const t={};const n={};let i;for(i in e.properties){if(Tc.call(e.properties,i)){const r=e.properties[i];const s=new wc(i,e.transform(e.attributes||{},i),r,e.space);if(e.mustUseProperty&&e.mustUseProperty.includes(i)){s.mustUseProperty=true}t[i]=s;n[ac(i)]=i;n[ac(s.attribute)]=i}}return new sc(t,n,e.space)}const Sc=vc({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});const xc=vc({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Ac(e,t){return t in e?e[t]:t}function Cc(e,t){return Ac(e,t.toLowerCase())}const Dc=vc({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Cc,properties:{xmlns:null,xmlnsXLink:null}});const _c=vc({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:fc,ariaAutoComplete:null,ariaBusy:fc,ariaChecked:fc,ariaColCount:dc,ariaColIndex:dc,ariaColSpan:dc,ariaControls:pc,ariaCurrent:null,ariaDescribedBy:pc,ariaDetails:null,ariaDisabled:fc,ariaDropEffect:pc,ariaErrorMessage:null,ariaExpanded:fc,ariaFlowTo:pc,ariaGrabbed:fc,ariaHasPopup:null,ariaHidden:fc,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:pc,ariaLevel:dc,ariaLive:null,ariaModal:fc,ariaMultiLine:fc,ariaMultiSelectable:fc,ariaOrientation:null,ariaOwns:pc,ariaPlaceholder:null,ariaPosInSet:dc,ariaPressed:fc,ariaReadOnly:fc,ariaRelevant:null,ariaRequired:fc,ariaRoleDescription:pc,ariaRowCount:dc,ariaRowIndex:dc,ariaRowSpan:dc,ariaSelected:fc,ariaSetSize:dc,ariaSort:null,ariaValueMax:dc,ariaValueMin:dc,ariaValueNow:dc,ariaValueText:null,role:null}});const Rc=vc({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Cc,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:mc,acceptCharset:pc,accessKey:pc,action:null,allow:null,allowFullScreen:uc,allowPaymentRequest:uc,allowUserMedia:uc,alt:null,as:null,async:uc,autoCapitalize:null,autoComplete:pc,autoFocus:uc,autoPlay:uc,blocking:pc,capture:null,charSet:null,checked:uc,cite:null,className:pc,cols:dc,colSpan:null,content:null,contentEditable:fc,controls:uc,controlsList:pc,coords:dc|mc,crossOrigin:null,data:null,dateTime:null,decoding:null,default:uc,defer:uc,dir:null,dirName:null,disabled:uc,download:hc,draggable:fc,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:uc,formTarget:null,headers:pc,height:dc,hidden:uc,high:dc,href:null,hrefLang:null,htmlFor:pc,httpEquiv:pc,id:null,imageSizes:null,imageSrcSet:null,inert:uc,inputMode:null,integrity:null,is:null,isMap:uc,itemId:null,itemProp:pc,itemRef:pc,itemScope:uc,itemType:pc,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:uc,low:dc,manifest:null,max:null,maxLength:dc,media:null,method:null,min:null,minLength:dc,multiple:uc,muted:uc,name:null,nonce:null,noModule:uc,noValidate:uc,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:uc,optimum:dc,pattern:null,ping:pc,placeholder:null,playsInline:uc,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:uc,referrerPolicy:null,rel:pc,required:uc,reversed:uc,rows:dc,rowSpan:dc,sandbox:pc,scope:null,scoped:uc,seamless:uc,selected:uc,shadowRootClonable:uc,shadowRootDelegatesFocus:uc,shadowRootMode:null,shape:null,size:dc,sizes:null,slot:null,span:dc,spellCheck:fc,src:null,srcDoc:null,srcLang:null,srcSet:null,start:dc,step:null,style:null,tabIndex:dc,target:null,title:null,translate:null,type:null,typeMustMatch:uc,useMap:null,value:fc,width:dc,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:pc,axis:null,background:null,bgColor:null,border:dc,borderColor:null,bottomMargin:dc,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:uc,declare:uc,event:null,face:null,frame:null,frameBorder:null,hSpace:dc,leftMargin:dc,link:null,longDesc:null,lowSrc:null,marginHeight:dc,marginWidth:dc,noResize:uc,noHref:uc,noShade:uc,noWrap:uc,object:null,profile:null,prompt:null,rev:null,rightMargin:dc,rules:null,scheme:null,scrolling:fc,standby:null,summary:null,text:null,topMargin:dc,valueType:null,version:null,vAlign:null,vLink:null,vSpace:dc,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:uc,disableRemotePlayback:uc,prefix:null,property:null,results:dc,security:null,unselectable:null}});const Lc=vc({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Ac,properties:{about:gc,accentHeight:dc,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:dc,amplitude:dc,arabicForm:null,ascent:dc,attributeName:null,attributeType:null,azimuth:dc,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:dc,by:null,calcMode:null,capHeight:dc,className:pc,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:dc,diffuseConstant:dc,direction:null,display:null,dur:null,divisor:dc,dominantBaseline:null,download:uc,dx:null,dy:null,edgeMode:null,editable:null,elevation:dc,enableBackground:null,end:null,event:null,exponent:dc,externalResourcesRequired:null,fill:null,fillOpacity:dc,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:mc,g2:mc,glyphName:mc,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:dc,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:dc,horizOriginX:dc,horizOriginY:dc,id:null,ideographic:dc,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:dc,k:dc,k1:dc,k2:dc,k3:dc,k4:dc,kernelMatrix:gc,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:dc,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:dc,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:dc,overlineThickness:dc,paintOrder:null,panose1:null,path:null,pathLength:dc,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:pc,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:dc,pointsAtY:dc,pointsAtZ:dc,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:gc,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:gc,rev:gc,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:gc,requiredFeatures:gc,requiredFonts:gc,requiredFormats:gc,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:dc,specularExponent:dc,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:dc,strikethroughThickness:dc,string:null,stroke:null,strokeDashArray:gc,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:dc,strokeOpacity:dc,strokeWidth:null,style:null,surfaceScale:dc,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:gc,tabIndex:dc,tableValues:null,target:null,targetX:dc,targetY:dc,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:gc,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:dc,underlineThickness:dc,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:dc,values:null,vAlphabetic:dc,vMathematical:dc,vectorEffect:null,vHanging:dc,vIdeographic:dc,version:null,vertAdvY:dc,vertOriginX:dc,vertOriginY:dc,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:dc,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}});const Ic=/^data[-\w.:]+$/i;const Oc=/-[a-z]/g;const Nc=/[A-Z]/g;function Pc(e,t){const n=ac(t);let i=t;let r=lc;if(n in e.normal){return e.property[e.normal[n]]}if(n.length>4&&n.slice(0,4)==="data"&&Ic.test(t)){if(t.charAt(4)==="-"){const e=t.slice(5).replace(Oc,Uc);i="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Oc.test(e)){let n=e.replace(Nc,Mc);if(n.charAt(0)!=="-"){n="-"+n}t="data"+n}}r=wc}return new r(i,t)}function Mc(e){return"-"+e.toLowerCase()}function Uc(e){return e.charAt(1).toUpperCase()}const qc=oc([xc,Sc,Dc,_c,Rc],"html");const Bc=oc([xc,Sc,Dc,_c,Lc],"svg");function Fc(e){const t=[];const n=String(e||"");let i=n.indexOf(",");let r=0;let s=false;while(!s){if(i===-1){i=n.length;s=true}const e=n.slice(r,i).trim();if(e||!s){t.push(e)}r=i+1;i=n.indexOf(",",r)}return t}const Hc=/[#.]/g;function zc(e,t){const n=e||"";const i={};let r=0;let s;let o;while(r<n.length){Hc.lastIndex=r;const e=Hc.exec(n);const t=n.slice(r,e?e.index:n.length);if(t){if(!s){o=t}else if(s==="#"){i.id=t}else if(Array.isArray(i.className)){i.className.push(t)}else{i.className=[t]}r+=t.length}if(e){s=e[0];r++}}return{type:"element",tagName:o||t||"div",properties:i,children:[]}}function jc(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}const Gc={}.hasOwnProperty;function Vc(e,t,n){const i=n&&Qc(n);function r(n,r,...s){let o=-1;let a;if(n===undefined||n===null){a={type:"root",children:[]};const e=r;s.unshift(e)}else{a=zc(n,t);a.tagName=a.tagName.toLowerCase();if(i&&Gc.call(i,a.tagName)){a.tagName=i[a.tagName]}if(Yc(r)){s.unshift(r)}else{let t;for(t in r){if(Gc.call(r,t)){Wc(e,a.properties,t,r[t])}}}}while(++o<s.length){Xc(a.children,s[o])}if(a.type==="element"&&a.tagName==="template"){a.content={type:"root",children:a.children};a.children=[]}return a}return r}function Yc(e){if(e===null||typeof e!=="object"||Array.isArray(e)){return true}if(typeof e.type!=="string")return false;const t=e;const n=Object.keys(e);for(const e of n){const n=t[e];if(n&&typeof n==="object"){if(!Array.isArray(n))return true;const e=n;for(const t of e){if(typeof t!=="number"&&typeof t!=="string"){return true}}}}if("children"in e&&Array.isArray(e.children)){return true}return false}function Wc(e,t,n,i){const r=Pc(e,n);let s=-1;let o;if(i===undefined||i===null)return;if(typeof i==="number"){if(Number.isNaN(i))return;o=i}else if(typeof i==="boolean"){o=i}else if(typeof i==="string"){if(r.spaceSeparated){o=jc(i)}else if(r.commaSeparated){o=Fc(i)}else if(r.commaOrSpaceSeparated){o=jc(Fc(i).join(" "))}else{o=Kc(r,r.property,i)}}else if(Array.isArray(i)){o=i.concat()}else{o=r.property==="style"?$c(i):String(i)}if(Array.isArray(o)){const e=[];while(++s<o.length){const t=Kc(r,r.property,o[s]);e[s]=t}o=e}if(r.property==="className"&&Array.isArray(t.className)){const e=o;o=t.className.concat(e)}t[r.property]=o}function Xc(e,t){let n=-1;if(t===undefined||t===null);else if(typeof t==="string"||typeof t==="number"){e.push({type:"text",value:String(t)})}else if(Array.isArray(t)){while(++n<t.length){Xc(e,t[n])}}else if(typeof t==="object"&&"type"in t){if(t.type==="root"){Xc(e,t.children)}else{e.push(t)}}else{throw new Error("Expected node, nodes, or string, got `"+t+"`")}}function Kc(e,t,n){if(typeof n==="string"){if(e.number&&n&&!Number.isNaN(Number(n))){return Number(n)}if((e.boolean||e.overloadedBoolean)&&(n===""||ac(n)===ac(t))){return true}}return n}function $c(e){const t=[];let n;for(n in e){if(Gc.call(e,n)){t.push([n,e[n]].join(": "))}}return t.join("; ")}function Qc(e){const t={};let n=-1;while(++n<e.length){t[e[n].toLowerCase()]=e[n]}return t}const Zc=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"];const Jc=Vc(qc,"div");const eu=Vc(Bc,"g",Zc);function tu(e){const t=String(e);const n=[];return{toOffset:r,toPoint:i};function i(e){if(typeof e==="number"&&e>-1&&e<=t.length){let i=0;while(true){let r=n[i];if(r===undefined){const e=nu(t,n[i-1]);r=e===-1?t.length+1:e+1;n[i]=r}if(r>e){return{line:i+1,column:e-(i>0?n[i-1]:0)+1,offset:e}}i++}}}function r(e){if(e&&typeof e.line==="number"&&typeof e.column==="number"&&!Number.isNaN(e.line)&&!Number.isNaN(e.column)){while(n.length<e.line){const e=n[n.length-1];const i=nu(t,e);const r=i===-1?t.length+1:i+1;if(e===r)break;n.push(r)}const i=(e.line>1?n[e.line-2]:0)+e.column-1;if(i<n[e.line-1])return i}}}function nu(e,t){const n=e.indexOf("\r",t);const i=e.indexOf("\n",t);if(i===-1)return n;if(n===-1||n+1===i)return i;return n<i?n:i}const iu={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};const ru={}.hasOwnProperty;const su=Object.prototype;function ou(e,t){const n=t||{};return au({file:n.file||undefined,location:false,schema:n.space==="svg"?Bc:qc,verbose:n.verbose||false},e)}function au(e,t){let n;switch(t.nodeName){case"#comment":{const i=t;n={type:"comment",value:i.data};uu(e,i,n);return n}case"#document":case"#document-fragment":{const i=t;const r="mode"in i?i.mode==="quirks"||i.mode==="limited-quirks":false;n={type:"root",children:lu(e,t.childNodes),data:{quirksMode:r}};if(e.file&&e.location){const t=String(e.file);const i=tu(t);const r=i.toPoint(0);const s=i.toPoint(t.length);n.position={start:r,end:s}}return n}case"#documentType":{const i=t;n={type:"doctype"};uu(e,i,n);return n}case"#text":{const i=t;n={type:"text",value:i.value};uu(e,i,n);return n}default:{const i=t;n=cu(e,i);return n}}}function lu(e,t){let n=-1;const i=[];while(++n<t.length){const r=au(e,t[n]);i.push(r)}return i}function cu(e,t){const n=e.schema;e.schema=t.namespaceURI===iu.svg?Bc:qc;let i=-1;const r={};while(++i<t.attrs.length){const e=t.attrs[i];const n=(e.prefix?e.prefix+":":"")+e.name;if(!ru.call(su,n)){r[n]=e.value}}const s=e.schema.space==="svg"?eu:Jc;const o=s(t.tagName,r,lu(e,t.childNodes));uu(e,t,o);if(o.tagName==="template"){const n=t;const i=n.sourceCodeLocation;const r=i&&i.startTag&&hu(i.startTag);const s=i&&i.endTag&&hu(i.endTag);const a=au(e,n.content);if(r&&s&&e.file){a.position={start:r.end,end:s.start}}o.content=a}e.schema=n;return o}function uu(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const i=fu(e,n,t.sourceCodeLocation);if(i){e.location=true;n.position=i}}}function fu(e,t,n){const i=hu(n);if(t.type==="element"){const r=t.children[t.children.length-1];if(i&&!n.endTag&&r&&r.position&&r.position.end){i.end=Object.assign({},r.position.end)}if(e.verbose){const i={};let r;if(n.attrs){for(r in n.attrs){if(ru.call(n.attrs,r)){i[Pc(e.schema,r).property]=hu(n.attrs[r])}}}const s=hu(n.startTag);const o=n.endTag?hu(n.endTag):undefined;const a={opening:s};if(o)a.closing=o;a.properties=i;t.data={position:a}}}return i}function hu(e){const t=du({line:e.startLine,column:e.startCol,offset:e.startOffset});const n=du({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:undefined}function du(e){return e.line&&e.column?e:undefined}const pu=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]);const mu="�";var gu;(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["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_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_Z"]=122]="LATIN_SMALL_Z"})(gu||(gu={}));const bu={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function ku(e){return e>=55296&&e<=57343}function yu(e){return e>=56320&&e<=57343}function wu(e,t){return(e-55296)*1024+9216+t}function Eu(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Tu(e){return e>=64976&&e<=65007||pu.has(e)}var vu;(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"})(vu||(vu={}));const Su=1<<16;class xu{constructor(e){this.handler=e;this.html="";this.pos=-1;this.lastGapPos=-2;this.gapStack=[];this.skipNextNewLine=false;this.lastChunkWritten=false;this.endOfChunkHit=false;this.bufferWaterline=Su;this.isEol=false;this.lineStartPos=0;this.droppedBufferSize=0;this.line=1;this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){const{line:n,col:i,offset:r}=this;const s=i+t;const o=r+t;return{code:e,startLine:n,endLine:n,startCol:s,endCol:s,startOffset:o,endOffset:o}}_err(e){if(this.handler.onParseError&&this.lastErrOffset!==this.offset){this.lastErrOffset=this.offset;this.handler.onParseError(this.getError(e,0))}}_addGap(){this.gapStack.push(this.lastGapPos);this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const t=this.html.charCodeAt(this.pos+1);if(yu(t)){this.pos++;this._addGap();return wu(e,t)}}else if(!this.lastChunkWritten){this.endOfChunkHit=true;return gu.EOF}this._err(vu.surrogateInInputStream);return e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){if(this.willDropParsedChunk()){this.html=this.html.substring(this.pos);this.lineStartPos-=this.pos;this.droppedBufferSize+=this.pos;this.pos=0;this.lastGapPos=-2;this.gapStack.length=0}}write(e,t){if(this.html.length>0){this.html+=e}else{this.html=e}this.endOfChunkHit=false;this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1);this.endOfChunkHit=false}startsWith(e,t){if(this.pos+e.length>this.html.length){this.endOfChunkHit=!this.lastChunkWritten;return false}if(t){return this.html.startsWith(e,this.pos)}for(let t=0;t<e.length;t++){const n=this.html.charCodeAt(this.pos+t)|32;if(n!==e.charCodeAt(t)){return false}}return true}peek(e){const t=this.pos+e;if(t>=this.html.length){this.endOfChunkHit=!this.lastChunkWritten;return gu.EOF}const n=this.html.charCodeAt(t);return n===gu.CARRIAGE_RETURN?gu.LINE_FEED:n}advance(){this.pos++;if(this.isEol){this.isEol=false;this.line++;this.lineStartPos=this.pos}if(this.pos>=this.html.length){this.endOfChunkHit=!this.lastChunkWritten;return gu.EOF}let e=this.html.charCodeAt(this.pos);if(e===gu.CARRIAGE_RETURN){this.isEol=true;this.skipNextNewLine=true;return gu.LINE_FEED}if(e===gu.LINE_FEED){this.isEol=true;if(this.skipNextNewLine){this.line--;this.skipNextNewLine=false;this._addGap();return this.advance()}}this.skipNextNewLine=false;if(ku(e)){e=this._processSurrogate(e)}const t=this.handler.onParseError===null||e>31&&e<127||e===gu.LINE_FEED||e===gu.CARRIAGE_RETURN||e>159&&e<64976;if(!t){this._checkForProblematicCharacters(e)}return e}_checkForProblematicCharacters(e){if(Eu(e)){this._err(vu.controlCharacterInInputStream)}else if(Tu(e)){this._err(vu.noncharacterInInputStream)}}retreat(e){this.pos-=e;while(this.pos<this.lastGapPos){this.lastGapPos=this.gapStack.pop();this.pos--}this.isEol=false}}var Au;(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"})(Au||(Au={}));function Cu(e,t){for(let n=e.attrs.length-1;n>=0;n--){if(e.attrs[n].name===t){return e.attrs[n].value}}return null}var Du;(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/"})(Du||(Du={}));var _u;(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"})(_u||(_u={}));var Ru;(function(e){e["NO_QUIRKS"]="no-quirks";e["QUIRKS"]="quirks";e["LIMITED_QUIRKS"]="limited-quirks"})(Ru||(Ru={}));var Lu;(function(e){e["A"]="a";e["ADDRESS"]="address";e["ANNOTATION_XML"]="annotation-xml";e["APPLET"]="applet";e["AREA"]="area";e["ARTICLE"]="article";e["ASIDE"]="aside";e["B"]="b";e["BASE"]="base";e["BASEFONT"]="basefont";e["BGSOUND"]="bgsound";e["BIG"]="big";e["BLOCKQUOTE"]="blockquote";e["BODY"]="body";e["BR"]="br";e["BUTTON"]="button";e["CAPTION"]="caption";e["CENTER"]="center";e["CODE"]="code";e["COL"]="col";e["COLGROUP"]="colgroup";e["DD"]="dd";e["DESC"]="desc";e["DETAILS"]="details";e["DIALOG"]="dialog";e["DIR"]="dir";e["DIV"]="div";e["DL"]="dl";e["DT"]="dt";e["EM"]="em";e["EMBED"]="embed";e["FIELDSET"]="fieldset";e["FIGCAPTION"]="figcaption";e["FIGURE"]="figure";e["FONT"]="font";e["FOOTER"]="footer";e["FOREIGN_OBJECT"]="foreignObject";e["FORM"]="form";e["FRAME"]="frame";e["FRAMESET"]="frameset";e["H1"]="h1";e["H2"]="h2";e["H3"]="h3";e["H4"]="h4";e["H5"]="h5";e["H6"]="h6";e["HEAD"]="head";e["HEADER"]="header";e["HGROUP"]="hgroup";e["HR"]="hr";e["HTML"]="html";e["I"]="i";e["IMG"]="img";e["IMAGE"]="image";e["INPUT"]="input";e["IFRAME"]="iframe";e["KEYGEN"]="keygen";e["LABEL"]="label";e["LI"]="li";e["LINK"]="link";e["LISTING"]="listing";e["MAIN"]="main";e["MALIGNMARK"]="malignmark";e["MARQUEE"]="marquee";e["MATH"]="math";e["MENU"]="menu";e["META"]="meta";e["MGLYPH"]="mglyph";e["MI"]="mi";e["MO"]="mo";e["MN"]="mn";e["MS"]="ms";e["MTEXT"]="mtext";e["NAV"]="nav";e["NOBR"]="nobr";e["NOFRAMES"]="noframes";e["NOEMBED"]="noembed";e["NOSCRIPT"]="noscript";e["OBJECT"]="object";e["OL"]="ol";e["OPTGROUP"]="optgroup";e["OPTION"]="option";e["P"]="p";e["PARAM"]="param";e["PLAINTEXT"]="plaintext";e["PRE"]="pre";e["RB"]="rb";e["RP"]="rp";e["RT"]="rt";e["RTC"]="rtc";e["RUBY"]="ruby";e["S"]="s";e["SCRIPT"]="script";e["SEARCH"]="search";e["SECTION"]="section";e["SELECT"]="select";e["SOURCE"]="source";e["SMALL"]="small";e["SPAN"]="span";e["STRIKE"]="strike";e["STRONG"]="strong";e["STYLE"]="style";e["SUB"]="sub";e["SUMMARY"]="summary";e["SUP"]="sup";e["TABLE"]="table";e["TBODY"]="tbody";e["TEMPLATE"]="template";e["TEXTAREA"]="textarea";e["TFOOT"]="tfoot";e["TD"]="td";e["TH"]="th";e["THEAD"]="thead";e["TITLE"]="title";e["TR"]="tr";e["TRACK"]="track";e["TT"]="tt";e["U"]="u";e["UL"]="ul";e["SVG"]="svg";e["VAR"]="var";e["WBR"]="wbr";e["XMP"]="xmp"})(Lu||(Lu={}));var Iu;(function(e){e[e["UNKNOWN"]=0]="UNKNOWN";e[e["A"]=1]="A";e[e["ADDRESS"]=2]="ADDRESS";e[e["ANNOTATION_XML"]=3]="ANNOTATION_XML";e[e["APPLET"]=4]="APPLET";e[e["AREA"]=5]="AREA";e[e["ARTICLE"]=6]="ARTICLE";e[e["ASIDE"]=7]="ASIDE";e[e["B"]=8]="B";e[e["BASE"]=9]="BASE";e[e["BASEFONT"]=10]="BASEFONT";e[e["BGSOUND"]=11]="BGSOUND";e[e["BIG"]=12]="BIG";e[e["BLOCKQUOTE"]=13]="BLOCKQUOTE";e[e["BODY"]=14]="BODY";e[e["BR"]=15]="BR";e[e["BUTTON"]=16]="BUTTON";e[e["CAPTION"]=17]="CAPTION";e[e["CENTER"]=18]="CENTER";e[e["CODE"]=19]="CODE";e[e["COL"]=20]="COL";e[e["COLGROUP"]=21]="COLGROUP";e[e["DD"]=22]="DD";e[e["DESC"]=23]="DESC";e[e["DETAILS"]=24]="DETAILS";e[e["DIALOG"]=25]="DIALOG";e[e["DIR"]=26]="DIR";e[e["DIV"]=27]="DIV";e[e["DL"]=28]="DL";e[e["DT"]=29]="DT";e[e["EM"]=30]="EM";e[e["EMBED"]=31]="EMBED";e[e["FIELDSET"]=32]="FIELDSET";e[e["FIGCAPTION"]=33]="FIGCAPTION";e[e["FIGURE"]=34]="FIGURE";e[e["FONT"]=35]="FONT";e[e["FOOTER"]=36]="FOOTER";e[e["FOREIGN_OBJECT"]=37]="FOREIGN_OBJECT";e[e["FORM"]=38]="FORM";e[e["FRAME"]=39]="FRAME";e[e["FRAMESET"]=40]="FRAMESET";e[e["H1"]=41]="H1";e[e["H2"]=42]="H2";e[e["H3"]=43]="H3";e[e["H4"]=44]="H4";e[e["H5"]=45]="H5";e[e["H6"]=46]="H6";e[e["HEAD"]=47]="HEAD";e[e["HEADER"]=48]="HEADER";e[e["HGROUP"]=49]="HGROUP";e[e["HR"]=50]="HR";e[e["HTML"]=51]="HTML";e[e["I"]=52]="I";e[e["IMG"]=53]="IMG";e[e["IMAGE"]=54]="IMAGE";e[e["INPUT"]=55]="INPUT";e[e["IFRAME"]=56]="IFRAME";e[e["KEYGEN"]=57]="KEYGEN";e[e["LABEL"]=58]="LABEL";e[e["LI"]=59]="LI";e[e["LINK"]=60]="LINK";e[e["LISTING"]=61]="LISTING";e[e["MAIN"]=62]="MAIN";e[e["MALIGNMARK"]=63]="MALIGNMARK";e[e["MARQUEE"]=64]="MARQUEE";e[e["MATH"]=65]="MATH";e[e["MENU"]=66]="MENU";e[e["META"]=67]="META";e[e["MGLYPH"]=68]="MGLYPH";e[e["MI"]=69]="MI";e[e["MO"]=70]="MO";e[e["MN"]=71]="MN";e[e["MS"]=72]="MS";e[e["MTEXT"]=73]="MTEXT";e[e["NAV"]=74]="NAV";e[e["NOBR"]=75]="NOBR";e[e["NOFRAMES"]=76]="NOFRAMES";e[e["NOEMBED"]=77]="NOEMBED";e[e["NOSCRIPT"]=78]="NOSCRIPT";e[e["OBJECT"]=79]="OBJECT";e[e["OL"]=80]="OL";e[e["OPTGROUP"]=81]="OPTGROUP";e[e["OPTION"]=82]="OPTION";e[e["P"]=83]="P";e[e["PARAM"]=84]="PARAM";e[e["PLAINTEXT"]=85]="PLAINTEXT";e[e["PRE"]=86]="PRE";e[e["RB"]=87]="RB";e[e["RP"]=88]="RP";e[e["RT"]=89]="RT";e[e["RTC"]=90]="RTC";e[e["RUBY"]=91]="RUBY";e[e["S"]=92]="S";e[e["SCRIPT"]=93]="SCRIPT";e[e["SEARCH"]=94]="SEARCH";e[e["SECTION"]=95]="SECTION";e[e["SELECT"]=96]="SELECT";e[e["SOURCE"]=97]="SOURCE";e[e["SMALL"]=98]="SMALL";e[e["SPAN"]=99]="SPAN";e[e["STRIKE"]=100]="STRIKE";e[e["STRONG"]=101]="STRONG";e[e["STYLE"]=102]="STYLE";e[e["SUB"]=103]="SUB";e[e["SUMMARY"]=104]="SUMMARY";e[e["SUP"]=105]="SUP";e[e["TABLE"]=106]="TABLE";e[e["TBODY"]=107]="TBODY";e[e["TEMPLATE"]=108]="TEMPLATE";e[e["TEXTAREA"]=109]="TEXTAREA";e[e["TFOOT"]=110]="TFOOT";e[e["TD"]=111]="TD";e[e["TH"]=112]="TH";e[e["THEAD"]=113]="THEAD";e[e["TITLE"]=114]="TITLE";e[e["TR"]=115]="TR";e[e["TRACK"]=116]="TRACK";e[e["TT"]=117]="TT";e[e["U"]=118]="U";e[e["UL"]=119]="UL";e[e["SVG"]=120]="SVG";e[e["VAR"]=121]="VAR";e[e["WBR"]=122]="WBR";e[e["XMP"]=123]="XMP"})(Iu||(Iu={}));const Ou=new Map([[Lu.A,Iu.A],[Lu.ADDRESS,Iu.ADDRESS],[Lu.ANNOTATION_XML,Iu.ANNOTATION_XML],[Lu.APPLET,Iu.APPLET],[Lu.AREA,Iu.AREA],[Lu.ARTICLE,Iu.ARTICLE],[Lu.ASIDE,Iu.ASIDE],[Lu.B,Iu.B],[Lu.BASE,Iu.BASE],[Lu.BASEFONT,Iu.BASEFONT],[Lu.BGSOUND,Iu.BGSOUND],[Lu.BIG,Iu.BIG],[Lu.BLOCKQUOTE,Iu.BLOCKQUOTE],[Lu.BODY,Iu.BODY],[Lu.BR,Iu.BR],[Lu.BUTTON,Iu.BUTTON],[Lu.CAPTION,Iu.CAPTION],[Lu.CENTER,Iu.CENTER],[Lu.CODE,Iu.CODE],[Lu.COL,Iu.COL],[Lu.COLGROUP,Iu.COLGROUP],[Lu.DD,Iu.DD],[Lu.DESC,Iu.DESC],[Lu.DETAILS,Iu.DETAILS],[Lu.DIALOG,Iu.DIALOG],[Lu.DIR,Iu.DIR],[Lu.DIV,Iu.DIV],[Lu.DL,Iu.DL],[Lu.DT,Iu.DT],[Lu.EM,Iu.EM],[Lu.EMBED,Iu.EMBED],[Lu.FIELDSET,Iu.FIELDSET],[Lu.FIGCAPTION,Iu.FIGCAPTION],[Lu.FIGURE,Iu.FIGURE],[Lu.FONT,Iu.FONT],[Lu.FOOTER,Iu.FOOTER],[Lu.FOREIGN_OBJECT,Iu.FOREIGN_OBJECT],[Lu.FORM,Iu.FORM],[Lu.FRAME,Iu.FRAME],[Lu.FRAMESET,Iu.FRAMESET],[Lu.H1,Iu.H1],[Lu.H2,Iu.H2],[Lu.H3,Iu.H3],[Lu.H4,Iu.H4],[Lu.H5,Iu.H5],[Lu.H6,Iu.H6],[Lu.HEAD,Iu.HEAD],[Lu.HEADER,Iu.HEADER],[Lu.HGROUP,Iu.HGROUP],[Lu.HR,Iu.HR],[Lu.HTML,Iu.HTML],[Lu.I,Iu.I],[Lu.IMG,Iu.IMG],[Lu.IMAGE,Iu.IMAGE],[Lu.INPUT,Iu.INPUT],[Lu.IFRAME,Iu.IFRAME],[Lu.KEYGEN,Iu.KEYGEN],[Lu.LABEL,Iu.LABEL],[Lu.LI,Iu.LI],[Lu.LINK,Iu.LINK],[Lu.LISTING,Iu.LISTING],[Lu.MAIN,Iu.MAIN],[Lu.MALIGNMARK,Iu.MALIGNMARK],[Lu.MARQUEE,Iu.MARQUEE],[Lu.MATH,Iu.MATH],[Lu.MENU,Iu.MENU],[Lu.META,Iu.META],[Lu.MGLYPH,Iu.MGLYPH],[Lu.MI,Iu.MI],[Lu.MO,Iu.MO],[Lu.MN,Iu.MN],[Lu.MS,Iu.MS],[Lu.MTEXT,Iu.MTEXT],[Lu.NAV,Iu.NAV],[Lu.NOBR,Iu.NOBR],[Lu.NOFRAMES,Iu.NOFRAMES],[Lu.NOEMBED,Iu.NOEMBED],[Lu.NOSCRIPT,Iu.NOSCRIPT],[Lu.OBJECT,Iu.OBJECT],[Lu.OL,Iu.OL],[Lu.OPTGROUP,Iu.OPTGROUP],[Lu.OPTION,Iu.OPTION],[Lu.P,Iu.P],[Lu.PARAM,Iu.PARAM],[Lu.PLAINTEXT,Iu.PLAINTEXT],[Lu.PRE,Iu.PRE],[Lu.RB,Iu.RB],[Lu.RP,Iu.RP],[Lu.RT,Iu.RT],[Lu.RTC,Iu.RTC],[Lu.RUBY,Iu.RUBY],[Lu.S,Iu.S],[Lu.SCRIPT,Iu.SCRIPT],[Lu.SEARCH,Iu.SEARCH],[Lu.SECTION,Iu.SECTION],[Lu.SELECT,Iu.SELECT],[Lu.SOURCE,Iu.SOURCE],[Lu.SMALL,Iu.SMALL],[Lu.SPAN,Iu.SPAN],[Lu.STRIKE,Iu.STRIKE],[Lu.STRONG,Iu.STRONG],[Lu.STYLE,Iu.STYLE],[Lu.SUB,Iu.SUB],[Lu.SUMMARY,Iu.SUMMARY],[Lu.SUP,Iu.SUP],[Lu.TABLE,Iu.TABLE],[Lu.TBODY,Iu.TBODY],[Lu.TEMPLATE,Iu.TEMPLATE],[Lu.TEXTAREA,Iu.TEXTAREA],[Lu.TFOOT,Iu.TFOOT],[Lu.TD,Iu.TD],[Lu.TH,Iu.TH],[Lu.THEAD,Iu.THEAD],[Lu.TITLE,Iu.TITLE],[Lu.TR,Iu.TR],[Lu.TRACK,Iu.TRACK],[Lu.TT,Iu.TT],[Lu.U,Iu.U],[Lu.UL,Iu.UL],[Lu.SVG,Iu.SVG],[Lu.VAR,Iu.VAR],[Lu.WBR,Iu.WBR],[Lu.XMP,Iu.XMP]]);function Nu(e){var t;return(t=Ou.get(e))!==null&&t!==void 0?t:Iu.UNKNOWN}const Pu=Iu;const Mu={[Du.HTML]:new Set([Pu.ADDRESS,Pu.APPLET,Pu.AREA,Pu.ARTICLE,Pu.ASIDE,Pu.BASE,Pu.BASEFONT,Pu.BGSOUND,Pu.BLOCKQUOTE,Pu.BODY,Pu.BR,Pu.BUTTON,Pu.CAPTION,Pu.CENTER,Pu.COL,Pu.COLGROUP,Pu.DD,Pu.DETAILS,Pu.DIR,Pu.DIV,Pu.DL,Pu.DT,Pu.EMBED,Pu.FIELDSET,Pu.FIGCAPTION,Pu.FIGURE,Pu.FOOTER,Pu.FORM,Pu.FRAME,Pu.FRAMESET,Pu.H1,Pu.H2,Pu.H3,Pu.H4,Pu.H5,Pu.H6,Pu.HEAD,Pu.HEADER,Pu.HGROUP,Pu.HR,Pu.HTML,Pu.IFRAME,Pu.IMG,Pu.INPUT,Pu.LI,Pu.LINK,Pu.LISTING,Pu.MAIN,Pu.MARQUEE,Pu.MENU,Pu.META,Pu.NAV,Pu.NOEMBED,Pu.NOFRAMES,Pu.NOSCRIPT,Pu.OBJECT,Pu.OL,Pu.P,Pu.PARAM,Pu.PLAINTEXT,Pu.PRE,Pu.SCRIPT,Pu.SECTION,Pu.SELECT,Pu.SOURCE,Pu.STYLE,Pu.SUMMARY,Pu.TABLE,Pu.TBODY,Pu.TD,Pu.TEMPLATE,Pu.TEXTAREA,Pu.TFOOT,Pu.TH,Pu.THEAD,Pu.TITLE,Pu.TR,Pu.TRACK,Pu.UL,Pu.WBR,Pu.XMP]),[Du.MATHML]:new Set([Pu.MI,Pu.MO,Pu.MN,Pu.MS,Pu.MTEXT,Pu.ANNOTATION_XML]),[Du.SVG]:new Set([Pu.TITLE,Pu.FOREIGN_OBJECT,Pu.DESC]),[Du.XLINK]:new Set,[Du.XML]:new Set,[Du.XMLNS]:new Set};const Uu=new Set([Pu.H1,Pu.H2,Pu.H3,Pu.H4,Pu.H5,Pu.H6]);var qu;(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["AMBIGUOUS_AMPERSAND"]=72]="AMBIGUOUS_AMPERSAND"})(qu||(qu={}));const Bu={DATA:qu.DATA,RCDATA:qu.RCDATA,RAWTEXT:qu.RAWTEXT,SCRIPT_DATA:qu.SCRIPT_DATA,PLAINTEXT:qu.PLAINTEXT,CDATA_SECTION:qu.CDATA_SECTION};function Fu(e){return e>=gu.DIGIT_0&&e<=gu.DIGIT_9}function Hu(e){return e>=gu.LATIN_CAPITAL_A&&e<=gu.LATIN_CAPITAL_Z}function zu(e){return e>=gu.LATIN_SMALL_A&&e<=gu.LATIN_SMALL_Z}function ju(e){return zu(e)||Hu(e)}function Gu(e){return ju(e)||Fu(e)}function Vu(e){return e+32}function Yu(e){return e===gu.SPACE||e===gu.LINE_FEED||e===gu.TABULATION||e===gu.FORM_FEED}function Wu(e){return Yu(e)||e===gu.SOLIDUS||e===gu.GREATER_THAN_SIGN}function Xu(e){if(e===gu.NULL){return vu.nullCharacterReference}else if(e>1114111){return vu.characterReferenceOutsideUnicodeRange}else if(ku(e)){return vu.surrogateCharacterReference}else if(Tu(e)){return vu.noncharacterCharacterReference}else if(Eu(e)||e===gu.CARRIAGE_RETURN){return vu.controlCharacterReference}return null}class Ku{constructor(e,t){this.options=e;this.handler=t;this.paused=false;this.inLoop=false;this.inForeignNode=false;this.lastStartTagName="";this.active=false;this.state=qu.DATA;this.returnState=qu.DATA;this.entityStartPos=0;this.consumedAfterSnapshot=-1;this.currentCharacterToken=null;this.currentToken=null;this.currentAttr={name:"",value:""};this.preprocessor=new xu(t);this.currentLocation=this.getCurrentLocation(-1);this.entityDecoder=new w(o,((e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1;this._flushCodePointConsumedAsCharacterReference(e)}),t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(vu.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(vu.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{const t=Xu(e);if(t)this._err(t,1)}}:undefined)}_err(e,t=0){var n,i;(i=(n=this.handler).onParseError)===null||i===void 0?void 0:i.call(n,this.preprocessor.getError(e,t))}getCurrentLocation(e){if(!this.options.sourceCodeLocationInfo){return null}return{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}}_runParsingLoop(){if(this.inLoop)return;this.inLoop=true;while(this.active&&!this.paused){this.consumedAfterSnapshot=0;const e=this._consume();if(!this._ensureHibernation()){this._callState(e)}}this.inLoop=false}pause(){this.paused=true}resume(e){if(!this.paused){throw new Error("Parser was already resumed")}this.paused=false;if(this.inLoop)return;this._runParsingLoop();if(!this.paused){e===null||e===void 0?void 0:e()}}write(e,t,n){this.active=true;this.preprocessor.write(e,t);this._runParsingLoop();if(!this.paused){n===null||n===void 0?void 0:n()}}insertHtmlAtCurrentPos(e){this.active=true;this.preprocessor.insertHtmlAtCurrentPos(e);this._runParsingLoop()}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){this.preprocessor.retreat(this.consumedAfterSnapshot);this.consumedAfterSnapshot=0;this.active=false;return true}return false}_consume(){this.consumedAfterSnapshot++;return this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++){this.preprocessor.advance()}}_consumeSequenceIfMatch(e,t){if(this.preprocessor.startsWith(e,t)){this._advanceBy(e.length-1);return true}return false}_createStartTagToken(){this.currentToken={type:Au.START_TAG,tagName:"",tagID:Iu.UNKNOWN,selfClosing:false,ackSelfClosing:false,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Au.END_TAG,tagName:"",tagID:Iu.UNKNOWN,selfClosing:false,ackSelfClosing:false,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:Au.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:Au.DOCTYPE,name:e,forceQuirks:false,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""};this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e;var t;const n=this.currentToken;if(Cu(n,this.currentAttr.name)===null){n.attrs.push(this.currentAttr);if(n.location&&this.currentLocation){const i=(e=(t=n.location).attrs)!==null&&e!==void 0?e:t.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation;this._leaveAttrValue()}}else{this._err(vu.duplicateAttribute)}}_leaveAttrValue(){if(this.currentLocation){this.currentLocation.endLine=this.preprocessor.line;this.currentLocation.endCol=this.preprocessor.col;this.currentLocation.endOffset=this.preprocessor.offset}}prepareToken(e){this._emitCurrentCharacterToken(e.location);this.currentToken=null;if(e.location){e.location.endLine=this.preprocessor.line;e.location.endCol=this.preprocessor.col+1;e.location.endOffset=this.preprocessor.offset+1}this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const e=this.currentToken;this.prepareToken(e);e.tagID=Nu(e.tagName);if(e.type===Au.START_TAG){this.lastStartTagName=e.tagName;this.handler.onStartTag(e)}else{if(e.attrs.length>0){this._err(vu.endTagWithAttributes)}if(e.selfClosing){this._err(vu.endTagWithTrailingSolidus)}this.handler.onEndTag(e)}this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e);this.handler.onComment(e);this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e);this.handler.onDoctype(e);this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){if(e&&this.currentCharacterToken.location){this.currentCharacterToken.location.endLine=e.startLine;this.currentCharacterToken.location.endCol=e.startCol;this.currentCharacterToken.location.endOffset=e.startOffset}switch(this.currentCharacterToken.type){case Au.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Au.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Au.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);if(e){e.endLine=e.startLine;e.endCol=e.startCol;e.endOffset=e.startOffset}this._emitCurrentCharacterToken(e);this.handler.onEof({type:Au.EOF,location:e});this.active=false}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type===e){this.currentCharacterToken.chars+=t;return}else{this.currentLocation=this.getCurrentLocation(0);this._emitCurrentCharacterToken(this.currentLocation);this.preprocessor.dropParsedChunk()}}this._createCharacterToken(e,t)}_emitCodePoint(e){const t=Yu(e)?Au.WHITESPACE_CHARACTER:e===gu.NULL?Au.NULL_CHARACTER:Au.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(Au.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state;this.state=qu.CHARACTER_REFERENCE;this.entityStartPos=this.preprocessor.pos;this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?y.Attribute:y.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===qu.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===qu.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===qu.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){if(this._isCharacterReferenceInAttribute()){this.currentAttr.value+=String.fromCodePoint(e)}else{this._emitCodePoint(e)}}_callState(e){switch(this.state){case qu.DATA:{this._stateData(e);break}case qu.RCDATA:{this._stateRcdata(e);break}case qu.RAWTEXT:{this._stateRawtext(e);break}case qu.SCRIPT_DATA:{this._stateScriptData(e);break}case qu.PLAINTEXT:{this._statePlaintext(e);break}case qu.TAG_OPEN:{this._stateTagOpen(e);break}case qu.END_TAG_OPEN:{this._stateEndTagOpen(e);break}case qu.TAG_NAME:{this._stateTagName(e);break}case qu.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(e);break}case qu.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(e);break}case qu.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(e);break}case qu.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(e);break}case qu.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(e);break}case qu.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(e);break}case qu.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(e);break}case qu.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(e);break}case qu.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(e);break}case qu.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(e);break}case qu.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(e);break}case qu.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(e);break}case qu.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(e);break}case qu.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(e);break}case qu.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(e);break}case qu.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(e);break}case qu.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(e);break}case qu.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(e);break}case qu.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(e);break}case qu.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(e);break}case qu.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(e);break}case qu.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(e);break}case qu.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(e);break}case qu.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(e);break}case qu.ATTRIBUTE_NAME:{this._stateAttributeName(e);break}case qu.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(e);break}case qu.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(e);break}case qu.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(e);break}case qu.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(e);break}case qu.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(e);break}case qu.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(e);break}case qu.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(e);break}case qu.BOGUS_COMMENT:{this._stateBogusComment(e);break}case qu.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(e);break}case qu.COMMENT_START:{this._stateCommentStart(e);break}case qu.COMMENT_START_DASH:{this._stateCommentStartDash(e);break}case qu.COMMENT:{this._stateComment(e);break}case qu.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(e);break}case qu.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(e);break}case qu.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(e);break}case qu.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(e);break}case qu.COMMENT_END_DASH:{this._stateCommentEndDash(e);break}case qu.COMMENT_END:{this._stateCommentEnd(e);break}case qu.COMMENT_END_BANG:{this._stateCommentEndBang(e);break}case qu.DOCTYPE:{this._stateDoctype(e);break}case qu.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(e);break}case qu.DOCTYPE_NAME:{this._stateDoctypeName(e);break}case qu.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(e);break}case qu.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(e);break}case qu.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(e);break}case qu.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(e);break}case qu.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(e);break}case qu.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(e);break}case qu.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break}case qu.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(e);break}case qu.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(e);break}case qu.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(e);break}case qu.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(e);break}case qu.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(e);break}case qu.BOGUS_DOCTYPE:{this._stateBogusDoctype(e);break}case qu.CDATA_SECTION:{this._stateCdataSection(e);break}case qu.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(e);break}case qu.CDATA_SECTION_END:{this._stateCdataSectionEnd(e);break}case qu.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case qu.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(e);break}default:{throw new Error("Unknown state")}}}_stateData(e){switch(e){case gu.LESS_THAN_SIGN:{this.state=qu.TAG_OPEN;break}case gu.AMPERSAND:{this._startCharacterReference();break}case gu.NULL:{this._err(vu.unexpectedNullCharacter);this._emitCodePoint(e);break}case gu.EOF:{this._emitEOFToken();break}default:{this._emitCodePoint(e)}}}_stateRcdata(e){switch(e){case gu.AMPERSAND:{this._startCharacterReference();break}case gu.LESS_THAN_SIGN:{this.state=qu.RCDATA_LESS_THAN_SIGN;break}case gu.NULL:{this._err(vu.unexpectedNullCharacter);this._emitChars(mu);break}case gu.EOF:{this._emitEOFToken();break}default:{this._emitCodePoint(e)}}}_stateRawtext(e){switch(e){case gu.LESS_THAN_SIGN:{this.state=qu.RAWTEXT_LESS_THAN_SIGN;break}case gu.NULL:{this._err(vu.unexpectedNullCharacter);this._emitChars(mu);break}case gu.EOF:{this._emitEOFToken();break}default:{this._emitCodePoint(e)}}}_stateScriptData(e){switch(e){case gu.LESS_THAN_SIGN:{this.state=qu.SCRIPT_DATA_LESS_THAN_SIGN;break}case gu.NULL:{this._err(vu.unexpectedNullCharacter);this._emitChars(mu);break}case gu.EOF:{this._emitEOFToken();break}default:{this._emitCodePoint(e)}}}_statePlaintext(e){switch(e){case gu.NULL:{this._err(vu.unexpectedNullCharacter);this._emitChars(mu);break}case gu.EOF:{this._emitEOFToken();break}default:{this._emitCodePoint(e)}}}_stateTagOpen(e){if(ju(e)){this._createStartTagToken();this.state=qu.TAG_NAME;this._stateTagName(e)}else switch(e){case gu.EXCLAMATION_MARK:{this.state=qu.MARKUP_DECLARATION_OPEN;break}case gu.SOLIDUS:{this.state=qu.END_TAG_OPEN;break}case gu.QUESTION_MARK:{this._err(vu.unexpectedQuestionMarkInsteadOfTagName);this._createCommentToken(1);this.state=qu.BOGUS_COMMENT;this._stateBogusComment(e);break}case gu.EOF:{this._err(vu.eofBeforeTagName);this._emitChars("<");this._emitEOFToken();break}default:{this._err(vu.invalidFirstCharacterOfTagName);this._emitChars("<");this.state=qu.DATA;this._stateData(e)}}}_stateEndTagOpen(e){if(ju(e)){this._createEndTagToken();this.state=qu.TAG_NAME;this._stateTagName(e)}else switch(e){case gu.GREATER_THAN_SIGN:{this._err(vu.missingEndTagName);this.state=qu.DATA;break}case gu.EOF:{this._err(vu.eofBeforeTagName);this._emitChars("</");this._emitEOFToken();break}default:{this._err(vu.invalidFirstCharacterOfTagName);this._createCommentToken(2);this.state=qu.BOGUS_COMMENT;this._stateBogusComment(e)}}}_stateTagName(e){const t=this.currentToken;switch(e){case gu.SPACE:case gu.LINE_FEED:case gu.TABULATION:case gu.FORM_FEED:{this.state=qu.BEFORE_ATTRIBUTE_NAME;break}case gu.SOLIDUS:{this.state=qu.SELF_CLOSING_START_TAG;break}case gu.GREATER_THAN_SIGN:{this.state=qu.DATA;this.emitCurrentTagToken();break}case gu.NULL:{this._err(vu.unexpectedNullCharacter);t.tagName+=mu;break}case gu.EOF:{this._err(vu.eofInTag);this._emitEOFToken();break}default:{t.tagName+=String.fromCodePoint(Hu(e)?Vu(e):e)}}}_stateRcdataLessThanSign(e){if(e===gu.SOLIDUS){this.state=qu.RCDATA_END_TAG_OPEN}else{this._emitChars("<");this.state=qu.RCDATA;this._stateRcdata(e)}}_stateRcdataEndTagOpen(e){if(ju(e)){this.state=qu.RCDATA_END_TAG_NAME;this._stateRcdataEndTagName(e)}else{this._emitChars("</");this.state=qu.RCDATA;this._stateRcdata(e)}}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,false)){return!this._ensureHibernation()}this._createEndTagToken();const t=this.currentToken;t.tagName=this.lastStartTagName;const n=this.preprocessor.peek(this.lastStartTagName.length);switch(n){case gu.SPACE:case gu.LINE_FEED:case gu.TABULATION:case gu.FORM_FEED:{this._advanceBy(this.lastStartTagName.length);this.state=qu.BEFORE_ATTRIBUTE_NAME;return false}case gu.SOLIDUS:{this._advanceBy(this.lastStartTagName.length);this.state=qu.SELF_CLOSING_START_TAG;return false}case gu.GREATER_THAN_SIGN:{this._advanceBy(this.lastStartTagName.length);this.emitCurrentTagToken();this.state=qu.DATA;return false}default:{return!this._ensureHibernation()}}}_stateRcdataEndTagName(e){if(this.handleSpecialEndTag(e)){this._emitChars("</");this.state=qu.RCDATA;this._stateRcdata(e)}}_stateRawtextLessThanSign(e){if(e===gu.SOLIDUS){this.state=qu.RAWTEXT_END_TAG_OPEN}else{this._emitChars("<");this.state=qu.RAWTEXT;this._stateRawtext(e)}}_stateRawtextEndTagOpen(e){if(ju(e)){this.state=qu.RAWTEXT_END_TAG_NAME;this._stateRawtextEndTagName(e)}else{this._emitChars("</");this.state=qu.RAWTEXT;this._stateRawtext(e)}}_stateRawtextEndTagName(e){if(this.handleSpecialEndTag(e)){this._emitChars("</");this.state=qu.RAWTEXT;this._stateRawtext(e)}}_stateScriptDataLessThanSign(e){switch(e){case gu.SOLIDUS:{this.state=qu.SCRIPT_DATA_END_TAG_OPEN;break}case gu.EXCLAMATION_MARK:{this.state=qu.SCRIPT_DATA_ESCAPE_START;this._emitChars("<!");break}default:{this._emitChars("<");this.state=qu.SCRIPT_DATA;this._stateScriptData(e)}}}_stateScriptDataEndTagOpen(e){if(ju(e)){this.state=qu.SCRIPT_DATA_END_TAG_NAME;this._stateScriptDataEndTagName(e)}else{this._emitChars("</");this.state=qu.SCRIPT_DATA;this._stateScriptData(e)}}_stateScriptDataEndTagName(e){if(this.handleSpecialEndTag(e)){this._emitChars("</");this.state=qu.SCRIPT_DATA;this._stateScriptData(e)}}_stateScriptDataEscapeStart(e){if(e===gu.HYPHEN_MINUS){this.state=qu.SCRIPT_DATA_ESCAPE_START_DASH;this._emitChars("-")}else{this.state=qu.SCRIPT_DATA;this._stateScriptData(e)}}_stateScriptDataEscapeStartDash(e){if(e===gu.HYPHEN_MINUS){this.state=qu.SCRIPT_DATA_ESCAPED_DASH_DASH;this._emitChars("-")}else{this.state=qu.SCRIPT_DATA;this._stateScriptData(e)}}_stateScriptDataEscaped(e){switch(e){case gu.HYPHEN_MINUS:{this.state=qu.SCRIPT_DATA_ESCAPED_DASH;this._emitChars("-");break}case gu.LESS_THAN_SIGN:{this.state=qu.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case gu.NULL:{this._err(vu.unexpectedNullCharacter);this._emitChars(mu);break}case gu.EOF:{this._err(vu.eofInScriptHtmlCommentLikeText);this._emitEOFToken();break}default:{this._emitCodePoint(e)}}}_stateScriptDataEscapedDash(e){switch(e){case gu.HYPHEN_MINUS:{this.state=qu.SCRIPT_DATA_ESCAPED_DASH_DASH;this._emitChars("-");break}case gu.LESS_THAN_SIGN:{this.state=qu.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case gu.NULL:{this._err(vu.unexpectedNullCharacter);this.state=qu.SCRIPT_DATA_ESCAPED;this._emitChars(mu);break}case gu.EOF:{this._err(vu.eofInScriptHtmlCommentLikeText);this._emitEOFToken();break}default:{this.state=qu.SCRIPT_DATA_ESCAPED;this._emitCodePoint(e)}}}_stateScriptDataEscapedDashDash(e){switch(e){case gu.HYPHEN_MINUS:{this._emitChars("-");break}case gu.LESS_THAN_SIGN:{this.state=qu.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case gu.GREATER_THAN_SIGN:{this.state=qu.SCRIPT_DATA;this._emitChars(">");break}case gu.NULL:{this._err(vu.unexpectedNullCharacter);this.state=qu.SCRIPT_DATA_ESCAPED;this._emitChars(mu);break}case gu.EOF:{this._err(vu.eofInScriptHtmlCommentLikeText);this._emitEOFToken();break}default:{this.state=qu.SCRIPT_DATA_ESCAPED;this._emitCodePoint(e)}}}_stateScriptDataEscapedLessThanSign(e){if(e===gu.SOLIDUS){this.state=qu.SCRIPT_DATA_ESCAPED_END_TAG_OPEN}else if(ju(e)){this._emitChars("<");this.state=qu.SCRIPT_DATA_DOUBLE_ESCAPE_START;this._stateScriptDataDoubleEscapeStart(e)}else{this._emitChars("<");this.state=qu.SCRIPT_DATA_ESCAPED;this._stateScriptDataEscaped(e)}}_stateScriptDataEscapedEndTagOpen(e){if(ju(e)){this.state=qu.SCRIPT_DATA_ESCAPED_END_TAG_NAME;this._stateScriptDataEscapedEndTagName(e)}else{this._emitChars("</");this.state=qu.SCRIPT_DATA_ESCAPED;this._stateScriptDataEscaped(e)}}_stateScriptDataEscapedEndTagName(e){if(this.handleSpecialEndTag(e)){this._emitChars("</");this.state=qu.SCRIPT_DATA_ESCAPED;this._stateScriptDataEscaped(e)}}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(bu.SCRIPT,false)&&Wu(this.preprocessor.peek(bu.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e<bu.SCRIPT.length;e++){this._emitCodePoint(this._consume())}this.state=qu.SCRIPT_DATA_DOUBLE_ESCAPED}else if(!this._ensureHibernation()){this.state=qu.SCRIPT_DATA_ESCAPED;this._stateScriptDataEscaped(e)}}_stateScriptDataDoubleEscaped(e){switch(e){case gu.HYPHEN_MINUS:{this.state=qu.SCRIPT_DATA_DOUBLE_ESCAPED_DASH;this._emitChars("-");break}case gu.LESS_THAN_SIGN:{this.state=qu.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN;this._emitChars("<");break}case gu.NULL:{this._err(vu.unexpectedNullCharacter);this._emitChars(mu);break}case gu.EOF:{this._err(vu.eofInScriptHtmlCommentLikeText);this._emitEOFToken();break}default:{this._emitCodePoint(e)}}}_stateScriptDataDoubleEscapedDash(e){switch(e){case gu.HYPHEN_MINUS:{this.state=qu.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH;this._emitChars("-");break}case gu.LESS_THAN_SIGN:{this.state=qu.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN;this._emitChars("<");break}case gu.NULL:{this._err(vu.unexpectedNullCharacter);this.state=qu.SCRIPT_DATA_DOUBLE_ESCAPED;this._emitChars(mu);break}case gu.EOF:{this._err(vu.eofInScriptHtmlCommentLikeText);this._emitEOFToken();break}default:{this.state=qu.SCRIPT_DATA_DOUBLE_ESCAPED;this._emitCodePoint(e)}}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case gu.HYPHEN_MINUS:{this._emitChars("-");break}case gu.LESS_THAN_SIGN:{this.state=qu.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN;this._emitChars("<");break}case gu.GREATER_THAN_SIGN:{this.state=qu.SCRIPT_DATA;this._emitChars(">");break}case gu.NULL:{this._err(vu.unexpectedNullCharacter);this.state=qu.SCRIPT_DATA_DOUBLE_ESCAPED;this._emitChars(mu);break}case gu.EOF:{this._err(vu.eofInScriptHtmlCommentLikeText);this._emitEOFToken();break}default:{this.state=qu.SCRIPT_DATA_DOUBLE_ESCAPED;this._emitCodePoint(e)}}}_stateScriptDataDoubleEscapedLessThanSign(e){if(e===gu.SOLIDUS){this.state=qu.SCRIPT_DATA_DOUBLE_ESCAPE_END;this._emitChars("/")}else{this.state=qu.SCRIPT_DATA_DOUBLE_ESCAPED;this._stateScriptDataDoubleEscaped(e)}}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(bu.SCRIPT,false)&&Wu(this.preprocessor.peek(bu.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e<bu.SCRIPT.length;e++){this._emitCodePoint(this._consume())}this.state=qu.SCRIPT_DATA_ESCAPED}else if(!this._ensureHibernation()){this.state=qu.SCRIPT_DATA_DOUBLE_ESCAPED;this._stateScriptDataDoubleEscaped(e)}}_stateBeforeAttributeName(e){switch(e){case gu.SPACE:case gu.LINE_FEED:case gu.TABULATION:case gu.FORM_FEED:{break}case gu.SOLIDUS:case gu.GREATER_THAN_SIGN:case gu.EOF:{this.state=qu.AFTER_ATTRIBUTE_NAME;this._stateAfterAttributeName(e);break}case gu.EQUALS_SIGN:{this._err(vu.unexpectedEqualsSignBeforeAttributeName);this._createAttr("=");this.state=qu.ATTRIBUTE_NAME;break}default:{this._createAttr("");this.state=qu.ATTRIBUTE_NAME;this._stateAttributeName(e)}}}_stateAttributeName(e){switch(e){case gu.SPACE:case gu.LINE_FEED:case gu.TABULATION:case gu.FORM_FEED:case gu.SOLIDUS:case gu.GREATER_THAN_SIGN:case gu.EOF:{this._leaveAttrName();this.state=qu.AFTER_ATTRIBUTE_NAME;this._stateAfterAttributeName(e);break}case gu.EQUALS_SIGN:{this._leaveAttrName();this.state=qu.BEFORE_ATTRIBUTE_VALUE;break}case gu.QUOTATION_MARK:case gu.APOSTROPHE:case gu.LESS_THAN_SIGN:{this._err(vu.unexpectedCharacterInAttributeName);this.currentAttr.name+=String.fromCodePoint(e);break}case gu.NULL:{this._err(vu.unexpectedNullCharacter);this.currentAttr.name+=mu;break}default:{this.currentAttr.name+=String.fromCodePoint(Hu(e)?Vu(e):e)}}}_stateAfterAttributeName(e){switch(e){case gu.SPACE:case gu.LINE_FEED:case gu.TABULATION:case gu.FORM_FEED:{break}case gu.SOLIDUS:{this.state=qu.SELF_CLOSING_START_TAG;break}case gu.EQUALS_SIGN:{this.state=qu.BEFORE_ATTRIBUTE_VALUE;break}case gu.GREATER_THAN_SIGN:{this.state=qu.DATA;this.emitCurrentTagToken();break}case gu.EOF:{this._err(vu.eofInTag);this._emitEOFToken();break}default:{this._createAttr("");this.state=qu.ATTRIBUTE_NAME;this._stateAttributeName(e)}}}_stateBeforeAttributeValue(e){switch(e){case gu.SPACE:case gu.LINE_FEED:case gu.TABULATION:case gu.FORM_FEED:{break}case gu.QUOTATION_MARK:{this.state=qu.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case gu.APOSTROPHE:{this.state=qu.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case gu.GREATER_THAN_SIGN:{this._err(vu.missingAttributeValue);this.state=qu.DATA;this.emitCurrentTagToken();break}default:{this.state=qu.ATTRIBUTE_VALUE_UNQUOTED;this._stateAttributeValueUnquoted(e)}}}_stateAttributeValueDoubleQuoted(e){switch(e){case gu.QUOTATION_MARK:{this.state=qu.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case gu.AMPERSAND:{this._startCharacterReference();break}case gu.NULL:{this._err(vu.unexpectedNullCharacter);this.currentAttr.value+=mu;break}case gu.EOF:{this._err(vu.eofInTag);this._emitEOFToken();break}default:{this.currentAttr.value+=String.fromCodePoint(e)}}}_stateAttributeValueSingleQuoted(e){switch(e){case gu.APOSTROPHE:{this.state=qu.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case gu.AMPERSAND:{this._startCharacterReference();break}case gu.NULL:{this._err(vu.unexpectedNullCharacter);this.currentAttr.value+=mu;break}case gu.EOF:{this._err(vu.eofInTag);this._emitEOFToken();break}default:{this.currentAttr.value+=String.fromCodePoint(e)}}}_stateAttributeValueUnquoted(e){switch(e){case gu.SPACE:case gu.LINE_FEED:case gu.TABULATION:case gu.FORM_FEED:{this._leaveAttrValue();this.state=qu.BEFORE_ATTRIBUTE_NAME;break}case gu.AMPERSAND:{this._startCharacterReference();break}case gu.GREATER_THAN_SIGN:{this._leaveAttrValue();this.state=qu.DATA;this.emitCurrentTagToken();break}case gu.NULL:{this._err(vu.unexpectedNullCharacter);this.currentAttr.value+=mu;break}case gu.QUOTATION_MARK:case gu.APOSTROPHE:case gu.LESS_THAN_SIGN:case gu.EQUALS_SIGN:case gu.GRAVE_ACCENT:{this._err(vu.unexpectedCharacterInUnquotedAttributeValue);this.currentAttr.value+=String.fromCodePoint(e);break}case gu.EOF:{this._err(vu.eofInTag);this._emitEOFToken();break}default:{this.currentAttr.value+=String.fromCodePoint(e)}}}_stateAfterAttributeValueQuoted(e){switch(e){case gu.SPACE:case gu.LINE_FEED:case gu.TABULATION:case gu.FORM_FEED:{this._leaveAttrValue();this.state=qu.BEFORE_ATTRIBUTE_NAME;break}case gu.SOLIDUS:{this._leaveAttrValue();this.state=qu.SELF_CLOSING_START_TAG;break}case gu.GREATER_THAN_SIGN:{this._leaveAttrValue();this.state=qu.DATA;this.emitCurrentTagToken();break}case gu.EOF:{this._err(vu.eofInTag);this._emitEOFToken();break}default:{this._err(vu.missingWhitespaceBetweenAttributes);this.state=qu.BEFORE_ATTRIBUTE_NAME;this._stateBeforeAttributeName(e)}}}_stateSelfClosingStartTag(e){switch(e){case gu.GREATER_THAN_SIGN:{const e=this.currentToken;e.selfClosing=true;this.state=qu.DATA;this.emitCurrentTagToken();break}case gu.EOF:{this._err(vu.eofInTag);this._emitEOFToken();break}default:{this._err(vu.unexpectedSolidusInTag);this.state=qu.BEFORE_ATTRIBUTE_NAME;this._stateBeforeAttributeName(e)}}}_stateBogusComment(e){const t=this.currentToken;switch(e){case gu.GREATER_THAN_SIGN:{this.state=qu.DATA;this.emitCurrentComment(t);break}case gu.EOF:{this.emitCurrentComment(t);this._emitEOFToken();break}case gu.NULL:{this._err(vu.unexpectedNullCharacter);t.data+=mu;break}default:{t.data+=String.fromCodePoint(e)}}}_stateMarkupDeclarationOpen(e){if(this._consumeSequenceIfMatch(bu.DASH_DASH,true)){this._createCommentToken(bu.DASH_DASH.length+1);this.state=qu.COMMENT_START}else if(this._consumeSequenceIfMatch(bu.DOCTYPE,false)){this.currentLocation=this.getCurrentLocation(bu.DOCTYPE.length+1);this.state=qu.DOCTYPE}else if(this._consumeSequenceIfMatch(bu.CDATA_START,true)){if(this.inForeignNode){this.state=qu.CDATA_SECTION}else{this._err(vu.cdataInHtmlContent);this._createCommentToken(bu.CDATA_START.length+1);this.currentToken.data="[CDATA[";this.state=qu.BOGUS_COMMENT}}else if(!this._ensureHibernation()){this._err(vu.incorrectlyOpenedComment);this._createCommentToken(2);this.state=qu.BOGUS_COMMENT;this._stateBogusComment(e)}}_stateCommentStart(e){switch(e){case gu.HYPHEN_MINUS:{this.state=qu.COMMENT_START_DASH;break}case gu.GREATER_THAN_SIGN:{this._err(vu.abruptClosingOfEmptyComment);this.state=qu.DATA;const e=this.currentToken;this.emitCurrentComment(e);break}default:{this.state=qu.COMMENT;this._stateComment(e)}}}_stateCommentStartDash(e){const t=this.currentToken;switch(e){case gu.HYPHEN_MINUS:{this.state=qu.COMMENT_END;break}case gu.GREATER_THAN_SIGN:{this._err(vu.abruptClosingOfEmptyComment);this.state=qu.DATA;this.emitCurrentComment(t);break}case gu.EOF:{this._err(vu.eofInComment);this.emitCurrentComment(t);this._emitEOFToken();break}default:{t.data+="-";this.state=qu.COMMENT;this._stateComment(e)}}}_stateComment(e){const t=this.currentToken;switch(e){case gu.HYPHEN_MINUS:{this.state=qu.COMMENT_END_DASH;break}case gu.LESS_THAN_SIGN:{t.data+="<";this.state=qu.COMMENT_LESS_THAN_SIGN;break}case gu.NULL:{this._err(vu.unexpectedNullCharacter);t.data+=mu;break}case gu.EOF:{this._err(vu.eofInComment);this.emitCurrentComment(t);this._emitEOFToken();break}default:{t.data+=String.fromCodePoint(e)}}}_stateCommentLessThanSign(e){const t=this.currentToken;switch(e){case gu.EXCLAMATION_MARK:{t.data+="!";this.state=qu.COMMENT_LESS_THAN_SIGN_BANG;break}case gu.LESS_THAN_SIGN:{t.data+="<";break}default:{this.state=qu.COMMENT;this._stateComment(e)}}}_stateCommentLessThanSignBang(e){if(e===gu.HYPHEN_MINUS){this.state=qu.COMMENT_LESS_THAN_SIGN_BANG_DASH}else{this.state=qu.COMMENT;this._stateComment(e)}}_stateCommentLessThanSignBangDash(e){if(e===gu.HYPHEN_MINUS){this.state=qu.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH}else{this.state=qu.COMMENT_END_DASH;this._stateCommentEndDash(e)}}_stateCommentLessThanSignBangDashDash(e){if(e!==gu.GREATER_THAN_SIGN&&e!==gu.EOF){this._err(vu.nestedComment)}this.state=qu.COMMENT_END;this._stateCommentEnd(e)}_stateCommentEndDash(e){const t=this.currentToken;switch(e){case gu.HYPHEN_MINUS:{this.state=qu.COMMENT_END;break}case gu.EOF:{this._err(vu.eofInComment);this.emitCurrentComment(t);this._emitEOFToken();break}default:{t.data+="-";this.state=qu.COMMENT;this._stateComment(e)}}}_stateCommentEnd(e){const t=this.currentToken;switch(e){case gu.GREATER_THAN_SIGN:{this.state=qu.DATA;this.emitCurrentComment(t);break}case gu.EXCLAMATION_MARK:{this.state=qu.COMMENT_END_BANG;break}case gu.HYPHEN_MINUS:{t.data+="-";break}case gu.EOF:{this._err(vu.eofInComment);this.emitCurrentComment(t);this._emitEOFToken();break}default:{t.data+="--";this.state=qu.COMMENT;this._stateComment(e)}}}_stateCommentEndBang(e){const t=this.currentToken;switch(e){case gu.HYPHEN_MINUS:{t.data+="--!";this.state=qu.COMMENT_END_DASH;break}case gu.GREATER_THAN_SIGN:{this._err(vu.incorrectlyClosedComment);this.state=qu.DATA;this.emitCurrentComment(t);break}case gu.EOF:{this._err(vu.eofInComment);this.emitCurrentComment(t);this._emitEOFToken();break}default:{t.data+="--!";this.state=qu.COMMENT;this._stateComment(e)}}}_stateDoctype(e){switch(e){case gu.SPACE:case gu.LINE_FEED:case gu.TABULATION:case gu.FORM_FEED:{this.state=qu.BEFORE_DOCTYPE_NAME;break}case gu.GREATER_THAN_SIGN:{this.state=qu.BEFORE_DOCTYPE_NAME;this._stateBeforeDoctypeName(e);break}case gu.EOF:{this._err(vu.eofInDoctype);this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=true;this.emitCurrentDoctype(e);this._emitEOFToken();break}default:{this._err(vu.missingWhitespaceBeforeDoctypeName);this.state=qu.BEFORE_DOCTYPE_NAME;this._stateBeforeDoctypeName(e)}}}_stateBeforeDoctypeName(e){if(Hu(e)){this._createDoctypeToken(String.fromCharCode(Vu(e)));this.state=qu.DOCTYPE_NAME}else switch(e){case gu.SPACE:case gu.LINE_FEED:case gu.TABULATION:case gu.FORM_FEED:{break}case gu.NULL:{this._err(vu.unexpectedNullCharacter);this._createDoctypeToken(mu);this.state=qu.DOCTYPE_NAME;break}case gu.GREATER_THAN_SIGN:{this._err(vu.missingDoctypeName);this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=true;this.emitCurrentDoctype(e);this.state=qu.DATA;break}case gu.EOF:{this._err(vu.eofInDoctype);this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=true;this.emitCurrentDoctype(e);this._emitEOFToken();break}default:{this._createDoctypeToken(String.fromCodePoint(e));this.state=qu.DOCTYPE_NAME}}}_stateDoctypeName(e){const t=this.currentToken;switch(e){case gu.SPACE:case gu.LINE_FEED:case gu.TABULATION:case gu.FORM_FEED:{this.state=qu.AFTER_DOCTYPE_NAME;break}case gu.GREATER_THAN_SIGN:{this.state=qu.DATA;this.emitCurrentDoctype(t);break}case gu.NULL:{this._err(vu.unexpectedNullCharacter);t.name+=mu;break}case gu.EOF:{this._err(vu.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{t.name+=String.fromCodePoint(Hu(e)?Vu(e):e)}}}_stateAfterDoctypeName(e){const t=this.currentToken;switch(e){case gu.SPACE:case gu.LINE_FEED:case gu.TABULATION:case gu.FORM_FEED:{break}case gu.GREATER_THAN_SIGN:{this.state=qu.DATA;this.emitCurrentDoctype(t);break}case gu.EOF:{this._err(vu.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{if(this._consumeSequenceIfMatch(bu.PUBLIC,false)){this.state=qu.AFTER_DOCTYPE_PUBLIC_KEYWORD}else if(this._consumeSequenceIfMatch(bu.SYSTEM,false)){this.state=qu.AFTER_DOCTYPE_SYSTEM_KEYWORD}else if(!this._ensureHibernation()){this._err(vu.invalidCharacterSequenceAfterDoctypeName);t.forceQuirks=true;this.state=qu.BOGUS_DOCTYPE;this._stateBogusDoctype(e)}}}}_stateAfterDoctypePublicKeyword(e){const t=this.currentToken;switch(e){case gu.SPACE:case gu.LINE_FEED:case gu.TABULATION:case gu.FORM_FEED:{this.state=qu.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case gu.QUOTATION_MARK:{this._err(vu.missingWhitespaceAfterDoctypePublicKeyword);t.publicId="";this.state=qu.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case gu.APOSTROPHE:{this._err(vu.missingWhitespaceAfterDoctypePublicKeyword);t.publicId="";this.state=qu.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case gu.GREATER_THAN_SIGN:{this._err(vu.missingDoctypePublicIdentifier);t.forceQuirks=true;this.state=qu.DATA;this.emitCurrentDoctype(t);break}case gu.EOF:{this._err(vu.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{this._err(vu.missingQuoteBeforeDoctypePublicIdentifier);t.forceQuirks=true;this.state=qu.BOGUS_DOCTYPE;this._stateBogusDoctype(e)}}}_stateBeforeDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case gu.SPACE:case gu.LINE_FEED:case gu.TABULATION:case gu.FORM_FEED:{break}case gu.QUOTATION_MARK:{t.publicId="";this.state=qu.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case gu.APOSTROPHE:{t.publicId="";this.state=qu.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case gu.GREATER_THAN_SIGN:{this._err(vu.missingDoctypePublicIdentifier);t.forceQuirks=true;this.state=qu.DATA;this.emitCurrentDoctype(t);break}case gu.EOF:{this._err(vu.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{this._err(vu.missingQuoteBeforeDoctypePublicIdentifier);t.forceQuirks=true;this.state=qu.BOGUS_DOCTYPE;this._stateBogusDoctype(e)}}}_stateDoctypePublicIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case gu.QUOTATION_MARK:{this.state=qu.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case gu.NULL:{this._err(vu.unexpectedNullCharacter);t.publicId+=mu;break}case gu.GREATER_THAN_SIGN:{this._err(vu.abruptDoctypePublicIdentifier);t.forceQuirks=true;this.emitCurrentDoctype(t);this.state=qu.DATA;break}case gu.EOF:{this._err(vu.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{t.publicId+=String.fromCodePoint(e)}}}_stateDoctypePublicIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case gu.APOSTROPHE:{this.state=qu.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case gu.NULL:{this._err(vu.unexpectedNullCharacter);t.publicId+=mu;break}case gu.GREATER_THAN_SIGN:{this._err(vu.abruptDoctypePublicIdentifier);t.forceQuirks=true;this.emitCurrentDoctype(t);this.state=qu.DATA;break}case gu.EOF:{this._err(vu.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{t.publicId+=String.fromCodePoint(e)}}}_stateAfterDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case gu.SPACE:case gu.LINE_FEED:case gu.TABULATION:case gu.FORM_FEED:{this.state=qu.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case gu.GREATER_THAN_SIGN:{this.state=qu.DATA;this.emitCurrentDoctype(t);break}case gu.QUOTATION_MARK:{this._err(vu.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers);t.systemId="";this.state=qu.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case gu.APOSTROPHE:{this._err(vu.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers);t.systemId="";this.state=qu.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case gu.EOF:{this._err(vu.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{this._err(vu.missingQuoteBeforeDoctypeSystemIdentifier);t.forceQuirks=true;this.state=qu.BOGUS_DOCTYPE;this._stateBogusDoctype(e)}}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const t=this.currentToken;switch(e){case gu.SPACE:case gu.LINE_FEED:case gu.TABULATION:case gu.FORM_FEED:{break}case gu.GREATER_THAN_SIGN:{this.emitCurrentDoctype(t);this.state=qu.DATA;break}case gu.QUOTATION_MARK:{t.systemId="";this.state=qu.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case gu.APOSTROPHE:{t.systemId="";this.state=qu.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case gu.EOF:{this._err(vu.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{this._err(vu.missingQuoteBeforeDoctypeSystemIdentifier);t.forceQuirks=true;this.state=qu.BOGUS_DOCTYPE;this._stateBogusDoctype(e)}}}_stateAfterDoctypeSystemKeyword(e){const t=this.currentToken;switch(e){case gu.SPACE:case gu.LINE_FEED:case gu.TABULATION:case gu.FORM_FEED:{this.state=qu.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case gu.QUOTATION_MARK:{this._err(vu.missingWhitespaceAfterDoctypeSystemKeyword);t.systemId="";this.state=qu.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case gu.APOSTROPHE:{this._err(vu.missingWhitespaceAfterDoctypeSystemKeyword);t.systemId="";this.state=qu.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case gu.GREATER_THAN_SIGN:{this._err(vu.missingDoctypeSystemIdentifier);t.forceQuirks=true;this.state=qu.DATA;this.emitCurrentDoctype(t);break}case gu.EOF:{this._err(vu.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{this._err(vu.missingQuoteBeforeDoctypeSystemIdentifier);t.forceQuirks=true;this.state=qu.BOGUS_DOCTYPE;this._stateBogusDoctype(e)}}}_stateBeforeDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case gu.SPACE:case gu.LINE_FEED:case gu.TABULATION:case gu.FORM_FEED:{break}case gu.QUOTATION_MARK:{t.systemId="";this.state=qu.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case gu.APOSTROPHE:{t.systemId="";this.state=qu.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case gu.GREATER_THAN_SIGN:{this._err(vu.missingDoctypeSystemIdentifier);t.forceQuirks=true;this.state=qu.DATA;this.emitCurrentDoctype(t);break}case gu.EOF:{this._err(vu.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{this._err(vu.missingQuoteBeforeDoctypeSystemIdentifier);t.forceQuirks=true;this.state=qu.BOGUS_DOCTYPE;this._stateBogusDoctype(e)}}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case gu.QUOTATION_MARK:{this.state=qu.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case gu.NULL:{this._err(vu.unexpectedNullCharacter);t.systemId+=mu;break}case gu.GREATER_THAN_SIGN:{this._err(vu.abruptDoctypeSystemIdentifier);t.forceQuirks=true;this.emitCurrentDoctype(t);this.state=qu.DATA;break}case gu.EOF:{this._err(vu.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{t.systemId+=String.fromCodePoint(e)}}}_stateDoctypeSystemIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case gu.APOSTROPHE:{this.state=qu.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case gu.NULL:{this._err(vu.unexpectedNullCharacter);t.systemId+=mu;break}case gu.GREATER_THAN_SIGN:{this._err(vu.abruptDoctypeSystemIdentifier);t.forceQuirks=true;this.emitCurrentDoctype(t);this.state=qu.DATA;break}case gu.EOF:{this._err(vu.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{t.systemId+=String.fromCodePoint(e)}}}_stateAfterDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case gu.SPACE:case gu.LINE_FEED:case gu.TABULATION:case gu.FORM_FEED:{break}case gu.GREATER_THAN_SIGN:{this.emitCurrentDoctype(t);this.state=qu.DATA;break}case gu.EOF:{this._err(vu.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{this._err(vu.unexpectedCharacterAfterDoctypeSystemIdentifier);this.state=qu.BOGUS_DOCTYPE;this._stateBogusDoctype(e)}}}_stateBogusDoctype(e){const t=this.currentToken;switch(e){case gu.GREATER_THAN_SIGN:{this.emitCurrentDoctype(t);this.state=qu.DATA;break}case gu.NULL:{this._err(vu.unexpectedNullCharacter);break}case gu.EOF:{this.emitCurrentDoctype(t);this._emitEOFToken();break}}}_stateCdataSection(e){switch(e){case gu.RIGHT_SQUARE_BRACKET:{this.state=qu.CDATA_SECTION_BRACKET;break}case gu.EOF:{this._err(vu.eofInCdata);this._emitEOFToken();break}default:{this._emitCodePoint(e)}}}_stateCdataSectionBracket(e){if(e===gu.RIGHT_SQUARE_BRACKET){this.state=qu.CDATA_SECTION_END}else{this._emitChars("]");this.state=qu.CDATA_SECTION;this._stateCdataSection(e)}}_stateCdataSectionEnd(e){switch(e){case gu.GREATER_THAN_SIGN:{this.state=qu.DATA;break}case gu.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:{this._emitChars("]]");this.state=qu.CDATA_SECTION;this._stateCdataSection(e)}}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0){if(this.preprocessor.lastChunkWritten){e=this.entityDecoder.end()}else{this.active=false;this.preprocessor.pos=this.preprocessor.html.length-1;this.consumedAfterSnapshot=0;this.preprocessor.endOfChunkHit=true;return}}if(e===0){this.preprocessor.pos=this.entityStartPos;this._flushCodePointConsumedAsCharacterReference(gu.AMPERSAND);this.state=!this._isCharacterReferenceInAttribute()&&Gu(this.preprocessor.peek(1))?qu.AMBIGUOUS_AMPERSAND:this.returnState}else{this.state=this.returnState}}_stateAmbiguousAmpersand(e){if(Gu(e)){this._flushCodePointConsumedAsCharacterReference(e)}else{if(e===gu.SEMICOLON){this._err(vu.unknownNamedCharacterReference)}this.state=this.returnState;this._callState(e)}}}const $u=new Set([Iu.DD,Iu.DT,Iu.LI,Iu.OPTGROUP,Iu.OPTION,Iu.P,Iu.RB,Iu.RP,Iu.RT,Iu.RTC]);const Qu=new Set([...$u,Iu.CAPTION,Iu.COLGROUP,Iu.TBODY,Iu.TD,Iu.TFOOT,Iu.TH,Iu.THEAD,Iu.TR]);const Zu=new Set([Iu.APPLET,Iu.CAPTION,Iu.HTML,Iu.MARQUEE,Iu.OBJECT,Iu.TABLE,Iu.TD,Iu.TEMPLATE,Iu.TH]);const Ju=new Set([...Zu,Iu.OL,Iu.UL]);const ef=new Set([...Zu,Iu.BUTTON]);const tf=new Set([Iu.ANNOTATION_XML,Iu.MI,Iu.MN,Iu.MO,Iu.MS,Iu.MTEXT]);const nf=new Set([Iu.DESC,Iu.FOREIGN_OBJECT,Iu.TITLE]);const rf=new Set([Iu.TR,Iu.TEMPLATE,Iu.HTML]);const sf=new Set([Iu.TBODY,Iu.TFOOT,Iu.THEAD,Iu.TEMPLATE,Iu.HTML]);const of=new Set([Iu.TABLE,Iu.TEMPLATE,Iu.HTML]);const af=new Set([Iu.TD,Iu.TH]);class lf{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t;this.handler=n;this.items=[];this.tagIDs=[];this.stackTop=-1;this.tmplCount=0;this.currentTagId=Iu.UNKNOWN;this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===Iu.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Du.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop];this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++;this.items[this.stackTop]=e;this.current=e;this.tagIDs[this.stackTop]=t;this.currentTagId=t;if(this._isInTemplate()){this.tmplCount++}this.handler.onItemPush(e,t,true)}pop(){const e=this.current;if(this.tmplCount>0&&this._isInTemplate()){this.tmplCount--}this.stackTop--;this._updateCurrentElement();this.handler.onItemPop(e,true)}replace(e,t){const n=this._indexOf(e);this.items[n]=t;if(n===this.stackTop){this.current=t}}insertAfter(e,t,n){const i=this._indexOf(e)+1;this.items.splice(i,0,t);this.tagIDs.splice(i,0,n);this.stackTop++;if(i===this.stackTop){this._updateCurrentElement()}this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do{t=this.tagIDs.lastIndexOf(e,t-1)}while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==Du.HTML);this.shortenToLength(t<0?0:t)}shortenToLength(e){while(this.stackTop>=e){const t=this.current;if(this.tmplCount>0&&this._isInTemplate()){this.tmplCount-=1}this.stackTop--;this._updateCurrentElement();this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){const t=this._indexOf(e);this.shortenToLength(t<0?0:t)}popUntilPopped(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(n<0?0:n)}popUntilNumberedHeaderPopped(){this.popUntilPopped(Uu,Du.HTML)}popUntilTableCellPopped(){this.popUntilPopped(af,Du.HTML)}popAllUpToHtmlElement(){this.tmplCount=0;this.shortenToLength(1)}_indexOfTagNames(e,t){for(let n=this.stackTop;n>=0;n--){if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t){return n}}return-1}clearBackTo(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(of,Du.HTML)}clearBackToTableBodyContext(){this.clearBackTo(sf,Du.HTML)}clearBackToTableRowContext(){this.clearBackTo(rf,Du.HTML)}remove(e){const t=this._indexOf(e);if(t>=0){if(t===this.stackTop){this.pop()}else{this.items.splice(t,1);this.tagIDs.splice(t,1);this.stackTop--;this._updateCurrentElement();this.handler.onItemPop(e,false)}}}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===Iu.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===Iu.HTML}hasInDynamicScope(e,t){for(let n=this.stackTop;n>=0;n--){const i=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case Du.HTML:{if(i===e)return true;if(t.has(i))return false;break}case Du.SVG:{if(nf.has(i))return false;break}case Du.MATHML:{if(tf.has(i))return false;break}}}return true}hasInScope(e){return this.hasInDynamicScope(e,Zu)}hasInListItemScope(e){return this.hasInDynamicScope(e,Ju)}hasInButtonScope(e){return this.hasInDynamicScope(e,ef)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case Du.HTML:{if(Uu.has(t))return true;if(Zu.has(t))return false;break}case Du.SVG:{if(nf.has(t))return false;break}case Du.MATHML:{if(tf.has(t))return false;break}}}return true}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){if(this.treeAdapter.getNamespaceURI(this.items[t])!==Du.HTML){continue}switch(this.tagIDs[t]){case e:{return true}case Iu.TABLE:case Iu.HTML:{return false}}}return true}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){if(this.treeAdapter.getNamespaceURI(this.items[e])!==Du.HTML){continue}switch(this.tagIDs[e]){case Iu.TBODY:case Iu.THEAD:case Iu.TFOOT:{return true}case Iu.TABLE:case Iu.HTML:{return false}}}return true}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){if(this.treeAdapter.getNamespaceURI(this.items[t])!==Du.HTML){continue}switch(this.tagIDs[t]){case e:{return true}case Iu.OPTION:case Iu.OPTGROUP:{break}default:{return false}}}return true}generateImpliedEndTags(){while($u.has(this.currentTagId)){this.pop()}}generateImpliedEndTagsThoroughly(){while(Qu.has(this.currentTagId)){this.pop()}}generateImpliedEndTagsWithExclusion(e){while(this.currentTagId!==e&&Qu.has(this.currentTagId)){this.pop()}}}const cf=3;var uf;(function(e){e[e["Marker"]=0]="Marker";e[e["Element"]=1]="Element"})(uf||(uf={}));const ff={type:uf.Marker};class hf{constructor(e){this.treeAdapter=e;this.entries=[];this.bookmark=null}_getNoahArkConditionCandidates(e,t){const n=[];const i=t.length;const r=this.treeAdapter.getTagName(e);const s=this.treeAdapter.getNamespaceURI(e);for(let e=0;e<this.entries.length;e++){const t=this.entries[e];if(t.type===uf.Marker){break}const{element:o}=t;if(this.treeAdapter.getTagName(o)===r&&this.treeAdapter.getNamespaceURI(o)===s){const t=this.treeAdapter.getAttrList(o);if(t.length===i){n.push({idx:e,attrs:t})}}}return n}_ensureNoahArkCondition(e){if(this.entries.length<cf)return;const t=this.treeAdapter.getAttrList(e);const n=this._getNoahArkConditionCandidates(e,t);if(n.length<cf)return;const i=new Map(t.map((e=>[e.name,e.value])));let r=0;for(let e=0;e<n.length;e++){const t=n[e];if(t.attrs.every((e=>i.get(e.name)===e.value))){r+=1;if(r>=cf){this.entries.splice(t.idx,1)}}}}insertMarker(){this.entries.unshift(ff)}pushElement(e,t){this._ensureNoahArkCondition(e);this.entries.unshift({type:uf.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:uf.Element,element:e,token:t})}removeEntry(e){const t=this.entries.indexOf(e);if(t>=0){this.entries.splice(t,1)}}clearToLastMarker(){const e=this.entries.indexOf(ff);if(e>=0){this.entries.splice(0,e+1)}else{this.entries.length=0}}getElementEntryInScopeWithTagName(e){const t=this.entries.find((t=>t.type===uf.Marker||this.treeAdapter.getTagName(t.element)===e));return t&&t.type===uf.Element?t:null}getElementEntry(e){return this.entries.find((t=>t.type===uf.Element&&t.element===e))}}const df={createDocument(){return{nodeName:"#document",mode:Ru.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t);t.parentNode=e},insertBefore(e,t,n){const i=e.childNodes.indexOf(n);e.childNodes.splice(i,0,t);t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,i){const r=e.childNodes.find((e=>e.nodeName==="#documentType"));if(r){r.name=t;r.publicId=n;r.systemId=i}else{const r={nodeName:"#documentType",name:t,publicId:n,systemId:i,parentNode:null};df.appendChild(e,r)}},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 n=e.childNodes[e.childNodes.length-1];if(df.isTextNode(n)){n.value+=t;return}}df.appendChild(e,df.createTextNode(t))},insertTextBefore(e,t,n){const i=e.childNodes[e.childNodes.indexOf(n)-1];if(i&&df.isTextNode(i)){i.value+=t}else{df.insertBefore(e,df.createTextNode(t),n)}},adoptAttributes(e,t){const n=new Set(e.attrs.map((e=>e.name)));for(let i=0;i<t.length;i++){if(!n.has(t[i].name)){e.attrs.push(t[i])}}},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}}};const pf="html";const mf="about:legacy-compat";const gf="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd";const bf=["+//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//"];const kf=[...bf,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];const yf=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]);const wf=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"];const Ef=[...wf,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Tf(e,t){return t.some((t=>e.startsWith(t)))}function vf(e){return e.name===pf&&e.publicId===null&&(e.systemId===null||e.systemId===mf)}function Sf(e){if(e.name!==pf){return Ru.QUIRKS}const{systemId:t}=e;if(t&&t.toLowerCase()===gf){return Ru.QUIRKS}let{publicId:n}=e;if(n!==null){n=n.toLowerCase();if(yf.has(n)){return Ru.QUIRKS}let e=t===null?kf:bf;if(Tf(n,e)){return Ru.QUIRKS}e=t===null?wf:Ef;if(Tf(n,e)){return Ru.LIMITED_QUIRKS}}return Ru.NO_QUIRKS}const xf={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"};const Af="definitionurl";const Cf="definitionURL";const Df=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])));const _f=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Du.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Du.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Du.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Du.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Du.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Du.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Du.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Du.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Du.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Du.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Du.XMLNS}]]);const Rf=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])));const Lf=new Set([Iu.B,Iu.BIG,Iu.BLOCKQUOTE,Iu.BODY,Iu.BR,Iu.CENTER,Iu.CODE,Iu.DD,Iu.DIV,Iu.DL,Iu.DT,Iu.EM,Iu.EMBED,Iu.H1,Iu.H2,Iu.H3,Iu.H4,Iu.H5,Iu.H6,Iu.HEAD,Iu.HR,Iu.I,Iu.IMG,Iu.LI,Iu.LISTING,Iu.MENU,Iu.META,Iu.NOBR,Iu.OL,Iu.P,Iu.PRE,Iu.RUBY,Iu.S,Iu.SMALL,Iu.SPAN,Iu.STRONG,Iu.STRIKE,Iu.SUB,Iu.SUP,Iu.TABLE,Iu.TT,Iu.U,Iu.UL,Iu.VAR]);function If(e){const t=e.tagID;const n=t===Iu.FONT&&e.attrs.some((({name:e})=>e===_u.COLOR||e===_u.SIZE||e===_u.FACE));return n||Lf.has(t)}function Of(e){for(let t=0;t<e.attrs.length;t++){if(e.attrs[t].name===Af){e.attrs[t].name=Cf;break}}}function Nf(e){for(let t=0;t<e.attrs.length;t++){const n=Df.get(e.attrs[t].name);if(n!=null){e.attrs[t].name=n}}}function Pf(e){for(let t=0;t<e.attrs.length;t++){const n=_f.get(e.attrs[t].name);if(n){e.attrs[t].prefix=n.prefix;e.attrs[t].name=n.name;e.attrs[t].namespace=n.namespace}}}function Mf(e){const t=Rf.get(e.tagName);if(t!=null){e.tagName=t;e.tagID=Nu(e.tagName)}}function Uf(e,t){return t===Du.MATHML&&(e===Iu.MI||e===Iu.MO||e===Iu.MN||e===Iu.MS||e===Iu.MTEXT)}function qf(e,t,n){if(t===Du.MATHML&&e===Iu.ANNOTATION_XML){for(let e=0;e<n.length;e++){if(n[e].name===_u.ENCODING){const t=n[e].value.toLowerCase();return t===xf.TEXT_HTML||t===xf.APPLICATION_XML}}}return t===Du.SVG&&(e===Iu.FOREIGN_OBJECT||e===Iu.DESC||e===Iu.TITLE)}function Bf(e,t,n,i){return(!i||i===Du.HTML)&&qf(e,t,n)||(!i||i===Du.MATHML)&&Uf(e,t)}const Ff="hidden";const Hf=8;const zf=3;var jf;(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"})(jf||(jf={}));const Gf={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};const Vf=new Set([Iu.TABLE,Iu.TBODY,Iu.TFOOT,Iu.THEAD,Iu.TR]);const Yf={scriptingEnabled:true,sourceCodeLocationInfo:false,treeAdapter:df,onParseError:null};class Wf{constructor(e,t,n=null,i=null){this.fragmentContext=n;this.scriptHandler=i;this.currentToken=null;this.stopped=false;this.insertionMode=jf.INITIAL;this.originalInsertionMode=jf.INITIAL;this.headElement=null;this.formElement=null;this.currentNotInHTML=false;this.tmplInsertionModeStack=[];this.pendingCharacterTokens=[];this.hasNonWhitespacePendingCharacterToken=false;this.framesetOk=true;this.skipNextNewLine=false;this.fosterParentingEnabled=false;this.options={...Yf,...e};this.treeAdapter=this.options.treeAdapter;this.onParseError=this.options.onParseError;if(this.onParseError){this.options.sourceCodeLocationInfo=true}this.document=t!==null&&t!==void 0?t:this.treeAdapter.createDocument();this.tokenizer=new Ku(this.options,this);this.activeFormattingElements=new hf(this.treeAdapter);this.fragmentContextID=n?Nu(this.treeAdapter.getTagName(n)):Iu.UNKNOWN;this._setContextModes(n!==null&&n!==void 0?n:this.document,this.fragmentContextID);this.openElements=new lf(this.document,this.treeAdapter,this)}static parse(e,t){const n=new this(t);n.tokenizer.write(e,true);return n.document}static getFragmentParser(e,t){const n={...Yf,...t};e!==null&&e!==void 0?e:e=n.treeAdapter.createElement(Lu.TEMPLATE,Du.HTML,[]);const i=n.treeAdapter.createElement("documentmock",Du.HTML,[]);const r=new this(n,i,e);if(r.fragmentContextID===Iu.TEMPLATE){r.tmplInsertionModeStack.unshift(jf.IN_TEMPLATE)}r._initTokenizerForFragmentParsing();r._insertFakeRootElement();r._resetInsertionMode();r._findFormInFragmentContext();return r}getFragment(){const e=this.treeAdapter.getFirstChild(this.document);const t=this.treeAdapter.createDocumentFragment();this._adoptNodes(e,t);return t}_err(e,t,n){var i;if(!this.onParseError)return;const r=(i=e.location)!==null&&i!==void 0?i:Gf;const s={code:t,startLine:r.startLine,startCol:r.startCol,startOffset:r.startOffset,endLine:n?r.startLine:r.endLine,endCol:n?r.startCol:r.endCol,endOffset:n?r.startOffset:r.endOffset};this.onParseError(s)}onItemPush(e,t,n){var i,r;(r=(i=this.treeAdapter).onItemPush)===null||r===void 0?void 0:r.call(i,e);if(n&&this.openElements.stackTop>0)this._setContextModes(e,t)}onItemPop(e,t){var n,i;if(this.options.sourceCodeLocationInfo){this._setEndLocation(e,this.currentToken)}(i=(n=this.treeAdapter).onItemPop)===null||i===void 0?void 0:i.call(n,e,this.openElements.current);if(t){let e;let t;if(this.openElements.stackTop===0&&this.fragmentContext){e=this.fragmentContext;t=this.fragmentContextID}else{({current:e,currentTagId:t}=this.openElements)}this._setContextModes(e,t)}}_setContextModes(e,t){const n=e===this.document||this.treeAdapter.getNamespaceURI(e)===Du.HTML;this.currentNotInHTML=!n;this.tokenizer.inForeignNode=!n&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,Du.HTML);this.tokenizer.state=t;this.originalInsertionMode=this.insertionMode;this.insertionMode=jf.TEXT}switchToPlaintextParsing(){this.insertionMode=jf.TEXT;this.originalInsertionMode=jf.IN_BODY;this.tokenizer.state=Bu.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;while(e){if(this.treeAdapter.getTagName(e)===Lu.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Du.HTML){return}switch(this.fragmentContextID){case Iu.TITLE:case Iu.TEXTAREA:{this.tokenizer.state=Bu.RCDATA;break}case Iu.STYLE:case Iu.XMP:case Iu.IFRAME:case Iu.NOEMBED:case Iu.NOFRAMES:case Iu.NOSCRIPT:{this.tokenizer.state=Bu.RAWTEXT;break}case Iu.SCRIPT:{this.tokenizer.state=Bu.SCRIPT_DATA;break}case Iu.PLAINTEXT:{this.tokenizer.state=Bu.PLAINTEXT;break}}}_setDocumentType(e){const t=e.name||"";const n=e.publicId||"";const i=e.systemId||"";this.treeAdapter.setDocumentType(this.document,t,n,i);if(e.location){const t=this.treeAdapter.getChildNodes(this.document);const n=t.find((e=>this.treeAdapter.isDocumentTypeNode(e)));if(n){this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){const n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion()){this._fosterParentElement(e)}else{const t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location);this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){const n=this.treeAdapter.createElement(e,Du.HTML,[]);this._attachElementToTree(n,null);this.openElements.push(n,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,Du.HTML,e.attrs);const n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n);this._attachElementToTree(t,e.location);this.openElements.push(t,e.tagID);if(this.options.sourceCodeLocationInfo)this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(Lu.HTML,Du.HTML,[]);if(this.options.sourceCodeLocationInfo)this.treeAdapter.setNodeSourceCodeLocation(e,null);this.treeAdapter.appendChild(this.openElements.current,e);this.openElements.push(e,Iu.HTML)}_appendCommentNode(e,t){const n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n);if(this.options.sourceCodeLocationInfo){this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}}_insertCharacters(e){let t;let n;if(this._shouldFosterParentOnInsertion()){({parent:t,beforeElement:n}=this._findFosterParentingLocation());if(n){this.treeAdapter.insertTextBefore(t,e.chars,n)}else{this.treeAdapter.insertText(t,e.chars)}}else{t=this.openElements.currentTmplContentOrNode;this.treeAdapter.insertText(t,e.chars)}if(!e.location)return;const i=this.treeAdapter.getChildNodes(t);const r=n?i.lastIndexOf(n):i.length;const s=i[r-1];const o=this.treeAdapter.getNodeSourceCodeLocation(s);if(o){const{endLine:t,endCol:n,endOffset:i}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:t,endCol:n,endOffset:i})}else if(this.options.sourceCodeLocationInfo){this.treeAdapter.setNodeSourceCodeLocation(s,e.location)}}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e)){this.treeAdapter.detachNode(n);this.treeAdapter.appendChild(t,n)}}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const n=t.location;const i=this.treeAdapter.getTagName(e);const r=t.type===Au.END_TAG&&i===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,r)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return false;let t;let n;if(this.openElements.stackTop===0&&this.fragmentContext){t=this.fragmentContext;n=this.fragmentContextID}else{({current:t,currentTagId:n}=this.openElements)}if(e.tagID===Iu.SVG&&this.treeAdapter.getTagName(t)===Lu.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(t)===Du.MATHML){return false}return this.tokenizer.inForeignNode||(e.tagID===Iu.MGLYPH||e.tagID===Iu.MALIGNMARK)&&!this._isIntegrationPoint(n,t,Du.HTML)}_processToken(e){switch(e.type){case Au.CHARACTER:{this.onCharacter(e);break}case Au.NULL_CHARACTER:{this.onNullCharacter(e);break}case Au.COMMENT:{this.onComment(e);break}case Au.DOCTYPE:{this.onDoctype(e);break}case Au.START_TAG:{this._processStartTag(e);break}case Au.END_TAG:{this.onEndTag(e);break}case Au.EOF:{this.onEof(e);break}case Au.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(e);break}}}_isIntegrationPoint(e,t,n){const i=this.treeAdapter.getNamespaceURI(t);const r=this.treeAdapter.getAttrList(t);return Bf(e,i,r,n)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const t=this.activeFormattingElements.entries.findIndex((e=>e.type===uf.Marker||this.openElements.contains(e.element)));const n=t<0?e-1:t-1;for(let e=n;e>=0;e--){const t=this.activeFormattingElements.entries[e];this._insertElement(t.token,this.treeAdapter.getNamespaceURI(t.element));t.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags();this.openElements.popUntilTableCellPopped();this.activeFormattingElements.clearToLastMarker();this.insertionMode=jf.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(Iu.P);this.openElements.popUntilTagNamePopped(Iu.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--){switch(e===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case Iu.TR:{this.insertionMode=jf.IN_ROW;return}case Iu.TBODY:case Iu.THEAD:case Iu.TFOOT:{this.insertionMode=jf.IN_TABLE_BODY;return}case Iu.CAPTION:{this.insertionMode=jf.IN_CAPTION;return}case Iu.COLGROUP:{this.insertionMode=jf.IN_COLUMN_GROUP;return}case Iu.TABLE:{this.insertionMode=jf.IN_TABLE;return}case Iu.BODY:{this.insertionMode=jf.IN_BODY;return}case Iu.FRAMESET:{this.insertionMode=jf.IN_FRAMESET;return}case Iu.SELECT:{this._resetInsertionModeForSelect(e);return}case Iu.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case Iu.HTML:{this.insertionMode=this.headElement?jf.AFTER_HEAD:jf.BEFORE_HEAD;return}case Iu.TD:case Iu.TH:{if(e>0){this.insertionMode=jf.IN_CELL;return}break}case Iu.HEAD:{if(e>0){this.insertionMode=jf.IN_HEAD;return}break}}}this.insertionMode=jf.IN_BODY}_resetInsertionModeForSelect(e){if(e>0){for(let t=e-1;t>0;t--){const e=this.openElements.tagIDs[t];if(e===Iu.TEMPLATE){break}else if(e===Iu.TABLE){this.insertionMode=jf.IN_SELECT_IN_TABLE;return}}}this.insertionMode=jf.IN_SELECT}_isElementCausesFosterParenting(e){return Vf.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case Iu.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(t)===Du.HTML){return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null}}break}case Iu.TABLE:{const n=this.treeAdapter.getParentNode(t);if(n){return{parent:n,beforeElement:t}}return{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const t=this._findFosterParentingLocation();if(t.beforeElement){this.treeAdapter.insertBefore(t.parent,e,t.beforeElement)}else{this.treeAdapter.appendChild(t.parent,e)}}_isSpecialElement(e,t){const n=this.treeAdapter.getNamespaceURI(e);return Mu[n].has(t)}onCharacter(e){this.skipNextNewLine=false;if(this.tokenizer.inForeignNode){fp(this,e);return}switch(this.insertionMode){case jf.INITIAL:{oh(this,e);break}case jf.BEFORE_HTML:{ch(this,e);break}case jf.BEFORE_HEAD:{hh(this,e);break}case jf.IN_HEAD:{gh(this,e);break}case jf.IN_HEAD_NO_SCRIPT:{yh(this,e);break}case jf.AFTER_HEAD:{Th(this,e);break}case jf.IN_BODY:case jf.IN_CAPTION:case jf.IN_CELL:case jf.IN_TEMPLATE:{xh(this,e);break}case jf.TEXT:case jf.IN_SELECT:case jf.IN_SELECT_IN_TABLE:{this._insertCharacters(e);break}case jf.IN_TABLE:case jf.IN_TABLE_BODY:case jf.IN_ROW:{wd(this,e);break}case jf.IN_TABLE_TEXT:{Od(this,e);break}case jf.IN_COLUMN_GROUP:{Fd(this,e);break}case jf.AFTER_BODY:{np(this,e);break}case jf.AFTER_AFTER_BODY:{lp(this,e);break}}}onNullCharacter(e){this.skipNextNewLine=false;if(this.tokenizer.inForeignNode){up(this,e);return}switch(this.insertionMode){case jf.INITIAL:{oh(this,e);break}case jf.BEFORE_HTML:{ch(this,e);break}case jf.BEFORE_HEAD:{hh(this,e);break}case jf.IN_HEAD:{gh(this,e);break}case jf.IN_HEAD_NO_SCRIPT:{yh(this,e);break}case jf.AFTER_HEAD:{Th(this,e);break}case jf.TEXT:{this._insertCharacters(e);break}case jf.IN_TABLE:case jf.IN_TABLE_BODY:case jf.IN_ROW:{wd(this,e);break}case jf.IN_COLUMN_GROUP:{Fd(this,e);break}case jf.AFTER_BODY:{np(this,e);break}case jf.AFTER_AFTER_BODY:{lp(this,e);break}}}onComment(e){this.skipNextNewLine=false;if(this.currentNotInHTML){th(this,e);return}switch(this.insertionMode){case jf.INITIAL:case jf.BEFORE_HTML:case jf.BEFORE_HEAD:case jf.IN_HEAD:case jf.IN_HEAD_NO_SCRIPT:case jf.AFTER_HEAD:case jf.IN_BODY:case jf.IN_TABLE:case jf.IN_CAPTION:case jf.IN_COLUMN_GROUP:case jf.IN_TABLE_BODY:case jf.IN_ROW:case jf.IN_CELL:case jf.IN_SELECT:case jf.IN_SELECT_IN_TABLE:case jf.IN_TEMPLATE:case jf.IN_FRAMESET:case jf.AFTER_FRAMESET:{th(this,e);break}case jf.IN_TABLE_TEXT:{Nd(this,e);break}case jf.AFTER_BODY:{nh(this,e);break}case jf.AFTER_AFTER_BODY:case jf.AFTER_AFTER_FRAMESET:{ih(this,e);break}}}onDoctype(e){this.skipNextNewLine=false;switch(this.insertionMode){case jf.INITIAL:{sh(this,e);break}case jf.BEFORE_HEAD:case jf.IN_HEAD:case jf.IN_HEAD_NO_SCRIPT:case jf.AFTER_HEAD:{this._err(e,vu.misplacedDoctype);break}case jf.IN_TABLE_TEXT:{Nd(this,e);break}}}onStartTag(e){this.skipNextNewLine=false;this.currentToken=e;this._processStartTag(e);if(e.selfClosing&&!e.ackSelfClosing){this._err(e,vu.nonVoidHtmlElementStartTagWithTrailingSolidus)}}_processStartTag(e){if(this.shouldProcessStartTagTokenInForeignContent(e)){dp(this,e)}else{this._startTagOutsideForeignContent(e)}}_startTagOutsideForeignContent(e){switch(this.insertionMode){case jf.INITIAL:{oh(this,e);break}case jf.BEFORE_HTML:{ah(this,e);break}case jf.BEFORE_HEAD:{uh(this,e);break}case jf.IN_HEAD:{dh(this,e);break}case jf.IN_HEAD_NO_SCRIPT:{bh(this,e);break}case jf.AFTER_HEAD:{wh(this,e);break}case jf.IN_BODY:{rd(this,e);break}case jf.IN_TABLE:{_d(this,e);break}case jf.IN_TABLE_TEXT:{Nd(this,e);break}case jf.IN_CAPTION:{Md(this,e);break}case jf.IN_COLUMN_GROUP:{qd(this,e);break}case jf.IN_TABLE_BODY:{Hd(this,e);break}case jf.IN_ROW:{jd(this,e);break}case jf.IN_CELL:{Vd(this,e);break}case jf.IN_SELECT:{Wd(this,e);break}case jf.IN_SELECT_IN_TABLE:{Kd(this,e);break}case jf.IN_TEMPLATE:{Qd(this,e);break}case jf.AFTER_BODY:{ep(this,e);break}case jf.IN_FRAMESET:{ip(this,e);break}case jf.AFTER_FRAMESET:{sp(this,e);break}case jf.AFTER_AFTER_BODY:{ap(this,e);break}case jf.AFTER_AFTER_FRAMESET:{cp(this,e);break}}}onEndTag(e){this.skipNextNewLine=false;this.currentToken=e;if(this.currentNotInHTML){pp(this,e)}else{this._endTagOutsideForeignContent(e)}}_endTagOutsideForeignContent(e){switch(this.insertionMode){case jf.INITIAL:{oh(this,e);break}case jf.BEFORE_HTML:{lh(this,e);break}case jf.BEFORE_HEAD:{fh(this,e);break}case jf.IN_HEAD:{ph(this,e);break}case jf.IN_HEAD_NO_SCRIPT:{kh(this,e);break}case jf.AFTER_HEAD:{Eh(this,e);break}case jf.IN_BODY:{gd(this,e);break}case jf.TEXT:{kd(this,e);break}case jf.IN_TABLE:{Rd(this,e);break}case jf.IN_TABLE_TEXT:{Nd(this,e);break}case jf.IN_CAPTION:{Ud(this,e);break}case jf.IN_COLUMN_GROUP:{Bd(this,e);break}case jf.IN_TABLE_BODY:{zd(this,e);break}case jf.IN_ROW:{Gd(this,e);break}case jf.IN_CELL:{Yd(this,e);break}case jf.IN_SELECT:{Xd(this,e);break}case jf.IN_SELECT_IN_TABLE:{$d(this,e);break}case jf.IN_TEMPLATE:{Zd(this,e);break}case jf.AFTER_BODY:{tp(this,e);break}case jf.IN_FRAMESET:{rp(this,e);break}case jf.AFTER_FRAMESET:{op(this,e);break}case jf.AFTER_AFTER_BODY:{lp(this,e);break}}}onEof(e){switch(this.insertionMode){case jf.INITIAL:{oh(this,e);break}case jf.BEFORE_HTML:{ch(this,e);break}case jf.BEFORE_HEAD:{hh(this,e);break}case jf.IN_HEAD:{gh(this,e);break}case jf.IN_HEAD_NO_SCRIPT:{yh(this,e);break}case jf.AFTER_HEAD:{Th(this,e);break}case jf.IN_BODY:case jf.IN_TABLE:case jf.IN_CAPTION:case jf.IN_COLUMN_GROUP:case jf.IN_TABLE_BODY:case jf.IN_ROW:case jf.IN_CELL:case jf.IN_SELECT:case jf.IN_SELECT_IN_TABLE:{bd(this,e);break}case jf.TEXT:{yd(this,e);break}case jf.IN_TABLE_TEXT:{Nd(this,e);break}case jf.IN_TEMPLATE:{Jd(this,e);break}case jf.AFTER_BODY:case jf.IN_FRAMESET:case jf.AFTER_FRAMESET:case jf.AFTER_AFTER_BODY:case jf.AFTER_AFTER_FRAMESET:{rh(this,e);break}}}onWhitespaceCharacter(e){if(this.skipNextNewLine){this.skipNextNewLine=false;if(e.chars.charCodeAt(0)===gu.LINE_FEED){if(e.chars.length===1){return}e.chars=e.chars.substr(1)}}if(this.tokenizer.inForeignNode){this._insertCharacters(e);return}switch(this.insertionMode){case jf.IN_HEAD:case jf.IN_HEAD_NO_SCRIPT:case jf.AFTER_HEAD:case jf.TEXT:case jf.IN_COLUMN_GROUP:case jf.IN_SELECT:case jf.IN_SELECT_IN_TABLE:case jf.IN_FRAMESET:case jf.AFTER_FRAMESET:{this._insertCharacters(e);break}case jf.IN_BODY:case jf.IN_CAPTION:case jf.IN_CELL:case jf.IN_TEMPLATE:case jf.AFTER_BODY:case jf.AFTER_AFTER_BODY:case jf.AFTER_AFTER_FRAMESET:{Sh(this,e);break}case jf.IN_TABLE:case jf.IN_TABLE_BODY:case jf.IN_ROW:{wd(this,e);break}case jf.IN_TABLE_TEXT:{Id(this,e);break}}}}function Xf(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);if(n){if(!e.openElements.contains(n.element)){e.activeFormattingElements.removeEntry(n);n=null}else if(!e.openElements.hasInScope(t.tagID)){n=null}}else{md(e,t)}return n}function Kf(e,t){let n=null;let i=e.openElements.stackTop;for(;i>=0;i--){const r=e.openElements.items[i];if(r===t.element){break}if(e._isSpecialElement(r,e.openElements.tagIDs[i])){n=r}}if(!n){e.openElements.shortenToLength(i<0?0:i);e.activeFormattingElements.removeEntry(t)}return n}function $f(e,t,n){let i=t;let r=e.openElements.getCommonAncestor(t);for(let s=0,o=r;o!==n;s++,o=r){r=e.openElements.getCommonAncestor(o);const n=e.activeFormattingElements.getElementEntry(o);const a=n&&s>=zf;const l=!n||a;if(l){if(a){e.activeFormattingElements.removeEntry(n)}e.openElements.remove(o)}else{o=Qf(e,n);if(i===t){e.activeFormattingElements.bookmark=n}e.treeAdapter.detachNode(i);e.treeAdapter.appendChild(o,i);i=o}}return i}function Qf(e,t){const n=e.treeAdapter.getNamespaceURI(t.element);const i=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);e.openElements.replace(t.element,i);t.element=i;return i}function Zf(e,t,n){const i=e.treeAdapter.getTagName(t);const r=Nu(i);if(e._isElementCausesFosterParenting(r)){e._fosterParentElement(n)}else{const i=e.treeAdapter.getNamespaceURI(t);if(r===Iu.TEMPLATE&&i===Du.HTML){t=e.treeAdapter.getTemplateContent(t)}e.treeAdapter.appendChild(t,n)}}function Jf(e,t,n){const i=e.treeAdapter.getNamespaceURI(n.element);const{token:r}=n;const s=e.treeAdapter.createElement(r.tagName,i,r.attrs);e._adoptNodes(t,s);e.treeAdapter.appendChild(t,s);e.activeFormattingElements.insertElementAfterBookmark(s,r);e.activeFormattingElements.removeEntry(n);e.openElements.remove(n.element);e.openElements.insertAfter(t,s,r.tagID)}function eh(e,t){for(let n=0;n<Hf;n++){const n=Xf(e,t);if(!n){break}const i=Kf(e,n);if(!i){break}e.activeFormattingElements.bookmark=n;const r=$f(e,i,n.element);const s=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(r);if(s)Zf(e,s,r);Jf(e,i,n)}}function th(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function nh(e,t){e._appendCommentNode(t,e.openElements.items[0])}function ih(e,t){e._appendCommentNode(t,e.document)}function rh(e,t){e.stopped=true;if(t.location){const n=e.fragmentContext?0:2;for(let i=e.openElements.stackTop;i>=n;i--){e._setEndLocation(e.openElements.items[i],t)}if(!e.fragmentContext&&e.openElements.stackTop>=0){const n=e.openElements.items[0];const i=e.treeAdapter.getNodeSourceCodeLocation(n);if(i&&!i.endTag){e._setEndLocation(n,t);if(e.openElements.stackTop>=1){const n=e.openElements.items[1];const i=e.treeAdapter.getNodeSourceCodeLocation(n);if(i&&!i.endTag){e._setEndLocation(n,t)}}}}}}function sh(e,t){e._setDocumentType(t);const n=t.forceQuirks?Ru.QUIRKS:Sf(t);if(!vf(t)){e._err(t,vu.nonConformingDoctype)}e.treeAdapter.setDocumentMode(e.document,n);e.insertionMode=jf.BEFORE_HTML}function oh(e,t){e._err(t,vu.missingDoctype,true);e.treeAdapter.setDocumentMode(e.document,Ru.QUIRKS);e.insertionMode=jf.BEFORE_HTML;e._processToken(t)}function ah(e,t){if(t.tagID===Iu.HTML){e._insertElement(t,Du.HTML);e.insertionMode=jf.BEFORE_HEAD}else{ch(e,t)}}function lh(e,t){const n=t.tagID;if(n===Iu.HTML||n===Iu.HEAD||n===Iu.BODY||n===Iu.BR){ch(e,t)}}function ch(e,t){e._insertFakeRootElement();e.insertionMode=jf.BEFORE_HEAD;e._processToken(t)}function uh(e,t){switch(t.tagID){case Iu.HTML:{rd(e,t);break}case Iu.HEAD:{e._insertElement(t,Du.HTML);e.headElement=e.openElements.current;e.insertionMode=jf.IN_HEAD;break}default:{hh(e,t)}}}function fh(e,t){const n=t.tagID;if(n===Iu.HEAD||n===Iu.BODY||n===Iu.HTML||n===Iu.BR){hh(e,t)}else{e._err(t,vu.endTagWithoutMatchingOpenElement)}}function hh(e,t){e._insertFakeElement(Lu.HEAD,Iu.HEAD);e.headElement=e.openElements.current;e.insertionMode=jf.IN_HEAD;e._processToken(t)}function dh(e,t){switch(t.tagID){case Iu.HTML:{rd(e,t);break}case Iu.BASE:case Iu.BASEFONT:case Iu.BGSOUND:case Iu.LINK:case Iu.META:{e._appendElement(t,Du.HTML);t.ackSelfClosing=true;break}case Iu.TITLE:{e._switchToTextParsing(t,Bu.RCDATA);break}case Iu.NOSCRIPT:{if(e.options.scriptingEnabled){e._switchToTextParsing(t,Bu.RAWTEXT)}else{e._insertElement(t,Du.HTML);e.insertionMode=jf.IN_HEAD_NO_SCRIPT}break}case Iu.NOFRAMES:case Iu.STYLE:{e._switchToTextParsing(t,Bu.RAWTEXT);break}case Iu.SCRIPT:{e._switchToTextParsing(t,Bu.SCRIPT_DATA);break}case Iu.TEMPLATE:{e._insertTemplate(t);e.activeFormattingElements.insertMarker();e.framesetOk=false;e.insertionMode=jf.IN_TEMPLATE;e.tmplInsertionModeStack.unshift(jf.IN_TEMPLATE);break}case Iu.HEAD:{e._err(t,vu.misplacedStartTagForHeadElement);break}default:{gh(e,t)}}}function ph(e,t){switch(t.tagID){case Iu.HEAD:{e.openElements.pop();e.insertionMode=jf.AFTER_HEAD;break}case Iu.BODY:case Iu.BR:case Iu.HTML:{gh(e,t);break}case Iu.TEMPLATE:{mh(e,t);break}default:{e._err(t,vu.endTagWithoutMatchingOpenElement)}}}function mh(e,t){if(e.openElements.tmplCount>0){e.openElements.generateImpliedEndTagsThoroughly();if(e.openElements.currentTagId!==Iu.TEMPLATE){e._err(t,vu.closingOfElementWithOpenChildElements)}e.openElements.popUntilTagNamePopped(Iu.TEMPLATE);e.activeFormattingElements.clearToLastMarker();e.tmplInsertionModeStack.shift();e._resetInsertionMode()}else{e._err(t,vu.endTagWithoutMatchingOpenElement)}}function gh(e,t){e.openElements.pop();e.insertionMode=jf.AFTER_HEAD;e._processToken(t)}function bh(e,t){switch(t.tagID){case Iu.HTML:{rd(e,t);break}case Iu.BASEFONT:case Iu.BGSOUND:case Iu.HEAD:case Iu.LINK:case Iu.META:case Iu.NOFRAMES:case Iu.STYLE:{dh(e,t);break}case Iu.NOSCRIPT:{e._err(t,vu.nestedNoscriptInHead);break}default:{yh(e,t)}}}function kh(e,t){switch(t.tagID){case Iu.NOSCRIPT:{e.openElements.pop();e.insertionMode=jf.IN_HEAD;break}case Iu.BR:{yh(e,t);break}default:{e._err(t,vu.endTagWithoutMatchingOpenElement)}}}function yh(e,t){const n=t.type===Au.EOF?vu.openElementsLeftAfterEof:vu.disallowedContentInNoscriptInHead;e._err(t,n);e.openElements.pop();e.insertionMode=jf.IN_HEAD;e._processToken(t)}function wh(e,t){switch(t.tagID){case Iu.HTML:{rd(e,t);break}case Iu.BODY:{e._insertElement(t,Du.HTML);e.framesetOk=false;e.insertionMode=jf.IN_BODY;break}case Iu.FRAMESET:{e._insertElement(t,Du.HTML);e.insertionMode=jf.IN_FRAMESET;break}case Iu.BASE:case Iu.BASEFONT:case Iu.BGSOUND:case Iu.LINK:case Iu.META:case Iu.NOFRAMES:case Iu.SCRIPT:case Iu.STYLE:case Iu.TEMPLATE:case Iu.TITLE:{e._err(t,vu.abandonedHeadElementChild);e.openElements.push(e.headElement,Iu.HEAD);dh(e,t);e.openElements.remove(e.headElement);break}case Iu.HEAD:{e._err(t,vu.misplacedStartTagForHeadElement);break}default:{Th(e,t)}}}function Eh(e,t){switch(t.tagID){case Iu.BODY:case Iu.HTML:case Iu.BR:{Th(e,t);break}case Iu.TEMPLATE:{mh(e,t);break}default:{e._err(t,vu.endTagWithoutMatchingOpenElement)}}}function Th(e,t){e._insertFakeElement(Lu.BODY,Iu.BODY);e.insertionMode=jf.IN_BODY;vh(e,t)}function vh(e,t){switch(t.type){case Au.CHARACTER:{xh(e,t);break}case Au.WHITESPACE_CHARACTER:{Sh(e,t);break}case Au.COMMENT:{th(e,t);break}case Au.START_TAG:{rd(e,t);break}case Au.END_TAG:{gd(e,t);break}case Au.EOF:{bd(e,t);break}}}function Sh(e,t){e._reconstructActiveFormattingElements();e._insertCharacters(t)}function xh(e,t){e._reconstructActiveFormattingElements();e._insertCharacters(t);e.framesetOk=false}function Ah(e,t){if(e.openElements.tmplCount===0){e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}}function Ch(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();if(n&&e.openElements.tmplCount===0){e.framesetOk=false;e.treeAdapter.adoptAttributes(n,t.attrs)}}function Dh(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();if(e.framesetOk&&n){e.treeAdapter.detachNode(n);e.openElements.popAllUpToHtmlElement();e._insertElement(t,Du.HTML);e.insertionMode=jf.IN_FRAMESET}}function _h(e,t){if(e.openElements.hasInButtonScope(Iu.P)){e._closePElement()}e._insertElement(t,Du.HTML)}function Rh(e,t){if(e.openElements.hasInButtonScope(Iu.P)){e._closePElement()}if(Uu.has(e.openElements.currentTagId)){e.openElements.pop()}e._insertElement(t,Du.HTML)}function Lh(e,t){if(e.openElements.hasInButtonScope(Iu.P)){e._closePElement()}e._insertElement(t,Du.HTML);e.skipNextNewLine=true;e.framesetOk=false}function Ih(e,t){const n=e.openElements.tmplCount>0;if(!e.formElement||n){if(e.openElements.hasInButtonScope(Iu.P)){e._closePElement()}e._insertElement(t,Du.HTML);if(!n){e.formElement=e.openElements.current}}}function Oh(e,t){e.framesetOk=false;const n=t.tagID;for(let t=e.openElements.stackTop;t>=0;t--){const i=e.openElements.tagIDs[t];if(n===Iu.LI&&i===Iu.LI||(n===Iu.DD||n===Iu.DT)&&(i===Iu.DD||i===Iu.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i);e.openElements.popUntilTagNamePopped(i);break}if(i!==Iu.ADDRESS&&i!==Iu.DIV&&i!==Iu.P&&e._isSpecialElement(e.openElements.items[t],i)){break}}if(e.openElements.hasInButtonScope(Iu.P)){e._closePElement()}e._insertElement(t,Du.HTML)}function Nh(e,t){if(e.openElements.hasInButtonScope(Iu.P)){e._closePElement()}e._insertElement(t,Du.HTML);e.tokenizer.state=Bu.PLAINTEXT}function Ph(e,t){if(e.openElements.hasInScope(Iu.BUTTON)){e.openElements.generateImpliedEndTags();e.openElements.popUntilTagNamePopped(Iu.BUTTON)}e._reconstructActiveFormattingElements();e._insertElement(t,Du.HTML);e.framesetOk=false}function Mh(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Lu.A);if(n){eh(e,t);e.openElements.remove(n.element);e.activeFormattingElements.removeEntry(n)}e._reconstructActiveFormattingElements();e._insertElement(t,Du.HTML);e.activeFormattingElements.pushElement(e.openElements.current,t)}function Uh(e,t){e._reconstructActiveFormattingElements();e._insertElement(t,Du.HTML);e.activeFormattingElements.pushElement(e.openElements.current,t)}function qh(e,t){e._reconstructActiveFormattingElements();if(e.openElements.hasInScope(Iu.NOBR)){eh(e,t);e._reconstructActiveFormattingElements()}e._insertElement(t,Du.HTML);e.activeFormattingElements.pushElement(e.openElements.current,t)}function Bh(e,t){e._reconstructActiveFormattingElements();e._insertElement(t,Du.HTML);e.activeFormattingElements.insertMarker();e.framesetOk=false}function Fh(e,t){if(e.treeAdapter.getDocumentMode(e.document)!==Ru.QUIRKS&&e.openElements.hasInButtonScope(Iu.P)){e._closePElement()}e._insertElement(t,Du.HTML);e.framesetOk=false;e.insertionMode=jf.IN_TABLE}function Hh(e,t){e._reconstructActiveFormattingElements();e._appendElement(t,Du.HTML);e.framesetOk=false;t.ackSelfClosing=true}function zh(e){const t=Cu(e,_u.TYPE);return t!=null&&t.toLowerCase()===Ff}function jh(e,t){e._reconstructActiveFormattingElements();e._appendElement(t,Du.HTML);if(!zh(t)){e.framesetOk=false}t.ackSelfClosing=true}function Gh(e,t){e._appendElement(t,Du.HTML);t.ackSelfClosing=true}function Vh(e,t){if(e.openElements.hasInButtonScope(Iu.P)){e._closePElement()}e._appendElement(t,Du.HTML);e.framesetOk=false;t.ackSelfClosing=true}function Yh(e,t){t.tagName=Lu.IMG;t.tagID=Iu.IMG;Hh(e,t)}function Wh(e,t){e._insertElement(t,Du.HTML);e.skipNextNewLine=true;e.tokenizer.state=Bu.RCDATA;e.originalInsertionMode=e.insertionMode;e.framesetOk=false;e.insertionMode=jf.TEXT}function Xh(e,t){if(e.openElements.hasInButtonScope(Iu.P)){e._closePElement()}e._reconstructActiveFormattingElements();e.framesetOk=false;e._switchToTextParsing(t,Bu.RAWTEXT)}function Kh(e,t){e.framesetOk=false;e._switchToTextParsing(t,Bu.RAWTEXT)}function $h(e,t){e._switchToTextParsing(t,Bu.RAWTEXT)}function Qh(e,t){e._reconstructActiveFormattingElements();e._insertElement(t,Du.HTML);e.framesetOk=false;e.insertionMode=e.insertionMode===jf.IN_TABLE||e.insertionMode===jf.IN_CAPTION||e.insertionMode===jf.IN_TABLE_BODY||e.insertionMode===jf.IN_ROW||e.insertionMode===jf.IN_CELL?jf.IN_SELECT_IN_TABLE:jf.IN_SELECT}function Zh(e,t){if(e.openElements.currentTagId===Iu.OPTION){e.openElements.pop()}e._reconstructActiveFormattingElements();e._insertElement(t,Du.HTML)}function Jh(e,t){if(e.openElements.hasInScope(Iu.RUBY)){e.openElements.generateImpliedEndTags()}e._insertElement(t,Du.HTML)}function ed(e,t){if(e.openElements.hasInScope(Iu.RUBY)){e.openElements.generateImpliedEndTagsWithExclusion(Iu.RTC)}e._insertElement(t,Du.HTML)}function td(e,t){e._reconstructActiveFormattingElements();Of(t);Pf(t);if(t.selfClosing){e._appendElement(t,Du.MATHML)}else{e._insertElement(t,Du.MATHML)}t.ackSelfClosing=true}function nd(e,t){e._reconstructActiveFormattingElements();Nf(t);Pf(t);if(t.selfClosing){e._appendElement(t,Du.SVG)}else{e._insertElement(t,Du.SVG)}t.ackSelfClosing=true}function id(e,t){e._reconstructActiveFormattingElements();e._insertElement(t,Du.HTML)}function rd(e,t){switch(t.tagID){case Iu.I:case Iu.S:case Iu.B:case Iu.U:case Iu.EM:case Iu.TT:case Iu.BIG:case Iu.CODE:case Iu.FONT:case Iu.SMALL:case Iu.STRIKE:case Iu.STRONG:{Uh(e,t);break}case Iu.A:{Mh(e,t);break}case Iu.H1:case Iu.H2:case Iu.H3:case Iu.H4:case Iu.H5:case Iu.H6:{Rh(e,t);break}case Iu.P:case Iu.DL:case Iu.OL:case Iu.UL:case Iu.DIV:case Iu.DIR:case Iu.NAV:case Iu.MAIN:case Iu.MENU:case Iu.ASIDE:case Iu.CENTER:case Iu.FIGURE:case Iu.FOOTER:case Iu.HEADER:case Iu.HGROUP:case Iu.DIALOG:case Iu.DETAILS:case Iu.ADDRESS:case Iu.ARTICLE:case Iu.SEARCH:case Iu.SECTION:case Iu.SUMMARY:case Iu.FIELDSET:case Iu.BLOCKQUOTE:case Iu.FIGCAPTION:{_h(e,t);break}case Iu.LI:case Iu.DD:case Iu.DT:{Oh(e,t);break}case Iu.BR:case Iu.IMG:case Iu.WBR:case Iu.AREA:case Iu.EMBED:case Iu.KEYGEN:{Hh(e,t);break}case Iu.HR:{Vh(e,t);break}case Iu.RB:case Iu.RTC:{Jh(e,t);break}case Iu.RT:case Iu.RP:{ed(e,t);break}case Iu.PRE:case Iu.LISTING:{Lh(e,t);break}case Iu.XMP:{Xh(e,t);break}case Iu.SVG:{nd(e,t);break}case Iu.HTML:{Ah(e,t);break}case Iu.BASE:case Iu.LINK:case Iu.META:case Iu.STYLE:case Iu.TITLE:case Iu.SCRIPT:case Iu.BGSOUND:case Iu.BASEFONT:case Iu.TEMPLATE:{dh(e,t);break}case Iu.BODY:{Ch(e,t);break}case Iu.FORM:{Ih(e,t);break}case Iu.NOBR:{qh(e,t);break}case Iu.MATH:{td(e,t);break}case Iu.TABLE:{Fh(e,t);break}case Iu.INPUT:{jh(e,t);break}case Iu.PARAM:case Iu.TRACK:case Iu.SOURCE:{Gh(e,t);break}case Iu.IMAGE:{Yh(e,t);break}case Iu.BUTTON:{Ph(e,t);break}case Iu.APPLET:case Iu.OBJECT:case Iu.MARQUEE:{Bh(e,t);break}case Iu.IFRAME:{Kh(e,t);break}case Iu.SELECT:{Qh(e,t);break}case Iu.OPTION:case Iu.OPTGROUP:{Zh(e,t);break}case Iu.NOEMBED:case Iu.NOFRAMES:{$h(e,t);break}case Iu.FRAMESET:{Dh(e,t);break}case Iu.TEXTAREA:{Wh(e,t);break}case Iu.NOSCRIPT:{if(e.options.scriptingEnabled){$h(e,t)}else{id(e,t)}break}case Iu.PLAINTEXT:{Nh(e,t);break}case Iu.COL:case Iu.TH:case Iu.TD:case Iu.TR:case Iu.HEAD:case Iu.FRAME:case Iu.TBODY:case Iu.TFOOT:case Iu.THEAD:case Iu.CAPTION:case Iu.COLGROUP:{break}default:{id(e,t)}}}function sd(e,t){if(e.openElements.hasInScope(Iu.BODY)){e.insertionMode=jf.AFTER_BODY;if(e.options.sourceCodeLocationInfo){const n=e.openElements.tryPeekProperlyNestedBodyElement();if(n){e._setEndLocation(n,t)}}}}function od(e,t){if(e.openElements.hasInScope(Iu.BODY)){e.insertionMode=jf.AFTER_BODY;tp(e,t)}}function ad(e,t){const n=t.tagID;if(e.openElements.hasInScope(n)){e.openElements.generateImpliedEndTags();e.openElements.popUntilTagNamePopped(n)}}function ld(e){const t=e.openElements.tmplCount>0;const{formElement:n}=e;if(!t){e.formElement=null}if((n||t)&&e.openElements.hasInScope(Iu.FORM)){e.openElements.generateImpliedEndTags();if(t){e.openElements.popUntilTagNamePopped(Iu.FORM)}else if(n){e.openElements.remove(n)}}}function cd(e){if(!e.openElements.hasInButtonScope(Iu.P)){e._insertFakeElement(Lu.P,Iu.P)}e._closePElement()}function ud(e){if(e.openElements.hasInListItemScope(Iu.LI)){e.openElements.generateImpliedEndTagsWithExclusion(Iu.LI);e.openElements.popUntilTagNamePopped(Iu.LI)}}function fd(e,t){const n=t.tagID;if(e.openElements.hasInScope(n)){e.openElements.generateImpliedEndTagsWithExclusion(n);e.openElements.popUntilTagNamePopped(n)}}function hd(e){if(e.openElements.hasNumberedHeaderInScope()){e.openElements.generateImpliedEndTags();e.openElements.popUntilNumberedHeaderPopped()}}function dd(e,t){const n=t.tagID;if(e.openElements.hasInScope(n)){e.openElements.generateImpliedEndTags();e.openElements.popUntilTagNamePopped(n);e.activeFormattingElements.clearToLastMarker()}}function pd(e){e._reconstructActiveFormattingElements();e._insertFakeElement(Lu.BR,Iu.BR);e.openElements.pop();e.framesetOk=false}function md(e,t){const n=t.tagName;const i=t.tagID;for(let t=e.openElements.stackTop;t>0;t--){const r=e.openElements.items[t];const s=e.openElements.tagIDs[t];if(i===s&&(i!==Iu.UNKNOWN||e.treeAdapter.getTagName(r)===n)){e.openElements.generateImpliedEndTagsWithExclusion(i);if(e.openElements.stackTop>=t)e.openElements.shortenToLength(t);break}if(e._isSpecialElement(r,s)){break}}}function gd(e,t){switch(t.tagID){case Iu.A:case Iu.B:case Iu.I:case Iu.S:case Iu.U:case Iu.EM:case Iu.TT:case Iu.BIG:case Iu.CODE:case Iu.FONT:case Iu.NOBR:case Iu.SMALL:case Iu.STRIKE:case Iu.STRONG:{eh(e,t);break}case Iu.P:{cd(e);break}case Iu.DL:case Iu.UL:case Iu.OL:case Iu.DIR:case Iu.DIV:case Iu.NAV:case Iu.PRE:case Iu.MAIN:case Iu.MENU:case Iu.ASIDE:case Iu.BUTTON:case Iu.CENTER:case Iu.FIGURE:case Iu.FOOTER:case Iu.HEADER:case Iu.HGROUP:case Iu.DIALOG:case Iu.ADDRESS:case Iu.ARTICLE:case Iu.DETAILS:case Iu.SEARCH:case Iu.SECTION:case Iu.SUMMARY:case Iu.LISTING:case Iu.FIELDSET:case Iu.BLOCKQUOTE:case Iu.FIGCAPTION:{ad(e,t);break}case Iu.LI:{ud(e);break}case Iu.DD:case Iu.DT:{fd(e,t);break}case Iu.H1:case Iu.H2:case Iu.H3:case Iu.H4:case Iu.H5:case Iu.H6:{hd(e);break}case Iu.BR:{pd(e);break}case Iu.BODY:{sd(e,t);break}case Iu.HTML:{od(e,t);break}case Iu.FORM:{ld(e);break}case Iu.APPLET:case Iu.OBJECT:case Iu.MARQUEE:{dd(e,t);break}case Iu.TEMPLATE:{mh(e,t);break}default:{md(e,t)}}}function bd(e,t){if(e.tmplInsertionModeStack.length>0){Jd(e,t)}else{rh(e,t)}}function kd(e,t){var n;if(t.tagID===Iu.SCRIPT){(n=e.scriptHandler)===null||n===void 0?void 0:n.call(e,e.openElements.current)}e.openElements.pop();e.insertionMode=e.originalInsertionMode}function yd(e,t){e._err(t,vu.eofInElementThatCanContainOnlyText);e.openElements.pop();e.insertionMode=e.originalInsertionMode;e.onEof(t)}function wd(e,t){if(Vf.has(e.openElements.currentTagId)){e.pendingCharacterTokens.length=0;e.hasNonWhitespacePendingCharacterToken=false;e.originalInsertionMode=e.insertionMode;e.insertionMode=jf.IN_TABLE_TEXT;switch(t.type){case Au.CHARACTER:{Od(e,t);break}case Au.WHITESPACE_CHARACTER:{Id(e,t);break}}}else{Ld(e,t)}}function Ed(e,t){e.openElements.clearBackToTableContext();e.activeFormattingElements.insertMarker();e._insertElement(t,Du.HTML);e.insertionMode=jf.IN_CAPTION}function Td(e,t){e.openElements.clearBackToTableContext();e._insertElement(t,Du.HTML);e.insertionMode=jf.IN_COLUMN_GROUP}function vd(e,t){e.openElements.clearBackToTableContext();e._insertFakeElement(Lu.COLGROUP,Iu.COLGROUP);e.insertionMode=jf.IN_COLUMN_GROUP;qd(e,t)}function Sd(e,t){e.openElements.clearBackToTableContext();e._insertElement(t,Du.HTML);e.insertionMode=jf.IN_TABLE_BODY}function xd(e,t){e.openElements.clearBackToTableContext();e._insertFakeElement(Lu.TBODY,Iu.TBODY);e.insertionMode=jf.IN_TABLE_BODY;Hd(e,t)}function Ad(e,t){if(e.openElements.hasInTableScope(Iu.TABLE)){e.openElements.popUntilTagNamePopped(Iu.TABLE);e._resetInsertionMode();e._processStartTag(t)}}function Cd(e,t){if(zh(t)){e._appendElement(t,Du.HTML)}else{Ld(e,t)}t.ackSelfClosing=true}function Dd(e,t){if(!e.formElement&&e.openElements.tmplCount===0){e._insertElement(t,Du.HTML);e.formElement=e.openElements.current;e.openElements.pop()}}function _d(e,t){switch(t.tagID){case Iu.TD:case Iu.TH:case Iu.TR:{xd(e,t);break}case Iu.STYLE:case Iu.SCRIPT:case Iu.TEMPLATE:{dh(e,t);break}case Iu.COL:{vd(e,t);break}case Iu.FORM:{Dd(e,t);break}case Iu.TABLE:{Ad(e,t);break}case Iu.TBODY:case Iu.TFOOT:case Iu.THEAD:{Sd(e,t);break}case Iu.INPUT:{Cd(e,t);break}case Iu.CAPTION:{Ed(e,t);break}case Iu.COLGROUP:{Td(e,t);break}default:{Ld(e,t)}}}function Rd(e,t){switch(t.tagID){case Iu.TABLE:{if(e.openElements.hasInTableScope(Iu.TABLE)){e.openElements.popUntilTagNamePopped(Iu.TABLE);e._resetInsertionMode()}break}case Iu.TEMPLATE:{mh(e,t);break}case Iu.BODY:case Iu.CAPTION:case Iu.COL:case Iu.COLGROUP:case Iu.HTML:case Iu.TBODY:case Iu.TD:case Iu.TFOOT:case Iu.TH:case Iu.THEAD:case Iu.TR:{break}default:{Ld(e,t)}}}function Ld(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=true;vh(e,t);e.fosterParentingEnabled=n}function Id(e,t){e.pendingCharacterTokens.push(t)}function Od(e,t){e.pendingCharacterTokens.push(t);e.hasNonWhitespacePendingCharacterToken=true}function Nd(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken){for(;n<e.pendingCharacterTokens.length;n++){Ld(e,e.pendingCharacterTokens[n])}}else{for(;n<e.pendingCharacterTokens.length;n++){e._insertCharacters(e.pendingCharacterTokens[n])}}e.insertionMode=e.originalInsertionMode;e._processToken(t)}const Pd=new Set([Iu.CAPTION,Iu.COL,Iu.COLGROUP,Iu.TBODY,Iu.TD,Iu.TFOOT,Iu.TH,Iu.THEAD,Iu.TR]);function Md(e,t){const n=t.tagID;if(Pd.has(n)){if(e.openElements.hasInTableScope(Iu.CAPTION)){e.openElements.generateImpliedEndTags();e.openElements.popUntilTagNamePopped(Iu.CAPTION);e.activeFormattingElements.clearToLastMarker();e.insertionMode=jf.IN_TABLE;_d(e,t)}}else{rd(e,t)}}function Ud(e,t){const n=t.tagID;switch(n){case Iu.CAPTION:case Iu.TABLE:{if(e.openElements.hasInTableScope(Iu.CAPTION)){e.openElements.generateImpliedEndTags();e.openElements.popUntilTagNamePopped(Iu.CAPTION);e.activeFormattingElements.clearToLastMarker();e.insertionMode=jf.IN_TABLE;if(n===Iu.TABLE){Rd(e,t)}}break}case Iu.BODY:case Iu.COL:case Iu.COLGROUP:case Iu.HTML:case Iu.TBODY:case Iu.TD:case Iu.TFOOT:case Iu.TH:case Iu.THEAD:case Iu.TR:{break}default:{gd(e,t)}}}function qd(e,t){switch(t.tagID){case Iu.HTML:{rd(e,t);break}case Iu.COL:{e._appendElement(t,Du.HTML);t.ackSelfClosing=true;break}case Iu.TEMPLATE:{dh(e,t);break}default:{Fd(e,t)}}}function Bd(e,t){switch(t.tagID){case Iu.COLGROUP:{if(e.openElements.currentTagId===Iu.COLGROUP){e.openElements.pop();e.insertionMode=jf.IN_TABLE}break}case Iu.TEMPLATE:{mh(e,t);break}case Iu.COL:{break}default:{Fd(e,t)}}}function Fd(e,t){if(e.openElements.currentTagId===Iu.COLGROUP){e.openElements.pop();e.insertionMode=jf.IN_TABLE;e._processToken(t)}}function Hd(e,t){switch(t.tagID){case Iu.TR:{e.openElements.clearBackToTableBodyContext();e._insertElement(t,Du.HTML);e.insertionMode=jf.IN_ROW;break}case Iu.TH:case Iu.TD:{e.openElements.clearBackToTableBodyContext();e._insertFakeElement(Lu.TR,Iu.TR);e.insertionMode=jf.IN_ROW;jd(e,t);break}case Iu.CAPTION:case Iu.COL:case Iu.COLGROUP:case Iu.TBODY:case Iu.TFOOT:case Iu.THEAD:{if(e.openElements.hasTableBodyContextInTableScope()){e.openElements.clearBackToTableBodyContext();e.openElements.pop();e.insertionMode=jf.IN_TABLE;_d(e,t)}break}default:{_d(e,t)}}}function zd(e,t){const n=t.tagID;switch(t.tagID){case Iu.TBODY:case Iu.TFOOT:case Iu.THEAD:{if(e.openElements.hasInTableScope(n)){e.openElements.clearBackToTableBodyContext();e.openElements.pop();e.insertionMode=jf.IN_TABLE}break}case Iu.TABLE:{if(e.openElements.hasTableBodyContextInTableScope()){e.openElements.clearBackToTableBodyContext();e.openElements.pop();e.insertionMode=jf.IN_TABLE;Rd(e,t)}break}case Iu.BODY:case Iu.CAPTION:case Iu.COL:case Iu.COLGROUP:case Iu.HTML:case Iu.TD:case Iu.TH:case Iu.TR:{break}default:{Rd(e,t)}}}function jd(e,t){switch(t.tagID){case Iu.TH:case Iu.TD:{e.openElements.clearBackToTableRowContext();e._insertElement(t,Du.HTML);e.insertionMode=jf.IN_CELL;e.activeFormattingElements.insertMarker();break}case Iu.CAPTION:case Iu.COL:case Iu.COLGROUP:case Iu.TBODY:case Iu.TFOOT:case Iu.THEAD:case Iu.TR:{if(e.openElements.hasInTableScope(Iu.TR)){e.openElements.clearBackToTableRowContext();e.openElements.pop();e.insertionMode=jf.IN_TABLE_BODY;Hd(e,t)}break}default:{_d(e,t)}}}function Gd(e,t){switch(t.tagID){case Iu.TR:{if(e.openElements.hasInTableScope(Iu.TR)){e.openElements.clearBackToTableRowContext();e.openElements.pop();e.insertionMode=jf.IN_TABLE_BODY}break}case Iu.TABLE:{if(e.openElements.hasInTableScope(Iu.TR)){e.openElements.clearBackToTableRowContext();e.openElements.pop();e.insertionMode=jf.IN_TABLE_BODY;zd(e,t)}break}case Iu.TBODY:case Iu.TFOOT:case Iu.THEAD:{if(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(Iu.TR)){e.openElements.clearBackToTableRowContext();e.openElements.pop();e.insertionMode=jf.IN_TABLE_BODY;zd(e,t)}break}case Iu.BODY:case Iu.CAPTION:case Iu.COL:case Iu.COLGROUP:case Iu.HTML:case Iu.TD:case Iu.TH:{break}default:{Rd(e,t)}}}function Vd(e,t){const n=t.tagID;if(Pd.has(n)){if(e.openElements.hasInTableScope(Iu.TD)||e.openElements.hasInTableScope(Iu.TH)){e._closeTableCell();jd(e,t)}}else{rd(e,t)}}function Yd(e,t){const n=t.tagID;switch(n){case Iu.TD:case Iu.TH:{if(e.openElements.hasInTableScope(n)){e.openElements.generateImpliedEndTags();e.openElements.popUntilTagNamePopped(n);e.activeFormattingElements.clearToLastMarker();e.insertionMode=jf.IN_ROW}break}case Iu.TABLE:case Iu.TBODY:case Iu.TFOOT:case Iu.THEAD:case Iu.TR:{if(e.openElements.hasInTableScope(n)){e._closeTableCell();Gd(e,t)}break}case Iu.BODY:case Iu.CAPTION:case Iu.COL:case Iu.COLGROUP:case Iu.HTML:{break}default:{gd(e,t)}}}function Wd(e,t){switch(t.tagID){case Iu.HTML:{rd(e,t);break}case Iu.OPTION:{if(e.openElements.currentTagId===Iu.OPTION){e.openElements.pop()}e._insertElement(t,Du.HTML);break}case Iu.OPTGROUP:{if(e.openElements.currentTagId===Iu.OPTION){e.openElements.pop()}if(e.openElements.currentTagId===Iu.OPTGROUP){e.openElements.pop()}e._insertElement(t,Du.HTML);break}case Iu.HR:{if(e.openElements.currentTagId===Iu.OPTION){e.openElements.pop()}if(e.openElements.currentTagId===Iu.OPTGROUP){e.openElements.pop()}e._appendElement(t,Du.HTML);t.ackSelfClosing=true;break}case Iu.INPUT:case Iu.KEYGEN:case Iu.TEXTAREA:case Iu.SELECT:{if(e.openElements.hasInSelectScope(Iu.SELECT)){e.openElements.popUntilTagNamePopped(Iu.SELECT);e._resetInsertionMode();if(t.tagID!==Iu.SELECT){e._processStartTag(t)}}break}case Iu.SCRIPT:case Iu.TEMPLATE:{dh(e,t);break}}}function Xd(e,t){switch(t.tagID){case Iu.OPTGROUP:{if(e.openElements.stackTop>0&&e.openElements.currentTagId===Iu.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===Iu.OPTGROUP){e.openElements.pop()}if(e.openElements.currentTagId===Iu.OPTGROUP){e.openElements.pop()}break}case Iu.OPTION:{if(e.openElements.currentTagId===Iu.OPTION){e.openElements.pop()}break}case Iu.SELECT:{if(e.openElements.hasInSelectScope(Iu.SELECT)){e.openElements.popUntilTagNamePopped(Iu.SELECT);e._resetInsertionMode()}break}case Iu.TEMPLATE:{mh(e,t);break}}}function Kd(e,t){const n=t.tagID;if(n===Iu.CAPTION||n===Iu.TABLE||n===Iu.TBODY||n===Iu.TFOOT||n===Iu.THEAD||n===Iu.TR||n===Iu.TD||n===Iu.TH){e.openElements.popUntilTagNamePopped(Iu.SELECT);e._resetInsertionMode();e._processStartTag(t)}else{Wd(e,t)}}function $d(e,t){const n=t.tagID;if(n===Iu.CAPTION||n===Iu.TABLE||n===Iu.TBODY||n===Iu.TFOOT||n===Iu.THEAD||n===Iu.TR||n===Iu.TD||n===Iu.TH){if(e.openElements.hasInTableScope(n)){e.openElements.popUntilTagNamePopped(Iu.SELECT);e._resetInsertionMode();e.onEndTag(t)}}else{Xd(e,t)}}function Qd(e,t){switch(t.tagID){case Iu.BASE:case Iu.BASEFONT:case Iu.BGSOUND:case Iu.LINK:case Iu.META:case Iu.NOFRAMES:case Iu.SCRIPT:case Iu.STYLE:case Iu.TEMPLATE:case Iu.TITLE:{dh(e,t);break}case Iu.CAPTION:case Iu.COLGROUP:case Iu.TBODY:case Iu.TFOOT:case Iu.THEAD:{e.tmplInsertionModeStack[0]=jf.IN_TABLE;e.insertionMode=jf.IN_TABLE;_d(e,t);break}case Iu.COL:{e.tmplInsertionModeStack[0]=jf.IN_COLUMN_GROUP;e.insertionMode=jf.IN_COLUMN_GROUP;qd(e,t);break}case Iu.TR:{e.tmplInsertionModeStack[0]=jf.IN_TABLE_BODY;e.insertionMode=jf.IN_TABLE_BODY;Hd(e,t);break}case Iu.TD:case Iu.TH:{e.tmplInsertionModeStack[0]=jf.IN_ROW;e.insertionMode=jf.IN_ROW;jd(e,t);break}default:{e.tmplInsertionModeStack[0]=jf.IN_BODY;e.insertionMode=jf.IN_BODY;rd(e,t)}}}function Zd(e,t){if(t.tagID===Iu.TEMPLATE){mh(e,t)}}function Jd(e,t){if(e.openElements.tmplCount>0){e.openElements.popUntilTagNamePopped(Iu.TEMPLATE);e.activeFormattingElements.clearToLastMarker();e.tmplInsertionModeStack.shift();e._resetInsertionMode();e.onEof(t)}else{rh(e,t)}}function ep(e,t){if(t.tagID===Iu.HTML){rd(e,t)}else{np(e,t)}}function tp(e,t){var n;if(t.tagID===Iu.HTML){if(!e.fragmentContext){e.insertionMode=jf.AFTER_AFTER_BODY}if(e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===Iu.HTML){e._setEndLocation(e.openElements.items[0],t);const i=e.openElements.items[1];if(i&&!((n=e.treeAdapter.getNodeSourceCodeLocation(i))===null||n===void 0?void 0:n.endTag)){e._setEndLocation(i,t)}}}else{np(e,t)}}function np(e,t){e.insertionMode=jf.IN_BODY;vh(e,t)}function ip(e,t){switch(t.tagID){case Iu.HTML:{rd(e,t);break}case Iu.FRAMESET:{e._insertElement(t,Du.HTML);break}case Iu.FRAME:{e._appendElement(t,Du.HTML);t.ackSelfClosing=true;break}case Iu.NOFRAMES:{dh(e,t);break}}}function rp(e,t){if(t.tagID===Iu.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()){e.openElements.pop();if(!e.fragmentContext&&e.openElements.currentTagId!==Iu.FRAMESET){e.insertionMode=jf.AFTER_FRAMESET}}}function sp(e,t){switch(t.tagID){case Iu.HTML:{rd(e,t);break}case Iu.NOFRAMES:{dh(e,t);break}}}function op(e,t){if(t.tagID===Iu.HTML){e.insertionMode=jf.AFTER_AFTER_FRAMESET}}function ap(e,t){if(t.tagID===Iu.HTML){rd(e,t)}else{lp(e,t)}}function lp(e,t){e.insertionMode=jf.IN_BODY;vh(e,t)}function cp(e,t){switch(t.tagID){case Iu.HTML:{rd(e,t);break}case Iu.NOFRAMES:{dh(e,t);break}}}function up(e,t){t.chars=mu;e._insertCharacters(t)}function fp(e,t){e._insertCharacters(t);e.framesetOk=false}function hp(e){while(e.treeAdapter.getNamespaceURI(e.openElements.current)!==Du.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current)){e.openElements.pop()}}function dp(e,t){if(If(t)){hp(e);e._startTagOutsideForeignContent(t)}else{const n=e._getAdjustedCurrentElement();const i=e.treeAdapter.getNamespaceURI(n);if(i===Du.MATHML){Of(t)}else if(i===Du.SVG){Mf(t);Nf(t)}Pf(t);if(t.selfClosing){e._appendElement(t,i)}else{e._insertElement(t,i)}t.ackSelfClosing=true}}function pp(e,t){if(t.tagID===Iu.P||t.tagID===Iu.BR){hp(e);e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const i=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(i)===Du.HTML){e._endTagOutsideForeignContent(t);break}const r=e.treeAdapter.getTagName(i);if(r.toLowerCase()===t.tagName){t.tagName=r;e.openElements.shortenToLength(n);break}}}function mp(e,t){return Wf.parse(e,t)}function gp(e,t,n){if(typeof e==="string"){n=t;t=e;e=null}const i=Wf.getFragmentParser(e,n);i.tokenizer.write(t,true);return i.getFragment()}function bp(e){if(!e||typeof e!=="object"){return""}if("position"in e||"type"in e){return yp(e.position)}if("start"in e||"end"in e){return yp(e)}if("line"in e||"column"in e){return kp(e)}return""}function kp(e){return wp(e&&e.line)+":"+wp(e&&e.column)}function yp(e){return kp(e&&e.start)+"-"+kp(e&&e.end)}function wp(e){return e&&typeof e==="number"?e:1}class Ep extends Error{constructor(e,t,n){super();if(typeof t==="string"){n=t;t=undefined}let i="";let r={};let s=false;if(t){if("line"in t&&"column"in t){r={place:t}}else if("start"in t&&"end"in t){r={place:t}}else if("type"in t){r={ancestors:[t],place:t.position}}else{r={...t}}}if(typeof e==="string"){i=e}else if(!r.cause&&e){s=true;i=e.message;r.cause=e}if(!r.ruleId&&!r.source&&typeof n==="string"){const e=n.indexOf(":");if(e===-1){r.ruleId=n}else{r.source=n.slice(0,e);r.ruleId=n.slice(e+1)}}if(!r.place&&r.ancestors&&r.ancestors){const e=r.ancestors[r.ancestors.length-1];if(e){r.place=e.position}}const o=r.place&&"start"in r.place?r.place.start:r.place;this.ancestors=r.ancestors||undefined;this.cause=r.cause||undefined;this.column=o?o.column:undefined;this.fatal=undefined;this.message=i;this.line=o?o.line:undefined;this.name=bp(r.place)||"1:1";this.place=r.place||undefined;this.reason=this.message;this.ruleId=r.ruleId||undefined;this.source=r.source||undefined;this.stack=s&&r.cause&&typeof r.cause.stack==="string"?r.cause.stack:""}}Ep.prototype.file="";Ep.prototype.name="";Ep.prototype.reason="";Ep.prototype.message="";Ep.prototype.stack="";Ep.prototype.column=undefined;Ep.prototype.line=undefined;Ep.prototype.ancestors=undefined;Ep.prototype.cause=undefined;Ep.prototype.fatal=undefined;Ep.prototype.place=undefined;Ep.prototype.ruleId=undefined;Ep.prototype.source=undefined;const Tp={basename:vp,dirname:Sp,extname:xp,join:Ap,sep:"/"};function vp(e,t){if(t!==undefined&&typeof t!=="string"){throw new TypeError('"ext" argument must be a string')}_p(e);let n=0;let i=-1;let r=e.length;let s;if(t===undefined||t.length===0||t.length>e.length){while(r--){if(e.codePointAt(r)===47){if(s){n=r+1;break}}else if(i<0){s=true;i=r+1}}return i<0?"":e.slice(n,i)}if(t===e){return""}let o=-1;let a=t.length-1;while(r--){if(e.codePointAt(r)===47){if(s){n=r+1;break}}else{if(o<0){s=true;o=r+1}if(a>-1){if(e.codePointAt(r)===t.codePointAt(a--)){if(a<0){i=r}}else{a=-1;i=o}}}}if(n===i){i=o}else if(i<0){i=e.length}return e.slice(n,i)}function Sp(e){_p(e);if(e.length===0){return"."}let t=-1;let n=e.length;let i;while(--n){if(e.codePointAt(n)===47){if(i){t=n;break}}else if(!i){i=true}}return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function xp(e){_p(e);let t=e.length;let n=-1;let i=0;let r=-1;let s=0;let o;while(t--){const a=e.codePointAt(t);if(a===47){if(o){i=t+1;break}continue}if(n<0){o=true;n=t+1}if(a===46){if(r<0){r=t}else if(s!==1){s=1}}else if(r>-1){s=-1}}if(r<0||n<0||s===0||s===1&&r===n-1&&r===i+1){return""}return e.slice(r,n)}function Ap(...e){let t=-1;let n;while(++t<e.length){_p(e[t]);if(e[t]){n=n===undefined?e[t]:n+"/"+e[t]}}return n===undefined?".":Cp(n)}function Cp(e){_p(e);const t=e.codePointAt(0)===47;let n=Dp(e,!t);if(n.length===0&&!t){n="."}if(n.length>0&&e.codePointAt(e.length-1)===47){n+="/"}return t?"/"+n:n}function Dp(e,t){let n="";let i=0;let r=-1;let s=0;let o=-1;let a;let l;while(++o<=e.length){if(o<e.length){a=e.codePointAt(o)}else if(a===47){break}else{a=47}if(a===47){if(r===o-1||s===1);else if(r!==o-1&&s===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){l=n.lastIndexOf("/");if(l!==n.length-1){if(l<0){n="";i=0}else{n=n.slice(0,l);i=n.length-1-n.lastIndexOf("/")}r=o;s=0;continue}}else if(n.length>0){n="";i=0;r=o;s=0;continue}}if(t){n=n.length>0?n+"/..":"..";i=2}}else{if(n.length>0){n+="/"+e.slice(r+1,o)}else{n=e.slice(r+1,o)}i=o-r-1}r=o;s=0}else if(a===46&&s>-1){s++}else{s=-1}}return n}function _p(e){if(typeof e!=="string"){throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}}const Rp={cwd:Lp};function Lp(){return"/"}function Ip(e){return Boolean(e!==null&&typeof e==="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===undefined)}function Op(e){if(typeof e==="string"){e=new URL(e)}else if(!Ip(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");t.code="ERR_INVALID_ARG_TYPE";throw t}if(e.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");e.code="ERR_INVALID_URL_SCHEME";throw e}return Np(e)}function Np(e){if(e.hostname!==""){const e=new TypeError('File URL host must be "localhost" or empty on darwin');e.code="ERR_INVALID_FILE_URL_HOST";throw e}const t=e.pathname;let n=-1;while(++n<t.length){if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const e=t.codePointAt(n+2);if(e===70||e===102){const e=new TypeError("File URL path must not include encoded / characters");e.code="ERR_INVALID_FILE_URL_PATH";throw e}}}return decodeURIComponent(t)}const Pp=["history","path","basename","stem","extname","dirname"];class Mp{constructor(e){let t;if(!e){t={}}else if(Ip(e)){t={path:e}}else if(typeof e==="string"||Fp(e)){t={value:e}}else{t=e}this.cwd="cwd"in t?"":Rp.cwd();this.data={};this.history=[];this.messages=[];let n=-1;while(++n<Pp.length){const e=Pp[n];if(e in t&&t[e]!==undefined&&t[e]!==null){this[e]=e==="history"?[...t[e]]:t[e]}}let i;for(i in t){if(!Pp.includes(i)){this[i]=t[i]}}}get basename(){return typeof this.path==="string"?Tp.basename(this.path):undefined}set basename(e){qp(e,"basename");Up(e,"basename");this.path=Tp.join(this.dirname||"",e)}get dirname(){return typeof this.path==="string"?Tp.dirname(this.path):undefined}set dirname(e){Bp(this.basename,"dirname");this.path=Tp.join(e||"",this.basename)}get extname(){return typeof this.path==="string"?Tp.extname(this.path):undefined}set extname(e){Up(e,"extname");Bp(this.dirname,"extname");if(e){if(e.codePointAt(0)!==46){throw new Error("`extname` must start with `.`")}if(e.includes(".",1)){throw new Error("`extname` cannot contain multiple dots")}}this.path=Tp.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){if(Ip(e)){e=Op(e)}qp(e,"path");if(this.path!==e){this.history.push(e)}}get stem(){return typeof this.path==="string"?Tp.basename(this.path,this.extname):undefined}set stem(e){qp(e,"stem");Up(e,"stem");this.path=Tp.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const i=this.message(e,t,n);i.fatal=true;throw i}info(e,t,n){const i=this.message(e,t,n);i.fatal=undefined;return i}message(e,t,n){const i=new Ep(e,t,n);if(this.path){i.name=this.path+":"+i.name;i.file=this.path}i.fatal=false;this.messages.push(i);return i}toString(e){if(this.value===undefined){return""}if(typeof this.value==="string"){return this.value}const t=new TextDecoder(e||undefined);return t.decode(this.value)}}function Up(e,t){if(e&&e.includes(Tp.sep)){throw new Error("`"+t+"` cannot be a path: did not expect `"+Tp.sep+"`")}}function qp(e,t){if(!e){throw new Error("`"+t+"` cannot be empty")}}function Bp(e,t){if(!e){throw new Error("Setting `"+t+"` requires `path` to be set too")}}function Fp(e){return Boolean(e&&typeof e==="object"&&"byteLength"in e&&"byteOffset"in e)}const Hp={abandonedHeadElementChild:{reason:"Unexpected metadata element after head",description:"Unexpected element after head. Expected the element before `</head>`",url:false},abruptClosingOfEmptyComment:{reason:"Unexpected abruptly closed empty comment",description:"Unexpected `>` or `->`. Expected `--\x3e` to close comments"},abruptDoctypePublicIdentifier:{reason:"Unexpected abruptly closed public identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"},abruptDoctypeSystemIdentifier:{reason:"Unexpected abruptly closed system identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"},absenceOfDigitsInNumericCharacterReference:{reason:"Unexpected non-digit at start of numeric character reference",description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},cdataInHtmlContent:{reason:"Unexpected CDATA section in HTML",description:"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},characterReferenceOutsideUnicodeRange:{reason:"Unexpected too big numeric character reference",description:"Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)"},closingOfElementWithOpenChildElements:{reason:"Unexpected closing tag with open child elements",description:"Unexpectedly closing tag. Expected other tags to be closed first",url:false},controlCharacterInInputStream:{reason:"Unexpected control character",description:"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},controlCharacterReference:{reason:"Unexpected control character reference",description:"Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace"},disallowedContentInNoscriptInHead:{reason:"Disallowed content inside `<noscript>` in `<head>`",description:"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`",url:false},duplicateAttribute:{reason:"Unexpected duplicate attribute",description:"Unexpectedly double attribute. Expected attributes to occur only once"},endTagWithAttributes:{reason:"Unexpected attribute on closing tag",description:"Unexpected attribute. Expected `>` instead"},endTagWithTrailingSolidus:{reason:"Unexpected slash at end of closing tag",description:"Unexpected `%c-1`. Expected `>` instead"},endTagWithoutMatchingOpenElement:{reason:"Unexpected unopened end tag",description:"Unexpected end tag. Expected no end tag or another end tag",url:false},eofBeforeTagName:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected tag name instead"},eofInCdata:{reason:"Unexpected end of file in CDATA",description:"Unexpected end of file. Expected `]]>` to close the CDATA"},eofInComment:{reason:"Unexpected end of file in comment",description:"Unexpected end of file. Expected `--\x3e` to close the comment"},eofInDoctype:{reason:"Unexpected end of file in doctype",description:"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},eofInElementThatCanContainOnlyText:{reason:"Unexpected end of file in element that can only contain text",description:"Unexpected end of file. Expected text or a closing tag",url:false},eofInScriptHtmlCommentLikeText:{reason:"Unexpected end of file in comment inside script",description:"Unexpected end of file. Expected `--\x3e` to close the comment"},eofInTag:{reason:"Unexpected end of file in tag",description:"Unexpected end of file. Expected `>` to close the tag"},incorrectlyClosedComment:{reason:"Incorrectly closed comment",description:"Unexpected `%c-1`. Expected `--\x3e` to close the comment"},incorrectlyOpenedComment:{reason:"Incorrectly opened comment",description:"Unexpected `%c`. Expected `\x3c!--` to open the comment"},invalidCharacterSequenceAfterDoctypeName:{reason:"Invalid sequence after doctype name",description:"Unexpected sequence at `%c`. Expected `public` or `system`"},invalidFirstCharacterOfTagName:{reason:"Invalid first character in tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},misplacedDoctype:{reason:"Misplaced doctype",description:"Unexpected doctype. Expected doctype before head",url:false},misplacedStartTagForHeadElement:{reason:"Misplaced `<head>` start tag",description:"Unexpected start tag `<head>`. Expected `<head>` directly after doctype",url:false},missingAttributeValue:{reason:"Missing attribute value",description:"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},missingDoctype:{reason:"Missing doctype before other content",description:"Expected a `<!doctype html>` before anything else",url:false},missingDoctypeName:{reason:"Missing doctype name",description:"Unexpected doctype end at `%c`. Expected `html` instead"},missingDoctypePublicIdentifier:{reason:"Missing public identifier in doctype",description:"Unexpected `%c`. Expected identifier for `public` instead"},missingDoctypeSystemIdentifier:{reason:"Missing system identifier in doctype",description:'Unexpected `%c`. Expected identifier for `system` instead (suggested: `"about:legacy-compat"`)'},missingEndTagName:{reason:"Missing name in end tag",description:"Unexpected `%c`. Expected an ASCII letter instead"},missingQuoteBeforeDoctypePublicIdentifier:{reason:"Missing quote before public identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingQuoteBeforeDoctypeSystemIdentifier:{reason:"Missing quote before system identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingSemicolonAfterCharacterReference:{reason:"Missing semicolon after character reference",description:"Unexpected `%c`. Expected `;` instead"},missingWhitespaceAfterDoctypePublicKeyword:{reason:"Missing whitespace after public identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceAfterDoctypeSystemKeyword:{reason:"Missing whitespace after system identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBeforeDoctypeName:{reason:"Missing whitespace before doctype name",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenAttributes:{reason:"Missing whitespace between attributes",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:{reason:"Missing whitespace between public and system identifiers in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},nestedComment:{reason:"Unexpected nested comment",description:"Unexpected `\x3c!--`. Expected `--\x3e`"},nestedNoscriptInHead:{reason:"Unexpected nested `<noscript>` in `<head>`",description:"Unexpected `<noscript>`. Expected a closing tag or a meta element",url:false},nonConformingDoctype:{reason:"Unexpected non-conforming doctype declaration",description:'Expected `<!doctype html>` or `<!doctype html system "about:legacy-compat">`',url:false},nonVoidHtmlElementStartTagWithTrailingSolidus:{reason:"Unexpected trailing slash on start tag of non-void element",description:"Unexpected `/`. Expected `>` instead"},noncharacterCharacterReference:{reason:"Unexpected noncharacter code point referenced by character reference",description:"Unexpected code point. Do not use noncharacters in HTML"},noncharacterInInputStream:{reason:"Unexpected noncharacter character",description:"Unexpected code point `%x`. Do not use noncharacters in HTML"},nullCharacterReference:{reason:"Unexpected NULL character referenced by character reference",description:"Unexpected code point. Do not use NULL characters in HTML"},openElementsLeftAfterEof:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected closing tag instead",url:false},surrogateCharacterReference:{reason:"Unexpected surrogate character referenced by character reference",description:"Unexpected code point. Do not use lone surrogate characters in HTML"},surrogateInInputStream:{reason:"Unexpected surrogate character",description:"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},unexpectedCharacterAfterDoctypeSystemIdentifier:{reason:"Invalid character after system identifier in doctype",description:"Unexpected character at `%c`. Expected `>`"},unexpectedCharacterInAttributeName:{reason:"Unexpected character in attribute name",description:"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},unexpectedCharacterInUnquotedAttributeValue:{reason:"Unexpected character in unquoted attribute value",description:"Unexpected `%c`. Quote the attribute value to include it"},unexpectedEqualsSignBeforeAttributeName:{reason:"Unexpected equals sign before attribute name",description:"Unexpected `%c`. Add an attribute name before it"},unexpectedNullCharacter:{reason:"Unexpected NULL character",description:"Unexpected code point `%x`. Do not use NULL characters in HTML"},unexpectedQuestionMarkInsteadOfTagName:{reason:"Unexpected question mark instead of tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},unexpectedSolidusInTag:{reason:"Unexpected slash in tag",description:"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},unknownNamedCharacterReference:{reason:"Unexpected unknown named character reference",description:"Unexpected character reference. Expected known named character references"}};const zp="https://html.spec.whatwg.org/multipage/parsing.html#parse-error-";const jp=/-[a-z]/g;const Gp=/%c(?:([-+])(\d+))?/g;const Vp=/%x/g;const Yp={2:true,1:false,0:null};const Wp={};function Xp(e,t){const n=t||Wp;const i=n.onerror;const r=e instanceof Mp?e:new Mp(e);const s=n.fragment?gp:mp;const o=String(r);const a=s(o,{sourceCodeLocationInfo:true,onParseError:n.onerror?l:null,scriptingEnabled:false});return ou(a,{file:r,space:n.space,verbose:n.verbose});function l(e){const t=e.code;const s=Kp(t);const a=n[s];const l=a===null||a===undefined?true:a;const c=typeof l==="number"?l:l?1:0;if(c){const n=Hp[s];const o=new Ep(u(n.reason),{place:{start:{line:e.startLine,column:e.startCol,offset:e.startOffset},end:{line:e.endLine,column:e.endCol,offset:e.endOffset}},ruleId:t,source:"hast-util-from-html"});if(r.path){o.file=r.path;o.name=r.path+":"+o.name}o.fatal=Yp[c];o.note=u(n.description);o.url=n.url===false?undefined:zp+t;i(o)}function u(t){return t.replace(Gp,n).replace(Vp,i);function n(t,n,i){const r=(i?Number.parseInt(i,10):0)*(n==="-"?-1:1);const s=o.charAt(e.startOffset+r);return Qp(s)}function i(){return Zp(o.charCodeAt(e.startOffset))}}}}function Kp(e){return e.replace(jp,$p)}function $p(e){return e.charAt(1).toUpperCase()}function Qp(e){return e==="`"?"` ` `":e}function Zp(e){return"0x"+e.toString(16).toUpperCase()}function Jp(e){const t=this;const{emitParseErrors:n,...i}={...t.data("settings"),...e};t.parser=r;function r(e,t){return Xp(e,{...i,onerror:n?function(e){if(t.path){e.name=t.path+":"+e.name;e.file=t.path}t.messages.push(e)}:undefined})}}const em=nm("end");const tm=nm("start");function nm(e){return t;function t(t){const n=t&&t.position&&t.position[e]||{};if(typeof n.line==="number"&&n.line>0&&typeof n.column==="number"&&n.column>0){return{line:n.line,column:n.column,offset:typeof n.offset==="number"&&n.offset>-1?n.offset:undefined}}}}function im(e){const t=tm(e);const n=em(e);if(t&&n){return{start:t,end:n}}}const rm=["ariaDescribedBy","ariaLabel","ariaLabelledBy"];const sm={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...rm,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...rm],h2:[["id","footnote-label"],["className","sr-only"]],img:[...rm,"longDesc","src"],input:[["disabled",true],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...rm,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...rm],table:[...rm],ul:[...rm,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","disabled","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rel","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","target","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:true,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]};const om={}.hasOwnProperty;function am(e,t){let n={type:"root",children:[]};const i={schema:t?{...sm,...t}:sm,stack:[]};const r=lm(i,e);if(r){if(Array.isArray(r)){if(r.length===1){n=r[0]}else{n.children=r}}else{n=r}}return n}function lm(e,t){if(t&&typeof t==="object"){const n=t;const i=typeof n.type==="string"?n.type:"";switch(i){case"comment":{return cm(e,n)}case"doctype":{return um(e,n)}case"element":{return fm(e,n)}case"root":{return hm(e,n)}case"text":{return dm(e,n)}}}}function cm(e,t){if(e.schema.allowComments){const e=typeof t.value==="string"?t.value:"";const n=e.indexOf("--\x3e");const i=n<0?e:e.slice(0,n);const r={type:"comment",value:i};ym(r,t);return r}}function um(e,t){if(e.schema.allowDoctypes){const e={type:"doctype"};ym(e,t);return e}}function fm(e,t){const n=typeof t.tagName==="string"?t.tagName:"";e.stack.push(n);const i=pm(e,t.children);const r=mm(e,t.properties);e.stack.pop();let s=false;if(n.length>0&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))){s=true;if(e.schema.ancestors&&om.call(e.schema.ancestors,n)){const t=e.schema.ancestors[n];let i=-1;s=false;while(++i<t.length){if(e.stack.includes(t[i])){s=true}}}}if(!s){return e.schema.strip&&!e.schema.strip.includes(n)?i:undefined}const o={type:"element",tagName:n,properties:r,children:i};ym(o,t);return o}function hm(e,t){const n=pm(e,t.children);const i={type:"root",children:n};ym(i,t);return i}function dm(e,t){const n=typeof t.value==="string"?t.value:"";const i={type:"text",value:n};ym(i,t);return i}function pm(e,t){const n=[];if(Array.isArray(t)){const i=t;let r=-1;while(++r<i.length){const t=lm(e,i[r]);if(t){if(Array.isArray(t)){n.push(...t)}else{n.push(t)}}}}return n}function mm(e,t){const n=e.stack[e.stack.length-1];const i=e.schema.attributes;const r=e.schema.required;const s=i&&om.call(i,n)?i[n]:undefined;const o=i&&om.call(i,"*")?i["*"]:undefined;const a=t&&typeof t==="object"?t:{};const l={};let c;for(c in a){if(om.call(a,c)){let t;if(s)t=wm(s,c);if(!t&&o)t=wm(o,c);if(t){const n=a[c];const i=Array.isArray(n)?gm(e,t,c,n):bm(e,t,c,n);if(i!==null&&i!==undefined){l[c]=i}}}}if(r&&om.call(r,n)){const e=r[n];for(c in e){if(om.call(e,c)&&!om.call(l,c)){l[c]=e[c]}}}return l}function gm(e,t,n,i){let r=-1;const s=[];while(++r<i.length){const o=bm(e,t,n,i[r]);if(typeof o==="number"||typeof o==="string"){s.push(o)}}return s}function bm(e,t,n,i){if(typeof i!=="boolean"&&typeof i!=="number"&&typeof i!=="string"){return}if(!km(e,n,i)){return}if(typeof t==="object"&&t.length>1){let e=false;let n=0;while(++n<t.length){const r=t[n];if(r&&typeof r==="object"&&"flags"in r){if(r.test(String(i))){e=true;break}}else if(r===i){e=true;break}}if(!e)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+i:i}function km(e,t,n){const i=e.schema.protocols&&om.call(e.schema.protocols,t)?e.schema.protocols[t]:undefined;if(!i||i.length===0){return true}const r=String(n);const s=r.indexOf(":");const o=r.indexOf("?");const a=r.indexOf("#");const l=r.indexOf("/");if(s<0||l>-1&&s>l||o>-1&&s>o||a>-1&&s>a){return true}let c=-1;while(++c<i.length){const e=i[c];if(s===e.length&&r.slice(0,e.length)===e){return true}}return false}function ym(e,t){const n=im(t);if(t.data){e.data=Rr(t.data)}if(n)e.position=n}function wm(e,t){let n;let i=-1;while(++i<e.length){const r=e[i];const s=typeof r==="string"?r:r[0];if(s===t){return r}if(s==="data*")n=r}if(t.length>4&&t.slice(0,4).toLowerCase()==="data"){return n}}function Em(e){return function(t){const n=am(t,e);return n}}const Tm=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class vm{constructor(e,t,n){this.property=e;this.normal=t;if(n){this.space=n}}}vm.prototype.property={};vm.prototype.normal={};vm.prototype.space=null;function Sm(e,t){const n={};const i={};let r=-1;while(++r<e.length){Object.assign(n,e[r].property);Object.assign(i,e[r].normal)}return new vm(n,i,t)}function xm(e){return e.toLowerCase()}class Am{constructor(e,t){this.property=e;this.attribute=t}}Am.prototype.space=null;Am.prototype.boolean=false;Am.prototype.booleanish=false;Am.prototype.overloadedBoolean=false;Am.prototype.number=false;Am.prototype.commaSeparated=false;Am.prototype.spaceSeparated=false;Am.prototype.commaOrSpaceSeparated=false;Am.prototype.mustUseProperty=false;Am.prototype.defined=false;let Cm=0;const Dm=Pm();const _m=Pm();const Rm=Pm();const Lm=Pm();const Im=Pm();const Om=Pm();const Nm=Pm();function Pm(){return 2**++Cm}const Mm=Object.freeze({__proto__:null,boolean:Dm,booleanish:_m,overloadedBoolean:Rm,number:Lm,spaceSeparated:Im,commaSeparated:Om,commaOrSpaceSeparated:Nm});const Um=Object.keys(Mm);class qm extends Am{constructor(e,t,n,i){let r=-1;super(e,t);Bm(this,"space",i);if(typeof n==="number"){while(++r<Um.length){const e=Um[r];Bm(this,Um[r],(n&Mm[e])===Mm[e])}}}}qm.prototype.defined=true;function Bm(e,t,n){if(n){e[t]=n}}const Fm={}.hasOwnProperty;function Hm(e){const t={};const n={};let i;for(i in e.properties){if(Fm.call(e.properties,i)){const r=e.properties[i];const s=new qm(i,e.transform(e.attributes||{},i),r,e.space);if(e.mustUseProperty&&e.mustUseProperty.includes(i)){s.mustUseProperty=true}t[i]=s;n[xm(i)]=i;n[xm(s.attribute)]=i}}return new vm(t,n,e.space)}const zm=Hm({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});const jm=Hm({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Gm(e,t){return t in e?e[t]:t}function Vm(e,t){return Gm(e,t.toLowerCase())}const Ym=Hm({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Vm,properties:{xmlns:null,xmlnsXLink:null}});const Wm=Hm({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:_m,ariaAutoComplete:null,ariaBusy:_m,ariaChecked:_m,ariaColCount:Lm,ariaColIndex:Lm,ariaColSpan:Lm,ariaControls:Im,ariaCurrent:null,ariaDescribedBy:Im,ariaDetails:null,ariaDisabled:_m,ariaDropEffect:Im,ariaErrorMessage:null,ariaExpanded:_m,ariaFlowTo:Im,ariaGrabbed:_m,ariaHasPopup:null,ariaHidden:_m,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Im,ariaLevel:Lm,ariaLive:null,ariaModal:_m,ariaMultiLine:_m,ariaMultiSelectable:_m,ariaOrientation:null,ariaOwns:Im,ariaPlaceholder:null,ariaPosInSet:Lm,ariaPressed:_m,ariaReadOnly:_m,ariaRelevant:null,ariaRequired:_m,ariaRoleDescription:Im,ariaRowCount:Lm,ariaRowIndex:Lm,ariaRowSpan:Lm,ariaSelected:_m,ariaSetSize:Lm,ariaSort:null,ariaValueMax:Lm,ariaValueMin:Lm,ariaValueNow:Lm,ariaValueText:null,role:null}});const Xm=Hm({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Vm,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Om,acceptCharset:Im,accessKey:Im,action:null,allow:null,allowFullScreen:Dm,allowPaymentRequest:Dm,allowUserMedia:Dm,alt:null,as:null,async:Dm,autoCapitalize:null,autoComplete:Im,autoFocus:Dm,autoPlay:Dm,blocking:Im,capture:Dm,charSet:null,checked:Dm,cite:null,className:Im,cols:Lm,colSpan:null,content:null,contentEditable:_m,controls:Dm,controlsList:Im,coords:Lm|Om,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Dm,defer:Dm,dir:null,dirName:null,disabled:Dm,download:Rm,draggable:_m,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Dm,formTarget:null,headers:Im,height:Lm,hidden:Dm,high:Lm,href:null,hrefLang:null,htmlFor:Im,httpEquiv:Im,id:null,imageSizes:null,imageSrcSet:null,inert:Dm,inputMode:null,integrity:null,is:null,isMap:Dm,itemId:null,itemProp:Im,itemRef:Im,itemScope:Dm,itemType:Im,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Dm,low:Lm,manifest:null,max:null,maxLength:Lm,media:null,method:null,min:null,minLength:Lm,multiple:Dm,muted:Dm,name:null,nonce:null,noModule:Dm,noValidate:Dm,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Dm,optimum:Lm,pattern:null,ping:Im,placeholder:null,playsInline:Dm,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Dm,referrerPolicy:null,rel:Im,required:Dm,reversed:Dm,rows:Lm,rowSpan:Lm,sandbox:Im,scope:null,scoped:Dm,seamless:Dm,selected:Dm,shape:null,size:Lm,sizes:null,slot:null,span:Lm,spellCheck:_m,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Lm,step:null,style:null,tabIndex:Lm,target:null,title:null,translate:null,type:null,typeMustMatch:Dm,useMap:null,value:_m,width:Lm,wrap:null,align:null,aLink:null,archive:Im,axis:null,background:null,bgColor:null,border:Lm,borderColor:null,bottomMargin:Lm,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Dm,declare:Dm,event:null,face:null,frame:null,frameBorder:null,hSpace:Lm,leftMargin:Lm,link:null,longDesc:null,lowSrc:null,marginHeight:Lm,marginWidth:Lm,noResize:Dm,noHref:Dm,noShade:Dm,noWrap:Dm,object:null,profile:null,prompt:null,rev:null,rightMargin:Lm,rules:null,scheme:null,scrolling:_m,standby:null,summary:null,text:null,topMargin:Lm,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Lm,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Dm,disableRemotePlayback:Dm,prefix:null,property:null,results:Lm,security:null,unselectable:null}});const Km=Hm({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Gm,properties:{about:Nm,accentHeight:Lm,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Lm,amplitude:Lm,arabicForm:null,ascent:Lm,attributeName:null,attributeType:null,azimuth:Lm,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Lm,by:null,calcMode:null,capHeight:Lm,className:Im,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Lm,diffuseConstant:Lm,direction:null,display:null,dur:null,divisor:Lm,dominantBaseline:null,download:Dm,dx:null,dy:null,edgeMode:null,editable:null,elevation:Lm,enableBackground:null,end:null,event:null,exponent:Lm,externalResourcesRequired:null,fill:null,fillOpacity:Lm,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Om,g2:Om,glyphName:Om,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Lm,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Lm,horizOriginX:Lm,horizOriginY:Lm,id:null,ideographic:Lm,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Lm,k:Lm,k1:Lm,k2:Lm,k3:Lm,k4:Lm,kernelMatrix:Nm,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Lm,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Lm,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Lm,overlineThickness:Lm,paintOrder:null,panose1:null,path:null,pathLength:Lm,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Im,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Lm,pointsAtY:Lm,pointsAtZ:Lm,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Nm,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Nm,rev:Nm,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Nm,requiredFeatures:Nm,requiredFonts:Nm,requiredFormats:Nm,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Lm,specularExponent:Lm,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Lm,strikethroughThickness:Lm,string:null,stroke:null,strokeDashArray:Nm,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Lm,strokeOpacity:Lm,strokeWidth:null,style:null,surfaceScale:Lm,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Nm,tabIndex:Lm,tableValues:null,target:null,targetX:Lm,targetY:Lm,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Nm,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Lm,underlineThickness:Lm,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Lm,values:null,vAlphabetic:Lm,vMathematical:Lm,vectorEffect:null,vHanging:Lm,vIdeographic:Lm,version:null,vertAdvY:Lm,vertOriginX:Lm,vertOriginY:Lm,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Lm,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}});const $m=/^data[-\w.:]+$/i;const Qm=/-[a-z]/g;const Zm=/[A-Z]/g;function Jm(e,t){const n=xm(t);let i=t;let r=Am;if(n in e.normal){return e.property[e.normal[n]]}if(n.length>4&&n.slice(0,4)==="data"&&$m.test(t)){if(t.charAt(4)==="-"){const e=t.slice(5).replace(Qm,tg);i="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Qm.test(e)){let n=e.replace(Zm,eg);if(n.charAt(0)!=="-"){n="-"+n}t="data"+n}}r=qm}return new r(i,t)}function eg(e){return"-"+e.toLowerCase()}function tg(e){return e.charAt(1).toUpperCase()}const ng=Sm([jm,zm,Ym,Wm,Xm],"html");const ig=Sm([jm,zm,Ym,Wm,Km],"svg");const rg={}.hasOwnProperty;function sg(e,t){const n=t||{};function i(t,...n){let r=i.invalid;const s=i.handlers;if(t&&rg.call(t,e)){const n=String(t[e]);r=rg.call(s,n)?s[n]:i.unknown}if(r){return r.call(this,t,...n)}}i.handlers=n.handlers||{};i.invalid=n.invalid;i.unknown=n.unknown;return i}function og(e,t){e=e.replace(t.subset?ag(t.subset):/["&'<>`]/g,i);if(t.subset||t.escapeOnly){return e}return e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,n).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,i);function n(e,n,i){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,i.charCodeAt(n+2),t)}function i(e,n,i){return t.format(e.charCodeAt(0),i.charCodeAt(n+1),t)}}function ag(e){const t=[];let n=-1;while(++n<e.length){t.push(e[n].replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"))}return new RegExp("(?:"+t.join("|")+")","g")}function lg(e,t,n){const i="&#x"+e.toString(16).toUpperCase();return n&&t&&!/[\dA-Fa-f]/.test(String.fromCharCode(t))?i:i+";"}function cg(e,t,n){const i="&#"+String(e);return n&&t&&!/\d/.test(String.fromCharCode(t))?i:i+";"}const ug=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"];const fg={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"};const hg=["cent","copy","divide","gt","lt","not","para","times"];const dg={}.hasOwnProperty;const pg={};let mg;for(mg in fg){if(dg.call(fg,mg)){pg[fg[mg]]=mg}}function gg(e,t,n,i){const r=String.fromCharCode(e);if(dg.call(pg,r)){const e=pg[r];const s="&"+e;if(n&&ug.includes(e)&&!hg.includes(e)&&(!i||t&&t!==61&&/[^\da-z]/i.test(String.fromCharCode(t)))){return s}return s+";"}return""}function bg(e,t,n){let i=lg(e,t,n.omitOptionalSemicolons);let r;if(n.useNamedReferences||n.useShortestReferences){r=gg(e,t,n.omitOptionalSemicolons,n.attribute)}if((n.useShortestReferences||!r)&&n.useShortestReferences){const r=cg(e,t,n.omitOptionalSemicolons);if(r.length<i.length){i=r}}return r&&(!n.useShortestReferences||r.length<i.length)?r:i}function kg(e,t){return og(e,Object.assign({format:bg},t))}function yg(e,t,n,i){return i.settings.bogusComments?"<?"+kg(e.value,Object.assign({},i.settings.characterReferences,{subset:[">"]}))+">":"\x3c!--"+e.value.replace(/^>|^->|<!--|-->|--!>|<!-$/g,r)+"--\x3e";function r(e){return kg(e,Object.assign({},i.settings.characterReferences,{subset:["<",">"]}))}}function wg(e,t,n,i){return"<!"+(i.settings.upperDoctype?"DOCTYPE":"doctype")+(i.settings.tightDoctype?"":" ")+"html>"}function Eg(e,t){const n=String(e);if(typeof t!=="string"){throw new TypeError("Expected character")}let i=0;let r=n.indexOf(t);while(r!==-1){i++;r=n.indexOf(t,r+t.length)}return i}function Tg(e,t){const n=t||{};const i=e[e.length-1]===""?[...e,""]:e;return i.join((n.padRight?" ":"")+","+(n.padLeft===false?"":" ")).trim()}function vg(e){return e.join(" ").trim()}const Sg=/[ \t\n\f\r]/g;function xg(e){return typeof e==="object"?e.type==="text"?Ag(e.value):false:Ag(e)}function Ag(e){return e.replace(Sg,"")===""}const Cg=Rg(1);const Dg=Rg(-1);const _g=[];function Rg(e){return t;function t(t,n,i){const r=t?t.children:_g;let s=(n||0)+e;let o=r[s];if(!i){while(o&&xg(o)){s+=e;o=r[s]}}return o}}const Lg={}.hasOwnProperty;function Ig(e){return t;function t(t,n,i){return Lg.call(e,t.tagName)&&e[t.tagName](t,n,i)}}const Og=Ig({body:Mg,caption:Ng,colgroup:Ng,dd:Fg,dt:Bg,head:Ng,html:Pg,li:qg,optgroup:zg,option:jg,p:Ug,rp:Hg,rt:Hg,tbody:Vg,td:Xg,tfoot:Yg,th:Xg,thead:Gg,tr:Wg});function Ng(e,t,n){const i=Cg(n,t,true);return!i||i.type!=="comment"&&!(i.type==="text"&&xg(i.value.charAt(0)))}function Pg(e,t,n){const i=Cg(n,t);return!i||i.type!=="comment"}function Mg(e,t,n){const i=Cg(n,t);return!i||i.type!=="comment"}function Ug(e,t,n){const i=Cg(n,t);return i?i.type==="element"&&(i.tagName==="address"||i.tagName==="article"||i.tagName==="aside"||i.tagName==="blockquote"||i.tagName==="details"||i.tagName==="div"||i.tagName==="dl"||i.tagName==="fieldset"||i.tagName==="figcaption"||i.tagName==="figure"||i.tagName==="footer"||i.tagName==="form"||i.tagName==="h1"||i.tagName==="h2"||i.tagName==="h3"||i.tagName==="h4"||i.tagName==="h5"||i.tagName==="h6"||i.tagName==="header"||i.tagName==="hgroup"||i.tagName==="hr"||i.tagName==="main"||i.tagName==="menu"||i.tagName==="nav"||i.tagName==="ol"||i.tagName==="p"||i.tagName==="pre"||i.tagName==="section"||i.tagName==="table"||i.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function qg(e,t,n){const i=Cg(n,t);return!i||i.type==="element"&&i.tagName==="li"}function Bg(e,t,n){const i=Cg(n,t);return Boolean(i&&i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd"))}function Fg(e,t,n){const i=Cg(n,t);return!i||i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd")}function Hg(e,t,n){const i=Cg(n,t);return!i||i.type==="element"&&(i.tagName==="rp"||i.tagName==="rt")}function zg(e,t,n){const i=Cg(n,t);return!i||i.type==="element"&&i.tagName==="optgroup"}function jg(e,t,n){const i=Cg(n,t);return!i||i.type==="element"&&(i.tagName==="option"||i.tagName==="optgroup")}function Gg(e,t,n){const i=Cg(n,t);return Boolean(i&&i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot"))}function Vg(e,t,n){const i=Cg(n,t);return!i||i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot")}function Yg(e,t,n){return!Cg(n,t)}function Wg(e,t,n){const i=Cg(n,t);return!i||i.type==="element"&&i.tagName==="tr"}function Xg(e,t,n){const i=Cg(n,t);return!i||i.type==="element"&&(i.tagName==="td"||i.tagName==="th")}const Kg=Ig({body:Zg,colgroup:Jg,head:Qg,html:$g,tbody:eb});function $g(e){const t=Cg(e,-1);return!t||t.type!=="comment"}function Qg(e){const t=e.children;const n=[];let i=-1;while(++i<t.length){const e=t[i];if(e.type==="element"&&(e.tagName==="title"||e.tagName==="base")){if(n.includes(e.tagName))return false;n.push(e.tagName)}}return t.length>0}function Zg(e){const t=Cg(e,-1,true);return!t||t.type!=="comment"&&!(t.type==="text"&&xg(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function Jg(e,t,n){const i=Dg(n,t);const r=Cg(e,-1,true);if(n&&i&&i.type==="element"&&i.tagName==="colgroup"&&Og(i,n.children.indexOf(i),n)){return false}return Boolean(r&&r.type==="element"&&r.tagName==="col")}function eb(e,t,n){const i=Dg(n,t);const r=Cg(e,-1);if(n&&i&&i.type==="element"&&(i.tagName==="thead"||i.tagName==="tbody")&&Og(i,n.children.indexOf(i),n)){return false}return Boolean(r&&r.type==="element"&&r.tagName==="tr")}const tb={name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function nb(e,t,n,i){const r=i.schema;const s=r.space==="svg"?false:i.settings.omitOptionalTags;let o=r.space==="svg"?i.settings.closeEmptyElements:i.settings.voids.includes(e.tagName.toLowerCase());const a=[];let l;if(r.space==="html"&&e.tagName==="svg"){i.schema=ig}const c=ib(i,e.properties);const u=i.all(r.space==="html"&&e.tagName==="template"?e.content:e);i.schema=r;if(u)o=false;if(c||!s||!Kg(e,t,n)){a.push("<",e.tagName,c?" "+c:"");if(o&&(r.space==="svg"||i.settings.closeSelfClosing)){l=c.charAt(c.length-1);if(!i.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'"){a.push(" ")}a.push("/")}a.push(">")}a.push(u);if(!o&&(!s||!Og(e,t,n))){a.push("</"+e.tagName+">")}return a.join("")}function ib(e,t){const n=[];let i=-1;let r;if(t){for(r in t){if(t[r]!==null&&t[r]!==undefined){const i=rb(e,r,t[r]);if(i)n.push(i)}}}while(++i<n.length){const t=e.settings.tightAttributes?n[i].charAt(n[i].length-1):undefined;if(i!==n.length-1&&t!=='"'&&t!=="'"){n[i]+=" "}}return n.join("")}function rb(e,t,n){const i=Jm(e.schema,t);const r=e.settings.allowParseErrors&&e.schema.space==="html"?0:1;const s=e.settings.allowDangerousCharacters?0:1;let o=e.quote;let a;if(i.overloadedBoolean&&(n===i.attribute||n==="")){n=true}else if(i.boolean||i.overloadedBoolean&&typeof n!=="string"){n=Boolean(n)}if(n===null||n===undefined||n===false||typeof n==="number"&&Number.isNaN(n)){return""}const l=kg(i.attribute,Object.assign({},e.settings.characterReferences,{subset:tb.name[r][s]}));if(n===true)return l;n=Array.isArray(n)?(i.commaSeparated?Tg:vg)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n);if(e.settings.collapseEmptyAttributes&&!n)return l;if(e.settings.preferUnquoted){a=kg(n,Object.assign({},e.settings.characterReferences,{attribute:true,subset:tb.unquoted[r][s]}))}if(a!==n){if(e.settings.quoteSmart&&Eg(n,o)>Eg(n,e.alternative)){o=e.alternative}a=o+kg(n,Object.assign({},e.settings.characterReferences,{subset:(o==="'"?tb.single:tb.double)[r][s],attribute:true}))+o}return l+(a?"="+a:a)}function sb(e,t,n,i){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:kg(e.value,Object.assign({},i.settings.characterReferences,{subset:["<","&"]}))}function ob(e,t,n,i){return i.settings.allowDangerousHtml?e.value:sb(e,t,n,i)}function ab(e,t,n,i){return i.all(e)}const lb=sg("type",{invalid:cb,unknown:ub,handlers:{comment:yg,doctype:wg,element:nb,raw:ob,root:ab,text:sb}});function cb(e){throw new Error("Expected node, not `"+e+"`")}function ub(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const fb={};const hb={};const db=[];function pb(e,t){const n=t||fb;const i=n.quote||'"';const r=i==='"'?"'":'"';if(i!=='"'&&i!=="'"){throw new Error("Invalid quote `"+i+"`, expected `'` or `\"`")}const s={one:mb,all:gb,settings:{omitOptionalTags:n.omitOptionalTags||false,allowParseErrors:n.allowParseErrors||false,allowDangerousCharacters:n.allowDangerousCharacters||false,quoteSmart:n.quoteSmart||false,preferUnquoted:n.preferUnquoted||false,tightAttributes:n.tightAttributes||false,upperDoctype:n.upperDoctype||false,tightDoctype:n.tightDoctype||false,bogusComments:n.bogusComments||false,tightCommaSeparatedLists:n.tightCommaSeparatedLists||false,tightSelfClosing:n.tightSelfClosing||false,collapseEmptyAttributes:n.collapseEmptyAttributes||false,allowDangerousHtml:n.allowDangerousHtml||false,voids:n.voids||Tm,characterReferences:n.characterReferences||hb,closeSelfClosing:n.closeSelfClosing||false,closeEmptyElements:n.closeEmptyElements||false},schema:n.space==="svg"?ig:ng,quote:i,alternative:r};return s.one(Array.isArray(e)?{type:"root",children:e}:e,undefined,undefined)}function mb(e,t,n){return lb(e,t,n,this)}function gb(e){const t=[];const n=e&&e.children||db;let i=-1;while(++i<n.length){t[i]=this.one(n[i],i,e)}return t.join("")}function bb(e){const t=this;const n={...t.data("settings"),...e};t.compiler=i;function i(e){return pb(e,n)}}class kb{constructor(e,t,n){this.property=e;this.normal=t;if(n){this.space=n}}}kb.prototype.property={};kb.prototype.normal={};kb.prototype.space=null;function yb(e,t){const n={};const i={};let r=-1;while(++r<e.length){Object.assign(n,e[r].property);Object.assign(i,e[r].normal)}return new kb(n,i,t)}function wb(e){return e.toLowerCase()}class Eb{constructor(e,t){this.property=e;this.attribute=t}}Eb.prototype.space=null;Eb.prototype.boolean=false;Eb.prototype.booleanish=false;Eb.prototype.overloadedBoolean=false;Eb.prototype.number=false;Eb.prototype.commaSeparated=false;Eb.prototype.spaceSeparated=false;Eb.prototype.commaOrSpaceSeparated=false;Eb.prototype.mustUseProperty=false;Eb.prototype.defined=false;let Tb=0;const vb=Rb();const Sb=Rb();const xb=Rb();const Ab=Rb();const Cb=Rb();const Db=Rb();const _b=Rb();function Rb(){return 2**++Tb}const Lb=Object.freeze({__proto__:null,boolean:vb,booleanish:Sb,overloadedBoolean:xb,number:Ab,spaceSeparated:Cb,commaSeparated:Db,commaOrSpaceSeparated:_b});const Ib=Object.keys(Lb);class Ob extends Eb{constructor(e,t,n,i){let r=-1;super(e,t);Nb(this,"space",i);if(typeof n==="number"){while(++r<Ib.length){const e=Ib[r];Nb(this,Ib[r],(n&Lb[e])===Lb[e])}}}}Ob.prototype.defined=true;function Nb(e,t,n){if(n){e[t]=n}}const Pb={}.hasOwnProperty;function Mb(e){const t={};const n={};let i;for(i in e.properties){if(Pb.call(e.properties,i)){const r=e.properties[i];const s=new Ob(i,e.transform(e.attributes||{},i),r,e.space);if(e.mustUseProperty&&e.mustUseProperty.includes(i)){s.mustUseProperty=true}t[i]=s;n[wb(i)]=i;n[wb(s.attribute)]=i}}return new kb(t,n,e.space)}const Ub=Mb({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});const qb=Mb({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Bb(e,t){return t in e?e[t]:t}function Fb(e,t){return Bb(e,t.toLowerCase())}const Hb=Mb({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Fb,properties:{xmlns:null,xmlnsXLink:null}});const zb=Mb({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Sb,ariaAutoComplete:null,ariaBusy:Sb,ariaChecked:Sb,ariaColCount:Ab,ariaColIndex:Ab,ariaColSpan:Ab,ariaControls:Cb,ariaCurrent:null,ariaDescribedBy:Cb,ariaDetails:null,ariaDisabled:Sb,ariaDropEffect:Cb,ariaErrorMessage:null,ariaExpanded:Sb,ariaFlowTo:Cb,ariaGrabbed:Sb,ariaHasPopup:null,ariaHidden:Sb,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Cb,ariaLevel:Ab,ariaLive:null,ariaModal:Sb,ariaMultiLine:Sb,ariaMultiSelectable:Sb,ariaOrientation:null,ariaOwns:Cb,ariaPlaceholder:null,ariaPosInSet:Ab,ariaPressed:Sb,ariaReadOnly:Sb,ariaRelevant:null,ariaRequired:Sb,ariaRoleDescription:Cb,ariaRowCount:Ab,ariaRowIndex:Ab,ariaRowSpan:Ab,ariaSelected:Sb,ariaSetSize:Ab,ariaSort:null,ariaValueMax:Ab,ariaValueMin:Ab,ariaValueNow:Ab,ariaValueText:null,role:null}});const jb=Mb({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Fb,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Db,acceptCharset:Cb,accessKey:Cb,action:null,allow:null,allowFullScreen:vb,allowPaymentRequest:vb,allowUserMedia:vb,alt:null,as:null,async:vb,autoCapitalize:null,autoComplete:Cb,autoFocus:vb,autoPlay:vb,blocking:Cb,capture:vb,charSet:null,checked:vb,cite:null,className:Cb,cols:Ab,colSpan:null,content:null,contentEditable:Sb,controls:vb,controlsList:Cb,coords:Ab|Db,crossOrigin:null,data:null,dateTime:null,decoding:null,default:vb,defer:vb,dir:null,dirName:null,disabled:vb,download:xb,draggable:Sb,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:vb,formTarget:null,headers:Cb,height:Ab,hidden:vb,high:Ab,href:null,hrefLang:null,htmlFor:Cb,httpEquiv:Cb,id:null,imageSizes:null,imageSrcSet:null,inert:vb,inputMode:null,integrity:null,is:null,isMap:vb,itemId:null,itemProp:Cb,itemRef:Cb,itemScope:vb,itemType:Cb,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:vb,low:Ab,manifest:null,max:null,maxLength:Ab,media:null,method:null,min:null,minLength:Ab,multiple:vb,muted:vb,name:null,nonce:null,noModule:vb,noValidate:vb,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:vb,optimum:Ab,pattern:null,ping:Cb,placeholder:null,playsInline:vb,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:vb,referrerPolicy:null,rel:Cb,required:vb,reversed:vb,rows:Ab,rowSpan:Ab,sandbox:Cb,scope:null,scoped:vb,seamless:vb,selected:vb,shape:null,size:Ab,sizes:null,slot:null,span:Ab,spellCheck:Sb,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ab,step:null,style:null,tabIndex:Ab,target:null,title:null,translate:null,type:null,typeMustMatch:vb,useMap:null,value:Sb,width:Ab,wrap:null,align:null,aLink:null,archive:Cb,axis:null,background:null,bgColor:null,border:Ab,borderColor:null,bottomMargin:Ab,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:vb,declare:vb,event:null,face:null,frame:null,frameBorder:null,hSpace:Ab,leftMargin:Ab,link:null,longDesc:null,lowSrc:null,marginHeight:Ab,marginWidth:Ab,noResize:vb,noHref:vb,noShade:vb,noWrap:vb,object:null,profile:null,prompt:null,rev:null,rightMargin:Ab,rules:null,scheme:null,scrolling:Sb,standby:null,summary:null,text:null,topMargin:Ab,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ab,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:vb,disableRemotePlayback:vb,prefix:null,property:null,results:Ab,security:null,unselectable:null}});const Gb=Mb({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Bb,properties:{about:_b,accentHeight:Ab,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ab,amplitude:Ab,arabicForm:null,ascent:Ab,attributeName:null,attributeType:null,azimuth:Ab,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ab,by:null,calcMode:null,capHeight:Ab,className:Cb,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Ab,diffuseConstant:Ab,direction:null,display:null,dur:null,divisor:Ab,dominantBaseline:null,download:vb,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ab,enableBackground:null,end:null,event:null,exponent:Ab,externalResourcesRequired:null,fill:null,fillOpacity:Ab,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Db,g2:Db,glyphName:Db,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ab,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ab,horizOriginX:Ab,horizOriginY:Ab,id:null,ideographic:Ab,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ab,k:Ab,k1:Ab,k2:Ab,k3:Ab,k4:Ab,kernelMatrix:_b,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ab,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Ab,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Ab,overlineThickness:Ab,paintOrder:null,panose1:null,path:null,pathLength:Ab,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Cb,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ab,pointsAtY:Ab,pointsAtZ:Ab,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:_b,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:_b,rev:_b,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:_b,requiredFeatures:_b,requiredFonts:_b,requiredFormats:_b,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Ab,specularExponent:Ab,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ab,strikethroughThickness:Ab,string:null,stroke:null,strokeDashArray:_b,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ab,strokeOpacity:Ab,strokeWidth:null,style:null,surfaceScale:Ab,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:_b,tabIndex:Ab,tableValues:null,target:null,targetX:Ab,targetY:Ab,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:_b,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ab,underlineThickness:Ab,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ab,values:null,vAlphabetic:Ab,vMathematical:Ab,vectorEffect:null,vHanging:Ab,vIdeographic:Ab,version:null,vertAdvY:Ab,vertOriginX:Ab,vertOriginY:Ab,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ab,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}});const Vb=/^data[-\w.:]+$/i;const Yb=/-[a-z]/g;const Wb=/[A-Z]/g;function Xb(e,t){const n=wb(t);let i=t;let r=Eb;if(n in e.normal){return e.property[e.normal[n]]}if(n.length>4&&n.slice(0,4)==="data"&&Vb.test(t)){if(t.charAt(4)==="-"){const e=t.slice(5).replace(Yb,$b);i="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Yb.test(e)){let n=e.replace(Wb,Kb);if(n.charAt(0)!=="-"){n="-"+n}t="data"+n}}r=Ob}return new r(i,t)}function Kb(e){return"-"+e.toLowerCase()}function $b(e){return e.charAt(1).toUpperCase()}const Qb=yb([qb,Ub,Hb,zb,jb],"html");const Zb=yb([qb,Ub,Hb,zb,Gb],"svg");function Jb(e){const t=[];const n=String(e||"");let i=n.indexOf(",");let r=0;let s=false;while(!s){if(i===-1){i=n.length;s=true}const e=n.slice(r,i).trim();if(e||!s){t.push(e)}r=i+1;i=n.indexOf(",",r)}return t}const ek=/[#.]/g;function tk(e,t){const n=e||"";const i={};let r=0;let s;let o;while(r<n.length){ek.lastIndex=r;const e=ek.exec(n);const t=n.slice(r,e?e.index:n.length);if(t){if(!s){o=t}else if(s==="#"){i.id=t}else if(Array.isArray(i.className)){i.className.push(t)}else{i.className=[t]}r+=t.length}if(e){s=e[0];r++}}return{type:"element",tagName:o||t||"div",properties:i,children:[]}}function nk(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}const ik=new Set(["button","menu","reset","submit"]);const rk={}.hasOwnProperty;function sk(e,t,n){const i=n&&fk(n);function r(n,r,...s){let o=-1;let a;if(n===undefined||n===null){a={type:"root",children:[]};const e=r;s.unshift(e)}else{a=tk(n,t);a.tagName=a.tagName.toLowerCase();if(i&&rk.call(i,a.tagName)){a.tagName=i[a.tagName]}if(ok(r,a.tagName)){let t;for(t in r){if(rk.call(r,t)){ak(e,a.properties,t,r[t])}}}else{s.unshift(r)}}while(++o<s.length){lk(a.children,s[o])}if(a.type==="element"&&a.tagName==="template"){a.content={type:"root",children:a.children};a.children=[]}return a}return r}function ok(e,t){if(e===null||e===undefined||typeof e!=="object"||Array.isArray(e)){return false}if(t==="input"||!e.type||typeof e.type!=="string"){return true}if("children"in e&&Array.isArray(e.children)){return false}if(t==="button"){return ik.has(e.type.toLowerCase())}return!("value"in e)}function ak(e,t,n,i){const r=Xb(e,n);let s=-1;let o;if(i===undefined||i===null)return;if(typeof i==="number"){if(Number.isNaN(i))return;o=i}else if(typeof i==="boolean"){o=i}else if(typeof i==="string"){if(r.spaceSeparated){o=nk(i)}else if(r.commaSeparated){o=Jb(i)}else if(r.commaOrSpaceSeparated){o=nk(Jb(i).join(" "))}else{o=ck(r,r.property,i)}}else if(Array.isArray(i)){o=i.concat()}else{o=r.property==="style"?uk(i):String(i)}if(Array.isArray(o)){const e=[];while(++s<o.length){const t=ck(r,r.property,o[s]);e[s]=t}o=e}if(r.property==="className"&&Array.isArray(t.className)){const e=o;o=t.className.concat(e)}t[r.property]=o}function lk(e,t){let n=-1;if(t===undefined||t===null);else if(typeof t==="string"||typeof t==="number"){e.push({type:"text",value:String(t)})}else if(Array.isArray(t)){while(++n<t.length){lk(e,t[n])}}else if(typeof t==="object"&&"type"in t){if(t.type==="root"){lk(e,t.children)}else{e.push(t)}}else{throw new Error("Expected node, nodes, or string, got `"+t+"`")}}function ck(e,t,n){if(typeof n==="string"){if(e.number&&n&&!Number.isNaN(Number(n))){return Number(n)}if((e.boolean||e.overloadedBoolean)&&(n===""||wb(n)===wb(t))){return true}}return n}function uk(e){const t=[];let n;for(n in e){if(rk.call(e,n)){t.push([n,e[n]].join(": "))}}return t.join("; ")}function fk(e){const t={};let n=-1;while(++n<e.length){t[e[n].toLowerCase()]=e[n]}return t}const hk=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"];const dk=sk(Qb,"div");const pk=sk(Zb,"g",hk);const mk=/\r?\n|\r/g;function gk(e){const t=String(e);const n=[];mk.lastIndex=0;while(mk.test(t)){n.push(mk.lastIndex)}n.push(t.length+1);return{toPoint:i,toOffset:r};function i(e){let t=-1;if(typeof e==="number"&&e>-1&&e<n[n.length-1]){while(++t<n.length){if(n[t]>e){return{line:t+1,column:e-(t>0?n[t-1]:0)+1,offset:e}}}}}function r(e){const t=e&&e.line;const i=e&&e.column;if(typeof t==="number"&&typeof i==="number"&&!Number.isNaN(t)&&!Number.isNaN(i)&&t-1 in n){const e=(n[t-2]||0)+i-1||0;if(e>-1&&e<n[n.length-1]){return e}}}}const bk={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};const kk={}.hasOwnProperty;const yk=Object.prototype;function wk(e,t){const n=t||{};return Ek({file:n.file||undefined,location:false,schema:n.space==="svg"?Zb:Qb,verbose:n.verbose||false},e)}function Ek(e,t){let n;switch(t.nodeName){case"#comment":{const i=t;n={type:"comment",value:i.data};Sk(e,i,n);return n}case"#document":case"#document-fragment":{const i=t;const r="mode"in i?i.mode==="quirks"||i.mode==="limited-quirks":false;n={type:"root",children:Tk(e,t.childNodes),data:{quirksMode:r}};if(e.file&&e.location){const t=String(e.file);const i=gk(t);const r=i.toPoint(0);const s=i.toPoint(t.length);n.position={start:r,end:s}}return n}case"#documentType":{const i=t;n={type:"doctype"};Sk(e,i,n);return n}case"#text":{const i=t;n={type:"text",value:i.value};Sk(e,i,n);return n}default:{const i=t;n=vk(e,i);return n}}}function Tk(e,t){let n=-1;const i=[];while(++n<t.length){const r=Ek(e,t[n]);i.push(r)}return i}function vk(e,t){const n=e.schema;e.schema=t.namespaceURI===bk.svg?Zb:Qb;let i=-1;const r={};while(++i<t.attrs.length){const e=t.attrs[i];const n=(e.prefix?e.prefix+":":"")+e.name;if(!kk.call(yk,n)){r[n]=e.value}}const s=e.schema.space==="svg"?pk:dk;const o=s(t.tagName,r,Tk(e,t.childNodes));Sk(e,t,o);if(o.tagName==="template"){const n=t;const i=n.sourceCodeLocation;const r=i&&i.startTag&&Ak(i.startTag);const s=i&&i.endTag&&Ak(i.endTag);const a=Ek(e,n.content);if(r&&s&&e.file){a.position={start:r.end,end:s.start}}o.content=a}e.schema=n;return o}function Sk(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const i=xk(e,n,t.sourceCodeLocation);if(i){e.location=true;n.position=i}}}function xk(e,t,n){const i=Ak(n);if(t.type==="element"){const r=t.children[t.children.length-1];if(i&&!n.endTag&&r&&r.position&&r.position.end){i.end=Object.assign({},r.position.end)}if(e.verbose){const i={};let r;if(n.attrs){for(r in n.attrs){if(kk.call(n.attrs,r)){i[Xb(e.schema,r).property]=Ak(n.attrs[r])}}}const s=Ak(n.startTag);const o=n.endTag?Ak(n.endTag):undefined;const a={opening:s};if(o)a.closing=o;a.properties=i;t.data={position:a}}}return i}function Ak(e){const t=Ck({line:e.startLine,column:e.startCol,offset:e.startOffset});const n=Ck({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:undefined}function Ck(e){return e.line&&e.column?e:undefined}function Dk(e,t){const n=t||{};const i=e[e.length-1]===""?[...e,""]:e;return i.join((n.padRight?" ":"")+","+(n.padLeft===false?"":" ")).trim()}class _k{constructor(e,t,n){this.property=e;this.normal=t;if(n){this.space=n}}}_k.prototype.property={};_k.prototype.normal={};_k.prototype.space=null;function Rk(e,t){const n={};const i={};let r=-1;while(++r<e.length){Object.assign(n,e[r].property);Object.assign(i,e[r].normal)}return new _k(n,i,t)}function Lk(e){return e.toLowerCase()}class Ik{constructor(e,t){this.property=e;this.attribute=t}}Ik.prototype.space=null;Ik.prototype.boolean=false;Ik.prototype.booleanish=false;Ik.prototype.overloadedBoolean=false;Ik.prototype.number=false;Ik.prototype.commaSeparated=false;Ik.prototype.spaceSeparated=false;Ik.prototype.commaOrSpaceSeparated=false;Ik.prototype.mustUseProperty=false;Ik.prototype.defined=false;let Ok=0;const Nk=Hk();const Pk=Hk();const Mk=Hk();const Uk=Hk();const qk=Hk();const Bk=Hk();const Fk=Hk();function Hk(){return 2**++Ok}const zk=Object.freeze({__proto__:null,boolean:Nk,booleanish:Pk,overloadedBoolean:Mk,number:Uk,spaceSeparated:qk,commaSeparated:Bk,commaOrSpaceSeparated:Fk});const jk=Object.keys(zk);class Gk extends Ik{constructor(e,t,n,i){let r=-1;super(e,t);Vk(this,"space",i);if(typeof n==="number"){while(++r<jk.length){const e=jk[r];Vk(this,jk[r],(n&zk[e])===zk[e])}}}}Gk.prototype.defined=true;function Vk(e,t,n){if(n){e[t]=n}}const Yk={}.hasOwnProperty;function Wk(e){const t={};const n={};let i;for(i in e.properties){if(Yk.call(e.properties,i)){const r=e.properties[i];const s=new Gk(i,e.transform(e.attributes||{},i),r,e.space);if(e.mustUseProperty&&e.mustUseProperty.includes(i)){s.mustUseProperty=true}t[i]=s;n[Lk(i)]=i;n[Lk(s.attribute)]=i}}return new _k(t,n,e.space)}const Xk=Wk({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});const Kk=Wk({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function $k(e,t){return t in e?e[t]:t}function Qk(e,t){return $k(e,t.toLowerCase())}const Zk=Wk({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Qk,properties:{xmlns:null,xmlnsXLink:null}});const Jk=Wk({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Pk,ariaAutoComplete:null,ariaBusy:Pk,ariaChecked:Pk,ariaColCount:Uk,ariaColIndex:Uk,ariaColSpan:Uk,ariaControls:qk,ariaCurrent:null,ariaDescribedBy:qk,ariaDetails:null,ariaDisabled:Pk,ariaDropEffect:qk,ariaErrorMessage:null,ariaExpanded:Pk,ariaFlowTo:qk,ariaGrabbed:Pk,ariaHasPopup:null,ariaHidden:Pk,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:qk,ariaLevel:Uk,ariaLive:null,ariaModal:Pk,ariaMultiLine:Pk,ariaMultiSelectable:Pk,ariaOrientation:null,ariaOwns:qk,ariaPlaceholder:null,ariaPosInSet:Uk,ariaPressed:Pk,ariaReadOnly:Pk,ariaRelevant:null,ariaRequired:Pk,ariaRoleDescription:qk,ariaRowCount:Uk,ariaRowIndex:Uk,ariaRowSpan:Uk,ariaSelected:Pk,ariaSetSize:Uk,ariaSort:null,ariaValueMax:Uk,ariaValueMin:Uk,ariaValueNow:Uk,ariaValueText:null,role:null}});const ey=Wk({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Qk,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Bk,acceptCharset:qk,accessKey:qk,action:null,allow:null,allowFullScreen:Nk,allowPaymentRequest:Nk,allowUserMedia:Nk,alt:null,as:null,async:Nk,autoCapitalize:null,autoComplete:qk,autoFocus:Nk,autoPlay:Nk,blocking:qk,capture:Nk,charSet:null,checked:Nk,cite:null,className:qk,cols:Uk,colSpan:null,content:null,contentEditable:Pk,controls:Nk,controlsList:qk,coords:Uk|Bk,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Nk,defer:Nk,dir:null,dirName:null,disabled:Nk,download:Mk,draggable:Pk,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Nk,formTarget:null,headers:qk,height:Uk,hidden:Nk,high:Uk,href:null,hrefLang:null,htmlFor:qk,httpEquiv:qk,id:null,imageSizes:null,imageSrcSet:null,inert:Nk,inputMode:null,integrity:null,is:null,isMap:Nk,itemId:null,itemProp:qk,itemRef:qk,itemScope:Nk,itemType:qk,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Nk,low:Uk,manifest:null,max:null,maxLength:Uk,media:null,method:null,min:null,minLength:Uk,multiple:Nk,muted:Nk,name:null,nonce:null,noModule:Nk,noValidate:Nk,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Nk,optimum:Uk,pattern:null,ping:qk,placeholder:null,playsInline:Nk,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Nk,referrerPolicy:null,rel:qk,required:Nk,reversed:Nk,rows:Uk,rowSpan:Uk,sandbox:qk,scope:null,scoped:Nk,seamless:Nk,selected:Nk,shape:null,size:Uk,sizes:null,slot:null,span:Uk,spellCheck:Pk,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Uk,step:null,style:null,tabIndex:Uk,target:null,title:null,translate:null,type:null,typeMustMatch:Nk,useMap:null,value:Pk,width:Uk,wrap:null,align:null,aLink:null,archive:qk,axis:null,background:null,bgColor:null,border:Uk,borderColor:null,bottomMargin:Uk,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Nk,declare:Nk,event:null,face:null,frame:null,frameBorder:null,hSpace:Uk,leftMargin:Uk,link:null,longDesc:null,lowSrc:null,marginHeight:Uk,marginWidth:Uk,noResize:Nk,noHref:Nk,noShade:Nk,noWrap:Nk,object:null,profile:null,prompt:null,rev:null,rightMargin:Uk,rules:null,scheme:null,scrolling:Pk,standby:null,summary:null,text:null,topMargin:Uk,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Uk,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Nk,disableRemotePlayback:Nk,prefix:null,property:null,results:Uk,security:null,unselectable:null}});const ty=Wk({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:$k,properties:{about:Fk,accentHeight:Uk,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Uk,amplitude:Uk,arabicForm:null,ascent:Uk,attributeName:null,attributeType:null,azimuth:Uk,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Uk,by:null,calcMode:null,capHeight:Uk,className:qk,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Uk,diffuseConstant:Uk,direction:null,display:null,dur:null,divisor:Uk,dominantBaseline:null,download:Nk,dx:null,dy:null,edgeMode:null,editable:null,elevation:Uk,enableBackground:null,end:null,event:null,exponent:Uk,externalResourcesRequired:null,fill:null,fillOpacity:Uk,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Bk,g2:Bk,glyphName:Bk,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Uk,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Uk,horizOriginX:Uk,horizOriginY:Uk,id:null,ideographic:Uk,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Uk,k:Uk,k1:Uk,k2:Uk,k3:Uk,k4:Uk,kernelMatrix:Fk,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Uk,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Uk,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Uk,overlineThickness:Uk,paintOrder:null,panose1:null,path:null,pathLength:Uk,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:qk,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Uk,pointsAtY:Uk,pointsAtZ:Uk,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Fk,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Fk,rev:Fk,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Fk,requiredFeatures:Fk,requiredFonts:Fk,requiredFormats:Fk,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Uk,specularExponent:Uk,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Uk,strikethroughThickness:Uk,string:null,stroke:null,strokeDashArray:Fk,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Uk,strokeOpacity:Uk,strokeWidth:null,style:null,surfaceScale:Uk,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Fk,tabIndex:Uk,tableValues:null,target:null,targetX:Uk,targetY:Uk,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Fk,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Uk,underlineThickness:Uk,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Uk,values:null,vAlphabetic:Uk,vMathematical:Uk,vectorEffect:null,vHanging:Uk,vIdeographic:Uk,version:null,vertAdvY:Uk,vertOriginX:Uk,vertOriginY:Uk,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Uk,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}});const ny=/^data[-\w.:]+$/i;const iy=/-[a-z]/g;const ry=/[A-Z]/g;function sy(e,t){const n=Lk(t);let i=t;let r=Ik;if(n in e.normal){return e.property[e.normal[n]]}if(n.length>4&&n.slice(0,4)==="data"&&ny.test(t)){if(t.charAt(4)==="-"){const e=t.slice(5).replace(iy,ay);i="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!iy.test(e)){let n=e.replace(ry,oy);if(n.charAt(0)!=="-"){n="-"+n}t="data"+n}}r=Gk}return new r(i,t)}function oy(e){return"-"+e.toLowerCase()}function ay(e){return e.charAt(1).toUpperCase()}const ly=Rk([Kk,Xk,Zk,Jk,ey],"html");const cy=Rk([Kk,Xk,Zk,Jk,ty],"svg");function uy(e){return e.join(" ").trim()}const fy={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};const hy={}.hasOwnProperty;function dy(e,t){const n=t||{};function i(t,...n){let r=i.invalid;const s=i.handlers;if(t&&hy.call(t,e)){const n=String(t[e]);r=hy.call(s,n)?s[n]:i.unknown}if(r){return r.call(this,t,...n)}}i.handlers=n.handlers||{};i.invalid=n.invalid;i.unknown=n.unknown;return i}const py={};const my={}.hasOwnProperty;const gy=dy("type",{handlers:{root:ky,element:vy,text:Ey,comment:Ty,doctype:wy}});function by(e,t){const n=t||py;const i=n.space;return gy(e,i==="svg"?cy:ly)}function ky(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};n.childNodes=xy(e.children,n,t);Ay(e,n);return n}function yy(e,t){const n={nodeName:"#document-fragment",childNodes:[]};n.childNodes=xy(e.children,n,t);Ay(e,n);return n}function wy(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};Ay(e,t);return t}function Ey(e){const t={nodeName:"#text",value:e.value,parentNode:null};Ay(e,t);return t}function Ty(e){const t={nodeName:"#comment",data:e.value,parentNode:null};Ay(e,t);return t}function vy(e,t){const n=t;let i=n;if(e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"){i=cy}const r=[];let s;if(e.properties){for(s in e.properties){if(s!=="children"&&my.call(e.properties,s)){const t=Sy(i,s,e.properties[s]);if(t){r.push(t)}}}}const o=i.space;const a={nodeName:e.tagName,tagName:e.tagName,attrs:r,namespaceURI:fy[o],childNodes:[],parentNode:null};a.childNodes=xy(e.children,a,i);Ay(e,a);if(e.tagName==="template"&&e.content){a.content=yy(e.content,i)}return a}function Sy(e,t,n){const i=sy(e,t);if(n===false||n===null||n===undefined||typeof n==="number"&&Number.isNaN(n)||!n&&i.boolean){return}if(Array.isArray(n)){n=i.commaSeparated?Dk(n):uy(n)}const r={name:i.attribute,value:n===true?"":String(n)};if(i.space&&i.space!=="html"&&i.space!=="svg"){const e=r.name.indexOf(":");if(e<0){r.prefix=""}else{r.name=r.name.slice(e+1);r.prefix=i.attribute.slice(0,e)}r.namespace=fy[i.space]}return r}function xy(e,t,n){let i=-1;const r=[];if(e){while(++i<e.length){const s=gy(e[i],n);s.parentNode=t;r.push(s)}}return r}function Ay(e,t){const n=e.position;if(n&&n.start&&n.end){t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset}}}const Cy=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];const Dy=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]);const _y="�";var Ry;(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"})(Ry=Ry||(Ry={}));const Ly={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Iy(e){return e>=55296&&e<=57343}function Oy(e){return e>=56320&&e<=57343}function Ny(e,t){return(e-55296)*1024+9216+t}function Py(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function My(e){return e>=64976&&e<=65007||Dy.has(e)}var Uy;(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"})(Uy=Uy||(Uy={}));const qy=1<<16;class By{constructor(e){this.handler=e;this.html="";this.pos=-1;this.lastGapPos=-2;this.gapStack=[];this.skipNextNewLine=false;this.lastChunkWritten=false;this.endOfChunkHit=false;this.bufferWaterline=qy;this.isEol=false;this.lineStartPos=0;this.droppedBufferSize=0;this.line=1;this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e){const{line:t,col:n,offset:i}=this;return{code:e,startLine:t,endLine:t,startCol:n,endCol:n,startOffset:i,endOffset:i}}_err(e){if(this.handler.onParseError&&this.lastErrOffset!==this.offset){this.lastErrOffset=this.offset;this.handler.onParseError(this.getError(e))}}_addGap(){this.gapStack.push(this.lastGapPos);this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const t=this.html.charCodeAt(this.pos+1);if(Oy(t)){this.pos++;this._addGap();return Ny(e,t)}}else if(!this.lastChunkWritten){this.endOfChunkHit=true;return Ry.EOF}this._err(Uy.surrogateInInputStream);return e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){if(this.willDropParsedChunk()){this.html=this.html.substring(this.pos);this.lineStartPos-=this.pos;this.droppedBufferSize+=this.pos;this.pos=0;this.lastGapPos=-2;this.gapStack.length=0}}write(e,t){if(this.html.length>0){this.html+=e}else{this.html=e}this.endOfChunkHit=false;this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1);this.endOfChunkHit=false}startsWith(e,t){if(this.pos+e.length>this.html.length){this.endOfChunkHit=!this.lastChunkWritten;return false}if(t){return this.html.startsWith(e,this.pos)}for(let t=0;t<e.length;t++){const n=this.html.charCodeAt(this.pos+t)|32;if(n!==e.charCodeAt(t)){return false}}return true}peek(e){const t=this.pos+e;if(t>=this.html.length){this.endOfChunkHit=!this.lastChunkWritten;return Ry.EOF}const n=this.html.charCodeAt(t);return n===Ry.CARRIAGE_RETURN?Ry.LINE_FEED:n}advance(){this.pos++;if(this.isEol){this.isEol=false;this.line++;this.lineStartPos=this.pos}if(this.pos>=this.html.length){this.endOfChunkHit=!this.lastChunkWritten;return Ry.EOF}let e=this.html.charCodeAt(this.pos);if(e===Ry.CARRIAGE_RETURN){this.isEol=true;this.skipNextNewLine=true;return Ry.LINE_FEED}if(e===Ry.LINE_FEED){this.isEol=true;if(this.skipNextNewLine){this.line--;this.skipNextNewLine=false;this._addGap();return this.advance()}}this.skipNextNewLine=false;if(Iy(e)){e=this._processSurrogate(e)}const t=this.handler.onParseError===null||e>31&&e<127||e===Ry.LINE_FEED||e===Ry.CARRIAGE_RETURN||e>159&&e<64976;if(!t){this._checkForProblematicCharacters(e)}return e}_checkForProblematicCharacters(e){if(Py(e)){this._err(Uy.controlCharacterInInputStream)}else if(My(e)){this._err(Uy.noncharacterInInputStream)}}retreat(e){this.pos-=e;while(this.pos<this.lastGapPos){this.lastGapPos=this.gapStack.pop();this.pos--}this.isEol=false}}var Fy;(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"})(Fy=Fy||(Fy={}));function Hy(e,t){for(let n=e.attrs.length-1;n>=0;n--){if(e.attrs[n].name===t){return e.attrs[n].value}}return null}var zy;(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/"})(zy=zy||(zy={}));var jy;(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"})(jy=jy||(jy={}));var Gy;(function(e){e["NO_QUIRKS"]="no-quirks";e["QUIRKS"]="quirks";e["LIMITED_QUIRKS"]="limited-quirks"})(Gy=Gy||(Gy={}));var Vy;(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"})(Vy=Vy||(Vy={}));var Yy;(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"})(Yy=Yy||(Yy={}));const Wy=new Map([[Vy.A,Yy.A],[Vy.ADDRESS,Yy.ADDRESS],[Vy.ANNOTATION_XML,Yy.ANNOTATION_XML],[Vy.APPLET,Yy.APPLET],[Vy.AREA,Yy.AREA],[Vy.ARTICLE,Yy.ARTICLE],[Vy.ASIDE,Yy.ASIDE],[Vy.B,Yy.B],[Vy.BASE,Yy.BASE],[Vy.BASEFONT,Yy.BASEFONT],[Vy.BGSOUND,Yy.BGSOUND],[Vy.BIG,Yy.BIG],[Vy.BLOCKQUOTE,Yy.BLOCKQUOTE],[Vy.BODY,Yy.BODY],[Vy.BR,Yy.BR],[Vy.BUTTON,Yy.BUTTON],[Vy.CAPTION,Yy.CAPTION],[Vy.CENTER,Yy.CENTER],[Vy.CODE,Yy.CODE],[Vy.COL,Yy.COL],[Vy.COLGROUP,Yy.COLGROUP],[Vy.DD,Yy.DD],[Vy.DESC,Yy.DESC],[Vy.DETAILS,Yy.DETAILS],[Vy.DIALOG,Yy.DIALOG],[Vy.DIR,Yy.DIR],[Vy.DIV,Yy.DIV],[Vy.DL,Yy.DL],[Vy.DT,Yy.DT],[Vy.EM,Yy.EM],[Vy.EMBED,Yy.EMBED],[Vy.FIELDSET,Yy.FIELDSET],[Vy.FIGCAPTION,Yy.FIGCAPTION],[Vy.FIGURE,Yy.FIGURE],[Vy.FONT,Yy.FONT],[Vy.FOOTER,Yy.FOOTER],[Vy.FOREIGN_OBJECT,Yy.FOREIGN_OBJECT],[Vy.FORM,Yy.FORM],[Vy.FRAME,Yy.FRAME],[Vy.FRAMESET,Yy.FRAMESET],[Vy.H1,Yy.H1],[Vy.H2,Yy.H2],[Vy.H3,Yy.H3],[Vy.H4,Yy.H4],[Vy.H5,Yy.H5],[Vy.H6,Yy.H6],[Vy.HEAD,Yy.HEAD],[Vy.HEADER,Yy.HEADER],[Vy.HGROUP,Yy.HGROUP],[Vy.HR,Yy.HR],[Vy.HTML,Yy.HTML],[Vy.I,Yy.I],[Vy.IMG,Yy.IMG],[Vy.IMAGE,Yy.IMAGE],[Vy.INPUT,Yy.INPUT],[Vy.IFRAME,Yy.IFRAME],[Vy.KEYGEN,Yy.KEYGEN],[Vy.LABEL,Yy.LABEL],[Vy.LI,Yy.LI],[Vy.LINK,Yy.LINK],[Vy.LISTING,Yy.LISTING],[Vy.MAIN,Yy.MAIN],[Vy.MALIGNMARK,Yy.MALIGNMARK],[Vy.MARQUEE,Yy.MARQUEE],[Vy.MATH,Yy.MATH],[Vy.MENU,Yy.MENU],[Vy.META,Yy.META],[Vy.MGLYPH,Yy.MGLYPH],[Vy.MI,Yy.MI],[Vy.MO,Yy.MO],[Vy.MN,Yy.MN],[Vy.MS,Yy.MS],[Vy.MTEXT,Yy.MTEXT],[Vy.NAV,Yy.NAV],[Vy.NOBR,Yy.NOBR],[Vy.NOFRAMES,Yy.NOFRAMES],[Vy.NOEMBED,Yy.NOEMBED],[Vy.NOSCRIPT,Yy.NOSCRIPT],[Vy.OBJECT,Yy.OBJECT],[Vy.OL,Yy.OL],[Vy.OPTGROUP,Yy.OPTGROUP],[Vy.OPTION,Yy.OPTION],[Vy.P,Yy.P],[Vy.PARAM,Yy.PARAM],[Vy.PLAINTEXT,Yy.PLAINTEXT],[Vy.PRE,Yy.PRE],[Vy.RB,Yy.RB],[Vy.RP,Yy.RP],[Vy.RT,Yy.RT],[Vy.RTC,Yy.RTC],[Vy.RUBY,Yy.RUBY],[Vy.S,Yy.S],[Vy.SCRIPT,Yy.SCRIPT],[Vy.SECTION,Yy.SECTION],[Vy.SELECT,Yy.SELECT],[Vy.SOURCE,Yy.SOURCE],[Vy.SMALL,Yy.SMALL],[Vy.SPAN,Yy.SPAN],[Vy.STRIKE,Yy.STRIKE],[Vy.STRONG,Yy.STRONG],[Vy.STYLE,Yy.STYLE],[Vy.SUB,Yy.SUB],[Vy.SUMMARY,Yy.SUMMARY],[Vy.SUP,Yy.SUP],[Vy.TABLE,Yy.TABLE],[Vy.TBODY,Yy.TBODY],[Vy.TEMPLATE,Yy.TEMPLATE],[Vy.TEXTAREA,Yy.TEXTAREA],[Vy.TFOOT,Yy.TFOOT],[Vy.TD,Yy.TD],[Vy.TH,Yy.TH],[Vy.THEAD,Yy.THEAD],[Vy.TITLE,Yy.TITLE],[Vy.TR,Yy.TR],[Vy.TRACK,Yy.TRACK],[Vy.TT,Yy.TT],[Vy.U,Yy.U],[Vy.UL,Yy.UL],[Vy.SVG,Yy.SVG],[Vy.VAR,Yy.VAR],[Vy.WBR,Yy.WBR],[Vy.XMP,Yy.XMP]]);function Xy(e){var t;return(t=Wy.get(e))!==null&&t!==void 0?t:Yy.UNKNOWN}const Ky=Yy;const $y={[zy.HTML]:new Set([Ky.ADDRESS,Ky.APPLET,Ky.AREA,Ky.ARTICLE,Ky.ASIDE,Ky.BASE,Ky.BASEFONT,Ky.BGSOUND,Ky.BLOCKQUOTE,Ky.BODY,Ky.BR,Ky.BUTTON,Ky.CAPTION,Ky.CENTER,Ky.COL,Ky.COLGROUP,Ky.DD,Ky.DETAILS,Ky.DIR,Ky.DIV,Ky.DL,Ky.DT,Ky.EMBED,Ky.FIELDSET,Ky.FIGCAPTION,Ky.FIGURE,Ky.FOOTER,Ky.FORM,Ky.FRAME,Ky.FRAMESET,Ky.H1,Ky.H2,Ky.H3,Ky.H4,Ky.H5,Ky.H6,Ky.HEAD,Ky.HEADER,Ky.HGROUP,Ky.HR,Ky.HTML,Ky.IFRAME,Ky.IMG,Ky.INPUT,Ky.LI,Ky.LINK,Ky.LISTING,Ky.MAIN,Ky.MARQUEE,Ky.MENU,Ky.META,Ky.NAV,Ky.NOEMBED,Ky.NOFRAMES,Ky.NOSCRIPT,Ky.OBJECT,Ky.OL,Ky.P,Ky.PARAM,Ky.PLAINTEXT,Ky.PRE,Ky.SCRIPT,Ky.SECTION,Ky.SELECT,Ky.SOURCE,Ky.STYLE,Ky.SUMMARY,Ky.TABLE,Ky.TBODY,Ky.TD,Ky.TEMPLATE,Ky.TEXTAREA,Ky.TFOOT,Ky.TH,Ky.THEAD,Ky.TITLE,Ky.TR,Ky.TRACK,Ky.UL,Ky.WBR,Ky.XMP]),[zy.MATHML]:new Set([Ky.MI,Ky.MO,Ky.MN,Ky.MS,Ky.MTEXT,Ky.ANNOTATION_XML]),[zy.SVG]:new Set([Ky.TITLE,Ky.FOREIGN_OBJECT,Ky.DESC]),[zy.XLINK]:new Set,[zy.XML]:new Set,[zy.XMLNS]:new Set};function Qy(e){return e===Ky.H1||e===Ky.H2||e===Ky.H3||e===Ky.H4||e===Ky.H5||e===Ky.H6}const Zy=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 Jy;(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"})(Jy||(Jy={}));const ew={DATA:Jy.DATA,RCDATA:Jy.RCDATA,RAWTEXT:Jy.RAWTEXT,SCRIPT_DATA:Jy.SCRIPT_DATA,PLAINTEXT:Jy.PLAINTEXT,CDATA_SECTION:Jy.CDATA_SECTION};function tw(e){return e>=Ry.DIGIT_0&&e<=Ry.DIGIT_9}function nw(e){return e>=Ry.LATIN_CAPITAL_A&&e<=Ry.LATIN_CAPITAL_Z}function iw(e){return e>=Ry.LATIN_SMALL_A&&e<=Ry.LATIN_SMALL_Z}function rw(e){return iw(e)||nw(e)}function sw(e){return rw(e)||tw(e)}function ow(e){return e>=Ry.LATIN_CAPITAL_A&&e<=Ry.LATIN_CAPITAL_F}function aw(e){return e>=Ry.LATIN_SMALL_A&&e<=Ry.LATIN_SMALL_F}function lw(e){return tw(e)||ow(e)||aw(e)}function cw(e){return e+32}function uw(e){return e===Ry.SPACE||e===Ry.LINE_FEED||e===Ry.TABULATION||e===Ry.FORM_FEED}function fw(e){return e===Ry.EQUALS_SIGN||sw(e)}function hw(e){return uw(e)||e===Ry.SOLIDUS||e===Ry.GREATER_THAN_SIGN}class dw{constructor(e,t){this.options=e;this.handler=t;this.paused=false;this.inLoop=false;this.inForeignNode=false;this.lastStartTagName="";this.active=false;this.state=Jy.DATA;this.returnState=Jy.DATA;this.charRefCode=-1;this.consumedAfterSnapshot=-1;this.currentCharacterToken=null;this.currentToken=null;this.currentAttr={name:"",value:""};this.preprocessor=new By(t);this.currentLocation=this.getCurrentLocation(-1)}_err(e){var t,n;(n=(t=this.handler).onParseError)===null||n===void 0?void 0:n.call(t,this.preprocessor.getError(e))}getCurrentLocation(e){if(!this.options.sourceCodeLocationInfo){return null}return{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}}_runParsingLoop(){if(this.inLoop)return;this.inLoop=true;while(this.active&&!this.paused){this.consumedAfterSnapshot=0;const e=this._consume();if(!this._ensureHibernation()){this._callState(e)}}this.inLoop=false}pause(){this.paused=true}resume(e){if(!this.paused){throw new Error("Parser was already resumed")}this.paused=false;if(this.inLoop)return;this._runParsingLoop();if(!this.paused){e===null||e===void 0?void 0:e()}}write(e,t,n){this.active=true;this.preprocessor.write(e,t);this._runParsingLoop();if(!this.paused){n===null||n===void 0?void 0:n()}}insertHtmlAtCurrentPos(e){this.active=true;this.preprocessor.insertHtmlAtCurrentPos(e);this._runParsingLoop()}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){this._unconsume(this.consumedAfterSnapshot);this.active=false;return true}return false}_consume(){this.consumedAfterSnapshot++;return this.preprocessor.advance()}_unconsume(e){this.consumedAfterSnapshot-=e;this.preprocessor.retreat(e)}_reconsumeInState(e,t){this.state=e;this._callState(t)}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++){this.preprocessor.advance()}}_consumeSequenceIfMatch(e,t){if(this.preprocessor.startsWith(e,t)){this._advanceBy(e.length-1);return true}return false}_createStartTagToken(){this.currentToken={type:Fy.START_TAG,tagName:"",tagID:Yy.UNKNOWN,selfClosing:false,ackSelfClosing:false,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Fy.END_TAG,tagName:"",tagID:Yy.UNKNOWN,selfClosing:false,ackSelfClosing:false,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:Fy.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:Fy.DOCTYPE,name:e,forceQuirks:false,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""};this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e;var t;const n=this.currentToken;if(Hy(n,this.currentAttr.name)===null){n.attrs.push(this.currentAttr);if(n.location&&this.currentLocation){const i=(e=(t=n.location).attrs)!==null&&e!==void 0?e:t.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation;this._leaveAttrValue()}}else{this._err(Uy.duplicateAttribute)}}_leaveAttrValue(){if(this.currentLocation){this.currentLocation.endLine=this.preprocessor.line;this.currentLocation.endCol=this.preprocessor.col;this.currentLocation.endOffset=this.preprocessor.offset}}prepareToken(e){this._emitCurrentCharacterToken(e.location);this.currentToken=null;if(e.location){e.location.endLine=this.preprocessor.line;e.location.endCol=this.preprocessor.col+1;e.location.endOffset=this.preprocessor.offset+1}this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const e=this.currentToken;this.prepareToken(e);e.tagID=Xy(e.tagName);if(e.type===Fy.START_TAG){this.lastStartTagName=e.tagName;this.handler.onStartTag(e)}else{if(e.attrs.length>0){this._err(Uy.endTagWithAttributes)}if(e.selfClosing){this._err(Uy.endTagWithTrailingSolidus)}this.handler.onEndTag(e)}this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e);this.handler.onComment(e);this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e);this.handler.onDoctype(e);this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){if(e&&this.currentCharacterToken.location){this.currentCharacterToken.location.endLine=e.startLine;this.currentCharacterToken.location.endCol=e.startCol;this.currentCharacterToken.location.endOffset=e.startOffset}switch(this.currentCharacterToken.type){case Fy.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Fy.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Fy.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);if(e){e.endLine=e.startLine;e.endCol=e.startCol;e.endOffset=e.startOffset}this._emitCurrentCharacterToken(e);this.handler.onEof({type:Fy.EOF,location:e});this.active=false}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type!==e){this.currentLocation=this.getCurrentLocation(0);this._emitCurrentCharacterToken(this.currentLocation);this.preprocessor.dropParsedChunk()}else{this.currentCharacterToken.chars+=t;return}}this._createCharacterToken(e,t)}_emitCodePoint(e){const t=uw(e)?Fy.WHITESPACE_CHARACTER:e===Ry.NULL?Fy.NULL_CHARACTER:Fy.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(Fy.CHARACTER,e)}_matchNamedCharacterReference(e){let t=null;let n=0;let i=false;for(let r=0,s=o[0];r>=0;e=this._consume()){r=T(o,s,r+1,e);if(r<0)break;n+=1;s=o[r];const a=s&d.VALUE_LENGTH;if(a){const s=(a>>14)-1;if(e!==Ry.SEMICOLON&&this._isCharacterReferenceInAttribute()&&fw(this.preprocessor.peek(1))){t=[Ry.AMPERSAND];r+=s}else{t=s===0?[o[r]&~d.VALUE_LENGTH]:s===1?[o[++r]]:[o[++r],o[++r]];n=0;i=e!==Ry.SEMICOLON}if(s===0){this._consume();break}}}this._unconsume(n);if(i&&!this.preprocessor.endOfChunkHit){this._err(Uy.missingSemicolonAfterCharacterReference)}this._unconsume(1);return t}_isCharacterReferenceInAttribute(){return this.returnState===Jy.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===Jy.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===Jy.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){if(this._isCharacterReferenceInAttribute()){this.currentAttr.value+=String.fromCodePoint(e)}else{this._emitCodePoint(e)}}_callState(e){switch(this.state){case Jy.DATA:{this._stateData(e);break}case Jy.RCDATA:{this._stateRcdata(e);break}case Jy.RAWTEXT:{this._stateRawtext(e);break}case Jy.SCRIPT_DATA:{this._stateScriptData(e);break}case Jy.PLAINTEXT:{this._statePlaintext(e);break}case Jy.TAG_OPEN:{this._stateTagOpen(e);break}case Jy.END_TAG_OPEN:{this._stateEndTagOpen(e);break}case Jy.TAG_NAME:{this._stateTagName(e);break}case Jy.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(e);break}case Jy.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(e);break}case Jy.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(e);break}case Jy.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(e);break}case Jy.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(e);break}case Jy.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(e);break}case Jy.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(e);break}case Jy.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(e);break}case Jy.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(e);break}case Jy.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(e);break}case Jy.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(e);break}case Jy.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(e);break}case Jy.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(e);break}case Jy.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(e);break}case Jy.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(e);break}case Jy.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(e);break}case Jy.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(e);break}case Jy.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(e);break}case Jy.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(e);break}case Jy.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(e);break}case Jy.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(e);break}case Jy.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(e);break}case Jy.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(e);break}case Jy.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(e);break}case Jy.ATTRIBUTE_NAME:{this._stateAttributeName(e);break}case Jy.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(e);break}case Jy.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(e);break}case Jy.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(e);break}case Jy.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(e);break}case Jy.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(e);break}case Jy.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(e);break}case Jy.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(e);break}case Jy.BOGUS_COMMENT:{this._stateBogusComment(e);break}case Jy.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(e);break}case Jy.COMMENT_START:{this._stateCommentStart(e);break}case Jy.COMMENT_START_DASH:{this._stateCommentStartDash(e);break}case Jy.COMMENT:{this._stateComment(e);break}case Jy.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(e);break}case Jy.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(e);break}case Jy.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(e);break}case Jy.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(e);break}case Jy.COMMENT_END_DASH:{this._stateCommentEndDash(e);break}case Jy.COMMENT_END:{this._stateCommentEnd(e);break}case Jy.COMMENT_END_BANG:{this._stateCommentEndBang(e);break}case Jy.DOCTYPE:{this._stateDoctype(e);break}case Jy.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(e);break}case Jy.DOCTYPE_NAME:{this._stateDoctypeName(e);break}case Jy.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(e);break}case Jy.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(e);break}case Jy.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(e);break}case Jy.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(e);break}case Jy.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(e);break}case Jy.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(e);break}case Jy.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break}case Jy.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(e);break}case Jy.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(e);break}case Jy.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(e);break}case Jy.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(e);break}case Jy.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(e);break}case Jy.BOGUS_DOCTYPE:{this._stateBogusDoctype(e);break}case Jy.CDATA_SECTION:{this._stateCdataSection(e);break}case Jy.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(e);break}case Jy.CDATA_SECTION_END:{this._stateCdataSectionEnd(e);break}case Jy.CHARACTER_REFERENCE:{this._stateCharacterReference(e);break}case Jy.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(e);break}case Jy.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(e);break}case Jy.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(e);break}case Jy.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(e);break}case Jy.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(e);break}case Jy.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(e);break}case Jy.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(e);break}default:{throw new Error("Unknown state")}}}_stateData(e){switch(e){case Ry.LESS_THAN_SIGN:{this.state=Jy.TAG_OPEN;break}case Ry.AMPERSAND:{this.returnState=Jy.DATA;this.state=Jy.CHARACTER_REFERENCE;break}case Ry.NULL:{this._err(Uy.unexpectedNullCharacter);this._emitCodePoint(e);break}case Ry.EOF:{this._emitEOFToken();break}default:{this._emitCodePoint(e)}}}_stateRcdata(e){switch(e){case Ry.AMPERSAND:{this.returnState=Jy.RCDATA;this.state=Jy.CHARACTER_REFERENCE;break}case Ry.LESS_THAN_SIGN:{this.state=Jy.RCDATA_LESS_THAN_SIGN;break}case Ry.NULL:{this._err(Uy.unexpectedNullCharacter);this._emitChars(_y);break}case Ry.EOF:{this._emitEOFToken();break}default:{this._emitCodePoint(e)}}}_stateRawtext(e){switch(e){case Ry.LESS_THAN_SIGN:{this.state=Jy.RAWTEXT_LESS_THAN_SIGN;break}case Ry.NULL:{this._err(Uy.unexpectedNullCharacter);this._emitChars(_y);break}case Ry.EOF:{this._emitEOFToken();break}default:{this._emitCodePoint(e)}}}_stateScriptData(e){switch(e){case Ry.LESS_THAN_SIGN:{this.state=Jy.SCRIPT_DATA_LESS_THAN_SIGN;break}case Ry.NULL:{this._err(Uy.unexpectedNullCharacter);this._emitChars(_y);break}case Ry.EOF:{this._emitEOFToken();break}default:{this._emitCodePoint(e)}}}_statePlaintext(e){switch(e){case Ry.NULL:{this._err(Uy.unexpectedNullCharacter);this._emitChars(_y);break}case Ry.EOF:{this._emitEOFToken();break}default:{this._emitCodePoint(e)}}}_stateTagOpen(e){if(rw(e)){this._createStartTagToken();this.state=Jy.TAG_NAME;this._stateTagName(e)}else switch(e){case Ry.EXCLAMATION_MARK:{this.state=Jy.MARKUP_DECLARATION_OPEN;break}case Ry.SOLIDUS:{this.state=Jy.END_TAG_OPEN;break}case Ry.QUESTION_MARK:{this._err(Uy.unexpectedQuestionMarkInsteadOfTagName);this._createCommentToken(1);this.state=Jy.BOGUS_COMMENT;this._stateBogusComment(e);break}case Ry.EOF:{this._err(Uy.eofBeforeTagName);this._emitChars("<");this._emitEOFToken();break}default:{this._err(Uy.invalidFirstCharacterOfTagName);this._emitChars("<");this.state=Jy.DATA;this._stateData(e)}}}_stateEndTagOpen(e){if(rw(e)){this._createEndTagToken();this.state=Jy.TAG_NAME;this._stateTagName(e)}else switch(e){case Ry.GREATER_THAN_SIGN:{this._err(Uy.missingEndTagName);this.state=Jy.DATA;break}case Ry.EOF:{this._err(Uy.eofBeforeTagName);this._emitChars("</");this._emitEOFToken();break}default:{this._err(Uy.invalidFirstCharacterOfTagName);this._createCommentToken(2);this.state=Jy.BOGUS_COMMENT;this._stateBogusComment(e)}}}_stateTagName(e){const t=this.currentToken;switch(e){case Ry.SPACE:case Ry.LINE_FEED:case Ry.TABULATION:case Ry.FORM_FEED:{this.state=Jy.BEFORE_ATTRIBUTE_NAME;break}case Ry.SOLIDUS:{this.state=Jy.SELF_CLOSING_START_TAG;break}case Ry.GREATER_THAN_SIGN:{this.state=Jy.DATA;this.emitCurrentTagToken();break}case Ry.NULL:{this._err(Uy.unexpectedNullCharacter);t.tagName+=_y;break}case Ry.EOF:{this._err(Uy.eofInTag);this._emitEOFToken();break}default:{t.tagName+=String.fromCodePoint(nw(e)?cw(e):e)}}}_stateRcdataLessThanSign(e){if(e===Ry.SOLIDUS){this.state=Jy.RCDATA_END_TAG_OPEN}else{this._emitChars("<");this.state=Jy.RCDATA;this._stateRcdata(e)}}_stateRcdataEndTagOpen(e){if(rw(e)){this.state=Jy.RCDATA_END_TAG_NAME;this._stateRcdataEndTagName(e)}else{this._emitChars("</");this.state=Jy.RCDATA;this._stateRcdata(e)}}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,false)){return!this._ensureHibernation()}this._createEndTagToken();const t=this.currentToken;t.tagName=this.lastStartTagName;const n=this.preprocessor.peek(this.lastStartTagName.length);switch(n){case Ry.SPACE:case Ry.LINE_FEED:case Ry.TABULATION:case Ry.FORM_FEED:{this._advanceBy(this.lastStartTagName.length);this.state=Jy.BEFORE_ATTRIBUTE_NAME;return false}case Ry.SOLIDUS:{this._advanceBy(this.lastStartTagName.length);this.state=Jy.SELF_CLOSING_START_TAG;return false}case Ry.GREATER_THAN_SIGN:{this._advanceBy(this.lastStartTagName.length);this.emitCurrentTagToken();this.state=Jy.DATA;return false}default:{return!this._ensureHibernation()}}}_stateRcdataEndTagName(e){if(this.handleSpecialEndTag(e)){this._emitChars("</");this.state=Jy.RCDATA;this._stateRcdata(e)}}_stateRawtextLessThanSign(e){if(e===Ry.SOLIDUS){this.state=Jy.RAWTEXT_END_TAG_OPEN}else{this._emitChars("<");this.state=Jy.RAWTEXT;this._stateRawtext(e)}}_stateRawtextEndTagOpen(e){if(rw(e)){this.state=Jy.RAWTEXT_END_TAG_NAME;this._stateRawtextEndTagName(e)}else{this._emitChars("</");this.state=Jy.RAWTEXT;this._stateRawtext(e)}}_stateRawtextEndTagName(e){if(this.handleSpecialEndTag(e)){this._emitChars("</");this.state=Jy.RAWTEXT;this._stateRawtext(e)}}_stateScriptDataLessThanSign(e){switch(e){case Ry.SOLIDUS:{this.state=Jy.SCRIPT_DATA_END_TAG_OPEN;break}case Ry.EXCLAMATION_MARK:{this.state=Jy.SCRIPT_DATA_ESCAPE_START;this._emitChars("<!");break}default:{this._emitChars("<");this.state=Jy.SCRIPT_DATA;this._stateScriptData(e)}}}_stateScriptDataEndTagOpen(e){if(rw(e)){this.state=Jy.SCRIPT_DATA_END_TAG_NAME;this._stateScriptDataEndTagName(e)}else{this._emitChars("</");this.state=Jy.SCRIPT_DATA;this._stateScriptData(e)}}_stateScriptDataEndTagName(e){if(this.handleSpecialEndTag(e)){this._emitChars("</");this.state=Jy.SCRIPT_DATA;this._stateScriptData(e)}}_stateScriptDataEscapeStart(e){if(e===Ry.HYPHEN_MINUS){this.state=Jy.SCRIPT_DATA_ESCAPE_START_DASH;this._emitChars("-")}else{this.state=Jy.SCRIPT_DATA;this._stateScriptData(e)}}_stateScriptDataEscapeStartDash(e){if(e===Ry.HYPHEN_MINUS){this.state=Jy.SCRIPT_DATA_ESCAPED_DASH_DASH;this._emitChars("-")}else{this.state=Jy.SCRIPT_DATA;this._stateScriptData(e)}}_stateScriptDataEscaped(e){switch(e){case Ry.HYPHEN_MINUS:{this.state=Jy.SCRIPT_DATA_ESCAPED_DASH;this._emitChars("-");break}case Ry.LESS_THAN_SIGN:{this.state=Jy.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case Ry.NULL:{this._err(Uy.unexpectedNullCharacter);this._emitChars(_y);break}case Ry.EOF:{this._err(Uy.eofInScriptHtmlCommentLikeText);this._emitEOFToken();break}default:{this._emitCodePoint(e)}}}_stateScriptDataEscapedDash(e){switch(e){case Ry.HYPHEN_MINUS:{this.state=Jy.SCRIPT_DATA_ESCAPED_DASH_DASH;this._emitChars("-");break}case Ry.LESS_THAN_SIGN:{this.state=Jy.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case Ry.NULL:{this._err(Uy.unexpectedNullCharacter);this.state=Jy.SCRIPT_DATA_ESCAPED;this._emitChars(_y);break}case Ry.EOF:{this._err(Uy.eofInScriptHtmlCommentLikeText);this._emitEOFToken();break}default:{this.state=Jy.SCRIPT_DATA_ESCAPED;this._emitCodePoint(e)}}}_stateScriptDataEscapedDashDash(e){switch(e){case Ry.HYPHEN_MINUS:{this._emitChars("-");break}case Ry.LESS_THAN_SIGN:{this.state=Jy.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case Ry.GREATER_THAN_SIGN:{this.state=Jy.SCRIPT_DATA;this._emitChars(">");break}case Ry.NULL:{this._err(Uy.unexpectedNullCharacter);this.state=Jy.SCRIPT_DATA_ESCAPED;this._emitChars(_y);break}case Ry.EOF:{this._err(Uy.eofInScriptHtmlCommentLikeText);this._emitEOFToken();break}default:{this.state=Jy.SCRIPT_DATA_ESCAPED;this._emitCodePoint(e)}}}_stateScriptDataEscapedLessThanSign(e){if(e===Ry.SOLIDUS){this.state=Jy.SCRIPT_DATA_ESCAPED_END_TAG_OPEN}else if(rw(e)){this._emitChars("<");this.state=Jy.SCRIPT_DATA_DOUBLE_ESCAPE_START;this._stateScriptDataDoubleEscapeStart(e)}else{this._emitChars("<");this.state=Jy.SCRIPT_DATA_ESCAPED;this._stateScriptDataEscaped(e)}}_stateScriptDataEscapedEndTagOpen(e){if(rw(e)){this.state=Jy.SCRIPT_DATA_ESCAPED_END_TAG_NAME;this._stateScriptDataEscapedEndTagName(e)}else{this._emitChars("</");this.state=Jy.SCRIPT_DATA_ESCAPED;this._stateScriptDataEscaped(e)}}_stateScriptDataEscapedEndTagName(e){if(this.handleSpecialEndTag(e)){this._emitChars("</");this.state=Jy.SCRIPT_DATA_ESCAPED;this._stateScriptDataEscaped(e)}}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(Ly.SCRIPT,false)&&hw(this.preprocessor.peek(Ly.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e<Ly.SCRIPT.length;e++){this._emitCodePoint(this._consume())}this.state=Jy.SCRIPT_DATA_DOUBLE_ESCAPED}else if(!this._ensureHibernation()){this.state=Jy.SCRIPT_DATA_ESCAPED;this._stateScriptDataEscaped(e)}}_stateScriptDataDoubleEscaped(e){switch(e){case Ry.HYPHEN_MINUS:{this.state=Jy.SCRIPT_DATA_DOUBLE_ESCAPED_DASH;this._emitChars("-");break}case Ry.LESS_THAN_SIGN:{this.state=Jy.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN;this._emitChars("<");break}case Ry.NULL:{this._err(Uy.unexpectedNullCharacter);this._emitChars(_y);break}case Ry.EOF:{this._err(Uy.eofInScriptHtmlCommentLikeText);this._emitEOFToken();break}default:{this._emitCodePoint(e)}}}_stateScriptDataDoubleEscapedDash(e){switch(e){case Ry.HYPHEN_MINUS:{this.state=Jy.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH;this._emitChars("-");break}case Ry.LESS_THAN_SIGN:{this.state=Jy.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN;this._emitChars("<");break}case Ry.NULL:{this._err(Uy.unexpectedNullCharacter);this.state=Jy.SCRIPT_DATA_DOUBLE_ESCAPED;this._emitChars(_y);break}case Ry.EOF:{this._err(Uy.eofInScriptHtmlCommentLikeText);this._emitEOFToken();break}default:{this.state=Jy.SCRIPT_DATA_DOUBLE_ESCAPED;this._emitCodePoint(e)}}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case Ry.HYPHEN_MINUS:{this._emitChars("-");break}case Ry.LESS_THAN_SIGN:{this.state=Jy.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN;this._emitChars("<");break}case Ry.GREATER_THAN_SIGN:{this.state=Jy.SCRIPT_DATA;this._emitChars(">");break}case Ry.NULL:{this._err(Uy.unexpectedNullCharacter);this.state=Jy.SCRIPT_DATA_DOUBLE_ESCAPED;this._emitChars(_y);break}case Ry.EOF:{this._err(Uy.eofInScriptHtmlCommentLikeText);this._emitEOFToken();break}default:{this.state=Jy.SCRIPT_DATA_DOUBLE_ESCAPED;this._emitCodePoint(e)}}}_stateScriptDataDoubleEscapedLessThanSign(e){if(e===Ry.SOLIDUS){this.state=Jy.SCRIPT_DATA_DOUBLE_ESCAPE_END;this._emitChars("/")}else{this.state=Jy.SCRIPT_DATA_DOUBLE_ESCAPED;this._stateScriptDataDoubleEscaped(e)}}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(Ly.SCRIPT,false)&&hw(this.preprocessor.peek(Ly.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e<Ly.SCRIPT.length;e++){this._emitCodePoint(this._consume())}this.state=Jy.SCRIPT_DATA_ESCAPED}else if(!this._ensureHibernation()){this.state=Jy.SCRIPT_DATA_DOUBLE_ESCAPED;this._stateScriptDataDoubleEscaped(e)}}_stateBeforeAttributeName(e){switch(e){case Ry.SPACE:case Ry.LINE_FEED:case Ry.TABULATION:case Ry.FORM_FEED:{break}case Ry.SOLIDUS:case Ry.GREATER_THAN_SIGN:case Ry.EOF:{this.state=Jy.AFTER_ATTRIBUTE_NAME;this._stateAfterAttributeName(e);break}case Ry.EQUALS_SIGN:{this._err(Uy.unexpectedEqualsSignBeforeAttributeName);this._createAttr("=");this.state=Jy.ATTRIBUTE_NAME;break}default:{this._createAttr("");this.state=Jy.ATTRIBUTE_NAME;this._stateAttributeName(e)}}}_stateAttributeName(e){switch(e){case Ry.SPACE:case Ry.LINE_FEED:case Ry.TABULATION:case Ry.FORM_FEED:case Ry.SOLIDUS:case Ry.GREATER_THAN_SIGN:case Ry.EOF:{this._leaveAttrName();this.state=Jy.AFTER_ATTRIBUTE_NAME;this._stateAfterAttributeName(e);break}case Ry.EQUALS_SIGN:{this._leaveAttrName();this.state=Jy.BEFORE_ATTRIBUTE_VALUE;break}case Ry.QUOTATION_MARK:case Ry.APOSTROPHE:case Ry.LESS_THAN_SIGN:{this._err(Uy.unexpectedCharacterInAttributeName);this.currentAttr.name+=String.fromCodePoint(e);break}case Ry.NULL:{this._err(Uy.unexpectedNullCharacter);this.currentAttr.name+=_y;break}default:{this.currentAttr.name+=String.fromCodePoint(nw(e)?cw(e):e)}}}_stateAfterAttributeName(e){switch(e){case Ry.SPACE:case Ry.LINE_FEED:case Ry.TABULATION:case Ry.FORM_FEED:{break}case Ry.SOLIDUS:{this.state=Jy.SELF_CLOSING_START_TAG;break}case Ry.EQUALS_SIGN:{this.state=Jy.BEFORE_ATTRIBUTE_VALUE;break}case Ry.GREATER_THAN_SIGN:{this.state=Jy.DATA;this.emitCurrentTagToken();break}case Ry.EOF:{this._err(Uy.eofInTag);this._emitEOFToken();break}default:{this._createAttr("");this.state=Jy.ATTRIBUTE_NAME;this._stateAttributeName(e)}}}_stateBeforeAttributeValue(e){switch(e){case Ry.SPACE:case Ry.LINE_FEED:case Ry.TABULATION:case Ry.FORM_FEED:{break}case Ry.QUOTATION_MARK:{this.state=Jy.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case Ry.APOSTROPHE:{this.state=Jy.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case Ry.GREATER_THAN_SIGN:{this._err(Uy.missingAttributeValue);this.state=Jy.DATA;this.emitCurrentTagToken();break}default:{this.state=Jy.ATTRIBUTE_VALUE_UNQUOTED;this._stateAttributeValueUnquoted(e)}}}_stateAttributeValueDoubleQuoted(e){switch(e){case Ry.QUOTATION_MARK:{this.state=Jy.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case Ry.AMPERSAND:{this.returnState=Jy.ATTRIBUTE_VALUE_DOUBLE_QUOTED;this.state=Jy.CHARACTER_REFERENCE;break}case Ry.NULL:{this._err(Uy.unexpectedNullCharacter);this.currentAttr.value+=_y;break}case Ry.EOF:{this._err(Uy.eofInTag);this._emitEOFToken();break}default:{this.currentAttr.value+=String.fromCodePoint(e)}}}_stateAttributeValueSingleQuoted(e){switch(e){case Ry.APOSTROPHE:{this.state=Jy.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case Ry.AMPERSAND:{this.returnState=Jy.ATTRIBUTE_VALUE_SINGLE_QUOTED;this.state=Jy.CHARACTER_REFERENCE;break}case Ry.NULL:{this._err(Uy.unexpectedNullCharacter);this.currentAttr.value+=_y;break}case Ry.EOF:{this._err(Uy.eofInTag);this._emitEOFToken();break}default:{this.currentAttr.value+=String.fromCodePoint(e)}}}_stateAttributeValueUnquoted(e){switch(e){case Ry.SPACE:case Ry.LINE_FEED:case Ry.TABULATION:case Ry.FORM_FEED:{this._leaveAttrValue();this.state=Jy.BEFORE_ATTRIBUTE_NAME;break}case Ry.AMPERSAND:{this.returnState=Jy.ATTRIBUTE_VALUE_UNQUOTED;this.state=Jy.CHARACTER_REFERENCE;break}case Ry.GREATER_THAN_SIGN:{this._leaveAttrValue();this.state=Jy.DATA;this.emitCurrentTagToken();break}case Ry.NULL:{this._err(Uy.unexpectedNullCharacter);this.currentAttr.value+=_y;break}case Ry.QUOTATION_MARK:case Ry.APOSTROPHE:case Ry.LESS_THAN_SIGN:case Ry.EQUALS_SIGN:case Ry.GRAVE_ACCENT:{this._err(Uy.unexpectedCharacterInUnquotedAttributeValue);this.currentAttr.value+=String.fromCodePoint(e);break}case Ry.EOF:{this._err(Uy.eofInTag);this._emitEOFToken();break}default:{this.currentAttr.value+=String.fromCodePoint(e)}}}_stateAfterAttributeValueQuoted(e){switch(e){case Ry.SPACE:case Ry.LINE_FEED:case Ry.TABULATION:case Ry.FORM_FEED:{this._leaveAttrValue();this.state=Jy.BEFORE_ATTRIBUTE_NAME;break}case Ry.SOLIDUS:{this._leaveAttrValue();this.state=Jy.SELF_CLOSING_START_TAG;break}case Ry.GREATER_THAN_SIGN:{this._leaveAttrValue();this.state=Jy.DATA;this.emitCurrentTagToken();break}case Ry.EOF:{this._err(Uy.eofInTag);this._emitEOFToken();break}default:{this._err(Uy.missingWhitespaceBetweenAttributes);this.state=Jy.BEFORE_ATTRIBUTE_NAME;this._stateBeforeAttributeName(e)}}}_stateSelfClosingStartTag(e){switch(e){case Ry.GREATER_THAN_SIGN:{const e=this.currentToken;e.selfClosing=true;this.state=Jy.DATA;this.emitCurrentTagToken();break}case Ry.EOF:{this._err(Uy.eofInTag);this._emitEOFToken();break}default:{this._err(Uy.unexpectedSolidusInTag);this.state=Jy.BEFORE_ATTRIBUTE_NAME;this._stateBeforeAttributeName(e)}}}_stateBogusComment(e){const t=this.currentToken;switch(e){case Ry.GREATER_THAN_SIGN:{this.state=Jy.DATA;this.emitCurrentComment(t);break}case Ry.EOF:{this.emitCurrentComment(t);this._emitEOFToken();break}case Ry.NULL:{this._err(Uy.unexpectedNullCharacter);t.data+=_y;break}default:{t.data+=String.fromCodePoint(e)}}}_stateMarkupDeclarationOpen(e){if(this._consumeSequenceIfMatch(Ly.DASH_DASH,true)){this._createCommentToken(Ly.DASH_DASH.length+1);this.state=Jy.COMMENT_START}else if(this._consumeSequenceIfMatch(Ly.DOCTYPE,false)){this.currentLocation=this.getCurrentLocation(Ly.DOCTYPE.length+1);this.state=Jy.DOCTYPE}else if(this._consumeSequenceIfMatch(Ly.CDATA_START,true)){if(this.inForeignNode){this.state=Jy.CDATA_SECTION}else{this._err(Uy.cdataInHtmlContent);this._createCommentToken(Ly.CDATA_START.length+1);this.currentToken.data="[CDATA[";this.state=Jy.BOGUS_COMMENT}}else if(!this._ensureHibernation()){this._err(Uy.incorrectlyOpenedComment);this._createCommentToken(2);this.state=Jy.BOGUS_COMMENT;this._stateBogusComment(e)}}_stateCommentStart(e){switch(e){case Ry.HYPHEN_MINUS:{this.state=Jy.COMMENT_START_DASH;break}case Ry.GREATER_THAN_SIGN:{this._err(Uy.abruptClosingOfEmptyComment);this.state=Jy.DATA;const e=this.currentToken;this.emitCurrentComment(e);break}default:{this.state=Jy.COMMENT;this._stateComment(e)}}}_stateCommentStartDash(e){const t=this.currentToken;switch(e){case Ry.HYPHEN_MINUS:{this.state=Jy.COMMENT_END;break}case Ry.GREATER_THAN_SIGN:{this._err(Uy.abruptClosingOfEmptyComment);this.state=Jy.DATA;this.emitCurrentComment(t);break}case Ry.EOF:{this._err(Uy.eofInComment);this.emitCurrentComment(t);this._emitEOFToken();break}default:{t.data+="-";this.state=Jy.COMMENT;this._stateComment(e)}}}_stateComment(e){const t=this.currentToken;switch(e){case Ry.HYPHEN_MINUS:{this.state=Jy.COMMENT_END_DASH;break}case Ry.LESS_THAN_SIGN:{t.data+="<";this.state=Jy.COMMENT_LESS_THAN_SIGN;break}case Ry.NULL:{this._err(Uy.unexpectedNullCharacter);t.data+=_y;break}case Ry.EOF:{this._err(Uy.eofInComment);this.emitCurrentComment(t);this._emitEOFToken();break}default:{t.data+=String.fromCodePoint(e)}}}_stateCommentLessThanSign(e){const t=this.currentToken;switch(e){case Ry.EXCLAMATION_MARK:{t.data+="!";this.state=Jy.COMMENT_LESS_THAN_SIGN_BANG;break}case Ry.LESS_THAN_SIGN:{t.data+="<";break}default:{this.state=Jy.COMMENT;this._stateComment(e)}}}_stateCommentLessThanSignBang(e){if(e===Ry.HYPHEN_MINUS){this.state=Jy.COMMENT_LESS_THAN_SIGN_BANG_DASH}else{this.state=Jy.COMMENT;this._stateComment(e)}}_stateCommentLessThanSignBangDash(e){if(e===Ry.HYPHEN_MINUS){this.state=Jy.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH}else{this.state=Jy.COMMENT_END_DASH;this._stateCommentEndDash(e)}}_stateCommentLessThanSignBangDashDash(e){if(e!==Ry.GREATER_THAN_SIGN&&e!==Ry.EOF){this._err(Uy.nestedComment)}this.state=Jy.COMMENT_END;this._stateCommentEnd(e)}_stateCommentEndDash(e){const t=this.currentToken;switch(e){case Ry.HYPHEN_MINUS:{this.state=Jy.COMMENT_END;break}case Ry.EOF:{this._err(Uy.eofInComment);this.emitCurrentComment(t);this._emitEOFToken();break}default:{t.data+="-";this.state=Jy.COMMENT;this._stateComment(e)}}}_stateCommentEnd(e){const t=this.currentToken;switch(e){case Ry.GREATER_THAN_SIGN:{this.state=Jy.DATA;this.emitCurrentComment(t);break}case Ry.EXCLAMATION_MARK:{this.state=Jy.COMMENT_END_BANG;break}case Ry.HYPHEN_MINUS:{t.data+="-";break}case Ry.EOF:{this._err(Uy.eofInComment);this.emitCurrentComment(t);this._emitEOFToken();break}default:{t.data+="--";this.state=Jy.COMMENT;this._stateComment(e)}}}_stateCommentEndBang(e){const t=this.currentToken;switch(e){case Ry.HYPHEN_MINUS:{t.data+="--!";this.state=Jy.COMMENT_END_DASH;break}case Ry.GREATER_THAN_SIGN:{this._err(Uy.incorrectlyClosedComment);this.state=Jy.DATA;this.emitCurrentComment(t);break}case Ry.EOF:{this._err(Uy.eofInComment);this.emitCurrentComment(t);this._emitEOFToken();break}default:{t.data+="--!";this.state=Jy.COMMENT;this._stateComment(e)}}}_stateDoctype(e){switch(e){case Ry.SPACE:case Ry.LINE_FEED:case Ry.TABULATION:case Ry.FORM_FEED:{this.state=Jy.BEFORE_DOCTYPE_NAME;break}case Ry.GREATER_THAN_SIGN:{this.state=Jy.BEFORE_DOCTYPE_NAME;this._stateBeforeDoctypeName(e);break}case Ry.EOF:{this._err(Uy.eofInDoctype);this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=true;this.emitCurrentDoctype(e);this._emitEOFToken();break}default:{this._err(Uy.missingWhitespaceBeforeDoctypeName);this.state=Jy.BEFORE_DOCTYPE_NAME;this._stateBeforeDoctypeName(e)}}}_stateBeforeDoctypeName(e){if(nw(e)){this._createDoctypeToken(String.fromCharCode(cw(e)));this.state=Jy.DOCTYPE_NAME}else switch(e){case Ry.SPACE:case Ry.LINE_FEED:case Ry.TABULATION:case Ry.FORM_FEED:{break}case Ry.NULL:{this._err(Uy.unexpectedNullCharacter);this._createDoctypeToken(_y);this.state=Jy.DOCTYPE_NAME;break}case Ry.GREATER_THAN_SIGN:{this._err(Uy.missingDoctypeName);this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=true;this.emitCurrentDoctype(e);this.state=Jy.DATA;break}case Ry.EOF:{this._err(Uy.eofInDoctype);this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=true;this.emitCurrentDoctype(e);this._emitEOFToken();break}default:{this._createDoctypeToken(String.fromCodePoint(e));this.state=Jy.DOCTYPE_NAME}}}_stateDoctypeName(e){const t=this.currentToken;switch(e){case Ry.SPACE:case Ry.LINE_FEED:case Ry.TABULATION:case Ry.FORM_FEED:{this.state=Jy.AFTER_DOCTYPE_NAME;break}case Ry.GREATER_THAN_SIGN:{this.state=Jy.DATA;this.emitCurrentDoctype(t);break}case Ry.NULL:{this._err(Uy.unexpectedNullCharacter);t.name+=_y;break}case Ry.EOF:{this._err(Uy.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{t.name+=String.fromCodePoint(nw(e)?cw(e):e)}}}_stateAfterDoctypeName(e){const t=this.currentToken;switch(e){case Ry.SPACE:case Ry.LINE_FEED:case Ry.TABULATION:case Ry.FORM_FEED:{break}case Ry.GREATER_THAN_SIGN:{this.state=Jy.DATA;this.emitCurrentDoctype(t);break}case Ry.EOF:{this._err(Uy.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{if(this._consumeSequenceIfMatch(Ly.PUBLIC,false)){this.state=Jy.AFTER_DOCTYPE_PUBLIC_KEYWORD}else if(this._consumeSequenceIfMatch(Ly.SYSTEM,false)){this.state=Jy.AFTER_DOCTYPE_SYSTEM_KEYWORD}else if(!this._ensureHibernation()){this._err(Uy.invalidCharacterSequenceAfterDoctypeName);t.forceQuirks=true;this.state=Jy.BOGUS_DOCTYPE;this._stateBogusDoctype(e)}}}}_stateAfterDoctypePublicKeyword(e){const t=this.currentToken;switch(e){case Ry.SPACE:case Ry.LINE_FEED:case Ry.TABULATION:case Ry.FORM_FEED:{this.state=Jy.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case Ry.QUOTATION_MARK:{this._err(Uy.missingWhitespaceAfterDoctypePublicKeyword);t.publicId="";this.state=Jy.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case Ry.APOSTROPHE:{this._err(Uy.missingWhitespaceAfterDoctypePublicKeyword);t.publicId="";this.state=Jy.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case Ry.GREATER_THAN_SIGN:{this._err(Uy.missingDoctypePublicIdentifier);t.forceQuirks=true;this.state=Jy.DATA;this.emitCurrentDoctype(t);break}case Ry.EOF:{this._err(Uy.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{this._err(Uy.missingQuoteBeforeDoctypePublicIdentifier);t.forceQuirks=true;this.state=Jy.BOGUS_DOCTYPE;this._stateBogusDoctype(e)}}}_stateBeforeDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case Ry.SPACE:case Ry.LINE_FEED:case Ry.TABULATION:case Ry.FORM_FEED:{break}case Ry.QUOTATION_MARK:{t.publicId="";this.state=Jy.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case Ry.APOSTROPHE:{t.publicId="";this.state=Jy.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case Ry.GREATER_THAN_SIGN:{this._err(Uy.missingDoctypePublicIdentifier);t.forceQuirks=true;this.state=Jy.DATA;this.emitCurrentDoctype(t);break}case Ry.EOF:{this._err(Uy.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{this._err(Uy.missingQuoteBeforeDoctypePublicIdentifier);t.forceQuirks=true;this.state=Jy.BOGUS_DOCTYPE;this._stateBogusDoctype(e)}}}_stateDoctypePublicIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case Ry.QUOTATION_MARK:{this.state=Jy.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case Ry.NULL:{this._err(Uy.unexpectedNullCharacter);t.publicId+=_y;break}case Ry.GREATER_THAN_SIGN:{this._err(Uy.abruptDoctypePublicIdentifier);t.forceQuirks=true;this.emitCurrentDoctype(t);this.state=Jy.DATA;break}case Ry.EOF:{this._err(Uy.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{t.publicId+=String.fromCodePoint(e)}}}_stateDoctypePublicIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case Ry.APOSTROPHE:{this.state=Jy.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case Ry.NULL:{this._err(Uy.unexpectedNullCharacter);t.publicId+=_y;break}case Ry.GREATER_THAN_SIGN:{this._err(Uy.abruptDoctypePublicIdentifier);t.forceQuirks=true;this.emitCurrentDoctype(t);this.state=Jy.DATA;break}case Ry.EOF:{this._err(Uy.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{t.publicId+=String.fromCodePoint(e)}}}_stateAfterDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case Ry.SPACE:case Ry.LINE_FEED:case Ry.TABULATION:case Ry.FORM_FEED:{this.state=Jy.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case Ry.GREATER_THAN_SIGN:{this.state=Jy.DATA;this.emitCurrentDoctype(t);break}case Ry.QUOTATION_MARK:{this._err(Uy.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers);t.systemId="";this.state=Jy.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case Ry.APOSTROPHE:{this._err(Uy.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers);t.systemId="";this.state=Jy.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case Ry.EOF:{this._err(Uy.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{this._err(Uy.missingQuoteBeforeDoctypeSystemIdentifier);t.forceQuirks=true;this.state=Jy.BOGUS_DOCTYPE;this._stateBogusDoctype(e)}}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const t=this.currentToken;switch(e){case Ry.SPACE:case Ry.LINE_FEED:case Ry.TABULATION:case Ry.FORM_FEED:{break}case Ry.GREATER_THAN_SIGN:{this.emitCurrentDoctype(t);this.state=Jy.DATA;break}case Ry.QUOTATION_MARK:{t.systemId="";this.state=Jy.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case Ry.APOSTROPHE:{t.systemId="";this.state=Jy.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case Ry.EOF:{this._err(Uy.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{this._err(Uy.missingQuoteBeforeDoctypeSystemIdentifier);t.forceQuirks=true;this.state=Jy.BOGUS_DOCTYPE;this._stateBogusDoctype(e)}}}_stateAfterDoctypeSystemKeyword(e){const t=this.currentToken;switch(e){case Ry.SPACE:case Ry.LINE_FEED:case Ry.TABULATION:case Ry.FORM_FEED:{this.state=Jy.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case Ry.QUOTATION_MARK:{this._err(Uy.missingWhitespaceAfterDoctypeSystemKeyword);t.systemId="";this.state=Jy.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case Ry.APOSTROPHE:{this._err(Uy.missingWhitespaceAfterDoctypeSystemKeyword);t.systemId="";this.state=Jy.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case Ry.GREATER_THAN_SIGN:{this._err(Uy.missingDoctypeSystemIdentifier);t.forceQuirks=true;this.state=Jy.DATA;this.emitCurrentDoctype(t);break}case Ry.EOF:{this._err(Uy.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{this._err(Uy.missingQuoteBeforeDoctypeSystemIdentifier);t.forceQuirks=true;this.state=Jy.BOGUS_DOCTYPE;this._stateBogusDoctype(e)}}}_stateBeforeDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case Ry.SPACE:case Ry.LINE_FEED:case Ry.TABULATION:case Ry.FORM_FEED:{break}case Ry.QUOTATION_MARK:{t.systemId="";this.state=Jy.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case Ry.APOSTROPHE:{t.systemId="";this.state=Jy.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case Ry.GREATER_THAN_SIGN:{this._err(Uy.missingDoctypeSystemIdentifier);t.forceQuirks=true;this.state=Jy.DATA;this.emitCurrentDoctype(t);break}case Ry.EOF:{this._err(Uy.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{this._err(Uy.missingQuoteBeforeDoctypeSystemIdentifier);t.forceQuirks=true;this.state=Jy.BOGUS_DOCTYPE;this._stateBogusDoctype(e)}}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case Ry.QUOTATION_MARK:{this.state=Jy.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case Ry.NULL:{this._err(Uy.unexpectedNullCharacter);t.systemId+=_y;break}case Ry.GREATER_THAN_SIGN:{this._err(Uy.abruptDoctypeSystemIdentifier);t.forceQuirks=true;this.emitCurrentDoctype(t);this.state=Jy.DATA;break}case Ry.EOF:{this._err(Uy.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{t.systemId+=String.fromCodePoint(e)}}}_stateDoctypeSystemIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case Ry.APOSTROPHE:{this.state=Jy.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case Ry.NULL:{this._err(Uy.unexpectedNullCharacter);t.systemId+=_y;break}case Ry.GREATER_THAN_SIGN:{this._err(Uy.abruptDoctypeSystemIdentifier);t.forceQuirks=true;this.emitCurrentDoctype(t);this.state=Jy.DATA;break}case Ry.EOF:{this._err(Uy.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{t.systemId+=String.fromCodePoint(e)}}}_stateAfterDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case Ry.SPACE:case Ry.LINE_FEED:case Ry.TABULATION:case Ry.FORM_FEED:{break}case Ry.GREATER_THAN_SIGN:{this.emitCurrentDoctype(t);this.state=Jy.DATA;break}case Ry.EOF:{this._err(Uy.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{this._err(Uy.unexpectedCharacterAfterDoctypeSystemIdentifier);this.state=Jy.BOGUS_DOCTYPE;this._stateBogusDoctype(e)}}}_stateBogusDoctype(e){const t=this.currentToken;switch(e){case Ry.GREATER_THAN_SIGN:{this.emitCurrentDoctype(t);this.state=Jy.DATA;break}case Ry.NULL:{this._err(Uy.unexpectedNullCharacter);break}case Ry.EOF:{this.emitCurrentDoctype(t);this._emitEOFToken();break}}}_stateCdataSection(e){switch(e){case Ry.RIGHT_SQUARE_BRACKET:{this.state=Jy.CDATA_SECTION_BRACKET;break}case Ry.EOF:{this._err(Uy.eofInCdata);this._emitEOFToken();break}default:{this._emitCodePoint(e)}}}_stateCdataSectionBracket(e){if(e===Ry.RIGHT_SQUARE_BRACKET){this.state=Jy.CDATA_SECTION_END}else{this._emitChars("]");this.state=Jy.CDATA_SECTION;this._stateCdataSection(e)}}_stateCdataSectionEnd(e){switch(e){case Ry.GREATER_THAN_SIGN:{this.state=Jy.DATA;break}case Ry.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:{this._emitChars("]]");this.state=Jy.CDATA_SECTION;this._stateCdataSection(e)}}}_stateCharacterReference(e){if(e===Ry.NUMBER_SIGN){this.state=Jy.NUMERIC_CHARACTER_REFERENCE}else if(sw(e)){this.state=Jy.NAMED_CHARACTER_REFERENCE;this._stateNamedCharacterReference(e)}else{this._flushCodePointConsumedAsCharacterReference(Ry.AMPERSAND);this._reconsumeInState(this.returnState,e)}}_stateNamedCharacterReference(e){const t=this._matchNamedCharacterReference(e);if(this._ensureHibernation());else if(t){for(let e=0;e<t.length;e++){this._flushCodePointConsumedAsCharacterReference(t[e])}this.state=this.returnState}else{this._flushCodePointConsumedAsCharacterReference(Ry.AMPERSAND);this.state=Jy.AMBIGUOUS_AMPERSAND}}_stateAmbiguousAmpersand(e){if(sw(e)){this._flushCodePointConsumedAsCharacterReference(e)}else{if(e===Ry.SEMICOLON){this._err(Uy.unknownNamedCharacterReference)}this._reconsumeInState(this.returnState,e)}}_stateNumericCharacterReference(e){this.charRefCode=0;if(e===Ry.LATIN_SMALL_X||e===Ry.LATIN_CAPITAL_X){this.state=Jy.HEXADEMICAL_CHARACTER_REFERENCE_START}else if(tw(e)){this.state=Jy.DECIMAL_CHARACTER_REFERENCE;this._stateDecimalCharacterReference(e)}else{this._err(Uy.absenceOfDigitsInNumericCharacterReference);this._flushCodePointConsumedAsCharacterReference(Ry.AMPERSAND);this._flushCodePointConsumedAsCharacterReference(Ry.NUMBER_SIGN);this._reconsumeInState(this.returnState,e)}}_stateHexademicalCharacterReferenceStart(e){if(lw(e)){this.state=Jy.HEXADEMICAL_CHARACTER_REFERENCE;this._stateHexademicalCharacterReference(e)}else{this._err(Uy.absenceOfDigitsInNumericCharacterReference);this._flushCodePointConsumedAsCharacterReference(Ry.AMPERSAND);this._flushCodePointConsumedAsCharacterReference(Ry.NUMBER_SIGN);this._unconsume(2);this.state=this.returnState}}_stateHexademicalCharacterReference(e){if(ow(e)){this.charRefCode=this.charRefCode*16+e-55}else if(aw(e)){this.charRefCode=this.charRefCode*16+e-87}else if(tw(e)){this.charRefCode=this.charRefCode*16+e-48}else if(e===Ry.SEMICOLON){this.state=Jy.NUMERIC_CHARACTER_REFERENCE_END}else{this._err(Uy.missingSemicolonAfterCharacterReference);this.state=Jy.NUMERIC_CHARACTER_REFERENCE_END;this._stateNumericCharacterReferenceEnd(e)}}_stateDecimalCharacterReference(e){if(tw(e)){this.charRefCode=this.charRefCode*10+e-48}else if(e===Ry.SEMICOLON){this.state=Jy.NUMERIC_CHARACTER_REFERENCE_END}else{this._err(Uy.missingSemicolonAfterCharacterReference);this.state=Jy.NUMERIC_CHARACTER_REFERENCE_END;this._stateNumericCharacterReferenceEnd(e)}}_stateNumericCharacterReferenceEnd(e){if(this.charRefCode===Ry.NULL){this._err(Uy.nullCharacterReference);this.charRefCode=Ry.REPLACEMENT_CHARACTER}else if(this.charRefCode>1114111){this._err(Uy.characterReferenceOutsideUnicodeRange);this.charRefCode=Ry.REPLACEMENT_CHARACTER}else if(Iy(this.charRefCode)){this._err(Uy.surrogateCharacterReference);this.charRefCode=Ry.REPLACEMENT_CHARACTER}else if(My(this.charRefCode)){this._err(Uy.noncharacterCharacterReference)}else if(Py(this.charRefCode)||this.charRefCode===Ry.CARRIAGE_RETURN){this._err(Uy.controlCharacterReference);const e=Zy.get(this.charRefCode);if(e!==undefined){this.charRefCode=e}}this._flushCodePointConsumedAsCharacterReference(this.charRefCode);this._reconsumeInState(this.returnState,e)}}const pw=new Set([Yy.DD,Yy.DT,Yy.LI,Yy.OPTGROUP,Yy.OPTION,Yy.P,Yy.RB,Yy.RP,Yy.RT,Yy.RTC]);const mw=new Set([...pw,Yy.CAPTION,Yy.COLGROUP,Yy.TBODY,Yy.TD,Yy.TFOOT,Yy.TH,Yy.THEAD,Yy.TR]);const gw=new Map([[Yy.APPLET,zy.HTML],[Yy.CAPTION,zy.HTML],[Yy.HTML,zy.HTML],[Yy.MARQUEE,zy.HTML],[Yy.OBJECT,zy.HTML],[Yy.TABLE,zy.HTML],[Yy.TD,zy.HTML],[Yy.TEMPLATE,zy.HTML],[Yy.TH,zy.HTML],[Yy.ANNOTATION_XML,zy.MATHML],[Yy.MI,zy.MATHML],[Yy.MN,zy.MATHML],[Yy.MO,zy.MATHML],[Yy.MS,zy.MATHML],[Yy.MTEXT,zy.MATHML],[Yy.DESC,zy.SVG],[Yy.FOREIGN_OBJECT,zy.SVG],[Yy.TITLE,zy.SVG]]);const bw=[Yy.H1,Yy.H2,Yy.H3,Yy.H4,Yy.H5,Yy.H6];const kw=[Yy.TR,Yy.TEMPLATE,Yy.HTML];const yw=[Yy.TBODY,Yy.TFOOT,Yy.THEAD,Yy.TEMPLATE,Yy.HTML];const ww=[Yy.TABLE,Yy.TEMPLATE,Yy.HTML];const Ew=[Yy.TD,Yy.TH];class Tw{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t;this.handler=n;this.items=[];this.tagIDs=[];this.stackTop=-1;this.tmplCount=0;this.currentTagId=Yy.UNKNOWN;this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===Yy.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===zy.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop];this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++;this.items[this.stackTop]=e;this.current=e;this.tagIDs[this.stackTop]=t;this.currentTagId=t;if(this._isInTemplate()){this.tmplCount++}this.handler.onItemPush(e,t,true)}pop(){const e=this.current;if(this.tmplCount>0&&this._isInTemplate()){this.tmplCount--}this.stackTop--;this._updateCurrentElement();this.handler.onItemPop(e,true)}replace(e,t){const n=this._indexOf(e);this.items[n]=t;if(n===this.stackTop){this.current=t}}insertAfter(e,t,n){const i=this._indexOf(e)+1;this.items.splice(i,0,t);this.tagIDs.splice(i,0,n);this.stackTop++;if(i===this.stackTop){this._updateCurrentElement()}this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do{t=this.tagIDs.lastIndexOf(e,t-1)}while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==zy.HTML);this.shortenToLength(t<0?0:t)}shortenToLength(e){while(this.stackTop>=e){const t=this.current;if(this.tmplCount>0&&this._isInTemplate()){this.tmplCount-=1}this.stackTop--;this._updateCurrentElement();this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){const t=this._indexOf(e);this.shortenToLength(t<0?0:t)}popUntilPopped(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(n<0?0:n)}popUntilNumberedHeaderPopped(){this.popUntilPopped(bw,zy.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Ew,zy.HTML)}popAllUpToHtmlElement(){this.tmplCount=0;this.shortenToLength(1)}_indexOfTagNames(e,t){for(let n=this.stackTop;n>=0;n--){if(e.includes(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t){return n}}return-1}clearBackTo(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(ww,zy.HTML)}clearBackToTableBodyContext(){this.clearBackTo(yw,zy.HTML)}clearBackToTableRowContext(){this.clearBackTo(kw,zy.HTML)}remove(e){const t=this._indexOf(e);if(t>=0){if(t===this.stackTop){this.pop()}else{this.items.splice(t,1);this.tagIDs.splice(t,1);this.stackTop--;this._updateCurrentElement();this.handler.onItemPop(e,false)}}}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===Yy.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===Yy.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];const i=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&i===zy.HTML){return true}if(gw.get(n)===i){return false}}return true}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e];const n=this.treeAdapter.getNamespaceURI(this.items[e]);if(Qy(t)&&n===zy.HTML){return true}if(gw.get(t)===n){return false}}return true}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];const i=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&i===zy.HTML){return true}if((n===Yy.UL||n===Yy.OL)&&i===zy.HTML||gw.get(n)===i){return false}}return true}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];const i=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&i===zy.HTML){return true}if(n===Yy.BUTTON&&i===zy.HTML||gw.get(n)===i){return false}}return true}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];const i=this.treeAdapter.getNamespaceURI(this.items[t]);if(i!==zy.HTML){continue}if(n===e){return true}if(n===Yy.TABLE||n===Yy.TEMPLATE||n===Yy.HTML){return false}}return true}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e];const n=this.treeAdapter.getNamespaceURI(this.items[e]);if(n!==zy.HTML){continue}if(t===Yy.TBODY||t===Yy.THEAD||t===Yy.TFOOT){return true}if(t===Yy.TABLE||t===Yy.HTML){return false}}return true}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];const i=this.treeAdapter.getNamespaceURI(this.items[t]);if(i!==zy.HTML){continue}if(n===e){return true}if(n!==Yy.OPTION&&n!==Yy.OPTGROUP){return false}}return true}generateImpliedEndTags(){while(pw.has(this.currentTagId)){this.pop()}}generateImpliedEndTagsThoroughly(){while(mw.has(this.currentTagId)){this.pop()}}generateImpliedEndTagsWithExclusion(e){while(this.currentTagId!==e&&mw.has(this.currentTagId)){this.pop()}}}const vw=3;var Sw;(function(e){e[e["Marker"]=0]="Marker";e[e["Element"]=1]="Element"})(Sw=Sw||(Sw={}));const xw={type:Sw.Marker};class Aw{constructor(e){this.treeAdapter=e;this.entries=[];this.bookmark=null}_getNoahArkConditionCandidates(e,t){const n=[];const i=t.length;const r=this.treeAdapter.getTagName(e);const s=this.treeAdapter.getNamespaceURI(e);for(let e=0;e<this.entries.length;e++){const t=this.entries[e];if(t.type===Sw.Marker){break}const{element:o}=t;if(this.treeAdapter.getTagName(o)===r&&this.treeAdapter.getNamespaceURI(o)===s){const t=this.treeAdapter.getAttrList(o);if(t.length===i){n.push({idx:e,attrs:t})}}}return n}_ensureNoahArkCondition(e){if(this.entries.length<vw)return;const t=this.treeAdapter.getAttrList(e);const n=this._getNoahArkConditionCandidates(e,t);if(n.length<vw)return;const i=new Map(t.map((e=>[e.name,e.value])));let r=0;for(let e=0;e<n.length;e++){const t=n[e];if(t.attrs.every((e=>i.get(e.name)===e.value))){r+=1;if(r>=vw){this.entries.splice(t.idx,1)}}}}insertMarker(){this.entries.unshift(xw)}pushElement(e,t){this._ensureNoahArkCondition(e);this.entries.unshift({type:Sw.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:Sw.Element,element:e,token:t})}removeEntry(e){const t=this.entries.indexOf(e);if(t>=0){this.entries.splice(t,1)}}clearToLastMarker(){const e=this.entries.indexOf(xw);if(e>=0){this.entries.splice(0,e+1)}else{this.entries.length=0}}getElementEntryInScopeWithTagName(e){const t=this.entries.find((t=>t.type===Sw.Marker||this.treeAdapter.getTagName(t.element)===e));return t&&t.type===Sw.Element?t:null}getElementEntry(e){return this.entries.find((t=>t.type===Sw.Element&&t.element===e))}}function Cw(e){return{nodeName:"#text",value:e,parentNode:null}}const Dw={createDocument(){return{nodeName:"#document",mode:Gy.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,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,n){const i=e.childNodes.indexOf(n);e.childNodes.splice(i,0,t);t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,i){const r=e.childNodes.find((e=>e.nodeName==="#documentType"));if(r){r.name=t;r.publicId=n;r.systemId=i}else{const r={nodeName:"#documentType",name:t,publicId:n,systemId:i,parentNode:null};Dw.appendChild(e,r)}},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 n=e.childNodes[e.childNodes.length-1];if(Dw.isTextNode(n)){n.value+=t;return}}Dw.appendChild(e,Cw(t))},insertTextBefore(e,t,n){const i=e.childNodes[e.childNodes.indexOf(n)-1];if(i&&Dw.isTextNode(i)){i.value+=t}else{Dw.insertBefore(e,Cw(t),n)}},adoptAttributes(e,t){const n=new Set(e.attrs.map((e=>e.name)));for(let i=0;i<t.length;i++){if(!n.has(t[i].name)){e.attrs.push(t[i])}}},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}}};const _w="html";const Rw="about:legacy-compat";const Lw="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd";const Iw=["+//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//"];const Ow=[...Iw,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];const Nw=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]);const Pw=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"];const Mw=[...Pw,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Uw(e,t){return t.some((t=>e.startsWith(t)))}function qw(e){return e.name===_w&&e.publicId===null&&(e.systemId===null||e.systemId===Rw)}function Bw(e){if(e.name!==_w){return Gy.QUIRKS}const{systemId:t}=e;if(t&&t.toLowerCase()===Lw){return Gy.QUIRKS}let{publicId:n}=e;if(n!==null){n=n.toLowerCase();if(Nw.has(n)){return Gy.QUIRKS}let e=t===null?Ow:Iw;if(Uw(n,e)){return Gy.QUIRKS}e=t===null?Pw:Mw;if(Uw(n,e)){return Gy.LIMITED_QUIRKS}}return Gy.NO_QUIRKS}const Fw={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"};const Hw="definitionurl";const zw="definitionURL";const jw=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])));const Gw=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:zy.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:zy.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:zy.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:zy.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:zy.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:zy.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:zy.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:zy.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:zy.XML}],["xml:space",{prefix:"xml",name:"space",namespace:zy.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:zy.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:zy.XMLNS}]]);const Vw=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])));const Yw=new Set([Yy.B,Yy.BIG,Yy.BLOCKQUOTE,Yy.BODY,Yy.BR,Yy.CENTER,Yy.CODE,Yy.DD,Yy.DIV,Yy.DL,Yy.DT,Yy.EM,Yy.EMBED,Yy.H1,Yy.H2,Yy.H3,Yy.H4,Yy.H5,Yy.H6,Yy.HEAD,Yy.HR,Yy.I,Yy.IMG,Yy.LI,Yy.LISTING,Yy.MENU,Yy.META,Yy.NOBR,Yy.OL,Yy.P,Yy.PRE,Yy.RUBY,Yy.S,Yy.SMALL,Yy.SPAN,Yy.STRONG,Yy.STRIKE,Yy.SUB,Yy.SUP,Yy.TABLE,Yy.TT,Yy.U,Yy.UL,Yy.VAR]);function Ww(e){const t=e.tagID;const n=t===Yy.FONT&&e.attrs.some((({name:e})=>e===jy.COLOR||e===jy.SIZE||e===jy.FACE));return n||Yw.has(t)}function Xw(e){for(let t=0;t<e.attrs.length;t++){if(e.attrs[t].name===Hw){e.attrs[t].name=zw;break}}}function Kw(e){for(let t=0;t<e.attrs.length;t++){const n=jw.get(e.attrs[t].name);if(n!=null){e.attrs[t].name=n}}}function $w(e){for(let t=0;t<e.attrs.length;t++){const n=Gw.get(e.attrs[t].name);if(n){e.attrs[t].prefix=n.prefix;e.attrs[t].name=n.name;e.attrs[t].namespace=n.namespace}}}function Qw(e){const t=Vw.get(e.tagName);if(t!=null){e.tagName=t;e.tagID=Xy(e.tagName)}}function Zw(e,t){return t===zy.MATHML&&(e===Yy.MI||e===Yy.MO||e===Yy.MN||e===Yy.MS||e===Yy.MTEXT)}function Jw(e,t,n){if(t===zy.MATHML&&e===Yy.ANNOTATION_XML){for(let e=0;e<n.length;e++){if(n[e].name===jy.ENCODING){const t=n[e].value.toLowerCase();return t===Fw.TEXT_HTML||t===Fw.APPLICATION_XML}}}return t===zy.SVG&&(e===Yy.FOREIGN_OBJECT||e===Yy.DESC||e===Yy.TITLE)}function eE(e,t,n,i){return(!i||i===zy.HTML)&&Jw(e,t,n)||(!i||i===zy.MATHML)&&Zw(e,t)}const tE="hidden";const nE=8;const iE=3;var rE;(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"})(rE||(rE={}));const sE={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};const oE=new Set([Yy.TABLE,Yy.TBODY,Yy.TFOOT,Yy.THEAD,Yy.TR]);const aE={scriptingEnabled:true,sourceCodeLocationInfo:false,treeAdapter:Dw,onParseError:null};class lE{constructor(e,t,n=null,i=null){this.fragmentContext=n;this.scriptHandler=i;this.currentToken=null;this.stopped=false;this.insertionMode=rE.INITIAL;this.originalInsertionMode=rE.INITIAL;this.headElement=null;this.formElement=null;this.currentNotInHTML=false;this.tmplInsertionModeStack=[];this.pendingCharacterTokens=[];this.hasNonWhitespacePendingCharacterToken=false;this.framesetOk=true;this.skipNextNewLine=false;this.fosterParentingEnabled=false;this.options={...aE,...e};this.treeAdapter=this.options.treeAdapter;this.onParseError=this.options.onParseError;if(this.onParseError){this.options.sourceCodeLocationInfo=true}this.document=t!==null&&t!==void 0?t:this.treeAdapter.createDocument();this.tokenizer=new dw(this.options,this);this.activeFormattingElements=new Aw(this.treeAdapter);this.fragmentContextID=n?Xy(this.treeAdapter.getTagName(n)):Yy.UNKNOWN;this._setContextModes(n!==null&&n!==void 0?n:this.document,this.fragmentContextID);this.openElements=new Tw(this.document,this.treeAdapter,this)}static parse(e,t){const n=new this(t);n.tokenizer.write(e,true);return n.document}static getFragmentParser(e,t){const n={...aE,...t};e!==null&&e!==void 0?e:e=n.treeAdapter.createElement(Vy.TEMPLATE,zy.HTML,[]);const i=n.treeAdapter.createElement("documentmock",zy.HTML,[]);const r=new this(n,i,e);if(r.fragmentContextID===Yy.TEMPLATE){r.tmplInsertionModeStack.unshift(rE.IN_TEMPLATE)}r._initTokenizerForFragmentParsing();r._insertFakeRootElement();r._resetInsertionMode();r._findFormInFragmentContext();return r}getFragment(){const e=this.treeAdapter.getFirstChild(this.document);const t=this.treeAdapter.createDocumentFragment();this._adoptNodes(e,t);return t}_err(e,t,n){var i;if(!this.onParseError)return;const r=(i=e.location)!==null&&i!==void 0?i:sE;const s={code:t,startLine:r.startLine,startCol:r.startCol,startOffset:r.startOffset,endLine:n?r.startLine:r.endLine,endCol:n?r.startCol:r.endCol,endOffset:n?r.startOffset:r.endOffset};this.onParseError(s)}onItemPush(e,t,n){var i,r;(r=(i=this.treeAdapter).onItemPush)===null||r===void 0?void 0:r.call(i,e);if(n&&this.openElements.stackTop>0)this._setContextModes(e,t)}onItemPop(e,t){var n,i;if(this.options.sourceCodeLocationInfo){this._setEndLocation(e,this.currentToken)}(i=(n=this.treeAdapter).onItemPop)===null||i===void 0?void 0:i.call(n,e,this.openElements.current);if(t){let e;let t;if(this.openElements.stackTop===0&&this.fragmentContext){e=this.fragmentContext;t=this.fragmentContextID}else{({current:e,currentTagId:t}=this.openElements)}this._setContextModes(e,t)}}_setContextModes(e,t){const n=e===this.document||this.treeAdapter.getNamespaceURI(e)===zy.HTML;this.currentNotInHTML=!n;this.tokenizer.inForeignNode=!n&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,zy.HTML);this.tokenizer.state=t;this.originalInsertionMode=this.insertionMode;this.insertionMode=rE.TEXT}switchToPlaintextParsing(){this.insertionMode=rE.TEXT;this.originalInsertionMode=rE.IN_BODY;this.tokenizer.state=ew.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;while(e){if(this.treeAdapter.getTagName(e)===Vy.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==zy.HTML){return}switch(this.fragmentContextID){case Yy.TITLE:case Yy.TEXTAREA:{this.tokenizer.state=ew.RCDATA;break}case Yy.STYLE:case Yy.XMP:case Yy.IFRAME:case Yy.NOEMBED:case Yy.NOFRAMES:case Yy.NOSCRIPT:{this.tokenizer.state=ew.RAWTEXT;break}case Yy.SCRIPT:{this.tokenizer.state=ew.SCRIPT_DATA;break}case Yy.PLAINTEXT:{this.tokenizer.state=ew.PLAINTEXT;break}}}_setDocumentType(e){const t=e.name||"";const n=e.publicId||"";const i=e.systemId||"";this.treeAdapter.setDocumentType(this.document,t,n,i);if(e.location){const t=this.treeAdapter.getChildNodes(this.document);const n=t.find((e=>this.treeAdapter.isDocumentTypeNode(e)));if(n){this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){const n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion()){this._fosterParentElement(e)}else{const t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location);this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){const n=this.treeAdapter.createElement(e,zy.HTML,[]);this._attachElementToTree(n,null);this.openElements.push(n,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,zy.HTML,e.attrs);const n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n);this._attachElementToTree(t,e.location);this.openElements.push(t,e.tagID);if(this.options.sourceCodeLocationInfo)this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(Vy.HTML,zy.HTML,[]);if(this.options.sourceCodeLocationInfo)this.treeAdapter.setNodeSourceCodeLocation(e,null);this.treeAdapter.appendChild(this.openElements.current,e);this.openElements.push(e,Yy.HTML)}_appendCommentNode(e,t){const n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n);if(this.options.sourceCodeLocationInfo){this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}}_insertCharacters(e){let t;let n;if(this._shouldFosterParentOnInsertion()){({parent:t,beforeElement:n}=this._findFosterParentingLocation());if(n){this.treeAdapter.insertTextBefore(t,e.chars,n)}else{this.treeAdapter.insertText(t,e.chars)}}else{t=this.openElements.currentTmplContentOrNode;this.treeAdapter.insertText(t,e.chars)}if(!e.location)return;const i=this.treeAdapter.getChildNodes(t);const r=n?i.lastIndexOf(n):i.length;const s=i[r-1];const o=this.treeAdapter.getNodeSourceCodeLocation(s);if(o){const{endLine:t,endCol:n,endOffset:i}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:t,endCol:n,endOffset:i})}else if(this.options.sourceCodeLocationInfo){this.treeAdapter.setNodeSourceCodeLocation(s,e.location)}}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e)){this.treeAdapter.detachNode(n);this.treeAdapter.appendChild(t,n)}}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const n=t.location;const i=this.treeAdapter.getTagName(e);const r=t.type===Fy.END_TAG&&i===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,r)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return false;let t;let n;if(this.openElements.stackTop===0&&this.fragmentContext){t=this.fragmentContext;n=this.fragmentContextID}else{({current:t,currentTagId:n}=this.openElements)}if(e.tagID===Yy.SVG&&this.treeAdapter.getTagName(t)===Vy.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(t)===zy.MATHML){return false}return this.tokenizer.inForeignNode||(e.tagID===Yy.MGLYPH||e.tagID===Yy.MALIGNMARK)&&!this._isIntegrationPoint(n,t,zy.HTML)}_processToken(e){switch(e.type){case Fy.CHARACTER:{this.onCharacter(e);break}case Fy.NULL_CHARACTER:{this.onNullCharacter(e);break}case Fy.COMMENT:{this.onComment(e);break}case Fy.DOCTYPE:{this.onDoctype(e);break}case Fy.START_TAG:{this._processStartTag(e);break}case Fy.END_TAG:{this.onEndTag(e);break}case Fy.EOF:{this.onEof(e);break}case Fy.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(e);break}}}_isIntegrationPoint(e,t,n){const i=this.treeAdapter.getNamespaceURI(t);const r=this.treeAdapter.getAttrList(t);return eE(e,i,r,n)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const t=this.activeFormattingElements.entries.findIndex((e=>e.type===Sw.Marker||this.openElements.contains(e.element)));const n=t<0?e-1:t-1;for(let e=n;e>=0;e--){const t=this.activeFormattingElements.entries[e];this._insertElement(t.token,this.treeAdapter.getNamespaceURI(t.element));t.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags();this.openElements.popUntilTableCellPopped();this.activeFormattingElements.clearToLastMarker();this.insertionMode=rE.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(Yy.P);this.openElements.popUntilTagNamePopped(Yy.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--){switch(e===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case Yy.TR:{this.insertionMode=rE.IN_ROW;return}case Yy.TBODY:case Yy.THEAD:case Yy.TFOOT:{this.insertionMode=rE.IN_TABLE_BODY;return}case Yy.CAPTION:{this.insertionMode=rE.IN_CAPTION;return}case Yy.COLGROUP:{this.insertionMode=rE.IN_COLUMN_GROUP;return}case Yy.TABLE:{this.insertionMode=rE.IN_TABLE;return}case Yy.BODY:{this.insertionMode=rE.IN_BODY;return}case Yy.FRAMESET:{this.insertionMode=rE.IN_FRAMESET;return}case Yy.SELECT:{this._resetInsertionModeForSelect(e);return}case Yy.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case Yy.HTML:{this.insertionMode=this.headElement?rE.AFTER_HEAD:rE.BEFORE_HEAD;return}case Yy.TD:case Yy.TH:{if(e>0){this.insertionMode=rE.IN_CELL;return}break}case Yy.HEAD:{if(e>0){this.insertionMode=rE.IN_HEAD;return}break}}}this.insertionMode=rE.IN_BODY}_resetInsertionModeForSelect(e){if(e>0){for(let t=e-1;t>0;t--){const e=this.openElements.tagIDs[t];if(e===Yy.TEMPLATE){break}else if(e===Yy.TABLE){this.insertionMode=rE.IN_SELECT_IN_TABLE;return}}}this.insertionMode=rE.IN_SELECT}_isElementCausesFosterParenting(e){return oE.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case Yy.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(t)===zy.HTML){return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null}}break}case Yy.TABLE:{const n=this.treeAdapter.getParentNode(t);if(n){return{parent:n,beforeElement:t}}return{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const t=this._findFosterParentingLocation();if(t.beforeElement){this.treeAdapter.insertBefore(t.parent,e,t.beforeElement)}else{this.treeAdapter.appendChild(t.parent,e)}}_isSpecialElement(e,t){const n=this.treeAdapter.getNamespaceURI(e);return $y[n].has(t)}onCharacter(e){this.skipNextNewLine=false;if(this.tokenizer.inForeignNode){Av(this,e);return}switch(this.insertionMode){case rE.INITIAL:{EE(this,e);break}case rE.BEFORE_HTML:{SE(this,e);break}case rE.BEFORE_HEAD:{CE(this,e);break}case rE.IN_HEAD:{LE(this,e);break}case rE.IN_HEAD_NO_SCRIPT:{NE(this,e);break}case rE.AFTER_HEAD:{UE(this,e);break}case rE.IN_BODY:case rE.IN_CAPTION:case rE.IN_CELL:case rE.IN_TEMPLATE:{FE(this,e);break}case rE.TEXT:case rE.IN_SELECT:case rE.IN_SELECT_IN_TABLE:{this._insertCharacters(e);break}case rE.IN_TABLE:case rE.IN_TABLE_BODY:case rE.IN_ROW:{PT(this,e);break}case rE.IN_TABLE_TEXT:{XT(this,e);break}case rE.IN_COLUMN_GROUP:{tv(this,e);break}case rE.AFTER_BODY:{bv(this,e);break}case rE.AFTER_AFTER_BODY:{vv(this,e);break}}}onNullCharacter(e){this.skipNextNewLine=false;if(this.tokenizer.inForeignNode){xv(this,e);return}switch(this.insertionMode){case rE.INITIAL:{EE(this,e);break}case rE.BEFORE_HTML:{SE(this,e);break}case rE.BEFORE_HEAD:{CE(this,e);break}case rE.IN_HEAD:{LE(this,e);break}case rE.IN_HEAD_NO_SCRIPT:{NE(this,e);break}case rE.AFTER_HEAD:{UE(this,e);break}case rE.TEXT:{this._insertCharacters(e);break}case rE.IN_TABLE:case rE.IN_TABLE_BODY:case rE.IN_ROW:{PT(this,e);break}case rE.IN_COLUMN_GROUP:{tv(this,e);break}case rE.AFTER_BODY:{bv(this,e);break}case rE.AFTER_AFTER_BODY:{vv(this,e);break}}}onComment(e){this.skipNextNewLine=false;if(this.currentNotInHTML){gE(this,e);return}switch(this.insertionMode){case rE.INITIAL:case rE.BEFORE_HTML:case rE.BEFORE_HEAD:case rE.IN_HEAD:case rE.IN_HEAD_NO_SCRIPT:case rE.AFTER_HEAD:case rE.IN_BODY:case rE.IN_TABLE:case rE.IN_CAPTION:case rE.IN_COLUMN_GROUP:case rE.IN_TABLE_BODY:case rE.IN_ROW:case rE.IN_CELL:case rE.IN_SELECT:case rE.IN_SELECT_IN_TABLE:case rE.IN_TEMPLATE:case rE.IN_FRAMESET:case rE.AFTER_FRAMESET:{gE(this,e);break}case rE.IN_TABLE_TEXT:{KT(this,e);break}case rE.AFTER_BODY:{bE(this,e);break}case rE.AFTER_AFTER_BODY:case rE.AFTER_AFTER_FRAMESET:{kE(this,e);break}}}onDoctype(e){this.skipNextNewLine=false;switch(this.insertionMode){case rE.INITIAL:{wE(this,e);break}case rE.BEFORE_HEAD:case rE.IN_HEAD:case rE.IN_HEAD_NO_SCRIPT:case rE.AFTER_HEAD:{this._err(e,Uy.misplacedDoctype);break}case rE.IN_TABLE_TEXT:{KT(this,e);break}}}onStartTag(e){this.skipNextNewLine=false;this.currentToken=e;this._processStartTag(e);if(e.selfClosing&&!e.ackSelfClosing){this._err(e,Uy.nonVoidHtmlElementStartTagWithTrailingSolidus)}}_processStartTag(e){if(this.shouldProcessStartTagTokenInForeignContent(e)){Dv(this,e)}else{this._startTagOutsideForeignContent(e)}}_startTagOutsideForeignContent(e){switch(this.insertionMode){case rE.INITIAL:{EE(this,e);break}case rE.BEFORE_HTML:{TE(this,e);break}case rE.BEFORE_HEAD:{xE(this,e);break}case rE.IN_HEAD:{DE(this,e);break}case rE.IN_HEAD_NO_SCRIPT:{IE(this,e);break}case rE.AFTER_HEAD:{PE(this,e);break}case rE.IN_BODY:{yT(this,e);break}case rE.IN_TABLE:{GT(this,e);break}case rE.IN_TABLE_TEXT:{KT(this,e);break}case rE.IN_CAPTION:{QT(this,e);break}case rE.IN_COLUMN_GROUP:{JT(this,e);break}case rE.IN_TABLE_BODY:{nv(this,e);break}case rE.IN_ROW:{rv(this,e);break}case rE.IN_CELL:{ov(this,e);break}case rE.IN_SELECT:{lv(this,e);break}case rE.IN_SELECT_IN_TABLE:{uv(this,e);break}case rE.IN_TEMPLATE:{hv(this,e);break}case rE.AFTER_BODY:{mv(this,e);break}case rE.IN_FRAMESET:{kv(this,e);break}case rE.AFTER_FRAMESET:{wv(this,e);break}case rE.AFTER_AFTER_BODY:{Tv(this,e);break}case rE.AFTER_AFTER_FRAMESET:{Sv(this,e);break}}}onEndTag(e){this.skipNextNewLine=false;this.currentToken=e;if(this.currentNotInHTML){_v(this,e)}else{this._endTagOutsideForeignContent(e)}}_endTagOutsideForeignContent(e){switch(this.insertionMode){case rE.INITIAL:{EE(this,e);break}case rE.BEFORE_HTML:{vE(this,e);break}case rE.BEFORE_HEAD:{AE(this,e);break}case rE.IN_HEAD:{_E(this,e);break}case rE.IN_HEAD_NO_SCRIPT:{OE(this,e);break}case rE.AFTER_HEAD:{ME(this,e);break}case rE.IN_BODY:{LT(this,e);break}case rE.TEXT:{OT(this,e);break}case rE.IN_TABLE:{VT(this,e);break}case rE.IN_TABLE_TEXT:{KT(this,e);break}case rE.IN_CAPTION:{ZT(this,e);break}case rE.IN_COLUMN_GROUP:{ev(this,e);break}case rE.IN_TABLE_BODY:{iv(this,e);break}case rE.IN_ROW:{sv(this,e);break}case rE.IN_CELL:{av(this,e);break}case rE.IN_SELECT:{cv(this,e);break}case rE.IN_SELECT_IN_TABLE:{fv(this,e);break}case rE.IN_TEMPLATE:{dv(this,e);break}case rE.AFTER_BODY:{gv(this,e);break}case rE.IN_FRAMESET:{yv(this,e);break}case rE.AFTER_FRAMESET:{Ev(this,e);break}case rE.AFTER_AFTER_BODY:{vv(this,e);break}}}onEof(e){switch(this.insertionMode){case rE.INITIAL:{EE(this,e);break}case rE.BEFORE_HTML:{SE(this,e);break}case rE.BEFORE_HEAD:{CE(this,e);break}case rE.IN_HEAD:{LE(this,e);break}case rE.IN_HEAD_NO_SCRIPT:{NE(this,e);break}case rE.AFTER_HEAD:{UE(this,e);break}case rE.IN_BODY:case rE.IN_TABLE:case rE.IN_CAPTION:case rE.IN_COLUMN_GROUP:case rE.IN_TABLE_BODY:case rE.IN_ROW:case rE.IN_CELL:case rE.IN_SELECT:case rE.IN_SELECT_IN_TABLE:{IT(this,e);break}case rE.TEXT:{NT(this,e);break}case rE.IN_TABLE_TEXT:{KT(this,e);break}case rE.IN_TEMPLATE:{pv(this,e);break}case rE.AFTER_BODY:case rE.IN_FRAMESET:case rE.AFTER_FRAMESET:case rE.AFTER_AFTER_BODY:case rE.AFTER_AFTER_FRAMESET:{yE(this,e);break}}}onWhitespaceCharacter(e){if(this.skipNextNewLine){this.skipNextNewLine=false;if(e.chars.charCodeAt(0)===Ry.LINE_FEED){if(e.chars.length===1){return}e.chars=e.chars.substr(1)}}if(this.tokenizer.inForeignNode){this._insertCharacters(e);return}switch(this.insertionMode){case rE.IN_HEAD:case rE.IN_HEAD_NO_SCRIPT:case rE.AFTER_HEAD:case rE.TEXT:case rE.IN_COLUMN_GROUP:case rE.IN_SELECT:case rE.IN_SELECT_IN_TABLE:case rE.IN_FRAMESET:case rE.AFTER_FRAMESET:{this._insertCharacters(e);break}case rE.IN_BODY:case rE.IN_CAPTION:case rE.IN_CELL:case rE.IN_TEMPLATE:case rE.AFTER_BODY:case rE.AFTER_AFTER_BODY:case rE.AFTER_AFTER_FRAMESET:{BE(this,e);break}case rE.IN_TABLE:case rE.IN_TABLE_BODY:case rE.IN_ROW:{PT(this,e);break}case rE.IN_TABLE_TEXT:{WT(this,e);break}}}}function cE(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);if(n){if(!e.openElements.contains(n.element)){e.activeFormattingElements.removeEntry(n);n=null}else if(!e.openElements.hasInScope(t.tagID)){n=null}}else{RT(e,t)}return n}function uE(e,t){let n=null;let i=e.openElements.stackTop;for(;i>=0;i--){const r=e.openElements.items[i];if(r===t.element){break}if(e._isSpecialElement(r,e.openElements.tagIDs[i])){n=r}}if(!n){e.openElements.shortenToLength(i<0?0:i);e.activeFormattingElements.removeEntry(t)}return n}function fE(e,t,n){let i=t;let r=e.openElements.getCommonAncestor(t);for(let s=0,o=r;o!==n;s++,o=r){r=e.openElements.getCommonAncestor(o);const n=e.activeFormattingElements.getElementEntry(o);const a=n&&s>=iE;const l=!n||a;if(l){if(a){e.activeFormattingElements.removeEntry(n)}e.openElements.remove(o)}else{o=hE(e,n);if(i===t){e.activeFormattingElements.bookmark=n}e.treeAdapter.detachNode(i);e.treeAdapter.appendChild(o,i);i=o}}return i}function hE(e,t){const n=e.treeAdapter.getNamespaceURI(t.element);const i=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);e.openElements.replace(t.element,i);t.element=i;return i}function dE(e,t,n){const i=e.treeAdapter.getTagName(t);const r=Xy(i);if(e._isElementCausesFosterParenting(r)){e._fosterParentElement(n)}else{const i=e.treeAdapter.getNamespaceURI(t);if(r===Yy.TEMPLATE&&i===zy.HTML){t=e.treeAdapter.getTemplateContent(t)}e.treeAdapter.appendChild(t,n)}}function pE(e,t,n){const i=e.treeAdapter.getNamespaceURI(n.element);const{token:r}=n;const s=e.treeAdapter.createElement(r.tagName,i,r.attrs);e._adoptNodes(t,s);e.treeAdapter.appendChild(t,s);e.activeFormattingElements.insertElementAfterBookmark(s,r);e.activeFormattingElements.removeEntry(n);e.openElements.remove(n.element);e.openElements.insertAfter(t,s,r.tagID)}function mE(e,t){for(let n=0;n<nE;n++){const n=cE(e,t);if(!n){break}const i=uE(e,n);if(!i){break}e.activeFormattingElements.bookmark=n;const r=fE(e,i,n.element);const s=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(r);if(s)dE(e,s,r);pE(e,i,n)}}function gE(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function bE(e,t){e._appendCommentNode(t,e.openElements.items[0])}function kE(e,t){e._appendCommentNode(t,e.document)}function yE(e,t){e.stopped=true;if(t.location){const n=e.fragmentContext?0:2;for(let i=e.openElements.stackTop;i>=n;i--){e._setEndLocation(e.openElements.items[i],t)}if(!e.fragmentContext&&e.openElements.stackTop>=0){const n=e.openElements.items[0];const i=e.treeAdapter.getNodeSourceCodeLocation(n);if(i&&!i.endTag){e._setEndLocation(n,t);if(e.openElements.stackTop>=1){const n=e.openElements.items[1];const i=e.treeAdapter.getNodeSourceCodeLocation(n);if(i&&!i.endTag){e._setEndLocation(n,t)}}}}}}function wE(e,t){e._setDocumentType(t);const n=t.forceQuirks?Gy.QUIRKS:Bw(t);if(!qw(t)){e._err(t,Uy.nonConformingDoctype)}e.treeAdapter.setDocumentMode(e.document,n);e.insertionMode=rE.BEFORE_HTML}function EE(e,t){e._err(t,Uy.missingDoctype,true);e.treeAdapter.setDocumentMode(e.document,Gy.QUIRKS);e.insertionMode=rE.BEFORE_HTML;e._processToken(t)}function TE(e,t){if(t.tagID===Yy.HTML){e._insertElement(t,zy.HTML);e.insertionMode=rE.BEFORE_HEAD}else{SE(e,t)}}function vE(e,t){const n=t.tagID;if(n===Yy.HTML||n===Yy.HEAD||n===Yy.BODY||n===Yy.BR){SE(e,t)}}function SE(e,t){e._insertFakeRootElement();e.insertionMode=rE.BEFORE_HEAD;e._processToken(t)}function xE(e,t){switch(t.tagID){case Yy.HTML:{yT(e,t);break}case Yy.HEAD:{e._insertElement(t,zy.HTML);e.headElement=e.openElements.current;e.insertionMode=rE.IN_HEAD;break}default:{CE(e,t)}}}function AE(e,t){const n=t.tagID;if(n===Yy.HEAD||n===Yy.BODY||n===Yy.HTML||n===Yy.BR){CE(e,t)}else{e._err(t,Uy.endTagWithoutMatchingOpenElement)}}function CE(e,t){e._insertFakeElement(Vy.HEAD,Yy.HEAD);e.headElement=e.openElements.current;e.insertionMode=rE.IN_HEAD;e._processToken(t)}function DE(e,t){switch(t.tagID){case Yy.HTML:{yT(e,t);break}case Yy.BASE:case Yy.BASEFONT:case Yy.BGSOUND:case Yy.LINK:case Yy.META:{e._appendElement(t,zy.HTML);t.ackSelfClosing=true;break}case Yy.TITLE:{e._switchToTextParsing(t,ew.RCDATA);break}case Yy.NOSCRIPT:{if(e.options.scriptingEnabled){e._switchToTextParsing(t,ew.RAWTEXT)}else{e._insertElement(t,zy.HTML);e.insertionMode=rE.IN_HEAD_NO_SCRIPT}break}case Yy.NOFRAMES:case Yy.STYLE:{e._switchToTextParsing(t,ew.RAWTEXT);break}case Yy.SCRIPT:{e._switchToTextParsing(t,ew.SCRIPT_DATA);break}case Yy.TEMPLATE:{e._insertTemplate(t);e.activeFormattingElements.insertMarker();e.framesetOk=false;e.insertionMode=rE.IN_TEMPLATE;e.tmplInsertionModeStack.unshift(rE.IN_TEMPLATE);break}case Yy.HEAD:{e._err(t,Uy.misplacedStartTagForHeadElement);break}default:{LE(e,t)}}}function _E(e,t){switch(t.tagID){case Yy.HEAD:{e.openElements.pop();e.insertionMode=rE.AFTER_HEAD;break}case Yy.BODY:case Yy.BR:case Yy.HTML:{LE(e,t);break}case Yy.TEMPLATE:{RE(e,t);break}default:{e._err(t,Uy.endTagWithoutMatchingOpenElement)}}}function RE(e,t){if(e.openElements.tmplCount>0){e.openElements.generateImpliedEndTagsThoroughly();if(e.openElements.currentTagId!==Yy.TEMPLATE){e._err(t,Uy.closingOfElementWithOpenChildElements)}e.openElements.popUntilTagNamePopped(Yy.TEMPLATE);e.activeFormattingElements.clearToLastMarker();e.tmplInsertionModeStack.shift();e._resetInsertionMode()}else{e._err(t,Uy.endTagWithoutMatchingOpenElement)}}function LE(e,t){e.openElements.pop();e.insertionMode=rE.AFTER_HEAD;e._processToken(t)}function IE(e,t){switch(t.tagID){case Yy.HTML:{yT(e,t);break}case Yy.BASEFONT:case Yy.BGSOUND:case Yy.HEAD:case Yy.LINK:case Yy.META:case Yy.NOFRAMES:case Yy.STYLE:{DE(e,t);break}case Yy.NOSCRIPT:{e._err(t,Uy.nestedNoscriptInHead);break}default:{NE(e,t)}}}function OE(e,t){switch(t.tagID){case Yy.NOSCRIPT:{e.openElements.pop();e.insertionMode=rE.IN_HEAD;break}case Yy.BR:{NE(e,t);break}default:{e._err(t,Uy.endTagWithoutMatchingOpenElement)}}}function NE(e,t){const n=t.type===Fy.EOF?Uy.openElementsLeftAfterEof:Uy.disallowedContentInNoscriptInHead;e._err(t,n);e.openElements.pop();e.insertionMode=rE.IN_HEAD;e._processToken(t)}function PE(e,t){switch(t.tagID){case Yy.HTML:{yT(e,t);break}case Yy.BODY:{e._insertElement(t,zy.HTML);e.framesetOk=false;e.insertionMode=rE.IN_BODY;break}case Yy.FRAMESET:{e._insertElement(t,zy.HTML);e.insertionMode=rE.IN_FRAMESET;break}case Yy.BASE:case Yy.BASEFONT:case Yy.BGSOUND:case Yy.LINK:case Yy.META:case Yy.NOFRAMES:case Yy.SCRIPT:case Yy.STYLE:case Yy.TEMPLATE:case Yy.TITLE:{e._err(t,Uy.abandonedHeadElementChild);e.openElements.push(e.headElement,Yy.HEAD);DE(e,t);e.openElements.remove(e.headElement);break}case Yy.HEAD:{e._err(t,Uy.misplacedStartTagForHeadElement);break}default:{UE(e,t)}}}function ME(e,t){switch(t.tagID){case Yy.BODY:case Yy.HTML:case Yy.BR:{UE(e,t);break}case Yy.TEMPLATE:{RE(e,t);break}default:{e._err(t,Uy.endTagWithoutMatchingOpenElement)}}}function UE(e,t){e._insertFakeElement(Vy.BODY,Yy.BODY);e.insertionMode=rE.IN_BODY;qE(e,t)}function qE(e,t){switch(t.type){case Fy.CHARACTER:{FE(e,t);break}case Fy.WHITESPACE_CHARACTER:{BE(e,t);break}case Fy.COMMENT:{gE(e,t);break}case Fy.START_TAG:{yT(e,t);break}case Fy.END_TAG:{LT(e,t);break}case Fy.EOF:{IT(e,t);break}}}function BE(e,t){e._reconstructActiveFormattingElements();e._insertCharacters(t)}function FE(e,t){e._reconstructActiveFormattingElements();e._insertCharacters(t);e.framesetOk=false}function HE(e,t){if(e.openElements.tmplCount===0){e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}}function zE(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();if(n&&e.openElements.tmplCount===0){e.framesetOk=false;e.treeAdapter.adoptAttributes(n,t.attrs)}}function jE(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();if(e.framesetOk&&n){e.treeAdapter.detachNode(n);e.openElements.popAllUpToHtmlElement();e._insertElement(t,zy.HTML);e.insertionMode=rE.IN_FRAMESET}}function GE(e,t){if(e.openElements.hasInButtonScope(Yy.P)){e._closePElement()}e._insertElement(t,zy.HTML)}function VE(e,t){if(e.openElements.hasInButtonScope(Yy.P)){e._closePElement()}if(Qy(e.openElements.currentTagId)){e.openElements.pop()}e._insertElement(t,zy.HTML)}function YE(e,t){if(e.openElements.hasInButtonScope(Yy.P)){e._closePElement()}e._insertElement(t,zy.HTML);e.skipNextNewLine=true;e.framesetOk=false}function WE(e,t){const n=e.openElements.tmplCount>0;if(!e.formElement||n){if(e.openElements.hasInButtonScope(Yy.P)){e._closePElement()}e._insertElement(t,zy.HTML);if(!n){e.formElement=e.openElements.current}}}function XE(e,t){e.framesetOk=false;const n=t.tagID;for(let t=e.openElements.stackTop;t>=0;t--){const i=e.openElements.tagIDs[t];if(n===Yy.LI&&i===Yy.LI||(n===Yy.DD||n===Yy.DT)&&(i===Yy.DD||i===Yy.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i);e.openElements.popUntilTagNamePopped(i);break}if(i!==Yy.ADDRESS&&i!==Yy.DIV&&i!==Yy.P&&e._isSpecialElement(e.openElements.items[t],i)){break}}if(e.openElements.hasInButtonScope(Yy.P)){e._closePElement()}e._insertElement(t,zy.HTML)}function KE(e,t){if(e.openElements.hasInButtonScope(Yy.P)){e._closePElement()}e._insertElement(t,zy.HTML);e.tokenizer.state=ew.PLAINTEXT}function $E(e,t){if(e.openElements.hasInScope(Yy.BUTTON)){e.openElements.generateImpliedEndTags();e.openElements.popUntilTagNamePopped(Yy.BUTTON)}e._reconstructActiveFormattingElements();e._insertElement(t,zy.HTML);e.framesetOk=false}function QE(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Vy.A);if(n){mE(e,t);e.openElements.remove(n.element);e.activeFormattingElements.removeEntry(n)}e._reconstructActiveFormattingElements();e._insertElement(t,zy.HTML);e.activeFormattingElements.pushElement(e.openElements.current,t)}function ZE(e,t){e._reconstructActiveFormattingElements();e._insertElement(t,zy.HTML);e.activeFormattingElements.pushElement(e.openElements.current,t)}function JE(e,t){e._reconstructActiveFormattingElements();if(e.openElements.hasInScope(Yy.NOBR)){mE(e,t);e._reconstructActiveFormattingElements()}e._insertElement(t,zy.HTML);e.activeFormattingElements.pushElement(e.openElements.current,t)}function eT(e,t){e._reconstructActiveFormattingElements();e._insertElement(t,zy.HTML);e.activeFormattingElements.insertMarker();e.framesetOk=false}function tT(e,t){if(e.treeAdapter.getDocumentMode(e.document)!==Gy.QUIRKS&&e.openElements.hasInButtonScope(Yy.P)){e._closePElement()}e._insertElement(t,zy.HTML);e.framesetOk=false;e.insertionMode=rE.IN_TABLE}function nT(e,t){e._reconstructActiveFormattingElements();e._appendElement(t,zy.HTML);e.framesetOk=false;t.ackSelfClosing=true}function iT(e){const t=Hy(e,jy.TYPE);return t!=null&&t.toLowerCase()===tE}function rT(e,t){e._reconstructActiveFormattingElements();e._appendElement(t,zy.HTML);if(!iT(t)){e.framesetOk=false}t.ackSelfClosing=true}function sT(e,t){e._appendElement(t,zy.HTML);t.ackSelfClosing=true}function oT(e,t){if(e.openElements.hasInButtonScope(Yy.P)){e._closePElement()}e._appendElement(t,zy.HTML);e.framesetOk=false;t.ackSelfClosing=true}function aT(e,t){t.tagName=Vy.IMG;t.tagID=Yy.IMG;nT(e,t)}function lT(e,t){e._insertElement(t,zy.HTML);e.skipNextNewLine=true;e.tokenizer.state=ew.RCDATA;e.originalInsertionMode=e.insertionMode;e.framesetOk=false;e.insertionMode=rE.TEXT}function cT(e,t){if(e.openElements.hasInButtonScope(Yy.P)){e._closePElement()}e._reconstructActiveFormattingElements();e.framesetOk=false;e._switchToTextParsing(t,ew.RAWTEXT)}function uT(e,t){e.framesetOk=false;e._switchToTextParsing(t,ew.RAWTEXT)}function fT(e,t){e._switchToTextParsing(t,ew.RAWTEXT)}function hT(e,t){e._reconstructActiveFormattingElements();e._insertElement(t,zy.HTML);e.framesetOk=false;e.insertionMode=e.insertionMode===rE.IN_TABLE||e.insertionMode===rE.IN_CAPTION||e.insertionMode===rE.IN_TABLE_BODY||e.insertionMode===rE.IN_ROW||e.insertionMode===rE.IN_CELL?rE.IN_SELECT_IN_TABLE:rE.IN_SELECT}function dT(e,t){if(e.openElements.currentTagId===Yy.OPTION){e.openElements.pop()}e._reconstructActiveFormattingElements();e._insertElement(t,zy.HTML)}function pT(e,t){if(e.openElements.hasInScope(Yy.RUBY)){e.openElements.generateImpliedEndTags()}e._insertElement(t,zy.HTML)}function mT(e,t){if(e.openElements.hasInScope(Yy.RUBY)){e.openElements.generateImpliedEndTagsWithExclusion(Yy.RTC)}e._insertElement(t,zy.HTML)}function gT(e,t){e._reconstructActiveFormattingElements();Xw(t);$w(t);if(t.selfClosing){e._appendElement(t,zy.MATHML)}else{e._insertElement(t,zy.MATHML)}t.ackSelfClosing=true}function bT(e,t){e._reconstructActiveFormattingElements();Kw(t);$w(t);if(t.selfClosing){e._appendElement(t,zy.SVG)}else{e._insertElement(t,zy.SVG)}t.ackSelfClosing=true}function kT(e,t){e._reconstructActiveFormattingElements();e._insertElement(t,zy.HTML)}function yT(e,t){switch(t.tagID){case Yy.I:case Yy.S:case Yy.B:case Yy.U:case Yy.EM:case Yy.TT:case Yy.BIG:case Yy.CODE:case Yy.FONT:case Yy.SMALL:case Yy.STRIKE:case Yy.STRONG:{ZE(e,t);break}case Yy.A:{QE(e,t);break}case Yy.H1:case Yy.H2:case Yy.H3:case Yy.H4:case Yy.H5:case Yy.H6:{VE(e,t);break}case Yy.P:case Yy.DL:case Yy.OL:case Yy.UL:case Yy.DIV:case Yy.DIR:case Yy.NAV:case Yy.MAIN:case Yy.MENU:case Yy.ASIDE:case Yy.CENTER:case Yy.FIGURE:case Yy.FOOTER:case Yy.HEADER:case Yy.HGROUP:case Yy.DIALOG:case Yy.DETAILS:case Yy.ADDRESS:case Yy.ARTICLE:case Yy.SECTION:case Yy.SUMMARY:case Yy.FIELDSET:case Yy.BLOCKQUOTE:case Yy.FIGCAPTION:{GE(e,t);break}case Yy.LI:case Yy.DD:case Yy.DT:{XE(e,t);break}case Yy.BR:case Yy.IMG:case Yy.WBR:case Yy.AREA:case Yy.EMBED:case Yy.KEYGEN:{nT(e,t);break}case Yy.HR:{oT(e,t);break}case Yy.RB:case Yy.RTC:{pT(e,t);break}case Yy.RT:case Yy.RP:{mT(e,t);break}case Yy.PRE:case Yy.LISTING:{YE(e,t);break}case Yy.XMP:{cT(e,t);break}case Yy.SVG:{bT(e,t);break}case Yy.HTML:{HE(e,t);break}case Yy.BASE:case Yy.LINK:case Yy.META:case Yy.STYLE:case Yy.TITLE:case Yy.SCRIPT:case Yy.BGSOUND:case Yy.BASEFONT:case Yy.TEMPLATE:{DE(e,t);break}case Yy.BODY:{zE(e,t);break}case Yy.FORM:{WE(e,t);break}case Yy.NOBR:{JE(e,t);break}case Yy.MATH:{gT(e,t);break}case Yy.TABLE:{tT(e,t);break}case Yy.INPUT:{rT(e,t);break}case Yy.PARAM:case Yy.TRACK:case Yy.SOURCE:{sT(e,t);break}case Yy.IMAGE:{aT(e,t);break}case Yy.BUTTON:{$E(e,t);break}case Yy.APPLET:case Yy.OBJECT:case Yy.MARQUEE:{eT(e,t);break}case Yy.IFRAME:{uT(e,t);break}case Yy.SELECT:{hT(e,t);break}case Yy.OPTION:case Yy.OPTGROUP:{dT(e,t);break}case Yy.NOEMBED:{fT(e,t);break}case Yy.FRAMESET:{jE(e,t);break}case Yy.TEXTAREA:{lT(e,t);break}case Yy.NOSCRIPT:{if(e.options.scriptingEnabled){fT(e,t)}else{kT(e,t)}break}case Yy.PLAINTEXT:{KE(e,t);break}case Yy.COL:case Yy.TH:case Yy.TD:case Yy.TR:case Yy.HEAD:case Yy.FRAME:case Yy.TBODY:case Yy.TFOOT:case Yy.THEAD:case Yy.CAPTION:case Yy.COLGROUP:{break}default:{kT(e,t)}}}function wT(e,t){if(e.openElements.hasInScope(Yy.BODY)){e.insertionMode=rE.AFTER_BODY;if(e.options.sourceCodeLocationInfo){const n=e.openElements.tryPeekProperlyNestedBodyElement();if(n){e._setEndLocation(n,t)}}}}function ET(e,t){if(e.openElements.hasInScope(Yy.BODY)){e.insertionMode=rE.AFTER_BODY;gv(e,t)}}function TT(e,t){const n=t.tagID;if(e.openElements.hasInScope(n)){e.openElements.generateImpliedEndTags();e.openElements.popUntilTagNamePopped(n)}}function vT(e){const t=e.openElements.tmplCount>0;const{formElement:n}=e;if(!t){e.formElement=null}if((n||t)&&e.openElements.hasInScope(Yy.FORM)){e.openElements.generateImpliedEndTags();if(t){e.openElements.popUntilTagNamePopped(Yy.FORM)}else if(n){e.openElements.remove(n)}}}function ST(e){if(!e.openElements.hasInButtonScope(Yy.P)){e._insertFakeElement(Vy.P,Yy.P)}e._closePElement()}function xT(e){if(e.openElements.hasInListItemScope(Yy.LI)){e.openElements.generateImpliedEndTagsWithExclusion(Yy.LI);e.openElements.popUntilTagNamePopped(Yy.LI)}}function AT(e,t){const n=t.tagID;if(e.openElements.hasInScope(n)){e.openElements.generateImpliedEndTagsWithExclusion(n);e.openElements.popUntilTagNamePopped(n)}}function CT(e){if(e.openElements.hasNumberedHeaderInScope()){e.openElements.generateImpliedEndTags();e.openElements.popUntilNumberedHeaderPopped()}}function DT(e,t){const n=t.tagID;if(e.openElements.hasInScope(n)){e.openElements.generateImpliedEndTags();e.openElements.popUntilTagNamePopped(n);e.activeFormattingElements.clearToLastMarker()}}function _T(e){e._reconstructActiveFormattingElements();e._insertFakeElement(Vy.BR,Yy.BR);e.openElements.pop();e.framesetOk=false}function RT(e,t){const n=t.tagName;const i=t.tagID;for(let t=e.openElements.stackTop;t>0;t--){const r=e.openElements.items[t];const s=e.openElements.tagIDs[t];if(i===s&&(i!==Yy.UNKNOWN||e.treeAdapter.getTagName(r)===n)){e.openElements.generateImpliedEndTagsWithExclusion(i);if(e.openElements.stackTop>=t)e.openElements.shortenToLength(t);break}if(e._isSpecialElement(r,s)){break}}}function LT(e,t){switch(t.tagID){case Yy.A:case Yy.B:case Yy.I:case Yy.S:case Yy.U:case Yy.EM:case Yy.TT:case Yy.BIG:case Yy.CODE:case Yy.FONT:case Yy.NOBR:case Yy.SMALL:case Yy.STRIKE:case Yy.STRONG:{mE(e,t);break}case Yy.P:{ST(e);break}case Yy.DL:case Yy.UL:case Yy.OL:case Yy.DIR:case Yy.DIV:case Yy.NAV:case Yy.PRE:case Yy.MAIN:case Yy.MENU:case Yy.ASIDE:case Yy.BUTTON:case Yy.CENTER:case Yy.FIGURE:case Yy.FOOTER:case Yy.HEADER:case Yy.HGROUP:case Yy.DIALOG:case Yy.ADDRESS:case Yy.ARTICLE:case Yy.DETAILS:case Yy.SECTION:case Yy.SUMMARY:case Yy.LISTING:case Yy.FIELDSET:case Yy.BLOCKQUOTE:case Yy.FIGCAPTION:{TT(e,t);break}case Yy.LI:{xT(e);break}case Yy.DD:case Yy.DT:{AT(e,t);break}case Yy.H1:case Yy.H2:case Yy.H3:case Yy.H4:case Yy.H5:case Yy.H6:{CT(e);break}case Yy.BR:{_T(e);break}case Yy.BODY:{wT(e,t);break}case Yy.HTML:{ET(e,t);break}case Yy.FORM:{vT(e);break}case Yy.APPLET:case Yy.OBJECT:case Yy.MARQUEE:{DT(e,t);break}case Yy.TEMPLATE:{RE(e,t);break}default:{RT(e,t)}}}function IT(e,t){if(e.tmplInsertionModeStack.length>0){pv(e,t)}else{yE(e,t)}}function OT(e,t){var n;if(t.tagID===Yy.SCRIPT){(n=e.scriptHandler)===null||n===void 0?void 0:n.call(e,e.openElements.current)}e.openElements.pop();e.insertionMode=e.originalInsertionMode}function NT(e,t){e._err(t,Uy.eofInElementThatCanContainOnlyText);e.openElements.pop();e.insertionMode=e.originalInsertionMode;e.onEof(t)}function PT(e,t){if(oE.has(e.openElements.currentTagId)){e.pendingCharacterTokens.length=0;e.hasNonWhitespacePendingCharacterToken=false;e.originalInsertionMode=e.insertionMode;e.insertionMode=rE.IN_TABLE_TEXT;switch(t.type){case Fy.CHARACTER:{XT(e,t);break}case Fy.WHITESPACE_CHARACTER:{WT(e,t);break}}}else{YT(e,t)}}function MT(e,t){e.openElements.clearBackToTableContext();e.activeFormattingElements.insertMarker();e._insertElement(t,zy.HTML);e.insertionMode=rE.IN_CAPTION}function UT(e,t){e.openElements.clearBackToTableContext();e._insertElement(t,zy.HTML);e.insertionMode=rE.IN_COLUMN_GROUP}function qT(e,t){e.openElements.clearBackToTableContext();e._insertFakeElement(Vy.COLGROUP,Yy.COLGROUP);e.insertionMode=rE.IN_COLUMN_GROUP;JT(e,t)}function BT(e,t){e.openElements.clearBackToTableContext();e._insertElement(t,zy.HTML);e.insertionMode=rE.IN_TABLE_BODY}function FT(e,t){e.openElements.clearBackToTableContext();e._insertFakeElement(Vy.TBODY,Yy.TBODY);e.insertionMode=rE.IN_TABLE_BODY;nv(e,t)}function HT(e,t){if(e.openElements.hasInTableScope(Yy.TABLE)){e.openElements.popUntilTagNamePopped(Yy.TABLE);e._resetInsertionMode();e._processStartTag(t)}}function zT(e,t){if(iT(t)){e._appendElement(t,zy.HTML)}else{YT(e,t)}t.ackSelfClosing=true}function jT(e,t){if(!e.formElement&&e.openElements.tmplCount===0){e._insertElement(t,zy.HTML);e.formElement=e.openElements.current;e.openElements.pop()}}function GT(e,t){switch(t.tagID){case Yy.TD:case Yy.TH:case Yy.TR:{FT(e,t);break}case Yy.STYLE:case Yy.SCRIPT:case Yy.TEMPLATE:{DE(e,t);break}case Yy.COL:{qT(e,t);break}case Yy.FORM:{jT(e,t);break}case Yy.TABLE:{HT(e,t);break}case Yy.TBODY:case Yy.TFOOT:case Yy.THEAD:{BT(e,t);break}case Yy.INPUT:{zT(e,t);break}case Yy.CAPTION:{MT(e,t);break}case Yy.COLGROUP:{UT(e,t);break}default:{YT(e,t)}}}function VT(e,t){switch(t.tagID){case Yy.TABLE:{if(e.openElements.hasInTableScope(Yy.TABLE)){e.openElements.popUntilTagNamePopped(Yy.TABLE);e._resetInsertionMode()}break}case Yy.TEMPLATE:{RE(e,t);break}case Yy.BODY:case Yy.CAPTION:case Yy.COL:case Yy.COLGROUP:case Yy.HTML:case Yy.TBODY:case Yy.TD:case Yy.TFOOT:case Yy.TH:case Yy.THEAD:case Yy.TR:{break}default:{YT(e,t)}}}function YT(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=true;qE(e,t);e.fosterParentingEnabled=n}function WT(e,t){e.pendingCharacterTokens.push(t)}function XT(e,t){e.pendingCharacterTokens.push(t);e.hasNonWhitespacePendingCharacterToken=true}function KT(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken){for(;n<e.pendingCharacterTokens.length;n++){YT(e,e.pendingCharacterTokens[n])}}else{for(;n<e.pendingCharacterTokens.length;n++){e._insertCharacters(e.pendingCharacterTokens[n])}}e.insertionMode=e.originalInsertionMode;e._processToken(t)}const $T=new Set([Yy.CAPTION,Yy.COL,Yy.COLGROUP,Yy.TBODY,Yy.TD,Yy.TFOOT,Yy.TH,Yy.THEAD,Yy.TR]);function QT(e,t){const n=t.tagID;if($T.has(n)){if(e.openElements.hasInTableScope(Yy.CAPTION)){e.openElements.generateImpliedEndTags();e.openElements.popUntilTagNamePopped(Yy.CAPTION);e.activeFormattingElements.clearToLastMarker();e.insertionMode=rE.IN_TABLE;GT(e,t)}}else{yT(e,t)}}function ZT(e,t){const n=t.tagID;switch(n){case Yy.CAPTION:case Yy.TABLE:{if(e.openElements.hasInTableScope(Yy.CAPTION)){e.openElements.generateImpliedEndTags();e.openElements.popUntilTagNamePopped(Yy.CAPTION);e.activeFormattingElements.clearToLastMarker();e.insertionMode=rE.IN_TABLE;if(n===Yy.TABLE){VT(e,t)}}break}case Yy.BODY:case Yy.COL:case Yy.COLGROUP:case Yy.HTML:case Yy.TBODY:case Yy.TD:case Yy.TFOOT:case Yy.TH:case Yy.THEAD:case Yy.TR:{break}default:{LT(e,t)}}}function JT(e,t){switch(t.tagID){case Yy.HTML:{yT(e,t);break}case Yy.COL:{e._appendElement(t,zy.HTML);t.ackSelfClosing=true;break}case Yy.TEMPLATE:{DE(e,t);break}default:{tv(e,t)}}}function ev(e,t){switch(t.tagID){case Yy.COLGROUP:{if(e.openElements.currentTagId===Yy.COLGROUP){e.openElements.pop();e.insertionMode=rE.IN_TABLE}break}case Yy.TEMPLATE:{RE(e,t);break}case Yy.COL:{break}default:{tv(e,t)}}}function tv(e,t){if(e.openElements.currentTagId===Yy.COLGROUP){e.openElements.pop();e.insertionMode=rE.IN_TABLE;e._processToken(t)}}function nv(e,t){switch(t.tagID){case Yy.TR:{e.openElements.clearBackToTableBodyContext();e._insertElement(t,zy.HTML);e.insertionMode=rE.IN_ROW;break}case Yy.TH:case Yy.TD:{e.openElements.clearBackToTableBodyContext();e._insertFakeElement(Vy.TR,Yy.TR);e.insertionMode=rE.IN_ROW;rv(e,t);break}case Yy.CAPTION:case Yy.COL:case Yy.COLGROUP:case Yy.TBODY:case Yy.TFOOT:case Yy.THEAD:{if(e.openElements.hasTableBodyContextInTableScope()){e.openElements.clearBackToTableBodyContext();e.openElements.pop();e.insertionMode=rE.IN_TABLE;GT(e,t)}break}default:{GT(e,t)}}}function iv(e,t){const n=t.tagID;switch(t.tagID){case Yy.TBODY:case Yy.TFOOT:case Yy.THEAD:{if(e.openElements.hasInTableScope(n)){e.openElements.clearBackToTableBodyContext();e.openElements.pop();e.insertionMode=rE.IN_TABLE}break}case Yy.TABLE:{if(e.openElements.hasTableBodyContextInTableScope()){e.openElements.clearBackToTableBodyContext();e.openElements.pop();e.insertionMode=rE.IN_TABLE;VT(e,t)}break}case Yy.BODY:case Yy.CAPTION:case Yy.COL:case Yy.COLGROUP:case Yy.HTML:case Yy.TD:case Yy.TH:case Yy.TR:{break}default:{VT(e,t)}}}function rv(e,t){switch(t.tagID){case Yy.TH:case Yy.TD:{e.openElements.clearBackToTableRowContext();e._insertElement(t,zy.HTML);e.insertionMode=rE.IN_CELL;e.activeFormattingElements.insertMarker();break}case Yy.CAPTION:case Yy.COL:case Yy.COLGROUP:case Yy.TBODY:case Yy.TFOOT:case Yy.THEAD:case Yy.TR:{if(e.openElements.hasInTableScope(Yy.TR)){e.openElements.clearBackToTableRowContext();e.openElements.pop();e.insertionMode=rE.IN_TABLE_BODY;nv(e,t)}break}default:{GT(e,t)}}}function sv(e,t){switch(t.tagID){case Yy.TR:{if(e.openElements.hasInTableScope(Yy.TR)){e.openElements.clearBackToTableRowContext();e.openElements.pop();e.insertionMode=rE.IN_TABLE_BODY}break}case Yy.TABLE:{if(e.openElements.hasInTableScope(Yy.TR)){e.openElements.clearBackToTableRowContext();e.openElements.pop();e.insertionMode=rE.IN_TABLE_BODY;iv(e,t)}break}case Yy.TBODY:case Yy.TFOOT:case Yy.THEAD:{if(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(Yy.TR)){e.openElements.clearBackToTableRowContext();e.openElements.pop();e.insertionMode=rE.IN_TABLE_BODY;iv(e,t)}break}case Yy.BODY:case Yy.CAPTION:case Yy.COL:case Yy.COLGROUP:case Yy.HTML:case Yy.TD:case Yy.TH:{break}default:{VT(e,t)}}}function ov(e,t){const n=t.tagID;if($T.has(n)){if(e.openElements.hasInTableScope(Yy.TD)||e.openElements.hasInTableScope(Yy.TH)){e._closeTableCell();rv(e,t)}}else{yT(e,t)}}function av(e,t){const n=t.tagID;switch(n){case Yy.TD:case Yy.TH:{if(e.openElements.hasInTableScope(n)){e.openElements.generateImpliedEndTags();e.openElements.popUntilTagNamePopped(n);e.activeFormattingElements.clearToLastMarker();e.insertionMode=rE.IN_ROW}break}case Yy.TABLE:case Yy.TBODY:case Yy.TFOOT:case Yy.THEAD:case Yy.TR:{if(e.openElements.hasInTableScope(n)){e._closeTableCell();sv(e,t)}break}case Yy.BODY:case Yy.CAPTION:case Yy.COL:case Yy.COLGROUP:case Yy.HTML:{break}default:{LT(e,t)}}}function lv(e,t){switch(t.tagID){case Yy.HTML:{yT(e,t);break}case Yy.OPTION:{if(e.openElements.currentTagId===Yy.OPTION){e.openElements.pop()}e._insertElement(t,zy.HTML);break}case Yy.OPTGROUP:{if(e.openElements.currentTagId===Yy.OPTION){e.openElements.pop()}if(e.openElements.currentTagId===Yy.OPTGROUP){e.openElements.pop()}e._insertElement(t,zy.HTML);break}case Yy.INPUT:case Yy.KEYGEN:case Yy.TEXTAREA:case Yy.SELECT:{if(e.openElements.hasInSelectScope(Yy.SELECT)){e.openElements.popUntilTagNamePopped(Yy.SELECT);e._resetInsertionMode();if(t.tagID!==Yy.SELECT){e._processStartTag(t)}}break}case Yy.SCRIPT:case Yy.TEMPLATE:{DE(e,t);break}}}function cv(e,t){switch(t.tagID){case Yy.OPTGROUP:{if(e.openElements.stackTop>0&&e.openElements.currentTagId===Yy.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===Yy.OPTGROUP){e.openElements.pop()}if(e.openElements.currentTagId===Yy.OPTGROUP){e.openElements.pop()}break}case Yy.OPTION:{if(e.openElements.currentTagId===Yy.OPTION){e.openElements.pop()}break}case Yy.SELECT:{if(e.openElements.hasInSelectScope(Yy.SELECT)){e.openElements.popUntilTagNamePopped(Yy.SELECT);e._resetInsertionMode()}break}case Yy.TEMPLATE:{RE(e,t);break}}}function uv(e,t){const n=t.tagID;if(n===Yy.CAPTION||n===Yy.TABLE||n===Yy.TBODY||n===Yy.TFOOT||n===Yy.THEAD||n===Yy.TR||n===Yy.TD||n===Yy.TH){e.openElements.popUntilTagNamePopped(Yy.SELECT);e._resetInsertionMode();e._processStartTag(t)}else{lv(e,t)}}function fv(e,t){const n=t.tagID;if(n===Yy.CAPTION||n===Yy.TABLE||n===Yy.TBODY||n===Yy.TFOOT||n===Yy.THEAD||n===Yy.TR||n===Yy.TD||n===Yy.TH){if(e.openElements.hasInTableScope(n)){e.openElements.popUntilTagNamePopped(Yy.SELECT);e._resetInsertionMode();e.onEndTag(t)}}else{cv(e,t)}}function hv(e,t){switch(t.tagID){case Yy.BASE:case Yy.BASEFONT:case Yy.BGSOUND:case Yy.LINK:case Yy.META:case Yy.NOFRAMES:case Yy.SCRIPT:case Yy.STYLE:case Yy.TEMPLATE:case Yy.TITLE:{DE(e,t);break}case Yy.CAPTION:case Yy.COLGROUP:case Yy.TBODY:case Yy.TFOOT:case Yy.THEAD:{e.tmplInsertionModeStack[0]=rE.IN_TABLE;e.insertionMode=rE.IN_TABLE;GT(e,t);break}case Yy.COL:{e.tmplInsertionModeStack[0]=rE.IN_COLUMN_GROUP;e.insertionMode=rE.IN_COLUMN_GROUP;JT(e,t);break}case Yy.TR:{e.tmplInsertionModeStack[0]=rE.IN_TABLE_BODY;e.insertionMode=rE.IN_TABLE_BODY;nv(e,t);break}case Yy.TD:case Yy.TH:{e.tmplInsertionModeStack[0]=rE.IN_ROW;e.insertionMode=rE.IN_ROW;rv(e,t);break}default:{e.tmplInsertionModeStack[0]=rE.IN_BODY;e.insertionMode=rE.IN_BODY;yT(e,t)}}}function dv(e,t){if(t.tagID===Yy.TEMPLATE){RE(e,t)}}function pv(e,t){if(e.openElements.tmplCount>0){e.openElements.popUntilTagNamePopped(Yy.TEMPLATE);e.activeFormattingElements.clearToLastMarker();e.tmplInsertionModeStack.shift();e._resetInsertionMode();e.onEof(t)}else{yE(e,t)}}function mv(e,t){if(t.tagID===Yy.HTML){yT(e,t)}else{bv(e,t)}}function gv(e,t){var n;if(t.tagID===Yy.HTML){if(!e.fragmentContext){e.insertionMode=rE.AFTER_AFTER_BODY}if(e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===Yy.HTML){e._setEndLocation(e.openElements.items[0],t);const i=e.openElements.items[1];if(i&&!((n=e.treeAdapter.getNodeSourceCodeLocation(i))===null||n===void 0?void 0:n.endTag)){e._setEndLocation(i,t)}}}else{bv(e,t)}}function bv(e,t){e.insertionMode=rE.IN_BODY;qE(e,t)}function kv(e,t){switch(t.tagID){case Yy.HTML:{yT(e,t);break}case Yy.FRAMESET:{e._insertElement(t,zy.HTML);break}case Yy.FRAME:{e._appendElement(t,zy.HTML);t.ackSelfClosing=true;break}case Yy.NOFRAMES:{DE(e,t);break}}}function yv(e,t){if(t.tagID===Yy.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()){e.openElements.pop();if(!e.fragmentContext&&e.openElements.currentTagId!==Yy.FRAMESET){e.insertionMode=rE.AFTER_FRAMESET}}}function wv(e,t){switch(t.tagID){case Yy.HTML:{yT(e,t);break}case Yy.NOFRAMES:{DE(e,t);break}}}function Ev(e,t){if(t.tagID===Yy.HTML){e.insertionMode=rE.AFTER_AFTER_FRAMESET}}function Tv(e,t){if(t.tagID===Yy.HTML){yT(e,t)}else{vv(e,t)}}function vv(e,t){e.insertionMode=rE.IN_BODY;qE(e,t)}function Sv(e,t){switch(t.tagID){case Yy.HTML:{yT(e,t);break}case Yy.NOFRAMES:{DE(e,t);break}}}function xv(e,t){t.chars=_y;e._insertCharacters(t)}function Av(e,t){e._insertCharacters(t);e.framesetOk=false}function Cv(e){while(e.treeAdapter.getNamespaceURI(e.openElements.current)!==zy.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current)){e.openElements.pop()}}function Dv(e,t){if(Ww(t)){Cv(e);e._startTagOutsideForeignContent(t)}else{const n=e._getAdjustedCurrentElement();const i=e.treeAdapter.getNamespaceURI(n);if(i===zy.MATHML){Xw(t)}else if(i===zy.SVG){Qw(t);Kw(t)}$w(t);if(t.selfClosing){e._appendElement(t,i)}else{e._insertElement(t,i)}t.ackSelfClosing=true}}function _v(e,t){if(t.tagID===Yy.P||t.tagID===Yy.BR){Cv(e);e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const i=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(i)===zy.HTML){e._endTagOutsideForeignContent(t);break}const r=e.treeAdapter.getTagName(i);if(r.toLowerCase()===t.tagName){t.tagName=r;e.openElements.shortenToLength(n);break}}}const Rv=Iv("end");const Lv=Iv("start");function Iv(e){return t;function t(t){const n=t&&t.position&&t.position[e]||{};if(typeof n.line==="number"&&n.line>0&&typeof n.column==="number"&&n.column>0){return{line:n.line,column:n.column,offset:typeof n.offset==="number"&&n.offset>-1?n.offset:undefined}}}}const Ov={}.hasOwnProperty;function Nv(e,t){const n=t||{};function i(t,...n){let r=i.invalid;const s=i.handlers;if(t&&Ov.call(t,e)){const n=String(t[e]);r=Ov.call(s,n)?s[n]:i.unknown}if(r){return r.call(this,t,...n)}}i.handlers=n.handlers||{};i.invalid=n.invalid;i.unknown=n.unknown;return i}const Pv=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]);const Mv={sourceCodeLocationInfo:true,scriptingEnabled:false};function Uv(e,t){const n=Qv(e);const i=Nv("type",{handlers:{root:Bv,element:Fv,text:Hv,comment:Gv,doctype:zv,raw:Vv},unknown:Yv});const r={parser:n?new lE(Mv):lE.getFragmentParser(undefined,Mv),handle(e){i(e,r)},stitches:false,options:t||{}};i(e,r);Wv(r,Lv());const s=n?r.parser.document:r.parser.getFragment();const o=wk(s,{file:r.options.file});if(r.stitches){Xr(o,"comment",(function(e,t,n){const i=e;if(i.value.stitch&&n&&t!==undefined){const e=n.children;e[t]=i.value.stitch;return t}}))}if(o.type==="root"&&o.children.length===1&&o.children[0].type===e.type){return o.children[0]}return o}function qv(e,t){let n=-1;if(e){while(++n<e.length){t.handle(e[n])}}}function Bv(e,t){qv(e.children,t)}function Fv(e,t){Kv(e,t);qv(e.children,t);$v(e,t)}function Hv(e,t){if(t.parser.tokenizer.state>4){t.parser.tokenizer.state=0}const n={type:Fy.CHARACTER,chars:e.value,location:Zv(e)};Wv(t,Lv(e));t.parser.currentToken=n;t.parser._processToken(t.parser.currentToken)}function zv(e,t){const n={type:Fy.DOCTYPE,name:"html",forceQuirks:false,publicId:"",systemId:"",location:Zv(e)};Wv(t,Lv(e));t.parser.currentToken=n;t.parser._processToken(t.parser.currentToken)}function jv(e,t){t.stitches=true;const n=Jv(e);if("children"in e&&"children"in n){const i=Uv({type:"root",children:e.children},t.options);n.children=i.children}Gv({type:"comment",value:{stitch:n}},t)}function Gv(e,t){const n=e.value;const i={type:Fy.COMMENT,data:n,location:Zv(e)};Wv(t,Lv(e));t.parser.currentToken=i;t.parser._processToken(t.parser.currentToken)}function Vv(e,t){t.parser.tokenizer.preprocessor.html="";t.parser.tokenizer.preprocessor.pos=-1;t.parser.tokenizer.preprocessor.lastGapPos=-2;t.parser.tokenizer.preprocessor.gapStack=[];t.parser.tokenizer.preprocessor.skipNextNewLine=false;t.parser.tokenizer.preprocessor.lastChunkWritten=false;t.parser.tokenizer.preprocessor.endOfChunkHit=false;t.parser.tokenizer.preprocessor.isEol=false;Xv(t,Lv(e));t.parser.tokenizer.write(e.value,false);t.parser.tokenizer._runParsingLoop();if(t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=true;const e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function Yv(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type)){jv(n,t)}else{let e="";if(Pv.has(n.type)){e=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"}throw new Error("Cannot compile `"+n.type+"` node"+e)}}function Wv(e,t){Xv(e,t);const n=e.parser.tokenizer.currentCharacterToken;if(n&&n.location){n.location.endLine=e.parser.tokenizer.preprocessor.line;n.location.endCol=e.parser.tokenizer.preprocessor.col+1;n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1;e.parser.currentToken=n;e.parser._processToken(e.parser.currentToken)}e.parser.tokenizer.paused=false;e.parser.tokenizer.inLoop=false;e.parser.tokenizer.active=false;e.parser.tokenizer.returnState=ew.DATA;e.parser.tokenizer.charRefCode=-1;e.parser.tokenizer.consumedAfterSnapshot=-1;e.parser.tokenizer.currentLocation=null;e.parser.tokenizer.currentCharacterToken=null;e.parser.tokenizer.currentToken=null;e.parser.tokenizer.currentAttr={name:"",value:""}}function Xv(e,t){if(t&&t.offset!==undefined){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1;e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset;e.parser.tokenizer.preprocessor.line=t.line;e.parser.tokenizer.currentLocation=n}}function Kv(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===ew.PLAINTEXT)return;Wv(t,Lv(e));const i=t.parser.openElements.current;let r="namespaceURI"in i?i.namespaceURI:bk.html;if(r===bk.html&&n==="svg"){r=bk.svg}const s=by({...e,children:[]},{space:r===bk.svg?"svg":"html"});const o={type:Fy.START_TAG,tagName:n,tagID:Xy(n),selfClosing:false,ackSelfClosing:false,attrs:"attrs"in s?s.attrs:[],location:Zv(e)};t.parser.currentToken=o;t.parser._processToken(t.parser.currentToken);t.parser.tokenizer.lastStartTagName=n}function $v(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Cy.includes(n)){return}if(t.parser.tokenizer.state===ew.PLAINTEXT)return;Wv(t,Rv(e));const i={type:Fy.END_TAG,tagName:n,tagID:Xy(n),selfClosing:false,ackSelfClosing:false,attrs:[],location:Zv(e)};t.parser.currentToken=i;t.parser._processToken(t.parser.currentToken);if(n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===ew.RCDATA||t.parser.tokenizer.state===ew.RAWTEXT||t.parser.tokenizer.state===ew.SCRIPT_DATA)){t.parser.tokenizer.state=ew.DATA}}function Qv(e){const t=e.type==="root"?e.children[0]:e;return Boolean(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Zv(e){const t=Lv(e)||{line:undefined,column:undefined,offset:undefined};const n=Rv(e)||{line:undefined,column:undefined,offset:undefined};const i={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset};return i}function Jv(e){return"children"in e?Rr({...e,children:[]}):Rr(e)}function eS(e){return function(t,n){const i=Uv(t,{...e,file:n});return i}}var tS=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;var nS=/\n/g;var iS=/^\s*/;var rS=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/;var sS=/^:\s*/;var oS=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/;var aS=/^[;\s]*/;var lS=/^\s+|\s+$/g;var cS="\n";var uS="/";var fS="*";var hS="";var dS="comment";var pS="declaration";var mS=function(e,t){if(typeof e!=="string"){throw new TypeError("First argument must be a string")}if(!e)return[];t=t||{};var n=1;var i=1;function r(e){var t=e.match(nS);if(t)n+=t.length;var r=e.lastIndexOf(cS);i=~r?e.length-r:i+e.length}function s(){var e={line:n,column:i};return function(t){t.position=new o(e);c();return t}}function o(e){this.start=e;this.end={line:n,column:i};this.source=t.source}o.prototype.content=e;function a(r){var s=new Error(t.source+":"+n+":"+i+": "+r);s.reason=r;s.filename=t.source;s.line=n;s.column=i;s.source=e;if(t.silent);else{throw s}}function l(t){var n=t.exec(e);if(!n)return;var i=n[0];r(i);e=e.slice(i.length);return n}function c(){l(iS)}function u(e){var t;e=e||[];while(t=f()){if(t!==false){e.push(t)}}return e}function f(){var t=s();if(uS!=e.charAt(0)||fS!=e.charAt(1))return;var n=2;while(hS!=e.charAt(n)&&(fS!=e.charAt(n)||uS!=e.charAt(n+1))){++n}n+=2;if(hS===e.charAt(n-1)){return a("End of comment missing")}var o=e.slice(2,n-2);i+=2;r(o);e=e.slice(n);i+=2;return t({type:dS,comment:o})}function h(){var e=s();var t=l(rS);if(!t)return;f();if(!l(sS))return a("property missing ':'");var n=l(oS);var i=e({type:pS,property:gS(t[0].replace(tS,hS)),value:n?gS(n[0].replace(tS,hS)):hS});l(aS);return i}function d(){var e=[];u(e);var t;while(t=h()){if(t!==false){e.push(t);u(e)}}return e}c();return d()};function gS(e){return e?e.replace(lS,hS):hS}var bS=e((function(e,n){var i=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:true});n.default=s;var r=i(mS);function s(e,t){var n=null;if(!e||typeof e!=="string"){return n}var i=(0,r.default)(e);var s=typeof t==="function";i.forEach((function(e){if(e.type!=="declaration"){return}var i=e.property,r=e.value;if(s){t(i,r,e)}else if(r){n=n||{};n[i]=r}}));return n}}));const kS=n(bS);const yS=kS.default||kS;var wS={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const ES="a-f\\d";const TS=`#?[${ES}]{3}[${ES}]?`;const vS=`#?[${ES}]{6}([${ES}]{2})?`;const SS=new RegExp(`[^#${ES}]`,"gi");const xS=new RegExp(`^${TS}$|^${vS}$`,"i");var AS=(e,t={})=>{if(typeof e!=="string"||SS.test(e)||!xS.test(e)){throw new TypeError("Expected a valid hex string")}e=e.replace(/^#/,"");let n=1;if(e.length===8){n=Number.parseInt(e.slice(6,8),16)/255;e=e.slice(0,6)}if(e.length===4){n=Number.parseInt(e.slice(3,4).repeat(2),16)/255;e=e.slice(0,3)}if(e.length===3){e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]}const i=Number.parseInt(e,16);const r=i>>16;const s=i>>8&255;const o=i&255;const a=typeof t.alpha==="number"?t.alpha:n;if(t.format==="array"){return[r,s,o,a]}if(t.format==="css"){const e=a===1?"":` / ${Number((a*100).toFixed(2))}%`;return`rgb(${r} ${s} ${o}${e})`}return{red:r,green:s,blue:o,alpha:a}};const CS=/^#([a-f0-9]{3,4}|[a-f0-9]{4}(?:[a-f0-9]{2}){1,2})\b$/;var DS=new RegExp(CS,"i");const _S="-?\\d*(?:\\.\\d+)";const RS=`(${_S}?)`;const LS=`(${_S}?%)`;const IS=`(${_S}?%?)`;const OS=`^\n hsla?\\(\n \\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*,\n \\s*${LS}\\s*,\n \\s*${LS}\\s*\n (?:,\\s*${IS}\\s*)?\n \\)\n $\n`.replace(/\n|\s/g,"");var NS=new RegExp(OS);const PS=`^\n hsla?\\(\n \\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*\n \\s+${LS}\n \\s+${LS}\n \\s*(?:\\s*\\/\\s*${IS}\\s*)?\n \\)\n $\n`.replace(/\n|\s/g,"");var MS=new RegExp(PS);const US=`^\n rgba?\\(\n \\s*${RS}\\s*,\n \\s*${RS}\\s*,\n \\s*${RS}\\s*\n (?:,\\s*${IS}\\s*)?\n \\)\n $\n`.replace(/\n|\s/g,"");var qS=new RegExp(US);const BS=`^\n rgba?\\(\n \\s*${LS}\\s*,\n \\s*${LS}\\s*,\n \\s*${LS}\\s*\n (?:,\\s*${IS}\\s*)?\n \\)\n $\n`.replace(/\n|\s/g,"");var FS=new RegExp(BS);const HS=`^\n rgba?\\(\n \\s*${RS}\n \\s+${RS}\n \\s+${RS}\n \\s*(?:\\s*\\/\\s*${IS}\\s*)?\n \\)\n$\n`.replace(/\n|\s/g,"");var zS=new RegExp(HS);const jS=`^\n rgba?\\(\n \\s*${LS}\n \\s+${LS}\n \\s+${LS}\n \\s*(?:\\s*\\/\\s*${IS}\\s*)?\n \\)\n$\n`.replace(/\n|\s/g,"");var GS=new RegExp(jS);const VS=/^transparent$/;var YS=new RegExp(VS,"i");const WS=(e,t,n)=>Math.min(Math.max(t,e),n);const XS=e=>{let t=e;if(typeof t!=="number")t=t.endsWith("%")?parseFloat(t)*255/100:parseFloat(t);return WS(Math.round(t),0,255)};const KS=e=>WS(parseFloat(e),0,100);function $S(e){let t=e;if(typeof t!=="number")t=t.endsWith("%")?parseFloat(t)/100:parseFloat(t);return WS(t,0,1)}function QS(e){const[t,n,i,r]=AS(e,{format:"array"});return JS([null,...[t,n,i,r]])}function ZS([,e,t,n,i=1]){let r=e;if(r.endsWith("turn")){r=parseFloat(r)*360/1}else if(r.endsWith("rad")){r=Math.round(parseFloat(r)*180/Math.PI)}else{r=parseFloat(r)}return{type:"hsl",values:[r,KS(t),KS(n)],alpha:$S(i===null?1:i)}}function JS([,e,t,n,i=1]){return{type:"rgb",values:[e,t,n].map(XS),alpha:$S(i===null?1:i)}}
|
|
2
|
+
/**
|
|
3
|
+
* parse-css-color
|
|
4
|
+
* @version v0.2.1
|
|
5
|
+
* @link http://github.com/noeldelgado/parse-css-color/
|
|
6
|
+
* @license MIT
|
|
7
|
+
*/const ex=e=>{if(typeof e!=="string")return null;const t=DS.exec(e);if(t)return QS(t[0]);const n=MS.exec(e)||NS.exec(e);if(n)return ZS(n);const i=zS.exec(e)||GS.exec(e)||qS.exec(e)||FS.exec(e);if(i)return JS(i);if(YS.exec(e))return JS([null,0,0,0,0]);const r=wS[e.toLowerCase()];if(r)return JS([null,r[0],r[1],r[2],1]);return null};const tx=["background-color","color","font-style","font-weight","text-decoration-color","text-decoration-line","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-decoration","width","height","min-width","min-height"];function nx(e){var t;if(e.tagName&&((t=e.properties)===null||t===void 0?void 0:t.style)){e.properties.style=ix(e.properties.style)}}function ix(e){try{const t=yS(e);const n=rx(t);return Object.entries(n).filter((([e])=>tx.includes(e))).map((([e,t])=>`${e}: ${t}`)).join("; ")}catch(t){console.error("Failed to parse style value",e,t);return""}}function rx(e){const t=Object.assign({},e);delete t.background;if("background"in e&&sx(e.background)){t["background-color"]=e.background}return t}function sx(e){return ex(e)!==null}function ox(e=false){return()=>{if(!e){return e=>e}return e=>{Xr(e,"element",(e=>{if(e.tagName==="img"){e.properties=e.properties||{};e.properties.loading="lazy";if(e.properties.src){e.properties["data-src"]=e.properties.src;e.properties.src=undefined}}}));return e}}}function ax(){return()=>e=>{Xr(e,"element",(e=>{var t,n;if(e.tagName==="a"){const r=(t=e.properties)===null||t===void 0?void 0:t.href;const s=(n=e.properties)===null||n===void 0?void 0:n.title;if(!r){return}const o=i(r,s);e.properties.target=o.target;e.properties.rel=o.rel;e.properties.referrerpolicy=o.referrerpolicy}}));return e}}async function lx(e,t){var n;if(t===null||t===void 0?void 0:t.forceHardLineBreaks){e=e.replace(/(?<!\\)([\n\r])/g," $1")}const i=await fe().use(Ci).use(rc).use(rs,{allowDangerousHtml:true}).use(eS).use(ax()).use(Em,Object.assign({},ux((n=t===null||t===void 0?void 0:t.whitelist)!==null&&n!==void 0?n:[]))).use((()=>e=>{Xr(e,"element",nx)})).use(ox(t===null||t===void 0?void 0:t.lazyLoadImages)).use(bb).process(e);return i.toString()}async function cx(e,t){const n=await fe().use(Jp).use(Em,Object.assign({},ux(t!==null&&t!==void 0?t:[]))).use((()=>e=>{Xr(e,"element",nx)})).use(bb).process(e);return n.toString()}function ux(e){var t,n,i;const r=[...(t=sm.attributes["*"])!==null&&t!==void 0?t:[]];const s=r.filter((e=>e!=="height"));s.push("style");const o=Object.assign(Object.assign({},sm),{tagNames:[...sm.tagNames||[],...e.map((e=>e.tagName))],attributes:Object.assign(Object.assign({},sm.attributes),{p:[...(n=sm.attributes.p)!==null&&n!==void 0?n:[],["className","MsoNormal"]],a:[...(i=sm.attributes.a)!==null&&i!==void 0?i:[],"referrerpolicy"],"*":s})});for(const t of e){o.attributes[t.tagName]=t.attributes}return o}export{S as d,i as g,lx as m,cx as s};
|
|
8
|
+
//# sourceMappingURL=p-95a71e89.js.map
|