@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
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{c as e,a as t,d as n}from"./p-4e9b4087.js";const i=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 r;const s=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 o=(r=String.fromCodePoint)!==null&&r!==void 0?r: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 a(e){var t;if(e>=55296&&e<=57343||e>1114111){return 65533}return(t=s.get(e))!==null&&t!==void 0?t:e}var l;(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"})(l||(l={}));const c=32;var u;(function(e){e[e["VALUE_LENGTH"]=49152]="VALUE_LENGTH";e[e["BRANCH_LENGTH"]=16256]="BRANCH_LENGTH";e[e["JUMP_TABLE"]=127]="JUMP_TABLE"})(u||(u={}));function f(e){return e>=l.ZERO&&e<=l.NINE}function h(e){return e>=l.UPPER_A&&e<=l.UPPER_F||e>=l.LOWER_A&&e<=l.LOWER_F}function d(e){return e>=l.UPPER_A&&e<=l.UPPER_Z||e>=l.LOWER_A&&e<=l.LOWER_Z||f(e)}function p(e){return e===l.EQUALS||d(e)}var m;(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"})(m||(m={}));var g;(function(e){e[e["Legacy"]=0]="Legacy";e[e["Strict"]=1]="Strict";e[e["Attribute"]=2]="Attribute"})(g||(g={}));class b{constructor(e,t,n){this.decodeTree=e;this.emitCodePoint=t;this.errors=n;this.state=m.EntityStart;this.consumed=1;this.result=0;this.treeIndex=0;this.excess=1;this.decodeMode=g.Strict}startEntity(e){this.decodeMode=e;this.state=m.EntityStart;this.result=0;this.treeIndex=0;this.excess=1;this.consumed=1}write(e,t){switch(this.state){case m.EntityStart:{if(e.charCodeAt(t)===l.NUM){this.state=m.NumericStart;this.consumed+=1;return this.stateNumericStart(e,t+1)}this.state=m.NamedEntity;return this.stateNamedEntity(e,t)}case m.NumericStart:{return this.stateNumericStart(e,t)}case m.NumericDecimal:{return this.stateNumericDecimal(e,t)}case m.NumericHex:{return this.stateNumericHex(e,t)}case m.NamedEntity:{return this.stateNamedEntity(e,t)}}}stateNumericStart(e,t){if(t>=e.length){return-1}if((e.charCodeAt(t)|c)===l.LOWER_X){this.state=m.NumericHex;this.consumed+=1;return this.stateNumericHex(e,t+1)}this.state=m.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(f(i)||h(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(f(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===l.SEMI){this.consumed+=1}else if(this.decodeMode===g.Strict){return 0}this.emitCodePoint(a(this.result),this.consumed);if(this.errors){if(e!==l.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&u.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const s=e.charCodeAt(t);this.treeIndex=y(n,i,this.treeIndex+Math.max(1,r),s);if(this.treeIndex<0){return this.result===0||this.decodeMode===g.Attribute&&(r===0||p(s))?0:this.emitNotTerminatedNamedEntity()}i=n[this.treeIndex];r=(i&u.VALUE_LENGTH)>>14;if(r!==0){if(s===l.SEMI){return this.emitNamedEntityData(this.treeIndex,r,this.consumed+this.excess)}if(this.decodeMode!==g.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]&u.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]&~u.VALUE_LENGTH:i[e+1],n);if(t===3){this.emitCodePoint(i[e+2],n)}return n}end(){var e;switch(this.state){case m.NamedEntity:{return this.result!==0&&(this.decodeMode!==g.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0}case m.NumericDecimal:{return this.emitNumericEntity(0,2)}case m.NumericHex:{return this.emitNumericEntity(0,3)}case m.NumericStart:{(e=this.errors)===null||e===void 0?void 0:e.absenceOfDigitsInNumericCharacterReference(this.consumed);return 0}case m.EntityStart:{return 0}}}}function k(e){let t="";const n=new b(e,(e=>t+=o(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 y(e,t,n,i){const r=(t&u.BRANCH_LENGTH)>>7;const s=t&u.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 w=k(i);function E(e,t=g.Legacy){return w(e,t)}function T(e){if(e){throw e}}var v=Object.prototype.hasOwnProperty;var S=Object.prototype.toString;var x=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var C=function e(t){if(typeof Array.isArray==="function"){return Array.isArray(t)}return S.call(t)==="[object Array]"};var D=function e(t){if(!t||S.call(t)!=="[object Object]"){return false}var n=v.call(t,"constructor");var i=t.constructor&&t.constructor.prototype&&v.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!i){return false}var r;for(r in t){}return typeof r==="undefined"||v.call(t,r)};var _=function e(t,n){if(x&&n.name==="__proto__"){x(t,n.name,{enumerable:true,configurable:true,value:n.newValue,writable:true})}else{t[n.name]=n.newValue}};var R=function e(t,n){if(n==="__proto__"){if(!v.call(t,n)){return void 0}else if(A){return A(t,n).value}}return t[n]};var L=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=R(a,n);r=R(t,n);if(a!==r){if(u&&r&&(D(r)||(s=C(r)))){if(s){s=false;o=i&&C(i)?i:[]}else{o=i&&D(i)?i:{}}_(a,{name:n,newValue:e(u,o,r)})}else if(typeof r!=="undefined"){_(a,{name:n,newValue:r})}}}}}return a};function I(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 O(){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){N(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 N(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 P(e){if(!e||typeof e!=="object"){return""}if("position"in e||"type"in e){return U(e.position)}if("start"in e||"end"in e){return U(e)}if("line"in e||"column"in e){return M(e)}return""}function M(e){return q(e&&e.line)+":"+q(e&&e.column)}function U(e){return M(e&&e.start)+"-"+M(e&&e.end)}function q(e){return e&&typeof e==="number"?e:1}class B 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=P(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:""}}B.prototype.file="";B.prototype.name="";B.prototype.reason="";B.prototype.message="";B.prototype.stack="";B.prototype.column=undefined;B.prototype.line=undefined;B.prototype.ancestors=undefined;B.prototype.cause=undefined;B.prototype.fatal=undefined;B.prototype.place=undefined;B.prototype.ruleId=undefined;B.prototype.source=undefined;const F={basename:H,dirname:z,extname:j,join:G,sep:"/"};function H(e,t){if(t!==undefined&&typeof t!=="string"){throw new TypeError('"ext" argument must be a string')}W(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 z(e){W(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 j(e){W(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 G(...e){let t=-1;let n;while(++t<e.length){W(e[t]);if(e[t]){n=n===undefined?e[t]:n+"/"+e[t]}}return n===undefined?".":V(n)}function V(e){W(e);const t=e.codePointAt(0)===47;let n=Y(e,!t);if(n.length===0&&!t){n="."}if(n.length>0&&e.codePointAt(e.length-1)===47){n+="/"}return t?"/"+n:n}function Y(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 W(e){if(typeof e!=="string"){throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}}const X={cwd:K};function K(){return"/"}function $(e){return Boolean(e!==null&&typeof e==="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===undefined)}function Q(e){if(typeof e==="string"){e=new URL(e)}else if(!$(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 Z(e)}function Z(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 J=["history","path","basename","stem","extname","dirname"];class ee{constructor(e){let t;if(!e){t={}}else if($(e)){t={path:e}}else if(typeof e==="string"||re(e)){t={value:e}}else{t=e}this.cwd=X.cwd();this.data={};this.history=[];this.messages=[];let n=-1;while(++n<J.length){const e=J[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(!J.includes(i)){this[i]=t[i]}}}get basename(){return typeof this.path==="string"?F.basename(this.path):undefined}set basename(e){ne(e,"basename");te(e,"basename");this.path=F.join(this.dirname||"",e)}get dirname(){return typeof this.path==="string"?F.dirname(this.path):undefined}set dirname(e){ie(this.basename,"dirname");this.path=F.join(e||"",this.basename)}get extname(){return typeof this.path==="string"?F.extname(this.path):undefined}set extname(e){te(e,"extname");ie(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=F.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){if($(e)){e=Q(e)}ne(e,"path");if(this.path!==e){this.history.push(e)}}get stem(){return typeof this.path==="string"?F.basename(this.path,this.extname):undefined}set stem(e){ne(e,"stem");te(e,"stem");this.path=F.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 B(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 te(e,t){if(e&&e.includes(F.sep)){throw new Error("`"+t+"` cannot be a path: did not expect `"+F.sep+"`")}}function ne(e,t){if(!e){throw new Error("`"+t+"` cannot be empty")}}function ie(e,t){if(!e){throw new Error("Setting `"+t+"` requires `path` to be set too")}}function re(e){return Boolean(e&&typeof e==="object"&&"byteLength"in e&&"byteOffset"in e)}const se=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 oe={}.hasOwnProperty;class ae extends se{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=O()}copy(){const e=new ae;let t=-1;while(++t<this.attachers.length){const n=this.attachers[t];e.use(...n)}e.data(L(true,{},this.namespace));return e}data(e,t){if(typeof e==="string"){if(arguments.length===2){fe("data",this.frozen);this.namespace[e]=t;return this}return oe.call(this.namespace,e)&&this.namespace[e]||undefined}if(e){fe("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=pe(e);const n=this.parser||this.Parser;ce("parse",n);return n(String(t),t)}process(e,t){const n=this;this.freeze();ce("process",this.parser||this.Parser);ue("process",this.compiler||this.Compiler);return t?i(undefined,t):new Promise(i);function i(i,r){const s=pe(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(ge(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();ce("processSync",this.parser||this.Parser);ue("processSync",this.compiler||this.Compiler);this.process(e,i);de("processSync","process",t);return n;function i(e,i){t=true;T(e);n=i}}run(e,t,n){he(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=pe(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);de("runSync","run",n);return i;function r(e,t){T(e);i=t;n=true}}stringify(e,t){this.freeze();const n=pe(t);const i=this.compiler||this.Compiler;ue("stringify",i);he(e);return i(e,n)}use(e,...t){const n=this.attachers;const i=this.namespace;fe("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=L(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(I(o)&&I(i)){i=L(true,o,i)}n[r]=[e,i,...s]}}}}const le=(new ae).freeze();function ce(e,t){if(typeof t!=="function"){throw new TypeError("Cannot `"+e+"` without `parser`")}}function ue(e,t){if(typeof t!=="function"){throw new TypeError("Cannot `"+e+"` without `compiler`")}}function fe(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 he(e){if(!I(e)||typeof e.type!=="string"){throw new TypeError("Expected node, got `"+e+"`")}}function de(e,t,n){if(!n){throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}}function pe(e){return me(e)?e:new ee(e)}function me(e){return Boolean(e&&typeof e==="object"&&"message"in e&&"messages"in e)}function ge(e){return typeof e==="string"||be(e)}function be(e){return Boolean(e&&typeof e==="object"&&"byteLength"in e&&"byteOffset"in e)}const ke={};function ye(e,t){const n=t||ke;const i=typeof n.includeImageAlt==="boolean"?n.includeImageAlt:true;const r=typeof n.includeHtml==="boolean"?n.includeHtml:true;return we(e,i,r)}function we(e,t,n){if(Te(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 Ee(e.children,t,n)}}if(Array.isArray(e)){return Ee(e,t,n)}return""}function Ee(e,t,n){const i=[];let r=-1;while(++r<e.length){i[r]=we(e[r],t,n)}return i.join("")}function Te(e){return Boolean(e&&typeof e==="object")}const ve={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 Se={}.hasOwnProperty;function xe(e){return Se.call(ve,e)?ve[e]:false}function Ae(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 Ce(e,t){if(e.length>0){Ae(e,e.length,0,t);return e}return t}const De={}.hasOwnProperty;function _e(e){const t={};let n=-1;while(++n<e.length){Re(t,e[n])}return t}function Re(e,t){let n;for(n in t){const i=De.call(e,n)?e[n]:undefined;const r=i||(e[n]={});const s=t[n];let o;if(s){for(o in s){if(!De.call(r,o))r[o]=[];const e=s[o];Le(r[o],Array.isArray(e)?e:e?[e]:[])}}}}function Le(e,t){let n=-1;const i=[];while(++n<t.length){(t[n].add==="after"?e:i).push(t[n])}Ae(e,0,0,i)}function Ie(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 Oe(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ne=We(/\p{P}/u);const Pe=We(/[A-Za-z]/);const Me=We(/[\dA-Za-z]/);const Ue=We(/[#-'*+\--9=?A-Z^-~]/);function qe(e){return e!==null&&(e<32||e===127)}const Be=We(/\d/);const Fe=We(/[\dA-Fa-f]/);const He=We(/[!-/:-@[-`{-~]/);function ze(e){return e!==null&&e<-2}function je(e){return e!==null&&(e<0||e===32)}function Ge(e){return e===-2||e===-1||e===32}function Ve(e){return He(e)||Ne(e)}const Ye=We(/\s/);function We(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Xe(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&&Me(e.charCodeAt(n+1))&&Me(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 Ke(e,t,n,i){const r=i?i-1:Number.POSITIVE_INFINITY;let s=0;return o;function o(i){if(Ge(i)){e.enter(n);return a(i)}return t(i)}function a(i){if(Ge(i)&&s++<r){e.consume(i);return a}e.exit(n);return t(i)}}const $e={tokenize:Qe};function Qe(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 Ke(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(ze(t)){e.consume(t);e.exit("chunkText");return s}e.consume(t);return o}}const Ze={tokenize:et};const Je={tokenize:tt};function et(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++}Ae(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(Je,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(Je,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(ze(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++}Ae(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 tt(e,t,n){return Ke(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?undefined:4)}function nt(e){if(e===null||je(e)||Ye(e)){return 1}if(Ve(e)){return 2}}function it(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 rt={name:"attention",tokenize:ot,resolveAll:st};function st(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);at(f,-l);at(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=Ce(c,[["enter",e[i][1],t],["exit",e[i][1],t]])}c=Ce(c,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",s,t]]);c=Ce(c,it(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t));c=Ce(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=Ce(c,[["enter",e[n][1],t],["exit",e[n][1],t]])}else{u=0}Ae(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 ot(e,t){const n=this.parser.constructs.attentionMarkers.null;const i=this.previous;const r=nt(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=nt(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 at(e,t){e.column+=t;e.offset+=t;e._bufferIndex+=t}const lt={name:"autolink",tokenize:ct};function ct(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(Pe(t)){e.consume(t);return o}return c(t)}function o(e){if(e===43||e===45||e===46||Me(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||Me(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||qe(i)){return n(i)}e.consume(i);return l}function c(t){if(t===64){e.consume(t);return u}if(Ue(t)){e.consume(t);return c}return n(t)}function u(e){return Me(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||Me(t))&&i++<63){const n=t===45?h:f;e.consume(t);return n}return n(t)}}const ut={tokenize:ft,partial:true};function ft(e,t,n){return i;function i(t){return Ge(t)?Ke(e,r,"linePrefix")(t):r(t)}function r(e){return e===null||ze(e)?t(e):n(e)}}const ht={name:"blockQuote",tokenize:dt,continuation:{tokenize:pt},exit:mt};function dt(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(Ge(n)){e.enter("blockQuotePrefixWhitespace");e.consume(n);e.exit("blockQuotePrefixWhitespace");e.exit("blockQuotePrefix");return t}e.exit("blockQuotePrefix");return t(n)}}function pt(e,t,n){const i=this;return r;function r(t){if(Ge(t)){return Ke(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?undefined:4)(t)}return s(t)}function s(i){return e.attempt(ht,t,n)(i)}}function mt(e){e.exit("blockQuote")}const gt={name:"characterEscape",tokenize:bt};function bt(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(He(i)){e.enter("characterEscapeValue");e.consume(i);e.exit("characterEscapeValue");e.exit("characterEscape");return t}return n(i)}}const kt={name:"characterReference",tokenize:yt};function yt(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=Me;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=Fe;return u}e.enter("characterReferenceValue");s=7;o=Be;return u(t)}function u(a){if(a===59&&r){const r=e.exit("characterReferenceValue");if(o===Me&&!xe(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 wt={tokenize:vt,partial:true};const Et={name:"codeFenced",tokenize:Tt,concrete:true};function Tt(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 Ge(t)?Ke(e,f,"whitespace")(t):f(t)}function f(n){if(n===null||ze(n)){e.exit("codeFencedFence");return i.interrupt?t(n):e.check(wt,m,w)(n)}e.enter("codeFencedFenceInfo");e.enter("chunkString",{contentType:"string"});return h(n)}function h(t){if(t===null||ze(t)){e.exit("chunkString");e.exit("codeFencedFenceInfo");return f(t)}if(Ge(t)){e.exit("chunkString");e.exit("codeFencedFenceInfo");return Ke(e,d,"whitespace")(t)}if(t===96&&t===a){return n(t)}e.consume(t);return h}function d(t){if(t===null||ze(t)){return f(t)}e.enter("codeFencedFenceMeta");e.enter("chunkString",{contentType:"string"});return p(t)}function p(t){if(t===null||ze(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&&Ge(t)?Ke(e,k,"linePrefix",s+1)(t):k(t)}function k(t){if(t===null||ze(t)){return e.check(wt,m,w)(t)}e.enter("codeFlowValue");return y(t)}function y(t){if(t===null||ze(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 Ge(t)?Ke(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 Ge(t)?Ke(e,f,"whitespace")(t):f(t)}return n(t)}function f(i){if(i===null||ze(i)){e.exit("codeFencedFence");return t(i)}return n(i)}}}function vt(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 St={name:"codeIndented",tokenize:At};const xt={tokenize:Ct,partial:true};function At(e,t,n){const i=this;return r;function r(t){e.enter("codeIndented");return Ke(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(ze(t)){return e.attempt(xt,o,l)(t)}e.enter("codeFlowValue");return a(t)}function a(t){if(t===null||ze(t)){e.exit("codeFlowValue");return o(t)}e.consume(t);return a}function l(n){e.exit("codeIndented");return t(n)}}function Ct(e,t,n){const i=this;return r;function r(t){if(i.parser.lazy[i.now().line]){return n(t)}if(ze(t)){e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return r}return Ke(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):ze(e)?r(e):n(e)}}const Dt={name:"codeText",tokenize:Lt,resolve:_t,previous:Rt};function _t(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 Rt(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Lt(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(ze(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||ze(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 It(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,Ot(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);Ae(e,r,n-r+1,a)}}}return!c}function Ot(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]);Ae(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 Nt={tokenize:Ut,resolve:Mt};const Pt={tokenize:qt,partial:true};function Mt(e){It(e);return e}function Ut(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(ze(t)){return e.check(Pt,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 qt(e,t,n){const i=this;return r;function r(t){e.exit("chunkContent");e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return Ke(e,s,"linePrefix")}function s(r){if(r===null||ze(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 Bt(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||qe(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||ze(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||je(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||qe(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 Ft(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(ze(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||ze(t)||a++>999){e.exit("chunkString");return u(t)}e.consume(t);if(!l)l=!Ge(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 Ht(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(ze(t)){e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return Ke(e,c,"linePrefix")}e.enter("chunkString",{contentType:"string"});return u(t)}function u(t){if(t===o||t===null||ze(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 zt(e,t){let n;return i;function i(r){if(ze(r)){e.enter("lineEnding");e.consume(r);e.exit("lineEnding");n=true;return i}if(Ge(r)){return Ke(e,i,n?"linePrefix":"lineSuffix")(r)}return t(r)}}const jt={name:"definition",tokenize:Vt};const Gt={tokenize:Yt,partial:true};function Vt(e,t,n){const i=this;let r;return s;function s(t){e.enter("definition");return o(t)}function o(t){return Ft.call(i,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}function a(t){r=Oe(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 je(t)?zt(e,c)(t):c(t)}function c(t){return Bt(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function u(t){return e.attempt(Gt,f,f)(t)}function f(t){return Ge(t)?Ke(e,h,"whitespace")(t):h(t)}function h(s){if(s===null||ze(s)){e.exit("definition");i.parser.defined.push(r);return t(s)}return n(s)}}function Yt(e,t,n){return i;function i(t){return je(t)?zt(e,r)(t):n(t)}function r(t){return Ht(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function s(t){return Ge(t)?Ke(e,o,"whitespace")(t):o(t)}function o(e){return e===null||ze(e)?t(e):n(e)}}const Wt={name:"hardBreakEscape",tokenize:Xt};function Xt(e,t,n){return i;function i(t){e.enter("hardBreakEscape");e.consume(t);return r}function r(i){if(ze(i)){e.exit("hardBreakEscape");return t(i)}return n(i)}}const Kt={name:"headingAtx",tokenize:Qt,resolve:$t};function $t(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"};Ae(e,i,n-i+1,[["enter",r,t],["enter",s,t],["exit",s,t],["exit",r,t]])}return e}function Qt(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||je(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||ze(n)){e.exit("atxHeading");return t(n)}if(Ge(n)){return Ke(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||je(t)){e.exit("atxHeadingText");return a(t)}e.consume(t);return c}}const Zt=["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 Jt=["pre","script","style","textarea"];const en={name:"htmlFlow",tokenize:sn,resolveTo:rn,concrete:true};const tn={tokenize:an,partial:true};const nn={tokenize:on,partial:true};function rn(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 sn(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(Pe(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(Pe(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(Pe(t)){e.consume(t);o=String.fromCharCode(t);return g}return n(t)}function g(a){if(a===null||a===47||a===62||je(a)){const l=a===47;const c=o.toLowerCase();if(!l&&!s&&Jt.includes(c)){r=1;return i.interrupt?t(a):D(a)}if(Zt.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||Me(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(Ge(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||Pe(t)){e.consume(t);return w}if(Ge(t)){e.consume(t);return y}return A(t)}function w(t){if(t===45||t===46||t===58||t===95||Me(t)){e.consume(t);return w}return E(t)}function E(t){if(t===61){e.consume(t);return T}if(Ge(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(Ge(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||ze(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||je(t)){return E(t)}e.consume(t);return S}function x(e){if(e===47||e===62||Ge(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||ze(t)){return D(t)}if(Ge(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(ze(t)&&(r===6||r===7)){e.exit("htmlFlowData");return e.check(tn,q,_)(t)}if(t===null||ze(t)){e.exit("htmlFlowData");return _(t)}e.consume(t);return D}function _(t){return e.check(nn,R,q)(t)}function R(t){e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return L}function L(t){if(t===null||ze(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(Jt.includes(n)){e.consume(t);return U}return D(t)}if(Pe(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||ze(t)){e.exit("htmlFlowData");return q(t)}e.consume(t);return U}function q(n){e.exit("htmlFlow");return t(n)}}function on(e,t,n){const i=this;return r;function r(t){if(ze(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 an(e,t,n){return i;function i(i){e.enter("lineEnding");e.consume(i);e.exit("lineEnding");return e.attempt(ut,t,n)}}const ln={name:"htmlText",tokenize:cn};function cn(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(Pe(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(Pe(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(ze(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(ze(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(ze(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(ze(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(Pe(t)){e.consume(t);return T}return n(t)}function T(t){if(t===45||Me(t)){e.consume(t);return T}return v(t)}function v(t){if(ze(t)){o=v;return O(t)}if(Ge(t)){e.consume(t);return v}return I(t)}function S(t){if(t===45||Me(t)){e.consume(t);return S}if(t===47||t===62||je(t)){return x(t)}return n(t)}function x(t){if(t===47){e.consume(t);return I}if(t===58||t===95||Pe(t)){e.consume(t);return A}if(ze(t)){o=x;return O(t)}if(Ge(t)){e.consume(t);return x}return I(t)}function A(t){if(t===45||t===46||t===58||t===95||Me(t)){e.consume(t);return A}return C(t)}function C(t){if(t===61){e.consume(t);return D}if(ze(t)){o=C;return O(t)}if(Ge(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(ze(t)){o=D;return O(t)}if(Ge(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(ze(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||je(t)){return x(t)}e.consume(t);return R}function L(e){if(e===47||e===62||je(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 Ge(t)?Ke(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 un={name:"labelEnd",tokenize:gn,resolveTo:mn,resolveAll:pn};const fn={tokenize:bn};const hn={tokenize:kn};const dn={tokenize:yn};function pn(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 mn(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=Ce(a,e.slice(s+1,s+i+3));a=Ce(a,[["enter",u,t]]);a=Ce(a,it(t.parser.constructs.insideSpan.null,e.slice(s+i+4,o-3),t));a=Ce(a,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]);a=Ce(a,e.slice(o+1));a=Ce(a,[["exit",l,t]]);Ae(e,s,e.length,a);return e}function gn(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(Oe(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(fn,u,o?u:f)(t)}if(t===91){return e.attempt(hn,u,o?c:f)(t)}return o?u(t):f(t)}function c(t){return e.attempt(dn,u,f)(t)}function u(e){return t(e)}function f(e){s._balanced=true;return n(e)}}function bn(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 je(t)?zt(e,s)(t):s(t)}function s(t){if(t===41){return u(t)}return Bt(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return je(t)?zt(e,l)(t):u(t)}function a(e){return n(e)}function l(t){if(t===34||t===39||t===40){return Ht(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t)}return u(t)}function c(t){return je(t)?zt(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 kn(e,t,n){const i=this;return r;function r(t){return Ft.call(i,e,s,o,"reference","referenceMarker","referenceString")(t)}function s(e){return i.parser.defined.includes(Oe(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function yn(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 wn={name:"labelStartImage",tokenize:En,resolveAll:un.resolveAll};function En(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 Tn={name:"labelStartLink",tokenize:vn,resolveAll:un.resolveAll};function vn(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 Sn={name:"lineEnding",tokenize:xn};function xn(e,t){return n;function n(n){e.enter("lineEnding");e.consume(n);e.exit("lineEnding");return Ke(e,t,"linePrefix")}}const An={name:"thematicBreak",tokenize:Cn};function Cn(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||ze(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 Ge(t)?Ke(e,a,"whitespace")(t):a(t)}}const Dn={name:"list",tokenize:Ln,continuation:{tokenize:In},exit:Nn};const _n={tokenize:Pn,partial:true};const Rn={tokenize:On,partial:true};function Ln(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:Be(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(An,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(Be(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(ut,i.interrupt?n:u,e.attempt(_n,h,f))}function u(e){i.containerState.initialBlankLine=true;s++;return h(e)}function f(t){if(Ge(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 In(e,t,n){const i=this;i.containerState._closeFlow=undefined;return e.check(ut,r,s);function r(n){i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine;return Ke(e,t,"listItemIndent",i.containerState.size+1)(n)}function s(n){if(i.containerState.furtherBlankLines||!Ge(n)){i.containerState.furtherBlankLines=undefined;i.containerState.initialBlankLine=undefined;return o(n)}i.containerState.furtherBlankLines=undefined;i.containerState.initialBlankLine=undefined;return e.attempt(Rn,t,o)(n)}function o(r){i.containerState._closeFlow=true;i.interrupt=undefined;return Ke(e,e.attempt(Dn,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?undefined:4)(r)}}function On(e,t,n){const i=this;return Ke(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 Nn(e){e.exit(this.containerState.type)}function Pn(e,t,n){const i=this;return Ke(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!Ge(e)&&r&&r[1].type==="listItemPrefixWhitespace"?t(e):n(e)}}const Mn={name:"setextUnderline",tokenize:qn,resolveTo:Un};function Un(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 qn(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 Ge(t)?Ke(e,l,"lineSuffix")(t):l(t)}function l(i){if(i===null||ze(i)){e.exit("setextHeadingLine");return t(i)}return n(i)}}const Bn={tokenize:Fn};function Fn(e){const t=this;const n=e.attempt(ut,i,e.attempt(this.parser.constructs.flowInitial,r,Ke(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Nt,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 Hn={resolveAll:Vn()};const zn=Gn("string");const jn=Gn("text");function Gn(e){return{tokenize:t,resolveAll:Vn(e==="text"?Yn: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 Vn(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 Yn(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 Wn(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=Ce(o,e);g();if(o[o.length-1]!==null){return[]}S(t,0);c.events=it(s,c.events,c);return c.events}function h(e,t){return Kn(d(e),t)}function d(e){return Xn(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(ze(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){Ae(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 Xn(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 Kn(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 $n={[42]:Dn,[43]:Dn,[45]:Dn,[48]:Dn,[49]:Dn,[50]:Dn,[51]:Dn,[52]:Dn,[53]:Dn,[54]:Dn,[55]:Dn,[56]:Dn,[57]:Dn,[62]:ht};const Qn={[91]:jt};const Zn={[-2]:St,[-1]:St,[32]:St};const Jn={[35]:Kt,[42]:An,[45]:[Mn,An],[60]:en,[61]:Mn,[95]:An,[96]:Et,[126]:Et};const ei={[38]:kt,[92]:gt};const ti={[-5]:Sn,[-4]:Sn,[-3]:Sn,[33]:wn,[38]:kt,[42]:rt,[60]:[lt,ln],[91]:Tn,[92]:[Wt,gt],[93]:un,[95]:rt,[96]:Dt};const ni={null:[rt,Hn]};const ii={null:[42,95]};const ri={null:[]};const si=Object.freeze({__proto__:null,document:$n,contentInitial:Qn,flowInitial:Zn,flow:Jn,string:ei,text:ti,insideSpan:ni,attentionMarkers:ii,disable:ri});function oi(e){const t=e||{};const n=_e([si,...t.extensions||[]]);const i={defined:[],lazy:{},constructs:n,content:r($e),document:r(Ze),flow:r(Bn),string:r(zn),text:r(jn)};return i;function r(e){return t;function t(t){return Wn(i,e,t)}}}function ai(e){while(!It(e)){}return e}const li=/[\0\t\n\r]/g;function ci(){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){li.lastIndex=u;l=li.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 ui=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function fi(e){return e.replace(ui,hi)}function hi(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 Ie(n.slice(t?2:1),t?16:10)}return xe(n)||e}function di(e){if(!e||typeof e!=="object"){return""}if("position"in e||"type"in e){return mi(e.position)}if("start"in e||"end"in e){return mi(e)}if("line"in e||"column"in e){return pi(e)}return""}function pi(e){return gi(e&&e.line)+":"+gi(e&&e.column)}function mi(e){return pi(e&&e.start)+"-"+pi(e&&e.end)}function gi(e){return e&&typeof e==="number"?e:1}const bi={}.hasOwnProperty;function ki(e,t,n){if(typeof t!=="string"){n=t;t=undefined}return yi(n)(ai(oi(n).document().write(ci()(e,t,true))))}function yi(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()}};Ei(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(bi.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]||vi;t.call(s,undefined,e[0])}i.position={start:wi(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:wi(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:wi(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+"` ("+di({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]||vi;t.call(this,e,i[0])}}n.position.end=wi(e.end)}function u(){return ye(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=Oe(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:wi(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=wi(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=wi(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=fi(t);n.identifier=Oe(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=Oe(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=Ie(t,n==="characterReferenceMarkerNumeric"?10:16);this.data.characterReferenceType=undefined}else{const e=xe(t);i=e}const r=this.stack.pop();r.value+=i;r.position.end=wi(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 wi(e){return{line:e.line,column:e.column,offset:e.offset}}function Ei(e,t){let n=-1;while(++n<t.length){const i=t[n];if(Array.isArray(i)){Ei(e,i)}else{Ti(e,i)}}}function Ti(e,t){let n;for(n in t){if(bi.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 vi(e,t){if(e){throw new Error("Cannot close `"+e.type+"` ("+di({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+di({start:t.start,end:t.end})+") is open")}else{throw new Error("Cannot close document, a token (`"+t.type+"`, "+di({start:t.start,end:t.end})+") is still open")}}function Si(e){const t=this;t.parser=n;function n(n){return ki(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function xi(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 Ai(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};e.patch(t,n);return[e.applyData(t,n),{type:"text",value:"\n"}]}function Ci(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 Di(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};e.patch(t,n);return e.applyData(t,n)}function _i(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};e.patch(t,n);return e.applyData(t,n)}function Ri(e,t){const n=typeof e.options.clobberPrefix==="string"?e.options.clobberPrefix:"user-content-";const i=String(t.identifier).toUpperCase();const r=Xe(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 Li(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 Ii(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 Oi(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 Ni(e,t){const n=String(t.identifier).toUpperCase();const i=e.definitionById.get(n);if(!i){return Oi(e,t)}const r={src:Xe(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 Pi(e,t){const n={src:Xe(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 Mi(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 Ui(e,t){const n=String(t.identifier).toUpperCase();const i=e.definitionById.get(n);if(!i){return Oi(e,t)}const r={href:Xe(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 qi(e,t){const n={href:Xe(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 Bi(e,t,n){const i=e.all(t);const r=n?Fi(n):Hi(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 Fi(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=Hi(n[i])}}return t}function Hi(e){const t=e.spread;return t===null||t===undefined?e.children.length>1:t}function zi(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 ji(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};e.patch(t,n);return e.applyData(t,n)}function Gi(e,t){const n={type:"root",children:e.wrap(e.all(t))};e.patch(t,n);return e.applyData(t,n)}function Vi(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};e.patch(t,n);return e.applyData(t,n)}const Yi=Xi("end");const Wi=Xi("start");function Xi(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 Ki(e){const t=Wi(e);const n=Yi(e);if(t&&n){return{start:t,end:n}}}function $i(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=Wi(t.children[1]);const o=Yi(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 Qi(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 Zi(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};e.patch(t,n);return e.applyData(t,n)}const Ji=9;const er=32;function tr(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(nr(t.slice(r,i.index),r>0,true),i[0]);r=i.index+i[0].length;i=n.exec(t)}s.push(nr(t.slice(r),r>0,false));return s.join("")}function nr(e,t,n){let i=0;let r=e.length;if(t){let t=e.codePointAt(i);while(t===Ji||t===er){i++;t=e.codePointAt(i)}}if(n){let t=e.codePointAt(r-1);while(t===Ji||t===er){r--;t=e.codePointAt(r-1)}}return r>i?e.slice(i,r):""}function ir(e,t){const n={type:"text",value:tr(String(t.value))};e.patch(t,n);return e.applyData(t,n)}function rr(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};e.patch(t,n);return e.applyData(t,n)}const sr={blockquote:xi,break:Ai,code:Ci,delete:Di,emphasis:_i,footnoteReference:Ri,heading:Li,html:Ii,imageReference:Ni,image:Pi,inlineCode:Mi,linkReference:Ui,link:qi,listItem:Bi,list:zi,paragraph:ji,root:Gi,strong:Vi,table:$i,tableCell:Zi,tableRow:Qi,text:ir,thematicBreak:rr,toml:or,yaml:or,definition:or,footnoteDefinition:or};function or(){return undefined}const ar=-1;const lr=0;const cr=1;const ur=2;const fr=3;const hr=4;const dr=5;const pr=6;const mr=7;const gr=8;const br=typeof self==="object"?self:globalThis;const kr=(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 lr:case ar:return n(o,r);case cr:{const e=n([],r);for(const t of o)e.push(i(t));return e}case ur:{const e=n({},r);for(const[t,n]of o)e[i(t)]=i(n);return e}case fr:return n(new Date(o),r);case hr:{const{source:e,flags:t}=o;return n(new RegExp(e,t),r)}case dr:{const e=n(new Map,r);for(const[t,n]of o)e.set(i(t),i(n));return e}case pr:{const e=n(new Set,r);for(const t of o)e.add(i(t));return e}case mr:{const{name:e,message:t}=o;return n(new br[e](t),r)}case gr:return n(BigInt(o),r);case"BigInt":return n(Object(BigInt(o)),r)}return n(new br[s](o),r)};return i};const yr=e=>kr(new Map,e)(0);const wr="";const{toString:Er}={};const{keys:Tr}=Object;const vr=e=>{const t=typeof e;if(t!=="object"||!e)return[lr,t];const n=Er.call(e).slice(8,-1);switch(n){case"Array":return[cr,wr];case"Object":return[ur,wr];case"Date":return[fr,wr];case"RegExp":return[hr,wr];case"Map":return[dr,wr];case"Set":return[pr,wr]}if(n.includes("Array"))return[cr,n];if(n.includes("Error"))return[mr,n];return[ur,n]};const Sr=([e,t])=>e===lr&&(t==="function"||t==="symbol");const xr=(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]=vr(i);switch(o){case lr:{let t=i;switch(a){case"bigint":o=gr;t=i.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);t=null;break;case"undefined":return r([ar],i)}return r([o,t],i)}case cr:{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 ur:{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 Tr(i)){if(e||!Sr(vr(i[t])))n.push([s(t),s(i[t])])}return l}case fr:return r([o,i.toISOString()],i);case hr:{const{source:e,flags:t}=i;return r([o,{source:e,flags:t}],i)}case dr:{const t=[];const n=r([o,t],i);for(const[n,r]of i){if(e||!(Sr(vr(n))||Sr(vr(r))))t.push([s(n),s(r)])}return n}case pr:{const t=[];const n=r([o,t],i);for(const n of i){if(e||!Sr(vr(n)))t.push(s(n))}return n}}const{message:l}=i;return r([o,{name:a,message:l}],i)};return s};const Ar=(e,{json:t,lossy:n}={})=>{const i=[];return xr(!(t||n),!!t,new Map,i)(e),i};const Cr=typeof structuredClone==="function"?(e,t)=>t&&("json"in t||"lossy"in t)?yr(Ar(e,t)):structuredClone(e):(e,t)=>yr(Ar(e,t));function Dr(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 _r(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Rr(e){const t=typeof e.options.clobberPrefix==="string"?e.options.clobberPrefix:"user-content-";const n=e.options.footnoteBackContent||Dr;const i=e.options.footnoteBackLabel||_r;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=Xe(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:{...Cr(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 Lr=function(e){if(e===null||e===undefined){return Mr}if(typeof e==="function"){return Pr(e)}if(typeof e==="object"){return Array.isArray(e)?Ir(e):Or(e)}if(typeof e==="string"){return Nr(e)}throw new Error("Expected function, string, or object as test")};function Ir(e){const t=[];let n=-1;while(++n<e.length){t[n]=Lr(e[n])}return Pr(i);function i(...e){let n=-1;while(++n<t.length){if(t[n].apply(this,e))return true}return false}}function Or(e){const t=e;return Pr(n);function n(n){const i=n;let r;for(r in e){if(i[r]!==t[r])return false}return true}}function Nr(e){return Pr(t);function t(t){return t&&t.type===e}}function Pr(e){return t;function t(t,n,i){return Boolean(Ur(t)&&e.call(this,t,typeof n==="number"?n:undefined,i||undefined))}}function Mr(){return true}function Ur(e){return e!==null&&typeof e==="object"&&"type"in e}function qr(e){return e}const Br=[];const Fr=true;const Hr=false;const zr="skip";function jr(e,t,n,i){let r;if(typeof t==="function"&&typeof n!=="function"){i=n;n=t}else{r=t}const s=Lr(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 ("+qr(e.type+(t?"<"+t+">":""))+")"})}return u;function u(){let c=Br;let u;let f;let h;if(!t||s(e,r,l[l.length-1]||undefined)){c=Gr(n(e,l));if(c[0]===Hr){return c}}if("children"in e&&e.children){const t=e;if(t.children&&c[0]!==zr){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]===Hr){return u}f=typeof u[1]==="number"?u[1]:f+o}}}return c}}}function Gr(e){if(Array.isArray(e)){return e}if(typeof e==="number"){return[Fr,e]}return e===null||e===undefined?Br:[e]}function Vr(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}jr(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 Yr={}.hasOwnProperty;const Wr={};function Xr(e,t){const n=t||Wr;const i=new Map;const r=new Map;const s=new Map;const o={...sr,...n.handlers};const a={all:c,applyData:$r,definitionById:i,footnoteById:r,footnoteCounts:s,footnoteOrder:[],handlers:o,one:l,options:n,patch:Kr,wrap:Zr};Vr(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(Yr.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=Cr(n);i.children=a.all(e);return i}return Cr(e)}const r=a.options.unknownHandler||Qr;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=Jr(r.value)}if(!Array.isArray(r)&&r.type==="element"){const e=r.children[0];if(e&&e.type==="text"){e.value=Jr(e.value)}}}if(Array.isArray(r)){t.push(...r)}else{t.push(r)}}}}return t}}function Kr(e,t){if(e.position)t.position=Ki(e)}function $r(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,Cr(r))}if("children"in n&&n.children&&i!==null&&i!==undefined){n.children=i}}return n}function Qr(e,t){const n=t.data||{};const i="value"in t&&!(Yr.call(n,"hProperties")||Yr.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 Zr(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 Jr(e){let t=0;let n=e.charCodeAt(t);while(n===9||n===32){t++;n=e.charCodeAt(t)}return e.slice(t)}function es(e,t){const n=Xr(e,t);const i=n.one(e,undefined);const r=Rr(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 ts(e,t){if(e&&"run"in e){return async function(n,i){const r=es(n,{file:i,...t});await e.run(r,i)}}return function(n,i){return es(n,{file:i,...e||t})}}function ns(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 is(e){if(typeof e!=="string"){throw new TypeError("Expected a string")}return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function rs(e,t,n){const i=n||{};const r=Lr(i.ignore||[]);const s=ss(t);let o=-1;while(++o<s.length){jr(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 ss(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([os(e[0]),as(e[1])])}return t}function os(e){return typeof e==="string"?new RegExp(is(e),"g"):e}function as(e){return typeof e==="function"?e:function(){return e}}const ls="phrasing";const cs=["autolink","link","image","label"];function us(){return{transforms:[ks],enter:{literalAutolink:hs,literalAutolinkEmail:ds,literalAutolinkHttp:ds,literalAutolinkWww:ds},exit:{literalAutolink:bs,literalAutolinkEmail:gs,literalAutolinkHttp:ps,literalAutolinkWww:ms}}}function fs(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ls,notInConstruct:cs},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ls,notInConstruct:cs},{character:":",before:"[ps]",after:"\\/",inConstruct:ls,notInConstruct:cs}]}}function hs(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function ds(e){this.config.enter.autolinkProtocol.call(this,e)}function ps(e){this.config.exit.autolinkProtocol.call(this,e)}function ms(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function gs(e){this.config.exit.autolinkEmail.call(this,e)}function bs(e){this.exit(e)}function ks(e){rs(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ys],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,ws]],{ignore:["link","linkReference"]})}function ys(e,t,n,i,r){let s="";if(!vs(r)){return false}if(/^w/i.test(t)){n=t+n;t="";s="http://"}if(!Es(n)){return false}const o=Ts(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 ws(e,t,n,i){if(!vs(i,true)||/[-\d_]$/.test(n)){return false}return{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Es(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 Ts(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=ns(e,"(");let s=ns(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 vs(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Ye(n)||Ve(n))&&(!t||n!==47)}Ns.peek=Ps;function Ss(){return{enter:{gfmFootnoteDefinition:As,gfmFootnoteDefinitionLabelString:Cs,gfmFootnoteCall:Rs,gfmFootnoteCallString:Ls},exit:{gfmFootnoteDefinition:_s,gfmFootnoteDefinitionLabelString:Ds,gfmFootnoteCall:Os,gfmFootnoteCallString:Is}}}function xs(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:Ms,footnoteReference:Ns}}}function As(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Cs(){this.buffer()}function Ds(e){const t=this.resume();const n=this.stack[this.stack.length-1];n.label=t;n.identifier=Oe(this.sliceSerialize(e)).toLowerCase()}function _s(e){this.exit(e)}function Rs(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Ls(){this.buffer()}function Is(e){const t=this.resume();const n=this.stack[this.stack.length-1];n.label=t;n.identifier=Oe(this.sliceSerialize(e)).toLowerCase()}function Os(e){this.exit(e)}function Ns(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 Ps(){return"["}function Ms(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()),Us));o();return s}function Us(e,t,n){if(t===0){return e}return(n?"":" ")+e}const qs=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];js.peek=Gs;function Bs(){return{canContainEols:["delete"],enter:{strikethrough:Hs},exit:{strikethrough:zs}}}function Fs(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:qs}],handlers:{delete:js}}}function Hs(e){this.enter({type:"delete",children:[]},e)}function zs(e){this.exit(e)}function js(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 Gs(){return"~"}function Vs(e,t={}){const n=(t.align||[]).concat();const i=t.stringLength||Ws;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=Ys(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]=Xs(n[u])}}else{const e=Xs(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 Ys(e){return e===null||e===undefined?"":String(e)}function Ws(e){return e.length}function Xs(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 Ks(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()),$s);r();return o}function $s(e,t,n){return">"+(n?"":" ")+e}function Qs(e,t){return Zs(e,t.inConstruct,true)&&!Zs(e,t.notInConstruct,false)}function Zs(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 Js(e,t,n,i){let r=-1;while(++r<n.unsafe.length){if(n.unsafe[r].character==="\n"&&Qs(n.stack,n.unsafe[r])){return/[ \t]/.test(i.before)?"":" "}}return"\\\n"}function eo(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 to(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 no(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 io(e,t,n,i){const r=no(n);const s=e.value||"";const o=r==="`"?"GraveAccent":"Tilde";if(to(e,n)){const e=n.enter("codeIndented");const t=n.indentLines(s,ro);e();return t}const a=n.createTracker(i);const l=r.repeat(Math.max(eo(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 ro(e,t,n){return(n?"":" ")+e}function so(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 oo(e,t,n,i){const r=so(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 ao(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_"){throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`")}return t}lo.peek=co;function lo(e,t,n,i){const r=ao(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 co(e,t,n){return n.options.emphasis||"*"}const uo={};function fo(e,t){const n=t||uo;const i=typeof n.includeImageAlt==="boolean"?n.includeImageAlt:true;const r=typeof n.includeHtml==="boolean"?n.includeHtml:true;return ho(e,i,r)}function ho(e,t,n){if(mo(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 po(e.children,t,n)}}if(Array.isArray(e)){return po(e,t,n)}return""}function po(e,t,n){const i=[];let r=-1;while(++r<e.length){i[r]=ho(e[r],t,n)}return i.join("")}function mo(e){return Boolean(e&&typeof e==="object")}function go(e,t){let n=false;Vr(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||e.type==="break"){n=true;return Hr}}));return Boolean((!e.depth||e.depth<3)&&fo(e)&&(t.options.setext||n))}function bo(e,t,n,i){const r=Math.max(Math.min(6,e.depth||1),1);const s=n.createTracker(i);if(go(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}ko.peek=yo;function ko(e){return e.value||""}function yo(){return"<"}wo.peek=Eo;function wo(e,t,n,i){const r=so(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 Eo(){return"!"}To.peek=vo;function To(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 vo(){return"!"}So.peek=xo;function So(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 xo(){return"`"}function Ao(e,t){const n=fo(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))}Co.peek=Do;function Co(e,t,n,i){const r=so(n);const s=r==='"'?"Quote":"Apostrophe";const o=n.createTracker(i);let a;let l;if(Ao(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 Do(e,t,n){return Ao(e,n)?"<":"["}_o.peek=Ro;function _o(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 Ro(){return"["}function Lo(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 Io(e){const t=Lo(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 Oo(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 No(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 Po(e,t,n,i){const r=n.enter("list");const s=n.bulletCurrent;let o=e.ordered?Oo(n):Lo(n);const a=e.ordered?o==="."?")":".":Io(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(No(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 Mo(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 Uo(e,t,n,i){const r=Mo(n);let s=n.bulletCurrent||Lo(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 qo(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 Bo=Lr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);function Fo(e,t,n,i){const r=e.children.some((function(e){return Bo(e)}));const s=r?n.containerPhrasing:n.containerFlow;return s.call(n,e,i)}function Ho(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_"){throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`")}return t}zo.peek=jo;function zo(e,t,n,i){const r=Ho(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 jo(e,t,n){return n.options.strong||"*"}function Go(e,t,n,i){return n.safe(e.value,i)}function Vo(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 Yo(e,t,n){const i=(No(n)+(n.options.ruleSpaces?" ":"")).repeat(Vo(n));return n.options.ruleSpaces?i.slice(0,-1):i}const Wo={blockquote:Ks,break:Js,code:io,definition:oo,emphasis:lo,hardBreak:Js,heading:bo,html:ko,image:wo,imageReference:To,inlineCode:So,link:Co,linkReference:_o,list:Po,listItem:Uo,paragraph:qo,root:Fo,strong:zo,text:Go,thematicBreak:Yo};function Xo(){return{enter:{table:Ko,tableData:Jo,tableHeader:Jo,tableRow:Qo},exit:{codeText:ea,table:$o,tableData:Zo,tableHeader:Zo,tableRow:Zo}}}function Ko(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 $o(e){this.exit(e);this.data.inTable=undefined}function Qo(e){this.enter({type:"tableRow",children:[]},e)}function Zo(e){this.exit(e)}function Jo(e){this.enter({type:"tableCell",children:[]},e)}function ea(e){let t=this.resume();if(this.data.inTable){t=t.replace(/\\([\\|])/g,ta)}const n=this.stack[this.stack.length-1];n.value=t;this.exit(e)}function ta(e,t){return t==="|"?t:e}function na(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 Vs(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=Wo.inlineCode(e,t,n);if(n.stack.includes("tableCell")){i=i.replace(/\|/g,"\\$&")}return i}}function ia(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()),ra);r();return o}function ra(e,t,n){return">"+(n?"":" ")+e}function sa(e,t){return oa(e,t.inConstruct,true)&&!oa(e,t.notInConstruct,false)}function oa(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 aa(e,t,n,i){let r=-1;while(++r<n.unsafe.length){if(n.unsafe[r].character==="\n"&&sa(n.stack,n.unsafe[r])){return/[ \t]/.test(i.before)?"":" "}}return"\\\n"}function la(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 ca(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 ua(e,t,n,i){const r=ca(n);const s=e.value||"";const o=r==="`"?"GraveAccent":"Tilde";if(la(e,n)){const e=n.enter("codeIndented");const t=n.indentLines(s,fa);e();return t}const a=n.createTracker(i);const l=r.repeat(Math.max(eo(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 fa(e,t,n){return(n?"":" ")+e}function ha(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 da(e,t,n,i){const r=ha(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 pa(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_"){throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`")}return t}ma.peek=ga;function ma(e,t,n,i){const r=pa(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 ga(e,t,n){return n.options.emphasis||"*"}const ba={};function ka(e,t){const n=t||ba;const i=typeof n.includeImageAlt==="boolean"?n.includeImageAlt:true;const r=typeof n.includeHtml==="boolean"?n.includeHtml:true;return ya(e,i,r)}function ya(e,t,n){if(Ea(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 wa(e.children,t,n)}}if(Array.isArray(e)){return wa(e,t,n)}return""}function wa(e,t,n){const i=[];let r=-1;while(++r<e.length){i[r]=ya(e[r],t,n)}return i.join("")}function Ea(e){return Boolean(e&&typeof e==="object")}function Ta(e,t){let n=false;Vr(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||e.type==="break"){n=true;return Hr}}));return Boolean((!e.depth||e.depth<3)&&ka(e)&&(t.options.setext||n))}function va(e,t,n,i){const r=Math.max(Math.min(6,e.depth||1),1);const s=n.createTracker(i);if(Ta(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}Sa.peek=xa;function Sa(e){return e.value||""}function xa(){return"<"}Aa.peek=Ca;function Aa(e,t,n,i){const r=ha(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 Ca(){return"!"}Da.peek=_a;function Da(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 _a(){return"!"}Ra.peek=La;function Ra(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 La(){return"`"}function Ia(e,t){const n=ka(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))}Oa.peek=Na;function Oa(e,t,n,i){const r=ha(n);const s=r==='"'?"Quote":"Apostrophe";const o=n.createTracker(i);let a;let l;if(Ia(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 Na(e,t,n){return Ia(e,n)?"<":"["}Pa.peek=Ma;function Pa(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 Ma(){return"["}function Ua(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 qa(e){const t=Ua(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 Ba(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 Fa(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 Ha(e,t,n,i){const r=n.enter("list");const s=n.bulletCurrent;let o=e.ordered?Ba(n):Ua(n);const a=e.ordered?o==="."?")":".":qa(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(Fa(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 za(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 ja(e,t,n,i){const r=za(n);let s=n.bulletCurrent||Ua(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 Ga(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 Va(e,t,n,i){const r=e.children.some((function(e){return Bo(e)}));const s=r?n.containerPhrasing:n.containerFlow;return s.call(n,e,i)}function Ya(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_"){throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`")}return t}Wa.peek=Xa;function Wa(e,t,n,i){const r=Ya(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 Xa(e,t,n){return n.options.strong||"*"}function Ka(e,t,n,i){return n.safe(e.value,i)}function $a(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 Qa(e,t,n){const i=(Fa(n)+(n.options.ruleSpaces?" ":"")).repeat($a(n));return n.options.ruleSpaces?i.slice(0,-1):i}const Za={blockquote:ia,break:aa,code:ua,definition:da,emphasis:ma,hardBreak:aa,heading:va,html:Sa,image:Aa,imageReference:Da,inlineCode:Ra,link:Oa,linkReference:Pa,list:Ha,listItem:ja,paragraph:Ga,root:Va,strong:Wa,text:Ka,thematicBreak:Qa};function Ja(){return{exit:{taskListCheckValueChecked:tl,taskListCheckValueUnchecked:tl,paragraph:nl}}}function el(){return{unsafe:[{atBreak:true,character:"-",after:"[:|-]"}],handlers:{listItem:il}}}function tl(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function nl(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 il(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=Za.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 rl(){return[us(),Ss(),Bs(),Xo(),Ja()]}function sl(e){return{extensions:[fs(),xs(),Fs(),na(e),el()]}}const ol={tokenize:wl,partial:true};const al={tokenize:El,partial:true};const ll={tokenize:Tl,partial:true};const cl={tokenize:vl,partial:true};const ul={tokenize:Sl,partial:true};const fl={tokenize:kl,previous:xl};const hl={tokenize:yl,previous:Al};const dl={tokenize:bl,previous:Cl};const pl={};function ml(){return{text:pl}}let gl=48;while(gl<123){pl[gl]=dl;gl++;if(gl===58)gl=65;else if(gl===91)gl=97}pl[43]=dl;pl[45]=dl;pl[46]=dl;pl[95]=dl;pl[72]=[dl,hl];pl[104]=[dl,hl];pl[87]=[dl,fl];pl[119]=[dl,fl];function bl(e,t,n){const i=this;let r;let s;return o;function o(t){if(!Dl(t)||!Cl.call(i,i.previous)||_l(i.events)){return n(t)}e.enter("literalAutolink");e.enter("literalAutolinkEmail");return a(t)}function a(t){if(Dl(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(ul,u,c)(t)}if(t===45||t===95||Me(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&&Pe(i.previous)){e.exit("literalAutolinkEmail");e.exit("literalAutolink");return t(o)}return n(o)}}function kl(e,t,n){const i=this;return r;function r(t){if(t!==87&&t!==119||!xl.call(i,i.previous)||_l(i.events)){return n(t)}e.enter("literalAutolink");e.enter("literalAutolinkWww");return e.check(ol,e.attempt(al,e.attempt(ll,s),n),n)(t)}function s(n){e.exit("literalAutolinkWww");e.exit("literalAutolink");return t(n)}}function yl(e,t,n){const i=this;let r="";let s=false;return o;function o(t){if((t===72||t===104)&&Al.call(i,i.previous)&&!_l(i.events)){e.enter("literalAutolink");e.enter("literalAutolinkHttp");r+=String.fromCodePoint(t);e.consume(t);return a}return n(t)}function a(t){if(Pe(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||qe(t)||je(t)||Ye(t)||Ve(t)?n(t):e.attempt(al,e.attempt(ll,u),n)(t)}function u(n){e.exit("literalAutolinkHttp");e.exit("literalAutolink");return t(n)}}function wl(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 El(e,t,n){let i;let r;let s;return o;function o(t){if(t===46||t===95){return e.check(cl,l,a)(t)}if(t===null||je(t)||Ye(t)||t!==45&&Ve(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 Tl(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(cl,t,s)(o)}if(o===null||je(o)||Ye(o)){return t(o)}e.consume(o);return r}function s(t){if(t===41){i++}e.consume(t);return r}}function vl(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||je(o)||Ye(o)){return t(o)}return n(o)}function r(e){if(e===null||e===40||e===91||je(e)||Ye(e)){return t(e)}return i(e)}function s(e){return Pe(e)?o(e):n(e)}function o(t){if(t===59){e.consume(t);return i}if(Pe(t)){e.consume(t);return o}return n(t)}}function Sl(e,t,n){return i;function i(t){e.consume(t);return r}function r(e){return Me(e)?n(e):t(e)}}function xl(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||je(e)}function Al(e){return!Pe(e)}function Cl(e){return!(e===47||Dl(e))}function Dl(e){return e===43||e===45||e===46||e===95||Me(e)}function _l(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 Rl={tokenize:ql,partial:true};function Ll(){return{document:{[91]:{tokenize:Pl,continuation:{tokenize:Ml},exit:Ul}},text:{[91]:{tokenize:Nl},[93]:{add:"after",tokenize:Il,resolveTo:Ol}}}}function Il(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=Oe(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 Ol(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 Nl(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||je(a)){return n(a)}if(a===93){e.exit("chunkString");const s=e.exit("gfmFootnoteCallString");if(!r.includes(Oe(i.sliceSerialize(s)))){return n(a)}e.enter("gfmFootnoteCallLabelMarker");e.consume(a);e.exit("gfmFootnoteCallLabelMarker");e.exit("gfmFootnoteCall");return t}if(!je(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 Pl(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||je(t)){return n(t)}if(t===93){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");s=Oe(i.sliceSerialize(n));e.enter("gfmFootnoteDefinitionLabelMarker");e.consume(t);e.exit("gfmFootnoteDefinitionLabelMarker");e.exit("gfmFootnoteDefinitionLabel");return h}if(!je(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 Ke(e,d,"gfmFootnoteDefinitionWhitespace")}return n(t)}function d(e){return t(e)}}function Ml(e,t,n){return e.check(ut,t,e.attempt(Rl,t,n))}function Ul(e){e.exit("gfmFootnoteDefinition")}function ql(e,t,n){const i=this;return Ke(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 Bl(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){Ae(o,o.length,0,it(a,e.slice(i+1,n),t))}Ae(o,o.length,0,[["exit",s,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",r,t]]);Ae(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=nt(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=nt(s);c._open=!u||u===2&&Boolean(a);c._close=!a||a===2&&Boolean(u);return t(s)}}}class Fl{constructor(){this.map=[]}add(e,t,n){Hl(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 Hl(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 zl(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 jl(){return{flow:{null:{tokenize:Gl,resolveAll:Vl}}}}function Gl(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(ze(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(Ge(t)){return Ke(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||je(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(Ge(t)){return Ke(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(Ge(t)){return Ke(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||ze(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(Ge(t)){return Ke(e,w,"whitespace")(t)}return w(t)}function w(n){if(n===124){return p(n)}if(n===null||ze(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||ze(n)){e.exit("tableRow");return t(n)}if(Ge(n)){return Ke(e,v,"whitespace")(n)}e.enter("data");return S(n)}function S(t){if(t===null||t===124||je(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 Vl(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 Fl;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){Wl(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=Yl(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=Yl(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=Yl(h,t,s,r,n,f)}else if(o[1]!==0){f=Yl(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){Wl(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=zl(t.events,n)}}return e}function Yl(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({},Xl(t.events,n[0]));e.add(n[0],0,[["exit",s,t]])}const l=Xl(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=Xl(t.events,n[2]);const s=Xl(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({},Xl(t.events,r));e.add(r,0,[["exit",s,t]]);s=undefined}return s}function Wl(e,t,n,i,r){const s=[];const o=Xl(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 Xl(e,t){const n=e[t];const i=n[0]==="enter"?"start":"end";return n[1][i]}const Kl={tokenize:Ql};function $l(){return{text:{[91]:Kl}}}function Ql(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(je(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(ze(i)){return t(i)}if(Ge(i)){return e.check({tokenize:Zl},t,n)(i)}return n(i)}}function Zl(e,t,n){return Ke(e,i,"whitespace");function i(e){return e===null?n(e):t(e)}}function Jl(e){return _e([ml(),Ll(),Bl(e),jl(),$l()])}const ec={};function tc(e){const t=this;const n=e||ec;const i=t.data();const r=i.micromarkExtensions||(i.micromarkExtensions=[]);const s=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]);const o=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);r.push(Jl(n));s.push(rl());o.push(sl(n))}class nc{constructor(e,t,n){this.property=e;this.normal=t;if(n){this.space=n}}}nc.prototype.property={};nc.prototype.normal={};nc.prototype.space=null;function ic(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 nc(n,i,t)}function rc(e){return e.toLowerCase()}class sc{constructor(e,t){this.property=e;this.attribute=t}}sc.prototype.space=null;sc.prototype.boolean=false;sc.prototype.booleanish=false;sc.prototype.overloadedBoolean=false;sc.prototype.number=false;sc.prototype.commaSeparated=false;sc.prototype.spaceSeparated=false;sc.prototype.commaOrSpaceSeparated=false;sc.prototype.mustUseProperty=false;sc.prototype.defined=false;let oc=0;const ac=pc();const lc=pc();const cc=pc();const uc=pc();const fc=pc();const hc=pc();const dc=pc();function pc(){return 2**++oc}const mc=Object.freeze({__proto__:null,boolean:ac,booleanish:lc,overloadedBoolean:cc,number:uc,spaceSeparated:fc,commaSeparated:hc,commaOrSpaceSeparated:dc});const gc=Object.keys(mc);class bc extends sc{constructor(e,t,n,i){let r=-1;super(e,t);kc(this,"space",i);if(typeof n==="number"){while(++r<gc.length){const e=gc[r];kc(this,gc[r],(n&mc[e])===mc[e])}}}}bc.prototype.defined=true;function kc(e,t,n){if(n){e[t]=n}}const yc={}.hasOwnProperty;function wc(e){const t={};const n={};let i;for(i in e.properties){if(yc.call(e.properties,i)){const r=e.properties[i];const s=new bc(i,e.transform(e.attributes||{},i),r,e.space);if(e.mustUseProperty&&e.mustUseProperty.includes(i)){s.mustUseProperty=true}t[i]=s;n[rc(i)]=i;n[rc(s.attribute)]=i}}return new nc(t,n,e.space)}const Ec=wc({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 Tc=wc({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function vc(e,t){return t in e?e[t]:t}function Sc(e,t){return vc(e,t.toLowerCase())}const xc=wc({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Sc,properties:{xmlns:null,xmlnsXLink:null}});const Ac=wc({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:lc,ariaAutoComplete:null,ariaBusy:lc,ariaChecked:lc,ariaColCount:uc,ariaColIndex:uc,ariaColSpan:uc,ariaControls:fc,ariaCurrent:null,ariaDescribedBy:fc,ariaDetails:null,ariaDisabled:lc,ariaDropEffect:fc,ariaErrorMessage:null,ariaExpanded:lc,ariaFlowTo:fc,ariaGrabbed:lc,ariaHasPopup:null,ariaHidden:lc,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:fc,ariaLevel:uc,ariaLive:null,ariaModal:lc,ariaMultiLine:lc,ariaMultiSelectable:lc,ariaOrientation:null,ariaOwns:fc,ariaPlaceholder:null,ariaPosInSet:uc,ariaPressed:lc,ariaReadOnly:lc,ariaRelevant:null,ariaRequired:lc,ariaRoleDescription:fc,ariaRowCount:uc,ariaRowIndex:uc,ariaRowSpan:uc,ariaSelected:lc,ariaSetSize:uc,ariaSort:null,ariaValueMax:uc,ariaValueMin:uc,ariaValueNow:uc,ariaValueText:null,role:null}});const Cc=wc({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Sc,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:hc,acceptCharset:fc,accessKey:fc,action:null,allow:null,allowFullScreen:ac,allowPaymentRequest:ac,allowUserMedia:ac,alt:null,as:null,async:ac,autoCapitalize:null,autoComplete:fc,autoFocus:ac,autoPlay:ac,blocking:fc,capture:null,charSet:null,checked:ac,cite:null,className:fc,cols:uc,colSpan:null,content:null,contentEditable:lc,controls:ac,controlsList:fc,coords:uc|hc,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ac,defer:ac,dir:null,dirName:null,disabled:ac,download:cc,draggable:lc,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ac,formTarget:null,headers:fc,height:uc,hidden:ac,high:uc,href:null,hrefLang:null,htmlFor:fc,httpEquiv:fc,id:null,imageSizes:null,imageSrcSet:null,inert:ac,inputMode:null,integrity:null,is:null,isMap:ac,itemId:null,itemProp:fc,itemRef:fc,itemScope:ac,itemType:fc,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ac,low:uc,manifest:null,max:null,maxLength:uc,media:null,method:null,min:null,minLength:uc,multiple:ac,muted:ac,name:null,nonce:null,noModule:ac,noValidate:ac,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:ac,optimum:uc,pattern:null,ping:fc,placeholder:null,playsInline:ac,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ac,referrerPolicy:null,rel:fc,required:ac,reversed:ac,rows:uc,rowSpan:uc,sandbox:fc,scope:null,scoped:ac,seamless:ac,selected:ac,shadowRootClonable:ac,shadowRootDelegatesFocus:ac,shadowRootMode:null,shape:null,size:uc,sizes:null,slot:null,span:uc,spellCheck:lc,src:null,srcDoc:null,srcLang:null,srcSet:null,start:uc,step:null,style:null,tabIndex:uc,target:null,title:null,translate:null,type:null,typeMustMatch:ac,useMap:null,value:lc,width:uc,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:fc,axis:null,background:null,bgColor:null,border:uc,borderColor:null,bottomMargin:uc,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ac,declare:ac,event:null,face:null,frame:null,frameBorder:null,hSpace:uc,leftMargin:uc,link:null,longDesc:null,lowSrc:null,marginHeight:uc,marginWidth:uc,noResize:ac,noHref:ac,noShade:ac,noWrap:ac,object:null,profile:null,prompt:null,rev:null,rightMargin:uc,rules:null,scheme:null,scrolling:lc,standby:null,summary:null,text:null,topMargin:uc,valueType:null,version:null,vAlign:null,vLink:null,vSpace:uc,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ac,disableRemotePlayback:ac,prefix:null,property:null,results:uc,security:null,unselectable:null}});const Dc=wc({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:vc,properties:{about:dc,accentHeight:uc,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:uc,amplitude:uc,arabicForm:null,ascent:uc,attributeName:null,attributeType:null,azimuth:uc,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:uc,by:null,calcMode:null,capHeight:uc,className:fc,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:uc,diffuseConstant:uc,direction:null,display:null,dur:null,divisor:uc,dominantBaseline:null,download:ac,dx:null,dy:null,edgeMode:null,editable:null,elevation:uc,enableBackground:null,end:null,event:null,exponent:uc,externalResourcesRequired:null,fill:null,fillOpacity:uc,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:hc,g2:hc,glyphName:hc,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:uc,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:uc,horizOriginX:uc,horizOriginY:uc,id:null,ideographic:uc,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:uc,k:uc,k1:uc,k2:uc,k3:uc,k4:uc,kernelMatrix:dc,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:uc,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:uc,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:uc,overlineThickness:uc,paintOrder:null,panose1:null,path:null,pathLength:uc,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:fc,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:uc,pointsAtY:uc,pointsAtZ:uc,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:dc,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:dc,rev:dc,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:dc,requiredFeatures:dc,requiredFonts:dc,requiredFormats:dc,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:uc,specularExponent:uc,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:uc,strikethroughThickness:uc,string:null,stroke:null,strokeDashArray:dc,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:uc,strokeOpacity:uc,strokeWidth:null,style:null,surfaceScale:uc,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:dc,tabIndex:uc,tableValues:null,target:null,targetX:uc,targetY:uc,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:dc,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:uc,underlineThickness:uc,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:uc,values:null,vAlphabetic:uc,vMathematical:uc,vectorEffect:null,vHanging:uc,vIdeographic:uc,version:null,vertAdvY:uc,vertOriginX:uc,vertOriginY:uc,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:uc,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}});const _c=/^data[-\w.:]+$/i;const Rc=/-[a-z]/g;const Lc=/[A-Z]/g;function Ic(e,t){const n=rc(t);let i=t;let r=sc;if(n in e.normal){return e.property[e.normal[n]]}if(n.length>4&&n.slice(0,4)==="data"&&_c.test(t)){if(t.charAt(4)==="-"){const e=t.slice(5).replace(Rc,Nc);i="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Rc.test(e)){let n=e.replace(Lc,Oc);if(n.charAt(0)!=="-"){n="-"+n}t="data"+n}}r=bc}return new r(i,t)}function Oc(e){return"-"+e.toLowerCase()}function Nc(e){return e.charAt(1).toUpperCase()}const Pc=ic([Tc,Ec,xc,Ac,Cc],"html");const Mc=ic([Tc,Ec,xc,Ac,Dc],"svg");function Uc(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 qc=/[#.]/g;function Bc(e,t){const n=e||"";const i={};let r=0;let s;let o;while(r<n.length){qc.lastIndex=r;const e=qc.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 Fc(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}const Hc={}.hasOwnProperty;function zc(e,t,n){const i=n&&Xc(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=Bc(n,t);a.tagName=a.tagName.toLowerCase();if(i&&Hc.call(i,a.tagName)){a.tagName=i[a.tagName]}if(jc(r)){s.unshift(r)}else{let t;for(t in r){if(Hc.call(r,t)){Gc(e,a.properties,t,r[t])}}}}while(++o<s.length){Vc(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 jc(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 Gc(e,t,n,i){const r=Ic(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=Fc(i)}else if(r.commaSeparated){o=Uc(i)}else if(r.commaOrSpaceSeparated){o=Fc(Uc(i).join(" "))}else{o=Yc(r,r.property,i)}}else if(Array.isArray(i)){o=i.concat()}else{o=r.property==="style"?Wc(i):String(i)}if(Array.isArray(o)){const e=[];while(++s<o.length){const t=Yc(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 Vc(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){Vc(e,t[n])}}else if(typeof t==="object"&&"type"in t){if(t.type==="root"){Vc(e,t.children)}else{e.push(t)}}else{throw new Error("Expected node, nodes, or string, got `"+t+"`")}}function Yc(e,t,n){if(typeof n==="string"){if(e.number&&n&&!Number.isNaN(Number(n))){return Number(n)}if((e.boolean||e.overloadedBoolean)&&(n===""||rc(n)===rc(t))){return true}}return n}function Wc(e){const t=[];let n;for(n in e){if(Hc.call(e,n)){t.push([n,e[n]].join(": "))}}return t.join("; ")}function Xc(e){const t={};let n=-1;while(++n<e.length){t[e[n].toLowerCase()]=e[n]}return t}const Kc=["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 $c=zc(Pc,"div");const Qc=zc(Mc,"g",Kc);function Zc(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=Jc(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=Jc(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 Jc(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 eu={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 tu={}.hasOwnProperty;const nu=Object.prototype;function iu(e,t){const n=t||{};return ru({file:n.file||undefined,location:false,schema:n.space==="svg"?Mc:Pc,verbose:n.verbose||false},e)}function ru(e,t){let n;switch(t.nodeName){case"#comment":{const i=t;n={type:"comment",value:i.data};au(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:su(e,t.childNodes),data:{quirksMode:r}};if(e.file&&e.location){const t=String(e.file);const i=Zc(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"};au(e,i,n);return n}case"#text":{const i=t;n={type:"text",value:i.value};au(e,i,n);return n}default:{const i=t;n=ou(e,i);return n}}}function su(e,t){let n=-1;const i=[];while(++n<t.length){const r=ru(e,t[n]);i.push(r)}return i}function ou(e,t){const n=e.schema;e.schema=t.namespaceURI===eu.svg?Mc:Pc;let i=-1;const r={};while(++i<t.attrs.length){const e=t.attrs[i];const n=(e.prefix?e.prefix+":":"")+e.name;if(!tu.call(nu,n)){r[n]=e.value}}const s=e.schema.space==="svg"?Qc:$c;const o=s(t.tagName,r,su(e,t.childNodes));au(e,t,o);if(o.tagName==="template"){const n=t;const i=n.sourceCodeLocation;const r=i&&i.startTag&&cu(i.startTag);const s=i&&i.endTag&&cu(i.endTag);const a=ru(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 au(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const i=lu(e,n,t.sourceCodeLocation);if(i){e.location=true;n.position=i}}}function lu(e,t,n){const i=cu(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(tu.call(n.attrs,r)){i[Ic(e.schema,r).property]=cu(n.attrs[r])}}}const s=cu(n.startTag);const o=n.endTag?cu(n.endTag):undefined;const a={opening:s};if(o)a.closing=o;a.properties=i;t.data={position:a}}}return i}function cu(e){const t=uu({line:e.startLine,column:e.startCol,offset:e.startOffset});const n=uu({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:undefined}function uu(e){return e.line&&e.column?e:undefined}const fu=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 hu="�";var du;(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"})(du||(du={}));const pu={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function mu(e){return e>=55296&&e<=57343}function gu(e){return e>=56320&&e<=57343}function bu(e,t){return(e-55296)*1024+9216+t}function ku(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function yu(e){return e>=64976&&e<=65007||fu.has(e)}var wu;(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"})(wu||(wu={}));const Eu=1<<16;class Tu{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=Eu;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(gu(t)){this.pos++;this._addGap();return bu(e,t)}}else if(!this.lastChunkWritten){this.endOfChunkHit=true;return du.EOF}this._err(wu.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 du.EOF}const n=this.html.charCodeAt(t);return n===du.CARRIAGE_RETURN?du.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 du.EOF}let e=this.html.charCodeAt(this.pos);if(e===du.CARRIAGE_RETURN){this.isEol=true;this.skipNextNewLine=true;return du.LINE_FEED}if(e===du.LINE_FEED){this.isEol=true;if(this.skipNextNewLine){this.line--;this.skipNextNewLine=false;this._addGap();return this.advance()}}this.skipNextNewLine=false;if(mu(e)){e=this._processSurrogate(e)}const t=this.handler.onParseError===null||e>31&&e<127||e===du.LINE_FEED||e===du.CARRIAGE_RETURN||e>159&&e<64976;if(!t){this._checkForProblematicCharacters(e)}return e}_checkForProblematicCharacters(e){if(ku(e)){this._err(wu.controlCharacterInInputStream)}else if(yu(e)){this._err(wu.noncharacterInInputStream)}}retreat(e){this.pos-=e;while(this.pos<this.lastGapPos){this.lastGapPos=this.gapStack.pop();this.pos--}this.isEol=false}}var vu;(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"})(vu||(vu={}));function Su(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 xu;(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/"})(xu||(xu={}));var Au;(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"})(Au||(Au={}));var Cu;(function(e){e["NO_QUIRKS"]="no-quirks";e["QUIRKS"]="quirks";e["LIMITED_QUIRKS"]="limited-quirks"})(Cu||(Cu={}));var Du;(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"})(Du||(Du={}));var _u;(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"})(_u||(_u={}));const Ru=new Map([[Du.A,_u.A],[Du.ADDRESS,_u.ADDRESS],[Du.ANNOTATION_XML,_u.ANNOTATION_XML],[Du.APPLET,_u.APPLET],[Du.AREA,_u.AREA],[Du.ARTICLE,_u.ARTICLE],[Du.ASIDE,_u.ASIDE],[Du.B,_u.B],[Du.BASE,_u.BASE],[Du.BASEFONT,_u.BASEFONT],[Du.BGSOUND,_u.BGSOUND],[Du.BIG,_u.BIG],[Du.BLOCKQUOTE,_u.BLOCKQUOTE],[Du.BODY,_u.BODY],[Du.BR,_u.BR],[Du.BUTTON,_u.BUTTON],[Du.CAPTION,_u.CAPTION],[Du.CENTER,_u.CENTER],[Du.CODE,_u.CODE],[Du.COL,_u.COL],[Du.COLGROUP,_u.COLGROUP],[Du.DD,_u.DD],[Du.DESC,_u.DESC],[Du.DETAILS,_u.DETAILS],[Du.DIALOG,_u.DIALOG],[Du.DIR,_u.DIR],[Du.DIV,_u.DIV],[Du.DL,_u.DL],[Du.DT,_u.DT],[Du.EM,_u.EM],[Du.EMBED,_u.EMBED],[Du.FIELDSET,_u.FIELDSET],[Du.FIGCAPTION,_u.FIGCAPTION],[Du.FIGURE,_u.FIGURE],[Du.FONT,_u.FONT],[Du.FOOTER,_u.FOOTER],[Du.FOREIGN_OBJECT,_u.FOREIGN_OBJECT],[Du.FORM,_u.FORM],[Du.FRAME,_u.FRAME],[Du.FRAMESET,_u.FRAMESET],[Du.H1,_u.H1],[Du.H2,_u.H2],[Du.H3,_u.H3],[Du.H4,_u.H4],[Du.H5,_u.H5],[Du.H6,_u.H6],[Du.HEAD,_u.HEAD],[Du.HEADER,_u.HEADER],[Du.HGROUP,_u.HGROUP],[Du.HR,_u.HR],[Du.HTML,_u.HTML],[Du.I,_u.I],[Du.IMG,_u.IMG],[Du.IMAGE,_u.IMAGE],[Du.INPUT,_u.INPUT],[Du.IFRAME,_u.IFRAME],[Du.KEYGEN,_u.KEYGEN],[Du.LABEL,_u.LABEL],[Du.LI,_u.LI],[Du.LINK,_u.LINK],[Du.LISTING,_u.LISTING],[Du.MAIN,_u.MAIN],[Du.MALIGNMARK,_u.MALIGNMARK],[Du.MARQUEE,_u.MARQUEE],[Du.MATH,_u.MATH],[Du.MENU,_u.MENU],[Du.META,_u.META],[Du.MGLYPH,_u.MGLYPH],[Du.MI,_u.MI],[Du.MO,_u.MO],[Du.MN,_u.MN],[Du.MS,_u.MS],[Du.MTEXT,_u.MTEXT],[Du.NAV,_u.NAV],[Du.NOBR,_u.NOBR],[Du.NOFRAMES,_u.NOFRAMES],[Du.NOEMBED,_u.NOEMBED],[Du.NOSCRIPT,_u.NOSCRIPT],[Du.OBJECT,_u.OBJECT],[Du.OL,_u.OL],[Du.OPTGROUP,_u.OPTGROUP],[Du.OPTION,_u.OPTION],[Du.P,_u.P],[Du.PARAM,_u.PARAM],[Du.PLAINTEXT,_u.PLAINTEXT],[Du.PRE,_u.PRE],[Du.RB,_u.RB],[Du.RP,_u.RP],[Du.RT,_u.RT],[Du.RTC,_u.RTC],[Du.RUBY,_u.RUBY],[Du.S,_u.S],[Du.SCRIPT,_u.SCRIPT],[Du.SEARCH,_u.SEARCH],[Du.SECTION,_u.SECTION],[Du.SELECT,_u.SELECT],[Du.SOURCE,_u.SOURCE],[Du.SMALL,_u.SMALL],[Du.SPAN,_u.SPAN],[Du.STRIKE,_u.STRIKE],[Du.STRONG,_u.STRONG],[Du.STYLE,_u.STYLE],[Du.SUB,_u.SUB],[Du.SUMMARY,_u.SUMMARY],[Du.SUP,_u.SUP],[Du.TABLE,_u.TABLE],[Du.TBODY,_u.TBODY],[Du.TEMPLATE,_u.TEMPLATE],[Du.TEXTAREA,_u.TEXTAREA],[Du.TFOOT,_u.TFOOT],[Du.TD,_u.TD],[Du.TH,_u.TH],[Du.THEAD,_u.THEAD],[Du.TITLE,_u.TITLE],[Du.TR,_u.TR],[Du.TRACK,_u.TRACK],[Du.TT,_u.TT],[Du.U,_u.U],[Du.UL,_u.UL],[Du.SVG,_u.SVG],[Du.VAR,_u.VAR],[Du.WBR,_u.WBR],[Du.XMP,_u.XMP]]);function Lu(e){var t;return(t=Ru.get(e))!==null&&t!==void 0?t:_u.UNKNOWN}const Iu=_u;const Ou={[xu.HTML]:new Set([Iu.ADDRESS,Iu.APPLET,Iu.AREA,Iu.ARTICLE,Iu.ASIDE,Iu.BASE,Iu.BASEFONT,Iu.BGSOUND,Iu.BLOCKQUOTE,Iu.BODY,Iu.BR,Iu.BUTTON,Iu.CAPTION,Iu.CENTER,Iu.COL,Iu.COLGROUP,Iu.DD,Iu.DETAILS,Iu.DIR,Iu.DIV,Iu.DL,Iu.DT,Iu.EMBED,Iu.FIELDSET,Iu.FIGCAPTION,Iu.FIGURE,Iu.FOOTER,Iu.FORM,Iu.FRAME,Iu.FRAMESET,Iu.H1,Iu.H2,Iu.H3,Iu.H4,Iu.H5,Iu.H6,Iu.HEAD,Iu.HEADER,Iu.HGROUP,Iu.HR,Iu.HTML,Iu.IFRAME,Iu.IMG,Iu.INPUT,Iu.LI,Iu.LINK,Iu.LISTING,Iu.MAIN,Iu.MARQUEE,Iu.MENU,Iu.META,Iu.NAV,Iu.NOEMBED,Iu.NOFRAMES,Iu.NOSCRIPT,Iu.OBJECT,Iu.OL,Iu.P,Iu.PARAM,Iu.PLAINTEXT,Iu.PRE,Iu.SCRIPT,Iu.SECTION,Iu.SELECT,Iu.SOURCE,Iu.STYLE,Iu.SUMMARY,Iu.TABLE,Iu.TBODY,Iu.TD,Iu.TEMPLATE,Iu.TEXTAREA,Iu.TFOOT,Iu.TH,Iu.THEAD,Iu.TITLE,Iu.TR,Iu.TRACK,Iu.UL,Iu.WBR,Iu.XMP]),[xu.MATHML]:new Set([Iu.MI,Iu.MO,Iu.MN,Iu.MS,Iu.MTEXT,Iu.ANNOTATION_XML]),[xu.SVG]:new Set([Iu.TITLE,Iu.FOREIGN_OBJECT,Iu.DESC]),[xu.XLINK]:new Set,[xu.XML]:new Set,[xu.XMLNS]:new Set};const Nu=new Set([Iu.H1,Iu.H2,Iu.H3,Iu.H4,Iu.H5,Iu.H6]);var Pu;(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"})(Pu||(Pu={}));const Mu={DATA:Pu.DATA,RCDATA:Pu.RCDATA,RAWTEXT:Pu.RAWTEXT,SCRIPT_DATA:Pu.SCRIPT_DATA,PLAINTEXT:Pu.PLAINTEXT,CDATA_SECTION:Pu.CDATA_SECTION};function Uu(e){return e>=du.DIGIT_0&&e<=du.DIGIT_9}function qu(e){return e>=du.LATIN_CAPITAL_A&&e<=du.LATIN_CAPITAL_Z}function Bu(e){return e>=du.LATIN_SMALL_A&&e<=du.LATIN_SMALL_Z}function Fu(e){return Bu(e)||qu(e)}function Hu(e){return Fu(e)||Uu(e)}function zu(e){return e+32}function ju(e){return e===du.SPACE||e===du.LINE_FEED||e===du.TABULATION||e===du.FORM_FEED}function Gu(e){return ju(e)||e===du.SOLIDUS||e===du.GREATER_THAN_SIGN}function Vu(e){if(e===du.NULL){return wu.nullCharacterReference}else if(e>1114111){return wu.characterReferenceOutsideUnicodeRange}else if(mu(e)){return wu.surrogateCharacterReference}else if(yu(e)){return wu.noncharacterCharacterReference}else if(ku(e)||e===du.CARRIAGE_RETURN){return wu.controlCharacterReference}return null}class Yu{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=Pu.DATA;this.returnState=Pu.DATA;this.entityStartPos=0;this.consumedAfterSnapshot=-1;this.currentCharacterToken=null;this.currentToken=null;this.currentAttr={name:"",value:""};this.preprocessor=new Tu(t);this.currentLocation=this.getCurrentLocation(-1);this.entityDecoder=new b(i,((e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1;this._flushCodePointConsumedAsCharacterReference(e)}),t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(wu.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(wu.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{const t=Vu(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:vu.START_TAG,tagName:"",tagID:_u.UNKNOWN,selfClosing:false,ackSelfClosing:false,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:vu.END_TAG,tagName:"",tagID:_u.UNKNOWN,selfClosing:false,ackSelfClosing:false,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:vu.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:vu.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(Su(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(wu.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=Lu(e.tagName);if(e.type===vu.START_TAG){this.lastStartTagName=e.tagName;this.handler.onStartTag(e)}else{if(e.attrs.length>0){this._err(wu.endTagWithAttributes)}if(e.selfClosing){this._err(wu.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 vu.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case vu.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case vu.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:vu.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=ju(e)?vu.WHITESPACE_CHARACTER:e===du.NULL?vu.NULL_CHARACTER:vu.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(vu.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state;this.state=Pu.CHARACTER_REFERENCE;this.entityStartPos=this.preprocessor.pos;this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?g.Attribute:g.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===Pu.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===Pu.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===Pu.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){if(this._isCharacterReferenceInAttribute()){this.currentAttr.value+=String.fromCodePoint(e)}else{this._emitCodePoint(e)}}_callState(e){switch(this.state){case Pu.DATA:{this._stateData(e);break}case Pu.RCDATA:{this._stateRcdata(e);break}case Pu.RAWTEXT:{this._stateRawtext(e);break}case Pu.SCRIPT_DATA:{this._stateScriptData(e);break}case Pu.PLAINTEXT:{this._statePlaintext(e);break}case Pu.TAG_OPEN:{this._stateTagOpen(e);break}case Pu.END_TAG_OPEN:{this._stateEndTagOpen(e);break}case Pu.TAG_NAME:{this._stateTagName(e);break}case Pu.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(e);break}case Pu.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(e);break}case Pu.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(e);break}case Pu.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(e);break}case Pu.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(e);break}case Pu.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(e);break}case Pu.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(e);break}case Pu.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(e);break}case Pu.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(e);break}case Pu.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(e);break}case Pu.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(e);break}case Pu.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(e);break}case Pu.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(e);break}case Pu.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(e);break}case Pu.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(e);break}case Pu.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(e);break}case Pu.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(e);break}case Pu.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(e);break}case Pu.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(e);break}case Pu.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(e);break}case Pu.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(e);break}case Pu.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(e);break}case Pu.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(e);break}case Pu.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(e);break}case Pu.ATTRIBUTE_NAME:{this._stateAttributeName(e);break}case Pu.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(e);break}case Pu.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(e);break}case Pu.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(e);break}case Pu.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(e);break}case Pu.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(e);break}case Pu.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(e);break}case Pu.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(e);break}case Pu.BOGUS_COMMENT:{this._stateBogusComment(e);break}case Pu.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(e);break}case Pu.COMMENT_START:{this._stateCommentStart(e);break}case Pu.COMMENT_START_DASH:{this._stateCommentStartDash(e);break}case Pu.COMMENT:{this._stateComment(e);break}case Pu.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(e);break}case Pu.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(e);break}case Pu.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(e);break}case Pu.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(e);break}case Pu.COMMENT_END_DASH:{this._stateCommentEndDash(e);break}case Pu.COMMENT_END:{this._stateCommentEnd(e);break}case Pu.COMMENT_END_BANG:{this._stateCommentEndBang(e);break}case Pu.DOCTYPE:{this._stateDoctype(e);break}case Pu.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(e);break}case Pu.DOCTYPE_NAME:{this._stateDoctypeName(e);break}case Pu.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(e);break}case Pu.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(e);break}case Pu.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(e);break}case Pu.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(e);break}case Pu.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(e);break}case Pu.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(e);break}case Pu.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break}case Pu.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(e);break}case Pu.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(e);break}case Pu.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(e);break}case Pu.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(e);break}case Pu.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(e);break}case Pu.BOGUS_DOCTYPE:{this._stateBogusDoctype(e);break}case Pu.CDATA_SECTION:{this._stateCdataSection(e);break}case Pu.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(e);break}case Pu.CDATA_SECTION_END:{this._stateCdataSectionEnd(e);break}case Pu.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case Pu.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(e);break}default:{throw new Error("Unknown state")}}}_stateData(e){switch(e){case du.LESS_THAN_SIGN:{this.state=Pu.TAG_OPEN;break}case du.AMPERSAND:{this._startCharacterReference();break}case du.NULL:{this._err(wu.unexpectedNullCharacter);this._emitCodePoint(e);break}case du.EOF:{this._emitEOFToken();break}default:{this._emitCodePoint(e)}}}_stateRcdata(e){switch(e){case du.AMPERSAND:{this._startCharacterReference();break}case du.LESS_THAN_SIGN:{this.state=Pu.RCDATA_LESS_THAN_SIGN;break}case du.NULL:{this._err(wu.unexpectedNullCharacter);this._emitChars(hu);break}case du.EOF:{this._emitEOFToken();break}default:{this._emitCodePoint(e)}}}_stateRawtext(e){switch(e){case du.LESS_THAN_SIGN:{this.state=Pu.RAWTEXT_LESS_THAN_SIGN;break}case du.NULL:{this._err(wu.unexpectedNullCharacter);this._emitChars(hu);break}case du.EOF:{this._emitEOFToken();break}default:{this._emitCodePoint(e)}}}_stateScriptData(e){switch(e){case du.LESS_THAN_SIGN:{this.state=Pu.SCRIPT_DATA_LESS_THAN_SIGN;break}case du.NULL:{this._err(wu.unexpectedNullCharacter);this._emitChars(hu);break}case du.EOF:{this._emitEOFToken();break}default:{this._emitCodePoint(e)}}}_statePlaintext(e){switch(e){case du.NULL:{this._err(wu.unexpectedNullCharacter);this._emitChars(hu);break}case du.EOF:{this._emitEOFToken();break}default:{this._emitCodePoint(e)}}}_stateTagOpen(e){if(Fu(e)){this._createStartTagToken();this.state=Pu.TAG_NAME;this._stateTagName(e)}else switch(e){case du.EXCLAMATION_MARK:{this.state=Pu.MARKUP_DECLARATION_OPEN;break}case du.SOLIDUS:{this.state=Pu.END_TAG_OPEN;break}case du.QUESTION_MARK:{this._err(wu.unexpectedQuestionMarkInsteadOfTagName);this._createCommentToken(1);this.state=Pu.BOGUS_COMMENT;this._stateBogusComment(e);break}case du.EOF:{this._err(wu.eofBeforeTagName);this._emitChars("<");this._emitEOFToken();break}default:{this._err(wu.invalidFirstCharacterOfTagName);this._emitChars("<");this.state=Pu.DATA;this._stateData(e)}}}_stateEndTagOpen(e){if(Fu(e)){this._createEndTagToken();this.state=Pu.TAG_NAME;this._stateTagName(e)}else switch(e){case du.GREATER_THAN_SIGN:{this._err(wu.missingEndTagName);this.state=Pu.DATA;break}case du.EOF:{this._err(wu.eofBeforeTagName);this._emitChars("</");this._emitEOFToken();break}default:{this._err(wu.invalidFirstCharacterOfTagName);this._createCommentToken(2);this.state=Pu.BOGUS_COMMENT;this._stateBogusComment(e)}}}_stateTagName(e){const t=this.currentToken;switch(e){case du.SPACE:case du.LINE_FEED:case du.TABULATION:case du.FORM_FEED:{this.state=Pu.BEFORE_ATTRIBUTE_NAME;break}case du.SOLIDUS:{this.state=Pu.SELF_CLOSING_START_TAG;break}case du.GREATER_THAN_SIGN:{this.state=Pu.DATA;this.emitCurrentTagToken();break}case du.NULL:{this._err(wu.unexpectedNullCharacter);t.tagName+=hu;break}case du.EOF:{this._err(wu.eofInTag);this._emitEOFToken();break}default:{t.tagName+=String.fromCodePoint(qu(e)?zu(e):e)}}}_stateRcdataLessThanSign(e){if(e===du.SOLIDUS){this.state=Pu.RCDATA_END_TAG_OPEN}else{this._emitChars("<");this.state=Pu.RCDATA;this._stateRcdata(e)}}_stateRcdataEndTagOpen(e){if(Fu(e)){this.state=Pu.RCDATA_END_TAG_NAME;this._stateRcdataEndTagName(e)}else{this._emitChars("</");this.state=Pu.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 du.SPACE:case du.LINE_FEED:case du.TABULATION:case du.FORM_FEED:{this._advanceBy(this.lastStartTagName.length);this.state=Pu.BEFORE_ATTRIBUTE_NAME;return false}case du.SOLIDUS:{this._advanceBy(this.lastStartTagName.length);this.state=Pu.SELF_CLOSING_START_TAG;return false}case du.GREATER_THAN_SIGN:{this._advanceBy(this.lastStartTagName.length);this.emitCurrentTagToken();this.state=Pu.DATA;return false}default:{return!this._ensureHibernation()}}}_stateRcdataEndTagName(e){if(this.handleSpecialEndTag(e)){this._emitChars("</");this.state=Pu.RCDATA;this._stateRcdata(e)}}_stateRawtextLessThanSign(e){if(e===du.SOLIDUS){this.state=Pu.RAWTEXT_END_TAG_OPEN}else{this._emitChars("<");this.state=Pu.RAWTEXT;this._stateRawtext(e)}}_stateRawtextEndTagOpen(e){if(Fu(e)){this.state=Pu.RAWTEXT_END_TAG_NAME;this._stateRawtextEndTagName(e)}else{this._emitChars("</");this.state=Pu.RAWTEXT;this._stateRawtext(e)}}_stateRawtextEndTagName(e){if(this.handleSpecialEndTag(e)){this._emitChars("</");this.state=Pu.RAWTEXT;this._stateRawtext(e)}}_stateScriptDataLessThanSign(e){switch(e){case du.SOLIDUS:{this.state=Pu.SCRIPT_DATA_END_TAG_OPEN;break}case du.EXCLAMATION_MARK:{this.state=Pu.SCRIPT_DATA_ESCAPE_START;this._emitChars("<!");break}default:{this._emitChars("<");this.state=Pu.SCRIPT_DATA;this._stateScriptData(e)}}}_stateScriptDataEndTagOpen(e){if(Fu(e)){this.state=Pu.SCRIPT_DATA_END_TAG_NAME;this._stateScriptDataEndTagName(e)}else{this._emitChars("</");this.state=Pu.SCRIPT_DATA;this._stateScriptData(e)}}_stateScriptDataEndTagName(e){if(this.handleSpecialEndTag(e)){this._emitChars("</");this.state=Pu.SCRIPT_DATA;this._stateScriptData(e)}}_stateScriptDataEscapeStart(e){if(e===du.HYPHEN_MINUS){this.state=Pu.SCRIPT_DATA_ESCAPE_START_DASH;this._emitChars("-")}else{this.state=Pu.SCRIPT_DATA;this._stateScriptData(e)}}_stateScriptDataEscapeStartDash(e){if(e===du.HYPHEN_MINUS){this.state=Pu.SCRIPT_DATA_ESCAPED_DASH_DASH;this._emitChars("-")}else{this.state=Pu.SCRIPT_DATA;this._stateScriptData(e)}}_stateScriptDataEscaped(e){switch(e){case du.HYPHEN_MINUS:{this.state=Pu.SCRIPT_DATA_ESCAPED_DASH;this._emitChars("-");break}case du.LESS_THAN_SIGN:{this.state=Pu.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case du.NULL:{this._err(wu.unexpectedNullCharacter);this._emitChars(hu);break}case du.EOF:{this._err(wu.eofInScriptHtmlCommentLikeText);this._emitEOFToken();break}default:{this._emitCodePoint(e)}}}_stateScriptDataEscapedDash(e){switch(e){case du.HYPHEN_MINUS:{this.state=Pu.SCRIPT_DATA_ESCAPED_DASH_DASH;this._emitChars("-");break}case du.LESS_THAN_SIGN:{this.state=Pu.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case du.NULL:{this._err(wu.unexpectedNullCharacter);this.state=Pu.SCRIPT_DATA_ESCAPED;this._emitChars(hu);break}case du.EOF:{this._err(wu.eofInScriptHtmlCommentLikeText);this._emitEOFToken();break}default:{this.state=Pu.SCRIPT_DATA_ESCAPED;this._emitCodePoint(e)}}}_stateScriptDataEscapedDashDash(e){switch(e){case du.HYPHEN_MINUS:{this._emitChars("-");break}case du.LESS_THAN_SIGN:{this.state=Pu.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case du.GREATER_THAN_SIGN:{this.state=Pu.SCRIPT_DATA;this._emitChars(">");break}case du.NULL:{this._err(wu.unexpectedNullCharacter);this.state=Pu.SCRIPT_DATA_ESCAPED;this._emitChars(hu);break}case du.EOF:{this._err(wu.eofInScriptHtmlCommentLikeText);this._emitEOFToken();break}default:{this.state=Pu.SCRIPT_DATA_ESCAPED;this._emitCodePoint(e)}}}_stateScriptDataEscapedLessThanSign(e){if(e===du.SOLIDUS){this.state=Pu.SCRIPT_DATA_ESCAPED_END_TAG_OPEN}else if(Fu(e)){this._emitChars("<");this.state=Pu.SCRIPT_DATA_DOUBLE_ESCAPE_START;this._stateScriptDataDoubleEscapeStart(e)}else{this._emitChars("<");this.state=Pu.SCRIPT_DATA_ESCAPED;this._stateScriptDataEscaped(e)}}_stateScriptDataEscapedEndTagOpen(e){if(Fu(e)){this.state=Pu.SCRIPT_DATA_ESCAPED_END_TAG_NAME;this._stateScriptDataEscapedEndTagName(e)}else{this._emitChars("</");this.state=Pu.SCRIPT_DATA_ESCAPED;this._stateScriptDataEscaped(e)}}_stateScriptDataEscapedEndTagName(e){if(this.handleSpecialEndTag(e)){this._emitChars("</");this.state=Pu.SCRIPT_DATA_ESCAPED;this._stateScriptDataEscaped(e)}}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(pu.SCRIPT,false)&&Gu(this.preprocessor.peek(pu.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e<pu.SCRIPT.length;e++){this._emitCodePoint(this._consume())}this.state=Pu.SCRIPT_DATA_DOUBLE_ESCAPED}else if(!this._ensureHibernation()){this.state=Pu.SCRIPT_DATA_ESCAPED;this._stateScriptDataEscaped(e)}}_stateScriptDataDoubleEscaped(e){switch(e){case du.HYPHEN_MINUS:{this.state=Pu.SCRIPT_DATA_DOUBLE_ESCAPED_DASH;this._emitChars("-");break}case du.LESS_THAN_SIGN:{this.state=Pu.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN;this._emitChars("<");break}case du.NULL:{this._err(wu.unexpectedNullCharacter);this._emitChars(hu);break}case du.EOF:{this._err(wu.eofInScriptHtmlCommentLikeText);this._emitEOFToken();break}default:{this._emitCodePoint(e)}}}_stateScriptDataDoubleEscapedDash(e){switch(e){case du.HYPHEN_MINUS:{this.state=Pu.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH;this._emitChars("-");break}case du.LESS_THAN_SIGN:{this.state=Pu.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN;this._emitChars("<");break}case du.NULL:{this._err(wu.unexpectedNullCharacter);this.state=Pu.SCRIPT_DATA_DOUBLE_ESCAPED;this._emitChars(hu);break}case du.EOF:{this._err(wu.eofInScriptHtmlCommentLikeText);this._emitEOFToken();break}default:{this.state=Pu.SCRIPT_DATA_DOUBLE_ESCAPED;this._emitCodePoint(e)}}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case du.HYPHEN_MINUS:{this._emitChars("-");break}case du.LESS_THAN_SIGN:{this.state=Pu.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN;this._emitChars("<");break}case du.GREATER_THAN_SIGN:{this.state=Pu.SCRIPT_DATA;this._emitChars(">");break}case du.NULL:{this._err(wu.unexpectedNullCharacter);this.state=Pu.SCRIPT_DATA_DOUBLE_ESCAPED;this._emitChars(hu);break}case du.EOF:{this._err(wu.eofInScriptHtmlCommentLikeText);this._emitEOFToken();break}default:{this.state=Pu.SCRIPT_DATA_DOUBLE_ESCAPED;this._emitCodePoint(e)}}}_stateScriptDataDoubleEscapedLessThanSign(e){if(e===du.SOLIDUS){this.state=Pu.SCRIPT_DATA_DOUBLE_ESCAPE_END;this._emitChars("/")}else{this.state=Pu.SCRIPT_DATA_DOUBLE_ESCAPED;this._stateScriptDataDoubleEscaped(e)}}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(pu.SCRIPT,false)&&Gu(this.preprocessor.peek(pu.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e<pu.SCRIPT.length;e++){this._emitCodePoint(this._consume())}this.state=Pu.SCRIPT_DATA_ESCAPED}else if(!this._ensureHibernation()){this.state=Pu.SCRIPT_DATA_DOUBLE_ESCAPED;this._stateScriptDataDoubleEscaped(e)}}_stateBeforeAttributeName(e){switch(e){case du.SPACE:case du.LINE_FEED:case du.TABULATION:case du.FORM_FEED:{break}case du.SOLIDUS:case du.GREATER_THAN_SIGN:case du.EOF:{this.state=Pu.AFTER_ATTRIBUTE_NAME;this._stateAfterAttributeName(e);break}case du.EQUALS_SIGN:{this._err(wu.unexpectedEqualsSignBeforeAttributeName);this._createAttr("=");this.state=Pu.ATTRIBUTE_NAME;break}default:{this._createAttr("");this.state=Pu.ATTRIBUTE_NAME;this._stateAttributeName(e)}}}_stateAttributeName(e){switch(e){case du.SPACE:case du.LINE_FEED:case du.TABULATION:case du.FORM_FEED:case du.SOLIDUS:case du.GREATER_THAN_SIGN:case du.EOF:{this._leaveAttrName();this.state=Pu.AFTER_ATTRIBUTE_NAME;this._stateAfterAttributeName(e);break}case du.EQUALS_SIGN:{this._leaveAttrName();this.state=Pu.BEFORE_ATTRIBUTE_VALUE;break}case du.QUOTATION_MARK:case du.APOSTROPHE:case du.LESS_THAN_SIGN:{this._err(wu.unexpectedCharacterInAttributeName);this.currentAttr.name+=String.fromCodePoint(e);break}case du.NULL:{this._err(wu.unexpectedNullCharacter);this.currentAttr.name+=hu;break}default:{this.currentAttr.name+=String.fromCodePoint(qu(e)?zu(e):e)}}}_stateAfterAttributeName(e){switch(e){case du.SPACE:case du.LINE_FEED:case du.TABULATION:case du.FORM_FEED:{break}case du.SOLIDUS:{this.state=Pu.SELF_CLOSING_START_TAG;break}case du.EQUALS_SIGN:{this.state=Pu.BEFORE_ATTRIBUTE_VALUE;break}case du.GREATER_THAN_SIGN:{this.state=Pu.DATA;this.emitCurrentTagToken();break}case du.EOF:{this._err(wu.eofInTag);this._emitEOFToken();break}default:{this._createAttr("");this.state=Pu.ATTRIBUTE_NAME;this._stateAttributeName(e)}}}_stateBeforeAttributeValue(e){switch(e){case du.SPACE:case du.LINE_FEED:case du.TABULATION:case du.FORM_FEED:{break}case du.QUOTATION_MARK:{this.state=Pu.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case du.APOSTROPHE:{this.state=Pu.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case du.GREATER_THAN_SIGN:{this._err(wu.missingAttributeValue);this.state=Pu.DATA;this.emitCurrentTagToken();break}default:{this.state=Pu.ATTRIBUTE_VALUE_UNQUOTED;this._stateAttributeValueUnquoted(e)}}}_stateAttributeValueDoubleQuoted(e){switch(e){case du.QUOTATION_MARK:{this.state=Pu.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case du.AMPERSAND:{this._startCharacterReference();break}case du.NULL:{this._err(wu.unexpectedNullCharacter);this.currentAttr.value+=hu;break}case du.EOF:{this._err(wu.eofInTag);this._emitEOFToken();break}default:{this.currentAttr.value+=String.fromCodePoint(e)}}}_stateAttributeValueSingleQuoted(e){switch(e){case du.APOSTROPHE:{this.state=Pu.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case du.AMPERSAND:{this._startCharacterReference();break}case du.NULL:{this._err(wu.unexpectedNullCharacter);this.currentAttr.value+=hu;break}case du.EOF:{this._err(wu.eofInTag);this._emitEOFToken();break}default:{this.currentAttr.value+=String.fromCodePoint(e)}}}_stateAttributeValueUnquoted(e){switch(e){case du.SPACE:case du.LINE_FEED:case du.TABULATION:case du.FORM_FEED:{this._leaveAttrValue();this.state=Pu.BEFORE_ATTRIBUTE_NAME;break}case du.AMPERSAND:{this._startCharacterReference();break}case du.GREATER_THAN_SIGN:{this._leaveAttrValue();this.state=Pu.DATA;this.emitCurrentTagToken();break}case du.NULL:{this._err(wu.unexpectedNullCharacter);this.currentAttr.value+=hu;break}case du.QUOTATION_MARK:case du.APOSTROPHE:case du.LESS_THAN_SIGN:case du.EQUALS_SIGN:case du.GRAVE_ACCENT:{this._err(wu.unexpectedCharacterInUnquotedAttributeValue);this.currentAttr.value+=String.fromCodePoint(e);break}case du.EOF:{this._err(wu.eofInTag);this._emitEOFToken();break}default:{this.currentAttr.value+=String.fromCodePoint(e)}}}_stateAfterAttributeValueQuoted(e){switch(e){case du.SPACE:case du.LINE_FEED:case du.TABULATION:case du.FORM_FEED:{this._leaveAttrValue();this.state=Pu.BEFORE_ATTRIBUTE_NAME;break}case du.SOLIDUS:{this._leaveAttrValue();this.state=Pu.SELF_CLOSING_START_TAG;break}case du.GREATER_THAN_SIGN:{this._leaveAttrValue();this.state=Pu.DATA;this.emitCurrentTagToken();break}case du.EOF:{this._err(wu.eofInTag);this._emitEOFToken();break}default:{this._err(wu.missingWhitespaceBetweenAttributes);this.state=Pu.BEFORE_ATTRIBUTE_NAME;this._stateBeforeAttributeName(e)}}}_stateSelfClosingStartTag(e){switch(e){case du.GREATER_THAN_SIGN:{const e=this.currentToken;e.selfClosing=true;this.state=Pu.DATA;this.emitCurrentTagToken();break}case du.EOF:{this._err(wu.eofInTag);this._emitEOFToken();break}default:{this._err(wu.unexpectedSolidusInTag);this.state=Pu.BEFORE_ATTRIBUTE_NAME;this._stateBeforeAttributeName(e)}}}_stateBogusComment(e){const t=this.currentToken;switch(e){case du.GREATER_THAN_SIGN:{this.state=Pu.DATA;this.emitCurrentComment(t);break}case du.EOF:{this.emitCurrentComment(t);this._emitEOFToken();break}case du.NULL:{this._err(wu.unexpectedNullCharacter);t.data+=hu;break}default:{t.data+=String.fromCodePoint(e)}}}_stateMarkupDeclarationOpen(e){if(this._consumeSequenceIfMatch(pu.DASH_DASH,true)){this._createCommentToken(pu.DASH_DASH.length+1);this.state=Pu.COMMENT_START}else if(this._consumeSequenceIfMatch(pu.DOCTYPE,false)){this.currentLocation=this.getCurrentLocation(pu.DOCTYPE.length+1);this.state=Pu.DOCTYPE}else if(this._consumeSequenceIfMatch(pu.CDATA_START,true)){if(this.inForeignNode){this.state=Pu.CDATA_SECTION}else{this._err(wu.cdataInHtmlContent);this._createCommentToken(pu.CDATA_START.length+1);this.currentToken.data="[CDATA[";this.state=Pu.BOGUS_COMMENT}}else if(!this._ensureHibernation()){this._err(wu.incorrectlyOpenedComment);this._createCommentToken(2);this.state=Pu.BOGUS_COMMENT;this._stateBogusComment(e)}}_stateCommentStart(e){switch(e){case du.HYPHEN_MINUS:{this.state=Pu.COMMENT_START_DASH;break}case du.GREATER_THAN_SIGN:{this._err(wu.abruptClosingOfEmptyComment);this.state=Pu.DATA;const e=this.currentToken;this.emitCurrentComment(e);break}default:{this.state=Pu.COMMENT;this._stateComment(e)}}}_stateCommentStartDash(e){const t=this.currentToken;switch(e){case du.HYPHEN_MINUS:{this.state=Pu.COMMENT_END;break}case du.GREATER_THAN_SIGN:{this._err(wu.abruptClosingOfEmptyComment);this.state=Pu.DATA;this.emitCurrentComment(t);break}case du.EOF:{this._err(wu.eofInComment);this.emitCurrentComment(t);this._emitEOFToken();break}default:{t.data+="-";this.state=Pu.COMMENT;this._stateComment(e)}}}_stateComment(e){const t=this.currentToken;switch(e){case du.HYPHEN_MINUS:{this.state=Pu.COMMENT_END_DASH;break}case du.LESS_THAN_SIGN:{t.data+="<";this.state=Pu.COMMENT_LESS_THAN_SIGN;break}case du.NULL:{this._err(wu.unexpectedNullCharacter);t.data+=hu;break}case du.EOF:{this._err(wu.eofInComment);this.emitCurrentComment(t);this._emitEOFToken();break}default:{t.data+=String.fromCodePoint(e)}}}_stateCommentLessThanSign(e){const t=this.currentToken;switch(e){case du.EXCLAMATION_MARK:{t.data+="!";this.state=Pu.COMMENT_LESS_THAN_SIGN_BANG;break}case du.LESS_THAN_SIGN:{t.data+="<";break}default:{this.state=Pu.COMMENT;this._stateComment(e)}}}_stateCommentLessThanSignBang(e){if(e===du.HYPHEN_MINUS){this.state=Pu.COMMENT_LESS_THAN_SIGN_BANG_DASH}else{this.state=Pu.COMMENT;this._stateComment(e)}}_stateCommentLessThanSignBangDash(e){if(e===du.HYPHEN_MINUS){this.state=Pu.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH}else{this.state=Pu.COMMENT_END_DASH;this._stateCommentEndDash(e)}}_stateCommentLessThanSignBangDashDash(e){if(e!==du.GREATER_THAN_SIGN&&e!==du.EOF){this._err(wu.nestedComment)}this.state=Pu.COMMENT_END;this._stateCommentEnd(e)}_stateCommentEndDash(e){const t=this.currentToken;switch(e){case du.HYPHEN_MINUS:{this.state=Pu.COMMENT_END;break}case du.EOF:{this._err(wu.eofInComment);this.emitCurrentComment(t);this._emitEOFToken();break}default:{t.data+="-";this.state=Pu.COMMENT;this._stateComment(e)}}}_stateCommentEnd(e){const t=this.currentToken;switch(e){case du.GREATER_THAN_SIGN:{this.state=Pu.DATA;this.emitCurrentComment(t);break}case du.EXCLAMATION_MARK:{this.state=Pu.COMMENT_END_BANG;break}case du.HYPHEN_MINUS:{t.data+="-";break}case du.EOF:{this._err(wu.eofInComment);this.emitCurrentComment(t);this._emitEOFToken();break}default:{t.data+="--";this.state=Pu.COMMENT;this._stateComment(e)}}}_stateCommentEndBang(e){const t=this.currentToken;switch(e){case du.HYPHEN_MINUS:{t.data+="--!";this.state=Pu.COMMENT_END_DASH;break}case du.GREATER_THAN_SIGN:{this._err(wu.incorrectlyClosedComment);this.state=Pu.DATA;this.emitCurrentComment(t);break}case du.EOF:{this._err(wu.eofInComment);this.emitCurrentComment(t);this._emitEOFToken();break}default:{t.data+="--!";this.state=Pu.COMMENT;this._stateComment(e)}}}_stateDoctype(e){switch(e){case du.SPACE:case du.LINE_FEED:case du.TABULATION:case du.FORM_FEED:{this.state=Pu.BEFORE_DOCTYPE_NAME;break}case du.GREATER_THAN_SIGN:{this.state=Pu.BEFORE_DOCTYPE_NAME;this._stateBeforeDoctypeName(e);break}case du.EOF:{this._err(wu.eofInDoctype);this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=true;this.emitCurrentDoctype(e);this._emitEOFToken();break}default:{this._err(wu.missingWhitespaceBeforeDoctypeName);this.state=Pu.BEFORE_DOCTYPE_NAME;this._stateBeforeDoctypeName(e)}}}_stateBeforeDoctypeName(e){if(qu(e)){this._createDoctypeToken(String.fromCharCode(zu(e)));this.state=Pu.DOCTYPE_NAME}else switch(e){case du.SPACE:case du.LINE_FEED:case du.TABULATION:case du.FORM_FEED:{break}case du.NULL:{this._err(wu.unexpectedNullCharacter);this._createDoctypeToken(hu);this.state=Pu.DOCTYPE_NAME;break}case du.GREATER_THAN_SIGN:{this._err(wu.missingDoctypeName);this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=true;this.emitCurrentDoctype(e);this.state=Pu.DATA;break}case du.EOF:{this._err(wu.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=Pu.DOCTYPE_NAME}}}_stateDoctypeName(e){const t=this.currentToken;switch(e){case du.SPACE:case du.LINE_FEED:case du.TABULATION:case du.FORM_FEED:{this.state=Pu.AFTER_DOCTYPE_NAME;break}case du.GREATER_THAN_SIGN:{this.state=Pu.DATA;this.emitCurrentDoctype(t);break}case du.NULL:{this._err(wu.unexpectedNullCharacter);t.name+=hu;break}case du.EOF:{this._err(wu.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{t.name+=String.fromCodePoint(qu(e)?zu(e):e)}}}_stateAfterDoctypeName(e){const t=this.currentToken;switch(e){case du.SPACE:case du.LINE_FEED:case du.TABULATION:case du.FORM_FEED:{break}case du.GREATER_THAN_SIGN:{this.state=Pu.DATA;this.emitCurrentDoctype(t);break}case du.EOF:{this._err(wu.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{if(this._consumeSequenceIfMatch(pu.PUBLIC,false)){this.state=Pu.AFTER_DOCTYPE_PUBLIC_KEYWORD}else if(this._consumeSequenceIfMatch(pu.SYSTEM,false)){this.state=Pu.AFTER_DOCTYPE_SYSTEM_KEYWORD}else if(!this._ensureHibernation()){this._err(wu.invalidCharacterSequenceAfterDoctypeName);t.forceQuirks=true;this.state=Pu.BOGUS_DOCTYPE;this._stateBogusDoctype(e)}}}}_stateAfterDoctypePublicKeyword(e){const t=this.currentToken;switch(e){case du.SPACE:case du.LINE_FEED:case du.TABULATION:case du.FORM_FEED:{this.state=Pu.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case du.QUOTATION_MARK:{this._err(wu.missingWhitespaceAfterDoctypePublicKeyword);t.publicId="";this.state=Pu.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case du.APOSTROPHE:{this._err(wu.missingWhitespaceAfterDoctypePublicKeyword);t.publicId="";this.state=Pu.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case du.GREATER_THAN_SIGN:{this._err(wu.missingDoctypePublicIdentifier);t.forceQuirks=true;this.state=Pu.DATA;this.emitCurrentDoctype(t);break}case du.EOF:{this._err(wu.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{this._err(wu.missingQuoteBeforeDoctypePublicIdentifier);t.forceQuirks=true;this.state=Pu.BOGUS_DOCTYPE;this._stateBogusDoctype(e)}}}_stateBeforeDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case du.SPACE:case du.LINE_FEED:case du.TABULATION:case du.FORM_FEED:{break}case du.QUOTATION_MARK:{t.publicId="";this.state=Pu.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case du.APOSTROPHE:{t.publicId="";this.state=Pu.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case du.GREATER_THAN_SIGN:{this._err(wu.missingDoctypePublicIdentifier);t.forceQuirks=true;this.state=Pu.DATA;this.emitCurrentDoctype(t);break}case du.EOF:{this._err(wu.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{this._err(wu.missingQuoteBeforeDoctypePublicIdentifier);t.forceQuirks=true;this.state=Pu.BOGUS_DOCTYPE;this._stateBogusDoctype(e)}}}_stateDoctypePublicIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case du.QUOTATION_MARK:{this.state=Pu.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case du.NULL:{this._err(wu.unexpectedNullCharacter);t.publicId+=hu;break}case du.GREATER_THAN_SIGN:{this._err(wu.abruptDoctypePublicIdentifier);t.forceQuirks=true;this.emitCurrentDoctype(t);this.state=Pu.DATA;break}case du.EOF:{this._err(wu.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 du.APOSTROPHE:{this.state=Pu.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case du.NULL:{this._err(wu.unexpectedNullCharacter);t.publicId+=hu;break}case du.GREATER_THAN_SIGN:{this._err(wu.abruptDoctypePublicIdentifier);t.forceQuirks=true;this.emitCurrentDoctype(t);this.state=Pu.DATA;break}case du.EOF:{this._err(wu.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 du.SPACE:case du.LINE_FEED:case du.TABULATION:case du.FORM_FEED:{this.state=Pu.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case du.GREATER_THAN_SIGN:{this.state=Pu.DATA;this.emitCurrentDoctype(t);break}case du.QUOTATION_MARK:{this._err(wu.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers);t.systemId="";this.state=Pu.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case du.APOSTROPHE:{this._err(wu.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers);t.systemId="";this.state=Pu.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case du.EOF:{this._err(wu.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{this._err(wu.missingQuoteBeforeDoctypeSystemIdentifier);t.forceQuirks=true;this.state=Pu.BOGUS_DOCTYPE;this._stateBogusDoctype(e)}}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const t=this.currentToken;switch(e){case du.SPACE:case du.LINE_FEED:case du.TABULATION:case du.FORM_FEED:{break}case du.GREATER_THAN_SIGN:{this.emitCurrentDoctype(t);this.state=Pu.DATA;break}case du.QUOTATION_MARK:{t.systemId="";this.state=Pu.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case du.APOSTROPHE:{t.systemId="";this.state=Pu.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case du.EOF:{this._err(wu.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{this._err(wu.missingQuoteBeforeDoctypeSystemIdentifier);t.forceQuirks=true;this.state=Pu.BOGUS_DOCTYPE;this._stateBogusDoctype(e)}}}_stateAfterDoctypeSystemKeyword(e){const t=this.currentToken;switch(e){case du.SPACE:case du.LINE_FEED:case du.TABULATION:case du.FORM_FEED:{this.state=Pu.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case du.QUOTATION_MARK:{this._err(wu.missingWhitespaceAfterDoctypeSystemKeyword);t.systemId="";this.state=Pu.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case du.APOSTROPHE:{this._err(wu.missingWhitespaceAfterDoctypeSystemKeyword);t.systemId="";this.state=Pu.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case du.GREATER_THAN_SIGN:{this._err(wu.missingDoctypeSystemIdentifier);t.forceQuirks=true;this.state=Pu.DATA;this.emitCurrentDoctype(t);break}case du.EOF:{this._err(wu.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{this._err(wu.missingQuoteBeforeDoctypeSystemIdentifier);t.forceQuirks=true;this.state=Pu.BOGUS_DOCTYPE;this._stateBogusDoctype(e)}}}_stateBeforeDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case du.SPACE:case du.LINE_FEED:case du.TABULATION:case du.FORM_FEED:{break}case du.QUOTATION_MARK:{t.systemId="";this.state=Pu.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case du.APOSTROPHE:{t.systemId="";this.state=Pu.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case du.GREATER_THAN_SIGN:{this._err(wu.missingDoctypeSystemIdentifier);t.forceQuirks=true;this.state=Pu.DATA;this.emitCurrentDoctype(t);break}case du.EOF:{this._err(wu.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{this._err(wu.missingQuoteBeforeDoctypeSystemIdentifier);t.forceQuirks=true;this.state=Pu.BOGUS_DOCTYPE;this._stateBogusDoctype(e)}}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case du.QUOTATION_MARK:{this.state=Pu.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case du.NULL:{this._err(wu.unexpectedNullCharacter);t.systemId+=hu;break}case du.GREATER_THAN_SIGN:{this._err(wu.abruptDoctypeSystemIdentifier);t.forceQuirks=true;this.emitCurrentDoctype(t);this.state=Pu.DATA;break}case du.EOF:{this._err(wu.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 du.APOSTROPHE:{this.state=Pu.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case du.NULL:{this._err(wu.unexpectedNullCharacter);t.systemId+=hu;break}case du.GREATER_THAN_SIGN:{this._err(wu.abruptDoctypeSystemIdentifier);t.forceQuirks=true;this.emitCurrentDoctype(t);this.state=Pu.DATA;break}case du.EOF:{this._err(wu.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 du.SPACE:case du.LINE_FEED:case du.TABULATION:case du.FORM_FEED:{break}case du.GREATER_THAN_SIGN:{this.emitCurrentDoctype(t);this.state=Pu.DATA;break}case du.EOF:{this._err(wu.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{this._err(wu.unexpectedCharacterAfterDoctypeSystemIdentifier);this.state=Pu.BOGUS_DOCTYPE;this._stateBogusDoctype(e)}}}_stateBogusDoctype(e){const t=this.currentToken;switch(e){case du.GREATER_THAN_SIGN:{this.emitCurrentDoctype(t);this.state=Pu.DATA;break}case du.NULL:{this._err(wu.unexpectedNullCharacter);break}case du.EOF:{this.emitCurrentDoctype(t);this._emitEOFToken();break}}}_stateCdataSection(e){switch(e){case du.RIGHT_SQUARE_BRACKET:{this.state=Pu.CDATA_SECTION_BRACKET;break}case du.EOF:{this._err(wu.eofInCdata);this._emitEOFToken();break}default:{this._emitCodePoint(e)}}}_stateCdataSectionBracket(e){if(e===du.RIGHT_SQUARE_BRACKET){this.state=Pu.CDATA_SECTION_END}else{this._emitChars("]");this.state=Pu.CDATA_SECTION;this._stateCdataSection(e)}}_stateCdataSectionEnd(e){switch(e){case du.GREATER_THAN_SIGN:{this.state=Pu.DATA;break}case du.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:{this._emitChars("]]");this.state=Pu.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(du.AMPERSAND);this.state=!this._isCharacterReferenceInAttribute()&&Hu(this.preprocessor.peek(1))?Pu.AMBIGUOUS_AMPERSAND:this.returnState}else{this.state=this.returnState}}_stateAmbiguousAmpersand(e){if(Hu(e)){this._flushCodePointConsumedAsCharacterReference(e)}else{if(e===du.SEMICOLON){this._err(wu.unknownNamedCharacterReference)}this.state=this.returnState;this._callState(e)}}}const Wu=new Set([_u.DD,_u.DT,_u.LI,_u.OPTGROUP,_u.OPTION,_u.P,_u.RB,_u.RP,_u.RT,_u.RTC]);const Xu=new Set([...Wu,_u.CAPTION,_u.COLGROUP,_u.TBODY,_u.TD,_u.TFOOT,_u.TH,_u.THEAD,_u.TR]);const Ku=new Set([_u.APPLET,_u.CAPTION,_u.HTML,_u.MARQUEE,_u.OBJECT,_u.TABLE,_u.TD,_u.TEMPLATE,_u.TH]);const $u=new Set([...Ku,_u.OL,_u.UL]);const Qu=new Set([...Ku,_u.BUTTON]);const Zu=new Set([_u.ANNOTATION_XML,_u.MI,_u.MN,_u.MO,_u.MS,_u.MTEXT]);const Ju=new Set([_u.DESC,_u.FOREIGN_OBJECT,_u.TITLE]);const ef=new Set([_u.TR,_u.TEMPLATE,_u.HTML]);const tf=new Set([_u.TBODY,_u.TFOOT,_u.THEAD,_u.TEMPLATE,_u.HTML]);const nf=new Set([_u.TABLE,_u.TEMPLATE,_u.HTML]);const rf=new Set([_u.TD,_u.TH]);class sf{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=_u.UNKNOWN;this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===_u.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===xu.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])!==xu.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(Nu,xu.HTML)}popUntilTableCellPopped(){this.popUntilPopped(rf,xu.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(nf,xu.HTML)}clearBackToTableBodyContext(){this.clearBackTo(tf,xu.HTML)}clearBackToTableRowContext(){this.clearBackTo(ef,xu.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]===_u.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]===_u.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 xu.HTML:{if(i===e)return true;if(t.has(i))return false;break}case xu.SVG:{if(Ju.has(i))return false;break}case xu.MATHML:{if(Zu.has(i))return false;break}}}return true}hasInScope(e){return this.hasInDynamicScope(e,Ku)}hasInListItemScope(e){return this.hasInDynamicScope(e,$u)}hasInButtonScope(e){return this.hasInDynamicScope(e,Qu)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case xu.HTML:{if(Nu.has(t))return true;if(Ku.has(t))return false;break}case xu.SVG:{if(Ju.has(t))return false;break}case xu.MATHML:{if(Zu.has(t))return false;break}}}return true}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){if(this.treeAdapter.getNamespaceURI(this.items[t])!==xu.HTML){continue}switch(this.tagIDs[t]){case e:{return true}case _u.TABLE:case _u.HTML:{return false}}}return true}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){if(this.treeAdapter.getNamespaceURI(this.items[e])!==xu.HTML){continue}switch(this.tagIDs[e]){case _u.TBODY:case _u.THEAD:case _u.TFOOT:{return true}case _u.TABLE:case _u.HTML:{return false}}}return true}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){if(this.treeAdapter.getNamespaceURI(this.items[t])!==xu.HTML){continue}switch(this.tagIDs[t]){case e:{return true}case _u.OPTION:case _u.OPTGROUP:{break}default:{return false}}}return true}generateImpliedEndTags(){while(Wu.has(this.currentTagId)){this.pop()}}generateImpliedEndTagsThoroughly(){while(Xu.has(this.currentTagId)){this.pop()}}generateImpliedEndTagsWithExclusion(e){while(this.currentTagId!==e&&Xu.has(this.currentTagId)){this.pop()}}}const of=3;var af;(function(e){e[e["Marker"]=0]="Marker";e[e["Element"]=1]="Element"})(af||(af={}));const lf={type:af.Marker};class cf{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===af.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<of)return;const t=this.treeAdapter.getAttrList(e);const n=this._getNoahArkConditionCandidates(e,t);if(n.length<of)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>=of){this.entries.splice(t.idx,1)}}}}insertMarker(){this.entries.unshift(lf)}pushElement(e,t){this._ensureNoahArkCondition(e);this.entries.unshift({type:af.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:af.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(lf);if(e>=0){this.entries.splice(0,e+1)}else{this.entries.length=0}}getElementEntryInScopeWithTagName(e){const t=this.entries.find((t=>t.type===af.Marker||this.treeAdapter.getTagName(t.element)===e));return t&&t.type===af.Element?t:null}getElementEntry(e){return this.entries.find((t=>t.type===af.Element&&t.element===e))}}const uf={createDocument(){return{nodeName:"#document",mode:Cu.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};uf.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(uf.isTextNode(n)){n.value+=t;return}}uf.appendChild(e,uf.createTextNode(t))},insertTextBefore(e,t,n){const i=e.childNodes[e.childNodes.indexOf(n)-1];if(i&&uf.isTextNode(i)){i.value+=t}else{uf.insertBefore(e,uf.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 ff="html";const hf="about:legacy-compat";const df="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd";const pf=["+//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 mf=[...pf,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];const gf=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]);const bf=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"];const kf=[...bf,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function yf(e,t){return t.some((t=>e.startsWith(t)))}function wf(e){return e.name===ff&&e.publicId===null&&(e.systemId===null||e.systemId===hf)}function Ef(e){if(e.name!==ff){return Cu.QUIRKS}const{systemId:t}=e;if(t&&t.toLowerCase()===df){return Cu.QUIRKS}let{publicId:n}=e;if(n!==null){n=n.toLowerCase();if(gf.has(n)){return Cu.QUIRKS}let e=t===null?mf:pf;if(yf(n,e)){return Cu.QUIRKS}e=t===null?bf:kf;if(yf(n,e)){return Cu.LIMITED_QUIRKS}}return Cu.NO_QUIRKS}const Tf={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"};const vf="definitionurl";const Sf="definitionURL";const xf=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 Af=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:xu.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:xu.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:xu.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:xu.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:xu.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:xu.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:xu.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:xu.XML}],["xml:space",{prefix:"xml",name:"space",namespace:xu.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:xu.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:xu.XMLNS}]]);const Cf=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 Df=new Set([_u.B,_u.BIG,_u.BLOCKQUOTE,_u.BODY,_u.BR,_u.CENTER,_u.CODE,_u.DD,_u.DIV,_u.DL,_u.DT,_u.EM,_u.EMBED,_u.H1,_u.H2,_u.H3,_u.H4,_u.H5,_u.H6,_u.HEAD,_u.HR,_u.I,_u.IMG,_u.LI,_u.LISTING,_u.MENU,_u.META,_u.NOBR,_u.OL,_u.P,_u.PRE,_u.RUBY,_u.S,_u.SMALL,_u.SPAN,_u.STRONG,_u.STRIKE,_u.SUB,_u.SUP,_u.TABLE,_u.TT,_u.U,_u.UL,_u.VAR]);function _f(e){const t=e.tagID;const n=t===_u.FONT&&e.attrs.some((({name:e})=>e===Au.COLOR||e===Au.SIZE||e===Au.FACE));return n||Df.has(t)}function Rf(e){for(let t=0;t<e.attrs.length;t++){if(e.attrs[t].name===vf){e.attrs[t].name=Sf;break}}}function Lf(e){for(let t=0;t<e.attrs.length;t++){const n=xf.get(e.attrs[t].name);if(n!=null){e.attrs[t].name=n}}}function If(e){for(let t=0;t<e.attrs.length;t++){const n=Af.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 Of(e){const t=Cf.get(e.tagName);if(t!=null){e.tagName=t;e.tagID=Lu(e.tagName)}}function Nf(e,t){return t===xu.MATHML&&(e===_u.MI||e===_u.MO||e===_u.MN||e===_u.MS||e===_u.MTEXT)}function Pf(e,t,n){if(t===xu.MATHML&&e===_u.ANNOTATION_XML){for(let e=0;e<n.length;e++){if(n[e].name===Au.ENCODING){const t=n[e].value.toLowerCase();return t===Tf.TEXT_HTML||t===Tf.APPLICATION_XML}}}return t===xu.SVG&&(e===_u.FOREIGN_OBJECT||e===_u.DESC||e===_u.TITLE)}function Mf(e,t,n,i){return(!i||i===xu.HTML)&&Pf(e,t,n)||(!i||i===xu.MATHML)&&Nf(e,t)}const Uf="hidden";const qf=8;const Bf=3;var Ff;(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"})(Ff||(Ff={}));const Hf={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};const zf=new Set([_u.TABLE,_u.TBODY,_u.TFOOT,_u.THEAD,_u.TR]);const jf={scriptingEnabled:true,sourceCodeLocationInfo:false,treeAdapter:uf,onParseError:null};class Gf{constructor(e,t,n=null,i=null){this.fragmentContext=n;this.scriptHandler=i;this.currentToken=null;this.stopped=false;this.insertionMode=Ff.INITIAL;this.originalInsertionMode=Ff.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={...jf,...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 Yu(this.options,this);this.activeFormattingElements=new cf(this.treeAdapter);this.fragmentContextID=n?Lu(this.treeAdapter.getTagName(n)):_u.UNKNOWN;this._setContextModes(n!==null&&n!==void 0?n:this.document,this.fragmentContextID);this.openElements=new sf(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={...jf,...t};e!==null&&e!==void 0?e:e=n.treeAdapter.createElement(Du.TEMPLATE,xu.HTML,[]);const i=n.treeAdapter.createElement("documentmock",xu.HTML,[]);const r=new this(n,i,e);if(r.fragmentContextID===_u.TEMPLATE){r.tmplInsertionModeStack.unshift(Ff.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:Hf;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)===xu.HTML;this.currentNotInHTML=!n;this.tokenizer.inForeignNode=!n&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,xu.HTML);this.tokenizer.state=t;this.originalInsertionMode=this.insertionMode;this.insertionMode=Ff.TEXT}switchToPlaintextParsing(){this.insertionMode=Ff.TEXT;this.originalInsertionMode=Ff.IN_BODY;this.tokenizer.state=Mu.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)===Du.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==xu.HTML){return}switch(this.fragmentContextID){case _u.TITLE:case _u.TEXTAREA:{this.tokenizer.state=Mu.RCDATA;break}case _u.STYLE:case _u.XMP:case _u.IFRAME:case _u.NOEMBED:case _u.NOFRAMES:case _u.NOSCRIPT:{this.tokenizer.state=Mu.RAWTEXT;break}case _u.SCRIPT:{this.tokenizer.state=Mu.SCRIPT_DATA;break}case _u.PLAINTEXT:{this.tokenizer.state=Mu.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,xu.HTML,[]);this._attachElementToTree(n,null);this.openElements.push(n,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,xu.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(Du.HTML,xu.HTML,[]);if(this.options.sourceCodeLocationInfo)this.treeAdapter.setNodeSourceCodeLocation(e,null);this.treeAdapter.appendChild(this.openElements.current,e);this.openElements.push(e,_u.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===vu.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===_u.SVG&&this.treeAdapter.getTagName(t)===Du.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(t)===xu.MATHML){return false}return this.tokenizer.inForeignNode||(e.tagID===_u.MGLYPH||e.tagID===_u.MALIGNMARK)&&!this._isIntegrationPoint(n,t,xu.HTML)}_processToken(e){switch(e.type){case vu.CHARACTER:{this.onCharacter(e);break}case vu.NULL_CHARACTER:{this.onNullCharacter(e);break}case vu.COMMENT:{this.onComment(e);break}case vu.DOCTYPE:{this.onDoctype(e);break}case vu.START_TAG:{this._processStartTag(e);break}case vu.END_TAG:{this.onEndTag(e);break}case vu.EOF:{this.onEof(e);break}case vu.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(e);break}}}_isIntegrationPoint(e,t,n){const i=this.treeAdapter.getNamespaceURI(t);const r=this.treeAdapter.getAttrList(t);return Mf(e,i,r,n)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const t=this.activeFormattingElements.entries.findIndex((e=>e.type===af.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=Ff.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(_u.P);this.openElements.popUntilTagNamePopped(_u.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--){switch(e===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case _u.TR:{this.insertionMode=Ff.IN_ROW;return}case _u.TBODY:case _u.THEAD:case _u.TFOOT:{this.insertionMode=Ff.IN_TABLE_BODY;return}case _u.CAPTION:{this.insertionMode=Ff.IN_CAPTION;return}case _u.COLGROUP:{this.insertionMode=Ff.IN_COLUMN_GROUP;return}case _u.TABLE:{this.insertionMode=Ff.IN_TABLE;return}case _u.BODY:{this.insertionMode=Ff.IN_BODY;return}case _u.FRAMESET:{this.insertionMode=Ff.IN_FRAMESET;return}case _u.SELECT:{this._resetInsertionModeForSelect(e);return}case _u.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case _u.HTML:{this.insertionMode=this.headElement?Ff.AFTER_HEAD:Ff.BEFORE_HEAD;return}case _u.TD:case _u.TH:{if(e>0){this.insertionMode=Ff.IN_CELL;return}break}case _u.HEAD:{if(e>0){this.insertionMode=Ff.IN_HEAD;return}break}}}this.insertionMode=Ff.IN_BODY}_resetInsertionModeForSelect(e){if(e>0){for(let t=e-1;t>0;t--){const e=this.openElements.tagIDs[t];if(e===_u.TEMPLATE){break}else if(e===_u.TABLE){this.insertionMode=Ff.IN_SELECT_IN_TABLE;return}}}this.insertionMode=Ff.IN_SELECT}_isElementCausesFosterParenting(e){return zf.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 _u.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(t)===xu.HTML){return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null}}break}case _u.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 Ou[n].has(t)}onCharacter(e){this.skipNextNewLine=false;if(this.tokenizer.inForeignNode){lp(this,e);return}switch(this.insertionMode){case Ff.INITIAL:{ih(this,e);break}case Ff.BEFORE_HTML:{oh(this,e);break}case Ff.BEFORE_HEAD:{ch(this,e);break}case Ff.IN_HEAD:{dh(this,e);break}case Ff.IN_HEAD_NO_SCRIPT:{gh(this,e);break}case Ff.AFTER_HEAD:{yh(this,e);break}case Ff.IN_BODY:case Ff.IN_CAPTION:case Ff.IN_CELL:case Ff.IN_TEMPLATE:{Th(this,e);break}case Ff.TEXT:case Ff.IN_SELECT:case Ff.IN_SELECT_IN_TABLE:{this._insertCharacters(e);break}case Ff.IN_TABLE:case Ff.IN_TABLE_BODY:case Ff.IN_ROW:{bd(this,e);break}case Ff.IN_TABLE_TEXT:{Rd(this,e);break}case Ff.IN_COLUMN_GROUP:{Ud(this,e);break}case Ff.AFTER_BODY:{Jd(this,e);break}case Ff.AFTER_AFTER_BODY:{sp(this,e);break}}}onNullCharacter(e){this.skipNextNewLine=false;if(this.tokenizer.inForeignNode){ap(this,e);return}switch(this.insertionMode){case Ff.INITIAL:{ih(this,e);break}case Ff.BEFORE_HTML:{oh(this,e);break}case Ff.BEFORE_HEAD:{ch(this,e);break}case Ff.IN_HEAD:{dh(this,e);break}case Ff.IN_HEAD_NO_SCRIPT:{gh(this,e);break}case Ff.AFTER_HEAD:{yh(this,e);break}case Ff.TEXT:{this._insertCharacters(e);break}case Ff.IN_TABLE:case Ff.IN_TABLE_BODY:case Ff.IN_ROW:{bd(this,e);break}case Ff.IN_COLUMN_GROUP:{Ud(this,e);break}case Ff.AFTER_BODY:{Jd(this,e);break}case Ff.AFTER_AFTER_BODY:{sp(this,e);break}}}onComment(e){this.skipNextNewLine=false;if(this.currentNotInHTML){Zf(this,e);return}switch(this.insertionMode){case Ff.INITIAL:case Ff.BEFORE_HTML:case Ff.BEFORE_HEAD:case Ff.IN_HEAD:case Ff.IN_HEAD_NO_SCRIPT:case Ff.AFTER_HEAD:case Ff.IN_BODY:case Ff.IN_TABLE:case Ff.IN_CAPTION:case Ff.IN_COLUMN_GROUP:case Ff.IN_TABLE_BODY:case Ff.IN_ROW:case Ff.IN_CELL:case Ff.IN_SELECT:case Ff.IN_SELECT_IN_TABLE:case Ff.IN_TEMPLATE:case Ff.IN_FRAMESET:case Ff.AFTER_FRAMESET:{Zf(this,e);break}case Ff.IN_TABLE_TEXT:{Ld(this,e);break}case Ff.AFTER_BODY:{Jf(this,e);break}case Ff.AFTER_AFTER_BODY:case Ff.AFTER_AFTER_FRAMESET:{eh(this,e);break}}}onDoctype(e){this.skipNextNewLine=false;switch(this.insertionMode){case Ff.INITIAL:{nh(this,e);break}case Ff.BEFORE_HEAD:case Ff.IN_HEAD:case Ff.IN_HEAD_NO_SCRIPT:case Ff.AFTER_HEAD:{this._err(e,wu.misplacedDoctype);break}case Ff.IN_TABLE_TEXT:{Ld(this,e);break}}}onStartTag(e){this.skipNextNewLine=false;this.currentToken=e;this._processStartTag(e);if(e.selfClosing&&!e.ackSelfClosing){this._err(e,wu.nonVoidHtmlElementStartTagWithTrailingSolidus)}}_processStartTag(e){if(this.shouldProcessStartTagTokenInForeignContent(e)){up(this,e)}else{this._startTagOutsideForeignContent(e)}}_startTagOutsideForeignContent(e){switch(this.insertionMode){case Ff.INITIAL:{ih(this,e);break}case Ff.BEFORE_HTML:{rh(this,e);break}case Ff.BEFORE_HEAD:{ah(this,e);break}case Ff.IN_HEAD:{uh(this,e);break}case Ff.IN_HEAD_NO_SCRIPT:{ph(this,e);break}case Ff.AFTER_HEAD:{bh(this,e);break}case Ff.IN_BODY:{td(this,e);break}case Ff.IN_TABLE:{Ad(this,e);break}case Ff.IN_TABLE_TEXT:{Ld(this,e);break}case Ff.IN_CAPTION:{Od(this,e);break}case Ff.IN_COLUMN_GROUP:{Pd(this,e);break}case Ff.IN_TABLE_BODY:{qd(this,e);break}case Ff.IN_ROW:{Fd(this,e);break}case Ff.IN_CELL:{zd(this,e);break}case Ff.IN_SELECT:{Gd(this,e);break}case Ff.IN_SELECT_IN_TABLE:{Yd(this,e);break}case Ff.IN_TEMPLATE:{Xd(this,e);break}case Ff.AFTER_BODY:{Qd(this,e);break}case Ff.IN_FRAMESET:{ep(this,e);break}case Ff.AFTER_FRAMESET:{np(this,e);break}case Ff.AFTER_AFTER_BODY:{rp(this,e);break}case Ff.AFTER_AFTER_FRAMESET:{op(this,e);break}}}onEndTag(e){this.skipNextNewLine=false;this.currentToken=e;if(this.currentNotInHTML){fp(this,e)}else{this._endTagOutsideForeignContent(e)}}_endTagOutsideForeignContent(e){switch(this.insertionMode){case Ff.INITIAL:{ih(this,e);break}case Ff.BEFORE_HTML:{sh(this,e);break}case Ff.BEFORE_HEAD:{lh(this,e);break}case Ff.IN_HEAD:{fh(this,e);break}case Ff.IN_HEAD_NO_SCRIPT:{mh(this,e);break}case Ff.AFTER_HEAD:{kh(this,e);break}case Ff.IN_BODY:{dd(this,e);break}case Ff.TEXT:{md(this,e);break}case Ff.IN_TABLE:{Cd(this,e);break}case Ff.IN_TABLE_TEXT:{Ld(this,e);break}case Ff.IN_CAPTION:{Nd(this,e);break}case Ff.IN_COLUMN_GROUP:{Md(this,e);break}case Ff.IN_TABLE_BODY:{Bd(this,e);break}case Ff.IN_ROW:{Hd(this,e);break}case Ff.IN_CELL:{jd(this,e);break}case Ff.IN_SELECT:{Vd(this,e);break}case Ff.IN_SELECT_IN_TABLE:{Wd(this,e);break}case Ff.IN_TEMPLATE:{Kd(this,e);break}case Ff.AFTER_BODY:{Zd(this,e);break}case Ff.IN_FRAMESET:{tp(this,e);break}case Ff.AFTER_FRAMESET:{ip(this,e);break}case Ff.AFTER_AFTER_BODY:{sp(this,e);break}}}onEof(e){switch(this.insertionMode){case Ff.INITIAL:{ih(this,e);break}case Ff.BEFORE_HTML:{oh(this,e);break}case Ff.BEFORE_HEAD:{ch(this,e);break}case Ff.IN_HEAD:{dh(this,e);break}case Ff.IN_HEAD_NO_SCRIPT:{gh(this,e);break}case Ff.AFTER_HEAD:{yh(this,e);break}case Ff.IN_BODY:case Ff.IN_TABLE:case Ff.IN_CAPTION:case Ff.IN_COLUMN_GROUP:case Ff.IN_TABLE_BODY:case Ff.IN_ROW:case Ff.IN_CELL:case Ff.IN_SELECT:case Ff.IN_SELECT_IN_TABLE:{pd(this,e);break}case Ff.TEXT:{gd(this,e);break}case Ff.IN_TABLE_TEXT:{Ld(this,e);break}case Ff.IN_TEMPLATE:{$d(this,e);break}case Ff.AFTER_BODY:case Ff.IN_FRAMESET:case Ff.AFTER_FRAMESET:case Ff.AFTER_AFTER_BODY:case Ff.AFTER_AFTER_FRAMESET:{th(this,e);break}}}onWhitespaceCharacter(e){if(this.skipNextNewLine){this.skipNextNewLine=false;if(e.chars.charCodeAt(0)===du.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 Ff.IN_HEAD:case Ff.IN_HEAD_NO_SCRIPT:case Ff.AFTER_HEAD:case Ff.TEXT:case Ff.IN_COLUMN_GROUP:case Ff.IN_SELECT:case Ff.IN_SELECT_IN_TABLE:case Ff.IN_FRAMESET:case Ff.AFTER_FRAMESET:{this._insertCharacters(e);break}case Ff.IN_BODY:case Ff.IN_CAPTION:case Ff.IN_CELL:case Ff.IN_TEMPLATE:case Ff.AFTER_BODY:case Ff.AFTER_AFTER_BODY:case Ff.AFTER_AFTER_FRAMESET:{Eh(this,e);break}case Ff.IN_TABLE:case Ff.IN_TABLE_BODY:case Ff.IN_ROW:{bd(this,e);break}case Ff.IN_TABLE_TEXT:{_d(this,e);break}}}}function Vf(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{hd(e,t)}return n}function Yf(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 Wf(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>=Bf;const l=!n||a;if(l){if(a){e.activeFormattingElements.removeEntry(n)}e.openElements.remove(o)}else{o=Xf(e,n);if(i===t){e.activeFormattingElements.bookmark=n}e.treeAdapter.detachNode(i);e.treeAdapter.appendChild(o,i);i=o}}return i}function Xf(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 Kf(e,t,n){const i=e.treeAdapter.getTagName(t);const r=Lu(i);if(e._isElementCausesFosterParenting(r)){e._fosterParentElement(n)}else{const i=e.treeAdapter.getNamespaceURI(t);if(r===_u.TEMPLATE&&i===xu.HTML){t=e.treeAdapter.getTemplateContent(t)}e.treeAdapter.appendChild(t,n)}}function $f(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 Qf(e,t){for(let n=0;n<qf;n++){const n=Vf(e,t);if(!n){break}const i=Yf(e,n);if(!i){break}e.activeFormattingElements.bookmark=n;const r=Wf(e,i,n.element);const s=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(r);if(s)Kf(e,s,r);$f(e,i,n)}}function Zf(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Jf(e,t){e._appendCommentNode(t,e.openElements.items[0])}function eh(e,t){e._appendCommentNode(t,e.document)}function th(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 nh(e,t){e._setDocumentType(t);const n=t.forceQuirks?Cu.QUIRKS:Ef(t);if(!wf(t)){e._err(t,wu.nonConformingDoctype)}e.treeAdapter.setDocumentMode(e.document,n);e.insertionMode=Ff.BEFORE_HTML}function ih(e,t){e._err(t,wu.missingDoctype,true);e.treeAdapter.setDocumentMode(e.document,Cu.QUIRKS);e.insertionMode=Ff.BEFORE_HTML;e._processToken(t)}function rh(e,t){if(t.tagID===_u.HTML){e._insertElement(t,xu.HTML);e.insertionMode=Ff.BEFORE_HEAD}else{oh(e,t)}}function sh(e,t){const n=t.tagID;if(n===_u.HTML||n===_u.HEAD||n===_u.BODY||n===_u.BR){oh(e,t)}}function oh(e,t){e._insertFakeRootElement();e.insertionMode=Ff.BEFORE_HEAD;e._processToken(t)}function ah(e,t){switch(t.tagID){case _u.HTML:{td(e,t);break}case _u.HEAD:{e._insertElement(t,xu.HTML);e.headElement=e.openElements.current;e.insertionMode=Ff.IN_HEAD;break}default:{ch(e,t)}}}function lh(e,t){const n=t.tagID;if(n===_u.HEAD||n===_u.BODY||n===_u.HTML||n===_u.BR){ch(e,t)}else{e._err(t,wu.endTagWithoutMatchingOpenElement)}}function ch(e,t){e._insertFakeElement(Du.HEAD,_u.HEAD);e.headElement=e.openElements.current;e.insertionMode=Ff.IN_HEAD;e._processToken(t)}function uh(e,t){switch(t.tagID){case _u.HTML:{td(e,t);break}case _u.BASE:case _u.BASEFONT:case _u.BGSOUND:case _u.LINK:case _u.META:{e._appendElement(t,xu.HTML);t.ackSelfClosing=true;break}case _u.TITLE:{e._switchToTextParsing(t,Mu.RCDATA);break}case _u.NOSCRIPT:{if(e.options.scriptingEnabled){e._switchToTextParsing(t,Mu.RAWTEXT)}else{e._insertElement(t,xu.HTML);e.insertionMode=Ff.IN_HEAD_NO_SCRIPT}break}case _u.NOFRAMES:case _u.STYLE:{e._switchToTextParsing(t,Mu.RAWTEXT);break}case _u.SCRIPT:{e._switchToTextParsing(t,Mu.SCRIPT_DATA);break}case _u.TEMPLATE:{e._insertTemplate(t);e.activeFormattingElements.insertMarker();e.framesetOk=false;e.insertionMode=Ff.IN_TEMPLATE;e.tmplInsertionModeStack.unshift(Ff.IN_TEMPLATE);break}case _u.HEAD:{e._err(t,wu.misplacedStartTagForHeadElement);break}default:{dh(e,t)}}}function fh(e,t){switch(t.tagID){case _u.HEAD:{e.openElements.pop();e.insertionMode=Ff.AFTER_HEAD;break}case _u.BODY:case _u.BR:case _u.HTML:{dh(e,t);break}case _u.TEMPLATE:{hh(e,t);break}default:{e._err(t,wu.endTagWithoutMatchingOpenElement)}}}function hh(e,t){if(e.openElements.tmplCount>0){e.openElements.generateImpliedEndTagsThoroughly();if(e.openElements.currentTagId!==_u.TEMPLATE){e._err(t,wu.closingOfElementWithOpenChildElements)}e.openElements.popUntilTagNamePopped(_u.TEMPLATE);e.activeFormattingElements.clearToLastMarker();e.tmplInsertionModeStack.shift();e._resetInsertionMode()}else{e._err(t,wu.endTagWithoutMatchingOpenElement)}}function dh(e,t){e.openElements.pop();e.insertionMode=Ff.AFTER_HEAD;e._processToken(t)}function ph(e,t){switch(t.tagID){case _u.HTML:{td(e,t);break}case _u.BASEFONT:case _u.BGSOUND:case _u.HEAD:case _u.LINK:case _u.META:case _u.NOFRAMES:case _u.STYLE:{uh(e,t);break}case _u.NOSCRIPT:{e._err(t,wu.nestedNoscriptInHead);break}default:{gh(e,t)}}}function mh(e,t){switch(t.tagID){case _u.NOSCRIPT:{e.openElements.pop();e.insertionMode=Ff.IN_HEAD;break}case _u.BR:{gh(e,t);break}default:{e._err(t,wu.endTagWithoutMatchingOpenElement)}}}function gh(e,t){const n=t.type===vu.EOF?wu.openElementsLeftAfterEof:wu.disallowedContentInNoscriptInHead;e._err(t,n);e.openElements.pop();e.insertionMode=Ff.IN_HEAD;e._processToken(t)}function bh(e,t){switch(t.tagID){case _u.HTML:{td(e,t);break}case _u.BODY:{e._insertElement(t,xu.HTML);e.framesetOk=false;e.insertionMode=Ff.IN_BODY;break}case _u.FRAMESET:{e._insertElement(t,xu.HTML);e.insertionMode=Ff.IN_FRAMESET;break}case _u.BASE:case _u.BASEFONT:case _u.BGSOUND:case _u.LINK:case _u.META:case _u.NOFRAMES:case _u.SCRIPT:case _u.STYLE:case _u.TEMPLATE:case _u.TITLE:{e._err(t,wu.abandonedHeadElementChild);e.openElements.push(e.headElement,_u.HEAD);uh(e,t);e.openElements.remove(e.headElement);break}case _u.HEAD:{e._err(t,wu.misplacedStartTagForHeadElement);break}default:{yh(e,t)}}}function kh(e,t){switch(t.tagID){case _u.BODY:case _u.HTML:case _u.BR:{yh(e,t);break}case _u.TEMPLATE:{hh(e,t);break}default:{e._err(t,wu.endTagWithoutMatchingOpenElement)}}}function yh(e,t){e._insertFakeElement(Du.BODY,_u.BODY);e.insertionMode=Ff.IN_BODY;wh(e,t)}function wh(e,t){switch(t.type){case vu.CHARACTER:{Th(e,t);break}case vu.WHITESPACE_CHARACTER:{Eh(e,t);break}case vu.COMMENT:{Zf(e,t);break}case vu.START_TAG:{td(e,t);break}case vu.END_TAG:{dd(e,t);break}case vu.EOF:{pd(e,t);break}}}function Eh(e,t){e._reconstructActiveFormattingElements();e._insertCharacters(t)}function Th(e,t){e._reconstructActiveFormattingElements();e._insertCharacters(t);e.framesetOk=false}function vh(e,t){if(e.openElements.tmplCount===0){e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}}function Sh(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();if(n&&e.openElements.tmplCount===0){e.framesetOk=false;e.treeAdapter.adoptAttributes(n,t.attrs)}}function xh(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();if(e.framesetOk&&n){e.treeAdapter.detachNode(n);e.openElements.popAllUpToHtmlElement();e._insertElement(t,xu.HTML);e.insertionMode=Ff.IN_FRAMESET}}function Ah(e,t){if(e.openElements.hasInButtonScope(_u.P)){e._closePElement()}e._insertElement(t,xu.HTML)}function Ch(e,t){if(e.openElements.hasInButtonScope(_u.P)){e._closePElement()}if(Nu.has(e.openElements.currentTagId)){e.openElements.pop()}e._insertElement(t,xu.HTML)}function Dh(e,t){if(e.openElements.hasInButtonScope(_u.P)){e._closePElement()}e._insertElement(t,xu.HTML);e.skipNextNewLine=true;e.framesetOk=false}function _h(e,t){const n=e.openElements.tmplCount>0;if(!e.formElement||n){if(e.openElements.hasInButtonScope(_u.P)){e._closePElement()}e._insertElement(t,xu.HTML);if(!n){e.formElement=e.openElements.current}}}function Rh(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===_u.LI&&i===_u.LI||(n===_u.DD||n===_u.DT)&&(i===_u.DD||i===_u.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i);e.openElements.popUntilTagNamePopped(i);break}if(i!==_u.ADDRESS&&i!==_u.DIV&&i!==_u.P&&e._isSpecialElement(e.openElements.items[t],i)){break}}if(e.openElements.hasInButtonScope(_u.P)){e._closePElement()}e._insertElement(t,xu.HTML)}function Lh(e,t){if(e.openElements.hasInButtonScope(_u.P)){e._closePElement()}e._insertElement(t,xu.HTML);e.tokenizer.state=Mu.PLAINTEXT}function Ih(e,t){if(e.openElements.hasInScope(_u.BUTTON)){e.openElements.generateImpliedEndTags();e.openElements.popUntilTagNamePopped(_u.BUTTON)}e._reconstructActiveFormattingElements();e._insertElement(t,xu.HTML);e.framesetOk=false}function Oh(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Du.A);if(n){Qf(e,t);e.openElements.remove(n.element);e.activeFormattingElements.removeEntry(n)}e._reconstructActiveFormattingElements();e._insertElement(t,xu.HTML);e.activeFormattingElements.pushElement(e.openElements.current,t)}function Nh(e,t){e._reconstructActiveFormattingElements();e._insertElement(t,xu.HTML);e.activeFormattingElements.pushElement(e.openElements.current,t)}function Ph(e,t){e._reconstructActiveFormattingElements();if(e.openElements.hasInScope(_u.NOBR)){Qf(e,t);e._reconstructActiveFormattingElements()}e._insertElement(t,xu.HTML);e.activeFormattingElements.pushElement(e.openElements.current,t)}function Mh(e,t){e._reconstructActiveFormattingElements();e._insertElement(t,xu.HTML);e.activeFormattingElements.insertMarker();e.framesetOk=false}function Uh(e,t){if(e.treeAdapter.getDocumentMode(e.document)!==Cu.QUIRKS&&e.openElements.hasInButtonScope(_u.P)){e._closePElement()}e._insertElement(t,xu.HTML);e.framesetOk=false;e.insertionMode=Ff.IN_TABLE}function qh(e,t){e._reconstructActiveFormattingElements();e._appendElement(t,xu.HTML);e.framesetOk=false;t.ackSelfClosing=true}function Bh(e){const t=Su(e,Au.TYPE);return t!=null&&t.toLowerCase()===Uf}function Fh(e,t){e._reconstructActiveFormattingElements();e._appendElement(t,xu.HTML);if(!Bh(t)){e.framesetOk=false}t.ackSelfClosing=true}function Hh(e,t){e._appendElement(t,xu.HTML);t.ackSelfClosing=true}function zh(e,t){if(e.openElements.hasInButtonScope(_u.P)){e._closePElement()}e._appendElement(t,xu.HTML);e.framesetOk=false;t.ackSelfClosing=true}function jh(e,t){t.tagName=Du.IMG;t.tagID=_u.IMG;qh(e,t)}function Gh(e,t){e._insertElement(t,xu.HTML);e.skipNextNewLine=true;e.tokenizer.state=Mu.RCDATA;e.originalInsertionMode=e.insertionMode;e.framesetOk=false;e.insertionMode=Ff.TEXT}function Vh(e,t){if(e.openElements.hasInButtonScope(_u.P)){e._closePElement()}e._reconstructActiveFormattingElements();e.framesetOk=false;e._switchToTextParsing(t,Mu.RAWTEXT)}function Yh(e,t){e.framesetOk=false;e._switchToTextParsing(t,Mu.RAWTEXT)}function Wh(e,t){e._switchToTextParsing(t,Mu.RAWTEXT)}function Xh(e,t){e._reconstructActiveFormattingElements();e._insertElement(t,xu.HTML);e.framesetOk=false;e.insertionMode=e.insertionMode===Ff.IN_TABLE||e.insertionMode===Ff.IN_CAPTION||e.insertionMode===Ff.IN_TABLE_BODY||e.insertionMode===Ff.IN_ROW||e.insertionMode===Ff.IN_CELL?Ff.IN_SELECT_IN_TABLE:Ff.IN_SELECT}function Kh(e,t){if(e.openElements.currentTagId===_u.OPTION){e.openElements.pop()}e._reconstructActiveFormattingElements();e._insertElement(t,xu.HTML)}function $h(e,t){if(e.openElements.hasInScope(_u.RUBY)){e.openElements.generateImpliedEndTags()}e._insertElement(t,xu.HTML)}function Qh(e,t){if(e.openElements.hasInScope(_u.RUBY)){e.openElements.generateImpliedEndTagsWithExclusion(_u.RTC)}e._insertElement(t,xu.HTML)}function Zh(e,t){e._reconstructActiveFormattingElements();Rf(t);If(t);if(t.selfClosing){e._appendElement(t,xu.MATHML)}else{e._insertElement(t,xu.MATHML)}t.ackSelfClosing=true}function Jh(e,t){e._reconstructActiveFormattingElements();Lf(t);If(t);if(t.selfClosing){e._appendElement(t,xu.SVG)}else{e._insertElement(t,xu.SVG)}t.ackSelfClosing=true}function ed(e,t){e._reconstructActiveFormattingElements();e._insertElement(t,xu.HTML)}function td(e,t){switch(t.tagID){case _u.I:case _u.S:case _u.B:case _u.U:case _u.EM:case _u.TT:case _u.BIG:case _u.CODE:case _u.FONT:case _u.SMALL:case _u.STRIKE:case _u.STRONG:{Nh(e,t);break}case _u.A:{Oh(e,t);break}case _u.H1:case _u.H2:case _u.H3:case _u.H4:case _u.H5:case _u.H6:{Ch(e,t);break}case _u.P:case _u.DL:case _u.OL:case _u.UL:case _u.DIV:case _u.DIR:case _u.NAV:case _u.MAIN:case _u.MENU:case _u.ASIDE:case _u.CENTER:case _u.FIGURE:case _u.FOOTER:case _u.HEADER:case _u.HGROUP:case _u.DIALOG:case _u.DETAILS:case _u.ADDRESS:case _u.ARTICLE:case _u.SEARCH:case _u.SECTION:case _u.SUMMARY:case _u.FIELDSET:case _u.BLOCKQUOTE:case _u.FIGCAPTION:{Ah(e,t);break}case _u.LI:case _u.DD:case _u.DT:{Rh(e,t);break}case _u.BR:case _u.IMG:case _u.WBR:case _u.AREA:case _u.EMBED:case _u.KEYGEN:{qh(e,t);break}case _u.HR:{zh(e,t);break}case _u.RB:case _u.RTC:{$h(e,t);break}case _u.RT:case _u.RP:{Qh(e,t);break}case _u.PRE:case _u.LISTING:{Dh(e,t);break}case _u.XMP:{Vh(e,t);break}case _u.SVG:{Jh(e,t);break}case _u.HTML:{vh(e,t);break}case _u.BASE:case _u.LINK:case _u.META:case _u.STYLE:case _u.TITLE:case _u.SCRIPT:case _u.BGSOUND:case _u.BASEFONT:case _u.TEMPLATE:{uh(e,t);break}case _u.BODY:{Sh(e,t);break}case _u.FORM:{_h(e,t);break}case _u.NOBR:{Ph(e,t);break}case _u.MATH:{Zh(e,t);break}case _u.TABLE:{Uh(e,t);break}case _u.INPUT:{Fh(e,t);break}case _u.PARAM:case _u.TRACK:case _u.SOURCE:{Hh(e,t);break}case _u.IMAGE:{jh(e,t);break}case _u.BUTTON:{Ih(e,t);break}case _u.APPLET:case _u.OBJECT:case _u.MARQUEE:{Mh(e,t);break}case _u.IFRAME:{Yh(e,t);break}case _u.SELECT:{Xh(e,t);break}case _u.OPTION:case _u.OPTGROUP:{Kh(e,t);break}case _u.NOEMBED:case _u.NOFRAMES:{Wh(e,t);break}case _u.FRAMESET:{xh(e,t);break}case _u.TEXTAREA:{Gh(e,t);break}case _u.NOSCRIPT:{if(e.options.scriptingEnabled){Wh(e,t)}else{ed(e,t)}break}case _u.PLAINTEXT:{Lh(e,t);break}case _u.COL:case _u.TH:case _u.TD:case _u.TR:case _u.HEAD:case _u.FRAME:case _u.TBODY:case _u.TFOOT:case _u.THEAD:case _u.CAPTION:case _u.COLGROUP:{break}default:{ed(e,t)}}}function nd(e,t){if(e.openElements.hasInScope(_u.BODY)){e.insertionMode=Ff.AFTER_BODY;if(e.options.sourceCodeLocationInfo){const n=e.openElements.tryPeekProperlyNestedBodyElement();if(n){e._setEndLocation(n,t)}}}}function id(e,t){if(e.openElements.hasInScope(_u.BODY)){e.insertionMode=Ff.AFTER_BODY;Zd(e,t)}}function rd(e,t){const n=t.tagID;if(e.openElements.hasInScope(n)){e.openElements.generateImpliedEndTags();e.openElements.popUntilTagNamePopped(n)}}function sd(e){const t=e.openElements.tmplCount>0;const{formElement:n}=e;if(!t){e.formElement=null}if((n||t)&&e.openElements.hasInScope(_u.FORM)){e.openElements.generateImpliedEndTags();if(t){e.openElements.popUntilTagNamePopped(_u.FORM)}else if(n){e.openElements.remove(n)}}}function od(e){if(!e.openElements.hasInButtonScope(_u.P)){e._insertFakeElement(Du.P,_u.P)}e._closePElement()}function ad(e){if(e.openElements.hasInListItemScope(_u.LI)){e.openElements.generateImpliedEndTagsWithExclusion(_u.LI);e.openElements.popUntilTagNamePopped(_u.LI)}}function ld(e,t){const n=t.tagID;if(e.openElements.hasInScope(n)){e.openElements.generateImpliedEndTagsWithExclusion(n);e.openElements.popUntilTagNamePopped(n)}}function cd(e){if(e.openElements.hasNumberedHeaderInScope()){e.openElements.generateImpliedEndTags();e.openElements.popUntilNumberedHeaderPopped()}}function ud(e,t){const n=t.tagID;if(e.openElements.hasInScope(n)){e.openElements.generateImpliedEndTags();e.openElements.popUntilTagNamePopped(n);e.activeFormattingElements.clearToLastMarker()}}function fd(e){e._reconstructActiveFormattingElements();e._insertFakeElement(Du.BR,_u.BR);e.openElements.pop();e.framesetOk=false}function hd(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!==_u.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 dd(e,t){switch(t.tagID){case _u.A:case _u.B:case _u.I:case _u.S:case _u.U:case _u.EM:case _u.TT:case _u.BIG:case _u.CODE:case _u.FONT:case _u.NOBR:case _u.SMALL:case _u.STRIKE:case _u.STRONG:{Qf(e,t);break}case _u.P:{od(e);break}case _u.DL:case _u.UL:case _u.OL:case _u.DIR:case _u.DIV:case _u.NAV:case _u.PRE:case _u.MAIN:case _u.MENU:case _u.ASIDE:case _u.BUTTON:case _u.CENTER:case _u.FIGURE:case _u.FOOTER:case _u.HEADER:case _u.HGROUP:case _u.DIALOG:case _u.ADDRESS:case _u.ARTICLE:case _u.DETAILS:case _u.SEARCH:case _u.SECTION:case _u.SUMMARY:case _u.LISTING:case _u.FIELDSET:case _u.BLOCKQUOTE:case _u.FIGCAPTION:{rd(e,t);break}case _u.LI:{ad(e);break}case _u.DD:case _u.DT:{ld(e,t);break}case _u.H1:case _u.H2:case _u.H3:case _u.H4:case _u.H5:case _u.H6:{cd(e);break}case _u.BR:{fd(e);break}case _u.BODY:{nd(e,t);break}case _u.HTML:{id(e,t);break}case _u.FORM:{sd(e);break}case _u.APPLET:case _u.OBJECT:case _u.MARQUEE:{ud(e,t);break}case _u.TEMPLATE:{hh(e,t);break}default:{hd(e,t)}}}function pd(e,t){if(e.tmplInsertionModeStack.length>0){$d(e,t)}else{th(e,t)}}function md(e,t){var n;if(t.tagID===_u.SCRIPT){(n=e.scriptHandler)===null||n===void 0?void 0:n.call(e,e.openElements.current)}e.openElements.pop();e.insertionMode=e.originalInsertionMode}function gd(e,t){e._err(t,wu.eofInElementThatCanContainOnlyText);e.openElements.pop();e.insertionMode=e.originalInsertionMode;e.onEof(t)}function bd(e,t){if(zf.has(e.openElements.currentTagId)){e.pendingCharacterTokens.length=0;e.hasNonWhitespacePendingCharacterToken=false;e.originalInsertionMode=e.insertionMode;e.insertionMode=Ff.IN_TABLE_TEXT;switch(t.type){case vu.CHARACTER:{Rd(e,t);break}case vu.WHITESPACE_CHARACTER:{_d(e,t);break}}}else{Dd(e,t)}}function kd(e,t){e.openElements.clearBackToTableContext();e.activeFormattingElements.insertMarker();e._insertElement(t,xu.HTML);e.insertionMode=Ff.IN_CAPTION}function yd(e,t){e.openElements.clearBackToTableContext();e._insertElement(t,xu.HTML);e.insertionMode=Ff.IN_COLUMN_GROUP}function wd(e,t){e.openElements.clearBackToTableContext();e._insertFakeElement(Du.COLGROUP,_u.COLGROUP);e.insertionMode=Ff.IN_COLUMN_GROUP;Pd(e,t)}function Ed(e,t){e.openElements.clearBackToTableContext();e._insertElement(t,xu.HTML);e.insertionMode=Ff.IN_TABLE_BODY}function Td(e,t){e.openElements.clearBackToTableContext();e._insertFakeElement(Du.TBODY,_u.TBODY);e.insertionMode=Ff.IN_TABLE_BODY;qd(e,t)}function vd(e,t){if(e.openElements.hasInTableScope(_u.TABLE)){e.openElements.popUntilTagNamePopped(_u.TABLE);e._resetInsertionMode();e._processStartTag(t)}}function Sd(e,t){if(Bh(t)){e._appendElement(t,xu.HTML)}else{Dd(e,t)}t.ackSelfClosing=true}function xd(e,t){if(!e.formElement&&e.openElements.tmplCount===0){e._insertElement(t,xu.HTML);e.formElement=e.openElements.current;e.openElements.pop()}}function Ad(e,t){switch(t.tagID){case _u.TD:case _u.TH:case _u.TR:{Td(e,t);break}case _u.STYLE:case _u.SCRIPT:case _u.TEMPLATE:{uh(e,t);break}case _u.COL:{wd(e,t);break}case _u.FORM:{xd(e,t);break}case _u.TABLE:{vd(e,t);break}case _u.TBODY:case _u.TFOOT:case _u.THEAD:{Ed(e,t);break}case _u.INPUT:{Sd(e,t);break}case _u.CAPTION:{kd(e,t);break}case _u.COLGROUP:{yd(e,t);break}default:{Dd(e,t)}}}function Cd(e,t){switch(t.tagID){case _u.TABLE:{if(e.openElements.hasInTableScope(_u.TABLE)){e.openElements.popUntilTagNamePopped(_u.TABLE);e._resetInsertionMode()}break}case _u.TEMPLATE:{hh(e,t);break}case _u.BODY:case _u.CAPTION:case _u.COL:case _u.COLGROUP:case _u.HTML:case _u.TBODY:case _u.TD:case _u.TFOOT:case _u.TH:case _u.THEAD:case _u.TR:{break}default:{Dd(e,t)}}}function Dd(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=true;wh(e,t);e.fosterParentingEnabled=n}function _d(e,t){e.pendingCharacterTokens.push(t)}function Rd(e,t){e.pendingCharacterTokens.push(t);e.hasNonWhitespacePendingCharacterToken=true}function Ld(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken){for(;n<e.pendingCharacterTokens.length;n++){Dd(e,e.pendingCharacterTokens[n])}}else{for(;n<e.pendingCharacterTokens.length;n++){e._insertCharacters(e.pendingCharacterTokens[n])}}e.insertionMode=e.originalInsertionMode;e._processToken(t)}const Id=new Set([_u.CAPTION,_u.COL,_u.COLGROUP,_u.TBODY,_u.TD,_u.TFOOT,_u.TH,_u.THEAD,_u.TR]);function Od(e,t){const n=t.tagID;if(Id.has(n)){if(e.openElements.hasInTableScope(_u.CAPTION)){e.openElements.generateImpliedEndTags();e.openElements.popUntilTagNamePopped(_u.CAPTION);e.activeFormattingElements.clearToLastMarker();e.insertionMode=Ff.IN_TABLE;Ad(e,t)}}else{td(e,t)}}function Nd(e,t){const n=t.tagID;switch(n){case _u.CAPTION:case _u.TABLE:{if(e.openElements.hasInTableScope(_u.CAPTION)){e.openElements.generateImpliedEndTags();e.openElements.popUntilTagNamePopped(_u.CAPTION);e.activeFormattingElements.clearToLastMarker();e.insertionMode=Ff.IN_TABLE;if(n===_u.TABLE){Cd(e,t)}}break}case _u.BODY:case _u.COL:case _u.COLGROUP:case _u.HTML:case _u.TBODY:case _u.TD:case _u.TFOOT:case _u.TH:case _u.THEAD:case _u.TR:{break}default:{dd(e,t)}}}function Pd(e,t){switch(t.tagID){case _u.HTML:{td(e,t);break}case _u.COL:{e._appendElement(t,xu.HTML);t.ackSelfClosing=true;break}case _u.TEMPLATE:{uh(e,t);break}default:{Ud(e,t)}}}function Md(e,t){switch(t.tagID){case _u.COLGROUP:{if(e.openElements.currentTagId===_u.COLGROUP){e.openElements.pop();e.insertionMode=Ff.IN_TABLE}break}case _u.TEMPLATE:{hh(e,t);break}case _u.COL:{break}default:{Ud(e,t)}}}function Ud(e,t){if(e.openElements.currentTagId===_u.COLGROUP){e.openElements.pop();e.insertionMode=Ff.IN_TABLE;e._processToken(t)}}function qd(e,t){switch(t.tagID){case _u.TR:{e.openElements.clearBackToTableBodyContext();e._insertElement(t,xu.HTML);e.insertionMode=Ff.IN_ROW;break}case _u.TH:case _u.TD:{e.openElements.clearBackToTableBodyContext();e._insertFakeElement(Du.TR,_u.TR);e.insertionMode=Ff.IN_ROW;Fd(e,t);break}case _u.CAPTION:case _u.COL:case _u.COLGROUP:case _u.TBODY:case _u.TFOOT:case _u.THEAD:{if(e.openElements.hasTableBodyContextInTableScope()){e.openElements.clearBackToTableBodyContext();e.openElements.pop();e.insertionMode=Ff.IN_TABLE;Ad(e,t)}break}default:{Ad(e,t)}}}function Bd(e,t){const n=t.tagID;switch(t.tagID){case _u.TBODY:case _u.TFOOT:case _u.THEAD:{if(e.openElements.hasInTableScope(n)){e.openElements.clearBackToTableBodyContext();e.openElements.pop();e.insertionMode=Ff.IN_TABLE}break}case _u.TABLE:{if(e.openElements.hasTableBodyContextInTableScope()){e.openElements.clearBackToTableBodyContext();e.openElements.pop();e.insertionMode=Ff.IN_TABLE;Cd(e,t)}break}case _u.BODY:case _u.CAPTION:case _u.COL:case _u.COLGROUP:case _u.HTML:case _u.TD:case _u.TH:case _u.TR:{break}default:{Cd(e,t)}}}function Fd(e,t){switch(t.tagID){case _u.TH:case _u.TD:{e.openElements.clearBackToTableRowContext();e._insertElement(t,xu.HTML);e.insertionMode=Ff.IN_CELL;e.activeFormattingElements.insertMarker();break}case _u.CAPTION:case _u.COL:case _u.COLGROUP:case _u.TBODY:case _u.TFOOT:case _u.THEAD:case _u.TR:{if(e.openElements.hasInTableScope(_u.TR)){e.openElements.clearBackToTableRowContext();e.openElements.pop();e.insertionMode=Ff.IN_TABLE_BODY;qd(e,t)}break}default:{Ad(e,t)}}}function Hd(e,t){switch(t.tagID){case _u.TR:{if(e.openElements.hasInTableScope(_u.TR)){e.openElements.clearBackToTableRowContext();e.openElements.pop();e.insertionMode=Ff.IN_TABLE_BODY}break}case _u.TABLE:{if(e.openElements.hasInTableScope(_u.TR)){e.openElements.clearBackToTableRowContext();e.openElements.pop();e.insertionMode=Ff.IN_TABLE_BODY;Bd(e,t)}break}case _u.TBODY:case _u.TFOOT:case _u.THEAD:{if(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(_u.TR)){e.openElements.clearBackToTableRowContext();e.openElements.pop();e.insertionMode=Ff.IN_TABLE_BODY;Bd(e,t)}break}case _u.BODY:case _u.CAPTION:case _u.COL:case _u.COLGROUP:case _u.HTML:case _u.TD:case _u.TH:{break}default:{Cd(e,t)}}}function zd(e,t){const n=t.tagID;if(Id.has(n)){if(e.openElements.hasInTableScope(_u.TD)||e.openElements.hasInTableScope(_u.TH)){e._closeTableCell();Fd(e,t)}}else{td(e,t)}}function jd(e,t){const n=t.tagID;switch(n){case _u.TD:case _u.TH:{if(e.openElements.hasInTableScope(n)){e.openElements.generateImpliedEndTags();e.openElements.popUntilTagNamePopped(n);e.activeFormattingElements.clearToLastMarker();e.insertionMode=Ff.IN_ROW}break}case _u.TABLE:case _u.TBODY:case _u.TFOOT:case _u.THEAD:case _u.TR:{if(e.openElements.hasInTableScope(n)){e._closeTableCell();Hd(e,t)}break}case _u.BODY:case _u.CAPTION:case _u.COL:case _u.COLGROUP:case _u.HTML:{break}default:{dd(e,t)}}}function Gd(e,t){switch(t.tagID){case _u.HTML:{td(e,t);break}case _u.OPTION:{if(e.openElements.currentTagId===_u.OPTION){e.openElements.pop()}e._insertElement(t,xu.HTML);break}case _u.OPTGROUP:{if(e.openElements.currentTagId===_u.OPTION){e.openElements.pop()}if(e.openElements.currentTagId===_u.OPTGROUP){e.openElements.pop()}e._insertElement(t,xu.HTML);break}case _u.HR:{if(e.openElements.currentTagId===_u.OPTION){e.openElements.pop()}if(e.openElements.currentTagId===_u.OPTGROUP){e.openElements.pop()}e._appendElement(t,xu.HTML);t.ackSelfClosing=true;break}case _u.INPUT:case _u.KEYGEN:case _u.TEXTAREA:case _u.SELECT:{if(e.openElements.hasInSelectScope(_u.SELECT)){e.openElements.popUntilTagNamePopped(_u.SELECT);e._resetInsertionMode();if(t.tagID!==_u.SELECT){e._processStartTag(t)}}break}case _u.SCRIPT:case _u.TEMPLATE:{uh(e,t);break}}}function Vd(e,t){switch(t.tagID){case _u.OPTGROUP:{if(e.openElements.stackTop>0&&e.openElements.currentTagId===_u.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===_u.OPTGROUP){e.openElements.pop()}if(e.openElements.currentTagId===_u.OPTGROUP){e.openElements.pop()}break}case _u.OPTION:{if(e.openElements.currentTagId===_u.OPTION){e.openElements.pop()}break}case _u.SELECT:{if(e.openElements.hasInSelectScope(_u.SELECT)){e.openElements.popUntilTagNamePopped(_u.SELECT);e._resetInsertionMode()}break}case _u.TEMPLATE:{hh(e,t);break}}}function Yd(e,t){const n=t.tagID;if(n===_u.CAPTION||n===_u.TABLE||n===_u.TBODY||n===_u.TFOOT||n===_u.THEAD||n===_u.TR||n===_u.TD||n===_u.TH){e.openElements.popUntilTagNamePopped(_u.SELECT);e._resetInsertionMode();e._processStartTag(t)}else{Gd(e,t)}}function Wd(e,t){const n=t.tagID;if(n===_u.CAPTION||n===_u.TABLE||n===_u.TBODY||n===_u.TFOOT||n===_u.THEAD||n===_u.TR||n===_u.TD||n===_u.TH){if(e.openElements.hasInTableScope(n)){e.openElements.popUntilTagNamePopped(_u.SELECT);e._resetInsertionMode();e.onEndTag(t)}}else{Vd(e,t)}}function Xd(e,t){switch(t.tagID){case _u.BASE:case _u.BASEFONT:case _u.BGSOUND:case _u.LINK:case _u.META:case _u.NOFRAMES:case _u.SCRIPT:case _u.STYLE:case _u.TEMPLATE:case _u.TITLE:{uh(e,t);break}case _u.CAPTION:case _u.COLGROUP:case _u.TBODY:case _u.TFOOT:case _u.THEAD:{e.tmplInsertionModeStack[0]=Ff.IN_TABLE;e.insertionMode=Ff.IN_TABLE;Ad(e,t);break}case _u.COL:{e.tmplInsertionModeStack[0]=Ff.IN_COLUMN_GROUP;e.insertionMode=Ff.IN_COLUMN_GROUP;Pd(e,t);break}case _u.TR:{e.tmplInsertionModeStack[0]=Ff.IN_TABLE_BODY;e.insertionMode=Ff.IN_TABLE_BODY;qd(e,t);break}case _u.TD:case _u.TH:{e.tmplInsertionModeStack[0]=Ff.IN_ROW;e.insertionMode=Ff.IN_ROW;Fd(e,t);break}default:{e.tmplInsertionModeStack[0]=Ff.IN_BODY;e.insertionMode=Ff.IN_BODY;td(e,t)}}}function Kd(e,t){if(t.tagID===_u.TEMPLATE){hh(e,t)}}function $d(e,t){if(e.openElements.tmplCount>0){e.openElements.popUntilTagNamePopped(_u.TEMPLATE);e.activeFormattingElements.clearToLastMarker();e.tmplInsertionModeStack.shift();e._resetInsertionMode();e.onEof(t)}else{th(e,t)}}function Qd(e,t){if(t.tagID===_u.HTML){td(e,t)}else{Jd(e,t)}}function Zd(e,t){var n;if(t.tagID===_u.HTML){if(!e.fragmentContext){e.insertionMode=Ff.AFTER_AFTER_BODY}if(e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===_u.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{Jd(e,t)}}function Jd(e,t){e.insertionMode=Ff.IN_BODY;wh(e,t)}function ep(e,t){switch(t.tagID){case _u.HTML:{td(e,t);break}case _u.FRAMESET:{e._insertElement(t,xu.HTML);break}case _u.FRAME:{e._appendElement(t,xu.HTML);t.ackSelfClosing=true;break}case _u.NOFRAMES:{uh(e,t);break}}}function tp(e,t){if(t.tagID===_u.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()){e.openElements.pop();if(!e.fragmentContext&&e.openElements.currentTagId!==_u.FRAMESET){e.insertionMode=Ff.AFTER_FRAMESET}}}function np(e,t){switch(t.tagID){case _u.HTML:{td(e,t);break}case _u.NOFRAMES:{uh(e,t);break}}}function ip(e,t){if(t.tagID===_u.HTML){e.insertionMode=Ff.AFTER_AFTER_FRAMESET}}function rp(e,t){if(t.tagID===_u.HTML){td(e,t)}else{sp(e,t)}}function sp(e,t){e.insertionMode=Ff.IN_BODY;wh(e,t)}function op(e,t){switch(t.tagID){case _u.HTML:{td(e,t);break}case _u.NOFRAMES:{uh(e,t);break}}}function ap(e,t){t.chars=hu;e._insertCharacters(t)}function lp(e,t){e._insertCharacters(t);e.framesetOk=false}function cp(e){while(e.treeAdapter.getNamespaceURI(e.openElements.current)!==xu.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current)){e.openElements.pop()}}function up(e,t){if(_f(t)){cp(e);e._startTagOutsideForeignContent(t)}else{const n=e._getAdjustedCurrentElement();const i=e.treeAdapter.getNamespaceURI(n);if(i===xu.MATHML){Rf(t)}else if(i===xu.SVG){Of(t);Lf(t)}If(t);if(t.selfClosing){e._appendElement(t,i)}else{e._insertElement(t,i)}t.ackSelfClosing=true}}function fp(e,t){if(t.tagID===_u.P||t.tagID===_u.BR){cp(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)===xu.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 hp(e,t){return Gf.parse(e,t)}function dp(e,t,n){if(typeof e==="string"){n=t;t=e;e=null}const i=Gf.getFragmentParser(e,n);i.tokenizer.write(t,true);return i.getFragment()}function pp(e){if(!e||typeof e!=="object"){return""}if("position"in e||"type"in e){return gp(e.position)}if("start"in e||"end"in e){return gp(e)}if("line"in e||"column"in e){return mp(e)}return""}function mp(e){return bp(e&&e.line)+":"+bp(e&&e.column)}function gp(e){return mp(e&&e.start)+"-"+mp(e&&e.end)}function bp(e){return e&&typeof e==="number"?e:1}class kp 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=pp(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:""}}kp.prototype.file="";kp.prototype.name="";kp.prototype.reason="";kp.prototype.message="";kp.prototype.stack="";kp.prototype.column=undefined;kp.prototype.line=undefined;kp.prototype.ancestors=undefined;kp.prototype.cause=undefined;kp.prototype.fatal=undefined;kp.prototype.place=undefined;kp.prototype.ruleId=undefined;kp.prototype.source=undefined;const yp={basename:wp,dirname:Ep,extname:Tp,join:vp,sep:"/"};function wp(e,t){if(t!==undefined&&typeof t!=="string"){throw new TypeError('"ext" argument must be a string')}Ap(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 Ep(e){Ap(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 Tp(e){Ap(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 vp(...e){let t=-1;let n;while(++t<e.length){Ap(e[t]);if(e[t]){n=n===undefined?e[t]:n+"/"+e[t]}}return n===undefined?".":Sp(n)}function Sp(e){Ap(e);const t=e.codePointAt(0)===47;let n=xp(e,!t);if(n.length===0&&!t){n="."}if(n.length>0&&e.codePointAt(e.length-1)===47){n+="/"}return t?"/"+n:n}function xp(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 Ap(e){if(typeof e!=="string"){throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}}const Cp={cwd:Dp};function Dp(){return"/"}function _p(e){return Boolean(e!==null&&typeof e==="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===undefined)}function Rp(e){if(typeof e==="string"){e=new URL(e)}else if(!_p(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 Lp(e)}function Lp(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 Ip=["history","path","basename","stem","extname","dirname"];class Op{constructor(e){let t;if(!e){t={}}else if(_p(e)){t={path:e}}else if(typeof e==="string"||Up(e)){t={value:e}}else{t=e}this.cwd="cwd"in t?"":Cp.cwd();this.data={};this.history=[];this.messages=[];let n=-1;while(++n<Ip.length){const e=Ip[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(!Ip.includes(i)){this[i]=t[i]}}}get basename(){return typeof this.path==="string"?yp.basename(this.path):undefined}set basename(e){Pp(e,"basename");Np(e,"basename");this.path=yp.join(this.dirname||"",e)}get dirname(){return typeof this.path==="string"?yp.dirname(this.path):undefined}set dirname(e){Mp(this.basename,"dirname");this.path=yp.join(e||"",this.basename)}get extname(){return typeof this.path==="string"?yp.extname(this.path):undefined}set extname(e){Np(e,"extname");Mp(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=yp.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){if(_p(e)){e=Rp(e)}Pp(e,"path");if(this.path!==e){this.history.push(e)}}get stem(){return typeof this.path==="string"?yp.basename(this.path,this.extname):undefined}set stem(e){Pp(e,"stem");Np(e,"stem");this.path=yp.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 kp(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 Np(e,t){if(e&&e.includes(yp.sep)){throw new Error("`"+t+"` cannot be a path: did not expect `"+yp.sep+"`")}}function Pp(e,t){if(!e){throw new Error("`"+t+"` cannot be empty")}}function Mp(e,t){if(!e){throw new Error("Setting `"+t+"` requires `path` to be set too")}}function Up(e){return Boolean(e&&typeof e==="object"&&"byteLength"in e&&"byteOffset"in e)}const qp={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 Bp="https://html.spec.whatwg.org/multipage/parsing.html#parse-error-";const Fp=/-[a-z]/g;const Hp=/%c(?:([-+])(\d+))?/g;const zp=/%x/g;const jp={2:true,1:false,0:null};const Gp={};function Vp(e,t){const n=t||Gp;const i=n.onerror;const r=e instanceof Op?e:new Op(e);const s=n.fragment?dp:hp;const o=String(r);const a=s(o,{sourceCodeLocationInfo:true,onParseError:n.onerror?l:null,scriptingEnabled:false});return iu(a,{file:r,space:n.space,verbose:n.verbose});function l(e){const t=e.code;const s=Yp(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=qp[s];const o=new kp(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=jp[c];o.note=u(n.description);o.url=n.url===false?undefined:Bp+t;i(o)}function u(t){return t.replace(Hp,n).replace(zp,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 Xp(s)}function i(){return Kp(o.charCodeAt(e.startOffset))}}}}function Yp(e){return e.replace(Fp,Wp)}function Wp(e){return e.charAt(1).toUpperCase()}function Xp(e){return e==="`"?"` ` `":e}function Kp(e){return"0x"+e.toString(16).toUpperCase()}function $p(e){const t=this;const{emitParseErrors:n,...i}={...t.data("settings"),...e};t.parser=r;function r(e,t){return Vp(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 Qp=function(e){if(e===null||e===undefined){return tm}if(typeof e==="string"){return Jp(e)}if(typeof e==="object"){return Zp(e)}if(typeof e==="function"){return em(e)}throw new Error("Expected function, string, or array as `test`")};function Zp(e){const t=[];let n=-1;while(++n<e.length){t[n]=Qp(e[n])}return em(i);function i(...e){let n=-1;while(++n<t.length){if(t[n].apply(this,e))return true}return false}}function Jp(e){return em(t);function t(t){return t.tagName===e}}function em(e){return t;function t(t,n,i){return Boolean(nm(t)&&e.call(this,t,typeof n==="number"?n:undefined,i||undefined))}}function tm(e){return Boolean(e&&typeof e==="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName==="string")}function nm(e){return e!==null&&typeof e==="object"&&"type"in e&&"tagName"in e}const im=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/;const rm=/^[a-zA-Z]:\\/;function sm(e){if(typeof e!=="string"){throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``)}if(rm.test(e)){return false}return im.test(e)}function om(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}const am=["http","https"];const lm=["nofollow"];const cm={};function um(e){const t=e||cm;const n=t.protocols||am;const i=Qp(t.test);return function(e){Vr(e,"element",(function(e,r,s){if(e.tagName==="a"&&typeof e.properties.href==="string"&&i(e,r,s)){const i=e.properties.href;if(sm(i)?n.includes(i.slice(0,i.indexOf(":"))):i.startsWith("//")){const n=fm(t.content,e);const i=n&&!Array.isArray(n)?[n]:n;const r=fm(t.rel,e)||lm;const s=typeof r==="string"?om(r):r;const o=fm(t.target,e);const a=fm(t.properties,e);if(a){Object.assign(e.properties,Cr(a))}if(s.length>0){e.properties.rel=[...s]}if(o){e.properties.target=o}if(i){const n=fm(t.contentProperties,e)||{};e.children.push({type:"element",tagName:"span",properties:Cr(n),children:Cr(i)})}}}}))}}function fm(e,t){return typeof e==="function"?e(t):e}const hm=pm("end");const dm=pm("start");function pm(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 mm(e){const t=dm(e);const n=hm(e);if(t&&n){return{start:t,end:n}}}const gm=["ariaDescribedBy","ariaLabel","ariaLabelledBy"];const bm={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...gm,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...gm],h2:[["id","footnote-label"],["className","sr-only"]],img:[...gm,"longDesc","src"],input:[["disabled",true],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...gm,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...gm],table:[...gm],ul:[...gm,["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 km={}.hasOwnProperty;function ym(e,t){let n={type:"root",children:[]};const i={schema:t?{...bm,...t}:bm,stack:[]};const r=wm(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 wm(e,t){if(t&&typeof t==="object"){const n=t;const i=typeof n.type==="string"?n.type:"";switch(i){case"comment":{return Em(e,n)}case"doctype":{return Tm(e,n)}case"element":{return vm(e,n)}case"root":{return Sm(e,n)}case"text":{return xm(e,n)}}}}function Em(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};Lm(r,t);return r}}function Tm(e,t){if(e.schema.allowDoctypes){const e={type:"doctype"};Lm(e,t);return e}}function vm(e,t){const n=typeof t.tagName==="string"?t.tagName:"";e.stack.push(n);const i=Am(e,t.children);const r=Cm(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&&km.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};Lm(o,t);return o}function Sm(e,t){const n=Am(e,t.children);const i={type:"root",children:n};Lm(i,t);return i}function xm(e,t){const n=typeof t.value==="string"?t.value:"";const i={type:"text",value:n};Lm(i,t);return i}function Am(e,t){const n=[];if(Array.isArray(t)){const i=t;let r=-1;while(++r<i.length){const t=wm(e,i[r]);if(t){if(Array.isArray(t)){n.push(...t)}else{n.push(t)}}}}return n}function Cm(e,t){const n=e.stack[e.stack.length-1];const i=e.schema.attributes;const r=e.schema.required;const s=i&&km.call(i,n)?i[n]:undefined;const o=i&&km.call(i,"*")?i["*"]:undefined;const a=t&&typeof t==="object"?t:{};const l={};let c;for(c in a){if(km.call(a,c)){let t;if(s)t=Im(s,c);if(!t&&o)t=Im(o,c);if(t){const n=a[c];const i=Array.isArray(n)?Dm(e,t,c,n):_m(e,t,c,n);if(i!==null&&i!==undefined){l[c]=i}}}}if(r&&km.call(r,n)){const e=r[n];for(c in e){if(km.call(e,c)&&!km.call(l,c)){l[c]=e[c]}}}return l}function Dm(e,t,n,i){let r=-1;const s=[];while(++r<i.length){const o=_m(e,t,n,i[r]);if(typeof o==="number"||typeof o==="string"){s.push(o)}}return s}function _m(e,t,n,i){if(typeof i!=="boolean"&&typeof i!=="number"&&typeof i!=="string"){return}if(!Rm(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 Rm(e,t,n){const i=e.schema.protocols&&km.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 Lm(e,t){const n=mm(t);if(t.data){e.data=Cr(t.data)}if(n)e.position=n}function Im(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 Om(e){return function(t){const n=ym(t,e);return n}}const Nm=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Pm{constructor(e,t,n){this.property=e;this.normal=t;if(n){this.space=n}}}Pm.prototype.property={};Pm.prototype.normal={};Pm.prototype.space=null;function Mm(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 Pm(n,i,t)}function Um(e){return e.toLowerCase()}class qm{constructor(e,t){this.property=e;this.attribute=t}}qm.prototype.space=null;qm.prototype.boolean=false;qm.prototype.booleanish=false;qm.prototype.overloadedBoolean=false;qm.prototype.number=false;qm.prototype.commaSeparated=false;qm.prototype.spaceSeparated=false;qm.prototype.commaOrSpaceSeparated=false;qm.prototype.mustUseProperty=false;qm.prototype.defined=false;let Bm=0;const Fm=Wm();const Hm=Wm();const zm=Wm();const jm=Wm();const Gm=Wm();const Vm=Wm();const Ym=Wm();function Wm(){return 2**++Bm}const Xm=Object.freeze({__proto__:null,boolean:Fm,booleanish:Hm,overloadedBoolean:zm,number:jm,spaceSeparated:Gm,commaSeparated:Vm,commaOrSpaceSeparated:Ym});const Km=Object.keys(Xm);class $m extends qm{constructor(e,t,n,i){let r=-1;super(e,t);Qm(this,"space",i);if(typeof n==="number"){while(++r<Km.length){const e=Km[r];Qm(this,Km[r],(n&Xm[e])===Xm[e])}}}}$m.prototype.defined=true;function Qm(e,t,n){if(n){e[t]=n}}const Zm={}.hasOwnProperty;function Jm(e){const t={};const n={};let i;for(i in e.properties){if(Zm.call(e.properties,i)){const r=e.properties[i];const s=new $m(i,e.transform(e.attributes||{},i),r,e.space);if(e.mustUseProperty&&e.mustUseProperty.includes(i)){s.mustUseProperty=true}t[i]=s;n[Um(i)]=i;n[Um(s.attribute)]=i}}return new Pm(t,n,e.space)}const eg=Jm({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 tg=Jm({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function ng(e,t){return t in e?e[t]:t}function ig(e,t){return ng(e,t.toLowerCase())}const rg=Jm({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:ig,properties:{xmlns:null,xmlnsXLink:null}});const sg=Jm({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Hm,ariaAutoComplete:null,ariaBusy:Hm,ariaChecked:Hm,ariaColCount:jm,ariaColIndex:jm,ariaColSpan:jm,ariaControls:Gm,ariaCurrent:null,ariaDescribedBy:Gm,ariaDetails:null,ariaDisabled:Hm,ariaDropEffect:Gm,ariaErrorMessage:null,ariaExpanded:Hm,ariaFlowTo:Gm,ariaGrabbed:Hm,ariaHasPopup:null,ariaHidden:Hm,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Gm,ariaLevel:jm,ariaLive:null,ariaModal:Hm,ariaMultiLine:Hm,ariaMultiSelectable:Hm,ariaOrientation:null,ariaOwns:Gm,ariaPlaceholder:null,ariaPosInSet:jm,ariaPressed:Hm,ariaReadOnly:Hm,ariaRelevant:null,ariaRequired:Hm,ariaRoleDescription:Gm,ariaRowCount:jm,ariaRowIndex:jm,ariaRowSpan:jm,ariaSelected:Hm,ariaSetSize:jm,ariaSort:null,ariaValueMax:jm,ariaValueMin:jm,ariaValueNow:jm,ariaValueText:null,role:null}});const og=Jm({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:ig,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Vm,acceptCharset:Gm,accessKey:Gm,action:null,allow:null,allowFullScreen:Fm,allowPaymentRequest:Fm,allowUserMedia:Fm,alt:null,as:null,async:Fm,autoCapitalize:null,autoComplete:Gm,autoFocus:Fm,autoPlay:Fm,blocking:Gm,capture:Fm,charSet:null,checked:Fm,cite:null,className:Gm,cols:jm,colSpan:null,content:null,contentEditable:Hm,controls:Fm,controlsList:Gm,coords:jm|Vm,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Fm,defer:Fm,dir:null,dirName:null,disabled:Fm,download:zm,draggable:Hm,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Fm,formTarget:null,headers:Gm,height:jm,hidden:Fm,high:jm,href:null,hrefLang:null,htmlFor:Gm,httpEquiv:Gm,id:null,imageSizes:null,imageSrcSet:null,inert:Fm,inputMode:null,integrity:null,is:null,isMap:Fm,itemId:null,itemProp:Gm,itemRef:Gm,itemScope:Fm,itemType:Gm,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Fm,low:jm,manifest:null,max:null,maxLength:jm,media:null,method:null,min:null,minLength:jm,multiple:Fm,muted:Fm,name:null,nonce:null,noModule:Fm,noValidate:Fm,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:Fm,optimum:jm,pattern:null,ping:Gm,placeholder:null,playsInline:Fm,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Fm,referrerPolicy:null,rel:Gm,required:Fm,reversed:Fm,rows:jm,rowSpan:jm,sandbox:Gm,scope:null,scoped:Fm,seamless:Fm,selected:Fm,shape:null,size:jm,sizes:null,slot:null,span:jm,spellCheck:Hm,src:null,srcDoc:null,srcLang:null,srcSet:null,start:jm,step:null,style:null,tabIndex:jm,target:null,title:null,translate:null,type:null,typeMustMatch:Fm,useMap:null,value:Hm,width:jm,wrap:null,align:null,aLink:null,archive:Gm,axis:null,background:null,bgColor:null,border:jm,borderColor:null,bottomMargin:jm,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Fm,declare:Fm,event:null,face:null,frame:null,frameBorder:null,hSpace:jm,leftMargin:jm,link:null,longDesc:null,lowSrc:null,marginHeight:jm,marginWidth:jm,noResize:Fm,noHref:Fm,noShade:Fm,noWrap:Fm,object:null,profile:null,prompt:null,rev:null,rightMargin:jm,rules:null,scheme:null,scrolling:Hm,standby:null,summary:null,text:null,topMargin:jm,valueType:null,version:null,vAlign:null,vLink:null,vSpace:jm,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Fm,disableRemotePlayback:Fm,prefix:null,property:null,results:jm,security:null,unselectable:null}});const ag=Jm({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:ng,properties:{about:Ym,accentHeight:jm,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:jm,amplitude:jm,arabicForm:null,ascent:jm,attributeName:null,attributeType:null,azimuth:jm,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:jm,by:null,calcMode:null,capHeight:jm,className:Gm,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:jm,diffuseConstant:jm,direction:null,display:null,dur:null,divisor:jm,dominantBaseline:null,download:Fm,dx:null,dy:null,edgeMode:null,editable:null,elevation:jm,enableBackground:null,end:null,event:null,exponent:jm,externalResourcesRequired:null,fill:null,fillOpacity:jm,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:Vm,g2:Vm,glyphName:Vm,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:jm,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:jm,horizOriginX:jm,horizOriginY:jm,id:null,ideographic:jm,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:jm,k:jm,k1:jm,k2:jm,k3:jm,k4:jm,kernelMatrix:Ym,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:jm,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:jm,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:jm,overlineThickness:jm,paintOrder:null,panose1:null,path:null,pathLength:jm,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Gm,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:jm,pointsAtY:jm,pointsAtZ:jm,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ym,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ym,rev:Ym,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ym,requiredFeatures:Ym,requiredFonts:Ym,requiredFormats:Ym,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:jm,specularExponent:jm,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:jm,strikethroughThickness:jm,string:null,stroke:null,strokeDashArray:Ym,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:jm,strokeOpacity:jm,strokeWidth:null,style:null,surfaceScale:jm,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ym,tabIndex:jm,tableValues:null,target:null,targetX:jm,targetY:jm,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ym,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:jm,underlineThickness:jm,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:jm,values:null,vAlphabetic:jm,vMathematical:jm,vectorEffect:null,vHanging:jm,vIdeographic:jm,version:null,vertAdvY:jm,vertOriginX:jm,vertOriginY:jm,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:jm,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}});const lg=/^data[-\w.:]+$/i;const cg=/-[a-z]/g;const ug=/[A-Z]/g;function fg(e,t){const n=Um(t);let i=t;let r=qm;if(n in e.normal){return e.property[e.normal[n]]}if(n.length>4&&n.slice(0,4)==="data"&&lg.test(t)){if(t.charAt(4)==="-"){const e=t.slice(5).replace(cg,dg);i="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!cg.test(e)){let n=e.replace(ug,hg);if(n.charAt(0)!=="-"){n="-"+n}t="data"+n}}r=$m}return new r(i,t)}function hg(e){return"-"+e.toLowerCase()}function dg(e){return e.charAt(1).toUpperCase()}const pg=Mm([tg,eg,rg,sg,og],"html");const mg=Mm([tg,eg,rg,sg,ag],"svg");const gg={}.hasOwnProperty;function bg(e,t){const n=t||{};function i(t,...n){let r=i.invalid;const s=i.handlers;if(t&&gg.call(t,e)){const n=String(t[e]);r=gg.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 kg(e,t){e=e.replace(t.subset?yg(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 yg(e){const t=[];let n=-1;while(++n<e.length){t.push(e[n].replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"))}return new RegExp("(?:"+t.join("|")+")","g")}function wg(e,t,n){const i="&#x"+e.toString(16).toUpperCase();return n&&t&&!/[\dA-Fa-f]/.test(String.fromCharCode(t))?i:i+";"}function Eg(e,t,n){const i="&#"+String(e);return n&&t&&!/\d/.test(String.fromCharCode(t))?i:i+";"}const Tg=["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 vg={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 Sg=["cent","copy","divide","gt","lt","not","para","times"];const xg={}.hasOwnProperty;const Ag={};let Cg;for(Cg in vg){if(xg.call(vg,Cg)){Ag[vg[Cg]]=Cg}}function Dg(e,t,n,i){const r=String.fromCharCode(e);if(xg.call(Ag,r)){const e=Ag[r];const s="&"+e;if(n&&Tg.includes(e)&&!Sg.includes(e)&&(!i||t&&t!==61&&/[^\da-z]/i.test(String.fromCharCode(t)))){return s}return s+";"}return""}function _g(e,t,n){let i=wg(e,t,n.omitOptionalSemicolons);let r;if(n.useNamedReferences||n.useShortestReferences){r=Dg(e,t,n.omitOptionalSemicolons,n.attribute)}if((n.useShortestReferences||!r)&&n.useShortestReferences){const r=Eg(e,t,n.omitOptionalSemicolons);if(r.length<i.length){i=r}}return r&&(!n.useShortestReferences||r.length<i.length)?r:i}function Rg(e,t){return kg(e,Object.assign({format:_g},t))}function Lg(e,t,n,i){return i.settings.bogusComments?"<?"+Rg(e.value,Object.assign({},i.settings.characterReferences,{subset:[">"]}))+">":"\x3c!--"+e.value.replace(/^>|^->|<!--|-->|--!>|<!-$/g,r)+"--\x3e";function r(e){return Rg(e,Object.assign({},i.settings.characterReferences,{subset:["<",">"]}))}}function Ig(e,t,n,i){return"<!"+(i.settings.upperDoctype?"DOCTYPE":"doctype")+(i.settings.tightDoctype?"":" ")+"html>"}function Og(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 Ng(e,t){const n=t||{};const i=e[e.length-1]===""?[...e,""]:e;return i.join((n.padRight?" ":"")+","+(n.padLeft===false?"":" ")).trim()}function Pg(e){return e.join(" ").trim()}const Mg=/[ \t\n\f\r]/g;function Ug(e){return typeof e==="object"?e.type==="text"?qg(e.value):false:qg(e)}function qg(e){return e.replace(Mg,"")===""}const Bg=zg(1);const Fg=zg(-1);const Hg=[];function zg(e){return t;function t(t,n,i){const r=t?t.children:Hg;let s=(n||0)+e;let o=r[s];if(!i){while(o&&Ug(o)){s+=e;o=r[s]}}return o}}const jg={}.hasOwnProperty;function Gg(e){return t;function t(t,n,i){return jg.call(e,t.tagName)&&e[t.tagName](t,n,i)}}const Vg=Gg({body:Xg,caption:Yg,colgroup:Yg,dd:Zg,dt:Qg,head:Yg,html:Wg,li:$g,optgroup:eb,option:tb,p:Kg,rp:Jg,rt:Jg,tbody:ib,td:ob,tfoot:rb,th:ob,thead:nb,tr:sb});function Yg(e,t,n){const i=Bg(n,t,true);return!i||i.type!=="comment"&&!(i.type==="text"&&Ug(i.value.charAt(0)))}function Wg(e,t,n){const i=Bg(n,t);return!i||i.type!=="comment"}function Xg(e,t,n){const i=Bg(n,t);return!i||i.type!=="comment"}function Kg(e,t,n){const i=Bg(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 $g(e,t,n){const i=Bg(n,t);return!i||i.type==="element"&&i.tagName==="li"}function Qg(e,t,n){const i=Bg(n,t);return Boolean(i&&i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd"))}function Zg(e,t,n){const i=Bg(n,t);return!i||i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd")}function Jg(e,t,n){const i=Bg(n,t);return!i||i.type==="element"&&(i.tagName==="rp"||i.tagName==="rt")}function eb(e,t,n){const i=Bg(n,t);return!i||i.type==="element"&&i.tagName==="optgroup"}function tb(e,t,n){const i=Bg(n,t);return!i||i.type==="element"&&(i.tagName==="option"||i.tagName==="optgroup")}function nb(e,t,n){const i=Bg(n,t);return Boolean(i&&i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot"))}function ib(e,t,n){const i=Bg(n,t);return!i||i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot")}function rb(e,t,n){return!Bg(n,t)}function sb(e,t,n){const i=Bg(n,t);return!i||i.type==="element"&&i.tagName==="tr"}function ob(e,t,n){const i=Bg(n,t);return!i||i.type==="element"&&(i.tagName==="td"||i.tagName==="th")}const ab=Gg({body:ub,colgroup:fb,head:cb,html:lb,tbody:hb});function lb(e){const t=Bg(e,-1);return!t||t.type!=="comment"}function cb(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 ub(e){const t=Bg(e,-1,true);return!t||t.type!=="comment"&&!(t.type==="text"&&Ug(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function fb(e,t,n){const i=Fg(n,t);const r=Bg(e,-1,true);if(n&&i&&i.type==="element"&&i.tagName==="colgroup"&&Vg(i,n.children.indexOf(i),n)){return false}return Boolean(r&&r.type==="element"&&r.tagName==="col")}function hb(e,t,n){const i=Fg(n,t);const r=Bg(e,-1);if(n&&i&&i.type==="element"&&(i.tagName==="thead"||i.tagName==="tbody")&&Vg(i,n.children.indexOf(i),n)){return false}return Boolean(r&&r.type==="element"&&r.tagName==="tr")}const db={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 pb(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=mg}const c=mb(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||!ab(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||!Vg(e,t,n))){a.push("</"+e.tagName+">")}return a.join("")}function mb(e,t){const n=[];let i=-1;let r;if(t){for(r in t){if(t[r]!==null&&t[r]!==undefined){const i=gb(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 gb(e,t,n){const i=fg(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=Rg(i.attribute,Object.assign({},e.settings.characterReferences,{subset:db.name[r][s]}));if(n===true)return l;n=Array.isArray(n)?(i.commaSeparated?Ng:Pg)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n);if(e.settings.collapseEmptyAttributes&&!n)return l;if(e.settings.preferUnquoted){a=Rg(n,Object.assign({},e.settings.characterReferences,{attribute:true,subset:db.unquoted[r][s]}))}if(a!==n){if(e.settings.quoteSmart&&Og(n,o)>Og(n,e.alternative)){o=e.alternative}a=o+Rg(n,Object.assign({},e.settings.characterReferences,{subset:(o==="'"?db.single:db.double)[r][s],attribute:true}))+o}return l+(a?"="+a:a)}function bb(e,t,n,i){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Rg(e.value,Object.assign({},i.settings.characterReferences,{subset:["<","&"]}))}function kb(e,t,n,i){return i.settings.allowDangerousHtml?e.value:bb(e,t,n,i)}function yb(e,t,n,i){return i.all(e)}const wb=bg("type",{invalid:Eb,unknown:Tb,handlers:{comment:Lg,doctype:Ig,element:pb,raw:kb,root:yb,text:bb}});function Eb(e){throw new Error("Expected node, not `"+e+"`")}function Tb(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const vb={};const Sb={};const xb=[];function Ab(e,t){const n=t||vb;const i=n.quote||'"';const r=i==='"'?"'":'"';if(i!=='"'&&i!=="'"){throw new Error("Invalid quote `"+i+"`, expected `'` or `\"`")}const s={one:Cb,all:Db,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||Nm,characterReferences:n.characterReferences||Sb,closeSelfClosing:n.closeSelfClosing||false,closeEmptyElements:n.closeEmptyElements||false},schema:n.space==="svg"?mg:pg,quote:i,alternative:r};return s.one(Array.isArray(e)?{type:"root",children:e}:e,undefined,undefined)}function Cb(e,t,n){return wb(e,t,n,this)}function Db(e){const t=[];const n=e&&e.children||xb;let i=-1;while(++i<n.length){t[i]=this.one(n[i],i,e)}return t.join("")}function _b(e){const t=this;const n={...t.data("settings"),...e};t.compiler=i;function i(e){return Ab(e,n)}}class Rb{constructor(e,t,n){this.property=e;this.normal=t;if(n){this.space=n}}}Rb.prototype.property={};Rb.prototype.normal={};Rb.prototype.space=null;function Lb(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 Rb(n,i,t)}function Ib(e){return e.toLowerCase()}class Ob{constructor(e,t){this.property=e;this.attribute=t}}Ob.prototype.space=null;Ob.prototype.boolean=false;Ob.prototype.booleanish=false;Ob.prototype.overloadedBoolean=false;Ob.prototype.number=false;Ob.prototype.commaSeparated=false;Ob.prototype.spaceSeparated=false;Ob.prototype.commaOrSpaceSeparated=false;Ob.prototype.mustUseProperty=false;Ob.prototype.defined=false;let Nb=0;const Pb=zb();const Mb=zb();const Ub=zb();const qb=zb();const Bb=zb();const Fb=zb();const Hb=zb();function zb(){return 2**++Nb}const jb=Object.freeze({__proto__:null,boolean:Pb,booleanish:Mb,overloadedBoolean:Ub,number:qb,spaceSeparated:Bb,commaSeparated:Fb,commaOrSpaceSeparated:Hb});const Gb=Object.keys(jb);class Vb extends Ob{constructor(e,t,n,i){let r=-1;super(e,t);Yb(this,"space",i);if(typeof n==="number"){while(++r<Gb.length){const e=Gb[r];Yb(this,Gb[r],(n&jb[e])===jb[e])}}}}Vb.prototype.defined=true;function Yb(e,t,n){if(n){e[t]=n}}const Wb={}.hasOwnProperty;function Xb(e){const t={};const n={};let i;for(i in e.properties){if(Wb.call(e.properties,i)){const r=e.properties[i];const s=new Vb(i,e.transform(e.attributes||{},i),r,e.space);if(e.mustUseProperty&&e.mustUseProperty.includes(i)){s.mustUseProperty=true}t[i]=s;n[Ib(i)]=i;n[Ib(s.attribute)]=i}}return new Rb(t,n,e.space)}const Kb=Xb({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 $b=Xb({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Qb(e,t){return t in e?e[t]:t}function Zb(e,t){return Qb(e,t.toLowerCase())}const Jb=Xb({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Zb,properties:{xmlns:null,xmlnsXLink:null}});const ek=Xb({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Mb,ariaAutoComplete:null,ariaBusy:Mb,ariaChecked:Mb,ariaColCount:qb,ariaColIndex:qb,ariaColSpan:qb,ariaControls:Bb,ariaCurrent:null,ariaDescribedBy:Bb,ariaDetails:null,ariaDisabled:Mb,ariaDropEffect:Bb,ariaErrorMessage:null,ariaExpanded:Mb,ariaFlowTo:Bb,ariaGrabbed:Mb,ariaHasPopup:null,ariaHidden:Mb,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Bb,ariaLevel:qb,ariaLive:null,ariaModal:Mb,ariaMultiLine:Mb,ariaMultiSelectable:Mb,ariaOrientation:null,ariaOwns:Bb,ariaPlaceholder:null,ariaPosInSet:qb,ariaPressed:Mb,ariaReadOnly:Mb,ariaRelevant:null,ariaRequired:Mb,ariaRoleDescription:Bb,ariaRowCount:qb,ariaRowIndex:qb,ariaRowSpan:qb,ariaSelected:Mb,ariaSetSize:qb,ariaSort:null,ariaValueMax:qb,ariaValueMin:qb,ariaValueNow:qb,ariaValueText:null,role:null}});const tk=Xb({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Zb,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Fb,acceptCharset:Bb,accessKey:Bb,action:null,allow:null,allowFullScreen:Pb,allowPaymentRequest:Pb,allowUserMedia:Pb,alt:null,as:null,async:Pb,autoCapitalize:null,autoComplete:Bb,autoFocus:Pb,autoPlay:Pb,blocking:Bb,capture:Pb,charSet:null,checked:Pb,cite:null,className:Bb,cols:qb,colSpan:null,content:null,contentEditable:Mb,controls:Pb,controlsList:Bb,coords:qb|Fb,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Pb,defer:Pb,dir:null,dirName:null,disabled:Pb,download:Ub,draggable:Mb,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Pb,formTarget:null,headers:Bb,height:qb,hidden:Pb,high:qb,href:null,hrefLang:null,htmlFor:Bb,httpEquiv:Bb,id:null,imageSizes:null,imageSrcSet:null,inert:Pb,inputMode:null,integrity:null,is:null,isMap:Pb,itemId:null,itemProp:Bb,itemRef:Bb,itemScope:Pb,itemType:Bb,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Pb,low:qb,manifest:null,max:null,maxLength:qb,media:null,method:null,min:null,minLength:qb,multiple:Pb,muted:Pb,name:null,nonce:null,noModule:Pb,noValidate:Pb,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:Pb,optimum:qb,pattern:null,ping:Bb,placeholder:null,playsInline:Pb,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Pb,referrerPolicy:null,rel:Bb,required:Pb,reversed:Pb,rows:qb,rowSpan:qb,sandbox:Bb,scope:null,scoped:Pb,seamless:Pb,selected:Pb,shape:null,size:qb,sizes:null,slot:null,span:qb,spellCheck:Mb,src:null,srcDoc:null,srcLang:null,srcSet:null,start:qb,step:null,style:null,tabIndex:qb,target:null,title:null,translate:null,type:null,typeMustMatch:Pb,useMap:null,value:Mb,width:qb,wrap:null,align:null,aLink:null,archive:Bb,axis:null,background:null,bgColor:null,border:qb,borderColor:null,bottomMargin:qb,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Pb,declare:Pb,event:null,face:null,frame:null,frameBorder:null,hSpace:qb,leftMargin:qb,link:null,longDesc:null,lowSrc:null,marginHeight:qb,marginWidth:qb,noResize:Pb,noHref:Pb,noShade:Pb,noWrap:Pb,object:null,profile:null,prompt:null,rev:null,rightMargin:qb,rules:null,scheme:null,scrolling:Mb,standby:null,summary:null,text:null,topMargin:qb,valueType:null,version:null,vAlign:null,vLink:null,vSpace:qb,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Pb,disableRemotePlayback:Pb,prefix:null,property:null,results:qb,security:null,unselectable:null}});const nk=Xb({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:Qb,properties:{about:Hb,accentHeight:qb,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:qb,amplitude:qb,arabicForm:null,ascent:qb,attributeName:null,attributeType:null,azimuth:qb,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:qb,by:null,calcMode:null,capHeight:qb,className:Bb,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:qb,diffuseConstant:qb,direction:null,display:null,dur:null,divisor:qb,dominantBaseline:null,download:Pb,dx:null,dy:null,edgeMode:null,editable:null,elevation:qb,enableBackground:null,end:null,event:null,exponent:qb,externalResourcesRequired:null,fill:null,fillOpacity:qb,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:Fb,g2:Fb,glyphName:Fb,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:qb,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:qb,horizOriginX:qb,horizOriginY:qb,id:null,ideographic:qb,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:qb,k:qb,k1:qb,k2:qb,k3:qb,k4:qb,kernelMatrix:Hb,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:qb,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:qb,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:qb,overlineThickness:qb,paintOrder:null,panose1:null,path:null,pathLength:qb,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Bb,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:qb,pointsAtY:qb,pointsAtZ:qb,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Hb,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Hb,rev:Hb,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Hb,requiredFeatures:Hb,requiredFonts:Hb,requiredFormats:Hb,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:qb,specularExponent:qb,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:qb,strikethroughThickness:qb,string:null,stroke:null,strokeDashArray:Hb,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:qb,strokeOpacity:qb,strokeWidth:null,style:null,surfaceScale:qb,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Hb,tabIndex:qb,tableValues:null,target:null,targetX:qb,targetY:qb,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Hb,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:qb,underlineThickness:qb,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:qb,values:null,vAlphabetic:qb,vMathematical:qb,vectorEffect:null,vHanging:qb,vIdeographic:qb,version:null,vertAdvY:qb,vertOriginX:qb,vertOriginY:qb,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:qb,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}});const ik=/^data[-\w.:]+$/i;const rk=/-[a-z]/g;const sk=/[A-Z]/g;function ok(e,t){const n=Ib(t);let i=t;let r=Ob;if(n in e.normal){return e.property[e.normal[n]]}if(n.length>4&&n.slice(0,4)==="data"&&ik.test(t)){if(t.charAt(4)==="-"){const e=t.slice(5).replace(rk,lk);i="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!rk.test(e)){let n=e.replace(sk,ak);if(n.charAt(0)!=="-"){n="-"+n}t="data"+n}}r=Vb}return new r(i,t)}function ak(e){return"-"+e.toLowerCase()}function lk(e){return e.charAt(1).toUpperCase()}const ck=Lb([$b,Kb,Jb,ek,tk],"html");const uk=Lb([$b,Kb,Jb,ek,nk],"svg");function fk(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 hk=/[#.]/g;function dk(e,t){const n=e||"";const i={};let r=0;let s;let o;while(r<n.length){hk.lastIndex=r;const e=hk.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 pk(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}const mk=new Set(["button","menu","reset","submit"]);const gk={}.hasOwnProperty;function bk(e,t,n){const i=n&&vk(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=dk(n,t);a.tagName=a.tagName.toLowerCase();if(i&&gk.call(i,a.tagName)){a.tagName=i[a.tagName]}if(kk(r,a.tagName)){let t;for(t in r){if(gk.call(r,t)){yk(e,a.properties,t,r[t])}}}else{s.unshift(r)}}while(++o<s.length){wk(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 kk(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 mk.has(e.type.toLowerCase())}return!("value"in e)}function yk(e,t,n,i){const r=ok(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=pk(i)}else if(r.commaSeparated){o=fk(i)}else if(r.commaOrSpaceSeparated){o=pk(fk(i).join(" "))}else{o=Ek(r,r.property,i)}}else if(Array.isArray(i)){o=i.concat()}else{o=r.property==="style"?Tk(i):String(i)}if(Array.isArray(o)){const e=[];while(++s<o.length){const t=Ek(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 wk(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){wk(e,t[n])}}else if(typeof t==="object"&&"type"in t){if(t.type==="root"){wk(e,t.children)}else{e.push(t)}}else{throw new Error("Expected node, nodes, or string, got `"+t+"`")}}function Ek(e,t,n){if(typeof n==="string"){if(e.number&&n&&!Number.isNaN(Number(n))){return Number(n)}if((e.boolean||e.overloadedBoolean)&&(n===""||Ib(n)===Ib(t))){return true}}return n}function Tk(e){const t=[];let n;for(n in e){if(gk.call(e,n)){t.push([n,e[n]].join(": "))}}return t.join("; ")}function vk(e){const t={};let n=-1;while(++n<e.length){t[e[n].toLowerCase()]=e[n]}return t}const Sk=["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 xk=bk(ck,"div");const Ak=bk(uk,"g",Sk);const Ck=/\r?\n|\r/g;function Dk(e){const t=String(e);const n=[];Ck.lastIndex=0;while(Ck.test(t)){n.push(Ck.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 _k={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 Rk={}.hasOwnProperty;const Lk=Object.prototype;function Ik(e,t){const n=t||{};return Ok({file:n.file||undefined,location:false,schema:n.space==="svg"?uk:ck,verbose:n.verbose||false},e)}function Ok(e,t){let n;switch(t.nodeName){case"#comment":{const i=t;n={type:"comment",value:i.data};Mk(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:Nk(e,t.childNodes),data:{quirksMode:r}};if(e.file&&e.location){const t=String(e.file);const i=Dk(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"};Mk(e,i,n);return n}case"#text":{const i=t;n={type:"text",value:i.value};Mk(e,i,n);return n}default:{const i=t;n=Pk(e,i);return n}}}function Nk(e,t){let n=-1;const i=[];while(++n<t.length){const r=Ok(e,t[n]);i.push(r)}return i}function Pk(e,t){const n=e.schema;e.schema=t.namespaceURI===_k.svg?uk:ck;let i=-1;const r={};while(++i<t.attrs.length){const e=t.attrs[i];const n=(e.prefix?e.prefix+":":"")+e.name;if(!Rk.call(Lk,n)){r[n]=e.value}}const s=e.schema.space==="svg"?Ak:xk;const o=s(t.tagName,r,Nk(e,t.childNodes));Mk(e,t,o);if(o.tagName==="template"){const n=t;const i=n.sourceCodeLocation;const r=i&&i.startTag&&qk(i.startTag);const s=i&&i.endTag&&qk(i.endTag);const a=Ok(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 Mk(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const i=Uk(e,n,t.sourceCodeLocation);if(i){e.location=true;n.position=i}}}function Uk(e,t,n){const i=qk(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(Rk.call(n.attrs,r)){i[ok(e.schema,r).property]=qk(n.attrs[r])}}}const s=qk(n.startTag);const o=n.endTag?qk(n.endTag):undefined;const a={opening:s};if(o)a.closing=o;a.properties=i;t.data={position:a}}}return i}function qk(e){const t=Bk({line:e.startLine,column:e.startCol,offset:e.startOffset});const n=Bk({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:undefined}function Bk(e){return e.line&&e.column?e:undefined}function Fk(e,t){const n=t||{};const i=e[e.length-1]===""?[...e,""]:e;return i.join((n.padRight?" ":"")+","+(n.padLeft===false?"":" ")).trim()}class Hk{constructor(e,t,n){this.property=e;this.normal=t;if(n){this.space=n}}}Hk.prototype.property={};Hk.prototype.normal={};Hk.prototype.space=null;function zk(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 Hk(n,i,t)}function jk(e){return e.toLowerCase()}class Gk{constructor(e,t){this.property=e;this.attribute=t}}Gk.prototype.space=null;Gk.prototype.boolean=false;Gk.prototype.booleanish=false;Gk.prototype.overloadedBoolean=false;Gk.prototype.number=false;Gk.prototype.commaSeparated=false;Gk.prototype.spaceSeparated=false;Gk.prototype.commaOrSpaceSeparated=false;Gk.prototype.mustUseProperty=false;Gk.prototype.defined=false;let Vk=0;const Yk=Jk();const Wk=Jk();const Xk=Jk();const Kk=Jk();const $k=Jk();const Qk=Jk();const Zk=Jk();function Jk(){return 2**++Vk}const ey=Object.freeze({__proto__:null,boolean:Yk,booleanish:Wk,overloadedBoolean:Xk,number:Kk,spaceSeparated:$k,commaSeparated:Qk,commaOrSpaceSeparated:Zk});const ty=Object.keys(ey);class ny extends Gk{constructor(e,t,n,i){let r=-1;super(e,t);iy(this,"space",i);if(typeof n==="number"){while(++r<ty.length){const e=ty[r];iy(this,ty[r],(n&ey[e])===ey[e])}}}}ny.prototype.defined=true;function iy(e,t,n){if(n){e[t]=n}}const ry={}.hasOwnProperty;function sy(e){const t={};const n={};let i;for(i in e.properties){if(ry.call(e.properties,i)){const r=e.properties[i];const s=new ny(i,e.transform(e.attributes||{},i),r,e.space);if(e.mustUseProperty&&e.mustUseProperty.includes(i)){s.mustUseProperty=true}t[i]=s;n[jk(i)]=i;n[jk(s.attribute)]=i}}return new Hk(t,n,e.space)}const oy=sy({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 ay=sy({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function ly(e,t){return t in e?e[t]:t}function cy(e,t){return ly(e,t.toLowerCase())}const uy=sy({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:cy,properties:{xmlns:null,xmlnsXLink:null}});const fy=sy({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Wk,ariaAutoComplete:null,ariaBusy:Wk,ariaChecked:Wk,ariaColCount:Kk,ariaColIndex:Kk,ariaColSpan:Kk,ariaControls:$k,ariaCurrent:null,ariaDescribedBy:$k,ariaDetails:null,ariaDisabled:Wk,ariaDropEffect:$k,ariaErrorMessage:null,ariaExpanded:Wk,ariaFlowTo:$k,ariaGrabbed:Wk,ariaHasPopup:null,ariaHidden:Wk,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:$k,ariaLevel:Kk,ariaLive:null,ariaModal:Wk,ariaMultiLine:Wk,ariaMultiSelectable:Wk,ariaOrientation:null,ariaOwns:$k,ariaPlaceholder:null,ariaPosInSet:Kk,ariaPressed:Wk,ariaReadOnly:Wk,ariaRelevant:null,ariaRequired:Wk,ariaRoleDescription:$k,ariaRowCount:Kk,ariaRowIndex:Kk,ariaRowSpan:Kk,ariaSelected:Wk,ariaSetSize:Kk,ariaSort:null,ariaValueMax:Kk,ariaValueMin:Kk,ariaValueNow:Kk,ariaValueText:null,role:null}});const hy=sy({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:cy,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Qk,acceptCharset:$k,accessKey:$k,action:null,allow:null,allowFullScreen:Yk,allowPaymentRequest:Yk,allowUserMedia:Yk,alt:null,as:null,async:Yk,autoCapitalize:null,autoComplete:$k,autoFocus:Yk,autoPlay:Yk,blocking:$k,capture:Yk,charSet:null,checked:Yk,cite:null,className:$k,cols:Kk,colSpan:null,content:null,contentEditable:Wk,controls:Yk,controlsList:$k,coords:Kk|Qk,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Yk,defer:Yk,dir:null,dirName:null,disabled:Yk,download:Xk,draggable:Wk,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Yk,formTarget:null,headers:$k,height:Kk,hidden:Yk,high:Kk,href:null,hrefLang:null,htmlFor:$k,httpEquiv:$k,id:null,imageSizes:null,imageSrcSet:null,inert:Yk,inputMode:null,integrity:null,is:null,isMap:Yk,itemId:null,itemProp:$k,itemRef:$k,itemScope:Yk,itemType:$k,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Yk,low:Kk,manifest:null,max:null,maxLength:Kk,media:null,method:null,min:null,minLength:Kk,multiple:Yk,muted:Yk,name:null,nonce:null,noModule:Yk,noValidate:Yk,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:Yk,optimum:Kk,pattern:null,ping:$k,placeholder:null,playsInline:Yk,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Yk,referrerPolicy:null,rel:$k,required:Yk,reversed:Yk,rows:Kk,rowSpan:Kk,sandbox:$k,scope:null,scoped:Yk,seamless:Yk,selected:Yk,shape:null,size:Kk,sizes:null,slot:null,span:Kk,spellCheck:Wk,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Kk,step:null,style:null,tabIndex:Kk,target:null,title:null,translate:null,type:null,typeMustMatch:Yk,useMap:null,value:Wk,width:Kk,wrap:null,align:null,aLink:null,archive:$k,axis:null,background:null,bgColor:null,border:Kk,borderColor:null,bottomMargin:Kk,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Yk,declare:Yk,event:null,face:null,frame:null,frameBorder:null,hSpace:Kk,leftMargin:Kk,link:null,longDesc:null,lowSrc:null,marginHeight:Kk,marginWidth:Kk,noResize:Yk,noHref:Yk,noShade:Yk,noWrap:Yk,object:null,profile:null,prompt:null,rev:null,rightMargin:Kk,rules:null,scheme:null,scrolling:Wk,standby:null,summary:null,text:null,topMargin:Kk,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Kk,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Yk,disableRemotePlayback:Yk,prefix:null,property:null,results:Kk,security:null,unselectable:null}});const dy=sy({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:ly,properties:{about:Zk,accentHeight:Kk,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Kk,amplitude:Kk,arabicForm:null,ascent:Kk,attributeName:null,attributeType:null,azimuth:Kk,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Kk,by:null,calcMode:null,capHeight:Kk,className:$k,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:Kk,diffuseConstant:Kk,direction:null,display:null,dur:null,divisor:Kk,dominantBaseline:null,download:Yk,dx:null,dy:null,edgeMode:null,editable:null,elevation:Kk,enableBackground:null,end:null,event:null,exponent:Kk,externalResourcesRequired:null,fill:null,fillOpacity:Kk,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:Qk,g2:Qk,glyphName:Qk,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Kk,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Kk,horizOriginX:Kk,horizOriginY:Kk,id:null,ideographic:Kk,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Kk,k:Kk,k1:Kk,k2:Kk,k3:Kk,k4:Kk,kernelMatrix:Zk,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Kk,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:Kk,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:Kk,overlineThickness:Kk,paintOrder:null,panose1:null,path:null,pathLength:Kk,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:$k,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Kk,pointsAtY:Kk,pointsAtZ:Kk,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Zk,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Zk,rev:Zk,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Zk,requiredFeatures:Zk,requiredFonts:Zk,requiredFormats:Zk,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:Kk,specularExponent:Kk,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Kk,strikethroughThickness:Kk,string:null,stroke:null,strokeDashArray:Zk,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Kk,strokeOpacity:Kk,strokeWidth:null,style:null,surfaceScale:Kk,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Zk,tabIndex:Kk,tableValues:null,target:null,targetX:Kk,targetY:Kk,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Zk,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Kk,underlineThickness:Kk,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Kk,values:null,vAlphabetic:Kk,vMathematical:Kk,vectorEffect:null,vHanging:Kk,vIdeographic:Kk,version:null,vertAdvY:Kk,vertOriginX:Kk,vertOriginY:Kk,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Kk,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}});const py=/^data[-\w.:]+$/i;const my=/-[a-z]/g;const gy=/[A-Z]/g;function by(e,t){const n=jk(t);let i=t;let r=Gk;if(n in e.normal){return e.property[e.normal[n]]}if(n.length>4&&n.slice(0,4)==="data"&&py.test(t)){if(t.charAt(4)==="-"){const e=t.slice(5).replace(my,yy);i="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!my.test(e)){let n=e.replace(gy,ky);if(n.charAt(0)!=="-"){n="-"+n}t="data"+n}}r=ny}return new r(i,t)}function ky(e){return"-"+e.toLowerCase()}function yy(e){return e.charAt(1).toUpperCase()}const wy=zk([ay,oy,uy,fy,hy],"html");const Ey=zk([ay,oy,uy,fy,dy],"svg");function Ty(e){return e.join(" ").trim()}const vy={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 Sy={}.hasOwnProperty;function xy(e,t){const n=t||{};function i(t,...n){let r=i.invalid;const s=i.handlers;if(t&&Sy.call(t,e)){const n=String(t[e]);r=Sy.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 Ay={};const Cy={}.hasOwnProperty;const Dy=xy("type",{handlers:{root:Ry,element:Py,text:Oy,comment:Ny,doctype:Iy}});function _y(e,t){const n=t||Ay;const i=n.space;return Dy(e,i==="svg"?Ey:wy)}function Ry(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};n.childNodes=Uy(e.children,n,t);qy(e,n);return n}function Ly(e,t){const n={nodeName:"#document-fragment",childNodes:[]};n.childNodes=Uy(e.children,n,t);qy(e,n);return n}function Iy(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};qy(e,t);return t}function Oy(e){const t={nodeName:"#text",value:e.value,parentNode:null};qy(e,t);return t}function Ny(e){const t={nodeName:"#comment",data:e.value,parentNode:null};qy(e,t);return t}function Py(e,t){const n=t;let i=n;if(e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"){i=Ey}const r=[];let s;if(e.properties){for(s in e.properties){if(s!=="children"&&Cy.call(e.properties,s)){const t=My(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:vy[o],childNodes:[],parentNode:null};a.childNodes=Uy(e.children,a,i);qy(e,a);if(e.tagName==="template"&&e.content){a.content=Ly(e.content,i)}return a}function My(e,t,n){const i=by(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?Fk(n):Ty(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=vy[i.space]}return r}function Uy(e,t,n){let i=-1;const r=[];if(e){while(++i<e.length){const s=Dy(e[i],n);s.parentNode=t;r.push(s)}}return r}function qy(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 By=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];const Fy=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 Hy="�";var zy;(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"})(zy=zy||(zy={}));const jy={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Gy(e){return e>=55296&&e<=57343}function Vy(e){return e>=56320&&e<=57343}function Yy(e,t){return(e-55296)*1024+9216+t}function Wy(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Xy(e){return e>=64976&&e<=65007||Fy.has(e)}var Ky;(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"})(Ky=Ky||(Ky={}));const $y=1<<16;class Qy{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=$y;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(Vy(t)){this.pos++;this._addGap();return Yy(e,t)}}else if(!this.lastChunkWritten){this.endOfChunkHit=true;return zy.EOF}this._err(Ky.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 zy.EOF}const n=this.html.charCodeAt(t);return n===zy.CARRIAGE_RETURN?zy.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 zy.EOF}let e=this.html.charCodeAt(this.pos);if(e===zy.CARRIAGE_RETURN){this.isEol=true;this.skipNextNewLine=true;return zy.LINE_FEED}if(e===zy.LINE_FEED){this.isEol=true;if(this.skipNextNewLine){this.line--;this.skipNextNewLine=false;this._addGap();return this.advance()}}this.skipNextNewLine=false;if(Gy(e)){e=this._processSurrogate(e)}const t=this.handler.onParseError===null||e>31&&e<127||e===zy.LINE_FEED||e===zy.CARRIAGE_RETURN||e>159&&e<64976;if(!t){this._checkForProblematicCharacters(e)}return e}_checkForProblematicCharacters(e){if(Wy(e)){this._err(Ky.controlCharacterInInputStream)}else if(Xy(e)){this._err(Ky.noncharacterInInputStream)}}retreat(e){this.pos-=e;while(this.pos<this.lastGapPos){this.lastGapPos=this.gapStack.pop();this.pos--}this.isEol=false}}var Zy;(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"})(Zy=Zy||(Zy={}));function Jy(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 ew;(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/"})(ew=ew||(ew={}));var tw;(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"})(tw=tw||(tw={}));var nw;(function(e){e["NO_QUIRKS"]="no-quirks";e["QUIRKS"]="quirks";e["LIMITED_QUIRKS"]="limited-quirks"})(nw=nw||(nw={}));var iw;(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"})(iw=iw||(iw={}));var rw;(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"})(rw=rw||(rw={}));const sw=new Map([[iw.A,rw.A],[iw.ADDRESS,rw.ADDRESS],[iw.ANNOTATION_XML,rw.ANNOTATION_XML],[iw.APPLET,rw.APPLET],[iw.AREA,rw.AREA],[iw.ARTICLE,rw.ARTICLE],[iw.ASIDE,rw.ASIDE],[iw.B,rw.B],[iw.BASE,rw.BASE],[iw.BASEFONT,rw.BASEFONT],[iw.BGSOUND,rw.BGSOUND],[iw.BIG,rw.BIG],[iw.BLOCKQUOTE,rw.BLOCKQUOTE],[iw.BODY,rw.BODY],[iw.BR,rw.BR],[iw.BUTTON,rw.BUTTON],[iw.CAPTION,rw.CAPTION],[iw.CENTER,rw.CENTER],[iw.CODE,rw.CODE],[iw.COL,rw.COL],[iw.COLGROUP,rw.COLGROUP],[iw.DD,rw.DD],[iw.DESC,rw.DESC],[iw.DETAILS,rw.DETAILS],[iw.DIALOG,rw.DIALOG],[iw.DIR,rw.DIR],[iw.DIV,rw.DIV],[iw.DL,rw.DL],[iw.DT,rw.DT],[iw.EM,rw.EM],[iw.EMBED,rw.EMBED],[iw.FIELDSET,rw.FIELDSET],[iw.FIGCAPTION,rw.FIGCAPTION],[iw.FIGURE,rw.FIGURE],[iw.FONT,rw.FONT],[iw.FOOTER,rw.FOOTER],[iw.FOREIGN_OBJECT,rw.FOREIGN_OBJECT],[iw.FORM,rw.FORM],[iw.FRAME,rw.FRAME],[iw.FRAMESET,rw.FRAMESET],[iw.H1,rw.H1],[iw.H2,rw.H2],[iw.H3,rw.H3],[iw.H4,rw.H4],[iw.H5,rw.H5],[iw.H6,rw.H6],[iw.HEAD,rw.HEAD],[iw.HEADER,rw.HEADER],[iw.HGROUP,rw.HGROUP],[iw.HR,rw.HR],[iw.HTML,rw.HTML],[iw.I,rw.I],[iw.IMG,rw.IMG],[iw.IMAGE,rw.IMAGE],[iw.INPUT,rw.INPUT],[iw.IFRAME,rw.IFRAME],[iw.KEYGEN,rw.KEYGEN],[iw.LABEL,rw.LABEL],[iw.LI,rw.LI],[iw.LINK,rw.LINK],[iw.LISTING,rw.LISTING],[iw.MAIN,rw.MAIN],[iw.MALIGNMARK,rw.MALIGNMARK],[iw.MARQUEE,rw.MARQUEE],[iw.MATH,rw.MATH],[iw.MENU,rw.MENU],[iw.META,rw.META],[iw.MGLYPH,rw.MGLYPH],[iw.MI,rw.MI],[iw.MO,rw.MO],[iw.MN,rw.MN],[iw.MS,rw.MS],[iw.MTEXT,rw.MTEXT],[iw.NAV,rw.NAV],[iw.NOBR,rw.NOBR],[iw.NOFRAMES,rw.NOFRAMES],[iw.NOEMBED,rw.NOEMBED],[iw.NOSCRIPT,rw.NOSCRIPT],[iw.OBJECT,rw.OBJECT],[iw.OL,rw.OL],[iw.OPTGROUP,rw.OPTGROUP],[iw.OPTION,rw.OPTION],[iw.P,rw.P],[iw.PARAM,rw.PARAM],[iw.PLAINTEXT,rw.PLAINTEXT],[iw.PRE,rw.PRE],[iw.RB,rw.RB],[iw.RP,rw.RP],[iw.RT,rw.RT],[iw.RTC,rw.RTC],[iw.RUBY,rw.RUBY],[iw.S,rw.S],[iw.SCRIPT,rw.SCRIPT],[iw.SECTION,rw.SECTION],[iw.SELECT,rw.SELECT],[iw.SOURCE,rw.SOURCE],[iw.SMALL,rw.SMALL],[iw.SPAN,rw.SPAN],[iw.STRIKE,rw.STRIKE],[iw.STRONG,rw.STRONG],[iw.STYLE,rw.STYLE],[iw.SUB,rw.SUB],[iw.SUMMARY,rw.SUMMARY],[iw.SUP,rw.SUP],[iw.TABLE,rw.TABLE],[iw.TBODY,rw.TBODY],[iw.TEMPLATE,rw.TEMPLATE],[iw.TEXTAREA,rw.TEXTAREA],[iw.TFOOT,rw.TFOOT],[iw.TD,rw.TD],[iw.TH,rw.TH],[iw.THEAD,rw.THEAD],[iw.TITLE,rw.TITLE],[iw.TR,rw.TR],[iw.TRACK,rw.TRACK],[iw.TT,rw.TT],[iw.U,rw.U],[iw.UL,rw.UL],[iw.SVG,rw.SVG],[iw.VAR,rw.VAR],[iw.WBR,rw.WBR],[iw.XMP,rw.XMP]]);function ow(e){var t;return(t=sw.get(e))!==null&&t!==void 0?t:rw.UNKNOWN}const aw=rw;const lw={[ew.HTML]:new Set([aw.ADDRESS,aw.APPLET,aw.AREA,aw.ARTICLE,aw.ASIDE,aw.BASE,aw.BASEFONT,aw.BGSOUND,aw.BLOCKQUOTE,aw.BODY,aw.BR,aw.BUTTON,aw.CAPTION,aw.CENTER,aw.COL,aw.COLGROUP,aw.DD,aw.DETAILS,aw.DIR,aw.DIV,aw.DL,aw.DT,aw.EMBED,aw.FIELDSET,aw.FIGCAPTION,aw.FIGURE,aw.FOOTER,aw.FORM,aw.FRAME,aw.FRAMESET,aw.H1,aw.H2,aw.H3,aw.H4,aw.H5,aw.H6,aw.HEAD,aw.HEADER,aw.HGROUP,aw.HR,aw.HTML,aw.IFRAME,aw.IMG,aw.INPUT,aw.LI,aw.LINK,aw.LISTING,aw.MAIN,aw.MARQUEE,aw.MENU,aw.META,aw.NAV,aw.NOEMBED,aw.NOFRAMES,aw.NOSCRIPT,aw.OBJECT,aw.OL,aw.P,aw.PARAM,aw.PLAINTEXT,aw.PRE,aw.SCRIPT,aw.SECTION,aw.SELECT,aw.SOURCE,aw.STYLE,aw.SUMMARY,aw.TABLE,aw.TBODY,aw.TD,aw.TEMPLATE,aw.TEXTAREA,aw.TFOOT,aw.TH,aw.THEAD,aw.TITLE,aw.TR,aw.TRACK,aw.UL,aw.WBR,aw.XMP]),[ew.MATHML]:new Set([aw.MI,aw.MO,aw.MN,aw.MS,aw.MTEXT,aw.ANNOTATION_XML]),[ew.SVG]:new Set([aw.TITLE,aw.FOREIGN_OBJECT,aw.DESC]),[ew.XLINK]:new Set,[ew.XML]:new Set,[ew.XMLNS]:new Set};function cw(e){return e===aw.H1||e===aw.H2||e===aw.H3||e===aw.H4||e===aw.H5||e===aw.H6}const uw=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 fw;(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"})(fw||(fw={}));const hw={DATA:fw.DATA,RCDATA:fw.RCDATA,RAWTEXT:fw.RAWTEXT,SCRIPT_DATA:fw.SCRIPT_DATA,PLAINTEXT:fw.PLAINTEXT,CDATA_SECTION:fw.CDATA_SECTION};function dw(e){return e>=zy.DIGIT_0&&e<=zy.DIGIT_9}function pw(e){return e>=zy.LATIN_CAPITAL_A&&e<=zy.LATIN_CAPITAL_Z}function mw(e){return e>=zy.LATIN_SMALL_A&&e<=zy.LATIN_SMALL_Z}function gw(e){return mw(e)||pw(e)}function bw(e){return gw(e)||dw(e)}function kw(e){return e>=zy.LATIN_CAPITAL_A&&e<=zy.LATIN_CAPITAL_F}function yw(e){return e>=zy.LATIN_SMALL_A&&e<=zy.LATIN_SMALL_F}function ww(e){return dw(e)||kw(e)||yw(e)}function Ew(e){return e+32}function Tw(e){return e===zy.SPACE||e===zy.LINE_FEED||e===zy.TABULATION||e===zy.FORM_FEED}function vw(e){return e===zy.EQUALS_SIGN||bw(e)}function Sw(e){return Tw(e)||e===zy.SOLIDUS||e===zy.GREATER_THAN_SIGN}class xw{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=fw.DATA;this.returnState=fw.DATA;this.charRefCode=-1;this.consumedAfterSnapshot=-1;this.currentCharacterToken=null;this.currentToken=null;this.currentAttr={name:"",value:""};this.preprocessor=new Qy(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:Zy.START_TAG,tagName:"",tagID:rw.UNKNOWN,selfClosing:false,ackSelfClosing:false,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Zy.END_TAG,tagName:"",tagID:rw.UNKNOWN,selfClosing:false,ackSelfClosing:false,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:Zy.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:Zy.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(Jy(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(Ky.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=ow(e.tagName);if(e.type===Zy.START_TAG){this.lastStartTagName=e.tagName;this.handler.onStartTag(e)}else{if(e.attrs.length>0){this._err(Ky.endTagWithAttributes)}if(e.selfClosing){this._err(Ky.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 Zy.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Zy.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Zy.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:Zy.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=Tw(e)?Zy.WHITESPACE_CHARACTER:e===zy.NULL?Zy.NULL_CHARACTER:Zy.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(Zy.CHARACTER,e)}_matchNamedCharacterReference(e){let t=null;let n=0;let r=false;for(let s=0,o=i[0];s>=0;e=this._consume()){s=y(i,o,s+1,e);if(s<0)break;n+=1;o=i[s];const a=o&u.VALUE_LENGTH;if(a){const o=(a>>14)-1;if(e!==zy.SEMICOLON&&this._isCharacterReferenceInAttribute()&&vw(this.preprocessor.peek(1))){t=[zy.AMPERSAND];s+=o}else{t=o===0?[i[s]&~u.VALUE_LENGTH]:o===1?[i[++s]]:[i[++s],i[++s]];n=0;r=e!==zy.SEMICOLON}if(o===0){this._consume();break}}}this._unconsume(n);if(r&&!this.preprocessor.endOfChunkHit){this._err(Ky.missingSemicolonAfterCharacterReference)}this._unconsume(1);return t}_isCharacterReferenceInAttribute(){return this.returnState===fw.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===fw.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===fw.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){if(this._isCharacterReferenceInAttribute()){this.currentAttr.value+=String.fromCodePoint(e)}else{this._emitCodePoint(e)}}_callState(e){switch(this.state){case fw.DATA:{this._stateData(e);break}case fw.RCDATA:{this._stateRcdata(e);break}case fw.RAWTEXT:{this._stateRawtext(e);break}case fw.SCRIPT_DATA:{this._stateScriptData(e);break}case fw.PLAINTEXT:{this._statePlaintext(e);break}case fw.TAG_OPEN:{this._stateTagOpen(e);break}case fw.END_TAG_OPEN:{this._stateEndTagOpen(e);break}case fw.TAG_NAME:{this._stateTagName(e);break}case fw.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(e);break}case fw.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(e);break}case fw.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(e);break}case fw.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(e);break}case fw.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(e);break}case fw.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(e);break}case fw.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(e);break}case fw.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(e);break}case fw.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(e);break}case fw.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(e);break}case fw.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(e);break}case fw.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(e);break}case fw.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(e);break}case fw.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(e);break}case fw.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(e);break}case fw.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(e);break}case fw.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(e);break}case fw.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(e);break}case fw.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(e);break}case fw.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(e);break}case fw.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(e);break}case fw.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(e);break}case fw.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(e);break}case fw.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(e);break}case fw.ATTRIBUTE_NAME:{this._stateAttributeName(e);break}case fw.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(e);break}case fw.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(e);break}case fw.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(e);break}case fw.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(e);break}case fw.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(e);break}case fw.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(e);break}case fw.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(e);break}case fw.BOGUS_COMMENT:{this._stateBogusComment(e);break}case fw.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(e);break}case fw.COMMENT_START:{this._stateCommentStart(e);break}case fw.COMMENT_START_DASH:{this._stateCommentStartDash(e);break}case fw.COMMENT:{this._stateComment(e);break}case fw.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(e);break}case fw.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(e);break}case fw.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(e);break}case fw.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(e);break}case fw.COMMENT_END_DASH:{this._stateCommentEndDash(e);break}case fw.COMMENT_END:{this._stateCommentEnd(e);break}case fw.COMMENT_END_BANG:{this._stateCommentEndBang(e);break}case fw.DOCTYPE:{this._stateDoctype(e);break}case fw.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(e);break}case fw.DOCTYPE_NAME:{this._stateDoctypeName(e);break}case fw.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(e);break}case fw.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(e);break}case fw.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(e);break}case fw.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(e);break}case fw.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(e);break}case fw.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(e);break}case fw.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break}case fw.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(e);break}case fw.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(e);break}case fw.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(e);break}case fw.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(e);break}case fw.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(e);break}case fw.BOGUS_DOCTYPE:{this._stateBogusDoctype(e);break}case fw.CDATA_SECTION:{this._stateCdataSection(e);break}case fw.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(e);break}case fw.CDATA_SECTION_END:{this._stateCdataSectionEnd(e);break}case fw.CHARACTER_REFERENCE:{this._stateCharacterReference(e);break}case fw.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(e);break}case fw.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(e);break}case fw.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(e);break}case fw.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(e);break}case fw.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(e);break}case fw.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(e);break}case fw.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(e);break}default:{throw new Error("Unknown state")}}}_stateData(e){switch(e){case zy.LESS_THAN_SIGN:{this.state=fw.TAG_OPEN;break}case zy.AMPERSAND:{this.returnState=fw.DATA;this.state=fw.CHARACTER_REFERENCE;break}case zy.NULL:{this._err(Ky.unexpectedNullCharacter);this._emitCodePoint(e);break}case zy.EOF:{this._emitEOFToken();break}default:{this._emitCodePoint(e)}}}_stateRcdata(e){switch(e){case zy.AMPERSAND:{this.returnState=fw.RCDATA;this.state=fw.CHARACTER_REFERENCE;break}case zy.LESS_THAN_SIGN:{this.state=fw.RCDATA_LESS_THAN_SIGN;break}case zy.NULL:{this._err(Ky.unexpectedNullCharacter);this._emitChars(Hy);break}case zy.EOF:{this._emitEOFToken();break}default:{this._emitCodePoint(e)}}}_stateRawtext(e){switch(e){case zy.LESS_THAN_SIGN:{this.state=fw.RAWTEXT_LESS_THAN_SIGN;break}case zy.NULL:{this._err(Ky.unexpectedNullCharacter);this._emitChars(Hy);break}case zy.EOF:{this._emitEOFToken();break}default:{this._emitCodePoint(e)}}}_stateScriptData(e){switch(e){case zy.LESS_THAN_SIGN:{this.state=fw.SCRIPT_DATA_LESS_THAN_SIGN;break}case zy.NULL:{this._err(Ky.unexpectedNullCharacter);this._emitChars(Hy);break}case zy.EOF:{this._emitEOFToken();break}default:{this._emitCodePoint(e)}}}_statePlaintext(e){switch(e){case zy.NULL:{this._err(Ky.unexpectedNullCharacter);this._emitChars(Hy);break}case zy.EOF:{this._emitEOFToken();break}default:{this._emitCodePoint(e)}}}_stateTagOpen(e){if(gw(e)){this._createStartTagToken();this.state=fw.TAG_NAME;this._stateTagName(e)}else switch(e){case zy.EXCLAMATION_MARK:{this.state=fw.MARKUP_DECLARATION_OPEN;break}case zy.SOLIDUS:{this.state=fw.END_TAG_OPEN;break}case zy.QUESTION_MARK:{this._err(Ky.unexpectedQuestionMarkInsteadOfTagName);this._createCommentToken(1);this.state=fw.BOGUS_COMMENT;this._stateBogusComment(e);break}case zy.EOF:{this._err(Ky.eofBeforeTagName);this._emitChars("<");this._emitEOFToken();break}default:{this._err(Ky.invalidFirstCharacterOfTagName);this._emitChars("<");this.state=fw.DATA;this._stateData(e)}}}_stateEndTagOpen(e){if(gw(e)){this._createEndTagToken();this.state=fw.TAG_NAME;this._stateTagName(e)}else switch(e){case zy.GREATER_THAN_SIGN:{this._err(Ky.missingEndTagName);this.state=fw.DATA;break}case zy.EOF:{this._err(Ky.eofBeforeTagName);this._emitChars("</");this._emitEOFToken();break}default:{this._err(Ky.invalidFirstCharacterOfTagName);this._createCommentToken(2);this.state=fw.BOGUS_COMMENT;this._stateBogusComment(e)}}}_stateTagName(e){const t=this.currentToken;switch(e){case zy.SPACE:case zy.LINE_FEED:case zy.TABULATION:case zy.FORM_FEED:{this.state=fw.BEFORE_ATTRIBUTE_NAME;break}case zy.SOLIDUS:{this.state=fw.SELF_CLOSING_START_TAG;break}case zy.GREATER_THAN_SIGN:{this.state=fw.DATA;this.emitCurrentTagToken();break}case zy.NULL:{this._err(Ky.unexpectedNullCharacter);t.tagName+=Hy;break}case zy.EOF:{this._err(Ky.eofInTag);this._emitEOFToken();break}default:{t.tagName+=String.fromCodePoint(pw(e)?Ew(e):e)}}}_stateRcdataLessThanSign(e){if(e===zy.SOLIDUS){this.state=fw.RCDATA_END_TAG_OPEN}else{this._emitChars("<");this.state=fw.RCDATA;this._stateRcdata(e)}}_stateRcdataEndTagOpen(e){if(gw(e)){this.state=fw.RCDATA_END_TAG_NAME;this._stateRcdataEndTagName(e)}else{this._emitChars("</");this.state=fw.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 zy.SPACE:case zy.LINE_FEED:case zy.TABULATION:case zy.FORM_FEED:{this._advanceBy(this.lastStartTagName.length);this.state=fw.BEFORE_ATTRIBUTE_NAME;return false}case zy.SOLIDUS:{this._advanceBy(this.lastStartTagName.length);this.state=fw.SELF_CLOSING_START_TAG;return false}case zy.GREATER_THAN_SIGN:{this._advanceBy(this.lastStartTagName.length);this.emitCurrentTagToken();this.state=fw.DATA;return false}default:{return!this._ensureHibernation()}}}_stateRcdataEndTagName(e){if(this.handleSpecialEndTag(e)){this._emitChars("</");this.state=fw.RCDATA;this._stateRcdata(e)}}_stateRawtextLessThanSign(e){if(e===zy.SOLIDUS){this.state=fw.RAWTEXT_END_TAG_OPEN}else{this._emitChars("<");this.state=fw.RAWTEXT;this._stateRawtext(e)}}_stateRawtextEndTagOpen(e){if(gw(e)){this.state=fw.RAWTEXT_END_TAG_NAME;this._stateRawtextEndTagName(e)}else{this._emitChars("</");this.state=fw.RAWTEXT;this._stateRawtext(e)}}_stateRawtextEndTagName(e){if(this.handleSpecialEndTag(e)){this._emitChars("</");this.state=fw.RAWTEXT;this._stateRawtext(e)}}_stateScriptDataLessThanSign(e){switch(e){case zy.SOLIDUS:{this.state=fw.SCRIPT_DATA_END_TAG_OPEN;break}case zy.EXCLAMATION_MARK:{this.state=fw.SCRIPT_DATA_ESCAPE_START;this._emitChars("<!");break}default:{this._emitChars("<");this.state=fw.SCRIPT_DATA;this._stateScriptData(e)}}}_stateScriptDataEndTagOpen(e){if(gw(e)){this.state=fw.SCRIPT_DATA_END_TAG_NAME;this._stateScriptDataEndTagName(e)}else{this._emitChars("</");this.state=fw.SCRIPT_DATA;this._stateScriptData(e)}}_stateScriptDataEndTagName(e){if(this.handleSpecialEndTag(e)){this._emitChars("</");this.state=fw.SCRIPT_DATA;this._stateScriptData(e)}}_stateScriptDataEscapeStart(e){if(e===zy.HYPHEN_MINUS){this.state=fw.SCRIPT_DATA_ESCAPE_START_DASH;this._emitChars("-")}else{this.state=fw.SCRIPT_DATA;this._stateScriptData(e)}}_stateScriptDataEscapeStartDash(e){if(e===zy.HYPHEN_MINUS){this.state=fw.SCRIPT_DATA_ESCAPED_DASH_DASH;this._emitChars("-")}else{this.state=fw.SCRIPT_DATA;this._stateScriptData(e)}}_stateScriptDataEscaped(e){switch(e){case zy.HYPHEN_MINUS:{this.state=fw.SCRIPT_DATA_ESCAPED_DASH;this._emitChars("-");break}case zy.LESS_THAN_SIGN:{this.state=fw.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case zy.NULL:{this._err(Ky.unexpectedNullCharacter);this._emitChars(Hy);break}case zy.EOF:{this._err(Ky.eofInScriptHtmlCommentLikeText);this._emitEOFToken();break}default:{this._emitCodePoint(e)}}}_stateScriptDataEscapedDash(e){switch(e){case zy.HYPHEN_MINUS:{this.state=fw.SCRIPT_DATA_ESCAPED_DASH_DASH;this._emitChars("-");break}case zy.LESS_THAN_SIGN:{this.state=fw.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case zy.NULL:{this._err(Ky.unexpectedNullCharacter);this.state=fw.SCRIPT_DATA_ESCAPED;this._emitChars(Hy);break}case zy.EOF:{this._err(Ky.eofInScriptHtmlCommentLikeText);this._emitEOFToken();break}default:{this.state=fw.SCRIPT_DATA_ESCAPED;this._emitCodePoint(e)}}}_stateScriptDataEscapedDashDash(e){switch(e){case zy.HYPHEN_MINUS:{this._emitChars("-");break}case zy.LESS_THAN_SIGN:{this.state=fw.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case zy.GREATER_THAN_SIGN:{this.state=fw.SCRIPT_DATA;this._emitChars(">");break}case zy.NULL:{this._err(Ky.unexpectedNullCharacter);this.state=fw.SCRIPT_DATA_ESCAPED;this._emitChars(Hy);break}case zy.EOF:{this._err(Ky.eofInScriptHtmlCommentLikeText);this._emitEOFToken();break}default:{this.state=fw.SCRIPT_DATA_ESCAPED;this._emitCodePoint(e)}}}_stateScriptDataEscapedLessThanSign(e){if(e===zy.SOLIDUS){this.state=fw.SCRIPT_DATA_ESCAPED_END_TAG_OPEN}else if(gw(e)){this._emitChars("<");this.state=fw.SCRIPT_DATA_DOUBLE_ESCAPE_START;this._stateScriptDataDoubleEscapeStart(e)}else{this._emitChars("<");this.state=fw.SCRIPT_DATA_ESCAPED;this._stateScriptDataEscaped(e)}}_stateScriptDataEscapedEndTagOpen(e){if(gw(e)){this.state=fw.SCRIPT_DATA_ESCAPED_END_TAG_NAME;this._stateScriptDataEscapedEndTagName(e)}else{this._emitChars("</");this.state=fw.SCRIPT_DATA_ESCAPED;this._stateScriptDataEscaped(e)}}_stateScriptDataEscapedEndTagName(e){if(this.handleSpecialEndTag(e)){this._emitChars("</");this.state=fw.SCRIPT_DATA_ESCAPED;this._stateScriptDataEscaped(e)}}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(jy.SCRIPT,false)&&Sw(this.preprocessor.peek(jy.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e<jy.SCRIPT.length;e++){this._emitCodePoint(this._consume())}this.state=fw.SCRIPT_DATA_DOUBLE_ESCAPED}else if(!this._ensureHibernation()){this.state=fw.SCRIPT_DATA_ESCAPED;this._stateScriptDataEscaped(e)}}_stateScriptDataDoubleEscaped(e){switch(e){case zy.HYPHEN_MINUS:{this.state=fw.SCRIPT_DATA_DOUBLE_ESCAPED_DASH;this._emitChars("-");break}case zy.LESS_THAN_SIGN:{this.state=fw.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN;this._emitChars("<");break}case zy.NULL:{this._err(Ky.unexpectedNullCharacter);this._emitChars(Hy);break}case zy.EOF:{this._err(Ky.eofInScriptHtmlCommentLikeText);this._emitEOFToken();break}default:{this._emitCodePoint(e)}}}_stateScriptDataDoubleEscapedDash(e){switch(e){case zy.HYPHEN_MINUS:{this.state=fw.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH;this._emitChars("-");break}case zy.LESS_THAN_SIGN:{this.state=fw.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN;this._emitChars("<");break}case zy.NULL:{this._err(Ky.unexpectedNullCharacter);this.state=fw.SCRIPT_DATA_DOUBLE_ESCAPED;this._emitChars(Hy);break}case zy.EOF:{this._err(Ky.eofInScriptHtmlCommentLikeText);this._emitEOFToken();break}default:{this.state=fw.SCRIPT_DATA_DOUBLE_ESCAPED;this._emitCodePoint(e)}}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case zy.HYPHEN_MINUS:{this._emitChars("-");break}case zy.LESS_THAN_SIGN:{this.state=fw.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN;this._emitChars("<");break}case zy.GREATER_THAN_SIGN:{this.state=fw.SCRIPT_DATA;this._emitChars(">");break}case zy.NULL:{this._err(Ky.unexpectedNullCharacter);this.state=fw.SCRIPT_DATA_DOUBLE_ESCAPED;this._emitChars(Hy);break}case zy.EOF:{this._err(Ky.eofInScriptHtmlCommentLikeText);this._emitEOFToken();break}default:{this.state=fw.SCRIPT_DATA_DOUBLE_ESCAPED;this._emitCodePoint(e)}}}_stateScriptDataDoubleEscapedLessThanSign(e){if(e===zy.SOLIDUS){this.state=fw.SCRIPT_DATA_DOUBLE_ESCAPE_END;this._emitChars("/")}else{this.state=fw.SCRIPT_DATA_DOUBLE_ESCAPED;this._stateScriptDataDoubleEscaped(e)}}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(jy.SCRIPT,false)&&Sw(this.preprocessor.peek(jy.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e<jy.SCRIPT.length;e++){this._emitCodePoint(this._consume())}this.state=fw.SCRIPT_DATA_ESCAPED}else if(!this._ensureHibernation()){this.state=fw.SCRIPT_DATA_DOUBLE_ESCAPED;this._stateScriptDataDoubleEscaped(e)}}_stateBeforeAttributeName(e){switch(e){case zy.SPACE:case zy.LINE_FEED:case zy.TABULATION:case zy.FORM_FEED:{break}case zy.SOLIDUS:case zy.GREATER_THAN_SIGN:case zy.EOF:{this.state=fw.AFTER_ATTRIBUTE_NAME;this._stateAfterAttributeName(e);break}case zy.EQUALS_SIGN:{this._err(Ky.unexpectedEqualsSignBeforeAttributeName);this._createAttr("=");this.state=fw.ATTRIBUTE_NAME;break}default:{this._createAttr("");this.state=fw.ATTRIBUTE_NAME;this._stateAttributeName(e)}}}_stateAttributeName(e){switch(e){case zy.SPACE:case zy.LINE_FEED:case zy.TABULATION:case zy.FORM_FEED:case zy.SOLIDUS:case zy.GREATER_THAN_SIGN:case zy.EOF:{this._leaveAttrName();this.state=fw.AFTER_ATTRIBUTE_NAME;this._stateAfterAttributeName(e);break}case zy.EQUALS_SIGN:{this._leaveAttrName();this.state=fw.BEFORE_ATTRIBUTE_VALUE;break}case zy.QUOTATION_MARK:case zy.APOSTROPHE:case zy.LESS_THAN_SIGN:{this._err(Ky.unexpectedCharacterInAttributeName);this.currentAttr.name+=String.fromCodePoint(e);break}case zy.NULL:{this._err(Ky.unexpectedNullCharacter);this.currentAttr.name+=Hy;break}default:{this.currentAttr.name+=String.fromCodePoint(pw(e)?Ew(e):e)}}}_stateAfterAttributeName(e){switch(e){case zy.SPACE:case zy.LINE_FEED:case zy.TABULATION:case zy.FORM_FEED:{break}case zy.SOLIDUS:{this.state=fw.SELF_CLOSING_START_TAG;break}case zy.EQUALS_SIGN:{this.state=fw.BEFORE_ATTRIBUTE_VALUE;break}case zy.GREATER_THAN_SIGN:{this.state=fw.DATA;this.emitCurrentTagToken();break}case zy.EOF:{this._err(Ky.eofInTag);this._emitEOFToken();break}default:{this._createAttr("");this.state=fw.ATTRIBUTE_NAME;this._stateAttributeName(e)}}}_stateBeforeAttributeValue(e){switch(e){case zy.SPACE:case zy.LINE_FEED:case zy.TABULATION:case zy.FORM_FEED:{break}case zy.QUOTATION_MARK:{this.state=fw.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case zy.APOSTROPHE:{this.state=fw.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case zy.GREATER_THAN_SIGN:{this._err(Ky.missingAttributeValue);this.state=fw.DATA;this.emitCurrentTagToken();break}default:{this.state=fw.ATTRIBUTE_VALUE_UNQUOTED;this._stateAttributeValueUnquoted(e)}}}_stateAttributeValueDoubleQuoted(e){switch(e){case zy.QUOTATION_MARK:{this.state=fw.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case zy.AMPERSAND:{this.returnState=fw.ATTRIBUTE_VALUE_DOUBLE_QUOTED;this.state=fw.CHARACTER_REFERENCE;break}case zy.NULL:{this._err(Ky.unexpectedNullCharacter);this.currentAttr.value+=Hy;break}case zy.EOF:{this._err(Ky.eofInTag);this._emitEOFToken();break}default:{this.currentAttr.value+=String.fromCodePoint(e)}}}_stateAttributeValueSingleQuoted(e){switch(e){case zy.APOSTROPHE:{this.state=fw.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case zy.AMPERSAND:{this.returnState=fw.ATTRIBUTE_VALUE_SINGLE_QUOTED;this.state=fw.CHARACTER_REFERENCE;break}case zy.NULL:{this._err(Ky.unexpectedNullCharacter);this.currentAttr.value+=Hy;break}case zy.EOF:{this._err(Ky.eofInTag);this._emitEOFToken();break}default:{this.currentAttr.value+=String.fromCodePoint(e)}}}_stateAttributeValueUnquoted(e){switch(e){case zy.SPACE:case zy.LINE_FEED:case zy.TABULATION:case zy.FORM_FEED:{this._leaveAttrValue();this.state=fw.BEFORE_ATTRIBUTE_NAME;break}case zy.AMPERSAND:{this.returnState=fw.ATTRIBUTE_VALUE_UNQUOTED;this.state=fw.CHARACTER_REFERENCE;break}case zy.GREATER_THAN_SIGN:{this._leaveAttrValue();this.state=fw.DATA;this.emitCurrentTagToken();break}case zy.NULL:{this._err(Ky.unexpectedNullCharacter);this.currentAttr.value+=Hy;break}case zy.QUOTATION_MARK:case zy.APOSTROPHE:case zy.LESS_THAN_SIGN:case zy.EQUALS_SIGN:case zy.GRAVE_ACCENT:{this._err(Ky.unexpectedCharacterInUnquotedAttributeValue);this.currentAttr.value+=String.fromCodePoint(e);break}case zy.EOF:{this._err(Ky.eofInTag);this._emitEOFToken();break}default:{this.currentAttr.value+=String.fromCodePoint(e)}}}_stateAfterAttributeValueQuoted(e){switch(e){case zy.SPACE:case zy.LINE_FEED:case zy.TABULATION:case zy.FORM_FEED:{this._leaveAttrValue();this.state=fw.BEFORE_ATTRIBUTE_NAME;break}case zy.SOLIDUS:{this._leaveAttrValue();this.state=fw.SELF_CLOSING_START_TAG;break}case zy.GREATER_THAN_SIGN:{this._leaveAttrValue();this.state=fw.DATA;this.emitCurrentTagToken();break}case zy.EOF:{this._err(Ky.eofInTag);this._emitEOFToken();break}default:{this._err(Ky.missingWhitespaceBetweenAttributes);this.state=fw.BEFORE_ATTRIBUTE_NAME;this._stateBeforeAttributeName(e)}}}_stateSelfClosingStartTag(e){switch(e){case zy.GREATER_THAN_SIGN:{const e=this.currentToken;e.selfClosing=true;this.state=fw.DATA;this.emitCurrentTagToken();break}case zy.EOF:{this._err(Ky.eofInTag);this._emitEOFToken();break}default:{this._err(Ky.unexpectedSolidusInTag);this.state=fw.BEFORE_ATTRIBUTE_NAME;this._stateBeforeAttributeName(e)}}}_stateBogusComment(e){const t=this.currentToken;switch(e){case zy.GREATER_THAN_SIGN:{this.state=fw.DATA;this.emitCurrentComment(t);break}case zy.EOF:{this.emitCurrentComment(t);this._emitEOFToken();break}case zy.NULL:{this._err(Ky.unexpectedNullCharacter);t.data+=Hy;break}default:{t.data+=String.fromCodePoint(e)}}}_stateMarkupDeclarationOpen(e){if(this._consumeSequenceIfMatch(jy.DASH_DASH,true)){this._createCommentToken(jy.DASH_DASH.length+1);this.state=fw.COMMENT_START}else if(this._consumeSequenceIfMatch(jy.DOCTYPE,false)){this.currentLocation=this.getCurrentLocation(jy.DOCTYPE.length+1);this.state=fw.DOCTYPE}else if(this._consumeSequenceIfMatch(jy.CDATA_START,true)){if(this.inForeignNode){this.state=fw.CDATA_SECTION}else{this._err(Ky.cdataInHtmlContent);this._createCommentToken(jy.CDATA_START.length+1);this.currentToken.data="[CDATA[";this.state=fw.BOGUS_COMMENT}}else if(!this._ensureHibernation()){this._err(Ky.incorrectlyOpenedComment);this._createCommentToken(2);this.state=fw.BOGUS_COMMENT;this._stateBogusComment(e)}}_stateCommentStart(e){switch(e){case zy.HYPHEN_MINUS:{this.state=fw.COMMENT_START_DASH;break}case zy.GREATER_THAN_SIGN:{this._err(Ky.abruptClosingOfEmptyComment);this.state=fw.DATA;const e=this.currentToken;this.emitCurrentComment(e);break}default:{this.state=fw.COMMENT;this._stateComment(e)}}}_stateCommentStartDash(e){const t=this.currentToken;switch(e){case zy.HYPHEN_MINUS:{this.state=fw.COMMENT_END;break}case zy.GREATER_THAN_SIGN:{this._err(Ky.abruptClosingOfEmptyComment);this.state=fw.DATA;this.emitCurrentComment(t);break}case zy.EOF:{this._err(Ky.eofInComment);this.emitCurrentComment(t);this._emitEOFToken();break}default:{t.data+="-";this.state=fw.COMMENT;this._stateComment(e)}}}_stateComment(e){const t=this.currentToken;switch(e){case zy.HYPHEN_MINUS:{this.state=fw.COMMENT_END_DASH;break}case zy.LESS_THAN_SIGN:{t.data+="<";this.state=fw.COMMENT_LESS_THAN_SIGN;break}case zy.NULL:{this._err(Ky.unexpectedNullCharacter);t.data+=Hy;break}case zy.EOF:{this._err(Ky.eofInComment);this.emitCurrentComment(t);this._emitEOFToken();break}default:{t.data+=String.fromCodePoint(e)}}}_stateCommentLessThanSign(e){const t=this.currentToken;switch(e){case zy.EXCLAMATION_MARK:{t.data+="!";this.state=fw.COMMENT_LESS_THAN_SIGN_BANG;break}case zy.LESS_THAN_SIGN:{t.data+="<";break}default:{this.state=fw.COMMENT;this._stateComment(e)}}}_stateCommentLessThanSignBang(e){if(e===zy.HYPHEN_MINUS){this.state=fw.COMMENT_LESS_THAN_SIGN_BANG_DASH}else{this.state=fw.COMMENT;this._stateComment(e)}}_stateCommentLessThanSignBangDash(e){if(e===zy.HYPHEN_MINUS){this.state=fw.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH}else{this.state=fw.COMMENT_END_DASH;this._stateCommentEndDash(e)}}_stateCommentLessThanSignBangDashDash(e){if(e!==zy.GREATER_THAN_SIGN&&e!==zy.EOF){this._err(Ky.nestedComment)}this.state=fw.COMMENT_END;this._stateCommentEnd(e)}_stateCommentEndDash(e){const t=this.currentToken;switch(e){case zy.HYPHEN_MINUS:{this.state=fw.COMMENT_END;break}case zy.EOF:{this._err(Ky.eofInComment);this.emitCurrentComment(t);this._emitEOFToken();break}default:{t.data+="-";this.state=fw.COMMENT;this._stateComment(e)}}}_stateCommentEnd(e){const t=this.currentToken;switch(e){case zy.GREATER_THAN_SIGN:{this.state=fw.DATA;this.emitCurrentComment(t);break}case zy.EXCLAMATION_MARK:{this.state=fw.COMMENT_END_BANG;break}case zy.HYPHEN_MINUS:{t.data+="-";break}case zy.EOF:{this._err(Ky.eofInComment);this.emitCurrentComment(t);this._emitEOFToken();break}default:{t.data+="--";this.state=fw.COMMENT;this._stateComment(e)}}}_stateCommentEndBang(e){const t=this.currentToken;switch(e){case zy.HYPHEN_MINUS:{t.data+="--!";this.state=fw.COMMENT_END_DASH;break}case zy.GREATER_THAN_SIGN:{this._err(Ky.incorrectlyClosedComment);this.state=fw.DATA;this.emitCurrentComment(t);break}case zy.EOF:{this._err(Ky.eofInComment);this.emitCurrentComment(t);this._emitEOFToken();break}default:{t.data+="--!";this.state=fw.COMMENT;this._stateComment(e)}}}_stateDoctype(e){switch(e){case zy.SPACE:case zy.LINE_FEED:case zy.TABULATION:case zy.FORM_FEED:{this.state=fw.BEFORE_DOCTYPE_NAME;break}case zy.GREATER_THAN_SIGN:{this.state=fw.BEFORE_DOCTYPE_NAME;this._stateBeforeDoctypeName(e);break}case zy.EOF:{this._err(Ky.eofInDoctype);this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=true;this.emitCurrentDoctype(e);this._emitEOFToken();break}default:{this._err(Ky.missingWhitespaceBeforeDoctypeName);this.state=fw.BEFORE_DOCTYPE_NAME;this._stateBeforeDoctypeName(e)}}}_stateBeforeDoctypeName(e){if(pw(e)){this._createDoctypeToken(String.fromCharCode(Ew(e)));this.state=fw.DOCTYPE_NAME}else switch(e){case zy.SPACE:case zy.LINE_FEED:case zy.TABULATION:case zy.FORM_FEED:{break}case zy.NULL:{this._err(Ky.unexpectedNullCharacter);this._createDoctypeToken(Hy);this.state=fw.DOCTYPE_NAME;break}case zy.GREATER_THAN_SIGN:{this._err(Ky.missingDoctypeName);this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=true;this.emitCurrentDoctype(e);this.state=fw.DATA;break}case zy.EOF:{this._err(Ky.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=fw.DOCTYPE_NAME}}}_stateDoctypeName(e){const t=this.currentToken;switch(e){case zy.SPACE:case zy.LINE_FEED:case zy.TABULATION:case zy.FORM_FEED:{this.state=fw.AFTER_DOCTYPE_NAME;break}case zy.GREATER_THAN_SIGN:{this.state=fw.DATA;this.emitCurrentDoctype(t);break}case zy.NULL:{this._err(Ky.unexpectedNullCharacter);t.name+=Hy;break}case zy.EOF:{this._err(Ky.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{t.name+=String.fromCodePoint(pw(e)?Ew(e):e)}}}_stateAfterDoctypeName(e){const t=this.currentToken;switch(e){case zy.SPACE:case zy.LINE_FEED:case zy.TABULATION:case zy.FORM_FEED:{break}case zy.GREATER_THAN_SIGN:{this.state=fw.DATA;this.emitCurrentDoctype(t);break}case zy.EOF:{this._err(Ky.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{if(this._consumeSequenceIfMatch(jy.PUBLIC,false)){this.state=fw.AFTER_DOCTYPE_PUBLIC_KEYWORD}else if(this._consumeSequenceIfMatch(jy.SYSTEM,false)){this.state=fw.AFTER_DOCTYPE_SYSTEM_KEYWORD}else if(!this._ensureHibernation()){this._err(Ky.invalidCharacterSequenceAfterDoctypeName);t.forceQuirks=true;this.state=fw.BOGUS_DOCTYPE;this._stateBogusDoctype(e)}}}}_stateAfterDoctypePublicKeyword(e){const t=this.currentToken;switch(e){case zy.SPACE:case zy.LINE_FEED:case zy.TABULATION:case zy.FORM_FEED:{this.state=fw.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case zy.QUOTATION_MARK:{this._err(Ky.missingWhitespaceAfterDoctypePublicKeyword);t.publicId="";this.state=fw.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case zy.APOSTROPHE:{this._err(Ky.missingWhitespaceAfterDoctypePublicKeyword);t.publicId="";this.state=fw.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case zy.GREATER_THAN_SIGN:{this._err(Ky.missingDoctypePublicIdentifier);t.forceQuirks=true;this.state=fw.DATA;this.emitCurrentDoctype(t);break}case zy.EOF:{this._err(Ky.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{this._err(Ky.missingQuoteBeforeDoctypePublicIdentifier);t.forceQuirks=true;this.state=fw.BOGUS_DOCTYPE;this._stateBogusDoctype(e)}}}_stateBeforeDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case zy.SPACE:case zy.LINE_FEED:case zy.TABULATION:case zy.FORM_FEED:{break}case zy.QUOTATION_MARK:{t.publicId="";this.state=fw.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case zy.APOSTROPHE:{t.publicId="";this.state=fw.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case zy.GREATER_THAN_SIGN:{this._err(Ky.missingDoctypePublicIdentifier);t.forceQuirks=true;this.state=fw.DATA;this.emitCurrentDoctype(t);break}case zy.EOF:{this._err(Ky.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{this._err(Ky.missingQuoteBeforeDoctypePublicIdentifier);t.forceQuirks=true;this.state=fw.BOGUS_DOCTYPE;this._stateBogusDoctype(e)}}}_stateDoctypePublicIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case zy.QUOTATION_MARK:{this.state=fw.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case zy.NULL:{this._err(Ky.unexpectedNullCharacter);t.publicId+=Hy;break}case zy.GREATER_THAN_SIGN:{this._err(Ky.abruptDoctypePublicIdentifier);t.forceQuirks=true;this.emitCurrentDoctype(t);this.state=fw.DATA;break}case zy.EOF:{this._err(Ky.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 zy.APOSTROPHE:{this.state=fw.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case zy.NULL:{this._err(Ky.unexpectedNullCharacter);t.publicId+=Hy;break}case zy.GREATER_THAN_SIGN:{this._err(Ky.abruptDoctypePublicIdentifier);t.forceQuirks=true;this.emitCurrentDoctype(t);this.state=fw.DATA;break}case zy.EOF:{this._err(Ky.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 zy.SPACE:case zy.LINE_FEED:case zy.TABULATION:case zy.FORM_FEED:{this.state=fw.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case zy.GREATER_THAN_SIGN:{this.state=fw.DATA;this.emitCurrentDoctype(t);break}case zy.QUOTATION_MARK:{this._err(Ky.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers);t.systemId="";this.state=fw.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case zy.APOSTROPHE:{this._err(Ky.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers);t.systemId="";this.state=fw.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case zy.EOF:{this._err(Ky.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{this._err(Ky.missingQuoteBeforeDoctypeSystemIdentifier);t.forceQuirks=true;this.state=fw.BOGUS_DOCTYPE;this._stateBogusDoctype(e)}}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const t=this.currentToken;switch(e){case zy.SPACE:case zy.LINE_FEED:case zy.TABULATION:case zy.FORM_FEED:{break}case zy.GREATER_THAN_SIGN:{this.emitCurrentDoctype(t);this.state=fw.DATA;break}case zy.QUOTATION_MARK:{t.systemId="";this.state=fw.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case zy.APOSTROPHE:{t.systemId="";this.state=fw.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case zy.EOF:{this._err(Ky.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{this._err(Ky.missingQuoteBeforeDoctypeSystemIdentifier);t.forceQuirks=true;this.state=fw.BOGUS_DOCTYPE;this._stateBogusDoctype(e)}}}_stateAfterDoctypeSystemKeyword(e){const t=this.currentToken;switch(e){case zy.SPACE:case zy.LINE_FEED:case zy.TABULATION:case zy.FORM_FEED:{this.state=fw.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case zy.QUOTATION_MARK:{this._err(Ky.missingWhitespaceAfterDoctypeSystemKeyword);t.systemId="";this.state=fw.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case zy.APOSTROPHE:{this._err(Ky.missingWhitespaceAfterDoctypeSystemKeyword);t.systemId="";this.state=fw.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case zy.GREATER_THAN_SIGN:{this._err(Ky.missingDoctypeSystemIdentifier);t.forceQuirks=true;this.state=fw.DATA;this.emitCurrentDoctype(t);break}case zy.EOF:{this._err(Ky.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{this._err(Ky.missingQuoteBeforeDoctypeSystemIdentifier);t.forceQuirks=true;this.state=fw.BOGUS_DOCTYPE;this._stateBogusDoctype(e)}}}_stateBeforeDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case zy.SPACE:case zy.LINE_FEED:case zy.TABULATION:case zy.FORM_FEED:{break}case zy.QUOTATION_MARK:{t.systemId="";this.state=fw.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case zy.APOSTROPHE:{t.systemId="";this.state=fw.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case zy.GREATER_THAN_SIGN:{this._err(Ky.missingDoctypeSystemIdentifier);t.forceQuirks=true;this.state=fw.DATA;this.emitCurrentDoctype(t);break}case zy.EOF:{this._err(Ky.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{this._err(Ky.missingQuoteBeforeDoctypeSystemIdentifier);t.forceQuirks=true;this.state=fw.BOGUS_DOCTYPE;this._stateBogusDoctype(e)}}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case zy.QUOTATION_MARK:{this.state=fw.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case zy.NULL:{this._err(Ky.unexpectedNullCharacter);t.systemId+=Hy;break}case zy.GREATER_THAN_SIGN:{this._err(Ky.abruptDoctypeSystemIdentifier);t.forceQuirks=true;this.emitCurrentDoctype(t);this.state=fw.DATA;break}case zy.EOF:{this._err(Ky.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 zy.APOSTROPHE:{this.state=fw.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case zy.NULL:{this._err(Ky.unexpectedNullCharacter);t.systemId+=Hy;break}case zy.GREATER_THAN_SIGN:{this._err(Ky.abruptDoctypeSystemIdentifier);t.forceQuirks=true;this.emitCurrentDoctype(t);this.state=fw.DATA;break}case zy.EOF:{this._err(Ky.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 zy.SPACE:case zy.LINE_FEED:case zy.TABULATION:case zy.FORM_FEED:{break}case zy.GREATER_THAN_SIGN:{this.emitCurrentDoctype(t);this.state=fw.DATA;break}case zy.EOF:{this._err(Ky.eofInDoctype);t.forceQuirks=true;this.emitCurrentDoctype(t);this._emitEOFToken();break}default:{this._err(Ky.unexpectedCharacterAfterDoctypeSystemIdentifier);this.state=fw.BOGUS_DOCTYPE;this._stateBogusDoctype(e)}}}_stateBogusDoctype(e){const t=this.currentToken;switch(e){case zy.GREATER_THAN_SIGN:{this.emitCurrentDoctype(t);this.state=fw.DATA;break}case zy.NULL:{this._err(Ky.unexpectedNullCharacter);break}case zy.EOF:{this.emitCurrentDoctype(t);this._emitEOFToken();break}}}_stateCdataSection(e){switch(e){case zy.RIGHT_SQUARE_BRACKET:{this.state=fw.CDATA_SECTION_BRACKET;break}case zy.EOF:{this._err(Ky.eofInCdata);this._emitEOFToken();break}default:{this._emitCodePoint(e)}}}_stateCdataSectionBracket(e){if(e===zy.RIGHT_SQUARE_BRACKET){this.state=fw.CDATA_SECTION_END}else{this._emitChars("]");this.state=fw.CDATA_SECTION;this._stateCdataSection(e)}}_stateCdataSectionEnd(e){switch(e){case zy.GREATER_THAN_SIGN:{this.state=fw.DATA;break}case zy.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:{this._emitChars("]]");this.state=fw.CDATA_SECTION;this._stateCdataSection(e)}}}_stateCharacterReference(e){if(e===zy.NUMBER_SIGN){this.state=fw.NUMERIC_CHARACTER_REFERENCE}else if(bw(e)){this.state=fw.NAMED_CHARACTER_REFERENCE;this._stateNamedCharacterReference(e)}else{this._flushCodePointConsumedAsCharacterReference(zy.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(zy.AMPERSAND);this.state=fw.AMBIGUOUS_AMPERSAND}}_stateAmbiguousAmpersand(e){if(bw(e)){this._flushCodePointConsumedAsCharacterReference(e)}else{if(e===zy.SEMICOLON){this._err(Ky.unknownNamedCharacterReference)}this._reconsumeInState(this.returnState,e)}}_stateNumericCharacterReference(e){this.charRefCode=0;if(e===zy.LATIN_SMALL_X||e===zy.LATIN_CAPITAL_X){this.state=fw.HEXADEMICAL_CHARACTER_REFERENCE_START}else if(dw(e)){this.state=fw.DECIMAL_CHARACTER_REFERENCE;this._stateDecimalCharacterReference(e)}else{this._err(Ky.absenceOfDigitsInNumericCharacterReference);this._flushCodePointConsumedAsCharacterReference(zy.AMPERSAND);this._flushCodePointConsumedAsCharacterReference(zy.NUMBER_SIGN);this._reconsumeInState(this.returnState,e)}}_stateHexademicalCharacterReferenceStart(e){if(ww(e)){this.state=fw.HEXADEMICAL_CHARACTER_REFERENCE;this._stateHexademicalCharacterReference(e)}else{this._err(Ky.absenceOfDigitsInNumericCharacterReference);this._flushCodePointConsumedAsCharacterReference(zy.AMPERSAND);this._flushCodePointConsumedAsCharacterReference(zy.NUMBER_SIGN);this._unconsume(2);this.state=this.returnState}}_stateHexademicalCharacterReference(e){if(kw(e)){this.charRefCode=this.charRefCode*16+e-55}else if(yw(e)){this.charRefCode=this.charRefCode*16+e-87}else if(dw(e)){this.charRefCode=this.charRefCode*16+e-48}else if(e===zy.SEMICOLON){this.state=fw.NUMERIC_CHARACTER_REFERENCE_END}else{this._err(Ky.missingSemicolonAfterCharacterReference);this.state=fw.NUMERIC_CHARACTER_REFERENCE_END;this._stateNumericCharacterReferenceEnd(e)}}_stateDecimalCharacterReference(e){if(dw(e)){this.charRefCode=this.charRefCode*10+e-48}else if(e===zy.SEMICOLON){this.state=fw.NUMERIC_CHARACTER_REFERENCE_END}else{this._err(Ky.missingSemicolonAfterCharacterReference);this.state=fw.NUMERIC_CHARACTER_REFERENCE_END;this._stateNumericCharacterReferenceEnd(e)}}_stateNumericCharacterReferenceEnd(e){if(this.charRefCode===zy.NULL){this._err(Ky.nullCharacterReference);this.charRefCode=zy.REPLACEMENT_CHARACTER}else if(this.charRefCode>1114111){this._err(Ky.characterReferenceOutsideUnicodeRange);this.charRefCode=zy.REPLACEMENT_CHARACTER}else if(Gy(this.charRefCode)){this._err(Ky.surrogateCharacterReference);this.charRefCode=zy.REPLACEMENT_CHARACTER}else if(Xy(this.charRefCode)){this._err(Ky.noncharacterCharacterReference)}else if(Wy(this.charRefCode)||this.charRefCode===zy.CARRIAGE_RETURN){this._err(Ky.controlCharacterReference);const e=uw.get(this.charRefCode);if(e!==undefined){this.charRefCode=e}}this._flushCodePointConsumedAsCharacterReference(this.charRefCode);this._reconsumeInState(this.returnState,e)}}const Aw=new Set([rw.DD,rw.DT,rw.LI,rw.OPTGROUP,rw.OPTION,rw.P,rw.RB,rw.RP,rw.RT,rw.RTC]);const Cw=new Set([...Aw,rw.CAPTION,rw.COLGROUP,rw.TBODY,rw.TD,rw.TFOOT,rw.TH,rw.THEAD,rw.TR]);const Dw=new Map([[rw.APPLET,ew.HTML],[rw.CAPTION,ew.HTML],[rw.HTML,ew.HTML],[rw.MARQUEE,ew.HTML],[rw.OBJECT,ew.HTML],[rw.TABLE,ew.HTML],[rw.TD,ew.HTML],[rw.TEMPLATE,ew.HTML],[rw.TH,ew.HTML],[rw.ANNOTATION_XML,ew.MATHML],[rw.MI,ew.MATHML],[rw.MN,ew.MATHML],[rw.MO,ew.MATHML],[rw.MS,ew.MATHML],[rw.MTEXT,ew.MATHML],[rw.DESC,ew.SVG],[rw.FOREIGN_OBJECT,ew.SVG],[rw.TITLE,ew.SVG]]);const _w=[rw.H1,rw.H2,rw.H3,rw.H4,rw.H5,rw.H6];const Rw=[rw.TR,rw.TEMPLATE,rw.HTML];const Lw=[rw.TBODY,rw.TFOOT,rw.THEAD,rw.TEMPLATE,rw.HTML];const Iw=[rw.TABLE,rw.TEMPLATE,rw.HTML];const Ow=[rw.TD,rw.TH];class Nw{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=rw.UNKNOWN;this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===rw.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===ew.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])!==ew.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(_w,ew.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Ow,ew.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(Iw,ew.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Lw,ew.HTML)}clearBackToTableRowContext(){this.clearBackTo(Rw,ew.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]===rw.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]===rw.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===ew.HTML){return true}if(Dw.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(cw(t)&&n===ew.HTML){return true}if(Dw.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===ew.HTML){return true}if((n===rw.UL||n===rw.OL)&&i===ew.HTML||Dw.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===ew.HTML){return true}if(n===rw.BUTTON&&i===ew.HTML||Dw.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!==ew.HTML){continue}if(n===e){return true}if(n===rw.TABLE||n===rw.TEMPLATE||n===rw.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!==ew.HTML){continue}if(t===rw.TBODY||t===rw.THEAD||t===rw.TFOOT){return true}if(t===rw.TABLE||t===rw.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!==ew.HTML){continue}if(n===e){return true}if(n!==rw.OPTION&&n!==rw.OPTGROUP){return false}}return true}generateImpliedEndTags(){while(Aw.has(this.currentTagId)){this.pop()}}generateImpliedEndTagsThoroughly(){while(Cw.has(this.currentTagId)){this.pop()}}generateImpliedEndTagsWithExclusion(e){while(this.currentTagId!==e&&Cw.has(this.currentTagId)){this.pop()}}}const Pw=3;var Mw;(function(e){e[e["Marker"]=0]="Marker";e[e["Element"]=1]="Element"})(Mw=Mw||(Mw={}));const Uw={type:Mw.Marker};class qw{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===Mw.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<Pw)return;const t=this.treeAdapter.getAttrList(e);const n=this._getNoahArkConditionCandidates(e,t);if(n.length<Pw)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>=Pw){this.entries.splice(t.idx,1)}}}}insertMarker(){this.entries.unshift(Uw)}pushElement(e,t){this._ensureNoahArkCondition(e);this.entries.unshift({type:Mw.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:Mw.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(Uw);if(e>=0){this.entries.splice(0,e+1)}else{this.entries.length=0}}getElementEntryInScopeWithTagName(e){const t=this.entries.find((t=>t.type===Mw.Marker||this.treeAdapter.getTagName(t.element)===e));return t&&t.type===Mw.Element?t:null}getElementEntry(e){return this.entries.find((t=>t.type===Mw.Element&&t.element===e))}}function Bw(e){return{nodeName:"#text",value:e,parentNode:null}}const Fw={createDocument(){return{nodeName:"#document",mode:nw.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};Fw.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(Fw.isTextNode(n)){n.value+=t;return}}Fw.appendChild(e,Bw(t))},insertTextBefore(e,t,n){const i=e.childNodes[e.childNodes.indexOf(n)-1];if(i&&Fw.isTextNode(i)){i.value+=t}else{Fw.insertBefore(e,Bw(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 Hw="html";const zw="about:legacy-compat";const jw="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd";const Gw=["+//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 Vw=[...Gw,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];const Yw=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]);const Ww=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"];const Xw=[...Ww,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Kw(e,t){return t.some((t=>e.startsWith(t)))}function $w(e){return e.name===Hw&&e.publicId===null&&(e.systemId===null||e.systemId===zw)}function Qw(e){if(e.name!==Hw){return nw.QUIRKS}const{systemId:t}=e;if(t&&t.toLowerCase()===jw){return nw.QUIRKS}let{publicId:n}=e;if(n!==null){n=n.toLowerCase();if(Yw.has(n)){return nw.QUIRKS}let e=t===null?Vw:Gw;if(Kw(n,e)){return nw.QUIRKS}e=t===null?Ww:Xw;if(Kw(n,e)){return nw.LIMITED_QUIRKS}}return nw.NO_QUIRKS}const Zw={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"};const Jw="definitionurl";const eE="definitionURL";const tE=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 nE=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:ew.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:ew.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:ew.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:ew.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:ew.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:ew.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:ew.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:ew.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:ew.XML}],["xml:space",{prefix:"xml",name:"space",namespace:ew.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:ew.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:ew.XMLNS}]]);const iE=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 rE=new Set([rw.B,rw.BIG,rw.BLOCKQUOTE,rw.BODY,rw.BR,rw.CENTER,rw.CODE,rw.DD,rw.DIV,rw.DL,rw.DT,rw.EM,rw.EMBED,rw.H1,rw.H2,rw.H3,rw.H4,rw.H5,rw.H6,rw.HEAD,rw.HR,rw.I,rw.IMG,rw.LI,rw.LISTING,rw.MENU,rw.META,rw.NOBR,rw.OL,rw.P,rw.PRE,rw.RUBY,rw.S,rw.SMALL,rw.SPAN,rw.STRONG,rw.STRIKE,rw.SUB,rw.SUP,rw.TABLE,rw.TT,rw.U,rw.UL,rw.VAR]);function sE(e){const t=e.tagID;const n=t===rw.FONT&&e.attrs.some((({name:e})=>e===tw.COLOR||e===tw.SIZE||e===tw.FACE));return n||rE.has(t)}function oE(e){for(let t=0;t<e.attrs.length;t++){if(e.attrs[t].name===Jw){e.attrs[t].name=eE;break}}}function aE(e){for(let t=0;t<e.attrs.length;t++){const n=tE.get(e.attrs[t].name);if(n!=null){e.attrs[t].name=n}}}function lE(e){for(let t=0;t<e.attrs.length;t++){const n=nE.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 cE(e){const t=iE.get(e.tagName);if(t!=null){e.tagName=t;e.tagID=ow(e.tagName)}}function uE(e,t){return t===ew.MATHML&&(e===rw.MI||e===rw.MO||e===rw.MN||e===rw.MS||e===rw.MTEXT)}function fE(e,t,n){if(t===ew.MATHML&&e===rw.ANNOTATION_XML){for(let e=0;e<n.length;e++){if(n[e].name===tw.ENCODING){const t=n[e].value.toLowerCase();return t===Zw.TEXT_HTML||t===Zw.APPLICATION_XML}}}return t===ew.SVG&&(e===rw.FOREIGN_OBJECT||e===rw.DESC||e===rw.TITLE)}function hE(e,t,n,i){return(!i||i===ew.HTML)&&fE(e,t,n)||(!i||i===ew.MATHML)&&uE(e,t)}const dE="hidden";const pE=8;const mE=3;var gE;(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"})(gE||(gE={}));const bE={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};const kE=new Set([rw.TABLE,rw.TBODY,rw.TFOOT,rw.THEAD,rw.TR]);const yE={scriptingEnabled:true,sourceCodeLocationInfo:false,treeAdapter:Fw,onParseError:null};class wE{constructor(e,t,n=null,i=null){this.fragmentContext=n;this.scriptHandler=i;this.currentToken=null;this.stopped=false;this.insertionMode=gE.INITIAL;this.originalInsertionMode=gE.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={...yE,...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 xw(this.options,this);this.activeFormattingElements=new qw(this.treeAdapter);this.fragmentContextID=n?ow(this.treeAdapter.getTagName(n)):rw.UNKNOWN;this._setContextModes(n!==null&&n!==void 0?n:this.document,this.fragmentContextID);this.openElements=new Nw(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={...yE,...t};e!==null&&e!==void 0?e:e=n.treeAdapter.createElement(iw.TEMPLATE,ew.HTML,[]);const i=n.treeAdapter.createElement("documentmock",ew.HTML,[]);const r=new this(n,i,e);if(r.fragmentContextID===rw.TEMPLATE){r.tmplInsertionModeStack.unshift(gE.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:bE;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)===ew.HTML;this.currentNotInHTML=!n;this.tokenizer.inForeignNode=!n&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,ew.HTML);this.tokenizer.state=t;this.originalInsertionMode=this.insertionMode;this.insertionMode=gE.TEXT}switchToPlaintextParsing(){this.insertionMode=gE.TEXT;this.originalInsertionMode=gE.IN_BODY;this.tokenizer.state=hw.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)===iw.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==ew.HTML){return}switch(this.fragmentContextID){case rw.TITLE:case rw.TEXTAREA:{this.tokenizer.state=hw.RCDATA;break}case rw.STYLE:case rw.XMP:case rw.IFRAME:case rw.NOEMBED:case rw.NOFRAMES:case rw.NOSCRIPT:{this.tokenizer.state=hw.RAWTEXT;break}case rw.SCRIPT:{this.tokenizer.state=hw.SCRIPT_DATA;break}case rw.PLAINTEXT:{this.tokenizer.state=hw.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,ew.HTML,[]);this._attachElementToTree(n,null);this.openElements.push(n,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,ew.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(iw.HTML,ew.HTML,[]);if(this.options.sourceCodeLocationInfo)this.treeAdapter.setNodeSourceCodeLocation(e,null);this.treeAdapter.appendChild(this.openElements.current,e);this.openElements.push(e,rw.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===Zy.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===rw.SVG&&this.treeAdapter.getTagName(t)===iw.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(t)===ew.MATHML){return false}return this.tokenizer.inForeignNode||(e.tagID===rw.MGLYPH||e.tagID===rw.MALIGNMARK)&&!this._isIntegrationPoint(n,t,ew.HTML)}_processToken(e){switch(e.type){case Zy.CHARACTER:{this.onCharacter(e);break}case Zy.NULL_CHARACTER:{this.onNullCharacter(e);break}case Zy.COMMENT:{this.onComment(e);break}case Zy.DOCTYPE:{this.onDoctype(e);break}case Zy.START_TAG:{this._processStartTag(e);break}case Zy.END_TAG:{this.onEndTag(e);break}case Zy.EOF:{this.onEof(e);break}case Zy.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(e);break}}}_isIntegrationPoint(e,t,n){const i=this.treeAdapter.getNamespaceURI(t);const r=this.treeAdapter.getAttrList(t);return hE(e,i,r,n)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const t=this.activeFormattingElements.entries.findIndex((e=>e.type===Mw.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=gE.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(rw.P);this.openElements.popUntilTagNamePopped(rw.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--){switch(e===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case rw.TR:{this.insertionMode=gE.IN_ROW;return}case rw.TBODY:case rw.THEAD:case rw.TFOOT:{this.insertionMode=gE.IN_TABLE_BODY;return}case rw.CAPTION:{this.insertionMode=gE.IN_CAPTION;return}case rw.COLGROUP:{this.insertionMode=gE.IN_COLUMN_GROUP;return}case rw.TABLE:{this.insertionMode=gE.IN_TABLE;return}case rw.BODY:{this.insertionMode=gE.IN_BODY;return}case rw.FRAMESET:{this.insertionMode=gE.IN_FRAMESET;return}case rw.SELECT:{this._resetInsertionModeForSelect(e);return}case rw.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case rw.HTML:{this.insertionMode=this.headElement?gE.AFTER_HEAD:gE.BEFORE_HEAD;return}case rw.TD:case rw.TH:{if(e>0){this.insertionMode=gE.IN_CELL;return}break}case rw.HEAD:{if(e>0){this.insertionMode=gE.IN_HEAD;return}break}}}this.insertionMode=gE.IN_BODY}_resetInsertionModeForSelect(e){if(e>0){for(let t=e-1;t>0;t--){const e=this.openElements.tagIDs[t];if(e===rw.TEMPLATE){break}else if(e===rw.TABLE){this.insertionMode=gE.IN_SELECT_IN_TABLE;return}}}this.insertionMode=gE.IN_SELECT}_isElementCausesFosterParenting(e){return kE.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 rw.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(t)===ew.HTML){return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null}}break}case rw.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 lw[n].has(t)}onCharacter(e){this.skipNextNewLine=false;if(this.tokenizer.inForeignNode){qv(this,e);return}switch(this.insertionMode){case gE.INITIAL:{OE(this,e);break}case gE.BEFORE_HTML:{ME(this,e);break}case gE.BEFORE_HEAD:{BE(this,e);break}case gE.IN_HEAD:{jE(this,e);break}case gE.IN_HEAD_NO_SCRIPT:{YE(this,e);break}case gE.AFTER_HEAD:{KE(this,e);break}case gE.IN_BODY:case gE.IN_CAPTION:case gE.IN_CELL:case gE.IN_TEMPLATE:{ZE(this,e);break}case gE.TEXT:case gE.IN_SELECT:case gE.IN_SELECT_IN_TABLE:{this._insertCharacters(e);break}case gE.IN_TABLE:case gE.IN_TABLE_BODY:case gE.IN_ROW:{WT(this,e);break}case gE.IN_TABLE_TEXT:{ov(this,e);break}case gE.IN_COLUMN_GROUP:{dv(this,e);break}case gE.AFTER_BODY:{_v(this,e);break}case gE.AFTER_AFTER_BODY:{Pv(this,e);break}}}onNullCharacter(e){this.skipNextNewLine=false;if(this.tokenizer.inForeignNode){Uv(this,e);return}switch(this.insertionMode){case gE.INITIAL:{OE(this,e);break}case gE.BEFORE_HTML:{ME(this,e);break}case gE.BEFORE_HEAD:{BE(this,e);break}case gE.IN_HEAD:{jE(this,e);break}case gE.IN_HEAD_NO_SCRIPT:{YE(this,e);break}case gE.AFTER_HEAD:{KE(this,e);break}case gE.TEXT:{this._insertCharacters(e);break}case gE.IN_TABLE:case gE.IN_TABLE_BODY:case gE.IN_ROW:{WT(this,e);break}case gE.IN_COLUMN_GROUP:{dv(this,e);break}case gE.AFTER_BODY:{_v(this,e);break}case gE.AFTER_AFTER_BODY:{Pv(this,e);break}}}onComment(e){this.skipNextNewLine=false;if(this.currentNotInHTML){DE(this,e);return}switch(this.insertionMode){case gE.INITIAL:case gE.BEFORE_HTML:case gE.BEFORE_HEAD:case gE.IN_HEAD:case gE.IN_HEAD_NO_SCRIPT:case gE.AFTER_HEAD:case gE.IN_BODY:case gE.IN_TABLE:case gE.IN_CAPTION:case gE.IN_COLUMN_GROUP:case gE.IN_TABLE_BODY:case gE.IN_ROW:case gE.IN_CELL:case gE.IN_SELECT:case gE.IN_SELECT_IN_TABLE:case gE.IN_TEMPLATE:case gE.IN_FRAMESET:case gE.AFTER_FRAMESET:{DE(this,e);break}case gE.IN_TABLE_TEXT:{av(this,e);break}case gE.AFTER_BODY:{_E(this,e);break}case gE.AFTER_AFTER_BODY:case gE.AFTER_AFTER_FRAMESET:{RE(this,e);break}}}onDoctype(e){this.skipNextNewLine=false;switch(this.insertionMode){case gE.INITIAL:{IE(this,e);break}case gE.BEFORE_HEAD:case gE.IN_HEAD:case gE.IN_HEAD_NO_SCRIPT:case gE.AFTER_HEAD:{this._err(e,Ky.misplacedDoctype);break}case gE.IN_TABLE_TEXT:{av(this,e);break}}}onStartTag(e){this.skipNextNewLine=false;this.currentToken=e;this._processStartTag(e);if(e.selfClosing&&!e.ackSelfClosing){this._err(e,Ky.nonVoidHtmlElementStartTagWithTrailingSolidus)}}_processStartTag(e){if(this.shouldProcessStartTagTokenInForeignContent(e)){Fv(this,e)}else{this._startTagOutsideForeignContent(e)}}_startTagOutsideForeignContent(e){switch(this.insertionMode){case gE.INITIAL:{OE(this,e);break}case gE.BEFORE_HTML:{NE(this,e);break}case gE.BEFORE_HEAD:{UE(this,e);break}case gE.IN_HEAD:{FE(this,e);break}case gE.IN_HEAD_NO_SCRIPT:{GE(this,e);break}case gE.AFTER_HEAD:{WE(this,e);break}case gE.IN_BODY:{LT(this,e);break}case gE.IN_TABLE:{nv(this,e);break}case gE.IN_TABLE_TEXT:{av(this,e);break}case gE.IN_CAPTION:{cv(this,e);break}case gE.IN_COLUMN_GROUP:{fv(this,e);break}case gE.IN_TABLE_BODY:{pv(this,e);break}case gE.IN_ROW:{gv(this,e);break}case gE.IN_CELL:{kv(this,e);break}case gE.IN_SELECT:{wv(this,e);break}case gE.IN_SELECT_IN_TABLE:{Tv(this,e);break}case gE.IN_TEMPLATE:{Sv(this,e);break}case gE.AFTER_BODY:{Cv(this,e);break}case gE.IN_FRAMESET:{Rv(this,e);break}case gE.AFTER_FRAMESET:{Iv(this,e);break}case gE.AFTER_AFTER_BODY:{Nv(this,e);break}case gE.AFTER_AFTER_FRAMESET:{Mv(this,e);break}}}onEndTag(e){this.skipNextNewLine=false;this.currentToken=e;if(this.currentNotInHTML){Hv(this,e)}else{this._endTagOutsideForeignContent(e)}}_endTagOutsideForeignContent(e){switch(this.insertionMode){case gE.INITIAL:{OE(this,e);break}case gE.BEFORE_HTML:{PE(this,e);break}case gE.BEFORE_HEAD:{qE(this,e);break}case gE.IN_HEAD:{HE(this,e);break}case gE.IN_HEAD_NO_SCRIPT:{VE(this,e);break}case gE.AFTER_HEAD:{XE(this,e);break}case gE.IN_BODY:{jT(this,e);break}case gE.TEXT:{VT(this,e);break}case gE.IN_TABLE:{iv(this,e);break}case gE.IN_TABLE_TEXT:{av(this,e);break}case gE.IN_CAPTION:{uv(this,e);break}case gE.IN_COLUMN_GROUP:{hv(this,e);break}case gE.IN_TABLE_BODY:{mv(this,e);break}case gE.IN_ROW:{bv(this,e);break}case gE.IN_CELL:{yv(this,e);break}case gE.IN_SELECT:{Ev(this,e);break}case gE.IN_SELECT_IN_TABLE:{vv(this,e);break}case gE.IN_TEMPLATE:{xv(this,e);break}case gE.AFTER_BODY:{Dv(this,e);break}case gE.IN_FRAMESET:{Lv(this,e);break}case gE.AFTER_FRAMESET:{Ov(this,e);break}case gE.AFTER_AFTER_BODY:{Pv(this,e);break}}}onEof(e){switch(this.insertionMode){case gE.INITIAL:{OE(this,e);break}case gE.BEFORE_HTML:{ME(this,e);break}case gE.BEFORE_HEAD:{BE(this,e);break}case gE.IN_HEAD:{jE(this,e);break}case gE.IN_HEAD_NO_SCRIPT:{YE(this,e);break}case gE.AFTER_HEAD:{KE(this,e);break}case gE.IN_BODY:case gE.IN_TABLE:case gE.IN_CAPTION:case gE.IN_COLUMN_GROUP:case gE.IN_TABLE_BODY:case gE.IN_ROW:case gE.IN_CELL:case gE.IN_SELECT:case gE.IN_SELECT_IN_TABLE:{GT(this,e);break}case gE.TEXT:{YT(this,e);break}case gE.IN_TABLE_TEXT:{av(this,e);break}case gE.IN_TEMPLATE:{Av(this,e);break}case gE.AFTER_BODY:case gE.IN_FRAMESET:case gE.AFTER_FRAMESET:case gE.AFTER_AFTER_BODY:case gE.AFTER_AFTER_FRAMESET:{LE(this,e);break}}}onWhitespaceCharacter(e){if(this.skipNextNewLine){this.skipNextNewLine=false;if(e.chars.charCodeAt(0)===zy.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 gE.IN_HEAD:case gE.IN_HEAD_NO_SCRIPT:case gE.AFTER_HEAD:case gE.TEXT:case gE.IN_COLUMN_GROUP:case gE.IN_SELECT:case gE.IN_SELECT_IN_TABLE:case gE.IN_FRAMESET:case gE.AFTER_FRAMESET:{this._insertCharacters(e);break}case gE.IN_BODY:case gE.IN_CAPTION:case gE.IN_CELL:case gE.IN_TEMPLATE:case gE.AFTER_BODY:case gE.AFTER_AFTER_BODY:case gE.AFTER_AFTER_FRAMESET:{QE(this,e);break}case gE.IN_TABLE:case gE.IN_TABLE_BODY:case gE.IN_ROW:{WT(this,e);break}case gE.IN_TABLE_TEXT:{sv(this,e);break}}}}function EE(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{zT(e,t)}return n}function TE(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 vE(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>=mE;const l=!n||a;if(l){if(a){e.activeFormattingElements.removeEntry(n)}e.openElements.remove(o)}else{o=SE(e,n);if(i===t){e.activeFormattingElements.bookmark=n}e.treeAdapter.detachNode(i);e.treeAdapter.appendChild(o,i);i=o}}return i}function SE(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 xE(e,t,n){const i=e.treeAdapter.getTagName(t);const r=ow(i);if(e._isElementCausesFosterParenting(r)){e._fosterParentElement(n)}else{const i=e.treeAdapter.getNamespaceURI(t);if(r===rw.TEMPLATE&&i===ew.HTML){t=e.treeAdapter.getTemplateContent(t)}e.treeAdapter.appendChild(t,n)}}function AE(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 CE(e,t){for(let n=0;n<pE;n++){const n=EE(e,t);if(!n){break}const i=TE(e,n);if(!i){break}e.activeFormattingElements.bookmark=n;const r=vE(e,i,n.element);const s=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(r);if(s)xE(e,s,r);AE(e,i,n)}}function DE(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function _E(e,t){e._appendCommentNode(t,e.openElements.items[0])}function RE(e,t){e._appendCommentNode(t,e.document)}function LE(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 IE(e,t){e._setDocumentType(t);const n=t.forceQuirks?nw.QUIRKS:Qw(t);if(!$w(t)){e._err(t,Ky.nonConformingDoctype)}e.treeAdapter.setDocumentMode(e.document,n);e.insertionMode=gE.BEFORE_HTML}function OE(e,t){e._err(t,Ky.missingDoctype,true);e.treeAdapter.setDocumentMode(e.document,nw.QUIRKS);e.insertionMode=gE.BEFORE_HTML;e._processToken(t)}function NE(e,t){if(t.tagID===rw.HTML){e._insertElement(t,ew.HTML);e.insertionMode=gE.BEFORE_HEAD}else{ME(e,t)}}function PE(e,t){const n=t.tagID;if(n===rw.HTML||n===rw.HEAD||n===rw.BODY||n===rw.BR){ME(e,t)}}function ME(e,t){e._insertFakeRootElement();e.insertionMode=gE.BEFORE_HEAD;e._processToken(t)}function UE(e,t){switch(t.tagID){case rw.HTML:{LT(e,t);break}case rw.HEAD:{e._insertElement(t,ew.HTML);e.headElement=e.openElements.current;e.insertionMode=gE.IN_HEAD;break}default:{BE(e,t)}}}function qE(e,t){const n=t.tagID;if(n===rw.HEAD||n===rw.BODY||n===rw.HTML||n===rw.BR){BE(e,t)}else{e._err(t,Ky.endTagWithoutMatchingOpenElement)}}function BE(e,t){e._insertFakeElement(iw.HEAD,rw.HEAD);e.headElement=e.openElements.current;e.insertionMode=gE.IN_HEAD;e._processToken(t)}function FE(e,t){switch(t.tagID){case rw.HTML:{LT(e,t);break}case rw.BASE:case rw.BASEFONT:case rw.BGSOUND:case rw.LINK:case rw.META:{e._appendElement(t,ew.HTML);t.ackSelfClosing=true;break}case rw.TITLE:{e._switchToTextParsing(t,hw.RCDATA);break}case rw.NOSCRIPT:{if(e.options.scriptingEnabled){e._switchToTextParsing(t,hw.RAWTEXT)}else{e._insertElement(t,ew.HTML);e.insertionMode=gE.IN_HEAD_NO_SCRIPT}break}case rw.NOFRAMES:case rw.STYLE:{e._switchToTextParsing(t,hw.RAWTEXT);break}case rw.SCRIPT:{e._switchToTextParsing(t,hw.SCRIPT_DATA);break}case rw.TEMPLATE:{e._insertTemplate(t);e.activeFormattingElements.insertMarker();e.framesetOk=false;e.insertionMode=gE.IN_TEMPLATE;e.tmplInsertionModeStack.unshift(gE.IN_TEMPLATE);break}case rw.HEAD:{e._err(t,Ky.misplacedStartTagForHeadElement);break}default:{jE(e,t)}}}function HE(e,t){switch(t.tagID){case rw.HEAD:{e.openElements.pop();e.insertionMode=gE.AFTER_HEAD;break}case rw.BODY:case rw.BR:case rw.HTML:{jE(e,t);break}case rw.TEMPLATE:{zE(e,t);break}default:{e._err(t,Ky.endTagWithoutMatchingOpenElement)}}}function zE(e,t){if(e.openElements.tmplCount>0){e.openElements.generateImpliedEndTagsThoroughly();if(e.openElements.currentTagId!==rw.TEMPLATE){e._err(t,Ky.closingOfElementWithOpenChildElements)}e.openElements.popUntilTagNamePopped(rw.TEMPLATE);e.activeFormattingElements.clearToLastMarker();e.tmplInsertionModeStack.shift();e._resetInsertionMode()}else{e._err(t,Ky.endTagWithoutMatchingOpenElement)}}function jE(e,t){e.openElements.pop();e.insertionMode=gE.AFTER_HEAD;e._processToken(t)}function GE(e,t){switch(t.tagID){case rw.HTML:{LT(e,t);break}case rw.BASEFONT:case rw.BGSOUND:case rw.HEAD:case rw.LINK:case rw.META:case rw.NOFRAMES:case rw.STYLE:{FE(e,t);break}case rw.NOSCRIPT:{e._err(t,Ky.nestedNoscriptInHead);break}default:{YE(e,t)}}}function VE(e,t){switch(t.tagID){case rw.NOSCRIPT:{e.openElements.pop();e.insertionMode=gE.IN_HEAD;break}case rw.BR:{YE(e,t);break}default:{e._err(t,Ky.endTagWithoutMatchingOpenElement)}}}function YE(e,t){const n=t.type===Zy.EOF?Ky.openElementsLeftAfterEof:Ky.disallowedContentInNoscriptInHead;e._err(t,n);e.openElements.pop();e.insertionMode=gE.IN_HEAD;e._processToken(t)}function WE(e,t){switch(t.tagID){case rw.HTML:{LT(e,t);break}case rw.BODY:{e._insertElement(t,ew.HTML);e.framesetOk=false;e.insertionMode=gE.IN_BODY;break}case rw.FRAMESET:{e._insertElement(t,ew.HTML);e.insertionMode=gE.IN_FRAMESET;break}case rw.BASE:case rw.BASEFONT:case rw.BGSOUND:case rw.LINK:case rw.META:case rw.NOFRAMES:case rw.SCRIPT:case rw.STYLE:case rw.TEMPLATE:case rw.TITLE:{e._err(t,Ky.abandonedHeadElementChild);e.openElements.push(e.headElement,rw.HEAD);FE(e,t);e.openElements.remove(e.headElement);break}case rw.HEAD:{e._err(t,Ky.misplacedStartTagForHeadElement);break}default:{KE(e,t)}}}function XE(e,t){switch(t.tagID){case rw.BODY:case rw.HTML:case rw.BR:{KE(e,t);break}case rw.TEMPLATE:{zE(e,t);break}default:{e._err(t,Ky.endTagWithoutMatchingOpenElement)}}}function KE(e,t){e._insertFakeElement(iw.BODY,rw.BODY);e.insertionMode=gE.IN_BODY;$E(e,t)}function $E(e,t){switch(t.type){case Zy.CHARACTER:{ZE(e,t);break}case Zy.WHITESPACE_CHARACTER:{QE(e,t);break}case Zy.COMMENT:{DE(e,t);break}case Zy.START_TAG:{LT(e,t);break}case Zy.END_TAG:{jT(e,t);break}case Zy.EOF:{GT(e,t);break}}}function QE(e,t){e._reconstructActiveFormattingElements();e._insertCharacters(t)}function ZE(e,t){e._reconstructActiveFormattingElements();e._insertCharacters(t);e.framesetOk=false}function JE(e,t){if(e.openElements.tmplCount===0){e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}}function eT(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();if(n&&e.openElements.tmplCount===0){e.framesetOk=false;e.treeAdapter.adoptAttributes(n,t.attrs)}}function tT(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();if(e.framesetOk&&n){e.treeAdapter.detachNode(n);e.openElements.popAllUpToHtmlElement();e._insertElement(t,ew.HTML);e.insertionMode=gE.IN_FRAMESET}}function nT(e,t){if(e.openElements.hasInButtonScope(rw.P)){e._closePElement()}e._insertElement(t,ew.HTML)}function iT(e,t){if(e.openElements.hasInButtonScope(rw.P)){e._closePElement()}if(cw(e.openElements.currentTagId)){e.openElements.pop()}e._insertElement(t,ew.HTML)}function rT(e,t){if(e.openElements.hasInButtonScope(rw.P)){e._closePElement()}e._insertElement(t,ew.HTML);e.skipNextNewLine=true;e.framesetOk=false}function sT(e,t){const n=e.openElements.tmplCount>0;if(!e.formElement||n){if(e.openElements.hasInButtonScope(rw.P)){e._closePElement()}e._insertElement(t,ew.HTML);if(!n){e.formElement=e.openElements.current}}}function oT(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===rw.LI&&i===rw.LI||(n===rw.DD||n===rw.DT)&&(i===rw.DD||i===rw.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i);e.openElements.popUntilTagNamePopped(i);break}if(i!==rw.ADDRESS&&i!==rw.DIV&&i!==rw.P&&e._isSpecialElement(e.openElements.items[t],i)){break}}if(e.openElements.hasInButtonScope(rw.P)){e._closePElement()}e._insertElement(t,ew.HTML)}function aT(e,t){if(e.openElements.hasInButtonScope(rw.P)){e._closePElement()}e._insertElement(t,ew.HTML);e.tokenizer.state=hw.PLAINTEXT}function lT(e,t){if(e.openElements.hasInScope(rw.BUTTON)){e.openElements.generateImpliedEndTags();e.openElements.popUntilTagNamePopped(rw.BUTTON)}e._reconstructActiveFormattingElements();e._insertElement(t,ew.HTML);e.framesetOk=false}function cT(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(iw.A);if(n){CE(e,t);e.openElements.remove(n.element);e.activeFormattingElements.removeEntry(n)}e._reconstructActiveFormattingElements();e._insertElement(t,ew.HTML);e.activeFormattingElements.pushElement(e.openElements.current,t)}function uT(e,t){e._reconstructActiveFormattingElements();e._insertElement(t,ew.HTML);e.activeFormattingElements.pushElement(e.openElements.current,t)}function fT(e,t){e._reconstructActiveFormattingElements();if(e.openElements.hasInScope(rw.NOBR)){CE(e,t);e._reconstructActiveFormattingElements()}e._insertElement(t,ew.HTML);e.activeFormattingElements.pushElement(e.openElements.current,t)}function hT(e,t){e._reconstructActiveFormattingElements();e._insertElement(t,ew.HTML);e.activeFormattingElements.insertMarker();e.framesetOk=false}function dT(e,t){if(e.treeAdapter.getDocumentMode(e.document)!==nw.QUIRKS&&e.openElements.hasInButtonScope(rw.P)){e._closePElement()}e._insertElement(t,ew.HTML);e.framesetOk=false;e.insertionMode=gE.IN_TABLE}function pT(e,t){e._reconstructActiveFormattingElements();e._appendElement(t,ew.HTML);e.framesetOk=false;t.ackSelfClosing=true}function mT(e){const t=Jy(e,tw.TYPE);return t!=null&&t.toLowerCase()===dE}function gT(e,t){e._reconstructActiveFormattingElements();e._appendElement(t,ew.HTML);if(!mT(t)){e.framesetOk=false}t.ackSelfClosing=true}function bT(e,t){e._appendElement(t,ew.HTML);t.ackSelfClosing=true}function kT(e,t){if(e.openElements.hasInButtonScope(rw.P)){e._closePElement()}e._appendElement(t,ew.HTML);e.framesetOk=false;t.ackSelfClosing=true}function yT(e,t){t.tagName=iw.IMG;t.tagID=rw.IMG;pT(e,t)}function wT(e,t){e._insertElement(t,ew.HTML);e.skipNextNewLine=true;e.tokenizer.state=hw.RCDATA;e.originalInsertionMode=e.insertionMode;e.framesetOk=false;e.insertionMode=gE.TEXT}function ET(e,t){if(e.openElements.hasInButtonScope(rw.P)){e._closePElement()}e._reconstructActiveFormattingElements();e.framesetOk=false;e._switchToTextParsing(t,hw.RAWTEXT)}function TT(e,t){e.framesetOk=false;e._switchToTextParsing(t,hw.RAWTEXT)}function vT(e,t){e._switchToTextParsing(t,hw.RAWTEXT)}function ST(e,t){e._reconstructActiveFormattingElements();e._insertElement(t,ew.HTML);e.framesetOk=false;e.insertionMode=e.insertionMode===gE.IN_TABLE||e.insertionMode===gE.IN_CAPTION||e.insertionMode===gE.IN_TABLE_BODY||e.insertionMode===gE.IN_ROW||e.insertionMode===gE.IN_CELL?gE.IN_SELECT_IN_TABLE:gE.IN_SELECT}function xT(e,t){if(e.openElements.currentTagId===rw.OPTION){e.openElements.pop()}e._reconstructActiveFormattingElements();e._insertElement(t,ew.HTML)}function AT(e,t){if(e.openElements.hasInScope(rw.RUBY)){e.openElements.generateImpliedEndTags()}e._insertElement(t,ew.HTML)}function CT(e,t){if(e.openElements.hasInScope(rw.RUBY)){e.openElements.generateImpliedEndTagsWithExclusion(rw.RTC)}e._insertElement(t,ew.HTML)}function DT(e,t){e._reconstructActiveFormattingElements();oE(t);lE(t);if(t.selfClosing){e._appendElement(t,ew.MATHML)}else{e._insertElement(t,ew.MATHML)}t.ackSelfClosing=true}function _T(e,t){e._reconstructActiveFormattingElements();aE(t);lE(t);if(t.selfClosing){e._appendElement(t,ew.SVG)}else{e._insertElement(t,ew.SVG)}t.ackSelfClosing=true}function RT(e,t){e._reconstructActiveFormattingElements();e._insertElement(t,ew.HTML)}function LT(e,t){switch(t.tagID){case rw.I:case rw.S:case rw.B:case rw.U:case rw.EM:case rw.TT:case rw.BIG:case rw.CODE:case rw.FONT:case rw.SMALL:case rw.STRIKE:case rw.STRONG:{uT(e,t);break}case rw.A:{cT(e,t);break}case rw.H1:case rw.H2:case rw.H3:case rw.H4:case rw.H5:case rw.H6:{iT(e,t);break}case rw.P:case rw.DL:case rw.OL:case rw.UL:case rw.DIV:case rw.DIR:case rw.NAV:case rw.MAIN:case rw.MENU:case rw.ASIDE:case rw.CENTER:case rw.FIGURE:case rw.FOOTER:case rw.HEADER:case rw.HGROUP:case rw.DIALOG:case rw.DETAILS:case rw.ADDRESS:case rw.ARTICLE:case rw.SECTION:case rw.SUMMARY:case rw.FIELDSET:case rw.BLOCKQUOTE:case rw.FIGCAPTION:{nT(e,t);break}case rw.LI:case rw.DD:case rw.DT:{oT(e,t);break}case rw.BR:case rw.IMG:case rw.WBR:case rw.AREA:case rw.EMBED:case rw.KEYGEN:{pT(e,t);break}case rw.HR:{kT(e,t);break}case rw.RB:case rw.RTC:{AT(e,t);break}case rw.RT:case rw.RP:{CT(e,t);break}case rw.PRE:case rw.LISTING:{rT(e,t);break}case rw.XMP:{ET(e,t);break}case rw.SVG:{_T(e,t);break}case rw.HTML:{JE(e,t);break}case rw.BASE:case rw.LINK:case rw.META:case rw.STYLE:case rw.TITLE:case rw.SCRIPT:case rw.BGSOUND:case rw.BASEFONT:case rw.TEMPLATE:{FE(e,t);break}case rw.BODY:{eT(e,t);break}case rw.FORM:{sT(e,t);break}case rw.NOBR:{fT(e,t);break}case rw.MATH:{DT(e,t);break}case rw.TABLE:{dT(e,t);break}case rw.INPUT:{gT(e,t);break}case rw.PARAM:case rw.TRACK:case rw.SOURCE:{bT(e,t);break}case rw.IMAGE:{yT(e,t);break}case rw.BUTTON:{lT(e,t);break}case rw.APPLET:case rw.OBJECT:case rw.MARQUEE:{hT(e,t);break}case rw.IFRAME:{TT(e,t);break}case rw.SELECT:{ST(e,t);break}case rw.OPTION:case rw.OPTGROUP:{xT(e,t);break}case rw.NOEMBED:{vT(e,t);break}case rw.FRAMESET:{tT(e,t);break}case rw.TEXTAREA:{wT(e,t);break}case rw.NOSCRIPT:{if(e.options.scriptingEnabled){vT(e,t)}else{RT(e,t)}break}case rw.PLAINTEXT:{aT(e,t);break}case rw.COL:case rw.TH:case rw.TD:case rw.TR:case rw.HEAD:case rw.FRAME:case rw.TBODY:case rw.TFOOT:case rw.THEAD:case rw.CAPTION:case rw.COLGROUP:{break}default:{RT(e,t)}}}function IT(e,t){if(e.openElements.hasInScope(rw.BODY)){e.insertionMode=gE.AFTER_BODY;if(e.options.sourceCodeLocationInfo){const n=e.openElements.tryPeekProperlyNestedBodyElement();if(n){e._setEndLocation(n,t)}}}}function OT(e,t){if(e.openElements.hasInScope(rw.BODY)){e.insertionMode=gE.AFTER_BODY;Dv(e,t)}}function NT(e,t){const n=t.tagID;if(e.openElements.hasInScope(n)){e.openElements.generateImpliedEndTags();e.openElements.popUntilTagNamePopped(n)}}function PT(e){const t=e.openElements.tmplCount>0;const{formElement:n}=e;if(!t){e.formElement=null}if((n||t)&&e.openElements.hasInScope(rw.FORM)){e.openElements.generateImpliedEndTags();if(t){e.openElements.popUntilTagNamePopped(rw.FORM)}else if(n){e.openElements.remove(n)}}}function MT(e){if(!e.openElements.hasInButtonScope(rw.P)){e._insertFakeElement(iw.P,rw.P)}e._closePElement()}function UT(e){if(e.openElements.hasInListItemScope(rw.LI)){e.openElements.generateImpliedEndTagsWithExclusion(rw.LI);e.openElements.popUntilTagNamePopped(rw.LI)}}function qT(e,t){const n=t.tagID;if(e.openElements.hasInScope(n)){e.openElements.generateImpliedEndTagsWithExclusion(n);e.openElements.popUntilTagNamePopped(n)}}function BT(e){if(e.openElements.hasNumberedHeaderInScope()){e.openElements.generateImpliedEndTags();e.openElements.popUntilNumberedHeaderPopped()}}function FT(e,t){const n=t.tagID;if(e.openElements.hasInScope(n)){e.openElements.generateImpliedEndTags();e.openElements.popUntilTagNamePopped(n);e.activeFormattingElements.clearToLastMarker()}}function HT(e){e._reconstructActiveFormattingElements();e._insertFakeElement(iw.BR,rw.BR);e.openElements.pop();e.framesetOk=false}function zT(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!==rw.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 jT(e,t){switch(t.tagID){case rw.A:case rw.B:case rw.I:case rw.S:case rw.U:case rw.EM:case rw.TT:case rw.BIG:case rw.CODE:case rw.FONT:case rw.NOBR:case rw.SMALL:case rw.STRIKE:case rw.STRONG:{CE(e,t);break}case rw.P:{MT(e);break}case rw.DL:case rw.UL:case rw.OL:case rw.DIR:case rw.DIV:case rw.NAV:case rw.PRE:case rw.MAIN:case rw.MENU:case rw.ASIDE:case rw.BUTTON:case rw.CENTER:case rw.FIGURE:case rw.FOOTER:case rw.HEADER:case rw.HGROUP:case rw.DIALOG:case rw.ADDRESS:case rw.ARTICLE:case rw.DETAILS:case rw.SECTION:case rw.SUMMARY:case rw.LISTING:case rw.FIELDSET:case rw.BLOCKQUOTE:case rw.FIGCAPTION:{NT(e,t);break}case rw.LI:{UT(e);break}case rw.DD:case rw.DT:{qT(e,t);break}case rw.H1:case rw.H2:case rw.H3:case rw.H4:case rw.H5:case rw.H6:{BT(e);break}case rw.BR:{HT(e);break}case rw.BODY:{IT(e,t);break}case rw.HTML:{OT(e,t);break}case rw.FORM:{PT(e);break}case rw.APPLET:case rw.OBJECT:case rw.MARQUEE:{FT(e,t);break}case rw.TEMPLATE:{zE(e,t);break}default:{zT(e,t)}}}function GT(e,t){if(e.tmplInsertionModeStack.length>0){Av(e,t)}else{LE(e,t)}}function VT(e,t){var n;if(t.tagID===rw.SCRIPT){(n=e.scriptHandler)===null||n===void 0?void 0:n.call(e,e.openElements.current)}e.openElements.pop();e.insertionMode=e.originalInsertionMode}function YT(e,t){e._err(t,Ky.eofInElementThatCanContainOnlyText);e.openElements.pop();e.insertionMode=e.originalInsertionMode;e.onEof(t)}function WT(e,t){if(kE.has(e.openElements.currentTagId)){e.pendingCharacterTokens.length=0;e.hasNonWhitespacePendingCharacterToken=false;e.originalInsertionMode=e.insertionMode;e.insertionMode=gE.IN_TABLE_TEXT;switch(t.type){case Zy.CHARACTER:{ov(e,t);break}case Zy.WHITESPACE_CHARACTER:{sv(e,t);break}}}else{rv(e,t)}}function XT(e,t){e.openElements.clearBackToTableContext();e.activeFormattingElements.insertMarker();e._insertElement(t,ew.HTML);e.insertionMode=gE.IN_CAPTION}function KT(e,t){e.openElements.clearBackToTableContext();e._insertElement(t,ew.HTML);e.insertionMode=gE.IN_COLUMN_GROUP}function $T(e,t){e.openElements.clearBackToTableContext();e._insertFakeElement(iw.COLGROUP,rw.COLGROUP);e.insertionMode=gE.IN_COLUMN_GROUP;fv(e,t)}function QT(e,t){e.openElements.clearBackToTableContext();e._insertElement(t,ew.HTML);e.insertionMode=gE.IN_TABLE_BODY}function ZT(e,t){e.openElements.clearBackToTableContext();e._insertFakeElement(iw.TBODY,rw.TBODY);e.insertionMode=gE.IN_TABLE_BODY;pv(e,t)}function JT(e,t){if(e.openElements.hasInTableScope(rw.TABLE)){e.openElements.popUntilTagNamePopped(rw.TABLE);e._resetInsertionMode();e._processStartTag(t)}}function ev(e,t){if(mT(t)){e._appendElement(t,ew.HTML)}else{rv(e,t)}t.ackSelfClosing=true}function tv(e,t){if(!e.formElement&&e.openElements.tmplCount===0){e._insertElement(t,ew.HTML);e.formElement=e.openElements.current;e.openElements.pop()}}function nv(e,t){switch(t.tagID){case rw.TD:case rw.TH:case rw.TR:{ZT(e,t);break}case rw.STYLE:case rw.SCRIPT:case rw.TEMPLATE:{FE(e,t);break}case rw.COL:{$T(e,t);break}case rw.FORM:{tv(e,t);break}case rw.TABLE:{JT(e,t);break}case rw.TBODY:case rw.TFOOT:case rw.THEAD:{QT(e,t);break}case rw.INPUT:{ev(e,t);break}case rw.CAPTION:{XT(e,t);break}case rw.COLGROUP:{KT(e,t);break}default:{rv(e,t)}}}function iv(e,t){switch(t.tagID){case rw.TABLE:{if(e.openElements.hasInTableScope(rw.TABLE)){e.openElements.popUntilTagNamePopped(rw.TABLE);e._resetInsertionMode()}break}case rw.TEMPLATE:{zE(e,t);break}case rw.BODY:case rw.CAPTION:case rw.COL:case rw.COLGROUP:case rw.HTML:case rw.TBODY:case rw.TD:case rw.TFOOT:case rw.TH:case rw.THEAD:case rw.TR:{break}default:{rv(e,t)}}}function rv(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=true;$E(e,t);e.fosterParentingEnabled=n}function sv(e,t){e.pendingCharacterTokens.push(t)}function ov(e,t){e.pendingCharacterTokens.push(t);e.hasNonWhitespacePendingCharacterToken=true}function av(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken){for(;n<e.pendingCharacterTokens.length;n++){rv(e,e.pendingCharacterTokens[n])}}else{for(;n<e.pendingCharacterTokens.length;n++){e._insertCharacters(e.pendingCharacterTokens[n])}}e.insertionMode=e.originalInsertionMode;e._processToken(t)}const lv=new Set([rw.CAPTION,rw.COL,rw.COLGROUP,rw.TBODY,rw.TD,rw.TFOOT,rw.TH,rw.THEAD,rw.TR]);function cv(e,t){const n=t.tagID;if(lv.has(n)){if(e.openElements.hasInTableScope(rw.CAPTION)){e.openElements.generateImpliedEndTags();e.openElements.popUntilTagNamePopped(rw.CAPTION);e.activeFormattingElements.clearToLastMarker();e.insertionMode=gE.IN_TABLE;nv(e,t)}}else{LT(e,t)}}function uv(e,t){const n=t.tagID;switch(n){case rw.CAPTION:case rw.TABLE:{if(e.openElements.hasInTableScope(rw.CAPTION)){e.openElements.generateImpliedEndTags();e.openElements.popUntilTagNamePopped(rw.CAPTION);e.activeFormattingElements.clearToLastMarker();e.insertionMode=gE.IN_TABLE;if(n===rw.TABLE){iv(e,t)}}break}case rw.BODY:case rw.COL:case rw.COLGROUP:case rw.HTML:case rw.TBODY:case rw.TD:case rw.TFOOT:case rw.TH:case rw.THEAD:case rw.TR:{break}default:{jT(e,t)}}}function fv(e,t){switch(t.tagID){case rw.HTML:{LT(e,t);break}case rw.COL:{e._appendElement(t,ew.HTML);t.ackSelfClosing=true;break}case rw.TEMPLATE:{FE(e,t);break}default:{dv(e,t)}}}function hv(e,t){switch(t.tagID){case rw.COLGROUP:{if(e.openElements.currentTagId===rw.COLGROUP){e.openElements.pop();e.insertionMode=gE.IN_TABLE}break}case rw.TEMPLATE:{zE(e,t);break}case rw.COL:{break}default:{dv(e,t)}}}function dv(e,t){if(e.openElements.currentTagId===rw.COLGROUP){e.openElements.pop();e.insertionMode=gE.IN_TABLE;e._processToken(t)}}function pv(e,t){switch(t.tagID){case rw.TR:{e.openElements.clearBackToTableBodyContext();e._insertElement(t,ew.HTML);e.insertionMode=gE.IN_ROW;break}case rw.TH:case rw.TD:{e.openElements.clearBackToTableBodyContext();e._insertFakeElement(iw.TR,rw.TR);e.insertionMode=gE.IN_ROW;gv(e,t);break}case rw.CAPTION:case rw.COL:case rw.COLGROUP:case rw.TBODY:case rw.TFOOT:case rw.THEAD:{if(e.openElements.hasTableBodyContextInTableScope()){e.openElements.clearBackToTableBodyContext();e.openElements.pop();e.insertionMode=gE.IN_TABLE;nv(e,t)}break}default:{nv(e,t)}}}function mv(e,t){const n=t.tagID;switch(t.tagID){case rw.TBODY:case rw.TFOOT:case rw.THEAD:{if(e.openElements.hasInTableScope(n)){e.openElements.clearBackToTableBodyContext();e.openElements.pop();e.insertionMode=gE.IN_TABLE}break}case rw.TABLE:{if(e.openElements.hasTableBodyContextInTableScope()){e.openElements.clearBackToTableBodyContext();e.openElements.pop();e.insertionMode=gE.IN_TABLE;iv(e,t)}break}case rw.BODY:case rw.CAPTION:case rw.COL:case rw.COLGROUP:case rw.HTML:case rw.TD:case rw.TH:case rw.TR:{break}default:{iv(e,t)}}}function gv(e,t){switch(t.tagID){case rw.TH:case rw.TD:{e.openElements.clearBackToTableRowContext();e._insertElement(t,ew.HTML);e.insertionMode=gE.IN_CELL;e.activeFormattingElements.insertMarker();break}case rw.CAPTION:case rw.COL:case rw.COLGROUP:case rw.TBODY:case rw.TFOOT:case rw.THEAD:case rw.TR:{if(e.openElements.hasInTableScope(rw.TR)){e.openElements.clearBackToTableRowContext();e.openElements.pop();e.insertionMode=gE.IN_TABLE_BODY;pv(e,t)}break}default:{nv(e,t)}}}function bv(e,t){switch(t.tagID){case rw.TR:{if(e.openElements.hasInTableScope(rw.TR)){e.openElements.clearBackToTableRowContext();e.openElements.pop();e.insertionMode=gE.IN_TABLE_BODY}break}case rw.TABLE:{if(e.openElements.hasInTableScope(rw.TR)){e.openElements.clearBackToTableRowContext();e.openElements.pop();e.insertionMode=gE.IN_TABLE_BODY;mv(e,t)}break}case rw.TBODY:case rw.TFOOT:case rw.THEAD:{if(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(rw.TR)){e.openElements.clearBackToTableRowContext();e.openElements.pop();e.insertionMode=gE.IN_TABLE_BODY;mv(e,t)}break}case rw.BODY:case rw.CAPTION:case rw.COL:case rw.COLGROUP:case rw.HTML:case rw.TD:case rw.TH:{break}default:{iv(e,t)}}}function kv(e,t){const n=t.tagID;if(lv.has(n)){if(e.openElements.hasInTableScope(rw.TD)||e.openElements.hasInTableScope(rw.TH)){e._closeTableCell();gv(e,t)}}else{LT(e,t)}}function yv(e,t){const n=t.tagID;switch(n){case rw.TD:case rw.TH:{if(e.openElements.hasInTableScope(n)){e.openElements.generateImpliedEndTags();e.openElements.popUntilTagNamePopped(n);e.activeFormattingElements.clearToLastMarker();e.insertionMode=gE.IN_ROW}break}case rw.TABLE:case rw.TBODY:case rw.TFOOT:case rw.THEAD:case rw.TR:{if(e.openElements.hasInTableScope(n)){e._closeTableCell();bv(e,t)}break}case rw.BODY:case rw.CAPTION:case rw.COL:case rw.COLGROUP:case rw.HTML:{break}default:{jT(e,t)}}}function wv(e,t){switch(t.tagID){case rw.HTML:{LT(e,t);break}case rw.OPTION:{if(e.openElements.currentTagId===rw.OPTION){e.openElements.pop()}e._insertElement(t,ew.HTML);break}case rw.OPTGROUP:{if(e.openElements.currentTagId===rw.OPTION){e.openElements.pop()}if(e.openElements.currentTagId===rw.OPTGROUP){e.openElements.pop()}e._insertElement(t,ew.HTML);break}case rw.INPUT:case rw.KEYGEN:case rw.TEXTAREA:case rw.SELECT:{if(e.openElements.hasInSelectScope(rw.SELECT)){e.openElements.popUntilTagNamePopped(rw.SELECT);e._resetInsertionMode();if(t.tagID!==rw.SELECT){e._processStartTag(t)}}break}case rw.SCRIPT:case rw.TEMPLATE:{FE(e,t);break}}}function Ev(e,t){switch(t.tagID){case rw.OPTGROUP:{if(e.openElements.stackTop>0&&e.openElements.currentTagId===rw.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===rw.OPTGROUP){e.openElements.pop()}if(e.openElements.currentTagId===rw.OPTGROUP){e.openElements.pop()}break}case rw.OPTION:{if(e.openElements.currentTagId===rw.OPTION){e.openElements.pop()}break}case rw.SELECT:{if(e.openElements.hasInSelectScope(rw.SELECT)){e.openElements.popUntilTagNamePopped(rw.SELECT);e._resetInsertionMode()}break}case rw.TEMPLATE:{zE(e,t);break}}}function Tv(e,t){const n=t.tagID;if(n===rw.CAPTION||n===rw.TABLE||n===rw.TBODY||n===rw.TFOOT||n===rw.THEAD||n===rw.TR||n===rw.TD||n===rw.TH){e.openElements.popUntilTagNamePopped(rw.SELECT);e._resetInsertionMode();e._processStartTag(t)}else{wv(e,t)}}function vv(e,t){const n=t.tagID;if(n===rw.CAPTION||n===rw.TABLE||n===rw.TBODY||n===rw.TFOOT||n===rw.THEAD||n===rw.TR||n===rw.TD||n===rw.TH){if(e.openElements.hasInTableScope(n)){e.openElements.popUntilTagNamePopped(rw.SELECT);e._resetInsertionMode();e.onEndTag(t)}}else{Ev(e,t)}}function Sv(e,t){switch(t.tagID){case rw.BASE:case rw.BASEFONT:case rw.BGSOUND:case rw.LINK:case rw.META:case rw.NOFRAMES:case rw.SCRIPT:case rw.STYLE:case rw.TEMPLATE:case rw.TITLE:{FE(e,t);break}case rw.CAPTION:case rw.COLGROUP:case rw.TBODY:case rw.TFOOT:case rw.THEAD:{e.tmplInsertionModeStack[0]=gE.IN_TABLE;e.insertionMode=gE.IN_TABLE;nv(e,t);break}case rw.COL:{e.tmplInsertionModeStack[0]=gE.IN_COLUMN_GROUP;e.insertionMode=gE.IN_COLUMN_GROUP;fv(e,t);break}case rw.TR:{e.tmplInsertionModeStack[0]=gE.IN_TABLE_BODY;e.insertionMode=gE.IN_TABLE_BODY;pv(e,t);break}case rw.TD:case rw.TH:{e.tmplInsertionModeStack[0]=gE.IN_ROW;e.insertionMode=gE.IN_ROW;gv(e,t);break}default:{e.tmplInsertionModeStack[0]=gE.IN_BODY;e.insertionMode=gE.IN_BODY;LT(e,t)}}}function xv(e,t){if(t.tagID===rw.TEMPLATE){zE(e,t)}}function Av(e,t){if(e.openElements.tmplCount>0){e.openElements.popUntilTagNamePopped(rw.TEMPLATE);e.activeFormattingElements.clearToLastMarker();e.tmplInsertionModeStack.shift();e._resetInsertionMode();e.onEof(t)}else{LE(e,t)}}function Cv(e,t){if(t.tagID===rw.HTML){LT(e,t)}else{_v(e,t)}}function Dv(e,t){var n;if(t.tagID===rw.HTML){if(!e.fragmentContext){e.insertionMode=gE.AFTER_AFTER_BODY}if(e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===rw.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{_v(e,t)}}function _v(e,t){e.insertionMode=gE.IN_BODY;$E(e,t)}function Rv(e,t){switch(t.tagID){case rw.HTML:{LT(e,t);break}case rw.FRAMESET:{e._insertElement(t,ew.HTML);break}case rw.FRAME:{e._appendElement(t,ew.HTML);t.ackSelfClosing=true;break}case rw.NOFRAMES:{FE(e,t);break}}}function Lv(e,t){if(t.tagID===rw.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()){e.openElements.pop();if(!e.fragmentContext&&e.openElements.currentTagId!==rw.FRAMESET){e.insertionMode=gE.AFTER_FRAMESET}}}function Iv(e,t){switch(t.tagID){case rw.HTML:{LT(e,t);break}case rw.NOFRAMES:{FE(e,t);break}}}function Ov(e,t){if(t.tagID===rw.HTML){e.insertionMode=gE.AFTER_AFTER_FRAMESET}}function Nv(e,t){if(t.tagID===rw.HTML){LT(e,t)}else{Pv(e,t)}}function Pv(e,t){e.insertionMode=gE.IN_BODY;$E(e,t)}function Mv(e,t){switch(t.tagID){case rw.HTML:{LT(e,t);break}case rw.NOFRAMES:{FE(e,t);break}}}function Uv(e,t){t.chars=Hy;e._insertCharacters(t)}function qv(e,t){e._insertCharacters(t);e.framesetOk=false}function Bv(e){while(e.treeAdapter.getNamespaceURI(e.openElements.current)!==ew.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current)){e.openElements.pop()}}function Fv(e,t){if(sE(t)){Bv(e);e._startTagOutsideForeignContent(t)}else{const n=e._getAdjustedCurrentElement();const i=e.treeAdapter.getNamespaceURI(n);if(i===ew.MATHML){oE(t)}else if(i===ew.SVG){cE(t);aE(t)}lE(t);if(t.selfClosing){e._appendElement(t,i)}else{e._insertElement(t,i)}t.ackSelfClosing=true}}function Hv(e,t){if(t.tagID===rw.P||t.tagID===rw.BR){Bv(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)===ew.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 zv=Gv("end");const jv=Gv("start");function Gv(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 Vv={}.hasOwnProperty;function Yv(e,t){const n=t||{};function i(t,...n){let r=i.invalid;const s=i.handlers;if(t&&Vv.call(t,e)){const n=String(t[e]);r=Vv.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 Wv=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]);const Xv={sourceCodeLocationInfo:true,scriptingEnabled:false};function Kv(e,t){const n=cS(e);const i=Yv("type",{handlers:{root:Qv,element:Zv,text:Jv,comment:nS,doctype:eS,raw:iS},unknown:rS});const r={parser:n?new wE(Xv):wE.getFragmentParser(undefined,Xv),handle(e){i(e,r)},stitches:false,options:t||{}};i(e,r);sS(r,jv());const s=n?r.parser.document:r.parser.getFragment();const o=Ik(s,{file:r.options.file});if(r.stitches){Vr(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 $v(e,t){let n=-1;if(e){while(++n<e.length){t.handle(e[n])}}}function Qv(e,t){$v(e.children,t)}function Zv(e,t){aS(e,t);$v(e.children,t);lS(e,t)}function Jv(e,t){if(t.parser.tokenizer.state>4){t.parser.tokenizer.state=0}const n={type:Zy.CHARACTER,chars:e.value,location:uS(e)};sS(t,jv(e));t.parser.currentToken=n;t.parser._processToken(t.parser.currentToken)}function eS(e,t){const n={type:Zy.DOCTYPE,name:"html",forceQuirks:false,publicId:"",systemId:"",location:uS(e)};sS(t,jv(e));t.parser.currentToken=n;t.parser._processToken(t.parser.currentToken)}function tS(e,t){t.stitches=true;const n=fS(e);if("children"in e&&"children"in n){const i=Kv({type:"root",children:e.children},t.options);n.children=i.children}nS({type:"comment",value:{stitch:n}},t)}function nS(e,t){const n=e.value;const i={type:Zy.COMMENT,data:n,location:uS(e)};sS(t,jv(e));t.parser.currentToken=i;t.parser._processToken(t.parser.currentToken)}function iS(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;oS(t,jv(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 rS(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type)){tS(n,t)}else{let e="";if(Wv.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 sS(e,t){oS(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=hw.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 oS(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 aS(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===hw.PLAINTEXT)return;sS(t,jv(e));const i=t.parser.openElements.current;let r="namespaceURI"in i?i.namespaceURI:_k.html;if(r===_k.html&&n==="svg"){r=_k.svg}const s=_y({...e,children:[]},{space:r===_k.svg?"svg":"html"});const o={type:Zy.START_TAG,tagName:n,tagID:ow(n),selfClosing:false,ackSelfClosing:false,attrs:"attrs"in s?s.attrs:[],location:uS(e)};t.parser.currentToken=o;t.parser._processToken(t.parser.currentToken);t.parser.tokenizer.lastStartTagName=n}function lS(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&By.includes(n)){return}if(t.parser.tokenizer.state===hw.PLAINTEXT)return;sS(t,zv(e));const i={type:Zy.END_TAG,tagName:n,tagID:ow(n),selfClosing:false,ackSelfClosing:false,attrs:[],location:uS(e)};t.parser.currentToken=i;t.parser._processToken(t.parser.currentToken);if(n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===hw.RCDATA||t.parser.tokenizer.state===hw.RAWTEXT||t.parser.tokenizer.state===hw.SCRIPT_DATA)){t.parser.tokenizer.state=hw.DATA}}function cS(e){const t=e.type==="root"?e.children[0]:e;return Boolean(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function uS(e){const t=jv(e)||{line:undefined,column:undefined,offset:undefined};const n=zv(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 fS(e){return"children"in e?Cr({...e,children:[]}):Cr(e)}function hS(e){return function(t,n){const i=Kv(t,{...e,file:n});return i}}var dS=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;var pS=/\n/g;var mS=/^\s*/;var gS=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/;var bS=/^:\s*/;var kS=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/;var yS=/^[;\s]*/;var wS=/^\s+|\s+$/g;var ES="\n";var TS="/";var vS="*";var SS="";var xS="comment";var AS="declaration";var CS=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(pS);if(t)n+=t.length;var r=e.lastIndexOf(ES);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(mS)}function u(e){var t;e=e||[];while(t=f()){if(t!==false){e.push(t)}}return e}function f(){var t=s();if(TS!=e.charAt(0)||vS!=e.charAt(1))return;var n=2;while(SS!=e.charAt(n)&&(vS!=e.charAt(n)||TS!=e.charAt(n+1))){++n}n+=2;if(SS===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:xS,comment:o})}function h(){var e=s();var t=l(gS);if(!t)return;f();if(!l(bS))return a("property missing ':'");var n=l(kS);var i=e({type:AS,property:DS(t[0].replace(dS,SS)),value:n?DS(n[0].replace(dS,SS)):SS});l(yS);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 DS(e){return e?e.replace(wS,SS):SS}var _S=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(CS);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 RS=n(_S);const LS=RS.default||RS;var IS={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 OS="a-f\\d";const NS=`#?[${OS}]{3}[${OS}]?`;const PS=`#?[${OS}]{6}([${OS}]{2})?`;const MS=new RegExp(`[^#${OS}]`,"gi");const US=new RegExp(`^${NS}$|^${PS}$`,"i");var qS=(e,t={})=>{if(typeof e!=="string"||MS.test(e)||!US.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 BS=/^#([a-f0-9]{3,4}|[a-f0-9]{4}(?:[a-f0-9]{2}){1,2})\b$/;var FS=new RegExp(BS,"i");const HS="-?\\d*(?:\\.\\d+)";const zS=`(${HS}?)`;const jS=`(${HS}?%)`;const GS=`(${HS}?%?)`;const VS=`^\n hsla?\\(\n \\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*,\n \\s*${jS}\\s*,\n \\s*${jS}\\s*\n (?:,\\s*${GS}\\s*)?\n \\)\n $\n`.replace(/\n|\s/g,"");var YS=new RegExp(VS);const WS=`^\n hsla?\\(\n \\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*\n \\s+${jS}\n \\s+${jS}\n \\s*(?:\\s*\\/\\s*${GS}\\s*)?\n \\)\n $\n`.replace(/\n|\s/g,"");var XS=new RegExp(WS);const KS=`^\n rgba?\\(\n \\s*${zS}\\s*,\n \\s*${zS}\\s*,\n \\s*${zS}\\s*\n (?:,\\s*${GS}\\s*)?\n \\)\n $\n`.replace(/\n|\s/g,"");var $S=new RegExp(KS);const QS=`^\n rgba?\\(\n \\s*${jS}\\s*,\n \\s*${jS}\\s*,\n \\s*${jS}\\s*\n (?:,\\s*${GS}\\s*)?\n \\)\n $\n`.replace(/\n|\s/g,"");var ZS=new RegExp(QS);const JS=`^\n rgba?\\(\n \\s*${zS}\n \\s+${zS}\n \\s+${zS}\n \\s*(?:\\s*\\/\\s*${GS}\\s*)?\n \\)\n$\n`.replace(/\n|\s/g,"");var ex=new RegExp(JS);const tx=`^\n rgba?\\(\n \\s*${jS}\n \\s+${jS}\n \\s+${jS}\n \\s*(?:\\s*\\/\\s*${GS}\\s*)?\n \\)\n$\n`.replace(/\n|\s/g,"");var nx=new RegExp(tx);const ix=/^transparent$/;var rx=new RegExp(ix,"i");const sx=(e,t,n)=>Math.min(Math.max(t,e),n);const ox=e=>{let t=e;if(typeof t!=="number")t=t.endsWith("%")?parseFloat(t)*255/100:parseFloat(t);return sx(Math.round(t),0,255)};const ax=e=>sx(parseFloat(e),0,100);function lx(e){let t=e;if(typeof t!=="number")t=t.endsWith("%")?parseFloat(t)/100:parseFloat(t);return sx(t,0,1)}function cx(e){const[t,n,i,r]=qS(e,{format:"array"});return fx([null,...[t,n,i,r]])}function ux([,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,ax(t),ax(n)],alpha:lx(i===null?1:i)}}function fx([,e,t,n,i=1]){return{type:"rgb",values:[e,t,n].map(ox),alpha:lx(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 hx=e=>{if(typeof e!=="string")return null;const t=FS.exec(e);if(t)return cx(t[0]);const n=XS.exec(e)||YS.exec(e);if(n)return ux(n);const i=ex.exec(e)||nx.exec(e)||$S.exec(e)||ZS.exec(e);if(i)return fx(i);if(rx.exec(e))return fx([null,0,0,0,0]);const r=IS[e.toLowerCase()];if(r)return fx([null,r[0],r[1],r[2],1]);return null};const dx=["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 px(e){var t;if(e.tagName&&((t=e.properties)===null||t===void 0?void 0:t.style)){e.properties.style=mx(e.properties.style)}}function mx(e){try{const t=LS(e);const n=gx(t);return Object.entries(n).filter((([e])=>dx.includes(e))).map((([e,t])=>`${e}: ${t}`)).join("; ")}catch(t){console.error("Failed to parse style value",e,t);return""}}function gx(e){const t=Object.assign({},e);delete t.background;if("background"in e&&bx(e.background)){t["background-color"]=e.background}return t}function bx(e){return hx(e)!==null}function kx(e=false){return()=>{if(!e){return e=>e}return e=>{Vr(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}}}async function yx(e,t){var n;if(t===null||t===void 0?void 0:t.forceHardLineBreaks){e=e.replace(/(?<!\\)([\n\r])/g," $1")}const i=await le().use(Si).use(tc).use(ts,{allowDangerousHtml:true}).use(um,{target:"_blank"}).use(hS).use(Om,Object.assign({},Ex((n=t===null||t===void 0?void 0:t.whitelist)!==null&&n!==void 0?n:[]))).use((()=>e=>{Vr(e,"element",px)})).use(kx(t===null||t===void 0?void 0:t.lazyLoadImages)).use(_b).process(e);return i.toString()}async function wx(e,t){const n=await le().use($p).use(Om,Object.assign({},Ex(t!==null&&t!==void 0?t:[]))).use((()=>e=>{Vr(e,"element",px)})).use(_b).process(e);return n.toString()}function Ex(e){var t,n;const i=[...(t=bm.attributes["*"])!==null&&t!==void 0?t:[]];const r=i.filter((e=>e!=="height"));r.push("style");const s=Object.assign(Object.assign({},bm),{tagNames:[...bm.tagNames||[],...e.map((e=>e.tagName))],attributes:Object.assign(Object.assign({},bm.attributes),{p:[...(n=bm.attributes.p)!==null&&n!==void 0?n:[],["className","MsoNormal"]],"*":r})});for(const t of e){s.attributes[t.tagName]=t.attributes}return s}export{E as d,yx as m,wx as s};
|
|
8
|
-
//# sourceMappingURL=p-cf87519f.js.map
|