@minimax-ai/code 0.6.5 → 0.6.6

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.
@@ -1,5 +1,5 @@
1
1
  import { createRequire as __mavis_cR } from "module"; import { basename as __mavis_basename, dirname as __mavis_dirname, join as __mavis_join } from "path"; import { fileURLToPath as __mavis_fileURLToPath, pathToFileURL as __mavis_pathToFileURL } from "url"; const __mavis_tuiCurrentModuleDir = __mavis_dirname(__mavis_fileURLToPath(import.meta.url)); const __mavis_tuiPackageRoot = __mavis_basename(__mavis_tuiCurrentModuleDir) === "chunks" ? __mavis_dirname(__mavis_tuiCurrentModuleDir) : __mavis_tuiCurrentModuleDir; const __mavis_tuiPackageEntryUrl = __mavis_pathToFileURL(__mavis_join(__mavis_tuiPackageRoot, "cli.js")).href; const require = __mavis_cR(__mavis_tuiPackageEntryUrl); const __dirname = __mavis_tuiPackageRoot;
2
- import{a as on,b as Yy,c as eT}from"./chunk-HEAI577S.js";import{a as as,b as uT,c as bT}from"./chunk-LM3FMMAB.js";import{a as sT}from"./chunk-YDWWGAEN.js";import{a as rT}from"./chunk-ZQPXBOPP.js";import{c as wp,d as Py,e as Oy}from"./chunk-U62SRHG3.js";import"./chunk-I3GV76MP.js";import{b as lT,e as dT,f as cT}from"./chunk-NICEDCLM.js";import{a as Dy,b as Ap,c as xo,d as qy,e as Hy,f as Uy,h as Mp}from"./chunk-37SOT72H.js";import{a as C,f as Xy,g as Jy,h as Zy,i as Oi,j as xu,l as tT,m as nT}from"./chunk-WROGTDVD.js";import{h as xp,o as Ly}from"./chunk-G7Q4HUMC.js";import{Jb as mT,Kb as fT,Lb as gT,Pf as yT,d as Ky,e as us,g as Wy,h as Ut,j as Su,k as Vy,l as Gy,m as zy,n as Qy,o as Wn,p as VR,q as iT,r as oT,v as aT}from"./chunk-2XPMNZVR.js";import{a as Un,b as Fy,c as vu,f as $y,j as By,k as ls,m as Kn,n as Cu,o as wu,p as jy,q as Li}from"./chunk-K7X2ELVZ.js";import{a as TT}from"./chunk-NFVRVRCL.js";import{a as Ys,b as Xs,c as qn,d as wo,e as O,f as ut,g as bu}from"./chunk-CF3YFDG4.js";import{a as _y}from"./chunk-PRXIML4F.js";import"./chunk-PPIEC7ZM.js";import{a as Hn}from"./chunk-FKQFVOLR.js";import"./chunk-75PL5LYJ.js";import"./chunk-VYI2WX6B.js";import{a as Ip,b as WR}from"./chunk-S6GSNWAM.js";import{b as hT,c as pT}from"./chunk-NP5G53PV.js";import{a as Ny}from"./chunk-YPMJNO4T.js";import"./chunk-U5SHMJ7Y.js";import"./chunk-LOQ4VVEN.js";import"./chunk-76MC32T2.js";import"./chunk-PWQHCWDV.js";import"./chunk-II4JKPH5.js";import"./chunk-UOE7W4PK.js";import"./chunk-6UEFDGWN.js";import"./chunk-WFWSBUYD.js";import{a as jR}from"./chunk-L5D56V5D.js";import{d as Ry}from"./chunk-3MHUE4DM.js";import"./chunk-GMLXHJYG.js";import"./chunk-RDUENEEQ.js";import"./chunk-HQ2U4QVQ.js";import{d as ky}from"./chunk-OSA3A5UV.js";import{a as Sy,e as Cy,k as Ay,p as My,q as Ey}from"./chunk-JL7ZXU6T.js";import{Ba as xy,f as wy}from"./chunk-TWO6GIVD.js";import"./chunk-3FETZOUF.js";import"./chunk-CWWDVX6C.js";import{h as Iy}from"./chunk-ZITT4GJK.js";import"./chunk-KTNHM6NK.js";import{a as by,c as me,e as vy}from"./chunk-D76SO2ME.js";var gl=me(li=>{"use strict";var x2=[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];li.REPLACEMENT_CHARACTER="\uFFFD";li.CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,RIGHT_SQUARE_BRACKET:93,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533};li.CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]};li.isSurrogate=function(n){return n>=55296&&n<=57343};li.isSurrogatePair=function(n){return n>=56320&&n<=57343};li.getSurrogatePairCodePoint=function(n,e){return(n-55296)*1024+9216+e};li.isControlCodePoint=function(n){return n!==32&&n!==10&&n!==13&&n!==9&&n!==12&&n>=1&&n<=31||n>=127&&n<=159};li.isUndefinedCodePoint=function(n){return n>=64976&&n<=65007||x2.indexOf(n)>-1}});var yl=me((ZV,$v)=>{"use strict";$v.exports={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"}});var qv=me((eG,Bv)=>{"use strict";var Sr=gl(),Rm=yl(),Is=Sr.CODE_POINTS,I2=65536,km=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=I2}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.lastCharPos){let t=this.html.charCodeAt(this.pos+1);if(Sr.isSurrogatePair(t))return this.pos++,this._addGap(),Sr.getSurrogatePairCodePoint(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Is.EOF;return this._err(Rm.surrogateInInputStream),e}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(e,t){this.html?this.html+=e:this.html=e,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,Is.EOF;let e=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&e===Is.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):e===Is.CARRIAGE_RETURN?(this.skipNextNewLine=!0,Is.LINE_FEED):(this.skipNextNewLine=!1,Sr.isSurrogate(e)&&(e=this._processSurrogate(e)),e>31&&e<127||e===Is.LINE_FEED||e===Is.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){Sr.isControlCodePoint(e)?this._err(Rm.controlCharacterInInputStream):Sr.isUndefinedCodePoint(e)&&this._err(Rm.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}};Bv.exports=km});var Uv=me((tG,Hv)=>{"use strict";Hv.exports=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204])});var ra=me((nG,q0)=>{"use strict";var A2=qv(),Le=gl(),Es=Uv(),N=yl(),x=Le.CODE_POINTS,As=Le.CODE_POINT_SEQUENCES,M2={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},O0=1,N0=2,D0=4,E2=O0|N0|D0,fe="DATA_STATE",wr="RCDATA_STATE",ia="RAWTEXT_STATE",hi="SCRIPT_DATA_STATE",F0="PLAINTEXT_STATE",Kv="TAG_OPEN_STATE",Wv="END_TAG_OPEN_STATE",Pm="TAG_NAME_STATE",jv="RCDATA_LESS_THAN_SIGN_STATE",Vv="RCDATA_END_TAG_OPEN_STATE",Gv="RCDATA_END_TAG_NAME_STATE",zv="RAWTEXT_LESS_THAN_SIGN_STATE",Qv="RAWTEXT_END_TAG_OPEN_STATE",Yv="RAWTEXT_END_TAG_NAME_STATE",Xv="SCRIPT_DATA_LESS_THAN_SIGN_STATE",Jv="SCRIPT_DATA_END_TAG_OPEN_STATE",Zv="SCRIPT_DATA_END_TAG_NAME_STATE",e0="SCRIPT_DATA_ESCAPE_START_STATE",t0="SCRIPT_DATA_ESCAPE_START_DASH_STATE",En="SCRIPT_DATA_ESCAPED_STATE",n0="SCRIPT_DATA_ESCAPED_DASH_STATE",_m="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",Tl="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",i0="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",s0="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",r0="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",di="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",o0="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",a0="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",bl="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",u0="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",Gn="BEFORE_ATTRIBUTE_NAME_STATE",vl="ATTRIBUTE_NAME_STATE",Lm="AFTER_ATTRIBUTE_NAME_STATE",Om="BEFORE_ATTRIBUTE_VALUE_STATE",Sl="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",Cl="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",wl="ATTRIBUTE_VALUE_UNQUOTED_STATE",Nm="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",Hi="SELF_CLOSING_START_TAG_STATE",Zo="BOGUS_COMMENT_STATE",l0="MARKUP_DECLARATION_OPEN_STATE",d0="COMMENT_START_STATE",c0="COMMENT_START_DASH_STATE",Ui="COMMENT_STATE",h0="COMMENT_LESS_THAN_SIGN_STATE",p0="COMMENT_LESS_THAN_SIGN_BANG_STATE",m0="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",f0="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",xl="COMMENT_END_DASH_STATE",Il="COMMENT_END_STATE",g0="COMMENT_END_BANG_STATE",y0="DOCTYPE_STATE",Al="BEFORE_DOCTYPE_NAME_STATE",Ml="DOCTYPE_NAME_STATE",T0="AFTER_DOCTYPE_NAME_STATE",b0="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",v0="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",Dm="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",Fm="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",$m="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",S0="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",C0="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",w0="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",ea="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",ta="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",Bm="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",ci="BOGUS_DOCTYPE_STATE",El="CDATA_SECTION_STATE",x0="CDATA_SECTION_BRACKET_STATE",I0="CDATA_SECTION_END_STATE",Cr="CHARACTER_REFERENCE_STATE",A0="NAMED_CHARACTER_REFERENCE_STATE",M0="AMBIGUOS_AMPERSAND_STATE",E0="NUMERIC_CHARACTER_REFERENCE_STATE",R0="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",k0="DECIMAL_CHARACTER_REFERENCE_START_STATE",P0="HEXADEMICAL_CHARACTER_REFERENCE_STATE",_0="DECIMAL_CHARACTER_REFERENCE_STATE",na="NUMERIC_CHARACTER_REFERENCE_END_STATE";function $e(n){return n===x.SPACE||n===x.LINE_FEED||n===x.TABULATION||n===x.FORM_FEED}function sa(n){return n>=x.DIGIT_0&&n<=x.DIGIT_9}function Rn(n){return n>=x.LATIN_CAPITAL_A&&n<=x.LATIN_CAPITAL_Z}function Ms(n){return n>=x.LATIN_SMALL_A&&n<=x.LATIN_SMALL_Z}function Wi(n){return Ms(n)||Rn(n)}function qm(n){return Wi(n)||sa(n)}function $0(n){return n>=x.LATIN_CAPITAL_A&&n<=x.LATIN_CAPITAL_F}function B0(n){return n>=x.LATIN_SMALL_A&&n<=x.LATIN_SMALL_F}function R2(n){return sa(n)||$0(n)||B0(n)}function Rl(n){return n+32}function Ge(n){return n<=65535?String.fromCharCode(n):(n-=65536,String.fromCharCode(n>>>10&1023|55296)+String.fromCharCode(56320|n&1023))}function Ki(n){return String.fromCharCode(Rl(n))}function L0(n,e){let t=Es[++n],i=++n,s=i+t-1;for(;i<=s;){let r=i+s>>>1,o=Es[r];if(o<e)i=r+1;else if(o>e)s=r-1;else return Es[r+t]}return-1}var Lt=class n{constructor(){this.preprocessor=new A2,this.tokenQueue=[],this.allowCDATA=!1,this.state=fe,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(e){this._consume(),this._err(e),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;let e=this._consume();this._ensureHibernation()||this[this.state](e)}return this.tokenQueue.shift()}write(e,t){this.active=!0,this.preprocessor.write(e,t)}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:n.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(e){this.state=e,this._unconsume()}_consumeSequenceIfMatch(e,t,i){let s=0,r=!0,o=e.length,a=0,u=t,l;for(;a<o;a++){if(a>0&&(u=this._consume(),s++),u===x.EOF){r=!1;break}if(l=e[a],u!==l&&(i||u!==Rl(l))){r=!1;break}}if(!r)for(;s--;)this._unconsume();return r}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==As.SCRIPT_STRING.length)return!1;for(let e=0;e<this.tempBuff.length;e++)if(this.tempBuff[e]!==As.SCRIPT_STRING[e])return!1;return!0}_createStartTagToken(){this.currentToken={type:n.START_TAG_TOKEN,tagName:"",selfClosing:!1,ackSelfClosing:!1,attrs:[]}}_createEndTagToken(){this.currentToken={type:n.END_TAG_TOKEN,tagName:"",selfClosing:!1,attrs:[]}}_createCommentToken(){this.currentToken={type:n.COMMENT_TOKEN,data:""}}_createDoctypeToken(e){this.currentToken={type:n.DOCTYPE_TOKEN,name:e,forceQuirks:!1,publicId:null,systemId:null}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t}}_createEOFToken(){this.currentToken={type:n.EOF_TOKEN}}_createAttr(e){this.currentAttr={name:e,value:""}}_leaveAttrName(e){n.getTokenAttr(this.currentToken,this.currentAttr.name)===null?this.currentToken.attrs.push(this.currentAttr):this._err(N.duplicateAttribute),this.state=e}_leaveAttrValue(e){this.state=e}_emitCurrentToken(){this._emitCurrentCharacterToken();let e=this.currentToken;this.currentToken=null,e.type===n.START_TAG_TOKEN?this.lastStartTagName=e.tagName:e.type===n.END_TAG_TOKEN&&(e.attrs.length>0&&this._err(N.endTagWithAttributes),e.selfClosing&&this._err(N.endTagWithTrailingSolidus)),this.tokenQueue.push(e)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(e,t){this.currentCharacterToken&&this.currentCharacterToken.type!==e&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=t:this._createCharacterToken(e,t)}_emitCodePoint(e){let t=n.CHARACTER_TOKEN;$e(e)?t=n.WHITESPACE_CHARACTER_TOKEN:e===x.NULL&&(t=n.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(t,Ge(e))}_emitSeveralCodePoints(e){for(let t=0;t<e.length;t++)this._emitCodePoint(e[t])}_emitChars(e){this._appendCharToCurrentCharacterToken(n.CHARACTER_TOKEN,e)}_matchNamedCharacterReference(e){let t=null,i=1,s=L0(0,e);for(this.tempBuff.push(e);s>-1;){let r=Es[s],o=r<E2;o&&r&O0&&(t=r&N0?[Es[++s],Es[++s]]:[Es[++s]],i=0);let u=this._consume();if(this.tempBuff.push(u),i++,u===x.EOF)break;o?s=r&D0?L0(s,u):-1:s=u===r?++s:-1}for(;i--;)this.tempBuff.pop(),this._unconsume();return t}_isCharacterReferenceInAttribute(){return this.returnState===Sl||this.returnState===Cl||this.returnState===wl}_isCharacterReferenceAttributeQuirk(e){if(!e&&this._isCharacterReferenceInAttribute()){let t=this._consume();return this._unconsume(),t===x.EQUALS_SIGN||qm(t)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let e=0;e<this.tempBuff.length;e++)this.currentAttr.value+=Ge(this.tempBuff[e]);else this._emitSeveralCodePoints(this.tempBuff);this.tempBuff=[]}[fe](e){this.preprocessor.dropParsedChunk(),e===x.LESS_THAN_SIGN?this.state=Kv:e===x.AMPERSAND?(this.returnState=fe,this.state=Cr):e===x.NULL?(this._err(N.unexpectedNullCharacter),this._emitCodePoint(e)):e===x.EOF?this._emitEOFToken():this._emitCodePoint(e)}[wr](e){this.preprocessor.dropParsedChunk(),e===x.AMPERSAND?(this.returnState=wr,this.state=Cr):e===x.LESS_THAN_SIGN?this.state=jv:e===x.NULL?(this._err(N.unexpectedNullCharacter),this._emitChars(Le.REPLACEMENT_CHARACTER)):e===x.EOF?this._emitEOFToken():this._emitCodePoint(e)}[ia](e){this.preprocessor.dropParsedChunk(),e===x.LESS_THAN_SIGN?this.state=zv:e===x.NULL?(this._err(N.unexpectedNullCharacter),this._emitChars(Le.REPLACEMENT_CHARACTER)):e===x.EOF?this._emitEOFToken():this._emitCodePoint(e)}[hi](e){this.preprocessor.dropParsedChunk(),e===x.LESS_THAN_SIGN?this.state=Xv:e===x.NULL?(this._err(N.unexpectedNullCharacter),this._emitChars(Le.REPLACEMENT_CHARACTER)):e===x.EOF?this._emitEOFToken():this._emitCodePoint(e)}[F0](e){this.preprocessor.dropParsedChunk(),e===x.NULL?(this._err(N.unexpectedNullCharacter),this._emitChars(Le.REPLACEMENT_CHARACTER)):e===x.EOF?this._emitEOFToken():this._emitCodePoint(e)}[Kv](e){e===x.EXCLAMATION_MARK?this.state=l0:e===x.SOLIDUS?this.state=Wv:Wi(e)?(this._createStartTagToken(),this._reconsumeInState(Pm)):e===x.QUESTION_MARK?(this._err(N.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(),this._reconsumeInState(Zo)):e===x.EOF?(this._err(N.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken()):(this._err(N.invalidFirstCharacterOfTagName),this._emitChars("<"),this._reconsumeInState(fe))}[Wv](e){Wi(e)?(this._createEndTagToken(),this._reconsumeInState(Pm)):e===x.GREATER_THAN_SIGN?(this._err(N.missingEndTagName),this.state=fe):e===x.EOF?(this._err(N.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken()):(this._err(N.invalidFirstCharacterOfTagName),this._createCommentToken(),this._reconsumeInState(Zo))}[Pm](e){$e(e)?this.state=Gn:e===x.SOLIDUS?this.state=Hi:e===x.GREATER_THAN_SIGN?(this.state=fe,this._emitCurrentToken()):Rn(e)?this.currentToken.tagName+=Ki(e):e===x.NULL?(this._err(N.unexpectedNullCharacter),this.currentToken.tagName+=Le.REPLACEMENT_CHARACTER):e===x.EOF?(this._err(N.eofInTag),this._emitEOFToken()):this.currentToken.tagName+=Ge(e)}[jv](e){e===x.SOLIDUS?(this.tempBuff=[],this.state=Vv):(this._emitChars("<"),this._reconsumeInState(wr))}[Vv](e){Wi(e)?(this._createEndTagToken(),this._reconsumeInState(Gv)):(this._emitChars("</"),this._reconsumeInState(wr))}[Gv](e){if(Rn(e))this.currentToken.tagName+=Ki(e),this.tempBuff.push(e);else if(Ms(e))this.currentToken.tagName+=Ge(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if($e(e)){this.state=Gn;return}if(e===x.SOLIDUS){this.state=Hi;return}if(e===x.GREATER_THAN_SIGN){this.state=fe,this._emitCurrentToken();return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(wr)}}[zv](e){e===x.SOLIDUS?(this.tempBuff=[],this.state=Qv):(this._emitChars("<"),this._reconsumeInState(ia))}[Qv](e){Wi(e)?(this._createEndTagToken(),this._reconsumeInState(Yv)):(this._emitChars("</"),this._reconsumeInState(ia))}[Yv](e){if(Rn(e))this.currentToken.tagName+=Ki(e),this.tempBuff.push(e);else if(Ms(e))this.currentToken.tagName+=Ge(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if($e(e)){this.state=Gn;return}if(e===x.SOLIDUS){this.state=Hi;return}if(e===x.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=fe;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(ia)}}[Xv](e){e===x.SOLIDUS?(this.tempBuff=[],this.state=Jv):e===x.EXCLAMATION_MARK?(this.state=e0,this._emitChars("<!")):(this._emitChars("<"),this._reconsumeInState(hi))}[Jv](e){Wi(e)?(this._createEndTagToken(),this._reconsumeInState(Zv)):(this._emitChars("</"),this._reconsumeInState(hi))}[Zv](e){if(Rn(e))this.currentToken.tagName+=Ki(e),this.tempBuff.push(e);else if(Ms(e))this.currentToken.tagName+=Ge(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if($e(e)){this.state=Gn;return}else if(e===x.SOLIDUS){this.state=Hi;return}else if(e===x.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=fe;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(hi)}}[e0](e){e===x.HYPHEN_MINUS?(this.state=t0,this._emitChars("-")):this._reconsumeInState(hi)}[t0](e){e===x.HYPHEN_MINUS?(this.state=_m,this._emitChars("-")):this._reconsumeInState(hi)}[En](e){e===x.HYPHEN_MINUS?(this.state=n0,this._emitChars("-")):e===x.LESS_THAN_SIGN?this.state=Tl:e===x.NULL?(this._err(N.unexpectedNullCharacter),this._emitChars(Le.REPLACEMENT_CHARACTER)):e===x.EOF?(this._err(N.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(e)}[n0](e){e===x.HYPHEN_MINUS?(this.state=_m,this._emitChars("-")):e===x.LESS_THAN_SIGN?this.state=Tl:e===x.NULL?(this._err(N.unexpectedNullCharacter),this.state=En,this._emitChars(Le.REPLACEMENT_CHARACTER)):e===x.EOF?(this._err(N.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=En,this._emitCodePoint(e))}[_m](e){e===x.HYPHEN_MINUS?this._emitChars("-"):e===x.LESS_THAN_SIGN?this.state=Tl:e===x.GREATER_THAN_SIGN?(this.state=hi,this._emitChars(">")):e===x.NULL?(this._err(N.unexpectedNullCharacter),this.state=En,this._emitChars(Le.REPLACEMENT_CHARACTER)):e===x.EOF?(this._err(N.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=En,this._emitCodePoint(e))}[Tl](e){e===x.SOLIDUS?(this.tempBuff=[],this.state=i0):Wi(e)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(r0)):(this._emitChars("<"),this._reconsumeInState(En))}[i0](e){Wi(e)?(this._createEndTagToken(),this._reconsumeInState(s0)):(this._emitChars("</"),this._reconsumeInState(En))}[s0](e){if(Rn(e))this.currentToken.tagName+=Ki(e),this.tempBuff.push(e);else if(Ms(e))this.currentToken.tagName+=Ge(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if($e(e)){this.state=Gn;return}if(e===x.SOLIDUS){this.state=Hi;return}if(e===x.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=fe;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(En)}}[r0](e){$e(e)||e===x.SOLIDUS||e===x.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?di:En,this._emitCodePoint(e)):Rn(e)?(this.tempBuff.push(Rl(e)),this._emitCodePoint(e)):Ms(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(En)}[di](e){e===x.HYPHEN_MINUS?(this.state=o0,this._emitChars("-")):e===x.LESS_THAN_SIGN?(this.state=bl,this._emitChars("<")):e===x.NULL?(this._err(N.unexpectedNullCharacter),this._emitChars(Le.REPLACEMENT_CHARACTER)):e===x.EOF?(this._err(N.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(e)}[o0](e){e===x.HYPHEN_MINUS?(this.state=a0,this._emitChars("-")):e===x.LESS_THAN_SIGN?(this.state=bl,this._emitChars("<")):e===x.NULL?(this._err(N.unexpectedNullCharacter),this.state=di,this._emitChars(Le.REPLACEMENT_CHARACTER)):e===x.EOF?(this._err(N.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=di,this._emitCodePoint(e))}[a0](e){e===x.HYPHEN_MINUS?this._emitChars("-"):e===x.LESS_THAN_SIGN?(this.state=bl,this._emitChars("<")):e===x.GREATER_THAN_SIGN?(this.state=hi,this._emitChars(">")):e===x.NULL?(this._err(N.unexpectedNullCharacter),this.state=di,this._emitChars(Le.REPLACEMENT_CHARACTER)):e===x.EOF?(this._err(N.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=di,this._emitCodePoint(e))}[bl](e){e===x.SOLIDUS?(this.tempBuff=[],this.state=u0,this._emitChars("/")):this._reconsumeInState(di)}[u0](e){$e(e)||e===x.SOLIDUS||e===x.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?En:di,this._emitCodePoint(e)):Rn(e)?(this.tempBuff.push(Rl(e)),this._emitCodePoint(e)):Ms(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(di)}[Gn](e){$e(e)||(e===x.SOLIDUS||e===x.GREATER_THAN_SIGN||e===x.EOF?this._reconsumeInState(Lm):e===x.EQUALS_SIGN?(this._err(N.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=vl):(this._createAttr(""),this._reconsumeInState(vl)))}[vl](e){$e(e)||e===x.SOLIDUS||e===x.GREATER_THAN_SIGN||e===x.EOF?(this._leaveAttrName(Lm),this._unconsume()):e===x.EQUALS_SIGN?this._leaveAttrName(Om):Rn(e)?this.currentAttr.name+=Ki(e):e===x.QUOTATION_MARK||e===x.APOSTROPHE||e===x.LESS_THAN_SIGN?(this._err(N.unexpectedCharacterInAttributeName),this.currentAttr.name+=Ge(e)):e===x.NULL?(this._err(N.unexpectedNullCharacter),this.currentAttr.name+=Le.REPLACEMENT_CHARACTER):this.currentAttr.name+=Ge(e)}[Lm](e){$e(e)||(e===x.SOLIDUS?this.state=Hi:e===x.EQUALS_SIGN?this.state=Om:e===x.GREATER_THAN_SIGN?(this.state=fe,this._emitCurrentToken()):e===x.EOF?(this._err(N.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(vl)))}[Om](e){$e(e)||(e===x.QUOTATION_MARK?this.state=Sl:e===x.APOSTROPHE?this.state=Cl:e===x.GREATER_THAN_SIGN?(this._err(N.missingAttributeValue),this.state=fe,this._emitCurrentToken()):this._reconsumeInState(wl))}[Sl](e){e===x.QUOTATION_MARK?this.state=Nm:e===x.AMPERSAND?(this.returnState=Sl,this.state=Cr):e===x.NULL?(this._err(N.unexpectedNullCharacter),this.currentAttr.value+=Le.REPLACEMENT_CHARACTER):e===x.EOF?(this._err(N.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Ge(e)}[Cl](e){e===x.APOSTROPHE?this.state=Nm:e===x.AMPERSAND?(this.returnState=Cl,this.state=Cr):e===x.NULL?(this._err(N.unexpectedNullCharacter),this.currentAttr.value+=Le.REPLACEMENT_CHARACTER):e===x.EOF?(this._err(N.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Ge(e)}[wl](e){$e(e)?this._leaveAttrValue(Gn):e===x.AMPERSAND?(this.returnState=wl,this.state=Cr):e===x.GREATER_THAN_SIGN?(this._leaveAttrValue(fe),this._emitCurrentToken()):e===x.NULL?(this._err(N.unexpectedNullCharacter),this.currentAttr.value+=Le.REPLACEMENT_CHARACTER):e===x.QUOTATION_MARK||e===x.APOSTROPHE||e===x.LESS_THAN_SIGN||e===x.EQUALS_SIGN||e===x.GRAVE_ACCENT?(this._err(N.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=Ge(e)):e===x.EOF?(this._err(N.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Ge(e)}[Nm](e){$e(e)?this._leaveAttrValue(Gn):e===x.SOLIDUS?this._leaveAttrValue(Hi):e===x.GREATER_THAN_SIGN?(this._leaveAttrValue(fe),this._emitCurrentToken()):e===x.EOF?(this._err(N.eofInTag),this._emitEOFToken()):(this._err(N.missingWhitespaceBetweenAttributes),this._reconsumeInState(Gn))}[Hi](e){e===x.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=fe,this._emitCurrentToken()):e===x.EOF?(this._err(N.eofInTag),this._emitEOFToken()):(this._err(N.unexpectedSolidusInTag),this._reconsumeInState(Gn))}[Zo](e){e===x.GREATER_THAN_SIGN?(this.state=fe,this._emitCurrentToken()):e===x.EOF?(this._emitCurrentToken(),this._emitEOFToken()):e===x.NULL?(this._err(N.unexpectedNullCharacter),this.currentToken.data+=Le.REPLACEMENT_CHARACTER):this.currentToken.data+=Ge(e)}[l0](e){this._consumeSequenceIfMatch(As.DASH_DASH_STRING,e,!0)?(this._createCommentToken(),this.state=d0):this._consumeSequenceIfMatch(As.DOCTYPE_STRING,e,!1)?this.state=y0:this._consumeSequenceIfMatch(As.CDATA_START_STRING,e,!0)?this.allowCDATA?this.state=El:(this._err(N.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=Zo):this._ensureHibernation()||(this._err(N.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(Zo))}[d0](e){e===x.HYPHEN_MINUS?this.state=c0:e===x.GREATER_THAN_SIGN?(this._err(N.abruptClosingOfEmptyComment),this.state=fe,this._emitCurrentToken()):this._reconsumeInState(Ui)}[c0](e){e===x.HYPHEN_MINUS?this.state=Il:e===x.GREATER_THAN_SIGN?(this._err(N.abruptClosingOfEmptyComment),this.state=fe,this._emitCurrentToken()):e===x.EOF?(this._err(N.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Ui))}[Ui](e){e===x.HYPHEN_MINUS?this.state=xl:e===x.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=h0):e===x.NULL?(this._err(N.unexpectedNullCharacter),this.currentToken.data+=Le.REPLACEMENT_CHARACTER):e===x.EOF?(this._err(N.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=Ge(e)}[h0](e){e===x.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=p0):e===x.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(Ui)}[p0](e){e===x.HYPHEN_MINUS?this.state=m0:this._reconsumeInState(Ui)}[m0](e){e===x.HYPHEN_MINUS?this.state=f0:this._reconsumeInState(xl)}[f0](e){e!==x.GREATER_THAN_SIGN&&e!==x.EOF&&this._err(N.nestedComment),this._reconsumeInState(Il)}[xl](e){e===x.HYPHEN_MINUS?this.state=Il:e===x.EOF?(this._err(N.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Ui))}[Il](e){e===x.GREATER_THAN_SIGN?(this.state=fe,this._emitCurrentToken()):e===x.EXCLAMATION_MARK?this.state=g0:e===x.HYPHEN_MINUS?this.currentToken.data+="-":e===x.EOF?(this._err(N.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(Ui))}[g0](e){e===x.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=xl):e===x.GREATER_THAN_SIGN?(this._err(N.incorrectlyClosedComment),this.state=fe,this._emitCurrentToken()):e===x.EOF?(this._err(N.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(Ui))}[y0](e){$e(e)?this.state=Al:e===x.GREATER_THAN_SIGN?this._reconsumeInState(Al):e===x.EOF?(this._err(N.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(N.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(Al))}[Al](e){$e(e)||(Rn(e)?(this._createDoctypeToken(Ki(e)),this.state=Ml):e===x.NULL?(this._err(N.unexpectedNullCharacter),this._createDoctypeToken(Le.REPLACEMENT_CHARACTER),this.state=Ml):e===x.GREATER_THAN_SIGN?(this._err(N.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=fe):e===x.EOF?(this._err(N.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(Ge(e)),this.state=Ml))}[Ml](e){$e(e)?this.state=T0:e===x.GREATER_THAN_SIGN?(this.state=fe,this._emitCurrentToken()):Rn(e)?this.currentToken.name+=Ki(e):e===x.NULL?(this._err(N.unexpectedNullCharacter),this.currentToken.name+=Le.REPLACEMENT_CHARACTER):e===x.EOF?(this._err(N.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=Ge(e)}[T0](e){$e(e)||(e===x.GREATER_THAN_SIGN?(this.state=fe,this._emitCurrentToken()):e===x.EOF?(this._err(N.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(As.PUBLIC_STRING,e,!1)?this.state=b0:this._consumeSequenceIfMatch(As.SYSTEM_STRING,e,!1)?this.state=C0:this._ensureHibernation()||(this._err(N.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(ci)))}[b0](e){$e(e)?this.state=v0:e===x.QUOTATION_MARK?(this._err(N.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=Dm):e===x.APOSTROPHE?(this._err(N.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=Fm):e===x.GREATER_THAN_SIGN?(this._err(N.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=fe,this._emitCurrentToken()):e===x.EOF?(this._err(N.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(N.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(ci))}[v0](e){$e(e)||(e===x.QUOTATION_MARK?(this.currentToken.publicId="",this.state=Dm):e===x.APOSTROPHE?(this.currentToken.publicId="",this.state=Fm):e===x.GREATER_THAN_SIGN?(this._err(N.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=fe,this._emitCurrentToken()):e===x.EOF?(this._err(N.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(N.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(ci)))}[Dm](e){e===x.QUOTATION_MARK?this.state=$m:e===x.NULL?(this._err(N.unexpectedNullCharacter),this.currentToken.publicId+=Le.REPLACEMENT_CHARACTER):e===x.GREATER_THAN_SIGN?(this._err(N.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=fe):e===x.EOF?(this._err(N.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Ge(e)}[Fm](e){e===x.APOSTROPHE?this.state=$m:e===x.NULL?(this._err(N.unexpectedNullCharacter),this.currentToken.publicId+=Le.REPLACEMENT_CHARACTER):e===x.GREATER_THAN_SIGN?(this._err(N.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=fe):e===x.EOF?(this._err(N.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Ge(e)}[$m](e){$e(e)?this.state=S0:e===x.GREATER_THAN_SIGN?(this.state=fe,this._emitCurrentToken()):e===x.QUOTATION_MARK?(this._err(N.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=ea):e===x.APOSTROPHE?(this._err(N.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=ta):e===x.EOF?(this._err(N.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(N.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(ci))}[S0](e){$e(e)||(e===x.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=fe):e===x.QUOTATION_MARK?(this.currentToken.systemId="",this.state=ea):e===x.APOSTROPHE?(this.currentToken.systemId="",this.state=ta):e===x.EOF?(this._err(N.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(N.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(ci)))}[C0](e){$e(e)?this.state=w0:e===x.QUOTATION_MARK?(this._err(N.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=ea):e===x.APOSTROPHE?(this._err(N.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=ta):e===x.GREATER_THAN_SIGN?(this._err(N.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=fe,this._emitCurrentToken()):e===x.EOF?(this._err(N.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(N.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(ci))}[w0](e){$e(e)||(e===x.QUOTATION_MARK?(this.currentToken.systemId="",this.state=ea):e===x.APOSTROPHE?(this.currentToken.systemId="",this.state=ta):e===x.GREATER_THAN_SIGN?(this._err(N.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=fe,this._emitCurrentToken()):e===x.EOF?(this._err(N.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(N.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(ci)))}[ea](e){e===x.QUOTATION_MARK?this.state=Bm:e===x.NULL?(this._err(N.unexpectedNullCharacter),this.currentToken.systemId+=Le.REPLACEMENT_CHARACTER):e===x.GREATER_THAN_SIGN?(this._err(N.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=fe):e===x.EOF?(this._err(N.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Ge(e)}[ta](e){e===x.APOSTROPHE?this.state=Bm:e===x.NULL?(this._err(N.unexpectedNullCharacter),this.currentToken.systemId+=Le.REPLACEMENT_CHARACTER):e===x.GREATER_THAN_SIGN?(this._err(N.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=fe):e===x.EOF?(this._err(N.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Ge(e)}[Bm](e){$e(e)||(e===x.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=fe):e===x.EOF?(this._err(N.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(N.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(ci)))}[ci](e){e===x.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=fe):e===x.NULL?this._err(N.unexpectedNullCharacter):e===x.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[El](e){e===x.RIGHT_SQUARE_BRACKET?this.state=x0:e===x.EOF?(this._err(N.eofInCdata),this._emitEOFToken()):this._emitCodePoint(e)}[x0](e){e===x.RIGHT_SQUARE_BRACKET?this.state=I0:(this._emitChars("]"),this._reconsumeInState(El))}[I0](e){e===x.GREATER_THAN_SIGN?this.state=fe:e===x.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(El))}[Cr](e){this.tempBuff=[x.AMPERSAND],e===x.NUMBER_SIGN?(this.tempBuff.push(e),this.state=E0):qm(e)?this._reconsumeInState(A0):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[A0](e){let t=this._matchNamedCharacterReference(e);if(this._ensureHibernation())this.tempBuff=[x.AMPERSAND];else if(t){let i=this.tempBuff[this.tempBuff.length-1]===x.SEMICOLON;this._isCharacterReferenceAttributeQuirk(i)||(i||this._errOnNextCodePoint(N.missingSemicolonAfterCharacterReference),this.tempBuff=t),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=M0}[M0](e){qm(e)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=Ge(e):this._emitCodePoint(e):(e===x.SEMICOLON&&this._err(N.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[E0](e){this.charRefCode=0,e===x.LATIN_SMALL_X||e===x.LATIN_CAPITAL_X?(this.tempBuff.push(e),this.state=R0):this._reconsumeInState(k0)}[R0](e){R2(e)?this._reconsumeInState(P0):(this._err(N.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[k0](e){sa(e)?this._reconsumeInState(_0):(this._err(N.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[P0](e){$0(e)?this.charRefCode=this.charRefCode*16+e-55:B0(e)?this.charRefCode=this.charRefCode*16+e-87:sa(e)?this.charRefCode=this.charRefCode*16+e-48:e===x.SEMICOLON?this.state=na:(this._err(N.missingSemicolonAfterCharacterReference),this._reconsumeInState(na))}[_0](e){sa(e)?this.charRefCode=this.charRefCode*10+e-48:e===x.SEMICOLON?this.state=na:(this._err(N.missingSemicolonAfterCharacterReference),this._reconsumeInState(na))}[na](){if(this.charRefCode===x.NULL)this._err(N.nullCharacterReference),this.charRefCode=x.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(N.characterReferenceOutsideUnicodeRange),this.charRefCode=x.REPLACEMENT_CHARACTER;else if(Le.isSurrogate(this.charRefCode))this._err(N.surrogateCharacterReference),this.charRefCode=x.REPLACEMENT_CHARACTER;else if(Le.isUndefinedCodePoint(this.charRefCode))this._err(N.noncharacterCharacterReference);else if(Le.isControlCodePoint(this.charRefCode)||this.charRefCode===x.CARRIAGE_RETURN){this._err(N.controlCharacterReference);let e=M2[this.charRefCode];e&&(this.charRefCode=e)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}};Lt.CHARACTER_TOKEN="CHARACTER_TOKEN";Lt.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN";Lt.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN";Lt.START_TAG_TOKEN="START_TAG_TOKEN";Lt.END_TAG_TOKEN="END_TAG_TOKEN";Lt.COMMENT_TOKEN="COMMENT_TOKEN";Lt.DOCTYPE_TOKEN="DOCTYPE_TOKEN";Lt.EOF_TOKEN="EOF_TOKEN";Lt.HIBERNATION_TOKEN="HIBERNATION_TOKEN";Lt.MODE={DATA:fe,RCDATA:wr,RAWTEXT:ia,SCRIPT_DATA:hi,PLAINTEXT:F0};Lt.getTokenAttr=function(n,e){for(let t=n.attrs.length-1;t>=0;t--)if(n.attrs[t].name===e)return n.attrs[t].value;return null};q0.exports=Lt});var ji=me(xr=>{"use strict";var Hm=xr.NAMESPACES={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/"};xr.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"};xr.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};var H=xr.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};xr.SPECIAL_ELEMENTS={[Hm.HTML]:{[H.ADDRESS]:!0,[H.APPLET]:!0,[H.AREA]:!0,[H.ARTICLE]:!0,[H.ASIDE]:!0,[H.BASE]:!0,[H.BASEFONT]:!0,[H.BGSOUND]:!0,[H.BLOCKQUOTE]:!0,[H.BODY]:!0,[H.BR]:!0,[H.BUTTON]:!0,[H.CAPTION]:!0,[H.CENTER]:!0,[H.COL]:!0,[H.COLGROUP]:!0,[H.DD]:!0,[H.DETAILS]:!0,[H.DIR]:!0,[H.DIV]:!0,[H.DL]:!0,[H.DT]:!0,[H.EMBED]:!0,[H.FIELDSET]:!0,[H.FIGCAPTION]:!0,[H.FIGURE]:!0,[H.FOOTER]:!0,[H.FORM]:!0,[H.FRAME]:!0,[H.FRAMESET]:!0,[H.H1]:!0,[H.H2]:!0,[H.H3]:!0,[H.H4]:!0,[H.H5]:!0,[H.H6]:!0,[H.HEAD]:!0,[H.HEADER]:!0,[H.HGROUP]:!0,[H.HR]:!0,[H.HTML]:!0,[H.IFRAME]:!0,[H.IMG]:!0,[H.INPUT]:!0,[H.LI]:!0,[H.LINK]:!0,[H.LISTING]:!0,[H.MAIN]:!0,[H.MARQUEE]:!0,[H.MENU]:!0,[H.META]:!0,[H.NAV]:!0,[H.NOEMBED]:!0,[H.NOFRAMES]:!0,[H.NOSCRIPT]:!0,[H.OBJECT]:!0,[H.OL]:!0,[H.P]:!0,[H.PARAM]:!0,[H.PLAINTEXT]:!0,[H.PRE]:!0,[H.SCRIPT]:!0,[H.SECTION]:!0,[H.SELECT]:!0,[H.SOURCE]:!0,[H.STYLE]:!0,[H.SUMMARY]:!0,[H.TABLE]:!0,[H.TBODY]:!0,[H.TD]:!0,[H.TEMPLATE]:!0,[H.TEXTAREA]:!0,[H.TFOOT]:!0,[H.TH]:!0,[H.THEAD]:!0,[H.TITLE]:!0,[H.TR]:!0,[H.TRACK]:!0,[H.UL]:!0,[H.WBR]:!0,[H.XMP]:!0},[Hm.MATHML]:{[H.MI]:!0,[H.MO]:!0,[H.MN]:!0,[H.MS]:!0,[H.MTEXT]:!0,[H.ANNOTATION_XML]:!0},[Hm.SVG]:{[H.TITLE]:!0,[H.FOREIGN_OBJECT]:!0,[H.DESC]:!0}}});var W0=me((sG,K0)=>{"use strict";var U0=ji(),K=U0.TAG_NAMES,Oe=U0.NAMESPACES;function H0(n){switch(n.length){case 1:return n===K.P;case 2:return n===K.RB||n===K.RP||n===K.RT||n===K.DD||n===K.DT||n===K.LI;case 3:return n===K.RTC;case 6:return n===K.OPTION;case 8:return n===K.OPTGROUP}return!1}function k2(n){switch(n.length){case 1:return n===K.P;case 2:return n===K.RB||n===K.RP||n===K.RT||n===K.DD||n===K.DT||n===K.LI||n===K.TD||n===K.TH||n===K.TR;case 3:return n===K.RTC;case 5:return n===K.TBODY||n===K.TFOOT||n===K.THEAD;case 6:return n===K.OPTION;case 7:return n===K.CAPTION;case 8:return n===K.OPTGROUP||n===K.COLGROUP}return!1}function kl(n,e){switch(n.length){case 2:if(n===K.TD||n===K.TH)return e===Oe.HTML;if(n===K.MI||n===K.MO||n===K.MN||n===K.MS)return e===Oe.MATHML;break;case 4:if(n===K.HTML)return e===Oe.HTML;if(n===K.DESC)return e===Oe.SVG;break;case 5:if(n===K.TABLE)return e===Oe.HTML;if(n===K.MTEXT)return e===Oe.MATHML;if(n===K.TITLE)return e===Oe.SVG;break;case 6:return(n===K.APPLET||n===K.OBJECT)&&e===Oe.HTML;case 7:return(n===K.CAPTION||n===K.MARQUEE)&&e===Oe.HTML;case 8:return n===K.TEMPLATE&&e===Oe.HTML;case 13:return n===K.FOREIGN_OBJECT&&e===Oe.SVG;case 14:return n===K.ANNOTATION_XML&&e===Oe.MATHML}return!1}var Um=class{constructor(e,t){this.stackTop=-1,this.items=[],this.current=e,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=t}_indexOf(e){let t=-1;for(let i=this.stackTop;i>=0;i--)if(this.items[i]===e){t=i;break}return t}_isInTemplate(){return this.currentTagName===K.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Oe.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(e){this.items[++this.stackTop]=e,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(e,t){let i=this._indexOf(e);this.items[i]=t,i===this.stackTop&&this._updateCurrentElement()}insertAfter(e,t){let i=this._indexOf(e)+1;this.items.splice(i,0,t),i===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(e){for(;this.stackTop>-1;){let t=this.currentTagName,i=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===e&&i===Oe.HTML)break}}popUntilElementPopped(e){for(;this.stackTop>-1;){let t=this.current;if(this.pop(),t===e)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){let e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===K.H1||e===K.H2||e===K.H3||e===K.H4||e===K.H5||e===K.H6&&t===Oe.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){let e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===K.TD||e===K.TH&&t===Oe.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==K.TABLE&&this.currentTagName!==K.TEMPLATE&&this.currentTagName!==K.HTML||this.treeAdapter.getNamespaceURI(this.current)!==Oe.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==K.TBODY&&this.currentTagName!==K.TFOOT&&this.currentTagName!==K.THEAD&&this.currentTagName!==K.TEMPLATE&&this.currentTagName!==K.HTML||this.treeAdapter.getNamespaceURI(this.current)!==Oe.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==K.TR&&this.currentTagName!==K.TEMPLATE&&this.currentTagName!==K.HTML||this.treeAdapter.getNamespaceURI(this.current)!==Oe.HTML;)this.pop()}remove(e){for(let t=this.stackTop;t>=0;t--)if(this.items[t]===e){this.items.splice(t,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){let e=this.items[1];return e&&this.treeAdapter.getTagName(e)===K.BODY?e:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e);return--t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.currentTagName===K.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){let i=this.treeAdapter.getTagName(this.items[t]),s=this.treeAdapter.getNamespaceURI(this.items[t]);if(i===e&&s===Oe.HTML)return!0;if(kl(i,s))return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.treeAdapter.getTagName(this.items[e]),i=this.treeAdapter.getNamespaceURI(this.items[e]);if((t===K.H1||t===K.H2||t===K.H3||t===K.H4||t===K.H5||t===K.H6)&&i===Oe.HTML)return!0;if(kl(t,i))return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){let i=this.treeAdapter.getTagName(this.items[t]),s=this.treeAdapter.getNamespaceURI(this.items[t]);if(i===e&&s===Oe.HTML)return!0;if((i===K.UL||i===K.OL)&&s===Oe.HTML||kl(i,s))return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){let i=this.treeAdapter.getTagName(this.items[t]),s=this.treeAdapter.getNamespaceURI(this.items[t]);if(i===e&&s===Oe.HTML)return!0;if(i===K.BUTTON&&s===Oe.HTML||kl(i,s))return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){let i=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===Oe.HTML){if(i===e)return!0;if(i===K.TABLE||i===K.TEMPLATE||i===K.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){let t=this.treeAdapter.getTagName(this.items[e]);if(this.treeAdapter.getNamespaceURI(this.items[e])===Oe.HTML){if(t===K.TBODY||t===K.THEAD||t===K.TFOOT)return!0;if(t===K.TABLE||t===K.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){let i=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===Oe.HTML){if(i===e)return!0;if(i!==K.OPTION&&i!==K.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;H0(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;k2(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;H0(this.currentTagName)&&this.currentTagName!==e;)this.pop()}};K0.exports=Um});var V0=me((rG,j0)=>{"use strict";var oa=class n{constructor(e){this.length=0,this.entries=[],this.treeAdapter=e,this.bookmark=null}_getNoahArkConditionCandidates(e){let t=[];if(this.length>=3){let i=this.treeAdapter.getAttrList(e).length,s=this.treeAdapter.getTagName(e),r=this.treeAdapter.getNamespaceURI(e);for(let o=this.length-1;o>=0;o--){let a=this.entries[o];if(a.type===n.MARKER_ENTRY)break;let u=a.element,l=this.treeAdapter.getAttrList(u);this.treeAdapter.getTagName(u)===s&&this.treeAdapter.getNamespaceURI(u)===r&&l.length===i&&t.push({idx:o,attrs:l})}}return t.length<3?[]:t}_ensureNoahArkCondition(e){let t=this._getNoahArkConditionCandidates(e),i=t.length;if(i){let s=this.treeAdapter.getAttrList(e),r=s.length,o=Object.create(null);for(let a=0;a<r;a++){let u=s[a];o[u.name]=u.value}for(let a=0;a<r;a++)for(let u=0;u<i;u++){let l=t[u].attrs[a];if(o[l.name]!==l.value&&(t.splice(u,1),i--),t.length<3)return}for(let a=i-1;a>=2;a--)this.entries.splice(t[a].idx,1),this.length--}}insertMarker(){this.entries.push({type:n.MARKER_ENTRY}),this.length++}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.push({type:n.ELEMENT_ENTRY,element:e,token:t}),this.length++}insertElementAfterBookmark(e,t){let i=this.length-1;for(;i>=0&&this.entries[i]!==this.bookmark;i--);this.entries.splice(i+1,0,{type:n.ELEMENT_ENTRY,element:e,token:t}),this.length++}removeEntry(e){for(let t=this.length-1;t>=0;t--)if(this.entries[t]===e){this.entries.splice(t,1),this.length--;break}}clearToLastMarker(){for(;this.length;){let e=this.entries.pop();if(this.length--,e.type===n.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(e){for(let t=this.length-1;t>=0;t--){let i=this.entries[t];if(i.type===n.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(i.element)===e)return i}return null}getElementEntry(e){for(let t=this.length-1;t>=0;t--){let i=this.entries[t];if(i.type===n.ELEMENT_ENTRY&&i.element===e)return i}return null}};oa.MARKER_ENTRY="MARKER_ENTRY";oa.ELEMENT_ENTRY="ELEMENT_ENTRY";j0.exports=oa});var zn=me((oG,G0)=>{"use strict";var Pl=class{constructor(e){let t={},i=this._getOverriddenMethods(this,t);for(let s of Object.keys(i))typeof i[s]=="function"&&(t[s]=e[s],e[s]=i[s])}_getOverriddenMethods(){throw new Error("Not implemented")}};Pl.install=function(n,e,t){n.__mixins||(n.__mixins=[]);for(let s=0;s<n.__mixins.length;s++)if(n.__mixins[s].constructor===e)return n.__mixins[s];let i=new e(n,t);return n.__mixins.push(i),i};G0.exports=Pl});var Wm=me((aG,z0)=>{"use strict";var P2=zn(),Km=class extends P2{constructor(e){super(e),this.preprocessor=e,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.offset=0,this.col=0,this.line=1}_getOverriddenMethods(e,t){return{advance(){let i=this.pos+1,s=this.html[i];return e.isEol&&(e.isEol=!1,e.line++,e.lineStartPos=i),(s===`
2
+ import{a as on,b as Yy,c as eT}from"./chunk-HEAI577S.js";import{a as as,b as uT,c as bT}from"./chunk-WQPQHX2N.js";import{a as sT}from"./chunk-YDWWGAEN.js";import{a as rT}from"./chunk-ZQPXBOPP.js";import{c as wp,d as Py,e as Oy}from"./chunk-U62SRHG3.js";import"./chunk-I3GV76MP.js";import{b as lT,e as dT,f as cT}from"./chunk-NICEDCLM.js";import{a as Dy,b as Ap,c as xo,d as qy,e as Hy,f as Uy,h as Mp}from"./chunk-AKM6CI7T.js";import{a as C,f as Xy,g as Jy,h as Zy,i as Oi,j as xu,l as tT,m as nT}from"./chunk-WROGTDVD.js";import{h as xp,o as Ly}from"./chunk-G7Q4HUMC.js";import{Kb as mT,Lb as fT,Mb as gT,Qf as yT,d as Ky,e as us,g as Wy,h as Ut,j as Su,k as Vy,l as Gy,m as zy,n as Qy,o as Wn,p as VR,q as iT,r as oT,v as aT}from"./chunk-G5QL7ZHU.js";import{a as Un,b as Fy,c as vu,f as $y,j as By,k as ls,m as Kn,n as Cu,o as wu,p as jy,q as Li}from"./chunk-K7X2ELVZ.js";import{a as TT}from"./chunk-VCAGMAY5.js";import{a as Ys,b as Xs,c as qn,d as wo,e as O,f as ut,g as bu}from"./chunk-CF3YFDG4.js";import{a as _y}from"./chunk-PRXIML4F.js";import"./chunk-PPIEC7ZM.js";import{a as Hn}from"./chunk-FKQFVOLR.js";import"./chunk-75PL5LYJ.js";import"./chunk-VYI2WX6B.js";import{a as Ip,b as WR}from"./chunk-S6GSNWAM.js";import{b as hT,c as pT}from"./chunk-NP5G53PV.js";import{a as Ny}from"./chunk-YPMJNO4T.js";import"./chunk-U5SHMJ7Y.js";import"./chunk-LOQ4VVEN.js";import"./chunk-76MC32T2.js";import"./chunk-PWQHCWDV.js";import"./chunk-II4JKPH5.js";import"./chunk-UOE7W4PK.js";import"./chunk-6UEFDGWN.js";import"./chunk-WFWSBUYD.js";import{a as jR}from"./chunk-L5D56V5D.js";import{d as Ry}from"./chunk-3MHUE4DM.js";import"./chunk-GMLXHJYG.js";import"./chunk-RDUENEEQ.js";import"./chunk-HQ2U4QVQ.js";import{d as ky}from"./chunk-EGP34E73.js";import{a as Sy,e as Cy,k as Ay,p as My,q as Ey}from"./chunk-52X742AN.js";import{Da as xy,f as wy}from"./chunk-EZ7Q2NM4.js";import"./chunk-3FETZOUF.js";import"./chunk-CWWDVX6C.js";import{h as Iy}from"./chunk-ZITT4GJK.js";import"./chunk-KTNHM6NK.js";import{a as by,c as me,e as vy}from"./chunk-D76SO2ME.js";var gl=me(li=>{"use strict";var x2=[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];li.REPLACEMENT_CHARACTER="\uFFFD";li.CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,RIGHT_SQUARE_BRACKET:93,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533};li.CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]};li.isSurrogate=function(n){return n>=55296&&n<=57343};li.isSurrogatePair=function(n){return n>=56320&&n<=57343};li.getSurrogatePairCodePoint=function(n,e){return(n-55296)*1024+9216+e};li.isControlCodePoint=function(n){return n!==32&&n!==10&&n!==13&&n!==9&&n!==12&&n>=1&&n<=31||n>=127&&n<=159};li.isUndefinedCodePoint=function(n){return n>=64976&&n<=65007||x2.indexOf(n)>-1}});var yl=me((ZV,$v)=>{"use strict";$v.exports={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"}});var qv=me((eG,Bv)=>{"use strict";var Sr=gl(),Rm=yl(),Is=Sr.CODE_POINTS,I2=65536,km=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=I2}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.lastCharPos){let t=this.html.charCodeAt(this.pos+1);if(Sr.isSurrogatePair(t))return this.pos++,this._addGap(),Sr.getSurrogatePairCodePoint(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Is.EOF;return this._err(Rm.surrogateInInputStream),e}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(e,t){this.html?this.html+=e:this.html=e,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,Is.EOF;let e=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&e===Is.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):e===Is.CARRIAGE_RETURN?(this.skipNextNewLine=!0,Is.LINE_FEED):(this.skipNextNewLine=!1,Sr.isSurrogate(e)&&(e=this._processSurrogate(e)),e>31&&e<127||e===Is.LINE_FEED||e===Is.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){Sr.isControlCodePoint(e)?this._err(Rm.controlCharacterInInputStream):Sr.isUndefinedCodePoint(e)&&this._err(Rm.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}};Bv.exports=km});var Uv=me((tG,Hv)=>{"use strict";Hv.exports=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204])});var ra=me((nG,q0)=>{"use strict";var A2=qv(),Le=gl(),Es=Uv(),N=yl(),x=Le.CODE_POINTS,As=Le.CODE_POINT_SEQUENCES,M2={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},O0=1,N0=2,D0=4,E2=O0|N0|D0,fe="DATA_STATE",wr="RCDATA_STATE",ia="RAWTEXT_STATE",hi="SCRIPT_DATA_STATE",F0="PLAINTEXT_STATE",Kv="TAG_OPEN_STATE",Wv="END_TAG_OPEN_STATE",Pm="TAG_NAME_STATE",jv="RCDATA_LESS_THAN_SIGN_STATE",Vv="RCDATA_END_TAG_OPEN_STATE",Gv="RCDATA_END_TAG_NAME_STATE",zv="RAWTEXT_LESS_THAN_SIGN_STATE",Qv="RAWTEXT_END_TAG_OPEN_STATE",Yv="RAWTEXT_END_TAG_NAME_STATE",Xv="SCRIPT_DATA_LESS_THAN_SIGN_STATE",Jv="SCRIPT_DATA_END_TAG_OPEN_STATE",Zv="SCRIPT_DATA_END_TAG_NAME_STATE",e0="SCRIPT_DATA_ESCAPE_START_STATE",t0="SCRIPT_DATA_ESCAPE_START_DASH_STATE",En="SCRIPT_DATA_ESCAPED_STATE",n0="SCRIPT_DATA_ESCAPED_DASH_STATE",_m="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",Tl="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",i0="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",s0="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",r0="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",di="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",o0="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",a0="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",bl="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",u0="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",Gn="BEFORE_ATTRIBUTE_NAME_STATE",vl="ATTRIBUTE_NAME_STATE",Lm="AFTER_ATTRIBUTE_NAME_STATE",Om="BEFORE_ATTRIBUTE_VALUE_STATE",Sl="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",Cl="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",wl="ATTRIBUTE_VALUE_UNQUOTED_STATE",Nm="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",Hi="SELF_CLOSING_START_TAG_STATE",Zo="BOGUS_COMMENT_STATE",l0="MARKUP_DECLARATION_OPEN_STATE",d0="COMMENT_START_STATE",c0="COMMENT_START_DASH_STATE",Ui="COMMENT_STATE",h0="COMMENT_LESS_THAN_SIGN_STATE",p0="COMMENT_LESS_THAN_SIGN_BANG_STATE",m0="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",f0="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",xl="COMMENT_END_DASH_STATE",Il="COMMENT_END_STATE",g0="COMMENT_END_BANG_STATE",y0="DOCTYPE_STATE",Al="BEFORE_DOCTYPE_NAME_STATE",Ml="DOCTYPE_NAME_STATE",T0="AFTER_DOCTYPE_NAME_STATE",b0="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",v0="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",Dm="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",Fm="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",$m="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",S0="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",C0="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",w0="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",ea="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",ta="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",Bm="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",ci="BOGUS_DOCTYPE_STATE",El="CDATA_SECTION_STATE",x0="CDATA_SECTION_BRACKET_STATE",I0="CDATA_SECTION_END_STATE",Cr="CHARACTER_REFERENCE_STATE",A0="NAMED_CHARACTER_REFERENCE_STATE",M0="AMBIGUOS_AMPERSAND_STATE",E0="NUMERIC_CHARACTER_REFERENCE_STATE",R0="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",k0="DECIMAL_CHARACTER_REFERENCE_START_STATE",P0="HEXADEMICAL_CHARACTER_REFERENCE_STATE",_0="DECIMAL_CHARACTER_REFERENCE_STATE",na="NUMERIC_CHARACTER_REFERENCE_END_STATE";function $e(n){return n===x.SPACE||n===x.LINE_FEED||n===x.TABULATION||n===x.FORM_FEED}function sa(n){return n>=x.DIGIT_0&&n<=x.DIGIT_9}function Rn(n){return n>=x.LATIN_CAPITAL_A&&n<=x.LATIN_CAPITAL_Z}function Ms(n){return n>=x.LATIN_SMALL_A&&n<=x.LATIN_SMALL_Z}function Wi(n){return Ms(n)||Rn(n)}function qm(n){return Wi(n)||sa(n)}function $0(n){return n>=x.LATIN_CAPITAL_A&&n<=x.LATIN_CAPITAL_F}function B0(n){return n>=x.LATIN_SMALL_A&&n<=x.LATIN_SMALL_F}function R2(n){return sa(n)||$0(n)||B0(n)}function Rl(n){return n+32}function Ge(n){return n<=65535?String.fromCharCode(n):(n-=65536,String.fromCharCode(n>>>10&1023|55296)+String.fromCharCode(56320|n&1023))}function Ki(n){return String.fromCharCode(Rl(n))}function L0(n,e){let t=Es[++n],i=++n,s=i+t-1;for(;i<=s;){let r=i+s>>>1,o=Es[r];if(o<e)i=r+1;else if(o>e)s=r-1;else return Es[r+t]}return-1}var Lt=class n{constructor(){this.preprocessor=new A2,this.tokenQueue=[],this.allowCDATA=!1,this.state=fe,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(e){this._consume(),this._err(e),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;let e=this._consume();this._ensureHibernation()||this[this.state](e)}return this.tokenQueue.shift()}write(e,t){this.active=!0,this.preprocessor.write(e,t)}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:n.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(e){this.state=e,this._unconsume()}_consumeSequenceIfMatch(e,t,i){let s=0,r=!0,o=e.length,a=0,u=t,l;for(;a<o;a++){if(a>0&&(u=this._consume(),s++),u===x.EOF){r=!1;break}if(l=e[a],u!==l&&(i||u!==Rl(l))){r=!1;break}}if(!r)for(;s--;)this._unconsume();return r}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==As.SCRIPT_STRING.length)return!1;for(let e=0;e<this.tempBuff.length;e++)if(this.tempBuff[e]!==As.SCRIPT_STRING[e])return!1;return!0}_createStartTagToken(){this.currentToken={type:n.START_TAG_TOKEN,tagName:"",selfClosing:!1,ackSelfClosing:!1,attrs:[]}}_createEndTagToken(){this.currentToken={type:n.END_TAG_TOKEN,tagName:"",selfClosing:!1,attrs:[]}}_createCommentToken(){this.currentToken={type:n.COMMENT_TOKEN,data:""}}_createDoctypeToken(e){this.currentToken={type:n.DOCTYPE_TOKEN,name:e,forceQuirks:!1,publicId:null,systemId:null}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t}}_createEOFToken(){this.currentToken={type:n.EOF_TOKEN}}_createAttr(e){this.currentAttr={name:e,value:""}}_leaveAttrName(e){n.getTokenAttr(this.currentToken,this.currentAttr.name)===null?this.currentToken.attrs.push(this.currentAttr):this._err(N.duplicateAttribute),this.state=e}_leaveAttrValue(e){this.state=e}_emitCurrentToken(){this._emitCurrentCharacterToken();let e=this.currentToken;this.currentToken=null,e.type===n.START_TAG_TOKEN?this.lastStartTagName=e.tagName:e.type===n.END_TAG_TOKEN&&(e.attrs.length>0&&this._err(N.endTagWithAttributes),e.selfClosing&&this._err(N.endTagWithTrailingSolidus)),this.tokenQueue.push(e)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(e,t){this.currentCharacterToken&&this.currentCharacterToken.type!==e&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=t:this._createCharacterToken(e,t)}_emitCodePoint(e){let t=n.CHARACTER_TOKEN;$e(e)?t=n.WHITESPACE_CHARACTER_TOKEN:e===x.NULL&&(t=n.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(t,Ge(e))}_emitSeveralCodePoints(e){for(let t=0;t<e.length;t++)this._emitCodePoint(e[t])}_emitChars(e){this._appendCharToCurrentCharacterToken(n.CHARACTER_TOKEN,e)}_matchNamedCharacterReference(e){let t=null,i=1,s=L0(0,e);for(this.tempBuff.push(e);s>-1;){let r=Es[s],o=r<E2;o&&r&O0&&(t=r&N0?[Es[++s],Es[++s]]:[Es[++s]],i=0);let u=this._consume();if(this.tempBuff.push(u),i++,u===x.EOF)break;o?s=r&D0?L0(s,u):-1:s=u===r?++s:-1}for(;i--;)this.tempBuff.pop(),this._unconsume();return t}_isCharacterReferenceInAttribute(){return this.returnState===Sl||this.returnState===Cl||this.returnState===wl}_isCharacterReferenceAttributeQuirk(e){if(!e&&this._isCharacterReferenceInAttribute()){let t=this._consume();return this._unconsume(),t===x.EQUALS_SIGN||qm(t)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let e=0;e<this.tempBuff.length;e++)this.currentAttr.value+=Ge(this.tempBuff[e]);else this._emitSeveralCodePoints(this.tempBuff);this.tempBuff=[]}[fe](e){this.preprocessor.dropParsedChunk(),e===x.LESS_THAN_SIGN?this.state=Kv:e===x.AMPERSAND?(this.returnState=fe,this.state=Cr):e===x.NULL?(this._err(N.unexpectedNullCharacter),this._emitCodePoint(e)):e===x.EOF?this._emitEOFToken():this._emitCodePoint(e)}[wr](e){this.preprocessor.dropParsedChunk(),e===x.AMPERSAND?(this.returnState=wr,this.state=Cr):e===x.LESS_THAN_SIGN?this.state=jv:e===x.NULL?(this._err(N.unexpectedNullCharacter),this._emitChars(Le.REPLACEMENT_CHARACTER)):e===x.EOF?this._emitEOFToken():this._emitCodePoint(e)}[ia](e){this.preprocessor.dropParsedChunk(),e===x.LESS_THAN_SIGN?this.state=zv:e===x.NULL?(this._err(N.unexpectedNullCharacter),this._emitChars(Le.REPLACEMENT_CHARACTER)):e===x.EOF?this._emitEOFToken():this._emitCodePoint(e)}[hi](e){this.preprocessor.dropParsedChunk(),e===x.LESS_THAN_SIGN?this.state=Xv:e===x.NULL?(this._err(N.unexpectedNullCharacter),this._emitChars(Le.REPLACEMENT_CHARACTER)):e===x.EOF?this._emitEOFToken():this._emitCodePoint(e)}[F0](e){this.preprocessor.dropParsedChunk(),e===x.NULL?(this._err(N.unexpectedNullCharacter),this._emitChars(Le.REPLACEMENT_CHARACTER)):e===x.EOF?this._emitEOFToken():this._emitCodePoint(e)}[Kv](e){e===x.EXCLAMATION_MARK?this.state=l0:e===x.SOLIDUS?this.state=Wv:Wi(e)?(this._createStartTagToken(),this._reconsumeInState(Pm)):e===x.QUESTION_MARK?(this._err(N.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(),this._reconsumeInState(Zo)):e===x.EOF?(this._err(N.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken()):(this._err(N.invalidFirstCharacterOfTagName),this._emitChars("<"),this._reconsumeInState(fe))}[Wv](e){Wi(e)?(this._createEndTagToken(),this._reconsumeInState(Pm)):e===x.GREATER_THAN_SIGN?(this._err(N.missingEndTagName),this.state=fe):e===x.EOF?(this._err(N.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken()):(this._err(N.invalidFirstCharacterOfTagName),this._createCommentToken(),this._reconsumeInState(Zo))}[Pm](e){$e(e)?this.state=Gn:e===x.SOLIDUS?this.state=Hi:e===x.GREATER_THAN_SIGN?(this.state=fe,this._emitCurrentToken()):Rn(e)?this.currentToken.tagName+=Ki(e):e===x.NULL?(this._err(N.unexpectedNullCharacter),this.currentToken.tagName+=Le.REPLACEMENT_CHARACTER):e===x.EOF?(this._err(N.eofInTag),this._emitEOFToken()):this.currentToken.tagName+=Ge(e)}[jv](e){e===x.SOLIDUS?(this.tempBuff=[],this.state=Vv):(this._emitChars("<"),this._reconsumeInState(wr))}[Vv](e){Wi(e)?(this._createEndTagToken(),this._reconsumeInState(Gv)):(this._emitChars("</"),this._reconsumeInState(wr))}[Gv](e){if(Rn(e))this.currentToken.tagName+=Ki(e),this.tempBuff.push(e);else if(Ms(e))this.currentToken.tagName+=Ge(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if($e(e)){this.state=Gn;return}if(e===x.SOLIDUS){this.state=Hi;return}if(e===x.GREATER_THAN_SIGN){this.state=fe,this._emitCurrentToken();return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(wr)}}[zv](e){e===x.SOLIDUS?(this.tempBuff=[],this.state=Qv):(this._emitChars("<"),this._reconsumeInState(ia))}[Qv](e){Wi(e)?(this._createEndTagToken(),this._reconsumeInState(Yv)):(this._emitChars("</"),this._reconsumeInState(ia))}[Yv](e){if(Rn(e))this.currentToken.tagName+=Ki(e),this.tempBuff.push(e);else if(Ms(e))this.currentToken.tagName+=Ge(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if($e(e)){this.state=Gn;return}if(e===x.SOLIDUS){this.state=Hi;return}if(e===x.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=fe;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(ia)}}[Xv](e){e===x.SOLIDUS?(this.tempBuff=[],this.state=Jv):e===x.EXCLAMATION_MARK?(this.state=e0,this._emitChars("<!")):(this._emitChars("<"),this._reconsumeInState(hi))}[Jv](e){Wi(e)?(this._createEndTagToken(),this._reconsumeInState(Zv)):(this._emitChars("</"),this._reconsumeInState(hi))}[Zv](e){if(Rn(e))this.currentToken.tagName+=Ki(e),this.tempBuff.push(e);else if(Ms(e))this.currentToken.tagName+=Ge(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if($e(e)){this.state=Gn;return}else if(e===x.SOLIDUS){this.state=Hi;return}else if(e===x.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=fe;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(hi)}}[e0](e){e===x.HYPHEN_MINUS?(this.state=t0,this._emitChars("-")):this._reconsumeInState(hi)}[t0](e){e===x.HYPHEN_MINUS?(this.state=_m,this._emitChars("-")):this._reconsumeInState(hi)}[En](e){e===x.HYPHEN_MINUS?(this.state=n0,this._emitChars("-")):e===x.LESS_THAN_SIGN?this.state=Tl:e===x.NULL?(this._err(N.unexpectedNullCharacter),this._emitChars(Le.REPLACEMENT_CHARACTER)):e===x.EOF?(this._err(N.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(e)}[n0](e){e===x.HYPHEN_MINUS?(this.state=_m,this._emitChars("-")):e===x.LESS_THAN_SIGN?this.state=Tl:e===x.NULL?(this._err(N.unexpectedNullCharacter),this.state=En,this._emitChars(Le.REPLACEMENT_CHARACTER)):e===x.EOF?(this._err(N.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=En,this._emitCodePoint(e))}[_m](e){e===x.HYPHEN_MINUS?this._emitChars("-"):e===x.LESS_THAN_SIGN?this.state=Tl:e===x.GREATER_THAN_SIGN?(this.state=hi,this._emitChars(">")):e===x.NULL?(this._err(N.unexpectedNullCharacter),this.state=En,this._emitChars(Le.REPLACEMENT_CHARACTER)):e===x.EOF?(this._err(N.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=En,this._emitCodePoint(e))}[Tl](e){e===x.SOLIDUS?(this.tempBuff=[],this.state=i0):Wi(e)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(r0)):(this._emitChars("<"),this._reconsumeInState(En))}[i0](e){Wi(e)?(this._createEndTagToken(),this._reconsumeInState(s0)):(this._emitChars("</"),this._reconsumeInState(En))}[s0](e){if(Rn(e))this.currentToken.tagName+=Ki(e),this.tempBuff.push(e);else if(Ms(e))this.currentToken.tagName+=Ge(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if($e(e)){this.state=Gn;return}if(e===x.SOLIDUS){this.state=Hi;return}if(e===x.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=fe;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(En)}}[r0](e){$e(e)||e===x.SOLIDUS||e===x.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?di:En,this._emitCodePoint(e)):Rn(e)?(this.tempBuff.push(Rl(e)),this._emitCodePoint(e)):Ms(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(En)}[di](e){e===x.HYPHEN_MINUS?(this.state=o0,this._emitChars("-")):e===x.LESS_THAN_SIGN?(this.state=bl,this._emitChars("<")):e===x.NULL?(this._err(N.unexpectedNullCharacter),this._emitChars(Le.REPLACEMENT_CHARACTER)):e===x.EOF?(this._err(N.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(e)}[o0](e){e===x.HYPHEN_MINUS?(this.state=a0,this._emitChars("-")):e===x.LESS_THAN_SIGN?(this.state=bl,this._emitChars("<")):e===x.NULL?(this._err(N.unexpectedNullCharacter),this.state=di,this._emitChars(Le.REPLACEMENT_CHARACTER)):e===x.EOF?(this._err(N.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=di,this._emitCodePoint(e))}[a0](e){e===x.HYPHEN_MINUS?this._emitChars("-"):e===x.LESS_THAN_SIGN?(this.state=bl,this._emitChars("<")):e===x.GREATER_THAN_SIGN?(this.state=hi,this._emitChars(">")):e===x.NULL?(this._err(N.unexpectedNullCharacter),this.state=di,this._emitChars(Le.REPLACEMENT_CHARACTER)):e===x.EOF?(this._err(N.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=di,this._emitCodePoint(e))}[bl](e){e===x.SOLIDUS?(this.tempBuff=[],this.state=u0,this._emitChars("/")):this._reconsumeInState(di)}[u0](e){$e(e)||e===x.SOLIDUS||e===x.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?En:di,this._emitCodePoint(e)):Rn(e)?(this.tempBuff.push(Rl(e)),this._emitCodePoint(e)):Ms(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(di)}[Gn](e){$e(e)||(e===x.SOLIDUS||e===x.GREATER_THAN_SIGN||e===x.EOF?this._reconsumeInState(Lm):e===x.EQUALS_SIGN?(this._err(N.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=vl):(this._createAttr(""),this._reconsumeInState(vl)))}[vl](e){$e(e)||e===x.SOLIDUS||e===x.GREATER_THAN_SIGN||e===x.EOF?(this._leaveAttrName(Lm),this._unconsume()):e===x.EQUALS_SIGN?this._leaveAttrName(Om):Rn(e)?this.currentAttr.name+=Ki(e):e===x.QUOTATION_MARK||e===x.APOSTROPHE||e===x.LESS_THAN_SIGN?(this._err(N.unexpectedCharacterInAttributeName),this.currentAttr.name+=Ge(e)):e===x.NULL?(this._err(N.unexpectedNullCharacter),this.currentAttr.name+=Le.REPLACEMENT_CHARACTER):this.currentAttr.name+=Ge(e)}[Lm](e){$e(e)||(e===x.SOLIDUS?this.state=Hi:e===x.EQUALS_SIGN?this.state=Om:e===x.GREATER_THAN_SIGN?(this.state=fe,this._emitCurrentToken()):e===x.EOF?(this._err(N.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(vl)))}[Om](e){$e(e)||(e===x.QUOTATION_MARK?this.state=Sl:e===x.APOSTROPHE?this.state=Cl:e===x.GREATER_THAN_SIGN?(this._err(N.missingAttributeValue),this.state=fe,this._emitCurrentToken()):this._reconsumeInState(wl))}[Sl](e){e===x.QUOTATION_MARK?this.state=Nm:e===x.AMPERSAND?(this.returnState=Sl,this.state=Cr):e===x.NULL?(this._err(N.unexpectedNullCharacter),this.currentAttr.value+=Le.REPLACEMENT_CHARACTER):e===x.EOF?(this._err(N.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Ge(e)}[Cl](e){e===x.APOSTROPHE?this.state=Nm:e===x.AMPERSAND?(this.returnState=Cl,this.state=Cr):e===x.NULL?(this._err(N.unexpectedNullCharacter),this.currentAttr.value+=Le.REPLACEMENT_CHARACTER):e===x.EOF?(this._err(N.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Ge(e)}[wl](e){$e(e)?this._leaveAttrValue(Gn):e===x.AMPERSAND?(this.returnState=wl,this.state=Cr):e===x.GREATER_THAN_SIGN?(this._leaveAttrValue(fe),this._emitCurrentToken()):e===x.NULL?(this._err(N.unexpectedNullCharacter),this.currentAttr.value+=Le.REPLACEMENT_CHARACTER):e===x.QUOTATION_MARK||e===x.APOSTROPHE||e===x.LESS_THAN_SIGN||e===x.EQUALS_SIGN||e===x.GRAVE_ACCENT?(this._err(N.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=Ge(e)):e===x.EOF?(this._err(N.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Ge(e)}[Nm](e){$e(e)?this._leaveAttrValue(Gn):e===x.SOLIDUS?this._leaveAttrValue(Hi):e===x.GREATER_THAN_SIGN?(this._leaveAttrValue(fe),this._emitCurrentToken()):e===x.EOF?(this._err(N.eofInTag),this._emitEOFToken()):(this._err(N.missingWhitespaceBetweenAttributes),this._reconsumeInState(Gn))}[Hi](e){e===x.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=fe,this._emitCurrentToken()):e===x.EOF?(this._err(N.eofInTag),this._emitEOFToken()):(this._err(N.unexpectedSolidusInTag),this._reconsumeInState(Gn))}[Zo](e){e===x.GREATER_THAN_SIGN?(this.state=fe,this._emitCurrentToken()):e===x.EOF?(this._emitCurrentToken(),this._emitEOFToken()):e===x.NULL?(this._err(N.unexpectedNullCharacter),this.currentToken.data+=Le.REPLACEMENT_CHARACTER):this.currentToken.data+=Ge(e)}[l0](e){this._consumeSequenceIfMatch(As.DASH_DASH_STRING,e,!0)?(this._createCommentToken(),this.state=d0):this._consumeSequenceIfMatch(As.DOCTYPE_STRING,e,!1)?this.state=y0:this._consumeSequenceIfMatch(As.CDATA_START_STRING,e,!0)?this.allowCDATA?this.state=El:(this._err(N.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=Zo):this._ensureHibernation()||(this._err(N.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(Zo))}[d0](e){e===x.HYPHEN_MINUS?this.state=c0:e===x.GREATER_THAN_SIGN?(this._err(N.abruptClosingOfEmptyComment),this.state=fe,this._emitCurrentToken()):this._reconsumeInState(Ui)}[c0](e){e===x.HYPHEN_MINUS?this.state=Il:e===x.GREATER_THAN_SIGN?(this._err(N.abruptClosingOfEmptyComment),this.state=fe,this._emitCurrentToken()):e===x.EOF?(this._err(N.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Ui))}[Ui](e){e===x.HYPHEN_MINUS?this.state=xl:e===x.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=h0):e===x.NULL?(this._err(N.unexpectedNullCharacter),this.currentToken.data+=Le.REPLACEMENT_CHARACTER):e===x.EOF?(this._err(N.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=Ge(e)}[h0](e){e===x.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=p0):e===x.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(Ui)}[p0](e){e===x.HYPHEN_MINUS?this.state=m0:this._reconsumeInState(Ui)}[m0](e){e===x.HYPHEN_MINUS?this.state=f0:this._reconsumeInState(xl)}[f0](e){e!==x.GREATER_THAN_SIGN&&e!==x.EOF&&this._err(N.nestedComment),this._reconsumeInState(Il)}[xl](e){e===x.HYPHEN_MINUS?this.state=Il:e===x.EOF?(this._err(N.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Ui))}[Il](e){e===x.GREATER_THAN_SIGN?(this.state=fe,this._emitCurrentToken()):e===x.EXCLAMATION_MARK?this.state=g0:e===x.HYPHEN_MINUS?this.currentToken.data+="-":e===x.EOF?(this._err(N.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(Ui))}[g0](e){e===x.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=xl):e===x.GREATER_THAN_SIGN?(this._err(N.incorrectlyClosedComment),this.state=fe,this._emitCurrentToken()):e===x.EOF?(this._err(N.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(Ui))}[y0](e){$e(e)?this.state=Al:e===x.GREATER_THAN_SIGN?this._reconsumeInState(Al):e===x.EOF?(this._err(N.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(N.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(Al))}[Al](e){$e(e)||(Rn(e)?(this._createDoctypeToken(Ki(e)),this.state=Ml):e===x.NULL?(this._err(N.unexpectedNullCharacter),this._createDoctypeToken(Le.REPLACEMENT_CHARACTER),this.state=Ml):e===x.GREATER_THAN_SIGN?(this._err(N.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=fe):e===x.EOF?(this._err(N.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(Ge(e)),this.state=Ml))}[Ml](e){$e(e)?this.state=T0:e===x.GREATER_THAN_SIGN?(this.state=fe,this._emitCurrentToken()):Rn(e)?this.currentToken.name+=Ki(e):e===x.NULL?(this._err(N.unexpectedNullCharacter),this.currentToken.name+=Le.REPLACEMENT_CHARACTER):e===x.EOF?(this._err(N.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=Ge(e)}[T0](e){$e(e)||(e===x.GREATER_THAN_SIGN?(this.state=fe,this._emitCurrentToken()):e===x.EOF?(this._err(N.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(As.PUBLIC_STRING,e,!1)?this.state=b0:this._consumeSequenceIfMatch(As.SYSTEM_STRING,e,!1)?this.state=C0:this._ensureHibernation()||(this._err(N.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(ci)))}[b0](e){$e(e)?this.state=v0:e===x.QUOTATION_MARK?(this._err(N.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=Dm):e===x.APOSTROPHE?(this._err(N.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=Fm):e===x.GREATER_THAN_SIGN?(this._err(N.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=fe,this._emitCurrentToken()):e===x.EOF?(this._err(N.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(N.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(ci))}[v0](e){$e(e)||(e===x.QUOTATION_MARK?(this.currentToken.publicId="",this.state=Dm):e===x.APOSTROPHE?(this.currentToken.publicId="",this.state=Fm):e===x.GREATER_THAN_SIGN?(this._err(N.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=fe,this._emitCurrentToken()):e===x.EOF?(this._err(N.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(N.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(ci)))}[Dm](e){e===x.QUOTATION_MARK?this.state=$m:e===x.NULL?(this._err(N.unexpectedNullCharacter),this.currentToken.publicId+=Le.REPLACEMENT_CHARACTER):e===x.GREATER_THAN_SIGN?(this._err(N.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=fe):e===x.EOF?(this._err(N.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Ge(e)}[Fm](e){e===x.APOSTROPHE?this.state=$m:e===x.NULL?(this._err(N.unexpectedNullCharacter),this.currentToken.publicId+=Le.REPLACEMENT_CHARACTER):e===x.GREATER_THAN_SIGN?(this._err(N.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=fe):e===x.EOF?(this._err(N.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Ge(e)}[$m](e){$e(e)?this.state=S0:e===x.GREATER_THAN_SIGN?(this.state=fe,this._emitCurrentToken()):e===x.QUOTATION_MARK?(this._err(N.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=ea):e===x.APOSTROPHE?(this._err(N.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=ta):e===x.EOF?(this._err(N.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(N.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(ci))}[S0](e){$e(e)||(e===x.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=fe):e===x.QUOTATION_MARK?(this.currentToken.systemId="",this.state=ea):e===x.APOSTROPHE?(this.currentToken.systemId="",this.state=ta):e===x.EOF?(this._err(N.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(N.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(ci)))}[C0](e){$e(e)?this.state=w0:e===x.QUOTATION_MARK?(this._err(N.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=ea):e===x.APOSTROPHE?(this._err(N.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=ta):e===x.GREATER_THAN_SIGN?(this._err(N.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=fe,this._emitCurrentToken()):e===x.EOF?(this._err(N.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(N.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(ci))}[w0](e){$e(e)||(e===x.QUOTATION_MARK?(this.currentToken.systemId="",this.state=ea):e===x.APOSTROPHE?(this.currentToken.systemId="",this.state=ta):e===x.GREATER_THAN_SIGN?(this._err(N.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=fe,this._emitCurrentToken()):e===x.EOF?(this._err(N.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(N.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(ci)))}[ea](e){e===x.QUOTATION_MARK?this.state=Bm:e===x.NULL?(this._err(N.unexpectedNullCharacter),this.currentToken.systemId+=Le.REPLACEMENT_CHARACTER):e===x.GREATER_THAN_SIGN?(this._err(N.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=fe):e===x.EOF?(this._err(N.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Ge(e)}[ta](e){e===x.APOSTROPHE?this.state=Bm:e===x.NULL?(this._err(N.unexpectedNullCharacter),this.currentToken.systemId+=Le.REPLACEMENT_CHARACTER):e===x.GREATER_THAN_SIGN?(this._err(N.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=fe):e===x.EOF?(this._err(N.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Ge(e)}[Bm](e){$e(e)||(e===x.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=fe):e===x.EOF?(this._err(N.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(N.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(ci)))}[ci](e){e===x.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=fe):e===x.NULL?this._err(N.unexpectedNullCharacter):e===x.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[El](e){e===x.RIGHT_SQUARE_BRACKET?this.state=x0:e===x.EOF?(this._err(N.eofInCdata),this._emitEOFToken()):this._emitCodePoint(e)}[x0](e){e===x.RIGHT_SQUARE_BRACKET?this.state=I0:(this._emitChars("]"),this._reconsumeInState(El))}[I0](e){e===x.GREATER_THAN_SIGN?this.state=fe:e===x.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(El))}[Cr](e){this.tempBuff=[x.AMPERSAND],e===x.NUMBER_SIGN?(this.tempBuff.push(e),this.state=E0):qm(e)?this._reconsumeInState(A0):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[A0](e){let t=this._matchNamedCharacterReference(e);if(this._ensureHibernation())this.tempBuff=[x.AMPERSAND];else if(t){let i=this.tempBuff[this.tempBuff.length-1]===x.SEMICOLON;this._isCharacterReferenceAttributeQuirk(i)||(i||this._errOnNextCodePoint(N.missingSemicolonAfterCharacterReference),this.tempBuff=t),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=M0}[M0](e){qm(e)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=Ge(e):this._emitCodePoint(e):(e===x.SEMICOLON&&this._err(N.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[E0](e){this.charRefCode=0,e===x.LATIN_SMALL_X||e===x.LATIN_CAPITAL_X?(this.tempBuff.push(e),this.state=R0):this._reconsumeInState(k0)}[R0](e){R2(e)?this._reconsumeInState(P0):(this._err(N.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[k0](e){sa(e)?this._reconsumeInState(_0):(this._err(N.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[P0](e){$0(e)?this.charRefCode=this.charRefCode*16+e-55:B0(e)?this.charRefCode=this.charRefCode*16+e-87:sa(e)?this.charRefCode=this.charRefCode*16+e-48:e===x.SEMICOLON?this.state=na:(this._err(N.missingSemicolonAfterCharacterReference),this._reconsumeInState(na))}[_0](e){sa(e)?this.charRefCode=this.charRefCode*10+e-48:e===x.SEMICOLON?this.state=na:(this._err(N.missingSemicolonAfterCharacterReference),this._reconsumeInState(na))}[na](){if(this.charRefCode===x.NULL)this._err(N.nullCharacterReference),this.charRefCode=x.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(N.characterReferenceOutsideUnicodeRange),this.charRefCode=x.REPLACEMENT_CHARACTER;else if(Le.isSurrogate(this.charRefCode))this._err(N.surrogateCharacterReference),this.charRefCode=x.REPLACEMENT_CHARACTER;else if(Le.isUndefinedCodePoint(this.charRefCode))this._err(N.noncharacterCharacterReference);else if(Le.isControlCodePoint(this.charRefCode)||this.charRefCode===x.CARRIAGE_RETURN){this._err(N.controlCharacterReference);let e=M2[this.charRefCode];e&&(this.charRefCode=e)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}};Lt.CHARACTER_TOKEN="CHARACTER_TOKEN";Lt.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN";Lt.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN";Lt.START_TAG_TOKEN="START_TAG_TOKEN";Lt.END_TAG_TOKEN="END_TAG_TOKEN";Lt.COMMENT_TOKEN="COMMENT_TOKEN";Lt.DOCTYPE_TOKEN="DOCTYPE_TOKEN";Lt.EOF_TOKEN="EOF_TOKEN";Lt.HIBERNATION_TOKEN="HIBERNATION_TOKEN";Lt.MODE={DATA:fe,RCDATA:wr,RAWTEXT:ia,SCRIPT_DATA:hi,PLAINTEXT:F0};Lt.getTokenAttr=function(n,e){for(let t=n.attrs.length-1;t>=0;t--)if(n.attrs[t].name===e)return n.attrs[t].value;return null};q0.exports=Lt});var ji=me(xr=>{"use strict";var Hm=xr.NAMESPACES={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/"};xr.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"};xr.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};var H=xr.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};xr.SPECIAL_ELEMENTS={[Hm.HTML]:{[H.ADDRESS]:!0,[H.APPLET]:!0,[H.AREA]:!0,[H.ARTICLE]:!0,[H.ASIDE]:!0,[H.BASE]:!0,[H.BASEFONT]:!0,[H.BGSOUND]:!0,[H.BLOCKQUOTE]:!0,[H.BODY]:!0,[H.BR]:!0,[H.BUTTON]:!0,[H.CAPTION]:!0,[H.CENTER]:!0,[H.COL]:!0,[H.COLGROUP]:!0,[H.DD]:!0,[H.DETAILS]:!0,[H.DIR]:!0,[H.DIV]:!0,[H.DL]:!0,[H.DT]:!0,[H.EMBED]:!0,[H.FIELDSET]:!0,[H.FIGCAPTION]:!0,[H.FIGURE]:!0,[H.FOOTER]:!0,[H.FORM]:!0,[H.FRAME]:!0,[H.FRAMESET]:!0,[H.H1]:!0,[H.H2]:!0,[H.H3]:!0,[H.H4]:!0,[H.H5]:!0,[H.H6]:!0,[H.HEAD]:!0,[H.HEADER]:!0,[H.HGROUP]:!0,[H.HR]:!0,[H.HTML]:!0,[H.IFRAME]:!0,[H.IMG]:!0,[H.INPUT]:!0,[H.LI]:!0,[H.LINK]:!0,[H.LISTING]:!0,[H.MAIN]:!0,[H.MARQUEE]:!0,[H.MENU]:!0,[H.META]:!0,[H.NAV]:!0,[H.NOEMBED]:!0,[H.NOFRAMES]:!0,[H.NOSCRIPT]:!0,[H.OBJECT]:!0,[H.OL]:!0,[H.P]:!0,[H.PARAM]:!0,[H.PLAINTEXT]:!0,[H.PRE]:!0,[H.SCRIPT]:!0,[H.SECTION]:!0,[H.SELECT]:!0,[H.SOURCE]:!0,[H.STYLE]:!0,[H.SUMMARY]:!0,[H.TABLE]:!0,[H.TBODY]:!0,[H.TD]:!0,[H.TEMPLATE]:!0,[H.TEXTAREA]:!0,[H.TFOOT]:!0,[H.TH]:!0,[H.THEAD]:!0,[H.TITLE]:!0,[H.TR]:!0,[H.TRACK]:!0,[H.UL]:!0,[H.WBR]:!0,[H.XMP]:!0},[Hm.MATHML]:{[H.MI]:!0,[H.MO]:!0,[H.MN]:!0,[H.MS]:!0,[H.MTEXT]:!0,[H.ANNOTATION_XML]:!0},[Hm.SVG]:{[H.TITLE]:!0,[H.FOREIGN_OBJECT]:!0,[H.DESC]:!0}}});var W0=me((sG,K0)=>{"use strict";var U0=ji(),K=U0.TAG_NAMES,Oe=U0.NAMESPACES;function H0(n){switch(n.length){case 1:return n===K.P;case 2:return n===K.RB||n===K.RP||n===K.RT||n===K.DD||n===K.DT||n===K.LI;case 3:return n===K.RTC;case 6:return n===K.OPTION;case 8:return n===K.OPTGROUP}return!1}function k2(n){switch(n.length){case 1:return n===K.P;case 2:return n===K.RB||n===K.RP||n===K.RT||n===K.DD||n===K.DT||n===K.LI||n===K.TD||n===K.TH||n===K.TR;case 3:return n===K.RTC;case 5:return n===K.TBODY||n===K.TFOOT||n===K.THEAD;case 6:return n===K.OPTION;case 7:return n===K.CAPTION;case 8:return n===K.OPTGROUP||n===K.COLGROUP}return!1}function kl(n,e){switch(n.length){case 2:if(n===K.TD||n===K.TH)return e===Oe.HTML;if(n===K.MI||n===K.MO||n===K.MN||n===K.MS)return e===Oe.MATHML;break;case 4:if(n===K.HTML)return e===Oe.HTML;if(n===K.DESC)return e===Oe.SVG;break;case 5:if(n===K.TABLE)return e===Oe.HTML;if(n===K.MTEXT)return e===Oe.MATHML;if(n===K.TITLE)return e===Oe.SVG;break;case 6:return(n===K.APPLET||n===K.OBJECT)&&e===Oe.HTML;case 7:return(n===K.CAPTION||n===K.MARQUEE)&&e===Oe.HTML;case 8:return n===K.TEMPLATE&&e===Oe.HTML;case 13:return n===K.FOREIGN_OBJECT&&e===Oe.SVG;case 14:return n===K.ANNOTATION_XML&&e===Oe.MATHML}return!1}var Um=class{constructor(e,t){this.stackTop=-1,this.items=[],this.current=e,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=t}_indexOf(e){let t=-1;for(let i=this.stackTop;i>=0;i--)if(this.items[i]===e){t=i;break}return t}_isInTemplate(){return this.currentTagName===K.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Oe.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(e){this.items[++this.stackTop]=e,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(e,t){let i=this._indexOf(e);this.items[i]=t,i===this.stackTop&&this._updateCurrentElement()}insertAfter(e,t){let i=this._indexOf(e)+1;this.items.splice(i,0,t),i===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(e){for(;this.stackTop>-1;){let t=this.currentTagName,i=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===e&&i===Oe.HTML)break}}popUntilElementPopped(e){for(;this.stackTop>-1;){let t=this.current;if(this.pop(),t===e)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){let e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===K.H1||e===K.H2||e===K.H3||e===K.H4||e===K.H5||e===K.H6&&t===Oe.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){let e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===K.TD||e===K.TH&&t===Oe.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==K.TABLE&&this.currentTagName!==K.TEMPLATE&&this.currentTagName!==K.HTML||this.treeAdapter.getNamespaceURI(this.current)!==Oe.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==K.TBODY&&this.currentTagName!==K.TFOOT&&this.currentTagName!==K.THEAD&&this.currentTagName!==K.TEMPLATE&&this.currentTagName!==K.HTML||this.treeAdapter.getNamespaceURI(this.current)!==Oe.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==K.TR&&this.currentTagName!==K.TEMPLATE&&this.currentTagName!==K.HTML||this.treeAdapter.getNamespaceURI(this.current)!==Oe.HTML;)this.pop()}remove(e){for(let t=this.stackTop;t>=0;t--)if(this.items[t]===e){this.items.splice(t,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){let e=this.items[1];return e&&this.treeAdapter.getTagName(e)===K.BODY?e:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e);return--t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.currentTagName===K.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){let i=this.treeAdapter.getTagName(this.items[t]),s=this.treeAdapter.getNamespaceURI(this.items[t]);if(i===e&&s===Oe.HTML)return!0;if(kl(i,s))return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.treeAdapter.getTagName(this.items[e]),i=this.treeAdapter.getNamespaceURI(this.items[e]);if((t===K.H1||t===K.H2||t===K.H3||t===K.H4||t===K.H5||t===K.H6)&&i===Oe.HTML)return!0;if(kl(t,i))return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){let i=this.treeAdapter.getTagName(this.items[t]),s=this.treeAdapter.getNamespaceURI(this.items[t]);if(i===e&&s===Oe.HTML)return!0;if((i===K.UL||i===K.OL)&&s===Oe.HTML||kl(i,s))return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){let i=this.treeAdapter.getTagName(this.items[t]),s=this.treeAdapter.getNamespaceURI(this.items[t]);if(i===e&&s===Oe.HTML)return!0;if(i===K.BUTTON&&s===Oe.HTML||kl(i,s))return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){let i=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===Oe.HTML){if(i===e)return!0;if(i===K.TABLE||i===K.TEMPLATE||i===K.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){let t=this.treeAdapter.getTagName(this.items[e]);if(this.treeAdapter.getNamespaceURI(this.items[e])===Oe.HTML){if(t===K.TBODY||t===K.THEAD||t===K.TFOOT)return!0;if(t===K.TABLE||t===K.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){let i=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===Oe.HTML){if(i===e)return!0;if(i!==K.OPTION&&i!==K.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;H0(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;k2(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;H0(this.currentTagName)&&this.currentTagName!==e;)this.pop()}};K0.exports=Um});var V0=me((rG,j0)=>{"use strict";var oa=class n{constructor(e){this.length=0,this.entries=[],this.treeAdapter=e,this.bookmark=null}_getNoahArkConditionCandidates(e){let t=[];if(this.length>=3){let i=this.treeAdapter.getAttrList(e).length,s=this.treeAdapter.getTagName(e),r=this.treeAdapter.getNamespaceURI(e);for(let o=this.length-1;o>=0;o--){let a=this.entries[o];if(a.type===n.MARKER_ENTRY)break;let u=a.element,l=this.treeAdapter.getAttrList(u);this.treeAdapter.getTagName(u)===s&&this.treeAdapter.getNamespaceURI(u)===r&&l.length===i&&t.push({idx:o,attrs:l})}}return t.length<3?[]:t}_ensureNoahArkCondition(e){let t=this._getNoahArkConditionCandidates(e),i=t.length;if(i){let s=this.treeAdapter.getAttrList(e),r=s.length,o=Object.create(null);for(let a=0;a<r;a++){let u=s[a];o[u.name]=u.value}for(let a=0;a<r;a++)for(let u=0;u<i;u++){let l=t[u].attrs[a];if(o[l.name]!==l.value&&(t.splice(u,1),i--),t.length<3)return}for(let a=i-1;a>=2;a--)this.entries.splice(t[a].idx,1),this.length--}}insertMarker(){this.entries.push({type:n.MARKER_ENTRY}),this.length++}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.push({type:n.ELEMENT_ENTRY,element:e,token:t}),this.length++}insertElementAfterBookmark(e,t){let i=this.length-1;for(;i>=0&&this.entries[i]!==this.bookmark;i--);this.entries.splice(i+1,0,{type:n.ELEMENT_ENTRY,element:e,token:t}),this.length++}removeEntry(e){for(let t=this.length-1;t>=0;t--)if(this.entries[t]===e){this.entries.splice(t,1),this.length--;break}}clearToLastMarker(){for(;this.length;){let e=this.entries.pop();if(this.length--,e.type===n.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(e){for(let t=this.length-1;t>=0;t--){let i=this.entries[t];if(i.type===n.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(i.element)===e)return i}return null}getElementEntry(e){for(let t=this.length-1;t>=0;t--){let i=this.entries[t];if(i.type===n.ELEMENT_ENTRY&&i.element===e)return i}return null}};oa.MARKER_ENTRY="MARKER_ENTRY";oa.ELEMENT_ENTRY="ELEMENT_ENTRY";j0.exports=oa});var zn=me((oG,G0)=>{"use strict";var Pl=class{constructor(e){let t={},i=this._getOverriddenMethods(this,t);for(let s of Object.keys(i))typeof i[s]=="function"&&(t[s]=e[s],e[s]=i[s])}_getOverriddenMethods(){throw new Error("Not implemented")}};Pl.install=function(n,e,t){n.__mixins||(n.__mixins=[]);for(let s=0;s<n.__mixins.length;s++)if(n.__mixins[s].constructor===e)return n.__mixins[s];let i=new e(n,t);return n.__mixins.push(i),i};G0.exports=Pl});var Wm=me((aG,z0)=>{"use strict";var P2=zn(),Km=class extends P2{constructor(e){super(e),this.preprocessor=e,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.offset=0,this.col=0,this.line=1}_getOverriddenMethods(e,t){return{advance(){let i=this.pos+1,s=this.html[i];return e.isEol&&(e.isEol=!1,e.line++,e.lineStartPos=i),(s===`
3
3
  `||s==="\r"&&this.html[i+1]!==`
4
4
  `)&&(e.isEol=!0),e.col=i-e.lineStartPos+1,e.offset=e.droppedBufferSize+i,t.advance.call(this)},retreat(){t.retreat.call(this),e.isEol=!1,e.col=this.pos-e.lineStartPos+1},dropParsedChunk(){let i=this.pos;t.dropParsedChunk.call(this);let s=i-this.pos;e.lineStartPos-=s,e.droppedBufferSize+=s,e.offset=e.droppedBufferSize+this.pos}}}};z0.exports=Km});var Gm=me((uG,Y0)=>{"use strict";var Q0=zn(),jm=ra(),_2=Wm(),Vm=class extends Q0{constructor(e){super(e),this.tokenizer=e,this.posTracker=Q0.install(e.preprocessor,_2),this.currentAttrLocation=null,this.ctLoc=null}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1}}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;let e=this.tokenizer.currentToken,t=this.tokenizer.currentAttr;e.location.attrs||(e.location.attrs=Object.create(null)),e.location.attrs[t.name]=this.currentAttrLocation}_getOverriddenMethods(e,t){let i={_createStartTagToken(){t._createStartTagToken.call(this),this.currentToken.location=e.ctLoc},_createEndTagToken(){t._createEndTagToken.call(this),this.currentToken.location=e.ctLoc},_createCommentToken(){t._createCommentToken.call(this),this.currentToken.location=e.ctLoc},_createDoctypeToken(s){t._createDoctypeToken.call(this,s),this.currentToken.location=e.ctLoc},_createCharacterToken(s,r){t._createCharacterToken.call(this,s,r),this.currentCharacterToken.location=e.ctLoc},_createEOFToken(){t._createEOFToken.call(this),this.currentToken.location=e._getCurrentLocation()},_createAttr(s){t._createAttr.call(this,s),e.currentAttrLocation=e._getCurrentLocation()},_leaveAttrName(s){t._leaveAttrName.call(this,s),e._attachCurrentAttrLocationInfo()},_leaveAttrValue(s){t._leaveAttrValue.call(this,s),e._attachCurrentAttrLocationInfo()},_emitCurrentToken(){let s=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=s.startLine,this.currentCharacterToken.location.endCol=s.startCol,this.currentCharacterToken.location.endOffset=s.startOffset),this.currentToken.type===jm.EOF_TOKEN?(s.endLine=s.startLine,s.endCol=s.startCol,s.endOffset=s.startOffset):(s.endLine=e.posTracker.line,s.endCol=e.posTracker.col+1,s.endOffset=e.posTracker.offset+1),t._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){let s=this.currentCharacterToken&&this.currentCharacterToken.location;s&&s.endOffset===-1&&(s.endLine=e.posTracker.line,s.endCol=e.posTracker.col,s.endOffset=e.posTracker.offset),t._emitCurrentCharacterToken.call(this)}};return Object.keys(jm.MODE).forEach(s=>{let r=jm.MODE[s];i[r]=function(o){e.ctLoc=e._getCurrentLocation(),t[r].call(this,o)}}),i}};Y0.exports=Vm});var J0=me((lG,X0)=>{"use strict";var L2=zn(),zm=class extends L2{constructor(e,t){super(e),this.onItemPop=t.onItemPop}_getOverriddenMethods(e,t){return{pop(){e.onItemPop(this.current),t.pop.call(this)},popAllUpToHtmlElement(){for(let i=this.stackTop;i>0;i--)e.onItemPop(this.items[i]);t.popAllUpToHtmlElement.call(this)},remove(i){e.onItemPop(this.current),t.remove.call(this,i)}}}};X0.exports=zm});var tS=me((dG,eS)=>{"use strict";var Qm=zn(),Z0=ra(),O2=Gm(),N2=J0(),D2=ji(),Ym=D2.TAG_NAMES,Xm=class extends Qm{constructor(e){super(e),this.parser=e,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(e){let t=null;this.lastStartTagToken&&(t=Object.assign({},this.lastStartTagToken.location),t.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(e,t)}_setEndLocation(e,t){let i=this.treeAdapter.getNodeSourceCodeLocation(e);if(i&&t.location){let s=t.location,r=this.treeAdapter.getTagName(e);t.type===Z0.END_TAG_TOKEN&&r===t.tagName?(i.endTag=Object.assign({},s),i.endLine=s.endLine,i.endCol=s.endCol,i.endOffset=s.endOffset):(i.endLine=s.startLine,i.endCol=s.startCol,i.endOffset=s.startOffset)}}_getOverriddenMethods(e,t){return{_bootstrap(i,s){t._bootstrap.call(this,i,s),e.lastStartTagToken=null,e.lastFosterParentingLocation=null,e.currentToken=null;let r=Qm.install(this.tokenizer,O2);e.posTracker=r.posTracker,Qm.install(this.openElements,N2,{onItemPop:function(o){e._setEndLocation(o,e.currentToken)}})},_runParsingLoop(i){t._runParsingLoop.call(this,i);for(let s=this.openElements.stackTop;s>=0;s--)e._setEndLocation(this.openElements.items[s],e.currentToken)},_processTokenInForeignContent(i){e.currentToken=i,t._processTokenInForeignContent.call(this,i)},_processToken(i){if(e.currentToken=i,t._processToken.call(this,i),i.type===Z0.END_TAG_TOKEN&&(i.tagName===Ym.HTML||i.tagName===Ym.BODY&&this.openElements.hasInScope(Ym.BODY)))for(let r=this.openElements.stackTop;r>=0;r--){let o=this.openElements.items[r];if(this.treeAdapter.getTagName(o)===i.tagName){e._setEndLocation(o,i);break}}},_setDocumentType(i){t._setDocumentType.call(this,i);let s=this.treeAdapter.getChildNodes(this.document),r=s.length;for(let o=0;o<r;o++){let a=s[o];if(this.treeAdapter.isDocumentTypeNode(a)){this.treeAdapter.setNodeSourceCodeLocation(a,i.location);break}}},_attachElementToTree(i){e._setStartLocation(i),e.lastStartTagToken=null,t._attachElementToTree.call(this,i)},_appendElement(i,s){e.lastStartTagToken=i,t._appendElement.call(this,i,s)},_insertElement(i,s){e.lastStartTagToken=i,t._insertElement.call(this,i,s)},_insertTemplate(i){e.lastStartTagToken=i,t._insertTemplate.call(this,i);let s=this.treeAdapter.getTemplateContent(this.openElements.current);this.treeAdapter.setNodeSourceCodeLocation(s,null)},_insertFakeRootElement(){t._insertFakeRootElement.call(this),this.treeAdapter.setNodeSourceCodeLocation(this.openElements.current,null)},_appendCommentNode(i,s){t._appendCommentNode.call(this,i,s);let r=this.treeAdapter.getChildNodes(s),o=r[r.length-1];this.treeAdapter.setNodeSourceCodeLocation(o,i.location)},_findFosterParentingLocation(){return e.lastFosterParentingLocation=t._findFosterParentingLocation.call(this),e.lastFosterParentingLocation},_insertCharacters(i){t._insertCharacters.call(this,i);let s=this._shouldFosterParentOnInsertion(),r=s&&e.lastFosterParentingLocation.parent||this.openElements.currentTmplContent||this.openElements.current,o=this.treeAdapter.getChildNodes(r),a=s&&e.lastFosterParentingLocation.beforeElement?o.indexOf(e.lastFosterParentingLocation.beforeElement)-1:o.length-1,u=o[a],l=this.treeAdapter.getNodeSourceCodeLocation(u);l?(l.endLine=i.location.endLine,l.endCol=i.location.endCol,l.endOffset=i.location.endOffset):this.treeAdapter.setNodeSourceCodeLocation(u,i.location)}}}};eS.exports=Xm});var _l=me((cG,nS)=>{"use strict";var F2=zn(),Jm=class extends F2{constructor(e,t){super(e),this.posTracker=null,this.onParseError=t.onParseError}_setErrorLocation(e){e.startLine=e.endLine=this.posTracker.line,e.startCol=e.endCol=this.posTracker.col,e.startOffset=e.endOffset=this.posTracker.offset}_reportError(e){let t={code:e,startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};this._setErrorLocation(t),this.onParseError(t)}_getOverriddenMethods(e){return{_err(t){e._reportError(t)}}}};nS.exports=Jm});var sS=me((hG,iS)=>{"use strict";var $2=_l(),B2=Wm(),q2=zn(),Zm=class extends $2{constructor(e,t){super(e,t),this.posTracker=q2.install(e,B2),this.lastErrOffset=-1}_reportError(e){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(e))}};iS.exports=Zm});var oS=me((pG,rS)=>{"use strict";var H2=_l(),U2=sS(),K2=zn(),ef=class extends H2{constructor(e,t){super(e,t);let i=K2.install(e.preprocessor,U2,t);this.posTracker=i.posTracker}};rS.exports=ef});var lS=me((mG,uS)=>{"use strict";var W2=_l(),j2=oS(),V2=Gm(),aS=zn(),tf=class extends W2{constructor(e,t){super(e,t),this.opts=t,this.ctLoc=null,this.locBeforeToken=!1}_setErrorLocation(e){this.ctLoc&&(e.startLine=this.ctLoc.startLine,e.startCol=this.ctLoc.startCol,e.startOffset=this.ctLoc.startOffset,e.endLine=this.locBeforeToken?this.ctLoc.startLine:this.ctLoc.endLine,e.endCol=this.locBeforeToken?this.ctLoc.startCol:this.ctLoc.endCol,e.endOffset=this.locBeforeToken?this.ctLoc.startOffset:this.ctLoc.endOffset)}_getOverriddenMethods(e,t){return{_bootstrap(i,s){t._bootstrap.call(this,i,s),aS.install(this.tokenizer,j2,e.opts),aS.install(this.tokenizer,V2)},_processInputToken(i){e.ctLoc=i.location,t._processInputToken.call(this,i)},_err(i,s){e.locBeforeToken=s&&s.beforeToken,e._reportError(i)}}}};uS.exports=tf});var nf=me(we=>{"use strict";var{DOCUMENT_MODE:G2}=ji();we.createDocument=function(){return{nodeName:"#document",mode:G2.NO_QUIRKS,childNodes:[]}};we.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}};we.createElement=function(n,e,t){return{nodeName:n,tagName:n,attrs:t,namespaceURI:e,childNodes:[],parentNode:null}};we.createCommentNode=function(n){return{nodeName:"#comment",data:n,parentNode:null}};var dS=function(n){return{nodeName:"#text",value:n,parentNode:null}},cS=we.appendChild=function(n,e){n.childNodes.push(e),e.parentNode=n},z2=we.insertBefore=function(n,e,t){let i=n.childNodes.indexOf(t);n.childNodes.splice(i,0,e),e.parentNode=n};we.setTemplateContent=function(n,e){n.content=e};we.getTemplateContent=function(n){return n.content};we.setDocumentType=function(n,e,t,i){let s=null;for(let r=0;r<n.childNodes.length;r++)if(n.childNodes[r].nodeName==="#documentType"){s=n.childNodes[r];break}s?(s.name=e,s.publicId=t,s.systemId=i):cS(n,{nodeName:"#documentType",name:e,publicId:t,systemId:i})};we.setDocumentMode=function(n,e){n.mode=e};we.getDocumentMode=function(n){return n.mode};we.detachNode=function(n){if(n.parentNode){let e=n.parentNode.childNodes.indexOf(n);n.parentNode.childNodes.splice(e,1),n.parentNode=null}};we.insertText=function(n,e){if(n.childNodes.length){let t=n.childNodes[n.childNodes.length-1];if(t.nodeName==="#text"){t.value+=e;return}}cS(n,dS(e))};we.insertTextBefore=function(n,e,t){let i=n.childNodes[n.childNodes.indexOf(t)-1];i&&i.nodeName==="#text"?i.value+=e:z2(n,dS(e),t)};we.adoptAttributes=function(n,e){let t=[];for(let i=0;i<n.attrs.length;i++)t.push(n.attrs[i].name);for(let i=0;i<e.length;i++)t.indexOf(e[i].name)===-1&&n.attrs.push(e[i])};we.getFirstChild=function(n){return n.childNodes[0]};we.getChildNodes=function(n){return n.childNodes};we.getParentNode=function(n){return n.parentNode};we.getAttrList=function(n){return n.attrs};we.getTagName=function(n){return n.tagName};we.getNamespaceURI=function(n){return n.namespaceURI};we.getTextNodeContent=function(n){return n.value};we.getCommentNodeContent=function(n){return n.data};we.getDocumentTypeNodeName=function(n){return n.name};we.getDocumentTypeNodePublicId=function(n){return n.publicId};we.getDocumentTypeNodeSystemId=function(n){return n.systemId};we.isTextNode=function(n){return n.nodeName==="#text"};we.isCommentNode=function(n){return n.nodeName==="#comment"};we.isDocumentTypeNode=function(n){return n.nodeName==="#documentType"};we.isElementNode=function(n){return!!n.tagName};we.setNodeSourceCodeLocation=function(n,e){n.sourceCodeLocation=e};we.getNodeSourceCodeLocation=function(n){return n.sourceCodeLocation}});var sf=me((gG,hS)=>{"use strict";hS.exports=function(e,t){return t=t||Object.create(null),[e,t].reduce((i,s)=>(Object.keys(s).forEach(r=>{i[r]=s[r]}),i),Object.create(null))}});var rf=me(Ll=>{"use strict";var{DOCUMENT_MODE:Ir}=ji(),fS="html",Q2="about:legacy-compat",Y2="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",gS=["+//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//"],X2=gS.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),J2=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],yS=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Z2=yS.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function pS(n){let e=n.indexOf('"')!==-1?"'":'"';return e+n+e}function mS(n,e){for(let t=0;t<e.length;t++)if(n.indexOf(e[t])===0)return!0;return!1}Ll.isConforming=function(n){return n.name===fS&&n.publicId===null&&(n.systemId===null||n.systemId===Q2)};Ll.getDocumentMode=function(n){if(n.name!==fS)return Ir.QUIRKS;let e=n.systemId;if(e&&e.toLowerCase()===Y2)return Ir.QUIRKS;let t=n.publicId;if(t!==null){if(t=t.toLowerCase(),J2.indexOf(t)>-1)return Ir.QUIRKS;let i=e===null?X2:gS;if(mS(t,i))return Ir.QUIRKS;if(i=e===null?yS:Z2,mS(t,i))return Ir.LIMITED_QUIRKS}return Ir.NO_QUIRKS};Ll.serializeContent=function(n,e,t){let i="!DOCTYPE ";return n&&(i+=n),e?i+=" PUBLIC "+pS(e):t&&(i+=" SYSTEM"),t!==null&&(i+=" "+pS(t)),i}});var bS=me(Vi=>{"use strict";var of=ra(),af=ji(),Z=af.TAG_NAMES,lt=af.NAMESPACES,Ol=af.ATTRS,TS={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},e4="definitionurl",t4="definitionURL",n4={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},i4={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:lt.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:lt.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:lt.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:lt.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:lt.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:lt.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:lt.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:lt.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:lt.XML},"xml:space":{prefix:"xml",name:"space",namespace:lt.XML},xmlns:{prefix:"",name:"xmlns",namespace:lt.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:lt.XMLNS}},s4=Vi.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},r4={[Z.B]:!0,[Z.BIG]:!0,[Z.BLOCKQUOTE]:!0,[Z.BODY]:!0,[Z.BR]:!0,[Z.CENTER]:!0,[Z.CODE]:!0,[Z.DD]:!0,[Z.DIV]:!0,[Z.DL]:!0,[Z.DT]:!0,[Z.EM]:!0,[Z.EMBED]:!0,[Z.H1]:!0,[Z.H2]:!0,[Z.H3]:!0,[Z.H4]:!0,[Z.H5]:!0,[Z.H6]:!0,[Z.HEAD]:!0,[Z.HR]:!0,[Z.I]:!0,[Z.IMG]:!0,[Z.LI]:!0,[Z.LISTING]:!0,[Z.MENU]:!0,[Z.META]:!0,[Z.NOBR]:!0,[Z.OL]:!0,[Z.P]:!0,[Z.PRE]:!0,[Z.RUBY]:!0,[Z.S]:!0,[Z.SMALL]:!0,[Z.SPAN]:!0,[Z.STRONG]:!0,[Z.STRIKE]:!0,[Z.SUB]:!0,[Z.SUP]:!0,[Z.TABLE]:!0,[Z.TT]:!0,[Z.U]:!0,[Z.UL]:!0,[Z.VAR]:!0};Vi.causesExit=function(n){let e=n.tagName;return e===Z.FONT&&(of.getTokenAttr(n,Ol.COLOR)!==null||of.getTokenAttr(n,Ol.SIZE)!==null||of.getTokenAttr(n,Ol.FACE)!==null)?!0:r4[e]};Vi.adjustTokenMathMLAttrs=function(n){for(let e=0;e<n.attrs.length;e++)if(n.attrs[e].name===e4){n.attrs[e].name=t4;break}};Vi.adjustTokenSVGAttrs=function(n){for(let e=0;e<n.attrs.length;e++){let t=n4[n.attrs[e].name];t&&(n.attrs[e].name=t)}};Vi.adjustTokenXMLAttrs=function(n){for(let e=0;e<n.attrs.length;e++){let t=i4[n.attrs[e].name];t&&(n.attrs[e].prefix=t.prefix,n.attrs[e].name=t.name,n.attrs[e].namespace=t.namespace)}};Vi.adjustTokenSVGTagName=function(n){let e=s4[n.tagName];e&&(n.tagName=e)};function o4(n,e){return e===lt.MATHML&&(n===Z.MI||n===Z.MO||n===Z.MN||n===Z.MS||n===Z.MTEXT)}function a4(n,e,t){if(e===lt.MATHML&&n===Z.ANNOTATION_XML){for(let i=0;i<t.length;i++)if(t[i].name===Ol.ENCODING){let s=t[i].value.toLowerCase();return s===TS.TEXT_HTML||s===TS.APPLICATION_XML}}return e===lt.SVG&&(n===Z.FOREIGN_OBJECT||n===Z.DESC||n===Z.TITLE)}Vi.isIntegrationPoint=function(n,e,t,i){return!!((!i||i===lt.HTML)&&a4(n,e,t)||(!i||i===lt.MATHML)&&o4(n,e))}});var WS=me((bG,KS)=>{"use strict";var A=ra(),u4=W0(),vS=V0(),l4=tS(),d4=lS(),SS=zn(),c4=nf(),h4=sf(),CS=rf(),Qn=bS(),dt=yl(),p4=gl(),ks=ji(),g=ks.TAG_NAMES,z=ks.NAMESPACES,_S=ks.ATTRS,m4={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:c4},LS="hidden",f4=8,g4=3,OS="INITIAL_MODE",lf="BEFORE_HTML_MODE",Ul="BEFORE_HEAD_MODE",Er="IN_HEAD_MODE",NS="IN_HEAD_NO_SCRIPT_MODE",Kl="AFTER_HEAD_MODE",Yn="IN_BODY_MODE",$l="TEXT_MODE",Tt="IN_TABLE_MODE",DS="IN_TABLE_TEXT_MODE",Wl="IN_CAPTION_MODE",fa="IN_COLUMN_GROUP_MODE",gn="IN_TABLE_BODY_MODE",gi="IN_ROW_MODE",jl="IN_CELL_MODE",df="IN_SELECT_MODE",cf="IN_SELECT_IN_TABLE_MODE",Bl="IN_TEMPLATE_MODE",hf="AFTER_BODY_MODE",Vl="IN_FRAMESET_MODE",FS="AFTER_FRAMESET_MODE",$S="AFTER_AFTER_BODY_MODE",BS="AFTER_AFTER_FRAMESET_MODE",y4={[g.TR]:gi,[g.TBODY]:gn,[g.THEAD]:gn,[g.TFOOT]:gn,[g.CAPTION]:Wl,[g.COLGROUP]:fa,[g.TABLE]:Tt,[g.BODY]:Yn,[g.FRAMESET]:Vl},T4={[g.CAPTION]:Tt,[g.COLGROUP]:Tt,[g.TBODY]:Tt,[g.TFOOT]:Tt,[g.THEAD]:Tt,[g.COL]:fa,[g.TR]:gn,[g.TD]:gi,[g.TH]:gi},wS={[OS]:{[A.CHARACTER_TOKEN]:ua,[A.NULL_CHARACTER_TOKEN]:ua,[A.WHITESPACE_CHARACTER_TOKEN]:ye,[A.COMMENT_TOKEN]:et,[A.DOCTYPE_TOKEN]:A4,[A.START_TAG_TOKEN]:ua,[A.END_TAG_TOKEN]:ua,[A.EOF_TOKEN]:ua},[lf]:{[A.CHARACTER_TOKEN]:da,[A.NULL_CHARACTER_TOKEN]:da,[A.WHITESPACE_CHARACTER_TOKEN]:ye,[A.COMMENT_TOKEN]:et,[A.DOCTYPE_TOKEN]:ye,[A.START_TAG_TOKEN]:M4,[A.END_TAG_TOKEN]:E4,[A.EOF_TOKEN]:da},[Ul]:{[A.CHARACTER_TOKEN]:ca,[A.NULL_CHARACTER_TOKEN]:ca,[A.WHITESPACE_CHARACTER_TOKEN]:ye,[A.COMMENT_TOKEN]:et,[A.DOCTYPE_TOKEN]:Nl,[A.START_TAG_TOKEN]:R4,[A.END_TAG_TOKEN]:k4,[A.EOF_TOKEN]:ca},[Er]:{[A.CHARACTER_TOKEN]:ha,[A.NULL_CHARACTER_TOKEN]:ha,[A.WHITESPACE_CHARACTER_TOKEN]:Ot,[A.COMMENT_TOKEN]:et,[A.DOCTYPE_TOKEN]:Nl,[A.START_TAG_TOKEN]:st,[A.END_TAG_TOKEN]:Ps,[A.EOF_TOKEN]:ha},[NS]:{[A.CHARACTER_TOKEN]:pa,[A.NULL_CHARACTER_TOKEN]:pa,[A.WHITESPACE_CHARACTER_TOKEN]:Ot,[A.COMMENT_TOKEN]:et,[A.DOCTYPE_TOKEN]:Nl,[A.START_TAG_TOKEN]:P4,[A.END_TAG_TOKEN]:_4,[A.EOF_TOKEN]:pa},[Kl]:{[A.CHARACTER_TOKEN]:ma,[A.NULL_CHARACTER_TOKEN]:ma,[A.WHITESPACE_CHARACTER_TOKEN]:Ot,[A.COMMENT_TOKEN]:et,[A.DOCTYPE_TOKEN]:Nl,[A.START_TAG_TOKEN]:L4,[A.END_TAG_TOKEN]:O4,[A.EOF_TOKEN]:ma},[Yn]:{[A.CHARACTER_TOKEN]:Dl,[A.NULL_CHARACTER_TOKEN]:ye,[A.WHITESPACE_CHARACTER_TOKEN]:Rs,[A.COMMENT_TOKEN]:et,[A.DOCTYPE_TOKEN]:ye,[A.START_TAG_TOKEN]:Nt,[A.END_TAG_TOKEN]:pf,[A.EOF_TOKEN]:mi},[$l]:{[A.CHARACTER_TOKEN]:Ot,[A.NULL_CHARACTER_TOKEN]:Ot,[A.WHITESPACE_CHARACTER_TOKEN]:Ot,[A.COMMENT_TOKEN]:ye,[A.DOCTYPE_TOKEN]:ye,[A.START_TAG_TOKEN]:ye,[A.END_TAG_TOKEN]:c_,[A.EOF_TOKEN]:h_},[Tt]:{[A.CHARACTER_TOKEN]:fi,[A.NULL_CHARACTER_TOKEN]:fi,[A.WHITESPACE_CHARACTER_TOKEN]:fi,[A.COMMENT_TOKEN]:et,[A.DOCTYPE_TOKEN]:ye,[A.START_TAG_TOKEN]:mf,[A.END_TAG_TOKEN]:ff,[A.EOF_TOKEN]:mi},[DS]:{[A.CHARACTER_TOKEN]:C_,[A.NULL_CHARACTER_TOKEN]:ye,[A.WHITESPACE_CHARACTER_TOKEN]:S_,[A.COMMENT_TOKEN]:la,[A.DOCTYPE_TOKEN]:la,[A.START_TAG_TOKEN]:la,[A.END_TAG_TOKEN]:la,[A.EOF_TOKEN]:la},[Wl]:{[A.CHARACTER_TOKEN]:Dl,[A.NULL_CHARACTER_TOKEN]:ye,[A.WHITESPACE_CHARACTER_TOKEN]:Rs,[A.COMMENT_TOKEN]:et,[A.DOCTYPE_TOKEN]:ye,[A.START_TAG_TOKEN]:w_,[A.END_TAG_TOKEN]:x_,[A.EOF_TOKEN]:mi},[fa]:{[A.CHARACTER_TOKEN]:ql,[A.NULL_CHARACTER_TOKEN]:ql,[A.WHITESPACE_CHARACTER_TOKEN]:Ot,[A.COMMENT_TOKEN]:et,[A.DOCTYPE_TOKEN]:ye,[A.START_TAG_TOKEN]:I_,[A.END_TAG_TOKEN]:A_,[A.EOF_TOKEN]:mi},[gn]:{[A.CHARACTER_TOKEN]:fi,[A.NULL_CHARACTER_TOKEN]:fi,[A.WHITESPACE_CHARACTER_TOKEN]:fi,[A.COMMENT_TOKEN]:et,[A.DOCTYPE_TOKEN]:ye,[A.START_TAG_TOKEN]:M_,[A.END_TAG_TOKEN]:E_,[A.EOF_TOKEN]:mi},[gi]:{[A.CHARACTER_TOKEN]:fi,[A.NULL_CHARACTER_TOKEN]:fi,[A.WHITESPACE_CHARACTER_TOKEN]:fi,[A.COMMENT_TOKEN]:et,[A.DOCTYPE_TOKEN]:ye,[A.START_TAG_TOKEN]:R_,[A.END_TAG_TOKEN]:k_,[A.EOF_TOKEN]:mi},[jl]:{[A.CHARACTER_TOKEN]:Dl,[A.NULL_CHARACTER_TOKEN]:ye,[A.WHITESPACE_CHARACTER_TOKEN]:Rs,[A.COMMENT_TOKEN]:et,[A.DOCTYPE_TOKEN]:ye,[A.START_TAG_TOKEN]:P_,[A.END_TAG_TOKEN]:__,[A.EOF_TOKEN]:mi},[df]:{[A.CHARACTER_TOKEN]:Ot,[A.NULL_CHARACTER_TOKEN]:ye,[A.WHITESPACE_CHARACTER_TOKEN]:Ot,[A.COMMENT_TOKEN]:et,[A.DOCTYPE_TOKEN]:ye,[A.START_TAG_TOKEN]:qS,[A.END_TAG_TOKEN]:HS,[A.EOF_TOKEN]:mi},[cf]:{[A.CHARACTER_TOKEN]:Ot,[A.NULL_CHARACTER_TOKEN]:ye,[A.WHITESPACE_CHARACTER_TOKEN]:Ot,[A.COMMENT_TOKEN]:et,[A.DOCTYPE_TOKEN]:ye,[A.START_TAG_TOKEN]:L_,[A.END_TAG_TOKEN]:O_,[A.EOF_TOKEN]:mi},[Bl]:{[A.CHARACTER_TOKEN]:Dl,[A.NULL_CHARACTER_TOKEN]:ye,[A.WHITESPACE_CHARACTER_TOKEN]:Rs,[A.COMMENT_TOKEN]:et,[A.DOCTYPE_TOKEN]:ye,[A.START_TAG_TOKEN]:N_,[A.END_TAG_TOKEN]:D_,[A.EOF_TOKEN]:US},[hf]:{[A.CHARACTER_TOKEN]:Hl,[A.NULL_CHARACTER_TOKEN]:Hl,[A.WHITESPACE_CHARACTER_TOKEN]:Rs,[A.COMMENT_TOKEN]:I4,[A.DOCTYPE_TOKEN]:ye,[A.START_TAG_TOKEN]:F_,[A.END_TAG_TOKEN]:$_,[A.EOF_TOKEN]:aa},[Vl]:{[A.CHARACTER_TOKEN]:ye,[A.NULL_CHARACTER_TOKEN]:ye,[A.WHITESPACE_CHARACTER_TOKEN]:Ot,[A.COMMENT_TOKEN]:et,[A.DOCTYPE_TOKEN]:ye,[A.START_TAG_TOKEN]:B_,[A.END_TAG_TOKEN]:q_,[A.EOF_TOKEN]:aa},[FS]:{[A.CHARACTER_TOKEN]:ye,[A.NULL_CHARACTER_TOKEN]:ye,[A.WHITESPACE_CHARACTER_TOKEN]:Ot,[A.COMMENT_TOKEN]:et,[A.DOCTYPE_TOKEN]:ye,[A.START_TAG_TOKEN]:H_,[A.END_TAG_TOKEN]:U_,[A.EOF_TOKEN]:aa},[$S]:{[A.CHARACTER_TOKEN]:Fl,[A.NULL_CHARACTER_TOKEN]:Fl,[A.WHITESPACE_CHARACTER_TOKEN]:Rs,[A.COMMENT_TOKEN]:xS,[A.DOCTYPE_TOKEN]:ye,[A.START_TAG_TOKEN]:K_,[A.END_TAG_TOKEN]:Fl,[A.EOF_TOKEN]:aa},[BS]:{[A.CHARACTER_TOKEN]:ye,[A.NULL_CHARACTER_TOKEN]:ye,[A.WHITESPACE_CHARACTER_TOKEN]:Rs,[A.COMMENT_TOKEN]:xS,[A.DOCTYPE_TOKEN]:ye,[A.START_TAG_TOKEN]:W_,[A.END_TAG_TOKEN]:ye,[A.EOF_TOKEN]:aa}},uf=class{constructor(e){this.options=h4(m4,e),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&SS.install(this,l4),this.options.onParseError&&SS.install(this,d4,{onParseError:this.options.onParseError})}parse(e){let t=this.treeAdapter.createDocument();return this._bootstrap(t,null),this.tokenizer.write(e,!0),this._runParsingLoop(null),t}parseFragment(e,t){t||(t=this.treeAdapter.createElement(g.TEMPLATE,z.HTML,[]));let i=this.treeAdapter.createElement("documentmock",z.HTML,[]);this._bootstrap(i,t),this.treeAdapter.getTagName(t)===g.TEMPLATE&&this._pushTmplInsertionMode(Bl),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(e,!0),this._runParsingLoop(null);let s=this.treeAdapter.getFirstChild(i),r=this.treeAdapter.createDocumentFragment();return this._adoptNodes(s,r),r}_bootstrap(e,t){this.tokenizer=new A(this.options),this.stopped=!1,this.insertionMode=OS,this.originalInsertionMode="",this.document=e,this.fragmentContext=t,this.headElement=null,this.formElement=null,this.openElements=new u4(this.document,this.treeAdapter),this.activeFormattingElements=new vS(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1}_err(){}_runParsingLoop(e){for(;!this.stopped;){this._setupTokenizerCDATAMode();let t=this.tokenizer.getNextToken();if(t.type===A.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.type===A.WHITESPACE_CHARACTER_TOKEN&&t.chars[0]===`
5
5
  `)){if(t.chars.length===1)continue;t.chars=t.chars.substr(1)}if(this._processInputToken(t),e&&this.pendingScript)break}}runParsingLoopForCurrentChunk(e,t){if(this._runParsingLoop(t),t&&this.pendingScript){let i=this.pendingScript;this.pendingScript=null,t(i);return}e&&e()}_setupTokenizerCDATAMode(){let e=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=e&&e!==this.document&&this.treeAdapter.getNamespaceURI(e)!==z.HTML&&!this._isIntegrationPoint(e)}_switchToTextParsing(e,t){this._insertElement(e,z.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=$l}switchToPlaintextParsing(){this.insertionMode=$l,this.originalInsertionMode=Yn,this.tokenizer.state=A.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;do{if(this.treeAdapter.getTagName(e)===g.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}while(e)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===z.HTML){let e=this.treeAdapter.getTagName(this.fragmentContext);e===g.TITLE||e===g.TEXTAREA?this.tokenizer.state=A.MODE.RCDATA:e===g.STYLE||e===g.XMP||e===g.IFRAME||e===g.NOEMBED||e===g.NOFRAMES||e===g.NOSCRIPT?this.tokenizer.state=A.MODE.RAWTEXT:e===g.SCRIPT?this.tokenizer.state=A.MODE.SCRIPT_DATA:e===g.PLAINTEXT&&(this.tokenizer.state=A.MODE.PLAINTEXT)}}_setDocumentType(e){let t=e.name||"",i=e.publicId||"",s=e.systemId||"";this.treeAdapter.setDocumentType(this.document,t,i,s)}_attachElementToTree(e){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{let t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){let i=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(i)}_insertElement(e,t){let i=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(i),this.openElements.push(i)}_insertFakeElement(e){let t=this.treeAdapter.createElement(e,z.HTML,[]);this._attachElementToTree(t),this.openElements.push(t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,z.HTML,e.attrs),i=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,i),this._attachElementToTree(t),this.openElements.push(t)}_insertFakeRootElement(){let e=this.treeAdapter.createElement(g.HTML,z.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e)}_appendCommentNode(e,t){let i=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,i)}_insertCharacters(e){if(this._shouldFosterParentOnInsertion())this._fosterParentText(e.chars);else{let t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(t,e.chars)}}_adoptNodes(e,t){for(let i=this.treeAdapter.getFirstChild(e);i;i=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(i),this.treeAdapter.appendChild(t,i)}_shouldProcessTokenInForeignContent(e){let t=this._getAdjustedCurrentElement();if(!t||t===this.document)return!1;let i=this.treeAdapter.getNamespaceURI(t);if(i===z.HTML||this.treeAdapter.getTagName(t)===g.ANNOTATION_XML&&i===z.MATHML&&e.type===A.START_TAG_TOKEN&&e.tagName===g.SVG)return!1;let s=e.type===A.CHARACTER_TOKEN||e.type===A.NULL_CHARACTER_TOKEN||e.type===A.WHITESPACE_CHARACTER_TOKEN;return(e.type===A.START_TAG_TOKEN&&e.tagName!==g.MGLYPH&&e.tagName!==g.MALIGNMARK||s)&&this._isIntegrationPoint(t,z.MATHML)||(e.type===A.START_TAG_TOKEN||s)&&this._isIntegrationPoint(t,z.HTML)?!1:e.type!==A.EOF_TOKEN}_processToken(e){wS[this.insertionMode][e.type](this,e)}_processTokenInBodyMode(e){wS[Yn][e.type](this,e)}_processTokenInForeignContent(e){e.type===A.CHARACTER_TOKEN?V_(this,e):e.type===A.NULL_CHARACTER_TOKEN?j_(this,e):e.type===A.WHITESPACE_CHARACTER_TOKEN?Ot(this,e):e.type===A.COMMENT_TOKEN?et(this,e):e.type===A.START_TAG_TOKEN?G_(this,e):e.type===A.END_TAG_TOKEN&&z_(this,e)}_processInputToken(e){this._shouldProcessTokenInForeignContent(e)?this._processTokenInForeignContent(e):this._processToken(e),e.type===A.START_TAG_TOKEN&&e.selfClosing&&!e.ackSelfClosing&&this._err(dt.nonVoidHtmlElementStartTagWithTrailingSolidus)}_isIntegrationPoint(e,t){let i=this.treeAdapter.getTagName(e),s=this.treeAdapter.getNamespaceURI(e),r=this.treeAdapter.getAttrList(e);return Qn.isIntegrationPoint(i,s,r,t)}_reconstructActiveFormattingElements(){let e=this.activeFormattingElements.length;if(e){let t=e,i=null;do if(t--,i=this.activeFormattingElements.entries[t],i.type===vS.MARKER_ENTRY||this.openElements.contains(i.element)){t++;break}while(t>0);for(let s=t;s<e;s++)i=this.activeFormattingElements.entries[s],this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=gi}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(g.P),this.openElements.popUntilTagNamePopped(g.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop,t=!1;e>=0;e--){let i=this.openElements.items[e];e===0&&(t=!0,this.fragmentContext&&(i=this.fragmentContext));let s=this.treeAdapter.getTagName(i),r=y4[s];if(r){this.insertionMode=r;break}else if(!t&&(s===g.TD||s===g.TH)){this.insertionMode=jl;break}else if(!t&&s===g.HEAD){this.insertionMode=Er;break}else if(s===g.SELECT){this._resetInsertionModeForSelect(e);break}else if(s===g.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}else if(s===g.HTML){this.insertionMode=this.headElement?Kl:Ul;break}else if(t){this.insertionMode=Yn;break}}}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){let i=this.openElements.items[t],s=this.treeAdapter.getTagName(i);if(s===g.TEMPLATE)break;if(s===g.TABLE){this.insertionMode=cf;return}}this.insertionMode=df}_pushTmplInsertionMode(e){this.tmplInsertionModeStack.push(e),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=e}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(e){let t=this.treeAdapter.getTagName(e);return t===g.TABLE||t===g.TBODY||t===g.TFOOT||t===g.THEAD||t===g.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){let e={parent:null,beforeElement:null};for(let t=this.openElements.stackTop;t>=0;t--){let i=this.openElements.items[t],s=this.treeAdapter.getTagName(i),r=this.treeAdapter.getNamespaceURI(i);if(s===g.TEMPLATE&&r===z.HTML){e.parent=this.treeAdapter.getTemplateContent(i);break}else if(s===g.TABLE){e.parent=this.treeAdapter.getParentNode(i),e.parent?e.beforeElement=i:e.parent=this.openElements.items[t-1];break}}return e.parent||(e.parent=this.openElements.items[0]),e}_fosterParentElement(e){let t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_fosterParentText(e){let t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertTextBefore(t.parent,e,t.beforeElement):this.treeAdapter.insertText(t.parent,e)}_isSpecialElement(e){let t=this.treeAdapter.getTagName(e),i=this.treeAdapter.getNamespaceURI(e);return ks.SPECIAL_ELEMENTS[i][t]}};KS.exports=uf;function b4(n,e){let t=n.activeFormattingElements.getElementEntryInScopeWithTagName(e.tagName);return t?n.openElements.contains(t.element)?n.openElements.hasInScope(e.tagName)||(t=null):(n.activeFormattingElements.removeEntry(t),t=null):kn(n,e),t}function v4(n,e){let t=null;for(let i=n.openElements.stackTop;i>=0;i--){let s=n.openElements.items[i];if(s===e.element)break;n._isSpecialElement(s)&&(t=s)}return t||(n.openElements.popUntilElementPopped(e.element),n.activeFormattingElements.removeEntry(e)),t}function S4(n,e,t){let i=e,s=n.openElements.getCommonAncestor(e);for(let r=0,o=s;o!==t;r++,o=s){s=n.openElements.getCommonAncestor(o);let a=n.activeFormattingElements.getElementEntry(o),u=a&&r>=g4;!a||u?(u&&n.activeFormattingElements.removeEntry(a),n.openElements.remove(o)):(o=C4(n,a),i===e&&(n.activeFormattingElements.bookmark=a),n.treeAdapter.detachNode(i),n.treeAdapter.appendChild(o,i),i=o)}return i}function C4(n,e){let t=n.treeAdapter.getNamespaceURI(e.element),i=n.treeAdapter.createElement(e.token.tagName,t,e.token.attrs);return n.openElements.replace(e.element,i),e.element=i,i}function w4(n,e,t){if(n._isElementCausesFosterParenting(e))n._fosterParentElement(t);else{let i=n.treeAdapter.getTagName(e),s=n.treeAdapter.getNamespaceURI(e);i===g.TEMPLATE&&s===z.HTML&&(e=n.treeAdapter.getTemplateContent(e)),n.treeAdapter.appendChild(e,t)}}function x4(n,e,t){let i=n.treeAdapter.getNamespaceURI(t.element),s=t.token,r=n.treeAdapter.createElement(s.tagName,i,s.attrs);n._adoptNodes(e,r),n.treeAdapter.appendChild(e,r),n.activeFormattingElements.insertElementAfterBookmark(r,t.token),n.activeFormattingElements.removeEntry(t),n.openElements.remove(t.element),n.openElements.insertAfter(e,r)}function zi(n,e){let t;for(let i=0;i<f4&&(t=b4(n,e,t),!!t);i++){let s=v4(n,t);if(!s)break;n.activeFormattingElements.bookmark=t;let r=S4(n,s,t.element),o=n.openElements.getCommonAncestor(t.element);n.treeAdapter.detachNode(r),w4(n,o,r),x4(n,s,t)}}function ye(){}function Nl(n){n._err(dt.misplacedDoctype)}function et(n,e){n._appendCommentNode(e,n.openElements.currentTmplContent||n.openElements.current)}function I4(n,e){n._appendCommentNode(e,n.openElements.items[0])}function xS(n,e){n._appendCommentNode(e,n.document)}function Ot(n,e){n._insertCharacters(e)}function aa(n){n.stopped=!0}function A4(n,e){n._setDocumentType(e);let t=e.forceQuirks?ks.DOCUMENT_MODE.QUIRKS:CS.getDocumentMode(e);CS.isConforming(e)||n._err(dt.nonConformingDoctype),n.treeAdapter.setDocumentMode(n.document,t),n.insertionMode=lf}function ua(n,e){n._err(dt.missingDoctype,{beforeToken:!0}),n.treeAdapter.setDocumentMode(n.document,ks.DOCUMENT_MODE.QUIRKS),n.insertionMode=lf,n._processToken(e)}function M4(n,e){e.tagName===g.HTML?(n._insertElement(e,z.HTML),n.insertionMode=Ul):da(n,e)}function E4(n,e){let t=e.tagName;(t===g.HTML||t===g.HEAD||t===g.BODY||t===g.BR)&&da(n,e)}function da(n,e){n._insertFakeRootElement(),n.insertionMode=Ul,n._processToken(e)}function R4(n,e){let t=e.tagName;t===g.HTML?Nt(n,e):t===g.HEAD?(n._insertElement(e,z.HTML),n.headElement=n.openElements.current,n.insertionMode=Er):ca(n,e)}function k4(n,e){let t=e.tagName;t===g.HEAD||t===g.BODY||t===g.HTML||t===g.BR?ca(n,e):n._err(dt.endTagWithoutMatchingOpenElement)}function ca(n,e){n._insertFakeElement(g.HEAD),n.headElement=n.openElements.current,n.insertionMode=Er,n._processToken(e)}function st(n,e){let t=e.tagName;t===g.HTML?Nt(n,e):t===g.BASE||t===g.BASEFONT||t===g.BGSOUND||t===g.LINK||t===g.META?(n._appendElement(e,z.HTML),e.ackSelfClosing=!0):t===g.TITLE?n._switchToTextParsing(e,A.MODE.RCDATA):t===g.NOSCRIPT?n.options.scriptingEnabled?n._switchToTextParsing(e,A.MODE.RAWTEXT):(n._insertElement(e,z.HTML),n.insertionMode=NS):t===g.NOFRAMES||t===g.STYLE?n._switchToTextParsing(e,A.MODE.RAWTEXT):t===g.SCRIPT?n._switchToTextParsing(e,A.MODE.SCRIPT_DATA):t===g.TEMPLATE?(n._insertTemplate(e,z.HTML),n.activeFormattingElements.insertMarker(),n.framesetOk=!1,n.insertionMode=Bl,n._pushTmplInsertionMode(Bl)):t===g.HEAD?n._err(dt.misplacedStartTagForHeadElement):ha(n,e)}function Ps(n,e){let t=e.tagName;t===g.HEAD?(n.openElements.pop(),n.insertionMode=Kl):t===g.BODY||t===g.BR||t===g.HTML?ha(n,e):t===g.TEMPLATE&&n.openElements.tmplCount>0?(n.openElements.generateImpliedEndTagsThoroughly(),n.openElements.currentTagName!==g.TEMPLATE&&n._err(dt.closingOfElementWithOpenChildElements),n.openElements.popUntilTagNamePopped(g.TEMPLATE),n.activeFormattingElements.clearToLastMarker(),n._popTmplInsertionMode(),n._resetInsertionMode()):n._err(dt.endTagWithoutMatchingOpenElement)}function ha(n,e){n.openElements.pop(),n.insertionMode=Kl,n._processToken(e)}function P4(n,e){let t=e.tagName;t===g.HTML?Nt(n,e):t===g.BASEFONT||t===g.BGSOUND||t===g.HEAD||t===g.LINK||t===g.META||t===g.NOFRAMES||t===g.STYLE?st(n,e):t===g.NOSCRIPT?n._err(dt.nestedNoscriptInHead):pa(n,e)}function _4(n,e){let t=e.tagName;t===g.NOSCRIPT?(n.openElements.pop(),n.insertionMode=Er):t===g.BR?pa(n,e):n._err(dt.endTagWithoutMatchingOpenElement)}function pa(n,e){let t=e.type===A.EOF_TOKEN?dt.openElementsLeftAfterEof:dt.disallowedContentInNoscriptInHead;n._err(t),n.openElements.pop(),n.insertionMode=Er,n._processToken(e)}function L4(n,e){let t=e.tagName;t===g.HTML?Nt(n,e):t===g.BODY?(n._insertElement(e,z.HTML),n.framesetOk=!1,n.insertionMode=Yn):t===g.FRAMESET?(n._insertElement(e,z.HTML),n.insertionMode=Vl):t===g.BASE||t===g.BASEFONT||t===g.BGSOUND||t===g.LINK||t===g.META||t===g.NOFRAMES||t===g.SCRIPT||t===g.STYLE||t===g.TEMPLATE||t===g.TITLE?(n._err(dt.abandonedHeadElementChild),n.openElements.push(n.headElement),st(n,e),n.openElements.remove(n.headElement)):t===g.HEAD?n._err(dt.misplacedStartTagForHeadElement):ma(n,e)}function O4(n,e){let t=e.tagName;t===g.BODY||t===g.HTML||t===g.BR?ma(n,e):t===g.TEMPLATE?Ps(n,e):n._err(dt.endTagWithoutMatchingOpenElement)}function ma(n,e){n._insertFakeElement(g.BODY),n.insertionMode=Yn,n._processToken(e)}function Rs(n,e){n._reconstructActiveFormattingElements(),n._insertCharacters(e)}function Dl(n,e){n._reconstructActiveFormattingElements(),n._insertCharacters(e),n.framesetOk=!1}function N4(n,e){n.openElements.tmplCount===0&&n.treeAdapter.adoptAttributes(n.openElements.items[0],e.attrs)}function D4(n,e){let t=n.openElements.tryPeekProperlyNestedBodyElement();t&&n.openElements.tmplCount===0&&(n.framesetOk=!1,n.treeAdapter.adoptAttributes(t,e.attrs))}function F4(n,e){let t=n.openElements.tryPeekProperlyNestedBodyElement();n.framesetOk&&t&&(n.treeAdapter.detachNode(t),n.openElements.popAllUpToHtmlElement(),n._insertElement(e,z.HTML),n.insertionMode=Vl)}function pi(n,e){n.openElements.hasInButtonScope(g.P)&&n._closePElement(),n._insertElement(e,z.HTML)}function $4(n,e){n.openElements.hasInButtonScope(g.P)&&n._closePElement();let t=n.openElements.currentTagName;(t===g.H1||t===g.H2||t===g.H3||t===g.H4||t===g.H5||t===g.H6)&&n.openElements.pop(),n._insertElement(e,z.HTML)}function IS(n,e){n.openElements.hasInButtonScope(g.P)&&n._closePElement(),n._insertElement(e,z.HTML),n.skipNextNewLine=!0,n.framesetOk=!1}function B4(n,e){let t=n.openElements.tmplCount>0;(!n.formElement||t)&&(n.openElements.hasInButtonScope(g.P)&&n._closePElement(),n._insertElement(e,z.HTML),t||(n.formElement=n.openElements.current))}function q4(n,e){n.framesetOk=!1;let t=e.tagName;for(let i=n.openElements.stackTop;i>=0;i--){let s=n.openElements.items[i],r=n.treeAdapter.getTagName(s),o=null;if(t===g.LI&&r===g.LI?o=g.LI:(t===g.DD||t===g.DT)&&(r===g.DD||r===g.DT)&&(o=r),o){n.openElements.generateImpliedEndTagsWithExclusion(o),n.openElements.popUntilTagNamePopped(o);break}if(r!==g.ADDRESS&&r!==g.DIV&&r!==g.P&&n._isSpecialElement(s))break}n.openElements.hasInButtonScope(g.P)&&n._closePElement(),n._insertElement(e,z.HTML)}function H4(n,e){n.openElements.hasInButtonScope(g.P)&&n._closePElement(),n._insertElement(e,z.HTML),n.tokenizer.state=A.MODE.PLAINTEXT}function U4(n,e){n.openElements.hasInScope(g.BUTTON)&&(n.openElements.generateImpliedEndTags(),n.openElements.popUntilTagNamePopped(g.BUTTON)),n._reconstructActiveFormattingElements(),n._insertElement(e,z.HTML),n.framesetOk=!1}function K4(n,e){let t=n.activeFormattingElements.getElementEntryInScopeWithTagName(g.A);t&&(zi(n,e),n.openElements.remove(t.element),n.activeFormattingElements.removeEntry(t)),n._reconstructActiveFormattingElements(),n._insertElement(e,z.HTML),n.activeFormattingElements.pushElement(n.openElements.current,e)}function Ar(n,e){n._reconstructActiveFormattingElements(),n._insertElement(e,z.HTML),n.activeFormattingElements.pushElement(n.openElements.current,e)}function W4(n,e){n._reconstructActiveFormattingElements(),n.openElements.hasInScope(g.NOBR)&&(zi(n,e),n._reconstructActiveFormattingElements()),n._insertElement(e,z.HTML),n.activeFormattingElements.pushElement(n.openElements.current,e)}function AS(n,e){n._reconstructActiveFormattingElements(),n._insertElement(e,z.HTML),n.activeFormattingElements.insertMarker(),n.framesetOk=!1}function j4(n,e){n.treeAdapter.getDocumentMode(n.document)!==ks.DOCUMENT_MODE.QUIRKS&&n.openElements.hasInButtonScope(g.P)&&n._closePElement(),n._insertElement(e,z.HTML),n.framesetOk=!1,n.insertionMode=Tt}function Mr(n,e){n._reconstructActiveFormattingElements(),n._appendElement(e,z.HTML),n.framesetOk=!1,e.ackSelfClosing=!0}function V4(n,e){n._reconstructActiveFormattingElements(),n._appendElement(e,z.HTML);let t=A.getTokenAttr(e,_S.TYPE);(!t||t.toLowerCase()!==LS)&&(n.framesetOk=!1),e.ackSelfClosing=!0}function MS(n,e){n._appendElement(e,z.HTML),e.ackSelfClosing=!0}function G4(n,e){n.openElements.hasInButtonScope(g.P)&&n._closePElement(),n._appendElement(e,z.HTML),n.framesetOk=!1,n.ackSelfClosing=!0}function z4(n,e){e.tagName=g.IMG,Mr(n,e)}function Q4(n,e){n._insertElement(e,z.HTML),n.skipNextNewLine=!0,n.tokenizer.state=A.MODE.RCDATA,n.originalInsertionMode=n.insertionMode,n.framesetOk=!1,n.insertionMode=$l}function Y4(n,e){n.openElements.hasInButtonScope(g.P)&&n._closePElement(),n._reconstructActiveFormattingElements(),n.framesetOk=!1,n._switchToTextParsing(e,A.MODE.RAWTEXT)}function X4(n,e){n.framesetOk=!1,n._switchToTextParsing(e,A.MODE.RAWTEXT)}function ES(n,e){n._switchToTextParsing(e,A.MODE.RAWTEXT)}function J4(n,e){n._reconstructActiveFormattingElements(),n._insertElement(e,z.HTML),n.framesetOk=!1,n.insertionMode===Tt||n.insertionMode===Wl||n.insertionMode===gn||n.insertionMode===gi||n.insertionMode===jl?n.insertionMode=cf:n.insertionMode=df}function RS(n,e){n.openElements.currentTagName===g.OPTION&&n.openElements.pop(),n._reconstructActiveFormattingElements(),n._insertElement(e,z.HTML)}function kS(n,e){n.openElements.hasInScope(g.RUBY)&&n.openElements.generateImpliedEndTags(),n._insertElement(e,z.HTML)}function Z4(n,e){n.openElements.hasInScope(g.RUBY)&&n.openElements.generateImpliedEndTagsWithExclusion(g.RTC),n._insertElement(e,z.HTML)}function e_(n,e){n.openElements.hasInButtonScope(g.P)&&n._closePElement(),n._insertElement(e,z.HTML)}function t_(n,e){n._reconstructActiveFormattingElements(),Qn.adjustTokenMathMLAttrs(e),Qn.adjustTokenXMLAttrs(e),e.selfClosing?n._appendElement(e,z.MATHML):n._insertElement(e,z.MATHML),e.ackSelfClosing=!0}function n_(n,e){n._reconstructActiveFormattingElements(),Qn.adjustTokenSVGAttrs(e),Qn.adjustTokenXMLAttrs(e),e.selfClosing?n._appendElement(e,z.SVG):n._insertElement(e,z.SVG),e.ackSelfClosing=!0}function mn(n,e){n._reconstructActiveFormattingElements(),n._insertElement(e,z.HTML)}function Nt(n,e){let t=e.tagName;switch(t.length){case 1:t===g.I||t===g.S||t===g.B||t===g.U?Ar(n,e):t===g.P?pi(n,e):t===g.A?K4(n,e):mn(n,e);break;case 2:t===g.DL||t===g.OL||t===g.UL?pi(n,e):t===g.H1||t===g.H2||t===g.H3||t===g.H4||t===g.H5||t===g.H6?$4(n,e):t===g.LI||t===g.DD||t===g.DT?q4(n,e):t===g.EM||t===g.TT?Ar(n,e):t===g.BR?Mr(n,e):t===g.HR?G4(n,e):t===g.RB?kS(n,e):t===g.RT||t===g.RP?Z4(n,e):t!==g.TH&&t!==g.TD&&t!==g.TR&&mn(n,e);break;case 3:t===g.DIV||t===g.DIR||t===g.NAV?pi(n,e):t===g.PRE?IS(n,e):t===g.BIG?Ar(n,e):t===g.IMG||t===g.WBR?Mr(n,e):t===g.XMP?Y4(n,e):t===g.SVG?n_(n,e):t===g.RTC?kS(n,e):t!==g.COL&&mn(n,e);break;case 4:t===g.HTML?N4(n,e):t===g.BASE||t===g.LINK||t===g.META?st(n,e):t===g.BODY?D4(n,e):t===g.MAIN||t===g.MENU?pi(n,e):t===g.FORM?B4(n,e):t===g.CODE||t===g.FONT?Ar(n,e):t===g.NOBR?W4(n,e):t===g.AREA?Mr(n,e):t===g.MATH?t_(n,e):t===g.MENU?e_(n,e):t!==g.HEAD&&mn(n,e);break;case 5:t===g.STYLE||t===g.TITLE?st(n,e):t===g.ASIDE?pi(n,e):t===g.SMALL?Ar(n,e):t===g.TABLE?j4(n,e):t===g.EMBED?Mr(n,e):t===g.INPUT?V4(n,e):t===g.PARAM||t===g.TRACK?MS(n,e):t===g.IMAGE?z4(n,e):t!==g.FRAME&&t!==g.TBODY&&t!==g.TFOOT&&t!==g.THEAD&&mn(n,e);break;case 6:t===g.SCRIPT?st(n,e):t===g.CENTER||t===g.FIGURE||t===g.FOOTER||t===g.HEADER||t===g.HGROUP||t===g.DIALOG?pi(n,e):t===g.BUTTON?U4(n,e):t===g.STRIKE||t===g.STRONG?Ar(n,e):t===g.APPLET||t===g.OBJECT?AS(n,e):t===g.KEYGEN?Mr(n,e):t===g.SOURCE?MS(n,e):t===g.IFRAME?X4(n,e):t===g.SELECT?J4(n,e):t===g.OPTION?RS(n,e):mn(n,e);break;case 7:t===g.BGSOUND?st(n,e):t===g.DETAILS||t===g.ADDRESS||t===g.ARTICLE||t===g.SECTION||t===g.SUMMARY?pi(n,e):t===g.LISTING?IS(n,e):t===g.MARQUEE?AS(n,e):t===g.NOEMBED?ES(n,e):t!==g.CAPTION&&mn(n,e);break;case 8:t===g.BASEFONT?st(n,e):t===g.FRAMESET?F4(n,e):t===g.FIELDSET?pi(n,e):t===g.TEXTAREA?Q4(n,e):t===g.TEMPLATE?st(n,e):t===g.NOSCRIPT?n.options.scriptingEnabled?ES(n,e):mn(n,e):t===g.OPTGROUP?RS(n,e):t!==g.COLGROUP&&mn(n,e);break;case 9:t===g.PLAINTEXT?H4(n,e):mn(n,e);break;case 10:t===g.BLOCKQUOTE||t===g.FIGCAPTION?pi(n,e):mn(n,e);break;default:mn(n,e)}}function i_(n){n.openElements.hasInScope(g.BODY)&&(n.insertionMode=hf)}function s_(n,e){n.openElements.hasInScope(g.BODY)&&(n.insertionMode=hf,n._processToken(e))}function Gi(n,e){let t=e.tagName;n.openElements.hasInScope(t)&&(n.openElements.generateImpliedEndTags(),n.openElements.popUntilTagNamePopped(t))}function r_(n){let e=n.openElements.tmplCount>0,t=n.formElement;e||(n.formElement=null),(t||e)&&n.openElements.hasInScope(g.FORM)&&(n.openElements.generateImpliedEndTags(),e?n.openElements.popUntilTagNamePopped(g.FORM):n.openElements.remove(t))}function o_(n){n.openElements.hasInButtonScope(g.P)||n._insertFakeElement(g.P),n._closePElement()}function a_(n){n.openElements.hasInListItemScope(g.LI)&&(n.openElements.generateImpliedEndTagsWithExclusion(g.LI),n.openElements.popUntilTagNamePopped(g.LI))}function u_(n,e){let t=e.tagName;n.openElements.hasInScope(t)&&(n.openElements.generateImpliedEndTagsWithExclusion(t),n.openElements.popUntilTagNamePopped(t))}function l_(n){n.openElements.hasNumberedHeaderInScope()&&(n.openElements.generateImpliedEndTags(),n.openElements.popUntilNumberedHeaderPopped())}function PS(n,e){let t=e.tagName;n.openElements.hasInScope(t)&&(n.openElements.generateImpliedEndTags(),n.openElements.popUntilTagNamePopped(t),n.activeFormattingElements.clearToLastMarker())}function d_(n){n._reconstructActiveFormattingElements(),n._insertFakeElement(g.BR),n.openElements.pop(),n.framesetOk=!1}function kn(n,e){let t=e.tagName;for(let i=n.openElements.stackTop;i>0;i--){let s=n.openElements.items[i];if(n.treeAdapter.getTagName(s)===t){n.openElements.generateImpliedEndTagsWithExclusion(t),n.openElements.popUntilElementPopped(s);break}if(n._isSpecialElement(s))break}}function pf(n,e){let t=e.tagName;switch(t.length){case 1:t===g.A||t===g.B||t===g.I||t===g.S||t===g.U?zi(n,e):t===g.P?o_(n,e):kn(n,e);break;case 2:t===g.DL||t===g.UL||t===g.OL?Gi(n,e):t===g.LI?a_(n,e):t===g.DD||t===g.DT?u_(n,e):t===g.H1||t===g.H2||t===g.H3||t===g.H4||t===g.H5||t===g.H6?l_(n,e):t===g.BR?d_(n,e):t===g.EM||t===g.TT?zi(n,e):kn(n,e);break;case 3:t===g.BIG?zi(n,e):t===g.DIR||t===g.DIV||t===g.NAV||t===g.PRE?Gi(n,e):kn(n,e);break;case 4:t===g.BODY?i_(n,e):t===g.HTML?s_(n,e):t===g.FORM?r_(n,e):t===g.CODE||t===g.FONT||t===g.NOBR?zi(n,e):t===g.MAIN||t===g.MENU?Gi(n,e):kn(n,e);break;case 5:t===g.ASIDE?Gi(n,e):t===g.SMALL?zi(n,e):kn(n,e);break;case 6:t===g.CENTER||t===g.FIGURE||t===g.FOOTER||t===g.HEADER||t===g.HGROUP||t===g.DIALOG?Gi(n,e):t===g.APPLET||t===g.OBJECT?PS(n,e):t===g.STRIKE||t===g.STRONG?zi(n,e):kn(n,e);break;case 7:t===g.ADDRESS||t===g.ARTICLE||t===g.DETAILS||t===g.SECTION||t===g.SUMMARY||t===g.LISTING?Gi(n,e):t===g.MARQUEE?PS(n,e):kn(n,e);break;case 8:t===g.FIELDSET?Gi(n,e):t===g.TEMPLATE?Ps(n,e):kn(n,e);break;case 10:t===g.BLOCKQUOTE||t===g.FIGCAPTION?Gi(n,e):kn(n,e);break;default:kn(n,e)}}function mi(n,e){n.tmplInsertionModeStackTop>-1?US(n,e):n.stopped=!0}function c_(n,e){e.tagName===g.SCRIPT&&(n.pendingScript=n.openElements.current),n.openElements.pop(),n.insertionMode=n.originalInsertionMode}function h_(n,e){n._err(dt.eofInElementThatCanContainOnlyText),n.openElements.pop(),n.insertionMode=n.originalInsertionMode,n._processToken(e)}function fi(n,e){let t=n.openElements.currentTagName;t===g.TABLE||t===g.TBODY||t===g.TFOOT||t===g.THEAD||t===g.TR?(n.pendingCharacterTokens=[],n.hasNonWhitespacePendingCharacterToken=!1,n.originalInsertionMode=n.insertionMode,n.insertionMode=DS,n._processToken(e)):fn(n,e)}function p_(n,e){n.openElements.clearBackToTableContext(),n.activeFormattingElements.insertMarker(),n._insertElement(e,z.HTML),n.insertionMode=Wl}function m_(n,e){n.openElements.clearBackToTableContext(),n._insertElement(e,z.HTML),n.insertionMode=fa}function f_(n,e){n.openElements.clearBackToTableContext(),n._insertFakeElement(g.COLGROUP),n.insertionMode=fa,n._processToken(e)}function g_(n,e){n.openElements.clearBackToTableContext(),n._insertElement(e,z.HTML),n.insertionMode=gn}function y_(n,e){n.openElements.clearBackToTableContext(),n._insertFakeElement(g.TBODY),n.insertionMode=gn,n._processToken(e)}function T_(n,e){n.openElements.hasInTableScope(g.TABLE)&&(n.openElements.popUntilTagNamePopped(g.TABLE),n._resetInsertionMode(),n._processToken(e))}function b_(n,e){let t=A.getTokenAttr(e,_S.TYPE);t&&t.toLowerCase()===LS?n._appendElement(e,z.HTML):fn(n,e),e.ackSelfClosing=!0}function v_(n,e){!n.formElement&&n.openElements.tmplCount===0&&(n._insertElement(e,z.HTML),n.formElement=n.openElements.current,n.openElements.pop())}function mf(n,e){let t=e.tagName;switch(t.length){case 2:t===g.TD||t===g.TH||t===g.TR?y_(n,e):fn(n,e);break;case 3:t===g.COL?f_(n,e):fn(n,e);break;case 4:t===g.FORM?v_(n,e):fn(n,e);break;case 5:t===g.TABLE?T_(n,e):t===g.STYLE?st(n,e):t===g.TBODY||t===g.TFOOT||t===g.THEAD?g_(n,e):t===g.INPUT?b_(n,e):fn(n,e);break;case 6:t===g.SCRIPT?st(n,e):fn(n,e);break;case 7:t===g.CAPTION?p_(n,e):fn(n,e);break;case 8:t===g.COLGROUP?m_(n,e):t===g.TEMPLATE?st(n,e):fn(n,e);break;default:fn(n,e)}}function ff(n,e){let t=e.tagName;t===g.TABLE?n.openElements.hasInTableScope(g.TABLE)&&(n.openElements.popUntilTagNamePopped(g.TABLE),n._resetInsertionMode()):t===g.TEMPLATE?Ps(n,e):t!==g.BODY&&t!==g.CAPTION&&t!==g.COL&&t!==g.COLGROUP&&t!==g.HTML&&t!==g.TBODY&&t!==g.TD&&t!==g.TFOOT&&t!==g.TH&&t!==g.THEAD&&t!==g.TR&&fn(n,e)}function fn(n,e){let t=n.fosterParentingEnabled;n.fosterParentingEnabled=!0,n._processTokenInBodyMode(e),n.fosterParentingEnabled=t}function S_(n,e){n.pendingCharacterTokens.push(e)}function C_(n,e){n.pendingCharacterTokens.push(e),n.hasNonWhitespacePendingCharacterToken=!0}function la(n,e){let t=0;if(n.hasNonWhitespacePendingCharacterToken)for(;t<n.pendingCharacterTokens.length;t++)fn(n,n.pendingCharacterTokens[t]);else for(;t<n.pendingCharacterTokens.length;t++)n._insertCharacters(n.pendingCharacterTokens[t]);n.insertionMode=n.originalInsertionMode,n._processToken(e)}function w_(n,e){let t=e.tagName;t===g.CAPTION||t===g.COL||t===g.COLGROUP||t===g.TBODY||t===g.TD||t===g.TFOOT||t===g.TH||t===g.THEAD||t===g.TR?n.openElements.hasInTableScope(g.CAPTION)&&(n.openElements.generateImpliedEndTags(),n.openElements.popUntilTagNamePopped(g.CAPTION),n.activeFormattingElements.clearToLastMarker(),n.insertionMode=Tt,n._processToken(e)):Nt(n,e)}function x_(n,e){let t=e.tagName;t===g.CAPTION||t===g.TABLE?n.openElements.hasInTableScope(g.CAPTION)&&(n.openElements.generateImpliedEndTags(),n.openElements.popUntilTagNamePopped(g.CAPTION),n.activeFormattingElements.clearToLastMarker(),n.insertionMode=Tt,t===g.TABLE&&n._processToken(e)):t!==g.BODY&&t!==g.COL&&t!==g.COLGROUP&&t!==g.HTML&&t!==g.TBODY&&t!==g.TD&&t!==g.TFOOT&&t!==g.TH&&t!==g.THEAD&&t!==g.TR&&pf(n,e)}function I_(n,e){let t=e.tagName;t===g.HTML?Nt(n,e):t===g.COL?(n._appendElement(e,z.HTML),e.ackSelfClosing=!0):t===g.TEMPLATE?st(n,e):ql(n,e)}function A_(n,e){let t=e.tagName;t===g.COLGROUP?n.openElements.currentTagName===g.COLGROUP&&(n.openElements.pop(),n.insertionMode=Tt):t===g.TEMPLATE?Ps(n,e):t!==g.COL&&ql(n,e)}function ql(n,e){n.openElements.currentTagName===g.COLGROUP&&(n.openElements.pop(),n.insertionMode=Tt,n._processToken(e))}function M_(n,e){let t=e.tagName;t===g.TR?(n.openElements.clearBackToTableBodyContext(),n._insertElement(e,z.HTML),n.insertionMode=gi):t===g.TH||t===g.TD?(n.openElements.clearBackToTableBodyContext(),n._insertFakeElement(g.TR),n.insertionMode=gi,n._processToken(e)):t===g.CAPTION||t===g.COL||t===g.COLGROUP||t===g.TBODY||t===g.TFOOT||t===g.THEAD?n.openElements.hasTableBodyContextInTableScope()&&(n.openElements.clearBackToTableBodyContext(),n.openElements.pop(),n.insertionMode=Tt,n._processToken(e)):mf(n,e)}function E_(n,e){let t=e.tagName;t===g.TBODY||t===g.TFOOT||t===g.THEAD?n.openElements.hasInTableScope(t)&&(n.openElements.clearBackToTableBodyContext(),n.openElements.pop(),n.insertionMode=Tt):t===g.TABLE?n.openElements.hasTableBodyContextInTableScope()&&(n.openElements.clearBackToTableBodyContext(),n.openElements.pop(),n.insertionMode=Tt,n._processToken(e)):(t!==g.BODY&&t!==g.CAPTION&&t!==g.COL&&t!==g.COLGROUP||t!==g.HTML&&t!==g.TD&&t!==g.TH&&t!==g.TR)&&ff(n,e)}function R_(n,e){let t=e.tagName;t===g.TH||t===g.TD?(n.openElements.clearBackToTableRowContext(),n._insertElement(e,z.HTML),n.insertionMode=jl,n.activeFormattingElements.insertMarker()):t===g.CAPTION||t===g.COL||t===g.COLGROUP||t===g.TBODY||t===g.TFOOT||t===g.THEAD||t===g.TR?n.openElements.hasInTableScope(g.TR)&&(n.openElements.clearBackToTableRowContext(),n.openElements.pop(),n.insertionMode=gn,n._processToken(e)):mf(n,e)}function k_(n,e){let t=e.tagName;t===g.TR?n.openElements.hasInTableScope(g.TR)&&(n.openElements.clearBackToTableRowContext(),n.openElements.pop(),n.insertionMode=gn):t===g.TABLE?n.openElements.hasInTableScope(g.TR)&&(n.openElements.clearBackToTableRowContext(),n.openElements.pop(),n.insertionMode=gn,n._processToken(e)):t===g.TBODY||t===g.TFOOT||t===g.THEAD?(n.openElements.hasInTableScope(t)||n.openElements.hasInTableScope(g.TR))&&(n.openElements.clearBackToTableRowContext(),n.openElements.pop(),n.insertionMode=gn,n._processToken(e)):(t!==g.BODY&&t!==g.CAPTION&&t!==g.COL&&t!==g.COLGROUP||t!==g.HTML&&t!==g.TD&&t!==g.TH)&&ff(n,e)}function P_(n,e){let t=e.tagName;t===g.CAPTION||t===g.COL||t===g.COLGROUP||t===g.TBODY||t===g.TD||t===g.TFOOT||t===g.TH||t===g.THEAD||t===g.TR?(n.openElements.hasInTableScope(g.TD)||n.openElements.hasInTableScope(g.TH))&&(n._closeTableCell(),n._processToken(e)):Nt(n,e)}function __(n,e){let t=e.tagName;t===g.TD||t===g.TH?n.openElements.hasInTableScope(t)&&(n.openElements.generateImpliedEndTags(),n.openElements.popUntilTagNamePopped(t),n.activeFormattingElements.clearToLastMarker(),n.insertionMode=gi):t===g.TABLE||t===g.TBODY||t===g.TFOOT||t===g.THEAD||t===g.TR?n.openElements.hasInTableScope(t)&&(n._closeTableCell(),n._processToken(e)):t!==g.BODY&&t!==g.CAPTION&&t!==g.COL&&t!==g.COLGROUP&&t!==g.HTML&&pf(n,e)}function qS(n,e){let t=e.tagName;t===g.HTML?Nt(n,e):t===g.OPTION?(n.openElements.currentTagName===g.OPTION&&n.openElements.pop(),n._insertElement(e,z.HTML)):t===g.OPTGROUP?(n.openElements.currentTagName===g.OPTION&&n.openElements.pop(),n.openElements.currentTagName===g.OPTGROUP&&n.openElements.pop(),n._insertElement(e,z.HTML)):t===g.INPUT||t===g.KEYGEN||t===g.TEXTAREA||t===g.SELECT?n.openElements.hasInSelectScope(g.SELECT)&&(n.openElements.popUntilTagNamePopped(g.SELECT),n._resetInsertionMode(),t!==g.SELECT&&n._processToken(e)):(t===g.SCRIPT||t===g.TEMPLATE)&&st(n,e)}function HS(n,e){let t=e.tagName;if(t===g.OPTGROUP){let i=n.openElements.items[n.openElements.stackTop-1],s=i&&n.treeAdapter.getTagName(i);n.openElements.currentTagName===g.OPTION&&s===g.OPTGROUP&&n.openElements.pop(),n.openElements.currentTagName===g.OPTGROUP&&n.openElements.pop()}else t===g.OPTION?n.openElements.currentTagName===g.OPTION&&n.openElements.pop():t===g.SELECT&&n.openElements.hasInSelectScope(g.SELECT)?(n.openElements.popUntilTagNamePopped(g.SELECT),n._resetInsertionMode()):t===g.TEMPLATE&&Ps(n,e)}function L_(n,e){let t=e.tagName;t===g.CAPTION||t===g.TABLE||t===g.TBODY||t===g.TFOOT||t===g.THEAD||t===g.TR||t===g.TD||t===g.TH?(n.openElements.popUntilTagNamePopped(g.SELECT),n._resetInsertionMode(),n._processToken(e)):qS(n,e)}function O_(n,e){let t=e.tagName;t===g.CAPTION||t===g.TABLE||t===g.TBODY||t===g.TFOOT||t===g.THEAD||t===g.TR||t===g.TD||t===g.TH?n.openElements.hasInTableScope(t)&&(n.openElements.popUntilTagNamePopped(g.SELECT),n._resetInsertionMode(),n._processToken(e)):HS(n,e)}function N_(n,e){let t=e.tagName;if(t===g.BASE||t===g.BASEFONT||t===g.BGSOUND||t===g.LINK||t===g.META||t===g.NOFRAMES||t===g.SCRIPT||t===g.STYLE||t===g.TEMPLATE||t===g.TITLE)st(n,e);else{let i=T4[t]||Yn;n._popTmplInsertionMode(),n._pushTmplInsertionMode(i),n.insertionMode=i,n._processToken(e)}}function D_(n,e){e.tagName===g.TEMPLATE&&Ps(n,e)}function US(n,e){n.openElements.tmplCount>0?(n.openElements.popUntilTagNamePopped(g.TEMPLATE),n.activeFormattingElements.clearToLastMarker(),n._popTmplInsertionMode(),n._resetInsertionMode(),n._processToken(e)):n.stopped=!0}function F_(n,e){e.tagName===g.HTML?Nt(n,e):Hl(n,e)}function $_(n,e){e.tagName===g.HTML?n.fragmentContext||(n.insertionMode=$S):Hl(n,e)}function Hl(n,e){n.insertionMode=Yn,n._processToken(e)}function B_(n,e){let t=e.tagName;t===g.HTML?Nt(n,e):t===g.FRAMESET?n._insertElement(e,z.HTML):t===g.FRAME?(n._appendElement(e,z.HTML),e.ackSelfClosing=!0):t===g.NOFRAMES&&st(n,e)}function q_(n,e){e.tagName===g.FRAMESET&&!n.openElements.isRootHtmlElementCurrent()&&(n.openElements.pop(),!n.fragmentContext&&n.openElements.currentTagName!==g.FRAMESET&&(n.insertionMode=FS))}function H_(n,e){let t=e.tagName;t===g.HTML?Nt(n,e):t===g.NOFRAMES&&st(n,e)}function U_(n,e){e.tagName===g.HTML&&(n.insertionMode=BS)}function K_(n,e){e.tagName===g.HTML?Nt(n,e):Fl(n,e)}function Fl(n,e){n.insertionMode=Yn,n._processToken(e)}function W_(n,e){let t=e.tagName;t===g.HTML?Nt(n,e):t===g.NOFRAMES&&st(n,e)}function j_(n,e){e.chars=p4.REPLACEMENT_CHARACTER,n._insertCharacters(e)}function V_(n,e){n._insertCharacters(e),n.framesetOk=!1}function G_(n,e){if(Qn.causesExit(e)&&!n.fragmentContext){for(;n.treeAdapter.getNamespaceURI(n.openElements.current)!==z.HTML&&!n._isIntegrationPoint(n.openElements.current);)n.openElements.pop();n._processToken(e)}else{let t=n._getAdjustedCurrentElement(),i=n.treeAdapter.getNamespaceURI(t);i===z.MATHML?Qn.adjustTokenMathMLAttrs(e):i===z.SVG&&(Qn.adjustTokenSVGTagName(e),Qn.adjustTokenSVGAttrs(e)),Qn.adjustTokenXMLAttrs(e),e.selfClosing?n._appendElement(e,i):n._insertElement(e,i),e.ackSelfClosing=!0}}function z_(n,e){for(let t=n.openElements.stackTop;t>0;t--){let i=n.openElements.items[t];if(n.treeAdapter.getNamespaceURI(i)===z.HTML){n._processToken(e);break}if(n.treeAdapter.getTagName(i).toLowerCase()===e.tagName){n.openElements.popUntilElementPopped(i);break}}}});var GS=me((vG,VS)=>{"use strict";var Q_=nf(),Y_=sf(),X_=rf(),jS=ji(),De=jS.TAG_NAMES,Gl=jS.NAMESPACES,J_={treeAdapter:Q_},Z_=/&/g,e8=/\u00a0/g,t8=/"/g,n8=/</g,i8=/>/g,zl=class n{constructor(e,t){this.options=Y_(J_,t),this.treeAdapter=this.options.treeAdapter,this.html="",this.startNode=e}serialize(){return this._serializeChildNodes(this.startNode),this.html}_serializeChildNodes(e){let t=this.treeAdapter.getChildNodes(e);if(t)for(let i=0,s=t.length;i<s;i++){let r=t[i];this.treeAdapter.isElementNode(r)?this._serializeElement(r):this.treeAdapter.isTextNode(r)?this._serializeTextNode(r):this.treeAdapter.isCommentNode(r)?this._serializeCommentNode(r):this.treeAdapter.isDocumentTypeNode(r)&&this._serializeDocumentTypeNode(r)}}_serializeElement(e){let t=this.treeAdapter.getTagName(e),i=this.treeAdapter.getNamespaceURI(e);if(this.html+="<"+t,this._serializeAttributes(e),this.html+=">",t!==De.AREA&&t!==De.BASE&&t!==De.BASEFONT&&t!==De.BGSOUND&&t!==De.BR&&t!==De.COL&&t!==De.EMBED&&t!==De.FRAME&&t!==De.HR&&t!==De.IMG&&t!==De.INPUT&&t!==De.KEYGEN&&t!==De.LINK&&t!==De.META&&t!==De.PARAM&&t!==De.SOURCE&&t!==De.TRACK&&t!==De.WBR){let s=t===De.TEMPLATE&&i===Gl.HTML?this.treeAdapter.getTemplateContent(e):e;this._serializeChildNodes(s),this.html+="</"+t+">"}}_serializeAttributes(e){let t=this.treeAdapter.getAttrList(e);for(let i=0,s=t.length;i<s;i++){let r=t[i],o=n.escapeString(r.value,!0);this.html+=" ",r.namespace?r.namespace===Gl.XML?this.html+="xml:"+r.name:r.namespace===Gl.XMLNS?(r.name!=="xmlns"&&(this.html+="xmlns:"),this.html+=r.name):r.namespace===Gl.XLINK?this.html+="xlink:"+r.name:this.html+=r.prefix+":"+r.name:this.html+=r.name,this.html+='="'+o+'"'}}_serializeTextNode(e){let t=this.treeAdapter.getTextNodeContent(e),i=this.treeAdapter.getParentNode(e),s;i&&this.treeAdapter.isElementNode(i)&&(s=this.treeAdapter.getTagName(i)),s===De.STYLE||s===De.SCRIPT||s===De.XMP||s===De.IFRAME||s===De.NOEMBED||s===De.NOFRAMES||s===De.PLAINTEXT||s===De.NOSCRIPT?this.html+=t:this.html+=n.escapeString(t,!1)}_serializeCommentNode(e){this.html+="<!--"+this.treeAdapter.getCommentNodeContent(e)+"-->"}_serializeDocumentTypeNode(e){let t=this.treeAdapter.getDocumentTypeNodeName(e);this.html+="<"+X_.serializeContent(t,null,null)+">"}};zl.escapeString=function(n,e){return n=n.replace(Z_,"&amp;").replace(e8,"&nbsp;"),e?n=n.replace(t8,"&quot;"):n=n.replace(n8,"&lt;").replace(i8,"&gt;"),n};VS.exports=zl});var QS=me(Ql=>{"use strict";var zS=WS(),s8=GS();Ql.parse=function(e,t){return new zS(t).parse(e)};Ql.parseFragment=function(e,t,i){return typeof e=="string"&&(i=t,t=e,e=null),new zS(i).parseFragment(t,e)};Ql.serialize=function(n,e){return new s8(n,e).serialize()}});var yf=me(Rr=>{"use strict";var gf=Rr.NAMESPACES={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/"};Rr.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"};Rr.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};var U=Rr.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};Rr.SPECIAL_ELEMENTS={[gf.HTML]:{[U.ADDRESS]:!0,[U.APPLET]:!0,[U.AREA]:!0,[U.ARTICLE]:!0,[U.ASIDE]:!0,[U.BASE]:!0,[U.BASEFONT]:!0,[U.BGSOUND]:!0,[U.BLOCKQUOTE]:!0,[U.BODY]:!0,[U.BR]:!0,[U.BUTTON]:!0,[U.CAPTION]:!0,[U.CENTER]:!0,[U.COL]:!0,[U.COLGROUP]:!0,[U.DD]:!0,[U.DETAILS]:!0,[U.DIR]:!0,[U.DIV]:!0,[U.DL]:!0,[U.DT]:!0,[U.EMBED]:!0,[U.FIELDSET]:!0,[U.FIGCAPTION]:!0,[U.FIGURE]:!0,[U.FOOTER]:!0,[U.FORM]:!0,[U.FRAME]:!0,[U.FRAMESET]:!0,[U.H1]:!0,[U.H2]:!0,[U.H3]:!0,[U.H4]:!0,[U.H5]:!0,[U.H6]:!0,[U.HEAD]:!0,[U.HEADER]:!0,[U.HGROUP]:!0,[U.HR]:!0,[U.HTML]:!0,[U.IFRAME]:!0,[U.IMG]:!0,[U.INPUT]:!0,[U.LI]:!0,[U.LINK]:!0,[U.LISTING]:!0,[U.MAIN]:!0,[U.MARQUEE]:!0,[U.MENU]:!0,[U.META]:!0,[U.NAV]:!0,[U.NOEMBED]:!0,[U.NOFRAMES]:!0,[U.NOSCRIPT]:!0,[U.OBJECT]:!0,[U.OL]:!0,[U.P]:!0,[U.PARAM]:!0,[U.PLAINTEXT]:!0,[U.PRE]:!0,[U.SCRIPT]:!0,[U.SECTION]:!0,[U.SELECT]:!0,[U.SOURCE]:!0,[U.STYLE]:!0,[U.SUMMARY]:!0,[U.TABLE]:!0,[U.TBODY]:!0,[U.TD]:!0,[U.TEMPLATE]:!0,[U.TEXTAREA]:!0,[U.TFOOT]:!0,[U.TH]:!0,[U.THEAD]:!0,[U.TITLE]:!0,[U.TR]:!0,[U.TRACK]:!0,[U.UL]:!0,[U.WBR]:!0,[U.XMP]:!0},[gf.MATHML]:{[U.MI]:!0,[U.MO]:!0,[U.MN]:!0,[U.MS]:!0,[U.MTEXT]:!0,[U.ANNOTATION_XML]:!0},[gf.SVG]:{[U.TITLE]:!0,[U.FOREIGN_OBJECT]:!0,[U.DESC]:!0}}});var tC=me(Yl=>{"use strict";var{DOCUMENT_MODE:kr}=yf(),JS="html",r8="about:legacy-compat",o8="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",ZS=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],a8=ZS.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),u8=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],eC=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],l8=eC.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function YS(n){let e=n.indexOf('"')!==-1?"'":'"';return e+n+e}function XS(n,e){for(let t=0;t<e.length;t++)if(n.indexOf(e[t])===0)return!0;return!1}Yl.isConforming=function(n){return n.name===JS&&n.publicId===null&&(n.systemId===null||n.systemId===r8)};Yl.getDocumentMode=function(n){if(n.name!==JS)return kr.QUIRKS;let e=n.systemId;if(e&&e.toLowerCase()===o8)return kr.QUIRKS;let t=n.publicId;if(t!==null){if(t=t.toLowerCase(),u8.indexOf(t)>-1)return kr.QUIRKS;let i=e===null?a8:ZS;if(XS(t,i))return kr.QUIRKS;if(i=e===null?eC:l8,XS(t,i))return kr.LIMITED_QUIRKS}return kr.NO_QUIRKS};Yl.serializeContent=function(n,e,t){let i="!DOCTYPE ";return n&&(i+=n),e?i+=" PUBLIC "+YS(e):t&&(i+=" SYSTEM"),t!==null&&(i+=" "+YS(t)),i}});var rC=me(ve=>{"use strict";var d8=tC(),{DOCUMENT_MODE:c8}=yf(),nC={element:1,text:3,cdata:4,comment:8},iC={tagName:"name",childNodes:"children",parentNode:"parent",previousSibling:"prev",nextSibling:"next",nodeValue:"data"},yi=class{constructor(e){for(let t of Object.keys(e))this[t]=e[t]}get firstChild(){let e=this.children;return e&&e[0]||null}get lastChild(){let e=this.children;return e&&e[e.length-1]||null}get nodeType(){return nC[this.type]||nC.element}};Object.keys(iC).forEach(n=>{let e=iC[n];Object.defineProperty(yi.prototype,n,{get:function(){return this[e]||null},set:function(t){return this[e]=t,t}})});ve.createDocument=function(){return new yi({type:"root",name:"root",parent:null,prev:null,next:null,children:[],"x-mode":c8.NO_QUIRKS})};ve.createDocumentFragment=function(){return new yi({type:"root",name:"root",parent:null,prev:null,next:null,children:[]})};ve.createElement=function(n,e,t){let i=Object.create(null),s=Object.create(null),r=Object.create(null);for(let o=0;o<t.length;o++){let a=t[o].name;i[a]=t[o].value,s[a]=t[o].namespace,r[a]=t[o].prefix}return new yi({type:n==="script"||n==="style"?n:"tag",name:n,namespace:e,attribs:i,"x-attribsNamespace":s,"x-attribsPrefix":r,children:[],parent:null,prev:null,next:null})};ve.createCommentNode=function(n){return new yi({type:"comment",data:n,parent:null,prev:null,next:null})};var sC=function(n){return new yi({type:"text",data:n,parent:null,prev:null,next:null})},Tf=ve.appendChild=function(n,e){let t=n.children[n.children.length-1];t&&(t.next=e,e.prev=t),n.children.push(e),e.parent=n},h8=ve.insertBefore=function(n,e,t){let i=n.children.indexOf(t),s=t.prev;s&&(s.next=e,e.prev=s),t.prev=e,e.next=t,n.children.splice(i,0,e),e.parent=n};ve.setTemplateContent=function(n,e){Tf(n,e)};ve.getTemplateContent=function(n){return n.children[0]};ve.setDocumentType=function(n,e,t,i){let s=d8.serializeContent(e,t,i),r=null;for(let o=0;o<n.children.length;o++)if(n.children[o].type==="directive"&&n.children[o].name==="!doctype"){r=n.children[o];break}r?(r.data=s,r["x-name"]=e,r["x-publicId"]=t,r["x-systemId"]=i):Tf(n,new yi({type:"directive",name:"!doctype",data:s,"x-name":e,"x-publicId":t,"x-systemId":i}))};ve.setDocumentMode=function(n,e){n["x-mode"]=e};ve.getDocumentMode=function(n){return n["x-mode"]};ve.detachNode=function(n){if(n.parent){let e=n.parent.children.indexOf(n),t=n.prev,i=n.next;n.prev=null,n.next=null,t&&(t.next=i),i&&(i.prev=t),n.parent.children.splice(e,1),n.parent=null}};ve.insertText=function(n,e){let t=n.children[n.children.length-1];t&&t.type==="text"?t.data+=e:Tf(n,sC(e))};ve.insertTextBefore=function(n,e,t){let i=n.children[n.children.indexOf(t)-1];i&&i.type==="text"?i.data+=e:h8(n,sC(e),t)};ve.adoptAttributes=function(n,e){for(let t=0;t<e.length;t++){let i=e[t].name;typeof n.attribs[i]>"u"&&(n.attribs[i]=e[t].value,n["x-attribsNamespace"][i]=e[t].namespace,n["x-attribsPrefix"][i]=e[t].prefix)}};ve.getFirstChild=function(n){return n.children[0]};ve.getChildNodes=function(n){return n.children};ve.getParentNode=function(n){return n.parent};ve.getAttrList=function(n){let e=[];for(let t in n.attribs)e.push({name:t,value:n.attribs[t],namespace:n["x-attribsNamespace"][t],prefix:n["x-attribsPrefix"][t]});return e};ve.getTagName=function(n){return n.name};ve.getNamespaceURI=function(n){return n.namespace};ve.getTextNodeContent=function(n){return n.data};ve.getCommentNodeContent=function(n){return n.data};ve.getDocumentTypeNodeName=function(n){return n["x-name"]};ve.getDocumentTypeNodePublicId=function(n){return n["x-publicId"]};ve.getDocumentTypeNodeSystemId=function(n){return n["x-systemId"]};ve.isTextNode=function(n){return n.type==="text"};ve.isCommentNode=function(n){return n.type==="comment"};ve.isDocumentTypeNode=function(n){return n.type==="directive"&&n.name==="!doctype"};ve.isElementNode=function(n){return!!n.attribs};ve.setNodeSourceCodeLocation=function(n,e){n.sourceCodeLocation=e};ve.getNodeSourceCodeLocation=function(n){return n.sourceCodeLocation};ve.updateNodeSourceCodeLocation=function(n,e){n.sourceCodeLocation=Object.assign(n.sourceCodeLocation,e)}});var aC=me((IG,oC)=>{"use strict";oC.exports={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]}});var bf=me((AG,lC)=>{var ga=aC(),uC={};for(let n of Object.keys(ga))uC[ga[n]]=n;var X={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};lC.exports=X;for(let n of Object.keys(X)){if(!("channels"in X[n]))throw new Error("missing channels property: "+n);if(!("labels"in X[n]))throw new Error("missing channel labels property: "+n);if(X[n].labels.length!==X[n].channels)throw new Error("channel and label counts mismatch: "+n);let{channels:e,labels:t}=X[n];delete X[n].channels,delete X[n].labels,Object.defineProperty(X[n],"channels",{value:e}),Object.defineProperty(X[n],"labels",{value:t})}X.rgb.hsl=function(n){let e=n[0]/255,t=n[1]/255,i=n[2]/255,s=Math.min(e,t,i),r=Math.max(e,t,i),o=r-s,a,u;r===s?a=0:e===r?a=(t-i)/o:t===r?a=2+(i-e)/o:i===r&&(a=4+(e-t)/o),a=Math.min(a*60,360),a<0&&(a+=360);let l=(s+r)/2;return r===s?u=0:l<=.5?u=o/(r+s):u=o/(2-r-s),[a,u*100,l*100]};X.rgb.hsv=function(n){let e,t,i,s,r,o=n[0]/255,a=n[1]/255,u=n[2]/255,l=Math.max(o,a,u),d=l-Math.min(o,a,u),h=function(m){return(l-m)/6/d+1/2};return d===0?(s=0,r=0):(r=d/l,e=h(o),t=h(a),i=h(u),o===l?s=i-t:a===l?s=1/3+e-i:u===l&&(s=2/3+t-e),s<0?s+=1:s>1&&(s-=1)),[s*360,r*100,l*100]};X.rgb.hwb=function(n){let e=n[0],t=n[1],i=n[2],s=X.rgb.hsl(n)[0],r=1/255*Math.min(e,Math.min(t,i));return i=1-1/255*Math.max(e,Math.max(t,i)),[s,r*100,i*100]};X.rgb.cmyk=function(n){let e=n[0]/255,t=n[1]/255,i=n[2]/255,s=Math.min(1-e,1-t,1-i),r=(1-e-s)/(1-s)||0,o=(1-t-s)/(1-s)||0,a=(1-i-s)/(1-s)||0;return[r*100,o*100,a*100,s*100]};function p8(n,e){return(n[0]-e[0])**2+(n[1]-e[1])**2+(n[2]-e[2])**2}X.rgb.keyword=function(n){let e=uC[n];if(e)return e;let t=1/0,i;for(let s of Object.keys(ga)){let r=ga[s],o=p8(n,r);o<t&&(t=o,i=s)}return i};X.keyword.rgb=function(n){return ga[n]};X.rgb.xyz=function(n){let e=n[0]/255,t=n[1]/255,i=n[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,i=i>.04045?((i+.055)/1.055)**2.4:i/12.92;let s=e*.4124+t*.3576+i*.1805,r=e*.2126+t*.7152+i*.0722,o=e*.0193+t*.1192+i*.9505;return[s*100,r*100,o*100]};X.rgb.lab=function(n){let e=X.rgb.xyz(n),t=e[0],i=e[1],s=e[2];t/=95.047,i/=100,s/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,s=s>.008856?s**(1/3):7.787*s+16/116;let r=116*i-16,o=500*(t-i),a=200*(i-s);return[r,o,a]};X.hsl.rgb=function(n){let e=n[0]/360,t=n[1]/100,i=n[2]/100,s,r,o;if(t===0)return o=i*255,[o,o,o];i<.5?s=i*(1+t):s=i+t-i*t;let a=2*i-s,u=[0,0,0];for(let l=0;l<3;l++)r=e+1/3*-(l-1),r<0&&r++,r>1&&r--,6*r<1?o=a+(s-a)*6*r:2*r<1?o=s:3*r<2?o=a+(s-a)*(2/3-r)*6:o=a,u[l]=o*255;return u};X.hsl.hsv=function(n){let e=n[0],t=n[1]/100,i=n[2]/100,s=t,r=Math.max(i,.01);i*=2,t*=i<=1?i:2-i,s*=r<=1?r:2-r;let o=(i+t)/2,a=i===0?2*s/(r+s):2*t/(i+t);return[e,a*100,o*100]};X.hsv.rgb=function(n){let e=n[0]/60,t=n[1]/100,i=n[2]/100,s=Math.floor(e)%6,r=e-Math.floor(e),o=255*i*(1-t),a=255*i*(1-t*r),u=255*i*(1-t*(1-r));switch(i*=255,s){case 0:return[i,u,o];case 1:return[a,i,o];case 2:return[o,i,u];case 3:return[o,a,i];case 4:return[u,o,i];case 5:return[i,o,a]}};X.hsv.hsl=function(n){let e=n[0],t=n[1]/100,i=n[2]/100,s=Math.max(i,.01),r,o;o=(2-t)*i;let a=(2-t)*s;return r=t*s,r/=a<=1?a:2-a,r=r||0,o/=2,[e,r*100,o*100]};X.hwb.rgb=function(n){let e=n[0]/360,t=n[1]/100,i=n[2]/100,s=t+i,r;s>1&&(t/=s,i/=s);let o=Math.floor(6*e),a=1-i;r=6*e-o,(o&1)!==0&&(r=1-r);let u=t+r*(a-t),l,d,h;switch(o){default:case 6:case 0:l=a,d=u,h=t;break;case 1:l=u,d=a,h=t;break;case 2:l=t,d=a,h=u;break;case 3:l=t,d=u,h=a;break;case 4:l=u,d=t,h=a;break;case 5:l=a,d=t,h=u;break}return[l*255,d*255,h*255]};X.cmyk.rgb=function(n){let e=n[0]/100,t=n[1]/100,i=n[2]/100,s=n[3]/100,r=1-Math.min(1,e*(1-s)+s),o=1-Math.min(1,t*(1-s)+s),a=1-Math.min(1,i*(1-s)+s);return[r*255,o*255,a*255]};X.xyz.rgb=function(n){let e=n[0]/100,t=n[1]/100,i=n[2]/100,s,r,o;return s=e*3.2406+t*-1.5372+i*-.4986,r=e*-.9689+t*1.8758+i*.0415,o=e*.0557+t*-.204+i*1.057,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,r=r>.0031308?1.055*r**(1/2.4)-.055:r*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,s=Math.min(Math.max(0,s),1),r=Math.min(Math.max(0,r),1),o=Math.min(Math.max(0,o),1),[s*255,r*255,o*255]};X.xyz.lab=function(n){let e=n[0],t=n[1],i=n[2];e/=95.047,t/=100,i/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,t=t>.008856?t**(1/3):7.787*t+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let s=116*t-16,r=500*(e-t),o=200*(t-i);return[s,r,o]};X.lab.xyz=function(n){let e=n[0],t=n[1],i=n[2],s,r,o;r=(e+16)/116,s=t/500+r,o=r-i/200;let a=r**3,u=s**3,l=o**3;return r=a>.008856?a:(r-16/116)/7.787,s=u>.008856?u:(s-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,s*=95.047,r*=100,o*=108.883,[s,r,o]};X.lab.lch=function(n){let e=n[0],t=n[1],i=n[2],s;s=Math.atan2(i,t)*360/2/Math.PI,s<0&&(s+=360);let o=Math.sqrt(t*t+i*i);return[e,o,s]};X.lch.lab=function(n){let e=n[0],t=n[1],s=n[2]/360*2*Math.PI,r=t*Math.cos(s),o=t*Math.sin(s);return[e,r,o]};X.rgb.ansi16=function(n,e=null){let[t,i,s]=n,r=e===null?X.rgb.hsv(n)[2]:e;if(r=Math.round(r/50),r===0)return 30;let o=30+(Math.round(s/255)<<2|Math.round(i/255)<<1|Math.round(t/255));return r===2&&(o+=60),o};X.hsv.ansi16=function(n){return X.rgb.ansi16(X.hsv.rgb(n),n[2])};X.rgb.ansi256=function(n){let e=n[0],t=n[1],i=n[2];return e===t&&t===i?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(i/255*5)};X.ansi16.rgb=function(n){let e=n%10;if(e===0||e===7)return n>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let t=(~~(n>50)+1)*.5,i=(e&1)*t*255,s=(e>>1&1)*t*255,r=(e>>2&1)*t*255;return[i,s,r]};X.ansi256.rgb=function(n){if(n>=232){let r=(n-232)*10+8;return[r,r,r]}n-=16;let e,t=Math.floor(n/36)/5*255,i=Math.floor((e=n%36)/6)/5*255,s=e%6/5*255;return[t,i,s]};X.rgb.hex=function(n){let t=(((Math.round(n[0])&255)<<16)+((Math.round(n[1])&255)<<8)+(Math.round(n[2])&255)).toString(16).toUpperCase();return"000000".substring(t.length)+t};X.hex.rgb=function(n){let e=n.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let t=e[0];e[0].length===3&&(t=t.split("").map(a=>a+a).join(""));let i=parseInt(t,16),s=i>>16&255,r=i>>8&255,o=i&255;return[s,r,o]};X.rgb.hcg=function(n){let e=n[0]/255,t=n[1]/255,i=n[2]/255,s=Math.max(Math.max(e,t),i),r=Math.min(Math.min(e,t),i),o=s-r,a,u;return o<1?a=r/(1-o):a=0,o<=0?u=0:s===e?u=(t-i)/o%6:s===t?u=2+(i-e)/o:u=4+(e-t)/o,u/=6,u%=1,[u*360,o*100,a*100]};X.hsl.hcg=function(n){let e=n[1]/100,t=n[2]/100,i=t<.5?2*e*t:2*e*(1-t),s=0;return i<1&&(s=(t-.5*i)/(1-i)),[n[0],i*100,s*100]};X.hsv.hcg=function(n){let e=n[1]/100,t=n[2]/100,i=e*t,s=0;return i<1&&(s=(t-i)/(1-i)),[n[0],i*100,s*100]};X.hcg.rgb=function(n){let e=n[0]/360,t=n[1]/100,i=n[2]/100;if(t===0)return[i*255,i*255,i*255];let s=[0,0,0],r=e%1*6,o=r%1,a=1-o,u=0;switch(Math.floor(r)){case 0:s[0]=1,s[1]=o,s[2]=0;break;case 1:s[0]=a,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=o;break;case 3:s[0]=0,s[1]=a,s[2]=1;break;case 4:s[0]=o,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=a}return u=(1-t)*i,[(t*s[0]+u)*255,(t*s[1]+u)*255,(t*s[2]+u)*255]};X.hcg.hsv=function(n){let e=n[1]/100,t=n[2]/100,i=e+t*(1-e),s=0;return i>0&&(s=e/i),[n[0],s*100,i*100]};X.hcg.hsl=function(n){let e=n[1]/100,i=n[2]/100*(1-e)+.5*e,s=0;return i>0&&i<.5?s=e/(2*i):i>=.5&&i<1&&(s=e/(2*(1-i))),[n[0],s*100,i*100]};X.hcg.hwb=function(n){let e=n[1]/100,t=n[2]/100,i=e+t*(1-e);return[n[0],(i-e)*100,(1-i)*100]};X.hwb.hcg=function(n){let e=n[1]/100,i=1-n[2]/100,s=i-e,r=0;return s<1&&(r=(i-s)/(1-s)),[n[0],s*100,r*100]};X.apple.rgb=function(n){return[n[0]/65535*255,n[1]/65535*255,n[2]/65535*255]};X.rgb.apple=function(n){return[n[0]/255*65535,n[1]/255*65535,n[2]/255*65535]};X.gray.rgb=function(n){return[n[0]/100*255,n[0]/100*255,n[0]/100*255]};X.gray.hsl=function(n){return[0,0,n[0]]};X.gray.hsv=X.gray.hsl;X.gray.hwb=function(n){return[0,100,n[0]]};X.gray.cmyk=function(n){return[0,0,0,n[0]]};X.gray.lab=function(n){return[n[0],0,0]};X.gray.hex=function(n){let e=Math.round(n[0]/100*255)&255,i=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(i.length)+i};X.rgb.gray=function(n){return[(n[0]+n[1]+n[2])/3/255*100]}});var cC=me((MG,dC)=>{var Xl=bf();function m8(){let n={},e=Object.keys(Xl);for(let t=e.length,i=0;i<t;i++)n[e[i]]={distance:-1,parent:null};return n}function f8(n){let e=m8(),t=[n];for(e[n].distance=0;t.length;){let i=t.pop(),s=Object.keys(Xl[i]);for(let r=s.length,o=0;o<r;o++){let a=s[o],u=e[a];u.distance===-1&&(u.distance=e[i].distance+1,u.parent=i,t.unshift(a))}}return e}function g8(n,e){return function(t){return e(n(t))}}function y8(n,e){let t=[e[n].parent,n],i=Xl[e[n].parent][n],s=e[n].parent;for(;e[s].parent;)t.unshift(e[s].parent),i=g8(Xl[e[s].parent][s],i),s=e[s].parent;return i.conversion=t,i}dC.exports=function(n){let e=f8(n),t={},i=Object.keys(e);for(let s=i.length,r=0;r<s;r++){let o=i[r];e[o].parent!==null&&(t[o]=y8(o,e))}return t}});var pC=me((EG,hC)=>{var vf=bf(),T8=cC(),Pr={},b8=Object.keys(vf);function v8(n){let e=function(...t){let i=t[0];return i==null?i:(i.length>1&&(t=i),n(t))};return"conversion"in n&&(e.conversion=n.conversion),e}function S8(n){let e=function(...t){let i=t[0];if(i==null)return i;i.length>1&&(t=i);let s=n(t);if(typeof s=="object")for(let r=s.length,o=0;o<r;o++)s[o]=Math.round(s[o]);return s};return"conversion"in n&&(e.conversion=n.conversion),e}b8.forEach(n=>{Pr[n]={},Object.defineProperty(Pr[n],"channels",{value:vf[n].channels}),Object.defineProperty(Pr[n],"labels",{value:vf[n].labels});let e=T8(n);Object.keys(e).forEach(i=>{let s=e[i];Pr[n][i]=S8(s),Pr[n][i].raw=v8(s)})});hC.exports=Pr});var bC=me((RG,TC)=>{"use strict";var mC=(n,e)=>(...t)=>`\x1B[${n(...t)+e}m`,fC=(n,e)=>(...t)=>{let i=n(...t);return`\x1B[${38+e};5;${i}m`},gC=(n,e)=>(...t)=>{let i=n(...t);return`\x1B[${38+e};2;${i[0]};${i[1]};${i[2]}m`},Jl=n=>n,yC=(n,e,t)=>[n,e,t],_r=(n,e,t)=>{Object.defineProperty(n,e,{get:()=>{let i=t();return Object.defineProperty(n,e,{value:i,enumerable:!0,configurable:!0}),i},enumerable:!0,configurable:!0})},Sf,Lr=(n,e,t,i)=>{Sf===void 0&&(Sf=pC());let s=i?10:0,r={};for(let[o,a]of Object.entries(Sf)){let u=o==="ansi16"?"ansi":o;o===e?r[u]=n(t,s):typeof a=="object"&&(r[u]=n(a[e],s))}return r};function C8(){let n=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[t,i]of Object.entries(e)){for(let[s,r]of Object.entries(i))e[s]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},i[s]=e[s],n.set(r[0],r[1]);Object.defineProperty(e,t,{value:i,enumerable:!1})}return Object.defineProperty(e,"codes",{value:n,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",_r(e.color,"ansi",()=>Lr(mC,"ansi16",Jl,!1)),_r(e.color,"ansi256",()=>Lr(fC,"ansi256",Jl,!1)),_r(e.color,"ansi16m",()=>Lr(gC,"rgb",yC,!1)),_r(e.bgColor,"ansi",()=>Lr(mC,"ansi16",Jl,!0)),_r(e.bgColor,"ansi256",()=>Lr(fC,"ansi256",Jl,!0)),_r(e.bgColor,"ansi16m",()=>Lr(gC,"rgb",yC,!0)),e}Object.defineProperty(TC,"exports",{enumerable:!0,get:C8})});var CC=me((kG,SC)=>{"use strict";var w8=by("os"),vC=by("tty"),yn=jR(),{env:rt}=process,Qi;yn("no-color")||yn("no-colors")||yn("color=false")||yn("color=never")?Qi=0:(yn("color")||yn("colors")||yn("color=true")||yn("color=always"))&&(Qi=1);"FORCE_COLOR"in rt&&(rt.FORCE_COLOR==="true"?Qi=1:rt.FORCE_COLOR==="false"?Qi=0:Qi=rt.FORCE_COLOR.length===0?1:Math.min(parseInt(rt.FORCE_COLOR,10),3));function Cf(n){return n===0?!1:{level:n,hasBasic:!0,has256:n>=2,has16m:n>=3}}function wf(n,e){if(Qi===0)return 0;if(yn("color=16m")||yn("color=full")||yn("color=truecolor"))return 3;if(yn("color=256"))return 2;if(n&&!e&&Qi===void 0)return 0;let t=Qi||0;if(rt.TERM==="dumb")return t;if(process.platform==="win32"){let i=w8.release().split(".");return Number(i[0])>=10&&Number(i[2])>=10586?Number(i[2])>=14931?3:2:1}if("CI"in rt)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(i=>i in rt)||rt.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in rt)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(rt.TEAMCITY_VERSION)?1:0;if(rt.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in rt){let i=parseInt((rt.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(rt.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(rt.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(rt.TERM)||"COLORTERM"in rt?1:t}function x8(n){let e=wf(n,n&&n.isTTY);return Cf(e)}SC.exports={supportsColor:x8,stdout:Cf(wf(!0,vC.isatty(1))),stderr:Cf(wf(!0,vC.isatty(2)))}});var xC=me((PG,wC)=>{"use strict";var I8=(n,e,t)=>{let i=n.indexOf(e);if(i===-1)return n;let s=e.length,r=0,o="";do o+=n.substr(r,i-r)+e+t,r=i+s,i=n.indexOf(e,r);while(i!==-1);return o+=n.substr(r),o},A8=(n,e,t,i)=>{let s=0,r="";do{let o=n[i-1]==="\r";r+=n.substr(s,(o?i-1:i)-s)+e+(o?`\r
@@ -127,7 +127,7 @@ Please report this to https://github.com/markedjs/marked.`,n){let i="<p>An error
127
127
  `);ai.mkdirSync(Cs.dirname(J),{recursive:!0}),ai.writeFileSync(J,Ne),this.stop();let nt=[`Rendered line ${W} exceeds terminal width (${w(G)} > ${e}).`,"","This is likely caused by a custom TUI component not truncating its output.","Use visibleWidth() to measure and truncateToWidth() to truncate lines.","",`Debug log written to: ${J}`].join(`
128
128
  `);throw new Error(nt)}re.append(G)}let Bn=Rt;if(this.previousLines.length>m.length){if(Rt<m.length-1){let G=m.length-1-Rt;re.append(`\x1B[${G}B`),Bn=m.length-1}let W=this.previousLines.length-m.length;for(let G=m.length;G<this.previousLines.length;G++)re.append(`\r
129
129
  \x1B[2K`);re.append(`\x1B[${W}A`)}if(process.env.PI_TUI_DEBUG==="1"){let W="/tmp/tui";ai.mkdirSync(W,{recursive:!0});let G=Cs.join(W,`render-${Date.now()}-${Math.random().toString(36).slice(2)}.log`),le=[`firstChanged: ${B}`,`viewportTop: ${a}`,`cursorRow: ${this.cursorRow}`,`height: ${t}`,`lineDiff: ${Qe}`,`hardwareCursorRow: ${d}`,`renderEnd: ${Rt}`,`finalCursorRow: ${Bn}`,`cursorPos: ${JSON.stringify(v)}`,`newLines.length: ${m.length}`,`previousLines.length: ${this.previousLines.length}`,"","=== newLines ===",JSON.stringify(m,null,2),"","=== previousLines ===",JSON.stringify(this.previousLines,null,2),"","=== buffer ===",`[${re.length} chars written in bounded chunks]`].join(`
130
- `);ai.writeFileSync(G,le)}this.cursorRow=Math.max(0,m.length-1),this.hardwareCursorRow=Bn,this.maxLinesRendered=Math.max(this.maxLinesRendered,m.length),this.previousViewportTop=Math.max(o,Bn-t+1),this.positionHardwareCursor(v,m.length,re),re.append("\x1B[?2026l"),re.flush(),this.previousLines=m,this.previousKittyImageIds=this.collectKittyImageIds(m),this.previousWidth=e,this.previousHeight=t}positionHardwareCursor(e,t,i){if(!e||t<=0){i?i.append("\x1B[?25l"):this.terminal.hideCursor();return}let s=Math.max(0,Math.min(e.row,t-1)),r=Math.max(0,e.col),o=s-this.hardwareCursorRow,a="";o>0?a+=`\x1B[${o}B`:o<0&&(a+=`\x1B[${-o}A`),a+=`\x1B[${r+1}G`,a&&(i?i.append(a):this.terminal.write(a)),this.hardwareCursorRow=s,i?i.append(this.getShowHardwareCursor()?"\x1B[?25h":"\x1B[?25l"):this.getShowHardwareCursor()?this.terminal.showCursor():this.terminal.hideCursor()}};function TP(n){let e=SP(n.env),t=vm(n.env),i=bP(n.env),s=n.isTTY&&n.env.TERM!=="dumb",r=vP(n,s);return Object.freeze({terminalId:e,platform:n.platform,isTTY:n.isTTY,transport:i,multiplexer:t,color:r>0,colorLevel:r})}function bP(n){return ov(n)?"ssh":"local"}function gr(){return TP({platform:process.platform,isTTY:!!(process.stdin.isTTY&&process.stdout.isTTY),env:process.env,colorDepth:process.stdout.getColorDepth?.(process.env)})}function vP(n,e){if(!e||n.env.NO_COLOR!==void 0||n.env.FORCE_COLOR==="0")return 0;if(n.env.FORCE_COLOR!==void 0){let s=Number.parseInt(n.env.FORCE_COLOR,10);return Number.isInteger(s)?Math.max(1,Math.min(3,s)):1}if((n.colorDepth??0)>=24)return 3;if((n.colorDepth??0)>=8)return 2;if((n.colorDepth??0)>=4)return 1;let t=n.env.COLORTERM?.toLocaleLowerCase();if(t==="truecolor"||t==="24bit")return 3;let i=n.env.TERM?.toLocaleLowerCase()??"";return i.includes("truecolor")||i.includes("24bit")?3:i.includes("256color")?2:1}function SP(n){if(n.WT_SESSION&&!ov(n))return"windows-terminal";let e=n.TERM_PROGRAM?.toLocaleLowerCase();if(e==="apple_terminal")return"apple-terminal";if(e==="ghostty")return"ghostty";if(e==="iterm.app")return"iterm2";if(e==="vscode")return"vscode";if(e==="wezterm")return"wezterm";let t=n.TERM?.toLocaleLowerCase()??"";return t.includes("ghostty")?"ghostty":t.includes("kitty")||n.KITTY_WINDOW_ID?"kitty":t.includes("wezterm")?"wezterm":"unknown"}function vm(n){if(n.TMUX)return"tmux";let e=n.TERM?.toLocaleLowerCase()??"";return e.startsWith("tmux")?"tmux":e.startsWith("screen")?"screen":"none"}function ov(n){return!!(n.SSH_CONNECTION||n.SSH_CLIENT||n.SSH_TTY)}var CP=new Set(["EIO","EPIPE","ENOTCONN","EOF"]);function xs(n,e){return xP(n)&&wP(e)}function wP(n){return typeof n=="object"&&n!==null&&"code"in n&&typeof n.code=="string"&&CP.has(n.code)}function xP(n){return n==="stdout.error"||n==="stderr.error"||n.startsWith("terminal.")}function av(n){let e=!1,t=!1,i=!1,s=!1,r=_=>{try{n.report(_)}catch{}},o=(_,B)=>{try{n.capture?.(_,B)}catch{}},a=_=>{try{n.onStopFailure?.(_)}catch{}},u=_=>{try{n.onStopCause?.(_)}catch{}},l=(_,B,F=!1)=>{if(e)return;e=!0,u(_);let q=()=>F||_.terminalDead||n.isTerminalDead?.()===!0;Promise.resolve().then(()=>n.stop()).catch(ee=>{n.process.exitCode=1;let ce=q()||xs("terminal.stop.sync",ee);o(ee,{origin:"shutdown",...ce?{terminalDead:!0}:{}}),ce||r(ee),a(ee)}).finally(()=>{B!==void 0&&!q()&&r(B)})},d=(_,B,F)=>{n.process.exitCode=1;let q=xs(_,F);o(F,{origin:B,...q?{terminalDead:!0}:{}}),l({source:_,error:F,terminalDead:q},F)},h=_=>l({source:"signal",signal:_,terminalDead:!1}),m=()=>h("SIGINT"),f=()=>h("SIGTERM"),y=()=>h("SIGHUP"),T=()=>h("SIGBREAK"),b=!!(n.suspend&&n.resume&&n.suspendProcess),v=()=>{!b||e||i||s||(i=!0,Promise.resolve().then(()=>n.suspend?.()).then(()=>{e||t||(s=!0,n.process.off("SIGTSTP",v),n.suspendProcess?.())}).catch(_=>d("suspend.failure","suspend",_)).finally(()=>{i=!1}))},I=()=>{!b||e||!s||(s=!1,n.process.on("SIGTSTP",v),Promise.resolve().then(()=>n.resume?.()).catch(_=>d("resume.failure","resume",_)))},k=_=>d("uncaughtException","uncaughtException",_),R=_=>d("unhandledRejection","unhandledRejection",_),D=(_,B)=>{let F={source:_,error:B,terminalDead:xs(_,B)};if(o(B,{origin:_==="stdout.error"?"stdout":"stderr",...F.terminalDead?{terminalDead:!0}:{}}),!F.terminalDead){n.process.exitCode=1,l(F,B);return}n.process.exitCode=1,l(F,void 0,!0)},E=_=>D("stdout.error",_),$=_=>D("stderr.error",_);return n.process.on("SIGINT",m),n.process.on("SIGTERM",f),n.process.on("SIGHUP",y),n.process.on("SIGBREAK",T),b&&(n.process.on("SIGTSTP",v),n.process.on("SIGCONT",I)),n.process.on("uncaughtException",k),n.process.on("unhandledRejection",R),n.process.stdout.on("error",E),n.process.stderr.on("error",$),()=>{t||(t=!0,n.process.off("SIGINT",m),n.process.off("SIGTERM",f),n.process.off("SIGHUP",y),n.process.off("SIGBREAK",T),b&&(n.process.off("SIGTSTP",v),n.process.off("SIGCONT",I)),n.process.off("uncaughtException",k),n.process.off("unhandledRejection",R),n.process.stdout.off("error",E),n.process.stderr.off("error",$))}}function lv(n,e){let t=(i,s,r)=>{try{return s()}catch(o){throw uv(e,{source:i,error:o,terminalDead:xs(i,o),...r===void 0?{}:{bytes:r}}),o}};return{get columns(){return n.columns},get rows(){return n.rows},get kittyProtocolActive(){return n.kittyProtocolActive},get outputPending(){return n.outputPending},drainOutput:()=>n.drainOutput?.()??Promise.resolve(),start:(i,s)=>t("terminal.start.sync",()=>n.start(i,s)),stop:()=>t("terminal.stop.sync",()=>n.stop()),drainInput:(i,s)=>n.drainInput(i,s).catch(r=>{let o="terminal.drainInput.async";throw uv(e,{source:o,error:r,terminalDead:xs(o,r)}),r}),write:i=>t("terminal.write.sync",()=>n.write(i),Buffer.byteLength(i,"utf8")),moveBy:i=>t("terminal.moveBy.sync",()=>n.moveBy(i)),hideCursor:()=>t("terminal.hideCursor.sync",()=>n.hideCursor()),showCursor:()=>t("terminal.showCursor.sync",()=>n.showCursor()),clearLine:()=>t("terminal.clearLine.sync",()=>n.clearLine()),clearFromCursor:()=>t("terminal.clearFromCursor.sync",()=>n.clearFromCursor()),clearScreen:()=>t("terminal.clearScreen.sync",()=>n.clearScreen()),setTitle:i=>t("terminal.setTitle.sync",()=>n.setTitle(i)),setProgress:i=>t("terminal.setProgress.sync",()=>n.setProgress(i))}}function uv(n,e){try{n(e)}catch{}}import{executionAsyncId as IP,executionAsyncResource as AP,triggerAsyncId as MP}from"node:async_hooks";var EP=1024,RP=8192;function pv(n,e){let t=e.asyncContext??{executionAsyncId:IP(),triggerAsyncId:MP(),resource:AP()};return{source:n.source,terminalDead:n.terminalDead,...n.signal?{signal:n.signal}:{},...n.bytes===void 0?{}:{bytes:n.bytes},...n.error===void 0?{}:{error:LP(n.error,e)},runtime:{nodeVersion:process.version,...process.versions.uv?{uvVersion:process.versions.uv}:{},platform:process.platform,arch:process.arch,pid:process.pid},asyncResource:kP(t),stdout:cv(process.stdout),stderr:cv(process.stderr)}}function kP(n){let e=Sm(n.resource,["owner","_owner"]),t=Sm(n.resource,["stream","_stream"]),i=Sm(n.resource,["handle","_handle"]);return{executionAsyncId:n.executionAsyncId,triggerAsyncId:n.triggerAsyncId,resource:ll(n.resource),...e===void 0?{}:{owner:ll(e)},...t===void 0?{}:{stream:ll(t)},...i===void 0?{}:{handle:ll(i)}}}function ll(n){return{constructorName:mv(n).slice(0,128),identity:n===process.stdout?"stdout":n===process.stderr?"stderr":"other",fd:PP(n),..._P(n)}}function PP(n){let e=Tr(n,"fd");return e===1||e===2?e:"other"}function _P(n){let e=Tr(n,"listenerCount");if(typeof e!="function")return{};try{let t=e.call(n,"error");return typeof t=="number"&&Number.isFinite(t)?{errorListenerCount:Math.max(0,Math.floor(t))}:{}}catch{return{}}}function Sm(n,e){for(let t of e){let i=Tr(n,t);if(i!==void 0)return i}}function LP(n,e){let t=dl(n,"name")??(n instanceof Error?n.name:void 0),i=dl(n,"message")??(typeof n=="string"||typeof n=="number"||typeof n=="boolean"?String(n):void 0),s=dl(n,"stack"),r=hv(n,"code"),o=hv(n,"errno"),a=dl(n,"syscall");return{...t?{name:Yo(t,e,256)}:{},...i?{message:Yo(i,e,EP)}:{},...r===void 0?{}:{code:dv(r,e)},...o===void 0?{}:{errno:dv(o,e)},...a?{syscall:Yo(a,e,256)}:{},...s?{stack:Yo(s,e,RP)}:{}}}function dv(n,e){return typeof n=="number"?n:Yo(n,e,256)}function cv(n){return{constructorName:mv(n),...yr(n,"isTTY"),...yr(n,"writable"),...yr(n,"destroyed"),...yr(n,"writableEnded"),...yr(n,"writableFinished"),...yr(n,"writableNeedDrain")}}function mv(n){try{if(typeof n!="object"||n===null)return typeof n;let e=n.constructor?.name;return typeof e=="string"&&e?e:"unknown"}catch{return"unknown"}}function yr(n,e){let t=Tr(n,e);return typeof t=="boolean"?{[e]:t}:{}}function dl(n,e){let t=Tr(n,e);return typeof t=="string"?t:void 0}function hv(n,e){let t=Tr(n,e);return typeof t=="string"||typeof t=="number"?t:void 0}function Tr(n,e){try{return typeof n!="object"&&typeof n!="function"||n===null?void 0:n[e]}catch{return}}function Yo(n,e,t){let i=bu(n),s=[{path:e.workspaceDir,label:"[workspace]"},{path:e.homeDirectory,label:"[home]"}].sort((r,o)=>o.path.length-r.path.length);for(let r of s)for(let o of OP(r.path))i=i.split(o).join(r.label);return i.slice(0,t)}function OP(n){let e=new Set([n,n.replaceAll("\\","/"),n.replaceAll("/","\\")]);return e.delete(""),[...e]}import NP from"node:path";async function fv(n){try{let{loadConfigFromFile:e}=await import("./dist-PBZ5PIWM.js"),i=e(NP.join(n,"config.yaml"),{dataDir:n}).tui;return{...typeof i?.showTips=="boolean"?{showTips:i.showTips}:{},...Array.isArray(i?.statusLine)?{statusLineItems:i.statusLine}:{},...i?.notifications?{notifications:i.notifications}:{},...i?.customStatusLine?.command?{customStatusLine:i.customStatusLine}:{}}}catch{return{}}}var DP={ctrl:"Ctrl",alt:"Alt",shift:"Shift",super:"Super"},FP={ctrl:"Ctrl",alt:"Option",shift:"Shift",super:"Command"},$P={up:"Up",down:"Down",left:"Left",right:"Right"},gv={escape:"Esc",enter:"Enter",tab:"Tab",space:"Space",backspace:"Backspace",delete:"Delete",home:"Home",end:"End",pageup:"PgUp",pagedown:"PgDn"},BP={...gv,home:"Fn+Left",end:"Fn+Right",pageup:"Fn+Up",pagedown:"Fn+Down"};function qP(n){return n==="darwin"?FP:DP}function HP(n){return n==="darwin"?BP:gv}function yv(n,e=process.platform,t=process.env.TERM_PROGRAM){let i=n.toLowerCase().split("+"),s=i.pop()??"";s==="/"&&i.includes("ctrl")&&!UP(t)&&(s="-");let r=qP(e);return[...i.map(o=>r[o]??o),$P[s]??HP(e)[s]??s.toUpperCase()].join("+")}function UP(n=process.env.TERM_PROGRAM){return n!=="Apple_Terminal"}var KP=/^[a-z0-9][a-z0-9._/-]*$/u,WP=/^(?:(?:ctrl|shift|alt|super)\+)*(?:[a-z0-9\-/]|escape|enter|tab|space|backspace|delete|home|end|pageUp|pageDown|up|down|left|right)$/u,hl=class n{constructor(e=[],t=process.platform,i,s={}){this.platform=t;this.engineKeybindings=i;this.baseOverrides=s;for(let r of e)this.register(r)}bindings=new Map;register(e){if(YP(e),this.bindings.has(e.id))throw new Error(`Duplicate keybinding id: ${e.id}`);let t=[...this.bindings.values()].find(i=>cl(i.key)===cl(e.key)&&Tv(i.when,e.when));if(t)throw new Error(`Keybinding conflict: ${e.key} is already registered for ${t.id}`);this.bindings.set(e.id,e)}resolve(e,t){if(!dn(e))return[...this.bindings.values()].find(i=>this.matches(e,i)&&XP(i.when,t)&&!(i.action==="restore-draft"&&t.hasRestorableDraft!==!0)&&!(i.action==="toggle-side-session"&&t.hasRestorableDraft===!0&&e==="")&&!(i.action==="restore-waiting"&&t.hasWaitingMessage!==!0))?.action}list(){return[...this.bindings.values()].map(e=>this.effective(e))}get(e){let t=this.bindings.get(e);return t?this.effective(t):void 0}keys(e){let t=this.bindings.get(e);return t?this.engineKeybindings?.getKeys(e)??[t.key]:Object.hasOwn(or,e)?(this.engineKeybindings??se()).getKeys(e):[]}findConflicts(e){let t=[...this.bindings.values()].map(s=>({definition:s,keys:this.keysForOverrides(s.id,e)})),i=[];for(let s=0;s<t.length;s+=1){let r=t[s];if(r)for(let o=s+1;o<t.length;o+=1){let a=t[o];if(a&&Tv(r.definition.when,a.definition.when))for(let u of r.keys)a.keys.some(l=>cl(l)===cl(u))&&i.push({key:u,ids:[r.definition.id,a.definition.id]})}}return i}format(e){return yv(e,this.platform)}help(e=!0){return this.list().filter(t=>t.description&&t.helpOrder!==void 0&&(e||!t.queueOnly)).sort((t,i)=>(t.helpOrder??0)-(i.helpOrder??0))}helpRows(e=!0){let t=new Map;for(let i of this.help(e)){let s=i.helpGroup??i.id,r=t.get(s);if(r){r.ids.push(i.id),r.keys.push(...this.keys(i.id).map(o=>this.format(o))),r.order=Math.min(r.order,i.helpOrder??0);continue}t.set(s,{ids:[i.id],keys:this.keys(i.id).map(o=>this.format(o)),description:i.description??"",order:i.helpOrder??0})}return[...t.values()].sort((i,s)=>i.order-s.order).map(i=>({ids:i.ids,keys:i.keys.length>0?i.keys.join(" / "):"Unbound",description:i.description}))}withOverrides(e){let t=this.list().map(i=>{if(!(i.id in e))return i;let s=e[i.id],r=Array.isArray(s)?s[0]:s;return r?{...i,key:r}:i});for(let i of Object.keys(e))if(!this.bindings.has(i))throw new Error(`Unknown keybinding id: ${i}`);return new n(t,this.platform)}matches(e,t){return this.engineKeybindings?.matches(e,t.id)??S(e,t.key)}effective(e){let t=this.keys(e.id)[0];return t&&t!==e.key?{...e,key:t}:e}keysForOverrides(e,t){let i=t[e];if(i!==void 0)return Array.isArray(i)?[...i]:[i];let s=this.baseOverrides[e];if(s!==void 0)return Array.isArray(s)?[...s]:[s];let r=this.bindings.get(e);return r?[r.key]:[]}};function cl(n){let e=n.toLocaleLowerCase().split("+"),t=e.pop()??"";return`${e.sort().join("+")}+${t}`}var bv=[{id:"app.clear",key:"ctrl+c",action:"clear",when:"composer",description:"Clear the Composer; press twice to exit",helpOrder:120},{id:"app.interrupt",key:"escape",action:"interrupt",when:"composer",description:"Close the current panel, or interrupt the active turn",helpOrder:110},{id:"app.exit",key:"ctrl+d",action:"exit",when:"composer",description:"Exit when the Composer is empty",helpOrder:121},{id:"app.suspend",key:"ctrl+z",action:"suspend",when:"application",description:"Suspend MCode and return to the shell",helpOrder:122},{id:"app.toggle-side-session",key:"ctrl+/",action:"toggle-side-session",when:"application",description:"Toggle between the parent and temporary side conversation",helpOrder:123},{id:"welcome.resume-codex",key:"ctrl+u",action:"resume-codex",when:"idle"},{id:"composer.paste-image",key:"ctrl+v",action:"paste-image",when:"composer",description:"Paste an image or copied video file from the clipboard",helpOrder:70},{id:"composer.paste-image-windows",key:"alt+v",action:"paste-image",when:"composer"},{id:"composer.paste-image-macos",key:"super+v",action:"paste-image",when:"composer",description:"Paste an image or copied video file from the clipboard",helpOrder:70},{id:"composer.external-editor",key:"ctrl+g",action:"open-external-editor",when:"composer",description:"Search prompt history / edit in an external editor",helpOrder:50,helpGroup:"composer.prompt-tools"},{id:"composer.search-history",key:"ctrl+r",action:"search-history",when:"composer",description:"Search prompt history / edit in an external editor",helpOrder:40,helpGroup:"composer.prompt-tools"},{id:"run.submit-guidance",key:"enter",action:"submit-guidance",when:"live-run",description:"Guide the current response with the current Draft",helpOrder:90},{id:"run.queue-draft",key:"alt+enter",action:"queue-draft",when:"live-run",description:"Queue the current Draft for the next turn",helpOrder:91,queueOnly:!0},{id:"run.restore-waiting-option",key:"alt+up",action:"restore-waiting",when:"live-run",description:"Move the latest queued message back to the Composer",helpOrder:92,helpGroup:"run.restore-waiting",queueOnly:!0},{id:"run.restore-waiting-shift-left",key:"shift+left",action:"restore-waiting",when:"live-run",description:"Move the latest queued message back to the Composer",helpOrder:92,helpGroup:"run.restore-waiting",queueOnly:!0},{id:"composer.toggle-tasks",key:"ctrl+t",action:"toggle-tasks",when:"composer",description:"Show or hide the full Todo list",helpOrder:25},{id:"composer.toggle-details",key:"ctrl+o",action:"toggle-details",when:"composer",description:"Show or hide Thinking, Tool output, and diffs",helpOrder:20},{id:"composer.toggle-plan",key:"shift+tab",action:"toggle-plan",when:"composer",description:"Plan Mode: Default or Plan",helpOrder:10},{id:"composer.cycle-permission",key:"alt+m",action:"cycle-permission",when:"composer",description:"Permission mode: Ask, Auto, Full access",helpOrder:11},{id:"composer.restore-draft",key:"ctrl+-",action:"restore-draft",when:"composer",description:"Undo the last Draft clear",helpOrder:60},{id:"interaction.scroll-up",key:"pageUp",action:"scroll-up",when:"interaction",description:"Scroll the current interaction",helpOrder:80,helpGroup:"interaction.navigation"},{id:"interaction.scroll-down",key:"pageDown",action:"scroll-down",when:"interaction",description:"Scroll the current interaction",helpOrder:81,helpGroup:"interaction.navigation"}];function jP(){return new hl(bv)}function VP(n){let e="composer.paste-media",t=n.platform==="win32"||n.windowsClipboardInterop===!0;return bv.flatMap(s=>s.id==="app.suspend"&&!n.suspendSupported?[]:s.id==="composer.paste-image-windows"&&!t?[]:s.id==="composer.paste-image-macos"&&n.platform!=="darwin"?[]:s.id==="composer.restore-draft"&&n.platform==="win32"?[{...s,key:"ctrl+z"}]:s.id==="composer.paste-image"&&(t||n.platform==="darwin")?[{...s,...t?{key:"alt+v"}:{},helpGroup:e}]:s.id==="composer.paste-image-windows"?[{...s,key:"ctrl+v",description:"Paste an image or copied video file from the clipboard",helpOrder:70,helpGroup:e}]:s.id==="composer.paste-image-macos"?[{...s,description:"Paste an image or copied video file from the clipboard",helpOrder:70,helpGroup:e}]:[s])}function vv(n){let e=VP(n),t=GP(n.platform),i=new rr({...or,...zP(e)},{...t,...n.userOverrides??{}});return{manager:i,registry:new hl(e,n.platform,i,t),hostOverrides:t}}function GP(n){return{"tui.altScreen.previousPrompt":["ctrl+shift+up","ctrl+up"],"tui.altScreen.nextPrompt":["ctrl+shift+down","ctrl+down"],...n==="win32"?{"tui.editor.undo":["ctrl+-","ctrl+z"]}:{}}}function zP(n){return Object.fromEntries(n.map(e=>[e.id,{defaultKeys:e.key,description:e.description}]))}var Cm=jP();function ui(){return Cm}function Ce(n,e=Cm){Object.hasOwn(or,n)||QP(n,e);let t=e.keys(n);return t.length>0?t.map(i=>e.format(i)).join(" / "):"Unbound"}function QP(n,e=Cm){let t=e.get(n);if(!t)throw new Error(`Unknown keybinding id: ${n}`);return t}function YP(n){if(!KP.test(n.id))throw new Error(`Invalid keybinding id: ${n.id}`);if(!WP.test(n.key))throw new Error(`Invalid keybinding key: ${n.key}`)}function XP(n,e){return n==="application"?!0:n==="interaction"?e.interactionActive:e.interactionActive?!1:n==="composer"?!0:n==="idle"?!e.hasLiveRun:n==="waiting"?e.hasWaitingMessage===!0:e.hasLiveRun}function Tv(n,e){return n==="application"||e==="application"?!0:n==="interaction"||e==="interaction"?n===e:n==="composer"||e==="composer"||n===e||n==="waiting"||e==="waiting"}import{mkdirSync as JP,readFileSync as ZP,renameSync as e2,unlinkSync as t2,writeFileSync as n2}from"node:fs";import wm from"node:path";var i2="tui",Sv="keybindings.json";function Cv(n){return wm.join(n,i2,Sv)}function xm(n){let e=Cv(n);try{let t=JSON.parse(ZP(e,"utf8").replace(/^\uFEFF/u,""));if(!t||typeof t!="object"||Array.isArray(t))throw new Error("keybindings must be a JSON object");let i={};for(let[s,r]of Object.entries(t))if(typeof r=="string")i[s]=r;else if(Array.isArray(r)&&r.every(o=>typeof o=="string"))i[s]=r;else if(r!==null)throw new Error(`binding "${s}" must be a string or an array of strings`);return{path:e,overrides:i}}catch(t){return r2(t)?{path:e,overrides:{}}:{path:e,overrides:{},error:t instanceof Error?t.message:String(t)}}}function wv(n,e){let t=Cv(n),i=wm.dirname(t);JP(i,{recursive:!0,mode:448});let s=wm.join(i,`.${Sv}.${process.pid}.${Date.now()}.tmp`),r=`${JSON.stringify(s2(e),null,2)}
130
+ `);ai.writeFileSync(G,le)}this.cursorRow=Math.max(0,m.length-1),this.hardwareCursorRow=Bn,this.maxLinesRendered=Math.max(this.maxLinesRendered,m.length),this.previousViewportTop=Math.max(o,Bn-t+1),this.positionHardwareCursor(v,m.length,re),re.append("\x1B[?2026l"),re.flush(),this.previousLines=m,this.previousKittyImageIds=this.collectKittyImageIds(m),this.previousWidth=e,this.previousHeight=t}positionHardwareCursor(e,t,i){if(!e||t<=0){i?i.append("\x1B[?25l"):this.terminal.hideCursor();return}let s=Math.max(0,Math.min(e.row,t-1)),r=Math.max(0,e.col),o=s-this.hardwareCursorRow,a="";o>0?a+=`\x1B[${o}B`:o<0&&(a+=`\x1B[${-o}A`),a+=`\x1B[${r+1}G`,a&&(i?i.append(a):this.terminal.write(a)),this.hardwareCursorRow=s,i?i.append(this.getShowHardwareCursor()?"\x1B[?25h":"\x1B[?25l"):this.getShowHardwareCursor()?this.terminal.showCursor():this.terminal.hideCursor()}};function TP(n){let e=SP(n.env),t=vm(n.env),i=bP(n.env),s=n.isTTY&&n.env.TERM!=="dumb",r=vP(n,s);return Object.freeze({terminalId:e,platform:n.platform,isTTY:n.isTTY,transport:i,multiplexer:t,color:r>0,colorLevel:r})}function bP(n){return ov(n)?"ssh":"local"}function gr(){return TP({platform:process.platform,isTTY:!!(process.stdin.isTTY&&process.stdout.isTTY),env:process.env,colorDepth:process.stdout.getColorDepth?.(process.env)})}function vP(n,e){if(!e||n.env.NO_COLOR!==void 0||n.env.FORCE_COLOR==="0")return 0;if(n.env.FORCE_COLOR!==void 0){let s=Number.parseInt(n.env.FORCE_COLOR,10);return Number.isInteger(s)?Math.max(1,Math.min(3,s)):1}if((n.colorDepth??0)>=24)return 3;if((n.colorDepth??0)>=8)return 2;if((n.colorDepth??0)>=4)return 1;let t=n.env.COLORTERM?.toLocaleLowerCase();if(t==="truecolor"||t==="24bit")return 3;let i=n.env.TERM?.toLocaleLowerCase()??"";return i.includes("truecolor")||i.includes("24bit")?3:i.includes("256color")?2:1}function SP(n){if(n.WT_SESSION&&!ov(n))return"windows-terminal";let e=n.TERM_PROGRAM?.toLocaleLowerCase();if(e==="apple_terminal")return"apple-terminal";if(e==="ghostty")return"ghostty";if(e==="iterm.app")return"iterm2";if(e==="vscode")return"vscode";if(e==="wezterm")return"wezterm";let t=n.TERM?.toLocaleLowerCase()??"";return t.includes("ghostty")?"ghostty":t.includes("kitty")||n.KITTY_WINDOW_ID?"kitty":t.includes("wezterm")?"wezterm":"unknown"}function vm(n){if(n.TMUX)return"tmux";let e=n.TERM?.toLocaleLowerCase()??"";return e.startsWith("tmux")?"tmux":e.startsWith("screen")?"screen":"none"}function ov(n){return!!(n.SSH_CONNECTION||n.SSH_CLIENT||n.SSH_TTY)}var CP=new Set(["EIO","EPIPE","ENOTCONN","EOF"]);function xs(n,e){return xP(n)&&wP(e)}function wP(n){return typeof n=="object"&&n!==null&&"code"in n&&typeof n.code=="string"&&CP.has(n.code)}function xP(n){return n==="stdout.error"||n==="stderr.error"||n.startsWith("terminal.")}function av(n){let e=!1,t=!1,i=!1,s=!1,r=_=>{try{n.report(_)}catch{}},o=(_,B)=>{try{n.capture?.(_,B)}catch{}},a=_=>{try{n.onStopFailure?.(_)}catch{}},u=_=>{try{n.onStopCause?.(_)}catch{}},l=(_,B,F=!1)=>{if(e)return;e=!0,u(_);let q=()=>F||_.terminalDead||n.isTerminalDead?.()===!0;Promise.resolve().then(()=>n.stop()).catch(ee=>{n.process.exitCode=1;let ce=q()||xs("terminal.stop.sync",ee);o(ee,{origin:"shutdown",...ce?{terminalDead:!0}:{}}),ce||r(ee),a(ee)}).finally(()=>{B!==void 0&&!q()&&r(B)})},d=(_,B,F)=>{n.process.exitCode=1;let q=xs(_,F);o(F,{origin:B,...q?{terminalDead:!0}:{}}),l({source:_,error:F,terminalDead:q},F)},h=_=>l({source:"signal",signal:_,terminalDead:!1}),m=()=>h("SIGINT"),f=()=>h("SIGTERM"),y=()=>h("SIGHUP"),T=()=>h("SIGBREAK"),b=!!(n.suspend&&n.resume&&n.suspendProcess),v=()=>{!b||e||i||s||(i=!0,Promise.resolve().then(()=>n.suspend?.()).then(()=>{e||t||(s=!0,n.process.off("SIGTSTP",v),n.suspendProcess?.())}).catch(_=>d("suspend.failure","suspend",_)).finally(()=>{i=!1}))},I=()=>{!b||e||!s||(s=!1,n.process.on("SIGTSTP",v),Promise.resolve().then(()=>n.resume?.()).catch(_=>d("resume.failure","resume",_)))},k=_=>d("uncaughtException","uncaughtException",_),R=_=>d("unhandledRejection","unhandledRejection",_),D=(_,B)=>{let F={source:_,error:B,terminalDead:xs(_,B)};if(o(B,{origin:_==="stdout.error"?"stdout":"stderr",...F.terminalDead?{terminalDead:!0}:{}}),!F.terminalDead){n.process.exitCode=1,l(F,B);return}n.process.exitCode=1,l(F,void 0,!0)},E=_=>D("stdout.error",_),$=_=>D("stderr.error",_);return n.process.on("SIGINT",m),n.process.on("SIGTERM",f),n.process.on("SIGHUP",y),n.process.on("SIGBREAK",T),b&&(n.process.on("SIGTSTP",v),n.process.on("SIGCONT",I)),n.process.on("uncaughtException",k),n.process.on("unhandledRejection",R),n.process.stdout.on("error",E),n.process.stderr.on("error",$),()=>{t||(t=!0,n.process.off("SIGINT",m),n.process.off("SIGTERM",f),n.process.off("SIGHUP",y),n.process.off("SIGBREAK",T),b&&(n.process.off("SIGTSTP",v),n.process.off("SIGCONT",I)),n.process.off("uncaughtException",k),n.process.off("unhandledRejection",R),n.process.stdout.off("error",E),n.process.stderr.off("error",$))}}function lv(n,e){let t=(i,s,r)=>{try{return s()}catch(o){throw uv(e,{source:i,error:o,terminalDead:xs(i,o),...r===void 0?{}:{bytes:r}}),o}};return{get columns(){return n.columns},get rows(){return n.rows},get kittyProtocolActive(){return n.kittyProtocolActive},get outputPending(){return n.outputPending},drainOutput:()=>n.drainOutput?.()??Promise.resolve(),start:(i,s)=>t("terminal.start.sync",()=>n.start(i,s)),stop:()=>t("terminal.stop.sync",()=>n.stop()),drainInput:(i,s)=>n.drainInput(i,s).catch(r=>{let o="terminal.drainInput.async";throw uv(e,{source:o,error:r,terminalDead:xs(o,r)}),r}),write:i=>t("terminal.write.sync",()=>n.write(i),Buffer.byteLength(i,"utf8")),moveBy:i=>t("terminal.moveBy.sync",()=>n.moveBy(i)),hideCursor:()=>t("terminal.hideCursor.sync",()=>n.hideCursor()),showCursor:()=>t("terminal.showCursor.sync",()=>n.showCursor()),clearLine:()=>t("terminal.clearLine.sync",()=>n.clearLine()),clearFromCursor:()=>t("terminal.clearFromCursor.sync",()=>n.clearFromCursor()),clearScreen:()=>t("terminal.clearScreen.sync",()=>n.clearScreen()),setTitle:i=>t("terminal.setTitle.sync",()=>n.setTitle(i)),setProgress:i=>t("terminal.setProgress.sync",()=>n.setProgress(i))}}function uv(n,e){try{n(e)}catch{}}import{executionAsyncId as IP,executionAsyncResource as AP,triggerAsyncId as MP}from"node:async_hooks";var EP=1024,RP=8192;function pv(n,e){let t=e.asyncContext??{executionAsyncId:IP(),triggerAsyncId:MP(),resource:AP()};return{source:n.source,terminalDead:n.terminalDead,...n.signal?{signal:n.signal}:{},...n.bytes===void 0?{}:{bytes:n.bytes},...n.error===void 0?{}:{error:LP(n.error,e)},runtime:{nodeVersion:process.version,...process.versions.uv?{uvVersion:process.versions.uv}:{},platform:process.platform,arch:process.arch,pid:process.pid},asyncResource:kP(t),stdout:cv(process.stdout),stderr:cv(process.stderr)}}function kP(n){let e=Sm(n.resource,["owner","_owner"]),t=Sm(n.resource,["stream","_stream"]),i=Sm(n.resource,["handle","_handle"]);return{executionAsyncId:n.executionAsyncId,triggerAsyncId:n.triggerAsyncId,resource:ll(n.resource),...e===void 0?{}:{owner:ll(e)},...t===void 0?{}:{stream:ll(t)},...i===void 0?{}:{handle:ll(i)}}}function ll(n){return{constructorName:mv(n).slice(0,128),identity:n===process.stdout?"stdout":n===process.stderr?"stderr":"other",fd:PP(n),..._P(n)}}function PP(n){let e=Tr(n,"fd");return e===1||e===2?e:"other"}function _P(n){let e=Tr(n,"listenerCount");if(typeof e!="function")return{};try{let t=e.call(n,"error");return typeof t=="number"&&Number.isFinite(t)?{errorListenerCount:Math.max(0,Math.floor(t))}:{}}catch{return{}}}function Sm(n,e){for(let t of e){let i=Tr(n,t);if(i!==void 0)return i}}function LP(n,e){let t=dl(n,"name")??(n instanceof Error?n.name:void 0),i=dl(n,"message")??(typeof n=="string"||typeof n=="number"||typeof n=="boolean"?String(n):void 0),s=dl(n,"stack"),r=hv(n,"code"),o=hv(n,"errno"),a=dl(n,"syscall");return{...t?{name:Yo(t,e,256)}:{},...i?{message:Yo(i,e,EP)}:{},...r===void 0?{}:{code:dv(r,e)},...o===void 0?{}:{errno:dv(o,e)},...a?{syscall:Yo(a,e,256)}:{},...s?{stack:Yo(s,e,RP)}:{}}}function dv(n,e){return typeof n=="number"?n:Yo(n,e,256)}function cv(n){return{constructorName:mv(n),...yr(n,"isTTY"),...yr(n,"writable"),...yr(n,"destroyed"),...yr(n,"writableEnded"),...yr(n,"writableFinished"),...yr(n,"writableNeedDrain")}}function mv(n){try{if(typeof n!="object"||n===null)return typeof n;let e=n.constructor?.name;return typeof e=="string"&&e?e:"unknown"}catch{return"unknown"}}function yr(n,e){let t=Tr(n,e);return typeof t=="boolean"?{[e]:t}:{}}function dl(n,e){let t=Tr(n,e);return typeof t=="string"?t:void 0}function hv(n,e){let t=Tr(n,e);return typeof t=="string"||typeof t=="number"?t:void 0}function Tr(n,e){try{return typeof n!="object"&&typeof n!="function"||n===null?void 0:n[e]}catch{return}}function Yo(n,e,t){let i=bu(n),s=[{path:e.workspaceDir,label:"[workspace]"},{path:e.homeDirectory,label:"[home]"}].sort((r,o)=>o.path.length-r.path.length);for(let r of s)for(let o of OP(r.path))i=i.split(o).join(r.label);return i.slice(0,t)}function OP(n){let e=new Set([n,n.replaceAll("\\","/"),n.replaceAll("/","\\")]);return e.delete(""),[...e]}import NP from"node:path";async function fv(n){try{let{loadConfigFromFile:e}=await import("./dist-63237B2W.js"),i=e(NP.join(n,"config.yaml"),{dataDir:n}).tui;return{...typeof i?.showTips=="boolean"?{showTips:i.showTips}:{},...Array.isArray(i?.statusLine)?{statusLineItems:i.statusLine}:{},...i?.notifications?{notifications:i.notifications}:{},...i?.customStatusLine?.command?{customStatusLine:i.customStatusLine}:{}}}catch{return{}}}var DP={ctrl:"Ctrl",alt:"Alt",shift:"Shift",super:"Super"},FP={ctrl:"Ctrl",alt:"Option",shift:"Shift",super:"Command"},$P={up:"Up",down:"Down",left:"Left",right:"Right"},gv={escape:"Esc",enter:"Enter",tab:"Tab",space:"Space",backspace:"Backspace",delete:"Delete",home:"Home",end:"End",pageup:"PgUp",pagedown:"PgDn"},BP={...gv,home:"Fn+Left",end:"Fn+Right",pageup:"Fn+Up",pagedown:"Fn+Down"};function qP(n){return n==="darwin"?FP:DP}function HP(n){return n==="darwin"?BP:gv}function yv(n,e=process.platform,t=process.env.TERM_PROGRAM){let i=n.toLowerCase().split("+"),s=i.pop()??"";s==="/"&&i.includes("ctrl")&&!UP(t)&&(s="-");let r=qP(e);return[...i.map(o=>r[o]??o),$P[s]??HP(e)[s]??s.toUpperCase()].join("+")}function UP(n=process.env.TERM_PROGRAM){return n!=="Apple_Terminal"}var KP=/^[a-z0-9][a-z0-9._/-]*$/u,WP=/^(?:(?:ctrl|shift|alt|super)\+)*(?:[a-z0-9\-/]|escape|enter|tab|space|backspace|delete|home|end|pageUp|pageDown|up|down|left|right)$/u,hl=class n{constructor(e=[],t=process.platform,i,s={}){this.platform=t;this.engineKeybindings=i;this.baseOverrides=s;for(let r of e)this.register(r)}bindings=new Map;register(e){if(YP(e),this.bindings.has(e.id))throw new Error(`Duplicate keybinding id: ${e.id}`);let t=[...this.bindings.values()].find(i=>cl(i.key)===cl(e.key)&&Tv(i.when,e.when));if(t)throw new Error(`Keybinding conflict: ${e.key} is already registered for ${t.id}`);this.bindings.set(e.id,e)}resolve(e,t){if(!dn(e))return[...this.bindings.values()].find(i=>this.matches(e,i)&&XP(i.when,t)&&!(i.action==="restore-draft"&&t.hasRestorableDraft!==!0)&&!(i.action==="toggle-side-session"&&t.hasRestorableDraft===!0&&e==="")&&!(i.action==="restore-waiting"&&t.hasWaitingMessage!==!0))?.action}list(){return[...this.bindings.values()].map(e=>this.effective(e))}get(e){let t=this.bindings.get(e);return t?this.effective(t):void 0}keys(e){let t=this.bindings.get(e);return t?this.engineKeybindings?.getKeys(e)??[t.key]:Object.hasOwn(or,e)?(this.engineKeybindings??se()).getKeys(e):[]}findConflicts(e){let t=[...this.bindings.values()].map(s=>({definition:s,keys:this.keysForOverrides(s.id,e)})),i=[];for(let s=0;s<t.length;s+=1){let r=t[s];if(r)for(let o=s+1;o<t.length;o+=1){let a=t[o];if(a&&Tv(r.definition.when,a.definition.when))for(let u of r.keys)a.keys.some(l=>cl(l)===cl(u))&&i.push({key:u,ids:[r.definition.id,a.definition.id]})}}return i}format(e){return yv(e,this.platform)}help(e=!0){return this.list().filter(t=>t.description&&t.helpOrder!==void 0&&(e||!t.queueOnly)).sort((t,i)=>(t.helpOrder??0)-(i.helpOrder??0))}helpRows(e=!0){let t=new Map;for(let i of this.help(e)){let s=i.helpGroup??i.id,r=t.get(s);if(r){r.ids.push(i.id),r.keys.push(...this.keys(i.id).map(o=>this.format(o))),r.order=Math.min(r.order,i.helpOrder??0);continue}t.set(s,{ids:[i.id],keys:this.keys(i.id).map(o=>this.format(o)),description:i.description??"",order:i.helpOrder??0})}return[...t.values()].sort((i,s)=>i.order-s.order).map(i=>({ids:i.ids,keys:i.keys.length>0?i.keys.join(" / "):"Unbound",description:i.description}))}withOverrides(e){let t=this.list().map(i=>{if(!(i.id in e))return i;let s=e[i.id],r=Array.isArray(s)?s[0]:s;return r?{...i,key:r}:i});for(let i of Object.keys(e))if(!this.bindings.has(i))throw new Error(`Unknown keybinding id: ${i}`);return new n(t,this.platform)}matches(e,t){return this.engineKeybindings?.matches(e,t.id)??S(e,t.key)}effective(e){let t=this.keys(e.id)[0];return t&&t!==e.key?{...e,key:t}:e}keysForOverrides(e,t){let i=t[e];if(i!==void 0)return Array.isArray(i)?[...i]:[i];let s=this.baseOverrides[e];if(s!==void 0)return Array.isArray(s)?[...s]:[s];let r=this.bindings.get(e);return r?[r.key]:[]}};function cl(n){let e=n.toLocaleLowerCase().split("+"),t=e.pop()??"";return`${e.sort().join("+")}+${t}`}var bv=[{id:"app.clear",key:"ctrl+c",action:"clear",when:"composer",description:"Clear the Composer; press twice to exit",helpOrder:120},{id:"app.interrupt",key:"escape",action:"interrupt",when:"composer",description:"Close the current panel, or interrupt the active turn",helpOrder:110},{id:"app.exit",key:"ctrl+d",action:"exit",when:"composer",description:"Exit when the Composer is empty",helpOrder:121},{id:"app.suspend",key:"ctrl+z",action:"suspend",when:"application",description:"Suspend MCode and return to the shell",helpOrder:122},{id:"app.toggle-side-session",key:"ctrl+/",action:"toggle-side-session",when:"application",description:"Toggle between the parent and temporary side conversation",helpOrder:123},{id:"welcome.resume-codex",key:"ctrl+u",action:"resume-codex",when:"idle"},{id:"composer.paste-image",key:"ctrl+v",action:"paste-image",when:"composer",description:"Paste an image or copied video file from the clipboard",helpOrder:70},{id:"composer.paste-image-windows",key:"alt+v",action:"paste-image",when:"composer"},{id:"composer.paste-image-macos",key:"super+v",action:"paste-image",when:"composer",description:"Paste an image or copied video file from the clipboard",helpOrder:70},{id:"composer.external-editor",key:"ctrl+g",action:"open-external-editor",when:"composer",description:"Search prompt history / edit in an external editor",helpOrder:50,helpGroup:"composer.prompt-tools"},{id:"composer.search-history",key:"ctrl+r",action:"search-history",when:"composer",description:"Search prompt history / edit in an external editor",helpOrder:40,helpGroup:"composer.prompt-tools"},{id:"run.submit-guidance",key:"enter",action:"submit-guidance",when:"live-run",description:"Guide the current response with the current Draft",helpOrder:90},{id:"run.queue-draft",key:"alt+enter",action:"queue-draft",when:"live-run",description:"Queue the current Draft for the next turn",helpOrder:91,queueOnly:!0},{id:"run.restore-waiting-option",key:"alt+up",action:"restore-waiting",when:"live-run",description:"Move the latest queued message back to the Composer",helpOrder:92,helpGroup:"run.restore-waiting",queueOnly:!0},{id:"run.restore-waiting-shift-left",key:"shift+left",action:"restore-waiting",when:"live-run",description:"Move the latest queued message back to the Composer",helpOrder:92,helpGroup:"run.restore-waiting",queueOnly:!0},{id:"composer.toggle-tasks",key:"ctrl+t",action:"toggle-tasks",when:"composer",description:"Show or hide the full Todo list",helpOrder:25},{id:"composer.toggle-details",key:"ctrl+o",action:"toggle-details",when:"composer",description:"Show or hide Thinking, Tool output, and diffs",helpOrder:20},{id:"composer.toggle-plan",key:"shift+tab",action:"toggle-plan",when:"composer",description:"Plan Mode: Default or Plan",helpOrder:10},{id:"composer.cycle-permission",key:"alt+m",action:"cycle-permission",when:"composer",description:"Permission mode: Ask, Auto, Full access",helpOrder:11},{id:"composer.restore-draft",key:"ctrl+-",action:"restore-draft",when:"composer",description:"Undo the last Draft clear",helpOrder:60},{id:"interaction.scroll-up",key:"pageUp",action:"scroll-up",when:"interaction",description:"Scroll the current interaction",helpOrder:80,helpGroup:"interaction.navigation"},{id:"interaction.scroll-down",key:"pageDown",action:"scroll-down",when:"interaction",description:"Scroll the current interaction",helpOrder:81,helpGroup:"interaction.navigation"}];function jP(){return new hl(bv)}function VP(n){let e="composer.paste-media",t=n.platform==="win32"||n.windowsClipboardInterop===!0;return bv.flatMap(s=>s.id==="app.suspend"&&!n.suspendSupported?[]:s.id==="composer.paste-image-windows"&&!t?[]:s.id==="composer.paste-image-macos"&&n.platform!=="darwin"?[]:s.id==="composer.restore-draft"&&n.platform==="win32"?[{...s,key:"ctrl+z"}]:s.id==="composer.paste-image"&&(t||n.platform==="darwin")?[{...s,...t?{key:"alt+v"}:{},helpGroup:e}]:s.id==="composer.paste-image-windows"?[{...s,key:"ctrl+v",description:"Paste an image or copied video file from the clipboard",helpOrder:70,helpGroup:e}]:s.id==="composer.paste-image-macos"?[{...s,description:"Paste an image or copied video file from the clipboard",helpOrder:70,helpGroup:e}]:[s])}function vv(n){let e=VP(n),t=GP(n.platform),i=new rr({...or,...zP(e)},{...t,...n.userOverrides??{}});return{manager:i,registry:new hl(e,n.platform,i,t),hostOverrides:t}}function GP(n){return{"tui.altScreen.previousPrompt":["ctrl+shift+up","ctrl+up"],"tui.altScreen.nextPrompt":["ctrl+shift+down","ctrl+down"],...n==="win32"?{"tui.editor.undo":["ctrl+-","ctrl+z"]}:{}}}function zP(n){return Object.fromEntries(n.map(e=>[e.id,{defaultKeys:e.key,description:e.description}]))}var Cm=jP();function ui(){return Cm}function Ce(n,e=Cm){Object.hasOwn(or,n)||QP(n,e);let t=e.keys(n);return t.length>0?t.map(i=>e.format(i)).join(" / "):"Unbound"}function QP(n,e=Cm){let t=e.get(n);if(!t)throw new Error(`Unknown keybinding id: ${n}`);return t}function YP(n){if(!KP.test(n.id))throw new Error(`Invalid keybinding id: ${n.id}`);if(!WP.test(n.key))throw new Error(`Invalid keybinding key: ${n.key}`)}function XP(n,e){return n==="application"?!0:n==="interaction"?e.interactionActive:e.interactionActive?!1:n==="composer"?!0:n==="idle"?!e.hasLiveRun:n==="waiting"?e.hasWaitingMessage===!0:e.hasLiveRun}function Tv(n,e){return n==="application"||e==="application"?!0:n==="interaction"||e==="interaction"?n===e:n==="composer"||e==="composer"||n===e||n==="waiting"||e==="waiting"}import{mkdirSync as JP,readFileSync as ZP,renameSync as e2,unlinkSync as t2,writeFileSync as n2}from"node:fs";import wm from"node:path";var i2="tui",Sv="keybindings.json";function Cv(n){return wm.join(n,i2,Sv)}function xm(n){let e=Cv(n);try{let t=JSON.parse(ZP(e,"utf8").replace(/^\uFEFF/u,""));if(!t||typeof t!="object"||Array.isArray(t))throw new Error("keybindings must be a JSON object");let i={};for(let[s,r]of Object.entries(t))if(typeof r=="string")i[s]=r;else if(Array.isArray(r)&&r.every(o=>typeof o=="string"))i[s]=r;else if(r!==null)throw new Error(`binding "${s}" must be a string or an array of strings`);return{path:e,overrides:i}}catch(t){return r2(t)?{path:e,overrides:{}}:{path:e,overrides:{},error:t instanceof Error?t.message:String(t)}}}function wv(n,e){let t=Cv(n),i=wm.dirname(t);JP(i,{recursive:!0,mode:448});let s=wm.join(i,`.${Sv}.${process.pid}.${Date.now()}.tmp`),r=`${JSON.stringify(s2(e),null,2)}
131
131
  `;try{n2(s,r,{encoding:"utf8",mode:384}),e2(s,t)}catch(o){try{t2(s)}catch{}throw o instanceof Error?o:new Error(String(o))}return t}function s2(n){return Object.fromEntries(Object.entries(n).sort(([e],[t])=>e.localeCompare(t)))}function r2(n){return!!(n&&typeof n=="object"&&"code"in n&&n.code==="ENOENT")}var xv=new WeakSet;function Mt(...n){for(let e of n)!e||xv.has(e)||(xv.add(e),e.dispose?.())}import{Worker as o2}from"node:worker_threads";import{open as a2}from"node:fs/promises";var u2=20*1024*1024,l2=25e6;async function Iv(n,e,t){let i=await a2(n,"r"),s;try{let a=await i.stat();if(!a.isFile()||a.size<=0||a.size>u2)return{};let u=Buffer.alloc(a.size),l=0;for(;l<u.length;){t.throwIfAborted();let{bytesRead:d}=await i.read(u,l,u.length-l,l);if(!d)break;l+=d}s=u.subarray(0,l)}finally{await i.close()}t.throwIfAborted();let r=Do(s.toString("base64"),e)??void 0;if(!r||r.widthPx*r.heightPx>l2)return{dimensions:r};let o=e==="image/png"?960:Math.min(960,r.widthPx-1);if(o<1)return{dimensions:r};try{let a=await d2(s,e,o,t);return{dimensions:r,png:a}}catch{return t.throwIfAborted(),{dimensions:r}}}async function d2(n,e,t,i){i.throwIfAborted();let s=new o2(new URL(__mavis_tuiPackageEntryUrl.endsWith(".ts")?"./image-preview-worker.ts":"./image-preview-worker.js",__mavis_tuiPackageEntryUrl),{workerData:{bytes:n,mimeType:e,maxWidth:t}}),r,o;try{return await new Promise((a,u)=>{if(o=()=>u(new Error("Image preview cancelled")),i.addEventListener("abort",o,{once:!0}),i.aborted){o();return}r=setTimeout(()=>u(new Error("Image preview timed out")),5e3),s.once("message",l=>a(typeof l=="string"?l:void 0)),s.once("error",u),s.once("exit",()=>a(void 0))})}finally{r&&clearTimeout(r),o&&i.removeEventListener("abort",o),await s.terminate()}}var Av=(n=0)=>e=>`\x1B[${e+n}m`,Mv=(n=0)=>e=>`\x1B[${38+n};5;${e}m`,Ev=(n=0)=>(e,t,i)=>`\x1B[${38+n};2;${e};${t};${i}m`,Be={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},$V=Object.keys(Be.modifier),c2=Object.keys(Be.color),h2=Object.keys(Be.bgColor),BV=[...c2,...h2];function p2(){let n=new Map;for(let[e,t]of Object.entries(Be)){for(let[i,s]of Object.entries(t))Be[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},t[i]=Be[i],n.set(s[0],s[1]);Object.defineProperty(Be,e,{value:t,enumerable:!1})}return Object.defineProperty(Be,"codes",{value:n,enumerable:!1}),Be.color.close="\x1B[39m",Be.bgColor.close="\x1B[49m",Be.color.ansi=Av(),Be.color.ansi256=Mv(),Be.color.ansi16m=Ev(),Be.bgColor.ansi=Av(10),Be.bgColor.ansi256=Mv(10),Be.bgColor.ansi16m=Ev(10),Object.defineProperties(Be,{rgbToAnsi256:{value(e,t,i){return e===t&&t===i?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(i/255*5)},enumerable:!1},hexToRgb:{value(e){let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[i]=t;i.length===3&&(i=[...i].map(r=>r+r).join(""));let s=Number.parseInt(i,16);return[s>>16&255,s>>8&255,s&255]},enumerable:!1},hexToAnsi256:{value:e=>Be.rgbToAnsi256(...Be.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,i,s;if(e>=232)t=((e-232)*10+8)/255,i=t,s=t;else{e-=16;let a=e%36;t=Math.floor(e/36)/5,i=Math.floor(a/6)/5,s=a%6/5}let r=Math.max(t,i,s)*2;if(r===0)return 30;let o=30+(Math.round(s)<<2|Math.round(i)<<1|Math.round(t));return r===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(e,t,i)=>Be.ansi256ToAnsi(Be.rgbToAnsi256(e,t,i)),enumerable:!1},hexToAnsi:{value:e=>Be.ansi256ToAnsi(Be.hexToAnsi256(e)),enumerable:!1}}),Be}var m2=p2(),Mn=m2;import Im from"node:process";import f2 from"node:os";import Rv from"node:tty";function pn(n,e=globalThis.Deno?globalThis.Deno.args:Im.argv){let t=n.startsWith("-")?"":n.length===1?"-":"--",i=e.indexOf(t+n),s=e.indexOf("--");return i!==-1&&(s===-1||i<s)}var{env:qe}=Im,pl;pn("no-color")||pn("no-colors")||pn("color=false")||pn("color=never")?pl=0:(pn("color")||pn("colors")||pn("color=true")||pn("color=always"))&&(pl=1);function g2(){if("FORCE_COLOR"in qe)return qe.FORCE_COLOR==="true"?1:qe.FORCE_COLOR==="false"?0:qe.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(qe.FORCE_COLOR,10),3)}function y2(n){return n===0?!1:{level:n,hasBasic:!0,has256:n>=2,has16m:n>=3}}function T2(n,{streamIsTTY:e,sniffFlags:t=!0}={}){let i=g2();i!==void 0&&(pl=i);let s=t?pl:i;if(s===0)return 0;if(t){if(pn("color=16m")||pn("color=full")||pn("color=truecolor"))return 3;if(pn("color=256"))return 2}if("TF_BUILD"in qe&&"AGENT_NAME"in qe)return 1;if(n&&!e&&s===void 0)return 0;let r=s||0;if(qe.TERM==="dumb")return r;if(Im.platform==="win32"){let o=f2.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in qe)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(o=>o in qe)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(o=>o in qe)||qe.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in qe)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(qe.TEAMCITY_VERSION)?1:0;if(qe.COLORTERM==="truecolor"||qe.TERM==="xterm-kitty"||qe.TERM==="xterm-ghostty"||qe.TERM==="wezterm")return 3;if("TERM_PROGRAM"in qe){let o=Number.parseInt((qe.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(qe.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(qe.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(qe.TERM)||"COLORTERM"in qe?1:r}function kv(n,e={}){let t=T2(n,{streamIsTTY:n&&n.isTTY,...e});return y2(t)}var b2={stdout:kv({isTTY:Rv.isatty(1)}),stderr:kv({isTTY:Rv.isatty(2)})},Pv=b2;function _v(n,e,t){let i=n.indexOf(e);if(i===-1)return n;let s=e.length,r=0,o="";do o+=n.slice(r,i)+e+t,r=i+s,i=n.indexOf(e,r);while(i!==-1);return o+=n.slice(r),o}function Lv(n,e,t,i){let s=0,r="";do{let o=n[i-1]==="\r";r+=n.slice(s,o?i-1:i)+e+(o?`\r
132
132
  `:`
133
133
  `)+t,s=i+1,i=n.indexOf(`
@@ -262,7 +262,7 @@ ${e}`),this.options.onChanged();try{await this.openExternalTarget(e)}catch{this.
262
262
  /goal resume: resume a paused or blocked goal.`,tR="[\\s\\u2026\\u3000-\\u30FF\\u4E00-\\u9FFF\\uFF00-\\uFFEF]",ZE=new RegExp(`^budget=([A-Za-z0-9.]+)(?=$|${tR})`,"iu"),mH=new RegExp(`(^|${tR})budget=([A-Za-z0-9.]+)$`,"iu"),fH=/[\s…、。!,:;?]+$/u,gH=/^[\s…、。!,:;?]+/u;function yH(n){let e=n.trimEnd(),t=e.search(/\s\S*$/),i=t===-1?e:e.slice(t+1);if(!/^budget=[A-Za-z0-9.]*$/i.test(i))return null;let s=i.slice(7),r=t===-1?"":e.slice(0,t).trimEnd();return{value:du(s),head:r}}function TH(n){let e=n.trim(),t=yH(e);if(t?.value==="invalid")return{kind:"invalid"};let i,s;if(t)i=t.value,s=t.head;else{let o=mH.exec(e);if(o){let a=du(o[2]??"");a!=="invalid"&&(i=a,s=e.slice(0,o.index+(o[1]??"").length))}}if(s!==void 0&&i!==void 0){let o=s.replace(fH,"").trim(),a=ZE.exec(o);return a&&du(a[1]??"")!=="invalid"?{kind:"double"}:{kind:"value",value:i,objective:o}}let r=ZE.exec(e);if(r){let o=du(r[1]??"");if(o!=="invalid"){let a=e.slice(r[0].length).replace(gH,"").trim();return{kind:"value",value:o,objective:a}}}return{kind:"none"}}function du(n){let e=n.trim();if(!e)return"invalid";let t=e.toLowerCase();if(t==="clear"||t==="null"||t==="none"||t==="off"||e==="0")return null;let i=t.match(/^([0-9]+(?:\.[0-9]+)?)([km])?$/);if(!i)return"invalid";let[,s,r]=i,o=Number(s);if(!Number.isFinite(o)||o<=0)return"invalid";let u=Math.round(o*(r==="k"?1e3:r==="m"?1e6:1));return u>0?u:"invalid"}function nR(n){let e=n.trim();if(!e)return{kind:"view"};let t=e.search(/\s/),i=t===-1?e:e.slice(0,t),s=i.toLowerCase();if(s==="budget")return{kind:"error",message:"/goal budget needs a value: `/goal budget=50K` or `/goal budget=clear`."};if(/^budget=[A-Za-z0-9.]*$/i.test(i)&&e.length===i.length){let r=i.slice(7),o=du(r);return o==="invalid"?{kind:"error",message:`Bad budget value: use a positive integer, K/M suffix, or 'clear' (got "${r}").`}:{kind:"budget",tokenBudget:o}}switch(s){case"clear":case"cancel":case"delete":return e.length>i.length?{kind:"error",message:"/goal clear takes no arguments."}:{kind:"clear"};case"edit":return e.length>i.length?{kind:"error",message:"/goal edit takes no arguments."}:{kind:"edit"};case"pause":return e.length>i.length?{kind:"error",message:"/goal pause takes no arguments."}:{kind:"pause"};case"resume":return e.length>i.length?{kind:"error",message:"/goal resume takes no arguments."}:{kind:"resume"};case"help":return{kind:"help"};default:{let r=TH(e);return r.kind==="invalid"?{kind:"error",message:"Bad budget value: use a positive integer, K/M suffix, or `clear`/`null` to remove the cap."}:r.kind==="double"?{kind:"error",message:"budget= is specified more than once: keep a single budget=<value>."}:r.kind==="value"?r.objective?{kind:"create",objective:r.objective,tokenBudget:r.value}:{kind:"budget",tokenBudget:r.value}:{kind:"create",objective:e}}}}var bH="The current response keeps running; press Esc to interrupt it.",cp=class{constructor(e){this.options=e}refreshSequence=0;announcedCompletedGoalIds=new Set;async execute(e){let t=nR(e);if(t.kind==="help")return this.options.append(eR),"consumed";if(t.kind==="error")return this.options.append(t.message,"warning"),"retained";let i=this.options.composerDraft.capture();try{let s=this.options.currentSessionId();if(!s&&t.kind==="create"&&(s=await this.options.ensureSessionId?.()),!s)return this.options.append(t.kind==="create"?"Couldn't create a Session for this Goal. Retry after the Runtime recovers.":"Start or resume a Session before managing its Goal.","warning"),"retained";let r=++this.refreshSequence;if(!this.options.runtime.isGoalEnabled())return this.options.append("Thread Goal is disabled in the current Runtime.","warning"),"retained";let o=await this.options.runtime.getGoal(s);if(!this.canProjectOperation(s,r))return"consumed";if(t.kind==="create")return await this.setObjective(s,t.objective,t.tokenBudget,o,r,i);if(!o)return this.options.append("No Goal exists for the active Session.","warning"),"consumed";if(t.kind==="view")return this.options.append(vA(o)),"consumed";if(t.kind==="budget"){let l=await this.options.runtime.patchGoal(s,{tokenBudget:t.tokenBudget});return this.canProjectOperation(s,r)&&(this.options.banner.setGoal(l),this.options.setHint(t.tokenBudget===null?"Goal budget cleared.":"Goal budget updated."),this.options.onChanged()),"consumed"}if(t.kind==="edit")return this.options.editor.setText(`/goal ${o.objective}`),this.options.surfaceHost.setChatFocus(this.options.editor),this.options.setHint("Edit the Goal objective, then press Enter."),this.options.onChanged(),"consumed";if(t.kind==="clear")return await this.options.runtime.clearGoal(s),this.canProjectOperation(s,r)&&(this.options.banner.setGoal(void 0),this.options.setHint(this.withLiveRunNotice("Goal cleared.")),this.options.onChanged()),"consumed";if(t.kind==="resume"&&o.status==="budget_limited")return this.options.append("This Goal exhausted its execution budget. Clear it, then start a new Goal.","warning"),"consumed";let a=t.kind==="pause"?"paused":"active",u=await this.options.runtime.patchGoal(s,{status:a});return this.canProjectOperation(s,r)&&(this.options.banner.setGoal(u),this.options.setHint(a==="paused"?this.withLiveRunNotice("Goal paused."):"Goal resumed."),this.options.onChanged()),"consumed"}catch(s){return this.appendFailure(s),"retained"}}withLiveRunNotice(e){return this.options.hasLiveRun?.()?`${e} ${bH}`:e}async resumeBlocked(){let e=this.options.banner.getGoal(),t=this.options.currentSessionId();if(!e||e.status!=="blocked"||!t||e.sessionId!==t)return"not-blocked";try{let i=await this.options.runtime.patchGoal(t,{status:"active"});return this.options.currentSessionId()===t&&(this.options.banner.setGoal(i),this.options.setHint("Goal resumed."),this.options.onChanged()),"resumed"}catch(i){return this.appendFailure(i),"failed"}}async refresh(e=this.options.currentSessionId()){let t=++this.refreshSequence;if(!e){this.options.banner.setGoal(void 0);return}try{if(!this.options.runtime.isGoalEnabled()){t===this.refreshSequence&&this.options.banner.setGoal(void 0);return}let i=await this.options.runtime.getGoal(e);t===this.refreshSequence&&this.options.currentSessionId()===e&&(this.options.banner.setGoal(i?.status==="complete"?void 0:i),this.options.onChanged())}catch{t===this.refreshSequence&&this.options.currentSessionId()===e&&this.options.banner.setGoal(void 0)}}reset(){this.refreshSequence+=1,this.options.banner.setGoal(void 0)}project(e){e.sessionId===this.options.currentSessionId()&&(this.refreshSequence+=1,e.type==="thread_goal.updated"?e.goal.status==="complete"?(this.options.banner.setGoal(void 0),this.announcedCompletedGoalIds.has(e.goal.goalId)||(this.announcedCompletedGoalIds.add(e.goal.goalId),this.options.append(bA(e.goal)))):this.options.banner.setGoal(e.goal):(!this.options.banner.getGoal()||this.options.banner.getGoal()?.goalId===e.goalId)&&this.options.banner.setGoal(void 0),this.options.onChanged())}async setObjective(e,t,i,s,r,o){if(s&&s.status!=="complete"){if(o.attachments.length>0)return this.options.append("Goal kickoff attachments are immutable. Remove the attachments to edit this Goal, or clear it and start a new Goal.","warning"),"retained";let u=await this.options.runtime.patchGoal(e,{objective:t,...i!==void 0?{tokenBudget:i}:{}});return this.canProjectOperation(e,r)&&(this.options.banner.setGoal(u),this.options.setHint("Goal objective updated."),this.options.onChanged()),"consumed"}let a;try{a=o,this.options.composerDraft.reserveSubmission(o);let u=await this.options.runtime.createGoal({sessionId:e,objective:t,...i!==void 0?{tokenBudget:i}:{},...o.attachments.length>0?{attachments:o.attachments}:{}});return this.canProjectOperation(e,r)&&(this.options.banner.setGoal(u),this.options.setHint("Goal started."),this.options.onChanged()),await this.options.composerDraft.completeSubmission(a).catch(l=>{this.options.append(O(l,{summary:"Couldn't clean up the submitted Goal attachments.",nextStep:"The Goal was still created."}),"warning")}),"consumed"}catch(u){throw a&&this.options.composerDraft.restoreSubmission(a),u}}canProjectOperation(e,t){return t===this.refreshSequence&&this.options.currentSessionId()===e}appendFailure(e){this.options.append(O(e,{summary:"Couldn't update the Goal.",nextStep:"Retry /goal after the Runtime recovers.",preservation:"Your draft is preserved."}),"error")}};import{tmpdir as vH}from"node:os";import{isAbsolute as iR,relative as sR,resolve as hp}from"node:path";var pp=class{constructor(e,t,i,s){this.readClipboardImage=e;this.readClipboardText=t;this.prepareQueueLease=i;this.draftRecoveryDataDir=s}pendingDisposals=new Map;queuedDisposals=new Map;activeRead;async paste(e){if(!this.readClipboardImage&&!this.readClipboardText){e.onWarning("Clipboard paste is unavailable in this host. Save media and reference it in the prompt with @.");return}if(this.activeRead)return;let t=new AbortController;this.activeRead=t,e.onHint("Reading clipboard\u2026");try{let i;if(this.readClipboardImage)try{let r=await this.readClipboardImage(t.signal);if(e.isStopped()||t.signal.aborted){await r.dispose().catch(()=>{});return}e.onPasted(r.attachment)?this.pendingDisposals.set(r.attachment.filePath,r.dispose):await r.dispose().catch(()=>{});return}catch(r){i=r}let s=await this.readClipboardText?.().catch(()=>null);if(e.isStopped()||t.signal.aborted)return;if(s){e.onTextPasted(s);return}i&&SH(i)&&e.onWarning(O(i,{summary:"Couldn't paste media from the clipboard.",nextStep:"Copy the image or video file again, or attach the saved file with @."}))}finally{this.activeRead===t&&(this.activeRead=void 0),e.onHint(void 0),e.onRender()}}abortRead(){return this.activeRead?(this.activeRead.abort(),!0):!1}transferToQueue(e,t){let i=this.take(t);i.length>0&&this.append(this.queuedDisposals,e,i)}async prepareAttachmentsForQueue(e){let t=this.prepareQueueLease??(this.draftRecoveryDataDir?CH(this.draftRecoveryDataDir):void 0);if(!t)return e.map(r=>({...r}));let i=[],s=[];try{for(let r of e){if(this.pendingDisposals.has(r.filePath)){i.push({...r});continue}let o=await t(r);if(!o){i.push({...r});continue}s.push(o),this.pendingDisposals.set(o.attachment.filePath,o.dispose),i.push({...o.attachment})}return i}catch(r){for(let o of s)this.pendingDisposals.delete(o.attachment.filePath);throw await ay(s.map(o=>o.dispose)),r}}async releasePreparedQueueAttachments(e,t){let i=new Set(e.map(s=>s.filePath));await this.releaseAttachments(t.filter(s=>!i.has(s.filePath)))}async releaseAttachments(e){await ay(this.take(e))}async releaseQueueItem(e){let t=this.queuedDisposals.get(e);t&&(this.queuedDisposals.delete(e),await ay(t))}restoreQueueItem(e,t){let i=this.queuedDisposals.get(e);if(i){this.queuedDisposals.delete(e);for(let[s,r]of t.entries()){let o=i[s];o&&this.pendingDisposals.set(r.filePath,o)}}}take(e){let t=[];for(let i of e){let s=this.pendingDisposals.get(i.filePath);s&&(this.pendingDisposals.delete(i.filePath),t.push(s))}return t}append(e,t,i){e.set(t,[...e.get(t)??[],...i])}};function SH(n){return!(n instanceof hT&&n.code==="no-image")}function CH(n){return async e=>wH(n,e.filePath)||xH(e)?pT(e):void 0}function wH(n,e){let t=hp(n,"v2","mcode","drafts"),i=sR(t,hp(e));return!i||i.startsWith("..")||iR(i)?!1:i.split(/[\\/]/u).some(s=>s.endsWith(".assets"))}function xH(n){let e=sR(hp(vH()),hp(n.filePath));return!e||e.startsWith("..")||iR(e)?!1:e.split(/[\\/]/u)[0]?.startsWith("minimax-code-clipboard-")===!0}async function ay(n){await Promise.allSettled(n.map(e=>e()))}var mp=class{constructor(e){this.options=e;this.clipboard=e.clipboard??new pp(e.readClipboardImage,e.readClipboardText,e.prepareQueueAttachmentLease,e.draftRecoveryDataDir)}attachments=[];detachedAttachments=new Map;clearedDraft;clipboard;draftGeneration=0;snapshot(){return{attachments:[...this.attachments]}}capture(){return this.snapshot()}reserveSubmission(e=this.capture()){return this.releaseDetachedAttachments(),this.discardClearedDraft(),this.removeCaptured(e),this.notifyChanged(),e}restoreSubmission(e){let t=new Set(this.attachments.map(i=>i.filePath));this.attachments=[...e.attachments.filter(i=>!t.has(i.filePath)),...this.attachments],this.notifyChanged()}hasContent(){return this.attachments.length>0}restoreAttachments(e){let t=new Set(this.attachments.map(s=>s.filePath)),i=[];for(let s of e)if(!t.has(s.filePath)){if(!this.canAddAttachment(s,!1,[...this.attachments,...i]))break;t.add(s.filePath),i.push(s)}i.length>0&&(this.attachments=[...this.attachments,...i]),this.notifyChanged()}ensureAttachmentPlaceholders(){this.syncAttachmentPlaceholders()}async queueAttachment(e,t={}){if(!e.trim()){this.options.append("Cannot add an empty attachment path.","warning");return}let i=this.draftGeneration,s=await this.options.resolveAttachment(e,{...t,workspaceDir:this.options.workspaceDir,...this.options.homeDir?{homeDir:this.options.homeDir}:{}});if(!(i!==this.draftGeneration||this.options.isStopped?.())){if(this.attachments.some(r=>r.filePath===s.filePath)){this.options.append(`Already attached for the next message: ${s.fileName}`,"warning");return}this.canAddAttachment(s)&&(this.attachments=[...this.attachments,s],this.notifyChanged())}}async pasteClipboard(){await this.clipboard.paste({isStopped:()=>this.options.isStopped?.()??!1,onHint:e=>this.options.onHint?.(e),onPasted:e=>this.canAddAttachment(e)?(this.attachments=[...this.attachments,e],this.notifyChanged(),!0):!1,onTextPasted:e=>{this.options.insertTextAtCursor?.(e),this.notifyChanged()},onWarning:e=>this.options.append(e,"warning"),onRender:()=>this.options.onRender?.()})}async removeLastAttachment(){return this.removeAttachmentAt(this.attachments.length-1)}async removeAttachmentById(e){let t=this.attachments.findIndex(s=>s.filePath===e),i=this.attachments[t];return i?(this.detachedAttachments.set(e,{attachment:i,index:t}),this.attachments=this.attachments.filter((s,r)=>r!==t),this.notifyChanged(),!0):!1}restoreAttachmentById(e){let t=this.detachedAttachments.get(e);if(!t||this.attachments.some(s=>s.filePath===e))return!1;this.detachedAttachments.delete(e);let i=Math.max(0,Math.min(t.index,this.attachments.length));return this.attachments=[...this.attachments.slice(0,i),t.attachment,...this.attachments.slice(i)],this.notifyChanged(),!0}stashForClear(){return this.clearedDraft||!this.hasContent()?!1:(this.releaseDetachedAttachments(),this.clearedDraft=this.capture(),this.attachments=[],this.notifyChanged(),!0)}restoreClearedDraft(){let e=this.clearedDraft;return e?(this.clearedDraft=void 0,this.restoreSubmission(e),!0):!1}async discardClearedDraft(){let e=this.clearedDraft;e&&(this.clearedDraft=void 0,await this.clipboard.releaseAttachments(e.attachments))}async completeSubmission(e){this.removeCaptured(e),this.notifyChanged(),await Promise.all([this.clipboard.releaseAttachments(e.attachments),this.releaseDetachedAttachments(),this.discardClearedDraft()])}async prepareQueueSubmission(e){return{attachments:this.clipboard.prepareAttachmentsForQueue?await this.clipboard.prepareAttachmentsForQueue(e.attachments):e.attachments.map(t=>({...t}))}}releasePreparedQueueSubmission(e,t){return this.clipboard.releasePreparedQueueAttachments?.(e.attachments,t.attachments)??Promise.resolve()}completeQueuedSubmission(e,t,i=e){this.removeCaptured(e),this.clipboard.transferToQueue(t,i.attachments),this.releaseDetachedAttachments(),this.discardClearedDraft(),this.notifyChanged()}restoreQueuedSubmission(e,t){this.clipboard.restoreQueueItem?.(e,t.attachments),this.restoreSubmission(t)}releaseQueueItem(e){return this.clipboard.releaseQueueItem(e)}abortClipboardRead(){return this.clipboard.abortRead()}async discard(){this.draftGeneration+=1;let e=[...this.attachments,...[...this.detachedAttachments.values()].map(({attachment:t})=>t),...this.clearedDraft?.attachments??[]];this.attachments=[],this.detachedAttachments.clear(),this.clearedDraft=void 0,this.notifyChanged(),await this.clipboard.releaseAttachments(e)}removeCaptured(e){let t=new Set(e.attachments.map(i=>i.filePath));this.attachments=this.attachments.filter(i=>!t.has(i.filePath))}async removeAttachmentAt(e){let t=this.attachments[e];return t?(this.attachments=this.attachments.filter((i,s)=>s!==e),this.notifyChanged(),await this.clipboard.releaseAttachments([t]),!0):!1}async releaseDetachedAttachments(){let e=[...this.detachedAttachments.values()].map(({attachment:t})=>t);e.length!==0&&(this.detachedAttachments.clear(),await this.clipboard.releaseAttachments(e))}notifyChanged(){this.syncAttachmentPlaceholders(),this.options.onChanged()}canAddAttachment(e,t=!0,i=this.attachments){return i.length>=10?(t&&this.options.append("You can attach up to 10 files. Remove one before adding another.","warning"),!1):i.reduce((r,o)=>r+o.sizeBytes,0)+e.sizeBytes>104857600?(t&&this.options.append("Attachments can total up to 100 MB. Remove an attachment or choose a smaller file.","warning"),!1):!0}syncAttachmentPlaceholders(){this.options.onAttachmentPlaceholdersChanged?.(this.attachments.map((e,t)=>({id:e.filePath,label:va(e,t+(this.options.attachmentPlaceholderOffset?.()??0))})))}};function rR(n){let e=n.app.resolveAttachment??rw,t=new mp({workspaceDir:n.app.workspaceDir,...n.app.homeDir?{homeDir:n.app.homeDir}:{},resolveAttachment:e,...n.app.readClipboardImage?{readClipboardImage:n.app.readClipboardImage}:{},readClipboardText:n.app.readClipboardText??md,insertTextAtCursor:s=>n.editor.insertTextAtCursor(s),...n.app.dataDir?{draftRecoveryDataDir:n.app.dataDir}:{},append:n.append,onAttachmentPlaceholdersChanged:s=>n.editor.syncAttachmentPlaceholders([...n.editAttachmentPlaceholders?.()??[],...s]),attachmentPlaceholderOffset:n.editAttachmentCount,onChanged:()=>{n.scheduleDraft(),n.updateChrome()},isStopped:n.isStopped,onHint:s=>{n.chrome()?.setHint(s),n.updateChrome()},onRender:()=>{n.isStopped()||n.requestRender()}});n.editor.onChange=()=>{n.onEditorChanged?.(),n.scheduleDraft(),n.updateChrome()};let i=new cp({runtime:n.app.runtime,currentSessionId:()=>n.controller.snapshot().session?.sessionId,ensureSessionId:async()=>(await n.controller.ensureSession()).sessionId,banner:n.banner,composerDraft:t,editor:n.editor,surfaceHost:n.surfaceHost,append:n.append,setHint:s=>n.chrome()?.setHint(s),...n.hasLiveRun?{hasLiveRun:n.hasLiveRun}:{},onChanged:()=>{n.updateChrome(),n.requestRender()}});return{composerDraft:t,goalFlow:i}}function oR(n){let e=!1;return{onSessionLifecycle(t){if(!t){e=!0;return}e&&(e=!1,mT(t,"clear"))},async preparePluginHookSessionSwitch(t,i){await gT(t,async s=>{await n.abortSession({id:s,reason:"session_leave"})}),await fT(t,i)},adoptForegroundRun(t,i,s){t&&i?.sessionId===t&&(i.state==="running"||i.state==="decision-blocked")&&i.turnId&&s.adoptRuntimeTurn(t,i.turnId,Date.now())}}}var MH={title:"Status Line",search:"Search",preview:"Preview",defaults:"Defaults",unavailable:"No current data; hidden until available.",empty:"Status line hidden",noMatches:"No matching items",saving:"Saving\u2026",failed:"Could not save. Check config.yaml syntax and permissions; previous settings kept.",locked:"build-mode is startup-only. Edit config.yaml and restart to change it.",help:"Space toggle \xB7 \u2190/\u2192 reorder \xB7 Enter save \xB7 Esc cancel",compactHelp:"Space \xB7 \u2190\u2192 \xB7 Enter \xB7 Esc",reset:"Ctrl+R restores defaults; type to search",filtered:"Clear search before reordering",custom:"Uses the saved command. Starts only after saving; preview never runs it.",close:"Enter / Esc close"},EH={title:"\u72B6\u6001\u680F",search:"\u641C\u7D22",preview:"\u9884\u89C8",defaults:"\u9ED8\u8BA4\u914D\u7F6E",unavailable:"\u5F53\u524D\u65E0\u6570\u636E\uFF0C\u6709\u6570\u636E\u65F6\u624D\u663E\u793A\u3002",empty:"\u72B6\u6001\u680F\u5DF2\u9690\u85CF",noMatches:"\u6CA1\u6709\u5339\u914D\u9879",saving:"\u6B63\u5728\u4FDD\u5B58\u2026",failed:"\u4FDD\u5B58\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5 config.yaml \u8BED\u6CD5\u548C\u6743\u9650\uFF1B\u539F\u8BBE\u7F6E\u5DF2\u4FDD\u7559\u3002",locked:"build-mode \u4EC5\u5728\u542F\u52A8\u65F6\u751F\u6548\uFF0C\u8BF7\u4FEE\u6539 config.yaml \u540E\u91CD\u542F\u3002",help:"Space \u52FE\u9009 \xB7 \u2190/\u2192 \u6392\u5E8F \xB7 Enter \u4FDD\u5B58 \xB7 Esc \u53D6\u6D88",compactHelp:"Space \xB7 \u2190\u2192 \xB7 Enter \xB7 Esc",reset:"Ctrl+R \u6062\u590D\u9ED8\u8BA4\uFF1B\u8F93\u5165\u6587\u5B57\u641C\u7D22",filtered:"\u6E05\u7A7A\u641C\u7D22\u540E\u624D\u80FD\u6392\u5E8F",custom:"\u4F7F\u7528\u5DF2\u914D\u7F6E\u7684\u547D\u4EE4\uFF0C\u4FDD\u5B58\u540E\u624D\u542F\u52A8\uFF1B\u9884\u89C8\u4E0D\u4F1A\u6267\u884C\u547D\u4EE4\u3002",close:"Enter / Esc \u5173\u95ED"},RH={"current-dir":["Current working directory","\u5F53\u524D\u5DE5\u4F5C\u76EE\u5F55"],"session-title":["Current session title","\u5F53\u524D\u4F1A\u8BDD\u6807\u9898"],"git-branch":["Current Git branch","\u5F53\u524D Git \u5206\u652F"],"review-link":["Current branch PR / MR link","\u5F53\u524D\u5206\u652F\u7684 PR / MR \u94FE\u63A5"],"plan-mode":["Plan mode","\u8BA1\u5212\u6A21\u5F0F"],"approval-mode":["Current permission mode","\u5F53\u524D\u6743\u9650\u6A21\u5F0F"],"model-with-reasoning":["Model and reasoning","\u6A21\u578B\u548C\u63A8\u7406\u914D\u7F6E"],model:["Model name","\u6A21\u578B\u540D\u79F0"],"context-window":["Context window capacity","\u4E0A\u4E0B\u6587\u603B\u5BB9\u91CF"],subagent:["Subagent identity","\u5B50 Agent \u8EAB\u4EFD"],"token-quota":["Account token quota","\u8D26\u6237\u989D\u5EA6"],"cache-read-ratio":["Session cache read ratio","\u4F1A\u8BDD\u7F13\u5B58\u8BFB\u53D6\u6BD4\u4F8B"],"context-remaining":["Remaining context window","\u5269\u4F59\u4E0A\u4E0B\u6587\u7A97\u53E3"],"context-meter":["Remaining context gauge","\u5269\u4F59\u4E0A\u4E0B\u6587\u523B\u5EA6\u6761"],"custom-command":["Configured custom command output","\u5DF2\u914D\u7F6E\u7684\u81EA\u5B9A\u4E49\u547D\u4EE4\u8F93\u51FA"]};function aR(n){return Hn(n??Intl.DateTimeFormat().resolvedOptions().locale)==="zh"}function uR(n,e){return aR(e)?EH[n]:MH[n]}function uy(n,e){return RH[n][aR(e)?1:0]}var fp=class{constructor(e){this.options=e;this.locked=e.items?.includes("build-mode")??!1,this.useDefaults=e.items===void 0,this.resetItems(e.items??is)}fullscreenViewport=!0;handlesViewportKeys=!0;items=[];enabled=new Set;useDefaults;selected=0;searchInput=new tt;busy=!1;error=!1;disposed=!1;locked;get focused(){return this.searchInput.focused}set focused(e){this.searchInput.focused=e&&!this.locked}get query(){return this.searchInput.getValue()}handleInput(e){if(this.busy||this.disposed)return;let t=se();if(t.matches(e,"tui.select.cancel")||S(e,"ctrl+c")){this.options.onClose();return}if(t.matches(e,"tui.select.confirm")){this.locked?this.options.onClose():this.save();return}if(this.locked)return;let i=this.visibleItems();if(t.matches(e,"tui.select.up"))this.selected=(this.selected-1+i.length)%Math.max(1,i.length);else if(t.matches(e,"tui.select.down"))this.selected=(this.selected+1)%Math.max(1,i.length);else if(S(e,"space")){let s=i[this.selected];s&&(this.enabled.has(s)?this.enabled.delete(s):this.enabled.add(s),this.useDefaults=!1)}else if(S(e,"left")||S(e,"right"))this.query?this.searchInput.handleInput(e):this.moveItem(S(e,"left")?-1:1);else if(S(e,"ctrl+r"))this.resetItems(is),this.useDefaults=!0,this.searchInput.setValue("");else{let s=this.query;this.searchInput.handleInput(e),this.query.length>100&&this.searchInput.setValue(this.query.slice(0,100)),this.query!==s&&(this.selected=0)}this.options.requestRender()}dispose(){this.disposed=!0}invalidate(){this.searchInput.invalidate()}render(e){return this.renderViewport(e,20)}renderViewport(e,t){let i=Math.max(0,Math.floor(t));if(e<=0||i===0)return[];let s=R=>uR(R,this.options.locale);if(this.locked)return Tn({title:s("title"),body:Y(s("locked"),Math.max(1,at(e))),footer:s("close")},e,i);let r=this.busy?s("saving"):s(e>=64?"help":"compactHelp"),o=de(e,i,r),a=o.contentWidth,u=`${s("search")}: `,l=u+(this.searchInput.render(Math.max(1,a-w(u)))[0]??""),d=this.visibleItems(),h=d[this.selected],m=this.options.preview(this.selection(),a,3),f=m.lines.filter(R=>R.length>0).slice(0,i>=15?3:1);f.length===0&&f.push(s("empty"));let y=R=>(R===h?p.bold.hex(c.signal):p.hex(c.text))(`${R===h?"\u203A":" "} [${this.enabled.has(R)?"x":" "}] ${R}`);if(i<9)return o.render({title:s("title"),body:[...o.bodyHeight>=2?[l]:[],h?y(h):s("noMatches"),...this.error?[s("failed")]:f]});let T=h?`${uy(h,this.options.locale)}${m.unavailable.includes(h)?` \xB7 ${s("unavailable")}`:""}`:s("noMatches"),b=i>=15?[s(h==="custom-command"?"custom":this.query?"filtered":"reset")]:[],v=this.error?[p.hex(c.warning)(s("failed"))]:[],I=Math.max(1,Math.min(8,o.bodyHeight-3-f.length-b.length-v.length)),k=Math.max(0,Math.min(this.selected-I+1,d.length-I));return o.render({title:s("title"),meta:this.useDefaults?s("defaults"):`${this.enabled.size} / ${this.items.length}`,body:[l,...d.length?d.slice(k,k+I).map(y):[s("noMatches")],p.hex(c.muted)(T),...b.map(R=>p.hex(c.muted)(R)),p.bold.hex(c.text)(s("preview")),...f,...v]})}selection(){return this.useDefaults?void 0:this.items.filter(e=>this.enabled.has(e))}resetItems(e){this.items=[...new Set([...e,...V1])].filter(t=>t!=="build-mode"),this.enabled=new Set(e.filter(t=>t!=="build-mode")),this.selected=0}visibleItems(){let e=this.query.toLocaleLowerCase();return this.items.filter(t=>`${t} ${uy(t,this.options.locale)}`.toLocaleLowerCase().includes(e))}moveItem(e){let t=this.selected+e,i=this.items[this.selected];!i||t<0||t>=this.items.length||(this.items.splice(this.selected,1),this.items.splice(t,0,i),this.selected=t,this.useDefaults=!1)}async save(){let e=this.selection();if(JSON.stringify(e)===JSON.stringify(this.options.items)){this.options.onClose();return}this.busy=!0,this.error=!1,this.options.requestRender();try{await this.options.save(e),this.disposed||this.options.onClose()}catch{this.error=!0}finally{this.busy=!1,this.disposed||this.options.requestRender()}}};function lR(n){let e=new fp({items:n.statusLine.getConfiguredItems(),preview:(t,i,s)=>n.statusLine.preview(t,i,s),save:async t=>{if(!n.persist)throw new Error("Status line persistence is unavailable");await n.persist(t),n.statusLine.setConfiguredItems(t)},onClose:()=>{n.surface.close(e)},requestRender:()=>n.surface.request()});n.surface.show(e)}var ly=["light","auto","dark"],gp=class{constructor(e){this.options=e;this.originalThemeId=e.currentThemeId,this.originalAppearance=e.appearanceOverride??"auto",this.appearance=this.originalAppearance;let t=e.themes.findIndex(i=>i.id===e.currentThemeId);this.selectedIndex=t>=0?t:0}selectedIndex;originalThemeId;originalAppearance;appearance;busy=!1;error=!1;disposed=!1;handleInput(e){if(this.busy||this.disposed)return;let t=se();if(t.matches(e,"tui.select.cancel")||S(e,"ctrl+c")){this.restore(),this.options.onClose();return}if(t.matches(e,"tui.select.confirm")){this.commit();return}let i=this.options.themes;if(i.length===0)return;if(t.matches(e,"tui.select.up"))this.selectedIndex=(this.selectedIndex-1+i.length)%i.length;else if(t.matches(e,"tui.select.down"))this.selectedIndex=(this.selectedIndex+1)%i.length;else if(S(e,"left"))this.shiftAppearance(-1);else if(S(e,"right"))this.shiftAppearance(1);else return;let s=i[this.selectedIndex];s&&this.options.preview(s.id),this.options.requestRender()}dispose(){this.disposed=!0}invalidate(){}render(e){return this.renderViewport(e,20)}renderViewport(e,t){let i=Math.max(0,Math.floor(t));if(e<=0||i===0)return[];let s=this.options.themes,r=de(e,i,hR(e,this.busy));if(s.length===0)return Tn({title:"Theme",body:["No themes available."],footer:hR(e,!1)},e,i);let o=s[Math.min(this.selectedIndex,s.length-1)];if(!o)return[];let a=o.id===this.originalThemeId,u=Math.max(...s.map(f=>w(f.label)),w("Appearance")),l=pR(o,this.resolvedAppearance()),d=[`${p.hex(c.muted)("Appearance")} ${kH(this.appearance,this.options.currentAppearance)}`,`${p.hex(c.muted)("Source")} ${o.source==="custom"?"custom file":"built-in"}`,...o.description?[`${p.hex(c.muted)("About")} ${o.description}`]:[],`${p.hex(c.muted)("Palette")} ${l}`];if(this.error&&d.push(p.hex(c.error)("Could not save the theme selection.")),i<10)return r.render({title:"Theme",body:[dR(o.label,a,this.options.currentThemeId===o.id,u,this.resolvedAppearance(),o),...r.bodyHeight>=4?d.slice(0,2):[]]});let h=Math.max(1,Math.min(s.length,r.bodyHeight-d.length-1)),m=Math.max(0,Math.min(this.selectedIndex-h+1,s.length-h));return r.render({title:"Theme",meta:`${s.length} available`,body:[...s.slice(m,m+h).map(f=>dR(f.label,f.id===this.originalThemeId,f.id===o.id,u,this.resolvedAppearance(),f)),...d]})}resolvedAppearance(){return this.appearance==="auto"?this.options.currentAppearance:this.appearance}shiftAppearance(e){let t=ly.indexOf(this.appearance),i=ly[Math.max(0,Math.min(t+e,ly.length-1))];i!==this.appearance&&(this.appearance=i,this.options.setAppearance(i))}restore(){this.options.themes.find(t=>t.id===this.originalThemeId)&&this.options.preview(this.originalThemeId),this.appearance=this.originalAppearance,this.options.setAppearance(this.originalAppearance)}async commit(){let e=this.options.themes[this.selectedIndex];if(e){if(e.id===this.originalThemeId&&this.appearance===this.originalAppearance){this.options.onClose();return}this.busy=!0,this.error=!1,this.options.requestRender();try{await this.options.save(e.id,this.appearance),this.originalThemeId=e.id,this.originalAppearance=this.appearance,this.disposed||this.options.onClose()}catch{this.error=!0}finally{this.busy=!1,this.disposed||this.options.requestRender()}}}};function kH(n,e){return n==="auto"?`auto (${e})`:n==="light"?"light (pinned)":"dark (pinned)"}function pR(n,e){let t=e==="light"?n.light:n.dark;return["brand","accent","markdownHeading","markdownCode","success","warning","error"].map(s=>p.bgHex(t.colors[s])(" ")).join("")}function dR(n,e,t,i,s,r){let o=t?"\u203A":" ",a=t?p.bold.hex(c.signal)(n):p.hex(c.text)(n),u=" ".repeat(Math.max(0,i-w(n))),l=e?p.hex(c.success)(cR.trim()):"",d=" ".repeat(Math.max(0,w(cR)-w(l)));return`${o} ${a}${u} ${l}${d} ${pR(r,s)}`}var cR=" current ";function hR(n,e){return e?"Saving\u2026":n>=64?"\u2191\u2193 theme \xB7 \u2190\u2192 appearance \xB7 Enter save \xB7 Esc cancel":"\u2191\u2193 \u2190\u2192 \xB7 Enter \xB7 Esc"}function PH(n,e){return e==="auto"?n:`${n}/${e}`}function mR(n){let{controller:e,surface:t}=n,i=new gp({themes:e.listThemes(),currentThemeId:e.selectedThemeId(),currentAppearance:e.snapshot().appearance,appearanceOverride:e.appearanceOverrideValue(),preview:s=>{e.previewTheme(s)},setAppearance:s=>{e.setAppearanceOverride(s==="auto"?void 0:s)},save:(s,r)=>{if(!e.setTheme(s))throw new Error(`Theme "${s}" is no longer available`);n.persist?.(PH(s,r))},onClose:()=>{t.close(i)},requestRender:()=>t.request()});t.show(i)}import{lstat as _H,open as LH,readdir as OH,realpath as yp}from"node:fs/promises";import{createRequire as NH}from"node:module";import{homedir as DH}from"node:os";import os from"node:path";var FH=600*1e3,$H=256,fR=64*1024,BH=256*1024,qH=300*1e3,TR=async n=>{let e=n.nowMs??Date.now(),t=n.recentWindowMs??FH,i=e-t,s=os.resolve(n.codexHome??process.env.CODEX_HOME??os.join(n.homeDir??DH(),".codex")),r=os.join(s,"sessions"),o,a;try{[o,a]=await Promise.all([yp(n.workspaceDir),yp(r)])}catch{return}let u=await HH(a,i,e);if(u)for(let l of u){let d=await KH(l.filePath);if(!(!d||d.source!=="cli"&&d.source!=="vscode"||await jH(d.cwd)!==o))return{sessionId:d.sessionId,updatedAtMs:l.updatedAtMs,source:d.source}}};async function HH(n,e,t){let i=UH(e,t),s=[];for(let r of i){let o=os.join(n,...r),a;try{a=await OH(o,{withFileTypes:!0})}catch{continue}for(let u of a){if(!u.isFile()||!/^rollout-.+\.jsonl(?:\.zst)?$/u.test(u.name))continue;let l=os.join(o,u.name);try{let d=await _H(l);if(!d.isFile()||d.isSymbolicLink()||d.mtimeMs<e||d.mtimeMs>t+qH)continue;let h=await yp(l);if(!VH(n,h))continue;if(s.push({filePath:h,updatedAtMs:Math.min(d.mtimeMs,t)}),s.length>$H)return}catch{continue}}}return s.sort((r,o)=>o.updatedAtMs-r.updatedAtMs||r.filePath.localeCompare(o.filePath))}function UH(n,e){let t=new Map;for(let i of[n,e]){let s=new Date(i),r=[[s.getFullYear(),s.getMonth()+1,s.getDate()],[s.getUTCFullYear(),s.getUTCMonth()+1,s.getUTCDate()]];for(let[o,a,u]of r){let l=[String(o),yR(a),yR(u)];t.set(l.join("/"),l)}}return[...t.values()]}async function KH(n){let e;try{e=await WH(n)}catch{return}for(let t of e.split(`
263
263
  `).slice(0,20)){if(!t.trim())continue;let i;try{i=JSON.parse(t)}catch{continue}if(!gR(i)||i.type!=="session_meta"||!gR(i.payload))continue;let{id:s,cwd:r,source:o}=i.payload;return typeof s!="string"||!s.trim()||typeof r!="string"||typeof o!="string"||!os.basename(n).includes(s)?void 0:{sessionId:s,cwd:r,source:o}}}async function WH(n){let e=n.endsWith(".zst"),t=e?BH:fR,i=await LH(n,"r");try{let s=Buffer.alloc(t),{bytesRead:r}=await i.read(s,0,s.length,0),o=s.subarray(0,r);if(!e)return o.toString("utf8");let u=NH(__mavis_tuiPackageEntryUrl)("node:zlib");if(!u.zstdDecompressSync)throw new Error("Zstandard is unavailable.");return u.zstdDecompressSync(o,{maxOutputLength:fR}).toString("utf8")}finally{await i.close()}}async function jH(n){try{return await yp(n)}catch{return}}function gR(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function VH(n,e){let t=os.relative(n,e);return t!==""&&!t.startsWith("..")&&!os.isAbsolute(t)}function yR(n){return String(n).padStart(2,"0")}var Tp=class{constructor(e){this.options=e}pristine=!0;recentSession;take(){if(!this.isEligible())return;let e=this.recentSession;if(e)return this.recentSession=void 0,this.pristine=!1,this.options.chrome()?.setWelcomeTip(void 0),e}restore(e){this.isEligible(!0)&&(this.recentSession=e,this.pristine=!0,this.showTip())}dismiss(){!this.pristine&&!this.recentSession||(this.pristine=!1,this.recentSession=void 0,this.options.chrome()?.setWelcomeTip(void 0))}async detect(){if(await this.options.skills.refreshSkillCommands(),!this.options.skills.skillCommands().some(t=>t.name==="resume-codex"))return;let e=await(this.options.app.findRecentCodexSession??TR)({workspaceDir:this.options.app.workspaceDir,...this.options.app.homeDir?{homeDir:this.options.app.homeDir}:{}});!e||!this.isEligible()||(this.recentSession=e,this.showTip())}isEligible(e=!1){return(e||this.pristine)&&!this.options.isStopped()&&!this.options.controller.snapshot().session&&!this.options.liveRunId()&&this.options.transcript.snapshot().length===0&&this.options.editor.getExpandedText().length===0&&!this.options.composerDraft.hasContent()}showTip(){let e=Ce("welcome.resume-codex",this.options.app.keybindings);this.options.chrome()?.setWelcomeTip({id:"codex-handoff",command:"resume-codex",text:`Tip: ${e} resumes your recent Codex session`,shortText:`Tip: ${e} resumes Codex`}),this.options.onChanged()}};function SR(n){let e=oR(n.runtime),t=ns(n.statusLineItems??[]).includes("build-mode"),{terminal:i,renderer:s,tui:r,terminalNotifications:o,themeController:a,openExternalTarget:u,writeClipboardText:l}=qA(n),d=new hh(_M()),h=XE(n.productFeatures),m=n.exportTranscript??(n.dataDir?JE(n.dataDir):void 0),{defaultAgentName:f,workspaceRoots:y,...T}=BA(n),b=new Hr,v=new gh(b),I=new Xc(v,{displayModes:new co,workspaceDir:n.workspaceDir,appendOnly:()=>s.mode==="regular"}),k=HA(r,y,n.runtime),R,D,E,$=P=>E?.update(P),_,B,F,q,ee,ce,re=()=>{},He=!1,ae=!1,Qe=!1,Rt=WA({app:n,tui:r,terminal:i,editor:k,requestRender:()=>He&&!ae?r.requestRender():void 0}),{welcome:Bn,updateNotice:W,status:G,activity:le,composer:Se,interaction:J,followUp:Ne,goal:nt,tasks:en}=Rt,Ee=BM({transcript:b,isStopped:()=>ae,onChanged:()=>r.requestRender()}),tn=new yh({transcript:b,onChanged:()=>{re(),ae||($(ie.snapshot()),r.requestRender())}}),ie=new ah({runtime:n.runtime,transcript:b,workspaceDir:n.workspaceDir,version:n.version,defaultAgentName:f,...T,onAutomationResultPublished:P=>xe.handleAutomationResultPublished(P),onTodoChange:P=>en.setItems(P),onUserSubmissionProjected:()=>{q?.dismiss(),He&&!ae&&r.renderNow()},onSessionLifecycle:P=>{P||tn.clearUnboundContext(),e.onSessionLifecycle(P)},onChange:P=>{if(ae)return;let oe=P.session?.sessionId;oe&&R?.adoptCreatedSession(oe),d.snapshot().activeSessionId!==oe&&(d.dispatch({type:"session/activate",sessionId:oe}),ue?.reconcileSession(),ce?.refresh(oe)),$(P),_?.schedule(P),He&&r.requestRender()}}),Bt=()=>{$(ie.snapshot()),He&&!ae&&r.requestRender()},nn=new dh,{latestRuntimeTurnId:Qs,liveRunId:sn}=zA(ie,nn),te=()=>!!(sn()||ie.hasInProcessRun()),Ct=()=>He&&!ae&&!Qe,qt=()=>!1,{layout:To,surfaceHost:Ht,fullscreenLayout:mu,themeRendering:cy,interactionSurface:wt}=VA({terminal:i,tui:r,editor:k,controller:ie,transcript:b,transcriptView:I,widgets:Rt,themeController:a,liveRunId:sn,shouldResumeDraftAfterLogin:()=>qt(),isActive:Ct,requestInteractionRender:fu,mode:()=>s.mode,switchMode:P=>s.switchMode(P),chatMode:n.tuiMode??"regular"});re=()=>To.followBottom(),s.setFullscreenLayoutRoot(mu);let kt,Cn=new Promise(P=>{kt=P}),Xe,{sessionMutationFlow:ue,delegationFlow:xe}=QA({app:n,controller:ie,transcript:b,surfaceHost:Ht,editor:k,sessionFlow:()=>Xe,setHint:P=>E?.setHint(P),append:Ee,setEditTranscriptBoundary:v.hideFromSourceMessage,onAgentTeamChanged:P=>en.setAgentTeam(P),onBackgroundTasksChanged:P=>en.setBackgroundTasks(P),onChanged:Bt,hasLiveRun:te}),bo=rR({editAttachmentPlaceholders:()=>ue.retainedEditAttachments(),editAttachmentCount:()=>ue.editAttachmentCount(),app:n,controller:ie,banner:nt,editor:k,surfaceHost:Ht,append:Ee,scheduleDraft:()=>R?.schedule(),chrome:()=>E,isStopped:()=>ae,hasLiveRun:te,updateChrome:()=>$(ie.snapshot()),onEditorChanged:()=>_?.onEditorChanged(),requestRender:()=>He&&!ae?r.requestRender():void 0}),rn=bo.composerDraft;Rt.imagePreview.setAttachmentSource(()=>[...ue.retainedEditAttachments(),...rn.snapshot().attachments]),qt=()=>n.resumeDraftAfterLogin===!0&&(k.getExpandedText().length>0||rn.snapshot().attachments.length>0),ce=bo.goalFlow;let vo=new Th({runtime:n.runtime,stateStore:d,defaultAgentName:f,resolveSessionAgentName:P=>{let oe=ie.snapshot();return oe.session?.sessionId===P?oe.session.agentName:oe.sessions.find(ft=>ft.sessionId===P)?.agentName},permissionSessionScope:P=>xe.permissionSessionScope(P),queueEnabled:h.queue}),FR=new ph(P=>vo.reconcile(P),P=>d.dispatch(P)),Pi=new Ah({runtime:n.runtime,controller:ie,stateStore:d,transcript:b,surface:wt,defaultAgentName:f,append:Ee,deliverPermissionFeedback:async P=>{if(await F.submit(P)==="retained")throw new Error("MCode kept the guidance in the composer instead of sending it.")},onChanged:()=>{$(ie.snapshot()),He&&!ae&&r.requestImmediateRender()},isStopped:()=>ae,notify:(P,oe)=>{o.notifyOnce(P,oe)},...xe.permissionResolvers(sn),agentStatusLineItems:n.statusLineItems,stopTurn:()=>{ee()}}),mt=new Wh({runtime:n.runtime,version:n.version,planMode:()=>_i.snapshot(),controller:ie,surface:wt,surfaceHost:Ht,editor:k,transcript:b,transcriptView:I,writeClipboardText:l,openExternalTarget:u,exportTranscript:m,workspaceDir:n.workspaceDir,defaultAgentName:f,terminalRows:()=>i.rows,append:Ee,setCompacting:P=>{E?.setCompacting(P),$(ie.snapshot()),He&&!ae&&r.requestRender()},setHint:P=>{E?.setHint(P)},onChanged:Bt,onNewSession:()=>Xe.startNew(),onOpenSession:P=>Xe.activateSessionById(P),onArchivedCurrentSession:P=>Xe.archiveCurrentProjection(P),refreshAutocomplete:()=>_?.refreshAutocomplete(),onStartMiniMaxLogin:()=>F.startMiniMaxLogin(),isStopped:()=>ae,hasLiveRun:te}),So=GA({telemetry:n.businessTelemetry,workspaceDir:n.workspaceDir,controller:ie,featureFlow:mt,stateStore:d,transcript:b});k.onAutocompleteView=P=>So?.trackAutocompleteView(P),k.onAutocompleteSelect=(P,oe)=>So?.trackAutocompleteSelection(P,oe);let hy=new fh(n.runtime,ie,Ee,P=>wt.show(P),P=>wt.close(P),fu,()=>xg(i.rows)),$R=YE({runtime:n.runtime,snapshot:()=>ie.snapshot(),defaultAgentName:f,queueEnabled:h.queue}),py=QE(n,Ee,wt,fu,()=>xg(i.rows),async()=>{n.requestRestart?.(),await gu()},$R);_=new hc({runtime:n.runtime,controller:ie,editor:k,terminal:i,workspaceDir:n.workspaceDir,workspaceRoots:()=>y.list(),liveRunId:sn,skillCommands:()=>[...mt.skillCommands()],requireSession:()=>mt.requireActiveSession(),append:Ee,stage:P=>mt.stageCommand(P),showInteraction:P=>wt.show(P),closeInteraction:P=>wt.close(P),onChanged:Bt,adoptRuntimeTurn:(P,oe,ft)=>B.adoptRuntimeTurn(P,oe,ft),queueEnabled:h.queue,keybindings:n.keybindings,isStopped:()=>ae});let bp=new Set;ee=GE({controller:ie,runProjection:nn,stopDelegation:P=>n.runtime.stopDelegation(P),abortSession:P=>n.runtime.abortSession(P),getActiveRun:P=>n.runtime.getActiveRun(P),latestRuntimeTurnId:Qs,setTransientHint:P=>E?.setHint(P),updateChrome:()=>$(ie.snapshot()),requestRender:()=>{ae||r.requestRender()},append:Ee,onLiveTurnAborted:({turnId:P})=>{if(Xe.isSideModeActive())return;let oe=b.snapshot().filter(Re=>Re.turnId===P),ft=b.get(`user:${P}`);if(!ft||bp.has(P)||oe.some(Re=>!(Re.id===`user:${P}`||Re.kind==="thinking"||Re.kind==="turn-duration"||(Re.kind==="assistant"||Re.kind==="assistant-preamble")&&!Re.content)))return;let yu=F.getRetainedSubmission(P),Sp=yu?zH(yu):void 0;if(yu&&Sp){F.restoreSubmission(Sp),F.markAbortSubmissionRestored(yu.submissionId),F.dropRetainedSubmission(P),bp.add(P),vR(b,P),R?.recordRestoredSubmission(Sp),E?.setHint("Stopped \xB7 message restored to the Composer."),$(ie.snapshot()),r.requestRender();return}let Tu=ft.content,yy=(ft.attachments??[]).flatMap(Re=>Re.filePath&&typeof Re.sizeBytes=="number"?[{type:Re.type,fileName:Re.fileName,mimeType:Re.mimeType,sizeBytes:Re.sizeBytes,filePath:Re.filePath}]:[]),Cp=(ft.attachments??[]).flatMap(Re=>Re.assetId?[{type:Re.type,fileName:Re.fileName,mimeType:Re.mimeType,...Re.filePath?{filePath:Re.filePath}:{},assetId:Re.assetId}]:Re.filePath&&typeof Re.sizeBytes=="number"?[{type:Re.type,fileName:Re.fileName,mimeType:Re.mimeType,filePath:Re.filePath}]:[]);if(!Tu.trim()&&yy.length===0&&Cp.length===0)return;let Ty={submissionId:`abort-restore:${P}`,sessionId:ie.snapshot().session?.sessionId,content:Tu,attachments:yy,...Cp.length>0?{transportAttachments:Cp}:{},createdAtMs:Date.now(),editor:{schemaVersion:1,text:Tu,cursor:Tu.length,pastes:[],pasteCounter:0}};F.restoreSubmission(Ty),bp.add(P),vR(b,P),R?.recordRestoredSubmission(Ty),E?.setHint("Stopped \xB7 message restored to the Composer."),$(ie.snapshot()),r.requestRender()}});let _i=new lp({currentSession:()=>ie.snapshot().session,loadEntryEnabled:async()=>(await n.runtime.getPlanModeCapabilities()).entryEnabled,append:Ee,setHint:P=>E?.setHint(P),onChanged:Bt,isStopped:()=>ae}),ni=new zh({runtime:n.runtime,controller:ie,composerDraft:rn,runProjection:nn,transcript:b,followUp:Ne,surface:wt,enabled:h.queue,setHint:P=>E?.setHint(P),onChanged:()=>$(ie.snapshot()),requestRender:()=>r.requestRender(),selectedModel:()=>{let P=mt.selectedModel();if(!P)return;let oe=qn(P,mt.selectedEffort())?.trim();return{providerId:P.providerId,modelId:P.modelId,...P.variant!==void 0?{variant:P.variant}:{},...oe?{thinking:{effort:oe}}:{}}},adoptRuntimeTurn:(P,oe,ft)=>B.adoptRuntimeTurn(P,oe,ft),isStopped:()=>ae,onSubmissionQueued:(P,oe,ft,gy)=>_i.acceptQueued(ft,oe,P,gy),onSubmissionRestored:(P,oe)=>_i.restoreQueued(oe,P),restoreSubmission:P=>F.restoreSubmission(P)});R=UA({app:n,editor:k,composerDraft:rn,setHint:P=>E?.setHint(P),updateChrome:()=>$(ie.snapshot()),append:Ee,onRetryRestored:P=>F?.restoreRecoverableSubmission(P)}),Xe=new Qh({observability:n.observability,runtime:n.runtime,controller:ie,stateStore:d,composerDraft:rn,interactionFlow:Pi,featureFlow:mt,queueFlow:ni,delegationFlow:xe,activeRunFlow:{refresh:P=>_.refresh(P),currentSnapshot:()=>_.currentSnapshot()},goalFlow:ce,runProjection:nn,append:Ee,onChanged:()=>{$(ie.snapshot()),r.requestRender()},followBottom:()=>To.forceFollowBottom(),requestWelcomeRebuild:()=>r.requestImmediateRender(),switchComposerDraft:P=>(F.clearRetainedSubmissions(),R?.switchSession(P)??Promise.resolve()),detachForegroundObserver:()=>B?.detachForegroundObserver(),adoptForegroundRun:()=>e.adoptForegroundRun(ie.snapshot().session?.sessionId,_.currentSnapshot(),B),preparePluginHookSessionSwitch:e.preparePluginHookSessionSwitch,hasLiveRun:()=>te()||tn.isRunning(),abortForegroundRun:()=>ee(),abortSessionRun:P=>n.runtime.abortSession({id:P,reason:"user_stop"}),currentRunId:sn,onSideSessionOpened:P=>So?.trackBtwSessionOpened(P),onSideSessionClosed:P=>So?.trackBtwSessionClosed(P),onSideConversationChanged:()=>{$(ie.snapshot()),r.requestRender()}});let Co=new op({runtime:n.runtime,append:Ee,setHint:P=>E?.setHint(P),onChanged:()=>{$(ie.snapshot()),r.requestRender()},isStopped:()=>ae});F=new tp({bashFlow:tn,workspaceDir:n.workspaceDir,...n.commandContributions?{contributions:n.commandContributions}:{},controller:ie,activeRunFlow:_,featureFlow:mt,feedbackFlow:hy,sessionMutationFlow:ue,updateFlow:py,goalFlow:ce,planModeFlow:_i,permissionModeFlow:Co,...n.auth?{auth:n.auth}:{},openExternalTarget:n.openExternalTarget,interactionFlow:Pi,sessionFlow:Xe,queueFlow:ni,composerDraft:rn,workspaceRoots:y,runProjection:nn,editor:k,surface:wt,surfaceHost:Ht,showTasks:()=>xe.showTasks(),persistTuiMode:n.persistTuiMode,showStatusLine:()=>lR({statusLine:G,surface:wt,persist:n.persistStatusLineItems}),showTheme:()=>mR({controller:a,surface:wt,persist:n.persistTheme}),keybindings:n.keybindings,getTuiKeybindingOverrides:n.getTuiKeybindingOverrides,saveTuiKeybindingOverrides:n.saveTuiKeybindingOverrides,reloadTui:n.reloadTui,queueEnabled:h.queue,liveRunId:sn,runtimeStopping:()=>!!nn.snapshot().stoppingRuntimeTurnId,isLlmRetrying:()=>E?.isLlmRetrying()??!1,abortLiveTurn:ee,leaveUi:gu,requestRestart:n.requestRestart,notifyAuthContextChanged:n.notifyAuthContextChanged,whenControllerReady:()=>my,whenReady:()=>vp,whenStopping:()=>D??Promise.resolve(),isStopped:()=>ae,append:Ee,setHint:P=>E?.setHint(P),onChanged:()=>{$(ie.snapshot()),r.requestRender()},userMessageCount:()=>b.snapshot().filter(P=>P.kind==="user").length,onMessageAdmitted:P=>{So?.trackChatSend(P),To.forceFollowBottom()}}),_.setCommandCatalog(F.catalog),B=new jh({runtime:n.runtime,controller:ie,stateStore:d,effectRunner:FR,stateCoordinator:vo,sessionFlow:Xe,delegationFlow:xe,activeRunFlow:_,interactionFlow:Pi,runProjection:nn,releaseQueueItem:P=>ni.releaseQueuedSubmission(P),transcript:b,refreshQueue:P=>ni.refresh(P),projectQueueItem:P=>ni.project(P),restoreFailedQueueItem:P=>{let oe=ni.takeOverFailedQueueItem(P);oe&&F.restoreSubmission(oe)},onLlmRetryChanged:P=>{E?.setLlmRetry(P),$(ie.snapshot())},onRetryAvailabilityChanged:(P,oe)=>F.setSessionRetryable(P,oe),goalFlow:ce,updateFollowUpPanel:()=>ni.updatePanel(),onChanged:Bt,append:Ee,isStopped:()=>ae,queueEnabled:h.queue,observability:n.observability,incidentReporter:n.incidentReporter,notify:(P,oe)=>{o.notifyOnce(P,oe)}}),q=new Tp({app:n,skills:mt,controller:ie,liveRunId:sn,transcript:b,editor:k,composerDraft:rn,isStopped:()=>ae,chrome:()=>E,onChanged:Bt});let BR=new rp({cancelBash:()=>tn.cancel(),tui:r,addInputListener:P=>s.addInputListener(P),renderLifecycle:{start:()=>s.start(),stop:async()=>{s.stop(),await i.drainOutput?.()},requestRender:P=>r.requestRender(P)},editor:k,workspaceDir:n.workspaceDir,externalEditorCommand:n.externalEditorCommand,editDraftInExternalEditor:n.editDraftInExternalEditor,interaction:J,interactionSurface:wt,interactionFlow:Pi,featureFlow:mt,commandFlow:F,permissionModeFlow:Co,planModeFlow:_i,composerDraft:rn,liveRunId:sn,hasWaitingMessage:()=>nn.snapshot().queuedCount>0,restoreWaitingMessage:async()=>{let P=await ni.restoreLatest();return P?(k.restoreSubmittedDraft(P.editor),Ht.setChatFocus(k),!0):!1},openQueueManager:()=>ni.openManager(),toggleTasks:()=>en.toggleExpanded(),isStopped:()=>ae,abortLiveTurn:ee,cancelSessionEdit:()=>ue.cancelActiveEdit(),isEditImageAttachment:P=>ue.retainedEditAttachments().some(oe=>oe.id===P&&oe.type==="image"),takeRecentCodexSession:()=>q?.take(),restoreRecentCodexSession:P=>q?.restore(P),dismissRecentCodexSession:()=>q?.dismiss(),leaveUi:gu,isSideModeActive:()=>Xe.isSideModeActive(),toggleSideConversation:()=>Xe.toggleSideConversation(),closeSideConversation:P=>Xe.closeSideConversation(P),requestProcessSuspend:n.requestProcessSuspend,keybindings:n.keybindings,append:Ee,setHint:(P,oe)=>E?.setHint(P,oe),onChanged:()=>{$(ie.snapshot()),r.requestRender()},onSubmissionStarted:(P,oe)=>R?.suspendForSubmission(P,oe),onSubmissionPrepared:(P,oe)=>R?.updatePendingSubmission(P,oe),onSubmissionAdmitted:P=>R?.settleSubmission(P),onSubmissionSettled:P=>R?.settleSubmission(P),requestInteractionRender:fu}).attach();E=new lh({keybindings:n.keybindings,version:n.version,workspace:n.workspaceDir,...n.homeDir?{homeDir:n.homeDir}:{},queueEnabled:h.queue,isStarted:()=>He,isStopped:()=>ae,setTerminalTitle:P=>i.setTitle(P),connection:()=>d.snapshot().connection,liveRunId:sn,runProjection:()=>nn.snapshot(),transcript:b,shouldResumeDraftAfterLogin:()=>qt(),activePermission:()=>!!Pi.permission(),activeQuestionnaire:()=>!!Pi.questionnaire(),agentInteraction:()=>Pi.agentReadback(),...t?{agentCounts:()=>xe.agentCounts(),backgroundTaskCount:()=>xe.backgroundTaskCount()}:{},attachmentCount:()=>rn.snapshot().attachments.length+ue.retainedEditAttachments().length,expandedDraft:()=>k.getExpandedText(),inputCommands:()=>[...F.catalog.inputCommands,...mt.skillCommands()],selectedModel:()=>mt.selectedModel(),selectedEffort:()=>mt.selectedEffort(),permissionMode:()=>Co.snapshot(),planMode:()=>_i.snapshot(),sideConversation:()=>Xe.sideConversationSnapshot(),sessionState:()=>d.snapshot(),turnStartedAtMs:P=>ie.turnStartedAtMs(P),welcome:Bn,status:G,activity:le,composer:Se});function fu(){!He||ae||r.requestImmediateRender()}let my=ie.initialize(),vp=my.then(async()=>{await mt.refreshSelectedModel(),await Promise.all([Co.refresh().catch(()=>{}),_i.refreshCapabilities().catch(()=>{})]),await ce?.refresh()}),{openSession:qR,continueLatestSession:HR}=KA({ready:vp,sessionFlow:Xe,workspaceDir:n.workspaceDir,append:Ee});async function fy(P={}){if(ae)return Cn;d.dispatch({type:"lifecycle/leaveUi"}),ae=!0;let oe=tn.stop();if(BR(),rn.abortClipboardRead(),B.stop(),Xe.stop(),Pi.deactivate(),mt.stop(),xe.stop(),_.stop(),Co.stop(),_i.stop(),hy.stop(),py.stop(),a.dispose(),le.dispose(),Rt.imagePreview.dispose(),s.prepareTranscriptExit(),D??=R?.stop()??Promise.resolve(),Mt(Ht,k,I,G,nt),P.abortActiveTurn!==!1){let ft=ie.snapshot();ft.activeTurnId?ie.abort().catch(()=>{}):Qs()&&ft.session?.sessionId&&n.runtime.abortSession({id:ft.session.sessionId,turnId:Qs(),reason:"user_stop"}).catch(()=>{})}return await i.drainInput(1e3).catch(()=>{}),s.dispose(),await i.drainOutput?.().catch(()=>{}),await D,await oe,d.dispatch({type:"lifecycle/stopped"}),kt?.(),Cn}async function gu(){return await ee().catch(()=>!1),fy({abortActiveTurn:!1})}async function UR(){!He||ae||Qe||(Qe=!0,s.stop(),await i.drainOutput?.(),await R?.suspend())}async function KR(){!He||ae||!Qe||(Qe=!1,s.start(),B.restart(),r.requestRender(!0),R?.resume())}return{tui:r,surfaceHost:Ht,editor:k,interaction:J,controller:ie,state:d,transcript:b,ready:vp,firstFrame:s.firstFrame,stopped:Cn,getSurface:()=>To.getSurface(),start(){He||ae||(He=!0,$(ie.snapshot()),Ht.setChatFocus(k),B.start(),s.start(),cy.start(),q.detect().catch(()=>{}),mt.refreshSelectedModel(ie.snapshot().session?.sessionId).catch(()=>{}),_.refresh().catch(()=>{}),ce?.refresh().catch(()=>{}),jA(n,W,()=>ae,r))},suspend:UR,resume:KR,openSession:qR,continueLatestSession:HR,setStartupStatus(P){E?.setStartupHint(P),Bt()},submit:P=>F.submit(P).then(()=>{}),commandFlow:F,abortTurn:ee,leaveUi:gu,stop:fy}}function bR(n){try{return GH(n).isFile()}catch{return!1}}function zH(n){let e=n.attachments.filter(i=>bR(i.filePath)),t=(n.transportAttachments??[]).filter(i=>i.assetId?!0:i.filePath?bR(i.filePath):!1);if(!(!n.content.trim()&&e.length===0&&t.length===0))return{...n,submissionId:`abort-restore:${n.submissionId}`,attachments:e,...n.transportAttachments?{transportAttachments:t}:{},editor:Bc(n.editor.text.trim()?n.editor:{...n.editor,text:n.content,cursor:n.content.length},e)}}function vR(n,e){let t=n.get(`user:${e}`);t&&n.upsert({id:`user:${e}`,kind:"user",status:"cancelled",...t.content?{content:t.content}:{},updatedAtMs:Date.now(),...t.attachments?{attachments:t.attachments}:{}})}var QH=new Set(["sendMessage","watchEvents","watchSessionTurn","watchSessionUsageCommits"]);function CR(n){let e;return n.then(t=>{e=t},()=>{}),new Proxy({},{get(t,i){if(i!=="then"){if(i==="isGoalEnabled")return()=>e?.isGoalEnabled()??!1;if(typeof i=="string")return QH.has(i)?(...s)=>YH(n,i,s):async(...s)=>{let r=await n,o=Reflect.get(r,i);return typeof o!="function"?o:Reflect.apply(o,r,s)}}}})}async function*YH(n,e,t){let i=await n,s=Reflect.get(i,e);if(typeof s!="function")return;yield*Reflect.apply(s,i,t)}import{randomUUID as XH}from"node:crypto";import cu from"node:fs";import JH from"node:path";var ZH="business-telemetry.identity.json",eU=100;function xR(n){let e=n.fetch??fetch,t=iU(n.dataDir),i=nU(n.region,n.buildEnv),s=Math.max(1,n.queueLimit??eU),r=[],o,a=!1,u=async()=>{for(a=!1;r.length>0;){let d=r.shift();if(d)try{let h=await tU(d,t,n);await e(i,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:sU(h),signal:AbortSignal.timeout(n.timeoutMs??3e3)})}catch{}}},l=()=>{a||o||(a=!0,queueMicrotask(()=>{!a||o||(o=u().finally(()=>{o=void 0,r.length>0&&l()}))}))};return{track(d,h){r.length>=s&&r.shift(),r.push({event:d,properties:h}),l()},async flush(){a=!1,o&&await o,r.length>0&&await u()}}}async function tU(n,e,t){let i=await wR(t.hailuoUserId),r=("hailuo_user_id"in n.properties?n.properties.hailuo_user_id.trim():"")||i,o=await wR(t.opGroupId),a={...n.properties,hailuo_user_id:r,...o?{op_group_id:o}:{},page:"tui",project:"MiniMaxAgent",project_name:t.region==="en"?"foreign-agent":"inland-agent",client:"TUI",web_device:"terminal",os:process.platform,device_id:e,real_device_id:e,login_status:r?1:0,onLine:1,browser:"terminal",env:t.buildEnv==="prod"?"prod":"test",device:"TUI",app_id:"3001",app_name:"MiniMax Code",version_tag:t.version,new_version:"marvis",download_source:"mcode"};return{identities:{$identity_cookie_id:e},distinct_id:e,lib:{$lib:"js",$lib_method:"code",$lib_version:t.version},properties:a,type:"track",event:n.event,time:(t.now??Date.now)()}}async function wR(n){try{return(await n?.())?.trim()??""}catch{return""}}function nU(n,e){return n==="en"?e==="prod"?"https://data.hailuo.ai/meerkat-reporter/api/report?project=MiniMaxAgent":"https://bigdata-test.talkie-ai.com/meerkat-reporter/api/report?project=MiniMaxAgent":e==="prod"?"https://data.hailuoai.com/meerkat-reporter/api/report?project=MiniMaxAgent":"https://bigdata-test.xingyeai.com/meerkat-reporter/api/report?project=MiniMaxAgent"}function iU(n){let e=JH.join(n,ZH);try{let i=JSON.parse(cu.readFileSync(e,"utf8"));if(i.version===1&&typeof i.distinctId=="string"&&i.distinctId.trim())return i.distinctId.trim()}catch{}let t=XH();try{cu.mkdirSync(n,{recursive:!0,mode:448});let i=`${e}.${process.pid}.${Date.now()}.tmp`;cu.writeFileSync(i,`${JSON.stringify({version:1,distinctId:t},null,2)}
264
264
  `,{encoding:"utf8",mode:384}),cu.renameSync(i,e),cu.chmodSync(e,384)}catch{}return t}function sU(n){let e=Buffer.from(JSON.stringify(n),"utf8").toString("base64");return new URLSearchParams({data:e,ext:`crc=${rU(e)}`}).toString()}function rU(n){let e=0;for(let t=0;t<n.length;t+=1)e=(e<<5)-e+n.charCodeAt(t),e&=e;return e}function IR(n){if(n.kind!=="available"&&n.kind!=="package-manager")return;let e=n.latestVersion.trim();return e?{latestVersion:e}:void 0}import{mkdirSync as oU,readFileSync as aU,renameSync as uU,writeFileSync as lU}from"node:fs";import hu from"node:path";var AR=hu.join("tui","tui-settings.json"),dU="tui-settings.json",MR=/^[a-z0-9][a-z0-9._-]{0,63}$/iu;function cU(n){return hu.join(n,AR)}function dy(n){for(let e of[AR,dU])try{let t=aU(hu.join(n,e),"utf8").replace(/^\uFEFF/u,""),i=JSON.parse(t);if(i&&typeof i=="object"&&!Array.isArray(i))return i}catch{}return{}}function ER(n,e){let t=cU(n),i=hu.dirname(t);oU(i,{recursive:!0,mode:448});let s={...dy(n),...e};s.tuiMode===void 0&&delete s.tuiMode,s.theme===void 0&&delete s.theme;let r=hu.join(i,`.tui-settings.json.${process.pid}.${Date.now()}.tmp`);lU(r,`${JSON.stringify(s,null,2)}
265
- `,{encoding:"utf8",mode:384}),uU(r,t)}function RR(n){return dy(n).tuiMode==="fullscreen"?"fullscreen":"regular"}function kR(n,e){ER(n,{tuiMode:e})}function PR(n){let e=dy(n).theme;if(typeof e!="string")return;let t=e.trim();if(!t)return;let i=/^([a-z0-9][a-z0-9._-]{0,63})\/(light|dark)$/iu.exec(t),s=i?.[1],r=i?.[2];return s&&r?`${s}/${r.toLowerCase()}`:MR.test(t)?t:void 0}function _R(n,e){let t=e.trim();if(!MR.test(t)&&!/^[a-z0-9][a-z0-9._-]{0,63}\/(light|dark)$/iu.test(t))throw new Error(`"${e}" is not a valid theme id`);ER(n,{theme:t})}var LR=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"];function OR(n){let e=0,t=!1,i=o=>{try{n(o)}catch{}},s=()=>{t||(i(`${LR[e]} Starting server...`),e=(e+1)%LR.length)};s();let r=setInterval(s,80);return r.unref?.(),{stop(){t||(t=!0,clearInterval(r),i(void 0))}}}var yU="Intelligence with everyone, bye~";async function Tpe(n,e={}){if(n.model!==void 0&&xp(n.model.trim()),n.model!==void 0&&n.showSessionPicker)throw new Error("--model requires a Session id with --session; use --session <id> or --continue.");if(!n.terminal&&(!process.stdin.isTTY||!process.stdout.isTTY))throw new Error("Minimax Code interactive mode requires a TTY.");let t=n.homeDir??fU(),i=n.workspaceDir??process.cwd(),s=n.dataDir??await(e.prepareDataDir??ky)(),r=n.terminal??new Ss,o=n.tuiMode??(e.readTuiMode??RR)(s),a=n.theme??(e.readTuiTheme??PR)(s),u=gr(),l=Ay({runtimeRegion:process.env.MAVIS_REGION==="en"?"en":"cn"}),d=Ey(n.lane,l.buildEnv),h=d?{bedrockLane:d}:void 0,m=(e.createSharedAuthSession??TT)({dataDir:s,...l,oauthEndpoints:Cy(process.env,l)}),f,y=()=>f?.realUserID,T=new yT({authContextGetter:()=>f,...h?{routingContextGetter:()=>h}:{},...l}),b=async()=>{try{let te=await m.getAccessToken({requiredScopes:[...Sy],minValidityMs:3e4});return f?.accessToken!==te.accessToken&&(f={accessToken:te.accessToken}),te}catch{f=void 0;return}},v=NR(async()=>{let te=f?.accessToken;if(!te)return;let Ct=await T.getRealUserID();return Ct&&f?.accessToken===te&&(f={...f,realUserID:Ct}),Ct}),I=NR(async()=>{let{opGroupId:te}=await T.getTokenPlanMembership();return te}),k=async()=>{let te=(await b())?.accessToken.trim();return v(te)},R=async()=>{let te=(await b())?.accessToken.trim();return I(te)},D={dataDir:s,appVersion:n.version,...l,terminal:u.terminalId,tuiMode:o,resolveAuthContext:async()=>{let te=await b();if(te)return{accessToken:te.accessToken,realUserID:y()?.trim()}}},E=e.createIncidentReporter?e.createIncidentReporter(D):DR()?Qy:zy(D),$=(te,Ct)=>{Wn(E,{eventType:"cli_process_error",error:te,component:"process",operation:Ct==="unhandledRejection"?"unhandledRejection":"uncaughtException",codeLocation:"src/tui/launcher.ts#uncaughtExceptionMonitor",severity:"fatal",impact:"exit",handled:!1})},_=e.createBusinessTelemetry?e.createBusinessTelemetry({dataDir:s,...l,version:n.version,hailuoUserId:k,opGroupId:R}):DR()?{track:()=>{},flush:async()=>{}}:xR({dataDir:s,...l,version:n.version,hailuoUserId:k,opGroupId:R}),B=te=>{try{_.track("tui_launch",{hailuo_user_id:y()?.trim()??"",launch_type:te})}catch{}},F=(e.createObservability??Vy)(s,{surface:"tui"}),q=!1,ee=!1,ce=te=>{if(te.terminalDead&&(ee=!0),!q){q=!0;try{F.recordProcessStop(pv(te,{homeDirectory:t,workspaceDir:i}))}catch{}}},re=lv(r,ce);F.recordStartup({phase:"cli.process",outcome:"started"}),F.recordTerminal({...u,columns:re.columns,rows:re.rows});let He=e.loadUpdateApplication??(async te=>{let{McodeUpdateApplication:Ct}=await import("./application-ZJ5NM3DF.js");return new Ct({currentVersion:te})}),ae,Qe=()=>(ae??=He(n.version),ae),Rt,Bn=new Promise(te=>{Rt=te}),W,G,le,Se,J,Ne,nt,en,Ee=!1,tn=!1,ie=!1,Bt=!1,nn=!1,Qs,sn;E.runId&&process.on("uncaughtExceptionMonitor",$);try{let te=$n.now();E.breadcrumb("cli.runtime.initialize.started"),F.recordStartup({phase:"runtime.initialize",outcome:"started"});try{G=await(e.loadRuntimeLifecycle??(()=>import("./lifecycle-RMTLVDXY.js")))(),le=G.createTuiRuntime({dataDir:s,workspaceDir:i,version:n.version,surface:"tui",observability:F,...n.contextMode?{contextMode:n.contextMode}:{},...d?{lane:d}:{},...n.systemPromptOverrides?{systemPromptOverrides:n.systemPromptOverrides}:{}},{sharedAuthCore:m}),le.catch(()=>{})}catch(kt){throw F.recordStartup({phase:"runtime.initialize",outcome:"failed",durationMs:$n.now()-te,errorKind:zs(kt)}),kt}let Ct=$n.now();F.recordStartup({phase:"tui.start",outcome:"started"});let qt=await fv(s),Ht=xm(s).overrides,mu=!0;try{let kt=le;if(!kt)throw new Error("Runtime initialization did not start.");let Cn=vv({platform:process.platform,suspendSupported:process.platform!=="win32",windowsClipboardInterop:process.platform==="linux"&&!!(process.env.WSL_DISTRO_NAME||process.env.WSLENV),userOverrides:Ht});Vp(Cn.manager),J=(e.createApp??SR)({runtime:CR(kt.then(ue=>ue.adapter)),dataDir:s,version:n.version,workspaceDir:i,...qt.statusLineItems?{statusLineItems:qt.statusLineItems}:{},...qt.customStatusLine?{customStatusLine:qt.customStatusLine}:{},...qt.showTips===void 0?{}:{showTips:qt.showTips},...qt.notifications?{notifications:qt.notifications}:{},...process.env[wg]?{automationResultPath:process.env[wg]}:{},...n.workspaceRoots?{workspaceRoots:n.workspaceRoots}:{},homeDir:t,terminal:re,tuiMode:o,clearScrollbackOnStart:!!(n.sessionId?.trim()||n.continueLatestSession),persistTuiMode:ue=>(e.writeTuiMode??kR)(s,ue),...a?{theme:a}:{},persistTheme:ue=>(e.writeTuiTheme??_R)(s,ue),persistStatusLineItems:ue=>wy(s,ue),externalEditorCommand:n.externalEditorCommand,observability:F,incidentReporter:E,businessTelemetry:_,auth:(e.createAuthApplication??bT)({dataDir:s,...l,sharedAuthCore:m,telemetry:_,telemetrySource:"mcode_tui",hailuoUserId:y}),notifyAuthContextChanged:async ue=>{let xe=await kt;await xe.synchronizeAuthContext(ue),await xe.host.notifyAuthContextChanged?.(ue),ue==="authenticated"?await b():f=void 0,E.breadcrumb("cli.auth.context.changed",{authState:ue}),ue==="authenticated"&&E.drain()},readClipboardImage:async ue=>{let{readTuiClipboardImage:xe}=await import("./clipboard-image-Q5NH3BUQ.js");return xe({signal:ue})},keybindings:Cn.registry,...process.platform==="win32"?{}:{requestProcessSuspend:()=>process.kill(process.pid,"SIGTSTP")},requestRestart:(ue,xe)=>{nn=!0,ue&&(Qs=ue),xe&&(sn=xe)},getTuiKeybindingOverrides:()=>({...Ht}),saveTuiKeybindingOverrides:ue=>{let xe={...ue};wv(s,xe),Ht=xe,Cn.manager.setUserBindings({...Cn.hostOverrides,...xe})},reloadTui:async()=>{let ue=await kt,xe=xm(s);if(xe.error)throw new Error(`Couldn't reload ${xe.path}: ${xe.error}`);let bo=Cn.registry.findConflicts(xe.overrides);if(bo.length>0){let rn=bo.map(vo=>`${vo.key} (${vo.ids.join(", ")})`).join("; ");throw new Error(`Conflicting TUI keybindings: ${rn}`)}xy(),await ue.adapter.refreshPlugins(),Ht=xe.overrides,Cn.manager.setUserBindings({...Cn.hostOverrides,...xe.overrides})},...n.resumeDraftAfterLogin?{resumeDraftAfterLogin:!0}:{},checkForUpdate:async()=>IR(await(await Qe()).inspect()),inspectUpdate:async()=>(await Qe()).inspect(),applyUpdate:async(ue,xe)=>(await Qe()).apply(ue,xe)}),J.ready.catch(()=>{}),J.editor&&(J.editor.disableSubmit=!0),Ne=OR(ue=>J?.setStartupStatus?.(ue)),W=(e.installProcessGuards??av)({process,stop:()=>J?.stop()??Promise.resolve(),report:ue=>{try{process.stderr.write(`Minimax Code TUI stopped unexpectedly: ${ut(ue)}. Restart MCode; if it keeps happening, report it through an available support channel.
265
+ `,{encoding:"utf8",mode:384}),uU(r,t)}function RR(n){return dy(n).tuiMode==="fullscreen"?"fullscreen":"regular"}function kR(n,e){ER(n,{tuiMode:e})}function PR(n){let e=dy(n).theme;if(typeof e!="string")return;let t=e.trim();if(!t)return;let i=/^([a-z0-9][a-z0-9._-]{0,63})\/(light|dark)$/iu.exec(t),s=i?.[1],r=i?.[2];return s&&r?`${s}/${r.toLowerCase()}`:MR.test(t)?t:void 0}function _R(n,e){let t=e.trim();if(!MR.test(t)&&!/^[a-z0-9][a-z0-9._-]{0,63}\/(light|dark)$/iu.test(t))throw new Error(`"${e}" is not a valid theme id`);ER(n,{theme:t})}var LR=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"];function OR(n){let e=0,t=!1,i=o=>{try{n(o)}catch{}},s=()=>{t||(i(`${LR[e]} Starting server...`),e=(e+1)%LR.length)};s();let r=setInterval(s,80);return r.unref?.(),{stop(){t||(t=!0,clearInterval(r),i(void 0))}}}var yU="Intelligence with everyone, bye~";async function Tpe(n,e={}){if(n.model!==void 0&&xp(n.model.trim()),n.model!==void 0&&n.showSessionPicker)throw new Error("--model requires a Session id with --session; use --session <id> or --continue.");if(!n.terminal&&(!process.stdin.isTTY||!process.stdout.isTTY))throw new Error("Minimax Code interactive mode requires a TTY.");let t=n.homeDir??fU(),i=n.workspaceDir??process.cwd(),s=n.dataDir??await(e.prepareDataDir??ky)(),r=n.terminal??new Ss,o=n.tuiMode??(e.readTuiMode??RR)(s),a=n.theme??(e.readTuiTheme??PR)(s),u=gr(),l=Ay({runtimeRegion:process.env.MAVIS_REGION==="en"?"en":"cn"}),d=Ey(n.lane,l.buildEnv),h=d?{bedrockLane:d}:void 0,m=(e.createSharedAuthSession??TT)({dataDir:s,...l,oauthEndpoints:Cy(process.env,l)}),f,y=()=>f?.realUserID,T=new yT({authContextGetter:()=>f,...h?{routingContextGetter:()=>h}:{},...l}),b=async()=>{try{let te=await m.getAccessToken({requiredScopes:[...Sy],minValidityMs:3e4});return f?.accessToken!==te.accessToken&&(f={accessToken:te.accessToken}),te}catch{f=void 0;return}},v=NR(async()=>{let te=f?.accessToken;if(!te)return;let Ct=await T.getRealUserID();return Ct&&f?.accessToken===te&&(f={...f,realUserID:Ct}),Ct}),I=NR(async()=>{let{opGroupId:te}=await T.getTokenPlanMembership();return te}),k=async()=>{let te=(await b())?.accessToken.trim();return v(te)},R=async()=>{let te=(await b())?.accessToken.trim();return I(te)},D={dataDir:s,appVersion:n.version,...l,terminal:u.terminalId,tuiMode:o,resolveAuthContext:async()=>{let te=await b();if(te)return{accessToken:te.accessToken,realUserID:y()?.trim()}}},E=e.createIncidentReporter?e.createIncidentReporter(D):DR()?Qy:zy(D),$=(te,Ct)=>{Wn(E,{eventType:"cli_process_error",error:te,component:"process",operation:Ct==="unhandledRejection"?"unhandledRejection":"uncaughtException",codeLocation:"src/tui/launcher.ts#uncaughtExceptionMonitor",severity:"fatal",impact:"exit",handled:!1})},_=e.createBusinessTelemetry?e.createBusinessTelemetry({dataDir:s,...l,version:n.version,hailuoUserId:k,opGroupId:R}):DR()?{track:()=>{},flush:async()=>{}}:xR({dataDir:s,...l,version:n.version,hailuoUserId:k,opGroupId:R}),B=te=>{try{_.track("tui_launch",{hailuo_user_id:y()?.trim()??"",launch_type:te})}catch{}},F=(e.createObservability??Vy)(s,{surface:"tui"}),q=!1,ee=!1,ce=te=>{if(te.terminalDead&&(ee=!0),!q){q=!0;try{F.recordProcessStop(pv(te,{homeDirectory:t,workspaceDir:i}))}catch{}}},re=lv(r,ce);F.recordStartup({phase:"cli.process",outcome:"started"}),F.recordTerminal({...u,columns:re.columns,rows:re.rows});let He=e.loadUpdateApplication??(async te=>{let{McodeUpdateApplication:Ct}=await import("./application-ZJ5NM3DF.js");return new Ct({currentVersion:te})}),ae,Qe=()=>(ae??=He(n.version),ae),Rt,Bn=new Promise(te=>{Rt=te}),W,G,le,Se,J,Ne,nt,en,Ee=!1,tn=!1,ie=!1,Bt=!1,nn=!1,Qs,sn;E.runId&&process.on("uncaughtExceptionMonitor",$);try{let te=$n.now();E.breadcrumb("cli.runtime.initialize.started"),F.recordStartup({phase:"runtime.initialize",outcome:"started"});try{G=await(e.loadRuntimeLifecycle??(()=>import("./lifecycle-INAA4RL2.js")))(),le=G.createTuiRuntime({dataDir:s,workspaceDir:i,version:n.version,surface:"tui",observability:F,...n.contextMode?{contextMode:n.contextMode}:{},...d?{lane:d}:{},...n.systemPromptOverrides?{systemPromptOverrides:n.systemPromptOverrides}:{}},{sharedAuthCore:m}),le.catch(()=>{})}catch(kt){throw F.recordStartup({phase:"runtime.initialize",outcome:"failed",durationMs:$n.now()-te,errorKind:zs(kt)}),kt}let Ct=$n.now();F.recordStartup({phase:"tui.start",outcome:"started"});let qt=await fv(s),Ht=xm(s).overrides,mu=!0;try{let kt=le;if(!kt)throw new Error("Runtime initialization did not start.");let Cn=vv({platform:process.platform,suspendSupported:process.platform!=="win32",windowsClipboardInterop:process.platform==="linux"&&!!(process.env.WSL_DISTRO_NAME||process.env.WSLENV),userOverrides:Ht});Vp(Cn.manager),J=(e.createApp??SR)({runtime:CR(kt.then(ue=>ue.adapter)),dataDir:s,version:n.version,workspaceDir:i,...qt.statusLineItems?{statusLineItems:qt.statusLineItems}:{},...qt.customStatusLine?{customStatusLine:qt.customStatusLine}:{},...qt.showTips===void 0?{}:{showTips:qt.showTips},...qt.notifications?{notifications:qt.notifications}:{},...process.env[wg]?{automationResultPath:process.env[wg]}:{},...n.workspaceRoots?{workspaceRoots:n.workspaceRoots}:{},homeDir:t,terminal:re,tuiMode:o,clearScrollbackOnStart:!!(n.sessionId?.trim()||n.continueLatestSession),persistTuiMode:ue=>(e.writeTuiMode??kR)(s,ue),...a?{theme:a}:{},persistTheme:ue=>(e.writeTuiTheme??_R)(s,ue),persistStatusLineItems:ue=>wy(s,ue),externalEditorCommand:n.externalEditorCommand,observability:F,incidentReporter:E,businessTelemetry:_,auth:(e.createAuthApplication??bT)({dataDir:s,...l,sharedAuthCore:m,telemetry:_,telemetrySource:"mcode_tui",hailuoUserId:y}),notifyAuthContextChanged:async ue=>{let xe=await kt;await xe.synchronizeAuthContext(ue),await xe.host.notifyAuthContextChanged?.(ue),ue==="authenticated"?await b():f=void 0,E.breadcrumb("cli.auth.context.changed",{authState:ue}),ue==="authenticated"&&E.drain()},readClipboardImage:async ue=>{let{readTuiClipboardImage:xe}=await import("./clipboard-image-Q5NH3BUQ.js");return xe({signal:ue})},keybindings:Cn.registry,...process.platform==="win32"?{}:{requestProcessSuspend:()=>process.kill(process.pid,"SIGTSTP")},requestRestart:(ue,xe)=>{nn=!0,ue&&(Qs=ue),xe&&(sn=xe)},getTuiKeybindingOverrides:()=>({...Ht}),saveTuiKeybindingOverrides:ue=>{let xe={...ue};wv(s,xe),Ht=xe,Cn.manager.setUserBindings({...Cn.hostOverrides,...xe})},reloadTui:async()=>{let ue=await kt,xe=xm(s);if(xe.error)throw new Error(`Couldn't reload ${xe.path}: ${xe.error}`);let bo=Cn.registry.findConflicts(xe.overrides);if(bo.length>0){let rn=bo.map(vo=>`${vo.key} (${vo.ids.join(", ")})`).join("; ");throw new Error(`Conflicting TUI keybindings: ${rn}`)}xy(),await ue.adapter.refreshPlugins(),Ht=xe.overrides,Cn.manager.setUserBindings({...Cn.hostOverrides,...xe.overrides})},...n.resumeDraftAfterLogin?{resumeDraftAfterLogin:!0}:{},checkForUpdate:async()=>IR(await(await Qe()).inspect()),inspectUpdate:async()=>(await Qe()).inspect(),applyUpdate:async(ue,xe)=>(await Qe()).apply(ue,xe)}),J.ready.catch(()=>{}),J.editor&&(J.editor.disableSubmit=!0),Ne=OR(ue=>J?.setStartupStatus?.(ue)),W=(e.installProcessGuards??av)({process,stop:()=>J?.stop()??Promise.resolve(),report:ue=>{try{process.stderr.write(`Minimax Code TUI stopped unexpectedly: ${ut(ue)}. Restart MCode; if it keeps happening, report it through an available support channel.
266
266
  `)}catch{}},capture:(ue,xe)=>TU(E,ue,xe),onStopCause:ce,onStopFailure:()=>Rt?.(),isTerminalDead:()=>ee,...process.platform==="win32"?{}:{suspend:()=>J?.suspend?.(),resume:async()=>{await J?.resume?.(),B("hot")},suspendProcess:()=>process.kill(process.pid,"SIGTSTP")}}),J.start(),nt=vU(J,F,Bn),nt.catch(()=>{});let Xe=await Promise.race([kt.then(ue=>({status:"ready",runtime:ue}),ue=>({status:"failed",error:ue})),J.stopped.then(()=>({status:"stopped"})),Bn.then(()=>({status:"stopped"}))]);if(Xe.status==="stopped"){F.recordStartup({phase:"runtime.initialize",outcome:"failed",durationMs:$n.now()-te,errorKind:"StoppedDuringInitialization"});return}if(Xe.status==="failed")throw F.recordStartup({phase:"runtime.initialize",outcome:"failed",durationMs:$n.now()-te,errorKind:zs(Xe.error)}),Xe.error;Se=Xe.runtime,tn=!0,E.breadcrumb("cli.runtime.initialize.succeeded"),F.recordStartup({phase:"runtime.initialize",outcome:"succeeded",durationMs:$n.now()-te}),await J.ready,mu=await RU(J,F,n,Se.adapter),Ne.stop(),Ne=void 0,J.editor&&(J.editor.disableSubmit=!1)}catch(kt){throw F.recordStartup({phase:"tui.start",outcome:"failed",durationMs:$n.now()-Ct,errorKind:zs(kt)}),kt}if(F.recordStartup({phase:"tui.start",outcome:"succeeded",durationMs:$n.now()-Ct}),!await nt)return;ie=!0,B("cold"),E.setPhase("runtime"),E.breadcrumb("cli.first-frame.rendered");let wt=mu?n.initialPrompt?.trim():void 0;wt&&kU(J,F,wt),Ee=await Promise.race([J.stopped.then(()=>!0),Bn.then(()=>!1)]),Ee&&(en=J.controller?.snapshot().session?.sessionId)}catch(te){throw Wn(E,{eventType:ie?"cli_process_error":"cli_startup_error",error:te,component:ie?"tui":"startup",operation:"launch-lifecycle",codeLocation:"src/tui/launcher.ts#launchTui",severity:"fatal",impact:"exit",handled:!1}),te}finally{if(E.setPhase("shutdown"),E.breadcrumb("cli.shutdown.started"),SU(Ne),W?.(),J)try{await Promise.resolve(J.stop())}catch(te){pu(E,"cli-ui",te)}if(Se&&G){try{Bt=await G.shutdownTuiRuntime(Se,{reportFailure:(te,Ct)=>{pu(E,te,Ct);try{process.stderr.write(`[minimax-code] ${te} cleanup failed: ${ut(Ct)}
267
267
  `)}catch{}}})}catch(te){Bt=!0,pu(E,"runtime",te)}Bt&&(process.exitCode=1)}else le&&G&&bU(le,G,E);try{await F.flush()}catch(te){Wn(E,{eventType:"cli_persistence_error",error:te,component:"observability",operation:"flush",codeLocation:"src/tui/launcher.ts#observability.flush",severity:"warning",impact:"degraded",handled:!0})}try{await _.flush()}catch{}E.completeRun(),await E.flush(),E.runId&&process.off("uncaughtExceptionMonitor",$)}if(nn&&Ee&&tn&&!Bt){await(e.restartProcess??CU)(en,Qs,sn);return}if(Ee&&tn&&!Bt)try{(e.writeExitMessage??(te=>process.stdout.write(te)))(MU(en))}catch{}}function TU(n,e,t){let i=t.origin==="stdout"||t.origin==="stderr",s=t.origin==="shutdown";Wn(n,{eventType:i?"cli_terminal_error":s?"cli_shutdown_error":t.origin==="suspend"||t.origin==="resume"?"cli_interaction_error":"cli_process_error",error:e,component:i?"terminal":s?"shutdown":"process",operation:s?"cli-ui":t.origin,codeLocation:"src/tui/platform/process-guards.ts#installTuiProcessGuards",severity:t.terminalDead||s?"error":"fatal",impact:"exit",handled:!!(t.terminalDead||s),context:{origin:t.origin,...t.terminalDead===void 0?{}:{terminalDead:t.terminalDead}}})}function pu(n,e,t){Wn(n,{eventType:"cli_shutdown_error",error:t,component:"shutdown",operation:e,codeLocation:"src/tui/launcher.ts#shutdown",severity:"error",impact:"degraded",handled:!0})}function bU(n,e,t){n.then(async i=>{await e.shutdownTuiRuntime(i,{reportFailure:(s,r)=>pu(t,s,r)})&&(process.exitCode=1)}).catch(i=>pu(t,"pending-runtime",i))}async function vU(n,e,t){let i=$n.now();e.recordStartup({phase:"tui.first-frame",outcome:"started"});let s;try{s=await Promise.race([n.firstFrame.then(()=>!0),n.stopped.then(()=>!1),t.then(()=>!1)])}catch(r){throw e.recordStartup({phase:"tui.first-frame",outcome:"failed",durationMs:$n.now()-i,errorKind:zs(r)}),r}return e.recordStartup({phase:"tui.first-frame",outcome:s?"succeeded":"failed",durationMs:$n.now()-i,...s?{}:{errorKind:"StoppedBeforeFirstFrame"}}),s}function NR(n){let e,t,i,s=0;return async r=>{if(!r)return;if(e!==r&&(e=r,t=void 0,i=void 0,s=0),t)return t;if(Date.now()<s)return;let o=i??n().then(a=>(a?t=a:s=Date.now()+6e4,a)).catch(()=>{s=Date.now()+6e4});i=o;try{return await o}finally{i===o&&(i=void 0)}}}function SU(n){try{n?.stop()}catch{}}async function CU(n,e,t){let i=xU(process.execPath,process.argv,n,t),s=wU(process.env,e);if(!await Ry(process.argv[1],process.execPath,process.pid,i,s))return new Promise((r,o)=>{let a=hU(process.execPath,i,{cwd:process.cwd(),env:s,stdio:"inherit",windowsHide:!1});a.once("error",o),a.once("exit",(u,l)=>{u!==null&&u!==0?process.exitCode=u:l&&(process.exitCode=1),r()})})}function wU(n,e){return e?Oy({...n,MAVIS_REGION:e}):n}function xU(n,e,t,i){let s=IU(n),r=e.slice(s?2:1),o=My(r,!0),a=o?["--env",o]:[],u=t?["--session",t]:[],l=Ly(r),d=i?[i]:[];if(!s)return[...a,...l,...u,...d];let h=e[1];if(!h||!AU(h))throw new Error("Unable to restart MCode because its Node.js entry file is unavailable.");return[h,...a,...l,...u,...d]}function IU(n){let e=gU.basename(n).toLocaleLowerCase();return e==="node"||e==="node.exe"}function DR(){return!!import.meta.vitest||process.env.VITEST==="true"}function AU(n){try{return pU(n)&&mU(n).isFile()}catch{return!1}}function MU(n){let e=n?EU(n):void 0;return`${e??`
268
268
  `}${e?`